@myrjfa/ui 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +19 -0
- package/dist/chat/ChatMain.d.ts +12 -0
- package/dist/chat/ChatMain.d.ts.map +1 -0
- package/dist/chat/ChatMain.js +390 -0
- package/dist/chat/ChatSidebar.d.ts +15 -0
- package/dist/chat/ChatSidebar.d.ts.map +1 -0
- package/dist/chat/ChatSidebar.js +32 -0
- package/dist/chat/ConversationList.d.ts +20 -0
- package/dist/chat/ConversationList.d.ts.map +1 -0
- package/dist/chat/ConversationList.js +95 -0
- package/dist/chat/EventPanel.d.ts +11 -0
- package/dist/chat/EventPanel.d.ts.map +1 -0
- package/dist/chat/EventPanel.js +76 -0
- package/dist/chat/ExpensePanel.d.ts +14 -0
- package/dist/chat/ExpensePanel.d.ts.map +1 -0
- package/dist/chat/ExpensePanel.js +282 -0
- package/dist/chat/MessageBubble.d.ts +29 -0
- package/dist/chat/MessageBubble.d.ts.map +1 -0
- package/dist/chat/MessageBubble.js +425 -0
- package/dist/chat/MessageInput.d.ts +34 -0
- package/dist/chat/MessageInput.d.ts.map +1 -0
- package/dist/chat/MessageInput.js +330 -0
- package/dist/chat/MilestonePanel.d.ts +14 -0
- package/dist/chat/MilestonePanel.d.ts.map +1 -0
- package/dist/chat/MilestonePanel.js +209 -0
- package/dist/chat/components/ParticipantSelector.d.ts +11 -0
- package/dist/chat/components/ParticipantSelector.d.ts.map +1 -0
- package/dist/chat/components/ParticipantSelector.js +26 -0
- package/dist/chat/components/SplitInputs.d.ts +12 -0
- package/dist/chat/components/SplitInputs.d.ts.map +1 -0
- package/dist/chat/components/SplitInputs.js +84 -0
- package/dist/chat/components/SplitTypeSelector.d.ts +8 -0
- package/dist/chat/components/SplitTypeSelector.d.ts.map +1 -0
- package/dist/chat/components/SplitTypeSelector.js +13 -0
- package/dist/chat/dialogs/AddMemberDialog.d.ts +15 -0
- package/dist/chat/dialogs/AddMemberDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/AddMemberDialog.js +43 -0
- package/dist/chat/dialogs/CameraDialog.d.ts +8 -0
- package/dist/chat/dialogs/CameraDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/CameraDialog.js +81 -0
- package/dist/chat/dialogs/ChatInfoDialog.d.ts +10 -0
- package/dist/chat/dialogs/ChatInfoDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/ChatInfoDialog.js +75 -0
- package/dist/chat/dialogs/ConversationSearchDialog.d.ts +8 -0
- package/dist/chat/dialogs/ConversationSearchDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/ConversationSearchDialog.js +53 -0
- package/dist/chat/dialogs/CreateEventDialog.d.ts +22 -0
- package/dist/chat/dialogs/CreateEventDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/CreateEventDialog.js +51 -0
- package/dist/chat/dialogs/CreatePollDialog.d.ts +8 -0
- package/dist/chat/dialogs/CreatePollDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/CreatePollDialog.js +38 -0
- package/dist/chat/dialogs/EditPollDialog.d.ts +14 -0
- package/dist/chat/dialogs/EditPollDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/EditPollDialog.js +33 -0
- package/dist/chat/dialogs/ExpenseAnalyticsDialog.d.ts +20 -0
- package/dist/chat/dialogs/ExpenseAnalyticsDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/ExpenseAnalyticsDialog.js +58 -0
- package/dist/chat/dialogs/GroupInfoDialog.d.ts +10 -0
- package/dist/chat/dialogs/GroupInfoDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/GroupInfoDialog.js +81 -0
- package/dist/chat/dialogs/GroupInfoViewDialog.d.ts +9 -0
- package/dist/chat/dialogs/GroupInfoViewDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/GroupInfoViewDialog.js +15 -0
- package/dist/chat/dialogs/HostWorkspaceDialog.d.ts +9 -0
- package/dist/chat/dialogs/HostWorkspaceDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/HostWorkspaceDialog.js +90 -0
- package/dist/chat/dialogs/MediaComposerDialog.d.ts +9 -0
- package/dist/chat/dialogs/MediaComposerDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/MediaComposerDialog.js +41 -0
- package/dist/chat/dialogs/NewChatDialog.d.ts +2 -0
- package/dist/chat/dialogs/NewChatDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/NewChatDialog.js +48 -0
- package/dist/chat/dialogs/NewGroupDialog.d.ts +2 -0
- package/dist/chat/dialogs/NewGroupDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/NewGroupDialog.js +44 -0
- package/dist/chat/dialogs/ParticipantsDialog.d.ts +12 -0
- package/dist/chat/dialogs/ParticipantsDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/ParticipantsDialog.js +134 -0
- package/dist/chat/dialogs/PayAndSplitDialog.d.ts +12 -0
- package/dist/chat/dialogs/PayAndSplitDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/PayAndSplitDialog.js +124 -0
- package/dist/chat/dialogs/PaymentProfileDialog.d.ts +5 -0
- package/dist/chat/dialogs/PaymentProfileDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/PaymentProfileDialog.js +45 -0
- package/dist/chat/dialogs/PollVotersDialog.d.ts +10 -0
- package/dist/chat/dialogs/PollVotersDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/PollVotersDialog.js +11 -0
- package/dist/chat/dialogs/ShareLocationDialog.d.ts +8 -0
- package/dist/chat/dialogs/ShareLocationDialog.d.ts.map +1 -0
- package/dist/chat/dialogs/ShareLocationDialog.js +47 -0
- package/dist/chat/index.d.ts +8 -0
- package/dist/chat/index.d.ts.map +1 -0
- package/dist/chat/index.js +7 -0
- package/dist/components/CityAutocomplete.d.ts +5 -0
- package/dist/components/CityAutocomplete.d.ts.map +1 -0
- package/dist/components/CityAutocomplete.js +112 -0
- package/dist/components/CreateListingDropdown.d.ts +5 -0
- package/dist/components/CreateListingDropdown.d.ts.map +1 -0
- package/dist/components/CreateListingDropdown.js +21 -0
- package/dist/components/DestinationAutocomplete.d.ts +11 -0
- package/dist/components/DestinationAutocomplete.d.ts.map +1 -0
- package/dist/components/DestinationAutocomplete.js +24 -0
- package/dist/components/StateAutocomplete.d.ts +10 -0
- package/dist/components/StateAutocomplete.d.ts.map +1 -0
- package/dist/components/StateAutocomplete.js +34 -0
- package/dist/components/admin/AdminBookingRegistrationsList.d.ts +5 -0
- package/dist/components/admin/AdminBookingRegistrationsList.d.ts.map +1 -0
- package/dist/components/admin/AdminBookingRegistrationsList.js +69 -0
- package/dist/components/admin/AdminListingActionsWrapper.d.ts +9 -0
- package/dist/components/admin/AdminListingActionsWrapper.d.ts.map +1 -0
- package/dist/components/admin/AdminListingActionsWrapper.js +200 -0
- package/dist/components/ads/ActivateAdPlacementButton.d.ts +6 -0
- package/dist/components/ads/ActivateAdPlacementButton.d.ts.map +1 -0
- package/dist/components/ads/ActivateAdPlacementButton.js +27 -0
- package/dist/components/ads/AdOfferCard.d.ts +6 -0
- package/dist/components/ads/AdOfferCard.d.ts.map +1 -0
- package/dist/components/ads/AdOfferCard.js +15 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.d.ts +17 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.d.ts.map +1 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.js +106 -0
- package/dist/components/adventure/AdventureQueryCard.d.ts +5 -0
- package/dist/components/adventure/AdventureQueryCard.d.ts.map +1 -0
- package/dist/components/adventure/AdventureQueryCard.js +65 -0
- package/dist/components/adventure/AdventureSlotBuilder.d.ts +41 -0
- package/dist/components/adventure/AdventureSlotBuilder.d.ts.map +1 -0
- package/dist/components/adventure/AdventureSlotBuilder.js +146 -0
- package/dist/components/booking/booking-form.d.ts +39 -0
- package/dist/components/booking/booking-form.d.ts.map +1 -0
- package/dist/components/booking/booking-form.js +847 -0
- package/dist/components/brand/BrandPageView.d.ts +8 -0
- package/dist/components/brand/BrandPageView.d.ts.map +1 -0
- package/dist/components/brand/BrandPageView.js +97 -0
- package/dist/components/companion/AnonymousChat.d.ts +22 -0
- package/dist/components/companion/AnonymousChat.d.ts.map +1 -0
- package/dist/components/companion/AnonymousChat.js +24 -0
- package/dist/components/companion/SwipeCard.d.ts +25 -0
- package/dist/components/companion/SwipeCard.d.ts.map +1 -0
- package/dist/components/companion/SwipeCard.js +58 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.d.ts +11 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.d.ts.map +1 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.js +14 -0
- package/dist/components/create-flow/EntityEditLoadingState.d.ts +2 -0
- package/dist/components/create-flow/EntityEditLoadingState.d.ts.map +1 -0
- package/dist/components/create-flow/EntityEditLoadingState.js +6 -0
- package/dist/components/create-flow/EntityFormCompletionState.d.ts +12 -0
- package/dist/components/create-flow/EntityFormCompletionState.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormCompletionState.js +10 -0
- package/dist/components/create-flow/EntityFormHeader.d.ts +9 -0
- package/dist/components/create-flow/EntityFormHeader.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormHeader.js +7 -0
- package/dist/components/create-flow/EntityFormPageFrame.d.ts +10 -0
- package/dist/components/create-flow/EntityFormPageFrame.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormPageFrame.js +10 -0
- package/dist/components/create-flow/ImageUploader.d.ts +30 -0
- package/dist/components/create-flow/ImageUploader.d.ts.map +1 -0
- package/dist/components/create-flow/ImageUploader.js +193 -0
- package/dist/components/create-flow/MultiStepWizard.d.ts +25 -0
- package/dist/components/create-flow/MultiStepWizard.d.ts.map +1 -0
- package/dist/components/create-flow/MultiStepWizard.js +31 -0
- package/dist/components/create-flow/ReviewConfirmationCard.d.ts +8 -0
- package/dist/components/create-flow/ReviewConfirmationCard.d.ts.map +1 -0
- package/dist/components/create-flow/ReviewConfirmationCard.js +5 -0
- package/dist/components/create-flow/ReviewMetricGrid.d.ts +15 -0
- package/dist/components/create-flow/ReviewMetricGrid.d.ts.map +1 -0
- package/dist/components/create-flow/ReviewMetricGrid.js +8 -0
- package/dist/components/create-flow/TemplateSelectionDialog.d.ts +17 -0
- package/dist/components/create-flow/TemplateSelectionDialog.d.ts.map +1 -0
- package/dist/components/create-flow/TemplateSelectionDialog.js +7 -0
- package/dist/components/discounts/OffersAndCouponsSheet.d.ts +13 -0
- package/dist/components/discounts/OffersAndCouponsSheet.d.ts.map +1 -0
- package/dist/components/discounts/OffersAndCouponsSheet.js +81 -0
- package/dist/components/enquiry/EnquiryFormParts.d.ts +40 -0
- package/dist/components/enquiry/EnquiryFormParts.d.ts.map +1 -0
- package/dist/components/enquiry/EnquiryFormParts.js +29 -0
- package/dist/components/form-sections/FaqSection.d.ts +24 -0
- package/dist/components/form-sections/FaqSection.d.ts.map +1 -0
- package/dist/components/form-sections/FaqSection.js +17 -0
- package/dist/components/form-sections/OpportunityBasicsSection.d.ts +8 -0
- package/dist/components/form-sections/OpportunityBasicsSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityBasicsSection.js +26 -0
- package/dist/components/form-sections/OpportunityDetailsSection.d.ts +18 -0
- package/dist/components/form-sections/OpportunityDetailsSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityDetailsSection.js +10 -0
- package/dist/components/form-sections/OpportunityTypeSection.d.ts +7 -0
- package/dist/components/form-sections/OpportunityTypeSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityTypeSection.js +15 -0
- package/dist/components/form-sections/PackageDetailsSection.d.ts +22 -0
- package/dist/components/form-sections/PackageDetailsSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageDetailsSection.js +20 -0
- package/dist/components/form-sections/PackageItinerarySection.d.ts +21 -0
- package/dist/components/form-sections/PackageItinerarySection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageItinerarySection.js +112 -0
- package/dist/components/form-sections/PackagePricingSection.d.ts +8 -0
- package/dist/components/form-sections/PackagePricingSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackagePricingSection.js +11 -0
- package/dist/components/form-sections/PackageReviewSection.d.ts +12 -0
- package/dist/components/form-sections/PackageReviewSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageReviewSection.js +26 -0
- package/dist/components/form-sections/RentalBasicsSection.d.ts +12 -0
- package/dist/components/form-sections/RentalBasicsSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalBasicsSection.js +91 -0
- package/dist/components/form-sections/RentalCapacitySection.d.ts +9 -0
- package/dist/components/form-sections/RentalCapacitySection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalCapacitySection.js +23 -0
- package/dist/components/form-sections/RentalLocationSection.d.ts +10 -0
- package/dist/components/form-sections/RentalLocationSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalLocationSection.js +41 -0
- package/dist/components/form-sections/RentalReviewSection.d.ts +10 -0
- package/dist/components/form-sections/RentalReviewSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalReviewSection.js +27 -0
- package/dist/components/form-sections/RentalRulesSection.d.ts +7 -0
- package/dist/components/form-sections/RentalRulesSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalRulesSection.js +10 -0
- package/dist/components/form-sections/RentalSpecsSection.d.ts +7 -0
- package/dist/components/form-sections/RentalSpecsSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalSpecsSection.js +10 -0
- package/dist/components/host-dashboard/HostCalendar.d.ts +8 -0
- package/dist/components/host-dashboard/HostCalendar.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostCalendar.js +43 -0
- package/dist/components/host-dashboard/HostCalendarGrid.d.ts +34 -0
- package/dist/components/host-dashboard/HostCalendarGrid.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostCalendarGrid.js +30 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.d.ts +12 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.js +24 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.d.ts +17 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.js +5 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.d.ts +2 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.js +299 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.d.ts +15 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.d.ts.map +1 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.js +43 -0
- package/dist/components/host-dashboard/PageHeader.d.ts +14 -0
- package/dist/components/host-dashboard/PageHeader.d.ts.map +1 -0
- package/dist/components/host-dashboard/PageHeader.js +8 -0
- package/dist/components/host-dashboard/PlaceholderPage.d.ts +4 -0
- package/dist/components/host-dashboard/PlaceholderPage.d.ts.map +1 -0
- package/dist/components/host-dashboard/PlaceholderPage.js +9 -0
- package/dist/components/host-dashboard/StatCard.d.ts +15 -0
- package/dist/components/host-dashboard/StatCard.d.ts.map +1 -0
- package/dist/components/host-dashboard/StatCard.js +38 -0
- package/dist/components/layout/AppProviders.d.ts +5 -0
- package/dist/components/layout/AppProviders.d.ts.map +1 -0
- package/dist/components/layout/AppProviders.js +11 -0
- package/dist/components/layout/PublicRouteLayout.d.ts +5 -0
- package/dist/components/layout/PublicRouteLayout.d.ts.map +1 -0
- package/dist/components/layout/PublicRouteLayout.js +5 -0
- package/dist/components/layout/PublicShell.d.ts +5 -0
- package/dist/components/layout/PublicShell.d.ts.map +1 -0
- package/dist/components/layout/PublicShell.js +5 -0
- package/dist/components/location/LocationPicker.d.ts +27 -0
- package/dist/components/location/LocationPicker.d.ts.map +1 -0
- package/dist/components/location/LocationPicker.js +415 -0
- package/dist/components/location/LocationPreview.d.ts +11 -0
- package/dist/components/location/LocationPreview.d.ts.map +1 -0
- package/dist/components/location/LocationPreview.js +12 -0
- package/dist/components/location/MapPicker.d.ts +9 -0
- package/dist/components/location/MapPicker.d.ts.map +1 -0
- package/dist/components/location/MapPicker.js +40 -0
- package/dist/components/location/MapPreview.d.ts +8 -0
- package/dist/components/location/MapPreview.d.ts.map +1 -0
- package/dist/components/location/MapPreview.js +17 -0
- package/dist/components/location/PlaceLinkInline.d.ts +14 -0
- package/dist/components/location/PlaceLinkInline.d.ts.map +1 -0
- package/dist/components/location/PlaceLinkInline.js +30 -0
- package/dist/components/location/leafletMap.d.ts +8 -0
- package/dist/components/location/leafletMap.d.ts.map +1 -0
- package/dist/components/location/leafletMap.js +74 -0
- package/dist/components/ui/GuestOrLoginDialog.d.ts +11 -0
- package/dist/components/ui/GuestOrLoginDialog.d.ts.map +1 -0
- package/dist/components/ui/GuestOrLoginDialog.js +19 -0
- package/dist/components/ui/ImageGalleryViewer.d.ts +10 -0
- package/dist/components/ui/ImageGalleryViewer.d.ts.map +1 -0
- package/dist/components/ui/ImageGalleryViewer.js +59 -0
- package/dist/components/ui/LocationInput.d.ts +12 -0
- package/dist/components/ui/LocationInput.d.ts.map +1 -0
- package/dist/components/ui/LocationInput.js +39 -0
- package/dist/components/ui/PropertyGalleryClient.d.ts +8 -0
- package/dist/components/ui/PropertyGalleryClient.d.ts.map +1 -0
- package/dist/components/ui/PropertyGalleryClient.js +22 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +75 -0
- package/dist/components/ui/dashboard/admin-adventures-table.d.ts +12 -0
- package/dist/components/ui/dashboard/admin-adventures-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-adventures-table.js +94 -0
- package/dist/components/ui/dashboard/admin-blogs-table.d.ts +11 -0
- package/dist/components/ui/dashboard/admin-blogs-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-blogs-table.js +58 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.d.ts +20 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.js +139 -0
- package/dist/components/ui/dashboard/admin-rentals-table.d.ts +12 -0
- package/dist/components/ui/dashboard/admin-rentals-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-rentals-table.js +85 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.d.ts +16 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.js +103 -0
- package/dist/components/ui/dashboard/adventures-table.d.ts +16 -0
- package/dist/components/ui/dashboard/adventures-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/adventures-table.js +151 -0
- package/dist/components/ui/dashboard/approver-applications-table.d.ts +13 -0
- package/dist/components/ui/dashboard/approver-applications-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/approver-applications-table.js +85 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.d.ts +11 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.js +102 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/blogs-table.d.ts +10 -0
- package/dist/components/ui/dashboard/blogs-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/blogs-table.js +62 -0
- package/dist/components/ui/dashboard/bookings-table.d.ts +13 -0
- package/dist/components/ui/dashboard/bookings-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/bookings-table.js +165 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.d.ts +7 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.d.ts.map +1 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.js +5 -0
- package/dist/components/ui/dashboard/data-table-shell.d.ts +18 -0
- package/dist/components/ui/dashboard/data-table-shell.d.ts.map +1 -0
- package/dist/components/ui/dashboard/data-table-shell.js +6 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/entity-list-page-state.d.ts +25 -0
- package/dist/components/ui/dashboard/entity-list-page-state.d.ts.map +1 -0
- package/dist/components/ui/dashboard/entity-list-page-state.js +17 -0
- package/dist/components/ui/dashboard/generic-entity-table.d.ts +36 -0
- package/dist/components/ui/dashboard/generic-entity-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/generic-entity-table.js +203 -0
- package/dist/components/ui/dashboard/opportunities-table.d.ts +17 -0
- package/dist/components/ui/dashboard/opportunities-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/opportunities-table.js +143 -0
- package/dist/components/ui/dashboard/rentals-table.d.ts +17 -0
- package/dist/components/ui/dashboard/rentals-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/rentals-table.js +155 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/stats-card.d.ts +6 -0
- package/dist/components/ui/dashboard/stats-card.d.ts.map +1 -0
- package/dist/components/ui/dashboard/stats-card.js +5 -0
- package/dist/components/ui/dashboard/travel-packages-table.d.ts +16 -0
- package/dist/components/ui/dashboard/travel-packages-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/travel-packages-table.js +134 -0
- package/dist/components/ui/dashboard/user-applications-table.d.ts +12 -0
- package/dist/components/ui/dashboard/user-applications-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/user-applications-table.js +79 -0
- package/dist/components/ui/loading-skeleton.d.ts +10 -0
- package/dist/components/ui/loading-skeleton.d.ts.map +1 -0
- package/dist/components/ui/loading-skeleton.js +49 -0
- package/dist/components/ui/misc/IosPwaNavBar.d.ts +8 -0
- package/dist/components/ui/misc/IosPwaNavBar.d.ts.map +1 -0
- package/dist/components/ui/misc/IosPwaNavBar.js +25 -0
- package/dist/components/ui/misc/document-upload-button.d.ts +10 -0
- package/dist/components/ui/misc/document-upload-button.d.ts.map +1 -0
- package/dist/components/ui/misc/document-upload-button.js +12 -0
- package/dist/components/ui/misc/empty-state.d.ts +9 -0
- package/dist/components/ui/misc/empty-state.d.ts.map +1 -0
- package/dist/components/ui/misc/empty-state.js +4 -0
- package/dist/components/ui/misc/image-cropper.d.ts +9 -0
- package/dist/components/ui/misc/image-cropper.d.ts.map +1 -0
- package/dist/components/ui/misc/image-cropper.js +28 -0
- package/dist/components/ui/misc/pwa-install-button.d.ts +2 -0
- package/dist/components/ui/misc/pwa-install-button.d.ts.map +1 -0
- package/dist/components/ui/misc/pwa-install-button.js +17 -0
- package/dist/components/ui/misc/rental-tile.d.ts +6 -0
- package/dist/components/ui/misc/rental-tile.d.ts.map +1 -0
- package/dist/components/ui/misc/rental-tile.js +56 -0
- package/dist/components/ui/misc/skeleton-extras.d.ts +32 -0
- package/dist/components/ui/misc/skeleton-extras.d.ts.map +1 -0
- package/dist/components/ui/misc/skeleton-extras.js +58 -0
- package/dist/components/ui/misc/tile.d.ts +4 -0
- package/dist/components/ui/misc/tile.d.ts.map +1 -0
- package/dist/components/ui/misc/tile.js +45 -0
- package/dist/components/ui/misc/whatsapp-help.d.ts +7 -0
- package/dist/components/ui/misc/whatsapp-help.d.ts.map +1 -0
- package/dist/components/ui/misc/whatsapp-help.js +6 -0
- package/dist/components/ui/motion.d.ts +14 -0
- package/dist/components/ui/motion.d.ts.map +1 -0
- package/dist/components/ui/motion.js +17 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.d.ts +10 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.js +15 -0
- package/dist/components/ui/trippeaze/chip-tabs.d.ts +13 -0
- package/dist/components/ui/trippeaze/chip-tabs.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/chip-tabs.js +6 -0
- package/dist/components/ui/trippeaze/page-shell.d.ts +22 -0
- package/dist/components/ui/trippeaze/page-shell.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/page-shell.js +15 -0
- package/dist/components/ui/trippeaze/search-input.d.ts +5 -0
- package/dist/components/ui/trippeaze/search-input.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/search-input.js +7 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.d.ts +2 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.d.ts.map +1 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.js +17 -0
- package/dist/components/user-dashboard/UserSidebarNav.d.ts +2 -0
- package/dist/components/user-dashboard/UserSidebarNav.d.ts.map +1 -0
- package/dist/components/user-dashboard/UserSidebarNav.js +68 -0
- package/dist/dashboard/action-buttons.d.ts +17 -0
- package/dist/dashboard/action-buttons.d.ts.map +1 -0
- package/dist/dashboard/action-buttons.js +22 -0
- package/dist/dashboard/app-sidebar.d.ts +3 -0
- package/dist/dashboard/app-sidebar.d.ts.map +1 -0
- package/dist/dashboard/app-sidebar.js +61 -0
- package/dist/dashboard/card-header.d.ts +11 -0
- package/dist/dashboard/card-header.d.ts.map +1 -0
- package/dist/dashboard/card-header.js +7 -0
- package/dist/dashboard/dashboard-components.d.ts +13 -0
- package/dist/dashboard/dashboard-components.d.ts.map +1 -0
- package/dist/dashboard/dashboard-components.js +10 -0
- package/dist/dashboard/data-table.d.ts +24 -0
- package/dist/dashboard/data-table.d.ts.map +1 -0
- package/dist/dashboard/data-table.js +88 -0
- package/dist/dashboard/nav-main.d.ts +9 -0
- package/dist/dashboard/nav-main.d.ts.map +1 -0
- package/dist/dashboard/nav-main.js +9 -0
- package/dist/dashboard/nav-secondary.d.ts +10 -0
- package/dist/dashboard/nav-secondary.d.ts.map +1 -0
- package/dist/dashboard/nav-secondary.js +6 -0
- package/dist/dashboard/stats-card.d.ts +6 -0
- package/dist/dashboard/stats-card.d.ts.map +1 -0
- package/dist/dashboard/stats-card.js +5 -0
- package/dist/dashboard/table.d.ts +11 -0
- package/dist/dashboard/table.d.ts.map +1 -0
- package/dist/dashboard/table.js +21 -0
- package/dist/header/mobile-nav-item.d.ts +9 -0
- package/dist/header/mobile-nav-item.d.ts.map +1 -0
- package/dist/header/mobile-nav-item.js +6 -0
- package/dist/header/mobile-navbar.d.ts +5 -0
- package/dist/header/mobile-navbar.d.ts.map +1 -0
- package/dist/header/mobile-navbar.js +30 -0
- package/dist/header/nav-item.d.ts +10 -0
- package/dist/header/nav-item.d.ts.map +1 -0
- package/dist/header/nav-item.js +6 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +85 -0
- package/dist/layout/AppProviders.d.ts +5 -0
- package/dist/layout/AppProviders.d.ts.map +1 -0
- package/dist/layout/AppProviders.js +11 -0
- package/dist/layout/PublicShell.d.ts +5 -0
- package/dist/layout/PublicShell.d.ts.map +1 -0
- package/dist/layout/PublicShell.js +5 -0
- package/dist/main/footer.d.ts +6 -0
- package/dist/main/footer.d.ts.map +1 -0
- package/dist/main/footer.js +58 -0
- package/dist/main/navbar.d.ts +6 -0
- package/dist/main/navbar.d.ts.map +1 -0
- package/dist/main/navbar.js +130 -0
- package/dist/main/paginationBar.d.ts +5 -0
- package/dist/main/paginationBar.d.ts.map +1 -0
- package/dist/main/paginationBar.js +28 -0
- package/dist/main/portfolio/portfolioItem.d.ts +7 -0
- package/dist/main/portfolio/portfolioItem.d.ts.map +1 -0
- package/dist/main/portfolio/portfolioItem.js +7 -0
- package/dist/main/portfolio/portfolioPopup.d.ts +8 -0
- package/dist/main/portfolio/portfolioPopup.d.ts.map +1 -0
- package/dist/main/portfolio/portfolioPopup.js +71 -0
- package/dist/main/review-page.d.ts +14 -0
- package/dist/main/review-page.d.ts.map +1 -0
- package/dist/main/review-page.js +209 -0
- package/dist/misc/IosPwaNavBar.d.ts +8 -0
- package/dist/misc/IosPwaNavBar.d.ts.map +1 -0
- package/dist/misc/IosPwaNavBar.js +25 -0
- package/dist/misc/accordion.d.ts +7 -0
- package/dist/misc/accordion.d.ts.map +1 -0
- package/dist/misc/accordion.js +18 -0
- package/dist/misc/alert-dialog.d.ts +14 -0
- package/dist/misc/alert-dialog.d.ts.map +1 -0
- package/dist/misc/alert-dialog.js +39 -0
- package/dist/misc/alert.d.ts +9 -0
- package/dist/misc/alert.d.ts.map +1 -0
- package/dist/misc/alert.js +24 -0
- package/dist/misc/alertdialogclaude.d.ts +15 -0
- package/dist/misc/alertdialogclaude.d.ts.map +1 -0
- package/dist/misc/alertdialogclaude.js +151 -0
- package/dist/misc/avatar.d.ts +6 -0
- package/dist/misc/avatar.d.ts.map +1 -0
- package/dist/misc/avatar.js +14 -0
- package/dist/misc/badge.d.ts +9 -0
- package/dist/misc/badge.d.ts.map +1 -0
- package/dist/misc/badge.js +22 -0
- package/dist/misc/button.d.ts +13 -0
- package/dist/misc/button.d.ts.map +1 -0
- package/dist/misc/button.js +59 -0
- package/dist/misc/card.d.ts +9 -0
- package/dist/misc/card.d.ts.map +1 -0
- package/dist/misc/card.js +21 -0
- package/dist/misc/carousel.d.ts +20 -0
- package/dist/misc/carousel.d.ts.map +1 -0
- package/dist/misc/carousel.js +99 -0
- package/dist/misc/checkbox.d.ts +4 -0
- package/dist/misc/checkbox.d.ts.map +1 -0
- package/dist/misc/checkbox.js +9 -0
- package/dist/misc/command.d.ts +18 -0
- package/dist/misc/command.d.ts.map +1 -0
- package/dist/misc/command.js +34 -0
- package/dist/misc/datepicker.d.ts +15 -0
- package/dist/misc/datepicker.d.ts.map +1 -0
- package/dist/misc/datepicker.js +221 -0
- package/dist/misc/dialog.d.ts +13 -0
- package/dist/misc/dialog.d.ts.map +1 -0
- package/dist/misc/dialog.js +36 -0
- package/dist/misc/discount-strategy-editor.d.ts +22 -0
- package/dist/misc/discount-strategy-editor.d.ts.map +1 -0
- package/dist/misc/discount-strategy-editor.js +61 -0
- package/dist/misc/document-upload-button.d.ts +12 -0
- package/dist/misc/document-upload-button.d.ts.map +1 -0
- package/dist/misc/document-upload-button.js +27 -0
- package/dist/misc/dropdown-menu.d.ts +25 -0
- package/dist/misc/dropdown-menu.d.ts.map +1 -0
- package/dist/misc/dropdown-menu.js +51 -0
- package/dist/misc/empty-state.d.ts +10 -0
- package/dist/misc/empty-state.d.ts.map +1 -0
- package/dist/misc/empty-state.js +5 -0
- package/dist/misc/faq.d.ts +5 -0
- package/dist/misc/faq.d.ts.map +1 -0
- package/dist/misc/faq.js +5 -0
- package/dist/misc/file-preview.d.ts +9 -0
- package/dist/misc/file-preview.d.ts.map +1 -0
- package/dist/misc/file-preview.js +76 -0
- package/dist/misc/filter.d.ts +12 -0
- package/dist/misc/filter.d.ts.map +1 -0
- package/dist/misc/filter.js +44 -0
- package/dist/misc/filterBar.d.ts +39 -0
- package/dist/misc/filterBar.d.ts.map +1 -0
- package/dist/misc/filterBar.js +384 -0
- package/dist/misc/form.d.ts +25 -0
- package/dist/misc/form.d.ts.map +1 -0
- package/dist/misc/form.js +60 -0
- package/dist/misc/image-compressor.d.ts +29 -0
- package/dist/misc/image-compressor.d.ts.map +1 -0
- package/dist/misc/image-compressor.js +70 -0
- package/dist/misc/image-cropper.d.ts +10 -0
- package/dist/misc/image-cropper.d.ts.map +1 -0
- package/dist/misc/image-cropper.js +44 -0
- package/dist/misc/input.d.ts +7 -0
- package/dist/misc/input.d.ts.map +1 -0
- package/dist/misc/input.js +11 -0
- package/dist/misc/label.d.ts +4 -0
- package/dist/misc/label.d.ts.map +1 -0
- package/dist/misc/label.js +8 -0
- package/dist/misc/line-carousel.d.ts +9 -0
- package/dist/misc/line-carousel.d.ts.map +1 -0
- package/dist/misc/line-carousel.js +5 -0
- package/dist/misc/listing-wishlist-button.d.ts +13 -0
- package/dist/misc/listing-wishlist-button.d.ts.map +1 -0
- package/dist/misc/listing-wishlist-button.js +42 -0
- package/dist/misc/location/leafletMap.d.ts +8 -0
- package/dist/misc/location/leafletMap.d.ts.map +1 -0
- package/dist/misc/location/leafletMap.js +62 -0
- package/dist/misc/location/locationPicker.d.ts +5 -0
- package/dist/misc/location/locationPicker.d.ts.map +1 -0
- package/dist/misc/location/locationPicker.js +95 -0
- package/dist/misc/location-autocomplete.d.ts +28 -0
- package/dist/misc/location-autocomplete.d.ts.map +1 -0
- package/dist/misc/location-autocomplete.js +121 -0
- package/dist/misc/newsLetter.d.ts +3 -0
- package/dist/misc/newsLetter.d.ts.map +1 -0
- package/dist/misc/newsLetter.js +41 -0
- package/dist/misc/non-modal-multi-select.d.ts +21 -0
- package/dist/misc/non-modal-multi-select.d.ts.map +1 -0
- package/dist/misc/non-modal-multi-select.js +25 -0
- package/dist/misc/non-modal-select.d.ts +22 -0
- package/dist/misc/non-modal-select.d.ts.map +1 -0
- package/dist/misc/non-modal-select.js +23 -0
- package/dist/misc/notification.d.ts +7 -0
- package/dist/misc/notification.d.ts.map +1 -0
- package/dist/misc/notification.js +157 -0
- package/dist/misc/pagination.d.ts +15 -0
- package/dist/misc/pagination.d.ts.map +1 -0
- package/dist/misc/pagination.js +30 -0
- package/dist/misc/password-eye.d.ts +7 -0
- package/dist/misc/password-eye.d.ts.map +1 -0
- package/dist/misc/password-eye.js +7 -0
- package/dist/misc/popover.d.ts +7 -0
- package/dist/misc/popover.d.ts.map +1 -0
- package/dist/misc/popover.js +17 -0
- package/dist/misc/pricing-strategy-editor.d.ts +17 -0
- package/dist/misc/pricing-strategy-editor.d.ts.map +1 -0
- package/dist/misc/pricing-strategy-editor.js +80 -0
- package/dist/misc/progress.d.ts +4 -0
- package/dist/misc/progress.d.ts.map +1 -0
- package/dist/misc/progress.js +8 -0
- package/dist/misc/pwa-install-button.d.ts +9 -0
- package/dist/misc/pwa-install-button.d.ts.map +1 -0
- package/dist/misc/pwa-install-button.js +160 -0
- package/dist/misc/rental-tile.d.ts +6 -0
- package/dist/misc/rental-tile.d.ts.map +1 -0
- package/dist/misc/rental-tile.js +33 -0
- package/dist/misc/scroll-area.d.ts +5 -0
- package/dist/misc/scroll-area.d.ts.map +1 -0
- package/dist/misc/scroll-area.js +13 -0
- package/dist/misc/searchBar.d.ts +6 -0
- package/dist/misc/searchBar.d.ts.map +1 -0
- package/dist/misc/searchBar.js +89 -0
- package/dist/misc/searchBox.d.ts +13 -0
- package/dist/misc/searchBox.d.ts.map +1 -0
- package/dist/misc/searchBox.js +63 -0
- package/dist/misc/select.d.ts +13 -0
- package/dist/misc/select.d.ts.map +1 -0
- package/dist/misc/select.js +38 -0
- package/dist/misc/separator.d.ts +4 -0
- package/dist/misc/separator.d.ts.map +1 -0
- package/dist/misc/separator.js +8 -0
- package/dist/misc/share.d.ts +5 -0
- package/dist/misc/share.d.ts.map +1 -0
- package/dist/misc/share.js +157 -0
- package/dist/misc/sheet.d.ts +13 -0
- package/dist/misc/sheet.d.ts.map +1 -0
- package/dist/misc/sheet.js +40 -0
- package/dist/misc/sidebar.d.ts +70 -0
- package/dist/misc/sidebar.d.ts.map +1 -0
- package/dist/misc/sidebar.js +212 -0
- package/dist/misc/skeleton.d.ts +38 -0
- package/dist/misc/skeleton.d.ts.map +1 -0
- package/dist/misc/skeleton.js +43 -0
- package/dist/misc/slider.d.ts +5 -0
- package/dist/misc/slider.d.ts.map +1 -0
- package/dist/misc/slider.js +11 -0
- package/dist/misc/starRating.d.ts +4 -0
- package/dist/misc/starRating.d.ts.map +1 -0
- package/dist/misc/starRating.js +11 -0
- package/dist/misc/stateCard.d.ts +7 -0
- package/dist/misc/stateCard.d.ts.map +1 -0
- package/dist/misc/stateCard.js +21 -0
- package/dist/misc/step-progress.d.ts +16 -0
- package/dist/misc/step-progress.d.ts.map +1 -0
- package/dist/misc/step-progress.js +40 -0
- package/dist/misc/switch.d.ts +5 -0
- package/dist/misc/switch.d.ts.map +1 -0
- package/dist/misc/switch.js +8 -0
- package/dist/misc/tabs.d.ts +8 -0
- package/dist/misc/tabs.d.ts.map +1 -0
- package/dist/misc/tabs.js +17 -0
- package/dist/misc/tag-filter-input.d.ts +16 -0
- package/dist/misc/tag-filter-input.d.ts.map +1 -0
- package/dist/misc/tag-filter-input.js +26 -0
- package/dist/misc/textarea.d.ts +4 -0
- package/dist/misc/textarea.d.ts.map +1 -0
- package/dist/misc/textarea.js +6 -0
- package/dist/misc/tile.d.ts +4 -0
- package/dist/misc/tile.d.ts.map +1 -0
- package/dist/misc/tile.js +45 -0
- package/dist/misc/time-select.d.ts +14 -0
- package/dist/misc/time-select.d.ts.map +1 -0
- package/dist/misc/time-select.js +13 -0
- package/dist/misc/tooltip.d.ts +8 -0
- package/dist/misc/tooltip.d.ts.map +1 -0
- package/dist/misc/tooltip.js +17 -0
- package/dist/misc/whatsapp-help.d.ts +9 -0
- package/dist/misc/whatsapp-help.d.ts.map +1 -0
- package/dist/misc/whatsapp-help.js +13 -0
- package/dist/misc/wizard-footer.d.ts +18 -0
- package/dist/misc/wizard-footer.d.ts.map +1 -0
- package/dist/misc/wizard-footer.js +11 -0
- package/dist/profile/socialLink.d.ts +10 -0
- package/dist/profile/socialLink.d.ts.map +1 -0
- package/dist/profile/socialLink.js +66 -0
- package/dist/utils/permissions.d.ts +7 -0
- package/dist/utils/permissions.d.ts.map +1 -0
- package/dist/utils/permissions.js +38 -0
- package/package.json +93 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frontend-ui
|
|
2
|
+
this is shared ui components library foe myrjfa-frontend
|
|
3
|
+
|
|
4
|
+
## AI And Team Onboarding
|
|
5
|
+
|
|
6
|
+
- Read `AGENTS.md` before changing shared UI components.
|
|
7
|
+
- Read `wiki/PROJECT_MAP.md` before opening many source files.
|
|
8
|
+
- Use `.agents/README.md` for shared UI workflow guidance.
|
|
9
|
+
- Update `frontend-state` first when component props mirror backend/domain
|
|
10
|
+
contracts.
|
|
11
|
+
- Check `Trippeaze-frontend-1` consumers before changing exported props.
|
|
12
|
+
- Refresh the project map from the workspace root after structural changes:
|
|
13
|
+
`.\.agents\scripts\update-repo-map.ps1 -RepoPath .\frontend-ui`
|
|
14
|
+
|
|
15
|
+
## Integration Role
|
|
16
|
+
|
|
17
|
+
This package owns reusable React components, design primitives, dashboard UI,
|
|
18
|
+
form sections, booking UI, chat UI, and visual building blocks for Trippeaze
|
|
19
|
+
frontends.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ChatActorModel, type Conversation } from "@myrjfa/state/dist/lib/models/chat";
|
|
2
|
+
import { UserRole } from "@myrjfa/state/dist/lib/models/props";
|
|
3
|
+
interface ChatMainProps {
|
|
4
|
+
conversation: Conversation;
|
|
5
|
+
currentUserId: string;
|
|
6
|
+
currentActorModel: ChatActorModel;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
onCallAlert?: (targetId: string, targetRole: UserRole) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ChatMain({ conversation, currentUserId, currentActorModel, onBack, onCallAlert, }: ChatMainProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ChatMain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMain.d.ts","sourceRoot":"","sources":["../../src/chat/ChatMain.tsx"],"names":[],"mappings":"AASA,OAAO,EAGH,KAAK,cAAc,EACnB,KAAK,YAAY,EAEpB,MAAM,oCAAoC,CAAC;AAiB5C,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,UAAU,aAAa;IACnB,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,cAAc,CAAC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,KAAK,IAAI,CAAC;CAClE;AAED,wBAAgB,QAAQ,CAAC,EACrB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,MAAM,EACN,WAAW,GACd,EAAE,aAAa,2CAgzBf"}
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import React, { useEffect, useRef, useCallback } from "react";
|
|
4
|
+
import { chatApi } from "@myrjfa/state/dist/lib/actions/chat";
|
|
5
|
+
import { useChatContext } from "@myrjfa/state/dist/lib/context/ChatContext";
|
|
6
|
+
import { MessageBubble } from "./MessageBubble";
|
|
7
|
+
import { MessageInput } from "./MessageInput";
|
|
8
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../misc/dropdown-menu";
|
|
9
|
+
import { ArrowLeft, CalendarDays, Info, MoreVertical, Search, Trash2, Users, X } from "lucide-react";
|
|
10
|
+
import { chatActorKey, isSameChatActor, } from "@myrjfa/state/dist/lib/models/chat";
|
|
11
|
+
import { useRouter } from "next/navigation";
|
|
12
|
+
import { Avatar, AvatarFallback, AvatarImage } from "../misc/avatar";
|
|
13
|
+
import { MilestonePanel } from "./MilestonePanel";
|
|
14
|
+
import { ExpensePanel } from "./ExpensePanel";
|
|
15
|
+
import { EventPanel } from "./EventPanel";
|
|
16
|
+
import { PayAndSplitDialog } from "./dialogs/PayAndSplitDialog";
|
|
17
|
+
import { PaymentProfileDialog } from "./dialogs/PaymentProfileDialog";
|
|
18
|
+
import { HostWorkspaceDialog } from "./dialogs/HostWorkspaceDialog";
|
|
19
|
+
import { ParticipantsDialog } from "./dialogs/ParticipantsDialog";
|
|
20
|
+
import { GroupInfoDialog } from "./dialogs/GroupInfoDialog";
|
|
21
|
+
import { GroupInfoViewDialog } from "./dialogs/GroupInfoViewDialog";
|
|
22
|
+
import { ChatInfoDialog } from "./dialogs/ChatInfoDialog";
|
|
23
|
+
import { ConversationSearchDialog } from "./dialogs/ConversationSearchDialog";
|
|
24
|
+
import { ListTodo, ReceiptText, MessageCircle, FilePenLine } from "lucide-react";
|
|
25
|
+
import { Button } from "../misc/button";
|
|
26
|
+
import { showAlert } from "../misc/alertdialogclaude";
|
|
27
|
+
export function ChatMain({ conversation, currentUserId, currentActorModel, onBack, onCallAlert, }) {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
29
|
+
const { socket, messages, setMessages, sendMessage, typingUsers, onlineUsers, editMessage, toggleMessageReaction, deleteMessage, markRead, createPoll, votePoll, updatePoll, refreshConversations } = useChatContext();
|
|
30
|
+
const messagesEndRef = useRef(null);
|
|
31
|
+
const messagesContainerRef = useRef(null);
|
|
32
|
+
const draftTimerRef = useRef(null);
|
|
33
|
+
const [activePanel, setActivePanel] = React.useState("chat");
|
|
34
|
+
const [temporaryPanel, setTemporaryPanel] = React.useState(null);
|
|
35
|
+
const [isParticipantsOpen, setIsParticipantsOpen] = React.useState(false);
|
|
36
|
+
const [isGroupInfoOpen, setIsGroupInfoOpen] = React.useState(false);
|
|
37
|
+
const [isGroupInfoViewOpen, setIsGroupInfoViewOpen] = React.useState(false);
|
|
38
|
+
const [isChatInfoOpen, setIsChatInfoOpen] = React.useState(false);
|
|
39
|
+
const [isSearchOpen, setIsSearchOpen] = React.useState(false);
|
|
40
|
+
const [isPayAndSplitOpen, setIsPayAndSplitOpen] = React.useState(false);
|
|
41
|
+
const [isPaymentProfileOpen, setIsPaymentProfileOpen] = React.useState(false);
|
|
42
|
+
const [isHostWorkspaceOpen, setIsHostWorkspaceOpen] = React.useState(false);
|
|
43
|
+
const [hostComposerText, setHostComposerText] = React.useState(undefined);
|
|
44
|
+
const [loading, setLoading] = React.useState(true);
|
|
45
|
+
const [replyMessage, setReplyMessage] = React.useState(null);
|
|
46
|
+
const [editingMessage, setEditingMessage] = React.useState(null);
|
|
47
|
+
const [hasBlocked, setHasBlocked] = React.useState(false);
|
|
48
|
+
const [isBlocked, setIsBlocked] = React.useState(false);
|
|
49
|
+
const currentActor = { actorId: currentUserId, actorModel: currentActorModel };
|
|
50
|
+
const otherUser = conversation.participants.length === 2
|
|
51
|
+
? conversation.participants.find((participant) => !isSameChatActor(participant, currentActor))
|
|
52
|
+
: null;
|
|
53
|
+
const otherUserModel = (otherUser === null || otherUser === void 0 ? void 0 : otherUser.actorModel) || "User";
|
|
54
|
+
const router = useRouter();
|
|
55
|
+
const confirmDestructiveAction = async (message, actionLabel) => {
|
|
56
|
+
let confirmed = false;
|
|
57
|
+
await showAlert(message, "Please confirm", [
|
|
58
|
+
{ label: "Cancel", variant: "outline", icon: _jsx(X, { className: "h-4 w-4" }), action: () => undefined },
|
|
59
|
+
{
|
|
60
|
+
label: actionLabel,
|
|
61
|
+
variant: "destructive",
|
|
62
|
+
icon: _jsx(Trash2, { className: "h-4 w-4" }),
|
|
63
|
+
action: () => { confirmed = true; },
|
|
64
|
+
},
|
|
65
|
+
]);
|
|
66
|
+
return confirmed;
|
|
67
|
+
};
|
|
68
|
+
// Reset active panel when conversation changes
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
setActivePanel("chat");
|
|
71
|
+
setTemporaryPanel(null);
|
|
72
|
+
setIsBlocked(false);
|
|
73
|
+
setHasBlocked(false);
|
|
74
|
+
setIsGroupInfoOpen(false);
|
|
75
|
+
setIsGroupInfoViewOpen(false);
|
|
76
|
+
setIsParticipantsOpen(false);
|
|
77
|
+
setIsChatInfoOpen(false);
|
|
78
|
+
setIsSearchOpen(false);
|
|
79
|
+
setIsPayAndSplitOpen(false);
|
|
80
|
+
setIsPaymentProfileOpen(false);
|
|
81
|
+
setIsHostWorkspaceOpen(false);
|
|
82
|
+
setHostComposerText(undefined);
|
|
83
|
+
setEditingMessage(null);
|
|
84
|
+
setReplyMessage(null);
|
|
85
|
+
}, [conversation._id]);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
let cancelled = false;
|
|
88
|
+
setLoading(true);
|
|
89
|
+
if (conversation.preference.markedUnreadAt) {
|
|
90
|
+
void chatApi.updateConversationPreference(conversation._id, { markedUnread: false });
|
|
91
|
+
}
|
|
92
|
+
chatApi
|
|
93
|
+
.getMessages(conversation._id, { limit: 50 })
|
|
94
|
+
.then((data) => {
|
|
95
|
+
if (!cancelled) {
|
|
96
|
+
setMessages(data);
|
|
97
|
+
setLoading(false);
|
|
98
|
+
if (document.visibilityState === "visible") {
|
|
99
|
+
const unreadIds = data.filter((message) => {
|
|
100
|
+
var _a;
|
|
101
|
+
return !isSameChatActor({ actorId: message.senderId, actorModel: message.senderModel }, currentActor) &&
|
|
102
|
+
!((_a = message.readBy) === null || _a === void 0 ? void 0 : _a.some((receipt) => isSameChatActor(receipt, currentActor)));
|
|
103
|
+
}).map((message) => message._id);
|
|
104
|
+
if (unreadIds.length > 0) {
|
|
105
|
+
markRead(conversation._id, unreadIds);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
.catch((e) => {
|
|
111
|
+
console.error(e);
|
|
112
|
+
if (!cancelled)
|
|
113
|
+
setLoading(false);
|
|
114
|
+
});
|
|
115
|
+
return () => {
|
|
116
|
+
cancelled = true;
|
|
117
|
+
};
|
|
118
|
+
}, [conversation._id, currentActorModel, currentUserId, markRead, setMessages]);
|
|
119
|
+
useEffect(() => {
|
|
120
|
+
var _a;
|
|
121
|
+
(_a = messagesEndRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
|
|
122
|
+
if (document.visibilityState !== "visible")
|
|
123
|
+
return;
|
|
124
|
+
const unreadIds = messages
|
|
125
|
+
.filter((message) => {
|
|
126
|
+
var _a;
|
|
127
|
+
return !isSameChatActor({ actorId: message.senderId, actorModel: message.senderModel }, currentActor) &&
|
|
128
|
+
!((_a = message.readBy) === null || _a === void 0 ? void 0 : _a.some((receipt) => isSameChatActor(receipt, currentActor)));
|
|
129
|
+
})
|
|
130
|
+
.map((message) => message._id);
|
|
131
|
+
if (unreadIds.length)
|
|
132
|
+
markRead(conversation._id, unreadIds);
|
|
133
|
+
}, [conversation._id, currentActorModel, currentUserId, markRead, messages]);
|
|
134
|
+
useEffect(() => {
|
|
135
|
+
const markVisibleMessagesRead = () => {
|
|
136
|
+
if (document.visibilityState !== "visible")
|
|
137
|
+
return;
|
|
138
|
+
const unreadIds = messages
|
|
139
|
+
.filter((message) => {
|
|
140
|
+
var _a;
|
|
141
|
+
return !isSameChatActor({ actorId: message.senderId, actorModel: message.senderModel }, currentActor) &&
|
|
142
|
+
!((_a = message.readBy) === null || _a === void 0 ? void 0 : _a.some((receipt) => isSameChatActor(receipt, currentActor)));
|
|
143
|
+
})
|
|
144
|
+
.map((message) => message._id);
|
|
145
|
+
if (unreadIds.length)
|
|
146
|
+
markRead(conversation._id, unreadIds);
|
|
147
|
+
};
|
|
148
|
+
document.addEventListener("visibilitychange", markVisibleMessagesRead);
|
|
149
|
+
window.addEventListener("focus", markVisibleMessagesRead);
|
|
150
|
+
return () => {
|
|
151
|
+
document.removeEventListener("visibilitychange", markVisibleMessagesRead);
|
|
152
|
+
window.removeEventListener("focus", markVisibleMessagesRead);
|
|
153
|
+
};
|
|
154
|
+
}, [conversation._id, currentActorModel, currentUserId, markRead, messages]);
|
|
155
|
+
// Check block status for individual chats
|
|
156
|
+
useEffect(() => {
|
|
157
|
+
if (conversation.type === 'individual') {
|
|
158
|
+
if (otherUser) {
|
|
159
|
+
chatApi.getBlockStatus(otherUser.actorId, otherUserModel).then(b => {
|
|
160
|
+
setIsBlocked(b.isBlocked);
|
|
161
|
+
setHasBlocked(b.hasBlocked);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, [conversation._id, conversation.type, currentUserId]);
|
|
166
|
+
const initiateEdit = (message) => {
|
|
167
|
+
setEditingMessage(message);
|
|
168
|
+
setReplyMessage(message);
|
|
169
|
+
};
|
|
170
|
+
const handleEdit = useCallback((messageId, newText) => {
|
|
171
|
+
if (newText !== null && newText.trim() !== "" && newText !== (editingMessage === null || editingMessage === void 0 ? void 0 : editingMessage.content.text)) {
|
|
172
|
+
editMessage(messageId, newText);
|
|
173
|
+
}
|
|
174
|
+
setEditingMessage(null);
|
|
175
|
+
setReplyMessage(null);
|
|
176
|
+
}, [editMessage, editingMessage, replyMessage]);
|
|
177
|
+
const handleReact = (messageId, emoji) => {
|
|
178
|
+
if (emoji) {
|
|
179
|
+
toggleMessageReaction(messageId, emoji);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
const handleUnreact = (messageId) => {
|
|
183
|
+
if (messageId) {
|
|
184
|
+
toggleMessageReaction(messageId, undefined);
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
const handleDelete = (messageId) => {
|
|
188
|
+
void confirmDestructiveAction("Are you sure you want to unsend this message?", "Unsend").then((confirmed) => {
|
|
189
|
+
if (!confirmed)
|
|
190
|
+
return;
|
|
191
|
+
deleteMessage(messageId);
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
const handleModerateMessage = (messageId) => {
|
|
195
|
+
void confirmDestructiveAction("Remove this message for everyone in the group?", "Remove message").then(async (confirmed) => {
|
|
196
|
+
if (!confirmed)
|
|
197
|
+
return;
|
|
198
|
+
await chatApi.moderateMessage(messageId, "Removed by a group admin");
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
const handleReportMessage = (message) => {
|
|
202
|
+
void showAlert("Report this message to Trippeaze moderation?", "Report message", [
|
|
203
|
+
{ label: "Cancel", variant: "outline", icon: _jsx(X, { className: "h-4 w-4" }), action: () => undefined },
|
|
204
|
+
{
|
|
205
|
+
label: "Report",
|
|
206
|
+
variant: "destructive",
|
|
207
|
+
icon: _jsx(Trash2, { className: "h-4 w-4" }),
|
|
208
|
+
action: () => {
|
|
209
|
+
void chatApi.reportContent(conversation._id, {
|
|
210
|
+
messageId: message._id,
|
|
211
|
+
targetActor: { actorId: message.senderId, actorModel: message.senderModel },
|
|
212
|
+
reason: "Reported by a conversation participant",
|
|
213
|
+
});
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
]);
|
|
217
|
+
};
|
|
218
|
+
const handleLeaveGroup = async () => {
|
|
219
|
+
if (isAdmin && conversation.participants.filter(p => p.chatRole == "admin").length < 2) {
|
|
220
|
+
await showAlert("Please assign someone else admin before leaving group");
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (!await confirmDestructiveAction("Are you sure you want to leave this group?", "Leave group"))
|
|
224
|
+
return;
|
|
225
|
+
try {
|
|
226
|
+
const currentParticipant = conversation.participants.find((participant) => isSameChatActor(participant, currentActor));
|
|
227
|
+
await chatApi.removeParticipant(conversation._id, currentUserId, ((currentParticipant === null || currentParticipant === void 0 ? void 0 : currentParticipant.actorModel) || ((currentParticipant === null || currentParticipant === void 0 ? void 0 : currentParticipant.accountType) === "host" ? "HostProfile" : "User")));
|
|
228
|
+
await refreshConversations();
|
|
229
|
+
onBack();
|
|
230
|
+
}
|
|
231
|
+
catch (err) {
|
|
232
|
+
console.error("Failed to leave group:", err);
|
|
233
|
+
await showAlert("Could not leave this group", "Chat error");
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
const handleBlockUser = async () => {
|
|
237
|
+
if (otherUser) {
|
|
238
|
+
await chatApi.blockParticipant(otherUser.actorId, otherUserModel);
|
|
239
|
+
setHasBlocked(true);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
const handleUnblockUser = async () => {
|
|
243
|
+
if (otherUser) {
|
|
244
|
+
await chatApi.unblockParticipant(otherUser.actorId, otherUserModel);
|
|
245
|
+
setHasBlocked(false);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
const handleDeleteConversation = async () => {
|
|
249
|
+
const confirmMsg = isGroup ? "Are you sure you want to delete this group?" : "Are you sure you want to delete this chat?";
|
|
250
|
+
if (!await confirmDestructiveAction(confirmMsg, isGroup ? "Delete group" : "Delete chat"))
|
|
251
|
+
return;
|
|
252
|
+
try {
|
|
253
|
+
await chatApi.deleteConversation(conversation._id);
|
|
254
|
+
await refreshConversations();
|
|
255
|
+
onBack();
|
|
256
|
+
}
|
|
257
|
+
catch (err) {
|
|
258
|
+
console.error("Failed to delete conversation:", err);
|
|
259
|
+
await showAlert("Could not delete this conversation", "Chat error");
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const handleSend = useCallback(async (text, files, mentions, type) => {
|
|
263
|
+
await sendMessage(conversation._id, text, files, replyMessage === null || replyMessage === void 0 ? void 0 : replyMessage._id, { mentions, type });
|
|
264
|
+
if (draftTimerRef.current)
|
|
265
|
+
clearTimeout(draftTimerRef.current);
|
|
266
|
+
await chatApi.updateConversationPreference(conversation._id, { draftText: "" });
|
|
267
|
+
setReplyMessage(null);
|
|
268
|
+
}, [conversation._id, sendMessage, replyMessage]);
|
|
269
|
+
const handleOpenPrivateChat = useCallback((actorId) => {
|
|
270
|
+
// This is a simplified navigation. In a real application, you might
|
|
271
|
+
// want to check if a conversation with this user already exists
|
|
272
|
+
// and navigate to it, or create a new one.
|
|
273
|
+
router.push(`/chat?participantId=${encodeURIComponent(actorId)}`);
|
|
274
|
+
}, [router]);
|
|
275
|
+
const handleScrollToReply = (messageId) => {
|
|
276
|
+
const element = document.getElementById(`message-${messageId}`);
|
|
277
|
+
if (element) {
|
|
278
|
+
element.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
279
|
+
element.classList.add("ring-2", "ring-teal-500");
|
|
280
|
+
setTimeout(() => {
|
|
281
|
+
element.classList.remove("ring-2", "ring-teal-500");
|
|
282
|
+
}, 2000);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
const handleJumpToMessage = useCallback(async (messageId) => {
|
|
286
|
+
const data = await chatApi.getMessages(conversation._id, { around: messageId, radius: 30 });
|
|
287
|
+
setMessages(data);
|
|
288
|
+
setActivePanel("chat");
|
|
289
|
+
setTemporaryPanel(null);
|
|
290
|
+
setTimeout(() => handleScrollToReply(messageId), 50);
|
|
291
|
+
}, [conversation._id, setMessages]);
|
|
292
|
+
const handleDraftChange = useCallback((draftText) => {
|
|
293
|
+
if (draftTimerRef.current)
|
|
294
|
+
clearTimeout(draftTimerRef.current);
|
|
295
|
+
draftTimerRef.current = setTimeout(() => {
|
|
296
|
+
void chatApi.updateConversationPreference(conversation._id, { draftText });
|
|
297
|
+
}, 450);
|
|
298
|
+
}, [conversation._id]);
|
|
299
|
+
const handleEnableMilestones = () => {
|
|
300
|
+
setIsGroupInfoOpen(true);
|
|
301
|
+
};
|
|
302
|
+
const handleEnableExpenses = () => {
|
|
303
|
+
setIsGroupInfoOpen(true);
|
|
304
|
+
};
|
|
305
|
+
const handleTypingStart = useCallback(() => {
|
|
306
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("typing:start", { conversationId: conversation._id });
|
|
307
|
+
}, [socket, conversation._id]);
|
|
308
|
+
const handleTypingStop = useCallback(() => {
|
|
309
|
+
socket === null || socket === void 0 ? void 0 : socket.emit("typing:stop", { conversationId: conversation._id });
|
|
310
|
+
}, [socket, conversation._id]);
|
|
311
|
+
function getDisplayName() {
|
|
312
|
+
if (conversation.type === "group")
|
|
313
|
+
return conversation.name || "Group Chat";
|
|
314
|
+
const other = conversation.participants.find((participant) => !isSameChatActor(participant, currentActor));
|
|
315
|
+
return (other === null || other === void 0 ? void 0 : other.displayName) || (other === null || other === void 0 ? void 0 : other.username) || "Trippeaze member";
|
|
316
|
+
}
|
|
317
|
+
function getSubtitle() {
|
|
318
|
+
if (conversation.type === "group") {
|
|
319
|
+
return `${conversation.participants.length} members`;
|
|
320
|
+
}
|
|
321
|
+
const other = conversation.participants.find((participant) => !isSameChatActor(participant, currentActor));
|
|
322
|
+
if (other && onlineUsers.has(chatActorKey(other)))
|
|
323
|
+
return "Online";
|
|
324
|
+
return "Offline";
|
|
325
|
+
}
|
|
326
|
+
const getSenderImage = (senderId, senderModel) => {
|
|
327
|
+
const p = conversation.participants.find((participant) => isSameChatActor(participant, { actorId: senderId, actorModel: senderModel }));
|
|
328
|
+
return (p === null || p === void 0 ? void 0 : p.profilePic) || "";
|
|
329
|
+
};
|
|
330
|
+
const handleInfo = () => setIsChatInfoOpen(true);
|
|
331
|
+
const typing = typingUsers.get(conversation._id);
|
|
332
|
+
const isGroup = conversation.type === "group";
|
|
333
|
+
const isAdmin = ((_a = conversation.participants.find((participant) => isSameChatActor(participant, currentActor))) === null || _a === void 0 ? void 0 : _a.chatRole) === "admin";
|
|
334
|
+
return (_jsxs("div", { className: "flex h-full min-w-0 flex-1 flex-col bg-gray-50 dark:bg-gray-950", children: [_jsxs("div", { className: "flex items-center gap-3 px-4 py-3 bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700 shadow-sm flex-shrink-0", children: [_jsx(Button, { variant: "ghost", size: "icon", onClick: onBack, className: "md:hidden rounded-full", children: _jsx(ArrowLeft, { className: "w-5 h-5" }) }), _jsxs(Avatar, { className: "w-10 h-10 shadow-md flex-shrink-0", children: [_jsx(AvatarImage, { src: isGroup ? conversation.image : isBlocked ? undefined : otherUser === null || otherUser === void 0 ? void 0 : otherUser.profilePic }), _jsx(AvatarFallback, { className: isGroup
|
|
335
|
+
? "bg-gradient-to-br from-teal-500 to-cyan-600 text-white"
|
|
336
|
+
: "bg-gradient-to-br from-teal-400 to-cyan-500 text-white", children: isGroup ? _jsx(Users, { className: "w-5 h-5" }) : getDisplayName().charAt(0).toUpperCase() })] }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("h2", { className: "font-semibold text-gray-900 dark:text-white truncate", children: getDisplayName() }), _jsx("p", { className: "text-xs text-gray-500", children: typing && typing.length > 0 ? (_jsx("span", { className: "text-teal-600 dark:text-teal-400 italic", children: typing.length === 1 ? "typing..." : `${typing.length} people typing...` })) : (getSubtitle()) })] }), _jsx(Button, { variant: "ghost", size: "icon", onClick: () => setIsSearchOpen(true), className: "rounded-full text-gray-400 flex-shrink-0", "aria-label": "Search this conversation", children: _jsx(Search, { className: "w-5 h-5" }) }), !isBlocked && !hasBlocked && _jsx(Button, { variant: "ghost", size: "icon", onClick: handleInfo, className: "rounded-full text-gray-400 flex-shrink-0", children: _jsx(Info, { className: "w-5 h-5" }) }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "icon", className: "rounded-full text-gray-400 flex-shrink-0", children: _jsx(MoreVertical, { className: "w-5 h-5" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsx(DropdownMenuItem, { onClick: () => setIsSearchOpen(true), children: "Search messages" }), !isBlocked && !hasBlocked && _jsx(DropdownMenuItem, { onClick: handleInfo, children: "Info" }), currentActorModel === "HostProfile" && _jsx(DropdownMenuItem, { onClick: () => setIsHostWorkspaceOpen(true), children: "Host workspace" }), _jsx(DropdownMenuItem, { onClick: () => void chatApi.updateConversationPreference(conversation._id, { pinned: !conversation.preference.pinnedAt }).then(() => refreshConversations()), children: conversation.preference.pinnedAt ? "Unpin chat" : "Pin chat" }), _jsx(DropdownMenuItem, { onClick: () => void chatApi.updateConversationPreference(conversation._id, { favourited: !conversation.preference.favouritedAt }).then(() => refreshConversations()), children: conversation.preference.favouritedAt ? "Remove favourite" : "Add to favourites" }), _jsx(DropdownMenuItem, { onClick: () => void chatApi.updateConversationPreference(conversation._id, {
|
|
337
|
+
mutedUntil: conversation.preference.mutedUntil && new Date(conversation.preference.mutedUntil) > new Date()
|
|
338
|
+
? null
|
|
339
|
+
: new Date(Date.now() + 8 * 60 * 60 * 1000).toISOString(),
|
|
340
|
+
}).then(() => refreshConversations()), children: conversation.preference.mutedUntil && new Date(conversation.preference.mutedUntil) > new Date() ? "Unmute" : "Mute for 8 hours" }), _jsx(DropdownMenuItem, { onClick: () => void chatApi.markConversationUnread(conversation._id).then(() => refreshConversations()), children: "Mark as unread" }), _jsx(DropdownMenuItem, { onClick: () => void chatApi.updateConversationPreference(conversation._id, { archived: !conversation.preference.archivedAt }).then(() => refreshConversations()), children: conversation.preference.archivedAt ? "Unarchive chat" : "Archive chat" }), isGroup && _jsxs(DropdownMenuItem, { onClick: () => setIsParticipantsOpen(true), children: [_jsx(Users, { className: "w-4 h-4 mr-2" }), isAdmin ? "Manage Members" : "View Members"] }), isAdmin && isGroup && (_jsxs(DropdownMenuItem, { onClick: () => setIsGroupInfoOpen(true), children: [_jsx(FilePenLine, { className: "w-4 h-4 mr-2" }), "Edit Group Info"] })), !isGroup && otherUser && !isBlocked && (hasBlocked ?
|
|
341
|
+
(_jsx(DropdownMenuItem, { className: "text-red-500", onClick: handleUnblockUser, children: "Unblock User" })) :
|
|
342
|
+
(_jsx(DropdownMenuItem, { className: "text-red-500", onClick: handleBlockUser, children: "Block User" }))), (!isGroup || isAdmin) && _jsx(DropdownMenuItem, { className: "text-red-500", onClick: handleDeleteConversation, children: isGroup ? "Delete Group" : "Delete Chat" }), isGroup && (_jsx(DropdownMenuItem, { className: "text-red-600", onClick: handleLeaveGroup, children: "Leave Group" }))] })] })] }), isGroup && (((_b = conversation.features) === null || _b === void 0 ? void 0 : _b.events) || ((_c = conversation.features) === null || _c === void 0 ? void 0 : _c.milestones) || ((_d = conversation.features) === null || _d === void 0 ? void 0 : _d.expenses) || temporaryPanel) && (_jsxs("div", { className: "flex border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 flex-shrink-0", children: [_jsxs("button", { onClick: () => {
|
|
343
|
+
setActivePanel("chat");
|
|
344
|
+
setTemporaryPanel(null);
|
|
345
|
+
}, className: `flex-1 py-3 px-4 text-center font-medium text-sm transition-colors border-b-2 ${activePanel === "chat"
|
|
346
|
+
? "border-teal-500 text-teal-600 dark:text-teal-400"
|
|
347
|
+
: "border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"}`, children: [_jsx(MessageCircle, { className: "w-4 h-4 inline mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Chat" })] }), ((_e = conversation.features) === null || _e === void 0 ? void 0 : _e.events) !== false && _jsxs("button", { onClick: () => setActivePanel("events"), className: `flex-1 py-3 px-4 text-center font-medium text-sm transition-colors border-b-2 ${activePanel === "events"
|
|
348
|
+
? "border-teal-500 text-teal-600 dark:text-teal-400"
|
|
349
|
+
: "border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"}`, children: [_jsx(CalendarDays, { className: "w-4 h-4 inline mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Events" })] }), (((_f = conversation.features) === null || _f === void 0 ? void 0 : _f.milestones) || temporaryPanel === "milestones") && _jsxs("button", { onClick: () => setActivePanel("milestones"), className: `flex-1 py-3 px-4 text-center font-medium text-sm transition-colors border-b-2 ${activePanel === "milestones"
|
|
350
|
+
? "border-teal-500 text-teal-600 dark:text-teal-400"
|
|
351
|
+
: "border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"}`, children: [_jsx(ListTodo, { className: "w-4 h-4 inline mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Milestones" })] }), (((_g = conversation.features) === null || _g === void 0 ? void 0 : _g.expenses) || temporaryPanel === "expenses") && _jsxs("button", { onClick: () => setActivePanel("expenses"), className: `flex-1 py-3 px-4 text-center font-medium text-sm transition-colors border-b-2 ${activePanel === "expenses"
|
|
352
|
+
? "border-teal-500 text-teal-600 dark:text-teal-400"
|
|
353
|
+
: "border-transparent text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200"}`, children: [_jsx(ReceiptText, { className: "w-4 h-4 inline mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Expenses" })] })] })), _jsxs("div", { className: "flex-1 flex overflow-hidden gap-0", children: [_jsxs("div", { className: `flex flex-col min-w-0 ${isGroup && activePanel !== "chat" ? "hidden md:flex" : "flex"} flex-1`, children: [_jsx("div", { className: "flex-1 overflow-y-auto px-4 py-4 custom-scrollbar bg-indigo-50/20 dark:bg-gray-900/40", ref: messagesContainerRef, children: loading ? (_jsx("div", { className: "flex items-center justify-center h-full", children: _jsx("div", { className: "animate-spin w-8 h-8 border-4 border-teal-500 border-t-transparent rounded-full" }) })) : messages.length === 0 ? (_jsxs("div", { className: "flex flex-col items-center justify-center h-full text-gray-400", children: [_jsx("p", { className: "text-lg", children: "\uD83D\uDC4B Start the conversation!" }), _jsx("p", { className: "text-sm mt-1", children: "Send a message to get things going" })] })) : (_jsxs("div", { className: "max-w-4xl mx-auto space-y-4", children: [messages.map((msg, i) => {
|
|
354
|
+
const prevMsg = messages[i - 1];
|
|
355
|
+
const currDate = new Date(msg.createdAt).toLocaleDateString();
|
|
356
|
+
const prevDate = prevMsg ? new Date(prevMsg.createdAt).toLocaleDateString() : null;
|
|
357
|
+
const showDateBadge = currDate !== prevDate;
|
|
358
|
+
const showSender = isGroup &&
|
|
359
|
+
!isSameChatActor({ actorId: msg.senderId, actorModel: msg.senderModel }, currentActor) &&
|
|
360
|
+
(!prevMsg ||
|
|
361
|
+
!isSameChatActor({ actorId: prevMsg.senderId, actorModel: prevMsg.senderModel }, { actorId: msg.senderId, actorModel: msg.senderModel }) ||
|
|
362
|
+
showDateBadge);
|
|
363
|
+
return (_jsxs(React.Fragment, { children: [showDateBadge && (_jsx("div", { className: "flex justify-center my-4", children: _jsx("div", { className: "bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400 text-[10px] font-medium px-3 py-1 rounded-full shadow-sm uppercase tracking-wider", children: new Date(msg.createdAt).toLocaleDateString(undefined, { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }) }) })), _jsx(MessageBubble, { message: msg, participants: conversation.participants, currentUserId: currentUserId, currentActorModel: currentActorModel, showSender: showSender, senderProfilePic: getSenderImage(msg.senderId, msg.senderModel), onEdit: initiateEdit, onDelete: handleDelete, onReply: (msg) => setReplyMessage(msg), onReactionAdd: handleReact, onReactionRemove: handleUnreact, onScrollToReply: handleScrollToReply, onVote: (pid, idx) => votePoll(pid, idx), onEditPoll: (pollId, data) => updatePoll(pollId, data), onStar: (messageId) => void chatApi.starMessage(messageId), onPin: (messageId) => void chatApi.pinMessage(messageId), isGroupAdmin: Boolean(isAdmin), onModerate: handleModerateMessage, onReport: handleReportMessage })] }, msg._id));
|
|
364
|
+
}), _jsx("div", { ref: messagesEndRef })] })) }), !isBlocked && !hasBlocked && _jsx(MessageInput, { onSend: handleSend, onTypingStart: handleTypingStart, onTypingStop: handleTypingStop, replyTo: replyMessage, editMessage: editingMessage, onEdit: handleEdit, onCancelEdit: () => {
|
|
365
|
+
setEditingMessage(null);
|
|
366
|
+
setReplyMessage(null);
|
|
367
|
+
}, onCancelReply: () => setReplyMessage(null), onAddMilestone: () => {
|
|
368
|
+
setTemporaryPanel("milestones");
|
|
369
|
+
setActivePanel("milestones");
|
|
370
|
+
}, onAddExpense: () => {
|
|
371
|
+
setTemporaryPanel("expenses");
|
|
372
|
+
setActivePanel("expenses");
|
|
373
|
+
}, onAddEvent: () => setActivePanel("events"), onPayAndSplit: () => setIsPayAndSplitOpen(true), onPaymentDetails: () => setIsPaymentProfileOpen(true), onCreatePoll: (q, opts, multi) => createPoll(conversation._id, q, opts, multi), participants: conversation.participants, activePanel: activePanel,
|
|
374
|
+
// Attachments and voice messages are useful in both direct and group chats.
|
|
375
|
+
// Collaboration records remain a group-only capability.
|
|
376
|
+
allowAdvancedActions: true, enableAttachments: true, allowCollaborationActions: isGroup, allowAnnouncements: isGroup && Boolean(isAdmin), initialText: conversation.preference.draftText || "", externalText: hostComposerText, onDraftChange: handleDraftChange }, conversation._id)] }), isGroup && (_jsxs(_Fragment, { children: [activePanel === "milestones" && (_jsx("div", { className: "hidden md:flex md:flex-col w-80 border-l border-gray-200 dark:border-gray-700 min-w-0", children: _jsx(MilestonePanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, participants: conversation.participants, isFeatureEnabled: (_h = conversation.features) === null || _h === void 0 ? void 0 : _h.milestones, isAdmin: isAdmin, onEnableFeature: handleEnableMilestones }) })), activePanel === "expenses" && (_jsx("div", { className: "hidden md:flex md:flex-col w-80 border-l border-gray-200 dark:border-gray-700 min-w-0", children: _jsx(ExpensePanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, participants: conversation.participants, isFeatureEnabled: (_j = conversation.features) === null || _j === void 0 ? void 0 : _j.expenses, isAdmin: isAdmin, onEnableFeature: handleEnableExpenses }) })), activePanel === "events" && (_jsx("div", { className: "hidden md:flex md:flex-col w-96 max-w-[42vw] border-l border-gray-200 dark:border-gray-700 min-w-0", children: _jsx(EventPanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, isAdmin: isAdmin }) }))] })), isGroup && activePanel === "milestones" && (_jsx("div", { className: "md:hidden w-full h-full overflow-hidden", children: _jsx(MilestonePanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, participants: conversation.participants, isFullScreen: true, isFeatureEnabled: (_k = conversation.features) === null || _k === void 0 ? void 0 : _k.milestones, isAdmin: isAdmin, onEnableFeature: handleEnableMilestones }) })), isGroup && activePanel === "expenses" && (_jsx("div", { className: "md:hidden w-full h-full overflow-hidden", children: _jsx(ExpensePanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, participants: conversation.participants, isFullScreen: true, isFeatureEnabled: (_l = conversation.features) === null || _l === void 0 ? void 0 : _l.expenses, isAdmin: isAdmin, onEnableFeature: handleEnableExpenses }) })), isGroup && activePanel === "events" && (_jsx("div", { className: "md:hidden w-full h-full overflow-hidden", children: _jsx(EventPanel, { conversationId: conversation._id, currentUserId: currentUserId, currentActorModel: currentActorModel, isAdmin: isAdmin, isFullScreen: true }) }))] }), isGroup && (_jsx(ParticipantsDialog, { open: isParticipantsOpen, onOpenChange: setIsParticipantsOpen, conversation: conversation, currentUserId: currentUserId, currentActorModel: currentActorModel, onUpdate: refreshConversations })), isGroup && (_jsx(GroupInfoDialog, { open: isGroupInfoOpen, onOpenChange: setIsGroupInfoOpen, conversation: conversation, onUpdate: refreshConversations })), isGroup && (_jsx(GroupInfoViewDialog, { open: isGroupInfoViewOpen, onOpenChange: setIsGroupInfoViewOpen, conversation: conversation })), _jsx(ConversationSearchDialog, { open: isSearchOpen, onOpenChange: setIsSearchOpen, conversation: conversation, onJump: (messageId) => void handleJumpToMessage(messageId) }), _jsx(ChatInfoDialog, { open: isChatInfoOpen, onOpenChange: setIsChatInfoOpen, conversation: conversation, onSearch: () => {
|
|
377
|
+
setIsChatInfoOpen(false);
|
|
378
|
+
setIsSearchOpen(true);
|
|
379
|
+
}, onJump: (messageId) => {
|
|
380
|
+
setIsChatInfoOpen(false);
|
|
381
|
+
void handleJumpToMessage(messageId);
|
|
382
|
+
}, onPreferenceChanged: refreshConversations }), _jsx(PaymentProfileDialog, { open: isPaymentProfileOpen, onOpenChange: setIsPaymentProfileOpen }), isGroup && (_jsx(PayAndSplitDialog, { open: isPayAndSplitOpen, onOpenChange: setIsPayAndSplitOpen, conversationId: conversation._id, currency: conversation.currency || "INR", participants: conversation.participants, currentUserId: currentUserId, currentActorModel: currentActorModel, onCompleted: () => {
|
|
383
|
+
setTemporaryPanel("expenses");
|
|
384
|
+
setActivePanel("expenses");
|
|
385
|
+
void refreshConversations();
|
|
386
|
+
} })), currentActorModel === "HostProfile" && (_jsx(HostWorkspaceDialog, { open: isHostWorkspaceOpen, onOpenChange: setIsHostWorkspaceOpen, conversationId: conversation._id, onUseReply: (text) => setHostComposerText(text), onShareListing: (listing) => {
|
|
387
|
+
if (listing.publicPath)
|
|
388
|
+
void handleSend(`${window.location.origin}${listing.publicPath}`);
|
|
389
|
+
} }))] }));
|
|
390
|
+
}
|