@planningcenter/chat-react-native 4.7.1-qa-staging.3 → 4.7.1-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.
Files changed (231) hide show
  1. package/build/components/conversation/attachments/expanded_link.js +8 -8
  2. package/build/components/conversation/attachments/expanded_link.js.map +1 -1
  3. package/build/components/conversation/attachments/generic_file_attachment.d.ts.map +1 -1
  4. package/build/components/conversation/attachments/generic_file_attachment.js +2 -2
  5. package/build/components/conversation/attachments/generic_file_attachment.js.map +1 -1
  6. package/build/components/conversation/attachments/giphy_attachment.d.ts.map +1 -1
  7. package/build/components/conversation/attachments/giphy_attachment.js +2 -2
  8. package/build/components/conversation/attachments/giphy_attachment.js.map +1 -1
  9. package/build/components/conversation/attachments/image_attachment.js +2 -2
  10. package/build/components/conversation/attachments/image_attachment.js.map +1 -1
  11. package/build/components/conversation/message_form.js +2 -2
  12. package/build/components/conversation/message_form.js.map +1 -1
  13. package/build/components/conversation/message_markdown.js +2 -2
  14. package/build/components/conversation/message_markdown.js.map +1 -1
  15. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  16. package/build/components/conversations/conversation_actions.js +193 -333
  17. package/build/components/conversations/conversation_actions.js.map +1 -1
  18. package/build/components/conversations/conversation_preview.d.ts.map +1 -1
  19. package/build/components/conversations/conversation_preview.js +91 -106
  20. package/build/components/conversations/conversation_preview.js.map +1 -1
  21. package/build/components/conversations/conversations.d.ts.map +1 -1
  22. package/build/components/conversations/conversations.js +56 -63
  23. package/build/components/conversations/conversations.js.map +1 -1
  24. package/build/components/conversations/conversations_blank_state.d.ts +1 -2
  25. package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
  26. package/build/components/conversations/conversations_blank_state.js +39 -71
  27. package/build/components/conversations/conversations_blank_state.js.map +1 -1
  28. package/build/components/group_conversation_list.d.ts.map +1 -1
  29. package/build/components/group_conversation_list.js +0 -1
  30. package/build/components/group_conversation_list.js.map +1 -1
  31. package/build/contexts/conversations_context.d.ts +1 -3
  32. package/build/contexts/conversations_context.d.ts.map +1 -1
  33. package/build/contexts/conversations_context.js +31 -39
  34. package/build/contexts/conversations_context.js.map +1 -1
  35. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -6
  36. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  37. package/build/hooks/use_api.d.ts +0 -6
  38. package/build/hooks/use_api.d.ts.map +1 -1
  39. package/build/hooks/use_api.js +5 -8
  40. package/build/hooks/use_api.js.map +1 -1
  41. package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
  42. package/build/hooks/use_clear_conversation_filters.js +0 -1
  43. package/build/hooks/use_clear_conversation_filters.js.map +1 -1
  44. package/build/hooks/use_conversation.d.ts.map +1 -1
  45. package/build/hooks/use_conversation.js +1 -1
  46. package/build/hooks/use_conversation.js.map +1 -1
  47. package/build/hooks/use_features.d.ts +0 -1
  48. package/build/hooks/use_features.d.ts.map +1 -1
  49. package/build/hooks/use_features.js +1 -2
  50. package/build/hooks/use_features.js.map +1 -1
  51. package/build/hooks/use_groups.d.ts +0 -6
  52. package/build/hooks/use_groups.d.ts.map +1 -1
  53. package/build/hooks/use_groups_groups.d.ts +0 -6
  54. package/build/hooks/use_groups_groups.d.ts.map +1 -1
  55. package/build/hooks/use_live_relative_time.js +6 -5
  56. package/build/hooks/use_live_relative_time.js.map +1 -1
  57. package/build/hooks/use_teams.d.ts +0 -6
  58. package/build/hooks/use_teams.d.ts.map +1 -1
  59. package/build/navigation/index.d.ts +0 -5
  60. package/build/navigation/index.d.ts.map +1 -1
  61. package/build/navigation/index.js +0 -5
  62. package/build/navigation/index.js.map +1 -1
  63. package/build/screens/age_check/age_check_underage_screen.js +3 -3
  64. package/build/screens/age_check/age_check_underage_screen.js.map +1 -1
  65. package/build/screens/attachment_actions/attachment_actions_screen.js +2 -2
  66. package/build/screens/attachment_actions/attachment_actions_screen.js.map +1 -1
  67. package/build/screens/bug_report_screen.js +4 -4
  68. package/build/screens/bug_report_screen.js.map +1 -1
  69. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  70. package/build/screens/conversation_details_screen.js +394 -460
  71. package/build/screens/conversation_details_screen.js.map +1 -1
  72. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  73. package/build/screens/conversation_filters/components/conversation_filters.js +12 -53
  74. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  75. package/build/screens/conversation_filters/components/rows.d.ts +3 -6
  76. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  77. package/build/screens/conversation_filters/components/rows.js +62 -99
  78. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  79. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  80. package/build/screens/conversation_filters/context/conversation_filter_context.js +0 -4
  81. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  82. package/build/screens/conversation_filters/filter_types.d.ts +0 -1
  83. package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
  84. package/build/screens/conversation_filters/filter_types.js +0 -1
  85. package/build/screens/conversation_filters/filter_types.js.map +1 -1
  86. package/build/screens/conversation_filters/hooks/filters.d.ts +0 -12
  87. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
  88. package/build/screens/conversation_filters/screen_props.d.ts +0 -1
  89. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  90. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  91. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
  92. package/build/screens/conversations/components/filter_dropdown_list_header_component.js +126 -138
  93. package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
  94. package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
  95. package/build/screens/conversations/components/list_header_component.js +90 -95
  96. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  97. package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
  98. package/build/screens/conversations/components/search_list_header_component.js +95 -100
  99. package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
  100. package/build/screens/conversations/conversations_screen.d.ts +0 -1
  101. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  102. package/build/screens/conversations/conversations_screen.js +10 -18
  103. package/build/screens/conversations/conversations_screen.js.map +1 -1
  104. package/build/screens/get_help_screen.d.ts.map +1 -1
  105. package/build/screens/get_help_screen.js +21 -5
  106. package/build/screens/get_help_screen.js.map +1 -1
  107. package/build/screens/index.d.ts +0 -1
  108. package/build/screens/index.d.ts.map +1 -1
  109. package/build/screens/index.js +0 -1
  110. package/build/screens/index.js.map +1 -1
  111. package/build/types/resources/conversation_membership.d.ts +0 -1
  112. package/build/types/resources/conversation_membership.d.ts.map +1 -1
  113. package/build/types/resources/conversation_membership.js.map +1 -1
  114. package/build/utils/date.d.ts +1 -1
  115. package/build/utils/date.d.ts.map +1 -1
  116. package/build/utils/date.js +4 -4
  117. package/build/utils/date.js.map +1 -1
  118. package/build/utils/index.d.ts +0 -1
  119. package/build/utils/index.d.ts.map +1 -1
  120. package/build/utils/index.js +0 -1
  121. package/build/utils/index.js.map +1 -1
  122. package/build/utils/request/conversation.d.ts +1 -3
  123. package/build/utils/request/conversation.d.ts.map +1 -1
  124. package/build/utils/request/conversation.js +0 -4
  125. package/build/utils/request/conversation.js.map +1 -1
  126. package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -1
  127. package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
  128. package/build/vendor/font_awesome_pro_solid_icons.js +0 -5
  129. package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
  130. package/package.json +3 -3
  131. package/src/__tests__/components/conversation/attachments/giphy_attachment.test.tsx +1 -1
  132. package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +0 -6
  133. package/src/__tests__/screens/get_help_screen.test.ts +1 -1
  134. package/src/components/conversation/attachments/expanded_link.tsx +4 -4
  135. package/src/components/conversation/attachments/generic_file_attachment.tsx +5 -2
  136. package/src/components/conversation/attachments/giphy_attachment.tsx +4 -2
  137. package/src/components/conversation/attachments/image_attachment.tsx +2 -2
  138. package/src/components/conversation/message_form.tsx +2 -2
  139. package/src/components/conversation/message_markdown.tsx +2 -2
  140. package/src/components/conversations/__tests__/conversation_actions.test.tsx +2 -77
  141. package/src/components/conversations/__tests__/conversation_preview.test.tsx +0 -29
  142. package/src/components/conversations/__tests__/conversations.test.tsx +0 -26
  143. package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +0 -17
  144. package/src/components/conversations/conversation_actions.tsx +4 -73
  145. package/src/components/conversations/conversation_preview.tsx +1 -12
  146. package/src/components/conversations/conversations.tsx +0 -9
  147. package/src/components/conversations/conversations_blank_state.tsx +0 -18
  148. package/src/components/group_conversation_list.tsx +1 -4
  149. package/src/contexts/conversations_context.tsx +1 -8
  150. package/src/hooks/__tests__/use_live_relative_time.test.tsx +22 -0
  151. package/src/hooks/use_api.ts +1 -2
  152. package/src/hooks/use_clear_conversation_filters.ts +0 -1
  153. package/src/hooks/use_conversation.ts +0 -1
  154. package/src/hooks/use_features.ts +0 -1
  155. package/src/hooks/use_live_relative_time.ts +1 -1
  156. package/src/navigation/index.tsx +0 -8
  157. package/src/screens/__tests__/conversation_details_screen.test.tsx +1 -49
  158. package/src/screens/age_check/age_check_underage_screen.tsx +3 -3
  159. package/src/screens/attachment_actions/attachment_actions_screen.tsx +2 -2
  160. package/src/screens/bug_report_screen.tsx +4 -4
  161. package/src/screens/conversation_details_screen.tsx +0 -19
  162. package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +0 -42
  163. package/src/screens/conversation_filters/components/conversation_filters.tsx +3 -22
  164. package/src/screens/conversation_filters/components/rows.tsx +10 -44
  165. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +0 -4
  166. package/src/screens/conversation_filters/filter_types.ts +0 -1
  167. package/src/screens/conversation_filters/screen_props.ts +0 -1
  168. package/src/screens/conversations/__tests__/conversations_screen.test.tsx +0 -1
  169. package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -42
  170. package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +0 -1
  171. package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +5 -21
  172. package/src/screens/conversations/components/list_header_component.tsx +4 -14
  173. package/src/screens/conversations/components/search_list_header_component.tsx +4 -14
  174. package/src/screens/conversations/conversations_screen.tsx +0 -3
  175. package/src/screens/get_help_screen.tsx +19 -5
  176. package/src/screens/index.ts +0 -1
  177. package/src/types/resources/conversation_membership.ts +0 -1
  178. package/src/utils/__tests__/date.test.ts +10 -1
  179. package/src/utils/date.ts +4 -4
  180. package/src/utils/index.ts +0 -1
  181. package/src/utils/request/conversation.ts +0 -6
  182. package/src/vendor/font_awesome_pro_solid_icons.ts +0 -12
  183. package/build/components/conversations/hidden_indicator.d.ts +0 -4
  184. package/build/components/conversations/hidden_indicator.d.ts.map +0 -1
  185. package/build/components/conversations/hidden_indicator.js +0 -52
  186. package/build/components/conversations/hidden_indicator.js.map +0 -1
  187. package/build/components/conversations/hidden_results_footer.d.ts +0 -2
  188. package/build/components/conversations/hidden_results_footer.d.ts.map +0 -1
  189. package/build/components/conversations/hidden_results_footer.js +0 -34
  190. package/build/components/conversations/hidden_results_footer.js.map +0 -1
  191. package/build/components/display/toast.d.ts +0 -3
  192. package/build/components/display/toast.d.ts.map +0 -1
  193. package/build/components/display/toast.js +0 -224
  194. package/build/components/display/toast.js.map +0 -1
  195. package/build/hooks/use_hidden_conversations_count.d.ts +0 -2
  196. package/build/hooks/use_hidden_conversations_count.d.ts.map +0 -1
  197. package/build/hooks/use_hidden_conversations_count.js +0 -32
  198. package/build/hooks/use_hidden_conversations_count.js.map +0 -1
  199. package/build/hooks/use_hide_conversation.d.ts +0 -108
  200. package/build/hooks/use_hide_conversation.d.ts.map +0 -1
  201. package/build/hooks/use_hide_conversation.js +0 -243
  202. package/build/hooks/use_hide_conversation.js.map +0 -1
  203. package/build/hooks/use_hide_conversations_enabled.d.ts +0 -2
  204. package/build/hooks/use_hide_conversations_enabled.d.ts.map +0 -1
  205. package/build/hooks/use_hide_conversations_enabled.js +0 -18
  206. package/build/hooks/use_hide_conversations_enabled.js.map +0 -1
  207. package/build/screens/conversation_actions_screen.d.ts +0 -7
  208. package/build/screens/conversation_actions_screen.d.ts.map +0 -1
  209. package/build/screens/conversation_actions_screen.js +0 -89
  210. package/build/screens/conversation_actions_screen.js.map +0 -1
  211. package/build/utils/open_url.d.ts +0 -11
  212. package/build/utils/open_url.d.ts.map +0 -1
  213. package/build/utils/open_url.js +0 -46
  214. package/build/utils/open_url.js.map +0 -1
  215. package/build/utils/toast_store.d.ts +0 -21
  216. package/build/utils/toast_store.d.ts.map +0 -1
  217. package/build/utils/toast_store.js +0 -27
  218. package/build/utils/toast_store.js.map +0 -1
  219. package/src/components/conversations/hidden_indicator.tsx +0 -30
  220. package/src/components/conversations/hidden_results_footer.tsx +0 -25
  221. package/src/components/display/__tests__/toast.test.tsx +0 -55
  222. package/src/components/display/toast.tsx +0 -115
  223. package/src/hooks/__tests__/use_hide_conversation.test.tsx +0 -189
  224. package/src/hooks/use_hidden_conversations_count.ts +0 -14
  225. package/src/hooks/use_hide_conversation.ts +0 -128
  226. package/src/hooks/use_hide_conversations_enabled.ts +0 -7
  227. package/src/screens/__tests__/conversation_actions_screen.test.tsx +0 -79
  228. package/src/screens/conversation_actions_screen.tsx +0 -53
  229. package/src/utils/__tests__/open_url.test.ts +0 -67
  230. package/src/utils/open_url.ts +0 -47
  231. package/src/utils/toast_store.ts +0 -45
@@ -7,7 +7,6 @@ import { useCanBrowseArchivedConversations, useCanCreateConversations, useCurren
7
7
  import { useApiGet } from '../../../hooks/use_api';
8
8
  import { useMarkAllRead } from '../../../hooks/use_conversations_actions';
9
9
  import { useCanDisplayGroups } from '../../../hooks/use_groups';
10
- import { useHideConversationsEnabled } from '../../../hooks/use_hide_conversations_enabled';
11
10
  import { useNewConversationFromFilter } from '../../../hooks/use_new_conversation_from_filter';
12
11
  import { useSearchEnabled } from '../../../hooks/use_search_enabled';
13
12
  import { MAX_FONT_SIZE_MULTIPLIER_LANDMARK } from '../../../utils';
@@ -20,7 +19,6 @@ const TRIGGER_CAP_SLACK = 2;
20
19
  const LAYOUT_JITTER = 1;
21
20
  const ALL_CONVERSATIONS_LABEL = 'All conversations';
22
21
  const ARCHIVED_LABEL = 'Archived';
23
- const HIDDEN_LABEL = 'Hidden';
24
22
  var FilterTypes = /*#__PURE__*/function (FilterTypes) {
25
23
  FilterTypes["All"] = "All";
26
24
  FilterTypes["Groups"] = "Groups";
@@ -47,7 +45,7 @@ const FILTER_PARAMS = {
47
45
  }
48
46
  };
49
47
  export const FilterDropdownListHeaderComponent = () => {
50
- const $ = _c(102);
48
+ const $ = _c(99);
51
49
  const navigation = useNavigation();
52
50
  let t0;
53
51
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
@@ -75,7 +73,6 @@ export const FilterDropdownListHeaderComponent = () => {
75
73
  const hasDirectMessages = useHasDirectMessages();
76
74
  const canFilterByDMs = directMessagesEligible && hasDirectMessages;
77
75
  const canBrowseArchived = useCanBrowseArchivedConversations();
78
- const hideConversationsEnabled = useHideConversationsEnabled();
79
76
  const searchEnabled = useSearchEnabled();
80
77
  const route = useRoute();
81
78
  let t2;
@@ -92,7 +89,6 @@ export const FilterDropdownListHeaderComponent = () => {
92
89
  group_source_app_name: t3,
93
90
  show_direct_messages,
94
91
  show_archived,
95
- show_hidden,
96
92
  show_unread
97
93
  } = t2;
98
94
  const group_source_app_name = t3 === undefined ? "" : t3;
@@ -144,7 +140,7 @@ export const FilterDropdownListHeaderComponent = () => {
144
140
  } = useApiGet(t6, t8);
145
141
  let t9;
146
142
  bb0: {
147
- if (chat_group_graph_id || show_archived || show_hidden) {
143
+ if (chat_group_graph_id || show_archived) {
148
144
  t9 = FilterTypes.More;
149
145
  break bb0;
150
146
  } else {
@@ -236,7 +232,7 @@ export const FilterDropdownListHeaderComponent = () => {
236
232
  }
237
233
  const options = t15;
238
234
  let t16;
239
- if ($[21] !== active || $[22] !== chat_group_graph_id || $[23] !== group?.name || $[24] !== show_archived || $[25] !== show_hidden || $[26] !== title) {
235
+ if ($[21] !== active || $[22] !== chat_group_graph_id || $[23] !== group?.name || $[24] !== show_archived || $[25] !== title) {
240
236
  t16 = () => {
241
237
  if (chat_group_graph_id) {
242
238
  return group?.name || title || ALL_CONVERSATIONS_LABEL;
@@ -244,9 +240,6 @@ export const FilterDropdownListHeaderComponent = () => {
244
240
  if (show_archived) {
245
241
  return ARCHIVED_LABEL;
246
242
  }
247
- if (show_hidden) {
248
- return HIDDEN_LABEL;
249
- }
250
243
  if (active === FilterTypes.All) {
251
244
  return ALL_CONVERSATIONS_LABEL;
252
245
  }
@@ -256,24 +249,23 @@ export const FilterDropdownListHeaderComponent = () => {
256
249
  $[22] = chat_group_graph_id;
257
250
  $[23] = group?.name;
258
251
  $[24] = show_archived;
259
- $[25] = show_hidden;
260
- $[26] = title;
261
- $[27] = t16;
252
+ $[25] = title;
253
+ $[26] = t16;
262
254
  } else {
263
- t16 = $[27];
255
+ t16 = $[26];
264
256
  }
265
257
  group?.name;
266
258
  let t17;
267
- if ($[28] !== t16) {
259
+ if ($[27] !== t16) {
268
260
  t17 = t16();
269
- $[28] = t16;
270
- $[29] = t17;
261
+ $[27] = t16;
262
+ $[28] = t17;
271
263
  } else {
272
- t17 = $[29];
264
+ t17 = $[28];
273
265
  }
274
266
  const triggerLabel = t17;
275
267
  let t18;
276
- if ($[30] !== entryMode || $[31] !== navigation || $[32] !== newConversationFromFilter || $[33] !== route.params) {
268
+ if ($[29] !== entryMode || $[30] !== navigation || $[31] !== newConversationFromFilter || $[32] !== route.params) {
277
269
  t18 = () => {
278
270
  if (newConversationFromFilter || entryMode === "select_type") {
279
271
  return navigation.navigate("ConversationSelectType", {
@@ -306,17 +298,17 @@ export const FilterDropdownListHeaderComponent = () => {
306
298
  });
307
299
  }
308
300
  };
309
- $[30] = entryMode;
310
- $[31] = navigation;
311
- $[32] = newConversationFromFilter;
312
- $[33] = route.params;
313
- $[34] = t18;
301
+ $[29] = entryMode;
302
+ $[30] = navigation;
303
+ $[31] = newConversationFromFilter;
304
+ $[32] = route.params;
305
+ $[33] = t18;
314
306
  } else {
315
- t18 = $[34];
307
+ t18 = $[33];
316
308
  }
317
309
  const handleNewConversationNavigation = t18;
318
310
  let t19;
319
- if ($[35] !== navigation) {
311
+ if ($[34] !== navigation) {
320
312
  t19 = params => {
321
313
  navigation.setParams({
322
314
  title: undefined,
@@ -324,79 +316,76 @@ export const FilterDropdownListHeaderComponent = () => {
324
316
  group_source_app_name: undefined,
325
317
  show_direct_messages: undefined,
326
318
  show_archived: undefined,
327
- show_hidden: undefined,
328
319
  show_unread: undefined,
329
320
  ...params
330
321
  });
331
322
  };
332
- $[35] = navigation;
333
- $[36] = t19;
323
+ $[34] = navigation;
324
+ $[35] = t19;
334
325
  } else {
335
- t19 = $[36];
326
+ t19 = $[35];
336
327
  }
337
328
  const handleSetFilter = t19;
338
329
  let t20;
339
- if ($[37] !== handleSetFilter) {
330
+ if ($[36] !== handleSetFilter) {
340
331
  t20 = id => {
341
332
  const params_0 = FILTER_PARAMS[id];
342
333
  if (params_0) {
343
334
  handleSetFilter(params_0);
344
335
  }
345
336
  };
346
- $[37] = handleSetFilter;
347
- $[38] = t20;
337
+ $[36] = handleSetFilter;
338
+ $[37] = t20;
348
339
  } else {
349
- t20 = $[38];
340
+ t20 = $[37];
350
341
  }
351
342
  const handleSelectFilter = t20;
352
343
  let t21;
353
- if ($[39] !== navigation) {
344
+ if ($[38] !== navigation) {
354
345
  t21 = () => {
355
346
  navigation.navigate("Search");
356
347
  };
357
- $[39] = navigation;
358
- $[40] = t21;
348
+ $[38] = navigation;
349
+ $[39] = t21;
359
350
  } else {
360
- t21 = $[40];
351
+ t21 = $[39];
361
352
  }
362
353
  const handleSearch = t21;
363
354
  let t22;
364
- if ($[41] !== navigation) {
355
+ if ($[40] !== navigation) {
365
356
  t22 = () => {
366
357
  navigation.navigate("ChatSettings", {});
367
358
  };
368
- $[41] = navigation;
369
- $[42] = t22;
359
+ $[40] = navigation;
360
+ $[41] = t22;
370
361
  } else {
371
- t22 = $[42];
362
+ t22 = $[41];
372
363
  }
373
364
  const handleChatSettings = t22;
374
365
  let t23;
375
- if ($[43] !== chat_group_graph_id || $[44] !== group_source_app_name || $[45] !== navigation || $[46] !== show_archived || $[47] !== show_direct_messages || $[48] !== show_hidden || $[49] !== show_unread) {
366
+ if ($[42] !== chat_group_graph_id || $[43] !== group_source_app_name || $[44] !== navigation || $[45] !== show_archived || $[46] !== show_direct_messages || $[47] !== show_unread) {
376
367
  t23 = () => {
377
368
  navigation.navigate("ConversationFilters", {
378
369
  chat_group_graph_id,
379
370
  group_source_app_name,
380
371
  show_direct_messages,
381
372
  show_archived,
382
- show_hidden,
383
373
  show_unread
384
374
  });
385
375
  };
386
- $[43] = chat_group_graph_id;
387
- $[44] = group_source_app_name;
388
- $[45] = navigation;
389
- $[46] = show_archived;
390
- $[47] = show_direct_messages;
391
- $[48] = show_hidden;
392
- $[49] = show_unread;
393
- $[50] = t23;
376
+ $[42] = chat_group_graph_id;
377
+ $[43] = group_source_app_name;
378
+ $[44] = navigation;
379
+ $[45] = show_archived;
380
+ $[46] = show_direct_messages;
381
+ $[47] = show_unread;
382
+ $[48] = t23;
394
383
  } else {
395
- t23 = $[50];
384
+ t23 = $[48];
396
385
  }
397
386
  const handleOpenConversationFilters = t23;
398
387
  let t24;
399
- if ($[51] !== currentPersonCache || $[52] !== markAllRead) {
388
+ if ($[49] !== currentPersonCache || $[50] !== markAllRead) {
400
389
  t24 = () => {
401
390
  currentPersonCache.update({
402
391
  unreadCount: 0
@@ -404,15 +393,15 @@ export const FilterDropdownListHeaderComponent = () => {
404
393
  Haptic.notificationSuccess();
405
394
  markAllRead();
406
395
  };
407
- $[51] = currentPersonCache;
408
- $[52] = markAllRead;
409
- $[53] = t24;
396
+ $[49] = currentPersonCache;
397
+ $[50] = markAllRead;
398
+ $[51] = t24;
410
399
  } else {
411
- t24 = $[53];
400
+ t24 = $[51];
412
401
  }
413
402
  const handleMarkAllRead = t24;
414
403
  let t25;
415
- if ($[54] !== active || $[55] !== handleMarkAllRead) {
404
+ if ($[52] !== active || $[53] !== handleMarkAllRead) {
416
405
  t25 = () => {
417
406
  if (active === FilterTypes.All) {
418
407
  return handleMarkAllRead();
@@ -424,55 +413,55 @@ export const FilterDropdownListHeaderComponent = () => {
424
413
  onPress: () => handleMarkAllRead()
425
414
  }]);
426
415
  };
427
- $[54] = active;
428
- $[55] = handleMarkAllRead;
429
- $[56] = t25;
416
+ $[52] = active;
417
+ $[53] = handleMarkAllRead;
418
+ $[54] = t25;
430
419
  } else {
431
- t25 = $[56];
420
+ t25 = $[54];
432
421
  }
433
422
  const alertMarkAllRead = t25;
434
- const showMoreFilters = canFilterByGroups || canFilterByTeams || canBrowseArchived || hideConversationsEnabled;
423
+ const showMoreFilters = canFilterByGroups || canFilterByTeams || canBrowseArchived;
435
424
  const styles = useStyles();
436
425
  const [rowWidth, setRowWidth] = useState();
437
426
  const [actionsWidth, setActionsWidth] = useState();
438
427
  const [widestFixedLabelWidth, setWidestFixedLabelWidth] = useState();
439
428
  let t26;
440
- if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
429
+ if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
441
430
  t26 = t27 => {
442
431
  const {
443
432
  nativeEvent
444
433
  } = t27;
445
434
  setRowWidth(previous => holdSubPointJitter(previous, nativeEvent.layout.width));
446
435
  };
447
- $[57] = t26;
436
+ $[55] = t26;
448
437
  } else {
449
- t26 = $[57];
438
+ t26 = $[55];
450
439
  }
451
440
  const handleRowLayout = t26;
452
441
  let t27;
453
- if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
442
+ if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
454
443
  t27 = t28 => {
455
444
  const {
456
445
  nativeEvent: nativeEvent_0
457
446
  } = t28;
458
447
  setActionsWidth(previous_0 => holdSubPointJitter(previous_0, nativeEvent_0.layout.width));
459
448
  };
460
- $[58] = t27;
449
+ $[56] = t27;
461
450
  } else {
462
- t27 = $[58];
451
+ t27 = $[56];
463
452
  }
464
453
  const handleActionsLayout = t27;
465
454
  let t28;
466
- if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
455
+ if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
467
456
  t28 = t29 => {
468
457
  const {
469
458
  nativeEvent: nativeEvent_1
470
459
  } = t29;
471
460
  setWidestFixedLabelWidth(previous_1 => holdSubPointJitter(previous_1, nativeEvent_1.layout.width));
472
461
  };
473
- $[59] = t28;
462
+ $[57] = t28;
474
463
  } else {
475
- t28 = $[59];
464
+ t28 = $[57];
476
465
  }
477
466
  const handleWidestFixedLabelLayout = t28;
478
467
  let t29;
@@ -491,7 +480,7 @@ export const FilterDropdownListHeaderComponent = () => {
491
480
  }
492
481
  const triggerMaxWidth = t29;
493
482
  let t30;
494
- if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
483
+ if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
495
484
  t30 = /*#__PURE__*/_jsx(FilterDropdownTrigger, {
496
485
  label: ALL_CONVERSATIONS_LABEL,
497
486
  onLayout: handleWidestFixedLabelLayout,
@@ -499,24 +488,24 @@ export const FilterDropdownListHeaderComponent = () => {
499
488
  accessibilityElementsHidden: true,
500
489
  importantForAccessibility: "no-hide-descendants"
501
490
  });
502
- $[60] = t30;
491
+ $[58] = t30;
503
492
  } else {
504
- t30 = $[60];
493
+ t30 = $[58];
505
494
  }
506
495
  let t31;
507
- if ($[61] !== styles.widestFixedLabel) {
496
+ if ($[59] !== styles.widestFixedLabel) {
508
497
  t31 = /*#__PURE__*/_jsx(View, {
509
498
  style: styles.widestFixedLabel,
510
499
  pointerEvents: "none",
511
500
  children: t30
512
501
  });
513
- $[61] = styles.widestFixedLabel;
514
- $[62] = t31;
502
+ $[59] = styles.widestFixedLabel;
503
+ $[60] = t31;
515
504
  } else {
516
- t31 = $[62];
505
+ t31 = $[60];
517
506
  }
518
507
  let t32;
519
- if ($[63] !== active || $[64] !== handleOpenConversationFilters || $[65] !== handleSelectFilter || $[66] !== options || $[67] !== showMoreFilters || $[68] !== triggerLabel || $[69] !== triggerMaxWidth) {
508
+ if ($[61] !== active || $[62] !== handleOpenConversationFilters || $[63] !== handleSelectFilter || $[64] !== options || $[65] !== showMoreFilters || $[66] !== triggerLabel || $[67] !== triggerMaxWidth) {
520
509
  t32 = /*#__PURE__*/_jsx(FilterDropdown, {
521
510
  options: options,
522
511
  selectedId: active,
@@ -526,31 +515,31 @@ export const FilterDropdownListHeaderComponent = () => {
526
515
  triggerLabel: triggerLabel,
527
516
  maxWidth: triggerMaxWidth
528
517
  });
529
- $[63] = active;
530
- $[64] = handleOpenConversationFilters;
531
- $[65] = handleSelectFilter;
532
- $[66] = options;
533
- $[67] = showMoreFilters;
534
- $[68] = triggerLabel;
535
- $[69] = triggerMaxWidth;
536
- $[70] = t32;
518
+ $[61] = active;
519
+ $[62] = handleOpenConversationFilters;
520
+ $[63] = handleSelectFilter;
521
+ $[64] = options;
522
+ $[65] = showMoreFilters;
523
+ $[66] = triggerLabel;
524
+ $[67] = triggerMaxWidth;
525
+ $[68] = t32;
537
526
  } else {
538
- t32 = $[70];
527
+ t32 = $[68];
539
528
  }
540
529
  let t33;
541
- if ($[71] !== styles.titleContainer || $[72] !== t32) {
530
+ if ($[69] !== styles.titleContainer || $[70] !== t32) {
542
531
  t33 = /*#__PURE__*/_jsx(View, {
543
532
  style: styles.titleContainer,
544
533
  children: t32
545
534
  });
546
- $[71] = styles.titleContainer;
547
- $[72] = t32;
548
- $[73] = t33;
535
+ $[69] = styles.titleContainer;
536
+ $[70] = t32;
537
+ $[71] = t33;
549
538
  } else {
550
- t33 = $[73];
539
+ t33 = $[71];
551
540
  }
552
541
  let t34;
553
- if ($[74] !== handleChatSettings) {
542
+ if ($[72] !== handleChatSettings) {
554
543
  t34 = /*#__PURE__*/_jsx(ListHeaderActionButton, {
555
544
  name: "general.cog",
556
545
  onPress: handleChatSettings,
@@ -558,13 +547,13 @@ export const FilterDropdownListHeaderComponent = () => {
558
547
  testID: "conversations-chat-settings-button",
559
548
  maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
560
549
  });
561
- $[74] = handleChatSettings;
562
- $[75] = t34;
550
+ $[72] = handleChatSettings;
551
+ $[73] = t34;
563
552
  } else {
564
- t34 = $[75];
553
+ t34 = $[73];
565
554
  }
566
555
  let t35;
567
- if ($[76] !== canCreateConversations || $[77] !== handleNewConversationNavigation) {
556
+ if ($[74] !== canCreateConversations || $[75] !== handleNewConversationNavigation) {
568
557
  t35 = canCreateConversations && /*#__PURE__*/_jsx(ListHeaderActionButton, {
569
558
  name: "churchCenter.signups",
570
559
  onPress: handleNewConversationNavigation,
@@ -572,14 +561,14 @@ export const FilterDropdownListHeaderComponent = () => {
572
561
  testID: "conversations-new-conversation-button",
573
562
  maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
574
563
  });
575
- $[76] = canCreateConversations;
576
- $[77] = handleNewConversationNavigation;
577
- $[78] = t35;
564
+ $[74] = canCreateConversations;
565
+ $[75] = handleNewConversationNavigation;
566
+ $[76] = t35;
578
567
  } else {
579
- t35 = $[78];
568
+ t35 = $[76];
580
569
  }
581
570
  let t36;
582
- if ($[79] !== handleSearch || $[80] !== searchEnabled) {
571
+ if ($[77] !== handleSearch || $[78] !== searchEnabled) {
583
572
  t36 = searchEnabled && /*#__PURE__*/_jsx(ListHeaderActionButton, {
584
573
  name: "general.search",
585
574
  onPress: handleSearch,
@@ -587,46 +576,46 @@ export const FilterDropdownListHeaderComponent = () => {
587
576
  testID: "conversations-search-button",
588
577
  maxFontSizeMultiplier: MAX_FONT_SIZE_MULTIPLIER_LANDMARK
589
578
  });
590
- $[79] = handleSearch;
591
- $[80] = searchEnabled;
592
- $[81] = t36;
579
+ $[77] = handleSearch;
580
+ $[78] = searchEnabled;
581
+ $[79] = t36;
593
582
  } else {
594
- t36 = $[81];
583
+ t36 = $[79];
595
584
  }
596
585
  let t37;
597
- if ($[82] !== styles.actionsContainer || $[83] !== t34 || $[84] !== t35 || $[85] !== t36) {
586
+ if ($[80] !== styles.actionsContainer || $[81] !== t34 || $[82] !== t35 || $[83] !== t36) {
598
587
  t37 = /*#__PURE__*/_jsxs(View, {
599
588
  style: styles.actionsContainer,
600
589
  onLayout: handleActionsLayout,
601
590
  testID: "conversations-filter-heading-actions",
602
591
  children: [t34, t35, t36]
603
592
  });
604
- $[82] = styles.actionsContainer;
605
- $[83] = t34;
606
- $[84] = t35;
607
- $[85] = t36;
608
- $[86] = t37;
593
+ $[80] = styles.actionsContainer;
594
+ $[81] = t34;
595
+ $[82] = t35;
596
+ $[83] = t36;
597
+ $[84] = t37;
609
598
  } else {
610
- t37 = $[86];
599
+ t37 = $[84];
611
600
  }
612
601
  let t38;
613
- if ($[87] !== styles.headingRow || $[88] !== t33 || $[89] !== t37) {
602
+ if ($[85] !== styles.headingRow || $[86] !== t33 || $[87] !== t37) {
614
603
  t38 = /*#__PURE__*/_jsxs(View, {
615
604
  style: styles.headingRow,
616
605
  onLayout: handleRowLayout,
617
606
  testID: "conversations-filter-heading-row",
618
607
  children: [t33, t37]
619
608
  });
620
- $[87] = styles.headingRow;
621
- $[88] = t33;
622
- $[89] = t37;
623
- $[90] = t38;
609
+ $[85] = styles.headingRow;
610
+ $[86] = t33;
611
+ $[87] = t37;
612
+ $[88] = t38;
624
613
  } else {
625
- t38 = $[90];
614
+ t38 = $[88];
626
615
  }
627
616
  let t39;
628
- if ($[91] !== alertMarkAllRead || $[92] !== isPending || $[93] !== show_archived || $[94] !== show_hidden || $[95] !== styles.markAllReadRow) {
629
- t39 = !show_archived && !show_hidden && /*#__PURE__*/_jsx(View, {
617
+ if ($[89] !== alertMarkAllRead || $[90] !== isPending || $[91] !== show_archived || $[92] !== styles.markAllReadRow) {
618
+ t39 = !show_archived && /*#__PURE__*/_jsx(View, {
630
619
  style: styles.markAllReadRow,
631
620
  children: /*#__PURE__*/_jsx(TextButton, {
632
621
  onPress: alertMarkAllRead,
@@ -637,28 +626,27 @@ export const FilterDropdownListHeaderComponent = () => {
637
626
  children: "Mark all read"
638
627
  })
639
628
  });
640
- $[91] = alertMarkAllRead;
641
- $[92] = isPending;
642
- $[93] = show_archived;
643
- $[94] = show_hidden;
644
- $[95] = styles.markAllReadRow;
645
- $[96] = t39;
629
+ $[89] = alertMarkAllRead;
630
+ $[90] = isPending;
631
+ $[91] = show_archived;
632
+ $[92] = styles.markAllReadRow;
633
+ $[93] = t39;
646
634
  } else {
647
- t39 = $[96];
635
+ t39 = $[93];
648
636
  }
649
637
  let t40;
650
- if ($[97] !== styles.listHeader || $[98] !== t31 || $[99] !== t38 || $[100] !== t39) {
638
+ if ($[94] !== styles.listHeader || $[95] !== t31 || $[96] !== t38 || $[97] !== t39) {
651
639
  t40 = /*#__PURE__*/_jsxs(View, {
652
640
  style: styles.listHeader,
653
641
  children: [t31, t38, t39]
654
642
  });
655
- $[97] = styles.listHeader;
656
- $[98] = t31;
657
- $[99] = t38;
658
- $[100] = t39;
659
- $[101] = t40;
643
+ $[94] = styles.listHeader;
644
+ $[95] = t31;
645
+ $[96] = t38;
646
+ $[97] = t39;
647
+ $[98] = t40;
660
648
  } else {
661
- t40 = $[101];
649
+ t40 = $[98];
662
650
  }
663
651
  return t40;
664
652
  };