@openfin/core 45.100.72 → 45.100.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/stub.js CHANGED
@@ -196,9 +196,6 @@ var window$1 = /*#__PURE__*/Object.freeze({
196
196
  * @packageDocumentation
197
197
  */
198
198
  // Deprecated shim to preserve v30 namespace names
199
- /**
200
- * End of Interop Client Events
201
- */
202
199
 
203
200
  var OpenFin = /*#__PURE__*/Object.freeze({
204
201
  __proto__: null,
@@ -214,13 +211,13 @@ var OpenFin = /*#__PURE__*/Object.freeze({
214
211
  WindowEvents: window$1
215
212
  });
216
213
 
217
- var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
214
+ var __classPrivateFieldSet$k = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
218
215
  if (kind === "m") throw new TypeError("Private method is not writable");
219
216
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
220
217
  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");
221
218
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
222
219
  };
223
- var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
220
+ var __classPrivateFieldGet$l = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
224
221
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
225
222
  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");
226
223
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -301,9 +298,9 @@ class EmitterBase extends Base {
301
298
  this.emit = (eventType, payload, ...args) => {
302
299
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
303
300
  };
304
- this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
301
+ this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
305
302
  this.getOrCreateEmitter = () => {
306
- return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
303
+ return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
307
304
  };
308
305
  this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
309
306
  this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
@@ -341,8 +338,8 @@ class EmitterBase extends Base {
341
338
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
342
339
  return Promise.resolve();
343
340
  };
344
- __classPrivateFieldSet$i(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
345
- __classPrivateFieldSet$i(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
341
+ __classPrivateFieldSet$k(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
342
+ __classPrivateFieldSet$k(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
346
343
  }
347
344
  /**
348
345
  * Adds a listener to the end of the listeners array for the specified event.
@@ -370,7 +367,7 @@ class EmitterBase extends Base {
370
367
  */
371
368
  async once(eventType, listener, options) {
372
369
  const deregister = () => this.deregisterEventListener(eventType);
373
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
370
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
374
371
  await this.registerEventListener(eventType, options, (emitter) => {
375
372
  emitter.once(eventType, deregister);
376
373
  emitter.once(eventType, listener);
@@ -401,7 +398,7 @@ class EmitterBase extends Base {
401
398
  */
402
399
  async prependOnceListener(eventType, listener, options) {
403
400
  const deregister = () => this.deregisterEventListener(eventType);
404
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
401
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
405
402
  await this.registerEventListener(eventType, options, (emitter) => {
406
403
  emitter.prependOnceListener(eventType, listener);
407
404
  emitter.once(eventType, deregister);
@@ -420,7 +417,7 @@ class EmitterBase extends Base {
420
417
  const emitter = await this.deregisterEventListener(eventType, options);
421
418
  if (emitter) {
422
419
  emitter.removeListener(eventType, listener);
423
- const deregister = __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
420
+ const deregister = __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
424
421
  if (deregister) {
425
422
  emitter.removeListener(eventType, deregister);
426
423
  }
@@ -466,7 +463,7 @@ class EmitterBase extends Base {
466
463
  deleteEmitterIfNothingRegistered(emitter) {
467
464
  // TODO: maybe emitterMap should clean up itself..
468
465
  if (emitter.eventNames().length === 0) {
469
- this.wire.eventAggregator.delete(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
466
+ this.wire.eventAggregator.delete(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
470
467
  }
471
468
  }
472
469
  }
@@ -7561,12 +7558,12 @@ let ChannelError$1 = class ChannelError extends Error {
7561
7558
  }
7562
7559
  };
7563
7560
 
7564
- var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7561
+ var __classPrivateFieldGet$k = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7565
7562
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7566
7563
  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");
7567
7564
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7568
7565
  };
7569
- var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7566
+ var __classPrivateFieldSet$j = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7570
7567
  if (kind === "m") throw new TypeError("Private method is not writable");
7571
7568
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7572
7569
  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");
@@ -7605,7 +7602,7 @@ class ChannelClient extends ChannelBase {
7605
7602
  static closeChannelByEndpointId(id) {
7606
7603
  const channel = channelClientsByEndpointId.get(id);
7607
7604
  if (channel) {
7608
- __classPrivateFieldGet$i(channel, _ChannelClient_close, "f").call(channel);
7605
+ __classPrivateFieldGet$k(channel, _ChannelClient_close, "f").call(channel);
7609
7606
  }
7610
7607
  }
7611
7608
  /**
@@ -7616,7 +7613,7 @@ class ChannelClient extends ChannelBase {
7616
7613
  for (const channelClient of channelClientsByEndpointId.values()) {
7617
7614
  if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
7618
7615
  channelClient.disconnectListener(eventPayload);
7619
- __classPrivateFieldGet$i(channelClient, _ChannelClient_close, "f").call(channelClient);
7616
+ __classPrivateFieldGet$k(channelClient, _ChannelClient_close, "f").call(channelClient);
7620
7617
  }
7621
7618
  }
7622
7619
  }
@@ -7631,12 +7628,12 @@ class ChannelClient extends ChannelBase {
7631
7628
  this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
7632
7629
  _ChannelClient_close.set(this, () => {
7633
7630
  channelClientsByEndpointId.delete(this.endpointId);
7634
- __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").close();
7631
+ __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").close();
7635
7632
  });
7636
- __classPrivateFieldSet$h(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7633
+ __classPrivateFieldSet$j(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7637
7634
  this.disconnectListener = () => undefined;
7638
7635
  this.endpointId = routingInfo.endpointId;
7639
- __classPrivateFieldSet$h(this, _ChannelClient_strategy, strategy, "f");
7636
+ __classPrivateFieldSet$j(this, _ChannelClient_strategy, strategy, "f");
7640
7637
  channelClientsByEndpointId.set(this.endpointId, this);
7641
7638
  strategy.receive(this.processAction);
7642
7639
  }
@@ -7644,7 +7641,7 @@ class ChannelClient extends ChannelBase {
7644
7641
  * a read-only provider identity
7645
7642
  */
7646
7643
  get providerIdentity() {
7647
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7644
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7648
7645
  return protectedObj.providerIdentity;
7649
7646
  }
7650
7647
  /**
@@ -7673,9 +7670,9 @@ class ChannelClient extends ChannelBase {
7673
7670
  * ```
7674
7671
  */
7675
7672
  async dispatch(action, payload) {
7676
- if (__classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7673
+ if (__classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7677
7674
  const callSites = RuntimeError.getCallSite();
7678
- return __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7675
+ return __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7679
7676
  throw new ChannelError$1(e, action, payload, callSites);
7680
7677
  });
7681
7678
  }
@@ -7727,10 +7724,10 @@ class ChannelClient extends ChannelBase {
7727
7724
  */
7728
7725
  async disconnect() {
7729
7726
  await this.sendDisconnectAction();
7730
- __classPrivateFieldGet$i(this, _ChannelClient_close, "f").call(this);
7727
+ __classPrivateFieldGet$k(this, _ChannelClient_close, "f").call(this);
7731
7728
  }
7732
7729
  async sendDisconnectAction() {
7733
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7730
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7734
7731
  await protectedObj.close();
7735
7732
  }
7736
7733
  /**
@@ -7753,13 +7750,13 @@ function exhaustiveCheck(value, allowed) {
7753
7750
  throw new Error(`Unsupported value: ${value}${allowed ? `\n Supported values are: ${allowed.join('')}` : ''}`);
7754
7751
  }
7755
7752
 
7756
- var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7753
+ var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7757
7754
  if (kind === "m") throw new TypeError("Private method is not writable");
7758
7755
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7759
7756
  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");
7760
7757
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7761
7758
  };
7762
- var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7759
+ var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7763
7760
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7764
7761
  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");
7765
7762
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -7782,7 +7779,7 @@ class ClassicStrategy {
7782
7779
  // connection problems occur
7783
7780
  _ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
7784
7781
  this.send = async (endpointId, action, payload) => {
7785
- const to = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7782
+ const to = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7786
7783
  if (!to) {
7787
7784
  throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
7788
7785
  }
@@ -7794,13 +7791,13 @@ class ClassicStrategy {
7794
7791
  }
7795
7792
  delete cleanId.isLocalEndpointId;
7796
7793
  // grab the promise before awaiting it to save in our pending messages map
7797
- const p = __classPrivateFieldGet$h(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7794
+ const p = __classPrivateFieldGet$j(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7798
7795
  ...cleanId,
7799
7796
  providerIdentity: this.providerIdentity,
7800
7797
  action,
7801
7798
  payload
7802
7799
  });
7803
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7800
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7804
7801
  const raw = await p
7805
7802
  .catch((error) => {
7806
7803
  if ('cause' in error) {
@@ -7810,16 +7807,16 @@ class ClassicStrategy {
7810
7807
  })
7811
7808
  .finally(() => {
7812
7809
  // clean up the pending promise
7813
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7810
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7814
7811
  });
7815
7812
  return raw.payload.data.result;
7816
7813
  };
7817
7814
  this.close = async () => {
7818
7815
  this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
7819
- [...__classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7820
- __classPrivateFieldSet$g(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7816
+ [...__classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7817
+ __classPrivateFieldSet$i(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7821
7818
  };
7822
- __classPrivateFieldSet$g(this, _ClassicStrategy_wire, wire, "f");
7819
+ __classPrivateFieldSet$i(this, _ClassicStrategy_wire, wire, "f");
7823
7820
  }
7824
7821
  onEndpointDisconnect(endpointId, listener) {
7825
7822
  // Never fires for 'classic'.
@@ -7828,20 +7825,20 @@ class ClassicStrategy {
7828
7825
  this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
7829
7826
  }
7830
7827
  async closeEndpoint(endpointId) {
7831
- const id = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7832
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7833
- const pendingSet = __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7828
+ const id = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7829
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7830
+ const pendingSet = __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7834
7831
  pendingSet?.forEach((p) => {
7835
7832
  const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
7836
7833
  p.cancel(new Error(errorMsg));
7837
7834
  });
7838
7835
  }
7839
7836
  isEndpointConnected(endpointId) {
7840
- return __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7837
+ return __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7841
7838
  }
7842
7839
  addEndpoint(endpointId, payload) {
7843
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7844
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7840
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7841
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7845
7842
  }
7846
7843
  isValidEndpointPayload(payload) {
7847
7844
  return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
@@ -7866,12 +7863,12 @@ function errorToPOJO(error) {
7866
7863
  return errorObj;
7867
7864
  }
7868
7865
 
7869
- var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7866
+ var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7870
7867
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7871
7868
  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");
7872
7869
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7873
7870
  };
7874
- var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7871
+ var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7875
7872
  if (kind === "m") throw new TypeError("Private method is not writable");
7876
7873
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7877
7874
  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");
@@ -7902,8 +7899,8 @@ class RTCEndpoint {
7902
7899
  if (this.rtc.rtcClient.connectionState !== 'connected') {
7903
7900
  this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
7904
7901
  this.close();
7905
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7906
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7902
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7903
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7907
7904
  }
7908
7905
  }
7909
7906
  };
@@ -7951,9 +7948,9 @@ class RTCEndpoint {
7951
7948
  data = new TextDecoder().decode(e.data);
7952
7949
  }
7953
7950
  const { messageId, action, payload } = JSON.parse(data);
7954
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
7951
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
7955
7952
  try {
7956
- const res = await __classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7953
+ const res = await __classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7957
7954
  this.rtc.channels.response.send(JSON.stringify({
7958
7955
  messageId,
7959
7956
  payload: res,
@@ -7987,25 +7984,25 @@ class RTCEndpoint {
7987
7984
  datachannel.onclose = (e) => {
7988
7985
  [...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.')));
7989
7986
  this.close();
7990
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7991
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7987
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7988
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7992
7989
  }
7993
7990
  };
7994
7991
  });
7995
7992
  }
7996
7993
  onDisconnect(listener) {
7997
- if (!__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7998
- __classPrivateFieldSet$f(this, _RTCEndpoint_disconnectListener, listener, "f");
7994
+ if (!__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7995
+ __classPrivateFieldSet$h(this, _RTCEndpoint_disconnectListener, listener, "f");
7999
7996
  }
8000
7997
  else {
8001
7998
  throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
8002
7999
  }
8003
8000
  }
8004
8001
  receive(listener) {
8005
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
8002
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
8006
8003
  throw new Error('You have already set a listener for this RTC Endpoint.');
8007
8004
  }
8008
- __classPrivateFieldSet$f(this, _RTCEndpoint_processAction, listener, "f");
8005
+ __classPrivateFieldSet$h(this, _RTCEndpoint_processAction, listener, "f");
8009
8006
  }
8010
8007
  get connected() {
8011
8008
  return this.rtc.rtcClient.connectionState === 'connected';
@@ -8013,12 +8010,12 @@ class RTCEndpoint {
8013
8010
  }
8014
8011
  _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
8015
8012
 
8016
- var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8013
+ var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8017
8014
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8018
8015
  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");
8019
8016
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8020
8017
  };
8021
- var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8018
+ var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8022
8019
  if (kind === "m") throw new TypeError("Private method is not writable");
8023
8020
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8024
8021
  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");
@@ -8037,11 +8034,11 @@ class EndpointStrategy {
8037
8034
  return this.getEndpointById(endpointId).send(action, payload);
8038
8035
  };
8039
8036
  this.close = async () => {
8040
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
8041
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
8042
- __classPrivateFieldSet$e(this, _EndpointStrategy_endpointMap, new Map(), "f");
8037
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
8038
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
8039
+ __classPrivateFieldSet$g(this, _EndpointStrategy_endpointMap, new Map(), "f");
8043
8040
  }
8044
- __classPrivateFieldSet$e(this, _EndpointStrategy_connected, false, "f");
8041
+ __classPrivateFieldSet$g(this, _EndpointStrategy_connected, false, "f");
8045
8042
  };
8046
8043
  this.isValidEndpointPayload = validateEndpoint;
8047
8044
  }
@@ -8049,39 +8046,39 @@ class EndpointStrategy {
8049
8046
  this.getEndpointById(endpointId).onDisconnect(listener);
8050
8047
  }
8051
8048
  receive(listener) {
8052
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
8049
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
8053
8050
  throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
8054
8051
  }
8055
- __classPrivateFieldSet$e(this, _EndpointStrategy_processAction, listener, "f");
8052
+ __classPrivateFieldSet$g(this, _EndpointStrategy_processAction, listener, "f");
8056
8053
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
8057
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")));
8054
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")));
8058
8055
  }
8059
8056
  getEndpointById(endpointId) {
8060
- const endpoint = __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
8057
+ const endpoint = __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
8061
8058
  if (!endpoint) {
8062
8059
  throw new Error(`Client with endpoint id ${endpointId} is not connected`);
8063
8060
  }
8064
8061
  return endpoint;
8065
8062
  }
8066
8063
  get connected() {
8067
- return __classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f");
8064
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f");
8068
8065
  }
8069
8066
  isEndpointConnected(endpointId) {
8070
- return __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
8067
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
8071
8068
  }
8072
8069
  addEndpoint(endpointId, payload) {
8073
- if (!__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
8070
+ if (!__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
8074
8071
  console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
8075
8072
  return;
8076
8073
  }
8077
8074
  const clientStrat = new this.EndpointType(payload);
8078
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
8079
- clientStrat.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f"));
8075
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
8076
+ clientStrat.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f"));
8080
8077
  }
8081
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
8078
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
8082
8079
  }
8083
8080
  async closeEndpoint(endpointId) {
8084
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
8081
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
8085
8082
  }
8086
8083
  }
8087
8084
  _EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
@@ -8242,12 +8239,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
8242
8239
  return meetsMinimumRuntimeVersion(runtimeVersion, minVersion);
8243
8240
  }
8244
8241
 
8245
- var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8242
+ var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8246
8243
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8247
8244
  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");
8248
8245
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8249
8246
  };
8250
- var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8247
+ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8251
8248
  if (kind === "m") throw new TypeError("Private method is not writable");
8252
8249
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8253
8250
  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");
@@ -8285,19 +8282,19 @@ class ChannelProvider extends ChannelBase {
8285
8282
  * a read-only array containing all the identities of connecting clients.
8286
8283
  */
8287
8284
  get connections() {
8288
- return [...__classPrivateFieldGet$e(this, _ChannelProvider_connections, "f")];
8285
+ return [...__classPrivateFieldGet$g(this, _ChannelProvider_connections, "f")];
8289
8286
  }
8290
8287
  static handleClientDisconnection(channel, payload) {
8291
8288
  if (payload?.endpointId) {
8292
8289
  const { uuid, name, endpointId, isLocalEndpointId } = payload;
8293
- __classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8290
+ __classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8294
8291
  }
8295
8292
  else {
8296
8293
  // this is here to support older runtimes that did not have endpointId
8297
8294
  const multipleRemoves = channel.connections.filter((identity) => {
8298
8295
  return identity.uuid === payload.uuid && identity.name === payload.name;
8299
8296
  });
8300
- multipleRemoves.forEach(__classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f"));
8297
+ multipleRemoves.forEach(__classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f"));
8301
8298
  }
8302
8299
  channel.disconnectListener(payload);
8303
8300
  }
@@ -8314,8 +8311,8 @@ class ChannelProvider extends ChannelBase {
8314
8311
  _ChannelProvider_strategy.set(this, void 0);
8315
8312
  _ChannelProvider_removeEndpoint.set(this, (identity) => {
8316
8313
  const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
8317
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8318
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, remainingConnections, "f");
8314
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8315
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, remainingConnections, "f");
8319
8316
  });
8320
8317
  // Must be bound.
8321
8318
  this.processAction = async (action, payload, senderIdentity) => {
@@ -8329,17 +8326,17 @@ class ChannelProvider extends ChannelBase {
8329
8326
  return super.processAction(action, payload, senderIdentity);
8330
8327
  };
8331
8328
  _ChannelProvider_close.set(this, () => {
8332
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").close();
8329
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8333
8330
  const remove = ChannelProvider.removalMap.get(this);
8334
8331
  if (remove) {
8335
8332
  remove();
8336
8333
  }
8337
8334
  });
8338
- __classPrivateFieldSet$d(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8335
+ __classPrivateFieldSet$f(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8339
8336
  this.connectListener = () => undefined;
8340
8337
  this.disconnectListener = () => undefined;
8341
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8342
- __classPrivateFieldSet$d(this, _ChannelProvider_strategy, strategy, "f");
8338
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8339
+ __classPrivateFieldSet$f(this, _ChannelProvider_strategy, strategy, "f");
8343
8340
  strategy.receive(this.processAction);
8344
8341
  }
8345
8342
  /**
@@ -8370,16 +8367,16 @@ class ChannelProvider extends ChannelBase {
8370
8367
  */
8371
8368
  dispatch(to, action, payload) {
8372
8369
  const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
8373
- if (endpointId && __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8370
+ if (endpointId && __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8374
8371
  const callSites = RuntimeError.getCallSite();
8375
- return __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8372
+ return __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8376
8373
  throw new ChannelError$1(e, action, payload, callSites);
8377
8374
  });
8378
8375
  }
8379
8376
  return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
8380
8377
  }
8381
8378
  async processConnection(senderId, payload) {
8382
- __classPrivateFieldGet$e(this, _ChannelProvider_connections, "f").push(senderId);
8379
+ __classPrivateFieldGet$g(this, _ChannelProvider_connections, "f").push(senderId);
8383
8380
  return this.connectListener(senderId, payload);
8384
8381
  }
8385
8382
  /**
@@ -8402,7 +8399,7 @@ class ChannelProvider extends ChannelBase {
8402
8399
  * ```
8403
8400
  */
8404
8401
  publish(action, payload) {
8405
- return this.connections.map((to) => __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8402
+ return this.connections.map((to) => __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8406
8403
  }
8407
8404
  /**
8408
8405
  * Register a listener that is called on every new client connection.
@@ -8476,11 +8473,11 @@ class ChannelProvider extends ChannelBase {
8476
8473
  * ```
8477
8474
  */
8478
8475
  async destroy() {
8479
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8476
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8480
8477
  protectedObj.providerIdentity;
8481
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8478
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8482
8479
  await protectedObj.close();
8483
- __classPrivateFieldGet$e(this, _ChannelProvider_close, "f").call(this);
8480
+ __classPrivateFieldGet$g(this, _ChannelProvider_close, "f").call(this);
8484
8481
  }
8485
8482
  /**
8486
8483
  * Returns an array with info on every Client connected to the Provider
@@ -8550,7 +8547,7 @@ class ChannelProvider extends ChannelBase {
8550
8547
  getEndpointIdForOpenFinId(clientIdentity, action) {
8551
8548
  const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
8552
8549
  if (matchingConnections.length >= 2) {
8553
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8550
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8554
8551
  const { uuid, name } = clientIdentity;
8555
8552
  const providerUuid = protectedObj?.providerIdentity.uuid;
8556
8553
  const providerName = protectedObj?.providerIdentity.name;
@@ -8744,13 +8741,13 @@ class CombinedStrategy {
8744
8741
  }
8745
8742
  }
8746
8743
 
8747
- var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8744
+ var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8748
8745
  if (kind === "m") throw new TypeError("Private method is not writable");
8749
8746
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8750
8747
  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");
8751
8748
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8752
8749
  };
8753
- var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8750
+ var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8754
8751
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8755
8752
  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");
8756
8753
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8785,8 +8782,8 @@ class ConnectionManager extends Base {
8785
8782
  };
8786
8783
  this.providerMap = new Map();
8787
8784
  this.protocolManager = new ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
8788
- __classPrivateFieldSet$c(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8789
- __classPrivateFieldSet$c(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8785
+ __classPrivateFieldSet$e(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8786
+ __classPrivateFieldSet$e(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8790
8787
  wire.registerMessageHandler(this.onmessage.bind(this));
8791
8788
  }
8792
8789
  createProvider(options, providerIdentity) {
@@ -8797,7 +8794,7 @@ class ConnectionManager extends Base {
8797
8794
  case 'rtc':
8798
8795
  return new RTCStrategy();
8799
8796
  case 'classic':
8800
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"),
8797
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"),
8801
8798
  // Providers do not have an endpointId, use channelId as endpointId in the strategy.
8802
8799
  providerIdentity.channelId, providerIdentity);
8803
8800
  default:
@@ -8833,7 +8830,7 @@ class ConnectionManager extends Base {
8833
8830
  const supportedProtocols = await Promise.all(protocols.map(async (type) => {
8834
8831
  switch (type) {
8835
8832
  case 'rtc': {
8836
- const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8833
+ const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8837
8834
  rtcPacket = { rtcClient, channels, channelsOpened };
8838
8835
  return {
8839
8836
  type: 'rtc',
@@ -8860,18 +8857,18 @@ class ConnectionManager extends Base {
8860
8857
  routingInfo.endpointId = this.wire.environment.getNextMessageId();
8861
8858
  // For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
8862
8859
  // clients that are in the same context as the newly-connected client.
8863
- __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8860
+ __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8864
8861
  }
8865
8862
  const answer = routingInfo.answer ?? {
8866
8863
  supportedProtocols: [{ type: 'classic', version: 1 }]
8867
8864
  };
8868
8865
  const createStrategyFromAnswer = async (protocol) => {
8869
8866
  if (protocol.type === 'rtc' && rtcPacket) {
8870
- await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8867
+ await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8871
8868
  return new RTCStrategy();
8872
8869
  }
8873
8870
  if (protocol.type === 'classic') {
8874
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8871
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8875
8872
  }
8876
8873
  return null;
8877
8874
  };
@@ -8939,7 +8936,7 @@ class ConnectionManager extends Base {
8939
8936
  clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
8940
8937
  const answer = await accumP;
8941
8938
  if (protocolToUse.type === 'rtc') {
8942
- const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8939
+ const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8943
8940
  answer.supportedProtocols.push({
8944
8941
  type: 'rtc',
8945
8942
  version: RTCInfo.version,
@@ -8986,13 +8983,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
8986
8983
  *
8987
8984
  * @packageDocumentation
8988
8985
  */
8989
- var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8986
+ var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8990
8987
  if (kind === "m") throw new TypeError("Private method is not writable");
8991
8988
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8992
8989
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
8993
8990
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8994
8991
  };
8995
- var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8992
+ var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8996
8993
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8997
8994
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
8998
8995
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9040,11 +9037,11 @@ class Channel extends EmitterBase {
9040
9037
  ChannelClient.handleProviderDisconnect(eventPayload);
9041
9038
  }),
9042
9039
  this.on('connected', (...args) => {
9043
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9040
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").emit('connected', ...args);
9044
9041
  })
9045
9042
  ]).catch(() => new Error('error setting up channel connection listeners'));
9046
9043
  }));
9047
- __classPrivateFieldSet$b(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
9044
+ __classPrivateFieldSet$d(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
9048
9045
  }
9049
9046
  /**
9050
9047
  *
@@ -9119,7 +9116,7 @@ class Channel extends EmitterBase {
9119
9116
  resolve(true);
9120
9117
  }
9121
9118
  };
9122
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9119
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
9123
9120
  });
9124
9121
  try {
9125
9122
  if (retryInfo.count > 0) {
@@ -9151,7 +9148,7 @@ class Channel extends EmitterBase {
9151
9148
  finally {
9152
9149
  retryInfo.count += 1;
9153
9150
  // in case of other errors, remove our listener
9154
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9151
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
9155
9152
  }
9156
9153
  } while (shouldWait); // If we're waiting we retry the above loop
9157
9154
  // Should wait was false, no channel was found.
@@ -9210,12 +9207,12 @@ class Channel extends EmitterBase {
9210
9207
  async connect(channelName, options = {}) {
9211
9208
  // Make sure we don't connect before listeners are set up
9212
9209
  // This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
9213
- await __classPrivateFieldGet$c(this, _Channel_readyToConnect, "f").getValue();
9210
+ await __classPrivateFieldGet$e(this, _Channel_readyToConnect, "f").getValue();
9214
9211
  if (!channelName || typeof channelName !== 'string') {
9215
9212
  throw new Error('Please provide a channelName string to connect to a channel.');
9216
9213
  }
9217
9214
  const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
9218
- const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientOffer(opts);
9215
+ const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientOffer(opts);
9219
9216
  let connectionUrl;
9220
9217
  if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
9221
9218
  connectionUrl = (await this.fin.me.getInfo()).url;
@@ -9227,7 +9224,7 @@ class Channel extends EmitterBase {
9227
9224
  connectionUrl
9228
9225
  };
9229
9226
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
9230
- const strategy = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9227
+ const strategy = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9231
9228
  const channel = new ChannelClient(routingInfo, () => ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
9232
9229
  // It is the client's responsibility to handle endpoint disconnection to the provider.
9233
9230
  // If the endpoint dies, the client will force a disconnection through the core.
@@ -9296,7 +9293,7 @@ class Channel extends EmitterBase {
9296
9293
  throw new Error('Please provide a channelName to create a channel');
9297
9294
  }
9298
9295
  const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
9299
- const channel = __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9296
+ const channel = __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9300
9297
  // TODO: fix typing (internal)
9301
9298
  // @ts-expect-error
9302
9299
  this.on('client-disconnected', (eventPayload) => {
@@ -10053,13 +10050,13 @@ class GlobalHotkey extends EmitterBase {
10053
10050
  }
10054
10051
  }
10055
10052
 
10056
- var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10053
+ var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10057
10054
  if (kind === "m") throw new TypeError("Private method is not writable");
10058
10055
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10059
10056
  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");
10060
10057
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10061
10058
  };
10062
- var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10059
+ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10063
10060
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10064
10061
  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");
10065
10062
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -10091,24 +10088,24 @@ class Platform extends EmitterBase {
10091
10088
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
10092
10089
  // don't expose
10093
10090
  });
10094
- if (!Platform.clientMap.has(__classPrivateFieldGet$b(this, _Platform_channelName, "f"))) {
10095
- const clientPromise = __classPrivateFieldGet$b(this, _Platform_connectToProvider, "f").call(this);
10096
- Platform.clientMap.set(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), clientPromise);
10091
+ if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
10092
+ const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
10093
+ Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
10097
10094
  }
10098
10095
  // we set it above
10099
10096
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10100
- return Platform.clientMap.get(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
10097
+ return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10101
10098
  };
10102
10099
  _Platform_connectToProvider.set(this, async () => {
10103
10100
  try {
10104
- const client = await this._channel.connect(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), { wait: false });
10101
+ const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
10105
10102
  client.onDisconnection(() => {
10106
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
10103
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10107
10104
  });
10108
10105
  return client;
10109
10106
  }
10110
10107
  catch (e) {
10111
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
10108
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
10112
10109
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
10113
10110
  }
10114
10111
  });
@@ -10121,7 +10118,7 @@ class Platform extends EmitterBase {
10121
10118
  if (errorMsg) {
10122
10119
  throw new Error(errorMsg);
10123
10120
  }
10124
- __classPrivateFieldSet$a(this, _Platform_channelName, channelName, "f");
10121
+ __classPrivateFieldSet$c(this, _Platform_channelName, channelName, "f");
10125
10122
  this._channel = this.fin.InterApplicationBus.Channel;
10126
10123
  this.identity = { uuid: identity.uuid };
10127
10124
  this.Layout = this.fin.Platform.Layout;
@@ -10977,13 +10974,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
10977
10974
  }
10978
10975
  };
10979
10976
 
10980
- var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10977
+ var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10981
10978
  if (kind === "m") throw new TypeError("Private method is not writable");
10982
10979
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10983
10980
  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");
10984
10981
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10985
10982
  };
10986
- var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10983
+ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10987
10984
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10988
10985
  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");
10989
10986
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11033,7 +11030,7 @@ class LayoutNode {
11033
11030
  * console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
11034
11031
  * ```
11035
11032
  */
11036
- this.isRoot = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").isRoot(this.entityId);
11033
+ this.isRoot = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").isRoot(this.entityId);
11037
11034
  /**
11038
11035
  * Checks if the TabStack or ColumnOrRow exists
11039
11036
  *
@@ -11053,7 +11050,7 @@ class LayoutNode {
11053
11050
  * console.log(`The entity exists: ${exists}`);
11054
11051
  * ```
11055
11052
  */
11056
- this.exists = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").exists(this.entityId);
11053
+ this.exists = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").exists(this.entityId);
11057
11054
  /**
11058
11055
  * Retrieves the parent of the TabStack or ColumnOrRow
11059
11056
  *
@@ -11074,11 +11071,11 @@ class LayoutNode {
11074
11071
  * ```
11075
11072
  */
11076
11073
  this.getParent = async () => {
11077
- const parent = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getParent(this.entityId);
11074
+ const parent = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getParent(this.entityId);
11078
11075
  if (!parent) {
11079
11076
  return undefined;
11080
11077
  }
11081
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
11078
+ return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11082
11079
  };
11083
11080
  /**
11084
11081
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -11129,8 +11126,8 @@ class LayoutNode {
11129
11126
  * @experimental
11130
11127
  */
11131
11128
  this.createAdjacentStack = async (views, options) => {
11132
- const entityId = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11133
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
11129
+ const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
11130
+ return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
11134
11131
  };
11135
11132
  /**
11136
11133
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -11158,16 +11155,16 @@ class LayoutNode {
11158
11155
  * @experimental
11159
11156
  */
11160
11157
  this.getAdjacentStacks = async (edge) => {
11161
- const adjacentStacks = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getAdjacentStacks({
11158
+ const adjacentStacks = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getAdjacentStacks({
11162
11159
  targetId: this.entityId,
11163
11160
  edge
11164
11161
  });
11165
11162
  return adjacentStacks.map((stack) => LayoutNode.getEntity({
11166
11163
  type: 'stack',
11167
11164
  entityId: stack.entityId
11168
- }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f")));
11165
+ }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
11169
11166
  };
11170
- __classPrivateFieldSet$9(this, _LayoutNode_client, client, "f");
11167
+ __classPrivateFieldSet$b(this, _LayoutNode_client, client, "f");
11171
11168
  this.entityId = entityId;
11172
11169
  }
11173
11170
  }
@@ -11240,7 +11237,7 @@ class TabStack extends LayoutNode {
11240
11237
  * ```
11241
11238
  * @experimental
11242
11239
  */
11243
- this.getViews = () => __classPrivateFieldGet$a(this, _TabStack_client, "f").getStackViews(this.entityId);
11240
+ this.getViews = () => __classPrivateFieldGet$c(this, _TabStack_client, "f").getStackViews(this.entityId);
11244
11241
  /**
11245
11242
  * Adds or creates a view in this {@link TabStack}.
11246
11243
  *
@@ -11271,7 +11268,7 @@ class TabStack extends LayoutNode {
11271
11268
  * ```
11272
11269
  * @experimental
11273
11270
  */
11274
- this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$a(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11271
+ this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$c(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11275
11272
  /**
11276
11273
  * Removes a view from this {@link TabStack}.
11277
11274
  *
@@ -11301,7 +11298,7 @@ class TabStack extends LayoutNode {
11301
11298
  * ```
11302
11299
  */
11303
11300
  this.removeView = async (view) => {
11304
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11301
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11305
11302
  };
11306
11303
  /**
11307
11304
  * Sets the active view of the {@link TabStack} without focusing it.
@@ -11325,9 +11322,9 @@ class TabStack extends LayoutNode {
11325
11322
  * @experimental
11326
11323
  */
11327
11324
  this.setActiveView = async (view) => {
11328
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11325
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11329
11326
  };
11330
- __classPrivateFieldSet$9(this, _TabStack_client, client, "f");
11327
+ __classPrivateFieldSet$b(this, _TabStack_client, client, "f");
11331
11328
  }
11332
11329
  }
11333
11330
  _TabStack_client = new WeakMap();
@@ -11365,10 +11362,10 @@ class ColumnOrRow extends LayoutNode {
11365
11362
  * ```
11366
11363
  */
11367
11364
  this.getContent = async () => {
11368
- const contentItemEntities = await __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11369
- return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f")));
11365
+ const contentItemEntities = await __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11366
+ return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f")));
11370
11367
  };
11371
- __classPrivateFieldSet$9(this, _ColumnOrRow_client, client, "f");
11368
+ __classPrivateFieldSet$b(this, _ColumnOrRow_client, client, "f");
11372
11369
  this.type = type;
11373
11370
  }
11374
11371
  }
@@ -11378,7 +11375,7 @@ const LAYOUT_CONTROLLER_ID = 'layout-entities';
11378
11375
  // TODO: eventually export this somehow
11379
11376
  const DEFAULT_LAYOUT_KEY = '__default__';
11380
11377
 
11381
- var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11378
+ var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11382
11379
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11383
11380
  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");
11384
11381
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11521,7 +11518,7 @@ class Layout extends Base {
11521
11518
  * @internal
11522
11519
  */
11523
11520
  static getClient(layout) {
11524
- return __classPrivateFieldGet$9(layout, _Layout_layoutClient, "f").getValue();
11521
+ return __classPrivateFieldGet$b(layout, _Layout_layoutClient, "f").getValue();
11525
11522
  }
11526
11523
  /**
11527
11524
  * @internal
@@ -11744,7 +11741,7 @@ class Layout extends Base {
11744
11741
  this.wire.sendAction('layout-get-root-item').catch(() => {
11745
11742
  // don't expose
11746
11743
  });
11747
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11744
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11748
11745
  const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
11749
11746
  return LayoutNode.getEntity(root, client);
11750
11747
  }
@@ -11762,7 +11759,7 @@ class Layout extends Base {
11762
11759
  this.wire.sendAction('layout-get-stack-by-view').catch(() => {
11763
11760
  // don't expose
11764
11761
  });
11765
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11762
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11766
11763
  const stack = await client.getStackByView(identity);
11767
11764
  if (!stack) {
11768
11765
  throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
@@ -11782,7 +11779,7 @@ class Layout extends Base {
11782
11779
  this.wire.sendAction('layout-add-view').catch((e) => {
11783
11780
  // don't expose
11784
11781
  });
11785
- const { identity } = await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11782
+ const { identity } = await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11786
11783
  viewOptions,
11787
11784
  location,
11788
11785
  targetView
@@ -11800,7 +11797,7 @@ class Layout extends Base {
11800
11797
  this.wire.sendAction('layout-close-view').catch((e) => {
11801
11798
  // don't expose
11802
11799
  });
11803
- await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11800
+ await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11804
11801
  }
11805
11802
  }
11806
11803
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
@@ -11813,12 +11810,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
11813
11810
  return client.dispatch(action, { target: this.identity, opts: payload });
11814
11811
  };
11815
11812
 
11816
- var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11813
+ var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11817
11814
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11818
11815
  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");
11819
11816
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11820
11817
  };
11821
- var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11818
+ var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11822
11819
  if (kind === "m") throw new TypeError("Private method is not writable");
11823
11820
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11824
11821
  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");
@@ -11877,23 +11874,23 @@ class LayoutModule extends Base {
11877
11874
  if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
11878
11875
  throw new Error('Layout.init can only be called from a Window context.');
11879
11876
  }
11880
- if (__classPrivateFieldGet$8(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11877
+ if (__classPrivateFieldGet$a(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11881
11878
  throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
11882
11879
  }
11883
11880
  if (this.wire.environment.type === 'openfin') {
11884
11881
  // preload the client
11885
11882
  await this.fin.Platform.getCurrentSync().getClient();
11886
11883
  }
11887
- __classPrivateFieldSet$8(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11884
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11888
11885
  // TODO: rename to createLayoutManager
11889
- __classPrivateFieldSet$8(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11890
- await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f"), options);
11886
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11887
+ await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f"), options);
11891
11888
  const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
11892
11889
  if (!options.layoutManagerOverride) {
11893
11890
  // CORE-1081 to be removed when we actually delete the `layoutManager` prop
11894
11891
  // in single-layout case, we return the undocumented layoutManager type
11895
11892
  const layoutIdentity = { layoutName: DEFAULT_LAYOUT_KEY, ...meIdentity };
11896
- return __classPrivateFieldGet$8(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11893
+ return __classPrivateFieldGet$a(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11897
11894
  }
11898
11895
  return this.wrapSync(meIdentity);
11899
11896
  };
@@ -11922,13 +11919,13 @@ class LayoutModule extends Base {
11922
11919
  * @returns
11923
11920
  */
11924
11921
  this.getCurrentLayoutManagerSync = () => {
11925
- return __classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11922
+ return __classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11926
11923
  };
11927
11924
  this.create = async (options) => {
11928
- return this.wire.environment.createLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11925
+ return this.wire.environment.createLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11929
11926
  };
11930
11927
  this.destroy = async (layoutIdentity) => {
11931
- return this.wire.environment.destroyLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11928
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11932
11929
  };
11933
11930
  }
11934
11931
  /**
@@ -12058,10 +12055,10 @@ class LayoutModule extends Base {
12058
12055
  }
12059
12056
  }
12060
12057
  _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
12061
- if (!__classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f")) {
12058
+ if (!__classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f")) {
12062
12059
  throw new Error(`You must call init before using the API ${method}`);
12063
12060
  }
12064
- return __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f");
12061
+ return __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f");
12065
12062
  };
12066
12063
 
12067
12064
  /**
@@ -12897,13 +12894,13 @@ class PrivateChannelProvider {
12897
12894
  }
12898
12895
  }
12899
12896
 
12900
- var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12897
+ var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12901
12898
  if (kind === "m") throw new TypeError("Private method is not writable");
12902
12899
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12903
12900
  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");
12904
12901
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12905
12902
  };
12906
- var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12903
+ var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12907
12904
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12908
12905
  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");
12909
12906
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -13083,12 +13080,12 @@ class InteropBroker extends Base {
13083
13080
  _InteropBroker_contextGroups.set(this, void 0);
13084
13081
  _InteropBroker_providerPromise.set(this, void 0);
13085
13082
  this.getProvider = () => {
13086
- return __classPrivateFieldGet$7(this, _InteropBroker_providerPromise, "f").getValue();
13083
+ return __classPrivateFieldGet$9(this, _InteropBroker_providerPromise, "f").getValue();
13087
13084
  };
13088
13085
  this.interopClients = new Map();
13089
13086
  this.contextGroupsById = new Map();
13090
- __classPrivateFieldSet$7(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13091
- __classPrivateFieldSet$7(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13087
+ __classPrivateFieldSet$9(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
13088
+ __classPrivateFieldSet$9(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
13092
13089
  if (options?.logging) {
13093
13090
  this.logging = options.logging;
13094
13091
  }
@@ -13096,7 +13093,7 @@ class InteropBroker extends Base {
13096
13093
  this.lastContextMap = new Map();
13097
13094
  this.sessionContextGroupMap = new Map();
13098
13095
  this.privateChannelProviderMap = new Map();
13099
- __classPrivateFieldSet$7(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
13096
+ __classPrivateFieldSet$9(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
13100
13097
  this.setContextGroupMap();
13101
13098
  this.setupChannelProvider();
13102
13099
  }
@@ -13379,7 +13376,7 @@ class InteropBroker extends Base {
13379
13376
  // don't expose, analytics-only call
13380
13377
  });
13381
13378
  // Create copy for immutability
13382
- return __classPrivateFieldGet$7(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13379
+ return __classPrivateFieldGet$9(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13383
13380
  return { ...contextGroup };
13384
13381
  });
13385
13382
  }
@@ -13790,7 +13787,7 @@ class InteropBroker extends Base {
13790
13787
  const { fdc3Version } = payload;
13791
13788
  return {
13792
13789
  fdc3Version,
13793
- ...__classPrivateFieldGet$7(this, _InteropBroker_fdc3Info, "f"),
13790
+ ...__classPrivateFieldGet$9(this, _InteropBroker_fdc3Info, "f"),
13794
13791
  optionalFeatures: {
13795
13792
  OriginatingAppMetadata: false,
13796
13793
  UserChannelMembershipAPIs: true
@@ -14170,13 +14167,13 @@ class InteropBroker extends Base {
14170
14167
  _InteropBroker_fdc3Info = new WeakMap(), _InteropBroker_contextGroups = new WeakMap(), _InteropBroker_providerPromise = new WeakMap();
14171
14168
  InteropBroker.checkContextIntegrity = checkContextIntegrity;
14172
14169
 
14173
- var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14170
+ var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14174
14171
  if (kind === "m") throw new TypeError("Private method is not writable");
14175
14172
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14176
14173
  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");
14177
14174
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14178
14175
  };
14179
- var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14176
+ var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14180
14177
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14181
14178
  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");
14182
14179
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14187,7 +14184,7 @@ class SessionContextGroupClient extends Base {
14187
14184
  super(wire);
14188
14185
  _SessionContextGroupClient_clientPromise.set(this, void 0);
14189
14186
  this.id = id;
14190
- __classPrivateFieldSet$6(this, _SessionContextGroupClient_clientPromise, client, "f");
14187
+ __classPrivateFieldSet$8(this, _SessionContextGroupClient_clientPromise, client, "f");
14191
14188
  }
14192
14189
  /**
14193
14190
  * Sets a context for the session context group.
@@ -14199,7 +14196,7 @@ class SessionContextGroupClient extends Base {
14199
14196
  this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
14200
14197
  // don't expose, analytics-only call
14201
14198
  });
14202
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14199
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14203
14200
  return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
14204
14201
  sessionContextGroupId: this.id,
14205
14202
  context
@@ -14209,7 +14206,7 @@ class SessionContextGroupClient extends Base {
14209
14206
  this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
14210
14207
  // don't expose, analytics-only call
14211
14208
  });
14212
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14209
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14213
14210
  return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
14214
14211
  sessionContextGroupId: this.id,
14215
14212
  type
@@ -14222,7 +14219,7 @@ class SessionContextGroupClient extends Base {
14222
14219
  if (typeof contextHandler !== 'function') {
14223
14220
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14224
14221
  }
14225
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14222
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14226
14223
  let handlerId;
14227
14224
  if (contextType) {
14228
14225
  handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${generateId()}`;
@@ -14235,7 +14232,7 @@ class SessionContextGroupClient extends Base {
14235
14232
  return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
14236
14233
  }
14237
14234
  async createUnsubscribeCb(handlerId) {
14238
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14235
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14239
14236
  return async () => {
14240
14237
  client.remove(handlerId);
14241
14238
  await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
@@ -14252,13 +14249,13 @@ class SessionContextGroupClient extends Base {
14252
14249
  }
14253
14250
  _SessionContextGroupClient_clientPromise = new WeakMap();
14254
14251
 
14255
- var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14252
+ var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14256
14253
  if (kind === "m") throw new TypeError("Private method is not writable");
14257
14254
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14258
14255
  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");
14259
14256
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14260
14257
  };
14261
- var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14258
+ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14262
14259
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14263
14260
  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");
14264
14261
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14276,11 +14273,11 @@ class ChannelEvents {
14276
14273
  _ChannelEvents_channelClient.set(this, void 0);
14277
14274
  _ChannelEvents_isChannelReady.set(this, false);
14278
14275
  _ChannelEvents_getActions.set(this, async () => {
14279
- const channelClient = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14280
- let actions = __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14276
+ const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14277
+ let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14281
14278
  if (!actions) {
14282
14279
  actions = {};
14283
- __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14280
+ __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14284
14281
  }
14285
14282
  return actions;
14286
14283
  });
@@ -14297,7 +14294,7 @@ class ChannelEvents {
14297
14294
  if (index >= 0) {
14298
14295
  callbacks.splice(index, 1);
14299
14296
  if (callbacks.length === 0) {
14300
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14297
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14301
14298
  client.remove(actionId);
14302
14299
  }
14303
14300
  }
@@ -14306,7 +14303,7 @@ class ChannelEvents {
14306
14303
  // Use lazy eval to only setup and register the channel on first attempt.
14307
14304
  if (!registrationPromise) {
14308
14305
  registrationPromise = (async () => {
14309
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14306
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14310
14307
  await client.register(actionId, onChannelAction);
14311
14308
  })();
14312
14309
  }
@@ -14315,14 +14312,14 @@ class ChannelEvents {
14315
14312
  };
14316
14313
  });
14317
14314
  _ChannelEvents_getRegistration.set(this, async (actionId) => {
14318
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14315
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14319
14316
  return actions[actionId];
14320
14317
  });
14321
14318
  _ChannelEvents_getOrCreateRegistration.set(this, async (actionId) => {
14322
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14323
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14319
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14320
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14324
14321
  if (!registration) {
14325
- actions[actionId] = __classPrivateFieldGet$5(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14322
+ actions[actionId] = __classPrivateFieldGet$7(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14326
14323
  }
14327
14324
  return actions[actionId];
14328
14325
  });
@@ -14337,7 +14334,7 @@ class ChannelEvents {
14337
14334
  * @param callback Callback to be called whenever the action is dispatched.
14338
14335
  */
14339
14336
  this.addListener = async (action, callback) => {
14340
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14337
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14341
14338
  event.callbacks.push(callback);
14342
14339
  // This ensures we only resolve the subscription once the action is registered
14343
14340
  await event.waitForRegistration();
@@ -14351,19 +14348,19 @@ class ChannelEvents {
14351
14348
  * @param callback Callback to remove.
14352
14349
  */
14353
14350
  this.removeListener = async (action, callback) => {
14354
- if (!__classPrivateFieldGet$5(this, _ChannelEvents_isChannelReady, "f")) {
14351
+ if (!__classPrivateFieldGet$7(this, _ChannelEvents_isChannelReady, "f")) {
14355
14352
  return;
14356
14353
  }
14357
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, action);
14354
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, action);
14358
14355
  if (registration) {
14359
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14356
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14360
14357
  await event.dispose(callback);
14361
14358
  }
14362
14359
  };
14363
- __classPrivateFieldSet$5(this, _ChannelEvents_channelClient, channelClient, "f");
14360
+ __classPrivateFieldSet$7(this, _ChannelEvents_channelClient, channelClient, "f");
14364
14361
  Promise.resolve(channelClient)
14365
14362
  .then(() => {
14366
- __classPrivateFieldSet$5(this, _ChannelEvents_isChannelReady, true, "f");
14363
+ __classPrivateFieldSet$7(this, _ChannelEvents_isChannelReady, true, "f");
14367
14364
  })
14368
14365
  .catch(() => {
14369
14366
  // eslint-disable-next-line
@@ -14380,13 +14377,13 @@ _a = ChannelEvents, _ChannelEvents_channelClient = new WeakMap(), _ChannelEvents
14380
14377
  */
14381
14378
  _ChannelEvents_actionsByClient = { value: new WeakMap() };
14382
14379
 
14383
- var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14380
+ var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14384
14381
  if (kind === "m") throw new TypeError("Private method is not writable");
14385
14382
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14386
14383
  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");
14387
14384
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14388
14385
  };
14389
- var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14386
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14390
14387
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14391
14388
  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");
14392
14389
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14462,7 +14459,7 @@ class InteropClient extends Base {
14462
14459
  */
14463
14460
  this.addListener = async (type, listener) => {
14464
14461
  try {
14465
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14462
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14466
14463
  }
14467
14464
  catch (error) {
14468
14465
  throw new Error(`An unexpected error occurred when adding a listener to the event ${type}. \n${error.stack}.`);
@@ -14476,16 +14473,16 @@ class InteropClient extends Base {
14476
14473
  */
14477
14474
  this.removeListener = async (type, listener) => {
14478
14475
  try {
14479
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14476
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14480
14477
  }
14481
14478
  catch (error) {
14482
14479
  throw new Error(`An unexpected error occurred when removing a listener for the event ${type}. \n${error.stack}.`);
14483
14480
  }
14484
14481
  };
14485
- __classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
14486
- __classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
14487
- __classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14488
- __classPrivateFieldSet$4(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14482
+ __classPrivateFieldSet$6(this, _InteropClient_sessionContextGroups, new Map(), "f");
14483
+ __classPrivateFieldSet$6(this, _InteropClient_clientPromise, clientPromise, "f");
14484
+ __classPrivateFieldSet$6(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14485
+ __classPrivateFieldSet$6(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14489
14486
  }
14490
14487
  /**
14491
14488
  * Sets a context for the context group of the current entity.
@@ -14510,7 +14507,7 @@ class InteropClient extends Base {
14510
14507
  this.wire.sendAction('interop-client-set-context').catch((e) => {
14511
14508
  // don't expose, analytics-only call
14512
14509
  });
14513
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14510
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14514
14511
  return client.dispatch('setContext', { context });
14515
14512
  }
14516
14513
  /**
@@ -14577,7 +14574,7 @@ class InteropClient extends Base {
14577
14574
  if (typeof handler !== 'function') {
14578
14575
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14579
14576
  }
14580
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14577
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14581
14578
  let handlerId;
14582
14579
  if (contextType) {
14583
14580
  handlerId = `invokeContextHandler-${contextType}-${generateId()}`;
@@ -14617,7 +14614,7 @@ class InteropClient extends Base {
14617
14614
  this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
14618
14615
  // don't expose, analytics-only call
14619
14616
  });
14620
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14617
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14621
14618
  return client.dispatch('getContextGroups');
14622
14619
  }
14623
14620
  /**
@@ -14648,7 +14645,7 @@ class InteropClient extends Base {
14648
14645
  this.wire.sendAction('interop-client-join-context-group').catch((e) => {
14649
14646
  // don't expose, analytics-only call
14650
14647
  });
14651
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14648
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14652
14649
  if (!contextGroupId) {
14653
14650
  throw new Error('No contextGroupId specified for joinContextGroup.');
14654
14651
  }
@@ -14677,7 +14674,7 @@ class InteropClient extends Base {
14677
14674
  this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
14678
14675
  // don't expose, analytics-only call
14679
14676
  });
14680
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14677
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14681
14678
  return client.dispatch('removeFromContextGroup', { target });
14682
14679
  }
14683
14680
  /**
@@ -14700,7 +14697,7 @@ class InteropClient extends Base {
14700
14697
  this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
14701
14698
  // don't expose, analytics-only call
14702
14699
  });
14703
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14700
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14704
14701
  if (!contextGroupId) {
14705
14702
  throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
14706
14703
  }
@@ -14725,7 +14722,7 @@ class InteropClient extends Base {
14725
14722
  this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
14726
14723
  // don't expose, analytics-only call
14727
14724
  });
14728
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14725
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14729
14726
  if (!contextGroupId) {
14730
14727
  throw new Error('No contextGroupId specified for getInfoForContextGroup.');
14731
14728
  }
@@ -14753,7 +14750,7 @@ class InteropClient extends Base {
14753
14750
  this.wire.sendAction('interop-client-fire-intent').catch((e) => {
14754
14751
  // don't expose, this is only for api analytics purposes
14755
14752
  });
14756
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14753
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14757
14754
  return client.dispatch('fireIntent', intent);
14758
14755
  }
14759
14756
  /**
@@ -14780,7 +14777,7 @@ class InteropClient extends Base {
14780
14777
  this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
14781
14778
  // don't expose, this is only for api analytics purposes
14782
14779
  });
14783
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14780
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14784
14781
  const handlerId = `intent-handler-${intentName}`;
14785
14782
  const wrappedHandler = wrapIntentHandler(handler, handlerId);
14786
14783
  try {
@@ -14818,7 +14815,7 @@ class InteropClient extends Base {
14818
14815
  this.wire.sendAction('interop-client-get-current-context').catch((e) => {
14819
14816
  // don't expose, analytics-only call
14820
14817
  });
14821
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14818
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14822
14819
  return client.dispatch('getCurrentContext', { contextType });
14823
14820
  }
14824
14821
  /**
@@ -14838,7 +14835,7 @@ class InteropClient extends Base {
14838
14835
  this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
14839
14836
  // don't expose, analytics-only call
14840
14837
  });
14841
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14838
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14842
14839
  return client.dispatch('getInfoForIntent', options);
14843
14840
  }
14844
14841
  /**
@@ -14869,7 +14866,7 @@ class InteropClient extends Base {
14869
14866
  this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
14870
14867
  // don't expose, analytics-only call
14871
14868
  });
14872
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14869
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14873
14870
  return client.dispatch('getInfoForIntentsByContext', context);
14874
14871
  }
14875
14872
  /**
@@ -14901,7 +14898,7 @@ class InteropClient extends Base {
14901
14898
  this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
14902
14899
  // don't expose, analytics-only call
14903
14900
  });
14904
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14901
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14905
14902
  return client.dispatch('fireIntentForContext', context);
14906
14903
  }
14907
14904
  /**
@@ -14938,19 +14935,19 @@ class InteropClient extends Base {
14938
14935
  */
14939
14936
  async joinSessionContextGroup(sessionContextGroupId) {
14940
14937
  try {
14941
- const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14938
+ const currentSessionContextGroup = __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14942
14939
  if (currentSessionContextGroup) {
14943
14940
  return currentSessionContextGroup.getUserInstance();
14944
14941
  }
14945
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14942
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14946
14943
  const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
14947
14944
  sessionContextGroupId
14948
14945
  });
14949
14946
  if (hasConflict) {
14950
14947
  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.`);
14951
14948
  }
14952
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14953
- __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14949
+ const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14950
+ __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14954
14951
  return newSessionContextGroup.getUserInstance();
14955
14952
  }
14956
14953
  catch (error) {
@@ -14977,14 +14974,14 @@ class InteropClient extends Base {
14977
14974
  this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
14978
14975
  // don't expose, analytics-only call
14979
14976
  });
14980
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14977
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14981
14978
  return client.onDisconnection((event) => {
14982
14979
  const { uuid } = event;
14983
14980
  listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
14984
14981
  });
14985
14982
  }
14986
14983
  getFDC3Sync(version) {
14987
- return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14984
+ return __classPrivateFieldGet$6(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14988
14985
  }
14989
14986
  async getFDC3(version) {
14990
14987
  return this.getFDC3Sync(version);
@@ -14995,7 +14992,7 @@ class InteropClient extends Base {
14995
14992
  * Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
14996
14993
  */
14997
14994
  static async ferryFdc3Call(interopClient, action, payload) {
14998
- const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
14995
+ const client = await __classPrivateFieldGet$6(interopClient, _InteropClient_clientPromise, "f");
14999
14996
  return client.dispatch(action, payload || null);
15000
14997
  }
15001
14998
  }
@@ -15357,12 +15354,12 @@ const getIntentResolution = async (interopModule, context, app, intent) => {
15357
15354
  return { ...intentResolutionInfoFromBroker, getResult };
15358
15355
  };
15359
15356
 
15360
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15357
+ var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15361
15358
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15362
15359
  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");
15363
15360
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15364
15361
  };
15365
- var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15362
+ var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15366
15363
  if (kind === "m") throw new TypeError("Private method is not writable");
15367
15364
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15368
15365
  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");
@@ -15371,7 +15368,7 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
15371
15368
  var _FDC3ModuleBase_producer;
15372
15369
  class FDC3ModuleBase {
15373
15370
  get client() {
15374
- return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
15371
+ return __classPrivateFieldGet$5(this, _FDC3ModuleBase_producer, "f").call(this);
15375
15372
  }
15376
15373
  get fin() {
15377
15374
  return this.wire.getFin();
@@ -15380,7 +15377,7 @@ class FDC3ModuleBase {
15380
15377
  constructor(producer, wire) {
15381
15378
  this.wire = wire;
15382
15379
  _FDC3ModuleBase_producer.set(this, void 0);
15383
- __classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
15380
+ __classPrivateFieldSet$5(this, _FDC3ModuleBase_producer, producer, "f");
15384
15381
  }
15385
15382
  /**
15386
15383
  * Broadcasts a context for the channel of the current entity.
@@ -16180,13 +16177,13 @@ class InteropModule extends Base {
16180
16177
  const channelPrefix = 'snapshot-source-provider-';
16181
16178
  const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
16182
16179
 
16183
- var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16180
+ var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16184
16181
  if (kind === "m") throw new TypeError("Private method is not writable");
16185
16182
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16186
16183
  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");
16187
16184
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16188
16185
  };
16189
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16186
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16190
16187
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16191
16188
  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");
16192
16189
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16213,26 +16210,26 @@ class SnapshotSource extends Base {
16213
16210
  return connectionMap.get(this.identity.uuid);
16214
16211
  });
16215
16212
  _SnapshotSource_getClient.set(this, () => {
16216
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16217
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
16213
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16214
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$4(this, _SnapshotSource_startConnection, "f").call(this);
16218
16215
  }
16219
- return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16216
+ return __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16220
16217
  });
16221
16218
  _SnapshotSource_startConnection.set(this, async () => {
16222
16219
  const channelName = getSnapshotSourceChannelName(this.identity);
16223
16220
  try {
16224
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16225
- await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16221
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16222
+ await __classPrivateFieldGet$4(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16226
16223
  }
16227
16224
  const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
16228
16225
  client.onDisconnection(() => {
16229
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16230
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16226
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16227
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16231
16228
  });
16232
16229
  return client;
16233
16230
  }
16234
16231
  catch (e) {
16235
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16232
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16236
16233
  throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
16237
16234
  }
16238
16235
  });
@@ -16244,7 +16241,7 @@ class SnapshotSource extends Base {
16244
16241
  resolve = y;
16245
16242
  reject = n;
16246
16243
  });
16247
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16244
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16248
16245
  const listener = async (e) => {
16249
16246
  try {
16250
16247
  if (e.channelName === channelName) {
@@ -16258,10 +16255,10 @@ class SnapshotSource extends Base {
16258
16255
  };
16259
16256
  await this.fin.InterApplicationBus.Channel.on('connected', listener);
16260
16257
  });
16261
- __classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
16258
+ __classPrivateFieldSet$4(this, _SnapshotSource_identity, id, "f");
16262
16259
  }
16263
16260
  get identity() {
16264
- return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
16261
+ return __classPrivateFieldGet$4(this, _SnapshotSource_identity, "f");
16265
16262
  }
16266
16263
  /**
16267
16264
  * Method to determine if the SnapshotSource has been initialized.
@@ -16295,11 +16292,11 @@ class SnapshotSource extends Base {
16295
16292
  // eslint-disable-next-line no-async-promise-executor
16296
16293
  try {
16297
16294
  // 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?
16298
- await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16295
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16299
16296
  }
16300
16297
  catch (e) {
16301
16298
  // it was not running.
16302
- await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16299
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16303
16300
  }
16304
16301
  }
16305
16302
  /**
@@ -16308,7 +16305,7 @@ class SnapshotSource extends Base {
16308
16305
  */
16309
16306
  async getSnapshot() {
16310
16307
  this.wire.recordAnalytic('snapshot-source-get-snapshot');
16311
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16308
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16312
16309
  const response = (await client.dispatch('get-snapshot'));
16313
16310
  return (await response).snapshot;
16314
16311
  }
@@ -16318,7 +16315,7 @@ class SnapshotSource extends Base {
16318
16315
  */
16319
16316
  async applySnapshot(snapshot) {
16320
16317
  this.wire.recordAnalytic('snapshot-source-apply-snapshot');
16321
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16318
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16322
16319
  return client.dispatch('apply-snapshot', { snapshot });
16323
16320
  }
16324
16321
  }
@@ -16395,13 +16392,13 @@ class SnapshotSourceModule extends Base {
16395
16392
  }
16396
16393
  }
16397
16394
 
16398
- var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16395
+ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16399
16396
  if (kind === "m") throw new TypeError("Private method is not writable");
16400
16397
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16401
16398
  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");
16402
16399
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16403
16400
  };
16404
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16401
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16405
16402
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16406
16403
  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");
16407
16404
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16430,11 +16427,11 @@ class NotificationManagerInstance {
16430
16427
  _NotificationManagerInstance_handler.set(this, void 0);
16431
16428
  _NotificationManagerInstance_id.set(this, void 0);
16432
16429
  _NotificationManagerInstance_isReceivingNotifications.set(this, new Lazy(async () => {
16433
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16434
- if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
16430
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16431
+ if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f")) {
16435
16432
  const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
16436
16433
  try {
16437
- __classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16434
+ __classPrivateFieldGet$3(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16438
16435
  properties,
16439
16436
  images: {
16440
16437
  image,
@@ -16472,8 +16469,8 @@ class NotificationManagerInstance {
16472
16469
  * ```
16473
16470
  */
16474
16471
  this.setNotificationHandler = async (handler) => {
16475
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16476
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
16472
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16473
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_handler, handler, "f");
16477
16474
  };
16478
16475
  /**
16479
16476
  * Destroys the current NotificationManagerInstance.
@@ -16484,7 +16481,7 @@ class NotificationManagerInstance {
16484
16481
  * ```
16485
16482
  */
16486
16483
  this.destroy = async () => {
16487
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
16484
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f") });
16488
16485
  };
16489
16486
  /**
16490
16487
  * Dispatches a Notification lifecycle event ('close' | 'click' | 'show').
@@ -16510,13 +16507,13 @@ class NotificationManagerInstance {
16510
16507
  */
16511
16508
  this.dispatch = async (event) => {
16512
16509
  const { notificationId, type } = event;
16513
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16510
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16514
16511
  notificationId,
16515
16512
  type
16516
16513
  });
16517
16514
  };
16518
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
16519
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
16515
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_wire, wire, "f");
16516
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_id, id, "f");
16520
16517
  }
16521
16518
  }
16522
16519
  _NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
@@ -16550,6 +16547,133 @@ class NotificationManagerModule extends Base {
16550
16547
  }
16551
16548
  }
16552
16549
 
16550
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16551
+ if (kind === "m") throw new TypeError("Private method is not writable");
16552
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16553
+ 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");
16554
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16555
+ };
16556
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16557
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16558
+ 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");
16559
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16560
+ };
16561
+ var _Writable_value, _Writable_listeners, _Writable_readonlyWrapper;
16562
+ /**
16563
+ * Internal, a mutable implementation of the observable pattern.
16564
+ * It strictly controls its internal state and provides a secure
16565
+ * read-only wrapper for public consumption.
16566
+ */
16567
+ class Writable {
16568
+ constructor(initialValue) {
16569
+ _Writable_value.set(this, void 0);
16570
+ _Writable_listeners.set(this, new Set());
16571
+ _Writable_readonlyWrapper.set(this, null);
16572
+ this.get = () => {
16573
+ return __classPrivateFieldGet$2(this, _Writable_value, "f");
16574
+ };
16575
+ this.set = (newValue) => {
16576
+ if (__classPrivateFieldGet$2(this, _Writable_value, "f") !== newValue) {
16577
+ __classPrivateFieldSet$2(this, _Writable_value, newValue, "f");
16578
+ // Snapshot listeners before invoking so subscribe/unsubscribe calls
16579
+ // made by a listener affect future emits, not the in-flight one.
16580
+ for (const listener of [...__classPrivateFieldGet$2(this, _Writable_listeners, "f")]) {
16581
+ try {
16582
+ listener();
16583
+ }
16584
+ catch (err) {
16585
+ // A throwing listener must not block later listeners; rethrow async
16586
+ // so the error surfaces via the host's unhandled-error reporter.
16587
+ setTimeout(() => {
16588
+ throw err;
16589
+ }, 0);
16590
+ }
16591
+ }
16592
+ }
16593
+ };
16594
+ this.subscribe = (listener) => {
16595
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").add(listener);
16596
+ return () => {
16597
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").delete(listener);
16598
+ };
16599
+ };
16600
+ __classPrivateFieldSet$2(this, _Writable_value, initialValue, "f");
16601
+ }
16602
+ get readonly() {
16603
+ if (!__classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f")) {
16604
+ __classPrivateFieldSet$2(this, _Writable_readonlyWrapper, {
16605
+ get: this.get,
16606
+ subscribe: this.subscribe
16607
+ }, "f");
16608
+ }
16609
+ return __classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f");
16610
+ }
16611
+ }
16612
+ _Writable_value = new WeakMap(), _Writable_listeners = new WeakMap(), _Writable_readonlyWrapper = new WeakMap();
16613
+
16614
+ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16615
+ if (kind === "m") throw new TypeError("Private method is not writable");
16616
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16617
+ 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");
16618
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16619
+ };
16620
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16621
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16622
+ 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");
16623
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16624
+ };
16625
+ var _ChromeBrowserActionsImpl_wire, _ChromeBrowserActionsImpl_state;
16626
+ class ChromeBrowserActionsImpl {
16627
+ constructor(wire) {
16628
+ _ChromeBrowserActionsImpl_wire.set(this, void 0);
16629
+ _ChromeBrowserActionsImpl_state.set(this, new Writable([]));
16630
+ __classPrivateFieldSet$1(this, _ChromeBrowserActionsImpl_wire, wire, "f");
16631
+ }
16632
+ get state() {
16633
+ return __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_state, "f").readonly;
16634
+ }
16635
+ /**
16636
+ * @internal Wires up the runtime push-update handler. Called once at construction
16637
+ * for window contexts; views never receive these updates.
16638
+ */
16639
+ static activate(instance) {
16640
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_wire, "f").registerMessageHandler((msg) => {
16641
+ if (msg?.action === 'chrome-browser-actions-update') {
16642
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_state, "f").set(msg?.payload?.actions ?? []);
16643
+ return true;
16644
+ }
16645
+ return false;
16646
+ });
16647
+ }
16648
+ async getExtensionActions() {
16649
+ const ack = await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-get-extension-actions', {});
16650
+ return ack.payload.data.actions;
16651
+ }
16652
+ async invokeExtensionAction(options) {
16653
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-invoke-extension-action', options);
16654
+ }
16655
+ async hideActiveExtensionPopup() {
16656
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-hide-active-extension-popup', {});
16657
+ }
16658
+ }
16659
+ _ChromeBrowserActionsImpl_wire = new WeakMap(), _ChromeBrowserActionsImpl_state = new WeakMap();
16660
+
16661
+ /**
16662
+ * Client-side handle for the chrome-browser feature on the current window.
16663
+ *
16664
+ * The window must have been created with `chromeBrowser: true` for these APIs to do
16665
+ * anything meaningful — there is no separate `init()` step. From a view or a non
16666
+ * chrome-browser window, calls into `Actions` will resolve to empty results.
16667
+ */
16668
+ class ChromeBrowserModule {
16669
+ constructor(wire, isWindow) {
16670
+ this.Actions = new ChromeBrowserActionsImpl(wire);
16671
+ if (isWindow) {
16672
+ ChromeBrowserActionsImpl.activate(this.Actions);
16673
+ }
16674
+ }
16675
+ }
16676
+
16553
16677
  /**
16554
16678
  * @internal
16555
16679
  */
@@ -16573,6 +16697,7 @@ class Fin extends events.EventEmitter {
16573
16697
  this.Interop = new InteropModule(wire);
16574
16698
  this.SnapshotSource = new SnapshotSourceModule(wire);
16575
16699
  this.NotificationManager = new NotificationManagerModule(wire);
16700
+ this.ChromeBrowser = new ChromeBrowserModule(wire, wire.me.entityType === 'window');
16576
16701
  wire.registerFin(this);
16577
16702
  this.me = getMe(wire);
16578
16703
  // Handle disconnect events