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AAC,SAAK,uGAGd,SAAC,UACD,SAAC,SAAK,yEAEN,SAAC,SAAK,yFAGN,SAAC,SAAK,gFC1BDwH,EAAoD,EAC/D/F,SACAgG,aACAC,cAAc,mBACdC,iBAAgB,SAAC,EAAiB,IAClCzM,cAAc,YAGZ,UAAC0M,EAAA,GACCnP,KAAMgJ,EACNjG,QAASiM,EACTI,OAAO,QACP,kBAAgB,eAChB,mBAAiB,iBAEjB,oBAACC,EAAA,GACC5O,GAAG,eACHW,MAAM,eAKN,aAAY,EAEX,SAAA6N,KAEH,SAACK,EAAA,EAAa,CAAC7O,GAAG,iBAAiB8O,UAAQ,EAACC,SAAU,EACnD,SAAAN,KAEH,SAACO,EAAA,EAAa,CACZ,mBAAC/G,EAAA,GACC,UAAQ,kCACRrH,QAAS2N,EACTtO,QAAQ,WACRC,GAAI,CAAEG,QAAS,QAAS4O,WAAY,OAAQC,YAAa,QAExD,SAAAlN,S,sECtCJ,MAAMmN,EAET,EAAG5P,OAAMC,QAAOkC,cAAawJ,UAASrJ,aAEtC,SAACmE,EAAA,EAAK,CAACzG,OACL,mBAAC6P,EAAA,GACC5P,OACE,UAACyG,EAAA,GACC/F,GAAI,CACFG,QAAS,OACTgP,SAAU,aACV3O,IAAK,EACLH,WAAY,UAGd,oBAAC+O,EAAA,EAAgB,CAAC3O,MAAM,YACvBnB,KAGLkC,cACA6N,gBAAgB,UAChB5N,QAAS,CAACE,GAEV,mBAAC8E,EAAA,GACC1G,QAAQ,QACRU,MAAM,eACNT,GAAI,CAAEsP,WAAY,YAEjB,SAAAtE,O","sources":["file:////home/runner/work/platform/platform/apps/front-end/src/modals/AutoConcludeModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/ConfirmationModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipGroup/RelationshipGroupGuideModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipGroup/RelationshipGroupTraineeModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipGroup/RelationshipGroupMembersModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipGoalsModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipSessionsModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipNotesModalContext/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipNotesModal/CloseIconButton.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipNotesModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/Relationship/RelationshipDiscardNoteChangesModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/PolicyModal/PolicyModalPlaceholder/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/PolicyModal/index.tsx","file:////home/runner/work/platform/platform/apps/front-end/src/modals/RegistrationLimitReachedModal/index.tsx"],"sourcesContent":["import { useSettings } from '@guider-global/front-end-hooks';\nimport { useIsSafariOrIOS } from '@guider-global/front-end-utils';\nimport { useBaseLanguage } from '@guider-global/sanity-hooks';\nimport { IRelationship } from '@guider-global/shared-types';\nimport { Button, ButtonStack, SurveyModal } from '@guider-global/ui';\nimport { Box, Typography, useMediaQuery } from '@mui/material';\nimport { useTheme } from '@mui/system';\nimport { SurveyAvatar } from 'components';\nimport { useLocalization } from 'hooks';\nimport { ConfirmationModal } from 'modals';\nimport { RelationshipSessionsModal } from 'modals/Relationship';\nimport React, { useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\ninterface IAutoConcludeModalProps {\n isReengaged: boolean;\n relationship: IRelationship;\n organizationSlug: string;\n isLoading: boolean;\n isActiveGroup?: boolean;\n getModalConfig: () => any;\n handleConcludeRelationship: () => void;\n isGuide: boolean;\n handleScheduleSession: () => void;\n handleSessionsModalClose: () => void;\n setIsConcludeDialog: (value: boolean) => void;\n isConcludeDialog: boolean;\n isSessionsModalOpen: boolean;\n setIsLoading: (isLoading: boolean) => void;\n}\n\nexport const AutoConcludeModal: React.FC = ({\n isReengaged,\n relationship,\n organizationSlug,\n isLoading,\n isGuide,\n getModalConfig,\n handleConcludeRelationship,\n handleScheduleSession,\n handleSessionsModalClose,\n setIsConcludeDialog,\n isConcludeDialog,\n setIsLoading,\n}) => {\n const [isSessionsModalOpen, setIsSessionsModalOpen] = useState(false);\n const { localeCode } = useLocalization(organizationSlug);\n const { baseLanguage } = useBaseLanguage({ localeCode });\n\n const modalConfig = getModalConfig();\n const IsSafariOrIOS = useIsSafariOrIOS();\n const { settings } = useSettings({\n options: { keepPreviousData: true },\n });\n const timeZone = settings?.at(0)?.timezone ?? 'Europe/London';\n const navigate = useNavigate();\n\n const { breakpoints } = useTheme();\n const isMobile = useMediaQuery(breakpoints.down('md'));\n\n const modalDescription =\n baseLanguage?.globals?.relationships?.auto_conclude_relationship_modal\n ?.modal_description;\n\n const getProfileInfo = (isGuide: boolean, relationship: IRelationship) => {\n const profileKey = isGuide ? 'traineeProfiles' : 'guideProfiles';\n const profile = relationship?.[profileKey]?.[0] || {};\n return {\n roleSingular: isGuide ? 'Trainee' : 'Guide',\n firstName: profile.firstName,\n lastName: profile.lastName,\n };\n };\n\n const formatDescription = (\n description: string,\n profileInfo: {\n roleSingular: string;\n firstName?: string;\n lastName?: string;\n },\n ) => {\n return description\n .replace('{{ roleSingular }}', profileInfo.roleSingular)\n .replace('{{ firstName }}', profileInfo.firstName ?? '')\n .replace('{{ lastName }}', profileInfo.lastName ?? '');\n };\n\n const profileInfo = getProfileInfo(isGuide, relationship);\n const formattedDescription = formatDescription(\n modalDescription ?? '',\n profileInfo,\n );\n\n const closeSessionModal = () => {\n handleSessionsModalClose();\n setIsSessionsModalOpen(false);\n };\n\n const handleLogSession = () => {\n navigate(`/relationships/${relationship.id}/sessions/log`);\n setIsSessionsModalOpen(true);\n };\n\n return (\n <>\n \n ) : (\n <>\n )\n }\n >\n \n \n {formattedDescription}\n \n \n \n setIsConcludeDialog(true)}\n data-cy=\"conclude-relationship-button\"\n label={\n baseLanguage?.globals?.relationships\n ?.conclude_relationship_button_label\n }\n />\n\n handleScheduleSession(),\n 'data-cy': 'relationship-schedule-session-button',\n },\n {\n key: 'log-session',\n variant: 'outlined',\n label:\n baseLanguage?.globals?.sessions?.log_session_button_label,\n color: 'info',\n onClick: () => handleLogSession(),\n 'data-cy': 'relationship-log-session-button',\n },\n ]}\n />\n \n \n {isSessionsModalOpen && (\n \n )}\n {isConcludeDialog && (\n setIsConcludeDialog(false),\n color: 'inherit',\n variant: 'outlined',\n textColor: 'text.secondary',\n isLoadingButton: true,\n },\n {\n label: modalConfig.buttonLabel,\n action: handleConcludeRelationship,\n color: 'info',\n variant: 'contained',\n isLoadingButton: true,\n dataCyLabel:\n 'components_relationship_relationshipConclude_relationshipsConcludeDialog_button',\n },\n ]}\n handleClose={() => setIsConcludeDialog(false)}\n />\n )}\n \n );\n};\n","// external\nimport React from 'react';\nimport {\n Box,\n Card,\n IconButton,\n Modal,\n Typography,\n useTheme,\n} from '@mui/material';\nimport Close from '@mui/icons-material/Close';\nimport { ActionButton } from 'components';\n\n//types\nimport { IButtonAction } from 'components/ActionButton';\n\nimport { useMobileMediaQuery } from 'hooks';\n\ninterface IConfirmationModalProps {\n open: boolean;\n title: string | undefined;\n description: string | undefined;\n actions: IButtonAction[];\n handleClose: () => void;\n isLoading?: boolean;\n 'data-cy'?: string;\n closeIconButtonDataCy?: string;\n}\n\nexport const ConfirmationModal: React.FC = ({\n open,\n title,\n description,\n actions,\n handleClose,\n isLoading = false,\n 'data-cy': dataCy,\n closeIconButtonDataCy,\n}) => {\n const theme = useTheme();\n const isMobile = useMobileMediaQuery();\n\n return (\n \n \n \n \n \n {title}\n \n \n \n \n \n \n \n {description}\n \n \n \n {actions.map((action, index) => (\n \n ))}\n \n \n \n \n );\n};\n","import { SendBox, usePropsFor } from '@azure/communication-react';\nimport { useRelationships } from '@guider-global/front-end-hooks';\nimport { getSubDomain } from '@guider-global/front-end-utils';\nimport { useOrganizationPrograms } from '@guider-global/sanity-hooks';\nimport { IRelationship } from '@guider-global/shared-types';\nimport CheckCircle from '@mui/icons-material/CheckCircle';\nimport { LoadingButton } from '@mui/lab';\nimport { Box, Card, Modal, Typography, useTheme } from '@mui/material';\nimport { Asterisk, FormTextField } from 'components';\nimport { useLocalization } from 'hooks';\nimport { Control, SubmitHandler, useForm } from 'react-hook-form';\nimport { hexToRGB } from 'utils';\n\nexport interface IWelcomeMessageInputs {\n welcomeMessage: string;\n}\n\nexport interface RelationshipGroupGuideModalProps {\n relationship: IRelationship | undefined;\n isModalOpen: boolean;\n}\n\nexport const RelationshipGroupGuideModal = ({\n relationship,\n isModalOpen,\n}: RelationshipGroupGuideModalProps) => {\n const theme = useTheme();\n const organizationSlug = getSubDomain();\n const { localeCode } = useLocalization(organizationSlug);\n const sendBoxProps = usePropsFor(SendBox);\n\n const { getProgram } = useOrganizationPrograms({\n organizationSlug,\n localeCode,\n });\n const program = getProgram(relationship?.programSlug ?? '');\n const programType = program?.program_details?.program_type;\n\n const title =\n programType?.program_type_text.variations?.group?.relationships?.guide\n ?.group_created_successfully_modal?.title ?? '';\n\n const description =\n programType?.program_type_text.variations?.group?.relationships?.guide\n ?.group_created_successfully_modal?.description ?? '';\n\n const inputTitle =\n programType?.program_type_text.variations?.group?.relationships?.guide\n ?.group_created_successfully_modal?.input_title ?? '';\n\n const inputDescription =\n programType?.program_type_text.variations?.group?.relationships?.guide\n ?.group_created_successfully_modal?.input_description ?? '';\n\n const buttonLabel =\n programType?.program_type_text.variations?.group?.relationships?.guide\n ?.group_created_successfully_modal?.post_message_button_label ?? '';\n\n const {\n reqRelationships,\n isLoadingRelationships,\n isMutatingRelationships,\n relationshipsRevalidate,\n } = useRelationships({});\n\n const {\n control,\n handleSubmit,\n formState: { errors, isValid },\n } = useForm({\n mode: 'onChange',\n });\n\n const onSubmit: SubmitHandler = async ({\n welcomeMessage,\n }) => {\n if (!relationship) {\n return;\n }\n\n await reqRelationships({\n method: 'PATCH',\n url: `/relationships/${relationship?.id}`,\n data: {\n group: {\n welcomeMessage,\n },\n },\n });\n\n await sendBoxProps.onSendMessage(welcomeMessage);\n relationshipsRevalidate();\n };\n\n return (\n \n \n \n \n \n \n \n \n \n\n \n {title}\n \n \n {description}\n \n \n \n \n {inputTitle}\n \n \n \n {inputDescription}\n \n \n \n \n \n {buttonLabel}\n \n \n \n \n );\n};\n","import {\n Avatar,\n Box,\n Button,\n Card,\n Modal,\n Typography,\n useTheme,\n} from '@mui/material';\nimport { useAppDispatch } from 'store/hooks';\nimport { toggleModal } from 'store/slices/appSlice';\nimport { hexToRGB } from 'utils';\n\nexport const RelationshipGroupTraineeModal = ({\n isModalOpen,\n title,\n description,\n buttonLabel,\n picture,\n}: {\n isModalOpen: boolean;\n title: string;\n description: string;\n buttonLabel: string;\n picture: string;\n}) => {\n const theme = useTheme();\n const dispatch = useAppDispatch();\n return (\n \n \n \n \n \n {title}\n \n \n {description}\n \n \n \n \n \n \n dispatch(toggleModal('traineeModal'))}\n >\n {buttonLabel}\n \n \n \n \n );\n};\n","import Group from '@mui/icons-material/Group';\nimport { Modal, useTheme } from '@mui/material';\nimport { ModalCard } from 'components';\nimport { IButtonAction } from 'components/ActionButton';\n\nexport const RelationshipGroupMembersModal = ({\n isModalOpen,\n title,\n children,\n handleClose,\n actions,\n}: {\n isModalOpen: boolean;\n actions?: (IButtonAction | IButtonAction[])[];\n title: string;\n children: React.ReactNode;\n handleClose: () => void;\n}) => {\n const theme = useTheme();\n return (\n \n }\n >\n {children}\n \n \n );\n};\n","// external\nimport React, { useMemo } from 'react';\nimport { Modal } from '@mui/material';\nimport { useLocation, useParams } from 'react-router-dom';\n\n// components\nimport {\n RelationshipGoalsManage,\n RelationshipGoalsView,\n RelationshipGoalsCreate,\n RelationshipGoalsEdit,\n} from 'components';\n\n// types\nimport { IRelationship } from '@guider-global/shared-types';\n\ninterface IRelationshipGoalsModalProps {\n relationship: IRelationship;\n isOpen: boolean;\n handleClose: () => void;\n isGuide: boolean;\n}\n\nexport const RelationshipGoalsModal: React.FC = ({\n relationship,\n isOpen,\n handleClose,\n isGuide,\n}) => {\n const { goalId } = useParams();\n const { pathname } = useLocation();\n\n const isGoalCreation = useMemo(() => {\n return pathname.includes('/create');\n }, [pathname]);\n\n const isGoalEdit = useMemo(() => {\n return pathname.includes('/edit');\n }, [pathname]);\n\n const renderContent = () => {\n if (isGoalEdit) {\n return (\n \n );\n }\n\n if (isGoalCreation) {\n return (\n \n );\n }\n\n if (goalId) {\n return (\n \n );\n }\n\n return (\n \n );\n };\n\n return (\n \n {renderContent()}\n \n );\n};\n","// external\nimport React, { useCallback, useMemo } from 'react';\nimport { Modal } from '@mui/material';\nimport { useLocation, useParams } from 'react-router-dom';\n\n// components\nimport {\n RelationshipSessionsView,\n RelationshipSessionsCreate,\n RelationshipSessionsEdit,\n RelationshipSessionsIntegrate,\n RelationshipSessionsLog,\n RelationshipSessionHistory,\n} from 'components';\n\n// types\nimport { IRelationship } from '@guider-global/shared-types';\n\nimport { getISOStringWithoutMilliseconds } from '@guider-global/front-end-utils';\nimport { useMixpanelEvents } from 'hooks';\n\ninterface IRelationshipSessionsModalProps {\n relationship: IRelationship;\n handleClose: () => void;\n isGroupProgram: boolean;\n isActiveGroup: boolean;\n isGuide: boolean;\n timezone: string;\n setIsLoading?: (isLoading: boolean) => void;\n isLoading?: boolean;\n}\n\nexport const RelationshipSessionsModal: React.FC<\n IRelationshipSessionsModalProps\n> = ({\n relationship,\n handleClose,\n isGroupProgram,\n isActiveGroup,\n isGuide,\n timezone,\n isLoading,\n setIsLoading,\n}) => {\n const canAccessSessions =\n !relationship.isConcluded &&\n ((isGroupProgram && isActiveGroup && isGuide) || !isGroupProgram);\n const { trackScreenTime } = useMixpanelEvents();\n const { sessionId } = useParams();\n const { pathname } = useLocation();\n\n const isSessionCreation = useMemo(() => {\n return pathname.includes('/create');\n }, [pathname]);\n\n const isSessionLog = useMemo(() => {\n return pathname.includes('/log');\n }, [pathname]);\n\n const isSessionEdit = useMemo(() => {\n return pathname.includes('/edit');\n }, [pathname]);\n\n const isSessionHistory = useMemo(() => {\n return pathname.includes('/history');\n }, [pathname]);\n\n const isSessionIntegrate = useMemo(() => {\n return pathname.includes('integrate');\n }, [pathname]);\n\n const trackSessionCreateFormExit = useCallback(\n () =>\n trackScreenTime(\n 'Relationship - Session - Schedule new session - Form exited',\n {\n Started: getISOStringWithoutMilliseconds(),\n },\n ),\n [trackScreenTime],\n );\n\n const trackSessionCreateFormExitBeforeClose = useCallback(() => {\n trackSessionCreateFormExit();\n handleClose();\n }, [trackSessionCreateFormExit, handleClose]);\n\n if (isSessionCreation) {\n if (!canAccessSessions) {\n handleClose();\n return <>;\n }\n\n return (\n \n {})}\n isLoading={isLoading}\n />\n \n );\n }\n\n const renderContent = () => {\n if (isSessionEdit) {\n if (!canAccessSessions) {\n handleClose();\n return <>;\n }\n\n return (\n \n );\n }\n\n if (isSessionLog) {\n if (!canAccessSessions) {\n handleClose();\n return <>;\n }\n\n return (\n {})}\n isLoading={isLoading}\n />\n );\n }\n\n if (isSessionHistory) {\n return (\n \n );\n }\n\n if (isSessionIntegrate) {\n return ;\n }\n\n if (sessionId) {\n return (\n \n );\n }\n\n return <>;\n };\n\n return (\n \n {renderContent()}\n \n );\n};\n","import { emptyInitialValue } from 'components/FormRichText';\nimport { INoteInputs, NoteFormField } from 'forms';\nimport { useNotes } from 'hooks';\nimport React, {\n createContext,\n PropsWithChildren,\n useMemo,\n useState,\n} from 'react';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport { useParams } from 'react-router-dom';\n\ninterface IRelationshipNotesModalContext {\n isDiscardNoteChangesModalOpen: boolean;\n setIsDiscardNoteChangesModalOpen:\n | React.Dispatch>\n | (() => never);\n onConfirmDiscardNoteChanges: (() => void) | undefined;\n setOnConfirmDiscardNoteChanges:\n | React.Dispatch void) | undefined>>\n | (() => never);\n}\n\nexport const RelationshipNotesModalContext =\n createContext({\n isDiscardNoteChangesModalOpen: false,\n setIsDiscardNoteChangesModalOpen: () => {\n throw new Error('setIsDiscardNoteChangesModalOpen is not implemented');\n },\n onConfirmDiscardNoteChanges: () => {\n throw new Error('onConfirmDiscardNoteChanges is not implemented');\n },\n setOnConfirmDiscardNoteChanges: () => {\n throw new Error('setOnConfirmDiscardNoteChanges is not implemented');\n },\n });\n\nexport const defaultNoteValues = {\n [NoteFormField.Title]: '',\n [NoteFormField.Content]: emptyInitialValue,\n [NoteFormField.IsPublic]: false,\n};\n\nexport const RelationshipNotesModalProvider = ({\n children,\n relationshipId,\n}: PropsWithChildren<{ relationshipId: string }>) => {\n const [isDiscardNoteChangesModalOpen, setIsDiscardNoteChangesModalOpen] =\n useState(false);\n const [onConfirmDiscardNoteChanges, setOnConfirmDiscardNoteChanges] =\n useState<() => void>();\n\n const { noteId } = useParams();\n const { notes = [] } = useNotes({\n params: {\n relationshipId: relationshipId,\n },\n });\n\n const currentNote = useMemo(\n () => notes?.find((note) => note.id === noteId),\n [notes, noteId],\n );\n const isPublic =\n typeof currentNote?.isPrivate === 'undefined'\n ? false\n : !currentNote?.isPrivate;\n\n const methods = useForm({\n mode: 'onChange',\n defaultValues: defaultNoteValues,\n values: {\n [NoteFormField.Title]: currentNote?.title,\n [NoteFormField.Content]: currentNote?.content,\n [NoteFormField.IsPublic]: isPublic,\n },\n });\n\n const value: IRelationshipNotesModalContext = {\n isDiscardNoteChangesModalOpen,\n setIsDiscardNoteChangesModalOpen,\n onConfirmDiscardNoteChanges,\n setOnConfirmDiscardNoteChanges,\n };\n\n return (\n \n \n {children}\n \n \n );\n};\n","import Close from '@mui/icons-material/Close';\nimport { IconButton } from '@mui/material';\nimport { INoteInputs } from 'forms';\nimport { useContext } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport {\n defaultNoteValues,\n RelationshipNotesModalContext,\n} from '../RelationshipNotesModalContext';\n\ninterface CloseIconButtonProps {\n onClick: () => void;\n 'data-cy': string;\n label: string;\n}\n\nexport function CloseIconButton({\n onClick,\n 'data-cy': dataCy,\n label,\n}: CloseIconButtonProps) {\n const { setOnConfirmDiscardNoteChanges, setIsDiscardNoteChangesModalOpen } =\n useContext(RelationshipNotesModalContext);\n const {\n reset,\n formState: { isDirty },\n } = useFormContext();\n\n const handleClick = (callback: () => void) => {\n if (isDirty) {\n setIsDiscardNoteChangesModalOpen(true);\n setOnConfirmDiscardNoteChanges(() => callback);\n } else {\n callback();\n reset(defaultNoteValues);\n }\n };\n\n return (\n handleClick(onClick)}>\n \n \n );\n}\n","//external\nimport {\n Box,\n Card,\n Divider,\n LinearProgress,\n Modal,\n Typography,\n useTheme,\n} from '@mui/material';\nimport React, { useEffect, useMemo, useState } from 'react';\n\n//types\nimport { IRelationship } from '@guider-global/shared-types';\n\n//components\nimport { Transition } from '@guider-global/ui';\nimport {\n RelationshipNote,\n RelationshipNotesEmpty,\n RelationshipNotesList,\n} from 'components';\nimport { CloseIconButton } from './CloseIconButton';\n\n//hooks\nimport { getSubDomain } from '@guider-global/front-end-utils';\nimport { useBaseLanguage } from '@guider-global/sanity-hooks';\nimport { useLocalization, useMobileMediaQuery, useNotes } from 'hooks';\nimport { useLocation, useNavigate, useParams } from 'react-router-dom';\n\ninterface IRelationshipNotesModalProps {\n relationship: IRelationship;\n isOpen: boolean;\n handleClose: () => void;\n}\n\nexport const RelationshipNotesModal: React.FC = ({\n relationship,\n isOpen,\n handleClose,\n}) => {\n //hooks\n const organizationSlug = getSubDomain();\n\n const { localeCode } = useLocalization(organizationSlug);\n const { baseLanguage } = useBaseLanguage({ localeCode });\n\n //style\n const theme = useTheme();\n const isMobile = useMobileMediaQuery();\n\n const [isListOpen, setIsListOpen] = useState(!isMobile);\n\n const navigate = useNavigate();\n const { noteId, relationshipId } = useParams();\n const { pathname } = useLocation();\n\n const {\n isLoadingNotes,\n isValidatingNotes,\n isMutatingNotes,\n notes = [],\n } = useNotes({\n params: {\n relationshipId: relationshipId,\n },\n });\n const isLoading = isLoadingNotes || isValidatingNotes || isMutatingNotes;\n const noNotes = notes.length === 0;\n\n const isNoteCreation = useMemo(() => {\n return pathname.includes('/create');\n }, [pathname]);\n\n useEffect(() => {\n if (isOpen && !isMobile && !isNoteCreation && !noNotes && !noteId) {\n navigate(`/relationships/${relationshipId}/notes/${notes?.at(0)?.id}`);\n }\n });\n\n //component\n return (\n \n \n \n \n {\n baseLanguage?.relationships?.notes?.notes_modal?.notes_common\n ?.notes_common_title\n }\n \n \n \n {isLoading ? (\n \n ) : (\n \n )}\n \n\n \n \n \n setIsListOpen((isOpen) => expand ?? !isOpen)\n }\n />\n \n \n {noNotes && !isNoteCreation ? (\n \n ) : (\n \n )}\n \n \n \n \n );\n};\n","import { getSubDomain } from '@guider-global/front-end-utils';\nimport { useBaseLanguage } from '@guider-global/sanity-hooks';\nimport { IButtonAction } from 'components/ActionButton';\nimport { INoteInputs } from 'forms';\nimport { useLocalization } from 'hooks';\nimport { ConfirmationModal } from 'modals/ConfirmationModal';\nimport { useContext } from 'react';\nimport { useFormContext } from 'react-hook-form';\nimport {\n defaultNoteValues,\n RelationshipNotesModalContext,\n} from '../RelationshipNotesModalContext';\n\nexport function RelationshipDiscardNoteChangesModal() {\n const organizationSlug = getSubDomain();\n\n const { localeCode } = useLocalization(organizationSlug);\n const { baseLanguage } = useBaseLanguage({ localeCode });\n\n const discard_unsaved_changes_modal =\n baseLanguage?.relationships?.notes?.notes_modal\n ?.notes_modal_create_edit_note?.discard_unsaved_changes_modal;\n\n const {\n isDiscardNoteChangesModalOpen,\n setIsDiscardNoteChangesModalOpen,\n onConfirmDiscardNoteChanges,\n setOnConfirmDiscardNoteChanges,\n } = useContext(RelationshipNotesModalContext);\n const { reset } = useFormContext();\n\n const resetDiscardNoteChangesModal = () => {\n setOnConfirmDiscardNoteChanges(undefined);\n setIsDiscardNoteChangesModalOpen(false);\n };\n\n const actions: IButtonAction[] = [\n {\n label: baseLanguage?.globals?.common?.discard_changes_button_label,\n variant: 'contained',\n color: 'error',\n action: () => {\n onConfirmDiscardNoteChanges?.();\n reset(defaultNoteValues);\n setIsDiscardNoteChangesModalOpen(false);\n },\n },\n {\n label: discard_unsaved_changes_modal?.continue_editing_button_label,\n variant: 'contained',\n color: 'info',\n action: resetDiscardNoteChangesModal,\n },\n ];\n\n return (\n \n );\n}\n","import { Typography } from '@mui/material';\n\nexport const PolicyModalPlaceholder: React.FunctionComponent = () => {\n return (\n <>\n \n This privacy policy applies between you, the User of this Website and\n Guider Global Limited, the owner and provider of this Website. Guider\n Global Limited takes the privacy of your information very seriously.\n This privacy policy applies to our use of any and all Data collected by\n us or provided by you in relation to your use of the Website.\n \n \n Please read this privacy policy carefully.\n \n \n 1. In this privacy policy, the following definitions are used: Data\n collectively all information that you submit to Guider Global Limited\n via the Website. This definition incorporates, where applicable, the\n definitions provided in the Data Protection Laws; Cookies a small text\n file placed on your computer by this Website when you visit\n
(i) employed by Guider Global Limited and acting in the course of\n their employment or\n
(ii) engaged as a consultant or otherwise providing services to\n Guider Global Limited and accessing the Website in connection with the\n provision of such services; and Website the website that you are\n currently using, www.getguider.co, and any sub-domains of this site\n unless expressly excluded by their own terms and conditions.\n
\n
2. In this privacy policy, unless the context requires a\n different interpretation:
\n a. the singular includes the plural and vice versa;\n
\n
b. references to sub-clauses, clauses, schedules or appendices\n are to sub-clauses, clauses, schedules or appendices of this privacy\n policy;
\n c. a reference to a person includes firms, companies, government\n entities, trusts and partnerships;\n
\n
d. "including" is understood to mean "including\n without limitation";\n
\n e. reference to any statutory provision includes any modification or\n amendment of it;\n
\n f. the headings and sub-headings do not form part of this privacy licy.\n
\n \n );\n};\n\nexport default PolicyModalPlaceholder;\n","import React from 'react';\nimport {\n Button,\n Dialog,\n DialogTitle,\n DialogContent,\n DialogActions,\n} from '@mui/material';\nimport PolicyPlaceholder from './PolicyModalPlaceholder';\n\ntype PolicyProps = {\n isOpen: boolean;\n modalClose?: () => void;\n policyTitle?: string;\n policyContent?: React.ReactNode;\n buttonLabel?: string;\n};\n\nexport const PolicyModal: React.FunctionComponent = ({\n isOpen,\n modalClose,\n policyTitle = 'Terms of Service',\n policyContent = ,\n buttonLabel = 'Close',\n}) => {\n return (\n \n \n {policyTitle}\n \n \n {policyContent}\n \n \n \n {buttonLabel}\n \n \n \n );\n};\n\nexport default PolicyModal;\n","import { FC, PropsWithChildren } from 'react';\n\nimport { Box, Modal, Typography } from '@mui/material';\nimport ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';\n\nimport { ModalCard } from 'components/ModalCard';\nimport { IButtonAction } from 'components/ActionButton';\n\nexport interface RegistrationLimitReachedModalProps {\n open: boolean;\n title: string;\n description?: string;\n content: string;\n action: IButtonAction;\n}\n\nexport const RegistrationLimitReachedModal: FC<\n PropsWithChildren\n> = ({ open, title, description, content, action }) => {\n return (\n \n \n \n {title}\n \n }\n description={description}\n headerLineColor=\"warning\"\n actions={[action]}\n >\n \n {content}\n \n \n \n );\n};\n"],"names":["AutoConcludeModal","isReengaged","relationship","organizationSlug","isLoading","isGuide","getModalConfig","handleConcludeRelationship","handleScheduleSession","handleSessionsModalClose","setIsConcludeDialog","isConcludeDialog","setIsLoading","isSessionsModalOpen","setIsSessionsModalOpen","useState","localeCode","baseLanguage","useBaseLanguage","modalConfig","IsSafariOrIOS","useIsSafariOrIOS","settings","useSettings","options","keepPreviousData","timeZone","at","timezone","navigate","breakpoints","isMobile","down","modalDescription","globals","relationships","auto_conclude_relationship_modal","modal_description","profileInfo","_a","profile","roleSingular","firstName","lastName","getProfileInfo","formattedDescription","replace","_b","open","title","modal_title","heading","subheading","textSize","minWidth","Avatar","relationshipId","id","variant","sx","textAlign","mb","display","flexDirection","alignItems","justifyContent","pb","gap","color","onClick","label","conclude_relationship_button_label","spacing","direction","buttonsWidth","buttons","key","sessions","schedule_session","log_session_button_label","handleClose","isActiveGroup","isGroupProgram","description","actions","cancelButtonLabel","action","textColor","isLoadingButton","buttonLabel","dataCyLabel","ConfirmationModal","dataCy","closeIconButtonDataCy","theme","onClose","position","top","left","transform","maxHeight","width","borderTop","palette","secondary","main","boxSizing","borderBottom","divider","py","px","fontSize","disabled","fontWeight","backgroundColor","map","index","buttonAction","RelationshipGroupGuideModal","isModalOpen","useTheme","getSubDomain","sendBoxProps","SendBox","S","getProgram","useOrganizationPrograms","program","programSlug","programType","program_details","program_type","program_type_text","variations","group","guide","group_created_successfully_modal","inputTitle","input_title","inputDescription","input_description","post_message_button_label","reqRelationships","isLoadingRelationships","isMutatingRelationships","relationshipsRevalidate","useRelationships","control","handleSubmit","formState","errors","isValid","mode","Modal","Box","height","Card","maxWidth","minHeight","borderRadius","info","success","zIndex","CheckCircle","Typography","component","mt","my","name","required","rows","LoadingButton","size","welcomeMessage","method","url","data","onSendMessage","loading","RelationshipGroupTraineeModal","picture","dispatch","maxwidth","p","ml","src","Button","RelationshipGroupMembersModal","children","icon","Group","RelationshipGoalsModal","isOpen","goalId","pathname","isGoalCreation","useMemo","includes","isGoalEdit","RelationshipSessionsModal","canAccessSessions","isConcluded","trackScreenTime","sessionId","isSessionCreation","isSessionLog","isSessionEdit","isSessionHistory","isSessionIntegrate","trackSessionCreateFormExit","useCallback","Started","getISOStringWithoutMilliseconds","trackSessionCreateFormExitBeforeClose","RelationshipNotesModalContext","createContext","isDiscardNoteChangesModalOpen","setIsDiscardNoteChangesModalOpen","Error","onConfirmDiscardNoteChanges","setOnConfirmDiscardNoteChanges","defaultNoteValues","NoteFormField","RelationshipNotesModalProvider","noteId","notes","params","currentNote","find","note","isPublic","isPrivate","methods","defaultValues","values","content","value","Provider","CloseIconButton","useContext","reset","isDirty","IconButton","handleClick","callback","Close","RelationshipNotesModal","isListOpen","setIsListOpen","isLoadingNotes","isValidatingNotes","isMutatingNotes","noNotes","length","isNoteCreation","useEffect","disableEscapeKeyDown","xs","md","overflowY","notes_modal","notes_common","notes_common_title","common","close_button_label","LinearProgress","pt","Divider","flex","transitionStyles","entering","flexGrow","entered","exiting","exited","defaultStyles","transition","borderRight","isExpanded","handleExpand","expand","RelationshipDiscardNoteChangesModal","discard_unsaved_changes_modal","notes_modal_create_edit_note","resetDiscardNoteChangesModal","discard_changes_button_label","continue_editing_button_label","PolicyModal","modalClose","policyTitle","policyContent","Dialog","scroll","DialogTitle","DialogContent","dividers","tabIndex","DialogActions","marginLeft","marginRight","RegistrationLimitReachedModal","ModalCard","flexFlow","ErrorOutline","headerLineColor","whiteSpace"],"sourceRoot":""}