strapi-plugin-magic-sessionmanager 4.9.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +54 -4
  2. package/README.md +195 -41
  3. package/dist/admin/{Analytics-B6d-39Qh.js → Analytics-CdmRsigN.js} +1 -1
  4. package/dist/admin/{Analytics-DxOWXHn8.mjs → Analytics-PRqsLMEx.mjs} +1 -1
  5. package/dist/admin/{App-ZsSGj7n8.mjs → App-BSeYF7KA.mjs} +2 -2
  6. package/dist/admin/{App-mRFV50K6.js → App-DUMCbuCr.js} +2 -2
  7. package/dist/admin/{License-DXt2oi6u.js → License-BeD7Du6r.js} +1 -1
  8. package/dist/admin/{License-BE6UQ_V3.mjs → License-D5W_l35e.mjs} +1 -1
  9. package/dist/admin/{OnlineUsersWidget-_tJ6aeWl.mjs → OnlineUsersWidget-B5pXzqM9.mjs} +2 -1
  10. package/dist/admin/{OnlineUsersWidget-CFvM3Vbp.js → OnlineUsersWidget-CDZ19_PT.js} +2 -1
  11. package/dist/admin/{Settings-dtW7cjTX.mjs → Settings-B-GRuWjT.mjs} +13 -3
  12. package/dist/admin/{Settings-BUc12TP5.js → Settings-CrLzRXrA.js} +13 -3
  13. package/dist/admin/{de-j0oZH9Pz.mjs → de-DwUCBY1b.mjs} +1 -0
  14. package/dist/admin/{de-BFKoGEVT.js → de-Dzo1tVoJ.js} +1 -0
  15. package/dist/admin/{en-s7Ksdkcg.js → en-CL5llI55.js} +1 -0
  16. package/dist/admin/{en-UY4Tb5tE.mjs → en-Dd0wXfgR.mjs} +1 -0
  17. package/dist/admin/{es-07OGMe_5.js → es-CiNDwv_f.js} +1 -0
  18. package/dist/admin/{es-DGBcZwQy.mjs → es-Cl5IwDA4.mjs} +1 -0
  19. package/dist/admin/{fr-ETj_2UBY.js → fr-DBOQ-UDm.js} +1 -0
  20. package/dist/admin/{fr-B6-DWhGO.mjs → fr-DhADj8Zs.mjs} +1 -0
  21. package/dist/admin/{index-C_SyRULc.mjs → index-CHACmZsg.mjs} +42 -32
  22. package/dist/admin/{index-D4kEnXSp.js → index-CaLVyCio.js} +26 -16
  23. package/dist/admin/index.js +1 -1
  24. package/dist/admin/index.mjs +2 -2
  25. package/dist/admin/{pt-YMRLm9gx.mjs → pt-CT6VpDMM.mjs} +1 -0
  26. package/dist/admin/{pt-C7PwrQtV.js → pt-m73K1nJ0.js} +1 -0
  27. package/dist/server/index.js +1329 -268
  28. package/dist/server/index.mjs +1329 -268
  29. package/package.json +4 -1
@@ -6,7 +6,7 @@ const designSystem = require("@strapi/design-system");
6
6
  const StrapiAdmin = require("@strapi/strapi/admin");
7
7
  const icons = require("@strapi/icons");
8
8
  const styled = require("styled-components");
9
- const index = require("./index-D4kEnXSp.js");
9
+ const index = require("./index-CaLVyCio.js");
10
10
  const reactIntl = require("react-intl");
11
11
  const SectionCard = require("./SectionCard-BlWv8CRt.js");
12
12
  const maskSensitiveValue = require("./maskSensitiveValue-BWcSjow7.js");
@@ -3104,6 +3104,7 @@ function useSettingsForm() {
3104
3104
  const canSave = hasChanges && errorCount === 0 && !saving;
3105
3105
  const settingsRef = react.useRef(settings);
3106
3106
  const savedSettingsRef = react.useRef(savedSettings);
3107
+ const revisionRef = react.useRef(null);
3107
3108
  react.useLayoutEffect(() => {
3108
3109
  settingsRef.current = settings;
3109
3110
  savedSettingsRef.current = savedSettings;
@@ -3154,6 +3155,7 @@ function useSettingsForm() {
3154
3155
  throw new Error("Invalid settings response");
3155
3156
  }
3156
3157
  const nextSettings = normalizeSettings(response.data.settings);
3158
+ revisionRef.current = Number.isInteger(response.data.revision) ? response.data.revision : null;
3157
3159
  setSettings(nextSettings);
3158
3160
  setSavedSettings(nextSettings);
3159
3161
  await fetchGeoIpStatus();
@@ -3183,10 +3185,14 @@ function useSettingsForm() {
3183
3185
  if (Object.keys(validateSettings(submitted)).length > 0) return false;
3184
3186
  setSaving(true);
3185
3187
  try {
3186
- const response = await put(`/${index.pluginId}/settings`, submitted);
3188
+ const response = await put(
3189
+ `/${index.pluginId}/settings`,
3190
+ revisionRef.current === null ? submitted : { ...submitted, revision: revisionRef.current }
3191
+ );
3187
3192
  if (!response?.data?.success) {
3188
3193
  throw new Error("Save failed");
3189
3194
  }
3195
+ revisionRef.current = Number.isInteger(response.data.revision) ? response.data.revision : null;
3190
3196
  const storedPayload = response.data.settings ?? (await get(`/${index.pluginId}/settings`))?.data?.settings;
3191
3197
  const stored = normalizeSettings(storedPayload);
3192
3198
  setSettings(stored);
@@ -3209,9 +3215,13 @@ function useSettingsForm() {
3209
3215
  return true;
3210
3216
  } catch (err) {
3211
3217
  index.logSafeAdminError("settings.save", err);
3218
+ const isConflict = err?.response?.status === 409 || err?.response?.data?.error?.status === 409;
3212
3219
  toggleNotification({
3213
3220
  type: "danger",
3214
- message: t(
3221
+ message: isConflict ? t(
3222
+ "settings.config.feedback.conflict",
3223
+ "Another administrator saved the settings in the meantime. Reload the page to see their changes, then apply yours again."
3224
+ ) : t(
3215
3225
  "settings.config.feedback.saveError",
3216
3226
  "Settings could not be saved. Your changes are still in the form."
3217
3227
  )
@@ -339,6 +339,7 @@ const de = {
339
339
  "settings.config.requires.localDatabase": "Die folgenden Datenbankeinstellungen erfordern den Anbieter „Automatisch“ oder „Lokale Datenbank“.",
340
340
  "settings.config.requires.credentials": "Fügen Sie zuerst MaxMind-Zugangsdaten hinzu.",
341
341
  "settings.config.feedback.adjusted": "Einstellungen gespeichert. Einige Werte wurden an die zulässigen Grenzen angepasst: {fields}.",
342
+ "settings.config.feedback.conflict": "Eine andere Person hat die Einstellungen inzwischen gespeichert. Laden Sie die Seite neu, um deren Änderungen zu sehen, und übernehmen Sie Ihre Änderungen dann erneut.",
342
343
  "settings.config.feedback.saveError": "Die Einstellungen konnten nicht gespeichert werden. Ihre Änderungen sind noch im Formular.",
343
344
  "settings.config.feedback.deletedEnded": "{count, plural, one {# beendete Sitzung gelöscht.} other {# beendete Sitzungen gelöscht.}}",
344
345
  "settings.config.feedback.deletedNone": "Es gab keine beendeten Sitzungen zum Löschen.",
@@ -341,6 +341,7 @@ const de = {
341
341
  "settings.config.requires.localDatabase": "Die folgenden Datenbankeinstellungen erfordern den Anbieter „Automatisch“ oder „Lokale Datenbank“.",
342
342
  "settings.config.requires.credentials": "Fügen Sie zuerst MaxMind-Zugangsdaten hinzu.",
343
343
  "settings.config.feedback.adjusted": "Einstellungen gespeichert. Einige Werte wurden an die zulässigen Grenzen angepasst: {fields}.",
344
+ "settings.config.feedback.conflict": "Eine andere Person hat die Einstellungen inzwischen gespeichert. Laden Sie die Seite neu, um deren Änderungen zu sehen, und übernehmen Sie Ihre Änderungen dann erneut.",
344
345
  "settings.config.feedback.saveError": "Die Einstellungen konnten nicht gespeichert werden. Ihre Änderungen sind noch im Formular.",
345
346
  "settings.config.feedback.deletedEnded": "{count, plural, one {# beendete Sitzung gelöscht.} other {# beendete Sitzungen gelöscht.}}",
346
347
  "settings.config.feedback.deletedNone": "Es gab keine beendeten Sitzungen zum Löschen.",
@@ -341,6 +341,7 @@ const en = {
341
341
  "settings.config.requires.localDatabase": "The database settings below require the Automatic or Local database provider.",
342
342
  "settings.config.requires.credentials": "Add MaxMind credentials first.",
343
343
  "settings.config.feedback.adjusted": "Settings saved. Some values were adjusted to the allowed limits: {fields}.",
344
+ "settings.config.feedback.conflict": "Another administrator saved the settings in the meantime. Reload the page to see their changes, then apply yours again.",
344
345
  "settings.config.feedback.saveError": "Settings could not be saved. Your changes are still in the form.",
345
346
  "settings.config.feedback.deletedEnded": "{count, plural, one {# ended session deleted.} other {# ended sessions deleted.}}",
346
347
  "settings.config.feedback.deletedNone": "There were no ended sessions to delete.",
@@ -339,6 +339,7 @@ const en = {
339
339
  "settings.config.requires.localDatabase": "The database settings below require the Automatic or Local database provider.",
340
340
  "settings.config.requires.credentials": "Add MaxMind credentials first.",
341
341
  "settings.config.feedback.adjusted": "Settings saved. Some values were adjusted to the allowed limits: {fields}.",
342
+ "settings.config.feedback.conflict": "Another administrator saved the settings in the meantime. Reload the page to see their changes, then apply yours again.",
342
343
  "settings.config.feedback.saveError": "Settings could not be saved. Your changes are still in the form.",
343
344
  "settings.config.feedback.deletedEnded": "{count, plural, one {# ended session deleted.} other {# ended sessions deleted.}}",
344
345
  "settings.config.feedback.deletedNone": "There were no ended sessions to delete.",
@@ -341,6 +341,7 @@ const es = {
341
341
  "settings.config.requires.localDatabase": "Los ajustes de base de datos siguientes requieren el proveedor Automático o Base de datos local.",
342
342
  "settings.config.requires.credentials": "Añada primero las credenciales de MaxMind.",
343
343
  "settings.config.feedback.adjusted": "Configuración guardada. Algunos valores se ajustaron a los límites permitidos: {fields}.",
344
+ "settings.config.feedback.conflict": "Otro administrador guardó la configuración mientras tanto. Vuelva a cargar la página para ver sus cambios y aplique de nuevo los suyos.",
344
345
  "settings.config.feedback.saveError": "No se pudo guardar la configuración. Sus cambios siguen en el formulario.",
345
346
  "settings.config.feedback.deletedEnded": "{count, plural, one {# sesión finalizada eliminada.} other {# sesiones finalizadas eliminadas.}}",
346
347
  "settings.config.feedback.deletedNone": "No había sesiones finalizadas que eliminar.",
@@ -339,6 +339,7 @@ const es = {
339
339
  "settings.config.requires.localDatabase": "Los ajustes de base de datos siguientes requieren el proveedor Automático o Base de datos local.",
340
340
  "settings.config.requires.credentials": "Añada primero las credenciales de MaxMind.",
341
341
  "settings.config.feedback.adjusted": "Configuración guardada. Algunos valores se ajustaron a los límites permitidos: {fields}.",
342
+ "settings.config.feedback.conflict": "Otro administrador guardó la configuración mientras tanto. Vuelva a cargar la página para ver sus cambios y aplique de nuevo los suyos.",
342
343
  "settings.config.feedback.saveError": "No se pudo guardar la configuración. Sus cambios siguen en el formulario.",
343
344
  "settings.config.feedback.deletedEnded": "{count, plural, one {# sesión finalizada eliminada.} other {# sesiones finalizadas eliminadas.}}",
344
345
  "settings.config.feedback.deletedNone": "No había sesiones finalizadas que eliminar.",
@@ -341,6 +341,7 @@ const fr = {
341
341
  "settings.config.requires.localDatabase": "Les paramètres de base de données ci-dessous nécessitent le fournisseur Automatique ou Base de données locale.",
342
342
  "settings.config.requires.credentials": "Ajoutez d’abord des identifiants MaxMind.",
343
343
  "settings.config.feedback.adjusted": "Paramètres enregistrés. Certaines valeurs ont été ajustées aux limites autorisées : {fields}.",
344
+ "settings.config.feedback.conflict": "Un autre administrateur a enregistré les paramètres entre-temps. Rechargez la page pour voir ses modifications, puis appliquez à nouveau les vôtres.",
344
345
  "settings.config.feedback.saveError": "Les paramètres n’ont pas pu être enregistrés. Vos modifications sont toujours dans le formulaire.",
345
346
  "settings.config.feedback.deletedEnded": "{count, plural, one {# session terminée supprimée.} other {# sessions terminées supprimées.}}",
346
347
  "settings.config.feedback.deletedNone": "Il n’y avait aucune session terminée à supprimer.",
@@ -339,6 +339,7 @@ const fr = {
339
339
  "settings.config.requires.localDatabase": "Les paramètres de base de données ci-dessous nécessitent le fournisseur Automatique ou Base de données locale.",
340
340
  "settings.config.requires.credentials": "Ajoutez d’abord des identifiants MaxMind.",
341
341
  "settings.config.feedback.adjusted": "Paramètres enregistrés. Certaines valeurs ont été ajustées aux limites autorisées : {fields}.",
342
+ "settings.config.feedback.conflict": "Un autre administrateur a enregistré les paramètres entre-temps. Rechargez la page pour voir ses modifications, puis appliquez à nouveau les vôtres.",
342
343
  "settings.config.feedback.saveError": "Les paramètres n’ont pas pu être enregistrés. Vos modifications sont toujours dans le formulaire.",
343
344
  "settings.config.feedback.deletedEnded": "{count, plural, one {# session terminée supprimée.} other {# sessions terminées supprimées.}}",
344
345
  "settings.config.feedback.deletedNone": "Il n’y avait aucune session terminée à supprimer.",
@@ -1173,16 +1173,25 @@ const pluginPermissions = {
1173
1173
  access: [{ action: `plugin::${pluginId}.access`, subject: null }]
1174
1174
  };
1175
1175
  const SAFE_SCOPE = /^[A-Za-z0-9_.:-]{1,48}$/;
1176
- function logSafeAdminError(scope, error) {
1177
- const safeScope = typeof scope === "string" && SAFE_SCOPE.test(scope) ? scope : "admin";
1178
- let status;
1176
+ const CANCEL_NAMES = /* @__PURE__ */ new Set(["AbortError", "TimeoutError", "CanceledError"]);
1177
+ function safeGet(value, key) {
1179
1178
  try {
1180
- status = error && typeof error === "object" ? error.response?.status : void 0;
1179
+ return value && typeof value === "object" ? value[key] : void 0;
1181
1180
  } catch {
1182
- status = void 0;
1181
+ return void 0;
1183
1182
  }
1183
+ }
1184
+ function isCancelledRequest(error) {
1185
+ const name2 = safeGet(error, "name");
1186
+ return typeof name2 === "string" && CANCEL_NAMES.has(name2);
1187
+ }
1188
+ function logSafeAdminError(scope, error) {
1189
+ if (isCancelledRequest(error)) return;
1190
+ const safeScope = typeof scope === "string" && SAFE_SCOPE.test(scope) ? scope : "admin";
1191
+ const directStatus = safeGet(error, "status");
1192
+ const status = Number.isInteger(directStatus) ? directStatus : safeGet(safeGet(error, "response"), "status");
1184
1193
  const statusSuffix = Number.isInteger(status) && status >= 400 && status <= 599 ? ` (HTTP ${status})` : "";
1185
- console.error(`[${safeScope}] Request failed${statusSuffix}`);
1194
+ console.warn(`[${safeScope}] Request failed${statusSuffix}`);
1186
1195
  }
1187
1196
  const FORM_CONSUMER = "MagicSessionManagerPanel";
1188
1197
  const PanelSessionCard = ({ session, t }) => {
@@ -1597,7 +1606,7 @@ const index = {
1597
1606
  id: `${pluginId}.plugin.name`,
1598
1607
  defaultMessage: pluginPkg.strapi.displayName
1599
1608
  },
1600
- Component: () => import("./App-ZsSGj7n8.mjs"),
1609
+ Component: () => import("./App-BSeYF7KA.mjs"),
1601
1610
  permissions: pluginPermissions$1
1602
1611
  });
1603
1612
  app.addSettingsLink(
@@ -1613,7 +1622,7 @@ const index = {
1613
1622
  },
1614
1623
  id: "general",
1615
1624
  to: `${pluginId}/general`,
1616
- Component: () => import("./Settings-dtW7cjTX.mjs"),
1625
+ Component: () => import("./Settings-B-GRuWjT.mjs"),
1617
1626
  permissions: pluginPermissions$1
1618
1627
  },
1619
1628
  {
@@ -1623,7 +1632,7 @@ const index = {
1623
1632
  },
1624
1633
  id: "analytics",
1625
1634
  to: `${pluginId}/analytics`,
1626
- Component: () => import("./Analytics-DxOWXHn8.mjs"),
1635
+ Component: () => import("./Analytics-PRqsLMEx.mjs"),
1627
1636
  permissions: pluginPermissions$1
1628
1637
  },
1629
1638
  {
@@ -1633,7 +1642,7 @@ const index = {
1633
1642
  },
1634
1643
  id: "license",
1635
1644
  to: `${pluginId}/license`,
1636
- Component: () => import("./License-BE6UQ_V3.mjs"),
1645
+ Component: () => import("./License-D5W_l35e.mjs"),
1637
1646
  permissions: pluginPermissions$1
1638
1647
  }
1639
1648
  ]
@@ -1659,7 +1668,7 @@ const index = {
1659
1668
  href: `/plugins/${pluginId}`
1660
1669
  },
1661
1670
  component: async () => {
1662
- const component = await import("./OnlineUsersWidget-_tJ6aeWl.mjs");
1671
+ const component = await import("./OnlineUsersWidget-B5pXzqM9.mjs");
1663
1672
  return component.default;
1664
1673
  },
1665
1674
  id: "online-users-widget",
@@ -1680,11 +1689,11 @@ const index = {
1680
1689
  },
1681
1690
  async registerTrads({ locales }) {
1682
1691
  const importedTrads = {
1683
- en: () => import("./en-UY4Tb5tE.mjs"),
1684
- de: () => import("./de-j0oZH9Pz.mjs"),
1685
- es: () => import("./es-DGBcZwQy.mjs"),
1686
- fr: () => import("./fr-B6-DWhGO.mjs"),
1687
- pt: () => import("./pt-YMRLm9gx.mjs")
1692
+ en: () => import("./en-Dd0wXfgR.mjs"),
1693
+ de: () => import("./de-DwUCBY1b.mjs"),
1694
+ es: () => import("./es-Cl5IwDA4.mjs"),
1695
+ fr: () => import("./fr-DhADj8Zs.mjs"),
1696
+ pt: () => import("./pt-CT6VpDMM.mjs")
1688
1697
  };
1689
1698
  const translatedLanguages = Object.keys(importedTrads).filter((lang) => locales.includes(lang));
1690
1699
  const translations = await Promise.all(
@@ -1702,22 +1711,23 @@ const index = {
1702
1711
  }
1703
1712
  };
1704
1713
  export {
1705
- StatCard as A,
1706
- restoreDialogFocus as B,
1714
+ StatGrid as A,
1715
+ StatCard as B,
1707
1716
  ConfirmAction as C,
1708
1717
  DEFAULT_SESSION_FILTER as D,
1709
1718
  END_REASON_FILTER_OPTIONS as E,
1710
- pluginPermissions as F,
1711
- ReadableParagraphs as G,
1712
- EqualGrid as H,
1713
- formatSessionDate as I,
1714
- refocusIfLost as J,
1715
- requireSuccessfulMutation as K,
1716
- normalizeDeviceType as L,
1719
+ restoreDialogFocus as F,
1720
+ pluginPermissions as G,
1721
+ ReadableParagraphs as H,
1722
+ EqualGrid as I,
1723
+ formatSessionDate as J,
1724
+ refocusIfLost as K,
1725
+ requireSuccessfulMutation as L,
1717
1726
  MissingValue as M,
1718
- getDeviceTypeMessage as N,
1719
- index as O,
1727
+ normalizeDeviceType as N,
1728
+ getDeviceTypeMessage as O,
1720
1729
  PropertyList as P,
1730
+ index as Q,
1721
1731
  ReadableText as R,
1722
1732
  StatusBadge as S,
1723
1733
  ValueOrMissing as V,
@@ -1742,9 +1752,9 @@ export {
1742
1752
  requireSessionList as s,
1743
1753
  toValidDate as t,
1744
1754
  useSessionFormatters as u,
1745
- filterSessionsBySearch as v,
1746
- filterSessionsByStatus as w,
1747
- SESSION_FILTER_OPTIONS as x,
1748
- PageShell as y,
1749
- StatGrid as z
1755
+ isCancelledRequest as v,
1756
+ filterSessionsBySearch as w,
1757
+ filterSessionsByStatus as x,
1758
+ SESSION_FILTER_OPTIONS as y,
1759
+ PageShell as z
1750
1760
  };
@@ -1176,16 +1176,25 @@ const pluginPermissions = {
1176
1176
  access: [{ action: `plugin::${pluginId}.access`, subject: null }]
1177
1177
  };
1178
1178
  const SAFE_SCOPE = /^[A-Za-z0-9_.:-]{1,48}$/;
1179
- function logSafeAdminError(scope, error) {
1180
- const safeScope = typeof scope === "string" && SAFE_SCOPE.test(scope) ? scope : "admin";
1181
- let status;
1179
+ const CANCEL_NAMES = /* @__PURE__ */ new Set(["AbortError", "TimeoutError", "CanceledError"]);
1180
+ function safeGet(value, key) {
1182
1181
  try {
1183
- status = error && typeof error === "object" ? error.response?.status : void 0;
1182
+ return value && typeof value === "object" ? value[key] : void 0;
1184
1183
  } catch {
1185
- status = void 0;
1184
+ return void 0;
1186
1185
  }
1186
+ }
1187
+ function isCancelledRequest(error) {
1188
+ const name2 = safeGet(error, "name");
1189
+ return typeof name2 === "string" && CANCEL_NAMES.has(name2);
1190
+ }
1191
+ function logSafeAdminError(scope, error) {
1192
+ if (isCancelledRequest(error)) return;
1193
+ const safeScope = typeof scope === "string" && SAFE_SCOPE.test(scope) ? scope : "admin";
1194
+ const directStatus = safeGet(error, "status");
1195
+ const status = Number.isInteger(directStatus) ? directStatus : safeGet(safeGet(error, "response"), "status");
1187
1196
  const statusSuffix = Number.isInteger(status) && status >= 400 && status <= 599 ? ` (HTTP ${status})` : "";
1188
- console.error(`[${safeScope}] Request failed${statusSuffix}`);
1197
+ console.warn(`[${safeScope}] Request failed${statusSuffix}`);
1189
1198
  }
1190
1199
  const FORM_CONSUMER = "MagicSessionManagerPanel";
1191
1200
  const PanelSessionCard = ({ session, t }) => {
@@ -1600,7 +1609,7 @@ const index = {
1600
1609
  id: `${pluginId}.plugin.name`,
1601
1610
  defaultMessage: pluginPkg.strapi.displayName
1602
1611
  },
1603
- Component: () => Promise.resolve().then(() => require("./App-mRFV50K6.js")),
1612
+ Component: () => Promise.resolve().then(() => require("./App-DUMCbuCr.js")),
1604
1613
  permissions: pluginPermissions$1
1605
1614
  });
1606
1615
  app.addSettingsLink(
@@ -1616,7 +1625,7 @@ const index = {
1616
1625
  },
1617
1626
  id: "general",
1618
1627
  to: `${pluginId}/general`,
1619
- Component: () => Promise.resolve().then(() => require("./Settings-BUc12TP5.js")),
1628
+ Component: () => Promise.resolve().then(() => require("./Settings-CrLzRXrA.js")),
1620
1629
  permissions: pluginPermissions$1
1621
1630
  },
1622
1631
  {
@@ -1626,7 +1635,7 @@ const index = {
1626
1635
  },
1627
1636
  id: "analytics",
1628
1637
  to: `${pluginId}/analytics`,
1629
- Component: () => Promise.resolve().then(() => require("./Analytics-B6d-39Qh.js")),
1638
+ Component: () => Promise.resolve().then(() => require("./Analytics-CdmRsigN.js")),
1630
1639
  permissions: pluginPermissions$1
1631
1640
  },
1632
1641
  {
@@ -1636,7 +1645,7 @@ const index = {
1636
1645
  },
1637
1646
  id: "license",
1638
1647
  to: `${pluginId}/license`,
1639
- Component: () => Promise.resolve().then(() => require("./License-DXt2oi6u.js")),
1648
+ Component: () => Promise.resolve().then(() => require("./License-BeD7Du6r.js")),
1640
1649
  permissions: pluginPermissions$1
1641
1650
  }
1642
1651
  ]
@@ -1662,7 +1671,7 @@ const index = {
1662
1671
  href: `/plugins/${pluginId}`
1663
1672
  },
1664
1673
  component: async () => {
1665
- const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-CFvM3Vbp.js"));
1674
+ const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-CDZ19_PT.js"));
1666
1675
  return component.default;
1667
1676
  },
1668
1677
  id: "online-users-widget",
@@ -1683,11 +1692,11 @@ const index = {
1683
1692
  },
1684
1693
  async registerTrads({ locales }) {
1685
1694
  const importedTrads = {
1686
- en: () => Promise.resolve().then(() => require("./en-s7Ksdkcg.js")),
1687
- de: () => Promise.resolve().then(() => require("./de-BFKoGEVT.js")),
1688
- es: () => Promise.resolve().then(() => require("./es-07OGMe_5.js")),
1689
- fr: () => Promise.resolve().then(() => require("./fr-ETj_2UBY.js")),
1690
- pt: () => Promise.resolve().then(() => require("./pt-C7PwrQtV.js"))
1695
+ en: () => Promise.resolve().then(() => require("./en-CL5llI55.js")),
1696
+ de: () => Promise.resolve().then(() => require("./de-Dzo1tVoJ.js")),
1697
+ es: () => Promise.resolve().then(() => require("./es-CiNDwv_f.js")),
1698
+ fr: () => Promise.resolve().then(() => require("./fr-DBOQ-UDm.js")),
1699
+ pt: () => Promise.resolve().then(() => require("./pt-m73K1nJ0.js"))
1691
1700
  };
1692
1701
  const translatedLanguages = Object.keys(importedTrads).filter((lang) => locales.includes(lang));
1693
1702
  const translations = await Promise.all(
@@ -1735,6 +1744,7 @@ exports.getSessionState = getSessionState;
1735
1744
  exports.getSessionStatus = getSessionStatus;
1736
1745
  exports.getTranslation = getTranslation;
1737
1746
  exports.index = index;
1747
+ exports.isCancelledRequest = isCancelledRequest;
1738
1748
  exports.isEndReasonFilter = isEndReasonFilter;
1739
1749
  exports.isNativeOnlySession = isNativeOnlySession;
1740
1750
  exports.isSessionFilter = isSessionFilter;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-D4kEnXSp.js");
3
+ const index = require("./index-CaLVyCio.js");
4
4
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { O } from "./index-C_SyRULc.mjs";
1
+ import { Q } from "./index-CHACmZsg.mjs";
2
2
  export {
3
- O as default
3
+ Q as default
4
4
  };
@@ -339,6 +339,7 @@ const pt = {
339
339
  "settings.config.requires.localDatabase": "As definições de base de dados abaixo requerem o fornecedor Automático ou Base de dados local.",
340
340
  "settings.config.requires.credentials": "Adicione primeiro as credenciais do MaxMind.",
341
341
  "settings.config.feedback.adjusted": "Definições guardadas. Alguns valores foram ajustados aos limites permitidos: {fields}.",
342
+ "settings.config.feedback.conflict": "Outro administrador guardou as definições entretanto. Recarregue a página para ver as alterações dele e volte a aplicar as suas.",
342
343
  "settings.config.feedback.saveError": "Não foi possível guardar as definições. As suas alterações continuam no formulário.",
343
344
  "settings.config.feedback.deletedEnded": "{count, plural, one {# sessão terminada eliminada.} other {# sessões terminadas eliminadas.}}",
344
345
  "settings.config.feedback.deletedNone": "Não havia sessões terminadas para eliminar.",
@@ -341,6 +341,7 @@ const pt = {
341
341
  "settings.config.requires.localDatabase": "As definições de base de dados abaixo requerem o fornecedor Automático ou Base de dados local.",
342
342
  "settings.config.requires.credentials": "Adicione primeiro as credenciais do MaxMind.",
343
343
  "settings.config.feedback.adjusted": "Definições guardadas. Alguns valores foram ajustados aos limites permitidos: {fields}.",
344
+ "settings.config.feedback.conflict": "Outro administrador guardou as definições entretanto. Recarregue a página para ver as alterações dele e volte a aplicar as suas.",
344
345
  "settings.config.feedback.saveError": "Não foi possível guardar as definições. As suas alterações continuam no formulário.",
345
346
  "settings.config.feedback.deletedEnded": "{count, plural, one {# sessão terminada eliminada.} other {# sessões terminadas eliminadas.}}",
346
347
  "settings.config.feedback.deletedNone": "Não havia sessões terminadas para eliminar.",