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