@planningcenter/chat-react-native 4.7.1-qa-staging.0 → 4.7.1-qa-staging.1

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 (118) hide show
  1. package/build/components/conversations/conversation_actions.d.ts.map +1 -1
  2. package/build/components/conversations/conversation_actions.js +204 -200
  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 +106 -91
  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 +63 -56
  9. package/build/components/conversations/conversations.js.map +1 -1
  10. package/build/components/conversations/conversations_blank_state.d.ts +2 -1
  11. package/build/components/conversations/conversations_blank_state.d.ts.map +1 -1
  12. package/build/components/conversations/conversations_blank_state.js +71 -39
  13. package/build/components/conversations/conversations_blank_state.js.map +1 -1
  14. package/build/components/conversations/hidden_indicator.d.ts +4 -0
  15. package/build/components/conversations/hidden_indicator.d.ts.map +1 -0
  16. package/build/components/conversations/hidden_indicator.js +52 -0
  17. package/build/components/conversations/hidden_indicator.js.map +1 -0
  18. package/build/components/conversations/hidden_results_footer.d.ts +2 -0
  19. package/build/components/conversations/hidden_results_footer.d.ts.map +1 -0
  20. package/build/components/conversations/hidden_results_footer.js +34 -0
  21. package/build/components/conversations/hidden_results_footer.js.map +1 -0
  22. package/build/contexts/conversations_context.d.ts.map +1 -1
  23. package/build/contexts/conversations_context.js +20 -17
  24. package/build/contexts/conversations_context.js.map +1 -1
  25. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts +6 -0
  26. package/build/hooks/groups/use_group_members_for_new_conversation.d.ts.map +1 -1
  27. package/build/hooks/use_api.d.ts +6 -0
  28. package/build/hooks/use_api.d.ts.map +1 -1
  29. package/build/hooks/use_api.js +8 -5
  30. package/build/hooks/use_api.js.map +1 -1
  31. package/build/hooks/use_clear_conversation_filters.d.ts.map +1 -1
  32. package/build/hooks/use_clear_conversation_filters.js +1 -0
  33. package/build/hooks/use_clear_conversation_filters.js.map +1 -1
  34. package/build/hooks/use_groups.d.ts +6 -0
  35. package/build/hooks/use_groups.d.ts.map +1 -1
  36. package/build/hooks/use_groups_groups.d.ts +6 -0
  37. package/build/hooks/use_groups_groups.d.ts.map +1 -1
  38. package/build/hooks/use_hidden_conversations_count.d.ts +2 -0
  39. package/build/hooks/use_hidden_conversations_count.d.ts.map +1 -0
  40. package/build/hooks/use_hidden_conversations_count.js +32 -0
  41. package/build/hooks/use_hidden_conversations_count.js.map +1 -0
  42. package/build/hooks/use_hide_conversation.d.ts +2 -1
  43. package/build/hooks/use_hide_conversation.d.ts.map +1 -1
  44. package/build/hooks/use_hide_conversation.js +100 -95
  45. package/build/hooks/use_hide_conversation.js.map +1 -1
  46. package/build/hooks/use_teams.d.ts +6 -0
  47. package/build/hooks/use_teams.d.ts.map +1 -1
  48. package/build/screens/conversation_filters/components/conversation_filters.d.ts.map +1 -1
  49. package/build/screens/conversation_filters/components/conversation_filters.js +53 -12
  50. package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
  51. package/build/screens/conversation_filters/components/rows.d.ts +6 -3
  52. package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
  53. package/build/screens/conversation_filters/components/rows.js +99 -62
  54. package/build/screens/conversation_filters/components/rows.js.map +1 -1
  55. package/build/screens/conversation_filters/context/conversation_filter_context.d.ts.map +1 -1
  56. package/build/screens/conversation_filters/context/conversation_filter_context.js +4 -0
  57. package/build/screens/conversation_filters/context/conversation_filter_context.js.map +1 -1
  58. package/build/screens/conversation_filters/filter_types.d.ts +1 -0
  59. package/build/screens/conversation_filters/filter_types.d.ts.map +1 -1
  60. package/build/screens/conversation_filters/filter_types.js +1 -0
  61. package/build/screens/conversation_filters/filter_types.js.map +1 -1
  62. package/build/screens/conversation_filters/hooks/filters.d.ts +12 -0
  63. package/build/screens/conversation_filters/hooks/filters.d.ts.map +1 -1
  64. package/build/screens/conversation_filters/screen_props.d.ts +1 -0
  65. package/build/screens/conversation_filters/screen_props.d.ts.map +1 -1
  66. package/build/screens/conversation_filters/screen_props.js.map +1 -1
  67. package/build/screens/conversations/components/filter_dropdown_list_header_component.d.ts.map +1 -1
  68. package/build/screens/conversations/components/filter_dropdown_list_header_component.js +138 -126
  69. package/build/screens/conversations/components/filter_dropdown_list_header_component.js.map +1 -1
  70. package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
  71. package/build/screens/conversations/components/list_header_component.js +95 -90
  72. package/build/screens/conversations/components/list_header_component.js.map +1 -1
  73. package/build/screens/conversations/components/search_list_header_component.d.ts.map +1 -1
  74. package/build/screens/conversations/components/search_list_header_component.js +100 -95
  75. package/build/screens/conversations/components/search_list_header_component.js.map +1 -1
  76. package/build/screens/conversations/conversations_screen.d.ts +1 -0
  77. package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
  78. package/build/screens/conversations/conversations_screen.js.map +1 -1
  79. package/build/utils/request/conversation.d.ts +3 -1
  80. package/build/utils/request/conversation.d.ts.map +1 -1
  81. package/build/utils/request/conversation.js +4 -0
  82. package/build/utils/request/conversation.js.map +1 -1
  83. package/build/vendor/font_awesome_pro_solid_icons.d.ts +1 -0
  84. package/build/vendor/font_awesome_pro_solid_icons.d.ts.map +1 -1
  85. package/build/vendor/font_awesome_pro_solid_icons.js +5 -0
  86. package/build/vendor/font_awesome_pro_solid_icons.js.map +1 -1
  87. package/package.json +3 -3
  88. package/src/__tests__/screens/conversation_filters/components/conversation_filters.test.tsx +6 -0
  89. package/src/components/conversations/__tests__/conversation_actions.test.tsx +1 -0
  90. package/src/components/conversations/__tests__/conversation_preview.test.tsx +29 -0
  91. package/src/components/conversations/__tests__/conversations.test.tsx +26 -0
  92. package/src/components/conversations/__tests__/conversations_blank_state.test.tsx +17 -0
  93. package/src/components/conversations/conversation_actions.tsx +7 -2
  94. package/src/components/conversations/conversation_preview.tsx +12 -1
  95. package/src/components/conversations/conversations.tsx +9 -0
  96. package/src/components/conversations/conversations_blank_state.tsx +18 -0
  97. package/src/components/conversations/hidden_indicator.tsx +30 -0
  98. package/src/components/conversations/hidden_results_footer.tsx +25 -0
  99. package/src/contexts/conversations_context.tsx +2 -0
  100. package/src/hooks/__tests__/use_hide_conversation.test.tsx +44 -2
  101. package/src/hooks/use_api.ts +2 -1
  102. package/src/hooks/use_clear_conversation_filters.ts +1 -0
  103. package/src/hooks/use_hidden_conversations_count.ts +14 -0
  104. package/src/hooks/use_hide_conversation.ts +18 -8
  105. package/src/screens/conversation_filters/__tests__/conversation_filters.test.tsx +42 -0
  106. package/src/screens/conversation_filters/components/conversation_filters.tsx +22 -3
  107. package/src/screens/conversation_filters/components/rows.tsx +44 -10
  108. package/src/screens/conversation_filters/context/conversation_filter_context.tsx +4 -0
  109. package/src/screens/conversation_filters/filter_types.ts +1 -0
  110. package/src/screens/conversation_filters/screen_props.ts +1 -0
  111. package/src/screens/conversations/components/__tests__/filter_dropdown_list_header_component.test.tsx +42 -0
  112. package/src/screens/conversations/components/__tests__/list_header_component.test.tsx +1 -0
  113. package/src/screens/conversations/components/filter_dropdown_list_header_component.tsx +21 -5
  114. package/src/screens/conversations/components/list_header_component.tsx +14 -4
  115. package/src/screens/conversations/components/search_list_header_component.tsx +14 -4
  116. package/src/screens/conversations/conversations_screen.tsx +1 -0
  117. package/src/utils/request/conversation.ts +6 -0
  118. package/src/vendor/font_awesome_pro_solid_icons.ts +12 -0
@@ -1 +1 @@
1
- {"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAIL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAA;AAYrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMlD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,OAAO,EACP,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,oBAAoB,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,2CAwKA"}
1
+ {"version":3,"file":"conversation_actions.d.ts","sourceRoot":"","sources":["../../../src/components/conversations/conversation_actions.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAClF,OAAO,EAIL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAA;AAYrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAMlD,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,OAAO,EACP,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,EAAE,oBAAoB,CAAA;IAClC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B,2CA6KA"}
@@ -14,7 +14,7 @@ import { tokens } from '../../vendor/tapestry/tokens';
14
14
  import { SwipeableToggleButton } from './swipeable_toggle_button';
15
15
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  export function ConversationActions(t0) {
17
- const $ = _c(89);
17
+ const $ = _c(90);
18
18
  const {
19
19
  children,
20
20
  conversation,
@@ -28,7 +28,8 @@ export function ConversationActions(t0) {
28
28
  const {
29
29
  activeConversationId,
30
30
  setActiveConversationId,
31
- hideable
31
+ hideable,
32
+ args
32
33
  } = useConversationsContext();
33
34
  const [disabled, setDisabled] = useState(false);
34
35
  const overshootLeft = Platform.OS === "ios";
@@ -73,111 +74,114 @@ export function ConversationActions(t0) {
73
74
  markRead,
74
75
  isPending: isMarkReadPending
75
76
  } = useConversationsMarkRead(t3);
76
- let t4;
77
- if ($[6] !== conversation) {
78
- t4 = {
79
- conversation
77
+ const t4 = args.show_hidden || undefined;
78
+ let t5;
79
+ if ($[6] !== conversation || $[7] !== t4) {
80
+ t5 = {
81
+ conversation,
82
+ hidden: t4
80
83
  };
81
84
  $[6] = conversation;
82
85
  $[7] = t4;
86
+ $[8] = t5;
83
87
  } else {
84
- t4 = $[7];
88
+ t5 = $[8];
85
89
  }
86
90
  const {
87
91
  hidden,
88
92
  setHidden,
89
93
  isPending: isHiddenPending
90
- } = useHideConversation(t4);
94
+ } = useHideConversation(t5);
91
95
  const hideConversationsEnabled = useHideConversationsEnabled();
92
96
  const isConversationEmpty = conversation.lastMessageCreatedAt === null;
93
- let t5;
94
- if ($[8] !== conversation) {
95
- t5 = isArchivedConversation(conversation);
96
- $[8] = conversation;
97
- $[9] = t5;
98
- } else {
99
- t5 = $[9];
100
- }
101
- const canMute = !t5;
102
97
  let t6;
103
- if ($[10] !== conversation || $[11] !== hideConversationsEnabled || $[12] !== hideable) {
104
- t6 = hideable && hideConversationsEnabled && !isArchivedConversation(conversation);
105
- $[10] = conversation;
106
- $[11] = hideConversationsEnabled;
107
- $[12] = hideable;
108
- $[13] = t6;
98
+ if ($[9] !== conversation) {
99
+ t6 = isArchivedConversation(conversation);
100
+ $[9] = conversation;
101
+ $[10] = t6;
109
102
  } else {
110
- t6 = $[13];
103
+ t6 = $[10];
111
104
  }
112
- const canHide = t6;
105
+ const canMute = !t6;
113
106
  let t7;
114
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
115
- t7 = () => {
116
- setDisabled(false);
117
- swipeableRef.current?.close();
118
- };
107
+ if ($[11] !== conversation || $[12] !== hideConversationsEnabled || $[13] !== hideable) {
108
+ t7 = hideable && hideConversationsEnabled && !isArchivedConversation(conversation);
109
+ $[11] = conversation;
110
+ $[12] = hideConversationsEnabled;
111
+ $[13] = hideable;
119
112
  $[14] = t7;
120
113
  } else {
121
114
  t7 = $[14];
122
115
  }
123
- const handleSwipeableClose = t7;
116
+ const canHide = t7;
124
117
  let t8;
125
- if ($[15] !== conversation.id || $[16] !== setActiveConversationId) {
118
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
126
119
  t8 = () => {
127
- setDisabled(true);
128
- setActiveConversationId(conversation.id);
120
+ setDisabled(false);
121
+ swipeableRef.current?.close();
129
122
  };
130
- $[15] = conversation.id;
131
- $[16] = setActiveConversationId;
132
- $[17] = t8;
123
+ $[15] = t8;
133
124
  } else {
134
- t8 = $[17];
125
+ t8 = $[15];
135
126
  }
136
- const handleSwipeableOpen = t8;
127
+ const handleSwipeableClose = t8;
137
128
  let t9;
138
- if ($[18] !== disabled || $[19] !== onPress) {
129
+ if ($[16] !== conversation.id || $[17] !== setActiveConversationId) {
139
130
  t9 = () => {
131
+ setDisabled(true);
132
+ setActiveConversationId(conversation.id);
133
+ };
134
+ $[16] = conversation.id;
135
+ $[17] = setActiveConversationId;
136
+ $[18] = t9;
137
+ } else {
138
+ t9 = $[18];
139
+ }
140
+ const handleSwipeableOpen = t9;
141
+ let t10;
142
+ if ($[19] !== disabled || $[20] !== onPress) {
143
+ t10 = () => {
140
144
  if (disabled || !onPress) {
141
145
  return;
142
146
  }
143
147
  onPress();
144
148
  };
145
- $[18] = disabled;
146
- $[19] = onPress;
147
- $[20] = t9;
149
+ $[19] = disabled;
150
+ $[20] = onPress;
151
+ $[21] = t10;
148
152
  } else {
149
- t9 = $[20];
153
+ t10 = $[21];
150
154
  }
151
- const handlePress = t9;
152
- let t10;
153
- if ($[21] !== muted || $[22] !== setMuted) {
154
- t10 = () => {
155
+ const handlePress = t10;
156
+ let t11;
157
+ if ($[22] !== muted || $[23] !== setMuted) {
158
+ t11 = () => {
155
159
  setMuted(!muted);
156
160
  handleSwipeableClose();
157
161
  };
158
- $[21] = muted;
159
- $[22] = setMuted;
160
- $[23] = t10;
162
+ $[22] = muted;
163
+ $[23] = setMuted;
164
+ $[24] = t11;
161
165
  } else {
162
- t10 = $[23];
166
+ t11 = $[24];
163
167
  }
164
- const handleMute = t10;
165
- let t11;
166
- if ($[24] !== hidden || $[25] !== setHidden) {
167
- t11 = () => {
168
+ const handleMute = t11;
169
+ let t12;
170
+ if ($[25] !== hidden || $[26] !== setHidden) {
171
+ t12 = () => {
168
172
  setHidden(!hidden);
169
173
  handleSwipeableClose();
170
174
  };
171
- $[24] = hidden;
172
- $[25] = setHidden;
173
- $[26] = t11;
175
+ $[25] = hidden;
176
+ $[26] = setHidden;
177
+ $[27] = t12;
174
178
  } else {
175
- t11 = $[26];
179
+ t12 = $[27];
176
180
  }
177
- const handleHide = t11;
178
- let t12;
179
- if ($[27] !== conversation.id || $[28] !== disabled || $[29] !== navigation) {
180
- t12 = () => {
181
+ const handleHide = t12;
182
+ let t13;
183
+ if ($[28] !== conversation.id || $[29] !== disabled || $[30] !== navigation) {
184
+ t13 = () => {
181
185
  if (disabled) {
182
186
  return;
183
187
  }
@@ -186,100 +190,100 @@ export function ConversationActions(t0) {
186
190
  conversation_id: conversation.id
187
191
  });
188
192
  };
189
- $[27] = conversation.id;
190
- $[28] = disabled;
191
- $[29] = navigation;
192
- $[30] = t12;
193
+ $[28] = conversation.id;
194
+ $[29] = disabled;
195
+ $[30] = navigation;
196
+ $[31] = t13;
193
197
  } else {
194
- t12 = $[30];
198
+ t13 = $[31];
195
199
  }
196
- const handleLongPress = t12;
197
- let t13;
198
- if ($[31] !== markRead || $[32] !== read) {
199
- t13 = () => {
200
+ const handleLongPress = t13;
201
+ let t14;
202
+ if ($[32] !== markRead || $[33] !== read) {
203
+ t14 = () => {
200
204
  markRead(!read);
201
205
  handleSwipeableClose();
202
206
  };
203
- $[31] = markRead;
204
- $[32] = read;
205
- $[33] = t13;
207
+ $[32] = markRead;
208
+ $[33] = read;
209
+ $[34] = t14;
206
210
  } else {
207
- t13 = $[33];
211
+ t14 = $[34];
208
212
  }
209
- const handleLatestMessageUnread = t13;
210
- let t14;
211
- if ($[34] !== isConversationEmpty || $[35] !== read) {
212
- t14 = !isConversationEmpty ? [{
213
+ const handleLatestMessageUnread = t14;
214
+ let t15;
215
+ if ($[35] !== isConversationEmpty || $[36] !== read) {
216
+ t15 = !isConversationEmpty ? [{
213
217
  name: read ? "markUnread" : "markRead",
214
218
  label: read ? "Mark unread" : "Mark read"
215
219
  }] : [];
216
- $[34] = isConversationEmpty;
217
- $[35] = read;
218
- $[36] = t14;
220
+ $[35] = isConversationEmpty;
221
+ $[36] = read;
222
+ $[37] = t15;
219
223
  } else {
220
- t14 = $[36];
224
+ t15 = $[37];
221
225
  }
222
- const readAccessibilityAction = t14;
223
- let t15;
224
- if ($[37] !== canMute || $[38] !== muted) {
225
- t15 = canMute ? [{
226
+ const readAccessibilityAction = t15;
227
+ let t16;
228
+ if ($[38] !== canMute || $[39] !== muted) {
229
+ t16 = canMute ? [{
226
230
  name: muted ? "unmute" : "mute",
227
231
  label: muted ? "Enable" : "Silence"
228
232
  }] : [];
229
- $[37] = canMute;
230
- $[38] = muted;
231
- $[39] = t15;
233
+ $[38] = canMute;
234
+ $[39] = muted;
235
+ $[40] = t16;
232
236
  } else {
233
- t15 = $[39];
237
+ t16 = $[40];
234
238
  }
235
- const muteAccessibilityAction = t15;
236
- let t16;
237
- if ($[40] !== canHide || $[41] !== hidden) {
238
- t16 = canHide ? [{
239
+ const muteAccessibilityAction = t16;
240
+ let t17;
241
+ if ($[41] !== canHide || $[42] !== hidden) {
242
+ t17 = canHide ? [{
239
243
  name: hidden ? "unhide" : "hide",
240
244
  label: hidden ? "Unhide" : "Hide"
241
245
  }] : [];
242
- $[40] = canHide;
243
- $[41] = hidden;
244
- $[42] = t16;
246
+ $[41] = canHide;
247
+ $[42] = hidden;
248
+ $[43] = t17;
245
249
  } else {
246
- t16 = $[42];
250
+ t17 = $[43];
247
251
  }
248
- const hideAccessibilityAction = t16;
249
- let t17;
250
- if ($[43] !== hideAccessibilityAction || $[44] !== muteAccessibilityAction || $[45] !== readAccessibilityAction) {
251
- t17 = [...muteAccessibilityAction, ...hideAccessibilityAction, ...readAccessibilityAction];
252
- $[43] = hideAccessibilityAction;
253
- $[44] = muteAccessibilityAction;
254
- $[45] = readAccessibilityAction;
255
- $[46] = t17;
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;
256
260
  } else {
257
- t17 = $[46];
261
+ t18 = $[47];
258
262
  }
259
- const accessibilityActions = t17;
260
- let t18;
261
- if ($[47] !== handleHide || $[48] !== handleLatestMessageUnread || $[49] !== handleMute) {
262
- t18 = event => {
263
- bb70: switch (event.nativeEvent.actionName) {
263
+ const accessibilityActions = t18;
264
+ let t19;
265
+ if ($[48] !== handleHide || $[49] !== handleLatestMessageUnread || $[50] !== handleMute) {
266
+ t19 = event => {
267
+ bb74: switch (event.nativeEvent.actionName) {
264
268
  case "markRead":
265
269
  {
266
270
  handleLatestMessageUnread();
267
- break bb70;
271
+ break bb74;
268
272
  }
269
273
  case "markUnread":
270
274
  {
271
275
  handleLatestMessageUnread();
272
- break bb70;
276
+ break bb74;
273
277
  }
274
278
  case "mute":
275
279
  {
276
280
  handleMute();
277
- break bb70;
281
+ break bb74;
278
282
  }
279
283
  case "unmute":
280
284
  {
281
285
  handleMute();
282
- break bb70;
286
+ break bb74;
283
287
  }
284
288
  case "hide":
285
289
  case "unhide":
@@ -288,43 +292,43 @@ export function ConversationActions(t0) {
288
292
  }
289
293
  }
290
294
  };
291
- $[47] = handleHide;
292
- $[48] = handleLatestMessageUnread;
293
- $[49] = handleMute;
294
- $[50] = t18;
295
+ $[48] = handleHide;
296
+ $[49] = handleLatestMessageUnread;
297
+ $[50] = handleMute;
298
+ $[51] = t19;
295
299
  } else {
296
- t18 = $[50];
300
+ t19 = $[51];
297
301
  }
298
- const handleAccessibilityAction = t18;
299
- let t19;
302
+ const handleAccessibilityAction = t19;
300
303
  let t20;
301
- if ($[51] !== activeConversationId || $[52] !== conversation.id) {
302
- t19 = () => {
304
+ let t21;
305
+ if ($[52] !== activeConversationId || $[53] !== conversation.id) {
306
+ t20 = () => {
303
307
  if (activeConversationId === conversation.id) {
304
308
  return;
305
309
  }
306
310
  handleSwipeableClose();
307
311
  };
308
- t20 = [activeConversationId, conversation.id, handleSwipeableClose];
309
- $[51] = activeConversationId;
310
- $[52] = conversation.id;
311
- $[53] = t19;
312
+ t21 = [activeConversationId, conversation.id, handleSwipeableClose];
313
+ $[52] = activeConversationId;
314
+ $[53] = conversation.id;
312
315
  $[54] = t20;
313
- } else {
314
- t19 = $[53];
315
- t20 = $[54];
316
- }
317
- useEffect(t19, t20);
318
- let t21;
319
- if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
320
- t21 = () => setDisabled(false);
321
316
  $[55] = t21;
322
317
  } else {
318
+ t20 = $[54];
323
319
  t21 = $[55];
324
320
  }
321
+ useEffect(t20, t21);
325
322
  let t22;
326
- if ($[56] !== canHide || $[57] !== canMute || $[58] !== handleHide || $[59] !== handleLatestMessageUnread || $[60] !== handleMute || $[61] !== hidden || $[62] !== isConversationEmpty || $[63] !== isHiddenPending || $[64] !== isMarkReadPending || $[65] !== isMutedPending || $[66] !== muted || $[67] !== read) {
327
- t22 = () => /*#__PURE__*/_jsx(LeftActions, {
323
+ if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
324
+ t22 = () => setDisabled(false);
325
+ $[56] = t22;
326
+ } else {
327
+ t22 = $[56];
328
+ }
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, {
328
332
  isConversationEmpty: isConversationEmpty,
329
333
  canMute: canMute,
330
334
  canHide: canHide,
@@ -338,79 +342,79 @@ export function ConversationActions(t0) {
338
342
  isHiddenPending: isHiddenPending,
339
343
  isMarkReadPending: isMarkReadPending
340
344
  });
341
- $[56] = canHide;
342
- $[57] = canMute;
343
- $[58] = handleHide;
344
- $[59] = handleLatestMessageUnread;
345
- $[60] = handleMute;
346
- $[61] = hidden;
347
- $[62] = isConversationEmpty;
348
- $[63] = isHiddenPending;
349
- $[64] = isMarkReadPending;
350
- $[65] = isMutedPending;
351
- $[66] = muted;
352
- $[67] = read;
353
- $[68] = t22;
354
- } else {
355
- t22 = $[68];
356
- }
357
- const t23 = `conversation-${conversation.id}`;
358
- const t24 = canHide ? handleLongPress : undefined;
359
- let t25;
360
- if ($[69] !== style) {
361
- t25 = t26 => {
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 => {
362
366
  const {
363
367
  pressed
364
- } = t26;
368
+ } = t27;
365
369
  return [style, pressed && platformPressedOpacityStyle];
366
370
  };
367
- $[69] = style;
368
- $[70] = t25;
371
+ $[70] = style;
372
+ $[71] = t26;
369
373
  } else {
370
- t25 = $[70];
374
+ t26 = $[71];
371
375
  }
372
- let t26;
373
- if ($[71] !== androidRippleColor) {
374
- t26 = {
376
+ let t27;
377
+ if ($[72] !== androidRippleColor) {
378
+ t27 = {
375
379
  color: androidRippleColor,
376
380
  borderless: false,
377
381
  foreground: true
378
382
  };
379
- $[71] = androidRippleColor;
380
- $[72] = t26;
383
+ $[72] = androidRippleColor;
384
+ $[73] = t27;
381
385
  } else {
382
- t26 = $[72];
386
+ t27 = $[73];
383
387
  }
384
- let t27;
385
- if ($[73] !== accessibilityActions || $[74] !== accessibilityLabel || $[75] !== children || $[76] !== handleAccessibilityAction || $[77] !== handlePress || $[78] !== t23 || $[79] !== t24 || $[80] !== t25 || $[81] !== t26) {
386
- t27 = /*#__PURE__*/_jsx(Pressable, {
387
- testID: t23,
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,
388
392
  onPress: handlePress,
389
- onLongPress: t24,
390
- style: t25,
391
- android_ripple: t26,
393
+ onLongPress: t25,
394
+ style: t26,
395
+ android_ripple: t27,
392
396
  accessibilityLabel: accessibilityLabel,
393
397
  accessibilityRole: "button",
394
398
  accessibilityActions: accessibilityActions,
395
399
  onAccessibilityAction: handleAccessibilityAction,
396
400
  children: children
397
401
  });
398
- $[73] = accessibilityActions;
399
- $[74] = accessibilityLabel;
400
- $[75] = children;
401
- $[76] = handleAccessibilityAction;
402
- $[77] = handlePress;
403
- $[78] = t23;
402
+ $[74] = accessibilityActions;
403
+ $[75] = accessibilityLabel;
404
+ $[76] = children;
405
+ $[77] = handleAccessibilityAction;
406
+ $[78] = handlePress;
404
407
  $[79] = t24;
405
408
  $[80] = t25;
406
409
  $[81] = t26;
407
410
  $[82] = t27;
411
+ $[83] = t28;
408
412
  } else {
409
- t27 = $[82];
413
+ t28 = $[83];
410
414
  }
411
- let t28;
412
- if ($[83] !== handleSwipeableOpen || $[84] !== styles.swipeableChildContainer || $[85] !== styles.swipeableContainer || $[86] !== t22 || $[87] !== t27) {
413
- t28 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
415
+ let t29;
416
+ if ($[84] !== handleSwipeableOpen || $[85] !== styles.swipeableChildContainer || $[86] !== styles.swipeableContainer || $[87] !== t23 || $[88] !== t28) {
417
+ t29 = /*#__PURE__*/_jsx(ReanimatedSwipeable, {
414
418
  ref: swipeableRef,
415
419
  childrenContainerStyle: styles.swipeableChildContainer,
416
420
  containerStyle: styles.swipeableContainer,
@@ -418,21 +422,21 @@ export function ConversationActions(t0) {
418
422
  overshootLeft: overshootLeft,
419
423
  overshootRight: false,
420
424
  onSwipeableOpenStartDrag: handleSwipeableOpen,
421
- onSwipeableClose: t21,
425
+ onSwipeableClose: t22,
422
426
  renderRightActions: _temp,
423
- renderLeftActions: t22,
424
- children: t27
427
+ renderLeftActions: t23,
428
+ children: t28
425
429
  });
426
- $[83] = handleSwipeableOpen;
427
- $[84] = styles.swipeableChildContainer;
428
- $[85] = styles.swipeableContainer;
429
- $[86] = t22;
430
- $[87] = t27;
430
+ $[84] = handleSwipeableOpen;
431
+ $[85] = styles.swipeableChildContainer;
432
+ $[86] = styles.swipeableContainer;
433
+ $[87] = t23;
431
434
  $[88] = t28;
435
+ $[89] = t29;
432
436
  } else {
433
- t28 = $[88];
437
+ t29 = $[89];
434
438
  }
435
- return t28;
439
+ return t29;
436
440
  }
437
441
  function _temp() {
438
442
  return /*#__PURE__*/_jsx(_Fragment, {});