{"version":3,"file":"index-BdInLOCc.js","sources":["../../src/contexts/BreadcrumbContext.tsx","../../src/firebaseConfig.ts","../../src/types/Service.ts","../../src/types/User.ts","../../src/types/AppointmentSession.ts","../../src/types/AppointmentForApproval.ts","../../src/types/UpcomingAppointment.ts","../../src/services/appointments.ts","../../src/services/call.ts","../../src/services/contacts.ts","../../src/services/contactUs.ts","../../src/utils/formatDurationInMsToHourMinutes.ts","../../src/utils/calculateDuration.ts","../../src/constants/streamApiKey.ts","../../src/utils/chatClient.ts","../../src/utils/formatCurrency.ts","../../src/utils/formatMessageDate.ts","../../src/utils/formatNotification.ts","../../src/utils/generateProfileLink.ts","../../src/utils/generateUpcomingAppointments.ts","../../src/utils/getInitials.ts","../../src/utils/getTimezoneAbbreviation.ts","../../src/utils/isValidUrl.ts","../../src/utils/loadUserFromLocalStorage.ts","../../src/utils/openInNewTab.ts","../../src/utils/saveRoleInLocalStorage.ts","../../src/components/icons/AddToCalendar.tsx","../../src/components/icons/Archive.tsx","../../src/components/icons/Calendar.tsx","../../src/components/icons/Camera.tsx","../../src/components/icons/Check.tsx","../../src/components/icons/CheckBox.tsx","../../src/components/icons/Clock.tsx","../../src/components/icons/Close.tsx","../../src/components/icons/Copy.tsx","../../src/components/icons/Delete.tsx","../../src/components/icons/Edit.tsx","../../src/components/icons/Ellipsis.tsx","../../src/components/icons/Error.tsx","../../src/components/icons/MicOff.tsx","../../src/components/icons/MicOn.tsx","../../src/components/icons/Qr.tsx","../../src/components/icons/ScreenShare.tsx","../../src/components/icons/ScreenShareOff.tsx","../../src/components/icons/Search.tsx","../../src/components/icons/Share.tsx","../../src/components/icons/Social.tsx","../../src/components/icons/Success.tsx","../../src/components/icons/Swap.tsx","../../src/components/icons/Time.tsx","../../src/components/icons/User.tsx","../../src/components/icons/Video.tsx","../../src/components/icons/VideoOff.tsx","../../src/components/icons/VideoOn.tsx","../../src/components/icons/Visible.tsx","../../src/components/icons/Warning.tsx","../../src/components/icons/Chat.tsx","../../src/utils/showToast.tsx","../../src/utils/toSentenceCase.ts","../../src/utils/showMessage.tsx","../../src/services/messages.ts","../../src/services/notifications.ts","../../src/services/profile.ts","../../src/services/user.ts","../../src/services/services.ts","../../src/services/stripe.ts","../../src/services/transactions.ts","../../src/services/axios.ts","../../src/services/auth.ts","../../src/constants/strings.ts","../../src/constants/subscriptionFees.ts","../../src/constants/values.ts","../../src/constants/weekday.ts","../../src/constants/serviceThemes.ts","../../src/store/authSlice.ts","../../src/store/cancelledTransactionsSlice.ts","../../src/store/contactsSlice.ts","../../src/store/forApprovalSlice.ts","../../src/store/notificationsSlice.ts","../../src/store/ongoingAppointmentsSlice.ts","../../src/store/paidTransactionsSlice.ts","../../src/store/pendingTransactionsSlice.ts","../../src/store/cancelledAppointmentsSlice.ts","../../src/store/completedAppointmentsSlice.ts","../../src/store/expiredTransactionsSlice.tsx","../../src/store/guestPendingTransactionsSlice.ts","../../src/store/hostAppointmentSlice.ts","../../src/store/stripeAccountSlice.ts","../../src/store/transactionsSlice.ts","../../src/store/upcomingAppointmentSlice.ts","../../src/store/store.ts","../../src/store/transactionsSummarySlice.ts","../../src/components/Loader/Loader.tsx","../../src/components/Buttons/FilledButton.tsx","../../src/components/Buttons/OutlinedButton.tsx","../../src/components/DialogContext.tsx","../../src/components/CancelSubscription.tsx","../../src/contexts/RefreshContext.tsx","../../src/components/Avatar.tsx","../../src/components/EmptyUI.tsx","../../src/components/DataLoader.tsx","../../src/components/HostCancelledTransactions.tsx","../../src/components/CancelledTransactions.tsx","../../src/components/FormFields/PasswordField.tsx","../../src/components/PasswordValidationRule.tsx","../../src/components/FormFields/PasswordTextFormField.tsx","../../src/components/ChangePassword.tsx","../../src/components/ContactListTile.tsx","../../src/components/skeletons/SkeletonContactListTile.tsx","../../src/components/skeletons/SkeletonRequestCard.tsx","../../src/components/skeletons/SkeletonServiceCard.tsx","../../src/components/skeletons/SkeletonTransactionSummaryCard.tsx","../../src/components/skeletons/SkeletonUpcomingAppointmentCard.tsx","../../src/components/skeletons/SkeletonUpcomingDetails.tsx","../../src/components/ContactList.tsx","../../src/components/ValidationMessage.tsx","../../src/components/FormFields/TextAreaFormField.tsx","../../src/components/FormFields/TextFormField.tsx","../../src/components/ContactUs.tsx","../../src/components/Buttons/CircularButton.tsx","../../src/components/Buttons/DropdownButton.tsx","../../src/components/Buttons/IconButton.tsx","../../src/components/Buttons/MenuButton.tsx","../../src/components/icons/Bell.tsx","../../src/components/NotificationListTile.tsx","../../src/components/Buttons/NotificationButton.tsx","../../src/components/Buttons/TextButton.tsx","../../src/components/DeactivateAccount.tsx","../../src/components/DynamicNavigate.tsx","../../src/components/EditProfile.tsx","../../src/components/Pagination.tsx","../../src/components/Calendar.tsx","../../src/constants/colorVariants.ts","../../src/components/Schedule.tsx","../../src/components/GuestAppointments.tsx","../../src/components/GuestCompletedAppointments.tsx","../../src/components/CustomAvatar.tsx","../../src/components/MessageComponent.tsx","../../src/components/PaidTransactionReceipt.tsx","../../src/components/GuestPaidTransactions.tsx","../../src/components/ReceivedTransactionReceipt.tsx","../../src/components/HostPaidTransactions.tsx","../../src/components/PaidTransactions.tsx","../../src/components/Forms/CancelAppointmentForm.tsx","../../src/components/HostPendingTransactions.tsx","../../src/components/PendingTransactions.tsx","../../src/components/PrivacyPolicy.tsx","../../src/components/Routes/ProtectedRoutes.tsx","../../src/components/Routes/PublicRoutes.tsx","../../src/components/Tooltip.tsx","../../src/components/StripeAccount.tsx","../../src/components/icons/CheckList.tsx","../../src/components/UpgradeToTrial.tsx","../../src/components/SwitchRole.tsx","../../src/components/TermsAndConditions.tsx","../../src/components/FormFields/CheckBox.tsx","../../src/components/FormFields/TimePicker.tsx","../../src/components/Forms/BlockScheduleForm.tsx","../../src/components/GuestTile.tsx","../../src/components/ScheduleDetails.tsx","../../src/pages/Appointment.tsx","../../src/components/Banner.tsx","../../src/utils/parseTimeSlotsForBackend.ts","../../src/components/FormFields/RadioListTile.tsx","../../src/components/FormFields/TimeSlotFormField.tsx","../../src/components/FormFields/AddImage.tsx","../../src/components/FormFields/UploadGallery.tsx","../../src/components/ThemeSelector.tsx","../../src/components/Forms/ServiceForm.tsx","../../src/pages/CreateService.tsx","../../src/components/DashboardDetails.tsx","../../src/components/icons/Add.tsx","../../src/components/NewMessage.tsx","../../src/components/RecentMessages.tsx","../../src/components/RequestCard.tsx","../../src/components/ShareQr.tsx","../../src/components/UpcomingAppointmentCard.tsx","../../src/pages/Dashboard.tsx","../../src/pages/EditService.tsx","../../src/pages/ForgotPassword.tsx","../../src/assets/apple.svg","../../src/assets/eye.svg","../../src/assets/google-play.svg","../../src/assets/logo.svg","../../src/components/LogoWithTitle.tsx","../../src/pages/Login.tsx","../../src/components/ChatDrawer.tsx","../../src/pages/Messages.tsx","../../src/pages/NewPassword.tsx","../../src/pages/NotFound.tsx","../../src/pages/Notifications.tsx","../../src/components/GuestPublicProfile.tsx","../../src/components/FormFields/DateFormField.tsx","../../src/components/Forms/ExperienceForm.tsx","../../src/components/Forms/SocialMediaForm.tsx","../../src/components/ServiceInfo.tsx","../../src/components/HostProfile.tsx","../../src/pages/PublicProfile.tsx","../../src/components/FormFields/PriceFormField.tsx","../../src/components/Forms/RejectAppointmentForm.tsx","../../src/pages/RequestDetails.tsx","../../src/pages/Requests.tsx","../../src/components/icons/CreditCard.tsx","../../src/components/icons/Dashboard.tsx","../../src/components/icons/Settings.tsx","../../src/components/Layout/Drawer.tsx","../../src/components/Breadcrumbs.tsx","../../src/components/icons/Email.tsx","../../src/components/UpgradeToHost.tsx","../../src/components/Layout/NavBar.tsx","../../src/pages/UserDisabled.tsx","../../src/pages/Root.tsx","../../src/pages/Settings.tsx","../../src/services/metaPixel.ts","../../src/pages/Signup.tsx","../../src/components/StripeAccountCard.tsx","../../src/components/TransactionSummaryCard.tsx","../../src/components/TransactionTab.tsx","../../src/pages/Transactions.tsx","../../src/hooks/useAppointmentRealTimeStatus.ts","../../src/services/calendar.ts","../../src/pages/UpcomingAppointmentDetails.tsx","../../src/pages/UpcomingAppointments.tsx","../../src/components/GuestProfile.tsx","../../src/pages/UserProfile.tsx","../../src/components/VideoChat.tsx","../../src/components/Call/CallLayout.tsx","../../src/components/Call/ParticipantListTile.tsx","../../src/components/Call/ParticipantList.tsx","../../src/components/Call/CallControls.tsx","../../src/components/Call/CallUI.tsx","../../src/pages/VideoCall.tsx","../../src/components/AppointmentRequest.tsx","../../src/components/Forms/ConfirmScheduleForm.tsx","../../src/pages/BookService.tsx","../../src/components/CallPreview.tsx","../../src/pages/CallLobby.tsx","../../src/pages/PayAppointment.tsx","../../src/pages/RescheduleAppointment.tsx","../../src/pages/ResetPassword.tsx","../../src/pages/Services.tsx","../../src/pages/StripeConnectSuccess.tsx","../../src/pages/StripeTransactionSuccess.tsx","../../src/pages/ViewService.tsx","../../src/pages/ViewTransaction.tsx","../../src/components/Heading.tsx","../../src/components/Paragraph.tsx","../../src/pages/branding/About.tsx","../../src/pages/branding/ContactUs.tsx","../../src/pages/branding/Faq.tsx","../../src/pages/branding/HowItWorks.tsx","../../src/assets/home/B1.png","../../src/assets/home/w4.png","../../src/assets/home/w6.png","../../src/assets/home/w8.png","../../src/assets/main-section-image.png","../../src/pages/branding/Landing.tsx","../../src/components/Layout/Footer.tsx","../../src/components/TellyLogo.tsx","../../src/components/Layout/LandingNavbar.tsx","../../src/pages/branding/LandingLayout.tsx","../../src/pages/branding/PrivacyPolicy.tsx","../../src/pages/branding/Terms.tsx","../../src/pages/branding/WorkTogether.tsx","../../src/components/Buttons/SwitchRoleButton.tsx","../../src/components/Layout/AuthNavbar.tsx","../../src/components/PublicRoot.tsx","../../src/pages/PublicService.tsx","../../src/pages/OngoingAppointmentsPage.tsx","../../src/App.tsx","../../src/components/DialogComponent.tsx","../../src/main.tsx"],"sourcesContent":["import React, { createContext, ReactNode, useContext, useState } from 'react';\n\ninterface Breadcrumb {\n name: string;\n path?: string;\n}\n\ninterface BreadcrumbContextType {\n breadcrumbs: Breadcrumb[];\n setBreadcrumbs: (breadcrumbs: Breadcrumb[]) => void;\n}\n\nconst BreadcrumbContext = createContext(\n undefined,\n);\n\nexport const BreadcrumbProvider: React.FC<{ children: ReactNode }> = ({\n children,\n}) => {\n const [breadcrumbs, setBreadcrumbs] = useState([]);\n\n return (\n \n {children}\n \n );\n};\n\nexport const useBreadcrumbs = () => {\n const context = useContext(BreadcrumbContext);\n if (!context) {\n throw new Error('useBreadcrumbs must be used within a BreadcrumbProvider');\n }\n return context;\n};\n","// Import the functions you need from the SDKs you need\n// import { getAnalytics } from 'firebase/analytics';\nimport { initializeApp } from 'firebase/app';\nimport { getAuth } from 'firebase/auth';\nimport { getDatabase } from 'firebase/database';\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 apiKey: import.meta.env.VITE_FIREBASE_API_KEY,\n authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN,\n databaseURL: import.meta.env.VITE_FIREBASE_DATABASE_URL,\n projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID,\n storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET,\n messagingSenderId: import.meta.env.VITE_FIREBASE_APP_ID,\n appId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID,\n measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID,\n};\n\n// Initialize Firebase\nconst app = initializeApp(firebaseConfig);\n\n\n/// export const analytics = getAnalytics(app);\n\n///\nexport const firebaseAuth = getAuth(app);\nexport const firebaseDb = getDatabase(app);\n","type ClassType = 'ONE_ON_ONE' | 'MULTIPLE';\n\nexport type ServiceDto = {\n id: string;\n class_type: ClassType;\n description: string;\n // in milliseconds\n category: string;\n duration_per_session: number;\n gallery: string[];\n maximumNumberOfGuests: number;\n minimumNumberOfGuests: number;\n requirements: string[];\n service_rate: number;\n sessions: number;\n theme: string;\n title: string;\n cancellationPolicy?: string;\n isDeleted: boolean;\n deletedAt?: Date;\n what_you_learn: string[];\n userId: string;\n user?: Host;\n availabilityHours?: AvailableHourDto[];\n};\n\nexport type Service = {\n id: string;\n classType: ClassType;\n description: string;\n // in milliseconds\n category: string;\n durationPerSession: number;\n gallery: string[];\n maximumNumberOfGuests: number;\n minimumNumberOfGuests: number;\n requirements?: string[];\n serviceRate: number;\n sessions: number;\n theme: string;\n title: string;\n cancellationPolicy?: string;\n isDeleted: boolean;\n deletedAt?: Date;\n whatYouLearn?: string[];\n userId: string;\n host?: Host;\n availabilityHours?: AvailableHour[];\n hours: number;\n minutes: number;\n};\n\nimport moment from 'moment';\nimport { AvailableHour } from './AvailableHour';\nimport { Host } from './UpcomingAppointment';\n\nexport type CreateServicePayload = {\n title: string;\n class_type: 'ONE_ON_ONE' | 'MULTIPLE';\n category: string;\n description: string;\n duration_per_session: number | null;\n cancellationPolicy: string | undefined;\n sessions: number;\n service_rate: number;\n requirements: string[];\n what_you_learn: string[];\n theme: string;\n gallery: File[];\n availabilityHours?: AvailableHour[];\n};\n\nexport type UpdateServicePayload = { serviceId: string } & CreateServicePayload;\n\nexport type BookServicePayload = {\n appointmentId?: string;\n serviceId: string;\n startTime: moment.Moment;\n endTime: moment.Moment;\n};\n\nexport const mapServiceDtoToService = (serviceDto: ServiceDto): Service => {\n const { hours, minutes } = convertMilliseconds(\n serviceDto.duration_per_session,\n );\n\n return {\n id: serviceDto.id,\n classType: serviceDto.class_type,\n description: serviceDto.description,\n durationPerSession: serviceDto.duration_per_session,\n category: serviceDto.category,\n gallery: serviceDto.gallery,\n maximumNumberOfGuests: serviceDto.maximumNumberOfGuests,\n minimumNumberOfGuests: serviceDto.minimumNumberOfGuests,\n requirements: serviceDto.requirements,\n serviceRate: serviceDto.service_rate,\n sessions: serviceDto.sessions,\n theme: serviceDto.theme,\n title: serviceDto.title,\n cancellationPolicy: serviceDto.cancellationPolicy,\n isDeleted: serviceDto.isDeleted,\n deletedAt: serviceDto.deletedAt,\n whatYouLearn: serviceDto.what_you_learn,\n userId: serviceDto.userId,\n host: serviceDto.user,\n availabilityHours: serviceDto.availabilityHours,\n hours,\n minutes,\n };\n};\n\nfunction convertMilliseconds(ms: number) {\n const hours = Math.floor(ms / (1000 * 60 * 60));\n const minutes = Math.floor((ms % (1000 * 60 * 60)) / (1000 * 60));\n\n return { hours, minutes };\n}\n\ntype AvailableHourDto = {\n start: string;\n end: string;\n};\n","import { TellyUserDto } from '../dtos/TellyUserDto';\nimport { Role } from './Role';\nimport { mapServiceDtoToService, Service } from './Service';\nimport { SubscriptionInterval } from './SubscriptionInterval';\nimport { TrialPeriod } from './TrialPeriod';\nimport { WorkExperience } from './WorkExperience';\n\nexport type SocialAccount = {\n url: string;\n socialMedia: 'TWITTER' | 'LINKEDIN' | 'FACEBOOK' | 'WEBSITE' | 'INSTAGRAM';\n};\n\nexport type TellyUser = {\n id: string;\n firstname: string;\n lastname: string;\n email: string;\n membership: 'HOST' | 'TRIAL' | 'GUEST';\n about?: string;\n profession?: string;\n hasAgreedToTermsAndConditions?: boolean;\n createdAt: Date;\n cover_photo?: string;\n completedAppointmentSessionsCount?: number;\n contactNumber?: string;\n ongoingAppointmentsCount?: number;\n avatar?: string;\n socialAccounts: SocialAccount[];\n stripeConnectAccountId?: string;\n activeRole: Role;\n workExperience?: WorkExperience[];\n service?: Service[];\n fullname: string;\n trialPeriod?: TrialPeriod;\n subscription?: Subscription;\n hasCancelledSubscription?: boolean;\n username?: string;\n // if the user has deactivated their account\n disabled?: boolean;\n};\n\nexport declare type Subscription = {\n id: string;\n expiry: Date;\n start: Date;\n interval: SubscriptionInterval;\n};\n\nexport const mapUserDtoToTellyUser = (data: TellyUserDto): TellyUser => {\n return {\n id: data.id,\n firstname: data.firstname,\n lastname: data.lastname,\n email: data.email,\n membership: data.membership,\n about: data.about,\n profession: data.profession,\n hasAgreedToTermsAndConditions: data.hasAgreedToTermsAndConditions,\n createdAt: data.created_at, // Convert Date to ISO string\n cover_photo: data.cover_photo,\n completedAppointmentSessionsCount: data.completedAppointmentSessionsCount,\n contactNumber: data.contact_number,\n ongoingAppointmentsCount: data.ongoingAppointmentsCount,\n avatar: data.avatar,\n socialAccounts: data.socialAccounts, // Convert array of SocialAccount\n stripeConnectAccountId: data.stripe_connect_account_id,\n activeRole: data.activeRole,\n service: data['Service']?.map((s) => mapServiceDtoToService(s)).filter((e) => !e.isDeleted),\n workExperience: data['WorkExperience']?.map((w) =>\n mapWorkExperienceToWorkExperience(w),\n ),\n fullname: data.fullname ?? `${data.firstname} ${data.lastname}`,\n trialPeriod: data.trialPeriod,\n subscription: data.subscription,\n hasCancelledSubscription: data.hasCancelledSubscription,\n disabled: data.disabled,\n username: data.username,\n };\n};\n\nexport type WorkExperienceDto = {\n id: string;\n companyName: string;\n jobTitle: string;\n dateFrom: string;\n dateTo: string;\n description: string;\n};\n\nconst mapWorkExperienceToWorkExperience = (\n workExperienceDto: WorkExperienceDto,\n) => {\n return {\n id: workExperienceDto.id,\n companyName: workExperienceDto.companyName,\n jobTitle: workExperienceDto.jobTitle,\n dateFrom: new Date(workExperienceDto.dateFrom),\n dateTo: new Date(workExperienceDto.dateFrom),\n description: workExperienceDto.description,\n } as WorkExperience;\n};\n","import { mapServiceDtoToService, Service, ServiceDto } from './Service';\nimport { Host, OwnAppointmentData, Participant } from './UpcomingAppointment';\n\ntype AppointmentStatus =\n | 'FOR_REVIEW'\n | 'CONFIRMED'\n | 'CANCELLED'\n | 'REJECTED'\n | 'EXPIRED';\n\nexport type AppointmentSessionDto = {\n id: string;\n appointmentId: string;\n duration: number;\n endTime: string;\n startTime: string;\n price: number; // in cents\n reasonForCancelOrReject?: string;\n service: ServiceDto;\n status: AppointmentStatus;\n host?: Host;\n ownAppointmentData?: OwnAppointmentData;\n participants?: Participant[];\n participantId?: string;\n};\n\nexport type AppointmentSession = {\n id: string;\n appointmentId: string;\n duration: number;\n endTime: string;\n startTime: string;\n price: number; // in cents\n service: Service;\n status: AppointmentStatus;\n participants?: Participant[];\n reasonForCancelOrReject?: string;\n host?: Host;\n participantId?: string; // present when user is a guest\n ownAppointmentData?: OwnAppointmentData;\n};\n\nexport const mapAppointmentSessionDtoToAppointmentSession = (\n data: AppointmentSessionDto,\n): AppointmentSession => {\n const service = mapServiceDtoToService(data.service);\n\n console.dir(service);\n\n return {\n id: data.id,\n appointmentId: data.appointmentId,\n duration: data.duration,\n endTime: data.endTime,\n startTime: data.startTime,\n price: data.price,\n reasonForCancelOrReject: data.reasonForCancelOrReject,\n service: service,\n status: data.status,\n host: data.host,\n ownAppointmentData: data.ownAppointmentData,\n participants: data.participants,\n participantId: data.participantId,\n };\n};\n","import { TellyUserDto } from '../dtos/TellyUserDto';\nimport {\n AppointmentSession,\n AppointmentSessionDto,\n mapAppointmentSessionDtoToAppointmentSession,\n} from './AppointmentSession';\nimport { mapUserDtoToTellyUser, TellyUser } from './User';\n\nexport type AppointmentForApprovalDto = {\n id: string;\n appointmentSessionId: string;\n isPaid: boolean;\n userId: string;\n appointmentSession: AppointmentSessionDto;\n user: TellyUserDto;\n paymentStatus: 'PENDING' | 'PAID';\n};\n\nexport type AppointmentForApproval = {\n id: string;\n appointmentSessionId: string;\n isPaid: boolean;\n userId: string;\n appointmentSession: AppointmentSession;\n user: TellyUser;\n paymentStatus: 'PENDING' | 'PAID';\n};\n\nexport const mapAppointmentForApprovalDtoToAppointmentForApproval = (\n data: AppointmentForApprovalDto,\n): AppointmentForApproval => {\n return {\n id: data.id,\n appointmentSessionId: data.appointmentSessionId,\n isPaid: data.isPaid,\n userId: data.userId,\n appointmentSession: mapAppointmentSessionDtoToAppointmentSession(\n data.appointmentSession,\n ),\n user: mapUserDtoToTellyUser(data.user),\n paymentStatus: data.paymentStatus,\n };\n};\n","import { AppointmentSession, AppointmentSessionDto } from './AppointmentSession';\nimport { ParticipantsCount } from './OngoingAppointment';\nimport { mapServiceDtoToService } from './Service';\n\nexport type UpcomingAppointmentDto = AppointmentSessionDto & { \n participantsCount?: ParticipantsCount;\n ownAppointmentData?: OwnAppointmentData;\n userProgress?: UserProgress;\n}\n\nexport type UpcomingAppointment = AppointmentSession & {\n participantsCount?: ParticipantsCount;\n ownAppointmentData?: OwnAppointmentData;\n userProgress?: UserProgress;\n};\n\nexport type OwnAppointmentData = {\n isPaid: boolean;\n userId: string;\n};\n\nexport type UserProgress = {\n userCompletedSessions: number;\n userJoinedSinceSessionIndex: number;\n completedAppointmentSessionCount: number;\n maxAppointmentSessions: number;\n};\n\nexport type Host = {\n id: string;\n firstname: string;\n lastname: string;\n email: string;\n avatar?: string;\n profession?: string;\n // parse from cover_photo\n coverPhoto?: string;\n};\n\nexport type Participant = {\n // parse from id\n id: string;\n firstname: string;\n lastname: string;\n email: string;\n avatar: string;\n paymentStatus?: 'PENDING' | 'CONFIRMED' | 'PAID';\n isPaid?: boolean;\n // parse from updated_at\n updatedAt: Date;\n membership: 'TRIAL' | 'GUEST' | 'HOST';\n activeRole: 'TRIAL' | 'GUEST' | 'HOST';\n};\n\nexport const mapDataToUpcomingAppointment = (\n data: UpcomingAppointmentDto,\n): UpcomingAppointment => {\n // convert data to object\n const d = Object.assign({}, data);\n\n return {\n id: d.id,\n appointmentId: d.appointmentId,\n status: d.status,\n // price of the appointment in dollar cents\n price: d.price,\n duration: d.duration,\n participantsCount: d.participantsCount,\n startTime: d.startTime,\n endTime: d.endTime,\n participantId: d.participantId,\n reasonForCancelOrReject: d.reasonForCancelOrReject,\n ownAppointmentData: d.ownAppointmentData,\n userProgress: d.userProgress,\n host: d.host,\n participants: d.participants,\n service: mapServiceDtoToService(d.service),\n };\n};\n","import moment from 'moment';\nimport {\n BlockedSchedule,\n BlockSchedulePayload,\n PayAppointment,\n Role,\n} from '../types';\nimport {\n AppointmentForApproval,\n AppointmentForApprovalDto,\n mapAppointmentForApprovalDtoToAppointmentForApproval,\n} from '../types/AppointmentForApproval';\nimport {\n AppointmentSession,\n AppointmentSessionDto,\n mapAppointmentSessionDtoToAppointmentSession,\n} from '../types/AppointmentSession';\nimport { ApproveOrReject } from '../types/ApproveOrReject';\nimport { CancelledTransaction } from '../types/CancelledTransaction';\nimport { Conflict, ConflictDto } from '../types/Conflict';\nimport { OngoingAppointment } from '../types/OngoingAppointment';\nimport { mapDataToUpcomingAppointment, UpcomingAppointmentDto } from '../types/UpcomingAppointment';\nimport { Success } from './auth';\nimport apiClient from './axios';\n\nconst APPOINTMENTS = '/appointments';\nconst SESSIONS = '/sessions';\nconst PARTICIPANTS = '/participants';\n\nexport const serviceColors: { [key: string]: string } = {\n '#673AB7': 'deepPurple',\n '#4CAF63': 'green',\n '#F44336': 'red',\n '#2196F3': 'blue',\n '#FFEB3B': 'yellow',\n '#FF9800': 'orange',\n '#E91E63': 'pink',\n '#03A9F4': 'lightBlue',\n '#E57373': 'lightRed',\n '#000000': 'black',\n};\n\n// Function to get a random key from the colors object\nexport const getRandomColorKey = () => {\n const colorKeys = Object.keys(serviceColors); // Get all the keys from the colors object\n const randomIndex = Math.floor(Math.random() * colorKeys.length); // Generate a random index\n return colorKeys[randomIndex]; // Return the key at the random index\n};\n\nexport const getForApprovalAppointments = async (): Promise<\n AppointmentForApproval[]\n> => {\n const response = await apiClient.get(\n `${APPOINTMENTS}/for-approval`,\n );\n\n const data = response.data;\n\n const converted = data.map((d) =>\n mapAppointmentForApprovalDtoToAppointmentForApproval(d),\n );\n\n return converted;\n};\n\nexport const getUpcomingAppointments = async ({\n take,\n skip,\n}: {\n take?: number;\n skip?: number;\n}): Promise => {\n const response = await apiClient.get(\n `${APPOINTMENTS}`,\n {\n params: {\n skip: skip,\n take: take,\n },\n },\n );\n\n const data = response.data;\n\n const converted = data.map((d) => mapDataToUpcomingAppointment(d));\n\n // if user is host, consider the number of participants count that has paid\n // else use ownAppointmentData\n const paidOnly = converted.filter(\n (e) =>\n e.ownAppointmentData?.isPaid === true ||\n (e.participantsCount?.paid ?? 0) > 0,\n );\n\n return paidOnly;\n};\n\nexport const getAppointmentForApproval = async ({\n participantId,\n}: {\n participantId: string;\n}): Promise => {\n try {\n const response = await apiClient.get(\n `/appointments/for-approval/${participantId}`,\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getAppointmentSession = async (\n id: string,\n): Promise => {\n try {\n const response = await apiClient.get(\n `${APPOINTMENTS}${SESSIONS}/${id}`,\n );\n\n const data = mapAppointmentSessionDtoToAppointmentSession(response.data);\n\n return data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const approveOrRejectAppointment = async ({\n participantId,\n approveOrReject,\n price,\n reasonForCancelOrReject,\n}: {\n participantId: string;\n approveOrReject: ApproveOrReject;\n price?: number;\n reasonForCancelOrReject?: string;\n}): Promise => {\n try {\n const response = await apiClient.post(\n `${APPOINTMENTS}${PARTICIPANTS}/${participantId}/${approveOrReject}`,\n {\n price,\n reasonForCancelOrReject,\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getCancelledTransactions = async (\n role: string,\n): Promise => {\n try {\n const response = await apiClient.get(\n `${APPOINTMENTS}${SESSIONS}/all/${role}`,\n {\n params: {\n status: ['CANCELLED'],\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getExpiredTransactions = async (\n role: string,\n): Promise => {\n try {\n const response = await apiClient.get(\n `${APPOINTMENTS}${SESSIONS}/all/${role}`,\n {\n params: {\n status: ['EXPIRED', 'CANCELLED'],\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getOngoingAppointments = async (): Promise<\n OngoingAppointment[]\n> => {\n try {\n const response = await apiClient.get(\n `/appointments/ongoing`,\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getCompletedAppointments = async (\n role: Role,\n): Promise => {\n try {\n const response = await apiClient.get(\n `${APPOINTMENTS}${SESSIONS}/all/${role}`,\n {\n params: {\n status: ['COMPLETED'],\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getCancelledAppointments = async (\n role: Role,\n): Promise => {\n try {\n const response = await apiClient.get(\n `${APPOINTMENTS}${SESSIONS}/all/${role}`,\n {\n params: {\n status: ['CANCELLED', 'REJECTED'],\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const blockSchedule = async (payload: BlockSchedulePayload) => {\n /// convert datetimes to utc/iso string\n const formattedPayload = {\n startTime: payload.startTime.toISOString(),\n endTime: payload.endTime.toISOString(),\n reason: payload.reason,\n };\n\n try {\n const response = await apiClient.post(`/appointments/blocked-schedule`, [\n formattedPayload,\n ]);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const cancelAppointment = async (id: string, reason: string) => {\n try {\n const response = await apiClient.patch(`/appointments/sessions/${id}`, {\n reasonForCancelOrReject: reason,\n status: 'CANCELLED',\n });\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const rescheduleAppointment = async (\n id: string,\n startTime: Date,\n endTime: Date,\n): Promise => {\n try {\n const response = await apiClient.post(\n `/appointments/sessions/${id}/reschedule`,\n {\n startTime: startTime.toISOString(),\n endTime: endTime.toISOString(),\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const payAppointment = async (\n participantId: string,\n): Promise => {\n try {\n const response = await apiClient.post(\n `/stripe/appointment-session-checkout-url`,\n {\n guestId: participantId,\n },\n {\n params: {\n guestId: participantId,\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const completeAppointment = async (\n appointmentSessionId: string,\n): Promise => {\n try {\n const response = await apiClient.patch(\n `/appointments/sessions/${appointmentSessionId}`,\n {\n status: 'COMPLETED',\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const getConflicts = async ({\n hostId,\n date,\n}: {\n hostId: string;\n date: Date;\n}): Promise => {\n try {\n const startTime = moment(date).startOf('day');\n const endTime = moment(date).endOf('day');\n const response = await apiClient.get(\n `/appointments/conflicts`,\n {\n params: {\n hostId,\n startTime: startTime.toISOString(),\n endTime: endTime.toISOString(),\n },\n },\n );\n\n const parsed = response.data.map((item: ConflictDto) => {\n return {\n appointmentId: item.appointmentId,\n appointmentSessionId: item.appointmentSessionId,\n serviceTitle: item.serviceTitle,\n start: new Date(item.start),\n end: new Date(item.end),\n };\n });\n\n return parsed;\n } catch (e) {\n throw e;\n }\n};\n\nexport declare type HostAppointment = BlockedSchedule | AppointmentSession;\n\nexport function isBlockedSchedule(item: HostAppointment) {\n return item.status === 'BLOCKED';\n}\n\nexport const getHostSchedule = async ({\n gte,\n lte,\n}: {\n gte?: Date;\n lte?: Date;\n}): Promise => {\n /// create manual query params\n const gteString = gte?.toISOString();\n const lteString = lte?.toISOString();\n\n const gteQuery = gteString ? `gte=${gteString}&` : '';\n const lteQuery = lteString ? `lte=${lteString}&` : '';\n\n try {\n const response = await apiClient.get(\n `/appointments/sessions/all/HOST?${gteQuery}${lteQuery}status=CONFIRMED&status=BLOCKED`,\n // {\n // params: {\n // status: ['CONFIRMED', 'BLOCKED'],\n // gte: gte?.toISOString(),\n // lte: lte?.toISOString(),\n // },\n // },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const deletePendingTransaction = async (\n participantId: string,\n): Promise => {\n try {\n const response = await apiClient.delete(\n `/transactions/pending-transaction/${participantId}`,\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const deleteAppointmentSession = async (\n appointmentSessionId: string,\n): Promise => {\n try {\n const response = await apiClient.delete(\n `/appointments/sessions/${appointmentSessionId}`,\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n","import { AppointmentSession } from '../types';\nimport { CallInfo } from '../types/CallInfo';\nimport apiClient from './axios';\n\ntype CallData = {\n call: CallInfo;\n appointmentSession: AppointmentSession;\n}\n\nexport const getCallInfo = async (\n appointmentSessionId: string,\n): Promise => {\n try {\n const callInfo = await apiClient.get(\n `/appointments/sessions/${appointmentSessionId}/call-info`,\n );\n\n const appointmentSession = await apiClient.get(\n `/appointments/sessions/${appointmentSessionId}`\n );\n\n return {\n call: callInfo.data,\n appointmentSession: appointmentSession.data,\n };\n } catch (e) {\n throw e;\n }\n};\n","import { Contact } from '../types/Contact';\nimport { Success } from './auth';\nimport apiClient from './axios';\n\nexport const getContacts = async (): Promise => {\n try {\n const response = await apiClient.get(`/contacts`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const addContact = async (id: string): Promise => {\n try {\n const response = await apiClient.post(`/contacts`, {\n userIds: [id],\n });\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const deleteContact = async (id: string): Promise => {\n try {\n const response = await apiClient.delete(`/contacts/${id}`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n","import { ContactUsPayload } from '../types/ContactUs';\nimport { Success } from './auth';\nimport apiClient from './axios';\n\nexport const contactUs = async (\n payload: ContactUsPayload,\n): Promise => {\n try {\n const response = await apiClient.post(`/contact-us`, payload);\n\n return response.data;\n } catch (e) {\n console.log(e);\n }\n};\n","import moment from 'moment';\n\nexport const formatDurationInMsToHourMinutes = (\n durationInMs: number,\n short: boolean | null = false,\n): string => {\n const duration = moment.duration(durationInMs);\n\n // Format as \"hours and minutes\"\n const hours = Math.floor(duration.asHours());\n const minutes = duration.minutes();\n\n var formattedDuration = '';\n\n if (short) {\n if (hours > 0) {\n return `${duration.asHours().toFixed(1)}h`;\n } else {\n return `${duration.minutes()}m`;\n }\n }\n\n if (hours > 0) {\n if (hours === 1) {\n formattedDuration += '1 h ';\n } else {\n formattedDuration += `${hours} h `;\n }\n }\n\n if (minutes > 0) {\n if (minutes === 1) {\n formattedDuration += '1 m';\n } else {\n formattedDuration += `${minutes} m`;\n }\n }\n\n if (hours === 0 && minutes === 0) {\n formattedDuration += 'No duration';\n }\n\n return formattedDuration;\n};\n","import moment from 'moment';\nimport { formatDurationInMsToHourMinutes } from './formatDurationInMsToHourMinutes';\n\n/**\n * Calculate the duration of a service based on\n * the startTime and endTime and return hours/minutes format\n *\n * @param startTime string\n * @param endTime string\n * @returns string\n */\nexport const calculateDuration = ({\n startTime,\n endTime,\n}: {\n startTime: string;\n endTime: string;\n}): string => {\n // Convert JavaScript Date objects to Luxon DateTime objects\n const start = moment(startTime);\n const end = moment(endTime);\n\n // calculate difference\n const diff = end.diff(start, 'milliseconds');\n\n return formatDurationInMsToHourMinutes(diff);\n};\n","export const STREAM_API_KEY: string = import.meta.env.VITE_STREAM_API_KEY;\n","import { StreamChat } from 'stream-chat';\nimport { STREAM_API_KEY } from '../constants/streamApiKey';\n\nexport const chatClient = StreamChat.getInstance(STREAM_API_KEY ?? '');\n","export const formatCurrency = (value: number | null) : string => {\n if (value === null) return '0.00';\n\n return value.toLocaleString('en-US', {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n });\n}","export const formatMessageDate = (createdAt: string | Date) => {\n const messageDate =\n typeof createdAt === 'string' ? new Date(createdAt) : createdAt;\n const currentDate = new Date();\n\n // Check if the message was sent today\n const isToday = messageDate.toDateString() === currentDate.toDateString();\n\n if (isToday) {\n // If it's today, return the time\n return messageDate.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n } else {\n // If it's another day, return the date\n return messageDate.toLocaleDateString();\n }\n};\n","import moment from 'moment';\nimport { Notification } from '../types/Notification';\nimport { formatCurrency } from './formatCurrency';\n\ninterface FormattedNotification {\n sender: string;\n message: string;\n serviceTitle: string;\n on: string;\n date: string;\n price?: string;\n reason?: string;\n}\n\nexport const formatNotification = (\n notification: Notification,\n): FormattedNotification => {\n const {\n type,\n sender: { firstname, lastname },\n metadata,\n } = notification;\n\n const messages = {\n APPOINTMENT_CONFIRMED: 'accepted',\n APPOINTMENT_SETTLE_PAYMENT: 'requested payment',\n APPOINTMENT_REJECTED: 'rejected appointment',\n APPOINTMENT_COMPLETED: 'completed appointment',\n APPOINTMENT_PAYMENT_RECEIVED: 'received the payment for the appointment',\n APPOINTMENT_PAYMENT_SETTLED: 'paid for',\n APPOINTMENT_UPCOMING: 'has an upcoming appointment',\n APPOINTMENT_CREATED: 'requested',\n CHAT_MESSAGE_NEW: 'sent you a message',\n APPOINTMENT_RESCHEDULED: 'rescheduled',\n APPOINTMENT_CANCELLED: 'cancelled',\n APPOINTMENT_STARTED: 'started appointment',\n APPOINTMENT_PARTICIPANT_JOINED: 'requested to join',\n };\n\n return {\n sender: `${firstname} ${lastname}`,\n serviceTitle: metadata?.appointmentSession?.name ?? 'SERVICE_TITLE',\n message:\n type === 'APPOINTMENT_SETTLE_PAYMENT'\n ? `${messages[type]} $${formatCurrency((metadata?.appointmentSession?.price ?? 0) / 100)} for`\n : messages[type],\n date:\n (metadata &&\n metadata.appointmentSession &&\n metadata.appointmentSession.startTime &&\n moment(metadata.appointmentSession.startTime).format('MMM D, Y')) ??\n '',\n on: 'on',\n price: metadata?.appointmentSession?.price?.toString(),\n reason: metadata?.appointmentSession?.reasonForCancelOrReject,\n };\n};\n","export const generateProfileLink = (userId: string): string => {\n return `${import.meta.env.VITE_APP_DOMAIN}/t/${userId}`;\n};\n","import moment from 'moment';\nimport { UpcomingAppointment } from '../types';\nimport { AvailableHour } from '../types/AvailableHour';\n\nexport const generateUpcomingAppointments = (\n availabilityHours: AvailableHour[],\n month: number, // The month provided (0 = January, 1 = February, ..., 11 = December)\n year: number,\n): UpcomingAppointment[] => {\n console.log('Availability hours:', availabilityHours);\n console.log(`Generating appointments for month ${month}`);\n console.log(`Generating appointments for year ${year}`);\n const upcomingAppointments: UpcomingAppointment[] = [];\n\n availabilityHours.forEach((availability) => {\n const startMoment = moment(availability.start);\n const endMoment = moment(availability.end);\n\n // Confirm start and end moments\n console.log('Availability start time:', startMoment.format());\n console.log('Availability end time:', endMoment.format());\n\n const startDayOfWeek = startMoment.day();\n\n // Calculate the first occurrence of startDayOfWeek in the month\n const firstDayOfMonth = moment().year(year).month(month).startOf('month');\n let firstOccurrence = firstDayOfMonth.clone().day(startDayOfWeek);\n\n // Adjust if first occurrence is in the previous month\n if (firstOccurrence.month() !== month) {\n firstOccurrence.add(1, 'week');\n }\n\n console.log('First occurrence in month:', firstOccurrence.format());\n\n for (let i = 0; i < 5; i++) {\n const appointmentDate = firstOccurrence.clone().add(i, 'weeks');\n\n if (appointmentDate.month() !== month) {\n console.log(`Breaking on week ${i} as date exceeded month.`);\n break;\n }\n\n const startTime = appointmentDate.clone().set({\n hour: startMoment.hours(),\n minute: startMoment.minutes(),\n });\n\n const endTime = appointmentDate.clone().set({\n hour: endMoment.hours(),\n minute: endMoment.minutes(),\n });\n\n console.log('Generated appointment start time:', startTime.format());\n console.log('Generated appointment end time:', endTime.format());\n\n upcomingAppointments.push({\n id: startTime.toISOString(),\n appointmentId: startTime.toISOString(),\n status: 'CONFIRMED',\n price: 0,\n startTime: startTime.toISOString(),\n endTime: endTime.toISOString(),\n duration: 0,\n host: {\n id: '',\n firstname: '',\n lastname: '',\n email: '',\n },\n service: {\n id: '',\n classType: 'ONE_ON_ONE',\n description: '',\n category: '',\n durationPerSession: 0,\n gallery: [],\n maximumNumberOfGuests: 0,\n minimumNumberOfGuests: 0,\n requirements: [],\n serviceRate: 0,\n sessions: 0,\n theme: '',\n title: '',\n isDeleted: false,\n whatYouLearn: [],\n userId: '',\n hours: 0,\n minutes: 0,\n },\n });\n }\n });\n\n console.log('Upcoming appointments:', upcomingAppointments);\n\n return upcomingAppointments;\n};\n","import { Host, Sender, TellyUser } from '../types';\n\nexport const getInitials = (\n user: TellyUser | Host | Sender | string | undefined | null,\n): string => {\n if (!user) {\n return 'TU';\n }\n\n if (user === undefined) {\n return 'TU';\n }\n\n if (typeof user === 'string') {\n const words = user.trim().split(/\\s+/);\n const firstInitial = words[0]?.charAt(0) ?? 'T';\n const lastInitial = words[words.length - 1]?.charAt(0) ?? 'U';\n return `${firstInitial}${lastInitial}`;\n }\n\n const firstInitial = user?.firstname.charAt(0) ?? 'T';\n const lastInitial = user?.lastname.charAt(0) ?? 'U';\n\n return `${firstInitial}${lastInitial}`;\n};\n","import moment from 'moment';\nimport momentTimezone from 'moment-timezone';\n\nexport function getTimezoneAbbreviationOld(): string {\n const timeZone = moment.tz.guess(); // Guess the user's timezone\n const abbreviation = moment.tz(timeZone).format('z'); // Get the timezone abbreviation\n return abbreviation;\n}\n\n\nexport function getTimezoneAbbreviation(): string {\n const timeZone = momentTimezone.tz.guess();\n const offset = momentTimezone.tz(timeZone).utcOffset();\n\n // Convert minutes to hours and minutes\n const hours = Math.floor(Math.abs(offset) / 60);\n const minutes = Math.abs(offset) % 60;\n\n // Format with padding\n const sign = offset >= 0 ? '+' : '-';\n const formattedHours = hours.toString().padStart(2, '0');\n const formattedMinutes = minutes.toString().padStart(2, '0');\n\n return `GMT${sign}${formattedHours}:${formattedMinutes}`;\n}","export const isValidUrl = (url?: string): boolean => {\n if (!url) return false;\n\n try {\n new URL(url);\n return true;\n } catch (e) {\n return false;\n }\n};\n","import { AuthState } from '../types/Auth';\n\n// Load user from localStorage on app initialization\nexport const loadUserFromLocalStorage = (): AuthState['user'] => {\n const user = localStorage.getItem('USER');\n return user ? JSON.parse(user) : null;\n};\n","export const openInNewTab = (url: string) => {\n const win = window.open(url, '_blank');\n\n if (!win) {\n alert('Popup was blocked! Please enable popups for this site.');\n } else {\n win?.focus();\n }\n};\n","import { Role } from '../types';\n\nexport const saveRoleInLocalStorage = (role: Role): void => {\n localStorage.setItem('ROLE', role);\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const AddToCalendarIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ArchiveIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CalendarIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CameraIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CheckIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CheckBoxIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ClockIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CloseIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CopyIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const DeleteIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const EditIcon = (props: SvgIconProps) => (\n \n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const EllipsisIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ErrorIcon = ({ className }: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const MicOffIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const MicOnIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const QrIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ScreenShareIcon = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ScreenShareOffIcon = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const SearchIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ShareIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const FbIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const XIcon = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n\nexport const InstaIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const LinkedInIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const WebIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const SuccessIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const SwapIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const TimeIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const UserIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const VideoIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const VideoOffIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const VideoOnIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const VisibleIcon: React.FC = (props: SvgIconProps) => (\n \n);\n\n\nexport const VisibleOffIcon: React.FC = (props: SvgIconProps) => (\n \n);","import { SvgIconProps } from './SvgIconProps';\n\nexport const WarningIcon = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const ChatIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n );\n};\n","import { Bounce, toast } from 'react-toastify';\nimport { SuccessIcon } from '../components/icons';\nimport { ErrorIcon } from '../components/icons/Error';\n\ninterface ToastProps {\n message: string;\n}\n\nconst SuccessToast: React.FC = ({\n message,\n}: {\n message: string;\n}) => {\n return (\n <>\n
\n
\n \n
\n {message}\n
\n \n );\n};\n\nconst ErrorToast: React.FC = ({ message }: { message: string }) => {\n return (\n <>\n
\n
\n \n
\n {message}\n
\n \n );\n};\n\nexport const showSuccess = (message: string) => {\n console.log('showSuccess triggered');\n\n toast.success(, {\n position: 'top-center',\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n theme: 'light',\n transition: Bounce,\n icon: false,\n progressClassName: 'text-success',\n closeButton: false,\n });\n};\n\nexport const showError = (message: string) =>\n toast.error(, {\n position: 'top-center',\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n theme: 'light',\n transition: Bounce,\n icon: false,\n progressClassName: 'text-success',\n closeButton: false,\n });\n","export const toSentenceCase = (text: string): string => {\n if (!text) return '';\n return text.charAt(0).toUpperCase() + text.slice(1).toLowerCase();\n};\n","import { Bounce, toast } from \"react-toastify\";\nimport { ChatIcon } from \"../components/icons\";\n\ninterface ToastProps {\n message: string;\n}\n\nconst MessageToast: React.FC = ({\n message,\n}: {\n message: string;\n}) => {\n return (\n <>\n
\n {message} \n
\n \n\n );\n};\n\nexport const showMessage = (message: string) => {\n toast.info(, {\n position: 'top-right',\n autoClose: 3000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n theme: 'light',\n transition: Bounce,\n icon: ,\n progressClassName: 'text-success',\n closeButton: false,\n });\n};","import { Channel, DefaultGenerics } from 'stream-chat';\nimport { chatClient } from '../utils';\n\nexport const getOrCreateChannel = async ({\n otherUserId,\n channelId,\n}: {\n otherUserId?: string;\n channelId?: string;\n}): Promise | null> => {\n const userId = chatClient.userID; // JSON.parse(localStorage.getItem('user') ?? '{}')?.id;\n\n if (!otherUserId && !channelId) {\n return null;\n }\n\n var channel;\n\n if (!userId) {\n return null;\n }\n\n if (channelId) {\n channel = chatClient.channel('messaging', channelId, {\n members: [userId],\n });\n } else if (otherUserId) {\n channel = chatClient.channel('messaging', null, {\n members: [userId, otherUserId],\n });\n } else {\n return null;\n }\n\n await channel.create();\n\n return channel;\n};\n","import { GetNotificationsPayload, Role } from '../types';\nimport { Notification } from '../types/Notification';\nimport apiClient from './axios';\n\nconst NOTIFICATIONS_BASE_ENDPOINT: string = '/notifications';\n\ntype Pagination = {\n data: T[];\n currentPage: number;\n totalPages: number;\n hasMore: boolean;\n};\n\ntype PaginatedNotification = Pagination;\n\nconst getNotifications = async ({\n // read,\n role,\n skip,\n take,\n}: GetNotificationsPayload = {}): Promise => {\n try {\n const response = await apiClient.get(NOTIFICATIONS_BASE_ENDPOINT, {\n params: {\n // read,\n role,\n skip,\n take,\n },\n });\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nconst getV1Notifications = async ({\n // read,\n role,\n take = 10,\n page = 1,\n}: {\n role: Role;\n take: number;\n page: number;\n}): Promise => {\n try {\n const response = await apiClient.get(\n `/v1/notifications`,\n {\n params: {\n // read,\n role,\n take,\n page,\n },\n },\n );\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nconst deleteNotification = async ({ id }: { id: string }) => {\n const response = await apiClient.delete(\n `${NOTIFICATIONS_BASE_ENDPOINT}/${id}`,\n );\n\n return response.data;\n};\n\nconst markNotificationAsRead = async (id: string) => {\n const response = await apiClient.patch(\n `${NOTIFICATIONS_BASE_ENDPOINT}/read/${id}`,\n );\n\n return response.data;\n};\n\nconst markAllNotificationAsRead = async () => {\n const response = await apiClient.post(\n `${NOTIFICATIONS_BASE_ENDPOINT}/read/all`,\n );\n\n return response.data;\n};\n\nexport {\n deleteNotification,\n getNotifications,\n getV1Notifications,\n markAllNotificationAsRead,\n markNotificationAsRead,\n};\n","import moment from 'moment';\nimport { WorkExperiencePayload } from '../types';\nimport { mapUserDtoToTellyUser, TellyUser } from '../types/User';\nimport { WorkExperience } from '../types/WorkExperience';\nimport { Success } from './auth';\nimport apiClient from './axios';\n\nexport const profile = async (\n userId: string,\n): Promise => {\n try {\n const response = await apiClient.get(`/users/${userId}`, {\n params: {\n workExperience: true,\n services: true,\n },\n });\n\n console.dir(response.data);\n\n if (response.data == null || response.data == '') {\n throw 'User not found';\n }\n\n return mapUserDtoToTellyUser(response.data);\n } catch (e) {\n throw e;\n }\n};\n\nexport const addWorkExperience = async (\n data: WorkExperiencePayload,\n): Promise => {\n /// convert to payload esp the dates\n const payload = {\n dateFrom: moment(data.dateFrom).utc().toISOString(),\n dateTo: moment(data.dateTo).utc().toISOString(),\n companyName: data.companyName,\n jobTitle: data.jobTitle,\n description: data.description,\n };\n\n try {\n const response = await apiClient.post(`/user/work-experience`, payload);\n\n return response.data;\n } catch (e) {\n console.log(e);\n }\n};\n\nexport const updateWorkExperience = async (\n data: WorkExperiencePayload,\n id: string,\n): Promise => {\n /// convert to payload esp the dates\n const payload = {\n dateFrom: moment(data.dateFrom).utc().toISOString(),\n dateTo: data.dateTo && moment(data.dateTo).utc().toISOString(),\n companyName: data.companyName,\n jobTitle: data.jobTitle,\n description: data.description,\n };\n\n try {\n const response = await apiClient.patch(\n `/user/work-experience/${id}`,\n payload,\n );\n\n return response.data;\n } catch (e) {\n console.log(e);\n }\n};\n\nexport const deleteWorkExperience = async (\n id: string,\n): Promise => {\n try {\n const response = await apiClient.delete(`/user/work-experience/${id}`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n }\n};\n","import { TellyUser } from '../types';\nimport apiClient from './axios';\n\nexport const getUserById = async (userId: string): Promise => {\n try {\n const response = await apiClient.get(`/users/${userId}`, {});\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n","import {\n AppointmentSession,\n BookServicePayload,\n CreateServicePayload,\n mapServiceDtoToService,\n Service,\n ServiceDto,\n UpdateServicePayload,\n} from '../types';\nimport { Success } from './auth';\nimport apiClient from './axios';\nimport { getUserById } from './user';\n\nexport const getServicesByUser = async (userId: string): Promise => {\n try {\n const response = await apiClient.get(`/users/${userId}`, {\n params: {\n services: true,\n },\n });\n\n // const services: Service[] = response.data.Service;\n\n // if (Array.isArray(services)) {\n // const bookingPromises = services.map((service, index) => {\n // const schedule = schedules[index];\n // return bookService({\n // serviceId: service.id,\n // startTime: moment(schedule.startTime),\n // endTime: moment(schedule.endTime),\n // });\n // });\n\n // // Wait for all booking promises to resolve\n // await Promise.all(bookingPromises);\n // }\n\n // console.dir(services);\n\n // console.log(response.data);\n return response.data.Service.map((service: ServiceDto) =>\n mapServiceDtoToService(service),\n );\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const createService = async ({\n title,\n category,\n class_type,\n description,\n duration_per_session,\n cancellationPolicy,\n sessions,\n service_rate,\n requirements,\n what_you_learn,\n theme,\n gallery,\n availabilityHours,\n}: CreateServicePayload) => {\n try {\n const formData = new FormData();\n\n // Append other service details to the FormData object\n formData.append('title', title);\n formData.append('category', category);\n formData.append('class_type', class_type);\n formData.append('description', description);\n formData.append(\n 'duration_per_session',\n duration_per_session?.toString() ?? '0',\n );\n formData.append('cancellationPolicy', cancellationPolicy ?? '');\n formData.append('sessions', sessions.toString());\n formData.append('service_rate', service_rate.toString());\n formData.append('requirements', JSON.stringify(requirements));\n formData.append('what_you_learn', JSON.stringify(what_you_learn));\n formData.append('theme', theme);\n formData.append(\n 'availabilityHours',\n availabilityHours ? JSON.stringify(availabilityHours) : '[]',\n );\n\n // Append each file in the gallery to the FormData object\n if (gallery && gallery.length > 0) {\n gallery.forEach((file: File) => {\n formData.append('file', file); // Use the same name as your backend expects\n });\n }\n\n // Make the API request\n const response = await apiClient.post(`/services`, formData, {\n headers: {\n 'Content-Type': 'multipart/form-data', // Important for file uploads\n },\n });\n\n return mapServiceDtoToService(response.data);\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const updateService = async ({\n serviceId,\n title,\n category,\n class_type,\n description,\n duration_per_session,\n cancellationPolicy,\n sessions,\n service_rate,\n requirements,\n what_you_learn,\n theme,\n gallery,\n availabilityHours,\n}: UpdateServicePayload) => {\n try {\n const formData = new FormData();\n\n // Append other service details to the FormData object\n formData.append('title', title);\n formData.append('category', category);\n formData.append('class_type', class_type);\n formData.append('description', description);\n formData.append(\n 'duration_per_session',\n duration_per_session?.toString() ?? '0',\n );\n formData.append('cancellationPolicy', cancellationPolicy ?? '');\n formData.append('sessions', sessions.toString());\n formData.append('service_rate', service_rate.toString());\n formData.append('requirements', JSON.stringify(requirements));\n formData.append('what_you_learn', JSON.stringify(what_you_learn));\n formData.append('theme', theme);\n formData.append(\n 'availabilityHours',\n availabilityHours ? JSON.stringify(availabilityHours) : '[]',\n );\n\n // Append each file in the gallery to the FormData object\n if (gallery && gallery.length > 0) {\n gallery.forEach((file: File) => {\n formData.append('file', file); // Use the same name as your backend expects\n });\n }\n\n // Make the API request\n const response = await apiClient.patch(`/services/${serviceId}`, formData, {\n headers: {\n 'Content-Type': 'multipart/form-data', // Important for file uploads\n },\n });\n\n return mapServiceDtoToService(response.data);\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const getService = async (id: string): Promise => {\n try {\n const response = await apiClient.get(`/services/${id}`);\n\n const parsed = mapServiceDtoToService(response.data);\n\n /// fetch user info\n const host = await getUserById(parsed.userId);\n\n /// append user info\n const service = {\n ...parsed,\n host: host,\n };\n\n console.log(service);\n\n return service;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const deleteService = async (\n id: string,\n): Promise => {\n try {\n const response = await apiClient.delete(`/services/${id}`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const deleteServiceGallery = async ({\n id,\n images,\n}: {\n id: string;\n images: string[];\n}): Promise => {\n try {\n const response = await apiClient.delete(\n `/services/${id}/gallery`,\n {\n data: {\n images: images,\n },\n },\n );\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const bookService = async ({\n appointmentId,\n serviceId,\n startTime,\n endTime,\n}: BookServicePayload): Promise => {\n /// do not handle\n\n try {\n ///\n const response = await apiClient.post(\n `/appointments/sessions`,\n {\n appointmentId,\n serviceId,\n startTime: startTime.toISOString(), // .toISOString(),\n endTime: endTime.toISOString(), //.toISOString(),\n },\n );\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n","import apiClient from './axios';\n\ninterface UrlResponse {\n url: string;\n}\n\nexport const stripeLogin = async (): Promise => {\n try {\n const response = await apiClient.get('/stripe/login');\n\n return response.data;\n } catch (e) {\n console.error(e);\n throw e;\n }\n};\n\nexport const stripeConnect = async (): Promise => {\n try {\n const response = await apiClient.post(\n '/stripe/create-account',\n );\n\n return response.data;\n } catch (e) {\n console.error(e);\n throw e;\n }\n};\n\n// export const getStripeAccount = async (): Promise<\n// StripeAccount | undefined\n// > => {\n// try {\n// const response = await apiClient.get(`/stripe/account`);\n\n// return response.data;\n// } catch (e) {\n// console.error(e);\n// Promise.reject(e);\n// }\n// };\n","import { Transaction } from '../store/transactionsSlice';\nimport { GuestPendingTransaction } from '../types';\nimport { PendingTransaction } from '../types/PendingTransaction';\nimport { TransactionsSummary } from '../types/TransactionsSummary';\nimport apiClient from './axios';\n\nconst TRANSACTIONS = '/transactions';\n\nexport const getPaidTransactions = async (): Promise => {\n try {\n const response = await apiClient.get(`${TRANSACTIONS}`, {\n params: {\n type: 'PAID',\n },\n });\n\n return response.data;\n } catch (e) {\n console.error(e);\n\n return [];\n }\n};\n\nexport const getReceivedTransactions = async (): Promise => {\n try {\n const response = await apiClient.get(`${TRANSACTIONS}`, {\n params: {\n type: 'RECEIVED',\n },\n });\n\n return response.data;\n } catch (e) {\n console.error(e);\n\n return [];\n }\n};\n\nexport const getPendingTransactions = async (): Promise<\n PendingTransaction[]\n> => {\n try {\n const response = await apiClient.get(\n `${TRANSACTIONS}/pending`,\n );\n\n return response.data;\n } catch (e) {\n console.error(e);\n\n return [];\n }\n};\n\nexport const getGuestPendingTransactions = async (): Promise<\n GuestPendingTransaction[]\n> => {\n try {\n const response = await apiClient.get(\n `/appointments/sessions/all/GUEST`,\n {\n params: {\n isPaid: false,\n status: 'CONFIRMED',\n },\n },\n );\n\n return response.data;\n } catch (e) {\n console.error(e);\n\n return [];\n }\n};\n\nexport const getTransactionsSummary = async (): Promise<\n TransactionsSummary | undefined\n> => {\n try {\n const response = await apiClient.get(`/transactions/summary`);\n\n /// convert amounts\n const data = {\n totalEarningsCount: response.data.totalEarningsCount / 100,\n paymentsReceived: response.data.paymentsReceived,\n pendingPaymentsCount: response.data.pendingPaymentsCount,\n cancelledAppointmentSessionsCount:\n response.data.cancelledAppointmentSessionsCount,\n };\n\n console.dir(data);\n\n return data;\n } catch (e) {\n console.error(e);\n }\n};\n\nexport const getTransaction = async (\n transactionId: string,\n): Promise => {\n try {\n const response = await apiClient.get(`/transactions/${transactionId}`);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n","import axios, { AxiosError, AxiosInstance } from 'axios';\nimport { firebaseAuth } from '../firebaseConfig';\nimport { logout } from '.';\n\nconst apiClient: AxiosInstance = axios.create({\n baseURL: import.meta.env.VITE_API_BASE_URL, // Base URL from environment variables\n timeout: 30 * 1000, // Request timeout\n headers: {\n 'Content-Type': 'application/json',\n 'x-tellycom-client-id': '88ULaPcyTPMSpct'\n },\n});\n\n// Function to check if token is expired\nconst isTokenExpired = () => {\n const expiration = localStorage.getItem('API_TOKEN_EXPIRATION');\n if (!expiration) return true; // If there's no expiration timestamp, assume expired\n return Date.now() >= Number(expiration);\n};\n\n// Token expires after 59 minutes instead of 60\nconst TOKEN_LIFESPAN = 59 * 60 * 1000; // 59 minutes\n\napiClient.interceptors.request.use(\n async (config) => {\n ///\n let storedToken = localStorage.getItem('API_TOKEN');\n\n if (!!storedToken && !isTokenExpired()) {\n config.headers['Authorization'] = `Bearer ${storedToken}`;\n\n return config;\n }\n\n // Token is expired or missing, refresh it\n try {\n const newToken = await firebaseAuth.currentUser?.getIdToken(true); // Force refresh\n if (newToken) {\n const expirationTime = Date.now() + TOKEN_LIFESPAN; // Firebase token lasts 1 hour\n localStorage.setItem('API_TOKEN', newToken);\n localStorage.setItem('API_TOKEN_EXPIRATION', expirationTime.toString());\n\n config.headers['Authorization'] = `Bearer ${newToken}`;\n }\n } catch (error) {\n console.error('Error refreshing token:', error);\n logout();\n }\n\n return config;\n },\n (error) => Promise.reject(error),\n);\n\n// Response interceptor\napiClient.interceptors.response.use(\n (response) => response,\n async (error) => {\n const originalRequest = error.config;\n\n // If token expired (status 498) and retry hasn't been attempted\n if (error.response?.status === 498 && !originalRequest._retry) {\n originalRequest._retry = true;\n return refreshAccessToken(originalRequest);\n }\n\n // For other errors, use standard error handler\n return handleAxiosError(error);\n },\n);\n\nconst handleAxiosError = (error: AxiosError) => {\n if (error.response) {\n // Server responded with a status other than 2xx\n console.error(\n `Error: ${error.response.status} - ${error.response.statusText}`,\n );\n if (error.response.data) {\n console.error('Error details:', error.response.data);\n }\n return Promise.reject(error.response.data); // Reject with error response data\n } else if (error.request) {\n // Request was made but no response received\n console.error('Network error, no response received:', error.message);\n return Promise.reject({ message: 'Network error. Please try again.' });\n } else {\n // Something went wrong setting up the request\n console.error('Request error:', error.message);\n return Promise.reject({\n message: 'Unexpected error occurred. Please try again.',\n });\n }\n};\n\n// Refresh Token Logic\nconst refreshAccessToken = async (originalRequest: any) => {\n try {\n const newToken = await firebaseAuth.currentUser?.getIdToken(true); // Force refresh\n if (newToken) {\n localStorage.setItem('API_TOKEN', newToken);\n apiClient.defaults.headers.common['Authorization'] = `Bearer ${newToken}`;\n originalRequest.headers['Authorization'] = `Bearer ${newToken}`;\n return apiClient(originalRequest); // Retry the original request with new token\n }\n } catch (refreshError) {\n return Promise.reject(refreshError);\n }\n};\n\nexport default apiClient;\n","import { signOut } from 'firebase/auth';\nimport { TellyUserDto } from '../dtos/TellyUserDto';\nimport { firebaseAuth } from '../firebaseConfig';\nimport { StripeAccountDto } from '../store/stripeAccountSlice';\nimport { SignupPayload } from '../types/Auth';\nimport { CheckoutSuccess } from '../types/CheckoutSuccess';\nimport { Role } from '../types/Role';\nimport { Service } from '../types/Service';\nimport { SubscriptionInterval } from '../types/SubscriptionInterval';\nimport { TrialPeriod } from '../types/TrialPeriod';\nimport { UpdateProfilePayload } from '../types/UpdateProfilePayload';\nimport { mapUserDtoToTellyUser, SocialAccount, TellyUser } from '../types/User';\nimport apiClient from './axios';\n\ninterface UserToken {\n token: string;\n}\n\nexport interface Success {\n success: boolean;\n}\n\n/// get current user\nexport const getUser = async (): Promise => {\n const response = await apiClient.get('/user', {\n params: {\n workExperience: true,\n services: true,\n },\n });\n\n const user = mapUserDtoToTellyUser(response.data);\n\n /// get role\n const result = await firebaseAuth.currentUser?.getIdTokenResult();\n\n let role: Role;\n\n if (result?.claims != null) {\n /// get role from claims\n role = result.claims['role'] as Role;\n localStorage.setItem('ROLE', role);\n } else {\n role = 'GUEST';\n }\n\n return { ...user, activeRole: role };\n};\n\nexport const signupUser = async ({\n accountType,\n email,\n password,\n firstname,\n lastname,\n contactNumber,\n hasAgreedToTerms,\n}: SignupPayload): Promise => {\n try {\n const response = await apiClient.post(\n `/auth/signup/${accountType}`,\n {\n email,\n password,\n firstname,\n lastname,\n contact_number: contactNumber,\n hasAgreedToTerms: hasAgreedToTerms,\n },\n );\n\n window.rewardful('convert', { email: email, });\n\n return response.data;\n } catch (e) {\n console.error(e);\n throw e;\n }\n};\n\nexport const requestResetPassword = async ({\n email,\n}: {\n email: string;\n}): Promise => {\n const response = await apiClient.post(\n '/auth/request-password-reset',\n {\n email,\n },\n );\n\n return response.data;\n};\n\nexport const tokenProvider = async (): Promise => {\n const streamToken = localStorage.getItem('STREAM_TOKEN');\n\n if (!!streamToken) return streamToken;\n\n const response = await apiClient.post('/auth/getstream-token');\n\n const token = response.data.token;\n\n localStorage.setItem('STREAM_TOKEN', token);\n\n return token;\n};\n\nexport const getStripeAccount = async (): Promise => {\n try {\n const response = await apiClient.get(`/stripe/account`);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const switchRole = async (role: Role): Promise => {\n try {\n const response = await apiClient.post(`/auth/switch-role/${role}`);\n\n localStorage.setItem('ROLE', role);\n\n /// update token as well\n if (response.data.success) {\n const bearerToken = await firebaseAuth.currentUser?.getIdToken(true);\n\n localStorage.setItem('API_TOKEN', bearerToken ?? 'INVALID_TOKEN');\n }\n\n console.log(response.data);\n\n return true;\n } catch (e) {\n return false;\n }\n};\n\nexport const updateUser = async (\n payload: UpdateProfilePayload,\n): Promise => {\n try {\n // Create a FormData object\n const formData = new FormData();\n\n // Append each field from the payload to FormData\n // Assuming the payload includes fields like name, email, and profileImage (which is a File)\n formData.append('firstname', payload.firstname ?? '');\n formData.append('lastname', payload.lastname ?? '');\n formData.append('profession', payload.profession ?? '');\n formData.append('about', payload.about ?? '');\n formData.append('contact_number', payload.contactNumber ?? '');\n\n // Check if an image file is present and append it to FormData\n if (payload.avatar) {\n formData.append('avatar', payload.avatar);\n }\n\n if (payload.cover_photo) {\n formData.append('cover_photo', payload.cover_photo);\n }\n\n const response = await apiClient.patch(`/user`, formData, {\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n\n return response.data;\n } catch (e) {\n console.error(e);\n throw e;\n }\n};\n\nexport const updateSocialAccounts = async (\n payload: SocialAccount[],\n): Promise => {\n try {\n const response = await apiClient.patch(`/user`, {\n socialAccounts: payload,\n });\n\n return response.data;\n } catch (e) {\n console.error(e);\n }\n};\n\nexport const updatePassword = async (\n password: string,\n): Promise => {\n try {\n const response = await apiClient.post(`/auth/update-password`, {\n password: password,\n });\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const agreeToTermsAndConditions = async () => {\n try {\n const response = await apiClient.patch(`/user`, {\n hasAgreedToTermsAndConditions: true,\n });\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const deactivateAccount = async (): Promise => {\n try {\n const response = await apiClient.post(`/user/deactivate`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const reactivateUser = async (): Promise => {\n try {\n const response = await apiClient.post(`/user/reactivate`);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const deleteAccount = async (): Promise => {\n try {\n const response = await apiClient.delete(`/user`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const cancelSubscription = async (\n reason: string,\n): Promise => {\n try {\n const response = await apiClient.post(`/stripe/cancel-subscription`, {\n reason: reason,\n });\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const getServices = async (): Promise => {\n try {\n const response = await apiClient.get(`/user/services`);\n\n return response.data;\n } catch (e) {\n console.log(e);\n }\n};\n\nexport const logout = async () => {\n await signOut(firebaseAuth);\n\n localStorage.clear();\n\n /// force clear history\n window.location.href = \"/login\"; // Forces a full reload, clearing history\n};\n\nexport const upgradeToTrial = async (): Promise => {\n try {\n const response =\n await apiClient.post(`/user/upgrade/TRIAL`);\n\n // await switchRole('TRIAL');\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const upgradeToHost = async (\n subscriptionInterval: SubscriptionInterval,\n): Promise => {\n try {\n const response = await apiClient.post(\n `/user/upgrade/HOST/${subscriptionInterval}`,\n );\n\n return response.data;\n } catch (e) {\n console.log(e);\n throw e;\n }\n};\n\nexport const getTrialPeriod = async (): Promise => {\n try {\n const response = await apiClient.get(`/user/trial-period`);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n\nexport const resetPassword = async ({\n token,\n password,\n confirmPassword,\n}: {\n token: string;\n password: string;\n confirmPassword: string;\n}): Promise => {\n try {\n const response = await apiClient.post('/auth/reset-password', {\n token,\n password,\n confirmPassword,\n });\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n","export const API_TOKEN = 'API_TOKEN';\nexport const USER = 'USER';\nexport const ROLE = 'ROLE';\nexport const IDLE = 'idle';\nexport const LOADING = 'loading';\nexport const SUCCEEDED = 'succeeded';\nexport const DISABLED = 'disabled';\nexport const FAILED = 'failed';\nexport const LOGOUT = 'logout';\n","const MONTHLY_SUBSCRIPTION_FEE = 19.99;\nconst ANNUAL_SUBSCRIPTION_FEE = 180;\n\nexport { ANNUAL_SUBSCRIPTION_FEE, MONTHLY_SUBSCRIPTION_FEE };\n","export const APP_NAME = 'Tellycom';\n","export const weekday = [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday',\n];\n","export const SERVICE_THEMES = {\n '#000000': 'bg-[#000000]',\n '#673BB7': 'bg-[#673BB7]',\n '#4DAF64': 'bg-[#4DAF64]',\n '#f44336': 'bg-[#f44336]',\n '#2196F3': 'bg-[#2196F3]',\n '#FFEB3C': 'bg-[#FFEB3C]',\n '#FF9700': 'bg-[#FF9700]',\n '#EA1E63': 'bg-[#EA1E63]',\n '#03A9F5': 'bg-[#03A9F5]',\n '#E57373': 'bg-[#E57373]',\n};\n","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport {\n createAsyncThunk,\n createSelector,\n createSlice,\n PayloadAction,\n} from '@reduxjs/toolkit';\nimport { FirebaseError } from 'firebase/app';\nimport {\n browserLocalPersistence,\n // browserSessionPersistence,\n GoogleAuthProvider,\n OAuthProvider,\n setPersistence,\n signInWithEmailAndPassword,\n signInWithPopup,\n signOut,\n} from 'firebase/auth';\nimport { API_TOKEN, } from '../constants';\nimport { firebaseAuth } from '../firebaseConfig';\nimport { reactivateUser } from '../services';\nimport { getUser, switchRole, updateUser } from '../services/auth';\nimport { AuthState, LoginPayload } from '../types/Auth';\nimport { Role } from '../types/Role';\nimport { UpdateProfilePayload } from '../types/UpdateProfilePayload';\nimport { SocialAccount, TellyUser } from '../types/User';\nimport { WorkExperience } from '../types/WorkExperience';\nimport { loadUserFromLocalStorage } from '../utils/loadUserFromLocalStorage';\nimport { saveRoleInLocalStorage } from '../utils/saveRoleInLocalStorage';\nimport { AppState } from './index';\nimport { Service } from '../types';\n\n// authLocalStorage.ts\nexport const storeUserDataInLocalStorage = (user: TellyUser) => {\n localStorage.setItem('USER', JSON.stringify(user));\n};\n\nconst googleProvider = new GoogleAuthProvider();\n\nconst appleProvider = new OAuthProvider('apple.com');\n\nconst initialState: AuthState = {\n user: loadUserFromLocalStorage(),\n status: 'idle',\n error: null,\n};\n\n/// handle firebase error\nconst handleFirebaseError = (error: FirebaseError): string => {\n const errorCode = error.code;\n\n switch (errorCode) {\n case 'auth/user-disabled':\n return 'The account you are trying to access has requested deletion. Please contact support at support@tellycom.io to restore the account.';\n case 'auth/wrong-password':\n case 'auth/invalid-credential':\n return 'Invalid email or password';\n case 'auth/email-already-in-use':\n return 'This email is already registered to another account. If you own this email, use login instead.';\n case 'auth/invalid-email':\n return 'The email you provided is invalid';\n case 'auth/user-not-found':\n return 'We did not find any record for that user';\n case 'auth/popup-blocked':\n return 'The login popup failed to open. Please enable popup in your browser.';\n case 'auth/too-many-requests':\n return 'You have exceeded the maximum allowed attempts. Please try again later.';\n case 'auth/unverified-email':\n return 'Please verify your email to continue using our application.';\n default:\n return 'Unknown Error';\n }\n};\n\n// Async thunk for logging in\nexport const loginAsync = createAsyncThunk(\n 'auth/loginAsync',\n async ({ email, password, remember }: LoginPayload, { rejectWithValue }) => {\n console.log(`----- remember ${remember} -----`);\n try {\n // Set persistence based on \"Remember Me\"\n // if (remember) {\n await setPersistence(firebaseAuth, browserLocalPersistence); // Persistent session\n // } else {\n // await setPersistence(firebaseAuth, browserSessionPersistence); // Session-only\n // }\n\n /// login to firebase\n const response = await signInWithEmailAndPassword(\n firebaseAuth,\n email,\n password,\n );\n\n console.log(response);\n\n /// save token\n const token = await firebaseAuth.currentUser?.getIdTokenResult();\n\n if (token !== undefined && token !== null) {\n localStorage.setItem(API_TOKEN, token.token);\n\n const expirationTime = Date.now() + 3600 * 1000; // Firebase token lasts 1 hour\n localStorage.setItem('API_TOKEN_EXPIRATION', expirationTime.toString());\n }\n\n /// get user from telly backend\n const userFromBackend = await getUser();\n\n ///\n storeUserDataInLocalStorage(userFromBackend);\n\n return userFromBackend;\n } catch (error) {\n if (error instanceof FirebaseError) {\n console.log(error.code);\n\n return rejectWithValue(handleFirebaseError(error));\n } else {\n return rejectWithValue((error as Error).message);\n }\n }\n },\n);\n\nexport const googleLoginAsync = createAsyncThunk(\n 'auth/googleLoginAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n const userCredential = await signInWithPopup(\n firebaseAuth,\n googleProvider,\n );\n\n /// get token for the user\n const token = await firebaseAuth.currentUser?.getIdToken();\n\n /// store\n if (token) {\n localStorage.setItem(API_TOKEN, token);\n }\n\n if (userCredential.user != null) {\n /// get user from telly backend\n const userFromBackend = await getUser();\n\n console.dir(userFromBackend);\n\n /// store user so if the user refreshes the page\n /// the user gets reloaded\n storeUserDataInLocalStorage(userFromBackend);\n\n return userFromBackend;\n } else {\n return rejectWithValue('Failed to retrieve user');\n }\n } catch (error) {\n if (error instanceof FirebaseError) {\n return rejectWithValue(handleFirebaseError(error));\n } else {\n return rejectWithValue((error as Error).message);\n }\n }\n },\n);\n\nexport const appleLoginAsync = createAsyncThunk(\n 'auth/appleLoginAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n const userCredential = await signInWithPopup(firebaseAuth, appleProvider);\n\n /// get token for the user\n const token = await firebaseAuth.currentUser?.getIdToken();\n\n /// store\n if (token) {\n localStorage.setItem(API_TOKEN, token);\n }\n\n if (userCredential.user != null) {\n /// get user from telly backend\n const userFromBackend = await getUser();\n\n console.dir(userFromBackend);\n\n /// store user so if the user refreshes the page\n /// the user gets reloaded\n storeUserDataInLocalStorage(userFromBackend);\n\n return userFromBackend;\n } else {\n return rejectWithValue('Failed to retrieve user');\n }\n } catch (error) {\n if (error instanceof FirebaseError) {\n return rejectWithValue(handleFirebaseError(error));\n } else {\n return rejectWithValue((error as Error).message);\n }\n }\n },\n);\n\nexport const reactivateAsync = createAsyncThunk(\n 'auth/reactivateUserAsync',\n async (_, { rejectWithValue }) => {\n try {\n const user = await reactivateUser();\n\n storeUserDataInLocalStorage(user);\n\n return user;\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\n// Update User Profile\nexport const updateUserAsync = createAsyncThunk(\n 'auth/updateUserAsync',\n async (payload: UpdateProfilePayload, { rejectWithValue }) => {\n try {\n const updatedUser: TellyUser | undefined = await updateUser(payload);\n\n const timestamp = (new Date()).getTime();\n\n const updatedAvatar = updatedUser?.avatar == null ? '' : `${updatedUser.avatar}?updatedAt=${timestamp}`;\n const updatedCoverPhoto = updatedUser?.cover_photo == null ? '' : `${updatedUser.cover_photo}?updatedAt=${timestamp}`;\n\n console.log(`updatedAvatar: ${updatedAvatar}`);\n console.log(`updatedCoverPhoto: ${updatedCoverPhoto}`);\n\n const userToStore = {\n ...updatedUser,\n avatar: updatedAvatar,\n cover_photo: updatedCoverPhoto,\n }\n\n // Update the user in local storage if profile is updated\n if (updatedUser) {\n storeUserDataInLocalStorage(userToStore); // Save updated user to localStorage\n }\n\n return userToStore;\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\n// Update User Profile\nexport const switchRoleAsync = createAsyncThunk(\n 'auth/switchRoleAsync',\n async (role: Role, { rejectWithValue }) => {\n try {\n const response: boolean | undefined = await switchRole(role);\n\n // Update the user in local storage if profile is updated\n if (response) {\n saveRoleInLocalStorage(role); // Save updated user to localStorage\n }\n\n return role;\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\n// Async thunk for loading user\nexport const loadUserAsync = createAsyncThunk(\n 'auth/loadUserAsync',\n async (reload: boolean, { rejectWithValue }) => {\n try {\n // get user from storage\n const userFromStorage = loadUserFromLocalStorage();\n\n /// if reload is false, return the user from storage\n if (userFromStorage && !reload) {\n return userFromStorage;\n }\n\n /// get user from telly backend\n const userFromBackend = await getUser();\n\n console.dir(userFromBackend);\n\n /// store user so if the user refreshes the page\n /// the user gets reloaded\n storeUserDataInLocalStorage(userFromBackend);\n\n return userFromBackend;\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\n// Async thunk for logging out\nexport const logoutAsync = createAsyncThunk(\n 'auth/logoutAsync',\n async (_, { rejectWithValue }) => {\n try {\n await signOut(firebaseAuth);\n\n /// clean up storage\n localStorage.clear();\n\n console.log(`successfully logged out`);\n\n return null;\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst authSlice = createSlice({\n name: 'auth',\n initialState,\n reducers: {\n setUser(state, action: PayloadAction) {\n state.user = action.payload;\n state.status = 'succeeded';\n },\n clearUser(state) {\n state.user = null;\n state.status = 'idle';\n },\n setLoading(state, _: PayloadAction) {\n state.status = 'loading';\n },\n checkAuth() {\n // Action to trigger auth check\n // This can be a no-op if your middleware only needs to detect state changes\n },\n resetStatus: (state) => {\n state.status = 'idle';\n state.error = null;\n },\n updateUserSocialAccounts: (\n state,\n action: PayloadAction,\n ) => {\n if (state.user) {\n state.user.socialAccounts = action.payload;\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n updateUserExperience: (state, action: PayloadAction) => {\n console.log(action);\n const currentWorkExperience = state.user?.workExperience ?? [];\n const index = currentWorkExperience?.findIndex(\n (workExp) => workExp.id === action.payload.id,\n );\n\n const updatedWorkExperience = [...currentWorkExperience];\n\n /// if found replace\n /// else add\n if (index !== -1) {\n updatedWorkExperience[index] = action.payload;\n } else {\n updatedWorkExperience.push(action.payload);\n }\n\n if (state.user) {\n state.user.workExperience = updatedWorkExperience;\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n deleteUserExperience: (state, action: PayloadAction) => {\n console.log(action);\n const currentWorkExperience = state.user?.workExperience ?? [];\n\n console.dir(currentWorkExperience);\n\n const updatedWorkExperience = [...currentWorkExperience];\n\n console.log(updatedWorkExperience.length);\n\n const finalItems = updatedWorkExperience.filter(\n ({ id }) => id !== action.payload,\n );\n\n console.log(finalItems.length);\n\n if (state.user) {\n state.user.workExperience = finalItems;\n\n console.log(`${state.user.workExperience.length}`);\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n updateAgreeToTermsAndConditions: (state) => {\n if (state.user) {\n state.user.hasAgreedToTermsAndConditions = true;\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n updateUserService: (state, action: PayloadAction) => {\n if (state.user) {\n const services = state.user.service ?? [];\n const serviceIndex = services.findIndex(s => s.id === action.payload.id);\n\n if (serviceIndex !== -1) {\n // Replace existing service\n services[serviceIndex] = action.payload;\n state.user.service = services;\n } else {\n // Add new service if not found\n state.user.service = [action.payload, ...services];\n }\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n /// delete user service by id\n deleteUserService: (state, action: PayloadAction) => {\n if (state.user) {\n const services = state.user.service ?? [];\n const serviceIndex = services.findIndex(s => s.id === action.payload);\n\n if (serviceIndex !== -1) {\n // Replace existing service\n services.splice(serviceIndex, 1);\n state.user.service = services.filter(s => s.id !== action.payload);\n\n storeUserDataInLocalStorage(state.user);\n }\n }\n },\n },\n extraReducers: (builder) => {\n builder\n .addCase(loginAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n loginAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.user = action.payload;\n },\n )\n .addCase(loginAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n })\n .addCase(loadUserAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n loadUserAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.user = action.payload;\n },\n )\n .addCase(loadUserAsync.rejected, (state, _) => {\n // return to initial state\n state.status = 'idle';\n state.error = null;\n state.user = null;\n })\n .addCase(\n googleLoginAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.user = action.payload;\n },\n )\n .addCase(googleLoginAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n })\n .addCase(\n appleLoginAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.user = action.payload;\n },\n )\n .addCase(appleLoginAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n })\n .addCase(updateUserAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n updateUserAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n if (action.payload) {\n state.user = { ...state.user, ...action.payload }; // Update the user profile in the state\n\n storeUserDataInLocalStorage(state.user);\n }\n },\n )\n .addCase(updateUserAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n })\n .addCase(switchRoleAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n switchRoleAsync.fulfilled,\n (state, action: PayloadAction) => {\n console.log(`newRole ${action.payload}`);\n\n state.status = 'succeeded';\n if (action.payload && state.user) {\n state.user = {\n ...state.user,\n activeRole: action.payload,\n }; // Update the user profile in the state\n\n /// update user profile in the localStorage\n storeUserDataInLocalStorage(state.user);\n }\n },\n )\n .addCase(switchRoleAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n })\n .addCase(logoutAsync.fulfilled, (state) => {\n state.error = null;\n state.user = null;\n state.status = 'logout';\n })\n .addCase(\n reactivateAsync.fulfilled,\n (state, action: PayloadAction) => {\n // return to initial state\n state.status = 'succeeded';\n state.error = null;\n state.user = action.payload;\n },\n );\n },\n});\n\nexport const {\n setUser,\n clearUser,\n setLoading,\n checkAuth,\n resetStatus,\n updateUserExperience,\n deleteUserExperience,\n updateUserSocialAccounts,\n updateAgreeToTermsAndConditions,\n updateUserService,\n deleteUserService,\n} = authSlice.actions;\nexport const selectAuth = (state: AppState) => state.auth;\nexport const selectUserId = createSelector(\n [selectAuth],\n (auth) => auth.user?.id,\n);\nexport const selectUsername = createSelector(\n [selectAuth],\n (auth) => auth.user?.username,\n);\nexport const selectUser = createSelector([selectAuth], (auth) => auth.user);\nexport const selectWorkExperience = createSelector(\n [selectAuth],\n (auth) => auth.user?.workExperience,\n);\nexport const selectService = createSelector(\n [selectAuth],\n (auth) => auth.user?.service,\n);\nexport const selectSocialAccounts = createSelector(\n [selectAuth],\n (auth) => auth.user?.socialAccounts,\n);\nexport const selectMembership = createSelector(\n [selectAuth],\n (auth) => auth.user?.membership,\n);\nexport const selectRole = createSelector(\n [selectAuth],\n (auth) => auth.user?.activeRole,\n);\nexport const selectGuestMembership = createSelector(\n [selectAuth],\n (auth) => auth.user?.membership === 'GUEST',\n);\nexport const selectTrialMembership = createSelector(\n [selectAuth],\n (auth) => auth.user?.membership === 'TRIAL',\n);\nexport const selectHostMembership = createSelector(\n [selectAuth],\n (auth) => auth.user?.membership === 'HOST',\n);\nexport const selectHostRole = createSelector(\n [selectAuth],\n (auth) => auth.user?.activeRole === 'HOST',\n);\nexport const selectHostOrTrialRole = createSelector(\n [selectAuth],\n (auth) =>\n auth.user?.activeRole === 'HOST' || auth.user?.activeRole === 'TRIAL',\n);\nexport const selectGuestRole = createSelector(\n [selectAuth],\n (auth) => auth.user?.activeRole === 'GUEST',\n);\nexport const selectGuestOrTrialRole = createSelector(\n [selectAuth],\n (auth) =>\n auth.user?.activeRole === 'GUEST' || auth.user?.activeRole === 'TRIAL',\n);\nexport const selectServices = createSelector(\n [selectAuth],\n (auth) => auth.user?.service ?? [],\n);\nexport const selectRemainingService = createSelector(\n [selectAuth],\n (auth) => auth.user?.trialPeriod?.remainingServicesCanCreateCount ?? 0,\n);\nexport const selectRemainingAppointmentAllowed = createSelector(\n [selectAuth],\n (auth) => auth.user?.trialPeriod?.remainingAppointmentSessionsCanConfirmCount,\n);\nexport default authSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { CancelledTransaction } from '../types/CancelledTransaction';\nimport { getCancelledTransactions } from '../services/appointments';\n\ninterface TransactionsState {\n transactions: CancelledTransaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getCancelledTransactionsAsync = createAsyncThunk(\n 'transactions/getCancelledTransactionsAsync',\n async ({ role }: { role: string }, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getCancelledTransactions(role);\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst cancelledTransactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getCancelledTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getCancelledTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getCancelledTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectCancelledTransactions = (state: AppState) =>\n state.transactions;\nexport default cancelledTransactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from '../store';\nimport { Contact } from '../types/Contact';\nimport { getContacts } from '../services/contacts';\n\ninterface ContactsState {\n contacts: Contact[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: ContactsState = {\n contacts: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getContactsAsync = createAsyncThunk(\n 'contacts/getContactsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getContacts();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst contactsSlice = createSlice({\n name: 'contacts',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getContactsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getContactsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.contacts = action.payload ?? [];\n },\n )\n .addCase(getContactsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectContacts = (state: AppState) => state.contacts;\nexport default contactsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from '../store';\nimport { getForApprovalAppointments } from '../services/appointments';\nimport { AppointmentForApproval } from '../types/AppointmentForApproval';\n\ninterface NotificationsState {\n appointmentsForApproval: AppointmentForApproval[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: NotificationsState = {\n appointmentsForApproval: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getForApprovalAppointmentsAsync = createAsyncThunk(\n 'appointments-for-approval/getForApprovalAppointmentsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getForApprovalAppointments();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst appointmentsForApprovalSlice = createSlice({\n name: 'appointments-for-approval',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getForApprovalAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getForApprovalAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.appointmentsForApproval = action.payload;\n },\n )\n .addCase(getForApprovalAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectAppointments = (state: AppState) =>\n state.appointmentsForApproval;\nexport default appointmentsForApprovalSlice.reducer;\n","import {\n createAsyncThunk,\n createSelector,\n createSlice,\n PayloadAction,\n} from '@reduxjs/toolkit';\nimport { getNotifications } from '../services/notifications';\nimport { AppState } from '../store';\nimport { GetNotificationsPayload } from '../types';\nimport { Notification } from '../types/Notification';\n\ninterface NotificationsState {\n notifications: Notification[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: NotificationsState = {\n notifications: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getNotificationsAsync = createAsyncThunk(\n 'notifications/getNotificationsAsync',\n async (\n { read, role, skip, take }: GetNotificationsPayload = {},\n { rejectWithValue },\n ) => {\n try {\n /// login to firebase\n return await getNotifications({\n read,\n role,\n skip,\n take,\n });\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst notificationsSlice = createSlice({\n name: 'notifications',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getNotificationsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getNotificationsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.notifications = action.payload;\n },\n )\n .addCase(getNotificationsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectNotifications = (state: AppState) => state.notifications;\nexport const selectReadNotifications = createSelector(\n [selectNotifications],\n (notificationsState) => {\n return notificationsState.notifications.filter(\n (notification) => notification.isRead,\n );\n },\n);\nexport const selectUnreadNotifications = createSelector(\n [selectNotifications],\n (notificationsState) => {\n return notificationsState.notifications.filter(\n (notification) => !notification.isRead,\n );\n },\n);\nexport default notificationsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './index';\nimport { getOngoingAppointments } from '../services/appointments';\nimport { OngoingAppointment } from '../types/OngoingAppointment';\n\ninterface OngoingAppointmentsState {\n ongoingAppointments: OngoingAppointment[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: OngoingAppointmentsState = {\n ongoingAppointments: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getOngoingAppointmentsAsync = createAsyncThunk(\n 'ongoing-appointments/getOngoingAppointmentsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getOngoingAppointments();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst upcomingAppointmentsSlice = createSlice({\n name: 'upcoming-appointments',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getOngoingAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getOngoingAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n if (action.payload) {\n state.ongoingAppointments = action.payload;\n }\n },\n )\n .addCase(getOngoingAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectOngoingAppointments = (state: AppState) =>\n state.ongoingAppointments;\nexport default upcomingAppointmentsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { Transaction } from '../types';\nimport { getPaidTransactions } from '../services/transactions';\n\ninterface TransactionsState {\n transactions: Transaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getPaidTransactionsAsync = createAsyncThunk(\n 'transactions/getPaidTransactionsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getPaidTransactions();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst paidTransactionsSlice = createSlice({\n name: 'paidTransactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getPaidTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getPaidTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getPaidTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectPaidTransactions = (state: AppState) => state.transactions;\nexport default paidTransactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { getPendingTransactions } from '../services/transactions';\nimport { PendingTransaction } from '../types/PendingTransaction';\n\ninterface TransactionsState {\n transactions: PendingTransaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getPendingTransactionsAsync = createAsyncThunk(\n 'transactions/getPendingTransactionsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getPendingTransactions();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst pendingTransactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getPendingTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getPendingTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getPendingTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectPendingTransactions = (state: AppState) =>\n state.transactions;\nexport default pendingTransactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { getCancelledAppointments } from '../services';\nimport { AppointmentSession, Role } from '../types';\nimport { AppState } from './store';\n\ninterface CancelledAppointmentsState {\n cancelledAppointments: AppointmentSession[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: CancelledAppointmentsState = {\n cancelledAppointments: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getCancelledAppointmentsAsync = createAsyncThunk(\n 'appointments/getCancelledAppointmentsAsync',\n async ({ role }: { role: Role }, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getCancelledAppointments(role);\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst cancelledAppointmentsSlice = createSlice({\n name: 'appointments',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getCancelledAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getCancelledAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.cancelledAppointments = action.payload;\n },\n )\n .addCase(getCancelledAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectCancelledAppointments = (state: AppState) =>\n state.cancelledAppointments;\nexport default cancelledAppointmentsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { getCompletedAppointments } from '../services';\nimport { AppointmentSession, Role } from '../types';\nimport { AppState } from './store';\n\ninterface CompletedAppointmentsState {\n completedAppointments: AppointmentSession[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: CompletedAppointmentsState = {\n completedAppointments: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getCompletedAppointmentsAsync = createAsyncThunk(\n 'transactions/getCompletedAppointmentsAsync',\n async ({ role }: { role: Role }, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getCompletedAppointments(role);\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst completedAppointmentsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getCompletedAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getCompletedAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.completedAppointments = action.payload;\n },\n )\n .addCase(getCompletedAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectCompletedAppointments = (state: AppState) =>\n state.completedAppointments;\nexport default completedAppointmentsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { getExpiredTransactions } from '../services/appointments';\nimport { CancelledTransaction } from '../types/CancelledTransaction';\nimport { AppState } from './store';\n\ninterface TransactionsState {\n transactions: CancelledTransaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getExpiredTransactionsAsync = createAsyncThunk(\n 'transactions/getExpiredTransactionsAsync',\n async ({ role }: { role: string }, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getExpiredTransactions(role);\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst expiredTransactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getExpiredTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getExpiredTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getExpiredTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectExpiredTransactions = (state: AppState) =>\n state.transactions;\nexport default expiredTransactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { getGuestPendingTransactions } from '../services/transactions';\nimport { GuestPendingTransaction } from '../types';\n\ninterface TransactionsState {\n transactions: GuestPendingTransaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getGuestPendingTransactionsAsync = createAsyncThunk(\n 'transactions/getGuestPendingTransactionsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getGuestPendingTransactions();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst guestPendingTransactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getGuestPendingTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getGuestPendingTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getGuestPendingTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectGuestPendingTransactions = (state: AppState) =>\n state.transactions;\nexport default guestPendingTransactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { getHostSchedule } from '../services/appointments';\nimport { AppointmentSession } from '../types';\nimport { AppState } from './store';\n\ninterface HostAppointmentsState {\n hostAppointments: AppointmentSession[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: HostAppointmentsState = {\n hostAppointments: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getHostAppointmentsAsync = createAsyncThunk(\n 'host-appointments/getHostAppointmentsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getHostSchedule({});\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst upcomingAppointmentsSlice = createSlice({\n name: 'upcoming-appointments',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getHostAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getHostAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.hostAppointments = action.payload;\n },\n )\n .addCase(getHostAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectHostAppointments = (state: AppState) =>\n state.hostAppointments;\nexport default upcomingAppointmentsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AxiosError } from 'axios';\nimport { getStripeAccount } from '../services/auth';\nimport { AppState } from '../store';\nimport { BusinessProfile } from '../types/StripeAccount';\n\ninterface CapabilitiesDto {\n cardPayments: string;\n transfers: string;\n}\n\nexport interface StripeAccountDto {\n id: string;\n capabilities: CapabilitiesDto;\n charges_enabled: boolean;\n payouts_enabled: boolean;\n email: string;\n business_profile?: BusinessProfile;\n}\n\ninterface StripeAccountState {\n stripeAccount?: StripeAccountDto | null;\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: StripeAccountState = {\n stripeAccount: null,\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getStripeAccountAsync = createAsyncThunk(\n 'stripe/getStripeAccount',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getStripeAccount();\n } catch (error) {\n if (error instanceof AxiosError) {\n const errorStatus = (error as AxiosError).response?.status;\n\n // if stripe account is not found, then\n // it is not connected yet\n if (errorStatus === 404) {\n return null;\n }\n }\n\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst stripeAccountSlice = createSlice({\n name: 'stripe',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getStripeAccountAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getStripeAccountAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.stripeAccount = action.payload;\n },\n )\n .addCase(getStripeAccountAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectStripeAccount = (state: AppState) => state.stripeAccount;\nexport default stripeAccountSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { ServiceDto, AppointmentSessionDto } from '../types';\nimport { getReceivedTransactions } from '../services/transactions';\n\ninterface PayerDto {\n id: string;\n firstname: string;\n lastname: string;\n avatar: string;\n email: string;\n}\n\nexport declare type Transaction = {\n receiver: PayerDto;\n id: string;\n type: 'APPOINTMENT' | 'SUBSCRIPTION';\n amount: number;\n appointmentSession?: AppointmentSessionDto;\n createdAt: Date;\n service: ServiceDto;\n payer: PayerDto;\n}\n\ninterface TransactionsState {\n transactions: Transaction[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactions: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getTransactionsAsync = createAsyncThunk(\n 'transactions/getTransactionsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getReceivedTransactions();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst transactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getTransactionsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getTransactionsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactions = action.payload;\n },\n )\n .addCase(getTransactionsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectTransactions = (state: AppState) => state.transactions;\nexport default transactionsSlice.reducer;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { getUpcomingAppointments } from '../services/appointments';\nimport { UpcomingAppointment } from '../types/UpcomingAppointment';\n\ninterface UpcomingAppointmentsState {\n upcomingAppointments: UpcomingAppointment[];\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: UpcomingAppointmentsState = {\n upcomingAppointments: [],\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getUpcomingAppointmentsAsync = createAsyncThunk(\n 'upcoming-appointments/getUpcomingAppointmentsAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getUpcomingAppointments({});\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst upcomingAppointmentsSlice = createSlice({\n name: 'upcoming-appointments',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getUpcomingAppointmentsAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getUpcomingAppointmentsAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.upcomingAppointments = action.payload;\n },\n )\n .addCase(getUpcomingAppointmentsAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectUpcomingAppointments = (state: AppState) =>\n state.upcomingAppointments;\nexport default upcomingAppointmentsSlice.reducer;\n","import { configureStore } from '@reduxjs/toolkit';\nimport authReducer from './authSlice';\nimport cancelledAppointmentsReducer from './cancelledAppointmentsSlice';\nimport cancelledTransactionsReducer from './cancelledTransactionsSlice';\nimport completedAppointmentsReducer from './completedAppointmentsSlice';\nimport contactsReducer from './contactsSlice';\nimport expiredTransactionsReducer from './expiredTransactionsSlice';\nimport appointmentsForApprovalReducer from './forApprovalSlice';\nimport guestPendingTransactionsReducer from './guestPendingTransactionsSlice';\nimport hostAppointmentsReducer from './hostAppointmentSlice';\nimport notificationsReducer from './notificationsSlice';\nimport ongoingAppointmentsReducer from './ongoingAppointmentsSlice';\nimport paidTransactionsReducer from './paidTransactionsSlice';\nimport pendingTransactionsReducer from './pendingTransactionsSlice';\nimport stripeAccountReducer from './stripeAccountSlice';\nimport transactionsReducer from './transactionsSlice';\nimport upcomingAppointmentsReducer from './upcomingAppointmentSlice';\n\nexport const store = configureStore({\n reducer: {\n auth: authReducer,\n notifications: notificationsReducer,\n appointmentsForApproval: appointmentsForApprovalReducer,\n upcomingAppointments: upcomingAppointmentsReducer,\n stripeAccount: stripeAccountReducer,\n transactions: transactionsReducer,\n pendingTransactions: pendingTransactionsReducer,\n cancelledTransactions: cancelledTransactionsReducer,\n contacts: contactsReducer,\n ongoingAppointments: ongoingAppointmentsReducer,\n guestPendingTransactions: guestPendingTransactionsReducer,\n paidTransactions: paidTransactionsReducer,\n expiredTransactions: expiredTransactionsReducer,\n completedAppointments: completedAppointmentsReducer,\n cancelledAppointments: cancelledAppointmentsReducer,\n hostAppointments: hostAppointmentsReducer,\n },\n});\n\n// Infer the `AppState` and `AppDispatch` types from the store itself\nexport type AppState = ReturnType;\nexport type AppDispatch = typeof store.dispatch;\n","import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { AppState } from './store';\nimport { getTransactionsSummary } from '../services/transactions';\nimport { TransactionsSummary } from '../types/TransactionsSummary';\n\ninterface TransactionsState {\n transactionsSummary: TransactionsSummary;\n status: 'idle' | 'loading' | 'succeeded' | 'failed';\n error: string | null;\n}\n\nconst initialState: TransactionsState = {\n transactionsSummary: {\n totalEarningsCount: 0,\n paymentsReceived: 0,\n pendingPaymentsCount: 0,\n cancelledAppointmentSessionsCount: 0,\n },\n status: 'idle',\n error: null,\n};\n\n// Async thunk for logging in\nexport const getTransactionsSummaryAsync = createAsyncThunk(\n 'transactions/getTransactionsSummaryAsync',\n async (_, { rejectWithValue }) => {\n try {\n /// login to firebase\n return await getTransactionsSummary();\n } catch (error) {\n return rejectWithValue((error as Error).message);\n }\n },\n);\n\nconst pendingTransactionsSlice = createSlice({\n name: 'transactions',\n initialState,\n reducers: {},\n extraReducers: (builder) => {\n builder\n .addCase(getTransactionsSummaryAsync.pending, (state) => {\n state.status = 'loading';\n state.error = null;\n })\n .addCase(\n getTransactionsSummaryAsync.fulfilled,\n (state, action: PayloadAction) => {\n state.status = 'succeeded';\n state.transactionsSummary = action.payload || {\n totalEarningsCount: 0,\n paymentsReceived: 0,\n pendingPaymentsCount: 0,\n cancelledAppointmentSessionsCount: 0,\n };\n },\n )\n .addCase(getTransactionsSummaryAsync.rejected, (state, action) => {\n state.status = 'failed';\n state.error = action.payload as string;\n });\n },\n});\n\nexport const selectTransactionSummary = (state: AppState) => state.transactions;\nexport default pendingTransactionsSlice.reducer;\n","import React from 'react';\nimport { SvgIconProps } from '../icons/SvgIconProps';\nimport './Loader.css'; // Import the custom CSS for\n\nconst Loader: React.FC = (props: SvgIconProps) => {\n return (\n \n {/* 8 */}\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default Loader;\n","import Loader from '../Loader/Loader';\n\ninterface FilledButtonProps {\n label: string;\n size?: 'sm' | 'md' | 'lg' | 'xl';\n loading?: boolean;\n onClick?: VoidFunction;\n disabled?: boolean;\n bgClass?: string;\n widthClass?: string;\n textColorClass?: string;\n rounded?: boolean;\n type?: 'button' | 'submit' | 'reset';\n}\n\nexport const FilledButton: React.FC = ({\n label,\n size = 'md',\n onClick,\n loading = false,\n disabled = false,\n bgClass = 'bg-black',\n textColorClass = 'text-white',\n rounded = false,\n type = 'button',\n widthClass = '',\n}: FilledButtonProps) => {\n const buttonSizes = {\n lg: 'text-body1 px-5 py-3',\n md: 'text-body2 px-3 py-2',\n sm: 'text-body2 px-3 py-2',\n xl: 'text-h6 px-3 py-2.5',\n };\n\n const sizeClass = buttonSizes[size] || 'text-body2 px-3 py-2';\n const cursorClass = disabled ? 'cursor-not-allowed' : '';\n bgClass = disabled ? 'bg-neutral-500' : (bgClass ?? 'bg-black');\n textColorClass = disabled ? 'text-gray-50' : (textColorClass ?? 'text-white');\n\n return (\n \n {loading ? : label}\n \n );\n};\n","import Loader from \"../Loader/Loader\";\n\ninterface OutlinedButtonProps {\n label: string;\n size?: 'sm' | 'md' | 'lg';\n loading?: boolean;\n onClick: VoidFunction;\n disabled?: boolean;\n borderColorClass?: string;\n textColorClass?: string;\n bgColorClass?: string;\n widthClass?: string;\n negative?: boolean;\n}\n\nexport const OutlinedButton: React.FC = ({\n label,\n size = 'md',\n onClick,\n loading = false,\n disabled = false,\n borderColorClass = 'border-black',\n textColorClass = 'text-black',\n bgColorClass = 'bg-white',\n negative = false,\n widthClass = '',\n}: OutlinedButtonProps) => {\n const buttonSizes = {\n lg: 'text-body1 px-5 py-3',\n md: 'text-body2 px-3 py-2',\n sm: 'text-body2 px-3 py-2',\n };\n\n const sizeClass = buttonSizes[size] || 'text-body2 px-3 py-2';\n const colorClass = disabled\n ? 'border-neutral-200 text-neutral-50 cursor-not-allowed'\n : 'border-neutral-200 text-black';\n borderColorClass = negative\n ? 'border-error'\n : (borderColorClass ?? 'border-black');\n textColorClass = negative ? 'text-error' : (textColorClass ?? 'text-black');\n bgColorClass = bgColorClass ?? 'bg-white';\n\n return (\n \n {loading ? : label}\n \n );\n};\n","import React, { createContext, ReactNode, useContext, useState } from 'react';\n\n// Define types for dialog configuration\ninterface DialogConfig {\n title?: string;\n content?: ReactNode | string;\n actions?: ReactNode;\n icon?: ReactNode;\n centerTitle?: boolean;\n centerContent?: boolean;\n width?: number;\n dismissable?: boolean;\n}\n\ninterface DialogContextType {\n isOpen: boolean;\n dialogConfig: DialogConfig | null;\n openDialog: (config: DialogConfig) => void;\n closeDialog: () => void;\n}\n\nconst DialogContext = createContext(undefined);\n\n// Context provider component\nexport const DialogProvider: React.FC<{ children: ReactNode }> = ({\n children,\n}) => {\n const [isOpen, setIsOpen] = useState(false);\n const [dialogConfig, setDialogConfig] = useState(null);\n\n const openDialog = (config: DialogConfig) => {\n setDialogConfig(config);\n setIsOpen(true);\n };\n\n const closeDialog = () => {\n setIsOpen(false);\n setDialogConfig(null);\n };\n\n return (\n \n {children}\n \n );\n};\n\n// Hook to use the context\nexport const useDialog = () => {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error('useDialog must be used within a DialogProvider');\n }\n return context;\n};\n","import { useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { cancelSubscription } from '../services/auth';\nimport { selectHostMembership, selectUser } from '../store';\nimport { showError } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { useDialog } from './DialogContext';\nimport { SuccessIcon, WarningIcon } from './icons';\n\nconst CancelSubscription: React.FC = () => {\n const [loading, setLoading] = useState(false);\n const [reason, setReason] = useState(null);\n const user = useSelector(selectUser);\n const hostMembership = useSelector(selectHostMembership);\n\n const reasons: string[] = [\n 'I am no longer using my account',\n 'The service is too expensive',\n // 'I want to change my phone number',\n \"I don't understand how to use it\",\n \"I don't offer my services anymore\",\n 'Other',\n ];\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Cancel Subscription' },\n ]);\n }, [location.pathname]);\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleSubmit = async () => {\n closeDialog();\n\n if (!reason) {\n showError('Please select reason.');\n\n return;\n }\n\n setLoading(true);\n\n try {\n await cancelSubscription(reason);\n\n openDialog({\n icon: ,\n title: 'Success',\n centerTitle: true,\n content:\n 'Successfully cancelled subscription. You can still use your subscription until the next billing date.',\n actions: (\n <>\n \n \n ),\n });\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n const confirmCancel = async () => {\n openDialog({\n title: 'Cancel Subscription',\n content:\n 'Are you sure you want to cancel your subscription? You will be able to access your host account until your current subscription expires.',\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n return (\n <>\n
\n
\n
\n
Cancel Subscription
\n
\n\n
\n
\n\n {\n !hostMembership && (\n
\n \n You do not have an active HOST subscription.\n
\n )\n }\n\n {hostMembership && (user?.hasCancelledSubscription ? (\n
\n \n Your subscription has already been cancelled.\n
\n ) : (\n <>\n
Sorry to see you go
\n\n
\n Please select your reason on cancelling your subscription, you\n can choose more than one.\n
\n\n
\n {reasons.map((option, index) => (\n setReason(option)}\n >\n \n
\n setReason(option)}\n checked={option === reason}\n />\n {reason === option && (\n
\n )}\n
\n {option}\n \n
\n ))}\n
\n\n
\n \n
\n \n ))}\n
\n
\n
\n \n );\n};\n\nexport default CancelSubscription;\n","import { createContext } from 'react';\n\nexport const RefreshContext = createContext({\n handleRefresh: () => {},\n});","import React from 'react';\n\ninterface AvatarProps {\n userId?: string;\n // user?: TellyUser | undefined;\n src?: string;\n // up to 2 letters only\n initials: string;\n size: 2 | 4 | 6 | 8 | 10 | 12 | 15 | 20 | 25;\n onClick?: () => void | undefined;\n}\n\nexport const Avatar: React.FC = (props: AvatarProps) => {\n /// call onclick or go to user profile\n const handleClick = () => {\n props.onClick && props.onClick();\n };\n\n const sizes = {\n 2: 'w-2 h-2',\n 4: 'w-4 h-4',\n 6: 'w-6 h-6 text-xs font-light',\n 8: 'w-8 h-8',\n 10: 'w-10 h-10',\n 12: 'w-12 h-12',\n 15: 'w-15 h-15',\n 20: 'w-20 h-20 text-3xl',\n 25: 'w-25 h-25 text-5xl',\n };\n\n if (props.src) {\n return (\n \n );\n }\n\n return (\n <>\n \n {props.initials}\n \n \n );\n};\n","export const EmptyChannels: React.FC = () => {\n return (\n <>\n
\n \n\n
No messages
\n
\n \n );\n};\n\nexport const EmptyUI: React.FC = (props: EmptyUIProps) => {\n const { message } = props;\n\n return (\n <>\n
\n \n\n
\n {message ?? 'No available data'}\n
\n
\n \n );\n};\n\ninterface EmptyUIProps {\n message?: string;\n}\n","import { useEffect, useState } from 'react';\nimport { EmptyUI } from './EmptyUI';\nimport { WarningIcon } from './icons';\nimport Loader from './Loader/Loader';\n\ntype DataLoaderProps = {\n loadData: () => Promise; // This can return either an object or an array of objects\n renderLoading?: () => JSX.Element;\n renderEmpty?: () => JSX.Element;\n renderError?: (error: string) => JSX.Element;\n renderData: (data: T) => JSX.Element;\n};\n\ninterface ErrorContainerProps {\n error: string;\n}\n\nconst ErrorContainer: React.FC = ({\n error,\n}: ErrorContainerProps) => {\n return (\n <>\n
\n
\n \n\n {error}\n
\n
\n \n );\n};\n\nexport const DataLoader = ({\n loadData,\n renderLoading = () => (\n
\n \n
\n ),\n renderError = (error) => ,\n renderData,\n renderEmpty,\n}: DataLoaderProps) => {\n const [data, setData] = useState(null);\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n try {\n const result = await loadData();\n setData(result);\n } catch (err) {\n setError((err as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n fetchData();\n }, [loadData]);\n\n if (loading) return renderLoading();\n\n if (error) return renderError(error);\n\n if (Array.isArray(data) && data.length === 0) {\n if (renderEmpty) {\n return renderEmpty();\n }\n\n return (\n
\n \n
\n );\n }\n\n if (data) return renderData(data);\n\n return <>;\n};\n","import { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { AppDispatch, selectRole } from '../store';\nimport { getExpiredTransactionsAsync } from '../store/expiredTransactionsSlice';\nimport { AppointmentSession } from '../types';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { GuestCancelledTransactionListTile } from './CancelledTransactions';\nimport { DataLoader } from './DataLoader';\n\nexport const HostCancelledTransactions: React.FC = () => {\n const dispatch = useDispatch();\n const role = useSelector(selectRole);\n\n const [refreshCount, setRefreshCount] = useState(0);\n\n const fetchCancelledTransactions = useCallback(async () => {\n const result = await dispatch(\n getExpiredTransactionsAsync({ role: role ?? 'TRIAL' }),\n ).unwrap();\n return result;\n }, [dispatch, refreshCount]);\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n return (\n <>\n
\n \n
\n\n }\n renderData={(cancelledTransactions: AppointmentSession[]) => {\n return (\n <>\n
\n
Guest Name
\n
Reason
\n
Date
\n
Time
\n
Amount
\n
\n\n
\n {cancelledTransactions.map((transaction, index) => {\n /// TODO: verify that this is not a brittle approach\n return (\n \n );\n })}\n
\n \n );\n }}\n />\n \n );\n};\n\nexport const SkeletonHostCancelled: React.FC = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n ))}\n \n\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and Name */}\n
\n
\n
\n
\n
\n
\n\n {/* Skeleton for Cancellation Reason */}\n
\n\n {/* Skeleton for Date */}\n
\n\n {/* Skeleton for Time */}\n
\n\n {/* Skeleton for Amount */}\n
\n
\n ))}\n \n \n );\n};\n","import moment from 'moment';\nimport React, { useCallback, useContext, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { RefreshContext } from '../contexts/RefreshContext';\nimport { AppDispatch, selectHostOrTrialRole, selectUser } from '../store';\nimport { getExpiredTransactionsAsync } from '../store/expiredTransactionsSlice';\nimport { AppointmentSession, Participant, TellyUser } from '../types';\nimport { formatCurrency, getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\nimport { HostCancelledTransactions } from './HostCancelledTransactions';\n\nexport const CancelledTransactions: React.FC = () => {\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const { handleRefresh } = useContext(RefreshContext);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Transactions', path: 'transactions' },\n { name: 'Expired' },\n ]);\n }, [location.pathname]);\n\n useEffect(() => {\n handleRefresh(); // Trigger refresh on load or as needed\n }, [handleRefresh]);\n\n if (hostOrTrialRole) {\n return ;\n }\n\n return ;\n};\n\ninterface GuestAppointmentCancelledListTileProps {\n transaction: AppointmentSession;\n}\n\nexport const GuestCancelledTransactionListTile: React.FC<\n GuestAppointmentCancelledListTileProps\n> = ({ transaction }: GuestAppointmentCancelledListTileProps) => {\n const user = useSelector(selectUser);\n\n const participant: Participant | undefined =\n transaction.participants &&\n transaction.participants.filter((e) => e.id !== user?.id).at(0);\n\n const transactionUser: TellyUser | undefined = participant && {\n id: participant.id, // transaction.user.id,\n firstname: participant.firstname, // transaction.user.firstname,\n lastname: participant.lastname, //transaction.user.lastname,\n email: participant.email,\n avatar: participant.avatar,\n membership: participant.membership,\n createdAt: new Date(),\n socialAccounts: [],\n activeRole: participant.membership,\n fullname: `${participant.firstname} ${participant.lastname}`,\n };\n\n return (\n <>\n {/* card */}\n
\n
\n
Guest Name
\n
\n
\n {transactionUser && (\n
\n \n
\n )}\n {`${transactionUser?.firstname} ${transactionUser?.lastname}`}\n
\n
\n
\n\n
\n
Reason
\n
\n {transaction.reasonForCancelOrReject}\n
\n
\n\n
\n
Date
\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n
\n\n
\n
Time
\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n\n
\n
Amount
\n
{`$${formatCurrency(transaction.price / 100)}`}
\n
\n
\n\n {/* list */}\n
\n {/* Checkbox */}\n
\n {transactionUser && (\n
\n \n
\n )}\n {`${transactionUser?.firstname} ${transactionUser?.lastname}`}\n
\n\n
{transaction.reasonForCancelOrReject}
\n\n {/* Date */}\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n\n {/* Time */}\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n\n {/* Amount */}\n
\n {`$${formatCurrency(transaction.price / 100)}`}\n
\n
\n \n );\n};\n\nexport const GuestCancelledTransactions = () => {\n const dispatch = useDispatch();\n const [refreshCount, setRefreshCount] = useState(0);\n\n const fetchCancelledTransactions = useCallback(async () => {\n const result = await dispatch(\n getExpiredTransactionsAsync({ role: 'GUEST' }),\n ).unwrap();\n return result;\n }, [dispatch, refreshCount]);\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n return (\n <>\n
\n \n
\n\n {/* header */}\n
\n
Host Name
\n
Reason
\n
Service
\n
Schedule
\n
Time
\n
\n\n }\n renderData={(cancelledTransactions) => {\n return (\n <>\n
\n {cancelledTransactions.map((transaction, index) => {\n const host = transaction.host;\n const transactionUser: TellyUser | undefined = host && {\n id: host.id, // transaction.user.id,\n firstname: host.firstname, // transaction.user.firstname,\n lastname: host.lastname, //transaction.user.lastname,\n email: host.email,\n avatar: host.avatar,\n membership: 'HOST',\n createdAt: new Date(),\n socialAccounts: [],\n activeRole: 'HOST',\n fullname: `${host.firstname} ${host.lastname}`,\n };\n\n return (\n <>\n \n
\n
Guest Name
\n
\n
\n {transactionUser && (\n
\n \n
\n )}\n {`${transactionUser?.firstname} ${transactionUser?.lastname}`}\n
\n
\n
\n\n
\n
Reason
\n
\n {transaction.reasonForCancelOrReject}\n
\n
\n\n
\n
Date
\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n
\n\n
\n
Time
\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n\n
\n
Amount
\n
{`$${formatCurrency(transaction.price / 100)}`}
\n
\n
\n\n \n {/* Checkbox */}\n
\n {transaction.host && (\n
\n \n
\n )}\n {`${transaction.host?.firstname} ${transaction.host?.lastname}`}\n
\n\n
\n {transaction.reasonForCancelOrReject}\n
\n\n
{transaction.service.title}
\n\n {/* Date */}\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n\n {/* Time */}\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n \n \n );\n })}\n \n \n );\n }}\n />\n \n );\n};\n\nconst SkeletonGuestCancelled = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n ))}\n \n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and Host Name */}\n
\n
\n
\n
\n
\n
\n\n {/* Skeleton for Cancellation Reason */}\n
\n\n {/* Skeleton for Service Title */}\n
\n\n {/* Skeleton for Date */}\n
\n\n {/* Skeleton for Time */}\n
\n
\n ))}\n \n \n );\n};\n","import { ChangeEvent, useState } from 'react';\nimport { VisibleIcon, VisibleOffIcon } from '../icons';\n\ninterface PasswordFieldProps {\n name: string;\n value: string;\n onChange: (event: ChangeEvent) => void;\n isValid: boolean;\n}\n\nconst PasswordField: React.FC = (\n props: PasswordFieldProps,\n) => {\n const [type, setType] = useState<'password' | 'text'>('password');\n\n const toggleVisibility = () => {\n setType((prevType) => (prevType === 'password' ? 'text' : 'password'));\n };\n\n return (\n <>\n
\n
\n \n
\n {\n type === 'password' ? () : ()\n }\n
\n
\n {!props.isValid && props.value.length > 0 && (\n
\n Passwords do not match.\n
\n )}\n
\n \n );\n};\n\nexport default PasswordField;\n","import { CheckIcon, CloseIcon } from './icons';\n\ninterface PasswordValidationRuleProps {\n valid: boolean;\n label: string;\n}\n\nexport const PasswordValidationRule = ({\n valid,\n label,\n}: PasswordValidationRuleProps) => {\n return (\n
\n {valid ? (\n \n ) : (\n \n )}{' '}\n {label}\n
\n );\n};\n","import { ChangeEvent, useState } from 'react';\nimport { PasswordValidationRules } from '../ChangePassword';\nimport { VisibleIcon, VisibleOffIcon } from '../icons';\nimport { PasswordValidationRule } from '../PasswordValidationRule';\n\ninterface PasswordTextFormFieldProps {\n name: string;\n value: string;\n onChange: (event: ChangeEvent) => void;\n validationRules: PasswordValidationRules;\n}\n\nconst PasswordTextFormField: React.FC = (\n props: PasswordTextFormFieldProps,\n) => {\n const [type, setType] = useState<'password' | 'text'>('password');\n\n const toggleVisibility = () => {\n setType((prevType) => (prevType === 'password' ? 'text' : 'password'));\n };\n\n const ruleMessages = [\n {\n text: 'Minimum of 8 characters',\n isValid: props.validationRules.minLength,\n },\n {\n text: 'At least 1 uppercase letter',\n isValid: props.validationRules.hasUppercase,\n },\n {\n text: 'At least 1 lowercase letter',\n isValid: props.validationRules.hasLowercase,\n },\n { text: 'At least 1 number', isValid: props.validationRules.hasNumber },\n { text: 'At least 1 symbol', isValid: props.validationRules.hasSymbol },\n ];\n\n return (\n <>\n
\n
\n \n
\n {\n type === 'password' ? () : ()\n }\n
\n
\n
\n {ruleMessages.map((rule, index) => (\n \n ))}\n
\n
\n \n );\n};\n\nexport default PasswordTextFormField;\n","import { ChangeEvent, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { updatePassword } from '../services/auth';\nimport { AppDispatch, logoutAsync } from '../store';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { useDialog } from './DialogContext';\nimport PasswordField from './FormFields/PasswordField';\nimport PasswordTextFormField from './FormFields/PasswordTextFormField';\nimport { SuccessIcon } from './icons';\n\ninterface FormData {\n password: string;\n confirmPassword: string;\n}\n\nexport type PasswordValidationRules = {\n minLength: boolean;\n hasUppercase: boolean;\n hasLowercase: boolean;\n hasSymbol: boolean;\n hasNumber: boolean;\n};\n\nexport function validatePasswordRules(\n password: string,\n): PasswordValidationRules {\n return {\n minLength: password.length >= 8,\n hasUppercase: /[A-Z]/.test(password),\n hasLowercase: /[a-z]/.test(password),\n hasSymbol: /\\W/.test(password), // You can modify this for specific symbols\n hasNumber: /[0-9]/.test(password), // You can modify this for specific symbols\n };\n}\n\nexport const ChangePassword: React.FC = () => {\n const [loading, setLoading] = useState(false);\n const [formData, setFormData] = useState({\n password: '',\n confirmPassword: '',\n });\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Change Password' },\n ]);\n }, [location.pathname]);\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleChange = (event: ChangeEvent) => {\n const name = event.target.name;\n const value = event.target.value;\n\n setFormData((prevState) => ({\n ...prevState,\n [name]: value,\n }));\n };\n\n const dispatch = useDispatch();\n\n const handleLogout = () => {\n closeDialog();\n dispatch(logoutAsync());\n };\n\n const handleSave = async () => {\n setLoading(true);\n\n try {\n await updatePassword(formData.password);\n\n setLoading(false);\n\n openDialog({\n icon: ,\n title: 'Successfully changed password',\n centerTitle: true,\n content:\n 'You have successfully changed your password. Please login again to continue.',\n actions: (\n <>\n \n \n ),\n });\n } catch (e) {\n setLoading(false);\n }\n };\n\n const passwordValidation = validatePasswordRules(formData.password);\n const passwordIsValid = Object.values(passwordValidation).every(Boolean);\n const confirmPasswordIsValid = formData.password === formData.confirmPassword;\n\n return (\n <>\n
\n
\n
Change Password
\n
\n This information will be displayed publicly, so be careful what you\n share.\n
\n
\n\n
\n
New Password
\n \n
\n\n
\n
Confirm Password
\n \n
\n\n
\n
\n \n
\n
\n \n );\n};\n","// import { useNavigate } from 'react-router-dom';\nimport { useNavigate } from 'react-router-dom';\nimport { deleteContact } from '../services/contacts';\n// import { getOrCreateChannel } from '../api/messages';\nimport { Contact } from '../types/Contact';\nimport { showError, showSuccess } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { useDialog } from './DialogContext';\nimport { DeleteIcon } from './icons';\n\ninterface ContactListTileProps {\n contact: Contact;\n onDelete?: () => void;\n}\n\nconst ContactListTile: React.FC = (\n props: ContactListTileProps,\n) => {\n const navigate = useNavigate();\n\n const {\n contact: { firstname, lastname, id, avatar, membership },\n onDelete,\n } = props;\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleDelete = async () => {\n try {\n await deleteContact(id);\n\n showSuccess('Successfully deleted contact');\n closeDialog();\n onDelete && onDelete();\n } catch (e) {\n showError(`Failed to delete contact ${e}`);\n }\n };\n\n const confirmDelete = async () => {\n openDialog({\n title: 'Delete Contact',\n content: 'Are you sure you want to delete this contact?',\n actions: (\n <>\n \n \n \n ),\n });\n };\n\n return (\n <>\n navigate(`/profile/${id}`)}\n className=\"flex w-full cursor-pointer flex-row items-center justify-between\"\n >\n {/* avatar */}\n
\n {avatar && (\n \n )}\n
\n\n
\n {/* name */}\n
\n {firstname} {lastname}\n
\n\n {/* membership */}\n
{membership}
\n
\n\n {/* delete button */}\n
\n {\n e.stopPropagation();\n confirmDelete();\n }}\n className=\"h-6 w-6 stroke-error\"\n />\n
\n \n \n );\n};\n\nexport default ContactListTile;\n","import React from 'react';\n\nexport const SkeletonContactListTile: React.FC = () => {\n return (\n
\n {/* avatar skeleton */}\n
\n\n
\n {/* name skeleton */}\n
\n\n {/* membership skeleton */}\n
\n
\n\n {/* delete button skeleton */}\n {/*
*/}\n
\n );\n};\n","import React from 'react';\n\nexport const SkeletonRequestCard: React.FC = () => {\n return (\n
\n {/* Image Placeholder */}\n
\n\n {/* Content Placeholder */}\n
\n {/* Service Title Placeholder */}\n
\n\n {/* Date Placeholder */}\n
\n\n {/* Time Placeholder */}\n
\n\n {/* User Name Placeholder */}\n
\n
\n
\n );\n};\n","import React from 'react';\n\nexport const SkeletonServiceCard: React.FC = () => {\n return (\n
\n {/* Simulate the service title / class type section */}\n
\n {/* Title Skeleton */}\n
\n {/* Class Type Skeleton */}\n
\n
\n
\n );\n};\n","export const SkeletonTransactionSummaryCard = ({\n label,\n textColorClass,\n}: {\n label: string;\n textColorClass: string;\n}) => {\n return (\n
\n
{label}
\n
\n
\n );\n};\n","import React from 'react';\n\nexport const SkeletonUpcomingAppointmentCard: React.FC = () => {\n return (\n
\n {/* Image Placeholder */}\n
\n\n {/* Content Placeholder */}\n
\n
\n {/* Duration Placeholder */}\n
\n\n {/* Pill Placeholder */}\n
\n
\n\n {/* Service Title Placeholder */}\n
\n\n {/* Date Placeholder */}\n
\n\n {/* Time Placeholder */}\n
\n\n {/* Participant Placeholder (optional) */}\n
\n
\n
\n );\n};\n","export const SkeletonUpcomingDetails: React.FC = () => {\n return (\n
\n {/* Skeleton for Appointment Frame */}\n
\n
\n
\n
\n
\n
\n {/*
*/}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n {/* Skeleton for Guest List */}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n );\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, getContactsAsync } from '../store';\nimport ContactListTile from './ContactListTile';\nimport { DataLoader } from './DataLoader';\nimport { EmptyUI } from './EmptyUI';\nimport { SkeletonContactListTile } from './skeletons';\n\nconst ContactList: React.FC = () => {\n const dispatch = useDispatch();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const [refresh, setRefresh] = useState(0);\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Contacts' },\n ]);\n }, [location.pathname]);\n\n const fetchContacts = useCallback(async () => {\n return await dispatch(getContactsAsync()).unwrap();\n }, [dispatch, refresh]);\n\n return (\n <>\n
\n
\n
Contact List
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n
\n\n
\n }\n renderEmpty={() => }\n renderData={(contacts) => {\n return (\n
\n {contacts.map((contact, index) => (\n setRefresh((prev) => prev + 1)}\n />\n ))}\n
\n );\n }}\n />\n
\n
\n \n );\n};\n\nexport default ContactList;\n","type ValidationMessageProps = {\n children: React.ReactNode;\n}\n\nexport const ValidationMessage = (props: ValidationMessageProps) => {\n return (
{props.children}
);\n}","import { forwardRef } from 'react';\nimport { FieldError } from 'react-hook-form';\nimport { ValidationMessage } from '../ValidationMessage';\n\ninterface TextAreaFormFieldProps {\n type?: 'text' | 'number';\n placeholder?: string;\n variant?: 'underlined' | 'outlined';\n error?: FieldError | undefined;\n value?: 'text' | 'number' | undefined;\n prefix?: React.ReactNode;\n disabled?: boolean | undefined;\n minLines?: number;\n maxLines?: number;\n}\n\nexport const TextAreaFormField = forwardRef<\n HTMLTextAreaElement,\n TextAreaFormFieldProps\n>(function TextFormField(\n {\n type = 'text',\n placeholder,\n error,\n variant,\n value,\n prefix,\n disabled,\n minLines = 2,\n maxLines,\n ...rest\n },\n ref,\n) {\n const variants = {\n underlined:\n 'focus:border-b-black border-b border-b-[#bdbdbd] pb-[0.375rem] text-body1',\n outlined:\n 'focus:border-black border border-[#bdbdbd] rounded-lg p-4 text-body1',\n };\n\n variant = variant ?? 'underlined';\n const variantClass = `${variants[variant]} ${error && 'border-error'}`;\n\n return (\n
\n
\n {/* Prefix */}\n {prefix && (\n
\n {prefix}\n
\n )}\n\n \n
\n {/* Error message */}\n {error && {error?.message}}\n
\n );\n});\n","import { forwardRef } from 'react';\nimport { FieldError } from 'react-hook-form';\n\ninterface TextFormFieldProps {\n type?: 'text' | 'number' | 'date' | 'time' | 'password';\n placeholder?: string;\n variant?: 'underlined' | 'outlined';\n error?: FieldError | undefined;\n value?: string | number | undefined;\n prefix?: React.ReactNode;\n suffix?: React.ReactNode;\n disabled?: boolean | undefined;\n onChange?: (event: React.ChangeEvent) => void;\n readOnly?: boolean;\n}\n\nexport const TextFormField = forwardRef(\n function TextFormField(\n {\n type = 'text',\n placeholder,\n error,\n variant,\n value,\n prefix,\n suffix,\n disabled,\n onChange,\n readOnly = false,\n ...rest\n },\n ref,\n ) {\n const variants = {\n underlined:\n 'focus:border-b-black border-b border-b-[#bdbdbd] pb-[0.375rem] text-body1',\n outlined:\n 'focus:border-black border border-[#bdbdbd] rounded-lg p-4 text-body1',\n };\n\n variant = variant ?? 'underlined';\n const variantClass = `${variants[variant]} ${error && 'border-error'}`;\n const textClass = error ? 'text-error' : 'text-black';\n\n return (\n
\n
\n {/* Prefix */}\n {prefix && (\n
\n {prefix}\n
\n )}\n\n \n\n {/* suffix */}\n {suffix && (\n
\n {suffix}\n
\n )}\n
\n {/* Error message */}\n {error && (\n
{error?.message}
\n )}\n {/* Error message */}\n
\n );\n },\n);\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useEffect, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useLocation } from 'react-router-dom';\nimport * as yup from 'yup';\nimport { useBreadcrumbs } from '../contexts';\nimport { contactUs } from '../services/contactUs';\nimport { showError, showSuccess } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { TextAreaFormField } from './FormFields/TextAreaFormField';\nimport { TextFormField } from './FormFields/TextFormField';\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Must be a valid email')\n .required('Email is required'),\n name: yup.string().required('First name is required'),\n subject: yup.string().required('Subject is required'),\n description: yup.string().required('Description is required'),\n});\n\ntype FormValues = {\n name: string;\n email: string;\n subject: string;\n description: string;\n};\n\nconst ContactUs: React.FC = () => {\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Contact Us' },\n ]);\n }, [location.pathname]);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schema),\n defaultValues: {\n name: '',\n email: '',\n subject: '',\n description: '',\n },\n });\n\n const [loading, setLoading] = useState(false);\n\n const onSubmit = async (data: FormValues) => {\n setLoading(true);\n\n try {\n await contactUs(data);\n\n setLoading(false);\n\n showSuccess('Successfully sent message!');\n } catch (e) {\n setLoading(false);\n\n showError((e as Error).message);\n }\n };\n\n return (\n <>\n
\n
\n
Contact Us
\n\n
Fill out this form to send a message
\n
\n\n
\n
\n {/* Name */}\n
\n
Name
\n \n
\n\n {/* Email address */}\n
\n
Email Address
\n\n \n
\n\n {/* Subject */}\n
\n
Subject
\n \n
\n\n {/* Description */}\n
\n
Description
\n \n
\n\n \n
\n
\n
\n \n );\n};\n\nexport default ContactUs;\n","interface CircularButtonProps {\n onClick?: () => void;\n ariaLabel: string;\n children: React.ReactNode;\n}\n\nexport const CircularButton: React.FC = ({\n onClick,\n ariaLabel,\n children,\n}) => {\n return (\n \n {children}\n \n );\n};\n","import React, { MutableRefObject, useEffect, useRef, useState } from 'react';\n\ninterface DropdownButtonProps {\n child: React.ReactNode;\n content: React.ReactNode;\n}\n\nexport const DropdownButton = ({ child, content }: DropdownButtonProps) => {\n const [open, setOpen] = useState(false);\n\n const toggleDropdown = (e: React.MouseEvent) => {\n e.stopPropagation();\n setOpen(!open);\n };\n\n const dropdownRef: MutableRefObject = useRef(null);\n\n const handleClickOutside = (e: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(e.target as Node)\n ) {\n setOpen(false);\n }\n };\n\n useEffect(() => {\n // Add event listener to detect clicks outside\n document.addEventListener('mousedown', handleClickOutside);\n\n // Clean up the event listener on component unmount\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, []);\n\n return (\n <>\n \n {/** Icon */}\n
{child}
\n\n {/* Dropdown Menu */}\n {open && (\n
\n {content}\n
\n )}\n
\n \n );\n};\n","interface IconButtonProps {\n icon: React.ReactNode; // Icon component type\n onClick: () => void;\n ariaLabel: string;\n bgClass?: string; // Deprecated in favor of className for more flexibility\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n className?: string; // New property for additional class names\n hoverClass?: string;\n}\n\nexport const IconButton: React.FC = ({\n icon,\n onClick,\n ariaLabel,\n bgClass, // Optional\n size = 'lg',\n className = '', // Default to an empty string\n hoverClass = 'hover:bg-gray-100',\n}: IconButtonProps) => {\n const buttonSize: Record = {\n xs: 'w-6 h-6',\n sm: 'w-8 h-8',\n md: 'w-10 h-10',\n lg: 'w-12 h-12',\n xl: 'w-16 h-16',\n };\n\n return (\n \n {icon}\n \n );\n};\n","import { MutableRefObject, useEffect, useRef, useState } from 'react';\nimport { EllipsisIcon } from '../icons';\nimport { IconButton } from './IconButton';\n\nexport const MenuButton = ({ menu: Menu }: { menu: React.FC }) => {\n const [open, setOpen] = useState(false);\n const dropdownRef: MutableRefObject = useRef(null);\n\n const toggleDropdown = () => {\n setOpen(!open);\n };\n\n // Close the dropdown if clicking outside\n useEffect(() => {\n const handleClickOutside = (event: { target: any }) => {\n if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {\n setOpen(false); // Close the dropdown\n }\n };\n\n if (open) {\n document.addEventListener('mousedown', handleClickOutside);\n } else {\n document.removeEventListener('mousedown', handleClickOutside);\n }\n\n // Cleanup the event listener when component unmounts\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [open]);\n\n return (\n <>\n \n }\n bgClass=\"bg-neutral-100\"\n />\n\n {open && (\n
\n \n
\n )}\n \n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const BellIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n );\n};\n","import moment from 'moment';\nimport { NavigateFunction } from 'react-router-dom';\nimport { deleteNotification, markNotificationAsRead } from '../services';\nimport { Notification } from '../types/Notification';\nimport { getInitials, showError, showSuccess } from '../utils';\nimport { formatNotification } from '../utils/formatNotification';\nimport { Avatar } from './Avatar';\nimport { useState } from 'react';\nimport { FilledButton, IconButton, OutlinedButton } from './Buttons';\nimport { DeleteIcon } from './icons';\nimport { useDialog } from './DialogContext';\n\ninterface NotificationListTileProps {\n notification: Notification;\n navigate: NavigateFunction;\n onDeleted: VoidFunction;\n}\n\nexport const NotificationListTile: React.FC = (\n props: NotificationListTileProps,\n) => {\n const { notification, navigate, onDeleted } = props;\n const { type, resourceId } = notification;\n const { openDialog, closeDialog } = useDialog();\n\n const [isHovered, setIsHovered] = useState(false);\n\n const handleMouseEnter = () => {\n setIsHovered(true);\n };\n\n const handleMouseLeave = () => {\n setIsHovered(false);\n };\n\n const confirmDelete = () => {\n openDialog({\n title: 'Confirm Delete',\n content: 'This action cannot be undone.',\n actions: [\n ,\n ,\n ],\n });\n };\n\n const handleDelete = async () => {\n closeDialog();\n\n try {\n await deleteNotification({ id: notification.id });\n\n onDeleted();\n\n showSuccess('Successfully deleted notification');\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const handleTapNotification = async () => {\n await markNotificationAsRead(notification.id);\n\n switch (type) {\n case 'APPOINTMENT_PARTICIPANT_JOINED':\n case 'APPOINTMENT_CREATED':\n navigate(`/requests/${notification.metadata?.sender?.participantId}`);\n return;\n case 'APPOINTMENT_PAYMENT_SETTLED':\n case 'APPOINTMENT_PAYMENT_RECEIVED':\n navigate(`/transaction/paid`);\n return;\n case 'APPOINTMENT_UPCOMING':\n case 'APPOINTMENT_CONFIRMED':\n case 'APPOINTMENT_RESCHEDULED':\n case 'APPOINTMENT_STARTED':\n case 'APPOINTMENT_CANCELLED':\n navigate(`/appointment/${resourceId}`);\n return;\n case 'APPOINTMENT_SETTLE_PAYMENT':\n navigate(`/appointment/${resourceId}/pay`);\n return;\n case 'APPOINTMENT_REJECTED':\n case 'APPOINTMENT_COMPLETED':\n navigate(`/appointment`);\n return;\n default:\n showSuccess('Notification clicked!');\n }\n };\n\n return (\n <>\n \n \n {/* sender avatar */}\n
\n
\n {!notification.isRead && (\n
\n )}\n
\n\n
\n {notification.sender && (\n \n )}\n
\n
\n\n
\n {/* Notification content */}\n
\n \n {formatNotification(notification).sender}\n \n {` `}\n \n {formatNotification(notification).message}\n \n {` `}\n \n {formatNotification(notification).serviceTitle}\n \n {` on `}\n \n {formatNotification(notification).date}\n \n .\n
\n\n {/* Notification time */}\n
\n {moment(notification.createdAt).format('MMM D, Y') ?? ''}\n
\n
\n\n {/* More svg */}\n {/* */}\n
\n\n {isHovered && (\n
\n }\n onClick={confirmDelete}\n ariaLabel={'delete'}\n />\n
\n )}\n \n \n );\n};\n\nexport const SkeletonNotificationListTile = () => {\n return (\n
\n {/* sender avatar */}\n
\n\n
\n {/* Notification content */}\n
\n
\n
\n
\n
\n\n {/* Notification time */}\n
\n
\n
\n );\n};\n\nexport default NotificationListTile;\n","import {\n MutableRefObject,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport { markAllNotificationAsRead } from '../../services';\nimport { AppDispatch, getNotificationsAsync } from '../../store';\nimport { Notification } from '../../types';\nimport { showSuccess } from '../../utils';\nimport { DataLoader } from '../DataLoader';\nimport { BellIcon } from '../icons/Bell';\nimport NotificationListTile from '../NotificationListTile';\nimport { IconButton } from './IconButton';\n\nexport const NotificationButton: React.FC = () => {\n const dispatch = useDispatch();\n\n const [isOpen, setIsOpen] = useState(false);\n\n const dropdownRef: MutableRefObject = useRef(null);\n\n const [refreshCount, setRefreshCount] = useState(0);\n\n const navigate = useNavigate();\n\n // Function to toggle dropdown visibility\n const toggleDropdown = () => {\n setIsOpen(!isOpen);\n };\n\n // Close the dropdown if clicking outside\n useEffect(() => {\n const handleClickOutside = (event: { target: any }) => {\n if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {\n setIsOpen(false); // Close the dropdown\n }\n };\n\n if (isOpen) {\n document.addEventListener('mousedown', handleClickOutside);\n } else {\n document.removeEventListener('mousedown', handleClickOutside);\n }\n\n // Cleanup the event listener when component unmounts\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [isOpen]);\n\n const fetchUpcomingAppointments = useCallback(async () => {\n const result = await dispatch(getNotificationsAsync({})).unwrap();\n\n return result;\n }, [dispatch, refreshCount]);\n\n const handleMarkAllAsRead = async () => {\n markAllNotificationAsRead().then(\n (_) => (\n showSuccess('Marked all notifications as read'),\n setRefreshCount((prev) => prev + 1)\n ),\n );\n };\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n const openNotifications = () => navigate(`/notifications`);\n\n /// update every 5 minutes\n useEffect(() => {\n const interval = setInterval(() => {\n handleRefresh();\n }, 60 * 1000 * 5);\n\n return () => clearInterval(interval);\n }, [handleRefresh]);\n\n return (\n <>\n {\n return (\n \n {/** Icon */}\n \n }\n onClick={() => setIsOpen(true)}\n ariaLabel=\"message\"\n />\n\n {isOpen && (\n
\n
\n

Notifications

\n\n \n Mark all as read\n
\n
\n
    \n {[].length > 0 ? (\n [].map((notification: Notification, index: number) => (\n \n ))\n ) : (\n
  • \n You're all caught up!\n
  • \n )}\n
\n \n View All\n
\n
\n )}\n
\n );\n }}\n renderLoading={() => (\n \n {/** Icon */}\n \n }\n onClick={() => { }}\n ariaLabel=\"message\"\n />\n\n {isOpen && (\n
\n
\n

Notifications

\n\n \n Mark all as read\n
\n
\n
    \n {[].length > 0 ? (\n [].map((notification: Notification, index: number) => (\n \n ))\n ) : (\n
  • \n You're all caught up!\n
  • \n )}\n
\n \n View All\n
\n
\n )}\n \n )}\n renderData={(data: Notification[]) => {\n const unreadNotifications = data.filter((e) => e.isRead === false);\n return (\n \n {/** Icon */}\n \n }\n onClick={toggleDropdown}\n ariaLabel=\"message\"\n />\n\n {/** Badge */}\n\n {unreadNotifications.length > 0 ? (\n \n {unreadNotifications.length >= 10\n ? '9+'\n : unreadNotifications.length}\n \n ) : (\n
\n )}\n\n {/* Dropdown Menu */}\n {isOpen && (\n
\n
\n

Notifications

\n\n \n Mark all as read\n
\n
\n
    \n {unreadNotifications.length > 0 ? (\n unreadNotifications.map(\n (notification: Notification, index: number) => (\n \n ),\n )\n ) : (\n
  • \n You're all caught up!\n
  • \n )}\n
\n \n View All\n
\n \n )}\n \n );\n }}\n />\n \n );\n};\n","interface TextButtonProps {\n label: string;\n size?: 'sm' | 'md' | 'lg';\n textColorClass?: string;\n loading?: boolean;\n onClick: VoidFunction;\n}\n\nexport const TextButton: React.FC = ({\n label,\n size = 'md',\n textColorClass = 'text-black',\n onClick,\n loading = false,\n}: TextButtonProps) => {\n const sizeClasses = {\n lg: 'text-body1 px-5 py-3',\n md: 'text-body2 px-5 py-3',\n sm: 'text-body2 px-3 py-2',\n };\n\n return (\n \n {loading ? 'Loading' : label}\n \n );\n};\n","import { useEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { deactivateAccount, deleteAccount } from '../services/auth';\nimport { AppDispatch, logoutAsync } from '../store';\nimport { showError } from '../utils';\nimport { OutlinedButton } from './Buttons';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { useDialog } from './DialogContext';\nimport { SuccessIcon } from './icons';\n\nconst DeactivateAccount: React.FC = () => {\n const { openDialog, closeDialog } = useDialog();\n const dispatch = useDispatch();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Deactivate Account' },\n ]);\n }, [location.pathname]);\n\n const handleLogout = async () => {\n closeDialog();\n dispatch(logoutAsync());\n };\n\n const confirmDeactivate = async () => {\n openDialog({\n title: 'Deactivate Account',\n content: 'Are you sure you want to deactivate your account?',\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n const handleDeactivate = async () => {\n try {\n await deactivateAccount();\n\n openDialog({\n icon: ,\n title: 'Success',\n centerTitle: true,\n centerContent: true,\n dismissable: false,\n content:\n 'Successfully deactivated account. Your account will automatically reactivate on your next login. You will now be logged out.',\n actions: (\n <>\n \n \n ),\n });\n } catch (e) {\n closeDialog();\n\n showError((e as Error).message);\n }\n };\n\n const confirmDelete = async () => {\n openDialog({\n title: 'Delete Account',\n content:\n 'Are you sure you want to delete your account? Your account will be permanently deleted after 7 days. Contact support at support@tellycom.io for any concerns.',\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n const handleDelete = async () => {\n try {\n await deleteAccount();\n\n openDialog({\n icon: ,\n title: 'Success',\n centerTitle: true,\n dismissable: false,\n centerContent: true,\n content:\n 'Successfully deleted account. You have 7 days to restore your account. Contact us at support@tellycom.io to restore your account. User will be logged out.',\n actions: (\n <>\n \n \n ),\n });\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n return (\n <>\n
\n
\n
\n
Deactivate
\n
\n\n
Temporarily deactivate your account
\n\n
\n Your profile will be temporarily hidden until you activate it again\n by logging back in.\n
\n
\n\n
\n \n
\n\n
\n
\n
Delete
\n
\n\n
Permanently delete your account
\n\n
\n Your profile will be temporarily hidden until you activate it again\n by logging back in.\n
\n
\n\n
\n \n
\n
\n \n );\n};\n\nexport default DeactivateAccount;\n","import React from 'react';\nimport { Navigate, useParams } from 'react-router-dom';\n\ninterface DynamicNavigateProps {\n to: string;\n replace?: boolean;\n}\n\nconst DynamicNavigate: React.FC = ({\n to,\n replace = true,\n}) => {\n const params = useParams();\n\n // Replace each parameter in `to` with the corresponding value in `params`\n const interpolatedPath = to.replace(\n /:(\\w+)/g,\n (_, key) => params[key as keyof typeof params] || '',\n );\n\n return ;\n};\n\nexport default DynamicNavigate;\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useEffect, useRef, useState } from 'react';\nimport { Controller, useForm } from 'react-hook-form';\nimport PhoneInput, {\n Country,\n isValidPhoneNumber,\n} from 'react-phone-number-input';\nimport 'react-phone-number-input/style.css';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport * as yup from 'yup';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, selectUser, updateUserAsync } from '../store';\nimport { UpdateProfilePayload } from '../types/UpdateProfilePayload';\nimport { getInitials, showSuccess } from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { TextButton } from './Buttons/TextButton';\nimport { TextFormField } from './FormFields/TextFormField';\n\nconst schema = yup.object().shape({\n firstname: yup.string().required('First name is required'),\n lastname: yup.string().required('Last name is required'),\n profession: yup.string().required('Profession is required'),\n // avatar: yup.string().nullable(),\n about: yup.string().required('About is required'),\n contactNumber: yup\n .string()\n .required('Contact number is required')\n .test('is-valid-phone', 'Invalid phone number', (value) =>\n isValidPhoneNumber(value || ''),\n )\n .required('Contact number is required'),\n // cover_photo: yup.string().nullable(),\n});\n\ntype FormValues = {\n firstname: string;\n lastname: string;\n profession: string;\n // avatar?: File | null,\n about: string;\n contactNumber: string;\n // cover_photo?: File | null,\n};\n\nexport const EditProfile = () => {\n const user = useSelector(selectUser);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Edit Profile' },\n ]);\n }, [location.pathname]);\n\n const [loading, setLoading] = useState(false);\n // if the user decides to remove avatar\n // add a request to remove avatar\n const [removeAvatar, setRemoveAvatar] = useState(false);\n\n const [avatarPreview, setAvatarPreview] = useState(\n user?.avatar,\n ); // To hold the image preview URL\n const [coverPhotoPreview, setCoverPhotoPreview] = useState<\n string | undefined\n >(user?.cover_photo); // To hold the image preview URL\n const avatarInputRef = useRef(null);\n const coverPhotoInputRef = useRef(null);\n\n const dispatch = useDispatch();\n\n const [avatar, setAvatar] = useState();\n const [coverPhoto, setCoverPhoto] = useState();\n\n const [country, setCountry] = useState('US');\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n control,\n setValue,\n } = useForm({\n resolver: yupResolver(schema),\n defaultValues: {\n firstname: '',\n lastname: '',\n about: '',\n profession: '',\n contactNumber: '',\n },\n });\n\n useEffect(() => {\n if (user) {\n setValue('firstname', user.firstname);\n setValue('lastname', user.lastname);\n setValue('about', user.about ?? '');\n setValue('profession', user.profession ?? '');\n setValue('contactNumber', user.contactNumber ?? '');\n }\n }, [user, setValue]);\n\n console.log(errors);\n\n const handleSelectAvatar = () => {\n avatarInputRef.current?.click();\n };\n\n const handleSelectCoverPhoto = () => {\n coverPhotoInputRef.current?.click();\n };\n\n const handleAvatarChange = (event: React.ChangeEvent) => {\n const file = event.target.files?.[0]; // Get the first file selected\n\n setAvatar(file);\n\n if (file) {\n // Create a preview URL for the selected image file\n const imageUrl = URL.createObjectURL(file);\n setAvatarPreview(imageUrl); // Update the state with the preview URL\n }\n };\n\n const handleCoverPhotoChange = (\n event: React.ChangeEvent,\n ) => {\n const file = event.target.files?.[0]; // Get the first file selected\n\n setCoverPhoto(file);\n\n if (file) {\n // Create a preview URL for the selected image file\n const imageUrl = URL.createObjectURL(file);\n setCoverPhotoPreview(imageUrl); // Update the state with the preview URL\n }\n };\n\n const saveProfile = async (data: FormValues) => {\n setLoading(true);\n const payload: UpdateProfilePayload = {\n ...data,\n cover_photo: coverPhoto,\n avatar: avatar,\n removeAvatar,\n contactNumber: data.contactNumber,\n };\n\n try {\n await dispatch(updateUserAsync(payload)).unwrap();\n\n showSuccess('Successfully updated user information');\n } catch (e) {\n showSuccess(`Failed to update user information: ${e}`);\n } finally {\n setLoading(false);\n }\n };\n\n /// cleanup generated image url\n useEffect(() => {\n return () => {\n if (coverPhotoPreview) {\n URL.revokeObjectURL(coverPhotoPreview); // Clean up the URL\n }\n };\n }, [coverPhotoPreview]);\n\n /// cleanup generated image url\n useEffect(() => {\n return () => {\n if (avatarPreview) {\n URL.revokeObjectURL(avatarPreview); // Clean up the URL\n }\n };\n }, [avatarPreview]);\n\n return (\n <>\n
\n
\n
Profile Edit
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n
\n\n
\n
\n \n
\n\n {/* Create a hidden form input to store selected avatar */}\n \n\n \n\n setRemoveAvatar(true)}\n size=\"md\"\n />\n
\n\n
\n \n\n \n\n \n\n
\n \n isValidPhoneNumber(value || '') || 'Invalid phone number',\n }}\n render={({ field: { onChange, value } }) => (\n onChange(value || '')} // Ensuring `onChange` gets only the value\n onCountryChange={(country) => setCountry(country)}\n error={\n !isValidPhoneNumber(value || '')\n ? 'Invalid phone number'\n : undefined\n }\n />\n )}\n />\n\n {errors.contactNumber && (\n
\n {errors.contactNumber.message}\n
\n )}\n
\n
\n\n
\n
Cover Photo
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n\n \n {coverPhotoPreview && (\n \n )}\n
\n\n {/* Create a hidden form input to store selected avatar */}\n \n
\n\n
\n
About
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n\n \n
\n\n
\n
\n \n
\n \n \n );\n};\n\nexport default EditProfile;\n","type onPaginationClick = (newPage: number) => void;\n\nconst Pagination: React.FC = (props: PaginationProps) => {\n const { page, max, onClick } = props;\n\n const handleBackClick = () => {\n if (page > 1) {\n onClick(page - 1);\n }\n };\n\n const handleForwardClick = () => {\n if (page < max) {\n onClick(page + 1);\n }\n };\n\n return (\n <>\n
\n 1} onClick={handleBackClick} />\n\n {Array.from({ length: max }, (_, index) => index + 1).map(\n (item, index) => (\n onClick(item)}\n page={item}\n key={index}\n selected={page === item}\n />\n ),\n )}\n\n \n
\n \n );\n};\n\nconst PaginationItem = ({\n page,\n onClick,\n selected,\n}: {\n page: number;\n selected: boolean;\n onClick: VoidFunction;\n}) => {\n return (\n <>\n \n {page}\n \n \n );\n};\n\nexport const PaginationBack = ({\n onClick,\n enabled,\n}: {\n onClick: VoidFunction;\n enabled: boolean;\n}) => {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport const PaginationForward = ({\n onClick,\n enabled,\n}: {\n onClick: VoidFunction;\n enabled: boolean;\n}) => {\n return (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\ninterface PaginationProps {\n // the current page\n page: number;\n // the last page\n max: number;\n\n onClick: onPaginationClick;\n}\n\nexport default Pagination;\n","import moment from 'moment';\nimport { useState } from 'react';\nimport { CalendarEvent } from '../types/CalendarEvent';\nimport { PaginationBack, PaginationForward } from './Pagination';\n\ntype OnSelect = (newDate: Date) => void;\n\ninterface CalendarComponentProps {\n selectedDay: Date | null;\n onSelect: OnSelect;\n events?: CalendarEvent[]; // UpcomingAppointment[];\n onChangeMonth?: (month: number, year: number) => void;\n}\n\nexport const CalendarComponent: React.FC = ({\n selectedDay,\n onSelect,\n events,\n onChangeMonth,\n}: CalendarComponentProps) => {\n // const [selectedDay, setSelectedDay] = useState(new Date());\n const [currentMonth, setCurrentMonth] = useState(new Date().getMonth());\n const [currentYear, setCurrentYear] = useState(new Date().getFullYear());\n\n // Get the total days in the current month\n const daysInMonth = new Date(currentYear, currentMonth + 1, 0).getDate();\n\n // Get the starting day of the week for the current month (0 = Sunday, 6 = Saturday)\n const startDay = new Date(currentYear, currentMonth, 1).getDay();\n\n // Create an array to hold all the days (including empty days before 1st)\n const daysArray: (number | null)[] = [];\n\n // Fill the empty spaces before the 1st of the month\n for (let i = 0; i < startDay; i++) {\n daysArray.push(null); // null represents empty cells\n }\n\n // Add all the days of the month\n for (let i = 1; i <= daysInMonth; i++) {\n daysArray.push(i);\n }\n\n const isSelectedDay = (day: number | null) => {\n if (!day) return false;\n if (!selectedDay) return false;\n\n return (\n day &&\n selectedDay.getDate() === day &&\n selectedDay.getMonth() === currentMonth &&\n selectedDay.getFullYear() === currentYear\n );\n };\n\n const changeMonth = (direction: -1 | 1) => {\n let newMonth = currentMonth + direction;\n let newYear = currentYear;\n\n // Handle year overflow when moving past December or before January\n if (newMonth > 11) {\n newMonth = 0;\n newYear += 1;\n } else if (newMonth < 0) {\n newMonth = 11;\n newYear -= 1;\n }\n\n setCurrentMonth(newMonth);\n setCurrentYear(newYear);\n onChangeMonth && onChangeMonth(newMonth, newYear);\n };\n\n const handleSelect = (newDate: Date) => {\n onSelect(newDate);\n };\n\n return (\n <>\n
\n {/* month navigator */}\n
\n changeMonth(-1)} enabled={true} />\n\n {/* selected month */}\n
\n {new Date(currentYear, currentMonth).toLocaleString('default', {\n month: 'long',\n year: 'numeric',\n })}\n
\n\n changeMonth(1)} enabled={true} />\n
\n\n {/* Calendar header */}\n
\n {['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'].map((day, index) => (\n \n {day}\n
\n ))}\n
\n\n {/* Calendar days */}\n
\n {daysArray.map((day, index) => {\n const newDate = day\n ? new Date(currentYear, currentMonth, day)\n : null;\n\n const isInvalid =\n !newDate || moment(newDate).isBefore(moment().startOf('day'));\n\n const isToday = moment(newDate).isSame(moment(), 'date');\n\n console.log(`isToday => ${isToday}`);\n\n // Format date as 'YYYY-MM-DD' for lookup in events\n const hasEvent =\n newDate &&\n !isInvalid &&\n events?.find((item) =>\n moment(item.startTime).isSame(newDate, 'date'),\n );\n\n return (\n handleSelect(newDate)}\n >\n {day ? day : ''}\n\n {/* Dot indicator */}\n {day && hasEvent && (\n \n )}\n
\n );\n })}\n \n \n \n );\n};\n","type ColorVariant = {\n side: string;\n content: string;\n text: string;\n dot: string;\n};\n\ntype ColorVariants = {\n [key: string]: ColorVariant;\n};\n\nexport const COLOR_VARIANTS: ColorVariants = {\n deepPurple: {\n side: 'bg-deepPurple-500',\n content: 'bg-deepPurple-100',\n text: 'text-deepPurple-900',\n dot: 'bg-deepPurple-800',\n },\n green: {\n side: 'bg-green-500',\n content: 'bg-green-100',\n text: 'text-green-900',\n dot: 'bg-green-800',\n },\n red: {\n side: 'bg-red-500',\n content: 'bg-red-100',\n text: 'text-red-900',\n dot: 'bg-red-800',\n },\n blue: {\n side: 'bg-blue-500',\n content: 'bg-blue-100',\n text: 'text-blue-900',\n dot: 'bg-blue-800',\n },\n yellow: {\n side: 'bg-yellow-500',\n content: 'bg-yellow-100',\n text: 'text-yellow-900',\n dot: 'bg-yellow-800',\n },\n orange: {\n side: 'bg-orange-500',\n content: 'bg-orange-100',\n text: 'text-orange-900',\n dot: 'bg-orange-800',\n },\n pink: {\n side: 'bg-pink-500',\n content: 'bg-pink-100',\n text: 'text-pink-900',\n dot: 'bg-pink-800',\n },\n lightBlue: {\n side: 'bg-lightBlue-500',\n content: 'bg-lightBlue-100',\n text: 'text-lightBlue-900',\n dot: 'bg-lightBlue-800',\n },\n lightRed: {\n side: 'bg-lightRed-500',\n content: 'bg-lightRed-100',\n text: 'text-lightRed-900',\n dot: 'bg-lightRed-800',\n },\n black: {\n side: 'bg-black',\n content: 'bg-gray-600',\n text: 'text-white',\n dot: 'bg-gray-800',\n },\n};\n","import moment from 'moment';\n\nimport { useState } from 'react';\nimport { COLOR_VARIANTS } from '../constants/colorVariants';\nimport {\n deleteAppointmentSession,\n isBlockedSchedule,\n serviceColors,\n} from '../services/appointments';\nimport { AppointmentSession } from '../types';\nimport { getTimezoneAbbreviation, showError, showSuccess } from '../utils';\nimport { FilledButton, OutlinedButton } from './Buttons';\nimport { useDialog } from './DialogContext';\nimport { EmptyUI } from './EmptyUI';\nimport { DeleteIcon, VideoIcon } from './icons';\n\ninterface ScheduleProps {\n appointments: AppointmentSession[];\n onClick?: (appointmentId: string) => void;\n selectedDay?: Date;\n onDeleted: () => void;\n}\n\nexport const Schedule: React.FC = ({\n appointments,\n onClick,\n selectedDay,\n onDeleted,\n}: ScheduleProps) => {\n return (\n <>\n {/* Today's Schedule */}\n
\n <>\n
\n {moment(selectedDay).isSame(moment(), 'date')\n ? \"Today's\"\n : moment(selectedDay).format('MMMM DD, Y')}{' '}\n Schedule\n
\n\n {appointments.length === 0 ? (\n
\n \n
\n ) : (\n
\n {appointments.map((e, index) => {\n const localStart = e.startTime;\n const localEnd = e.endTime;\n\n if (isBlockedSchedule(e)) {\n return (\n \n );\n }\n\n const theme: string = serviceColors[e.service.theme];\n const variant =\n COLOR_VARIANTS[theme] ?? COLOR_VARIANTS['black'];\n\n return (\n onClick && onClick(e.id)}\n className={`rounded-1 flex h-[68px] cursor-pointer flex-row`}\n >\n {/* Side border */}\n
\n\n {/* content */}\n \n \n {/* Time schedule */}\n \n {moment(localStart).format('hh:mm A')} -{' '}\n {moment(localEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n\n \n {/* video icon */}\n \n
\n
\n \n {e.service.title}\n
\n \n \n );\n })}\n \n )}\n \n \n \n );\n};\n\nconst BlockedScheduleItem = ({\n blockedSchedule,\n onDeleted,\n}: {\n blockedSchedule: AppointmentSession;\n onDeleted: () => void;\n}) => {\n const [isHovered, setIsHovered] = useState(false);\n const { openDialog, closeDialog } = useDialog();\n\n const handleMouseEnter = () => setIsHovered(true);\n const handleMouseLeave = () => setIsHovered(false);\n\n const confirmDelete = async () => {\n openDialog({\n title: 'Confirm Delete',\n content: 'Are you sure you want to delete this blocked schedule?',\n actions: [\n ,\n ,\n ],\n });\n };\n\n const handleDelete = async () => {\n closeDialog();\n\n try {\n await deleteAppointmentSession(blockedSchedule.id);\n\n showSuccess('Successfully deleted schedule');\n\n onDeleted();\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const localStart = blockedSchedule.startTime;\n const localEnd = blockedSchedule.endTime;\n\n return (\n \n {/* Side border */}\n \n\n {/* content */}\n \n \n {/* Time schedule */}\n \n {moment(localStart).format('hh:mm A')} -{' '}\n {moment(localEnd).format('hh:mm A')} {getTimezoneAbbreviation()}\n \n\n \n {/* video icon */}\n \n \n \n \n BLOCKED\n \n \n\n {isHovered && (\n \n \n \n )}\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Outlet, useLocation, useNavigate } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n AppDispatch,\n getUpcomingAppointmentsAsync,\n selectRole,\n selectUpcomingAppointments,\n} from '../store';\nimport { getCancelledAppointmentsAsync } from '../store/cancelledAppointmentsSlice';\nimport { AppointmentSession } from '../types';\nimport { CalendarEvent } from '../types/CalendarEvent';\nimport { getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { CalendarComponent } from './Calendar';\nimport { DataLoader } from './DataLoader';\nimport { Schedule } from './Schedule';\n\nconst guestAppointmentTabs: string[] = [\n 'Upcoming',\n // 'Request',\n 'Completed',\n 'Cancelled',\n];\n\nexport const GuestAppointments: React.FC = () => {\n const [activeTab, setActiveTab] = useState('Upcoming');\n const navigate = useNavigate();\n\n const handleTabChange = (tab: string) => {\n navigate(`/appointment/${tab.toLowerCase()}`);\n setActiveTab(tab);\n };\n\n const location = useLocation();\n\n useEffect(() => {\n const currentTab = location.pathname.split('/')[2]; // Get the last part of the URL\n\n if (currentTab && currentTab.length > 0) {\n setActiveTab(currentTab.toLowerCase()); // Convert it back to uppercase for display\n } else {\n setActiveTab('upcoming');\n }\n }, [location.pathname]);\n\n\n return (\n <>\n \n Appointments - Tellycom\n \n\n
\n
\n {/* tabs */}\n
\n {guestAppointmentTabs.map((e, index) => (\n handleTabChange(e)}\n >\n {e}\n
\n ))}\n
\n\n \n
\n \n \n );\n};\n\nexport const GuestUpcomingAppointments = () => {\n const dispatch = useDispatch();\n const [selectedDay, setSelectedDay] = useState(new Date());\n const { upcomingAppointments } = useSelector(selectUpcomingAppointments);\n const navigate = useNavigate();\n\n const [refresh, setRefresh] = useState(0);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n const location = useLocation();\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Appointments',\n path: 'appointment',\n },\n {\n name: 'Upcoming',\n },\n ]);\n }, [location.pathname]);\n\n // Fetch upcoming appointments\n const fetchUpcomingAppointments = useCallback(async () => {\n const result = await dispatch(getUpcomingAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch, refresh]);\n\n const handleRefresh = () => setRefresh((prev) => prev + 1);\n\n const goToAppointment = (appointmentId: string) =>\n navigate(`/appointment/${appointmentId}`);\n\n return (\n
\n ({ startTime: moment(e.startTime) }) as CalendarEvent,\n )}\n />\n\n
\n (\n <>\n
\n {/* Today's Schedule Header Skeleton */}\n
\n
\n
\n\n
\n {Array(4)\n .fill(null)\n .map((_, index) => (\n \n {/* Side border skeleton */}\n
\n\n {/* Content skeleton */}\n
\n {/* Time and icon skeleton */}\n
\n \n
\n
\n\n {/* Service title skeleton */}\n
\n
\n
\n ))}\n
\n
\n \n )}\n renderData={(appointments) => {\n const filteredAppointments = appointments.filter((e) =>\n moment(e.startTime).isSame(selectedDay, 'date'),\n );\n\n return (\n goToAppointment(id)}\n selectedDay={selectedDay}\n onDeleted={handleRefresh}\n />\n );\n }}\n renderEmpty={() => (\n \n )}\n />\n
\n
\n );\n};\n\nexport const GuestCancelledAppointments: React.FC = () => {\n const dispatch = useDispatch();\n const role = useSelector(selectRole);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n const location = useLocation();\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Appointments',\n path: 'appointment',\n },\n {\n name: 'Cancelled',\n },\n ]);\n }, [location.pathname]);\n\n // Fetch upcoming appointments\n const fetchCancelledAppointments = useCallback(async () => {\n const result = await dispatch(\n getCancelledAppointmentsAsync({ role: role ?? 'GUEST' }),\n ).unwrap();\n return result;\n }, [dispatch]);\n\n return (\n <>\n (\n <>\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n \n )}\n renderData={(appointments) => {\n return (\n <>\n
\n
Guest Name
\n
Reason
\n
Service
\n
Schedule
\n
Time
\n
\n\n {appointments.map((e, index) => (\n \n ))}\n \n );\n }}\n />\n \n );\n};\n\ninterface GuestAppointmentCancelledListTileProps {\n appointment: AppointmentSession;\n}\n\nexport const GuestAppointmentCancelledListTile = ({\n appointment,\n}: GuestAppointmentCancelledListTileProps) => {\n // destructure\n const {\n service: { title },\n startTime,\n host,\n reasonForCancelOrReject,\n } = appointment;\n\n const date = moment(startTime).format('dddd - DD MMMM Y');\n\n const time = moment(startTime).format('hh:mm A');\n\n return (\n <>\n {/* small screen */}\n
\n
\n
Host Name
\n
\n {/* */}\n \n\n \n {host?.firstname} {host?.lastname}\n \n
\n
\n\n
\n
Reason
\n
\n {/* */}\n {reasonForCancelOrReject}\n
\n
\n\n
\n
Service
\n
\n {/* */}\n {title}\n
\n
\n\n
\n
Date
\n
\n {/* */}\n {date}\n
\n
\n\n
\n
Time
\n
\n {/* */}\n {time} {getTimezoneAbbreviation()}\n
\n
\n
\n\n {/* big screen */}\n
\n
\n {/* */}\n \n\n \n {host?.firstname} {host?.lastname}\n \n
\n
{reasonForCancelOrReject}
\n
{title}
\n
{date}
\n
\n {time} {getTimezoneAbbreviation()}\n
\n
\n \n );\n};\n\nconst SkeletonCancelledAppointment = () => {\n return (\n <>\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n\n
\n
\n {/* Skeleton for Avatar */}\n
\n {/* Skeleton for Host Name */}\n
\n
\n {/* Skeleton for Reason */}\n
\n {/* Skeleton for Title */}\n
\n {/* Skeleton for Date */}\n
\n {/* Skeleton for Time */}\n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useLocation, useNavigate } from 'react-router-dom';\nimport { Avatar } from '../components/Avatar';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, selectRole } from '../store';\nimport { getCompletedAppointmentsAsync } from '../store/completedAppointmentsSlice';\nimport { AppointmentSession } from '../types';\nimport { calculateDuration, getTimezoneAbbreviation } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\nimport { EmptyUI } from './EmptyUI';\n\ninterface GuestAppointmentCompletedListTileProps {\n appointment: AppointmentSession;\n}\n\nexport const GuestAppointmentCompletedListTile: React.FC<\n GuestAppointmentCompletedListTileProps\n> = ({ appointment }: GuestAppointmentCompletedListTileProps) => {\n // destructure\n const {\n service: { id: serviceId, title, category },\n startTime,\n endTime,\n host,\n } = appointment;\n\n const navigate = useNavigate();\n\n // TODO: to implement\n const handleBookAgain = () => navigate(`/services/${serviceId}/book`);\n\n // calculate duration to display\n const duration = calculateDuration({\n startTime: startTime,\n endTime: endTime,\n });\n\n const date = moment(startTime).format('dddd - DD MMMM Y');\n\n const time = moment(startTime).format('hh:mm A');\n\n const { firstname = 'T', lastname = 'U' } = host || {};\n\n return (\n <>\n
\n
\n
Host Name
\n
\n {/* */}\n \n\n \n {host?.firstname} {host?.lastname}\n \n
\n
\n\n
\n
Service
\n
{title}
\n
\n\n
\n
Category
\n
{category}
\n
\n\n
\n
Date
\n
{date}
\n
\n\n
\n
Time
\n
\n {time} {getTimezoneAbbreviation()}\n
\n
\n\n
\n
Duration
\n
{duration}
\n
\n\n
\n \n
\n
\n\n
\n
\n {/* */}\n \n\n \n {host?.firstname} {host?.lastname}\n \n
\n
{title}
\n
{category}
\n
{date}
\n
\n {time} {getTimezoneAbbreviation()}\n
\n
{duration}
\n
\n \n
\n
\n \n );\n};\n\nexport const GuestCompletedAppointments = () => {\n const dispatch = useDispatch();\n const role = useSelector(selectRole);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n const location = useLocation();\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Appointments',\n path: 'appointment',\n },\n {\n name: 'Completed',\n },\n ]);\n }, [location.pathname]);\n\n // Fetch upcoming appointments\n const fetchCompletedAppointments = useCallback(async () => {\n const result = await dispatch(\n getCompletedAppointmentsAsync({ role: role ?? 'GUEST' }),\n ).unwrap();\n return result;\n }, [dispatch]);\n\n return (\n <>\n (\n <>\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n \n )}\n renderData={(appointments) => {\n if (appointments.length === 0) {\n return ;\n }\n\n return (\n <>\n
\n
Guest Name
\n
Service
\n
Category
\n
Date
\n
Time
\n
Duration
\n
Action
\n
\n\n {appointments.map((e, index) => (\n \n ))}\n \n );\n }}\n />\n \n );\n};\n\nconst SkeletonCompletedAppointment = () => (\n <>\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n {/* Skeleton for Avatar */}\n
\n {/* Skeleton for Host Name */}\n
\n
\n\n {/* Skeleton for Title */}\n
\n\n {/* Skeleton for Category */}\n
\n\n {/* Skeleton for Date */}\n
\n\n {/* Skeleton for Time */}\n
\n\n {/* Skeleton for Duration */}\n
\n\n {/* Skeleton for Button */}\n
\n
\n \n);\n","import { AvatarProps } from 'stream-chat-react';\n\nexport const CustomAvatar = (props: AvatarProps) => {\n return (\n <>\n {props.image ? (\n \n ) : (\n
\n )}\n \n );\n};\n","import { ArrowLeft } from '@iconsans/react/bold';\nimport { useNavigate } from 'react-router-dom';\nimport {\n Channel,\n ChannelHeader,\n MessageInput,\n MessageList,\n} from 'stream-chat-react';\nimport { IconButton } from './Buttons';\nimport { CustomAvatar } from './CustomAvatar';\n\n{\n /* Channel */\n}\nexport const ChannelPage = () => {\n const navigate = useNavigate();\n\n const goBack = () => navigate(`/messages`);\n\n return (\n \n
\n
\n }\n size=\"lg\"\n ariaLabel=\"toggle drawer\"\n className=\"flex md:hidden\"\n onClick={goBack}\n />\n\n \n
\n\n {/* Message list */}\n
\n \n
\n\n {/* Message input */}\n
\n \n
\n
\n
\n );\n};\n","import moment from 'moment';\nimport { Transaction } from '../types';\nimport { formatCurrency, getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\nexport const PaidTransactionReceipt = ({\n transaction,\n closeDialog,\n}: {\n transaction: Transaction;\n closeDialog: () => void;\n}) => {\n\n return (\n <>\n
\n
\n {/* Paid Transaction Receipt */}\n
\n
Paid Transaction Receipt
\n\n
\n {/* Avatar */}\n
\n {transaction.type === 'SUBSCRIPTION' ? (\n \n ) : (\n \n )}\n
\n\n {/* Name */}\n
\n {transaction.receiver?.firstname}{' '}\n {transaction.receiver?.lastname}\n
\n
\n
\n
\n\n {/* Appointment details */}\n
\n
Appointment Details
\n\n
\n
Service
\n
\n {transaction.type === 'SUBSCRIPTION'\n ? 'Subscription'\n : transaction.service?.title}\n
\n
\n\n
\n
Time
\n
\n {moment(transaction.createdAt).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n
\n
\n\n
\n
Date
\n
\n {moment(transaction.createdAt).format('dddd, MMMM DD, Y')}\n
\n
\n\n
\n
Transaction ID
\n
{transaction.id}
\n
\n
\n\n
\n
Rate Fee
\n
\n ${formatCurrency(transaction.amount / 100)}\n
\n
\n\n
\n \n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { AppDispatch, getPaidTransactionsAsync } from '../store';\nimport { Transaction } from '../types';\nimport { formatCurrency, getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\nimport { useDialog } from './DialogContext';\nimport { PaidTransactionReceipt } from './PaidTransactionReceipt';\n\nexport const GuestPaidTransactions: React.FC = () => {\n const dispatch = useDispatch();\n\n const [refreshCount, setRefreshCount] = useState(0);\n\n const fetchPaidTransactions = useCallback(async () => {\n const result = await dispatch(getPaidTransactionsAsync()).unwrap();\n\n return result;\n }, [dispatch, refreshCount]);\n\n const handleRefresh = () => {\n setRefreshCount((prev) => prev + 1); // Increment refreshCount to trigger re-fetch\n };\n\n return (\n <>\n
\n \n
\n\n }\n renderData={(receivedTransactions) => {\n return (\n <>\n
\n
Host Name
\n
Amount Paid
\n
Reference ID
\n
Date Paid
\n
Time
\n
Action
\n
\n\n
\n {receivedTransactions.map((transaction, index) => {\n return (\n \n );\n })}\n
\n \n );\n }}\n />\n \n );\n};\n\nconst GuestPaidTransactionListTile = ({\n transaction,\n}: {\n transaction: Transaction;\n}) => {\n const { openDialog, closeDialog } = useDialog();\n\n const handleShowTransactionReceipt = (transaction: Transaction) => {\n openDialog({\n content: (\n \n ),\n width: 435,\n });\n };\n\n return (\n <>\n
\n
\n
Host Name
\n\n {transaction.type === 'SUBSCRIPTION' ? (\n
\n
\n \n
{' '}\n Tellycom\n
\n ) : (\n
\n {transaction.receiver && (\n
\n \n
\n )}\n {`${transaction.receiver?.firstname} ${transaction.receiver?.lastname}`}\n
\n )}\n
\n\n
\n
Amount
\n
\n $ {formatCurrency(transaction.amount / 100)}\n
\n
\n\n
\n
Transaction ID
\n
{transaction.id}
\n
\n\n
\n
Date
\n
{`${moment(transaction.createdAt).format('dddd - MMMM DD, YYYY')}`}
\n
\n\n
\n
Time
\n
{`${moment(transaction.createdAt).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n\n
\n handleShowTransactionReceipt(transaction)}\n />\n
\n
\n\n
\n {transaction.type === 'SUBSCRIPTION' ? (\n
\n
\n \n
{' '}\n Tellycom\n
\n ) : (\n
\n {transaction.receiver && (\n
\n \n
\n )}\n {`${transaction.receiver?.firstname} ${transaction.receiver?.lastname}`}\n
\n )}\n
\n $ {formatCurrency(transaction.amount / 100)}\n
\n
{transaction.id}
\n
{`${moment(transaction.createdAt).format('dddd - MMMM DD, YYYY')}`}
\n
{`${moment(transaction.createdAt).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n\n
\n handleShowTransactionReceipt(transaction)}\n />\n
\n
\n \n );\n};\n\nconst SkeletonGuestPaidTransaction = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n ))}\n
\n\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and Name */}\n
\n
\n
\n
\n
\n
\n\n {/* Skeleton for Amount */}\n
\n\n {/* Skeleton for Transaction ID */}\n
\n\n {/* Skeleton for Appointment Date */}\n
\n\n {/* Skeleton for Appointment Time */}\n
\n\n {/* Skeleton for View Receipt Button */}\n
\n
\n ))}\n
\n \n );\n};\n","import moment from 'moment';\nimport { Transaction } from '../types';\nimport { formatCurrency, getTimezoneAbbreviation } from '../utils';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\nexport const ReceivedTransactionReceipt = ({\n transaction,\n closeDialog,\n}: {\n transaction: Transaction;\n closeDialog: () => void;\n}) => {\n return (\n <>\n
\n
\n {/* Paid Transaction Receipt */}\n
\n
\n Received Transaction Receipt\n
\n\n
\n {/* Avatar */}\n
\n {(transaction.payer.avatar ||\n transaction.type === 'SUBSCRIPTION') && (\n \n )}\n
\n\n {/* Name */}\n
\n {transaction.payer?.firstname} {transaction.payer?.lastname}\n
\n
\n
\n
\n\n {/* Appointment details */}\n
\n
Appointment Details
\n\n
\n
Service
\n
\n {transaction.type === 'SUBSCRIPTION'\n ? 'Subscription'\n : transaction.service?.title}\n
\n
\n\n
\n
Time
\n
\n {moment(transaction.createdAt).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n
\n
\n\n
\n
Date
\n
\n {moment(transaction.createdAt).format('dddd, MMMM DD, Y')}\n
\n
\n\n
\n
Transaction ID
\n
{transaction.id}
\n
\n
\n\n
\n
Rate Fee
\n \n
\n ${formatCurrency(transaction.amount / 100)}\n
\n
\n\n
\n \n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, getTransactionsAsync, Transaction } from '../store';\nimport { TellyUser } from '../types';\nimport { formatCurrency, getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons';\nimport { DataLoader } from './DataLoader';\nimport { useDialog } from './DialogContext';\nimport { ReceivedTransactionReceipt } from './ReceivedTransactionReceipt';\n\nexport const HostPaidTransactions: React.FC = () => {\n const dispatch = useDispatch();\n const [refreshCount, setRefreshCount] = useState(0);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Transactions', path: 'transactions' },\n { name: 'Paid' },\n ]);\n }, [location.pathname]);\n\n const fetchReceivedTransactions = useCallback(async () => {\n const result = await dispatch(getTransactionsAsync()).unwrap();\n\n return result;\n }, [dispatch, refreshCount]);\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n return (\n <>\n
\n \n
\n\n }\n renderData={(receivedTransactions) => {\n return (\n <>\n
\n
Guest Name
\n
Date
\n
Time
\n
Amount
\n
\n
\n\n {/* cards */}\n
\n {receivedTransactions.map((transaction: Transaction, index) => {\n return (\n \n );\n })}\n
\n \n );\n }}\n />\n \n );\n};\n\ninterface HostPaidTransactionTileProps {\n transaction: Transaction;\n}\n\nexport const HostPaidTransactionTile: React.FC<\n HostPaidTransactionTileProps\n> = ({ transaction }: HostPaidTransactionTileProps) => {\n const { openDialog, closeDialog } = useDialog();\n\n const handleShowTransactionReceipt = (transaction: Transaction) => {\n openDialog({\n content: (\n \n ),\n width: 435,\n });\n };\n\n const participant = transaction.payer;\n\n const transactionUser: TellyUser | undefined = participant && {\n id: participant.id, // transaction.user.id,\n firstname: participant.firstname, // transaction.user.firstname,\n lastname: participant.lastname, //transaction.user.lastname,\n email: participant.email,\n avatar: participant.avatar,\n membership: 'TRIAL',\n createdAt: new Date(),\n socialAccounts: [],\n activeRole: 'TRIAL',\n fullname: `${participant.firstname} ${participant.lastname}`,\n };\n\n return (\n <>\n {/* card */}\n
\n
\n
Guest Name
\n
\n {transactionUser && (\n
\n \n
\n )}\n {transaction.payer.firstname} {transaction.payer.lastname}\n
\n
\n\n
\n
Date
\n
\n {moment(transaction.createdAt).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n
\n
\n\n
\n
Time
\n
\n {moment(transaction.createdAt).format('dddd, MMMM DD, Y')}\n
\n
\n\n
\n
Amount
\n
\n ${formatCurrency(transaction.amount / 100)}\n
\n
\n\n
\n handleShowTransactionReceipt(transaction)}\n />\n
\n
\n\n {/* list title */}\n
\n {transaction.type === 'SUBSCRIPTION' ? (\n
Tellycom
\n ) : (\n
\n {transactionUser && (\n
\n \n
\n )}\n {`${transactionUser && transactionUser.firstname} ${transactionUser && transactionUser.lastname}`}\n
\n )}\n\n
{`${moment(transaction.appointmentSession?.startTime).format('dddd - MMMM DD, YYYY')}`}
\n
{`${moment(transaction.appointmentSession?.endTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n ${' '}\n {`${(transaction.amount / 100).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`}\n
\n
\n handleShowTransactionReceipt(transaction)}\n />\n
\n
\n \n );\n};\n\nconst SkeletonHostPaid: React.FC = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n ))}\n
\n\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and Name */}\n
\n
\n
\n
\n
\n
\n\n {/* Skeleton for Appointment Date */}\n
\n\n {/* Skeleton for Appointment Time */}\n
\n\n {/* Skeleton for Amount */}\n
\n\n {/* Skeleton for View Receipt Button */}\n
\n
\n ))}\n \n \n );\n};\n","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { selectHostOrTrialRole } from '../store';\nimport { GuestPaidTransactions } from './GuestPaidTransactions';\nimport { HostPaidTransactions } from './HostPaidTransactions';\n\nexport const PaidTransactions: React.FC = () => {\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n if (hostOrTrialRole) {\n return ;\n }\n\n return ;\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useForm } from 'react-hook-form';\nimport * as yup from 'yup';\nimport { cancelAppointment } from '../../services';\nimport { showError, showSuccess } from '../../utils';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { TextAreaFormField } from '../FormFields/TextAreaFormField';\n\ninterface CancelAppointmentFormProps {\n appointmentSessionId: string;\n closeDialog: () => void;\n successCallback?: () => void;\n}\n\nconst schema = yup.object().shape({\n reason: yup.string().required('Reason is required'),\n});\n\ntype FormValues = {\n reason: string;\n};\n\nexport const CancelAppointmentForm: React.FC = ({\n appointmentSessionId,\n closeDialog,\n successCallback,\n}: CancelAppointmentFormProps) => {\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const onSubmit = async (data: FormValues) => {\n try {\n await cancelAppointment(appointmentSessionId, data.reason);\n\n showSuccess('Successfully cancelled appointment');\n\n closeDialog();\n successCallback && successCallback();\n } catch (e) {\n showError((e as Error).message);\n successCallback && successCallback();\n }\n };\n\n return (\n <>\n
\n
\n Please enter your reason for cancelling the service.\n
\n\n
\n
Reason
\n\n \n
\n
\n\n
\n \n\n \n
\n \n );\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, getPendingTransactionsAsync } from '../store';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\nimport { PendingTransactionRow } from './PendingTransactions';\n\nexport const HostPendingTransactions: React.FC = () => {\n const dispatch = useDispatch();\n const [refreshCount, setRefreshCount] = useState(0);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Transactions', path: 'transactions' },\n { name: 'Pending' },\n ]);\n }, [location.pathname]);\n\n // Fetch pending transactions\n const fetchPendingTransactions = useCallback(async () => {\n const result = await dispatch(getPendingTransactionsAsync()).unwrap();\n return result;\n }, [dispatch, refreshCount]);\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n return (\n <>\n
\n \n
\n\n {/* */}\n\n }\n renderData={(pendingTransactions) => {\n return (\n
\n
\n
Guest Name
\n
Date
\n
Time
\n
Amount
\n
Action
\n
\n\n
\n {pendingTransactions.map((transaction, index) => {\n return (\n setRefreshCount((prev) => prev + 1)}\n key={index}\n />\n );\n })}\n
\n
\n );\n }}\n />\n \n );\n};\n\nexport const SkeletonHostPendingTransaction = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Host Information */}\n
\n
\n
{' '}\n {/* Avatar Placeholder */}\n
\n
{' '}\n {/* Host Name Placeholder */}\n
\n {/* Amount Due */}\n
\n
{' '}\n {/* \"Amount Due\" Text Placeholder */}\n
{' '}\n {/* Amount Placeholder */}\n
\n {/* Service Title */}\n
{' '}\n {/* Service Title Placeholder */}\n {/* Date */}\n
{' '}\n {/* Date Placeholder */}\n {/* Time */}\n
{' '}\n {/* Time Placeholder */}\n {/* Duration */}\n
{' '}\n {/* Duration Placeholder */}\n {/* Sessions */}\n
{' '}\n {/* Sessions Placeholder */}\n {/* Action Buttons */}\n
\n
{' '}\n {/* Pay Now Button Placeholder */}\n
{' '}\n {/* Cancel Button Placeholder */}\n
\n
\n ))}\n
\n\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and User Name */}\n
\n
\n
\n
\n\n {/* Skeleton for Date */}\n
\n\n {/* Skeleton for Time */}\n
\n\n {/* Skeleton for Amount */}\n
\n
\n ))}\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport { deletePendingTransaction } from '../services/appointments';\nimport { AppDispatch, selectHostOrTrialRole } from '../store';\nimport { getGuestPendingTransactionsAsync } from '../store/guestPendingTransactionsSlice';\nimport { PendingTransaction, TellyUser } from '../types';\nimport { formatCurrency, getInitials, getTimezoneAbbreviation } from '../utils';\nimport { formatDurationInMsToHourMinutes } from '../utils/formatDurationInMsToHourMinutes';\nimport { showError, showSuccess } from '../utils/showToast';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { DataLoader } from './DataLoader';\nimport { useDialog } from './DialogContext';\nimport { CancelAppointmentForm } from './Forms/CancelAppointmentForm';\nimport { HostPendingTransactions } from './HostPendingTransactions';\n\nexport const PendingTransactions = () => {\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n if (hostOrTrialRole) {\n return ;\n }\n\n return ;\n};\n\nexport const PendingTransactionRow: React.FC = ({\n transaction,\n onDelete,\n}: PendingTransactionCardProps) => {\n const transactionUser: TellyUser = {\n id: transaction.user.id,\n firstname: transaction.user.firstname,\n lastname: transaction.user.lastname,\n email: '',\n membership: 'TRIAL',\n createdAt: new Date(),\n socialAccounts: [],\n activeRole: 'TRIAL',\n fullname: `${transaction.user.firstname} ${transaction.user.lastname}`,\n };\n\n const { openDialog, closeDialog } = useDialog();\n\n const confirmCancel = async () => {\n openDialog({\n title: 'Confirm',\n content: 'Are you sure you want to delete this transaction?',\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n const handleCancel = async () => {\n try {\n await deletePendingTransaction(transaction.participantId);\n\n showSuccess('Successfully cancelled appointment.');\n } catch (e) {\n showError((e as Error).message);\n } finally {\n closeDialog();\n onDelete();\n }\n };\n\n return (\n <>\n {/* Grid view for lg and above */}\n \n {/* Checkbox */}\n
\n {transaction.user && (\n
\n \n
\n )}\n {`${transaction.user.firstname} ${transaction.user.lastname}`}\n
\n\n {/* Date */}\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n\n {/* Time */}\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n\n {/* Amount */}\n
\n {`$${formatCurrency(transaction.price / 100)}`}\n
\n\n
\n \n
\n
\n\n {/* Card view for smaller screens */}\n \n
\n
Guest Name
\n
\n {transaction.user && (\n
\n \n
\n )}\n {`${transaction.user.firstname} ${transaction.user.lastname}`}\n
\n
\n
\n
Date
\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n
\n
\n
Time
\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n
\n
Amount
\n
{`$${formatCurrency(transaction.price / 100)}`}
\n
\n
\n \n
\n
\n \n );\n};\n\ninterface PendingTransactionCardProps {\n transaction: PendingTransaction;\n onDelete: () => void;\n}\n\nexport const GuestPendingTransactions = () => {\n const dispatch = useDispatch();\n const { openDialog, closeDialog } = useDialog();\n const [ongoingPayment, setOngoingPayment] = useState(false);\n const [refreshCount, setRefreshCount] = useState(0);\n const navigate = useNavigate();\n\n // Fetch pending transactions\n const fetchPendingTransactions = useCallback(async () => {\n setOngoingPayment(false);\n const result = await dispatch(getGuestPendingTransactionsAsync()).unwrap();\n\n return result;\n }, [dispatch, refreshCount]);\n\n const handlePayNow = async (appointmentSessionId: string) => {\n navigate(`/appointment/${appointmentSessionId}/pay`);\n };\n\n const handleCancel = async (appointmentSessionId: string) => {\n openDialog({\n content: (\n \n ),\n });\n };\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n return (\n
\n
\n \n
\n\n {ongoingPayment && (\n
\n Please refresh the page after successful payment processing to update\n the pending list.\n
\n )}\n\n {/* contents */}\n }\n renderData={(pendingTransactions) => {\n return (\n <>\n
\n {pendingTransactions.map((transaction, index) => {\n /// compute duration\n const durationInMs = moment(transaction.endTime).diff(\n transaction.startTime,\n );\n\n const formattedDuration =\n formatDurationInMsToHourMinutes(durationInMs);\n\n return (\n \n {/* Checkbox */}\n
\n
Guest Name
\n
\n \n\n \n {`${transaction.host.firstname} ${transaction.host.lastname}`}\n \n
\n
\n\n {/* amount due */}\n
\n
Amount Due
\n\n
\n $ {formatCurrency(transaction.price / 100)}\n
\n
\n\n {/* service */}\n
\n
Service
\n
\n {transaction.service.title}\n
\n
\n\n {/* Date */}\n
\n
Date
\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n
\n\n {/* Time */}\n
\n
Time
\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n
\n\n {/* duration in hour/minutes */}\n
\n
Duration
\n
{formattedDuration}
\n
\n\n {/* number of sessions */}\n
\n
Sessions
\n
{transaction.service.sessions}
\n
\n\n {/* Amount */}\n
\n handlePayNow(transaction.id)}\n />\n\n handleCancel(transaction.id)}\n />\n
\n
\n );\n })}\n
\n\n {/* header */}\n
\n
\n {/* add padding to the left to ensure the Host text aligns with the host name */}\n
Host Name
\n
Amount Due
\n
Service
\n
Date
\n
Time
\n
Duration
\n
Sessions
\n
Action
\n
\n\n
\n {pendingTransactions.map((transaction, index) => {\n /// compute duration\n const durationInMs = moment(transaction.endTime).diff(\n transaction.startTime,\n );\n\n const formattedDuration =\n formatDurationInMsToHourMinutes(durationInMs);\n\n return (\n \n {/* Checkbox */}\n
\n
\n \n
\n\n \n {`${transaction.host.firstname} ${transaction.host.lastname}`}\n \n
\n\n {/* amount due */}\n
\n $ {formatCurrency(transaction.price / 100)}\n
\n\n {/* service */}\n
{transaction.service.title}
\n\n {/* Date */}\n
{`${moment(transaction.startTime).format('dddd - MMMM DD, YYYY')}`}
\n\n {/* Time */}\n
{`${moment(transaction.startTime).format('hh:mm A')} ${getTimezoneAbbreviation()}`}
\n\n {/* duration in hour/minutes */}\n
{formattedDuration}
\n\n {/* number of sessions */}\n
\n {transaction.service.sessions}\n
\n\n {/* Amount */}\n
\n handlePayNow(transaction.id)}\n />\n\n handleCancel(transaction.id)}\n />\n
\n
\n );\n })}\n
\n
\n \n );\n }}\n />\n
\n );\n};\n\nexport const SkeletonGuestPendingTransaction = () => {\n return (\n <>\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Host Information */}\n
\n
\n
{' '}\n {/* Avatar Placeholder */}\n
\n
{' '}\n {/* Host Name Placeholder */}\n
\n\n {/* Amount Due */}\n
\n
{' '}\n {/* \"Amount Due\" Text Placeholder */}\n
{' '}\n {/* Amount Placeholder */}\n
\n\n {/* Service */}\n
\n
{' '}\n {/* \"Service\" Text Placeholder */}\n
{' '}\n {/* Service Title Placeholder */}\n
\n\n {/* Date */}\n
\n
{' '}\n {/* \"Date\" Text Placeholder */}\n
{' '}\n {/* Date Placeholder */}\n
\n\n {/* Time */}\n
\n
{' '}\n {/* \"Time\" Text Placeholder */}\n
{' '}\n {/* Time Placeholder */}\n
\n\n {/* Duration */}\n
\n
{' '}\n {/* \"Duration\" Text Placeholder */}\n
{' '}\n {/* Duration Placeholder */}\n
\n\n {/* Sessions */}\n
\n
{' '}\n {/* \"Sessions\" Text Placeholder */}\n
{' '}\n {/* Sessions Placeholder */}\n
\n\n {/* Action Buttons */}\n
\n
{' '}\n {/* Pay Now Button Placeholder */}\n
{' '}\n {/* Cancel Button Placeholder */}\n
\n
\n ))}\n
\n\n
\n {[...Array(4)].map((_, index) => (\n \n {/* Skeleton for Avatar and Host Name */}\n
\n
\n
\n
\n\n {/* Skeleton for Amount Due */}\n
\n\n {/* Skeleton for Service Title */}\n
\n\n {/* Skeleton for Date */}\n
\n\n {/* Skeleton for Time */}\n
\n\n {/* Skeleton for Duration */}\n
\n\n {/* Skeleton for Number of Sessions */}\n
\n\n {/* Skeleton for Buttons (Pay Now and Cancel) */}\n
\n
\n
\n
\n
\n ))}\n
\n \n );\n};\n","import { useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useLocation } from 'react-router-dom';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport { isValidUrl } from '../utils';\n\ninterface Terms {\n title: string;\n contents: string;\n}\n\nexport const PrivacyPolicy: React.FC = () => {\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Privacy Policy' },\n ]);\n }, [location.pathname]);\n\n const terms: Terms[] = [\n {\n title: '1. Introduction',\n contents:\n 'At Tellycom LLC, your privacy is important to us.This Privacy Policy outlines how we collect, use, and protect your personal information.',\n },\n {\n title: '2. Data Collection',\n contents:\n 'We may collect information from you when you use our services.This information may include, but is not limited to, your name, email address, and any other details necessary for providing our services.',\n },\n {\n title: '3. Use of Data',\n contents:\n 'All data collected will be used solely to enhance our services and improve user experiences.We do not sell, trade, or otherwise transfer your personal information to outside parties.',\n },\n {\n title: '4. Data Protection',\n contents:\n 'We implement a variety of security measures to maintain the safety of your personal information.However, no method of transmission over the internet or method of electronic storage is 100 % secure.',\n },\n {\n title: '5. Third - Party Services',\n contents:\n 'Our services may integrate with third - party applications.We encourage you to review their privacy policies as we are not responsible for their data practices.',\n },\n {\n title: '6. Changes to This Policy',\n contents:\n 'Tellycom LLC reserves the right to modify this Privacy Policy at any time.Any changes will be posted on this page, and your continued use of our services constitutes acceptance of those changes.',\n },\n {\n title: '7. Contact Information',\n contents:\n 'If you have any questions regarding this Privacy Policy, please contact us at hello @tellycom.io.By using our services, you consent to our Privacy Policy.Tellycom combines multiple services and adheres to their privacy policies.The links below provide the most current privacy statements for Video(getstream.io) and payment services(handled by Stripe).Please follow these links for the latest information.',\n },\n {\n title: 'Getstream.io Privacy statement',\n contents: 'https://getstream.io/legal/privacy/',\n },\n {\n title: 'Stripe.com Privacy statement',\n contents: 'https://stripe.com/privacy',\n },\n ];\n\n return (\n <>\n \n Privacy Policy - {APP_NAME}\n \n\n
\n
\n
Privacy Policy
\n\n
\n This information will be displayed publicly, so be careful what you\n share.\n
\n
\n\n
\n {terms.map(({ title, contents }, index) => (\n
\n
{title}
\n
\n {isValidUrl(contents) ? (\n \n {contents}\n \n ) : (\n contents\n )}\n
\n
\n ))}\n
\n
\n \n );\n};\n\nexport default PrivacyPolicy;\n","// src/components/ProtectedRoutes.tsx\nimport React from 'react';\nimport { useSelector } from 'react-redux';\nimport { Navigate, Outlet, useLocation } from 'react-router-dom';\nimport { selectAuth } from '../../store';\n\nconst ProtectedRoutes: React.FC = () => {\n const { user } = useSelector(selectAuth);\n const location = useLocation();\n\n // If user is not authenticated, redirect to login\n if (!user) {\n var loginPath = '/login';\n\n /// if it didn't come from settings\n if (\n !location.pathname.includes('/settings') &&\n !location.pathname.includes('/disabled')\n ) {\n loginPath = `/login?redirectTo=${encodeURIComponent(location.pathname)}`;\n }\n\n return ;\n }\n\n // Render nested routes if authenticated\n return ;\n};\n\nexport default ProtectedRoutes;\n","// src/components/PublicRoutes.tsx\nimport React from 'react';\nimport { useSelector } from 'react-redux';\nimport { Navigate, Outlet, useLocation } from 'react-router-dom';\nimport { selectAuth } from '../../store';\n\nconst PublicRoutes: React.FC = () => {\n const { user, status } = useSelector(selectAuth);\n const location = useLocation();\n\n // Check for `redirectTo` query parameter\n const queryParams = new URLSearchParams(location.search);\n const redirectTo = queryParams.get('redirectTo') || '/dashboard';\n\n // If user is authenticated, redirect to the `redirectTo` path or `/app`\n if (status === 'succeeded' && user) {\n if (redirectTo === '/disabled') {\n ;\n }\n\n return ;\n }\n\n // Render the component if the user is not authenticated\n return ;\n};\n\nexport default PublicRoutes;\n","// Tooltip.tsx\nimport React, { ReactNode } from 'react';\n\ntype TooltipProps = {\n children: ReactNode;\n content: string;\n};\n\nconst Tooltip: React.FC = ({ children, content }) => {\n return (\n
\n {children}\n
\n {content}\n
\n
\n );\n};\n\nexport default Tooltip;\n","import { useCallback, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { getStripeAccount } from '../services';\nimport { stripeConnect } from '../services/stripe';\nimport { selectHostRole, selectUser, StripeAccountDto } from '../store';\nimport { openInNewTab, showError } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\nimport { SuccessIcon, WarningIcon } from './icons';\nimport Tooltip from './Tooltip';\n\nexport const StripeAccountComponent: React.FC = () => {\n const [loading, setLoading] = useState(false);\n // const [error, setError] = useState(null);\n const hostRole = useSelector(selectHostRole);\n const user = useSelector(selectUser);\n\n /// 5 seconds\n const pollingInterval: number = 15000;\n\n const [refreshCount, setRefreshCount] = useState(0);\n\n const handleStripeConnect = async () => {\n setLoading(true);\n\n try {\n const { url } = await stripeConnect();\n\n openInNewTab(url);\n\n /// initiate polling to check for stripe connect account\n pollForStripeAccount();\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n /// handle polling to ensure that once the user has\n /// successfully setup their Stripe account, the app also\n /// updates\n const fetchData = async () => {\n try {\n const response = await getStripeAccount();\n\n // Assuming you're checking if `response.data` is non-null\n if (response !== null) {\n // trigger refresh\n setRefreshCount((prev) => prev + 1);\n\n return true; // Indicates success\n }\n } catch (err) {\n return true;\n }\n return false; // Indicates polling should continue\n };\n\n const loadData = useCallback(async () => {\n return await getStripeAccount();\n }, [fetchData, refreshCount]);\n\n const pollForStripeAccount = async () => {\n const success = await fetchData();\n\n if (!success) {\n const intervalId = setInterval(async () => {\n const result = await fetchData();\n if (result) {\n clearInterval(intervalId); // Stop polling when data is not null\n }\n }, pollingInterval);\n\n // Cleanup interval on component unmount\n return () => clearInterval(intervalId);\n }\n };\n\n if (!hostRole) {\n return (\n <>\n
\n
Stripe Account
\n\n
\n Only HOST accounts can connect their Stripe account.\n
\n
\n \n );\n }\n\n return (\n <>\n
\n
Stripe Account
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n\n {\n const chargesEnabled = data.charges_enabled;\n const payoutsEnabled = data.payouts_enabled;\n const enabled = chargesEnabled && payoutsEnabled;\n\n return (\n <>\n
\n
\n
\n \n {data?.business_profile?.name ?? user?.fullname}\n \n\n \n {data && data.email}\n \n
\n\n {/* Stripe name and email */}\n {!chargesEnabled || !payoutsEnabled ? (\n \n \n \n ) : (\n \n \n \n )}\n
\n
\n\n
\n \n
\n \n );\n }}\n renderLoading={() => (\n
\n \n
\n
\n\n \n
\n
\n
\n )}\n renderError={() => (\n <>\n \n \n )}\n />\n
\n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CheckListIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { useState } from 'react';\nimport { upgradeToTrial } from '../services';\nimport { showError } from '../utils';\nimport { CheckListIcon } from './icons/CheckList';\nimport Loader from './Loader/Loader';\nimport { useDialog } from './DialogContext';\nimport { FilledButton } from './Buttons';\nimport { useDispatch } from 'react-redux';\nimport { AppDispatch, loadUserAsync, switchRoleAsync } from '../store';\n\nexport const UpgradeToTrial: React.FC = () => {\n const [loading, setLoading] = useState(false);\n const benefits: string[] = [\n 'Create up to 3 services',\n 'Approve up to 3 appointments',\n 'Up to 1 hour video per appointment',\n 'All Guest Benefits',\n ];\n\n const dispatch = useDispatch();\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleUpgrade = async () => {\n setLoading(true);\n try {\n await upgradeToTrial();\n\n openDialog({\n title: 'Success',\n content: 'Successfully upgraded to host (TRIAL)!',\n actions: {\n dispatch(switchRoleAsync(\"TRIAL\"));\n dispatch(loadUserAsync(true));\n closeDialog();\n }} />,\n });\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <>\n
\n
\n Get unlimited access to all the features.\n
\n\n
\n
\n
Try Host
\n\n
FREE
\n\n
Benefits
\n\n
\n {benefits.map((benefit, index) => (\n \n {benefit}\n
\n ))}\n
\n
\n\n \n {loading ? : 'Try Now'}\n
\n
\n
\n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n AppDispatch,\n selectMembership,\n selectRole,\n switchRoleAsync,\n} from '../store';\nimport { Role } from '../types/Role';\nimport { showError, showSuccess } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { useDialog } from './DialogContext';\nimport { SwapIcon } from './icons';\nimport { UpgradeToTrial } from './UpgradeToTrial';\n\nconst SwitchRole: React.FC = () => {\n const dispatch = useDispatch();\n const currentRole = useSelector(selectRole);\n const membership = useSelector(selectMembership);\n const [roleToSwitch, setRoleToSwitch] = useState(null);\n\n const handleTryHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const { openDialog, closeDialog } = useDialog();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Switch Role' },\n ]);\n }, []);\n\n const switchRole = () => {\n const currentRole = localStorage.getItem('ROLE');\n\n const canSwitchRole = membership === 'TRIAL' || membership === 'HOST';\n\n var roleToSwitch: Role;\n\n if (currentRole === 'GUEST') {\n roleToSwitch = membership ?? 'GUEST';\n } else {\n roleToSwitch = 'GUEST';\n }\n\n if (!canSwitchRole) {\n showError(\n 'Unable to switch role. Only host and trial users can switch roles',\n );\n\n return;\n }\n\n openDialog({\n title: 'Switch Role',\n content: <>Switch to {roleToSwitch},\n actions: (\n <>\n \n\n {\n dispatch(switchRoleAsync(roleToSwitch));\n showSuccess('Successfully switched role');\n closeDialog();\n }}\n />\n \n ),\n });\n };\n\n useEffect(() => {\n if (currentRole === 'GUEST') {\n setRoleToSwitch(membership ?? 'GUEST');\n } else {\n setRoleToSwitch('GUEST');\n }\n }, [currentRole, membership]);\n\n return (\n <>\n
\n
Switch Role
\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n\n {\n (membership === 'TRIAL' || membership === 'HOST')\n ? \n Switch to {roleToSwitch}\n\n \n
\n\n : \n }\n
\n \n );\n};\n\nexport default SwitchRole;\n","import { useEffect, useRef, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\nimport { agreeToTermsAndConditions } from '../services/auth';\nimport {\n AppDispatch,\n AppState,\n updateAgreeToTermsAndConditions,\n} from '../store';\nimport { showError, showSuccess } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\ninterface Terms {\n title: string;\n contents: string;\n}\n\nconst TermsAndConditions: React.FC = () => {\n const user = useSelector((state: AppState) => state.auth.user);\n\n const [loading, setLoading] = useState(false);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Settings', path: 'settings' },\n { name: 'Terms and Conditions' },\n ]);\n }, [location.pathname]);\n\n const terms: Terms[] = [\n {\n title: '1. Acceptance of Terms',\n contents:\n 'By using Tellycom LLC’s services, you agree to abide by these Terms and Conditions. If you do not agree, please do not use our services.',\n },\n {\n title: '2. Services Provided',\n contents:\n 'Tellycom LLC utilizes multiple software solutions to facilitate smart scheduling and connect various software services. Our role is limited to providing a utility for connecting these services.',\n },\n {\n title: '3. Disclaimer of Responsibility',\n contents:\n 'Tellycom LLC is not responsible for: \\nThe content or quality of any video services provided. \\nPayment transactions, which are handled by third- party providers such as GetStream.io and Stripe. Please refer to their respective terms and conditions for details.',\n },\n {\n title: '4. Transactions and Disputes',\n contents:\n 'All transactions are solely the responsibility of the host and client. Tellycom LLC does not set the terms of services between hosts and clients. Any disputes arising from transactions or service agreements must be resolved directly between the host and the client.',\n },\n {\n title: '5. Limitation of Liability',\n contents:\n 'Tellycom LLC shall not be liable for any direct, indirect, incidental, or consequential damages resulting from the use of our services, including but not limited to service interruptions or losses incurred during transactions.',\n },\n {\n title: '6. Changes to Terms',\n contents:\n 'Tellycom LLC reserves the right to modify these Terms and Conditions at any time. Users will be notified of any significant changes.',\n },\n {\n title: '7. Governing Law',\n contents:\n 'These Terms and Conditions shall be governed by the laws of the state in which Tellycom LLC operates.',\n },\n {\n title: '8. Contact Information',\n contents:\n 'For any questions regarding these Terms and Conditions, please contact us at hello@tellycom.io. \\nBy using our services, you acknowledge that you have read, understood, and agreed to these Terms and Conditions.\\nTellycom LLC combines multiple services and adheres to their terms and conditions. The links below provide the most up-to-date terms for Video (getstream.io) and payment services (handled by Stripe). Please follow these links for the latest information.',\n },\n {\n title: 'Getstream.io Terms and Conditions',\n contents: 'https://getstream.io/legal/',\n },\n {\n title: 'Stripe Terms and Conditions',\n contents: 'https://stripe.com/legal/ssa',\n },\n ];\n\n const dispatch = useDispatch();\n\n const handleSubmit = async () => {\n setLoading(true);\n\n try {\n await agreeToTermsAndConditions();\n\n dispatch(updateAgreeToTermsAndConditions());\n\n showSuccess('Successfully agreed to terms and conditions');\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n const scrollRef = useRef(null);\n\n const scrollToBottom = () => {\n if (scrollRef.current) {\n scrollRef.current.scrollTo({\n top: scrollRef.current.scrollHeight,\n behavior: 'smooth', // Enables smooth scrolling\n });\n }\n };\n\n return (\n <>\n
\n
\n
Terms and Conditions
\n\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n
\n\n \n {terms.map(({ title, contents }, index) => (\n
\n
{title}
\n
{contents}
\n
\n ))}\n
\n\n
\n
\n \n
\n\n
\n
\n {!user?.hasAgreedToTermsAndConditions && (\n \n )}\n
\n
\n \n );\n};\n\nexport default TermsAndConditions;\n","import { ChangeEvent } from 'react';\nimport { CheckBoxIcon } from '../icons';\n\ninterface CheckBoxProps {\n id?: string;\n label?: string;\n onChange: (event: ChangeEvent) => void;\n checked?: boolean;\n}\n\nexport const CheckBox: React.FC = (props: CheckBoxProps) => {\n return (\n <>\n
\n \n
\n \n );\n};\n","import { forwardRef } from 'react';\nimport { FieldError } from 'react-hook-form';\nimport { TextFormField } from './TextFormField';\n\ninterface CustomTimePickerProps {\n onChange: (event: React.ChangeEvent) => void;\n error?: FieldError;\n value: string | null; // Change to Date\n showIcon?: boolean;\n readOnly?: boolean;\n}\n\nexport const CustomTimePicker = forwardRef<\n HTMLInputElement,\n CustomTimePickerProps\n>(\n (\n { error, value, onChange, readOnly = false, showIcon = true, ...rest },\n ref,\n ) => {\n return (\n
\n \n
\n );\n },\n);\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport moment from 'moment';\nimport { useState } from 'react';\nimport { Controller, useForm } from 'react-hook-form';\nimport * as yup from 'yup';\nimport { blockSchedule } from '../../services';\nimport { showError, showSuccess } from '../../utils';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { CheckBox } from '../FormFields/CheckBox';\nimport { TextAreaFormField } from '../FormFields/TextAreaFormField';\nimport { CustomTimePicker } from '../FormFields/TimePicker';\n\nconst schema = (propsDate: Date) =>\n yup.object().shape({\n start: yup\n .string()\n .nullable()\n .required('Start time is required')\n .test(\n 'is-not-passed',\n 'Start time cannot be in the past',\n function (value) {\n const now = moment();\n const selectedDate = moment(propsDate);\n const [hours, minutes, seconds] = value.split(':').map(Number);\n\n const combinedStartTime = selectedDate.set({\n hour: hours,\n minute: minutes,\n second: seconds,\n millisecond: 0,\n });\n\n // If the date is today, check if the start time is in the past\n return selectedDate.isSame(now, 'day')\n ? combinedStartTime.isSameOrAfter(now)\n : true;\n },\n ),\n end: yup\n .string()\n .nullable()\n .required('End time is required')\n .test(\n 'is-greater',\n 'End time must be after start time',\n function (value) {\n const { start } = this.parent; // Access the value of start\n if (!start || !value) return true; // If either start or end is not set, skip validation\n\n // Convert start time to moment object\n const [startHours, startMinutes, startSeconds] = start\n .split(':')\n .map(Number);\n const startMoment = moment(propsDate).set({\n hour: startHours,\n minute: startMinutes,\n second: startSeconds,\n millisecond: 0,\n });\n\n // Convert end time to moment object\n const [endHours, endMinutes, endSeconds] = value\n .split(':')\n .map(Number);\n const endMoment = moment(propsDate).set({\n hour: endHours,\n minute: endMinutes,\n second: endSeconds,\n millisecond: 0,\n });\n\n // Ensure end time is after start time\n return endMoment.isAfter(startMoment);\n },\n ),\n reason: yup.string().required('Reason is required'),\n });\n\ntype FormValues = {\n start: string;\n end: string;\n reason: string;\n};\n\nexport const BlockScheduleForm: React.FC = ({\n date,\n closeDialog,\n}: BlockScheduleFormProps) => {\n const [entireDay, setEntireDay] = useState(false);\n const [loading, setLoading] = useState(false);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n control,\n setValue,\n reset,\n } = useForm({\n resolver: yupResolver(schema(date)),\n });\n\n const handleChange = (e: React.ChangeEvent) => {\n setEntireDay(e.target.checked);\n if (e.target.checked) {\n const isSameDay = moment(date).isSame(new Date(), 'date');\n const currentTime = moment();\n\n const startTime = isSameDay\n ? currentTime.add(1, 'minute') // Current time if the selected day is today\n : moment(date).startOf('day'); // 12:00 AM otherwise\n const endTime = moment(date).endOf('day'); // 11:59 PM\n setValue('start', startTime.format('HH:mm:ss')); // Update start time\n setValue('end', endTime.format('HH:mm:ss')); // Update end time\n\n reset({\n start: startTime.format('HH:mm'),\n end: endTime.format('HH:mm'),\n reason: '',\n });\n } else {\n reset({\n start: '',\n end: '',\n reason: '',\n });\n }\n };\n\n const onSubmit = async (data: FormValues) => {\n const currentDate = moment(date).startOf('day'); // Base day for calculations\n\n // Clone `currentDate` before modifying it\n const startMoment = currentDate.clone().set({\n hour: Number(data.start?.split(':')[0]),\n minute: Number(data.start?.split(':')[1]),\n second: 0, // Optional, depending on your requirement\n millisecond: 0,\n });\n\n const endMoment = currentDate.clone().set({\n hour: Number(data.end?.split(':')[0]),\n minute: Number(data.end?.split(':')[1]),\n second: 0, // Optional, depending on your requirement\n millisecond: 0,\n });\n\n const formattedData = {\n start: data.start ? startMoment.toDate() : null,\n end: data.end ? endMoment.toDate() : null,\n reason: data.reason,\n };\n\n // Validate if start or end is missing\n if (!formattedData.start || !formattedData.end) {\n return;\n }\n\n setLoading(true);\n\n try {\n await blockSchedule({\n startTime: formattedData.start,\n endTime: formattedData.end,\n reason: formattedData.reason,\n });\n\n showSuccess('Successfully blocked schedule');\n closeDialog();\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <>\n
\n
\n
Choose Time Schedule
\n\n
\n \n
\n\n
\n
\n
Start
\n
\n (\n \n )}\n />\n
\n
\n
\n
End
\n
\n {\n return (\n \n );\n }}\n />\n
\n
\n
\n\n
\n
Reason
\n\n \n
\n
\n\n {/* buttons */}\n
\n \n\n \n
\n
\n \n );\n};\n\ninterface BlockScheduleFormProps {\n date: Date;\n closeDialog: () => void;\n}\n","import { useNavigate } from 'react-router-dom';\nimport { Avatar } from '../components/Avatar';\nimport { getOrCreateChannel } from '../services/messages';\nimport { Participant } from '../types/UpcomingAppointment';\nimport { TellyUser } from '../types/User';\nimport { getInitials } from '../utils';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\ninterface GuestTileProps {\n participant: Participant;\n isHost: boolean;\n}\n\nconst GuestTile: React.FC = (props: GuestTileProps) => {\n const {\n participant: { id, firstname, lastname, email, paymentStatus },\n isHost,\n } = props;\n\n const navigate = useNavigate();\n\n const user: TellyUser = {\n id: id,\n firstname: firstname,\n lastname: lastname,\n email: email,\n membership: 'HOST',\n createdAt: new Date(),\n socialAccounts: [],\n activeRole: 'HOST',\n fullname: `${firstname} ${lastname}`,\n };\n\n const handleClick = async () => {\n const channel = await getOrCreateChannel({\n otherUserId: user.id,\n });\n\n if (channel) {\n navigate(`/messages/${channel?.id}`);\n }\n };\n\n return (\n <>\n
\n
\n
\n navigate(`/profile/${user.id}`)}\n />\n
\n
\n
\n {firstname} {lastname}\n
\n
\n {isHost ? 'HOST' : paymentStatus === 'PAID' ? 'PAID' : 'UNPAID'}\n
\n
\n
\n\n \n
\n \n );\n};\n\nexport default GuestTile;\n","import { Moment } from 'moment';\nimport { useNavigate } from 'react-router-dom';\nimport { Participant } from '../types/UpcomingAppointment';\nimport { getTimezoneAbbreviation } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { useDialog } from './DialogContext';\nimport { CancelAppointmentForm } from './Forms/CancelAppointmentForm';\nimport GuestTile from './GuestTile';\nimport { CalendarIcon, TimeIcon } from './icons';\n\ninterface ScheduleDetailsProps {\n appointmentId: string;\n hostId?: string;\n imageUrl?: string;\n serviceTitle: string;\n startTime: Moment;\n endTime: Moment;\n participants?: Participant[];\n}\n\nexport const ScheduleDetails: React.FC = ({\n appointmentId,\n hostId,\n imageUrl,\n serviceTitle,\n startTime,\n endTime,\n participants = [],\n}: ScheduleDetailsProps) => {\n const navigate = useNavigate();\n\n const handleJoinCall = () => navigate(`/appointment/${appointmentId}/call`);\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleCancel = async () => {\n openDialog({\n content: (\n \n ),\n });\n };\n\n return (\n <>\n
\n
Schedule Details
\n\n {/* Service info */}\n
\n
\n {imageUrl && (\n \n )}\n
\n\n
{serviceTitle}
\n
\n\n {/* Appointment schedule */}\n
\n
\n {/* clock icon */}\n \n\n \n {startTime.format('MMMM DD, YYYY')}\n \n
\n\n
\n {/* clock icon */}\n \n\n \n {startTime.format('hh:mm A')} - {endTime.format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n
\n
\n\n {/* Guests */}\n
\n
\n Guests\n
\n\n
\n {participants.map((e, index) => (\n \n ))}\n
\n
\n\n {/* Buttons */}\n
\n \n\n \n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { CalendarComponent } from '../components/Calendar';\nimport { DataLoader } from '../components/DataLoader';\nimport { useDialog } from '../components/DialogContext';\nimport { EmptyUI } from '../components/EmptyUI';\nimport { BlockScheduleForm } from '../components/Forms/BlockScheduleForm';\nimport { GuestAppointments } from '../components/GuestAppointments';\nimport { Schedule } from '../components/Schedule';\nimport { ScheduleDetails } from '../components/ScheduleDetails';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport { getHostSchedule, isBlockedSchedule } from '../services';\nimport { AppDispatch, selectHostOrTrialRole } from '../store';\nimport { AppointmentSession } from '../types';\nimport { CalendarEvent } from '../types/CalendarEvent';\n\nexport const AppointmentsPage: React.FC = () => {\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n if (hostOrTrialRole) {\n return (\n <>\n \n Appointment - {APP_NAME}\n \n\n \n \n );\n }\n\n return (\n <>\n \n Appointment - {APP_NAME}\n \n\n \n \n );\n};\n\nconst HostAppointment: React.FC = () => {\n const [selectedDay, setSelectedDay] = useState(new Date());\n\n const [appointment, setAppointment] = useState();\n\n const [refreshCount, setRefreshCount] = useState(0);\n\n const dispatch = useDispatch();\n\n const { openDialog, closeDialog } = useDialog();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n useEffect(() => {\n setBreadcrumbs([{ name: 'Appointments' }]);\n }, []);\n\n const loadUpcomingAppointments = useCallback(async () => {\n return await getHostSchedule({});\n }, [dispatch, refreshCount]);\n\n /// clear the appointment when a new day is selected\n const handleSelectDay = (date: Date) => {\n setAppointment(null);\n setSelectedDay(date);\n };\n\n const handleSelectAppointment = (\n appointmentID: string,\n appointments: AppointmentSession[],\n ) => {\n const index = appointments.findIndex((e) => e.id === appointmentID);\n setAppointment(appointments[index]);\n };\n\n const handleBlockSchedule = () => {\n openDialog({\n content: (\n <>\n {\n setRefreshCount((prev) => prev + 1);\n closeDialog();\n }}\n />\n \n ),\n });\n };\n\n return (\n <>\n
\n (\n <>\n
\n \n\n \n
\n
\n
\n
\n
\n\n
\n {Array(3)\n .fill(null)\n .map((_, index) => (\n \n {/* Side border skeleton */}\n
\n\n {/* Content skeleton */}\n
\n {/* Time and icon skeleton */}\n
\n \n
\n
\n\n {/* Service title skeleton */}\n
\n
\n
\n ))}\n
\n
\n \n )}\n renderData={(data: AppointmentSession[]) => {\n const filteredAppointments = data.filter(\n (e) => moment(e.startTime).date() === selectedDay.getDate(),\n );\n\n return (\n <>\n
\n \n ({\n startTime: moment(e.startTime),\n }) as CalendarEvent,\n )}\n />\n\n \n
\n\n
\n \n handleSelectAppointment(id, filteredAppointments)\n }\n selectedDay={selectedDay}\n onDeleted={handleRefresh}\n />\n
\n \n );\n }}\n renderEmpty={() => (\n <>\n
\n \n\n \n
\n
\n
\n \n
\n
\n \n )}\n />\n\n
\n {appointment && !isBlockedSchedule(appointment) && (\n \n )}\n
\n
\n \n );\n};\n","import { ReactElement } from 'react';\nimport { WarningIcon } from './icons';\n\ninterface BannerProps {\n message: string;\n action?: ReactElement;\n}\n\nexport const Banner: React.FC = ({\n message,\n action,\n}: BannerProps) => {\n return (\n
\n
\n
\n \n
\n\n
{message}
\n
\n {action &&
{action}
}\n
\n );\n};\n","import moment from 'moment';\nimport { TimeSlot } from '../components/Forms/ServiceForm';\nimport { AvailableHour } from '../types/AvailableHour';\n\nexport const parseTimeSlotsForBackend = (\n timeSlots: Array,\n): AvailableHour[] => {\n return timeSlots.map((slot) => {\n // Parse the start time based on the day provided\n const startISO = moment()\n .day(slot.day) // Convert the day to a date in the current week\n .hour(parseInt(slot.start.split(':')[0], 10))\n .minute(parseInt(slot.start.split(':')[1], 10))\n .second(0)\n .toISOString();\n\n // Parse the end time based on the same day\n const endISO = moment()\n .day(slot.day)\n .hour(parseInt(slot.end.split(':')[0], 10))\n .minute(parseInt(slot.end.split(':')[1], 10))\n .second(0)\n .toISOString();\n\n return { start: startISO, end: endISO } as AvailableHour;\n });\n};\n\nexport const parseTimeSlotsFromBackend = (\n timeSlots: Array,\n): AvailableHour[] => {\n return timeSlots.map((slot) => {\n // Parse the start time based on the day provided\n const startISO = moment()\n .day(slot.day) // Convert the day to a date in the current week\n .hour(parseInt(slot.start.split(':')[0], 10))\n .minute(parseInt(slot.start.split(':')[1], 10))\n .second(0)\n .toISOString();\n\n // Parse the end time based on the same day\n const endISO = moment()\n .day(slot.day)\n .hour(parseInt(slot.end.split(':')[0], 10))\n .minute(parseInt(slot.end.split(':')[1], 10))\n .second(0)\n .toISOString();\n\n return { start: startISO, end: endISO } as AvailableHour;\n });\n};\n","import { forwardRef } from 'react';\n\ninterface RadioListTileProps {\n name: string;\n label: string;\n value: any;\n selected: any;\n onChange: (value: any) => void;\n disabled?: boolean;\n reasonForDisabled?: string | undefined;\n}\n\nexport const RadioListTile = forwardRef(\n (\n {\n name,\n label,\n value,\n selected,\n onChange,\n disabled = false,\n reasonForDisabled,\n }: RadioListTileProps,\n ref,\n ) => {\n const id = `${name}-${value}`;\n\n return (\n
\n \n
\n onChange(value)}\n checked={selected === value}\n disabled={disabled}\n />\n {value === selected && (\n
\n )}\n
\n {label}\n \n\n \n {reasonForDisabled && {reasonForDisabled}}\n \n
\n );\n },\n);\n","import { Plus } from '@iconsans/react/bold';\nimport { useEffect, useRef } from 'react';\nimport { Controller, useFieldArray, useFormContext } from 'react-hook-form';\nimport { TextFormField } from '../FormFields/TextFormField';\nimport { ServiceFormValues } from '../Forms/ServiceForm';\nimport { DeleteIcon } from '../icons';\nimport { ValidationMessage } from '../ValidationMessage';\n\ninterface TimeSlotPickerProps {\n isRequired: boolean;\n}\n\nexport const TimeSlotPicker: React.FC = ({\n isRequired,\n}) => {\n const {\n control,\n formState: { errors },\n } = useFormContext();\n\n const { fields, append, remove } = useFieldArray({\n control,\n name: 'availabilityHours', // matches ServiceForm field name\n });\n\n // Ref to track if initial append has been done\n const initialAppendDone = useRef(false);\n\n useEffect(() => {\n // Append initial values if available\n if (isRequired && fields.length === 0 && !initialAppendDone.current) {\n append({ day: 'MONDAY', start: '', end: '' });\n initialAppendDone.current = true; // Set to true after initial append\n }\n }, [isRequired, fields.length, append]);\n\n const handleAdd = () => append({ day: 'MONDAY', start: '', end: '' });\n\n return (\n
\n {fields.map((field, index) => (\n
\n {/* Day Selector */}\n (\n \n \n \n \n \n \n \n \n \n \n )}\n />\n\n (\n \n )}\n />\n\n (\n \n )}\n />\n\n remove(index)}\n className=\"hover:text-red-80 mt-2.5 flex h-6 w-6 items-center justify-center rounded-md bg-red-600 text-white\"\n >\n \n \n
\n ))}\n\n
\n \n
\n {/* Error message for the array if required */}\n {errors.availabilityHours && (\n \n {errors.availabilityHours.message}\n \n )}\n
\n );\n};\n","import { Plus } from '@iconsans/react/bold';\nimport { useRef } from 'react';\nimport { DeleteIcon } from '../icons';\n\ninterface AddImageProps {\n onImageChange: (file: File | undefined) => void;\n imageUrl?: string;\n onDeleteImage: (imageUrl: string) => void;\n}\n\nexport const AddImage: React.FC = ({\n onImageChange,\n imageUrl,\n onDeleteImage,\n}) => {\n const fileInputRef = useRef(null);\n\n const handleClick = () => {\n fileInputRef.current?.click();\n };\n\n const handleFileChange = (event: React.ChangeEvent) => {\n const file = event.target.files?.[0] || undefined;\n onImageChange(file);\n };\n\n return (\n \n {!imageUrl && }{' '}\n {/* Show Plus icon if no image */}\n {imageUrl && (\n e.stopPropagation()}\n >\n onDeleteImage(imageUrl)}\n />\n
\n )}\n \n
\n );\n};\n","import { AddImage } from './AddImage';\n\ninterface UploadGalleryProps {\n value: (File | string | undefined)[]; // Combines existing URLs and new Files\n onChange: (files: (File | string | undefined)[]) => void;\n onDeleteImage: (imageUrl: string) => void; // Called when an existing image (URL) is deleted\n existingImages?: string[]; // images from the server\n}\n\nexport const UploadGallery: React.FC = ({\n onChange,\n value,\n onDeleteImage,\n}) => {\n const handleImageChange = (index: number) => (file: File | undefined) => {\n const newImages = [...value];\n newImages[index] = file; // Replace or add the new file\n onChange(newImages); // Update the parent component with the new images array\n };\n\n const handleDeleteImage = (index: number) => {\n // Remove the image by setting it to `undefined` in the array\n if (typeof value[index] === 'string') {\n onDeleteImage(value[index] as string); // Notify parent about deletion for server-stored image\n }\n const updatedImages = [...value];\n updatedImages[index] = undefined; // Set the index to `undefined` to keep the slot open\n onChange(updatedImages); // Update parent component with the modified images array\n };\n\n return (\n
\n
\n {value.map((image, index) => (\n handleDeleteImage(index)}\n />\n ))}\n
\n
\n );\n};\n","import { SERVICE_THEMES } from '../constants';\n\ninterface ThemeSelectorProps {\n selected?: string;\n onClick: (value: string) => void;\n}\n\nexport const ThemeSelector: React.FC = ({\n selected,\n onClick,\n}: ThemeSelectorProps) => {\n return (\n <>\n
\n {Object.entries(SERVICE_THEMES).map(([key, value]) => {\n return (\n onClick(key)}\n >\n {/* inner circle */}\n
\n\n {/* outer circle */}\n
\n
\n );\n })}\n
\n \n );\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { Plus, Trash } from '@iconsans/react/bold';\nimport { useEffect, useRef, useState } from 'react';\nimport {\n Controller,\n FormProvider,\n useFieldArray,\n useForm,\n} from 'react-hook-form';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport * as yup from 'yup';\nimport {\n createService,\n deleteService,\n deleteServiceGallery,\n updateService,\n} from '../../services';\nimport { AppDispatch, deleteUserService, selectHostMembership, updateUserService } from '../../store';\nimport {\n ClassType,\n CreateServicePayload,\n ServiceType,\n UpdateServicePayload,\n} from '../../types';\nimport { showSuccess } from '../../utils';\nimport { parseTimeSlotsForBackend } from '../../utils/parseTimeSlotsForBackend';\nimport { OutlinedButton } from '../Buttons';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { useDialog } from '../DialogContext';\nimport { RadioListTile } from '../FormFields/RadioListTile';\nimport { TextAreaFormField } from '../FormFields/TextAreaFormField';\nimport { TextFormField } from '../FormFields/TextFormField';\nimport { TimeSlotPicker } from '../FormFields/TimeSlotFormField';\nimport { UploadGallery } from '../FormFields/UploadGallery';\nimport { ThemeSelector } from '../ThemeSelector';\nimport { ValidationMessage } from '../ValidationMessage';\nimport { ErrorIcon } from '../icons';\n\nconst MAX_FILE_SIZE = 10 * 1024 * 1024; // 10MB\n\nconst availabilityHourSchema = yup.object().shape({\n day: yup.string().required('Day is required'),\n start: yup.string().required('Start time is required'),\n end: yup.string().required('End time is required'),\n});\n\nconst schema = (isTrial: boolean) =>\n yup.object().shape(\n {\n classType: yup\n .string()\n .oneOf(\n ['ONE_ON_ONE', 'MULTIPLE'],\n 'Class type must be either \"ONE_ON_ONE\" or \"MULTIPLE\"',\n )\n .required('Class type is required'),\n title: yup.string().required('Title is required'),\n category: yup.string().required('Category is required'),\n description: yup.string().required('Description is required'),\n availabilityHours: yup.array(availabilityHourSchema).when('classType', {\n is: 'MULTIPLE',\n then: (schema) =>\n schema.required('Availability hours are required for multiple class types')\n .min(1, 'At least one availability hour is required'),\n otherwise: (schema) =>\n schema.optional().nullable().transform(value =>\n value && value.length === 0 ? null : value\n ),\n }),\n duration: yup.object({\n hours: yup.number().integer().nullable()\n .transform((value, originalValue) =>\n originalValue === \"\" ? undefined : value\n ),\n minutes: yup.number().integer().nullable()\n .transform((value, originalValue) =>\n originalValue === \"\" ? undefined : value\n ),\n }).when('classType', {\n is: 'MULTIPLE',\n then: (schema) => schema.optional().nullable(),\n otherwise: (schema) =>\n schema.required().test(\n 'min-duration',\n 'Duration cannot be zero',\n function (value) {\n const { hours, minutes } = value || {};\n return (hours || 0) + (minutes || 0) > 0;\n }\n ).test(\n 'max-duration',\n 'Total duration cannot exceed 60 minutes for trial users',\n function (value) {\n if (!isTrial) return true;\n const { hours, minutes } = value || {};\n return ((hours || 0) * 60 + (minutes || 0)) <= 60;\n }\n )\n }),\n sessions: yup\n .number()\n .required('Sessions is required')\n .positive('Sessions must be a positive number'),\n gallery: yup\n .array()\n .compact()\n .nullable()\n .min(1, 'At least one image is required for the gallery')\n .required('Gallery is required')\n .test('fileSize', 'One or more files exceed 10MB limit', (value) => {\n if (!value) return true;\n return value.every((file) => {\n if (file instanceof File) {\n return file.size <= MAX_FILE_SIZE;\n }\n return true; // Skip validation for existing image URLs\n });\n }),\n // gallery: yup.array()\n // .of(yup.mixed().test('fileOrUrl', 'Invalid image type', value => value instanceof File || typeof value === 'string'))\n // .min(1, 'At least one image is required')\n // .required('At least one image is required'),\n serviceType: yup\n .string()\n .oneOf(\n ['FREE', 'STARTS AT'],\n 'Class type must be either \"Free\" or \"Starts at\"',\n )\n .required('Service type is required'),\n serviceRate: yup.number().when('serviceType', {\n is: (value: 'FREE' | 'STARTS AT') => value === 'STARTS AT',\n then: (schema) =>\n schema\n .required('Service rate is required when the service is not free')\n .min(0, 'Service rate must be at least 0'),\n }),\n theme: yup.string().required('Calendar color is required'),\n requirements: yup\n .array()\n .of(\n yup.object().shape({\n value: yup.string().optional(),\n }),\n )\n .optional(),\n whatYouLearn: yup\n .array()\n .of(\n yup.object().shape({\n value: yup.string().optional(),\n }),\n )\n .optional(),\n cancellationPolicy: yup.string().optional(),\n },\n [['hours', 'minutes']],\n );\n\nexport type TimeSlot = {\n day: string;\n start: string;\n end: string;\n};\n\nexport type ServiceFormValues = {\n classType: ClassType;\n title: string;\n category: string;\n description: string;\n duration: {\n hours?: number | null;\n minutes?: number | null;\n };\n sessions: number;\n gallery: (File | string | undefined)[];\n serviceType: ServiceType;\n serviceRate?: number; // 0 - free\n theme: string;\n requirements?: { value?: string }[];\n whatYouLearn?: { value?: string }[];\n cancellationPolicy?: string | undefined;\n availabilityHours?: TimeSlot[];\n};\n\ninterface ServiceFormProps {\n edit?: boolean;\n serviceId?: string;\n initialValue: ServiceFormValues;\n previewUrls?: string[];\n}\n\nexport const ServiceForm: React.FC = ({\n edit,\n initialValue,\n previewUrls,\n serviceId,\n}: ServiceFormProps) => {\n const hostMembership = useSelector(selectHostMembership);\n const isTrial = !hostMembership;\n const [loading, setLoading] = useState(false);\n const [deleting, setDeleting] = useState(false);\n const [deletedImages, setDeletedImages] = useState([]);\n const [existingImages, setExistingImages] = useState(\n previewUrls ?? [],\n );\n\n console.log(existingImages);\n\n const { openDialog, closeDialog } = useDialog();\n\n const methods = useForm({\n resolver: yupResolver(schema(isTrial)),\n defaultValues: initialValue,\n });\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n control,\n watch,\n reset,\n } = methods;\n\n const { fields, append, remove } = useFieldArray({\n control,\n name: 'requirements', // Manage the requirements field array\n });\n\n const {\n fields: fields2,\n append: append2,\n remove: remove2,\n } = useFieldArray({\n control,\n name: 'whatYouLearn', // Manage the requirements field array\n });\n\n const classType = watch('classType');\n\n const navigate = useNavigate();\n\n const dispatch = useDispatch();\n\n // Update useEffect to handle both switching cases\n useEffect(() => {\n if (classType === 'ONE_ON_ONE') {\n // Clear availability hours when switching to ONE_ON_ONE\n methods.setValue('availabilityHours', undefined);\n } else if (classType === 'MULTIPLE') {\n // Clear duration when switching to MULTIPLE\n methods.setValue('duration', { hours: undefined, minutes: undefined });\n }\n }, [classType, methods]);\n\n const onSubmit = async (data: ServiceFormValues) => {\n console.dir(errors);\n setLoading(true);\n\n try {\n if (!serviceId) {\n const payload: CreateServicePayload = {\n title: data.title,\n class_type: data.classType,\n category: data.category,\n description: data.description,\n duration_per_session:\n classType === 'ONE_ON_ONE'\n ? (data.duration?.hours ?? 0) * 60 * 60 * 1000 +\n (data.duration?.minutes ?? 0) * 60 * 1000\n : null, // convert to milliseconds\n cancellationPolicy: data.cancellationPolicy,\n sessions: data.sessions,\n service_rate: (data.serviceRate ?? 0) * 100,\n requirements: data.requirements?.map((item) => item.value).filter((v) => v !== undefined) ?? [],\n what_you_learn: data.whatYouLearn?.map((item) => item.value).filter((v) => v !== undefined) ?? [],\n theme: data.theme,\n gallery: data.gallery.filter((item) => item instanceof File), // only consider file inputs\n availabilityHours: data.availabilityHours\n ? parseTimeSlotsForBackend(data.availabilityHours)\n : undefined,\n };\n\n const createdService = await createService(payload);\n\n dispatch(updateUserService(createdService));\n\n openDialog({\n title: 'Success',\n content: 'Successfully added service!',\n actions: (\n <>\n {\n reset();\n closeDialog();\n }}\n />\n\n {\n reset();\n navigate(`/services/${createdService.id}`);\n closeDialog();\n }}\n />\n \n ),\n });\n } else {\n // handle image deletion\n try {\n /// just capture error logs\n\n deletedImages.length > 0\n ? await deleteServiceGallery({\n id: serviceId,\n images: deletedImages,\n })\n : { success: true };\n } catch (e) {\n console.error(e);\n }\n\n // if (deleteResponse.success) {\n const payload: UpdateServicePayload = {\n serviceId: serviceId,\n title: data.title,\n class_type: data.classType,\n category: data.category,\n description: data.description,\n duration_per_session:\n classType === 'ONE_ON_ONE'\n ? (data.duration?.hours ?? 0) * 60 * 60 * 1000 +\n (data.duration?.minutes ?? 0) * 60 * 1000\n : null, // convert to milliseconds\n cancellationPolicy: data.cancellationPolicy,\n sessions: data.sessions,\n service_rate: (data.serviceRate ?? 0) * 100,\n requirements: data.requirements?.map((item) => item.value).filter((v) => v !== undefined) ?? [],\n what_you_learn: data.whatYouLearn?.map((item) => item.value).filter((v) => v !== undefined) ?? [],\n theme: data.theme,\n gallery: data.gallery.filter((item) => item instanceof File), // only consider file inputs\n availabilityHours: data.availabilityHours\n ? parseTimeSlotsForBackend(data.availabilityHours)\n : undefined,\n };\n\n const updatedService = await updateService(payload);\n\n dispatch(updateUserService(updatedService));\n\n openDialog({\n title: 'Success',\n content: 'Successfully updated service!',\n actions: (\n <>\n {\n closeDialog();\n navigate(`/services/${serviceId}`);\n }}\n />\n \n ),\n });\n // }\n }\n } catch (e) {\n console.error(e);\n openDialog({\n title: 'Error',\n content: (e as Error).message ?? 'An error occurred',\n actions: (\n <>\n {\n closeDialog();\n }}\n />\n \n ),\n });\n } finally {\n setLoading(false);\n }\n };\n\n const classTypes: string[] = ['ONE_ON_ONE', 'MULTIPLE'];\n\n const serviceType = watch('serviceType');\n const serviceRateRef = useRef(null); // Create a ref for the service rate input\n\n const addRequirement = () => {\n append({ value: '' });\n };\n\n const deleteRequirement = (index: number) => {\n remove(index);\n };\n\n const addWhatYouLearn = () => {\n append2({ value: '' });\n };\n\n const deleteWhatYouLearn = (index: number) => {\n remove2(index);\n };\n\n // Effect to autofocus the serviceRate input when serviceType is \"STARTS AT\"\n useEffect(() => {\n if (serviceType === 'STARTS AT' && serviceRateRef.current) {\n serviceRateRef.current.focus();\n }\n }, [serviceType]); // Run this effect whenever serviceType changes\n\n const handleDeleteImage = (deletedImage: string) => {\n setDeletedImages((prev) => [...prev, deletedImage]);\n setExistingImages((prev) => {\n const arr = [...prev];\n const index = arr.findIndex((e) => e === deletedImage);\n if (index > -1) {\n arr.splice(index, 1);\n return arr;\n } else {\n return prev;\n }\n });\n };\n\n console.dir(errors);\n\n const confirmDelete = () => {\n openDialog({\n title: 'Delete Service',\n content:\n 'Are you sure you want to delete this service. This action cannot be undone.',\n actions: [\n ,\n ,\n ],\n });\n };\n\n const handleDelete = async () => {\n closeDialog();\n\n setDeleting(true);\n\n if (!serviceId) return;\n\n try {\n await deleteService(serviceId ?? '');\n\n dispatch(deleteUserService(serviceId ?? ''));\n\n showSuccess('Successfully deleted service.');\n\n navigate('/services');\n } catch (e) {\n openDialog({\n icon: ,\n centerTitle: true,\n centerContent: true,\n title: 'Failed',\n content: (e as Error).message,\n actions: ,\n });\n } finally {\n setDeleting(false);\n }\n };\n\n return (\n <>\n \n
\n {/* */}\n
\n
\n Class Type {edit && '(unable to change class type)'}\n
\n\n {/* radio options */}\n (\n
\n {classTypes.map((option, index) => (\n \n ))}\n
\n )}\n />\n\n {errors.classType && (\n {errors.classType.message}\n )}\n
\n\n
\n
Service Title
\n\n \n
\n\n
\n
Category
\n\n \n
\n\n
\n
Sessions
\n\n \n
\n\n {/* Add time slot picker here */}\n\n
\n
Duration
\n\n {classType === 'MULTIPLE' && (\n <>\n \n \n )}\n\n {classType === 'ONE_ON_ONE' && (\n <>\n
\n (\n \n )}\n />\n\n
hours
\n (\n \n )}\n />\n\n
minutes
\n
\n\n {errors.duration && (\n \n {errors.duration.message}\n \n )}\n {errors.duration && errors.duration.root && (\n \n {errors.duration.root.message}\n \n )}\n \n )}\n
\n\n
\n
Description
\n\n \n
\n\n
\n
Upload Gallery
\n\n (\n \n )}\n />\n\n {errors.gallery && (\n {errors.gallery.message}\n )}\n
\n\n
\n
Service Rate
\n\n
\n
\n (\n <>\n
\n \n
\n\n
\n \n\n (\n $}\n disabled={serviceType === 'FREE'}\n />\n )}\n />\n
\n \n )}\n />\n
\n
\n
\n\n
\n
\n Choose a service color for your calendar\n
\n\n (\n \n )}\n />\n \n {errors.theme && (\n
{errors.theme.message}
\n )}\n
\n
\n\n
\n
Requirements
\n\n {fields.map((item, index) => (\n
\n
\n \n {errors.requirements && errors.requirements[index] && (\n \n {errors.requirements[index].value?.message}\n \n )}\n
\n\n {/* display delete if not last item and items are greater than 1 */}\n {fields.length > 1 && fields.length - 1 !== index ? (\n deleteRequirement(index)}\n />\n ) : (\n \n )}\n
\n ))}\n
\n\n
\n
Additional Details
\n\n {fields2.map((item, index) => (\n
\n
\n \n {errors.whatYouLearn && errors.whatYouLearn[index] && (\n \n {errors.whatYouLearn[index].value?.message}\n \n )}\n
\n\n {fields2.length > 1 && fields2.length - 1 !== index ? (\n deleteWhatYouLearn(index)}\n />\n ) : (\n \n )}\n
\n ))}\n
\n\n
\n
\n Cancellation and Refund Policy\n
\n\n \n
\n\n
\n \n {edit && (\n \n )}\n
\n
\n
\n \n );\n};\n\n\n","import { useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport { Banner } from '../components/Banner';\nimport { TextButton } from '../components/Buttons';\nimport { ServiceForm } from '../components/Forms/ServiceForm';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n selectHostMembership,\n selectHostOrTrialRole,\n selectRemainingService,\n selectStripeAccount,\n} from '../store';\n\nexport const CreateService: React.FC = () => {\n const { setBreadcrumbs } = useBreadcrumbs();\n const hostMembership = useSelector(selectHostMembership);\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const remainingServicesCount = useSelector(selectRemainingService);\n\n const stripeAccount = useSelector(selectStripeAccount);\n\n const navigate = useNavigate();\n\n const handleSetupStripe = () => navigate(`/settings/stripe-account`);\n\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Services', path: 'services' },\n { name: 'Create' },\n ]);\n }, []);\n\n return (\n <>\n \n Create Service - {APP_NAME}\n \n\n
\n {!hostOrTrialRole && (\n
\n
\n \n
\n
\n )}\n\n {hostOrTrialRole && (\n
\n {!hostMembership && remainingServicesCount === 0 && (\n
\n \n
\n )}\n\n {hostMembership && !stripeAccount && (\n
\n \n }\n />\n
\n )}\n\n
\n
\n
Create Service
\n\n
\n Fill out this form to create a service\n
\n
\n\n \n
\n
\n )}\n
\n \n );\n};\n","import { useNavigate } from 'react-router-dom';\nimport { selectAuth } from '../store';\nimport { useSelector } from 'react-redux';\n\nexport const DashboardDetails: React.FC = () => {\n const navigate = useNavigate();\n const { user } = useSelector(selectAuth);\n\n\n const handleGoToDetails = () => {\n navigate(`/appointments/ongoing`);\n };\n\n const handleGoToDetailsCompleted = () => {\n navigate(`/appointment/completed`);\n };\n\n return (\n <>\n
\n \n\n \n
\n \n );\n};\n\ninterface DashboardDetailsCardProps {\n label: string;\n value: number;\n labelClass: string;\n onClick: () => void;\n}\n\nexport const DashboardDetailsCard: React.FC = ({\n label,\n value,\n labelClass,\n onClick,\n}: DashboardDetailsCardProps) => {\n /// add 0 if the value is less than 10\n const formattedValue = value < 10 ? '0' + value : value;\n\n return (\n <>\n \n
{label}
\n\n
{formattedValue}
\n
\n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const AddIcon = (props: SvgIconProps) => {\n return (\n \n \n \n \n );\n};\n","import { useCallback } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { NavigateFunction } from 'react-router-dom';\nimport { getOrCreateChannel } from '../services/messages';\nimport { AppDispatch } from '../store';\nimport { getContactsAsync } from '../store/contactsSlice';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { DataLoader } from './DataLoader';\nimport { EmptyUI } from './EmptyUI';\nimport { SkeletonContactListTile } from './skeletons';\n\ninterface NewmessageProps {\n navigate: NavigateFunction;\n closeDialog: () => void;\n}\n\nexport const NewMessage: React.FC = ({\n navigate,\n closeDialog,\n}: NewmessageProps) => {\n const dispatch = useDispatch();\n\n const fetchContacts = useCallback(async () => {\n return await dispatch(getContactsAsync()).unwrap();\n }, [dispatch]);\n\n const sendMessage = async (id: string) => {\n ///\n const channel = await getOrCreateChannel({ otherUserId: id });\n\n if (channel) {\n navigate(`/messages/${channel.id}`);\n }\n\n closeDialog();\n };\n\n return (\n <>\n
\n
\n
\n This information will be displayed publicly so be careful what you\n share.\n
\n
\n\n
\n }\n renderEmpty={() => }\n renderData={(contacts) => {\n return (\n
\n {contacts.map(\n (\n { avatar, firstname, lastname, membership, id },\n index,\n ) => (\n \n {/* avatar */}\n
\n {avatar && (\n \n )}\n
\n\n
\n {/* name */}\n
\n {firstname} {lastname}\n
\n\n {/* membership */}\n
\n {membership}\n
\n
\n\n {/* delete button */}\n sendMessage(id)}\n />\n
\n ),\n )}\n
\n );\n }}\n />\n
\n\n
\n \n
\n
\n \n );\n};\n","import React, { PropsWithChildren } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport {\n ChannelList,\n ChannelListMessengerProps,\n ChannelPreviewUIComponentProps,\n DefaultStreamChatGenerics,\n} from 'stream-chat-react';\nimport { chatClient, getInitials } from '../utils';\nimport { Avatar } from './Avatar';\nimport { IconButton } from './Buttons/IconButton';\nimport { useDialog } from './DialogContext';\nimport { AddIcon } from './icons/Add';\nimport { NewMessage } from './NewMessage';\n\nexport const RecentMessages = () => {\n const { openDialog, closeDialog } = useDialog();\n\n const navigate = useNavigate();\n\n const handleNewMessage = () => {\n openDialog({\n title: 'New Message',\n content: ,\n });\n };\n\n const options = { limit: 20 };\n\n const filters = {\n members: { $in: [chatClient?.userID ?? ''] },\n type: 'messaging',\n };\n\n return (\n
\n
Recent Messages
\n\n
\n }\n onClick={handleNewMessage}\n ariaLabel=\"new message\"\n bgClass=\"bg-neutral-200\"\n size=\"md\"\n />\n\n \n
\n
\n );\n};\n\nexport const ChannelListContainer: React.FC<\n PropsWithChildren\n> = <\n StreamChatGenerics extends\n DefaultStreamChatGenerics = DefaultStreamChatGenerics,\n>(\n props: PropsWithChildren>,\n) => {\n const { children } = props;\n\n return (\n \n {children}\n
\n );\n};\nconst AvatarChannelPreview = (\n props: ChannelPreviewUIComponentProps,\n) => {\n const { channel, displayImage } = props;\n\n // Extract the first member who is not the current user (assuming 1:1 chat for now)\n const members = Object.values(channel.state.members);\n const otherMember = members.find(\n (member) => member.user?.id !== channel.getClient().userID,\n );\n\n // Determine if the other member is online\n const isOnline = otherMember?.user?.online;\n\n const navigate = useNavigate();\n\n const handleClick = () => {\n navigate(`/messages/${channel.id}`);\n };\n\n return (\n \n {displayImage ? (\n \n ) : (\n \n )}\n\n {isOnline ? (\n
\n ) : (\n
\n )}\n
\n );\n};\n\n/// display nothing on empty channels\nconst EmptyChannels = () => <>;\n","import moment from 'moment';\nimport 'moment-timezone';\nimport { useSelector } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport { weekday } from '../constants';\nimport { selectHostOrTrialRole } from '../store';\nimport { AppointmentForApproval } from '../types/AppointmentForApproval';\nimport { getTimezoneAbbreviation } from '../utils';\n\nexport const RequestCard: React.FC = ({\n appointment,\n}: RequestCardProps) => {\n const localDate = new Date(appointment.appointmentSession.startTime);\n const localDateEnd = new Date(appointment.appointmentSession.endTime);\n const imageUrl = appointment.appointmentSession.service.gallery.at(0);\n\n const hostOrTrial = useSelector(selectHostOrTrialRole);\n\n const url = `/requests/${appointment.id}`;\n\n return (\n <>\n \n
\n
\n {imageUrl && (\n \n )}\n
\n
\n \n {appointment.appointmentSession.service.title}\n \n \n {weekday[localDate.getDay()]} -{' '}\n {moment(localDate).format('DD MMMM YYYY')}\n \n \n {moment(localDate).format('hh:mm A')} -{' '}\n {moment(localDateEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n \n {hostOrTrial\n ? `${appointment.user.firstname} ${appointment.user.lastname}`\n : `${appointment.appointmentSession.host?.firstname} ${appointment.appointmentSession.host?.lastname}`}\n \n
\n
\n \n \n );\n};\n\ninterface RequestCardProps {\n appointment: AppointmentForApproval;\n}\n","import QRCode from 'qrcode';\nimport { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';\nimport { showError } from '../utils';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\nexport const Qr = forwardRef(({ link }: { link: string }, ref) => {\n const canvasRef = useRef(null);\n\n useEffect(() => {\n if (canvasRef.current) {\n QRCode.toCanvas(\n canvasRef.current,\n link,\n { width: 300 },\n (error: Error | null | undefined) => {\n if (error) console.error('Error generating QR code:', error);\n },\n );\n }\n }, [link]);\n\n // Expose a function to get the QR code as a data URL\n useImperativeHandle(ref, () => ({\n getCanvasDataUrl: () => {\n return canvasRef.current?.toDataURL('image/png');\n },\n }));\n\n useImperativeHandle(ref, () => ({\n getCanvasBlob: () => {\n return new Promise((resolve) => {\n canvasRef.current?.toBlob((blob) => {\n resolve(blob);\n });\n });\n },\n }));\n\n return ;\n});\n\nQr.displayName = 'QR';\n\nexport const ShareQr = ({\n link,\n name,\n closeDialog,\n}: {\n link: string;\n name: string | undefined;\n closeDialog: VoidFunction;\n}) => {\n const qrRef = useRef<{ getCanvasBlob: () => Promise }>(null);\n\n const getBlob = async () => {\n const blob = await qrRef.current?.getCanvasBlob();\n return blob;\n };\n\n /// handle save qr code\n const handleSave = async () => {\n const blob = await getBlob();\n if (blob) {\n const link = document.createElement('a');\n link.href = URL.createObjectURL(blob);\n link.download = `${name || 'qr-code'}.png`;\n link.click();\n }\n closeDialog();\n };\n\n const handleShare = async () => {\n const blob = await getBlob();\n if (blob && navigator.share) {\n const file = new File([blob], `${name || 'qr-code'}.png`, {\n type: 'image/png',\n });\n try {\n await navigator.share({\n files: [file],\n title: `${name}'s QR Code`,\n text: 'Check out this QR code!',\n });\n closeDialog(); // Close dialog after successful share\n } catch (error) {\n console.error('Error sharing QR code:', error);\n showError('Error sharing the QR code. Please try again.');\n }\n } else {\n showError('Sharing not supported on this browser.');\n }\n };\n\n return (\n <>\n
\n {/* QR Code */}\n
\n \n
\n\n {/* Name of User */}\n
{`${name}'s Profile`}
\n\n
\n \n\n \n
\n
\n \n );\n};\n","import moment from 'moment';\nimport 'moment-timezone';\nimport { useSelector } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport { weekday } from '../constants';\nimport { selectHostOrTrialRole, selectUserId } from '../store';\nimport { UpcomingAppointment } from '../types/UpcomingAppointment';\nimport { calculateDuration, getTimezoneAbbreviation } from '../utils';\n\nexport const UpcomingAppointmentCard: React.FC<\n UpcomingAppointmentCardProps\n> = ({ appointment }: UpcomingAppointmentCardProps) => {\n const localDate = new Date(appointment.startTime);\n const localDateEnd = new Date(appointment.endTime);\n const imageUrl = appointment.service.gallery.at(0);\n const userId = useSelector(selectUserId);\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const link = `/appointment/${appointment.id}`;\n\n const { participants } = appointment;\n\n const guests = participants?.filter((e) => e.id !== userId);\n\n const participantsCount = guests?.length ?? 0;\n\n console.log(appointment.service.classType);\n\n return (\n <>\n \n
\n
\n {imageUrl && (\n \n )}\n
\n
\n
\n \n {calculateDuration({\n startTime: appointment.startTime,\n endTime: appointment.endTime,\n })}\n \n\n {/* Pill */}\n
\n
\n \n {appointment.service.classType === 'ONE_ON_ONE'\n ? 'One on One'\n : 'Multiple Guests'}\n \n
\n
\n
\n\n {/* service title */}\n {appointment.service.title}\n\n {/* Schedule day - date */}\n \n {weekday[localDate.getDay()]} -{' '}\n {moment(localDate).format('DD MMMM YYYY')}\n \n\n {/* time / timezone */}\n \n {moment(localDate).format('hh:mm A')} -{' '}\n {moment(localDateEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n\n {/* host */}\n {!hostOrTrialRole && (\n \n {appointment.host?.firstname} {appointment.host?.lastname}\n \n )}\n\n {/* participants */}\n {hostOrTrialRole && (\n
\n {guests\n ?.slice(0, 2)\n .map((participant) => {\n return `${participant.firstname} ${participant.lastname}`;\n })\n .join(', ')}{' '}\n {/* if participants is greater than 2, display the + number of users */}\n {participantsCount > 2 ? `+${participantsCount - 2}` : ''}\n
\n )}\n
\n
\n \n \n );\n};\n\ninterface UpcomingAppointmentCardProps {\n appointment: UpcomingAppointment;\n}\n","import React, { useCallback, useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Link, useNavigate } from 'react-router-dom';\nimport { FilledButton, IconButton } from '../components/Buttons';\nimport { DashboardDetails } from '../components/DashboardDetails';\nimport { DataLoader } from '../components/DataLoader';\nimport { useDialog } from '../components/DialogContext';\nimport { EmptyUI } from '../components/EmptyUI';\nimport { CopyIcon, QrIcon, ShareIcon } from '../components/icons';\nimport { RecentMessages } from '../components/RecentMessages';\nimport { RequestCard } from '../components/RequestCard';\nimport { ShareQr } from '../components/ShareQr';\n\nimport { UpcomingAppointmentCard } from '../components/UpcomingAppointmentCard';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n AppDispatch,\n getForApprovalAppointmentsAsync,\n getUpcomingAppointmentsAsync,\n selectHostOrTrialRole,\n selectRole,\n selectUser,\n selectUserId,\n selectUsername,\n} from '../store';\nimport { generateProfileLink, showError, showSuccess } from '../utils';\nimport {\n SkeletonRequestCard,\n SkeletonUpcomingAppointmentCard,\n} from '../components/skeletons';\n\nexport const DashboardPage: React.FC = () => {\n const dispatch = useDispatch();\n const userId = useSelector(selectUserId);\n const username = useSelector(selectUsername);\n const user = useSelector(selectUser);\n const role = useSelector(selectRole);\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n const { setBreadcrumbs } = useBreadcrumbs();\n\n // Fetch upcoming appointments\n const fetchUpcomingAppointments = useCallback(async () => {\n const result = await dispatch(getUpcomingAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch, role]);\n\n // Fetch appointments for approval\n const fetchForApprovalAppointments = useCallback(async () => {\n const result = await dispatch(getForApprovalAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch, role]);\n\n useEffect(() => {\n setBreadcrumbs([{ name: 'Dashboard' }]);\n }, []);\n\n /// generate profile link /deeplink from username\n /// if username is not available, use userId\n const generateProfileLinkFromUserId = (): string => {\n return generateProfileLink(username ?? userId ?? '');\n };\n\n const navigate = useNavigate();\n\n const handleViewSchedule = () => navigate(`/dashboard/appointments`);\n\n return (\n <>\n \n Dashboard | {APP_NAME}\n \n\n
\n {!hostOrTrialRole && (\n
\n \n
\n )}\n\n {!hostOrTrialRole && }\n\n {/* Profile Link */}\n {(role === 'HOST' || role === 'TRIAL') && (\n
\n
\n
Profile Link
\n\n \n
\n\n
\n
\n {generateProfileLinkFromUserId()}\n
\n\n \n
\n
\n )}\n\n
\n {/* Requests header */}\n
\n
Requests
\n\n \n { }} label=\"View All\" />\n \n
\n\n {/* DataLoader for Appointments for Approval */}\n (\n
\n {appointmentsForApproval.slice(0, 4).map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n renderEmpty={() => }\n />\n
\n\n
\n {/* Upcoming appointments header */}\n
\n
Upcoming Appointments
\n\n \n
\n\n (\n
\n {upcomingAppointments.slice(0, 4).map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n renderEmpty={() => }\n />\n
\n
\n \n );\n};\n\ninterface ProfileLinksControlProps {\n containerClass: string;\n link: string;\n username: string;\n}\n\nconst ProfileLinksControl: React.FC = (\n props: ProfileLinksControlProps,\n) => {\n const { openDialog, closeDialog } = useDialog();\n\n const copyLink = async () => {\n /// copy to clipboard\n try {\n await navigator.clipboard.writeText(props.link);\n\n showSuccess('Text copied to clipboard!');\n } catch (error) {\n showError('Failed to copy text:' + error);\n }\n };\n\n const generateQr = () => {\n /// open dialog for qr\n openDialog({\n title: '',\n content: (\n <>\n \n \n ),\n });\n };\n\n const handleShare = async () => {\n /// browser share\n if (navigator.share) {\n try {\n await navigator.share({\n title: 'Share Profile Link',\n text: props.link,\n url: props.link,\n });\n } catch (error) {\n console.error('Error sharing content:', error);\n }\n } else {\n showError('Sharing is not supported on this browser.');\n }\n };\n\n return (\n
\n }\n ariaLabel=\"copy\"\n onClick={copyLink}\n />\n\n }\n onClick={generateQr}\n ariaLabel=\"qr\"\n />\n\n }\n onClick={handleShare}\n ariaLabel=\"share\"\n />\n
\n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useSelector } from 'react-redux';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { Banner } from '../components/Banner';\nimport { DataLoader } from '../components/DataLoader';\nimport { ServiceForm } from '../components/Forms/ServiceForm';\nimport Loader from '../components/Loader/Loader';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport { getService } from '../services';\nimport { selectHostOrTrialRole } from '../store';\n\nexport const EditService: React.FC = () => {\n const { id } = useParams();\n const location = useLocation();\n const { setBreadcrumbs } = useBreadcrumbs();\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n // const [refreshCount, setRefreshCount] = useState(0);\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Services',\n path: 'services',\n },\n {\n name: 'Edit',\n },\n ]);\n }, [location.pathname]);\n\n const loadService = useCallback(async () => {\n const data = await getService(id ?? '');\n\n return data;\n }, [id]);\n\n return (\n (\n
\n
\n \n
\n
\n )}\n renderData={(service) => {\n return (\n <>\n \n Edit Service - {APP_NAME}\n \n\n
\n {!hostOrTrialRole && (\n
\n
\n \n
\n
\n )}\n\n {hostOrTrialRole && (\n
\n
\n
\n
Edit Service
\n\n
\n Fill out this form to create a service\n
\n
\n\n {service && (\n ({\n value,\n })) ?? [{ value: '' }],\n whatYouLearn: service.whatYouLearn?.map((value) => ({\n value,\n })) ?? [{ value: '' }],\n cancellationPolicy: service.cancellationPolicy ?? '',\n availabilityHours: service.availabilityHours?.map(\n (hour) => ({\n day: moment(hour.start).format('dddd'),\n start: moment(hour.start).format('HH:mm:ss'),\n end: moment(hour.end).format('HH:mm:ss'),\n }),\n ),\n }}\n previewUrls={service.gallery}\n />\n )}\n
\n
\n )}\n
\n \n );\n }}\n />\n );\n};\n\nfunction padToThreeItems(arr: (T | undefined)[]): (T | undefined)[] {\n return [...arr, undefined, undefined, undefined].slice(0, 3);\n}\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useDispatch } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport * as yup from 'yup';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { useDialog } from '../components/DialogContext';\nimport { SuccessIcon } from '../components/icons';\nimport { ValidationMessage } from '../components/ValidationMessage';\nimport { requestResetPassword } from '../services';\nimport { AppDispatch, resetStatus } from '../store';\nimport { showError } from '../utils';\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Please enter a valid email')\n .required('Email is required'),\n});\n\ntype FormValues = {\n email: string;\n};\n\nexport const ForgotPasswordPage: React.FC = () => {\n const dispatch = useDispatch();\n const navigate = useNavigate();\n const { openDialog, closeDialog } = useDialog();\n const [loading, setLoading] = useState(false);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const onSubmit = async (data: FormValues) => {\n const { email } = data;\n\n setLoading(true);\n\n try {\n await requestResetPassword({ email });\n\n openDialog({\n icon: ,\n title: 'Successful',\n centerTitle: true,\n content:\n 'Password reset link sent. Check your email for password reset instruction.',\n centerContent: true,\n actions: (\n <>\n {\n dispatch(resetStatus());\n closeDialog();\n navigate('/login');\n }}\n label=\"Login\"\n bgClass=\"bg-info\"\n size=\"lg\"\n />\n \n ),\n });\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n
\n
\n
\n
\n \n Please enter your email address to receive password reset\n instruction\n \n\n \n\n {errors.email && (\n {errors.email.message}\n )}\n\n
\n\n \n
\n \n
\n
\n );\n};\n","export default \"data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M26.7399%2023.379C26.2863%2024.4272%2025.7493%2025.3918%2025.1269%2026.279C24.2789%2027.4882%2023.5845%2028.3251%2023.0493%2028.7901C22.2197%2029.553%2021.3308%2029.9436%2020.379%2029.9659C19.6957%2029.9659%2018.8717%2029.7715%2017.9124%2029.3771C16.9501%2028.9844%2016.0656%2028.7901%2015.257%2028.7901C14.4089%2028.7901%2013.4993%2028.9844%2012.5263%2029.3771C11.5519%2029.7715%2010.7669%2029.977%2010.1668%2029.9975C9.25402%2030.0361%208.34424%2029.6343%207.43611%2028.7901C6.8565%2028.2844%206.13154%2027.4177%205.26303%2026.1901C4.33121%2024.879%203.56514%2023.3587%202.96497%2021.6254C2.32221%2019.7532%202%2017.9403%202%2016.1852C2%2014.1747%202.43443%2012.4407%203.30459%2010.9876C3.98846%209.82042%204.89824%208.8997%206.03691%208.22382C7.17558%207.54791%208.4059%207.20346%209.73086%207.18142C10.4558%207.18142%2011.4065%207.40569%2012.588%207.84642C13.7661%208.28861%2014.5225%208.51287%2014.8542%208.51287C15.1021%208.51287%2015.9425%208.25065%2017.3671%207.7279C18.7143%207.24311%2019.8513%207.04236%2020.7827%207.12143C23.3067%207.32513%2025.203%208.32009%2026.4639%2010.1126C24.2067%2011.4804%2023.09%2013.396%2023.1123%2015.8535C23.1326%2017.7677%2023.8271%2019.3607%2025.1919%2020.6254C25.8102%2021.2125%2026.5011%2021.6661%2027.2695%2021.9884C27.103%2022.4717%2026.9269%2022.9346%2026.7399%2023.379ZM20.9512%200.600169C20.9512%202.10051%2020.4031%203.50137%2019.3105%204.798C17.9921%206.33942%2016.3973%207.23014%2014.6679%207.08959C14.6459%206.9096%2014.6331%206.72015%2014.6331%206.52108C14.6331%205.08077%2015.2601%203.53933%2016.3736%202.279C16.9295%201.64087%2017.6365%201.11028%2018.4939%200.687018C19.3494%200.270068%2020.1587%200.0394862%2020.9197%200C20.942%200.200572%2020.9512%200.401156%2020.9512%200.600149V0.600169Z'%20fill='black'/%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_245_2798)'%3e%3cpath%20d='M12%204.5C7%204.5%202.73%207.61%201%2012C2.73%2016.39%207%2019.5%2012%2019.5C17%2019.5%2021.27%2016.39%2023%2012C21.27%207.61%2017%204.5%2012%204.5ZM12%2017C9.24%2017%207%2014.76%207%2012C7%209.24%209.24%207%2012%207C14.76%207%2017%209.24%2017%2012C17%2014.76%2014.76%2017%2012%2017ZM12%209C10.34%209%209%2010.34%209%2012C9%2013.66%2010.34%2015%2012%2015C13.66%2015%2015%2013.66%2015%2012C15%2010.34%2013.66%209%2012%209Z'%20fill='%239CA3AF'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_245_2798'%3e%3crect%20width='24'%20height='24'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clipPath='url(%23clip0_245_2896)'%3e%3cpath%20d='M29.9842%2015.2807C29.9842%2014.0516%2029.8821%2013.1547%2029.6613%2012.2246H15.2988V17.7721H23.7292C23.5593%2019.1507%2022.6415%2021.2269%2020.6018%2022.622L20.5732%2022.8077L25.1144%2026.2455L25.429%2026.2762C28.3184%2023.6685%2029.9842%2019.8317%2029.9842%2015.2807Z'%20fill='%234285F4'%20/%3e%3cpath%20d='M15.2989%2029.897C19.4291%2029.897%2022.8964%2028.5682%2025.429%2026.2762L20.6019%2022.622C19.3101%2023.5023%2017.5764%2024.1169%2015.2989%2024.1169C11.2536%2024.1169%207.82028%2021.5093%206.59638%2017.905L6.41698%2017.9199L1.69505%2021.491L1.6333%2021.6587C4.14882%2026.5418%209.3159%2029.897%2015.2989%2029.897Z'%20fill='%2334A853'%20/%3e%3cpath%20d='M6.59621%2017.905C6.27328%2016.9749%206.08638%2015.9782%206.08638%2014.9485C6.08638%2013.9187%206.27328%2012.9221%206.57922%2011.992L6.57067%2011.7939L1.78956%208.16553L1.63313%208.23824C0.596365%2010.2646%200.00146484%2012.5401%200.00146484%2014.9485C0.00146484%2017.3569%200.596365%2019.6323%201.63313%2021.6587L6.59621%2017.905Z'%20fill='%23FBBC05'%20/%3e%3cpath%20d='M15.2989%205.78004C18.1713%205.78004%2020.1089%206.99252%2021.2138%208.00576L25.531%203.8866C22.8796%201.47824%2019.4291%200%2015.2989%200C9.31591%200%204.14882%203.35507%201.6333%208.2382L6.5794%2011.992C7.82028%208.38774%2011.2536%205.78004%2015.2989%205.78004Z'%20fill='%23EB4335'%20/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_245_2896'%3e%3crect%20width='30'%20height='30'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","export default \"data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M30.1469%2016.0002C30.1469%2023.537%2024.037%2029.6469%2016.5002%2029.6469C8.96334%2029.6469%202.85352%2023.537%202.85352%2016.0002C2.85352%208.46334%208.96334%202.35352%2016.5002%202.35352C24.037%202.35352%2030.1469%208.46334%2030.1469%2016.0002Z'%20stroke='black'%20stroke-width='3'/%3e%3cpath%20d='M9.5%2018C10.6046%2018%2011.5%2017.1046%2011.5%2016C11.5%2014.8954%2010.6046%2014%209.5%2014C8.39543%2014%207.5%2014.8954%207.5%2016C7.5%2017.1046%208.39543%2018%209.5%2018Z'%20fill='black'/%3e%3cpath%20d='M16.5%2018C17.6046%2018%2018.5%2017.1046%2018.5%2016C18.5%2014.8954%2017.6046%2014%2016.5%2014C15.3954%2014%2014.5%2014.8954%2014.5%2016C14.5%2017.1046%2015.3954%2018%2016.5%2018Z'%20fill='black'/%3e%3cpath%20d='M23.5%2018C24.6046%2018%2025.5%2017.1046%2025.5%2016C25.5%2014.8954%2024.6046%2014%2023.5%2014C22.3954%2014%2021.5%2014.8954%2021.5%2016C21.5%2017.1046%2022.3954%2018%2023.5%2018Z'%20fill='black'/%3e%3c/svg%3e\"","import logo from '../assets/logo.svg';\n\nexport const LogoWithTitle: React.FC = () => {\n return (\n
\n \n\n \n TELLYCOM\n \n
\n );\n};\n","import { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Link, useNavigate } from 'react-router-dom';\nimport apple from '../assets/apple.svg';\nimport eye from '../assets/eye.svg';\nimport google from '../assets/google-play.svg';\nimport { CircularButton } from '../components/Buttons/CircularButton';\nimport { LogoWithTitle } from '../components/LogoWithTitle';\nimport { AppDispatch, AppState } from '../store';\nimport {\n appleLoginAsync,\n googleLoginAsync,\n loginAsync,\n resetStatus,\n} from '../store/authSlice';\n\nimport { yupResolver } from '@hookform/resolvers/yup';\nimport { Helmet } from 'react-helmet-async';\nimport { useForm } from 'react-hook-form';\nimport * as yup from 'yup';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { useDialog } from '../components/DialogContext';\nimport { ErrorIcon } from '../components/icons';\nimport { ValidationMessage } from '../components/ValidationMessage';\nimport { APP_NAME } from '../constants';\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Must be a valid email')\n .required('Email is required'),\n password: yup\n .string()\n .min(8, 'Password must be at least 8 characters long')\n .required('Password is required'),\n});\n\ntype FormValues = {\n email: string;\n password: string;\n remember?: boolean;\n};\n\nexport const LoginPage: React.FC = () => {\n const [remember, setRemember] = useState(false);\n const [showPassword, setShowPassword] = useState(false);\n const dispatch = useDispatch();\n const navigate = useNavigate();\n const { openDialog, closeDialog } = useDialog();\n const { status, error, user } = useSelector((state: AppState) => state.auth);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n reset,\n } = useForm({\n resolver: yupResolver(schema),\n defaultValues: {\n // email: 'host@test.com',\n // password: '00000000aA!',\n email: '',\n password: '',\n remember: false,\n },\n });\n\n const onSubmit = async (data: FormValues) => {\n dispatch(\n loginAsync({\n email: data.email,\n password: data.password,\n remember: remember,\n }),\n );\n };\n\n const handleGoogleLogin = () => {\n dispatch(googleLoginAsync());\n };\n\n const handleAppleLogin = () => {\n dispatch(appleLoginAsync());\n };\n\n const togglePasswordVisibility = () => setShowPassword(!showPassword);\n\n /// redirect to dashboard\n useEffect(() => {\n if (status === 'disabled' && user) {\n navigate('/disabled');\n }\n\n /// go to dashboard\n if (status === 'succeeded' && user) {\n navigate('/dashboard'); // Redirect to dashboard if login is successful\n }\n\n /// show error when request fails\n if (status === 'failed') {\n openDialog({\n title: 'Error',\n content: error ?? 'Error',\n icon: ,\n centerTitle: true,\n actions: (\n <>\n {\n reset();\n closeDialog();\n dispatch(resetStatus());\n }}\n label=\"Close\"\n />\n \n ),\n });\n }\n }, [status, user, error, navigate]);\n\n return (\n <>\n \n Login - {APP_NAME} \n \n\n
\n
\n \n\n
\n \n Login\n \n
\n\n \n
\n Email Address\n \n {errors.email && (\n {errors.email.message}\n )}\n
\n\n
\n Password\n
\n \n \n \n
\n
\n {errors.password && (\n {errors.password.message}\n )}\n
\n\n
\n \n\n
\n \n \n Forgot Password?\n \n \n
\n
\n\n
\n \n
\n \n\n {/** or divider */}\n
\n
\n \n or\n \n
\n
\n\n {/** Social buttons */}\n
\n \n \n \n \n \n \n
\n\n {/** sign up link */}\n
\n \n Don’t have an account?\n \n\n \n Sign up now\n \n
\n
\n
\n \n );\n};\n","import { } from '@stream-io/video-react-sdk';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { NavigateFunction, useNavigate, useParams } from 'react-router-dom';\nimport { Channel, ChannelFilters, StreamChat } from 'stream-chat';\nimport {\n ChannelList,\n ChannelPreviewUIComponentProps,\n ChannelSearchFunctionParams,\n DefaultStreamChatGenerics,\n SearchInputProps,\n StreamMessage,\n useChatContext,\n} from 'stream-chat-react';\nimport { getOrCreateChannel } from '../services';\nimport { chatClient, formatMessageDate } from '../utils';\nimport { FilledButton, IconButton, OutlinedButton } from './Buttons';\nimport { useDialog } from './DialogContext';\nimport { EmptyChannels } from './EmptyUI';\nimport { TextFormField } from './FormFields/TextFormField';\nimport { ArchiveIcon, DeleteIcon, SearchIcon, UserIcon } from './icons';\nimport { AddIcon } from './icons/Add';\nimport { NewMessage } from './NewMessage';\nimport { useSelector } from 'react-redux';\nimport { selectUserId } from '../store';\n\nexport const ChatDrawer: React.FC<{ onClick?: () => void }> = ({\n onClick,\n}: {\n onClick?: () => void;\n}) => {\n const { id } = useParams();\n const { openDialog, closeDialog } = useDialog();\n const navigate: NavigateFunction = useNavigate();\n const { setActiveChannel } = useChatContext();\n\n const userId = useSelector(selectUserId);\n\n const handleNewMessage = () => {\n onClick && onClick();\n openDialog({\n title: 'New Message',\n content: ,\n });\n };\n\n /// value to toggle to show archived messages\n const [archive, setArchive] = useState(false);\n\n const toggleArchive = () => {\n setActiveChannel(undefined);\n setArchive(!archive);\n navigate('/messages');\n };\n\n const filters = useMemo(() => {\n const baseFilters = {\n members: { $in: [userId ?? ''] },\n type: 'messaging',\n hidden: archive,\n };\n\n return baseFilters;\n }, [archive, userId]);\n\n useEffect(() => {\n if (!id) return;\n\n const loadChannel = async () => {\n const channel = await getOrCreateChannel({ channelId: id });\n\n if (channel) {\n setActiveChannel(channel);\n } else {\n setActiveChannel(undefined);\n }\n };\n\n loadChannel();\n }, [id, setActiveChannel, getOrCreateChannel]);\n\n const options = { limit: 20 }; // Optional limit on the number of channels\n\n return (\n
\n {/* Chat Toolbar */}\n
\n <>\n
\n {/* Toolbar title */}\n
\n \n {archive ? 'Archived Chat' : 'Chat'}\n \n {/* */}\n
\n
\n\n
\n {/* Archive icon */}\n }\n onClick={toggleArchive}\n ariaLabel=\"archive\"\n />\n\n {/* More icon */}\n }\n ariaLabel=\"new message\"\n />\n
\n \n
\n\n {/* Channels */}\n \n \n customSearchFunction(event, params, chatClient),\n onSelectResult: (_, result) =>\n result instanceof Channel ? setActiveChannel(result) : undefined,\n }}\n />\n
\n
\n );\n};\n\nconst customSearchFunction = async (\n props: ChannelSearchFunctionParams,\n event: { target: { value: string } },\n client: StreamChat,\n) => {\n // const currentUserId = chatClient?.userID;\n const { setResults, setSearching, setQuery } = props;\n const memberUserNameKey = 'member.user.name';\n\n const value = event.target.value;\n const filters: ChannelFilters = {\n members: { $in: [chatClient?.userID ?? ''] },\n type: 'messaging',\n };\n\n if (value.trim().length > 0) {\n filters[memberUserNameKey] = { $autocomplete: value };\n }\n\n setSearching(true);\n setQuery(value);\n const channels = await client.queryChannels(filters);\n setResults(channels);\n setSearching(false);\n};\n\nconst CustomSearchBar: React.FC = (\n props: SearchInputProps,\n) => {\n return (\n <>\n
e.stopPropagation()}>\n }\n />\n
\n \n );\n};\n\n/// container only\nconst CustomChannelPreview = (\n props: ChannelPreviewUIComponentProps,\n) => {\n const { channel, lastMessage, displayImage, displayTitle, unread, active } =\n props;\n\n return (\n \n );\n};\n\ninterface ChannelPreviewProps {\n channel: Channel;\n active?: boolean;\n displayImage?: string;\n displayTitle?: string;\n lastMessage?: StreamMessage;\n unread?: number;\n}\n\n/// actual preview\nconst ChannelPreview: React.FC = ({\n channel,\n active = false,\n displayImage = '',\n displayTitle = '',\n lastMessage = {} as StreamMessage,\n unread = 0,\n}: ChannelPreviewProps) => {\n const { openDialog, closeDialog } = useDialog();\n\n // Extract the first member who is not the current user (assuming 1:1 chat for now)\n const members = Object.values(channel.state?.members ?? {});\n const otherMember = members.find(\n (member) => member.user?.id !== channel.getClient().userID,\n );\n\n // Determine if the other member is online\n const isOnline = otherMember?.user?.online;\n\n // State for dropdown visibility and position\n const [dropdownVisible, setDropdownVisible] = useState(false);\n const [targetElement, setTargetElement] = useState(null);\n\n const navigate = useNavigate();\n\n const handleClick = () => {\n navigate(`/messages/${channel.id}`);\n };\n\n const handleRightClick = (e: React.MouseEvent) => {\n e.preventDefault(); // Prevent the default browser context menu\n setTargetElement(e.currentTarget as HTMLElement);\n setDropdownVisible(true);\n };\n\n const timeoutRef = useRef(null);\n const pressStartRef = useRef(0);\n const minPressDuration = 500; // Minimum press duration for long press (in ms)\n\n const handleLongPress = (e: React.TouchEvent) => {\n const pressDuration = Date.now() - pressStartRef.current;\n\n // Only trigger long press behavior after the minimum duration\n if (pressDuration >= minPressDuration) {\n e.preventDefault(); // Prevent the default browser context menu\n setTargetElement(e.currentTarget as HTMLElement);\n setDropdownVisible(true);\n }\n };\n\n const handleTouchStart = (e: React.TouchEvent) => {\n pressStartRef.current = Date.now();\n\n setTargetElement(e.currentTarget as HTMLElement);\n\n // Set timeout to detect long press after a minimum duration\n timeoutRef.current = setTimeout(() => {\n setDropdownVisible(true);\n }, minPressDuration);\n };\n\n const handleTouchEnd = (_: React.TouchEvent) => {\n const pressDuration = Date.now() - pressStartRef.current;\n\n // If the press duration is less than the long press threshold, it was a normal tap\n if (pressDuration < minPressDuration) {\n setDropdownVisible(false); // Reset dropdown on short press\n }\n\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current); // Cancel the long press timeout if user lifts finger early\n }\n };\n\n // Hide the dropdown when clicking elsewhere\n const handleOutsideClick = () => {\n setDropdownVisible(false);\n setTargetElement(null);\n };\n\n // Archive message action\n const confirmArchive = () => {\n setDropdownVisible(false); // Hide the dropdown after action\n\n openDialog({\n title: 'Archive Message',\n content: 'Are you sure you want to archive this message?',\n actions: (\n <>\n \n\n handleArchive(channel)}\n />\n \n ),\n });\n };\n\n const confirmRestore = () => {\n setDropdownVisible(false); // Hide the dropdown after action\n\n openDialog({\n title: 'Restore Message',\n content: 'Are you sure you want to restore this message?',\n actions: (\n <>\n \n\n handleUnarchive(channel)}\n />\n \n ),\n });\n };\n\n const handleArchive = async (channel: Channel) => {\n await channel.hide();\n closeDialog();\n };\n\n // Delete message action\n const confirmDelete = () => {\n setDropdownVisible(false); // Hide the dropdown after action\n\n openDialog({\n title: 'Delete Message',\n content: 'Are you sure you want to delete this message?',\n actions: (\n <>\n \n\n handleDelete(channel)}\n />\n \n ),\n });\n };\n\n const handleUnarchive = async (\n channel: Channel,\n ) => {\n await channel.show();\n closeDialog();\n };\n\n const handleDelete = async (channel: Channel) => {\n await channel.hide(chatClient?.userID, true);\n closeDialog();\n };\n\n // Add event listener to detect outside clicks\n useEffect(() => {\n if (dropdownVisible) {\n document.addEventListener('mousedown', handleOutsideClick);\n } else {\n document.removeEventListener('mousedown', handleOutsideClick);\n }\n\n // Cleanup event listener on unmount\n return () => document.removeEventListener('mousedown', handleOutsideClick);\n }, [dropdownVisible]);\n\n const { client } = useChatContext();\n\n const [hiddenChannels, setHiddenChannels] = useState();\n\n useEffect(() => {\n const getHiddenChannels = async () => {\n const channels = await client?.queryChannels({ hidden: true });\n\n setHiddenChannels(channels);\n };\n\n getHiddenChannels();\n }, [client]);\n\n return (\n <>\n
\n \n
\n {displayImage ? (\n \n ) : (\n
\n \n
\n )}\n\n {isOnline ? (\n
\n ) : (\n
\n )}\n
\n\n
\n
{displayTitle}
\n
\n {lastMessage?.text}\n
\n
\n\n {unread ? (\n
\n {unread}\n
\n ) : (\n lastMessage?.created_at && (\n
\n {formatMessageDate(lastMessage?.created_at)}\n
\n )\n )}\n
\n\n {/* Dropdown Menu */}\n {dropdownVisible && targetElement && (\n e.stopPropagation()}\n >\n {(hiddenChannels?.findIndex((ch) => ch.cid === channel.cid) ?? -1) >\n -1 ? (\n \n \n Unarchive\n
\n ) : (\n \n \n Archive\n
\n )}\n\n \n \n Delete\n
\n
\n )}\n
\n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { Outlet, useLocation } from 'react-router-dom';\n\nimport { APP_NAME } from '../constants';\n\n// stream styling\nimport { debounce } from 'lodash';\nimport 'stream-chat-react/dist/css/v2/index.css';\nimport { ChatDrawer } from '../components/ChatDrawer';\nimport { useBreadcrumbs } from '../contexts';\nimport '../css/stream_chat.css';\n\nexport const MessagesPage: React.FC = () => {\n const [isDrawerOpen, setIsDrawerOpen] = useState(false);\n const toggleDrawer = () => setIsDrawerOpen((prev) => !prev);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n const location = useLocation();\n\n // Update breadcrumbs whenever the location changes\n useEffect(() => {\n setBreadcrumbs([{ name: 'Messages' }]);\n }, [location.pathname]);\n\n // For Mobile: Show/hide drawer\n // State to track if the screen is mobile\n const [isMobile, setIsMobile] = useState(window.innerWidth <= 768);\n // State to track if we are on a channel page\n const [isChannelPage, setIsChannelPage] = useState(\n location.pathname.includes('/messages/') &&\n location.pathname !== '/messages',\n );\n\n // Update screen size dynamically\n useEffect(() => {\n const handleResize = debounce(() => {\n setIsMobile(window.innerWidth <= 768); // Update mobile state on resize\n }, 200); // Set debounce delay to 200ms\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n // Update the channel page state dynamically\n useEffect(() => {\n setIsChannelPage(\n location.pathname.includes('/messages/') &&\n location.pathname !== '/messages',\n );\n }, [location]);\n\n return (\n <>\n \n Messages - {APP_NAME}\n \n\n {/* Web Layout (Two Columns) */}\n
\n {/* Chat Drawer (visible in both web and mobile) */}\n {!isMobile && (\n
\n \n
\n )}\n\n {isMobile && !isChannelPage && (\n
\n \n
\n )}\n\n {/* Content Area */}\n
\n \n
\n
\n\n {/* Mobile Overlay Drawer */}\n {isDrawerOpen && (\n \n
\n \n
\n
\n )}\n \n );\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useForm } from 'react-hook-form';\nimport { useSelector } from 'react-redux';\nimport * as yup from 'yup';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport PasswordField from '../components/FormFields/PasswordField';\nimport { selectAuth } from '../store';\n\nconst schema = yup.object().shape({\n password: yup.string().required('Password is required'),\n confirmPassword: yup\n .string()\n .oneOf([yup.ref('password'), ''], 'Passwords do not match')\n .required('Password is required'), /// same value as password\n});\n\ntype FormValues = {\n password: string;\n confirmPassword: string;\n};\n\n/// handle password reset flow\nexport const NewPassword: React.FC = () => {\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schema),\n });\n const { status, error } = useSelector(selectAuth);\n\n console.log(errors);\n\n console.log(error);\n\n const onSubmit = (data: FormValues) => {\n console.log(data);\n };\n\n return (\n <>\n
\n
\n
\n
\n Please enter a new password\n {\n console.log(e);\n }}\n isValid={false}\n />\n \n
\n\n
\n \n
\n\n \n \n
\n
\n \n );\n};\n","import { useNavigate } from 'react-router-dom';\n\nconst NotFoundPage: React.FC = () => {\n const navigate = useNavigate();\n\n const handleGoHome = () => {\n navigate('/dashboard');\n };\n\n return (\n
\n

404

\n

Page Not Found

\n \n Go Home\n \n
\n );\n};\n\nexport default NotFoundPage;\n","import { useCallback, useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport { EmptyUI } from '../components/EmptyUI';\nimport NotificationListTile, {\n SkeletonNotificationListTile,\n} from '../components/NotificationListTile';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport { markAllNotificationAsRead } from '../services';\nimport { AppDispatch, getNotificationsAsync, selectRole } from '../store';\nimport { showSuccess } from '../utils';\n\nexport const NotificationsPage: React.FC = () => {\n const navigate = useNavigate();\n const dispatch = useDispatch();\n const role = useSelector(selectRole);\n const { setBreadcrumbs } = useBreadcrumbs();\n const [refreshCount, setRefreshCount] = useState(0);\n // const [page, setPage] = useState(1);\n\n const loadData = useCallback(async () => {\n if (!role) return [];\n\n return await dispatch(\n getNotificationsAsync({ role: role ?? 'GUEST' }),\n ).unwrap();\n }, [dispatch, role, refreshCount]);\n\n const handleRefresh = () =>setRefreshCount((prev) => prev+1);\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Notifications',\n },\n ]);\n }, []);\n\n // TODO: infinite loading implementation\n // const loadNotifications = useCallback(async () => {\n // if (!role) return [];\n\n // try {\n // const response = await getV1Notifications({ role, page, take: 10 });\n\n // const { data } = response;\n\n // return data;\n // } catch (e) {\n // throw e;\n // }\n // }, [role, page]);\n\n const handleMarkAllAsRead = async () => {\n markAllNotificationAsRead().then(\n (_) => (\n showSuccess('Marked all notifications as read'),\n setRefreshCount((prev) => prev + 1)\n ),\n );\n };\n\n return (\n <>\n \n Notifications - {APP_NAME}\n \n\n
\n
\n
Notifications
\n\n \n Mark all as read\n
\n
\n\n
\n (\n
\n {notifications.map((notification, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n <>\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n \n )}\n renderEmpty={() => (\n
\n \n
\n )}\n />\n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useNavigate } from 'react-router-dom';\nimport { APP_NAME } from '../constants';\nimport { addContact, deleteContact } from '../services/contacts';\nimport { getOrCreateChannel } from '../services/messages';\nimport { TellyUser } from '../types/User';\nimport { getInitials } from '../utils';\nimport { showError, showSuccess } from '../utils/showToast';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\n\ninterface GuestPublicProfileProps {\n user: TellyUser;\n}\n\nexport const SkeletonGuestPublicProfile: React.FC = () => {\n return (\n <>\n
\n
\n
\n
\n\n
\n
\n\n
\n
\n {/* Avatar */}\n
\n\n {/* Button */}\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n \n );\n};\n\nexport const GuestPublicProfile: React.FC = ({\n user,\n}: GuestPublicProfileProps) => {\n const { firstname, lastname, cover_photo, email, createdAt } = user;\n\n const navigate = useNavigate();\n\n const [added, setAdded] = useState(false);\n\n const handleSendMessage = async () => {\n try {\n const channel = await getOrCreateChannel({ otherUserId: user.id });\n\n if (channel) {\n navigate(`/messages/${channel.id}`);\n }\n } catch (e) {\n console.warn(e);\n showError((e as Error).message);\n }\n };\n\n const handleAddToContacts = async () => {\n try {\n await addContact(user.id);\n\n showSuccess('Successfully added contact.');\n setAdded(true);\n } catch (e) {\n showError('Failed to add contact.');\n }\n };\n\n const handleDeleteContact = async () => {\n try {\n await deleteContact(user.id);\n\n showSuccess('Successfully deleted contact.');\n setAdded(false);\n } catch (e) {\n showError('Failed to delete contact.');\n }\n };\n\n return (\n <>\n \n Profile - {APP_NAME}\n \n
\n
\n
\n
User Profile
\n\n
\n {cover_photo && (\n \n )}\n
\n
\n\n
\n {/* */}\n
\n {/* avatar */}\n \n\n {/* edit profile button */}\n \n
\n\n
\n
\n {firstname} {lastname}\n
\n\n
\n Member since {moment(createdAt).format('Y')}\n
\n
\n\n
\n
Email
\n\n
{email}
\n
\n\n
\n
\n
Completed Sessions
\n\n
\n {user.completedAppointmentSessionsCount}\n
\n
\n
\n
Ongoing Appointments
\n\n
\n {user.ongoingAppointmentsCount}\n
\n
\n
\n\n
\n
\n {!added ? (\n \n ) : (\n \n )}\n
\n
\n
\n
\n
\n \n );\n};\n","import moment from 'moment';\nimport {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n useState,\n} from 'react';\nimport { FieldError } from 'react-hook-form';\nimport { CalendarIcon } from '../icons';\nimport { ValidationMessage } from '../ValidationMessage';\n\ntype DateFormFieldProps = {\n value?: string | null;\n error?: FieldError | undefined;\n disabled?: boolean | undefined;\n};\n\nexport const DateFormField = forwardRef(\n function DateFormField({ error, value, disabled, ...rest }, ref) {\n const [displayDate, setDisplayDate] = useState('');\n\n const dateInputRef = useRef(null);\n\n useImperativeHandle(ref, () => dateInputRef.current as HTMLInputElement);\n\n // Open native date picker\n const handleProxyClick = () => {\n dateInputRef.current?.showPicker();\n };\n\n useEffect(() => {\n if (value) {\n setDisplayDate(moment(value).format('DD/MM/YYYY'));\n } else {\n setDisplayDate('');\n }\n }, [value]);\n\n return (\n <>\n \n \n\n
\n \n
\n
\n\n {error?.message && (\n {error.message}\n )}\n\n {/* Hidden Date Input */}\n \n \n );\n },\n);\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useEffect, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useDispatch } from 'react-redux';\nimport * as yup from 'yup';\nimport { addWorkExperience, updateWorkExperience } from '../../services';\nimport { AppDispatch, updateUserExperience } from '../../store';\nimport { WorkExperience } from '../../types';\nimport { showError } from '../../utils';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { CheckBox } from '../FormFields/CheckBox';\nimport { DateFormField } from '../FormFields/DateFormField';\nimport { TextAreaFormField } from '../FormFields/TextAreaFormField';\nimport { TextFormField } from '../FormFields/TextFormField';\n\nconst schema = yup.object().shape({\n companyName: yup.string().required('Company is required'),\n jobTitle: yup.string().required('Position is required'),\n dateFrom: yup.string().required('Start date is required'),\n dateTo: yup.string().optional(),\n description: yup.string().optional(),\n});\n\ntype FormValues = {\n companyName: string;\n jobTitle: string;\n dateFrom: string;\n dateTo?: string | undefined;\n description?: string | undefined;\n};\n\ninterface ExperienceFormProps {\n experience?: WorkExperience | undefined;\n closeDialog: () => void;\n}\n\nexport const ExperienceForm: React.FC = ({\n experience,\n closeDialog,\n}: ExperienceFormProps) => {\n const [success, setSuccess] = useState(null);\n const [loading, setLoading] = useState(false);\n const dispatch = useDispatch();\n const [present, setPresent] = useState(false);\n\n const preprocessedData = {\n ...experience,\n dateFrom: experience?.dateFrom\n ? new Date(experience.dateFrom).toISOString()\n : undefined,\n dateTo: experience?.dateTo\n ? new Date(experience.dateTo).toISOString()\n : undefined,\n } as FormValues;\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n watch,\n setValue,\n } = useForm({\n resolver: yupResolver(schema),\n defaultValues: preprocessedData,\n });\n\n useEffect(() => {\n if (watch('dateTo')) {\n setPresent(false);\n }\n }, [watch('dateTo')]);\n\n // TODO: no feeback on success/error\n const onSubmit = async (data: FormValues) => {\n setLoading(true);\n try {\n if (experience?.id) {\n const response = await updateWorkExperience(data, experience.id);\n\n if (response) {\n dispatch(updateUserExperience(response));\n }\n } else {\n const response = await addWorkExperience(data);\n\n if (response) {\n dispatch(updateUserExperience(response));\n }\n }\n\n setLoading(false);\n setSuccess(true);\n closeDialog();\n } catch (e) {\n setLoading(false);\n setSuccess(false);\n showError('Failed to save work experience');\n console.log(e);\n }\n };\n\n const clearDateTo = () => {\n setPresent((prev) => !prev);\n\n if (present) {\n setValue('dateTo', undefined);\n }\n };\n\n const dateFromValue = watch('dateFrom');\n const dateToValue = watch('dateTo');\n\n return (\n
\n {success && (\n
\n Successfully saved work experience\n
\n )}\n\n {/* company/organization */}\n
\n
Company/Organization
\n\n \n
\n\n {/* position */}\n
\n
Position
\n\n \n
\n\n {/* date from to date to */}\n
\n
\n
From
\n\n \n
\n\n
\n
To
\n\n \n\n \n
\n
\n\n {/* description */}\n
\n
Description
\n\n \n
\n\n
\n {/* cancel */}\n \n\n {/* save */}\n \n
\n
\n );\n};\n","import React, { useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { updateSocialAccounts } from '../../services';\nimport {\n AppDispatch,\n selectSocialAccounts,\n updateUserSocialAccounts,\n} from '../../store';\nimport { SocialAccount } from '../../types';\nimport { SocialMedia } from '../../types/SocialMedia';\nimport { showError } from '../../utils';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { TextFormField } from '../FormFields/TextFormField';\nimport { FbIcon, InstaIcon, LinkedInIcon, WebIcon, XIcon } from '../icons';\nimport { SvgIconProps } from '../icons/SvgIconProps';\n\ninterface SocialMediaIcon {\n component: React.FC; // You could also use React.FC if you prefer.\n href: string;\n key: SocialMedia; // You may need to use key for rendering in lists.\n}\n\nexport const socialMediaIcons = (): SocialMediaIcon[] => [\n { component: FbIcon, href: 'https://facebook.com', key: 'FACEBOOK' },\n { component: InstaIcon, href: 'https://instagram.com', key: 'INSTAGRAM' },\n {\n component: LinkedInIcon,\n href: 'https://linkedin.com',\n key: 'LINKEDIN',\n },\n { component: XIcon, href: 'https://x.com', key: 'TWITTER' },\n { component: WebIcon, href: 'https://example.com', key: 'WEBSITE' },\n];\n\ninterface SocialMediaFormProps {\n closeDialog: () => void;\n}\n\nexport const SocialMediaForm: React.FC = ({\n closeDialog,\n}: SocialMediaFormProps) => {\n /// get current value\n const dispatch = useDispatch();\n const [isLoading, setIsLoading] = useState(false);\n const socialAccounts = useSelector(selectSocialAccounts);\n\n const [updatedSocialAccounts, setUpdatedSocialAccounts] = useState<\n SocialAccount[]\n >(socialAccounts ?? []);\n\n const handleChange = (newValue: string, key: SocialMedia) => {\n const index = updatedSocialAccounts.findIndex(\n (socialAccount) => socialAccount.socialMedia === key,\n );\n\n if (index !== -1) {\n // Create a new array with the updated object\n const newSocialAccounts = updatedSocialAccounts.map((account, i) =>\n i === index ? { ...account, url: newValue } : account\n );\n setUpdatedSocialAccounts(newSocialAccounts);\n } else {\n // Add new social account\n setUpdatedSocialAccounts([\n ...updatedSocialAccounts,\n {\n socialMedia: key,\n url: newValue,\n },\n ]);\n }\n };\n\n const handleSubmit = async () => {\n /// only include social accounts with a url\n const payload = updatedSocialAccounts.filter((account) => account.url.length > 0);\n\n setIsLoading(true);\n ///\n try {\n const response = await updateSocialAccounts(payload);\n\n console.log(response);\n dispatch(updateUserSocialAccounts(response?.socialAccounts ?? []));\n } catch (e) {\n console.log(e);\n showError((e as Error).message);\n } finally {\n setIsLoading(false);\n closeDialog();\n }\n };\n\n return (\n
\n
\n Add your social media links that will be visible on your profile page.\n
\n\n
\n {socialMediaIcons().map((item, index) => {\n const Component = item.component;\n const link: string | undefined = updatedSocialAccounts.find(\n ({ socialMedia }) => item.key === socialMedia,\n )?.url;\n\n return (\n }\n onChange={(event) => handleChange(event.target.value, item.key)}\n />\n );\n })}\n
\n\n
\n \n\n \n
\n
\n );\n};\n","import { useSelector } from 'react-redux';\nimport { NavigateFunction } from 'react-router-dom';\nimport { getOrCreateChannel } from '../services';\nimport { selectGuestRole, selectUserId } from '../store';\nimport { Host } from '../types';\nimport { Service } from '../types/Service';\nimport {\n formatCurrency,\n formatDurationInMsToHourMinutes,\n getInitials,\n showError,\n showSuccess,\n} from '../utils';\nimport { Avatar } from './Avatar';\nimport { OutlinedButton } from './Buttons';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { useDialog } from './DialogContext';\nimport { CheckIcon } from './icons';\n\ninterface ServiceInfoProps {\n navigate: NavigateFunction;\n service: Service;\n host: Host;\n}\n\nexport const ServiceInfo: React.FC = ({\n navigate,\n service,\n host,\n}: ServiceInfoProps) => {\n const { closeDialog } = useDialog();\n const guestRole = useSelector(selectGuestRole);\n\n const handleBookNow = () => {\n closeDialog();\n navigate(`/services/${service.id}/book`);\n };\n\n const handleSendMessage = async () => {\n if (!service.userId) {\n showError('Failed to open messages. User ID not found.');\n return;\n }\n\n closeDialog();\n\n const channel = await getOrCreateChannel({ otherUserId: service.userId });\n\n if (!channel) {\n showError('Failed to open messages. Channel ID not found.');\n return;\n }\n\n navigate(`/messages/${channel.id}`);\n };\n\n const handleEditService = () => {\n closeDialog();\n navigate(`/services/${service.id}/edit`);\n };\n\n const currentUserId = useSelector(selectUserId);\n\n const handleShare = async () => {\n const serviceUrl = `${import.meta.env.VITE_APP_DOMAIN}/s/${service.id}`;\n\n try {\n await navigator.clipboard.writeText(serviceUrl);\n\n showSuccess('Successfully copied link to clipboard!');\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n return (\n <>\n
\n {/* Service image */}\n
\n {service.gallery && service.gallery.at(0) && (\n \n )}\n
\n\n {/* Service details */}\n
\n {/* more details */}\n
\n {/* avatar / send message */}\n
\n \n\n {guestRole && (\n \n )}\n
\n\n {/* name / profession */}\n
\n
\n {host.firstname} {host.lastname}\n
\n\n
\n {host.profession}\n
\n
\n\n
\n
{service.title}
\n\n
\n {service.classType.replace(/_/g, ' ')}\n
\n
\n\n {/* hours / sessions / category */}\n
\n {/* hours */}\n
\n
Hours
\n
\n {service.classType === 'MULTIPLE'\n ? 'Varies'\n : formatDurationInMsToHourMinutes(\n service.durationPerSession,\n )}\n
\n
\n\n {/* sessions */}\n
\n
Sessions
\n
{service.sessions}
\n
\n\n {/* category */}\n
\n
Category
\n
\n {service.category}\n
\n
\n
\n\n
\n
Description
\n\n
{service.description}
\n
\n\n
\n
\n Additional Details\n
\n\n {service.whatYouLearn?.map((item, index) => {\n return (\n
\n \n\n
{item}
\n
\n );\n }) ??
No additional details
}\n
\n\n
\n
Requirements
\n\n {service.requirements?.map((item, index) => {\n return (\n
\n
\n \n
\n\n
{item}
\n
\n );\n }) ?? (\n
No specified requirements
\n )}\n
\n\n
\n
\n Cancellation and Refund Policy\n
\n\n
{service.cancellationPolicy}
\n
\n
\n\n {/* free / book now */}\n
\n
\n {service.serviceRate === 0\n ? 'FREE'\n : `$ ${formatCurrency(service.serviceRate / 100)}`}\n
\n\n
\n {currentUserId !== service.userId ? (\n \n ) : (\n <>\n \n\n \n \n )}\n
\n
\n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport { TextButton } from '../components/Buttons/TextButton';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n addContact,\n deleteWorkExperience,\n getOrCreateChannel,\n} from '../services';\nimport { AppDispatch, deleteUserExperience, selectUser, selectUserId } from '../store';\nimport { Service } from '../types/Service';\nimport { SocialAccount, TellyUser } from '../types/User';\nimport { WorkExperience } from '../types/WorkExperience';\nimport {\n generateProfileLink,\n getInitials,\n showError,\n showSuccess,\n} from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { MenuButton } from './Buttons/MenuButton';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { useDialog } from './DialogContext';\nimport { EmptyUI } from './EmptyUI';\nimport { ExperienceForm } from './Forms/ExperienceForm';\nimport { SocialMediaForm, socialMediaIcons } from './Forms/SocialMediaForm';\nimport { DeleteIcon, EditIcon } from './icons';\nimport { AddIcon } from './icons/Add';\nimport { SvgIconProps } from './icons/SvgIconProps';\nimport Loader from './Loader/Loader';\nimport { ServiceInfo } from './ServiceInfo';\n\nexport const ServiceCard = ({\n service,\n user,\n onDragLeft,\n onDragRight,\n}: {\n service: Service;\n user: TellyUser;\n onDragLeft?: () => void;\n onDragRight?: () => void;\n}) => {\n const { title, classType } = service;\n\n const navigate = useNavigate();\n\n const [startX, setStartX] = useState(null);\n\n const handleStart = (position: number) => {\n setStartX(position);\n };\n\n const handleEnd = (position: number) => {\n if (startX === null) return;\n const diff = position - startX;\n\n if (diff > 0) {\n onDragRight && onDragRight(); // Trigger forward navigation\n } else if (diff < 0) {\n onDragLeft && onDragLeft(); // Trigger backward navigation\n }\n setStartX(null); // Reset start position after dragging\n };\n\n const handleTouchStart = (e: React.TouchEvent) => {\n handleStart(e.touches[0].clientX);\n };\n\n const handleTouchEnd = (e: React.TouchEvent) => {\n handleEnd(e.changedTouches[0].clientX);\n };\n\n const handleMouseDown = (e: React.MouseEvent) => {\n handleStart(e.clientX);\n };\n\n const handleMouseUp = (e: React.MouseEvent) => {\n handleEnd(e.clientX);\n };\n\n const { openDialog } = useDialog();\n\n const handleTap = () => {\n openDialog({\n content: (\n \n ),\n width: 520,\n });\n };\n\n return (\n \n {service.gallery && service.gallery.length > 0 && (\n \n )}\n {/* service title / class type */}\n
\n
{title}
\n
\n {classType.replace(/_/g, ' ')}\n
\n
\n
\n );\n};\n\nconst ExperienceCard = ({\n experience,\n self,\n}: {\n experience: WorkExperience;\n self: boolean;\n}) => {\n const {\n jobTitle,\n companyName: company,\n dateFrom,\n dateTo,\n description,\n } = experience;\n\n const [loading, setLoading] = useState(false);\n\n const dispatch = useDispatch();\n\n const handleDeleteExperience = async (id: string) => {\n setLoading(true);\n try {\n await deleteWorkExperience(id);\n\n dispatch(deleteUserExperience(id));\n\n showSuccess('Successfully deleted work experience');\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleEdit = () => {\n openDialog({\n title: 'Edit Experience',\n content: (\n \n ),\n });\n };\n\n return (\n <>\n
\n {/* summary */}\n
\n
\n
{jobTitle}
\n\n {self && (\n
\n \n\n {loading ? (\n \n ) : (\n handleDeleteExperience(experience.id)}\n />\n )}\n
\n )}\n
\n\n
{company}
\n\n
\n {moment(dateFrom).format('Y')}-{moment(dateTo).format('Y')}\n
\n
\n\n {/* description */}\n {description && (\n
{description}
\n )}\n
\n \n );\n};\n\ninterface HostProfileProps {\n user: TellyUser;\n workExperience: WorkExperience[];\n service: Service[];\n socialAccounts: SocialAccount[];\n self: boolean;\n}\n\nconst ProfileMenu = ({ user }: { user: TellyUser }) => {\n const currentUserId = useSelector(selectUserId);\n const { openDialog, closeDialog } = useDialog();\n const navigate = useNavigate();\n\n const copyLink = async () => {\n try {\n await navigator.clipboard.writeText(generateProfileLink(user.id));\n\n showSuccess('Successfully copied link');\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const addToContacts = async () => {\n if (!currentUserId) {\n openDialog({\n title: 'Login',\n content: 'You must be logged in to send a message',\n actions: <>\n closeDialog()} />\n {\n closeDialog();\n navigate(`/login?redirectTo=/t/${user.username ?? user.id}`);\n }} />\n \n });\n\n return;\n }\n\n try {\n await addContact(user.id);\n\n showSuccess('Successfully added to contacts');\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n return (\n <>\n
\n \n Copy Profile Link\n
\n {currentUserId !== user.id && (\n \n Add to Contacts\n \n )}\n \n \n );\n};\n\nexport const HostProfile = ({\n user,\n workExperience,\n service,\n socialAccounts,\n self,\n}: HostProfileProps) => {\n const currentUser = useSelector(selectUser);\n const [activeService, setActiveService] = useState(0);\n const navigate = useNavigate();\n const { openDialog, closeDialog } = useDialog();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Profile',\n },\n ]);\n }, []);\n\n const handleBack = () => {\n /// if at the start\n if (activeService === 0) {\n const lastIndex = (user?.service?.length ?? 0) - 1;\n setActiveService(lastIndex === -1 ? 0 : lastIndex);\n } else {\n setActiveService((prev) => prev - 1);\n }\n };\n\n const handleForward = () => {\n const lastIndex = (user?.service?.length ?? 0) - 1;\n /// if on the last index, return to 0\n if (activeService === (lastIndex === -1 ? 0 : lastIndex)) {\n setActiveService(0);\n } else {\n setActiveService((prev) => prev + 1);\n }\n };\n\n const showAddExperience = () => {\n openDialog({\n title: 'Add Experience',\n content: ,\n });\n };\n\n const handleEditSocialMedia = () => {\n openDialog({\n dismissable: false,\n title: 'Edit Social Media',\n content: ,\n });\n };\n\n const handleSendMessage = async () => {\n if (!currentUser) {\n openDialog({\n title: 'Login',\n content: 'You must be logged in to send a message',\n actions: <>\n closeDialog()} />\n {\n closeDialog();\n navigate(`/login?redirectTo=/t/${user.username ?? user.id}`);\n }} />\n \n });\n\n return;\n }\n\n try {\n const channel = await getOrCreateChannel({ otherUserId: user.id });\n\n if (!channel) {\n throw Error('Failed to retrieve channel information');\n }\n\n navigate(`/messages/${channel.id}`);\n } catch (e) {\n showError('Failed to send message');\n }\n };\n\n if (!user) return <>User not Found;\n\n const { firstname, lastname, profession, about, cover_photo } = user;\n\n return (\n <>\n \n Profile - {APP_NAME}\n \n\n
\n
\n
\n
User Profile
\n\n
\n {cover_photo && (\n \n )}\n
\n
\n\n
\n {/* Profile section */}\n
\n {/* avatar */}\n
\n \n\n {self && (\n navigate(`/settings/edit-profile`)}\n />\n )}\n
\n\n {/* name */}\n
\n
{`${firstname} ${lastname}`}
\n\n
\n {profession}\n
\n
\n\n
\n {/* about */}\n
About
\n\n
{about}
\n
\n\n {/* send message / more */}\n
\n {!self ? (\n
\n \n\n ProfileMenu({ user: user })} />\n
\n ) : (\n
\n navigate(`/services/create`)}\n />\n\n navigate(`/settings/edit-profile`)}\n />\n\n ProfileMenu({ user: user })} />\n
\n )}\n
\n
\n\n {/* Services section */}\n
\n {/* services title */}\n
\n
Services
\n
\n {/* if user is current user, load user services else load the other user's services */}\n \n self\n ? navigate(`/services`)\n : navigate(`/profile/${user.id}/services`)\n }\n label=\"View All\"\n />\n\n {self && (\n navigate(`/services/create`)}\n />\n )}\n
\n
\n\n {/* services slideshow */}\n {service && service.length > 0 ? (\n \n ) : (\n \n )}\n\n
\n {Array.from(\n { length: user.service?.length ?? 0 },\n (_, index) => (\n setActiveService(index)}\n className={`h-2 w-2 ${activeService === index ? 'bg-black' : 'bg-neutral-400'} cursor-pointer rounded-full`}\n />\n ),\n )}\n
\n
\n\n {/* Experience section */}\n
\n {/* experience title */}\n
\n
Experience
\n\n {self && (\n \n )}\n
\n\n {workExperience && workExperience.length > 0 ? (\n workExperience.map((exp, index) => (\n \n ))\n ) : (\n \n )}\n
\n\n {/* social media section */}\n
\n {/* services title */}\n
\n
\n Social Media Links\n
\n\n {self && (\n \n )}\n
\n\n {/* summary */}\n
\n {socialAccounts.length === 0 ? (\n \n ) : (\n socialAccounts.map((socialAccount, index) => {\n /// get icon\n const Component = socialMediaIcons().find(\n ({ key }) => key === socialAccount.socialMedia,\n )?.component as React.FC;\n\n return (\n <>\n window.open(socialAccount.url)}\n />\n \n );\n })\n )}\n
\n
\n
\n
\n
\n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useParams } from 'react-router-dom';\nimport { EmptyUI } from '../components/EmptyUI';\nimport {\n GuestPublicProfile,\n SkeletonGuestPublicProfile,\n} from '../components/GuestPublicProfile';\nimport { HostProfile } from '../components/HostProfile';\nimport { profile } from '../services/profile';\nimport { selectAuth } from '../store';\nimport { TellyUser } from '../types/User';\n\nexport const PublicProfile: React.FC = () => {\n const { userId } = useParams();\n const { user: currentUser } = useSelector(selectAuth);\n const [self, setSelf] = useState(false);\n const [loading, setLoading] = useState(false);\n const [user, setUser] = useState(null);\n\n useEffect(() => {\n /// the there is no userId or the currentUser\n /// id is the same as the userId set user it to currentUser\n if (!userId || currentUser?.id === userId) {\n setUser(currentUser);\n setSelf(true);\n return;\n }\n\n const fetchUser = async () => {\n setLoading(true);\n\n try {\n const user = await profile(userId!);\n\n if (user) {\n setUser(user);\n }\n\n setSelf(false);\n } catch (e) {\n console.error(e);\n } finally {\n setLoading(false);\n }\n };\n\n fetchUser();\n }, [userId]);\n\n if (loading) return ;\n\n if (!user)\n return (\n <>\n
\n
\n \n
\n
\n \n );\n\n return user.membership === 'GUEST' ? (\n \n ) : (\n \n );\n};\n","import { useRef, useState } from 'react';\n\ninterface PriceFormFieldProps {\n name: string;\n value: number;\n placeholder: string;\n onChange: (value: number) => void;\n}\n\nexport const PriceFormField: React.FC = ({\n name,\n onChange,\n placeholder,\n value,\n}: PriceFormFieldProps) => {\n const [displayValue, setDisplayValue] = useState(formatValue(value.toString()));\n const inputRef = useRef(null);\n\n // Format for display\n function formatValue(val: string) {\n const num = parseFloat(val);\n if (isNaN(num)) return '';\n return num.toLocaleString('en-US', {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n });\n }\n\n // Handle the input change\n const handleChange = (e: React.ChangeEvent) => {\n const inputValue = e.target.value;\n\n // Remove any non-numeric characters except decimal\n const cleanValue = inputValue.replace(/[^\\d.]/g, '');\n\n // Validate decimal format\n if (/^\\d*\\.?\\d{0,2}$/.test(cleanValue)) {\n setDisplayValue(cleanValue);\n const numValue = parseFloat(cleanValue) || 0;\n onChange(numValue);\n }\n };\n\n const handleBlur = () => {\n const numValue = parseFloat(displayValue) || 0;\n setDisplayValue(formatValue(numValue.toString()));\n };\n\n const handleFocus = () => {\n const numValue = parseFloat(displayValue.replace(/,/g, '')) || 0;\n setDisplayValue(numValue.toString());\n };\n\n return (\n
\n $\n \n
\n );\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useForm } from 'react-hook-form';\nimport * as yup from 'yup';\nimport { approveOrRejectAppointment } from '../../services';\nimport { showError } from '../../utils';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { TextAreaFormField } from '../FormFields/TextAreaFormField';\n\ninterface RejectAppointmentFormProps {\n /// id of the participant/id of the appointment for approval\n participantId: string;\n closeDialog: () => void;\n successCallback?: () => void;\n}\n\nconst schema = yup.object().shape({\n reason: yup.string().required('Reason is required'),\n});\n\ntype FormValues = {\n reason: string;\n};\n\nexport const RejectAppointmentForm: React.FC = ({\n participantId,\n closeDialog,\n successCallback,\n}: RejectAppointmentFormProps) => {\n const {\n register,\n handleSubmit,\n formState: { errors },\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const onSubmit = async (data: FormValues) => {\n try {\n await approveOrRejectAppointment({\n participantId,\n approveOrReject: 'REJECT',\n reasonForCancelOrReject: data.reason,\n });\n\n successCallback && successCallback();\n } catch (e) {\n showError((e as Error).message);\n successCallback && successCallback();\n }\n };\n\n return (\n <>\n
\n
\n Please enter your reason for rejecting the request.\n
\n\n
\n
Reason
\n\n \n
\n
\n\n
\n \n\n \n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport { Avatar } from '../components/Avatar';\nimport { Banner } from '../components/Banner';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { OutlinedButton } from '../components/Buttons/OutlinedButton';\nimport { DataLoader } from '../components/DataLoader';\nimport { useDialog } from '../components/DialogContext';\nimport { PriceFormField } from '../components/FormFields/PriceFormField';\nimport { CancelAppointmentForm } from '../components/Forms/CancelAppointmentForm';\nimport { RejectAppointmentForm } from '../components/Forms/RejectAppointmentForm';\nimport { WarningIcon } from '../components/icons';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n approveOrRejectAppointment,\n getAppointmentForApproval,\n} from '../services/appointments';\nimport { getOrCreateChannel } from '../services/messages';\nimport {\n selectHostMembership,\n selectHostOrTrialRole,\n selectHostRole,\n selectRemainingAppointmentAllowed,\n} from '../store';\nimport { AppointmentForApproval } from '../types';\nimport {\n calculateDuration,\n formatCurrency,\n getInitials,\n getTimezoneAbbreviation,\n} from '../utils';\nimport { showError, showSuccess } from '../utils/showToast';\n\nexport const RequestDetailsPage: React.FC = () => {\n const { id } = useParams();\n const navigate = useNavigate();\n const [price, setPrice] = useState(0);\n const [submitting, setSubmitting] = useState(false);\n const [error, setError] = useState(null);\n const [success, setSuccess] = useState();\n const { openDialog, closeDialog } = useDialog();\n const hostOrTrial = useSelector(selectHostOrTrialRole);\n const host = useSelector(selectHostRole);\n const remainingAppointment = useSelector(selectRemainingAppointmentAllowed);\n const { setBreadcrumbs } = useBreadcrumbs();\n const hostMembership = useSelector(selectHostMembership);\n\n const [refresh, setRefresh] = useState(0);\n\n console.log(`price: ${price}`);\n\n const handleMessageTap = async (userId: string) => {\n /// generate channel\n const channel = await getOrCreateChannel({ otherUserId: userId });\n\n console.dir(channel);\n\n if (channel !== null) {\n /// TODO: generate chat id\n navigate(`/messages/${channel.id}`);\n\n return;\n }\n\n showError('Channel not found');\n };\n\n /// TODO: handle reject\n const handleReject = async (participantId: string) => {\n openDialog({\n content: (\n {\n closeDialog();\n showSuccess('Successfully rejected request');\n setRefresh((prev) => prev + 1);\n navigate(`/requests`);\n }}\n />\n ),\n });\n };\n\n const approveAppointment = async () => {\n if (!id) return;\n\n closeDialog();\n\n try {\n /// TODO: ask price\n await approveOrRejectAppointment({\n participantId: id,\n approveOrReject: 'APPROVE',\n price: price * 100, // convert price to cents\n });\n\n setSubmitting(false);\n setSuccess(true);\n showSuccess('Successfully approved appointment');\n navigate(`/requests`);\n } catch (e) {\n setSuccess(false);\n setError((e as Error).message);\n showError((e as Error).message);\n setRefresh((prev) => prev + 1);\n navigate(`/requests`);\n }\n };\n\n const handleApprovedTap = async () => {\n openDialog({\n title: 'Approve Request',\n content: `Accept this appointment and charge $${formatCurrency(price)} to the guest?`,\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n const handlePriceChange = (value: number) => {\n setPrice(value);\n };\n\n const handleCancel = async (appointmentSessionId: string) => {\n openDialog({\n title: 'Cancel Appointment',\n content: (\n <>\n {\n setRefresh((prev) => prev + 1)\n navigate(`/requests`);\n closeDialog();\n }}\n />\n \n ),\n width: 384,\n });\n };\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Requests',\n path: 'requests',\n },\n {\n name: 'Details',\n },\n ]);\n }, []);\n\n const fetchAppointmentForApproval = useCallback(async () => {\n if (!id) {\n throw 'No id found';\n }\n\n const appointment = await getAppointmentForApproval({ participantId: id });\n\n setPrice(appointment.appointmentSession.price / 100);\n\n return appointment;\n }, [id, refresh]);\n\n if (hostOrTrial) {\n return (\n {\n const localDate = appointment.appointmentSession.startTime;\n const localDateEnd = appointment.appointmentSession.endTime;\n\n const imageUrl = appointment?.appointmentSession.service.gallery[0];\n\n const duration = calculateDuration({\n startTime: localDate,\n endTime: localDateEnd,\n });\n\n return (\n <>\n
\n {!hostMembership && remainingAppointment === 0 && (\n
\n \n
\n )}\n\n
\n {/* Service Gallery */}\n
\n {imageUrl && (\n \n )}\n
\n
\n
\n \n navigate(`/profile/${appointment.userId}`)\n }\n />\n
\n
\n\n
\n
\n \n {hostOrTrial ? 'Customer' : 'Host'} Details\n \n
\n\n {/* Customer name */}\n
\n Name\n\n \n {hostOrTrial\n ? `${appointment.user.firstname} ${appointment.user.lastname}`\n : `${appointment.appointmentSession.host?.firstname} ${appointment.appointmentSession.host?.lastname}`}\n \n
\n\n {/* Customer email */}\n
\n \n Email Address\n \n\n \n {hostOrTrial\n ? appointment.user.email\n : appointment.appointmentSession.host?.email}\n \n
\n\n
\n Appointment Details\n
\n\n {/* Service title */}\n
\n Title\n\n \n {appointment.appointmentSession.service.title}\n \n
\n\n {/* Service duration */}\n
\n \n Duration\n \n\n {duration}\n
\n\n {/* Service sessions */}\n
\n \n Sessions\n \n\n \n {appointment.appointmentSession.service.sessions}\n \n
\n\n {/* Appointment date */}\n
\n Date\n\n \n {moment(localDate).format('dddd, MMMM DD, YYYY')}\n \n
\n\n {/* Appointment time */}\n
\n Time\n\n \n {moment(localDate).format('hh:mm A')} -{' '}\n {moment(localDateEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n
\n\n {/* Rate Fee */}\n
\n Rate Fee\n\n {/* only allow host and non-confirmed appointment to be changed */}\n \n {host &&\n appointment.appointmentSession.status !==\n 'CONFIRMED' ? (\n \n ) : (\n `$ ${formatCurrency(appointment.appointmentSession.price / 100)}`\n )}\n \n
\n\n
\n\n {appointment.paymentStatus === 'PENDING' ? (\n
\n {!success && (\n handleReject(appointment.id)}\n bgClass=\"bg-error-lightBg\"\n textColorClass=\"text-error-darkText\"\n />\n )}\n\n {\n const userId = appointment.userId;\n\n if (userId) {\n handleMessageTap(userId);\n }\n }}\n />\n\n handleApprovedTap()}\n loading={submitting}\n disabled={submitting || !!success}\n />\n
\n ) : (\n
\n {appointment.appointmentSession.status}\n
\n )}\n
\n\n {error && (\n
{error}
\n )}\n
\n
\n \n );\n }}\n renderLoading={() => }\n renderError={(error) => (\n <>\n
\n
\n \n\n
\n Something went wrong\n
\n\n
{error}
\n
\n
\n \n )}\n />\n );\n }\n\n return (\n {\n const localDate = appointment.appointmentSession.startTime;\n const localDateEnd = appointment.appointmentSession.endTime;\n\n const imageUrl = appointment?.appointmentSession.service.gallery[0];\n\n const duration = calculateDuration({\n startTime: localDate,\n endTime: localDateEnd,\n });\n\n return (\n <>\n
\n {remainingAppointment === 0 && (\n
\n \n
\n )}\n\n
\n {/* Service Gallery */}\n
\n {imageUrl && (\n \n )}\n
\n
\n
\n \n
\n
\n\n
\n
\n Host Details\n
\n\n {/* Customer name */}\n
\n Name\n\n \n {appointment.appointmentSession.host?.firstname}{' '}\n {appointment.appointmentSession.host?.lastname}\n \n
\n\n {/* Customer email */}\n
\n \n Email Address\n \n\n \n {appointment.appointmentSession.host?.email}\n \n
\n\n
\n Appointment Details\n
\n\n {/* Service title */}\n
\n Title\n\n \n {appointment.appointmentSession.service.title}\n \n
\n\n {/* Service duration */}\n
\n \n Duration\n \n\n {duration}\n
\n\n {/* Service sessions */}\n
\n \n Sessions\n \n\n \n {appointment.appointmentSession.service.sessions}\n \n
\n\n {/* Appointment date */}\n
\n Date\n\n \n {moment(localDate).format('dddd, MMMM DD, YYYY')}\n \n
\n\n {/* Appointment time */}\n
\n Time\n\n \n {moment(localDate).format('hh:mm A')} -{' '}\n {moment(localDateEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n
\n\n {/* Rate Fee */}\n
\n Rate Fee\n\n {/* only allow host and non-confirmed appointment to be changed */}\n \n $\n {formatCurrency(\n appointment.appointmentSession.price / 100,\n )}\n \n
\n\n
\n\n {appointment.paymentStatus === 'PENDING' ? (\n
\n {\n const userId =\n appointment?.appointmentSession.host?.id;\n\n if (userId) {\n handleMessageTap(userId);\n }\n }}\n />\n\n handleCancel(appointment.appointmentSessionId)}\n label=\"Cancel\"\n size=\"lg\"\n negative\n />\n
\n ) : (\n
\n {appointment.appointmentSession.status}\n
\n )}\n
\n
\n\n {error &&
{error}
}\n
\n \n );\n }}\n renderLoading={() => }\n renderError={(error) => (\n <>\n
\n
\n \n\n
\n Something went wrong\n
\n\n
{error}
\n
\n
\n \n )}\n />\n );\n};\n\nconst SkeletonRequestDetails = () => {\n return (\n
\n {/* Main Container */}\n
\n {/* Service Gallery Placeholder */}\n
\n\n
\n {/* Avatar Placeholder */}\n
\n
\n\n
\n {/* Title Placeholder */}\n
\n\n {/* Customer name placeholder */}\n
\n
\n
\n
\n\n {/* Customer email placeholder */}\n
\n
\n
\n
\n\n {/* Appointment Details Placeholder */}\n
\n\n {/* Service title placeholder */}\n
\n
\n
\n
\n\n {/* Service duration placeholder */}\n
\n
\n
\n
\n\n {/* Service sessions placeholder */}\n
\n
\n
\n
\n\n {/* Appointment date placeholder */}\n
\n
\n
\n
\n\n {/* Appointment time placeholder */}\n
\n
\n
\n
\n\n {/* Rate Fee placeholder */}\n
\n
\n
\n
\n\n {/* Button placeholders */}\n
\n
\n
\n
\n
\n
\n
\n
\n );\n};\n","import { useCallback, useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport { RequestCard } from '../components/RequestCard';\nimport { SkeletonRequestCard } from '../components/skeletons';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport { AppDispatch, getForApprovalAppointmentsAsync } from '../store';\n\nexport const RequestsPage: React.FC = () => {\n const { setBreadcrumbs } = useBreadcrumbs();\n\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Dashboard', path: 'dashboard' },\n { name: 'Request Lists' },\n ]);\n }, []);\n\n return (\n <>\n \n Requests - {APP_NAME}\n \n\n
\n
\n
Requests
\n
\n\n \n
\n \n );\n};\n\nexport const RequestsGrid: React.FC = () => {\n const dispatch = useDispatch();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n const location = useLocation();\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Appointments',\n path: 'appointment',\n },\n {\n name: 'Requests',\n },\n ]);\n }, [location.pathname]);\n\n // Fetch appointments for approval\n const fetchForApprovalAppointments = useCallback(async () => {\n const result = await dispatch(getForApprovalAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch]);\n\n return (\n <>\n {/* DataLoader for Appointments for Approval */}\n (\n
\n {appointmentsForApproval.map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n />\n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const CreditCardIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const DashboardIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n \n \n);\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const SettingsIcon: React.FC = (props: SvgIconProps) => (\n \n \n \n \n);\n","import { forwardRef } from 'react';\nimport { NavLink } from 'react-router-dom';\nimport { CalendarIcon } from '../icons';\nimport { CreditCardIcon } from '../icons/CreditCard';\nimport { DashboardIcon } from '../icons/Dashboard';\nimport { SettingsIcon } from '../icons/Settings';\nimport { LogoWithTitle } from '../LogoWithTitle';\n\ninterface DrawerProps {\n isVisible: boolean;\n onMenuSelect: VoidFunction;\n}\n\nconst getDrawerIcon = (menu: string) => {\n switch (menu) {\n case 'Dashboard':\n return ;\n case 'Transaction':\n return ;\n case 'Appointment':\n return ;\n case 'Settings':\n return ;\n default:\n return
;\n }\n};\n\nexport const Drawer = forwardRef(\n ({ isVisible, onMenuSelect }: DrawerProps, ref) => {\n return (\n \n
\n \n
\n
\n {['Dashboard', 'Transaction', 'Appointment', 'Settings'].map(\n (menu, index) => {\n return (\n \n `${isActive\n ? 'border-l-4 border-black text-black'\n : 'border-l-4 border-transparent text-neutral-400'\n }`\n }\n onClick={onMenuSelect}\n >\n {' '}\n
\n
\n {getDrawerIcon(menu)}\n {menu}\n
\n
\n \n );\n },\n )}\n
\n
\n );\n },\n);\n","import { Link } from 'react-router-dom';\nimport { useBreadcrumbs } from '../contexts';\n\nexport const Breadcrumbs: React.FC = () => {\n const { breadcrumbs } = useBreadcrumbs();\n\n return (\n \n );\n};\n","import { SvgIconProps } from './SvgIconProps';\n\nexport const EmailIcon: React.FC = (props: SvgIconProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport {\n ANNUAL_SUBSCRIPTION_FEE,\n MONTHLY_SUBSCRIPTION_FEE,\n} from '../constants/subscriptionFees';\nimport { upgradeToHost } from '../services';\nimport { AppDispatch, switchRoleAsync } from '../store';\nimport { SubscriptionInterval } from '../types/SubscriptionInterval';\nimport { showError } from '../utils';\nimport { FilledButton } from './Buttons';\nimport { useDialog } from './DialogContext';\nimport { SuccessIcon } from './icons';\nimport { CheckListIcon } from './icons/CheckList';\nimport Loader from './Loader/Loader';\n\nexport const UpgradeToHost: React.FC = () => {\n const [subscriptionInterval, setSubscriptionInterval] =\n useState('MONTHLY');\n const [loading, setLoading] = useState(false);\n const { openDialog, closeDialog } = useDialog();\n\n const benefits: string[] = [\n 'Unlimited Services',\n 'Unlimited Appointments',\n 'Unlimited Participants',\n 'Unlimited Video Call Duration',\n 'All Guest Benefits',\n ];\n\n const dispatch = useDispatch();\n\n const handleReload = () => {\n dispatch(switchRoleAsync('HOST'));\n\n /// reload after 2 seconds to allow the\n setTimeout(() => {\n window.location.reload();\n }, 2000);\n };\n\n const openStripeCheckout = (checkoutUrl: string) => {\n closeDialog();\n\n if (!checkoutUrl) {\n showError('Failed to get checkout URL. Please try again');\n } else {\n const stripeWindow = window.open(checkoutUrl, '_blank');\n\n if (!stripeWindow) {\n alert('Popup was blocked! Please enable popups for this site.');\n }\n\n openDialog({\n title: 'Refresh the page',\n content:\n 'Please refresh the page after completing the checkout process to update your membership information.',\n actions: (\n <>\n \n \n ),\n });\n }\n };\n\n const handleUpgrade = async () => {\n setLoading(true);\n try {\n const { checkoutUrl } = await upgradeToHost(subscriptionInterval);\n\n if (checkoutUrl) {\n closeDialog();\n\n openDialog({\n icon: (\n \n ),\n title: 'Complete Account Upgrade',\n centerTitle: true,\n content:\n 'Please tap the checkout button to complete your account upgrade. Refresh the page after completing the checkout process.',\n actions: (\n <>\n openStripeCheckout(checkoutUrl)}\n />\n \n ),\n });\n } else {\n throw Error('Something went wrong. Please try again');\n }\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n /// poll for upgrade host\n\n return (\n <>\n
\n
\n Get unlimited access to all the features.\n
\n\n
\n setSubscriptionInterval('MONTHLY')}\n >\n Monthly\n
\n setSubscriptionInterval('ANNUALLY')}\n >\n Yearly\n
\n
\n\n
\n
\n
\n Become a Host\n
\n\n
\n \n {subscriptionInterval === 'MONTHLY'\n ? `$${MONTHLY_SUBSCRIPTION_FEE}`\n : `$${ANNUAL_SUBSCRIPTION_FEE}`}\n \n \n {subscriptionInterval === 'MONTHLY' ? ' / month' : ' / year'}\n \n
\n\n
Premium Benefits
\n\n
\n {benefits.map((benefit, index) => (\n \n {benefit}\n
\n ))}\n
\n
\n\n handleUpgrade()}\n >\n {loading ? : 'Upgrade Now'}\n
\n \n\n
\n You will be charged ${MONTHLY_SUBSCRIPTION_FEE} per month or $\n {ANNUAL_SUBSCRIPTION_FEE} per year through your Stripe Account. Cancel\n anytime.\n
\n \n \n );\n};\n","import { MenuHamburger } from '@iconsans/react/bold';\nimport { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { NavLink, useNavigate } from 'react-router-dom';\nimport { Event } from 'stream-chat';\nimport { stripeLogin } from '../../services/stripe';\nimport {\n AppDispatch,\n getStripeAccountAsync,\n selectGuestMembership,\n selectGuestOrTrialRole,\n selectHostOrTrialRole,\n selectHostRole,\n selectMembership,\n selectRole,\n selectStripeAccount,\n selectTrialMembership,\n} from '../../store';\nimport { TellyUser } from '../../types/User';\nimport { chatClient, getInitials, openInNewTab, showError } from '../../utils';\nimport { Avatar } from '../Avatar';\nimport { Breadcrumbs } from '../Breadcrumbs';\nimport { DropdownButton } from '../Buttons/DropdownButton';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { IconButton } from '../Buttons/IconButton';\nimport { NotificationButton } from '../Buttons/NotificationButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { useDialog } from '../DialogContext';\nimport { EmailIcon } from '../icons/Email';\nimport { UpgradeToHost } from '../UpgradeToHost';\nimport { UpgradeToTrial } from '../UpgradeToTrial';\nimport { logout } from '../../services/auth';\n\ninterface NavBarProps {\n onToggleDrawer: () => void;\n user?: TellyUser | null;\n isMobile: boolean;\n showDrawer: boolean;\n}\n\nexport const NavBar: React.FC = ({\n onToggleDrawer,\n user,\n isMobile,\n showDrawer,\n}: NavBarProps) => {\n const navigate = useNavigate();\n\n const [loading, setLoading] = useState(false);\n\n const role = useSelector(selectRole);\n\n const [unread, setUnread] = useState(0);\n\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const guestOrTrialRole = useSelector(selectGuestOrTrialRole);\n\n const guestMembership = useSelector(selectGuestMembership);\n\n const trialMembership = useSelector(selectTrialMembership);\n\n const hostRole = useSelector(selectHostRole);\n\n const stripeAccount = useSelector(selectStripeAccount);\n\n const dispatch = useDispatch();\n\n useEffect(() => {\n dispatch(getStripeAccountAsync());\n }, [dispatch]);\n\n const handleTapMessageButton = () => {\n navigate('/messages');\n };\n\n const handleTransferBalanceClick = async () => {\n setLoading(true);\n\n try {\n const response = await stripeLogin();\n\n const { url } = response;\n\n openInNewTab(url);\n } catch (e) {\n showError((e as Error).message);\n }\n\n setLoading(false);\n };\n\n const handleCreateServiceTap = async () => navigate('/services/create');\n\n const queryChannels = async () => {\n const filters = {\n members: { $in: [chatClient?.userID ?? ''] },\n type: 'messaging',\n };\n\n const channels = await chatClient.queryChannels(filters);\n\n const unreadCount = channels.reduce(\n (acc, channel) => acc + channel.state.unreadCount,\n 0,\n );\n\n setUnread(unreadCount);\n };\n\n const { openDialog, closeDialog } = useDialog();\n\n const handleTryHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const handleUpgradeToHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const handleSetupStripe = () => navigate(`/settings/stripe-account`);\n\n useEffect(() => {\n const handleUnreadMessages = (event: Event) => {\n if (\n event.type === 'message.new' ||\n event.type === 'notification.message_new' ||\n event.type === 'notification.mark_read' ||\n event.type === 'message.read'\n ) {\n queryChannels();\n }\n\n if (event.total_unread_count !== undefined) {\n // Update your state or perform any action\n console.log(`Total unread count: ${event.total_unread_count}`);\n }\n\n if (event.unread_channels !== undefined) {\n // Log unread channels or update state accordingly\n console.log(`Unread channels:`, event.unread_channels);\n }\n };\n\n // Listen for unread message events\n chatClient.on(handleUnreadMessages);\n\n // Cleanup the listener on component unmount\n return () => {\n chatClient.off(handleUnreadMessages);\n };\n }, [chatClient]); // Dependency array includes client to ensure it's up to date\n\n return (\n \n
\n \n\n \n \n \n
\n
\n {/** Add space */}\n
\n {\n
Role: {role}
\n }\n\n {/* in guest role and guest membership offer try host */}\n {!hostOrTrialRole && guestMembership && (\n \n )}\n\n {guestOrTrialRole && trialMembership && (\n \n )}\n\n
\n\n {/* show transfer balance only if the user is in host mode */}\n {hostRole &&\n (stripeAccount ? (\n \n ) : (\n \n ))}\n\n {hostOrTrialRole && (\n \n )}\n
\n
\n\n
\n {/** Icon */}\n }\n onClick={handleTapMessageButton}\n ariaLabel=\"message\"\n />\n\n {/** Badge */}\n {unread > 0 && (\n \n {unread >= 10 ? '9+' : unread}\n \n )}\n
\n\n \n\n
\n {user && (\n \n }\n content={}\n />\n )}\n
\n
\n \n );\n};\n\nconst AvatarMenu: React.FC = () => {\n const membership = useSelector(selectMembership);\n const hostRole = useSelector(selectHostRole);\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const { openDialog, closeDialog } = useDialog();\n\n const navigate = useNavigate();\n\n const handleTryHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const handleUpgradeToHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const handleLogout = async () => {\n await logout();\n\n navigate('/login');\n };\n\n const handleTransferBalanceClick = async () => {\n try {\n const response = await stripeLogin();\n\n const { url } = response;\n\n openInNewTab(url);\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const handleConfirmLogout = () => {\n openDialog({\n title: 'Confirm Logout',\n centerTitle: false,\n content: 'Are you sure you want to log out?',\n actions: (\n <>\n closeDialog()}\n />\n\n {\n handleLogout();\n closeDialog();\n }}\n label=\"Confirm\"\n />\n \n ),\n });\n };\n\n const stripeAccount = useSelector(selectStripeAccount);\n\n return (\n <>\n
\n \n View Profile\n \n\n {membership === 'GUEST' ? (\n \n ) : membership === 'TRIAL' ? (\n \n ) : (\n <>\n \n )}\n\n {\n (membership === 'TRIAL' || membership === 'HOST') && (\n Services\n )\n }\n\n {hostRole &&\n (stripeAccount ? (\n \n Transfer Balance\n \n ) : (\n \n Setup Stripe\n \n ))}\n\n {hostOrTrialRole && (\n \n Create Service\n \n )}\n\n \n Messages\n \n\n \n Notifications\n \n\n {/* divider */}\n
\n\n \n Logout\n \n
\n \n );\n};\n","import { useDispatch } from 'react-redux';\nimport { FilledButton, OutlinedButton } from '../components/Buttons';\nimport { AppDispatch, logoutAsync, reactivateAsync } from '../store';\n\nexport const UserDisabledPage: React.FC = () => {\n const dispatch = useDispatch();\n\n const handleLogout = async () => {\n console.log('handle logout');\n\n dispatch(logoutAsync());\n };\n\n const handleReactivate = async () => dispatch(reactivateAsync());\n\n return (\n <>\n
\n
\n
User is Deactivated
\n\n
\n The account you are trying to access has been deactivated and is\n temporarily hidden. Reactivate your account to continue or login to\n a different account instead.\n
\n\n
\n \n\n \n
\n
\n
\n \n );\n};\n","import { useEffect, useRef, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Outlet } from 'react-router-dom';\nimport { Drawer } from '../components/Layout/Drawer';\nimport { NavBar } from '../components/Layout/NavBar';\nimport { AppState } from '../store';\nimport { UserDisabledPage } from './UserDisabled';\n\nexport const RootScreen: React.FC = () => {\n const { user } = useSelector((state: AppState) => state.auth);\n\n const [showDrawer, setShowDrawer] = useState(\n window.innerWidth >= 1366,\n );\n const [isMobile, setIsMobile] = useState(window.innerWidth < 1366);\n\n const toggleDrawer = () => setShowDrawer(!showDrawer);\n\n const drawerRef = useRef(null);\n /// if on mobile and the user selects another page,\n /// hide the drawer\n const onMenuSelect = () => {\n isMobile ? setShowDrawer(false) : null;\n };\n // Detect clicks outside of the drawer to close it\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n drawerRef.current &&\n !drawerRef.current.contains(event.target as Node) &&\n isMobile &&\n showDrawer\n ) {\n setShowDrawer(false); // Hide drawer when clicked outside\n }\n };\n document.addEventListener('mousedown', handleClickOutside);\n // Cleanup event listener on component unmount\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [isMobile, showDrawer]);\n // Hide drawer on window resize based on window width\n useEffect(() => {\n const handleResize = () => {\n if (window.innerWidth < 1366) {\n setShowDrawer(false); // Hide the drawer on small screens\n setIsMobile(true);\n } else {\n setShowDrawer(true); // Show the drawer on larger screens\n setIsMobile(false);\n }\n };\n // Set initial state based on current window size\n handleResize();\n window.addEventListener('resize', handleResize);\n // Cleanup event listener on component unmount\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n if (user?.disabled) {\n return ;\n }\n\n return (\n
\n {\n user && \n }\n \n\n \n \n\n
\n \n
\n
\n
\n );\n};\n","import moment from 'moment';\nimport { Helmet } from 'react-helmet-async';\nimport { useSelector } from 'react-redux';\nimport { NavLink, Outlet, useLocation, useNavigate } from 'react-router-dom';\nimport { Avatar } from '../components/Avatar';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { MenuButton } from '../components/Buttons/MenuButton';\nimport { OutlinedButton } from '../components/Buttons/OutlinedButton';\nimport { useDialog } from '../components/DialogContext';\nimport { APP_NAME } from '../constants';\nimport { logout } from '../services/auth';\nimport { AppState } from '../store';\nimport { getInitials } from '../utils';\n\nconst menuItems: MenuItem[] = [\n {\n label: 'Switch Role',\n to: '/settings/switch-role',\n },\n {\n label: 'Stripe Account',\n to: '/settings/stripe-account',\n },\n {\n label: 'Edit Profile',\n to: '/settings/edit-profile',\n },\n {\n label: 'Change Password',\n to: '/settings/change-password',\n },\n {\n label: 'Contact List',\n to: '/settings/contact-list',\n },\n {\n label: 'Terms and Conditions',\n to: '/settings/terms-and-conditions',\n },\n {\n label: 'Privacy Policy',\n to: '/settings/privacy-policy',\n },\n {\n label: 'Contact Us',\n to: '/settings/contact-us',\n },\n {\n label: 'Deactivate',\n to: '/settings/deactivate',\n },\n {\n label: 'Cancel Subscription',\n to: '/settings/cancel-subscription',\n },\n {\n label: 'Logout',\n onClick: () => { },\n },\n];\n\nconst LogoutButton: React.FC = () => {\n const { openDialog, closeDialog } = useDialog();\n const navigate = useNavigate();\n\n const handleLogout = async () => {\n await logout();\n\n navigate('/login');\n }\n\n const handleConfirmLogout = () => {\n openDialog({\n title: 'Confirm Logout',\n centerTitle: false,\n content: 'Are you sure you want to log out?',\n actions: (\n <>\n closeDialog()}\n />\n\n {\n handleLogout();\n closeDialog();\n\n }}\n label=\"Confirm\"\n />\n \n ),\n });\n };\n\n return (\n \n Logout\n \n );\n};\n\nconst SettingsPage: React.FC = () => {\n const location = useLocation();\n const currentPath = location.pathname.split('/').pop(); // Get last segment of the path\n\n const user = useSelector((appState: AppState) => appState.auth.user);\n\n // Format the last segment into a human-readable string\n const formatSegment = (segment: string) => {\n return segment\n .split('-') // Split by hyphens\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) // Capitalize each word\n .join(' '); // Join back into a string\n };\n\n return (\n <>\n \n Settings - {APP_NAME}\n \n\n
\n
\n {/* Header */}\n
\n
\n {/* avatar */}\n
\n {user && (\n \n )}\n
\n\n {/* name / active menu */}\n
\n
\n {`${user?.firstname} ${user?.lastname}`}\n {`${user?.membership}`}\n {` / `}\n \n {currentPath && formatSegment(currentPath)}\n \n
\n\n {user?.subscription && (\n
\n {user?.hasCancelledSubscription ? 'Expires' : 'Renews'} on{' '}\n {moment(user?.subscription.expiry).format('MMMM D, Y')}\n
\n )}\n
\n
\n\n
\n \n
\n
\n\n
\n {/* Fixed side menu */}\n
\n {menuItems.map((setting, index) =>\n setting.label === 'Logout' ? (\n \n ) : (\n setting.to && (\n handleMenuClick(setting)}\n key={index}\n className={({ isActive }) =>\n `flex h-12 cursor-pointer items-center p-3.75 text-body2 hover:bg-neutral-100 ${isActive ? 'border-r-2 border-r-black text-black' : 'text-neutral-400'}`\n }\n >\n {setting.label}\n \n )\n ),\n )}\n
\n\n {/* contents */}\n
\n \n
\n
\n
\n
\n \n );\n};\n\nconst SettingsDropdownMenu = () => {\n return (\n
\n {menuItems.map((setting, index) =>\n setting.label === 'Logout' ? (\n \n ) : (\n setting.to && (\n handleMenuClick(setting)}\n key={index}\n className={({ isActive }) =>\n `flex h-12 w-full cursor-pointer items-center p-3.75 text-body2 hover:bg-neutral-100 ${isActive ? 'border-r-2 border-r-black text-black' : 'text-neutral-400'}`\n }\n >\n {setting.label}\n \n )\n ),\n )}\n
\n );\n};\n\ntype MenuItem = {\n label: string;\n to?: string;\n onClick?: VoidFunction;\n};\n\nexport default SettingsPage;\n","import ReactPixel from \"react-facebook-pixel\";\n\nconst pixelId = \"1179927090449687\";\n\nexport const initMetaPixel = () => {\n ReactPixel.init(pixelId);\n ReactPixel.pageView(); // Track page visits\n};\n\nexport const trackAppStoreClick = (store: \"ios\" | \"android\") => {\n console.log(`AppStoreClick: ${store}`);\n ReactPixel.trackCustom(\"AppStoreClick\", { platform: store });\n};\n\nexport const trackEvent = (event: string, data?: object) => {\n ReactPixel.track(event, data);\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useForm } from 'react-hook-form';\nimport PhoneInputWithCountrySelect, {\n isValidPhoneNumber,\n Value,\n} from 'react-phone-number-input';\nimport 'react-phone-number-input/style.css';\nimport { NavLink, useNavigate } from 'react-router-dom';\nimport * as yup from 'yup';\nimport eye from '../assets/eye.svg';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { useDialog } from '../components/DialogContext';\nimport { SuccessIcon } from '../components/icons';\nimport { LogoWithTitle } from '../components/LogoWithTitle';\nimport { PasswordValidationRule } from '../components/PasswordValidationRule';\nimport { ValidationMessage } from '../components/ValidationMessage';\nimport { APP_NAME } from '../constants';\nimport { signupUser } from '../services';\nimport { resetStatus } from '../store';\nimport { showError } from '../utils';\nimport { trackEvent } from '../services/metaPixel';\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Must be a valid email')\n .required('Email is required'),\n password: yup\n .string()\n .min(8, 'Password must be at least 8 characters long')\n .required('Password is required'),\n firstname: yup.string().required('First name is required'),\n lastname: yup.string().required('Last name is required'),\n confirmPassword: yup\n .string()\n .required('Please type your password again')\n .test('passwords-match', 'Passwords must match', function (value) {\n return this.parent.password === value;\n }),\n contactNumber: yup\n .string()\n .required('Contact number is required')\n .test('is-valid-phone-number', 'Must be a valid phone number', (value) => {\n return value ? isValidPhoneNumber(value) : false;\n }),\n});\n\ntype FormValues = {\n email: string;\n password: string;\n firstname: string;\n lastname: string;\n confirmPassword: string;\n contactNumber: string;\n};\n\nexport const SignupPage: React.FC = () => {\n const [referral, setReferral] = useState(null);\n\n // When the component mounts, wire up a callback for when Rewardful is ready.\n // If `window.Rewardful.referral` is present, it means this visitor was referred\n // and we should update state with the referral UUID so it's rendered in the form.\n useEffect(() => {\n window.rewardful('ready', () => {\n setReferral(window.Rewardful?.referral ?? null)\n })\n }, []);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n watch,\n setValue,\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const [accountType, setAccountType] = useState<'TRIAL' | 'GUEST'>('GUEST');\n const [showPassword, setShowPassword] = useState(false);\n const [loading, setLoading] = useState(false);\n const navigate = useNavigate();\n const { openDialog, closeDialog } = useDialog();\n\n const onSubmit = async (data: FormValues) => {\n const { email, password, firstname, lastname, contactNumber } = data;\n const contactNumberString = contactNumber || '';\n\n setLoading(true);\n\n try {\n await signupUser({\n accountType,\n email,\n password,\n firstname,\n lastname,\n contactNumber: contactNumberString,\n hasAgreedToTerms: true,\n });\n\n trackEvent('Signup', {\n email,\n accountType\n });\n\n openDialog({\n icon: ,\n title: 'Success',\n centerTitle: true,\n content: 'Successfully created a new account. Login now.',\n centerContent: true,\n actions: (\n <>\n {\n closeDialog();\n resetStatus();\n navigate('/login');\n }}\n label=\"Login\"\n />\n \n ),\n });\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n const togglePasswordVisibility = () => setShowPassword(!showPassword);\n\n ///\n const passwordValue = watch('password') || '';\n\n const isValidLength = passwordValue.length >= 8;\n const hasUppercase = /[A-Z]/.test(passwordValue);\n const hasLowercase = /[a-z]/.test(passwordValue);\n const hasSymbol = /[\\W_]/.test(passwordValue);\n const hasNumber = /[0-9]/.test(passwordValue);\n\n console.log(`referral ${referral}`);\n\n return (\n <>\n \n Signup - {APP_NAME}\n \n\n
\n
\n \n\n
\n \n Create your Account\n \n
\n\n \n
\n Account Type\n \n setAccountType(event.target.value as 'TRIAL' | 'GUEST')\n }\n >\n \n \n \n
\n\n
\n Email Address\n \n {errors.email && (\n {errors.email.message}\n )}\n
\n\n
\n First Name\n \n {errors.firstname && (\n \n {errors.firstname.message}\n \n )}\n
\n\n
\n Last Name\n \n {errors.lastname && (\n {errors.lastname.message}\n )}\n
\n\n
\n Contact Number\n\n \n setValue('contactNumber', value || '')\n }\n className={`w-full rounded-lg border p-3 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-info ${errors.contactNumber && 'border-error'}`}\n />\n {errors.contactNumber && (\n \n {errors.contactNumber.message}\n \n )}\n
\n\n
\n Password\n
\n \n
\n \n
\n
\n
\n\n {/* Password validation feedback */}\n
\n \n\n \n\n \n\n \n\n \n
\n\n
\n Repeat Password\n
\n \n
\n \n
\n
\n\n {errors.confirmPassword && (\n
\n {errors.confirmPassword.message}\n
\n )}\n
\n\n
\n \n
\n\n
\n By clicking Create Account, you agree to our{` `}\n \n Terms and Conditions\n \n , and{` `}\n \n Privacy Policy\n \n . You may receive email notifications from us.\n
\n \n\n {/** sign up link */}\n
\n \n Already have an account?\n \n\n \n Login\n \n
\n
\n
\n \n );\n};\n","import { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { stripeConnect } from '../services';\nimport {\n AppDispatch,\n getStripeAccountAsync,\n selectUser,\n StripeAccountDto,\n} from '../store';\nimport { showError } from '../utils';\nimport { DataLoader } from './DataLoader';\nimport { EditIcon, WarningIcon } from './icons';\nimport Loader from './Loader/Loader';\n\nconst SkeletonAccountCard: React.FC = () => {\n return (\n
\n {/* Left Section (Text placeholders) */}\n
\n {/* Business Name Placeholder */}\n
\n\n {/* Email Placeholder */}\n
\n
\n
\n );\n};\n\nexport const StripeAccountCard: React.FC = () => {\n const dispatch = useDispatch();\n const [loading, setLoading] = useState(false);\n const user = useSelector(selectUser);\n\n // Fetch upcoming appointments\n const fetchStripeAccount = useCallback(async () => {\n const result = await dispatch(getStripeAccountAsync()).unwrap();\n return result;\n }, [dispatch]);\n\n const changeStripeAccount = async () => {\n setLoading(true);\n\n try {\n const { url } = await stripeConnect();\n\n const stripeWindow = window.open(url, '_blank');\n\n if (!stripeWindow) {\n alert('Popup was blocked! Please enable popups for this site.');\n }\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n {\n const chargesEnabled = stripeAccount?.charges_enabled;\n const payoutsEnabled = stripeAccount?.payouts_enabled;\n\n return (\n <>\n
\n
\n
\n {/* stripe business name */}\n
\n {stripeAccount !== null && stripeAccount !== undefined\n ? (stripeAccount.business_profile?.name ?? user?.fullname)\n : 'Not Connected'}\n {(!chargesEnabled || !payoutsEnabled) && (\n \n )}\n
\n
\n
\n {/* stripe business email */}\n {stripeAccount?.email}\n
\n
\n\n {loading ? (\n \n ) : (\n \n )}\n
\n \n );\n }}\n renderEmpty={() => (\n <>\n
\n
\n
\n
Not Connected
\n
\n
\n \n Please connect a Stripe account first.\n \n
\n
\n\n \n
\n \n )}\n renderLoading={() => }\n />\n );\n};\n","import { formatCurrency } from '../utils';\n\ninterface TransactionSummaryCardProps {\n label: string;\n amount: number;\n textColorClass: string;\n type: 'VALUE' | 'COUNT';\n}\n\nexport const TransactionSummaryCard: React.FC = (\n props: TransactionSummaryCardProps,\n) => {\n const { label, amount, textColorClass, type } = props;\n\n return (\n <>\n
\n
{label}
\n\n
\n \n {type === 'COUNT' && label !== 'Total Revenue'\n ? amount\n : `\\$ ${formatCurrency(amount)}`}{' '}\n \n
\n
\n \n );\n};\n\n","interface TransactionTabProps {\n label: string;\n selected: boolean;\n onClick: VoidFunction;\n}\n\nexport const TransactionTab: React.FC = (\n props: TransactionTabProps,\n) => {\n const { label, selected, onClick } = props;\n\n return (\n \n {label}\n \n );\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Outlet, useLocation, useNavigate } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport { SkeletonTransactionSummaryCard } from '../components/skeletons';\nimport { StripeAccountCard } from '../components/StripeAccountCard';\nimport { TransactionSummaryCard } from '../components/TransactionSummaryCard';\nimport { TransactionTab } from '../components/TransactionTab';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n AppDispatch,\n getTransactionsAsync,\n getTransactionsSummaryAsync,\n selectHostOrTrialRole,\n selectHostRole,\n} from '../store';\nimport { TransactionStatus } from '../types';\nimport { toSentenceCase } from '../utils';\n\nconst colors: string[] = [\n 'text-info',\n 'text-warning',\n 'text-success',\n 'text-error',\n];\n\nexport const TransactionsPage: React.FC = () => {\n const [activeTab, setActiveTab] = useState('pending');\n // const [page, setPage] = useState(1);\n const dispatch = useDispatch();\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n const hostRole = useSelector(selectHostRole);\n const navigate = useNavigate();\n const location = useLocation();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n useEffect(() => {\n dispatch(getTransactionsAsync());\n }, [dispatch]);\n\n const fetchTransactionsSummary = useCallback(async () => {\n return await dispatch(getTransactionsSummaryAsync()).unwrap();\n }, [dispatch]);\n\n const labels = ['Total Revenue', 'Pending', 'Paid', 'Cancelled'];\n\n const handleChange = (status: TransactionStatus) => {\n setActiveTab(status);\n navigate(`/transaction/${status}`);\n };\n\n useEffect(() => {\n const currentTab = location.pathname.split('/').pop() ?? 'pending';\n if (currentTab) {\n setActiveTab(currentTab as TransactionStatus);\n setBreadcrumbs([\n {\n name: 'Transactions',\n path: 'transaction',\n },\n {\n name: toSentenceCase(currentTab),\n },\n ]);\n }\n }, [location.pathname]);\n\n return (\n <>\n \n Transactions - {APP_NAME}\n \n\n
\n
\n
Transactions
\n
\n\n {!hostOrTrialRole && (\n
\n Transactions should be settled within 24 hours to avoid cancellation\n
\n )}\n\n {hostRole && }\n\n {hostOrTrialRole && (\n {\n const amounts = [\n data?.totalEarningsCount ?? 0,\n data?.pendingPaymentsCount ?? 0,\n data?.paymentsReceived ?? 0,\n data?.cancelledAppointmentSessionsCount ?? 0,\n ];\n\n return (\n
\n {labels.map((label, index) => (\n \n ))}\n
\n );\n }}\n renderEmpty={() => (\n
\n {labels.map((label, index) => (\n \n ))}\n
\n )}\n renderLoading={() => {\n return (\n
\n {labels.map((label, index) => (\n \n ))}\n
\n );\n }}\n />\n )}\n\n
\n
\n
\n handleChange('pending')}\n selected={activeTab === 'pending'}\n />\n handleChange('paid')}\n selected={activeTab === 'paid'}\n />\n handleChange('expired')}\n selected={activeTab === 'expired'}\n />\n
\n
\n\n
\n \n
\n
\n
\n \n );\n};\n","import moment, { Moment } from 'moment';\nimport { useEffect, useState } from 'react';\n\n// Define possible appointment statuses\nexport enum AppointmentStatus {\n NOT_STARTED = 'NOT_STARTED',\n ONGOING = 'ONGOING',\n ENDED = 'ENDED',\n}\n\nexport const useAppointmentRealTimeStatus = (\n startTime: Moment,\n endTime: Moment,\n) => {\n const [status, setStatus] = useState(\n AppointmentStatus.NOT_STARTED,\n );\n\n /// if the app is running on tellycom.net, we should always return ONGOING\n const isDev: boolean = import.meta.env.VITE_APP_DOMAIN === 'https://tellycom.net';\n\n useEffect(() => {\n // Function to calculate the current status\n const calculateStatus = () => {\n const now = moment();\n const startBuffer = moment(startTime).subtract(5, 'minutes');\n const endBuffer = moment(endTime).add(5, 'minutes');\n\n if (import.meta.env.DEV) return AppointmentStatus.ONGOING;\n\n if (isDev) {\n return AppointmentStatus.ONGOING;\n }\n\n if (now.isBefore(startBuffer)) {\n return AppointmentStatus.NOT_STARTED;\n } else if (now.isSameOrAfter(startBuffer) && now.isBefore(endBuffer)) {\n return AppointmentStatus.ONGOING;\n } else if (now.isAfter(endBuffer)) {\n return AppointmentStatus.ENDED;\n } else {\n return AppointmentStatus.NOT_STARTED; // fallback\n }\n };\n\n // Set the initial status\n setStatus(calculateStatus());\n\n // Update status every second\n const intervalId = setInterval(() => {\n setStatus(calculateStatus());\n }, 30000); // check every 30 seconds\n\n // Cleanup interval on component unmount\n return () => clearInterval(intervalId);\n }, [startTime, endTime, isDev]);\n\n return status;\n};\n","import apiClient from './axios';\n\ntype UrlResponse = {\n url: string;\n};\n\nexport const oauthGoogleCalendar = async (): Promise => {\n try {\n const response = await apiClient.get(\n `/auth/oauth/google/calendar`,\n );\n\n console.log(response.data);\n\n return response.data;\n } catch (e) {\n throw e;\n }\n};\n","import moment, { Moment } from 'moment';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useSelector } from 'react-redux';\nimport { useLocation, useNavigate, useParams } from 'react-router-dom';\nimport { useChatContext } from 'stream-chat-react';\nimport { Avatar } from '../components/Avatar';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { IconButton } from '../components/Buttons/IconButton';\nimport { OutlinedButton } from '../components/Buttons/OutlinedButton';\nimport { DataLoader } from '../components/DataLoader';\nimport { useDialog } from '../components/DialogContext';\nimport { EmptyUI } from '../components/EmptyUI';\nimport { CancelAppointmentForm } from '../components/Forms/CancelAppointmentForm';\nimport GuestTile from '../components/GuestTile';\nimport {\n AddToCalendarIcon,\n CalendarIcon,\n CheckIcon,\n ClockIcon,\n EditIcon,\n ShareIcon,\n ChatIcon\n} from '../components/icons';\nimport { SkeletonUpcomingDetails } from '../components/skeletons';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n AppointmentStatus,\n useAppointmentRealTimeStatus,\n} from '../hooks/useAppointmentRealTimeStatus';\nimport { getOrCreateChannel } from '../services';\nimport {\n completeAppointment,\n getAppointmentSession,\n} from '../services/appointments';\nimport { oauthGoogleCalendar } from '../services/calendar';\nimport { selectHostOrTrialRole, selectUserId } from '../store';\nimport { AppointmentSession, Participant } from '../types';\nimport {\n calculateDuration,\n formatDurationInMsToHourMinutes,\n getInitials,\n getTimezoneAbbreviation,\n showError,\n showSuccess,\n} from '../utils';\n\nexport const UpcomingAppointmentDetailsPage: React.FC = () => {\n const { id } = useParams();\n\n const navigate = useNavigate();\n const [refreshCount, setRefreshCount] = useState(0);\n const location = useLocation();\n\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n\n const currentUserId = useSelector(selectUserId);\n\n const fetchAppointment = useCallback(async () => {\n if (!id) return;\n\n return await getAppointmentSession(id);\n }, [id, refreshCount]);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Appointments', path: 'appointment' },\n { name: 'Details' },\n ]);\n }, [location.pathname]);\n\n const handleRefresh = () => setRefreshCount((prev) => prev + 1);\n\n const handleEditService = (serviceId: string) =>\n navigate(`/services/${serviceId}/edit`);\n\n const handleShare = async (appointmentId: string) => {\n /// copy to clipboard\n try {\n await navigator.clipboard.writeText(\n `${import.meta.env.VITE_APP_DOMAIN}/a/${appointmentId}`,\n );\n\n showSuccess('Link copied to clipboard!');\n } catch (error) {\n showError(`Failed to copy text: ${error}`);\n }\n };\n\n return (\n <>\n \n Appointment Details - {APP_NAME}\n \n\n
\n \n hostOrTrialRole ? (\n \n ) : (\n \n )\n }\n renderData={(appointment: AppointmentSession | undefined) => {\n if (!appointment) {\n return ;\n }\n\n console.log(appointment);\n\n if (!hostOrTrialRole) {\n return (\n
\n \n
\n );\n }\n\n return (\n <>\n {appointment && (\n
\n {/* Appointment Frame */}\n
\n
\n
\n {appointment?.service.title ?? 'Service Title'}\n
\n\n
\n {hostOrTrialRole && (\n }\n ariaLabel=\"edit\"\n onClick={() =>\n handleEditService(appointment.service.id)\n }\n />\n )}\n\n }\n ariaLabel=\"edit\"\n onClick={() => handleShare(appointment.id)}\n />\n\n {/* }\n ariaLabel=\"edit\"\n onClick={() => {}}\n /> */}\n
\n
\n\n {/* gallery */}\n
\n {appointment?.service.gallery.at(0) && (\n \n )}\n
\n\n {/* Details / Controls */}\n
\n {/* Details */}\n
\n {/* duration in minutes */}\n
\n {calculateDuration({\n startTime: appointment.startTime,\n endTime: appointment.endTime,\n })}\n
\n\n {/* day - date */}\n
\n \n\n \n {moment(appointment?.startTime).format(\n 'dddd - DD MMMM YYYY',\n )}\n \n
\n\n {/* time start - time end - timezone */}\n
\n \n\n \n {moment(appointment.startTime).format('hh:mm A')}{' '}\n - {moment(appointment.endTime).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n
\n\n {/* class type - pill */}\n
\n
\n {appointment?.service.classType === 'ONE_ON_ONE'\n ? 'One on One'\n : 'Multiple Guests'}\n
\n
\n
\n\n {/* Controls */}\n \n
\n
\n\n {/* Guest List */}\n \n
\n )}\n \n );\n }}\n />\n
\n \n );\n};\n\nexport const GuestUpcomingAppointmentDetails = ({\n appointment,\n handleRefresh,\n}: {\n appointment: AppointmentSession;\n handleRefresh: () => void;\n}) => {\n const navigate = useNavigate();\n const { service, host } = appointment;\n const { setActiveChannel } = useChatContext();\n\n const currentUserId = useSelector(selectUserId);\n\n console.log(`hostId: ${host?.id}`);\n console.log(`currentUserId: ${currentUserId}`);\n\n console.dir(service);\n console.dir(host);\n\n const handleSendMessage = async () => {\n if (!host) {\n showError('Host not found!');\n return;\n }\n\n try {\n const channel = await getOrCreateChannel({ otherUserId: host.id });\n\n if (!channel) {\n showError('Channel not found!');\n return;\n }\n\n setActiveChannel(channel);\n navigate(`/messages/${channel.id}`);\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const handleAddToCalendar = async () => {\n try {\n const { url } = await oauthGoogleCalendar();\n\n window.open(url, '_blank');\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n const handleShare = async () => {\n try {\n await navigator.clipboard.writeText(\n `${import.meta.env.VITE_APP_DOMAIN}/a/${appointment.id}`,\n );\n\n showSuccess('Successfully copied link to clipboard');\n } catch (e) {\n showError('Failed to copy link to clipboard');\n }\n };\n\n return (\n <>\n
\n {/* Service image */}\n
\n {service.gallery && service.gallery.at(0) && (\n \n )}\n
\n\n {/* Service details */}\n
\n {/* more details */}\n
\n {/* avatar / send message */}\n
\n \n\n
\n }\n onClick={handleSendMessage}\n ariaLabel=\"send message\"\n />\n\n }\n onClick={handleShare}\n ariaLabel=\"share link\"\n />\n\n }\n onClick={handleAddToCalendar}\n ariaLabel=\"add to calendar\"\n />\n
\n
\n\n {/* name / profession */}\n
\n
\n {host?.firstname} {host?.lastname}\n
\n\n
\n {host?.profession ?? 'N/A'}\n
\n
\n\n
\n
{service.title}
\n\n
\n {service.classType.replace(/_/g, ' ')}\n
\n
\n\n {/* hours / sessions / category */}\n
\n {/* hours */}\n
\n
Hours
\n
\n {service.classType === 'MULTIPLE'\n ? 'Varies'\n : formatDurationInMsToHourMinutes(\n service.durationPerSession,\n )}\n
\n
\n\n {/* sessions */}\n
\n
Sessions
\n
{service.sessions}
\n
\n\n {/* category */}\n
\n
Category
\n
\n {service.category}\n
\n
\n
\n\n
\n
Description
\n\n
{service.description}
\n
\n\n
\n
\n Additional Details\n
\n\n {service.whatYouLearn?.map((item, index) => {\n return (\n
\n \n\n {item}\n
\n );\n }) ??
No additional details
}\n
\n\n
\n
Requirements
\n\n {service.requirements?.map((item, index) => {\n return (\n
\n
\n \n
\n\n
{item}
\n
\n );\n }) ?? (\n
No specified requirements
\n )}\n
\n\n
\n
\n Cancellation and Refund Policy\n
\n\n
{service.cancellationPolicy}
\n
\n\n
\n
\n Schedule\n
\n\n
\n \n\n \n {moment(appointment?.startTime).format(\n 'dddd - DD MMMM YYYY',\n )}\n \n
\n\n
\n \n\n \n {moment(appointment.startTime).format('hh:mm A')}{' '}\n - {moment(appointment.endTime).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n
\n
\n
\n\n {/* free / book now */}\n
\n \n
\n
\n
\n \n );\n};\n\ninterface GuestListProps {\n participants: Participant[] | undefined;\n hostId: string | undefined;\n}\n\nconst GuestList: React.FC = ({\n participants,\n hostId,\n}: GuestListProps) => {\n console.log(participants);\n /// if not defined or empty\n if (!participants || participants.length === 0) {\n return (\n
\n
\n Guests\n
\n\n
\n \n
\n
\n );\n }\n\n return (\n
\n
\n Guests\n
\n\n
\n {participants.map((guest, index) => (\n \n ))}\n
\n
\n );\n};\n\ninterface AppointmentActionsProps {\n id: string;\n startTime: Moment;\n endTime: Moment;\n onReload: () => void;\n serviceId: string;\n appointmentStatus: string;\n isHost: boolean;\n}\n\nconst AppointmentActions: React.FC = ({\n id,\n startTime,\n endTime,\n onReload,\n serviceId,\n appointmentStatus,\n isHost,\n}: AppointmentActionsProps) => {\n const navigate = useNavigate();\n const status = useAppointmentRealTimeStatus(startTime, endTime);\n const { openDialog, closeDialog } = useDialog();\n\n // go to call lobby\n const handleJoinCall = () => {\n if (status !== AppointmentStatus.ONGOING) {\n alert('You may join the call 5 minutes before the appointment schedule.');\n return;\n }\n\n navigate(`/appointment/${id}/preview`);\n };\n\n const handleAppointmentCompleted = async () => {\n try {\n await completeAppointment(id);\n\n showSuccess('Successfully completed appointment');\n onReload();\n } catch (e) {\n showError((e as Error).message);\n } finally {\n onReload();\n closeDialog();\n }\n };\n\n const handleCompleteAppointment = async () => {\n openDialog({\n title: 'Complete Appointment',\n content: (\n
\n Mark this appointment as completed? You cannot join again after you\n mark this appointment as completed even if the appointment end time\n has not passed. This action CANNOT be undone.\n
\n ),\n actions: (\n <>\n \n\n \n \n ),\n });\n };\n\n const handleReschedule = () =>\n navigate(`/appointment/${id}/reschedule?serviceId=${serviceId}`);\n\n const handleCancel = async (appointmentSessionId: string) => {\n openDialog({\n content: (\n {\n navigate('/dashboard');\n closeDialog();\n }}\n />\n ),\n });\n };\n\n if (appointmentStatus !== 'CONFIRMED') {\n return (\n
\n {appointmentStatus.toUpperCase()}\n
\n );\n }\n\n return (\n
\n {status === AppointmentStatus.NOT_STARTED && (\n <>\n \n\n handleCancel(id)}\n />\n \n )}\n\n {((status === AppointmentStatus.ONGOING ||\n status === AppointmentStatus.ENDED) && isHost) && (\n \n )}\n\n \n
\n );\n};\n\nconst SkeletonGuestUpcomingAppointmentDetails = () => {\n return (\n
\n
\n {/* Service image */}\n
\n\n {/* Service details */}\n
\n {/* more details */}\n
\n {/* avatar / send message */}\n
\n
\n
\n
\n\n {/* name / profession */}\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n {/* hours / sessions / category */}\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n\n
\n
\n
\n {Array.from({ length: 3 }).map((_, index) => (\n
\n ))}\n
\n
\n\n
\n
\n
\n {Array.from({ length: 2 }).map((_, index) => (\n
\n
\n
\n
\n ))}\n
\n
\n\n
\n
\n
\n
\n
\n\n {/* free / book now */}\n
\n
\n
\n
\n
\n \n );\n};\n","import { useCallback } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useDispatch } from 'react-redux';\nimport { DataLoader } from '../components/DataLoader';\nimport { SkeletonUpcomingAppointmentCard } from '../components/skeletons';\nimport { UpcomingAppointmentCard } from '../components/UpcomingAppointmentCard';\nimport { APP_NAME } from '../constants';\nimport { AppDispatch, getUpcomingAppointmentsAsync } from '../store';\n\nexport const UpcomingAppointmentsPage: React.FC = () => {\n const dispatch = useDispatch();\n\n // Fetch upcoming appointments\n const fetchUpcomingAppointments = useCallback(async () => {\n const result = await dispatch(getUpcomingAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch]);\n\n return (\n <>\n \n Upcoming Appointments - {APP_NAME}\n \n\n
\n
\n
Upcoming Appointments
\n
\n\n (\n
\n {upcomingAppointments.slice(0, 4).map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n />\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useNavigate } from 'react-router-dom';\nimport {\n AppDispatch,\n getOngoingAppointmentsAsync,\n selectOngoingAppointments,\n} from '../store';\nimport { OngoingAppointment } from '../types/OngoingAppointment';\nimport { TellyUser } from '../types/User';\nimport { getInitials } from '../utils';\nimport { Avatar } from './Avatar';\nimport { FilledButton } from './Buttons/FilledButton';\nimport { DataLoader } from './DataLoader';\n\ninterface GuestProfileProps {\n user: TellyUser;\n}\n\nexport const SkeletonOngoingCard: React.FC = () => {\n return (\n
\n
\n {/* Avatar */}\n
\n\n {/* Host Info */}\n
\n
\n
\n
\n
\n\n
\n {/* Next Session Label and Date */}\n
\n
\n
\n
\n\n {/* Button */}\n
\n
\n
\n );\n};\n\ninterface OngoingCardProps {\n appointment: OngoingAppointment;\n bgClass?: string;\n}\n\nexport const OngoingCard: React.FC = ({\n appointment,\n bgClass = 'bg-neutral-50',\n}: OngoingCardProps) => {\n const navigate = useNavigate();\n\n // TODO: to implement\n const handleBookAgain = (serviceId: string, appointmentId: string) =>\n navigate(`/services/${serviceId}/book?appointmentId=${appointmentId}`);\n\n return (\n <>\n
\n
\n \n\n
\n {/* service title */}\n
{appointment.service.title}
\n\n {/* service host */}\n
\n {appointment.host.firstname} {appointment.host.lastname}\n
\n
\n
\n\n
\n
\n
Next Session
\n\n
\n {moment(appointment.currentSession.startTime).format('MMM D, Y')}\n
\n
\n\n handleBookAgain(appointment.serviceId, appointment.id)}\n />\n
\n
\n \n );\n};\n\nexport const GuestProfileEdit = () => {\n return (\n <>\n
\n
Edit Profile
\n
\n \n );\n};\n\nexport const GuestProfile: React.FC = ({\n user,\n}: GuestProfileProps) => {\n const navigate = useNavigate();\n const { firstname, lastname, cover_photo, createdAt } = user;\n\n const dispatch = useDispatch();\n const { ongoingAppointments } = useSelector(selectOngoingAppointments);\n\n const fetchOngoingAppointments = useCallback(async () => {\n const response = await dispatch(getOngoingAppointmentsAsync()).unwrap();\n\n return response;\n }, [dispatch]);\n\n const handleViewAll = () => navigate(`/appointments/ongoing`);\n\n const handleEditProfile = () => navigate(`/settings/edit-profile`);\n\n return (\n <>\n
\n
\n
\n {/* title */}\n
User Profile
\n\n {/* cover photo */}\n
\n {cover_photo && (\n \n )}\n
\n
\n\n
\n {/* */}\n
\n {/* avatar */}\n \n\n {/* edit profile button */}\n \n
\n\n
\n
\n {firstname} {lastname}\n
\n\n
\n Member since {moment(createdAt).format('Y')}\n
\n
\n
\n\n {/* ongoing appointments */}\n
\n
\n
\n Ongoing Appointments\n
\n\n {/* edit profile button */}\n \n
\n\n {\n {\n /* ongoing appointment card */\n }\n return (\n
\n {ongoingAppointments\n .slice(0, 5)\n .map((appointment, index) => (\n
\n \n
\n ))}\n
\n );\n }}\n renderLoading={() => }\n />\n
\n
\n
\n \n );\n};\n","import { useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport { useSelector } from 'react-redux';\nimport { useLocation } from 'react-router-dom';\nimport { GuestProfile } from '../components/GuestProfile';\nimport { SkeletonGuestPublicProfile } from '../components/GuestPublicProfile';\nimport { HostProfile } from '../components/HostProfile';\nimport { APP_NAME } from '../constants';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n selectAuth,\n selectService,\n selectSocialAccounts,\n selectWorkExperience,\n} from '../store';\n\n/// current user profile\nexport const CurrentUserProfile: React.FC = () => {\n const { user, status } = useSelector(selectAuth);\n const workExperience = useSelector(selectWorkExperience);\n const service = useSelector(selectService);\n const socialAccounts = useSelector(selectSocialAccounts);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([{ name: 'Profile' }]);\n }, [location]);\n\n console.log(`workExperience ${workExperience?.length}`);\n console.log(`service ${service?.length}`);\n\n if (status === 'loading') {\n return ;\n }\n\n if (!user || status === 'failed') return <>User not Found;\n\n return (\n <>\n \n User Profile - {APP_NAME}\n \n\n {['TRIAL', 'HOST'].includes(user.activeRole) ? (\n \n ) : (\n \n )}\n \n );\n};\n","import {\n Channel,\n ChannelHeader,\n MessageInput,\n MessageList,\n} from 'stream-chat-react';\n\ninterface VideoChatProps {\n channel: any;\n}\n\nconst VideoChat = ({ channel }: VideoChatProps) => {\n return (\n <>\n
\n {/* Channel */}\n \n
\n \n\n {/* Message list */}\n
\n \n
\n\n {/* Message input */}\n \n
\n
\n
\n \n );\n};\n\nexport default VideoChat;\n","\nimport { SpeakerLayout, PaginatedGridLayout, useCallStateHooks } from \"@stream-io/video-react-sdk\";\n\nexport const CallLayout = () => {\n const { useHasOngoingScreenShare } = useCallStateHooks();\n const screenShareEnabled = useHasOngoingScreenShare();\n\n console.log(`screenShare ${screenShareEnabled}`);\n\n return screenShareEnabled ? : ;\n};\n\n","import { Avatar, hasAudio, hasScreenShare, hasVideo, StreamVideoParticipant, useCall } from \"@stream-io/video-react-sdk\";\nimport { ScreenShareIcon, ScreenShareOffIcon, MicOnIcon, MicOffIcon, VideoOnIcon, VideoOffIcon } from \"../icons\";\nimport {\n IconButton as CustomIconButton,\n} from '../Buttons';\nimport { selectUserId } from \"../../store\";\nimport { useSelector } from \"react-redux\";\n\ninterface ParticipantListTileProps {\n participant: StreamVideoParticipant;\n hostId: string;\n}\n\nexport const ParticipantListTile = ({\n participant,\n hostId,\n}: ParticipantListTileProps) => {\n console.log(`hostId => ${hostId}`);\n\n const call = useCall();\n const hasAudioOn = hasAudio(participant);\n const hasVideoOn = hasVideo(participant);\n const hasScreenShareOn = hasScreenShare(participant);\n const userId = useSelector(selectUserId);\n\n const handleTapAudio = async () => {\n ///\n await call!.muteUser(participant.userId, 'audio');\n };\n const handleTapVideo = async () => {\n await call!.muteUser(participant.userId, 'video');\n };\n const handleTapScreenshare = async () => {\n await call!.muteUser(participant.userId, 'screenshare');\n };\n\n /// if the current user is the host, show the controls\n const isHost = userId === hostId;\n\n console.log(`isHost => ${isHost}`);\n\n return (\n <>\n
\n {/* avatar/ name */}\n
\n \n\n
\n
{participant.name}
\n
\n {participant.roles.includes('host') ? 'HOST' : 'GUEST'}\n
\n
\n
\n\n {/* TODO: implement controls */}\n
\n \n ) : (\n \n )\n }\n onClick={\n isHost ? handleTapScreenshare : () => { }\n }\n ariaLabel={''}\n />\n\n \n ) : (\n \n )\n }\n onClick={isHost ? handleTapAudio : () => { }}\n ariaLabel={'microphone'}\n />\n\n \n ) : (\n \n )\n }\n onClick={isHost ? handleTapVideo : () => { }}\n ariaLabel={''}\n />\n
\n
\n \n );\n};\n","import { useCall, useCallStateHooks } from \"@stream-io/video-react-sdk\";\nimport { ParticipantListTile } from \"./ParticipantListTile\";\nimport { FilledButton } from \"../Buttons/FilledButton\";\n\ninterface ParticipantsListProps {\n hostId: string;\n}\n\nexport const ParticipantsList = ({ hostId }: ParticipantsListProps) => {\n const { useLocalParticipant, useRemoteParticipants, useParticipantCount } =\n useCallStateHooks();\n\n const call = useCall();\n\n const localParticipant = useLocalParticipant();\n const remoteParticipants = useRemoteParticipants();\n const participantCount = useParticipantCount();\n\n const isCurrentUserHost = hostId === localParticipant?.userId;\n\n const muteAll = async() => {\n console.log(\"Mute All\");\n await call?.muteAllUsers('audio');\n }\n\n return (\n <>\n
\n
\n Participants ({participantCount})\n\n {\n isCurrentUserHost && (\n
\n \n
\n )\n }\n
\n
\n {localParticipant && (\n <>\n \n \n )}\n {remoteParticipants.map((remoteParticipant, index) => (\n \n ))}\n
\n
\n \n );\n};","import { Restricted, OwnCapability, SpeakingWhileMutedNotification, ToggleAudioPublishingButton, ToggleVideoPublishingButton, ScreenShareButton, CancelCallButton, ReactionsButton } from \"@stream-io/video-react-sdk\";\nimport { debounce } from \"lodash\";\nimport { useState, useEffect } from \"react\";\nimport { FilledButton } from \"../Buttons\";\nimport { IconButton as CustomIconButton } from \"../Buttons/IconButton\";\nimport { UserIcon } from \"../icons/User\";\nimport { ChatIcon } from \"../icons\";\n\ninterface CallControlsProps {\n onChat: () => void;\n onParticipants: () => void;\n onLeave: () => void;\n onEnd: () => void;\n}\n\nexport const CallControls: React.FC = ({\n onChat,\n onParticipants,\n onLeave,\n onEnd,\n}: CallControlsProps) => {\n // For Mobile: Show/hide drawer\n // State to track if the screen is mobile\n const [isMobile, setIsMobile] = useState(window.innerWidth <= 768);\n\n // Update screen size dynamically\n useEffect(() => {\n const handleResize = debounce(() => {\n setIsMobile(window.innerWidth <= 768); // Update mobile state on resize\n }, 200); // Set debounce delay to 200ms\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return (\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {!isMobile && } size=\"md\" onClick={onChat} bgClass=\"bg-gray-800\" hoverClass=\"hover:bg-gray-600\" />}\n {!isMobile && } size=\"md\" onClick={onParticipants} bgClass=\"bg-gray-800\" hoverClass=\"hover:bg-gray-600\" />}\n \n
\n
\n \n \n \n
\n
\n );\n};\n","import { Call, StreamCall, StreamTheme } from \"@stream-io/video-react-sdk\";\nimport { debounce } from \"lodash\";\nimport { useState, useEffect } from \"react\";\nimport { useNavigate } from \"react-router-dom\";\nimport { showError, showMessage } from \"../../utils\";\nimport { OutlinedButton, FilledButton } from \"../Buttons\";\nimport VideoChat from \"../VideoChat\";\nimport { CallLayout } from \"./CallLayout\";\nimport { ParticipantsList } from \"./ParticipantList\";\nimport { useDialog } from \"../DialogContext\";\nimport { CallControls } from \"./CallControls\";\nimport { chatClient } from '../../utils';\n\nexport const CallUI = ({ call, hostId }: { call: Call; hostId: string }) => {\n // const call = useCall();\n const [chatOpen, setChatOpen] = useState(false);\n const [participantsOpen, setParticipantsOpen] = useState(false);\n const [channel, setChannel] = useState();\n const { openDialog, closeDialog } = useDialog();\n\n const navigate = useNavigate();\n\n const handleLeave = async () => {\n /// leave call, then go home\n // call?.leave().then(() => navigate('/dashboard'));\n try {\n await call?.leave().then(() => exitPage());\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n useEffect(() => {\n /// listen to channel updates in real time\n // Initialize channel\n const initChannel = async () => {\n /// reinitialize channel to avoid memory leaks\n /// and duplication of messages\n channel?.stopWatching();\n channel?.off('message.new');\n\n const newChannel = chatClient.channel('video_chat', call.id);\n await newChannel.watch();\n\n setChannel(newChannel);\n\n // Listen to new messages\n newChannel.on('message.new', (event) => {\n console.log('New message:', event);\n const sender = event?.message?.user;\n const senderId = sender?.id;\n const senderName = sender?.name;\n const message = event?.message?.text;\n\n /// current user \n const currentUser = chatClient.user?.id;\n\n if (senderId === currentUser) {\n return;\n }\n\n // Handle new message event here\n showMessage(`New message from ${senderName}: \\n${message}` || 'New message received');\n });\n };\n\n initChannel();\n\n // Cleanup\n return () => {\n if (channel) {\n channel?.stopWatching();\n channel?.off('message.new');\n }\n };\n }, []);\n\n const handleEnd = async () => {\n openDialog({\n title: 'End Call',\n content:\n 'The call will end and everyone in the call will be disconnected. Confirm?',\n actions: (\n <>\n \n {\n closeDialog();\n await call?.endCall();\n\n exitPage();\n }}\n bgClass=\"bg-error\"\n />\n \n ),\n });\n };\n\n const exitPage = () => navigate(`/appointment/${call.id}`);\n\n const toggleChat = () => {\n if (participantsOpen) { setParticipantsOpen(false); }\n\n setChatOpen((prev) => !prev);\n }\n\n const toggleParticipants = () => {\n if (chatOpen) { setChatOpen(false); } setParticipantsOpen((prev) => !prev);\n }\n\n // For Mobile: Show/hide drawer\n // State to track if the screen is mobile\n const [isMobile, setIsMobile] = useState(window.innerWidth <= 768);\n\n // Update screen size dynamically\n useEffect(() => {\n const handleResize = debounce(() => {\n setIsMobile(window.innerWidth <= 768); // Update mobile state on resize\n }, 200); // Set debounce delay to 200ms\n\n window.addEventListener('resize', handleResize);\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n if (!call)\n return (\n
\n Joining appointment...\n
\n );\n\n return (\n \n
\n
\n \n \n\n \n \n
\n\n {participantsOpen && !isMobile && (\n
\n
\n \n
\n
\n )}\n\n {/* Chat Area */}\n {chatOpen && !isMobile && (\n
\n
\n {channel && }\n
\n
\n )}\n
\n
\n );\n};\n","import {\n Call,\n StreamVideo,\n StreamVideoClient,\n} from '@stream-io/video-react-sdk';\nimport { useEffect, useRef, useState } from 'react';\n// styles fro react video sdk\nimport '@stream-io/video-react-sdk/dist/css/styles.css';\nimport { Helmet } from 'react-helmet-async';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport {\n OutlinedButton,\n} from '../components/Buttons';\n\nimport { STREAM_API_KEY } from '../constants/streamApiKey';\nimport { getCallInfo, tokenProvider } from '../services';\nimport { showSuccess } from '../utils';\nimport Loader from '../components/Loader/Loader';\nimport { AppointmentSession } from '../types';\nimport { CallUI } from '../components/Call/CallUI';\n\nexport const VideoCall: React.FC = () => {\n const navigate = useNavigate();\n const { id } = useParams();\n const [loading, setLoading] = useState(false);\n const [joining, setJoining] = useState(false);\n const [callJoined, setCallJoined] = useState(false);\n const [call, setCall] = useState();\n const [client, setClient] = useState();\n const [appointmentSession, setAppointmentSession] =\n useState();\n const [appointmentError, setAppointmentError] = useState(null);\n const [callError, setCallError] = useState();\n const [hostId, setHostId] = useState();\n const [canJoinCall, setCanJoinCall] = useState(false);\n const [callEnded, setCallEnded] = useState(false);\n const showEndReminder = useRef(false);\n\n const isDev: boolean = import.meta.env.VITE_APP_DOMAIN === 'https://tellycom.net';\n\n /// prevent user from leaving the page\n useEffect(() => {\n const handleBeforeUnload = (event: BeforeUnloadEvent) => {\n if (callJoined) {\n event.preventDefault();\n const shouldLeave = window.confirm('Are you sure you want to leave the call?');\n if (!shouldLeave) {\n return; // User stays\n }\n handleLeaveCall();\n }\n };\n\n const handlePopState = () => {\n if (callJoined) {\n const shouldLeave = window.confirm('Are you sure you want to leave the call?');\n if (!shouldLeave) {\n history.pushState(null, '', location.href); // Keep user in the same state\n return;\n }\n handleLeaveCall();\n }\n };\n\n const handleLeaveCall = () => {\n setCallEnded(true);\n if (call) {\n call.leave().then(() => {\n navigate('/dashboard');\n showSuccess('Appointment has ended');\n }).catch(err => console.error('Error leaving call:', err));\n }\n };\n\n // Prevent back navigation\n history.pushState(null, '', location.href);\n window.addEventListener('popstate', handlePopState);\n window.addEventListener('beforeunload', handleBeforeUnload);\n\n return () => {\n window.removeEventListener('popstate', handlePopState);\n window.removeEventListener('beforeunload', handleBeforeUnload);\n };\n }, [call, callEnded, callJoined]);\n\n useEffect(() => {\n const initializeVideoClient = async () => {\n const user = localStorage.getItem('USER');\n const parsedUser = user ? JSON.parse(user) : null;\n\n console.log(`parsedUser => ${parsedUser}`);\n\n if (!parsedUser) return;\n\n const myClient = StreamVideoClient.getOrCreateInstance({\n apiKey: STREAM_API_KEY,\n user: {\n id: parsedUser.id,\n name: `${parsedUser.firstname} ${parsedUser.lastname}`,\n },\n tokenProvider,\n });\n\n setClient(myClient);\n\n console.log('client is set');\n }\n\n initializeVideoClient();\n\n return () => {\n console.log('client disconnect is called');\n client?.disconnectUser();\n // client.current = undefined;\n };\n }, []);\n\n // run if id changes\n useEffect(() => {\n const getAppointmentSession = async () => {\n setLoading(true);\n try {\n const callInfo = await getCallInfo(id!);\n\n setHostId(callInfo.call.call.created_by.id);\n setAppointmentSession(callInfo.appointmentSession);\n\n console.log(callInfo);\n } catch (error) {\n console.error(error);\n\n setAppointmentError((error as Error).message);\n setCallError((error as Error).message);\n hasJoinedRef.current = false;\n } finally {\n setLoading(false);\n }\n }\n\n getAppointmentSession();\n }, [id]);\n\n // 5 minutes\n const minAllowableToJoinInMs = 5 * 60 * 1000;\n // 30 seconds\n const callEndWarningInMs = 5 * 60 * 1000;\n // 10 seconds\n const callEndAfterEndInMs = 10 * 1000;\n\n useEffect(() => {\n const testStartTime =\n appointmentSession?.startTime != null\n ? new Date(appointmentSession?.startTime).getTime() -\n minAllowableToJoinInMs\n : null;\n const newEndTime =\n appointmentSession?.endTime != null\n ? new Date(appointmentSession?.endTime).getTime()\n : null;\n\n console.log(`startTime => ${testStartTime}`);\n console.log(`endTime => ${newEndTime}`);\n\n if (testStartTime && newEndTime) {\n const appointmentStartTime = testStartTime;\n const appointmentEndTime = newEndTime;\n\n let interval: NodeJS.Timeout | null = null;\n\n const checkCallTime = () => {\n const currentTime = new Date().getTime();\n const timeCanStartOrJoinCall =\n appointmentStartTime;\n const timeToShowEndReminder = appointmentEndTime - callEndWarningInMs;\n const timeToEndCall = appointmentEndTime + callEndAfterEndInMs;\n\n /// if isDev is true, we should always return true\n const canJoin = isDev ? true : currentTime >= timeCanStartOrJoinCall;\n\n // console.log(`currentTime => ${currentTime}, startTime => ${appointmentStartTime}, timeCanStartOrJoinCall => ${timeCanStartOrJoinCall}, canJoin => ${canJoin}`);\n setCanJoinCall(canJoin);\n\n // Show end reminder if 5 minutes before end\n if (\n currentTime >= timeToShowEndReminder &&\n currentTime < appointmentEndTime &&\n !showEndReminder.current\n ) {\n showSuccess('Call will end in 5 minutes.');\n showEndReminder.current = true;\n } else if (\n currentTime < timeToShowEndReminder ||\n currentTime >= appointmentEndTime\n ) {\n showEndReminder.current = false;\n }\n\n // Call ends 10 seconds after end time\n if (currentTime >= timeToEndCall && !callEnded) {\n setCallEnded(true);\n if (call) {\n call\n .leave()\n .then(() => {\n navigate('/dashboard');\n showSuccess('Appointment has ended');\n })\n .catch((err) => console.error('Error leaving call:', err));\n }\n if (interval) {\n clearInterval(interval); // Stop checking after full appointment end\n }\n setCanJoinCall(false);\n }\n };\n\n checkCallTime();\n interval = setInterval(checkCallTime, 1000); // Keep interval running for ongoing checks\n\n return () => {\n if (interval) {\n clearInterval(interval);\n }\n };\n }\n }, [appointmentSession, isDev]);\n\n // Prevent duplicate joins\n const hasJoinedRef = useRef(false);\n\n // const memoizedCall = useMemo(() => {\n // console.log(`initializing memoized call ${client}`);\n // try {\n // const _call = (client && id) ? client.call('appointment', id) : null;\n // console.log(_call);\n\n // return _call;\n // } catch (e) {\n // console.error(e);\n // }\n // }, [client, id]);\n\n // console.log(`memoizedCall => ${memoizedCall}`);\n\n useEffect(() => {\n console.log(`canJoinCall => ${canJoinCall} in initialize call`)\n const initializeCall = async () => {\n setJoining(true);\n console.log(`call => ${call} in initialize call`)\n console.log(`client => ${client}`);\n console.log(hasJoinedRef.current);\n console.log(`canJoinCall => ${canJoinCall}`);\n // console.log(`memoizedCall => ${memoizedCall} in joining`);\n if (canJoinCall && !call && !hasJoinedRef.current && client) {\n hasJoinedRef.current = true;\n console.log(`canJoinCall => ${canJoinCall} in initialize call`)\n\n try {\n const _call = client!.call('appointment', id!);\n\n await _call.join();\n setCall(_call);\n setCallJoined(true);\n // console.log('Successfully joined:', memoizedCall);\n console.log('successfully joined call');\n } catch (error) {\n console.error('Error joining the call:', error);\n hasJoinedRef.current = false;\n setCallError((error as Error).message);\n } finally {\n setJoining(false);\n }\n }\n };\n\n if (canJoinCall) {\n initializeCall();\n }\n }, [canJoinCall, client]);\n\n if (loading) {\n return (\n
\n \n\n
Loading appointment information...
\n
\n );\n }\n\n if (callEnded) {\n return (\n
\n
Call has ended.
\n\n navigate(`/appointment/${id}`)}\n />\n
\n );\n }\n\n if (appointmentError) {\n return (\n
\n
Failed to load call info with error: {appointmentError}
\n\n navigate(`/dashboard`)}\n />\n
\n );\n }\n\n if (callError) {\n return (\n
\n {callError}\n
\n );\n }\n\n if (!canJoinCall) {\n return (\n
\n
\n navigate(-1)} />\n
\n Call has not started yet. Please try again five minutes before the\n appointment time.\n
\n );\n }\n\n if (joining) {\n return (\n
\n \n\n
Joining call...
\n
\n );\n }\n\n console.dir(call);\n\n return (\n client ? (\n <>\n \n Call - Tellycom\n \n\n \n {call && }\n \n \n ) : (
\n \n\n
Failed to connect to video client. Please reload page.
\n
)\n );\n};\n\nexport default VideoCall;\n","import moment from 'moment';\nimport { AppointmentSession } from '../types';\nimport { getInitials, getTimezoneAbbreviation } from '../utils';\nimport { Avatar } from './Avatar';\nimport { OutlinedButton } from './Buttons/OutlinedButton';\nimport { SuccessIcon } from './icons';\n\ninterface AppointmentRequestedProps {\n appointmentSession: AppointmentSession;\n onClose: () => void;\n}\n\nexport const AppointmentRequested: React.FC = ({\n appointmentSession,\n onClose,\n}: AppointmentRequestedProps) => {\n return (\n <>\n
\n
\n \n\n
Appointment Requested!
\n
\n\n
\n You will be meeting with {appointmentSession.host?.firstname} to\n attend {appointmentSession.service.title} service.\n
\n\n
\n
Date
\n
\n {moment(appointmentSession.startTime).format('dddd, MMMM DD, Y')}\n
\n
\n\n
\n
Time
\n
\n {moment(appointmentSession.startTime).format('hh:mm A')} -{' '}\n {moment(appointmentSession.endTime).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n
\n
\n\n
\n
\n \n\n
\n {appointmentSession.host?.firstname}{' '}\n {appointmentSession.host?.lastname}\n
\n\n
\n {appointmentSession.host?.profession ?? 'Tellycom Host'}\n
\n
\n
\n\n
\n
\n Your request was sent to{' '}\n
\n
{appointmentSession.host?.email}
\n
\n\n
\n \n
\n
\n \n );\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport moment from 'moment';\nimport { useEffect, useState } from 'react';\nimport { Controller, useForm } from 'react-hook-form';\nimport { useNavigate } from 'react-router-dom';\nimport * as yup from 'yup';\nimport { bookService } from '../../services';\nimport { Service } from '../../types';\nimport { formatDurationInMsToHourMinutes, showError } from '../../utils';\nimport { AppointmentRequested } from '../AppointmentRequest';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { useDialog } from '../DialogContext';\nimport { CustomTimePicker } from '../FormFields/TimePicker';\nimport { TimeIcon } from '../icons';\n\ninterface ConfirmScheduleFormProps {\n service: Service;\n duration: number;\n date: Date;\n startTime: Date;\n endTime: Date;\n appointmentId?: string | null;\n onSubmit?: (data: ConfirmScheduleFormValues) => void;\n}\n\nconst schema = (propsDate: Date) =>\n yup.object().shape({\n start: yup\n .string()\n .nullable()\n .required('Start time is required')\n .test(\n 'is-not-passed',\n 'Start time cannot be in the past',\n function (value) {\n const now = moment();\n const selectedDate = moment(propsDate);\n const [hours, minutes, seconds] = value.split(':').map(Number);\n\n const combinedStartTime = selectedDate.set({\n hour: hours,\n minute: minutes,\n second: seconds,\n millisecond: 0,\n });\n\n // If the date is today, check if the start time is in the past\n return selectedDate.isSame(now, 'day')\n ? combinedStartTime.isSameOrAfter(now)\n : true;\n },\n ),\n end: yup\n .string()\n .nullable()\n .required('End time is required')\n .test(\n 'is-valid-end-time',\n 'End time must be after start time or on next day',\n function (value) {\n const { start } = this.parent;\n if (!start || !value) return true;\n\n // Convert start time to moment object\n const [startHours, startMinutes, startSeconds] = start\n .split(':')\n .map(Number);\n const startMoment = moment(propsDate).set({\n hour: startHours,\n minute: startMinutes,\n second: startSeconds,\n millisecond: 0,\n });\n\n // Convert end time to moment object\n const [endHours, endMinutes, endSeconds] = value\n .split(':')\n .map(Number);\n const endMoment = moment(propsDate).set({\n hour: endHours,\n minute: endMinutes,\n second: endSeconds,\n millisecond: 0,\n });\n\n // If end time is before start time, consider it as next day\n if (endMoment.isBefore(startMoment)) {\n endMoment.add(1, 'day');\n }\n\n // Now check if the end time is after start time\n return endMoment.isAfter(startMoment);\n },\n ),\n });\n\nexport type ConfirmScheduleFormValues = {\n start: string;\n end: string;\n};\n\nexport const ConfirmScheduleForm: React.FC = ({\n service,\n date,\n startTime,\n endTime,\n appointmentId,\n onSubmit,\n}: ConfirmScheduleFormProps) => {\n const [loading, setLoading] = useState(false);\n const {\n id,\n title,\n sessions,\n durationPerSession,\n classType,\n host: { firstname, lastname, profession } = {\n firstname: '',\n lastname: '',\n profession: '',\n },\n } = service;\n const [calculatedDuration, setCalculatedDuration] =\n useState(durationPerSession);\n\n const {\n handleSubmit,\n formState: { errors },\n control,\n reset,\n watch,\n } = useForm({\n resolver: yupResolver(schema(date)),\n defaultValues: {\n start: moment(startTime).format('HH:mm'),\n end: moment(endTime).format('HH:mm'),\n },\n });\n\n const { openDialog, closeDialog } = useDialog();\n\n const navigate = useNavigate();\n\n const handleCloseDialog = () => {\n /// do something else\n reset();\n closeDialog();\n navigate(`/appointment`);\n };\n\n // ... existing code ...\n const submitForm = async (data: ConfirmScheduleFormValues) => {\n if (onSubmit) {\n onSubmit(data);\n return;\n }\n console.log(data);\n\n setLoading(true);\n\n try {\n const startMoment = moment(date).set({\n hour: Number(data.start.split(':')[0]),\n minute: Number(data.start.split(':')[1]),\n second: 0,\n millisecond: 0,\n });\n\n const endMoment = moment(date).set({\n hour: Number(data.end.split(':')[0]),\n minute: Number(data.end.split(':')[1]),\n second: 0,\n millisecond: 0,\n });\n\n // If end time is before start time, add 24 hours to end time\n if (endMoment.isBefore(startMoment)) {\n endMoment.add(1, 'day');\n }\n\n const response = await bookService({\n appointmentId: appointmentId ?? undefined,\n serviceId: id,\n startTime: startMoment,\n endTime: endMoment,\n });\n\n console.log(response);\n setLoading(false);\n\n openDialog({\n content: (\n \n ),\n width: 384,\n });\n } catch (e) {\n setLoading(false);\n console.error(e);\n showError((e as Error).message);\n }\n };\n\n useEffect(() => {\n const subscription = watch((value, { name }) => {\n if (name === 'start' || name === 'end') {\n const start = value.start;\n const end = value.end;\n\n if (start && end) {\n const startMoment = moment(date).set({\n hour: Number(start.split(':')[0]),\n minute: Number(start.split(':')[1]),\n second: 0,\n millisecond: 0,\n });\n\n const endMoment = moment(date).set({\n hour: Number(end.split(':')[0]),\n minute: Number(end.split(':')[1]),\n second: 0,\n millisecond: 0,\n });\n\n // If end time is before start time, add 24 hours to end time\n if (endMoment.isBefore(startMoment)) {\n endMoment.add(1, 'day');\n }\n\n const duration = endMoment.diff(startMoment, 'milliseconds');\n setCalculatedDuration(duration);\n }\n }\n });\n\n return () => subscription.unsubscribe();\n }, [watch, date]);\n\n return (\n <>\n
\n
Choose Time Duration
\n\n {/* Schedule / Duration */}\n
\n
\n
Start
\n\n (\n \n )}\n />\n
\n\n
\n
Duration
\n
\n \n\n {formatDurationInMsToHourMinutes(calculatedDuration)}\n
\n
\n\n
\n
End
\n\n (\n \n )}\n />\n
\n
\n\n {classType === 'MULTIPLE' && (\n
\n Unable to change schedule for services with multiple guests.\n
\n )}\n\n {/* Event Details */}\n
\n
Event Details
\n\n
\n
{title}
\n
\n {firstname} {lastname} - {profession}\n
\n
{sessions} sessions
\n
\n
\n\n
\n \n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useEffect, useState } from 'react';\nimport { useLocation, useParams, useSearchParams } from 'react-router-dom';\nimport { CalendarComponent } from '../components/Calendar';\nimport { EmptyUI } from '../components/EmptyUI';\nimport { ConfirmScheduleForm } from '../components/Forms/ConfirmScheduleForm';\nimport { VideoIcon } from '../components/icons';\nimport Loader from '../components/Loader/Loader';\nimport { useBreadcrumbs } from '../contexts';\nimport { getConflicts, getService } from '../services';\nimport { Service, UpcomingAppointment } from '../types';\nimport { AvailableHour } from '../types/AvailableHour';\nimport { Conflict } from '../types/Conflict';\nimport {\n formatDurationInMsToHourMinutes,\n generateUpcomingAppointments,\n getTimezoneAbbreviation,\n} from '../utils';\n\nexport const BookServicePage: React.FC = () => {\n const { serviceId } = useParams();\n const [selectedDay, setSelectedDay] = useState(null);\n const location = useLocation();\n const { setBreadcrumbs } = useBreadcrumbs();\n const [searchParams, _] = useSearchParams();\n\n const appointmentId: string | null = searchParams.get('appointmentId');\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Services',\n path: 'services',\n },\n {\n name: 'Book',\n },\n ]);\n }, [location.pathname]);\n\n const [service, setService] = useState();\n\n const [upcomingAppointment, setUpcomingAppointments] = useState<\n UpcomingAppointment[]\n >([]);\n\n useEffect(() => {\n if (!serviceId) return;\n\n const fetchService = async () => {\n try {\n const data = await getService(serviceId);\n\n setService(data);\n\n const schedule = data?.availabilityHours\n ? generateUpcomingAppointments(\n data.availabilityHours,\n moment().get('M'),\n moment().get('y'),\n )\n : [];\n setUpcomingAppointments(schedule);\n } catch (e) {\n console.error(e);\n }\n };\n\n fetchService();\n }, [serviceId]);\n\n const handleChangeMonth = (month: number, year: number) => {\n\n const schedule = service?.availabilityHours\n ? generateUpcomingAppointments(service.availabilityHours, month, year)\n : [];\n setUpcomingAppointments(schedule);\n };\n\n const [selectedStartTime, setSelectedStartTime] = useState(null);\n const [selectedEndTime, setSelectedEndTime] = useState(null);\n\n // Function to handle the time selection\n const handleTimeSelection = (startTime: Date, endTime: Date) => {\n /// scroll back up\n window.scrollTo(0, 0);\n setSelectedStartTime(startTime);\n setSelectedEndTime(endTime);\n };\n\n const handleAvailableSelection = (value: AvailableHour) => {\n setSelectedStartTime(new Date(value.start));\n setSelectedEndTime(new Date(value.end));\n };\n\n const handleSelectDay = (day: Date) => {\n /// reset times\n setSelectedStartTime(null);\n setSelectedEndTime(null);\n setSelectedDay(day);\n };\n\n if (!service) {\n return (\n <>\n
\n \n
\n \n );\n }\n\n return (\n <>\n
\n
\n
\n {service.host?.firstname} {service.host?.lastname}\n
\n
{service.title}
\n
\n
\n handleSelectDay(day)}\n events={\n service.classType === 'MULTIPLE'\n ? upcomingAppointment.map((e) => ({\n startTime: moment(e.startTime),\n }))\n : []\n }\n onChangeMonth={handleChangeMonth}\n />\n\n {service.classType === 'MULTIPLE' && selectedDay && (\n \n )}\n\n {service.classType === 'ONE_ON_ONE' && selectedDay && (\n
\n handleTimeSelection(start, end)}\n />\n
\n )}\n\n {selectedDay && selectedStartTime && selectedEndTime && (\n
\n \n
\n )}\n
\n
\n \n );\n};\n\ninterface TimeSelectorProps {\n hostId: string;\n duration: number;\n selectedDay: Date;\n onSelectTime: (start: Date, end: Date) => void;\n}\n\nexport const TimeSelector: React.FC = ({\n hostId,\n duration,\n selectedDay,\n onSelectTime,\n}: TimeSelectorProps) => {\n const [conflicts, setConflicts] = useState([]);\n\n const handleTimeTapped = (time: number) => {\n if (!selectedDay) return; // Ensure selectedDay is available\n\n // Create a new Date object from selectedDay and set hour and minute\n const startTime = moment(selectedDay).hour(time).minute(0).second(0); // Set hour to the tapped time and reset minutes and seconds\n\n const endTime = startTime.clone().add(duration, 'milliseconds');\n console.log(`parsedTime ${startTime.format('hh:mm A')}`); // Logs the formatted time, e.g., \"02:00 PM\"\n\n onSelectTime(startTime.toDate(), endTime.toDate());\n };\n\n useEffect(() => {\n const fetchConflicts = async () => {\n try {\n const response = await getConflicts({\n hostId,\n date: selectedDay,\n });\n\n /// simplify conflicts by merging slots\n /// sort by start time\n response.sort((a, b) => a.start.getTime() - b.start.getTime());\n\n const merge = mergeTimeSlots(response);\n\n setConflicts(merge);\n } catch (e) {\n console.error(e);\n }\n };\n\n fetchConflicts();\n }, [selectedDay]);\n\n // Debug logging to help verify the times\n useEffect(() => {\n conflicts.forEach(conflict => {\n console.log('Conflict time:', {\n start: moment(conflict.start).format('HH:mm'),\n end: moment(conflict.end).format('HH:mm'),\n startPosition: timeToPosition(conflict.start),\n endPosition: timeToPosition(conflict.end)\n });\n });\n }, [conflicts]);\n\n const mergeTimeSlots = (timeSlots: Conflict[]): Conflict[] => {\n if (timeSlots.length <= 1) return timeSlots;\n\n // Convert start and end to Date objects for easier comparison\n const slots = timeSlots.map((slot) => ({\n ...slot,\n start: new Date(slot.start),\n end: new Date(slot.end),\n }));\n\n // Sort slots by start time\n slots.sort((a, b) => a.start.getTime() - b.start.getTime());\n\n const merged: Conflict[] = [];\n let currentSlot = slots[0];\n\n for (let i = 1; i < slots.length; i++) {\n const nextSlot = slots[i];\n\n if (currentSlot.end >= nextSlot.start) {\n // Merge overlapping slots by updating the end time\n currentSlot.end = new Date(\n Math.max(currentSlot.end.getTime(), nextSlot.end.getTime()),\n );\n } else {\n // No overlap; finalize the current slot and start a new one\n merged.push({\n ...currentSlot,\n start: currentSlot.start,\n end: currentSlot.end,\n });\n currentSlot = nextSlot;\n }\n }\n\n // Add the final merged slot\n merged.push({\n ...currentSlot,\n start: currentSlot.start,\n end: currentSlot.end,\n });\n\n return merged;\n };\n\n const generateHourlySchedule = () => {\n const times: string[] = [];\n let hour = 0;\n\n // Loop through 24 hours\n for (let i = 0; i < 24; i++) {\n const period = hour < 12 ? 'AM' : 'PM';\n const formattedHour = hour % 12 === 0 ? 12 : hour % 12;\n times.push(`${formattedHour}:00 ${period}`);\n hour++;\n }\n\n return times;\n };\n\n const schedule = generateHourlySchedule();\n\n // Convert a time string (HH:mm) to a position in percentage\n const timeToPosition = (time: Date) => {\n const hours = moment(time).hours();\n const minutes = moment(time).minutes();\n // Each hour is 60px (h-15 = 3.75rem = 60px)\n return (hours * 60) + minutes;\n };\n\n // Calculate height of the meeting block based on start and end times\n // const calculateHeight = (start: Date, end: Date) => {\n // const startMinutes = start.getTime() / (1000 * 60); // Convert start to minutes since epoch\n // const endMinutes = end.getTime() / (1000 * 60); // Convert end to minutes since epoch\n\n // const height = ((endMinutes - startMinutes) / (24 * 60)) * 100;\n\n // console.log(`height ${height}`);\n\n // return height;\n // };\n\n return (\n <>\n
\n
Select Time
\n
Duration: {formatDurationInMsToHourMinutes(duration)}
\n
\n
{/* 24 hours * 60px = 1440px */}\n {/* Hourly Time Labels */}\n {schedule.map((time, index) => (\n \n {time}\n handleTimeTapped(index)}\n />\n
\n ))}\n\n {/* Meeting Blocks */}\n {conflicts.map((conflict, idx) => {\n const top = timeToPosition(conflict.start);\n const height = timeToPosition(conflict.end) - timeToPosition(conflict.start);\n\n return (\n \n );\n })}\n \n \n );\n};\n\ninterface AvailableHoursSelectorProps {\n availableHours: AvailableHour[];\n serviceTitle: string;\n onClick: (value: AvailableHour) => void;\n date: Date;\n}\n\nexport const AvailableHoursSelector = ({\n availableHours,\n serviceTitle,\n onClick,\n date,\n}: AvailableHoursSelectorProps) => {\n\n /// filter\n const filteredAvailableHours = availableHours.filter(\n (e) => moment(e.start).day() === moment(date).day(),\n );\n\n return (\n <>\n {/* Today's Schedule */}\n
\n {filteredAvailableHours.length === 0 && (\n
\n \n
\n )}\n\n {filteredAvailableHours.length > 0 && (\n <>\n
\n {moment(date).isSame(moment(), 'date')\n ? \"Today's\"\n : moment(date).format('MMMM DD, Y')}{' '}\n Schedule\n
\n\n
\n {filteredAvailableHours.map((e, index) => {\n const localStart = e.start;\n const localEnd = e.end;\n\n return (\n onClick(e)}\n className={`flex h-[68px] cursor-pointer flex-row rounded`}\n >\n {/* Side border */}\n
\n\n {/* content */}\n \n \n {/* Time schedule */}\n \n {moment(localStart).format('hh:mm A')} -{' '}\n {moment(localEnd).format('hh:mm A')}{' '}\n {getTimezoneAbbreviation()}\n \n\n \n {/* video icon */}\n \n
\n
\n \n {serviceTitle}\n
\n \n \n );\n })}\n \n \n )}\n \n \n );\n};\n","import {\n DefaultVideoPlaceholder,\n LoadingIndicator,\n StreamVideoParticipant,\n useCall,\n useCallStateHooks,\n useConnectedUser,\n VideoPreview,\n} from '@stream-io/video-react-sdk';\nimport { useNavigate } from 'react-router-dom';\nimport { FilledButton, IconButton } from './Buttons';\n\nimport moment, { Moment } from 'moment';\nimport '../css/stream_video.css';\nimport { AppointmentStatus, useAppointmentRealTimeStatus } from '../hooks';\nimport { AppointmentSession } from '../types';\nimport { showError } from '../utils';\nimport {\n CameraIcon,\n MicOffIcon,\n MicOnIcon,\n VideoOffIcon,\n VideoOnIcon,\n} from './icons';\n\ninterface CallPreviewProps {\n appointment: AppointmentSession;\n}\n\nexport const CallPreview: React.FC = ({\n appointment,\n}: CallPreviewProps) => {\n const call = useCall();\n const { useLocalParticipant, useMicrophoneState, useCameraState } =\n useCallStateHooks();\n const { microphone, isEnabled: isMicEnabled } = useMicrophoneState();\n const { camera, isEnabled: isVideoEnabled } = useCameraState();\n\n const localParticipant = useLocalParticipant();\n\n const navigate = useNavigate();\n\n const handleJoinCall = () => {\n if (!call) return;\n\n navigate(`/appointment/${call.id}/call`);\n };\n\n if (!call) {\n return ;\n }\n\n return (\n
\n
\n \n\n {/* Overlay with User Info */}\n
\n {localParticipant?.name}\n {isMicEnabled ? (\n \n ) : (\n \n )}\n
\n
\n\n {/* */}\n
\n \n ) : (\n \n )\n }\n onClick={() => microphone.toggle()}\n ariaLabel=\"mic\"\n />\n\n \n ) : (\n \n )\n }\n onClick={() => camera.toggle()}\n ariaLabel=\"video on\"\n />\n
\n\n
\n Waiting for the host to start\n
\n\n
\n \n
\n
\n );\n};\n\ninterface JoinCallButtonProps {\n startTime: Moment;\n endTime: Moment;\n onClick: () => void;\n}\nconst JoinCallButton: React.FC = ({\n startTime,\n endTime,\n onClick,\n}: JoinCallButtonProps) => {\n const status: AppointmentStatus = useAppointmentRealTimeStatus(\n startTime,\n endTime,\n );\n\n return status === AppointmentStatus.ONGOING ? (\n \n ) : (\n \n showError(\n 'Please wait until 5 minutes before the appointment starts to join.',\n )\n }\n size=\"lg\"\n />\n );\n};\n\n// Custom Placeholder Components\nconst NoCameraPreview: React.FC = () => (\n
\n \n
\n);\n\nconst StartingCameraPreview: React.FC = () => (\n
\n \n
\n);\n\nexport const SkeletonCallPreview: React.FC = () => (\n
\n
\n {/* Skeleton for VideoPreview */}\n
\n\n {/* Overlay Skeleton for User Info */}\n
\n
{' '}\n {/* Placeholder for name */}\n
{' '}\n {/* Placeholder for mic icon */}\n
\n
\n\n {/* Skeleton for Mic and Video Buttons */}\n
\n
{' '}\n {/* Mic Button */}\n
{' '}\n {/* Video Button */}\n
\n\n {/* Skeleton for Waiting Text */}\n
\n
\n
\n\n {/* Skeleton for Join Button */}\n
\n
\n
\n
\n);\n\nexport const DisabledVideoPreview = () => {\n const connectedUser = useConnectedUser();\n if (!connectedUser) return null;\n\n return (\n
\n \n
\n );\n};\n","import {\n Call,\n StreamCall,\n StreamVideo,\n StreamVideoClient,\n} from '@stream-io/video-react-sdk';\nimport { useEffect, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { CallPreview, SkeletonCallPreview } from '../components/CallPreview';\nimport { STREAM_API_KEY } from '../constants/streamApiKey';\nimport { getAppointmentSession, tokenProvider } from '../services';\nimport { AppointmentSession } from '../types';\nimport { showError } from '../utils';\n\nexport const CallLobby: React.FC = () => {\n const { id } = useParams();\n const [call, setCall] = useState();\n const [client, setClient] = useState();\n const [appointment, setAppointment] = useState(\n null,\n );\n\n useEffect(() => {\n const initializeClient = async () => {\n const user = localStorage.getItem('USER');\n const parsedUser = user ? JSON.parse(user) : null;\n\n if (!parsedUser) return;\n\n const myClient = StreamVideoClient.getOrCreateInstance({\n apiKey: STREAM_API_KEY,\n user: {\n id: parsedUser.id,\n name: `${parsedUser.firstname} ${parsedUser.lastname}`,\n },\n tokenProvider,\n });\n\n setClient(myClient);\n }\n\n initializeClient();\n\n return () => {\n client?.disconnectUser();\n };\n }, []);\n\n useEffect(() => {\n const initializeCall = async () => {\n if (client && id) {\n const callType = 'appointment';\n const callId = id;\n\n const call = client.call(callType, callId);\n\n try {\n const appt = await getAppointmentSession(id);\n\n setAppointment(appt);\n\n // await call.join();\n setCall(call);\n } catch (error) {\n console.error('Error joining the call:', error);\n showError(\n 'Failed to initialize call. Reload the page and try again.',\n );\n }\n }\n };\n\n initializeCall();\n }, [client, id]);\n\n if (!client) {\n return (\n
\n Client failed to initialize. Please reload.\n
\n );\n }\n\n return (\n <>\n
\n
\n
\n
Before You Join
\n
\n Set up your audio and video\n
\n\n {/* video preview */}\n \n {!call ? (\n \n ) : (\n \n {appointment && }\n \n )}\n \n
\n
\n
\n \n );\n};\n","import moment from 'moment';\nimport { useCallback, useEffect, useState } from 'react';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport { Avatar } from '../components/Avatar';\nimport { FilledButton } from '../components/Buttons/FilledButton';\nimport { OutlinedButton } from '../components/Buttons/OutlinedButton';\nimport { DataLoader } from '../components/DataLoader';\nimport { useDialog } from '../components/DialogContext';\nimport { CancelAppointmentForm } from '../components/Forms/CancelAppointmentForm';\nimport { useBreadcrumbs } from '../contexts';\nimport {\n getAppointmentSession,\n payAppointment,\n} from '../services/appointments';\nimport { getOrCreateChannel } from '../services/messages';\nimport { AppointmentSession } from '../types';\nimport {\n calculateDuration,\n formatCurrency,\n getInitials,\n getTimezoneAbbreviation,\n} from '../utils';\nimport { showError, showSuccess } from '../utils/showToast';\n\nexport const PayAppointmentPage: React.FC = () => {\n const { id } = useParams();\n const navigate = useNavigate();\n const [submitting, setSubmitting] = useState(false);\n const [isPaid, setIsPaid] = useState(false);\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const { openDialog, closeDialog } = useDialog();\n\n const fetchAppointment = useCallback(async () => {\n if (!id) throw Error('No ID found');\n\n try {\n return await getAppointmentSession(id);\n } catch (e) {\n throw e;\n }\n }, [id]);\n\n useEffect(() => {\n setBreadcrumbs([\n {\n name: 'Transactions',\n path: 'transactions',\n },\n {\n name: 'Pay',\n },\n ]);\n }, [location]);\n\n const handleMessageTap = async (userId: string) => {\n /// generate channel\n const channel = await getOrCreateChannel({ otherUserId: userId });\n\n console.dir(channel);\n\n if (channel !== null) {\n /// TODO: generate chat id\n navigate(`/messages/${channel.id}`);\n\n return;\n }\n\n showError('Channel not found');\n };\n\n const showTermsAndConditions = (participantId: string) => {\n openDialog({\n title: 'Agree to terms and conditions',\n content:\n \"By confirming this payment, you acknowledge that the transaction is handled solely by the host. All refunds and disputes are to be addressed between you and the host; Tellycom has no involvement or authority over the transaction. Additionally, you agree to Tellycom's privacy policy and terms and conditions, and have reviewed and agreed to the host's cancellation policy. Tellycom is not liable for the service provided or any agreements made.\",\n actions: [\n ,\n {\n closeDialog();\n handlePayNow(participantId);\n }}\n />,\n ],\n });\n };\n\n const handlePayNow = async (partipantId: string) => {\n //\n\n setSubmitting(true);\n try {\n const { url } = await payAppointment(partipantId);\n\n if (url) {\n /// open url in a new tab\n const stripeWindow = window.open(url, '_blank');\n\n if (!stripeWindow) {\n alert('Popup was blocked! Please enable popups for this site.');\n }\n\n openDialog({\n title: 'Payment in progress',\n content: 'Please refresh the page after payment is complete.',\n actions: <>\n {\n window.location.reload();\n }}\n />\n ,\n });\n } else {\n setIsPaid(true);\n\n showSuccess('Successfully paid for the appointment.');\n\n /// refresh page\n window.location.reload();\n }\n } catch (e) {\n showError((e as Error).message);\n } finally {\n setSubmitting(false);\n }\n };\n\n const handleCancel = async (appointmentSessionId: string) => {\n openDialog({\n title: 'Cancel Appointment',\n content: (\n <>\n \n \n ),\n width: 384,\n });\n };\n\n return (\n <>\n }\n renderData={(appointment: AppointmentSession) => {\n return (\n <>\n
\n
\n {/* Service Gallery */}\n \n\n {/* Rate Fee */}\n
\n Rate Fee\n\n \n ${formatCurrency(appointment.price / 100)}\n \n
\n\n
\n\n {(appointment.ownAppointmentData?.isPaid === true || isPaid) ? (\n <>\n
\n ALREADY PAID\n
\n \n ) : (\n
\n {\n const userId = appointment.host?.id;\n\n if (userId) {\n handleMessageTap(userId);\n }\n }}\n />\n\n handleCancel(appointment.id)}\n label=\"Cancel\"\n size=\"lg\"\n negative\n />\n\n {\n \n showTermsAndConditions(\n appointment.participantId!,\n )\n : undefined\n }\n loading={submitting}\n disabled={submitting}\n />}\n
\n )}\n
\n
\n \n );\n }}\n />\n \n );\n};\n\nconst AppointmentDetails = ({\n appointment,\n}: {\n appointment: AppointmentSession;\n}) => {\n const localDate = moment(appointment.startTime).toISOString();\n const localDateEnd = moment(appointment.endTime).toISOString();\n\n const duration = calculateDuration({\n startTime: localDate,\n endTime: localDateEnd,\n });\n\n const imageUrl = appointment.service.gallery.at(0);\n\n return (\n <>\n
\n {imageUrl && (\n \n )}\n
\n
\n
\n \n
\n
\n\n
\n
\n Host Details\n
\n\n {/* Customer name */}\n
\n Name\n\n \n {`${appointment.host?.firstname} ${appointment.host?.lastname}`}\n \n
\n\n {/* Customer email */}\n
\n Email Address\n\n {appointment.host?.email}\n
\n\n
\n Appointment Details\n
\n\n {/* Service title */}\n
\n Title\n\n {appointment.service.title}\n
\n\n {/* Service duration */}\n
\n Duration\n\n {duration}\n
\n\n {/* Service sessions */}\n
\n Sessions\n\n {appointment.service.sessions}\n
\n\n {/* Appointment date */}\n
\n Date\n\n \n {moment(localDate).format('dddd, MMMM DD, YYYY')}\n \n
\n\n {/* Appointment time */}\n
\n Time\n\n \n {moment(localDate).format('hh:mm A')} -{' '}\n {moment(localDateEnd).format('hh:mm A')} {getTimezoneAbbreviation()}\n \n
\n
\n \n );\n};\n\nconst SkeletonPayAppointmentPageDetails = () => (\n <>\n
\n
\n {/* Service Gallery Skeleton */}\n
\n\n {/* Host Avatar Skeleton */}\n
\n
\n
\n\n {/* Host and Appointment Details Skeleton */}\n
\n {/* Host Details Title */}\n
\n\n {/* Skeleton for each detail row */}\n {[\n 'Name',\n 'Email Address',\n 'Title',\n 'Duration',\n 'Sessions',\n 'Date',\n 'Time',\n ].map((_, index) => (\n
\n
\n
\n
\n ))}\n
\n\n {/* Rate Fee Skeleton */}\n
\n
\n
\n
\n\n {/* Action Buttons Skeleton */}\n
\n
\n
\n
\n
\n
\n
\n
\n \n);\n","import moment from 'moment';\nimport { useEffect, useState } from 'react';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { AppointmentRequested } from '../components/AppointmentRequest';\nimport { CalendarComponent } from '../components/Calendar';\nimport { useDialog } from '../components/DialogContext';\nimport {\n ConfirmScheduleForm,\n ConfirmScheduleFormValues,\n} from '../components/Forms/ConfirmScheduleForm';\nimport Loader from '../components/Loader/Loader';\nimport { useBreadcrumbs } from '../contexts/BreadcrumbContext';\nimport { getService, rescheduleAppointment } from '../services';\nimport { Service, UpcomingAppointment } from '../types';\nimport { AvailableHour } from '../types/AvailableHour';\nimport { generateUpcomingAppointments, showError } from '../utils';\nimport { AvailableHoursSelector, TimeSelector } from './BookService';\n\nexport const RescheduleAppointmentPage: React.FC = () => {\n const location = useLocation();\n const { id } = useParams();\n const queryParams = new URLSearchParams(location.search);\n const serviceId = queryParams.get('serviceId') || '';\n\n const [service, setService] = useState(null);\n const { openDialog, closeDialog } = useDialog();\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([\n { name: 'Appointments', path: 'appointment' },\n { name: 'Reschedule' },\n ]);\n }, [location.pathname]);\n\n // load appointment\n\n // load service\n useEffect(() => {\n const loadService = async () => {\n try {\n const response = await getService(serviceId);\n\n setService(response);\n } catch (e) {\n console.log(e);\n }\n };\n\n loadService();\n }, [serviceId]);\n\n const [selectedDay, setSelectedDay] = useState(null);\n\n const [upcomingAppointment, setUpcomingAppointments] = useState<\n UpcomingAppointment[]\n >([]);\n\n useEffect(() => {\n if (!serviceId) return;\n\n const fetchService = async () => {\n try {\n const data = await getService(serviceId);\n\n setService(data);\n\n const schedule = data?.availabilityHours\n ? generateUpcomingAppointments(\n data.availabilityHours,\n moment().get('M'),\n moment().get('y'),\n )\n : [];\n setUpcomingAppointments(schedule);\n } catch (e) {\n console.log(e);\n }\n };\n\n fetchService();\n }, [serviceId]);\n\n const handleChangeMonth = (month: number, year: number) => {\n console.log(`handleChangeMonth ${month}`);\n console.log(`handleChangeYear ${year}`);\n\n const schedule = service?.availabilityHours\n ? generateUpcomingAppointments(service.availabilityHours, month, year)\n : [];\n setUpcomingAppointments(schedule);\n };\n\n const [selectedStartTime, setSelectedStartTime] = useState(null);\n const [selectedEndTime, setSelectedEndTime] = useState(null);\n\n // Function to handle the time selection\n const handleTimeSelection = (startTime: Date, endTime: Date) => {\n setSelectedStartTime(startTime);\n setSelectedEndTime(endTime);\n };\n\n const handleAvailableSelection = (value: AvailableHour) => {\n setSelectedStartTime(new Date(value.start));\n setSelectedEndTime(new Date(value.end));\n };\n\n const handleSelectDay = (day: Date) => {\n /// reset times\n setSelectedStartTime(null);\n setSelectedEndTime(null);\n setSelectedDay(day);\n };\n\n const handleCloseDialog = () => closeDialog();\n\n const onSubmit = async (data: ConfirmScheduleFormValues) => {\n try {\n const startMoment = moment(selectedDay).set({\n hour: Number(data.start.split(':')[0]),\n minute: Number(data.start.split(':')[1]),\n second: 0, // Optional, depending on your requirement\n millisecond: 0,\n });\n\n const endMoment = moment(selectedDay).set({\n hour: Number(data.end.split(':')[0]),\n minute: Number(data.end.split(':')[1]),\n second: 0, // Optional, depending on your requirement\n millisecond: 0,\n });\n\n if (!id) return;\n\n const response = await rescheduleAppointment(\n id,\n startMoment.toDate(),\n endMoment.toDate(),\n );\n\n console.log(response);\n\n openDialog({\n content: (\n \n ),\n });\n } catch (e) {\n console.log(e);\n showError((e as Error).message);\n }\n };\n\n if (!service) {\n return (\n <>\n
\n \n
\n \n );\n }\n\n return (\n <>\n
\n
\n
\n {service.host?.firstname} {service.host?.lastname}\n
\n
{service.title}
\n
\n
\n handleSelectDay(day)}\n events={\n service.classType === 'MULTIPLE'\n ? upcomingAppointment.map((e) => ({\n startTime: moment(e.startTime),\n }))\n : []\n }\n onChangeMonth={handleChangeMonth}\n />\n\n {service.classType === 'MULTIPLE' && selectedDay && (\n \n )}\n\n {service.classType === 'ONE_ON_ONE' && selectedDay && (\n
\n handleTimeSelection(start, end)}\n />\n
\n )}\n\n {selectedDay && selectedStartTime && selectedEndTime && (\n
\n \n
\n )}\n
\n
\n \n );\n};\n","import { yupResolver } from '@hookform/resolvers/yup';\nimport { useEffect, useState } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useNavigate, useSearchParams } from 'react-router-dom';\nimport * as yup from 'yup';\nimport eye from '../assets/eye.svg';\nimport { FilledButton } from '../components/Buttons';\nimport { useDialog } from '../components/DialogContext';\nimport { SuccessIcon } from '../components/icons';\nimport { PasswordValidationRule } from '../components/PasswordValidationRule';\nimport { resetPassword } from '../services';\nimport { showError } from '../utils';\n\nconst schema = yup.object().shape({\n password: yup.string().required(),\n confirmPassword: yup.string().required(),\n});\n\ntype FormValues = {\n password: string;\n confirmPassword: string;\n};\n\nexport const ResetPasswordPage: React.FC = () => {\n const [showPassword, setShowPassword] = useState(false);\n const [token, setToken] = useState(null);\n const [email, setEmail] = useState(null);\n\n const [searchParams] = useSearchParams();\n\n const togglePasswordVisibility = () => setShowPassword((prev) => !prev);\n\n const { openDialog, closeDialog } = useDialog();\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n watch,\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n ///\n const passwordValue = watch('password') || '';\n\n const isValidLength = passwordValue.length >= 8;\n const hasUppercase = /[A-Z]/.test(passwordValue);\n const hasLowercase = /[a-z]/.test(passwordValue);\n const hasSymbol = /[\\W_]/.test(passwordValue);\n const hasNumber = /[0-9]/.test(passwordValue);\n\n const navigate = useNavigate();\n\n useEffect(() => {\n const tokenFromQuery = searchParams.get('token');\n const emailFromQuery = searchParams.get('email');\n\n setToken(tokenFromQuery);\n setEmail(emailFromQuery);\n }, [searchParams]);\n\n const onSubmit = async (data: FormValues) => {\n try {\n await resetPassword({\n token: token ?? 'TOKEN',\n password: data.password,\n confirmPassword: data.confirmPassword,\n });\n\n openDialog({\n title: 'Success!',\n centerTitle: true,\n centerContent: true,\n icon: ,\n content: 'Successfully updated password. You may login now.',\n actions: (\n <>\n {\n closeDialog();\n navigate(`/login`);\n }}\n />\n \n ),\n });\n } catch (e) {\n showError((e as Error).message);\n }\n };\n\n return (\n <>\n
\n
\n
Reset Password
\n\n
\n for \n {email}\n
\n\n
\n
\n
\n Password\n
\n \n
\n \n
\n
\n
\n
\n \n\n \n\n \n\n \n\n \n
\n
\n Repeat Password\n
\n \n
\n \n
\n
\n\n {errors.confirmPassword && (\n
\n {errors.confirmPassword.message}\n
\n )}\n
\n\n
\n\n \n
\n \n
\n
\n \n );\n};\n","import { useCallback, useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useLocation, useParams } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport { ServiceCard } from '../components/HostProfile';\nimport { SkeletonServiceCard } from '../components/skeletons';\nimport { useBreadcrumbs } from '../contexts';\nimport { getServicesByUser, getUserById } from '../services';\nimport { selectServices, selectUser } from '../store';\nimport { TellyUser } from '../types';\nimport { Helmet } from 'react-helmet-async';\nimport { APP_NAME } from '../constants';\n\nexport const ServicesPage: React.FC = () => {\n const { userId } = useParams();\n\n const currentUserServices = useSelector(selectServices);\n const currentUser = useSelector(selectUser);\n const [user, setUser] = useState(currentUser);\n\n const { setBreadcrumbs } = useBreadcrumbs();\n\n const location = useLocation();\n\n /// every time the path changes\n useEffect(() => {\n setBreadcrumbs([{ name: 'Services', path: '' }]);\n }, [location.pathname]);\n\n const fetchServices = useCallback(async () => {\n if (!userId) {\n /// always return fresh services list\n // if (currentUserServices.length) {\n // return currentUserServices;\n // }\n\n if (!currentUser) return [];\n\n return await getServicesByUser(currentUser.id);\n } else {\n // Fetch data for a different user\n const data = await getServicesByUser(userId);\n\n return data;\n }\n }, [userId, currentUserServices]);\n\n const fetchUser = async () => {\n if (userId) {\n const data = await getUserById(userId);\n\n setUser(data);\n }\n };\n\n useEffect(() => {\n fetchUser();\n }, [fetchUser, userId]);\n\n return (\n <>\n \n Services - {APP_NAME}\n \n
\n
\n
Services
\n
\n\n {user && (\n (\n
\n {[...services]\n .sort((a, b) => a.title.localeCompare(b.title))\n .map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n />\n )}\n
\n \n );\n};\n","import { useNavigate } from \"react-router-dom\";\nimport { FilledButton } from \"../components/Buttons\";\nimport { SuccessIcon } from \"../components/icons\";\nimport { LogoWithTitle } from \"../components/LogoWithTitle\";\n\nexport const StripeSuccessPage: React.FC = () => {\n const navigate = useNavigate();\n\n return
\n \n \n
Stripe Account Connected
\n
You may go back to the app.
\n navigate('/dashboard')} />\n
;\n};\n","import { useCallback } from 'react';\nimport { useNavigate, useSearchParams } from 'react-router-dom';\nimport { getAppointmentSession } from '../services';\nimport { SuccessIcon } from '../components/icons';\nimport { FilledButton } from '../components/Buttons';\nimport { LogoWithTitle } from '../components/LogoWithTitle';\nimport { AppDispatch, loadUserAsync, switchRoleAsync } from '../store';\nimport { useDispatch } from 'react-redux';\n\nexport const StripeTransactionSuccess: React.FC = () => {\n const [searchParams] = useSearchParams();\n\n const fetchAppointment = useCallback(async () => {\n const transactionId = searchParams.get('appointmentSessionId');\n\n if (!transactionId) {\n throw 'No appointment session ID';\n }\n\n try {\n const trans = await getAppointmentSession(transactionId);\n\n return trans;\n } catch (e) {\n throw e;\n }\n }, [searchParams]);\n\n console.log(fetchAppointment);\n\n const navigate = useNavigate();\n\n console.log(searchParams);\n\n const dispatch = useDispatch();\n\n return (\n <>\n {\n searchParams.size == 0 &&
\n \n \n
Payment successful
\n
You can return to the app. If your host subscription isn\\'t showing, try logging in again.
\n {\n dispatch(switchRoleAsync(\"HOST\"));\n dispatch(loadUserAsync(true));\n navigate('/dashboard');\n }} />\n
\n }\n\n {\n searchParams.size > 0 &&
\n \n \n
Payment successful
\n
Your payment has been processed. You can return to the app. For issues, please contact support at support@tellycom.io.
\n {\n navigate('/dashboard');\n }} />\n
\n }\n\n \n );\n};\n\nexport const StripeTransactionError = () => {\n return (\n <>\n
\n Payment Failed\n
\n \n );\n};\n","import { useCallback } from 'react';\nimport { useNavigate, useParams } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport Loader from '../components/Loader/Loader';\nimport { ServiceInfo } from '../components/ServiceInfo';\nimport { getService } from '../services';\nimport { Host, Service } from '../types';\n\nexport const ViewServicePage = () => {\n const { id } = useParams();\n\n const navigate = useNavigate();\n\n const loadData = useCallback(async () => {\n if (!id) {\n throw Error('No service id found');\n }\n\n return await getService(id);\n }, [id]);\n\n return (\n <>\n
\n
\n (\n
\n \n
\n )}\n renderData={(service: Service) => (\n
\n \n
\n )}\n />\n
\n
\n \n );\n};\n","import { useCallback } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { DataLoader } from '../components/DataLoader';\nimport { getTransaction } from '../services';\nimport { Transaction } from '../types';\n\nexport const ViewTransaction: React.FC = () => {\n const { transactionId } = useParams();\n\n const loadData = useCallback(async () => {\n if (!transactionId) throw Error('Transaction ID is required');\n\n try {\n const response = await getTransaction(transactionId);\n\n return response;\n } catch (e) {\n throw e;\n }\n }, [transactionId]);\n\n return (\n <>\n <>{JSON.stringify(data)}}\n />\n \n );\n};\n","interface Heading1Props {\n title: string;\n // white if dark, black if absent\n dark?: boolean | undefined;\n type: 1 | 2 | 3 | 4;\n}\n\nconst Heading: React.FC = ({\n title,\n dark,\n type,\n}: Heading1Props) => {\n switch (type) {\n case 1:\n return (\n \n {title}\n \n );\n case 2:\n return (\n \n {title}\n \n );\n case 3:\n return (\n \n {title}\n \n );\n case 4:\n return (\n \n {title}\n \n );\n }\n};\n\nexport default Heading;\n","interface ParagraphProps {\n size: 1 | 2 | 3;\n content?: string;\n children?: React.ReactNode;\n}\n\nconst Paragraph = ({ size, content, children } : ParagraphProps) => {\n let textSize;\n\n switch (size) {\n case 1:\n textSize = 'text-2xl font-light'; // 1.4\n break;\n case 2:\n textSize = 'text-lg font-light'; \n break;\n case 3:\n textSize = 'text-sm font-light';\n break;\n default:\n }\n\n return (\n <>\n

{content || children}

\n \n )\n}\n\nexport default Paragraph;","import Heading from \"../../components/Heading\"\nimport Paragraph from \"../../components/Paragraph\"\n\n\nexport const AboutPage = () => {\n return (\n <>\n
\n
\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n\n
\n \n
\n \n
\n \n
\n\n
\n \n
\n
\n
\n \n )\n}","import { ChangeEvent, FormEvent, useState } from 'react';\nimport Toastify from 'toastify-js';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { AxiosError } from 'axios';\nimport { contactUs } from '../../services/contactUs';\nimport { ContactUsPayload } from '../../types/ContactUs';\n\nconst x: string = 'https://x.com/tellycom_io';\nconst linkedIn: string = 'https://www.linkedin.com/company/tellycom-io/';\nconst instagram: string =\n 'https://www.instagram.com/tellycom.io?igsh=OGQ5ZDc2ODk2ZA%3D%3D&utm_source=qr';\nconst facebook: string = 'https://www.facebook.com/profile.php?';\n\nconst ContactForm = () => {\n const [token, setToken] = useState(null);\n\n const [formData, setFormData] = useState({\n firstname: '',\n lastname: '',\n email: '',\n message: '',\n });\n\n const [submitting, setSubmitting] = useState(false);\n\n const handleChange = (\n e: ChangeEvent,\n ) => {\n const { name, value } = e.target;\n\n setFormData((prevData) => ({\n ...prevData,\n [name]: value, // Update the corresponding field in formData\n }));\n };\n\n const handleSubmit = async (e: FormEvent) => {\n if (!token) return;\n\n e.preventDefault();\n\n setSubmitting(true);\n\n const payload: ContactUsPayload = {\n name: `${formData.firstname} ${formData.lastname}`,\n email: formData.email,\n subject: '[Web] Contact Us',\n description: formData.message,\n token,\n };\n\n try {\n await contactUs(payload);\n\n setSubmitting(false);\n\n Toastify({\n text: 'Success!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000',\n color: '#fff',\n },\n }).showToast();\n } catch (e) {\n setSubmitting(false);\n const err = e as AxiosError;\n console.log(err);\n\n Toastify({\n text: 'Failed!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000', // Red gradient for error\n color: '#fff', // White text for better contrast\n },\n }).showToast();\n }\n };\n\n return (\n
\n {/** Name input */}\n
\n \n Name (required)\n \n
\n
\n \n First Name\n \n \n
\n
\n \n Last Name\n \n \n
\n
\n
\n\n {/** Email input */}\n
\n \n Email (required)\n \n \n
\n\n {/** Message input */}\n
\n \n Message\n \n \n
\n\n {/** Submit button */}\n
\n \n {submitting ? 'SUBMITTING' : 'SEND'}\n \n\n setToken(null)}\n onExpired={() => setToken(null)}\n sitekey=\"6LfFTlYqAAAAAB7udEjeMxNsxYa16Oaxvxzaypjk\"\n />\n
\n
\n );\n};\n\nexport const ContactPage = () => {\n return (\n
\n
\n {/* Left Section */}\n
\n

Contact us.

\n

\n \n support@tellycom.io\n \n

\n\n
\n
\n
\n {/* Icon 3 */}\n \n \n \n \n \n \n \n \n \n \n \n \n\n {/* Icon 1 */}\n \n \n \n \n \n \n \n \n \n \n \n \n\n {/* Icon 4 */}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n {/* Icon 2 */}\n \n \n \n \n \n
\n
\n
\n
\n
\n \n
\n
\n
\n );\n};\n","import { useEffect, useRef, useState } from \"react\";\nimport Paragraph from \"../../components/Paragraph\";\nimport Heading from \"../../components/Heading\";\n\nconst faqs = [\n {\n q: 'What is Tellycom?',\n a: <>\n Tellycom is a utility application designed to streamline your digital life, a one-stop solution for scheduling, video conferencing, and secure payment processing.\n\n

What are the key features of Tellycom?

\n \n
    \n
  • Scheduling & Calendar Integration: Easily manage appointments with an integrated calendar.
  • \n
  • \n Video Conferencing: Host sessions using Stream integration.\n
  • \n
  • \n Secure Payments: Process payments directly through Stripe.\n
  • \n Messaging & Chat: Communicate with clients or guests in real-time.\n
  • \n Profiles: Create and manage personalized profiles for Hosts and Guests.\n
  • \n
\n \n },\n {\n q: 'What Can I use Tellycom for?',\n a:

You can use Tellycom for various purposes, such as teaching, consulting, paid social interactions, training, and much more. It simplifies scheduling, facilitates video meetings powered by GetStream (AWS), and ensures secure payments using Stripe, leaving you to focus on your services.

,\n },\n {\n q: 'Is Tellycom available for all platforms?',\n a:

Tellycom is a web app designed for multiple platforms, PC, iOS and Android, making it accessible to a wide range of users.

,\n },\n {\n q: 'How do I sign up for Tellycom?',\n a:

To sign up for Tellycom, download the app from your platform's app store, create an account, and follow the on-screen instructions.

,\n },\n {\n q: 'Can I schedule appointments and meetings with Tellycom?',\n a:

Yes, Tellycom allows you to schedule appointments and meetings with ease. You can set up your availability, share your schedule, and book appointments with others.

,\n },\n {\n q: 'Can I conduct group video conferences with Tellycom?',\n a:

Yes, Tellycom supports group video conferences, making it ideal for team meetings, classes, webinars, and social interactions.

\n },\n {\n q: 'How does Tellycom ensure video conferencing quality?',\n a:

Tellycom's video conferencing is powered by GetStream, providing high-quality video and audio, along with in session features like chat, file share and more.

\n },\n {\n q: 'Is Tellycom\\'s payment processing secure?',\n a:

Tellycom uses Stripe for secure payment processing. Your financial transactions are protected with industry-standard security measures.

\n },\n {\n q: 'What payment methods are accepted by Tellycom?',\n a:

Tellycom supports a range of payment methods through stripe, including credit/debit cards, digital wallets, and other popular payment options for your convenience. In order to be paid for your services, as a Host, you will need to create a Stripe account (stripe.com)

\n },\n {\n q: 'Can I receive payments for my services through Tellycom?',\n a:

Yes, Tellycom allows you to receive payments for the services you provide, whether you're an instructor, consultant, or business owner. With no commission.

\n },\n {\n q: 'How can I get support for Tellycom?',\n a:

You can access support through the app, where you'll find a help center and resources to address common issues. You can also contact our customer support team for personalized assistance.

\n },\n {\n q: 'Is there a fee for using Tellycom\\'s payment processing services?',\n a:

Tellycom offers competitive processing fees. The specific fees depend on your chosen plan and the type of transaction.

\n },\n {\n q: 'Can I report issues or provide feedback about Tellycom?',\n a:

Your feedback helps us improve the platform. Click here (tellycom.io)

\n },\n {\n q: 'How does Tellycom differ from other platforms?',\n a:

Unlike traditional platforms that charge commission fees, Tellycom offers a flat-rate subscription model. It integrates seamlessly with tools you already use, like Stream for video conferencing and Stripe for payments. Plus, Tellycom gives you a personalized link that's yours alone, free from any association with other service providers.

\n }\n];\n\ntype VoidCallback = () => void;\n\ninterface AccordionProps {\n title: string;\n content: any;\n isOpen: boolean;\n onClick: VoidCallback;\n }\n\nconst Accordion: React.FC = ({ title, content, isOpen, onClick }) => {\n const contentRef = useRef(null);\n const [maxHeight, setMaxHeight] = useState('0px');\n \n useEffect(() => {\n if (isOpen) {\n // Set max-height to content's scroll height when opening\n setMaxHeight(`${contentRef.current?.scrollHeight}px`);\n } else {\n // Reset max-height to 0 when closing\n setMaxHeight('0px');\n }\n }, [isOpen]);\n \n return (\n
\n \n \n \n \n {isOpen ? (\n \n \n \n ) : (\n \n \n \n \n )}\n \n \n \n \n
\n {content}\n
\n
\n
\n );\n };\n \nexport const FaqPage = () => {\n const [activeIndex, setActiveIndex] = useState(null);\n\n function onClick(index: number) {\n if (index === activeIndex) {\n setActiveIndex(null);\n } else {\n setActiveIndex(index);\n }\n }\n\n return (<>\n
\n
\n\n
\n \n
\n\n {\n faqs.map((faq, index) => {\n return onClick(index)} />\n })\n }\n\n
\n
\n )\n}\n","export const HowItWorksPage = () => {\n return (\n
\n {/*
*/}\n
\n

How It Works

\n
\n\n
\n {/* 16:9 Aspect Ratio */}\n \n
\n {/*
*/}\n
\n );\n};\n","export default \"__VITE_ASSET__$EYf5o1z__\"","export default \"__VITE_ASSET__BbG2uf7P__\"","export default \"__VITE_ASSET__t8JhgYGT__\"","export default \"__VITE_ASSET__CZBaOdAB__\"","export default \"__VITE_ASSET__SRlrg5c3__\"","import { NavLink } from 'react-router-dom';\nimport b1image from '../../assets/home/B1.png';\nimport videoImage from '../../assets/home/w4.png';\nimport scheduling from '../../assets/home/w6.png';\nimport paymentImage from '../../assets/home/w8.png';\nimport mainSectionImage from '../../assets/main-section-image.png';\nimport Heading from '../../components/Heading';\nimport Paragraph from '../../components/Paragraph';\nimport { trackAppStoreClick } from '../../services/metaPixel';\n\nexport const LandingPage = () => {\n const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);\n\n console.log(`isIOS ${isIOS}`);\n\n return (\n <>\n
\n
\n
\n
\n \n\n
\n

\n Introducing Tellycom, the all-in-one solution for managing and\n monetizing your services, scheduling video sessions, and\n securing payments—seamlessly combined in one suite.\n

\n
\n\n
\n \n
\n\n
\n trackAppStoreClick(\"ios\")} // Track iOS clicks\n >\n \n \n\n {!isIOS && (\n trackAppStoreClick(\"android\")} // Track iOS clicks\n >\n \n \n )}\n
\n
\n\n
\n \n
\n
\n
\n\n
\n
\n
\n \n
\n
\n
\n \n
\n

Smart Scheduling

\n\n
\n \n
\n
\n
\n
\n \n
\n\n

Payment

\n\n
\n \n
\n
\n
\n
\n \n
\n\n

Video

\n\n

\n Our video is powered by GetStream.io and built on AWS\n (Amazon). GetStream's global edge network provides a faster\n and more reliable experience for your video calls and\n livestreams.\n

\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n \n
\n\n
\n \"Login\"\n
\n\n \n\n {/*
\n \n
*/}\n
\n
\n \"Login\"\n
\n
\n
\n
\n
\n
\n \n );\n};\n","import { ChangeEvent, FormEvent, useState } from 'react';\n\nimport React from 'react';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { NavLink } from 'react-router-dom';\nimport Toastify from 'toastify-js';\nimport { contactUs } from '../../services';\nimport { ContactUsPayload } from '../../types';\nimport Paragraph from '../Paragraph';\n\nexport const Footer: React.FC = () => {\n const [email, setEmail] = useState('');\n const [captchaToken, setCaptchaToken] = useState(null);\n\n const onSubmit = async (event: FormEvent) => {\n if (!captchaToken) return;\n event.preventDefault();\n\n const payload: ContactUsPayload = {\n name: email,\n email: email,\n subject: 'Web Signup',\n description: `Web signup from ${email}`,\n token: captchaToken,\n };\n\n try {\n await contactUs(payload);\n\n Toastify({\n text: 'Success!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000',\n color: '#fff',\n },\n }).showToast();\n } catch (e) {\n Toastify({\n text: 'Failed!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000', // Red gradient for error\n color: '#fff', // White text for better contrast\n },\n }).showToast();\n }\n };\n\n return (\n
\n
\n
\n
\n \n \n TELLYCOM\n \n \n
\n\n
\n
\n
\n
\n

Explore

\n\n

\n \n How It Works\n \n

\n

\n \n Work Together\n \n

\n

\n \n About\n \n

\n

\n \n FAQ\n \n

\n

\n \n Contact\n \n

\n
\n
\n

Follow us

\n

\n \n LinkedIn\n \n

\n

\n \n Instagram\n \n

\n

\n \n Facebook\n \n

\n

\n \n X\n \n

\n
\n
\n\n
\n Copyright © 2024 Tellycom LLC,\n\n All Rights Reserved.\n\n \n \n Privacy Policy\n \n {' | '}\n \n Terms and Conditions\n \n \n
\n
\n
\n\n
\n
\n \n Sign up with your email address to receive news and updates.\n \n
\n\n \n
\n
\n ) =>\n setEmail(event.target.value)\n }\n required\n />\n \n SIGN UP\n \n
\n\n setCaptchaToken(null)}\n onExpired={() => setCaptchaToken(null)}\n sitekey=\"6LfFTlYqAAAAAB7udEjeMxNsxYa16Oaxvxzaypjk\"\n />\n
\n \n
\n
\n
\n
\n );\n};\n","export const TellyLogo = ({\n height,\n width,\n}: {\n height: number;\n width: number;\n}) => {\n return (\n \n \n \n \n \n \n );\n};\n","import { useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { NavLink, useNavigate } from 'react-router-dom';\nimport { CloseIcon } from 'stream-chat-react';\nimport { selectAuth } from '../../store';\nimport { FilledButton } from '../Buttons/FilledButton';\nimport { OutlinedButton } from '../Buttons/OutlinedButton';\nimport { TellyLogo } from '../TellyLogo';\n\nexport const LandingNavbar: React.FC = () => {\n const { user } = useSelector(selectAuth);\n const [isOpen, setIsOpen] = useState(false);\n\n const links = [\n { label: 'Home', to: '/' },\n { label: 'About', to: '/about' },\n { label: 'How It Works', to: '/how-it-works' },\n { label: 'Work Together', to: '/work-together' },\n { label: 'FAQs', to: '/faq' },\n { label: 'Contact', to: '/contact-us' },\n ];\n\n const navigate = useNavigate();\n\n const handleLogin = () => navigate('/login');\n\n const handleSignup = () => navigate('/signup');\n\n const handleGoToApp = () => navigate('/dashboard');\n\n return (\n
\n \n );\n};\n\nexport default LandingNavbar;\n","// components/LandingLayout.tsx\n\nimport React from 'react';\nimport { Outlet } from 'react-router-dom';\nimport { Footer } from '../../components/Layout/Footer';\nimport LandingNavbar from '../../components/Layout/LandingNavbar';\n\nimport 'toastify-js/src/toastify.css';\nimport '../../branding.css';\n\nconst LandingLayout: React.FC = () => {\n return (\n
\n \n
\n \n
\n
\n
\n );\n};\n\nexport default LandingLayout;\n","export const PrivacyPolicyPage = () => {\n const privacyPolicies = [\n {\n title: '1. Introduction',\n content: 'At Tellycom LLC, your privacy is important to us. This Privacy Policy outlines how we collect, use, and protect your personal information.'\n },\n {\n title: '2. Data Collection',\n content: 'We may collect information from you when you use our services. This information may include, but is not limited to, your name, email address, and any other details necessary for providing our services.'\n },\n {\n title: '3. Use of Data',\n content: 'All data collected will be used solely to enhance our services and improve user experiences. We do not sell, trade, or otherwise transfer your personal information to outside parties.'\n },\n {\n title: '4. Data Protection',\n content: 'We implement a variety of security measures to maintain the safety of your personal information. However, no method of transmission over the internet or method of electronic storage is 100% secure.'\n },\n {\n title: '5. Third-Party Services',\n content: 'Our services may integrate with third-party applications. We encourage you to review their privacy policies as we are not responsible for their data practices.'\n },\n {\n title: '6. Changes to This Policy',\n content: 'Tellycom LLC reserves the right to modify this Privacy Policy at any time. Any changes will be posted on this page, and your continued use of our services constitutes acceptance of those changes.'\n },\n {\n title: '7. Contact Information',\n content: 'If you have any questions regarding this Privacy Policy, please contact us at hello@tellycom.io. \\nBy using our services, you consent to our Privacy Policy. \\nTellycom combines multiple services and adheres to their privacy policies. The links below provide the most current privacy statements for Video (getstream.io) and payment services (handled by Stripe). Please follow these links for the latest information.'\n },\n ];\n\n return (<>\n
\n
\n\n
\n

Privacy Policy

\n
\n\n {\n privacyPolicies.map((policy, index) => {\n return (\n
\n

{policy.title}

\n\n

{policy.content}

\n
\n )\n })\n }\n\n

Getstream.io Privacy statement

\n\n

https://getstream.io/legal/privacy/

\n\n

Stripe.com Privacy statement

\n \n

https://stripe.com/privacy

\n
\n
\n )\n}\n","const TermsPage = () => {\n const terms = [\n {\n title: '1. Acceptance of Terms',\n contents: [\n 'By using Tellycom LLC’s services, you agree to abide by these Terms and Conditions. If you do not agree, please do not use our services.'\n ],\n },\n {\n title: '2. Services Provided',\n contents: ['Tellycom LLC utilizes multiple software solutions to facilitate smart scheduling and connect various software services. Our role is limited to providing a utility for connecting these services.'],\n },\n {\n title: '3. Disclaimer of Responsibility',\n contents: [\n 'Tellycom LLC is not responsible for:',\n 'The content or quality of any video services provided.',\n 'Payment transactions, which are handled by third-party providers such as GetStream.io and Stripe. Please refer to their respective terms and conditions for details.',\n ],\n },\n {\n title: '4. Transactions and Disputes',\n contents: [\n 'All transactions are solely the responsibility of the host and client. Tellycom LLC does not set the terms of services between hosts and clients. Any disputes arising from transactions or service agreements must be resolved directly between the host and the client.'\n ],\n },\n {\n title: '5. Limitation of Liability',\n contents: ['Tellycom LLC shall not be liable for any direct, indirect, incidental, or consequential damages resulting from the use of our services, including but not limited to service interruptions or losses incurred during transactions.'],\n },\n {\n title: '6. Changes to Terms',\n contents: ['Tellycom LLC reserves the right to modify these Terms and Conditions at any time. Users will be notified of any significant changes.'],\n },\n {\n title: '7. Governing Law',\n contents: ['These Terms and Conditions shall be governed by the laws of the state in which Tellycom LLC operates.'],\n },\n {\n title: '8. Contact Information',\n contents: ['For any questions regarding these Terms and Conditions, please contact us at hello@tellycom.io.','By using our services, you acknowledge that you have read, understood, and agreed to these Terms and Conditions.','Tellycom LLC combines multiple services and adheres to their terms and conditions. The links below provide the most up-to-date terms for Video (getstream.io) and payment services (handled by Stripe). Please follow these links for the latest information.'],\n },\n ];\n \n return (<>\n
\n
\n
\n

Terms and Conditions

\n
\n\n {\n terms.map((term, index) => {\n return (\n <>\n

{term.title}

\n\n {\n term.contents.map((content, index2) => {\n return

{content}

\n })\n }\n\n \n \n )\n })\n }\n\n

Get stream.io Terms and Conditions

\n\n

https://getstream.io/legal/

\n\n

Stripe Terms and Conditions

\n\n

https://stripe.com/legal/ssa

\n
\n
\n )\n}\n\nexport default TermsPage","import { useState, ChangeEvent, FormEvent } from 'react';\nimport Toastify from 'toastify-js';\nimport { contactUs } from '../../services/contactUs';\nimport Paragraph from '../../components/Paragraph';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { ContactUsPayload } from '../../types/ContactUs';\n\nconst WorkTogetherForm = () => {\n const [captchaToken, setCaptchaToken] = useState(null);\n\n const [formData, setFormData] = useState({\n firstname: '',\n lastname: '',\n email: '',\n message: '',\n signup: false,\n phone: '',\n howDidYouHearAboutUs: '',\n });\n\n console.dir(formData);\n\n const [submitting, setSubmitting] = useState(false);\n\n const handleChange = (\n e: ChangeEvent,\n ) => {\n const { name, value } = e.target;\n\n setFormData((prevData) => ({\n ...prevData,\n [name]: value, // Update the corresponding field in formData\n }));\n };\n\n const handleCheck = () => {\n setFormData((prevData) => ({\n ...prevData,\n signup: !prevData.signup, // Update the corresponding field in formData\n }));\n };\n\n const handleSubmit = async (e: FormEvent) => {\n if (!captchaToken) return;\n\n e.preventDefault();\n\n setSubmitting(true);\n\n const {\n firstname,\n lastname,\n email,\n message,\n signup,\n phone,\n howDidYouHearAboutUs,\n } = formData;\n\n const payload: ContactUsPayload = {\n name: `${formData.firstname} ${formData.lastname}`,\n email: formData.email,\n subject: '[Web] Work Together',\n token: captchaToken,\n description: `\n First Name: ${firstname}\n Last Name: ${lastname}\n Email: ${email}\n Phone: ${phone ?? 'N/A'}\n Message: ${message}\n How did you hear about us: ${howDidYouHearAboutUs}\n Signup to news and updates: ${signup ? 'Yes' : 'No'}\n `,\n };\n\n try {\n await contactUs(payload);\n\n setSubmitting(false);\n\n setFormData({\n firstname: '',\n lastname: '',\n email: '',\n message: '',\n signup: false,\n phone: '',\n howDidYouHearAboutUs: '',\n });\n\n Toastify({\n text: 'Success!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000',\n color: '#fff',\n },\n }).showToast();\n } catch (e) {\n setSubmitting(false);\n\n Toastify({\n text: 'Failed!',\n duration: 3000,\n gravity: 'top', // `top` or `bottom`\n position: 'right', // `left`, `center` or `right`\n stopOnFocus: true, // Prevents dismissing of toast on hover\n style: {\n background: '#000', // Red gradient for error\n color: '#fff', // White text for better contrast\n },\n }).showToast();\n }\n };\n\n return (\n
\n {/** Name input */}\n
\n \n Name (required)\n \n
\n
\n \n First Name\n \n \n
\n
\n \n Last Name\n \n \n
\n
\n
\n\n {/** Email input */}\n
\n \n Email (required)\n \n \n\n
\n \n\n \n Sign up for news and updates\n \n
\n
\n\n
\n \n Phone\n \n \n
\n\n
\n \n How did you hear about us\n \n
\n \n \n \n \n \n \n \n
\n \n \n \n
\n
\n
\n\n {/** Message input */}\n
\n \n Message (required)\n \n \n
\n\n {/** Submit button */}\n
\n
\n \n {submitting ? 'SUBMITTING' : 'SUBMIT'}\n \n
\n setCaptchaToken(null)}\n onExpired={() => setCaptchaToken(null)}\n sitekey=\"6LfFTlYqAAAAAB7udEjeMxNsxYa16Oaxvxzaypjk\"\n />\n
\n
\n );\n};\n\nconst WorkTogetherPage = () => {\n return (\n <>\n
\n
\n
\n

\n Let's work together\n

\n
\n\n
\n \n
\n\n
\n \n
\n
\n
\n \n );\n};\n\nexport default WorkTogetherPage;\n","import { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\n\nimport { UpgradeToTrial } from '../UpgradeToTrial';\nimport { AppDispatch, selectMembership, selectRole, switchRoleAsync } from '../../store';\nimport { Role } from '../../types/Role';\nimport { OutlinedButton } from './OutlinedButton';\nimport { showError, showSuccess } from '../../utils';\nimport { useDialog } from '../DialogContext';\nimport { FilledButton } from './FilledButton';\nimport { SwapIcon } from '../icons';\n\n\nconst SwitchRoleButton: React.FC = () => {\n const dispatch = useDispatch();\n const currentRole = useSelector(selectRole);\n const membership = useSelector(selectMembership);\n const [roleToSwitch, setRoleToSwitch] = useState(null);\n\n const handleTryHost = () => {\n openDialog({\n content: ,\n actions: (\n <>\n \n \n ),\n width: 450,\n });\n };\n\n const { openDialog, closeDialog } = useDialog();\n\n const switchRole = () => {\n const currentRole = localStorage.getItem('ROLE');\n\n const canSwitchRole = membership === 'TRIAL' || membership === 'HOST';\n\n var roleToSwitch: Role;\n\n if (currentRole === 'GUEST') {\n roleToSwitch = membership ?? 'GUEST';\n } else {\n roleToSwitch = 'GUEST';\n }\n\n if (!canSwitchRole) {\n showError(\n 'Unable to switch role. Only host and trial users can switch roles',\n );\n\n return;\n }\n\n openDialog({\n title: 'Switch Role',\n content: <>Switch to {roleToSwitch},\n actions: (\n <>\n \n\n {\n dispatch(switchRoleAsync(roleToSwitch));\n showSuccess('Successfully switched role');\n closeDialog();\n }}\n />\n \n ),\n });\n };\n\n useEffect(() => {\n if (currentRole === 'GUEST') {\n setRoleToSwitch(membership ?? 'GUEST');\n } else {\n setRoleToSwitch('GUEST');\n }\n }, [currentRole, membership]);\n\n if (currentRole === 'GUEST') {\n return <>\n }\n\n return (\n <>\n {\n (membership === 'TRIAL' || membership === 'HOST')\n ? \n Switch to {roleToSwitch}\n\n \n
\n\n : \n }\n \n );\n};\n\nexport default SwitchRoleButton;\n","import { useNavigate } from \"react-router-dom\"\nimport { FilledButton, OutlinedButton } from \"../Buttons\"\nimport { TextFormField } from \"../FormFields/TextFormField\"\nimport { LogoWithTitle } from \"../LogoWithTitle\"\nimport { AppDispatch, loginAsync, selectAuth } from \"../../store\"\nimport { useDispatch, useSelector } from \"react-redux\"\nimport { useForm } from \"react-hook-form\"\nimport * as yup from 'yup';\nimport { yupResolver } from \"@hookform/resolvers/yup\"\nimport { useEffect, useState } from \"react\"\nimport SwitchRoleButton from \"../Buttons/SwitchRoleButton\"\n\nconst schema = yup.object().shape({\n email: yup\n .string()\n .email('Must be a valid email')\n .required('Email is required'),\n password: yup\n .string()\n .min(8, 'Password must be at least 8 characters long')\n .required('Password is required'),\n});\n\ntype FormValues = {\n email: string;\n password: string;\n};\n\n\nexport const AuthNavBar = () => {\n const navigate = useNavigate();\n\n const { user } = useSelector(selectAuth);\n\n const dispatch = useDispatch();\n\n const {\n register,\n handleSubmit,\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const handleLogin = (e: FormValues) => {\n if (isSmallScreen) {\n navigate(\"/login\", { state: { returnTo: window.location.pathname } });\n } else {\n dispatch(loginAsync({ email: e.email, password: e.password, remember: true }));\n }\n }\n\n const [isSmallScreen, setIsSmallScreen] = useState(window.innerWidth < 640);\n\n useEffect(() => {\n const handleResize = () => setIsSmallScreen(window.innerWidth < 640);\n window.addEventListener(\"resize\", handleResize);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n const handleSignup = () => navigate('/signup');\n\n if (user) return
\n
\n \n\n
\n \n\n navigate('/dashboard')} />\n
\n
\n\n return <>\n
\n \n\n
\n {isSmallScreen ? (\n navigate(`/login?redirectTo=${window.location.pathname}`)} size=\"lg\" />\n ) : (\n <>\n \n \n \n \n )}\n \n
\n
\n \n}","import { Outlet } from \"react-router-dom\"\nimport { AuthNavBar } from \"./Layout/AuthNavbar\"\n\nexport const PublicRoot = () => {\n return <>\n
\n \n\n
\n \n
\n
\n \n}","import { useNavigate, useParams } from \"react-router-dom\";\nimport { useCallback } from \"react\";\nimport { getService } from \"../services\";\nimport { ServiceInfo } from \"../components/ServiceInfo\";\nimport { DataLoader } from \"../components/DataLoader\";\nimport Loader from \"../components/Loader/Loader\";\n\nexport const PublicService = () => {\n const { serviceId } = useParams();\n \n const navigate = useNavigate();\n\n const loadData = useCallback(async () => {\n if (!serviceId) {\n throw Error('No service id found');\n }\n\n return await getService(serviceId);\n }, [serviceId]);\n \n return (\n <>\n
\n
\n
} \n renderLoading={() =>
} />\n
\n
\n \n );\n}","import { Helmet } from \"react-helmet-async\"\nimport { DataLoader } from \"../components/DataLoader\"\nimport { APP_NAME } from \"../constants\"\nimport { useDispatch } from \"react-redux\"\nimport { useCallback } from \"react\"\nimport { AppDispatch, getOngoingAppointmentsAsync } from \"../store\"\nimport { OngoingCard, SkeletonOngoingCard } from \"../components/GuestProfile\"\n\nexport const OngoingAppointmentsPage = () => {\n const dispatch = useDispatch();\n\n // Fetch upcoming appointments\n const fetchOngoingAppointments = useCallback(async () => {\n const result = await dispatch(getOngoingAppointmentsAsync()).unwrap();\n return result;\n }, [dispatch]);\n\n return (\n <>\n \n Ongoing Appointments - {APP_NAME}\n \n\n
\n
\n
Ongoing Appointments
\n
\n\n (\n
\n {ongoingAppointments.map((item, index) => (\n \n ))}\n
\n )}\n renderLoading={() => (\n
\n {Array.from({ length: 4 }, (_, index) => (\n \n ))}\n
\n )}\n />\n
\n \n );\n}","import { onAuthStateChanged } from 'firebase/auth';\nimport { useEffect, useRef } from 'react';\nimport { Helmet, HelmetProvider } from 'react-helmet-async';\nimport { useDispatch, useSelector } from 'react-redux';\nimport {\n Navigate,\n Route,\n BrowserRouter as Router,\n Routes,\n} from 'react-router-dom';\nimport './App.css';\nimport CancelSubscription from './components/CancelSubscription';\nimport { CancelledTransactions } from './components/CancelledTransactions';\nimport { ChangePassword } from './components/ChangePassword';\nimport ContactList from './components/ContactList';\nimport ContactUs from './components/ContactUs';\nimport DeactivateAccount from './components/DeactivateAccount';\nimport DynamicNavigate from './components/DynamicNavigate';\nimport { EditProfile } from './components/EditProfile';\nimport {\n GuestCancelledAppointments,\n GuestUpcomingAppointments,\n} from './components/GuestAppointments';\nimport { GuestCompletedAppointments } from './components/GuestCompletedAppointments';\nimport { ChannelPage } from './components/MessageComponent';\nimport { PaidTransactions } from './components/PaidTransactions';\nimport { PendingTransactions } from './components/PendingTransactions';\nimport PrivacyPolicy from './components/PrivacyPolicy';\nimport ProtectedRoutes from './components/Routes/ProtectedRoutes';\nimport PublicRoutes from './components/Routes/PublicRoutes';\nimport { StripeAccountComponent } from './components/StripeAccount';\nimport SwitchRole from './components/SwitchRole';\nimport TermsAndConditions from './components/TermsAndConditions';\nimport { firebaseAuth } from './firebaseConfig';\nimport { VideoCall } from './pages';\nimport { AppointmentsPage } from './pages/Appointment';\nimport { BookServicePage } from './pages/BookService';\nimport { CallLobby } from './pages/CallLobby';\nimport { CreateService } from './pages/CreateService';\nimport { DashboardPage } from './pages/Dashboard';\nimport { EditService } from './pages/EditService';\nimport { ForgotPasswordPage } from './pages/ForgotPassword';\nimport { LoginPage } from './pages/Login';\nimport { MessagesPage } from './pages/Messages';\nimport { NewPassword } from './pages/NewPassword';\nimport NotFoundPage from './pages/NotFound';\nimport { NotificationsPage } from './pages/Notifications';\nimport { PayAppointmentPage } from './pages/PayAppointment';\nimport { PublicProfile } from './pages/PublicProfile';\nimport { RequestDetailsPage } from './pages/RequestDetails';\nimport { RequestsGrid, RequestsPage } from './pages/Requests';\nimport { RescheduleAppointmentPage } from './pages/RescheduleAppointment';\nimport { ResetPasswordPage } from './pages/ResetPassword';\nimport { RootScreen } from './pages/Root';\nimport { ServicesPage } from './pages/Services';\nimport SettingsPage from './pages/Settings';\nimport { SignupPage } from './pages/Signup';\nimport { StripeSuccessPage } from './pages/StripeConnectSuccess';\nimport {\n StripeTransactionError,\n StripeTransactionSuccess,\n} from './pages/StripeTransactionSuccess';\nimport { TransactionsPage } from './pages/Transactions';\nimport { UpcomingAppointmentDetailsPage } from './pages/UpcomingAppointmentDetails';\nimport { UpcomingAppointmentsPage } from './pages/UpcomingAppointments';\nimport { UserDisabledPage } from './pages/UserDisabled';\nimport { CurrentUserProfile } from './pages/UserProfile';\nimport { ViewServicePage } from './pages/ViewService';\nimport { ViewTransaction } from './pages/ViewTransaction';\nimport { AboutPage } from './pages/branding/About';\nimport { ContactPage } from './pages/branding/ContactUs';\nimport { FaqPage } from './pages/branding/Faq';\nimport { HowItWorksPage } from './pages/branding/HowItWorks';\nimport { LandingPage } from './pages/branding/Landing';\nimport LandingLayout from './pages/branding/LandingLayout';\nimport { PrivacyPolicyPage } from './pages/branding/PrivacyPolicy';\nimport TermsPage from './pages/branding/Terms';\nimport WorkTogetherPage from './pages/branding/WorkTogether';\nimport { tokenProvider } from './services/auth';\nimport {\n AppDispatch,\n loadUserAsync,\n logoutAsync,\n selectAuth,\n selectHostOrTrialRole,\n} from './store';\nimport { chatClient } from './utils';\nimport { PublicRoot } from './components/PublicRoot';\nimport { PublicService } from './pages/PublicService';\nimport { OngoingAppointmentsPage } from './pages/OngoingAppointmentsPage';\nimport { initMetaPixel } from './services/metaPixel';\n\nexport const App: React.FC = () => {\n const isTellycom = typeof window !== \"undefined\" && window.location.hostname === \"tellycom.io\";\n\n /// check the environment\n console.log(`environment MODE => ${import.meta.env.MODE}`);\n\n const { user } = useSelector(selectAuth);\n const hostOrTrialRole = useSelector(selectHostOrTrialRole);\n const isConnectingRef = useRef(false); // Track ongoing connections\n\n const dispatch = useDispatch();\n\n useEffect(() => {\n initMetaPixel();\n }, []);\n\n /// prevent increment/decrement when scrolling while number input is active\n useEffect(() => {\n const handleWheel = (_: WheelEvent) => {\n if ((document.activeElement as HTMLInputElement)?.type === \"number\") {\n (document.activeElement as HTMLInputElement).blur();\n }\n };\n\n document.addEventListener(\"wheel\", handleWheel);\n\n return () => {\n document.removeEventListener(\"wheel\", handleWheel);\n };\n }, []);\n\n useEffect(() => {\n const auth = firebaseAuth;\n const unsubscribe = onAuthStateChanged(auth, (user) => {\n\n if (user) {\n /// do not force reload the user\n dispatch(loadUserAsync(false));\n } else {\n dispatch(logoutAsync());\n }\n });\n\n // Cleanup subscription on unmount\n return () => unsubscribe();\n }, []);\n\n const initializeChatClient = async () => {\n if (isConnectingRef.current) return;\n\n isConnectingRef.current = true;\n\n if (user && !user.disabled) {\n await chatClient\n .connectUser(\n {\n id: user.id,\n name: `${user.firstname} ${user.lastname}`,\n },\n tokenProvider,\n )\n .then(() => (isConnectingRef.current = false));\n } else {\n await chatClient\n .disconnectUser()\n .then(() => (isConnectingRef.current = false));\n }\n };\n\n useEffect(() => {\n initializeChatClient();\n }, [user]);\n\n return (\n \n {/* Dynamic Head */}\n \n {isTellycom && (\n \n )}\n \n\n \n \n {/* Landing routes */}\n }>\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n } />\n \n\n }>\n {/* Public routes that do not redirect */}\n }\n />\n }\n />\n } />\n } />\n \n\n {/* Public routes for authentication */}\n }>\n } />\n } />\n } />\n } />\n } />\n\n\n \n\n {/* Protected routes */}\n }>\n }>\n } />\n } />\n\n } />\n\n } />\n } />\n\n }>\n } />\n \n\n }\n />\n } />\n } />\n } />\n } />\n\n }\n />\n\n }>\n } />\n } />\n } />\n } />\n \n\n } />\n } />\n } />\n }\n />\n } />\n\n } />\n\n }\n />\n }\n />\n }\n />\n\n }\n />\n\n }\n />\n\n }>\n {hostOrTrialRole ? (\n } />\n ) : (\n <>\n } />\n }\n />\n } />\n }\n />\n }\n />\n \n )}\n \n\n }>\n {/* redirect to switch role since we don't have a home page for settings/ */}\n }\n />\n } />\n }\n />\n } />\n } />\n } />\n }\n />\n } />\n } />\n } />\n }\n />\n\n } />\n \n \n\n } />\n\n }\n />\n\n }\n />\n\n } />\n {/* Add more protected routes here */}\n \n\n }\n />\n\n }\n />\n\n } />\n\n {/* Redirect to / for unmatched routes */}\n } />\n \n \n \n );\n};\n\nexport default App;\n","import React from 'react';\nimport { useDialog } from './DialogContext'; // Adjust import path\n\nconst Dialog: React.FC = () => {\n const { isOpen, dialogConfig, closeDialog } = useDialog();\n\n if (!isOpen || !dialogConfig) return null;\n\n return (\n
\n
\n\n \n e.stopPropagation()} /// stop from propagating to the parent div\n >\n {dialogConfig.icon && (\n
{dialogConfig.icon}
\n )}\n {dialogConfig.title && (\n \n {dialogConfig.title}\n \n )}\n\n {dialogConfig.content &&\n (typeof dialogConfig.content === 'string' ? (\n \n {dialogConfig.content}\n

\n ) : (\n
\n {dialogConfig.content}\n
\n ))}\n\n {dialogConfig.actions && (\n
\n {dialogConfig.actions}\n
\n )}\n
\n
\n \n );\n};\n\nexport default Dialog;\n","import * as Sentry from '@sentry/react';\nimport { createRoot } from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport {\n createRoutesFromChildren,\n matchRoutes,\n useLocation,\n useNavigationType,\n} from 'react-router-dom';\nimport { Chat } from 'stream-chat-react';\nimport App from './App';\nimport Dialog from './components/DialogComponent';\nimport { DialogProvider } from './components/DialogContext';\nimport { store } from './store';\nimport { chatClient } from './utils/chatClient';\n\n// styles\nimport { useEffect } from 'react';\nimport { ToastContainer } from 'react-toastify';\nimport 'react-toastify/dist/ReactToastify.css';\nimport { BreadcrumbProvider } from './contexts';\nimport './index.css';\n\nimport TagManager from 'react-gtm-module';\n\nconst tagManagerArgs = {\n gtmId: 'GTM-M7FXC4RZ'\n}\n\nTagManager.initialize(tagManagerArgs)\n\nSentry.init({\n dsn: import.meta.env.VITE_SENTRY_DNS,\n environment: import.meta.env.PROD ? 'production' : 'development',\n integrations: [\n Sentry.reactRouterV6BrowserTracingIntegration({\n useEffect,\n useLocation,\n useNavigationType,\n createRoutesFromChildren,\n matchRoutes,\n }),\n Sentry.replayIntegration(),\n ],\n tracePropagationTargets: ['localhost', 'https://telly-69502.web.app'],\n tracesSampleRate: 1.0,\n replaysSessionSampleRate: 0.1,\n replaysOnErrorSampleRate: 1.0,\n});\n\ncreateRoot(document.getElementById('root')!).render(\n // \n \n \n \n \n \n \n \n \n \n \n \n // ,\n);\n"],"names":["BreadcrumbContext","createContext","BreadcrumbProvider","children","breadcrumbs","setBreadcrumbs","useState","jsx","useBreadcrumbs","context","useContext","firebaseConfig","app","initializeApp","firebaseAuth","getAuth","getDatabase","mapServiceDtoToService","serviceDto","hours","minutes","convertMilliseconds","ms","mapUserDtoToTellyUser","data","_a","s","e","_b","w","mapWorkExperienceToWorkExperience","workExperienceDto","mapAppointmentSessionDtoToAppointmentSession","service","mapAppointmentForApprovalDtoToAppointmentForApproval","mapDataToUpcomingAppointment","d","APPOINTMENTS","SESSIONS","PARTICIPANTS","serviceColors","getForApprovalAppointments","apiClient","getUpcomingAppointments","take","skip","getAppointmentForApproval","participantId","getAppointmentSession","id","response","approveOrRejectAppointment","approveOrReject","price","reasonForCancelOrReject","getCancelledTransactions","role","getExpiredTransactions","getOngoingAppointments","getCompletedAppointments","getCancelledAppointments","blockSchedule","payload","formattedPayload","cancelAppointment","reason","rescheduleAppointment","startTime","endTime","payAppointment","completeAppointment","appointmentSessionId","getConflicts","hostId","date","moment","item","isBlockedSchedule","getHostSchedule","gte","lte","gteString","lteString","gteQuery","lteQuery","deletePendingTransaction","deleteAppointmentSession","getCallInfo","callInfo","appointmentSession","getContacts","addContact","deleteContact","contactUs","formatDurationInMsToHourMinutes","durationInMs","short","duration","formattedDuration","calculateDuration","start","diff","STREAM_API_KEY","chatClient","StreamChat","formatCurrency","value","formatMessageDate","createdAt","messageDate","currentDate","formatNotification","notification","type","firstname","lastname","metadata","messages","_d","_c","_e","generateProfileLink","userId","generateUpcomingAppointments","availabilityHours","month","year","upcomingAppointments","availability","startMoment","endMoment","startDayOfWeek","firstOccurrence","i","appointmentDate","getInitials","user","words","firstInitial","lastInitial","getTimezoneAbbreviation","timeZone","momentTimezone","offset","sign","formattedHours","formattedMinutes","isValidUrl","url","loadUserFromLocalStorage","openInNewTab","win","saveRoleInLocalStorage","AddToCalendarIcon","props","jsxs","ArchiveIcon","CalendarIcon","CameraIcon","CheckIcon","CheckBoxIcon","ClockIcon","CloseIcon","CopyIcon","DeleteIcon","EditIcon","EllipsisIcon","ErrorIcon","className","MicOffIcon","MicOnIcon","QrIcon","ScreenShareIcon","ScreenShareOffIcon","SearchIcon","ShareIcon","FbIcon","XIcon","InstaIcon","LinkedInIcon","WebIcon","SuccessIcon","SwapIcon","TimeIcon","UserIcon","VideoIcon","VideoOffIcon","VideoOnIcon","VisibleIcon","VisibleOffIcon","WarningIcon","ChatIcon","SuccessToast","message","Fragment","ErrorToast","showSuccess","toast","Bounce","showError","toSentenceCase","text","MessageToast","showMessage","getOrCreateChannel","otherUserId","channelId","channel","NOTIFICATIONS_BASE_ENDPOINT","getNotifications","deleteNotification","markNotificationAsRead","markAllNotificationAsRead","profile","addWorkExperience","updateWorkExperience","deleteWorkExperience","getUserById","getServicesByUser","createService","title","category","class_type","description","duration_per_session","cancellationPolicy","sessions","service_rate","requirements","what_you_learn","theme","gallery","formData","file","updateService","serviceId","getService","parsed","host","deleteService","deleteServiceGallery","images","bookService","appointmentId","stripeLogin","stripeConnect","TRANSACTIONS","getPaidTransactions","getReceivedTransactions","getPendingTransactions","getGuestPendingTransactions","getTransactionsSummary","getTransaction","transactionId","axios","isTokenExpired","expiration","TOKEN_LIFESPAN","config","storedToken","newToken","expirationTime","error","logout","originalRequest","refreshAccessToken","handleAxiosError","refreshError","getUser","result","signupUser","accountType","email","password","contactNumber","hasAgreedToTerms","requestResetPassword","tokenProvider","streamToken","token","getStripeAccount","switchRole","bearerToken","updateUser","updateSocialAccounts","updatePassword","agreeToTermsAndConditions","deactivateAccount","reactivateUser","deleteAccount","cancelSubscription","signOut","upgradeToTrial","upgradeToHost","subscriptionInterval","resetPassword","confirmPassword","API_TOKEN","MONTHLY_SUBSCRIPTION_FEE","ANNUAL_SUBSCRIPTION_FEE","APP_NAME","weekday","SERVICE_THEMES","storeUserDataInLocalStorage","googleProvider","GoogleAuthProvider","appleProvider","OAuthProvider","initialState","handleFirebaseError","loginAsync","createAsyncThunk","remember","rejectWithValue","setPersistence","browserLocalPersistence","signInWithEmailAndPassword","userFromBackend","FirebaseError","googleLoginAsync","_","userCredential","signInWithPopup","appleLoginAsync","reactivateAsync","updateUserAsync","updatedUser","timestamp","updatedAvatar","updatedCoverPhoto","userToStore","switchRoleAsync","loadUserAsync","reload","userFromStorage","logoutAsync","authSlice","createSlice","state","action","currentWorkExperience","index","workExp","updatedWorkExperience","finalItems","services","serviceIndex","builder","setUser","clearUser","setLoading","checkAuth","resetStatus","updateUserExperience","deleteUserExperience","updateUserSocialAccounts","updateAgreeToTermsAndConditions","updateUserService","deleteUserService","selectAuth","selectUserId","createSelector","auth","selectUsername","selectUser","selectWorkExperience","selectService","selectSocialAccounts","selectMembership","selectRole","selectGuestMembership","selectTrialMembership","selectHostMembership","selectHostRole","selectHostOrTrialRole","selectGuestRole","selectGuestOrTrialRole","selectServices","selectRemainingService","selectRemainingAppointmentAllowed","authReducer","getCancelledTransactionsAsync","cancelledTransactionsSlice","cancelledTransactionsReducer","getContactsAsync","contactsSlice","contactsReducer","getForApprovalAppointmentsAsync","appointmentsForApprovalSlice","appointmentsForApprovalReducer","getNotificationsAsync","read","notificationsSlice","selectNotifications","notificationsState","notificationsReducer","getOngoingAppointmentsAsync","upcomingAppointmentsSlice","selectOngoingAppointments","getPaidTransactionsAsync","paidTransactionsSlice","paidTransactionsReducer","getPendingTransactionsAsync","pendingTransactionsSlice","pendingTransactionsReducer","getCancelledAppointmentsAsync","cancelledAppointmentsSlice","cancelledAppointmentsReducer","getCompletedAppointmentsAsync","completedAppointmentsSlice","completedAppointmentsReducer","getExpiredTransactionsAsync","expiredTransactionsSlice","expiredTransactionsReducer","getGuestPendingTransactionsAsync","guestPendingTransactionsSlice","guestPendingTransactionsReducer","getHostAppointmentsAsync","getStripeAccountAsync","AxiosError","stripeAccountSlice","selectStripeAccount","stripeAccountReducer","getTransactionsAsync","transactionsSlice","transactionsReducer","getUpcomingAppointmentsAsync","selectUpcomingAppointments","upcomingAppointmentsReducer","store","configureStore","ongoingAppointmentsReducer","hostAppointmentsReducer","getTransactionsSummaryAsync","Loader","FilledButton","label","size","onClick","loading","disabled","bgClass","textColorClass","rounded","widthClass","sizeClass","cursorClass","OutlinedButton","borderColorClass","bgColorClass","negative","colorClass","DialogContext","DialogProvider","isOpen","setIsOpen","dialogConfig","setDialogConfig","openDialog","closeDialog","useDialog","CancelSubscription","setReason","useSelector","hostMembership","reasons","location","useLocation","useEffect","handleSubmit","confirmCancel","option","RefreshContext","Avatar","handleClick","sizes","EmptyChannels","EmptyUI","ErrorContainer","DataLoader","loadData","renderLoading","renderError","renderData","renderEmpty","setData","setError","err","HostCancelledTransactions","dispatch","useDispatch","refreshCount","setRefreshCount","fetchCancelledTransactions","useCallback","handleRefresh","prev","SkeletonHostCancelled","cancelledTransactions","transaction","GuestCancelledTransactionListTile","CancelledTransactions","hostOrTrialRole","GuestCancelledTransactions","participant","transactionUser","SkeletonGuestCancelled","PasswordField","setType","toggleVisibility","prevType","PasswordValidationRule","valid","PasswordTextFormField","ruleMessages","rule","validatePasswordRules","ChangePassword","setFormData","handleChange","event","name","prevState","handleLogout","handleSave","passwordValidation","passwordIsValid","confirmPasswordIsValid","ContactListTile","navigate","useNavigate","avatar","membership","onDelete","handleDelete","confirmDelete","SkeletonContactListTile","SkeletonRequestCard","SkeletonServiceCard","SkeletonTransactionSummaryCard","SkeletonUpcomingAppointmentCard","SkeletonUpcomingDetails","ContactList","refresh","setRefresh","fetchContacts","contacts","contact","ValidationMessage","TextAreaFormField","forwardRef","placeholder","variant","prefix","minLines","maxLines","rest","ref","variants","variantClass","TextFormField","suffix","onChange","readOnly","textClass","schema","yup.object","yup.string","ContactUs","register","errors","useForm","yupResolver","onSubmit","CircularButton","ariaLabel","DropdownButton","child","content","open","setOpen","toggleDropdown","dropdownRef","useRef","handleClickOutside","IconButton","icon","hoverClass","buttonSize","MenuButton","Menu","BellIcon","NotificationListTile","onDeleted","resourceId","isHovered","setIsHovered","handleMouseEnter","handleMouseLeave","handleTapNotification","SkeletonNotificationListTile","NotificationButton","fetchUpcomingAppointments","handleMarkAllAsRead","openNotifications","interval","unreadNotifications","TextButton","sizeClasses","DeactivateAccount","confirmDeactivate","handleDeactivate","DynamicNavigate","to","replace","params","useParams","interpolatedPath","key","Navigate","isValidPhoneNumber","EditProfile","removeAvatar","setRemoveAvatar","avatarPreview","setAvatarPreview","coverPhotoPreview","setCoverPhotoPreview","avatarInputRef","coverPhotoInputRef","setAvatar","coverPhoto","setCoverPhoto","country","setCountry","control","setValue","handleSelectAvatar","handleSelectCoverPhoto","handleAvatarChange","imageUrl","handleCoverPhotoChange","saveProfile","Controller","PhoneInput","PaginationBack","enabled","PaginationForward","CalendarComponent","selectedDay","onSelect","events","onChangeMonth","currentMonth","setCurrentMonth","currentYear","setCurrentYear","daysInMonth","startDay","daysArray","isSelectedDay","day","changeMonth","direction","newMonth","newYear","handleSelect","newDate","isInvalid","isToday","hasEvent","COLOR_VARIANTS","Schedule","appointments","localStart","localEnd","BlockedScheduleItem","blockedSchedule","guestAppointmentTabs","GuestAppointments","activeTab","setActiveTab","handleTabChange","tab","currentTab","Helmet","Outlet","GuestUpcomingAppointments","setSelectedDay","goToAppointment","filteredAppointments","GuestCancelledAppointments","fetchCancelledAppointments","SkeletonCancelledAppointment","GuestAppointmentCancelledListTile","appointment","time","GuestAppointmentCompletedListTile","handleBookAgain","GuestCompletedAppointments","fetchCompletedAppointments","SkeletonCompletedAppointment","CustomAvatar","ChannelPage","goBack","Channel","ArrowLeft","ChannelHeader","MessageList","MessageInput","PaidTransactionReceipt","GuestPaidTransactions","fetchPaidTransactions","SkeletonGuestPaidTransaction","receivedTransactions","GuestPaidTransactionListTile","handleShowTransactionReceipt","_f","ReceivedTransactionReceipt","HostPaidTransactions","fetchReceivedTransactions","SkeletonHostPaid","HostPaidTransactionTile","PaidTransactions","CancelAppointmentForm","successCallback","HostPendingTransactions","fetchPendingTransactions","SkeletonHostPendingTransaction","pendingTransactions","PendingTransactionRow","PendingTransactions","GuestPendingTransactions","handleCancel","ongoingPayment","setOngoingPayment","handlePayNow","SkeletonGuestPendingTransaction","PrivacyPolicy","terms","contents","ProtectedRoutes","loginPath","PublicRoutes","status","redirectTo","Tooltip","StripeAccountComponent","hostRole","pollingInterval","handleStripeConnect","pollForStripeAccount","fetchData","intervalId","chargesEnabled","payoutsEnabled","CheckListIcon","UpgradeToTrial","benefits","handleUpgrade","benefit","SwitchRole","currentRole","roleToSwitch","setRoleToSwitch","handleTryHost","canSwitchRole","TermsAndConditions","scrollRef","scrollToBottom","CheckBox","CustomTimePicker","showIcon","propsDate","now","selectedDate","seconds","combinedStartTime","startHours","startMinutes","startSeconds","endHours","endMinutes","endSeconds","BlockScheduleForm","entireDay","setEntireDay","reset","isSameDay","currentTime","formattedData","field","GuestTile","paymentStatus","isHost","ScheduleDetails","serviceTitle","participants","handleJoinCall","AppointmentsPage","HostAppointment","setAppointment","loadUpcomingAppointments","handleSelectDay","handleSelectAppointment","appointmentID","handleBlockSchedule","Banner","parseTimeSlotsForBackend","timeSlots","slot","startISO","endISO","RadioListTile","selected","reasonForDisabled","TimeSlotPicker","isRequired","useFormContext","fields","append","remove","useFieldArray","initialAppendDone","handleAdd","Plus","AddImage","onImageChange","onDeleteImage","fileInputRef","handleFileChange","UploadGallery","handleImageChange","newImages","handleDeleteImage","updatedImages","image","ThemeSelector","MAX_FILE_SIZE","availabilityHourSchema","isTrial","yup.array","yup.number","originalValue","ServiceForm","edit","initialValue","previewUrls","deleting","setDeleting","deletedImages","setDeletedImages","existingImages","setExistingImages","methods","watch","fields2","append2","remove2","classType","_g","v","_h","updatedService","createdService","classTypes","serviceType","serviceRateRef","addRequirement","deleteRequirement","addWhatYouLearn","deleteWhatYouLearn","deletedImage","arr","FormProvider","Trash","CreateService","remainingServicesCount","stripeAccount","handleSetupStripe","DashboardDetails","handleGoToDetails","handleGoToDetailsCompleted","DashboardDetailsCard","labelClass","formattedValue","AddIcon","NewMessage","sendMessage","RecentMessages","handleNewMessage","options","filters","ChannelList","AvatarChannelPreview","ChannelListContainer","displayImage","otherMember","member","isOnline","RequestCard","localDate","localDateEnd","hostOrTrial","Link","Qr","link","canvasRef","QRCode","useImperativeHandle","resolve","blob","ShareQr","qrRef","getBlob","handleShare","UpcomingAppointmentCard","guests","participantsCount","DashboardPage","username","fetchForApprovalAppointments","generateProfileLinkFromUserId","handleViewSchedule","ProfileLinksControl","appointmentsForApproval","copyLink","generateQr","EditService","loadService","padToThreeItems","hour","ForgotPasswordPage","apple","eye","google","logo","LogoWithTitle","LoginPage","setRemember","showPassword","setShowPassword","handleGoogleLogin","handleAppleLogin","togglePasswordVisibility","ChatDrawer","setActiveChannel","useChatContext","archive","setArchive","toggleArchive","useMemo","CustomChannelPreview","CustomSearchBar","customSearchFunction","client","setResults","setSearching","setQuery","memberUserNameKey","channels","lastMessage","displayTitle","unread","active","ChannelPreview","dropdownVisible","setDropdownVisible","targetElement","setTargetElement","handleRightClick","timeoutRef","pressStartRef","minPressDuration","handleLongPress","handleTouchStart","handleTouchEnd","handleOutsideClick","confirmArchive","handleArchive","confirmRestore","handleUnarchive","hiddenChannels","setHiddenChannels","ch","MessagesPage","isDrawerOpen","setIsDrawerOpen","toggleDrawer","isMobile","setIsMobile","isChannelPage","setIsChannelPage","handleResize","debounce","yup.ref","NewPassword","NotFoundPage","handleGoHome","NotificationsPage","notifications","SkeletonGuestPublicProfile","GuestPublicProfile","cover_photo","added","setAdded","handleSendMessage","handleAddToContacts","handleDeleteContact","DateFormField","displayDate","setDisplayDate","dateInputRef","handleProxyClick","ExperienceForm","experience","success","setSuccess","present","setPresent","preprocessedData","clearDateTo","dateFromValue","dateToValue","socialMediaIcons","SocialMediaForm","isLoading","setIsLoading","socialAccounts","updatedSocialAccounts","setUpdatedSocialAccounts","newValue","socialAccount","newSocialAccounts","account","Component","socialMedia","ServiceInfo","guestRole","handleBookNow","handleEditService","currentUserId","serviceUrl","ServiceCard","onDragLeft","onDragRight","startX","setStartX","handleStart","position","handleEnd","handleMouseDown","handleMouseUp","handleTap","ExperienceCard","self","jobTitle","company","dateFrom","dateTo","handleDeleteExperience","handleEdit","ProfileMenu","addToContacts","HostProfile","workExperience","currentUser","activeService","setActiveService","handleBack","lastIndex","handleForward","showAddExperience","handleEditSocialMedia","profession","about","exp","PublicProfile","setSelf","PriceFormField","displayValue","setDisplayValue","formatValue","inputRef","val","num","cleanValue","numValue","handleBlur","handleFocus","RejectAppointmentForm","RequestDetailsPage","setPrice","submitting","setSubmitting","remainingAppointment","handleMessageTap","handleReject","approveAppointment","handleApprovedTap","handlePriceChange","fetchAppointmentForApproval","SkeletonRequestDetails","RequestsPage","RequestsGrid","CreditCardIcon","DashboardIcon","SettingsIcon","getDrawerIcon","menu","Drawer","isVisible","onMenuSelect","NavLink","isActive","Breadcrumbs","breadcrumb","EmailIcon","UpgradeToHost","setSubscriptionInterval","handleReload","openStripeCheckout","checkoutUrl","NavBar","onToggleDrawer","showDrawer","setUnread","guestOrTrialRole","guestMembership","trialMembership","handleTapMessageButton","handleTransferBalanceClick","handleCreateServiceTap","queryChannels","unreadCount","acc","handleUpgradeToHost","handleUnreadMessages","MenuHamburger","AvatarMenu","handleConfirmLogout","UserDisabledPage","handleReactivate","RootScreen","setShowDrawer","drawerRef","menuItems","LogoutButton","SettingsPage","currentPath","appState","formatSegment","segment","word","SettingsDropdownMenu","setting","pixelId","initMetaPixel","ReactPixel","trackAppStoreClick","trackEvent","SignupPage","referral","setReferral","setAccountType","contactNumberString","passwordValue","isValidLength","hasUppercase","hasLowercase","hasSymbol","hasNumber","PhoneInputWithCountrySelect","SkeletonAccountCard","StripeAccountCard","fetchStripeAccount","changeStripeAccount","TransactionSummaryCard","amount","TransactionTab","colors","TransactionsPage","fetchTransactionsSummary","labels","amounts","AppointmentStatus","useAppointmentRealTimeStatus","setStatus","calculateStatus","oauthGoogleCalendar","UpcomingAppointmentDetailsPage","fetchAppointment","SkeletonGuestUpcomingAppointmentDetails","AppointmentActions","GuestList","GuestUpcomingAppointmentDetails","handleAddToCalendar","guest","onReload","appointmentStatus","handleAppointmentCompleted","handleCompleteAppointment","handleReschedule","UpcomingAppointmentsPage","SkeletonOngoingCard","OngoingCard","GuestProfile","ongoingAppointments","fetchOngoingAppointments","handleViewAll","handleEditProfile","CurrentUserProfile","VideoChat","CallLayout","useHasOngoingScreenShare","useCallStateHooks","screenShareEnabled","SpeakerLayout","PaginatedGridLayout","ParticipantListTile","call","useCall","hasAudioOn","hasAudio","hasVideoOn","hasVideo","hasScreenShareOn","hasScreenShare","handleTapAudio","handleTapVideo","handleTapScreenshare","CustomIconButton","ParticipantsList","useLocalParticipant","useRemoteParticipants","useParticipantCount","localParticipant","remoteParticipants","participantCount","isCurrentUserHost","muteAll","remoteParticipant","CallControls","onChat","onParticipants","onLeave","onEnd","Restricted","OwnCapability","SpeakingWhileMutedNotification","ToggleAudioPublishingButton","ToggleVideoPublishingButton","ReactionsButton","ScreenShareButton","CancelCallButton","CallUI","chatOpen","setChatOpen","participantsOpen","setParticipantsOpen","setChannel","handleLeave","exitPage","newChannel","sender","senderId","senderName","toggleChat","toggleParticipants","StreamCall","StreamTheme","VideoCall","joining","setJoining","callJoined","setCallJoined","setCall","setClient","setAppointmentSession","appointmentError","setAppointmentError","callError","setCallError","setHostId","canJoinCall","setCanJoinCall","callEnded","setCallEnded","showEndReminder","isDev","handleBeforeUnload","handleLeaveCall","handlePopState","parsedUser","myClient","StreamVideoClient","hasJoinedRef","minAllowableToJoinInMs","callEndWarningInMs","callEndAfterEndInMs","testStartTime","newEndTime","appointmentEndTime","checkCallTime","timeToShowEndReminder","timeToEndCall","_call","StreamVideo","AppointmentRequested","onClose","ConfirmScheduleForm","durationPerSession","calculatedDuration","setCalculatedDuration","handleCloseDialog","submitForm","subscription","end","BookServicePage","searchParams","useSearchParams","setService","upcomingAppointment","setUpcomingAppointments","schedule","handleChangeMonth","selectedStartTime","setSelectedStartTime","selectedEndTime","setSelectedEndTime","handleTimeSelection","handleAvailableSelection","AvailableHoursSelector","TimeSelector","onSelectTime","conflicts","setConflicts","handleTimeTapped","a","b","merge","mergeTimeSlots","conflict","timeToPosition","slots","merged","currentSlot","nextSlot","times","period","formattedHour","idx","top","height","availableHours","filteredAvailableHours","CallPreview","useMicrophoneState","useCameraState","microphone","isMicEnabled","camera","isVideoEnabled","VideoPreview","DisabledVideoPreview","NoCameraPreview","StartingCameraPreview","JoinCallButton","SkeletonCallPreview","LoadingIndicator","connectedUser","useConnectedUser","DefaultVideoPlaceholder","CallLobby","callType","callId","appt","PayAppointmentPage","isPaid","setIsPaid","showTermsAndConditions","partipantId","SkeletonPayAppointmentPageDetails","AppointmentDetails","RescheduleAppointmentPage","ResetPasswordPage","setToken","setEmail","tokenFromQuery","emailFromQuery","ServicesPage","currentUserServices","fetchServices","fetchUser","StripeSuccessPage","StripeTransactionSuccess","StripeTransactionError","ViewServicePage","ViewTransaction","Heading","dark","Paragraph","textSize","AboutPage","x","linkedIn","instagram","facebook","ContactForm","prevData","Toastify","ReCAPTCHA","ContactPage","faqs","Accordion","contentRef","maxHeight","setMaxHeight","FaqPage","activeIndex","setActiveIndex","faq","HowItWorksPage","b1image","videoImage","scheduling","paymentImage","mainSectionImage","LandingPage","isIOS","Footer","captchaToken","setCaptchaToken","TellyLogo","width","LandingNavbar","links","handleLogin","handleSignup","handleGoToApp","LandingLayout","PrivacyPolicyPage","privacyPolicies","policy","TermsPage","term","index2","WorkTogetherForm","handleCheck","signup","phone","howDidYouHearAboutUs","WorkTogetherPage","SwitchRoleButton","AuthNavBar","isSmallScreen","setIsSmallScreen","PublicRoot","PublicService","OngoingAppointmentsPage","App","isTellycom","isConnectingRef","handleWheel","unsubscribe","onAuthStateChanged","initializeChatClient","HelmetProvider","Router","Routes","Route","Dialog","tagManagerArgs","TagManager","Sentry.init","Sentry.reactRouterV6BrowserTracingIntegration","useNavigationType","createRoutesFromChildren","matchRoutes","Sentry.replayIntegration","createRoot","Provider","Chat","ToastContainer"],"mappings":"m5DAYA,MAAMA,GAAoBC,EAAA,cACxB,MACF,EAEaC,GAAwD,CAAC,CACpE,SAAAC,CACF,IAAM,CACJ,KAAM,CAACC,EAAaC,CAAc,EAAIC,EAAAA,SAAuB,CAAA,CAAE,EAG7D,OAAAC,EAAA,IAACP,GAAkB,SAAlB,CAA2B,MAAO,CAAE,YAAAI,EAAa,eAAAC,GAC/C,SAAAF,EACH,CAEJ,EAEaK,EAAiB,IAAM,CAC5B,MAAAC,EAAUC,a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