@openfin/node-adapter 45.100.70 → 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.
Files changed (2) hide show
  1. package/out/node-adapter.js +381 -247
  2. package/package.json +2 -2
@@ -35,13 +35,13 @@ var net__namespace = /*#__PURE__*/_interopNamespaceDefault(net);
35
35
  var os__namespace = /*#__PURE__*/_interopNamespaceDefault(os);
36
36
  var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
37
37
 
38
- var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
38
+ var __classPrivateFieldSet$k = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
39
39
  if (kind === "m") throw new TypeError("Private method is not writable");
40
40
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
41
41
  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");
42
42
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
43
43
  };
44
- var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
44
+ var __classPrivateFieldGet$l = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
45
45
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
46
46
  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");
47
47
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -122,9 +122,9 @@ class EmitterBase extends Base {
122
122
  this.emit = (eventType, payload, ...args) => {
123
123
  return this.hasEmitter() ? this.getOrCreateEmitter().emit(eventType, payload, ...args) : false;
124
124
  };
125
- this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
125
+ this.hasEmitter = () => this.wire.eventAggregator.has(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
126
126
  this.getOrCreateEmitter = () => {
127
- return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
127
+ return this.wire.eventAggregator.getOrCreate(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
128
128
  };
129
129
  this.listeners = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listeners(type) : [];
130
130
  this.listenerCount = (type) => this.hasEmitter() ? this.getOrCreateEmitter().listenerCount(type) : 0;
@@ -162,8 +162,8 @@ class EmitterBase extends Base {
162
162
  // This will only be reached if unsubscribe from event that does not exist but do not want to error here
163
163
  return Promise.resolve();
164
164
  };
165
- __classPrivateFieldSet$i(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
166
- __classPrivateFieldSet$i(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
165
+ __classPrivateFieldSet$k(this, _EmitterBase_emitterAccessor, [topic, ...additionalAccessors], "f");
166
+ __classPrivateFieldSet$k(this, _EmitterBase_deregisterOnceListeners, new WeakMap(), "f");
167
167
  }
168
168
  /**
169
169
  * Adds a listener to the end of the listeners array for the specified event.
@@ -191,7 +191,7 @@ class EmitterBase extends Base {
191
191
  */
192
192
  async once(eventType, listener, options) {
193
193
  const deregister = () => this.deregisterEventListener(eventType);
194
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
194
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
195
195
  await this.registerEventListener(eventType, options, (emitter) => {
196
196
  emitter.once(eventType, deregister);
197
197
  emitter.once(eventType, listener);
@@ -222,7 +222,7 @@ class EmitterBase extends Base {
222
222
  */
223
223
  async prependOnceListener(eventType, listener, options) {
224
224
  const deregister = () => this.deregisterEventListener(eventType);
225
- __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
225
+ __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").set(listener, deregister);
226
226
  await this.registerEventListener(eventType, options, (emitter) => {
227
227
  emitter.prependOnceListener(eventType, listener);
228
228
  emitter.once(eventType, deregister);
@@ -241,7 +241,7 @@ class EmitterBase extends Base {
241
241
  const emitter = await this.deregisterEventListener(eventType, options);
242
242
  if (emitter) {
243
243
  emitter.removeListener(eventType, listener);
244
- const deregister = __classPrivateFieldGet$j(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
244
+ const deregister = __classPrivateFieldGet$l(this, _EmitterBase_deregisterOnceListeners, "f").get(listener);
245
245
  if (deregister) {
246
246
  emitter.removeListener(eventType, deregister);
247
247
  }
@@ -287,7 +287,7 @@ class EmitterBase extends Base {
287
287
  deleteEmitterIfNothingRegistered(emitter) {
288
288
  // TODO: maybe emitterMap should clean up itself..
289
289
  if (emitter.eventNames().length === 0) {
290
- this.wire.eventAggregator.delete(__classPrivateFieldGet$j(this, _EmitterBase_emitterAccessor, "f"));
290
+ this.wire.eventAggregator.delete(__classPrivateFieldGet$l(this, _EmitterBase_emitterAccessor, "f"));
291
291
  }
292
292
  }
293
293
  }
@@ -4999,13 +4999,15 @@ class System extends EmitterBase {
4999
4999
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
5000
5000
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
5001
5001
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
5002
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
5002
5003
  * @example
5003
5004
  * ```js
5004
5005
  * const clearCacheOptions = {
5005
5006
  * appcache: true,
5006
5007
  * cache: true,
5007
5008
  * cookies: true,
5008
- * localStorage: true
5009
+ * localStorage: true,
5010
+ * windowState: true
5009
5011
  * };
5010
5012
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
5011
5013
  * ```
@@ -5034,12 +5036,16 @@ class System extends EmitterBase {
5034
5036
  *
5035
5037
  * @param options - Optional configuration for what data to clear
5036
5038
  *
5039
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
5040
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
5041
+ *
5037
5042
  * @example
5038
5043
  * ```js
5039
5044
  * // Clear only cookies and localStorage for a specific origin
5040
5045
  * await fin.System.clearCacheData({
5041
5046
  * dataTypes: ['cookies', 'localStorage'],
5042
- * origins: ['http://localhost:8081']
5047
+ * origins: ['http://localhost:8081'],
5048
+ * windowState: true
5043
5049
  * });
5044
5050
  *
5045
5051
  * // Clear everything except for a specific origin
@@ -7384,12 +7390,12 @@ let ChannelError$1 = class ChannelError extends Error {
7384
7390
  }
7385
7391
  };
7386
7392
 
7387
- var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7393
+ var __classPrivateFieldGet$k = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7388
7394
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7389
7395
  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");
7390
7396
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7391
7397
  };
7392
- var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7398
+ var __classPrivateFieldSet$j = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7393
7399
  if (kind === "m") throw new TypeError("Private method is not writable");
7394
7400
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7395
7401
  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");
@@ -7428,7 +7434,7 @@ class ChannelClient extends ChannelBase {
7428
7434
  static closeChannelByEndpointId(id) {
7429
7435
  const channel = channelClientsByEndpointId.get(id);
7430
7436
  if (channel) {
7431
- __classPrivateFieldGet$i(channel, _ChannelClient_close, "f").call(channel);
7437
+ __classPrivateFieldGet$k(channel, _ChannelClient_close, "f").call(channel);
7432
7438
  }
7433
7439
  }
7434
7440
  /**
@@ -7439,7 +7445,7 @@ class ChannelClient extends ChannelBase {
7439
7445
  for (const channelClient of channelClientsByEndpointId.values()) {
7440
7446
  if (channelClient.providerIdentity.channelId === eventPayload.channelId) {
7441
7447
  channelClient.disconnectListener(eventPayload);
7442
- __classPrivateFieldGet$i(channelClient, _ChannelClient_close, "f").call(channelClient);
7448
+ __classPrivateFieldGet$k(channelClient, _ChannelClient_close, "f").call(channelClient);
7443
7449
  }
7444
7450
  }
7445
7451
  }
@@ -7454,12 +7460,12 @@ class ChannelClient extends ChannelBase {
7454
7460
  this.processAction = (action, payload, senderIdentity) => super.processAction(action, payload, senderIdentity);
7455
7461
  _ChannelClient_close.set(this, () => {
7456
7462
  channelClientsByEndpointId.delete(this.endpointId);
7457
- __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").close();
7463
+ __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").close();
7458
7464
  });
7459
- __classPrivateFieldSet$h(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7465
+ __classPrivateFieldSet$j(this, _ChannelClient_protectedObj, new ProtectedItems(routingInfo, close), "f");
7460
7466
  this.disconnectListener = () => undefined;
7461
7467
  this.endpointId = routingInfo.endpointId;
7462
- __classPrivateFieldSet$h(this, _ChannelClient_strategy, strategy, "f");
7468
+ __classPrivateFieldSet$j(this, _ChannelClient_strategy, strategy, "f");
7463
7469
  channelClientsByEndpointId.set(this.endpointId, this);
7464
7470
  strategy.receive(this.processAction);
7465
7471
  }
@@ -7467,7 +7473,7 @@ class ChannelClient extends ChannelBase {
7467
7473
  * a read-only provider identity
7468
7474
  */
7469
7475
  get providerIdentity() {
7470
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7476
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7471
7477
  return protectedObj.providerIdentity;
7472
7478
  }
7473
7479
  /**
@@ -7496,9 +7502,9 @@ class ChannelClient extends ChannelBase {
7496
7502
  * ```
7497
7503
  */
7498
7504
  async dispatch(action, payload) {
7499
- if (__classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7505
+ if (__classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").isEndpointConnected(this.providerIdentity.channelId)) {
7500
7506
  const callSites = RuntimeError.getCallSite();
7501
- return __classPrivateFieldGet$i(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7507
+ return __classPrivateFieldGet$k(this, _ChannelClient_strategy, "f").send(this.providerIdentity.channelId, action, payload).catch((e) => {
7502
7508
  throw new ChannelError$1(e, action, payload, callSites);
7503
7509
  });
7504
7510
  }
@@ -7550,10 +7556,10 @@ class ChannelClient extends ChannelBase {
7550
7556
  */
7551
7557
  async disconnect() {
7552
7558
  await this.sendDisconnectAction();
7553
- __classPrivateFieldGet$i(this, _ChannelClient_close, "f").call(this);
7559
+ __classPrivateFieldGet$k(this, _ChannelClient_close, "f").call(this);
7554
7560
  }
7555
7561
  async sendDisconnectAction() {
7556
- const protectedObj = __classPrivateFieldGet$i(this, _ChannelClient_protectedObj, "f");
7562
+ const protectedObj = __classPrivateFieldGet$k(this, _ChannelClient_protectedObj, "f");
7557
7563
  await protectedObj.close();
7558
7564
  }
7559
7565
  /**
@@ -7576,13 +7582,13 @@ function exhaustiveCheck(value, allowed) {
7576
7582
  throw new Error(`Unsupported value: ${value}${allowed ? `\n Supported values are: ${allowed.join('')}` : ''}`);
7577
7583
  }
7578
7584
 
7579
- var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7585
+ var __classPrivateFieldSet$i = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7580
7586
  if (kind === "m") throw new TypeError("Private method is not writable");
7581
7587
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7582
7588
  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");
7583
7589
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7584
7590
  };
7585
- var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7591
+ var __classPrivateFieldGet$j = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7586
7592
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7587
7593
  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");
7588
7594
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -7605,7 +7611,7 @@ class ClassicStrategy {
7605
7611
  // connection problems occur
7606
7612
  _ClassicStrategy_pendingMessagesByEndpointId.set(this, new Map());
7607
7613
  this.send = async (endpointId, action, payload) => {
7608
- const to = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7614
+ const to = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7609
7615
  if (!to) {
7610
7616
  throw new Error(`Could not locate routing info for endpoint ${endpointId}`);
7611
7617
  }
@@ -7617,13 +7623,13 @@ class ClassicStrategy {
7617
7623
  }
7618
7624
  delete cleanId.isLocalEndpointId;
7619
7625
  // grab the promise before awaiting it to save in our pending messages map
7620
- const p = __classPrivateFieldGet$h(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7626
+ const p = __classPrivateFieldGet$j(this, _ClassicStrategy_wire, "f").sendAction('send-channel-message', {
7621
7627
  ...cleanId,
7622
7628
  providerIdentity: this.providerIdentity,
7623
7629
  action,
7624
7630
  payload
7625
7631
  });
7626
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7632
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.add(p);
7627
7633
  const raw = await p
7628
7634
  .catch((error) => {
7629
7635
  if ('cause' in error) {
@@ -7633,16 +7639,16 @@ class ClassicStrategy {
7633
7639
  })
7634
7640
  .finally(() => {
7635
7641
  // clean up the pending promise
7636
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7642
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId)?.delete(p);
7637
7643
  });
7638
7644
  return raw.payload.data.result;
7639
7645
  };
7640
7646
  this.close = async () => {
7641
7647
  this.messageReceiver.removeEndpoint(this.providerIdentity.channelId, this.endpointId);
7642
- [...__classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7643
- __classPrivateFieldSet$g(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7648
+ [...__classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").keys()].forEach((id) => this.closeEndpoint(id));
7649
+ __classPrivateFieldSet$i(this, _ClassicStrategy_endpointIdentityMap, new Map(), "f");
7644
7650
  };
7645
- __classPrivateFieldSet$g(this, _ClassicStrategy_wire, wire, "f");
7651
+ __classPrivateFieldSet$i(this, _ClassicStrategy_wire, wire, "f");
7646
7652
  }
7647
7653
  onEndpointDisconnect(endpointId, listener) {
7648
7654
  // Never fires for 'classic'.
@@ -7651,20 +7657,20 @@ class ClassicStrategy {
7651
7657
  this.messageReceiver.addEndpoint(listener, this.providerIdentity.channelId, this.endpointId);
7652
7658
  }
7653
7659
  async closeEndpoint(endpointId) {
7654
- const id = __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7655
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7656
- const pendingSet = __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7660
+ const id = __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").get(endpointId);
7661
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").delete(endpointId);
7662
+ const pendingSet = __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").get(endpointId);
7657
7663
  pendingSet?.forEach((p) => {
7658
7664
  const errorMsg = `Channel connection with identity uuid: ${id?.uuid} / name: ${id?.name} / endpointId: ${endpointId} no longer connected.`;
7659
7665
  p.cancel(new Error(errorMsg));
7660
7666
  });
7661
7667
  }
7662
7668
  isEndpointConnected(endpointId) {
7663
- return __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7669
+ return __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").has(endpointId);
7664
7670
  }
7665
7671
  addEndpoint(endpointId, payload) {
7666
- __classPrivateFieldGet$h(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7667
- __classPrivateFieldGet$h(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7672
+ __classPrivateFieldGet$j(this, _ClassicStrategy_endpointIdentityMap, "f").set(endpointId, payload.endpointIdentity);
7673
+ __classPrivateFieldGet$j(this, _ClassicStrategy_pendingMessagesByEndpointId, "f").set(endpointId, new Set());
7668
7674
  }
7669
7675
  isValidEndpointPayload(payload) {
7670
7676
  return (typeof payload?.endpointIdentity?.endpointId === 'string' ||
@@ -7689,12 +7695,12 @@ function errorToPOJO(error) {
7689
7695
  return errorObj;
7690
7696
  }
7691
7697
 
7692
- var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7698
+ var __classPrivateFieldGet$i = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7693
7699
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7694
7700
  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");
7695
7701
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7696
7702
  };
7697
- var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7703
+ var __classPrivateFieldSet$h = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7698
7704
  if (kind === "m") throw new TypeError("Private method is not writable");
7699
7705
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7700
7706
  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");
@@ -7725,8 +7731,8 @@ class RTCEndpoint {
7725
7731
  if (this.rtc.rtcClient.connectionState !== 'connected') {
7726
7732
  this.rtc.rtcClient.removeEventListener('connectionstatechange', this.connectionStateChangeHandler);
7727
7733
  this.close();
7728
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7729
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7734
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7735
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7730
7736
  }
7731
7737
  }
7732
7738
  };
@@ -7774,9 +7780,9 @@ class RTCEndpoint {
7774
7780
  data = new TextDecoder().decode(e.data);
7775
7781
  }
7776
7782
  const { messageId, action, payload } = JSON.parse(data);
7777
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
7783
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
7778
7784
  try {
7779
- const res = await __classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7785
+ const res = await __classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f").call(this, action, payload, endpointIdentity);
7780
7786
  this.rtc.channels.response.send(JSON.stringify({
7781
7787
  messageId,
7782
7788
  payload: res,
@@ -7810,25 +7816,25 @@ class RTCEndpoint {
7810
7816
  datachannel.onclose = (e) => {
7811
7817
  [...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.')));
7812
7818
  this.close();
7813
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7814
- __classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f").call(this);
7819
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7820
+ __classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f").call(this);
7815
7821
  }
7816
7822
  };
7817
7823
  });
7818
7824
  }
7819
7825
  onDisconnect(listener) {
7820
- if (!__classPrivateFieldGet$g(this, _RTCEndpoint_disconnectListener, "f")) {
7821
- __classPrivateFieldSet$f(this, _RTCEndpoint_disconnectListener, listener, "f");
7826
+ if (!__classPrivateFieldGet$i(this, _RTCEndpoint_disconnectListener, "f")) {
7827
+ __classPrivateFieldSet$h(this, _RTCEndpoint_disconnectListener, listener, "f");
7822
7828
  }
7823
7829
  else {
7824
7830
  throw new Error('RTCEndpoint disconnectListener cannot be set twice.');
7825
7831
  }
7826
7832
  }
7827
7833
  receive(listener) {
7828
- if (__classPrivateFieldGet$g(this, _RTCEndpoint_processAction, "f")) {
7834
+ if (__classPrivateFieldGet$i(this, _RTCEndpoint_processAction, "f")) {
7829
7835
  throw new Error('You have already set a listener for this RTC Endpoint.');
7830
7836
  }
7831
- __classPrivateFieldSet$f(this, _RTCEndpoint_processAction, listener, "f");
7837
+ __classPrivateFieldSet$h(this, _RTCEndpoint_processAction, listener, "f");
7832
7838
  }
7833
7839
  get connected() {
7834
7840
  return this.rtc.rtcClient.connectionState === 'connected';
@@ -7836,12 +7842,12 @@ class RTCEndpoint {
7836
7842
  }
7837
7843
  _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
7838
7844
 
7839
- var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7845
+ var __classPrivateFieldGet$h = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
7840
7846
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
7841
7847
  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");
7842
7848
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7843
7849
  };
7844
- var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7850
+ var __classPrivateFieldSet$g = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7845
7851
  if (kind === "m") throw new TypeError("Private method is not writable");
7846
7852
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
7847
7853
  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");
@@ -7860,11 +7866,11 @@ class EndpointStrategy {
7860
7866
  return this.getEndpointById(endpointId).send(action, payload);
7861
7867
  };
7862
7868
  this.close = async () => {
7863
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
7864
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7865
- __classPrivateFieldSet$e(this, _EndpointStrategy_endpointMap, new Map(), "f");
7869
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
7870
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
7871
+ __classPrivateFieldSet$g(this, _EndpointStrategy_endpointMap, new Map(), "f");
7866
7872
  }
7867
- __classPrivateFieldSet$e(this, _EndpointStrategy_connected, false, "f");
7873
+ __classPrivateFieldSet$g(this, _EndpointStrategy_connected, false, "f");
7868
7874
  };
7869
7875
  this.isValidEndpointPayload = validateEndpoint;
7870
7876
  }
@@ -7872,39 +7878,39 @@ class EndpointStrategy {
7872
7878
  this.getEndpointById(endpointId).onDisconnect(listener);
7873
7879
  }
7874
7880
  receive(listener) {
7875
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
7881
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
7876
7882
  throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
7877
7883
  }
7878
- __classPrivateFieldSet$e(this, _EndpointStrategy_processAction, listener, "f");
7884
+ __classPrivateFieldSet$g(this, _EndpointStrategy_processAction, listener, "f");
7879
7885
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
7880
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")));
7886
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")));
7881
7887
  }
7882
7888
  getEndpointById(endpointId) {
7883
- const endpoint = __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
7889
+ const endpoint = __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
7884
7890
  if (!endpoint) {
7885
7891
  throw new Error(`Client with endpoint id ${endpointId} is not connected`);
7886
7892
  }
7887
7893
  return endpoint;
7888
7894
  }
7889
7895
  get connected() {
7890
- return __classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f");
7896
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f");
7891
7897
  }
7892
7898
  isEndpointConnected(endpointId) {
7893
- return __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
7899
+ return __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
7894
7900
  }
7895
7901
  addEndpoint(endpointId, payload) {
7896
- if (!__classPrivateFieldGet$f(this, _EndpointStrategy_connected, "f")) {
7902
+ if (!__classPrivateFieldGet$h(this, _EndpointStrategy_connected, "f")) {
7897
7903
  console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
7898
7904
  return;
7899
7905
  }
7900
7906
  const clientStrat = new this.EndpointType(payload);
7901
- if (__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f")) {
7902
- clientStrat.receive(__classPrivateFieldGet$f(this, _EndpointStrategy_processAction, "f"));
7907
+ if (__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f")) {
7908
+ clientStrat.receive(__classPrivateFieldGet$h(this, _EndpointStrategy_processAction, "f"));
7903
7909
  }
7904
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
7910
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
7905
7911
  }
7906
7912
  async closeEndpoint(endpointId) {
7907
- __classPrivateFieldGet$f(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
7913
+ __classPrivateFieldGet$h(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
7908
7914
  }
7909
7915
  }
7910
7916
  _EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
@@ -8065,12 +8071,12 @@ function runtimeUuidMeetsMinimumRuntimeVersion(runtimeUuid, minVersion) {
8065
8071
  return meetsMinimumRuntimeVersion(runtimeVersion, minVersion);
8066
8072
  }
8067
8073
 
8068
- var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8074
+ var __classPrivateFieldGet$g = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8069
8075
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8070
8076
  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");
8071
8077
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
8072
8078
  };
8073
- var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8079
+ var __classPrivateFieldSet$f = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8074
8080
  if (kind === "m") throw new TypeError("Private method is not writable");
8075
8081
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8076
8082
  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");
@@ -8108,19 +8114,19 @@ class ChannelProvider extends ChannelBase {
8108
8114
  * a read-only array containing all the identities of connecting clients.
8109
8115
  */
8110
8116
  get connections() {
8111
- return [...__classPrivateFieldGet$e(this, _ChannelProvider_connections, "f")];
8117
+ return [...__classPrivateFieldGet$g(this, _ChannelProvider_connections, "f")];
8112
8118
  }
8113
8119
  static handleClientDisconnection(channel, payload) {
8114
8120
  if (payload?.endpointId) {
8115
8121
  const { uuid, name, endpointId, isLocalEndpointId } = payload;
8116
- __classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8122
+ __classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f").call(channel, { uuid, name, endpointId, isLocalEndpointId });
8117
8123
  }
8118
8124
  else {
8119
8125
  // this is here to support older runtimes that did not have endpointId
8120
8126
  const multipleRemoves = channel.connections.filter((identity) => {
8121
8127
  return identity.uuid === payload.uuid && identity.name === payload.name;
8122
8128
  });
8123
- multipleRemoves.forEach(__classPrivateFieldGet$e(channel, _ChannelProvider_removeEndpoint, "f"));
8129
+ multipleRemoves.forEach(__classPrivateFieldGet$g(channel, _ChannelProvider_removeEndpoint, "f"));
8124
8130
  }
8125
8131
  channel.disconnectListener(payload);
8126
8132
  }
@@ -8137,8 +8143,8 @@ class ChannelProvider extends ChannelBase {
8137
8143
  _ChannelProvider_strategy.set(this, void 0);
8138
8144
  _ChannelProvider_removeEndpoint.set(this, (identity) => {
8139
8145
  const remainingConnections = this.connections.filter((clientIdentity) => clientIdentity.endpointId !== identity.endpointId);
8140
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8141
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, remainingConnections, "f");
8146
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").closeEndpoint(identity.endpointId);
8147
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, remainingConnections, "f");
8142
8148
  });
8143
8149
  // Must be bound.
8144
8150
  this.processAction = async (action, payload, senderIdentity) => {
@@ -8152,17 +8158,17 @@ class ChannelProvider extends ChannelBase {
8152
8158
  return super.processAction(action, payload, senderIdentity);
8153
8159
  };
8154
8160
  _ChannelProvider_close.set(this, () => {
8155
- __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").close();
8161
+ __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").close();
8156
8162
  const remove = ChannelProvider.removalMap.get(this);
8157
8163
  if (remove) {
8158
8164
  remove();
8159
8165
  }
8160
8166
  });
8161
- __classPrivateFieldSet$d(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8167
+ __classPrivateFieldSet$f(this, _ChannelProvider_protectedObj, new ProtectedItems(providerIdentity, close), "f");
8162
8168
  this.connectListener = () => undefined;
8163
8169
  this.disconnectListener = () => undefined;
8164
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8165
- __classPrivateFieldSet$d(this, _ChannelProvider_strategy, strategy, "f");
8170
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8171
+ __classPrivateFieldSet$f(this, _ChannelProvider_strategy, strategy, "f");
8166
8172
  strategy.receive(this.processAction);
8167
8173
  }
8168
8174
  /**
@@ -8193,16 +8199,16 @@ class ChannelProvider extends ChannelBase {
8193
8199
  */
8194
8200
  dispatch(to, action, payload) {
8195
8201
  const endpointId = to.endpointId ?? this.getEndpointIdForOpenFinId(to, action);
8196
- if (endpointId && __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8202
+ if (endpointId && __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").isEndpointConnected(endpointId)) {
8197
8203
  const callSites = RuntimeError.getCallSite();
8198
- return __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8204
+ return __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(endpointId, action, payload).catch((e) => {
8199
8205
  throw new ChannelError$1(e, action, payload, callSites);
8200
8206
  });
8201
8207
  }
8202
8208
  return Promise.reject(new Error(`Client connection with identity uuid: ${to.uuid} / name: ${to.name} / endpointId: ${endpointId} no longer connected.`));
8203
8209
  }
8204
8210
  async processConnection(senderId, payload) {
8205
- __classPrivateFieldGet$e(this, _ChannelProvider_connections, "f").push(senderId);
8211
+ __classPrivateFieldGet$g(this, _ChannelProvider_connections, "f").push(senderId);
8206
8212
  return this.connectListener(senderId, payload);
8207
8213
  }
8208
8214
  /**
@@ -8225,7 +8231,7 @@ class ChannelProvider extends ChannelBase {
8225
8231
  * ```
8226
8232
  */
8227
8233
  publish(action, payload) {
8228
- return this.connections.map((to) => __classPrivateFieldGet$e(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8234
+ return this.connections.map((to) => __classPrivateFieldGet$g(this, _ChannelProvider_strategy, "f").send(to.endpointId, action, payload));
8229
8235
  }
8230
8236
  /**
8231
8237
  * Register a listener that is called on every new client connection.
@@ -8299,11 +8305,11 @@ class ChannelProvider extends ChannelBase {
8299
8305
  * ```
8300
8306
  */
8301
8307
  async destroy() {
8302
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8308
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8303
8309
  protectedObj.providerIdentity;
8304
- __classPrivateFieldSet$d(this, _ChannelProvider_connections, [], "f");
8310
+ __classPrivateFieldSet$f(this, _ChannelProvider_connections, [], "f");
8305
8311
  await protectedObj.close();
8306
- __classPrivateFieldGet$e(this, _ChannelProvider_close, "f").call(this);
8312
+ __classPrivateFieldGet$g(this, _ChannelProvider_close, "f").call(this);
8307
8313
  }
8308
8314
  /**
8309
8315
  * Returns an array with info on every Client connected to the Provider
@@ -8373,7 +8379,7 @@ class ChannelProvider extends ChannelBase {
8373
8379
  getEndpointIdForOpenFinId(clientIdentity, action) {
8374
8380
  const matchingConnections = this.connections.filter((c) => c.name === clientIdentity.name && c.uuid === clientIdentity.uuid);
8375
8381
  if (matchingConnections.length >= 2) {
8376
- const protectedObj = __classPrivateFieldGet$e(this, _ChannelProvider_protectedObj, "f");
8382
+ const protectedObj = __classPrivateFieldGet$g(this, _ChannelProvider_protectedObj, "f");
8377
8383
  const { uuid, name } = clientIdentity;
8378
8384
  const providerUuid = protectedObj?.providerIdentity.uuid;
8379
8385
  const providerName = protectedObj?.providerIdentity.name;
@@ -8567,13 +8573,13 @@ class CombinedStrategy {
8567
8573
  }
8568
8574
  }
8569
8575
 
8570
- var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8576
+ var __classPrivateFieldSet$e = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8571
8577
  if (kind === "m") throw new TypeError("Private method is not writable");
8572
8578
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8573
8579
  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");
8574
8580
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8575
8581
  };
8576
- var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8582
+ var __classPrivateFieldGet$f = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8577
8583
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8578
8584
  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");
8579
8585
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8608,8 +8614,8 @@ class ConnectionManager extends Base {
8608
8614
  };
8609
8615
  this.providerMap = new Map();
8610
8616
  this.protocolManager = new ProtocolManager(this.wire.environment.type === 'node' ? ['classic'] : ['rtc', 'classic']);
8611
- __classPrivateFieldSet$c(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8612
- __classPrivateFieldSet$c(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8617
+ __classPrivateFieldSet$e(this, _ConnectionManager_messageReceiver, new MessageReceiver(wire), "f");
8618
+ __classPrivateFieldSet$e(this, _ConnectionManager_rtcConnectionManager, new RTCICEManager(wire), "f");
8613
8619
  wire.registerMessageHandler(this.onmessage.bind(this));
8614
8620
  }
8615
8621
  createProvider(options, providerIdentity) {
@@ -8620,7 +8626,7 @@ class ConnectionManager extends Base {
8620
8626
  case 'rtc':
8621
8627
  return new RTCStrategy();
8622
8628
  case 'classic':
8623
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"),
8629
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"),
8624
8630
  // Providers do not have an endpointId, use channelId as endpointId in the strategy.
8625
8631
  providerIdentity.channelId, providerIdentity);
8626
8632
  default:
@@ -8656,7 +8662,7 @@ class ConnectionManager extends Base {
8656
8662
  const supportedProtocols = await Promise.all(protocols.map(async (type) => {
8657
8663
  switch (type) {
8658
8664
  case 'rtc': {
8659
- const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8665
+ const { rtcClient, channels, offer, rtcConnectionId, channelsOpened } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").startClientOffer();
8660
8666
  rtcPacket = { rtcClient, channels, channelsOpened };
8661
8667
  return {
8662
8668
  type: 'rtc',
@@ -8683,18 +8689,18 @@ class ConnectionManager extends Base {
8683
8689
  routingInfo.endpointId = this.wire.environment.getNextMessageId();
8684
8690
  // For New Clients connecting to Old Providers. To prevent multi-dispatching and publishing, we delete previously-connected
8685
8691
  // clients that are in the same context as the newly-connected client.
8686
- __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8692
+ __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f").checkForPreviousClientConnection(routingInfo.channelId);
8687
8693
  }
8688
8694
  const answer = routingInfo.answer ?? {
8689
8695
  supportedProtocols: [{ type: 'classic', version: 1 }]
8690
8696
  };
8691
8697
  const createStrategyFromAnswer = async (protocol) => {
8692
8698
  if (protocol.type === 'rtc' && rtcPacket) {
8693
- await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8699
+ await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").finishClientOffer(rtcPacket.rtcClient, protocol.payload.answer, rtcPacket.channelsOpened);
8694
8700
  return new RTCStrategy();
8695
8701
  }
8696
8702
  if (protocol.type === 'classic') {
8697
- return new ClassicStrategy(this.wire, __classPrivateFieldGet$d(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8703
+ return new ClassicStrategy(this.wire, __classPrivateFieldGet$f(this, _ConnectionManager_messageReceiver, "f"), routingInfo.endpointId, routingInfo);
8698
8704
  }
8699
8705
  return null;
8700
8706
  };
@@ -8762,7 +8768,7 @@ class ConnectionManager extends Base {
8762
8768
  clientAnswer = await overlappingProtocols.reduce(async (accumP, protocolToUse) => {
8763
8769
  const answer = await accumP;
8764
8770
  if (protocolToUse.type === 'rtc') {
8765
- const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$d(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8771
+ const { answer: rtcAnswer, rtcClient, channels } = await __classPrivateFieldGet$f(this, _ConnectionManager_rtcConnectionManager, "f").createProviderAnswer(protocolToUse.payload.rtcConnectionId, protocolToUse.payload.offer);
8766
8772
  answer.supportedProtocols.push({
8767
8773
  type: 'rtc',
8768
8774
  version: RTCInfo.version,
@@ -8809,13 +8815,13 @@ _ConnectionManager_messageReceiver = new WeakMap(), _ConnectionManager_rtcConnec
8809
8815
  *
8810
8816
  * @packageDocumentation
8811
8817
  */
8812
- var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8818
+ var __classPrivateFieldSet$d = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
8813
8819
  if (kind === "m") throw new TypeError("Private method is not writable");
8814
8820
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
8815
8821
  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");
8816
8822
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
8817
8823
  };
8818
- var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8824
+ var __classPrivateFieldGet$e = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8819
8825
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
8820
8826
  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");
8821
8827
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -8863,11 +8869,11 @@ class Channel extends EmitterBase {
8863
8869
  ChannelClient.handleProviderDisconnect(eventPayload);
8864
8870
  }),
8865
8871
  this.on('connected', (...args) => {
8866
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").emit('connected', ...args);
8872
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").emit('connected', ...args);
8867
8873
  })
8868
8874
  ]).catch(() => new Error('error setting up channel connection listeners'));
8869
8875
  }));
8870
- __classPrivateFieldSet$b(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
8876
+ __classPrivateFieldSet$d(this, _Channel_connectionManager, new ConnectionManager(wire), "f");
8871
8877
  }
8872
8878
  /**
8873
8879
  *
@@ -8942,7 +8948,7 @@ class Channel extends EmitterBase {
8942
8948
  resolve(true);
8943
8949
  }
8944
8950
  };
8945
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
8951
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").on('connected', connectedListener);
8946
8952
  });
8947
8953
  try {
8948
8954
  if (retryInfo.count > 0) {
@@ -8974,7 +8980,7 @@ class Channel extends EmitterBase {
8974
8980
  finally {
8975
8981
  retryInfo.count += 1;
8976
8982
  // in case of other errors, remove our listener
8977
- __classPrivateFieldGet$c(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
8983
+ __classPrivateFieldGet$e(this, _Channel_internalEmitter, "f").removeListener('connected', connectedListener);
8978
8984
  }
8979
8985
  } while (shouldWait); // If we're waiting we retry the above loop
8980
8986
  // Should wait was false, no channel was found.
@@ -9033,12 +9039,12 @@ class Channel extends EmitterBase {
9033
9039
  async connect(channelName, options = {}) {
9034
9040
  // Make sure we don't connect before listeners are set up
9035
9041
  // This also errors if we're not in OpenFin, ensuring we don't run unnecessary code
9036
- await __classPrivateFieldGet$c(this, _Channel_readyToConnect, "f").getValue();
9042
+ await __classPrivateFieldGet$e(this, _Channel_readyToConnect, "f").getValue();
9037
9043
  if (!channelName || typeof channelName !== 'string') {
9038
9044
  throw new Error('Please provide a channelName string to connect to a channel.');
9039
9045
  }
9040
9046
  const opts = { wait: true, ...this.wire.environment.getDefaultChannelOptions().connect, ...options };
9041
- const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientOffer(opts);
9047
+ const { offer, rtc: rtcPacket } = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientOffer(opts);
9042
9048
  let connectionUrl;
9043
9049
  if (this.fin.me.isFrame || this.fin.me.isView || this.fin.me.isWindow) {
9044
9050
  connectionUrl = (await this.fin.me.getInfo()).url;
@@ -9050,7 +9056,7 @@ class Channel extends EmitterBase {
9050
9056
  connectionUrl
9051
9057
  };
9052
9058
  const routingInfo = await this.safeConnect(channelName, opts.wait, connectPayload);
9053
- const strategy = await __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9059
+ const strategy = await __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createClientStrategy(rtcPacket, routingInfo);
9054
9060
  const channel = new ChannelClient(routingInfo, () => ChannelClient.wireClose(this.wire, routingInfo, routingInfo.endpointId), strategy);
9055
9061
  // It is the client's responsibility to handle endpoint disconnection to the provider.
9056
9062
  // If the endpoint dies, the client will force a disconnection through the core.
@@ -9119,7 +9125,7 @@ class Channel extends EmitterBase {
9119
9125
  throw new Error('Please provide a channelName to create a channel');
9120
9126
  }
9121
9127
  const { payload: { data: providerIdentity } } = await this.wire.sendAction('create-channel', { channelName });
9122
- const channel = __classPrivateFieldGet$c(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9128
+ const channel = __classPrivateFieldGet$e(this, _Channel_connectionManager, "f").createProvider(options, providerIdentity);
9123
9129
  // TODO: fix typing (internal)
9124
9130
  // @ts-expect-error
9125
9131
  this.on('client-disconnected', (eventPayload) => {
@@ -9876,13 +9882,13 @@ class GlobalHotkey extends EmitterBase {
9876
9882
  }
9877
9883
  }
9878
9884
 
9879
- var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9885
+ var __classPrivateFieldSet$c = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9880
9886
  if (kind === "m") throw new TypeError("Private method is not writable");
9881
9887
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9882
9888
  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");
9883
9889
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
9884
9890
  };
9885
- var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9891
+ var __classPrivateFieldGet$d = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9886
9892
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9887
9893
  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");
9888
9894
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -9914,24 +9920,24 @@ class Platform extends EmitterBase {
9914
9920
  this.wire.sendAction('platform-get-client', this.identity).catch((e) => {
9915
9921
  // don't expose
9916
9922
  });
9917
- if (!Platform.clientMap.has(__classPrivateFieldGet$b(this, _Platform_channelName, "f"))) {
9918
- const clientPromise = __classPrivateFieldGet$b(this, _Platform_connectToProvider, "f").call(this);
9919
- Platform.clientMap.set(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), clientPromise);
9923
+ if (!Platform.clientMap.has(__classPrivateFieldGet$d(this, _Platform_channelName, "f"))) {
9924
+ const clientPromise = __classPrivateFieldGet$d(this, _Platform_connectToProvider, "f").call(this);
9925
+ Platform.clientMap.set(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), clientPromise);
9920
9926
  }
9921
9927
  // we set it above
9922
9928
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9923
- return Platform.clientMap.get(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9929
+ return Platform.clientMap.get(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9924
9930
  };
9925
9931
  _Platform_connectToProvider.set(this, async () => {
9926
9932
  try {
9927
- const client = await this._channel.connect(__classPrivateFieldGet$b(this, _Platform_channelName, "f"), { wait: false });
9933
+ const client = await this._channel.connect(__classPrivateFieldGet$d(this, _Platform_channelName, "f"), { wait: false });
9928
9934
  client.onDisconnection(() => {
9929
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9935
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9930
9936
  });
9931
9937
  return client;
9932
9938
  }
9933
9939
  catch (e) {
9934
- Platform.clientMap.delete(__classPrivateFieldGet$b(this, _Platform_channelName, "f"));
9940
+ Platform.clientMap.delete(__classPrivateFieldGet$d(this, _Platform_channelName, "f"));
9935
9941
  throw new Error('The targeted Platform is not currently running. Listen for application-started event for the given Uuid.');
9936
9942
  }
9937
9943
  });
@@ -9944,7 +9950,7 @@ class Platform extends EmitterBase {
9944
9950
  if (errorMsg) {
9945
9951
  throw new Error(errorMsg);
9946
9952
  }
9947
- __classPrivateFieldSet$a(this, _Platform_channelName, channelName, "f");
9953
+ __classPrivateFieldSet$c(this, _Platform_channelName, channelName, "f");
9948
9954
  this._channel = this.fin.InterApplicationBus.Channel;
9949
9955
  this.identity = { uuid: identity.uuid };
9950
9956
  this.Layout = this.fin.Platform.Layout;
@@ -10800,13 +10806,13 @@ const createRelayedDispatch = (client, target, relayId, relayErrorMsg) => async
10800
10806
  }
10801
10807
  };
10802
10808
 
10803
- var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10809
+ var __classPrivateFieldSet$b = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
10804
10810
  if (kind === "m") throw new TypeError("Private method is not writable");
10805
10811
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
10806
10812
  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");
10807
10813
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
10808
10814
  };
10809
- var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10815
+ var __classPrivateFieldGet$c = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
10810
10816
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10811
10817
  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");
10812
10818
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -10856,7 +10862,7 @@ class LayoutNode {
10856
10862
  * console.log(`The parent ColumnOrRow is root: ${parentIsRoot}`);
10857
10863
  * ```
10858
10864
  */
10859
- this.isRoot = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").isRoot(this.entityId);
10865
+ this.isRoot = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").isRoot(this.entityId);
10860
10866
  /**
10861
10867
  * Checks if the TabStack or ColumnOrRow exists
10862
10868
  *
@@ -10876,7 +10882,7 @@ class LayoutNode {
10876
10882
  * console.log(`The entity exists: ${exists}`);
10877
10883
  * ```
10878
10884
  */
10879
- this.exists = () => __classPrivateFieldGet$a(this, _LayoutNode_client, "f").exists(this.entityId);
10885
+ this.exists = () => __classPrivateFieldGet$c(this, _LayoutNode_client, "f").exists(this.entityId);
10880
10886
  /**
10881
10887
  * Retrieves the parent of the TabStack or ColumnOrRow
10882
10888
  *
@@ -10897,11 +10903,11 @@ class LayoutNode {
10897
10903
  * ```
10898
10904
  */
10899
10905
  this.getParent = async () => {
10900
- const parent = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getParent(this.entityId);
10906
+ const parent = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getParent(this.entityId);
10901
10907
  if (!parent) {
10902
10908
  return undefined;
10903
10909
  }
10904
- return LayoutNode.getEntity(parent, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
10910
+ return LayoutNode.getEntity(parent, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
10905
10911
  };
10906
10912
  /**
10907
10913
  * Creates a new TabStack adjacent to the given TabStack or ColumnOrRow. Inputs can be new views to create, or existing views.
@@ -10952,8 +10958,8 @@ class LayoutNode {
10952
10958
  * @experimental
10953
10959
  */
10954
10960
  this.createAdjacentStack = async (views, options) => {
10955
- const entityId = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
10956
- return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f"));
10961
+ const entityId = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").createAdjacentStack(this.entityId, views, options);
10962
+ return LayoutNode.getEntity({ entityId, type: 'stack' }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f"));
10957
10963
  };
10958
10964
  /**
10959
10965
  * Retrieves the adjacent TabStacks of the given TabStack or ColumnOrRow.
@@ -10981,16 +10987,16 @@ class LayoutNode {
10981
10987
  * @experimental
10982
10988
  */
10983
10989
  this.getAdjacentStacks = async (edge) => {
10984
- const adjacentStacks = await __classPrivateFieldGet$a(this, _LayoutNode_client, "f").getAdjacentStacks({
10990
+ const adjacentStacks = await __classPrivateFieldGet$c(this, _LayoutNode_client, "f").getAdjacentStacks({
10985
10991
  targetId: this.entityId,
10986
10992
  edge
10987
10993
  });
10988
10994
  return adjacentStacks.map((stack) => LayoutNode.getEntity({
10989
10995
  type: 'stack',
10990
10996
  entityId: stack.entityId
10991
- }, __classPrivateFieldGet$a(this, _LayoutNode_client, "f")));
10997
+ }, __classPrivateFieldGet$c(this, _LayoutNode_client, "f")));
10992
10998
  };
10993
- __classPrivateFieldSet$9(this, _LayoutNode_client, client, "f");
10999
+ __classPrivateFieldSet$b(this, _LayoutNode_client, client, "f");
10994
11000
  this.entityId = entityId;
10995
11001
  }
10996
11002
  }
@@ -11063,7 +11069,7 @@ class TabStack extends LayoutNode {
11063
11069
  * ```
11064
11070
  * @experimental
11065
11071
  */
11066
- this.getViews = () => __classPrivateFieldGet$a(this, _TabStack_client, "f").getStackViews(this.entityId);
11072
+ this.getViews = () => __classPrivateFieldGet$c(this, _TabStack_client, "f").getStackViews(this.entityId);
11067
11073
  /**
11068
11074
  * Adds or creates a view in this {@link TabStack}.
11069
11075
  *
@@ -11094,7 +11100,7 @@ class TabStack extends LayoutNode {
11094
11100
  * ```
11095
11101
  * @experimental
11096
11102
  */
11097
- this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$a(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11103
+ this.addView = async (view, options = { index: 0 }) => __classPrivateFieldGet$c(this, _TabStack_client, "f").addViewToStack(this.entityId, view, options);
11098
11104
  /**
11099
11105
  * Removes a view from this {@link TabStack}.
11100
11106
  *
@@ -11124,7 +11130,7 @@ class TabStack extends LayoutNode {
11124
11130
  * ```
11125
11131
  */
11126
11132
  this.removeView = async (view) => {
11127
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11133
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").removeViewFromStack(this.entityId, view);
11128
11134
  };
11129
11135
  /**
11130
11136
  * Sets the active view of the {@link TabStack} without focusing it.
@@ -11148,9 +11154,9 @@ class TabStack extends LayoutNode {
11148
11154
  * @experimental
11149
11155
  */
11150
11156
  this.setActiveView = async (view) => {
11151
- await __classPrivateFieldGet$a(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11157
+ await __classPrivateFieldGet$c(this, _TabStack_client, "f").setStackActiveView(this.entityId, view);
11152
11158
  };
11153
- __classPrivateFieldSet$9(this, _TabStack_client, client, "f");
11159
+ __classPrivateFieldSet$b(this, _TabStack_client, client, "f");
11154
11160
  }
11155
11161
  }
11156
11162
  _TabStack_client = new WeakMap();
@@ -11188,10 +11194,10 @@ class ColumnOrRow extends LayoutNode {
11188
11194
  * ```
11189
11195
  */
11190
11196
  this.getContent = async () => {
11191
- const contentItemEntities = await __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11192
- return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$a(this, _ColumnOrRow_client, "f")));
11197
+ const contentItemEntities = await __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f").getContent(this.entityId);
11198
+ return contentItemEntities.map((entity) => LayoutNode.getEntity(entity, __classPrivateFieldGet$c(this, _ColumnOrRow_client, "f")));
11193
11199
  };
11194
- __classPrivateFieldSet$9(this, _ColumnOrRow_client, client, "f");
11200
+ __classPrivateFieldSet$b(this, _ColumnOrRow_client, client, "f");
11195
11201
  this.type = type;
11196
11202
  }
11197
11203
  }
@@ -11201,7 +11207,7 @@ const LAYOUT_CONTROLLER_ID = 'layout-entities';
11201
11207
  // TODO: eventually export this somehow
11202
11208
  const DEFAULT_LAYOUT_KEY = '__default__';
11203
11209
 
11204
- var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11210
+ var __classPrivateFieldGet$b = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11205
11211
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11206
11212
  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");
11207
11213
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -11344,7 +11350,7 @@ class Layout extends Base {
11344
11350
  * @internal
11345
11351
  */
11346
11352
  static getClient(layout) {
11347
- return __classPrivateFieldGet$9(layout, _Layout_layoutClient, "f").getValue();
11353
+ return __classPrivateFieldGet$b(layout, _Layout_layoutClient, "f").getValue();
11348
11354
  }
11349
11355
  /**
11350
11356
  * @internal
@@ -11567,7 +11573,7 @@ class Layout extends Base {
11567
11573
  this.wire.sendAction('layout-get-root-item').catch(() => {
11568
11574
  // don't expose
11569
11575
  });
11570
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11576
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11571
11577
  const root = await client.getRoot('layoutName' in this.identity ? this.identity : undefined);
11572
11578
  return LayoutNode.getEntity(root, client);
11573
11579
  }
@@ -11585,7 +11591,7 @@ class Layout extends Base {
11585
11591
  this.wire.sendAction('layout-get-stack-by-view').catch(() => {
11586
11592
  // don't expose
11587
11593
  });
11588
- const client = await __classPrivateFieldGet$9(this, _Layout_layoutClient, "f").getValue();
11594
+ const client = await __classPrivateFieldGet$b(this, _Layout_layoutClient, "f").getValue();
11589
11595
  const stack = await client.getStackByView(identity);
11590
11596
  if (!stack) {
11591
11597
  throw new Error(`No stack found for view: ${identity.uuid}/${identity.name}`);
@@ -11605,7 +11611,7 @@ class Layout extends Base {
11605
11611
  this.wire.sendAction('layout-add-view').catch((e) => {
11606
11612
  // don't expose
11607
11613
  });
11608
- const { identity } = await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11614
+ const { identity } = await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-add-view', {
11609
11615
  viewOptions,
11610
11616
  location,
11611
11617
  targetView
@@ -11623,7 +11629,7 @@ class Layout extends Base {
11623
11629
  this.wire.sendAction('layout-close-view').catch((e) => {
11624
11630
  // don't expose
11625
11631
  });
11626
- await __classPrivateFieldGet$9(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11632
+ await __classPrivateFieldGet$b(this, _Layout_instances, "m", _Layout_forwardLayoutAction).call(this, 'layout-close-view', { viewIdentity });
11627
11633
  }
11628
11634
  }
11629
11635
  _Layout_layoutClient = new WeakMap(), _Layout_instances = new WeakSet(), _Layout_forwardLayoutAction =
@@ -11636,12 +11642,12 @@ async function _Layout_forwardLayoutAction(action, payload) {
11636
11642
  return client.dispatch(action, { target: this.identity, opts: payload });
11637
11643
  };
11638
11644
 
11639
- var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11645
+ var __classPrivateFieldGet$a = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
11640
11646
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
11641
11647
  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");
11642
11648
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11643
11649
  };
11644
- var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11650
+ var __classPrivateFieldSet$a = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11645
11651
  if (kind === "m") throw new TypeError("Private method is not writable");
11646
11652
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11647
11653
  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");
@@ -11700,23 +11706,23 @@ class LayoutModule extends Base {
11700
11706
  if (!this.wire.environment.layoutAllowedInContext(this.fin)) {
11701
11707
  throw new Error('Layout.init can only be called from a Window context.');
11702
11708
  }
11703
- if (__classPrivateFieldGet$8(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11709
+ if (__classPrivateFieldGet$a(this, _LayoutModule_layoutInitializationAttempted, "f")) {
11704
11710
  throw new Error('Layout.init was already called, please use Layout.create to add additional layouts.');
11705
11711
  }
11706
11712
  if (this.wire.environment.type === 'openfin') {
11707
11713
  // preload the client
11708
11714
  await this.fin.Platform.getCurrentSync().getClient();
11709
11715
  }
11710
- __classPrivateFieldSet$8(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11716
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutInitializationAttempted, true, "f");
11711
11717
  // TODO: rename to createLayoutManager
11712
- __classPrivateFieldSet$8(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11713
- await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f"), options);
11718
+ __classPrivateFieldSet$a(this, _LayoutModule_layoutManager, await this.wire.environment.initLayoutManager(this.fin, this.wire, options), "f");
11719
+ await this.wire.environment.applyLayoutSnapshot(this.fin, __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f"), options);
11714
11720
  const meIdentity = { name: this.fin.me.name, uuid: this.fin.me.uuid };
11715
11721
  if (!options.layoutManagerOverride) {
11716
11722
  // CORE-1081 to be removed when we actually delete the `layoutManager` prop
11717
11723
  // in single-layout case, we return the undocumented layoutManager type
11718
11724
  const layoutIdentity = { layoutName: DEFAULT_LAYOUT_KEY, ...meIdentity };
11719
- return __classPrivateFieldGet$8(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11725
+ return __classPrivateFieldGet$a(this, _LayoutModule_getLayoutManagerSpy, "f").call(this, layoutIdentity);
11720
11726
  }
11721
11727
  return this.wrapSync(meIdentity);
11722
11728
  };
@@ -11745,13 +11751,13 @@ class LayoutModule extends Base {
11745
11751
  * @returns
11746
11752
  */
11747
11753
  this.getCurrentLayoutManagerSync = () => {
11748
- return __classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11754
+ return __classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.getCurrentLayoutManagerSync()`);
11749
11755
  };
11750
11756
  this.create = async (options) => {
11751
- return this.wire.environment.createLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11757
+ return this.wire.environment.createLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.create()`), options);
11752
11758
  };
11753
11759
  this.destroy = async (layoutIdentity) => {
11754
- return this.wire.environment.destroyLayout(__classPrivateFieldGet$8(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11760
+ return this.wire.environment.destroyLayout(__classPrivateFieldGet$a(this, _LayoutModule_instances, "m", _LayoutModule_getSafeLayoutManager).call(this, `fin.Platform.Layout.destroy()`), layoutIdentity);
11755
11761
  };
11756
11762
  }
11757
11763
  /**
@@ -11881,10 +11887,10 @@ class LayoutModule extends Base {
11881
11887
  }
11882
11888
  }
11883
11889
  _LayoutModule_layoutInitializationAttempted = new WeakMap(), _LayoutModule_layoutManager = new WeakMap(), _LayoutModule_getLayoutManagerSpy = new WeakMap(), _LayoutModule_instances = new WeakSet(), _LayoutModule_getSafeLayoutManager = function _LayoutModule_getSafeLayoutManager(method) {
11884
- if (!__classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f")) {
11890
+ if (!__classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f")) {
11885
11891
  throw new Error(`You must call init before using the API ${method}`);
11886
11892
  }
11887
- return __classPrivateFieldGet$8(this, _LayoutModule_layoutManager, "f");
11893
+ return __classPrivateFieldGet$a(this, _LayoutModule_layoutManager, "f");
11888
11894
  };
11889
11895
 
11890
11896
  /**
@@ -12720,13 +12726,13 @@ class PrivateChannelProvider {
12720
12726
  }
12721
12727
  }
12722
12728
 
12723
- var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12729
+ var __classPrivateFieldSet$9 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
12724
12730
  if (kind === "m") throw new TypeError("Private method is not writable");
12725
12731
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
12726
12732
  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");
12727
12733
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
12728
12734
  };
12729
- var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12735
+ var __classPrivateFieldGet$9 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
12730
12736
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
12731
12737
  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");
12732
12738
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -12906,12 +12912,12 @@ class InteropBroker extends Base {
12906
12912
  _InteropBroker_contextGroups.set(this, void 0);
12907
12913
  _InteropBroker_providerPromise.set(this, void 0);
12908
12914
  this.getProvider = () => {
12909
- return __classPrivateFieldGet$7(this, _InteropBroker_providerPromise, "f").getValue();
12915
+ return __classPrivateFieldGet$9(this, _InteropBroker_providerPromise, "f").getValue();
12910
12916
  };
12911
12917
  this.interopClients = new Map();
12912
12918
  this.contextGroupsById = new Map();
12913
- __classPrivateFieldSet$7(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
12914
- __classPrivateFieldSet$7(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
12919
+ __classPrivateFieldSet$9(this, _InteropBroker_contextGroups, options.contextGroups ?? [...defaultContextGroups], "f");
12920
+ __classPrivateFieldSet$9(this, _InteropBroker_fdc3Info, options.fdc3Info, "f");
12915
12921
  if (options?.logging) {
12916
12922
  this.logging = options.logging;
12917
12923
  }
@@ -12919,7 +12925,7 @@ class InteropBroker extends Base {
12919
12925
  this.lastContextMap = new Map();
12920
12926
  this.sessionContextGroupMap = new Map();
12921
12927
  this.privateChannelProviderMap = new Map();
12922
- __classPrivateFieldSet$7(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
12928
+ __classPrivateFieldSet$9(this, _InteropBroker_providerPromise, new Lazy(createProvider), "f");
12923
12929
  this.setContextGroupMap();
12924
12930
  this.setupChannelProvider();
12925
12931
  }
@@ -13202,7 +13208,7 @@ class InteropBroker extends Base {
13202
13208
  // don't expose, analytics-only call
13203
13209
  });
13204
13210
  // Create copy for immutability
13205
- return __classPrivateFieldGet$7(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13211
+ return __classPrivateFieldGet$9(this, _InteropBroker_contextGroups, "f").map((contextGroup) => {
13206
13212
  return { ...contextGroup };
13207
13213
  });
13208
13214
  }
@@ -13613,7 +13619,7 @@ class InteropBroker extends Base {
13613
13619
  const { fdc3Version } = payload;
13614
13620
  return {
13615
13621
  fdc3Version,
13616
- ...__classPrivateFieldGet$7(this, _InteropBroker_fdc3Info, "f"),
13622
+ ...__classPrivateFieldGet$9(this, _InteropBroker_fdc3Info, "f"),
13617
13623
  optionalFeatures: {
13618
13624
  OriginatingAppMetadata: false,
13619
13625
  UserChannelMembershipAPIs: true
@@ -13993,13 +13999,13 @@ class InteropBroker extends Base {
13993
13999
  _InteropBroker_fdc3Info = new WeakMap(), _InteropBroker_contextGroups = new WeakMap(), _InteropBroker_providerPromise = new WeakMap();
13994
14000
  InteropBroker.checkContextIntegrity = checkContextIntegrity;
13995
14001
 
13996
- var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14002
+ var __classPrivateFieldSet$8 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
13997
14003
  if (kind === "m") throw new TypeError("Private method is not writable");
13998
14004
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13999
14005
  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");
14000
14006
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14001
14007
  };
14002
- var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14008
+ var __classPrivateFieldGet$8 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14003
14009
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14004
14010
  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");
14005
14011
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14010,7 +14016,7 @@ class SessionContextGroupClient extends Base {
14010
14016
  super(wire);
14011
14017
  _SessionContextGroupClient_clientPromise.set(this, void 0);
14012
14018
  this.id = id;
14013
- __classPrivateFieldSet$6(this, _SessionContextGroupClient_clientPromise, client, "f");
14019
+ __classPrivateFieldSet$8(this, _SessionContextGroupClient_clientPromise, client, "f");
14014
14020
  }
14015
14021
  /**
14016
14022
  * Sets a context for the session context group.
@@ -14022,7 +14028,7 @@ class SessionContextGroupClient extends Base {
14022
14028
  this.wire.sendAction('interop-session-context-group-set-context').catch((e) => {
14023
14029
  // don't expose, analytics-only call
14024
14030
  });
14025
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14031
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14026
14032
  return client.dispatch(`sessionContextGroup:setContext-${this.id}`, {
14027
14033
  sessionContextGroupId: this.id,
14028
14034
  context
@@ -14032,7 +14038,7 @@ class SessionContextGroupClient extends Base {
14032
14038
  this.wire.sendAction('interop-session-context-group-get-context').catch((e) => {
14033
14039
  // don't expose, analytics-only call
14034
14040
  });
14035
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14041
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14036
14042
  return client.dispatch(`sessionContextGroup:getContext-${this.id}`, {
14037
14043
  sessionContextGroupId: this.id,
14038
14044
  type
@@ -14045,7 +14051,7 @@ class SessionContextGroupClient extends Base {
14045
14051
  if (typeof contextHandler !== 'function') {
14046
14052
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14047
14053
  }
14048
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14054
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14049
14055
  let handlerId;
14050
14056
  if (contextType) {
14051
14057
  handlerId = `sessionContextHandler:invoke-${this.id}-${contextType}-${generateId()}`;
@@ -14058,7 +14064,7 @@ class SessionContextGroupClient extends Base {
14058
14064
  return { unsubscribe: await this.createUnsubscribeCb(handlerId) };
14059
14065
  }
14060
14066
  async createUnsubscribeCb(handlerId) {
14061
- const client = await __classPrivateFieldGet$6(this, _SessionContextGroupClient_clientPromise, "f");
14067
+ const client = await __classPrivateFieldGet$8(this, _SessionContextGroupClient_clientPromise, "f");
14062
14068
  return async () => {
14063
14069
  client.remove(handlerId);
14064
14070
  await client.dispatch(`sessionContextGroup:handlerRemoved-${this.id}`, { handlerId });
@@ -14075,13 +14081,13 @@ class SessionContextGroupClient extends Base {
14075
14081
  }
14076
14082
  _SessionContextGroupClient_clientPromise = new WeakMap();
14077
14083
 
14078
- var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14084
+ var __classPrivateFieldSet$7 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14079
14085
  if (kind === "m") throw new TypeError("Private method is not writable");
14080
14086
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14081
14087
  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");
14082
14088
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14083
14089
  };
14084
- var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14090
+ var __classPrivateFieldGet$7 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14085
14091
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14086
14092
  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");
14087
14093
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14099,11 +14105,11 @@ class ChannelEvents {
14099
14105
  _ChannelEvents_channelClient.set(this, void 0);
14100
14106
  _ChannelEvents_isChannelReady.set(this, false);
14101
14107
  _ChannelEvents_getActions.set(this, async () => {
14102
- const channelClient = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14103
- let actions = __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14108
+ const channelClient = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14109
+ let actions = __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).get(channelClient);
14104
14110
  if (!actions) {
14105
14111
  actions = {};
14106
- __classPrivateFieldGet$5(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14112
+ __classPrivateFieldGet$7(ChannelEvents, _a, "f", _ChannelEvents_actionsByClient).set(channelClient, actions);
14107
14113
  }
14108
14114
  return actions;
14109
14115
  });
@@ -14120,7 +14126,7 @@ class ChannelEvents {
14120
14126
  if (index >= 0) {
14121
14127
  callbacks.splice(index, 1);
14122
14128
  if (callbacks.length === 0) {
14123
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14129
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14124
14130
  client.remove(actionId);
14125
14131
  }
14126
14132
  }
@@ -14129,7 +14135,7 @@ class ChannelEvents {
14129
14135
  // Use lazy eval to only setup and register the channel on first attempt.
14130
14136
  if (!registrationPromise) {
14131
14137
  registrationPromise = (async () => {
14132
- const client = await __classPrivateFieldGet$5(this, _ChannelEvents_channelClient, "f");
14138
+ const client = await __classPrivateFieldGet$7(this, _ChannelEvents_channelClient, "f");
14133
14139
  await client.register(actionId, onChannelAction);
14134
14140
  })();
14135
14141
  }
@@ -14138,14 +14144,14 @@ class ChannelEvents {
14138
14144
  };
14139
14145
  });
14140
14146
  _ChannelEvents_getRegistration.set(this, async (actionId) => {
14141
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14147
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14142
14148
  return actions[actionId];
14143
14149
  });
14144
14150
  _ChannelEvents_getOrCreateRegistration.set(this, async (actionId) => {
14145
- const actions = await __classPrivateFieldGet$5(this, _ChannelEvents_getActions, "f").call(this);
14146
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14151
+ const actions = await __classPrivateFieldGet$7(this, _ChannelEvents_getActions, "f").call(this);
14152
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, actionId);
14147
14153
  if (!registration) {
14148
- actions[actionId] = __classPrivateFieldGet$5(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14154
+ actions[actionId] = __classPrivateFieldGet$7(this, _ChannelEvents_createRegistration, "f").call(this, actionId);
14149
14155
  }
14150
14156
  return actions[actionId];
14151
14157
  });
@@ -14160,7 +14166,7 @@ class ChannelEvents {
14160
14166
  * @param callback Callback to be called whenever the action is dispatched.
14161
14167
  */
14162
14168
  this.addListener = async (action, callback) => {
14163
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14169
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14164
14170
  event.callbacks.push(callback);
14165
14171
  // This ensures we only resolve the subscription once the action is registered
14166
14172
  await event.waitForRegistration();
@@ -14174,19 +14180,19 @@ class ChannelEvents {
14174
14180
  * @param callback Callback to remove.
14175
14181
  */
14176
14182
  this.removeListener = async (action, callback) => {
14177
- if (!__classPrivateFieldGet$5(this, _ChannelEvents_isChannelReady, "f")) {
14183
+ if (!__classPrivateFieldGet$7(this, _ChannelEvents_isChannelReady, "f")) {
14178
14184
  return;
14179
14185
  }
14180
- const registration = await __classPrivateFieldGet$5(this, _ChannelEvents_getRegistration, "f").call(this, action);
14186
+ const registration = await __classPrivateFieldGet$7(this, _ChannelEvents_getRegistration, "f").call(this, action);
14181
14187
  if (registration) {
14182
- const event = await __classPrivateFieldGet$5(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14188
+ const event = await __classPrivateFieldGet$7(this, _ChannelEvents_getOrCreateRegistration, "f").call(this, action);
14183
14189
  await event.dispose(callback);
14184
14190
  }
14185
14191
  };
14186
- __classPrivateFieldSet$5(this, _ChannelEvents_channelClient, channelClient, "f");
14192
+ __classPrivateFieldSet$7(this, _ChannelEvents_channelClient, channelClient, "f");
14187
14193
  Promise.resolve(channelClient)
14188
14194
  .then(() => {
14189
- __classPrivateFieldSet$5(this, _ChannelEvents_isChannelReady, true, "f");
14195
+ __classPrivateFieldSet$7(this, _ChannelEvents_isChannelReady, true, "f");
14190
14196
  })
14191
14197
  .catch(() => {
14192
14198
  // eslint-disable-next-line
@@ -14203,13 +14209,13 @@ _a = ChannelEvents, _ChannelEvents_channelClient = new WeakMap(), _ChannelEvents
14203
14209
  */
14204
14210
  _ChannelEvents_actionsByClient = { value: new WeakMap() };
14205
14211
 
14206
- var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14212
+ var __classPrivateFieldSet$6 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
14207
14213
  if (kind === "m") throw new TypeError("Private method is not writable");
14208
14214
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
14209
14215
  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");
14210
14216
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
14211
14217
  };
14212
- var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14218
+ var __classPrivateFieldGet$6 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
14213
14219
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
14214
14220
  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");
14215
14221
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -14285,7 +14291,7 @@ class InteropClient extends Base {
14285
14291
  */
14286
14292
  this.addListener = async (type, listener) => {
14287
14293
  try {
14288
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14294
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").addListener(type, listener);
14289
14295
  }
14290
14296
  catch (error) {
14291
14297
  throw new Error(`An unexpected error occurred when adding a listener to the event ${type}. \n${error.stack}.`);
@@ -14299,16 +14305,16 @@ class InteropClient extends Base {
14299
14305
  */
14300
14306
  this.removeListener = async (type, listener) => {
14301
14307
  try {
14302
- await __classPrivateFieldGet$4(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14308
+ await __classPrivateFieldGet$6(this, _InteropClient_channelEvents, "f").removeListener(type, listener);
14303
14309
  }
14304
14310
  catch (error) {
14305
14311
  throw new Error(`An unexpected error occurred when removing a listener for the event ${type}. \n${error.stack}.`);
14306
14312
  }
14307
14313
  };
14308
- __classPrivateFieldSet$4(this, _InteropClient_sessionContextGroups, new Map(), "f");
14309
- __classPrivateFieldSet$4(this, _InteropClient_clientPromise, clientPromise, "f");
14310
- __classPrivateFieldSet$4(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14311
- __classPrivateFieldSet$4(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14314
+ __classPrivateFieldSet$6(this, _InteropClient_sessionContextGroups, new Map(), "f");
14315
+ __classPrivateFieldSet$6(this, _InteropClient_clientPromise, clientPromise, "f");
14316
+ __classPrivateFieldSet$6(this, _InteropClient_fdc3Factory, fdc3Factory, "f");
14317
+ __classPrivateFieldSet$6(this, _InteropClient_channelEvents, new ChannelEvents(clientPromise), "f");
14312
14318
  }
14313
14319
  /**
14314
14320
  * Sets a context for the context group of the current entity.
@@ -14333,7 +14339,7 @@ class InteropClient extends Base {
14333
14339
  this.wire.sendAction('interop-client-set-context').catch((e) => {
14334
14340
  // don't expose, analytics-only call
14335
14341
  });
14336
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14342
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14337
14343
  return client.dispatch('setContext', { context });
14338
14344
  }
14339
14345
  /**
@@ -14400,7 +14406,7 @@ class InteropClient extends Base {
14400
14406
  if (typeof handler !== 'function') {
14401
14407
  throw new Error("Non-function argument passed to the first parameter 'handler'. Be aware that the argument order does not match the FDC3 standard.");
14402
14408
  }
14403
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14409
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14404
14410
  let handlerId;
14405
14411
  if (contextType) {
14406
14412
  handlerId = `invokeContextHandler-${contextType}-${generateId()}`;
@@ -14440,7 +14446,7 @@ class InteropClient extends Base {
14440
14446
  this.wire.sendAction('interop-client-get-context-groups').catch((e) => {
14441
14447
  // don't expose, analytics-only call
14442
14448
  });
14443
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14449
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14444
14450
  return client.dispatch('getContextGroups');
14445
14451
  }
14446
14452
  /**
@@ -14471,7 +14477,7 @@ class InteropClient extends Base {
14471
14477
  this.wire.sendAction('interop-client-join-context-group').catch((e) => {
14472
14478
  // don't expose, analytics-only call
14473
14479
  });
14474
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14480
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14475
14481
  if (!contextGroupId) {
14476
14482
  throw new Error('No contextGroupId specified for joinContextGroup.');
14477
14483
  }
@@ -14500,7 +14506,7 @@ class InteropClient extends Base {
14500
14506
  this.wire.sendAction('interop-client-remove-from-context-group').catch((e) => {
14501
14507
  // don't expose, analytics-only call
14502
14508
  });
14503
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14509
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14504
14510
  return client.dispatch('removeFromContextGroup', { target });
14505
14511
  }
14506
14512
  /**
@@ -14523,7 +14529,7 @@ class InteropClient extends Base {
14523
14529
  this.wire.sendAction('interop-client-get-all-clients-in-context-group').catch((e) => {
14524
14530
  // don't expose, analytics-only call
14525
14531
  });
14526
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14532
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14527
14533
  if (!contextGroupId) {
14528
14534
  throw new Error('No contextGroupId specified for getAllClientsInContextGroup.');
14529
14535
  }
@@ -14548,7 +14554,7 @@ class InteropClient extends Base {
14548
14554
  this.wire.sendAction('interop-client-get-info-for-context-group').catch((e) => {
14549
14555
  // don't expose, analytics-only call
14550
14556
  });
14551
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14557
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14552
14558
  if (!contextGroupId) {
14553
14559
  throw new Error('No contextGroupId specified for getInfoForContextGroup.');
14554
14560
  }
@@ -14576,7 +14582,7 @@ class InteropClient extends Base {
14576
14582
  this.wire.sendAction('interop-client-fire-intent').catch((e) => {
14577
14583
  // don't expose, this is only for api analytics purposes
14578
14584
  });
14579
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14585
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14580
14586
  return client.dispatch('fireIntent', intent);
14581
14587
  }
14582
14588
  /**
@@ -14603,7 +14609,7 @@ class InteropClient extends Base {
14603
14609
  this.wire.sendAction('interop-client-register-intent-handler').catch((e) => {
14604
14610
  // don't expose, this is only for api analytics purposes
14605
14611
  });
14606
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14612
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14607
14613
  const handlerId = `intent-handler-${intentName}`;
14608
14614
  const wrappedHandler = wrapIntentHandler(handler, handlerId);
14609
14615
  try {
@@ -14641,7 +14647,7 @@ class InteropClient extends Base {
14641
14647
  this.wire.sendAction('interop-client-get-current-context').catch((e) => {
14642
14648
  // don't expose, analytics-only call
14643
14649
  });
14644
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14650
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14645
14651
  return client.dispatch('getCurrentContext', { contextType });
14646
14652
  }
14647
14653
  /**
@@ -14661,7 +14667,7 @@ class InteropClient extends Base {
14661
14667
  this.wire.sendAction('interop-client-get-info-for-intent').catch((e) => {
14662
14668
  // don't expose, analytics-only call
14663
14669
  });
14664
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14670
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14665
14671
  return client.dispatch('getInfoForIntent', options);
14666
14672
  }
14667
14673
  /**
@@ -14692,7 +14698,7 @@ class InteropClient extends Base {
14692
14698
  this.wire.sendAction('interop-client-get-info-for-intents-by-context').catch((e) => {
14693
14699
  // don't expose, analytics-only call
14694
14700
  });
14695
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14701
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14696
14702
  return client.dispatch('getInfoForIntentsByContext', context);
14697
14703
  }
14698
14704
  /**
@@ -14724,7 +14730,7 @@ class InteropClient extends Base {
14724
14730
  this.wire.sendAction('interop-client-fire-intent-for-context').catch((e) => {
14725
14731
  // don't expose, analytics-only call
14726
14732
  });
14727
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14733
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14728
14734
  return client.dispatch('fireIntentForContext', context);
14729
14735
  }
14730
14736
  /**
@@ -14761,19 +14767,19 @@ class InteropClient extends Base {
14761
14767
  */
14762
14768
  async joinSessionContextGroup(sessionContextGroupId) {
14763
14769
  try {
14764
- const currentSessionContextGroup = __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14770
+ const currentSessionContextGroup = __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").get(sessionContextGroupId);
14765
14771
  if (currentSessionContextGroup) {
14766
14772
  return currentSessionContextGroup.getUserInstance();
14767
14773
  }
14768
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14774
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14769
14775
  const { hasConflict } = await client.dispatch('sessionContextGroup:createIfNeeded', {
14770
14776
  sessionContextGroupId
14771
14777
  });
14772
14778
  if (hasConflict) {
14773
14779
  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.`);
14774
14780
  }
14775
- const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14776
- __classPrivateFieldGet$4(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14781
+ const newSessionContextGroup = new SessionContextGroupClient(this.wire, __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f"), sessionContextGroupId);
14782
+ __classPrivateFieldGet$6(this, _InteropClient_sessionContextGroups, "f").set(sessionContextGroupId, newSessionContextGroup);
14777
14783
  return newSessionContextGroup.getUserInstance();
14778
14784
  }
14779
14785
  catch (error) {
@@ -14800,14 +14806,14 @@ class InteropClient extends Base {
14800
14806
  this.wire.sendAction('interop-client-add-ondisconnection-listener').catch((e) => {
14801
14807
  // don't expose, analytics-only call
14802
14808
  });
14803
- const client = await __classPrivateFieldGet$4(this, _InteropClient_clientPromise, "f");
14809
+ const client = await __classPrivateFieldGet$6(this, _InteropClient_clientPromise, "f");
14804
14810
  return client.onDisconnection((event) => {
14805
14811
  const { uuid } = event;
14806
14812
  listener({ type: 'interop-broker', topic: 'disconnected', brokerName: uuid });
14807
14813
  });
14808
14814
  }
14809
14815
  getFDC3Sync(version) {
14810
- return __classPrivateFieldGet$4(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14816
+ return __classPrivateFieldGet$6(this, _InteropClient_fdc3Factory, "f").call(this, version, this, this.wire);
14811
14817
  }
14812
14818
  async getFDC3(version) {
14813
14819
  return this.getFDC3Sync(version);
@@ -14818,7 +14824,7 @@ class InteropClient extends Base {
14818
14824
  * Used to ferry fdc3-only calls from the fdc3 shim to the Interop Broker
14819
14825
  */
14820
14826
  static async ferryFdc3Call(interopClient, action, payload) {
14821
- const client = await __classPrivateFieldGet$4(interopClient, _InteropClient_clientPromise, "f");
14827
+ const client = await __classPrivateFieldGet$6(interopClient, _InteropClient_clientPromise, "f");
14822
14828
  return client.dispatch(action, payload || null);
14823
14829
  }
14824
14830
  }
@@ -15184,12 +15190,12 @@ const getIntentResolution = async (interopModule, context, app, intent) => {
15184
15190
  return { ...intentResolutionInfoFromBroker, getResult };
15185
15191
  };
15186
15192
 
15187
- var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15193
+ var __classPrivateFieldGet$5 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
15188
15194
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
15189
15195
  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");
15190
15196
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
15191
15197
  };
15192
- var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15198
+ var __classPrivateFieldSet$5 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
15193
15199
  if (kind === "m") throw new TypeError("Private method is not writable");
15194
15200
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
15195
15201
  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");
@@ -15198,7 +15204,7 @@ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) |
15198
15204
  var _FDC3ModuleBase_producer;
15199
15205
  class FDC3ModuleBase {
15200
15206
  get client() {
15201
- return __classPrivateFieldGet$3(this, _FDC3ModuleBase_producer, "f").call(this);
15207
+ return __classPrivateFieldGet$5(this, _FDC3ModuleBase_producer, "f").call(this);
15202
15208
  }
15203
15209
  get fin() {
15204
15210
  return this.wire.getFin();
@@ -15207,7 +15213,7 @@ class FDC3ModuleBase {
15207
15213
  constructor(producer, wire) {
15208
15214
  this.wire = wire;
15209
15215
  _FDC3ModuleBase_producer.set(this, void 0);
15210
- __classPrivateFieldSet$3(this, _FDC3ModuleBase_producer, producer, "f");
15216
+ __classPrivateFieldSet$5(this, _FDC3ModuleBase_producer, producer, "f");
15211
15217
  }
15212
15218
  /**
15213
15219
  * Broadcasts a context for the channel of the current entity.
@@ -16007,13 +16013,13 @@ class InteropModule extends Base {
16007
16013
  const channelPrefix = 'snapshot-source-provider-';
16008
16014
  const getSnapshotSourceChannelName = (id) => `${channelPrefix}${id.uuid}`;
16009
16015
 
16010
- var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16016
+ var __classPrivateFieldSet$4 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16011
16017
  if (kind === "m") throw new TypeError("Private method is not writable");
16012
16018
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16013
16019
  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");
16014
16020
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16015
16021
  };
16016
- var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16022
+ var __classPrivateFieldGet$4 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16017
16023
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16018
16024
  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");
16019
16025
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16040,26 +16046,26 @@ class SnapshotSource extends Base {
16040
16046
  return connectionMap.get(this.identity.uuid);
16041
16047
  });
16042
16048
  _SnapshotSource_getClient.set(this, () => {
16043
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16044
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$2(this, _SnapshotSource_startConnection, "f").call(this);
16049
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise) {
16050
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = __classPrivateFieldGet$4(this, _SnapshotSource_startConnection, "f").call(this);
16045
16051
  }
16046
- return __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16052
+ return __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise;
16047
16053
  });
16048
16054
  _SnapshotSource_startConnection.set(this, async () => {
16049
16055
  const channelName = getSnapshotSourceChannelName(this.identity);
16050
16056
  try {
16051
- if (!__classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16052
- await __classPrivateFieldGet$2(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16057
+ if (!__classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired) {
16058
+ await __classPrivateFieldGet$4(this, _SnapshotSource_setUpConnectionListener, "f").call(this);
16053
16059
  }
16054
16060
  const client = await this.fin.InterApplicationBus.Channel.connect(channelName, { wait: false });
16055
16061
  client.onDisconnection(() => {
16056
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16057
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16062
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16063
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = null;
16058
16064
  });
16059
16065
  return client;
16060
16066
  }
16061
16067
  catch (e) {
16062
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16068
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).clientPromise = null;
16063
16069
  throw new Error("The targeted SnapshotSource is not currently initialized. Await this object's ready() method.");
16064
16070
  }
16065
16071
  });
@@ -16071,7 +16077,7 @@ class SnapshotSource extends Base {
16071
16077
  resolve = y;
16072
16078
  reject = n;
16073
16079
  });
16074
- __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16080
+ __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired = eventFired;
16075
16081
  const listener = async (e) => {
16076
16082
  try {
16077
16083
  if (e.channelName === channelName) {
@@ -16085,10 +16091,10 @@ class SnapshotSource extends Base {
16085
16091
  };
16086
16092
  await this.fin.InterApplicationBus.Channel.on('connected', listener);
16087
16093
  });
16088
- __classPrivateFieldSet$2(this, _SnapshotSource_identity, id, "f");
16094
+ __classPrivateFieldSet$4(this, _SnapshotSource_identity, id, "f");
16089
16095
  }
16090
16096
  get identity() {
16091
- return __classPrivateFieldGet$2(this, _SnapshotSource_identity, "f");
16097
+ return __classPrivateFieldGet$4(this, _SnapshotSource_identity, "f");
16092
16098
  }
16093
16099
  /**
16094
16100
  * Method to determine if the SnapshotSource has been initialized.
@@ -16122,11 +16128,11 @@ class SnapshotSource extends Base {
16122
16128
  // eslint-disable-next-line no-async-promise-executor
16123
16129
  try {
16124
16130
  // 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?
16125
- await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16131
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16126
16132
  }
16127
16133
  catch (e) {
16128
16134
  // it was not running.
16129
- await __classPrivateFieldGet$2(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16135
+ await __classPrivateFieldGet$4(this, _SnapshotSource_getConnection, "f").call(this).eventFired;
16130
16136
  }
16131
16137
  }
16132
16138
  /**
@@ -16135,7 +16141,7 @@ class SnapshotSource extends Base {
16135
16141
  */
16136
16142
  async getSnapshot() {
16137
16143
  this.wire.recordAnalytic('snapshot-source-get-snapshot');
16138
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16144
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16139
16145
  const response = (await client.dispatch('get-snapshot'));
16140
16146
  return (await response).snapshot;
16141
16147
  }
@@ -16145,7 +16151,7 @@ class SnapshotSource extends Base {
16145
16151
  */
16146
16152
  async applySnapshot(snapshot) {
16147
16153
  this.wire.recordAnalytic('snapshot-source-apply-snapshot');
16148
- const client = await __classPrivateFieldGet$2(this, _SnapshotSource_getClient, "f").call(this);
16154
+ const client = await __classPrivateFieldGet$4(this, _SnapshotSource_getClient, "f").call(this);
16149
16155
  return client.dispatch('apply-snapshot', { snapshot });
16150
16156
  }
16151
16157
  }
@@ -16222,13 +16228,13 @@ class SnapshotSourceModule extends Base {
16222
16228
  }
16223
16229
  }
16224
16230
 
16225
- var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16231
+ var __classPrivateFieldSet$3 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16226
16232
  if (kind === "m") throw new TypeError("Private method is not writable");
16227
16233
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16228
16234
  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");
16229
16235
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16230
16236
  };
16231
- var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16237
+ var __classPrivateFieldGet$3 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16232
16238
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16233
16239
  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");
16234
16240
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
@@ -16257,11 +16263,11 @@ class NotificationManagerInstance {
16257
16263
  _NotificationManagerInstance_handler.set(this, void 0);
16258
16264
  _NotificationManagerInstance_id.set(this, void 0);
16259
16265
  _NotificationManagerInstance_isReceivingNotifications.set(this, new Lazy(async () => {
16260
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16261
- if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f")) {
16266
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").registerMessageHandler((message) => {
16267
+ if (message.action === 'notification-created' && message.payload.managerId === __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f")) {
16262
16268
  const { notificationId, properties, documentUrl: url, notificationIcon: icon, badge, image } = message.payload;
16263
16269
  try {
16264
- __classPrivateFieldGet$1(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16270
+ __classPrivateFieldGet$3(this, _NotificationManagerInstance_handler, "f")?.call(this, {
16265
16271
  properties,
16266
16272
  images: {
16267
16273
  image,
@@ -16299,8 +16305,8 @@ class NotificationManagerInstance {
16299
16305
  * ```
16300
16306
  */
16301
16307
  this.setNotificationHandler = async (handler) => {
16302
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16303
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_handler, handler, "f");
16308
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_isReceivingNotifications, "f").getValue();
16309
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_handler, handler, "f");
16304
16310
  };
16305
16311
  /**
16306
16312
  * Destroys the current NotificationManagerInstance.
@@ -16311,7 +16317,7 @@ class NotificationManagerInstance {
16311
16317
  * ```
16312
16318
  */
16313
16319
  this.destroy = async () => {
16314
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$1(this, _NotificationManagerInstance_id, "f") });
16320
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('destroy-notification-manager', { managerId: __classPrivateFieldGet$3(this, _NotificationManagerInstance_id, "f") });
16315
16321
  };
16316
16322
  /**
16317
16323
  * Dispatches a Notification lifecycle event ('close' | 'click' | 'show').
@@ -16337,13 +16343,13 @@ class NotificationManagerInstance {
16337
16343
  */
16338
16344
  this.dispatch = async (event) => {
16339
16345
  const { notificationId, type } = event;
16340
- await __classPrivateFieldGet$1(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16346
+ await __classPrivateFieldGet$3(this, _NotificationManagerInstance_wire, "f").sendAction('dispatch-notification-event', {
16341
16347
  notificationId,
16342
16348
  type
16343
16349
  });
16344
16350
  };
16345
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_wire, wire, "f");
16346
- __classPrivateFieldSet$1(this, _NotificationManagerInstance_id, id, "f");
16351
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_wire, wire, "f");
16352
+ __classPrivateFieldSet$3(this, _NotificationManagerInstance_id, id, "f");
16347
16353
  }
16348
16354
  }
16349
16355
  _NotificationManagerInstance_wire = new WeakMap(), _NotificationManagerInstance_handler = new WeakMap(), _NotificationManagerInstance_id = new WeakMap(), _NotificationManagerInstance_isReceivingNotifications = new WeakMap();
@@ -16377,6 +16383,133 @@ class NotificationManagerModule extends Base {
16377
16383
  }
16378
16384
  }
16379
16385
 
16386
+ var __classPrivateFieldSet$2 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16387
+ if (kind === "m") throw new TypeError("Private method is not writable");
16388
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16389
+ 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");
16390
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16391
+ };
16392
+ var __classPrivateFieldGet$2 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16393
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16394
+ 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");
16395
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16396
+ };
16397
+ var _Writable_value, _Writable_listeners, _Writable_readonlyWrapper;
16398
+ /**
16399
+ * Internal, a mutable implementation of the observable pattern.
16400
+ * It strictly controls its internal state and provides a secure
16401
+ * read-only wrapper for public consumption.
16402
+ */
16403
+ class Writable {
16404
+ constructor(initialValue) {
16405
+ _Writable_value.set(this, void 0);
16406
+ _Writable_listeners.set(this, new Set());
16407
+ _Writable_readonlyWrapper.set(this, null);
16408
+ this.get = () => {
16409
+ return __classPrivateFieldGet$2(this, _Writable_value, "f");
16410
+ };
16411
+ this.set = (newValue) => {
16412
+ if (__classPrivateFieldGet$2(this, _Writable_value, "f") !== newValue) {
16413
+ __classPrivateFieldSet$2(this, _Writable_value, newValue, "f");
16414
+ // Snapshot listeners before invoking so subscribe/unsubscribe calls
16415
+ // made by a listener affect future emits, not the in-flight one.
16416
+ for (const listener of [...__classPrivateFieldGet$2(this, _Writable_listeners, "f")]) {
16417
+ try {
16418
+ listener();
16419
+ }
16420
+ catch (err) {
16421
+ // A throwing listener must not block later listeners; rethrow async
16422
+ // so the error surfaces via the host's unhandled-error reporter.
16423
+ setTimeout(() => {
16424
+ throw err;
16425
+ }, 0);
16426
+ }
16427
+ }
16428
+ }
16429
+ };
16430
+ this.subscribe = (listener) => {
16431
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").add(listener);
16432
+ return () => {
16433
+ __classPrivateFieldGet$2(this, _Writable_listeners, "f").delete(listener);
16434
+ };
16435
+ };
16436
+ __classPrivateFieldSet$2(this, _Writable_value, initialValue, "f");
16437
+ }
16438
+ get readonly() {
16439
+ if (!__classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f")) {
16440
+ __classPrivateFieldSet$2(this, _Writable_readonlyWrapper, {
16441
+ get: this.get,
16442
+ subscribe: this.subscribe
16443
+ }, "f");
16444
+ }
16445
+ return __classPrivateFieldGet$2(this, _Writable_readonlyWrapper, "f");
16446
+ }
16447
+ }
16448
+ _Writable_value = new WeakMap(), _Writable_listeners = new WeakMap(), _Writable_readonlyWrapper = new WeakMap();
16449
+
16450
+ var __classPrivateFieldSet$1 = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
16451
+ if (kind === "m") throw new TypeError("Private method is not writable");
16452
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
16453
+ 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");
16454
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16455
+ };
16456
+ var __classPrivateFieldGet$1 = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
16457
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
16458
+ 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");
16459
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
16460
+ };
16461
+ var _ChromeBrowserActionsImpl_wire, _ChromeBrowserActionsImpl_state;
16462
+ class ChromeBrowserActionsImpl {
16463
+ constructor(wire) {
16464
+ _ChromeBrowserActionsImpl_wire.set(this, void 0);
16465
+ _ChromeBrowserActionsImpl_state.set(this, new Writable([]));
16466
+ __classPrivateFieldSet$1(this, _ChromeBrowserActionsImpl_wire, wire, "f");
16467
+ }
16468
+ get state() {
16469
+ return __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_state, "f").readonly;
16470
+ }
16471
+ /**
16472
+ * @internal Wires up the runtime push-update handler. Called once at construction
16473
+ * for window contexts; views never receive these updates.
16474
+ */
16475
+ static activate(instance) {
16476
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_wire, "f").registerMessageHandler((msg) => {
16477
+ if (msg?.action === 'chrome-browser-actions-update') {
16478
+ __classPrivateFieldGet$1(instance, _ChromeBrowserActionsImpl_state, "f").set(msg?.payload?.actions ?? []);
16479
+ return true;
16480
+ }
16481
+ return false;
16482
+ });
16483
+ }
16484
+ async getExtensionActions() {
16485
+ const ack = await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-get-extension-actions', {});
16486
+ return ack.payload.data.actions;
16487
+ }
16488
+ async invokeExtensionAction(options) {
16489
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-invoke-extension-action', options);
16490
+ }
16491
+ async hideActiveExtensionPopup() {
16492
+ await __classPrivateFieldGet$1(this, _ChromeBrowserActionsImpl_wire, "f").sendAction('chrome-browser-hide-active-extension-popup', {});
16493
+ }
16494
+ }
16495
+ _ChromeBrowserActionsImpl_wire = new WeakMap(), _ChromeBrowserActionsImpl_state = new WeakMap();
16496
+
16497
+ /**
16498
+ * Client-side handle for the chrome-browser feature on the current window.
16499
+ *
16500
+ * The window must have been created with `chromeBrowser: true` for these APIs to do
16501
+ * anything meaningful — there is no separate `init()` step. From a view or a non
16502
+ * chrome-browser window, calls into `Actions` will resolve to empty results.
16503
+ */
16504
+ class ChromeBrowserModule {
16505
+ constructor(wire, isWindow) {
16506
+ this.Actions = new ChromeBrowserActionsImpl(wire);
16507
+ if (isWindow) {
16508
+ ChromeBrowserActionsImpl.activate(this.Actions);
16509
+ }
16510
+ }
16511
+ }
16512
+
16380
16513
  /**
16381
16514
  * @internal
16382
16515
  */
@@ -16400,6 +16533,7 @@ class Fin extends events.EventEmitter {
16400
16533
  this.Interop = new InteropModule(wire);
16401
16534
  this.SnapshotSource = new SnapshotSourceModule(wire);
16402
16535
  this.NotificationManager = new NotificationManagerModule(wire);
16536
+ this.ChromeBrowser = new ChromeBrowserModule(wire, wire.me.entityType === 'window');
16403
16537
  wire.registerFin(this);
16404
16538
  this.me = getMe(wire);
16405
16539
  // Handle disconnect events
@@ -17152,7 +17286,7 @@ class NodeEnvironment extends BaseEnvironment {
17152
17286
  };
17153
17287
  }
17154
17288
  getAdapterVersionSync() {
17155
- return "45.100.70";
17289
+ return "45.100.73";
17156
17290
  }
17157
17291
  observeBounds(element, onChange) {
17158
17292
  throw new Error('Method not implemented.');