@planningcenter/chat-react-native 4.7.1-qa-staging.2 → 4.7.1-rc.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/conversations/conversation_actions.d.ts.map +1 -1
- package/build/components/conversations/conversation_actions.js +193 -333
- 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 +91 -106
- 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 +56 -63
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/conversations/conversations_blank_state.d.ts +1 -2
- package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
- package/build/components/conversations/conversations_blank_state.js +39 -71
- package/build/components/conversations/conversations_blank_state.js.map +1 -1
- package/build/components/group_conversation_list.d.ts.map +1 -1
- package/build/components/group_conversation_list.js +0 -1
- package/build/components/group_conversation_list.js.map +1 -1
- package/build/contexts/conversations_context.d.ts +1 -3
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +31 -39
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -6
- package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
- package/build/hooks/use_api.d.ts +0 -6
- package/build/hooks/use_api.d.ts.map +1 -1
- package/build/hooks/use_api.js +5 -8
- package/build/hooks/use_api.js.map +1 -1
- package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
- package/build/hooks/use_clear_conversation_filters.js +0 -1
- package/build/hooks/use_clear_conversation_filters.js.map +1 -1
- package/build/hooks/use_conversation.d.ts.map +1 -1
- package/build/hooks/use_conversation.js +1 -1
- package/build/hooks/use_conversation.js.map +1 -1
- package/build/hooks/use_features.d.ts +0 -1
- package/build/hooks/use_features.d.ts.map +1 -1
- package/build/hooks/use_features.js +1 -2
- package/build/hooks/use_features.js.map +1 -1
- package/build/hooks/use_groups.d.ts +0 -6
- package/build/hooks/use_groups.d.ts.map +1 -1
- package/build/hooks/use_groups_groups.d.ts +0 -6
- package/build/hooks/use_groups_groups.d.ts.map +1 -1
- package/build/hooks/use_live_relative_time.js +6 -5
- package/build/hooks/use_live_relative_time.js.map +1 -1
- package/build/hooks/use_teams.d.ts +0 -6
- package/build/hooks/use_teams.d.ts.map +1 -1
- package/build/navigation/index.d.ts +0 -5
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +0 -5
- package/build/navigation/index.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +394 -460
- 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 +12 -53
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts +3 -6
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +62 -99
- 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 +0 -4
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/filter_types.d.ts +0 -1
- package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
- package/build/screens/conversation_filters/filter_types.js +0 -1
- package/build/screens/conversation_filters/filter_types.js.map +1 -1
- package/build/screens/conversation_filters/hooks/filters.d.ts +0 -12
- package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
- package/build/screens/conversation_filters/screen_props.d.ts +0 -1
- 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/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js +126 -138
- package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +90 -95
- 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 +95 -100
- package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts +0 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +10 -18
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/index.d.ts +0 -1
- package/build/screens/index.d.ts.map +1 -1
- package/build/screens/index.js +0 -1
- package/build/screens/index.js.map +1 -1
- package/build/types/resources/conversation_membership.d.ts +0 -1
- package/build/types/resources/conversation_membership.d.ts.map +1 -1
- package/build/types/resources/conversation_membership.js.map +1 -1
- package/build/utils/date.d.ts +1 -1
- package/build/utils/date.d.ts.map +1 -1
- package/build/utils/date.js +4 -4
- package/build/utils/date.js.map +1 -1
- package/build/utils/request/conversation.d.ts +1 -3
- package/build/utils/request/conversation.d.ts.map +1 -1
- package/build/utils/request/conversation.js +0 -4
- package/build/utils/request/conversation.js.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -1
- package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
- package/build/vendor/font_awesome_pro_solid_icons.js +0 -5
- package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +0 -6
- package/src/components/conversations/__tests__/conversation_actions.test.tsx +2 -77
- package/src/components/conversations/__tests__/conversation_preview.test.tsx +0 -29
- package/src/components/conversations/__tests__/conversations.test.tsx +0 -26
- package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +0 -17
- package/src/components/conversations/conversation_actions.tsx +4 -73
- package/src/components/conversations/conversation_preview.tsx +1 -12
- package/src/components/conversations/conversations.tsx +0 -9
- package/src/components/conversations/conversations_blank_state.tsx +0 -18
- package/src/components/group_conversation_list.tsx +1 -4
- package/src/contexts/conversations_context.tsx +1 -8
- package/src/hooks/__tests__/use_live_relative_time.test.tsx +22 -0
- package/src/hooks/use_api.ts +1 -2
- package/src/hooks/use_clear_conversation_filters.ts +0 -1
- package/src/hooks/use_conversation.ts +0 -1
- package/src/hooks/use_features.ts +0 -1
- package/src/hooks/use_live_relative_time.ts +1 -1
- package/src/navigation/index.tsx +0 -8
- package/src/screens/__tests__/conversation_details_screen.test.tsx +1 -49
- package/src/screens/conversation_details_screen.tsx +0 -19
- package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +0 -42
- package/src/screens/conversation_filters/components/conversation_filters.tsx +3 -22
- package/src/screens/conversation_filters/components/rows.tsx +10 -44
- package/src/screens/conversation_filters/context/conversation_filter_context.tsx +0 -4
- package/src/screens/conversation_filters/filter_types.ts +0 -1
- package/src/screens/conversation_filters/screen_props.ts +0 -1
- package/src/screens/conversations/__tests__/conversations_screen.test.tsx +0 -1
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -42
- package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +0 -1
- package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +5 -21
- package/src/screens/conversations/components/list_header_component.tsx +4 -14
- package/src/screens/conversations/components/search_list_header_component.tsx +4 -14
- package/src/screens/conversations/conversations_screen.tsx +0 -3
- package/src/screens/index.ts +0 -1
- package/src/types/resources/conversation_membership.ts +0 -1
- package/src/utils/__tests__/date.test.ts +10 -1
- package/src/utils/date.ts +4 -4
- package/src/utils/request/conversation.ts +0 -6
- package/src/vendor/font_awesome_pro_solid_icons.ts +0 -12
- package/build/components/conversations/hidden_indicator.d.ts +0 -4
- package/build/components/conversations/hidden_indicator.d.ts.map +0 -1
- package/build/components/conversations/hidden_indicator.js +0 -52
- package/build/components/conversations/hidden_indicator.js.map +0 -1
- package/build/components/conversations/hidden_results_footer.d.ts +0 -2
- package/build/components/conversations/hidden_results_footer.d.ts.map +0 -1
- package/build/components/conversations/hidden_results_footer.js +0 -34
- package/build/components/conversations/hidden_results_footer.js.map +0 -1
- package/build/components/display/toast.d.ts +0 -3
- package/build/components/display/toast.d.ts.map +0 -1
- package/build/components/display/toast.js +0 -224
- package/build/components/display/toast.js.map +0 -1
- package/build/hooks/use_hidden_conversations_count.d.ts +0 -2
- package/build/hooks/use_hidden_conversations_count.d.ts.map +0 -1
- package/build/hooks/use_hidden_conversations_count.js +0 -32
- package/build/hooks/use_hidden_conversations_count.js.map +0 -1
- package/build/hooks/use_hide_conversation.d.ts +0 -108
- package/build/hooks/use_hide_conversation.d.ts.map +0 -1
- package/build/hooks/use_hide_conversation.js +0 -243
- package/build/hooks/use_hide_conversation.js.map +0 -1
- package/build/hooks/use_hide_conversations_enabled.d.ts +0 -2
- package/build/hooks/use_hide_conversations_enabled.d.ts.map +0 -1
- package/build/hooks/use_hide_conversations_enabled.js +0 -18
- package/build/hooks/use_hide_conversations_enabled.js.map +0 -1
- package/build/screens/conversation_actions_screen.d.ts +0 -7
- package/build/screens/conversation_actions_screen.d.ts.map +0 -1
- package/build/screens/conversation_actions_screen.js +0 -89
- package/build/screens/conversation_actions_screen.js.map +0 -1
- package/build/utils/toast_store.d.ts +0 -21
- package/build/utils/toast_store.d.ts.map +0 -1
- package/build/utils/toast_store.js +0 -27
- package/build/utils/toast_store.js.map +0 -1
- package/src/components/conversations/hidden_indicator.tsx +0 -30
- package/src/components/conversations/hidden_results_footer.tsx +0 -25
- package/src/components/display/__tests__/toast.test.tsx +0 -55
- package/src/components/display/toast.tsx +0 -115
- package/src/hooks/__tests__/use_hide_conversation.test.tsx +0 -189
- package/src/hooks/use_hidden_conversations_count.ts +0 -14
- package/src/hooks/use_hide_conversation.ts +0 -128
- package/src/hooks/use_hide_conversations_enabled.ts +0 -7
- package/src/screens/__tests__/conversation_actions_screen.test.tsx +0 -79
- package/src/screens/conversation_actions_screen.tsx +0 -53
- package/src/utils/toast_store.ts +0 -45
|
@@ -9,8 +9,6 @@ import { useHeaderRight } from '../components/display/platform_modal_header_butt
|
|
|
9
9
|
import { useSuspensePaginator, useTheme } from '../hooks';
|
|
10
10
|
import { useConversation, useConversationArchive, useConversationDelete, useConversationDisableReplies, useConversationMute, useConversationUpdate } from '../hooks/use_conversation';
|
|
11
11
|
import { availableFeatures, useFeatures } from '../hooks/use_features';
|
|
12
|
-
import { useHideConversation } from '../hooks/use_hide_conversation';
|
|
13
|
-
import { useHideConversationsEnabled } from '../hooks/use_hide_conversations_enabled';
|
|
14
12
|
import { useManualArchivingEnabled } from '../hooks/use_manual_archiving_enabled';
|
|
15
13
|
import { usePreviewAvatarDiameter } from '../hooks/use_preview_avatar_diameter';
|
|
16
14
|
import { useUnarchiveConversationAction } from '../hooks/use_unarchive_conversation_action';
|
|
@@ -36,7 +34,7 @@ var SectionTypes = /*#__PURE__*/function (SectionTypes) {
|
|
|
36
34
|
// ====== Components ===============
|
|
37
35
|
// =================================
|
|
38
36
|
export function ConversationDetailsScreen(t0) {
|
|
39
|
-
const $ = _c(
|
|
37
|
+
const $ = _c(142);
|
|
40
38
|
const {
|
|
41
39
|
route
|
|
42
40
|
} = t0;
|
|
@@ -78,96 +76,79 @@ export function ConversationDetailsScreen(t0) {
|
|
|
78
76
|
const granularNotificationsEnabled = t1;
|
|
79
77
|
const customAvatarsEnabled = featureEnabled(availableFeatures.custom_conversation_avatars);
|
|
80
78
|
const manualArchivingEnabled = useManualArchivingEnabled();
|
|
81
|
-
const
|
|
79
|
+
const showGenderFilter = featureEnabled(availableFeatures.gender_specific_conversations) && !!conversation.genderOption;
|
|
80
|
+
const genderLabel = conversation.genderOption ? genderDisplayLabel(conversation.genderOption) : "";
|
|
82
81
|
let t2;
|
|
83
|
-
if ($[2] !==
|
|
82
|
+
if ($[2] !== conversation_id) {
|
|
84
83
|
t2 = {
|
|
85
|
-
|
|
84
|
+
conversation_id
|
|
86
85
|
};
|
|
87
|
-
$[2] =
|
|
86
|
+
$[2] = conversation_id;
|
|
88
87
|
$[3] = t2;
|
|
89
88
|
} else {
|
|
90
89
|
t2 = $[3];
|
|
91
90
|
}
|
|
92
91
|
const {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
} = useHideConversation(t2);
|
|
97
|
-
const showGenderFilter = featureEnabled(availableFeatures.gender_specific_conversations) && !!conversation.genderOption;
|
|
98
|
-
const genderLabel = conversation.genderOption ? genderDisplayLabel(conversation.genderOption) : "";
|
|
92
|
+
muted,
|
|
93
|
+
setMuted
|
|
94
|
+
} = useConversationMute(t2);
|
|
99
95
|
let t3;
|
|
100
|
-
if ($[4] !==
|
|
101
|
-
t3 =
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
$[4] = conversation_id;
|
|
96
|
+
if ($[4] !== title) {
|
|
97
|
+
t3 = title.trim();
|
|
98
|
+
$[4] = title;
|
|
105
99
|
$[5] = t3;
|
|
106
100
|
} else {
|
|
107
101
|
t3 = $[5];
|
|
108
102
|
}
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
} = useConversationMute(t3);
|
|
103
|
+
const trimmedTitle = t3;
|
|
104
|
+
const emptyTitle = trimmedTitle === "";
|
|
105
|
+
const notificationLevelDescription = conversation?.conversationMembership?.notificationLevelDescription;
|
|
113
106
|
let t4;
|
|
114
|
-
if ($[6] !==
|
|
115
|
-
t4 =
|
|
116
|
-
$[6] =
|
|
107
|
+
if ($[6] !== conversation) {
|
|
108
|
+
t4 = isArchivedConversation(conversation);
|
|
109
|
+
$[6] = conversation;
|
|
117
110
|
$[7] = t4;
|
|
118
111
|
} else {
|
|
119
112
|
t4 = $[7];
|
|
120
113
|
}
|
|
121
|
-
const
|
|
122
|
-
const emptyTitle = trimmedTitle === "";
|
|
123
|
-
const notificationLevelDescription = conversation?.conversationMembership?.notificationLevelDescription;
|
|
124
|
-
let t5;
|
|
125
|
-
if ($[8] !== conversation) {
|
|
126
|
-
t5 = isArchivedConversation(conversation);
|
|
127
|
-
$[8] = conversation;
|
|
128
|
-
$[9] = t5;
|
|
129
|
-
} else {
|
|
130
|
-
t5 = $[9];
|
|
131
|
-
}
|
|
132
|
-
const archived = t5;
|
|
114
|
+
const archived = t4;
|
|
133
115
|
const canUpdate = conversation.memberAbility?.canUpdate || false;
|
|
134
116
|
const canSaveTitle = canUpdate && !emptyTitle;
|
|
135
117
|
const canDelete = conversation.memberAbility?.canDelete || false;
|
|
136
118
|
const canArchive = manualArchivingEnabled && (conversation.memberAbility?.canArchive || false);
|
|
137
|
-
const canHide = hideConversationsEnabled && !archived;
|
|
138
119
|
const isLeader = conversation.memberAbility?.leader || false;
|
|
139
120
|
const isDisabled = conversation.disabled ?? false;
|
|
140
121
|
const showAdultRequirementNotice = isDisabled && conversation.disabledReason === "safety_check";
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
if ($[
|
|
144
|
-
|
|
122
|
+
const t5 = `/me/conversations/${route.params.conversation_id}/members`;
|
|
123
|
+
let t6;
|
|
124
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
125
|
+
t6 = {
|
|
145
126
|
include: ["person"],
|
|
146
127
|
fields: {
|
|
147
128
|
Member: ["avatar", "name", "first_name", "last_name", "child", "badges"]
|
|
148
129
|
},
|
|
149
130
|
order: "role_and_name"
|
|
150
131
|
};
|
|
151
|
-
$[
|
|
132
|
+
$[8] = t6;
|
|
152
133
|
} else {
|
|
153
|
-
|
|
134
|
+
t6 = $[8];
|
|
154
135
|
}
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
158
|
-
url:
|
|
159
|
-
data:
|
|
136
|
+
let t7;
|
|
137
|
+
if ($[9] !== t5) {
|
|
138
|
+
t7 = {
|
|
139
|
+
url: t5,
|
|
140
|
+
data: t6
|
|
160
141
|
};
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
142
|
+
$[9] = t5;
|
|
143
|
+
$[10] = t7;
|
|
163
144
|
} else {
|
|
164
|
-
|
|
145
|
+
t7 = $[10];
|
|
165
146
|
}
|
|
166
147
|
const {
|
|
167
148
|
data: members,
|
|
168
149
|
fetchNextPage: fetchNextPageOfMembers,
|
|
169
150
|
isFetchingNextPage: isLoadingMembers
|
|
170
|
-
} = useSuspensePaginator(
|
|
151
|
+
} = useSuspensePaginator(t7);
|
|
171
152
|
const memberSectionStyleMap = {
|
|
172
153
|
first: styles.sectionInnerFirstMember,
|
|
173
154
|
middle: styles.sectionInnerMiddleMiddle,
|
|
@@ -184,47 +165,47 @@ export function ConversationDetailsScreen(t0) {
|
|
|
184
165
|
sectionInnerStyle: memberSectionStyle
|
|
185
166
|
};
|
|
186
167
|
});
|
|
187
|
-
let
|
|
188
|
-
if ($[
|
|
189
|
-
|
|
168
|
+
let t8;
|
|
169
|
+
if ($[11] !== isLoadingMembers || $[12] !== styles.sectionInnerFirstMember) {
|
|
170
|
+
t8 = isLoadingMembers ? [{
|
|
190
171
|
type: SectionTypes.loadingMembers,
|
|
191
172
|
data: {},
|
|
192
173
|
sectionInnerStyle: styles.sectionInnerFirstMember
|
|
193
174
|
}] : [];
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
175
|
+
$[11] = isLoadingMembers;
|
|
176
|
+
$[12] = styles.sectionInnerFirstMember;
|
|
177
|
+
$[13] = t8;
|
|
178
|
+
} else {
|
|
179
|
+
t8 = $[13];
|
|
180
|
+
}
|
|
181
|
+
const loadingMemberItems = t8;
|
|
182
|
+
let t9;
|
|
183
|
+
if ($[14] !== members) {
|
|
184
|
+
t9 = members.filter(_temp);
|
|
185
|
+
$[14] = members;
|
|
196
186
|
$[15] = t9;
|
|
197
187
|
} else {
|
|
198
188
|
t9 = $[15];
|
|
199
189
|
}
|
|
200
|
-
const
|
|
190
|
+
const childMembers = t9;
|
|
191
|
+
const hasChildren = childMembers.length > 0;
|
|
201
192
|
let t10;
|
|
202
|
-
if ($[16] !==
|
|
203
|
-
t10 =
|
|
204
|
-
$[16] =
|
|
193
|
+
if ($[16] !== conversation.groups) {
|
|
194
|
+
t10 = conversation.groups?.filter(_temp2)?.filter(_temp3)?.filter(_temp4) || [];
|
|
195
|
+
$[16] = conversation.groups;
|
|
205
196
|
$[17] = t10;
|
|
206
197
|
} else {
|
|
207
198
|
t10 = $[17];
|
|
208
199
|
}
|
|
209
|
-
const
|
|
210
|
-
const hasChildren = childMembers.length > 0;
|
|
211
|
-
let t11;
|
|
212
|
-
if ($[18] !== conversation.groups) {
|
|
213
|
-
t11 = conversation.groups?.filter(_temp2)?.filter(_temp3)?.filter(_temp4) || [];
|
|
214
|
-
$[18] = conversation.groups;
|
|
215
|
-
$[19] = t11;
|
|
216
|
-
} else {
|
|
217
|
-
t11 = $[19];
|
|
218
|
-
}
|
|
219
|
-
const teamsGroup = t11;
|
|
200
|
+
const teamsGroup = t10;
|
|
220
201
|
const hasTeams = teamsGroup.length > 0;
|
|
221
202
|
const badge = conversation.badges?.[0];
|
|
222
203
|
const resourceType = badge?.pcoResourceType || "";
|
|
223
204
|
const productName = badge?.appName;
|
|
224
205
|
const name = badge?.text || undefined;
|
|
225
|
-
let
|
|
226
|
-
if ($[
|
|
227
|
-
|
|
206
|
+
let t11;
|
|
207
|
+
if ($[18] !== deleteConversation || $[19] !== navigation || $[20] !== title) {
|
|
208
|
+
t11 = () => {
|
|
228
209
|
Alert.alert("Delete conversation", `All messages in ${title} will be deleted for everyone. This action cannot be undone.`, [{
|
|
229
210
|
text: "Cancel",
|
|
230
211
|
style: "cancel"
|
|
@@ -237,17 +218,17 @@ export function ConversationDetailsScreen(t0) {
|
|
|
237
218
|
}
|
|
238
219
|
}]);
|
|
239
220
|
};
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
221
|
+
$[18] = deleteConversation;
|
|
222
|
+
$[19] = navigation;
|
|
223
|
+
$[20] = title;
|
|
224
|
+
$[21] = t11;
|
|
244
225
|
} else {
|
|
245
|
-
|
|
226
|
+
t11 = $[21];
|
|
246
227
|
}
|
|
247
|
-
const handleDelete =
|
|
248
|
-
let
|
|
249
|
-
if ($[
|
|
250
|
-
|
|
228
|
+
const handleDelete = t11;
|
|
229
|
+
let t12;
|
|
230
|
+
if ($[22] !== setArchived) {
|
|
231
|
+
t12 = () => {
|
|
251
232
|
Alert.alert("Archive conversation", "This conversation will be archived for everyone. Only its leaders and creator can open and unarchive it.", [{
|
|
252
233
|
text: "Cancel",
|
|
253
234
|
style: "cancel"
|
|
@@ -256,31 +237,15 @@ export function ConversationDetailsScreen(t0) {
|
|
|
256
237
|
onPress: () => setArchived(true)
|
|
257
238
|
}]);
|
|
258
239
|
};
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
} else {
|
|
262
|
-
t13 = $[25];
|
|
263
|
-
}
|
|
264
|
-
const handleArchive = t13;
|
|
265
|
-
let t14;
|
|
266
|
-
if ($[26] !== hidden || $[27] !== navigation || $[28] !== setHidden) {
|
|
267
|
-
t14 = () => {
|
|
268
|
-
setHidden(!hidden);
|
|
269
|
-
if (!hidden) {
|
|
270
|
-
navigation.dispatch(StackActions.popToTop());
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
$[26] = hidden;
|
|
274
|
-
$[27] = navigation;
|
|
275
|
-
$[28] = setHidden;
|
|
276
|
-
$[29] = t14;
|
|
240
|
+
$[22] = setArchived;
|
|
241
|
+
$[23] = t12;
|
|
277
242
|
} else {
|
|
278
|
-
|
|
243
|
+
t12 = $[23];
|
|
279
244
|
}
|
|
280
|
-
const
|
|
281
|
-
let
|
|
282
|
-
if ($[
|
|
283
|
-
|
|
245
|
+
const handleArchive = t12;
|
|
246
|
+
let t13;
|
|
247
|
+
if ($[24] !== name || $[25] !== productName || $[26] !== resourceType || $[27] !== styles.headerTitleBadge || $[28] !== styles.headerTitleContainer) {
|
|
248
|
+
t13 = props => /*#__PURE__*/_jsxs(View, {
|
|
284
249
|
style: styles.headerTitleContainer,
|
|
285
250
|
children: [/*#__PURE__*/_jsx(ElementsHeaderTitle, {
|
|
286
251
|
maxFontSizeMultiplier: 1,
|
|
@@ -294,19 +259,19 @@ export function ConversationDetailsScreen(t0) {
|
|
|
294
259
|
maxFontSizeMultiplier: 1
|
|
295
260
|
})]
|
|
296
261
|
});
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
262
|
+
$[24] = name;
|
|
263
|
+
$[25] = productName;
|
|
264
|
+
$[26] = resourceType;
|
|
265
|
+
$[27] = styles.headerTitleBadge;
|
|
266
|
+
$[28] = styles.headerTitleContainer;
|
|
267
|
+
$[29] = t13;
|
|
303
268
|
} else {
|
|
304
|
-
|
|
269
|
+
t13 = $[29];
|
|
305
270
|
}
|
|
306
|
-
const HeaderTitle =
|
|
307
|
-
let
|
|
308
|
-
if ($[
|
|
309
|
-
|
|
271
|
+
const HeaderTitle = t13;
|
|
272
|
+
let t14;
|
|
273
|
+
if ($[30] !== canSaveTitle || $[31] !== navigation || $[32] !== saveTitle || $[33] !== trimmedTitle) {
|
|
274
|
+
t14 = {
|
|
310
275
|
icon: "general.check",
|
|
311
276
|
accessibilityLabel: "Done",
|
|
312
277
|
onPress: () => {
|
|
@@ -318,100 +283,100 @@ export function ConversationDetailsScreen(t0) {
|
|
|
318
283
|
navigation.goBack();
|
|
319
284
|
}
|
|
320
285
|
};
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
286
|
+
$[30] = canSaveTitle;
|
|
287
|
+
$[31] = navigation;
|
|
288
|
+
$[32] = saveTitle;
|
|
289
|
+
$[33] = trimmedTitle;
|
|
290
|
+
$[34] = t14;
|
|
326
291
|
} else {
|
|
327
|
-
|
|
292
|
+
t14 = $[34];
|
|
328
293
|
}
|
|
329
|
-
useHeaderRight(
|
|
330
|
-
let
|
|
331
|
-
let
|
|
332
|
-
if ($[
|
|
333
|
-
|
|
294
|
+
useHeaderRight(t14);
|
|
295
|
+
let t15;
|
|
296
|
+
let t16;
|
|
297
|
+
if ($[35] !== HeaderTitle || $[36] !== navigation) {
|
|
298
|
+
t15 = () => {
|
|
334
299
|
navigation.setOptions({
|
|
335
300
|
headerTitle: HeaderTitle
|
|
336
301
|
});
|
|
337
302
|
};
|
|
338
|
-
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
303
|
+
t16 = [HeaderTitle, navigation];
|
|
304
|
+
$[35] = HeaderTitle;
|
|
305
|
+
$[36] = navigation;
|
|
306
|
+
$[37] = t15;
|
|
307
|
+
$[38] = t16;
|
|
343
308
|
} else {
|
|
344
|
-
|
|
345
|
-
|
|
309
|
+
t15 = $[37];
|
|
310
|
+
t16 = $[38];
|
|
346
311
|
}
|
|
347
|
-
useEffect(
|
|
348
|
-
const
|
|
349
|
-
let
|
|
350
|
-
if ($[
|
|
351
|
-
|
|
312
|
+
useEffect(t15, t16);
|
|
313
|
+
const t17 = canUpdate && customAvatarsEnabled ? SectionTypes.view : SectionTypes.hidden;
|
|
314
|
+
let t18;
|
|
315
|
+
if ($[39] !== conversation_id || $[40] !== navigation) {
|
|
316
|
+
t18 = () => navigation.navigate("AvatarPicker", {
|
|
352
317
|
conversation_id
|
|
353
318
|
});
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
356
|
-
$[
|
|
319
|
+
$[39] = conversation_id;
|
|
320
|
+
$[40] = navigation;
|
|
321
|
+
$[41] = t18;
|
|
357
322
|
} else {
|
|
358
|
-
|
|
323
|
+
t18 = $[41];
|
|
359
324
|
}
|
|
360
|
-
let
|
|
361
|
-
if ($[
|
|
362
|
-
|
|
325
|
+
let t19;
|
|
326
|
+
if ($[42] !== conversation || $[43] !== t18) {
|
|
327
|
+
t19 = {
|
|
363
328
|
children: /*#__PURE__*/_jsx(AvatarCard, {
|
|
364
329
|
conversation: conversation,
|
|
365
|
-
onPress:
|
|
330
|
+
onPress: t18
|
|
366
331
|
})
|
|
367
332
|
};
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
333
|
+
$[42] = conversation;
|
|
334
|
+
$[43] = t18;
|
|
335
|
+
$[44] = t19;
|
|
371
336
|
} else {
|
|
372
|
-
|
|
337
|
+
t19 = $[44];
|
|
373
338
|
}
|
|
374
|
-
let
|
|
375
|
-
if ($[
|
|
376
|
-
|
|
377
|
-
type:
|
|
378
|
-
data:
|
|
339
|
+
let t20;
|
|
340
|
+
if ($[45] !== styles.sectionInnerAvatarCard || $[46] !== styles.sectionOuterAvatarCard || $[47] !== t17 || $[48] !== t19) {
|
|
341
|
+
t20 = {
|
|
342
|
+
type: t17,
|
|
343
|
+
data: t19,
|
|
379
344
|
sectionOuterStyle: styles.sectionOuterAvatarCard,
|
|
380
345
|
sectionInnerStyle: styles.sectionInnerAvatarCard
|
|
381
346
|
};
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
347
|
+
$[45] = styles.sectionInnerAvatarCard;
|
|
348
|
+
$[46] = styles.sectionOuterAvatarCard;
|
|
349
|
+
$[47] = t17;
|
|
350
|
+
$[48] = t19;
|
|
351
|
+
$[49] = t20;
|
|
387
352
|
} else {
|
|
388
|
-
|
|
353
|
+
t20 = $[49];
|
|
389
354
|
}
|
|
390
|
-
let
|
|
391
|
-
if ($[
|
|
392
|
-
|
|
355
|
+
let t21;
|
|
356
|
+
if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
|
|
357
|
+
t21 = {
|
|
393
358
|
title: "Basic info"
|
|
394
359
|
};
|
|
395
|
-
$[
|
|
360
|
+
$[50] = t21;
|
|
396
361
|
} else {
|
|
397
|
-
|
|
362
|
+
t21 = $[50];
|
|
398
363
|
}
|
|
399
|
-
let
|
|
400
|
-
if ($[
|
|
401
|
-
|
|
364
|
+
let t22;
|
|
365
|
+
if ($[51] !== styles.sectionInnerHeaderWithBottomBorder) {
|
|
366
|
+
t22 = {
|
|
402
367
|
type: SectionTypes.header,
|
|
403
|
-
data:
|
|
368
|
+
data: t21,
|
|
404
369
|
showBottomBorder: true,
|
|
405
370
|
sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
|
|
406
371
|
};
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
372
|
+
$[51] = styles.sectionInnerHeaderWithBottomBorder;
|
|
373
|
+
$[52] = t22;
|
|
409
374
|
} else {
|
|
410
|
-
|
|
375
|
+
t22 = $[52];
|
|
411
376
|
}
|
|
412
|
-
let
|
|
413
|
-
if ($[
|
|
414
|
-
|
|
377
|
+
let t23;
|
|
378
|
+
if ($[53] !== canUpdate || $[54] !== emptyTitle || $[55] !== title) {
|
|
379
|
+
t23 = {
|
|
415
380
|
children: /*#__PURE__*/_jsx(TitleInput, {
|
|
416
381
|
canUpdate: canUpdate,
|
|
417
382
|
title: title,
|
|
@@ -419,51 +384,51 @@ export function ConversationDetailsScreen(t0) {
|
|
|
419
384
|
isEmpty: emptyTitle
|
|
420
385
|
})
|
|
421
386
|
};
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
387
|
+
$[53] = canUpdate;
|
|
388
|
+
$[54] = emptyTitle;
|
|
389
|
+
$[55] = title;
|
|
390
|
+
$[56] = t23;
|
|
426
391
|
} else {
|
|
427
|
-
|
|
392
|
+
t23 = $[56];
|
|
428
393
|
}
|
|
429
|
-
let
|
|
430
|
-
if ($[
|
|
431
|
-
|
|
394
|
+
let t24;
|
|
395
|
+
if ($[57] !== styles.sectionInnerTitleInput || $[58] !== t23) {
|
|
396
|
+
t24 = {
|
|
432
397
|
type: SectionTypes.view,
|
|
433
|
-
data:
|
|
398
|
+
data: t23,
|
|
434
399
|
sectionInnerStyle: styles.sectionInnerTitleInput
|
|
435
400
|
};
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
401
|
+
$[57] = styles.sectionInnerTitleInput;
|
|
402
|
+
$[58] = t23;
|
|
403
|
+
$[59] = t24;
|
|
439
404
|
} else {
|
|
440
|
-
|
|
405
|
+
t24 = $[59];
|
|
441
406
|
}
|
|
442
|
-
let
|
|
443
|
-
if ($[
|
|
444
|
-
|
|
407
|
+
let t25;
|
|
408
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
409
|
+
t25 = {
|
|
445
410
|
title: "Settings"
|
|
446
411
|
};
|
|
447
|
-
$[
|
|
412
|
+
$[60] = t25;
|
|
448
413
|
} else {
|
|
449
|
-
|
|
414
|
+
t25 = $[60];
|
|
450
415
|
}
|
|
451
|
-
let
|
|
452
|
-
if ($[
|
|
453
|
-
|
|
416
|
+
let t26;
|
|
417
|
+
if ($[61] !== styles.sectionInnerHeaderWithBottomBorder) {
|
|
418
|
+
t26 = {
|
|
454
419
|
type: SectionTypes.header,
|
|
455
|
-
data:
|
|
420
|
+
data: t25,
|
|
456
421
|
showBottomBorder: true,
|
|
457
422
|
sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
|
|
458
423
|
};
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
424
|
+
$[61] = styles.sectionInnerHeaderWithBottomBorder;
|
|
425
|
+
$[62] = t26;
|
|
461
426
|
} else {
|
|
462
|
-
|
|
427
|
+
t26 = $[62];
|
|
463
428
|
}
|
|
464
|
-
let
|
|
465
|
-
if ($[
|
|
466
|
-
|
|
429
|
+
let t27;
|
|
430
|
+
if ($[63] !== archived || $[64] !== conversation || $[65] !== conversation_id || $[66] !== granularNotificationsEnabled || $[67] !== muted || $[68] !== navigation || $[69] !== notificationLevelDescription || $[70] !== setMuted || $[71] !== styles.unarchiveButton || $[72] !== unarchiveAction) {
|
|
431
|
+
t27 = archived ? {
|
|
467
432
|
type: SectionTypes.view,
|
|
468
433
|
data: {
|
|
469
434
|
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
@@ -502,316 +467,285 @@ export function ConversationDetailsScreen(t0) {
|
|
|
502
467
|
},
|
|
503
468
|
showBottomBorder: true
|
|
504
469
|
};
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
$[
|
|
510
|
-
$[
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
} else {
|
|
517
|
-
|
|
518
|
-
}
|
|
519
|
-
const
|
|
520
|
-
let
|
|
521
|
-
if ($[
|
|
522
|
-
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
470
|
+
$[63] = archived;
|
|
471
|
+
$[64] = conversation;
|
|
472
|
+
$[65] = conversation_id;
|
|
473
|
+
$[66] = granularNotificationsEnabled;
|
|
474
|
+
$[67] = muted;
|
|
475
|
+
$[68] = navigation;
|
|
476
|
+
$[69] = notificationLevelDescription;
|
|
477
|
+
$[70] = setMuted;
|
|
478
|
+
$[71] = styles.unarchiveButton;
|
|
479
|
+
$[72] = unarchiveAction;
|
|
480
|
+
$[73] = t27;
|
|
481
|
+
} else {
|
|
482
|
+
t27 = $[73];
|
|
483
|
+
}
|
|
484
|
+
const t28 = canUpdate ? SectionTypes.setting : SectionTypes.hidden;
|
|
485
|
+
let t29;
|
|
486
|
+
if ($[74] !== repliesDisabled || $[75] !== setRepliesDisabled) {
|
|
487
|
+
t29 = () => setRepliesDisabled(!repliesDisabled);
|
|
488
|
+
$[74] = repliesDisabled;
|
|
489
|
+
$[75] = setRepliesDisabled;
|
|
490
|
+
$[76] = t29;
|
|
526
491
|
} else {
|
|
527
|
-
|
|
492
|
+
t29 = $[76];
|
|
528
493
|
}
|
|
529
|
-
let
|
|
530
|
-
if ($[
|
|
531
|
-
|
|
494
|
+
let t30;
|
|
495
|
+
if ($[77] !== repliesDisabled || $[78] !== t29) {
|
|
496
|
+
t30 = {
|
|
532
497
|
title: "Only leaders can message",
|
|
533
498
|
rightItem: /*#__PURE__*/_jsx(Switch, {
|
|
534
499
|
value: repliesDisabled,
|
|
535
|
-
onChange:
|
|
500
|
+
onChange: t29
|
|
536
501
|
})
|
|
537
502
|
};
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
503
|
+
$[77] = repliesDisabled;
|
|
504
|
+
$[78] = t29;
|
|
505
|
+
$[79] = t30;
|
|
541
506
|
} else {
|
|
542
|
-
|
|
507
|
+
t30 = $[79];
|
|
543
508
|
}
|
|
544
|
-
let
|
|
545
|
-
if ($[
|
|
546
|
-
|
|
547
|
-
type:
|
|
548
|
-
data:
|
|
509
|
+
let t31;
|
|
510
|
+
if ($[80] !== t28 || $[81] !== t30) {
|
|
511
|
+
t31 = {
|
|
512
|
+
type: t28,
|
|
513
|
+
data: t30,
|
|
549
514
|
showBottomBorder: true
|
|
550
515
|
};
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
553
|
-
$[
|
|
554
|
-
} else {
|
|
555
|
-
t33 = $[88];
|
|
556
|
-
}
|
|
557
|
-
const t34 = canHide ? SectionTypes.setting : SectionTypes.hidden;
|
|
558
|
-
const t35 = hidden ? "Unhide conversation" : "Hide conversation";
|
|
559
|
-
let t36;
|
|
560
|
-
if ($[89] !== handleHide || $[90] !== isHidePending || $[91] !== t35) {
|
|
561
|
-
t36 = {
|
|
562
|
-
title: t35,
|
|
563
|
-
disabled: isHidePending,
|
|
564
|
-
onPress: handleHide
|
|
565
|
-
};
|
|
566
|
-
$[89] = handleHide;
|
|
567
|
-
$[90] = isHidePending;
|
|
568
|
-
$[91] = t35;
|
|
569
|
-
$[92] = t36;
|
|
570
|
-
} else {
|
|
571
|
-
t36 = $[92];
|
|
572
|
-
}
|
|
573
|
-
const t37 = canArchive || canDelete;
|
|
574
|
-
let t38;
|
|
575
|
-
if ($[93] !== t34 || $[94] !== t36 || $[95] !== t37) {
|
|
576
|
-
t38 = {
|
|
577
|
-
type: t34,
|
|
578
|
-
data: t36,
|
|
579
|
-
showBottomBorder: t37
|
|
580
|
-
};
|
|
581
|
-
$[93] = t34;
|
|
582
|
-
$[94] = t36;
|
|
583
|
-
$[95] = t37;
|
|
584
|
-
$[96] = t38;
|
|
516
|
+
$[80] = t28;
|
|
517
|
+
$[81] = t30;
|
|
518
|
+
$[82] = t31;
|
|
585
519
|
} else {
|
|
586
|
-
|
|
520
|
+
t31 = $[82];
|
|
587
521
|
}
|
|
588
|
-
const
|
|
589
|
-
let
|
|
590
|
-
if ($[
|
|
591
|
-
|
|
522
|
+
const t32 = canArchive ? SectionTypes.setting : SectionTypes.hidden;
|
|
523
|
+
let t33;
|
|
524
|
+
if ($[83] !== handleArchive || $[84] !== isArchiving) {
|
|
525
|
+
t33 = {
|
|
592
526
|
title: "Archive conversation\u2026",
|
|
593
527
|
disabled: isArchiving,
|
|
594
528
|
onPress: handleArchive
|
|
595
529
|
};
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
530
|
+
$[83] = handleArchive;
|
|
531
|
+
$[84] = isArchiving;
|
|
532
|
+
$[85] = t33;
|
|
599
533
|
} else {
|
|
600
|
-
|
|
534
|
+
t33 = $[85];
|
|
601
535
|
}
|
|
602
|
-
let
|
|
603
|
-
if ($[
|
|
604
|
-
|
|
605
|
-
type:
|
|
606
|
-
data:
|
|
536
|
+
let t34;
|
|
537
|
+
if ($[86] !== canDelete || $[87] !== t32 || $[88] !== t33) {
|
|
538
|
+
t34 = {
|
|
539
|
+
type: t32,
|
|
540
|
+
data: t33,
|
|
607
541
|
showBottomBorder: canDelete
|
|
608
542
|
};
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
543
|
+
$[86] = canDelete;
|
|
544
|
+
$[87] = t32;
|
|
545
|
+
$[88] = t33;
|
|
546
|
+
$[89] = t34;
|
|
613
547
|
} else {
|
|
614
|
-
|
|
548
|
+
t34 = $[89];
|
|
615
549
|
}
|
|
616
|
-
const
|
|
617
|
-
let
|
|
618
|
-
if ($[
|
|
619
|
-
|
|
550
|
+
const t35 = canDelete ? SectionTypes.setting : SectionTypes.hidden;
|
|
551
|
+
let t36;
|
|
552
|
+
if ($[90] !== handleDelete || $[91] !== styles.deleteButtonText) {
|
|
553
|
+
t36 = {
|
|
620
554
|
title: "Delete conversation\u2026",
|
|
621
555
|
buttonTextStyle: styles.deleteButtonText,
|
|
622
556
|
appearance: "danger",
|
|
623
557
|
onPress: handleDelete
|
|
624
558
|
};
|
|
625
|
-
$[
|
|
626
|
-
$[
|
|
627
|
-
$[
|
|
559
|
+
$[90] = handleDelete;
|
|
560
|
+
$[91] = styles.deleteButtonText;
|
|
561
|
+
$[92] = t36;
|
|
628
562
|
} else {
|
|
629
|
-
|
|
563
|
+
t36 = $[92];
|
|
630
564
|
}
|
|
631
|
-
let
|
|
632
|
-
if ($[
|
|
633
|
-
|
|
634
|
-
type:
|
|
635
|
-
data:
|
|
565
|
+
let t37;
|
|
566
|
+
if ($[93] !== t35 || $[94] !== t36) {
|
|
567
|
+
t37 = {
|
|
568
|
+
type: t35,
|
|
569
|
+
data: t36
|
|
636
570
|
};
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
571
|
+
$[93] = t35;
|
|
572
|
+
$[94] = t36;
|
|
573
|
+
$[95] = t37;
|
|
640
574
|
} else {
|
|
641
|
-
|
|
575
|
+
t37 = $[95];
|
|
642
576
|
}
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
if ($[
|
|
646
|
-
|
|
577
|
+
const t38 = hasTeams ? SectionTypes.header : SectionTypes.hidden;
|
|
578
|
+
let t39;
|
|
579
|
+
if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
|
|
580
|
+
t39 = {
|
|
647
581
|
title: "Teams"
|
|
648
582
|
};
|
|
649
|
-
$[
|
|
583
|
+
$[96] = t39;
|
|
650
584
|
} else {
|
|
651
|
-
|
|
585
|
+
t39 = $[96];
|
|
652
586
|
}
|
|
653
|
-
let
|
|
654
|
-
if ($[
|
|
655
|
-
|
|
656
|
-
type:
|
|
657
|
-
data:
|
|
587
|
+
let t40;
|
|
588
|
+
if ($[97] !== styles.sectionInnerHeader || $[98] !== t38) {
|
|
589
|
+
t40 = {
|
|
590
|
+
type: t38,
|
|
591
|
+
data: t39,
|
|
658
592
|
sectionInnerStyle: styles.sectionInnerHeader
|
|
659
593
|
};
|
|
660
|
-
$[
|
|
661
|
-
$[
|
|
662
|
-
$[
|
|
594
|
+
$[97] = styles.sectionInnerHeader;
|
|
595
|
+
$[98] = t38;
|
|
596
|
+
$[99] = t40;
|
|
663
597
|
} else {
|
|
664
|
-
|
|
598
|
+
t40 = $[99];
|
|
665
599
|
}
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
if ($[
|
|
669
|
-
|
|
600
|
+
const t41 = hasTeams ? SectionTypes.view : SectionTypes.hidden;
|
|
601
|
+
let t42;
|
|
602
|
+
if ($[100] !== teamsGroup) {
|
|
603
|
+
t42 = {
|
|
670
604
|
children: /*#__PURE__*/_jsx(TeamsGroup, {
|
|
671
605
|
teams: teamsGroup
|
|
672
606
|
})
|
|
673
607
|
};
|
|
674
|
-
$[
|
|
675
|
-
$[
|
|
608
|
+
$[100] = teamsGroup;
|
|
609
|
+
$[101] = t42;
|
|
676
610
|
} else {
|
|
677
|
-
|
|
611
|
+
t42 = $[101];
|
|
678
612
|
}
|
|
679
|
-
let
|
|
680
|
-
if ($[
|
|
681
|
-
|
|
682
|
-
type:
|
|
683
|
-
data:
|
|
613
|
+
let t43;
|
|
614
|
+
if ($[102] !== t41 || $[103] !== t42) {
|
|
615
|
+
t43 = {
|
|
616
|
+
type: t41,
|
|
617
|
+
data: t42
|
|
684
618
|
};
|
|
685
|
-
$[
|
|
686
|
-
$[
|
|
687
|
-
$[
|
|
619
|
+
$[102] = t41;
|
|
620
|
+
$[103] = t42;
|
|
621
|
+
$[104] = t43;
|
|
688
622
|
} else {
|
|
689
|
-
|
|
623
|
+
t43 = $[104];
|
|
690
624
|
}
|
|
691
|
-
const
|
|
625
|
+
const t44 = showGenderFilter ? /*#__PURE__*/_jsx(Badge, {
|
|
692
626
|
label: `${genderLabel}-only`
|
|
693
627
|
}) : undefined;
|
|
694
|
-
let
|
|
695
|
-
if ($[
|
|
696
|
-
|
|
628
|
+
let t45;
|
|
629
|
+
if ($[105] !== t44) {
|
|
630
|
+
t45 = {
|
|
697
631
|
title: "People",
|
|
698
|
-
badge:
|
|
632
|
+
badge: t44
|
|
699
633
|
};
|
|
700
|
-
$[
|
|
701
|
-
$[
|
|
634
|
+
$[105] = t44;
|
|
635
|
+
$[106] = t45;
|
|
702
636
|
} else {
|
|
703
|
-
|
|
637
|
+
t45 = $[106];
|
|
704
638
|
}
|
|
705
|
-
let
|
|
706
|
-
if ($[
|
|
707
|
-
|
|
639
|
+
let t46;
|
|
640
|
+
if ($[107] !== styles.sectionInnerHeader || $[108] !== t45) {
|
|
641
|
+
t46 = {
|
|
708
642
|
type: SectionTypes.header,
|
|
709
|
-
data:
|
|
643
|
+
data: t45,
|
|
710
644
|
sectionInnerStyle: styles.sectionInnerHeader
|
|
711
645
|
};
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
646
|
+
$[107] = styles.sectionInnerHeader;
|
|
647
|
+
$[108] = t45;
|
|
648
|
+
$[109] = t46;
|
|
715
649
|
} else {
|
|
716
|
-
|
|
650
|
+
t46 = $[109];
|
|
717
651
|
}
|
|
718
|
-
const
|
|
719
|
-
const
|
|
720
|
-
let
|
|
721
|
-
if ($[
|
|
722
|
-
|
|
652
|
+
const t47 = showGenderFilter ? SectionTypes.view : SectionTypes.hidden;
|
|
653
|
+
const t48 = genderLabel.toLowerCase();
|
|
654
|
+
let t49;
|
|
655
|
+
if ($[110] !== t48) {
|
|
656
|
+
t49 = {
|
|
723
657
|
children: /*#__PURE__*/_jsxs(Text, {
|
|
724
658
|
variant: "tertiary",
|
|
725
|
-
children: ["This conversation will be automatically updated if any ",
|
|
659
|
+
children: ["This conversation will be automatically updated if any ", t48, " are added or removed from this group."]
|
|
726
660
|
})
|
|
727
661
|
};
|
|
728
|
-
$[
|
|
729
|
-
$[
|
|
662
|
+
$[110] = t48;
|
|
663
|
+
$[111] = t49;
|
|
730
664
|
} else {
|
|
731
|
-
|
|
665
|
+
t49 = $[111];
|
|
732
666
|
}
|
|
733
|
-
let
|
|
734
|
-
if ($[
|
|
735
|
-
|
|
736
|
-
type:
|
|
737
|
-
data:
|
|
667
|
+
let t50;
|
|
668
|
+
if ($[112] !== styles.sectionInnerGenderNotice || $[113] !== t47 || $[114] !== t49) {
|
|
669
|
+
t50 = {
|
|
670
|
+
type: t47,
|
|
671
|
+
data: t49,
|
|
738
672
|
sectionInnerStyle: styles.sectionInnerGenderNotice
|
|
739
673
|
};
|
|
740
|
-
$[
|
|
741
|
-
$[
|
|
742
|
-
$[
|
|
743
|
-
$[
|
|
674
|
+
$[112] = styles.sectionInnerGenderNotice;
|
|
675
|
+
$[113] = t47;
|
|
676
|
+
$[114] = t49;
|
|
677
|
+
$[115] = t50;
|
|
744
678
|
} else {
|
|
745
|
-
|
|
679
|
+
t50 = $[115];
|
|
746
680
|
}
|
|
747
|
-
const
|
|
748
|
-
let
|
|
749
|
-
if ($[
|
|
750
|
-
|
|
681
|
+
const t51 = showAdultRequirementNotice ? SectionTypes.view : SectionTypes.hidden;
|
|
682
|
+
let t52;
|
|
683
|
+
if ($[116] === Symbol.for("react.memo_cache_sentinel")) {
|
|
684
|
+
t52 = {
|
|
751
685
|
children: /*#__PURE__*/_jsx(AdultRequirementNotice, {})
|
|
752
686
|
};
|
|
753
|
-
$[
|
|
687
|
+
$[116] = t52;
|
|
754
688
|
} else {
|
|
755
|
-
|
|
689
|
+
t52 = $[116];
|
|
756
690
|
}
|
|
757
|
-
let
|
|
758
|
-
if ($[
|
|
759
|
-
|
|
760
|
-
type:
|
|
761
|
-
data:
|
|
691
|
+
let t53;
|
|
692
|
+
if ($[117] !== styles.sectionInnerNotice || $[118] !== t51) {
|
|
693
|
+
t53 = {
|
|
694
|
+
type: t51,
|
|
695
|
+
data: t52,
|
|
762
696
|
sectionInnerStyle: styles.sectionInnerNotice
|
|
763
697
|
};
|
|
764
|
-
$[
|
|
765
|
-
$[
|
|
766
|
-
$[
|
|
698
|
+
$[117] = styles.sectionInnerNotice;
|
|
699
|
+
$[118] = t51;
|
|
700
|
+
$[119] = t53;
|
|
767
701
|
} else {
|
|
768
|
-
|
|
702
|
+
t53 = $[119];
|
|
769
703
|
}
|
|
770
|
-
const
|
|
771
|
-
let
|
|
772
|
-
if ($[
|
|
773
|
-
|
|
704
|
+
const t54 = hasChildren && isLeader ? SectionTypes.view : SectionTypes.hidden;
|
|
705
|
+
let t55;
|
|
706
|
+
if ($[120] !== childMembers) {
|
|
707
|
+
t55 = {
|
|
774
708
|
children: /*#__PURE__*/_jsx(ChildNotice, {
|
|
775
709
|
childMembers: childMembers
|
|
776
710
|
})
|
|
777
711
|
};
|
|
778
|
-
$[
|
|
779
|
-
$[
|
|
712
|
+
$[120] = childMembers;
|
|
713
|
+
$[121] = t55;
|
|
780
714
|
} else {
|
|
781
|
-
|
|
715
|
+
t55 = $[121];
|
|
782
716
|
}
|
|
783
|
-
let
|
|
784
|
-
if ($[
|
|
785
|
-
|
|
786
|
-
type:
|
|
787
|
-
data:
|
|
717
|
+
let t56;
|
|
718
|
+
if ($[122] !== styles.sectionInnerNotice || $[123] !== t54 || $[124] !== t55) {
|
|
719
|
+
t56 = {
|
|
720
|
+
type: t54,
|
|
721
|
+
data: t55,
|
|
788
722
|
sectionInnerStyle: styles.sectionInnerNotice
|
|
789
723
|
};
|
|
790
|
-
$[
|
|
791
|
-
$[
|
|
792
|
-
$[
|
|
793
|
-
$[
|
|
794
|
-
} else {
|
|
795
|
-
|
|
796
|
-
}
|
|
797
|
-
const listData = [t22, t24, t26,
|
|
798
|
-
let
|
|
799
|
-
if ($[
|
|
800
|
-
|
|
801
|
-
$[
|
|
802
|
-
$[
|
|
803
|
-
} else {
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
const headerIndices =
|
|
807
|
-
const
|
|
808
|
-
let
|
|
809
|
-
if ($[
|
|
810
|
-
|
|
724
|
+
$[122] = styles.sectionInnerNotice;
|
|
725
|
+
$[123] = t54;
|
|
726
|
+
$[124] = t55;
|
|
727
|
+
$[125] = t56;
|
|
728
|
+
} else {
|
|
729
|
+
t56 = $[125];
|
|
730
|
+
}
|
|
731
|
+
const listData = [t20, t22, t24, t26, t27, t31, t34, t37, t40, t43, t46, t50, t53, t56, ...memberItems, ...loadingMemberItems].filter(_temp5);
|
|
732
|
+
let t57;
|
|
733
|
+
if ($[126] !== listData) {
|
|
734
|
+
t57 = listData.map(_temp6).filter(isDefined);
|
|
735
|
+
$[126] = listData;
|
|
736
|
+
$[127] = t57;
|
|
737
|
+
} else {
|
|
738
|
+
t57 = $[127];
|
|
739
|
+
}
|
|
740
|
+
const headerIndices = t57;
|
|
741
|
+
const t58 = listData;
|
|
742
|
+
let t59;
|
|
743
|
+
if ($[128] !== headerIndices || $[129] !== listData.length || $[130] !== styles.sectionHeaderRow) {
|
|
744
|
+
t59 = t60 => {
|
|
811
745
|
const {
|
|
812
746
|
item: item_0,
|
|
813
747
|
index: index_1
|
|
814
|
-
} =
|
|
748
|
+
} = t60;
|
|
815
749
|
const [isStart, isEnd] = [index_1 === 0 || headerIndices.includes(index_1), index_1 === listData.length - 1 || headerIndices.includes(index_1 + 1)];
|
|
816
750
|
switch (item_0.type) {
|
|
817
751
|
case SectionTypes.header:
|
|
@@ -908,51 +842,51 @@ export function ConversationDetailsScreen(t0) {
|
|
|
908
842
|
}
|
|
909
843
|
}
|
|
910
844
|
};
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
$[
|
|
845
|
+
$[128] = headerIndices;
|
|
846
|
+
$[129] = listData.length;
|
|
847
|
+
$[130] = styles.sectionHeaderRow;
|
|
848
|
+
$[131] = t59;
|
|
915
849
|
} else {
|
|
916
|
-
|
|
850
|
+
t59 = $[131];
|
|
917
851
|
}
|
|
918
|
-
let
|
|
919
|
-
if ($[
|
|
920
|
-
|
|
921
|
-
$[
|
|
922
|
-
$[
|
|
852
|
+
let t60;
|
|
853
|
+
if ($[132] !== fetchNextPageOfMembers) {
|
|
854
|
+
t60 = () => fetchNextPageOfMembers();
|
|
855
|
+
$[132] = fetchNextPageOfMembers;
|
|
856
|
+
$[133] = t60;
|
|
923
857
|
} else {
|
|
924
|
-
|
|
858
|
+
t60 = $[133];
|
|
925
859
|
}
|
|
926
|
-
let
|
|
927
|
-
if ($[
|
|
928
|
-
|
|
860
|
+
let t61;
|
|
861
|
+
if ($[134] !== styles.contentContainer || $[135] !== t58 || $[136] !== t59 || $[137] !== t60) {
|
|
862
|
+
t61 = /*#__PURE__*/_jsx(FlatList, {
|
|
929
863
|
contentInsetAdjustmentBehavior: "automatic",
|
|
930
|
-
data:
|
|
864
|
+
data: t58,
|
|
931
865
|
contentContainerStyle: styles.contentContainer,
|
|
932
|
-
renderItem:
|
|
933
|
-
onEndReached:
|
|
866
|
+
renderItem: t59,
|
|
867
|
+
onEndReached: t60
|
|
934
868
|
});
|
|
935
|
-
$[
|
|
936
|
-
$[
|
|
937
|
-
$[
|
|
938
|
-
$[
|
|
939
|
-
$[
|
|
869
|
+
$[134] = styles.contentContainer;
|
|
870
|
+
$[135] = t58;
|
|
871
|
+
$[136] = t59;
|
|
872
|
+
$[137] = t60;
|
|
873
|
+
$[138] = t61;
|
|
940
874
|
} else {
|
|
941
|
-
|
|
875
|
+
t61 = $[138];
|
|
942
876
|
}
|
|
943
|
-
let
|
|
944
|
-
if ($[
|
|
945
|
-
|
|
877
|
+
let t62;
|
|
878
|
+
if ($[139] !== styles.listContainer || $[140] !== t61) {
|
|
879
|
+
t62 = /*#__PURE__*/_jsx(View, {
|
|
946
880
|
style: styles.listContainer,
|
|
947
|
-
children:
|
|
881
|
+
children: t61
|
|
948
882
|
});
|
|
949
|
-
$[
|
|
950
|
-
$[
|
|
951
|
-
$[
|
|
883
|
+
$[139] = styles.listContainer;
|
|
884
|
+
$[140] = t61;
|
|
885
|
+
$[141] = t62;
|
|
952
886
|
} else {
|
|
953
|
-
|
|
887
|
+
t62 = $[141];
|
|
954
888
|
}
|
|
955
|
-
return
|
|
889
|
+
return t62;
|
|
956
890
|
}
|
|
957
891
|
function _temp6(t0, index_0) {
|
|
958
892
|
const {
|