@planningcenter/chat-react-native 4.7.1-qa-staging.1 → 4.7.1-qa-1092.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 (175) hide show
  1. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  2. package/build/components/conversations/conversation_actions.js +193 -333
  3. package/build/components/conversations/conversation_actions.js.map +1 -1
  4. package/build/components/conversations/conversation_preview.d.ts.map +1 -1
  5. package/build/components/conversations/conversation_preview.js +91 -106
  6. package/build/components/conversations/conversation_preview.js.map +1 -1
  7. package/build/components/conversations/conversations.d.ts.map +1 -1
  8. package/build/components/conversations/conversations.js +56 -63
  9. package/build/components/conversations/conversations.js.map +1 -1
  10. package/build/components/conversations/conversations_blank_state.d.ts +1 -2
  11. package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
  12. package/build/components/conversations/conversations_blank_state.js +39 -71
  13. package/build/components/conversations/conversations_blank_state.js.map +1 -1
  14. package/build/components/group_conversation_list.d.ts.map +1 -1
  15. package/build/components/group_conversation_list.js +0 -1
  16. package/build/components/group_conversation_list.js.map +1 -1
  17. package/build/contexts/conversations_context.d.ts +1 -3
  18. package/build/contexts/conversations_context.d.ts.map +1 -1
  19. package/build/contexts/conversations_context.js +31 -39
  20. package/build/contexts/conversations_context.js.map +1 -1
  21. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +0 -6
  22. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  23. package/build/hooks/use_api.d.ts +0 -6
  24. package/build/hooks/use_api.d.ts.map +1 -1
  25. package/build/hooks/use_api.js +5 -8
  26. package/build/hooks/use_api.js.map +1 -1
  27. package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
  28. package/build/hooks/use_clear_conversation_filters.js +0 -1
  29. package/build/hooks/use_clear_conversation_filters.js.map +1 -1
  30. package/build/hooks/use_conversation.d.ts.map +1 -1
  31. package/build/hooks/use_conversation.js +1 -1
  32. package/build/hooks/use_conversation.js.map +1 -1
  33. package/build/hooks/use_features.d.ts +0 -1
  34. package/build/hooks/use_features.d.ts.map +1 -1
  35. package/build/hooks/use_features.js +1 -2
  36. package/build/hooks/use_features.js.map +1 -1
  37. package/build/hooks/use_groups.d.ts +0 -6
  38. package/build/hooks/use_groups.d.ts.map +1 -1
  39. package/build/hooks/use_groups_groups.d.ts +0 -6
  40. package/build/hooks/use_groups_groups.d.ts.map +1 -1
  41. package/build/hooks/use_teams.d.ts +0 -6
  42. package/build/hooks/use_teams.d.ts.map +1 -1
  43. package/build/navigation/index.d.ts +0 -5
  44. package/build/navigation/index.d.ts.map +1 -1
  45. package/build/navigation/index.js +0 -5
  46. package/build/navigation/index.js.map +1 -1
  47. package/build/screens/conversation_details_screen.d.ts.map +1 -1
  48. package/build/screens/conversation_details_screen.js +394 -460
  49. package/build/screens/conversation_details_screen.js.map +1 -1
  50. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  51. package/build/screens/conversation_filters/components/conversation_filters.js +12 -53
  52. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  53. package/build/screens/conversation_filters/components/rows.d.ts +3 -6
  54. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  55. package/build/screens/conversation_filters/components/rows.js +62 -99
  56. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  57. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  58. package/build/screens/conversation_filters/context/conversation_filter_context.js +0 -4
  59. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  60. package/build/screens/conversation_filters/filter_types.d.ts +0 -1
  61. package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
  62. package/build/screens/conversation_filters/filter_types.js +0 -1
  63. package/build/screens/conversation_filters/filter_types.js.map +1 -1
  64. package/build/screens/conversation_filters/hooks/filters.d.ts +0 -12
  65. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
  66. package/build/screens/conversation_filters/screen_props.d.ts +0 -1
  67. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  68. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  69. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
  70. package/build/screens/conversations/components/filter_dropdown_list_header_component.js +126 -138
  71. package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
  72. package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
  73. package/build/screens/conversations/components/list_header_component.js +90 -95
  74. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  75. package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
  76. package/build/screens/conversations/components/search_list_header_component.js +95 -100
  77. package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
  78. package/build/screens/conversations/conversations_screen.d.ts +0 -1
  79. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  80. package/build/screens/conversations/conversations_screen.js +10 -18
  81. package/build/screens/conversations/conversations_screen.js.map +1 -1
  82. package/build/screens/index.d.ts +0 -1
  83. package/build/screens/index.d.ts.map +1 -1
  84. package/build/screens/index.js +0 -1
  85. package/build/screens/index.js.map +1 -1
  86. package/build/types/resources/conversation_membership.d.ts +0 -1
  87. package/build/types/resources/conversation_membership.d.ts.map +1 -1
  88. package/build/types/resources/conversation_membership.js.map +1 -1
  89. package/build/utils/request/conversation.d.ts +1 -3
  90. package/build/utils/request/conversation.d.ts.map +1 -1
  91. package/build/utils/request/conversation.js +0 -4
  92. package/build/utils/request/conversation.js.map +1 -1
  93. package/build/vendor/font_awesome_pro_solid_icons.d.ts +0 -1
  94. package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
  95. package/build/vendor/font_awesome_pro_solid_icons.js +0 -5
  96. package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
  97. package/package.json +3 -3
  98. package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +0 -6
  99. package/src/components/conversations/__tests__/conversation_actions.test.tsx +2 -77
  100. package/src/components/conversations/__tests__/conversation_preview.test.tsx +0 -29
  101. package/src/components/conversations/__tests__/conversations.test.tsx +0 -26
  102. package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +0 -17
  103. package/src/components/conversations/conversation_actions.tsx +4 -73
  104. package/src/components/conversations/conversation_preview.tsx +1 -12
  105. package/src/components/conversations/conversations.tsx +0 -9
  106. package/src/components/conversations/conversations_blank_state.tsx +0 -18
  107. package/src/components/group_conversation_list.tsx +1 -4
  108. package/src/contexts/conversations_context.tsx +1 -8
  109. package/src/hooks/use_api.ts +1 -2
  110. package/src/hooks/use_clear_conversation_filters.ts +0 -1
  111. package/src/hooks/use_conversation.ts +0 -1
  112. package/src/hooks/use_features.ts +0 -1
  113. package/src/navigation/index.tsx +0 -8
  114. package/src/screens/__tests__/conversation_details_screen.test.tsx +1 -49
  115. package/src/screens/conversation_details_screen.tsx +0 -19
  116. package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +0 -42
  117. package/src/screens/conversation_filters/components/conversation_filters.tsx +3 -22
  118. package/src/screens/conversation_filters/components/rows.tsx +10 -44
  119. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +0 -4
  120. package/src/screens/conversation_filters/filter_types.ts +0 -1
  121. package/src/screens/conversation_filters/screen_props.ts +0 -1
  122. package/src/screens/conversations/__tests__/conversations_screen.test.tsx +0 -1
  123. package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +0 -42
  124. package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +0 -1
  125. package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +5 -21
  126. package/src/screens/conversations/components/list_header_component.tsx +4 -14
  127. package/src/screens/conversations/components/search_list_header_component.tsx +4 -14
  128. package/src/screens/conversations/conversations_screen.tsx +0 -3
  129. package/src/screens/index.ts +0 -1
  130. package/src/types/resources/conversation_membership.ts +0 -1
  131. package/src/utils/request/conversation.ts +0 -6
  132. package/src/vendor/font_awesome_pro_solid_icons.ts +0 -12
  133. package/build/components/conversations/hidden_indicator.d.ts +0 -4
  134. package/build/components/conversations/hidden_indicator.d.ts.map +0 -1
  135. package/build/components/conversations/hidden_indicator.js +0 -52
  136. package/build/components/conversations/hidden_indicator.js.map +0 -1
  137. package/build/components/conversations/hidden_results_footer.d.ts +0 -2
  138. package/build/components/conversations/hidden_results_footer.d.ts.map +0 -1
  139. package/build/components/conversations/hidden_results_footer.js +0 -34
  140. package/build/components/conversations/hidden_results_footer.js.map +0 -1
  141. package/build/components/display/toast.d.ts +0 -3
  142. package/build/components/display/toast.d.ts.map +0 -1
  143. package/build/components/display/toast.js +0 -224
  144. package/build/components/display/toast.js.map +0 -1
  145. package/build/hooks/use_hidden_conversations_count.d.ts +0 -2
  146. package/build/hooks/use_hidden_conversations_count.d.ts.map +0 -1
  147. package/build/hooks/use_hidden_conversations_count.js +0 -32
  148. package/build/hooks/use_hidden_conversations_count.js.map +0 -1
  149. package/build/hooks/use_hide_conversation.d.ts +0 -108
  150. package/build/hooks/use_hide_conversation.d.ts.map +0 -1
  151. package/build/hooks/use_hide_conversation.js +0 -243
  152. package/build/hooks/use_hide_conversation.js.map +0 -1
  153. package/build/hooks/use_hide_conversations_enabled.d.ts +0 -2
  154. package/build/hooks/use_hide_conversations_enabled.d.ts.map +0 -1
  155. package/build/hooks/use_hide_conversations_enabled.js +0 -18
  156. package/build/hooks/use_hide_conversations_enabled.js.map +0 -1
  157. package/build/screens/conversation_actions_screen.d.ts +0 -7
  158. package/build/screens/conversation_actions_screen.d.ts.map +0 -1
  159. package/build/screens/conversation_actions_screen.js +0 -89
  160. package/build/screens/conversation_actions_screen.js.map +0 -1
  161. package/build/utils/toast_store.d.ts +0 -21
  162. package/build/utils/toast_store.d.ts.map +0 -1
  163. package/build/utils/toast_store.js +0 -27
  164. package/build/utils/toast_store.js.map +0 -1
  165. package/src/components/conversations/hidden_indicator.tsx +0 -30
  166. package/src/components/conversations/hidden_results_footer.tsx +0 -25
  167. package/src/components/display/__tests__/toast.test.tsx +0 -55
  168. package/src/components/display/toast.tsx +0 -115
  169. package/src/hooks/__tests__/use_hide_conversation.test.tsx +0 -189
  170. package/src/hooks/use_hidden_conversations_count.ts +0 -14
  171. package/src/hooks/use_hide_conversation.ts +0 -128
  172. package/src/hooks/use_hide_conversations_enabled.ts +0 -7
  173. package/src/screens/__tests__/conversation_actions_screen.test.tsx +0 -79
  174. package/src/screens/conversation_actions_screen.tsx +0 -53
  175. package/src/utils/toast_store.ts +0 -45
@@ -1,20 +1,16 @@
1
1
  import { c as _c } from "react/compiler-runtime";
2
- import { useNavigation } from '@react-navigation/native';
3
2
  import React, { useCallback, useEffect, useRef, useState } from 'react';
4
3
  import { Platform, Pressable, StyleSheet, View } from 'react-native';
5
4
  import ReanimatedSwipeable from 'react-native-gesture-handler/ReanimatedSwipeable';
6
5
  import { useConversationsContext } from '../../contexts/conversations_context';
7
6
  import { useTheme, useCreateAndroidRippleColor } from '../../hooks';
8
7
  import { useConversationsMarkRead, useConversationsMute } from '../../hooks/use_conversations_actions';
9
- import { useHideConversation } from '../../hooks/use_hide_conversation';
10
- import { useHideConversationsEnabled } from '../../hooks/use_hide_conversations_enabled';
11
8
  import { isArchivedConversation, platformPressedOpacityStyle } from '../../utils';
12
- import { Haptic } from '../../utils/native_adapters';
13
9
  import { tokens } from '../../vendor/tapestry/tokens';
14
10
  import { SwipeableToggleButton } from './swipeable_toggle_button';
15
11
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
16
12
  export function ConversationActions(t0) {
17
- const $ = _c(90);
13
+ const $ = _c(66);
18
14
  const {
19
15
  children,
20
16
  conversation,
@@ -23,13 +19,10 @@ export function ConversationActions(t0) {
23
19
  accessibilityLabel
24
20
  } = t0;
25
21
  const swipeableRef = useRef(null);
26
- const navigation = useNavigation();
27
22
  const styles = useStyles();
28
23
  const {
29
24
  activeConversationId,
30
- setActiveConversationId,
31
- hideable,
32
- args
25
+ setActiveConversationId
33
26
  } = useConversationsContext();
34
27
  const [disabled, setDisabled] = useState(false);
35
28
  const overshootLeft = Platform.OS === "ios";
@@ -74,347 +67,253 @@ export function ConversationActions(t0) {
74
67
  markRead,
75
68
  isPending: isMarkReadPending
76
69
  } = useConversationsMarkRead(t3);
77
- const t4 = args.show_hidden || undefined;
78
- let t5;
79
- if ($[6] !== conversation || $[7] !== t4) {
80
- t5 = {
81
- conversation,
82
- hidden: t4
83
- };
70
+ const isConversationEmpty = conversation.lastMessageCreatedAt === null;
71
+ let t4;
72
+ if ($[6] !== conversation) {
73
+ t4 = isArchivedConversation(conversation);
84
74
  $[6] = conversation;
85
75
  $[7] = t4;
86
- $[8] = t5;
87
76
  } else {
88
- t5 = $[8];
77
+ t4 = $[7];
89
78
  }
90
- const {
91
- hidden,
92
- setHidden,
93
- isPending: isHiddenPending
94
- } = useHideConversation(t5);
95
- const hideConversationsEnabled = useHideConversationsEnabled();
96
- const isConversationEmpty = conversation.lastMessageCreatedAt === null;
97
- let t6;
98
- if ($[9] !== conversation) {
99
- t6 = isArchivedConversation(conversation);
100
- $[9] = conversation;
101
- $[10] = t6;
102
- } else {
103
- t6 = $[10];
104
- }
105
- const canMute = !t6;
106
- let t7;
107
- if ($[11] !== conversation || $[12] !== hideConversationsEnabled || $[13] !== hideable) {
108
- t7 = hideable && hideConversationsEnabled && !isArchivedConversation(conversation);
109
- $[11] = conversation;
110
- $[12] = hideConversationsEnabled;
111
- $[13] = hideable;
112
- $[14] = t7;
113
- } else {
114
- t7 = $[14];
115
- }
116
- const canHide = t7;
117
- let t8;
118
- if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
119
- t8 = () => {
79
+ const canMute = !t4;
80
+ let t5;
81
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
82
+ t5 = () => {
120
83
  setDisabled(false);
121
84
  swipeableRef.current?.close();
122
85
  };
123
- $[15] = t8;
86
+ $[8] = t5;
124
87
  } else {
125
- t8 = $[15];
88
+ t5 = $[8];
126
89
  }
127
- const handleSwipeableClose = t8;
128
- let t9;
129
- if ($[16] !== conversation.id || $[17] !== setActiveConversationId) {
130
- t9 = () => {
90
+ const handleSwipeableClose = t5;
91
+ let t6;
92
+ if ($[9] !== conversation.id || $[10] !== setActiveConversationId) {
93
+ t6 = () => {
131
94
  setDisabled(true);
132
95
  setActiveConversationId(conversation.id);
133
96
  };
134
- $[16] = conversation.id;
135
- $[17] = setActiveConversationId;
136
- $[18] = t9;
97
+ $[9] = conversation.id;
98
+ $[10] = setActiveConversationId;
99
+ $[11] = t6;
137
100
  } else {
138
- t9 = $[18];
101
+ t6 = $[11];
139
102
  }
140
- const handleSwipeableOpen = t9;
141
- let t10;
142
- if ($[19] !== disabled || $[20] !== onPress) {
143
- t10 = () => {
103
+ const handleSwipeableOpen = t6;
104
+ let t7;
105
+ if ($[12] !== disabled || $[13] !== onPress) {
106
+ t7 = () => {
144
107
  if (disabled || !onPress) {
145
108
  return;
146
109
  }
147
110
  onPress();
148
111
  };
149
- $[19] = disabled;
150
- $[20] = onPress;
151
- $[21] = t10;
112
+ $[12] = disabled;
113
+ $[13] = onPress;
114
+ $[14] = t7;
152
115
  } else {
153
- t10 = $[21];
116
+ t7 = $[14];
154
117
  }
155
- const handlePress = t10;
156
- let t11;
157
- if ($[22] !== muted || $[23] !== setMuted) {
158
- t11 = () => {
118
+ const handlePress = t7;
119
+ let t8;
120
+ if ($[15] !== muted || $[16] !== setMuted) {
121
+ t8 = () => {
159
122
  setMuted(!muted);
160
123
  handleSwipeableClose();
161
124
  };
162
- $[22] = muted;
163
- $[23] = setMuted;
164
- $[24] = t11;
165
- } else {
166
- t11 = $[24];
167
- }
168
- const handleMute = t11;
169
- let t12;
170
- if ($[25] !== hidden || $[26] !== setHidden) {
171
- t12 = () => {
172
- setHidden(!hidden);
173
- handleSwipeableClose();
174
- };
175
- $[25] = hidden;
176
- $[26] = setHidden;
177
- $[27] = t12;
178
- } else {
179
- t12 = $[27];
180
- }
181
- const handleHide = t12;
182
- let t13;
183
- if ($[28] !== conversation.id || $[29] !== disabled || $[30] !== navigation) {
184
- t13 = () => {
185
- if (disabled) {
186
- return;
187
- }
188
- Haptic.impactLight();
189
- navigation.navigate("ConversationActions", {
190
- conversation_id: conversation.id
191
- });
192
- };
193
- $[28] = conversation.id;
194
- $[29] = disabled;
195
- $[30] = navigation;
196
- $[31] = t13;
125
+ $[15] = muted;
126
+ $[16] = setMuted;
127
+ $[17] = t8;
197
128
  } else {
198
- t13 = $[31];
129
+ t8 = $[17];
199
130
  }
200
- const handleLongPress = t13;
201
- let t14;
202
- if ($[32] !== markRead || $[33] !== read) {
203
- t14 = () => {
131
+ const handleMute = t8;
132
+ let t9;
133
+ if ($[18] !== markRead || $[19] !== read) {
134
+ t9 = () => {
204
135
  markRead(!read);
205
136
  handleSwipeableClose();
206
137
  };
207
- $[32] = markRead;
208
- $[33] = read;
209
- $[34] = t14;
138
+ $[18] = markRead;
139
+ $[19] = read;
140
+ $[20] = t9;
210
141
  } else {
211
- t14 = $[34];
142
+ t9 = $[20];
212
143
  }
213
- const handleLatestMessageUnread = t14;
214
- let t15;
215
- if ($[35] !== isConversationEmpty || $[36] !== read) {
216
- t15 = !isConversationEmpty ? [{
144
+ const handleLatestMessageUnread = t9;
145
+ let t10;
146
+ if ($[21] !== isConversationEmpty || $[22] !== read) {
147
+ t10 = !isConversationEmpty ? [{
217
148
  name: read ? "markUnread" : "markRead",
218
149
  label: read ? "Mark unread" : "Mark read"
219
150
  }] : [];
220
- $[35] = isConversationEmpty;
221
- $[36] = read;
222
- $[37] = t15;
151
+ $[21] = isConversationEmpty;
152
+ $[22] = read;
153
+ $[23] = t10;
223
154
  } else {
224
- t15 = $[37];
155
+ t10 = $[23];
225
156
  }
226
- const readAccessibilityAction = t15;
227
- let t16;
228
- if ($[38] !== canMute || $[39] !== muted) {
229
- t16 = canMute ? [{
157
+ const readAccessibilityAction = t10;
158
+ let t11;
159
+ if ($[24] !== canMute || $[25] !== muted) {
160
+ t11 = canMute ? [{
230
161
  name: muted ? "unmute" : "mute",
231
162
  label: muted ? "Enable" : "Silence"
232
163
  }] : [];
233
- $[38] = canMute;
234
- $[39] = muted;
235
- $[40] = t16;
164
+ $[24] = canMute;
165
+ $[25] = muted;
166
+ $[26] = t11;
236
167
  } else {
237
- t16 = $[40];
168
+ t11 = $[26];
238
169
  }
239
- const muteAccessibilityAction = t16;
240
- let t17;
241
- if ($[41] !== canHide || $[42] !== hidden) {
242
- t17 = canHide ? [{
243
- name: hidden ? "unhide" : "hide",
244
- label: hidden ? "Unhide" : "Hide"
245
- }] : [];
246
- $[41] = canHide;
247
- $[42] = hidden;
248
- $[43] = t17;
249
- } else {
250
- t17 = $[43];
251
- }
252
- const hideAccessibilityAction = t17;
253
- let t18;
254
- if ($[44] !== hideAccessibilityAction || $[45] !== muteAccessibilityAction || $[46] !== readAccessibilityAction) {
255
- t18 = [...muteAccessibilityAction, ...hideAccessibilityAction, ...readAccessibilityAction];
256
- $[44] = hideAccessibilityAction;
257
- $[45] = muteAccessibilityAction;
258
- $[46] = readAccessibilityAction;
259
- $[47] = t18;
170
+ const muteAccessibilityAction = t11;
171
+ let t12;
172
+ if ($[27] !== muteAccessibilityAction || $[28] !== readAccessibilityAction) {
173
+ t12 = [...muteAccessibilityAction, ...readAccessibilityAction];
174
+ $[27] = muteAccessibilityAction;
175
+ $[28] = readAccessibilityAction;
176
+ $[29] = t12;
260
177
  } else {
261
- t18 = $[47];
178
+ t12 = $[29];
262
179
  }
263
- const accessibilityActions = t18;
264
- let t19;
265
- if ($[48] !== handleHide || $[49] !== handleLatestMessageUnread || $[50] !== handleMute) {
266
- t19 = event => {
267
- bb74: switch (event.nativeEvent.actionName) {
180
+ const accessibilityActions = t12;
181
+ let t13;
182
+ if ($[30] !== handleLatestMessageUnread || $[31] !== handleMute) {
183
+ t13 = event => {
184
+ bb45: switch (event.nativeEvent.actionName) {
268
185
  case "markRead":
269
186
  {
270
187
  handleLatestMessageUnread();
271
- break bb74;
188
+ break bb45;
272
189
  }
273
190
  case "markUnread":
274
191
  {
275
192
  handleLatestMessageUnread();
276
- break bb74;
193
+ break bb45;
277
194
  }
278
195
  case "mute":
279
196
  {
280
197
  handleMute();
281
- break bb74;
198
+ break bb45;
282
199
  }
283
200
  case "unmute":
284
201
  {
285
202
  handleMute();
286
- break bb74;
287
- }
288
- case "hide":
289
- case "unhide":
290
- {
291
- handleHide();
292
203
  }
293
204
  }
294
205
  };
295
- $[48] = handleHide;
296
- $[49] = handleLatestMessageUnread;
297
- $[50] = handleMute;
298
- $[51] = t19;
206
+ $[30] = handleLatestMessageUnread;
207
+ $[31] = handleMute;
208
+ $[32] = t13;
299
209
  } else {
300
- t19 = $[51];
210
+ t13 = $[32];
301
211
  }
302
- const handleAccessibilityAction = t19;
303
- let t20;
304
- let t21;
305
- if ($[52] !== activeConversationId || $[53] !== conversation.id) {
306
- t20 = () => {
212
+ const handleAccessibilityAction = t13;
213
+ let t14;
214
+ let t15;
215
+ if ($[33] !== activeConversationId || $[34] !== conversation.id) {
216
+ t14 = () => {
307
217
  if (activeConversationId === conversation.id) {
308
218
  return;
309
219
  }
310
220
  handleSwipeableClose();
311
221
  };
312
- t21 = [activeConversationId, conversation.id, handleSwipeableClose];
313
- $[52] = activeConversationId;
314
- $[53] = conversation.id;
315
- $[54] = t20;
316
- $[55] = t21;
222
+ t15 = [activeConversationId, conversation.id, handleSwipeableClose];
223
+ $[33] = activeConversationId;
224
+ $[34] = conversation.id;
225
+ $[35] = t14;
226
+ $[36] = t15;
317
227
  } else {
318
- t20 = $[54];
319
- t21 = $[55];
228
+ t14 = $[35];
229
+ t15 = $[36];
320
230
  }
321
- useEffect(t20, t21);
322
- let t22;
323
- if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
324
- t22 = () => setDisabled(false);
325
- $[56] = t22;
231
+ useEffect(t14, t15);
232
+ let t16;
233
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
234
+ t16 = () => setDisabled(false);
235
+ $[37] = t16;
326
236
  } else {
327
- t22 = $[56];
237
+ t16 = $[37];
328
238
  }
329
- let t23;
330
- if ($[57] !== canHide || $[58] !== canMute || $[59] !== handleHide || $[60] !== handleLatestMessageUnread || $[61] !== handleMute || $[62] !== hidden || $[63] !== isConversationEmpty || $[64] !== isHiddenPending || $[65] !== isMarkReadPending || $[66] !== isMutedPending || $[67] !== muted || $[68] !== read) {
331
- t23 = () => /*#__PURE__*/_jsx(LeftActions, {
239
+ let t17;
240
+ if ($[38] !== canMute || $[39] !== handleLatestMessageUnread || $[40] !== handleMute || $[41] !== isConversationEmpty || $[42] !== isMarkReadPending || $[43] !== isMutedPending || $[44] !== muted || $[45] !== read) {
241
+ t17 = () => /*#__PURE__*/_jsx(LeftActions, {
332
242
  isConversationEmpty: isConversationEmpty,
333
243
  canMute: canMute,
334
- canHide: canHide,
335
244
  handleMute: handleMute,
336
- handleHide: handleHide,
337
245
  handleLatestMessageUnread: handleLatestMessageUnread,
338
246
  muted: muted,
339
- hidden: hidden,
340
247
  read: read,
341
248
  isMutedPending: isMutedPending,
342
- isHiddenPending: isHiddenPending,
343
249
  isMarkReadPending: isMarkReadPending
344
250
  });
345
- $[57] = canHide;
346
- $[58] = canMute;
347
- $[59] = handleHide;
348
- $[60] = handleLatestMessageUnread;
349
- $[61] = handleMute;
350
- $[62] = hidden;
351
- $[63] = isConversationEmpty;
352
- $[64] = isHiddenPending;
353
- $[65] = isMarkReadPending;
354
- $[66] = isMutedPending;
355
- $[67] = muted;
356
- $[68] = read;
357
- $[69] = t23;
358
- } else {
359
- t23 = $[69];
360
- }
361
- const t24 = `conversation-${conversation.id}`;
362
- const t25 = canHide ? handleLongPress : undefined;
363
- let t26;
364
- if ($[70] !== style) {
365
- t26 = t27 => {
251
+ $[38] = canMute;
252
+ $[39] = handleLatestMessageUnread;
253
+ $[40] = handleMute;
254
+ $[41] = isConversationEmpty;
255
+ $[42] = isMarkReadPending;
256
+ $[43] = isMutedPending;
257
+ $[44] = muted;
258
+ $[45] = read;
259
+ $[46] = t17;
260
+ } else {
261
+ t17 = $[46];
262
+ }
263
+ const t18 = `conversation-${conversation.id}`;
264
+ let t19;
265
+ if ($[47] !== style) {
266
+ t19 = t20 => {
366
267
  const {
367
268
  pressed
368
- } = t27;
269
+ } = t20;
369
270
  return [style, pressed && platformPressedOpacityStyle];
370
271
  };
371
- $[70] = style;
372
- $[71] = t26;
272
+ $[47] = style;
273
+ $[48] = t19;
373
274
  } else {
374
- t26 = $[71];
275
+ t19 = $[48];
375
276
  }
376
- let t27;
377
- if ($[72] !== androidRippleColor) {
378
- t27 = {
277
+ let t20;
278
+ if ($[49] !== androidRippleColor) {
279
+ t20 = {
379
280
  color: androidRippleColor,
380
281
  borderless: false,
381
282
  foreground: true
382
283
  };
383
- $[72] = androidRippleColor;
384
- $[73] = t27;
284
+ $[49] = androidRippleColor;
285
+ $[50] = t20;
385
286
  } else {
386
- t27 = $[73];
287
+ t20 = $[50];
387
288
  }
388
- let t28;
389
- if ($[74] !== accessibilityActions || $[75] !== accessibilityLabel || $[76] !== children || $[77] !== handleAccessibilityAction || $[78] !== handlePress || $[79] !== t24 || $[80] !== t25 || $[81] !== t26 || $[82] !== t27) {
390
- t28 = /*#__PURE__*/_jsx(Pressable, {
391
- testID: t24,
289
+ let t21;
290
+ if ($[51] !== accessibilityActions || $[52] !== accessibilityLabel || $[53] !== children || $[54] !== handleAccessibilityAction || $[55] !== handlePress || $[56] !== t18 || $[57] !== t19 || $[58] !== t20) {
291
+ t21 = /*#__PURE__*/_jsx(Pressable, {
292
+ testID: t18,
392
293
  onPress: handlePress,
393
- onLongPress: t25,
394
- style: t26,
395
- android_ripple: t27,
294
+ style: t19,
295
+ android_ripple: t20,
396
296
  accessibilityLabel: accessibilityLabel,
397
297
  accessibilityRole: "button",
398
298
  accessibilityActions: accessibilityActions,
399
299
  onAccessibilityAction: handleAccessibilityAction,
400
300
  children: children
401
301
  });
402
- $[74] = accessibilityActions;
403
- $[75] = accessibilityLabel;
404
- $[76] = children;
405
- $[77] = handleAccessibilityAction;
406
- $[78] = handlePress;
407
- $[79] = t24;
408
- $[80] = t25;
409
- $[81] = t26;
410
- $[82] = t27;
411
- $[83] = t28;
412
- } else {
413
- t28 = $[83];
302
+ $[51] = accessibilityActions;
303
+ $[52] = accessibilityLabel;
304
+ $[53] = children;
305
+ $[54] = handleAccessibilityAction;
306
+ $[55] = handlePress;
307
+ $[56] = t18;
308
+ $[57] = t19;
309
+ $[58] = t20;
310
+ $[59] = t21;
311
+ } else {
312
+ t21 = $[59];
414
313
  }
415
- let t29;
416
- if ($[84] !== handleSwipeableOpen || $[85] !== styles.swipeableChildContainer || $[86] !== styles.swipeableContainer || $[87] !== t23 || $[88] !== t28) {
417
- t29 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
314
+ let t22;
315
+ if ($[60] !== handleSwipeableOpen || $[61] !== styles.swipeableChildContainer || $[62] !== styles.swipeableContainer || $[63] !== t17 || $[64] !== t21) {
316
+ t22 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
418
317
  ref: swipeableRef,
419
318
  childrenContainerStyle: styles.swipeableChildContainer,
420
319
  containerStyle: styles.swipeableContainer,
@@ -422,42 +321,38 @@ export function ConversationActions(t0) {
422
321
  overshootLeft: overshootLeft,
423
322
  overshootRight: false,
424
323
  onSwipeableOpenStartDrag: handleSwipeableOpen,
425
- onSwipeableClose: t22,
324
+ onSwipeableClose: t16,
426
325
  renderRightActions: _temp,
427
- renderLeftActions: t23,
428
- children: t28
326
+ renderLeftActions: t17,
327
+ children: t21
429
328
  });
430
- $[84] = handleSwipeableOpen;
431
- $[85] = styles.swipeableChildContainer;
432
- $[86] = styles.swipeableContainer;
433
- $[87] = t23;
434
- $[88] = t28;
435
- $[89] = t29;
329
+ $[60] = handleSwipeableOpen;
330
+ $[61] = styles.swipeableChildContainer;
331
+ $[62] = styles.swipeableContainer;
332
+ $[63] = t17;
333
+ $[64] = t21;
334
+ $[65] = t22;
436
335
  } else {
437
- t29 = $[89];
336
+ t22 = $[65];
438
337
  }
439
- return t29;
338
+ return t22;
440
339
  }
441
340
  function _temp() {
442
341
  return /*#__PURE__*/_jsx(_Fragment, {});
443
342
  }
444
343
  function LeftActions(t0) {
445
- const $ = _c(25);
344
+ const $ = _c(18);
446
345
  const {
447
346
  isConversationEmpty,
448
347
  canMute,
449
- canHide,
450
348
  handleMute,
451
- handleHide,
452
349
  handleLatestMessageUnread,
453
350
  muted,
454
- hidden,
455
351
  read,
456
352
  isMutedPending,
457
- isHiddenPending,
458
353
  isMarkReadPending
459
354
  } = t0;
460
- const t1 = 1 + Number(canMute) + Number(canHide);
355
+ const t1 = canMute ? 2 : 1;
461
356
  let t2;
462
357
  if ($[0] !== t1) {
463
358
  t2 = {
@@ -489,23 +384,6 @@ function LeftActions(t0) {
489
384
  let t4;
490
385
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
491
386
  t4 = {
492
- true: {
493
- iconName: "general.showEye",
494
- label: "Unhide"
495
- },
496
- false: {
497
- iconName: "general.hideEye",
498
- label: "Hide"
499
- }
500
- };
501
- $[3] = t4;
502
- } else {
503
- t4 = $[3];
504
- }
505
- const hideToggleContent = t4;
506
- let t5;
507
- if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
508
- t5 = {
509
387
  true: {
510
388
  iconName: "general.outlinedTextMessage",
511
389
  label: "Mark read"
@@ -515,79 +393,61 @@ function LeftActions(t0) {
515
393
  label: "Mark unread"
516
394
  }
517
395
  };
518
- $[4] = t5;
396
+ $[3] = t4;
519
397
  } else {
520
- t5 = $[4];
398
+ t4 = $[3];
521
399
  }
522
- const latestMessageUnreadToggleContent = t5;
523
- const t6 = !read;
524
- let t7;
525
- if ($[5] !== handleLatestMessageUnread || $[6] !== isConversationEmpty || $[7] !== isMarkReadPending || $[8] !== t6) {
526
- t7 = /*#__PURE__*/_jsx(SwipeableToggleButton, {
400
+ const latestMessageUnreadToggleContent = t4;
401
+ const t5 = !read;
402
+ let t6;
403
+ if ($[4] !== handleLatestMessageUnread || $[5] !== isConversationEmpty || $[6] !== isMarkReadPending || $[7] !== t5) {
404
+ t6 = /*#__PURE__*/_jsx(SwipeableToggleButton, {
527
405
  loading: isMarkReadPending,
528
406
  disabled: isConversationEmpty,
529
- toggled: t6,
407
+ toggled: t5,
530
408
  onPress: handleLatestMessageUnread,
531
409
  toggleContent: latestMessageUnreadToggleContent,
532
410
  backgroundColor: tokens.fillColorInteractionSwipeDefault
533
411
  });
534
- $[5] = handleLatestMessageUnread;
535
- $[6] = isConversationEmpty;
536
- $[7] = isMarkReadPending;
412
+ $[4] = handleLatestMessageUnread;
413
+ $[5] = isConversationEmpty;
414
+ $[6] = isMarkReadPending;
415
+ $[7] = t5;
537
416
  $[8] = t6;
538
- $[9] = t7;
539
417
  } else {
540
- t7 = $[9];
418
+ t6 = $[8];
541
419
  }
542
- let t8;
543
- if ($[10] !== canMute || $[11] !== handleMute || $[12] !== isMutedPending || $[13] !== muted) {
544
- t8 = canMute && /*#__PURE__*/_jsx(SwipeableToggleButton, {
420
+ let t7;
421
+ if ($[9] !== canMute || $[10] !== handleMute || $[11] !== isMutedPending || $[12] !== muted) {
422
+ t7 = canMute && /*#__PURE__*/_jsx(SwipeableToggleButton, {
545
423
  loading: isMutedPending,
546
424
  toggled: muted,
547
425
  onPress: handleMute,
548
426
  toggleContent: muteToggleContent,
549
427
  backgroundColor: tokens.fillColorInteractionSwipeSecondary
550
428
  });
551
- $[10] = canMute;
552
- $[11] = handleMute;
553
- $[12] = isMutedPending;
554
- $[13] = muted;
555
- $[14] = t8;
429
+ $[9] = canMute;
430
+ $[10] = handleMute;
431
+ $[11] = isMutedPending;
432
+ $[12] = muted;
433
+ $[13] = t7;
556
434
  } else {
557
- t8 = $[14];
435
+ t7 = $[13];
558
436
  }
559
- let t9;
560
- if ($[15] !== canHide || $[16] !== handleHide || $[17] !== hidden || $[18] !== isHiddenPending) {
561
- t9 = canHide && /*#__PURE__*/_jsx(SwipeableToggleButton, {
562
- loading: isHiddenPending,
563
- toggled: hidden,
564
- onPress: handleHide,
565
- toggleContent: hideToggleContent,
566
- backgroundColor: tokens.colorNeutral45
567
- });
568
- $[15] = canHide;
569
- $[16] = handleHide;
570
- $[17] = hidden;
571
- $[18] = isHiddenPending;
572
- $[19] = t9;
573
- } else {
574
- t9 = $[19];
575
- }
576
- let t10;
577
- if ($[20] !== styles.actionButtonContainer || $[21] !== t7 || $[22] !== t8 || $[23] !== t9) {
578
- t10 = /*#__PURE__*/_jsxs(View, {
437
+ let t8;
438
+ if ($[14] !== styles.actionButtonContainer || $[15] !== t6 || $[16] !== t7) {
439
+ t8 = /*#__PURE__*/_jsxs(View, {
579
440
  style: styles.actionButtonContainer,
580
- children: [t7, t8, t9]
441
+ children: [t6, t7]
581
442
  });
582
- $[20] = styles.actionButtonContainer;
583
- $[21] = t7;
584
- $[22] = t8;
585
- $[23] = t9;
586
- $[24] = t10;
443
+ $[14] = styles.actionButtonContainer;
444
+ $[15] = t6;
445
+ $[16] = t7;
446
+ $[17] = t8;
587
447
  } else {
588
- t10 = $[24];
448
+ t8 = $[17];
589
449
  }
590
- return t10;
450
+ return t8;
591
451
  }
592
452
  const ACTION_BUTTON_WIDTH = 120;
593
453
  const useStyles = t0 => {