@planningcenter/chat-react-native 4.4.0-rc.7 → 4.4.0
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/build/components/conversation/jump_to_bottom_button.d.ts.map +1 -1
- package/build/components/conversation/jump_to_bottom_button.js +42 -40
- package/build/components/conversation/jump_to_bottom_button.js.map +1 -1
- package/build/components/conversation/message.d.ts +2 -1
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +3 -1
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/message_form.d.ts.map +1 -1
- package/build/components/conversation/message_form.js +3 -1
- package/build/components/conversation/message_form.js.map +1 -1
- package/build/components/conversation/message_list.d.ts.map +1 -1
- package/build/components/conversation/message_list.js +35 -31
- package/build/components/conversation/message_list.js.map +1 -1
- package/build/components/conversation/message_reaction.d.ts +2 -1
- package/build/components/conversation/message_reaction.d.ts.map +1 -1
- package/build/components/conversation/message_reaction.js +67 -60
- package/build/components/conversation/message_reaction.js.map +1 -1
- package/build/components/conversation/messages_disabled_banners.d.ts +7 -5
- package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
- package/build/components/conversation/messages_disabled_banners.js +15 -14
- package/build/components/conversation/messages_disabled_banners.js.map +1 -1
- package/build/components/conversation/system_message.d.ts +2 -1
- package/build/components/conversation/system_message.d.ts.map +1 -1
- package/build/components/conversation/system_message.js +133 -100
- package/build/components/conversation/system_message.js.map +1 -1
- package/build/components/conversations/archived_results_footer.d.ts +6 -0
- package/build/components/conversations/archived_results_footer.d.ts.map +1 -0
- package/build/components/conversations/archived_results_footer.js +51 -0
- package/build/components/conversations/archived_results_footer.js.map +1 -0
- package/build/components/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +241 -206
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +102 -93
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +66 -41
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
- package/build/components/conversations/conversations_blank_state.js +55 -12
- package/build/components/conversations/conversations_blank_state.js.map +1 -1
- package/build/components/conversations/filtered_results_footer.d.ts +2 -0
- package/build/components/conversations/filtered_results_footer.d.ts.map +1 -0
- package/build/components/conversations/filtered_results_footer.js +77 -0
- package/build/components/conversations/filtered_results_footer.js.map +1 -0
- package/build/components/display/action_button.d.ts.map +1 -1
- package/build/components/display/action_button.js +18 -16
- package/build/components/display/action_button.js.map +1 -1
- package/build/components/display/filter_dropdown.d.ts +14 -0
- package/build/components/display/filter_dropdown.d.ts.map +1 -0
- package/build/components/display/filter_dropdown.js +193 -0
- package/build/components/display/filter_dropdown.js.map +1 -0
- package/build/components/display/icon_tile.d.ts +13 -0
- package/build/components/display/icon_tile.d.ts.map +1 -0
- package/build/components/display/icon_tile.js +149 -0
- package/build/components/display/icon_tile.js.map +1 -0
- package/build/components/display/index.d.ts +2 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +2 -0
- package/build/components/display/index.js.map +1 -1
- package/build/contexts/api_provider.d.ts.map +1 -1
- package/build/contexts/api_provider.js +21 -9
- package/build/contexts/api_provider.js.map +1 -1
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +21 -18
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +196 -16
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.js +72 -58
- package/build/hooks/groups/use_group_members_for_new_conversation.js.map +1 -1
- package/build/hooks/index.d.ts +3 -0
- package/build/hooks/index.d.ts.map +1 -1
- package/build/hooks/index.js +3 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_animated_message_background_color.d.ts.map +1 -1
- package/build/hooks/use_animated_message_background_color.js +5 -3
- package/build/hooks/use_animated_message_background_color.js.map +1 -1
- package/build/hooks/use_api.d.ts +3 -2
- package/build/hooks/use_api.d.ts.map +1 -1
- package/build/hooks/use_api.js.map +1 -1
- package/build/hooks/use_can_browse_archived_conversations.d.ts +2 -0
- package/build/hooks/use_can_browse_archived_conversations.d.ts.map +1 -0
- package/build/hooks/use_can_browse_archived_conversations.js +29 -0
- package/build/hooks/use_can_browse_archived_conversations.js.map +1 -0
- package/build/hooks/use_clear_conversation_filters.d.ts +2 -0
- package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -0
- package/build/hooks/use_clear_conversation_filters.js +25 -0
- package/build/hooks/use_clear_conversation_filters.js.map +1 -0
- package/build/hooks/use_conversation.d.ts +73 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +130 -3
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_conversation_messages.d.ts.map +1 -1
- package/build/hooks/use_conversation_messages.js +29 -26
- package/build/hooks/use_conversation_messages.js.map +1 -1
- package/build/hooks/use_current_person.d.ts.map +1 -1
- package/build/hooks/use_current_person.js +1 -1
- package/build/hooks/use_current_person.js.map +1 -1
- package/build/hooks/use_jolt.d.ts +1 -0
- package/build/hooks/use_jolt.d.ts.map +1 -1
- package/build/hooks/use_jolt.js +59 -0
- package/build/hooks/use_jolt.js.map +1 -1
- package/build/hooks/use_manual_archiving_enabled.d.ts +2 -0
- package/build/hooks/use_manual_archiving_enabled.d.ts.map +1 -0
- package/build/hooks/use_manual_archiving_enabled.js +18 -0
- package/build/hooks/use_manual_archiving_enabled.js.map +1 -0
- package/build/hooks/use_mark_latest_message_read.d.ts.map +1 -1
- package/build/hooks/use_mark_latest_message_read.js +3 -3
- package/build/hooks/use_mark_latest_message_read.js.map +1 -1
- package/build/hooks/use_reduce_motion.d.ts +2 -0
- package/build/hooks/use_reduce_motion.d.ts.map +1 -0
- package/build/hooks/use_reduce_motion.js +28 -0
- package/build/hooks/use_reduce_motion.js.map +1 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
- package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
- package/build/hooks/use_unarchive_conversation_action.js +52 -0
- package/build/hooks/use_unarchive_conversation_action.js.map +1 -0
- package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
- package/build/screens/attachment_actions/attachment_actions_screen.js +84 -61
- package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +490 -395
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.js +88 -18
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts +9 -0
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +93 -1
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js +8 -4
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/filter_types.d.ts +1 -0
- package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
- package/build/screens/conversation_filters/filter_types.js +1 -0
- package/build/screens/conversation_filters/filter_types.js.map +1 -1
- package/build/screens/conversation_filters/screen_props.d.ts +1 -0
- package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
- package/build/screens/conversation_filters/screen_props.js.map +1 -1
- package/build/screens/conversation_filters_screen.d.ts +1 -0
- package/build/screens/conversation_filters_screen.d.ts.map +1 -1
- package/build/screens/conversation_filters_screen.js +79 -48
- package/build/screens/conversation_filters_screen.js.map +1 -1
- package/build/screens/conversation_new/components/groups_form.d.ts.map +1 -1
- package/build/screens/conversation_new/components/groups_form.js +37 -34
- package/build/screens/conversation_new/components/groups_form.js.map +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +13 -10
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts +2 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js +580 -0
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -0
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +95 -90
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/search_list_header_component.js +100 -95
- package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +1 -0
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +15 -2
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/design_system_screen.d.ts.map +1 -1
- package/build/screens/design_system_screen.js +275 -215
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +112 -92
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/screens/search/search_screen.d.ts.map +1 -1
- package/build/screens/search/search_screen.js +10 -2
- package/build/screens/search/search_screen.js.map +1 -1
- package/build/screens/send_giphy_screen.d.ts +1 -0
- package/build/screens/send_giphy_screen.d.ts.map +1 -1
- package/build/screens/send_giphy_screen.js +108 -106
- package/build/screens/send_giphy_screen.js.map +1 -1
- package/build/screens/team_conversation_screen.js +1 -1
- package/build/screens/team_conversation_screen.js.map +1 -1
- package/build/types/jolt_events/message_events.d.ts +2 -0
- package/build/types/jolt_events/message_events.d.ts.map +1 -1
- package/build/types/jolt_events/message_events.js.map +1 -1
- package/build/types/resources/conversation.d.ts +2 -2
- package/build/types/resources/conversation.d.ts.map +1 -1
- package/build/types/resources/conversation.js.map +1 -1
- package/build/types/resources/member_ability.d.ts +2 -0
- package/build/types/resources/member_ability.d.ts.map +1 -1
- package/build/types/resources/member_ability.js.map +1 -1
- package/build/types/resources/message.d.ts +2 -0
- package/build/types/resources/message.d.ts.map +1 -1
- package/build/types/resources/message.js.map +1 -1
- package/build/types/resources/person.d.ts +1 -0
- package/build/types/resources/person.d.ts.map +1 -1
- package/build/types/resources/person.js.map +1 -1
- package/build/utils/archived_conversation.d.ts +5 -0
- package/build/utils/archived_conversation.d.ts.map +1 -0
- package/build/utils/archived_conversation.js +5 -0
- package/build/utils/archived_conversation.js.map +1 -0
- package/build/utils/date.d.ts +1 -0
- package/build/utils/date.d.ts.map +1 -1
- package/build/utils/date.js +9 -0
- package/build/utils/date.js.map +1 -1
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.d.ts.map +1 -1
- package/build/utils/index.js +1 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/jolt/transform_message_event_data_to_message_resource.d.ts.map +1 -1
- package/build/utils/jolt/transform_message_event_data_to_message_resource.js +2 -1
- package/build/utils/jolt/transform_message_event_data_to_message_resource.js.map +1 -1
- package/build/utils/native_adapters/configuration.d.ts +3 -0
- package/build/utils/native_adapters/configuration.d.ts.map +1 -1
- package/build/utils/native_adapters/configuration.js +3 -0
- package/build/utils/native_adapters/configuration.js.map +1 -1
- package/build/utils/native_adapters/index.d.ts +1 -0
- package/build/utils/native_adapters/index.d.ts.map +1 -1
- package/build/utils/native_adapters/index.js +1 -0
- package/build/utils/native_adapters/index.js.map +1 -1
- package/build/utils/native_adapters/menu.d.ts +41 -0
- package/build/utils/native_adapters/menu.d.ts.map +1 -0
- package/build/utils/native_adapters/menu.js +56 -0
- package/build/utils/native_adapters/menu.js.map +1 -0
- package/build/utils/request/conversation.d.ts +2 -1
- package/build/utils/request/conversation.d.ts.map +1 -1
- package/build/utils/request/conversation.js +4 -1
- package/build/utils/request/conversation.js.map +1 -1
- package/build/utils/request/messages_data_options.d.ts.map +1 -1
- package/build/utils/request/messages_data_options.js +1 -1
- package/build/utils/request/messages_data_options.js.map +1 -1
- package/build/utils/system_messages.d.ts +7 -5
- package/build/utils/system_messages.d.ts.map +1 -1
- package/build/utils/system_messages.js +10 -2
- package/build/utils/system_messages.js.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +1 -0
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.js +5 -0
- package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/hooks/use_can_browse_archived_conversations.test.tsx +98 -0
- package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +132 -0
- package/src/__tests__/screens/conversation_filters_screen.test.tsx +76 -0
- package/src/__tests__/screens/conversation_new/components/services_form.test.tsx +1 -0
- package/src/__tests__/screens/message_actions_screen.test.tsx +65 -2
- package/src/__tests__/screens/send_giphy_screen.test.tsx +102 -0
- package/src/__tests__/utils/system_messages.ts +19 -32
- package/src/components/conversation/__tests__/message_list.test.tsx +68 -2
- package/src/components/conversation/__tests__/system_message.test.tsx +106 -0
- package/src/components/conversation/jump_to_bottom_button.tsx +4 -3
- package/src/components/conversation/message.tsx +3 -0
- package/src/components/conversation/message_form.tsx +3 -1
- package/src/components/conversation/message_list.tsx +9 -1
- package/src/components/conversation/message_reaction.tsx +7 -2
- package/src/components/conversation/messages_disabled_banners.tsx +17 -18
- package/src/components/conversation/system_message.tsx +44 -16
- package/src/components/conversations/__tests__/conversation_actions.test.tsx +67 -0
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +105 -0
- package/src/components/conversations/__tests__/conversations.test.tsx +93 -0
- package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +73 -0
- package/src/components/conversations/archived_results_footer.tsx +36 -0
- package/src/components/conversations/conversation_actions.tsx +27 -19
- package/src/components/conversations/conversation_preview.tsx +39 -10
- package/src/components/conversations/conversations.tsx +26 -3
- package/src/components/conversations/conversations_blank_state.tsx +21 -0
- package/src/components/conversations/filtered_results_footer.tsx +38 -0
- package/src/components/display/__tests__/filter_dropdown.test.tsx +114 -0
- package/src/components/display/__tests__/icon_tile.test.tsx +16 -0
- package/src/components/display/action_button.tsx +4 -3
- package/src/components/display/filter_dropdown.tsx +124 -0
- package/src/components/display/icon_tile.tsx +67 -0
- package/src/components/display/index.ts +2 -0
- package/src/contexts/api_provider.tsx +8 -0
- package/src/contexts/conversations_context.tsx +2 -1
- package/src/hooks/__tests__/use_conversation_archive.test.tsx +152 -0
- package/src/hooks/__tests__/use_conversation_jolt_events.test.tsx +74 -0
- package/src/hooks/__tests__/use_conversation_messages.test.tsx +10 -2
- package/src/hooks/__tests__/use_jolt.test.tsx +100 -1
- package/src/hooks/__tests__/use_mark_latest_message_read.test.tsx +21 -7
- package/src/hooks/__tests__/use_reduce_motion.test.tsx +61 -0
- package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
- package/src/hooks/groups/use_group_members_for_new_conversation.ts +21 -16
- package/src/hooks/index.ts +3 -0
- package/src/hooks/use_animated_message_background_color.ts +6 -3
- package/src/hooks/use_api.ts +9 -2
- package/src/hooks/use_can_browse_archived_conversations.ts +17 -0
- package/src/hooks/use_clear_conversation_filters.ts +16 -0
- package/src/hooks/use_conversation.ts +44 -3
- package/src/hooks/use_conversation_messages.ts +7 -5
- package/src/hooks/use_current_person.ts +1 -0
- package/src/hooks/use_jolt.ts +57 -1
- package/src/hooks/use_manual_archiving_enabled.ts +10 -0
- package/src/hooks/use_mark_latest_message_read.ts +4 -3
- package/src/hooks/use_reduce_motion.ts +19 -0
- package/src/hooks/use_unarchive_conversation_action.ts +24 -0
- package/src/screens/__tests__/conversation_details_screen.test.tsx +305 -0
- package/src/screens/attachment_actions/__tests__/attachment_actions_screen.test.tsx +72 -0
- package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -1
- package/src/screens/conversation_details_screen.tsx +80 -16
- package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +101 -0
- package/src/screens/conversation_filters/components/conversation_filters.tsx +40 -7
- package/src/screens/conversation_filters/components/rows.tsx +29 -1
- package/src/screens/conversation_filters/context/conversation_filter_context.tsx +4 -0
- package/src/screens/conversation_filters/filter_types.ts +1 -0
- package/src/screens/conversation_filters/screen_props.ts +1 -0
- package/src/screens/conversation_filters_screen.tsx +25 -5
- package/src/screens/conversation_new/components/groups_form.tsx +1 -0
- package/src/screens/conversation_screen.tsx +4 -2
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +52 -0
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +259 -0
- package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +21 -4
- package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +286 -0
- package/src/screens/conversations/components/list_header_component.tsx +17 -12
- package/src/screens/conversations/components/search_list_header_component.tsx +17 -12
- package/src/screens/conversations/conversations_screen.tsx +15 -2
- package/src/screens/design_system_screen.tsx +26 -0
- package/src/screens/message_actions_screen.tsx +29 -20
- package/src/screens/search/__tests__/search_screen.test.tsx +13 -1
- package/src/screens/search/search_screen.tsx +8 -2
- package/src/screens/send_giphy_screen.tsx +6 -3
- package/src/screens/team_conversation_screen.tsx +1 -1
- package/src/types/jolt_events/message_events.ts +2 -0
- package/src/types/resources/conversation.ts +2 -2
- package/src/types/resources/member_ability.ts +2 -0
- package/src/types/resources/message.ts +3 -0
- package/src/types/resources/person.ts +1 -0
- package/src/utils/__tests__/conversation.test.ts +1 -0
- package/src/utils/__tests__/date.test.ts +23 -0
- package/src/utils/__tests__/group_messages.test.ts +1 -0
- package/src/utils/archived_conversation.ts +13 -0
- package/src/utils/date.ts +8 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/jolt/__tests__/transform_message_event_data_to_message_resource.test.ts +35 -0
- package/src/utils/jolt/transform_message_event_data_to_message_resource.ts +1 -0
- package/src/utils/native_adapters/__tests__/menu.test.tsx +46 -0
- package/src/utils/native_adapters/configuration.ts +5 -0
- package/src/utils/native_adapters/index.ts +1 -0
- package/src/utils/native_adapters/menu.tsx +70 -0
- package/src/utils/request/conversation.ts +4 -0
- package/src/utils/request/messages_data_options.ts +1 -0
- package/src/utils/system_messages.ts +19 -10
- package/src/vendor/font_awesome_pro_solid_icons.ts +12 -0
|
@@ -7,17 +7,20 @@ import { AdultRequirementNotice, Badge, Button, ChildNotice, Heading, Icon, Pers
|
|
|
7
7
|
import { ConversationAvatar } from '../components/display/conversation_avatar';
|
|
8
8
|
import { useHeaderRight } from '../components/display/platform_modal_header_buttons';
|
|
9
9
|
import { useSuspensePaginator, useTheme } from '../hooks';
|
|
10
|
-
import { useConversation, useConversationDelete, useConversationDisableReplies, useConversationMute, useConversationUpdate } from '../hooks/use_conversation';
|
|
10
|
+
import { useConversation, useConversationArchive, useConversationDelete, useConversationDisableReplies, useConversationMute, useConversationUpdate } from '../hooks/use_conversation';
|
|
11
11
|
import { availableFeatures, useFeatures } from '../hooks/use_features';
|
|
12
|
+
import { useManualArchivingEnabled } from '../hooks/use_manual_archiving_enabled';
|
|
12
13
|
import { usePreviewAvatarDiameter } from '../hooks/use_preview_avatar_diameter';
|
|
14
|
+
import { useUnarchiveConversationAction } from '../hooks/use_unarchive_conversation_action';
|
|
13
15
|
import { isDefined } from '../types';
|
|
14
16
|
import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../utils';
|
|
17
|
+
import { archivedConversationMessage, isArchivedConversation } from '../utils/archived_conversation';
|
|
15
18
|
import { genderDisplayLabel } from '../utils/gender_display_label';
|
|
16
19
|
import { tokens } from '../vendor/tapestry/tokens';
|
|
17
20
|
// =========================================
|
|
18
21
|
// ====== Factory Constants & Types ========
|
|
19
22
|
// =========================================
|
|
20
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
24
|
var SectionTypes = /*#__PURE__*/function (SectionTypes) {
|
|
22
25
|
SectionTypes[SectionTypes["header"] = 0] = "header";
|
|
23
26
|
SectionTypes[SectionTypes["hidden"] = 1] = "hidden";
|
|
@@ -31,7 +34,7 @@ var SectionTypes = /*#__PURE__*/function (SectionTypes) {
|
|
|
31
34
|
// ====== Components ===============
|
|
32
35
|
// =================================
|
|
33
36
|
export function ConversationDetailsScreen(t0) {
|
|
34
|
-
const $ = _c(
|
|
37
|
+
const $ = _c(142);
|
|
35
38
|
const {
|
|
36
39
|
route
|
|
37
40
|
} = t0;
|
|
@@ -40,7 +43,7 @@ export function ConversationDetailsScreen(t0) {
|
|
|
40
43
|
const {
|
|
41
44
|
data: conversation
|
|
42
45
|
} = useConversation(route.params);
|
|
43
|
-
const [title, setTitle] = useState(conversation.title);
|
|
46
|
+
const [title, setTitle] = useState(conversation.title ?? "");
|
|
44
47
|
const {
|
|
45
48
|
conversation_id
|
|
46
49
|
} = route.params;
|
|
@@ -54,6 +57,11 @@ export function ConversationDetailsScreen(t0) {
|
|
|
54
57
|
const {
|
|
55
58
|
mutate: deleteConversation
|
|
56
59
|
} = useConversationDelete(route.params);
|
|
60
|
+
const {
|
|
61
|
+
setArchived,
|
|
62
|
+
isPending: isArchiving
|
|
63
|
+
} = useConversationArchive(route.params);
|
|
64
|
+
const unarchiveAction = useUnarchiveConversationAction(conversation);
|
|
57
65
|
const {
|
|
58
66
|
featureEnabled
|
|
59
67
|
} = useFeatures();
|
|
@@ -67,6 +75,7 @@ export function ConversationDetailsScreen(t0) {
|
|
|
67
75
|
}
|
|
68
76
|
const granularNotificationsEnabled = t1;
|
|
69
77
|
const customAvatarsEnabled = featureEnabled(availableFeatures.custom_conversation_avatars);
|
|
78
|
+
const manualArchivingEnabled = useManualArchivingEnabled();
|
|
70
79
|
const showGenderFilter = featureEnabled(availableFeatures.gender_specific_conversations) && !!conversation.genderOption;
|
|
71
80
|
const genderLabel = conversation.genderOption ? genderDisplayLabel(conversation.genderOption) : "";
|
|
72
81
|
let t2;
|
|
@@ -92,42 +101,53 @@ export function ConversationDetailsScreen(t0) {
|
|
|
92
101
|
t3 = $[5];
|
|
93
102
|
}
|
|
94
103
|
const trimmedTitle = t3;
|
|
95
|
-
const emptyTitle = trimmedTitle === ""
|
|
104
|
+
const emptyTitle = trimmedTitle === "";
|
|
96
105
|
const notificationLevelDescription = conversation?.conversationMembership?.notificationLevelDescription;
|
|
106
|
+
let t4;
|
|
107
|
+
if ($[6] !== conversation) {
|
|
108
|
+
t4 = isArchivedConversation(conversation);
|
|
109
|
+
$[6] = conversation;
|
|
110
|
+
$[7] = t4;
|
|
111
|
+
} else {
|
|
112
|
+
t4 = $[7];
|
|
113
|
+
}
|
|
114
|
+
const archived = t4;
|
|
97
115
|
const canUpdate = conversation.memberAbility?.canUpdate || false;
|
|
116
|
+
const canSaveTitle = canUpdate && !emptyTitle;
|
|
98
117
|
const canDelete = conversation.memberAbility?.canDelete || false;
|
|
118
|
+
const canArchive = manualArchivingEnabled && (conversation.memberAbility?.canArchive || false);
|
|
99
119
|
const isLeader = conversation.memberAbility?.leader || false;
|
|
100
120
|
const isDisabled = conversation.disabled ?? false;
|
|
101
121
|
const showAdultRequirementNotice = isDisabled && conversation.disabledReason === "safety_check";
|
|
102
|
-
const
|
|
103
|
-
let
|
|
104
|
-
if ($[
|
|
105
|
-
|
|
122
|
+
const t5 = `/me/conversations/${route.params.conversation_id}/members`;
|
|
123
|
+
let t6;
|
|
124
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
125
|
+
t6 = {
|
|
106
126
|
include: ["person"],
|
|
107
127
|
fields: {
|
|
108
128
|
Member: ["avatar", "name", "first_name", "last_name", "child", "badges"]
|
|
109
129
|
}
|
|
110
130
|
};
|
|
111
|
-
$[
|
|
131
|
+
$[8] = t6;
|
|
112
132
|
} else {
|
|
113
|
-
|
|
133
|
+
t6 = $[8];
|
|
114
134
|
}
|
|
115
|
-
let
|
|
116
|
-
if ($[
|
|
117
|
-
|
|
118
|
-
url:
|
|
119
|
-
data:
|
|
135
|
+
let t7;
|
|
136
|
+
if ($[9] !== t5) {
|
|
137
|
+
t7 = {
|
|
138
|
+
url: t5,
|
|
139
|
+
data: t6
|
|
120
140
|
};
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
141
|
+
$[9] = t5;
|
|
142
|
+
$[10] = t7;
|
|
123
143
|
} else {
|
|
124
|
-
|
|
144
|
+
t7 = $[10];
|
|
125
145
|
}
|
|
126
146
|
const {
|
|
127
147
|
data: members,
|
|
128
148
|
fetchNextPage: fetchNextPageOfMembers,
|
|
129
149
|
isFetchingNextPage: isLoadingMembers
|
|
130
|
-
} = useSuspensePaginator(
|
|
150
|
+
} = useSuspensePaginator(t7);
|
|
131
151
|
const memberSectionStyleMap = {
|
|
132
152
|
first: styles.sectionInnerFirstMember,
|
|
133
153
|
middle: styles.sectionInnerMiddleMiddle,
|
|
@@ -144,47 +164,47 @@ export function ConversationDetailsScreen(t0) {
|
|
|
144
164
|
sectionInnerStyle: memberSectionStyle
|
|
145
165
|
};
|
|
146
166
|
});
|
|
147
|
-
let
|
|
148
|
-
if ($[
|
|
149
|
-
|
|
167
|
+
let t8;
|
|
168
|
+
if ($[11] !== isLoadingMembers || $[12] !== styles.sectionInnerFirstMember) {
|
|
169
|
+
t8 = isLoadingMembers ? [{
|
|
150
170
|
type: SectionTypes.loadingMembers,
|
|
151
171
|
data: {},
|
|
152
172
|
sectionInnerStyle: styles.sectionInnerFirstMember
|
|
153
173
|
}] : [];
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[11] = t7;
|
|
157
|
-
} else {
|
|
158
|
-
t7 = $[11];
|
|
159
|
-
}
|
|
160
|
-
const loadingMemberItems = t7;
|
|
161
|
-
let t8;
|
|
162
|
-
if ($[12] !== members) {
|
|
163
|
-
t8 = members.filter(_temp);
|
|
164
|
-
$[12] = members;
|
|
174
|
+
$[11] = isLoadingMembers;
|
|
175
|
+
$[12] = styles.sectionInnerFirstMember;
|
|
165
176
|
$[13] = t8;
|
|
166
177
|
} else {
|
|
167
178
|
t8 = $[13];
|
|
168
179
|
}
|
|
169
|
-
const
|
|
170
|
-
const hasChildren = childMembers.length > 0;
|
|
180
|
+
const loadingMemberItems = t8;
|
|
171
181
|
let t9;
|
|
172
|
-
if ($[14] !==
|
|
173
|
-
t9 =
|
|
174
|
-
$[14] =
|
|
182
|
+
if ($[14] !== members) {
|
|
183
|
+
t9 = members.filter(_temp);
|
|
184
|
+
$[14] = members;
|
|
175
185
|
$[15] = t9;
|
|
176
186
|
} else {
|
|
177
187
|
t9 = $[15];
|
|
178
188
|
}
|
|
179
|
-
const
|
|
189
|
+
const childMembers = t9;
|
|
190
|
+
const hasChildren = childMembers.length > 0;
|
|
191
|
+
let t10;
|
|
192
|
+
if ($[16] !== conversation.groups) {
|
|
193
|
+
t10 = conversation.groups?.filter(_temp2)?.filter(_temp3)?.filter(_temp4) || [];
|
|
194
|
+
$[16] = conversation.groups;
|
|
195
|
+
$[17] = t10;
|
|
196
|
+
} else {
|
|
197
|
+
t10 = $[17];
|
|
198
|
+
}
|
|
199
|
+
const teamsGroup = t10;
|
|
180
200
|
const hasTeams = teamsGroup.length > 0;
|
|
181
201
|
const badge = conversation.badges?.[0];
|
|
182
202
|
const resourceType = badge?.pcoResourceType || "";
|
|
183
203
|
const productName = badge?.appName;
|
|
184
204
|
const name = badge?.text || undefined;
|
|
185
|
-
let
|
|
186
|
-
if ($[
|
|
187
|
-
|
|
205
|
+
let t11;
|
|
206
|
+
if ($[18] !== deleteConversation || $[19] !== navigation || $[20] !== title) {
|
|
207
|
+
t11 = () => {
|
|
188
208
|
Alert.alert("Delete conversation", `All messages in ${title} will be deleted for everyone. This action cannot be undone.`, [{
|
|
189
209
|
text: "Cancel",
|
|
190
210
|
style: "cancel"
|
|
@@ -197,17 +217,34 @@ export function ConversationDetailsScreen(t0) {
|
|
|
197
217
|
}
|
|
198
218
|
}]);
|
|
199
219
|
};
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
220
|
+
$[18] = deleteConversation;
|
|
221
|
+
$[19] = navigation;
|
|
222
|
+
$[20] = title;
|
|
223
|
+
$[21] = t11;
|
|
204
224
|
} else {
|
|
205
|
-
|
|
225
|
+
t11 = $[21];
|
|
206
226
|
}
|
|
207
|
-
const handleDelete =
|
|
208
|
-
let
|
|
209
|
-
if ($[
|
|
210
|
-
|
|
227
|
+
const handleDelete = t11;
|
|
228
|
+
let t12;
|
|
229
|
+
if ($[22] !== setArchived) {
|
|
230
|
+
t12 = () => {
|
|
231
|
+
Alert.alert("Archive conversation", "This conversation will be archived for everyone. Only its leaders and creator can open and unarchive it.", [{
|
|
232
|
+
text: "Cancel",
|
|
233
|
+
style: "cancel"
|
|
234
|
+
}, {
|
|
235
|
+
text: "Archive",
|
|
236
|
+
onPress: () => setArchived(true)
|
|
237
|
+
}]);
|
|
238
|
+
};
|
|
239
|
+
$[22] = setArchived;
|
|
240
|
+
$[23] = t12;
|
|
241
|
+
} else {
|
|
242
|
+
t12 = $[23];
|
|
243
|
+
}
|
|
244
|
+
const handleArchive = t12;
|
|
245
|
+
let t13;
|
|
246
|
+
if ($[24] !== name || $[25] !== productName || $[26] !== resourceType || $[27] !== styles.headerTitleBadge || $[28] !== styles.headerTitleContainer) {
|
|
247
|
+
t13 = props => /*#__PURE__*/_jsxs(View, {
|
|
211
248
|
style: styles.headerTitleContainer,
|
|
212
249
|
children: [/*#__PURE__*/_jsx(ElementsHeaderTitle, {
|
|
213
250
|
maxFontSizeMultiplier: 1,
|
|
@@ -221,122 +258,124 @@ export function ConversationDetailsScreen(t0) {
|
|
|
221
258
|
maxFontSizeMultiplier: 1
|
|
222
259
|
})]
|
|
223
260
|
});
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
261
|
+
$[24] = name;
|
|
262
|
+
$[25] = productName;
|
|
263
|
+
$[26] = resourceType;
|
|
264
|
+
$[27] = styles.headerTitleBadge;
|
|
265
|
+
$[28] = styles.headerTitleContainer;
|
|
266
|
+
$[29] = t13;
|
|
230
267
|
} else {
|
|
231
|
-
|
|
268
|
+
t13 = $[29];
|
|
232
269
|
}
|
|
233
|
-
const HeaderTitle =
|
|
234
|
-
let
|
|
235
|
-
if ($[
|
|
236
|
-
|
|
270
|
+
const HeaderTitle = t13;
|
|
271
|
+
let t14;
|
|
272
|
+
if ($[30] !== canSaveTitle || $[31] !== navigation || $[32] !== saveTitle || $[33] !== trimmedTitle) {
|
|
273
|
+
t14 = {
|
|
237
274
|
icon: "general.check",
|
|
238
275
|
accessibilityLabel: "Done",
|
|
239
276
|
onPress: () => {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
277
|
+
if (canSaveTitle) {
|
|
278
|
+
saveTitle({
|
|
279
|
+
title: trimmedTitle
|
|
280
|
+
});
|
|
281
|
+
}
|
|
243
282
|
navigation.goBack();
|
|
244
283
|
}
|
|
245
284
|
};
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
285
|
+
$[30] = canSaveTitle;
|
|
286
|
+
$[31] = navigation;
|
|
287
|
+
$[32] = saveTitle;
|
|
288
|
+
$[33] = trimmedTitle;
|
|
289
|
+
$[34] = t14;
|
|
251
290
|
} else {
|
|
252
|
-
|
|
291
|
+
t14 = $[34];
|
|
253
292
|
}
|
|
254
|
-
useHeaderRight(
|
|
255
|
-
let
|
|
256
|
-
let
|
|
257
|
-
if ($[
|
|
258
|
-
|
|
293
|
+
useHeaderRight(t14);
|
|
294
|
+
let t15;
|
|
295
|
+
let t16;
|
|
296
|
+
if ($[35] !== HeaderTitle || $[36] !== navigation) {
|
|
297
|
+
t15 = () => {
|
|
259
298
|
navigation.setOptions({
|
|
260
299
|
headerTitle: HeaderTitle
|
|
261
300
|
});
|
|
262
301
|
};
|
|
263
|
-
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
302
|
+
t16 = [HeaderTitle, navigation];
|
|
303
|
+
$[35] = HeaderTitle;
|
|
304
|
+
$[36] = navigation;
|
|
305
|
+
$[37] = t15;
|
|
306
|
+
$[38] = t16;
|
|
268
307
|
} else {
|
|
269
|
-
|
|
270
|
-
|
|
308
|
+
t15 = $[37];
|
|
309
|
+
t16 = $[38];
|
|
271
310
|
}
|
|
272
|
-
useEffect(
|
|
273
|
-
const
|
|
274
|
-
let
|
|
275
|
-
if ($[
|
|
276
|
-
|
|
311
|
+
useEffect(t15, t16);
|
|
312
|
+
const t17 = canUpdate && customAvatarsEnabled ? SectionTypes.view : SectionTypes.hidden;
|
|
313
|
+
let t18;
|
|
314
|
+
if ($[39] !== conversation_id || $[40] !== navigation) {
|
|
315
|
+
t18 = () => navigation.navigate("AvatarPicker", {
|
|
277
316
|
conversation_id
|
|
278
317
|
});
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
318
|
+
$[39] = conversation_id;
|
|
319
|
+
$[40] = navigation;
|
|
320
|
+
$[41] = t18;
|
|
282
321
|
} else {
|
|
283
|
-
|
|
322
|
+
t18 = $[41];
|
|
284
323
|
}
|
|
285
|
-
let
|
|
286
|
-
if ($[
|
|
287
|
-
|
|
324
|
+
let t19;
|
|
325
|
+
if ($[42] !== conversation || $[43] !== t18) {
|
|
326
|
+
t19 = {
|
|
288
327
|
children: /*#__PURE__*/_jsx(AvatarCard, {
|
|
289
328
|
conversation: conversation,
|
|
290
|
-
onPress:
|
|
329
|
+
onPress: t18
|
|
291
330
|
})
|
|
292
331
|
};
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
332
|
+
$[42] = conversation;
|
|
333
|
+
$[43] = t18;
|
|
334
|
+
$[44] = t19;
|
|
296
335
|
} else {
|
|
297
|
-
|
|
336
|
+
t19 = $[44];
|
|
298
337
|
}
|
|
299
|
-
let
|
|
300
|
-
if ($[
|
|
301
|
-
|
|
302
|
-
type:
|
|
303
|
-
data:
|
|
338
|
+
let t20;
|
|
339
|
+
if ($[45] !== styles.sectionInnerAvatarCard || $[46] !== styles.sectionOuterAvatarCard || $[47] !== t17 || $[48] !== t19) {
|
|
340
|
+
t20 = {
|
|
341
|
+
type: t17,
|
|
342
|
+
data: t19,
|
|
304
343
|
sectionOuterStyle: styles.sectionOuterAvatarCard,
|
|
305
344
|
sectionInnerStyle: styles.sectionInnerAvatarCard
|
|
306
345
|
};
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
346
|
+
$[45] = styles.sectionInnerAvatarCard;
|
|
347
|
+
$[46] = styles.sectionOuterAvatarCard;
|
|
348
|
+
$[47] = t17;
|
|
349
|
+
$[48] = t19;
|
|
350
|
+
$[49] = t20;
|
|
312
351
|
} else {
|
|
313
|
-
|
|
352
|
+
t20 = $[49];
|
|
314
353
|
}
|
|
315
|
-
let
|
|
316
|
-
if ($[
|
|
317
|
-
|
|
354
|
+
let t21;
|
|
355
|
+
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
356
|
+
t21 = {
|
|
318
357
|
title: "Basic info"
|
|
319
358
|
};
|
|
320
|
-
$[
|
|
359
|
+
$[50] = t21;
|
|
321
360
|
} else {
|
|
322
|
-
|
|
361
|
+
t21 = $[50];
|
|
323
362
|
}
|
|
324
|
-
let
|
|
325
|
-
if ($[
|
|
326
|
-
|
|
363
|
+
let t22;
|
|
364
|
+
if ($[51] !== styles.sectionInnerHeaderWithBottomBorder) {
|
|
365
|
+
t22 = {
|
|
327
366
|
type: SectionTypes.header,
|
|
328
|
-
data:
|
|
367
|
+
data: t21,
|
|
329
368
|
showBottomBorder: true,
|
|
330
369
|
sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
|
|
331
370
|
};
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
371
|
+
$[51] = styles.sectionInnerHeaderWithBottomBorder;
|
|
372
|
+
$[52] = t22;
|
|
334
373
|
} else {
|
|
335
|
-
|
|
374
|
+
t22 = $[52];
|
|
336
375
|
}
|
|
337
|
-
let
|
|
338
|
-
if ($[
|
|
339
|
-
|
|
376
|
+
let t23;
|
|
377
|
+
if ($[53] !== canUpdate || $[54] !== emptyTitle || $[55] !== title) {
|
|
378
|
+
t23 = {
|
|
340
379
|
children: /*#__PURE__*/_jsx(TitleInput, {
|
|
341
380
|
canUpdate: canUpdate,
|
|
342
381
|
title: title,
|
|
@@ -344,51 +383,69 @@ export function ConversationDetailsScreen(t0) {
|
|
|
344
383
|
isEmpty: emptyTitle
|
|
345
384
|
})
|
|
346
385
|
};
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
386
|
+
$[53] = canUpdate;
|
|
387
|
+
$[54] = emptyTitle;
|
|
388
|
+
$[55] = title;
|
|
389
|
+
$[56] = t23;
|
|
351
390
|
} else {
|
|
352
|
-
|
|
391
|
+
t23 = $[56];
|
|
353
392
|
}
|
|
354
|
-
let
|
|
355
|
-
if ($[
|
|
356
|
-
|
|
393
|
+
let t24;
|
|
394
|
+
if ($[57] !== styles.sectionInnerTitleInput || $[58] !== t23) {
|
|
395
|
+
t24 = {
|
|
357
396
|
type: SectionTypes.view,
|
|
358
|
-
data:
|
|
397
|
+
data: t23,
|
|
359
398
|
sectionInnerStyle: styles.sectionInnerTitleInput
|
|
360
399
|
};
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
400
|
+
$[57] = styles.sectionInnerTitleInput;
|
|
401
|
+
$[58] = t23;
|
|
402
|
+
$[59] = t24;
|
|
364
403
|
} else {
|
|
365
|
-
|
|
404
|
+
t24 = $[59];
|
|
366
405
|
}
|
|
367
|
-
let
|
|
368
|
-
if ($[
|
|
369
|
-
|
|
406
|
+
let t25;
|
|
407
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
408
|
+
t25 = {
|
|
370
409
|
title: "Settings"
|
|
371
410
|
};
|
|
372
|
-
$[
|
|
411
|
+
$[60] = t25;
|
|
373
412
|
} else {
|
|
374
|
-
|
|
413
|
+
t25 = $[60];
|
|
375
414
|
}
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
415
|
+
let t26;
|
|
416
|
+
if ($[61] !== styles.sectionInnerHeaderWithBottomBorder) {
|
|
417
|
+
t26 = {
|
|
379
418
|
type: SectionTypes.header,
|
|
380
|
-
data:
|
|
419
|
+
data: t25,
|
|
381
420
|
showBottomBorder: true,
|
|
382
421
|
sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
|
|
383
422
|
};
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
423
|
+
$[61] = styles.sectionInnerHeaderWithBottomBorder;
|
|
424
|
+
$[62] = t26;
|
|
386
425
|
} else {
|
|
387
|
-
|
|
426
|
+
t26 = $[62];
|
|
388
427
|
}
|
|
389
|
-
let
|
|
390
|
-
if ($[
|
|
391
|
-
|
|
428
|
+
let t27;
|
|
429
|
+
if ($[63] !== archived || $[64] !== conversation || $[65] !== conversation_id || $[66] !== granularNotificationsEnabled || $[67] !== muted || $[68] !== navigation || $[69] !== notificationLevelDescription || $[70] !== setMuted || $[71] !== styles.unarchiveButton || $[72] !== unarchiveAction) {
|
|
430
|
+
t27 = archived ? {
|
|
431
|
+
type: SectionTypes.view,
|
|
432
|
+
data: {
|
|
433
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
434
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
435
|
+
variant: "tertiary",
|
|
436
|
+
children: archivedConversationMessage(conversation)
|
|
437
|
+
}), unarchiveAction && /*#__PURE__*/_jsx(Button, {
|
|
438
|
+
variant: "fill",
|
|
439
|
+
size: "lg",
|
|
440
|
+
title: unarchiveAction.label,
|
|
441
|
+
onPress: unarchiveAction.onPress,
|
|
442
|
+
loading: unarchiveAction.loading,
|
|
443
|
+
style: styles.unarchiveButton
|
|
444
|
+
})]
|
|
445
|
+
})
|
|
446
|
+
},
|
|
447
|
+
showBottomBorder: true
|
|
448
|
+
} : granularNotificationsEnabled ? {
|
|
392
449
|
type: SectionTypes.navigableSetting,
|
|
393
450
|
data: {
|
|
394
451
|
title: "Notifications",
|
|
@@ -409,253 +466,285 @@ export function ConversationDetailsScreen(t0) {
|
|
|
409
466
|
},
|
|
410
467
|
showBottomBorder: true
|
|
411
468
|
};
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
469
|
+
$[63] = archived;
|
|
470
|
+
$[64] = conversation;
|
|
471
|
+
$[65] = conversation_id;
|
|
472
|
+
$[66] = granularNotificationsEnabled;
|
|
473
|
+
$[67] = muted;
|
|
474
|
+
$[68] = navigation;
|
|
475
|
+
$[69] = notificationLevelDescription;
|
|
476
|
+
$[70] = setMuted;
|
|
477
|
+
$[71] = styles.unarchiveButton;
|
|
478
|
+
$[72] = unarchiveAction;
|
|
479
|
+
$[73] = t27;
|
|
480
|
+
} else {
|
|
481
|
+
t27 = $[73];
|
|
482
|
+
}
|
|
483
|
+
const t28 = canUpdate ? SectionTypes.setting : SectionTypes.hidden;
|
|
484
|
+
let t29;
|
|
485
|
+
if ($[74] !== repliesDisabled || $[75] !== setRepliesDisabled) {
|
|
486
|
+
t29 = () => setRepliesDisabled(!repliesDisabled);
|
|
487
|
+
$[74] = repliesDisabled;
|
|
488
|
+
$[75] = setRepliesDisabled;
|
|
489
|
+
$[76] = t29;
|
|
429
490
|
} else {
|
|
430
|
-
|
|
491
|
+
t29 = $[76];
|
|
431
492
|
}
|
|
432
|
-
let
|
|
433
|
-
if ($[
|
|
434
|
-
|
|
493
|
+
let t30;
|
|
494
|
+
if ($[77] !== repliesDisabled || $[78] !== t29) {
|
|
495
|
+
t30 = {
|
|
435
496
|
title: "Only leaders can message",
|
|
436
497
|
rightItem: /*#__PURE__*/_jsx(Switch, {
|
|
437
498
|
value: repliesDisabled,
|
|
438
|
-
onChange:
|
|
499
|
+
onChange: t29
|
|
439
500
|
})
|
|
440
501
|
};
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
502
|
+
$[77] = repliesDisabled;
|
|
503
|
+
$[78] = t29;
|
|
504
|
+
$[79] = t30;
|
|
444
505
|
} else {
|
|
445
|
-
|
|
506
|
+
t30 = $[79];
|
|
446
507
|
}
|
|
447
|
-
let
|
|
448
|
-
if ($[
|
|
449
|
-
|
|
450
|
-
type:
|
|
451
|
-
data:
|
|
508
|
+
let t31;
|
|
509
|
+
if ($[80] !== t28 || $[81] !== t30) {
|
|
510
|
+
t31 = {
|
|
511
|
+
type: t28,
|
|
512
|
+
data: t30,
|
|
452
513
|
showBottomBorder: true
|
|
453
514
|
};
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
515
|
+
$[80] = t28;
|
|
516
|
+
$[81] = t30;
|
|
517
|
+
$[82] = t31;
|
|
518
|
+
} else {
|
|
519
|
+
t31 = $[82];
|
|
520
|
+
}
|
|
521
|
+
const t32 = canArchive ? SectionTypes.setting : SectionTypes.hidden;
|
|
522
|
+
let t33;
|
|
523
|
+
if ($[83] !== handleArchive || $[84] !== isArchiving) {
|
|
524
|
+
t33 = {
|
|
525
|
+
title: "Archive conversation\u2026",
|
|
526
|
+
disabled: isArchiving,
|
|
527
|
+
onPress: handleArchive
|
|
528
|
+
};
|
|
529
|
+
$[83] = handleArchive;
|
|
530
|
+
$[84] = isArchiving;
|
|
531
|
+
$[85] = t33;
|
|
457
532
|
} else {
|
|
458
|
-
|
|
533
|
+
t33 = $[85];
|
|
459
534
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
535
|
+
let t34;
|
|
536
|
+
if ($[86] !== canDelete || $[87] !== t32 || $[88] !== t33) {
|
|
537
|
+
t34 = {
|
|
538
|
+
type: t32,
|
|
539
|
+
data: t33,
|
|
540
|
+
showBottomBorder: canDelete
|
|
541
|
+
};
|
|
542
|
+
$[86] = canDelete;
|
|
543
|
+
$[87] = t32;
|
|
544
|
+
$[88] = t33;
|
|
545
|
+
$[89] = t34;
|
|
546
|
+
} else {
|
|
547
|
+
t34 = $[89];
|
|
548
|
+
}
|
|
549
|
+
const t35 = canDelete ? SectionTypes.setting : SectionTypes.hidden;
|
|
550
|
+
let t36;
|
|
551
|
+
if ($[90] !== handleDelete || $[91] !== styles.deleteButtonText) {
|
|
552
|
+
t36 = {
|
|
464
553
|
title: "Delete conversation\u2026",
|
|
465
554
|
buttonTextStyle: styles.deleteButtonText,
|
|
466
555
|
appearance: "danger",
|
|
467
556
|
onPress: handleDelete
|
|
468
557
|
};
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
558
|
+
$[90] = handleDelete;
|
|
559
|
+
$[91] = styles.deleteButtonText;
|
|
560
|
+
$[92] = t36;
|
|
472
561
|
} else {
|
|
473
|
-
|
|
562
|
+
t36 = $[92];
|
|
474
563
|
}
|
|
475
|
-
let
|
|
476
|
-
if ($[
|
|
477
|
-
|
|
478
|
-
type:
|
|
479
|
-
data:
|
|
564
|
+
let t37;
|
|
565
|
+
if ($[93] !== t35 || $[94] !== t36) {
|
|
566
|
+
t37 = {
|
|
567
|
+
type: t35,
|
|
568
|
+
data: t36
|
|
480
569
|
};
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
570
|
+
$[93] = t35;
|
|
571
|
+
$[94] = t36;
|
|
572
|
+
$[95] = t37;
|
|
484
573
|
} else {
|
|
485
|
-
|
|
574
|
+
t37 = $[95];
|
|
486
575
|
}
|
|
487
|
-
const
|
|
488
|
-
let
|
|
489
|
-
if ($[
|
|
490
|
-
|
|
576
|
+
const t38 = hasTeams ? SectionTypes.header : SectionTypes.hidden;
|
|
577
|
+
let t39;
|
|
578
|
+
if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
|
|
579
|
+
t39 = {
|
|
491
580
|
title: "Teams"
|
|
492
581
|
};
|
|
493
|
-
$[
|
|
582
|
+
$[96] = t39;
|
|
494
583
|
} else {
|
|
495
|
-
|
|
584
|
+
t39 = $[96];
|
|
496
585
|
}
|
|
497
|
-
let
|
|
498
|
-
if ($[
|
|
499
|
-
|
|
500
|
-
type:
|
|
501
|
-
data:
|
|
586
|
+
let t40;
|
|
587
|
+
if ($[97] !== styles.sectionInnerHeader || $[98] !== t38) {
|
|
588
|
+
t40 = {
|
|
589
|
+
type: t38,
|
|
590
|
+
data: t39,
|
|
502
591
|
sectionInnerStyle: styles.sectionInnerHeader
|
|
503
592
|
};
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
593
|
+
$[97] = styles.sectionInnerHeader;
|
|
594
|
+
$[98] = t38;
|
|
595
|
+
$[99] = t40;
|
|
507
596
|
} else {
|
|
508
|
-
|
|
597
|
+
t40 = $[99];
|
|
509
598
|
}
|
|
510
|
-
const
|
|
511
|
-
let
|
|
512
|
-
if ($[
|
|
513
|
-
|
|
599
|
+
const t41 = hasTeams ? SectionTypes.view : SectionTypes.hidden;
|
|
600
|
+
let t42;
|
|
601
|
+
if ($[100] !== teamsGroup) {
|
|
602
|
+
t42 = {
|
|
514
603
|
children: /*#__PURE__*/_jsx(TeamsGroup, {
|
|
515
604
|
teams: teamsGroup
|
|
516
605
|
})
|
|
517
606
|
};
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
607
|
+
$[100] = teamsGroup;
|
|
608
|
+
$[101] = t42;
|
|
520
609
|
} else {
|
|
521
|
-
|
|
610
|
+
t42 = $[101];
|
|
522
611
|
}
|
|
523
|
-
let
|
|
524
|
-
if ($[
|
|
525
|
-
|
|
526
|
-
type:
|
|
527
|
-
data:
|
|
612
|
+
let t43;
|
|
613
|
+
if ($[102] !== t41 || $[103] !== t42) {
|
|
614
|
+
t43 = {
|
|
615
|
+
type: t41,
|
|
616
|
+
data: t42
|
|
528
617
|
};
|
|
529
|
-
$[
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
618
|
+
$[102] = t41;
|
|
619
|
+
$[103] = t42;
|
|
620
|
+
$[104] = t43;
|
|
532
621
|
} else {
|
|
533
|
-
|
|
622
|
+
t43 = $[104];
|
|
534
623
|
}
|
|
535
|
-
const
|
|
624
|
+
const t44 = showGenderFilter ? /*#__PURE__*/_jsx(Badge, {
|
|
536
625
|
label: `${genderLabel}-only`
|
|
537
626
|
}) : undefined;
|
|
538
|
-
let
|
|
539
|
-
if ($[
|
|
540
|
-
|
|
627
|
+
let t45;
|
|
628
|
+
if ($[105] !== t44) {
|
|
629
|
+
t45 = {
|
|
541
630
|
title: "People",
|
|
542
|
-
badge:
|
|
631
|
+
badge: t44
|
|
543
632
|
};
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
633
|
+
$[105] = t44;
|
|
634
|
+
$[106] = t45;
|
|
546
635
|
} else {
|
|
547
|
-
|
|
636
|
+
t45 = $[106];
|
|
548
637
|
}
|
|
549
|
-
let
|
|
550
|
-
if ($[
|
|
551
|
-
|
|
638
|
+
let t46;
|
|
639
|
+
if ($[107] !== styles.sectionInnerHeader || $[108] !== t45) {
|
|
640
|
+
t46 = {
|
|
552
641
|
type: SectionTypes.header,
|
|
553
|
-
data:
|
|
642
|
+
data: t45,
|
|
554
643
|
sectionInnerStyle: styles.sectionInnerHeader
|
|
555
644
|
};
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
558
|
-
$[
|
|
645
|
+
$[107] = styles.sectionInnerHeader;
|
|
646
|
+
$[108] = t45;
|
|
647
|
+
$[109] = t46;
|
|
559
648
|
} else {
|
|
560
|
-
|
|
649
|
+
t46 = $[109];
|
|
561
650
|
}
|
|
562
|
-
const
|
|
563
|
-
const
|
|
564
|
-
let
|
|
565
|
-
if ($[
|
|
566
|
-
|
|
651
|
+
const t47 = showGenderFilter ? SectionTypes.view : SectionTypes.hidden;
|
|
652
|
+
const t48 = genderLabel.toLowerCase();
|
|
653
|
+
let t49;
|
|
654
|
+
if ($[110] !== t48) {
|
|
655
|
+
t49 = {
|
|
567
656
|
children: /*#__PURE__*/_jsxs(Text, {
|
|
568
657
|
variant: "tertiary",
|
|
569
|
-
children: ["This conversation will be automatically updated if any ",
|
|
658
|
+
children: ["This conversation will be automatically updated if any ", t48, " are added or removed from this group."]
|
|
570
659
|
})
|
|
571
660
|
};
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
661
|
+
$[110] = t48;
|
|
662
|
+
$[111] = t49;
|
|
574
663
|
} else {
|
|
575
|
-
|
|
664
|
+
t49 = $[111];
|
|
576
665
|
}
|
|
577
|
-
let
|
|
578
|
-
if ($[
|
|
579
|
-
|
|
580
|
-
type:
|
|
581
|
-
data:
|
|
666
|
+
let t50;
|
|
667
|
+
if ($[112] !== styles.sectionInnerGenderNotice || $[113] !== t47 || $[114] !== t49) {
|
|
668
|
+
t50 = {
|
|
669
|
+
type: t47,
|
|
670
|
+
data: t49,
|
|
582
671
|
sectionInnerStyle: styles.sectionInnerGenderNotice
|
|
583
672
|
};
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
673
|
+
$[112] = styles.sectionInnerGenderNotice;
|
|
674
|
+
$[113] = t47;
|
|
675
|
+
$[114] = t49;
|
|
676
|
+
$[115] = t50;
|
|
588
677
|
} else {
|
|
589
|
-
|
|
678
|
+
t50 = $[115];
|
|
590
679
|
}
|
|
591
|
-
const
|
|
592
|
-
let
|
|
593
|
-
if ($[
|
|
594
|
-
|
|
680
|
+
const t51 = showAdultRequirementNotice ? SectionTypes.view : SectionTypes.hidden;
|
|
681
|
+
let t52;
|
|
682
|
+
if ($[116] === Symbol.for("react.memo_cache_sentinel")) {
|
|
683
|
+
t52 = {
|
|
595
684
|
children: /*#__PURE__*/_jsx(AdultRequirementNotice, {})
|
|
596
685
|
};
|
|
597
|
-
$[
|
|
686
|
+
$[116] = t52;
|
|
598
687
|
} else {
|
|
599
|
-
|
|
688
|
+
t52 = $[116];
|
|
600
689
|
}
|
|
601
|
-
let
|
|
602
|
-
if ($[
|
|
603
|
-
|
|
604
|
-
type:
|
|
605
|
-
data:
|
|
690
|
+
let t53;
|
|
691
|
+
if ($[117] !== styles.sectionInnerNotice || $[118] !== t51) {
|
|
692
|
+
t53 = {
|
|
693
|
+
type: t51,
|
|
694
|
+
data: t52,
|
|
606
695
|
sectionInnerStyle: styles.sectionInnerNotice
|
|
607
696
|
};
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
697
|
+
$[117] = styles.sectionInnerNotice;
|
|
698
|
+
$[118] = t51;
|
|
699
|
+
$[119] = t53;
|
|
611
700
|
} else {
|
|
612
|
-
|
|
701
|
+
t53 = $[119];
|
|
613
702
|
}
|
|
614
|
-
const
|
|
615
|
-
let
|
|
616
|
-
if ($[
|
|
617
|
-
|
|
703
|
+
const t54 = hasChildren && isLeader ? SectionTypes.view : SectionTypes.hidden;
|
|
704
|
+
let t55;
|
|
705
|
+
if ($[120] !== childMembers) {
|
|
706
|
+
t55 = {
|
|
618
707
|
children: /*#__PURE__*/_jsx(ChildNotice, {
|
|
619
708
|
childMembers: childMembers
|
|
620
709
|
})
|
|
621
710
|
};
|
|
622
|
-
$[
|
|
623
|
-
$[
|
|
711
|
+
$[120] = childMembers;
|
|
712
|
+
$[121] = t55;
|
|
624
713
|
} else {
|
|
625
|
-
|
|
714
|
+
t55 = $[121];
|
|
626
715
|
}
|
|
627
|
-
let
|
|
628
|
-
if ($[
|
|
629
|
-
|
|
630
|
-
type:
|
|
631
|
-
data:
|
|
716
|
+
let t56;
|
|
717
|
+
if ($[122] !== styles.sectionInnerNotice || $[123] !== t54 || $[124] !== t55) {
|
|
718
|
+
t56 = {
|
|
719
|
+
type: t54,
|
|
720
|
+
data: t55,
|
|
632
721
|
sectionInnerStyle: styles.sectionInnerNotice
|
|
633
722
|
};
|
|
634
|
-
$[
|
|
635
|
-
$[
|
|
636
|
-
$[
|
|
637
|
-
$[
|
|
723
|
+
$[122] = styles.sectionInnerNotice;
|
|
724
|
+
$[123] = t54;
|
|
725
|
+
$[124] = t55;
|
|
726
|
+
$[125] = t56;
|
|
638
727
|
} else {
|
|
639
|
-
|
|
728
|
+
t56 = $[125];
|
|
640
729
|
}
|
|
641
|
-
const listData = [
|
|
642
|
-
let
|
|
643
|
-
if ($[
|
|
644
|
-
|
|
645
|
-
$[
|
|
646
|
-
$[
|
|
647
|
-
} else {
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
const headerIndices =
|
|
651
|
-
const
|
|
652
|
-
let
|
|
653
|
-
if ($[
|
|
654
|
-
|
|
730
|
+
const listData = [t20, t22, t24, t26, t27, t31, t34, t37, t40, t43, t46, t50, t53, t56, ...memberItems, ...loadingMemberItems].filter(_temp5);
|
|
731
|
+
let t57;
|
|
732
|
+
if ($[126] !== listData) {
|
|
733
|
+
t57 = listData.map(_temp6).filter(isDefined);
|
|
734
|
+
$[126] = listData;
|
|
735
|
+
$[127] = t57;
|
|
736
|
+
} else {
|
|
737
|
+
t57 = $[127];
|
|
738
|
+
}
|
|
739
|
+
const headerIndices = t57;
|
|
740
|
+
const t58 = listData;
|
|
741
|
+
let t59;
|
|
742
|
+
if ($[128] !== headerIndices || $[129] !== listData.length || $[130] !== styles.sectionHeaderRow) {
|
|
743
|
+
t59 = t60 => {
|
|
655
744
|
const {
|
|
656
745
|
item: item_0,
|
|
657
746
|
index: index_1
|
|
658
|
-
} =
|
|
747
|
+
} = t60;
|
|
659
748
|
const [isStart, isEnd] = [index_1 === 0 || headerIndices.includes(index_1), index_1 === listData.length - 1 || headerIndices.includes(index_1 + 1)];
|
|
660
749
|
switch (item_0.type) {
|
|
661
750
|
case SectionTypes.header:
|
|
@@ -752,50 +841,50 @@ export function ConversationDetailsScreen(t0) {
|
|
|
752
841
|
}
|
|
753
842
|
}
|
|
754
843
|
};
|
|
755
|
-
$[
|
|
756
|
-
$[
|
|
757
|
-
$[
|
|
758
|
-
$[
|
|
844
|
+
$[128] = headerIndices;
|
|
845
|
+
$[129] = listData.length;
|
|
846
|
+
$[130] = styles.sectionHeaderRow;
|
|
847
|
+
$[131] = t59;
|
|
759
848
|
} else {
|
|
760
|
-
|
|
849
|
+
t59 = $[131];
|
|
761
850
|
}
|
|
762
|
-
let
|
|
763
|
-
if ($[
|
|
764
|
-
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
851
|
+
let t60;
|
|
852
|
+
if ($[132] !== fetchNextPageOfMembers) {
|
|
853
|
+
t60 = () => fetchNextPageOfMembers();
|
|
854
|
+
$[132] = fetchNextPageOfMembers;
|
|
855
|
+
$[133] = t60;
|
|
767
856
|
} else {
|
|
768
|
-
|
|
857
|
+
t60 = $[133];
|
|
769
858
|
}
|
|
770
|
-
let
|
|
771
|
-
if ($[
|
|
772
|
-
|
|
773
|
-
data:
|
|
859
|
+
let t61;
|
|
860
|
+
if ($[134] !== styles.contentContainer || $[135] !== t58 || $[136] !== t59 || $[137] !== t60) {
|
|
861
|
+
t61 = /*#__PURE__*/_jsx(FlatList, {
|
|
862
|
+
data: t58,
|
|
774
863
|
contentContainerStyle: styles.contentContainer,
|
|
775
|
-
renderItem:
|
|
776
|
-
onEndReached:
|
|
864
|
+
renderItem: t59,
|
|
865
|
+
onEndReached: t60
|
|
777
866
|
});
|
|
778
|
-
$[
|
|
779
|
-
$[
|
|
780
|
-
$[
|
|
781
|
-
$[
|
|
782
|
-
$[
|
|
867
|
+
$[134] = styles.contentContainer;
|
|
868
|
+
$[135] = t58;
|
|
869
|
+
$[136] = t59;
|
|
870
|
+
$[137] = t60;
|
|
871
|
+
$[138] = t61;
|
|
783
872
|
} else {
|
|
784
|
-
|
|
873
|
+
t61 = $[138];
|
|
785
874
|
}
|
|
786
|
-
let
|
|
787
|
-
if ($[
|
|
788
|
-
|
|
875
|
+
let t62;
|
|
876
|
+
if ($[139] !== styles.listContainer || $[140] !== t61) {
|
|
877
|
+
t62 = /*#__PURE__*/_jsx(View, {
|
|
789
878
|
style: styles.listContainer,
|
|
790
|
-
children:
|
|
879
|
+
children: t61
|
|
791
880
|
});
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
794
|
-
$[
|
|
881
|
+
$[139] = styles.listContainer;
|
|
882
|
+
$[140] = t61;
|
|
883
|
+
$[141] = t62;
|
|
795
884
|
} else {
|
|
796
|
-
|
|
885
|
+
t62 = $[141];
|
|
797
886
|
}
|
|
798
|
-
return
|
|
887
|
+
return t62;
|
|
799
888
|
}
|
|
800
889
|
function _temp6(t0, index_0) {
|
|
801
890
|
const {
|
|
@@ -1038,7 +1127,7 @@ function TitleInput(t0) {
|
|
|
1038
1127
|
return t11;
|
|
1039
1128
|
}
|
|
1040
1129
|
function SettingRow(t0) {
|
|
1041
|
-
const $ = _c(
|
|
1130
|
+
const $ = _c(38);
|
|
1042
1131
|
const {
|
|
1043
1132
|
title,
|
|
1044
1133
|
style,
|
|
@@ -1048,6 +1137,7 @@ function SettingRow(t0) {
|
|
|
1048
1137
|
rightItem,
|
|
1049
1138
|
rightItemStyle: t3,
|
|
1050
1139
|
appearance,
|
|
1140
|
+
disabled,
|
|
1051
1141
|
onPress
|
|
1052
1142
|
} = t0;
|
|
1053
1143
|
let t4;
|
|
@@ -1089,104 +1179,106 @@ function SettingRow(t0) {
|
|
|
1089
1179
|
t7 = $[8];
|
|
1090
1180
|
}
|
|
1091
1181
|
let t8;
|
|
1092
|
-
if ($[9] !== appearance || $[10] !== buttonTextStyle || $[11] !==
|
|
1182
|
+
if ($[9] !== appearance || $[10] !== buttonTextStyle || $[11] !== disabled || $[12] !== onPress || $[13] !== t7 || $[14] !== title) {
|
|
1093
1183
|
t8 = /*#__PURE__*/_jsx(TextButton, {
|
|
1094
1184
|
style: t7,
|
|
1095
1185
|
textStyle: buttonTextStyle,
|
|
1096
1186
|
appearance: appearance,
|
|
1187
|
+
disabled: disabled,
|
|
1097
1188
|
onPress: onPress,
|
|
1098
1189
|
children: title
|
|
1099
1190
|
});
|
|
1100
1191
|
$[9] = appearance;
|
|
1101
1192
|
$[10] = buttonTextStyle;
|
|
1102
|
-
$[11] =
|
|
1103
|
-
$[12] =
|
|
1104
|
-
$[13] =
|
|
1105
|
-
$[14] =
|
|
1193
|
+
$[11] = disabled;
|
|
1194
|
+
$[12] = onPress;
|
|
1195
|
+
$[13] = t7;
|
|
1196
|
+
$[14] = title;
|
|
1197
|
+
$[15] = t8;
|
|
1106
1198
|
} else {
|
|
1107
|
-
t8 = $[
|
|
1199
|
+
t8 = $[15];
|
|
1108
1200
|
}
|
|
1109
1201
|
return t8;
|
|
1110
1202
|
}
|
|
1111
1203
|
let t7;
|
|
1112
|
-
if ($[
|
|
1204
|
+
if ($[16] !== style || $[17] !== styles.settingRow) {
|
|
1113
1205
|
t7 = [styles.settingRow, style];
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1206
|
+
$[16] = style;
|
|
1207
|
+
$[17] = styles.settingRow;
|
|
1208
|
+
$[18] = t7;
|
|
1117
1209
|
} else {
|
|
1118
|
-
t7 = $[
|
|
1210
|
+
t7 = $[18];
|
|
1119
1211
|
}
|
|
1120
1212
|
let t8;
|
|
1121
|
-
if ($[
|
|
1213
|
+
if ($[19] !== styles.settingRowText || $[20] !== titleStyle) {
|
|
1122
1214
|
t8 = [styles.settingRowText, titleStyle];
|
|
1123
|
-
$[
|
|
1124
|
-
$[
|
|
1125
|
-
$[
|
|
1215
|
+
$[19] = styles.settingRowText;
|
|
1216
|
+
$[20] = titleStyle;
|
|
1217
|
+
$[21] = t8;
|
|
1126
1218
|
} else {
|
|
1127
|
-
t8 = $[
|
|
1219
|
+
t8 = $[21];
|
|
1128
1220
|
}
|
|
1129
1221
|
let t9;
|
|
1130
|
-
if ($[
|
|
1222
|
+
if ($[22] !== t8 || $[23] !== title) {
|
|
1131
1223
|
t9 = /*#__PURE__*/_jsx(Text, {
|
|
1132
1224
|
variant: "plain",
|
|
1133
1225
|
style: t8,
|
|
1134
1226
|
children: title
|
|
1135
1227
|
});
|
|
1136
|
-
$[
|
|
1137
|
-
$[
|
|
1138
|
-
$[
|
|
1228
|
+
$[22] = t8;
|
|
1229
|
+
$[23] = title;
|
|
1230
|
+
$[24] = t9;
|
|
1139
1231
|
} else {
|
|
1140
|
-
t9 = $[
|
|
1232
|
+
t9 = $[24];
|
|
1141
1233
|
}
|
|
1142
1234
|
let t10;
|
|
1143
|
-
if ($[
|
|
1235
|
+
if ($[25] !== subtitle) {
|
|
1144
1236
|
t10 = Boolean(subtitle) && /*#__PURE__*/_jsx(Text, {
|
|
1145
1237
|
variant: "footnote",
|
|
1146
1238
|
children: subtitle
|
|
1147
1239
|
});
|
|
1148
|
-
$[
|
|
1149
|
-
$[
|
|
1240
|
+
$[25] = subtitle;
|
|
1241
|
+
$[26] = t10;
|
|
1150
1242
|
} else {
|
|
1151
|
-
t10 = $[
|
|
1243
|
+
t10 = $[26];
|
|
1152
1244
|
}
|
|
1153
1245
|
let t11;
|
|
1154
|
-
if ($[
|
|
1246
|
+
if ($[27] !== styles.settingRowContent || $[28] !== t10 || $[29] !== t9) {
|
|
1155
1247
|
t11 = /*#__PURE__*/_jsxs(View, {
|
|
1156
1248
|
style: styles.settingRowContent,
|
|
1157
1249
|
children: [t9, t10]
|
|
1158
1250
|
});
|
|
1159
|
-
$[
|
|
1160
|
-
$[
|
|
1161
|
-
$[
|
|
1162
|
-
$[
|
|
1251
|
+
$[27] = styles.settingRowContent;
|
|
1252
|
+
$[28] = t10;
|
|
1253
|
+
$[29] = t9;
|
|
1254
|
+
$[30] = t11;
|
|
1163
1255
|
} else {
|
|
1164
|
-
t11 = $[
|
|
1256
|
+
t11 = $[30];
|
|
1165
1257
|
}
|
|
1166
1258
|
let t12;
|
|
1167
|
-
if ($[
|
|
1259
|
+
if ($[31] !== rightItem || $[32] !== rightItemStyle) {
|
|
1168
1260
|
t12 = Boolean(rightItem) && /*#__PURE__*/_jsx(View, {
|
|
1169
1261
|
style: rightItemStyle,
|
|
1170
1262
|
children: rightItem
|
|
1171
1263
|
});
|
|
1172
|
-
$[
|
|
1173
|
-
$[
|
|
1174
|
-
$[
|
|
1264
|
+
$[31] = rightItem;
|
|
1265
|
+
$[32] = rightItemStyle;
|
|
1266
|
+
$[33] = t12;
|
|
1175
1267
|
} else {
|
|
1176
|
-
t12 = $[
|
|
1268
|
+
t12 = $[33];
|
|
1177
1269
|
}
|
|
1178
1270
|
let t13;
|
|
1179
|
-
if ($[
|
|
1271
|
+
if ($[34] !== t11 || $[35] !== t12 || $[36] !== t7) {
|
|
1180
1272
|
t13 = /*#__PURE__*/_jsxs(View, {
|
|
1181
1273
|
style: t7,
|
|
1182
1274
|
children: [t11, t12]
|
|
1183
1275
|
});
|
|
1184
|
-
$[
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1276
|
+
$[34] = t11;
|
|
1277
|
+
$[35] = t12;
|
|
1278
|
+
$[36] = t7;
|
|
1279
|
+
$[37] = t13;
|
|
1188
1280
|
} else {
|
|
1189
|
-
t13 = $[
|
|
1281
|
+
t13 = $[37];
|
|
1190
1282
|
}
|
|
1191
1283
|
return t13;
|
|
1192
1284
|
}
|
|
@@ -1501,6 +1593,9 @@ const useStyles = t0 => {
|
|
|
1501
1593
|
deleteButtonText: {
|
|
1502
1594
|
fontWeight: "normal"
|
|
1503
1595
|
},
|
|
1596
|
+
unarchiveButton: {
|
|
1597
|
+
marginTop: 12
|
|
1598
|
+
},
|
|
1504
1599
|
settingRowText: {
|
|
1505
1600
|
lineHeight: 20
|
|
1506
1601
|
},
|