@activepieces/piece-slack 0.10.13 → 0.10.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/piece-slack",
3
- "version": "0.10.13",
3
+ "version": "0.10.15",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.34.11",
6
6
  "@slack/web-api": "7.9.0",
@@ -13,17 +13,9 @@
13
13
  "slackify-markdown": "4.4.0",
14
14
  "zod": "3.25.76",
15
15
  "@activepieces/pieces-common": "0.8.1",
16
- "@activepieces/pieces-framework": "0.20.1",
17
- "@activepieces/shared": "0.25.1",
18
- "tslib": "2.8.1"
19
- },
20
- "overrides": {
21
- "@tryfabric/martian": {
22
- "@notionhq/client": "$@notionhq/client"
23
- },
24
- "vite": {
25
- "rollup": "npm:@rollup/wasm-node"
26
- }
16
+ "@activepieces/pieces-framework": "0.20.2",
17
+ "@activepieces/shared": "0.25.2",
18
+ "tslib": "2.6.2"
27
19
  },
28
20
  "resolutions": {
29
21
  "rollup": "npm:@rollup/wasm-node"
package/src/i18n/de.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "Benutzername",
60
60
  "Profile Picture": "Profilbild",
61
61
  "Block Kit blocks": "Block Kit Blöcke",
62
+ "Unfurl Links": "Links entsperren",
62
63
  "Attachment": "Anhang",
63
64
  "Thread ts": "Thread ts",
64
65
  "Broadcast reply to channel": "Antwort an den Kanal senden",
65
- "Unfurl Links": "Link-Vorschau",
66
66
  "Action Buttons": "Aktionstasten",
67
67
  "Title": "Titel",
68
68
  "Filename": "Dateiname",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "Der Benutzername des Bots",
102
102
  "The profile picture of the bot": "Das Profilbild des Bots",
103
103
  "See https://api.slack.com/block-kit for specs": "Siehe https://api.slack.com/block-kit für Spezifikationen",
104
+ "Enable link unfurling for this message": "Aktiviere Link unfurling für diese Nachricht",
104
105
  "The text of your message": "Der Text Ihrer Nachricht",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Geben Sie den ts (Zeitstempel) Wert der **Eltern** Nachricht an, um diese Nachricht zu einer Antwort zu machen. Verwenden Sie nicht den ts Wert der Antwort selbst; verwenden Sie stattdessen dessen Eltern-Wert. Zum Beispiel `1710304378. 75129`.Alternativ kannst du einfach den Nachrichtenlink erhalten, indem du auf die drei Punkte neben der übergeordneten Nachricht klickst und die Option `Link kopieren` auswählst.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "Wenn Sie auf einen Thread antworten, machen Sie die Nachricht auch für alle im Kanal sichtbar (nur anwendbar, wenn Thread-Zeitstempel zur Verfügung steht)",
107
- "Enable link unfurling for this message": "Link-Vorschau für diese Nachricht aktivieren",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "Sie können die Datei-ID von der Payload der neuen Message Trigger übergeben.",
109
109
  "User handle (display name), without the leading @": "Benutzerhandle (Anzeigename), ohne führende @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Bitte geben Sie den Zeitstempel der Nachricht an, die Sie aktualisieren möchten, wie z.B. `1710304378.475129`. Alternativ kannst du einfach den Nachrichtenlink erhalten, indem du auf die drei Punkte neben der Nachricht klickst und die Option `Link kopieren` auswählst.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Wähle Emojis zum Auslösen aus",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Liste gültiger Befehle, auf die der Bot reagieren soll (z.B. help, ocr, remind)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "Wenn kein Kanal ausgewählt ist, wird der Fluss für Befehle in allen Kanälen ausgelöst"
165
- }
165
+ }
package/src/i18n/es.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "Usuario",
60
60
  "Profile Picture": "Foto de Perfil",
61
61
  "Block Kit blocks": "Bloquear Kit",
62
+ "Unfurl Links": "Desenganchar Enlaces",
62
63
  "Attachment": "Adjunto",
63
64
  "Thread ts": "Hilos",
64
65
  "Broadcast reply to channel": "Respuesta de difusión al canal",
65
- "Unfurl Links": "Vista previa de enlaces",
66
66
  "Action Buttons": "Botones de acción",
67
67
  "Title": "Título",
68
68
  "Filename": "Nombre de archivo",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "El nombre de usuario del bot",
102
102
  "The profile picture of the bot": "La foto de perfil del bot",
103
103
  "See https://api.slack.com/block-kit for specs": "Ver https://api.slack.com/block-kit para especificaciones",
104
+ "Enable link unfurling for this message": "Habilitar el desenvolvimiento de enlaces para este mensaje",
104
105
  "The text of your message": "El texto de tu mensaje",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Proporciona el valor (timestamp) del mensaje **padre** para hacer de este mensaje una respuesta. No utilice el valor ts de la respuesta en sí; utilice su padre en su lugar. Por ejemplo `1710304378. 75129`.Alternativamente, puedes obtener fácilmente el enlace del mensaje haciendo clic en los tres puntos junto al mensaje padre y seleccionando la opción `Copy link`.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "Al responder a un hilo, también hacer el mensaje visible para todos en el canal (sólo aplicable cuando se proporciona la marca de tiempo del hilo)",
107
- "Enable link unfurling for this message": "Habilitar vista previa de enlaces para este mensaje",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "Puedes pasar el ID del archivo desde la carga de Nuevo Mensaje Trigger.",
109
109
  "User handle (display name), without the leading @": "Usuario identificador (nombre de visualización), sin los siguientes @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Por favor, proporcione la marca de tiempo del mensaje que desea actualizar, como `1710304378.475129`. Alternativamente, puede obtener fácilmente el enlace del mensaje haciendo clic en los tres puntos junto al mensaje y seleccionando la opción `Copy link`.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Selecciona emojis para activar",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Lista de comandos válidos a los que el bot debe responder (por ejemplo, ayuda, ocr, recordatorio)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "Si no se selecciona ningún canal, el flujo se activará para comandos en todos los canales"
165
- }
165
+ }
package/src/i18n/fr.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "Nom d'utilisateur",
60
60
  "Profile Picture": "Photo de profil",
61
61
  "Block Kit blocks": "Bloquer les blocs de kit",
62
+ "Unfurl Links": "Dérouler les liens",
62
63
  "Attachment": "Pièce jointe",
63
64
  "Thread ts": "Fil de discussion",
64
65
  "Broadcast reply to channel": "Diffuser la réponse à la chaîne",
65
- "Unfurl Links": "Aperçu des liens",
66
66
  "Action Buttons": "Boutons d'action",
67
67
  "Title": "Titre de la page",
68
68
  "Filename": "Nom du fichier",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "Le nom d'utilisateur du bot",
102
102
  "The profile picture of the bot": "La photo de profil du bot",
103
103
  "See https://api.slack.com/block-kit for specs": "Voir https://api.slack.com/block-kit pour les spécifications",
104
+ "Enable link unfurling for this message": "Activer le développement du lien pour ce message",
104
105
  "The text of your message": "Le texte de votre message",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Fournir la valeur ts (timestamp) du message **parent** pour faire de ce message une réponse. N'utilisez pas la valeur ts de la réponse elle-même ; utilisez son parent à la place. Par exemple `1710304378. 75129`.Alternativement, vous pouvez facilement obtenir le lien de message en cliquant sur les trois points à côté du message parent et en sélectionnant l'option `Copier le lien`.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "Lorsque vous répondez à un thread, rendre également le message visible pour tout le monde dans le channel (applicable uniquement lorsque l'horodatage des threads est fourni)",
107
- "Enable link unfurling for this message": "Activer l'aperçu des liens pour ce message",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "Vous pouvez passer l'ID du fichier à partir de la charge utile du nouveau déclencheur de message.",
109
109
  "User handle (display name), without the leading @": "Identifiant utilisateur (nom affiché) sans le premier @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Veuillez fournir l'horodatage du message que vous souhaitez mettre à jour, comme `1710304378.475129`. Alternativement, vous pouvez facilement obtenir le lien du message en cliquant sur les trois points à côté du message et en sélectionnant l'option `Copier le lien`.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Sélectionnez les émoticônes à activer",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Liste des commandes valides auxquelles le bot doit répondre (par exemple, aide, ocr, rappel)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "Si aucun canal n'est sélectionné, le flux sera déclenché pour les commandes dans tous les canaux"
165
- }
165
+ }
package/src/i18n/ja.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "Channel-based messaging platform": "チャネルベースのメッセージングプラットフォーム",
3
3
  "Add Reaction to Message": "メッセージにリアクションを追加",
4
4
  "Send Message To A User": "ユーザーにメッセージを送信",
5
- "Send Message To A Channel": "僅用於中文",
5
+ "Send Message To A Channel": "チャンネルにメッセージを送信",
6
6
  "Request Approval from A User": "ユーザーからの承認要求",
7
7
  "Request Approval in a Channel": "チャネルで承認を要求する",
8
8
  "Request Action from A User": "ユーザーからアクションを要求する",
@@ -59,10 +59,10 @@
59
59
  "Username": "ユーザー名",
60
60
  "Profile Picture": "プロフィール写真",
61
61
  "Block Kit blocks": "Kit ブロックをブロック",
62
+ "Unfurl Links": "リンクを解除する",
62
63
  "Attachment": "添付ファイル",
63
64
  "Thread ts": "スレッド ts",
64
65
  "Broadcast reply to channel": "チャネルに返信を配信する",
65
- "Unfurl Links": "リンクを展開",
66
66
  "Action Buttons": "アクションボタン",
67
67
  "Title": "タイトル",
68
68
  "Filename": "ファイル名",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "ボットのユーザー名",
102
102
  "The profile picture of the bot": "ボットのプロフィール写真",
103
103
  "See https://api.slack.com/block-kit for specs": "仕様については https://api.slack.com/block-kit を参照してください。",
104
+ "Enable link unfurling for this message": "このメッセージのリンクの展開を有効にする",
104
105
  "The text of your message": "メッセージのテキスト",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "このメッセージを返信させるために、**親**メッセージのts(タイムスタンプ)の値を入力してください。 返信自体の ts 値を使用しないでください。代わりにその親を使用してください。例えば、`1710304378 75129`. または、親メッセージの横にある3つの点をクリックして、 `Copy link` オプションを選択することで、簡単にメッセージリンクを取得できます。",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "スレッドに返信すると、チャンネル内の全員にメッセージを表示させます(Thread Timestamp が指定されている場合にのみ適用されます)",
107
- "Enable link unfurling for this message": "このメッセージのリンク展開を有効にする",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "New Message TriggerペイロードからファイルIDを渡すことができます。",
109
109
  "User handle (display name), without the leading @": "ユーザーハンドル(表示名)は、@を一番下にしないでください",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "`1710304378.475129` など、更新したいメッセージのタイムスタンプを入力してください。 あるいは、メッセージの隣にある3つの点をクリックして、 `Copy link` オプションを選択することで、メッセージのリンクを簡単に取得できます。",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "トリガーする絵文字を選択してください",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "ボットが応答する有効なコマンドのリスト(例:ヘルプ、分かった、リマインダーなど)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "チャンネルが選択されていない場合、フローはすべてのチャンネルのコマンドに対してトリガーされます"
165
- }
165
+ }
package/src/i18n/nl.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "Gebruikersnaam",
60
60
  "Profile Picture": "Profiel Afbeelding",
61
61
  "Block Kit blocks": "Blokkeer Uitrusting Blokken",
62
+ "Unfurl Links": "Ontmantel links",
62
63
  "Attachment": "Bijlage",
63
64
  "Thread ts": "Conversatie ts",
64
65
  "Broadcast reply to channel": "Antwoord uitzenden naar kanaal",
65
- "Unfurl Links": "Link voorvertoning",
66
66
  "Action Buttons": "Actieknoppen",
67
67
  "Title": "Aanspreektitel",
68
68
  "Filename": "Bestandsnaam",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "De gebruikersnaam van de bot",
102
102
  "The profile picture of the bot": "De profielfoto van de bot",
103
103
  "See https://api.slack.com/block-kit for specs": "Zie https://api.slack.com/block-kit voor specificaties",
104
+ "Enable link unfurling for this message": "Activeer link ontsplitsen voor dit bericht",
104
105
  "The text of your message": "De tekst van je bericht",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Geef de ts (timestamp) waarde op van het **ouder** bericht om dit bericht te laten beantwoorden. Gebruik niet de ts waarde van het antwoord zelf; gebruik zijn bovenliggende. Bijvoorbeeld `1710304378. 75129`.Als alternatief kun je gemakkelijk de berichtkoppeling verkrijgen door op de drie punten naast het bovenliggende bericht te klikken en de `Kopieer link` optie te selecteren.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "Bij het antwoorden op een conversatie, maak het bericht ook zichtbaar voor iedereen in het kanaal (alleen van toepassing als de Thread tijdstempel wordt geleverd)",
107
- "Enable link unfurling for this message": "Link voorvertoning inschakelen voor dit bericht",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "U kunt het bestand-ID doorgeven vanuit de New Message Trigger payload.",
109
109
  "User handle (display name), without the leading @": "Gebruiker handgreep (weergavenaam), zonder leider @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Geef het gewenste bericht aan, zoals `1710304378.475129`. U kunt ook gemakkelijk de berichtkoppeling verkrijgen door op de drie punten naast het bericht te klikken en de optie 'Koppeling kopiëren' te selecteren.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Selecteer emojis op te starten",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Lijst van geldige commando's waarop de bot moet reageren (bijv. hulp, ocr, herinnering)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "Als er geen kanaal is geselecteerd, wordt de stroom geactiveerd voor commando's in alle kanalen"
165
- }
165
+ }
package/src/i18n/pt.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "Usuário:",
60
60
  "Profile Picture": "Imagem do perfil",
61
61
  "Block Kit blocks": "Bloco do Kit",
62
+ "Unfurl Links": "Desfurtar Links",
62
63
  "Attachment": "Anexo",
63
64
  "Thread ts": "Tópico",
64
65
  "Broadcast reply to channel": "Transmitir resposta para o canal",
65
- "Unfurl Links": "Visualização de links",
66
66
  "Action Buttons": "Botões de Ação",
67
67
  "Title": "Título",
68
68
  "Filename": "Nome",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "O nome de usuário do bot",
102
102
  "The profile picture of the bot": "A imagem de perfil do bot",
103
103
  "See https://api.slack.com/block-kit for specs": "Veja https://api.slack.com/block-kit para especificações",
104
+ "Enable link unfurling for this message": "Ativar desenfuração de link para esta mensagem",
104
105
  "The text of your message": "O texto da sua mensagem",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Forneça o valor ts (timestamp) da mensagem **pai** para fazer desta mensagem uma resposta. Não use o valor de ts da própria resposta; use o seu pai. Por exemplo, `1710304378. 75129`.Alternativamente, você pode obter facilmente o link da mensagem clicando nos três pontos ao lado da mensagem pai e selecionando a opção `Copiar link`.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "Ao responder a um tópico, também torne a mensagem visível para todos no canal (apenas aplicável quando o tópico for fornecido)",
107
- "Enable link unfurling for this message": "Ativar visualização de links para esta mensagem",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "Você pode passar o ID do arquivo a partir do payload do disparador Nova Mensagem.",
109
109
  "User handle (display name), without the leading @": "Identificador do usuário (nome de exibição), sem a liderança @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Por favor, forneça o carimbo de data/hora da mensagem que você deseja atualizar, como `1710304378.475129`. Como alternativa, você pode facilmente obter o link da mensagem clicando nos três pontos ao lado da mensagem e selecionando a opção `Copiar link`.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Selecionar emojis para acionar",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "Lista de comandos válidos que o bot deve responder (por exemplo, ajuda, ocr, lembrete)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "Se nenhum canal estiver selecionado, o fluxo será acionado para comandos em todos os canais"
165
- }
165
+ }
@@ -59,10 +59,10 @@
59
59
  "Username": "Username",
60
60
  "Profile Picture": "Profile Picture",
61
61
  "Block Kit blocks": "Block Kit blocks",
62
+ "Unfurl Links": "Unfurl Links",
62
63
  "Attachment": "Attachment",
63
64
  "Thread ts": "Thread ts",
64
65
  "Broadcast reply to channel": "Broadcast reply to channel",
65
- "Unfurl Links": "Unfurl Links",
66
66
  "Action Buttons": "Action Buttons",
67
67
  "Title": "Title",
68
68
  "Filename": "Filename",
@@ -101,10 +101,10 @@
101
101
  "The username of the bot": "The username of the bot",
102
102
  "The profile picture of the bot": "The profile picture of the bot",
103
103
  "See https://api.slack.com/block-kit for specs": "See https://api.slack.com/block-kit for specs",
104
+ "Enable link unfurling for this message": "Enable link unfurling for this message",
104
105
  "The text of your message": "The text of your message",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",
107
- "Enable link unfurling for this message": "Enable link unfurling for this message",
108
108
  "You can pass the file ID from the New Message Trigger payload.": "You can pass the file ID from the New Message Trigger payload.",
109
109
  "User handle (display name), without the leading @": "User handle (display name), without the leading @",
110
110
  "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.": "Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",
@@ -162,4 +162,4 @@
162
162
  "Select emojis to trigger on": "Select emojis to trigger on",
163
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "List of valid commands that the bot should respond to (e.g., help, ocr, remind)",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "If no channel is selected, the flow will be triggered for commands in all channels"
165
- }
165
+ }
package/src/i18n/zh.json CHANGED
@@ -59,10 +59,10 @@
59
59
  "Username": "用户名",
60
60
  "Profile Picture": "Profile Picture",
61
61
  "Block Kit blocks": "Block Kit blocks",
62
+ "Unfurl Links": "Unfurl Links",
62
63
  "Attachment": "Attachment",
63
64
  "Thread ts": "Thread ts",
64
65
  "Broadcast reply to channel": "Broadcast reply to channel",
65
- "Unfurl Links": "展开链接",
66
66
  "Action Buttons": "Action Buttons",
67
67
  "Title": "标题",
68
68
  "Filename": "Filename",
@@ -101,6 +101,7 @@
101
101
  "The username of the bot": "The username of the bot",
102
102
  "The profile picture of the bot": "The profile picture of the bot",
103
103
  "See https://api.slack.com/block-kit for specs": "See https://api.slack.com/block-kit for specs",
104
+ "Enable link unfurling for this message": "Enable link unfurling for this message",
104
105
  "The text of your message": "The text of your message",
105
106
  "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.": "Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",
106
107
  "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)": "When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",
@@ -160,6 +161,5 @@
160
161
  "If no channel is selected, the flow will be triggered for username mentions in all channels": "If no channel is selected, the flow will be triggered for username mentions in all channels",
161
162
  "Select emojis to trigger on": "Select emojis to trigger on",
162
163
  "List of valid commands that the bot should respond to (e.g., help, ocr, remind)": "List of valid commands that the bot should respond to (e.g., help, ocr, remind)",
163
- "Enable link unfurling for this message": "为此消息启用链接展开",
164
164
  "If no channel is selected, the flow will be triggered for commands in all channels": "If no channel is selected, the flow will be triggered for commands in all channels"
165
- }
165
+ }
@@ -3,6 +3,7 @@ export declare const slackSendDirectMessageAction: import("@activepieces/pieces-
3
3
  text: import("@activepieces/pieces-framework").LongTextProperty<true>;
4
4
  username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
5
  profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
+ mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
6
7
  blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
7
8
  unfurlLinks: import("@activepieces/pieces-framework").CheckboxProperty<false>;
8
9
  }>;
@@ -17,6 +17,7 @@ exports.slackSendDirectMessageAction = (0, pieces_framework_1.createAction)({
17
17
  text: props_1.text,
18
18
  username: props_1.username,
19
19
  profilePicture: props_1.profilePicture,
20
+ mentionOriginFlow: props_1.mentionOriginFlow,
20
21
  blocks: props_1.blocks,
21
22
  unfurlLinks: pieces_framework_1.Property.Checkbox({
22
23
  displayName: 'Unfurl Links',
@@ -28,11 +29,22 @@ exports.slackSendDirectMessageAction = (0, pieces_framework_1.createAction)({
28
29
  run(context) {
29
30
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
30
31
  const token = context.auth.access_token;
31
- const { text, userId, blocks, unfurlLinks } = context.propsValue;
32
+ const { text, userId, blocks, unfurlLinks, mentionOriginFlow } = context.propsValue;
32
33
  (0, shared_1.assertNotNullOrUndefined)(token, 'token');
33
34
  (0, shared_1.assertNotNullOrUndefined)(text, 'text');
34
35
  (0, shared_1.assertNotNullOrUndefined)(userId, 'userId');
35
- const blockList = blocks ? [{ type: 'section', text: { type: 'mrkdwn', text } }, ...blocks] : undefined;
36
+ const blockList = [{ type: 'section', text: { type: 'mrkdwn', text } }];
37
+ if (blocks && Array.isArray(blocks)) {
38
+ blockList.push(...blocks);
39
+ }
40
+ if (mentionOriginFlow) {
41
+ blockList === null || blockList === void 0 ? void 0 : blockList.push({ type: 'context', elements: [
42
+ {
43
+ "type": "mrkdwn",
44
+ "text": `Message sent by <${new URL(context.server.publicUrl).origin}/projects/${context.project.id}/flows/${context.flows.current.id}|this flow>.`
45
+ }
46
+ ] });
47
+ }
36
48
  return (0, utils_1.slackSendMessage)({
37
49
  token,
38
50
  text,
@@ -1 +1 @@
1
- {"version":3,"file":"send-direct-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-direct-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAAmD;AACnD,8BAAmC;AACnC,iDAAgE;AAChE,2CAMyB;AAIZ,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE;QACL,MAAM,EAAN,cAAM;QACN,IAAI,EAAJ,YAAI;QACJ,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,MAAM,EAAN,cAAM;QACN,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;YACxC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEjE,IAAA,iCAAwB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACzC,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACvC,IAAA,iCAAwB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE3C,MAAM,SAAS,GAAG,MAAM,CAAC,CAAC,CAAA,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,GAAI,MAA4C,CAAC,CAAC,CAAC,CAAA,SAAS,CAAA;YAG5I,OAAO,IAAA,wBAAgB,EAAC;gBACtB,KAAK;gBACL,IAAI;gBACJ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;gBACrC,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc;gBACjD,cAAc,EAAE,MAAM;gBACtB,MAAM,EAAC,SAAS;gBAChB,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"send-direct-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-direct-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAAmD;AACnD,8BAAmC;AACnC,iDAAgE;AAChE,2CAOyB;AAIZ,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE;QACL,MAAM,EAAN,cAAM;QACN,IAAI,EAAJ,YAAI;QACJ,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,iBAAiB,EAAjB,yBAAiB;QACjB,MAAM,EAAN,cAAM;QACN,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;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@@ -7,6 +7,7 @@ export declare const slackSendMessageAction: import("@activepieces/pieces-framew
7
7
  file: import("@activepieces/pieces-framework").FileProperty<false>;
8
8
  threadTs: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
9
  replyBroadcast: import("@activepieces/pieces-framework").CheckboxProperty<false>;
10
+ mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
10
11
  unfurlLinks: import("@activepieces/pieces-framework").CheckboxProperty<false>;
11
12
  blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
12
13
  }>;
@@ -32,6 +32,7 @@ exports.slackSendMessageAction = (0, pieces_framework_1.createAction)({
32
32
  required: false,
33
33
  defaultValue: false,
34
34
  }),
35
+ mentionOriginFlow: props_1.mentionOriginFlow,
35
36
  unfurlLinks: pieces_framework_1.Property.Checkbox({
36
37
  displayName: 'Unfurl Links',
37
38
  description: 'Enable link unfurling for this message',
@@ -43,8 +44,19 @@ exports.slackSendMessageAction = (0, pieces_framework_1.createAction)({
43
44
  run(context) {
44
45
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
45
46
  const token = context.auth.access_token;
46
- const { text, channel, username, profilePicture, threadTs, file, blocks, replyBroadcast, unfurlLinks } = context.propsValue;
47
- const blockList = blocks && Array.isArray(blocks) ? [{ type: 'section', text: { type: 'mrkdwn', text } }, ...blocks] : undefined;
47
+ const { text, channel, username, profilePicture, threadTs, file, mentionOriginFlow, blocks, replyBroadcast, unfurlLinks } = context.propsValue;
48
+ const blockList = [{ type: 'section', text: { type: 'mrkdwn', text } }];
49
+ if (blocks && Array.isArray(blocks)) {
50
+ blockList.push(...blocks);
51
+ }
52
+ if (mentionOriginFlow) {
53
+ blockList === null || blockList === void 0 ? void 0 : blockList.push({ type: 'context', elements: [
54
+ {
55
+ "type": "mrkdwn",
56
+ "text": `Message sent by <${new URL(context.server.publicUrl).origin}/projects/${context.project.id}/flows/${context.flows.current.id}|this flow>.`
57
+ }
58
+ ] });
59
+ }
48
60
  return (0, utils_1.slackSendMessage)({
49
61
  token,
50
62
  text,
@@ -1 +1 @@
1
- {"version":3,"file":"send-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAOyB;AACzB,2CAA4E;AAC5E,8BAAmC;AAItB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC3B,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAd,sBAAc;QACd,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAR,gBAAQ;QACR,cAAc,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAChC,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,yIAAyI;YACtJ,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;QACF,MAAM,EAAN,cAAM;KACP;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC;YACxC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GACpG,OAAO,CAAC,UAAU,CAAC;YAErB,MAAM,SAAS,GAAG,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,GAAI,MAA4C,CAAC,CAAC,CAAC,CAAA,SAAS,CAAA;YAErK,OAAO,IAAA,wBAAgB,EAAC;gBACtB,KAAK;gBACL,IAAI;gBACJ,QAAQ;gBACR,cAAc;gBACd,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAA,+BAAuB,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;gBAClE,IAAI;gBACJ,MAAM,EAAE,SAAS;gBACjB,cAAc;gBACd,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"send-message-action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/actions/send-message-action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAQyB;AACzB,2CAA4E;AAC5E,8BAAmC;AAItB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE;QACL,IAAI,EAAE,+BAAuB;QAC7B,OAAO,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC;QAC3B,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,0BAA0B;YACvC,QAAQ,EAAE,IAAI;SACf,CAAC;Q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BACE,MAAM,EAAE,QAAQ;4BAChB,MAAM,EAAE,oBAAoB,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,aAAa,OAAO,CAAC,OAAO,CAAC,EAAE,UAAU,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,cAAc;yBACpJ;qBACF,EAAE,CAAC,CAAA;YACN,CAAC;YAED,OAAO,IAAA,wBAAgB,EAAC;gBACtB,KAAK;gBACL,IAAI;gBACJ,QAAQ;gBACR,cAAc;gBACd,cAAc,EAAE,OAAO;gBACvB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAA,+BAAuB,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;gBAClE,IAAI;gBACJ,MAAM,EAAE,SAAS;gBACjB,cAAc;gBACd,WAAW;aACZ,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -4,6 +4,7 @@ export declare const slackChannel: <R extends boolean>(required: R) => R extends
4
4
  export declare const username: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
5
  export declare const profilePicture: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
6
  export declare const threadTs: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
+ export declare const mentionOriginFlow: import("@activepieces/pieces-framework").CheckboxProperty<false>;
7
8
  export declare const blocks: import("@activepieces/pieces-framework").JsonProperty<false>;
8
9
  export declare const userId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
9
10
  export declare const text: import("@activepieces/pieces-framework").LongTextProperty<true>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.actions = exports.text = exports.userId = exports.blocks = exports.threadTs = exports.profilePicture = exports.username = exports.slackChannel = exports.singleSelectChannelInfo = exports.multiSelectChannelInfo = void 0;
3
+ exports.actions = exports.text = exports.userId = exports.blocks = exports.mentionOriginFlow = exports.threadTs = exports.profilePicture = exports.username = exports.slackChannel = exports.singleSelectChannelInfo = exports.multiSelectChannelInfo = void 0;
4
4
  exports.getChannels = getChannels;
5
5
  const tslib_1 = require("tslib");
6
6
  const pieces_framework_1 = require("@activepieces/pieces-framework");
@@ -61,10 +61,17 @@ exports.threadTs = pieces_framework_1.Property.ShortText({
61
61
  description: 'Provide the ts (timestamp) value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.',
62
62
  required: false,
63
63
  });
64
+ exports.mentionOriginFlow = pieces_framework_1.Property.Checkbox({
65
+ displayName: 'Mention flow of origin?',
66
+ description: 'If checked, adds a mention at the end of the Slack message to indicate which flow sent the notification, with a link to said flow.',
67
+ required: false,
68
+ defaultValue: false,
69
+ });
64
70
  exports.blocks = pieces_framework_1.Property.Json({
65
71
  displayName: 'Block Kit blocks',
66
72
  description: 'See https://api.slack.com/block-kit for specs',
67
73
  required: false,
74
+ defaultValue: []
68
75
  });
69
76
  exports.userId = pieces_framework_1.Property.Dropdown({
70
77
  displayName: 'User',
@@ -1 +1 @@
1
- {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/common/props.ts"],"names":[],"mappings":";;;AA+IA,kCA0BC;;AAzKD,qEAA+E;AAC/E,4CAA8D;AAE9D,MAAM,0BAA0B,GAAG;;;;;GAKhC,CAAC;AAES,QAAA,sBAAsB,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IACtD,KAAK,EACH,0BAA0B;QAC1B,uPAAuP;CAC1P,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IACvD,KAAK,EACH,0BAA0B;QAC1B;GACD;CACF,CAAC,CAAC;AAEI,MAAM,YAAY,GAAG,CAAoB,QAAW,EAAE,EAAE,CAC7D,2BAAQ,CAAC,QAAQ,CAAY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AE,EAAE;oBACnC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC;gBAChE,CAAC,CAAC,CACH,CAAC;YACJ,CAAC;YAED,MAAM,GAAG,MAAA,QAAQ,CAAC,iBAAiB,0CAAE,WAAW,CAAC;QACnD,CAAC,QAAQ,MAAM,IAAI,QAAQ,CAAC,MAAM,GAAG,cAAc,EAAE;QAErD,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA"}
1
+ {"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/slack/src/lib/common/props.ts"],"names":[],"mappings":";;;AAwJA,kCA0BC;;AAlLD,qEAA+E;AAC/E,4CAA8D;AAE9D,MAAM,0BAA0B,GAAG;;;;;GAKhC,CAAC;AAES,QAAA,sBAAsB,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IACtD,KAAK,EACH,0BAA0B;QAC1B,uPAAuP;CAC1P,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,2BAAQ,CAAC,QAAQ,CAAC;IACvD,KAAK,EACH,0BAA0B;QAC1B;GACD;CACF,CAAC,CAAC;AAEI,MAAM,YAAY,GAAG,CAAoB,QAAW,EAAE,EAAE,CAC7D,2BAAQ,CAAC,QAAQ,CAAY;IAC3B,WAAW,EAAE,SAAS;IACtB,WAAW,EACT,mGAAmG;IACrG,QAAQ;IACR,UAAU,EAAE,EAAE;IACR,OAAO;qEAAC,EAAE,IAAI,EAAE;YACpB,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,uBAAuB;oBACpC,OAAO,EAAE,EAAE;iBACZ,CAAC;YACJ,CAAC;YACD,MAAM,cAAc,GAAG,IAA2B,CAAC;YACnD,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;YAEnD,MAAM,QAAQ,GAAG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