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DAAAxL,OAAA,EAAAA,EAASG,sBAAT,IAA0BC,mBAA1B,IAAwCC,kBAAkBC,iBAA1D,IACImL,iBADJ,IACgBC,mBADhB,IAC8BC,mBAEhC,OACE,SAAC,MAAW,CAACxH,OAAQkH,EACnB,oBAAC,OACC5O,UAAW,SACXN,IAAK,EACLF,eAAgB,gBAChBD,WAAY,SACZ6C,GAAI,EACJD,GAAI,EACJR,MAAO,QAEP,oBAAC,OACCwN,MAAM,SACNlJ,KAAK,QACLvH,QACEoQ,EACI,eAAAC,OAAA,EAAAA,EAAiBK,4CAAjB,IAAwD5Q,MACxD,eAAAuQ,OAAA,EAAAA,EAAiBM,kCAAjB,IACIC,kCAEVpJ,UAAW,CACT,CACEqJ,KAAMT,EACF,eAAAC,OAAA,EAAAA,EAAiBK,4CAAjB,IACI3O,YACJ,eAAAsO,OAAA,EAAAA,EAAiBM,kCAAjB,IACIG,wCACRvQ,QAAS,YACTU,MAAO,iBACPR,UAAW,cAIjB,SAAC,MAAK,CAACgI,IAAK,EAAaxF,MAAO,MAAO8N,IAAI,qBAC3C,SAAC,OACCC,WAAS,EACT/P,MAAM,OACNV,QAAQ,YACRW,QAASiP,EACThP,MACEiP,EACI,eAAAC,OAAA,EAAAA,EAAiBK,4CAAjB,IACIO,uBACJ,wBAAAnT,OAAA,EAAAA,EAAciB,cAAd,IAAuBwO,aAAvB,IAA+B2D,4BAM/C,C","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/Relationship/RelationshipActionDialog/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/PublishGuideProfileModal/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 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 { TextStack } from '@guider-global/ui';\nimport CheckCircle from '@mui/icons-material/CheckCircle';\nimport { LoadingButton } from '@mui/lab';\nimport { Box, Card, Modal, Typography, useTheme } from '@mui/material';\nimport { FormTextFieldTyped } from 'components';\nimport { useLocalization } from 'hooks';\nimport { useState } from 'react';\nimport { 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 onClose: () => void;\n}\n\nexport const RelationshipGroupGuideModal = ({\n relationship,\n isModalOpen,\n onClose,\n}: RelationshipGroupGuideModalProps) => {\n const theme = useTheme();\n const organizationSlug = getSubDomain();\n const { localeCode } = useLocalization(organizationSlug);\n const sendBoxProps = usePropsFor(SendBox);\n const [isSubmitting, setIsSubmitting] = useState(false);\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 watch,\n formState: { errors, isValid },\n } = useForm({\n mode: 'onChange',\n });\n\n const onSubmit: SubmitHandler = async ({\n welcomeMessage,\n }) => {\n if (!relationship || isSubmitting) {\n return;\n }\n\n setIsSubmitting(true);\n\n try {\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 await relationshipsRevalidate();\n onClose();\n } finally {\n setIsSubmitting(false);\n }\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 \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 timezone: string;\n isGuide: boolean;\n}\n\nexport const RelationshipGoalsModal: React.FC = ({\n relationship,\n isOpen,\n handleClose,\n timezone,\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 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\n isGuide,\n timezone,\n isLoading,\n setIsLoading,\n}) => {\n const canAccessSessions =\n !relationship.isConcluded &&\n ((isGroupProgram && 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 { ConfirmationModal } from 'modals';\n\ninterface RelationshipActionDialogProps {\n dialogTitle: string;\n dialogDescription: string;\n cancelButtonLabel: string;\n actionRelationshipButtonLabel: string;\n open: boolean;\n loading: boolean;\n onClose: () => void;\n onUpdateRelationship: () => void;\n}\n\nexport const RelationshipActionDialog = ({\n dialogTitle,\n dialogDescription,\n cancelButtonLabel,\n actionRelationshipButtonLabel,\n open,\n loading,\n onClose,\n onUpdateRelationship,\n}: RelationshipActionDialogProps) => {\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 {\n useBaseLanguage,\n useOrganizationPrograms,\n} from '@guider-global/sanity-hooks';\nimport {\n Button,\n CustomModal,\n Stack,\n TextStack,\n Image,\n} from '@guider-global/ui';\nimport AvatarImage from 'assets/no_relationships_avatar.svg';\nimport { useLocalization } from 'hooks';\n\nexport interface PublishGuideProfileModalProps {\n showPublishedModal: boolean;\n handleButtonClick: () => void;\n requiresApproval: boolean;\n programSlug: string;\n organizationSlug: string;\n}\nexport function PublishGuideProfileModal({\n showPublishedModal,\n handleButtonClick,\n requiresApproval,\n programSlug,\n organizationSlug,\n}: PublishGuideProfileModalProps) {\n // Hooks\n const { localeCode } = useLocalization(organizationSlug);\n const { baseLanguage } = useBaseLanguage({ localeCode });\n const { getProgram } = useOrganizationPrograms({\n localeCode,\n organizationSlug,\n });\n const program = getProgram(programSlug);\n const ProgramTypeText =\n program?.program_details?.program_type?.program_type_text.variations\n ?.individual?.registration?.registration_guide;\n\n return (\n \n \n \n \"Group\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","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","isSubmitting","setIsSubmitting","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","watch","formState","errors","isValid","mode","Modal","Box","height","Card","maxWidth","minHeight","borderRadius","info","success","zIndex","CheckCircle","Typography","component","mt","my","size","subtitles","name","required","rows","LoadingButton","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","RelationshipActionDialog","dialogTitle","dialogDescription","actionRelationshipButtonLabel","onUpdateRelationship","PolicyModal","modalClose","policyTitle","policyContent","Dialog","scroll","DialogTitle","DialogContent","dividers","tabIndex","DialogActions","marginLeft","marginRight","PublishGuideProfileModal","showPublishedModal","handleButtonClick","requiresApproval","ProgramTypeText","individual","registration","registration_guide","align","registration_guide_membership_pending","registration_guide_complete","registration_guide_complete_title","text","registration_guide_complete_description","alt","fullWidth","dashboard_button_label","continue_button_label"],"sourceRoot":""}