@lanaco/lnc-react-ui 4.0.111 → 4.0.113

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 (282) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +1 -1
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +1 -1
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +1 -1
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +1 -1
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +1 -1
  15. package/dist/BannerSectionCarousel.cjs +1 -1
  16. package/dist/BannerSectionCarousel.js +3 -3
  17. package/dist/BlogCardsSponsoredSection.cjs +25 -14
  18. package/dist/BlogCardsSponsoredSection.js +58 -47
  19. package/dist/BlogListSection.cjs +37 -9
  20. package/dist/BlogListSection.js +127 -70
  21. package/dist/BlogsSectionDetailed.cjs +7 -2
  22. package/dist/BlogsSectionDetailed.js +6 -1
  23. package/dist/BlogsSectionSimpleCentered.cjs +3 -2
  24. package/dist/BlogsSectionSimpleCentered.js +1 -0
  25. package/dist/BlogsSectionWithFilters.cjs +1 -1
  26. package/dist/BlogsSectionWithFilters.js +1 -1
  27. package/dist/BrandHitsSection.cjs +11 -11
  28. package/dist/BrandHitsSection.js +40 -38
  29. package/dist/Breadcrumbs.cjs +1 -1
  30. package/dist/Breadcrumbs.js +1 -1
  31. package/dist/Button.cjs +1 -1
  32. package/dist/Button.js +2 -2
  33. package/dist/ButtonGroup.cjs +1 -1
  34. package/dist/ButtonGroup.js +1 -1
  35. package/dist/CalorieCalculatorSection.cjs +1 -1
  36. package/dist/CalorieCalculatorSection.js +1 -1
  37. package/dist/CheckBoxInput.cjs +1 -1
  38. package/dist/CheckBoxInput.js +1 -1
  39. package/dist/Chip.cjs +1 -1
  40. package/dist/Chip.js +1 -1
  41. package/dist/ColorInput.cjs +1 -1
  42. package/dist/ColorInput.js +2 -2
  43. package/dist/ConfirmationForm.cjs +1 -1
  44. package/dist/ConfirmationForm.js +1 -1
  45. package/dist/ContactSection.cjs +303 -0
  46. package/dist/ContactSection.js +1614 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +1 -1
  49. package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
  50. package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
  51. package/dist/DailyMotion-CUHIuSln.js +136 -0
  52. package/dist/DailyMotion-D46sLmkS.cjs +1 -0
  53. package/dist/DataView.cjs +1 -1
  54. package/dist/DataView.js +1 -1
  55. package/dist/DateInput.cjs +4 -4
  56. package/dist/DateInput.js +496 -552
  57. package/dist/DecimalInput.cjs +1 -1
  58. package/dist/DecimalInput.js +2 -2
  59. package/dist/DecimalInputV2.cjs +1 -1
  60. package/dist/DecimalInputV2.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +1 -1
  63. package/dist/DetailsView.cjs +1 -1
  64. package/dist/DetailsView.js +1 -1
  65. package/dist/DoubleRangeSlider.cjs +1 -1
  66. package/dist/DoubleRangeSlider.js +1 -1
  67. package/dist/DragAndDropFile.cjs +1 -1
  68. package/dist/DragAndDropFile.js +1 -1
  69. package/dist/DragDropFiles.cjs +1 -1
  70. package/dist/DragDropFiles.js +1 -1
  71. package/dist/Drawer.cjs +1 -1
  72. package/dist/Drawer.js +2 -2
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +5 -5
  75. package/dist/DropdownItem.cjs +1 -1
  76. package/dist/DropdownItem.js +1 -1
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +4 -4
  79. package/dist/DropdownMenu.cjs +1 -1
  80. package/dist/DropdownMenu.js +1 -1
  81. package/dist/EditableTable.cjs +1 -1
  82. package/dist/EditableTable.js +1 -1
  83. package/dist/Facebook-R53Rry9l.cjs +1 -0
  84. package/dist/Facebook-aEQQxj-r.js +121 -0
  85. package/dist/FaqSection.cjs +219 -0
  86. package/dist/FaqSection.js +481 -0
  87. package/dist/FeedbackSection.cjs +1 -1
  88. package/dist/FeedbackSection.js +1 -1
  89. package/dist/FileInput.cjs +1 -1
  90. package/dist/FileInput.js +1 -1
  91. package/dist/FilePlayer-9FdL9kM0.js +202 -0
  92. package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
  93. package/dist/FlexBox.cjs +1 -1
  94. package/dist/FlexBox.js +1 -1
  95. package/dist/FlexGrid.cjs +1 -1
  96. package/dist/FlexGrid.js +1 -1
  97. package/dist/FlexGridItem.cjs +1 -1
  98. package/dist/FlexGridItem.js +1 -1
  99. package/dist/Footer.cjs +1 -1
  100. package/dist/Footer.js +1 -1
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +1 -1
  103. package/dist/FormView.cjs +1 -1
  104. package/dist/FormView.js +1 -1
  105. package/dist/Grid.cjs +1 -1
  106. package/dist/Grid.js +1 -1
  107. package/dist/GridItem.cjs +1 -1
  108. package/dist/GridItem.js +1 -1
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +1 -1
  111. package/dist/HelpBannerSection.cjs +62 -0
  112. package/dist/HelpBannerSection.js +81 -0
  113. package/dist/Icon.cjs +1 -1
  114. package/dist/Icon.js +1 -1
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +1 -1
  117. package/dist/Kaltura-C170sgeD.cjs +1 -0
  118. package/dist/Kaltura-Dziqci9-.js +121 -0
  119. package/dist/Kanban.cjs +1 -1
  120. package/dist/Kanban.js +5 -5
  121. package/dist/KanbanActionsToolbar.cjs +1 -1
  122. package/dist/KanbanActionsToolbar.js +1 -1
  123. package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
  124. package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -2
  127. package/dist/KanbanFooter.cjs +1 -1
  128. package/dist/KanbanFooter.js +1 -1
  129. package/dist/KanbanHeader.cjs +1 -1
  130. package/dist/KanbanHeader.js +1 -1
  131. package/dist/KanbanView.cjs +1 -1
  132. package/dist/KanbanView.js +2 -2
  133. package/dist/Link.cjs +1 -1
  134. package/dist/Link.js +1 -1
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MenuItem.cjs +1 -1
  138. package/dist/MenuItem.js +1 -1
  139. package/dist/Mixcloud-Cfn28kqf.js +113 -0
  140. package/dist/Mixcloud-Towpm_ct.cjs +1 -0
  141. package/dist/Modal.cjs +1 -1
  142. package/dist/Modal.js +2 -2
  143. package/dist/MultiSelectDropdown.cjs +1 -1
  144. package/dist/MultiSelectDropdown.js +3 -3
  145. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  146. package/dist/MultiSelectDropdownLookup.js +3 -3
  147. package/dist/Mux-D0MPDKkM.js +165 -0
  148. package/dist/Mux-yqNOmuss.cjs +1 -0
  149. package/dist/NestedDropdownItem.cjs +1 -1
  150. package/dist/NestedDropdownItem.js +1 -1
  151. package/dist/NestedMenuItem.cjs +1 -1
  152. package/dist/NestedMenuItem.js +1 -1
  153. package/dist/Notification.cjs +1 -1
  154. package/dist/Notification.js +1 -1
  155. package/dist/NotificationContainer.cjs +1 -1
  156. package/dist/NotificationContainer.js +2 -2
  157. package/dist/NotificationMessage.cjs +1 -1
  158. package/dist/NotificationMessage.js +1 -1
  159. package/dist/NumberInput.cjs +1 -1
  160. package/dist/NumberInput.js +2 -2
  161. package/dist/PageLayout.cjs +1 -1
  162. package/dist/PageLayout.js +1 -1
  163. package/dist/Pagination.cjs +1 -1
  164. package/dist/Pagination.js +1 -1
  165. package/dist/PasswordInput.cjs +1 -1
  166. package/dist/PasswordInput.js +2 -2
  167. package/dist/Popover.cjs +1 -1
  168. package/dist/Popover.js +1 -1
  169. package/dist/PopoverContent.cjs +1 -1
  170. package/dist/PopoverContent.js +2 -2
  171. package/dist/PopoverDescription.cjs +1 -1
  172. package/dist/PopoverDescription.js +1 -1
  173. package/dist/PopoverHeading.cjs +1 -1
  174. package/dist/PopoverHeading.js +1 -1
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +2 -2
  177. package/dist/Preview-B8HyPnfR.cjs +1 -0
  178. package/dist/Preview-CO6WSP5f.js +127 -0
  179. package/dist/ProgressBar.cjs +1 -1
  180. package/dist/ProgressBar.js +1 -1
  181. package/dist/QuattroCardsSection.cjs +1 -1
  182. package/dist/QuattroCardsSection.js +1 -1
  183. package/dist/RadioGroup.cjs +1 -1
  184. package/dist/RadioGroup.js +1 -1
  185. package/dist/RadioInput.cjs +1 -1
  186. package/dist/RadioInput.js +1 -1
  187. package/dist/RangeSlider.cjs +1 -1
  188. package/dist/RangeSlider.js +1 -1
  189. package/dist/ReviewsSection.cjs +1 -1
  190. package/dist/ReviewsSection.js +1 -1
  191. package/dist/SalesCampaignsSection.cjs +47 -42
  192. package/dist/SalesCampaignsSection.js +353 -290
  193. package/dist/SearchBar.cjs +1 -1
  194. package/dist/SearchBar.js +3 -3
  195. package/dist/SearchSection-BUD-hnQA.cjs +161 -0
  196. package/dist/SearchSection-xe0nvARV.js +1214 -0
  197. package/dist/SearchSection.cjs +1 -0
  198. package/dist/SearchSection.js +9 -0
  199. package/dist/Separator.cjs +1 -1
  200. package/dist/Separator.js +1 -1
  201. package/dist/Sidebar.cjs +1 -1
  202. package/dist/Sidebar.js +1 -1
  203. package/dist/SoundCloud-D85Da68L.js +123 -0
  204. package/dist/SoundCloud-YZlcPffr.cjs +1 -0
  205. package/dist/Spinner.cjs +1 -1
  206. package/dist/Spinner.js +2 -2
  207. package/dist/StatsSection.cjs +117 -0
  208. package/dist/StatsSection.js +154 -0
  209. package/dist/Streamable-CJQf8evZ.cjs +1 -0
  210. package/dist/Streamable-Zj4FOeBP.js +115 -0
  211. package/dist/Surface.cjs +1 -1
  212. package/dist/Surface.js +1 -1
  213. package/dist/SwipeableDrawer.cjs +1 -1
  214. package/dist/SwipeableDrawer.js +1 -1
  215. package/dist/TabItem.cjs +1 -1
  216. package/dist/TabItem.js +1 -1
  217. package/dist/Table.cjs +1 -1
  218. package/dist/Table.js +3 -3
  219. package/dist/TableView.cjs +1 -1
  220. package/dist/TableView.js +1 -1
  221. package/dist/Tabs.cjs +1 -1
  222. package/dist/Tabs.js +1 -1
  223. package/dist/TextAreaInput.cjs +1 -1
  224. package/dist/TextAreaInput.js +2 -2
  225. package/dist/TextInput.cjs +1 -1
  226. package/dist/TextInput.js +2 -2
  227. package/dist/ThemeProvider.cjs +1 -1
  228. package/dist/ThemeProvider.js +2 -2
  229. package/dist/TimeInput.cjs +1 -1
  230. package/dist/TimeInput.js +2 -2
  231. package/dist/Toggle.cjs +1 -1
  232. package/dist/Toggle.js +1 -1
  233. package/dist/TreeMenu.cjs +1 -1
  234. package/dist/TreeMenu.js +1 -1
  235. package/dist/TreeMenuSeparator.cjs +1 -1
  236. package/dist/TreeMenuSeparator.js +1 -1
  237. package/dist/Twitch-Ba2O5gTX.cjs +1 -0
  238. package/dist/Twitch-DC97YrR8.js +117 -0
  239. package/dist/UploadedFile.cjs +1 -1
  240. package/dist/UploadedFile.js +1 -1
  241. package/dist/Vidyard-BdNB5Wka.cjs +1 -0
  242. package/dist/Vidyard-D9vYqvNv.js +113 -0
  243. package/dist/Vimeo-23LnW4uS.js +146 -0
  244. package/dist/Vimeo-DatJiKS5.cjs +1 -0
  245. package/dist/Wistia-D--UDN6c.cjs +1 -0
  246. package/dist/Wistia-d2TQ3m-s.js +124 -0
  247. package/dist/YouTube-BEkcZxN7.cjs +1 -0
  248. package/dist/YouTube-x5-hc3s6.js +176 -0
  249. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  250. package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
  251. package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
  252. package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
  253. package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
  254. package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
  255. package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
  256. package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
  257. package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
  258. package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
  259. package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
  260. package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
  261. package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
  262. package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
  263. package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
  264. package/dist/index-CDGmG-qk.cjs +1 -0
  265. package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
  266. package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
  267. package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
  268. package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
  269. package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
  270. package/dist/index-wlx30R-h.js +62 -0
  271. package/dist/index.cjs +1 -1
  272. package/dist/index.js +60 -50
  273. package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
  274. package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
  275. package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
  276. package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
  277. package/dist/usePopover.cjs +1 -1
  278. package/dist/usePopover.js +1 -1
  279. package/package.json +8 -2
  280. package/vite.config.js +14 -0
  281. package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
  282. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
@@ -0,0 +1,165 @@
1
+ import { g as P } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import g from "react";
3
+ import { p as E } from "./SearchSection-xe0nvARV.js";
4
+ function b(r, e) {
5
+ for (var t = 0; t < e.length; t++) {
6
+ const i = e[t];
7
+ if (typeof i != "string" && !Array.isArray(i)) {
8
+ for (const s in i)
9
+ if (s !== "default" && !(s in r)) {
10
+ const o = Object.getOwnPropertyDescriptor(i, s);
11
+ o && Object.defineProperty(r, s, o.get ? o : {
12
+ enumerable: !0,
13
+ get: () => i[s]
14
+ });
15
+ }
16
+ }
17
+ }
18
+ return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
19
+ }
20
+ var _ = Object.create, a = Object.defineProperty, L = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, I = Object.getPrototypeOf, O = Object.prototype.hasOwnProperty, M = (r, e, t) => e in r ? a(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, x = (r, e) => {
21
+ for (var t in e)
22
+ a(r, t, { get: e[t], enumerable: !0 });
23
+ }, v = (r, e, t, i) => {
24
+ if (e && typeof e == "object" || typeof e == "function")
25
+ for (let s of k(e))
26
+ !O.call(r, s) && s !== t && a(r, s, { get: () => e[s], enumerable: !(i = L(e, s)) || i.enumerable });
27
+ return r;
28
+ }, R = (r, e, t) => (t = r != null ? _(I(r)) : {}, v(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ !r || !r.__esModule ? a(t, "default", { value: r, enumerable: !0 }) : t,
34
+ r
35
+ )), w = (r) => v(a({}, "__esModule", { value: !0 }), r), n = (r, e, t) => (M(r, typeof e != "symbol" ? e + "" : e, t), t), m = {};
36
+ x(m, {
37
+ default: () => l
38
+ });
39
+ var y = w(m), f = R(g), p = E;
40
+ const D = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";
41
+ class l extends f.Component {
42
+ constructor() {
43
+ super(...arguments), n(this, "onReady", (...e) => this.props.onReady(...e)), n(this, "onPlay", (...e) => this.props.onPlay(...e)), n(this, "onBuffer", (...e) => this.props.onBuffer(...e)), n(this, "onBufferEnd", (...e) => this.props.onBufferEnd(...e)), n(this, "onPause", (...e) => this.props.onPause(...e)), n(this, "onEnded", (...e) => this.props.onEnded(...e)), n(this, "onError", (...e) => this.props.onError(...e)), n(this, "onPlayBackRateChange", (e) => this.props.onPlaybackRateChange(e.target.playbackRate)), n(this, "onEnablePIP", (...e) => this.props.onEnablePIP(...e)), n(this, "onSeek", (e) => {
44
+ this.props.onSeek(e.target.currentTime);
45
+ }), n(this, "onDurationChange", () => {
46
+ const e = this.getDuration();
47
+ this.props.onDuration(e);
48
+ }), n(this, "mute", () => {
49
+ this.player.muted = !0;
50
+ }), n(this, "unmute", () => {
51
+ this.player.muted = !1;
52
+ }), n(this, "ref", (e) => {
53
+ this.player = e;
54
+ });
55
+ }
56
+ componentDidMount() {
57
+ this.props.onMount && this.props.onMount(this), this.addListeners(this.player);
58
+ const e = this.getPlaybackId(this.props.url);
59
+ e && (this.player.playbackId = e);
60
+ }
61
+ componentWillUnmount() {
62
+ this.player.playbackId = null, this.removeListeners(this.player);
63
+ }
64
+ addListeners(e) {
65
+ const { playsinline: t } = this.props;
66
+ e.addEventListener("play", this.onPlay), e.addEventListener("waiting", this.onBuffer), e.addEventListener("playing", this.onBufferEnd), e.addEventListener("pause", this.onPause), e.addEventListener("seeked", this.onSeek), e.addEventListener("ended", this.onEnded), e.addEventListener("error", this.onError), e.addEventListener("ratechange", this.onPlayBackRateChange), e.addEventListener("enterpictureinpicture", this.onEnablePIP), e.addEventListener("leavepictureinpicture", this.onDisablePIP), e.addEventListener("webkitpresentationmodechanged", this.onPresentationModeChange), e.addEventListener("canplay", this.onReady), t && e.setAttribute("playsinline", "");
67
+ }
68
+ removeListeners(e) {
69
+ e.removeEventListener("canplay", this.onReady), e.removeEventListener("play", this.onPlay), e.removeEventListener("waiting", this.onBuffer), e.removeEventListener("playing", this.onBufferEnd), e.removeEventListener("pause", this.onPause), e.removeEventListener("seeked", this.onSeek), e.removeEventListener("ended", this.onEnded), e.removeEventListener("error", this.onError), e.removeEventListener("ratechange", this.onPlayBackRateChange), e.removeEventListener("enterpictureinpicture", this.onEnablePIP), e.removeEventListener("leavepictureinpicture", this.onDisablePIP), e.removeEventListener("canplay", this.onReady);
70
+ }
71
+ async load(e) {
72
+ var t;
73
+ const { onError: i, config: s } = this.props;
74
+ if (!((t = globalThis.customElements) != null && t.get("mux-player")))
75
+ try {
76
+ await import(
77
+ /* webpackIgnore: true */
78
+ `${D.replace("VERSION", s.version)}`
79
+ ), this.props.onLoaded();
80
+ } catch (u) {
81
+ i(u);
82
+ }
83
+ const [, o] = e.match(p.MATCH_URL_MUX);
84
+ this.player.playbackId = o;
85
+ }
86
+ play() {
87
+ const e = this.player.play();
88
+ e && e.catch(this.props.onError);
89
+ }
90
+ pause() {
91
+ this.player.pause();
92
+ }
93
+ stop() {
94
+ this.player.playbackId = null;
95
+ }
96
+ seekTo(e, t = !0) {
97
+ this.player.currentTime = e, t || this.pause();
98
+ }
99
+ setVolume(e) {
100
+ this.player.volume = e;
101
+ }
102
+ enablePIP() {
103
+ this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player && this.player.requestPictureInPicture();
104
+ }
105
+ disablePIP() {
106
+ document.exitPictureInPicture && document.pictureInPictureElement === this.player && document.exitPictureInPicture();
107
+ }
108
+ setPlaybackRate(e) {
109
+ try {
110
+ this.player.playbackRate = e;
111
+ } catch (t) {
112
+ this.props.onError(t);
113
+ }
114
+ }
115
+ getDuration() {
116
+ if (!this.player)
117
+ return null;
118
+ const { duration: e, seekable: t } = this.player;
119
+ return e === 1 / 0 && t.length > 0 ? t.end(t.length - 1) : e;
120
+ }
121
+ getCurrentTime() {
122
+ return this.player ? this.player.currentTime : null;
123
+ }
124
+ getSecondsLoaded() {
125
+ if (!this.player)
126
+ return null;
127
+ const { buffered: e } = this.player;
128
+ if (e.length === 0)
129
+ return 0;
130
+ const t = e.end(e.length - 1), i = this.getDuration();
131
+ return t > i ? i : t;
132
+ }
133
+ getPlaybackId(e) {
134
+ const [, t] = e.match(p.MATCH_URL_MUX);
135
+ return t;
136
+ }
137
+ render() {
138
+ const { url: e, playing: t, loop: i, controls: s, muted: o, config: u, width: h, height: c } = this.props, d = {
139
+ width: h === "auto" ? h : "100%",
140
+ height: c === "auto" ? c : "100%"
141
+ };
142
+ return s === !1 && (d["--controls"] = "none"), /* @__PURE__ */ f.default.createElement(
143
+ "mux-player",
144
+ {
145
+ ref: this.ref,
146
+ "playback-id": this.getPlaybackId(e),
147
+ style: d,
148
+ preload: "auto",
149
+ autoPlay: t || void 0,
150
+ muted: o ? "" : void 0,
151
+ loop: i ? "" : void 0,
152
+ ...u.attributes
153
+ }
154
+ );
155
+ }
156
+ }
157
+ n(l, "displayName", "Mux");
158
+ n(l, "canPlay", p.canPlay.mux);
159
+ const j = /* @__PURE__ */ P(y), T = /* @__PURE__ */ b({
160
+ __proto__: null,
161
+ default: j
162
+ }, [y]);
163
+ export {
164
+ T as M
165
+ };
@@ -0,0 +1 @@
1
+ "use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-BUD-hnQA.cjs");function b(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in r)){const o=Object.getOwnPropertyDescriptor(i,s);o&&Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var _=Object.create,a=Object.defineProperty,L=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,I=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?a(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,x=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!O.call(r,s)&&s!==t&&a(r,s,{get:()=>e[s],enumerable:!(i=L(e,s))||i.enumerable});return r},R=(r,e,t)=>(t=r!=null?_(I(r)):{},f(!r||!r.__esModule?a(t,"default",{value:r,enumerable:!0}):t,r)),w=r=>f(a({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};x(y,{default:()=>l});var m=w(y),v=R(g),p=E.patterns;const S="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{await import(`${S.replace("VERSION",s.version)}`),this.props.onLoaded()}catch(u){i(u)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player&&this.player.requestPictureInPicture()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:u,width:c,height:h}=this.props,d={width:c==="auto"?c:"100%",height:h==="auto"?h:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...u.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const j=P.getDefaultExportFromCjs(m),D=b({__proto__:null,default:j},[m]);exports.Mux=D;
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-BPVoEhTF.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-CZynEOC_.cjs"),M=require("./motion-B_VPZaJq.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=require("./index-DZoWlChs.cjs"),j=b.styled(M.motion.div)`
1
+ "use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-BpbMKBf_.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-CZynEOC_.cjs"),M=require("./motion-B_VPZaJq.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=require("./index-DZoWlChs.cjs"),j=b.styled(M.motion.div)`
2
2
  margin-left: 0.3rem;
3
3
  padding-left: 0.3rem;
4
4
  border-left: ${s=>`2px solid ${w.getColorRgbaValue(s.theme,"MenuItem",s.color,"focus","background")}`};
@@ -1,6 +1,6 @@
1
1
  import { jsxs as S, Fragment as p, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as w, useState as x, cloneElement as l, Children as P, isValidElement as O } from "react";
3
- import { P as t } from "./index-S5Cd7WrG.js";
3
+ import { P as t } from "./index-CblbdqjE.js";
4
4
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { b as D } from "./utils-BbgAIA9N.js";
6
6
  import { m as j } from "./motion-Ckekul_K.js";
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),r=require("react"),t=require("./index-BPVoEhTF.cjs"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-CZynEOC_.cjs"),w=require("./motion-B_VPZaJq.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),O=require("./index-DZoWlChs.cjs"),$=M.styled(w.motion.div)`
1
+ "use strict";const n=require("react/jsx-runtime"),r=require("react"),t=require("./index-BpbMKBf_.cjs"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-CZynEOC_.cjs"),w=require("./motion-B_VPZaJq.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),O=require("./index-DZoWlChs.cjs"),$=M.styled(w.motion.div)`
2
2
  ${o=>o.tuckIn==!0&&`margin-left: ${o.tuckInSize};`}
3
3
  ${o=>o.tuckIn==!0&&`padding-left: ${o.tuckInSize};`}
4
4
  ${o=>o.tuckIn==!0&&`border-left: 2px solid ${q.getColorRgbaValue(o.theme,"MenuItem",o.color,"focus","background","backgroundOpacity")};`}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as O, Fragment as l, jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as P, useState as h, cloneElement as u, Children as w, isValidElement as z } from "react";
3
- import { P as t } from "./index-S5Cd7WrG.js";
3
+ import { P as t } from "./index-CblbdqjE.js";
4
4
  import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { b as j } from "./utils-BbgAIA9N.js";
6
6
  import { m as D } from "./motion-Ckekul_K.js";
@@ -1 +1 @@
1
- "use strict";const t=require("./react-toastify.esm-Dq1k28O7.cjs"),s=t.toast;module.exports=s;
1
+ "use strict";const t=require("./react-toastify.esm-BoMuFZcq.cjs"),s=t.toast;module.exports=s;
@@ -1,4 +1,4 @@
1
- import { t } from "./react-toastify.esm--2awuizG.js";
1
+ import { t } from "./react-toastify.esm-BLQznunb.js";
2
2
  const a = t;
3
3
  export {
4
4
  a as default
@@ -1,4 +1,4 @@
1
- "use strict";const s=require("react/jsx-runtime"),N=require("react"),e=require("./index-BPVoEhTF.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./react-toastify.esm-Dq1k28O7.cjs"),t=require("./utils-CZynEOC_.cjs"),v=require("./ThemeProvider.cjs"),O=_.styled.div`
1
+ "use strict";const s=require("react/jsx-runtime"),N=require("react"),e=require("./index-BpbMKBf_.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./react-toastify.esm-BoMuFZcq.cjs"),t=require("./utils-CZynEOC_.cjs"),v=require("./ThemeProvider.cjs"),O=_.styled.div`
2
2
  & .lnc-notification {
3
3
  & > div {
4
4
  background-color: ${o=>t.getColorRgbaValue(o.theme,"Notification",o.color,"enabled","background","backgroundOpacity")};
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as O } from "react";
3
- import { P as t } from "./index-S5Cd7WrG.js";
3
+ import { P as t } from "./index-CblbdqjE.js";
4
4
  import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { T as v } from "./react-toastify.esm--2awuizG.js";
5
+ import { T as v } from "./react-toastify.esm-BLQznunb.js";
6
6
  import { b as e, a as C } from "./utils-BbgAIA9N.js";
7
7
  import { useTheme as $ } from "./ThemeProvider.js";
8
8
  const P = _.div`
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),P=require("react"),t=require("./index-BPVoEhTF.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./Icon.cjs"),i=require("./utils-CZynEOC_.cjs"),w=require("./Avatar.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=N.styled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),P=require("react"),t=require("./index-BpbMKBf_.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./Icon.cjs"),i=require("./utils-CZynEOC_.cjs"),w=require("./Avatar.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=N.styled.div`
2
2
  ${e=>i.getComponentTypographyCss(e.theme,"Notification","small","enabled")};
3
3
 
4
4
  word-wrap: break-word;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
2
  import { forwardRef as N } from "react";
3
- import { P as i } from "./index-S5Cd7WrG.js";
3
+ import { P as i } from "./index-CblbdqjE.js";
4
4
  import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import w from "./Icon.js";
6
6
  import { c as $, b as s, g as B } from "./utils-BbgAIA9N.js";
@@ -1,4 +1,4 @@
1
- "use strict";const g=require("react/jsx-runtime"),r=require("./index-BPVoEhTF.cjs"),n=require("react"),L=require("./index-DaiUAQVF.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),Q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=m.styled.div`
1
+ "use strict";const g=require("react/jsx-runtime"),r=require("./index-BpbMKBf_.cjs"),n=require("react"),L=require("./index-Cp66dWMi.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),Q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=m.styled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { jsxs as q, jsx as $ } from "react/jsx-runtime";
2
- import { P as t } from "./index-S5Cd7WrG.js";
2
+ import { P as t } from "./index-CblbdqjE.js";
3
3
  import { forwardRef as H, useRef as J, useState as D, useEffect as L, useCallback as Q } from "react";
4
- import { d as Y } from "./index-CkWvbrVT.js";
4
+ import { d as Y } from "./index-Dt62UGku.js";
5
5
  import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { d as s, b as l, a as Z, e as v, h as F, c as ee } from "./utils-BbgAIA9N.js";
7
7
  import { u as ae } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
@@ -1,4 +1,4 @@
1
- "use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BPVoEhTF.cjs"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=S.styled.section`
1
+ "use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BpbMKBf_.cjs"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=S.styled.section`
2
2
  display: flex;
3
3
  flex: auto;
4
4
  flex-direction: ${s=>s.hasSidebar?"row":"column"};
@@ -1,6 +1,6 @@
1
1
  import { jsx as E } from "react/jsx-runtime";
2
2
  import { forwardRef as T, Children as d, isValidElement as S, cloneElement as y } from "react";
3
- import { P as L } from "./index-S5Cd7WrG.js";
3
+ import { P as L } from "./index-CblbdqjE.js";
4
4
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
6
  const N = C.section`
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BPVoEhTF.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.styled.div`
1
+ "use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BpbMKBf_.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.styled.div`
2
2
  display: inline-flex;
3
3
  flex-wrap: wrap;
4
4
  width: 100%;
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as G, Fragment as $ } from "react/jsx-runtime";
2
2
  import { useState as E } from "react";
3
- import { P as t } from "./index-S5Cd7WrG.js";
3
+ import { P as t } from "./index-CblbdqjE.js";
4
4
  import h from "./Button.js";
5
5
  import b from "./IconButton.js";
6
6
  import U from "./ButtonGroup.js";
@@ -1,4 +1,4 @@
1
- "use strict";const u=require("react/jsx-runtime"),a=require("react"),r=require("./index-BPVoEhTF.cjs"),L=require("./index-DaiUAQVF.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),A=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=h.styled.div`
1
+ "use strict";const u=require("react/jsx-runtime"),a=require("react"),r=require("./index-BpbMKBf_.cjs"),L=require("./index-Cp66dWMi.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),A=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=h.styled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -1,7 +1,7 @@
1
1
  import { jsxs as q, jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as A, useRef as G, useState as p, useEffect as I, useCallback as H } from "react";
3
- import { P as n } from "./index-S5Cd7WrG.js";
4
- import { d as J } from "./index-CkWvbrVT.js";
3
+ import { P as n } from "./index-CblbdqjE.js";
4
+ import { d as J } from "./index-Dt62UGku.js";
5
5
  import K from "./Icon.js";
6
6
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import { d as f, b as r, a as M, e as Q, h as w, c as X } from "./utils-BbgAIA9N.js";
package/dist/Popover.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),e=require("./index-BPVoEhTF.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
1
+ "use strict";const s=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
package/dist/Popover.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { P as o } from "./index-S5Cd7WrG.js";
2
+ import { P as o } from "./index-CblbdqjE.js";
3
3
  import a from "./PopoverContext.js";
4
4
  import f from "./usePopover.js";
5
5
  function m({ children: t, modal: e = !1, ...r }) {
@@ -1,4 +1,4 @@
1
- "use strict";const n=require("react/jsx-runtime"),c=require("react"),s=require("./floating-ui.react.esm-Bb1ww976.cjs"),i=require("./index-BPVoEhTF.cjs"),x=require("./PopoverContext.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./utils-CZynEOC_.cjs"),y=require("./motion-B_VPZaJq.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled(y.motion.div)`
1
+ "use strict";const n=require("react/jsx-runtime"),c=require("react"),s=require("./floating-ui.react.esm-CiYofNnh.cjs"),i=require("./index-BpbMKBf_.cjs"),x=require("./PopoverContext.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./utils-CZynEOC_.cjs"),y=require("./motion-B_VPZaJq.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled(y.motion.div)`
2
2
  font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
3
3
  animation: fadeIn 0.4s;
4
4
  box-shadow: ${e=>a.getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as c, useContext as b } from "react";
3
- import { a as f, F as u, b as g } from "./floating-ui.react.esm-h3qa3pb9.js";
4
- import { P as n } from "./index-S5Cd7WrG.js";
3
+ import { a as f, F as u, b as g } from "./floating-ui.react.esm-CfpRzwmn.js";
4
+ import { P as n } from "./index-CblbdqjE.js";
5
5
  import h from "./PopoverContext.js";
6
6
  import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
7
  import { g as y, a as P, b as v } from "./utils-BbgAIA9N.js";
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-Bb1ww976.cjs"),r=require("react"),p=require("./PopoverContext.cjs"),a=()=>{const e=r.useContext(p);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},f=r.forwardRef(function({children:n,...s},c){const{setDescriptionId:o}=a(),t=u.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),i.jsx("p",{...s,ref:c,id:t,children:n})});module.exports=f;
1
+ "use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-CiYofNnh.cjs"),r=require("react"),p=require("./PopoverContext.cjs"),a=()=>{const e=r.useContext(p);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},f=r.forwardRef(function({children:n,...s},c){const{setDescriptionId:o}=a(),t=u.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),i.jsx("p",{...s,ref:c,id:t,children:n})});module.exports=f;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as i } from "./floating-ui.react.esm-h3qa3pb9.js";
2
+ import { u as i } from "./floating-ui.react.esm-CfpRzwmn.js";
3
3
  import { forwardRef as u, useLayoutEffect as c, useContext as f } from "react";
4
4
  import m from "./PopoverContext.js";
5
5
  const a = () => {
@@ -1 +1 @@
1
- "use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-Bb1ww976.cjs"),a=require("./PopoverContext.cjs"),p=()=>{const e=r.useContext(a);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=r.forwardRef(function({children:n,...s},u){const{setLabelId:o}=p(),t=i.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),c.jsx("h2",{...s,ref:u,id:t,children:n})});module.exports=d;
1
+ "use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-CiYofNnh.cjs"),a=require("./PopoverContext.cjs"),p=()=>{const e=r.useContext(a);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=r.forwardRef(function({children:n,...s},u){const{setLabelId:o}=p(),t=i.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),c.jsx("h2",{...s,ref:u,id:t,children:n})});module.exports=d;
@@ -1,6 +1,6 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { forwardRef as u, useLayoutEffect as f, useContext as i } from "react";
3
- import { u as a } from "./floating-ui.react.esm-h3qa3pb9.js";
3
+ import { u as a } from "./floating-ui.react.esm-CfpRzwmn.js";
4
4
  import m from "./PopoverContext.js";
5
5
  const c = () => {
6
6
  const o = i(m);
@@ -1 +1 @@
1
- "use strict";const u=require("react/jsx-runtime"),o=require("react"),f=require("./floating-ui.react.esm-Bb1ww976.cjs"),l=require("./index-BPVoEhTF.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const r=o.useContext(P);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},c=o.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
1
+ "use strict";const u=require("react/jsx-runtime"),o=require("react"),f=require("./floating-ui.react.esm-CiYofNnh.cjs"),l=require("./index-BpbMKBf_.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const r=o.useContext(P);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},c=o.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
@@ -1,7 +1,7 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as m, isValidElement as c, cloneElement as i, useContext as u } from "react";
3
- import { a as P } from "./floating-ui.react.esm-h3qa3pb9.js";
4
- import { P as l } from "./index-S5Cd7WrG.js";
3
+ import { a as P } from "./floating-ui.react.esm-CfpRzwmn.js";
4
+ import { P as l } from "./index-CblbdqjE.js";
5
5
  import d from "./PopoverContext.js";
6
6
  const g = () => {
7
7
  const t = u(d);
@@ -0,0 +1 @@
1
+ "use strict";const y=require("./_commonjsHelpers-DwTZ_eVU.cjs"),v=require("react");function w(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,s=Object.defineProperty,O=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,j=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,S=(r,e,t)=>e in r?s(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},_=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of x(e))!I.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(n=O(e,a))||n.enumerable});return r},C=(r,e,t)=>(t=r!=null?P(j(r)):{},_(!r||!r.__esModule?s(t,"default",{value:r,enumerable:!0}):t,r)),N=r=>_(s({},"__esModule",{value:!0}),r),p=(r,e,t)=>(S(r,typeof e!="symbol"?e+"":e,t),t),g={};E(g,{default:()=>k});var m=N(g),i=C(v);const u="64px",d={};class k extends i.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!i.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a,previewAriaLabel:o}=this.props,{image:h}=this.state,l=i.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:h&&!l?`url(${h})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},b=i.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},i.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return i.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...o?{"aria-label":o}:{}},l?e:null,n||b)}}const D=y.getDefaultExportFromCjs(m),M=w({__proto__:null,default:D},[m]);exports.Preview=M;
@@ -0,0 +1,127 @@
1
+ import { g as y } from "./_commonjsHelpers-BkfeUUK-.js";
2
+ import v from "react";
3
+ function w(r, e) {
4
+ for (var t = 0; t < e.length; t++) {
5
+ const n = e[t];
6
+ if (typeof n != "string" && !Array.isArray(n)) {
7
+ for (const a in n)
8
+ if (a !== "default" && !(a in r)) {
9
+ const o = Object.getOwnPropertyDescriptor(n, a);
10
+ o && Object.defineProperty(r, a, o.get ? o : {
11
+ enumerable: !0,
12
+ get: () => n[a]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var P = Object.create, s = Object.defineProperty, O = Object.getOwnPropertyDescriptor, x = Object.getOwnPropertyNames, I = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, S = (r, e, t) => e in r ? s(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, E = (r, e) => {
20
+ for (var t in e)
21
+ s(r, t, { get: e[t], enumerable: !0 });
22
+ }, _ = (r, e, t, n) => {
23
+ if (e && typeof e == "object" || typeof e == "function")
24
+ for (let a of x(e))
25
+ !j.call(r, a) && a !== t && s(r, a, { get: () => e[a], enumerable: !(n = O(e, a)) || n.enumerable });
26
+ return r;
27
+ }, C = (r, e, t) => (t = r != null ? P(I(r)) : {}, _(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ !r || !r.__esModule ? s(t, "default", { value: r, enumerable: !0 }) : t,
33
+ r
34
+ )), N = (r) => _(s({}, "__esModule", { value: !0 }), r), p = (r, e, t) => (S(r, typeof e != "symbol" ? e + "" : e, t), t), g = {};
35
+ E(g, {
36
+ default: () => k
37
+ });
38
+ var m = N(g), i = C(v);
39
+ const u = "64px", d = {};
40
+ class k extends i.Component {
41
+ constructor() {
42
+ super(...arguments), p(this, "mounted", !1), p(this, "state", {
43
+ image: null
44
+ }), p(this, "handleKeyPress", (e) => {
45
+ (e.key === "Enter" || e.key === " ") && this.props.onClick();
46
+ });
47
+ }
48
+ componentDidMount() {
49
+ this.mounted = !0, this.fetchImage(this.props);
50
+ }
51
+ componentDidUpdate(e) {
52
+ const { url: t, light: n } = this.props;
53
+ (e.url !== t || e.light !== n) && this.fetchImage(this.props);
54
+ }
55
+ componentWillUnmount() {
56
+ this.mounted = !1;
57
+ }
58
+ fetchImage({ url: e, light: t, oEmbedUrl: n }) {
59
+ if (!i.default.isValidElement(t)) {
60
+ if (typeof t == "string") {
61
+ this.setState({ image: t });
62
+ return;
63
+ }
64
+ if (d[e]) {
65
+ this.setState({ image: d[e] });
66
+ return;
67
+ }
68
+ return this.setState({ image: null }), window.fetch(n.replace("{url}", e)).then((a) => a.json()).then((a) => {
69
+ if (a.thumbnail_url && this.mounted) {
70
+ const o = a.thumbnail_url.replace("height=100", "height=480").replace("-d_295x166", "-d_640");
71
+ this.setState({ image: o }), d[e] = o;
72
+ }
73
+ });
74
+ }
75
+ }
76
+ render() {
77
+ const { light: e, onClick: t, playIcon: n, previewTabIndex: a, previewAriaLabel: o } = this.props, { image: f } = this.state, l = i.default.isValidElement(e), h = {
78
+ display: "flex",
79
+ alignItems: "center",
80
+ justifyContent: "center"
81
+ }, c = {
82
+ preview: {
83
+ width: "100%",
84
+ height: "100%",
85
+ backgroundImage: f && !l ? `url(${f})` : void 0,
86
+ backgroundSize: "cover",
87
+ backgroundPosition: "center",
88
+ cursor: "pointer",
89
+ ...h
90
+ },
91
+ shadow: {
92
+ background: "radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",
93
+ borderRadius: u,
94
+ width: u,
95
+ height: u,
96
+ position: l ? "absolute" : void 0,
97
+ ...h
98
+ },
99
+ playIcon: {
100
+ borderStyle: "solid",
101
+ borderWidth: "16px 0 16px 26px",
102
+ borderColor: "transparent transparent transparent white",
103
+ marginLeft: "7px"
104
+ }
105
+ }, b = /* @__PURE__ */ i.default.createElement("div", { style: c.shadow, className: "react-player__shadow" }, /* @__PURE__ */ i.default.createElement("div", { style: c.playIcon, className: "react-player__play-icon" }));
106
+ return /* @__PURE__ */ i.default.createElement(
107
+ "div",
108
+ {
109
+ style: c.preview,
110
+ className: "react-player__preview",
111
+ onClick: t,
112
+ tabIndex: a,
113
+ onKeyPress: this.handleKeyPress,
114
+ ...o ? { "aria-label": o } : {}
115
+ },
116
+ l ? e : null,
117
+ n || b
118
+ );
119
+ }
120
+ }
121
+ const D = /* @__PURE__ */ y(m), K = /* @__PURE__ */ w({
122
+ __proto__: null,
123
+ default: D
124
+ }, [m]);
125
+ export {
126
+ K as P
127
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("react/jsx-runtime"),i=require("react"),r=require("./index-BPVoEhTF.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=l.styled.div`
1
+ "use strict";const a=require("react/jsx-runtime"),i=require("react"),r=require("./index-BpbMKBf_.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=l.styled.div`
2
2
  width: 100%;
3
3
  position: relative;
4
4
  background-color: ${e=>o.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as h } from "react/jsx-runtime";
2
2
  import { forwardRef as f, isValidElement as P, cloneElement as y } from "react";
3
- import { P as r } from "./index-S5Cd7WrG.js";
3
+ import { P as r } from "./index-CblbdqjE.js";
4
4
  import { s as t } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { b as n, c as x } from "./utils-BbgAIA9N.js";
6
6
  import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),n=require("react"),s=require("./utils-CZynEOC_.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=require("./styled-components.browser.esm-CMTEDJ_5.cjs"),_=c.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("react"),s=require("./utils-CZynEOC_.cjs"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),u=require("./styled-components.browser.esm-CvykQBGY.cjs"),_=c.styled.div`
2
2
  position: absolute;
3
3
  top: 0;
4
4
  left: 0;
@@ -4,7 +4,7 @@ import { t as h, p as u, k as _ } from "./utils-BbgAIA9N.js";
4
4
  import { s as c } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
5
  import { M as m } from "./consts-BuFChS64.js";
6
6
  import { u as b } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
- import { q as w } from "./styled-components.browser.esm-C9FYANiy.js";
7
+ import { q as w } from "./styled-components.browser.esm-D-n22PJk.js";
8
8
  const y = c.div`
9
9
  position: absolute;
10
10
  top: 0;
@@ -1,4 +1,4 @@
1
- "use strict";const p=require("react/jsx-runtime"),n=require("react"),O=require("./emotion-styled.browser.esm-BtEseadx.cjs"),e=require("./index-BPVoEhTF.cjs"),R=require("./RadioInput.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=O.styled.div`
1
+ "use strict";const p=require("react/jsx-runtime"),n=require("react"),O=require("./emotion-styled.browser.esm-BtEseadx.cjs"),e=require("./index-BpbMKBf_.cjs"),R=require("./RadioInput.cjs"),I=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),_=O.styled.div`
2
2
  display: inline-flex;
3
3
  flex-direction: ${o=>o.inline===!0?"row":"column"};
4
4
  gap: 1.5rem;
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as I, useState as j, useEffect as z } from "react";
3
3
  import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
- import { P as e } from "./index-S5Cd7WrG.js";
4
+ import { P as e } from "./index-CblbdqjE.js";
5
5
  import T from "./RadioInput.js";
6
6
  import { u as k } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
7
  const N = R.div`
@@ -1,4 +1,4 @@
1
- "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BPVoEhTF.cjs"),o=require("./utils-CZynEOC_.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
1
+ "use strict";const i=require("react/jsx-runtime"),h=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),o=require("./utils-CZynEOC_.cjs"),O=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=e=>e=="left"?"row-reverse":"row",q=m.styled.label`
2
2
  min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
3
3
  max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
4
4
  width: 100%;