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