@naviedu/room-platform-react 0.0.57 → 0.0.59

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 (3) hide show
  1. package/index.d.ts +3 -1
  2. package/index.esm.js +891 -725
  3. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -57,7 +57,7 @@ function _create_class$2(Constructor, protoProps, staticProps) {
57
57
  if (staticProps) _defineProperties$2(Constructor, staticProps);
58
58
  return Constructor;
59
59
  }
60
- function _define_property$D(obj, key, value) {
60
+ function _define_property$E(obj, key, value) {
61
61
  if (key in obj) {
62
62
  Object.defineProperty(obj, key, {
63
63
  value: value,
@@ -119,7 +119,7 @@ var RoomPlatformSurfaceBoundary = /*#__PURE__*/ function(Component) {
119
119
  function RoomPlatformSurfaceBoundary() {
120
120
  _class_call_check$4(this, RoomPlatformSurfaceBoundary);
121
121
  var _this;
122
- _this = _call_super$2(this, RoomPlatformSurfaceBoundary, arguments), _define_property$D(_this, "state", {
122
+ _this = _call_super$2(this, RoomPlatformSurfaceBoundary, arguments), _define_property$E(_this, "state", {
123
123
  hasError: false
124
124
  });
125
125
  return _this;
@@ -151,7 +151,7 @@ var RoomPlatformSurfaceBoundary = /*#__PURE__*/ function(Component) {
151
151
  return RoomPlatformSurfaceBoundary;
152
152
  }(Component);
153
153
 
154
- function _define_property$C(obj, key, value) {
154
+ function _define_property$D(obj, key, value) {
155
155
  if (key in obj) {
156
156
  Object.defineProperty(obj, key, {
157
157
  value: value,
@@ -164,7 +164,7 @@ function _define_property$C(obj, key, value) {
164
164
  }
165
165
  return obj;
166
166
  }
167
- function _object_spread$y(target) {
167
+ function _object_spread$z(target) {
168
168
  for(var i = 1; i < arguments.length; i++){
169
169
  var source = arguments[i] != null ? arguments[i] : {};
170
170
  var ownKeys = Object.keys(source);
@@ -174,7 +174,7 @@ function _object_spread$y(target) {
174
174
  }));
175
175
  }
176
176
  ownKeys.forEach(function(key) {
177
- _define_property$C(target, key, source[key]);
177
+ _define_property$D(target, key, source[key]);
178
178
  });
179
179
  }
180
180
  return target;
@@ -182,7 +182,7 @@ function _object_spread$y(target) {
182
182
  function RoomPlatformExtensionZone(param) {
183
183
  var Extension = param.component, extensionProps = param.extensionProps;
184
184
  return /*#__PURE__*/ jsx(RoomPlatformSurfaceBoundary, {
185
- children: /*#__PURE__*/ jsx(Extension, _object_spread$y({}, extensionProps))
185
+ children: /*#__PURE__*/ jsx(Extension, _object_spread$z({}, extensionProps))
186
186
  });
187
187
  }
188
188
  var getParticipantTabTitle = function(participantTab) {
@@ -213,7 +213,7 @@ var isRoomPlatformCapability = function(value) {
213
213
  return roomPlatformCapabilities.includes(value);
214
214
  };
215
215
 
216
- function _define_property$B(obj, key, value) {
216
+ function _define_property$C(obj, key, value) {
217
217
  if (key in obj) {
218
218
  Object.defineProperty(obj, key, {
219
219
  value: value,
@@ -248,7 +248,7 @@ var RoomPlatformAction = /*#__PURE__*/ function(RoomPlatformAction) {
248
248
  return RoomPlatformAction;
249
249
  }({});
250
250
  var _obj;
251
- var roomActionCapabilities = (_obj = {}, _define_property$B(_obj, "private_room.invite", RoomPlatformCapability.PRIVATE_ROOM_INVITE), _define_property$B(_obj, "private_room.respond", RoomPlatformCapability.PRIVATE_ROOM_RESPOND), _define_property$B(_obj, "private_room.close", RoomPlatformCapability.PRIVATE_ROOM_CLOSE), _define_property$B(_obj, "private_room.screen_share.start", RoomPlatformCapability.MEDIA_SHARE_SCREEN), _define_property$B(_obj, "private_room.screen_share.stop", RoomPlatformCapability.MEDIA_SHARE_SCREEN), _define_property$B(_obj, "monitor.start", RoomPlatformCapability.MONITOR_MANAGE), _define_property$B(_obj, "monitor.stop", RoomPlatformCapability.MONITOR_MANAGE), _define_property$B(_obj, "moderation.mute", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "moderation.remove", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "moderation.lower_hand", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "whiteboard.clear", RoomPlatformCapability.WHITEBOARD_CLEAR), _define_property$B(_obj, "speak.request", RoomPlatformCapability.ROOM_SPEAK_REQUEST), _define_property$B(_obj, "speak.cancel", RoomPlatformCapability.ROOM_SPEAK_REQUEST), _define_property$B(_obj, "speak.approve", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "speak.reject", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "speaker.set", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "speaker.clear", RoomPlatformCapability.ROOM_MODERATE), _define_property$B(_obj, "room.mode.set", RoomPlatformCapability.ROOM_SET_MODE), _obj);
251
+ var roomActionCapabilities = (_obj = {}, _define_property$C(_obj, "private_room.invite", RoomPlatformCapability.PRIVATE_ROOM_INVITE), _define_property$C(_obj, "private_room.respond", RoomPlatformCapability.PRIVATE_ROOM_RESPOND), _define_property$C(_obj, "private_room.close", RoomPlatformCapability.PRIVATE_ROOM_CLOSE), _define_property$C(_obj, "private_room.screen_share.start", RoomPlatformCapability.MEDIA_SHARE_SCREEN), _define_property$C(_obj, "private_room.screen_share.stop", RoomPlatformCapability.MEDIA_SHARE_SCREEN), _define_property$C(_obj, "monitor.start", RoomPlatformCapability.MONITOR_MANAGE), _define_property$C(_obj, "monitor.stop", RoomPlatformCapability.MONITOR_MANAGE), _define_property$C(_obj, "moderation.mute", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "moderation.remove", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "moderation.lower_hand", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "whiteboard.clear", RoomPlatformCapability.WHITEBOARD_CLEAR), _define_property$C(_obj, "speak.request", RoomPlatformCapability.ROOM_SPEAK_REQUEST), _define_property$C(_obj, "speak.cancel", RoomPlatformCapability.ROOM_SPEAK_REQUEST), _define_property$C(_obj, "speak.approve", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "speak.reject", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "speaker.set", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "speaker.clear", RoomPlatformCapability.ROOM_MODERATE), _define_property$C(_obj, "room.mode.set", RoomPlatformCapability.ROOM_SET_MODE), _obj);
252
252
 
253
253
  function _type_of$d(obj) {
254
254
  "@swc/helpers - typeof";
@@ -292,7 +292,7 @@ function _array_with_holes$y(arr) {
292
292
  function _array_without_holes$h(arr) {
293
293
  if (Array.isArray(arr)) return _array_like_to_array$D(arr);
294
294
  }
295
- function _define_property$A(obj, key, value) {
295
+ function _define_property$B(obj, key, value) {
296
296
  if (key in obj) {
297
297
  Object.defineProperty(obj, key, {
298
298
  value: value,
@@ -338,7 +338,7 @@ function _non_iterable_rest$y() {
338
338
  function _non_iterable_spread$h() {
339
339
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
340
340
  }
341
- function _object_spread$x(target) {
341
+ function _object_spread$y(target) {
342
342
  for(var i = 1; i < arguments.length; i++){
343
343
  var source = arguments[i] != null ? arguments[i] : {};
344
344
  var ownKeys = Object.keys(source);
@@ -348,7 +348,7 @@ function _object_spread$x(target) {
348
348
  }));
349
349
  }
350
350
  ownKeys.forEach(function(key) {
351
- _define_property$A(target, key, source[key]);
351
+ _define_property$B(target, key, source[key]);
352
352
  });
353
353
  }
354
354
  return target;
@@ -714,7 +714,7 @@ var createParseClassName = function(config) {
714
714
  };
715
715
  };
716
716
  var createConfigUtils = function(config) {
717
- return _object_spread$x({
717
+ return _object_spread$y({
718
718
  cache: createLruCache(config.cacheSize),
719
719
  parseClassName: createParseClassName(config),
720
720
  sortModifiers: createSortModifiers(config)
@@ -5325,7 +5325,7 @@ function _array_with_holes$x(arr) {
5325
5325
  function _array_without_holes$g(arr) {
5326
5326
  if (Array.isArray(arr)) return _array_like_to_array$C(arr);
5327
5327
  }
5328
- function _define_property$z(obj, key, value) {
5328
+ function _define_property$A(obj, key, value) {
5329
5329
  if (key in obj) {
5330
5330
  Object.defineProperty(obj, key, {
5331
5331
  value: value,
@@ -5371,7 +5371,7 @@ function _non_iterable_rest$x() {
5371
5371
  function _non_iterable_spread$g() {
5372
5372
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5373
5373
  }
5374
- function _object_spread$w(target) {
5374
+ function _object_spread$x(target) {
5375
5375
  for(var i = 1; i < arguments.length; i++){
5376
5376
  var source = arguments[i] != null ? arguments[i] : {};
5377
5377
  var ownKeys = Object.keys(source);
@@ -5381,7 +5381,7 @@ function _object_spread$w(target) {
5381
5381
  }));
5382
5382
  }
5383
5383
  ownKeys.forEach(function(key) {
5384
- _define_property$z(target, key, source[key]);
5384
+ _define_property$A(target, key, source[key]);
5385
5385
  });
5386
5386
  }
5387
5387
  return target;
@@ -5467,7 +5467,7 @@ var cva = function(base, config) {
5467
5467
  ]);
5468
5468
  return Object.entries(compoundVariantOptions).every(function(param) {
5469
5469
  var _param = _sliced_to_array$x(param, 2), key = _param[0], value = _param[1];
5470
- return Array.isArray(value) ? value.includes(_object_spread$w({}, defaultVariants, propsWithoutUndefined)[key]) : _object_spread$w({}, defaultVariants, propsWithoutUndefined)[key] === value;
5470
+ return Array.isArray(value) ? value.includes(_object_spread$x({}, defaultVariants, propsWithoutUndefined)[key]) : _object_spread$x({}, defaultVariants, propsWithoutUndefined)[key] === value;
5471
5471
  }) ? _to_consumable_array$g(acc).concat([
5472
5472
  cvClass,
5473
5473
  cvClassName
@@ -5477,7 +5477,7 @@ var cva = function(base, config) {
5477
5477
  };
5478
5478
  };
5479
5479
 
5480
- function _define_property$y(obj, key, value) {
5480
+ function _define_property$z(obj, key, value) {
5481
5481
  if (key in obj) {
5482
5482
  Object.defineProperty(obj, key, {
5483
5483
  value: value,
@@ -5490,7 +5490,7 @@ function _define_property$y(obj, key, value) {
5490
5490
  }
5491
5491
  return obj;
5492
5492
  }
5493
- function _object_spread$v(target) {
5493
+ function _object_spread$w(target) {
5494
5494
  for(var i = 1; i < arguments.length; i++){
5495
5495
  var source = arguments[i] != null ? arguments[i] : {};
5496
5496
  var ownKeys = Object.keys(source);
@@ -5500,7 +5500,7 @@ function _object_spread$v(target) {
5500
5500
  }));
5501
5501
  }
5502
5502
  ownKeys.forEach(function(key) {
5503
- _define_property$y(target, key, source[key]);
5503
+ _define_property$z(target, key, source[key]);
5504
5504
  });
5505
5505
  }
5506
5506
  return target;
@@ -5577,7 +5577,7 @@ function Button(_0) {
5577
5577
  "asChild"
5578
5578
  ]);
5579
5579
  var Comp = asChild ? Slot.Root : 'button';
5580
- return /*#__PURE__*/ jsx(Comp, _object_spread$v({
5580
+ return /*#__PURE__*/ jsx(Comp, _object_spread$w({
5581
5581
  "data-slot": "button",
5582
5582
  "data-variant": variant,
5583
5583
  "data-size": size,
@@ -5601,7 +5601,7 @@ function usePortalContainer() {
5601
5601
  return useContext(PortalContainerContext);
5602
5602
  }
5603
5603
 
5604
- function _define_property$x(obj, key, value) {
5604
+ function _define_property$y(obj, key, value) {
5605
5605
  if (key in obj) {
5606
5606
  Object.defineProperty(obj, key, {
5607
5607
  value: value,
@@ -5632,7 +5632,7 @@ function _object_destructuring_empty$3(o) {
5632
5632
  if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
5633
5633
  return o;
5634
5634
  }
5635
- function _object_spread$u(target) {
5635
+ function _object_spread$v(target) {
5636
5636
  for(var i = 1; i < arguments.length; i++){
5637
5637
  var source = arguments[i] != null ? arguments[i] : {};
5638
5638
  var ownKeys = Object.keys(source);
@@ -5642,7 +5642,7 @@ function _object_spread$u(target) {
5642
5642
  }));
5643
5643
  }
5644
5644
  ownKeys.forEach(function(key) {
5645
- _define_property$x(target, key, source[key]);
5645
+ _define_property$y(target, key, source[key]);
5646
5646
  });
5647
5647
  }
5648
5648
  return target;
@@ -5704,13 +5704,13 @@ function _object_without_properties_loose$d(source, excluded) {
5704
5704
  }
5705
5705
  function AlertDialog(_0) {
5706
5706
  _object_destructuring_empty$3(_0); var props = _extends$3({}, _0);
5707
- return /*#__PURE__*/ jsx(AlertDialog$1.Root, _object_spread$u({
5707
+ return /*#__PURE__*/ jsx(AlertDialog$1.Root, _object_spread$v({
5708
5708
  "data-slot": "alert-dialog"
5709
5709
  }, props));
5710
5710
  }
5711
5711
  function AlertDialogTrigger(_0) {
5712
5712
  _object_destructuring_empty$3(_0); var props = _extends$3({}, _0);
5713
- return /*#__PURE__*/ jsx(AlertDialog$1.Trigger, _object_spread$u({
5713
+ return /*#__PURE__*/ jsx(AlertDialog$1.Trigger, _object_spread$v({
5714
5714
  "data-slot": "alert-dialog-trigger"
5715
5715
  }, props));
5716
5716
  }
@@ -5720,7 +5720,7 @@ function AlertDialogPortal(_0) {
5720
5720
  ]);
5721
5721
  var _ref;
5722
5722
  var inheritedContainer = usePortalContainer();
5723
- return /*#__PURE__*/ jsx(AlertDialog$1.Portal, _object_spread_props$p(_object_spread$u({
5723
+ return /*#__PURE__*/ jsx(AlertDialog$1.Portal, _object_spread_props$p(_object_spread$v({
5724
5724
  "data-slot": "alert-dialog-portal"
5725
5725
  }, props), {
5726
5726
  container: (_ref = container !== null && container !== void 0 ? container : inheritedContainer) !== null && _ref !== void 0 ? _ref : undefined
@@ -5730,7 +5730,7 @@ function AlertDialogOverlay(_0) {
5730
5730
  var className = _0.className, props = _object_without_properties$d(_0, [
5731
5731
  "className"
5732
5732
  ]);
5733
- return /*#__PURE__*/ jsx(AlertDialog$1.Overlay, _object_spread$u({
5733
+ return /*#__PURE__*/ jsx(AlertDialog$1.Overlay, _object_spread$v({
5734
5734
  "data-slot": "alert-dialog-overlay",
5735
5735
  className: cn('fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0', className)
5736
5736
  }, props));
@@ -5743,7 +5743,7 @@ function AlertDialogContent(_0) {
5743
5743
  return /*#__PURE__*/ jsxs(AlertDialogPortal, {
5744
5744
  children: [
5745
5745
  /*#__PURE__*/ jsx(AlertDialogOverlay, {}),
5746
- /*#__PURE__*/ jsx(AlertDialog$1.Content, _object_spread$u({
5746
+ /*#__PURE__*/ jsx(AlertDialog$1.Content, _object_spread$v({
5747
5747
  "data-slot": "alert-dialog-content",
5748
5748
  "data-size": size,
5749
5749
  className: cn('group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95', className)
@@ -5755,7 +5755,7 @@ function AlertDialogHeader(_0) {
5755
5755
  var className = _0.className, props = _object_without_properties$d(_0, [
5756
5756
  "className"
5757
5757
  ]);
5758
- return /*#__PURE__*/ jsx("div", _object_spread$u({
5758
+ return /*#__PURE__*/ jsx("div", _object_spread$v({
5759
5759
  "data-slot": "alert-dialog-header",
5760
5760
  className: cn('grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]', className)
5761
5761
  }, props));
@@ -5764,7 +5764,7 @@ function AlertDialogFooter(_0) {
5764
5764
  var className = _0.className, props = _object_without_properties$d(_0, [
5765
5765
  "className"
5766
5766
  ]);
5767
- return /*#__PURE__*/ jsx("div", _object_spread$u({
5767
+ return /*#__PURE__*/ jsx("div", _object_spread$v({
5768
5768
  "data-slot": "alert-dialog-footer",
5769
5769
  className: cn('-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end', className)
5770
5770
  }, props));
@@ -5773,7 +5773,7 @@ function AlertDialogTitle(_0) {
5773
5773
  var className = _0.className, props = _object_without_properties$d(_0, [
5774
5774
  "className"
5775
5775
  ]);
5776
- return /*#__PURE__*/ jsx(AlertDialog$1.Title, _object_spread$u({
5776
+ return /*#__PURE__*/ jsx(AlertDialog$1.Title, _object_spread$v({
5777
5777
  "data-slot": "alert-dialog-title",
5778
5778
  className: cn('text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2', className)
5779
5779
  }, props));
@@ -5782,7 +5782,7 @@ function AlertDialogDescription(_0) {
5782
5782
  var className = _0.className, props = _object_without_properties$d(_0, [
5783
5783
  "className"
5784
5784
  ]);
5785
- return /*#__PURE__*/ jsx(AlertDialog$1.Description, _object_spread$u({
5785
+ return /*#__PURE__*/ jsx(AlertDialog$1.Description, _object_spread$v({
5786
5786
  "data-slot": "alert-dialog-description",
5787
5787
  className: cn('text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground', className)
5788
5788
  }, props));
@@ -5797,7 +5797,7 @@ function AlertDialogAction(_0) {
5797
5797
  variant: variant,
5798
5798
  size: size,
5799
5799
  asChild: true,
5800
- children: /*#__PURE__*/ jsx(AlertDialog$1.Action, _object_spread$u({
5800
+ children: /*#__PURE__*/ jsx(AlertDialog$1.Action, _object_spread$v({
5801
5801
  "data-slot": "alert-dialog-action",
5802
5802
  className: cn(className)
5803
5803
  }, props))
@@ -5813,14 +5813,14 @@ function AlertDialogCancel(_0) {
5813
5813
  variant: variant,
5814
5814
  size: size,
5815
5815
  asChild: true,
5816
- children: /*#__PURE__*/ jsx(AlertDialog$1.Cancel, _object_spread$u({
5816
+ children: /*#__PURE__*/ jsx(AlertDialog$1.Cancel, _object_spread$v({
5817
5817
  "data-slot": "alert-dialog-cancel",
5818
5818
  className: cn(className)
5819
5819
  }, props))
5820
5820
  });
5821
5821
  }
5822
5822
 
5823
- function _define_property$w(obj, key, value) {
5823
+ function _define_property$x(obj, key, value) {
5824
5824
  if (key in obj) {
5825
5825
  Object.defineProperty(obj, key, {
5826
5826
  value: value,
@@ -5833,7 +5833,7 @@ function _define_property$w(obj, key, value) {
5833
5833
  }
5834
5834
  return obj;
5835
5835
  }
5836
- function _object_spread$t(target) {
5836
+ function _object_spread$u(target) {
5837
5837
  for(var i = 1; i < arguments.length; i++){
5838
5838
  var source = arguments[i] != null ? arguments[i] : {};
5839
5839
  var ownKeys = Object.keys(source);
@@ -5843,7 +5843,7 @@ function _object_spread$t(target) {
5843
5843
  }));
5844
5844
  }
5845
5845
  ownKeys.forEach(function(key) {
5846
- _define_property$w(target, key, source[key]);
5846
+ _define_property$x(target, key, source[key]);
5847
5847
  });
5848
5848
  }
5849
5849
  return target;
@@ -5906,7 +5906,7 @@ function Badge(_0) {
5906
5906
  "asChild"
5907
5907
  ]);
5908
5908
  var Comp = asChild ? Slot.Root : 'span';
5909
- return /*#__PURE__*/ jsx(Comp, _object_spread$t({
5909
+ return /*#__PURE__*/ jsx(Comp, _object_spread$u({
5910
5910
  "data-slot": "badge",
5911
5911
  "data-variant": variant,
5912
5912
  className: cn(badgeVariants({
@@ -5923,7 +5923,7 @@ function _array_like_to_array$B(arr, len) {
5923
5923
  function _array_with_holes$w(arr) {
5924
5924
  if (Array.isArray(arr)) return arr;
5925
5925
  }
5926
- function _define_property$v(obj, key, value) {
5926
+ function _define_property$w(obj, key, value) {
5927
5927
  if (key in obj) {
5928
5928
  Object.defineProperty(obj, key, {
5929
5929
  value: value,
@@ -5981,7 +5981,7 @@ function _object_destructuring_empty$2(o) {
5981
5981
  if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
5982
5982
  return o;
5983
5983
  }
5984
- function _object_spread$s(target) {
5984
+ function _object_spread$t(target) {
5985
5985
  for(var i = 1; i < arguments.length; i++){
5986
5986
  var source = arguments[i] != null ? arguments[i] : {};
5987
5987
  var ownKeys = Object.keys(source);
@@ -5991,7 +5991,7 @@ function _object_spread$s(target) {
5991
5991
  }));
5992
5992
  }
5993
5993
  ownKeys.forEach(function(key) {
5994
- _define_property$v(target, key, source[key]);
5994
+ _define_property$w(target, key, source[key]);
5995
5995
  });
5996
5996
  }
5997
5997
  return target;
@@ -6064,7 +6064,7 @@ function _unsupported_iterable_to_array$B(o, minLen) {
6064
6064
  }
6065
6065
  function Dialog(_0) {
6066
6066
  _object_destructuring_empty$2(_0); var props = _extends$2({}, _0);
6067
- return /*#__PURE__*/ jsx(Dialog$1.Root, _object_spread$s({
6067
+ return /*#__PURE__*/ jsx(Dialog$1.Root, _object_spread$t({
6068
6068
  "data-slot": "dialog"
6069
6069
  }, props));
6070
6070
  }
@@ -6074,7 +6074,7 @@ function DialogPortal(_0) {
6074
6074
  ]);
6075
6075
  var _ref;
6076
6076
  var inheritedContainer = usePortalContainer();
6077
- return /*#__PURE__*/ jsx(Dialog$1.Portal, _object_spread_props$o(_object_spread$s({
6077
+ return /*#__PURE__*/ jsx(Dialog$1.Portal, _object_spread_props$o(_object_spread$t({
6078
6078
  "data-slot": "dialog-portal"
6079
6079
  }, props), {
6080
6080
  container: (_ref = container !== null && container !== void 0 ? container : inheritedContainer) !== null && _ref !== void 0 ? _ref : undefined
@@ -6084,7 +6084,7 @@ function DialogOverlay(_0) {
6084
6084
  var className = _0.className, props = _object_without_properties$b(_0, [
6085
6085
  "className"
6086
6086
  ]);
6087
- return /*#__PURE__*/ jsx(Dialog$1.Overlay, _object_spread$s({
6087
+ return /*#__PURE__*/ jsx(Dialog$1.Overlay, _object_spread$t({
6088
6088
  "data-slot": "dialog-overlay",
6089
6089
  className: cn('fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0', className)
6090
6090
  }, props));
@@ -6100,7 +6100,7 @@ function DialogContent(_0) {
6100
6100
  return /*#__PURE__*/ jsxs(DialogPortal, {
6101
6101
  children: [
6102
6102
  /*#__PURE__*/ jsx(DialogOverlay, {}),
6103
- /*#__PURE__*/ jsxs(Dialog$1.Content, _object_spread_props$o(_object_spread$s({
6103
+ /*#__PURE__*/ jsxs(Dialog$1.Content, _object_spread_props$o(_object_spread$t({
6104
6104
  "data-slot": "dialog-content",
6105
6105
  className: cn('fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95', className, isMaximized && 'w-screen h-screen max-w-none sm:max-w-none rounded-none')
6106
6106
  }, props), {
@@ -6152,7 +6152,7 @@ function DialogHeader(_0) {
6152
6152
  var className = _0.className, props = _object_without_properties$b(_0, [
6153
6153
  "className"
6154
6154
  ]);
6155
- return /*#__PURE__*/ jsx("div", _object_spread$s({
6155
+ return /*#__PURE__*/ jsx("div", _object_spread$t({
6156
6156
  "data-slot": "dialog-header",
6157
6157
  className: cn('flex flex-col gap-2', className)
6158
6158
  }, props));
@@ -6163,7 +6163,7 @@ function DialogFooter(_0) {
6163
6163
  "showCloseButton",
6164
6164
  "children"
6165
6165
  ]);
6166
- return /*#__PURE__*/ jsxs("div", _object_spread_props$o(_object_spread$s({
6166
+ return /*#__PURE__*/ jsxs("div", _object_spread_props$o(_object_spread$t({
6167
6167
  "data-slot": "dialog-footer",
6168
6168
  className: cn('-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end', className)
6169
6169
  }, props), {
@@ -6183,13 +6183,13 @@ function DialogTitle(_0) {
6183
6183
  var className = _0.className, props = _object_without_properties$b(_0, [
6184
6184
  "className"
6185
6185
  ]);
6186
- return /*#__PURE__*/ jsx(Dialog$1.Title, _object_spread$s({
6186
+ return /*#__PURE__*/ jsx(Dialog$1.Title, _object_spread$t({
6187
6187
  "data-slot": "dialog-title",
6188
6188
  className: cn('text-base leading-none font-medium', className)
6189
6189
  }, props));
6190
6190
  }
6191
6191
 
6192
- function _define_property$u(obj, key, value) {
6192
+ function _define_property$v(obj, key, value) {
6193
6193
  if (key in obj) {
6194
6194
  Object.defineProperty(obj, key, {
6195
6195
  value: value,
@@ -6220,7 +6220,7 @@ function _object_destructuring_empty$1(o) {
6220
6220
  if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
6221
6221
  return o;
6222
6222
  }
6223
- function _object_spread$r(target) {
6223
+ function _object_spread$s(target) {
6224
6224
  for(var i = 1; i < arguments.length; i++){
6225
6225
  var source = arguments[i] != null ? arguments[i] : {};
6226
6226
  var ownKeys = Object.keys(source);
@@ -6230,7 +6230,7 @@ function _object_spread$r(target) {
6230
6230
  }));
6231
6231
  }
6232
6232
  ownKeys.forEach(function(key) {
6233
- _define_property$u(target, key, source[key]);
6233
+ _define_property$v(target, key, source[key]);
6234
6234
  });
6235
6235
  }
6236
6236
  return target;
@@ -6292,13 +6292,13 @@ function _object_without_properties_loose$a(source, excluded) {
6292
6292
  }
6293
6293
  function Select(_0) {
6294
6294
  _object_destructuring_empty$1(_0); var props = _extends$1({}, _0);
6295
- return /*#__PURE__*/ jsx(Select$1.Root, _object_spread$r({
6295
+ return /*#__PURE__*/ jsx(Select$1.Root, _object_spread$s({
6296
6296
  "data-slot": "select"
6297
6297
  }, props));
6298
6298
  }
6299
6299
  function SelectValue(_0) {
6300
6300
  _object_destructuring_empty$1(_0); var props = _extends$1({}, _0);
6301
- return /*#__PURE__*/ jsx(Select$1.Value, _object_spread$r({
6301
+ return /*#__PURE__*/ jsx(Select$1.Value, _object_spread$s({
6302
6302
  "data-slot": "select-value"
6303
6303
  }, props));
6304
6304
  }
@@ -6308,7 +6308,7 @@ function SelectTrigger(_0) {
6308
6308
  "size",
6309
6309
  "children"
6310
6310
  ]);
6311
- return /*#__PURE__*/ jsxs(Select$1.Trigger, _object_spread_props$n(_object_spread$r({
6311
+ return /*#__PURE__*/ jsxs(Select$1.Trigger, _object_spread_props$n(_object_spread$s({
6312
6312
  "data-slot": "select-trigger",
6313
6313
  "data-size": size,
6314
6314
  className: cn("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className)
@@ -6336,7 +6336,7 @@ function SelectContent(_0) {
6336
6336
  var inheritedContainer = usePortalContainer();
6337
6337
  return /*#__PURE__*/ jsx(Select$1.Portal, {
6338
6338
  container: (_ref = container !== null && container !== void 0 ? container : inheritedContainer) !== null && _ref !== void 0 ? _ref : undefined,
6339
- children: /*#__PURE__*/ jsxs(Select$1.Content, _object_spread_props$n(_object_spread$r({
6339
+ children: /*#__PURE__*/ jsxs(Select$1.Content, _object_spread_props$n(_object_spread$s({
6340
6340
  "data-slot": "select-content",
6341
6341
  "data-align-trigger": position === 'item-aligned',
6342
6342
  className: cn('relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
@@ -6360,7 +6360,7 @@ function SelectItem(_0) {
6360
6360
  "className",
6361
6361
  "children"
6362
6362
  ]);
6363
- return /*#__PURE__*/ jsxs(Select$1.Item, _object_spread_props$n(_object_spread$r({
6363
+ return /*#__PURE__*/ jsxs(Select$1.Item, _object_spread_props$n(_object_spread$s({
6364
6364
  "data-slot": "select-item",
6365
6365
  className: cn("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className)
6366
6366
  }, props), {
@@ -6383,7 +6383,7 @@ function SelectScrollUpButton(_0) {
6383
6383
  var className = _0.className, props = _object_without_properties$a(_0, [
6384
6384
  "className"
6385
6385
  ]);
6386
- return /*#__PURE__*/ jsx(Select$1.ScrollUpButton, _object_spread_props$n(_object_spread$r({
6386
+ return /*#__PURE__*/ jsx(Select$1.ScrollUpButton, _object_spread_props$n(_object_spread$s({
6387
6387
  "data-slot": "select-scroll-up-button",
6388
6388
  className: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className)
6389
6389
  }, props), {
@@ -6394,7 +6394,7 @@ function SelectScrollDownButton(_0) {
6394
6394
  var className = _0.className, props = _object_without_properties$a(_0, [
6395
6395
  "className"
6396
6396
  ]);
6397
- return /*#__PURE__*/ jsx(Select$1.ScrollDownButton, _object_spread_props$n(_object_spread$r({
6397
+ return /*#__PURE__*/ jsx(Select$1.ScrollDownButton, _object_spread_props$n(_object_spread$s({
6398
6398
  "data-slot": "select-scroll-down-button",
6399
6399
  className: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", className)
6400
6400
  }, props), {
@@ -6402,7 +6402,7 @@ function SelectScrollDownButton(_0) {
6402
6402
  }));
6403
6403
  }
6404
6404
 
6405
- function _define_property$t(obj, key, value) {
6405
+ function _define_property$u(obj, key, value) {
6406
6406
  if (key in obj) {
6407
6407
  Object.defineProperty(obj, key, {
6408
6408
  value: value,
@@ -6415,7 +6415,7 @@ function _define_property$t(obj, key, value) {
6415
6415
  }
6416
6416
  return obj;
6417
6417
  }
6418
- function _object_spread$q(target) {
6418
+ function _object_spread$r(target) {
6419
6419
  for(var i = 1; i < arguments.length; i++){
6420
6420
  var source = arguments[i] != null ? arguments[i] : {};
6421
6421
  var ownKeys = Object.keys(source);
@@ -6425,7 +6425,7 @@ function _object_spread$q(target) {
6425
6425
  }));
6426
6426
  }
6427
6427
  ownKeys.forEach(function(key) {
6428
- _define_property$t(target, key, source[key]);
6428
+ _define_property$u(target, key, source[key]);
6429
6429
  });
6430
6430
  }
6431
6431
  return target;
@@ -6470,14 +6470,14 @@ function Spinner(_0) {
6470
6470
  var className = _0.className, props = _object_without_properties$9(_0, [
6471
6471
  "className"
6472
6472
  ]);
6473
- return /*#__PURE__*/ jsx(Loader2Icon, _object_spread$q({
6473
+ return /*#__PURE__*/ jsx(Loader2Icon, _object_spread$r({
6474
6474
  role: "status",
6475
6475
  "aria-label": "Loading",
6476
6476
  className: cn('size-4 animate-spin', className)
6477
6477
  }, props));
6478
6478
  }
6479
6479
 
6480
- function _define_property$s(obj, key, value) {
6480
+ function _define_property$t(obj, key, value) {
6481
6481
  if (key in obj) {
6482
6482
  Object.defineProperty(obj, key, {
6483
6483
  value: value,
@@ -6490,7 +6490,7 @@ function _define_property$s(obj, key, value) {
6490
6490
  }
6491
6491
  return obj;
6492
6492
  }
6493
- function _object_spread$p(target) {
6493
+ function _object_spread$q(target) {
6494
6494
  for(var i = 1; i < arguments.length; i++){
6495
6495
  var source = arguments[i] != null ? arguments[i] : {};
6496
6496
  var ownKeys = Object.keys(source);
@@ -6500,7 +6500,7 @@ function _object_spread$p(target) {
6500
6500
  }));
6501
6501
  }
6502
6502
  ownKeys.forEach(function(key) {
6503
- _define_property$s(target, key, source[key]);
6503
+ _define_property$t(target, key, source[key]);
6504
6504
  });
6505
6505
  }
6506
6506
  return target;
@@ -6546,7 +6546,7 @@ function Tabs(_0) {
6546
6546
  "className",
6547
6547
  "orientation"
6548
6548
  ]);
6549
- return /*#__PURE__*/ jsx(Tabs$1.Root, _object_spread$p({
6549
+ return /*#__PURE__*/ jsx(Tabs$1.Root, _object_spread$q({
6550
6550
  "data-slot": "tabs",
6551
6551
  "data-orientation": orientation,
6552
6552
  className: cn('group/tabs flex gap-2 data-horizontal:flex-col', className)
@@ -6568,7 +6568,7 @@ function TabsList(_0) {
6568
6568
  "className",
6569
6569
  "variant"
6570
6570
  ]);
6571
- return /*#__PURE__*/ jsx(Tabs$1.List, _object_spread$p({
6571
+ return /*#__PURE__*/ jsx(Tabs$1.List, _object_spread$q({
6572
6572
  "data-slot": "tabs-list",
6573
6573
  "data-variant": variant,
6574
6574
  className: cn(tabsListVariants({
@@ -6580,7 +6580,7 @@ function TabsTrigger(_0) {
6580
6580
  var className = _0.className, props = _object_without_properties$8(_0, [
6581
6581
  "className"
6582
6582
  ]);
6583
- return /*#__PURE__*/ jsx(Tabs$1.Trigger, _object_spread$p({
6583
+ return /*#__PURE__*/ jsx(Tabs$1.Trigger, _object_spread$q({
6584
6584
  "data-slot": "tabs-trigger",
6585
6585
  className: cn("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", 'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent', 'data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground', 'after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100', className)
6586
6586
  }, props));
@@ -6589,13 +6589,13 @@ function TabsContent(_0) {
6589
6589
  var className = _0.className, props = _object_without_properties$8(_0, [
6590
6590
  "className"
6591
6591
  ]);
6592
- return /*#__PURE__*/ jsx(Tabs$1.Content, _object_spread$p({
6592
+ return /*#__PURE__*/ jsx(Tabs$1.Content, _object_spread$q({
6593
6593
  "data-slot": "tabs-content",
6594
6594
  className: cn('flex-1 text-sm outline-none', className)
6595
6595
  }, props));
6596
6596
  }
6597
6597
 
6598
- function _define_property$r(obj, key, value) {
6598
+ function _define_property$s(obj, key, value) {
6599
6599
  if (key in obj) {
6600
6600
  Object.defineProperty(obj, key, {
6601
6601
  value: value,
@@ -6626,7 +6626,7 @@ function _object_destructuring_empty(o) {
6626
6626
  if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
6627
6627
  return o;
6628
6628
  }
6629
- function _object_spread$o(target) {
6629
+ function _object_spread$p(target) {
6630
6630
  for(var i = 1; i < arguments.length; i++){
6631
6631
  var source = arguments[i] != null ? arguments[i] : {};
6632
6632
  var ownKeys = Object.keys(source);
@@ -6636,7 +6636,7 @@ function _object_spread$o(target) {
6636
6636
  }));
6637
6637
  }
6638
6638
  ownKeys.forEach(function(key) {
6639
- _define_property$r(target, key, source[key]);
6639
+ _define_property$s(target, key, source[key]);
6640
6640
  });
6641
6641
  }
6642
6642
  return target;
@@ -6700,7 +6700,7 @@ function TooltipProvider(_0) {
6700
6700
  var _0_delayDuration = _0.delayDuration, delayDuration = _0_delayDuration === void 0 ? 0 : _0_delayDuration, props = _object_without_properties$7(_0, [
6701
6701
  "delayDuration"
6702
6702
  ]);
6703
- return /*#__PURE__*/ jsx(Tooltip$1.Provider, _object_spread$o({
6703
+ return /*#__PURE__*/ jsx(Tooltip$1.Provider, _object_spread$p({
6704
6704
  "data-slot": "tooltip-provider",
6705
6705
  delayDuration: delayDuration
6706
6706
  }, props));
@@ -6708,14 +6708,14 @@ function TooltipProvider(_0) {
6708
6708
  function Tooltip(_0) {
6709
6709
  _object_destructuring_empty(_0); var props = _extends({}, _0);
6710
6710
  return /*#__PURE__*/ jsx(TooltipProvider, {
6711
- children: /*#__PURE__*/ jsx(Tooltip$1.Root, _object_spread$o({
6711
+ children: /*#__PURE__*/ jsx(Tooltip$1.Root, _object_spread$p({
6712
6712
  "data-slot": "tooltip"
6713
6713
  }, props))
6714
6714
  });
6715
6715
  }
6716
6716
  function TooltipTrigger(_0) {
6717
6717
  _object_destructuring_empty(_0); var props = _extends({}, _0);
6718
- return /*#__PURE__*/ jsx(Tooltip$1.Trigger, _object_spread$o({
6718
+ return /*#__PURE__*/ jsx(Tooltip$1.Trigger, _object_spread$p({
6719
6719
  "data-slot": "tooltip-trigger"
6720
6720
  }, props));
6721
6721
  }
@@ -6730,7 +6730,7 @@ function TooltipContent(_0) {
6730
6730
  var inheritedContainer = usePortalContainer();
6731
6731
  return /*#__PURE__*/ jsx(Tooltip$1.Portal, {
6732
6732
  container: (_ref = container !== null && container !== void 0 ? container : inheritedContainer) !== null && _ref !== void 0 ? _ref : undefined,
6733
- children: /*#__PURE__*/ jsxs(Tooltip$1.Content, _object_spread_props$m(_object_spread$o({
6733
+ children: /*#__PURE__*/ jsxs(Tooltip$1.Content, _object_spread_props$m(_object_spread$p({
6734
6734
  "data-slot": "tooltip-content",
6735
6735
  sideOffset: sideOffset,
6736
6736
  className: cn('z-50 max-w-xs overflow-hidden rounded-lg bg-primary px-3 py-2 text-xs text-primary-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className)
@@ -6934,7 +6934,7 @@ function _array_like_to_array$A(arr, len) {
6934
6934
  function _array_without_holes$f(arr) {
6935
6935
  if (Array.isArray(arr)) return _array_like_to_array$A(arr);
6936
6936
  }
6937
- function _define_property$q(obj, key, value) {
6937
+ function _define_property$r(obj, key, value) {
6938
6938
  if (key in obj) {
6939
6939
  Object.defineProperty(obj, key, {
6940
6940
  value: value,
@@ -6953,7 +6953,7 @@ function _iterable_to_array$f(iter) {
6953
6953
  function _non_iterable_spread$f() {
6954
6954
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6955
6955
  }
6956
- function _object_spread$n(target) {
6956
+ function _object_spread$o(target) {
6957
6957
  for(var i = 1; i < arguments.length; i++){
6958
6958
  var source = arguments[i] != null ? arguments[i] : {};
6959
6959
  var ownKeys = Object.keys(source);
@@ -6963,7 +6963,7 @@ function _object_spread$n(target) {
6963
6963
  }));
6964
6964
  }
6965
6965
  ownKeys.forEach(function(key) {
6966
- _define_property$q(target, key, source[key]);
6966
+ _define_property$r(target, key, source[key]);
6967
6967
  });
6968
6968
  }
6969
6969
  return target;
@@ -7128,7 +7128,7 @@ function createWhiteboardLocalHistory(createOperationId) {
7128
7128
  if (!entry) return undefined;
7129
7129
  var transition = commandFor(entry, direction);
7130
7130
  var _obj;
7131
- state = _object_spread_props$l(_object_spread$n({}, state), (_obj = {}, _define_property$q(_obj, from, source.slice(0, -1)), _define_property$q(_obj, to, _to_consumable_array$f(state[to]).concat([
7131
+ state = _object_spread_props$l(_object_spread$o({}, state), (_obj = {}, _define_property$r(_obj, from, source.slice(0, -1)), _define_property$r(_obj, to, _to_consumable_array$f(state[to]).concat([
7132
7132
  entry
7133
7133
  ])), _obj));
7134
7134
  return transition;
@@ -7552,7 +7552,7 @@ function _array_with_holes$v(arr) {
7552
7552
  function _array_without_holes$d(arr) {
7553
7553
  if (Array.isArray(arr)) return _array_like_to_array$y(arr);
7554
7554
  }
7555
- function _define_property$p(obj, key, value) {
7555
+ function _define_property$q(obj, key, value) {
7556
7556
  if (key in obj) {
7557
7557
  Object.defineProperty(obj, key, {
7558
7558
  value: value,
@@ -7598,7 +7598,7 @@ function _non_iterable_rest$v() {
7598
7598
  function _non_iterable_spread$d() {
7599
7599
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7600
7600
  }
7601
- function _object_spread$m(target) {
7601
+ function _object_spread$n(target) {
7602
7602
  for(var i = 1; i < arguments.length; i++){
7603
7603
  var source = arguments[i] != null ? arguments[i] : {};
7604
7604
  var ownKeys = Object.keys(source);
@@ -7608,7 +7608,7 @@ function _object_spread$m(target) {
7608
7608
  }));
7609
7609
  }
7610
7610
  ownKeys.forEach(function(key) {
7611
- _define_property$p(target, key, source[key]);
7611
+ _define_property$q(target, key, source[key]);
7612
7612
  });
7613
7613
  }
7614
7614
  return target;
@@ -7689,7 +7689,7 @@ function createSceneStateFromRecovery(recovery) {
7689
7689
  object
7690
7690
  ];
7691
7691
  }));
7692
- var nextState = _object_spread_props$k(_object_spread$m({}, initialState), {
7692
+ var nextState = _object_spread_props$k(_object_spread$n({}, initialState), {
7693
7693
  appliedOperationIds: new Set(recovery.settledOperationIds),
7694
7694
  headRevision: recovery.bootstrap.headRevision,
7695
7695
  recoveredObjects: recoveredObjects
@@ -7718,7 +7718,7 @@ function createSceneStateFromRecovery(recovery) {
7718
7718
  }
7719
7719
  }
7720
7720
  }
7721
- nextState = _object_spread_props$k(_object_spread$m({}, nextState), {
7721
+ nextState = _object_spread_props$k(_object_spread$n({}, nextState), {
7722
7722
  appliedOperationIds: new Set(nextState.appliedOperationIds),
7723
7723
  headRevision: Math.max(nextState.headRevision, delta.headRevision),
7724
7724
  recoveredObjects: new Map(nextState.recoveredObjects)
@@ -7959,7 +7959,7 @@ function getOptimisticTail(state, operationId) {
7959
7959
  });
7960
7960
  }
7961
7961
  function cloneState(state) {
7962
- return _object_spread_props$k(_object_spread$m({}, state), {
7962
+ return _object_spread_props$k(_object_spread$n({}, state), {
7963
7963
  appliedOperationIds: new Set(state.appliedOperationIds),
7964
7964
  optimisticOperationIds: _to_consumable_array$d(state.optimisticOperationIds),
7965
7965
  optimisticOperations: new Map(state.optimisticOperations),
@@ -8009,10 +8009,10 @@ function getAnnotationSceneObject(value) {
8009
8009
  return isWhiteboardAnnotationSceneObject(value) ? value : undefined;
8010
8010
  }
8011
8011
  function getSceneObject(value, revision) {
8012
- if (isWhiteboardAnnotationSceneObject(value)) return _object_spread_props$k(_object_spread$m({}, value), {
8012
+ if (isWhiteboardAnnotationSceneObject(value)) return _object_spread_props$k(_object_spread$n({}, value), {
8013
8013
  latestRevision: revision || value.latestRevision
8014
8014
  });
8015
- if (isAnnotationObjectInput(value)) return _object_spread_props$k(_object_spread$m({}, value), {
8015
+ if (isAnnotationObjectInput(value)) return _object_spread_props$k(_object_spread$n({}, value), {
8016
8016
  latestRevision: revision
8017
8017
  });
8018
8018
  return undefined;
@@ -8021,7 +8021,7 @@ function isAnnotationObjectInput(value) {
8021
8021
  return (typeof value === "undefined" ? "undefined" : _type_of$9(value)) === 'object' && value !== null && typeof value.objectId === 'string' && (value.objectType === 'annotation.stroke' || value.objectType === 'annotation.shape');
8022
8022
  }
8023
8023
 
8024
- function _define_property$o(obj, key, value) {
8024
+ function _define_property$p(obj, key, value) {
8025
8025
  if (key in obj) {
8026
8026
  Object.defineProperty(obj, key, {
8027
8027
  value: value,
@@ -8110,7 +8110,7 @@ var WhiteboardColorPopover = /*#__PURE__*/ forwardRef(function WhiteboardColorPo
8110
8110
  onClick: function() {
8111
8111
  return onColorChange === null || onColorChange === void 0 ? void 0 : onColorChange(entry.color);
8112
8112
  },
8113
- style: _define_property$o({}, '--whiteboard-color', entry.color),
8113
+ style: _define_property$p({}, '--whiteboard-color', entry.color),
8114
8114
  title: entry.tooltip,
8115
8115
  type: "button",
8116
8116
  children: /*#__PURE__*/ jsx("span", {
@@ -8708,7 +8708,7 @@ function _array_with_holes$u(arr) {
8708
8708
  function _array_without_holes$c(arr) {
8709
8709
  if (Array.isArray(arr)) return _array_like_to_array$x(arr);
8710
8710
  }
8711
- function _define_property$n(obj, key, value) {
8711
+ function _define_property$o(obj, key, value) {
8712
8712
  if (key in obj) {
8713
8713
  Object.defineProperty(obj, key, {
8714
8714
  value: value,
@@ -8754,7 +8754,7 @@ function _non_iterable_rest$u() {
8754
8754
  function _non_iterable_spread$c() {
8755
8755
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8756
8756
  }
8757
- function _object_spread$l(target) {
8757
+ function _object_spread$m(target) {
8758
8758
  for(var i = 1; i < arguments.length; i++){
8759
8759
  var source = arguments[i] != null ? arguments[i] : {};
8760
8760
  var ownKeys = Object.keys(source);
@@ -8764,7 +8764,7 @@ function _object_spread$l(target) {
8764
8764
  }));
8765
8765
  }
8766
8766
  ownKeys.forEach(function(key) {
8767
- _define_property$n(target, key, source[key]);
8767
+ _define_property$o(target, key, source[key]);
8768
8768
  });
8769
8769
  }
8770
8770
  return target;
@@ -8951,9 +8951,9 @@ function useWhiteboardToolbarLayout() {
8951
8951
  var toolbarSize = layout.orientation === 'vertical' ? WHITEBOARD_TOOLBAR_SIZE.vertical : WHITEBOARD_TOOLBAR_SIZE.horizontal;
8952
8952
  var popoverSize = WHITEBOARD_POPOVER_SIZES[popover];
8953
8953
  var side = getPopoverSide(layout.dock, layout.position, toolbarSize, popoverSize, viewport);
8954
- var fallbackAnchorPosition = popover === 'color' ? layout.orientation === 'vertical' ? _object_spread_props$j(_object_spread$l({}, layout.position), {
8954
+ var fallbackAnchorPosition = popover === 'color' ? layout.orientation === 'vertical' ? _object_spread_props$j(_object_spread$m({}, layout.position), {
8955
8955
  top: layout.position.top + WHITEBOARD_COLOR_BUTTON_OFFSET
8956
- }) : _object_spread_props$j(_object_spread$l({}, layout.position), {
8956
+ }) : _object_spread_props$j(_object_spread$m({}, layout.position), {
8957
8957
  left: layout.position.left + WHITEBOARD_COLOR_BUTTON_OFFSET
8958
8958
  }) : layout.position;
8959
8959
  return {
@@ -9022,7 +9022,7 @@ function getDroppedToolbarLayout(position, viewport, preferredDropDock, dragPosi
9022
9022
  if (!outsideDock) return getToolbarLayout(position, viewport);
9023
9023
  var dockOrientation = outsideDock === 'left' || outsideDock === 'right' ? 'vertical' : 'horizontal';
9024
9024
  var size = WHITEBOARD_TOOLBAR_SIZE[dockOrientation];
9025
- var snapPosition = outsideDock === 'top' || outsideDock === 'bottom' ? _object_spread_props$j(_object_spread$l({}, position), {
9025
+ var snapPosition = outsideDock === 'top' || outsideDock === 'bottom' ? _object_spread_props$j(_object_spread$m({}, position), {
9026
9026
  left: (_ref = dragPosition === null || dragPosition === void 0 ? void 0 : dragPosition.left) !== null && _ref !== void 0 ? _ref : position.left
9027
9027
  }) : position;
9028
9028
  return {
@@ -9078,18 +9078,18 @@ function getOutsideDock(position, orientation, viewport) {
9078
9078
  }
9079
9079
  function snapAndClampPosition(position, dock, size, viewport) {
9080
9080
  var clampedPosition = clampPosition(position, size, viewport);
9081
- if (dock === 'left') return _object_spread_props$j(_object_spread$l({}, clampedPosition), {
9081
+ if (dock === 'left') return _object_spread_props$j(_object_spread$m({}, clampedPosition), {
9082
9082
  left: viewport.left + WHITEBOARD_VIEWPORT_PADDING
9083
9083
  });
9084
9084
  if (dock === 'right') {
9085
- return _object_spread_props$j(_object_spread$l({}, clampedPosition), {
9085
+ return _object_spread_props$j(_object_spread$m({}, clampedPosition), {
9086
9086
  left: viewport.left + viewport.width - WHITEBOARD_VIEWPORT_PADDING - size.width
9087
9087
  });
9088
9088
  }
9089
- if (dock === 'top') return _object_spread_props$j(_object_spread$l({}, clampedPosition), {
9089
+ if (dock === 'top') return _object_spread_props$j(_object_spread$m({}, clampedPosition), {
9090
9090
  top: viewport.top + WHITEBOARD_VIEWPORT_PADDING
9091
9091
  });
9092
- return _object_spread_props$j(_object_spread$l({}, clampedPosition), {
9092
+ return _object_spread_props$j(_object_spread$m({}, clampedPosition), {
9093
9093
  top: viewport.top + viewport.height - WHITEBOARD_VIEWPORT_PADDING - size.height
9094
9094
  });
9095
9095
  }
@@ -9262,7 +9262,7 @@ function _array_like_to_array$w(arr, len) {
9262
9262
  function _array_with_holes$t(arr) {
9263
9263
  if (Array.isArray(arr)) return arr;
9264
9264
  }
9265
- function _define_property$m(obj, key, value) {
9265
+ function _define_property$n(obj, key, value) {
9266
9266
  if (key in obj) {
9267
9267
  Object.defineProperty(obj, key, {
9268
9268
  value: value,
@@ -9302,7 +9302,7 @@ function _iterable_to_array_limit$t(arr, i) {
9302
9302
  function _non_iterable_rest$t() {
9303
9303
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9304
9304
  }
9305
- function _object_spread$k(target) {
9305
+ function _object_spread$l(target) {
9306
9306
  for(var i = 1; i < arguments.length; i++){
9307
9307
  var source = arguments[i] != null ? arguments[i] : {};
9308
9308
  var ownKeys = Object.keys(source);
@@ -9312,7 +9312,7 @@ function _object_spread$k(target) {
9312
9312
  }));
9313
9313
  }
9314
9314
  ownKeys.forEach(function(key) {
9315
- _define_property$m(target, key, source[key]);
9315
+ _define_property$n(target, key, source[key]);
9316
9316
  });
9317
9317
  }
9318
9318
  return target;
@@ -9368,7 +9368,7 @@ function WhiteboardToolbar(param) {
9368
9368
  var toPortalStyle = function(style) {
9369
9369
  if (!portalContainer) return style;
9370
9370
  var bounds = portalContainer.getBoundingClientRect();
9371
- return _object_spread_props$i(_object_spread$k({}, style), {
9371
+ return _object_spread_props$i(_object_spread$l({}, style), {
9372
9372
  left: typeof style.left === 'number' ? style.left - bounds.left : style.left,
9373
9373
  position: 'absolute',
9374
9374
  top: typeof style.top === 'number' ? style.top - bounds.top : style.top
@@ -9562,7 +9562,7 @@ function WhiteboardToolbar(param) {
9562
9562
  /*#__PURE__*/ jsx("span", {
9563
9563
  "aria-hidden": "true",
9564
9564
  className: "whiteboard-react-toolbar__button-swatch",
9565
- style: _define_property$m({}, '--whiteboard-color', activeColor)
9565
+ style: _define_property$n({}, '--whiteboard-color', activeColor)
9566
9566
  })
9567
9567
  ]
9568
9568
  }),
@@ -9964,7 +9964,7 @@ function _array_with_holes$r(arr) {
9964
9964
  function _array_without_holes$b(arr) {
9965
9965
  if (Array.isArray(arr)) return _array_like_to_array$u(arr);
9966
9966
  }
9967
- function asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, key, arg) {
9967
+ function asyncGeneratorStep$o(gen, resolve, reject, _next, _throw, key, arg) {
9968
9968
  try {
9969
9969
  var info = gen[key](arg);
9970
9970
  var value = info.value;
@@ -9978,22 +9978,22 @@ function asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, key, arg) {
9978
9978
  Promise.resolve(value).then(_next, _throw);
9979
9979
  }
9980
9980
  }
9981
- function _async_to_generator$n(fn) {
9981
+ function _async_to_generator$o(fn) {
9982
9982
  return function() {
9983
9983
  var self = this, args = arguments;
9984
9984
  return new Promise(function(resolve, reject) {
9985
9985
  var gen = fn.apply(self, args);
9986
9986
  function _next(value) {
9987
- asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, "next", value);
9987
+ asyncGeneratorStep$o(gen, resolve, reject, _next, _throw, "next", value);
9988
9988
  }
9989
9989
  function _throw(err) {
9990
- asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, "throw", err);
9990
+ asyncGeneratorStep$o(gen, resolve, reject, _next, _throw, "throw", err);
9991
9991
  }
9992
9992
  _next(undefined);
9993
9993
  });
9994
9994
  };
9995
9995
  }
9996
- function _define_property$l(obj, key, value) {
9996
+ function _define_property$m(obj, key, value) {
9997
9997
  if (key in obj) {
9998
9998
  Object.defineProperty(obj, key, {
9999
9999
  value: value,
@@ -10039,7 +10039,7 @@ function _non_iterable_rest$r() {
10039
10039
  function _non_iterable_spread$b() {
10040
10040
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
10041
10041
  }
10042
- function _object_spread$j(target) {
10042
+ function _object_spread$k(target) {
10043
10043
  for(var i = 1; i < arguments.length; i++){
10044
10044
  var source = arguments[i] != null ? arguments[i] : {};
10045
10045
  var ownKeys = Object.keys(source);
@@ -10049,7 +10049,7 @@ function _object_spread$j(target) {
10049
10049
  }));
10050
10050
  }
10051
10051
  ownKeys.forEach(function(key) {
10052
- _define_property$l(target, key, source[key]);
10052
+ _define_property$m(target, key, source[key]);
10053
10053
  });
10054
10054
  }
10055
10055
  return target;
@@ -10127,7 +10127,7 @@ function _unsupported_iterable_to_array$u(o, minLen) {
10127
10127
  if (n === "Map" || n === "Set") return Array.from(n);
10128
10128
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$u(o, minLen);
10129
10129
  }
10130
- function _ts_generator$n(thisArg, body) {
10130
+ function _ts_generator$o(thisArg, body) {
10131
10131
  var f, y, t, _ = {
10132
10132
  label: 0,
10133
10133
  sent: function() {
@@ -10472,9 +10472,9 @@ function WhiteboardCanvas(param) {
10472
10472
  });
10473
10473
  }
10474
10474
  var submitSceneOperation = function(operation) {
10475
- return _async_to_generator$n(function() {
10475
+ return _async_to_generator$o(function() {
10476
10476
  var submittedShareSessionKey, acknowledgement;
10477
- return _ts_generator$n(this, function(_state) {
10477
+ return _ts_generator$o(this, function(_state) {
10478
10478
  switch(_state.label){
10479
10479
  case 0:
10480
10480
  submittedShareSessionKey = whiteboard === null || whiteboard === void 0 ? void 0 : whiteboard.activeShareSessionKey;
@@ -10606,9 +10606,9 @@ function WhiteboardCanvas(param) {
10606
10606
  scheduleInteractionRender();
10607
10607
  };
10608
10608
  var handlePointerUp = function(event) {
10609
- return _async_to_generator$n(function() {
10609
+ return _async_to_generator$o(function() {
10610
10610
  var _draftRef_current, _localHistoryRef_current, _draftRef_current1, _localHistoryRef_current1, point, hitObject, operation, finalPoint, finalizedObject, operation1;
10611
- return _ts_generator$n(this, function(_state) {
10611
+ return _ts_generator$o(this, function(_state) {
10612
10612
  if (!frameRect || !interactionEnabled) return [
10613
10613
  2
10614
10614
  ];
@@ -10776,28 +10776,28 @@ function appendPointToDraftObject(object, point) {
10776
10776
  }
10777
10777
  function freezeDraftObject(object) {
10778
10778
  if (object.objectType === 'annotation.stroke') {
10779
- return _object_spread_props$h(_object_spread$j({}, object), {
10780
- payload: _object_spread_props$h(_object_spread$j({}, object.payload), {
10779
+ return _object_spread_props$h(_object_spread$k({}, object), {
10780
+ payload: _object_spread_props$h(_object_spread$k({}, object.payload), {
10781
10781
  points: _to_consumable_array$b(object.payload.points)
10782
10782
  })
10783
10783
  });
10784
10784
  }
10785
- return _object_spread_props$h(_object_spread$j({}, object), {
10786
- payload: _object_spread$j({}, object.payload)
10785
+ return _object_spread_props$h(_object_spread$k({}, object), {
10786
+ payload: _object_spread$k({}, object.payload)
10787
10787
  });
10788
10788
  }
10789
10789
  function createLocalMarkerExpiry(object) {
10790
10790
  if (object.objectType !== 'annotation.stroke' || object.payload.kind !== 'marker') return object;
10791
- return _object_spread_props$h(_object_spread$j({}, object), {
10792
- payload: _object_spread_props$h(_object_spread$j({}, object.payload), {
10791
+ return _object_spread_props$h(_object_spread$k({}, object), {
10792
+ payload: _object_spread_props$h(_object_spread$k({}, object.payload), {
10793
10793
  vanishAt: new Date(Date.now() + 1000).toISOString()
10794
10794
  })
10795
10795
  });
10796
10796
  }
10797
10797
  function applyLocalMarkerExpiry(object, localVanishAt) {
10798
10798
  if (!localVanishAt || object.objectType !== 'annotation.stroke' || object.payload.kind !== 'marker') return object;
10799
- return _object_spread_props$h(_object_spread$j({}, object), {
10800
- payload: _object_spread_props$h(_object_spread$j({}, object.payload), {
10799
+ return _object_spread_props$h(_object_spread$k({}, object), {
10800
+ payload: _object_spread_props$h(_object_spread$k({}, object.payload), {
10801
10801
  vanishAt: localVanishAt
10802
10802
  })
10803
10803
  });
@@ -10842,7 +10842,7 @@ function withoutLocalMarkerExpiry(object) {
10842
10842
  var _object_payload = object.payload; _object_payload.vanishAt; var payload = _object_without_properties$5(_object_payload, [
10843
10843
  "vanishAt"
10844
10844
  ]);
10845
- return _object_spread_props$h(_object_spread$j({}, object), {
10845
+ return _object_spread_props$h(_object_spread$k({}, object), {
10846
10846
  payload: payload
10847
10847
  });
10848
10848
  }
@@ -11144,7 +11144,7 @@ function _array_with_holes$p(arr) {
11144
11144
  function _array_without_holes$a(arr) {
11145
11145
  if (Array.isArray(arr)) return _array_like_to_array$s(arr);
11146
11146
  }
11147
- function asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, key, arg) {
11147
+ function asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, key, arg) {
11148
11148
  try {
11149
11149
  var info = gen[key](arg);
11150
11150
  var value = info.value;
@@ -11158,22 +11158,22 @@ function asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, key, arg) {
11158
11158
  Promise.resolve(value).then(_next, _throw);
11159
11159
  }
11160
11160
  }
11161
- function _async_to_generator$m(fn) {
11161
+ function _async_to_generator$n(fn) {
11162
11162
  return function() {
11163
11163
  var self = this, args = arguments;
11164
11164
  return new Promise(function(resolve, reject) {
11165
11165
  var gen = fn.apply(self, args);
11166
11166
  function _next(value) {
11167
- asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, "next", value);
11167
+ asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, "next", value);
11168
11168
  }
11169
11169
  function _throw(err) {
11170
- asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, "throw", err);
11170
+ asyncGeneratorStep$n(gen, resolve, reject, _next, _throw, "throw", err);
11171
11171
  }
11172
11172
  _next(undefined);
11173
11173
  });
11174
11174
  };
11175
11175
  }
11176
- function _define_property$k(obj, key, value) {
11176
+ function _define_property$l(obj, key, value) {
11177
11177
  if (key in obj) {
11178
11178
  Object.defineProperty(obj, key, {
11179
11179
  value: value,
@@ -11219,7 +11219,7 @@ function _non_iterable_rest$p() {
11219
11219
  function _non_iterable_spread$a() {
11220
11220
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11221
11221
  }
11222
- function _object_spread$i(target) {
11222
+ function _object_spread$j(target) {
11223
11223
  for(var i = 1; i < arguments.length; i++){
11224
11224
  var source = arguments[i] != null ? arguments[i] : {};
11225
11225
  var ownKeys = Object.keys(source);
@@ -11229,7 +11229,7 @@ function _object_spread$i(target) {
11229
11229
  }));
11230
11230
  }
11231
11231
  ownKeys.forEach(function(key) {
11232
- _define_property$k(target, key, source[key]);
11232
+ _define_property$l(target, key, source[key]);
11233
11233
  });
11234
11234
  }
11235
11235
  return target;
@@ -11271,7 +11271,7 @@ function _unsupported_iterable_to_array$s(o, minLen) {
11271
11271
  if (n === "Map" || n === "Set") return Array.from(n);
11272
11272
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$s(o, minLen);
11273
11273
  }
11274
- function _ts_generator$m(thisArg, body) {
11274
+ function _ts_generator$n(thisArg, body) {
11275
11275
  var f, y, t, _ = {
11276
11276
  label: 0,
11277
11277
  sent: function() {
@@ -11415,7 +11415,7 @@ function createWhiteboardRuntime() {
11415
11415
  (_options_onBoardStateChange = options.onBoardStateChange) === null || _options_onBoardStateChange === void 0 ? void 0 : _options_onBoardStateChange.call(options, nextBoardState);
11416
11416
  };
11417
11417
  var patchBoardState = function(patch) {
11418
- publishBoardState(_object_spread$i({}, boardState, patch));
11418
+ publishBoardState(_object_spread$j({}, boardState, patch));
11419
11419
  };
11420
11420
  var confirmRevision = function(revision) {
11421
11421
  if (!Number.isFinite(revision)) return;
@@ -11429,7 +11429,7 @@ function createWhiteboardRuntime() {
11429
11429
  (_options_onSubmitStatusChange = options.onSubmitStatusChange) === null || _options_onSubmitStatusChange === void 0 ? void 0 : _options_onSubmitStatusChange.call(options, status);
11430
11430
  };
11431
11431
  var resetBoardState = function(shareSessionKey) {
11432
- publishBoardState(_object_spread_props$g(_object_spread$i({}, EMPTY_BOARD_STATE), {
11432
+ publishBoardState(_object_spread_props$g(_object_spread$j({}, EMPTY_BOARD_STATE), {
11433
11433
  activeShareSessionKey: shareSessionKey
11434
11434
  }));
11435
11435
  };
@@ -11555,7 +11555,7 @@ function createWhiteboardRuntime() {
11555
11555
  }
11556
11556
  appliedRevision = event.revision;
11557
11557
  confirmRevision(event.revision);
11558
- (_options_onCommittedEvent = options.onCommittedEvent) === null || _options_onCommittedEvent === void 0 ? void 0 : _options_onCommittedEvent.call(options, _object_spread_props$g(_object_spread$i({}, event), {
11558
+ (_options_onCommittedEvent = options.onCommittedEvent) === null || _options_onCommittedEvent === void 0 ? void 0 : _options_onCommittedEvent.call(options, _object_spread_props$g(_object_spread$j({}, event), {
11559
11559
  reconcileStrategy: 'replayable'
11560
11560
  }));
11561
11561
  };
@@ -11611,7 +11611,7 @@ function createWhiteboardRuntime() {
11611
11611
  onSubmitAck: function(diagnostic) {
11612
11612
  var _options_onDiagnostic;
11613
11613
  publishSubmitStatus(IDLE_SUBMIT_STATUS);
11614
- (_options_onDiagnostic = options.onDiagnostic) === null || _options_onDiagnostic === void 0 ? void 0 : _options_onDiagnostic.call(options, _object_spread$i({
11614
+ (_options_onDiagnostic = options.onDiagnostic) === null || _options_onDiagnostic === void 0 ? void 0 : _options_onDiagnostic.call(options, _object_spread$j({
11615
11615
  type: 'submit_ack'
11616
11616
  }, diagnostic));
11617
11617
  },
@@ -11625,9 +11625,9 @@ function createWhiteboardRuntime() {
11625
11625
  submit: submitTransport
11626
11626
  });
11627
11627
  var fetchDeltaPages = function(reason, targetRevision, recoveredOperationIds, signal, generation) {
11628
- return _async_to_generator$m(function() {
11628
+ return _async_to_generator$n(function() {
11629
11629
  var currentBoardId, _options_onDiagnostic, afterRevision, delta, _options_onRecoveryStatusChange, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, revision;
11630
- return _ts_generator$m(this, function(_state) {
11630
+ return _ts_generator$n(this, function(_state) {
11631
11631
  switch(_state.label){
11632
11632
  case 0:
11633
11633
  if (targetRevision <= appliedRevision) return [
@@ -11733,9 +11733,9 @@ function createWhiteboardRuntime() {
11733
11733
  })();
11734
11734
  };
11735
11735
  var drainBufferedEvents = function(reason, recoveredOperationIds, signal, generation) {
11736
- return _async_to_generator$m(function() {
11736
+ return _async_to_generator$n(function() {
11737
11737
  var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, revision, nextEvent, _Math, nextRevision, recovered;
11738
- return _ts_generator$m(this, function(_state) {
11738
+ return _ts_generator$n(this, function(_state) {
11739
11739
  switch(_state.label){
11740
11740
  case 0:
11741
11741
  if (!(!signal.aborted && generation === activeGeneration)) return [
@@ -11813,9 +11813,9 @@ function createWhiteboardRuntime() {
11813
11813
  recoveryController = controller;
11814
11814
  var recoveredOperationIds = new Map();
11815
11815
  var currentReconciliation = function() {
11816
- return _async_to_generator$m(function() {
11816
+ return _async_to_generator$n(function() {
11817
11817
  var recoveredTarget, succeeded, _tmp, _options_onRecoveryStatusChange;
11818
- return _ts_generator$m(this, function(_state) {
11818
+ return _ts_generator$n(this, function(_state) {
11819
11819
  switch(_state.label){
11820
11820
  case 0:
11821
11821
  _state.trys.push([
@@ -11884,9 +11884,9 @@ function createWhiteboardRuntime() {
11884
11884
  return guardedReconciliation;
11885
11885
  };
11886
11886
  var reconcileBufferedEvents = function(reason) {
11887
- return _async_to_generator$m(function() {
11887
+ return _async_to_generator$n(function() {
11888
11888
  var result;
11889
- return _ts_generator$m(this, function(_state) {
11889
+ return _ts_generator$n(this, function(_state) {
11890
11890
  switch(_state.label){
11891
11891
  case 0:
11892
11892
  return [
@@ -11976,9 +11976,9 @@ function createWhiteboardRuntime() {
11976
11976
  var generation = activeGeneration;
11977
11977
  var requestId = ++bootstrapRequestId;
11978
11978
  var currentBootstrap = function() {
11979
- return _async_to_generator$m(function() {
11979
+ return _async_to_generator$n(function() {
11980
11980
  var _options_onRecoveryStatusChange, activeBoard, _tmp, activeBoardId, bootstrap, error, _options_onRecoveryStatusChange1, recoveredOperationIds, targetRevision, recovered, reconciliation, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, operationId, revision;
11981
- return _ts_generator$m(this, function(_state) {
11981
+ return _ts_generator$n(this, function(_state) {
11982
11982
  switch(_state.label){
11983
11983
  case 0:
11984
11984
  (_options_onRecoveryStatusChange = options.onRecoveryStatusChange) === null || _options_onRecoveryStatusChange === void 0 ? void 0 : _options_onRecoveryStatusChange.call(options, 'restoring');
@@ -12133,9 +12133,9 @@ function createWhiteboardRuntime() {
12133
12133
  return guardedBootstrap;
12134
12134
  };
12135
12135
  var reconnectActiveShare = function(currentSocket) {
12136
- return _async_to_generator$m(function() {
12136
+ return _async_to_generator$n(function() {
12137
12137
  var shareSessionKey, auth, generation, ready, recoveredOperationIds, recovery, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, operationId, revision;
12138
- return _ts_generator$m(this, function(_state) {
12138
+ return _ts_generator$n(this, function(_state) {
12139
12139
  switch(_state.label){
12140
12140
  case 0:
12141
12141
  shareSessionKey = activeShareSessionKey;
@@ -12252,9 +12252,9 @@ function createWhiteboardRuntime() {
12252
12252
  clearRecovery();
12253
12253
  },
12254
12254
  connect: function connect(auth) {
12255
- return _async_to_generator$m(function() {
12255
+ return _async_to_generator$n(function() {
12256
12256
  var endpoint, nextSocket, hasConnectedOnce;
12257
- return _ts_generator$m(this, function(_state) {
12257
+ return _ts_generator$n(this, function(_state) {
12258
12258
  switch(_state.label){
12259
12259
  case 0:
12260
12260
  if (!hasValidWhiteboardAuth(auth)) return [
@@ -12338,9 +12338,9 @@ function createWhiteboardRuntime() {
12338
12338
  this.disconnect();
12339
12339
  },
12340
12340
  restore: function restore(_0) {
12341
- return _async_to_generator$m(function(param) {
12341
+ return _async_to_generator$n(function(param) {
12342
12342
  var auth, shareSessionKey, signal;
12343
- return _ts_generator$m(this, function(_state) {
12343
+ return _ts_generator$n(this, function(_state) {
12344
12344
  auth = param.auth, shareSessionKey = param.shareSessionKey, signal = param.signal;
12345
12345
  return [
12346
12346
  2,
@@ -12350,9 +12350,9 @@ function createWhiteboardRuntime() {
12350
12350
  }).apply(this, arguments);
12351
12351
  },
12352
12352
  submitOperation: function submitOperation(operation) {
12353
- return _async_to_generator$m(function() {
12353
+ return _async_to_generator$n(function() {
12354
12354
  var currentShareSessionKey, generation, boardNotReadyAck, error, queueError, acknowledgement;
12355
- return _ts_generator$m(this, function(_state) {
12355
+ return _ts_generator$n(this, function(_state) {
12356
12356
  switch(_state.label){
12357
12357
  case 0:
12358
12358
  currentShareSessionKey = activeShareSessionKey;
@@ -12416,9 +12416,9 @@ function createWhiteboardRuntime() {
12416
12416
  })();
12417
12417
  },
12418
12418
  updateAuth: function updateAuth(auth) {
12419
- return _async_to_generator$m(function() {
12419
+ return _async_to_generator$n(function() {
12420
12420
  var response;
12421
- return _ts_generator$m(this, function(_state) {
12421
+ return _ts_generator$n(this, function(_state) {
12422
12422
  switch(_state.label){
12423
12423
  case 0:
12424
12424
  if (!hasValidWhiteboardAuth(auth)) return [
@@ -12467,8 +12467,8 @@ function createWhiteboardRecoveryPort(options) {
12467
12467
  var fetchImpl = (_options_fetchImpl = options.fetchImpl) !== null && _options_fetchImpl !== void 0 ? _options_fetchImpl : fetch;
12468
12468
  return {
12469
12469
  bootstrap: function bootstrap(request, signal) {
12470
- return _async_to_generator$m(function() {
12471
- return _ts_generator$m(this, function(_state) {
12470
+ return _async_to_generator$n(function() {
12471
+ return _ts_generator$n(this, function(_state) {
12472
12472
  return [
12473
12473
  2,
12474
12474
  requestJson(fetchImpl, new URL(WHITEBOARD_BOOTSTRAP_ROUTE.replace(':boardId', encodeURIComponent(request.boardId)), options.endpoint), request.token, signal)
@@ -12477,9 +12477,9 @@ function createWhiteboardRecoveryPort(options) {
12477
12477
  })();
12478
12478
  },
12479
12479
  delta: function delta(request, signal) {
12480
- return _async_to_generator$m(function() {
12480
+ return _async_to_generator$n(function() {
12481
12481
  var url;
12482
- return _ts_generator$m(this, function(_state) {
12482
+ return _ts_generator$n(this, function(_state) {
12483
12483
  url = new URL(WHITEBOARD_DELTA_ROUTE.replace(':boardId', encodeURIComponent(request.boardId)), options.endpoint);
12484
12484
  url.searchParams.set('afterRevision', String(request.afterRevision));
12485
12485
  if (request.limit !== undefined) url.searchParams.set('limit', String(request.limit));
@@ -12510,7 +12510,7 @@ function foldOperationsIntoRecoverySnapshot(bootstrap, update) {
12510
12510
  var _item_operation_payload;
12511
12511
  var object = (_item_operation_payload = item.operation.payload) === null || _item_operation_payload === void 0 ? void 0 : _item_operation_payload.object;
12512
12512
  if (isWhiteboardAnnotationSceneObject(object)) {
12513
- objects.set(object.objectId, _object_spread_props$g(_object_spread$i({}, object), {
12513
+ objects.set(object.objectId, _object_spread_props$g(_object_spread$j({}, object), {
12514
12514
  latestRevision: item.revision
12515
12515
  }));
12516
12516
  }
@@ -12560,7 +12560,7 @@ function foldOperationsIntoRecoverySnapshot(bootstrap, update) {
12560
12560
  }
12561
12561
  }
12562
12562
  }
12563
- return _object_spread_props$g(_object_spread$i({}, bootstrap), {
12563
+ return _object_spread_props$g(_object_spread$j({}, bootstrap), {
12564
12564
  boardId: update.boardId,
12565
12565
  headRevision: update.toRevision,
12566
12566
  objects: sortRecoveryObjects(_to_consumable_array$a(objects.values()))
@@ -12641,9 +12641,9 @@ function requestAuthUpdate(socket, payload) {
12641
12641
  });
12642
12642
  }
12643
12643
  function ensureBoardWithRetry(socket, shareSessionKey, requestId, getCurrentRequestId) {
12644
- return _async_to_generator$m(function() {
12644
+ return _async_to_generator$n(function() {
12645
12645
  var response;
12646
- return _ts_generator$m(this, function(_state) {
12646
+ return _ts_generator$n(this, function(_state) {
12647
12647
  switch(_state.label){
12648
12648
  case 0:
12649
12649
  if (!(requestId === getCurrentRequestId())) return [
@@ -12793,9 +12793,9 @@ function sortRecoveryObjects(objects) {
12793
12793
  });
12794
12794
  }
12795
12795
  function requestJson(fetchImpl, url, token, signal) {
12796
- return _async_to_generator$m(function() {
12796
+ return _async_to_generator$n(function() {
12797
12797
  var response, payload;
12798
- return _ts_generator$m(this, function(_state) {
12798
+ return _ts_generator$n(this, function(_state) {
12799
12799
  switch(_state.label){
12800
12800
  case 0:
12801
12801
  return [
@@ -12839,7 +12839,7 @@ function _array_with_holes$o(arr) {
12839
12839
  function _array_without_holes$9(arr) {
12840
12840
  if (Array.isArray(arr)) return _array_like_to_array$r(arr);
12841
12841
  }
12842
- function asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, key, arg) {
12842
+ function asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, key, arg) {
12843
12843
  try {
12844
12844
  var info = gen[key](arg);
12845
12845
  var value = info.value;
@@ -12853,22 +12853,22 @@ function asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, key, arg) {
12853
12853
  Promise.resolve(value).then(_next, _throw);
12854
12854
  }
12855
12855
  }
12856
- function _async_to_generator$l(fn) {
12856
+ function _async_to_generator$m(fn) {
12857
12857
  return function() {
12858
12858
  var self = this, args = arguments;
12859
12859
  return new Promise(function(resolve, reject) {
12860
12860
  var gen = fn.apply(self, args);
12861
12861
  function _next(value) {
12862
- asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, "next", value);
12862
+ asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, "next", value);
12863
12863
  }
12864
12864
  function _throw(err) {
12865
- asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, "throw", err);
12865
+ asyncGeneratorStep$m(gen, resolve, reject, _next, _throw, "throw", err);
12866
12866
  }
12867
12867
  _next(undefined);
12868
12868
  });
12869
12869
  };
12870
12870
  }
12871
- function _define_property$j(obj, key, value) {
12871
+ function _define_property$k(obj, key, value) {
12872
12872
  if (key in obj) {
12873
12873
  Object.defineProperty(obj, key, {
12874
12874
  value: value,
@@ -12914,7 +12914,7 @@ function _non_iterable_rest$o() {
12914
12914
  function _non_iterable_spread$9() {
12915
12915
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12916
12916
  }
12917
- function _object_spread$h(target) {
12917
+ function _object_spread$i(target) {
12918
12918
  for(var i = 1; i < arguments.length; i++){
12919
12919
  var source = arguments[i] != null ? arguments[i] : {};
12920
12920
  var ownKeys = Object.keys(source);
@@ -12924,7 +12924,7 @@ function _object_spread$h(target) {
12924
12924
  }));
12925
12925
  }
12926
12926
  ownKeys.forEach(function(key) {
12927
- _define_property$j(target, key, source[key]);
12927
+ _define_property$k(target, key, source[key]);
12928
12928
  });
12929
12929
  }
12930
12930
  return target;
@@ -12962,7 +12962,7 @@ function _unsupported_iterable_to_array$r(o, minLen) {
12962
12962
  if (n === "Map" || n === "Set") return Array.from(n);
12963
12963
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$r(o, minLen);
12964
12964
  }
12965
- function _ts_generator$l(thisArg, body) {
12965
+ function _ts_generator$m(thisArg, body) {
12966
12966
  var f, y, t, _ = {
12967
12967
  label: 0,
12968
12968
  sent: function() {
@@ -13162,9 +13162,9 @@ function WhiteboardProvider(param) {
13162
13162
  cancelRecovery
13163
13163
  ]);
13164
13164
  var setAuth = useCallback(function(nextAuth) {
13165
- return _async_to_generator$l(function() {
13165
+ return _async_to_generator$m(function() {
13166
13166
  var _runtimeRef_current, _runtimeRef_current1, _runtimeRef_current2, error;
13167
- return _ts_generator$l(this, function(_state) {
13167
+ return _ts_generator$m(this, function(_state) {
13168
13168
  switch(_state.label){
13169
13169
  case 0:
13170
13170
  if (!hasValidWhiteboardAuth(nextAuth)) {
@@ -13270,9 +13270,9 @@ function WhiteboardProvider(param) {
13270
13270
  cancelRecovery
13271
13271
  ]);
13272
13272
  var restore = useCallback(function() {
13273
- return _async_to_generator$l(function() {
13273
+ return _async_to_generator$m(function() {
13274
13274
  var currentAuth, currentShareSessionKey, controller, recoveryVersion, _runtimeRef_current, nextRecovery, error;
13275
- return _ts_generator$l(this, function(_state) {
13275
+ return _ts_generator$m(this, function(_state) {
13276
13276
  switch(_state.label){
13277
13277
  case 0:
13278
13278
  currentAuth = authRef.current;
@@ -13323,7 +13323,7 @@ function WhiteboardProvider(param) {
13323
13323
  setBoardState(function(currentBoardState) {
13324
13324
  var _ref;
13325
13325
  var _nextRecovery_deltas_;
13326
- return _object_spread_props$f(_object_spread$h({}, currentBoardState), {
13326
+ return _object_spread_props$f(_object_spread$i({}, currentBoardState), {
13327
13327
  activeShareSessionKey: currentShareSessionKey,
13328
13328
  boardId: nextRecovery.bootstrap.boardId,
13329
13329
  headRevision: Math.max(currentBoardState.headRevision, (_ref = (_nextRecovery_deltas_ = nextRecovery.deltas[nextRecovery.deltas.length - 1]) === null || _nextRecovery_deltas_ === void 0 ? void 0 : _nextRecovery_deltas_.headRevision) !== null && _ref !== void 0 ? _ref : nextRecovery.bootstrap.headRevision)
@@ -13352,9 +13352,9 @@ function WhiteboardProvider(param) {
13352
13352
  cancelRecovery
13353
13353
  ]);
13354
13354
  var submitOperation = useCallback(function(operation) {
13355
- return _async_to_generator$l(function() {
13355
+ return _async_to_generator$m(function() {
13356
13356
  var _ref, _runtimeRef_current;
13357
- return _ts_generator$l(this, function(_state) {
13357
+ return _ts_generator$m(this, function(_state) {
13358
13358
  switch(_state.label){
13359
13359
  case 0:
13360
13360
  return [
@@ -13467,7 +13467,7 @@ function _array_like_to_array$q(arr, len) {
13467
13467
  function _array_without_holes$8(arr) {
13468
13468
  if (Array.isArray(arr)) return _array_like_to_array$q(arr);
13469
13469
  }
13470
- function _define_property$i(obj, key, value) {
13470
+ function _define_property$j(obj, key, value) {
13471
13471
  if (key in obj) {
13472
13472
  Object.defineProperty(obj, key, {
13473
13473
  value: value,
@@ -13486,7 +13486,7 @@ function _iterable_to_array$8(iter) {
13486
13486
  function _non_iterable_spread$8() {
13487
13487
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13488
13488
  }
13489
- function _object_spread$g(target) {
13489
+ function _object_spread$h(target) {
13490
13490
  for(var i = 1; i < arguments.length; i++){
13491
13491
  var source = arguments[i] != null ? arguments[i] : {};
13492
13492
  var ownKeys = Object.keys(source);
@@ -13496,7 +13496,7 @@ function _object_spread$g(target) {
13496
13496
  }));
13497
13497
  }
13498
13498
  ownKeys.forEach(function(key) {
13499
- _define_property$i(target, key, source[key]);
13499
+ _define_property$j(target, key, source[key]);
13500
13500
  });
13501
13501
  }
13502
13502
  return target;
@@ -13546,7 +13546,7 @@ function toChatProviderProps(integration) {
13546
13546
  refreshToken: integration.refreshToken,
13547
13547
  refreshTokenExpiresAt: integration.refreshTokenExpiresAt,
13548
13548
  rooms: integration.rooms.map(function(room) {
13549
- return _object_spread_props$e(_object_spread$g({}, room), {
13549
+ return _object_spread_props$e(_object_spread$h({}, room), {
13550
13550
  permissions: _to_consumable_array$8(room.permissions)
13551
13551
  });
13552
13552
  }),
@@ -13613,7 +13613,7 @@ function _assert_this_initialized$1(self) {
13613
13613
  }
13614
13614
  return self;
13615
13615
  }
13616
- function asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, key, arg) {
13616
+ function asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, key, arg) {
13617
13617
  try {
13618
13618
  var info = gen[key](arg);
13619
13619
  var value = info.value;
@@ -13627,16 +13627,16 @@ function asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, key, arg) {
13627
13627
  Promise.resolve(value).then(_next, _throw);
13628
13628
  }
13629
13629
  }
13630
- function _async_to_generator$k(fn) {
13630
+ function _async_to_generator$l(fn) {
13631
13631
  return function() {
13632
13632
  var self = this, args = arguments;
13633
13633
  return new Promise(function(resolve, reject) {
13634
13634
  var gen = fn.apply(self, args);
13635
13635
  function _next(value) {
13636
- asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, "next", value);
13636
+ asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, "next", value);
13637
13637
  }
13638
13638
  function _throw(err) {
13639
- asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, "throw", err);
13639
+ asyncGeneratorStep$l(gen, resolve, reject, _next, _throw, "throw", err);
13640
13640
  }
13641
13641
  _next(undefined);
13642
13642
  });
@@ -13668,7 +13668,7 @@ function _construct$1(Parent, args, Class) {
13668
13668
  }
13669
13669
  return _construct$1.apply(null, arguments);
13670
13670
  }
13671
- function _define_property$h(obj, key, value) {
13671
+ function _define_property$i(obj, key, value) {
13672
13672
  if (key in obj) {
13673
13673
  Object.defineProperty(obj, key, {
13674
13674
  value: value,
@@ -13743,7 +13743,7 @@ function _non_iterable_rest$n() {
13743
13743
  function _non_iterable_spread$7() {
13744
13744
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
13745
13745
  }
13746
- function _object_spread$f(target) {
13746
+ function _object_spread$g(target) {
13747
13747
  for(var i = 1; i < arguments.length; i++){
13748
13748
  var source = arguments[i] != null ? arguments[i] : {};
13749
13749
  var ownKeys = Object.keys(source);
@@ -13753,7 +13753,7 @@ function _object_spread$f(target) {
13753
13753
  }));
13754
13754
  }
13755
13755
  ownKeys.forEach(function(key) {
13756
- _define_property$h(target, key, source[key]);
13756
+ _define_property$i(target, key, source[key]);
13757
13757
  });
13758
13758
  }
13759
13759
  return target;
@@ -13842,7 +13842,7 @@ function _is_native_reflect_construct$1() {
13842
13842
  return !!result;
13843
13843
  })();
13844
13844
  }
13845
- function _ts_generator$k(thisArg, body) {
13845
+ function _ts_generator$l(thisArg, body) {
13846
13846
  var f, y, t, _ = {
13847
13847
  label: 0,
13848
13848
  sent: function() {
@@ -13956,7 +13956,7 @@ var isRoomPlatformDebugEnabled = function() {
13956
13956
  };
13957
13957
  var roomPlatformDebug = function(event, details) {
13958
13958
  if (!isRoomPlatformDebugEnabled()) return;
13959
- console.log("[room-platform-debug:".concat(event, "]"), _object_spread$f({
13959
+ console.log("[room-platform-debug:".concat(event, "]"), _object_spread$g({
13960
13960
  at: new Date().toISOString()
13961
13961
  }, details));
13962
13962
  };
@@ -13982,7 +13982,7 @@ var RoomPlatformGatewayError = /*#__PURE__*/ function(Error1) {
13982
13982
  var _ref;
13983
13983
  _this = _call_super$1(this, RoomPlatformGatewayError, [
13984
13984
  (_ref = message !== null && message !== void 0 ? message : code) !== null && _ref !== void 0 ? _ref : "ROOM_PLATFORM_GATEWAY_".concat(status)
13985
- ]), _define_property$h(_this, "code", void 0), _define_property$h(_this, "status", void 0), _this.code = code, _this.status = status;
13985
+ ]), _define_property$i(_this, "code", void 0), _define_property$i(_this, "status", void 0), _this.code = code, _this.status = status;
13986
13986
  return _this;
13987
13987
  }
13988
13988
  return RoomPlatformGatewayError;
@@ -14005,9 +14005,9 @@ var toError = function(error) {
14005
14005
  return _instanceof$3(error, Error) ? error : new Error(String(error));
14006
14006
  };
14007
14007
  var toGatewayError = function(response) {
14008
- return _async_to_generator$k(function() {
14008
+ return _async_to_generator$l(function() {
14009
14009
  var _ref, body;
14010
- return _ts_generator$k(this, function(_state) {
14010
+ return _ts_generator$l(this, function(_state) {
14011
14011
  switch(_state.label){
14012
14012
  case 0:
14013
14013
  _state.trys.push([
@@ -14071,7 +14071,7 @@ var localMediaStateOf = function(room) {
14071
14071
  };
14072
14072
  };
14073
14073
  var effectiveLocalMediaStateOf = function(room, current) {
14074
- return _object_spread_props$d(_object_spread$f({}, localMediaStateOf(room)), {
14074
+ return _object_spread_props$d(_object_spread$g({}, localMediaStateOf(room)), {
14075
14075
  camera: isManagedParticipantRole(roleFromMetadata(room.localParticipant.metadata)) ? current.camera : room.localParticipant.isCameraEnabled
14076
14076
  });
14077
14077
  };
@@ -14135,8 +14135,8 @@ function RoomPlatformProvider(param) {
14135
14135
  var privateMediaSnapshotRef = useRef(null);
14136
14136
  var privateMediaRestoreTaskRef = useRef(null);
14137
14137
  var recoverRef = useRef(function() {
14138
- return _async_to_generator$k(function() {
14139
- return _ts_generator$k(this, function(_state) {
14138
+ return _async_to_generator$l(function() {
14139
+ return _ts_generator$l(this, function(_state) {
14140
14140
  return [
14141
14141
  2,
14142
14142
  undefined
@@ -14161,7 +14161,7 @@ function RoomPlatformProvider(param) {
14161
14161
  }, []);
14162
14162
  var reportError = useCallback(function(nextError, classification) {
14163
14163
  var normalizedError = toError(nextError);
14164
- var event = _object_spread$f({
14164
+ var event = _object_spread$g({
14165
14165
  error: normalizedError
14166
14166
  }, classification);
14167
14167
  if (isMountedRef.current) {
@@ -14220,9 +14220,9 @@ function RoomPlatformProvider(param) {
14220
14220
  return reduction;
14221
14221
  }, []);
14222
14222
  var syncControlState = useCallback(function() {
14223
- return _async_to_generator$k(function() {
14223
+ return _async_to_generator$l(function() {
14224
14224
  var currentAccess, generation, inFlight, sync, _controlStateSyncRef_current;
14225
- return _ts_generator$k(this, function(_state) {
14225
+ return _ts_generator$l(this, function(_state) {
14226
14226
  switch(_state.label){
14227
14227
  case 0:
14228
14228
  currentAccess = accessRef.current;
@@ -14233,9 +14233,9 @@ function RoomPlatformProvider(param) {
14233
14233
  inFlight.promise
14234
14234
  ];
14235
14235
  sync = function() {
14236
- return _async_to_generator$k(function() {
14236
+ return _async_to_generator$l(function() {
14237
14237
  var response, body, syncError;
14238
- return _ts_generator$k(this, function(_state) {
14238
+ return _ts_generator$l(this, function(_state) {
14239
14239
  switch(_state.label){
14240
14240
  case 0:
14241
14241
  if (!currentAccess) return [
@@ -14383,9 +14383,9 @@ function RoomPlatformProvider(param) {
14383
14383
  return roleFromMetadata(currentRoom.localParticipant.metadata) === 'student' && (((_controlStateRef_current = controlStateRef.current) === null || _controlStateRef_current === void 0 ? void 0 : _controlStateRef_current.monitorActive) === true || ((_controlStateRef_current1 = controlStateRef.current) === null || _controlStateRef_current1 === void 0 ? void 0 : _controlStateRef_current1.activeSpeakerParticipantIdentity) === currentAccess.liveKit.participantIdentity);
14384
14384
  }, []);
14385
14385
  var reconcileManagedCameraUpstream = useCallback(function(track, currentRoom, currentAccess) {
14386
- return _async_to_generator$k(function() {
14386
+ return _async_to_generator$l(function() {
14387
14387
  var _controlStateRef_current, _controlStateRef_current1, _currentRoom_localParticipant_getTrackPublication, shouldResume, applyUpstreamState, error;
14388
- return _ts_generator$k(this, function(_state) {
14388
+ return _ts_generator$l(this, function(_state) {
14389
14389
  switch(_state.label){
14390
14390
  case 0:
14391
14391
  if (!isManagedParticipantRole(roleFromMetadata(currentRoom.localParticipant.metadata))) return [
@@ -14402,8 +14402,8 @@ function RoomPlatformProvider(param) {
14402
14402
  trackSid: track.sid
14403
14403
  });
14404
14404
  applyUpstreamState = function(state) {
14405
- return _async_to_generator$k(function() {
14406
- return _ts_generator$k(this, function(_state) {
14405
+ return _async_to_generator$l(function() {
14406
+ return _ts_generator$l(this, function(_state) {
14407
14407
  switch(_state.label){
14408
14408
  case 0:
14409
14409
  roomPlatformDebug("camera.upstream.".concat(state, ".request"), {
@@ -14547,15 +14547,15 @@ function RoomPlatformProvider(param) {
14547
14547
  at: at,
14548
14548
  bytes: bytes
14549
14549
  });
14550
- roomPlatformDebug("stats.".concat(direction), _object_spread$f({
14550
+ roomPlatformDebug("stats.".concat(direction), _object_spread$g({
14551
14551
  bitrateKbps: bitrateKbps,
14552
14552
  bytes: bytes
14553
14553
  }, details));
14554
14554
  };
14555
14555
  var logStats = function() {
14556
- return _async_to_generator$k(function() {
14556
+ return _async_to_generator$l(function() {
14557
14557
  var senderStatsTrack, _senderStatsTrack_sid, senderStats, error, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, participant, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, publication, receiverStatsTrack, _receiverStats_bytesReceived, receiverStats, error1, err, err;
14558
- return _ts_generator$k(this, function(_state) {
14558
+ return _ts_generator$l(this, function(_state) {
14559
14559
  switch(_state.label){
14560
14560
  case 0:
14561
14561
  senderStatsTrack = localCameraTrack;
@@ -14867,7 +14867,7 @@ function RoomPlatformProvider(param) {
14867
14867
  if (isMountedRef.current) {
14868
14868
  setLocalCameraTrack(null);
14869
14869
  setLocalMedia(function(current) {
14870
- return _object_spread_props$d(_object_spread$f({}, current), {
14870
+ return _object_spread_props$d(_object_spread$g({}, current), {
14871
14871
  camera: false
14872
14872
  });
14873
14873
  });
@@ -14886,9 +14886,9 @@ function RoomPlatformProvider(param) {
14886
14886
  return null;
14887
14887
  });
14888
14888
  var creation = function() {
14889
- return _async_to_generator$k(function() {
14889
+ return _async_to_generator$l(function() {
14890
14890
  var _roomConnectionRef_current, created, stillCurrent, ended, restarted, creationError;
14891
- return _ts_generator$k(this, function(_state) {
14891
+ return _ts_generator$l(this, function(_state) {
14892
14892
  switch(_state.label){
14893
14893
  case 0:
14894
14894
  _state.trys.push([
@@ -14973,9 +14973,9 @@ function RoomPlatformProvider(param) {
14973
14973
  reportError
14974
14974
  ]);
14975
14975
  var unpublishCanonicalCamera = useCallback(function(retainForPreview) {
14976
- return _async_to_generator$k(function() {
14976
+ return _async_to_generator$l(function() {
14977
14977
  var _roomConnectionRef_current, currentRoom, track, publication, wasPublished, unpublishError;
14978
- return _ts_generator$k(this, function(_state) {
14978
+ return _ts_generator$l(this, function(_state) {
14979
14979
  switch(_state.label){
14980
14980
  case 0:
14981
14981
  currentRoom = (_roomConnectionRef_current = roomConnectionRef.current) === null || _roomConnectionRef_current === void 0 ? void 0 : _roomConnectionRef_current.room;
@@ -15052,7 +15052,7 @@ function RoomPlatformProvider(param) {
15052
15052
  case 7:
15053
15053
  if (!retainForPreview) removeCanonicalCameraTrack(track, !wasPublished);
15054
15054
  else if (isMountedRef.current) setLocalMedia(function(current) {
15055
- return _object_spread_props$d(_object_spread$f({}, current), {
15055
+ return _object_spread_props$d(_object_spread$g({}, current), {
15056
15056
  camera: false
15057
15057
  });
15058
15058
  });
@@ -15067,9 +15067,9 @@ function RoomPlatformProvider(param) {
15067
15067
  reportError
15068
15068
  ]);
15069
15069
  var publishCanonicalCamera = useCallback(function(lifecycle, revision, generation, currentRoom) {
15070
- return _async_to_generator$k(function() {
15070
+ return _async_to_generator$l(function() {
15071
15071
  var _roomConnectionRef_current, currentAccess, track, _currentRoom_localParticipant_getTrackPublication, _roomConnectionRef_current1, publication, managedCameraEnabled, latestAccess, canRetainForPreview, publication1, wasPublished, managedCameraEnabled1, publishError, _roomConnectionRef_current2, latestAccess1, canRetain;
15072
- return _ts_generator$k(this, function(_state) {
15072
+ return _ts_generator$l(this, function(_state) {
15073
15073
  switch(_state.label){
15074
15074
  case 0:
15075
15075
  currentAccess = accessRef.current;
@@ -15105,7 +15105,7 @@ function RoomPlatformProvider(param) {
15105
15105
  managedCameraEnabled = _state.sent();
15106
15106
  if (isMountedRef.current && managedCameraEnabled !== undefined) {
15107
15107
  setLocalMedia(function(current) {
15108
- return _object_spread_props$d(_object_spread$f({}, current), {
15108
+ return _object_spread_props$d(_object_spread$g({}, current), {
15109
15109
  camera: managedCameraEnabled
15110
15110
  });
15111
15111
  });
@@ -15157,7 +15157,7 @@ function RoomPlatformProvider(param) {
15157
15157
  _state.sent();
15158
15158
  if (!canRetainForPreview) removeCanonicalCameraTrack(track, !wasPublished);
15159
15159
  else if (isMountedRef.current) setLocalMedia(function(current) {
15160
- return _object_spread_props$d(_object_spread$f({}, current), {
15160
+ return _object_spread_props$d(_object_spread$g({}, current), {
15161
15161
  camera: false
15162
15162
  });
15163
15163
  });
@@ -15173,7 +15173,7 @@ function RoomPlatformProvider(param) {
15173
15173
  managedCameraEnabled1 = _state.sent();
15174
15174
  if (isMountedRef.current) {
15175
15175
  setLocalMedia(function(current) {
15176
- return _object_spread_props$d(_object_spread$f({}, current), {
15176
+ return _object_spread_props$d(_object_spread$g({}, current), {
15177
15177
  camera: managedCameraEnabled1 !== null && managedCameraEnabled1 !== void 0 ? managedCameraEnabled1 : true
15178
15178
  });
15179
15179
  });
@@ -15185,7 +15185,7 @@ function RoomPlatformProvider(param) {
15185
15185
  case 10:
15186
15186
  publishError = _state.sent();
15187
15187
  if (isMountedRef.current) setLocalMedia(function(current) {
15188
- return _object_spread_props$d(_object_spread$f({}, current), {
15188
+ return _object_spread_props$d(_object_spread$g({}, current), {
15189
15189
  camera: false
15190
15190
  });
15191
15191
  });
@@ -15217,9 +15217,9 @@ function RoomPlatformProvider(param) {
15217
15217
  unpublishCanonicalCamera
15218
15218
  ]);
15219
15219
  var handleCameraEnded = useCallback(function(lifecycle, endedTrack) {
15220
- return _async_to_generator$k(function() {
15220
+ return _async_to_generator$l(function() {
15221
15221
  var _roomConnectionRef_current, _roomConnectionRef_current1, currentRoom, currentAccess, publication, revision, generation, _roomConnectionRef_current2, latestAccess, canKeepRestartedTrack, latestAccess1;
15222
- return _ts_generator$k(this, function(_state) {
15222
+ return _ts_generator$l(this, function(_state) {
15223
15223
  switch(_state.label){
15224
15224
  case 0:
15225
15225
  if (canonicalCameraTrackRef.current !== endedTrack || !isLifecycleActive(lifecycle)) return [
@@ -15311,9 +15311,9 @@ function RoomPlatformProvider(param) {
15311
15311
  var lifecycle = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lifecycleRef.current, revision = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : cameraRevisionRef.current, generation = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : accessGenerationRef.current;
15312
15312
  if (!lifecycle) return Promise.resolve();
15313
15313
  return enqueueCameraTransition(function() {
15314
- return _async_to_generator$k(function() {
15314
+ return _async_to_generator$l(function() {
15315
15315
  var _canonicalCameraTrackRef_current, connection, currentAccess, shouldCapture, track, _tmp;
15316
- return _ts_generator$k(this, function(_state) {
15316
+ return _ts_generator$l(this, function(_state) {
15317
15317
  switch(_state.label){
15318
15318
  case 0:
15319
15319
  connection = roomConnectionRef.current;
@@ -15397,9 +15397,9 @@ function RoomPlatformProvider(param) {
15397
15397
  unpublishCanonicalCamera
15398
15398
  ]);
15399
15399
  var handleCameraRestarted = useCallback(function(lifecycle, restartedTrack) {
15400
- return _async_to_generator$k(function() {
15400
+ return _async_to_generator$l(function() {
15401
15401
  var connection, currentAccess, publication;
15402
- return _ts_generator$k(this, function(_state) {
15402
+ return _ts_generator$l(this, function(_state) {
15403
15403
  switch(_state.label){
15404
15404
  case 0:
15405
15405
  if (canonicalCameraTrackRef.current !== restartedTrack || !isLifecycleActive(lifecycle)) return [
@@ -15437,9 +15437,9 @@ function RoomPlatformProvider(param) {
15437
15437
  handleCameraRestarted
15438
15438
  ]);
15439
15439
  var reconcileLocalCameraAfterProcessor = useCallback(function(track) {
15440
- return _async_to_generator$k(function() {
15440
+ return _async_to_generator$l(function() {
15441
15441
  var lifecycle, connection;
15442
- return _ts_generator$k(this, function(_state) {
15442
+ return _ts_generator$l(this, function(_state) {
15443
15443
  switch(_state.label){
15444
15444
  case 0:
15445
15445
  if (canonicalCameraTrackRef.current !== track) return [
@@ -15491,9 +15491,9 @@ function RoomPlatformProvider(param) {
15491
15491
  }
15492
15492
  }, []);
15493
15493
  var exchangeTicket = useCallback(function(ticket) {
15494
- return _async_to_generator$k(function() {
15494
+ return _async_to_generator$l(function() {
15495
15495
  var response, access, error;
15496
- return _ts_generator$k(this, function(_state) {
15496
+ return _ts_generator$l(this, function(_state) {
15497
15497
  switch(_state.label){
15498
15498
  case 0:
15499
15499
  _state.trys.push([
@@ -15556,9 +15556,9 @@ function RoomPlatformProvider(param) {
15556
15556
  reportLifecycleEvent
15557
15557
  ]);
15558
15558
  var connectLiveKit = useCallback(function(nextAccess, lifecycle) {
15559
- return _async_to_generator$k(function() {
15559
+ return _async_to_generator$l(function() {
15560
15560
  var _nextAccess_integrations, existingConnection, mediaState, createdConnection, nextRoom, connection, connection1, connectError, firstSuccessfulConnection, restorationResults, initialMediaResults;
15561
- return _ts_generator$k(this, function(_state) {
15561
+ return _ts_generator$l(this, function(_state) {
15562
15562
  switch(_state.label){
15563
15563
  case 0:
15564
15564
  if (!isLifecycleActive(lifecycle)) return [
@@ -15574,7 +15574,7 @@ function RoomPlatformProvider(param) {
15574
15574
  activeDeviceChanged: function(kind, deviceId) {
15575
15575
  if (isMountedRef.current && !connection.disposed) {
15576
15576
  setActiveDevices(function(current) {
15577
- return _object_spread_props$d(_object_spread$f({}, current), _define_property$h({}, kind, deviceId));
15577
+ return _object_spread_props$d(_object_spread$g({}, current), _define_property$i({}, kind, deviceId));
15578
15578
  });
15579
15579
  }
15580
15580
  },
@@ -15600,9 +15600,9 @@ function RoomPlatformProvider(param) {
15600
15600
  var _$lifecycle = lifecycleRef.current;
15601
15601
  var generation = accessGenerationRef.current;
15602
15602
  void function() {
15603
- return _async_to_generator$k(function() {
15603
+ return _async_to_generator$l(function() {
15604
15604
  var _tmp;
15605
- return _ts_generator$k(this, function(_state) {
15605
+ return _ts_generator$l(this, function(_state) {
15606
15606
  switch(_state.label){
15607
15607
  case 0:
15608
15608
  _tmp = !_$lifecycle;
@@ -15652,9 +15652,9 @@ function RoomPlatformProvider(param) {
15652
15652
  return _instanceof$3(argument, Error) || errorCodeOf(argument);
15653
15653
  });
15654
15654
  void function() {
15655
- return _async_to_generator$k(function() {
15655
+ return _async_to_generator$l(function() {
15656
15656
  var recoveryError;
15657
- return _ts_generator$k(this, function(_state) {
15657
+ return _ts_generator$l(this, function(_state) {
15658
15658
  switch(_state.label){
15659
15659
  case 0:
15660
15660
  _state.trys.push([
@@ -15859,9 +15859,9 @@ function RoomPlatformProvider(param) {
15859
15859
  syncControlState
15860
15860
  ]);
15861
15861
  var connectFromTicket = useCallback(function(ticket, lifecycle) {
15862
- return _async_to_generator$k(function() {
15862
+ return _async_to_generator$l(function() {
15863
15863
  var nextAccess;
15864
- return _ts_generator$k(this, function(_state) {
15864
+ return _ts_generator$l(this, function(_state) {
15865
15865
  switch(_state.label){
15866
15866
  case 0:
15867
15867
  return [
@@ -15892,9 +15892,9 @@ function RoomPlatformProvider(param) {
15892
15892
  ]);
15893
15893
  var recover = useCallback(function(reason) {
15894
15894
  var lifecycle = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lifecycleRef.current;
15895
- return _async_to_generator$k(function() {
15895
+ return _async_to_generator$l(function() {
15896
15896
  var recovery;
15897
- return _ts_generator$k(this, function(_state) {
15897
+ return _ts_generator$l(this, function(_state) {
15898
15898
  switch(_state.label){
15899
15899
  case 0:
15900
15900
  if (!lifecycle || !isLifecycleActive(lifecycle)) return [
@@ -15905,9 +15905,9 @@ function RoomPlatformProvider(param) {
15905
15905
  recoveryRef.current
15906
15906
  ];
15907
15907
  recovery = function() {
15908
- return _async_to_generator$k(function() {
15908
+ return _async_to_generator$l(function() {
15909
15909
  var replacement, error;
15910
- return _ts_generator$k(this, function(_state) {
15910
+ return _ts_generator$l(this, function(_state) {
15911
15911
  switch(_state.label){
15912
15912
  case 0:
15913
15913
  if (isLifecycleActive(lifecycle)) setStatus('reconnecting');
@@ -15999,9 +15999,9 @@ function RoomPlatformProvider(param) {
15999
15999
  lifecycleRef.current = lifecycle;
16000
16000
  isMountedRef.current = true;
16001
16001
  void function() {
16002
- return _async_to_generator$k(function() {
16002
+ return _async_to_generator$l(function() {
16003
16003
  var initialError, recoveryError;
16004
- return _ts_generator$k(this, function(_state) {
16004
+ return _ts_generator$l(this, function(_state) {
16005
16005
  switch(_state.label){
16006
16006
  case 0:
16007
16007
  if (!isLifecycleActive(lifecycle)) return [
@@ -16127,9 +16127,9 @@ function RoomPlatformProvider(param) {
16127
16127
  var existingAction = pendingActionsRef.current.get(pendingKey);
16128
16128
  if (existingAction !== undefined) return existingAction;
16129
16129
  var action = (function() {
16130
- return _async_to_generator$k(function() {
16130
+ return _async_to_generator$l(function() {
16131
16131
  var requiredCapability, initialAccess, idempotencyKey, postAction, response, body, actionFailure, renewedAccess, retryResponse, body1;
16132
- return _ts_generator$k(this, function(_state) {
16132
+ return _ts_generator$l(this, function(_state) {
16133
16133
  switch(_state.label){
16134
16134
  case 0:
16135
16135
  requiredCapability = roomActionCapabilities[name];
@@ -16251,9 +16251,9 @@ function RoomPlatformProvider(param) {
16251
16251
  var existingOperation = kind === 'camera' ? undefined : pendingLocalMediaRef.current.get(kind);
16252
16252
  if (existingOperation !== undefined) return existingOperation;
16253
16253
  var operation = (function() {
16254
- return _async_to_generator$k(function() {
16254
+ return _async_to_generator$l(function() {
16255
16255
  var _controlStateRef_current, _accessRef_current, connection, role, currentAccess, hasTemporarySpeakerGrant, ringingPrivateRoom, participant, actorId, isRingingForActor, _ref, currentSnapshot, snapshot;
16256
- return _ts_generator$k(this, function(_state) {
16256
+ return _ts_generator$l(this, function(_state) {
16257
16257
  switch(_state.label){
16258
16258
  case 0:
16259
16259
  connection = roomConnectionRef.current;
@@ -16336,13 +16336,13 @@ function RoomPlatformProvider(param) {
16336
16336
  room: connection.room,
16337
16337
  suppressed: false
16338
16338
  };
16339
- privateMediaSnapshotRef.current = _object_spread_props$d(_object_spread$f({}, snapshot), {
16339
+ privateMediaSnapshotRef.current = _object_spread_props$d(_object_spread$g({}, snapshot), {
16340
16340
  microphoneEnabled: enabled
16341
16341
  });
16342
16342
  }
16343
16343
  clearMediaError();
16344
16344
  if (isMountedRef.current && !connection.disposed) setLocalMedia(function(current) {
16345
- return _object_spread_props$d(_object_spread$f({}, current), _define_property$h({}, kind, enabled));
16345
+ return _object_spread_props$d(_object_spread$g({}, current), _define_property$i({}, kind, enabled));
16346
16346
  });
16347
16347
  return [
16348
16348
  2
@@ -16405,7 +16405,7 @@ function RoomPlatformProvider(param) {
16405
16405
  privateRoomId: privateRoom.id,
16406
16406
  room: room,
16407
16407
  suppressed: true
16408
- } : _object_spread_props$d(_object_spread$f({}, snapshot), {
16408
+ } : _object_spread_props$d(_object_spread$g({}, snapshot), {
16409
16409
  suppressed: true
16410
16410
  });
16411
16411
  void Promise.allSettled([
@@ -16429,9 +16429,9 @@ function RoomPlatformProvider(param) {
16429
16429
  privateMediaRestoreTaskRef.current = snapshot;
16430
16430
  setPrivateMediaRestorePending(true);
16431
16431
  void function() {
16432
- return _async_to_generator$k(function() {
16432
+ return _async_to_generator$l(function() {
16433
16433
  var _roomConnectionRef_current, latestPrivateRoom, latestActorId, privateRoomStillActive, restorationResults;
16434
- return _ts_generator$k(this, function(_state) {
16434
+ return _ts_generator$l(this, function(_state) {
16435
16435
  switch(_state.label){
16436
16436
  case 0:
16437
16437
  _state.trys.push([
@@ -16552,9 +16552,9 @@ function RoomPlatformProvider(param) {
16552
16552
  room
16553
16553
  ]);
16554
16554
  var switchActiveDevice = useCallback(function(kind, deviceId) {
16555
- return _async_to_generator$k(function() {
16555
+ return _async_to_generator$l(function() {
16556
16556
  var connection, lifecycle, revision, generation, deviceError;
16557
- return _ts_generator$k(this, function(_state) {
16557
+ return _ts_generator$l(this, function(_state) {
16558
16558
  switch(_state.label){
16559
16559
  case 0:
16560
16560
  connection = roomConnectionRef.current;
@@ -16573,9 +16573,9 @@ function RoomPlatformProvider(param) {
16573
16573
  return [
16574
16574
  4,
16575
16575
  enqueueCameraTransition(function() {
16576
- return _async_to_generator$k(function() {
16576
+ return _async_to_generator$l(function() {
16577
16577
  var switched, canonicalTrack, publication, currentAccess, managedCameraEnabled;
16578
- return _ts_generator$k(this, function(_state) {
16578
+ return _ts_generator$l(this, function(_state) {
16579
16579
  switch(_state.label){
16580
16580
  case 0:
16581
16581
  return [
@@ -16626,7 +16626,7 @@ function RoomPlatformProvider(param) {
16626
16626
  managedCameraEnabled = _state.sent();
16627
16627
  if (isMountedRef.current && managedCameraEnabled !== undefined) {
16628
16628
  setLocalMedia(function(current) {
16629
- return _object_spread_props$d(_object_spread$f({}, current), {
16629
+ return _object_spread_props$d(_object_spread$g({}, current), {
16630
16630
  camera: managedCameraEnabled
16631
16631
  });
16632
16632
  });
@@ -16644,7 +16644,7 @@ function RoomPlatformProvider(param) {
16644
16644
  clearMediaError();
16645
16645
  if (isMountedRef.current && !connection.disposed) {
16646
16646
  setActiveDevices(function(current) {
16647
- return _object_spread_props$d(_object_spread$f({}, current), _define_property$h({}, kind, deviceId));
16647
+ return _object_spread_props$d(_object_spread$g({}, current), _define_property$i({}, kind, deviceId));
16648
16648
  });
16649
16649
  }
16650
16650
  return [
@@ -16723,8 +16723,8 @@ function RoomPlatformProvider(param) {
16723
16723
  switchActiveDevice
16724
16724
  ]);
16725
16725
  var refreshControlState = useCallback(function() {
16726
- return _async_to_generator$k(function() {
16727
- return _ts_generator$k(this, function(_state) {
16726
+ return _async_to_generator$l(function() {
16727
+ return _ts_generator$l(this, function(_state) {
16728
16728
  switch(_state.label){
16729
16729
  case 0:
16730
16730
  return [
@@ -16814,7 +16814,7 @@ function _array_like_to_array$o(arr, len) {
16814
16814
  function _array_with_holes$m(arr) {
16815
16815
  if (Array.isArray(arr)) return arr;
16816
16816
  }
16817
- function asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, key, arg) {
16817
+ function asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, key, arg) {
16818
16818
  try {
16819
16819
  var info = gen[key](arg);
16820
16820
  var value = info.value;
@@ -16828,16 +16828,16 @@ function asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, key, arg) {
16828
16828
  Promise.resolve(value).then(_next, _throw);
16829
16829
  }
16830
16830
  }
16831
- function _async_to_generator$j(fn) {
16831
+ function _async_to_generator$k(fn) {
16832
16832
  return function() {
16833
16833
  var self = this, args = arguments;
16834
16834
  return new Promise(function(resolve, reject) {
16835
16835
  var gen = fn.apply(self, args);
16836
16836
  function _next(value) {
16837
- asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, "next", value);
16837
+ asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, "next", value);
16838
16838
  }
16839
16839
  function _throw(err) {
16840
- asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, "throw", err);
16840
+ asyncGeneratorStep$k(gen, resolve, reject, _next, _throw, "throw", err);
16841
16841
  }
16842
16842
  _next(undefined);
16843
16843
  });
@@ -16881,7 +16881,7 @@ function _unsupported_iterable_to_array$o(o, minLen) {
16881
16881
  if (n === "Map" || n === "Set") return Array.from(n);
16882
16882
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$o(o, minLen);
16883
16883
  }
16884
- function _ts_generator$j(thisArg, body) {
16884
+ function _ts_generator$k(thisArg, body) {
16885
16885
  var f, y, t, _ = {
16886
16886
  label: 0,
16887
16887
  sent: function() {
@@ -17053,9 +17053,9 @@ function useRoomPlatformPrivateRoom() {
17053
17053
  privateRoom
17054
17054
  ]);
17055
17055
  var acceptPrivateRoom = useCallback(function() {
17056
- return _async_to_generator$j(function() {
17056
+ return _async_to_generator$k(function() {
17057
17057
  var current;
17058
- return _ts_generator$j(this, function(_state) {
17058
+ return _ts_generator$k(this, function(_state) {
17059
17059
  switch(_state.label){
17060
17060
  case 0:
17061
17061
  current = requirePrivateRoom();
@@ -17079,9 +17079,9 @@ function useRoomPlatformPrivateRoom() {
17079
17079
  requirePrivateRoom
17080
17080
  ]);
17081
17081
  var declinePrivateRoom = useCallback(function() {
17082
- return _async_to_generator$j(function() {
17082
+ return _async_to_generator$k(function() {
17083
17083
  var current;
17084
- return _ts_generator$j(this, function(_state) {
17084
+ return _ts_generator$k(this, function(_state) {
17085
17085
  switch(_state.label){
17086
17086
  case 0:
17087
17087
  current = requirePrivateRoom();
@@ -17105,9 +17105,9 @@ function useRoomPlatformPrivateRoom() {
17105
17105
  requirePrivateRoom
17106
17106
  ]);
17107
17107
  var cancelPrivateRoom = useCallback(function() {
17108
- return _async_to_generator$j(function() {
17108
+ return _async_to_generator$k(function() {
17109
17109
  var current;
17110
- return _ts_generator$j(this, function(_state) {
17110
+ return _ts_generator$k(this, function(_state) {
17111
17111
  switch(_state.label){
17112
17112
  case 0:
17113
17113
  current = requirePrivateRoom();
@@ -17130,9 +17130,9 @@ function useRoomPlatformPrivateRoom() {
17130
17130
  requirePrivateRoom
17131
17131
  ]);
17132
17132
  var endPrivateRoom = useCallback(function() {
17133
- return _async_to_generator$j(function() {
17133
+ return _async_to_generator$k(function() {
17134
17134
  var current;
17135
- return _ts_generator$j(this, function(_state) {
17135
+ return _ts_generator$k(this, function(_state) {
17136
17136
  switch(_state.label){
17137
17137
  case 0:
17138
17138
  current = requirePrivateRoom();
@@ -17175,9 +17175,9 @@ function useRoomPlatformPrivateRoom() {
17175
17175
  requirePrivateRoom
17176
17176
  ]);
17177
17177
  var startPrivateScreenShare = useCallback(function() {
17178
- return _async_to_generator$j(function() {
17178
+ return _async_to_generator$k(function() {
17179
17179
  var current;
17180
- return _ts_generator$j(this, function(_state) {
17180
+ return _ts_generator$k(this, function(_state) {
17181
17181
  switch(_state.label){
17182
17182
  case 0:
17183
17183
  current = requirePrivateRoom();
@@ -17200,9 +17200,9 @@ function useRoomPlatformPrivateRoom() {
17200
17200
  requirePrivateRoom
17201
17201
  ]);
17202
17202
  var stopPrivateScreenShare = useCallback(function() {
17203
- return _async_to_generator$j(function() {
17203
+ return _async_to_generator$k(function() {
17204
17204
  var current;
17205
- return _ts_generator$j(this, function(_state) {
17205
+ return _ts_generator$k(this, function(_state) {
17206
17206
  switch(_state.label){
17207
17207
  case 0:
17208
17208
  current = requirePrivateRoom();
@@ -17589,7 +17589,7 @@ function RoomParticipantActions(param) {
17589
17589
  });
17590
17590
  }
17591
17591
 
17592
- function _define_property$g(obj, key, value) {
17592
+ function _define_property$h(obj, key, value) {
17593
17593
  if (key in obj) {
17594
17594
  Object.defineProperty(obj, key, {
17595
17595
  value: value,
@@ -17602,7 +17602,7 @@ function _define_property$g(obj, key, value) {
17602
17602
  }
17603
17603
  return obj;
17604
17604
  }
17605
- function _object_spread$e(target) {
17605
+ function _object_spread$f(target) {
17606
17606
  for(var i = 1; i < arguments.length; i++){
17607
17607
  var source = arguments[i] != null ? arguments[i] : {};
17608
17608
  var ownKeys = Object.keys(source);
@@ -17612,7 +17612,7 @@ function _object_spread$e(target) {
17612
17612
  }));
17613
17613
  }
17614
17614
  ownKeys.forEach(function(key) {
17615
- _define_property$g(target, key, source[key]);
17615
+ _define_property$h(target, key, source[key]);
17616
17616
  });
17617
17617
  }
17618
17618
  return target;
@@ -17693,7 +17693,7 @@ function RoomParticipantList(param) {
17693
17693
  className: "room-platform-participant-row-trailing",
17694
17694
  children: [
17695
17695
  Supplement ? /*#__PURE__*/ jsx(RoomPlatformSurfaceBoundary, {
17696
- children: /*#__PURE__*/ jsx(Supplement, _object_spread_props$c(_object_spread$e({}, extensionProps), {
17696
+ children: /*#__PURE__*/ jsx(Supplement, _object_spread_props$c(_object_spread$f({}, extensionProps), {
17697
17697
  participant: participant,
17698
17698
  presence: presence
17699
17699
  }))
@@ -17744,7 +17744,7 @@ function RoomParticipantTab(param) {
17744
17744
  });
17745
17745
  }
17746
17746
 
17747
- function _define_property$f(obj, key, value) {
17747
+ function _define_property$g(obj, key, value) {
17748
17748
  if (key in obj) {
17749
17749
  Object.defineProperty(obj, key, {
17750
17750
  value: value,
@@ -17757,7 +17757,7 @@ function _define_property$f(obj, key, value) {
17757
17757
  }
17758
17758
  return obj;
17759
17759
  }
17760
- function _object_spread$d(target) {
17760
+ function _object_spread$e(target) {
17761
17761
  for(var i = 1; i < arguments.length; i++){
17762
17762
  var source = arguments[i] != null ? arguments[i] : {};
17763
17763
  var ownKeys = Object.keys(source);
@@ -17767,7 +17767,7 @@ function _object_spread$d(target) {
17767
17767
  }));
17768
17768
  }
17769
17769
  ownKeys.forEach(function(key) {
17770
- _define_property$f(target, key, source[key]);
17770
+ _define_property$g(target, key, source[key]);
17771
17771
  });
17772
17772
  }
17773
17773
  return target;
@@ -17839,7 +17839,7 @@ function RoomActionButton(_0) {
17839
17839
  "state"
17840
17840
  ]);
17841
17841
  var isPending = state.status === 'pending';
17842
- return /*#__PURE__*/ jsx(Button, _object_spread_props$b(_object_spread$d({}, props), {
17842
+ return /*#__PURE__*/ jsx(Button, _object_spread_props$b(_object_spread$e({}, props), {
17843
17843
  "aria-label": getRoomActionAccessibleLabel(state),
17844
17844
  disabled: !isRoomActionInteractive(state),
17845
17845
  children: isPending ? /*#__PURE__*/ jsx(Spinner, {
@@ -18569,7 +18569,7 @@ function _array_like_to_array$j(arr, len) {
18569
18569
  function _array_with_holes$h(arr) {
18570
18570
  if (Array.isArray(arr)) return arr;
18571
18571
  }
18572
- function asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, key, arg) {
18572
+ function asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, key, arg) {
18573
18573
  try {
18574
18574
  var info = gen[key](arg);
18575
18575
  var value = info.value;
@@ -18583,16 +18583,16 @@ function asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, key, arg) {
18583
18583
  Promise.resolve(value).then(_next, _throw);
18584
18584
  }
18585
18585
  }
18586
- function _async_to_generator$i(fn) {
18586
+ function _async_to_generator$j(fn) {
18587
18587
  return function() {
18588
18588
  var self = this, args = arguments;
18589
18589
  return new Promise(function(resolve, reject) {
18590
18590
  var gen = fn.apply(self, args);
18591
18591
  function _next(value) {
18592
- asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, "next", value);
18592
+ asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, "next", value);
18593
18593
  }
18594
18594
  function _throw(err) {
18595
- asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, "throw", err);
18595
+ asyncGeneratorStep$j(gen, resolve, reject, _next, _throw, "throw", err);
18596
18596
  }
18597
18597
  _next(undefined);
18598
18598
  });
@@ -18636,7 +18636,7 @@ function _unsupported_iterable_to_array$j(o, minLen) {
18636
18636
  if (n === "Map" || n === "Set") return Array.from(n);
18637
18637
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
18638
18638
  }
18639
- function _ts_generator$i(thisArg, body) {
18639
+ function _ts_generator$j(thisArg, body) {
18640
18640
  var f, y, t, _ = {
18641
18641
  label: 0,
18642
18642
  sent: function() {
@@ -18862,9 +18862,9 @@ function RoomPlatformDeviceSettings(param) {
18862
18862
  ]);
18863
18863
  if (!open) return null;
18864
18864
  var applyDevices = function() {
18865
- return _async_to_generator$i(function() {
18865
+ return _async_to_generator$j(function() {
18866
18866
  var selected;
18867
- return _ts_generator$i(this, function(_state) {
18867
+ return _ts_generator$j(this, function(_state) {
18868
18868
  switch(_state.label){
18869
18869
  case 0:
18870
18870
  selected = [
@@ -19063,7 +19063,7 @@ function _array_like_to_array$i(arr, len) {
19063
19063
  function _array_with_holes$g(arr) {
19064
19064
  if (Array.isArray(arr)) return arr;
19065
19065
  }
19066
- function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
19066
+ function asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, key, arg) {
19067
19067
  try {
19068
19068
  var info = gen[key](arg);
19069
19069
  var value = info.value;
@@ -19077,22 +19077,22 @@ function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
19077
19077
  Promise.resolve(value).then(_next, _throw);
19078
19078
  }
19079
19079
  }
19080
- function _async_to_generator$h(fn) {
19080
+ function _async_to_generator$i(fn) {
19081
19081
  return function() {
19082
19082
  var self = this, args = arguments;
19083
19083
  return new Promise(function(resolve, reject) {
19084
19084
  var gen = fn.apply(self, args);
19085
19085
  function _next(value) {
19086
- asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, "next", value);
19086
+ asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, "next", value);
19087
19087
  }
19088
19088
  function _throw(err) {
19089
- asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, "throw", err);
19089
+ asyncGeneratorStep$i(gen, resolve, reject, _next, _throw, "throw", err);
19090
19090
  }
19091
19091
  _next(undefined);
19092
19092
  });
19093
19093
  };
19094
19094
  }
19095
- function _define_property$e(obj, key, value) {
19095
+ function _define_property$f(obj, key, value) {
19096
19096
  if (key in obj) {
19097
19097
  Object.defineProperty(obj, key, {
19098
19098
  value: value,
@@ -19132,7 +19132,7 @@ function _iterable_to_array_limit$g(arr, i) {
19132
19132
  function _non_iterable_rest$g() {
19133
19133
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
19134
19134
  }
19135
- function _object_spread$c(target) {
19135
+ function _object_spread$d(target) {
19136
19136
  for(var i = 1; i < arguments.length; i++){
19137
19137
  var source = arguments[i] != null ? arguments[i] : {};
19138
19138
  var ownKeys = Object.keys(source);
@@ -19142,7 +19142,7 @@ function _object_spread$c(target) {
19142
19142
  }));
19143
19143
  }
19144
19144
  ownKeys.forEach(function(key) {
19145
- _define_property$e(target, key, source[key]);
19145
+ _define_property$f(target, key, source[key]);
19146
19146
  });
19147
19147
  }
19148
19148
  return target;
@@ -19213,7 +19213,7 @@ function _unsupported_iterable_to_array$i(o, minLen) {
19213
19213
  if (n === "Map" || n === "Set") return Array.from(n);
19214
19214
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
19215
19215
  }
19216
- function _ts_generator$h(thisArg, body) {
19216
+ function _ts_generator$i(thisArg, body) {
19217
19217
  var f, y, t, _ = {
19218
19218
  label: 0,
19219
19219
  sent: function() {
@@ -19343,7 +19343,7 @@ function IconTooltipButton$1(_0) {
19343
19343
  children: [
19344
19344
  /*#__PURE__*/ jsx(TooltipTrigger, {
19345
19345
  asChild: true,
19346
- children: /*#__PURE__*/ jsx(Button, _object_spread_props$a(_object_spread$c({
19346
+ children: /*#__PURE__*/ jsx(Button, _object_spread_props$a(_object_spread$d({
19347
19347
  "aria-label": label,
19348
19348
  title: label
19349
19349
  }, props), {
@@ -19374,8 +19374,8 @@ function RoomPlatformControlBar(param) {
19374
19374
  var hasPendingSpeakRequest = Boolean(access && (controlState === null || controlState === void 0 ? void 0 : controlState.raisedHandParticipantIdentities.includes(access.liveKit.participantIdentity)));
19375
19375
  var canRequestSpeak = hasCapability('room:speak_request');
19376
19376
  var handleRequestSpeak = function() {
19377
- return _async_to_generator$h(function() {
19378
- return _ts_generator$h(this, function(_state) {
19377
+ return _async_to_generator$i(function() {
19378
+ return _ts_generator$i(this, function(_state) {
19379
19379
  switch(_state.label){
19380
19380
  case 0:
19381
19381
  if (isRequestSpeakPending) return [
@@ -19421,8 +19421,8 @@ function RoomPlatformControlBar(param) {
19421
19421
  })();
19422
19422
  };
19423
19423
  var handleCancelSpeak = function() {
19424
- return _async_to_generator$h(function() {
19425
- return _ts_generator$h(this, function(_state) {
19424
+ return _async_to_generator$i(function() {
19425
+ return _ts_generator$i(this, function(_state) {
19426
19426
  switch(_state.label){
19427
19427
  case 0:
19428
19428
  if (isCancelSpeakPending) return [
@@ -19623,7 +19623,7 @@ function _array_like_to_array$h(arr, len) {
19623
19623
  function _array_with_holes$f(arr) {
19624
19624
  if (Array.isArray(arr)) return arr;
19625
19625
  }
19626
- function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
19626
+ function asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, key, arg) {
19627
19627
  try {
19628
19628
  var info = gen[key](arg);
19629
19629
  var value = info.value;
@@ -19637,16 +19637,16 @@ function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
19637
19637
  Promise.resolve(value).then(_next, _throw);
19638
19638
  }
19639
19639
  }
19640
- function _async_to_generator$g(fn) {
19640
+ function _async_to_generator$h(fn) {
19641
19641
  return function() {
19642
19642
  var self = this, args = arguments;
19643
19643
  return new Promise(function(resolve, reject) {
19644
19644
  var gen = fn.apply(self, args);
19645
19645
  function _next(value) {
19646
- asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "next", value);
19646
+ asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, "next", value);
19647
19647
  }
19648
19648
  function _throw(err) {
19649
- asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "throw", err);
19649
+ asyncGeneratorStep$h(gen, resolve, reject, _next, _throw, "throw", err);
19650
19650
  }
19651
19651
  _next(undefined);
19652
19652
  });
@@ -19690,7 +19690,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
19690
19690
  if (n === "Map" || n === "Set") return Array.from(n);
19691
19691
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
19692
19692
  }
19693
- function _ts_generator$g(thisArg, body) {
19693
+ function _ts_generator$h(thisArg, body) {
19694
19694
  var f, y, t, _ = {
19695
19695
  label: 0,
19696
19696
  sent: function() {
@@ -19803,8 +19803,8 @@ function RoomPlatformCurrentOperationStrip(param) {
19803
19803
  }) : undefined;
19804
19804
  var privateStudentName = (_ref1 = privateStudent === null || privateStudent === void 0 ? void 0 : privateStudent.name) !== null && _ref1 !== void 0 ? _ref1 : currentPrivateRoomOperation === null || currentPrivateRoomOperation === void 0 ? void 0 : currentPrivateRoomOperation.studentExternalActorId;
19805
19805
  var cancelPrivateRoomOperation = function() {
19806
- return _async_to_generator$g(function() {
19807
- return _ts_generator$g(this, function(_state) {
19806
+ return _async_to_generator$h(function() {
19807
+ return _ts_generator$h(this, function(_state) {
19808
19808
  switch(_state.label){
19809
19809
  case 0:
19810
19810
  if (!currentPrivateRoomOperation || !onCancelPrivateRoom || isCancelingPrivateRoomOperation) return [
@@ -19981,7 +19981,7 @@ function RoomPlatformMediaRuntime(param) {
19981
19981
  });
19982
19982
  }
19983
19983
 
19984
- function _define_property$d(obj, key, value) {
19984
+ function _define_property$e(obj, key, value) {
19985
19985
  if (key in obj) {
19986
19986
  Object.defineProperty(obj, key, {
19987
19987
  value: value,
@@ -19994,7 +19994,7 @@ function _define_property$d(obj, key, value) {
19994
19994
  }
19995
19995
  return obj;
19996
19996
  }
19997
- function _object_spread$b(target) {
19997
+ function _object_spread$c(target) {
19998
19998
  for(var i = 1; i < arguments.length; i++){
19999
19999
  var source = arguments[i] != null ? arguments[i] : {};
20000
20000
  var ownKeys = Object.keys(source);
@@ -20004,7 +20004,7 @@ function _object_spread$b(target) {
20004
20004
  }));
20005
20005
  }
20006
20006
  ownKeys.forEach(function(key) {
20007
- _define_property$d(target, key, source[key]);
20007
+ _define_property$e(target, key, source[key]);
20008
20008
  });
20009
20009
  }
20010
20010
  return target;
@@ -20057,7 +20057,7 @@ function RoomPlatformMonitorVideoTile(param) {
20057
20057
  }
20058
20058
  var monitorCameraVideoClassName = 'h-full w-full object-cover -scale-x-100';
20059
20059
  function RoomPlatformMonitorSidebarVideoTile(props) {
20060
- return /*#__PURE__*/ jsx(RoomPlatformMonitorVideoTile, _object_spread$b({}, props));
20060
+ return /*#__PURE__*/ jsx(RoomPlatformMonitorVideoTile, _object_spread$c({}, props));
20061
20061
  }
20062
20062
 
20063
20063
  function _array_like_to_array$g(arr, len) {
@@ -20328,7 +20328,7 @@ function _array_like_to_array$f(arr, len) {
20328
20328
  function _array_without_holes$5(arr) {
20329
20329
  if (Array.isArray(arr)) return _array_like_to_array$f(arr);
20330
20330
  }
20331
- function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
20331
+ function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
20332
20332
  try {
20333
20333
  var info = gen[key](arg);
20334
20334
  var value = info.value;
@@ -20342,22 +20342,22 @@ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
20342
20342
  Promise.resolve(value).then(_next, _throw);
20343
20343
  }
20344
20344
  }
20345
- function _async_to_generator$f(fn) {
20345
+ function _async_to_generator$g(fn) {
20346
20346
  return function() {
20347
20347
  var self = this, args = arguments;
20348
20348
  return new Promise(function(resolve, reject) {
20349
20349
  var gen = fn.apply(self, args);
20350
20350
  function _next(value) {
20351
- asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
20351
+ asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "next", value);
20352
20352
  }
20353
20353
  function _throw(err) {
20354
- asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
20354
+ asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "throw", err);
20355
20355
  }
20356
20356
  _next(undefined);
20357
20357
  });
20358
20358
  };
20359
20359
  }
20360
- function _define_property$c(obj, key, value) {
20360
+ function _define_property$d(obj, key, value) {
20361
20361
  if (key in obj) {
20362
20362
  Object.defineProperty(obj, key, {
20363
20363
  value: value,
@@ -20383,7 +20383,7 @@ function _iterable_to_array$5(iter) {
20383
20383
  function _non_iterable_spread$5() {
20384
20384
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20385
20385
  }
20386
- function _object_spread$a(target) {
20386
+ function _object_spread$b(target) {
20387
20387
  for(var i = 1; i < arguments.length; i++){
20388
20388
  var source = arguments[i] != null ? arguments[i] : {};
20389
20389
  var ownKeys = Object.keys(source);
@@ -20393,7 +20393,7 @@ function _object_spread$a(target) {
20393
20393
  }));
20394
20394
  }
20395
20395
  ownKeys.forEach(function(key) {
20396
- _define_property$c(target, key, source[key]);
20396
+ _define_property$d(target, key, source[key]);
20397
20397
  });
20398
20398
  }
20399
20399
  return target;
@@ -20432,7 +20432,7 @@ function _unsupported_iterable_to_array$f(o, minLen) {
20432
20432
  if (n === "Map" || n === "Set") return Array.from(n);
20433
20433
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
20434
20434
  }
20435
- function _ts_generator$f(thisArg, body) {
20435
+ function _ts_generator$g(thisArg, body) {
20436
20436
  var f, y, t, _ = {
20437
20437
  label: 0,
20438
20438
  sent: function() {
@@ -20554,9 +20554,9 @@ var nowIso = function() {
20554
20554
  return new Date().toISOString();
20555
20555
  };
20556
20556
  var loadImageFromBlob = function(sourceBlob) {
20557
- return _async_to_generator$f(function() {
20557
+ return _async_to_generator$g(function() {
20558
20558
  var objectUrl;
20559
- return _ts_generator$f(this, function(_state) {
20559
+ return _ts_generator$g(this, function(_state) {
20560
20560
  objectUrl = URL.createObjectURL(sourceBlob);
20561
20561
  return [
20562
20562
  2,
@@ -20577,9 +20577,9 @@ var loadImageFromBlob = function(sourceBlob) {
20577
20577
  })();
20578
20578
  };
20579
20579
  var createMirroredImageBlob = function(sourceBlob) {
20580
- return _async_to_generator$f(function() {
20580
+ return _async_to_generator$g(function() {
20581
20581
  var canvas, bitmap, image, context, drawSource;
20582
- return _ts_generator$f(this, function(_state) {
20582
+ return _ts_generator$g(this, function(_state) {
20583
20583
  switch(_state.label){
20584
20584
  case 0:
20585
20585
  canvas = document.createElement('canvas');
@@ -20735,7 +20735,7 @@ var saveUploadGallery = function(gallery) {
20735
20735
  var normalizeSettings = function(value) {
20736
20736
  var mode = value.mode;
20737
20737
  if (mode !== 'none' && mode !== 'blur' && mode !== 'preset' && mode !== 'upload') {
20738
- return _object_spread_props$9(_object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20738
+ return _object_spread_props$9(_object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20739
20739
  updatedAt: nowIso()
20740
20740
  });
20741
20741
  }
@@ -20744,12 +20744,12 @@ var normalizeSettings = function(value) {
20744
20744
  var presetId = typeof value.presetId === 'string' ? value.presetId : undefined;
20745
20745
  var uploadAssetId = typeof value.uploadAssetId === 'string' ? value.uploadAssetId : undefined;
20746
20746
  if (mode === 'preset' && !presetId) {
20747
- return _object_spread_props$9(_object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20747
+ return _object_spread_props$9(_object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20748
20748
  updatedAt: nowIso()
20749
20749
  });
20750
20750
  }
20751
20751
  if (mode === 'upload' && !uploadAssetId) {
20752
- return _object_spread_props$9(_object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20752
+ return _object_spread_props$9(_object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS), {
20753
20753
  updatedAt: nowIso()
20754
20754
  });
20755
20755
  }
@@ -20781,19 +20781,19 @@ var normalizeUploadAsset = function(value) {
20781
20781
  };
20782
20782
  };
20783
20783
  var loadRoomPlatformCameraBackgroundSettings = function() {
20784
- if (typeof window === 'undefined') return _object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20784
+ if (typeof window === 'undefined') return _object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20785
20785
  try {
20786
20786
  var raw = window.localStorage.getItem(SETTINGS_KEY);
20787
- if (!raw) return _object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20787
+ if (!raw) return _object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20788
20788
  var parsed = JSON.parse(raw);
20789
- if (!isObject(parsed)) return _object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20789
+ if (!isObject(parsed)) return _object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20790
20790
  return normalizeSettings(parsed);
20791
20791
  } catch (unused) {
20792
- return _object_spread$a({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20792
+ return _object_spread$b({}, DEFAULT_ROOM_PLATFORM_CAMERA_BACKGROUND_SETTINGS);
20793
20793
  }
20794
20794
  };
20795
20795
  var saveRoomPlatformCameraBackgroundSettings = function(input) {
20796
- var settings = normalizeSettings(_object_spread_props$9(_object_spread$a({}, input), {
20796
+ var settings = normalizeSettings(_object_spread_props$9(_object_spread$b({}, input), {
20797
20797
  updatedAt: nowIso()
20798
20798
  }));
20799
20799
  if (typeof window !== 'undefined') {
@@ -20805,8 +20805,8 @@ var createAssetId = function() {
20805
20805
  return typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : "".concat(Date.now(), "-").concat(Math.random().toString(16).slice(2));
20806
20806
  };
20807
20807
  var openDb = function() {
20808
- return _async_to_generator$f(function() {
20809
- return _ts_generator$f(this, function(_state) {
20808
+ return _async_to_generator$g(function() {
20809
+ return _ts_generator$g(this, function(_state) {
20810
20810
  if (typeof indexedDB === 'undefined') return [
20811
20811
  2,
20812
20812
  null
@@ -20835,9 +20835,9 @@ var openDb = function() {
20835
20835
  })();
20836
20836
  };
20837
20837
  var withStore = function(mode, action) {
20838
- return _async_to_generator$f(function() {
20838
+ return _async_to_generator$g(function() {
20839
20839
  var db;
20840
- return _ts_generator$f(this, function(_state) {
20840
+ return _ts_generator$g(this, function(_state) {
20841
20841
  switch(_state.label){
20842
20842
  case 0:
20843
20843
  return [
@@ -20869,9 +20869,9 @@ var withStore = function(mode, action) {
20869
20869
  })();
20870
20870
  };
20871
20871
  var createRoomPlatformUploadAsset = function(file) {
20872
- return _async_to_generator$f(function() {
20872
+ return _async_to_generator$g(function() {
20873
20873
  var mirroredBlob;
20874
- return _ts_generator$f(this, function(_state) {
20874
+ return _ts_generator$g(this, function(_state) {
20875
20875
  switch(_state.label){
20876
20876
  case 0:
20877
20877
  return [
@@ -20897,8 +20897,8 @@ var createRoomPlatformUploadAsset = function(file) {
20897
20897
  })();
20898
20898
  };
20899
20899
  var addRoomPlatformUploadAsset = function(asset) {
20900
- return _async_to_generator$f(function() {
20901
- return _ts_generator$f(this, function(_state) {
20900
+ return _async_to_generator$g(function() {
20901
+ return _ts_generator$g(this, function(_state) {
20902
20902
  switch(_state.label){
20903
20903
  case 0:
20904
20904
  return [
@@ -20923,8 +20923,8 @@ var addRoomPlatformUploadAsset = function(asset) {
20923
20923
  })();
20924
20924
  };
20925
20925
  var loadRoomPlatformUploadAsset = function(id) {
20926
- return _async_to_generator$f(function() {
20927
- return _ts_generator$f(this, function(_state) {
20926
+ return _async_to_generator$g(function() {
20927
+ return _ts_generator$g(this, function(_state) {
20928
20928
  return [
20929
20929
  2,
20930
20930
  withStore('readonly', function(store, resolve, reject) {
@@ -20941,8 +20941,8 @@ var loadRoomPlatformUploadAsset = function(id) {
20941
20941
  })();
20942
20942
  };
20943
20943
  var removeRoomPlatformUploadAsset = function(id) {
20944
- return _async_to_generator$f(function() {
20945
- return _ts_generator$f(this, function(_state) {
20944
+ return _async_to_generator$g(function() {
20945
+ return _ts_generator$g(this, function(_state) {
20946
20946
  switch(_state.label){
20947
20947
  case 0:
20948
20948
  return [
@@ -20975,9 +20975,9 @@ var loadLastUploadedAssetId = function() {
20975
20975
  return value && value.length > 0 ? value : null;
20976
20976
  };
20977
20977
  var loadRoomPlatformUploadAssetIds = function() {
20978
- return _async_to_generator$f(function() {
20978
+ return _async_to_generator$g(function() {
20979
20979
  var storedGallery, lastUploadedAssetId, assetExists, seededGallery;
20980
- return _ts_generator$f(this, function(_state) {
20980
+ return _ts_generator$g(this, function(_state) {
20981
20981
  switch(_state.label){
20982
20982
  case 0:
20983
20983
  storedGallery = readStoredUploadGallery();
@@ -21043,9 +21043,9 @@ var loadRoomPlatformUploadAssetIds = function() {
21043
21043
  })();
21044
21044
  };
21045
21045
  var appendRoomPlatformUploadAssetId = function(assetId) {
21046
- return _async_to_generator$f(function() {
21046
+ return _async_to_generator$g(function() {
21047
21047
  var galleryAssetIds, nextGallery;
21048
- return _ts_generator$f(this, function(_state) {
21048
+ return _ts_generator$g(this, function(_state) {
21049
21049
  switch(_state.label){
21050
21050
  case 0:
21051
21051
  if (!assetId) {
@@ -21081,9 +21081,9 @@ var appendRoomPlatformUploadAssetId = function(assetId) {
21081
21081
  })();
21082
21082
  };
21083
21083
  var removeRoomPlatformUploadAssetId = function(assetId) {
21084
- return _async_to_generator$f(function() {
21084
+ return _async_to_generator$g(function() {
21085
21085
  var galleryAssetIds, nextAssetIds, nextGallery;
21086
- return _ts_generator$f(this, function(_state) {
21086
+ return _ts_generator$g(this, function(_state) {
21087
21087
  switch(_state.label){
21088
21088
  case 0:
21089
21089
  return [
@@ -21120,9 +21120,9 @@ var restoreLocalStorageValue = function(key, value) {
21120
21120
  }
21121
21121
  };
21122
21122
  var saveRoomPlatformUploadAndSelect = function(file) {
21123
- return _async_to_generator$f(function() {
21123
+ return _async_to_generator$g(function() {
21124
21124
  var galleryAssetIds, asset, _tmp, previousSettings, previousGallery, previousLastUpload, assetStored, nextGalleryAssetIds, settings, persistedSettings, error;
21125
- return _ts_generator$f(this, function(_state) {
21125
+ return _ts_generator$g(this, function(_state) {
21126
21126
  switch(_state.label){
21127
21127
  case 0:
21128
21128
  return [
@@ -21256,7 +21256,7 @@ function _array_like_to_array$e(arr, len) {
21256
21256
  function _array_with_holes$d(arr) {
21257
21257
  if (Array.isArray(arr)) return arr;
21258
21258
  }
21259
- function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
21259
+ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
21260
21260
  try {
21261
21261
  var info = gen[key](arg);
21262
21262
  var value = info.value;
@@ -21270,22 +21270,22 @@ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
21270
21270
  Promise.resolve(value).then(_next, _throw);
21271
21271
  }
21272
21272
  }
21273
- function _async_to_generator$e(fn) {
21273
+ function _async_to_generator$f(fn) {
21274
21274
  return function() {
21275
21275
  var self = this, args = arguments;
21276
21276
  return new Promise(function(resolve, reject) {
21277
21277
  var gen = fn.apply(self, args);
21278
21278
  function _next(value) {
21279
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
21279
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
21280
21280
  }
21281
21281
  function _throw(err) {
21282
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
21282
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
21283
21283
  }
21284
21284
  _next(undefined);
21285
21285
  });
21286
21286
  };
21287
21287
  }
21288
- function _define_property$b(obj, key, value) {
21288
+ function _define_property$c(obj, key, value) {
21289
21289
  if (key in obj) {
21290
21290
  Object.defineProperty(obj, key, {
21291
21291
  value: value,
@@ -21325,7 +21325,7 @@ function _iterable_to_array_limit$d(arr, i) {
21325
21325
  function _non_iterable_rest$d() {
21326
21326
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
21327
21327
  }
21328
- function _object_spread$9(target) {
21328
+ function _object_spread$a(target) {
21329
21329
  for(var i = 1; i < arguments.length; i++){
21330
21330
  var source = arguments[i] != null ? arguments[i] : {};
21331
21331
  var ownKeys = Object.keys(source);
@@ -21335,7 +21335,7 @@ function _object_spread$9(target) {
21335
21335
  }));
21336
21336
  }
21337
21337
  ownKeys.forEach(function(key) {
21338
- _define_property$b(target, key, source[key]);
21338
+ _define_property$c(target, key, source[key]);
21339
21339
  });
21340
21340
  }
21341
21341
  return target;
@@ -21370,7 +21370,7 @@ function _unsupported_iterable_to_array$e(o, minLen) {
21370
21370
  if (n === "Map" || n === "Set") return Array.from(n);
21371
21371
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
21372
21372
  }
21373
- function _ts_generator$e(thisArg, body) {
21373
+ function _ts_generator$f(thisArg, body) {
21374
21374
  var f, y, t, _ = {
21375
21375
  label: 0,
21376
21376
  sent: function() {
@@ -21560,9 +21560,9 @@ function useRoomPlatformCameraBackground(param) {
21560
21560
  return trackedPromise;
21561
21561
  }, []);
21562
21562
  var syncUploadItems = useCallback(function(assetIds) {
21563
- return _async_to_generator$e(function() {
21563
+ return _async_to_generator$f(function() {
21564
21564
  var galleryAssetIds, _tmp, assets, nextItems;
21565
- return _ts_generator$e(this, function(_state) {
21565
+ return _ts_generator$f(this, function(_state) {
21566
21566
  switch(_state.label){
21567
21567
  case 0:
21568
21568
  clearUploadPreviewUrls();
@@ -21616,9 +21616,9 @@ function useRoomPlatformCameraBackground(param) {
21616
21616
  clearUploadPreviewUrls
21617
21617
  ]);
21618
21618
  var ensureProcessor = useCallback(function(track, mode, notifySettled) {
21619
- return _async_to_generator$e(function() {
21619
+ return _async_to_generator$f(function() {
21620
21620
  var modeKey, currentEntry, processor;
21621
- return _ts_generator$e(this, function(_state) {
21621
+ return _ts_generator$f(this, function(_state) {
21622
21622
  switch(_state.label){
21623
21623
  case 0:
21624
21624
  modeKey = processorModeKey(mode);
@@ -21688,12 +21688,12 @@ function useRoomPlatformCameraBackground(param) {
21688
21688
  })();
21689
21689
  }, []);
21690
21690
  var applySettings = useCallback(function(settings) {
21691
- return _async_to_generator$e(function() {
21691
+ return _async_to_generator$f(function() {
21692
21692
  var _settings_presetId, _settings_uploadAssetId, _ref, applyKey, requestId, lifecycleId;
21693
- return _ts_generator$e(this, function(_state) {
21693
+ return _ts_generator$f(this, function(_state) {
21694
21694
  if (!isSupported) {
21695
21695
  setState(function(current) {
21696
- return _object_spread_props$8(_object_spread$9({}, current, mapSettingsToState(settings, false)), {
21696
+ return _object_spread_props$8(_object_spread$a({}, current, mapSettingsToState(settings, false)), {
21697
21697
  isApplying: false,
21698
21698
  error: null
21699
21699
  });
@@ -21706,7 +21706,7 @@ function useRoomPlatformCameraBackground(param) {
21706
21706
  applyKey = "".concat(settings.mode, ":").concat(settings.blurLevel, ":").concat((_settings_presetId = settings.presetId) !== null && _settings_presetId !== void 0 ? _settings_presetId : '', ":").concat((_settings_uploadAssetId = settings.uploadAssetId) !== null && _settings_uploadAssetId !== void 0 ? _settings_uploadAssetId : '', ":").concat((_ref = localVideoTrack === null || localVideoTrack === void 0 ? void 0 : localVideoTrack.mediaStreamTrack.id) !== null && _ref !== void 0 ? _ref : 'no-track');
21707
21707
  if (lastAppliedKeyRef.current === applyKey) {
21708
21708
  setState(function(current) {
21709
- return _object_spread_props$8(_object_spread$9({}, current, mapSettingsToState(settings, true)), {
21709
+ return _object_spread_props$8(_object_spread$a({}, current, mapSettingsToState(settings, true)), {
21710
21710
  isApplying: false
21711
21711
  });
21712
21712
  });
@@ -21717,7 +21717,7 @@ function useRoomPlatformCameraBackground(param) {
21717
21717
  }
21718
21718
  if (!localVideoTrack) {
21719
21719
  setState(function(current) {
21720
- return _object_spread_props$8(_object_spread$9({}, current, mapSettingsToState(settings, true)), {
21720
+ return _object_spread_props$8(_object_spread$a({}, current, mapSettingsToState(settings, true)), {
21721
21721
  isApplying: false,
21722
21722
  error: null
21723
21723
  });
@@ -21731,7 +21731,7 @@ function useRoomPlatformCameraBackground(param) {
21731
21731
  requestIdRef.current = requestId;
21732
21732
  lifecycleId = lifecycleIdRef.current;
21733
21733
  setState(function(current) {
21734
- return _object_spread_props$8(_object_spread$9({}, current), {
21734
+ return _object_spread_props$8(_object_spread$a({}, current), {
21735
21735
  isApplying: true,
21736
21736
  error: null
21737
21737
  });
@@ -21739,9 +21739,9 @@ function useRoomPlatformCameraBackground(param) {
21739
21739
  return [
21740
21740
  2,
21741
21741
  enqueueProcessorOperation(function() {
21742
- return _async_to_generator$e(function() {
21742
+ return _async_to_generator$f(function() {
21743
21743
  var nextObjectUrl, mode, preset, imagePath, _settings_uploadAssetId, _asset_mirroredBlob, asset, processorBlob, processorSettledInEnsure, previousObjectUrl;
21744
- return _ts_generator$e(this, function(_state) {
21744
+ return _ts_generator$f(this, function(_state) {
21745
21745
  switch(_state.label){
21746
21746
  case 0:
21747
21747
  if (requestIdRef.current !== requestId || lifecycleIdRef.current !== lifecycleId) return [
@@ -21849,7 +21849,7 @@ function useRoomPlatformCameraBackground(param) {
21849
21849
  ];
21850
21850
  lastAppliedKeyRef.current = applyKey;
21851
21851
  setState(function(current) {
21852
- return _object_spread_props$8(_object_spread$9({}, current, mapSettingsToState(settings, isSupported)), {
21852
+ return _object_spread_props$8(_object_spread$a({}, current, mapSettingsToState(settings, isSupported)), {
21853
21853
  isApplying: false,
21854
21854
  error: null
21855
21855
  });
@@ -21865,7 +21865,7 @@ function useRoomPlatformCameraBackground(param) {
21865
21865
  }
21866
21866
  if (requestIdRef.current === requestId && lifecycleIdRef.current === lifecycleId) {
21867
21867
  setState(function(current) {
21868
- return _object_spread_props$8(_object_spread$9({}, current), {
21868
+ return _object_spread_props$8(_object_spread$a({}, current), {
21869
21869
  isApplying: false,
21870
21870
  error: 'Không thể áp dụng hình nền. Vui lòng thử lại.'
21871
21871
  });
@@ -21894,8 +21894,8 @@ function useRoomPlatformCameraBackground(param) {
21894
21894
  onProcessorSettled
21895
21895
  ]);
21896
21896
  var saveAndApply = useCallback(function(input) {
21897
- return _async_to_generator$e(function() {
21898
- return _ts_generator$e(this, function(_state) {
21897
+ return _async_to_generator$f(function() {
21898
+ return _ts_generator$f(this, function(_state) {
21899
21899
  switch(_state.label){
21900
21900
  case 0:
21901
21901
  _state.trys.push([
@@ -21916,7 +21916,7 @@ function useRoomPlatformCameraBackground(param) {
21916
21916
  case 2:
21917
21917
  _state.sent();
21918
21918
  setState(function(current) {
21919
- return _object_spread_props$8(_object_spread$9({}, current), {
21919
+ return _object_spread_props$8(_object_spread$a({}, current), {
21920
21920
  isApplying: false,
21921
21921
  error: 'Không thể lưu cài đặt hình nền. Vui lòng thử lại.'
21922
21922
  });
@@ -21936,8 +21936,8 @@ function useRoomPlatformCameraBackground(param) {
21936
21936
  applySettings
21937
21937
  ]);
21938
21938
  var setBackgroundOff = useCallback(function() {
21939
- return _async_to_generator$e(function() {
21940
- return _ts_generator$e(this, function(_state) {
21939
+ return _async_to_generator$f(function() {
21940
+ return _ts_generator$f(this, function(_state) {
21941
21941
  switch(_state.label){
21942
21942
  case 0:
21943
21943
  return [
@@ -21959,8 +21959,8 @@ function useRoomPlatformCameraBackground(param) {
21959
21959
  saveAndApply
21960
21960
  ]);
21961
21961
  var setBlurLevel = useCallback(function(blurLevel) {
21962
- return _async_to_generator$e(function() {
21963
- return _ts_generator$e(this, function(_state) {
21962
+ return _async_to_generator$f(function() {
21963
+ return _ts_generator$f(this, function(_state) {
21964
21964
  switch(_state.label){
21965
21965
  case 0:
21966
21966
  return [
@@ -21982,8 +21982,8 @@ function useRoomPlatformCameraBackground(param) {
21982
21982
  saveAndApply
21983
21983
  ]);
21984
21984
  var setBlur = useCallback(function() {
21985
- return _async_to_generator$e(function() {
21986
- return _ts_generator$e(this, function(_state) {
21985
+ return _async_to_generator$f(function() {
21986
+ return _ts_generator$f(this, function(_state) {
21987
21987
  switch(_state.label){
21988
21988
  case 0:
21989
21989
  return [
@@ -22002,8 +22002,8 @@ function useRoomPlatformCameraBackground(param) {
22002
22002
  setBlurLevel
22003
22003
  ]);
22004
22004
  var setPreset = useCallback(function(presetId) {
22005
- return _async_to_generator$e(function() {
22006
- return _ts_generator$e(this, function(_state) {
22005
+ return _async_to_generator$f(function() {
22006
+ return _ts_generator$f(this, function(_state) {
22007
22007
  switch(_state.label){
22008
22008
  case 0:
22009
22009
  return [
@@ -22025,9 +22025,9 @@ function useRoomPlatformCameraBackground(param) {
22025
22025
  saveAndApply
22026
22026
  ]);
22027
22027
  var selectUploaded = useCallback(function(uploadAssetId) {
22028
- return _async_to_generator$e(function() {
22028
+ return _async_to_generator$f(function() {
22029
22029
  var applied;
22030
- return _ts_generator$e(this, function(_state) {
22030
+ return _ts_generator$f(this, function(_state) {
22031
22031
  switch(_state.label){
22032
22032
  case 0:
22033
22033
  return [
@@ -22065,13 +22065,13 @@ function useRoomPlatformCameraBackground(param) {
22065
22065
  saveAndApply
22066
22066
  ]);
22067
22067
  var setUpload = useCallback(function(file) {
22068
- return _async_to_generator$e(function() {
22068
+ return _async_to_generator$f(function() {
22069
22069
  var _ref, galleryAssetIds, settings, applied;
22070
- return _ts_generator$e(this, function(_state) {
22070
+ return _ts_generator$f(this, function(_state) {
22071
22071
  switch(_state.label){
22072
22072
  case 0:
22073
22073
  setState(function(current) {
22074
- return _object_spread_props$8(_object_spread$9({}, current), {
22074
+ return _object_spread_props$8(_object_spread$a({}, current), {
22075
22075
  isApplying: true,
22076
22076
  error: null
22077
22077
  });
@@ -22124,7 +22124,7 @@ function useRoomPlatformCameraBackground(param) {
22124
22124
  case 7:
22125
22125
  _state.sent();
22126
22126
  setState(function(current) {
22127
- return _object_spread_props$8(_object_spread$9({}, current), {
22127
+ return _object_spread_props$8(_object_spread$a({}, current), {
22128
22128
  isApplying: false,
22129
22129
  error: 'Không thể lưu hình nền tải lên. Vui lòng thử lại.'
22130
22130
  });
@@ -22146,9 +22146,9 @@ function useRoomPlatformCameraBackground(param) {
22146
22146
  syncUploadItems
22147
22147
  ]);
22148
22148
  var setUploaded = useCallback(function() {
22149
- return _async_to_generator$e(function() {
22149
+ return _async_to_generator$f(function() {
22150
22150
  var _current_uploadAssetId, _uploadItems_, current, uploadAssetId;
22151
- return _ts_generator$e(this, function(_state) {
22151
+ return _ts_generator$f(this, function(_state) {
22152
22152
  switch(_state.label){
22153
22153
  case 0:
22154
22154
  current = loadRoomPlatformCameraBackgroundSettings();
@@ -22173,14 +22173,14 @@ function useRoomPlatformCameraBackground(param) {
22173
22173
  uploadItems
22174
22174
  ]);
22175
22175
  var removeUploaded = useCallback(function(uploadAssetId) {
22176
- return _async_to_generator$e(function() {
22176
+ return _async_to_generator$f(function() {
22177
22177
  var isActiveUpload, galleryAssetIds;
22178
- return _ts_generator$e(this, function(_state) {
22178
+ return _ts_generator$f(this, function(_state) {
22179
22179
  switch(_state.label){
22180
22180
  case 0:
22181
22181
  isActiveUpload = state.mode === 'upload' && state.uploadAssetId === uploadAssetId;
22182
22182
  setState(function(current) {
22183
- return _object_spread_props$8(_object_spread$9({}, current), {
22183
+ return _object_spread_props$8(_object_spread$a({}, current), {
22184
22184
  isApplying: true,
22185
22185
  error: null
22186
22186
  });
@@ -22229,7 +22229,7 @@ function useRoomPlatformCameraBackground(param) {
22229
22229
  ];
22230
22230
  case 6:
22231
22231
  setState(function(current) {
22232
- return _object_spread_props$8(_object_spread$9({}, current), {
22232
+ return _object_spread_props$8(_object_spread$a({}, current), {
22233
22233
  isApplying: false,
22234
22234
  error: null
22235
22235
  });
@@ -22241,7 +22241,7 @@ function useRoomPlatformCameraBackground(param) {
22241
22241
  case 7:
22242
22242
  _state.sent();
22243
22243
  setState(function(current) {
22244
- return _object_spread_props$8(_object_spread$9({}, current), {
22244
+ return _object_spread_props$8(_object_spread$a({}, current), {
22245
22245
  isApplying: false,
22246
22246
  error: 'Không thể xóa hình nền tải lên. Vui lòng thử lại.'
22247
22247
  });
@@ -22265,7 +22265,7 @@ function useRoomPlatformCameraBackground(param) {
22265
22265
  ]);
22266
22266
  var clearError = useCallback(function() {
22267
22267
  setState(function(current) {
22268
- return _object_spread_props$8(_object_spread$9({}, current), {
22268
+ return _object_spread_props$8(_object_spread$a({}, current), {
22269
22269
  error: null
22270
22270
  });
22271
22271
  });
@@ -22280,8 +22280,8 @@ function useRoomPlatformCameraBackground(param) {
22280
22280
  requestIdRef.current += 1;
22281
22281
  lastAppliedKeyRef.current = '';
22282
22282
  void enqueueProcessorOperation(function() {
22283
- return _async_to_generator$e(function() {
22284
- return _ts_generator$e(this, function(_state) {
22283
+ return _async_to_generator$f(function() {
22284
+ return _ts_generator$f(this, function(_state) {
22285
22285
  switch(_state.label){
22286
22286
  case 0:
22287
22287
  if (!localVideoTrack) return [
@@ -22341,9 +22341,9 @@ function useRoomPlatformCameraBackground(param) {
22341
22341
  ]);
22342
22342
  useEffect(function() {
22343
22343
  var restore = function() {
22344
- return _async_to_generator$e(function() {
22344
+ return _async_to_generator$f(function() {
22345
22345
  var saved, applied;
22346
- return _ts_generator$e(this, function(_state) {
22346
+ return _ts_generator$f(this, function(_state) {
22347
22347
  switch(_state.label){
22348
22348
  case 0:
22349
22349
  saved = loadRoomPlatformCameraBackgroundSettings();
@@ -22420,7 +22420,7 @@ function _array_with_holes$c(arr) {
22420
22420
  function _array_without_holes$4(arr) {
22421
22421
  if (Array.isArray(arr)) return _array_like_to_array$d(arr);
22422
22422
  }
22423
- function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
22423
+ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
22424
22424
  try {
22425
22425
  var info = gen[key](arg);
22426
22426
  var value = info.value;
@@ -22434,16 +22434,16 @@ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
22434
22434
  Promise.resolve(value).then(_next, _throw);
22435
22435
  }
22436
22436
  }
22437
- function _async_to_generator$d(fn) {
22437
+ function _async_to_generator$e(fn) {
22438
22438
  return function() {
22439
22439
  var self = this, args = arguments;
22440
22440
  return new Promise(function(resolve, reject) {
22441
22441
  var gen = fn.apply(self, args);
22442
22442
  function _next(value) {
22443
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
22443
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
22444
22444
  }
22445
22445
  function _throw(err) {
22446
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
22446
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
22447
22447
  }
22448
22448
  _next(undefined);
22449
22449
  });
@@ -22496,7 +22496,7 @@ function _unsupported_iterable_to_array$d(o, minLen) {
22496
22496
  if (n === "Map" || n === "Set") return Array.from(n);
22497
22497
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
22498
22498
  }
22499
- function _ts_generator$d(thisArg, body) {
22499
+ function _ts_generator$e(thisArg, body) {
22500
22500
  var f, y, t, _ = {
22501
22501
  label: 0,
22502
22502
  sent: function() {
@@ -22682,9 +22682,9 @@ function RoomPlatformPrivateRoomConnection(param) {
22682
22682
  var handleDisconnected = function() {
22683
22683
  if (!isCurrent()) return;
22684
22684
  void function() {
22685
- return _async_to_generator$d(function() {
22685
+ return _async_to_generator$e(function() {
22686
22686
  var _onDisconnectedRef_current;
22687
- return _ts_generator$d(this, function(_state) {
22687
+ return _ts_generator$e(this, function(_state) {
22688
22688
  switch(_state.label){
22689
22689
  case 0:
22690
22690
  _state.trys.push([
@@ -22728,8 +22728,8 @@ function RoomPlatformPrivateRoomConnection(param) {
22728
22728
  void nextRoom.connect(connection.wsUrl, generationToken, {
22729
22729
  autoSubscribe: true
22730
22730
  }).then(function() {
22731
- return _async_to_generator$d(function() {
22732
- return _ts_generator$d(this, function(_state) {
22731
+ return _async_to_generator$e(function() {
22732
+ return _ts_generator$e(this, function(_state) {
22733
22733
  switch(_state.label){
22734
22734
  case 0:
22735
22735
  if (!isCurrent()) return [
@@ -22841,7 +22841,7 @@ function _array_like_to_array$c(arr, len) {
22841
22841
  function _array_with_holes$b(arr) {
22842
22842
  if (Array.isArray(arr)) return arr;
22843
22843
  }
22844
- function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
22844
+ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
22845
22845
  try {
22846
22846
  var info = gen[key](arg);
22847
22847
  var value = info.value;
@@ -22855,16 +22855,16 @@ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
22855
22855
  Promise.resolve(value).then(_next, _throw);
22856
22856
  }
22857
22857
  }
22858
- function _async_to_generator$c(fn) {
22858
+ function _async_to_generator$d(fn) {
22859
22859
  return function() {
22860
22860
  var self = this, args = arguments;
22861
22861
  return new Promise(function(resolve, reject) {
22862
22862
  var gen = fn.apply(self, args);
22863
22863
  function _next(value) {
22864
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
22864
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
22865
22865
  }
22866
22866
  function _throw(err) {
22867
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
22867
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
22868
22868
  }
22869
22869
  _next(undefined);
22870
22870
  });
@@ -22908,7 +22908,7 @@ function _unsupported_iterable_to_array$c(o, minLen) {
22908
22908
  if (n === "Map" || n === "Set") return Array.from(n);
22909
22909
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
22910
22910
  }
22911
- function _ts_generator$c(thisArg, body) {
22911
+ function _ts_generator$d(thisArg, body) {
22912
22912
  var f, y, t, _ = {
22913
22913
  label: 0,
22914
22914
  sent: function() {
@@ -23017,9 +23017,9 @@ function useRoomPlatformPrivateRoomControlActions(param) {
23017
23017
  var isEndingRef = useRef(false);
23018
23018
  var canToggleScreenShare = canShareScreen && !isScreenSharePending;
23019
23019
  var startScreenShare = function() {
23020
- return _async_to_generator$c(function() {
23020
+ return _async_to_generator$d(function() {
23021
23021
  var error;
23022
- return _ts_generator$c(this, function(_state) {
23022
+ return _ts_generator$d(this, function(_state) {
23023
23023
  switch(_state.label){
23024
23024
  case 0:
23025
23025
  if (!canToggleScreenShare || isStartingRef.current) return [
@@ -23099,8 +23099,8 @@ function useRoomPlatformPrivateRoomControlActions(param) {
23099
23099
  })();
23100
23100
  };
23101
23101
  var stopScreenShare = function() {
23102
- return _async_to_generator$c(function() {
23103
- return _ts_generator$c(this, function(_state) {
23102
+ return _async_to_generator$d(function() {
23103
+ return _ts_generator$d(this, function(_state) {
23104
23104
  switch(_state.label){
23105
23105
  case 0:
23106
23106
  if (isStoppingRef.current) return [
@@ -23155,8 +23155,8 @@ function useRoomPlatformPrivateRoomControlActions(param) {
23155
23155
  })();
23156
23156
  };
23157
23157
  var endPrivateRoom = function() {
23158
- return _async_to_generator$c(function() {
23159
- return _ts_generator$c(this, function(_state) {
23158
+ return _async_to_generator$d(function() {
23159
+ return _ts_generator$d(this, function(_state) {
23160
23160
  switch(_state.label){
23161
23161
  case 0:
23162
23162
  if (isEndingRef.current) return [
@@ -23223,7 +23223,7 @@ function _array_like_to_array$b(arr, len) {
23223
23223
  function _array_with_holes$a(arr) {
23224
23224
  if (Array.isArray(arr)) return arr;
23225
23225
  }
23226
- function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
23226
+ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
23227
23227
  try {
23228
23228
  var info = gen[key](arg);
23229
23229
  var value = info.value;
@@ -23237,22 +23237,22 @@ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
23237
23237
  Promise.resolve(value).then(_next, _throw);
23238
23238
  }
23239
23239
  }
23240
- function _async_to_generator$b(fn) {
23240
+ function _async_to_generator$c(fn) {
23241
23241
  return function() {
23242
23242
  var self = this, args = arguments;
23243
23243
  return new Promise(function(resolve, reject) {
23244
23244
  var gen = fn.apply(self, args);
23245
23245
  function _next(value) {
23246
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
23246
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
23247
23247
  }
23248
23248
  function _throw(err) {
23249
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
23249
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
23250
23250
  }
23251
23251
  _next(undefined);
23252
23252
  });
23253
23253
  };
23254
23254
  }
23255
- function _define_property$a(obj, key, value) {
23255
+ function _define_property$b(obj, key, value) {
23256
23256
  if (key in obj) {
23257
23257
  Object.defineProperty(obj, key, {
23258
23258
  value: value,
@@ -23292,7 +23292,7 @@ function _iterable_to_array_limit$a(arr, i) {
23292
23292
  function _non_iterable_rest$a() {
23293
23293
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
23294
23294
  }
23295
- function _object_spread$8(target) {
23295
+ function _object_spread$9(target) {
23296
23296
  for(var i = 1; i < arguments.length; i++){
23297
23297
  var source = arguments[i] != null ? arguments[i] : {};
23298
23298
  var ownKeys = Object.keys(source);
@@ -23302,7 +23302,7 @@ function _object_spread$8(target) {
23302
23302
  }));
23303
23303
  }
23304
23304
  ownKeys.forEach(function(key) {
23305
- _define_property$a(target, key, source[key]);
23305
+ _define_property$b(target, key, source[key]);
23306
23306
  });
23307
23307
  }
23308
23308
  return target;
@@ -23373,7 +23373,7 @@ function _unsupported_iterable_to_array$b(o, minLen) {
23373
23373
  if (n === "Map" || n === "Set") return Array.from(n);
23374
23374
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
23375
23375
  }
23376
- function _ts_generator$b(thisArg, body) {
23376
+ function _ts_generator$c(thisArg, body) {
23377
23377
  var f, y, t, _ = {
23378
23378
  label: 0,
23379
23379
  sent: function() {
@@ -23516,7 +23516,7 @@ function IconTooltipButton(_0) {
23516
23516
  children: [
23517
23517
  /*#__PURE__*/ jsx(TooltipTrigger, {
23518
23518
  asChild: true,
23519
- children: /*#__PURE__*/ jsx(Button, _object_spread_props$7(_object_spread$8({
23519
+ children: /*#__PURE__*/ jsx(Button, _object_spread_props$7(_object_spread$9({
23520
23520
  "aria-label": label,
23521
23521
  title: label
23522
23522
  }, buttonProps), {
@@ -23539,7 +23539,7 @@ function IconTooltipTrackToggle(_0) {
23539
23539
  children: [
23540
23540
  /*#__PURE__*/ jsx(TooltipTrigger, {
23541
23541
  asChild: true,
23542
- children: /*#__PURE__*/ jsx(TrackToggle, _object_spread_props$7(_object_spread$8({
23542
+ children: /*#__PURE__*/ jsx(TrackToggle, _object_spread_props$7(_object_spread$9({
23543
23543
  "aria-label": label,
23544
23544
  title: label
23545
23545
  }, toggleProps), {
@@ -23593,8 +23593,8 @@ function RoomPlatformPrivateRoomControlBar(param) {
23593
23593
  setIsScreenSharing(next);
23594
23594
  };
23595
23595
  var notifyExternalStopScreenShare = function() {
23596
- return _async_to_generator$b(function() {
23597
- return _ts_generator$b(this, function(_state) {
23596
+ return _async_to_generator$c(function() {
23597
+ return _ts_generator$c(this, function(_state) {
23598
23598
  switch(_state.label){
23599
23599
  case 0:
23600
23600
  if (isNotifyingExternalStopRef.current) return [
@@ -23641,8 +23641,8 @@ function RoomPlatformPrivateRoomControlBar(param) {
23641
23641
  onEnd: onEnd,
23642
23642
  onScreenSharingChange: setScreenSharingState,
23643
23643
  setLocalScreenShareEnabled: function(enabled) {
23644
- return _async_to_generator$b(function() {
23645
- return _ts_generator$b(this, function(_state) {
23644
+ return _async_to_generator$c(function() {
23645
+ return _ts_generator$c(this, function(_state) {
23646
23646
  switch(_state.label){
23647
23647
  case 0:
23648
23648
  return [
@@ -23798,7 +23798,7 @@ function RoomPlatformPrivateRoomControlBar(param) {
23798
23798
  });
23799
23799
  }
23800
23800
 
23801
- function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
23801
+ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
23802
23802
  try {
23803
23803
  var info = gen[key](arg);
23804
23804
  var value = info.value;
@@ -23812,16 +23812,16 @@ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
23812
23812
  Promise.resolve(value).then(_next, _throw);
23813
23813
  }
23814
23814
  }
23815
- function _async_to_generator$a(fn) {
23815
+ function _async_to_generator$b(fn) {
23816
23816
  return function() {
23817
23817
  var self = this, args = arguments;
23818
23818
  return new Promise(function(resolve, reject) {
23819
23819
  var gen = fn.apply(self, args);
23820
23820
  function _next(value) {
23821
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
23821
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
23822
23822
  }
23823
23823
  function _throw(err) {
23824
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
23824
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
23825
23825
  }
23826
23826
  _next(undefined);
23827
23827
  });
@@ -23845,7 +23845,7 @@ function _create_class$1(Constructor, protoProps, staticProps) {
23845
23845
  if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
23846
23846
  return Constructor;
23847
23847
  }
23848
- function _define_property$9(obj, key, value) {
23848
+ function _define_property$a(obj, key, value) {
23849
23849
  if (key in obj) {
23850
23850
  Object.defineProperty(obj, key, {
23851
23851
  value: value,
@@ -23858,7 +23858,7 @@ function _define_property$9(obj, key, value) {
23858
23858
  }
23859
23859
  return obj;
23860
23860
  }
23861
- function _object_spread$7(target) {
23861
+ function _object_spread$8(target) {
23862
23862
  for(var i = 1; i < arguments.length; i++){
23863
23863
  var source = arguments[i] != null ? arguments[i] : {};
23864
23864
  var ownKeys = Object.keys(source);
@@ -23868,7 +23868,7 @@ function _object_spread$7(target) {
23868
23868
  }));
23869
23869
  }
23870
23870
  ownKeys.forEach(function(key) {
23871
- _define_property$9(target, key, source[key]);
23871
+ _define_property$a(target, key, source[key]);
23872
23872
  });
23873
23873
  }
23874
23874
  return target;
@@ -23892,7 +23892,7 @@ function _object_spread_props$6(target, source) {
23892
23892
  }
23893
23893
  return target;
23894
23894
  }
23895
- function _ts_generator$a(thisArg, body) {
23895
+ function _ts_generator$b(thisArg, body) {
23896
23896
  var f, y, t, _ = {
23897
23897
  label: 0,
23898
23898
  sent: function() {
@@ -23995,13 +23995,13 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
23995
23995
  function WebSocketRealtimeTransport() {
23996
23996
  var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
23997
23997
  _class_call_check$2(this, WebSocketRealtimeTransport);
23998
- _define_property$9(this, "options", void 0);
23999
- _define_property$9(this, "socket", void 0);
24000
- _define_property$9(this, "connectInput", void 0);
24001
- _define_property$9(this, "manuallyClosed", void 0);
24002
- _define_property$9(this, "subscribedRooms", void 0);
24003
- _define_property$9(this, "handlers", void 0);
24004
- _define_property$9(this, "hasConnected", void 0);
23998
+ _define_property$a(this, "options", void 0);
23999
+ _define_property$a(this, "socket", void 0);
24000
+ _define_property$a(this, "connectInput", void 0);
24001
+ _define_property$a(this, "manuallyClosed", void 0);
24002
+ _define_property$a(this, "subscribedRooms", void 0);
24003
+ _define_property$a(this, "handlers", void 0);
24004
+ _define_property$a(this, "hasConnected", void 0);
24005
24005
  this.options = options;
24006
24006
  this.manuallyClosed = false;
24007
24007
  this.subscribedRooms = new Set();
@@ -24012,8 +24012,8 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
24012
24012
  {
24013
24013
  key: "connect",
24014
24014
  value: function connect(input) {
24015
- return _async_to_generator$a(function() {
24016
- return _ts_generator$a(this, function(_state) {
24015
+ return _async_to_generator$b(function() {
24016
+ return _ts_generator$b(this, function(_state) {
24017
24017
  switch(_state.label){
24018
24018
  case 0:
24019
24019
  this.connectInput = input;
@@ -24035,9 +24035,9 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
24035
24035
  {
24036
24036
  key: "refreshToken",
24037
24037
  value: function refreshToken(token) {
24038
- return _async_to_generator$a(function() {
24039
- return _ts_generator$a(this, function(_state) {
24040
- if (this.connectInput) this.connectInput = _object_spread_props$6(_object_spread$7({}, this.connectInput), {
24038
+ return _async_to_generator$b(function() {
24039
+ return _ts_generator$b(this, function(_state) {
24040
+ if (this.connectInput) this.connectInput = _object_spread_props$6(_object_spread$8({}, this.connectInput), {
24041
24041
  token: token
24042
24042
  });
24043
24043
  this.updateSocketAuthToken(token);
@@ -24054,8 +24054,8 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
24054
24054
  {
24055
24055
  key: "subscribe",
24056
24056
  value: function subscribe(roomId) {
24057
- return _async_to_generator$a(function() {
24058
- return _ts_generator$a(this, function(_state) {
24057
+ return _async_to_generator$b(function() {
24058
+ return _ts_generator$b(this, function(_state) {
24059
24059
  this.subscribedRooms.add(roomId);
24060
24060
  this.send('subscribe', {
24061
24061
  roomId: roomId
@@ -24091,9 +24091,9 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
24091
24091
  {
24092
24092
  key: "openSocket",
24093
24093
  value: function openSocket(input) {
24094
- return _async_to_generator$a(function() {
24094
+ return _async_to_generator$b(function() {
24095
24095
  var _this, _this_options_reconnectMaxAttempts, _this_options_reconnectBaseDelayMs, _this_options_reconnectMaxDelayMs, endpoint, socket;
24096
- return _ts_generator$a(this, function(_state) {
24096
+ return _ts_generator$b(this, function(_state) {
24097
24097
  switch(_state.label){
24098
24098
  case 0:
24099
24099
  _this = this;
@@ -24171,7 +24171,7 @@ var WebSocketRealtimeTransport = /*#__PURE__*/ function() {
24171
24171
  key: "createSocket",
24172
24172
  value: function createSocket(endpoint, options) {
24173
24173
  if (this.options.socketFactory) return this.options.socketFactory(endpoint, options);
24174
- return io(endpoint, _object_spread_props$6(_object_spread$7({}, options), {
24174
+ return io(endpoint, _object_spread_props$6(_object_spread$8({}, options), {
24175
24175
  autoConnect: false
24176
24176
  }));
24177
24177
  }
@@ -24224,7 +24224,7 @@ function _create_class(Constructor, protoProps, staticProps) {
24224
24224
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
24225
24225
  return Constructor;
24226
24226
  }
24227
- function _define_property$8(obj, key, value) {
24227
+ function _define_property$9(obj, key, value) {
24228
24228
  if (key in obj) {
24229
24229
  Object.defineProperty(obj, key, {
24230
24230
  value: value,
@@ -24257,8 +24257,8 @@ function _unsupported_iterable_to_array$a(o, minLen) {
24257
24257
  var ChatClientState = /*#__PURE__*/ function() {
24258
24258
  function ChatClientState() {
24259
24259
  _class_call_check$1(this, ChatClientState);
24260
- _define_property$8(this, "token", void 0);
24261
- _define_property$8(this, "rooms", new Map());
24260
+ _define_property$9(this, "token", void 0);
24261
+ _define_property$9(this, "rooms", new Map());
24262
24262
  }
24263
24263
  _create_class(ChatClientState, [
24264
24264
  {
@@ -24350,7 +24350,7 @@ function _construct(Parent, args, Class) {
24350
24350
  }
24351
24351
  return _construct.apply(null, arguments);
24352
24352
  }
24353
- function _define_property$7(obj, key, value) {
24353
+ function _define_property$8(obj, key, value) {
24354
24354
  if (key in obj) {
24355
24355
  Object.defineProperty(obj, key, {
24356
24356
  value: value,
@@ -24443,7 +24443,7 @@ var ChatHttpError = /*#__PURE__*/ function(Error1) {
24443
24443
  var _this;
24444
24444
  _this = _call_super(this, ChatHttpError, [
24445
24445
  message
24446
- ]), _define_property$7(_this, "status", void 0), _define_property$7(_this, "responseBody", void 0), _this.status = status, _this.responseBody = responseBody;
24446
+ ]), _define_property$8(_this, "status", void 0), _define_property$8(_this, "responseBody", void 0), _this.status = status, _this.responseBody = responseBody;
24447
24447
  _this.name = 'ChatHttpError';
24448
24448
  return _this;
24449
24449
  }
@@ -24466,7 +24466,7 @@ var ChatPermissionDeniedError = /*#__PURE__*/ function(ChatHttpError) {
24466
24466
  return ChatPermissionDeniedError;
24467
24467
  }(ChatHttpError);
24468
24468
 
24469
- function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
24469
+ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
24470
24470
  try {
24471
24471
  var info = gen[key](arg);
24472
24472
  var value = info.value;
@@ -24480,22 +24480,22 @@ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
24480
24480
  Promise.resolve(value).then(_next, _throw);
24481
24481
  }
24482
24482
  }
24483
- function _async_to_generator$9(fn) {
24483
+ function _async_to_generator$a(fn) {
24484
24484
  return function() {
24485
24485
  var self = this, args = arguments;
24486
24486
  return new Promise(function(resolve, reject) {
24487
24487
  var gen = fn.apply(self, args);
24488
24488
  function _next(value) {
24489
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
24489
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
24490
24490
  }
24491
24491
  function _throw(err) {
24492
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
24492
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
24493
24493
  }
24494
24494
  _next(undefined);
24495
24495
  });
24496
24496
  };
24497
24497
  }
24498
- function _define_property$6(obj, key, value) {
24498
+ function _define_property$7(obj, key, value) {
24499
24499
  if (key in obj) {
24500
24500
  Object.defineProperty(obj, key, {
24501
24501
  value: value,
@@ -24508,7 +24508,7 @@ function _define_property$6(obj, key, value) {
24508
24508
  }
24509
24509
  return obj;
24510
24510
  }
24511
- function _object_spread$6(target) {
24511
+ function _object_spread$7(target) {
24512
24512
  for(var i = 1; i < arguments.length; i++){
24513
24513
  var source = arguments[i] != null ? arguments[i] : {};
24514
24514
  var ownKeys = Object.keys(source);
@@ -24518,7 +24518,7 @@ function _object_spread$6(target) {
24518
24518
  }));
24519
24519
  }
24520
24520
  ownKeys.forEach(function(key) {
24521
- _define_property$6(target, key, source[key]);
24521
+ _define_property$7(target, key, source[key]);
24522
24522
  });
24523
24523
  }
24524
24524
  return target;
@@ -24546,7 +24546,7 @@ function _type_of$2(obj) {
24546
24546
  "@swc/helpers - typeof";
24547
24547
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
24548
24548
  }
24549
- function _ts_generator$9(thisArg, body) {
24549
+ function _ts_generator$a(thisArg, body) {
24550
24550
  var f, y, t, _ = {
24551
24551
  label: 0,
24552
24552
  sent: function() {
@@ -24648,18 +24648,18 @@ function _ts_generator$9(thisArg, body) {
24648
24648
  var createChatHttpRequester = function(input) {
24649
24649
  var endpoint = trimTrailingSlash(input.endpoint);
24650
24650
  return function(path, init) {
24651
- return _async_to_generator$9(function() {
24651
+ return _async_to_generator$a(function() {
24652
24652
  var execute, response;
24653
- return _ts_generator$9(this, function(_state) {
24653
+ return _ts_generator$a(this, function(_state) {
24654
24654
  switch(_state.label){
24655
24655
  case 0:
24656
24656
  execute = function() {
24657
- return _async_to_generator$9(function() {
24658
- return _ts_generator$9(this, function(_state) {
24657
+ return _async_to_generator$a(function() {
24658
+ return _ts_generator$a(this, function(_state) {
24659
24659
  return [
24660
24660
  2,
24661
- input.fetchFn("".concat(endpoint).concat(path), _object_spread_props$5(_object_spread$6({}, init), {
24662
- headers: _object_spread_props$5(_object_spread$6({}, init.body ? {
24661
+ input.fetchFn("".concat(endpoint).concat(path), _object_spread_props$5(_object_spread$7({}, init), {
24662
+ headers: _object_spread_props$5(_object_spread$7({}, init.body ? {
24663
24663
  'Content-Type': 'application/json'
24664
24664
  } : {}, init.headers), {
24665
24665
  Authorization: "Bearer ".concat(input.getToken())
@@ -24703,8 +24703,8 @@ var createChatHttpRequester = function(input) {
24703
24703
  };
24704
24704
  };
24705
24705
  var defaultFetch = function(input, init) {
24706
- return _async_to_generator$9(function() {
24707
- return _ts_generator$9(this, function(_state) {
24706
+ return _async_to_generator$a(function() {
24707
+ return _ts_generator$a(this, function(_state) {
24708
24708
  if (!globalThis.fetch) throw new Error('fetch is not available in this environment');
24709
24709
  return [
24710
24710
  2,
@@ -24714,9 +24714,9 @@ var defaultFetch = function(input, init) {
24714
24714
  })();
24715
24715
  };
24716
24716
  var parseResponse = function(response) {
24717
- return _async_to_generator$9(function() {
24717
+ return _async_to_generator$a(function() {
24718
24718
  var body;
24719
- return _ts_generator$9(this, function(_state) {
24719
+ return _ts_generator$a(this, function(_state) {
24720
24720
  switch(_state.label){
24721
24721
  case 0:
24722
24722
  return [
@@ -24741,9 +24741,9 @@ var unwrapGatewayResponseBody = function(body) {
24741
24741
  return body.data;
24742
24742
  };
24743
24743
  var readBody = function(response) {
24744
- return _async_to_generator$9(function() {
24744
+ return _async_to_generator$a(function() {
24745
24745
  var text;
24746
- return _ts_generator$9(this, function(_state) {
24746
+ return _ts_generator$a(this, function(_state) {
24747
24747
  switch(_state.label){
24748
24748
  case 0:
24749
24749
  _state.trys.push([
@@ -24785,7 +24785,7 @@ var trimTrailingSlash = function(value) {
24785
24785
  return value.replace(/\/+$/, '');
24786
24786
  };
24787
24787
 
24788
- function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
24788
+ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
24789
24789
  try {
24790
24790
  var info = gen[key](arg);
24791
24791
  var value = info.value;
@@ -24799,22 +24799,22 @@ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
24799
24799
  Promise.resolve(value).then(_next, _throw);
24800
24800
  }
24801
24801
  }
24802
- function _async_to_generator$8(fn) {
24802
+ function _async_to_generator$9(fn) {
24803
24803
  return function() {
24804
24804
  var self = this, args = arguments;
24805
24805
  return new Promise(function(resolve, reject) {
24806
24806
  var gen = fn.apply(self, args);
24807
24807
  function _next(value) {
24808
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
24808
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
24809
24809
  }
24810
24810
  function _throw(err) {
24811
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
24811
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
24812
24812
  }
24813
24813
  _next(undefined);
24814
24814
  });
24815
24815
  };
24816
24816
  }
24817
- function _ts_generator$8(thisArg, body) {
24817
+ function _ts_generator$9(thisArg, body) {
24818
24818
  var f, y, t, _ = {
24819
24819
  label: 0,
24820
24820
  sent: function() {
@@ -24935,8 +24935,8 @@ var createChatTokenManager = function(input) {
24935
24935
  },
24936
24936
  setState: setState,
24937
24937
  refreshNow: function refreshNow() {
24938
- return _async_to_generator$8(function() {
24939
- return _ts_generator$8(this, function(_state) {
24938
+ return _async_to_generator$9(function() {
24939
+ return _ts_generator$9(this, function(_state) {
24940
24940
  if (refreshInFlight !== undefined) return [
24941
24941
  2,
24942
24942
  refreshInFlight
@@ -24951,9 +24951,9 @@ var createChatTokenManager = function(input) {
24951
24951
  refreshToken: state.refreshToken
24952
24952
  })
24953
24953
  }).then(function(response) {
24954
- return _async_to_generator$8(function() {
24954
+ return _async_to_generator$9(function() {
24955
24955
  var body, nextState;
24956
- return _ts_generator$8(this, function(_state) {
24956
+ return _ts_generator$9(this, function(_state) {
24957
24957
  switch(_state.label){
24958
24958
  case 0:
24959
24959
  return [
@@ -25000,7 +25000,7 @@ var createChatTokenManager = function(input) {
25000
25000
  };
25001
25001
  };
25002
25002
 
25003
- function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
25003
+ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
25004
25004
  try {
25005
25005
  var info = gen[key](arg);
25006
25006
  var value = info.value;
@@ -25014,16 +25014,16 @@ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
25014
25014
  Promise.resolve(value).then(_next, _throw);
25015
25015
  }
25016
25016
  }
25017
- function _async_to_generator$7(fn) {
25017
+ function _async_to_generator$8(fn) {
25018
25018
  return function() {
25019
25019
  var self = this, args = arguments;
25020
25020
  return new Promise(function(resolve, reject) {
25021
25021
  var gen = fn.apply(self, args);
25022
25022
  function _next(value) {
25023
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
25023
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
25024
25024
  }
25025
25025
  function _throw(err) {
25026
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
25026
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
25027
25027
  }
25028
25028
  _next(undefined);
25029
25029
  });
@@ -25033,7 +25033,7 @@ function _type_of$1(obj) {
25033
25033
  "@swc/helpers - typeof";
25034
25034
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
25035
25035
  }
25036
- function _ts_generator$7(thisArg, body) {
25036
+ function _ts_generator$8(thisArg, body) {
25037
25037
  var f, y, t, _ = {
25038
25038
  label: 0,
25039
25039
  sent: function() {
@@ -25148,9 +25148,9 @@ function createChatClient(config) {
25148
25148
  return state.getToken();
25149
25149
  },
25150
25150
  refreshToken: function() {
25151
- return _async_to_generator$7(function() {
25151
+ return _async_to_generator$8(function() {
25152
25152
  var refreshed;
25153
- return _ts_generator$7(this, function(_state) {
25153
+ return _ts_generator$8(this, function(_state) {
25154
25154
  switch(_state.label){
25155
25155
  case 0:
25156
25156
  if (!tokenManager) throw new Error('Chat client is not connected');
@@ -25178,10 +25178,10 @@ function createChatClient(config) {
25178
25178
  var roomClient = function(roomId) {
25179
25179
  return {
25180
25180
  getHistory: function getHistory() {
25181
- return _async_to_generator$7(function() {
25181
+ return _async_to_generator$8(function() {
25182
25182
  var input, _ref, _history_items, query, history, result;
25183
25183
  var _arguments = arguments;
25184
- return _ts_generator$7(this, function(_state) {
25184
+ return _ts_generator$8(this, function(_state) {
25185
25185
  switch(_state.label){
25186
25186
  case 0:
25187
25187
  input = _arguments.length > 0 && _arguments[0] !== void 0 ? _arguments[0] : {};
@@ -25209,9 +25209,9 @@ function createChatClient(config) {
25209
25209
  }).apply(this, arguments);
25210
25210
  },
25211
25211
  sendMessage: function sendMessage(input) {
25212
- return _async_to_generator$7(function() {
25212
+ return _async_to_generator$8(function() {
25213
25213
  var _input_idempotencyKey;
25214
- return _ts_generator$7(this, function(_state) {
25214
+ return _ts_generator$8(this, function(_state) {
25215
25215
  state.getRoom(roomId);
25216
25216
  return [
25217
25217
  2,
@@ -25227,9 +25227,9 @@ function createChatClient(config) {
25227
25227
  })();
25228
25228
  },
25229
25229
  deleteMessage: function deleteMessage(input) {
25230
- return _async_to_generator$7(function() {
25230
+ return _async_to_generator$8(function() {
25231
25231
  var _input_idempotencyKey;
25232
- return _ts_generator$7(this, function(_state) {
25232
+ return _ts_generator$8(this, function(_state) {
25233
25233
  switch(_state.label){
25234
25234
  case 0:
25235
25235
  state.getRoom(roomId);
@@ -25252,9 +25252,9 @@ function createChatClient(config) {
25252
25252
  })();
25253
25253
  },
25254
25254
  editMessage: function editMessage(input) {
25255
- return _async_to_generator$7(function() {
25255
+ return _async_to_generator$8(function() {
25256
25256
  var _input_idempotencyKey;
25257
- return _ts_generator$7(this, function(_state) {
25257
+ return _ts_generator$8(this, function(_state) {
25258
25258
  state.getRoom(roomId);
25259
25259
  return [
25260
25260
  2,
@@ -25270,9 +25270,9 @@ function createChatClient(config) {
25270
25270
  })();
25271
25271
  },
25272
25272
  forwardMessage: function forwardMessage(input) {
25273
- return _async_to_generator$7(function() {
25273
+ return _async_to_generator$8(function() {
25274
25274
  var _input_idempotencyKey;
25275
- return _ts_generator$7(this, function(_state) {
25275
+ return _ts_generator$8(this, function(_state) {
25276
25276
  state.getRoom(roomId);
25277
25277
  return [
25278
25278
  2,
@@ -25297,8 +25297,8 @@ function createChatClient(config) {
25297
25297
  bindRealtimeHandlers(state, realtime, roomClient);
25298
25298
  return {
25299
25299
  connect: function connect(input) {
25300
- return _async_to_generator$7(function() {
25301
- return _ts_generator$7(this, function(_state) {
25300
+ return _async_to_generator$8(function() {
25301
+ return _ts_generator$8(this, function(_state) {
25302
25302
  switch(_state.label){
25303
25303
  case 0:
25304
25304
  tokenManager = createChatTokenManager({
@@ -25339,8 +25339,8 @@ function createChatClient(config) {
25339
25339
  })();
25340
25340
  },
25341
25341
  refreshToken: function refreshToken(token) {
25342
- return _async_to_generator$7(function() {
25343
- return _ts_generator$7(this, function(_state) {
25342
+ return _async_to_generator$8(function() {
25343
+ return _ts_generator$8(this, function(_state) {
25344
25344
  switch(_state.label){
25345
25345
  case 0:
25346
25346
  state.setToken(token);
@@ -25549,7 +25549,7 @@ function _array_like_to_array$9(arr, len) {
25549
25549
  function _array_with_holes$9(arr) {
25550
25550
  if (Array.isArray(arr)) return arr;
25551
25551
  }
25552
- function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
25552
+ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
25553
25553
  try {
25554
25554
  var info = gen[key](arg);
25555
25555
  var value = info.value;
@@ -25563,16 +25563,16 @@ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
25563
25563
  Promise.resolve(value).then(_next, _throw);
25564
25564
  }
25565
25565
  }
25566
- function _async_to_generator$6(fn) {
25566
+ function _async_to_generator$7(fn) {
25567
25567
  return function() {
25568
25568
  var self = this, args = arguments;
25569
25569
  return new Promise(function(resolve, reject) {
25570
25570
  var gen = fn.apply(self, args);
25571
25571
  function _next(value) {
25572
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
25572
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
25573
25573
  }
25574
25574
  function _throw(err) {
25575
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
25575
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
25576
25576
  }
25577
25577
  _next(undefined);
25578
25578
  });
@@ -25616,7 +25616,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
25616
25616
  if (n === "Map" || n === "Set") return Array.from(n);
25617
25617
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
25618
25618
  }
25619
- function _ts_generator$6(thisArg, body) {
25619
+ function _ts_generator$7(thisArg, body) {
25620
25620
  var f, y, t, _ = {
25621
25621
  label: 0,
25622
25622
  sent: function() {
@@ -25726,9 +25726,9 @@ function MessageComposer(param) {
25726
25726
  });
25727
25727
  }
25728
25728
  var submitMessage = function() {
25729
- return _async_to_generator$6(function() {
25729
+ return _async_to_generator$7(function() {
25730
25730
  var value;
25731
- return _ts_generator$6(this, function(_state) {
25731
+ return _ts_generator$7(this, function(_state) {
25732
25732
  switch(_state.label){
25733
25733
  case 0:
25734
25734
  value = text.trim();
@@ -25750,8 +25750,8 @@ function MessageComposer(param) {
25750
25750
  })();
25751
25751
  };
25752
25752
  var handleSubmit = function(event) {
25753
- return _async_to_generator$6(function() {
25754
- return _ts_generator$6(this, function(_state) {
25753
+ return _async_to_generator$7(function() {
25754
+ return _ts_generator$7(this, function(_state) {
25755
25755
  switch(_state.label){
25756
25756
  case 0:
25757
25757
  event.preventDefault();
@@ -25769,8 +25769,8 @@ function MessageComposer(param) {
25769
25769
  })();
25770
25770
  };
25771
25771
  var handleComposerKeyDown = function(event) {
25772
- return _async_to_generator$6(function() {
25773
- return _ts_generator$6(this, function(_state) {
25772
+ return _async_to_generator$7(function() {
25773
+ return _ts_generator$7(this, function(_state) {
25774
25774
  switch(_state.label){
25775
25775
  case 0:
25776
25776
  if (event.key !== 'Enter' || event.shiftKey) return [
@@ -25844,7 +25844,7 @@ function _array_with_holes$8(arr) {
25844
25844
  function _array_without_holes$2(arr) {
25845
25845
  if (Array.isArray(arr)) return _array_like_to_array$8(arr);
25846
25846
  }
25847
- function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
25847
+ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
25848
25848
  try {
25849
25849
  var info = gen[key](arg);
25850
25850
  var value = info.value;
@@ -25858,16 +25858,16 @@ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
25858
25858
  Promise.resolve(value).then(_next, _throw);
25859
25859
  }
25860
25860
  }
25861
- function _async_to_generator$5(fn) {
25861
+ function _async_to_generator$6(fn) {
25862
25862
  return function() {
25863
25863
  var self = this, args = arguments;
25864
25864
  return new Promise(function(resolve, reject) {
25865
25865
  var gen = fn.apply(self, args);
25866
25866
  function _next(value) {
25867
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
25867
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
25868
25868
  }
25869
25869
  function _throw(err) {
25870
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
25870
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
25871
25871
  }
25872
25872
  _next(undefined);
25873
25873
  });
@@ -25927,7 +25927,7 @@ function _unsupported_iterable_to_array$8(o, minLen) {
25927
25927
  if (n === "Map" || n === "Set") return Array.from(n);
25928
25928
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
25929
25929
  }
25930
- function _ts_generator$5(thisArg, body) {
25930
+ function _ts_generator$6(thisArg, body) {
25931
25931
  var f, y, t, _ = {
25932
25932
  label: 0,
25933
25933
  sent: function() {
@@ -26173,9 +26173,9 @@ function MessageList(param) {
26173
26173
  setEditingMessageId(undefined);
26174
26174
  };
26175
26175
  var submitEdit = function(event, message) {
26176
- return _async_to_generator$5(function() {
26176
+ return _async_to_generator$6(function() {
26177
26177
  var trimmedText;
26178
- return _ts_generator$5(this, function(_state) {
26178
+ return _ts_generator$6(this, function(_state) {
26179
26179
  switch(_state.label){
26180
26180
  case 0:
26181
26181
  event.preventDefault();
@@ -26475,7 +26475,7 @@ function _array_like_to_array$7(arr, len) {
26475
26475
  function _array_with_holes$7(arr) {
26476
26476
  if (Array.isArray(arr)) return arr;
26477
26477
  }
26478
- function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
26478
+ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
26479
26479
  try {
26480
26480
  var info = gen[key](arg);
26481
26481
  var value = info.value;
@@ -26489,16 +26489,16 @@ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
26489
26489
  Promise.resolve(value).then(_next, _throw);
26490
26490
  }
26491
26491
  }
26492
- function _async_to_generator$4(fn) {
26492
+ function _async_to_generator$5(fn) {
26493
26493
  return function() {
26494
26494
  var self = this, args = arguments;
26495
26495
  return new Promise(function(resolve, reject) {
26496
26496
  var gen = fn.apply(self, args);
26497
26497
  function _next(value) {
26498
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
26498
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
26499
26499
  }
26500
26500
  function _throw(err) {
26501
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
26501
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
26502
26502
  }
26503
26503
  _next(undefined);
26504
26504
  });
@@ -26542,7 +26542,7 @@ function _unsupported_iterable_to_array$7(o, minLen) {
26542
26542
  if (n === "Map" || n === "Set") return Array.from(n);
26543
26543
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
26544
26544
  }
26545
- function _ts_generator$4(thisArg, body) {
26545
+ function _ts_generator$5(thisArg, body) {
26546
26546
  var f, y, t, _ = {
26547
26547
  label: 0,
26548
26548
  sent: function() {
@@ -26743,8 +26743,8 @@ function ChatPanel(param) {
26743
26743
  return setForwardingMessage(undefined);
26744
26744
  },
26745
26745
  onForward: function(targetRoomId) {
26746
- return _async_to_generator$4(function() {
26747
- return _ts_generator$4(this, function(_state) {
26746
+ return _async_to_generator$5(function() {
26747
+ return _ts_generator$5(this, function(_state) {
26748
26748
  switch(_state.label){
26749
26749
  case 0:
26750
26750
  if (!activeRoom || !forwardingMessage) return [
@@ -26799,7 +26799,7 @@ function _array_with_holes$6(arr) {
26799
26799
  function _array_without_holes$1(arr) {
26800
26800
  if (Array.isArray(arr)) return _array_like_to_array$6(arr);
26801
26801
  }
26802
- function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
26802
+ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
26803
26803
  try {
26804
26804
  var info = gen[key](arg);
26805
26805
  var value = info.value;
@@ -26813,22 +26813,22 @@ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
26813
26813
  Promise.resolve(value).then(_next, _throw);
26814
26814
  }
26815
26815
  }
26816
- function _async_to_generator$3(fn) {
26816
+ function _async_to_generator$4(fn) {
26817
26817
  return function() {
26818
26818
  var self = this, args = arguments;
26819
26819
  return new Promise(function(resolve, reject) {
26820
26820
  var gen = fn.apply(self, args);
26821
26821
  function _next(value) {
26822
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
26822
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
26823
26823
  }
26824
26824
  function _throw(err) {
26825
- asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
26825
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
26826
26826
  }
26827
26827
  _next(undefined);
26828
26828
  });
26829
26829
  };
26830
26830
  }
26831
- function _define_property$5(obj, key, value) {
26831
+ function _define_property$6(obj, key, value) {
26832
26832
  if (key in obj) {
26833
26833
  Object.defineProperty(obj, key, {
26834
26834
  value: value,
@@ -26874,7 +26874,7 @@ function _non_iterable_rest$6() {
26874
26874
  function _non_iterable_spread$1() {
26875
26875
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
26876
26876
  }
26877
- function _object_spread$5(target) {
26877
+ function _object_spread$6(target) {
26878
26878
  for(var i = 1; i < arguments.length; i++){
26879
26879
  var source = arguments[i] != null ? arguments[i] : {};
26880
26880
  var ownKeys = Object.keys(source);
@@ -26884,7 +26884,7 @@ function _object_spread$5(target) {
26884
26884
  }));
26885
26885
  }
26886
26886
  ownKeys.forEach(function(key) {
26887
- _define_property$5(target, key, source[key]);
26887
+ _define_property$6(target, key, source[key]);
26888
26888
  });
26889
26889
  }
26890
26890
  return target;
@@ -26926,7 +26926,7 @@ function _unsupported_iterable_to_array$6(o, minLen) {
26926
26926
  if (n === "Map" || n === "Set") return Array.from(n);
26927
26927
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
26928
26928
  }
26929
- function _ts_generator$3(thisArg, body) {
26929
+ function _ts_generator$4(thisArg, body) {
26930
26930
  var f, y, t, _ = {
26931
26931
  label: 0,
26932
26932
  sent: function() {
@@ -27095,7 +27095,7 @@ function ChatProvider(param) {
27095
27095
  var clearUnreadCount = useCallback(function(roomId) {
27096
27096
  setUnreadCountsByRoom(function(current) {
27097
27097
  if (!current[roomId]) return current;
27098
- var next = _object_spread$5({}, current);
27098
+ var next = _object_spread$6({}, current);
27099
27099
  delete next[roomId];
27100
27100
  return next;
27101
27101
  });
@@ -27103,7 +27103,7 @@ function ChatProvider(param) {
27103
27103
  var setRoomAtLatest = useCallback(function(roomId, isAtLatest) {
27104
27104
  setRoomLatestStateByRoom(function(current) {
27105
27105
  if (current[roomId] === isAtLatest) return current;
27106
- var next = _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, isAtLatest));
27106
+ var next = _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, isAtLatest));
27107
27107
  roomLatestStateByRoomRef.current = next;
27108
27108
  return next;
27109
27109
  });
@@ -27136,7 +27136,7 @@ function ChatProvider(param) {
27136
27136
  })) {
27137
27137
  setUnreadCountsByRoom(function(current) {
27138
27138
  var _current_event_roomId;
27139
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, event.roomId, ((_current_event_roomId = current[event.roomId]) !== null && _current_event_roomId !== void 0 ? _current_event_roomId : 0) + 1));
27139
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, event.roomId, ((_current_event_roomId = current[event.roomId]) !== null && _current_event_roomId !== void 0 ? _current_event_roomId : 0) + 1));
27140
27140
  });
27141
27141
  }
27142
27142
  applyMessagesByRoom(function(current) {
@@ -27158,7 +27158,7 @@ function ChatProvider(param) {
27158
27158
  roomClient.on('room.presence.updated', function(event) {
27159
27159
  if (!mounted || !isChatRoomPresenceDto(event)) return;
27160
27160
  setOnlineCountsByRoom(function(current) {
27161
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, event.roomId, event.onlineCount));
27161
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, event.roomId, event.onlineCount));
27162
27162
  });
27163
27163
  })
27164
27164
  ];
@@ -27170,8 +27170,8 @@ function ChatProvider(param) {
27170
27170
  refreshToken: refreshToken,
27171
27171
  refreshTokenExpiresAt: refreshTokenExpiresAt
27172
27172
  }).then(function() {
27173
- return _async_to_generator$3(function() {
27174
- return _ts_generator$3(this, function(_state) {
27173
+ return _async_to_generator$4(function() {
27174
+ return _ts_generator$4(this, function(_state) {
27175
27175
  switch(_state.label){
27176
27176
  case 0:
27177
27177
  if (!mounted) return [
@@ -27181,9 +27181,9 @@ function ChatProvider(param) {
27181
27181
  return [
27182
27182
  4,
27183
27183
  Promise.all(rooms.map(function(room) {
27184
- return _async_to_generator$3(function() {
27184
+ return _async_to_generator$4(function() {
27185
27185
  var history;
27186
- return _ts_generator$3(this, function(_state) {
27186
+ return _ts_generator$4(this, function(_state) {
27187
27187
  switch(_state.label){
27188
27188
  case 0:
27189
27189
  if (!room.permissions.includes('read')) return [
@@ -27202,13 +27202,13 @@ function ChatProvider(param) {
27202
27202
  ];
27203
27203
  applyMessagesByRoom(function(current) {
27204
27204
  var _current_room_roomId;
27205
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, room.roomId, mergeMessages(history.items, (_current_room_roomId = current[room.roomId]) !== null && _current_room_roomId !== void 0 ? _current_room_roomId : [])));
27205
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, room.roomId, mergeMessages(history.items, (_current_room_roomId = current[room.roomId]) !== null && _current_room_roomId !== void 0 ? _current_room_roomId : [])));
27206
27206
  });
27207
27207
  setHistoryCursorsByRoom(function(current) {
27208
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, room.roomId, history.nextCursor));
27208
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, room.roomId, history.nextCursor));
27209
27209
  });
27210
27210
  setHasMoreByRoom(function(current) {
27211
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, room.roomId, Boolean(history.nextCursor)));
27211
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, room.roomId, Boolean(history.nextCursor)));
27212
27212
  });
27213
27213
  return [
27214
27214
  2
@@ -27250,9 +27250,9 @@ function ChatProvider(param) {
27250
27250
  tokenExpiresAt
27251
27251
  ]);
27252
27252
  var loadOlderMessages = function(roomId) {
27253
- return _async_to_generator$3(function() {
27253
+ return _async_to_generator$4(function() {
27254
27254
  var cursor, history;
27255
- return _ts_generator$3(this, function(_state) {
27255
+ return _ts_generator$4(this, function(_state) {
27256
27256
  switch(_state.label){
27257
27257
  case 0:
27258
27258
  cursor = historyCursorsByRoom[roomId];
@@ -27260,7 +27260,7 @@ function ChatProvider(param) {
27260
27260
  2
27261
27261
  ];
27262
27262
  setIsLoadingOlderByRoom(function(current) {
27263
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, true));
27263
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, true));
27264
27264
  });
27265
27265
  _state.label = 1;
27266
27266
  case 1:
@@ -27281,13 +27281,13 @@ function ChatProvider(param) {
27281
27281
  history = _state.sent();
27282
27282
  applyMessagesByRoom(function(current) {
27283
27283
  var _current_roomId;
27284
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, mergeMessages(history.items, (_current_roomId = current[roomId]) !== null && _current_roomId !== void 0 ? _current_roomId : [])));
27284
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, mergeMessages(history.items, (_current_roomId = current[roomId]) !== null && _current_roomId !== void 0 ? _current_roomId : [])));
27285
27285
  });
27286
27286
  setHistoryCursorsByRoom(function(current) {
27287
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, history.nextCursor));
27287
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, history.nextCursor));
27288
27288
  });
27289
27289
  setHasMoreByRoom(function(current) {
27290
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, Boolean(history.nextCursor)));
27290
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, Boolean(history.nextCursor)));
27291
27291
  });
27292
27292
  return [
27293
27293
  3,
@@ -27295,7 +27295,7 @@ function ChatProvider(param) {
27295
27295
  ];
27296
27296
  case 3:
27297
27297
  setIsLoadingOlderByRoom(function(current) {
27298
- return _object_spread_props$4(_object_spread$5({}, current), _define_property$5({}, roomId, false));
27298
+ return _object_spread_props$4(_object_spread$6({}, current), _define_property$6({}, roomId, false));
27299
27299
  });
27300
27300
  return [
27301
27301
  7
@@ -27309,9 +27309,9 @@ function ChatProvider(param) {
27309
27309
  })();
27310
27310
  };
27311
27311
  var sendMessage = function(roomId, text) {
27312
- return _async_to_generator$3(function() {
27312
+ return _async_to_generator$4(function() {
27313
27313
  var message;
27314
- return _ts_generator$3(this, function(_state) {
27314
+ return _ts_generator$4(this, function(_state) {
27315
27315
  switch(_state.label){
27316
27316
  case 0:
27317
27317
  return [
@@ -27333,9 +27333,9 @@ function ChatProvider(param) {
27333
27333
  })();
27334
27334
  };
27335
27335
  var deleteMessage = function(roomId, messageId) {
27336
- return _async_to_generator$3(function() {
27336
+ return _async_to_generator$4(function() {
27337
27337
  var _messagesByRoomRef_current_roomId, currentMessage;
27338
- return _ts_generator$3(this, function(_state) {
27338
+ return _ts_generator$4(this, function(_state) {
27339
27339
  switch(_state.label){
27340
27340
  case 0:
27341
27341
  return [
@@ -27353,7 +27353,7 @@ function ChatProvider(param) {
27353
27353
  2
27354
27354
  ];
27355
27355
  applyMessagesByRoom(function(current) {
27356
- return upsertMessagesByRoom(current, _object_spread_props$4(_object_spread$5({}, currentMessage), {
27356
+ return upsertMessagesByRoom(current, _object_spread_props$4(_object_spread$6({}, currentMessage), {
27357
27357
  status: 'deleted',
27358
27358
  updatedAt: now().toISOString()
27359
27359
  }));
@@ -27366,9 +27366,9 @@ function ChatProvider(param) {
27366
27366
  })();
27367
27367
  };
27368
27368
  var editMessage = function(roomId, messageId, text) {
27369
- return _async_to_generator$3(function() {
27369
+ return _async_to_generator$4(function() {
27370
27370
  var message;
27371
- return _ts_generator$3(this, function(_state) {
27371
+ return _ts_generator$4(this, function(_state) {
27372
27372
  switch(_state.label){
27373
27373
  case 0:
27374
27374
  return [
@@ -27435,7 +27435,7 @@ var upsertMessage = function(messages, message) {
27435
27435
  };
27436
27436
  var upsertMessagesByRoom = function(messagesByRoom, message) {
27437
27437
  var _messagesByRoom_message_roomId;
27438
- return _object_spread_props$4(_object_spread$5({}, messagesByRoom), _define_property$5({}, message.roomId, upsertMessage((_messagesByRoom_message_roomId = messagesByRoom[message.roomId]) !== null && _messagesByRoom_message_roomId !== void 0 ? _messagesByRoom_message_roomId : [], message)));
27438
+ return _object_spread_props$4(_object_spread$6({}, messagesByRoom), _define_property$6({}, message.roomId, upsertMessage((_messagesByRoom_message_roomId = messagesByRoom[message.roomId]) !== null && _messagesByRoom_message_roomId !== void 0 ? _messagesByRoom_message_roomId : [], message)));
27439
27439
  };
27440
27440
  var mergeMessages = function(incoming, current) {
27441
27441
  var messagesById = new Map(current.map(function(message) {
@@ -27487,7 +27487,7 @@ function _array_like_to_array$5(arr, len) {
27487
27487
  function _array_with_holes$5(arr) {
27488
27488
  if (Array.isArray(arr)) return arr;
27489
27489
  }
27490
- function _define_property$4(obj, key, value) {
27490
+ function _define_property$5(obj, key, value) {
27491
27491
  if (key in obj) {
27492
27492
  Object.defineProperty(obj, key, {
27493
27493
  value: value,
@@ -27527,7 +27527,7 @@ function _iterable_to_array_limit$5(arr, i) {
27527
27527
  function _non_iterable_rest$5() {
27528
27528
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
27529
27529
  }
27530
- function _object_spread$4(target) {
27530
+ function _object_spread$5(target) {
27531
27531
  for(var i = 1; i < arguments.length; i++){
27532
27532
  var source = arguments[i] != null ? arguments[i] : {};
27533
27533
  var ownKeys = Object.keys(source);
@@ -27537,7 +27537,7 @@ function _object_spread$4(target) {
27537
27537
  }));
27538
27538
  }
27539
27539
  ownKeys.forEach(function(key) {
27540
- _define_property$4(target, key, source[key]);
27540
+ _define_property$5(target, key, source[key]);
27541
27541
  });
27542
27542
  }
27543
27543
  return target;
@@ -27627,42 +27627,314 @@ function RoomPlatformFitMediaFrame(param) {
27627
27627
  'relative h-auto w-full max-h-full max-w-full overflow-hidden rounded-lg',
27628
27628
  className
27629
27629
  ].filter(Boolean).join(' '),
27630
- style: _object_spread$4({
27630
+ style: _object_spread$5({
27631
27631
  aspectRatio: aspectRatio
27632
27632
  }, frameSize),
27633
27633
  children: children
27634
27634
  });
27635
27635
  }
27636
27636
 
27637
+ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
27638
+ try {
27639
+ var info = gen[key](arg);
27640
+ var value = info.value;
27641
+ } catch (error) {
27642
+ reject(error);
27643
+ return;
27644
+ }
27645
+ if (info.done) {
27646
+ resolve(value);
27647
+ } else {
27648
+ Promise.resolve(value).then(_next, _throw);
27649
+ }
27650
+ }
27651
+ function _async_to_generator$3(fn) {
27652
+ return function() {
27653
+ var self = this, args = arguments;
27654
+ return new Promise(function(resolve, reject) {
27655
+ var gen = fn.apply(self, args);
27656
+ function _next(value) {
27657
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
27658
+ }
27659
+ function _throw(err) {
27660
+ asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
27661
+ }
27662
+ _next(undefined);
27663
+ });
27664
+ };
27665
+ }
27666
+ function _define_property$4(obj, key, value) {
27667
+ if (key in obj) {
27668
+ Object.defineProperty(obj, key, {
27669
+ value: value,
27670
+ enumerable: true,
27671
+ configurable: true,
27672
+ writable: true
27673
+ });
27674
+ } else {
27675
+ obj[key] = value;
27676
+ }
27677
+ return obj;
27678
+ }
27679
+ function _object_spread$4(target) {
27680
+ for(var i = 1; i < arguments.length; i++){
27681
+ var source = arguments[i] != null ? arguments[i] : {};
27682
+ var ownKeys = Object.keys(source);
27683
+ if (typeof Object.getOwnPropertySymbols === "function") {
27684
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
27685
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
27686
+ }));
27687
+ }
27688
+ ownKeys.forEach(function(key) {
27689
+ _define_property$4(target, key, source[key]);
27690
+ });
27691
+ }
27692
+ return target;
27693
+ }
27694
+ function _ts_generator$3(thisArg, body) {
27695
+ var f, y, t, _ = {
27696
+ label: 0,
27697
+ sent: function() {
27698
+ if (t[0] & 1) throw t[1];
27699
+ return t[1];
27700
+ },
27701
+ trys: [],
27702
+ ops: []
27703
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
27704
+ return d(g, "next", {
27705
+ value: verb(0)
27706
+ }), d(g, "throw", {
27707
+ value: verb(1)
27708
+ }), d(g, "return", {
27709
+ value: verb(2)
27710
+ }), typeof Symbol === "function" && d(g, Symbol.iterator, {
27711
+ value: function() {
27712
+ return this;
27713
+ }
27714
+ }), g;
27715
+ function verb(n) {
27716
+ return function(v) {
27717
+ return step([
27718
+ n,
27719
+ v
27720
+ ]);
27721
+ };
27722
+ }
27723
+ function step(op) {
27724
+ if (f) throw new TypeError("Generator is already executing.");
27725
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
27726
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
27727
+ if (y = 0, t) op = [
27728
+ op[0] & 2,
27729
+ t.value
27730
+ ];
27731
+ switch(op[0]){
27732
+ case 0:
27733
+ case 1:
27734
+ t = op;
27735
+ break;
27736
+ case 4:
27737
+ _.label++;
27738
+ return {
27739
+ value: op[1],
27740
+ done: false
27741
+ };
27742
+ case 5:
27743
+ _.label++;
27744
+ y = op[1];
27745
+ op = [
27746
+ 0
27747
+ ];
27748
+ continue;
27749
+ case 7:
27750
+ op = _.ops.pop();
27751
+ _.trys.pop();
27752
+ continue;
27753
+ default:
27754
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
27755
+ _ = 0;
27756
+ continue;
27757
+ }
27758
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
27759
+ _.label = op[1];
27760
+ break;
27761
+ }
27762
+ if (op[0] === 6 && _.label < t[1]) {
27763
+ _.label = t[1];
27764
+ t = op;
27765
+ break;
27766
+ }
27767
+ if (t && _.label < t[2]) {
27768
+ _.label = t[2];
27769
+ _.ops.push(op);
27770
+ break;
27771
+ }
27772
+ if (t[2]) _.ops.pop();
27773
+ _.trys.pop();
27774
+ continue;
27775
+ }
27776
+ op = body.call(thisArg, _);
27777
+ } catch (e) {
27778
+ op = [
27779
+ 6,
27780
+ e
27781
+ ];
27782
+ y = 0;
27783
+ } finally{
27784
+ f = t = 0;
27785
+ }
27786
+ if (op[0] & 5) throw op[1];
27787
+ return {
27788
+ value: op[0] ? op[1] : void 0,
27789
+ done: true
27790
+ };
27791
+ }
27792
+ }
27637
27793
  var toneClassNames = {
27638
27794
  info: 'room-platform-private-room-status-banner--info',
27639
27795
  warning: 'room-platform-private-room-status-banner--warning',
27640
27796
  success: 'room-platform-private-room-status-banner--success'
27641
27797
  };
27642
- function RoomPlatformPrivateRoomStatusBanner(param) {
27798
+ function RoomPlatformPrivateRoomStatusBannerContent(param) {
27643
27799
  var message = param.message, detail = param.detail, _param_status = param.status, status = _param_status === void 0 ? 'active' : _param_status, _param_tone = param.tone, tone = _param_tone === void 0 ? 'info' : _param_tone;
27644
- if (!message) return null;
27645
- return /*#__PURE__*/ jsxs("div", {
27646
- role: "status",
27647
- className: "room-platform-private-room-status-banner ".concat(toneClassNames[tone]),
27800
+ return /*#__PURE__*/ jsx(Fragment, {
27801
+ children: /*#__PURE__*/ jsxs("div", {
27802
+ role: "status",
27803
+ className: "room-platform-private-room-status-banner ".concat(toneClassNames[tone]),
27804
+ children: [
27805
+ status === 'pending' ? /*#__PURE__*/ jsx(Spinner, {
27806
+ "aria-hidden": "true",
27807
+ role: "presentation",
27808
+ className: "room-platform-private-room-status-banner__spinner"
27809
+ }) : null,
27810
+ /*#__PURE__*/ jsxs("div", {
27811
+ className: "room-platform-private-room-status-banner__content",
27812
+ children: [
27813
+ /*#__PURE__*/ jsx("p", {
27814
+ className: "room-platform-private-room-status-banner__message",
27815
+ children: message
27816
+ }),
27817
+ detail ? /*#__PURE__*/ jsx("p", {
27818
+ className: "room-platform-private-room-status-banner__detail",
27819
+ children: detail
27820
+ }) : null
27821
+ ]
27822
+ })
27823
+ ]
27824
+ })
27825
+ });
27826
+ }
27827
+ function RoomPlatformPrivateRoomStatusBanner() {
27828
+ var privateRoomState = useRoomPlatformPrivateRoom();
27829
+ var isActionPending = useRoomPlatform().isActionPending;
27830
+ var acceptPending = Boolean(privateRoomState.privateRoom && isActionPending(RoomPlatformAction.PRIVATE_ROOM_RESPOND, {
27831
+ decision: 'accept',
27832
+ privateRoomId: privateRoomState.privateRoom.id
27833
+ }));
27834
+ var declinePending = Boolean(privateRoomState.privateRoom && isActionPending(RoomPlatformAction.PRIVATE_ROOM_RESPOND, {
27835
+ decision: 'decline',
27836
+ privateRoomId: privateRoomState.privateRoom.id
27837
+ }));
27838
+ var pending = acceptPending || declinePending || privateRoomState.isAcceptingPrivateRoom;
27839
+ var roomPlatformToast = useRoomPlatformToast();
27840
+ return /*#__PURE__*/ jsxs(Fragment, {
27648
27841
  children: [
27649
- status === 'pending' ? /*#__PURE__*/ jsx(Spinner, {
27650
- "aria-hidden": "true",
27651
- role: "presentation",
27652
- className: "room-platform-private-room-status-banner__spinner"
27653
- }) : null,
27654
- /*#__PURE__*/ jsxs("div", {
27655
- className: "room-platform-private-room-status-banner__content",
27656
- children: [
27657
- /*#__PURE__*/ jsx("p", {
27658
- className: "room-platform-private-room-status-banner__message",
27659
- children: message
27660
- }),
27661
- detail ? /*#__PURE__*/ jsx("p", {
27662
- className: "room-platform-private-room-status-banner__detail",
27663
- children: detail
27664
- }) : null
27665
- ]
27842
+ privateRoomState.privateRoomStatusBanner && !privateRoomState.canMountPrivateRoom ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBannerContent, _object_spread$4({}, privateRoomState.privateRoomStatusBanner)) : null,
27843
+ /*#__PURE__*/ jsx(AlertDialog, {
27844
+ open: privateRoomState.hasIncomingPrivateRoom,
27845
+ children: /*#__PURE__*/ jsxs(AlertDialogContent, {
27846
+ className: "rounded-lg",
27847
+ children: [
27848
+ /*#__PURE__*/ jsxs(AlertDialogHeader, {
27849
+ children: [
27850
+ /*#__PURE__*/ jsx(AlertDialogTitle, {
27851
+ children: "Cuộc gọi ri\xeang đang chờ bạn"
27852
+ }),
27853
+ /*#__PURE__*/ jsx(AlertDialogDescription, {
27854
+ children: "Gi\xe1o vi\xean hoặc trợ giảng đang mời bạn v\xe0o ph\xf2ng trao đổi ri\xeang."
27855
+ }),
27856
+ privateRoomState.isAcceptingPrivateRoom ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBannerContent, {
27857
+ message: "Đang v\xe0o ph\xf2ng ri\xeang...",
27858
+ status: "pending",
27859
+ tone: "info"
27860
+ }) : null
27861
+ ]
27862
+ }),
27863
+ /*#__PURE__*/ jsxs(AlertDialogFooter, {
27864
+ children: [
27865
+ /*#__PURE__*/ jsxs(AlertDialogCancel, {
27866
+ disabled: pending,
27867
+ onClick: function() {
27868
+ return void privateRoomState.declinePrivateRoom().catch(function() {
27869
+ roomPlatformToast.error('Không thể từ chối phòng riêng. Vui lòng thử lại.');
27870
+ });
27871
+ },
27872
+ children: [
27873
+ declinePending ? /*#__PURE__*/ jsx(Spinner, {
27874
+ "aria-hidden": "true",
27875
+ role: "presentation"
27876
+ }) : null,
27877
+ "Từ chối"
27878
+ ]
27879
+ }),
27880
+ /*#__PURE__*/ jsxs(AlertDialogAction, {
27881
+ disabled: pending,
27882
+ onClick: function() {
27883
+ return _async_to_generator$3(function() {
27884
+ return _ts_generator$3(this, function(_state) {
27885
+ switch(_state.label){
27886
+ case 0:
27887
+ privateRoomState.setIsAcceptingPrivateRoom(true);
27888
+ _state.label = 1;
27889
+ case 1:
27890
+ _state.trys.push([
27891
+ 1,
27892
+ 3,
27893
+ 4,
27894
+ 5
27895
+ ]);
27896
+ return [
27897
+ 4,
27898
+ privateRoomState.acceptPrivateRoom()
27899
+ ];
27900
+ case 2:
27901
+ _state.sent();
27902
+ return [
27903
+ 3,
27904
+ 5
27905
+ ];
27906
+ case 3:
27907
+ _state.sent();
27908
+ roomPlatformToast.error('Không thể vào phòng riêng. Vui lòng thử lại.');
27909
+ return [
27910
+ 3,
27911
+ 5
27912
+ ];
27913
+ case 4:
27914
+ privateRoomState.setIsAcceptingPrivateRoom(false);
27915
+ return [
27916
+ 7
27917
+ ];
27918
+ case 5:
27919
+ return [
27920
+ 2
27921
+ ];
27922
+ }
27923
+ });
27924
+ })();
27925
+ },
27926
+ children: [
27927
+ privateRoomState.isAcceptingPrivateRoom ? /*#__PURE__*/ jsx(Spinner, {
27928
+ "aria-hidden": "true",
27929
+ role: "presentation"
27930
+ }) : null,
27931
+ "V\xe0o ph\xf2ng ri\xeang"
27932
+ ]
27933
+ })
27934
+ ]
27935
+ })
27936
+ ]
27937
+ })
27666
27938
  })
27667
27939
  ]
27668
27940
  });
@@ -27821,6 +28093,7 @@ function RoomPlatformShell(param) {
27821
28093
  "data-sizing": sizing,
27822
28094
  className: "flex ".concat(sizingClassName, " min-w-0 flex-col overflow-hidden bg-slate-950 text-white"),
27823
28095
  children: [
28096
+ /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBanner, {}),
27824
28097
  /*#__PURE__*/ jsx("div", {
27825
28098
  className: isMobileFullscreen ? 'hidden md:block' : undefined,
27826
28099
  children: topBar
@@ -28202,7 +28475,7 @@ function RoomPlatformPrivateRoomStage(param) {
28202
28475
  mainPanel: mainPanel,
28203
28476
  sidebar: sidebar,
28204
28477
  sizing: "container",
28205
- topBar: topBar !== null && topBar !== void 0 ? topBar : /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBanner, {
28478
+ topBar: topBar !== null && topBar !== void 0 ? topBar : /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBannerContent, {
28206
28479
  message: "Đang ở ph\xf2ng ri\xeang",
28207
28480
  tone: "success"
28208
28481
  })
@@ -28390,7 +28663,7 @@ function RoomPlatformPrivateRoomOverlay(_0) {
28390
28663
  "statusSlot"
28391
28664
  ]);
28392
28665
  var portalContainer = usePortalContainer();
28393
- var topBar = statusSlot !== null && statusSlot !== void 0 ? statusSlot : roomStatusBanner ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBanner, _object_spread$1({}, roomStatusBanner)) : undefined;
28666
+ var topBar = statusSlot !== null && statusSlot !== void 0 ? statusSlot : roomStatusBanner ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBannerContent, _object_spread$1({}, roomStatusBanner)) : undefined;
28394
28667
  var overlay = /*#__PURE__*/ jsx("div", {
28395
28668
  "data-testid": "private-live-room-overlay",
28396
28669
  className: "fixed inset-0 z-50 flex flex-col bg-slate-950",
@@ -30084,19 +30357,9 @@ var RoomPlatformWorkspace = function(props) {
30084
30357
  function RoomPlatformPrivateRoomRuntime(param) {
30085
30358
  var children = param.children;
30086
30359
  var privateRoomState = useRoomPlatformPrivateRoom();
30087
- var _useRoomPlatform = useRoomPlatform(), access = _useRoomPlatform.access, isActionPending = _useRoomPlatform.isActionPending;
30360
+ var access = useRoomPlatform().access;
30088
30361
  var integrations = useRoomPlatformIntegrations().integrations;
30089
30362
  var refreshControlState = useRoomPlatformPrivateRoomContext().refreshControlState;
30090
- var acceptPending = Boolean(privateRoomState.privateRoom && isActionPending(RoomPlatformAction.PRIVATE_ROOM_RESPOND, {
30091
- decision: 'accept',
30092
- privateRoomId: privateRoomState.privateRoom.id
30093
- }));
30094
- var declinePending = Boolean(privateRoomState.privateRoom && isActionPending(RoomPlatformAction.PRIVATE_ROOM_RESPOND, {
30095
- decision: 'decline',
30096
- privateRoomId: privateRoomState.privateRoom.id
30097
- }));
30098
- var pending = acceptPending || declinePending || privateRoomState.isAcceptingPrivateRoom;
30099
- var roomPlatformToast = useRoomPlatformToast();
30100
30363
  var whiteboardProviderProps = useMemo(function() {
30101
30364
  return integrations && access ? toWhiteboardProviderProps(integrations.whiteboard, access.roomId) : null;
30102
30365
  }, [
@@ -30106,104 +30369,7 @@ function RoomPlatformPrivateRoomRuntime(param) {
30106
30369
  var whiteboardAuth = whiteboardProviderProps === null || whiteboardProviderProps === void 0 ? void 0 : whiteboardProviderProps.auth;
30107
30370
  return /*#__PURE__*/ jsxs(Fragment, {
30108
30371
  children: [
30109
- privateRoomState.privateRoomStatusBanner && !privateRoomState.canMountPrivateRoom ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBanner, _object_spread({}, privateRoomState.privateRoomStatusBanner)) : null,
30110
30372
  children,
30111
- /*#__PURE__*/ jsx(AlertDialog, {
30112
- open: privateRoomState.hasIncomingPrivateRoom,
30113
- children: /*#__PURE__*/ jsxs(AlertDialogContent, {
30114
- className: "rounded-lg",
30115
- children: [
30116
- /*#__PURE__*/ jsxs(AlertDialogHeader, {
30117
- children: [
30118
- /*#__PURE__*/ jsx(AlertDialogTitle, {
30119
- children: "Cuộc gọi ri\xeang đang chờ bạn"
30120
- }),
30121
- /*#__PURE__*/ jsx(AlertDialogDescription, {
30122
- children: "Gi\xe1o vi\xean hoặc trợ giảng đang mời bạn v\xe0o ph\xf2ng trao đổi ri\xeang."
30123
- }),
30124
- privateRoomState.isAcceptingPrivateRoom ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomStatusBanner, {
30125
- message: "Đang v\xe0o ph\xf2ng ri\xeang...",
30126
- status: "pending",
30127
- tone: "info"
30128
- }) : null
30129
- ]
30130
- }),
30131
- /*#__PURE__*/ jsxs(AlertDialogFooter, {
30132
- children: [
30133
- /*#__PURE__*/ jsxs(AlertDialogCancel, {
30134
- disabled: pending,
30135
- onClick: function() {
30136
- return void privateRoomState.declinePrivateRoom().catch(function() {
30137
- roomPlatformToast.error('Không thể từ chối phòng riêng. Vui lòng thử lại.');
30138
- });
30139
- },
30140
- children: [
30141
- declinePending ? /*#__PURE__*/ jsx(Spinner, {
30142
- "aria-hidden": "true",
30143
- role: "presentation"
30144
- }) : null,
30145
- "Từ chối"
30146
- ]
30147
- }),
30148
- /*#__PURE__*/ jsxs(AlertDialogAction, {
30149
- disabled: pending,
30150
- onClick: function() {
30151
- return _async_to_generator(function() {
30152
- return _ts_generator(this, function(_state) {
30153
- switch(_state.label){
30154
- case 0:
30155
- privateRoomState.setIsAcceptingPrivateRoom(true);
30156
- _state.label = 1;
30157
- case 1:
30158
- _state.trys.push([
30159
- 1,
30160
- 3,
30161
- 4,
30162
- 5
30163
- ]);
30164
- return [
30165
- 4,
30166
- privateRoomState.acceptPrivateRoom()
30167
- ];
30168
- case 2:
30169
- _state.sent();
30170
- return [
30171
- 3,
30172
- 5
30173
- ];
30174
- case 3:
30175
- _state.sent();
30176
- roomPlatformToast.error('Không thể vào phòng riêng. Vui lòng thử lại.');
30177
- return [
30178
- 3,
30179
- 5
30180
- ];
30181
- case 4:
30182
- privateRoomState.setIsAcceptingPrivateRoom(false);
30183
- return [
30184
- 7
30185
- ];
30186
- case 5:
30187
- return [
30188
- 2
30189
- ];
30190
- }
30191
- });
30192
- })();
30193
- },
30194
- children: [
30195
- privateRoomState.isAcceptingPrivateRoom ? /*#__PURE__*/ jsx(Spinner, {
30196
- "aria-hidden": "true",
30197
- role: "presentation"
30198
- }) : null,
30199
- "V\xe0o ph\xf2ng ri\xeang"
30200
- ]
30201
- })
30202
- ]
30203
- })
30204
- ]
30205
- })
30206
- }),
30207
30373
  privateRoomState.canMountPrivateRoom && privateRoomState.privateRoom && privateRoomState.privateRoomConnection && privateRoomState.actorExternalId ? /*#__PURE__*/ jsx(RoomPlatformPrivateRoomConnection, {
30208
30374
  state: privateRoomState.privateRoom,
30209
30375
  connection: privateRoomState.privateRoomConnection,
@@ -30286,4 +30452,4 @@ function RoomPlatformVideoTracks(param) {
30286
30452
  });
30287
30453
  }
30288
30454
 
30289
- export { RoomActionButton, RoomParticipantActions, RoomParticipantList, RoomParticipantTab, RoomPlatformActiveSpeaker, RoomPlatformControlAnchor, RoomPlatformControlBar, RoomPlatformCurrentOperationStrip, RoomPlatformExtensionZone, RoomPlatformGatewayErrorCode, RoomPlatformLocalPreview, RoomPlatformControlBar as RoomPlatformMediaControls, RoomPlatformMediaRuntime, RoomPlatformMonitorSidebarVideoTile, RoomPlatformMonitorStage, RoomPlatformMonitorVideoTile, RoomPlatformPrivateRoomConnection, RoomPlatformPrivateRoomControlBar, RoomPlatformPrivateRoomExperience, RoomPlatformPrivateRoomOverlay, RoomPlatformPrivateRoomStage, RoomPlatformPrivateRoomStatusBanner, RoomPlatformProvider, RoomPlatformRoom, RoomPlatformRuntimeErrorCode, RoomPlatformShell, RoomPlatformSpeakQueue, RoomPlatformTopBar, RoomPlatformVideoTile, RoomPlatformVideoTracks, getParticipantTabTitle, getRoomPlatformPrivateRoomStatusBanner, monitorCameraVideoClassName, useRoomPlatform, useRoomPlatformMonitorViewer, useRoomPlatformPrivateRoom, useRoomPlatformPrivateRoomControlActions, useRoomPlatformPrivateRoomPendingState, useRoomPresence };
30455
+ export { RoomActionButton, RoomParticipantActions, RoomParticipantList, RoomParticipantTab, RoomPlatformActiveSpeaker, RoomPlatformControlAnchor, RoomPlatformControlBar, RoomPlatformCurrentOperationStrip, RoomPlatformExtensionZone, RoomPlatformGatewayErrorCode, RoomPlatformLocalPreview, RoomPlatformControlBar as RoomPlatformMediaControls, RoomPlatformMediaRuntime, RoomPlatformMonitorSidebarVideoTile, RoomPlatformMonitorStage, RoomPlatformMonitorVideoTile, RoomPlatformPrivateRoomConnection, RoomPlatformPrivateRoomControlBar, RoomPlatformPrivateRoomExperience, RoomPlatformPrivateRoomOverlay, RoomPlatformPrivateRoomStage, RoomPlatformPrivateRoomStatusBanner, RoomPlatformPrivateRoomStatusBannerContent, RoomPlatformProvider, RoomPlatformRoom, RoomPlatformRuntimeErrorCode, RoomPlatformShell, RoomPlatformSpeakQueue, RoomPlatformTopBar, RoomPlatformVideoTile, RoomPlatformVideoTracks, getParticipantTabTitle, getRoomPlatformPrivateRoomStatusBanner, monitorCameraVideoClassName, useRoomPlatform, useRoomPlatformMonitorViewer, useRoomPlatformPrivateRoom, useRoomPlatformPrivateRoomControlActions, useRoomPlatformPrivateRoomPendingState, useRoomPresence };