@northern.tech/store 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/dist/actions.js +183 -129
  2. package/dist/actions.js.map +1 -1
  3. package/dist/actions.mjs +13 -13
  4. package/dist/api/general-api.js +42 -55
  5. package/dist/api/general-api.js.map +1 -1
  6. package/dist/api/general-api.mjs +6 -6
  7. package/dist/api/users-api.js +44 -70
  8. package/dist/api/users-api.js.map +1 -1
  9. package/dist/api/users-api.mjs +7 -7
  10. package/dist/appSlice/constants.js +1 -39
  11. package/dist/appSlice/constants.js.map +1 -1
  12. package/dist/appSlice/constants.mjs +2 -2
  13. package/dist/appSlice/index.js +51 -68
  14. package/dist/appSlice/index.js.map +1 -1
  15. package/dist/appSlice/index.mjs +5 -5
  16. package/dist/appSlice/selectors.js +1 -43
  17. package/dist/appSlice/selectors.js.map +1 -1
  18. package/dist/appSlice/selectors.mjs +2 -2
  19. package/dist/appSlice/thunks.js +563 -544
  20. package/dist/appSlice/thunks.js.map +1 -1
  21. package/dist/appSlice/thunks.mjs +28 -28
  22. package/dist/auth.js +39 -55
  23. package/dist/auth.js.map +1 -1
  24. package/dist/auth.mjs +5 -5
  25. package/dist/{chunk-C2YZYTJ6.mjs → chunk-2Z3RFYW4.mjs} +2 -11
  26. package/dist/{chunk-C2YZYTJ6.mjs.map → chunk-2Z3RFYW4.mjs.map} +1 -1
  27. package/dist/{chunk-OWHFMKTA.mjs → chunk-3ORTTLIB.mjs} +19 -16
  28. package/dist/{chunk-OWHFMKTA.mjs.map → chunk-3ORTTLIB.mjs.map} +1 -1
  29. package/dist/{chunk-NCI6JV5R.mjs → chunk-4SDUITD4.mjs} +6 -12
  30. package/dist/{chunk-NCI6JV5R.mjs.map → chunk-4SDUITD4.mjs.map} +1 -1
  31. package/dist/{chunk-BOSBROA3.mjs → chunk-5VNQCCAQ.mjs} +2 -7
  32. package/dist/{chunk-BOSBROA3.mjs.map → chunk-5VNQCCAQ.mjs.map} +1 -1
  33. package/dist/{chunk-2P4VECEE.mjs → chunk-65YIOCCD.mjs} +6 -11
  34. package/dist/{chunk-2P4VECEE.mjs.map → chunk-65YIOCCD.mjs.map} +1 -1
  35. package/dist/{chunk-QG4PT5WK.mjs → chunk-6CSGHZ3E.mjs} +9 -21
  36. package/dist/{chunk-QG4PT5WK.mjs.map → chunk-6CSGHZ3E.mjs.map} +1 -1
  37. package/dist/{chunk-X65NMDPS.mjs → chunk-AZRVRNXT.mjs} +40 -30
  38. package/dist/{chunk-X65NMDPS.mjs.map → chunk-AZRVRNXT.mjs.map} +1 -1
  39. package/dist/{chunk-M4U5R7A4.mjs → chunk-B42NUKMZ.mjs} +2 -6
  40. package/dist/{chunk-M4U5R7A4.mjs.map → chunk-B42NUKMZ.mjs.map} +1 -1
  41. package/dist/{chunk-BWFTQHNM.mjs → chunk-CHUCIHMY.mjs} +3 -4
  42. package/dist/{chunk-BWFTQHNM.mjs.map → chunk-CHUCIHMY.mjs.map} +1 -1
  43. package/dist/{chunk-UPMSYTWW.mjs → chunk-DIZJVB6M.mjs} +306 -291
  44. package/dist/{chunk-UPMSYTWW.mjs.map → chunk-DIZJVB6M.mjs.map} +1 -1
  45. package/dist/chunk-H5UCKQWK.mjs +41 -0
  46. package/dist/{chunk-ENLZPHTQ.mjs.map → chunk-H5UCKQWK.mjs.map} +1 -1
  47. package/dist/{chunk-MQIKQKSW.mjs → chunk-IFWKT27G.mjs} +37 -33
  48. package/dist/{chunk-MQIKQKSW.mjs.map → chunk-IFWKT27G.mjs.map} +1 -1
  49. package/dist/{chunk-EM2HUGUY.mjs → chunk-JA27QXVB.mjs} +37 -28
  50. package/dist/{chunk-EM2HUGUY.mjs.map → chunk-JA27QXVB.mjs.map} +1 -1
  51. package/dist/{chunk-2HCZYULZ.mjs → chunk-K2NZL5V4.mjs} +3 -6
  52. package/dist/{chunk-2HCZYULZ.mjs.map → chunk-K2NZL5V4.mjs.map} +1 -1
  53. package/dist/{chunk-Y47SYXII.mjs → chunk-KJAZNKV2.mjs} +43 -52
  54. package/dist/{chunk-Y47SYXII.mjs.map → chunk-KJAZNKV2.mjs.map} +1 -1
  55. package/dist/{chunk-U6YTBIDT.mjs → chunk-KPPU6OWF.mjs} +27 -39
  56. package/dist/{chunk-U6YTBIDT.mjs.map → chunk-KPPU6OWF.mjs.map} +1 -1
  57. package/dist/{chunk-EFHEROXZ.mjs → chunk-KZSTW27Q.mjs} +30 -18
  58. package/dist/{chunk-EFHEROXZ.mjs.map → chunk-KZSTW27Q.mjs.map} +1 -1
  59. package/dist/chunk-LZOMFHX3.mjs +38 -0
  60. package/dist/{chunk-RWYS5MKN.mjs → chunk-NJNSCJEY.mjs} +22 -26
  61. package/dist/{chunk-RWYS5MKN.mjs.map → chunk-NJNSCJEY.mjs.map} +1 -1
  62. package/dist/{chunk-ZLRZO4EY.mjs → chunk-O6TYYKSD.mjs} +62 -60
  63. package/dist/chunk-O6TYYKSD.mjs.map +1 -0
  64. package/dist/{chunk-OGAMVFPS.mjs → chunk-QQBUNZHA.mjs} +2 -6
  65. package/dist/{chunk-OGAMVFPS.mjs.map → chunk-QQBUNZHA.mjs.map} +1 -1
  66. package/dist/{chunk-WS3YYLTJ.mjs → chunk-R7LXL3KJ.mjs} +14 -13
  67. package/dist/{chunk-WS3YYLTJ.mjs.map → chunk-R7LXL3KJ.mjs.map} +1 -1
  68. package/dist/{chunk-MJW4632R.mjs → chunk-WCUGLHYM.mjs} +16 -20
  69. package/dist/{chunk-MJW4632R.mjs.map → chunk-WCUGLHYM.mjs.map} +1 -1
  70. package/dist/chunk-WYHJFSMQ.mjs +25 -0
  71. package/dist/{chunk-L4HIW3KB.mjs.map → chunk-WYHJFSMQ.mjs.map} +1 -1
  72. package/dist/{chunk-XJNI62IP.mjs → chunk-XC5UXEIB.mjs} +4 -11
  73. package/dist/{chunk-XJNI62IP.mjs.map → chunk-XC5UXEIB.mjs.map} +1 -1
  74. package/dist/{chunk-4U4X4KAC.mjs → chunk-XD7INCM4.mjs} +11 -17
  75. package/dist/{chunk-4U4X4KAC.mjs.map → chunk-XD7INCM4.mjs.map} +1 -1
  76. package/dist/{chunk-ZZ6VIQ3U.mjs → chunk-ZE7R2XXE.mjs} +10 -12
  77. package/dist/{chunk-ZZ6VIQ3U.mjs.map → chunk-ZE7R2XXE.mjs.map} +1 -1
  78. package/dist/{chunk-4C6IY46N.mjs → chunk-ZK4W5T53.mjs} +7 -11
  79. package/dist/{chunk-4C6IY46N.mjs.map → chunk-ZK4W5T53.mjs.map} +1 -1
  80. package/dist/commonConstants.js +1 -35
  81. package/dist/commonConstants.js.map +1 -1
  82. package/dist/commonConstants.mjs +2 -2
  83. package/dist/commonSelectors.js +73 -135
  84. package/dist/commonSelectors.js.map +1 -1
  85. package/dist/commonSelectors.mjs +12 -12
  86. package/dist/constants.js +36 -153
  87. package/dist/constants.js.map +1 -1
  88. package/dist/constants.mjs +14 -14
  89. package/dist/deploymentsSlice/constants.js +34 -59
  90. package/dist/deploymentsSlice/constants.js.map +1 -1
  91. package/dist/deploymentsSlice/constants.mjs +4 -4
  92. package/dist/deploymentsSlice/index.js +68 -79
  93. package/dist/deploymentsSlice/index.js.map +1 -1
  94. package/dist/deploymentsSlice/index.mjs +5 -5
  95. package/dist/deploymentsSlice/selectors.js +35 -52
  96. package/dist/deploymentsSlice/selectors.js.map +1 -1
  97. package/dist/deploymentsSlice/selectors.mjs +5 -5
  98. package/dist/deploymentsSlice/thunks.js +563 -553
  99. package/dist/deploymentsSlice/thunks.js.map +1 -1
  100. package/dist/deploymentsSlice/thunks.mjs +28 -28
  101. package/dist/devicesSlice/constants.js +34 -58
  102. package/dist/devicesSlice/constants.js.map +1 -1
  103. package/dist/devicesSlice/constants.mjs +4 -4
  104. package/dist/devicesSlice/index.js +71 -81
  105. package/dist/devicesSlice/index.js.map +1 -1
  106. package/dist/devicesSlice/index.mjs +5 -5
  107. package/dist/devicesSlice/selectors.js +40 -89
  108. package/dist/devicesSlice/selectors.js.map +1 -1
  109. package/dist/devicesSlice/selectors.mjs +5 -5
  110. package/dist/devicesSlice/thunks.js +563 -589
  111. package/dist/devicesSlice/thunks.js.map +1 -1
  112. package/dist/devicesSlice/thunks.mjs +28 -28
  113. package/dist/monitorSlice/constants.js +34 -45
  114. package/dist/monitorSlice/constants.js.map +1 -1
  115. package/dist/monitorSlice/constants.mjs +4 -4
  116. package/dist/monitorSlice/index.js +41 -52
  117. package/dist/monitorSlice/index.js.map +1 -1
  118. package/dist/monitorSlice/index.mjs +5 -5
  119. package/dist/monitorSlice/selectors.js +0 -4
  120. package/dist/monitorSlice/selectors.mjs +1 -1
  121. package/dist/monitorSlice/thunks.js +249 -232
  122. package/dist/monitorSlice/thunks.js.map +1 -1
  123. package/dist/monitorSlice/thunks.mjs +25 -25
  124. package/dist/onboardingSlice/constants.js +0 -5
  125. package/dist/onboardingSlice/constants.mjs +1 -1
  126. package/dist/onboardingSlice/index.js +1 -22
  127. package/dist/onboardingSlice/index.js.map +1 -1
  128. package/dist/onboardingSlice/index.mjs +2 -2
  129. package/dist/onboardingSlice/selectors.js +0 -4
  130. package/dist/onboardingSlice/selectors.mjs +1 -1
  131. package/dist/onboardingSlice/thunks.js +563 -547
  132. package/dist/onboardingSlice/thunks.js.map +1 -1
  133. package/dist/onboardingSlice/thunks.mjs +28 -28
  134. package/dist/organizationSlice/constants.js +34 -56
  135. package/dist/organizationSlice/constants.js.map +1 -1
  136. package/dist/organizationSlice/constants.mjs +4 -4
  137. package/dist/organizationSlice/index.js +45 -53
  138. package/dist/organizationSlice/index.js.map +1 -1
  139. package/dist/organizationSlice/index.mjs +5 -5
  140. package/dist/organizationSlice/selectors.js +35 -61
  141. package/dist/organizationSlice/selectors.js.map +1 -1
  142. package/dist/organizationSlice/selectors.mjs +5 -5
  143. package/dist/organizationSlice/thunks.js +563 -572
  144. package/dist/organizationSlice/thunks.js.map +1 -1
  145. package/dist/organizationSlice/thunks.mjs +28 -28
  146. package/dist/releasesSlice/constants.js +0 -7
  147. package/dist/releasesSlice/constants.mjs +1 -1
  148. package/dist/releasesSlice/index.js +38 -64
  149. package/dist/releasesSlice/index.js.map +1 -1
  150. package/dist/releasesSlice/index.mjs +5 -5
  151. package/dist/releasesSlice/selectors.js +37 -57
  152. package/dist/releasesSlice/selectors.js.map +1 -1
  153. package/dist/releasesSlice/selectors.mjs +6 -6
  154. package/dist/releasesSlice/thunks.js +293 -281
  155. package/dist/releasesSlice/thunks.js.map +1 -1
  156. package/dist/releasesSlice/thunks.mjs +25 -25
  157. package/dist/selectors.js +73 -207
  158. package/dist/selectors.js.map +1 -1
  159. package/dist/selectors.mjs +43 -43
  160. package/dist/store.js +194 -151
  161. package/dist/store.js.map +1 -1
  162. package/dist/store.mjs +16 -16
  163. package/dist/storehooks.js +568 -547
  164. package/dist/storehooks.js.map +1 -1
  165. package/dist/storehooks.mjs +38 -41
  166. package/dist/storehooks.mjs.map +1 -1
  167. package/dist/thunks.js +563 -702
  168. package/dist/thunks.js.map +1 -1
  169. package/dist/thunks.mjs +28 -28
  170. package/dist/usersSlice/constants.js +36 -66
  171. package/dist/usersSlice/constants.js.map +1 -1
  172. package/dist/usersSlice/constants.mjs +4 -4
  173. package/dist/usersSlice/index.js +62 -71
  174. package/dist/usersSlice/index.js.map +1 -1
  175. package/dist/usersSlice/index.mjs +5 -5
  176. package/dist/usersSlice/selectors.js +41 -66
  177. package/dist/usersSlice/selectors.js.map +1 -1
  178. package/dist/usersSlice/selectors.mjs +6 -6
  179. package/dist/usersSlice/thunks.js +563 -576
  180. package/dist/usersSlice/thunks.js.map +1 -1
  181. package/dist/usersSlice/thunks.mjs +28 -28
  182. package/dist/utils.js +57 -93
  183. package/dist/utils.js.map +1 -1
  184. package/dist/utils.mjs +5 -5
  185. package/package.json +66 -1
  186. package/dist/chunk-ENLZPHTQ.mjs +0 -35
  187. package/dist/chunk-L4HIW3KB.mjs +0 -36
  188. package/dist/chunk-XWBD7VOK.mjs +0 -93
  189. package/dist/chunk-ZLRZO4EY.mjs.map +0 -1
  190. /package/dist/{chunk-XWBD7VOK.mjs.map → chunk-LZOMFHX3.mjs.map} +0 -0
@@ -1,40 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
- var __restKey = (key) => typeof key === "symbol" ? key : key + "";
26
- var __objRest = (source, exclude) => {
27
- var target = {};
28
- for (var prop in source)
29
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
30
- target[prop] = source[prop];
31
- if (source != null && __getOwnPropSymbols)
32
- for (var prop of __getOwnPropSymbols(source)) {
33
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
34
- target[prop] = source[prop];
35
- }
36
- return target;
37
- };
38
8
  var __export = (target, all) => {
39
9
  for (var name in all)
40
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -90,7 +60,7 @@ var chartTypes = {
90
60
  };
91
61
  var emptyChartSelection = { software: "", group: "", chartType: chartTypes.bar.key, attribute: "artifact_name" };
92
62
  var defaultReportType = "distribution";
93
- var defaultReports = [__spreadProps(__spreadValues({}, emptyChartSelection), { group: null, attribute: "artifact_name", type: defaultReportType })];
63
+ var defaultReports = [{ ...emptyChartSelection, group: null, attribute: "artifact_name", type: defaultReportType }];
94
64
  var PLANS = {
95
65
  os: {
96
66
  id: "os",
@@ -419,7 +389,7 @@ var emptyRole = Object.freeze({
419
389
  name: void 0,
420
390
  description: "",
421
391
  permissions: [],
422
- uiPermissions: Object.freeze(__spreadValues({}, emptyUiPermissions))
392
+ uiPermissions: Object.freeze({ ...emptyUiPermissions })
423
393
  });
424
394
 
425
395
  // src/deploymentsSlice/constants.ts
@@ -448,11 +418,12 @@ var deploymentStatesToSubstates = {
448
418
  pending: [deploymentSubstates.pending],
449
419
  successes: [deploymentSubstates.success, deploymentSubstates.alreadyInstalled, deploymentSubstates.noartifact]
450
420
  };
451
- var deploymentStatesToSubstatesWithSkipped = __spreadProps(__spreadValues({}, deploymentStatesToSubstates), {
421
+ var deploymentStatesToSubstatesWithSkipped = {
422
+ ...deploymentStatesToSubstates,
452
423
  failures: [deploymentSubstates.failure],
453
424
  skipped: [deploymentSubstates.aborted, deploymentSubstates.noartifact, deploymentSubstates.alreadyInstalled, deploymentSubstates.decommissioned],
454
425
  successes: [deploymentSubstates.success]
455
- });
426
+ };
456
427
  var installationSubstatesMap = {
457
428
  download: {
458
429
  title: "download",
@@ -497,8 +468,8 @@ var DEPLOYMENT_STATES = {
497
468
  var listDefaultsByState = {
498
469
  [DEPLOYMENT_STATES.inprogress]: { page: 1, perPage: 10 },
499
470
  [DEPLOYMENT_STATES.pending]: { page: 1, perPage: 10 },
500
- [DEPLOYMENT_STATES.scheduled]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
501
- [DEPLOYMENT_STATES.finished]: __spreadValues({}, DEVICE_LIST_DEFAULTS),
471
+ [DEPLOYMENT_STATES.scheduled]: { ...DEVICE_LIST_DEFAULTS },
472
+ [DEPLOYMENT_STATES.finished]: { ...DEVICE_LIST_DEFAULTS },
502
473
  sort: { direction: SORTING_OPTIONS.desc }
503
474
  };
504
475
  var DEFAULT_PENDING_INPROGRESS_COUNT = 10;
@@ -844,54 +815,59 @@ var rolesById = Object.freeze({
844
815
  description: "Full access",
845
816
  permissions: [],
846
817
  // permissions refers to the values returned from the backend
847
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
818
+ uiPermissions: {
819
+ ...emptyUiPermissions,
848
820
  auditlog: uiPermissionsByArea.auditlog.uiPermissions.map(permissionMapper),
849
821
  deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
850
822
  groups: { [ALL_DEVICES]: uiPermissionsByArea.groups.uiPermissions.map(permissionMapper) },
851
823
  releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) },
852
824
  userManagement: uiPermissionsByArea.userManagement.uiPermissions.map(permissionMapper)
853
- })
825
+ }
854
826
  },
855
827
  [staticRolesByName.readOnly]: {
856
828
  name: "Read Access",
857
829
  value: staticRolesByName.readOnly,
858
830
  description: "",
859
831
  permissions: [],
860
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
832
+ uiPermissions: {
833
+ ...emptyUiPermissions,
861
834
  deployments: [uiPermissionsById.read.value],
862
835
  groups: { [ALL_DEVICES]: [uiPermissionsById.read.value] },
863
836
  releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] },
864
837
  userManagement: [uiPermissionsById.read.value]
865
- })
838
+ }
866
839
  },
867
840
  [staticRolesByName.ci]: {
868
841
  name: "Releases Manager",
869
842
  value: staticRolesByName.ci,
870
843
  description: "",
871
844
  permissions: [],
872
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
845
+ uiPermissions: {
846
+ ...emptyUiPermissions,
873
847
  releases: { [ALL_RELEASES]: uiPermissionsByArea.releases.uiPermissions.map(permissionMapper) }
874
- })
848
+ }
875
849
  },
876
850
  [staticRolesByName.deploymentsManager]: {
877
851
  name: "Deployments Manager",
878
852
  value: staticRolesByName.deploymentsManager,
879
853
  description: "",
880
854
  permissions: [],
881
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
855
+ uiPermissions: {
856
+ ...emptyUiPermissions,
882
857
  deployments: uiPermissionsByArea.deployments.uiPermissions.map(permissionMapper),
883
858
  groups: { [ALL_DEVICES]: [uiPermissionsById.deploy.value, uiPermissionsById.read.value] },
884
859
  releases: { [ALL_RELEASES]: [uiPermissionsById.read.value] }
885
- })
860
+ }
886
861
  },
887
862
  [staticRolesByName.terminalAccess]: {
888
863
  name: "Troubleshooting",
889
864
  value: staticRolesByName.terminalAccess,
890
865
  description: "Access to the troubleshooting features: Remote Terminal, File Transfer, Port Forwarding",
891
866
  permissions: [],
892
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
867
+ uiPermissions: {
868
+ ...emptyUiPermissions,
893
869
  groups: { [ALL_DEVICES]: [uiPermissionsById.connect.value] }
894
- })
870
+ }
895
871
  }
896
872
  });
897
873
  var serviceProviderRolesById = {
@@ -900,22 +876,24 @@ var serviceProviderRolesById = {
900
876
  value: staticRolesByName.admin,
901
877
  description: "Full access",
902
878
  permissions: [],
903
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
879
+ uiPermissions: {
880
+ ...emptyUiPermissions,
904
881
  auditlog: uiPermissionsByArea.auditlog.uiPermissions.map(permissionMapper),
905
882
  userManagement: uiPermissionsByArea.userManagement.uiPermissions.map(permissionMapper),
906
883
  tenantManagement: uiPermissionsByArea.tenantManagement.uiPermissions.map(permissionMapper)
907
- })
884
+ }
908
885
  },
909
886
  readOnly: {
910
887
  name: "Read access",
911
888
  value: staticRolesByName.admin,
912
889
  description: "This role can see all linked organizations but cannot make any changes",
913
890
  permissions: [],
914
- uiPermissions: __spreadProps(__spreadValues({}, emptyUiPermissions), {
891
+ uiPermissions: {
892
+ ...emptyUiPermissions,
915
893
  auditlog: [uiPermissionsById.read.value],
916
894
  userManagement: [uiPermissionsById.read.value],
917
895
  tenantManagement: [uiPermissionsById.read.value]
918
- })
896
+ }
919
897
  }
920
898
  };
921
899
  var defaultPermissionSets = {
@@ -928,7 +906,9 @@ var defaultPermissionSets = {
928
906
  },
929
907
  [permissionSetIds.SuperUser]: {
930
908
  name: permissionSetIds.SuperUser,
931
- result: __spreadValues({}, rolesById[staticRolesByName.admin].uiPermissions)
909
+ result: {
910
+ ...rolesById[staticRolesByName.admin].uiPermissions
911
+ }
932
912
  },
933
913
  [permissionSetIds.ManageUsers]: {
934
914
  name: permissionSetIds.ManageUsers,
@@ -1012,11 +992,12 @@ var defaultPermissionSets = {
1012
992
  }
1013
993
  };
1014
994
  var USER_LOGOUT = "USER_LOGOUT";
1015
- var rolesByName = __spreadProps(__spreadValues({}, staticRolesByName), {
995
+ var rolesByName = {
996
+ ...staticRolesByName,
1016
997
  deploymentCreation: { action: "CREATE_DEPLOYMENT", object: { type: "DEVICE_GROUP", value: void 0 } },
1017
998
  groupAccess: { action: "VIEW_DEVICE", object: { type: "DEVICE_GROUP", value: void 0 } },
1018
999
  userManagement: { action: "http", object: { type: "any", value: `${useradmApiUrlv1}/.*` } }
1019
- });
1000
+ };
1020
1001
  var twoFAStates = {
1021
1002
  enabled: "enabled",
1022
1003
  disabled: "disabled",
@@ -1104,7 +1085,10 @@ var appSlice = (0, import_toolkit.createSlice)({
1104
1085
  initialState,
1105
1086
  reducers: {
1106
1087
  setFeatures: (state, action) => {
1107
- state.features = __spreadValues(__spreadValues({}, state.features), action.payload);
1088
+ state.features = {
1089
+ ...state.features,
1090
+ ...action.payload
1091
+ };
1108
1092
  },
1109
1093
  setSnackbar: (state, { payload }) => {
1110
1094
  let { message, autoHideDuration, action, children, onClick, onClose } = payload;
@@ -1129,7 +1113,10 @@ var appSlice = (0, import_toolkit.createSlice)({
1129
1113
  state.hostedAnnouncement = action.payload;
1130
1114
  },
1131
1115
  setSearchState: (state, action) => {
1132
- state.searchState = __spreadValues(__spreadValues({}, state.searchState), action.payload);
1116
+ state.searchState = {
1117
+ ...state.searchState,
1118
+ ...action.payload
1119
+ };
1133
1120
  },
1134
1121
  setOfflineThreshold: (state, action) => {
1135
1122
  state.offlineThreshold = action.payload;
@@ -1140,20 +1127,23 @@ var appSlice = (0, import_toolkit.createSlice)({
1140
1127
  },
1141
1128
  uploadProgress: (state, action) => {
1142
1129
  const { id, progress } = action.payload;
1143
- state.uploadsById[id] = __spreadProps(__spreadValues({}, state.uploadsById[id]), {
1130
+ state.uploadsById[id] = {
1131
+ ...state.uploadsById[id],
1144
1132
  progress
1145
- });
1133
+ };
1146
1134
  },
1147
1135
  cleanUpUpload: (state, action) => {
1148
- var _a;
1149
- const _b2 = state.uploadsById, { [_a = action.payload]: current } = _b2, remainder = __objRest(_b2, [__restKey(_a)]);
1136
+ const { [action.payload]: current, ...remainder } = state.uploadsById;
1150
1137
  state.uploadsById = remainder;
1151
1138
  },
1152
1139
  setVersionInformation: (state, action) => {
1153
- state.versionInformation = __spreadValues(__spreadValues({}, state.versionInformation), action.payload);
1140
+ state.versionInformation = {
1141
+ ...state.versionInformation,
1142
+ ...action.payload
1143
+ };
1154
1144
  },
1155
1145
  setEnvironmentData: (state, action) => {
1156
- return __spreadValues(__spreadValues({}, state), action.payload);
1146
+ return { ...state, ...action.payload };
1157
1147
  }
1158
1148
  }
1159
1149
  });
@@ -1185,7 +1175,7 @@ var initialState2 = {
1185
1175
  sourceWindow: -1
1186
1176
  },
1187
1177
  binaryDeltaLimits: {
1188
- timeout: __spreadProps(__spreadValues({}, limitDefault), { default: 60, max: 3600, min: 60 }),
1178
+ timeout: { ...limitDefault, default: 60, max: 3600, min: 60 },
1189
1179
  sourceWindow: limitDefault,
1190
1180
  inputWindow: limitDefault,
1191
1181
  duplicatesWindow: limitDefault,
@@ -1195,10 +1185,10 @@ var initialState2 = {
1195
1185
  deploymentDeviceLimit: 5e3,
1196
1186
  selectedDeviceIds: [],
1197
1187
  selectionState: {
1198
- finished: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { endDate: void 0, search: "", selection: [], startDate: void 0, total: 0, type: "" }),
1199
- inprogress: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
1200
- pending: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] }),
1201
- scheduled: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { selection: [] }),
1188
+ finished: { ...DEVICE_LIST_DEFAULTS, endDate: void 0, search: "", selection: [], startDate: void 0, total: 0, type: "" },
1189
+ inprogress: { ...DEVICE_LIST_DEFAULTS, perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] },
1190
+ pending: { ...DEVICE_LIST_DEFAULTS, perPage: DEFAULT_PENDING_INPROGRESS_COUNT, selection: [] },
1191
+ scheduled: { ...DEVICE_LIST_DEFAULTS, selection: [] },
1202
1192
  general: {
1203
1193
  state: DEPLOYMENT_ROUTES.active.key,
1204
1194
  showCreationDialog: false,
@@ -1214,40 +1204,55 @@ var deploymentsSlice = (0, import_toolkit2.createSlice)({
1214
1204
  initialState: initialState2,
1215
1205
  reducers: {
1216
1206
  createdDeployment: (state, action) => {
1217
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, deploymentPrototype), action.payload);
1207
+ state.byId[action.payload.id] = {
1208
+ ...deploymentPrototype,
1209
+ ...action.payload
1210
+ };
1218
1211
  state.byStatus[DEPLOYMENT_STATES.pending].total = state.byStatus[DEPLOYMENT_STATES.pending].total + 1;
1219
1212
  state.byStatus[DEPLOYMENT_STATES.pending].deploymentIds = [...state.byStatus.pending.deploymentIds, action.payload.id];
1220
1213
  state.selectionState[DEPLOYMENT_STATES.pending].selection = [action.payload.id, ...state.selectionState[DEPLOYMENT_STATES.pending].selection], state.selectionState[DEPLOYMENT_STATES.pending].total = state.selectionState[DEPLOYMENT_STATES.pending].total + 1;
1221
1214
  },
1222
1215
  removedDeployment: (state, action) => {
1223
- var _a;
1224
- const _b2 = state.byId, { [_a = action.payload]: removedDeployment } = _b2, remainder = __objRest(_b2, [__restKey(_a)]);
1216
+ const { [action.payload]: removedDeployment, ...remainder } = state.byId;
1225
1217
  state.byId = remainder;
1226
1218
  },
1227
1219
  receivedDeployment: (state, action) => {
1228
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id] || {}), action.payload);
1220
+ state.byId[action.payload.id] = {
1221
+ ...state.byId[action.payload.id] || {},
1222
+ ...action.payload
1223
+ };
1229
1224
  },
1230
1225
  receivedDeploymentDeviceLog: (state, action) => {
1231
1226
  const { id, deviceId, log } = action.payload;
1232
- const deployment = __spreadValues(__spreadValues({}, deploymentPrototype), state.byId[id]);
1233
- state.byId[id] = __spreadProps(__spreadValues({}, deployment), {
1234
- devices: __spreadProps(__spreadValues({}, deployment.devices), {
1235
- [deviceId]: __spreadProps(__spreadValues({}, deployment.devices[deviceId]), {
1227
+ const deployment = {
1228
+ ...deploymentPrototype,
1229
+ ...state.byId[id]
1230
+ };
1231
+ state.byId[id] = {
1232
+ ...deployment,
1233
+ devices: {
1234
+ ...deployment.devices,
1235
+ [deviceId]: {
1236
+ ...deployment.devices[deviceId],
1236
1237
  log
1237
- })
1238
- })
1239
- });
1238
+ }
1239
+ }
1240
+ };
1240
1241
  },
1241
1242
  receivedDeploymentDevices: (state, action) => {
1242
1243
  const { id, devices, selectedDeviceIds, totalDeviceCount } = action.payload;
1243
- state.byId[id] = __spreadProps(__spreadValues({}, state.byId[id]), {
1244
+ state.byId[id] = {
1245
+ ...state.byId[id],
1244
1246
  devices,
1245
1247
  totalDeviceCount
1246
- });
1248
+ };
1247
1249
  state.selectedDeviceIds = selectedDeviceIds;
1248
1250
  },
1249
1251
  receivedDeployments: (state, action) => {
1250
- state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
1252
+ state.byId = {
1253
+ ...state.byId,
1254
+ ...action.payload
1255
+ };
1251
1256
  },
1252
1257
  receivedDeploymentsForStatus: (state, action) => {
1253
1258
  const { status, deploymentIds, total } = action.payload;
@@ -1289,9 +1294,9 @@ var initialState3 = {
1289
1294
  [DEVICE_STATES.preauth]: { deviceIds: [], total: 0 },
1290
1295
  [DEVICE_STATES.rejected]: { deviceIds: [], total: 0 }
1291
1296
  },
1292
- deviceList: __spreadProps(__spreadValues({
1293
- deviceIds: []
1294
- }, DEVICE_LIST_DEFAULTS), {
1297
+ deviceList: {
1298
+ deviceIds: [],
1299
+ ...DEVICE_LIST_DEFAULTS,
1295
1300
  selectedAttributes: [],
1296
1301
  selectedIssues: [],
1297
1302
  selection: [],
@@ -1302,7 +1307,7 @@ var initialState3 = {
1302
1307
  },
1303
1308
  state: DEVICE_STATES.accepted,
1304
1309
  total: 0
1305
- }),
1310
+ },
1306
1311
  filters: [
1307
1312
  // { key: 'device_type', value: 'raspberry', operator: '$eq', scope: 'inventory' }
1308
1313
  ],
@@ -1337,49 +1342,59 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1337
1342
  },
1338
1343
  addToGroup: (state, action) => {
1339
1344
  const { group, deviceIds } = action.payload;
1340
- const maybeExistingGroup = __spreadValues({
1345
+ const maybeExistingGroup = {
1341
1346
  filters: [],
1342
- deviceIds: []
1343
- }, state.groups.byId[group]);
1344
- state.groups.byId[group] = __spreadProps(__spreadValues({}, maybeExistingGroup), {
1347
+ deviceIds: [],
1348
+ ...state.groups.byId[group]
1349
+ };
1350
+ state.groups.byId[group] = {
1351
+ ...maybeExistingGroup,
1345
1352
  deviceIds: [...maybeExistingGroup.deviceIds, ...deviceIds].filter(import_helpers.duplicateFilter),
1346
1353
  total: (maybeExistingGroup.total || 0) + 1
1347
- });
1354
+ };
1348
1355
  },
1349
1356
  removeFromGroup: (state, action) => {
1350
1357
  const { group, deviceIds: removedIds } = action.payload;
1351
- const _a = state.groups.byId[group] || {}, { deviceIds = [], total = 0 } = _a, maybeExistingGroup = __objRest(_a, ["deviceIds", "total"]);
1352
- const changedGroup = __spreadProps(__spreadValues({}, maybeExistingGroup), {
1358
+ const { deviceIds = [], total = 0, ...maybeExistingGroup } = state.groups.byId[group] || {};
1359
+ const changedGroup = {
1360
+ ...maybeExistingGroup,
1353
1361
  deviceIds: deviceIds.filter((id) => !removedIds.includes(id)),
1354
1362
  total: Math.max(total - removedIds.length, 0)
1355
- });
1363
+ };
1356
1364
  if (changedGroup.total || changedGroup.deviceIds.length) {
1357
1365
  state.groups.byId[group] = changedGroup;
1358
1366
  return;
1359
1367
  } else if (state.groups.selectedGroup === group) {
1360
1368
  state.groups.selectedGroup = void 0;
1361
1369
  }
1362
- const _b2 = state.groups.byId, { [group]: removal } = _b2, remainingById = __objRest(_b2, [__restKey(group)]);
1370
+ const { [group]: removal, ...remainingById } = state.groups.byId;
1363
1371
  state.groups.byId = remainingById;
1364
1372
  },
1365
1373
  addGroup: (state, action) => {
1366
1374
  const { groupName, group } = action.payload;
1367
- state.groups.byId[groupName] = __spreadValues(__spreadValues({}, state.groups.byId[groupName]), group);
1375
+ state.groups.byId[groupName] = {
1376
+ ...state.groups.byId[groupName],
1377
+ ...group
1378
+ };
1368
1379
  },
1369
1380
  selectGroup: (state, { payload: group }) => {
1370
1381
  state.deviceList.deviceIds = state.groups.byId[group] && state.groups.byId[group].deviceIds.length > 0 ? state.groups.byId[group].deviceIds : [];
1371
1382
  state.groups.selectedGroup = group;
1372
1383
  },
1373
1384
  removeGroup: (state, action) => {
1374
- var _a;
1375
- const _b2 = state.groups.byId, { [_a = action.payload]: removal } = _b2, remainingById = __objRest(_b2, [__restKey(_a)]);
1385
+ const { [action.payload]: removal, ...remainingById } = state.groups.byId;
1376
1386
  state.groups.byId = remainingById;
1377
1387
  state.groups.selectedGroup = state.groups.selectedGroup === action.payload ? void 0 : state.groups.selectedGroup;
1378
1388
  },
1379
1389
  setDeviceListState: (state, action) => {
1380
- state.deviceList = __spreadProps(__spreadValues(__spreadValues({}, state.deviceList), action.payload), {
1381
- sort: __spreadValues(__spreadValues({}, state.deviceList.sort), action.payload.sort)
1382
- });
1390
+ state.deviceList = {
1391
+ ...state.deviceList,
1392
+ ...action.payload,
1393
+ sort: {
1394
+ ...state.deviceList.sort,
1395
+ ...action.payload.sort
1396
+ }
1397
+ };
1383
1398
  },
1384
1399
  setFilterAttributes: (state, action) => {
1385
1400
  state.filteringAttributes = action.payload;
@@ -1388,7 +1403,10 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1388
1403
  state.filteringAttributesConfig = action.payload;
1389
1404
  },
1390
1405
  receivedDevices: (state, action) => {
1391
- state.byId = __spreadValues(__spreadValues({}, state.byId), action.payload);
1406
+ state.byId = {
1407
+ ...state.byId,
1408
+ ...action.payload
1409
+ };
1392
1410
  },
1393
1411
  setDeviceFilters: (state, action) => {
1394
1412
  if ((0, import_helpers.deepCompare)(action.payload, state.filters)) {
@@ -1419,7 +1437,10 @@ var devicesSlice = (0, import_toolkit3.createSlice)({
1419
1437
  state.limit = action.payload;
1420
1438
  },
1421
1439
  receivedDevice: (state, action) => {
1422
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
1440
+ state.byId[action.payload.id] = {
1441
+ ...state.byId[action.payload.id],
1442
+ ...action.payload
1443
+ };
1423
1444
  },
1424
1445
  maybeUpdateDevicesByStatus: (state, action) => {
1425
1446
  const { deviceId, authId } = action.payload;
@@ -1440,15 +1461,17 @@ var import_toolkit4 = require("@reduxjs/toolkit");
1440
1461
  var sliceName4 = "monitor";
1441
1462
  var initialState4 = {
1442
1463
  alerts: {
1443
- alertList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), { total: 0 }),
1464
+ alertList: { ...DEVICE_LIST_DEFAULTS, total: 0 },
1444
1465
  byDeviceId: {}
1445
1466
  },
1446
1467
  issueCounts: {
1447
- byType: Object.values(DEVICE_ISSUE_OPTIONS).reduce((accu, { key }) => __spreadProps(__spreadValues({}, accu), { [key]: { filtered: 0, total: 0 } }), {})
1468
+ byType: Object.values(DEVICE_ISSUE_OPTIONS).reduce((accu, { key }) => ({ ...accu, [key]: { filtered: 0, total: 0 } }), {})
1448
1469
  },
1449
1470
  settings: {
1450
1471
  global: {
1451
- channels: __spreadValues({}, Object.keys(alertChannels).reduce((accu, item) => __spreadProps(__spreadValues({}, accu), { [item]: { enabled: true } }), {}))
1472
+ channels: {
1473
+ ...Object.keys(alertChannels).reduce((accu, item) => ({ ...accu, [item]: { enabled: true } }), {})
1474
+ }
1452
1475
  }
1453
1476
  }
1454
1477
  };
@@ -1466,14 +1489,14 @@ var monitorSlice = (0, import_toolkit4.createSlice)({
1466
1489
  },
1467
1490
  receiveLatestDeviceAlerts: (state, action) => {
1468
1491
  const { deviceId, alerts } = action.payload;
1469
- state.alerts.byDeviceId[deviceId] = __spreadProps(__spreadValues({}, state.alerts.byDeviceId[deviceId]), { latest: alerts });
1492
+ state.alerts.byDeviceId[deviceId] = { ...state.alerts.byDeviceId[deviceId], latest: alerts };
1470
1493
  },
1471
1494
  receiveDeviceIssueCounts: (state, action) => {
1472
1495
  const { issueType, counts } = action.payload;
1473
1496
  state.issueCounts.byType[issueType] = counts;
1474
1497
  },
1475
1498
  setAlertListState: (state, action) => {
1476
- state.alerts.alertList = __spreadValues(__spreadValues({}, state.alerts.alertList), action.payload);
1499
+ state.alerts.alertList = { ...state.alerts.alertList, ...action.payload };
1477
1500
  }
1478
1501
  }
1479
1502
  });
@@ -1497,7 +1520,7 @@ var onboardingSlice = (0, import_toolkit5.createSlice)({
1497
1520
  initialState: initialState5,
1498
1521
  reducers: {
1499
1522
  setOnboardingState: (state, action) => {
1500
- return __spreadValues(__spreadValues({}, state), action.payload);
1523
+ return { ...state, ...action.payload };
1501
1524
  },
1502
1525
  setDemoArtifactPort: (state, action) => {
1503
1526
  state.demoArtifactPort = action.payload;
@@ -1535,7 +1558,8 @@ var initialState6 = {
1535
1558
  brand: ""
1536
1559
  },
1537
1560
  intentId: null,
1538
- tenantList: __spreadProps(__spreadValues({}, TENANT_LIST_DEFAULT), {
1561
+ tenantList: {
1562
+ ...TENANT_LIST_DEFAULT,
1539
1563
  total: 0,
1540
1564
  tenants: [],
1541
1565
  selectedTenant: null,
@@ -1543,13 +1567,14 @@ var initialState6 = {
1543
1567
  direction: SORTING_OPTIONS.desc,
1544
1568
  key: "name"
1545
1569
  }
1546
- }),
1570
+ },
1547
1571
  organization: {
1548
1572
  // id, name, status, tenant_token, plan
1549
1573
  },
1550
1574
  auditlog: {
1551
1575
  events: [],
1552
- selectionState: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
1576
+ selectionState: {
1577
+ ...DEVICE_LIST_DEFAULTS,
1553
1578
  detail: void 0,
1554
1579
  endDate: void 0,
1555
1580
  selectedIssue: void 0,
@@ -1558,7 +1583,7 @@ var initialState6 = {
1558
1583
  total: 0,
1559
1584
  type: void 0,
1560
1585
  user: void 0
1561
- })
1586
+ }
1562
1587
  },
1563
1588
  externalDeviceIntegrations: [
1564
1589
  // { <connection_string|x509|...>, id, provider }
@@ -1581,7 +1606,10 @@ var organizationSlice = (0, import_toolkit6.createSlice)({
1581
1606
  state.auditlog.selectionState.total = total;
1582
1607
  },
1583
1608
  setAuditLogState: (state, action) => {
1584
- state.auditlog.selectionState = __spreadValues(__spreadValues({}, state.auditlog.selectionState), action.payload);
1609
+ state.auditlog.selectionState = {
1610
+ ...state.auditlog.selectionState,
1611
+ ...action.payload
1612
+ };
1585
1613
  },
1586
1614
  receiveCurrentCard: (state, action) => {
1587
1615
  state.card = action.payload;
@@ -1590,7 +1618,7 @@ var organizationSlice = (0, import_toolkit6.createSlice)({
1590
1618
  state.intentId = action.payload;
1591
1619
  },
1592
1620
  setOrganization: (state, action) => {
1593
- state.organization = __spreadValues(__spreadValues({}, state.organization), action.payload);
1621
+ state.organization = { ...state.organization, ...action.payload };
1594
1622
  },
1595
1623
  setTenantListState: (state, action) => {
1596
1624
  state.tenantList = action.payload;
@@ -1653,7 +1681,8 @@ var initialState7 = {
1653
1681
  }
1654
1682
  */
1655
1683
  },
1656
- releasesList: __spreadProps(__spreadValues({}, DEVICE_LIST_DEFAULTS), {
1684
+ releasesList: {
1685
+ ...DEVICE_LIST_DEFAULTS,
1657
1686
  searchedIds: [],
1658
1687
  releaseIds: [],
1659
1688
  selection: [],
@@ -1667,7 +1696,7 @@ var initialState7 = {
1667
1696
  selectedTags: [],
1668
1697
  total: 0,
1669
1698
  type: ""
1670
- }),
1699
+ },
1671
1700
  tags: [],
1672
1701
  updateTypes: [],
1673
1702
  /*
@@ -1693,8 +1722,7 @@ var releaseSlice = (0, import_toolkit7.createSlice)({
1693
1722
  state.updateTypes = action.payload;
1694
1723
  },
1695
1724
  removeRelease: (state, action) => {
1696
- var _a;
1697
- const _b2 = state.byId, { [_a = action.payload]: toBeRemoved } = _b2, byId = __objRest(_b2, [__restKey(_a)]);
1725
+ const { [action.payload]: toBeRemoved, ...byId } = state.byId;
1698
1726
  state.byId = byId;
1699
1727
  state.selectedRelease = action.payload === state.selectedRelease ? null : state.selectedRelease;
1700
1728
  },
@@ -1727,8 +1755,12 @@ var initialState8 = {
1727
1755
  previousPhases: [],
1728
1756
  retries: 0
1729
1757
  },
1730
- permissionSetsById: __spreadValues({}, defaultPermissionSets),
1731
- rolesById: __spreadValues({}, rolesById),
1758
+ permissionSetsById: {
1759
+ ...defaultPermissionSets
1760
+ },
1761
+ rolesById: {
1762
+ ...rolesById
1763
+ },
1732
1764
  settingsInitialized: false,
1733
1765
  showConnectDeviceDialog: false,
1734
1766
  showFeedbackDialog: false,
@@ -1768,13 +1800,15 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1768
1800
  state.byId[0] = action.payload;
1769
1801
  },
1770
1802
  removedUser: (state, action) => {
1771
- var _a;
1772
- const _b2 = state.byId, { [_a = action.payload]: removedUser } = _b2, byId = __objRest(_b2, [__restKey(_a)]);
1803
+ const { [action.payload]: removedUser, ...byId } = state.byId;
1773
1804
  state.byId = byId;
1774
1805
  state.currentUser = state.currentUser === action.payload ? null : state.currentUser;
1775
1806
  },
1776
1807
  updatedUser: (state, action) => {
1777
- state.byId[action.payload.id] = __spreadValues(__spreadValues({}, state.byId[action.payload.id]), action.payload);
1808
+ state.byId[action.payload.id] = {
1809
+ ...state.byId[action.payload.id],
1810
+ ...action.payload
1811
+ };
1778
1812
  },
1779
1813
  receivedPermissionSets: (state, action) => {
1780
1814
  state.permissionSetsById = action.payload;
@@ -1783,11 +1817,13 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1783
1817
  state.rolesById = action.payload;
1784
1818
  },
1785
1819
  createdRole: (state, action) => {
1786
- state.rolesById[action.payload.name] = __spreadValues(__spreadValues({}, state.rolesById[action.payload.name]), action.payload);
1820
+ state.rolesById[action.payload.name] = {
1821
+ ...state.rolesById[action.payload.name],
1822
+ ...action.payload
1823
+ };
1787
1824
  },
1788
1825
  removedRole: (state, action) => {
1789
- var _a;
1790
- const _b2 = state.rolesById, { [_a = action.payload]: toBeRemoved } = _b2, rolesById2 = __objRest(_b2, [__restKey(_a)]);
1826
+ const { [action.payload]: toBeRemoved, ...rolesById2 } = state.rolesById;
1791
1827
  state.rolesById = rolesById2;
1792
1828
  },
1793
1829
  setCustomColumns: (state, action) => {
@@ -1795,18 +1831,27 @@ var usersSlice = (0, import_toolkit8.createSlice)({
1795
1831
  },
1796
1832
  setGlobalSettings: (state, action) => {
1797
1833
  state.settingsInitialized = true;
1798
- state.globalSettings = __spreadValues(__spreadValues({}, state.globalSettings), action.payload);
1834
+ state.globalSettings = {
1835
+ ...state.globalSettings,
1836
+ ...action.payload
1837
+ };
1799
1838
  },
1800
1839
  setUserSettings: (state, action) => {
1801
1840
  state.userSettingsInitialized = true;
1802
- state.userSettings = __spreadValues(__spreadValues({}, state.userSettings), action.payload);
1841
+ state.userSettings = {
1842
+ ...state.userSettings,
1843
+ ...action.payload
1844
+ };
1803
1845
  },
1804
1846
  setTooltipState: (state, action) => {
1805
1847
  const { id, readState = READ_STATES.read } = action.payload;
1806
1848
  state.tooltips.byId[id].readState = readState;
1807
1849
  },
1808
1850
  setTooltipsState: (state, action) => {
1809
- state.tooltips.byId = __spreadValues(__spreadValues({}, state.tooltips.byId), action.payload);
1851
+ state.tooltips.byId = {
1852
+ ...state.tooltips.byId,
1853
+ ...action.payload
1854
+ };
1810
1855
  },
1811
1856
  setShowFeedbackDialog: (state, action) => {
1812
1857
  state.showFeedbackDialog = action.payload;
@@ -1823,7 +1868,16 @@ var actions8 = usersSlice.actions;
1823
1868
  var usersSlice_default = usersSlice.reducer;
1824
1869
 
1825
1870
  // src/actions.ts
1826
- var actions_default = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, actions), actions2), actions3), actions4), actions5), actions6), actions7), actions8);
1871
+ var actions_default = {
1872
+ ...actions,
1873
+ ...actions2,
1874
+ ...actions3,
1875
+ ...actions4,
1876
+ ...actions5,
1877
+ ...actions6,
1878
+ ...actions7,
1879
+ ...actions8
1880
+ };
1827
1881
 
1828
1882
  // src/api/general-api.ts
1829
1883
  var import_axios = __toESM(require("axios"));
@@ -1834,18 +1888,17 @@ var cookies = new import_universal_cookie.default();
1834
1888
  var emptySession = Object.freeze({ token: "", exiresAt: void 0 });
1835
1889
  var tokenCache = "";
1836
1890
  var getSessionInfo = () => {
1837
- var _a, _b2;
1838
- let sessionInfo = __spreadValues({}, emptySession);
1891
+ let sessionInfo = { ...emptySession };
1839
1892
  try {
1840
- sessionInfo = JSON.parse((_a = window.localStorage.getItem("JWT")) != null ? _a : "");
1841
- } catch (e) {
1893
+ sessionInfo = JSON.parse(window.localStorage.getItem("JWT") ?? "");
1894
+ } catch {
1842
1895
  }
1843
1896
  if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < /* @__PURE__ */ new Date()) {
1844
1897
  cleanUp();
1845
- return __spreadValues({}, emptySession);
1898
+ return { ...emptySession };
1846
1899
  }
1847
1900
  if (!sessionInfo.token) {
1848
- let jwtTokenFromCookie = (_b2 = cookies.get("JWT", { doNotParse: true })) != null ? _b2 : "";
1901
+ let jwtTokenFromCookie = cookies.get("JWT", { doNotParse: true }) ?? "";
1849
1902
  if (jwtTokenFromCookie) {
1850
1903
  setSessionInfo({ token: jwtTokenFromCookie, undefined: void 0 });
1851
1904
  sessionInfo.token = jwtTokenFromCookie;
@@ -1872,8 +1925,7 @@ var cleanUp = () => {
1872
1925
 
1873
1926
  // src/api/general-api.ts
1874
1927
  var unauthorizedRedirect = (error) => {
1875
- var _a;
1876
- if (!(0, import_axios.isCancel)(error) && ((_a = error.response) == null ? void 0 : _a.status) === 401 && getToken()) {
1928
+ if (!(0, import_axios.isCancel)(error) && error.response?.status === 401 && getToken()) {
1877
1929
  cleanUp();
1878
1930
  window.location.replace("/ui/");
1879
1931
  }
@@ -1883,7 +1935,7 @@ var commonRequestConfig = { timeout: TIMEOUTS.refreshDefault, headers: { "Conten
1883
1935
  var authenticatedRequest = import_axios.default.create(commonRequestConfig);
1884
1936
  authenticatedRequest.interceptors.response.use((res) => res, unauthorizedRedirect);
1885
1937
  authenticatedRequest.interceptors.request.use(
1886
- (config) => __spreadProps(__spreadValues({}, config), { headers: __spreadProps(__spreadValues({}, config.headers), { Authorization: `Bearer ${getToken()}` }) }),
1938
+ (config) => ({ ...config, headers: { ...config.headers, Authorization: `Bearer ${getToken()}` } }),
1887
1939
  (error) => Promise.reject(error)
1888
1940
  );
1889
1941
  var Api = {
@@ -1891,7 +1943,7 @@ var Api = {
1891
1943
  delete: (url, data) => authenticatedRequest.request({ method: "delete", url, data }),
1892
1944
  patch: authenticatedRequest.patch,
1893
1945
  post: authenticatedRequest.post,
1894
- postUnauthorized: (url, data, config = {}) => import_axios.default.post(url, data, __spreadValues(__spreadValues({}, commonRequestConfig), config)),
1946
+ postUnauthorized: (url, data, config = {}) => import_axios.default.post(url, data, { ...commonRequestConfig, ...config }),
1895
1947
  put: authenticatedRequest.put,
1896
1948
  upload: (url, formData, progress, cancelSignal) => authenticatedRequest.post(url, formData, {
1897
1949
  headers: { "Content-Type": "multipart/form-data" },
@@ -1922,10 +1974,7 @@ var getSearchState = (state) => state.app.searchState;
1922
1974
  var getSearchedDevices = (0, import_toolkit9.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
1923
1975
  var getVersionInformation = (0, import_toolkit9.createSelector)(
1924
1976
  [getFullVersionInformation, getFeatures],
1925
- (_a, { isHosted }) => {
1926
- var _b2 = _a, { Integration } = _b2, remainder = __objRest(_b2, ["Integration"]);
1927
- return isHosted && Integration !== "next" ? remainder : __spreadProps(__spreadValues({}, remainder), { Integration });
1928
- }
1977
+ ({ Integration, ...remainder }, { isHosted }) => isHosted && Integration !== "next" ? remainder : { ...remainder, Integration }
1929
1978
  );
1930
1979
  var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration }) => (0, import_helpers2.versionCompare)(Integration, "next") > -1);
1931
1980
 
@@ -1942,8 +1991,7 @@ var getDeploymentsSelectionState = (state) => state.deployments.selectionState;
1942
1991
  var getMappedDeploymentSelection = (0, import_toolkit10.createSelector)(
1943
1992
  [getDeploymentsSelectionState, (_, deploymentsState) => deploymentsState, getDeploymentsById],
1944
1993
  (selectionState, deploymentsState, deploymentsById) => {
1945
- var _a;
1946
- const { selection = [] } = (_a = selectionState[deploymentsState]) != null ? _a : {};
1994
+ const { selection = [] } = selectionState[deploymentsState] ?? {};
1947
1995
  return selection.reduce((accu, id) => {
1948
1996
  if (deploymentsById[id]) {
1949
1997
  accu.push(deploymentsById[id]);
@@ -1986,7 +2034,8 @@ var getListedDevices = (state) => state.devices.deviceList.deviceIds;
1986
2034
  var getFilteringAttributes = (state) => state.devices.filteringAttributes;
1987
2035
  var getDeviceFilters = (state) => state.devices.filters || [];
1988
2036
  var getFilteringAttributesFromConfig = (state) => state.devices.filteringAttributesConfig.attributes;
1989
- var getSortedFilteringAttributes = (0, import_toolkit11.createSelector)([getFilteringAttributes], (filteringAttributes) => __spreadProps(__spreadValues({}, filteringAttributes), {
2037
+ var getSortedFilteringAttributes = (0, import_toolkit11.createSelector)([getFilteringAttributes], (filteringAttributes) => ({
2038
+ ...filteringAttributes,
1990
2039
  identityAttributes: [...filteringAttributes.identityAttributes, "id"]
1991
2040
  }));
1992
2041
  var getDeviceLimit = (state) => state.devices.limit;
@@ -2014,10 +2063,7 @@ var getDeviceCountsByStatus = (0, import_toolkit11.createSelector)(
2014
2063
  return accu;
2015
2064
  }, {})
2016
2065
  );
2017
- var getDeviceById = (0, import_toolkit11.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => {
2018
- var _a;
2019
- return (_a = devicesById[deviceId]) != null ? _a : {};
2020
- });
2066
+ var getDeviceById = (0, import_toolkit11.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => devicesById[deviceId] ?? {});
2021
2067
  var getSelectedGroupInfo = (0, import_toolkit11.createSelector)(
2022
2068
  [getAcceptedDevices, getGroupsById, getSelectedGroup],
2023
2069
  ({ total: acceptedDeviceTotal }, groupsById, selectedGroup) => {
@@ -2034,17 +2080,13 @@ var getLimitMaxed = (0, import_toolkit11.createSelector)(
2034
2080
  [getAcceptedDevices, getDeviceLimit],
2035
2081
  ({ total: acceptedDevices = 0 }, deviceLimit) => Boolean(deviceLimit && deviceLimit <= acceptedDevices)
2036
2082
  );
2037
- var _b;
2038
- var getGroupsByIdWithoutUngrouped = (0, import_toolkit11.createSelector)([getGroupsById], (_a) => {
2039
- var _c = _a, { [_b = UNGROUPED_GROUP.id]: ungrouped } = _c, groups = __objRest(_c, [__restKey(_b)]);
2040
- return groups;
2041
- });
2083
+ var getGroupsByIdWithoutUngrouped = (0, import_toolkit11.createSelector)([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);
2042
2084
  var getGroups = (0, import_toolkit11.createSelector)([getGroupsById], (groupsById) => {
2043
2085
  const groupNames = Object.keys(groupsById).sort();
2044
2086
  const groupedGroups = Object.entries(groupsById).sort((a, b) => a[0].localeCompare(b[0])).reduce(
2045
2087
  (accu, [groupname, group]) => {
2046
2088
  const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;
2047
- const groupItem = __spreadProps(__spreadValues({}, group), { groupId: name, name: groupname });
2089
+ const groupItem = { ...group, groupId: name, name: groupname };
2048
2090
  if (group.filters.length > 0) {
2049
2091
  if (groupname !== UNGROUPED_GROUP.id) {
2050
2092
  accu.dynamic.push(groupItem);
@@ -2058,7 +2100,7 @@ var getGroups = (0, import_toolkit11.createSelector)([getGroupsById], (groupsByI
2058
2100
  },
2059
2101
  { dynamic: [], static: [], ungrouped: [] }
2060
2102
  );
2061
- return __spreadValues({ groupNames }, groupedGroups);
2103
+ return { groupNames, ...groupedGroups };
2062
2104
  });
2063
2105
  var getAttributesList = (0, import_toolkit11.createSelector)(
2064
2106
  [getFilteringAttributes, getFilteringAttributesFromConfig],
@@ -2096,10 +2138,7 @@ var getWebhookEvents = (state) => state.organization.webhooks.events;
2096
2138
  var getWebhookEventTotal = (state) => state.organization.webhooks.eventTotal;
2097
2139
  var getDeviceTwinIntegrations = (0, import_toolkit12.createSelector)(
2098
2140
  [getExternalIntegrations],
2099
- (integrations) => integrations.filter((integration) => {
2100
- var _a;
2101
- return integration.id && ((_a = EXTERNAL_PROVIDER[integration.provider]) == null ? void 0 : _a.deviceTwin);
2102
- })
2141
+ (integrations) => integrations.filter((integration) => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)
2103
2142
  );
2104
2143
  var getIsServiceProvider = (state) => state.organization.organization.service_provider;
2105
2144
  var getWebhooks = (0, import_toolkit12.createSelector)(
@@ -2133,25 +2172,21 @@ var filterProcessors = {
2133
2172
  var filterAliases = {
2134
2173
  $nexists: { alias: DEVICE_FILTERING_OPTIONS.$exists.key, value: false }
2135
2174
  };
2136
- var mapFiltersToTerms = (filters) => filters.map((filter) => {
2137
- var _a;
2138
- return {
2139
- scope: filter.scope,
2140
- attribute: filter.key,
2141
- type: ((_a = filterAliases[filter.operator]) == null ? void 0 : _a.alias) || filter.operator,
2142
- value: filterProcessors.hasOwnProperty(filter.operator) ? filterProcessors[filter.operator](filter.value) : filter.value
2143
- };
2144
- });
2175
+ var mapFiltersToTerms = (filters) => filters.map((filter) => ({
2176
+ scope: filter.scope,
2177
+ attribute: filter.key,
2178
+ type: filterAliases[filter.operator]?.alias || filter.operator,
2179
+ value: filterProcessors.hasOwnProperty(filter.operator) ? filterProcessors[filter.operator](filter.value) : filter.value
2180
+ }));
2145
2181
  var convertIssueOptionsToFilters = (issuesSelection, filtersState = {}) => issuesSelection.map((item) => {
2146
2182
  if (typeof DEVICE_ISSUE_OPTIONS[item].filterRule.value === "function") {
2147
- return __spreadProps(__spreadValues({}, DEVICE_ISSUE_OPTIONS[item].filterRule), { value: DEVICE_ISSUE_OPTIONS[item].filterRule.value(filtersState) });
2183
+ return { ...DEVICE_ISSUE_OPTIONS[item].filterRule, value: DEVICE_ISSUE_OPTIONS[item].filterRule.value(filtersState) };
2148
2184
  }
2149
2185
  return DEVICE_ISSUE_OPTIONS[item].filterRule;
2150
2186
  });
2151
2187
  var convertDeviceListStateToFilters = ({ filters = [], group, groups = { byId: {} }, offlineThreshold, selectedIssues = [], status }) => {
2152
- var _a;
2153
2188
  let applicableFilters = [...filters];
2154
- if (typeof group === "string" && !(((_a = groups.byId[group]) == null ? void 0 : _a.filters) || applicableFilters).length) {
2189
+ if (typeof group === "string" && !(groups.byId[group]?.filters || applicableFilters).length) {
2155
2190
  applicableFilters.push({ key: "group", value: group, operator: DEVICE_FILTERING_OPTIONS.$eq.key, scope: "system" });
2156
2191
  }
2157
2192
  const nonMonitorFilters = applicableFilters.filter(
@@ -2167,12 +2202,12 @@ var convertDeviceListStateToFilters = ({ filters = [], group, groups = { byId: {
2167
2202
  var listItemMapper = (byId, ids, { defaultObject = {}, cutOffSize = DEVICE_LIST_MAXIMUM_LENGTH }) => {
2168
2203
  return ids.slice(0, cutOffSize).reduce((accu, id) => {
2169
2204
  if (id && byId[id]) {
2170
- accu.push(__spreadValues(__spreadValues({}, defaultObject), byId[id]));
2205
+ accu.push({ ...defaultObject, ...byId[id] });
2171
2206
  }
2172
2207
  return accu;
2173
2208
  }, []);
2174
2209
  };
2175
- var mergePermissions = (existingPermissions = __spreadValues({}, emptyUiPermissions), addedPermissions) => Object.entries(existingPermissions).reduce(
2210
+ var mergePermissions = (existingPermissions = { ...emptyUiPermissions }, addedPermissions) => Object.entries(existingPermissions).reduce(
2176
2211
  (accu, [key, value]) => {
2177
2212
  let values;
2178
2213
  if (!accu[key]) {
@@ -2182,12 +2217,12 @@ var mergePermissions = (existingPermissions = __spreadValues({}, emptyUiPermissi
2182
2217
  if (Array.isArray(value)) {
2183
2218
  values = [...value, ...accu[key]].filter(import_helpers4.duplicateFilter);
2184
2219
  } else {
2185
- values = mergePermissions(accu[key], __spreadValues({}, value));
2220
+ values = mergePermissions(accu[key], { ...value });
2186
2221
  }
2187
2222
  accu[key] = values;
2188
2223
  return accu;
2189
2224
  },
2190
- __spreadValues({}, addedPermissions)
2225
+ { ...addedPermissions }
2191
2226
  );
2192
2227
  var mapUserRolesToUiPermissions = (userRoles, roles) => userRoles.reduce(
2193
2228
  (accu, roleId) => {
@@ -2196,16 +2231,13 @@ var mapUserRolesToUiPermissions = (userRoles, roles) => userRoles.reduce(
2196
2231
  }
2197
2232
  return mergePermissions(accu, roles[roleId].uiPermissions);
2198
2233
  },
2199
- __spreadValues({}, emptyUiPermissions)
2234
+ { ...emptyUiPermissions }
2200
2235
  );
2201
- var extractErrorMessage = (err, fallback = "") => {
2202
- var _a, _b2, _c, _d, _e;
2203
- return ((_c = (_b2 = (_a = err.response) == null ? void 0 : _a.data) == null ? void 0 : _b2.error) == null ? void 0 : _c.message) || ((_e = (_d = err.response) == null ? void 0 : _d.data) == null ? void 0 : _e.error) || err.error || err.message || fallback;
2204
- };
2236
+ var extractErrorMessage = (err, fallback = "") => err.response?.data?.error?.message || err.response?.data?.error || err.error || err.message || fallback;
2205
2237
  var preformatWithRequestID = (res, failMsg) => {
2206
2238
  if (failMsg.length > 100) failMsg = `${failMsg.substring(0, 220)}...`;
2207
2239
  try {
2208
- if ((res == null ? void 0 : res.data) && Object.keys(res.data).includes("request_id")) {
2240
+ if (res?.data && Object.keys(res.data).includes("request_id")) {
2209
2241
  let shortRequestUUID = res.data["request_id"].substring(0, 8);
2210
2242
  return `${failMsg} [Request ID: ${shortRequestUUID}]`;
2211
2243
  }
@@ -2225,15 +2257,12 @@ var getReleaseListState = (state) => state.releases.releasesList;
2225
2257
  var getListedReleases = (state) => state.releases.releasesList.releaseIds;
2226
2258
  var getReleaseMappingDefaults = () => ({});
2227
2259
  var getReleasesList = (0, import_toolkit13.createSelector)([getReleasesById, getListedReleases, getReleaseMappingDefaults], listItemMapper);
2228
- var getReleaseTagsById = (0, import_toolkit13.createSelector)([getReleaseTags], (releaseTags) => releaseTags.reduce((accu, key) => __spreadProps(__spreadValues({}, accu), { [key]: key }), {}));
2260
+ var getReleaseTagsById = (0, import_toolkit13.createSelector)([getReleaseTags], (releaseTags) => releaseTags.reduce((accu, key) => ({ ...accu, [key]: key }), {}));
2229
2261
  var getHasReleases = (0, import_toolkit13.createSelector)(
2230
2262
  [getReleaseListState, getReleasesById],
2231
2263
  ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal)
2232
2264
  );
2233
- var getSelectedRelease = (0, import_toolkit13.createSelector)([getReleasesById, getSelectedReleaseId], (byId, id) => {
2234
- var _a;
2235
- return (_a = byId[id]) != null ? _a : {};
2236
- });
2265
+ var getSelectedRelease = (0, import_toolkit13.createSelector)([getReleasesById, getSelectedReleaseId], (byId, id) => byId[id] ?? {});
2237
2266
 
2238
2267
  // src/usersSlice/selectors.ts
2239
2268
  var import_toolkit14 = require("@reduxjs/toolkit");
@@ -2242,10 +2271,7 @@ var getTooltipsById = (state) => state.users.tooltips.byId;
2242
2271
  var getGlobalSettings = (state) => state.users.globalSettings;
2243
2272
  var getCurrentUserId = (state) => state.users.currentUser;
2244
2273
  var getUsersById = (state) => state.users.byId;
2245
- var getCurrentUser = (0, import_toolkit14.createSelector)([getUsersById, getCurrentUserId], (usersById, userId) => {
2246
- var _a;
2247
- return (_a = usersById[userId]) != null ? _a : {};
2248
- });
2274
+ var getCurrentUser = (0, import_toolkit14.createSelector)([getUsersById, getCurrentUserId], (usersById, userId) => usersById[userId] ?? {});
2249
2275
  var getUserSettings = (state) => state.users.userSettings;
2250
2276
  var getIsDarkMode = (0, import_toolkit14.createSelector)([getUserSettings], ({ mode }) => isDarkMode(mode));
2251
2277
  var getShowHelptips = (0, import_toolkit14.createSelector)(
@@ -2256,22 +2282,22 @@ var getTooltipsState = (0, import_toolkit14.createSelector)(
2256
2282
  [getTooltipsById, getUserSettings],
2257
2283
  (byId, { tooltips = {} }) => Object.entries(byId).reduce(
2258
2284
  (accu, [id, value]) => {
2259
- accu[id] = __spreadValues(__spreadValues({}, accu[id]), value);
2285
+ accu[id] = { ...accu[id], ...value };
2260
2286
  return accu;
2261
2287
  },
2262
- __spreadValues({}, tooltips)
2288
+ { ...tooltips }
2263
2289
  )
2264
2290
  );
2265
2291
  var getHas2FA = (0, import_toolkit14.createSelector)(
2266
2292
  [getCurrentUser],
2267
2293
  (currentUser) => currentUser.hasOwnProperty("tfa_status") && currentUser.tfa_status === twoFAStates.enabled
2268
2294
  );
2269
- var getIdAttribute = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ id_attribute = __spreadValues({}, defaultIdAttribute) }) => id_attribute);
2295
+ var getIdAttribute = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ id_attribute = { ...defaultIdAttribute } }) => id_attribute);
2270
2296
  var getOfflineThresholdSettings = (0, import_toolkit14.createSelector)([getGlobalSettings], ({ offlineThreshold }) => ({
2271
- interval: (offlineThreshold == null ? void 0 : offlineThreshold.interval) || DEVICE_ONLINE_CUTOFF.interval,
2272
- intervalUnit: (offlineThreshold == null ? void 0 : offlineThreshold.intervalUnit) || DEVICE_ONLINE_CUTOFF.intervalName
2297
+ interval: offlineThreshold?.interval || DEVICE_ONLINE_CUTOFF.interval,
2298
+ intervalUnit: offlineThreshold?.intervalUnit || DEVICE_ONLINE_CUTOFF.intervalName
2273
2299
  }));
2274
- var getRolesList = (0, import_toolkit14.createSelector)([getRolesById], (rolesById2) => Object.entries(rolesById2).map(([id, role]) => __spreadValues({ id }, role)));
2300
+ var getRolesList = (0, import_toolkit14.createSelector)([getRolesById], (rolesById2) => Object.entries(rolesById2).map(([id, role]) => ({ id, ...role })));
2275
2301
 
2276
2302
  // src/commonSelectors.ts
2277
2303
  var getIsEnterprise = (0, import_toolkit15.createSelector)(
@@ -2289,8 +2315,7 @@ var getSearchEndpoint = (0, import_toolkit15.createSelector)(
2289
2315
  var getUserRoles = (0, import_toolkit15.createSelector)(
2290
2316
  [getCurrentUser, getRolesById, getIsEnterprise, getFeatures, getOrganization],
2291
2317
  (currentUser, rolesById2, isEnterprise, { isHosted, hasMultitenancy }, { plan = PLANS.os.id }) => {
2292
- var _a;
2293
- const isAdmin = ((_a = currentUser.roles) == null ? void 0 : _a.length) ? currentUser.roles.some((role) => role === rolesByName.admin) : !(hasMultitenancy || isEnterprise || isHosted && plan !== PLANS.os.id);
2318
+ const isAdmin = currentUser.roles?.length ? currentUser.roles.some((role) => role === rolesByName.admin) : !(hasMultitenancy || isEnterprise || isHosted && plan !== PLANS.os.id);
2294
2319
  const uiPermissions = isAdmin ? mapUserRolesToUiPermissions([rolesByName.admin], rolesById2) : mapUserRolesToUiPermissions(currentUser.roles || [], rolesById2);
2295
2320
  return { isAdmin, uiPermissions };
2296
2321
  }
@@ -2359,10 +2384,11 @@ var getFilterAttributes = (0, import_toolkit15.createSelector)(
2359
2384
  const deviceNameAttribute = { key: "name", value: "Name", scope: ATTRIBUTE_SCOPES.tags, category: ATTRIBUTE_SCOPES.tags, priority: 1 };
2360
2385
  const deviceIdAttribute = { key: "id", value: "Device ID", scope: ATTRIBUTE_SCOPES.identity, category: ATTRIBUTE_SCOPES.identity, priority: 1 };
2361
2386
  const checkInAttribute = { key: "check_in_time", value: "Latest activity", scope: ATTRIBUTE_SCOPES.system, category: ATTRIBUTE_SCOPES.system, priority: 4 };
2362
- const updateAttribute = __spreadProps(__spreadValues({}, checkInAttribute), { key: "updated_ts", value: "Last inventory update" });
2387
+ const updateAttribute = { ...checkInAttribute, key: "updated_ts", value: "Last inventory update" };
2363
2388
  const firstRequestAttribute = { key: "created_ts", value: "First request", scope: ATTRIBUTE_SCOPES.system, category: ATTRIBUTE_SCOPES.system, priority: 4 };
2364
2389
  const attributes = [
2365
- ...previousFilters.map((item) => __spreadProps(__spreadValues({}, item), {
2390
+ ...previousFilters.map((item) => ({
2391
+ ...item,
2366
2392
  value: deviceIdAttribute.key === item.key ? deviceIdAttribute.value : item.key,
2367
2393
  category: "recently used",
2368
2394
  priority: 0
@@ -2380,14 +2406,13 @@ var getFilterAttributes = (0, import_toolkit15.createSelector)(
2380
2406
  return (0, import_helpers5.attributeDuplicateFilter)(attributes, "key");
2381
2407
  }
2382
2408
  );
2383
- var getOnboardingState = (0, import_toolkit15.createSelector)([getOnboarding, getUserSettings], (_a, { onboarding = {} }) => {
2384
- var _b2 = _a, { complete, progress, showTips } = _b2, remainder = __objRest(_b2, ["complete", "progress", "showTips"]);
2385
- return __spreadProps(__spreadValues(__spreadValues({}, remainder), onboarding), {
2386
- complete: onboarding.complete || complete,
2387
- progress: Object.keys(onboardingSteps).findIndex((step) => step === progress) > Object.keys(onboardingSteps).findIndex((step) => step === onboarding.progress) ? progress : onboarding.progress,
2388
- showTips: !onboarding.showTips ? onboarding.showTips : showTips
2389
- });
2390
- });
2409
+ var getOnboardingState = (0, import_toolkit15.createSelector)([getOnboarding, getUserSettings], ({ complete, progress, showTips, ...remainder }, { onboarding = {} }) => ({
2410
+ ...remainder,
2411
+ ...onboarding,
2412
+ complete: onboarding.complete || complete,
2413
+ progress: Object.keys(onboardingSteps).findIndex((step) => step === progress) > Object.keys(onboardingSteps).findIndex((step) => step === onboarding.progress) ? progress : onboarding.progress,
2414
+ showTips: !onboarding.showTips ? onboarding.showTips : showTips
2415
+ }));
2391
2416
  var getDemoDeviceAddress = (0, import_toolkit15.createSelector)([getDevicesById, getOnboarding], (devicesById, { approach, demoArtifactPort }) => {
2392
2417
  const demoDeviceAddress = `http://${(0, import_helpers5.getDemoDeviceAddress)(Object.values(devicesById), approach)}`;
2393
2418
  return demoArtifactPort ? `${demoDeviceAddress}:${demoArtifactPort}` : demoDeviceAddress;
@@ -2408,12 +2433,11 @@ var getDeploymentRelease = (0, import_toolkit15.createSelector)(
2408
2433
  var getSelectedDeploymentData = (0, import_toolkit15.createSelector)(
2409
2434
  [getDeploymentsById, getDeploymentsSelectionState, getDevicesById, getSelectedDeploymentDeviceIds],
2410
2435
  (deploymentsById, { selectedId }, devicesById, selectedDeviceIds) => {
2411
- var _a;
2412
- const deployment = (_a = deploymentsById[selectedId]) != null ? _a : {};
2436
+ const deployment = deploymentsById[selectedId] ?? {};
2413
2437
  const { devices = {} } = deployment;
2414
2438
  return {
2415
2439
  deployment,
2416
- selectedDevices: selectedDeviceIds.map((deviceId) => __spreadValues(__spreadValues({}, devicesById[deviceId]), devices[deviceId]))
2440
+ selectedDevices: selectedDeviceIds.map((deviceId) => ({ ...devicesById[deviceId], ...devices[deviceId] }))
2417
2441
  };
2418
2442
  }
2419
2443
  );
@@ -2428,8 +2452,7 @@ var getAvailableIssueOptionsByType = (0, import_toolkit15.createSelector)(
2428
2452
  }, {})
2429
2453
  );
2430
2454
  var getGroupNames = (0, import_toolkit15.createSelector)([getGroupsById, getUserRoles, (_, options = {}) => options], (groupsById, { uiPermissions }, { staticOnly }) => {
2431
- var _a;
2432
- const _b2 = groupsById, { [_a = UNGROUPED_GROUP.id]: ungrouped } = _b2, groups = __objRest(_b2, [__restKey(_a)]);
2455
+ const { [UNGROUPED_GROUP.id]: ungrouped, ...groups } = groupsById;
2433
2456
  if (staticOnly) {
2434
2457
  return Object.keys(uiPermissions.groups).sort();
2435
2458
  }
@@ -2463,9 +2486,9 @@ var getAuditlogDevice = (0, import_toolkit15.createSelector)([getAuditLogEntry,
2463
2486
  if (auditlogEvent) {
2464
2487
  const { object = {} } = auditlogEvent;
2465
2488
  const { device = {}, id, type } = object;
2466
- auditlogDevice = type === "device" ? __spreadValues({ id }, device) : auditlogDevice;
2489
+ auditlogDevice = type === "device" ? { id, ...device } : auditlogDevice;
2467
2490
  }
2468
- return __spreadValues(__spreadValues({}, auditlogDevice), devicesById[auditlogDevice.id]);
2491
+ return { ...auditlogDevice, ...devicesById[auditlogDevice.id] };
2469
2492
  });
2470
2493
  var getRelevantRoles = (0, import_toolkit15.createSelector)([getOrganization, getRolesList], ({ service_provider }, roles) => {
2471
2494
  if (service_provider) {
@@ -2517,8 +2540,9 @@ var sessionReducer = (state, action) => {
2517
2540
  return rootReducer(state, action);
2518
2541
  };
2519
2542
  var getConfiguredStore = (options = {}) => {
2520
- const _a = options, { preloadedState = {} } = _a, config = __objRest(_a, ["preloadedState"]);
2521
- return (0, import_toolkit16.configureStore)(__spreadProps(__spreadValues({}, config), {
2543
+ const { preloadedState = {}, ...config } = options;
2544
+ return (0, import_toolkit16.configureStore)({
2545
+ ...config,
2522
2546
  preloadedState,
2523
2547
  reducer: sessionReducer,
2524
2548
  middleware: (getDefaultMiddleware) => getDefaultMiddleware({
@@ -2531,7 +2555,7 @@ var getConfiguredStore = (options = {}) => {
2531
2555
  ignoredPaths: ["app.uploadsById", "app.snackbar", "organization.externalDeviceIntegrations"]
2532
2556
  }
2533
2557
  })
2534
- }));
2558
+ });
2535
2559
  };
2536
2560
  var store = getConfiguredStore({
2537
2561
  preloadedState: {}
@@ -2543,7 +2567,7 @@ var { page: defaultPage, perPage: defaultPerPage } = DEVICE_LIST_DEFAULTS;
2543
2567
  var cutoffLength = 75;
2544
2568
  var ellipsis = "...";
2545
2569
  var longTextTrimmer = (text) => text.length >= cutoffLength + ellipsis.length ? `${text.substring(0, cutoffLength + ellipsis.length)}${ellipsis}` : text;
2546
- var sanitizeDeviceAlerts = (alerts) => alerts.map((alert) => __spreadProps(__spreadValues({}, alert), { fullName: alert.name, name: longTextTrimmer(alert.name) }));
2570
+ var sanitizeDeviceAlerts = (alerts) => alerts.map((alert) => ({ ...alert, fullName: alert.name, name: longTextTrimmer(alert.name) }));
2547
2571
  var getDeviceAlerts = (0, import_toolkit17.createAsyncThunk)(`${sliceName4}/getDeviceAlerts`, ({ id, config = {} }, { dispatch }) => {
2548
2572
  const { page = defaultPage, perPage = defaultPerPage, issuedBefore, issuedAfter, sortAscending = false } = config;
2549
2573
  const issued_after = issuedAfter ? `&issued_after=${issuedAfter}` : "";
@@ -2561,14 +2585,15 @@ var getLatestDeviceAlerts = (0, import_toolkit17.createAsyncThunk)(`${sliceName4
2561
2585
  });
2562
2586
  var getIssueCountsByType2 = (0, import_toolkit17.createAsyncThunk)(`${sliceName4}/getIssueCountsByType`, ({ type, options = {} }, { dispatch, getState }) => {
2563
2587
  const state = getState();
2564
- const _a = options, { filters = getDeviceFilters(state), group, status } = _a, remainder = __objRest(_a, ["filters", "group", "status"]);
2565
- const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters(__spreadProps(__spreadValues({}, remainder), {
2588
+ const { filters = getDeviceFilters(state), group, status, ...remainder } = options;
2589
+ const { applicableFilters: nonMonitorFilters, filterTerms } = convertDeviceListStateToFilters({
2590
+ ...remainder,
2566
2591
  filters,
2567
2592
  group,
2568
2593
  offlineThreshold: state.app.offlineThreshold,
2569
2594
  selectedIssues: [type],
2570
2595
  status
2571
- }));
2596
+ });
2572
2597
  return general_api_default.post(getSearchEndpoint(getState()), {
2573
2598
  page: 1,
2574
2599
  per_page: 1,
@@ -2598,12 +2623,4 @@ var changeNotificationSetting = (0, import_toolkit17.createAsyncThunk)(
2598
2623
  );
2599
2624
  }
2600
2625
  );
2601
- // Annotate the CommonJS export names for ESM import in node:
2602
- 0 && (module.exports = {
2603
- changeNotificationSetting,
2604
- getDeviceAlerts,
2605
- getDeviceMonitorConfig,
2606
- getIssueCountsByType,
2607
- getLatestDeviceAlerts
2608
- });
2609
2626
  //# sourceMappingURL=thunks.js.map