@bigbinary/neeto-integrations-frontend 4.0.35 → 4.0.37

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 (42) hide show
  1. package/app/javascript/src/translations/ar.json +2 -1
  2. package/app/javascript/src/translations/bg.json +2 -1
  3. package/app/javascript/src/translations/ca.json +2 -1
  4. package/app/javascript/src/translations/cs.json +2 -1
  5. package/app/javascript/src/translations/da.json +2 -1
  6. package/app/javascript/src/translations/de.json +2 -1
  7. package/app/javascript/src/translations/en.json +2 -1
  8. package/app/javascript/src/translations/es-MX.json +2 -1
  9. package/app/javascript/src/translations/es.json +2 -1
  10. package/app/javascript/src/translations/et.json +2 -1
  11. package/app/javascript/src/translations/fi.json +2 -1
  12. package/app/javascript/src/translations/fil.json +2 -1
  13. package/app/javascript/src/translations/fr.json +2 -1
  14. package/app/javascript/src/translations/he.json +2 -1
  15. package/app/javascript/src/translations/hi.json +2 -1
  16. package/app/javascript/src/translations/hr.json +2 -1
  17. package/app/javascript/src/translations/hu.json +2 -1
  18. package/app/javascript/src/translations/id.json +2 -1
  19. package/app/javascript/src/translations/it.json +2 -1
  20. package/app/javascript/src/translations/ja.json +2 -1
  21. package/app/javascript/src/translations/ko.json +2 -1
  22. package/app/javascript/src/translations/nl.json +2 -1
  23. package/app/javascript/src/translations/pl.json +2 -1
  24. package/app/javascript/src/translations/pt-BR.json +2 -1
  25. package/app/javascript/src/translations/pt.json +2 -1
  26. package/app/javascript/src/translations/ro.json +2 -1
  27. package/app/javascript/src/translations/ru.json +2 -1
  28. package/app/javascript/src/translations/sk.json +2 -1
  29. package/app/javascript/src/translations/sl.json +2 -1
  30. package/app/javascript/src/translations/sv.json +2 -1
  31. package/app/javascript/src/translations/th.json +2 -1
  32. package/app/javascript/src/translations/tr.json +2 -1
  33. package/app/javascript/src/translations/uk.json +2 -1
  34. package/app/javascript/src/translations/vi.json +2 -1
  35. package/app/javascript/src/translations/zh-CN.json +2 -1
  36. package/app/javascript/src/translations/zh-TW.json +2 -1
  37. package/dist/.ready +1 -1
  38. package/dist/cjs/index.js +19 -4
  39. package/dist/cjs/index.js.map +1 -1
  40. package/dist/index.js +19 -4
  41. package/dist/index.js.map +1 -1
  42. package/package.json +1 -1
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "تم فصل تكامل <integrations/> الخاص بك بسبب مشكلة في الأذونات. قم بتوصيله الآن.",
160
- "message_other": "تم فصل تكاملات <integrations/> الخاصة بك بسبب مشكلة في الأذونات. قم بتوصيلها الآن."
160
+ "message_other": "تم فصل تكاملات <integrations/> الخاصة بك بسبب مشكلة في الأذونات. قم بتوصيلها الآن.",
161
+ "non_permission_message_one": "تم فصل تكامل <integrations/> الخاص بك. قم بتوصيله الآن."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Вашата <integrations/> интеграция е прекъсната поради проблем с разрешенията. Свържете я сега.",
160
- "message_other": "Вашите <integrations/> интеграции са прекъснати поради проблем с разрешенията. Свържете ги сега."
160
+ "message_other": "Вашите <integrations/> интеграции са прекъснати поради проблем с разрешенията. Свържете ги сега.",
161
+ "non_permission_message_one": "Вашата <integrations/> интеграция е прекъсната. Свържете я сега."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "La teva integració <integrations/> s'ha desconnectat a causa d'un problema de permisos. Connecta-ho ara.",
160
- "message_other": "Les teves integracions <integrations/> s'han desconnectat a causa d'un problema de permisos. Connecta-les ara."
160
+ "message_other": "Les teves integracions <integrations/> s'han desconnectat a causa d'un problema de permisos. Connecta-les ara.",
161
+ "non_permission_message_one": "La teva integració <integrations/> ha estat desconnectada. Connecta-la ara."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Vaše integrace <integrations/> byla odpojena kvůli problému s oprávněním. Připojte ji nyní.",
160
- "message_other": "Vaše integrace <integrations/> byly odpojeny kvůli problému s oprávněním. Připojte je nyní."
160
+ "message_other": "Vaše integrace <integrations/> byly odpojeny kvůli problému s oprávněním. Připojte je nyní.",
161
+ "non_permission_message_one": "Vaše <integrations/> integrace byla odpojena. Připojte ji nyní."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Din <integrations/> integration er blevet afbrudt på grund af et tilladelsesproblem. Tilslut den nu.",
160
- "message_other": "Dine <integrations/> integrationer er blevet afbrudt på grund af et tilladelsesproblem. Tilslut dem nu."
160
+ "message_other": "Dine <integrations/> integrationer er blevet afbrudt på grund af et tilladelsesproblem. Tilslut dem nu.",
161
+ "non_permission_message_one": "Din <integrations/> integration er blevet frakoblet. Tilslut den nu."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Ihre <integrations/>-Integration wurde aufgrund eines Berechtigungsproblems getrennt. Stellen Sie sie jetzt wieder her.",
160
- "message_other": "Ihre <integrations/>-Integrationen wurden aufgrund eines Berechtigungsproblems getrennt. Stellen Sie sie jetzt wieder her."
160
+ "message_other": "Ihre <integrations/>-Integrationen wurden aufgrund eines Berechtigungsproblems getrennt. Stellen Sie sie jetzt wieder her.",
161
+ "non_permission_message_one": "Ihre <integrations/>-Integration wurde getrennt. Verbinden Sie sie jetzt."
161
162
  }
162
163
  }
163
164
  }
@@ -144,7 +144,8 @@
144
144
  },
145
145
  "disconnectionRibbon": {
146
146
  "message_one": "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
147
- "message_other": "Your <integrations /> integrations have been disconnected due to a permission issue. Connect them now."
147
+ "message_other": "Your <integrations /> integrations have been disconnected due to a permission issue. Connect them now.",
148
+ "non_permission_message_one": "Your <integrations /> integration has been disconnected. Connect it now."
148
149
  },
149
150
  "google": {
150
151
  "connect": {
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Tu integración <integrations/> ha sido desconectada debido a un problema de permisos. Conéctala ahora.",
160
- "message_other": "Tus integraciones <integrations/> han sido desconectadas debido a un problema de permisos. Conéctalas ahora."
160
+ "message_other": "Tus integraciones <integrations/> han sido desconectadas debido a un problema de permisos. Conéctalas ahora.",
161
+ "non_permission_message_one": "Tu integración <integrations/> ha sido desconectada. Conéctala ahora."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Tu integración <integrations/> ha sido desconectada debido a un problema de permisos. Conéctala ahora.",
160
- "message_other": "Tus integraciones <integrations/> han sido desconectadas debido a un problema de permisos. Conéctalas ahora."
160
+ "message_other": "Tus integraciones <integrations/> han sido desconectadas debido a un problema de permisos. Conéctalas ahora.",
161
+ "non_permission_message_one": "Tu integración <integrations/> ha sido desconectada. Conéctala ahora."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Teie <integrations/> intégratsioon on ühendatud, kuna esines õiguste probleem. Ühendage see nüüd.",
160
- "message_other": "Teie <integrations/> integratsioonid on ühendatud, kuna esines õiguste probleem. Ühendage need nüüd."
160
+ "message_other": "Teie <integrations/> integratsioonid on ühendatud, kuna esines õiguste probleem. Ühendage need nüüd.",
161
+ "non_permission_message_one": "Teie <integrations/> integratsioon on lahti ühendatud. Ühendage see nüüd."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Your <integrations/> -integraatio on irrotettu käyttöoikeusongelman vuoksi. Yhdistä se nyt.",
160
- "message_other": "Your <integrations/> -integraatiot on irrotettu käyttöoikeusongelman vuoksi. Yhdistä ne nyt."
160
+ "message_other": "Your <integrations/> -integraatiot on irrotettu käyttöoikeusongelman vuoksi. Yhdistä ne nyt.",
161
+ "non_permission_message_one": "Teidän <integrations/> integraatio on katkaistu. Yhdistä se nyt."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Ang iyong <integrations/> na integrasyon ay na-disconnect dahil sa isyu sa pahintulot. Ikonekta ito ngayon.",
160
- "message_other": "Ang iyong <integrations/> na mga integrasyon ay na-disconnect dahil sa isyu sa pahintulot. Ikonekta ang mga ito ngayon."
160
+ "message_other": "Ang iyong <integrations/> na mga integrasyon ay na-disconnect dahil sa isyu sa pahintulot. Ikonekta ang mga ito ngayon.",
161
+ "non_permission_message_one": "Ang iyong <integrations/> na integrasyon ay na-disconnect. Ikonekta ito ngayon."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Votre intégration <integrations/> a été déconnectée en raison d'un problème de permission. Connectez-la maintenant.",
160
- "message_other": "Vos intégrations <integrations/> ont été déconnectées en raison d'un problème de permission. Connectez-les maintenant."
160
+ "message_other": "Vos intégrations <integrations/> ont été déconnectées en raison d'un problème de permission. Connectez-les maintenant.",
161
+ "non_permission_message_one": "Votre intégration <integrations/> a été déconnectée. Connectez-la maintenant."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "האינטגרציה שלך <integrations/> התנתקה עקב בעיית הרשאות. חבר אותה עכשיו.",
160
- "message_other": "האינטגרציות שלך <integrations/> התנתקו עקב בעיית הרשאות. חבר אותן עכשיו."
160
+ "message_other": "האינטגרציות שלך <integrations/> התנתקו עקב בעיית הרשאות. חבר אותן עכשיו.",
161
+ "non_permission_message_one": "ההשתלבות שלך <integrations/> התנתקה. חבר אותה עכשיו."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "आपका <integrations/> एकीकरण अनुमति समस्या के कारण काट दिया गया है। अब इसे कनेक्ट करें।",
160
- "message_other": "आपके <integrations/> एकीकरण अनुमति समस्या के कारण काट दिए गए हैं। अब उन्हें कनेक्ट करें।"
160
+ "message_other": "आपके <integrations/> एकीकरण अनुमति समस्या के कारण काट दिए गए हैं। अब उन्हें कनेक्ट करें।",
161
+ "non_permission_message_one": "आपका <integrations/> इंटीग्रेशन डिस्कनेक्ट हो गया है। इसे अभी कनेक्ट करें।"
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Vaša <integrations/> integracija je odspojena zbog problema s dozvolama. Povežite je sada.",
160
- "message_other": "Vaše <integrations/> integracije su odspojene zbog problema s dozvolama. Povežite ih sada."
160
+ "message_other": "Vaše <integrations/> integracije su odspojene zbog problema s dozvolama. Povežite ih sada.",
161
+ "non_permission_message_one": "Vaša <integrations/> integracija je prekinuta. Povežite je sada."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "A(z) <integrations/> integrációd leválasztva lett egy jogosultsági probléma miatt. Csatlakoztasd most.",
160
- "message_other": "A(z) <integrations/> integrációid leválasztva lettek egy jogosultsági probléma miatt. Csatlakoztasd őket most."
160
+ "message_other": "A(z) <integrations/> integrációid leválasztva lettek egy jogosultsági probléma miatt. Csatlakoztasd őket most.",
161
+ "non_permission_message_one": "A(z) <integrations/> integrációt leválasztották. Csatlakoztassa most."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Integrasi <integrations/> Anda telah terputus karena masalah izin. Hubungkan sekarang.",
160
- "message_other": "Integrasi <integrations/> Anda telah terputus karena masalah izin. Hubungkan mereka sekarang."
160
+ "message_other": "Integrasi <integrations/> Anda telah terputus karena masalah izin. Hubungkan mereka sekarang.",
161
+ "non_permission_message_one": "Integrasi <integrations/> Anda telah terputus. Hubungkan sekarang."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "La tua integrazione <integrations/> è stata disconnessa a causa di un problema di autorizzazione. Connettila ora.",
160
- "message_other": "Le tue integrazioni <integrations/> sono state disconnesse a causa di un problema di autorizzazione. Connettile ora."
160
+ "message_other": "Le tue integrazioni <integrations/> sono state disconnesse a causa di un problema di autorizzazione. Connettile ora.",
161
+ "non_permission_message_one": "La tua integrazione <integrations/> è stata disconnessa. Connettila ora."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "あなたの<integrations/>統合は、権限の問題により切断されました。今すぐ接続してください。",
160
- "message_other": "あなたの<integrations/>統合は、権限の問題により切断されました。今すぐ接続してください。"
160
+ "message_other": "あなたの<integrations/>統合は、権限の問題により切断されました。今すぐ接続してください。",
161
+ "non_permission_message_one": "<integrations/>の統合が切断されました。今すぐ接続してください。"
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "당신의 <integrations/> 통합이 권한 문제로 인해 연결이 끊어졌습니다. 지금 연결하세요.",
160
- "message_other": "당신의 <integrations/> 통합들이 권한 문제로 인해 연결이 끊어졌습니다. 지금 연결하세요."
160
+ "message_other": "당신의 <integrations/> 통합들이 권한 문제로 인해 연결이 끊어졌습니다. 지금 연결하세요.",
161
+ "non_permission_message_one": "당신의 <integrations/> 통합이 연결이 해제되었습니다. 지금 연결하세요."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Uw <integrations/> integratie is losgekoppeld vanwege een machtigingsprobleem. Verbind het nu.",
160
- "message_other": "Uw <integrations/> integraties zijn losgekoppeld vanwege een machtigingsprobleem. Verbind ze nu."
160
+ "message_other": "Uw <integrations/> integraties zijn losgekoppeld vanwege een machtigingsprobleem. Verbind ze nu.",
161
+ "non_permission_message_one": "Jouw <integrations/> integratie is ontkoppeld. Verbind het nu."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Twoja integracja <integrations/> została rozłączona z powodu problemu z uprawnieniami. Połącz ją teraz.",
160
- "message_other": "Twoje integracje <integrations/> zostały rozłączone z powodu problemu z uprawnieniami. Połącz je teraz."
160
+ "message_other": "Twoje integracje <integrations/> zostały rozłączone z powodu problemu z uprawnieniami. Połącz je teraz.",
161
+ "non_permission_message_one": "Twoja integracja <integrations/> została rozłączona. Połącz ją teraz."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Sua integração <integrations/> foi desconectada devido a um problema de permissão. Conecte-a agora.",
160
- "message_other": "Suas integrações <integrations/> foram desconectadas devido a um problema de permissão. Conecte-as agora."
160
+ "message_other": "Suas integrações <integrations/> foram desconectadas devido a um problema de permissão. Conecte-as agora.",
161
+ "non_permission_message_one": "Sua integração <integrations/> foi desconectada. Conecte-a agora."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Sua integração <integrations/> foi desconectada devido a um problema de permissão. Conecte-a agora.",
160
- "message_other": "Suas integrações <integrations/> foram desconectadas devido a um problema de permissão. Conecte-as agora."
160
+ "message_other": "Suas integrações <integrations/> foram desconectadas devido a um problema de permissão. Conecte-as agora.",
161
+ "non_permission_message_one": "Sua integração <integrations/> foi desconectada. Conecte-a agora."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Integrarea dumneavoastră <integrations/> a fost deconectată din cauza unei probleme de permisiune. Conectați-o acum.",
160
- "message_other": "Integrările dumneavoastră <integrations/> au fost deconectate din cauza unei probleme de permisiune. Conectați-le acum."
160
+ "message_other": "Integrările dumneavoastră <integrations/> au fost deconectate din cauza unei probleme de permisiune. Conectați-le acum.",
161
+ "non_permission_message_one": "Integrarea dumneavoastră <integrations/> a fost deconectată. Conectați-o acum."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Ваша интеграция <integrations/> была отключена из-за проблемы с разрешениями. Подключите ее сейчас.",
160
- "message_other": "Ваши интеграции <integrations/> были отключены из-за проблемы с разрешениями. Подключите их сейчас."
160
+ "message_other": "Ваши интеграции <integrations/> были отключены из-за проблемы с разрешениями. Подключите их сейчас.",
161
+ "non_permission_message_one": "Ваша интеграция <integrations/> отключена. Подключите её сейчас."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Vaša <integrations/> integrácia bola odpojená z dôvodu problému s povolením. Pripojte ju teraz.",
160
- "message_other": "Vaše <integrations/> integrácie boli odpojené z dôvodu problému s povolením. Pripojte ich teraz."
160
+ "message_other": "Vaše <integrations/> integrácie boli odpojené z dôvodu problému s povolením. Pripojte ich teraz.",
161
+ "non_permission_message_one": "Vaša integrácia <integrations/> bola odpojená. Pripojte ju teraz."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Vaša <integrations/> integracija je bila odklopljena zaradi težave z dovoljenji. Povežite jo zdaj.",
160
- "message_other": "Vaše <integrations/> integracije so bile odklopljene zaradi težave z dovoljenji. Povežite jih zdaj."
160
+ "message_other": "Vaše <integrations/> integracije so bile odklopljene zaradi težave z dovoljenji. Povežite jih zdaj.",
161
+ "non_permission_message_one": "Vaša integracija <integrations/> je bila prekinjena. Povežite jo zdaj."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Din <integrations/>-integration har kopplats bort på grund av ett behörighetsproblem. Anslut den nu.",
160
- "message_other": "Dina <integrations/>-integrationer har kopplats bort på grund av ett behörighetsproblem. Anslut dem nu."
160
+ "message_other": "Dina <integrations/>-integrationer har kopplats bort på grund av ett behörighetsproblem. Anslut dem nu.",
161
+ "non_permission_message_one": "Din <integrations/> integration har kopplats bort. Anslut den nu."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "การเชื่อมต่อ <integrations/> ของคุณถูกตัดการเชื่อมต่อเนื่องจากปัญหาสิทธิ์ เชื่อมต่อใหม่ตอนนี้.",
160
- "message_other": "การเชื่อมต่อ <integrations/> ของคุณถูกตัดการเชื่อมต่อเนื่องจากปัญหาสิทธิ์ เชื่อมต่อใหม่ตอนนี้."
160
+ "message_other": "การเชื่อมต่อ <integrations/> ของคุณถูกตัดการเชื่อมต่อเนื่องจากปัญหาสิทธิ์ เชื่อมต่อใหม่ตอนนี้.",
161
+ "non_permission_message_one": "การเชื่อมต่อ <integrations/> ของคุณถูกตัดการเชื่อมต่อแล้ว เชื่อมต่อใหม่ตอนนี้"
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Sizin <integrations/> entegrasyonunuz bir izin sorunu nedeniyle bağlantısı kesildi. Şimdi bağlayın.",
160
- "message_other": "Sizin <integrations/> entegrasyonlarınız bir izin sorunu nedeniyle bağlantısı kesildi. Onları şimdi bağlayın."
160
+ "message_other": "Sizin <integrations/> entegrasyonlarınız bir izin sorunu nedeniyle bağlantısı kesildi. Onları şimdi bağlayın.",
161
+ "non_permission_message_one": "Sizin <integrations/> entegrasyonunuz bağlantısı kesildi. Şimdi bağlayın."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Вашу інтеграцію <integrations/> було відключено через проблему з дозволом. Підключіть її зараз.",
160
- "message_other": "Ваші інтеграції <integrations/> були відключені через проблему з дозволом. Підключіть їх зараз."
160
+ "message_other": "Ваші інтеграції <integrations/> були відключені через проблему з дозволом. Підключіть їх зараз.",
161
+ "non_permission_message_one": "Вашу інтеграцію <integrations/> було відключено. Підключіть її зараз."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "Tích hợp <integrations/> của bạn đã bị ngắt kết nối do vấn đề về quyền. Kết nối ngay bây giờ.",
160
- "message_other": "Các tích hợp <integrations/> của bạn đã bị ngắt kết nối do vấn đề về quyền. Kết nối chúng ngay bây giờ."
160
+ "message_other": "Các tích hợp <integrations/> của bạn đã bị ngắt kết nối do vấn đề về quyền. Kết nối chúng ngay bây giờ.",
161
+ "non_permission_message_one": "Tích hợp <integrations/> của bạn đã bị ngắt kết nối. Kết nối lại ngay bây giờ."
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "您的 <integrations/> 集成由于权限问题已被断开连接。请立即连接它。",
160
- "message_other": "您的 <integrations/> 集成由于权限问题已被断开连接。请立即连接它们。"
160
+ "message_other": "您的 <integrations/> 集成由于权限问题已被断开连接。请立即连接它们。",
161
+ "non_permission_message_one": "您的 <integrations/> 集成已断开连接。请立即连接。"
161
162
  }
162
163
  }
163
164
  }
@@ -157,7 +157,8 @@
157
157
  },
158
158
  "disconnectionRibbon": {
159
159
  "message_one": "您的 <integrations/> 整合因權限問題已被斷開。立即連接它。",
160
- "message_other": "您的 <integrations/> 整合因權限問題已被斷開。立即連接它們。"
160
+ "message_other": "您的 <integrations/> 整合因權限問題已被斷開。立即連接它們。",
161
+ "non_permission_message_one": "您的 <integrations/> 整合已斷開。立即連接它。"
161
162
  }
162
163
  }
163
164
  }
package/dist/.ready CHANGED
@@ -1 +1 @@
1
- Built at 2026-05-22T12:30:50.358Z
1
+ Built at 2026-05-23T05:03:33.279Z
package/dist/cjs/index.js CHANGED
@@ -9,6 +9,7 @@ var ramda = require('ramda');
9
9
  var reactI18next = require('react-i18next');
10
10
  var reactRouterDom = require('react-router-dom');
11
11
  var useDisconnectionAlertsApi = require('../useDisconnectionAlertsApi-CWMlpOJD.js');
12
+ var i18next = require('i18next');
12
13
  var jsxRuntime = require('react/jsx-runtime');
13
14
  var Daily = require('./Daily.js');
14
15
  var DailyForm = require('./DailyForm.js');
@@ -37,7 +38,6 @@ require('@bigbinary/neetoui/Alert');
37
38
  require('@tanstack/react-query');
38
39
  require('@bigbinary/neeto-commons-frontend/constants');
39
40
  require('axios');
40
- require('i18next');
41
41
  require('../useDailiesApi-CEJPknLb.js');
42
42
  require('@bigbinary/neeto-commons-frontend/utils');
43
43
  require('@bigbinary/neeto-icons/misc/Daily');
@@ -64,6 +64,21 @@ require('classnames');
64
64
  require('../index-dxk7jTL7.js');
65
65
  require('../success-CsNvTPBG.js');
66
66
 
67
+ var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
68
+ return alerts.length === 1 && alerts[0].serviceName === "eupi";
69
+ };
70
+ var getDisconnectionRibbonDefaultMessage = function getDisconnectionRibbonDefaultMessage(alerts) {
71
+ return getHasOnlyUPIIntegration(alerts) ? i18next.t("neetoIntegrations.disconnectionRibbon.non_permission_message", {
72
+ count: alerts.length
73
+ }) : i18next.t("neetoIntegrations.disconnectionRibbon.message", {
74
+ count: alerts.length
75
+ });
76
+ };
77
+ var getDisconnectionRibbonI18nKey = function getDisconnectionRibbonI18nKey(alerts, integrationRouteMap) {
78
+ var hasOnlyUPIIntegration = getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;
79
+ return hasOnlyUPIIntegration ? "neetoIntegrations.disconnectionRibbon.non_permission_message" : "neetoIntegrations.disconnectionRibbon.message";
80
+ };
81
+
67
82
  var IntegrationLinks = function IntegrationLinks(_ref) {
68
83
  var alerts = _ref.alerts,
69
84
  integrationRouteMap = _ref.integrationRouteMap;
@@ -110,14 +125,14 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
110
125
  className: "w-full",
111
126
  children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
112
127
  count: knownAlerts.length,
113
- defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
114
- i18nKey: "neetoIntegrations.disconnectionRibbon.message",
128
+ defaults: getDisconnectionRibbonDefaultMessage(knownAlerts),
115
129
  components: {
116
130
  integrations: /*#__PURE__*/jsxRuntime.jsx(IntegrationLinks, {
117
131
  integrationRouteMap: integrationRouteMap,
118
132
  alerts: knownAlerts
119
133
  })
120
- }
134
+ },
135
+ i18nKey: getDisconnectionRibbonI18nKey(knownAlerts, integrationRouteMap)
121
136
  })
122
137
  })
123
138
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["IntegrationLinks","_ref","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","count","length","defaults","i18nKey","components","integrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,mBAAmB,GAAAF,IAAA,CAAnBE,mBAAmB;EAAA,OACrDD,MAAM,CAACE,GAAG,CAAC,UAACC,KAAK,EAAEC,KAAK,EAAK;AAC3B,IAAA,IAAAC,qBAAA,GAAwBJ,mBAAmB,CAACE,KAAK,CAACG,WA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ME,WAAW,GAAGnC,MAAM,CAACoC,MAAM,CAC/B,UAAAjC,KAAK,EAAA;AAAA,IAAA,OAAIF,mBAAmB,CAACE,KAAK,CAACG,WAAW,CAAC;AAAA,EAAA,CACjD,CAAC;EAED,IAAImB,QAAQ,IAAIY,aAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;EAEjD,oBACEtB,cAAA,CAACyB,GAAG,EAAA;AACFvB,IAAAA,SAAS,EAAC,wDAAwD;AAClE,IAAA,aAAA,EAAY,kCAAkC;AAC9CwB,IAAAA,IAAI,EAAC,OAAO;AACZC,IAAAA,KAAK,EAAC,SAAS;IACfC,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQf,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;AAAAd,IAAAA,QAAA,eAEjCC,cAAA,CAAA,MAAA,EAAA;AAAME,MAAAA,SAAS,EAAC,QAAQ;MAAAH,QAAA,eACtBC,cAAA,CAAC6B,kBAAK,EAAA;QACJC,KAAK,EAAER,WAAW,CAACS,MAAO;AAC1BC,QAAAA,QAAQ,EAAC,oGAAoG;AAC7GC,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACVnC,cAAA,CAACf,gBAAgB,EAAA;AACTG,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEmC;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","defaults","components","integrations","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,SAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,SAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,qBAAqB,G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BAAmB,EAAnBA,mBAAmB;AACzBP,YAAAA,MAAM,EAAE4C;WACT;SAEH;AACFW,QAAAA,OAAO,EAAEjD,6BAA6B,CACpCsC,WAAW,EACXrC,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -7,6 +7,7 @@ import { isEmpty } from 'ramda';
7
7
  import { useTranslation, Trans } from 'react-i18next';
8
8
  import { Link } from 'react-router-dom';
9
9
  import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-BOc2pEP_.js';
10
+ import { t } from 'i18next';
10
11
  import { jsx, jsxs } from 'react/jsx-runtime';
11
12
  export { default as Daily } from './Daily.js';
12
13
  export { default as DailyForm } from './DailyForm.js';
@@ -35,7 +36,6 @@ import '@bigbinary/neetoui/Alert';
35
36
  import '@tanstack/react-query';
36
37
  import '@bigbinary/neeto-commons-frontend/constants';
37
38
  import 'axios';
38
- import 'i18next';
39
39
  import './useDailiesApi-aQmuxf-5.js';
40
40
  import '@bigbinary/neeto-commons-frontend/utils';
41
41
  import '@bigbinary/neeto-icons/misc/Daily';
@@ -62,6 +62,21 @@ import 'classnames';
62
62
  import './index-MS1ts-9f.js';
63
63
  import './success-C6rQdhhF.js';
64
64
 
65
+ var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
66
+ return alerts.length === 1 && alerts[0].serviceName === "eupi";
67
+ };
68
+ var getDisconnectionRibbonDefaultMessage = function getDisconnectionRibbonDefaultMessage(alerts) {
69
+ return getHasOnlyUPIIntegration(alerts) ? t("neetoIntegrations.disconnectionRibbon.non_permission_message", {
70
+ count: alerts.length
71
+ }) : t("neetoIntegrations.disconnectionRibbon.message", {
72
+ count: alerts.length
73
+ });
74
+ };
75
+ var getDisconnectionRibbonI18nKey = function getDisconnectionRibbonI18nKey(alerts, integrationRouteMap) {
76
+ var hasOnlyUPIIntegration = getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;
77
+ return hasOnlyUPIIntegration ? "neetoIntegrations.disconnectionRibbon.non_permission_message" : "neetoIntegrations.disconnectionRibbon.message";
78
+ };
79
+
65
80
  var IntegrationLinks = function IntegrationLinks(_ref) {
66
81
  var alerts = _ref.alerts,
67
82
  integrationRouteMap = _ref.integrationRouteMap;
@@ -108,14 +123,14 @@ var DisconnectedIntegrationsRibbon = function DisconnectedIntegrationsRibbon(_re
108
123
  className: "w-full",
109
124
  children: /*#__PURE__*/jsx(Trans, {
110
125
  count: knownAlerts.length,
111
- defaults: "Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.",
112
- i18nKey: "neetoIntegrations.disconnectionRibbon.message",
126
+ defaults: getDisconnectionRibbonDefaultMessage(knownAlerts),
113
127
  components: {
114
128
  integrations: /*#__PURE__*/jsx(IntegrationLinks, {
115
129
  integrationRouteMap: integrationRouteMap,
116
130
  alerts: knownAlerts
117
131
  })
118
- }
132
+ },
133
+ i18nKey: getDisconnectionRibbonI18nKey(knownAlerts, integrationRouteMap)
119
134
  })
120
135
  })
121
136
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults=\"Your <integrations /> integration has been disconnected due to a permission issue. Connect it now.\"\n i18nKey=\"neetoIntegrations.disconnectionRibbon.message\"\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["IntegrationLinks","_ref","alerts","integrationRouteMap","map","alert","index","_integrationRouteMap$","serviceName","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","count","length","defaults","i18nKey","components","integrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAEC,mBAAmB,GAAAF,IAAA,CAAnBE,mBAAmB;EAAA,OACrDD,MAAM,CAACE,GAAG,CAAC,UAACC,KAAK,EAAEC,KAAK,EAAK;AAC3B,IAAA,IAAAC,qBAAA,GAAw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GAAAA,sBAAA;AAGhD,EAAA,IAAME,WAAW,GAAGnC,MAAM,CAACoC,MAAM,CAC/B,UAAAjC,KAAK,EAAA;AAAA,IAAA,OAAIF,mBAAmB,CAACE,KAAK,CAACG,WAAW,CAAC;AAAA,EAAA,CACjD,CAAC;EAED,IAAImB,QAAQ,IAAIY,OAAO,CAACF,WAAW,CAAC,EAAE,OAAO,IAAI;EAEjD,oBACEtB,GAAA,CAACyB,GAAG,EAAA;AACFvB,IAAAA,SAAS,EAAC,wDAAwD;AAClE,IAAA,aAAA,EAAY,kCAAkC;AAC9CwB,IAAAA,IAAI,EAAC,OAAO;AACZC,IAAAA,KAAK,EAAC,SAAS;IACfC,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQf,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;AAAAd,IAAAA,QAAA,eAEjCC,GAAA,CAAA,MAAA,EAAA;AAAME,MAAAA,SAAS,EAAC,QAAQ;MAAAH,QAAA,eACtBC,GAAA,CAAC6B,KAAK,EAAA;QACJC,KAAK,EAAER,WAAW,CAACS,MAAO;AAC1BC,QAAAA,QAAQ,EAAC,oGAAoG;AAC7GC,QAAAA,OAAO,EAAC,+CAA+C;AACvDC,QAAAA,UAAU,EAAE;UACVC,YAAY,eACVnC,GAAA,CAACf,gBAAgB,EAAA;AACTG,YAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBD,YAAAA,MAAM,EAAEmC;WACT;AAEL;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link className=\"font-semibold underline\" to={linkPath}>\n {label}\n </Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n return (\n <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonDefaultMessage","t","count","getDisconnectionRibbonI18nKey","integrationRouteMap","hasOnlyUPIIntegration","eupi","IntegrationLinks","_ref","map","alert","index","_integrationRouteMap$","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","className","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","Tag","size","style","onClose","Trans","defaults","components","integrations","i18nKey"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM,EAAA;AAAA,EAAA,OACrCA,MAAM,CAACC,MAAM,KAAK,CAAC,IAAID,MAAM,CAAC,CAAC,CAAC,CAACE,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAMC,oCAAoC,GAAG,SAAvCA,oCAAoCA,CAAGH,MAAM,EAAA;EAAA,OACxDD,wBAAwB,CAACC,MAAM,CAAC,GAC5BI,CAAC,CAAC,8DAA8D,EAAE;IAChEC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC,GACFG,CAAC,CAAC,+CAA+C,EAAE;IACjDC,KAAK,EAAEL,MAAM,CAACC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAMK,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAIN,MAAM,EAAEO,mBAAmB,EAAK;EAC5E,IAAMC,q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AA,mBAAmB,EAAnBA,mBAAmB;AACzBP,YAAAA,MAAM,EAAE4C;WACT;SAEH;AACFW,QAAAA,OAAO,EAAEjD,6BAA6B,CACpCsC,WAAW,EACXrC,mBACF;OACD;KACG;AAAC,GACJ,CAAC;AAEV;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-integrations-frontend",
3
- "version": "4.0.35",
3
+ "version": "4.0.37",
4
4
  "description": "UI for integrations in neeto products",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-integrations-nano",