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