@lanaco/lnc-react-ui 4.0.198 → 4.0.200

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 (247) 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/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +6 -5
  216. package/dist/ToggleSection.js +49 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,14 +1,13 @@
1
- import { jsx as g } from "react/jsx-runtime";
2
- import { P as e } from "./index-CblbdqjE.js";
3
- import { forwardRef as y, useCallback as h } from "react";
4
- import { a as M } from "./CustomStyles-DtWxboEM.js";
5
- import { d as S } from "./index-Dt62UGku.js";
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { forwardRef as h, useCallback as w } from "react";
3
+ import { a as S } from "./CustomStyles-DtWxboEM.js";
4
+ import { d as x } from "./index-Dt62UGku.js";
6
5
  import C from "./Dropdown.js";
7
- import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const w = y((l, t) => {
6
+ import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ const N = h((o, t) => {
9
8
  const {
10
9
  // options,
11
- styles: n,
10
+ styles: r,
12
11
  debounceTime: s = 0,
13
12
  // name,
14
13
  // hideSelectedOptions,
@@ -17,7 +16,7 @@ const w = y((l, t) => {
17
16
  // value,
18
17
  // readOnly,
19
18
  // tabIndex,
20
- isSearchable: u = !0,
19
+ isSearchable: m = !0,
21
20
  isClearable: a = !0,
22
21
  // isLoading,
23
22
  // isRtl,
@@ -51,211 +50,41 @@ const w = y((l, t) => {
51
50
  // defaultMenuIsOpen,
52
51
  // delimiter,
53
52
  // onChange,
54
- onInputChange: o,
53
+ onInputChange: e,
55
54
  // onMenuOpen,
56
55
  // onMenuClose,
57
56
  // onBlur,
58
57
  // onFocus,
59
58
  // onKeyDown,
60
- size: r = "small",
59
+ size: l = "small",
61
60
  color: i = "primary",
62
- className: c = "",
63
- style: m = {},
61
+ className: u = "",
62
+ style: c = {},
64
63
  // children,
65
- ...p
66
- } = l, b = I(), f = h(
67
- S((d, O) => {
68
- o == null || o(d, O);
64
+ ...n
65
+ } = o, p = D(), f = w(
66
+ x((d, b) => {
67
+ e == null || e(d, b);
69
68
  }, s)
70
69
  );
71
- return /* @__PURE__ */ g(
70
+ return /* @__PURE__ */ y(
72
71
  C,
73
72
  {
74
73
  isMulti: !0,
75
74
  ref: t,
76
- styles: n || M,
77
- size: r,
75
+ styles: r || S,
76
+ size: l,
78
77
  color: i,
79
- theme: b,
80
- isSearchable: u,
78
+ theme: p,
79
+ isSearchable: m,
81
80
  isClearable: a,
82
- className: c,
83
- style: m,
84
- ...p,
81
+ className: u,
82
+ style: c,
83
+ ...n,
85
84
  onInputChange: f
86
85
  }
87
86
  );
88
87
  });
89
- w.propTypes = {
90
- options: e.array,
91
- styles: e.object,
92
- debounceTime: e.number,
93
- name: e.string,
94
- value: e.any,
95
- /**
96
- * Sets the tabIndex attribute on the input
97
- */
98
- tabIndex: e.number,
99
- /**
100
- * Whether to enable search functionality
101
- */
102
- isSearchable: e.bool,
103
- isClearable: e.bool,
104
- /**
105
- * Is the select in a state of loading (async)
106
- */
107
- isLoading: e.bool,
108
- /**
109
- * Is the select direction right-to-left
110
- */
111
- isRtl: e.bool,
112
- isDisabled: e.bool,
113
- readOnly: e.bool,
114
- /**
115
- * Close the select menu when the user selects an option
116
- */
117
- closeMenuOnSelect: e.bool,
118
- /**
119
- * If true, close the select menu when the user scrolls the document/body.
120
- * If a function, takes a standard javascript ScrollEvent you return a boolean:
121
- * true => The menu closes
122
- * false => The menu stays open
123
- * This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
124
- */
125
- closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
126
- /**
127
- * Clear all values when the user presses escape AND the menu is closed
128
- */
129
- escapeClearsValue: e.bool,
130
- /**
131
- * Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
132
- */
133
- filterOption: e.func,
134
- /**
135
- * Formats group labels in the menu as React components
136
- */
137
- formatGroupLabel: e.func,
138
- /**
139
- * Formats option labels in the menu and control as React components
140
- */
141
- formatOptionLabel: e.func,
142
- /**
143
- * Resolves option data to a string to be displayed as the label by components
144
- * Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
145
- */
146
- getOptionLabel: e.func,
147
- /**
148
- * Resolves option data to a string to compare options and specify value attributes
149
- */
150
- getOptionValue: e.func,
151
- /**
152
- * Hide the selected option from the menu
153
- */
154
- hideSelectedOptions: e.bool,
155
- /**
156
- * The id to set on the SelectContainer component
157
- */
158
- id: e.any,
159
- /**
160
- * The id of the search input
161
- */
162
- inputid: e.any,
163
- /**
164
- * Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
165
- */
166
- isOptionDisabled: e.func,
167
- /**
168
- * Override the built-in logic to detect whether an option is selected. `(...) => boolean`
169
- */
170
- isOptionSelected: e.func,
171
- /**
172
- * Async: Text to display when loading options `(...) => ...`
173
- */
174
- loadingMessage: e.func,
175
- /**
176
- * Minimum height of the menu before flipping
177
- */
178
- minMenuHeight: e.number,
179
- /**
180
- * Maximum height of the menu before flipping
181
- */
182
- maxMenuHeight: e.number,
183
- /**
184
- * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
185
- */
186
- menuPlacement: e.oneOf(["bottom", "auto", "top"]),
187
- /**
188
- *The CSS position value of the menu, when "fixed" extra layout management is required.
189
- */
190
- menuPosition: e.oneOf(["absolute", "fixed"]),
191
- /**
192
- * Whether to block scroll events when the menu is open
193
- */
194
- menuShouldBlockScroll: e.bool,
195
- /**
196
- * Whether the menu should be scrolled into view when it opens
197
- */
198
- menuShouldScrollIntoView: e.bool,
199
- /**
200
- * Allows control of whether the menu is opened when the Select is focused
201
- */
202
- openMenuOnFocus: e.bool,
203
- /**
204
- * Allows control of whether the menu is opened when the Select is clicked
205
- */
206
- openMenuOnClick: e.bool,
207
- //----
208
- autoFocus: e.bool,
209
- placeholder: e.any,
210
- noOptionsMessage: e.string,
211
- menuIsOpen: e.bool,
212
- /**
213
- * This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
214
- * If you only wish to restyle a component, we recommend using the styles prop instead.
215
- */
216
- components: e.object,
217
- /**
218
- * initial value of the control
219
- */
220
- defaultValue: e.string,
221
- /**
222
- * initial value of the search input
223
- */
224
- defaultInputValue: e.string,
225
- /**
226
- * initial open value of the menu
227
- */
228
- defaultMenuIsOpen: e.bool,
229
- /**
230
- * Delimiter used to join multiple values into a single HTML Input value
231
- */
232
- delimiter: e.string,
233
- //---------------------------------------------------------------
234
- onChange: e.func,
235
- /**
236
- * control the value of the search input (changing this will update the available options)
237
- */
238
- onInputChange: e.func,
239
- onMenuOpen: e.func,
240
- onMenuClose: e.func,
241
- onFocus: e.func,
242
- onBlur: e.func,
243
- onKeyDown: e.func,
244
- //---------------------------------------------------------------
245
- className: e.string,
246
- style: e.object,
247
- color: e.oneOf([
248
- "primary",
249
- "secondary",
250
- "success",
251
- "warning",
252
- "danger",
253
- "information",
254
- "neutral",
255
- "gray"
256
- ]),
257
- size: e.oneOf(["small", "medium", "large"])
258
- };
259
88
  export {
260
- w as default
89
+ N as default
261
90
  };
@@ -1 +1 @@
1
- "use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-C86XQqBE.cjs"),h=require("./index-Cp66dWMi.cjs"),M=require("./DropdownLookup.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),r=s.forwardRef((n,l)=>{const{styles:p,debounceTime:t=0,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:a="small",color:i="primary",className:c="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},t));return O.jsx(M,{isMulti:!0,ref:l,styles:p||g.customStyles,size:a,color:i,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:c,style:T,...P})});r.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
1
+ "use strict";const h=require("react/jsx-runtime"),t=require("react"),w=require("./CustomStyles-C86XQqBE.cjs"),x=require("./index-Cp66dWMi.cjs"),S=require("./DropdownLookup.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=t.forwardRef((r,o)=>{const{styles:s,debounceTime:u=0,isSearchable:n=!0,isClearable:c=!0,onInputChange:e,size:l="small",color:i="primary",className:a="",style:m={},...d}=r,p=k.useTheme(),b=t.useCallback(x.debounce((q,y)=>{e==null||e(q,y)},u));return h.jsx(S,{isMulti:!0,ref:o,styles:s||w.customStyles,size:l,color:i,theme:p,isSearchable:n,isClearable:c,onInputChange:b,className:a,style:m,...d})});module.exports=C;
@@ -1,16 +1,15 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
- import { P as e } from "./index-CblbdqjE.js";
3
- import { forwardRef as g, useCallback as h } from "react";
4
- import { a as M } from "./CustomStyles-DtWxboEM.js";
2
+ import { forwardRef as h, useCallback as k } from "react";
3
+ import { a as w } from "./CustomStyles-DtWxboEM.js";
5
4
  import { d as S } from "./index-Dt62UGku.js";
6
- import C from "./DropdownLookup.js";
7
- import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const T = g((l, t) => {
5
+ import x from "./DropdownLookup.js";
6
+ import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ const I = h((r, t) => {
9
8
  const {
10
9
  // defaultOptions,
11
10
  // cacheOptions,
12
11
  // loadOptions,
13
- styles: n,
12
+ styles: o,
14
13
  debounceTime: s = 0,
15
14
  // name,
16
15
  // hideSelectedOptions,
@@ -19,7 +18,7 @@ const T = g((l, t) => {
19
18
  // value,
20
19
  // readOnly,
21
20
  // tabIndex,
22
- isSearchable: u = !0,
21
+ isSearchable: m = !0,
23
22
  isClearable: a = !0,
24
23
  // isLoading,
25
24
  // isRtl,
@@ -53,222 +52,41 @@ const T = g((l, t) => {
53
52
  // defaultMenuIsOpen,
54
53
  // delimiter,
55
54
  // onChange,
56
- onInputChange: o,
55
+ onInputChange: e,
57
56
  // onMenuOpen,
58
57
  // onMenuClose,
59
58
  // onBlur,
60
59
  // onFocus,
61
60
  // onKeyDown,
62
- size: r = "small",
63
- color: i = "primary",
64
- className: c = "",
65
- style: m = {},
61
+ size: l = "small",
62
+ color: u = "primary",
63
+ className: i = "",
64
+ style: p = {},
66
65
  // children,
67
- ...p
68
- } = l, f = I(), b = h(
69
- S((d, O) => {
70
- o == null || o(d, O);
66
+ ...c
67
+ } = r, n = C(), f = k(
68
+ S((d, b) => {
69
+ e == null || e(d, b);
71
70
  }, s)
72
71
  );
73
72
  return /* @__PURE__ */ y(
74
- C,
73
+ x,
75
74
  {
76
75
  isMulti: !0,
77
76
  ref: t,
78
- styles: n || M,
79
- size: r,
80
- color: i,
81
- theme: f,
82
- isSearchable: u,
77
+ styles: o || w,
78
+ size: l,
79
+ color: u,
80
+ theme: n,
81
+ isSearchable: m,
83
82
  isClearable: a,
84
- onInputChange: b,
85
- className: c,
86
- style: m,
87
- ...p
83
+ onInputChange: f,
84
+ className: i,
85
+ style: p,
86
+ ...c
88
87
  }
89
88
  );
90
89
  });
91
- T.propTypes = {
92
- /**
93
- * The default set of options to show before the user starts searching. When set to true, the results for loadOptions('') will be autoloaded.
94
- */
95
- defaultOptions: e.oneOfType([e.bool, e.array]),
96
- /**
97
- * If cacheOptions is truthy, then the loaded data will be cached. The cache will remain until cacheOptions changes value.
98
- */
99
- cacheOptions: e.any,
100
- /**
101
- * Function that returns a promise, which is the set of options to be used once the promise resolves.
102
- */
103
- loadOptions: e.func,
104
- styles: e.object,
105
- debounceTime: e.number,
106
- name: e.string,
107
- value: e.any,
108
- /**
109
- * Sets the tabIndex attribute on the input
110
- */
111
- tabIndex: e.number,
112
- /**
113
- * Whether to enable search functionality
114
- */
115
- isSearchable: e.bool,
116
- isClearable: e.bool,
117
- /**
118
- * Is the select in a state of loading (async)
119
- */
120
- isLoading: e.bool,
121
- /**
122
- * Is the select direction right-to-left
123
- */
124
- isRtl: e.bool,
125
- isDisabled: e.bool,
126
- readOnly: e.bool,
127
- /**
128
- * Close the select menu when the user selects an option
129
- */
130
- closeMenuOnSelect: e.bool,
131
- /**
132
- * If true, close the select menu when the user scrolls the document/body.
133
- * If a function, takes a standard javascript ScrollEvent you return a boolean:
134
- * true => The menu closes
135
- * false => The menu stays open
136
- * This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
137
- */
138
- closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
139
- /**
140
- * Clear all values when the user presses escape AND the menu is closed
141
- */
142
- escapeClearsValue: e.bool,
143
- /**
144
- * Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
145
- */
146
- filterOption: e.func,
147
- /**
148
- * Formats group labels in the menu as React components
149
- */
150
- formatGroupLabel: e.func,
151
- /**
152
- * Formats option labels in the menu and control as React components
153
- */
154
- formatOptionLabel: e.func,
155
- /**
156
- * Resolves option data to a string to be displayed as the label by components
157
- * Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
158
- */
159
- getOptionLabel: e.func,
160
- /**
161
- * Resolves option data to a string to compare options and specify value attributes
162
- */
163
- getOptionValue: e.func,
164
- /**
165
- * Hide the selected option from the menu
166
- */
167
- hideSelectedOptions: e.bool,
168
- /**
169
- * The id to set on the SelectContainer component
170
- */
171
- id: e.any,
172
- /**
173
- * The id of the search input
174
- */
175
- inputid: e.any,
176
- /**
177
- * Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
178
- */
179
- isOptionDisabled: e.func,
180
- /**
181
- * Override the built-in logic to detect whether an option is selected. `(...) => boolean`
182
- */
183
- isOptionSelected: e.func,
184
- /**
185
- * Async: Text to display when loading options `(...) => ...`
186
- */
187
- loadingMessage: e.func,
188
- /**
189
- * Minimum height of the menu before flipping
190
- */
191
- minMenuHeight: e.number,
192
- /**
193
- * Maximum height of the menu before flipping
194
- */
195
- maxMenuHeight: e.number,
196
- /**
197
- * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
198
- */
199
- menuPlacement: e.oneOf(["bottom", "auto", "top"]),
200
- /**
201
- *The CSS position value of the menu, when "fixed" extra layout management is required.
202
- */
203
- menuPosition: e.oneOf(["absolute", "fixed"]),
204
- /**
205
- * Whether to block scroll events when the menu is open
206
- */
207
- menuShouldBlockScroll: e.bool,
208
- /**
209
- * Whether the menu should be scrolled into view when it opens
210
- */
211
- menuShouldScrollIntoView: e.bool,
212
- /**
213
- * Allows control of whether the menu is opened when the Select is focused
214
- */
215
- openMenuOnFocus: e.bool,
216
- /**
217
- * Allows control of whether the menu is opened when the Select is clicked
218
- */
219
- openMenuOnClick: e.bool,
220
- //----
221
- autoFocus: e.bool,
222
- placeholder: e.any,
223
- noOptionsMessage: e.string,
224
- menuIsOpen: e.bool,
225
- /**
226
- * This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
227
- * If you only wish to restyle a component, we recommend using the styles prop instead.
228
- */
229
- components: e.object,
230
- /**
231
- * initial value of the control
232
- */
233
- defaultValue: e.string,
234
- /**
235
- * initial value of the search input
236
- */
237
- defaultInputValue: e.string,
238
- /**
239
- * initial open value of the menu
240
- */
241
- defaultMenuIsOpen: e.bool,
242
- /**
243
- * Delimiter used to join multiple values into a single HTML Input value
244
- */
245
- delimiter: e.string,
246
- //---------------------------------------------------------------
247
- onChange: e.func,
248
- /**
249
- * control the value of the search input (changing this will update the available options)
250
- */
251
- onInputChange: e.func,
252
- onMenuOpen: e.func,
253
- onMenuClose: e.func,
254
- onFocus: e.func,
255
- onBlur: e.func,
256
- onKeyDown: e.func,
257
- //---------------------------------------------------------------
258
- className: e.string,
259
- style: e.object,
260
- color: e.oneOf([
261
- "primary",
262
- "secondary",
263
- "success",
264
- "warning",
265
- "danger",
266
- "information",
267
- "neutral",
268
- "gray"
269
- ]),
270
- size: e.oneOf(["small", "medium", "large"])
271
- };
272
90
  export {
273
- T as default
91
+ I as default
274
92
  };
@@ -1,6 +1,6 @@
1
1
  import { g as P } from "./_commonjsHelpers-BkfeUUK-.js";
2
2
  import g from "react";
3
- import { p as E } from "./SearchSection-DDQ_K98T.js";
3
+ import { p as E } from "./SearchSection-DAaMecR4.js";
4
4
  function b(r, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const i = e[t];
@@ -1 +1 @@
1
- "use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-BcbHP6QF.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
+ "use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-B94YN_6P.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,6 +1,6 @@
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-RnrgDDZP.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 t=require("react/jsx-runtime"),o=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./utils-RnrgDDZP.cjs"),S=require("./motion-B_VPZaJq.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),b=require("./index-DZoWlChs.cjs"),h=w.styled(S.motion.div)`
2
2
  margin-left: 0.3rem;
3
3
  padding-left: 0.3rem;
4
- border-left: ${s=>`2px solid ${w.getColorRgbaValue(s.theme,"MenuItem",s.color,"focus","background")}`};
4
+ border-left: ${r=>`2px solid ${M.getColorRgbaValue(r.theme,"MenuItem",r.color,"focus","background")}`};
5
5
  border-radius: 2px;
6
- `,p=r.forwardRef((s,O)=>{const{__TYPE__:h="NESTED_ITEM",item:c,onItemSelected:u=()=>{},defaultOpen:y=!1,animation:d={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:T="",style:_={},color:n="primary",size:i="small",children:E,...g}=s,N=S.useTheme(),[a,f]=r.useState(y),P=()=>{f(!a)},x=r.cloneElement(c,{isNested:!0,showNested:a,toggleNested:P,color:n,size:i}),I=r.Children.map(E,(e,D)=>{var m,l;return r.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((l=e==null?void 0:e.type)==null?void 0:l.displayName)==="NESTED_ITEM")?r.cloneElement(e,{color:e.props.color?e.props.color:n,size:i,onItemSelected:u}):e});return o.jsxs(o.Fragment,{children:[o.jsx(o.Fragment,{children:x}),o.jsx(q.AnimatePresence,{children:a&&o.jsx(j,{...d,theme:N,color:n,size:i,className:"nested-item-lnc "+T,style:_,...g,children:I})})]})});p.propTypes={item:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),defaultOpen:t.PropTypes.bool,animation:t.PropTypes.object,className:t.PropTypes.string,style:t.PropTypes.object,color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:t.PropTypes.oneOf(["small","medium","large"]),__TYPE__:t.PropTypes.string};p.displayName="NESTED_ITEM";module.exports=p;
6
+ `,l=o.forwardRef((r,j)=>{const{item:u,onItemSelected:c=()=>{},defaultOpen:d=!1,animation:p={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:E="",style:_={},color:s="primary",size:n="small",children:y,...N}=r,g=q.useTheme(),[i,f]=o.useState(d),x=()=>{f(!i)},T=o.cloneElement(u,{isNested:!0,showNested:i,toggleNested:x,color:s,size:n}),I=o.Children.map(y,(e,D)=>{var a,m;return o.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM")?o.cloneElement(e,{color:e.props.color?e.props.color:s,size:n,onItemSelected:c}):e});return t.jsxs(t.Fragment,{children:[t.jsx(t.Fragment,{children:T}),t.jsx(b.AnimatePresence,{children:i&&t.jsx(h,{...p,theme:g,color:s,size:n,className:"nested-item-lnc "+E,style:_,...N,children:I})})]})});l.displayName="NESTED_ITEM";module.exports=l;