@deviceinsight/ng-ui-scale-lib 10.1.0 → 10.1.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 (41) hide show
  1. package/dist/{AccessEditModal-CnvV9j7q.js → AccessEditModal--CrrHDx-.js} +2 -2
  2. package/dist/{AccessEditModal-CnvV9j7q.js.map → AccessEditModal--CrrHDx-.js.map} +1 -1
  3. package/dist/{BundleManagementContainer-CRd22PtW.js → BundleManagementContainer-pF44tpPR.js} +2 -2
  4. package/dist/{BundleManagementContainer-CRd22PtW.js.map → BundleManagementContainer-pF44tpPR.js.map} +1 -1
  5. package/dist/{BundlesContainer-yr5oJ705.js → BundlesContainer-CZ70n2vt.js} +3 -3
  6. package/dist/{BundlesContainer-yr5oJ705.js.map → BundlesContainer-CZ70n2vt.js.map} +1 -1
  7. package/dist/{DatapointImport-DAG3e9eC.js → DatapointImport-D5MqlPlb.js} +2 -2
  8. package/dist/{DatapointImport-DAG3e9eC.js.map → DatapointImport-D5MqlPlb.js.map} +1 -1
  9. package/dist/{FileUploadInput-GgXFKm0F.js → FileUploadInput-gnfjNZsT.js} +2 -2
  10. package/dist/{FileUploadInput-GgXFKm0F.js.map → FileUploadInput-gnfjNZsT.js.map} +1 -1
  11. package/dist/{Files-C-FiDJiX.js → Files-B7r5BhB0.js} +3 -3
  12. package/dist/{Files-C-FiDJiX.js.map → Files-B7r5BhB0.js.map} +1 -1
  13. package/dist/{GlobalPowerBiReports-BuZsiUUM.js → GlobalPowerBiReports-BFCqFXrG.js} +2 -2
  14. package/dist/{GlobalPowerBiReports-BuZsiUUM.js.map → GlobalPowerBiReports-BFCqFXrG.js.map} +1 -1
  15. package/dist/{JsonSettingWidget-jwMuKSVT.js → JsonSettingWidget-Dmoshz7m.js} +2 -2
  16. package/dist/{JsonSettingWidget-jwMuKSVT.js.map → JsonSettingWidget-Dmoshz7m.js.map} +1 -1
  17. package/dist/{LicensesEditPage-guXC0rd6.js → LicensesEditPage-C8vTjupQ.js} +2 -2
  18. package/dist/{LicensesEditPage-guXC0rd6.js.map → LicensesEditPage-C8vTjupQ.js.map} +1 -1
  19. package/dist/{LicensesList-CmmYRZli.js → LicensesList-yByygj9U.js} +2 -2
  20. package/dist/{LicensesList-CmmYRZli.js.map → LicensesList-yByygj9U.js.map} +1 -1
  21. package/dist/{PropertiesEditPage-B6JSRWou.js → PropertiesEditPage-W9i-93un.js} +2 -2
  22. package/dist/{PropertiesEditPage-B6JSRWou.js.map → PropertiesEditPage-W9i-93un.js.map} +1 -1
  23. package/dist/{PropertiesList-DKLeVsON.js → PropertiesList-BoqIna7m.js} +2 -2
  24. package/dist/{PropertiesList-DKLeVsON.js.map → PropertiesList-BoqIna7m.js.map} +1 -1
  25. package/dist/{TemplateEditPage-CXhoyakG.js → TemplateEditPage-D9OFIKqk.js} +4 -4
  26. package/dist/{TemplateEditPage-CXhoyakG.js.map → TemplateEditPage-D9OFIKqk.js.map} +1 -1
  27. package/dist/{TemplateTextInput-BlZRQNFD.js → TemplateTextInput-prp5cWrV.js} +2 -2
  28. package/dist/{TemplateTextInput-BlZRQNFD.js.map → TemplateTextInput-prp5cWrV.js.map} +1 -1
  29. package/dist/{TemplatesListPage--mHG95Pd.js → TemplatesListPage-7VM9CVDI.js} +3 -3
  30. package/dist/{TemplatesListPage--mHG95Pd.js.map → TemplatesListPage-7VM9CVDI.js.map} +1 -1
  31. package/dist/{UserGroupAssignments-CAtKY05Y.js → UserGroupAssignments-Ce4pvexW.js} +2 -2
  32. package/dist/{UserGroupAssignments-CAtKY05Y.js.map → UserGroupAssignments-Ce4pvexW.js.map} +1 -1
  33. package/dist/{UserGroupTheme-CWaXzqj6.js → UserGroupTheme-CXQyYGco.js} +2 -2
  34. package/dist/{UserGroupTheme-CWaXzqj6.js.map → UserGroupTheme-CXQyYGco.js.map} +1 -1
  35. package/dist/api.d.ts +1 -0
  36. package/dist/api.js +2 -2
  37. package/dist/index.js +1 -1
  38. package/dist/{setTitle-GGyiO7zI.js → setTitle-DZyXA3i8.js} +169 -163
  39. package/dist/setTitle-DZyXA3i8.js.map +1 -0
  40. package/package.json +61 -61
  41. package/dist/setTitle-GGyiO7zI.js.map +0 -1
@@ -5,14 +5,14 @@ import zA from "i18next-http-backend";
5
5
  import { messageBoxError as H, messageBoxSuccess as de, RouteLink as Fe, DateInput as Rp, SelectWithSearch as Je, SelectWithSearchAsync as fs, Reactable as Di, nanoid10 as pt, ContentHeader as le, messageBoxDismissGroup as st, ReactableWithClientSidePagination as Re, Chart as WA, Slider as ea, MultiMenu as Mn, MultiMenuItem as dt, GridColorPicker as Rn, ColorPicker as ms, ImageUpload as Op, uuidV4 as at, PeriodPicker as Es, SvgImage as HA, GradientColorPicker as ta, InfoBox as wi, validateSvg as qA, getSvgElement as jA, FileUpload as _l, getMutableNodeList as ZA, DateTimeInput as YA, RouteTabs as Ni, messageBoxInfo as QA, messageBoxWarn as XA, withPrompt as JA, Pagination as eb } from "@deviceinsight/ng-ui-components";
6
6
  import { Bubble as ve, Modal as ge, Button as N, SpinnerContainer as ne, Icon as W, Label as Ue, Checkbox as be, Popup as Ii, Spinner as ke, Accordion as Pi, AccordionItem as dn, ButtonRow as Ge, Tabs as Ds, useConfirm as St, withConfirm as kp } from "@deviceinsight/ng-ui-basic-components";
7
7
  import { useTranslation as tb, Trans as on } from "react-i18next";
8
- import { omit as Ze, isEqual as $e, memoize as yn, isEmpty as _n, partition as nb, cloneDeep as da, camelCase as ua, uniqBy as ha, uniq as pa, debounce as Yt, flatten as Kn, difference as Gp, sortBy as Rl, flatMap as Ol, merge as fa, differenceWith as ld, groupBy as ws, startCase as ro, range as kl, update as cd, xor as sb, set as Hs, orderBy as Lp, lowerCase as dd, capitalize as ab } from "lodash";
8
+ import { omit as Ze, isEqual as $e, memoize as yn, isEmpty as _n, partition as nb, cloneDeep as da, camelCase as ua, uniqBy as ha, uniq as pa, debounce as Qt, flatten as Kn, difference as Gp, sortBy as Rl, flatMap as Ol, merge as fa, differenceWith as ld, groupBy as ws, startCase as ro, range as kl, update as cd, xor as sb, set as Hs, orderBy as Lp, lowerCase as dd, capitalize as ab } from "lodash";
9
9
  import On from "i18next";
10
10
  import { useLocation as nt, Link as ce, Prompt as Ot, useHistory as Se, Redirect as _i, withRouter as ma, Switch as ib, Route as ud, useParams as Ns, MemoryRouter as rb } from "react-router-dom";
11
11
  import Mt, { isAxiosError as ob } from "axios";
12
- import { useForm as je, Controller as te, useController as Jt, useFormContext as Ee, FormProvider as Tt, useFieldArray as Up, useWatch as lb } from "react-hook-form";
12
+ import { useForm as je, Controller as te, useController as en, useFormContext as Ee, FormProvider as Tt, useFieldArray as Up, useWatch as lb } from "react-hook-form";
13
13
  import ie from "classnames";
14
14
  import * as Pt from "@deviceinsight/ng-ui-api-client";
15
- import { readAzureB2cConfiguration as xp, setAxios as Vp, refreshToken as cb, revokeAccessToken as db, revokeRefreshToken as ub, deleteStartPage as hb, checkStartPage as pb, readStartPage as fb, writeStartPage as mb, fetchRoleByIds as Gl, searchAssetGroups as Bt, fetchAssetGroupById as Bn, writeAdvancedSearchDefaultProperties as gb, readAdvancedSearchDefaultProperties as yb, fetchShadowKeys as Ab, fetchAssetsByUrn as Mp, searchUsers as Ri, searchUserGroups as en, searchAssets as An, getAncestorGroups as Fn, fetchAssetGroups as Ll, updateAssetGroupDryRun as bb, createAssetGroupDryRun as vb, createAssetGroup as Sb, fetchDatapointsByAssetId as Tb, readAccountGroupObjectBasedOnMembership as Kp, writeAccountGroupObject as Bp, readAssetDefinitionObject as ss, readAssetGroupObject as Gt, readAssetObject as kn, readTenantObject as gs, deleteAssetDefinitionObject as Fp, deleteAssetGroupObject as na, deleteAssetObject as Ul, deleteTenantObject as $p, writeAssetDefinitionObject as zp, writeAssetGroupObject as sa, writeAssetObject as xl, writeTenantObject as Ys, fetchAggregation as Cb, fetchRoles as Vl, fetchAuthoritiesOfRole as Eb, createRoleWithLicense as Db, createRole as wb, setAuthoritiesOfRole as hd, updateRole as Nb, deleteRole as Ib, fetchUsers as Pb, fetchAssetDefinition as Oi, queryLastDatapointsValue as _b, queryDatapointValues as Wp, fetchAssets as Ml, fetchAssetWithShadowById as Is, searchAssetsByGeoBoundingBox as pd, getDatapointValuesByQueryId as Rb, DataTypeToAdxDistinctDatapointType as Ob, getStructuredDatapointPropertyNodes as kb, getStructuredDatapointDistinctValues as Gb, getDatapointValuesByFilters as Lb, fetchAssetDefinitions as Hp, fetchAssetByUrn as Kl, unassignAssetsByIdsDryRun as Ub, unassignAssetsByIds as xb, unassignAssetsByQueryDryRun as Vb, unassignAssetsByQuery as Mb, assignAssetsByQueryDryRun as Kb, assignAssetsByQuery as Bb, assignAssetsByIdsDryRun as Fb, assignAssetsByIds as $b, searchGateways as zb, getAssetGroupHierarchies as Wb, updateAssetGroup as Hb, fetchGrantedAccessesForAssetGroup as qb, fetchUserGroupById as ga, deleteAssetGroup as jb, deleteAssetGroupDryRun as Zb, updateAssetGroupIdsDryRun as Yb, createAssetDryRun as Qb, createAsset as Xb, fetchGatewayById as fd, fetchGroupsByIds as ni, fetchUnits as qp, updateDatapointThresholds as Jb, updateDatapointUnit as e0, addUnit as jp, createDatapoint as t0, deleteDatapoint as n0, fetchAssetGroupDefinitions as s0, assignGateway as a0, unassignGateway as i0, updateAsset as r0, updateAssetGroupIds as o0, deleteAsset as Zp, readAccountObject as Yp, writeAccountObject as oo, searchAssetsByProperty as l0, fetchLicenses as c0, fetchAuthorities as d0, readAccountGroupObject as u0, deleteAccountGroupObject as h0, readUIConfigurations as p0, writeUIConfigurations as f0, updateAssetDefinition as m0, createAssetDefinition as g0, deleteAssetDefinitionDatapoint as y0, createAssetDefinitionDatapoints as A0, updateAssetDefinitionDatapoint as b0, deleteAssetDefinition as v0, updateAssetGroupDefinition as S0, createAssetGroupDefinition as T0, deleteAssetGroupDefinition as C0, fetchAuditLogDifferences as E0, fetchUserByAccountNumber as Qp, fetchAuditLogEntities as D0, fetchAuthorizationServers as w0, fetchAuthorizationServerRules as N0, deleteAuthorizationServerRule as I0, deleteAuthorizationServer as P0, createOrUpdateAuthorizationServer as Xp, createOrUpdateAuthorizationServerRule as Jp, fetchAuthorizationServerRule as _0, readEULA as ef, readEULAList as Bl, deleteEULA as R0, writeEULA as O0, readReleaseNotesSubscription as k0, readShowUserDocumentation as G0, updateUser as L0, updateUserGroupsOfUser as U0, updateRolesOfUser as tf, updateMe as x0, triggerEmailChange as V0, triggerPasswordReset as M0, delete2FADevice as nf, deleteMyAccount as K0, writeReleaseNotesSubscription as B0, writeShowUserDocumentation as F0, writeReleaseNotesVersionsViewed as $0, fetchUserGroups as z0, createUserGroup as W0, updateRoleIdsOfUserGroup as sf, fetchAccesses as H0, fetchGrantedAccesses as q0, fetchAccountGroupAccesses as j0, assignUsersToUserGroupByIds as Z0, assignUsersToUserGroupByQuery as Y0, unassignUsersFromUserGroupByIds as Q0, unassignUsersFromUserGroupByQuery as X0, deleteUserGroup as J0, updateUserGroup as ev, addAccess as tv, deleteAccess as nv, addAccountGroupAccess as sv, deleteAccountGroupAccess as av, deleteGrantedAccess as iv, updateGrantedAccess as rv, createGrantedAccess as ov, createUser as lv, inviteUser as cv, deleteUser as dv, sendUx4iotGrantRequestToEndpoint as uv } from "@deviceinsight/ng-ui-api-client";
15
+ import { readAzureB2cConfiguration as xp, setAxios as Vp, refreshToken as cb, revokeAccessToken as db, revokeRefreshToken as ub, deleteStartPage as hb, checkStartPage as pb, readStartPage as fb, writeStartPage as mb, fetchRoleByIds as Gl, searchAssetGroups as Bt, fetchAssetGroupById as Bn, writeAdvancedSearchDefaultProperties as gb, readAdvancedSearchDefaultProperties as yb, fetchShadowKeys as Ab, fetchAssetsByUrn as Mp, searchUsers as Ri, searchUserGroups as tn, searchAssets as An, getAncestorGroups as Fn, fetchAssetGroups as Ll, updateAssetGroupDryRun as bb, createAssetGroupDryRun as vb, createAssetGroup as Sb, fetchDatapointsByAssetId as Tb, readAccountGroupObjectBasedOnMembership as Kp, writeAccountGroupObject as Bp, readAssetDefinitionObject as ss, readAssetGroupObject as Gt, readAssetObject as kn, readTenantObject as gs, deleteAssetDefinitionObject as Fp, deleteAssetGroupObject as na, deleteAssetObject as Ul, deleteTenantObject as $p, writeAssetDefinitionObject as zp, writeAssetGroupObject as sa, writeAssetObject as xl, writeTenantObject as Ys, fetchAggregation as Cb, fetchRoles as Vl, fetchAuthoritiesOfRole as Eb, createRoleWithLicense as Db, createRole as wb, setAuthoritiesOfRole as hd, updateRole as Nb, deleteRole as Ib, fetchUsers as Pb, fetchAssetDefinition as Oi, queryLastDatapointsValue as _b, queryDatapointValues as Wp, fetchAssets as Ml, fetchAssetWithShadowById as Is, searchAssetsByGeoBoundingBox as pd, getDatapointValuesByQueryId as Rb, DataTypeToAdxDistinctDatapointType as Ob, getStructuredDatapointPropertyNodes as kb, getStructuredDatapointDistinctValues as Gb, getDatapointValuesByFilters as Lb, fetchAssetDefinitions as Hp, fetchAssetByUrn as Kl, unassignAssetsByIdsDryRun as Ub, unassignAssetsByIds as xb, unassignAssetsByQueryDryRun as Vb, unassignAssetsByQuery as Mb, assignAssetsByQueryDryRun as Kb, assignAssetsByQuery as Bb, assignAssetsByIdsDryRun as Fb, assignAssetsByIds as $b, searchGateways as zb, getAssetGroupHierarchies as Wb, updateAssetGroup as Hb, fetchGrantedAccessesForAssetGroup as qb, fetchUserGroupById as ga, deleteAssetGroup as jb, deleteAssetGroupDryRun as Zb, updateAssetGroupIdsDryRun as Yb, createAssetDryRun as Qb, createAsset as Xb, fetchGatewayById as fd, fetchGroupsByIds as ni, fetchUnits as qp, updateDatapointThresholds as Jb, updateDatapointUnit as e0, addUnit as jp, createDatapoint as t0, deleteDatapoint as n0, fetchAssetGroupDefinitions as s0, assignGateway as a0, unassignGateway as i0, updateAsset as r0, updateAssetGroupIds as o0, deleteAsset as Zp, readAccountObject as Yp, writeAccountObject as oo, searchAssetsByProperty as l0, fetchLicenses as c0, fetchAuthorities as d0, readAccountGroupObject as u0, deleteAccountGroupObject as h0, readUIConfigurations as p0, writeUIConfigurations as f0, updateAssetDefinition as m0, createAssetDefinition as g0, deleteAssetDefinitionDatapoint as y0, createAssetDefinitionDatapoints as A0, updateAssetDefinitionDatapoint as b0, deleteAssetDefinition as v0, updateAssetGroupDefinition as S0, createAssetGroupDefinition as T0, deleteAssetGroupDefinition as C0, fetchAuditLogDifferences as E0, fetchUserByAccountNumber as Qp, fetchAuditLogEntities as D0, fetchAuthorizationServers as w0, fetchAuthorizationServerRules as N0, deleteAuthorizationServerRule as I0, deleteAuthorizationServer as P0, createOrUpdateAuthorizationServer as Xp, createOrUpdateAuthorizationServerRule as Jp, fetchAuthorizationServerRule as _0, readEULA as ef, readEULAList as Bl, deleteEULA as R0, writeEULA as O0, readReleaseNotesSubscription as k0, readShowUserDocumentation as G0, updateUser as L0, updateUserGroupsOfUser as U0, updateRolesOfUser as tf, updateMe as x0, triggerEmailChange as V0, triggerPasswordReset as M0, delete2FADevice as nf, deleteMyAccount as K0, writeReleaseNotesSubscription as B0, writeShowUserDocumentation as F0, writeReleaseNotesVersionsViewed as $0, fetchUserGroups as z0, createUserGroup as W0, updateRoleIdsOfUserGroup as sf, fetchAccesses as H0, fetchGrantedAccesses as q0, fetchAccountGroupAccesses as j0, assignUsersToUserGroupByIds as Z0, assignUsersToUserGroupByQuery as Y0, unassignUsersFromUserGroupByIds as Q0, unassignUsersFromUserGroupByQuery as X0, deleteUserGroup as J0, updateUserGroup as ev, addAccess as tv, deleteAccess as nv, addAccountGroupAccess as sv, deleteAccountGroupAccess as av, deleteGrantedAccess as iv, updateGrantedAccess as rv, createGrantedAccess as ov, createUser as lv, inviteUser as cv, deleteUser as dv, sendUx4iotGrantRequestToEndpoint as uv } from "@deviceinsight/ng-ui-api-client";
16
16
  import { zodResolver as $n } from "@hookform/resolvers/zod";
17
17
  import J from "dayjs";
18
18
  import yt from "keyboardjs";
@@ -316,7 +316,7 @@ const jv = 64, Zv = (e, t = jv) => {
316
316
  if (!t || !t.length)
317
317
  throw Error(`Tenant UI Configuration: missing env variable '${e}'`);
318
318
  return t;
319
- }, Af = "#1a8ed3", e1 = "48.137154,11.576124", rn = (e) => typeof e == "boolean" ? e : e ? !!JSON.parse(e) : !1, Ka = (e, t, s) => {
319
+ }, Af = "#1a8ed3", e1 = "48.137154,11.576124", qt = (e) => typeof e == "boolean" ? e : e ? !!JSON.parse(e) : !1, Ka = (e, t, s) => {
320
320
  if (t != null) {
321
321
  const a = parseInt(t, 10);
322
322
  return isNaN(a) ? (console.error(
@@ -377,7 +377,7 @@ class t1 {
377
377
  return Q("REACT_APP_TENANT_CONFIG_URL");
378
378
  }
379
379
  isTenantShowingAssetQRCodes() {
380
- return !rn(Q("REACT_APP_HIDE_ASSET_QR_CODE"));
380
+ return !qt(Q("REACT_APP_HIDE_ASSET_QR_CODE"));
381
381
  }
382
382
  getTenant() {
383
383
  return ct("REACT_APP_TENANT");
@@ -416,7 +416,7 @@ class t1 {
416
416
  return t === "TERMS_ACCEPTANCE_PENDING" || t === "ACTIVE" ? t : "ACTIVE";
417
417
  }
418
418
  isPubSubStompDebuggingEnabled() {
419
- return rn(Q("REACT_APP_PUBSUB_STOMP_DEBUGGING"));
419
+ return qt(Q("REACT_APP_PUBSUB_STOMP_DEBUGGING"));
420
420
  }
421
421
  getMainLocizeProject() {
422
422
  return {
@@ -446,7 +446,7 @@ class t1 {
446
446
  return Ka(t, s, 5e3);
447
447
  }
448
448
  hasLegalPages() {
449
- return rn(Q("REACT_APP_LEGAL_PAGES"));
449
+ return qt(Q("REACT_APP_LEGAL_PAGES"));
450
450
  }
451
451
  getAppFooter() {
452
452
  return Q("REACT_APP_FOOTER");
@@ -494,6 +494,9 @@ class t1 {
494
494
  `Tenant UI Configuration: The minimum value for ${t} is ${i}, using default value ${a}!`
495
495
  ), a) : o;
496
496
  }
497
+ getTrendPreferOutliers() {
498
+ return qt(Q("REACT_APP_TREND_PREFER_OUTLIERS") ?? !1);
499
+ }
497
500
  getAccountCreationPrinciple() {
498
501
  const t = Q("REACT_APP_ACCOUNT_CREATION_PRINCIPLE");
499
502
  switch (t) {
@@ -554,7 +557,7 @@ class t1 {
554
557
  return a < 1 ? 20 : a;
555
558
  }
556
559
  getDisplayWelcomeScreen() {
557
- return rn(Q("REACT_APP_DISPLAY_WELCOME_SCREEN"));
560
+ return qt(Q("REACT_APP_DISPLAY_WELCOME_SCREEN"));
558
561
  }
559
562
  getGitCommitShaShort() {
560
563
  return Q("REACT_APP_COMMIT_SHORT_SHA");
@@ -583,13 +586,13 @@ class t1 {
583
586
  }
584
587
  }
585
588
  isFavoritesEnabled() {
586
- return rn(Q("REACT_APP_FAVORITES_ENABLED") ?? !0);
589
+ return qt(Q("REACT_APP_FAVORITES_ENABLED") ?? !0);
587
590
  }
588
591
  isHistoryEnabled() {
589
- return rn(Q("REACT_APP_HISTORY_ENABLED") ?? !0);
592
+ return qt(Q("REACT_APP_HISTORY_ENABLED") ?? !0);
590
593
  }
591
594
  isDatapointValuesUseAdx() {
592
- return rn(Q("REACT_APP_DATAPOINT_VALUES_USE_ADX") ?? !1);
595
+ return qt(Q("REACT_APP_DATAPOINT_VALUES_USE_ADX") ?? !1);
593
596
  }
594
597
  getDashboardLabels() {
595
598
  return Q("REACT_APP_DASHBOARD_LABELS") ?? [];
@@ -598,7 +601,7 @@ class t1 {
598
601
  return Q("REACT_APP_DEFAULT_DASHBOARD_LABEL");
599
602
  }
600
603
  isReleaseNotesHidden() {
601
- return rn(Q("REACT_APP_HIDE_RELEASE_NOTES") ?? !1);
604
+ return qt(Q("REACT_APP_HIDE_RELEASE_NOTES") ?? !1);
602
605
  }
603
606
  getDefaultSearchMode() {
604
607
  return Q("READ_APP_DEFAULT_SEARCH_MODE") || "full";
@@ -858,7 +861,7 @@ function s1(e) {
858
861
  return e.displayName || e.name || // @ts-expect-error
859
862
  (typeof e == "string" && e.length > 0 ? e : "Unknown");
860
863
  }
861
- function tn(e) {
864
+ function nn(e) {
862
865
  return function(s) {
863
866
  const a = (i) => {
864
867
  const { t: r, i18n: o, ready: l } = G(e), c = { ...i, t: r, i18n: o, tReady: l };
@@ -904,7 +907,7 @@ function a1() {
904
907
  throw new Error("inixAxiosMsal: globalClientId not properly initialized!");
905
908
  return uo;
906
909
  }
907
- const i1 = "10.1.0", r1 = {
910
+ const i1 = "10.1.1", r1 = {
908
911
  version: i1
909
912
  }, o1 = () => is().PROD, g$ = () => r1.version, l1 = [
910
913
  /\/v2\/oauth\/token$/,
@@ -1504,7 +1507,7 @@ const J1 = ({ pathname: e, custom: t, t: s }) => {
1504
1507
  }
1505
1508
  const c = window.nguiCiModeActive, d = /* @__PURE__ */ n(W, { documentation: !0, large: !0 });
1506
1509
  return c ? /* @__PURE__ */ n(ve, { content: "documentation:" + r, children: /* @__PURE__ */ n(N, { naked: !0, disabled: !0, "data-testid": "documentation-button", children: d }) }) : s(o, { defaultValue: "UNKNOWN" }) !== "UNKNOWN" ? /* @__PURE__ */ n(N, { naked: !0, onClick: l, "data-testid": "documentation-button", children: d }) : null;
1507
- }, Et = tn()(J1), eS = ({ pathname: e }) => {
1510
+ }, Et = nn()(J1), eS = ({ pathname: e }) => {
1508
1511
  const { assetGroupDefinitions: t } = O(we);
1509
1512
  return _(() => {
1510
1513
  async function s() {
@@ -1806,7 +1809,7 @@ function ze({
1806
1809
  const c = Ze(r, ["data-testid"]);
1807
1810
  return /* @__PURE__ */ n(B, { ...c, children: /* @__PURE__ */ n("select", { ...r, onChange: l, ref: e, value: i ?? "", children: o() }) });
1808
1811
  }
1809
- const Qt = Pl((e, t) => {
1812
+ const Xt = Pl((e, t) => {
1810
1813
  const {
1811
1814
  value: s,
1812
1815
  onChange: a,
@@ -1865,7 +1868,7 @@ function aa(e) {
1865
1868
  Object.entries(e).map(([t, s]) => [hn(t), s])
1866
1869
  );
1867
1870
  }
1868
- function Xt(e) {
1871
+ function Jt(e) {
1869
1872
  return Object.fromEntries(
1870
1873
  Object.entries(e ?? {}).map(([t, s]) => [pS(t), s])
1871
1874
  );
@@ -1876,7 +1879,7 @@ const fS = (e, t) => e == null || typeof e == "number" && isNaN(e) ? t === "BOOL
1876
1879
  errors: { properties: r }
1877
1880
  },
1878
1881
  field: { value: o, onChange: l, onBlur: c }
1879
- } = Jt({ name: `properties.${hn(e)}` }), { t: d } = G(), u = hn(e);
1882
+ } = en({ name: `properties.${hn(e)}` }), { t: d } = G(), u = hn(e);
1880
1883
  return {
1881
1884
  label: d(Be(e), { defaultValue: e }),
1882
1885
  onChange: l,
@@ -1916,7 +1919,7 @@ const fS = (e, t) => e == null || typeof e == "number" && isNaN(e) ? t === "BOOL
1916
1919
  case "GEO":
1917
1920
  return /* @__PURE__ */ n(Zl, { ...s });
1918
1921
  case "BOOLEAN":
1919
- return /* @__PURE__ */ n(Qt, { ...s, size: "full-width" });
1922
+ return /* @__PURE__ */ n(Xt, { ...s, size: "full-width" });
1920
1923
  default:
1921
1924
  throw Error(`property type ${e.type} not supported`);
1922
1925
  }
@@ -1977,7 +1980,7 @@ const vS = (e, t, s, a) => {
1977
1980
  case "DATE":
1978
1981
  return xe(e, { format: "L" });
1979
1982
  case "BOOLEAN":
1980
- return /* @__PURE__ */ n(Qt, { disabled: !0, value: e, onChange: () => {
1983
+ return /* @__PURE__ */ n(Xt, { disabled: !0, value: e, onChange: () => {
1981
1984
  } });
1982
1985
  default:
1983
1986
  throw Error(`property type ${t.type} not supported`);
@@ -2694,7 +2697,7 @@ function qS({ property: e, label: t, onDelete: s, onChange: a }) {
2694
2697
  )
2695
2698
  ] });
2696
2699
  }
2697
- const jS = tn()(qS), Xl = {};
2700
+ const jS = nn()(qS), Xl = {};
2698
2701
  function Jl(e, t) {
2699
2702
  Xl[e] = t;
2700
2703
  }
@@ -3843,7 +3846,7 @@ function Xd({
3843
3846
  },
3844
3847
  [s, c]
3845
3848
  ), { pathname: Y } = nt(), ue = F(() => Y.endsWith("/list") || Y.endsWith("/map"), [Y]), re = F(
3846
- () => Yt((ye, Xe) => {
3849
+ () => Qt((ye, Xe) => {
3847
3850
  ue && q(ye, Xe);
3848
3851
  }, 500),
3849
3852
  [q, ue]
@@ -4382,7 +4385,7 @@ const jT = (e) => e.target.tagName && ["INPUT", "SELECT", "TEXTAREA"].includes(e
4382
4385
  };
4383
4386
  class YT extends x.Component {
4384
4387
  constructor() {
4385
- super(...arguments), this.state = { hasFocus: !1, suggestionsQuery: "", isEnterEnabled: !0 }, this.keyboardEventEmitter = new rf(), this.setSuggestionsQuery = Yt((t, s) => {
4388
+ super(...arguments), this.state = { hasFocus: !1, suggestionsQuery: "", isEnterEnabled: !0 }, this.keyboardEventEmitter = new rf(), this.setSuggestionsQuery = Qt((t, s) => {
4386
4389
  this.setState({
4387
4390
  suggestionsQuery: s === "assets" ? ac(t) : t
4388
4391
  });
@@ -4451,7 +4454,7 @@ class YT extends x.Component {
4451
4454
  ] });
4452
4455
  }
4453
4456
  }
4454
- const QT = tn()(YT);
4457
+ const QT = nn()(YT);
4455
4458
  class XT extends x.Component {
4456
4459
  constructor() {
4457
4460
  super(...arguments), this.state = {
@@ -4580,7 +4583,7 @@ class XT extends x.Component {
4580
4583
  return this.renderSearch(this.handleChangeQuery, this.handleSubmitQuery);
4581
4584
  }
4582
4585
  }
4583
- const rc = tn()(
4586
+ const rc = nn()(
4584
4587
  Kf(XT)
4585
4588
  ), JT = /* @__PURE__ */ f(
4586
4589
  "div",
@@ -4664,7 +4667,7 @@ let ot = class extends tt {
4664
4667
  isSearching: !1
4665
4668
  });
4666
4669
  });
4667
- }, this.handleChangeQuery = Yt((s) => {
4670
+ }, this.handleChangeQuery = Qt((s) => {
4668
4671
  const i = { ...this.state.paginationSettings, page: 0 };
4669
4672
  this.setState(
4670
4673
  {
@@ -4956,7 +4959,7 @@ const $i = (e, t, s) => (a) => e(
4956
4959
  number: 0,
4957
4960
  sort: []
4958
4961
  };
4959
- }, dC = $i(Bt, "id"), uC = $i(en, "id");
4962
+ }, dC = $i(Bt, "id"), uC = $i(tn, "id");
4960
4963
  function hC(e) {
4961
4964
  return wa(e, "number", oC);
4962
4965
  }
@@ -5144,7 +5147,7 @@ const Tn = async (e, t) => {
5144
5147
  function vC({ onChange: e, disabled: t }) {
5145
5148
  const { assetGroupDefinitions: s } = O(we), {
5146
5149
  field: { value: a, onChange: i, onBlur: r }
5147
- } = Jt({
5150
+ } = en({
5148
5151
  name: "definitionId"
5149
5152
  });
5150
5153
  return /* @__PURE__ */ n(
@@ -5323,8 +5326,8 @@ const GC = (e, t, s) => {
5323
5326
  if (s && !$e(i, a)) {
5324
5327
  const p = {
5325
5328
  ...a,
5326
- properties: Xt(a.properties ?? {}),
5327
- staticProperties: Xt(a.staticProperties ?? {})
5329
+ properties: Jt(a.properties ?? {}),
5330
+ staticProperties: Jt(a.staticProperties ?? {})
5328
5331
  }, m = e ? () => bb({ id: e, ...p }) : () => vb(p);
5329
5332
  d(!0), m().then(() => {
5330
5333
  r(a), l(void 0), d(!1);
@@ -5352,8 +5355,8 @@ const GC = (e, t, s) => {
5352
5355
  staticProperties: aa(e.staticProperties)
5353
5356
  }), nm = (e) => ({
5354
5357
  ...e,
5355
- properties: Xt(e.properties),
5356
- staticProperties: Xt(e.staticProperties)
5358
+ properties: Jt(e.properties),
5359
+ staticProperties: Jt(e.staticProperties)
5357
5360
  }), sm = ({ editedAssetGroup: e, onSubmit: t, onCancel: s }) => {
5358
5361
  const { assetGroupDefinitions: a } = O(we), i = a[0], { assetGroupProperties: r } = Ne(), [o, l] = b(!1), [c, d] = b(e?.definitionId), u = OC(c), p = e ? UC(e) : LC(i), m = je({
5359
5362
  resolver: $n(u),
@@ -5783,15 +5786,15 @@ const FC = async (e) => {
5783
5786
  function Na() {
5784
5787
  return Lt() ? Df(wd) : cm(wd);
5785
5788
  }
5786
- const oi = "----", jt = {}, xn = {}, dm = /* @__PURE__ */ new Set(), Ia = (e, t, s) => {
5787
- jt[t] = e, s && (xn[t] = s);
5789
+ const oi = "----", Zt = {}, xn = {}, dm = /* @__PURE__ */ new Set(), Ia = (e, t, s) => {
5790
+ Zt[t] = e, s && (xn[t] = s);
5788
5791
  }, zC = (e, t, s) => {
5789
- jt[t] = jt[e], xn[t] = s;
5792
+ Zt[t] = Zt[e], xn[t] = s;
5790
5793
  }, Wi = (e) => {
5791
- const t = jt[e];
5792
- t && (delete jt[e], delete xn[e], Object.values(jt).includes(t) || URL.revokeObjectURL(t), dm.add(e));
5793
- }, um = (e) => jt[e] && !xn[e], Hi = async (e, t, s, a) => {
5794
- const i = jt[e];
5794
+ const t = Zt[e];
5795
+ t && (delete Zt[e], delete xn[e], Object.values(Zt).includes(t) || URL.revokeObjectURL(t), dm.add(e));
5796
+ }, um = (e) => Zt[e] && !xn[e], Hi = async (e, t, s, a) => {
5797
+ const i = Zt[e];
5795
5798
  if (!i && !dm.has(e)) {
5796
5799
  let r, o;
5797
5800
  const l = e.split("/").pop(), c = "images?meta=true";
@@ -5864,7 +5867,7 @@ const oi = "----", jt = {}, xn = {}, dm = /* @__PURE__ */ new Set(), Ia = (e, t,
5864
5867
  return t.data;
5865
5868
  }, qC = (e, t) => {
5866
5869
  const s = Na(), a = t.map(async ({ dashboard: { shared: i, assetGroupId: r }, imagePath: o }) => {
5867
- const l = await WC(jt[o]), { contentType: c, name: d, context: u } = xn[o], p = {
5870
+ const l = await WC(Zt[o]), { contentType: c, name: d, context: u } = xn[o], p = {
5868
5871
  "X-Blob-Meta-Filename": encodeURIComponent(`${u}${oi}${d}`),
5869
5872
  "Content-Type": c
5870
5873
  };
@@ -6346,7 +6349,7 @@ function hc() {
6346
6349
  }
6347
6350
  );
6348
6351
  }
6349
- class nn extends x.PureComponent {
6352
+ class sn extends x.PureComponent {
6350
6353
  render() {
6351
6354
  const { config: t, onChangeConfig: s, children: a } = this.props;
6352
6355
  return /* @__PURE__ */ f("div", { className: "field", children: [
@@ -6495,7 +6498,7 @@ const yE = async (e, t) => {
6495
6498
  return [];
6496
6499
  const t = pa(Ol(e, ({ accountGroupIds: a }) => a)), s = t.length ? `id:(${t.join(" OR ")})` : null;
6497
6500
  if (s) {
6498
- const { content: a } = await en(s, {
6501
+ const { content: a } = await tn(s, {
6499
6502
  page: 0,
6500
6503
  size: t.length,
6501
6504
  sort: {
@@ -6561,7 +6564,7 @@ const fc = async (e, t) => {
6561
6564
  }
6562
6565
  }), H$ = (e) => ({
6563
6566
  fields: Da,
6564
- search: en,
6567
+ search: tn,
6565
6568
  suggestions: {
6566
6569
  print: (t) => t.displayName || t.name,
6567
6570
  onAccept: e,
@@ -6893,7 +6896,7 @@ function GE({ config: e, onChangeConfig: t }) {
6893
6896
  } = Tm({
6894
6897
  config: e,
6895
6898
  onChangeConfig: t
6896
- }), [T, I] = b(o), [R, k] = b(s), U = F(() => Yt(E, 500), [E]), M = F(() => Yt(w, 500), [w]);
6899
+ }), [T, I] = b(o), [R, k] = b(s), U = F(() => Qt(E, 500), [E]), M = F(() => Qt(w, 500), [w]);
6897
6900
  function K(re) {
6898
6901
  k(re), U(re);
6899
6902
  }
@@ -7037,7 +7040,7 @@ const LE = ({ config: e, onChangeConfig: t, context: s }) => {
7037
7040
  r && o === "number" ? d("pie") : !r && o !== "number" && d("number");
7038
7041
  }, [o, r, d]), /* @__PURE__ */ f("div", { className: "di aggregation-widget-config", children: [
7039
7042
  /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ f("div", { className: "fields", children: [
7040
- /* @__PURE__ */ n(nn, { config: e, onChangeConfig: t }),
7043
+ /* @__PURE__ */ n(sn, { config: e, onChangeConfig: t }),
7041
7044
  /* @__PURE__ */ n("div", { className: "field", children: /* @__PURE__ */ f("div", { className: "standard wide field", children: [
7042
7045
  /* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.aggregation.legend", children: "Small text under value" }) }),
7043
7046
  /* @__PURE__ */ n("input", { type: "text", value: i, onChange: (p) => c(p.target.value) })
@@ -7778,7 +7781,7 @@ function lD({
7778
7781
  };
7779
7782
  return /* @__PURE__ */ f("div", { className: "di table form", children: [
7780
7783
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
7781
- /* @__PURE__ */ n(nn, { config: e, onChangeConfig: t }),
7784
+ /* @__PURE__ */ n(sn, { config: e, onChangeConfig: t }),
7782
7785
  /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(
7783
7786
  B,
7784
7787
  {
@@ -7808,7 +7811,7 @@ function lD({
7808
7811
  )
7809
7812
  ] });
7810
7813
  }
7811
- function sn(e, t) {
7814
+ function an(e, t) {
7812
7815
  const s = Sn(e.type !== "asset" && t ? [t] : []);
7813
7816
  return e.type === "asset" ? e.asset : t ? s[t] : null;
7814
7817
  }
@@ -8096,7 +8099,7 @@ function gD(e) {
8096
8099
  ), console.error("Can't fetch datapoint values", t);
8097
8100
  };
8098
8101
  }
8099
- function an() {
8102
+ function rn() {
8100
8103
  const { t: e } = G();
8101
8104
  return F(() => gD(e), [e]);
8102
8105
  }
@@ -8177,31 +8180,33 @@ function km(e) {
8177
8180
  function TD(e, t) {
8178
8181
  return e ? `${e ? Math.ceil((t.tsEnd - t.tsStart) / (e * 1e3)) : void 0}s` : void 0;
8179
8182
  }
8180
- async function Pu(e, t, s, a, i) {
8181
- const r = km(t), o = Object.entries(r), l = TD(a, s), c = await Promise.allSettled(
8182
- o.map(
8183
- ([p, m]) => Wp(
8183
+ async function Pu(e, t, s, a, i, r) {
8184
+ const o = km(t), l = Object.entries(o), c = TD(a, s), d = !1, u = await Promise.allSettled(
8185
+ l.map(
8186
+ ([g, y]) => Wp(
8184
8187
  e,
8185
- m,
8186
- p,
8188
+ y,
8189
+ g,
8187
8190
  s.tsStart,
8188
8191
  s.tsEnd,
8189
- l
8192
+ c,
8193
+ d,
8194
+ i
8190
8195
  )
8191
8196
  )
8192
- ), d = [], u = new Map(t.map(({ name: p }) => [p, []]));
8193
- if (c.forEach((p, m) => {
8194
- p.status === "rejected" ? o[m][1].forEach((g) => {
8195
- d.push({ assetUrn: e, dpName: g, reason: p.reason });
8196
- }) : p.value.asset.datapoints.forEach(({ name: g, values: y }) => {
8197
- u.set(
8198
- g,
8199
- y.map(([A, v]) => [new Date(A).valueOf(), v])
8197
+ ), p = [], m = new Map(t.map(({ name: g }) => [g, []]));
8198
+ if (u.forEach((g, y) => {
8199
+ g.status === "rejected" ? l[y][1].forEach((A) => {
8200
+ p.push({ assetUrn: e, dpName: A, reason: g.reason });
8201
+ }) : g.value.asset.datapoints.forEach(({ name: A, values: v }) => {
8202
+ m.set(
8203
+ A,
8204
+ v.map(([S, C]) => [new Date(S).valueOf(), C])
8200
8205
  );
8201
8206
  });
8202
- }), d.length)
8203
- throw i(d), Error(`Fetching datapoint values for asset ${e} failed`);
8204
- return u;
8207
+ }), p.length)
8208
+ throw r(p), Error(`Fetching datapoint values for asset ${e} failed`);
8209
+ return m;
8205
8210
  }
8206
8211
  const CD = 1e3 * 60 * 60 * 24 * 365;
8207
8212
  async function ED(e, t, s, a) {
@@ -8224,10 +8229,11 @@ async function ED(e, t, s, a) {
8224
8229
  return c;
8225
8230
  }
8226
8231
  function vc(e) {
8232
+ const t = $.getTrendPreferOutliers();
8227
8233
  return {
8228
- fetchValues: (t, s, a) => Pu(t, s, a, void 0, e),
8229
- fetchSamples: (t, s, a, i) => Pu(t, s, i, a, e),
8230
- fetchLastValues: (t, s, a) => ED(t, s, a, e)
8234
+ fetchValues: (s, a, i) => Pu(s, a, i, void 0, t, e),
8235
+ fetchSamples: (s, a, i, r) => Pu(s, a, r, i, t, e),
8236
+ fetchLastValues: (s, a, i) => ED(s, a, i, e)
8231
8237
  };
8232
8238
  }
8233
8239
  const qs = () => {
@@ -8432,7 +8438,7 @@ function OD({ config: e, datapoints: t, asset: s, large: a, showAxisLabel: i })
8432
8438
  r,
8433
8439
  o,
8434
8440
  d?.datatype === "datapoint" ? d?.key : null
8435
- ].filter(Z), m = an(), g = Hn(
8441
+ ].filter(Z), m = rn(), g = Hn(
8436
8442
  s ? p.map((P) => t.find((E) => E.name === P)).filter(Z).map((P) => ({
8437
8443
  assetUrn: s.urn,
8438
8444
  dpName: P.name,
@@ -8502,7 +8508,7 @@ function GD(e) {
8502
8508
  }
8503
8509
  const Ro = "SMALL", Oo = "LARGE";
8504
8510
  function LD({ context: e, config: t, config: { title: s } }) {
8505
- const { assetId: a, tabsConfig: i, bulletSize: r, showAxisLabel: o } = GD(t.settings), l = sn(e, a), { datapoints: c, fetching: d } = Wt(l?.urn), p = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? c;
8511
+ const { assetId: a, tabsConfig: i, bulletSize: r, showAxisLabel: o } = GD(t.settings), l = an(e, a), { datapoints: c, fetching: d } = Wt(l?.urn), p = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? c;
8506
8512
  return /* @__PURE__ */ n(ne, { show: d, children: /* @__PURE__ */ f("div", { className: "dash-box barchart", children: [
8507
8513
  /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(bt, { linkToAsset: e.type === "assetGroup" ? l : null, title: s }) }),
8508
8514
  /* @__PURE__ */ n(
@@ -9135,7 +9141,7 @@ class ew extends x.Component {
9135
9141
  ] });
9136
9142
  }
9137
9143
  }
9138
- const mi = tn()(ew), tw = (e, t) => e ? typeof e == "string" ? e : t(e.id, { defaultValue: e.defaultValue }) : "", nr = ({ label: e, onClick: t, iconSrc: s, title: a, disabled: i, ...r }) => {
9144
+ const mi = nn()(ew), tw = (e, t) => e ? typeof e == "string" ? e : t(e.id, { defaultValue: e.defaultValue }) : "", nr = ({ label: e, onClick: t, iconSrc: s, title: a, disabled: i, ...r }) => {
9139
9145
  const o = !!e, { t: l } = G(), c = o ? "left" : "center", d = tw(a, l), u = e || /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.selectDatasource", children: "Select Data Source" }), p = e || l("general.actions.edit", {
9140
9146
  defaultValue: "Edit"
9141
9147
  });
@@ -9468,7 +9474,7 @@ function lw({
9468
9474
  }) {
9469
9475
  const i = kD(t, s), [r, o] = b(0), [l, c] = b(!1), [d, u] = b(!1), [p, m] = b(!1), [g, y] = b(!1), [A, v] = b(!1), [S, C] = b(!1), D = YD(t, s), {
9470
9476
  settings: { tabsConfig: w, assetId: P, bulletSize: E, showAxisLabel: T }
9471
- } = t, I = sn(e, P), { datapoints: R, fetching: k } = Wt(I?.urn), M = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? R, K = (Ce) => {
9477
+ } = t, I = an(e, P), { datapoints: R, fetching: k } = Wt(I?.urn), M = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? R, K = (Ce) => {
9472
9478
  l && (m(!0), y(!0)), u(!1), D.setSelectedAssetId(Ce.id);
9473
9479
  }, q = () => {
9474
9480
  l && (lt(), c(!1)), u(!1);
@@ -9549,7 +9555,7 @@ function lw({
9549
9555
  /* @__PURE__ */ f("div", { className: "di form", children: [
9550
9556
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
9551
9557
  /* @__PURE__ */ f("div", { className: "fields", children: [
9552
- /* @__PURE__ */ n(nn, { config: t, onChangeConfig: s }),
9558
+ /* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
9553
9559
  /* @__PURE__ */ f("div", { className: "field", children: [
9554
9560
  /* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.bulletsize.label", children: "Bullets size" }) }),
9555
9561
  /* @__PURE__ */ n(
@@ -9694,7 +9700,7 @@ function ku(e) {
9694
9700
  function hw(e, t) {
9695
9701
  const s = ft(), a = mt(), { t: i } = G(), { datapointsByUrn: r, fetchDatapointsForUrn: o } = O(Zi), l = t.type === "asset" ? t.asset : void 0, c = zn(l?.urn ? [] : ku(e)), d = Hn(
9696
9702
  cw(e, l?.urn),
9697
- an()
9703
+ rn()
9698
9704
  ), u = F(
9699
9705
  () => l ? [l.urn] : ku(e),
9700
9706
  [l, e]
@@ -10056,7 +10062,7 @@ function yw({
10056
10062
  ] });
10057
10063
  }
10058
10064
  return /* @__PURE__ */ f(ne, { show: A, children: [
10059
- /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(nn, { config: e, onChangeConfig: s }) }) }),
10065
+ /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(sn, { config: e, onChangeConfig: s }) }) }),
10060
10066
  /* @__PURE__ */ n(
10061
10067
  Ds,
10062
10068
  {
@@ -10181,7 +10187,7 @@ const Lo = {
10181
10187
  const i = Qi(e.datasource, a), r = Tc(
10182
10188
  i,
10183
10189
  t,
10184
- an()
10190
+ rn()
10185
10191
  ), o = vw(e, i, r), { t: l } = G();
10186
10192
  if (!o)
10187
10193
  return null;
@@ -10208,7 +10214,7 @@ function Tw({ context: e, config: t }) {
10208
10214
  const {
10209
10215
  title: s,
10210
10216
  settings: { items: a, isHorizontal: i, assetId: r }
10211
- } = Mm(t), o = sn(e, r), { datapoints: l, fetching: c } = Km(e, o);
10217
+ } = Mm(t), o = an(e, r), { datapoints: l, fetching: c } = Km(e, o);
10212
10218
  return /* @__PURE__ */ n(ne, { show: c, children: /* @__PURE__ */ f("div", { className: "dash-box io", children: [
10213
10219
  /* @__PURE__ */ n(bt, { linkToAsset: e.type === "assetGroup" ? o : void 0, title: s }),
10214
10220
  /* @__PURE__ */ n("div", { className: "dash-box-cont digitaliowidget", children: /* @__PURE__ */ n(
@@ -10457,7 +10463,7 @@ function Dw({
10457
10463
  }) {
10458
10464
  const i = Aw(t, s), {
10459
10465
  settings: { assetId: r, items: o, isHorizontal: l }
10460
- } = i, c = sn(e, r), { datapoints: d } = Km(e, c), { properties: u } = O(we), [p, m] = b(-1), g = z(
10466
+ } = i, c = an(e, r), { datapoints: d } = Km(e, c), { properties: u } = O(we), [p, m] = b(-1), g = z(
10461
10467
  (R) => {
10462
10468
  if (R.datatype !== "datapoint")
10463
10469
  return !0;
@@ -10525,7 +10531,7 @@ function Dw({
10525
10531
  /* @__PURE__ */ f("div", { className: "di form digitaliowidgetconfig", children: [
10526
10532
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
10527
10533
  /* @__PURE__ */ f("div", { className: "fields", children: [
10528
- /* @__PURE__ */ n(nn, { config: i, onChangeConfig: s }),
10534
+ /* @__PURE__ */ n(sn, { config: i, onChangeConfig: s }),
10529
10535
  /* @__PURE__ */ n(
10530
10536
  sr,
10531
10537
  {
@@ -10720,7 +10726,7 @@ const ww = 60, Fm = ({ value: e, min: t, max: s, color: a, unit: i, formattedVal
10720
10726
  } = e;
10721
10727
  l.update(r);
10722
10728
  }, [r, e]), null), Iw = Rm(Fm())(Nw);
10723
- function qt({ value: e, timestamp: t, unit: s, inlineUnit: a, timezone: i }) {
10729
+ function jt({ value: e, timestamp: t, unit: s, inlineUnit: a, timezone: i }) {
10724
10730
  return /* @__PURE__ */ f("div", { className: "val-container", children: [
10725
10731
  /* @__PURE__ */ f("div", { "data-testid": "dp-value", children: [
10726
10732
  e || "-",
@@ -10742,13 +10748,13 @@ function _w(e, {
10742
10748
  gaugeEnabled: l
10743
10749
  }, c, d, u, p) {
10744
10750
  if (!e)
10745
- return /* @__PURE__ */ n(qt, { timezone: p });
10751
+ return /* @__PURE__ */ n(jt, { timezone: p });
10746
10752
  if (c == null)
10747
- return /* @__PURE__ */ n(qt, { timezone: p });
10753
+ return /* @__PURE__ */ n(jt, { timezone: p });
10748
10754
  const m = l && o && !!d, g = o ? d : null;
10749
10755
  if (Pw(c))
10750
10756
  return /* @__PURE__ */ n(
10751
- qt,
10757
+ jt,
10752
10758
  {
10753
10759
  timezone: p,
10754
10760
  value: xi(c.latitude, c.longitude, u),
@@ -10761,7 +10767,7 @@ function _w(e, {
10761
10767
  if (Vn(e) || Rt(e)) {
10762
10768
  const y = i ? c * i : c;
10763
10769
  return /* @__PURE__ */ n(
10764
- qt,
10770
+ jt,
10765
10771
  {
10766
10772
  timezone: p,
10767
10773
  value: ra(y, t || 0, t || 0, !0),
@@ -10772,7 +10778,7 @@ function _w(e, {
10772
10778
  );
10773
10779
  } else
10774
10780
  return /* @__PURE__ */ n(
10775
- qt,
10781
+ jt,
10776
10782
  {
10777
10783
  timezone: p,
10778
10784
  value: ra(c, 0, 0, !0),
@@ -10783,7 +10789,7 @@ function _w(e, {
10783
10789
  );
10784
10790
  if (vt(e))
10785
10791
  return /* @__PURE__ */ n(
10786
- qt,
10792
+ jt,
10787
10793
  {
10788
10794
  timezone: p,
10789
10795
  value: c ? a || "true" : s || "false",
@@ -10796,7 +10802,7 @@ function _w(e, {
10796
10802
  const y = c.toString();
10797
10803
  return y.includes("\\n") || y.includes(`
10798
10804
  `) ? /* @__PURE__ */ n(
10799
- qt,
10805
+ jt,
10800
10806
  {
10801
10807
  timezone: p,
10802
10808
  value: /* @__PURE__ */ n("div", { className: "multiline", children: Kn(y.split("\\n").map((A) => A.split(`
@@ -10804,9 +10810,9 @@ function _w(e, {
10804
10810
  timestamp: g,
10805
10811
  inlineUnit: m
10806
10812
  }
10807
- ) : /* @__PURE__ */ n(qt, { value: y, timestamp: g, unit: r, timezone: p });
10813
+ ) : /* @__PURE__ */ n(jt, { value: y, timestamp: g, unit: r, timezone: p });
10808
10814
  }
10809
- return /* @__PURE__ */ n(qt, { timezone: p });
10815
+ return /* @__PURE__ */ n(jt, { timezone: p });
10810
10816
  }
10811
10817
  const $m = (e) => /^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e), Rw = (e, t) => e.match(new RegExp(`.{${t}}`, "g")), Ow = (e) => parseInt(e.repeat(2 / e.length), 16), kw = (e, t) => {
10812
10818
  if (typeof e < "u")
@@ -10846,7 +10852,7 @@ function Lw({ falseStatus: e, trueStatus: t, falseColor: s, trueColor: a }, i, r
10846
10852
  };
10847
10853
  }
10848
10854
  function Uw(e, { gaugeEnabled: t, gaugeMinDP: s, gaugeMaxDP: a, selectedAssetId: i }, r, o) {
10849
- const l = sn(e, i), c = t ? [s?.name, a?.name].filter(Z) : [], d = Hn(
10855
+ const l = an(e, i), c = t ? [s?.name, a?.name].filter(Z) : [], d = Hn(
10850
10856
  c.map((m) => {
10851
10857
  const g = r.find((y) => y.name === m);
10852
10858
  return g && l ? {
@@ -10860,7 +10866,7 @@ function Uw(e, { gaugeEnabled: t, gaugeMinDP: s, gaugeMaxDP: a, selectedAssetId:
10860
10866
  return { gaugeLiveMin: u, gaugeLiveMax: p };
10861
10867
  }
10862
10868
  function xw({ context: e, config: { title: t, settings: s } }) {
10863
- const a = an(), { selectedAssetId: i, datasource: r, timestampEnabled: o, unit: l, gaugeEnabled: c } = s, d = sn(e, i), { datapoints: u } = Wt(d?.urn), p = Qi(r, u), m = c && p && (Rt(p) || Vn(p)), { gaugeLiveMin: g, gaugeLiveMax: y } = Uw(e, s, u, a), A = Tc(p, d, a), { className: v, style: S } = Lw(s, p, A), { value: C, timestamp: D } = Gm(A), w = mt(), P = ft(), E = _w(p, s, C, D, w, P);
10869
+ const a = rn(), { selectedAssetId: i, datasource: r, timestampEnabled: o, unit: l, gaugeEnabled: c } = s, d = an(e, i), { datapoints: u } = Wt(d?.urn), p = Qi(r, u), m = c && p && (Rt(p) || Vn(p)), { gaugeLiveMin: g, gaugeLiveMax: y } = Uw(e, s, u, a), A = Tc(p, d, a), { className: v, style: S } = Lw(s, p, A), { value: C, timestamp: D } = Gm(A), w = mt(), P = ft(), E = _w(p, s, C, D, w, P);
10864
10870
  return /* @__PURE__ */ f("div", { className: `dash-box ${v}`, style: S, children: [
10865
10871
  /* @__PURE__ */ n(bt, { absolute: !0, linkToAsset: e.type === "assetGroup" ? d : null, title: t }),
10866
10872
  /* @__PURE__ */ n("div", { className: "dash-box-cont", children: m ? /* @__PURE__ */ f(L, { children: [
@@ -11135,7 +11141,7 @@ function Hw({ context: e, onChangeConfig: t, config: s }) {
11135
11141
  falseColor: K,
11136
11142
  falseStatus: q
11137
11143
  }
11138
- } = s, Y = sn(e, g), { datapoints: ue } = Wt(Y?.urn), re = e.type === "assetDefinition" ? e.assetDefinition.datapoints : ue, Ae = Qi(y, re), ae = (X) => {
11144
+ } = s, Y = an(e, g), { datapoints: ue } = Wt(Y?.urn), re = e.type === "assetDefinition" ? e.assetDefinition.datapoints : ue, Ae = Qi(y, re), ae = (X) => {
11139
11145
  t({ ...s, settings: { ...s.settings, ...X } });
11140
11146
  };
11141
11147
  return a ? /* @__PURE__ */ n(
@@ -11206,7 +11212,7 @@ function Hw({ context: e, onChangeConfig: t, config: s }) {
11206
11212
  ),
11207
11213
  /* @__PURE__ */ f("div", { className: "di form", children: [
11208
11214
  /* @__PURE__ */ n("h2", { className: "di header", children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
11209
- /* @__PURE__ */ n(nn, { config: s, onChangeConfig: t }),
11215
+ /* @__PURE__ */ n(sn, { config: s, onChangeConfig: t }),
11210
11216
  Ae && (Vn(Ae) || Rt(Ae)) && /* @__PURE__ */ f(L, { children: [
11211
11217
  /* @__PURE__ */ n(
11212
11218
  Vw,
@@ -11693,7 +11699,7 @@ class aN extends x.Component {
11693
11699
  ] });
11694
11700
  }
11695
11701
  }
11696
- const Hm = tn()(aN), Za = "white";
11702
+ const Hm = nn()(aN), Za = "white";
11697
11703
  function iN(e, t, s) {
11698
11704
  const [a, i] = b(!1), [r, o] = b(null);
11699
11705
  return _(() => {
@@ -11757,7 +11763,7 @@ function rN({ context: e, config: t, onChangeConfig: s, setApplyButtonDisabled:
11757
11763
  }
11758
11764
  return /* @__PURE__ */ f("div", { className: "di form asset-image-widget-config", children: [
11759
11765
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
11760
- /* @__PURE__ */ n(nn, { config: t, onChangeConfig: s }),
11766
+ /* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
11761
11767
  /* @__PURE__ */ f("div", { className: "fields", children: [
11762
11768
  /* @__PURE__ */ n("label", { className: "field", children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.image.link", children: "Link" }) }),
11763
11769
  /* @__PURE__ */ n(be, { value: u, onChange: p, type: "toggle", toggleSmall: !0 })
@@ -11994,7 +12000,7 @@ function uN({ item: e, itemIndex: t, onItemChange: s }) {
11994
12000
  ...a,
11995
12001
  children: [
11996
12002
  /* @__PURE__ */ n("td", { className: "customDragHandle", children: /* @__PURE__ */ n("span", { className: "handle", "data-testid": "drag-handle", ref: o, ...i, children: /* @__PURE__ */ n("span", { className: "symbol", children: "⋮⋮" }) }) }),
11997
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Qt, { value: e.visible, onChange: u }) }),
12003
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Xt, { value: e.visible, onChange: u }) }),
11998
12004
  /* @__PURE__ */ f("td", { children: [
11999
12005
  /* @__PURE__ */ n(h, { i18nKey: m.id, children: m.defaultValue }),
12000
12006
  e.type === "newAssets" && /* @__PURE__ */ n("select", { onChange: p, value: e.active, children: qm.map(({ value: g, trans: y }) => /* @__PURE__ */ n("option", { value: g, children: d(y.id, {
@@ -12861,13 +12867,13 @@ function UN(e, t) {
12861
12867
  google.maps.event.addListener(
12862
12868
  e,
12863
12869
  "click",
12864
- Yt(() => {
12870
+ Qt(() => {
12865
12871
  t();
12866
12872
  }, eg)
12867
12873
  );
12868
12874
  }
12869
12875
  function xN(e, t) {
12870
- const s = Yt(() => {
12876
+ const s = Qt(() => {
12871
12877
  const a = e.getBounds(), i = a.getNorthEast(), r = a.getSouthWest();
12872
12878
  t(`${i.lat()},${r.lng()}`, `${r.lat()},${i.lng()}`);
12873
12879
  }, eg);
@@ -13519,7 +13525,7 @@ function hI({
13519
13525
  cI
13520
13526
  ), m = a && u.length > zr, y = Hn(
13521
13527
  uI(a && !m, u),
13522
- an()
13528
+ rn()
13523
13529
  ), A = z(
13524
13530
  (E) => {
13525
13531
  const T = u.find(({ urn: I }) => I === E);
@@ -13791,7 +13797,7 @@ function Yu({
13791
13797
  }) {
13792
13798
  const { t: r } = G(), { period: o } = O(Bs), l = o ?? a, c = Hn(
13793
13799
  SI(e),
13794
- an()
13800
+ rn()
13795
13801
  ), d = df(e?.urn ?? ""), u = e ? ug(e, c, t, d) : null, p = u ? [u] : [], { historicalGeoPositions: m, fetching: g } = bI(
13796
13802
  !!e && s,
13797
13803
  e?.urn,
@@ -14470,7 +14476,7 @@ function GI({
14470
14476
  settings: { selectedAssetId: i, context: r }
14471
14477
  } = fg(t), [o, l] = b(
14472
14478
  kI(i, r, e)
14473
- ), [c, d] = b(null), [u, p] = b(null), m = sn(e, i);
14479
+ ), [c, d] = b(null), [u, p] = b(null), m = an(e, i);
14474
14480
  _(() => {
14475
14481
  m && p((C) => C || m);
14476
14482
  }, [m]), _(() => {
@@ -14525,7 +14531,7 @@ function GI({
14525
14531
  onChangeConfig: s
14526
14532
  }
14527
14533
  ) })), /* @__PURE__ */ f("div", { children: [
14528
- /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(nn, { config: t, onChangeConfig: s }) }) }),
14534
+ /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ n("div", { className: "fields", children: /* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }) }) }),
14529
14535
  S
14530
14536
  ] });
14531
14537
  }
@@ -14821,7 +14827,7 @@ function iP(e, t, s) {
14821
14827
  function rP(e, t) {
14822
14828
  const s = nP(e, t.type === "asset" ? t.asset.id : null), a = Sn(t.type === "asset" ? [] : sP(e)), i = Hn(
14823
14829
  aP(t, a, s),
14824
- an()
14830
+ rn()
14825
14831
  ), { properties: r } = O(we), o = F(() => r.filter((d) => d.entityTargets.includes("ASSET")), [r]), { t: l } = G(), c = ft();
14826
14832
  return z(
14827
14833
  (d, u) => {
@@ -15697,7 +15703,7 @@ function _P(e) {
15697
15703
  }
15698
15704
  }
15699
15705
  function RP({ context: e, settings: t, onChange: s }) {
15700
- const { assetProperties: a } = Ne(), i = e.type === "asset" ? e.asset.id : t.assetId, r = sn(e, i), { datapoints: o, fetching: l } = Wt(r?.urn), d = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? o, { selectDatasourceOfAsset: u, selectDatasourceOfAssetDefinition: p } = O(bg), { selectAsset: m } = O(Ag);
15706
+ const { assetProperties: a } = Ne(), i = e.type === "asset" ? e.asset.id : t.assetId, r = an(e, i), { datapoints: o, fetching: l } = Wt(r?.urn), d = (e.type === "assetDefinition" ? e.assetDefinition.datapoints : void 0) ?? o, { selectDatasourceOfAsset: u, selectDatasourceOfAssetDefinition: p } = O(bg), { selectAsset: m } = O(Ag);
15701
15707
  if (e.type === "global")
15702
15708
  return null;
15703
15709
  function g(w) {
@@ -17292,7 +17298,7 @@ function h2() {
17292
17298
  return /* @__PURE__ */ f(L, { children: [
17293
17299
  /* @__PURE__ */ n("h2", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widgets.config.configuration", children: "Configuration" }) }),
17294
17300
  /* @__PURE__ */ n("div", { className: "di form", children: /* @__PURE__ */ f("div", { className: "fields", children: [
17295
- /* @__PURE__ */ n(nn, { config: t, onChangeConfig: s }),
17301
+ /* @__PURE__ */ n(sn, { config: t, onChangeConfig: s }),
17296
17302
  /* @__PURE__ */ f("div", { className: "field", children: [
17297
17303
  /* @__PURE__ */ n("label", { children: /* @__PURE__ */ n(h, { i18nKey: "dashboard.widget.options.interval.label", children: "Interval" }) }),
17298
17304
  /* @__PURE__ */ n(
@@ -17565,7 +17571,7 @@ function w2(e, t, s) {
17565
17571
  const a = pe(0);
17566
17572
  _(() => {
17567
17573
  if (!e.current || !t) return;
17568
- const i = Yt(() => {
17574
+ const i = Qt(() => {
17569
17575
  if (!e.current) return;
17570
17576
  const o = e.current.getBoundingClientRect().width, l = a.current;
17571
17577
  l > 0 && o > 0 ? Math.abs(o - l) / l * 100 > 10 && (a.current = o, s()) : o > 0 && (a.current = o);
@@ -18277,7 +18283,7 @@ const t_ = ({ children: e, dashboardTime: t }) => {
18277
18283
  assetDefinitions: r
18278
18284
  }), c = pe(() => {
18279
18285
  }), d = pe(null), u = pe(() => {
18280
- }), p = an(), m = F(
18286
+ }), p = rn(), m = F(
18281
18287
  () => W2(o.currentAssetUrn, o.trendDatapoints),
18282
18288
  [o.currentAssetUrn, o.trendDatapoints]
18283
18289
  ), g = bc(o.liveModeEnabled && m ? m : {});
@@ -18729,7 +18735,7 @@ function g_({
18729
18735
  toggleCombineYAxes: v,
18730
18736
  chartContainerRef: S
18731
18737
  } = O(or), { t: C } = G(), D = pe(null), w = ft(), P = F(
18732
- () => Yt((k) => {
18738
+ () => Qt((k) => {
18733
18739
  if (D.current && k[0]) {
18734
18740
  const { width: U, height: M } = k[0].contentRect;
18735
18741
  D.current.setSize(U, M, !1);
@@ -20997,7 +21003,7 @@ class XR extends x.Component {
20997
21003
  ] });
20998
21004
  }
20999
21005
  }
21000
- const JR = tn()(XR);
21006
+ const JR = nn()(XR);
21001
21007
  function eO({ config: e, context: t, dashboard: s, onDelete: a, onChangeConfig: i }) {
21002
21008
  const [r, o] = b(null), { openWidgetConfigKey: l, openConfig: c, closeConfig: d } = O(wt), u = l === e.key, p = () => {
21003
21009
  c(e.key), o(e);
@@ -22965,7 +22971,7 @@ const HO = {
22965
22971
  }
22966
22972
  );
22967
22973
  }, YO = Qe({
22968
- loader: () => import("./Files-C-FiDJiX.js")
22974
+ loader: () => import("./Files-B7r5BhB0.js")
22969
22975
  }), QO = {
22970
22976
  relativePath: "files",
22971
22977
  label: {
@@ -23733,7 +23739,7 @@ const Pk = (e) => {
23733
23739
  properties: aa(e.properties)
23734
23740
  }), Rk = (e) => ({
23735
23741
  ...e,
23736
- properties: Xt(e.properties)
23742
+ properties: Jt(e.properties)
23737
23743
  }), Ar = ({ editedAsset: e, isGateway: t, initialGatewayName: s, onSubmit: a, onCancel: i }) => {
23738
23744
  const { t: r } = G(), [o, l] = b(
23739
23745
  e?.assetDefinitionId
@@ -24093,29 +24099,29 @@ function Hk({
24093
24099
  }
24094
24100
  );
24095
24101
  }
24096
- function Zt(e) {
24102
+ function Yt(e) {
24097
24103
  return e.replace(/\./g, "_");
24098
24104
  }
24099
24105
  function Oh(e, t) {
24100
- return `structuredDatapoint.fieldName.${Zt(t)}.datapoint.${Zt(e)}.label`;
24106
+ return `structuredDatapoint.fieldName.${Yt(t)}.datapoint.${Yt(e)}.label`;
24101
24107
  }
24102
24108
  function qk(e) {
24103
- return `structuredDatapoint.fieldName.${Zt(e)}.label`;
24109
+ return `structuredDatapoint.fieldName.${Yt(e)}.label`;
24104
24110
  }
24105
24111
  function Zr({ datapointName: e, fieldName: t }) {
24106
24112
  const { i18n: s } = G();
24107
24113
  return s.exists(Oh(e, t)) ? /* @__PURE__ */ n(h, { i18nKey: Oh(e, t) }) : /* @__PURE__ */ n(h, { i18nKey: qk(t), children: t });
24108
24114
  }
24109
24115
  function kh(e, t, s) {
24110
- return `structuredDatapoint.fieldValue.${Zt(s)}.fieldName.${Zt(t)}.datapoint.${Zt(
24116
+ return `structuredDatapoint.fieldValue.${Yt(s)}.fieldName.${Yt(t)}.datapoint.${Yt(
24111
24117
  e
24112
24118
  )}.label`;
24113
24119
  }
24114
24120
  function Gh(e, t) {
24115
- return `structuredDatapoint.fieldValue.${Zt(t)}.fieldName.${Zt(e)}.label`;
24121
+ return `structuredDatapoint.fieldValue.${Yt(t)}.fieldName.${Yt(e)}.label`;
24116
24122
  }
24117
24123
  function jk(e) {
24118
- return `structuredDatapoint.fieldValue.${Zt(e)}.label`;
24124
+ return `structuredDatapoint.fieldValue.${Yt(e)}.label`;
24119
24125
  }
24120
24126
  function Yr({
24121
24127
  datapointName: e,
@@ -25143,7 +25149,7 @@ const AG = (e) => {
25143
25149
  "Datapoints"
25144
25150
  );
25145
25151
  }, DG = Qe({
25146
- loader: () => import("./DatapointImport-DAG3e9eC.js")
25152
+ loader: () => import("./DatapointImport-D5MqlPlb.js")
25147
25153
  });
25148
25154
  function hy({ fetchDatapoints: e, createDatapoint: t, handle: s, addUnit: a }) {
25149
25155
  const [i, r] = b([]), [o, l] = b(!1), [c, d] = b(!1);
@@ -26058,7 +26064,7 @@ function my({ children: e }) {
26058
26064
  return /* @__PURE__ */ n(qc.Provider, { value: { units: t, addUnit: a }, children: e });
26059
26065
  }
26060
26066
  function QG(e, t) {
26061
- const [s, a] = b(!1), [i, r] = b(), { connectionState: o } = O(Om), l = o !== "socket_connect", c = Ln(t), d = an(), u = pe(vc(d));
26067
+ const [s, a] = b(!1), [i, r] = b(), { connectionState: o } = O(Om), l = o !== "socket_connect", c = Ln(t), d = rn(), u = pe(vc(d));
26062
26068
  return _(() => {
26063
26069
  l && (a(!0), u.current.fetchLastValues(e, c).then((p) => {
26064
26070
  r(p), a(!1);
@@ -26878,7 +26884,7 @@ const NL = ({ asset: e, gateway: t, properties: s }) => {
26878
26884
  const u = {
26879
26885
  ...e,
26880
26886
  ...d,
26881
- properties: Xt(d.properties)
26887
+ properties: Jt(d.properties)
26882
26888
  };
26883
26889
  try {
26884
26890
  await PL(u), c !== e.gatewayId && await IL(u, c);
@@ -26921,7 +26927,7 @@ const NL = ({ asset: e, gateway: t, properties: s }) => {
26921
26927
  childRoutes: [UL],
26922
26928
  requiredAuthorities: ["READ_ASSET", "READ_ASSET_GROUP"]
26923
26929
  }, VL = Qe({
26924
- loader: () => import("./Files-C-FiDJiX.js")
26930
+ loader: () => import("./Files-B7r5BhB0.js")
26925
26931
  }), ML = {
26926
26932
  relativePath: "files",
26927
26933
  label: {
@@ -27663,7 +27669,7 @@ function y8({ modalVisible: e, setModalVisible: t, admin: s }) {
27663
27669
  /* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.globalMapRules", children: "Global Map Rules" }) }),
27664
27670
  o.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
27665
27671
  /* @__PURE__ */ n(
27666
- Qt,
27672
+ Xt,
27667
27673
  {
27668
27674
  className: "map-marker-condition-name",
27669
27675
  horizontal: !0,
@@ -27713,7 +27719,7 @@ function y8({ modalVisible: e, setModalVisible: t, admin: s }) {
27713
27719
  /* @__PURE__ */ n("p", { children: /* @__PURE__ */ n(h, { i18nKey: "assets.map.marker.customMapRules", children: "Own Map Rules" }) }),
27714
27720
  a.map((w, P) => /* @__PURE__ */ f("div", { className: "map-marker-condition", children: [
27715
27721
  /* @__PURE__ */ n(
27716
- Qt,
27722
+ Xt,
27717
27723
  {
27718
27724
  className: "map-marker-condition-name",
27719
27725
  horizontal: !0,
@@ -28970,7 +28976,7 @@ class wy extends Pp {
28970
28976
  }
28971
28977
  }
28972
28978
  function i3({ setting: e, ...t }) {
28973
- const { control: s } = Ee(), { field: a } = Jt({ name: e.name, control: s }), [i, r] = b(
28979
+ const { control: s } = Ee(), { field: a } = en({ name: e.name, control: s }), [i, r] = b(
28974
28980
  a.value ? e.single ? [a.value] : a.value : []
28975
28981
  );
28976
28982
  function o(g) {
@@ -29119,7 +29125,7 @@ function ei(e) {
29119
29125
  return /^[+-]?\d+(\.\d+)?$/.test(e);
29120
29126
  }
29121
29127
  function r3({ setting: e, ...t }) {
29122
- const { control: s } = Ee(), { field: a } = Jt({ name: e.name, control: s }), [i, r] = b(""), [o, l] = b(""), { t: c } = G();
29128
+ const { control: s } = Ee(), { field: a } = en({ name: e.name, control: s }), [i, r] = b(""), [o, l] = b(""), { t: c } = G();
29123
29129
  _(() => {
29124
29130
  if (a.value) {
29125
29131
  const [p, m] = (a.value ?? "").split(",");
@@ -29204,7 +29210,7 @@ function o3({ setting: e, ...t }) {
29204
29210
  ) });
29205
29211
  }
29206
29212
  function jc(e) {
29207
- const { control: t } = Ee(), { field: s } = Jt({ name: e, control: t });
29213
+ const { control: t } = Ee(), { field: s } = en({ name: e, control: t });
29208
29214
  return s.value !== void 0;
29209
29215
  }
29210
29216
  function Ny({ settingName: e, ...t }) {
@@ -29264,7 +29270,7 @@ function c3({ setting: e, ...t }) {
29264
29270
  );
29265
29271
  }
29266
29272
  function d3({ setting: e, ...t }) {
29267
- const { setValue: s, control: a } = Ee(), { field: i } = Jt({ name: e.name, control: a }), [r, o] = b(i.value?.split(",") ?? "");
29273
+ const { setValue: s, control: a } = Ee(), { field: i } = en({ name: e.name, control: a }), [r, o] = b(i.value?.split(",") ?? "");
29268
29274
  return _(() => {
29269
29275
  o(i.value?.split(",") ?? "");
29270
29276
  }, [i.value]), /* @__PURE__ */ n(B, { label: /* @__PURE__ */ n(h, { i18nKey: `appSettings.property.${e.name}`, children: e.name }), children: /* @__PURE__ */ n("ul", { children: e.options.map((l) => /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
@@ -29337,7 +29343,7 @@ function h3({ setting: e }) {
29337
29343
  ] });
29338
29344
  }
29339
29345
  function p3({ setting: e, ...t }) {
29340
- const { setValue: s, control: a } = Ee(), { field: i } = Jt({ name: e.name, control: a }), [r, o] = b([]), [l, c] = b(!1);
29346
+ const { setValue: s, control: a } = Ee(), { field: i } = en({ name: e.name, control: a }), [r, o] = b([]), [l, c] = b(!1);
29341
29347
  _(() => {
29342
29348
  !l && i.value && (c(!0), Array.isArray(i.value) && i.value.every(
29343
29349
  (m) => typeof m.reportHeading == "string" && typeof m.reportId == "string" && typeof m.workspaceId == "string"
@@ -30109,7 +30115,7 @@ function V3({ setting: e }) {
30109
30115
  formState: { errors: s }
30110
30116
  } = Ee(), { t: a } = G(), [i, r] = b(!1), [o, l] = b(!1), [c, d] = b(), {
30111
30117
  field: { value: u, onChange: p }
30112
- } = Jt({ name: e.name, control: t }), m = vr(), g = m.get("category"), y = m.get("showModal");
30118
+ } = en({ name: e.name, control: t }), m = vr(), g = m.get("category"), y = m.get("showModal");
30113
30119
  _(() => {
30114
30120
  g === "roles" && y === "true" && r(!0);
30115
30121
  }, [g, y]);
@@ -30423,7 +30429,7 @@ function Y3({ setting: e, ...t }) {
30423
30429
  }
30424
30430
  );
30425
30431
  }
30426
- const Q3 = _p(() => import("./JsonSettingWidget-jwMuKSVT.js")), no = Si.filter(
30432
+ const Q3 = _p(() => import("./JsonSettingWidget-Dmoshz7m.js")), no = Si.filter(
30427
30433
  ({ name: e }) => Object.values(ol).every((t) => !t.includes(e))
30428
30434
  );
30429
30435
  function so({ setting: e, ...t }) {
@@ -32104,7 +32110,7 @@ function mx({ disabled: e, type: t, index: s }) {
32104
32110
  const {
32105
32111
  field: { value: a, onChange: i, onBlur: r },
32106
32112
  formState: { errors: o }
32107
- } = Jt({
32113
+ } = en({
32108
32114
  name: `selectedProperties.${s}.value`
32109
32115
  }), l = o.selectedProperties?.[s]?.value?.message;
32110
32116
  switch (t) {
@@ -33154,7 +33160,7 @@ function ti(e, t) {
33154
33160
  const Yy = ({ urn: e, name: t }) => ({ id: e, name: t }), Qy = ({ id: e, displayName: t }) => ({ id: String(e), name: t || "" }), Xy = ({ number: e, name: t }) => ({ id: e, name: t ?? "" }), Jy = ({ id: e, name: t }) => ({ id: String(e), name: t }), lV = {
33155
33161
  asset: ti(An, Yy),
33156
33162
  account: ti(Ri, Xy),
33157
- accountGroup: ti(en, Jy),
33163
+ accountGroup: ti(tn, Jy),
33158
33164
  assetGroup: ti(Bt, Qy)
33159
33165
  }, cV = {
33160
33166
  asset: (e) => Kl(e).then(Yy),
@@ -33724,7 +33730,7 @@ const mp = Te({
33724
33730
  ] })
33725
33731
  }
33726
33732
  );
33727
- }, wV = async (e, t) => en(e, {
33733
+ }, wV = async (e, t) => tn(e, {
33728
33734
  page: Math.floor(t / 10),
33729
33735
  size: 10,
33730
33736
  sort: {
@@ -34154,9 +34160,9 @@ var UV = function(t) {
34154
34160
  })));
34155
34161
  };
34156
34162
  const xV = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), VV = Qe({
34157
- loader: () => import("./BundleManagementContainer-CRd22PtW.js")
34163
+ loader: () => import("./BundleManagementContainer-pF44tpPR.js")
34158
34164
  }), MV = Qe({
34159
- loader: () => import("./BundlesContainer-yr5oJ705.js")
34165
+ loader: () => import("./BundlesContainer-CZ70n2vt.js")
34160
34166
  }), KV = {
34161
34167
  relativePath: "bundles",
34162
34168
  label: {
@@ -34620,19 +34626,19 @@ var dM = function(t) {
34620
34626
  })));
34621
34627
  };
34622
34628
  const uM = Qe({
34623
- loader: () => import("./LicensesEditPage-guXC0rd6.js")
34629
+ loader: () => import("./LicensesEditPage-C8vTjupQ.js")
34624
34630
  }), hM = {
34625
34631
  relativePath: "create",
34626
34632
  component: uM,
34627
34633
  requiredAuthorities: ["MANAGE_LICENSES"]
34628
34634
  }, pM = Qe({
34629
- loader: () => import("./LicensesEditPage-guXC0rd6.js")
34635
+ loader: () => import("./LicensesEditPage-C8vTjupQ.js")
34630
34636
  }), fM = {
34631
34637
  relativePath: ":licenseName",
34632
34638
  component: pM,
34633
34639
  requiredAuthorities: ["MANAGE_LICENSES"]
34634
34640
  }, mM = Qe({
34635
- loader: () => import("./LicensesList-CmmYRZli.js")
34641
+ loader: () => import("./LicensesList-yByygj9U.js")
34636
34642
  }), gM = {
34637
34643
  relativePath: "licenses",
34638
34644
  label: {
@@ -34675,19 +34681,19 @@ var AM = function(t) {
34675
34681
  })));
34676
34682
  };
34677
34683
  const bM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), vM = Qe({
34678
- loader: () => import("./PropertiesEditPage-B6JSRWou.js")
34684
+ loader: () => import("./PropertiesEditPage-W9i-93un.js")
34679
34685
  }), SM = {
34680
34686
  relativePath: "create",
34681
34687
  component: vM,
34682
34688
  requiredAuthorities: ["CREATE_PROPERTY"]
34683
34689
  }, TM = Qe({
34684
- loader: () => import("./PropertiesEditPage-B6JSRWou.js")
34690
+ loader: () => import("./PropertiesEditPage-W9i-93un.js")
34685
34691
  }), CM = {
34686
34692
  relativePath: ":propertyKey",
34687
34693
  component: TM,
34688
34694
  requiredAuthorities: ["UPDATE_PROPERTY"]
34689
34695
  }, EM = Qe({
34690
- loader: () => import("./PropertiesList-DKLeVsON.js")
34696
+ loader: () => import("./PropertiesList-BoqIna7m.js")
34691
34697
  }), DM = {
34692
34698
  relativePath: "properties",
34693
34699
  label: {
@@ -34722,13 +34728,13 @@ var wM = function(t) {
34722
34728
  })));
34723
34729
  };
34724
34730
  const NM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(Et, { pathname: e }) }), IM = Qe({
34725
- loader: () => import("./TemplateEditPage-CXhoyakG.js")
34731
+ loader: () => import("./TemplateEditPage-D9OFIKqk.js")
34726
34732
  }), PM = {
34727
34733
  relativePath: ":templateId",
34728
34734
  component: IM,
34729
34735
  requiredAuthorities: ["WRITE_NOTIFICATION_TEMPLATE"]
34730
34736
  }, _M = Qe({
34731
- loader: () => import("./TemplatesListPage--mHG95Pd.js")
34737
+ loader: () => import("./TemplatesListPage-7VM9CVDI.js")
34732
34738
  }), RM = {
34733
34739
  relativePath: "list",
34734
34740
  label: {
@@ -34749,7 +34755,7 @@ const NM = ({ pathname: e }) => /* @__PURE__ */ n(L, { children: /* @__PURE__ */
34749
34755
  requiredAuthorities: ["READ_NOTIFICATION_TEMPLATE", "WRITE_NOTIFICATION_TEMPLATE"],
34750
34756
  contextAction: NM
34751
34757
  }, kM = Qe({
34752
- loader: () => import("./UserGroupAssignments-CAtKY05Y.js")
34758
+ loader: () => import("./UserGroupAssignments-Ce4pvexW.js")
34753
34759
  }), GM = {
34754
34760
  relativePath: "user-group-assignments",
34755
34761
  label: {
@@ -34838,7 +34844,7 @@ const xM = () => /* @__PURE__ */ n(
34838
34844
  children: /* @__PURE__ */ n(W, { fullscreen: !0, large: !0 })
34839
34845
  }
34840
34846
  ), VM = Qe({
34841
- loader: () => import("./GlobalPowerBiReports-BuZsiUUM.js")
34847
+ loader: () => import("./GlobalPowerBiReports-BFCqFXrG.js")
34842
34848
  }), MM = {
34843
34849
  relativePath: "powerbi",
34844
34850
  label: {
@@ -35177,7 +35183,7 @@ const HM = {
35177
35183
  }
35178
35184
  )
35179
35185
  ] }),
35180
- children: /* @__PURE__ */ n(Qt, { disabled: !0, value: s, onChange: () => {
35186
+ children: /* @__PURE__ */ n(Xt, { disabled: !0, value: s, onChange: () => {
35181
35187
  } })
35182
35188
  }
35183
35189
  ),
@@ -35186,7 +35192,7 @@ const HM = {
35186
35192
  {
35187
35193
  size: "full-width",
35188
35194
  label: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(h, { i18nKey: "user.showWelcomeModalAtStart", children: "Show the Welcome modal at start" }) }),
35189
- children: /* @__PURE__ */ n(Qt, { disabled: !0, value: i, onChange: () => {
35195
+ children: /* @__PURE__ */ n(Xt, { disabled: !0, value: i, onChange: () => {
35190
35196
  } })
35191
35197
  }
35192
35198
  ),
@@ -35245,7 +35251,7 @@ function cA(e, t, s, a, i) {
35245
35251
  }
35246
35252
  const YM = async (e) => {
35247
35253
  if (e.length) {
35248
- const { content: t } = await en(`id:(${e.join(" OR ")})`, {
35254
+ const { content: t } = await tn(`id:(${e.join(" OR ")})`, {
35249
35255
  page: 0,
35250
35256
  size: e.length,
35251
35257
  sort: {
@@ -35260,7 +35266,7 @@ const YM = async (e) => {
35260
35266
  const t = { EMAIL: [{ name: "" }] };
35261
35267
  return e.username && $.getAccountCreationPrinciple() !== "email" && (t.USERNAME = [{ name: e.username }]), e.email && (t.EMAIL = [{ name: e.email }]), t;
35262
35268
  }, QM = (e, t) => {
35263
- const s = Xt(
35269
+ const s = Jt(
35264
35270
  t ? {
35265
35271
  ...e.properties,
35266
35272
  _showWelcomeModal: !0
@@ -35285,7 +35291,7 @@ const YM = async (e) => {
35285
35291
  timezone: t.timezone,
35286
35292
  accountGroupIds: t.accountGroupIds,
35287
35293
  roleIds: t.roleIds,
35288
- properties: { ...e.properties, ...Xt(t.properties) },
35294
+ properties: { ...e.properties, ...Jt(t.properties) },
35289
35295
  principals: dA(t)
35290
35296
  }), hA = (e) => ({
35291
35297
  displayName: e.displayName ?? "",
@@ -35779,7 +35785,7 @@ const pK = {
35779
35785
  )
35780
35786
  ] }),
35781
35787
  children: /* @__PURE__ */ n(
35782
- Qt,
35788
+ Xt,
35783
35789
  {
35784
35790
  "data-testid": "subscribe-to-release-notes-switch",
35785
35791
  value: a,
@@ -35795,7 +35801,7 @@ const pK = {
35795
35801
  "data-testid": "property-showWelcomeModalAtStart",
35796
35802
  label: /* @__PURE__ */ n("span", { children: /* @__PURE__ */ n(h, { i18nKey: "user.showWelcomeModalAtStart", children: "Show the Welcome Modal at start" }) }),
35797
35803
  children: /* @__PURE__ */ n(
35798
- Qt,
35804
+ Xt,
35799
35805
  {
35800
35806
  "data-testid": "show-welcome-modal-at-start-switch",
35801
35807
  value: i === void 0 || i,
@@ -36625,7 +36631,7 @@ const KK = () => ({
36625
36631
  return To ? To(t, e) : t;
36626
36632
  };
36627
36633
  async function qK(e, t) {
36628
- return e.trim().length ? en(e, t) : { ...await z0(t), totalElementsAccurate: !0 };
36634
+ return e.trim().length ? tn(e, t) : { ...await z0(t), totalElementsAccurate: !0 };
36629
36635
  }
36630
36636
  const ed = async (e, t) => {
36631
36637
  const s = await qK(e, t), a = s.content, i = a.flatMap((o) => o.roleIds), r = [...new Set(i)].filter(Z);
@@ -36882,7 +36888,7 @@ function CA(e) {
36882
36888
  return [
36883
36889
  {
36884
36890
  ...e,
36885
- properties: Xt(e.properties)
36891
+ properties: Jt(e.properties)
36886
36892
  },
36887
36893
  e.roleIds
36888
36894
  ];
@@ -37124,7 +37130,7 @@ const uB = "usergroupsAssignedUsers", DA = {
37124
37130
  };
37125
37131
  rd.contextType = Ie;
37126
37132
  let Cl = rd;
37127
- const hB = tn()(Cl), pB = (e, t) => Z0(e, t).catch((s) => {
37133
+ const hB = nn()(Cl), pB = (e, t) => Z0(e, t).catch((s) => {
37128
37134
  throw console.error(`failed to assign Users to asset group with id ${e.id}`, s), s;
37129
37135
  }), fB = (e, t) => Y0(e, t).catch((s) => {
37130
37136
  throw console.error(`failed to assign Users to asset group with id ${e.id}`, s), s;
@@ -37313,7 +37319,7 @@ const hB = tn()(Cl), pB = (e, t) => Z0(e, t).catch((s) => {
37313
37319
  };
37314
37320
  od.contextType = Ie;
37315
37321
  let El = od;
37316
- const bB = ma(tn()(El)), vB = {
37322
+ const bB = ma(nn()(El)), vB = {
37317
37323
  relativePath: "edit",
37318
37324
  component: bB,
37319
37325
  requiredAuthorities: ["UPDATE_ACCOUNT"]
@@ -37687,7 +37693,7 @@ const $B = (e, t, s) => {
37687
37693
  )
37688
37694
  }), _A = (e) => ({
37689
37695
  fields: Da,
37690
- search: (t, s) => en(Ye(e, !1)(t), s)
37696
+ search: (t, s) => tn(Ye(e, !1)(t), s)
37691
37697
  }), WB = (e) => e.map((t) => `(${t.requiredAssetGroups.join(" AND ")})`).join(" OR "), io = {
37692
37698
  page: 0,
37693
37699
  size: 1,
@@ -38498,7 +38504,7 @@ var b5 = function(t) {
38498
38504
  })));
38499
38505
  };
38500
38506
  const v5 = Qe({
38501
- loader: () => import("./UserGroupTheme-CWaXzqj6.js")
38507
+ loader: () => import("./UserGroupTheme-CXQyYGco.js")
38502
38508
  }), S5 = {
38503
38509
  relativePath: "theme",
38504
38510
  label: {
@@ -38869,7 +38875,7 @@ const x5 = {
38869
38875
  }, V5 = ["INVITED", "TERMS_ACCEPTANCE_PENDING"], M5 = (e) => e.pendingInvitation || V5.includes(e.state), K5 = ({ user: e, roleIds: t, properties: s, isCurrentUser: a, userGroupIds: i }) => {
38870
38876
  const { t: r } = G(), [o, l] = b(void 0), [c, d] = b(!1), u = {
38871
38877
  fields: Da,
38872
- search: (A, v) => en(Ye(i, !1)(A), v).then((S) => (A === "" && l(S.totalElements), S))
38878
+ search: (A, v) => tn(Ye(i, !1)(A), v).then((S) => (A === "" && l(S.totalElements), S))
38873
38879
  }, [p, m] = b(!1);
38874
38880
  _(() => () => {
38875
38881
  st("UserForm");
@@ -39252,7 +39258,7 @@ export {
39252
39258
  Xi as aT,
39253
39259
  s6 as aU,
39254
39260
  ft as aV,
39255
- an as aW,
39261
+ rn as aW,
39256
39262
  bc as aX,
39257
39263
  w2 as aY,
39258
39264
  xa as aZ,
@@ -39330,7 +39336,7 @@ export {
39330
39336
  vr as bf,
39331
39337
  W3 as bg,
39332
39338
  br as bh,
39333
- tn as bi,
39339
+ nn as bi,
39334
39340
  Hl as bj,
39335
39341
  Pd as bk,
39336
39342
  h1 as bl,
@@ -39385,4 +39391,4 @@ export {
39385
39391
  Ie as y,
39386
39392
  dS as z
39387
39393
  };
39388
- //# sourceMappingURL=setTitle-GGyiO7zI.js.map
39394
+ //# sourceMappingURL=setTitle-DZyXA3i8.js.map