@openfin/core 42.100.91 → 42.100.94

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.
package/out/stub.js CHANGED
@@ -361,13 +361,13 @@ async function promiseMapSerial(arr, func) {
361
361
  }
362
362
  promises.promiseMapSerial = promiseMapSerial;
363
363
 
364
- var __classPrivateFieldSet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
364
+ var __classPrivateFieldSet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
365
365
  if (kind === "m") throw new TypeError("Private method is not writable");
366
366
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
367
367
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
368
368
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
369
369
  };
370
- var __classPrivateFieldGet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
370
+ var __classPrivateFieldGet$i = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
371
371
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
372
372
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
373
373
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -452,7 +452,7 @@ class EmitterBase extends Base {
452
452
  this.emit = (eventType, payload, ...args) => {
453
453
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
454
454
  };
455
- this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
455
+ this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
456
456
  /**
457
457
  * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
458
458
  * `once` subscription.
@@ -462,14 +462,14 @@ class EmitterBase extends Base {
462
462
  * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
463
463
  */
464
464
  this.cleanUpRemovedListener = (eventType, listener) => {
465
- const deregister = __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
465
+ const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
466
466
  if (deregister) {
467
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
467
+ const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
468
468
  emitter.removeListener(eventType, deregister);
469
469
  }
470
470
  };
471
471
  this.getOrCreateEmitter = () => {
472
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
472
+ const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
473
473
  if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
474
474
  emitter.on('removeListener', this.cleanUpRemovedListener);
475
475
  }
@@ -511,8 +511,8 @@ class EmitterBase extends Base {
511
511
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
512
512
  return Promise.resolve();
513
513
  };
514
- __classPrivateFieldSet$g(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
515
- __classPrivateFieldSet$g(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
514
+ __classPrivateFieldSet$h(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
515
+ __classPrivateFieldSet$h(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
516
516
  this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
517
517
  }
518
518
  /**
@@ -541,7 +541,7 @@ class EmitterBase extends Base {
541
541
  */
542
542
  async once(eventType, listener, options) {
543
543
  const deregister = () => this.deregisterEventListener(eventType);
544
- __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
544
+ __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
545
545
  await this.registerEventListener(eventType, options, (emitter) => {
546
546
  emitter.once(eventType, deregister);
547
547
  emitter.once(eventType, listener);
@@ -572,7 +572,7 @@ class EmitterBase extends Base {
572
572
  */
573
573
  async prependOnceListener(eventType, listener, options) {
574
574
  const deregister = () => this.deregisterEventListener(eventType);
575
- __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
575
+ __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
576
576
  await this.registerEventListener(eventType, options, (emitter) => {
577
577
  emitter.prependOnceListener(eventType, listener);
578
578
  emitter.once(eventType, deregister);
@@ -632,7 +632,7 @@ class EmitterBase extends Base {
632
632
  }
633
633
  deleteEmitterIfNothingRegistered(emitter) {
634
634
  if (emitter.eventNames().every((type) => type === 'removeListener')) {
635
- this.wire.eventAggregator.delete(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
635
+ this.wire.eventAggregator.delete(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
636
636
  }
637
637
  }
638
638
  }
@@ -1083,8 +1083,8 @@ var main = {};
1083
1083
 
1084
1084
  Object.defineProperty(main, "__esModule", { value: true });
1085
1085
  main.WebContents = void 0;
1086
- const base_1$m = base;
1087
- class WebContents extends base_1$m.EmitterBase {
1086
+ const base_1$n = base;
1087
+ class WebContents extends base_1$n.EmitterBase {
1088
1088
  /**
1089
1089
  * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
1090
1090
  * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
@@ -4044,6 +4044,37 @@ function requireInstance () {
4044
4044
  getAllFrames() {
4045
4045
  return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
4046
4046
  }
4047
+ /**
4048
+ * Activates the current window and focuses the child entity if it exists. If this does
4049
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
4050
+ * it will return false.
4051
+ *
4052
+ * @example
4053
+ * ```js
4054
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
4055
+ *
4056
+ * win.getCurrentViews()
4057
+ * .then(([view1]) => {
4058
+ * return win.activateAndFocus(view1.identity);
4059
+ * })
4060
+ * .then(success => {
4061
+ * if (success) {
4062
+ * console.log('Window activated and child focused');
4063
+ * } else {
4064
+ * console.log('Window activation failed, focus state unchanged');
4065
+ * }
4066
+ * })
4067
+ * .catch(console.error);
4068
+ * ```
4069
+ */
4070
+ activateAndFocus(childIdentityToFocus) {
4071
+ return this.wire
4072
+ .sendAction('activate-window-and-focus', {
4073
+ winIdentity: this.identity,
4074
+ focusIdentity: childIdentityToFocus
4075
+ })
4076
+ .then(({ payload }) => payload.data);
4077
+ }
4047
4078
  /**
4048
4079
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
4049
4080
  *
@@ -5401,7 +5432,7 @@ function requireWindow () {
5401
5432
  */
5402
5433
  Object.defineProperty(system, "__esModule", { value: true });
5403
5434
  system.System = void 0;
5404
- const base_1$l = base;
5435
+ const base_1$m = base;
5405
5436
  const transport_errors_1$5 = transportErrors;
5406
5437
  const window_1 = requireWindow();
5407
5438
  const events_1$6 = require$$0;
@@ -5411,7 +5442,7 @@ const events_1$6 = require$$0;
5411
5442
  * clearing the cache and exiting the runtime as well as listen to {@link OpenFin.SystemEvents system events}.
5412
5443
  *
5413
5444
  */
5414
- class System extends base_1$l.EmitterBase {
5445
+ class System extends base_1$m.EmitterBase {
5415
5446
  /**
5416
5447
  * @internal
5417
5448
  */
@@ -7301,6 +7332,12 @@ class System extends base_1$l.EmitterBase {
7301
7332
  async serveAsset(options) {
7302
7333
  return (await this.wire.sendAction('serve-asset', { options })).payload.data;
7303
7334
  }
7335
+ /**
7336
+ * Launches the Log Uploader. Full documentation can be found [here](https://resources.here.io/docs/core/develop/debug/log-uploader/).
7337
+ */
7338
+ async launchLogUploader(options) {
7339
+ return (await this.wire.sendAction('launch-log-uploader', { options })).payload.data;
7340
+ }
7304
7341
  }
7305
7342
  system.System = System;
7306
7343
 
@@ -7722,12 +7759,12 @@ class ChannelError extends Error {
7722
7759
  }
7723
7760
  channelError.ChannelError = ChannelError;
7724
7761
 
7725
- var __classPrivateFieldGet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7762
+ var __classPrivateFieldGet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7726
7763
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7727
7764
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7728
7765
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7729
7766
  };
7730
- var __classPrivateFieldSet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7767
+ var __classPrivateFieldSet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7731
7768
  if (kind === "m") throw new TypeError("Private method is not writable");
7732
7769
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7733
7770
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -7771,7 +7808,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7771
7808
  static closeChannelByEndpointId(id) {
7772
7809
  const channel = channelClientsByEndpointId.get(id);
7773
7810
  if (channel) {
7774
- __classPrivateFieldGet$g(channel, _ChannelClient_close, "f").call(channel);
7811
+ __classPrivateFieldGet$h(channel, _ChannelClient_close, "f").call(channel);
7775
7812
  }
7776
7813
  }
7777
7814
  /**
@@ -7782,7 +7819,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7782
7819
  for (const channelClient of channelClientsByEndpointId.values()) {
7783
7820
  if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
7784
7821
  channelClient.disconnectListener(eventPayload);
7785
- __classPrivateFieldGet$g(channelClient, _ChannelClient_close, "f").call(channelClient);
7822
+ __classPrivateFieldGet$h(channelClient, _ChannelClient_close, "f").call(channelClient);
7786
7823
  }
7787
7824
  }
7788
7825
  }
@@ -7797,12 +7834,12 @@ class ChannelClient extends channel_1$1.ChannelBase {
7797
7834
  this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
7798
7835
  _ChannelClient_close.set(this, () => {
7799
7836
  channelClientsByEndpointId.delete(this.endpointId);
7800
- __classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").close();
7837
+ __classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").close();
7801
7838
  });
7802
- __classPrivateFieldSet$f(this, _ChannelClient_protectedObj, new channel_1$1.ProtectedItems(routingInfo, close), "f");
7839
+ __classPrivateFieldSet$g(this, _ChannelClient_protectedObj, new channel_1$1.ProtectedItems(routingInfo, close), "f");
7803
7840
  this.disconnectListener = () => undefined;
7804
7841
  this.endpointId = routingInfo.endpointId;
7805
- __classPrivateFieldSet$f(this, _ChannelClient_strategy, strategy, "f");
7842
+ __classPrivateFieldSet$g(this, _ChannelClient_strategy, strategy, "f");
7806
7843
  channelClientsByEndpointId.set(this.endpointId, this);
7807
7844
  strategy.receive(this.processAction);
7808
7845
  }
@@ -7810,7 +7847,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7810
7847
  * a read-only provider identity
7811
7848
  */
7812
7849
  get providerIdentity() {
7813
- const protectedObj = __classPrivateFieldGet$g(this, _ChannelClient_protectedObj, "f");
7850
+ const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
7814
7851
  return protectedObj.providerIdentity;
7815
7852
  }
7816
7853
  /**
@@ -7839,9 +7876,9 @@ class ChannelClient extends channel_1$1.ChannelBase {
7839
7876
  * ```
7840
7877
  */
7841
7878
  async dispatch(action, payload) {
7842
- if (__classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7879
+ if (__classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7843
7880
  const callSites = transport_errors_1$2.RuntimeError.getCallSite();
7844
- return __classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7881
+ return __classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7845
7882
  throw new channel_error_1$1.ChannelError(e, action, payload, callSites);
7846
7883
  });
7847
7884
  }
@@ -7893,10 +7930,10 @@ class ChannelClient extends channel_1$1.ChannelBase {
7893
7930
  */
7894
7931
  async disconnect() {
7895
7932
  await this.sendDisconnectAction();
7896
- __classPrivateFieldGet$g(this, _ChannelClient_close, "f").call(this);
7933
+ __classPrivateFieldGet$h(this, _ChannelClient_close, "f").call(this);
7897
7934
  }
7898
7935
  async sendDisconnectAction() {
7899
- const protectedObj = __classPrivateFieldGet$g(this, _ChannelClient_protectedObj, "f");
7936
+ const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
7900
7937
  await protectedObj.close();
7901
7938
  }
7902
7939
  /**
@@ -7929,13 +7966,13 @@ exhaustive.exhaustiveCheck = exhaustiveCheck;
7929
7966
 
7930
7967
  var strategy$3 = {};
7931
7968
 
7932
- var __classPrivateFieldSet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7969
+ var __classPrivateFieldSet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7933
7970
  if (kind === "m") throw new TypeError("Private method is not writable");
7934
7971
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7935
7972
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
7936
7973
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7937
7974
  };
7938
- var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7975
+ var __classPrivateFieldGet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7939
7976
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7940
7977
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7941
7978
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -7960,7 +7997,7 @@ class ClassicStrategy {
7960
7997
  // connection problems occur
7961
7998
  _ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
7962
7999
  this.send = async (endpointId, action, payload) => {
7963
- const to = __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
8000
+ const to = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7964
8001
  if (!to) {
7965
8002
  throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
7966
8003
  }
@@ -7972,13 +8009,13 @@ class ClassicStrategy {
7972
8009
  }
7973
8010
  delete cleanId.isLocalEndpointId;
7974
8011
  // grab the promise before awaiting it to save in our pending messages map
7975
- const p = __classPrivateFieldGet$f(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
8012
+ const p = __classPrivateFieldGet$g(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7976
8013
  ...cleanId,
7977
8014
  providerIdentity: this.providerIdentity,
7978
8015
  action,
7979
8016
  payload
7980
8017
  });
7981
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
8018
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7982
8019
  const raw = await p
7983
8020
  .catch((error) => {
7984
8021
  if ('cause' in error) {
@@ -7988,16 +8025,16 @@ class ClassicStrategy {
7988
8025
  })
7989
8026
  .finally(() => {
7990
8027
  // clean up the pending promise
7991
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
8028
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7992
8029
  });
7993
8030
  return raw.payload.data.result;
7994
8031
  };
7995
8032
  this.close = async () => {
7996
8033
  this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
7997
- [...__classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7998
- __classPrivateFieldSet$e(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
8034
+ [...__classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
8035
+ __classPrivateFieldSet$f(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7999
8036
  };
8000
- __classPrivateFieldSet$e(this, _ClassicStrategy_wire, wire, "f");
8037
+ __classPrivateFieldSet$f(this, _ClassicStrategy_wire, wire, "f");
8001
8038
  }
8002
8039
  onEndpointDisconnect(endpointId, listener) {
8003
8040
  // Never fires for 'classic'.
@@ -8006,20 +8043,20 @@ class ClassicStrategy {
8006
8043
  this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
8007
8044
  }
8008
8045
  async closeEndpoint(endpointId) {
8009
- const id = __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
8010
- __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
8011
- const pendingSet = __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
8046
+ const id = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
8047
+ __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
8048
+ const pendingSet = __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
8012
8049
  pendingSet?.forEach((p) => {
8013
8050
  const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
8014
8051
  p.cancel(new Error(errorMsg));
8015
8052
  });
8016
8053
  }
8017
8054
  isEndpointConnected(endpointId) {
8018
- return __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
8055
+ return __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
8019
8056
  }
8020
8057
  addEndpoint(endpointId, payload) {
8021
- __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
8022
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
8058
+ __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
8059
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
8023
8060
  }
8024
8061
  isValidEndpointPayload(payload) {
8025
8062
  return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
@@ -8054,12 +8091,12 @@ function errorToPOJO(error) {
8054
8091
  }
8055
8092
  errors.errorToPOJO = errorToPOJO;
8056
8093
 
8057
- var __classPrivateFieldGet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8094
+ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8058
8095
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8059
8096
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8060
8097
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8061
8098
  };
8062
- var __classPrivateFieldSet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8099
+ var __classPrivateFieldSet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8063
8100
  if (kind === "m") throw new TypeError("Private method is not writable");
8064
8101
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8065
8102
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -8094,8 +8131,8 @@ class RTCEndpoint {
8094
8131
  if (this.rtc.rtcClient.connectionState !== 'connected') {
8095
8132
  this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
8096
8133
  this.close();
8097
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
8098
- __classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f").call(this);
8134
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
8135
+ __classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
8099
8136
  }
8100
8137
  }
8101
8138
  };
@@ -8143,9 +8180,9 @@ class RTCEndpoint {
8143
8180
  data = new TextDecoder().decode(e.data);
8144
8181
  }
8145
8182
  const { messageId, action, payload } = JSON.parse(data);
8146
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f")) {
8183
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
8147
8184
  try {
8148
- const res = await __classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
8185
+ const res = await __classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
8149
8186
  this.rtc.channels.response.send(JSON.stringify({
8150
8187
  messageId,
8151
8188
  payload: res,
@@ -8179,25 +8216,25 @@ class RTCEndpoint {
8179
8216
  datachannel.onclose = (e) => {
8180
8217
  [...this.responseMap.values()].forEach((promise) => promise.reject(new Error('RTCDataChannel closed unexpectedly, this is most commonly caused by message size. Note: RTC Channels have a message size limit of ~255kB.')));
8181
8218
  this.close();
8182
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
8183
- __classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f").call(this);
8219
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
8220
+ __classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
8184
8221
  }
8185
8222
  };
8186
8223
  });
8187
8224
  }
8188
8225
  onDisconnect(listener) {
8189
- if (!__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
8190
- __classPrivateFieldSet$d(this, _RTCEndpoint_disconnectListener, listener, "f");
8226
+ if (!__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
8227
+ __classPrivateFieldSet$e(this, _RTCEndpoint_disconnectListener, listener, "f");
8191
8228
  }
8192
8229
  else {
8193
8230
  throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
8194
8231
  }
8195
8232
  }
8196
8233
  receive(listener) {
8197
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f")) {
8234
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
8198
8235
  throw new Error('You have already set a listener for this RTC Endpoint.');
8199
8236
  }
8200
- __classPrivateFieldSet$d(this, _RTCEndpoint_processAction, listener, "f");
8237
+ __classPrivateFieldSet$e(this, _RTCEndpoint_processAction, listener, "f");
8201
8238
  }
8202
8239
  get connected() {
8203
8240
  return this.rtc.rtcClient.connectionState === 'connected';
@@ -8208,12 +8245,12 @@ _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = ne
8208
8245
 
8209
8246
  var strategy$1 = {};
8210
8247
 
8211
- var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8248
+ var __classPrivateFieldGet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8212
8249
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8213
8250
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8214
8251
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8215
8252
  };
8216
- var __classPrivateFieldSet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8253
+ var __classPrivateFieldSet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8217
8254
  if (kind === "m") throw new TypeError("Private method is not writable");
8218
8255
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8219
8256
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -8234,11 +8271,11 @@ class EndpointStrategy {
8234
8271
  return this.getEndpointById(endpointId).send(action, payload);
8235
8272
  };
8236
8273
  this.close = async () => {
8237
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f")) {
8238
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
8239
- __classPrivateFieldSet$c(this, _EndpointStrategy_endpointMap, new Map(), "f");
8274
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
8275
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
8276
+ __classPrivateFieldSet$d(this, _EndpointStrategy_endpointMap, new Map(), "f");
8240
8277
  }
8241
- __classPrivateFieldSet$c(this, _EndpointStrategy_connected, false, "f");
8278
+ __classPrivateFieldSet$d(this, _EndpointStrategy_connected, false, "f");
8242
8279
  };
8243
8280
  this.isValidEndpointPayload = validateEndpoint;
8244
8281
  }
@@ -8246,39 +8283,39 @@ class EndpointStrategy {
8246
8283
  this.getEndpointById(endpointId).onDisconnect(listener);
8247
8284
  }
8248
8285
  receive(listener) {
8249
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")) {
8286
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
8250
8287
  throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
8251
8288
  }
8252
- __classPrivateFieldSet$c(this, _EndpointStrategy_processAction, listener, "f");
8289
+ __classPrivateFieldSet$d(this, _EndpointStrategy_processAction, listener, "f");
8253
8290
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8254
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")));
8291
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")));
8255
8292
  }
8256
8293
  getEndpointById(endpointId) {
8257
- const endpoint = __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
8294
+ const endpoint = __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
8258
8295
  if (!endpoint) {
8259
8296
  throw new Error(`Client with endpoint id ${endpointId} is not connected`);
8260
8297
  }
8261
8298
  return endpoint;
8262
8299
  }
8263
8300
  get connected() {
8264
- return __classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f");
8301
+ return __classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f");
8265
8302
  }
8266
8303
  isEndpointConnected(endpointId) {
8267
- return __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
8304
+ return __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
8268
8305
  }
8269
8306
  addEndpoint(endpointId, payload) {
8270
- if (!__classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f")) {
8307
+ if (!__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
8271
8308
  console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
8272
8309
  return;
8273
8310
  }
8274
8311
  const clientStrat = new this.EndpointType(payload);
8275
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")) {
8276
- clientStrat.receive(__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f"));
8312
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
8313
+ clientStrat.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f"));
8277
8314
  }
8278
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
8315
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
8279
8316
  }
8280
8317
  async closeEndpoint(endpointId) {
8281
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
8318
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
8282
8319
  }
8283
8320
  }
8284
8321
  strategy$1.EndpointStrategy = EndpointStrategy;
@@ -8305,11 +8342,11 @@ var iceManager = {};
8305
8342
 
8306
8343
  Object.defineProperty(iceManager, "__esModule", { value: true });
8307
8344
  iceManager.RTCICEManager = void 0;
8308
- const base_1$k = base;
8345
+ const base_1$l = base;
8309
8346
  /*
8310
8347
  Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
8311
8348
  */
8312
- class RTCICEManager extends base_1$k.EmitterBase {
8349
+ class RTCICEManager extends base_1$l.EmitterBase {
8313
8350
  constructor(wire) {
8314
8351
  super(wire, 'channel');
8315
8352
  this.ensureChannelOpened = (channel) => {
@@ -8460,12 +8497,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
8460
8497
  }
8461
8498
  runtimeVersioning.runtimeUuidMeetsMinimumRuntimeVersion = runtimeUuidMeetsMinimumRuntimeVersion;
8462
8499
 
8463
- var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8500
+ var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8464
8501
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8465
8502
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8466
8503
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8467
8504
  };
8468
- var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8505
+ var __classPrivateFieldSet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8469
8506
  if (kind === "m") throw new TypeError("Private method is not writable");
8470
8507
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8471
8508
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -8509,19 +8546,19 @@ class ChannelProvider extends channel_1.ChannelBase {
8509
8546
  * a read-only array containing all the identities of connecting clients.
8510
8547
  */
8511
8548
  get connections() {
8512
- return [...__classPrivateFieldGet$c(this, _ChannelProvider_connections, "f")];
8549
+ return [...__classPrivateFieldGet$d(this, _ChannelProvider_connections, "f")];
8513
8550
  }
8514
8551
  static handleClientDisconnection(channel, payload) {
8515
8552
  if (payload?.endpointId) {
8516
8553
  const { uuid, name, endpointId, isLocalEndpointId } = payload;
8517
- __classPrivateFieldGet$c(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8554
+ __classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8518
8555
  }
8519
8556
  else {
8520
8557
  // this is here to support older runtimes that did not have endpointId
8521
8558
  const multipleRemoves = channel.connections.filter((identity) => {
8522
8559
  return identity.uuid === payload.uuid && identity.name === payload.name;
8523
8560
  });
8524
- multipleRemoves.forEach(__classPrivateFieldGet$c(channel, _ChannelProvider_removeEndpoint, "f"));
8561
+ multipleRemoves.forEach(__classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f"));
8525
8562
  }
8526
8563
  channel.disconnectListener(payload);
8527
8564
  }
@@ -8538,8 +8575,8 @@ class ChannelProvider extends channel_1.ChannelBase {
8538
8575
  _ChannelProvider_strategy.set(this, void 0);
8539
8576
  _ChannelProvider_removeEndpoint.set(this, (identity) => {
8540
8577
  const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
8541
- __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8542
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, remainingConnections, "f");
8578
+ __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8579
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, remainingConnections, "f");
8543
8580
  });
8544
8581
  // Must be bound.
8545
8582
  this.processAction = async (action, payload, senderIdentity) => {
@@ -8553,17 +8590,17 @@ class ChannelProvider extends channel_1.ChannelBase {
8553
8590
  return super.processAction(action, payload, senderIdentity);
8554
8591
  };
8555
8592
  _ChannelProvider_close.set(this, () => {
8556
- __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").close();
8593
+ __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").close();
8557
8594
  const remove = ChannelProvider.removalMap.get(this);
8558
8595
  if (remove) {
8559
8596
  remove();
8560
8597
  }
8561
8598
  });
8562
- __classPrivateFieldSet$b(this, _ChannelProvider_protectedObj, new channel_1.ProtectedItems(providerIdentity, close), "f");
8599
+ __classPrivateFieldSet$c(this, _ChannelProvider_protectedObj, new channel_1.ProtectedItems(providerIdentity, close), "f");
8563
8600
  this.connectListener = () => undefined;
8564
8601
  this.disconnectListener = () => undefined;
8565
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, [], "f");
8566
- __classPrivateFieldSet$b(this, _ChannelProvider_strategy, strategy, "f");
8602
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
8603
+ __classPrivateFieldSet$c(this, _ChannelProvider_strategy, strategy, "f");
8567
8604
  strategy.receive(this.processAction);
8568
8605
  }
8569
8606
  /**
@@ -8594,16 +8631,16 @@ class ChannelProvider extends channel_1.ChannelBase {
8594
8631
  */
8595
8632
  dispatch(to, action, payload) {
8596
8633
  const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
8597
- if (endpointId && __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8634
+ if (endpointId && __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8598
8635
  const callSites = transport_errors_1$1.RuntimeError.getCallSite();
8599
- return __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8636
+ return __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8600
8637
  throw new channel_error_1.ChannelError(e, action, payload, callSites);
8601
8638
  });
8602
8639
  }
8603
8640
  return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
8604
8641
  }
8605
8642
  async processConnection(senderId, payload) {
8606
- __classPrivateFieldGet$c(this, _ChannelProvider_connections, "f").push(senderId);
8643
+ __classPrivateFieldGet$d(this, _ChannelProvider_connections, "f").push(senderId);
8607
8644
  return this.connectListener(senderId, payload);
8608
8645
  }
8609
8646
  /**
@@ -8626,7 +8663,7 @@ class ChannelProvider extends channel_1.ChannelBase {
8626
8663
  * ```
8627
8664
  */
8628
8665
  publish(action, payload) {
8629
- return this.connections.map((to) => __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8666
+ return this.connections.map((to) => __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8630
8667
  }
8631
8668
  /**
8632
8669
  * Register a listener that is called on every new client connection.
@@ -8700,11 +8737,11 @@ class ChannelProvider extends channel_1.ChannelBase {
8700
8737
  * ```
8701
8738
  */
8702
8739
  async destroy() {
8703
- const protectedObj = __classPrivateFieldGet$c(this, _ChannelProvider_protectedObj, "f");
8740
+ const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
8704
8741
  protectedObj.providerIdentity;
8705
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, [], "f");
8742
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
8706
8743
  await protectedObj.close();
8707
- __classPrivateFieldGet$c(this, _ChannelProvider_close, "f").call(this);
8744
+ __classPrivateFieldGet$d(this, _ChannelProvider_close, "f").call(this);
8708
8745
  }
8709
8746
  /**
8710
8747
  * Returns an array with info on every Client connected to the Provider
@@ -8774,7 +8811,7 @@ class ChannelProvider extends channel_1.ChannelBase {
8774
8811
  getEndpointIdForOpenFinId(clientIdentity, action) {
8775
8812
  const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
8776
8813
  if (matchingConnections.length >= 2) {
8777
- const protectedObj = __classPrivateFieldGet$c(this, _ChannelProvider_protectedObj, "f");
8814
+ const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
8778
8815
  const { uuid, name } = clientIdentity;
8779
8816
  const providerUuid = protectedObj?.providerIdentity.uuid;
8780
8817
  const providerName = protectedObj?.providerIdentity.name;
@@ -8810,14 +8847,14 @@ var messageReceiver = {};
8810
8847
  Object.defineProperty(messageReceiver, "__esModule", { value: true });
8811
8848
  messageReceiver.MessageReceiver = void 0;
8812
8849
  const client_1$1 = client;
8813
- const base_1$j = base;
8850
+ const base_1$k = base;
8814
8851
  const errors_1$1 = errors;
8815
8852
  /*
8816
8853
  This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
8817
8854
  It needs to be a singleton because there can only be one per wire. It tracks both clients and providers' processAction passed in via the strategy.
8818
8855
  If functionality is not about receiving messages, it does not belong here.
8819
8856
  */
8820
- class MessageReceiver extends base_1$j.Base {
8857
+ class MessageReceiver extends base_1$k.Base {
8821
8858
  constructor(wire) {
8822
8859
  super(wire);
8823
8860
  this.onmessage = (msg) => {
@@ -8986,13 +9023,13 @@ class CombinedStrategy {
8986
9023
  }
8987
9024
  strategy.default = CombinedStrategy;
8988
9025
 
8989
- var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9026
+ var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8990
9027
  if (kind === "m") throw new TypeError("Private method is not writable");
8991
9028
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8992
9029
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
8993
9030
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8994
9031
  };
8995
- var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9032
+ var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8996
9033
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8997
9034
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8998
9035
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9004,7 +9041,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
9004
9041
  Object.defineProperty(connectionManager, "__esModule", { value: true });
9005
9042
  connectionManager.ConnectionManager = void 0;
9006
9043
  const exhaustive_1 = exhaustive;
9007
- const base_1$i = base;
9044
+ const base_1$j = base;
9008
9045
  const strategy_1 = strategy$3;
9009
9046
  const strategy_2 = strategy$2;
9010
9047
  const ice_manager_1 = iceManager;
@@ -9012,7 +9049,7 @@ const provider_1$1 = provider;
9012
9049
  const message_receiver_1 = messageReceiver;
9013
9050
  const protocol_manager_1 = protocolManager;
9014
9051
  const strategy_3 = __importDefault$5(strategy);
9015
- class ConnectionManager extends base_1$i.Base {
9052
+ class ConnectionManager extends base_1$j.Base {
9016
9053
  static getProtocolOptionsFromStrings(protocols) {
9017
9054
  return protocols.map((protocol) => {
9018
9055
  switch (protocol) {
@@ -9041,8 +9078,8 @@ class ConnectionManager extends base_1$i.Base {
9041
9078
  };
9042
9079
  this.providerMap = new Map();
9043
9080
  this.protocolManager = new protocol_manager_1.ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
9044
- __classPrivateFieldSet$a(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
9045
- __classPrivateFieldSet$a(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
9081
+ __classPrivateFieldSet$b(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
9082
+ __classPrivateFieldSet$b(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
9046
9083
  wire.registerMessageHandler(this.onmessage.bind(this));
9047
9084
  }
9048
9085
  createProvider(options, providerIdentity) {
@@ -9053,7 +9090,7 @@ class ConnectionManager extends base_1$i.Base {
9053
9090
  case 'rtc':
9054
9091
  return new strategy_2.RTCStrategy();
9055
9092
  case 'classic':
9056
- return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f"),
9093
+ return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"),
9057
9094
  // Providers do not have an endpointId, use channelId as endpointId in the strategy.
9058
9095
  providerIdentity.channelId, providerIdentity);
9059
9096
  default:
@@ -9089,7 +9126,7 @@ class ConnectionManager extends base_1$i.Base {
9089
9126
  const supportedProtocols = await Promise.all(protocols.map(async (type) => {
9090
9127
  switch (type) {
9091
9128
  case 'rtc': {
9092
- const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
9129
+ const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
9093
9130
  rtcPacket = { rtcClient, channels, channelsOpened };
9094
9131
  return {
9095
9132
  type: 'rtc',
@@ -9116,18 +9153,18 @@ class ConnectionManager extends base_1$i.Base {
9116
9153
  routingInfo.endpointId = this.wire.environment.getNextMessageId();
9117
9154
  // For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
9118
9155
  // clients that are in the same context as the newly-connected client.
9119
- __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
9156
+ __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
9120
9157
  }
9121
9158
  const answer = routingInfo.answer ?? {
9122
9159
  supportedProtocols: [{ type: 'classic', version: 1 }]
9123
9160
  };
9124
9161
  const createStrategyFromAnswer = async (protocol) => {
9125
9162
  if (protocol.type === 'rtc' && rtcPacket) {
9126
- await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
9163
+ await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
9127
9164
  return new strategy_2.RTCStrategy();
9128
9165
  }
9129
9166
  if (protocol.type === 'classic') {
9130
- return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
9167
+ return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
9131
9168
  }
9132
9169
  return null;
9133
9170
  };
@@ -9195,7 +9232,7 @@ class ConnectionManager extends base_1$i.Base {
9195
9232
  clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
9196
9233
  const answer = await accumP;
9197
9234
  if (protocolToUse.type === 'rtc') {
9198
- const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
9235
+ const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
9199
9236
  answer.supportedProtocols.push({
9200
9237
  type: 'rtc',
9201
9238
  version: strategy_2.RTCInfo.version,
@@ -9243,13 +9280,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
9243
9280
  *
9244
9281
  * @packageDocumentation
9245
9282
  */
9246
- var __classPrivateFieldSet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9283
+ var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9247
9284
  if (kind === "m") throw new TypeError("Private method is not writable");
9248
9285
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9249
9286
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
9250
9287
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9251
9288
  };
9252
- var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9289
+ var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9253
9290
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9254
9291
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
9255
9292
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9259,8 +9296,8 @@ Object.defineProperty(channel$1, "__esModule", { value: true });
9259
9296
  channel$1.Channel = void 0;
9260
9297
  /* eslint-disable no-console */
9261
9298
  const events_1$5 = require$$0;
9262
- const lazy_1$2 = lazy;
9263
- const base_1$h = base;
9299
+ const lazy_1$3 = lazy;
9300
+ const base_1$i = base;
9264
9301
  const client_1 = client;
9265
9302
  const connection_manager_1 = connectionManager;
9266
9303
  const provider_1 = provider;
@@ -9291,7 +9328,7 @@ function retryDelay(count) {
9291
9328
  * * {@link Channel.onChannelConnect onChannelConnect(listener)}
9292
9329
  * * {@link Channel.onChannelDisconnect onChannelDisconnect(listener)}
9293
9330
  */
9294
- class Channel extends base_1$h.EmitterBase {
9331
+ class Channel extends base_1$i.EmitterBase {
9295
9332
  /**
9296
9333
  * @internal
9297
9334
  */
@@ -9300,17 +9337,17 @@ class Channel extends base_1$h.EmitterBase {
9300
9337
  _Channel_connectionManager.set(this, void 0);
9301
9338
  _Channel_internalEmitter.set(this, new events_1$5.EventEmitter());
9302
9339
  // OpenFin API has not been injected at construction time, *must* wait for API to be ready.
9303
- _Channel_readyToConnect.set(this, new lazy_1$2.AsyncRetryableLazy(async () => {
9340
+ _Channel_readyToConnect.set(this, new lazy_1$3.AsyncRetryableLazy(async () => {
9304
9341
  await Promise.all([
9305
9342
  this.on('disconnected', (eventPayload) => {
9306
9343
  client_1.ChannelClient.handleProviderDisconnect(eventPayload);
9307
9344
  }),
9308
9345
  this.on('connected', (...args) => {
9309
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9346
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9310
9347
  })
9311
9348
  ]).catch(() => new Error('error setting up channel connection listeners'));
9312
9349
  }));
9313
- __classPrivateFieldSet$9(this, _Channel_connectionManager, new connection_manager_1.ConnectionManager(wire), "f");
9350
+ __classPrivateFieldSet$a(this, _Channel_connectionManager, new connection_manager_1.ConnectionManager(wire), "f");
9314
9351
  }
9315
9352
  /**
9316
9353
  *
@@ -9385,7 +9422,7 @@ class Channel extends base_1$h.EmitterBase {
9385
9422
  resolve(true);
9386
9423
  }
9387
9424
  };
9388
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9425
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9389
9426
  });
9390
9427
  try {
9391
9428
  if (retryInfo.count > 0) {
@@ -9417,7 +9454,7 @@ class Channel extends base_1$h.EmitterBase {
9417
9454
  finally {
9418
9455
  retryInfo.count += 1;
9419
9456
  // in case of other errors, remove our listener
9420
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9457
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9421
9458
  }
9422
9459
  } while (shouldWait); // If we're waiting we retry the above loop
9423
9460
  // Should wait was false, no channel was found.
@@ -9476,12 +9513,12 @@ class Channel extends base_1$h.EmitterBase {
9476
9513
  async connect(channelName, options = {}) {
9477
9514
  // Make sure we don't connect before listeners are set up
9478
9515
  // This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
9479
- await __classPrivateFieldGet$a(this, _Channel_readyToConnect, "f").getValue();
9516
+ await __classPrivateFieldGet$b(this, _Channel_readyToConnect, "f").getValue();
9480
9517
  if (!channelName || typeof channelName !== 'string') {
9481
9518
  throw new Error('Please provide a channelName string to connect to a channel.');
9482
9519
  }
9483
9520
  const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
9484
- const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createClientOffer(opts);
9521
+ const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientOffer(opts);
9485
9522
  let connectionUrl;
9486
9523
  if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
9487
9524
  connectionUrl = (await this.fin.me.getInfo()).url;
@@ -9493,7 +9530,7 @@ class Channel extends base_1$h.EmitterBase {
9493
9530
  connectionUrl
9494
9531
  };
9495
9532
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
9496
- const strategy = await __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9533
+ const strategy = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9497
9534
  const channel = new client_1.ChannelClient(routingInfo, () => client_1.ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
9498
9535
  // It is the client's responsibility to handle endpoint disconnection to the provider.
9499
9536
  // If the endpoint dies, the client will force a disconnection through the core.
@@ -9562,7 +9599,7 @@ class Channel extends base_1$h.EmitterBase {
9562
9599
  throw new Error('Please provide a channelName to create a channel');
9563
9600
  }
9564
9601
  const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
9565
- const channel = __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9602
+ const channel = __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9566
9603
  // TODO: fix typing (internal)
9567
9604
  // @ts-expect-error
9568
9605
  this.on('client-disconnected', (eventPayload) => {
@@ -9586,7 +9623,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
9586
9623
  * @packageDocumentation
9587
9624
  */
9588
9625
  const events_1$4 = require$$0;
9589
- const base_1$g = base;
9626
+ const base_1$h = base;
9590
9627
  const ref_counter_1 = refCounter;
9591
9628
  const index_1$2 = channel$1;
9592
9629
  const validate_1$3 = validate;
@@ -9594,7 +9631,7 @@ const validate_1$3 = validate;
9594
9631
  * A messaging bus that allows for pub/sub messaging between different applications.
9595
9632
  *
9596
9633
  */
9597
- class InterApplicationBus extends base_1$g.Base {
9634
+ class InterApplicationBus extends base_1$h.Base {
9598
9635
  /**
9599
9636
  * @internal
9600
9637
  */
@@ -9800,12 +9837,12 @@ var clipboard = {};
9800
9837
  */
9801
9838
  Object.defineProperty(clipboard, "__esModule", { value: true });
9802
9839
  clipboard.Clipboard = void 0;
9803
- const base_1$f = base;
9840
+ const base_1$g = base;
9804
9841
  /**
9805
9842
  * The Clipboard API allows reading and writing to the clipboard in multiple formats.
9806
9843
  *
9807
9844
  */
9808
- class Clipboard extends base_1$f.Base {
9845
+ class Clipboard extends base_1$g.Base {
9809
9846
  /**
9810
9847
  * Writes data into the clipboard as plain text
9811
9848
  * @param writeObj The object for writing data into the clipboard
@@ -9994,7 +10031,7 @@ var Instance$4 = {};
9994
10031
  Object.defineProperty(Instance$4, "__esModule", { value: true });
9995
10032
  Instance$4.ExternalApplication = void 0;
9996
10033
  /* eslint-disable import/prefer-default-export */
9997
- const base_1$e = base;
10034
+ const base_1$f = base;
9998
10035
  /**
9999
10036
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
10000
10037
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -10005,7 +10042,7 @@ const base_1$e = base;
10005
10042
  * - Processes started via `System.launchExternalApplication`
10006
10043
  * - Processes monitored via `System.monitorExternalProcess`
10007
10044
  */
10008
- class ExternalApplication extends base_1$e.EmitterBase {
10045
+ class ExternalApplication extends base_1$f.EmitterBase {
10009
10046
  /**
10010
10047
  * @internal
10011
10048
  */
@@ -10033,12 +10070,12 @@ Instance$4.ExternalApplication = ExternalApplication;
10033
10070
 
10034
10071
  Object.defineProperty(Factory$5, "__esModule", { value: true });
10035
10072
  Factory$5.ExternalApplicationModule = void 0;
10036
- const base_1$d = base;
10073
+ const base_1$e = base;
10037
10074
  const Instance_1$4 = Instance$4;
10038
10075
  /**
10039
10076
  * Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
10040
10077
  */
10041
- class ExternalApplicationModule extends base_1$d.Base {
10078
+ class ExternalApplicationModule extends base_1$e.Base {
10042
10079
  /**
10043
10080
  * Asynchronously returns an External Application object that represents an external application.
10044
10081
  * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
@@ -10120,7 +10157,7 @@ var Instance$3 = {};
10120
10157
  Object.defineProperty(Instance$3, "__esModule", { value: true });
10121
10158
  Instance$3._Frame = void 0;
10122
10159
  /* eslint-disable import/prefer-default-export */
10123
- const base_1$c = base;
10160
+ const base_1$d = base;
10124
10161
  /**
10125
10162
  * An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
10126
10163
  * has its own DOM and global JS context (which may or may not be linked to that of the parent depending
@@ -10141,7 +10178,7 @@ const base_1$c = base;
10141
10178
  * The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
10142
10179
  * (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
10143
10180
  */
10144
- class _Frame extends base_1$c.EmitterBase {
10181
+ class _Frame extends base_1$d.EmitterBase {
10145
10182
  /**
10146
10183
  * @internal
10147
10184
  */
@@ -10187,13 +10224,13 @@ Instance$3._Frame = _Frame;
10187
10224
 
10188
10225
  Object.defineProperty(Factory$4, "__esModule", { value: true });
10189
10226
  Factory$4._FrameModule = void 0;
10190
- const base_1$b = base;
10227
+ const base_1$c = base;
10191
10228
  const validate_1$2 = validate;
10192
10229
  const Instance_1$3 = Instance$3;
10193
10230
  /**
10194
10231
  * Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
10195
10232
  */
10196
- class _FrameModule extends base_1$b.Base {
10233
+ class _FrameModule extends base_1$c.Base {
10197
10234
  /**
10198
10235
  * Asynchronously returns an API handle for the given Frame identity.
10199
10236
  *
@@ -10314,12 +10351,12 @@ var globalHotkey = {};
10314
10351
 
10315
10352
  Object.defineProperty(globalHotkey, "__esModule", { value: true });
10316
10353
  globalHotkey.GlobalHotkey = void 0;
10317
- const base_1$a = base;
10354
+ const base_1$b = base;
10318
10355
  /**
10319
10356
  * The GlobalHotkey module can register/unregister a global hotkeys.
10320
10357
  *
10321
10358
  */
10322
- class GlobalHotkey extends base_1$a.EmitterBase {
10359
+ class GlobalHotkey extends base_1$b.EmitterBase {
10323
10360
  /**
10324
10361
  * @internal
10325
10362
  */
@@ -10453,13 +10490,13 @@ var Factory$3 = {};
10453
10490
 
10454
10491
  var Instance$2 = {};
10455
10492
 
10456
- var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10493
+ var __classPrivateFieldSet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10457
10494
  if (kind === "m") throw new TypeError("Private method is not writable");
10458
10495
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10459
10496
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10460
10497
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10461
10498
  };
10462
- var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10499
+ var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10463
10500
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10464
10501
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10465
10502
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -10468,14 +10505,14 @@ var _Platform_channelName, _Platform_connectToProvider;
10468
10505
  Object.defineProperty(Instance$2, "__esModule", { value: true });
10469
10506
  Instance$2.Platform = void 0;
10470
10507
  /* eslint-disable import/prefer-default-export, no-undef */
10471
- const base_1$9 = base;
10508
+ const base_1$a = base;
10472
10509
  const validate_1$1 = validate;
10473
10510
  /** Manages the life cycle of windows and views in the application.
10474
10511
  *
10475
10512
  * Enables taking snapshots of itself and applying them to restore a previous configuration
10476
10513
  * as well as listen to {@link OpenFin.PlatformEvents platform events}.
10477
10514
  */
10478
- class Platform extends base_1$9.EmitterBase {
10515
+ class Platform extends base_1$a.EmitterBase {
10479
10516
  /**
10480
10517
  * @internal
10481
10518
  */
@@ -10496,24 +10533,24 @@ class Platform extends base_1$9.EmitterBase {
10496
10533
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10497
10534
  // don't expose
10498
10535
  });
10499
- if (!Platform.clientMap.has(__classPrivateFieldGet$9(this, _Platform_channelName, "f"))) {
10500
- const clientPromise = __classPrivateFieldGet$9(this, _Platform_connectToProvider, "f").call(this);
10501
- Platform.clientMap.set(__classPrivateFieldGet$9(this, _Platform_channelName, "f"), clientPromise);
10536
+ if (!Platform.clientMap.has(__classPrivateFieldGet$a(this, _Platform_channelName, "f"))) {
10537
+ const clientPromise = __classPrivateFieldGet$a(this, _Platform_connectToProvider, "f").call(this);
10538
+ Platform.clientMap.set(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), clientPromise);
10502
10539
  }
10503
10540
  // we set it above
10504
10541
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10505
- return Platform.clientMap.get(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10542
+ return Platform.clientMap.get(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10506
10543
  };
10507
10544
  _Platform_connectToProvider.set(this, async () => {
10508
10545
  try {
10509
- const client = await this._channel.connect(__classPrivateFieldGet$9(this, _Platform_channelName, "f"), { wait: false });
10546
+ const client = await this._channel.connect(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), { wait: false });
10510
10547
  client.onDisconnection(() => {
10511
- Platform.clientMap.delete(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10548
+ Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10512
10549
  });
10513
10550
  return client;
10514
10551
  }
10515
10552
  catch (e) {
10516
- Platform.clientMap.delete(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10553
+ Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10517
10554
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10518
10555
  }
10519
10556
  });
@@ -10526,7 +10563,7 @@ class Platform extends base_1$9.EmitterBase {
10526
10563
  if (errorMsg) {
10527
10564
  throw new Error(errorMsg);
10528
10565
  }
10529
- __classPrivateFieldSet$8(this, _Platform_channelName, channelName, "f");
10566
+ __classPrivateFieldSet$9(this, _Platform_channelName, channelName, "f");
10530
10567
  this._channel = this.fin.InterApplicationBus.Channel;
10531
10568
  this.identity = { uuid: identity.uuid };
10532
10569
  this.Layout = this.fin.Platform.Layout;
@@ -11582,13 +11619,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
11582
11619
  };
11583
11620
  channelApiRelay.createRelayedDispatch = createRelayedDispatch;
11584
11621
 
11585
- var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11622
+ var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11586
11623
  if (kind === "m") throw new TypeError("Private method is not writable");
11587
11624
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11588
11625
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
11589
11626
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11590
11627
  };
11591
- var __classPrivateFieldGet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11628
+ var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11592
11629
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11593
11630
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11594
11631
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11642,7 +11679,7 @@ class LayoutNode {
11642
11679
  * console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
11643
11680
  * ```
11644
11681
  */
11645
- this.isRoot = () => __classPrivateFieldGet$8(this, _LayoutNode_client, "f").isRoot(this.entityId);
11682
+ this.isRoot = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").isRoot(this.entityId);
11646
11683
  /**
11647
11684
  * Checks if the TabStack or ColumnOrRow exists
11648
11685
  *
@@ -11662,7 +11699,7 @@ class LayoutNode {
11662
11699
  * console.log(`The entity exists: ${exists}`);
11663
11700
  * ```
11664
11701
  */
11665
- this.exists = () => __classPrivateFieldGet$8(this, _LayoutNode_client, "f").exists(this.entityId);
11702
+ this.exists = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").exists(this.entityId);
11666
11703
  /**
11667
11704
  * Retrieves the parent of the TabStack or ColumnOrRow
11668
11705
  *
@@ -11683,11 +11720,11 @@ class LayoutNode {
11683
11720
  * ```
11684
11721
  */
11685
11722
  this.getParent = async () => {
11686
- const parent = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").getParent(this.entityId);
11723
+ const parent = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getParent(this.entityId);
11687
11724
  if (!parent) {
11688
11725
  return undefined;
11689
11726
  }
11690
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$8(this, _LayoutNode_client, "f"));
11727
+ return LayoutNode.getEntity(parent, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
11691
11728
  };
11692
11729
  /**
11693
11730
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11738,8 +11775,8 @@ class LayoutNode {
11738
11775
  * @experimental
11739
11776
  */
11740
11777
  this.createAdjacentStack = async (views, options) => {
11741
- const entityId = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11742
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$8(this, _LayoutNode_client, "f"));
11778
+ const entityId = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11779
+ return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
11743
11780
  };
11744
11781
  /**
11745
11782
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11767,16 +11804,16 @@ class LayoutNode {
11767
11804
  * @experimental
11768
11805
  */
11769
11806
  this.getAdjacentStacks = async (edge) => {
11770
- const adjacentStacks = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").getAdjacentStacks({
11807
+ const adjacentStacks = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getAdjacentStacks({
11771
11808
  targetId: this.entityId,
11772
11809
  edge
11773
11810
  });
11774
11811
  return adjacentStacks.map((stack) => LayoutNode.getEntity({
11775
11812
  type: 'stack',
11776
11813
  entityId: stack.entityId
11777
- }, __classPrivateFieldGet$8(this, _LayoutNode_client, "f")));
11814
+ }, __classPrivateFieldGet$9(this, _LayoutNode_client, "f")));
11778
11815
  };
11779
- __classPrivateFieldSet$7(this, _LayoutNode_client, client, "f");
11816
+ __classPrivateFieldSet$8(this, _LayoutNode_client, client, "f");
11780
11817
  this.entityId = entityId;
11781
11818
  }
11782
11819
  }
@@ -11849,7 +11886,7 @@ class TabStack extends LayoutNode {
11849
11886
  * ```
11850
11887
  * @experimental
11851
11888
  */
11852
- this.getViews = () => __classPrivateFieldGet$8(this, _TabStack_client, "f").getStackViews(this.entityId);
11889
+ this.getViews = () => __classPrivateFieldGet$9(this, _TabStack_client, "f").getStackViews(this.entityId);
11853
11890
  /**
11854
11891
  * Adds or creates a view in this {@link TabStack}.
11855
11892
  *
@@ -11879,7 +11916,7 @@ class TabStack extends LayoutNode {
11879
11916
  * ```
11880
11917
  * @experimental
11881
11918
  */
11882
- this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$8(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11919
+ this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$9(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11883
11920
  /**
11884
11921
  * Removes a view from this {@link TabStack}.
11885
11922
  *
@@ -11909,7 +11946,7 @@ class TabStack extends LayoutNode {
11909
11946
  * ```
11910
11947
  */
11911
11948
  this.removeView = async (view) => {
11912
- await __classPrivateFieldGet$8(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11949
+ await __classPrivateFieldGet$9(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11913
11950
  };
11914
11951
  /**
11915
11952
  * Sets the active view of the {@link TabStack} without focusing it.
@@ -11933,9 +11970,9 @@ class TabStack extends LayoutNode {
11933
11970
  * @experimental
11934
11971
  */
11935
11972
  this.setActiveView = async (view) => {
11936
- await __classPrivateFieldGet$8(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11973
+ await __classPrivateFieldGet$9(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11937
11974
  };
11938
- __classPrivateFieldSet$7(this, _TabStack_client, client, "f");
11975
+ __classPrivateFieldSet$8(this, _TabStack_client, client, "f");
11939
11976
  }
11940
11977
  }
11941
11978
  layoutEntities.TabStack = TabStack;
@@ -11974,10 +12011,10 @@ class ColumnOrRow extends LayoutNode {
11974
12011
  * ```
11975
12012
  */
11976
12013
  this.getContent = async () => {
11977
- const contentItemEntities = await __classPrivateFieldGet$8(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11978
- return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$8(this, _ColumnOrRow_client, "f")));
12014
+ const contentItemEntities = await __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f").getContent(this.entityId);
12015
+ return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f")));
11979
12016
  };
11980
- __classPrivateFieldSet$7(this, _ColumnOrRow_client, client, "f");
12017
+ __classPrivateFieldSet$8(this, _ColumnOrRow_client, client, "f");
11981
12018
  this.type = type;
11982
12019
  }
11983
12020
  }
@@ -11992,7 +12029,7 @@ layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
11992
12029
  // TODO: eventually export this somehow
11993
12030
  layout_constants.DEFAULT_LAYOUT_KEY = '__default__';
11994
12031
 
11995
- var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12032
+ var __classPrivateFieldGet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11996
12033
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11997
12034
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11998
12035
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -12000,9 +12037,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12000
12037
  var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
12001
12038
  Object.defineProperty(Instance$1, "__esModule", { value: true });
12002
12039
  Instance$1.Layout = void 0;
12003
- const lazy_1$1 = lazy;
12040
+ const lazy_1$2 = lazy;
12004
12041
  const validate_1 = validate;
12005
- const base_1$8 = base;
12042
+ const base_1$9 = base;
12006
12043
  const common_utils_1$1 = commonUtils;
12007
12044
  const layout_entities_1 = layoutEntities;
12008
12045
  const layout_constants_1$1 = layout_constants;
@@ -12138,12 +12175,12 @@ const layout_constants_1$1 = layout_constants;
12138
12175
  * }
12139
12176
  * ```
12140
12177
  */
12141
- class Layout extends base_1$8.Base {
12178
+ class Layout extends base_1$9.Base {
12142
12179
  /**
12143
12180
  * @internal
12144
12181
  */
12145
12182
  static getClient(layout) {
12146
- return __classPrivateFieldGet$7(layout, _Layout_layoutClient, "f").getValue();
12183
+ return __classPrivateFieldGet$8(layout, _Layout_layoutClient, "f").getValue();
12147
12184
  }
12148
12185
  /**
12149
12186
  * @internal
@@ -12157,7 +12194,7 @@ class Layout extends base_1$8.Base {
12157
12194
  * Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
12158
12195
  * The client is for {@link LayoutEntitiesController}
12159
12196
  */
12160
- _Layout_layoutClient.set(this, new lazy_1$1.Lazy(async () => layout_entities_1.LayoutNode.newLayoutEntitiesClient(await this.platform.getClient(), layout_constants_1$1.LAYOUT_CONTROLLER_ID, this.identity)));
12197
+ _Layout_layoutClient.set(this, new lazy_1$2.Lazy(async () => layout_entities_1.LayoutNode.newLayoutEntitiesClient(await this.platform.getClient(), layout_constants_1$1.LAYOUT_CONTROLLER_ID, this.identity)));
12161
12198
  /**
12162
12199
  * Replaces a Platform window's layout with a new layout.
12163
12200
  *
@@ -12366,7 +12403,7 @@ class Layout extends base_1$8.Base {
12366
12403
  this.wire.sendAction('layout-get-root-item').catch(() => {
12367
12404
  // don't expose
12368
12405
  });
12369
- const client = await __classPrivateFieldGet$7(this, _Layout_layoutClient, "f").getValue();
12406
+ const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
12370
12407
  const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
12371
12408
  return layout_entities_1.LayoutNode.getEntity(root, client);
12372
12409
  }
@@ -12384,7 +12421,7 @@ class Layout extends base_1$8.Base {
12384
12421
  this.wire.sendAction('layout-get-stack-by-view').catch(() => {
12385
12422
  // don't expose
12386
12423
  });
12387
- const client = await __classPrivateFieldGet$7(this, _Layout_layoutClient, "f").getValue();
12424
+ const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
12388
12425
  const stack = await client.getStackByView(identity);
12389
12426
  if (!stack) {
12390
12427
  throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
@@ -12404,7 +12441,7 @@ class Layout extends base_1$8.Base {
12404
12441
  this.wire.sendAction('layout-add-view').catch((e) => {
12405
12442
  // don't expose
12406
12443
  });
12407
- const { identity } = await __classPrivateFieldGet$7(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
12444
+ const { identity } = await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
12408
12445
  viewOptions,
12409
12446
  location,
12410
12447
  targetView
@@ -12422,7 +12459,7 @@ class Layout extends base_1$8.Base {
12422
12459
  this.wire.sendAction('layout-close-view').catch((e) => {
12423
12460
  // don't expose
12424
12461
  });
12425
- await __classPrivateFieldGet$7(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12462
+ await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12426
12463
  }
12427
12464
  }
12428
12465
  Instance$1.Layout = Layout;
@@ -12436,12 +12473,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
12436
12473
  return client.dispatch(action, { target: this.identity, opts: payload });
12437
12474
  };
12438
12475
 
12439
- var __classPrivateFieldGet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12476
+ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12440
12477
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12441
12478
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
12442
12479
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12443
12480
  };
12444
- var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12481
+ var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12445
12482
  if (kind === "m") throw new TypeError("Private method is not writable");
12446
12483
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12447
12484
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -12450,13 +12487,13 @@ var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12450
12487
  var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
12451
12488
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12452
12489
  Factory$2.LayoutModule = void 0;
12453
- const base_1$7 = base;
12490
+ const base_1$8 = base;
12454
12491
  const Instance_1$2 = Instance$1;
12455
12492
  const layout_constants_1 = layout_constants;
12456
12493
  /**
12457
12494
  * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
12458
12495
  */
12459
- class LayoutModule extends base_1$7.Base {
12496
+ class LayoutModule extends base_1$8.Base {
12460
12497
  constructor() {
12461
12498
  super(...arguments);
12462
12499
  _LayoutModule_instances.add(this);
@@ -12507,23 +12544,23 @@ class LayoutModule extends base_1$7.Base {
12507
12544
  if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
12508
12545
  throw new Error('Layout.init can only be called from a Window context.');
12509
12546
  }
12510
- if (__classPrivateFieldGet$6(this, _LayoutModule_layoutInitializationAttempted, "f")) {
12547
+ if (__classPrivateFieldGet$7(this, _LayoutModule_layoutInitializationAttempted, "f")) {
12511
12548
  throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
12512
12549
  }
12513
12550
  if (this.wire.environment.type === 'openfin') {
12514
12551
  // preload the client
12515
12552
  await this.fin.Platform.getCurrentSync().getClient();
12516
12553
  }
12517
- __classPrivateFieldSet$6(this, _LayoutModule_layoutInitializationAttempted, true, "f");
12554
+ __classPrivateFieldSet$7(this, _LayoutModule_layoutInitializationAttempted, true, "f");
12518
12555
  // TODO: rename to createLayoutManager
12519
- __classPrivateFieldSet$6(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12520
- await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f"), options);
12556
+ __classPrivateFieldSet$7(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12557
+ await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f"), options);
12521
12558
  const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
12522
12559
  if (!options.layoutManagerOverride) {
12523
12560
  // CORE-1081 to be removed when we actually delete the `layoutManager` prop
12524
12561
  // in single-layout case, we return the undocumented layoutManager type
12525
12562
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...meIdentity };
12526
- return __classPrivateFieldGet$6(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
12563
+ return __classPrivateFieldGet$7(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
12527
12564
  }
12528
12565
  return this.wrapSync(meIdentity);
12529
12566
  };
@@ -12552,13 +12589,13 @@ class LayoutModule extends base_1$7.Base {
12552
12589
  * @returns
12553
12590
  */
12554
12591
  this.getCurrentLayoutManagerSync = () => {
12555
- return __classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
12592
+ return __classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
12556
12593
  };
12557
12594
  this.create = async (options) => {
12558
- return this.wire.environment.createLayout(__classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
12595
+ return this.wire.environment.createLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
12559
12596
  };
12560
12597
  this.destroy = async (layoutIdentity) => {
12561
- return this.wire.environment.destroyLayout(__classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
12598
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
12562
12599
  };
12563
12600
  }
12564
12601
  /**
@@ -12699,10 +12736,10 @@ class LayoutModule extends base_1$7.Base {
12699
12736
  }
12700
12737
  Factory$2.LayoutModule = LayoutModule;
12701
12738
  _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12702
- if (!__classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f")) {
12739
+ if (!__classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f")) {
12703
12740
  throw new Error(`You must call init before using the API ${method}`);
12704
12741
  }
12705
- return __classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f");
12742
+ return __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f");
12706
12743
  };
12707
12744
 
12708
12745
  (function (exports) {
@@ -12739,13 +12776,13 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
12739
12776
 
12740
12777
  Object.defineProperty(Factory$3, "__esModule", { value: true });
12741
12778
  Factory$3.PlatformModule = void 0;
12742
- const base_1$6 = base;
12779
+ const base_1$7 = base;
12743
12780
  const Instance_1$1 = Instance$2;
12744
12781
  const index_1$1 = layout;
12745
12782
  /**
12746
12783
  * Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
12747
12784
  */
12748
- class PlatformModule extends base_1$6.Base {
12785
+ class PlatformModule extends base_1$7.Base {
12749
12786
  /**
12750
12787
  * @internal
12751
12788
  */
@@ -13665,13 +13702,13 @@ class PrivateChannelProvider {
13665
13702
  }
13666
13703
  PrivateChannelProvider$1.PrivateChannelProvider = PrivateChannelProvider;
13667
13704
 
13668
- var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13705
+ var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13669
13706
  if (kind === "m") throw new TypeError("Private method is not writable");
13670
13707
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13671
13708
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
13672
13709
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
13673
13710
  };
13674
- var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13711
+ var __classPrivateFieldGet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13675
13712
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13676
13713
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
13677
13714
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -13682,12 +13719,12 @@ var __importDefault$4 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
13682
13719
  var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
13683
13720
  Object.defineProperty(InteropBroker$1, "__esModule", { value: true });
13684
13721
  InteropBroker$1.InteropBroker = void 0;
13685
- const base_1$5 = base;
13722
+ const base_1$6 = base;
13686
13723
  const SessionContextGroupBroker_1 = __importDefault$4(SessionContextGroupBroker$1);
13687
13724
  const utils_1$7 = utils$3;
13688
13725
  const isEqual_1$1 = __importDefault$4(require$$3);
13689
13726
  const PrivateChannelProvider_1 = PrivateChannelProvider$1;
13690
- const lazy_1 = lazy;
13727
+ const lazy_1$1 = lazy;
13691
13728
  const defaultContextGroups = [
13692
13729
  {
13693
13730
  id: 'green',
@@ -13851,7 +13888,7 @@ const defaultContextGroups = [
13851
13888
  * ---
13852
13889
  *
13853
13890
  */
13854
- class InteropBroker extends base_1$5.Base {
13891
+ class InteropBroker extends base_1$6.Base {
13855
13892
  /**
13856
13893
  * @internal
13857
13894
  */
@@ -13862,19 +13899,19 @@ class InteropBroker extends base_1$5.Base {
13862
13899
  _InteropBroker_contextGroups.set(this, void 0);
13863
13900
  _InteropBroker_providerPromise.set(this, void 0);
13864
13901
  this.getProvider = () => {
13865
- return __classPrivateFieldGet$5(this, _InteropBroker_providerPromise, "f").getValue();
13902
+ return __classPrivateFieldGet$6(this, _InteropBroker_providerPromise, "f").getValue();
13866
13903
  };
13867
13904
  this.interopClients = new Map();
13868
13905
  this.contextGroupsById = new Map();
13869
- __classPrivateFieldSet$5(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13870
- __classPrivateFieldSet$5(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13906
+ __classPrivateFieldSet$6(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13907
+ __classPrivateFieldSet$6(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13871
13908
  if (options?.logging) {
13872
13909
  this.logging = options.logging;
13873
13910
  }
13874
13911
  this.intentClientMap = new Map();
13875
13912
  this.lastContextMap = new Map();
13876
13913
  this.sessionContextGroupMap = new Map();
13877
- __classPrivateFieldSet$5(this, _InteropBroker_providerPromise, new lazy_1.Lazy(createProvider), "f");
13914
+ __classPrivateFieldSet$6(this, _InteropBroker_providerPromise, new lazy_1$1.Lazy(createProvider), "f");
13878
13915
  this.setContextGroupMap();
13879
13916
  this.setupChannelProvider();
13880
13917
  }
@@ -14142,7 +14179,7 @@ class InteropBroker extends base_1$5.Base {
14142
14179
  // don't expose, analytics-only call
14143
14180
  });
14144
14181
  // Create copy for immutability
14145
- return __classPrivateFieldGet$5(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
14182
+ return __classPrivateFieldGet$6(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
14146
14183
  return { ...contextGroup };
14147
14184
  });
14148
14185
  }
@@ -14553,7 +14590,7 @@ class InteropBroker extends base_1$5.Base {
14553
14590
  const { fdc3Version } = payload;
14554
14591
  return {
14555
14592
  fdc3Version,
14556
- ...__classPrivateFieldGet$5(this, _InteropBroker_fdc3Info, "f"),
14593
+ ...__classPrivateFieldGet$6(this, _InteropBroker_fdc3Info, "f"),
14557
14594
  optionalFeatures: {
14558
14595
  OriginatingAppMetadata: false,
14559
14596
  UserChannelMembershipAPIs: true
@@ -14930,27 +14967,27 @@ var InteropClient$1 = {};
14930
14967
 
14931
14968
  var SessionContextGroupClient$1 = {};
14932
14969
 
14933
- var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14970
+ var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14934
14971
  if (kind === "m") throw new TypeError("Private method is not writable");
14935
14972
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14936
14973
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14937
14974
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14938
14975
  };
14939
- var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14976
+ var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14940
14977
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14941
14978
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
14942
14979
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14943
14980
  };
14944
14981
  var _SessionContextGroupClient_clientPromise;
14945
14982
  Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
14946
- const base_1$4 = base;
14983
+ const base_1$5 = base;
14947
14984
  const utils_1$6 = utils$3;
14948
- class SessionContextGroupClient extends base_1$4.Base {
14985
+ class SessionContextGroupClient extends base_1$5.Base {
14949
14986
  constructor(wire, client, id) {
14950
14987
  super(wire);
14951
14988
  _SessionContextGroupClient_clientPromise.set(this, void 0);
14952
14989
  this.id = id;
14953
- __classPrivateFieldSet$4(this, _SessionContextGroupClient_clientPromise, client, "f");
14990
+ __classPrivateFieldSet$5(this, _SessionContextGroupClient_clientPromise, client, "f");
14954
14991
  }
14955
14992
  /**
14956
14993
  * Sets a context for the session context group.
@@ -14962,7 +14999,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14962
14999
  this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
14963
15000
  // don't expose, analytics-only call
14964
15001
  });
14965
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
15002
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14966
15003
  return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
14967
15004
  sessionContextGroupId: this.id,
14968
15005
  context
@@ -14972,7 +15009,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14972
15009
  this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
14973
15010
  // don't expose, analytics-only call
14974
15011
  });
14975
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
15012
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14976
15013
  return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
14977
15014
  sessionContextGroupId: this.id,
14978
15015
  type
@@ -14985,7 +15022,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14985
15022
  if (typeof contextHandler !== 'function') {
14986
15023
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14987
15024
  }
14988
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
15025
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14989
15026
  let handlerId;
14990
15027
  if (contextType) {
14991
15028
  handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${(0, utils_1$6.generateId)()}`;
@@ -14998,7 +15035,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14998
15035
  return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
14999
15036
  }
15000
15037
  async createUnsubscribeCb(handlerId) {
15001
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
15038
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
15002
15039
  return async () => {
15003
15040
  client.remove(handlerId);
15004
15041
  await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
@@ -15016,13 +15053,13 @@ class SessionContextGroupClient extends base_1$4.Base {
15016
15053
  SessionContextGroupClient$1.default = SessionContextGroupClient;
15017
15054
  _SessionContextGroupClient_clientPromise = new WeakMap();
15018
15055
 
15019
- var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15056
+ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15020
15057
  if (kind === "m") throw new TypeError("Private method is not writable");
15021
15058
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15022
15059
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
15023
15060
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15024
15061
  };
15025
- var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15062
+ var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15026
15063
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15027
15064
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
15028
15065
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -15033,7 +15070,7 @@ var __importDefault$3 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
15033
15070
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups, _InteropClient_fdc3Factory;
15034
15071
  Object.defineProperty(InteropClient$1, "__esModule", { value: true });
15035
15072
  InteropClient$1.InteropClient = void 0;
15036
- const base_1$3 = base;
15073
+ const base_1$4 = base;
15037
15074
  const SessionContextGroupClient_1 = __importDefault$3(SessionContextGroupClient$1);
15038
15075
  const utils_1$5 = utils$3;
15039
15076
  /**
@@ -15085,7 +15122,7 @@ const utils_1$5 = utils$3;
15085
15122
  * * {@link InteropClient#getAllClientsInContextGroup getAllClientsInContextGroup(contextGroupId)}
15086
15123
  *
15087
15124
  */
15088
- class InteropClient extends base_1$3.Base {
15125
+ class InteropClient extends base_1$4.Base {
15089
15126
  /**
15090
15127
  * @internal
15091
15128
  */
@@ -15094,9 +15131,9 @@ class InteropClient extends base_1$3.Base {
15094
15131
  _InteropClient_clientPromise.set(this, void 0);
15095
15132
  _InteropClient_sessionContextGroups.set(this, void 0);
15096
15133
  _InteropClient_fdc3Factory.set(this, void 0);
15097
- __classPrivateFieldSet$3(this, _InteropClient_sessionContextGroups, new Map(), "f");
15098
- __classPrivateFieldSet$3(this, _InteropClient_clientPromise, clientPromise, "f");
15099
- __classPrivateFieldSet$3(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
15134
+ __classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
15135
+ __classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
15136
+ __classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
15100
15137
  }
15101
15138
  /*
15102
15139
  Client APIs
@@ -15124,7 +15161,7 @@ class InteropClient extends base_1$3.Base {
15124
15161
  this.wire.sendAction('interop-client-set-context').catch((e) => {
15125
15162
  // don't expose, analytics-only call
15126
15163
  });
15127
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15164
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15128
15165
  return client.dispatch('setContext', { context });
15129
15166
  }
15130
15167
  /**
@@ -15191,7 +15228,7 @@ class InteropClient extends base_1$3.Base {
15191
15228
  if (typeof handler !== 'function') {
15192
15229
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
15193
15230
  }
15194
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15231
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15195
15232
  let handlerId;
15196
15233
  if (contextType) {
15197
15234
  handlerId = `invokeContextHandler-${contextType}-${(0, utils_1$5.generateId)()}`;
@@ -15231,7 +15268,7 @@ class InteropClient extends base_1$3.Base {
15231
15268
  this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
15232
15269
  // don't expose, analytics-only call
15233
15270
  });
15234
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15271
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15235
15272
  return client.dispatch('getContextGroups');
15236
15273
  }
15237
15274
  /**
@@ -15262,7 +15299,7 @@ class InteropClient extends base_1$3.Base {
15262
15299
  this.wire.sendAction('interop-client-join-context-group').catch((e) => {
15263
15300
  // don't expose, analytics-only call
15264
15301
  });
15265
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15302
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15266
15303
  if (!contextGroupId) {
15267
15304
  throw new Error('No contextGroupId specified for joinContextGroup.');
15268
15305
  }
@@ -15291,7 +15328,7 @@ class InteropClient extends base_1$3.Base {
15291
15328
  this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
15292
15329
  // don't expose, analytics-only call
15293
15330
  });
15294
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15331
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15295
15332
  return client.dispatch('removeFromContextGroup', { target });
15296
15333
  }
15297
15334
  /**
@@ -15314,7 +15351,7 @@ class InteropClient extends base_1$3.Base {
15314
15351
  this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
15315
15352
  // don't expose, analytics-only call
15316
15353
  });
15317
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15354
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15318
15355
  if (!contextGroupId) {
15319
15356
  throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
15320
15357
  }
@@ -15339,7 +15376,7 @@ class InteropClient extends base_1$3.Base {
15339
15376
  this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
15340
15377
  // don't expose, analytics-only call
15341
15378
  });
15342
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15379
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15343
15380
  if (!contextGroupId) {
15344
15381
  throw new Error('No contextGroupId specified for getInfoForContextGroup.');
15345
15382
  }
@@ -15367,7 +15404,7 @@ class InteropClient extends base_1$3.Base {
15367
15404
  this.wire.sendAction('interop-client-fire-intent').catch((e) => {
15368
15405
  // don't expose, this is only for api analytics purposes
15369
15406
  });
15370
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15407
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15371
15408
  return client.dispatch('fireIntent', intent);
15372
15409
  }
15373
15410
  /**
@@ -15394,7 +15431,7 @@ class InteropClient extends base_1$3.Base {
15394
15431
  this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
15395
15432
  // don't expose, this is only for api analytics purposes
15396
15433
  });
15397
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15434
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15398
15435
  const handlerId = `intent-handler-${intentName}`;
15399
15436
  const wrappedHandler = (0, utils_1$5.wrapIntentHandler)(handler, handlerId);
15400
15437
  try {
@@ -15432,7 +15469,7 @@ class InteropClient extends base_1$3.Base {
15432
15469
  this.wire.sendAction('interop-client-get-current-context').catch((e) => {
15433
15470
  // don't expose, analytics-only call
15434
15471
  });
15435
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15472
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15436
15473
  return client.dispatch('getCurrentContext', { contextType });
15437
15474
  }
15438
15475
  /**
@@ -15452,7 +15489,7 @@ class InteropClient extends base_1$3.Base {
15452
15489
  this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
15453
15490
  // don't expose, analytics-only call
15454
15491
  });
15455
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15492
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15456
15493
  return client.dispatch('getInfoForIntent', options);
15457
15494
  }
15458
15495
  /**
@@ -15483,7 +15520,7 @@ class InteropClient extends base_1$3.Base {
15483
15520
  this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
15484
15521
  // don't expose, analytics-only call
15485
15522
  });
15486
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15523
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15487
15524
  return client.dispatch('getInfoForIntentsByContext', context);
15488
15525
  }
15489
15526
  /**
@@ -15515,7 +15552,7 @@ class InteropClient extends base_1$3.Base {
15515
15552
  this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
15516
15553
  // don't expose, analytics-only call
15517
15554
  });
15518
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15555
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15519
15556
  return client.dispatch('fireIntentForContext', context);
15520
15557
  }
15521
15558
  /**
@@ -15552,19 +15589,19 @@ class InteropClient extends base_1$3.Base {
15552
15589
  */
15553
15590
  async joinSessionContextGroup(sessionContextGroupId) {
15554
15591
  try {
15555
- const currentSessionContextGroup = __classPrivateFieldGet$3(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
15592
+ const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
15556
15593
  if (currentSessionContextGroup) {
15557
15594
  return currentSessionContextGroup.getUserInstance();
15558
15595
  }
15559
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15596
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15560
15597
  const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
15561
15598
  sessionContextGroupId
15562
15599
  });
15563
15600
  if (hasConflict) {
15564
15601
  console.warn(`A (non-session) context group with the name "${sessionContextGroupId}" already exists. If you are trying to join a Context Group, call joinContextGroup instead.`);
15565
15602
  }
15566
- const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15567
- __classPrivateFieldGet$3(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15603
+ const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15604
+ __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15568
15605
  return newSessionContextGroup.getUserInstance();
15569
15606
  }
15570
15607
  catch (error) {
@@ -15591,14 +15628,14 @@ class InteropClient extends base_1$3.Base {
15591
15628
  this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
15592
15629
  // don't expose, analytics-only call
15593
15630
  });
15594
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15631
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15595
15632
  return client.onDisconnection((event) => {
15596
15633
  const { uuid } = event;
15597
15634
  listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
15598
15635
  });
15599
15636
  }
15600
15637
  getFDC3Sync(version) {
15601
- return __classPrivateFieldGet$3(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
15638
+ return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
15602
15639
  }
15603
15640
  async getFDC3(version) {
15604
15641
  return this.getFDC3Sync(version);
@@ -15609,7 +15646,7 @@ class InteropClient extends base_1$3.Base {
15609
15646
  * Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
15610
15647
  */
15611
15648
  static async ferryFdc3Call(interopClient, action, payload) {
15612
- const client = await __classPrivateFieldGet$3(interopClient, _InteropClient_clientPromise, "f");
15649
+ const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
15613
15650
  return client.dispatch(action, payload || null);
15614
15651
  }
15615
15652
  }
@@ -16024,12 +16061,12 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
16024
16061
  exports.getIntentResolution = getIntentResolution;
16025
16062
  } (utils$2));
16026
16063
 
16027
- var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16064
+ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16028
16065
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16029
16066
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16030
16067
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16031
16068
  };
16032
- var __classPrivateFieldSet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16069
+ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16033
16070
  if (kind === "m") throw new TypeError("Private method is not writable");
16034
16071
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16035
16072
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
@@ -16047,7 +16084,7 @@ const InteropClient_1$2 = InteropClient$1;
16047
16084
  const isEqual_1 = __importDefault$2(require$$3);
16048
16085
  class FDC3ModuleBase {
16049
16086
  get client() {
16050
- return __classPrivateFieldGet$2(this, _FDC3ModuleBase_producer, "f").call(this);
16087
+ return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
16051
16088
  }
16052
16089
  get fin() {
16053
16090
  return this.wire.getFin();
@@ -16056,7 +16093,7 @@ class FDC3ModuleBase {
16056
16093
  constructor(producer, wire) {
16057
16094
  this.wire = wire;
16058
16095
  _FDC3ModuleBase_producer.set(this, void 0);
16059
- __classPrivateFieldSet$2(this, _FDC3ModuleBase_producer, producer, "f");
16096
+ __classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
16060
16097
  }
16061
16098
  /**
16062
16099
  * Broadcasts a context for the channel of the current entity.
@@ -16837,7 +16874,7 @@ Object.defineProperty(Factory$1, "__esModule", { value: true });
16837
16874
  Factory$1.InteropModule = void 0;
16838
16875
  const cloneDeep_1 = __importDefault$1(require$$0$1);
16839
16876
  const inaccessibleObject_1 = inaccessibleObject;
16840
- const base_1$2 = base;
16877
+ const base_1$3 = base;
16841
16878
  const InteropBroker_1 = InteropBroker$1;
16842
16879
  const InteropClient_1 = InteropClient$1;
16843
16880
  const overrideCheck_1 = overrideCheck$1;
@@ -16849,7 +16886,7 @@ const BrokerParamAccessError = 'You have attempted to use or modify InteropBroke
16849
16886
  * Manages creation of Interop Brokers and Interop Clients. These APIs are called under-the-hood in Platforms.
16850
16887
  *
16851
16888
  */
16852
- class InteropModule extends base_1$2.Base {
16889
+ class InteropModule extends base_1$3.Base {
16853
16890
  /**
16854
16891
  * Initializes an Interop Broker. This is called under-the-hood for Platforms.
16855
16892
  *
@@ -16973,13 +17010,13 @@ const channelPrefix = 'snapshot-source-provider-';
16973
17010
  const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
16974
17011
  utils.getSnapshotSourceChannelName = getSnapshotSourceChannelName;
16975
17012
 
16976
- var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
17013
+ var __classPrivateFieldSet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16977
17014
  if (kind === "m") throw new TypeError("Private method is not writable");
16978
17015
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16979
17016
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16980
17017
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16981
17018
  };
16982
- var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17019
+ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16983
17020
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16984
17021
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
16985
17022
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16988,7 +17025,7 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
16988
17025
  Object.defineProperty(Instance, "__esModule", { value: true });
16989
17026
  Instance.SnapshotSource = void 0;
16990
17027
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
16991
- const base_1$1 = base;
17028
+ const base_1$2 = base;
16992
17029
  const utils_1$1 = utils;
16993
17030
  const connectionMap = new Map();
16994
17031
  /**
@@ -16997,7 +17034,7 @@ const connectionMap = new Map();
16997
17034
  * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
16998
17035
  * custom snapshot implementations for legacy applications to define their own snapshot format.
16999
17036
  */
17000
- class SnapshotSource extends base_1$1.Base {
17037
+ class SnapshotSource extends base_1$2.Base {
17001
17038
  /**
17002
17039
  * @internal
17003
17040
  */
@@ -17011,26 +17048,26 @@ class SnapshotSource extends base_1$1.Base {
17011
17048
  return connectionMap.get(this.identity.uuid);
17012
17049
  });
17013
17050
  _SnapshotSource_getClient.set(this, () => {
17014
- if (!__classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
17015
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$1(this, _SnapshotSource_startConnection, "f").call(this);
17051
+ if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
17052
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
17016
17053
  }
17017
- return __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
17054
+ return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
17018
17055
  });
17019
17056
  _SnapshotSource_startConnection.set(this, async () => {
17020
17057
  const channelName = (0, utils_1$1.getSnapshotSourceChannelName)(this.identity);
17021
17058
  try {
17022
- if (!__classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
17023
- await __classPrivateFieldGet$1(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
17059
+ if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
17060
+ await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
17024
17061
  }
17025
17062
  const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
17026
17063
  client.onDisconnection(() => {
17027
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
17028
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
17064
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
17065
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
17029
17066
  });
17030
17067
  return client;
17031
17068
  }
17032
17069
  catch (e) {
17033
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
17070
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
17034
17071
  throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
17035
17072
  }
17036
17073
  });
@@ -17042,7 +17079,7 @@ class SnapshotSource extends base_1$1.Base {
17042
17079
  resolve = y;
17043
17080
  reject = n;
17044
17081
  });
17045
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
17082
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
17046
17083
  const listener = async (e) => {
17047
17084
  try {
17048
17085
  if (e.channelName === channelName) {
@@ -17056,10 +17093,10 @@ class SnapshotSource extends base_1$1.Base {
17056
17093
  };
17057
17094
  await this.fin.InterApplicationBus.Channel.on('connected', listener);
17058
17095
  });
17059
- __classPrivateFieldSet$1(this, _SnapshotSource_identity, id, "f");
17096
+ __classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
17060
17097
  }
17061
17098
  get identity() {
17062
- return __classPrivateFieldGet$1(this, _SnapshotSource_identity, "f");
17099
+ return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
17063
17100
  }
17064
17101
  /**
17065
17102
  * Method to determine if the SnapshotSource has been initialized.
@@ -17095,11 +17132,11 @@ class SnapshotSource extends base_1$1.Base {
17095
17132
  // eslint-disable-next-line no-async-promise-executor
17096
17133
  try {
17097
17134
  // If getClient was already called before this, do we have a timing issue where the channel might have been created but we missed the event but this still fails?
17098
- await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
17135
+ await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
17099
17136
  }
17100
17137
  catch (e) {
17101
17138
  // it was not running.
17102
- await __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
17139
+ await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
17103
17140
  }
17104
17141
  }
17105
17142
  /**
@@ -17110,7 +17147,7 @@ class SnapshotSource extends base_1$1.Base {
17110
17147
  this.wire.sendAction('snapshot-source-get-snapshot').catch((e) => {
17111
17148
  // don't expose, analytics-only call
17112
17149
  });
17113
- const client = await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
17150
+ const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
17114
17151
  const response = (await client.dispatch('get-snapshot'));
17115
17152
  return (await response).snapshot;
17116
17153
  }
@@ -17122,7 +17159,7 @@ class SnapshotSource extends base_1$1.Base {
17122
17159
  this.wire.sendAction('snapshot-source-apply-snapshot').catch((e) => {
17123
17160
  // don't expose, analytics-only call
17124
17161
  });
17125
- const client = await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
17162
+ const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
17126
17163
  return client.dispatch('apply-snapshot', { snapshot });
17127
17164
  }
17128
17165
  }
@@ -17131,13 +17168,13 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
17131
17168
 
17132
17169
  Object.defineProperty(Factory, "__esModule", { value: true });
17133
17170
  Factory.SnapshotSourceModule = void 0;
17134
- const base_1 = base;
17171
+ const base_1$1 = base;
17135
17172
  const Instance_1 = Instance;
17136
17173
  const utils_1 = utils;
17137
17174
  /**
17138
17175
  * Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
17139
17176
  */
17140
- class SnapshotSourceModule extends base_1.Base {
17177
+ class SnapshotSourceModule extends base_1$1.Base {
17141
17178
  /**
17142
17179
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
17143
17180
  *
@@ -17243,6 +17280,114 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
17243
17280
  __exportStar(Instance, exports);
17244
17281
  } (snapshotSource));
17245
17282
 
17283
+ var notificationManager = {};
17284
+
17285
+ var factory = {};
17286
+
17287
+ var instance = {};
17288
+
17289
+ var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
17290
+ if (kind === "m") throw new TypeError("Private method is not writable");
17291
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
17292
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
17293
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
17294
+ };
17295
+ var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17296
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
17297
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
17298
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17299
+ };
17300
+ var _NotificationManagerInstance_wire, _NotificationManagerInstance_handler, _NotificationManagerInstance_id, _NotificationManagerInstance_isReceivingNotifications;
17301
+ Object.defineProperty(instance, "__esModule", { value: true });
17302
+ instance.NotificationManagerInstance = void 0;
17303
+ const lazy_1 = lazy;
17304
+ class NotificationManagerInstance {
17305
+ constructor(wire, id) {
17306
+ _NotificationManagerInstance_wire.set(this, void 0);
17307
+ _NotificationManagerInstance_handler.set(this, void 0);
17308
+ _NotificationManagerInstance_id.set(this, void 0);
17309
+ _NotificationManagerInstance_isReceivingNotifications.set(this, new lazy_1.Lazy(async () => {
17310
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
17311
+ if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
17312
+ const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
17313
+ try {
17314
+ __classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
17315
+ properties,
17316
+ images: {
17317
+ image,
17318
+ icon,
17319
+ badge
17320
+ },
17321
+ url,
17322
+ notificationId
17323
+ });
17324
+ }
17325
+ catch (error) {
17326
+ console.error('Failed to handle notification', error);
17327
+ }
17328
+ return true;
17329
+ }
17330
+ return false;
17331
+ });
17332
+ return true;
17333
+ }));
17334
+ this.setNotificationHandler = async (handler) => {
17335
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
17336
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
17337
+ };
17338
+ this.destroy = async () => {
17339
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
17340
+ };
17341
+ this.dispatch = async (event) => {
17342
+ const { notificationId, type } = event;
17343
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
17344
+ notificationId,
17345
+ type
17346
+ });
17347
+ };
17348
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
17349
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
17350
+ }
17351
+ }
17352
+ instance.NotificationManagerInstance = NotificationManagerInstance;
17353
+ _NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
17354
+
17355
+ Object.defineProperty(factory, "__esModule", { value: true });
17356
+ factory.NotificationManagerModule = void 0;
17357
+ const base_1 = base;
17358
+ const instance_1 = instance;
17359
+ class NotificationManagerModule extends base_1.Base {
17360
+ constructor() {
17361
+ super(...arguments);
17362
+ this.init = async () => {
17363
+ const { payload: { data: { managerId } } } = await this.wire.sendAction('init-notification-manager');
17364
+ const manager = new instance_1.NotificationManagerInstance(this.wire, managerId);
17365
+ return manager;
17366
+ };
17367
+ }
17368
+ }
17369
+ factory.NotificationManagerModule = NotificationManagerModule;
17370
+
17371
+ (function (exports) {
17372
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17373
+ if (k2 === undefined) k2 = k;
17374
+ var desc = Object.getOwnPropertyDescriptor(m, k);
17375
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17376
+ desc = { enumerable: true, get: function() { return m[k]; } };
17377
+ }
17378
+ Object.defineProperty(o, k2, desc);
17379
+ }) : (function(o, m, k, k2) {
17380
+ if (k2 === undefined) k2 = k;
17381
+ o[k2] = m[k];
17382
+ }));
17383
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
17384
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17385
+ };
17386
+ Object.defineProperty(exports, "__esModule", { value: true });
17387
+ __exportStar(factory, exports);
17388
+ __exportStar(instance, exports);
17389
+ } (notificationManager));
17390
+
17246
17391
  Object.defineProperty(fin$2, "__esModule", { value: true });
17247
17392
  var Fin_1 = fin$2.Fin = void 0;
17248
17393
  const events_1$3 = require$$0;
@@ -17260,6 +17405,7 @@ const index_10 = platform;
17260
17405
  const me_1$2 = me;
17261
17406
  const interop_1 = interop;
17262
17407
  const snapshot_source_1 = snapshotSource;
17408
+ const notification_manager_1 = notificationManager;
17263
17409
  /**
17264
17410
  * @internal
17265
17411
  */
@@ -17282,6 +17428,7 @@ class Fin extends events_1$3.EventEmitter {
17282
17428
  this.View = new index_9.ViewModule(wire);
17283
17429
  this.Interop = new interop_1.InteropModule(wire);
17284
17430
  this.SnapshotSource = new snapshot_source_1.SnapshotSourceModule(wire);
17431
+ this.NotificationManager = new notification_manager_1.NotificationManagerModule(wire);
17285
17432
  wire.registerFin(this);
17286
17433
  this.me = (0, me_1$2.getMe)(wire);
17287
17434
  // Handle disconnect events