@openfin/node-adapter 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.
Files changed (2) hide show
  1. package/out/node-adapter.js +413 -266
  2. package/package.json +2 -2
@@ -73,13 +73,13 @@ async function promiseMapSerial(arr, func) {
73
73
  }
74
74
  promises.promiseMapSerial = promiseMapSerial;
75
75
 
76
- var __classPrivateFieldSet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
76
+ var __classPrivateFieldSet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
77
77
  if (kind === "m") throw new TypeError("Private method is not writable");
78
78
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
79
79
  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");
80
80
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
81
81
  };
82
- var __classPrivateFieldGet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
82
+ var __classPrivateFieldGet$i = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
83
83
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
84
84
  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");
85
85
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -164,7 +164,7 @@ class EmitterBase extends Base {
164
164
  this.emit = (eventType, payload, ...args) => {
165
165
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
166
166
  };
167
- this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
167
+ this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
168
168
  /**
169
169
  * Cleans up after removal of a listener, e.g. deleting any lingering deregistration handlers for a
170
170
  * `once` subscription.
@@ -174,14 +174,14 @@ class EmitterBase extends Base {
174
174
  * which would involve less "magic," but would be more-vulnerable to accidental re-introduction of a leak.
175
175
  */
176
176
  this.cleanUpRemovedListener = (eventType, listener) => {
177
- const deregister = __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
177
+ const deregister = __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
178
178
  if (deregister) {
179
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
179
+ const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
180
180
  emitter.removeListener(eventType, deregister);
181
181
  }
182
182
  };
183
183
  this.getOrCreateEmitter = () => {
184
- const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
184
+ const emitter = this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
185
185
  if (!emitter.listeners('removeListener').includes(this.cleanUpRemovedListener)) {
186
186
  emitter.on('removeListener', this.cleanUpRemovedListener);
187
187
  }
@@ -223,8 +223,8 @@ class EmitterBase extends Base {
223
223
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
224
224
  return Promise.resolve();
225
225
  };
226
- __classPrivateFieldSet$g(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
227
- __classPrivateFieldSet$g(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
226
+ __classPrivateFieldSet$h(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
227
+ __classPrivateFieldSet$h(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
228
228
  this.listeners = (event) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(event) : [];
229
229
  }
230
230
  /**
@@ -253,7 +253,7 @@ class EmitterBase extends Base {
253
253
  */
254
254
  async once(eventType, listener, options) {
255
255
  const deregister = () => this.deregisterEventListener(eventType);
256
- __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
256
+ __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
257
257
  await this.registerEventListener(eventType, options, (emitter) => {
258
258
  emitter.once(eventType, deregister);
259
259
  emitter.once(eventType, listener);
@@ -284,7 +284,7 @@ class EmitterBase extends Base {
284
284
  */
285
285
  async prependOnceListener(eventType, listener, options) {
286
286
  const deregister = () => this.deregisterEventListener(eventType);
287
- __classPrivateFieldGet$h(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
287
+ __classPrivateFieldGet$i(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
288
288
  await this.registerEventListener(eventType, options, (emitter) => {
289
289
  emitter.prependOnceListener(eventType, listener);
290
290
  emitter.once(eventType, deregister);
@@ -344,7 +344,7 @@ class EmitterBase extends Base {
344
344
  }
345
345
  deleteEmitterIfNothingRegistered(emitter) {
346
346
  if (emitter.eventNames().every((type) => type === 'removeListener')) {
347
- this.wire.eventAggregator.delete(__classPrivateFieldGet$h(this, _EmitterBase_emitterAccessor, "f"));
347
+ this.wire.eventAggregator.delete(__classPrivateFieldGet$i(this, _EmitterBase_emitterAccessor, "f"));
348
348
  }
349
349
  }
350
350
  }
@@ -795,8 +795,8 @@ var main = {};
795
795
 
796
796
  Object.defineProperty(main, "__esModule", { value: true });
797
797
  main.WebContents = void 0;
798
- const base_1$m = base;
799
- class WebContents extends base_1$m.EmitterBase {
798
+ const base_1$n = base;
799
+ class WebContents extends base_1$n.EmitterBase {
800
800
  /**
801
801
  * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
802
802
  * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
@@ -3756,6 +3756,37 @@ function requireInstance () {
3756
3756
  getAllFrames() {
3757
3757
  return this.wire.sendAction('get-all-frames', this.identity).then(({ payload }) => payload.data);
3758
3758
  }
3759
+ /**
3760
+ * Activates the current window and focuses the child entity if it exists. If this does
3761
+ * not succeed - say the child does not belong to this window, or the identity does not exist -
3762
+ * it will return false.
3763
+ *
3764
+ * @example
3765
+ * ```js
3766
+ * const win = fin.Window.wrapSync({ uuid: 'myApp', name: 'myOtherWindow' });
3767
+ *
3768
+ * win.getCurrentViews()
3769
+ * .then(([view1]) => {
3770
+ * return win.activateAndFocus(view1.identity);
3771
+ * })
3772
+ * .then(success => {
3773
+ * if (success) {
3774
+ * console.log('Window activated and child focused');
3775
+ * } else {
3776
+ * console.log('Window activation failed, focus state unchanged');
3777
+ * }
3778
+ * })
3779
+ * .catch(console.error);
3780
+ * ```
3781
+ */
3782
+ activateAndFocus(childIdentityToFocus) {
3783
+ return this.wire
3784
+ .sendAction('activate-window-and-focus', {
3785
+ winIdentity: this.identity,
3786
+ focusIdentity: childIdentityToFocus
3787
+ })
3788
+ .then(({ payload }) => payload.data);
3789
+ }
3759
3790
  /**
3760
3791
  * Gets the current bounds (top, bottom, right, left, width, height) of the window.
3761
3792
  *
@@ -5113,7 +5144,7 @@ function requireWindow () {
5113
5144
  */
5114
5145
  Object.defineProperty(system, "__esModule", { value: true });
5115
5146
  system.System = void 0;
5116
- const base_1$l = base;
5147
+ const base_1$m = base;
5117
5148
  const transport_errors_1$6 = transportErrors;
5118
5149
  const window_1 = requireWindow();
5119
5150
  const events_1$6 = require$$0;
@@ -5123,7 +5154,7 @@ const events_1$6 = require$$0;
5123
5154
  * clearing the cache and exiting the runtime as well as listen to {@link OpenFin.SystemEvents system events}.
5124
5155
  *
5125
5156
  */
5126
- class System extends base_1$l.EmitterBase {
5157
+ class System extends base_1$m.EmitterBase {
5127
5158
  /**
5128
5159
  * @internal
5129
5160
  */
@@ -7013,6 +7044,12 @@ class System extends base_1$l.EmitterBase {
7013
7044
  async serveAsset(options) {
7014
7045
  return (await this.wire.sendAction('serve-asset', { options })).payload.data;
7015
7046
  }
7047
+ /**
7048
+ * Launches the Log Uploader. Full documentation can be found [here](https://resources.here.io/docs/core/develop/debug/log-uploader/).
7049
+ */
7050
+ async launchLogUploader(options) {
7051
+ return (await this.wire.sendAction('launch-log-uploader', { options })).payload.data;
7052
+ }
7016
7053
  }
7017
7054
  system.System = System;
7018
7055
 
@@ -7434,12 +7471,12 @@ class ChannelError extends Error {
7434
7471
  }
7435
7472
  channelError.ChannelError = ChannelError;
7436
7473
 
7437
- var __classPrivateFieldGet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7474
+ var __classPrivateFieldGet$h = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7438
7475
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7439
7476
  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");
7440
7477
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7441
7478
  };
7442
- var __classPrivateFieldSet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7479
+ var __classPrivateFieldSet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7443
7480
  if (kind === "m") throw new TypeError("Private method is not writable");
7444
7481
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7445
7482
  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");
@@ -7483,7 +7520,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7483
7520
  static closeChannelByEndpointId(id) {
7484
7521
  const channel = channelClientsByEndpointId.get(id);
7485
7522
  if (channel) {
7486
- __classPrivateFieldGet$g(channel, _ChannelClient_close, "f").call(channel);
7523
+ __classPrivateFieldGet$h(channel, _ChannelClient_close, "f").call(channel);
7487
7524
  }
7488
7525
  }
7489
7526
  /**
@@ -7494,7 +7531,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7494
7531
  for (const channelClient of channelClientsByEndpointId.values()) {
7495
7532
  if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
7496
7533
  channelClient.disconnectListener(eventPayload);
7497
- __classPrivateFieldGet$g(channelClient, _ChannelClient_close, "f").call(channelClient);
7534
+ __classPrivateFieldGet$h(channelClient, _ChannelClient_close, "f").call(channelClient);
7498
7535
  }
7499
7536
  }
7500
7537
  }
@@ -7509,12 +7546,12 @@ class ChannelClient extends channel_1$1.ChannelBase {
7509
7546
  this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
7510
7547
  _ChannelClient_close.set(this, () => {
7511
7548
  channelClientsByEndpointId.delete(this.endpointId);
7512
- __classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").close();
7549
+ __classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").close();
7513
7550
  });
7514
- __classPrivateFieldSet$f(this, _ChannelClient_protectedObj, new channel_1$1.ProtectedItems(routingInfo, close), "f");
7551
+ __classPrivateFieldSet$g(this, _ChannelClient_protectedObj, new channel_1$1.ProtectedItems(routingInfo, close), "f");
7515
7552
  this.disconnectListener = () => undefined;
7516
7553
  this.endpointId = routingInfo.endpointId;
7517
- __classPrivateFieldSet$f(this, _ChannelClient_strategy, strategy, "f");
7554
+ __classPrivateFieldSet$g(this, _ChannelClient_strategy, strategy, "f");
7518
7555
  channelClientsByEndpointId.set(this.endpointId, this);
7519
7556
  strategy.receive(this.processAction);
7520
7557
  }
@@ -7522,7 +7559,7 @@ class ChannelClient extends channel_1$1.ChannelBase {
7522
7559
  * a read-only provider identity
7523
7560
  */
7524
7561
  get providerIdentity() {
7525
- const protectedObj = __classPrivateFieldGet$g(this, _ChannelClient_protectedObj, "f");
7562
+ const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
7526
7563
  return protectedObj.providerIdentity;
7527
7564
  }
7528
7565
  /**
@@ -7551,9 +7588,9 @@ class ChannelClient extends channel_1$1.ChannelBase {
7551
7588
  * ```
7552
7589
  */
7553
7590
  async dispatch(action, payload) {
7554
- if (__classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7591
+ if (__classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7555
7592
  const callSites = transport_errors_1$3.RuntimeError.getCallSite();
7556
- return __classPrivateFieldGet$g(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7593
+ return __classPrivateFieldGet$h(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7557
7594
  throw new channel_error_1$1.ChannelError(e, action, payload, callSites);
7558
7595
  });
7559
7596
  }
@@ -7605,10 +7642,10 @@ class ChannelClient extends channel_1$1.ChannelBase {
7605
7642
  */
7606
7643
  async disconnect() {
7607
7644
  await this.sendDisconnectAction();
7608
- __classPrivateFieldGet$g(this, _ChannelClient_close, "f").call(this);
7645
+ __classPrivateFieldGet$h(this, _ChannelClient_close, "f").call(this);
7609
7646
  }
7610
7647
  async sendDisconnectAction() {
7611
- const protectedObj = __classPrivateFieldGet$g(this, _ChannelClient_protectedObj, "f");
7648
+ const protectedObj = __classPrivateFieldGet$h(this, _ChannelClient_protectedObj, "f");
7612
7649
  await protectedObj.close();
7613
7650
  }
7614
7651
  /**
@@ -7641,13 +7678,13 @@ exhaustive.exhaustiveCheck = exhaustiveCheck;
7641
7678
 
7642
7679
  var strategy$3 = {};
7643
7680
 
7644
- var __classPrivateFieldSet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7681
+ var __classPrivateFieldSet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7645
7682
  if (kind === "m") throw new TypeError("Private method is not writable");
7646
7683
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7647
7684
  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");
7648
7685
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7649
7686
  };
7650
- var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7687
+ var __classPrivateFieldGet$g = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7651
7688
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7652
7689
  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");
7653
7690
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -7672,7 +7709,7 @@ class ClassicStrategy {
7672
7709
  // connection problems occur
7673
7710
  _ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
7674
7711
  this.send = async (endpointId, action, payload) => {
7675
- const to = __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7712
+ const to = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7676
7713
  if (!to) {
7677
7714
  throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
7678
7715
  }
@@ -7684,13 +7721,13 @@ class ClassicStrategy {
7684
7721
  }
7685
7722
  delete cleanId.isLocalEndpointId;
7686
7723
  // grab the promise before awaiting it to save in our pending messages map
7687
- const p = __classPrivateFieldGet$f(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7724
+ const p = __classPrivateFieldGet$g(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7688
7725
  ...cleanId,
7689
7726
  providerIdentity: this.providerIdentity,
7690
7727
  action,
7691
7728
  payload
7692
7729
  });
7693
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7730
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7694
7731
  const raw = await p
7695
7732
  .catch((error) => {
7696
7733
  if ('cause' in error) {
@@ -7700,16 +7737,16 @@ class ClassicStrategy {
7700
7737
  })
7701
7738
  .finally(() => {
7702
7739
  // clean up the pending promise
7703
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7740
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7704
7741
  });
7705
7742
  return raw.payload.data.result;
7706
7743
  };
7707
7744
  this.close = async () => {
7708
7745
  this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
7709
- [...__classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7710
- __classPrivateFieldSet$e(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7746
+ [...__classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7747
+ __classPrivateFieldSet$f(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7711
7748
  };
7712
- __classPrivateFieldSet$e(this, _ClassicStrategy_wire, wire, "f");
7749
+ __classPrivateFieldSet$f(this, _ClassicStrategy_wire, wire, "f");
7713
7750
  }
7714
7751
  onEndpointDisconnect(endpointId, listener) {
7715
7752
  // Never fires for 'classic'.
@@ -7718,20 +7755,20 @@ class ClassicStrategy {
7718
7755
  this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
7719
7756
  }
7720
7757
  async closeEndpoint(endpointId) {
7721
- const id = __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7722
- __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7723
- const pendingSet = __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7758
+ const id = __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7759
+ __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7760
+ const pendingSet = __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7724
7761
  pendingSet?.forEach((p) => {
7725
7762
  const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
7726
7763
  p.cancel(new Error(errorMsg));
7727
7764
  });
7728
7765
  }
7729
7766
  isEndpointConnected(endpointId) {
7730
- return __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7767
+ return __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7731
7768
  }
7732
7769
  addEndpoint(endpointId, payload) {
7733
- __classPrivateFieldGet$f(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7734
- __classPrivateFieldGet$f(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7770
+ __classPrivateFieldGet$g(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7771
+ __classPrivateFieldGet$g(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7735
7772
  }
7736
7773
  isValidEndpointPayload(payload) {
7737
7774
  return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
@@ -7766,12 +7803,12 @@ function errorToPOJO(error) {
7766
7803
  }
7767
7804
  errors.errorToPOJO = errorToPOJO;
7768
7805
 
7769
- var __classPrivateFieldGet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7806
+ var __classPrivateFieldGet$f = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7770
7807
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7771
7808
  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");
7772
7809
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7773
7810
  };
7774
- var __classPrivateFieldSet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7811
+ var __classPrivateFieldSet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7775
7812
  if (kind === "m") throw new TypeError("Private method is not writable");
7776
7813
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7777
7814
  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");
@@ -7806,8 +7843,8 @@ class RTCEndpoint {
7806
7843
  if (this.rtc.rtcClient.connectionState !== 'connected') {
7807
7844
  this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
7808
7845
  this.close();
7809
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
7810
- __classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f").call(this);
7846
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
7847
+ __classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
7811
7848
  }
7812
7849
  }
7813
7850
  };
@@ -7855,9 +7892,9 @@ class RTCEndpoint {
7855
7892
  data = new TextDecoder().decode(e.data);
7856
7893
  }
7857
7894
  const { messageId, action, payload } = JSON.parse(data);
7858
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f")) {
7895
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
7859
7896
  try {
7860
- const res = await __classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7897
+ const res = await __classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7861
7898
  this.rtc.channels.response.send(JSON.stringify({
7862
7899
  messageId,
7863
7900
  payload: res,
@@ -7891,25 +7928,25 @@ class RTCEndpoint {
7891
7928
  datachannel.onclose = (e) => {
7892
7929
  [...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.')));
7893
7930
  this.close();
7894
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
7895
- __classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f").call(this);
7931
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
7932
+ __classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f").call(this);
7896
7933
  }
7897
7934
  };
7898
7935
  });
7899
7936
  }
7900
7937
  onDisconnect(listener) {
7901
- if (!__classPrivateFieldGet$e(this, _RTCEndpoint_disconnectListener, "f")) {
7902
- __classPrivateFieldSet$d(this, _RTCEndpoint_disconnectListener, listener, "f");
7938
+ if (!__classPrivateFieldGet$f(this, _RTCEndpoint_disconnectListener, "f")) {
7939
+ __classPrivateFieldSet$e(this, _RTCEndpoint_disconnectListener, listener, "f");
7903
7940
  }
7904
7941
  else {
7905
7942
  throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
7906
7943
  }
7907
7944
  }
7908
7945
  receive(listener) {
7909
- if (__classPrivateFieldGet$e(this, _RTCEndpoint_processAction, "f")) {
7946
+ if (__classPrivateFieldGet$f(this, _RTCEndpoint_processAction, "f")) {
7910
7947
  throw new Error('You have already set a listener for this RTC Endpoint.');
7911
7948
  }
7912
- __classPrivateFieldSet$d(this, _RTCEndpoint_processAction, listener, "f");
7949
+ __classPrivateFieldSet$e(this, _RTCEndpoint_processAction, listener, "f");
7913
7950
  }
7914
7951
  get connected() {
7915
7952
  return this.rtc.rtcClient.connectionState === 'connected';
@@ -7920,12 +7957,12 @@ _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = ne
7920
7957
 
7921
7958
  var strategy$1 = {};
7922
7959
 
7923
- var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7960
+ var __classPrivateFieldGet$e = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7924
7961
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7925
7962
  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");
7926
7963
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7927
7964
  };
7928
- var __classPrivateFieldSet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7965
+ var __classPrivateFieldSet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7929
7966
  if (kind === "m") throw new TypeError("Private method is not writable");
7930
7967
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7931
7968
  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");
@@ -7946,11 +7983,11 @@ class EndpointStrategy {
7946
7983
  return this.getEndpointById(endpointId).send(action, payload);
7947
7984
  };
7948
7985
  this.close = async () => {
7949
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f")) {
7950
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7951
- __classPrivateFieldSet$c(this, _EndpointStrategy_endpointMap, new Map(), "f");
7986
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
7987
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7988
+ __classPrivateFieldSet$d(this, _EndpointStrategy_endpointMap, new Map(), "f");
7952
7989
  }
7953
- __classPrivateFieldSet$c(this, _EndpointStrategy_connected, false, "f");
7990
+ __classPrivateFieldSet$d(this, _EndpointStrategy_connected, false, "f");
7954
7991
  };
7955
7992
  this.isValidEndpointPayload = validateEndpoint;
7956
7993
  }
@@ -7958,39 +7995,39 @@ class EndpointStrategy {
7958
7995
  this.getEndpointById(endpointId).onDisconnect(listener);
7959
7996
  }
7960
7997
  receive(listener) {
7961
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")) {
7998
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
7962
7999
  throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
7963
8000
  }
7964
- __classPrivateFieldSet$c(this, _EndpointStrategy_processAction, listener, "f");
8001
+ __classPrivateFieldSet$d(this, _EndpointStrategy_processAction, listener, "f");
7965
8002
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7966
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")));
8003
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")));
7967
8004
  }
7968
8005
  getEndpointById(endpointId) {
7969
- const endpoint = __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
8006
+ const endpoint = __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
7970
8007
  if (!endpoint) {
7971
8008
  throw new Error(`Client with endpoint id ${endpointId} is not connected`);
7972
8009
  }
7973
8010
  return endpoint;
7974
8011
  }
7975
8012
  get connected() {
7976
- return __classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f");
8013
+ return __classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f");
7977
8014
  }
7978
8015
  isEndpointConnected(endpointId) {
7979
- return __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
8016
+ return __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
7980
8017
  }
7981
8018
  addEndpoint(endpointId, payload) {
7982
- if (!__classPrivateFieldGet$d(this, _EndpointStrategy_connected, "f")) {
8019
+ if (!__classPrivateFieldGet$e(this, _EndpointStrategy_connected, "f")) {
7983
8020
  console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
7984
8021
  return;
7985
8022
  }
7986
8023
  const clientStrat = new this.EndpointType(payload);
7987
- if (__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f")) {
7988
- clientStrat.receive(__classPrivateFieldGet$d(this, _EndpointStrategy_processAction, "f"));
8024
+ if (__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f")) {
8025
+ clientStrat.receive(__classPrivateFieldGet$e(this, _EndpointStrategy_processAction, "f"));
7989
8026
  }
7990
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
8027
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
7991
8028
  }
7992
8029
  async closeEndpoint(endpointId) {
7993
- __classPrivateFieldGet$d(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
8030
+ __classPrivateFieldGet$e(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
7994
8031
  }
7995
8032
  }
7996
8033
  strategy$1.EndpointStrategy = EndpointStrategy;
@@ -8017,11 +8054,11 @@ var iceManager = {};
8017
8054
 
8018
8055
  Object.defineProperty(iceManager, "__esModule", { value: true });
8019
8056
  iceManager.RTCICEManager = void 0;
8020
- const base_1$k = base;
8057
+ const base_1$l = base;
8021
8058
  /*
8022
8059
  Singleton that facilitates Offer and Answer exchange required for establishing RTC connections.
8023
8060
  */
8024
- class RTCICEManager extends base_1$k.EmitterBase {
8061
+ class RTCICEManager extends base_1$l.EmitterBase {
8025
8062
  constructor(wire) {
8026
8063
  super(wire, 'channel');
8027
8064
  this.ensureChannelOpened = (channel) => {
@@ -8172,12 +8209,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
8172
8209
  }
8173
8210
  runtimeVersioning.runtimeUuidMeetsMinimumRuntimeVersion = runtimeUuidMeetsMinimumRuntimeVersion;
8174
8211
 
8175
- var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8212
+ var __classPrivateFieldGet$d = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8176
8213
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8177
8214
  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");
8178
8215
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8179
8216
  };
8180
- var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8217
+ var __classPrivateFieldSet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8181
8218
  if (kind === "m") throw new TypeError("Private method is not writable");
8182
8219
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8183
8220
  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");
@@ -8221,19 +8258,19 @@ class ChannelProvider extends channel_1.ChannelBase {
8221
8258
  * a read-only array containing all the identities of connecting clients.
8222
8259
  */
8223
8260
  get connections() {
8224
- return [...__classPrivateFieldGet$c(this, _ChannelProvider_connections, "f")];
8261
+ return [...__classPrivateFieldGet$d(this, _ChannelProvider_connections, "f")];
8225
8262
  }
8226
8263
  static handleClientDisconnection(channel, payload) {
8227
8264
  if (payload?.endpointId) {
8228
8265
  const { uuid, name, endpointId, isLocalEndpointId } = payload;
8229
- __classPrivateFieldGet$c(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8266
+ __classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8230
8267
  }
8231
8268
  else {
8232
8269
  // this is here to support older runtimes that did not have endpointId
8233
8270
  const multipleRemoves = channel.connections.filter((identity) => {
8234
8271
  return identity.uuid === payload.uuid && identity.name === payload.name;
8235
8272
  });
8236
- multipleRemoves.forEach(__classPrivateFieldGet$c(channel, _ChannelProvider_removeEndpoint, "f"));
8273
+ multipleRemoves.forEach(__classPrivateFieldGet$d(channel, _ChannelProvider_removeEndpoint, "f"));
8237
8274
  }
8238
8275
  channel.disconnectListener(payload);
8239
8276
  }
@@ -8250,8 +8287,8 @@ class ChannelProvider extends channel_1.ChannelBase {
8250
8287
  _ChannelProvider_strategy.set(this, void 0);
8251
8288
  _ChannelProvider_removeEndpoint.set(this, (identity) => {
8252
8289
  const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
8253
- __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8254
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, remainingConnections, "f");
8290
+ __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8291
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, remainingConnections, "f");
8255
8292
  });
8256
8293
  // Must be bound.
8257
8294
  this.processAction = async (action, payload, senderIdentity) => {
@@ -8265,17 +8302,17 @@ class ChannelProvider extends channel_1.ChannelBase {
8265
8302
  return super.processAction(action, payload, senderIdentity);
8266
8303
  };
8267
8304
  _ChannelProvider_close.set(this, () => {
8268
- __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").close();
8305
+ __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").close();
8269
8306
  const remove = ChannelProvider.removalMap.get(this);
8270
8307
  if (remove) {
8271
8308
  remove();
8272
8309
  }
8273
8310
  });
8274
- __classPrivateFieldSet$b(this, _ChannelProvider_protectedObj, new channel_1.ProtectedItems(providerIdentity, close), "f");
8311
+ __classPrivateFieldSet$c(this, _ChannelProvider_protectedObj, new channel_1.ProtectedItems(providerIdentity, close), "f");
8275
8312
  this.connectListener = () => undefined;
8276
8313
  this.disconnectListener = () => undefined;
8277
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, [], "f");
8278
- __classPrivateFieldSet$b(this, _ChannelProvider_strategy, strategy, "f");
8314
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
8315
+ __classPrivateFieldSet$c(this, _ChannelProvider_strategy, strategy, "f");
8279
8316
  strategy.receive(this.processAction);
8280
8317
  }
8281
8318
  /**
@@ -8306,16 +8343,16 @@ class ChannelProvider extends channel_1.ChannelBase {
8306
8343
  */
8307
8344
  dispatch(to, action, payload) {
8308
8345
  const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
8309
- if (endpointId && __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8346
+ if (endpointId && __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8310
8347
  const callSites = transport_errors_1$2.RuntimeError.getCallSite();
8311
- return __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8348
+ return __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8312
8349
  throw new channel_error_1.ChannelError(e, action, payload, callSites);
8313
8350
  });
8314
8351
  }
8315
8352
  return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
8316
8353
  }
8317
8354
  async processConnection(senderId, payload) {
8318
- __classPrivateFieldGet$c(this, _ChannelProvider_connections, "f").push(senderId);
8355
+ __classPrivateFieldGet$d(this, _ChannelProvider_connections, "f").push(senderId);
8319
8356
  return this.connectListener(senderId, payload);
8320
8357
  }
8321
8358
  /**
@@ -8338,7 +8375,7 @@ class ChannelProvider extends channel_1.ChannelBase {
8338
8375
  * ```
8339
8376
  */
8340
8377
  publish(action, payload) {
8341
- return this.connections.map((to) => __classPrivateFieldGet$c(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8378
+ return this.connections.map((to) => __classPrivateFieldGet$d(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8342
8379
  }
8343
8380
  /**
8344
8381
  * Register a listener that is called on every new client connection.
@@ -8412,11 +8449,11 @@ class ChannelProvider extends channel_1.ChannelBase {
8412
8449
  * ```
8413
8450
  */
8414
8451
  async destroy() {
8415
- const protectedObj = __classPrivateFieldGet$c(this, _ChannelProvider_protectedObj, "f");
8452
+ const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
8416
8453
  protectedObj.providerIdentity;
8417
- __classPrivateFieldSet$b(this, _ChannelProvider_connections, [], "f");
8454
+ __classPrivateFieldSet$c(this, _ChannelProvider_connections, [], "f");
8418
8455
  await protectedObj.close();
8419
- __classPrivateFieldGet$c(this, _ChannelProvider_close, "f").call(this);
8456
+ __classPrivateFieldGet$d(this, _ChannelProvider_close, "f").call(this);
8420
8457
  }
8421
8458
  /**
8422
8459
  * Returns an array with info on every Client connected to the Provider
@@ -8486,7 +8523,7 @@ class ChannelProvider extends channel_1.ChannelBase {
8486
8523
  getEndpointIdForOpenFinId(clientIdentity, action) {
8487
8524
  const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
8488
8525
  if (matchingConnections.length >= 2) {
8489
- const protectedObj = __classPrivateFieldGet$c(this, _ChannelProvider_protectedObj, "f");
8526
+ const protectedObj = __classPrivateFieldGet$d(this, _ChannelProvider_protectedObj, "f");
8490
8527
  const { uuid, name } = clientIdentity;
8491
8528
  const providerUuid = protectedObj?.providerIdentity.uuid;
8492
8529
  const providerName = protectedObj?.providerIdentity.name;
@@ -8522,14 +8559,14 @@ var messageReceiver$1 = {};
8522
8559
  Object.defineProperty(messageReceiver$1, "__esModule", { value: true });
8523
8560
  messageReceiver$1.MessageReceiver = void 0;
8524
8561
  const client_1$1 = client;
8525
- const base_1$j = base;
8562
+ const base_1$k = base;
8526
8563
  const errors_1$1 = errors;
8527
8564
  /*
8528
8565
  This is a singleton (per fin object) tasked with routing messages coming off the ipc to the correct endpoint.
8529
8566
  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.
8530
8567
  If functionality is not about receiving messages, it does not belong here.
8531
8568
  */
8532
- class MessageReceiver extends base_1$j.Base {
8569
+ class MessageReceiver extends base_1$k.Base {
8533
8570
  constructor(wire) {
8534
8571
  super(wire);
8535
8572
  this.onmessage = (msg) => {
@@ -8698,13 +8735,13 @@ class CombinedStrategy {
8698
8735
  }
8699
8736
  strategy.default = CombinedStrategy;
8700
8737
 
8701
- var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8738
+ var __classPrivateFieldSet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8702
8739
  if (kind === "m") throw new TypeError("Private method is not writable");
8703
8740
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8704
8741
  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");
8705
8742
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8706
8743
  };
8707
- var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8744
+ var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8708
8745
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8709
8746
  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");
8710
8747
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8716,7 +8753,7 @@ var _ConnectionManager_messageReceiver, _ConnectionManager_rtcConnectionManager;
8716
8753
  Object.defineProperty(connectionManager, "__esModule", { value: true });
8717
8754
  connectionManager.ConnectionManager = void 0;
8718
8755
  const exhaustive_1 = exhaustive;
8719
- const base_1$i = base;
8756
+ const base_1$j = base;
8720
8757
  const strategy_1 = strategy$3;
8721
8758
  const strategy_2 = strategy$2;
8722
8759
  const ice_manager_1 = iceManager;
@@ -8724,7 +8761,7 @@ const provider_1$1 = provider;
8724
8761
  const message_receiver_1 = messageReceiver$1;
8725
8762
  const protocol_manager_1 = protocolManager;
8726
8763
  const strategy_3 = __importDefault$5(strategy);
8727
- class ConnectionManager extends base_1$i.Base {
8764
+ class ConnectionManager extends base_1$j.Base {
8728
8765
  static getProtocolOptionsFromStrings(protocols) {
8729
8766
  return protocols.map((protocol) => {
8730
8767
  switch (protocol) {
@@ -8753,8 +8790,8 @@ class ConnectionManager extends base_1$i.Base {
8753
8790
  };
8754
8791
  this.providerMap = new Map();
8755
8792
  this.protocolManager = new protocol_manager_1.ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
8756
- __classPrivateFieldSet$a(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
8757
- __classPrivateFieldSet$a(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
8793
+ __classPrivateFieldSet$b(this, _ConnectionManager_messageReceiver, new message_receiver_1.MessageReceiver(wire), "f");
8794
+ __classPrivateFieldSet$b(this, _ConnectionManager_rtcConnectionManager, new ice_manager_1.RTCICEManager(wire), "f");
8758
8795
  wire.registerMessageHandler(this.onmessage.bind(this));
8759
8796
  }
8760
8797
  createProvider(options, providerIdentity) {
@@ -8765,7 +8802,7 @@ class ConnectionManager extends base_1$i.Base {
8765
8802
  case 'rtc':
8766
8803
  return new strategy_2.RTCStrategy();
8767
8804
  case 'classic':
8768
- return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f"),
8805
+ return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"),
8769
8806
  // Providers do not have an endpointId, use channelId as endpointId in the strategy.
8770
8807
  providerIdentity.channelId, providerIdentity);
8771
8808
  default:
@@ -8801,7 +8838,7 @@ class ConnectionManager extends base_1$i.Base {
8801
8838
  const supportedProtocols = await Promise.all(protocols.map(async (type) => {
8802
8839
  switch (type) {
8803
8840
  case 'rtc': {
8804
- const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8841
+ const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8805
8842
  rtcPacket = { rtcClient, channels, channelsOpened };
8806
8843
  return {
8807
8844
  type: 'rtc',
@@ -8828,18 +8865,18 @@ class ConnectionManager extends base_1$i.Base {
8828
8865
  routingInfo.endpointId = this.wire.environment.getNextMessageId();
8829
8866
  // For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
8830
8867
  // clients that are in the same context as the newly-connected client.
8831
- __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8868
+ __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8832
8869
  }
8833
8870
  const answer = routingInfo.answer ?? {
8834
8871
  supportedProtocols: [{ type: 'classic', version: 1 }]
8835
8872
  };
8836
8873
  const createStrategyFromAnswer = async (protocol) => {
8837
8874
  if (protocol.type === 'rtc' && rtcPacket) {
8838
- await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8875
+ await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8839
8876
  return new strategy_2.RTCStrategy();
8840
8877
  }
8841
8878
  if (protocol.type === 'classic') {
8842
- return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$b(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8879
+ return new strategy_1.ClassicStrategy(this.wire, __classPrivateFieldGet$c(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8843
8880
  }
8844
8881
  return null;
8845
8882
  };
@@ -8907,7 +8944,7 @@ class ConnectionManager extends base_1$i.Base {
8907
8944
  clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
8908
8945
  const answer = await accumP;
8909
8946
  if (protocolToUse.type === 'rtc') {
8910
- const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$b(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8947
+ const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$c(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8911
8948
  answer.supportedProtocols.push({
8912
8949
  type: 'rtc',
8913
8950
  version: strategy_2.RTCInfo.version,
@@ -8955,13 +8992,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
8955
8992
  *
8956
8993
  * @packageDocumentation
8957
8994
  */
8958
- var __classPrivateFieldSet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8995
+ var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8959
8996
  if (kind === "m") throw new TypeError("Private method is not writable");
8960
8997
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8961
8998
  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");
8962
8999
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8963
9000
  };
8964
- var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9001
+ var __classPrivateFieldGet$b = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8965
9002
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8966
9003
  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");
8967
9004
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8971,8 +9008,8 @@ Object.defineProperty(channel$1, "__esModule", { value: true });
8971
9008
  channel$1.Channel = void 0;
8972
9009
  /* eslint-disable no-console */
8973
9010
  const events_1$5 = require$$0;
8974
- const lazy_1$2 = lazy;
8975
- const base_1$h = base;
9011
+ const lazy_1$3 = lazy;
9012
+ const base_1$i = base;
8976
9013
  const client_1 = client;
8977
9014
  const connection_manager_1 = connectionManager;
8978
9015
  const provider_1 = provider;
@@ -9003,7 +9040,7 @@ function retryDelay(count) {
9003
9040
  * * {@link Channel.onChannelConnect onChannelConnect(listener)}
9004
9041
  * * {@link Channel.onChannelDisconnect onChannelDisconnect(listener)}
9005
9042
  */
9006
- class Channel extends base_1$h.EmitterBase {
9043
+ class Channel extends base_1$i.EmitterBase {
9007
9044
  /**
9008
9045
  * @internal
9009
9046
  */
@@ -9012,17 +9049,17 @@ class Channel extends base_1$h.EmitterBase {
9012
9049
  _Channel_connectionManager.set(this, void 0);
9013
9050
  _Channel_internalEmitter.set(this, new events_1$5.EventEmitter());
9014
9051
  // OpenFin API has not been injected at construction time, *must* wait for API to be ready.
9015
- _Channel_readyToConnect.set(this, new lazy_1$2.AsyncRetryableLazy(async () => {
9052
+ _Channel_readyToConnect.set(this, new lazy_1$3.AsyncRetryableLazy(async () => {
9016
9053
  await Promise.all([
9017
9054
  this.on('disconnected', (eventPayload) => {
9018
9055
  client_1.ChannelClient.handleProviderDisconnect(eventPayload);
9019
9056
  }),
9020
9057
  this.on('connected', (...args) => {
9021
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9058
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9022
9059
  })
9023
9060
  ]).catch(() => new Error('error setting up channel connection listeners'));
9024
9061
  }));
9025
- __classPrivateFieldSet$9(this, _Channel_connectionManager, new connection_manager_1.ConnectionManager(wire), "f");
9062
+ __classPrivateFieldSet$a(this, _Channel_connectionManager, new connection_manager_1.ConnectionManager(wire), "f");
9026
9063
  }
9027
9064
  /**
9028
9065
  *
@@ -9097,7 +9134,7 @@ class Channel extends base_1$h.EmitterBase {
9097
9134
  resolve(true);
9098
9135
  }
9099
9136
  };
9100
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9137
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9101
9138
  });
9102
9139
  try {
9103
9140
  if (retryInfo.count > 0) {
@@ -9129,7 +9166,7 @@ class Channel extends base_1$h.EmitterBase {
9129
9166
  finally {
9130
9167
  retryInfo.count += 1;
9131
9168
  // in case of other errors, remove our listener
9132
- __classPrivateFieldGet$a(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9169
+ __classPrivateFieldGet$b(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9133
9170
  }
9134
9171
  } while (shouldWait); // If we're waiting we retry the above loop
9135
9172
  // Should wait was false, no channel was found.
@@ -9188,12 +9225,12 @@ class Channel extends base_1$h.EmitterBase {
9188
9225
  async connect(channelName, options = {}) {
9189
9226
  // Make sure we don't connect before listeners are set up
9190
9227
  // This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
9191
- await __classPrivateFieldGet$a(this, _Channel_readyToConnect, "f").getValue();
9228
+ await __classPrivateFieldGet$b(this, _Channel_readyToConnect, "f").getValue();
9192
9229
  if (!channelName || typeof channelName !== 'string') {
9193
9230
  throw new Error('Please provide a channelName string to connect to a channel.');
9194
9231
  }
9195
9232
  const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
9196
- const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createClientOffer(opts);
9233
+ const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientOffer(opts);
9197
9234
  let connectionUrl;
9198
9235
  if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
9199
9236
  connectionUrl = (await this.fin.me.getInfo()).url;
@@ -9205,7 +9242,7 @@ class Channel extends base_1$h.EmitterBase {
9205
9242
  connectionUrl
9206
9243
  };
9207
9244
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
9208
- const strategy = await __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9245
+ const strategy = await __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9209
9246
  const channel = new client_1.ChannelClient(routingInfo, () => client_1.ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
9210
9247
  // It is the client's responsibility to handle endpoint disconnection to the provider.
9211
9248
  // If the endpoint dies, the client will force a disconnection through the core.
@@ -9274,7 +9311,7 @@ class Channel extends base_1$h.EmitterBase {
9274
9311
  throw new Error('Please provide a channelName to create a channel');
9275
9312
  }
9276
9313
  const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
9277
- const channel = __classPrivateFieldGet$a(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9314
+ const channel = __classPrivateFieldGet$b(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9278
9315
  // TODO: fix typing (internal)
9279
9316
  // @ts-expect-error
9280
9317
  this.on('client-disconnected', (eventPayload) => {
@@ -9298,7 +9335,7 @@ interappbus.InterAppPayload = interappbus.InterApplicationBus = void 0;
9298
9335
  * @packageDocumentation
9299
9336
  */
9300
9337
  const events_1$4 = require$$0;
9301
- const base_1$g = base;
9338
+ const base_1$h = base;
9302
9339
  const ref_counter_1 = refCounter;
9303
9340
  const index_1$2 = channel$1;
9304
9341
  const validate_1$3 = validate;
@@ -9306,7 +9343,7 @@ const validate_1$3 = validate;
9306
9343
  * A messaging bus that allows for pub/sub messaging between different applications.
9307
9344
  *
9308
9345
  */
9309
- class InterApplicationBus extends base_1$g.Base {
9346
+ class InterApplicationBus extends base_1$h.Base {
9310
9347
  /**
9311
9348
  * @internal
9312
9349
  */
@@ -9512,12 +9549,12 @@ var clipboard = {};
9512
9549
  */
9513
9550
  Object.defineProperty(clipboard, "__esModule", { value: true });
9514
9551
  clipboard.Clipboard = void 0;
9515
- const base_1$f = base;
9552
+ const base_1$g = base;
9516
9553
  /**
9517
9554
  * The Clipboard API allows reading and writing to the clipboard in multiple formats.
9518
9555
  *
9519
9556
  */
9520
- class Clipboard extends base_1$f.Base {
9557
+ class Clipboard extends base_1$g.Base {
9521
9558
  /**
9522
9559
  * Writes data into the clipboard as plain text
9523
9560
  * @param writeObj The object for writing data into the clipboard
@@ -9706,7 +9743,7 @@ var Instance$4 = {};
9706
9743
  Object.defineProperty(Instance$4, "__esModule", { value: true });
9707
9744
  Instance$4.ExternalApplication = void 0;
9708
9745
  /* eslint-disable import/prefer-default-export */
9709
- const base_1$e = base;
9746
+ const base_1$f = base;
9710
9747
  /**
9711
9748
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
9712
9749
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -9717,7 +9754,7 @@ const base_1$e = base;
9717
9754
  * - Processes started via `System.launchExternalApplication`
9718
9755
  * - Processes monitored via `System.monitorExternalProcess`
9719
9756
  */
9720
- class ExternalApplication extends base_1$e.EmitterBase {
9757
+ class ExternalApplication extends base_1$f.EmitterBase {
9721
9758
  /**
9722
9759
  * @internal
9723
9760
  */
@@ -9745,12 +9782,12 @@ Instance$4.ExternalApplication = ExternalApplication;
9745
9782
 
9746
9783
  Object.defineProperty(Factory$5, "__esModule", { value: true });
9747
9784
  Factory$5.ExternalApplicationModule = void 0;
9748
- const base_1$d = base;
9785
+ const base_1$e = base;
9749
9786
  const Instance_1$4 = Instance$4;
9750
9787
  /**
9751
9788
  * Static namespace for OpenFin API methods that interact with the {@link ExternalApplication} class, available under `fin.ExternalApplication`.
9752
9789
  */
9753
- class ExternalApplicationModule extends base_1$d.Base {
9790
+ class ExternalApplicationModule extends base_1$e.Base {
9754
9791
  /**
9755
9792
  * Asynchronously returns an External Application object that represents an external application.
9756
9793
  * <br>It is possible to wrap a process that does not yet exist, (for example, to listen for startup-related events)
@@ -9832,7 +9869,7 @@ var Instance$3 = {};
9832
9869
  Object.defineProperty(Instance$3, "__esModule", { value: true });
9833
9870
  Instance$3._Frame = void 0;
9834
9871
  /* eslint-disable import/prefer-default-export */
9835
- const base_1$c = base;
9872
+ const base_1$d = base;
9836
9873
  /**
9837
9874
  * An iframe represents an embedded HTML page within a parent HTML page. Because this embedded page
9838
9875
  * has its own DOM and global JS context (which may or may not be linked to that of the parent depending
@@ -9853,7 +9890,7 @@ const base_1$c = base;
9853
9890
  * The fin.Frame namespace represents a way to interact with `iframes` and facilitates the discovery of current context
9854
9891
  * (iframe or main window) as well as the ability to listen for {@link OpenFin.FrameEvents frame-specific events}.
9855
9892
  */
9856
- class _Frame extends base_1$c.EmitterBase {
9893
+ class _Frame extends base_1$d.EmitterBase {
9857
9894
  /**
9858
9895
  * @internal
9859
9896
  */
@@ -9899,13 +9936,13 @@ Instance$3._Frame = _Frame;
9899
9936
 
9900
9937
  Object.defineProperty(Factory$4, "__esModule", { value: true });
9901
9938
  Factory$4._FrameModule = void 0;
9902
- const base_1$b = base;
9939
+ const base_1$c = base;
9903
9940
  const validate_1$2 = validate;
9904
9941
  const Instance_1$3 = Instance$3;
9905
9942
  /**
9906
9943
  * Static namespace for OpenFin API methods that interact with the {@link _Frame} class, available under `fin.Frame`.
9907
9944
  */
9908
- class _FrameModule extends base_1$b.Base {
9945
+ class _FrameModule extends base_1$c.Base {
9909
9946
  /**
9910
9947
  * Asynchronously returns an API handle for the given Frame identity.
9911
9948
  *
@@ -10026,12 +10063,12 @@ var globalHotkey = {};
10026
10063
 
10027
10064
  Object.defineProperty(globalHotkey, "__esModule", { value: true });
10028
10065
  globalHotkey.GlobalHotkey = void 0;
10029
- const base_1$a = base;
10066
+ const base_1$b = base;
10030
10067
  /**
10031
10068
  * The GlobalHotkey module can register/unregister a global hotkeys.
10032
10069
  *
10033
10070
  */
10034
- class GlobalHotkey extends base_1$a.EmitterBase {
10071
+ class GlobalHotkey extends base_1$b.EmitterBase {
10035
10072
  /**
10036
10073
  * @internal
10037
10074
  */
@@ -10165,13 +10202,13 @@ var Factory$3 = {};
10165
10202
 
10166
10203
  var Instance$2 = {};
10167
10204
 
10168
- var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10205
+ var __classPrivateFieldSet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10169
10206
  if (kind === "m") throw new TypeError("Private method is not writable");
10170
10207
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10171
10208
  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");
10172
10209
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10173
10210
  };
10174
- var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10211
+ var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10175
10212
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10176
10213
  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");
10177
10214
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -10180,14 +10217,14 @@ var _Platform_channelName, _Platform_connectToProvider;
10180
10217
  Object.defineProperty(Instance$2, "__esModule", { value: true });
10181
10218
  Instance$2.Platform = void 0;
10182
10219
  /* eslint-disable import/prefer-default-export, no-undef */
10183
- const base_1$9 = base;
10220
+ const base_1$a = base;
10184
10221
  const validate_1$1 = validate;
10185
10222
  /** Manages the life cycle of windows and views in the application.
10186
10223
  *
10187
10224
  * Enables taking snapshots of itself and applying them to restore a previous configuration
10188
10225
  * as well as listen to {@link OpenFin.PlatformEvents platform events}.
10189
10226
  */
10190
- class Platform extends base_1$9.EmitterBase {
10227
+ class Platform extends base_1$a.EmitterBase {
10191
10228
  /**
10192
10229
  * @internal
10193
10230
  */
@@ -10208,24 +10245,24 @@ class Platform extends base_1$9.EmitterBase {
10208
10245
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10209
10246
  // don't expose
10210
10247
  });
10211
- if (!Platform.clientMap.has(__classPrivateFieldGet$9(this, _Platform_channelName, "f"))) {
10212
- const clientPromise = __classPrivateFieldGet$9(this, _Platform_connectToProvider, "f").call(this);
10213
- Platform.clientMap.set(__classPrivateFieldGet$9(this, _Platform_channelName, "f"), clientPromise);
10248
+ if (!Platform.clientMap.has(__classPrivateFieldGet$a(this, _Platform_channelName, "f"))) {
10249
+ const clientPromise = __classPrivateFieldGet$a(this, _Platform_connectToProvider, "f").call(this);
10250
+ Platform.clientMap.set(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), clientPromise);
10214
10251
  }
10215
10252
  // we set it above
10216
10253
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10217
- return Platform.clientMap.get(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10254
+ return Platform.clientMap.get(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10218
10255
  };
10219
10256
  _Platform_connectToProvider.set(this, async () => {
10220
10257
  try {
10221
- const client = await this._channel.connect(__classPrivateFieldGet$9(this, _Platform_channelName, "f"), { wait: false });
10258
+ const client = await this._channel.connect(__classPrivateFieldGet$a(this, _Platform_channelName, "f"), { wait: false });
10222
10259
  client.onDisconnection(() => {
10223
- Platform.clientMap.delete(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10260
+ Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10224
10261
  });
10225
10262
  return client;
10226
10263
  }
10227
10264
  catch (e) {
10228
- Platform.clientMap.delete(__classPrivateFieldGet$9(this, _Platform_channelName, "f"));
10265
+ Platform.clientMap.delete(__classPrivateFieldGet$a(this, _Platform_channelName, "f"));
10229
10266
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10230
10267
  }
10231
10268
  });
@@ -10238,7 +10275,7 @@ class Platform extends base_1$9.EmitterBase {
10238
10275
  if (errorMsg) {
10239
10276
  throw new Error(errorMsg);
10240
10277
  }
10241
- __classPrivateFieldSet$8(this, _Platform_channelName, channelName, "f");
10278
+ __classPrivateFieldSet$9(this, _Platform_channelName, channelName, "f");
10242
10279
  this._channel = this.fin.InterApplicationBus.Channel;
10243
10280
  this.identity = { uuid: identity.uuid };
10244
10281
  this.Layout = this.fin.Platform.Layout;
@@ -11294,13 +11331,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
11294
11331
  };
11295
11332
  channelApiRelay.createRelayedDispatch = createRelayedDispatch;
11296
11333
 
11297
- var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11334
+ var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11298
11335
  if (kind === "m") throw new TypeError("Private method is not writable");
11299
11336
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11300
11337
  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");
11301
11338
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11302
11339
  };
11303
- var __classPrivateFieldGet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11340
+ var __classPrivateFieldGet$9 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11304
11341
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11305
11342
  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");
11306
11343
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11354,7 +11391,7 @@ class LayoutNode {
11354
11391
  * console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
11355
11392
  * ```
11356
11393
  */
11357
- this.isRoot = () => __classPrivateFieldGet$8(this, _LayoutNode_client, "f").isRoot(this.entityId);
11394
+ this.isRoot = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").isRoot(this.entityId);
11358
11395
  /**
11359
11396
  * Checks if the TabStack or ColumnOrRow exists
11360
11397
  *
@@ -11374,7 +11411,7 @@ class LayoutNode {
11374
11411
  * console.log(`The entity exists: ${exists}`);
11375
11412
  * ```
11376
11413
  */
11377
- this.exists = () => __classPrivateFieldGet$8(this, _LayoutNode_client, "f").exists(this.entityId);
11414
+ this.exists = () => __classPrivateFieldGet$9(this, _LayoutNode_client, "f").exists(this.entityId);
11378
11415
  /**
11379
11416
  * Retrieves the parent of the TabStack or ColumnOrRow
11380
11417
  *
@@ -11395,11 +11432,11 @@ class LayoutNode {
11395
11432
  * ```
11396
11433
  */
11397
11434
  this.getParent = async () => {
11398
- const parent = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").getParent(this.entityId);
11435
+ const parent = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getParent(this.entityId);
11399
11436
  if (!parent) {
11400
11437
  return undefined;
11401
11438
  }
11402
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$8(this, _LayoutNode_client, "f"));
11439
+ return LayoutNode.getEntity(parent, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
11403
11440
  };
11404
11441
  /**
11405
11442
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11450,8 +11487,8 @@ class LayoutNode {
11450
11487
  * @experimental
11451
11488
  */
11452
11489
  this.createAdjacentStack = async (views, options) => {
11453
- const entityId = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11454
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$8(this, _LayoutNode_client, "f"));
11490
+ const entityId = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11491
+ return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$9(this, _LayoutNode_client, "f"));
11455
11492
  };
11456
11493
  /**
11457
11494
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11479,16 +11516,16 @@ class LayoutNode {
11479
11516
  * @experimental
11480
11517
  */
11481
11518
  this.getAdjacentStacks = async (edge) => {
11482
- const adjacentStacks = await __classPrivateFieldGet$8(this, _LayoutNode_client, "f").getAdjacentStacks({
11519
+ const adjacentStacks = await __classPrivateFieldGet$9(this, _LayoutNode_client, "f").getAdjacentStacks({
11483
11520
  targetId: this.entityId,
11484
11521
  edge
11485
11522
  });
11486
11523
  return adjacentStacks.map((stack) => LayoutNode.getEntity({
11487
11524
  type: 'stack',
11488
11525
  entityId: stack.entityId
11489
- }, __classPrivateFieldGet$8(this, _LayoutNode_client, "f")));
11526
+ }, __classPrivateFieldGet$9(this, _LayoutNode_client, "f")));
11490
11527
  };
11491
- __classPrivateFieldSet$7(this, _LayoutNode_client, client, "f");
11528
+ __classPrivateFieldSet$8(this, _LayoutNode_client, client, "f");
11492
11529
  this.entityId = entityId;
11493
11530
  }
11494
11531
  }
@@ -11561,7 +11598,7 @@ class TabStack extends LayoutNode {
11561
11598
  * ```
11562
11599
  * @experimental
11563
11600
  */
11564
- this.getViews = () => __classPrivateFieldGet$8(this, _TabStack_client, "f").getStackViews(this.entityId);
11601
+ this.getViews = () => __classPrivateFieldGet$9(this, _TabStack_client, "f").getStackViews(this.entityId);
11565
11602
  /**
11566
11603
  * Adds or creates a view in this {@link TabStack}.
11567
11604
  *
@@ -11591,7 +11628,7 @@ class TabStack extends LayoutNode {
11591
11628
  * ```
11592
11629
  * @experimental
11593
11630
  */
11594
- this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$8(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11631
+ this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$9(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11595
11632
  /**
11596
11633
  * Removes a view from this {@link TabStack}.
11597
11634
  *
@@ -11621,7 +11658,7 @@ class TabStack extends LayoutNode {
11621
11658
  * ```
11622
11659
  */
11623
11660
  this.removeView = async (view) => {
11624
- await __classPrivateFieldGet$8(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11661
+ await __classPrivateFieldGet$9(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11625
11662
  };
11626
11663
  /**
11627
11664
  * Sets the active view of the {@link TabStack} without focusing it.
@@ -11645,9 +11682,9 @@ class TabStack extends LayoutNode {
11645
11682
  * @experimental
11646
11683
  */
11647
11684
  this.setActiveView = async (view) => {
11648
- await __classPrivateFieldGet$8(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11685
+ await __classPrivateFieldGet$9(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11649
11686
  };
11650
- __classPrivateFieldSet$7(this, _TabStack_client, client, "f");
11687
+ __classPrivateFieldSet$8(this, _TabStack_client, client, "f");
11651
11688
  }
11652
11689
  }
11653
11690
  layoutEntities.TabStack = TabStack;
@@ -11686,10 +11723,10 @@ class ColumnOrRow extends LayoutNode {
11686
11723
  * ```
11687
11724
  */
11688
11725
  this.getContent = async () => {
11689
- const contentItemEntities = await __classPrivateFieldGet$8(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11690
- return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$8(this, _ColumnOrRow_client, "f")));
11726
+ const contentItemEntities = await __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11727
+ return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$9(this, _ColumnOrRow_client, "f")));
11691
11728
  };
11692
- __classPrivateFieldSet$7(this, _ColumnOrRow_client, client, "f");
11729
+ __classPrivateFieldSet$8(this, _ColumnOrRow_client, client, "f");
11693
11730
  this.type = type;
11694
11731
  }
11695
11732
  }
@@ -11704,7 +11741,7 @@ layout_constants.LAYOUT_CONTROLLER_ID = 'layout-entities';
11704
11741
  // TODO: eventually export this somehow
11705
11742
  layout_constants.DEFAULT_LAYOUT_KEY = '__default__';
11706
11743
 
11707
- var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11744
+ var __classPrivateFieldGet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11708
11745
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11709
11746
  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");
11710
11747
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11712,9 +11749,9 @@ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateF
11712
11749
  var _Layout_instances, _Layout_layoutClient, _Layout_forwardLayoutAction;
11713
11750
  Object.defineProperty(Instance$1, "__esModule", { value: true });
11714
11751
  Instance$1.Layout = void 0;
11715
- const lazy_1$1 = lazy;
11752
+ const lazy_1$2 = lazy;
11716
11753
  const validate_1 = validate;
11717
- const base_1$8 = base;
11754
+ const base_1$9 = base;
11718
11755
  const common_utils_1$1 = commonUtils;
11719
11756
  const layout_entities_1 = layoutEntities;
11720
11757
  const layout_constants_1$1 = layout_constants;
@@ -11850,12 +11887,12 @@ const layout_constants_1$1 = layout_constants;
11850
11887
  * }
11851
11888
  * ```
11852
11889
  */
11853
- class Layout extends base_1$8.Base {
11890
+ class Layout extends base_1$9.Base {
11854
11891
  /**
11855
11892
  * @internal
11856
11893
  */
11857
11894
  static getClient(layout) {
11858
- return __classPrivateFieldGet$7(layout, _Layout_layoutClient, "f").getValue();
11895
+ return __classPrivateFieldGet$8(layout, _Layout_layoutClient, "f").getValue();
11859
11896
  }
11860
11897
  /**
11861
11898
  * @internal
@@ -11869,7 +11906,7 @@ class Layout extends base_1$8.Base {
11869
11906
  * Lazily constructed {@link LayoutEntitiesClient} bound to this platform's client and identity
11870
11907
  * The client is for {@link LayoutEntitiesController}
11871
11908
  */
11872
- _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)));
11909
+ _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)));
11873
11910
  /**
11874
11911
  * Replaces a Platform window's layout with a new layout.
11875
11912
  *
@@ -12078,7 +12115,7 @@ class Layout extends base_1$8.Base {
12078
12115
  this.wire.sendAction('layout-get-root-item').catch(() => {
12079
12116
  // don't expose
12080
12117
  });
12081
- const client = await __classPrivateFieldGet$7(this, _Layout_layoutClient, "f").getValue();
12118
+ const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
12082
12119
  const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
12083
12120
  return layout_entities_1.LayoutNode.getEntity(root, client);
12084
12121
  }
@@ -12096,7 +12133,7 @@ class Layout extends base_1$8.Base {
12096
12133
  this.wire.sendAction('layout-get-stack-by-view').catch(() => {
12097
12134
  // don't expose
12098
12135
  });
12099
- const client = await __classPrivateFieldGet$7(this, _Layout_layoutClient, "f").getValue();
12136
+ const client = await __classPrivateFieldGet$8(this, _Layout_layoutClient, "f").getValue();
12100
12137
  const stack = await client.getStackByView(identity);
12101
12138
  if (!stack) {
12102
12139
  throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
@@ -12116,7 +12153,7 @@ class Layout extends base_1$8.Base {
12116
12153
  this.wire.sendAction('layout-add-view').catch((e) => {
12117
12154
  // don't expose
12118
12155
  });
12119
- const { identity } = await __classPrivateFieldGet$7(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
12156
+ const { identity } = await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
12120
12157
  viewOptions,
12121
12158
  location,
12122
12159
  targetView
@@ -12134,7 +12171,7 @@ class Layout extends base_1$8.Base {
12134
12171
  this.wire.sendAction('layout-close-view').catch((e) => {
12135
12172
  // don't expose
12136
12173
  });
12137
- await __classPrivateFieldGet$7(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12174
+ await __classPrivateFieldGet$8(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
12138
12175
  }
12139
12176
  }
12140
12177
  Instance$1.Layout = Layout;
@@ -12148,12 +12185,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
12148
12185
  return client.dispatch(action, { target: this.identity, opts: payload });
12149
12186
  };
12150
12187
 
12151
- var __classPrivateFieldGet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12188
+ var __classPrivateFieldGet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12152
12189
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12153
12190
  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");
12154
12191
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12155
12192
  };
12156
- var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12193
+ var __classPrivateFieldSet$7 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12157
12194
  if (kind === "m") throw new TypeError("Private method is not writable");
12158
12195
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12159
12196
  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");
@@ -12162,13 +12199,13 @@ var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateF
12162
12199
  var _LayoutModule_instances, _LayoutModule_layoutInitializationAttempted, _LayoutModule_layoutManager, _LayoutModule_getLayoutManagerSpy, _LayoutModule_getSafeLayoutManager;
12163
12200
  Object.defineProperty(Factory$2, "__esModule", { value: true });
12164
12201
  Factory$2.LayoutModule = void 0;
12165
- const base_1$7 = base;
12202
+ const base_1$8 = base;
12166
12203
  const Instance_1$2 = Instance$1;
12167
12204
  const layout_constants_1 = layout_constants;
12168
12205
  /**
12169
12206
  * Static namespace for OpenFin API methods that interact with the {@link Layout} class, available under `fin.Platform.Layout`.
12170
12207
  */
12171
- class LayoutModule extends base_1$7.Base {
12208
+ class LayoutModule extends base_1$8.Base {
12172
12209
  constructor() {
12173
12210
  super(...arguments);
12174
12211
  _LayoutModule_instances.add(this);
@@ -12219,23 +12256,23 @@ class LayoutModule extends base_1$7.Base {
12219
12256
  if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
12220
12257
  throw new Error('Layout.init can only be called from a Window context.');
12221
12258
  }
12222
- if (__classPrivateFieldGet$6(this, _LayoutModule_layoutInitializationAttempted, "f")) {
12259
+ if (__classPrivateFieldGet$7(this, _LayoutModule_layoutInitializationAttempted, "f")) {
12223
12260
  throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
12224
12261
  }
12225
12262
  if (this.wire.environment.type === 'openfin') {
12226
12263
  // preload the client
12227
12264
  await this.fin.Platform.getCurrentSync().getClient();
12228
12265
  }
12229
- __classPrivateFieldSet$6(this, _LayoutModule_layoutInitializationAttempted, true, "f");
12266
+ __classPrivateFieldSet$7(this, _LayoutModule_layoutInitializationAttempted, true, "f");
12230
12267
  // TODO: rename to createLayoutManager
12231
- __classPrivateFieldSet$6(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12232
- await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f"), options);
12268
+ __classPrivateFieldSet$7(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
12269
+ await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f"), options);
12233
12270
  const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
12234
12271
  if (!options.layoutManagerOverride) {
12235
12272
  // CORE-1081 to be removed when we actually delete the `layoutManager` prop
12236
12273
  // in single-layout case, we return the undocumented layoutManager type
12237
12274
  const layoutIdentity = { layoutName: layout_constants_1.DEFAULT_LAYOUT_KEY, ...meIdentity };
12238
- return __classPrivateFieldGet$6(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
12275
+ return __classPrivateFieldGet$7(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
12239
12276
  }
12240
12277
  return this.wrapSync(meIdentity);
12241
12278
  };
@@ -12264,13 +12301,13 @@ class LayoutModule extends base_1$7.Base {
12264
12301
  * @returns
12265
12302
  */
12266
12303
  this.getCurrentLayoutManagerSync = () => {
12267
- return __classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
12304
+ return __classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
12268
12305
  };
12269
12306
  this.create = async (options) => {
12270
- return this.wire.environment.createLayout(__classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
12307
+ return this.wire.environment.createLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
12271
12308
  };
12272
12309
  this.destroy = async (layoutIdentity) => {
12273
- return this.wire.environment.destroyLayout(__classPrivateFieldGet$6(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
12310
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$7(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
12274
12311
  };
12275
12312
  }
12276
12313
  /**
@@ -12411,10 +12448,10 @@ class LayoutModule extends base_1$7.Base {
12411
12448
  }
12412
12449
  Factory$2.LayoutModule = LayoutModule;
12413
12450
  _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12414
- if (!__classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f")) {
12451
+ if (!__classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f")) {
12415
12452
  throw new Error(`You must call init before using the API ${method}`);
12416
12453
  }
12417
- return __classPrivateFieldGet$6(this, _LayoutModule_layoutManager, "f");
12454
+ return __classPrivateFieldGet$7(this, _LayoutModule_layoutManager, "f");
12418
12455
  };
12419
12456
 
12420
12457
  (function (exports) {
@@ -12451,13 +12488,13 @@ _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layou
12451
12488
 
12452
12489
  Object.defineProperty(Factory$3, "__esModule", { value: true });
12453
12490
  Factory$3.PlatformModule = void 0;
12454
- const base_1$6 = base;
12491
+ const base_1$7 = base;
12455
12492
  const Instance_1$1 = Instance$2;
12456
12493
  const index_1$1 = layout;
12457
12494
  /**
12458
12495
  * Static namespace for OpenFin API methods that interact with the {@link Platform} class, available under `fin.Platform`.
12459
12496
  */
12460
- class PlatformModule extends base_1$6.Base {
12497
+ class PlatformModule extends base_1$7.Base {
12461
12498
  /**
12462
12499
  * @internal
12463
12500
  */
@@ -13377,13 +13414,13 @@ class PrivateChannelProvider {
13377
13414
  }
13378
13415
  PrivateChannelProvider$1.PrivateChannelProvider = PrivateChannelProvider;
13379
13416
 
13380
- var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13417
+ var __classPrivateFieldSet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13381
13418
  if (kind === "m") throw new TypeError("Private method is not writable");
13382
13419
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13383
13420
  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");
13384
13421
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
13385
13422
  };
13386
- var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13423
+ var __classPrivateFieldGet$6 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
13387
13424
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
13388
13425
  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");
13389
13426
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -13394,12 +13431,12 @@ var __importDefault$4 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
13394
13431
  var _InteropBroker_fdc3Info, _InteropBroker_contextGroups, _InteropBroker_providerPromise;
13395
13432
  Object.defineProperty(InteropBroker$1, "__esModule", { value: true });
13396
13433
  InteropBroker$1.InteropBroker = void 0;
13397
- const base_1$5 = base;
13434
+ const base_1$6 = base;
13398
13435
  const SessionContextGroupBroker_1 = __importDefault$4(SessionContextGroupBroker$1);
13399
13436
  const utils_1$7 = utils$3;
13400
13437
  const isEqual_1$1 = __importDefault$4(require$$3);
13401
13438
  const PrivateChannelProvider_1 = PrivateChannelProvider$1;
13402
- const lazy_1 = lazy;
13439
+ const lazy_1$1 = lazy;
13403
13440
  const defaultContextGroups = [
13404
13441
  {
13405
13442
  id: 'green',
@@ -13563,7 +13600,7 @@ const defaultContextGroups = [
13563
13600
  * ---
13564
13601
  *
13565
13602
  */
13566
- class InteropBroker extends base_1$5.Base {
13603
+ class InteropBroker extends base_1$6.Base {
13567
13604
  /**
13568
13605
  * @internal
13569
13606
  */
@@ -13574,19 +13611,19 @@ class InteropBroker extends base_1$5.Base {
13574
13611
  _InteropBroker_contextGroups.set(this, void 0);
13575
13612
  _InteropBroker_providerPromise.set(this, void 0);
13576
13613
  this.getProvider = () => {
13577
- return __classPrivateFieldGet$5(this, _InteropBroker_providerPromise, "f").getValue();
13614
+ return __classPrivateFieldGet$6(this, _InteropBroker_providerPromise, "f").getValue();
13578
13615
  };
13579
13616
  this.interopClients = new Map();
13580
13617
  this.contextGroupsById = new Map();
13581
- __classPrivateFieldSet$5(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13582
- __classPrivateFieldSet$5(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13618
+ __classPrivateFieldSet$6(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13619
+ __classPrivateFieldSet$6(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13583
13620
  if (options?.logging) {
13584
13621
  this.logging = options.logging;
13585
13622
  }
13586
13623
  this.intentClientMap = new Map();
13587
13624
  this.lastContextMap = new Map();
13588
13625
  this.sessionContextGroupMap = new Map();
13589
- __classPrivateFieldSet$5(this, _InteropBroker_providerPromise, new lazy_1.Lazy(createProvider), "f");
13626
+ __classPrivateFieldSet$6(this, _InteropBroker_providerPromise, new lazy_1$1.Lazy(createProvider), "f");
13590
13627
  this.setContextGroupMap();
13591
13628
  this.setupChannelProvider();
13592
13629
  }
@@ -13854,7 +13891,7 @@ class InteropBroker extends base_1$5.Base {
13854
13891
  // don't expose, analytics-only call
13855
13892
  });
13856
13893
  // Create copy for immutability
13857
- return __classPrivateFieldGet$5(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13894
+ return __classPrivateFieldGet$6(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13858
13895
  return { ...contextGroup };
13859
13896
  });
13860
13897
  }
@@ -14265,7 +14302,7 @@ class InteropBroker extends base_1$5.Base {
14265
14302
  const { fdc3Version } = payload;
14266
14303
  return {
14267
14304
  fdc3Version,
14268
- ...__classPrivateFieldGet$5(this, _InteropBroker_fdc3Info, "f"),
14305
+ ...__classPrivateFieldGet$6(this, _InteropBroker_fdc3Info, "f"),
14269
14306
  optionalFeatures: {
14270
14307
  OriginatingAppMetadata: false,
14271
14308
  UserChannelMembershipAPIs: true
@@ -14642,27 +14679,27 @@ var InteropClient$1 = {};
14642
14679
 
14643
14680
  var SessionContextGroupClient$1 = {};
14644
14681
 
14645
- var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14682
+ var __classPrivateFieldSet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14646
14683
  if (kind === "m") throw new TypeError("Private method is not writable");
14647
14684
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14648
14685
  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");
14649
14686
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14650
14687
  };
14651
- var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14688
+ var __classPrivateFieldGet$5 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14652
14689
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14653
14690
  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");
14654
14691
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
14655
14692
  };
14656
14693
  var _SessionContextGroupClient_clientPromise;
14657
14694
  Object.defineProperty(SessionContextGroupClient$1, "__esModule", { value: true });
14658
- const base_1$4 = base;
14695
+ const base_1$5 = base;
14659
14696
  const utils_1$6 = utils$3;
14660
- class SessionContextGroupClient extends base_1$4.Base {
14697
+ class SessionContextGroupClient extends base_1$5.Base {
14661
14698
  constructor(wire, client, id) {
14662
14699
  super(wire);
14663
14700
  _SessionContextGroupClient_clientPromise.set(this, void 0);
14664
14701
  this.id = id;
14665
- __classPrivateFieldSet$4(this, _SessionContextGroupClient_clientPromise, client, "f");
14702
+ __classPrivateFieldSet$5(this, _SessionContextGroupClient_clientPromise, client, "f");
14666
14703
  }
14667
14704
  /**
14668
14705
  * Sets a context for the session context group.
@@ -14674,7 +14711,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14674
14711
  this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
14675
14712
  // don't expose, analytics-only call
14676
14713
  });
14677
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
14714
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14678
14715
  return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
14679
14716
  sessionContextGroupId: this.id,
14680
14717
  context
@@ -14684,7 +14721,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14684
14721
  this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
14685
14722
  // don't expose, analytics-only call
14686
14723
  });
14687
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
14724
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14688
14725
  return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
14689
14726
  sessionContextGroupId: this.id,
14690
14727
  type
@@ -14697,7 +14734,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14697
14734
  if (typeof contextHandler !== 'function') {
14698
14735
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14699
14736
  }
14700
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
14737
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14701
14738
  let handlerId;
14702
14739
  if (contextType) {
14703
14740
  handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${(0, utils_1$6.generateId)()}`;
@@ -14710,7 +14747,7 @@ class SessionContextGroupClient extends base_1$4.Base {
14710
14747
  return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
14711
14748
  }
14712
14749
  async createUnsubscribeCb(handlerId) {
14713
- const client = await __classPrivateFieldGet$4(this, _SessionContextGroupClient_clientPromise, "f");
14750
+ const client = await __classPrivateFieldGet$5(this, _SessionContextGroupClient_clientPromise, "f");
14714
14751
  return async () => {
14715
14752
  client.remove(handlerId);
14716
14753
  await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
@@ -14728,13 +14765,13 @@ class SessionContextGroupClient extends base_1$4.Base {
14728
14765
  SessionContextGroupClient$1.default = SessionContextGroupClient;
14729
14766
  _SessionContextGroupClient_clientPromise = new WeakMap();
14730
14767
 
14731
- var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14768
+ var __classPrivateFieldSet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14732
14769
  if (kind === "m") throw new TypeError("Private method is not writable");
14733
14770
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14734
14771
  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");
14735
14772
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14736
14773
  };
14737
- var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14774
+ var __classPrivateFieldGet$4 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14738
14775
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14739
14776
  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");
14740
14777
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14745,7 +14782,7 @@ var __importDefault$3 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
14745
14782
  var _InteropClient_clientPromise, _InteropClient_sessionContextGroups, _InteropClient_fdc3Factory;
14746
14783
  Object.defineProperty(InteropClient$1, "__esModule", { value: true });
14747
14784
  InteropClient$1.InteropClient = void 0;
14748
- const base_1$3 = base;
14785
+ const base_1$4 = base;
14749
14786
  const SessionContextGroupClient_1 = __importDefault$3(SessionContextGroupClient$1);
14750
14787
  const utils_1$5 = utils$3;
14751
14788
  /**
@@ -14797,7 +14834,7 @@ const utils_1$5 = utils$3;
14797
14834
  * * {@link InteropClient#getAllClientsInContextGroup getAllClientsInContextGroup(contextGroupId)}
14798
14835
  *
14799
14836
  */
14800
- class InteropClient extends base_1$3.Base {
14837
+ class InteropClient extends base_1$4.Base {
14801
14838
  /**
14802
14839
  * @internal
14803
14840
  */
@@ -14806,9 +14843,9 @@ class InteropClient extends base_1$3.Base {
14806
14843
  _InteropClient_clientPromise.set(this, void 0);
14807
14844
  _InteropClient_sessionContextGroups.set(this, void 0);
14808
14845
  _InteropClient_fdc3Factory.set(this, void 0);
14809
- __classPrivateFieldSet$3(this, _InteropClient_sessionContextGroups, new Map(), "f");
14810
- __classPrivateFieldSet$3(this, _InteropClient_clientPromise, clientPromise, "f");
14811
- __classPrivateFieldSet$3(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14846
+ __classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
14847
+ __classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
14848
+ __classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14812
14849
  }
14813
14850
  /*
14814
14851
  Client APIs
@@ -14836,7 +14873,7 @@ class InteropClient extends base_1$3.Base {
14836
14873
  this.wire.sendAction('interop-client-set-context').catch((e) => {
14837
14874
  // don't expose, analytics-only call
14838
14875
  });
14839
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
14876
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14840
14877
  return client.dispatch('setContext', { context });
14841
14878
  }
14842
14879
  /**
@@ -14903,7 +14940,7 @@ class InteropClient extends base_1$3.Base {
14903
14940
  if (typeof handler !== 'function') {
14904
14941
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14905
14942
  }
14906
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
14943
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14907
14944
  let handlerId;
14908
14945
  if (contextType) {
14909
14946
  handlerId = `invokeContextHandler-${contextType}-${(0, utils_1$5.generateId)()}`;
@@ -14943,7 +14980,7 @@ class InteropClient extends base_1$3.Base {
14943
14980
  this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
14944
14981
  // don't expose, analytics-only call
14945
14982
  });
14946
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
14983
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14947
14984
  return client.dispatch('getContextGroups');
14948
14985
  }
14949
14986
  /**
@@ -14974,7 +15011,7 @@ class InteropClient extends base_1$3.Base {
14974
15011
  this.wire.sendAction('interop-client-join-context-group').catch((e) => {
14975
15012
  // don't expose, analytics-only call
14976
15013
  });
14977
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15014
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14978
15015
  if (!contextGroupId) {
14979
15016
  throw new Error('No contextGroupId specified for joinContextGroup.');
14980
15017
  }
@@ -15003,7 +15040,7 @@ class InteropClient extends base_1$3.Base {
15003
15040
  this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
15004
15041
  // don't expose, analytics-only call
15005
15042
  });
15006
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15043
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15007
15044
  return client.dispatch('removeFromContextGroup', { target });
15008
15045
  }
15009
15046
  /**
@@ -15026,7 +15063,7 @@ class InteropClient extends base_1$3.Base {
15026
15063
  this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
15027
15064
  // don't expose, analytics-only call
15028
15065
  });
15029
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15066
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15030
15067
  if (!contextGroupId) {
15031
15068
  throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
15032
15069
  }
@@ -15051,7 +15088,7 @@ class InteropClient extends base_1$3.Base {
15051
15088
  this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
15052
15089
  // don't expose, analytics-only call
15053
15090
  });
15054
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15091
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15055
15092
  if (!contextGroupId) {
15056
15093
  throw new Error('No contextGroupId specified for getInfoForContextGroup.');
15057
15094
  }
@@ -15079,7 +15116,7 @@ class InteropClient extends base_1$3.Base {
15079
15116
  this.wire.sendAction('interop-client-fire-intent').catch((e) => {
15080
15117
  // don't expose, this is only for api analytics purposes
15081
15118
  });
15082
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15119
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15083
15120
  return client.dispatch('fireIntent', intent);
15084
15121
  }
15085
15122
  /**
@@ -15106,7 +15143,7 @@ class InteropClient extends base_1$3.Base {
15106
15143
  this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
15107
15144
  // don't expose, this is only for api analytics purposes
15108
15145
  });
15109
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15146
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15110
15147
  const handlerId = `intent-handler-${intentName}`;
15111
15148
  const wrappedHandler = (0, utils_1$5.wrapIntentHandler)(handler, handlerId);
15112
15149
  try {
@@ -15144,7 +15181,7 @@ class InteropClient extends base_1$3.Base {
15144
15181
  this.wire.sendAction('interop-client-get-current-context').catch((e) => {
15145
15182
  // don't expose, analytics-only call
15146
15183
  });
15147
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15184
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15148
15185
  return client.dispatch('getCurrentContext', { contextType });
15149
15186
  }
15150
15187
  /**
@@ -15164,7 +15201,7 @@ class InteropClient extends base_1$3.Base {
15164
15201
  this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
15165
15202
  // don't expose, analytics-only call
15166
15203
  });
15167
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15204
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15168
15205
  return client.dispatch('getInfoForIntent', options);
15169
15206
  }
15170
15207
  /**
@@ -15195,7 +15232,7 @@ class InteropClient extends base_1$3.Base {
15195
15232
  this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
15196
15233
  // don't expose, analytics-only call
15197
15234
  });
15198
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15235
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15199
15236
  return client.dispatch('getInfoForIntentsByContext', context);
15200
15237
  }
15201
15238
  /**
@@ -15227,7 +15264,7 @@ class InteropClient extends base_1$3.Base {
15227
15264
  this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
15228
15265
  // don't expose, analytics-only call
15229
15266
  });
15230
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15267
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15231
15268
  return client.dispatch('fireIntentForContext', context);
15232
15269
  }
15233
15270
  /**
@@ -15264,19 +15301,19 @@ class InteropClient extends base_1$3.Base {
15264
15301
  */
15265
15302
  async joinSessionContextGroup(sessionContextGroupId) {
15266
15303
  try {
15267
- const currentSessionContextGroup = __classPrivateFieldGet$3(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
15304
+ const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
15268
15305
  if (currentSessionContextGroup) {
15269
15306
  return currentSessionContextGroup.getUserInstance();
15270
15307
  }
15271
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15308
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15272
15309
  const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
15273
15310
  sessionContextGroupId
15274
15311
  });
15275
15312
  if (hasConflict) {
15276
15313
  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.`);
15277
15314
  }
15278
- const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15279
- __classPrivateFieldGet$3(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15315
+ const newSessionContextGroup = new SessionContextGroupClient_1.default(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
15316
+ __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
15280
15317
  return newSessionContextGroup.getUserInstance();
15281
15318
  }
15282
15319
  catch (error) {
@@ -15303,14 +15340,14 @@ class InteropClient extends base_1$3.Base {
15303
15340
  this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
15304
15341
  // don't expose, analytics-only call
15305
15342
  });
15306
- const client = await __classPrivateFieldGet$3(this, _InteropClient_clientPromise, "f");
15343
+ const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
15307
15344
  return client.onDisconnection((event) => {
15308
15345
  const { uuid } = event;
15309
15346
  listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
15310
15347
  });
15311
15348
  }
15312
15349
  getFDC3Sync(version) {
15313
- return __classPrivateFieldGet$3(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
15350
+ return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
15314
15351
  }
15315
15352
  async getFDC3(version) {
15316
15353
  return this.getFDC3Sync(version);
@@ -15321,7 +15358,7 @@ class InteropClient extends base_1$3.Base {
15321
15358
  * Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
15322
15359
  */
15323
15360
  static async ferryFdc3Call(interopClient, action, payload) {
15324
- const client = await __classPrivateFieldGet$3(interopClient, _InteropClient_clientPromise, "f");
15361
+ const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
15325
15362
  return client.dispatch(action, payload || null);
15326
15363
  }
15327
15364
  }
@@ -15736,12 +15773,12 @@ PrivateChannelClient$1.PrivateChannelClient = PrivateChannelClient;
15736
15773
  exports.getIntentResolution = getIntentResolution;
15737
15774
  } (utils$2));
15738
15775
 
15739
- var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15776
+ var __classPrivateFieldGet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15740
15777
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15741
15778
  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");
15742
15779
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15743
15780
  };
15744
- var __classPrivateFieldSet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15781
+ var __classPrivateFieldSet$3 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15745
15782
  if (kind === "m") throw new TypeError("Private method is not writable");
15746
15783
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15747
15784
  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");
@@ -15759,7 +15796,7 @@ const InteropClient_1$2 = InteropClient$1;
15759
15796
  const isEqual_1 = __importDefault$2(require$$3);
15760
15797
  class FDC3ModuleBase {
15761
15798
  get client() {
15762
- return __classPrivateFieldGet$2(this, _FDC3ModuleBase_producer, "f").call(this);
15799
+ return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
15763
15800
  }
15764
15801
  get fin() {
15765
15802
  return this.wire.getFin();
@@ -15768,7 +15805,7 @@ class FDC3ModuleBase {
15768
15805
  constructor(producer, wire) {
15769
15806
  this.wire = wire;
15770
15807
  _FDC3ModuleBase_producer.set(this, void 0);
15771
- __classPrivateFieldSet$2(this, _FDC3ModuleBase_producer, producer, "f");
15808
+ __classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
15772
15809
  }
15773
15810
  /**
15774
15811
  * Broadcasts a context for the channel of the current entity.
@@ -16549,7 +16586,7 @@ Object.defineProperty(Factory$1, "__esModule", { value: true });
16549
16586
  Factory$1.InteropModule = void 0;
16550
16587
  const cloneDeep_1 = __importDefault$1(require$$0$1);
16551
16588
  const inaccessibleObject_1 = inaccessibleObject;
16552
- const base_1$2 = base;
16589
+ const base_1$3 = base;
16553
16590
  const InteropBroker_1 = InteropBroker$1;
16554
16591
  const InteropClient_1 = InteropClient$1;
16555
16592
  const overrideCheck_1$1 = overrideCheck$1;
@@ -16561,7 +16598,7 @@ const BrokerParamAccessError = 'You have attempted to use or modify InteropBroke
16561
16598
  * Manages creation of Interop Brokers and Interop Clients. These APIs are called under-the-hood in Platforms.
16562
16599
  *
16563
16600
  */
16564
- class InteropModule extends base_1$2.Base {
16601
+ class InteropModule extends base_1$3.Base {
16565
16602
  /**
16566
16603
  * Initializes an Interop Broker. This is called under-the-hood for Platforms.
16567
16604
  *
@@ -16685,13 +16722,13 @@ const channelPrefix = 'snapshot-source-provider-';
16685
16722
  const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
16686
16723
  utils.getSnapshotSourceChannelName = getSnapshotSourceChannelName;
16687
16724
 
16688
- var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16725
+ var __classPrivateFieldSet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16689
16726
  if (kind === "m") throw new TypeError("Private method is not writable");
16690
16727
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16691
16728
  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");
16692
16729
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16693
16730
  };
16694
- var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16731
+ var __classPrivateFieldGet$2 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16695
16732
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16696
16733
  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");
16697
16734
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16700,7 +16737,7 @@ var _SnapshotSource_identity, _SnapshotSource_getConnection, _SnapshotSource_get
16700
16737
  Object.defineProperty(Instance, "__esModule", { value: true });
16701
16738
  Instance.SnapshotSource = void 0;
16702
16739
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
16703
- const base_1$1 = base;
16740
+ const base_1$2 = base;
16704
16741
  const utils_1$1 = utils;
16705
16742
  const connectionMap = new Map();
16706
16743
  /**
@@ -16709,7 +16746,7 @@ const connectionMap = new Map();
16709
16746
  * @typeParam Snapshot Implementation-defined shape of an application snapshot. Allows
16710
16747
  * custom snapshot implementations for legacy applications to define their own snapshot format.
16711
16748
  */
16712
- class SnapshotSource extends base_1$1.Base {
16749
+ class SnapshotSource extends base_1$2.Base {
16713
16750
  /**
16714
16751
  * @internal
16715
16752
  */
@@ -16723,26 +16760,26 @@ class SnapshotSource extends base_1$1.Base {
16723
16760
  return connectionMap.get(this.identity.uuid);
16724
16761
  });
16725
16762
  _SnapshotSource_getClient.set(this, () => {
16726
- if (!__classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16727
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$1(this, _SnapshotSource_startConnection, "f").call(this);
16763
+ if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16764
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
16728
16765
  }
16729
- return __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16766
+ return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16730
16767
  });
16731
16768
  _SnapshotSource_startConnection.set(this, async () => {
16732
16769
  const channelName = (0, utils_1$1.getSnapshotSourceChannelName)(this.identity);
16733
16770
  try {
16734
- if (!__classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16735
- await __classPrivateFieldGet$1(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16771
+ if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16772
+ await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16736
16773
  }
16737
16774
  const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
16738
16775
  client.onDisconnection(() => {
16739
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16740
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16776
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16777
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16741
16778
  });
16742
16779
  return client;
16743
16780
  }
16744
16781
  catch (e) {
16745
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16782
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16746
16783
  throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
16747
16784
  }
16748
16785
  });
@@ -16754,7 +16791,7 @@ class SnapshotSource extends base_1$1.Base {
16754
16791
  resolve = y;
16755
16792
  reject = n;
16756
16793
  });
16757
- __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16794
+ __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16758
16795
  const listener = async (e) => {
16759
16796
  try {
16760
16797
  if (e.channelName === channelName) {
@@ -16768,10 +16805,10 @@ class SnapshotSource extends base_1$1.Base {
16768
16805
  };
16769
16806
  await this.fin.InterApplicationBus.Channel.on('connected', listener);
16770
16807
  });
16771
- __classPrivateFieldSet$1(this, _SnapshotSource_identity, id, "f");
16808
+ __classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
16772
16809
  }
16773
16810
  get identity() {
16774
- return __classPrivateFieldGet$1(this, _SnapshotSource_identity, "f");
16811
+ return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
16775
16812
  }
16776
16813
  /**
16777
16814
  * Method to determine if the SnapshotSource has been initialized.
@@ -16807,11 +16844,11 @@ class SnapshotSource extends base_1$1.Base {
16807
16844
  // eslint-disable-next-line no-async-promise-executor
16808
16845
  try {
16809
16846
  // 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?
16810
- await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
16847
+ await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16811
16848
  }
16812
16849
  catch (e) {
16813
16850
  // it was not running.
16814
- await __classPrivateFieldGet$1(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16851
+ await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16815
16852
  }
16816
16853
  }
16817
16854
  /**
@@ -16822,7 +16859,7 @@ class SnapshotSource extends base_1$1.Base {
16822
16859
  this.wire.sendAction('snapshot-source-get-snapshot').catch((e) => {
16823
16860
  // don't expose, analytics-only call
16824
16861
  });
16825
- const client = await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
16862
+ const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16826
16863
  const response = (await client.dispatch('get-snapshot'));
16827
16864
  return (await response).snapshot;
16828
16865
  }
@@ -16834,7 +16871,7 @@ class SnapshotSource extends base_1$1.Base {
16834
16871
  this.wire.sendAction('snapshot-source-apply-snapshot').catch((e) => {
16835
16872
  // don't expose, analytics-only call
16836
16873
  });
16837
- const client = await __classPrivateFieldGet$1(this, _SnapshotSource_getClient, "f").call(this);
16874
+ const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16838
16875
  return client.dispatch('apply-snapshot', { snapshot });
16839
16876
  }
16840
16877
  }
@@ -16843,13 +16880,13 @@ _SnapshotSource_identity = new WeakMap(), _SnapshotSource_getConnection = new We
16843
16880
 
16844
16881
  Object.defineProperty(Factory, "__esModule", { value: true });
16845
16882
  Factory.SnapshotSourceModule = void 0;
16846
- const base_1 = base;
16883
+ const base_1$1 = base;
16847
16884
  const Instance_1 = Instance;
16848
16885
  const utils_1 = utils;
16849
16886
  /**
16850
16887
  * Static namespace for OpenFin API methods that interact with the {@link SnapshotSource} class, available under `fin.SnapshotSource`.
16851
16888
  */
16852
- class SnapshotSourceModule extends base_1.Base {
16889
+ class SnapshotSourceModule extends base_1$1.Base {
16853
16890
  /**
16854
16891
  * Initializes a SnapshotSource with the getSnapshot and applySnapshot methods defined.
16855
16892
  *
@@ -16955,6 +16992,114 @@ Factory.SnapshotSourceModule = SnapshotSourceModule;
16955
16992
  __exportStar(Instance, exports);
16956
16993
  } (snapshotSource));
16957
16994
 
16995
+ var notificationManager = {};
16996
+
16997
+ var factory = {};
16998
+
16999
+ var instance = {};
17000
+
17001
+ var __classPrivateFieldSet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
17002
+ if (kind === "m") throw new TypeError("Private method is not writable");
17003
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
17004
+ 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");
17005
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
17006
+ };
17007
+ var __classPrivateFieldGet$1 = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17008
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
17009
+ 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");
17010
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
17011
+ };
17012
+ var _NotificationManagerInstance_wire, _NotificationManagerInstance_handler, _NotificationManagerInstance_id, _NotificationManagerInstance_isReceivingNotifications;
17013
+ Object.defineProperty(instance, "__esModule", { value: true });
17014
+ instance.NotificationManagerInstance = void 0;
17015
+ const lazy_1 = lazy;
17016
+ class NotificationManagerInstance {
17017
+ constructor(wire, id) {
17018
+ _NotificationManagerInstance_wire.set(this, void 0);
17019
+ _NotificationManagerInstance_handler.set(this, void 0);
17020
+ _NotificationManagerInstance_id.set(this, void 0);
17021
+ _NotificationManagerInstance_isReceivingNotifications.set(this, new lazy_1.Lazy(async () => {
17022
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
17023
+ if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
17024
+ const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
17025
+ try {
17026
+ __classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
17027
+ properties,
17028
+ images: {
17029
+ image,
17030
+ icon,
17031
+ badge
17032
+ },
17033
+ url,
17034
+ notificationId
17035
+ });
17036
+ }
17037
+ catch (error) {
17038
+ console.error('Failed to handle notification', error);
17039
+ }
17040
+ return true;
17041
+ }
17042
+ return false;
17043
+ });
17044
+ return true;
17045
+ }));
17046
+ this.setNotificationHandler = async (handler) => {
17047
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
17048
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
17049
+ };
17050
+ this.destroy = async () => {
17051
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
17052
+ };
17053
+ this.dispatch = async (event) => {
17054
+ const { notificationId, type } = event;
17055
+ await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
17056
+ notificationId,
17057
+ type
17058
+ });
17059
+ };
17060
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
17061
+ __classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
17062
+ }
17063
+ }
17064
+ instance.NotificationManagerInstance = NotificationManagerInstance;
17065
+ _NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
17066
+
17067
+ Object.defineProperty(factory, "__esModule", { value: true });
17068
+ factory.NotificationManagerModule = void 0;
17069
+ const base_1 = base;
17070
+ const instance_1 = instance;
17071
+ class NotificationManagerModule extends base_1.Base {
17072
+ constructor() {
17073
+ super(...arguments);
17074
+ this.init = async () => {
17075
+ const { payload: { data: { managerId } } } = await this.wire.sendAction('init-notification-manager');
17076
+ const manager = new instance_1.NotificationManagerInstance(this.wire, managerId);
17077
+ return manager;
17078
+ };
17079
+ }
17080
+ }
17081
+ factory.NotificationManagerModule = NotificationManagerModule;
17082
+
17083
+ (function (exports) {
17084
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17085
+ if (k2 === undefined) k2 = k;
17086
+ var desc = Object.getOwnPropertyDescriptor(m, k);
17087
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17088
+ desc = { enumerable: true, get: function() { return m[k]; } };
17089
+ }
17090
+ Object.defineProperty(o, k2, desc);
17091
+ }) : (function(o, m, k, k2) {
17092
+ if (k2 === undefined) k2 = k;
17093
+ o[k2] = m[k];
17094
+ }));
17095
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
17096
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17097
+ };
17098
+ Object.defineProperty(exports, "__esModule", { value: true });
17099
+ __exportStar(factory, exports);
17100
+ __exportStar(instance, exports);
17101
+ } (notificationManager));
17102
+
16958
17103
  Object.defineProperty(fin$1, "__esModule", { value: true });
16959
17104
  var Fin_1 = fin$1.Fin = void 0;
16960
17105
  const events_1$3 = require$$0;
@@ -16972,6 +17117,7 @@ const index_10 = platform;
16972
17117
  const me_1$1 = me;
16973
17118
  const interop_1 = interop;
16974
17119
  const snapshot_source_1 = snapshotSource;
17120
+ const notification_manager_1 = notificationManager;
16975
17121
  /**
16976
17122
  * @internal
16977
17123
  */
@@ -16994,6 +17140,7 @@ class Fin extends events_1$3.EventEmitter {
16994
17140
  this.View = new index_9.ViewModule(wire);
16995
17141
  this.Interop = new interop_1.InteropModule(wire);
16996
17142
  this.SnapshotSource = new snapshot_source_1.SnapshotSourceModule(wire);
17143
+ this.NotificationManager = new notification_manager_1.NotificationManagerModule(wire);
16997
17144
  wire.registerFin(this);
16998
17145
  this.me = (0, me_1$1.getMe)(wire);
16999
17146
  // Handle disconnect events
@@ -17762,7 +17909,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
17762
17909
  };
17763
17910
  }
17764
17911
  getAdapterVersionSync() {
17765
- return "42.100.91";
17912
+ return "42.100.94";
17766
17913
  }
17767
17914
  observeBounds(element, onChange) {
17768
17915
  throw new Error('Method not implemented.');