@webex/widgets 1.25.4 → 1.26.0

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.
@@ -4,13 +4,13 @@ import Webex from 'webex';
4
4
  import require$$2, { createPortal } from 'react-dom';
5
5
  import { deconstructHydraId, constructHydraId, SDK_EVENT } from '@webex/common';
6
6
 
7
- function _classCallCheck$1(instance, Constructor) {
7
+ function _classCallCheck(instance, Constructor) {
8
8
  if (!(instance instanceof Constructor)) {
9
9
  throw new TypeError("Cannot call a class as a function");
10
10
  }
11
11
  }
12
12
 
13
- function _defineProperties$1(target, props) {
13
+ function _defineProperties(target, props) {
14
14
  for (var i = 0; i < props.length; i++) {
15
15
  var descriptor = props[i];
16
16
  descriptor.enumerable = descriptor.enumerable || false;
@@ -20,22 +20,22 @@ function _defineProperties$1(target, props) {
20
20
  }
21
21
  }
22
22
 
23
- function _createClass$1(Constructor, protoProps, staticProps) {
24
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
25
- if (staticProps) _defineProperties$1(Constructor, staticProps);
23
+ function _createClass(Constructor, protoProps, staticProps) {
24
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
25
+ if (staticProps) _defineProperties(Constructor, staticProps);
26
26
  return Constructor;
27
27
  }
28
28
 
29
- function _setPrototypeOf$1(o, p) {
30
- _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
29
+ function _setPrototypeOf(o, p) {
30
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
31
31
  o.__proto__ = p;
32
32
  return o;
33
33
  };
34
34
 
35
- return _setPrototypeOf$1(o, p);
35
+ return _setPrototypeOf(o, p);
36
36
  }
37
37
 
38
- function _inherits$1(subClass, superClass) {
38
+ function _inherits(subClass, superClass) {
39
39
  if (typeof superClass !== "function" && superClass !== null) {
40
40
  throw new TypeError("Super expression must either be null or a function");
41
41
  }
@@ -47,26 +47,26 @@ function _inherits$1(subClass, superClass) {
47
47
  configurable: true
48
48
  }
49
49
  });
50
- if (superClass) _setPrototypeOf$1(subClass, superClass);
50
+ if (superClass) _setPrototypeOf(subClass, superClass);
51
51
  }
52
52
 
53
- function _typeof$2(obj) {
53
+ function _typeof(obj) {
54
54
  "@babel/helpers - typeof";
55
55
 
56
56
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
57
- _typeof$2 = function _typeof(obj) {
57
+ _typeof = function _typeof(obj) {
58
58
  return typeof obj;
59
59
  };
60
60
  } else {
61
- _typeof$2 = function _typeof(obj) {
61
+ _typeof = function _typeof(obj) {
62
62
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
63
63
  };
64
64
  }
65
65
 
66
- return _typeof$2(obj);
66
+ return _typeof(obj);
67
67
  }
68
68
 
69
- function _assertThisInitialized$1(self) {
69
+ function _assertThisInitialized(self) {
70
70
  if (self === void 0) {
71
71
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
72
72
  }
@@ -74,19 +74,19 @@ function _assertThisInitialized$1(self) {
74
74
  return self;
75
75
  }
76
76
 
77
- function _possibleConstructorReturn$1(self, call) {
78
- if (call && (_typeof$2(call) === "object" || typeof call === "function")) {
77
+ function _possibleConstructorReturn(self, call) {
78
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
79
79
  return call;
80
80
  }
81
81
 
82
- return _assertThisInitialized$1(self);
82
+ return _assertThisInitialized(self);
83
83
  }
84
84
 
85
- function _getPrototypeOf$1(o) {
86
- _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
85
+ function _getPrototypeOf(o) {
86
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
87
87
  return o.__proto__ || Object.getPrototypeOf(o);
88
88
  };
89
- return _getPrototypeOf$1(o);
89
+ return _getPrototypeOf(o);
90
90
  }
91
91
 
92
92
  /*! *****************************************************************************
@@ -2898,7 +2898,7 @@ var FilterSubscriber = /*@__PURE__*/function (_super) {
2898
2898
  return FilterSubscriber;
2899
2899
  }(Subscriber);
2900
2900
 
2901
- function _defineProperty$2(obj, key, value) {
2901
+ function _defineProperty$1(obj, key, value) {
2902
2902
  if (key in obj) {
2903
2903
  Object.defineProperty(obj, key, {
2904
2904
  value: value,
@@ -4268,7 +4268,7 @@ var TapSubscriber = /*@__PURE__*/function (_super) {
4268
4268
  return TapSubscriber;
4269
4269
  }(Subscriber);
4270
4270
 
4271
- function _arrayLikeToArray$1(arr, len) {
4271
+ function _arrayLikeToArray(arr, len) {
4272
4272
  if (len == null || len > arr.length) len = arr.length;
4273
4273
 
4274
4274
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
@@ -4279,20 +4279,20 @@ function _arrayLikeToArray$1(arr, len) {
4279
4279
  }
4280
4280
 
4281
4281
  function _arrayWithoutHoles(arr) {
4282
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
4282
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
4283
4283
  }
4284
4284
 
4285
4285
  function _iterableToArray(iter) {
4286
4286
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4287
4287
  }
4288
4288
 
4289
- function _unsupportedIterableToArray$1(o, minLen) {
4289
+ function _unsupportedIterableToArray(o, minLen) {
4290
4290
  if (!o) return;
4291
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
4291
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
4292
4292
  var n = Object.prototype.toString.call(o).slice(8, -1);
4293
4293
  if (n === "Object" && o.constructor) n = o.constructor.name;
4294
4294
  if (n === "Map" || n === "Set") return Array.from(o);
4295
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
4295
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
4296
4296
  }
4297
4297
 
4298
4298
  function _nonIterableSpread() {
@@ -4300,14 +4300,14 @@ function _nonIterableSpread() {
4300
4300
  }
4301
4301
 
4302
4302
  function _toConsumableArray(arr) {
4303
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread();
4303
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4304
4304
  }
4305
4305
 
4306
- function _arrayWithHoles$1(arr) {
4306
+ function _arrayWithHoles(arr) {
4307
4307
  if (Array.isArray(arr)) return arr;
4308
4308
  }
4309
4309
 
4310
- function _iterableToArrayLimit$1(arr, i) {
4310
+ function _iterableToArrayLimit(arr, i) {
4311
4311
  var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
4312
4312
 
4313
4313
  if (_i == null) return;
@@ -4337,12 +4337,12 @@ function _iterableToArrayLimit$1(arr, i) {
4337
4337
  return _arr;
4338
4338
  }
4339
4339
 
4340
- function _nonIterableRest$1() {
4340
+ function _nonIterableRest() {
4341
4341
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4342
4342
  }
4343
4343
 
4344
- function _slicedToArray$1(arr, i) {
4345
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
4344
+ function _slicedToArray(arr, i) {
4345
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
4346
4346
  }
4347
4347
 
4348
4348
  function _extends() {
@@ -4443,7 +4443,7 @@ function findInArray(array
4443
4443
  )
4444
4444
  /*: any*/
4445
4445
  {
4446
- for (var i = 0, length = array.length; i < length; i++) {
4446
+ for (let i = 0, length = array.length; i < length; i++) {
4447
4447
  if (callback.apply(callback, [array[i], i, array])) return array[i];
4448
4448
  }
4449
4449
  }
@@ -4496,14 +4496,14 @@ getPrefix$1.browserPrefixToKey = browserPrefixToKey;
4496
4496
  getPrefix$1.browserPrefixToStyle = browserPrefixToStyle;
4497
4497
  getPrefix$1.default = void 0;
4498
4498
  getPrefix$1.getPrefix = getPrefix;
4499
- var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
4499
+ const prefixes = ['Moz', 'Webkit', 'O', 'ms'];
4500
4500
 
4501
4501
  function getPrefix()
4502
4502
  /*: string*/
4503
4503
  {
4504
- var _window$document, _window$document$docu;
4504
+ var _window$document;
4505
4505
 
4506
- var prop
4506
+ let prop
4507
4507
  /*: string*/
4508
4508
  = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'transform'; // Ensure we're running in an environment where there is actually a global
4509
4509
  // `window` obj
@@ -4511,11 +4511,11 @@ function getPrefix()
4511
4511
  if (typeof window === 'undefined') return ''; // If we're in a pseudo-browser server-side environment, this access
4512
4512
  // path may not exist, so bail out if it doesn't.
4513
4513
 
4514
- var style = (_window$document = window.document) === null || _window$document === void 0 ? void 0 : (_window$document$docu = _window$document.documentElement) === null || _window$document$docu === void 0 ? void 0 : _window$document$docu.style;
4514
+ const style = (_window$document = window.document) === null || _window$document === void 0 || (_window$document = _window$document.documentElement) === null || _window$document === void 0 ? void 0 : _window$document.style;
4515
4515
  if (!style) return '';
4516
4516
  if (prop in style) return '';
4517
4517
 
4518
- for (var i = 0; i < prefixes.length; i++) {
4518
+ for (let i = 0; i < prefixes.length; i++) {
4519
4519
  if (browserPrefixToKey(prop, prefixes[i]) in style) return prefixes[i];
4520
4520
  }
4521
4521
 
@@ -4547,10 +4547,10 @@ function kebabToTitleCase(str
4547
4547
  )
4548
4548
  /*: string*/
4549
4549
  {
4550
- var out = '';
4551
- var shouldCapitalize = true;
4550
+ let out = '';
4551
+ let shouldCapitalize = true;
4552
4552
 
4553
- for (var i = 0; i < str.length; i++) {
4553
+ for (let i = 0; i < str.length; i++) {
4554
4554
  if (shouldCapitalize) {
4555
4555
  out += str[i].toUpperCase();
4556
4556
  shouldCapitalize = false;
@@ -4567,22 +4567,10 @@ function kebabToTitleCase(str
4567
4567
  // can handle unprefixed `transform`, but not unprefixed `user-select`
4568
4568
 
4569
4569
 
4570
- var _default = getPrefix()
4570
+ getPrefix$1.default = getPrefix()
4571
4571
  /*: string*/
4572
4572
  ;
4573
4573
 
4574
- getPrefix$1.default = _default;
4575
-
4576
- function _typeof$1(obj) {
4577
- "@babel/helpers - typeof";
4578
-
4579
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
4580
- return typeof obj;
4581
- } : function (obj) {
4582
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
4583
- }, _typeof$1(obj);
4584
- }
4585
-
4586
4574
  Object.defineProperty(domFns, "__esModule", {
4587
4575
  value: true
4588
4576
  });
@@ -4612,7 +4600,7 @@ function _getRequireWildcardCache$1(nodeInterop) {
4612
4600
  if (typeof WeakMap !== "function") return null;
4613
4601
  var cacheBabelInterop = new WeakMap();
4614
4602
  var cacheNodeInterop = new WeakMap();
4615
- return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) {
4603
+ return (_getRequireWildcardCache$1 = function (nodeInterop) {
4616
4604
  return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
4617
4605
  })(nodeInterop);
4618
4606
  }
@@ -4622,7 +4610,7 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
4622
4610
  return obj;
4623
4611
  }
4624
4612
 
4625
- if (obj === null || _typeof$1(obj) !== "object" && typeof obj !== "function") {
4613
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
4626
4614
  return {
4627
4615
  default: obj
4628
4616
  };
@@ -4657,49 +4645,10 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
4657
4645
 
4658
4646
  return newObj;
4659
4647
  }
4648
+ /*:: import type {ControlPosition, PositionOffsetControlPosition, MouseTouchEvent} from './types';*/
4660
4649
 
4661
- function ownKeys(object, enumerableOnly) {
4662
- var keys = Object.keys(object);
4663
4650
 
4664
- if (Object.getOwnPropertySymbols) {
4665
- var symbols = Object.getOwnPropertySymbols(object);
4666
- enumerableOnly && (symbols = symbols.filter(function (sym) {
4667
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
4668
- })), keys.push.apply(keys, symbols);
4669
- }
4670
-
4671
- return keys;
4672
- }
4673
-
4674
- function _objectSpread(target) {
4675
- for (var i = 1; i < arguments.length; i++) {
4676
- var source = null != arguments[i] ? arguments[i] : {};
4677
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
4678
- _defineProperty$1(target, key, source[key]);
4679
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
4680
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4681
- });
4682
- }
4683
-
4684
- return target;
4685
- }
4686
-
4687
- function _defineProperty$1(obj, key, value) {
4688
- if (key in obj) {
4689
- Object.defineProperty(obj, key, {
4690
- value: value,
4691
- enumerable: true,
4692
- configurable: true,
4693
- writable: true
4694
- });
4695
- } else {
4696
- obj[key] = value;
4697
- }
4698
-
4699
- return obj;
4700
- }
4701
-
4702
- var matchesSelectorFunc = '';
4651
+ let matchesSelectorFunc = '';
4703
4652
 
4704
4653
  function matchesSelector(el
4705
4654
  /*: Node*/
@@ -4732,11 +4681,12 @@ function matchesSelectorAndParentsTo(el
4732
4681
  )
4733
4682
  /*: boolean*/
4734
4683
  {
4735
- var node = el;
4684
+ let node = el;
4736
4685
 
4737
4686
  do {
4738
4687
  if (matchesSelector(node, selector)) return true;
4739
- if (node === baseNode) return false;
4688
+ if (node === baseNode) return false; // $FlowIgnore[incompatible-type]
4689
+
4740
4690
  node = node.parentNode;
4741
4691
  } while (node);
4742
4692
 
@@ -4755,11 +4705,10 @@ function addEvent(el
4755
4705
  /*: void*/
4756
4706
  {
4757
4707
  if (!el) return;
4758
-
4759
- var options = _objectSpread({
4760
- capture: true
4761
- }, inputOptions); // $FlowIgnore[method-unbinding]
4762
-
4708
+ const options = {
4709
+ capture: true,
4710
+ ...inputOptions
4711
+ }; // $FlowIgnore[method-unbinding]
4763
4712
 
4764
4713
  if (el.addEventListener) {
4765
4714
  el.addEventListener(event, handler, options);
@@ -4783,11 +4732,10 @@ function removeEvent(el
4783
4732
  /*: void*/
4784
4733
  {
4785
4734
  if (!el) return;
4786
-
4787
- var options = _objectSpread({
4788
- capture: true
4789
- }, inputOptions); // $FlowIgnore[method-unbinding]
4790
-
4735
+ const options = {
4736
+ capture: true,
4737
+ ...inputOptions
4738
+ }; // $FlowIgnore[method-unbinding]
4791
4739
 
4792
4740
  if (el.removeEventListener) {
4793
4741
  el.removeEventListener(event, handler, options);
@@ -4806,8 +4754,8 @@ function outerHeight(node
4806
4754
  {
4807
4755
  // This is deliberately excluding margin for our calculations, since we are using
4808
4756
  // offsetTop which is including margin. See getBoundPosition
4809
- var height = node.clientHeight;
4810
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4757
+ let height = node.clientHeight;
4758
+ const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4811
4759
  height += (0, _shims$2.int)(computedStyle.borderTopWidth);
4812
4760
  height += (0, _shims$2.int)(computedStyle.borderBottomWidth);
4813
4761
  return height;
@@ -4820,8 +4768,8 @@ function outerWidth(node
4820
4768
  {
4821
4769
  // This is deliberately excluding margin for our calculations, since we are using
4822
4770
  // offsetLeft which is including margin. See getBoundPosition
4823
- var width = node.clientWidth;
4824
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4771
+ let width = node.clientWidth;
4772
+ const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4825
4773
  width += (0, _shims$2.int)(computedStyle.borderLeftWidth);
4826
4774
  width += (0, _shims$2.int)(computedStyle.borderRightWidth);
4827
4775
  return width;
@@ -4832,8 +4780,8 @@ function innerHeight(node
4832
4780
  )
4833
4781
  /*: number*/
4834
4782
  {
4835
- var height = node.clientHeight;
4836
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4783
+ let height = node.clientHeight;
4784
+ const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4837
4785
  height -= (0, _shims$2.int)(computedStyle.paddingTop);
4838
4786
  height -= (0, _shims$2.int)(computedStyle.paddingBottom);
4839
4787
  return height;
@@ -4844,8 +4792,8 @@ function innerWidth(node
4844
4792
  )
4845
4793
  /*: number*/
4846
4794
  {
4847
- var width = node.clientWidth;
4848
- var computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4795
+ let width = node.clientWidth;
4796
+ const computedStyle = node.ownerDocument.defaultView.getComputedStyle(node);
4849
4797
  width -= (0, _shims$2.int)(computedStyle.paddingLeft);
4850
4798
  width -= (0, _shims$2.int)(computedStyle.paddingRight);
4851
4799
  return width;
@@ -4865,16 +4813,16 @@ function offsetXYFromParent(evt
4865
4813
  )
4866
4814
  /*: ControlPosition*/
4867
4815
  {
4868
- var isBody = offsetParent === offsetParent.ownerDocument.body;
4869
- var offsetParentRect = isBody ? {
4816
+ const isBody = offsetParent === offsetParent.ownerDocument.body;
4817
+ const offsetParentRect = isBody ? {
4870
4818
  left: 0,
4871
4819
  top: 0
4872
4820
  } : offsetParent.getBoundingClientRect();
4873
- var x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;
4874
- var y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;
4821
+ const x = (evt.clientX + offsetParent.scrollLeft - offsetParentRect.left) / scale;
4822
+ const y = (evt.clientY + offsetParent.scrollTop - offsetParentRect.top) / scale;
4875
4823
  return {
4876
- x: x,
4877
- y: y
4824
+ x,
4825
+ y
4878
4826
  };
4879
4827
  }
4880
4828
 
@@ -4885,8 +4833,10 @@ function createCSSTransform(controlPos
4885
4833
  )
4886
4834
  /*: Object*/
4887
4835
  {
4888
- var translation = getTranslation(controlPos, positionOffset, 'px');
4889
- return _defineProperty$1({}, (0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default), translation);
4836
+ const translation = getTranslation(controlPos, positionOffset, 'px');
4837
+ return {
4838
+ [(0, _getPrefix.browserPrefixToKey)('transform', _getPrefix.default)]: translation
4839
+ };
4890
4840
  }
4891
4841
 
4892
4842
  function createSVGTransform(controlPos
@@ -4896,24 +4846,32 @@ function createSVGTransform(controlPos
4896
4846
  )
4897
4847
  /*: string*/
4898
4848
  {
4899
- var translation = getTranslation(controlPos, positionOffset, '');
4849
+ const translation = getTranslation(controlPos, positionOffset, '');
4900
4850
  return translation;
4901
4851
  }
4902
4852
 
4903
- function getTranslation(_ref2, positionOffset
4853
+ function getTranslation(_ref
4854
+ /*:: */
4855
+ , positionOffset
4904
4856
  /*: PositionOffsetControlPosition*/
4905
4857
  , unitSuffix
4906
4858
  /*: string*/
4907
4859
  )
4908
4860
  /*: string*/
4909
4861
  {
4910
- var x = _ref2.x,
4911
- y = _ref2.y;
4912
- var translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
4862
+ let {
4863
+ x,
4864
+ y
4865
+ }
4866
+ /*: ControlPosition*/
4867
+ = _ref
4868
+ /*: ControlPosition*/
4869
+ ;
4870
+ let translation = "translate(".concat(x).concat(unitSuffix, ",").concat(y).concat(unitSuffix, ")");
4913
4871
 
4914
4872
  if (positionOffset) {
4915
- var defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);
4916
- var defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);
4873
+ const defaultX = "".concat(typeof positionOffset.x === 'string' ? positionOffset.x : positionOffset.x + unitSuffix);
4874
+ const defaultY = "".concat(typeof positionOffset.y === 'string' ? positionOffset.y : positionOffset.y + unitSuffix);
4917
4875
  translation = "translate(".concat(defaultX, ", ").concat(defaultY, ")") + translation;
4918
4876
  }
4919
4877
 
@@ -4927,11 +4885,7 @@ function getTouch(e
4927
4885
  )
4928
4886
  /*: ?{clientX: number, clientY: number}*/
4929
4887
  {
4930
- return e.targetTouches && (0, _shims$2.findInArray)(e.targetTouches, function (t) {
4931
- return identifier === t.identifier;
4932
- }) || e.changedTouches && (0, _shims$2.findInArray)(e.changedTouches, function (t) {
4933
- return identifier === t.identifier;
4934
- });
4888
+ return e.targetTouches && (0, _shims$2.findInArray)(e.targetTouches, t => identifier === t.identifier) || e.changedTouches && (0, _shims$2.findInArray)(e.changedTouches, t => identifier === t.identifier);
4935
4889
  }
4936
4890
 
4937
4891
  function getTouchIdentifier(e
@@ -4951,7 +4905,7 @@ function addUserSelectStyles(doc
4951
4905
  /*: ?Document*/
4952
4906
  ) {
4953
4907
  if (!doc) return;
4954
- var styleEl = doc.getElementById('react-draggable-style-el');
4908
+ let styleEl = doc.getElementById('react-draggable-style-el');
4955
4909
 
4956
4910
  if (!styleEl) {
4957
4911
  styleEl = doc.createElement('style');
@@ -4979,7 +4933,7 @@ function removeUserSelectStyles(doc
4979
4933
  } else {
4980
4934
  // Remove selection caused by scroll, unless it's a focused input
4981
4935
  // (we use doc.defaultView in case we're in an iframe)
4982
- var selection = (doc.defaultView || window).getSelection();
4936
+ const selection = (doc.defaultView || window).getSelection();
4983
4937
 
4984
4938
  if (selection && selection.type !== 'Caret') {
4985
4939
  selection.removeAllRanges();
@@ -5029,6 +4983,11 @@ positionFns.getControlPosition = getControlPosition;
5029
4983
  positionFns.snapToGrid = snapToGrid;
5030
4984
  var _shims$1 = shims;
5031
4985
  var _domFns$1 = domFns;
4986
+ /*:: import type Draggable from '../Draggable';*/
4987
+
4988
+ /*:: import type {Bounds, ControlPosition, DraggableData, MouseTouchEvent} from './types';*/
4989
+
4990
+ /*:: import type DraggableCore from '../DraggableCore';*/
5032
4991
 
5033
4992
  function getBoundPosition(draggable
5034
4993
  /*: Draggable*/
@@ -5042,14 +5001,18 @@ function getBoundPosition(draggable
5042
5001
  // If no bounds, short-circuit and move on
5043
5002
  if (!draggable.props.bounds) return [x, y]; // Clone new bounds
5044
5003
 
5045
- var bounds = draggable.props.bounds;
5004
+ let {
5005
+ bounds
5006
+ } = draggable.props;
5046
5007
  bounds = typeof bounds === 'string' ? bounds : cloneBounds(bounds);
5047
- var node = findDOMNode(draggable);
5008
+ const node = findDOMNode(draggable);
5048
5009
 
5049
5010
  if (typeof bounds === 'string') {
5050
- var ownerDocument = node.ownerDocument;
5051
- var ownerWindow = ownerDocument.defaultView;
5052
- var boundNode;
5011
+ const {
5012
+ ownerDocument
5013
+ } = node;
5014
+ const ownerWindow = ownerDocument.defaultView;
5015
+ let boundNode;
5053
5016
 
5054
5017
  if (bounds === 'parent') {
5055
5018
  boundNode = node.parentNode;
@@ -5061,12 +5024,12 @@ function getBoundPosition(draggable
5061
5024
  throw new Error('Bounds selector "' + bounds + '" could not find an element.');
5062
5025
  }
5063
5026
 
5064
- var boundNodeEl
5027
+ const boundNodeEl
5065
5028
  /*: HTMLElement*/
5066
5029
  = boundNode; // for Flow, can't seem to refine correctly
5067
5030
 
5068
- var nodeStyle = ownerWindow.getComputedStyle(node);
5069
- var boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.
5031
+ const nodeStyle = ownerWindow.getComputedStyle(node);
5032
+ const boundNodeStyle = ownerWindow.getComputedStyle(boundNodeEl); // Compute bounds. This is a pain with padding and offsets but this gets it exactly right.
5070
5033
 
5071
5034
  bounds = {
5072
5035
  left: -node.offsetLeft + (0, _shims$1.int)(boundNodeStyle.paddingLeft) + (0, _shims$1.int)(nodeStyle.marginLeft),
@@ -5094,8 +5057,8 @@ function snapToGrid(grid
5094
5057
  )
5095
5058
  /*: [number, number]*/
5096
5059
  {
5097
- var x = Math.round(pendingX / grid[0]) * grid[0];
5098
- var y = Math.round(pendingY / grid[1]) * grid[1];
5060
+ const x = Math.round(pendingX / grid[0]) * grid[0];
5061
+ const y = Math.round(pendingY / grid[1]) * grid[1];
5099
5062
  return [x, y];
5100
5063
  }
5101
5064
 
@@ -5125,12 +5088,12 @@ function getControlPosition(e
5125
5088
  )
5126
5089
  /*: ?ControlPosition*/
5127
5090
  {
5128
- var touchObj = typeof touchIdentifier === 'number' ? (0, _domFns$1.getTouch)(e, touchIdentifier) : null;
5091
+ const touchObj = typeof touchIdentifier === 'number' ? (0, _domFns$1.getTouch)(e, touchIdentifier) : null;
5129
5092
  if (typeof touchIdentifier === 'number' && !touchObj) return null; // not the right touch
5130
5093
 
5131
- var node = findDOMNode(draggableCore); // User can provide an offsetParent if desired.
5094
+ const node = findDOMNode(draggableCore); // User can provide an offsetParent if desired.
5132
5095
 
5133
- var offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
5096
+ const offsetParent = draggableCore.props.offsetParent || node.offsetParent || node.ownerDocument.body;
5134
5097
  return (0, _domFns$1.offsetXYFromParent)(touchObj || e, offsetParent, draggableCore.props.scale);
5135
5098
  } // Create an data object exposed by <DraggableCore>'s events
5136
5099
 
@@ -5144,31 +5107,30 @@ function createCoreData(draggable
5144
5107
  )
5145
5108
  /*: DraggableData*/
5146
5109
  {
5147
- var state = draggable.state;
5148
- var isStart = !(0, _shims$1.isNum)(state.lastX);
5149
- var node = findDOMNode(draggable);
5110
+ const isStart = !(0, _shims$1.isNum)(draggable.lastX);
5111
+ const node = findDOMNode(draggable);
5150
5112
 
5151
5113
  if (isStart) {
5152
5114
  // If this is our first move, use the x and y as last coords.
5153
5115
  return {
5154
- node: node,
5116
+ node,
5155
5117
  deltaX: 0,
5156
5118
  deltaY: 0,
5157
5119
  lastX: x,
5158
5120
  lastY: y,
5159
- x: x,
5160
- y: y
5121
+ x,
5122
+ y
5161
5123
  };
5162
5124
  } else {
5163
5125
  // Otherwise calculate proper values.
5164
5126
  return {
5165
- node: node,
5166
- deltaX: x - state.lastX,
5167
- deltaY: y - state.lastY,
5168
- lastX: state.lastX,
5169
- lastY: state.lastY,
5170
- x: x,
5171
- y: y
5127
+ node,
5128
+ deltaX: x - draggable.lastX,
5129
+ deltaY: y - draggable.lastY,
5130
+ lastX: draggable.lastX,
5131
+ lastY: draggable.lastY,
5132
+ x,
5133
+ y
5172
5134
  };
5173
5135
  }
5174
5136
  } // Create an data exposed by <Draggable>'s events
@@ -5181,7 +5143,7 @@ function createDraggableData(draggable
5181
5143
  )
5182
5144
  /*: DraggableData*/
5183
5145
  {
5184
- var scale = draggable.props.scale;
5146
+ const scale = draggable.props.scale;
5185
5147
  return {
5186
5148
  node: coreData.node,
5187
5149
  x: draggable.state.x + coreData.deltaX / scale,
@@ -5212,7 +5174,7 @@ function findDOMNode(draggable
5212
5174
  )
5213
5175
  /*: HTMLElement*/
5214
5176
  {
5215
- var node = draggable.findDOMNode();
5177
+ const node = draggable.findDOMNode();
5216
5178
 
5217
5179
  if (!node) {
5218
5180
  throw new Error('<DraggableCore>: Unmounted during event!');
@@ -5237,16 +5199,6 @@ log$1.default = log;
5237
5199
  function log() {
5238
5200
  }
5239
5201
 
5240
- function _typeof(obj) {
5241
- "@babel/helpers - typeof";
5242
-
5243
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
5244
- return typeof obj;
5245
- } : function (obj) {
5246
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
5247
- }, _typeof(obj);
5248
- }
5249
-
5250
5202
  Object.defineProperty(DraggableCore$2, "__esModule", {
5251
5203
  value: true
5252
5204
  });
@@ -5275,7 +5227,7 @@ function _getRequireWildcardCache(nodeInterop) {
5275
5227
  if (typeof WeakMap !== "function") return null;
5276
5228
  var cacheBabelInterop = new WeakMap();
5277
5229
  var cacheNodeInterop = new WeakMap();
5278
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
5230
+ return (_getRequireWildcardCache = function (nodeInterop) {
5279
5231
  return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
5280
5232
  })(nodeInterop);
5281
5233
  }
@@ -5285,7 +5237,7 @@ function _interopRequireWildcard(obj, nodeInterop) {
5285
5237
  return obj;
5286
5238
  }
5287
5239
 
5288
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
5240
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
5289
5241
  return {
5290
5242
  default: obj
5291
5243
  };
@@ -5321,177 +5273,9 @@ function _interopRequireWildcard(obj, nodeInterop) {
5321
5273
  return newObj;
5322
5274
  }
5323
5275
 
5324
- function _slicedToArray(arr, i) {
5325
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
5326
- }
5327
-
5328
- function _nonIterableRest() {
5329
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5330
- }
5331
-
5332
- function _unsupportedIterableToArray(o, minLen) {
5333
- if (!o) return;
5334
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
5335
- var n = Object.prototype.toString.call(o).slice(8, -1);
5336
- if (n === "Object" && o.constructor) n = o.constructor.name;
5337
- if (n === "Map" || n === "Set") return Array.from(o);
5338
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
5339
- }
5340
-
5341
- function _arrayLikeToArray(arr, len) {
5342
- if (len == null || len > arr.length) len = arr.length;
5343
-
5344
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
5345
- arr2[i] = arr[i];
5346
- }
5347
-
5348
- return arr2;
5349
- }
5350
-
5351
- function _iterableToArrayLimit(arr, i) {
5352
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
5353
-
5354
- if (_i == null) return;
5355
- var _arr = [];
5356
- var _n = true;
5357
- var _d = false;
5358
-
5359
- var _s, _e;
5360
-
5361
- try {
5362
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
5363
- _arr.push(_s.value);
5364
-
5365
- if (i && _arr.length === i) break;
5366
- }
5367
- } catch (err) {
5368
- _d = true;
5369
- _e = err;
5370
- } finally {
5371
- try {
5372
- if (!_n && _i["return"] != null) _i["return"]();
5373
- } finally {
5374
- if (_d) throw _e;
5375
- }
5376
- }
5377
-
5378
- return _arr;
5379
- }
5380
-
5381
- function _arrayWithHoles(arr) {
5382
- if (Array.isArray(arr)) return arr;
5383
- }
5384
-
5385
- function _classCallCheck(instance, Constructor) {
5386
- if (!(instance instanceof Constructor)) {
5387
- throw new TypeError("Cannot call a class as a function");
5388
- }
5389
- }
5390
-
5391
- function _defineProperties(target, props) {
5392
- for (var i = 0; i < props.length; i++) {
5393
- var descriptor = props[i];
5394
- descriptor.enumerable = descriptor.enumerable || false;
5395
- descriptor.configurable = true;
5396
- if ("value" in descriptor) descriptor.writable = true;
5397
- Object.defineProperty(target, descriptor.key, descriptor);
5398
- }
5399
- }
5400
-
5401
- function _createClass(Constructor, protoProps, staticProps) {
5402
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5403
- if (staticProps) _defineProperties(Constructor, staticProps);
5404
- Object.defineProperty(Constructor, "prototype", {
5405
- writable: false
5406
- });
5407
- return Constructor;
5408
- }
5409
-
5410
- function _inherits(subClass, superClass) {
5411
- if (typeof superClass !== "function" && superClass !== null) {
5412
- throw new TypeError("Super expression must either be null or a function");
5413
- }
5414
-
5415
- subClass.prototype = Object.create(superClass && superClass.prototype, {
5416
- constructor: {
5417
- value: subClass,
5418
- writable: true,
5419
- configurable: true
5420
- }
5421
- });
5422
- Object.defineProperty(subClass, "prototype", {
5423
- writable: false
5424
- });
5425
- if (superClass) _setPrototypeOf(subClass, superClass);
5426
- }
5427
-
5428
- function _setPrototypeOf(o, p) {
5429
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
5430
- o.__proto__ = p;
5431
- return o;
5432
- };
5433
-
5434
- return _setPrototypeOf(o, p);
5435
- }
5436
-
5437
- function _createSuper$1(Derived) {
5438
- var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
5439
-
5440
- return function _createSuperInternal() {
5441
- var Super = _getPrototypeOf(Derived),
5442
- result;
5443
-
5444
- if (hasNativeReflectConstruct) {
5445
- var NewTarget = _getPrototypeOf(this).constructor;
5446
-
5447
- result = Reflect.construct(Super, arguments, NewTarget);
5448
- } else {
5449
- result = Super.apply(this, arguments);
5450
- }
5451
-
5452
- return _possibleConstructorReturn(this, result);
5453
- };
5454
- }
5455
-
5456
- function _possibleConstructorReturn(self, call) {
5457
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
5458
- return call;
5459
- } else if (call !== void 0) {
5460
- throw new TypeError("Derived constructors may only return object or undefined");
5461
- }
5462
-
5463
- return _assertThisInitialized(self);
5464
- }
5465
-
5466
- function _assertThisInitialized(self) {
5467
- if (self === void 0) {
5468
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5469
- }
5470
-
5471
- return self;
5472
- }
5473
-
5474
- function _isNativeReflectConstruct$1() {
5475
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
5476
- if (Reflect.construct.sham) return false;
5477
- if (typeof Proxy === "function") return true;
5478
-
5479
- try {
5480
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
5481
- return true;
5482
- } catch (e) {
5483
- return false;
5484
- }
5485
- }
5486
-
5487
- function _getPrototypeOf(o) {
5488
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5489
- return o.__proto__ || Object.getPrototypeOf(o);
5490
- };
5491
- return _getPrototypeOf(o);
5492
- }
5493
-
5494
5276
  function _defineProperty(obj, key, value) {
5277
+ key = _toPropertyKey(key);
5278
+
5495
5279
  if (key in obj) {
5496
5280
  Object.defineProperty(obj, key, {
5497
5281
  value: value,
@@ -5504,10 +5288,33 @@ function _defineProperty(obj, key, value) {
5504
5288
  }
5505
5289
 
5506
5290
  return obj;
5507
- } // Simple abstraction for dragging events names.
5291
+ }
5292
+
5293
+ function _toPropertyKey(arg) {
5294
+ var key = _toPrimitive$1(arg, "string");
5295
+
5296
+ return typeof key === "symbol" ? key : String(key);
5297
+ }
5298
+
5299
+ function _toPrimitive$1(input, hint) {
5300
+ if (typeof input !== "object" || input === null) return input;
5301
+ var prim = input[Symbol.toPrimitive];
5508
5302
 
5303
+ if (prim !== undefined) {
5304
+ var res = prim.call(input, hint || "default");
5305
+ if (typeof res !== "object") return res;
5306
+ throw new TypeError("@@toPrimitive must return a primitive value.");
5307
+ }
5308
+
5309
+ return (hint === "string" ? String : Number)(input);
5310
+ }
5311
+ /*:: import type {EventHandler, MouseTouchEvent} from './utils/types';*/
5509
5312
 
5510
- var eventsFor = {
5313
+ /*:: import type {Element as ReactElement} from 'react';*/
5314
+ // Simple abstraction for dragging events names.
5315
+
5316
+
5317
+ const eventsFor = {
5511
5318
  touch: {
5512
5319
  start: 'touchstart',
5513
5320
  move: 'touchmove',
@@ -5520,14 +5327,7 @@ var eventsFor = {
5520
5327
  }
5521
5328
  }; // Default to mouse events.
5522
5329
 
5523
- var dragEventFor = eventsFor.mouse;
5524
- /*:: type DraggableCoreState = {
5525
- dragging: boolean,
5526
- lastX: number,
5527
- lastY: number,
5528
- touchIdentifier: ?number
5529
- };*/
5530
-
5330
+ let dragEventFor = eventsFor.mouse;
5531
5331
  /*:: export type DraggableData = {
5532
5332
  node: HTMLElement,
5533
5333
  x: number, y: number,
@@ -5568,48 +5368,40 @@ var dragEventFor = eventsFor.mouse;
5568
5368
  // work well with libraries that require more control over the element.
5569
5369
  //
5570
5370
 
5571
- var DraggableCore$1 = /*#__PURE__*/function (_React$Component) {
5572
- _inherits(DraggableCore, _React$Component);
5573
-
5574
- var _super = _createSuper$1(DraggableCore);
5371
+ class DraggableCore$1 extends React.Component
5372
+ /*:: <DraggableCoreProps>*/
5373
+ {
5374
+ constructor() {
5375
+ super(...arguments);
5575
5376
 
5576
- function DraggableCore() {
5577
- var _this;
5377
+ _defineProperty(this, "dragging", false); // Used while dragging to determine deltas.
5578
5378
 
5579
- _classCallCheck(this, DraggableCore);
5580
5379
 
5581
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5582
- args[_key] = arguments[_key];
5583
- }
5380
+ _defineProperty(this, "lastX", NaN);
5584
5381
 
5585
- _this = _super.call.apply(_super, [this].concat(args));
5382
+ _defineProperty(this, "lastY", NaN);
5586
5383
 
5587
- _defineProperty(_assertThisInitialized(_this), "state", {
5588
- dragging: false,
5589
- // Used while dragging to determine deltas.
5590
- lastX: NaN,
5591
- lastY: NaN,
5592
- touchIdentifier: null
5593
- });
5384
+ _defineProperty(this, "touchIdentifier", null);
5594
5385
 
5595
- _defineProperty(_assertThisInitialized(_this), "mounted", false);
5386
+ _defineProperty(this, "mounted", false);
5596
5387
 
5597
- _defineProperty(_assertThisInitialized(_this), "handleDragStart", function (e) {
5388
+ _defineProperty(this, "handleDragStart", e => {
5598
5389
  // Make it possible to attach event handlers on top of this one.
5599
- _this.props.onMouseDown(e); // Only accept left-clicks.
5600
-
5390
+ this.props.onMouseDown(e); // Only accept left-clicks.
5601
5391
 
5602
- if (!_this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; // Get nodes. Be sure to grab relative document (could be iframed)
5392
+ if (!this.props.allowAnyClick && typeof e.button === 'number' && e.button !== 0) return false; // Get nodes. Be sure to grab relative document (could be iframed)
5603
5393
 
5604
- var thisNode = _this.findDOMNode();
5394
+ const thisNode = this.findDOMNode();
5605
5395
 
5606
5396
  if (!thisNode || !thisNode.ownerDocument || !thisNode.ownerDocument.body) {
5607
5397
  throw new Error('<DraggableCore> not mounted on DragStart!');
5608
5398
  }
5609
5399
 
5610
- var ownerDocument = thisNode.ownerDocument; // Short circuit if handle or cancel prop was provided and selector doesn't match.
5400
+ const {
5401
+ ownerDocument
5402
+ } = thisNode; // Short circuit if handle or cancel prop was provided and selector doesn't match.
5611
5403
 
5612
- if (_this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || _this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.handle, thisNode) || _this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, _this.props.cancel, thisNode)) {
5404
+ if (this.props.disabled || !(e.target instanceof ownerDocument.defaultView.Node) || this.props.handle && !(0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.handle, thisNode) || this.props.cancel && (0, _domFns.matchesSelectorAndParentsTo)(e.target, this.props.cancel, thisNode)) {
5613
5405
  return;
5614
5406
  } // Prevent scrolling on mobile devices, like ipad/iphone.
5615
5407
  // Important that this is after handle/cancel.
@@ -5619,240 +5411,212 @@ var DraggableCore$1 = /*#__PURE__*/function (_React$Component) {
5619
5411
  // distinguish between individual touches on multitouch screens by identifying which
5620
5412
  // touchpoint was set to this element.
5621
5413
 
5622
- var touchIdentifier = (0, _domFns.getTouchIdentifier)(e);
5623
-
5624
- _this.setState({
5625
- touchIdentifier: touchIdentifier
5626
- }); // Get the current drag point from the event. This is used as the offset.
5414
+ const touchIdentifier = (0, _domFns.getTouchIdentifier)(e);
5415
+ this.touchIdentifier = touchIdentifier; // Get the current drag point from the event. This is used as the offset.
5627
5416
 
5628
-
5629
- var position = (0, _positionFns.getControlPosition)(e, touchIdentifier, _assertThisInitialized(_this));
5417
+ const position = (0, _positionFns.getControlPosition)(e, touchIdentifier, this);
5630
5418
  if (position == null) return; // not possible but satisfies flow
5631
5419
 
5632
- var x = position.x,
5633
- y = position.y; // Create an event object with all the data parents need to make a decision here.
5420
+ const {
5421
+ x,
5422
+ y
5423
+ } = position; // Create an event object with all the data parents need to make a decision here.
5634
5424
 
5635
- var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);
5425
+ const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
5636
5426
  (0, _log.default)('DraggableCore: handleDragStart: %j', coreEvent); // Call event handler. If it returns explicit false, cancel.
5637
5427
 
5638
- (0, _log.default)('calling', _this.props.onStart);
5639
-
5640
- var shouldUpdate = _this.props.onStart(e, coreEvent);
5641
-
5642
- if (shouldUpdate === false || _this.mounted === false) return; // Add a style to the body to disable user-select. This prevents text from
5428
+ (0, _log.default)('calling', this.props.onStart);
5429
+ const shouldUpdate = this.props.onStart(e, coreEvent);
5430
+ if (shouldUpdate === false || this.mounted === false) return; // Add a style to the body to disable user-select. This prevents text from
5643
5431
  // being selected all over the page.
5644
5432
 
5645
- if (_this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument); // Initiate dragging. Set the current x and y as offsets
5433
+ if (this.props.enableUserSelectHack) (0, _domFns.addUserSelectStyles)(ownerDocument); // Initiate dragging. Set the current x and y as offsets
5646
5434
  // so we know how much we've moved during the drag. This allows us
5647
5435
  // to drag elements around even if they have been moved, without issue.
5648
5436
 
5649
- _this.setState({
5650
- dragging: true,
5651
- lastX: x,
5652
- lastY: y
5653
- }); // Add events to the document directly so we catch when the user's mouse/touch moves outside of
5437
+ this.dragging = true;
5438
+ this.lastX = x;
5439
+ this.lastY = y; // Add events to the document directly so we catch when the user's mouse/touch moves outside of
5654
5440
  // this element. We use different events depending on whether or not we have detected that this
5655
5441
  // is a touch-capable device.
5656
5442
 
5657
-
5658
- (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, _this.handleDrag);
5659
- (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, _this.handleDragStop);
5443
+ (0, _domFns.addEvent)(ownerDocument, dragEventFor.move, this.handleDrag);
5444
+ (0, _domFns.addEvent)(ownerDocument, dragEventFor.stop, this.handleDragStop);
5660
5445
  });
5661
5446
 
5662
- _defineProperty(_assertThisInitialized(_this), "handleDrag", function (e) {
5447
+ _defineProperty(this, "handleDrag", e => {
5663
5448
  // Get the current drag point from the event. This is used as the offset.
5664
- var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
5449
+ const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
5665
5450
  if (position == null) return;
5666
- var x = position.x,
5667
- y = position.y; // Snap to grid if prop has been provided
5668
-
5669
- if (Array.isArray(_this.props.grid)) {
5670
- var deltaX = x - _this.state.lastX,
5671
- deltaY = y - _this.state.lastY;
5672
-
5673
- var _snapToGrid = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
5674
-
5675
- var _snapToGrid2 = _slicedToArray(_snapToGrid, 2);
5676
-
5677
- deltaX = _snapToGrid2[0];
5678
- deltaY = _snapToGrid2[1];
5451
+ let {
5452
+ x,
5453
+ y
5454
+ } = position; // Snap to grid if prop has been provided
5455
+
5456
+ if (Array.isArray(this.props.grid)) {
5457
+ let deltaX = x - this.lastX,
5458
+ deltaY = y - this.lastY;
5459
+ [deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);
5679
5460
  if (!deltaX && !deltaY) return; // skip useless drag
5680
5461
 
5681
- x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
5462
+ x = this.lastX + deltaX, y = this.lastY + deltaY;
5682
5463
  }
5683
5464
 
5684
- var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y);
5465
+ const coreEvent = (0, _positionFns.createCoreData)(this, x, y);
5685
5466
  (0, _log.default)('DraggableCore: handleDrag: %j', coreEvent); // Call event handler. If it returns explicit false, trigger end.
5686
5467
 
5687
- var shouldUpdate = _this.props.onDrag(e, coreEvent);
5468
+ const shouldUpdate = this.props.onDrag(e, coreEvent);
5688
5469
 
5689
- if (shouldUpdate === false || _this.mounted === false) {
5470
+ if (shouldUpdate === false || this.mounted === false) {
5690
5471
  try {
5691
5472
  // $FlowIgnore
5692
- _this.handleDragStop(new MouseEvent('mouseup'));
5473
+ this.handleDragStop(new MouseEvent('mouseup'));
5693
5474
  } catch (err) {
5694
5475
  // Old browsers
5695
- var event = document.createEvent('MouseEvents')
5476
+ const event = document.createEvent('MouseEvents')
5696
5477
  /*: any*/
5697
5478
  ; // I see why this insanity was deprecated
5698
5479
  // $FlowIgnore
5699
5480
 
5700
5481
  event.initMouseEvent('mouseup', true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
5701
-
5702
- _this.handleDragStop(event);
5482
+ this.handleDragStop(event);
5703
5483
  }
5704
5484
 
5705
5485
  return;
5706
5486
  }
5707
5487
 
5708
- _this.setState({
5709
- lastX: x,
5710
- lastY: y
5711
- });
5488
+ this.lastX = x;
5489
+ this.lastY = y;
5712
5490
  });
5713
5491
 
5714
- _defineProperty(_assertThisInitialized(_this), "handleDragStop", function (e) {
5715
- if (!_this.state.dragging) return;
5716
- var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
5492
+ _defineProperty(this, "handleDragStop", e => {
5493
+ if (!this.dragging) return;
5494
+ const position = (0, _positionFns.getControlPosition)(e, this.touchIdentifier, this);
5717
5495
  if (position == null) return;
5718
- var x = position.x,
5719
- y = position.y; // Snap to grid if prop has been provided
5720
-
5721
- if (Array.isArray(_this.props.grid)) {
5722
- var deltaX = x - _this.state.lastX || 0;
5723
- var deltaY = y - _this.state.lastY || 0;
5724
-
5725
- var _snapToGrid3 = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
5726
-
5727
- var _snapToGrid4 = _slicedToArray(_snapToGrid3, 2);
5496
+ let {
5497
+ x,
5498
+ y
5499
+ } = position; // Snap to grid if prop has been provided
5728
5500
 
5729
- deltaX = _snapToGrid4[0];
5730
- deltaY = _snapToGrid4[1];
5731
- x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
5501
+ if (Array.isArray(this.props.grid)) {
5502
+ let deltaX = x - this.lastX || 0;
5503
+ let deltaY = y - this.lastY || 0;
5504
+ [deltaX, deltaY] = (0, _positionFns.snapToGrid)(this.props.grid, deltaX, deltaY);
5505
+ x = this.lastX + deltaX, y = this.lastY + deltaY;
5732
5506
  }
5733
5507
 
5734
- var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler
5508
+ const coreEvent = (0, _positionFns.createCoreData)(this, x, y); // Call event handler
5735
5509
 
5736
- var shouldContinue = _this.props.onStop(e, coreEvent);
5737
-
5738
- if (shouldContinue === false || _this.mounted === false) return false;
5739
-
5740
- var thisNode = _this.findDOMNode();
5510
+ const shouldContinue = this.props.onStop(e, coreEvent);
5511
+ if (shouldContinue === false || this.mounted === false) return false;
5512
+ const thisNode = this.findDOMNode();
5741
5513
 
5742
5514
  if (thisNode) {
5743
5515
  // Remove user-select hack
5744
- if (_this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);
5516
+ if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(thisNode.ownerDocument);
5745
5517
  }
5746
5518
 
5747
5519
  (0, _log.default)('DraggableCore: handleDragStop: %j', coreEvent); // Reset the el.
5748
5520
 
5749
- _this.setState({
5750
- dragging: false,
5751
- lastX: NaN,
5752
- lastY: NaN
5753
- });
5521
+ this.dragging = false;
5522
+ this.lastX = NaN;
5523
+ this.lastY = NaN;
5754
5524
 
5755
5525
  if (thisNode) {
5756
5526
  // Remove event handlers
5757
5527
  (0, _log.default)('DraggableCore: Removing handlers');
5758
- (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, _this.handleDrag);
5759
- (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, _this.handleDragStop);
5528
+ (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.move, this.handleDrag);
5529
+ (0, _domFns.removeEvent)(thisNode.ownerDocument, dragEventFor.stop, this.handleDragStop);
5760
5530
  }
5761
5531
  });
5762
5532
 
5763
- _defineProperty(_assertThisInitialized(_this), "onMouseDown", function (e) {
5533
+ _defineProperty(this, "onMouseDown", e => {
5764
5534
  dragEventFor = eventsFor.mouse; // on touchscreen laptops we could switch back to mouse
5765
5535
 
5766
- return _this.handleDragStart(e);
5536
+ return this.handleDragStart(e);
5767
5537
  });
5768
5538
 
5769
- _defineProperty(_assertThisInitialized(_this), "onMouseUp", function (e) {
5539
+ _defineProperty(this, "onMouseUp", e => {
5770
5540
  dragEventFor = eventsFor.mouse;
5771
- return _this.handleDragStop(e);
5772
- });
5541
+ return this.handleDragStop(e);
5542
+ }); // Same as onMouseDown (start drag), but now consider this a touch device.
5773
5543
 
5774
- _defineProperty(_assertThisInitialized(_this), "onTouchStart", function (e) {
5544
+
5545
+ _defineProperty(this, "onTouchStart", e => {
5775
5546
  // We're on a touch device now, so change the event handlers
5776
5547
  dragEventFor = eventsFor.touch;
5777
- return _this.handleDragStart(e);
5548
+ return this.handleDragStart(e);
5778
5549
  });
5779
5550
 
5780
- _defineProperty(_assertThisInitialized(_this), "onTouchEnd", function (e) {
5551
+ _defineProperty(this, "onTouchEnd", e => {
5781
5552
  // We're on a touch device now, so change the event handlers
5782
5553
  dragEventFor = eventsFor.touch;
5783
- return _this.handleDragStop(e);
5554
+ return this.handleDragStop(e);
5784
5555
  });
5785
-
5786
- return _this;
5787
5556
  }
5788
5557
 
5789
- _createClass(DraggableCore, [{
5790
- key: "componentDidMount",
5791
- value: function componentDidMount() {
5792
- this.mounted = true; // Touch handlers must be added with {passive: false} to be cancelable.
5793
- // https://developers.google.com/web/updates/2017/01/scrolling-intervention
5558
+ componentDidMount() {
5559
+ this.mounted = true; // Touch handlers must be added with {passive: false} to be cancelable.
5560
+ // https://developers.google.com/web/updates/2017/01/scrolling-intervention
5794
5561
 
5795
- var thisNode = this.findDOMNode();
5562
+ const thisNode = this.findDOMNode();
5796
5563
 
5797
- if (thisNode) {
5798
- (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
5799
- passive: false
5800
- });
5801
- }
5564
+ if (thisNode) {
5565
+ (0, _domFns.addEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
5566
+ passive: false
5567
+ });
5802
5568
  }
5803
- }, {
5804
- key: "componentWillUnmount",
5805
- value: function componentWillUnmount() {
5806
- this.mounted = false; // Remove any leftover event handlers. Remove both touch and mouse handlers in case
5807
- // some browser quirk caused a touch event to fire during a mouse move, or vice versa.
5569
+ }
5808
5570
 
5809
- var thisNode = this.findDOMNode();
5571
+ componentWillUnmount() {
5572
+ this.mounted = false; // Remove any leftover event handlers. Remove both touch and mouse handlers in case
5573
+ // some browser quirk caused a touch event to fire during a mouse move, or vice versa.
5810
5574
 
5811
- if (thisNode) {
5812
- var ownerDocument = thisNode.ownerDocument;
5813
- (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);
5814
- (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);
5815
- (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);
5816
- (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);
5817
- (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
5818
- passive: false
5819
- });
5820
- if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);
5821
- }
5822
- } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
5823
- // the underlying DOM node ourselves. See the README for more information.
5824
-
5825
- }, {
5826
- key: "findDOMNode",
5827
- value: function findDOMNode()
5828
- /*: ?HTMLElement*/
5829
- {
5830
- var _this$props, _this$props2, _this$props2$nodeRef;
5575
+ const thisNode = this.findDOMNode();
5831
5576
 
5832
- return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$nodeRef = _this$props2.nodeRef) === null || _this$props2$nodeRef === void 0 ? void 0 : _this$props2$nodeRef.current : _reactDom.default.findDOMNode(this);
5833
- }
5834
- }, {
5835
- key: "render",
5836
- value: function render()
5837
- /*: React.Element<any>*/
5838
- {
5839
- // Reuse the child provided
5840
- // This makes it flexible to use whatever element is wanted (div, ul, etc)
5841
- return /*#__PURE__*/React.cloneElement(React.Children.only(this.props.children), {
5842
- // Note: mouseMove handler is attached to document so it will still function
5843
- // when the user drags quickly and leaves the bounds of the element.
5844
- onMouseDown: this.onMouseDown,
5845
- onMouseUp: this.onMouseUp,
5846
- // onTouchStart is added on `componentDidMount` so they can be added with
5847
- // {passive: false}, which allows it to cancel. See
5848
- // https://developers.google.com/web/updates/2017/01/scrolling-intervention
5849
- onTouchEnd: this.onTouchEnd
5577
+ if (thisNode) {
5578
+ const {
5579
+ ownerDocument
5580
+ } = thisNode;
5581
+ (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.move, this.handleDrag);
5582
+ (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.move, this.handleDrag);
5583
+ (0, _domFns.removeEvent)(ownerDocument, eventsFor.mouse.stop, this.handleDragStop);
5584
+ (0, _domFns.removeEvent)(ownerDocument, eventsFor.touch.stop, this.handleDragStop);
5585
+ (0, _domFns.removeEvent)(thisNode, eventsFor.touch.start, this.onTouchStart, {
5586
+ passive: false
5850
5587
  });
5588
+ if (this.props.enableUserSelectHack) (0, _domFns.removeUserSelectStyles)(ownerDocument);
5851
5589
  }
5852
- }]);
5590
+ } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
5591
+ // the underlying DOM node ourselves. See the README for more information.
5592
+
5593
+
5594
+ findDOMNode()
5595
+ /*: ?HTMLElement*/
5596
+ {
5597
+ var _this$props, _this$props2;
5598
+
5599
+ return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 || (_this$props2 = _this$props2.nodeRef) === null || _this$props2 === void 0 ? void 0 : _this$props2.current : _reactDom.default.findDOMNode(this);
5600
+ }
5853
5601
 
5854
- return DraggableCore;
5855
- }(React.Component);
5602
+ render()
5603
+ /*: React.Element<any>*/
5604
+ {
5605
+ // Reuse the child provided
5606
+ // This makes it flexible to use whatever element is wanted (div, ul, etc)
5607
+ return /*#__PURE__*/React.cloneElement(React.Children.only(this.props.children), {
5608
+ // Note: mouseMove handler is attached to document so it will still function
5609
+ // when the user drags quickly and leaves the bounds of the element.
5610
+ onMouseDown: this.onMouseDown,
5611
+ onMouseUp: this.onMouseUp,
5612
+ // onTouchStart is added on `componentDidMount` so they can be added with
5613
+ // {passive: false}, which allows it to cancel. See
5614
+ // https://developers.google.com/web/updates/2017/01/scrolling-intervention
5615
+ onTouchEnd: this.onTouchEnd
5616
+ });
5617
+ }
5618
+
5619
+ }
5856
5620
 
5857
5621
  DraggableCore$2.default = DraggableCore$1;
5858
5622
 
@@ -5866,6 +5630,7 @@ _defineProperty(DraggableCore$1, "propTypes", {
5866
5630
  * Defaults to `false`.
5867
5631
  */
5868
5632
  allowAnyClick: _propTypes.default.bool,
5633
+ children: _propTypes.default.node.isRequired,
5869
5634
 
5870
5635
  /**
5871
5636
  * `disabled`, if true, stops the <Draggable> from dragging. All handlers,
@@ -5884,7 +5649,7 @@ _defineProperty(DraggableCore$1, "propTypes", {
5884
5649
  * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
5885
5650
  * instead of using the parent node.
5886
5651
  */
5887
- offsetParent: function offsetParent(props
5652
+ offsetParent: function (props
5888
5653
  /*: DraggableCoreProps*/
5889
5654
  , propName
5890
5655
  /*: $Keys<DraggableCoreProps>*/
@@ -6004,31 +5769,21 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6004
5769
  // by default only accept left click
6005
5770
  disabled: false,
6006
5771
  enableUserSelectHack: true,
6007
- onStart: function onStart() {},
6008
- onDrag: function onDrag() {},
6009
- onStop: function onStop() {},
6010
- onMouseDown: function onMouseDown() {},
5772
+ onStart: function () {},
5773
+ onDrag: function () {},
5774
+ onStop: function () {},
5775
+ onMouseDown: function () {},
6011
5776
  scale: 1
6012
5777
  });
6013
5778
 
6014
5779
  (function (exports) {
6015
5780
 
6016
- function _typeof(obj) {
6017
- "@babel/helpers - typeof";
6018
-
6019
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6020
- return typeof obj;
6021
- } : function (obj) {
6022
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
6023
- }, _typeof(obj);
6024
- }
6025
-
6026
5781
  Object.defineProperty(exports, "__esModule", {
6027
5782
  value: true
6028
5783
  });
6029
5784
  Object.defineProperty(exports, "DraggableCore", {
6030
5785
  enumerable: true,
6031
- get: function get() {
5786
+ get: function () {
6032
5787
  return _DraggableCore.default;
6033
5788
  }
6034
5789
  });
@@ -6040,7 +5795,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6040
5795
 
6041
5796
  var _reactDom = _interopRequireDefault(require$$2);
6042
5797
 
6043
- var _clsx2 = _interopRequireDefault(require$$3);
5798
+ var _clsx = _interopRequireDefault(require$$3);
6044
5799
 
6045
5800
  var _domFns = domFns;
6046
5801
  var _positionFns = positionFns;
@@ -6050,8 +5805,6 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6050
5805
 
6051
5806
  var _log = _interopRequireDefault(log$1);
6052
5807
 
6053
- var _excluded = ["axis", "bounds", "children", "defaultPosition", "defaultClassName", "defaultClassNameDragging", "defaultClassNameDragged", "position", "positionOffset", "scale"];
6054
-
6055
5808
  function _interopRequireDefault(obj) {
6056
5809
  return obj && obj.__esModule ? obj : {
6057
5810
  default: obj
@@ -6062,7 +5815,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6062
5815
  if (typeof WeakMap !== "function") return null;
6063
5816
  var cacheBabelInterop = new WeakMap();
6064
5817
  var cacheNodeInterop = new WeakMap();
6065
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
5818
+ return (_getRequireWildcardCache = function (nodeInterop) {
6066
5819
  return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
6067
5820
  })(nodeInterop);
6068
5821
  }
@@ -6072,7 +5825,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6072
5825
  return obj;
6073
5826
  }
6074
5827
 
6075
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
5828
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
6076
5829
  return {
6077
5830
  default: obj
6078
5831
  };
@@ -6109,7 +5862,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6109
5862
  }
6110
5863
 
6111
5864
  function _extends() {
6112
- _extends = Object.assign || function (target) {
5865
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
6113
5866
  for (var i = 1; i < arguments.length; i++) {
6114
5867
  var source = arguments[i];
6115
5868
 
@@ -6122,343 +5875,191 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6122
5875
 
6123
5876
  return target;
6124
5877
  };
6125
-
6126
5878
  return _extends.apply(this, arguments);
6127
5879
  }
6128
5880
 
6129
- function _objectWithoutProperties(source, excluded) {
6130
- if (source == null) return {};
6131
-
6132
- var target = _objectWithoutPropertiesLoose(source, excluded);
6133
-
6134
- var key, i;
6135
-
6136
- if (Object.getOwnPropertySymbols) {
6137
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
6138
-
6139
- for (i = 0; i < sourceSymbolKeys.length; i++) {
6140
- key = sourceSymbolKeys[i];
6141
- if (excluded.indexOf(key) >= 0) continue;
6142
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
6143
- target[key] = source[key];
6144
- }
6145
- }
6146
-
6147
- return target;
6148
- }
6149
-
6150
- function _objectWithoutPropertiesLoose(source, excluded) {
6151
- if (source == null) return {};
6152
- var target = {};
6153
- var sourceKeys = Object.keys(source);
6154
- var key, i;
6155
-
6156
- for (i = 0; i < sourceKeys.length; i++) {
6157
- key = sourceKeys[i];
6158
- if (excluded.indexOf(key) >= 0) continue;
6159
- target[key] = source[key];
6160
- }
6161
-
6162
- return target;
6163
- }
6164
-
6165
- function ownKeys(object, enumerableOnly) {
6166
- var keys = Object.keys(object);
6167
-
6168
- if (Object.getOwnPropertySymbols) {
6169
- var symbols = Object.getOwnPropertySymbols(object);
6170
- enumerableOnly && (symbols = symbols.filter(function (sym) {
6171
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6172
- })), keys.push.apply(keys, symbols);
6173
- }
6174
-
6175
- return keys;
6176
- }
5881
+ function _defineProperty(obj, key, value) {
5882
+ key = _toPropertyKey(key);
6177
5883
 
6178
- function _objectSpread(target) {
6179
- for (var i = 1; i < arguments.length; i++) {
6180
- var source = null != arguments[i] ? arguments[i] : {};
6181
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
6182
- _defineProperty(target, key, source[key]);
6183
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
6184
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5884
+ if (key in obj) {
5885
+ Object.defineProperty(obj, key, {
5886
+ value: value,
5887
+ enumerable: true,
5888
+ configurable: true,
5889
+ writable: true
6185
5890
  });
5891
+ } else {
5892
+ obj[key] = value;
6186
5893
  }
6187
5894
 
6188
- return target;
6189
- }
6190
-
6191
- function _slicedToArray(arr, i) {
6192
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
5895
+ return obj;
6193
5896
  }
6194
5897
 
6195
- function _nonIterableRest() {
6196
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6197
- }
5898
+ function _toPropertyKey(arg) {
5899
+ var key = _toPrimitive(arg, "string");
6198
5900
 
6199
- function _unsupportedIterableToArray(o, minLen) {
6200
- if (!o) return;
6201
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
6202
- var n = Object.prototype.toString.call(o).slice(8, -1);
6203
- if (n === "Object" && o.constructor) n = o.constructor.name;
6204
- if (n === "Map" || n === "Set") return Array.from(o);
6205
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
5901
+ return typeof key === "symbol" ? key : String(key);
6206
5902
  }
6207
5903
 
6208
- function _arrayLikeToArray(arr, len) {
6209
- if (len == null || len > arr.length) len = arr.length;
5904
+ function _toPrimitive(input, hint) {
5905
+ if (typeof input !== "object" || input === null) return input;
5906
+ var prim = input[Symbol.toPrimitive];
6210
5907
 
6211
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
6212
- arr2[i] = arr[i];
5908
+ if (prim !== undefined) {
5909
+ var res = prim.call(input, hint || "default");
5910
+ if (typeof res !== "object") return res;
5911
+ throw new TypeError("@@toPrimitive must return a primitive value.");
6213
5912
  }
6214
5913
 
6215
- return arr2;
5914
+ return (hint === "string" ? String : Number)(input);
6216
5915
  }
5916
+ /*:: import type {ControlPosition, PositionOffsetControlPosition, DraggableCoreProps, DraggableCoreDefaultProps} from './DraggableCore';*/
6217
5917
 
6218
- function _iterableToArrayLimit(arr, i) {
6219
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
6220
-
6221
- if (_i == null) return;
6222
- var _arr = [];
6223
- var _n = true;
6224
- var _d = false;
6225
-
6226
- var _s, _e;
6227
-
6228
- try {
6229
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
6230
- _arr.push(_s.value);
6231
-
6232
- if (i && _arr.length === i) break;
6233
- }
6234
- } catch (err) {
6235
- _d = true;
6236
- _e = err;
6237
- } finally {
6238
- try {
6239
- if (!_n && _i["return"] != null) _i["return"]();
6240
- } finally {
6241
- if (_d) throw _e;
6242
- }
6243
- }
6244
-
6245
- return _arr;
6246
- }
5918
+ /*:: import type {Bounds, DraggableEventHandler} from './utils/types';*/
6247
5919
 
6248
- function _arrayWithHoles(arr) {
6249
- if (Array.isArray(arr)) return arr;
6250
- }
5920
+ /*:: import type {Element as ReactElement} from 'react';*/
6251
5921
 
6252
- function _classCallCheck(instance, Constructor) {
6253
- if (!(instance instanceof Constructor)) {
6254
- throw new TypeError("Cannot call a class as a function");
6255
- }
6256
- }
5922
+ /*:: type DraggableState = {
5923
+ dragging: boolean,
5924
+ dragged: boolean,
5925
+ x: number, y: number,
5926
+ slackX: number, slackY: number,
5927
+ isElementSVG: boolean,
5928
+ prevPropsPosition: ?ControlPosition,
5929
+ };*/
6257
5930
 
6258
- function _defineProperties(target, props) {
6259
- for (var i = 0; i < props.length; i++) {
6260
- var descriptor = props[i];
6261
- descriptor.enumerable = descriptor.enumerable || false;
6262
- descriptor.configurable = true;
6263
- if ("value" in descriptor) descriptor.writable = true;
6264
- Object.defineProperty(target, descriptor.key, descriptor);
6265
- }
6266
- }
5931
+ /*:: export type DraggableDefaultProps = {
5932
+ ...DraggableCoreDefaultProps,
5933
+ axis: 'both' | 'x' | 'y' | 'none',
5934
+ bounds: Bounds | string | false,
5935
+ defaultClassName: string,
5936
+ defaultClassNameDragging: string,
5937
+ defaultClassNameDragged: string,
5938
+ defaultPosition: ControlPosition,
5939
+ scale: number,
5940
+ };*/
6267
5941
 
6268
- function _createClass(Constructor, protoProps, staticProps) {
6269
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
6270
- if (staticProps) _defineProperties(Constructor, staticProps);
6271
- Object.defineProperty(Constructor, "prototype", {
6272
- writable: false
6273
- });
6274
- return Constructor;
6275
- }
5942
+ /*:: export type DraggableProps = {
5943
+ ...DraggableCoreProps,
5944
+ ...DraggableDefaultProps,
5945
+ positionOffset: PositionOffsetControlPosition,
5946
+ position: ControlPosition,
5947
+ };*/
5948
+ //
5949
+ // Define <Draggable>
5950
+ //
6276
5951
 
6277
- function _inherits(subClass, superClass) {
6278
- if (typeof superClass !== "function" && superClass !== null) {
6279
- throw new TypeError("Super expression must either be null or a function");
6280
- }
6281
5952
 
6282
- subClass.prototype = Object.create(superClass && superClass.prototype, {
6283
- constructor: {
6284
- value: subClass,
6285
- writable: true,
6286
- configurable: true
5953
+ class Draggable extends React.Component
5954
+ /*:: <DraggableProps, DraggableState>*/
5955
+ {
5956
+ // React 16.3+
5957
+ // Arity (props, state)
5958
+ static getDerivedStateFromProps(_ref
5959
+ /*:: */
5960
+ , _ref2
5961
+ /*:: */
5962
+ )
5963
+ /*: ?Partial<DraggableState>*/
5964
+ {
5965
+ let {
5966
+ position
6287
5967
  }
6288
- });
6289
- Object.defineProperty(subClass, "prototype", {
6290
- writable: false
6291
- });
6292
- if (superClass) _setPrototypeOf(subClass, superClass);
6293
- }
6294
-
6295
- function _setPrototypeOf(o, p) {
6296
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
6297
- o.__proto__ = p;
6298
- return o;
6299
- };
6300
-
6301
- return _setPrototypeOf(o, p);
6302
- }
6303
-
6304
- function _createSuper(Derived) {
6305
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
6306
-
6307
- return function _createSuperInternal() {
6308
- var Super = _getPrototypeOf(Derived),
6309
- result;
6310
-
6311
- if (hasNativeReflectConstruct) {
6312
- var NewTarget = _getPrototypeOf(this).constructor;
6313
-
6314
- result = Reflect.construct(Super, arguments, NewTarget);
6315
- } else {
6316
- result = Super.apply(this, arguments);
5968
+ /*: DraggableProps*/
5969
+ = _ref
5970
+ /*: DraggableProps*/
5971
+ ;
5972
+ let {
5973
+ prevPropsPosition
6317
5974
  }
5975
+ /*: DraggableState*/
5976
+ = _ref2
5977
+ /*: DraggableState*/
5978
+ ; // Set x/y if a new position is provided in props that is different than the previous.
6318
5979
 
6319
- return _possibleConstructorReturn(this, result);
6320
- };
6321
- }
6322
-
6323
- function _possibleConstructorReturn(self, call) {
6324
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
6325
- return call;
6326
- } else if (call !== void 0) {
6327
- throw new TypeError("Derived constructors may only return object or undefined");
6328
- }
6329
-
6330
- return _assertThisInitialized(self);
6331
- }
6332
-
6333
- function _assertThisInitialized(self) {
6334
- if (self === void 0) {
6335
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6336
- }
6337
-
6338
- return self;
6339
- }
6340
-
6341
- function _isNativeReflectConstruct() {
6342
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
6343
- if (Reflect.construct.sham) return false;
6344
- if (typeof Proxy === "function") return true;
6345
-
6346
- try {
6347
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
6348
- return true;
6349
- } catch (e) {
6350
- return false;
6351
- }
6352
- }
6353
-
6354
- function _getPrototypeOf(o) {
6355
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
6356
- return o.__proto__ || Object.getPrototypeOf(o);
6357
- };
6358
- return _getPrototypeOf(o);
6359
- }
5980
+ if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {
5981
+ (0, _log.default)('Draggable: getDerivedStateFromProps %j', {
5982
+ position,
5983
+ prevPropsPosition
5984
+ });
5985
+ return {
5986
+ x: position.x,
5987
+ y: position.y,
5988
+ prevPropsPosition: { ...position
5989
+ }
5990
+ };
5991
+ }
6360
5992
 
6361
- function _defineProperty(obj, key, value) {
6362
- if (key in obj) {
6363
- Object.defineProperty(obj, key, {
6364
- value: value,
6365
- enumerable: true,
6366
- configurable: true,
6367
- writable: true
6368
- });
6369
- } else {
6370
- obj[key] = value;
5993
+ return null;
6371
5994
  }
6372
5995
 
6373
- return obj;
6374
- } //
6375
- // Define <Draggable>
6376
- //
6377
-
6378
-
6379
- var Draggable = /*#__PURE__*/function (_React$Component) {
6380
- _inherits(Draggable, _React$Component);
6381
-
6382
- var _super = _createSuper(Draggable);
6383
-
6384
- function Draggable(props
5996
+ constructor(props
6385
5997
  /*: DraggableProps*/
6386
5998
  ) {
6387
- var _this;
6388
-
6389
- _classCallCheck(this, Draggable);
5999
+ super(props);
6390
6000
 
6391
- _this = _super.call(this, props);
6392
-
6393
- _defineProperty(_assertThisInitialized(_this), "onDragStart", function (e, coreData) {
6001
+ _defineProperty(this, "onDragStart", (e, coreData) => {
6394
6002
  (0, _log.default)('Draggable: onDragStart: %j', coreData); // Short-circuit if user's callback killed it.
6395
6003
 
6396
- var shouldStart = _this.props.onStart(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData)); // Kills start event on core as well, so move handlers are never bound.
6397
-
6004
+ const shouldStart = this.props.onStart(e, (0, _positionFns.createDraggableData)(this, coreData)); // Kills start event on core as well, so move handlers are never bound.
6398
6005
 
6399
6006
  if (shouldStart === false) return false;
6400
-
6401
- _this.setState({
6007
+ this.setState({
6402
6008
  dragging: true,
6403
6009
  dragged: true
6404
6010
  });
6405
6011
  });
6406
6012
 
6407
- _defineProperty(_assertThisInitialized(_this), "onDrag", function (e, coreData) {
6408
- if (!_this.state.dragging) return false;
6013
+ _defineProperty(this, "onDrag", (e, coreData) => {
6014
+ if (!this.state.dragging) return false;
6409
6015
  (0, _log.default)('Draggable: onDrag: %j', coreData);
6410
- var uiData = (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData);
6411
- var newState
6412
- /*: $Shape<DraggableState>*/
6413
- = {
6016
+ const uiData = (0, _positionFns.createDraggableData)(this, coreData);
6017
+ const newState = {
6414
6018
  x: uiData.x,
6415
- y: uiData.y
6019
+ y: uiData.y,
6020
+ slackX: 0,
6021
+ slackY: 0
6416
6022
  }; // Keep within bounds.
6417
6023
 
6418
- if (_this.props.bounds) {
6024
+ if (this.props.bounds) {
6419
6025
  // Save original x and y.
6420
- var x = newState.x,
6421
- y = newState.y; // Add slack to the values used to calculate bound position. This will ensure that if
6026
+ const {
6027
+ x,
6028
+ y
6029
+ } = newState; // Add slack to the values used to calculate bound position. This will ensure that if
6422
6030
  // we start removing slack, the element won't react to it right away until it's been
6423
6031
  // completely removed.
6424
6032
 
6425
- newState.x += _this.state.slackX;
6426
- newState.y += _this.state.slackY; // Get bound position. This will ceil/floor the x and y within the boundaries.
6427
-
6428
- var _getBoundPosition = (0, _positionFns.getBoundPosition)(_assertThisInitialized(_this), newState.x, newState.y),
6429
- _getBoundPosition2 = _slicedToArray(_getBoundPosition, 2),
6430
- newStateX = _getBoundPosition2[0],
6431
- newStateY = _getBoundPosition2[1];
6033
+ newState.x += this.state.slackX;
6034
+ newState.y += this.state.slackY; // Get bound position. This will ceil/floor the x and y within the boundaries.
6432
6035
 
6036
+ const [newStateX, newStateY] = (0, _positionFns.getBoundPosition)(this, newState.x, newState.y);
6433
6037
  newState.x = newStateX;
6434
6038
  newState.y = newStateY; // Recalculate slack by noting how much was shaved by the boundPosition handler.
6435
6039
 
6436
- newState.slackX = _this.state.slackX + (x - newState.x);
6437
- newState.slackY = _this.state.slackY + (y - newState.y); // Update the event we fire to reflect what really happened after bounds took effect.
6040
+ newState.slackX = this.state.slackX + (x - newState.x);
6041
+ newState.slackY = this.state.slackY + (y - newState.y); // Update the event we fire to reflect what really happened after bounds took effect.
6438
6042
 
6439
6043
  uiData.x = newState.x;
6440
6044
  uiData.y = newState.y;
6441
- uiData.deltaX = newState.x - _this.state.x;
6442
- uiData.deltaY = newState.y - _this.state.y;
6045
+ uiData.deltaX = newState.x - this.state.x;
6046
+ uiData.deltaY = newState.y - this.state.y;
6443
6047
  } // Short-circuit if user's callback killed it.
6444
6048
 
6445
6049
 
6446
- var shouldUpdate = _this.props.onDrag(e, uiData);
6447
-
6050
+ const shouldUpdate = this.props.onDrag(e, uiData);
6448
6051
  if (shouldUpdate === false) return false;
6449
-
6450
- _this.setState(newState);
6052
+ this.setState(newState);
6451
6053
  });
6452
6054
 
6453
- _defineProperty(_assertThisInitialized(_this), "onDragStop", function (e, coreData) {
6454
- if (!_this.state.dragging) return false; // Short-circuit if user's callback killed it.
6455
-
6456
- var shouldContinue = _this.props.onStop(e, (0, _positionFns.createDraggableData)(_assertThisInitialized(_this), coreData));
6055
+ _defineProperty(this, "onDragStop", (e, coreData) => {
6056
+ if (!this.state.dragging) return false; // Short-circuit if user's callback killed it.
6457
6057
 
6058
+ const shouldContinue = this.props.onStop(e, (0, _positionFns.createDraggableData)(this, coreData));
6458
6059
  if (shouldContinue === false) return false;
6459
6060
  (0, _log.default)('Draggable: onDragStop: %j', coreData);
6460
- var newState
6461
- /*: $Shape<DraggableState>*/
6061
+ const newState
6062
+ /*: Partial<DraggableState>*/
6462
6063
  = {
6463
6064
  dragging: false,
6464
6065
  slackX: 0,
@@ -6466,20 +6067,21 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6466
6067
  }; // If this is a controlled component, the result of this operation will be to
6467
6068
  // revert back to the old position. We expect a handler on `onDragStop`, at the least.
6468
6069
 
6469
- var controlled = Boolean(_this.props.position);
6070
+ const controlled = Boolean(this.props.position);
6470
6071
 
6471
6072
  if (controlled) {
6472
- var _this$props$position = _this.props.position,
6473
- x = _this$props$position.x,
6474
- y = _this$props$position.y;
6073
+ const {
6074
+ x,
6075
+ y
6076
+ } = this.props.position;
6475
6077
  newState.x = x;
6476
6078
  newState.y = y;
6477
6079
  }
6478
6080
 
6479
- _this.setState(newState);
6081
+ this.setState(newState);
6480
6082
  });
6481
6083
 
6482
- _this.state = {
6084
+ this.state = {
6483
6085
  // Whether or not we are currently dragging.
6484
6086
  dragging: false,
6485
6087
  // Whether or not we have been dragged before.
@@ -6487,7 +6089,8 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6487
6089
  // Current transform x and y.
6488
6090
  x: props.position ? props.position.x : props.defaultPosition.x,
6489
6091
  y: props.position ? props.position.y : props.defaultPosition.y,
6490
- prevPropsPosition: _objectSpread({}, props.position),
6092
+ prevPropsPosition: { ...props.position
6093
+ },
6491
6094
  // Used for compensating for out-of-bounds drags
6492
6095
  slackX: 0,
6493
6096
  slackY: 0,
@@ -6499,129 +6102,101 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6499
6102
  // eslint-disable-next-line no-console
6500
6103
  console.warn('A `position` was applied to this <Draggable>, without drag handlers. This will make this ' + 'component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the ' + '`position` of this element.');
6501
6104
  }
6502
-
6503
- return _this;
6504
6105
  }
6505
6106
 
6506
- _createClass(Draggable, [{
6507
- key: "componentDidMount",
6508
- value: function componentDidMount() {
6509
- // Check to see if the element passed is an instanceof SVGElement
6510
- if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {
6511
- this.setState({
6512
- isElementSVG: true
6513
- });
6514
- }
6515
- }
6516
- }, {
6517
- key: "componentWillUnmount",
6518
- value: function componentWillUnmount() {
6107
+ componentDidMount() {
6108
+ // Check to see if the element passed is an instanceof SVGElement
6109
+ if (typeof window.SVGElement !== 'undefined' && this.findDOMNode() instanceof window.SVGElement) {
6519
6110
  this.setState({
6520
- dragging: false
6521
- }); // prevents invariant if unmounted while dragging
6522
- } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
6523
- // the underlying DOM node ourselves. See the README for more information.
6524
-
6525
- }, {
6526
- key: "findDOMNode",
6527
- value: function findDOMNode()
6528
- /*: ?HTMLElement*/
6529
- {
6530
- var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;
6531
-
6532
- return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$nodeRef = _this$props.nodeRef) === null || _this$props$nodeRef === void 0 ? void 0 : _this$props$nodeRef.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);
6533
- }
6534
- }, {
6535
- key: "render",
6536
- value: function render()
6537
- /*: ReactElement<any>*/
6538
- {
6539
- var _clsx;
6540
-
6541
- var _this$props2 = this.props;
6542
- _this$props2.axis;
6543
- _this$props2.bounds;
6544
- var children = _this$props2.children,
6545
- defaultPosition = _this$props2.defaultPosition,
6546
- defaultClassName = _this$props2.defaultClassName,
6547
- defaultClassNameDragging = _this$props2.defaultClassNameDragging,
6548
- defaultClassNameDragged = _this$props2.defaultClassNameDragged,
6549
- position = _this$props2.position,
6550
- positionOffset = _this$props2.positionOffset;
6551
- _this$props2.scale;
6552
- var draggableCoreProps = _objectWithoutProperties(_this$props2, _excluded);
6553
-
6554
- var style = {};
6555
- var svgTransform = null; // If this is controlled, we don't want to move it - unless it's dragging.
6556
-
6557
- var controlled = Boolean(position);
6558
- var draggable = !controlled || this.state.dragging;
6559
- var validPosition = position || defaultPosition;
6560
- var transformOpts = {
6561
- // Set left if horizontal drag is enabled
6562
- x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,
6563
- // Set top if vertical drag is enabled
6564
- y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y
6565
- }; // If this element was SVG, we use the `transform` attribute.
6566
-
6567
- if (this.state.isElementSVG) {
6568
- svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);
6569
- } else {
6570
- // Add a CSS transform to move the element around. This allows us to move the element around
6571
- // without worrying about whether or not it is relatively or absolutely positioned.
6572
- // If the item you are dragging already has a transform set, wrap it in a <span> so <Draggable>
6573
- // has a clean slate.
6574
- style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);
6575
- } // Mark with class while dragging
6576
-
6577
-
6578
- var className = (0, _clsx2.default)(children.props.className || '', defaultClassName, (_clsx = {}, _defineProperty(_clsx, defaultClassNameDragging, this.state.dragging), _defineProperty(_clsx, defaultClassNameDragged, this.state.dragged), _clsx)); // Reuse the child provided
6579
- // This makes it flexible to use whatever element is wanted (div, ul, etc)
6580
-
6581
- return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {
6582
- onStart: this.onDragStart,
6583
- onDrag: this.onDrag,
6584
- onStop: this.onDragStop
6585
- }), /*#__PURE__*/React.cloneElement(React.Children.only(children), {
6586
- className: className,
6587
- style: _objectSpread(_objectSpread({}, children.props.style), style),
6588
- transform: svgTransform
6589
- }));
6111
+ isElementSVG: true
6112
+ });
6590
6113
  }
6591
- }], [{
6592
- key: "getDerivedStateFromProps",
6593
- value: // React 16.3+
6594
- // Arity (props, state)
6595
- function getDerivedStateFromProps(_ref, _ref2)
6596
- /*: ?$Shape<DraggableState>*/
6597
- {
6598
- var position = _ref.position;
6599
- var prevPropsPosition = _ref2.prevPropsPosition; // Set x/y if a new position is provided in props that is different than the previous.
6600
-
6601
- if (position && (!prevPropsPosition || position.x !== prevPropsPosition.x || position.y !== prevPropsPosition.y)) {
6602
- (0, _log.default)('Draggable: getDerivedStateFromProps %j', {
6603
- position: position,
6604
- prevPropsPosition: prevPropsPosition
6605
- });
6606
- return {
6607
- x: position.x,
6608
- y: position.y,
6609
- prevPropsPosition: _objectSpread({}, position)
6610
- };
6611
- }
6114
+ }
6115
+
6116
+ componentWillUnmount() {
6117
+ this.setState({
6118
+ dragging: false
6119
+ }); // prevents invariant if unmounted while dragging
6120
+ } // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
6121
+ // the underlying DOM node ourselves. See the README for more information.
6612
6122
 
6613
- return null;
6614
- }
6615
- }]);
6616
6123
 
6617
- return Draggable;
6618
- }(React.Component);
6124
+ findDOMNode()
6125
+ /*: ?HTMLElement*/
6126
+ {
6127
+ var _this$props$nodeRef$c, _this$props;
6128
+
6129
+ return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 || (_this$props = _this$props.nodeRef) === null || _this$props === void 0 ? void 0 : _this$props.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);
6130
+ }
6131
+
6132
+ render()
6133
+ /*: ReactElement<any>*/
6134
+ {
6135
+ const {
6136
+ axis,
6137
+ bounds,
6138
+ children,
6139
+ defaultPosition,
6140
+ defaultClassName,
6141
+ defaultClassNameDragging,
6142
+ defaultClassNameDragged,
6143
+ position,
6144
+ positionOffset,
6145
+ scale,
6146
+ ...draggableCoreProps
6147
+ } = this.props;
6148
+ let style = {};
6149
+ let svgTransform = null; // If this is controlled, we don't want to move it - unless it's dragging.
6150
+
6151
+ const controlled = Boolean(position);
6152
+ const draggable = !controlled || this.state.dragging;
6153
+ const validPosition = position || defaultPosition;
6154
+ const transformOpts = {
6155
+ // Set left if horizontal drag is enabled
6156
+ x: (0, _positionFns.canDragX)(this) && draggable ? this.state.x : validPosition.x,
6157
+ // Set top if vertical drag is enabled
6158
+ y: (0, _positionFns.canDragY)(this) && draggable ? this.state.y : validPosition.y
6159
+ }; // If this element was SVG, we use the `transform` attribute.
6160
+
6161
+ if (this.state.isElementSVG) {
6162
+ svgTransform = (0, _domFns.createSVGTransform)(transformOpts, positionOffset);
6163
+ } else {
6164
+ // Add a CSS transform to move the element around. This allows us to move the element around
6165
+ // without worrying about whether or not it is relatively or absolutely positioned.
6166
+ // If the item you are dragging already has a transform set, wrap it in a <span> so <Draggable>
6167
+ // has a clean slate.
6168
+ style = (0, _domFns.createCSSTransform)(transformOpts, positionOffset);
6169
+ } // Mark with class while dragging
6170
+
6171
+
6172
+ const className = (0, _clsx.default)(children.props.className || '', defaultClassName, {
6173
+ [defaultClassNameDragging]: this.state.dragging,
6174
+ [defaultClassNameDragged]: this.state.dragged
6175
+ }); // Reuse the child provided
6176
+ // This makes it flexible to use whatever element is wanted (div, ul, etc)
6177
+
6178
+ return /*#__PURE__*/React.createElement(_DraggableCore.default, _extends({}, draggableCoreProps, {
6179
+ onStart: this.onDragStart,
6180
+ onDrag: this.onDrag,
6181
+ onStop: this.onDragStop
6182
+ }), /*#__PURE__*/React.cloneElement(React.Children.only(children), {
6183
+ className: className,
6184
+ style: { ...children.props.style,
6185
+ ...style
6186
+ },
6187
+ transform: svgTransform
6188
+ }));
6189
+ }
6190
+
6191
+ }
6619
6192
 
6620
6193
  exports.default = Draggable;
6621
6194
 
6622
6195
  _defineProperty(Draggable, "displayName", 'Draggable');
6623
6196
 
6624
- _defineProperty(Draggable, "propTypes", _objectSpread(_objectSpread({}, _DraggableCore.default.propTypes), {}, {
6197
+ _defineProperty(Draggable, "propTypes", { // Accepts all props <DraggableCore> accepts.
6198
+ ..._DraggableCore.default.propTypes,
6199
+
6625
6200
  /**
6626
6201
  * `axis` determines which axis the draggable can move.
6627
6202
  *
@@ -6730,9 +6305,9 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6730
6305
  className: _shims.dontSetMe,
6731
6306
  style: _shims.dontSetMe,
6732
6307
  transform: _shims.dontSetMe
6733
- }));
6308
+ });
6734
6309
 
6735
- _defineProperty(Draggable, "defaultProps", _objectSpread(_objectSpread({}, _DraggableCore.default.defaultProps), {}, {
6310
+ _defineProperty(Draggable, "defaultProps", { ..._DraggableCore.default.defaultProps,
6736
6311
  axis: 'both',
6737
6312
  bounds: false,
6738
6313
  defaultClassName: 'react-draggable',
@@ -6743,12 +6318,13 @@ _defineProperty(DraggableCore$1, "defaultProps", {
6743
6318
  y: 0
6744
6319
  },
6745
6320
  scale: 1
6746
- }));
6321
+ });
6747
6322
  })(Draggable$1);
6748
6323
 
6749
- var _require = Draggable$1,
6750
- Draggable = _require.default,
6751
- DraggableCore = _require.DraggableCore; // Previous versions of this lib exported <Draggable> as the root export. As to no-// them, or TypeScript, we export *both* as the root and as 'default'.
6324
+ const {
6325
+ default: Draggable,
6326
+ DraggableCore
6327
+ } = Draggable$1; // Previous versions of this lib exported <Draggable> as the root export. As to no-// them, or TypeScript, we export *both* as the root and as 'default'.
6752
6328
  // See https://github.com/mzabriskie/react-draggable/pull/254
6753
6329
  // and https://github.com/mzabriskie/react-draggable/issues/266
6754
6330
 
@@ -6910,7 +6486,7 @@ function oe(e) {
6910
6486
  for (var t = 1; t < arguments.length; t++) {
6911
6487
  var r = null != arguments[t] ? arguments[t] : {};
6912
6488
  t % 2 ? ie(Object(r), !0).forEach(function (t) {
6913
- _defineProperty$2(e, t, r[t]);
6489
+ _defineProperty$1(e, t, r[t]);
6914
6490
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ie(Object(r)).forEach(function (t) {
6915
6491
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
6916
6492
  });
@@ -6934,14 +6510,14 @@ function ae(e) {
6934
6510
 
6935
6511
  return function () {
6936
6512
  var r,
6937
- o = _getPrototypeOf$1(e);
6513
+ o = _getPrototypeOf(e);
6938
6514
 
6939
6515
  if (t) {
6940
- var a = _getPrototypeOf$1(this).constructor;
6516
+ var a = _getPrototypeOf(this).constructor;
6941
6517
  r = Reflect.construct(o, arguments, a);
6942
6518
  } else r = o.apply(this, arguments);
6943
6519
 
6944
- return _possibleConstructorReturn$1(this, r);
6520
+ return _possibleConstructorReturn(this, r);
6945
6521
  };
6946
6522
  }
6947
6523
 
@@ -6955,14 +6531,14 @@ var se = {
6955
6531
  created: null
6956
6532
  },
6957
6533
  le = function (n) {
6958
- _inherits$1(o, q);
6534
+ _inherits(o, q);
6959
6535
  var i = ae(o);
6960
6536
 
6961
6537
  function o() {
6962
- return _classCallCheck$1(this, o), i.apply(this, arguments);
6538
+ return _classCallCheck(this, o), i.apply(this, arguments);
6963
6539
  }
6964
6540
 
6965
- return _createClass$1(o, [{
6541
+ return _createClass(o, [{
6966
6542
  key: "getActivity",
6967
6543
  value: function (e) {
6968
6544
  var t = this;
@@ -7028,7 +6604,7 @@ var se = {
7028
6604
 
7029
6605
  function ue(e, t) {
7030
6606
  for (var r = e, n = 0, i = Object.entries(t); n < i.length; n++) {
7031
- var o = _slicedToArray$1(i[n], 2),
6607
+ var o = _slicedToArray(i[n], 2),
7032
6608
  a = o[0],
7033
6609
  s = o[1];
7034
6610
  (null == s ? void 0 : s.constructor) === Object ? ue(r[a], s) : r[a] = s;
@@ -7058,7 +6634,7 @@ function fe() {
7058
6634
  }
7059
6635
 
7060
6636
  var me = function t(r, n) {
7061
- _classCallCheck$1(this, t), this.adapter = r, this.ID = n;
6637
+ _classCallCheck(this, t), this.adapter = r, this.ID = n;
7062
6638
  };
7063
6639
 
7064
6640
  function ye(e) {
@@ -7076,26 +6652,26 @@ function ye(e) {
7076
6652
 
7077
6653
  return function () {
7078
6654
  var r,
7079
- o = _getPrototypeOf$1(e);
6655
+ o = _getPrototypeOf(e);
7080
6656
 
7081
6657
  if (t) {
7082
- var a = _getPrototypeOf$1(this).constructor;
6658
+ var a = _getPrototypeOf(this).constructor;
7083
6659
  r = Reflect.construct(o, arguments, a);
7084
6660
  } else r = o.apply(this, arguments);
7085
6661
 
7086
- return _possibleConstructorReturn$1(this, r);
6662
+ return _possibleConstructorReturn(this, r);
7087
6663
  };
7088
6664
  }
7089
6665
 
7090
6666
  var ge = function (n) {
7091
- _inherits$1(o, me);
6667
+ _inherits(o, me);
7092
6668
  var i = ye(o);
7093
6669
 
7094
6670
  function o() {
7095
- return _classCallCheck$1(this, o), i.apply(this, arguments);
6671
+ return _classCallCheck(this, o), i.apply(this, arguments);
7096
6672
  }
7097
6673
 
7098
- return _createClass$1(o, [{
6674
+ return _createClass(o, [{
7099
6675
  key: "display",
7100
6676
  value: function () {
7101
6677
  var e = this;
@@ -7128,27 +6704,27 @@ function ve(e) {
7128
6704
 
7129
6705
  return function () {
7130
6706
  var r,
7131
- o = _getPrototypeOf$1(e);
6707
+ o = _getPrototypeOf(e);
7132
6708
 
7133
6709
  if (t) {
7134
- var a = _getPrototypeOf$1(this).constructor;
6710
+ var a = _getPrototypeOf(this).constructor;
7135
6711
  r = Reflect.construct(o, arguments, a);
7136
6712
  } else r = o.apply(this, arguments);
7137
6713
 
7138
- return _possibleConstructorReturn$1(this, r);
6714
+ return _possibleConstructorReturn(this, r);
7139
6715
  };
7140
6716
  }
7141
6717
 
7142
6718
  var be = function (n) {
7143
- _inherits$1(a, me);
6719
+ _inherits(a, me);
7144
6720
  var i,
7145
6721
  o = ve(a);
7146
6722
 
7147
6723
  function a() {
7148
- return _classCallCheck$1(this, a), o.apply(this, arguments);
6724
+ return _classCallCheck(this, a), o.apply(this, arguments);
7149
6725
  }
7150
6726
 
7151
- return _createClass$1(a, [{
6727
+ return _createClass(a, [{
7152
6728
  key: "action",
7153
6729
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7154
6730
  return regenerator.wrap(function (e) {
@@ -7206,27 +6782,27 @@ function Ce(e) {
7206
6782
 
7207
6783
  return function () {
7208
6784
  var r,
7209
- o = _getPrototypeOf$1(e);
6785
+ o = _getPrototypeOf(e);
7210
6786
 
7211
6787
  if (t) {
7212
- var a = _getPrototypeOf$1(this).constructor;
6788
+ var a = _getPrototypeOf(this).constructor;
7213
6789
  r = Reflect.construct(o, arguments, a);
7214
6790
  } else r = o.apply(this, arguments);
7215
6791
 
7216
- return _possibleConstructorReturn$1(this, r);
6792
+ return _possibleConstructorReturn(this, r);
7217
6793
  };
7218
6794
  }
7219
6795
 
7220
6796
  var Te = function (n) {
7221
- _inherits$1(s, me);
6797
+ _inherits(s, me);
7222
6798
  var i,
7223
6799
  o = Ce(s);
7224
6800
 
7225
6801
  function s() {
7226
- return _classCallCheck$1(this, s), o.apply(this, arguments);
6802
+ return _classCallCheck(this, s), o.apply(this, arguments);
7227
6803
  }
7228
6804
 
7229
- return _createClass$1(s, [{
6805
+ return _createClass(s, [{
7230
6806
  key: "action",
7231
6807
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7232
6808
  return regenerator.wrap(function (e) {
@@ -7274,27 +6850,27 @@ function Ee(e) {
7274
6850
 
7275
6851
  return function () {
7276
6852
  var r,
7277
- o = _getPrototypeOf$1(e);
6853
+ o = _getPrototypeOf(e);
7278
6854
 
7279
6855
  if (t) {
7280
- var a = _getPrototypeOf$1(this).constructor;
6856
+ var a = _getPrototypeOf(this).constructor;
7281
6857
  r = Reflect.construct(o, arguments, a);
7282
6858
  } else r = o.apply(this, arguments);
7283
6859
 
7284
- return _possibleConstructorReturn$1(this, r);
6860
+ return _possibleConstructorReturn(this, r);
7285
6861
  };
7286
6862
  }
7287
6863
 
7288
6864
  var _e = function (n) {
7289
- _inherits$1(a, me);
6865
+ _inherits(a, me);
7290
6866
  var i,
7291
6867
  o = Ee(a);
7292
6868
 
7293
6869
  function a() {
7294
- return _classCallCheck$1(this, a), o.apply(this, arguments);
6870
+ return _classCallCheck(this, a), o.apply(this, arguments);
7295
6871
  }
7296
6872
 
7297
- return _createClass$1(a, [{
6873
+ return _createClass(a, [{
7298
6874
  key: "action",
7299
6875
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7300
6876
  return regenerator.wrap(function (e) {
@@ -7354,27 +6930,27 @@ function xe(e) {
7354
6930
 
7355
6931
  return function () {
7356
6932
  var r,
7357
- o = _getPrototypeOf$1(e);
6933
+ o = _getPrototypeOf(e);
7358
6934
 
7359
6935
  if (t) {
7360
- var a = _getPrototypeOf$1(this).constructor;
6936
+ var a = _getPrototypeOf(this).constructor;
7361
6937
  r = Reflect.construct(o, arguments, a);
7362
6938
  } else r = o.apply(this, arguments);
7363
6939
 
7364
- return _possibleConstructorReturn$1(this, r);
6940
+ return _possibleConstructorReturn(this, r);
7365
6941
  };
7366
6942
  }
7367
6943
 
7368
6944
  var Se = function (n) {
7369
- _inherits$1(a, me);
6945
+ _inherits(a, me);
7370
6946
  var i,
7371
6947
  o = xe(a);
7372
6948
 
7373
6949
  function a() {
7374
- return _classCallCheck$1(this, a), o.apply(this, arguments);
6950
+ return _classCallCheck(this, a), o.apply(this, arguments);
7375
6951
  }
7376
6952
 
7377
- return _createClass$1(a, [{
6953
+ return _createClass(a, [{
7378
6954
  key: "action",
7379
6955
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7380
6956
  return regenerator.wrap(function (e) {
@@ -7441,27 +7017,27 @@ function Ae(e) {
7441
7017
 
7442
7018
  return function () {
7443
7019
  var r,
7444
- o = _getPrototypeOf$1(e);
7020
+ o = _getPrototypeOf(e);
7445
7021
 
7446
7022
  if (t) {
7447
- var a = _getPrototypeOf$1(this).constructor;
7023
+ var a = _getPrototypeOf(this).constructor;
7448
7024
  r = Reflect.construct(o, arguments, a);
7449
7025
  } else r = o.apply(this, arguments);
7450
7026
 
7451
- return _possibleConstructorReturn$1(this, r);
7027
+ return _possibleConstructorReturn(this, r);
7452
7028
  };
7453
7029
  }
7454
7030
 
7455
7031
  var Ne = function (n) {
7456
- _inherits$1(a, me);
7032
+ _inherits(a, me);
7457
7033
  var i,
7458
7034
  o = Ae(a);
7459
7035
 
7460
7036
  function a() {
7461
- return _classCallCheck$1(this, a), o.apply(this, arguments);
7037
+ return _classCallCheck(this, a), o.apply(this, arguments);
7462
7038
  }
7463
7039
 
7464
- return _createClass$1(a, [{
7040
+ return _createClass(a, [{
7465
7041
  key: "action",
7466
7042
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7467
7043
  return regenerator.wrap(function (e) {
@@ -7520,27 +7096,27 @@ function we(e) {
7520
7096
 
7521
7097
  return function () {
7522
7098
  var r,
7523
- o = _getPrototypeOf$1(e);
7099
+ o = _getPrototypeOf(e);
7524
7100
 
7525
7101
  if (t) {
7526
- var a = _getPrototypeOf$1(this).constructor;
7102
+ var a = _getPrototypeOf(this).constructor;
7527
7103
  r = Reflect.construct(o, arguments, a);
7528
7104
  } else r = o.apply(this, arguments);
7529
7105
 
7530
- return _possibleConstructorReturn$1(this, r);
7106
+ return _possibleConstructorReturn(this, r);
7531
7107
  };
7532
7108
  }
7533
7109
 
7534
7110
  var Oe = function (n) {
7535
- _inherits$1(a, me);
7111
+ _inherits(a, me);
7536
7112
  var i,
7537
7113
  o = we(a);
7538
7114
 
7539
7115
  function a() {
7540
- return _classCallCheck$1(this, a), o.apply(this, arguments);
7116
+ return _classCallCheck(this, a), o.apply(this, arguments);
7541
7117
  }
7542
7118
 
7543
- return _createClass$1(a, [{
7119
+ return _createClass(a, [{
7544
7120
  key: "action",
7545
7121
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7546
7122
  return regenerator.wrap(function (e) {
@@ -7599,27 +7175,27 @@ function Re(e) {
7599
7175
 
7600
7176
  return function () {
7601
7177
  var r,
7602
- o = _getPrototypeOf$1(e);
7178
+ o = _getPrototypeOf(e);
7603
7179
 
7604
7180
  if (t) {
7605
- var a = _getPrototypeOf$1(this).constructor;
7181
+ var a = _getPrototypeOf(this).constructor;
7606
7182
  r = Reflect.construct(o, arguments, a);
7607
7183
  } else r = o.apply(this, arguments);
7608
7184
 
7609
- return _possibleConstructorReturn$1(this, r);
7185
+ return _possibleConstructorReturn(this, r);
7610
7186
  };
7611
7187
  }
7612
7188
 
7613
7189
  var Le = function (n) {
7614
- _inherits$1(a, me);
7190
+ _inherits(a, me);
7615
7191
  var i,
7616
7192
  o = Re(a);
7617
7193
 
7618
7194
  function a() {
7619
- return _classCallCheck$1(this, a), o.apply(this, arguments);
7195
+ return _classCallCheck(this, a), o.apply(this, arguments);
7620
7196
  }
7621
7197
 
7622
- return _createClass$1(a, [{
7198
+ return _createClass(a, [{
7623
7199
  key: "action",
7624
7200
  value: (i = _asyncToGenerator(regenerator.mark(function e(t) {
7625
7201
  return regenerator.wrap(function (e) {
@@ -7688,7 +7264,7 @@ function Pe(e) {
7688
7264
  for (var t = 1; t < arguments.length; t++) {
7689
7265
  var r = null != arguments[t] ? arguments[t] : {};
7690
7266
  t % 2 ? ke(Object(r), !0).forEach(function (t) {
7691
- _defineProperty$2(e, t, r[t]);
7267
+ _defineProperty$1(e, t, r[t]);
7692
7268
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ke(Object(r)).forEach(function (t) {
7693
7269
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
7694
7270
  });
@@ -7712,27 +7288,27 @@ function De(e) {
7712
7288
 
7713
7289
  return function () {
7714
7290
  var r,
7715
- o = _getPrototypeOf$1(e);
7291
+ o = _getPrototypeOf(e);
7716
7292
 
7717
7293
  if (t) {
7718
- var a = _getPrototypeOf$1(this).constructor;
7294
+ var a = _getPrototypeOf(this).constructor;
7719
7295
  r = Reflect.construct(o, arguments, a);
7720
7296
  } else r = o.apply(this, arguments);
7721
7297
 
7722
- return _possibleConstructorReturn$1(this, r);
7298
+ return _possibleConstructorReturn(this, r);
7723
7299
  };
7724
7300
  }
7725
7301
 
7726
7302
  var Ie = function (n) {
7727
- _inherits$1(s, me);
7303
+ _inherits(s, me);
7728
7304
  var i,
7729
7305
  o = De(s);
7730
7306
 
7731
7307
  function s() {
7732
- return _classCallCheck$1(this, s), o.apply(this, arguments);
7308
+ return _classCallCheck(this, s), o.apply(this, arguments);
7733
7309
  }
7734
7310
 
7735
- return _createClass$1(s, [{
7311
+ return _createClass(s, [{
7736
7312
  key: "action",
7737
7313
  value: (i = _asyncToGenerator(regenerator.mark(function e(t, r) {
7738
7314
  return regenerator.wrap(function (e) {
@@ -7814,7 +7390,7 @@ function Ue(e) {
7814
7390
  for (var t = 1; t < arguments.length; t++) {
7815
7391
  var r = null != arguments[t] ? arguments[t] : {};
7816
7392
  t % 2 ? Me(Object(r), !0).forEach(function (t) {
7817
- _defineProperty$2(e, t, r[t]);
7393
+ _defineProperty$1(e, t, r[t]);
7818
7394
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Me(Object(r)).forEach(function (t) {
7819
7395
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
7820
7396
  });
@@ -7838,27 +7414,27 @@ function Fe(e) {
7838
7414
 
7839
7415
  return function () {
7840
7416
  var r,
7841
- o = _getPrototypeOf$1(e);
7417
+ o = _getPrototypeOf(e);
7842
7418
 
7843
7419
  if (t) {
7844
- var a = _getPrototypeOf$1(this).constructor;
7420
+ var a = _getPrototypeOf(this).constructor;
7845
7421
  r = Reflect.construct(o, arguments, a);
7846
7422
  } else r = o.apply(this, arguments);
7847
7423
 
7848
- return _possibleConstructorReturn$1(this, r);
7424
+ return _possibleConstructorReturn(this, r);
7849
7425
  };
7850
7426
  }
7851
7427
 
7852
7428
  var je = function (n) {
7853
- _inherits$1(s, me);
7429
+ _inherits(s, me);
7854
7430
  var i,
7855
7431
  o = Fe(s);
7856
7432
 
7857
7433
  function s() {
7858
- return _classCallCheck$1(this, s), o.apply(this, arguments);
7434
+ return _classCallCheck(this, s), o.apply(this, arguments);
7859
7435
  }
7860
7436
 
7861
- return _createClass$1(s, [{
7437
+ return _createClass(s, [{
7862
7438
  key: "action",
7863
7439
  value: (i = _asyncToGenerator(regenerator.mark(function e(t, r) {
7864
7440
  return regenerator.wrap(function (e) {
@@ -7984,7 +7560,7 @@ function We(e) {
7984
7560
  for (var t = 1; t < arguments.length; t++) {
7985
7561
  var r = null != arguments[t] ? arguments[t] : {};
7986
7562
  t % 2 ? Ge(Object(r), !0).forEach(function (t) {
7987
- _defineProperty$2(e, t, r[t]);
7563
+ _defineProperty$1(e, t, r[t]);
7988
7564
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ge(Object(r)).forEach(function (t) {
7989
7565
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
7990
7566
  });
@@ -7996,7 +7572,7 @@ function We(e) {
7996
7572
  function $e(e, t, r) {
7997
7573
  var n = Array.isArray(t) ? t : [t];
7998
7574
  return [qe.apply(void 0, ["wxc", "".concat("wxc", "-").concat(e)].concat(_toConsumableArray(n), [We({}, Object.fromEntries(Object.entries(r || {}).map(function (t) {
7999
- var r = _slicedToArray$1(t, 2),
7575
+ var r = _slicedToArray(t, 2),
8000
7576
  n = r[0],
8001
7577
  i = r[1];
8002
7578
  return ["".concat("wxc", "-").concat(e, "--").concat(n), i];
@@ -8024,7 +7600,7 @@ function Ze(e) {
8024
7600
  for (var t = 1; t < arguments.length; t++) {
8025
7601
  var r = null != arguments[t] ? arguments[t] : {};
8026
7602
  t % 2 ? Ke(Object(r), !0).forEach(function (t) {
8027
- _defineProperty$2(e, t, r[t]);
7603
+ _defineProperty$1(e, t, r[t]);
8028
7604
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ke(Object(r)).forEach(function (t) {
8029
7605
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
8030
7606
  });
@@ -8048,27 +7624,27 @@ function Xe(e) {
8048
7624
 
8049
7625
  return function () {
8050
7626
  var r,
8051
- o = _getPrototypeOf$1(e);
7627
+ o = _getPrototypeOf(e);
8052
7628
 
8053
7629
  if (t) {
8054
- var a = _getPrototypeOf$1(this).constructor;
7630
+ var a = _getPrototypeOf(this).constructor;
8055
7631
  r = Reflect.construct(o, arguments, a);
8056
7632
  } else r = o.apply(this, arguments);
8057
7633
 
8058
- return _possibleConstructorReturn$1(this, r);
7634
+ return _possibleConstructorReturn(this, r);
8059
7635
  };
8060
7636
  }
8061
7637
 
8062
7638
  var Qe = function (n) {
8063
- _inherits$1(s, me);
7639
+ _inherits(s, me);
8064
7640
  var i,
8065
7641
  o = Xe(s);
8066
7642
 
8067
7643
  function s() {
8068
- return _classCallCheck$1(this, s), o.apply(this, arguments);
7644
+ return _classCallCheck(this, s), o.apply(this, arguments);
8069
7645
  }
8070
7646
 
8071
- return _createClass$1(s, [{
7647
+ return _createClass(s, [{
8072
7648
  key: "action",
8073
7649
  value: (i = _asyncToGenerator(regenerator.mark(function e(t, r) {
8074
7650
  return regenerator.wrap(function (e) {
@@ -8155,7 +7731,7 @@ function et(e) {
8155
7731
  for (var t = 1; t < arguments.length; t++) {
8156
7732
  var r = null != arguments[t] ? arguments[t] : {};
8157
7733
  t % 2 ? Je(Object(r), !0).forEach(function (t) {
8158
- _defineProperty$2(e, t, r[t]);
7734
+ _defineProperty$1(e, t, r[t]);
8159
7735
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Je(Object(r)).forEach(function (t) {
8160
7736
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
8161
7737
  });
@@ -8179,14 +7755,14 @@ function tt(e) {
8179
7755
 
8180
7756
  return function () {
8181
7757
  var r,
8182
- o = _getPrototypeOf$1(e);
7758
+ o = _getPrototypeOf(e);
8183
7759
 
8184
7760
  if (t) {
8185
- var a = _getPrototypeOf$1(this).constructor;
7761
+ var a = _getPrototypeOf(this).constructor;
8186
7762
  r = Reflect.construct(o, arguments, a);
8187
7763
  } else r = o.apply(this, arguments);
8188
7764
 
8189
- return _possibleConstructorReturn$1(this, r);
7765
+ return _possibleConstructorReturn(this, r);
8190
7766
  };
8191
7767
  }
8192
7768
 
@@ -8222,7 +7798,7 @@ var rt = {
8222
7798
  },
8223
7799
  nt = "undefined" != typeof navigator && navigator.userAgent.includes("iPhone OS 15_1"),
8224
7800
  it = function (n) {
8225
- _inherits$1(D, Z);
7801
+ _inherits(D, Z);
8226
7802
 
8227
7803
  var i,
8228
7804
  o,
@@ -8247,10 +7823,10 @@ var rt = {
8247
7823
 
8248
7824
  function D(t) {
8249
7825
  var r, n;
8250
- return _classCallCheck$1(this, D), (n = P.call(this, t)).meetingControls = (_defineProperty$2(r = {}, "mute-audio", new _e(_assertThisInitialized$1(n), "mute-audio")), _defineProperty$2(r, "mute-video", new Se(_assertThisInitialized$1(n), "mute-video")), _defineProperty$2(r, "share-screen", new Le(_assertThisInitialized$1(n), "share-screen")), _defineProperty$2(r, "join-meeting", new be(_assertThisInitialized$1(n), "join-meeting")), _defineProperty$2(r, "leave-meeting", new Te(_assertThisInitialized$1(n), "leave-meeting")), _defineProperty$2(r, "disabled-mute-audio", new ge(_assertThisInitialized$1(n), "disabled-mute-audio")), _defineProperty$2(r, "member-roster", new Ne(_assertThisInitialized$1(n), "member-roster")), _defineProperty$2(r, "settings", new Oe(_assertThisInitialized$1(n), "settings")), _defineProperty$2(r, "switch-camera", new Ie(_assertThisInitialized$1(n), "switch-camera")), _defineProperty$2(r, "switch-microphone", new je(_assertThisInitialized$1(n), "switch-microphone")), _defineProperty$2(r, "switch-speaker", new Qe(_assertThisInitialized$1(n), "switch-speaker")), r), n.displayStreamPromise = null, n;
7826
+ return _classCallCheck(this, D), (n = P.call(this, t)).meetingControls = (_defineProperty$1(r = {}, "mute-audio", new _e(_assertThisInitialized(n), "mute-audio")), _defineProperty$1(r, "mute-video", new Se(_assertThisInitialized(n), "mute-video")), _defineProperty$1(r, "share-screen", new Le(_assertThisInitialized(n), "share-screen")), _defineProperty$1(r, "join-meeting", new be(_assertThisInitialized(n), "join-meeting")), _defineProperty$1(r, "leave-meeting", new Te(_assertThisInitialized(n), "leave-meeting")), _defineProperty$1(r, "disabled-mute-audio", new ge(_assertThisInitialized(n), "disabled-mute-audio")), _defineProperty$1(r, "member-roster", new Ne(_assertThisInitialized(n), "member-roster")), _defineProperty$1(r, "settings", new Oe(_assertThisInitialized(n), "settings")), _defineProperty$1(r, "switch-camera", new Ie(_assertThisInitialized(n), "switch-camera")), _defineProperty$1(r, "switch-microphone", new je(_assertThisInitialized(n), "switch-microphone")), _defineProperty$1(r, "switch-speaker", new Qe(_assertThisInitialized(n), "switch-speaker")), r), n.displayStreamPromise = null, n;
8251
7827
  }
8252
7828
 
8253
- return _createClass$1(D, [{
7829
+ return _createClass(D, [{
8254
7830
  key: "createMeeting",
8255
7831
  value: function (e) {
8256
7832
  var t = this;
@@ -9291,7 +8867,7 @@ function at(e) {
9291
8867
  for (var t = 1; t < arguments.length; t++) {
9292
8868
  var r = null != arguments[t] ? arguments[t] : {};
9293
8869
  t % 2 ? ot(Object(r), !0).forEach(function (t) {
9294
- _defineProperty$2(e, t, r[t]);
8870
+ _defineProperty$1(e, t, r[t]);
9295
8871
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ot(Object(r)).forEach(function (t) {
9296
8872
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
9297
8873
  });
@@ -9315,26 +8891,26 @@ function st(e) {
9315
8891
 
9316
8892
  return function () {
9317
8893
  var r,
9318
- o = _getPrototypeOf$1(e);
8894
+ o = _getPrototypeOf(e);
9319
8895
 
9320
8896
  if (t) {
9321
- var a = _getPrototypeOf$1(this).constructor;
8897
+ var a = _getPrototypeOf(this).constructor;
9322
8898
  r = Reflect.construct(o, arguments, a);
9323
8899
  } else r = o.apply(this, arguments);
9324
8900
 
9325
- return _possibleConstructorReturn$1(this, r);
8901
+ return _possibleConstructorReturn(this, r);
9326
8902
  };
9327
8903
  }
9328
8904
 
9329
8905
  var lt = function (n) {
9330
- _inherits$1(o, Q);
8906
+ _inherits(o, Q);
9331
8907
  var i = st(o);
9332
8908
 
9333
8909
  function o() {
9334
- return _classCallCheck$1(this, o), i.apply(this, arguments);
8910
+ return _classCallCheck(this, o), i.apply(this, arguments);
9335
8911
  }
9336
8912
 
9337
- return _createClass$1(o, [{
8913
+ return _createClass(o, [{
9338
8914
  key: "getMembersFromDestination",
9339
8915
  value: function (e, t) {
9340
8916
  var r = this;
@@ -9373,26 +8949,26 @@ function ut(e) {
9373
8949
 
9374
8950
  return function () {
9375
8951
  var r,
9376
- o = _getPrototypeOf$1(e);
8952
+ o = _getPrototypeOf(e);
9377
8953
 
9378
8954
  if (t) {
9379
- var a = _getPrototypeOf$1(this).constructor;
8955
+ var a = _getPrototypeOf(this).constructor;
9380
8956
  r = Reflect.construct(o, arguments, a);
9381
8957
  } else r = o.apply(this, arguments);
9382
8958
 
9383
- return _possibleConstructorReturn$1(this, r);
8959
+ return _possibleConstructorReturn(this, r);
9384
8960
  };
9385
8961
  }
9386
8962
 
9387
8963
  var ct = function (n) {
9388
- _inherits$1(o, J);
8964
+ _inherits(o, J);
9389
8965
  var i = ut(o);
9390
8966
 
9391
8967
  function o() {
9392
- return _classCallCheck$1(this, o), i.apply(this, arguments);
8968
+ return _classCallCheck(this, o), i.apply(this, arguments);
9393
8969
  }
9394
8970
 
9395
- return _createClass$1(o, [{
8971
+ return _createClass(o, [{
9396
8972
  key: "getOrg",
9397
8973
  value: function (e) {
9398
8974
  var t = this;
@@ -9421,26 +8997,26 @@ function pt(e) {
9421
8997
 
9422
8998
  return function () {
9423
8999
  var r,
9424
- o = _getPrototypeOf$1(e);
9000
+ o = _getPrototypeOf(e);
9425
9001
 
9426
9002
  if (t) {
9427
- var a = _getPrototypeOf$1(this).constructor;
9003
+ var a = _getPrototypeOf(this).constructor;
9428
9004
  r = Reflect.construct(o, arguments, a);
9429
9005
  } else r = o.apply(this, arguments);
9430
9006
 
9431
- return _possibleConstructorReturn$1(this, r);
9007
+ return _possibleConstructorReturn(this, r);
9432
9008
  };
9433
9009
  }
9434
9010
 
9435
9011
  var ht = function (n) {
9436
- _inherits$1(o, te);
9012
+ _inherits(o, te);
9437
9013
  var i = pt(o);
9438
9014
 
9439
9015
  function o() {
9440
- return _classCallCheck$1(this, o), i.apply(this, arguments);
9016
+ return _classCallCheck(this, o), i.apply(this, arguments);
9441
9017
  }
9442
9018
 
9443
- return _createClass$1(o, [{
9019
+ return _createClass(o, [{
9444
9020
  key: "getMe",
9445
9021
  value: function () {
9446
9022
  var e = this;
@@ -9484,27 +9060,27 @@ function dt(e) {
9484
9060
 
9485
9061
  return function () {
9486
9062
  var r,
9487
- o = _getPrototypeOf$1(e);
9063
+ o = _getPrototypeOf(e);
9488
9064
 
9489
9065
  if (t) {
9490
- var a = _getPrototypeOf$1(this).constructor;
9066
+ var a = _getPrototypeOf(this).constructor;
9491
9067
  r = Reflect.construct(o, arguments, a);
9492
9068
  } else r = o.apply(this, arguments);
9493
9069
 
9494
- return _possibleConstructorReturn$1(this, r);
9070
+ return _possibleConstructorReturn(this, r);
9495
9071
  };
9496
9072
  }
9497
9073
 
9498
9074
  var ft = function (n) {
9499
- _inherits$1(o, ne);
9075
+ _inherits(o, ne);
9500
9076
  var i = dt(o);
9501
9077
 
9502
9078
  function o(t) {
9503
9079
  var r;
9504
- return _classCallCheck$1(this, o), (r = i.call(this, t)).dataChunkSize = 4, r.lastDataIndex = {}, r;
9080
+ return _classCallCheck(this, o), (r = i.call(this, t)).dataChunkSize = 4, r.lastDataIndex = {}, r;
9505
9081
  }
9506
9082
 
9507
- return _createClass$1(o, [{
9083
+ return _createClass(o, [{
9508
9084
  key: "getRoom",
9509
9085
  value: function (e) {
9510
9086
  var t = this;
@@ -9572,27 +9148,27 @@ function mt(e) {
9572
9148
 
9573
9149
  return function () {
9574
9150
  var r,
9575
- o = _getPrototypeOf$1(e);
9151
+ o = _getPrototypeOf(e);
9576
9152
 
9577
9153
  if (t) {
9578
- var a = _getPrototypeOf$1(this).constructor;
9154
+ var a = _getPrototypeOf(this).constructor;
9579
9155
  r = Reflect.construct(o, arguments, a);
9580
9156
  } else r = o.apply(this, arguments);
9581
9157
 
9582
- return _possibleConstructorReturn$1(this, r);
9158
+ return _possibleConstructorReturn(this, r);
9583
9159
  };
9584
9160
  }
9585
9161
 
9586
9162
  (function (n) {
9587
- _inherits$1(o, H);
9163
+ _inherits(o, H);
9588
9164
  var i = mt(o);
9589
9165
 
9590
9166
  function o(t) {
9591
9167
  var r;
9592
- return _classCallCheck$1(this, o), (r = i.call(this, t)).activitiesAdapter = new le(t.activities), r.meetingsAdapter = new it(t.meetings), r.membershipsAdapter = new lt(t.memberships), r.organizationsAdapter = new ct(t.organizations), r.peopleAdapter = new ht(t.people), r.roomsAdapter = new ft(t.rooms), r;
9168
+ return _classCallCheck(this, o), (r = i.call(this, t)).activitiesAdapter = new le(t.activities), r.meetingsAdapter = new it(t.meetings), r.membershipsAdapter = new lt(t.memberships), r.organizationsAdapter = new ct(t.organizations), r.peopleAdapter = new ht(t.people), r.roomsAdapter = new ft(t.rooms), r;
9593
9169
  }
9594
9170
 
9595
- return _createClass$1(o, [{
9171
+ return _createClass(o, [{
9596
9172
  key: "connect",
9597
9173
  value: function () {
9598
9174
  return Promise.resolve(this);
@@ -9658,7 +9234,7 @@ function Ct(e) {
9658
9234
  r = e.className,
9659
9235
  n = e.style,
9660
9236
  i = $e("audio-microphone-icon", r),
9661
- o = _slicedToArray$1(i, 1)[0];
9237
+ o = _slicedToArray(i, 1)[0];
9662
9238
  return A$1.createElement("svg", {
9663
9239
  width: t,
9664
9240
  height: t,
@@ -9685,7 +9261,7 @@ function Tt(e) {
9685
9261
  r = e.className,
9686
9262
  n = e.style,
9687
9263
  i = $e("audio-microphone-muted-icon", r),
9688
- o = _slicedToArray$1(i, 1)[0];
9264
+ o = _slicedToArray(i, 1)[0];
9689
9265
  return A$1.createElement("svg", {
9690
9266
  width: t,
9691
9267
  height: t,
@@ -9722,7 +9298,7 @@ function _t(e) {
9722
9298
  n = e.style,
9723
9299
  i = e.ariaLabel,
9724
9300
  o = $e("camera-bold-icon", r),
9725
- a = _slicedToArray$1(o, 1)[0];
9301
+ a = _slicedToArray(o, 1)[0];
9726
9302
  return A$1.createElement("svg", {
9727
9303
  width: t,
9728
9304
  height: t,
@@ -9741,7 +9317,7 @@ function xt(e) {
9741
9317
  r = e.className,
9742
9318
  n = e.style,
9743
9319
  i = $e("camera-icon", r),
9744
- o = _slicedToArray$1(i, 1)[0];
9320
+ o = _slicedToArray(i, 1)[0];
9745
9321
  return A$1.createElement("svg", {
9746
9322
  width: t,
9747
9323
  height: t,
@@ -9765,7 +9341,7 @@ function St(e) {
9765
9341
  r = e.className,
9766
9342
  n = e.style,
9767
9343
  i = $e("camera-muted-icon", r),
9768
- o = _slicedToArray$1(i, 1)[0];
9344
+ o = _slicedToArray(i, 1)[0];
9769
9345
  return A$1.createElement("svg", {
9770
9346
  width: t,
9771
9347
  height: t,
@@ -9801,7 +9377,7 @@ function Nt(e) {
9801
9377
  var t = e.className,
9802
9378
  r = e.style,
9803
9379
  n = $e("camera-issue-icon", t),
9804
- i = _slicedToArray$1(n, 1)[0];
9380
+ i = _slicedToArray(n, 1)[0];
9805
9381
  return A$1.createElement("svg", {
9806
9382
  width: "96",
9807
9383
  height: "88",
@@ -9960,7 +9536,7 @@ function It(e) {
9960
9536
  r = e.size,
9961
9537
  n = e.style,
9962
9538
  i = $e("line-icon", t),
9963
- o = _slicedToArray$1(i, 1)[0];
9539
+ o = _slicedToArray(i, 1)[0];
9964
9540
  return A$1.createElement("svg", {
9965
9541
  width: r,
9966
9542
  height: r,
@@ -10002,7 +9578,7 @@ function Ut(e) {
10002
9578
  n = e.style,
10003
9579
  i = e.ariaLabel,
10004
9580
  o = $e("microphone-bold-icon", r),
10005
- a = _slicedToArray$1(o, 1)[0];
9581
+ a = _slicedToArray(o, 1)[0];
10006
9582
  return A$1.createElement("svg", {
10007
9583
  width: t,
10008
9584
  height: t,
@@ -10020,7 +9596,7 @@ function Ft(e) {
10020
9596
  var t = e.className,
10021
9597
  r = e.style,
10022
9598
  n = $e("microphone-issue-icon", t),
10023
- i = _slicedToArray$1(n, 1)[0];
9599
+ i = _slicedToArray(n, 1)[0];
10024
9600
  return A$1.createElement("svg", {
10025
9601
  width: "62",
10026
9602
  height: "91",
@@ -10326,7 +9902,7 @@ function Qt(e) {
10326
9902
  n = e.size,
10327
9903
  i = e.style,
10328
9904
  o = $e("waiting-for-host-icon", r),
10329
- a = _slicedToArray$1(o, 1)[0];
9905
+ a = _slicedToArray(o, 1)[0];
10330
9906
  return A$1.createElement("svg", {
10331
9907
  width: n,
10332
9908
  height: n,
@@ -10726,7 +10302,7 @@ function tr(e) {
10726
10302
  i = e.style,
10727
10303
  o = e.ariaLabel,
10728
10304
  a = t.split("_"),
10729
- s = _slicedToArray$1(a, 2),
10305
+ s = _slicedToArray(a, 2),
10730
10306
  l = s[0],
10731
10307
  u = s[1],
10732
10308
  c = er[l];
@@ -10742,7 +10318,7 @@ function rr(e) {
10742
10318
  var t = e.className,
10743
10319
  r = e.style,
10744
10320
  n = $e("loader", t),
10745
- i = _slicedToArray$1(n, 2),
10321
+ i = _slicedToArray(n, 2),
10746
10322
  o = i[0],
10747
10323
  a = i[1];
10748
10324
  return A$1.createElement("div", {
@@ -11130,11 +10706,11 @@ var pr,
11130
10706
 
11131
10707
  function Wr(e) {
11132
10708
  var t = useState(0),
11133
- r = _slicedToArray$1(t, 2),
10709
+ r = _slicedToArray(t, 2),
11134
10710
  n = r[0],
11135
10711
  i = r[1],
11136
10712
  o = useState(0),
11137
- a = _slicedToArray$1(o, 2),
10713
+ a = _slicedToArray(o, 2),
11138
10714
  s = a[0],
11139
10715
  l = a[1];
11140
10716
  return useEffect(function () {
@@ -11142,7 +10718,7 @@ function Wr(e) {
11142
10718
 
11143
10719
  if (e.current) {
11144
10720
  var r = new (window.ResizeObserver || Gr)(function (e) {
11145
- var t = _slicedToArray$1(e, 1)[0].contentRect;
10721
+ var t = _slicedToArray(e, 1)[0].contentRect;
11146
10722
  n !== t.height && i(t.height), s !== t.width && l(t.width);
11147
10723
  });
11148
10724
  r.observe(e.current), t = function () {
@@ -11159,7 +10735,7 @@ function Wr(e) {
11159
10735
 
11160
10736
  function $r(e) {
11161
10737
  var t = useState(null),
11162
- r = _slicedToArray$1(t, 2),
10738
+ r = _slicedToArray(t, 2),
11163
10739
  n = r[0],
11164
10740
  i = r[1],
11165
10741
  o = e.current;
@@ -11187,7 +10763,7 @@ function $r(e) {
11187
10763
 
11188
10764
  function Yr() {
11189
10765
  var e = useState({}),
11190
- t = _slicedToArray$1(e, 2),
10766
+ t = _slicedToArray(e, 2),
11191
10767
  r = t[0],
11192
10768
  n = t[1],
11193
10769
  i = useContext(nr).peopleAdapter;
@@ -11218,7 +10794,7 @@ function Zr(e) {
11218
10794
  for (var t = 1; t < arguments.length; t++) {
11219
10795
  var r = null != arguments[t] ? arguments[t] : {};
11220
10796
  t % 2 ? Kr(Object(r), !0).forEach(function (t) {
11221
- _defineProperty$2(e, t, r[t]);
10797
+ _defineProperty$1(e, t, r[t]);
11222
10798
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Kr(Object(r)).forEach(function (t) {
11223
10799
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
11224
10800
  });
@@ -11253,7 +10829,7 @@ var Xr = {
11253
10829
 
11254
10830
  function Qr(e) {
11255
10831
  var t = useState(Xr),
11256
- r = _slicedToArray$1(t, 2),
10832
+ r = _slicedToArray(t, 2),
11257
10833
  n = r[0],
11258
10834
  i = r[1],
11259
10835
  o = useContext(nr),
@@ -11296,7 +10872,7 @@ function en(e) {
11296
10872
  for (var t = 1; t < arguments.length; t++) {
11297
10873
  var r = null != arguments[t] ? arguments[t] : {};
11298
10874
  t % 2 ? Jr(Object(r), !0).forEach(function (t) {
11299
- _defineProperty$2(e, t, r[t]);
10875
+ _defineProperty$1(e, t, r[t]);
11300
10876
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Jr(Object(r)).forEach(function (t) {
11301
10877
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
11302
10878
  });
@@ -11323,7 +10899,7 @@ var tn = {
11323
10899
 
11324
10900
  function rn(e) {
11325
10901
  var t = useState(tn),
11326
- r = _slicedToArray$1(t, 2),
10902
+ r = _slicedToArray(t, 2),
11327
10903
  n = r[0],
11328
10904
  i = r[1],
11329
10905
  o = useContext(nr),
@@ -11362,14 +10938,55 @@ function rn(e) {
11362
10938
  })), console.log(e);
11363
10939
  }),
11364
10940
  l = function () {
11365
- var e;
11366
- null !== (e = r) && void 0 !== e && e.ID && s.leavemeeting(r.ID);
11367
- };
10941
+ var e = _asyncToGenerator(regenerator.mark(function e() {
10942
+ var t;
10943
+ return regenerator.wrap(function (e) {
10944
+ for (;;) switch (e.prev = e.next) {
10945
+ case 0:
10946
+ if (null === (t = r) || void 0 === t || !t.ID || r.state !== Y) {
10947
+ e.next = 3;
10948
+ break;
10949
+ }
10950
+
10951
+ return e.next = 3, s.leavemeeting(r.ID);
10952
+
10953
+ case 3:
10954
+ case "end":
10955
+ return e.stop();
10956
+ }
10957
+ }, e);
10958
+ }));
10959
+ return function () {
10960
+ return e.apply(this, arguments);
10961
+ };
10962
+ }();
11368
10963
 
11369
10964
  window.addEventListener("beforeunload", l), t = function () {
11370
- var e;
11371
- null !== (e = r) && void 0 !== e && e.ID && s.leaveMeeting(r.ID), l && (window.removeEventListener("beforeunload", l), l = void 0), o.unsubscribe();
11372
- };
10965
+ var e = _asyncToGenerator(regenerator.mark(function e() {
10966
+ var t;
10967
+ return regenerator.wrap(function (e) {
10968
+ for (;;) switch (e.prev = e.next) {
10969
+ case 0:
10970
+ if (null === (t = r) || void 0 === t || !t.ID || r.state !== Y) {
10971
+ e.next = 3;
10972
+ break;
10973
+ }
10974
+
10975
+ return e.next = 3, s.leaveMeeting(r.ID);
10976
+
10977
+ case 3:
10978
+ l && (window.removeEventListener("beforeunload", l), l = void 0), o.unsubscribe();
10979
+
10980
+ case 5:
10981
+ case "end":
10982
+ return e.stop();
10983
+ }
10984
+ }, e);
10985
+ }));
10986
+ return function () {
10987
+ return e.apply(this, arguments);
10988
+ };
10989
+ }();
11373
10990
  } else i(en({}, tn)), t = void 0;
11374
10991
 
11375
10992
  return t;
@@ -11378,7 +10995,7 @@ function rn(e) {
11378
10995
 
11379
10996
  function nn(e, t) {
11380
10997
  var r = useState([]),
11381
- n = _slicedToArray$1(r, 2),
10998
+ n = _slicedToArray(r, 2),
11382
10999
  i = n[0],
11383
11000
  o = n[1],
11384
11001
  a = useContext(nr).membershipsAdapter;
@@ -11409,7 +11026,7 @@ function on(e, t) {
11409
11026
 
11410
11027
  function an(e) {
11411
11028
  var t = useState({}),
11412
- r = _slicedToArray$1(t, 2),
11029
+ r = _slicedToArray(t, 2),
11413
11030
  n = r[0],
11414
11031
  i = r[1],
11415
11032
  o = useContext(nr).organizationsAdapter;
@@ -11422,7 +11039,7 @@ function an(e) {
11422
11039
  for (var t = 1; t < arguments.length; t++) {
11423
11040
  var r = null != arguments[t] ? arguments[t] : {};
11424
11041
  t % 2 ? on(Object(r), !0).forEach(function (t) {
11425
- _defineProperty$2(e, t, r[t]);
11042
+ _defineProperty$1(e, t, r[t]);
11426
11043
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : on(Object(r)).forEach(function (t) {
11427
11044
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
11428
11045
  });
@@ -11445,7 +11062,7 @@ function an(e) {
11445
11062
 
11446
11063
  function sn() {
11447
11064
  var e = useState(),
11448
- t = _slicedToArray$1(e, 2)[1],
11065
+ t = _slicedToArray(e, 2)[1],
11449
11066
  r = useCallback(function (e) {
11450
11067
  r.current = e, t(e);
11451
11068
  }, []);
@@ -11467,7 +11084,7 @@ function ln(e, t) {
11467
11084
 
11468
11085
  function un(e) {
11469
11086
  var t = useState({}),
11470
- r = _slicedToArray$1(t, 2),
11087
+ r = _slicedToArray(t, 2),
11471
11088
  n = r[0],
11472
11089
  i = r[1],
11473
11090
  o = useContext(nr).peopleAdapter;
@@ -11477,7 +11094,7 @@ function un(e) {
11477
11094
  for (var t = 1; t < arguments.length; t++) {
11478
11095
  var r = null != arguments[t] ? arguments[t] : {};
11479
11096
  t % 2 ? ln(Object(r), !0).forEach(function (t) {
11480
- _defineProperty$2(e, t, r[t]);
11097
+ _defineProperty$1(e, t, r[t]);
11481
11098
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ln(Object(r)).forEach(function (t) {
11482
11099
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
11483
11100
  });
@@ -11527,9 +11144,9 @@ function dn(e) {
11527
11144
  u = useState(function () {
11528
11145
  return Math.floor(11 * Math.random()) + 1;
11529
11146
  }),
11530
- c = _slicedToArray$1(u, 1)[0],
11147
+ c = _slicedToArray(u, 1)[0],
11531
11148
  p = useState(!1),
11532
- h = _slicedToArray$1(p, 2),
11149
+ h = _slicedToArray(p, 2),
11533
11150
  d = h[0],
11534
11151
  f = h[1],
11535
11152
  m = null == s ? void 0 : s.split(" ").map(function (e) {
@@ -11545,7 +11162,7 @@ function dn(e) {
11545
11162
  _ = $e("avatar", t, {
11546
11163
  "avatar-self": g
11547
11164
  }),
11548
- x = _slicedToArray$1(_, 2),
11165
+ x = _slicedToArray(_, 2),
11549
11166
  w = x[0],
11550
11167
  O = x[1],
11551
11168
  R = "".concat(O("placeholder"), " ").concat(O("placeholder"), "-").concat(c),
@@ -55019,7 +54636,7 @@ var Ns = As;
55019
54636
  function ws(e) {
55020
54637
  var t = e.children,
55021
54638
  r = $e("markdown", e.className),
55022
- n = _slicedToArray$1(r, 1)[0],
54639
+ n = _slicedToArray(r, 1)[0],
55023
54640
  i = useMemo(function () {
55024
54641
  return new Ns("zero").enable(["emphasis", "escape", "link", "list", "newline", "normalize", "paragraph", "strikethrough"]);
55025
54642
  }, []).render(t);
@@ -55037,8 +54654,8 @@ function Os(e) {
55037
54654
  n = e.spacing,
55038
54655
  i = e.style,
55039
54656
  o = "spacing--".concat(String(n).toLowerCase()),
55040
- a = $e("ac-spacer", t, _defineProperty$2({}, o, !!n)),
55041
- s = _slicedToArray$1(a, 1)[0];
54657
+ a = $e("ac-spacer", t, _defineProperty$1({}, o, !!n)),
54658
+ s = _slicedToArray(a, 1)[0];
55042
54659
  return A$1.createElement("div", {
55043
54660
  className: s,
55044
54661
  style: {
@@ -55080,7 +54697,7 @@ function ks(e) {
55080
54697
  for (var t = 1; t < arguments.length; t++) {
55081
54698
  var r = null != arguments[t] ? arguments[t] : {};
55082
54699
  t % 2 ? Ls(Object(r), !0).forEach(function (t) {
55083
- _defineProperty$2(e, t, r[t]);
54700
+ _defineProperty$1(e, t, r[t]);
55084
54701
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ls(Object(r)).forEach(function (t) {
55085
54702
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
55086
54703
  });
@@ -55101,7 +54718,7 @@ function Ps(e) {
55101
54718
  if ("none" !== (null === (t = e.associatedInputs) || void 0 === t ? void 0 : t.toLowerCase())) {
55102
54719
  if (i()) {
55103
54720
  var r = n();
55104
- "object" === _typeof$2(e.data) && (r = ks(ks({}, r), e.data)), o(r);
54721
+ "object" === _typeof(e.data) && (r = ks(ks({}, r), e.data)), o(r);
55105
54722
  } else a(n());
55106
54723
  } else o(e.data);
55107
54724
  }), t && {
@@ -55176,7 +54793,7 @@ function Fs(e) {
55176
54793
  for (var t = 1; t < arguments.length; t++) {
55177
54794
  var r = null != arguments[t] ? arguments[t] : {};
55178
54795
  t % 2 ? Us(Object(r), !0).forEach(function (t) {
55179
- _defineProperty$2(e, t, r[t]);
54796
+ _defineProperty$1(e, t, r[t]);
55180
54797
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Us(Object(r)).forEach(function (t) {
55181
54798
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
55182
54799
  });
@@ -55258,7 +54875,7 @@ function Zl(e, t, r) {
55258
54875
  function Xl(e) {
55259
54876
  var t = e.data,
55260
54877
  r = $e("adaptive-cards-unknown-component"),
55261
- n = _slicedToArray$1(r, 1)[0];
54878
+ n = _slicedToArray(r, 1)[0];
55262
54879
  return A$1.createElement("div", null, A$1.createElement("h5", null, "".concat(t.type, " Component")), A$1.createElement("pre", {
55263
54880
  className: n
55264
54881
  }, JSON.stringify(t, null, 4)));
@@ -55281,15 +54898,15 @@ function Ql(e) {
55281
54898
  });
55282
54899
  }, [r.id, r.isVisible, l]);
55283
54900
 
55284
- for (var c = $e("ac", n), p = _slicedToArray$1(c, 1)[0], h = "drop" !== r.fallback && js[r.fallback], f = js[r.type] || h || Xl, m = [], y = function (e, t) {
54901
+ for (var c = $e("ac", n), p = _slicedToArray(c, 1)[0], h = "drop" !== r.fallback && js[r.fallback], f = js[r.type] || h || Xl, m = [], y = function (e, t) {
55285
54902
  return void 0 !== t ? "wxc-ac-".concat(e, "--").concat(String(t).toLowerCase()) : "wxc-ac-".concat(e);
55286
54903
  }, g = {}, v = Is(r.selectAction), b = {}, C = o, T = 0, E = ["fallback", "verticalContentAlignment"]; T < E.length; T++) {
55287
54904
  var _ = E[T];
55288
- (f.acPropTypes && f.acPropTypes[_] || void 0) && (void 0 !== r[_] ? C = Fs(Fs({}, C), {}, _defineProperty$2({}, _, r[_])) : void 0 !== o[_] && (b = Fs(Fs({}, b), {}, _defineProperty$2({}, _, o[_]))));
54905
+ (f.acPropTypes && f.acPropTypes[_] || void 0) && (void 0 !== r[_] ? C = Fs(Fs({}, C), {}, _defineProperty$1({}, _, r[_])) : void 0 !== o[_] && (b = Fs(Fs({}, b), {}, _defineProperty$1({}, _, o[_]))));
55289
54906
  }
55290
54907
 
55291
54908
  for (var x = Fs(Fs(Fs({}, f.acDefaultProps), b), r), N = 0, R = Object.entries(x); N < R.length; N++) {
55292
- var L = _slicedToArray$1(R[N], 2),
54909
+ var L = _slicedToArray(R[N], 2),
55293
54910
  k = L[0],
55294
54911
  P = L[1],
55295
54912
  D = f.acPropTypes && f.acPropTypes[k] || void 0;
@@ -55355,7 +54972,7 @@ function Ql(e) {
55355
54972
  break;
55356
54973
 
55357
54974
  case Ws:
55358
- "string" == typeof P ? g.backgroundImage = "url(".concat(P, ")") : "object" === _typeof$2(P) && null !== P && (g.backgroundImage = "url(".concat(P.url, ")"), m.push(y("".concat(D, "-fill-mode"), P.fillMode)), m.push(y("".concat(D, "-horizontal-alignment"), P.horizontalAlignment)), m.push(y("".concat(D, "-vertical-alignment"), P.verticalAlignment)));
54975
+ "string" == typeof P ? g.backgroundImage = "url(".concat(P, ")") : "object" === _typeof(P) && null !== P && (g.backgroundImage = "url(".concat(P.url, ")"), m.push(y("".concat(D, "-fill-mode"), P.fillMode)), m.push(y("".concat(D, "-horizontal-alignment"), P.horizontalAlignment)), m.push(y("".concat(D, "-vertical-alignment"), P.verticalAlignment)));
55359
54976
  break;
55360
54977
 
55361
54978
  case gl:
@@ -55394,7 +55011,7 @@ function Jl(e) {
55394
55011
  r = e.className,
55395
55012
  n = e.style,
55396
55013
  i = $e("badge", r),
55397
- o = _slicedToArray$1(i, 1)[0];
55014
+ o = _slicedToArray(i, 1)[0];
55398
55015
  return A$1.createElement("div", {
55399
55016
  className: o,
55400
55017
  style: n
@@ -55406,8 +55023,8 @@ function eu(e) {
55406
55023
  r = e.className,
55407
55024
  n = e.style,
55408
55025
  i = e.type,
55409
- o = $e("banner", r, _defineProperty$2({}, "".concat(i), !0)),
55410
- a = _slicedToArray$1(o, 1)[0];
55026
+ o = $e("banner", r, _defineProperty$1({}, "".concat(i), !0)),
55027
+ a = _slicedToArray(o, 1)[0];
55411
55028
  return A$1.createElement("div", {
55412
55029
  className: a,
55413
55030
  style: n
@@ -55471,7 +55088,7 @@ function nu(e) {
55471
55088
  for (var t = 1; t < arguments.length; t++) {
55472
55089
  var r = null != arguments[t] ? arguments[t] : {};
55473
55090
  t % 2 ? ru(Object(r), !0).forEach(function (t) {
55474
- _defineProperty$2(e, t, r[t]);
55091
+ _defineProperty$1(e, t, r[t]);
55475
55092
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ru(Object(r)).forEach(function (t) {
55476
55093
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
55477
55094
  });
@@ -55491,11 +55108,11 @@ var iu = function (e) {
55491
55108
  i = e.style,
55492
55109
  o = e.target,
55493
55110
  a = $e("tooltip-container", n),
55494
- s = _slicedToArray$1(a, 2),
55111
+ s = _slicedToArray(a, 2),
55495
55112
  l = s[0],
55496
55113
  u = s[1],
55497
55114
  c = useState(!1),
55498
- p = _slicedToArray$1(c, 2),
55115
+ p = _slicedToArray(c, 2),
55499
55116
  h = p[0],
55500
55117
  d = p[1];
55501
55118
 
@@ -55554,7 +55171,7 @@ function au(e) {
55554
55171
  for (var t = 1; t < arguments.length; t++) {
55555
55172
  var r = null != arguments[t] ? arguments[t] : {};
55556
55173
  t % 2 ? ou(Object(r), !0).forEach(function (t) {
55557
- _defineProperty$2(e, t, r[t]);
55174
+ _defineProperty$1(e, t, r[t]);
55558
55175
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ou(Object(r)).forEach(function (t) {
55559
55176
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
55560
55177
  });
@@ -55577,8 +55194,8 @@ function su(e) {
55577
55194
  p = e.tabIndex,
55578
55195
  h = e.tooltip,
55579
55196
  f = e.type,
55580
- m = $e("button", o, (_defineProperty$2(t = {}, "".concat(f), !0), _defineProperty$2(t, "pressed", l), t)),
55581
- y = _slicedToArray$1(m, 1)[0],
55197
+ m = $e("button", o, (_defineProperty$1(t = {}, "".concat(f), !0), _defineProperty$1(t, "pressed", l), t)),
55198
+ y = _slicedToArray(m, 1)[0],
55582
55199
  g = sn();
55583
55200
  return sr(g, n), A$1.createElement(A$1.Fragment, null, A$1.createElement("button", {
55584
55201
  className: y,
@@ -55606,7 +55223,7 @@ function lu(e) {
55606
55223
  a = e.required,
55607
55224
  s = e.style,
55608
55225
  l = $e("label", r),
55609
- u = _slicedToArray$1(l, 2),
55226
+ u = _slicedToArray(l, 2),
55610
55227
  c = u[0],
55611
55228
  p = u[1];
55612
55229
  return A$1.createElement("div", {
@@ -55661,7 +55278,7 @@ function uu(e) {
55661
55278
  "has-right-icon": void 0 !== v,
55662
55279
  "has-right-controls": g
55663
55280
  }),
55664
- x = _slicedToArray$1(_, 2),
55281
+ x = _slicedToArray(_, 2),
55665
55282
  N = x[0],
55666
55283
  w = x[1],
55667
55284
  O = sn(),
@@ -55682,7 +55299,7 @@ function uu(e) {
55682
55299
  "aria-label": t,
55683
55300
  "aria-labelledby": "".concat(R, "-label"),
55684
55301
  autoFocus: r,
55685
- className: qe(w("input"), _defineProperty$2({}, w("error"), o)),
55302
+ className: qe(w("input"), _defineProperty$1({}, w("error"), o)),
55686
55303
  disabled: i,
55687
55304
  id: "".concat(R, "-control"),
55688
55305
  max: l,
@@ -55815,7 +55432,7 @@ function cu(e) {
55815
55432
  u = $e("modal", r, {
55816
55433
  "centered-modal": Wr(l).width > 768
55817
55434
  }),
55818
- c = _slicedToArray$1(u, 2),
55435
+ c = _slicedToArray(u, 2),
55819
55436
  p = c[0],
55820
55437
  h = c[1];
55821
55438
  return A$1.createElement("div", {
@@ -55867,7 +55484,7 @@ function pu(e) {
55867
55484
  s = e.tabIndex,
55868
55485
  l = sn(),
55869
55486
  u = $e("option", r),
55870
- c = _slicedToArray$1(u, 2),
55487
+ c = _slicedToArray(u, 2),
55871
55488
  p = c[0],
55872
55489
  h = c[1];
55873
55490
  sr(l, t);
@@ -55886,13 +55503,13 @@ function pu(e) {
55886
55503
  },
55887
55504
  onMouseEnter: n,
55888
55505
  tabIndex: s,
55889
- title: "object" !== _typeof$2(o.label) ? o.label : void 0
55506
+ title: "object" !== _typeof(o.label) ? o.label : void 0
55890
55507
  }, o.icon && A$1.createElement(tr, {
55891
55508
  name: o.icon
55892
55509
  }), A$1.createElement("span", {
55893
55510
  className: h("label")
55894
55511
  }, o.label), void 0 !== a && A$1.createElement(tr, {
55895
- className: qe(h("check"), _defineProperty$2({}, h("check--invisible"), a !== o.value)),
55512
+ className: qe(h("check"), _defineProperty$1({}, h("check--invisible"), a !== o.value)),
55896
55513
  size: 16,
55897
55514
  name: "check"
55898
55515
  }));
@@ -55910,7 +55527,7 @@ function hu(e) {
55910
55527
  u = e.tabIndex,
55911
55528
  c = e.withKey,
55912
55529
  p = $e("options-list", t),
55913
- h = _slicedToArray$1(p, 1)[0];
55530
+ h = _slicedToArray(p, 1)[0];
55914
55531
  return A$1.createElement("ul", {
55915
55532
  className: h,
55916
55533
  style: l,
@@ -55951,12 +55568,12 @@ function fu(e) {
55951
55568
  r = e.size,
55952
55569
  n = e.style,
55953
55570
  i = $e("spinner", t),
55954
- o = _slicedToArray$1(i, 1)[0],
55571
+ o = _slicedToArray(i, 1)[0],
55955
55572
  a = function (e) {
55956
55573
  for (var t = 1; t < arguments.length; t++) {
55957
55574
  var r = null != arguments[t] ? arguments[t] : {};
55958
55575
  t % 2 ? du(Object(r), !0).forEach(function (t) {
55959
- _defineProperty$2(e, t, r[t]);
55576
+ _defineProperty$1(e, t, r[t]);
55960
55577
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : du(Object(r)).forEach(function (t) {
55961
55578
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
55962
55579
  });
@@ -55976,8 +55593,8 @@ function mu(e) {
55976
55593
  r = e.className,
55977
55594
  n = e.style,
55978
55595
  i = e.type,
55979
- o = $e("title", r, _defineProperty$2({}, "".concat(i), !0)),
55980
- a = _slicedToArray$1(o, 1)[0];
55596
+ o = $e("title", r, _defineProperty$1({}, "".concat(i), !0)),
55597
+ a = _slicedToArray(o, 1)[0];
55981
55598
  return A$1.createElement("h5", {
55982
55599
  className: a,
55983
55600
  style: n
@@ -55995,7 +55612,7 @@ function yu(e) {
55995
55612
  l = $e("ac-action", t, {
55996
55613
  disabled: s
55997
55614
  }),
55998
- u = _slicedToArray$1(l, 2),
55615
+ u = _slicedToArray(l, 2),
55999
55616
  c = u[0],
56000
55617
  p = u[1],
56001
55618
  h = {
@@ -56027,7 +55644,7 @@ function gu(e) {
56027
55644
  n = e.data,
56028
55645
  i = e.style,
56029
55646
  o = $e("ac-action-open-url", r),
56030
- a = _slicedToArray$1(o, 1)[0];
55647
+ a = _slicedToArray(o, 1)[0];
56031
55648
  return A$1.createElement(yu, {
56032
55649
  className: a,
56033
55650
  data: n,
@@ -56053,7 +55670,7 @@ function bu(e) {
56053
55670
  for (var t = 1; t < arguments.length; t++) {
56054
55671
  var r = null != arguments[t] ? arguments[t] : {};
56055
55672
  t % 2 ? vu(Object(r), !0).forEach(function (t) {
56056
- _defineProperty$2(e, t, r[t]);
55673
+ _defineProperty$1(e, t, r[t]);
56057
55674
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : vu(Object(r)).forEach(function (t) {
56058
55675
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
56059
55676
  });
@@ -56069,9 +55686,9 @@ function Cu(e) {
56069
55686
  i = e.style,
56070
55687
  o = useContext(ki).onShowCard,
56071
55688
  a = $e("adaptive-cards-action-set", r),
56072
- s = _slicedToArray$1(a, 1)[0],
55689
+ s = _slicedToArray(a, 1)[0],
56073
55690
  l = useState({}),
56074
- u = _slicedToArray$1(l, 2),
55691
+ u = _slicedToArray(l, 2),
56075
55692
  c = u[0],
56076
55693
  p = u[1];
56077
55694
  return A$1.createElement(A$1.Fragment, null, A$1.createElement("div", {
@@ -56086,7 +55703,7 @@ function Cu(e) {
56086
55703
  return function (e) {
56087
55704
  var r,
56088
55705
  n = !c[e];
56089
- p(bu(bu({}, c), {}, _defineProperty$2({}, e, n))), o(n, null === (r = t.actions[e]) || void 0 === r ? void 0 : r.card);
55706
+ p(bu(bu({}, c), {}, _defineProperty$1({}, e, n))), o(n, null === (r = t.actions[e]) || void 0 === r ? void 0 : r.card);
56090
55707
  }(r);
56091
55708
  },
56092
55709
  pressed: c[r]
@@ -56107,7 +55724,7 @@ function Tu(e) {
56107
55724
  i = e.pressed,
56108
55725
  o = e.style,
56109
55726
  a = $e("ac-action-show-card", t),
56110
- s = _slicedToArray$1(a, 1)[0];
55727
+ s = _slicedToArray(a, 1)[0];
56111
55728
  return A$1.createElement(yu, {
56112
55729
  className: s,
56113
55730
  data: r,
@@ -56123,7 +55740,7 @@ function Eu(e) {
56123
55740
  r = e.data,
56124
55741
  n = e.style,
56125
55742
  i = $e("ac-action-submit", t),
56126
- o = _slicedToArray$1(i, 1)[0];
55743
+ o = _slicedToArray(i, 1)[0];
56127
55744
  return A$1.createElement(yu, {
56128
55745
  className: o,
56129
55746
  style: n,
@@ -56137,7 +55754,7 @@ function _u(e) {
56137
55754
  r = e.data,
56138
55755
  n = e.style,
56139
55756
  i = $e("ac-action-toggle-visibility", t),
56140
- o = _slicedToArray$1(i, 1)[0];
55757
+ o = _slicedToArray(i, 1)[0];
56141
55758
  return A$1.createElement(yu, {
56142
55759
  className: o,
56143
55760
  data: r,
@@ -56154,7 +55771,7 @@ function xu(e) {
56154
55771
  o = e.inherited,
56155
55772
  a = e.style,
56156
55773
  s = $e("adaptive-cards-column", i),
56157
- l = _slicedToArray$1(s, 1)[0];
55774
+ l = _slicedToArray(s, 1)[0];
56158
55775
  return A$1.createElement("div", _extends({
56159
55776
  className: l
56160
55777
  }, r, {
@@ -56188,7 +55805,7 @@ function Au(e) {
56188
55805
  i = e.inherited,
56189
55806
  o = e.style,
56190
55807
  a = $e("adaptive-cards-column-set", n),
56191
- s = _slicedToArray$1(a, 1)[0];
55808
+ s = _slicedToArray(a, 1)[0];
56192
55809
  return A$1.createElement("div", _extends({
56193
55810
  className: s
56194
55811
  }, t, {
@@ -56198,7 +55815,7 @@ function Au(e) {
56198
55815
  for (var t = 1; t < arguments.length; t++) {
56199
55816
  var r = null != arguments[t] ? arguments[t] : {};
56200
55817
  t % 2 ? Su(Object(r), !0).forEach(function (t) {
56201
- _defineProperty$2(e, t, r[t]);
55818
+ _defineProperty$1(e, t, r[t]);
56202
55819
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Su(Object(r)).forEach(function (t) {
56203
55820
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
56204
55821
  });
@@ -56225,7 +55842,7 @@ function Nu(e) {
56225
55842
  o = e.inherited,
56226
55843
  a = e.style,
56227
55844
  s = $e("container", i),
56228
- l = _slicedToArray$1(s, 1)[0];
55845
+ l = _slicedToArray(s, 1)[0];
56229
55846
  return A$1.createElement("div", _extends({
56230
55847
  className: l
56231
55848
  }, r, {
@@ -56242,7 +55859,7 @@ function Nu(e) {
56242
55859
  function wu(e) {
56243
55860
  var t = e.data,
56244
55861
  r = $e("adaptive-cards-fact-set", e.className),
56245
- n = _slicedToArray$1(r, 2),
55862
+ n = _slicedToArray(r, 2),
56246
55863
  i = n[0],
56247
55864
  o = n[1];
56248
55865
  return A$1.createElement("div", {
@@ -56273,7 +55890,7 @@ function Ru(e) {
56273
55890
  for (var t = 1; t < arguments.length; t++) {
56274
55891
  var r = null != arguments[t] ? arguments[t] : {};
56275
55892
  t % 2 ? Ou(Object(r), !0).forEach(function (t) {
56276
- _defineProperty$2(e, t, r[t]);
55893
+ _defineProperty$1(e, t, r[t]);
56277
55894
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ou(Object(r)).forEach(function (t) {
56278
55895
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
56279
55896
  });
@@ -56288,7 +55905,7 @@ function Lu(e) {
56288
55905
  n = e.className,
56289
55906
  i = e.style,
56290
55907
  o = $e("adaptive-cards-image", n),
56291
- a = _slicedToArray$1(o, 1)[0];
55908
+ a = _slicedToArray(o, 1)[0];
56292
55909
  return A$1.createElement("img", _extends({}, t, {
56293
55910
  alt: r.altText,
56294
55911
  className: a,
@@ -56319,7 +55936,7 @@ function Pu(e) {
56319
55936
  n = e.inherited,
56320
55937
  i = e.style,
56321
55938
  o = $e("adaptive-cards-image-set", r),
56322
- a = _slicedToArray$1(o, 1)[0];
55939
+ a = _slicedToArray(o, 1)[0];
56323
55940
  return A$1.createElement("div", {
56324
55941
  className: a
56325
55942
  }, t.images.map(function (e, r) {
@@ -56327,7 +55944,7 @@ function Pu(e) {
56327
55944
  for (var t = 1; t < arguments.length; t++) {
56328
55945
  var r = null != arguments[t] ? arguments[t] : {};
56329
55946
  t % 2 ? ku(Object(r), !0).forEach(function (t) {
56330
- _defineProperty$2(e, t, r[t]);
55947
+ _defineProperty$1(e, t, r[t]);
56331
55948
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ku(Object(r)).forEach(function (t) {
56332
55949
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
56333
55950
  });
@@ -56363,7 +55980,7 @@ function Du(e) {
56363
55980
  f = !p && !h,
56364
55981
  m = sn(),
56365
55982
  y = $e("checkbox", n),
56366
- g = _slicedToArray$1(y, 2),
55983
+ g = _slicedToArray(y, 2),
56367
55984
  v = g[0],
56368
55985
  b = g[1];
56369
55986
  return A$1.createElement("div", {
@@ -56383,7 +56000,7 @@ function Du(e) {
56383
56000
  style: s,
56384
56001
  tabIndex: l
56385
56002
  }, A$1.createElement("div", {
56386
- className: qe(b("box"), (t = {}, _defineProperty$2(t, b("box--enabled"), c), _defineProperty$2(t, b("box--disabled"), i), _defineProperty$2(t, b("box--checked"), p), _defineProperty$2(t, b("box--unchecked"), h), _defineProperty$2(t, b("box--indeterminate"), f), t))
56003
+ className: qe(b("box"), (t = {}, _defineProperty$1(t, b("box--enabled"), c), _defineProperty$1(t, b("box--disabled"), i), _defineProperty$1(t, b("box--checked"), p), _defineProperty$1(t, b("box--unchecked"), h), _defineProperty$1(t, b("box--indeterminate"), f), t))
56387
56004
  }, (p || f) && A$1.createElement(tr, {
56388
56005
  className: b("checkmark"),
56389
56006
  name: p ? "check" : "indeterminate"
@@ -56403,7 +56020,7 @@ function Iu(e) {
56403
56020
  l = e.selected,
56404
56021
  u = e.style,
56405
56022
  c = $e("checkbox-set", t),
56406
- p = _slicedToArray$1(c, 1)[0],
56023
+ p = _slicedToArray(c, 1)[0],
56407
56024
  h = n || fe();
56408
56025
  return A$1.createElement(lu, {
56409
56026
  className: p,
@@ -56440,7 +56057,7 @@ function Mu(e) {
56440
56057
  l = e.label,
56441
56058
  u = e.onChange,
56442
56059
  c = $e("date-input", t),
56443
- p = _slicedToArray$1(c, 1)[0];
56060
+ p = _slicedToArray(c, 1)[0];
56444
56061
  return A$1.createElement(uu, {
56445
56062
  className: p,
56446
56063
  style: r,
@@ -56472,7 +56089,7 @@ function Fu(e) {
56472
56089
  for (var t = 1; t < arguments.length; t++) {
56473
56090
  var r = null != arguments[t] ? arguments[t] : {};
56474
56091
  t % 2 ? Uu(Object(r), !0).forEach(function (t) {
56475
- _defineProperty$2(e, t, r[t]);
56092
+ _defineProperty$1(e, t, r[t]);
56476
56093
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Uu(Object(r)).forEach(function (t) {
56477
56094
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
56478
56095
  });
@@ -56486,9 +56103,9 @@ function ju(e) {
56486
56103
  r = e.style,
56487
56104
  n = e.children,
56488
56105
  i = $e("popup", t),
56489
- o = _slicedToArray$1(i, 1)[0],
56106
+ o = _slicedToArray(i, 1)[0],
56490
56107
  a = useState(null),
56491
- s = _slicedToArray$1(a, 2),
56108
+ s = _slicedToArray(a, 2),
56492
56109
  l = s[0],
56493
56110
  u = s[1],
56494
56111
  c = sn(),
@@ -56537,13 +56154,13 @@ function Bu(e) {
56537
56154
  f = e.tooltip,
56538
56155
  m = e.value,
56539
56156
  y = useState(void 0),
56540
- g = _slicedToArray$1(y, 2),
56157
+ g = _slicedToArray(y, 2),
56541
56158
  v = g[0],
56542
56159
  b = g[1],
56543
56160
  C = $e("dropdown", n, {
56544
56161
  disabled: i
56545
56162
  }),
56546
- T = _slicedToArray$1(C, 2),
56163
+ T = _slicedToArray(C, 2),
56547
56164
  E = T[0],
56548
56165
  _ = T[1],
56549
56166
  x = null == u || null === (t = u.find(function (e) {
@@ -57102,9 +56719,9 @@ function qu(e) {
57102
56719
  d = e.tabIndex,
57103
56720
  f = e.value,
57104
56721
  m = $e("password-input", n),
57105
- y = _slicedToArray$1(m, 1)[0],
56722
+ y = _slicedToArray(m, 1)[0],
57106
56723
  g = useState(!1),
57107
- v = _slicedToArray$1(g, 2),
56724
+ v = _slicedToArray(g, 2),
57108
56725
  b = v[0],
57109
56726
  C = v[1],
57110
56727
  T = A$1.createElement(su, {
@@ -57156,7 +56773,7 @@ function Vu(e) {
57156
56773
  disabled: n,
57157
56774
  error: i
57158
56775
  }),
57159
- h = _slicedToArray$1(p, 2),
56776
+ h = _slicedToArray(p, 2),
57160
56777
  d = h[0],
57161
56778
  f = h[1];
57162
56779
  return A$1.createElement("div", {
@@ -57194,7 +56811,7 @@ function Gu(e) {
57194
56811
  l = e.selected,
57195
56812
  u = e.style,
57196
56813
  c = $e("radio-set", t),
57197
- p = _slicedToArray$1(c, 1)[0],
56814
+ p = _slicedToArray(c, 1)[0],
57198
56815
  h = n || fe();
57199
56816
  return A$1.createElement(lu, {
57200
56817
  className: p,
@@ -57309,7 +56926,7 @@ function $u(e) {
57309
56926
  f = e.type,
57310
56927
  m = e.value,
57311
56928
  y = $e("text-input", n),
57312
- g = _slicedToArray$1(y, 1)[0],
56929
+ g = _slicedToArray(y, 1)[0],
57313
56930
  v = A$1.createElement(su, {
57314
56931
  ariaLabel: Wu,
57315
56932
  type: "ghost",
@@ -57355,7 +56972,7 @@ function Yu(e) {
57355
56972
  c = !i,
57356
56973
  p = !0 === a,
57357
56974
  h = $e("toggle", n),
57358
- f = _slicedToArray$1(h, 2),
56975
+ f = _slicedToArray(h, 2),
57359
56976
  m = f[0],
57360
56977
  y = f[1];
57361
56978
  return A$1.createElement("div", {
@@ -57373,7 +56990,7 @@ function Yu(e) {
57373
56990
  style: s,
57374
56991
  tabIndex: l
57375
56992
  }, A$1.createElement("div", {
57376
- className: qe(y("switch"), (t = {}, _defineProperty$2(t, y("switch--enabled"), c), _defineProperty$2(t, y("switch--disabled"), i), _defineProperty$2(t, y("switch--on"), p), _defineProperty$2(t, y("switch--off"), !p), t))
56993
+ className: qe(y("switch"), (t = {}, _defineProperty$1(t, y("switch--enabled"), c), _defineProperty$1(t, y("switch--disabled"), i), _defineProperty$1(t, y("switch--on"), p), _defineProperty$1(t, y("switch--off"), !p), t))
57377
56994
  }, A$1.createElement("span", {
57378
56995
  className: y("slider")
57379
56996
  })), A$1.createElement("span", {
@@ -57387,7 +57004,7 @@ function Ku(e) {
57387
57004
  n = e.id,
57388
57005
  i = e.style,
57389
57006
  o = $e("adaptive-cards-input-choice-set", r),
57390
- a = _slicedToArray$1(o, 1)[0],
57007
+ a = _slicedToArray(o, 1)[0],
57391
57008
  s = useContext(ki),
57392
57009
  l = s.setValue,
57393
57010
  u = s.getValue,
@@ -57472,7 +57089,7 @@ function Zu(e) {
57472
57089
  r = e.className,
57473
57090
  n = e.style,
57474
57091
  i = $e("adaptive-cards-input-date", r),
57475
- o = _slicedToArray$1(i, 1)[0],
57092
+ o = _slicedToArray(i, 1)[0],
57476
57093
  a = useContext(ki),
57477
57094
  s = a.setValue,
57478
57095
  l = a.getValue,
@@ -57623,7 +57240,7 @@ function ec(e) {
57623
57240
  d = e.tabIndex,
57624
57241
  f = e.value,
57625
57242
  m = $e("number-input", n),
57626
- y = _slicedToArray$1(m, 2),
57243
+ y = _slicedToArray(m, 2),
57627
57244
  g = y[0],
57628
57245
  v = y[1],
57629
57246
  b = A$1.createElement(su, {
@@ -57693,7 +57310,7 @@ function tc(e) {
57693
57310
  r = e.className,
57694
57311
  n = e.style,
57695
57312
  i = $e("adaptive-cards-input-number", r),
57696
- o = _slicedToArray$1(i, 1)[0],
57313
+ o = _slicedToArray(i, 1)[0],
57697
57314
  a = useContext(ki),
57698
57315
  s = a.setValue,
57699
57316
  l = a.getValue,
@@ -57740,7 +57357,7 @@ function rc(e) {
57740
57357
  d = e.style,
57741
57358
  f = e.value,
57742
57359
  m = $e("textbox", r),
57743
- y = _slicedToArray$1(m, 2),
57360
+ y = _slicedToArray(m, 2),
57744
57361
  g = y[0],
57745
57362
  v = y[1],
57746
57363
  b = o || fe();
@@ -57781,7 +57398,7 @@ function nc(e) {
57781
57398
  s = i.setInput,
57782
57399
  l = i.getError,
57783
57400
  u = $e("adaptive-cards-input-text", r),
57784
- c = _slicedToArray$1(u, 2),
57401
+ c = _slicedToArray(u, 2),
57785
57402
  p = c[0],
57786
57403
  h = c[1],
57787
57404
  d = "password" === t.style ? qu : $u,
@@ -57842,7 +57459,7 @@ function ic(e) {
57842
57459
  l = e.label,
57843
57460
  u = e.onChange,
57844
57461
  c = $e("time-input", t),
57845
- p = _slicedToArray$1(c, 1)[0];
57462
+ p = _slicedToArray(c, 1)[0];
57846
57463
  return A$1.createElement(uu, {
57847
57464
  className: p,
57848
57465
  style: r,
@@ -57862,7 +57479,7 @@ function oc(e) {
57862
57479
  r = e.className,
57863
57480
  n = e.style,
57864
57481
  i = $e("adaptive-cards-input-time", r),
57865
- o = _slicedToArray$1(i, 1)[0],
57482
+ o = _slicedToArray(i, 1)[0],
57866
57483
  a = useContext(ki),
57867
57484
  s = a.setValue,
57868
57485
  l = a.getValue,
@@ -57897,7 +57514,7 @@ function ac(e) {
57897
57514
  r = e.className,
57898
57515
  n = e.style,
57899
57516
  i = $e("adaptive-cards-input-toggle", r),
57900
- o = _slicedToArray$1(i, 1)[0],
57517
+ o = _slicedToArray(i, 1)[0],
57901
57518
  a = useContext(ki),
57902
57519
  s = a.getValue,
57903
57520
  l = a.setInput,
@@ -57939,7 +57556,7 @@ function lc(e) {
57939
57556
  n = e.inherited,
57940
57557
  i = e.style,
57941
57558
  o = $e("adaptive-cards-rich-text-block", r),
57942
- a = _slicedToArray$1(o, 1)[0];
57559
+ a = _slicedToArray(o, 1)[0];
57943
57560
  return A$1.createElement("div", {
57944
57561
  className: a,
57945
57562
  style: i
@@ -57951,7 +57568,7 @@ function lc(e) {
57951
57568
  for (var t = 1; t < arguments.length; t++) {
57952
57569
  var r = null != arguments[t] ? arguments[t] : {};
57953
57570
  t % 2 ? sc(Object(r), !0).forEach(function (t) {
57954
- _defineProperty$2(e, t, r[t]);
57571
+ _defineProperty$1(e, t, r[t]);
57955
57572
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : sc(Object(r)).forEach(function (t) {
57956
57573
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
57957
57574
  });
@@ -57985,7 +57602,7 @@ function cc(e) {
57985
57602
  for (var t = 1; t < arguments.length; t++) {
57986
57603
  var r = null != arguments[t] ? arguments[t] : {};
57987
57604
  t % 2 ? uc(Object(r), !0).forEach(function (t) {
57988
- _defineProperty$2(e, t, r[t]);
57605
+ _defineProperty$1(e, t, r[t]);
57989
57606
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : uc(Object(r)).forEach(function (t) {
57990
57607
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
57991
57608
  });
@@ -58001,7 +57618,7 @@ function pc(e) {
58001
57618
  i = $e("adaptive-cards-text-block", r, {
58002
57619
  "max-lines": t.maxLines
58003
57620
  }),
58004
- o = _slicedToArray$1(i, 1)[0];
57621
+ o = _slicedToArray(i, 1)[0];
58005
57622
  return A$1.createElement("div", {
58006
57623
  className: o,
58007
57624
  style: cc(cc({}, n), {}, {
@@ -58017,7 +57634,7 @@ function hc(e) {
58017
57634
  n = e.className,
58018
57635
  i = e.style,
58019
57636
  o = $e("adaptive-cards-text-run", n),
58020
- a = _slicedToArray$1(o, 1)[0];
57637
+ a = _slicedToArray(o, 1)[0];
58021
57638
  return A$1.createElement("span", _extends({
58022
57639
  className: a
58023
57640
  }, t, {
@@ -58033,7 +57650,7 @@ function mc(e) {
58033
57650
  o = e.inherited,
58034
57651
  a = e.style,
58035
57652
  s = $e("ac-adaptive-card", [i, "wxc-ac-container--has-padding"]),
58036
- l = _slicedToArray$1(s, 1)[0],
57653
+ l = _slicedToArray(s, 1)[0],
58037
57654
  u = !1;
58038
57655
 
58039
57656
  if (n.$schema && "http://adaptivecards.io/schemas/adaptive-card.json" !== n.$schema && console.warn("Unknown AdaptiveCard schema:", n.$schema), n.version) {
@@ -58101,7 +57718,7 @@ function xc(e) {
58101
57718
  desktop: s >= 425,
58102
57719
  "no-media": !t
58103
57720
  }),
58104
- m = _slicedToArray$1(f, 2),
57721
+ m = _slicedToArray(f, 2),
58105
57722
  y = m[0],
58106
57723
  g = m[1],
58107
57724
  v = h ? A$1.createElement(dn, {
@@ -58155,7 +57772,7 @@ function Sc(e) {
58155
57772
  "desktop-xl": v >= 1440,
58156
57773
  "remote-video-n-share": s && l
58157
57774
  }),
58158
- E = _slicedToArray$1(T, 2),
57775
+ E = _slicedToArray(T, 2),
58159
57776
  _ = E[0],
58160
57777
  x = E[1];
58161
57778
  return useEffect(function () {
@@ -58209,7 +57826,7 @@ function Ac(e) {
58209
57826
  c = u.width,
58210
57827
  p = u.height,
58211
57828
  h = useState("none"),
58212
- d = _slicedToArray$1(h, 2),
57829
+ d = _slicedToArray(h, 2),
58213
57830
  f = d[0],
58214
57831
  m = d[1],
58215
57832
  y = null != s && s.stream ? "screen" : "video",
@@ -58219,7 +57836,7 @@ function Ac(e) {
58219
57836
  "desktop-xl": c >= 1440,
58220
57837
  "remote-sharing": null !== a
58221
57838
  }),
58222
- v = _slicedToArray$1(g, 2),
57839
+ v = _slicedToArray(g, 2),
58223
57840
  b = v[0],
58224
57841
  C = v[1];
58225
57842
  return useEffect(function () {
@@ -58265,7 +57882,7 @@ function Nc(e) {
58265
57882
  tablet: f >= 768 && f < 1024,
58266
57883
  desktop: f >= 1024
58267
57884
  }),
58268
- y = _slicedToArray$1(m, 2),
57885
+ y = _slicedToArray(m, 2),
58269
57886
  g = y[0],
58270
57887
  v = y[1],
58271
57888
  b = A$1.createElement(fu, {
@@ -58294,13 +57911,13 @@ function wc(e) {
58294
57911
  r = e.meetingID,
58295
57912
  n = e.style,
58296
57913
  i = $e("interstitial-meeting", t),
58297
- o = _slicedToArray$1(i, 2),
57914
+ o = _slicedToArray(i, 2),
58298
57915
  a = o[0],
58299
57916
  s = o[1],
58300
57917
  l = sn(),
58301
57918
  u = Wr(l).height,
58302
57919
  c = useState("none"),
58303
- p = _slicedToArray$1(c, 2),
57920
+ p = _slicedToArray(c, 2),
58304
57921
  h = p[0],
58305
57922
  d = p[1],
58306
57923
  f = Qr(r).localVideo;
@@ -58738,7 +58355,7 @@ function Rc(e) {
58738
58355
  o = e.style,
58739
58356
  a = Oc[n],
58740
58357
  s = $e("media-access", t),
58741
- l = _slicedToArray$1(s, 2),
58358
+ l = _slicedToArray(s, 2),
58742
58359
  u = l[0],
58743
58360
  c = l[1],
58744
58361
  p = useContext(nr),
@@ -58801,7 +58418,7 @@ function kc(e) {
58801
58418
  l = e.tabIndex,
58802
58419
  u = function (e, t) {
58803
58420
  var r = useState({}),
58804
- n = _slicedToArray$1(r, 2),
58421
+ n = _slicedToArray(r, 2),
58805
58422
  i = n[0],
58806
58423
  o = n[1],
58807
58424
  a = useContext(nr).meetingsAdapter.meetingControls,
@@ -58824,13 +58441,13 @@ function kc(e) {
58824
58441
  return s.action(t, e);
58825
58442
  }, i] : [function () {}, {}];
58826
58443
  }(e.type, o),
58827
- c = _slicedToArray$1(u, 2),
58444
+ c = _slicedToArray(u, 2),
58828
58445
  p = c[0],
58829
58446
  h = c[1],
58830
58447
  d = $e("meeting-control", i, {
58831
58448
  "as-item": r
58832
58449
  }),
58833
- f = _slicedToArray$1(d, 2),
58450
+ f = _slicedToArray(d, 2),
58834
58451
  m = f[0],
58835
58452
  y = f[1];
58836
58453
 
@@ -58922,7 +58539,7 @@ var Pc = function (e) {
58922
58539
  };
58923
58540
 
58924
58541
  function Dc(e) {
58925
- for (var t = e.className, r = e.collapseRangeStart, n = e.collapseRangeEnd, i = e.controls, o = e.meetingID, a = e.style, s = e.tabIndexes, l = useContext(nr).meetingsAdapter, u = Qr(o).state, c = sn(), p = sn(), h = sn(), d = Wr(c).width, f = Wr(h).width, m = u === Y, y = $e("meeting-control-bar", t), g = _slicedToArray$1(y, 2), v = g[0], b = g[1], C = i(m), T = s(m), E = C.length, _ = useState(), R = _slicedToArray$1(_, 2), L = R[0], k = R[1], P = useState([0, 0]), D = _slicedToArray$1(P, 2), I = _slicedToArray$1(D[0], 2), M = I[0], U = I[1], F = D[1], j = useState(void 0), B = _slicedToArray$1(j, 2), z = B[0], H = B[1], q = [], V = [], G = [], W = [], $ = 0; $ < 20; $ += 1) {
58542
+ for (var t = e.className, r = e.collapseRangeStart, n = e.collapseRangeEnd, i = e.controls, o = e.meetingID, a = e.style, s = e.tabIndexes, l = useContext(nr).meetingsAdapter, u = Qr(o).state, c = sn(), p = sn(), h = sn(), d = Wr(c).width, f = Wr(h).width, m = u === Y, y = $e("meeting-control-bar", t), g = _slicedToArray(y, 2), v = g[0], b = g[1], C = i(m), T = s(m), E = C.length, _ = useState(), R = _slicedToArray(_, 2), L = R[0], k = R[1], P = useState([0, 0]), D = _slicedToArray(P, 2), I = _slicedToArray(D[0], 2), M = I[0], U = I[1], F = D[1], j = useState(void 0), B = _slicedToArray(j, 2), z = B[0], H = B[1], q = [], V = [], G = [], W = [], $ = 0; $ < 20; $ += 1) {
58926
58543
  var K = sn(),
58927
58544
  Z = sn(),
58928
58545
  X = Wr(K).width,
@@ -59094,22 +58711,22 @@ function Bc(e) {
59094
58711
  n = e.style,
59095
58712
  i = e.switchToHostModal,
59096
58713
  o = useState(),
59097
- a = _slicedToArray$1(o, 2),
58714
+ a = _slicedToArray(o, 2),
59098
58715
  s = a[0],
59099
58716
  l = a[1],
59100
58717
  u = useState(""),
59101
- c = _slicedToArray$1(u, 2),
58718
+ c = _slicedToArray(u, 2),
59102
58719
  p = c[0],
59103
58720
  h = c[1],
59104
58721
  d = useState(),
59105
- f = _slicedToArray$1(d, 2),
58722
+ f = _slicedToArray(d, 2),
59106
58723
  m = f[0],
59107
58724
  y = f[1],
59108
58725
  g = Qr(r),
59109
58726
  v = g.ID,
59110
58727
  b = g.invalidPassword,
59111
58728
  C = useState(!1),
59112
- T = _slicedToArray$1(C, 2),
58729
+ T = _slicedToArray(C, 2),
59113
58730
  E = T[0],
59114
58731
  _ = T[1],
59115
58732
  x = useContext(nr),
@@ -59117,7 +58734,7 @@ function Bc(e) {
59117
58734
  R = $e("meeting-guest-authentication", t, {
59118
58735
  phone: Wr(O).width <= 425
59119
58736
  }),
59120
- L = _slicedToArray$1(R, 2),
58737
+ L = _slicedToArray(R, 2),
59121
58738
  k = L[0],
59122
58739
  P = L[1],
59123
58740
  D = m || !p || b || E,
@@ -59215,14 +58832,14 @@ function Vc(e) {
59215
58832
  r = e.meetingID,
59216
58833
  n = e.style,
59217
58834
  i = useState(""),
59218
- o = _slicedToArray$1(i, 2),
58835
+ o = _slicedToArray(i, 2),
59219
58836
  a = o[0],
59220
58837
  s = o[1],
59221
58838
  l = Qr(r),
59222
58839
  u = l.ID,
59223
58840
  c = l.invalidHostKey,
59224
58841
  p = useState(!1),
59225
- h = _slicedToArray$1(p, 2),
58842
+ h = _slicedToArray(p, 2),
59226
58843
  d = h[0],
59227
58844
  f = h[1],
59228
58845
  m = useContext(nr),
@@ -59230,7 +58847,7 @@ function Vc(e) {
59230
58847
  g = $e("meeting-host-authentication", t, {
59231
58848
  phone: Wr(y).width <= 425
59232
58849
  }),
59233
- v = _slicedToArray$1(g, 2),
58850
+ v = _slicedToArray(g, 2),
59234
58851
  b = v[0],
59235
58852
  C = v[1],
59236
58853
  T = !a || c || d,
@@ -59316,7 +58933,7 @@ function Gc(e) {
59316
58933
  }),
59317
58934
  x = (null == p || null === (t = p[0]) || void 0 === t ? void 0 : t.split("@")[1]) || A$1.createElement("i", null, "Unknown organization"),
59318
58935
  N = $e("member", r),
59319
- w = _slicedToArray$1(N, 2),
58936
+ w = _slicedToArray(N, 2),
59320
58937
  O = w[0],
59321
58938
  R = w[1];
59322
58939
 
@@ -59363,7 +58980,7 @@ function Wc(e) {
59363
58980
  a = nn(r, n),
59364
58981
  s = Yr().orgID,
59365
58982
  l = $e("member-roster", t),
59366
- u = _slicedToArray$1(l, 2),
58983
+ u = _slicedToArray(l, 2),
59367
58984
  c = u[0],
59368
58985
  p = u[1],
59369
58986
  h = function (e) {
@@ -59432,7 +59049,7 @@ function $c(e) {
59432
59049
  return e.key === i;
59433
59050
  }).content,
59434
59051
  u = $e("tabs", r),
59435
- c = _slicedToArray$1(u, 2),
59052
+ c = _slicedToArray(u, 2),
59436
59053
  p = c[0],
59437
59054
  h = c[1],
59438
59055
  d = (a || []).findIndex(function (e) {
@@ -59440,7 +59057,7 @@ function $c(e) {
59440
59057
  }),
59441
59058
  f = sn(),
59442
59059
  m = useState(!1),
59443
- y = _slicedToArray$1(m, 2),
59060
+ y = _slicedToArray(m, 2),
59444
59061
  g = y[0],
59445
59062
  v = y[1];
59446
59063
  sr(f, t || g);
@@ -59527,7 +59144,7 @@ Vc.propTypes = {
59527
59144
  tabIndex: -1
59528
59145
  };
59529
59146
  var Yc = $e("no-media"),
59530
- Kc = _slicedToArray$1(Yc, 2)[1],
59147
+ Kc = _slicedToArray(Yc, 2)[1],
59531
59148
  Zc = {
59532
59149
  microphone: {
59533
59150
  icon: "microphone-issue",
@@ -59570,7 +59187,7 @@ function Xc(e) {
59570
59187
  r = e.style,
59571
59188
  n = e.media,
59572
59189
  i = $e("no-media", t),
59573
- o = _slicedToArray$1(i, 1)[0],
59190
+ o = _slicedToArray(i, 1)[0],
59574
59191
  a = Zc[n];
59575
59192
  return A$1.createElement("div", {
59576
59193
  className: o,
@@ -59591,7 +59208,7 @@ function Qc(e) {
59591
59208
  r = e.meetingID,
59592
59209
  n = e.style,
59593
59210
  i = $e("audio-settings", t),
59594
- o = _slicedToArray$1(i, 2),
59211
+ o = _slicedToArray(i, 2),
59595
59212
  a = o[0],
59596
59213
  s = o[1],
59597
59214
  l = Qr(r).localAudio.permission;
@@ -59621,7 +59238,7 @@ function Jc(e) {
59621
59238
  r = e.className,
59622
59239
  n = e.style,
59623
59240
  i = $e("video-settings", r),
59624
- o = _slicedToArray$1(i, 2),
59241
+ o = _slicedToArray(i, 2),
59625
59242
  a = o[0],
59626
59243
  s = o[1],
59627
59244
  l = Qr(t).localVideo.permission;
@@ -59652,9 +59269,9 @@ function ep(e) {
59652
59269
  r = e.className,
59653
59270
  n = e.style,
59654
59271
  i = $e("settings", r),
59655
- o = _slicedToArray$1(i, 1)[0],
59272
+ o = _slicedToArray(i, 1)[0],
59656
59273
  a = useState("audio"),
59657
- s = _slicedToArray$1(a, 2),
59274
+ s = _slicedToArray(a, 2),
59658
59275
  l = s[0],
59659
59276
  u = s[1],
59660
59277
  c = [{
@@ -59693,7 +59310,7 @@ function tp(e) {
59693
59310
  r = e.meetingID,
59694
59311
  n = e.style,
59695
59312
  i = $e("waiting-for-host", t),
59696
- o = _slicedToArray$1(i, 2),
59313
+ o = _slicedToArray(i, 2),
59697
59314
  a = o[0],
59698
59315
  s = o[1],
59699
59316
  l = useContext(nr),
@@ -59757,16 +59374,16 @@ function rp(e) {
59757
59374
  x = $e("meeting", t, {
59758
59375
  "roster-only": m && _ <= 425
59759
59376
  }),
59760
- R = _slicedToArray$1(x, 2),
59377
+ R = _slicedToArray(x, 2),
59761
59378
  L = R[0],
59762
59379
  k = R[1],
59763
59380
  P = useState(!1),
59764
- D = _slicedToArray$1(P, 2),
59381
+ D = _slicedToArray(P, 2),
59765
59382
  I = D[0],
59766
59383
  M = D[1],
59767
59384
  U = sn(),
59768
59385
  F = useState("guest"),
59769
- j = _slicedToArray$1(F, 2),
59386
+ j = _slicedToArray(F, 2),
59770
59387
  B = j[0],
59771
59388
  z = j[1];
59772
59389
  useEffect(function () {
@@ -59934,35 +59551,35 @@ var op = forwardRef(function (e, t) {
59934
59551
  o = e.style,
59935
59552
  a = e.className,
59936
59553
  s = useState(""),
59937
- l = _slicedToArray$1(s, 2),
59554
+ l = _slicedToArray(s, 2),
59938
59555
  u = l[0],
59939
59556
  c = l[1],
59940
59557
  p = useState([]),
59941
- h = _slicedToArray$1(p, 2),
59558
+ h = _slicedToArray(p, 2),
59942
59559
  d = h[0],
59943
59560
  y = h[1],
59944
59561
  g = useState([]),
59945
- v = _slicedToArray$1(g, 2),
59562
+ v = _slicedToArray(g, 2),
59946
59563
  b = v[0],
59947
59564
  C = v[1],
59948
59565
  T = useState(!1),
59949
- E = _slicedToArray$1(T, 2),
59566
+ E = _slicedToArray(T, 2),
59950
59567
  _ = E[0],
59951
59568
  O = E[1],
59952
59569
  R = useState([]),
59953
- k = _slicedToArray$1(R, 2),
59570
+ k = _slicedToArray(R, 2),
59954
59571
  P = k[0],
59955
59572
  D = k[1],
59956
59573
  M = useState([]),
59957
- U = _slicedToArray$1(M, 2),
59574
+ U = _slicedToArray(M, 2),
59958
59575
  F = U[0],
59959
59576
  j = U[1],
59960
59577
  B = useState(!1),
59961
- z = _slicedToArray$1(B, 2),
59578
+ z = _slicedToArray(B, 2),
59962
59579
  H = z[0],
59963
59580
  q = z[1],
59964
59581
  V = $e("search-people", a),
59965
- G = _slicedToArray$1(V, 2),
59582
+ G = _slicedToArray(V, 2),
59966
59583
  W = G[0],
59967
59584
  $ = G[1],
59968
59585
  Y = useContext(nr),
@@ -60145,7 +59762,7 @@ function up(e) {
60145
59762
  for (var t = 1; t < arguments.length; t++) {
60146
59763
  var r = null != arguments[t] ? arguments[t] : {};
60147
59764
  t % 2 ? lp(Object(r), !0).forEach(function (t) {
60148
- _defineProperty$2(e, t, r[t]);
59765
+ _defineProperty$1(e, t, r[t]);
60149
59766
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : lp(Object(r)).forEach(function (t) {
60150
59767
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
60151
59768
  });
@@ -60157,11 +59774,11 @@ function up(e) {
60157
59774
  function cp(e, t) {
60158
59775
  function r(r) {
60159
59776
  var n = useState(!1),
60160
- i = _slicedToArray$1(n, 2),
59777
+ i = _slicedToArray(n, 2),
60161
59778
  o = i[0],
60162
59779
  a = i[1],
60163
59780
  s = useState(null),
60164
- l = _slicedToArray$1(s, 2),
59781
+ l = _slicedToArray(s, 2),
60165
59782
  u = l[0],
60166
59783
  c = l[1];
60167
59784
  useEffect(function () {
@@ -62215,11 +61832,6 @@ const LAYOUT_TYPES_MAP = {
62215
61832
  Prominent: 'OnePlusN',
62216
61833
  Focus: 'Single'
62217
61834
  };
62218
- const SDK_MEMBER_STATUS_TO_ADAPTER_MEETING_STATE = {
62219
- IN_LOBBY: s.LOBBY,
62220
- IN_MEETING: s.JOINED,
62221
- NOT_IN_MEETING: s.LEFT
62222
- };
62223
61835
  const ON_IOS_15_1 = typeof navigator !== 'undefined' && navigator.userAgent.includes('iPhone OS 15_1');
62224
61836
  /**
62225
61837
  * The `MeetingsSDKAdapter` is an implementation of the `MeetingsAdapter` interface.
@@ -63505,10 +63117,10 @@ class MeetingsSDKAdapter extends d {
63505
63117
  const meetingWithSwitchMicrophoneEvent$ = fromEvent(sdkMeeting, EVENT_MICROPHONE_SWITCH).pipe(tap(() => {
63506
63118
  logger.debug('MEETING', ID, 'getMeeting()', ['received', EVENT_MICROPHONE_SWITCH, 'event']);
63507
63119
  }));
63508
- const meetingStateChange$ = fromEvent(sdkMeeting && sdkMeeting.members, EVENT_MEMBERS_UPDATE).pipe(map(event => {
63120
+ const meetingStateChange$ = fromEvent(sdkMeeting && sdkMeeting.members, EVENT_MEMBERS_UPDATE).pipe(map(() => {
63509
63121
  logger.debug('MEETING', ID, 'getMeeting()', ['received', EVENT_MEMBERS_UPDATE, 'event']);
63510
- const self = Object.values(event.full).find(m => m.isSelf);
63511
- return SDK_MEMBER_STATUS_TO_ADAPTER_MEETING_STATE[self && self.status] || s.NOT_JOINED;
63122
+ const self = sdkMeeting.joinedWith;
63123
+ return self && self.state || s.NOT_JOINED;
63512
63124
  }), distinctUntilChanged(), tap(state => {
63513
63125
  logger.debug('MEETING', ID, 'getMeeting()', ['changing meeting state to', state]);
63514
63126
  this.meetings[ID] = { ...this.meetings[ID],
@@ -63975,7 +63587,7 @@ var defineProperty = defineProperty$1;
63975
63587
  })(constants);
63976
63588
 
63977
63589
  var name$1 = "@webex/sdk-component-adapter";
63978
- var version = "1.111.0";
63590
+ var version = "1.112.2";
63979
63591
  const LOG_ARGS$1 = ['SDK-MEMBERSHIPS', `${name$1}-${version}`]; // max parameter value must be greater than 0 and less than or equal to 1000
63980
63592
 
63981
63593
  const MAX_MEMBERSHIPS = 1000; // TODO: Figure out how to import JS Doc definitions and remove duplication.
@@ -65014,7 +64626,7 @@ function WebexLogo() {
65014
64626
  }))));
65015
64627
  }
65016
64628
 
65017
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
64629
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
65018
64630
 
65019
64631
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
65020
64632
  /**
@@ -65032,17 +64644,17 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
65032
64644
  */
65033
64645
 
65034
64646
  var WebexMeetingsWidget = /*#__PURE__*/function (_Component) {
65035
- _inherits$1(WebexMeetingsWidget, _Component);
64647
+ _inherits(WebexMeetingsWidget, _Component);
65036
64648
 
65037
64649
  var _super = _createSuper(WebexMeetingsWidget);
65038
64650
 
65039
64651
  function WebexMeetingsWidget(props) {
65040
- _classCallCheck$1(this, WebexMeetingsWidget);
64652
+ _classCallCheck(this, WebexMeetingsWidget);
65041
64653
 
65042
64654
  return _super.call(this, props);
65043
64655
  }
65044
64656
 
65045
- _createClass$1(WebexMeetingsWidget, [{
64657
+ _createClass(WebexMeetingsWidget, [{
65046
64658
  key: "render",
65047
64659
  value: function render() {
65048
64660
  var _meeting$localAudio, _meeting$localVideo;
@@ -65118,8 +64730,14 @@ var WebexMeetings = cp(sp(WebexMeetingsWidget), function (props) {
65118
64730
  },
65119
64731
  config: {
65120
64732
  appName: appName,
65121
- appVersion: "1.25.3",
65122
- fedramp: props.fedramp
64733
+ appVersion: "1.25.5",
64734
+ fedramp: props.fedramp,
64735
+ meetings: {
64736
+ experimental: {
64737
+ enableUnifiedMeetings: true,
64738
+ enableAdhocMeetings: true
64739
+ }
64740
+ }
65123
64741
  }
65124
64742
  });
65125
64743
  return new WebexSDKAdapter(webex);