@ilo-org/react 0.10.6 → 0.12.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.
Files changed (246) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/lib/cjs/AccordionCtx-be704051.js +9 -0
  3. package/lib/cjs/{GlobalCtx-97e4b433.js → GlobalCtx-10114bdd.js} +2 -2
  4. package/lib/cjs/ListCtx-14aa546f.js +9 -0
  5. package/lib/cjs/TagCtx-690a1d54.js +7 -0
  6. package/lib/cjs/components/Accordion/Accordion.js +6 -6
  7. package/lib/cjs/components/Accordion/AccordionButton.js +5 -5
  8. package/lib/cjs/components/Accordion/AccordionItem.js +2 -2
  9. package/lib/cjs/components/Accordion/AccordionPanel.js +8 -8
  10. package/lib/cjs/components/Accordion/index.js +2 -2
  11. package/lib/cjs/components/Breadcrumb/Breadcrumb.js +5 -5
  12. package/lib/cjs/components/Breadcrumb/index.js +1 -1
  13. package/lib/cjs/components/Button/Button.js +1 -1
  14. package/lib/cjs/components/Button/index.js +1 -1
  15. package/lib/cjs/components/Callout/Callout.js +4 -4
  16. package/lib/cjs/components/Callout/index.js +1 -1
  17. package/lib/cjs/components/Cards/Card.js +40 -0
  18. package/lib/cjs/components/Cards/CardGroup.js +33 -0
  19. package/lib/cjs/components/Cards/DataCard/index.js +27 -0
  20. package/lib/cjs/components/Cards/DetailCard/index.js +20 -0
  21. package/lib/cjs/components/Cards/FactlistCard/index.js +23 -0
  22. package/lib/cjs/components/Cards/FeatureCard/index.js +24 -0
  23. package/lib/cjs/components/Cards/MultilinkCard/index.js +24 -0
  24. package/lib/cjs/components/Cards/PromoCard/index.js +23 -0
  25. package/lib/cjs/components/Cards/StatCard/index.js +21 -0
  26. package/lib/cjs/components/Cards/TextCard/index.js +25 -0
  27. package/lib/cjs/components/Cards/index.js +37 -0
  28. package/lib/cjs/components/Checkbox/Checkbox.js +5 -5
  29. package/lib/cjs/components/Checkbox/index.js +1 -1
  30. package/lib/cjs/components/Collapse/Collapse.js +1194 -44
  31. package/lib/cjs/components/Collapse/index.js +0 -1
  32. package/lib/cjs/components/ContextMenu/ContextMenu.js +1 -1
  33. package/lib/cjs/components/ContextMenu/index.js +1 -1
  34. package/lib/cjs/components/Credit/Credit.js +3 -3
  35. package/lib/cjs/components/Credit/index.js +1 -1
  36. package/lib/cjs/components/DatePicker/DatePicker.js +4 -4
  37. package/lib/cjs/components/DatePicker/index.js +1 -1
  38. package/lib/cjs/components/Dropdown/Dropdown.js +5 -5
  39. package/lib/cjs/components/Dropdown/index.js +1 -1
  40. package/lib/cjs/components/Empty/Empty.js +1 -1
  41. package/lib/cjs/components/Empty/index.js +1 -1
  42. package/lib/cjs/components/Fieldset/Fieldset.js +5 -5
  43. package/lib/cjs/components/Fieldset/index.js +1 -1
  44. package/lib/cjs/components/FileUpload/FileUpload.js +5 -5
  45. package/lib/cjs/components/FileUpload/index.js +1 -1
  46. package/lib/cjs/components/Footer/Footer.js +1 -1
  47. package/lib/cjs/components/Footer/index.js +1 -1
  48. package/lib/cjs/components/Form/Form.js +3 -3
  49. package/lib/cjs/components/Form/index.js +1 -1
  50. package/lib/cjs/components/FormControl/FormControl.js +7 -7
  51. package/lib/cjs/components/FormControl/index.js +1 -1
  52. package/lib/cjs/components/GlobalProvider/GlobalProvider.js +1 -1
  53. package/lib/cjs/components/GlobalProvider/index.js +1 -1
  54. package/lib/cjs/components/Heading/Heading.js +1 -1
  55. package/lib/cjs/components/Heading/index.js +1 -1
  56. package/lib/cjs/components/Hero/Hero.js +1 -1
  57. package/lib/cjs/components/Hero/HeroCard.js +1 -1
  58. package/lib/cjs/components/Hero/index.js +1 -1
  59. package/lib/cjs/components/Icon/Icon.js +3 -3
  60. package/lib/cjs/components/Icon/index.js +1 -1
  61. package/lib/cjs/components/Image/Image.js +1 -1
  62. package/lib/cjs/components/Image/index.js +1 -1
  63. package/lib/cjs/components/Input/Input.js +1 -1
  64. package/lib/cjs/components/Input/index.js +1 -1
  65. package/lib/cjs/components/Link/Link.js +1 -1
  66. package/lib/cjs/components/Link/index.js +1 -1
  67. package/lib/cjs/components/LinkList/LinkList.js +2 -2
  68. package/lib/cjs/components/LinkList/index.js +1 -1
  69. package/lib/cjs/components/List/List.js +4 -4
  70. package/lib/cjs/components/List/ListItem.js +2 -2
  71. package/lib/cjs/components/List/index.js +2 -2
  72. package/lib/cjs/components/Loading/Loading.js +1 -1
  73. package/lib/cjs/components/Loading/index.js +1 -1
  74. package/lib/cjs/components/LocalNav/LocalNav.js +4 -4
  75. package/lib/cjs/components/LocalNav/index.js +1 -1
  76. package/lib/cjs/components/Logo/Logo.js +15 -15
  77. package/lib/cjs/components/Logo/index.js +1 -1
  78. package/lib/cjs/components/LogoGrid/LogoGrid.js +1 -1
  79. package/lib/cjs/components/LogoGrid/index.js +1 -1
  80. package/lib/cjs/components/Navigation/Navigation.js +6 -6
  81. package/lib/cjs/components/Navigation/index.js +1 -1
  82. package/lib/cjs/components/Notification/Notification.js +3 -3
  83. package/lib/cjs/components/Notification/index.js +1 -1
  84. package/lib/cjs/components/NumberPicker/NumberPicker.js +4 -4
  85. package/lib/cjs/components/NumberPicker/index.js +1 -1
  86. package/lib/cjs/components/Pagination/Pagination.js +1 -1
  87. package/lib/cjs/components/Pagination/index.js +1 -1
  88. package/lib/cjs/components/Profile/Profile.js +1 -1
  89. package/lib/cjs/components/Profile/index.js +1 -1
  90. package/lib/cjs/components/Radio/Radio.js +5 -5
  91. package/lib/cjs/components/Radio/index.js +1 -1
  92. package/lib/cjs/components/ReadMore/ReadMore.js +4 -4
  93. package/lib/cjs/components/ReadMore/index.js +1 -1
  94. package/lib/cjs/components/RichText/RichText.js +1 -1
  95. package/lib/cjs/components/RichText/index.js +1 -1
  96. package/lib/cjs/components/SearchField/SearchField.js +3 -3
  97. package/lib/cjs/components/SearchField/index.js +1 -1
  98. package/lib/cjs/components/SocialMedia/SocialMedia.js +1 -1
  99. package/lib/cjs/components/SocialMedia/index.js +1 -1
  100. package/lib/cjs/components/TableOfContents/TableOfContents.js +1 -1
  101. package/lib/cjs/components/TableOfContents/index.js +1 -1
  102. package/lib/cjs/components/Tabs/Tabs.args.js +156 -0
  103. package/lib/cjs/components/Tabs/Tabs.js +24 -0
  104. package/lib/cjs/components/Tabs/index.js +15 -0
  105. package/lib/cjs/components/Tag/Tag.js +4 -4
  106. package/lib/cjs/components/Tag/TagSet.js +6 -6
  107. package/lib/cjs/components/Tag/index.js +2 -2
  108. package/lib/cjs/components/TextInput/TextInput.js +4 -4
  109. package/lib/cjs/components/TextInput/index.js +1 -1
  110. package/lib/cjs/components/Textarea/Textarea.js +4 -4
  111. package/lib/cjs/components/Textarea/index.js +1 -1
  112. package/lib/cjs/components/Toggle/Toggle.js +4 -4
  113. package/lib/cjs/components/Toggle/index.js +1 -1
  114. package/lib/cjs/components/Tooltip/Tooltip.js +5 -5
  115. package/lib/cjs/components/Tooltip/index.js +1 -1
  116. package/lib/cjs/components/Video/Video.js +11 -12
  117. package/lib/cjs/components/Video/VideoPlayer.js +55 -13
  118. package/lib/cjs/components/Video/index.js +6 -8
  119. package/lib/cjs/components/index.js +21 -12
  120. package/lib/cjs/hooks/index.js +1 -1
  121. package/lib/cjs/hooks/useGlobalSettings.js +3 -3
  122. package/lib/cjs/hooks/usePrevious.js +3 -3
  123. package/lib/cjs/hooks/useVideoPlayer.js +7 -7
  124. package/lib/cjs/index.js +21 -12
  125. package/lib/esm/components/Cards/Card.js +38 -0
  126. package/lib/esm/components/{Card → Cards}/CardGroup.js +14 -6
  127. package/lib/esm/components/Cards/DataCard/index.js +25 -0
  128. package/lib/esm/components/Cards/DetailCard/index.js +18 -0
  129. package/lib/esm/components/Cards/FactlistCard/index.js +21 -0
  130. package/lib/esm/components/Cards/FeatureCard/index.js +22 -0
  131. package/lib/esm/components/Cards/MultilinkCard/index.js +22 -0
  132. package/lib/esm/components/Cards/PromoCard/index.js +21 -0
  133. package/lib/esm/components/Cards/StatCard/index.js +19 -0
  134. package/lib/esm/components/Cards/TextCard/index.js +23 -0
  135. package/lib/esm/components/Cards/index.js +22 -0
  136. package/lib/esm/components/Collapse/Collapse.js +1156 -6
  137. package/lib/esm/components/Collapse/index.js +0 -1
  138. package/lib/esm/components/FileUpload/FileUpload.js +3 -3
  139. package/lib/esm/components/LinkList/LinkList.js +1 -1
  140. package/lib/esm/components/NumberPicker/NumberPicker.js +3 -3
  141. package/lib/esm/components/Radio/Radio.js +3 -3
  142. package/lib/esm/components/Tabs/Tabs.args.js +154 -0
  143. package/lib/esm/components/Tabs/Tabs.js +22 -0
  144. package/lib/esm/components/Tabs/index.js +9 -0
  145. package/lib/esm/components/TextInput/TextInput.js +3 -3
  146. package/lib/esm/components/Textarea/Textarea.js +3 -3
  147. package/lib/esm/components/Video/Video.js +10 -11
  148. package/lib/esm/components/Video/VideoPlayer.js +57 -11
  149. package/lib/esm/components/Video/index.js +5 -7
  150. package/lib/esm/components/index.js +14 -6
  151. package/lib/esm/index.js +14 -6
  152. package/lib/types/react/src/components/Cards/Card.props.d.ts +307 -0
  153. package/lib/types/react/src/components/{Card → Cards}/CardGroup.props.d.ts +1 -1
  154. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +4 -0
  155. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +4 -0
  156. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +4 -0
  157. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +4 -0
  158. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +4 -0
  159. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +4 -0
  160. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +4 -0
  161. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +4 -0
  162. package/lib/types/react/src/components/Cards/index.d.ts +11 -0
  163. package/lib/types/react/src/components/Tabs/Tabs.args.d.ts +10 -0
  164. package/lib/types/react/src/components/Tabs/Tabs.d.ts +4 -0
  165. package/lib/types/react/src/components/Tabs/Tabs.props.d.ts +12 -0
  166. package/lib/types/react/src/components/Tabs/index.d.ts +1 -0
  167. package/lib/types/react/src/components/Video/Video.d.ts +2 -2
  168. package/lib/types/react/src/components/Video/Video.props.d.ts +5 -43
  169. package/lib/types/react/src/components/Video/VideoPlayer.d.ts +3 -3
  170. package/lib/types/react/src/components/Video/VideoPlayer.props.d.ts +6 -31
  171. package/lib/types/react/src/components/index.d.ts +2 -1
  172. package/lib/types/react/src/types/index.d.ts +3 -3
  173. package/package.json +9 -7
  174. package/src/components/{Card → Cards}/Card.args.ts +41 -36
  175. package/src/components/Cards/Card.props.ts +382 -0
  176. package/src/components/Cards/Card.tsx +36 -0
  177. package/src/components/{Card → Cards}/CardGroup.args.ts +26 -26
  178. package/src/components/{Card → Cards}/CardGroup.props.ts +1 -1
  179. package/src/components/{Card → Cards}/CardGroup.tsx +12 -13
  180. package/src/components/Cards/DataCard/index.tsx +107 -0
  181. package/src/components/Cards/DetailCard/index.tsx +62 -0
  182. package/src/components/Cards/FactlistCard/index.tsx +42 -0
  183. package/src/components/Cards/FeatureCard/index.tsx +69 -0
  184. package/src/components/Cards/MultilinkCard/index.tsx +76 -0
  185. package/src/components/Cards/PromoCard/index.tsx +60 -0
  186. package/src/components/Cards/StatCard/index.tsx +36 -0
  187. package/src/components/Cards/TextCard/index.tsx +63 -0
  188. package/src/components/Cards/index.ts +22 -0
  189. package/src/components/LinkList/LinkList.tsx +1 -1
  190. package/src/components/Tabs/Tabs.args.tsx +201 -0
  191. package/src/components/Tabs/Tabs.props.ts +13 -0
  192. package/src/components/Tabs/Tabs.tsx +60 -0
  193. package/src/components/Tabs/index.ts +1 -0
  194. package/src/components/Video/Video.args.ts +18 -24
  195. package/src/components/Video/Video.props.ts +5 -47
  196. package/src/components/Video/Video.tsx +24 -19
  197. package/src/components/Video/VideoPlayer.props.ts +7 -38
  198. package/src/components/Video/VideoPlayer.tsx +67 -322
  199. package/src/components/index.ts +2 -1
  200. package/src/declarations.d.ts +22 -0
  201. package/src/types/index.ts +4 -4
  202. package/lib/cjs/AccordionCtx-fe08ff45.js +0 -9
  203. package/lib/cjs/DailyMotion-17b56ecb.js +0 -259
  204. package/lib/cjs/Facebook-0c8d86ee.js +0 -239
  205. package/lib/cjs/FilePlayer-01d6dc08.js +0 -596
  206. package/lib/cjs/Kaltura-40e8e581.js +0 -235
  207. package/lib/cjs/ListCtx-7db7fe04.js +0 -9
  208. package/lib/cjs/Mixcloud-e23f49d6.js +0 -222
  209. package/lib/cjs/Preview-8e490f54.js +0 -227
  210. package/lib/cjs/SoundCloud-2500b6cb.js +0 -249
  211. package/lib/cjs/Streamable-00723065.js +0 -234
  212. package/lib/cjs/TagCtx-929c7753.js +0 -7
  213. package/lib/cjs/Twitch-2c5c5733.js +0 -244
  214. package/lib/cjs/VideoPlayer-5f0a64c6.js +0 -2067
  215. package/lib/cjs/Vidyard-d36d6c45.js +0 -237
  216. package/lib/cjs/Vimeo-d311e3b8.js +0 -285
  217. package/lib/cjs/Wistia-318b4e43.js +0 -288
  218. package/lib/cjs/YouTube-a3796a55.js +0 -377
  219. package/lib/cjs/components/Card/Card.js +0 -43
  220. package/lib/cjs/components/Card/CardGroup.js +0 -25
  221. package/lib/cjs/components/Card/index.js +0 -21
  222. package/lib/cjs/index-0af02e81.js +0 -1154
  223. package/lib/esm/DailyMotion-989c2db3.js +0 -257
  224. package/lib/esm/Facebook-04e9cc59.js +0 -237
  225. package/lib/esm/FilePlayer-0789336d.js +0 -594
  226. package/lib/esm/Kaltura-a9ed37a9.js +0 -233
  227. package/lib/esm/Mixcloud-5a3b4353.js +0 -220
  228. package/lib/esm/Preview-7ca1835e.js +0 -225
  229. package/lib/esm/SoundCloud-47bccd79.js +0 -247
  230. package/lib/esm/Streamable-ee762126.js +0 -232
  231. package/lib/esm/Twitch-3cd4b54b.js +0 -242
  232. package/lib/esm/VideoPlayer-96c2b20c.js +0 -2062
  233. package/lib/esm/Vidyard-258ab0ef.js +0 -235
  234. package/lib/esm/Vimeo-4b29b580.js +0 -283
  235. package/lib/esm/Wistia-3cbce669.js +0 -286
  236. package/lib/esm/YouTube-db52da1c.js +0 -375
  237. package/lib/esm/components/Card/Card.js +0 -41
  238. package/lib/esm/components/Card/index.js +0 -14
  239. package/lib/esm/index-623ce3f5.js +0 -1152
  240. package/lib/types/react/src/components/Card/Card.props.d.ts +0 -110
  241. package/lib/types/react/src/components/Card/index.d.ts +0 -2
  242. package/src/components/Card/Card.props.ts +0 -142
  243. package/src/components/Card/Card.tsx +0 -183
  244. package/src/components/Card/index.ts +0 -2
  245. /package/lib/types/react/src/components/{Card → Cards}/Card.d.ts +0 -0
  246. /package/lib/types/react/src/components/{Card → Cards}/CardGroup.d.ts +0 -0
@@ -1,286 +0,0 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
- import require$$0 from 'react';
3
-
4
- function _mergeNamespaces(n, m) {
5
- m.forEach(function (e) {
6
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
7
- if (k !== 'default' && !(k in n)) {
8
- var d = Object.getOwnPropertyDescriptor(e, k);
9
- Object.defineProperty(n, k, d.get ? d : {
10
- enumerable: true,
11
- get: function () { return e[k]; }
12
- });
13
- }
14
- });
15
- });
16
- return Object.freeze(n);
17
- }
18
-
19
- var Wistia$2 = {};
20
-
21
- (function (exports) {
22
-
23
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
24
-
25
- Object.defineProperty(exports, "__esModule", {
26
- value: true
27
- });
28
- exports["default"] = void 0;
29
-
30
- var _react = _interopRequireWildcard(require$$0);
31
-
32
- var _utils = utils;
33
-
34
- var _patterns = patterns;
35
-
36
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
37
-
38
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
-
40
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
41
-
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
43
-
44
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
45
-
46
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
47
-
48
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
49
-
50
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
51
-
52
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
53
-
54
- 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); }; }
55
-
56
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
57
-
58
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
59
-
60
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
61
-
62
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
63
-
64
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
65
-
66
- var SDK_URL = 'https://fast.wistia.com/assets/external/E-v1.js';
67
- var SDK_GLOBAL = 'Wistia';
68
- var PLAYER_ID_PREFIX = 'wistia-player-';
69
-
70
- var Wistia = /*#__PURE__*/function (_Component) {
71
- _inherits(Wistia, _Component);
72
-
73
- var _super = _createSuper(Wistia);
74
-
75
- function Wistia() {
76
- var _this;
77
-
78
- _classCallCheck(this, Wistia);
79
-
80
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
81
- _args[_key] = arguments[_key];
82
- }
83
-
84
- _this = _super.call.apply(_super, [this].concat(_args));
85
-
86
- _defineProperty(_assertThisInitialized(_this), "callPlayer", _utils.callPlayer);
87
-
88
- _defineProperty(_assertThisInitialized(_this), "playerID", _this.props.config.playerId || "".concat(PLAYER_ID_PREFIX).concat((0, _utils.randomString)()));
89
-
90
- _defineProperty(_assertThisInitialized(_this), "onPlay", function () {
91
- var _this$props;
92
-
93
- return (_this$props = _this.props).onPlay.apply(_this$props, arguments);
94
- });
95
-
96
- _defineProperty(_assertThisInitialized(_this), "onPause", function () {
97
- var _this$props2;
98
-
99
- return (_this$props2 = _this.props).onPause.apply(_this$props2, arguments);
100
- });
101
-
102
- _defineProperty(_assertThisInitialized(_this), "onSeek", function () {
103
- var _this$props3;
104
-
105
- return (_this$props3 = _this.props).onSeek.apply(_this$props3, arguments);
106
- });
107
-
108
- _defineProperty(_assertThisInitialized(_this), "onEnded", function () {
109
- var _this$props4;
110
-
111
- return (_this$props4 = _this.props).onEnded.apply(_this$props4, arguments);
112
- });
113
-
114
- _defineProperty(_assertThisInitialized(_this), "onPlaybackRateChange", function () {
115
- var _this$props5;
116
-
117
- return (_this$props5 = _this.props).onPlaybackRateChange.apply(_this$props5, arguments);
118
- });
119
-
120
- _defineProperty(_assertThisInitialized(_this), "mute", function () {
121
- _this.callPlayer('mute');
122
- });
123
-
124
- _defineProperty(_assertThisInitialized(_this), "unmute", function () {
125
- _this.callPlayer('unmute');
126
- });
127
-
128
- return _this;
129
- }
130
-
131
- _createClass(Wistia, [{
132
- key: "componentDidMount",
133
- value: function componentDidMount() {
134
- this.props.onMount && this.props.onMount(this);
135
- }
136
- }, {
137
- key: "load",
138
- value: function load(url) {
139
- var _this2 = this;
140
-
141
- var _this$props6 = this.props,
142
- playing = _this$props6.playing,
143
- muted = _this$props6.muted,
144
- controls = _this$props6.controls,
145
- _onReady = _this$props6.onReady,
146
- config = _this$props6.config,
147
- onError = _this$props6.onError;
148
- (0, _utils.getSDK)(SDK_URL, SDK_GLOBAL).then(function (Wistia) {
149
- if (config.customControls) {
150
- config.customControls.forEach(function (control) {
151
- return Wistia.defineControl(control);
152
- });
153
- }
154
-
155
- window._wq = window._wq || [];
156
-
157
- window._wq.push({
158
- id: _this2.playerID,
159
- options: _objectSpread({
160
- autoPlay: playing,
161
- silentAutoPlay: 'allow',
162
- muted: muted,
163
- controlsVisibleOnLoad: controls,
164
- fullscreenButton: controls,
165
- playbar: controls,
166
- playbackRateControl: controls,
167
- qualityControl: controls,
168
- volumeControl: controls,
169
- settingsControl: controls,
170
- smallPlayButton: controls
171
- }, config.options),
172
- onReady: function onReady(player) {
173
- _this2.player = player;
174
-
175
- _this2.unbind();
176
-
177
- _this2.player.bind('play', _this2.onPlay);
178
-
179
- _this2.player.bind('pause', _this2.onPause);
180
-
181
- _this2.player.bind('seek', _this2.onSeek);
182
-
183
- _this2.player.bind('end', _this2.onEnded);
184
-
185
- _this2.player.bind('playbackratechange', _this2.onPlaybackRateChange);
186
-
187
- _onReady();
188
- }
189
- });
190
- }, onError);
191
- }
192
- }, {
193
- key: "unbind",
194
- value: function unbind() {
195
- this.player.unbind('play', this.onPlay);
196
- this.player.unbind('pause', this.onPause);
197
- this.player.unbind('seek', this.onSeek);
198
- this.player.unbind('end', this.onEnded);
199
- this.player.unbind('playbackratechange', this.onPlaybackRateChange);
200
- } // Proxy methods to prevent listener leaks
201
-
202
- }, {
203
- key: "play",
204
- value: function play() {
205
- this.callPlayer('play');
206
- }
207
- }, {
208
- key: "pause",
209
- value: function pause() {
210
- this.callPlayer('pause');
211
- }
212
- }, {
213
- key: "stop",
214
- value: function stop() {
215
- this.unbind();
216
- this.callPlayer('remove');
217
- }
218
- }, {
219
- key: "seekTo",
220
- value: function seekTo(seconds) {
221
- this.callPlayer('time', seconds);
222
- }
223
- }, {
224
- key: "setVolume",
225
- value: function setVolume(fraction) {
226
- this.callPlayer('volume', fraction);
227
- }
228
- }, {
229
- key: "setPlaybackRate",
230
- value: function setPlaybackRate(rate) {
231
- this.callPlayer('playbackRate', rate);
232
- }
233
- }, {
234
- key: "getDuration",
235
- value: function getDuration() {
236
- return this.callPlayer('duration');
237
- }
238
- }, {
239
- key: "getCurrentTime",
240
- value: function getCurrentTime() {
241
- return this.callPlayer('time');
242
- }
243
- }, {
244
- key: "getSecondsLoaded",
245
- value: function getSecondsLoaded() {
246
- return null;
247
- }
248
- }, {
249
- key: "render",
250
- value: function render() {
251
- var url = this.props.url;
252
- var videoID = url && url.match(_patterns.MATCH_URL_WISTIA)[1];
253
- var className = "wistia_embed wistia_async_".concat(videoID);
254
- var style = {
255
- width: '100%',
256
- height: '100%'
257
- };
258
- return /*#__PURE__*/_react["default"].createElement("div", {
259
- id: this.playerID,
260
- key: videoID,
261
- className: className,
262
- style: style
263
- });
264
- }
265
- }]);
266
-
267
- return Wistia;
268
- }(_react.Component);
269
-
270
- exports["default"] = Wistia;
271
-
272
- _defineProperty(Wistia, "displayName", 'Wistia');
273
-
274
- _defineProperty(Wistia, "canPlay", _patterns.canPlay.wistia);
275
-
276
- _defineProperty(Wistia, "loopOnEnded", true);
277
- } (Wistia$2));
278
-
279
- var Wistia = /*@__PURE__*/getDefaultExportFromCjs(Wistia$2);
280
-
281
- var Wistia$1 = /*#__PURE__*/_mergeNamespaces({
282
- __proto__: null,
283
- default: Wistia
284
- }, [Wistia$2]);
285
-
286
- export { Wistia$1 as W };
@@ -1,375 +0,0 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
- import require$$0 from 'react';
3
-
4
- function _mergeNamespaces(n, m) {
5
- m.forEach(function (e) {
6
- e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
7
- if (k !== 'default' && !(k in n)) {
8
- var d = Object.getOwnPropertyDescriptor(e, k);
9
- Object.defineProperty(n, k, d.get ? d : {
10
- enumerable: true,
11
- get: function () { return e[k]; }
12
- });
13
- }
14
- });
15
- });
16
- return Object.freeze(n);
17
- }
18
-
19
- var YouTube$2 = {};
20
-
21
- (function (exports) {
22
-
23
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
24
-
25
- Object.defineProperty(exports, "__esModule", {
26
- value: true
27
- });
28
- exports["default"] = void 0;
29
-
30
- var _react = _interopRequireWildcard(require$$0);
31
-
32
- var _utils = utils;
33
-
34
- var _patterns = patterns;
35
-
36
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
37
-
38
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
39
-
40
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
41
-
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
43
-
44
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
-
46
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
47
-
48
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
49
-
50
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
51
-
52
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
53
-
54
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
-
56
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
57
-
58
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
59
-
60
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
61
-
62
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
63
-
64
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
65
-
66
- 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); }; }
67
-
68
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
69
-
70
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
71
-
72
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
73
-
74
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
75
-
76
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
77
-
78
- var SDK_URL = 'https://www.youtube.com/iframe_api';
79
- var SDK_GLOBAL = 'YT';
80
- var SDK_GLOBAL_READY = 'onYouTubeIframeAPIReady';
81
- var MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
82
- var MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
83
- var MATCH_NOCOOKIE = /youtube-nocookie\.com/;
84
- var NOCOOKIE_HOST = 'https://www.youtube-nocookie.com';
85
-
86
- var YouTube = /*#__PURE__*/function (_Component) {
87
- _inherits(YouTube, _Component);
88
-
89
- var _super = _createSuper(YouTube);
90
-
91
- function YouTube() {
92
- var _this;
93
-
94
- _classCallCheck(this, YouTube);
95
-
96
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
97
- args[_key] = arguments[_key];
98
- }
99
-
100
- _this = _super.call.apply(_super, [this].concat(args));
101
-
102
- _defineProperty(_assertThisInitialized(_this), "callPlayer", _utils.callPlayer);
103
-
104
- _defineProperty(_assertThisInitialized(_this), "parsePlaylist", function (url) {
105
- if (url instanceof Array) {
106
- return {
107
- listType: 'playlist',
108
- playlist: url.map(_this.getID).join(',')
109
- };
110
- }
111
-
112
- if (MATCH_PLAYLIST.test(url)) {
113
- var _url$match = url.match(MATCH_PLAYLIST),
114
- _url$match2 = _slicedToArray(_url$match, 2),
115
- playlistId = _url$match2[1];
116
-
117
- return {
118
- listType: 'playlist',
119
- list: playlistId.replace(/^UC/, 'UU')
120
- };
121
- }
122
-
123
- if (MATCH_USER_UPLOADS.test(url)) {
124
- var _url$match3 = url.match(MATCH_USER_UPLOADS),
125
- _url$match4 = _slicedToArray(_url$match3, 2),
126
- username = _url$match4[1];
127
-
128
- return {
129
- listType: 'user_uploads',
130
- list: username
131
- };
132
- }
133
-
134
- return {};
135
- });
136
-
137
- _defineProperty(_assertThisInitialized(_this), "onStateChange", function (event) {
138
- var data = event.data;
139
- var _this$props = _this.props,
140
- onPlay = _this$props.onPlay,
141
- onPause = _this$props.onPause,
142
- onBuffer = _this$props.onBuffer,
143
- onBufferEnd = _this$props.onBufferEnd,
144
- onEnded = _this$props.onEnded,
145
- onReady = _this$props.onReady,
146
- loop = _this$props.loop,
147
- _this$props$config = _this$props.config,
148
- playerVars = _this$props$config.playerVars,
149
- onUnstarted = _this$props$config.onUnstarted;
150
- var _window$SDK_GLOBAL$Pl = window[SDK_GLOBAL].PlayerState,
151
- UNSTARTED = _window$SDK_GLOBAL$Pl.UNSTARTED,
152
- PLAYING = _window$SDK_GLOBAL$Pl.PLAYING,
153
- PAUSED = _window$SDK_GLOBAL$Pl.PAUSED,
154
- BUFFERING = _window$SDK_GLOBAL$Pl.BUFFERING,
155
- ENDED = _window$SDK_GLOBAL$Pl.ENDED,
156
- CUED = _window$SDK_GLOBAL$Pl.CUED;
157
- if (data === UNSTARTED) onUnstarted();
158
-
159
- if (data === PLAYING) {
160
- onPlay();
161
- onBufferEnd();
162
- }
163
-
164
- if (data === PAUSED) onPause();
165
- if (data === BUFFERING) onBuffer();
166
-
167
- if (data === ENDED) {
168
- var isPlaylist = !!_this.callPlayer('getPlaylist'); // Only loop manually if not playing a playlist
169
-
170
- if (loop && !isPlaylist) {
171
- if (playerVars.start) {
172
- _this.seekTo(playerVars.start);
173
- } else {
174
- _this.play();
175
- }
176
- }
177
-
178
- onEnded();
179
- }
180
-
181
- if (data === CUED) onReady();
182
- });
183
-
184
- _defineProperty(_assertThisInitialized(_this), "mute", function () {
185
- _this.callPlayer('mute');
186
- });
187
-
188
- _defineProperty(_assertThisInitialized(_this), "unmute", function () {
189
- _this.callPlayer('unMute');
190
- });
191
-
192
- _defineProperty(_assertThisInitialized(_this), "ref", function (container) {
193
- _this.container = container;
194
- });
195
-
196
- return _this;
197
- }
198
-
199
- _createClass(YouTube, [{
200
- key: "componentDidMount",
201
- value: function componentDidMount() {
202
- this.props.onMount && this.props.onMount(this);
203
- }
204
- }, {
205
- key: "getID",
206
- value: function getID(url) {
207
- if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
208
- return null;
209
- }
210
-
211
- return url.match(_patterns.MATCH_URL_YOUTUBE)[1];
212
- }
213
- }, {
214
- key: "load",
215
- value: function load(url, isReady) {
216
- var _this2 = this;
217
-
218
- var _this$props2 = this.props,
219
- playing = _this$props2.playing,
220
- muted = _this$props2.muted,
221
- playsinline = _this$props2.playsinline,
222
- controls = _this$props2.controls,
223
- loop = _this$props2.loop,
224
- config = _this$props2.config,
225
- _onError = _this$props2.onError;
226
- var playerVars = config.playerVars,
227
- embedOptions = config.embedOptions;
228
- var id = this.getID(url);
229
-
230
- if (isReady) {
231
- if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
232
- this.player.loadPlaylist(this.parsePlaylist(url));
233
- return;
234
- }
235
-
236
- this.player.cueVideoById({
237
- videoId: id,
238
- startSeconds: (0, _utils.parseStartTime)(url) || playerVars.start,
239
- endSeconds: (0, _utils.parseEndTime)(url) || playerVars.end
240
- });
241
- return;
242
- }
243
-
244
- (0, _utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, function (YT) {
245
- return YT.loaded;
246
- }).then(function (YT) {
247
- if (!_this2.container) return;
248
- _this2.player = new YT.Player(_this2.container, _objectSpread({
249
- width: '100%',
250
- height: '100%',
251
- videoId: id,
252
- playerVars: _objectSpread(_objectSpread({
253
- autoplay: playing ? 1 : 0,
254
- mute: muted ? 1 : 0,
255
- controls: controls ? 1 : 0,
256
- start: (0, _utils.parseStartTime)(url),
257
- end: (0, _utils.parseEndTime)(url),
258
- origin: window.location.origin,
259
- playsinline: playsinline ? 1 : 0
260
- }, _this2.parsePlaylist(url)), playerVars),
261
- events: {
262
- onReady: function onReady() {
263
- if (loop) {
264
- _this2.player.setLoop(true); // Enable playlist looping
265
-
266
- }
267
-
268
- _this2.props.onReady();
269
- },
270
- onPlaybackRateChange: function onPlaybackRateChange(event) {
271
- return _this2.props.onPlaybackRateChange(event.data);
272
- },
273
- onStateChange: _this2.onStateChange,
274
- onError: function onError(event) {
275
- return _onError(event.data);
276
- }
277
- },
278
- host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : undefined
279
- }, embedOptions));
280
- }, _onError);
281
-
282
- if (embedOptions.events) {
283
- console.warn('Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause');
284
- }
285
- }
286
- }, {
287
- key: "play",
288
- value: function play() {
289
- this.callPlayer('playVideo');
290
- }
291
- }, {
292
- key: "pause",
293
- value: function pause() {
294
- this.callPlayer('pauseVideo');
295
- }
296
- }, {
297
- key: "stop",
298
- value: function stop() {
299
- if (!document.body.contains(this.callPlayer('getIframe'))) return;
300
- this.callPlayer('stopVideo');
301
- }
302
- }, {
303
- key: "seekTo",
304
- value: function seekTo(amount) {
305
- this.callPlayer('seekTo', amount);
306
-
307
- if (!this.props.playing) {
308
- this.pause();
309
- }
310
- }
311
- }, {
312
- key: "setVolume",
313
- value: function setVolume(fraction) {
314
- this.callPlayer('setVolume', fraction * 100);
315
- }
316
- }, {
317
- key: "setPlaybackRate",
318
- value: function setPlaybackRate(rate) {
319
- this.callPlayer('setPlaybackRate', rate);
320
- }
321
- }, {
322
- key: "setLoop",
323
- value: function setLoop(loop) {
324
- this.callPlayer('setLoop', loop);
325
- }
326
- }, {
327
- key: "getDuration",
328
- value: function getDuration() {
329
- return this.callPlayer('getDuration');
330
- }
331
- }, {
332
- key: "getCurrentTime",
333
- value: function getCurrentTime() {
334
- return this.callPlayer('getCurrentTime');
335
- }
336
- }, {
337
- key: "getSecondsLoaded",
338
- value: function getSecondsLoaded() {
339
- return this.callPlayer('getVideoLoadedFraction') * this.getDuration();
340
- }
341
- }, {
342
- key: "render",
343
- value: function render() {
344
- var display = this.props.display;
345
- var style = {
346
- width: '100%',
347
- height: '100%',
348
- display: display
349
- };
350
- return /*#__PURE__*/_react["default"].createElement("div", {
351
- style: style
352
- }, /*#__PURE__*/_react["default"].createElement("div", {
353
- ref: this.ref
354
- }));
355
- }
356
- }]);
357
-
358
- return YouTube;
359
- }(_react.Component);
360
-
361
- exports["default"] = YouTube;
362
-
363
- _defineProperty(YouTube, "displayName", 'YouTube');
364
-
365
- _defineProperty(YouTube, "canPlay", _patterns.canPlay.youtube);
366
- } (YouTube$2));
367
-
368
- var YouTube = /*@__PURE__*/getDefaultExportFromCjs(YouTube$2);
369
-
370
- var YouTube$1 = /*#__PURE__*/_mergeNamespaces({
371
- __proto__: null,
372
- default: YouTube
373
- }, [YouTube$2]);
374
-
375
- export { YouTube$1 as Y };