strapi-plugin-magic-sessionmanager 4.22.1 → 4.23.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 (35) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +116 -82
  3. package/dist/admin/ActiveImpersonationsCard-CbyOAlrL.mjs +396 -0
  4. package/dist/admin/ActiveImpersonationsCard-D1CVmV-w.js +395 -0
  5. package/dist/admin/{Analytics-CIHgaURb.mjs → Analytics-DGAHD19E.mjs} +1 -1
  6. package/dist/admin/{Analytics-B7BAjApz.js → Analytics-_WA68oHb.js} +1 -1
  7. package/dist/admin/{App-DJkJC06E.js → App-CfhAQ17e.js} +304 -104
  8. package/dist/admin/{App-CPE-CQGz.mjs → App-VB66H73A.mjs} +276 -76
  9. package/dist/admin/ImpersonationTabBanner-B6Ps5-oe.mjs +244 -0
  10. package/dist/admin/ImpersonationTabBanner-DdwXNmh4.js +244 -0
  11. package/dist/admin/{OnlineUsersWidget-Dou2hxGY.mjs → OnlineUsersWidget-2u-fYMb7.mjs} +1 -1
  12. package/dist/admin/{OnlineUsersWidget-CcjNfzzf.js → OnlineUsersWidget-CmBqFLAA.js} +1 -1
  13. package/dist/admin/{Settings--eEiHv_a.js → Settings-BBs2FDp7.js} +27 -229
  14. package/dist/admin/{Settings-h_exWUiI.mjs → Settings-CKDNGJhl.mjs} +19 -221
  15. package/dist/admin/{de-Wz5Emtrb.mjs → de-CK-HuY41.mjs} +42 -4
  16. package/dist/admin/{de-oBmcAcXj.js → de-CSRQPn6F.js} +42 -4
  17. package/dist/admin/{en-B1TN5F62.js → en-DCtAgGEa.js} +42 -4
  18. package/dist/admin/{en-B_1Ka64U.mjs → en-KZ5ajaAR.mjs} +42 -4
  19. package/dist/admin/{es-CVgw4zsj.mjs → es-B7k8taWV.mjs} +42 -4
  20. package/dist/admin/{es-Bb515J0p.js → es-CKT00l4K.js} +42 -4
  21. package/dist/admin/{fr-yDdwunmg.js → fr-B2EdBFSb.js} +42 -4
  22. package/dist/admin/{fr-0AgMxTFc.mjs → fr-Q2gmYqCn.mjs} +42 -4
  23. package/dist/admin/{index-DVQ7tdTC.mjs → index-BPbs1GyP.mjs} +365 -57
  24. package/dist/admin/{index-qtN2dOm4.js → index-Cho0XGZ1.js} +319 -11
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +2 -2
  27. package/dist/admin/{pt-BAB07LY-.js → pt-CcMUcqDy.js} +42 -4
  28. package/dist/admin/{pt-DtM74ffN.mjs → pt-CmxZTaf2.mjs} +42 -4
  29. package/dist/admin/useBreakpoint-CoBfu0Ov.js +62 -0
  30. package/dist/admin/useBreakpoint-CuyIc2qy.mjs +63 -0
  31. package/dist/server/index.js +867 -10
  32. package/dist/server/index.mjs +867 -10
  33. package/package.json +6 -2
  34. package/dist/admin/dashboardModel-DNT_l-Bk.js +0 -169
  35. package/dist/admin/dashboardModel-fApbKGay.mjs +0 -170
@@ -1080,7 +1080,13 @@ const pluginPermissions = {
1080
1080
  * admin. The server also requires `access`, the switch and the
1081
1081
  * anti-escalation rules.
1082
1082
  */
1083
- impersonateAdmins: [{ action: `plugin::${pluginId$1}.impersonate.admins`, subject: null }]
1083
+ impersonateAdmins: [{ action: `plugin::${pluginId$1}.impersonate.admins`, subject: null }],
1084
+ /**
1085
+ * "Sign in as this admin" (4.23): a real admin session of another admin in
1086
+ * a separate tab. The server also requires `access`, the switch, a tested
1087
+ * Strapi release and the anti-escalation rules.
1088
+ */
1089
+ signInAsAdmin: [{ action: `plugin::${pluginId$1}.impersonate.admins.sign-in`, subject: null }]
1084
1090
  };
1085
1091
  const SAFE_SCOPE = /^[A-Za-z0-9_.:-]{1,48}$/;
1086
1092
  const CANCEL_NAMES = /* @__PURE__ */ new Set(["AbortError", "TimeoutError", "CanceledError"]);
@@ -2018,7 +2024,13 @@ function getRevealScrollDelta(listRect, tabRect) {
2018
2024
  if (tabRect.right > listRect.right + 0.5) return Math.round(tabRect.right - listRect.right);
2019
2025
  return 0;
2020
2026
  }
2021
- const SIGN_IN_FILTER_OPTIONS = Object.freeze(["all", "succeeded", "failed", "signed-out"]);
2027
+ const SIGN_IN_FILTER_OPTIONS = Object.freeze([
2028
+ "all",
2029
+ "succeeded",
2030
+ "failed",
2031
+ "signed-out",
2032
+ "impersonation"
2033
+ ]);
2022
2034
  const ALL_ADMINS_FILTER_OPTIONS = Object.freeze([...SIGN_IN_FILTER_OPTIONS, "changes"]);
2023
2035
  const ACTIVITY_ACTION_OPTIONS = Object.freeze([
2024
2036
  "all",
@@ -2287,6 +2299,14 @@ function getEventPresentation(row) {
2287
2299
  "adminPanel.activity.event.impersonationExpired",
2288
2300
  "Impersonation timed out"
2289
2301
  );
2302
+ case "impersonation.write":
2303
+ return appUserEvent(
2304
+ "impersonation-write",
2305
+ "warning",
2306
+ "impersonation",
2307
+ "adminPanel.activity.event.impersonationWrite",
2308
+ "Change made while signed in as this admin"
2309
+ );
2290
2310
  case "impersonation.refused":
2291
2311
  return appUserEvent(
2292
2312
  "impersonation-refused",
@@ -4524,6 +4544,290 @@ const SessionInfoPanel = ({ documentId, model, document: document2 }) => {
4524
4544
  )
4525
4545
  };
4526
4546
  };
4547
+ const TAB_STATE_KEY = "magic-sessionmanager.admin-impersonation";
4548
+ const LANDING_PATH = "/plugins/magic-sessionmanager/impersonate/land";
4549
+ const CODE_PATTERN = /^[A-Za-z0-9_-]{43}$/;
4550
+ const COOKIE_NAME_PATTERN = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]{1,64}$/;
4551
+ const TOKEN_KEY = "jwtToken";
4552
+ const STATUS_KEY = "isLoggedIn";
4553
+ function readTabState(win) {
4554
+ try {
4555
+ const raw = win.sessionStorage.getItem(TAB_STATE_KEY);
4556
+ const value = raw ? JSON.parse(raw) : null;
4557
+ return value && typeof value === "object" && typeof value.phase === "string" ? value : null;
4558
+ } catch {
4559
+ return null;
4560
+ }
4561
+ }
4562
+ function writeTabState(win, state) {
4563
+ try {
4564
+ if (state) win.sessionStorage.setItem(TAB_STATE_KEY, JSON.stringify(state));
4565
+ else win.sessionStorage.removeItem(TAB_STATE_KEY);
4566
+ } catch {
4567
+ }
4568
+ }
4569
+ function landingBase(pathname) {
4570
+ const path = String(pathname || "").replace(/\/+$/, "");
4571
+ if (!path.endsWith(LANDING_PATH)) return null;
4572
+ return path.slice(0, path.length - LANDING_PATH.length);
4573
+ }
4574
+ function parseLandingHash(hash) {
4575
+ const params = new URLSearchParams(String(hash || "").replace(/^#/, ""));
4576
+ const code = params.get("code") || "";
4577
+ const cookieName = params.get("c") || "jwtToken";
4578
+ if (!CODE_PATTERN.test(code) || !COOKIE_NAME_PATTERN.test(cookieName)) return null;
4579
+ return { code, cookieName };
4580
+ }
4581
+ function landingUrl(adminBase2, handoff) {
4582
+ const params = new URLSearchParams({ code: handoff.code, c: handoff.cookieName || "jwtToken" });
4583
+ return `${String(adminBase2 || "").replace(/\/+$/, "")}${LANDING_PATH}#${params.toString()}`;
4584
+ }
4585
+ function cookieValue(cookies, name2) {
4586
+ let result = null;
4587
+ for (const part of String(cookies || "").split(";")) {
4588
+ const index2 = part.indexOf("=");
4589
+ if (index2 < 0) continue;
4590
+ if (part.slice(0, index2).trim() === name2) {
4591
+ try {
4592
+ result = decodeURIComponent(part.slice(index2 + 1).trim());
4593
+ } catch {
4594
+ result = null;
4595
+ }
4596
+ }
4597
+ }
4598
+ return result;
4599
+ }
4600
+ function withoutCookie(cookies, name2) {
4601
+ return String(cookies || "").split(";").filter((part) => part.split("=")[0].trim() !== name2 && part.trim() !== "").map((part) => part.trim()).join("; ");
4602
+ }
4603
+ function readRealToken(win, cookieName) {
4604
+ try {
4605
+ const stored = win.localStorage.getItem(TOKEN_KEY);
4606
+ if (stored) return JSON.parse(stored);
4607
+ } catch {
4608
+ }
4609
+ try {
4610
+ return cookieValue(win.document.cookie, cookieName);
4611
+ } catch {
4612
+ return null;
4613
+ }
4614
+ }
4615
+ function pathOf(win, input) {
4616
+ try {
4617
+ const url = typeof input === "string" ? input : input instanceof URL ? input.href : input?.url || "";
4618
+ return new URL(url, win.location.href).pathname.replace(/\/+$/, "");
4619
+ } catch {
4620
+ return null;
4621
+ }
4622
+ }
4623
+ function jsonResponse(win, status, body) {
4624
+ return new win.Response(JSON.stringify(body), {
4625
+ status,
4626
+ headers: { "Content-Type": "application/json" }
4627
+ });
4628
+ }
4629
+ function installTabShim(win, hooks = {}) {
4630
+ if (win.__msmImpersonationShim) return false;
4631
+ win.__msmImpersonationShim = true;
4632
+ const localStore = win.localStorage;
4633
+ const proto = win.Storage.prototype;
4634
+ const original = {
4635
+ getItem: proto.getItem,
4636
+ setItem: proto.setItem,
4637
+ removeItem: proto.removeItem
4638
+ };
4639
+ const shadowed = (store, key) => store === localStore && (key === TOKEN_KEY || key === STATUS_KEY) && readTabState(win) !== null;
4640
+ proto.getItem = function getItem(key) {
4641
+ if (shadowed(this, key)) {
4642
+ const state = readTabState(win);
4643
+ const active = state?.phase === "active" && typeof state.token === "string";
4644
+ if (key === TOKEN_KEY) return active ? JSON.stringify(state.token) : null;
4645
+ return active ? "true" : null;
4646
+ }
4647
+ return original.getItem.call(this, key);
4648
+ };
4649
+ proto.setItem = function setItem(key, value) {
4650
+ if (shadowed(this, key)) return void 0;
4651
+ return original.setItem.call(this, key, value);
4652
+ };
4653
+ proto.removeItem = function removeItem(key) {
4654
+ if (shadowed(this, key)) return void 0;
4655
+ return original.removeItem.call(this, key);
4656
+ };
4657
+ const cookieName = () => readTabState(win)?.cookieName || "jwtToken";
4658
+ const descriptor = Object.getOwnPropertyDescriptor(win.Document.prototype, "cookie");
4659
+ if (descriptor?.get && descriptor?.set) {
4660
+ Object.defineProperty(win.document, "cookie", {
4661
+ configurable: true,
4662
+ get() {
4663
+ const raw = descriptor.get.call(win.document);
4664
+ return readTabState(win) ? withoutCookie(raw, cookieName()) : raw;
4665
+ },
4666
+ set(value) {
4667
+ if (readTabState(win) && String(value).trim().startsWith(`${cookieName()}=`)) return;
4668
+ descriptor.set.call(win.document, value);
4669
+ }
4670
+ });
4671
+ }
4672
+ const originalFetch = win.fetch.bind(win);
4673
+ win.fetch = async (input, init) => {
4674
+ if (!readTabState(win)) return originalFetch(input, init);
4675
+ const path = pathOf(win, input) || "";
4676
+ if (/\/admin\/access-token$/.test(path)) {
4677
+ return jsonResponse(win, 401, {
4678
+ data: null,
4679
+ error: {
4680
+ status: 401,
4681
+ name: "UnauthorizedError",
4682
+ message: "An impersonation is not renewed",
4683
+ details: {}
4684
+ }
4685
+ });
4686
+ }
4687
+ if (/\/admin\/(login|register|register-admin|forgot-password|reset-password)$/.test(path)) {
4688
+ return jsonResponse(win, 403, {
4689
+ data: null,
4690
+ error: {
4691
+ status: 403,
4692
+ name: "ForbiddenError",
4693
+ message: "Not available in an impersonation tab",
4694
+ details: {}
4695
+ }
4696
+ });
4697
+ }
4698
+ if (/\/admin\/logout$/.test(path)) {
4699
+ hooks.onLogout?.();
4700
+ return jsonResponse(win, 200, { data: {} });
4701
+ }
4702
+ return originalFetch(input, init);
4703
+ };
4704
+ return true;
4705
+ }
4706
+ let landingCredential = null;
4707
+ let adminBase = null;
4708
+ let started = false;
4709
+ const backendURL = () => String(window.strapi?.backendURL || window.location.origin);
4710
+ const adminPath = () => {
4711
+ if (adminBase !== null) return adminBase;
4712
+ const stored = readTabState(window)?.adminBase;
4713
+ return typeof stored === "string" && /^(\/[A-Za-z0-9._~-]+)*$/.test(stored) ? stored : "/admin";
4714
+ };
4715
+ function markEnded(reason) {
4716
+ const state = readTabState(window);
4717
+ if (!state) return;
4718
+ writeTabState(window, {
4719
+ phase: state.phase === "landing" ? "failed" : "ended",
4720
+ cookieName: state.cookieName,
4721
+ adminBase: state.adminBase,
4722
+ impersonation: state.impersonation,
4723
+ reason
4724
+ });
4725
+ window.dispatchEvent(new Event("msm-impersonation-change"));
4726
+ }
4727
+ async function endImpersonation(reason = "ended") {
4728
+ const state = readTabState(window);
4729
+ if (state?.phase === "active" && state.token) {
4730
+ try {
4731
+ await window.fetch(`${backendURL()}/magic-sessionmanager/admin-impersonation/self/end`, {
4732
+ method: "POST",
4733
+ headers: { Authorization: `Bearer ${state.token}`, Accept: "application/json" }
4734
+ });
4735
+ } catch {
4736
+ }
4737
+ }
4738
+ markEnded(reason);
4739
+ }
4740
+ function leaveImpersonationTab() {
4741
+ writeTabState(window, null);
4742
+ window.location.replace(`${adminPath()}/`);
4743
+ }
4744
+ function bootImpersonationTab() {
4745
+ if (typeof window === "undefined" || !window.sessionStorage) return;
4746
+ const base = landingBase(window.location.pathname);
4747
+ if (base !== null) {
4748
+ adminBase = base;
4749
+ const handoff = parseLandingHash(window.location.hash);
4750
+ window.history.replaceState(null, "", window.location.pathname);
4751
+ if (handoff && readTabState(window)?.phase !== "active") {
4752
+ landingCredential = readRealToken(window, handoff.cookieName);
4753
+ writeTabState(window, {
4754
+ phase: "landing",
4755
+ code: handoff.code,
4756
+ cookieName: handoff.cookieName,
4757
+ adminBase: base
4758
+ });
4759
+ }
4760
+ }
4761
+ const state = readTabState(window);
4762
+ if (!state) return;
4763
+ installTabShim(window, {
4764
+ onLogout: () => {
4765
+ endImpersonation("ended");
4766
+ }
4767
+ });
4768
+ }
4769
+ async function completeLanding() {
4770
+ const state = readTabState(window);
4771
+ if (state?.phase !== "landing") return;
4772
+ const credential = landingCredential;
4773
+ landingCredential = null;
4774
+ let data = null;
4775
+ if (credential && state.code) {
4776
+ try {
4777
+ const response = await window.fetch(
4778
+ `${backendURL()}/magic-sessionmanager/admin-impersonation/exchange`,
4779
+ {
4780
+ method: "POST",
4781
+ headers: {
4782
+ Authorization: `Bearer ${credential}`,
4783
+ "Content-Type": "application/json",
4784
+ Accept: "application/json"
4785
+ },
4786
+ body: JSON.stringify({ code: state.code })
4787
+ }
4788
+ );
4789
+ if (response.ok) data = (await response.json())?.data || null;
4790
+ } catch {
4791
+ data = null;
4792
+ }
4793
+ }
4794
+ if (!data?.token) {
4795
+ writeTabState(window, {
4796
+ phase: "failed",
4797
+ cookieName: state.cookieName,
4798
+ adminBase: state.adminBase,
4799
+ reason: "exchange"
4800
+ });
4801
+ window.dispatchEvent(new Event("msm-impersonation-change"));
4802
+ return;
4803
+ }
4804
+ writeTabState(window, {
4805
+ phase: "active",
4806
+ token: data.token,
4807
+ expiresAt: data.expiresAt,
4808
+ cookieName: data.cookieName || state.cookieName,
4809
+ adminBase: state.adminBase,
4810
+ impersonation: data.impersonation
4811
+ });
4812
+ window.location.replace(`${adminPath()}/`);
4813
+ }
4814
+ function startImpersonationTab() {
4815
+ if (started || typeof window === "undefined") return;
4816
+ const state = readTabState(window);
4817
+ if (!state) return;
4818
+ started = true;
4819
+ if (state.phase === "landing") completeLanding();
4820
+ import("./ImpersonationTabBanner-B6Ps5-oe.mjs").then(
4821
+ ({ mountImpersonationBanner }) => mountImpersonationBanner({
4822
+ end: endImpersonation,
4823
+ leave: leaveImpersonationTab,
4824
+ markEnded,
4825
+ backendURL
4826
+ })
4827
+ ).catch(() => {
4828
+ });
4829
+ }
4830
+ bootImpersonationTab();
4527
4831
  const prefixPluginTranslations = (data, pluginId2) => {
4528
4832
  const prefixed = {};
4529
4833
  Object.keys(data).forEach((key) => {
@@ -4535,6 +4839,7 @@ const name = pluginPkg.strapi.name;
4535
4839
  const index = {
4536
4840
  register(app) {
4537
4841
  const pluginPermissions$1 = pluginPermissions.access;
4842
+ startImpersonationTab();
4538
4843
  app.addMenuLink({
4539
4844
  to: `plugins/${pluginId$1}`,
4540
4845
  icon: PluginIcon,
@@ -4542,7 +4847,7 @@ const index = {
4542
4847
  id: `${pluginId$1}.plugin.name`,
4543
4848
  defaultMessage: pluginPkg.strapi.displayName
4544
4849
  },
4545
- Component: () => import("./App-CPE-CQGz.mjs"),
4850
+ Component: () => import("./App-VB66H73A.mjs"),
4546
4851
  permissions: pluginPermissions$1
4547
4852
  });
4548
4853
  app.addSettingsLink(
@@ -4558,7 +4863,7 @@ const index = {
4558
4863
  },
4559
4864
  id: "general",
4560
4865
  to: `${pluginId$1}/general`,
4561
- Component: () => import("./Settings-h_exWUiI.mjs"),
4866
+ Component: () => import("./Settings-CKDNGJhl.mjs"),
4562
4867
  permissions: pluginPermissions$1
4563
4868
  },
4564
4869
  {
@@ -4568,7 +4873,7 @@ const index = {
4568
4873
  },
4569
4874
  id: "analytics",
4570
4875
  to: `${pluginId$1}/analytics`,
4571
- Component: () => import("./Analytics-CIHgaURb.mjs"),
4876
+ Component: () => import("./Analytics-DGAHD19E.mjs"),
4572
4877
  permissions: pluginPermissions$1
4573
4878
  }
4574
4879
  ]
@@ -4594,7 +4899,7 @@ const index = {
4594
4899
  href: `/plugins/${pluginId$1}`
4595
4900
  },
4596
4901
  component: async () => {
4597
- const component = await import("./OnlineUsersWidget-Dou2hxGY.mjs");
4902
+ const component = await import("./OnlineUsersWidget-2u-fYMb7.mjs");
4598
4903
  return component.default;
4599
4904
  },
4600
4905
  id: "online-users-widget",
@@ -4615,11 +4920,11 @@ const index = {
4615
4920
  },
4616
4921
  async registerTrads({ locales }) {
4617
4922
  const importedTrads = {
4618
- en: () => import("./en-B_1Ka64U.mjs"),
4619
- de: () => import("./de-Wz5Emtrb.mjs"),
4620
- es: () => import("./es-CVgw4zsj.mjs"),
4621
- fr: () => import("./fr-0AgMxTFc.mjs"),
4622
- pt: () => import("./pt-DtM74ffN.mjs")
4923
+ en: () => import("./en-KZ5ajaAR.mjs"),
4924
+ de: () => import("./de-CK-HuY41.mjs"),
4925
+ es: () => import("./es-B7k8taWV.mjs"),
4926
+ fr: () => import("./fr-Q2gmYqCn.mjs"),
4927
+ pt: () => import("./pt-CmxZTaf2.mjs")
4623
4928
  };
4624
4929
  const translatedLanguages = Object.keys(importedTrads).filter((lang) => locales.includes(lang));
4625
4930
  const translations = await Promise.all(
@@ -4672,52 +4977,55 @@ export {
4672
4977
  validateReason as a3,
4673
4978
  REASON_MAX as a4,
4674
4979
  formatClock as a5,
4675
- parseAdminPanelQuery as a6,
4676
- buildAdminListParams as a7,
4677
- withIdentityPlaceholders as a8,
4678
- ADMIN_FILTER_OPTIONS as a9,
4679
- getErrorTab as aA,
4680
- copyText as aB,
4681
- buildSavePayload as aC,
4682
- SETTINGS_FIELD_LABELS as aD,
4683
- requireSuccessfulMutation as aE,
4684
- getVisibleSettingsTabs as aF,
4685
- resolveSettingsTab as aG,
4686
- getRevealScrollDelta as aH,
4687
- SETTINGS_TAB_LABELS as aI,
4688
- isSessionFilter as aJ,
4689
- DEFAULT_SESSION_FILTER as aK,
4690
- isEndReasonFilter as aL,
4691
- DEFAULT_END_REASON_FILTER as aM,
4692
- normalizeDeviceType as aN,
4693
- getDeviceTypeMessage as aO,
4694
- index as aP,
4695
- ADMIN_PAGE_SIZE_OPTIONS as aa,
4696
- ADMIN_DEFAULT_PAGE_SIZE as ab,
4697
- hasAdminFilters as ac,
4698
- getSignOutErrorMessage as ad,
4699
- splitDuration as ae,
4700
- parseActivityPageQuery as af,
4701
- EVENT_PAGE_SIZE as ag,
4702
- ACTIVITY_PAGE_SIZE_OPTIONS as ah,
4703
- ALL_ADMINS_FILTER_OPTIONS as ai,
4704
- hasActivityPageFilters as aj,
4705
- parseUserActivityQuery as ak,
4706
- userText as al,
4707
- buildUserActivityCsv as am,
4708
- USER_ACTIVITY_SETTINGS_PATH as an,
4709
- USER_ACTIVITY_FILTER_OPTIONS as ao,
4710
- USER_ACTIVITY_FILTER_LABELS as ap,
4711
- hasUserActivityFilters as aq,
4712
- ReadableParagraphs as ar,
4713
- buildTabSearch as as,
4714
- buildSelectOptions as at,
4715
- EqualGrid as au,
4716
- SELECT_PRESETS as av,
4717
- fieldHasError as aw,
4718
- usesLocalDatabase as ax,
4719
- formatSessionDate as ay,
4720
- refocusIfLost as az,
4980
+ landingUrl as a6,
4981
+ parseAdminPanelQuery as a7,
4982
+ buildAdminListParams as a8,
4983
+ withIdentityPlaceholders as a9,
4984
+ refocusIfLost as aA,
4985
+ getErrorTab as aB,
4986
+ copyText as aC,
4987
+ buildSavePayload as aD,
4988
+ SETTINGS_FIELD_LABELS as aE,
4989
+ requireSuccessfulMutation as aF,
4990
+ getVisibleSettingsTabs as aG,
4991
+ resolveSettingsTab as aH,
4992
+ getRevealScrollDelta as aI,
4993
+ SETTINGS_TAB_LABELS as aJ,
4994
+ isSessionFilter as aK,
4995
+ DEFAULT_SESSION_FILTER as aL,
4996
+ isEndReasonFilter as aM,
4997
+ DEFAULT_END_REASON_FILTER as aN,
4998
+ normalizeDeviceType as aO,
4999
+ getDeviceTypeMessage as aP,
5000
+ readTabState as aQ,
5001
+ secondsUntil as aR,
5002
+ index as aS,
5003
+ ADMIN_FILTER_OPTIONS as aa,
5004
+ ADMIN_PAGE_SIZE_OPTIONS as ab,
5005
+ ADMIN_DEFAULT_PAGE_SIZE as ac,
5006
+ hasAdminFilters as ad,
5007
+ getSignOutErrorMessage as ae,
5008
+ splitDuration as af,
5009
+ parseActivityPageQuery as ag,
5010
+ EVENT_PAGE_SIZE as ah,
5011
+ ACTIVITY_PAGE_SIZE_OPTIONS as ai,
5012
+ ALL_ADMINS_FILTER_OPTIONS as aj,
5013
+ hasActivityPageFilters as ak,
5014
+ parseUserActivityQuery as al,
5015
+ userText as am,
5016
+ buildUserActivityCsv as an,
5017
+ USER_ACTIVITY_SETTINGS_PATH as ao,
5018
+ USER_ACTIVITY_FILTER_OPTIONS as ap,
5019
+ USER_ACTIVITY_FILTER_LABELS as aq,
5020
+ hasUserActivityFilters as ar,
5021
+ ReadableParagraphs as as,
5022
+ buildTabSearch as at,
5023
+ buildSelectOptions as au,
5024
+ EqualGrid as av,
5025
+ SELECT_PRESETS as aw,
5026
+ fieldHasError as ax,
5027
+ usesLocalDatabase as ay,
5028
+ formatSessionDate as az,
4721
5029
  getTranslation as b,
4722
5030
  getSessionStatus as c,
4723
5031
  getDevicePresentation as d,