@planningcenter/chat-react-native 4.4.1-qa-staging.25 → 4.5.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversation/message.d.ts.map +1 -1
- package/build/components/conversation/message.js +145 -193
- package/build/components/conversation/message.js.map +1 -1
- package/build/components/conversation/reply_shadow_message.d.ts.map +1 -1
- package/build/components/conversation/reply_shadow_message.js +107 -135
- package/build/components/conversation/reply_shadow_message.js.map +1 -1
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +3 -2
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/contexts/conversations_context.d.ts.map +1 -1
- package/build/contexts/conversations_context.js +20 -17
- package/build/contexts/conversations_context.js.map +1 -1
- package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
- package/build/hooks/use_clear_conversation_filters.js +2 -1
- package/build/hooks/use_clear_conversation_filters.js.map +1 -1
- package/build/hooks/use_conversations_cache.d.ts +1 -1
- package/build/hooks/use_conversations_cache.d.ts.map +1 -1
- package/build/hooks/use_conversations_cache.js +64 -55
- package/build/hooks/use_conversations_cache.js.map +1 -1
- package/build/hooks/use_conversations_jolt_events.js +2 -2
- package/build/hooks/use_conversations_jolt_events.js.map +1 -1
- package/build/hooks/use_jolt.d.ts.map +1 -1
- package/build/hooks/use_jolt.js +37 -9
- package/build/hooks/use_jolt.js.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
- package/build/screens/conversation_filters/context/conversation_filter_context.js +8 -4
- package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
- package/build/screens/conversation_filters/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 +192 -170
- package/build/screens/conversations/components/filter_dropdown_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.map +1 -1
- package/build/utils/request/conversation.d.ts +2 -1
- package/build/utils/request/conversation.d.ts.map +1 -1
- package/build/utils/request/conversation.js +4 -1
- package/build/utils/request/conversation.js.map +1 -1
- package/build/utils/styles.d.ts +0 -1
- package/build/utils/styles.d.ts.map +1 -1
- package/build/utils/styles.js +1 -1
- package/build/utils/styles.js.map +1 -1
- package/package.json +3 -3
- package/src/components/conversation/message.tsx +2 -10
- package/src/components/conversation/reply_shadow_message.tsx +3 -14
- package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +1 -0
- package/src/components/conversations/conversations.tsx +12 -2
- package/src/contexts/conversations_context.tsx +8 -1
- package/src/hooks/__tests__/use_conversations_jolt_events.test.tsx +135 -0
- package/src/hooks/__tests__/use_jolt.test.tsx +76 -1
- package/src/hooks/use_clear_conversation_filters.ts +1 -0
- package/src/hooks/use_conversations_cache.ts +29 -24
- package/src/hooks/use_conversations_jolt_events.ts +2 -2
- package/src/hooks/use_jolt.ts +26 -2
- package/src/screens/conversation_filters/context/conversation_filter_context.tsx +4 -0
- package/src/screens/conversation_filters/screen_props.ts +1 -0
- package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +53 -31
- package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +19 -4
- package/src/screens/conversations/conversations_screen.tsx +1 -0
- package/src/utils/__tests__/conversation.test.ts +1 -0
- package/src/utils/request/conversation.ts +4 -0
- package/src/utils/styles.ts +0 -1
|
@@ -21,6 +21,7 @@ var FilterTypes = /*#__PURE__*/function (FilterTypes) {
|
|
|
21
21
|
FilterTypes["Groups"] = "Groups";
|
|
22
22
|
FilterTypes["Teams"] = "Teams";
|
|
23
23
|
FilterTypes["DMs"] = "DMs";
|
|
24
|
+
FilterTypes["Unread"] = "Unread";
|
|
24
25
|
FilterTypes["More"] = "More";
|
|
25
26
|
return FilterTypes;
|
|
26
27
|
}(FilterTypes || {});
|
|
@@ -34,10 +35,13 @@ const FILTER_PARAMS = {
|
|
|
34
35
|
},
|
|
35
36
|
[FilterTypes.DMs]: {
|
|
36
37
|
show_direct_messages: true
|
|
38
|
+
},
|
|
39
|
+
[FilterTypes.Unread]: {
|
|
40
|
+
show_unread: true
|
|
37
41
|
}
|
|
38
42
|
};
|
|
39
43
|
export const FilterDropdownListHeaderComponent = () => {
|
|
40
|
-
const $ = _c(
|
|
44
|
+
const $ = _c(91);
|
|
41
45
|
const navigation = useNavigation();
|
|
42
46
|
let t0;
|
|
43
47
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -80,7 +84,8 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
80
84
|
chat_group_graph_id,
|
|
81
85
|
group_source_app_name: t3,
|
|
82
86
|
show_direct_messages,
|
|
83
|
-
show_archived
|
|
87
|
+
show_archived,
|
|
88
|
+
show_unread
|
|
84
89
|
} = t2;
|
|
85
90
|
const group_source_app_name = t3 === undefined ? "" : t3;
|
|
86
91
|
const currentPersonCache = useCurrentPersonCache();
|
|
@@ -146,6 +151,11 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
146
151
|
if (show_direct_messages) {
|
|
147
152
|
t9 = FilterTypes.DMs;
|
|
148
153
|
break bb0;
|
|
154
|
+
} else {
|
|
155
|
+
if (show_unread) {
|
|
156
|
+
t9 = FilterTypes.Unread;
|
|
157
|
+
break bb0;
|
|
158
|
+
}
|
|
149
159
|
}
|
|
150
160
|
}
|
|
151
161
|
}
|
|
@@ -197,19 +207,29 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
197
207
|
t13 = $[15];
|
|
198
208
|
}
|
|
199
209
|
let t14;
|
|
200
|
-
if ($[16]
|
|
201
|
-
t14 =
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
$[
|
|
210
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
211
|
+
t14 = {
|
|
212
|
+
id: FilterTypes.Unread,
|
|
213
|
+
label: FilterTypes.Unread
|
|
214
|
+
};
|
|
215
|
+
$[16] = t14;
|
|
206
216
|
} else {
|
|
207
|
-
t14 = $[
|
|
217
|
+
t14 = $[16];
|
|
208
218
|
}
|
|
209
|
-
const options = t14;
|
|
210
219
|
let t15;
|
|
211
|
-
if ($[
|
|
212
|
-
t15 =
|
|
220
|
+
if ($[17] !== t11 || $[18] !== t12 || $[19] !== t13) {
|
|
221
|
+
t15 = [t10, ...t11, ...t12, ...t13, t14];
|
|
222
|
+
$[17] = t11;
|
|
223
|
+
$[18] = t12;
|
|
224
|
+
$[19] = t13;
|
|
225
|
+
$[20] = t15;
|
|
226
|
+
} else {
|
|
227
|
+
t15 = $[20];
|
|
228
|
+
}
|
|
229
|
+
const options = t15;
|
|
230
|
+
let t16;
|
|
231
|
+
if ($[21] !== active || $[22] !== chat_group_graph_id || $[23] !== group?.name || $[24] !== show_archived || $[25] !== title) {
|
|
232
|
+
t16 = () => {
|
|
213
233
|
if (chat_group_graph_id) {
|
|
214
234
|
return group?.name || title || ALL_CONVERSATIONS_LABEL;
|
|
215
235
|
}
|
|
@@ -221,28 +241,28 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
221
241
|
}
|
|
222
242
|
return active;
|
|
223
243
|
};
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
244
|
+
$[21] = active;
|
|
245
|
+
$[22] = chat_group_graph_id;
|
|
246
|
+
$[23] = group?.name;
|
|
247
|
+
$[24] = show_archived;
|
|
248
|
+
$[25] = title;
|
|
249
|
+
$[26] = t16;
|
|
230
250
|
} else {
|
|
231
|
-
|
|
251
|
+
t16 = $[26];
|
|
232
252
|
}
|
|
233
253
|
group?.name;
|
|
234
|
-
let
|
|
235
|
-
if ($[
|
|
236
|
-
|
|
237
|
-
$[26] = t15;
|
|
254
|
+
let t17;
|
|
255
|
+
if ($[27] !== t16) {
|
|
256
|
+
t17 = t16();
|
|
238
257
|
$[27] = t16;
|
|
258
|
+
$[28] = t17;
|
|
239
259
|
} else {
|
|
240
|
-
|
|
260
|
+
t17 = $[28];
|
|
241
261
|
}
|
|
242
|
-
const triggerLabel =
|
|
243
|
-
let
|
|
244
|
-
if ($[
|
|
245
|
-
|
|
262
|
+
const triggerLabel = t17;
|
|
263
|
+
let t18;
|
|
264
|
+
if ($[29] !== entryMode || $[30] !== navigation || $[31] !== newConversationFromFilter || $[32] !== route.params) {
|
|
265
|
+
t18 = () => {
|
|
246
266
|
if (newConversationFromFilter || entryMode === "select_type") {
|
|
247
267
|
return navigation.navigate("ConversationSelectType", {
|
|
248
268
|
...route.params,
|
|
@@ -274,108 +294,111 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
274
294
|
});
|
|
275
295
|
}
|
|
276
296
|
};
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
297
|
+
$[29] = entryMode;
|
|
298
|
+
$[30] = navigation;
|
|
299
|
+
$[31] = newConversationFromFilter;
|
|
300
|
+
$[32] = route.params;
|
|
301
|
+
$[33] = t18;
|
|
282
302
|
} else {
|
|
283
|
-
|
|
303
|
+
t18 = $[33];
|
|
284
304
|
}
|
|
285
|
-
const handleNewConversationNavigation =
|
|
286
|
-
let
|
|
287
|
-
if ($[
|
|
288
|
-
|
|
305
|
+
const handleNewConversationNavigation = t18;
|
|
306
|
+
let t19;
|
|
307
|
+
if ($[34] !== navigation) {
|
|
308
|
+
t19 = params => {
|
|
289
309
|
navigation.setParams({
|
|
290
310
|
title: undefined,
|
|
291
311
|
chat_group_graph_id: undefined,
|
|
292
312
|
group_source_app_name: undefined,
|
|
293
313
|
show_direct_messages: undefined,
|
|
294
314
|
show_archived: undefined,
|
|
315
|
+
show_unread: undefined,
|
|
295
316
|
...params
|
|
296
317
|
});
|
|
297
318
|
};
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
319
|
+
$[34] = navigation;
|
|
320
|
+
$[35] = t19;
|
|
300
321
|
} else {
|
|
301
|
-
|
|
322
|
+
t19 = $[35];
|
|
302
323
|
}
|
|
303
|
-
const handleSetFilter =
|
|
304
|
-
let
|
|
305
|
-
if ($[
|
|
306
|
-
|
|
324
|
+
const handleSetFilter = t19;
|
|
325
|
+
let t20;
|
|
326
|
+
if ($[36] !== handleSetFilter) {
|
|
327
|
+
t20 = id => {
|
|
307
328
|
const params_0 = FILTER_PARAMS[id];
|
|
308
329
|
if (params_0) {
|
|
309
330
|
handleSetFilter(params_0);
|
|
310
331
|
}
|
|
311
332
|
};
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
333
|
+
$[36] = handleSetFilter;
|
|
334
|
+
$[37] = t20;
|
|
314
335
|
} else {
|
|
315
|
-
|
|
336
|
+
t20 = $[37];
|
|
316
337
|
}
|
|
317
|
-
const handleSelectFilter =
|
|
318
|
-
let
|
|
319
|
-
if ($[
|
|
320
|
-
|
|
338
|
+
const handleSelectFilter = t20;
|
|
339
|
+
let t21;
|
|
340
|
+
if ($[38] !== navigation) {
|
|
341
|
+
t21 = () => {
|
|
321
342
|
navigation.navigate("Search");
|
|
322
343
|
};
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
344
|
+
$[38] = navigation;
|
|
345
|
+
$[39] = t21;
|
|
325
346
|
} else {
|
|
326
|
-
|
|
347
|
+
t21 = $[39];
|
|
327
348
|
}
|
|
328
|
-
const handleSearch =
|
|
329
|
-
let
|
|
330
|
-
if ($[
|
|
331
|
-
|
|
349
|
+
const handleSearch = t21;
|
|
350
|
+
let t22;
|
|
351
|
+
if ($[40] !== navigation) {
|
|
352
|
+
t22 = () => {
|
|
332
353
|
navigation.navigate("ChatSettings", {});
|
|
333
354
|
};
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
355
|
+
$[40] = navigation;
|
|
356
|
+
$[41] = t22;
|
|
336
357
|
} else {
|
|
337
|
-
|
|
358
|
+
t22 = $[41];
|
|
338
359
|
}
|
|
339
|
-
const handleChatSettings =
|
|
340
|
-
let
|
|
341
|
-
if ($[
|
|
342
|
-
|
|
360
|
+
const handleChatSettings = t22;
|
|
361
|
+
let t23;
|
|
362
|
+
if ($[42] !== chat_group_graph_id || $[43] !== group_source_app_name || $[44] !== navigation || $[45] !== show_archived || $[46] !== show_direct_messages || $[47] !== show_unread) {
|
|
363
|
+
t23 = () => {
|
|
343
364
|
navigation.navigate("ConversationFilters", {
|
|
344
365
|
chat_group_graph_id,
|
|
345
366
|
group_source_app_name,
|
|
346
367
|
show_direct_messages,
|
|
347
|
-
show_archived
|
|
368
|
+
show_archived,
|
|
369
|
+
show_unread
|
|
348
370
|
});
|
|
349
371
|
};
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
355
|
-
$[
|
|
372
|
+
$[42] = chat_group_graph_id;
|
|
373
|
+
$[43] = group_source_app_name;
|
|
374
|
+
$[44] = navigation;
|
|
375
|
+
$[45] = show_archived;
|
|
376
|
+
$[46] = show_direct_messages;
|
|
377
|
+
$[47] = show_unread;
|
|
378
|
+
$[48] = t23;
|
|
356
379
|
} else {
|
|
357
|
-
|
|
380
|
+
t23 = $[48];
|
|
358
381
|
}
|
|
359
|
-
const handleOpenConversationFilters =
|
|
360
|
-
let
|
|
361
|
-
if ($[
|
|
362
|
-
|
|
382
|
+
const handleOpenConversationFilters = t23;
|
|
383
|
+
let t24;
|
|
384
|
+
if ($[49] !== currentPersonCache || $[50] !== markAllRead) {
|
|
385
|
+
t24 = () => {
|
|
363
386
|
currentPersonCache.update({
|
|
364
387
|
unreadCount: 0
|
|
365
388
|
});
|
|
366
389
|
Haptic.notificationSuccess();
|
|
367
390
|
markAllRead();
|
|
368
391
|
};
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
392
|
+
$[49] = currentPersonCache;
|
|
393
|
+
$[50] = markAllRead;
|
|
394
|
+
$[51] = t24;
|
|
372
395
|
} else {
|
|
373
|
-
|
|
396
|
+
t24 = $[51];
|
|
374
397
|
}
|
|
375
|
-
const handleMarkAllRead =
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
398
|
+
const handleMarkAllRead = t24;
|
|
399
|
+
let t25;
|
|
400
|
+
if ($[52] !== active || $[53] !== handleMarkAllRead) {
|
|
401
|
+
t25 = () => {
|
|
379
402
|
if (active === FilterTypes.All) {
|
|
380
403
|
return handleMarkAllRead();
|
|
381
404
|
}
|
|
@@ -386,18 +409,18 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
386
409
|
onPress: () => handleMarkAllRead()
|
|
387
410
|
}]);
|
|
388
411
|
};
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
412
|
+
$[52] = active;
|
|
413
|
+
$[53] = handleMarkAllRead;
|
|
414
|
+
$[54] = t25;
|
|
392
415
|
} else {
|
|
393
|
-
|
|
416
|
+
t25 = $[54];
|
|
394
417
|
}
|
|
395
|
-
const alertMarkAllRead =
|
|
418
|
+
const alertMarkAllRead = t25;
|
|
396
419
|
const showMoreFilters = canFilterByGroups || canFilterByTeams || canBrowseArchived;
|
|
397
420
|
const styles = useStyles();
|
|
398
|
-
let
|
|
399
|
-
if ($[
|
|
400
|
-
|
|
421
|
+
let t26;
|
|
422
|
+
if ($[55] !== active || $[56] !== handleOpenConversationFilters || $[57] !== handleSelectFilter || $[58] !== options || $[59] !== showMoreFilters || $[60] !== triggerLabel) {
|
|
423
|
+
t26 = /*#__PURE__*/_jsx(FilterDropdown, {
|
|
401
424
|
options: options,
|
|
402
425
|
selectedId: active,
|
|
403
426
|
onSelect: handleSelectFilter,
|
|
@@ -405,103 +428,102 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
405
428
|
showMoreFilters: showMoreFilters,
|
|
406
429
|
triggerLabel: triggerLabel
|
|
407
430
|
});
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
431
|
+
$[55] = active;
|
|
432
|
+
$[56] = handleOpenConversationFilters;
|
|
433
|
+
$[57] = handleSelectFilter;
|
|
434
|
+
$[58] = options;
|
|
435
|
+
$[59] = showMoreFilters;
|
|
436
|
+
$[60] = triggerLabel;
|
|
437
|
+
$[61] = t26;
|
|
415
438
|
} else {
|
|
416
|
-
|
|
439
|
+
t26 = $[61];
|
|
417
440
|
}
|
|
418
|
-
let
|
|
419
|
-
if ($[
|
|
420
|
-
|
|
441
|
+
let t27;
|
|
442
|
+
if ($[62] !== styles.titleContainer || $[63] !== t26) {
|
|
443
|
+
t27 = /*#__PURE__*/_jsx(View, {
|
|
421
444
|
style: styles.titleContainer,
|
|
422
|
-
children:
|
|
445
|
+
children: t26
|
|
423
446
|
});
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
447
|
+
$[62] = styles.titleContainer;
|
|
448
|
+
$[63] = t26;
|
|
449
|
+
$[64] = t27;
|
|
427
450
|
} else {
|
|
428
|
-
|
|
451
|
+
t27 = $[64];
|
|
429
452
|
}
|
|
430
|
-
let
|
|
431
|
-
if ($[
|
|
432
|
-
|
|
453
|
+
let t28;
|
|
454
|
+
if ($[65] !== handleChatSettings) {
|
|
455
|
+
t28 = /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
433
456
|
name: "general.cog",
|
|
434
457
|
onPress: handleChatSettings,
|
|
435
458
|
accessibilityLabel: "Chat settings",
|
|
436
459
|
testID: "conversations-chat-settings-button",
|
|
437
460
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
438
461
|
});
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
462
|
+
$[65] = handleChatSettings;
|
|
463
|
+
$[66] = t28;
|
|
441
464
|
} else {
|
|
442
|
-
|
|
465
|
+
t28 = $[66];
|
|
443
466
|
}
|
|
444
|
-
let
|
|
445
|
-
if ($[
|
|
446
|
-
|
|
467
|
+
let t29;
|
|
468
|
+
if ($[67] !== canCreateConversations || $[68] !== handleNewConversationNavigation) {
|
|
469
|
+
t29 = canCreateConversations && /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
447
470
|
name: "churchCenter.signups",
|
|
448
471
|
onPress: handleNewConversationNavigation,
|
|
449
472
|
accessibilityLabel: "New conversation",
|
|
450
473
|
testID: "conversations-new-conversation-button",
|
|
451
474
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
452
475
|
});
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
476
|
+
$[67] = canCreateConversations;
|
|
477
|
+
$[68] = handleNewConversationNavigation;
|
|
478
|
+
$[69] = t29;
|
|
456
479
|
} else {
|
|
457
|
-
|
|
480
|
+
t29 = $[69];
|
|
458
481
|
}
|
|
459
|
-
let
|
|
460
|
-
if ($[
|
|
461
|
-
|
|
482
|
+
let t30;
|
|
483
|
+
if ($[70] !== handleSearch || $[71] !== searchEnabled) {
|
|
484
|
+
t30 = searchEnabled && /*#__PURE__*/_jsx(ListHeaderActionButton, {
|
|
462
485
|
name: "general.search",
|
|
463
486
|
onPress: handleSearch,
|
|
464
487
|
accessibilityLabel: "Search",
|
|
465
488
|
testID: "conversations-search-button",
|
|
466
489
|
maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
|
|
467
490
|
});
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
491
|
+
$[70] = handleSearch;
|
|
492
|
+
$[71] = searchEnabled;
|
|
493
|
+
$[72] = t30;
|
|
471
494
|
} else {
|
|
472
|
-
|
|
495
|
+
t30 = $[72];
|
|
473
496
|
}
|
|
474
|
-
let
|
|
475
|
-
if ($[
|
|
476
|
-
|
|
497
|
+
let t31;
|
|
498
|
+
if ($[73] !== styles.actionsContainer || $[74] !== t28 || $[75] !== t29 || $[76] !== t30) {
|
|
499
|
+
t31 = /*#__PURE__*/_jsxs(View, {
|
|
477
500
|
style: styles.actionsContainer,
|
|
478
|
-
children: [
|
|
501
|
+
children: [t28, t29, t30]
|
|
479
502
|
});
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
503
|
+
$[73] = styles.actionsContainer;
|
|
504
|
+
$[74] = t28;
|
|
505
|
+
$[75] = t29;
|
|
506
|
+
$[76] = t30;
|
|
507
|
+
$[77] = t31;
|
|
485
508
|
} else {
|
|
486
|
-
|
|
509
|
+
t31 = $[77];
|
|
487
510
|
}
|
|
488
|
-
let
|
|
489
|
-
if ($[
|
|
490
|
-
|
|
511
|
+
let t32;
|
|
512
|
+
if ($[78] !== styles.headingRow || $[79] !== t27 || $[80] !== t31) {
|
|
513
|
+
t32 = /*#__PURE__*/_jsxs(View, {
|
|
491
514
|
style: styles.headingRow,
|
|
492
|
-
|
|
493
|
-
children: [t26, t30]
|
|
515
|
+
children: [t27, t31]
|
|
494
516
|
});
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
517
|
+
$[78] = styles.headingRow;
|
|
518
|
+
$[79] = t27;
|
|
519
|
+
$[80] = t31;
|
|
520
|
+
$[81] = t32;
|
|
499
521
|
} else {
|
|
500
|
-
|
|
522
|
+
t32 = $[81];
|
|
501
523
|
}
|
|
502
|
-
let
|
|
503
|
-
if ($[
|
|
504
|
-
|
|
524
|
+
let t33;
|
|
525
|
+
if ($[82] !== alertMarkAllRead || $[83] !== isPending || $[84] !== show_archived || $[85] !== styles.markAllReadRow) {
|
|
526
|
+
t33 = !show_archived && /*#__PURE__*/_jsx(View, {
|
|
505
527
|
style: styles.markAllReadRow,
|
|
506
528
|
children: /*#__PURE__*/_jsx(TextButton, {
|
|
507
529
|
onPress: alertMarkAllRead,
|
|
@@ -512,33 +534,33 @@ export const FilterDropdownListHeaderComponent = () => {
|
|
|
512
534
|
children: "Mark all read"
|
|
513
535
|
})
|
|
514
536
|
});
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
537
|
+
$[82] = alertMarkAllRead;
|
|
538
|
+
$[83] = isPending;
|
|
539
|
+
$[84] = show_archived;
|
|
540
|
+
$[85] = styles.markAllReadRow;
|
|
541
|
+
$[86] = t33;
|
|
520
542
|
} else {
|
|
521
|
-
|
|
543
|
+
t33 = $[86];
|
|
522
544
|
}
|
|
523
|
-
let
|
|
524
|
-
if ($[
|
|
525
|
-
|
|
545
|
+
let t34;
|
|
546
|
+
if ($[87] !== styles.listHeader || $[88] !== t32 || $[89] !== t33) {
|
|
547
|
+
t34 = /*#__PURE__*/_jsxs(View, {
|
|
526
548
|
style: styles.listHeader,
|
|
527
|
-
children: [
|
|
549
|
+
children: [t32, t33]
|
|
528
550
|
});
|
|
529
|
-
$[
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
551
|
+
$[87] = styles.listHeader;
|
|
552
|
+
$[88] = t32;
|
|
553
|
+
$[89] = t33;
|
|
554
|
+
$[90] = t34;
|
|
533
555
|
} else {
|
|
534
|
-
|
|
556
|
+
t34 = $[90];
|
|
535
557
|
}
|
|
536
|
-
return
|
|
558
|
+
return t34;
|
|
537
559
|
};
|
|
538
560
|
const useStyles = () => {
|
|
539
561
|
const $ = _c(3);
|
|
540
562
|
const theme = useTheme();
|
|
541
|
-
const atFontScaleBreakpoint = useAtFontScaleBreakpoint(
|
|
563
|
+
const atFontScaleBreakpoint = useAtFontScaleBreakpoint();
|
|
542
564
|
let t0;
|
|
543
565
|
if ($[0] !== atFontScaleBreakpoint || $[1] !== theme.colors.fillColorNeutral050Base) {
|
|
544
566
|
t0 = StyleSheet.create({
|