@lanaco/lnc-react-ui 4.0.199 → 4.0.201

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 (270) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,17 +1,16 @@
1
- import { jsx as l, Fragment as $, jsxs as U } from "react/jsx-runtime";
2
- import { useState as X, useRef as A, useEffect as F, createElement as Z, forwardRef as ee, useImperativeHandle as re } from "react";
3
- import { P as r } from "./index-CblbdqjE.js";
4
- import { c as z, r as G, i as V } from "./utils-DtEfC-TX.js";
5
- import te from "./Table.js";
6
- import { s as Y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import N from "./TextInput.js";
8
- import oe from "./NumberInput.js";
9
- import ne from "./DecimalInput.js";
10
- import ae from "./CheckBoxInput.js";
11
- import se from "./Dropdown.js";
12
- import ce from "./DecimalInputV2.js";
13
- import { u as le } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
14
- const h = {
1
+ import { jsx as c, Fragment as P, jsxs as W } from "react/jsx-runtime";
2
+ import { useState as q, useRef as g, useEffect as N, createElement as J, forwardRef as Q, useImperativeHandle as U } from "react";
3
+ import { c as M, r as k, i as x } from "./utils-DtEfC-TX.js";
4
+ import X from "./Table.js";
5
+ import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import S from "./TextInput.js";
7
+ import Y from "./NumberInput.js";
8
+ import Z from "./DecimalInput.js";
9
+ import ee from "./CheckBoxInput.js";
10
+ import te from "./Dropdown.js";
11
+ import re from "./DecimalInputV2.js";
12
+ import { u as oe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
13
+ const E = {
15
14
  BOOLEAN: "BOOLEAN",
16
15
  STRING: "STRING",
17
16
  INTEGER: "INTEGER",
@@ -19,24 +18,24 @@ const h = {
19
18
  DECIMAL2: "DECIMAL2",
20
19
  DATE: "DATE",
21
20
  SELECT: "SELECT"
22
- }, ie = Y.td`
21
+ }, ae = _.td`
23
22
  white-space: nowrap;
24
23
  overflow: hidden;
25
24
  text-overflow: ellipsis;
26
- max-width: ${(o) => o.width};
27
- padding: ${(o) => o.focused && !o.isBoolean ? "0.5rem 0.5rem 0.5rem 0.7rem" : "0.5rem 0.5rem 0.5rem 1.5rem"};
28
- ${(o) => o.bgColor}
25
+ max-width: ${(r) => r.width};
26
+ padding: ${(r) => r.focused && !r.isBoolean ? "0.5rem 0.5rem 0.5rem 0.7rem" : "0.5rem 0.5rem 0.5rem 1.5rem"};
27
+ ${(r) => r.bgColor}
29
28
 
30
- ${(o) => z(o.theme, "TableCell", o.size, "enabled")};
31
- `, ue = Y.div`
32
- ${(o) => z(
33
- o.theme,
29
+ ${(r) => M(r.theme, "TableCell", r.size, "enabled")};
30
+ `, se = _.div`
31
+ ${(r) => M(
32
+ r.theme,
34
33
  "TableSpecialLastRow",
35
- o.size,
34
+ r.size,
36
35
  "enabled"
37
36
  )};
38
- padding: ${(o) => o.hasRender ? "0" : "9.5px 6px 9.5px 0"};
39
- cursor: ${(o) => o.tabIndex !== -1 ? "pointer" : "auto"};
37
+ padding: ${(r) => r.hasRender ? "0" : "9.5px 6px 9.5px 0"};
38
+ cursor: ${(r) => r.tabIndex !== -1 ? "pointer" : "auto"};
40
39
  white-space: nowrap;
41
40
  overflow: hidden;
42
41
  text-overflow: ellipsis;
@@ -44,141 +43,139 @@ const h = {
44
43
  &:focus {
45
44
  outline: none;
46
45
  }
47
- `, x = (o) => {
48
- const [u, L] = X(!1);
49
- var c = A(), w = A(), y = A(!0);
46
+ `, $ = (r) => {
47
+ const [i, A] = q(!1);
48
+ var n = g(), w = g(), v = g(!0);
50
49
  const {
51
- __TYPE__: I = "TABLE_CELL",
52
50
  Column: e = {},
53
- ColumnsToRender: d,
51
+ ColumnsToRender: u,
54
52
  RowData: a = {},
55
- Index: T = 0,
56
- RowIndex: f,
53
+ Index: h = 0,
54
+ RowIndex: d,
57
55
  EnableSelection: D = !1,
58
- TabIndexOffset: O = 100,
59
- onFocusChanged: R,
60
- RowIdentifier: k,
61
- onDiscard: S,
62
- onMount: t,
56
+ TabIndexOffset: R = 100,
57
+ onFocusChanged: F,
58
+ onDiscard: O,
59
+ onMount: y,
63
60
  //----------------
64
- onChange: s,
61
+ onChange: t,
65
62
  //----------------
66
- className: b = "",
67
- size: C = "small",
68
- color: p = "primary"
69
- } = o, j = le(), P = {
70
- className: b,
71
- size: C,
72
- color: p,
73
- theme: j
63
+ className: s = "",
64
+ size: f = "small",
65
+ color: C = "primary"
66
+ } = r, p = oe(), L = {
67
+ className: s,
68
+ size: f,
69
+ color: C,
70
+ theme: p
74
71
  };
75
- F(() => {
76
- t(f, T, w);
77
- }, []), F(() => {
78
- u || t(f, T, w);
79
- }, [u]), F(() => {
80
- u && c && c.current && c.current.focus();
81
- }, [u]);
82
- const H = () => e && e.width ? e.width + "%" : "auto", B = () => {
72
+ N(() => {
73
+ y(d, h, w);
74
+ }, []), N(() => {
75
+ i || y(d, h, w);
76
+ }, [i]), N(() => {
77
+ i && n && n.current && n.current.focus();
78
+ }, [i]);
79
+ const G = () => e && e.width ? e.width + "%" : "auto", B = () => {
83
80
  if (e.editable !== !0) return -1;
84
- var n = d.filter((m) => m.editable), E = n.find((m) => m.id === e.id);
85
- return O + f * n.length + n.indexOf(E);
86
- }, v = (n, E) => {
87
- R(n, E, f, T), E || L(E);
88
- }, M = (n) => {
89
- n.key === "Escape" && (y.current = !1, c.current.blur(), y.current = !0, S(n, f, T, a));
90
- }, W = () => {
91
- var n = null, E = (i, Q) => {
92
- s(i, Q, f, T, e, a);
93
- }, m = (i) => {
94
- s(_, i, f, T, e, a);
95
- }, g = {
96
- ...P,
81
+ var o = u.filter((b) => b.editable), m = o.find((b) => b.id === e.id);
82
+ return R + d * o.length + o.indexOf(m);
83
+ }, I = (o, m) => {
84
+ F(o, m, d, h), m || A(m);
85
+ }, j = (o) => {
86
+ o.key === "Escape" && (v.current = !1, n.current.blur(), v.current = !0, O(o, d, h, a));
87
+ }, V = () => {
88
+ var o = null, m = (l, H) => {
89
+ t(l, H, d, h, e, a);
90
+ }, b = (l) => {
91
+ t(null, l, d, h, e, a);
92
+ }, T = {
93
+ ...L,
97
94
  debounceTime: 0,
98
95
  ...e.inputProps,
99
96
  value: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
100
97
  defaultChecked: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
101
- focused: u,
102
- onChange: E,
103
- onBlur: (i) => v(i, !1),
104
- onFocus: (i) => v(i, !0),
105
- onKeyDown: (i) => M(i),
98
+ focused: i,
99
+ onChange: m,
100
+ onBlur: (l) => I(l, !1),
101
+ onFocus: (l) => I(l, !0),
102
+ onKeyDown: (l) => j(l),
106
103
  tabIndex: B()
107
104
  };
108
105
  switch (e.inputType) {
109
- case h.STRING:
110
- n = /* @__PURE__ */ l(N, { ...g, ref: c });
106
+ case E.STRING:
107
+ o = /* @__PURE__ */ c(S, { ...T, ref: n });
111
108
  break;
112
- case h.INTEGER:
113
- n = /* @__PURE__ */ l(oe, { ...g, ref: c });
109
+ case E.INTEGER:
110
+ o = /* @__PURE__ */ c(Y, { ...T, ref: n });
114
111
  break;
115
- case h.DECIMAL:
116
- n = /* @__PURE__ */ l(ne, { ...g, ref: c });
112
+ case E.DECIMAL:
113
+ o = /* @__PURE__ */ c(Z, { ...T, ref: n });
117
114
  break;
118
- case h.DECIMAL2:
119
- n = /* @__PURE__ */ l(ce, { ...g, ref: c });
115
+ case E.DECIMAL2:
116
+ o = /* @__PURE__ */ c(re, { ...T, ref: n });
120
117
  break;
121
- case h.DATE:
122
- n = /* @__PURE__ */ l(N, { ...g, ref: c });
118
+ case E.DATE:
119
+ o = /* @__PURE__ */ c(S, { ...T, ref: n });
123
120
  break;
124
- case h.BOOLEAN:
125
- n = /* @__PURE__ */ l(ae, { ...g, ref: c });
121
+ case E.BOOLEAN:
122
+ o = /* @__PURE__ */ c(ee, { ...T, ref: n });
126
123
  break;
127
- case h.SELECT:
128
- n = /* @__PURE__ */ l(
129
- se,
124
+ case E.SELECT:
125
+ o = /* @__PURE__ */ c(
126
+ te,
130
127
  {
131
- ...g,
128
+ ...T,
132
129
  value: e.inputProps.options.find(
133
- (i) => i.value === (e == null ? void 0 : e.objectAccessor) ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor]
130
+ (l) => l.value === (e == null ? void 0 : e.objectAccessor) ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor]
134
131
  ),
135
- onChange: m,
136
- ref: c
132
+ onChange: b,
133
+ ref: n
137
134
  }
138
135
  );
139
136
  break;
140
137
  default:
141
- n = /* @__PURE__ */ l(N, { ...g, ref: c });
138
+ o = /* @__PURE__ */ c(S, { ...T, ref: n });
142
139
  }
143
- return n;
144
- }, q = (n) => {
145
- y.current === !0 ? v(n, !1) : L(!1);
146
- }, J = () => {
147
- var n = W();
140
+ return o;
141
+ }, z = (o) => {
142
+ v.current === !0 ? I(o, !1) : A(!1);
143
+ }, K = () => {
144
+ var o = V();
148
145
  if (e.editable === !0 && e.editComponent) {
149
- var E = {};
150
- e.inputType === h.SELECT && (E = {
146
+ var m = {};
147
+ e.inputType === E.SELECT && (m = {
151
148
  items: e.selectItems,
152
149
  mapNameTo: e.selectProps.mapNameTo,
153
150
  mapValueTo: e.selectProps.mapValueTo
154
- }), n = /* @__PURE__ */ l(
151
+ }), o = /* @__PURE__ */ c(
155
152
  e.editComponent,
156
153
  {
157
- ref: c,
154
+ ref: n,
158
155
  tabIndex: B(),
159
156
  value: e != null && e.objectAccessor ? a[e.accessor][e == null ? void 0 : e.objectAccessor] : a[e.accessor],
160
- onChange: (m, g, i) => {
161
- s(m, g, f, T, e, a, i);
157
+ onChange: (b, T, l) => {
158
+ t(b, T, d, h, e, a, l);
162
159
  },
163
- focused: u,
164
- onBlur: q,
165
- onFocus: (m) => v(m, !0),
166
- onKeyDown: (m) => M(m),
167
- ...E
160
+ focused: i,
161
+ onBlur: z,
162
+ onFocus: (b) => I(b, !0),
163
+ onKeyDown: (b) => j(b),
164
+ ...m
168
165
  }
169
166
  );
170
167
  }
171
- if (e.editable === !0 && u) return n;
172
- if (!u || e.editable !== !0)
173
- return /* @__PURE__ */ l(
174
- ue,
168
+ if (e.editable === !0 && i) return o;
169
+ if (!i || e.editable !== !0)
170
+ return /* @__PURE__ */ c(
171
+ se,
175
172
  {
176
173
  ref: w,
177
174
  tabIndex: B(),
178
- onFocus: () => L(!0),
175
+ onFocus: () => A(!0),
179
176
  hasRender: !!e.readonlyComponent,
180
- ...P,
181
- children: e.readonlyComponent ? /* @__PURE__ */ l(
177
+ ...L,
178
+ children: e.readonlyComponent ? /* @__PURE__ */ c(
182
179
  e.readonlyComponent,
183
180
  {
184
181
  rowData: a,
@@ -190,67 +187,44 @@ const h = {
190
187
  }
191
188
  );
192
189
  };
193
- return /* @__PURE__ */ Z(
194
- ie,
190
+ return /* @__PURE__ */ J(
191
+ ae,
195
192
  {
196
- "data-rowindex": f,
197
- ...P,
193
+ "data-rowindex": d,
194
+ ...L,
198
195
  selection: D,
199
- width: H(),
200
- key: T,
201
- focused: u,
202
- isBoolean: e.inputType === h.BOOLEAN
196
+ width: G(),
197
+ key: h,
198
+ focused: i,
199
+ isBoolean: e.inputType === E.BOOLEAN
203
200
  },
204
- J()
201
+ K()
205
202
  );
206
203
  };
207
- x.propTypes = {
208
- __TYPE__: r.string,
209
- //----------------------------------------
210
- Column: r.object,
211
- RowData: r.object,
212
- Index: r.number,
213
- EnableSelection: r.bool,
214
- TabIndexOffset: r.number,
215
- //----------------------------------------
216
- className: r.string,
217
- size: r.oneOf(["small", "medium", "large"]),
218
- color: r.oneOf([
219
- "primary",
220
- "secondary",
221
- "success",
222
- "warning",
223
- "danger",
224
- "information",
225
- "neutral",
226
- "gray"
227
- ])
228
- };
229
- x.displayName = "TABLE_CELL";
230
- const K = ee((o, u) => {
204
+ $.displayName = "TABLE_CELL";
205
+ const ne = Q((r, i) => {
231
206
  var {
232
- __TYPE__: L = "EDITABLE_TABLE",
233
- Data: c = [],
234
- onRowFocusChange: w = () => {
207
+ Data: A = [],
208
+ onRowFocusChange: n = () => {
235
209
  },
236
- onDiscard: y = () => {
210
+ onDiscard: w = () => {
237
211
  },
238
- onInputChange: I = () => {
212
+ onInputChange: v = () => {
239
213
  }
240
- } = o;
241
- const e = A({
214
+ } = r;
215
+ const e = g({
242
216
  FocusedCell: null,
243
217
  PreviousFocusedCell: null
244
- }), d = A([]), a = A(null), T = A();
245
- re(
246
- u,
218
+ }), u = g([]), a = g(null), h = g();
219
+ U(
220
+ i,
247
221
  () => ({
248
222
  focusFirstCellOfLastRow: () => {
249
223
  a.current && a.current.focus();
250
224
  },
251
225
  focusLastActiveCell: () => {
252
226
  try {
253
- var t = d.current.find(
227
+ var t = u.current.find(
254
228
  (s) => s.row === e.current.PreviousFocusedCell.row && s.cell === e.current.PreviousFocusedCell.cell
255
229
  );
256
230
  t.ref && t.ref.focus();
@@ -259,209 +233,69 @@ const K = ee((o, u) => {
259
233
  }
260
234
  }),
261
235
  [
262
- o
236
+ r
263
237
  // Update functions when certain state changes
264
238
  ]
265
239
  );
266
- const f = (t, s, b, C, p, j) => {
267
- I && I(t, s, b, C, p, j);
268
- }, D = (t, s, b, C, p) => {
240
+ const d = (t, s, f, C, p, L) => {
241
+ v && v(t, s, f, C, p, L);
242
+ }, D = (t, s, f, C, p) => {
269
243
  s && (e.current = {
270
244
  ...e.current,
271
245
  FocusedCell: {
272
- row: b,
246
+ row: f,
273
247
  cell: C,
274
248
  ref: p
275
249
  }
276
250
  }), s || (e.current = {
277
251
  PreviousFocusedCell: e.current.FocusedCell,
278
252
  FocusedCell: null
279
- }, O(t, b));
280
- }, O = (t, s) => {
281
- (t.relatedTarget === null || t.relatedTarget.closest("tbody") === null || !t.relatedTarget.closest("tbody").hasAttribute("data-tbody")) && w(t, s, -1), t.relatedTarget && t.relatedTarget.closest("tbody") && t.relatedTarget.closest("tbody").hasAttribute("data-tbody") && parseInt(t.relatedTarget.closest("td").getAttribute("data-rowindex")) !== s && w(
253
+ }, R(t, f));
254
+ }, R = (t, s) => {
255
+ (t.relatedTarget === null || t.relatedTarget.closest("tbody") === null || !t.relatedTarget.closest("tbody").hasAttribute("data-tbody")) && n(t, s, -1), t.relatedTarget && t.relatedTarget.closest("tbody") && t.relatedTarget.closest("tbody").hasAttribute("data-tbody") && parseInt(t.relatedTarget.closest("td").getAttribute("data-rowindex")) !== s && n(
282
256
  t,
283
257
  s,
284
258
  parseInt(t.relatedTarget.closest("td").getAttribute("data-rowindex"))
285
259
  );
286
- }, R = (t, s, b) => {
287
- if (t === c.length - 1 && s === 0 && (a.current = b.current), d.current.length === 0 && (d.current = [
288
- { row: t, cell: s, ref: b.current }
289
- ]), d.current.length > 0 && d.current.find(
260
+ }, F = (t, s, f) => {
261
+ if (t === A.length - 1 && s === 0 && (a.current = f.current), u.current.length === 0 && (u.current = [
262
+ { row: t, cell: s, ref: f.current }
263
+ ]), u.current.length > 0 && u.current.find(
290
264
  (p) => p.row === t && p.cell === s
291
265
  )) {
292
- var C = d.current.find(
266
+ var C = u.current.find(
293
267
  (p) => p.row === t && p.cell === s
294
268
  );
295
- C.ref = b.current;
296
- } else d.current.length > 0 && (d.current = [
297
- ...d.current,
298
- { row: t, cell: s, ref: b.current }
269
+ C.ref = f.current;
270
+ } else u.current.length > 0 && (u.current = [
271
+ ...u.current,
272
+ { row: t, cell: s, ref: f.current }
299
273
  ]);
300
- }, k = () => G(
301
- V("TABLE_SPECIAL_LAST_ROW", o.children),
274
+ }, O = () => k(
275
+ x("TABLE_SPECIAL_LAST_ROW", r.children),
302
276
  {
303
277
  TabIndexOffset: 50
304
278
  }
305
- ) || /* @__PURE__ */ l($, {}), S = () => {
279
+ ) || /* @__PURE__ */ c(P, {}), y = () => {
306
280
  var t = {
307
281
  TabIndexOffset: 50,
308
282
  onFocusChanged: D,
309
- onChange: f,
310
- onDiscard: y,
311
- onMount: R
283
+ onChange: d,
284
+ onDiscard: w,
285
+ onMount: F
312
286
  };
313
- return G(
314
- V("TABLE_CELL", o.children),
287
+ return k(
288
+ x("TABLE_CELL", r.children),
315
289
  t
316
- ) || /* @__PURE__ */ l(x, { ...t });
290
+ ) || /* @__PURE__ */ c($, { ...t });
317
291
  };
318
- return /* @__PURE__ */ l($, { children: /* @__PURE__ */ U(te, { ref: T, ...o, Data: c, VisibilityPattern: null, children: [
319
- o.children,
320
- S(),
321
- k()
292
+ return /* @__PURE__ */ c(P, { children: /* @__PURE__ */ W(X, { ref: h, ...r, Data: A, VisibilityPattern: null, children: [
293
+ r.children,
294
+ y(),
295
+ O()
322
296
  ] }) });
323
297
  });
324
- K.propTypes = {
325
- /**
326
- * This property determines where the component is rendered.
327
- * Should not be overridden!
328
- */
329
- __TYPE__: r.string,
330
- //----------------------------------------
331
- /**
332
- * Show a selection checkbox in the first cell of every row.
333
- * Value of the checkbox is determined by the `SelectedData` property.
334
- */
335
- EnableSelection: r.bool,
336
- /**
337
- * Show ordering arrows in header cells.
338
- */
339
- EnableOrdering: r.bool,
340
- /**
341
- * Show a spinner with backdrop on top of the table when `Loading` is set to `true`.
342
- */
343
- EnableLoader: r.bool,
344
- /**
345
- * Show a selection checkbox in the first cell of the table header.
346
- * Value of the checkbox is determined by the `SelectedEntirePage` property.
347
- */
348
- EnableSelectAll: r.bool,
349
- //----------------------------------------
350
- /**
351
- * Specify the text that is shown when there are 0 rows in the `Data`.
352
- */
353
- NoDataText: r.string,
354
- /**
355
- * Disables some events and actions when set to `true`. Also triggers the spinner if `EnableLoader` is set to `true`.
356
- */
357
- Loading: r.bool,
358
- /**
359
- * Defines the table columns.
360
- * @param id - Column identifier
361
- * @param displayName - Text displayed in the header
362
- * @param accessor - Access the property in `Data`
363
- * @param width - Default column width (overridden by the VisibilityPattern)
364
- * @param sortable - Can be sorted
365
- *
366
- */
367
- Columns: r.arrayOf(r.object),
368
- /**
369
- * Defines the data displayed in each row.
370
- */
371
- Data: r.arrayOf(r.object),
372
- /**
373
- * Define the selected data.
374
- * @param id - Column identifier (mandatory field)
375
- */
376
- SelectedData: r.arrayOf(r.object),
377
- /**
378
- * Value of the `SelectAll` checkbox.
379
- */
380
- SelectedEntirePage: r.bool,
381
- /**
382
- * Defines which field in a data object is the row identifier.
383
- */
384
- RowIdentifier: r.string,
385
- /**
386
- * An object that defines the width and order of columns for different screen sizes.
387
- * (`XS`,`S`,`M`,`L`,`XL`)
388
- */
389
- VisibilityPattern: r.object,
390
- /**
391
- * Describe how the data is ordered.
392
- * @param columnId - Column identifier, maps to the id on the Column object
393
- */
394
- Ordering: r.object,
395
- //----------------------------------------
396
- /**
397
- * Triggers when the focus is moved to another row or another component outside of the table
398
- * @param event - event object
399
- * @param currentRowIndex - index of the currently focused row
400
- * @param nextRowIndex - index of the next focused row (-1 if the focuse moves otutside of the table rows)
401
- */
402
- onRowFocusChange: () => {
403
- },
404
- /**
405
- *
406
- */
407
- onDiscard: () => {
408
- },
409
- /**
410
- *
411
- */
412
- onInputChange: () => {
413
- },
414
- //----------------------------------------
415
- /**
416
- * Triggered on header cell click.
417
- * @param event - event object
418
- * @param column - column definition
419
- * @param ordering - updated ordering object, or undefined if ordering is not enabled or the column is not sortable
420
- */
421
- onColumnClick: r.func,
422
- /**
423
- * Triggered on table row click.
424
- * @param event - event object
425
- * @param rowData - row data
426
- */
427
- onRowClick: r.func,
428
- /**
429
- * Triggered on selection checkbox click.
430
- * @param event - event object
431
- * @param rowData - row data
432
- * @param isSelected - the value of selection checkbox
433
- */
434
- onSelectRow: r.func,
435
- /**
436
- * Triggered on select all checkbox click.
437
- * @param event - event object
438
- * @param isSelected - the value of select all checkbox
439
- */
440
- onSelectAll: r.func,
441
- //----------------------------------------
442
- /**
443
- * `className` applied to the component container.
444
- */
445
- className: r.string,
446
- /**
447
- * Defines size of the component (padding, margin, font etc.).
448
- */
449
- size: r.oneOf(["small", "medium", "large"]),
450
- /**
451
- * Defines the palette color for the component.
452
- */
453
- color: r.oneOf([
454
- "primary",
455
- "secondary",
456
- "success",
457
- "error",
458
- "warning",
459
- "gray",
460
- "white",
461
- "neutral"
462
- ])
463
- };
464
- K.displayName = "EDITABLE_TABLE";
298
+ ne.displayName = "EDITABLE_TABLE";
465
299
  export {
466
- K as default
300
+ ne as default
467
301
  };
@@ -1,6 +1,6 @@
1
1
  import { g as _ } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  import g from "react";
3
- import { u as P, p as m } from "./SearchSection-DDQ_K98T.js";
3
+ import { u as P, p as m } from "./SearchSection-DAaMecR4.js";
4
4
  function v(t, e) {
5
5
  for (var r = 0; r < e.length; r++) {
6
6
  const o = e[r];
@@ -1 +1 @@
1
- "use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-BcbHP6QF.cjs");function m(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of D(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=O(e,s))||o.enumerable});return t},I=(t,e,r)=>(r=t!=null?v(S(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),d={};k(d,{default:()=>l});var _=w(d),u=I(g),n=h.utils,F=h.patterns;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(o=>o.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",F.canPlay.facebook);a(l,"loopOnEnded",!0);const M=P.getDefaultExportFromCjs(_),x=m({__proto__:null,default:M},[_]);exports.Facebook=x;
1
+ "use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),h=require("./SearchSection-B94YN_6P.cjs");function m(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,S=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of D(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=O(e,s))||o.enumerable});return t},I=(t,e,r)=>(r=t!=null?v(S(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),w=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),d={};k(d,{default:()=>l});var _=w(d),u=I(g),n=h.utils,F=h.patterns;const c="https://connect.facebook.net/en_US/sdk.js",y="FB",f="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,y,f).then(o=>o.XFBML.parse());return}(0,n.getSDK)(c,y,f).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",F.canPlay.facebook);a(l,"loopOnEnded",!0);const M=P.getDefaultExportFromCjs(_),x=m({__proto__:null,default:M},[_]);exports.Facebook=x;