@kosdev-code/kos-ui-sdk 0.1.0-next.979 → 0.1.0-next.994

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 (132) hide show
  1. package/common/events/async-event-bus.d.ts.map +1 -1
  2. package/common/events/eventBus.d.ts.map +1 -1
  3. package/core/core/companion-instantiator.d.ts.map +1 -1
  4. package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -1
  5. package/core/core/decorators/index.d.ts +0 -1
  6. package/core/core/decorators/index.d.ts.map +1 -1
  7. package/core/core/decorators/kos-container-aware.d.ts +104 -3
  8. package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
  9. package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
  10. package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
  11. package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
  12. package/core/core/decorators/kosModel.d.ts.map +1 -1
  13. package/core/core/decorators/propKeys.d.ts +0 -1
  14. package/core/core/decorators/propKeys.d.ts.map +1 -1
  15. package/core/core/decorators/resolve-parameters.d.ts.map +1 -1
  16. package/core/core/dependency-manager.d.ts.map +1 -1
  17. package/core/core/extension/extension-manager.d.ts.map +1 -1
  18. package/core/core/kos-container-index.d.ts.map +1 -1
  19. package/core/core/kos-container-model.d.ts.map +1 -1
  20. package/core/core/kos-data-container.d.ts.map +1 -1
  21. package/core/core/kos-model-factory.d.ts.map +1 -1
  22. package/core/core/kos-registration.d.ts.map +1 -1
  23. package/core/core/kosModel.d.ts.map +1 -1
  24. package/core/core/kosModelManager.d.ts.map +1 -1
  25. package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
  26. package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
  27. package/core/core/lifecycle/model-active-machine.d.ts.map +1 -1
  28. package/core/core/lifecycle/model-machine.d.ts.map +1 -1
  29. package/core/core/lifecycle/model-online-machine.d.ts.map +1 -1
  30. package/core/core/log/index.d.ts +1 -0
  31. package/core/core/log/index.d.ts.map +1 -1
  32. package/core/core/log/log-groups.d.ts +25 -0
  33. package/core/core/log/log-groups.d.ts.map +1 -0
  34. package/core/core/log/log.d.ts +10 -6
  35. package/core/core/log/log.d.ts.map +1 -1
  36. package/core/core/model/kos-logger-factory.d.ts +6 -4
  37. package/core/core/model/kos-logger-factory.d.ts.map +1 -1
  38. package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
  39. package/core/core/model-cache.d.ts.map +1 -1
  40. package/core/core/model-instantiator.d.ts.map +1 -1
  41. package/core/core/registration/registration-manager.d.ts.map +1 -1
  42. package/core/core/services/app-startup-service.d.ts.map +1 -1
  43. package/core/core/services/intent-service.d.ts.map +1 -1
  44. package/core/core/transport/base-message-transport.d.ts.map +1 -1
  45. package/core/core/transport/bridge-transport.d.ts.map +1 -1
  46. package/core/core/transport/mock/future-simulator.d.ts.map +1 -1
  47. package/core/core/transport/mock/mock-config.d.ts.map +1 -1
  48. package/core/core/transport/mock/mock-fixtures.d.ts.map +1 -1
  49. package/core/core/transport/mock/mock-playback.d.ts.map +1 -1
  50. package/core/core/transport/mock/mock-recorder.d.ts.map +1 -1
  51. package/core/core/transport/mock/mock-registry.d.ts.map +1 -1
  52. package/core/core/transport/mock/mock-setups.d.ts.map +1 -1
  53. package/core/core/transport/mock/standalone-mock-socket.d.ts.map +1 -1
  54. package/core/core/transport/transport-factory.d.ts.map +1 -1
  55. package/core/core/transport/webSocketTransport.d.ts.map +1 -1
  56. package/core/types/global.d.ts +0 -6
  57. package/core/util/feature-flags.d.ts.map +1 -1
  58. package/core/util/kos-core-utils.d.ts.map +1 -1
  59. package/core/util/kos-fetch.d.ts.map +1 -1
  60. package/core/util/kos-message-utils.d.ts.map +1 -1
  61. package/core/util/kos-model-utils.d.ts.map +1 -1
  62. package/core/util/kos-service-request.d.ts.map +1 -1
  63. package/core/util/log-utils.d.ts +0 -10
  64. package/core/util/log-utils.d.ts.map +1 -1
  65. package/core/util/model-error-utils.d.ts.map +1 -1
  66. package/core/util/model-utils.d.ts.map +1 -1
  67. package/core/util/promise-utils.d.ts.map +1 -1
  68. package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
  69. package/core/util/service-factory.d.ts.map +1 -1
  70. package/core/util/wait-for-request.d.ts.map +1 -1
  71. package/index.cjs +73 -320
  72. package/index.cjs.map +1 -1
  73. package/index.js +249 -496
  74. package/index.js.map +1 -1
  75. package/models/decorators/future-service.d.ts.map +1 -1
  76. package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
  77. package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
  78. package/models/models/device/services/device-services.d.ts.map +1 -1
  79. package/models/models/future/future-aware.d.ts.map +1 -1
  80. package/models/models/future/future-model-builder.d.ts.map +1 -1
  81. package/models/models/future/future-model.d.ts.map +1 -1
  82. package/models/models/future-container/future-container-model.d.ts.map +1 -1
  83. package/models/models/gpio-chip/gpio-chip-builders.d.ts +0 -3
  84. package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -1
  85. package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
  86. package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
  87. package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
  88. package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
  89. package/models/models/ota/services/ota-services.d.ts.map +1 -1
  90. package/models/models/region-info/region-info-model.d.ts.map +1 -1
  91. package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
  92. package/models/models/state-bean/services/state-bean-services.d.ts.map +1 -1
  93. package/models/models/state-prop/services/state-prop-services.d.ts.map +1 -1
  94. package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
  95. package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -1
  96. package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
  97. package/models/models/translation/services/translation-services.d.ts.map +1 -1
  98. package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
  99. package/models/models/trouble/utils/trouble-data-extension.d.ts.map +1 -1
  100. package/models/models/trouble/utils/trouble-extension.d.ts.map +1 -1
  101. package/models/models/usb-update/services/usb-update-services.d.ts.map +1 -1
  102. package/models/models/ws-event/ws-event-model.d.ts.map +1 -1
  103. package/models/services/future/index.d.ts.map +1 -1
  104. package/models/services/login/index.d.ts.map +1 -1
  105. package/models/services/trouble/index.d.ts.map +1 -1
  106. package/models/utils/await-future-call.d.ts.map +1 -1
  107. package/models/utils/cancellable-future-call.d.ts.map +1 -1
  108. package/models/utils/core-registration-manager.d.ts +13 -2
  109. package/models/utils/core-registration-manager.d.ts.map +1 -1
  110. package/models/utils/get-kos-connection-id.d.ts.map +1 -1
  111. package/models/utils/timer-manager.d.ts.map +1 -1
  112. package/package.json +3 -3
  113. package/{software-info-registration-rg4pjrxg.cjs → software-info-registration-CA13_Qc_.cjs} +1110 -645
  114. package/software-info-registration-CA13_Qc_.cjs.map +1 -0
  115. package/{software-info-registration-Cbvzr2Q-.js → software-info-registration-CKRUzp_3.js} +1376 -911
  116. package/software-info-registration-CKRUzp_3.js.map +1 -0
  117. package/testing.cjs +1 -2
  118. package/testing.cjs.map +1 -1
  119. package/testing.js +1 -2
  120. package/testing.js.map +1 -1
  121. package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts.map +1 -1
  122. package/ui/components/kos-model-loader/kos-model-loader.d.ts.map +1 -1
  123. package/ui/contexts/kos-model-context.d.ts.map +1 -1
  124. package/ui/contexts/translation-container/kos-translations-provider.d.ts.map +1 -1
  125. package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts.map +1 -1
  126. package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
  127. package/ui/hooks/use-mutation-observer.d.ts.map +1 -1
  128. package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
  129. package/core/core/decorators/kos-log.d.ts +0 -14
  130. package/core/core/decorators/kos-log.d.ts.map +0 -1
  131. package/software-info-registration-Cbvzr2Q-.js.map +0 -1
  132. package/software-info-registration-rg4pjrxg.cjs.map +0 -1
package/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import { s as subscribe, p as publish, k as kosParentAware, C as CompanionParentModel, K as KosContextManager, M as MultipleFutureContainerSetup, L as LogConfig, a as MixinModels, R as ReferenceConfig, T as TroubleAwareSetup, D as DependencyModels, E as ExtensionManager, S as SubscriptionHandlers, b as KosViewModelSymbol, V as ViewModelConfig, c as StateMachineSetup, d as DependencyLifecycle, i as injectStateMachineSupport, e as initializeStateMachine, f as ModelEffects, g as KosModelVisitor, h as KosCore, j as sendKosMessageResponse, l as KosLog, u as uuid, I as INDEX_RECORD_SYMBOL, m as INDEX_COLLECTION_KEY, n as KosContainerIndexEvents, o as isIndexableItem, q as Kos, r as isKosModel, t as ConfigBean, v as configBeanModelId, w as getRegionInfo, x as getRegions, y as Registration, z as getStateBeanData, A as StateBean, B as getStateProps, F as StateProp, G as deleteKeyValue, H as deleteKeyValueNamespace, J as getKeyValue, N as updateKeyValue, O as addLogOverride, P as getLogGroups, Q as getLogOverrides, U as removeLogOverride, W as getTimezone, X as setDate, Y as setTime, Z as setTimezone, _ as createOverride, $ as getLogStreamBlock, a0 as getLogStreamBlocks, a1 as getLogStreams, a2 as subscribeToLogStream, a3 as unsubscribeFromLogStream, a4 as bulkResolveTroubles, a5 as getTroubles, a6 as resolveTrouble, a7 as sendCanvasData, a8 as getDeviceDetails, a9 as getSerialNumber, aa as getNetworkInterfaces, ab as getStorageDevices, ac as getAvailableUpdates, ad as installUpdate, ae as TranslationContainer, af as whenReady, ag as KosCoreModelPropertyMapper, ah as CanvasDispatcher, ai as KeyValue, aj as destroyKosModel, ak as createClient, al as kosServiceRequest$8, am as getSoftwareInfos, an as getSoftwareInfosWithCancel, ao as BASE_URL, ap as kosFetch, aq as kosModel, ar as kosLoggerAware, as as kosContainerAware, at as kosChild, au as api$8, av as ObservableData, aw as WebSocketTransport, ax as kosComputed, ay as KosModelRegistrationFactory, az as getKosModelSync, aA as kosAutoEffect, aB as WebSocketEvents, aC as modelHookCache, aD as isUpdateable, aE as KosModelState, aF as KosModelEvents, aG as clearModelHookCacheEntry, aH as KosTime, aI as SoftwareInfo, aJ as getQueryParams, aK as getKosLocalizationDescriptor, aL as Device, aM as NetworkInterfaceContainer, aN as Ota, aO as StorageDeviceContainer, aP as TimerManager, aQ as TIMER_END, aR as TIMER_EVENT, aS as TOPIC_TIMER_TICK_EVENT, aT as getKosModel, aU as Trouble, aV as TroubleContainer, aW as UsbUpdateContainer, aX as Registration$1 } from "./software-info-registration-Cbvzr2Q-.js";
2
- import { aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, cz, cA, cB, cC, cD, cE, cF, cG, cH, cI, cJ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, cY, cZ, c_, c$, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, da, db, dc, dd, de, df, dg, dh, di, dj, dk, dl, dm, dn, dp, dq, dr, ds, dt, du, dv, dw, dx, dy, dz, dA, dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dL, dM, dN, dO, dP, dQ, dR, dS, dT, dU, dV, dW, dX, dY, dZ, d_, d$, e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, ea, eb, ec, ed, ee, ef, eg, eh, ei, ej, ek, el, em, en, eo, ep, eq, er, es, et, eu, ev, ew, ex, ey, ez, eA, eB, eC, eD, eE, eF, eG, eH, eI, eJ, eK, eL, eM, eN, eO, eP, eQ, eR, eS, eT, eU, eV, eW } from "./software-info-registration-Cbvzr2Q-.js";
1
+ import { s as subscribe, p as publish, k as kosParentAware, C as CompanionParentModel, K as KosContextManager, M as MultipleFutureContainerSetup, a as MixinModels, R as ReferenceConfig, T as TroubleAwareSetup, D as DependencyModels, E as ExtensionManager, S as SubscriptionHandlers, b as KosViewModelSymbol, V as ViewModelConfig, c as StateMachineSetup, d as DependencyLifecycle, i as injectStateMachineSupport, e as initializeStateMachine, f as ModelEffects, g as KosModelVisitor, h as KosCore, j as sendKosMessageResponse, I as INDEX_RECORD_SYMBOL, l as INDEX_COLLECTION_KEY, m as KosContainerIndexEvents, n as isIndexableItem, o as Kos, q as isKosModel, r as ConfigBean, t as configBeanModelId, u as getRegionInfo, v as getRegions, w as Registration, x as getStateBeanData, y as StateBean, z as getStateProps, A as StateProp, B as deleteKeyValue, F as deleteKeyValueNamespace, G as getKeyValue, H as updateKeyValue, J as addLogOverride, L as getLogGroups, N as getLogOverrides, O as removeLogOverride, P as getTimezone, Q as setDate, U as setTime, W as setTimezone, X as createOverride, Y as getLogStreamBlock, Z as getLogStreamBlocks, _ as getLogStreams, $ as subscribeToLogStream, a0 as unsubscribeFromLogStream, a1 as bulkResolveTroubles, a2 as getTroubles, a3 as resolveTrouble, a4 as sendCanvasData, a5 as getDeviceDetails, a6 as getSerialNumber, a7 as getNetworkInterfaces, a8 as getStorageDevices, a9 as getAvailableUpdates, aa as installUpdate, ab as TranslationContainer, ac as whenReady, ad as KosCoreModelPropertyMapper, ae as CanvasDispatcher, af as KeyValue, ag as destroyKosModel, ah as createClient, ai as kosServiceRequest$8, aj as getSoftwareInfos, ak as getSoftwareInfosWithCancel, al as KosLog, am as LogGroup, an as BASE_URL, ao as kosFetch, ap as kosModel, aq as kosLoggerAware, ar as kosContainerAware, as as kosChild, at as api$8, au as ObservableData, av as WebSocketTransport, aw as kosComputed, ax as KosModelRegistrationFactory, ay as getKosModelSync, az as kosAutoEffect, aA as WebSocketEvents, aB as modelHookCache, aC as isUpdateable, aD as KosModelState, aE as KosModelEvents, aF as clearModelHookCacheEntry, aG as KosTime, aH as SoftwareInfo, aI as getQueryParams, aJ as getKosLocalizationDescriptor, aK as Device, aL as NetworkInterfaceContainer, aM as Ota, aN as StorageDeviceContainer, aO as TimerManager, aP as TIMER_END, aQ as TIMER_EVENT, aR as TOPIC_TIMER_TICK_EVENT, aS as getKosModel, aT as Trouble, aU as TroubleContainer, aV as UsbUpdateContainer, aW as Registration$1 } from "./software-info-registration-CKRUzp_3.js";
2
+ import { aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, cz, cA, cB, cC, cD, cE, cF, cG, cH, cI, cJ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, cY, cZ, c_, c$, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, da, db, dc, dd, de, df, dg, dh, di, dj, dk, dl, dm, dn, dp, dq, dr, ds, dt, du, dv, dw, dx, dy, dz, dA, dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dL, dM, dN, dO, dP, dQ, dR, dS, dT, dU, dV, dW, dX, dY, dZ, d_, d$, e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, ea, eb, ec, ed, ee, ef, eg, eh, ei, ej, ek, el, em, en, eo, ep, eq, er, es, et, eu, ev, ew, ex, ey, ez, eA, eB, eC, eD, eE, eF, eG, eH, eI, eJ, eK, eL, eM, eN, eO, eP, eQ, eR, eS, eT, eU, eV, eW, eX, eY, eZ, e_, e$, f0, f1, f2 } from "./software-info-registration-CKRUzp_3.js";
3
3
  import { action, reaction, autorun, makeAutoObservable, runInAction } from "mobx";
4
4
  import { makeAutoObservable as makeAutoObservable2, makeObservable } from "mobx";
5
- import log$6 from "loglevel";
6
5
  import { jsx, jsxs, Fragment } from "@emotion/react/jsx-runtime";
7
6
  import styled from "@emotion/styled";
8
7
  import { createPortal } from "react-dom";
@@ -398,10 +397,6 @@ function kosMultipleFutureAware(options) {
398
397
  return target;
399
398
  };
400
399
  }
401
- const kosLogger = ({ group } = { group: "" }) => (constructor) => {
402
- constructor[LogConfig] = constructor[LogConfig] || {};
403
- constructor[LogConfig] = { group };
404
- };
405
400
  function kosMixin(mixin, options) {
406
401
  return (target, propertyKey) => {
407
402
  const companion = mixin.class.prototype[CompanionParentModel];
@@ -962,33 +957,6 @@ const pairedClientHeartbeat = ({
962
957
  controller.signal.addEventListener("abort", handleAbort);
963
958
  return { cleanUpHeartbeat };
964
959
  };
965
- const BASE_OPTIONS = {
966
- maxAttempts: 5,
967
- baseDelayMs: 100,
968
- backoffFactor: 1.5
969
- };
970
- async function retryWithExponentialBackoff(operation, options) {
971
- let attempt = 1;
972
- const _options = { ...BASE_OPTIONS, ...options };
973
- const { maxAttempts, baseDelayMs, backoffFactor } = _options;
974
- let delayMs = baseDelayMs;
975
- while (attempt <= maxAttempts) {
976
- try {
977
- const result = await operation();
978
- return result;
979
- } catch (error) {
980
- KosLog.error(`Attempt ${attempt} failed: ${error}`);
981
- if (attempt < maxAttempts) {
982
- delayMs = baseDelayMs * Math.pow(backoffFactor, attempt);
983
- await new Promise((resolve) => setTimeout(resolve, delayMs));
984
- attempt++;
985
- } else {
986
- throw error;
987
- }
988
- }
989
- }
990
- throw new Error("All attempts failed");
991
- }
992
960
  function getServiceResponse(model, path, method = "get") {
993
961
  const store = model.serviceResponses;
994
962
  if (!store) {
@@ -1024,58 +992,6 @@ function clearAllServiceResponses(model) {
1024
992
  }
1025
993
  store.clear();
1026
994
  }
1027
- const waitForRequest = async (requestId, timeout = 6e4) => new Promise((resolve, reject) => {
1028
- const { unsubscribe } = subscribe(requestId, (op) => {
1029
- log$6.debug(`recieved response for refId ${requestId}: ${op}`);
1030
- unsubscribe();
1031
- clearTimeout(cancel);
1032
- try {
1033
- const body = op?.body ? JSON.parse(op.body) : {};
1034
- resolve(body);
1035
- } catch {
1036
- const body = op?.body || {};
1037
- resolve(body);
1038
- }
1039
- });
1040
- const cancel = setTimeout(() => {
1041
- unsubscribe();
1042
- reject(Error(`Request with ID ${requestId} timed out. Cancelling.`));
1043
- }, timeout);
1044
- });
1045
- const sendRequest = async (requestPromise, params, refId) => {
1046
- const op = waitForRequest(refId);
1047
- const result = await Promise.allSettled([requestPromise(params), op]);
1048
- if (result[0].status === "fulfilled") {
1049
- if (result[1].status === "rejected") {
1050
- throw Error(result[1].reason);
1051
- } else {
1052
- if (result[0].value) {
1053
- if (result[1].value.error) {
1054
- throw Error(result[1].value.error);
1055
- }
1056
- result[0].value.data = result[1].value;
1057
- return result[0].value;
1058
- }
1059
- }
1060
- } else {
1061
- throw Error(result[0].reason);
1062
- }
1063
- return void 0;
1064
- };
1065
- const syncPublish = async ({
1066
- topic,
1067
- msg,
1068
- requestId
1069
- }) => {
1070
- const _requestId = requestId ?? uuid();
1071
- const responsePromise = waitForRequest(_requestId);
1072
- publish(topic, msg, { sync: _requestId });
1073
- const response = await responsePromise;
1074
- if (response.error) {
1075
- throw Error(response.error);
1076
- }
1077
- return response;
1078
- };
1079
995
  function kosIndexAware(options) {
1080
996
  return (target) => {
1081
997
  const collection = options?.collection;
@@ -1400,185 +1316,6 @@ const index$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
1400
1316
  getTroubles,
1401
1317
  resolveTrouble
1402
1318
  }, Symbol.toStringTag, { value: "Module" }));
1403
- function createCancellablePromise(promiseOrOptions, abortController, cancelFuture, future) {
1404
- const options = promiseOrOptions instanceof Promise ? { promise: promiseOrOptions, abortController, cancelFuture, future } : promiseOrOptions;
1405
- const {
1406
- promise,
1407
- abortController: controller,
1408
- cancelFuture: cancelFn,
1409
- future: futureRef
1410
- } = options;
1411
- const cancellablePromise = promise;
1412
- let currentProgress = 0;
1413
- let currentStatus = "PENDING";
1414
- let isRunning = true;
1415
- const progressCallbacks = /* @__PURE__ */ new Set();
1416
- let effectDisposer;
1417
- if (futureRef && typeof futureRef === "object") {
1418
- effectDisposer = autorun(() => {
1419
- const newProgress = futureRef.progress || 0;
1420
- const newStatus = futureRef.status || "PENDING";
1421
- const newIsRunning = !futureRef.endState;
1422
- if (newProgress !== currentProgress || newStatus !== currentStatus || newIsRunning !== isRunning) {
1423
- currentProgress = newProgress;
1424
- currentStatus = newStatus;
1425
- isRunning = newIsRunning;
1426
- progressCallbacks.forEach((callback) => {
1427
- try {
1428
- callback(currentProgress, currentStatus);
1429
- } catch (error) {
1430
- console.warn("Progress callback error:", error);
1431
- }
1432
- });
1433
- }
1434
- });
1435
- }
1436
- promise.finally(() => {
1437
- isRunning = false;
1438
- if (!controller?.signal.aborted) {
1439
- currentStatus = "COMPLETED";
1440
- progressCallbacks.forEach((callback) => {
1441
- try {
1442
- callback(currentProgress, currentStatus);
1443
- } catch (error) {
1444
- console.warn("Progress callback error:", error);
1445
- }
1446
- });
1447
- }
1448
- if (effectDisposer) {
1449
- effectDisposer();
1450
- }
1451
- progressCallbacks.clear();
1452
- });
1453
- cancellablePromise.cancel = async () => {
1454
- if (controller && !controller.signal.aborted) {
1455
- controller.abort();
1456
- }
1457
- if (cancelFn) {
1458
- await cancelFn();
1459
- }
1460
- isRunning = false;
1461
- currentStatus = "CANCELLED";
1462
- progressCallbacks.forEach((callback) => {
1463
- try {
1464
- callback(currentProgress, currentStatus);
1465
- } catch (error) {
1466
- console.warn("Progress callback error:", error);
1467
- }
1468
- });
1469
- if (effectDisposer) {
1470
- effectDisposer();
1471
- }
1472
- };
1473
- cancellablePromise.getController = () => controller;
1474
- cancellablePromise.isCancelled = () => controller?.signal.aborted ?? false;
1475
- Object.defineProperty(cancellablePromise, "progress", {
1476
- get: () => currentProgress,
1477
- enumerable: true
1478
- });
1479
- Object.defineProperty(cancellablePromise, "status", {
1480
- get: () => currentStatus,
1481
- enumerable: true
1482
- });
1483
- Object.defineProperty(cancellablePromise, "isRunning", {
1484
- get: () => isRunning,
1485
- enumerable: true
1486
- });
1487
- cancellablePromise.onProgressUpdate = (callback) => {
1488
- progressCallbacks.add(callback);
1489
- callback(currentProgress, currentStatus);
1490
- return () => progressCallbacks.delete(callback);
1491
- };
1492
- return cancellablePromise;
1493
- }
1494
- function makeCancellable(model, methodCall) {
1495
- const initialFuture = model.futureHandler.future;
1496
- const promise = methodCall(model);
1497
- let newFuture = null;
1498
- setTimeout(() => {
1499
- newFuture = model.futureHandler.future;
1500
- if (newFuture === initialFuture) {
1501
- newFuture = null;
1502
- }
1503
- }, 0);
1504
- return createCancellablePromise({
1505
- promise,
1506
- abortController: void 0,
1507
- // No direct AbortController access
1508
- cancelFuture: async () => {
1509
- if (newFuture) {
1510
- await newFuture.cancelFuture();
1511
- } else {
1512
- const currentFuture = model.futureHandler.future;
1513
- if (currentFuture) {
1514
- await currentFuture.cancelFuture();
1515
- }
1516
- }
1517
- },
1518
- future: newFuture
1519
- // Pass the future for progress tracking
1520
- });
1521
- }
1522
- function withCancellation(model, methodName, ...args) {
1523
- const method = model[methodName];
1524
- if (typeof method !== "function") {
1525
- throw new Error(`${String(methodName)} is not a method`);
1526
- }
1527
- const initialFuture = model.futureHandler.future;
1528
- const promise = method.apply(model, args);
1529
- let targetFuture = null;
1530
- setTimeout(() => {
1531
- const currentFuture = model.futureHandler.future;
1532
- if (currentFuture && currentFuture !== initialFuture) {
1533
- targetFuture = currentFuture;
1534
- }
1535
- }, 0);
1536
- return createCancellablePromise({
1537
- promise,
1538
- abortController: void 0,
1539
- cancelFuture: async () => {
1540
- if (targetFuture) {
1541
- await targetFuture.cancelFuture();
1542
- } else {
1543
- const fallbackFuture = model.futureHandler.future;
1544
- if (fallbackFuture) {
1545
- await fallbackFuture.cancelFuture();
1546
- }
1547
- }
1548
- },
1549
- future: targetFuture
1550
- // Pass the future for progress tracking
1551
- });
1552
- }
1553
- class CancellationBatch {
1554
- operations = [];
1555
- add(model, methodCall) {
1556
- const cancellable = makeCancellable(model, methodCall);
1557
- this.operations.push(cancellable);
1558
- return cancellable;
1559
- }
1560
- async cancelAll() {
1561
- await Promise.all(
1562
- this.operations.map(
1563
- (op) => op.cancel().catch(() => {
1564
- KosLog.warn("Cancellation failed for operation:", op);
1565
- })
1566
- )
1567
- );
1568
- }
1569
- getAllControllers() {
1570
- return this.operations.map((op) => op.getController());
1571
- }
1572
- getActiveCount() {
1573
- return this.operations.filter((op) => !op.isCancelled()).length;
1574
- }
1575
- clear() {
1576
- this.operations = [];
1577
- }
1578
- }
1579
- function createCancellationBatch() {
1580
- return new CancellationBatch();
1581
- }
1582
1319
  const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1583
1320
  __proto__: null,
1584
1321
  sendCanvasData
@@ -1778,7 +1515,7 @@ const updateRegion = async (region) => {
1778
1515
  regionInfo.updateProperty(region);
1779
1516
  };
1780
1517
  async function getKosServiceApi() {
1781
- const { default: API } = await import("./software-info-registration-Cbvzr2Q-.js").then((n) => n.eX);
1518
+ const { default: API } = await import("./software-info-registration-CKRUzp_3.js").then((n) => n.f3);
1782
1519
  return API;
1783
1520
  }
1784
1521
  function kosServiceRequest$7(params) {
@@ -1906,7 +1643,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
1906
1643
  function isTroubleAware(obj) {
1907
1644
  return obj?.troubles !== void 0 && obj?.troubles instanceof Array && obj?.troublesByType !== void 0 && typeof obj?.troublesByType === "object";
1908
1645
  }
1909
- const log$5 = KosLog.createLogger({ name: "services", group: "Services" });
1646
+ const log$9 = KosLog.createLogger({ group: LogGroup.service, name: "services" });
1910
1647
  const studioLogin = async (username, password) => login(username, password, `${BASE_URL}/api/server/login`);
1911
1648
  const login = async (username, password, url = `${BASE_URL}/api/login`) => {
1912
1649
  const response = await kosFetch(`${url}`, {
@@ -1940,7 +1677,7 @@ const startPasswordReset = async (userId, url = `${BASE_URL}/api/startPasswordRe
1940
1677
  };
1941
1678
  const studioResetPassword = async (token2, password) => resetPassword(token2, password, `${BASE_URL}/api/server/resetPassword`);
1942
1679
  const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassword`) => {
1943
- log$5.debug(
1680
+ log$9.debug(
1944
1681
  `resetting password with token ${token2} and password ${password.replace(
1945
1682
  /./g,
1946
1683
  "*"
@@ -1954,9 +1691,9 @@ const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassw
1954
1691
  password
1955
1692
  })
1956
1693
  });
1957
- log$5.debug(`password reset returned status ${response.status}`);
1694
+ log$9.debug(`password reset returned status ${response.status}`);
1958
1695
  if (!response.ok) {
1959
- log$5.error(`password reset failed with message ${response.statusText}`);
1696
+ log$9.error(`password reset failed with message ${response.statusText}`);
1960
1697
  const configResponse2 = await response.json();
1961
1698
  throw Error(
1962
1699
  `${configResponse2?.error}:There was a problem resetting the password.`
@@ -1972,7 +1709,7 @@ const studioAcceptOrgInvitation = async (token2, password, name) => acceptOrgInv
1972
1709
  `${BASE_URL}/api/server/acceptInvite`
1973
1710
  );
1974
1711
  const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/api/server/acceptInvite`) => {
1975
- log$5.debug(
1712
+ log$9.debug(
1976
1713
  `accepting invite with token ${token2} and password ${password.replace(
1977
1714
  /./g,
1978
1715
  "*"
@@ -1987,9 +1724,9 @@ const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/ap
1987
1724
  name
1988
1725
  })
1989
1726
  });
1990
- log$5.debug(`invitation accept returned status ${response.status}`);
1727
+ log$9.debug(`invitation accept returned status ${response.status}`);
1991
1728
  if (!response.ok) {
1992
- log$5.error(`invite failed with message ${response.statusText}`);
1729
+ log$9.error(`invite failed with message ${response.statusText}`);
1993
1730
  const configResponse2 = await response.json();
1994
1731
  throw Error(
1995
1732
  `${configResponse2?.error}:There was a problem accepting the invite.`
@@ -2165,15 +1902,6 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
2165
1902
  gpioApi,
2166
1903
  gpioServiceRequest
2167
1904
  }, Symbol.toStringTag, { value: "Module" }));
2168
- function mapGpioChipToOptions(dto) {
2169
- return dto;
2170
- }
2171
- function createGpioChipModel(dto) {
2172
- return GpioChip.instance(dto.id).options(mapGpioChipToOptions(dto)).build();
2173
- }
2174
- function updateGpioChipModel(dto, model) {
2175
- model.updateModel(mapGpioChipToOptions(dto));
2176
- }
2177
1905
  function filterGpioChipDto(chip) {
2178
1906
  return !!chip.num || chip.num === 0;
2179
1907
  }
@@ -2300,8 +2028,7 @@ GpioChipContainerModelImpl = __decorateClass$1([
2300
2028
  sortKey: "num"
2301
2029
  },
2302
2030
  reconcile: {
2303
- create: createGpioChipModel,
2304
- update: updateGpioChipModel,
2031
+ model: GpioChip,
2305
2032
  filter: filterGpioChipDto,
2306
2033
  idMapper: mapGpioChipId,
2307
2034
  afterCreate: afterGpioChipCreated
@@ -2311,15 +2038,15 @@ GpioChipContainerModelImpl = __decorateClass$1([
2311
2038
  ], GpioChipContainerModelImpl);
2312
2039
  const GpioChipContainer = GpioChipContainerModelImpl.Registration;
2313
2040
  GpioChipContainer.addRelatedModel(GpioChip);
2314
- const log$4 = KosLog.createLogger({
2315
- name: "studio-properties-service",
2316
- group: "Services"
2041
+ const log$8 = KosLog.createLogger({
2042
+ group: LogGroup.service,
2043
+ name: "studio-properties-service"
2317
2044
  });
2318
2045
  const SERVICE_PATH = "/api/kos/studio/properties";
2319
2046
  const getStudioProperties = async (connectionId) => {
2320
- log$4.debug("sending GET for studio-properties");
2047
+ log$8.debug("sending GET for studio-properties");
2321
2048
  if (!connectionId) {
2322
- log$4.error("connectionId is undefined");
2049
+ log$8.error("connectionId is undefined");
2323
2050
  throw new Error("connectionId is undefined");
2324
2051
  }
2325
2052
  return await api$8.get(
@@ -2408,7 +2135,10 @@ let StudioPropertiesModelImpl = class {
2408
2135
  }, {});
2409
2136
  this.data.setValues(update ?? DEFAULT_STUDIO_PROPERTIES);
2410
2137
  KosLog.ifDebug(
2411
- () => this.logger.debug(`studio-properties loaded: ${JSON.stringify(update)}`)
2138
+ () => this.logger.debug(
2139
+ `studio-properties loaded: ${JSON.stringify(update)}`
2140
+ ),
2141
+ this.logger
2412
2142
  );
2413
2143
  }
2414
2144
  }
@@ -2481,7 +2211,7 @@ const MessageContainer = styled.div`
2481
2211
  color: ${({ theme }) => theme === "light" ? "black" : "white"};
2482
2212
  z-index: 10000;
2483
2213
  `;
2484
- const log$3 = KosLog.createLogger({ name: "error-boundary" });
2214
+ const log$7 = KosLog.createLogger({ group: LogGroup.ui, name: "error-boundary" });
2485
2215
  class ErrorBoundary extends React.Component {
2486
2216
  constructor(props) {
2487
2217
  super(props);
@@ -2498,7 +2228,7 @@ class ErrorBoundary extends React.Component {
2498
2228
  }
2499
2229
  componentDidCatch(error, errorInfo) {
2500
2230
  const seam = this.props.name ? ` in ${this.props.name}` : "";
2501
- log$3.error(
2231
+ log$7.error(
2502
2232
  `Error boundary caught${seam}: ${error?.message ?? error}`,
2503
2233
  error,
2504
2234
  errorInfo.componentStack
@@ -2608,11 +2338,14 @@ const KosModelProvider = ({
2608
2338
  );
2609
2339
  return /* @__PURE__ */ jsx(KosModelContext.Provider, { value: { model, setModel: setKosModel }, children });
2610
2340
  };
2611
- const log$2 = KosLog.createLogger({ name: "kos-model-hierarchy-context" });
2341
+ const log$6 = KosLog.createLogger({
2342
+ group: LogGroup.ui,
2343
+ name: "kos-model-hierarchy-context"
2344
+ });
2612
2345
  const defaultNestedProps = {
2613
2346
  models: [],
2614
2347
  addModel: () => {
2615
- log$2.debug("Default implementation being used. Do Nothing.");
2348
+ log$6.debug("Default implementation being used. Do Nothing.");
2616
2349
  }
2617
2350
  };
2618
2351
  const NestedModelContext = createContext(defaultNestedProps);
@@ -2621,7 +2354,7 @@ const KosModelCollectionProvider = ({ children }) => {
2621
2354
  const addModel = useCallback(
2622
2355
  (model) => {
2623
2356
  if (!models.includes(model)) {
2624
- log$2.debug("adding to hierarchy context", model.id);
2357
+ log$6.debug("adding to hierarchy context", model.id);
2625
2358
  setModels((prevModels) => [...prevModels, model]);
2626
2359
  }
2627
2360
  },
@@ -2653,7 +2386,10 @@ const useModelFromHierarchy = (type) => {
2653
2386
  });
2654
2387
  return context[0];
2655
2388
  };
2656
- const log$1 = KosLog.createLogger({ name: "kos-model-loader" });
2389
+ const log$5 = KosLog.createLogger({
2390
+ group: LogGroup.ui,
2391
+ name: "kos-model-loader"
2392
+ });
2657
2393
  const DefaultLoader = () => /* @__PURE__ */ jsx("div", {});
2658
2394
  const KosModelLoader = ({ fallback, children, ...modelProps }) => /* @__PURE__ */ jsx(KosModelProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback, children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(KosModelLoaderDisplay, { ...modelProps, children }) }) }) });
2659
2395
  const KosModelLoaderDisplay = (props) => {
@@ -2672,7 +2408,7 @@ const KosModelLoaderDisplay = (props) => {
2672
2408
  }
2673
2409
  }, [hierarchyContext, props.model, setModel]);
2674
2410
  if (props.error) {
2675
- log$1.error(props.error);
2411
+ log$5.error(props.error);
2676
2412
  throw new Error(props.error);
2677
2413
  }
2678
2414
  const loader = props.loading || /* @__PURE__ */ jsx(DefaultLoader, {});
@@ -2712,6 +2448,10 @@ const useKosCore = () => {
2712
2448
  return context;
2713
2449
  };
2714
2450
  const KOS_RECOVERING_SESSION_KEY = "kos:recovering";
2451
+ const log$4 = KosLog.createLogger({
2452
+ group: LogGroup.ui,
2453
+ name: "reload-on-disconnect-policy"
2454
+ });
2715
2455
  const DEFAULT_GRACE_MS = 3e3;
2716
2456
  const defaultReloadFn = () => {
2717
2457
  window.location.reload();
@@ -2745,12 +2485,12 @@ const ReloadOnDisconnectPolicy = ({
2745
2485
  JSON.stringify(info)
2746
2486
  );
2747
2487
  } catch (err) {
2748
- KosLog.warn(
2488
+ log$4.warn(
2749
2489
  "ReloadOnDisconnectPolicy: failed to write sessionStorage",
2750
2490
  err
2751
2491
  );
2752
2492
  }
2753
- KosLog.warn(
2493
+ log$4.warn(
2754
2494
  `ReloadOnDisconnectPolicy: scheduling reload in ${graceMs}ms (code=${info.code}, wasClean=${info.wasClean})`
2755
2495
  );
2756
2496
  pendingReloadRef.current = setTimeout(() => {
@@ -2758,7 +2498,7 @@ const ReloadOnDisconnectPolicy = ({
2758
2498
  try {
2759
2499
  onBeforeReload?.(info);
2760
2500
  } catch (err) {
2761
- KosLog.error("ReloadOnDisconnectPolicy: onBeforeReload threw", err);
2501
+ log$4.error("ReloadOnDisconnectPolicy: onBeforeReload threw", err);
2762
2502
  }
2763
2503
  reloadFn();
2764
2504
  }, graceMs);
@@ -3213,6 +2953,10 @@ const TokenContext = React.createContext(token);
3213
2953
  function TokenProvider({ children }) {
3214
2954
  return /* @__PURE__ */ jsx(TokenContext.Provider, { value: token, children });
3215
2955
  }
2956
+ const log$3 = KosLog.createLogger({
2957
+ group: LogGroup.ui,
2958
+ name: "kos-translations-provider"
2959
+ });
3216
2960
  const TranslationContainerContext = createContext(void 0);
3217
2961
  const getDefaultHost = () => {
3218
2962
  const defaultHost = window.location.origin;
@@ -3246,7 +2990,7 @@ const KosTranslationProvider = ({
3246
2990
  const descriptorsResults = await Promise.allSettled(descriptorPromises);
3247
2991
  const descriptors = descriptorsResults.map((d) => {
3248
2992
  if (d.status === "rejected") {
3249
- KosLog.warn("Failed to load localization descriptor", d.reason);
2993
+ log$3.warn("Failed to load localization descriptor", d.reason);
3250
2994
  return void 0;
3251
2995
  }
3252
2996
  return d.value;
@@ -3352,8 +3096,11 @@ function renderDecodedPreview({
3352
3096
  ctx.clearRect(0, 0, width * pixelSize, height * pixelSize);
3353
3097
  ctx.drawImage(tempCanvas, 0, 0, width * pixelSize, height * pixelSize);
3354
3098
  }
3355
- const log = KosLog.createLogger({ name: "canvas-streamer" });
3356
- log.debug("main-view component loaded");
3099
+ const log$2 = KosLog.createLogger({
3100
+ group: LogGroup.ui,
3101
+ name: "canvas-streamer"
3102
+ });
3103
+ log$2.debug("main-view component loaded");
3357
3104
  const PIXEL_SIZE = 10;
3358
3105
  const CanvasStreamerBase = observer(
3359
3106
  ({
@@ -3580,7 +3327,7 @@ function withStorageDeviceContainer(WrappedComponent) {
3580
3327
  return /* @__PURE__ */ jsx(KosModelLoader2, { ...status, children: /* @__PURE__ */ jsx(WrappedComponent, { ...props, storageDeviceContainer: model }) });
3581
3328
  };
3582
3329
  }
3583
- const LOG = KosLog.createLogger({ name: "use-timer" });
3330
+ const LOG = KosLog.createLogger({ group: LogGroup.ui, name: "use-timer" });
3584
3331
  const useTimer = ({
3585
3332
  timerName,
3586
3333
  onTimerExpired,
@@ -3702,6 +3449,10 @@ const Trans = (props) => {
3702
3449
  const element = substituteBlocks(translated, components || {});
3703
3450
  return /* @__PURE__ */ jsx("span", { className: props.className, children: element });
3704
3451
  };
3452
+ const log$1 = KosLog.createLogger({
3453
+ group: LogGroup.ui,
3454
+ name: "use-translation"
3455
+ });
3705
3456
  const cache = /* @__PURE__ */ new Map();
3706
3457
  function fetchData(key, fetcher) {
3707
3458
  if (cache.has(key)) {
@@ -3776,7 +3527,7 @@ const useKosTranslation = (namespace, baseOptions) => {
3776
3527
  if (translationModel) {
3777
3528
  return translationModel.resolveKey(expandedKey, options);
3778
3529
  }
3779
- KosLog.debug(
3530
+ log$1.debug(
3780
3531
  `Translation model ${namespace} not ready for key: ${expandedKey}`
3781
3532
  );
3782
3533
  return expandedKey;
@@ -4820,6 +4571,10 @@ const useKosTimeFormats = (timeFormatMap = DEFAULT_FORMAT_MAP) => {
4820
4571
  };
4821
4572
  };
4822
4573
  const useLocalComputed = (callback, dependencies) => useMemo(() => kosComputed(callback), dependencies);
4574
+ const log = KosLog.createLogger({
4575
+ group: LogGroup.ui,
4576
+ name: "use-mutation-observer"
4577
+ });
4823
4578
  const DEFAULT_OPTIONS = {
4824
4579
  config: { attributes: true, childList: true, subtree: true }
4825
4580
  };
@@ -4842,7 +4597,7 @@ function useMutationObserver(targetEl, cb2, options = DEFAULT_OPTIONS) {
4842
4597
  try {
4843
4598
  observer3.observe(targetEl, config);
4844
4599
  } catch (e) {
4845
- KosLog.error(e);
4600
+ log.error(e);
4846
4601
  }
4847
4602
  return () => {
4848
4603
  if (observer3) {
@@ -4863,8 +4618,8 @@ const DomIntersectionStrategy = {
4863
4618
  }
4864
4619
  };
4865
4620
  const logger = KosLog.createLogger({
4866
- name: "usePressGesture",
4867
- group: "kos-hooks"
4621
+ group: LogGroup.ui,
4622
+ name: "usePressGesture"
4868
4623
  });
4869
4624
  function usePressGesture({
4870
4625
  onPressed,
@@ -5118,12 +4873,12 @@ function withProjectReloading(WrappedComponent) {
5118
4873
  registerApiLevels({ "kos-ui-sdk": 24 });
5119
4874
  export {
5120
4875
  AncestorPathVisitor,
5121
- aY as AuthState,
4876
+ aX as AuthState,
5122
4877
  BASE_URL,
5123
- aZ as BrowserKosRouter,
5124
- a_ as BrowserRouter,
5125
- a$ as CancellableServiceManager,
5126
- CancellationBatch,
4878
+ aY as BrowserKosRouter,
4879
+ aZ as BrowserRouter,
4880
+ a_ as CancellableServiceManager,
4881
+ a$ as CancellationBatch,
5127
4882
  CanvasDispatcher,
5128
4883
  index$7 as CanvasDispatcherServices,
5129
4884
  b0 as CanvasRenderer,
@@ -5263,65 +5018,66 @@ export {
5263
5018
  LoadingMessage,
5264
5019
  c9 as LogBlock,
5265
5020
  ca as LogBlockContainer,
5266
- LogConfig,
5021
+ LogGroup,
5267
5022
  cb as LogStream,
5268
5023
  cc as LogStreamContainer,
5269
5024
  index$9 as LogStreamServices,
5270
5025
  cd as LoggerSetup,
5271
- ce as MODEL_DELETION_DELAY,
5026
+ ce as MESSAGE_LOGGER_NAME,
5027
+ cf as MODEL_DELETION_DELAY,
5272
5028
  MiddlewareChain,
5273
5029
  MixinModels,
5274
5030
  ModelEffects,
5275
- cf as ModelError,
5031
+ cg as ModelError,
5276
5032
  MultipleFutureContainerSetup,
5277
- cg as MultipleFutureHandler,
5033
+ ch as MultipleFutureHandler,
5278
5034
  NestedModelContext,
5279
- ch as NetworkInterface,
5035
+ ci as NetworkInterface,
5280
5036
  NetworkInterfaceContainer,
5281
5037
  index$5 as NetworkInterfaceServices,
5282
5038
  ObservableData,
5283
- ci as OptionsRequired,
5039
+ cj as OptionsRequired,
5284
5040
  Ota,
5285
5041
  OutsideAlerter,
5286
5042
  PLUGIN_EXTENSION_NAME,
5287
- cj as PORT,
5288
- ck as PROFILE_ENABLE_RELEASES,
5289
- cl as PROFILE_LOG_DEBUG,
5290
- cm as PROFILE_LOG_INFO,
5291
- cn as PROFILE_RELAX_STORE_VALIDATION,
5292
- co as PROFILE_TOOLS_PREVIEW,
5293
- cp as ParentModel,
5043
+ ck as PORT,
5044
+ cl as PROFILE_ENABLE_RELEASES,
5045
+ cm as PROFILE_LOG_DEBUG,
5046
+ cn as PROFILE_LOG_INFO,
5047
+ co as PROFILE_RELAX_STORE_VALIDATION,
5048
+ cp as PROFILE_TOOLS_PREVIEW,
5049
+ cq as ParentModel,
5294
5050
  PluginExtensionManager,
5295
5051
  ProgressBar,
5296
5052
  ReconnectingOverlay,
5297
5053
  ReferenceConfig,
5298
5054
  Registration$1 as RegionInfo,
5299
5055
  index$f as RegionServices,
5300
- cq as RegistrationManager,
5301
- cr as Registry,
5302
- cs as ReloadAwareSetup,
5056
+ cr as RegistrationManager,
5057
+ cs as Registry,
5058
+ ct as ReloadAwareSetup,
5303
5059
  ReloadOnDisconnectPolicy,
5304
- ct as ReplayStrategy,
5305
- cu as ResponseRetention,
5306
- cv as STATUS,
5307
- cw as SelfManagedReload,
5308
- cx as ServiceFactory,
5309
- cy as ServiceRequestError,
5310
- cz as ServiceRequestHandlers,
5311
- cA as SingletonKosModelRegistrationFactory,
5060
+ cu as ReplayStrategy,
5061
+ cv as ResponseRetention,
5062
+ cw as STATUS,
5063
+ cx as SelfManagedReload,
5064
+ cy as ServiceFactory,
5065
+ cz as ServiceRequestError,
5066
+ cA as ServiceRequestHandlers,
5067
+ cB as SingletonKosModelRegistrationFactory,
5312
5068
  SoftwareInfo,
5313
5069
  SoftwareInfoContext,
5314
5070
  SoftwareInfoProvider,
5315
5071
  index$2 as SoftwareInfoServices,
5316
- cB as StateActionHandlers,
5072
+ cC as StateActionHandlers,
5317
5073
  StateBean,
5318
5074
  index$e as StateBeanServices,
5319
- cC as StateEntryHandlers,
5320
- cD as StateExitHandlers,
5075
+ cD as StateEntryHandlers,
5076
+ cE as StateExitHandlers,
5321
5077
  StateMachineSetup,
5322
5078
  StateProp,
5323
5079
  index$d as StatePropServices,
5324
- cE as StorageDevice,
5080
+ cF as StorageDevice,
5325
5081
  StorageDeviceContainer,
5326
5082
  index$4 as StorageDeviceServices,
5327
5083
  StudioProperties,
@@ -5330,26 +5086,26 @@ export {
5330
5086
  TIMER_END,
5331
5087
  TIMER_EVENT,
5332
5088
  TOPIC_TIMER_TICK_EVENT,
5333
- cF as TRANSPORT_NOT_READY,
5089
+ cG as TRANSPORT_NOT_READY,
5334
5090
  TimerManager,
5335
5091
  TokenContext,
5336
5092
  TokenProvider,
5337
- cG as Topics,
5093
+ cH as Topics,
5338
5094
  Trans,
5339
- cH as TransitionMap,
5340
- cI as Transitions,
5341
- cJ as Translation,
5095
+ cI as TransitionMap,
5096
+ cJ as Transitions,
5097
+ cK as Translation,
5342
5098
  TranslationContainer,
5343
5099
  TranslationContainerContext,
5344
5100
  TranslationContext,
5345
- cK as TransportFactory,
5346
- cL as TransportNotReadyError,
5101
+ cL as TransportFactory,
5102
+ cM as TransportNotReadyError,
5347
5103
  Trouble,
5348
5104
  TroubleAwareSetup,
5349
5105
  TroubleContainer,
5350
5106
  index$8 as TroubleServices,
5351
- cM as Troubles,
5352
- cN as UsbUpdate,
5107
+ cN as Troubles,
5108
+ cO as UsbUpdate,
5353
5109
  UsbUpdateContainer,
5354
5110
  index$3 as UsbUpdateServices,
5355
5111
  service$3 as VFS_SERVICE,
@@ -5357,138 +5113,136 @@ export {
5357
5113
  service$1 as VFS_SERVICE_1_8_1,
5358
5114
  service as VFS_SERVICE_1_9_X,
5359
5115
  ViewModelConfig,
5360
- cO as WS_EVENT_TYPE,
5116
+ cP as WS_EVENT_TYPE,
5361
5117
  WebSocketEvents,
5362
5118
  WebSocketTransport,
5363
- cP as WsEventFactory,
5364
- cQ as WsEventModel,
5119
+ cQ as WsEventFactory,
5120
+ cR as WsEventModel,
5365
5121
  acceptOrgInvitation,
5366
5122
  addDaysToDate,
5367
- cR as addFuture,
5123
+ cS as addFuture,
5368
5124
  addMonthsToDate,
5369
- cS as api,
5370
- cT as applyFunctionalEnhancements,
5125
+ cT as api,
5126
+ cU as applyFunctionalEnhancements,
5371
5127
  applyMixins,
5372
5128
  arraysEqual,
5373
- cU as awaitFutureCall,
5374
- cV as buildConfigBeanModel,
5375
- cW as buildFuture,
5376
- cX as buildFutureModel,
5377
- cY as cancelFuture,
5378
- cZ as checkAppsStarted,
5379
- c_ as checkWildcardPattern,
5129
+ cV as awaitFutureCall,
5130
+ cW as buildConfigBeanModel,
5131
+ cX as buildFuture,
5132
+ cY as buildFutureModel,
5133
+ cZ as cancelFuture,
5134
+ c_ as checkAppsStarted,
5135
+ c$ as checkWildcardPattern,
5380
5136
  clearAllServiceResponses,
5381
5137
  clearModelHookCacheEntry,
5382
5138
  clearPath,
5383
5139
  clearServiceResponse,
5384
5140
  collectLocaleOptions,
5385
- c$ as convert,
5141
+ d0 as convert,
5386
5142
  convertFileSizeRaw,
5387
- d0 as convertWithUnits,
5388
- d1 as createBaseMessage,
5389
- d2 as createBroadcastMessageResponse,
5390
- createCancellablePromise,
5391
- d3 as createCancellableService,
5392
- createCancellationBatch,
5143
+ d1 as convertWithUnits,
5144
+ d2 as createBaseMessage,
5145
+ d3 as createBroadcastMessageResponse,
5146
+ d4 as createCancellablePromise,
5147
+ d5 as createCancellableService,
5148
+ d6 as createCancellationBatch,
5393
5149
  createClient,
5394
- d4 as createFosBaseMessage,
5395
- d5 as createHeaders,
5396
- d6 as createKosHtpMessageResponse,
5397
- d7 as createKosMessage,
5398
- d8 as createKosMessageResponse,
5399
- d9 as createMessageBody,
5400
- da as createModelDependency,
5401
- db as createOptionKey,
5402
- dc as createPropKey,
5403
- dd as createReadableStream,
5404
- de as createStudioMessage,
5405
- df as createStudioMessageRequest,
5406
- dg as createStudioMessageResponse,
5150
+ d7 as createFosBaseMessage,
5151
+ d8 as createHeaders,
5152
+ d9 as createKosHtpMessageResponse,
5153
+ da as createKosMessage,
5154
+ db as createKosMessageResponse,
5155
+ dc as createMessageBody,
5156
+ dd as createModelDependency,
5157
+ de as createOptionKey,
5158
+ df as createPropKey,
5159
+ dg as createReadableStream,
5160
+ dh as createStudioMessage,
5161
+ di as createStudioMessageRequest,
5162
+ dj as createStudioMessageResponse,
5407
5163
  debounce,
5408
- dh as del,
5409
- di as deleteFuture,
5164
+ dk as del,
5165
+ dl as deleteFuture,
5410
5166
  destroyKosModel,
5411
- dj as evaluateScopes,
5412
- dk as executeApiMethod,
5413
- dl as executeChildrenModelLifecycle,
5414
- dm as executeDependentModelLifecycle,
5415
- dn as executeListLifecycle,
5167
+ dm as evaluateScopes,
5168
+ dn as executeApiMethod,
5169
+ dp as executeChildrenModelLifecycle,
5170
+ dq as executeDependentModelLifecycle,
5171
+ dr as executeListLifecycle,
5416
5172
  executeServiceRequest,
5417
5173
  fetchModel,
5418
- dp as findModel,
5419
- dq as findModels,
5174
+ ds as findModel,
5175
+ dt as findModels,
5420
5176
  formatDate,
5421
5177
  formatDateSince,
5422
5178
  formatDateTime,
5423
5179
  formatTime,
5424
- dr as get,
5425
- ds as getAllKosCompanionModels,
5180
+ du as get,
5181
+ dv as getAllKosCompanionModels,
5426
5182
  getCalendarMonthArray,
5427
- dt as getConfigBean,
5183
+ dw as getConfigBean,
5428
5184
  getDayStrings,
5429
5185
  getDays,
5430
5186
  getDaysArray,
5431
5187
  getDaysInMonth$1 as getDaysInMonth,
5432
- du as getDependenciesByLifecycle,
5188
+ dx as getDependenciesByLifecycle,
5433
5189
  getFormattedDate,
5434
5190
  getFormattedMonth,
5435
5191
  getFormattedMonthsArray,
5436
5192
  getFormattedYear,
5437
5193
  getFormattedYearsArray,
5438
- dv as getFutures,
5439
- dw as getHttpRouteHandlers,
5440
- dx as getKosCompanionModel,
5441
- dy as getKosConnectionId,
5194
+ dy as getFutures,
5195
+ dz as getHttpRouteHandlers,
5196
+ dA as getKosCompanionModel,
5197
+ dB as getKosConnectionId,
5442
5198
  getKosLocalizationDescriptor,
5443
- dz as getKosMessageLogging,
5444
5199
  getKosModel,
5445
- dA as getKosModelActivationState,
5200
+ dC as getKosModelActivationState,
5446
5201
  getKosModelSync,
5447
- dB as getKosModelType,
5202
+ dD as getKosModelType,
5448
5203
  getKosServiceApi,
5449
- dC as getKosSessionKey,
5204
+ dE as getKosSessionKey,
5450
5205
  getLastDayOfMonth,
5451
- dD as getLocalizationDescriptor,
5452
- dE as getLogLevel,
5453
- dF as getLogMessageToStudio,
5454
- dG as getMessageBody,
5206
+ dF as getLocalizationDescriptor,
5207
+ dG as getLogLevel,
5208
+ dH as getMessageBody,
5455
5209
  getMonthsArray,
5456
- dH as getObservableCompanions,
5210
+ dI as getObservableCompanions,
5457
5211
  getQueryParams,
5458
5212
  getServiceResponse,
5459
- dI as getStartedApps,
5460
- dJ as getTranslations,
5213
+ dJ as getStartedApps,
5214
+ dK as getTranslations,
5461
5215
  getYearsArray,
5462
- dK as handleServiceRequestError,
5216
+ dL as handleServiceRequestError,
5463
5217
  hasCachedResponse,
5464
- dL as hasDecimals,
5465
- dM as hasHttpRouteHandlers,
5466
- dN as hasKosProfile,
5218
+ dM as hasDecimals,
5219
+ dN as hasHttpRouteHandlers,
5220
+ dO as hasKosProfile,
5467
5221
  hasReadyHook,
5468
5222
  hslStringToHex,
5469
5223
  hslToHex,
5470
- dO as httpDelete,
5224
+ dP as httpDelete,
5471
5225
  initKosProvider,
5472
5226
  initializeStateMachine,
5473
5227
  injectStateMachineSupport,
5474
- dP as isBoolean,
5228
+ dQ as isBoolean,
5475
5229
  isDisposable,
5476
5230
  isIndexableItem,
5477
- dQ as isKosCompanionTypeFactory,
5478
- dR as isKosDataModel,
5479
- dS as isKosExecutionContext,
5480
- dT as isKosLoggingEnabled,
5231
+ dR as isKosCompanionTypeFactory,
5232
+ dS as isKosDataModel,
5233
+ dT as isKosExecutionContext,
5234
+ dU as isKosLoggingEnabled,
5481
5235
  isKosModel,
5482
- dU as isKosModelContainer,
5483
- dV as isKosModelReady,
5236
+ dV as isKosModelContainer,
5237
+ dW as isKosModelReady,
5484
5238
  isLeapYear,
5485
- dW as isLocalRefId,
5486
- dX as isNumber,
5487
- dY as isPrintable,
5488
- dZ as isTransportNotReadyError,
5239
+ dX as isLocalRefId,
5240
+ dY as isNumber,
5241
+ dZ as isPrintable,
5242
+ d_ as isTransportNotReadyError,
5489
5243
  isTroubleAware,
5490
5244
  isValidDate,
5491
- d_ as kosAction,
5245
+ d$ as kosAction,
5492
5246
  kosAutoEffect,
5493
5247
  kosChild,
5494
5248
  kosCompanion,
@@ -5499,89 +5253,88 @@ export {
5499
5253
  kosContainerAware,
5500
5254
  kosContainerIndexAware,
5501
5255
  kosContext,
5502
- d$ as kosDependency,
5503
- e0 as kosEffect,
5256
+ e0 as kosDependency,
5257
+ e1 as kosEffect,
5504
5258
  kosFetch,
5505
- e1 as kosFuture,
5506
- e2 as kosFutureAware,
5259
+ e2 as kosFuture,
5260
+ e3 as kosFutureAware,
5507
5261
  kosIndexAware,
5508
- kosLogger,
5509
5262
  kosLoggerAware,
5510
5263
  kosMixin,
5511
5264
  kosModel,
5512
- e3 as kosModelEffect,
5265
+ e4 as kosModelEffect,
5513
5266
  kosMultipleFutureAware,
5514
- e4 as kosObservable,
5267
+ e5 as kosObservable,
5515
5268
  kosParentAware,
5516
5269
  kosReference,
5517
- e5 as kosReloadAware,
5270
+ e6 as kosReloadAware,
5518
5271
  kosServiceRequest$8 as kosServiceRequest,
5519
5272
  kosStateBean,
5520
- e6 as kosStateEntry,
5521
- e7 as kosStateExit,
5522
- e8 as kosStateGuard,
5523
- e9 as kosStateMachine,
5273
+ e7 as kosStateEntry,
5274
+ e8 as kosStateExit,
5275
+ e9 as kosStateGuard,
5276
+ ea as kosStateMachine,
5524
5277
  kosStateProp,
5525
5278
  kosSubscribe,
5526
- ea as kosTopicHandler,
5279
+ eb as kosTopicHandler,
5527
5280
  kosTroubleAware,
5528
5281
  kosViewModel,
5529
- eb as kosWhen,
5282
+ ec as kosWhen,
5530
5283
  login,
5531
5284
  makeAutoObservable2 as makeAutoObservable,
5532
- makeCancellable,
5285
+ ed as makeCancellable,
5533
5286
  makeObservable,
5534
- ec as mapConfigBeanModelToDto,
5535
- ed as mapDataToModel,
5536
- ee as mapDtoToConfigBeanModel,
5537
- ef as mapDtoToFutureModel,
5538
- eg as mapDtoToFutureOptions,
5539
- eh as mapUpdateDtoToConfigBeanModel,
5287
+ ee as mapConfigBeanModelToDto,
5288
+ ef as mapDataToModel,
5289
+ eg as mapDtoToConfigBeanModel,
5290
+ eh as mapDtoToFutureModel,
5291
+ ei as mapDtoToFutureOptions,
5292
+ ej as mapUpdateDtoToConfigBeanModel,
5540
5293
  mergeLocalizationDescriptors,
5541
- ei as modelEventTopicFactory,
5542
- ej as modelFactory,
5294
+ ek as modelEventTopicFactory,
5295
+ el as modelFactory,
5543
5296
  modelHookCache,
5544
- ek as modelTypeEventTopicFactory,
5545
- el as modifyConfigBean,
5546
- em as modifyFuture,
5297
+ em as modelTypeEventTopicFactory,
5298
+ en as modifyConfigBean,
5299
+ eo as modifyFuture,
5547
5300
  pairedClientHeartbeat,
5548
- en as parseWildcardSegment,
5549
- eo as pipe,
5550
- ep as post,
5551
- eq as preloadKosModel,
5552
- er as processId,
5301
+ ep as parseWildcardSegment,
5302
+ eq as pipe,
5303
+ er as post,
5304
+ es as preloadKosModel,
5305
+ et as processId,
5553
5306
  processMiddleware,
5554
- es as put,
5307
+ eu as put,
5555
5308
  readModelHookEntry,
5556
- et as registerCompanionModel,
5557
- eu as registerCoreModels,
5558
- ev as registerExtensionPoint,
5559
- ew as registerHttpRoutes,
5560
- ex as registerKosModel,
5561
- ey as registerLegacyModel,
5562
- ez as resetKosModel,
5309
+ ev as registerCompanionModel,
5310
+ ew as registerCoreModels,
5311
+ ex as registerExtensionPoint,
5312
+ ey as registerHttpRoutes,
5313
+ ez as registerKosModel,
5314
+ eA as registerLegacyModel,
5315
+ eB as resetKosModel,
5563
5316
  resetPassword,
5564
- eA as resolveBaseUrl,
5565
- eB as resolveChild,
5566
- eC as resolveContainerDeltas,
5567
- eD as resolveItemListDeltas,
5568
- eE as resolveKosCompanion,
5569
- eF as resolveKosContext,
5570
- eG as resolveKosProfiles,
5571
- eH as resolveListDeltas,
5572
- eI as resolveServiceRequestParameters,
5573
- eJ as resolveServiceUrl,
5317
+ eC as resolveBaseUrl,
5318
+ eD as resolveChild,
5319
+ eE as resolveContainerDeltas,
5320
+ eF as resolveItemListDeltas,
5321
+ eG as resolveKosCompanion,
5322
+ eH as resolveKosContext,
5323
+ eI as resolveKosProfiles,
5324
+ eJ as resolveListDeltas,
5325
+ eK as resolveServiceRequestParameters,
5326
+ eL as resolveServiceUrl,
5574
5327
  resolveVariable,
5575
- retryWithExponentialBackoff,
5576
- eK as sendAsyncIntent,
5577
- eL as sendBroadcastMessage,
5578
- eM as sendIntent,
5579
- eN as sendKosHttpMessageResponse,
5580
- eO as sendKosMessage,
5328
+ eM as retryWithExponentialBackoff,
5329
+ eN as sendAsyncIntent,
5330
+ eO as sendBroadcastMessage,
5331
+ eP as sendIntent,
5332
+ eQ as sendKosHttpMessageResponse,
5333
+ eR as sendKosMessage,
5581
5334
  sendKosMessageResponse,
5582
- sendRequest,
5583
- eP as sendStudioMessage,
5584
- eQ as sendStudioMessageRequest,
5335
+ eS as sendRequest,
5336
+ eT as sendStudioMessage,
5337
+ eU as sendStudioMessageRequest,
5585
5338
  startPasswordReset,
5586
5339
  stringComponentInsert,
5587
5340
  studioAcceptOrgInvitation,
@@ -5589,10 +5342,10 @@ export {
5589
5342
  studioResetPassword,
5590
5343
  studioStartPasswordReset,
5591
5344
  subscribeStore,
5592
- syncPublish,
5593
- eR as troubleByTypeReducer,
5594
- eS as troubleDataFactory,
5595
- eT as unloadKosModel,
5345
+ eV as syncPublish,
5346
+ eW as troubleByTypeReducer,
5347
+ eX as troubleDataFactory,
5348
+ eY as unloadKosModel,
5596
5349
  updateCompanionModelRegistration,
5597
5350
  updateModelRegistration,
5598
5351
  updateRegion,
@@ -5656,13 +5409,13 @@ export {
5656
5409
  useViewModel,
5657
5410
  useYears,
5658
5411
  useYearsOptions,
5659
- uuid,
5412
+ eZ as uuid,
5660
5413
  variableToHex,
5661
- eU as waitForAppToStart,
5662
- eV as waitForAppsToStart,
5663
- waitForRequest,
5414
+ e_ as waitForAppToStart,
5415
+ e$ as waitForAppsToStart,
5416
+ f0 as waitForRequest,
5664
5417
  whenReady,
5665
- withCancellation,
5418
+ f1 as withCancellation,
5666
5419
  withDevice,
5667
5420
  withKosTime,
5668
5421
  withNetworkInterfaceContainer,
@@ -5674,6 +5427,6 @@ export {
5674
5427
  withTroubleContainer,
5675
5428
  withUsbUpdateContainer,
5676
5429
  wrapPromise,
5677
- eW as wrapWithFutureLifecycle
5430
+ f2 as wrapWithFutureLifecycle
5678
5431
  };
5679
5432
  //# sourceMappingURL=index.js.map