@planningcenter/chat-react-native 4.4.1-qa-staging.13 → 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.
Files changed (104) hide show
  1. package/build/components/conversation/message.d.ts +2 -1
  2. package/build/components/conversation/message.d.ts.map +1 -1
  3. package/build/components/conversation/message.js +3 -1
  4. package/build/components/conversation/message.js.map +1 -1
  5. package/build/components/conversation/message_list.d.ts.map +1 -1
  6. package/build/components/conversation/message_list.js +35 -31
  7. package/build/components/conversation/message_list.js.map +1 -1
  8. package/build/components/conversation/message_reaction.d.ts +2 -1
  9. package/build/components/conversation/message_reaction.d.ts.map +1 -1
  10. package/build/components/conversation/message_reaction.js +67 -60
  11. package/build/components/conversation/message_reaction.js.map +1 -1
  12. package/build/components/conversation/messages_disabled_banners.d.ts +7 -5
  13. package/build/components/conversation/messages_disabled_banners.d.ts.map +1 -1
  14. package/build/components/conversation/messages_disabled_banners.js +15 -14
  15. package/build/components/conversation/messages_disabled_banners.js.map +1 -1
  16. package/build/components/conversation/system_message.d.ts +2 -1
  17. package/build/components/conversation/system_message.d.ts.map +1 -1
  18. package/build/components/conversation/system_message.js +87 -65
  19. package/build/components/conversation/system_message.js.map +1 -1
  20. package/build/components/display/filter_dropdown.d.ts +13 -0
  21. package/build/components/display/filter_dropdown.d.ts.map +1 -0
  22. package/build/components/display/filter_dropdown.js +188 -0
  23. package/build/components/display/filter_dropdown.js.map +1 -0
  24. package/build/components/display/index.d.ts +1 -0
  25. package/build/components/display/index.d.ts.map +1 -1
  26. package/build/components/display/index.js +1 -0
  27. package/build/components/display/index.js.map +1 -1
  28. package/build/hooks/use_conversation.d.ts +73 -1
  29. package/build/hooks/use_conversation.d.ts.map +1 -1
  30. package/build/hooks/use_conversation.js +122 -3
  31. package/build/hooks/use_conversation.js.map +1 -1
  32. package/build/hooks/use_unarchive_conversation_action.d.ts +7 -0
  33. package/build/hooks/use_unarchive_conversation_action.d.ts.map +1 -0
  34. package/build/hooks/use_unarchive_conversation_action.js +52 -0
  35. package/build/hooks/use_unarchive_conversation_action.js.map +1 -0
  36. package/build/screens/attachment_actions/attachment_actions_screen.d.ts.map +1 -1
  37. package/build/screens/attachment_actions/attachment_actions_screen.js +84 -61
  38. package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
  39. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  40. package/build/screens/conversation_details_screen.js +487 -393
  41. package/build/screens/conversation_details_screen.js.map +1 -1
  42. package/build/screens/conversation_screen.d.ts.map +1 -1
  43. package/build/screens/conversation_screen.js +12 -9
  44. package/build/screens/conversation_screen.js.map +1 -1
  45. package/build/screens/design_system_screen.d.ts.map +1 -1
  46. package/build/screens/design_system_screen.js +275 -215
  47. package/build/screens/design_system_screen.js.map +1 -1
  48. package/build/screens/message_actions_screen.d.ts.map +1 -1
  49. package/build/screens/message_actions_screen.js +112 -92
  50. package/build/screens/message_actions_screen.js.map +1 -1
  51. package/build/types/resources/member_ability.d.ts +2 -0
  52. package/build/types/resources/member_ability.d.ts.map +1 -1
  53. package/build/types/resources/member_ability.js.map +1 -1
  54. package/build/utils/archived_conversation.d.ts +5 -0
  55. package/build/utils/archived_conversation.d.ts.map +1 -0
  56. package/build/utils/archived_conversation.js +5 -0
  57. package/build/utils/archived_conversation.js.map +1 -0
  58. package/build/utils/index.d.ts +1 -0
  59. package/build/utils/index.d.ts.map +1 -1
  60. package/build/utils/index.js +1 -0
  61. package/build/utils/index.js.map +1 -1
  62. package/build/utils/native_adapters/configuration.d.ts +3 -0
  63. package/build/utils/native_adapters/configuration.d.ts.map +1 -1
  64. package/build/utils/native_adapters/configuration.js +3 -0
  65. package/build/utils/native_adapters/configuration.js.map +1 -1
  66. package/build/utils/native_adapters/index.d.ts +1 -0
  67. package/build/utils/native_adapters/index.d.ts.map +1 -1
  68. package/build/utils/native_adapters/index.js +1 -0
  69. package/build/utils/native_adapters/index.js.map +1 -1
  70. package/build/utils/native_adapters/menu.d.ts +40 -0
  71. package/build/utils/native_adapters/menu.d.ts.map +1 -0
  72. package/build/utils/native_adapters/menu.js +55 -0
  73. package/build/utils/native_adapters/menu.js.map +1 -0
  74. package/package.json +3 -3
  75. package/src/__tests__/screens/message_actions_screen.test.tsx +65 -2
  76. package/src/components/conversation/__tests__/message_list.test.tsx +68 -2
  77. package/src/components/conversation/__tests__/system_message.test.tsx +3 -1
  78. package/src/components/conversation/message.tsx +3 -0
  79. package/src/components/conversation/message_list.tsx +9 -1
  80. package/src/components/conversation/message_reaction.tsx +7 -2
  81. package/src/components/conversation/messages_disabled_banners.tsx +17 -18
  82. package/src/components/conversation/system_message.tsx +24 -10
  83. package/src/components/display/__tests__/filter_dropdown.test.tsx +106 -0
  84. package/src/components/display/filter_dropdown.tsx +123 -0
  85. package/src/components/display/index.ts +1 -0
  86. package/src/hooks/__tests__/use_conversation_archive.test.tsx +130 -0
  87. package/src/hooks/__tests__/use_conversation_jolt_events.test.tsx +74 -0
  88. package/src/hooks/__tests__/use_unarchive_conversation_action.test.tsx +67 -0
  89. package/src/hooks/use_conversation.ts +41 -3
  90. package/src/hooks/use_unarchive_conversation_action.ts +24 -0
  91. package/src/screens/__tests__/conversation_details_screen.test.tsx +289 -0
  92. package/src/screens/attachment_actions/__tests__/attachment_actions_screen.test.tsx +72 -0
  93. package/src/screens/attachment_actions/attachment_actions_screen.tsx +3 -1
  94. package/src/screens/conversation_details_screen.tsx +78 -14
  95. package/src/screens/conversation_screen.tsx +3 -1
  96. package/src/screens/design_system_screen.tsx +26 -0
  97. package/src/screens/message_actions_screen.tsx +29 -20
  98. package/src/types/resources/member_ability.ts +2 -0
  99. package/src/utils/archived_conversation.ts +13 -0
  100. package/src/utils/index.ts +1 -0
  101. package/src/utils/native_adapters/__tests__/menu.test.tsx +42 -0
  102. package/src/utils/native_adapters/configuration.ts +5 -0
  103. package/src/utils/native_adapters/index.ts +1 -0
  104. 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(127);
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 t4 = `/me/conversations/${route.params.conversation_id}/members`;
103
- let t5;
104
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
105
- t5 = {
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
- $[6] = t5;
129
+ $[8] = t6;
112
130
  } else {
113
- t5 = $[6];
131
+ t6 = $[8];
114
132
  }
115
- let t6;
116
- if ($[7] !== t4) {
117
- t6 = {
118
- url: t4,
119
- data: t5
133
+ let t7;
134
+ if ($[9] !== t5) {
135
+ t7 = {
136
+ url: t5,
137
+ data: t6
120
138
  };
121
- $[7] = t4;
122
- $[8] = t6;
139
+ $[9] = t5;
140
+ $[10] = t7;
123
141
  } else {
124
- t6 = $[8];
142
+ t7 = $[10];
125
143
  }
126
144
  const {
127
145
  data: members,
128
146
  fetchNextPage: fetchNextPageOfMembers,
129
147
  isFetchingNextPage: isLoadingMembers
130
- } = useSuspensePaginator(t6);
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 t7;
148
- if ($[9] !== isLoadingMembers || $[10] !== styles.sectionInnerFirstMember) {
149
- t7 = isLoadingMembers ? [{
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
- $[9] = isLoadingMembers;
155
- $[10] = styles.sectionInnerFirstMember;
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 childMembers = t8;
170
- const hasChildren = childMembers.length > 0;
178
+ const loadingMemberItems = t8;
171
179
  let t9;
172
- if ($[14] !== conversation.groups) {
173
- t9 = conversation.groups?.filter(_temp2)?.filter(_temp3)?.filter(_temp4) || [];
174
- $[14] = conversation.groups;
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 teamsGroup = t9;
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 t10;
186
- if ($[16] !== deleteConversation || $[17] !== navigation || $[18] !== title) {
187
- t10 = () => {
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
- $[16] = deleteConversation;
201
- $[17] = navigation;
202
- $[18] = title;
203
- $[19] = t10;
218
+ $[18] = deleteConversation;
219
+ $[19] = navigation;
220
+ $[20] = title;
221
+ $[21] = t11;
204
222
  } else {
205
- t10 = $[19];
223
+ t11 = $[21];
206
224
  }
207
- const handleDelete = t10;
208
- let t11;
209
- if ($[20] !== name || $[21] !== productName || $[22] !== resourceType || $[23] !== styles.headerTitleBadge || $[24] !== styles.headerTitleContainer) {
210
- t11 = props => /*#__PURE__*/_jsxs(View, {
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
- $[20] = name;
225
- $[21] = productName;
226
- $[22] = resourceType;
227
- $[23] = styles.headerTitleBadge;
228
- $[24] = styles.headerTitleContainer;
229
- $[25] = t11;
259
+ $[24] = name;
260
+ $[25] = productName;
261
+ $[26] = resourceType;
262
+ $[27] = styles.headerTitleBadge;
263
+ $[28] = styles.headerTitleContainer;
264
+ $[29] = t13;
230
265
  } else {
231
- t11 = $[25];
266
+ t13 = $[29];
232
267
  }
233
- const HeaderTitle = t11;
234
- let t12;
235
- if ($[26] !== conversation.title || $[27] !== navigation || $[28] !== saveTitle || $[29] !== trimmedTitle) {
236
- t12 = {
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
- saveTitle({
241
- title: trimmedTitle || conversation.title
242
- });
275
+ if (canUpdate) {
276
+ saveTitle({
277
+ title: trimmedTitle || conversation.title
278
+ });
279
+ }
243
280
  navigation.goBack();
244
281
  }
245
282
  };
246
- $[26] = conversation.title;
247
- $[27] = navigation;
248
- $[28] = saveTitle;
249
- $[29] = trimmedTitle;
250
- $[30] = t12;
283
+ $[30] = canUpdate;
284
+ $[31] = conversation.title;
285
+ $[32] = navigation;
286
+ $[33] = saveTitle;
287
+ $[34] = trimmedTitle;
288
+ $[35] = t14;
251
289
  } else {
252
- t12 = $[30];
290
+ t14 = $[35];
253
291
  }
254
- useHeaderRight(t12);
255
- let t13;
256
- let t14;
257
- if ($[31] !== HeaderTitle || $[32] !== navigation) {
258
- t13 = () => {
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
- t14 = [HeaderTitle, navigation];
264
- $[31] = HeaderTitle;
265
- $[32] = navigation;
266
- $[33] = t13;
267
- $[34] = t14;
301
+ t16 = [HeaderTitle, navigation];
302
+ $[36] = HeaderTitle;
303
+ $[37] = navigation;
304
+ $[38] = t15;
305
+ $[39] = t16;
268
306
  } else {
269
- t13 = $[33];
270
- t14 = $[34];
307
+ t15 = $[38];
308
+ t16 = $[39];
271
309
  }
272
- useEffect(t13, t14);
273
- const t15 = canUpdate && customAvatarsEnabled ? SectionTypes.view : SectionTypes.hidden;
274
- let t16;
275
- if ($[35] !== conversation_id || $[36] !== navigation) {
276
- t16 = () => navigation.navigate("AvatarPicker", {
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
- $[35] = conversation_id;
280
- $[36] = navigation;
281
- $[37] = t16;
317
+ $[40] = conversation_id;
318
+ $[41] = navigation;
319
+ $[42] = t18;
282
320
  } else {
283
- t16 = $[37];
321
+ t18 = $[42];
284
322
  }
285
- let t17;
286
- if ($[38] !== conversation || $[39] !== t16) {
287
- t17 = {
323
+ let t19;
324
+ if ($[43] !== conversation || $[44] !== t18) {
325
+ t19 = {
288
326
  children: /*#__PURE__*/_jsx(AvatarCard, {
289
327
  conversation: conversation,
290
- onPress: t16
328
+ onPress: t18
291
329
  })
292
330
  };
293
- $[38] = conversation;
294
- $[39] = t16;
295
- $[40] = t17;
331
+ $[43] = conversation;
332
+ $[44] = t18;
333
+ $[45] = t19;
296
334
  } else {
297
- t17 = $[40];
335
+ t19 = $[45];
298
336
  }
299
- let t18;
300
- if ($[41] !== styles.sectionInnerAvatarCard || $[42] !== styles.sectionOuterAvatarCard || $[43] !== t15 || $[44] !== t17) {
301
- t18 = {
302
- type: t15,
303
- data: t17,
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
- $[41] = styles.sectionInnerAvatarCard;
308
- $[42] = styles.sectionOuterAvatarCard;
309
- $[43] = t15;
310
- $[44] = t17;
311
- $[45] = t18;
345
+ $[46] = styles.sectionInnerAvatarCard;
346
+ $[47] = styles.sectionOuterAvatarCard;
347
+ $[48] = t17;
348
+ $[49] = t19;
349
+ $[50] = t20;
312
350
  } else {
313
- t18 = $[45];
351
+ t20 = $[50];
314
352
  }
315
- let t19;
316
- if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
317
- t19 = {
353
+ let t21;
354
+ if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
355
+ t21 = {
318
356
  title: "Basic info"
319
357
  };
320
- $[46] = t19;
358
+ $[51] = t21;
321
359
  } else {
322
- t19 = $[46];
360
+ t21 = $[51];
323
361
  }
324
- let t20;
325
- if ($[47] !== styles.sectionInnerHeaderWithBottomBorder) {
326
- t20 = {
362
+ let t22;
363
+ if ($[52] !== styles.sectionInnerHeaderWithBottomBorder) {
364
+ t22 = {
327
365
  type: SectionTypes.header,
328
- data: t19,
366
+ data: t21,
329
367
  showBottomBorder: true,
330
368
  sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
331
369
  };
332
- $[47] = styles.sectionInnerHeaderWithBottomBorder;
333
- $[48] = t20;
370
+ $[52] = styles.sectionInnerHeaderWithBottomBorder;
371
+ $[53] = t22;
334
372
  } else {
335
- t20 = $[48];
373
+ t22 = $[53];
336
374
  }
337
- let t21;
338
- if ($[49] !== canUpdate || $[50] !== emptyTitle || $[51] !== title) {
339
- t21 = {
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
- $[49] = canUpdate;
348
- $[50] = emptyTitle;
349
- $[51] = title;
350
- $[52] = t21;
385
+ $[54] = canUpdate;
386
+ $[55] = emptyTitle;
387
+ $[56] = title;
388
+ $[57] = t23;
351
389
  } else {
352
- t21 = $[52];
390
+ t23 = $[57];
353
391
  }
354
- let t22;
355
- if ($[53] !== styles.sectionInnerTitleInput || $[54] !== t21) {
356
- t22 = {
392
+ let t24;
393
+ if ($[58] !== styles.sectionInnerTitleInput || $[59] !== t23) {
394
+ t24 = {
357
395
  type: SectionTypes.view,
358
- data: t21,
396
+ data: t23,
359
397
  sectionInnerStyle: styles.sectionInnerTitleInput
360
398
  };
361
- $[53] = styles.sectionInnerTitleInput;
362
- $[54] = t21;
363
- $[55] = t22;
399
+ $[58] = styles.sectionInnerTitleInput;
400
+ $[59] = t23;
401
+ $[60] = t24;
364
402
  } else {
365
- t22 = $[55];
403
+ t24 = $[60];
366
404
  }
367
- let t23;
368
- if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
369
- t23 = {
405
+ let t25;
406
+ if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
407
+ t25 = {
370
408
  title: "Settings"
371
409
  };
372
- $[56] = t23;
410
+ $[61] = t25;
373
411
  } else {
374
- t23 = $[56];
412
+ t25 = $[61];
375
413
  }
376
- let t24;
377
- if ($[57] !== styles.sectionInnerHeaderWithBottomBorder) {
378
- t24 = {
414
+ let t26;
415
+ if ($[62] !== styles.sectionInnerHeaderWithBottomBorder) {
416
+ t26 = {
379
417
  type: SectionTypes.header,
380
- data: t23,
418
+ data: t25,
381
419
  showBottomBorder: true,
382
420
  sectionInnerStyle: styles.sectionInnerHeaderWithBottomBorder
383
421
  };
384
- $[57] = styles.sectionInnerHeaderWithBottomBorder;
385
- $[58] = t24;
422
+ $[62] = styles.sectionInnerHeaderWithBottomBorder;
423
+ $[63] = t26;
386
424
  } else {
387
- t24 = $[58];
425
+ t26 = $[63];
388
426
  }
389
- let t25;
390
- if ($[59] !== conversation_id || $[60] !== granularNotificationsEnabled || $[61] !== muted || $[62] !== navigation || $[63] !== notificationLevelDescription || $[64] !== setMuted) {
391
- t25 = granularNotificationsEnabled ? {
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
- $[59] = conversation_id;
413
- $[60] = granularNotificationsEnabled;
414
- $[61] = muted;
415
- $[62] = navigation;
416
- $[63] = notificationLevelDescription;
417
- $[64] = setMuted;
418
- $[65] = t25;
419
- } else {
420
- t25 = $[65];
421
- }
422
- const t26 = canUpdate ? SectionTypes.setting : SectionTypes.hidden;
423
- let t27;
424
- if ($[66] !== repliesDisabled || $[67] !== setRepliesDisabled) {
425
- t27 = () => setRepliesDisabled(!repliesDisabled);
426
- $[66] = repliesDisabled;
427
- $[67] = setRepliesDisabled;
428
- $[68] = t27;
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
- t27 = $[68];
490
+ t29 = $[77];
431
491
  }
432
- let t28;
433
- if ($[69] !== repliesDisabled || $[70] !== t27) {
434
- t28 = {
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: t27
498
+ onChange: t29
439
499
  })
440
500
  };
441
- $[69] = repliesDisabled;
442
- $[70] = t27;
443
- $[71] = t28;
501
+ $[78] = repliesDisabled;
502
+ $[79] = t29;
503
+ $[80] = t30;
444
504
  } else {
445
- t28 = $[71];
505
+ t30 = $[80];
446
506
  }
447
- let t29;
448
- if ($[72] !== t26 || $[73] !== t28) {
449
- t29 = {
450
- type: t26,
451
- data: t28,
507
+ let t31;
508
+ if ($[81] !== t28 || $[82] !== t30) {
509
+ t31 = {
510
+ type: t28,
511
+ data: t30,
452
512
  showBottomBorder: true
453
513
  };
454
- $[72] = t26;
455
- $[73] = t28;
456
- $[74] = t29;
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
- t29 = $[74];
532
+ t33 = $[86];
459
533
  }
460
- const t30 = canDelete ? SectionTypes.setting : SectionTypes.hidden;
461
- let t31;
462
- if ($[75] !== handleDelete || $[76] !== styles.deleteButtonText) {
463
- t31 = {
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
- $[75] = handleDelete;
470
- $[76] = styles.deleteButtonText;
471
- $[77] = t31;
557
+ $[91] = handleDelete;
558
+ $[92] = styles.deleteButtonText;
559
+ $[93] = t36;
472
560
  } else {
473
- t31 = $[77];
561
+ t36 = $[93];
474
562
  }
475
- let t32;
476
- if ($[78] !== t30 || $[79] !== t31) {
477
- t32 = {
478
- type: t30,
479
- data: t31
563
+ let t37;
564
+ if ($[94] !== t35 || $[95] !== t36) {
565
+ t37 = {
566
+ type: t35,
567
+ data: t36
480
568
  };
481
- $[78] = t30;
482
- $[79] = t31;
483
- $[80] = t32;
569
+ $[94] = t35;
570
+ $[95] = t36;
571
+ $[96] = t37;
484
572
  } else {
485
- t32 = $[80];
573
+ t37 = $[96];
486
574
  }
487
- const t33 = hasTeams ? SectionTypes.header : SectionTypes.hidden;
488
- let t34;
489
- if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
490
- t34 = {
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
- $[81] = t34;
581
+ $[97] = t39;
494
582
  } else {
495
- t34 = $[81];
583
+ t39 = $[97];
496
584
  }
497
- let t35;
498
- if ($[82] !== styles.sectionInnerHeader || $[83] !== t33) {
499
- t35 = {
500
- type: t33,
501
- data: t34,
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
- $[82] = styles.sectionInnerHeader;
505
- $[83] = t33;
506
- $[84] = t35;
592
+ $[98] = styles.sectionInnerHeader;
593
+ $[99] = t38;
594
+ $[100] = t40;
507
595
  } else {
508
- t35 = $[84];
596
+ t40 = $[100];
509
597
  }
510
- const t36 = hasTeams ? SectionTypes.view : SectionTypes.hidden;
511
- let t37;
512
- if ($[85] !== teamsGroup) {
513
- t37 = {
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
- $[85] = teamsGroup;
519
- $[86] = t37;
606
+ $[101] = teamsGroup;
607
+ $[102] = t42;
520
608
  } else {
521
- t37 = $[86];
609
+ t42 = $[102];
522
610
  }
523
- let t38;
524
- if ($[87] !== t36 || $[88] !== t37) {
525
- t38 = {
526
- type: t36,
527
- data: t37
611
+ let t43;
612
+ if ($[103] !== t41 || $[104] !== t42) {
613
+ t43 = {
614
+ type: t41,
615
+ data: t42
528
616
  };
529
- $[87] = t36;
530
- $[88] = t37;
531
- $[89] = t38;
617
+ $[103] = t41;
618
+ $[104] = t42;
619
+ $[105] = t43;
532
620
  } else {
533
- t38 = $[89];
621
+ t43 = $[105];
534
622
  }
535
- const t39 = showGenderFilter ? /*#__PURE__*/_jsx(Badge, {
623
+ const t44 = showGenderFilter ? /*#__PURE__*/_jsx(Badge, {
536
624
  label: `${genderLabel}-only`
537
625
  }) : undefined;
538
- let t40;
539
- if ($[90] !== t39) {
540
- t40 = {
626
+ let t45;
627
+ if ($[106] !== t44) {
628
+ t45 = {
541
629
  title: "People",
542
- badge: t39
630
+ badge: t44
543
631
  };
544
- $[90] = t39;
545
- $[91] = t40;
632
+ $[106] = t44;
633
+ $[107] = t45;
546
634
  } else {
547
- t40 = $[91];
635
+ t45 = $[107];
548
636
  }
549
- let t41;
550
- if ($[92] !== styles.sectionInnerHeader || $[93] !== t40) {
551
- t41 = {
637
+ let t46;
638
+ if ($[108] !== styles.sectionInnerHeader || $[109] !== t45) {
639
+ t46 = {
552
640
  type: SectionTypes.header,
553
- data: t40,
641
+ data: t45,
554
642
  sectionInnerStyle: styles.sectionInnerHeader
555
643
  };
556
- $[92] = styles.sectionInnerHeader;
557
- $[93] = t40;
558
- $[94] = t41;
644
+ $[108] = styles.sectionInnerHeader;
645
+ $[109] = t45;
646
+ $[110] = t46;
559
647
  } else {
560
- t41 = $[94];
648
+ t46 = $[110];
561
649
  }
562
- const t42 = showGenderFilter ? SectionTypes.view : SectionTypes.hidden;
563
- const t43 = genderLabel.toLowerCase();
564
- let t44;
565
- if ($[95] !== t43) {
566
- t44 = {
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 ", t43, " are added or removed from this group."]
657
+ children: ["This conversation will be automatically updated if any ", t48, " are added or removed from this group."]
570
658
  })
571
659
  };
572
- $[95] = t43;
573
- $[96] = t44;
660
+ $[111] = t48;
661
+ $[112] = t49;
574
662
  } else {
575
- t44 = $[96];
663
+ t49 = $[112];
576
664
  }
577
- let t45;
578
- if ($[97] !== styles.sectionInnerGenderNotice || $[98] !== t42 || $[99] !== t44) {
579
- t45 = {
580
- type: t42,
581
- data: t44,
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
- $[97] = styles.sectionInnerGenderNotice;
585
- $[98] = t42;
586
- $[99] = t44;
587
- $[100] = t45;
672
+ $[113] = styles.sectionInnerGenderNotice;
673
+ $[114] = t47;
674
+ $[115] = t49;
675
+ $[116] = t50;
588
676
  } else {
589
- t45 = $[100];
677
+ t50 = $[116];
590
678
  }
591
- const t46 = showAdultRequirementNotice ? SectionTypes.view : SectionTypes.hidden;
592
- let t47;
593
- if ($[101] === Symbol.for("react.memo_cache_sentinel")) {
594
- t47 = {
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
- $[101] = t47;
685
+ $[117] = t52;
598
686
  } else {
599
- t47 = $[101];
687
+ t52 = $[117];
600
688
  }
601
- let t48;
602
- if ($[102] !== styles.sectionInnerNotice || $[103] !== t46) {
603
- t48 = {
604
- type: t46,
605
- data: t47,
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
- $[102] = styles.sectionInnerNotice;
609
- $[103] = t46;
610
- $[104] = t48;
696
+ $[118] = styles.sectionInnerNotice;
697
+ $[119] = t51;
698
+ $[120] = t53;
611
699
  } else {
612
- t48 = $[104];
700
+ t53 = $[120];
613
701
  }
614
- const t49 = hasChildren && isLeader ? SectionTypes.view : SectionTypes.hidden;
615
- let t50;
616
- if ($[105] !== childMembers) {
617
- t50 = {
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
- $[105] = childMembers;
623
- $[106] = t50;
710
+ $[121] = childMembers;
711
+ $[122] = t55;
624
712
  } else {
625
- t50 = $[106];
713
+ t55 = $[122];
626
714
  }
627
- let t51;
628
- if ($[107] !== styles.sectionInnerNotice || $[108] !== t49 || $[109] !== t50) {
629
- t51 = {
630
- type: t49,
631
- data: t50,
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
- $[107] = styles.sectionInnerNotice;
635
- $[108] = t49;
636
- $[109] = t50;
637
- $[110] = t51;
722
+ $[123] = styles.sectionInnerNotice;
723
+ $[124] = t54;
724
+ $[125] = t55;
725
+ $[126] = t56;
638
726
  } else {
639
- t51 = $[110];
727
+ t56 = $[126];
640
728
  }
641
- const listData = [t18, t20, t22, t24, t25, t29, t32, t35, t38, t41, t45, t48, t51, ...memberItems, ...loadingMemberItems].filter(_temp5);
642
- let t52;
643
- if ($[111] !== listData) {
644
- t52 = listData.map(_temp6).filter(isDefined);
645
- $[111] = listData;
646
- $[112] = t52;
647
- } else {
648
- t52 = $[112];
649
- }
650
- const headerIndices = t52;
651
- const t53 = listData;
652
- let t54;
653
- if ($[113] !== headerIndices || $[114] !== listData.length || $[115] !== styles.sectionHeaderRow) {
654
- t54 = t55 => {
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
- } = t55;
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
- $[113] = headerIndices;
756
- $[114] = listData.length;
757
- $[115] = styles.sectionHeaderRow;
758
- $[116] = t54;
843
+ $[129] = headerIndices;
844
+ $[130] = listData.length;
845
+ $[131] = styles.sectionHeaderRow;
846
+ $[132] = t59;
759
847
  } else {
760
- t54 = $[116];
848
+ t59 = $[132];
761
849
  }
762
- let t55;
763
- if ($[117] !== fetchNextPageOfMembers) {
764
- t55 = () => fetchNextPageOfMembers();
765
- $[117] = fetchNextPageOfMembers;
766
- $[118] = t55;
850
+ let t60;
851
+ if ($[133] !== fetchNextPageOfMembers) {
852
+ t60 = () => fetchNextPageOfMembers();
853
+ $[133] = fetchNextPageOfMembers;
854
+ $[134] = t60;
767
855
  } else {
768
- t55 = $[118];
856
+ t60 = $[134];
769
857
  }
770
- let t56;
771
- if ($[119] !== styles.contentContainer || $[120] !== t53 || $[121] !== t54 || $[122] !== t55) {
772
- t56 = /*#__PURE__*/_jsx(FlatList, {
773
- data: t53,
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: t54,
776
- onEndReached: t55
863
+ renderItem: t59,
864
+ onEndReached: t60
777
865
  });
778
- $[119] = styles.contentContainer;
779
- $[120] = t53;
780
- $[121] = t54;
781
- $[122] = t55;
782
- $[123] = t56;
866
+ $[135] = styles.contentContainer;
867
+ $[136] = t58;
868
+ $[137] = t59;
869
+ $[138] = t60;
870
+ $[139] = t61;
783
871
  } else {
784
- t56 = $[123];
872
+ t61 = $[139];
785
873
  }
786
- let t57;
787
- if ($[124] !== styles.listContainer || $[125] !== t56) {
788
- t57 = /*#__PURE__*/_jsx(View, {
874
+ let t62;
875
+ if ($[140] !== styles.listContainer || $[141] !== t61) {
876
+ t62 = /*#__PURE__*/_jsx(View, {
789
877
  style: styles.listContainer,
790
- children: t56
878
+ children: t61
791
879
  });
792
- $[124] = styles.listContainer;
793
- $[125] = t56;
794
- $[126] = t57;
880
+ $[140] = styles.listContainer;
881
+ $[141] = t61;
882
+ $[142] = t62;
795
883
  } else {
796
- t57 = $[126];
884
+ t62 = $[142];
797
885
  }
798
- return t57;
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(37);
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] !== onPress || $[12] !== t7 || $[13] !== title) {
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] = onPress;
1103
- $[12] = t7;
1104
- $[13] = title;
1105
- $[14] = t8;
1192
+ $[11] = disabled;
1193
+ $[12] = onPress;
1194
+ $[13] = t7;
1195
+ $[14] = title;
1196
+ $[15] = t8;
1106
1197
  } else {
1107
- t8 = $[14];
1198
+ t8 = $[15];
1108
1199
  }
1109
1200
  return t8;
1110
1201
  }
1111
1202
  let t7;
1112
- if ($[15] !== style || $[16] !== styles.settingRow) {
1203
+ if ($[16] !== style || $[17] !== styles.settingRow) {
1113
1204
  t7 = [styles.settingRow, style];
1114
- $[15] = style;
1115
- $[16] = styles.settingRow;
1116
- $[17] = t7;
1205
+ $[16] = style;
1206
+ $[17] = styles.settingRow;
1207
+ $[18] = t7;
1117
1208
  } else {
1118
- t7 = $[17];
1209
+ t7 = $[18];
1119
1210
  }
1120
1211
  let t8;
1121
- if ($[18] !== styles.settingRowText || $[19] !== titleStyle) {
1212
+ if ($[19] !== styles.settingRowText || $[20] !== titleStyle) {
1122
1213
  t8 = [styles.settingRowText, titleStyle];
1123
- $[18] = styles.settingRowText;
1124
- $[19] = titleStyle;
1125
- $[20] = t8;
1214
+ $[19] = styles.settingRowText;
1215
+ $[20] = titleStyle;
1216
+ $[21] = t8;
1126
1217
  } else {
1127
- t8 = $[20];
1218
+ t8 = $[21];
1128
1219
  }
1129
1220
  let t9;
1130
- if ($[21] !== t8 || $[22] !== title) {
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
- $[21] = t8;
1137
- $[22] = title;
1138
- $[23] = t9;
1227
+ $[22] = t8;
1228
+ $[23] = title;
1229
+ $[24] = t9;
1139
1230
  } else {
1140
- t9 = $[23];
1231
+ t9 = $[24];
1141
1232
  }
1142
1233
  let t10;
1143
- if ($[24] !== subtitle) {
1234
+ if ($[25] !== subtitle) {
1144
1235
  t10 = Boolean(subtitle) && /*#__PURE__*/_jsx(Text, {
1145
1236
  variant: "footnote",
1146
1237
  children: subtitle
1147
1238
  });
1148
- $[24] = subtitle;
1149
- $[25] = t10;
1239
+ $[25] = subtitle;
1240
+ $[26] = t10;
1150
1241
  } else {
1151
- t10 = $[25];
1242
+ t10 = $[26];
1152
1243
  }
1153
1244
  let t11;
1154
- if ($[26] !== styles.settingRowContent || $[27] !== t10 || $[28] !== t9) {
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
- $[26] = styles.settingRowContent;
1160
- $[27] = t10;
1161
- $[28] = t9;
1162
- $[29] = t11;
1250
+ $[27] = styles.settingRowContent;
1251
+ $[28] = t10;
1252
+ $[29] = t9;
1253
+ $[30] = t11;
1163
1254
  } else {
1164
- t11 = $[29];
1255
+ t11 = $[30];
1165
1256
  }
1166
1257
  let t12;
1167
- if ($[30] !== rightItem || $[31] !== rightItemStyle) {
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
- $[30] = rightItem;
1173
- $[31] = rightItemStyle;
1174
- $[32] = t12;
1263
+ $[31] = rightItem;
1264
+ $[32] = rightItemStyle;
1265
+ $[33] = t12;
1175
1266
  } else {
1176
- t12 = $[32];
1267
+ t12 = $[33];
1177
1268
  }
1178
1269
  let t13;
1179
- if ($[33] !== t11 || $[34] !== t12 || $[35] !== t7) {
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
- $[33] = t11;
1185
- $[34] = t12;
1186
- $[35] = t7;
1187
- $[36] = t13;
1275
+ $[34] = t11;
1276
+ $[35] = t12;
1277
+ $[36] = t7;
1278
+ $[37] = t13;
1188
1279
  } else {
1189
- t13 = $[36];
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
  },