@bigbinary/neeto-molecules 1.11.3 → 1.11.5

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 (291) hide show
  1. package/dist/Breadcrumbs.js +7 -8
  2. package/dist/Breadcrumbs.js.map +1 -1
  3. package/dist/BrowserSupport.js +41 -138
  4. package/dist/BrowserSupport.js.map +1 -1
  5. package/dist/Builder.js +65 -319
  6. package/dist/Builder.js.map +1 -1
  7. package/dist/CalendarView.js +38 -321
  8. package/dist/CalendarView.js.map +1 -1
  9. package/dist/Codeblock.js +14 -207
  10. package/dist/Codeblock.js.map +1 -1
  11. package/dist/Columns-702d539a.js +206 -0
  12. package/dist/Columns-702d539a.js.map +1 -0
  13. package/dist/Columns.js +16 -342
  14. package/dist/Columns.js.map +1 -1
  15. package/dist/ConfirmationModal.js +10 -10
  16. package/dist/ConfirmationModal.js.map +1 -1
  17. package/dist/Container.js +4 -1186
  18. package/dist/Container.js.map +1 -1
  19. package/dist/CopyToClipboardButton.js +7 -144
  20. package/dist/CopyToClipboardButton.js.map +1 -1
  21. package/dist/Currency.js +4 -46
  22. package/dist/Currency.js.map +1 -1
  23. package/dist/CustomDomain.js +30 -635
  24. package/dist/CustomDomain.js.map +1 -1
  25. package/dist/CustomDomainDashboard.js +41 -2198
  26. package/dist/CustomDomainDashboard.js.map +1 -1
  27. package/dist/DateFormat.js +4 -18
  28. package/dist/DateFormat.js.map +1 -1
  29. package/dist/DateRangeFilter.js +7 -61
  30. package/dist/DateRangeFilter.js.map +1 -1
  31. package/dist/DocumentEditor.js +12 -121
  32. package/dist/DocumentEditor.js.map +1 -1
  33. package/dist/DownloadMobileAppCallout.js +4 -4
  34. package/dist/DownloadMobileAppCallout.js.map +1 -1
  35. package/dist/DynamicVariables.js +11 -94
  36. package/dist/DynamicVariables.js.map +1 -1
  37. package/dist/EmailForm.js +46 -1711
  38. package/dist/EmailForm.js.map +1 -1
  39. package/dist/EmailPreview.js +28 -1209
  40. package/dist/EmailPreview.js.map +1 -1
  41. package/dist/EmojiPicker.js +5 -73
  42. package/dist/EmojiPicker.js.map +1 -1
  43. package/dist/EmojiReactions.js +13 -67
  44. package/dist/EmojiReactions.js.map +1 -1
  45. package/dist/ErrorPage.js +1 -15
  46. package/dist/ErrorPage.js.map +1 -1
  47. package/dist/FloatingActionMenu.js +72 -1399
  48. package/dist/FloatingActionMenu.js.map +1 -1
  49. package/dist/Header.js +26 -72
  50. package/dist/Header.js.map +1 -1
  51. package/dist/HelpPopover.js +14 -96
  52. package/dist/HelpPopover.js.map +1 -1
  53. package/dist/IconPicker.js +26 -123
  54. package/dist/IconPicker.js.map +1 -1
  55. package/dist/ImageWithFallback.js +8 -144
  56. package/dist/ImageWithFallback.js.map +1 -1
  57. package/dist/InlineInput.js +16 -522
  58. package/dist/InlineInput.js.map +1 -1
  59. package/dist/IntegrationCard.js +30 -229
  60. package/dist/IntegrationCard.js.map +1 -1
  61. package/dist/IntegrationDisconnectAlert.js +4 -46
  62. package/dist/IntegrationDisconnectAlert.js.map +1 -1
  63. package/dist/IntegrationWalkthroughModal.js +7 -7
  64. package/dist/IntegrationWalkthroughModal.js.map +1 -1
  65. package/dist/IpRestriction.js +16 -196
  66. package/dist/IpRestriction.js.map +1 -1
  67. package/dist/KeyboardShortcuts.js +24 -119
  68. package/dist/KeyboardShortcuts.js.map +1 -1
  69. package/dist/LoginPage.js +22 -445
  70. package/dist/LoginPage.js.map +1 -1
  71. package/dist/MenuBar.js +29 -1293
  72. package/dist/MenuBar.js.map +1 -1
  73. package/dist/Metadata.js +27 -82
  74. package/dist/Metadata.js.map +1 -1
  75. package/dist/MoreDropdown.js +15 -97
  76. package/dist/MoreDropdown.js.map +1 -1
  77. package/dist/NavigationHeader.js +39 -709
  78. package/dist/NavigationHeader.js.map +1 -1
  79. package/dist/NeetoWidget.js +15 -234
  80. package/dist/NeetoWidget.js.map +1 -1
  81. package/dist/Onboarding.js +16 -1212
  82. package/dist/Onboarding.js.map +1 -1
  83. package/dist/PageLoader.js +5 -48
  84. package/dist/PageLoader.js.map +1 -1
  85. package/dist/PhoneNumber.js +22 -156
  86. package/dist/PhoneNumber.js.map +1 -1
  87. package/dist/ProductEmbed.js +83 -172
  88. package/dist/ProductEmbed.js.map +1 -1
  89. package/dist/PublishBlock.js +15 -58
  90. package/dist/PublishBlock.js.map +1 -1
  91. package/dist/PublishYourItem.js +9 -1190
  92. package/dist/PublishYourItem.js.map +1 -1
  93. package/dist/Rename.js +30 -330
  94. package/dist/Rename.js.map +1 -1
  95. package/dist/ResponsiveDevicePicker.js +7 -143
  96. package/dist/ResponsiveDevicePicker.js.map +1 -1
  97. package/dist/Schedule.js +62 -331
  98. package/dist/Schedule.js.map +1 -1
  99. package/dist/Scrollable.js +6 -89
  100. package/dist/Scrollable.js.map +1 -1
  101. package/dist/Search.js +7 -143
  102. package/dist/Search.js.map +1 -1
  103. package/dist/Security.js +37 -1573
  104. package/dist/Security.js.map +1 -1
  105. package/dist/SendToFields.js +41 -124
  106. package/dist/SendToFields.js.map +1 -1
  107. package/dist/Settings.js +32 -488
  108. package/dist/Settings.js.map +1 -1
  109. package/dist/ShareViaEmail.js +51 -1746
  110. package/dist/ShareViaEmail.js.map +1 -1
  111. package/dist/ShareViaLink.js +83 -331
  112. package/dist/ShareViaLink.js.map +1 -1
  113. package/dist/Sidebar.js +143 -406
  114. package/dist/Sidebar.js.map +1 -1
  115. package/dist/SubHeader.js +27 -105
  116. package/dist/SubHeader.js.map +1 -1
  117. package/dist/SuffixedInput.js +15 -120
  118. package/dist/SuffixedInput.js.map +1 -1
  119. package/dist/TableWrapper.js +7 -8
  120. package/dist/TableWrapper.js.map +1 -1
  121. package/dist/Taxonomy.js +74 -1780
  122. package/dist/Taxonomy.js.map +1 -1
  123. package/dist/ThemeSidebar.js +144 -767
  124. package/dist/ThemeSidebar.js.map +1 -1
  125. package/dist/TimeFormat.js +8 -44
  126. package/dist/TimeFormat.js.map +1 -1
  127. package/dist/TimezoneMismatchModal.js +11 -65
  128. package/dist/TimezoneMismatchModal.js.map +1 -1
  129. package/dist/ToggleFeatureCard.js +20 -157
  130. package/dist/ToggleFeatureCard.js.map +1 -1
  131. package/dist/cjs/Breadcrumbs.js +2 -3
  132. package/dist/cjs/Breadcrumbs.js.map +1 -1
  133. package/dist/cjs/BrowserSupport.js +8 -105
  134. package/dist/cjs/BrowserSupport.js.map +1 -1
  135. package/dist/cjs/Builder.js +16 -270
  136. package/dist/cjs/Builder.js.map +1 -1
  137. package/dist/cjs/CalendarView.js +23 -308
  138. package/dist/cjs/CalendarView.js.map +1 -1
  139. package/dist/cjs/Codeblock.js +12 -206
  140. package/dist/cjs/Codeblock.js.map +1 -1
  141. package/dist/cjs/Columns-069368e2.js +216 -0
  142. package/dist/cjs/Columns-069368e2.js.map +1 -0
  143. package/dist/cjs/Columns.js +23 -350
  144. package/dist/cjs/Columns.js.map +1 -1
  145. package/dist/cjs/Container.js +4 -1186
  146. package/dist/cjs/Container.js.map +1 -1
  147. package/dist/cjs/CopyToClipboardButton.js +10 -147
  148. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  149. package/dist/cjs/Currency.js +4 -46
  150. package/dist/cjs/Currency.js.map +1 -1
  151. package/dist/cjs/CustomDomain.js +23 -651
  152. package/dist/cjs/CustomDomain.js.map +1 -1
  153. package/dist/cjs/CustomDomainDashboard.js +44 -2227
  154. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  155. package/dist/cjs/DateFormat.js +3 -17
  156. package/dist/cjs/DateFormat.js.map +1 -1
  157. package/dist/cjs/DateRangeFilter.js +2 -56
  158. package/dist/cjs/DateRangeFilter.js.map +1 -1
  159. package/dist/cjs/DocumentEditor.js +14 -123
  160. package/dist/cjs/DocumentEditor.js.map +1 -1
  161. package/dist/cjs/DynamicVariables.js +8 -91
  162. package/dist/cjs/DynamicVariables.js.map +1 -1
  163. package/dist/cjs/EmailForm.js +23 -1689
  164. package/dist/cjs/EmailForm.js.map +1 -1
  165. package/dist/cjs/EmailPreview.js +8 -1189
  166. package/dist/cjs/EmailPreview.js.map +1 -1
  167. package/dist/cjs/EmojiPicker.js +4 -72
  168. package/dist/cjs/EmojiPicker.js.map +1 -1
  169. package/dist/cjs/EmojiReactions.js +5 -59
  170. package/dist/cjs/EmojiReactions.js.map +1 -1
  171. package/dist/cjs/ErrorPage.js +2 -16
  172. package/dist/cjs/ErrorPage.js.map +1 -1
  173. package/dist/cjs/FloatingActionMenu.js +48 -1376
  174. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  175. package/dist/cjs/Header.js +19 -67
  176. package/dist/cjs/Header.js.map +1 -1
  177. package/dist/cjs/HelpPopover.js +11 -93
  178. package/dist/cjs/HelpPopover.js.map +1 -1
  179. package/dist/cjs/IconPicker.js +10 -107
  180. package/dist/cjs/IconPicker.js.map +1 -1
  181. package/dist/cjs/ImageWithFallback.js +11 -147
  182. package/dist/cjs/ImageWithFallback.js.map +1 -1
  183. package/dist/cjs/InlineInput.js +20 -526
  184. package/dist/cjs/InlineInput.js.map +1 -1
  185. package/dist/cjs/IntegrationCard.js +8 -207
  186. package/dist/cjs/IntegrationCard.js.map +1 -1
  187. package/dist/cjs/IntegrationDisconnectAlert.js +4 -46
  188. package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
  189. package/dist/cjs/IpRestriction.js +7 -187
  190. package/dist/cjs/IpRestriction.js.map +1 -1
  191. package/dist/cjs/KeyboardShortcuts.js +9 -104
  192. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  193. package/dist/cjs/LoginPage.js +12 -435
  194. package/dist/cjs/LoginPage.js.map +1 -1
  195. package/dist/cjs/MenuBar.js +24 -1288
  196. package/dist/cjs/MenuBar.js.map +1 -1
  197. package/dist/cjs/Metadata.js +6 -61
  198. package/dist/cjs/Metadata.js.map +1 -1
  199. package/dist/cjs/MoreDropdown.js +14 -96
  200. package/dist/cjs/MoreDropdown.js.map +1 -1
  201. package/dist/cjs/NavigationHeader.js +21 -695
  202. package/dist/cjs/NavigationHeader.js.map +1 -1
  203. package/dist/cjs/NeetoWidget.js +18 -238
  204. package/dist/cjs/NeetoWidget.js.map +1 -1
  205. package/dist/cjs/Onboarding.js +15 -1211
  206. package/dist/cjs/Onboarding.js.map +1 -1
  207. package/dist/cjs/PageLoader.js +8 -51
  208. package/dist/cjs/PageLoader.js.map +1 -1
  209. package/dist/cjs/PhoneNumber.js +22 -156
  210. package/dist/cjs/PhoneNumber.js.map +1 -1
  211. package/dist/cjs/ProductEmbed.js +28 -118
  212. package/dist/cjs/ProductEmbed.js.map +1 -1
  213. package/dist/cjs/PublishBlock.js +13 -56
  214. package/dist/cjs/PublishBlock.js.map +1 -1
  215. package/dist/cjs/PublishYourItem.js +3 -1184
  216. package/dist/cjs/PublishYourItem.js.map +1 -1
  217. package/dist/cjs/Rename.js +23 -323
  218. package/dist/cjs/Rename.js.map +1 -1
  219. package/dist/cjs/ResponsiveDevicePicker.js +8 -144
  220. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  221. package/dist/cjs/Schedule.js +18 -287
  222. package/dist/cjs/Schedule.js.map +1 -1
  223. package/dist/cjs/Scrollable.js +8 -91
  224. package/dist/cjs/Scrollable.js.map +1 -1
  225. package/dist/cjs/Search.js +8 -144
  226. package/dist/cjs/Search.js.map +1 -1
  227. package/dist/cjs/Security.js +27 -1565
  228. package/dist/cjs/Security.js.map +1 -1
  229. package/dist/cjs/SendToFields.js +12 -95
  230. package/dist/cjs/SendToFields.js.map +1 -1
  231. package/dist/cjs/Settings.js +18 -476
  232. package/dist/cjs/Settings.js.map +1 -1
  233. package/dist/cjs/ShareViaEmail.js +20 -1716
  234. package/dist/cjs/ShareViaEmail.js.map +1 -1
  235. package/dist/cjs/ShareViaLink.js +36 -285
  236. package/dist/cjs/ShareViaLink.js.map +1 -1
  237. package/dist/cjs/Sidebar.js +52 -316
  238. package/dist/cjs/Sidebar.js.map +1 -1
  239. package/dist/cjs/SubHeader.js +18 -97
  240. package/dist/cjs/SubHeader.js.map +1 -1
  241. package/dist/cjs/SuffixedInput.js +14 -120
  242. package/dist/cjs/SuffixedInput.js.map +1 -1
  243. package/dist/cjs/TableWrapper.js +6 -7
  244. package/dist/cjs/TableWrapper.js.map +1 -1
  245. package/dist/cjs/Taxonomy.js +36 -1746
  246. package/dist/cjs/Taxonomy.js.map +1 -1
  247. package/dist/cjs/ThemeSidebar.js +34 -657
  248. package/dist/cjs/ThemeSidebar.js.map +1 -1
  249. package/dist/cjs/TimeFormat.js +8 -49
  250. package/dist/cjs/TimeFormat.js.map +1 -1
  251. package/dist/cjs/TimezoneMismatchModal.js +2 -56
  252. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  253. package/dist/cjs/ToggleFeatureCard.js +15 -152
  254. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  255. package/dist/cjs/defineProperty-886ed289.js +47 -0
  256. package/dist/cjs/defineProperty-886ed289.js.map +1 -0
  257. package/dist/cjs/extends-1b35a664.js +19 -0
  258. package/dist/cjs/extends-1b35a664.js.map +1 -0
  259. package/dist/cjs/index-248c4f4c.js +1186 -0
  260. package/dist/cjs/index-248c4f4c.js.map +1 -0
  261. package/dist/cjs/index-73f9c602.js +454 -0
  262. package/dist/cjs/index-73f9c602.js.map +1 -0
  263. package/dist/cjs/index-c55ad2bc.js +375 -0
  264. package/dist/cjs/index-c55ad2bc.js.map +1 -0
  265. package/dist/cjs/inject-css-80a5faa3.js +6 -0
  266. package/dist/cjs/inject-css-80a5faa3.js.map +1 -0
  267. package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
  268. package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
  269. package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
  270. package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
  271. package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
  272. package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
  273. package/dist/defineProperty-549061a7.js +43 -0
  274. package/dist/defineProperty-549061a7.js.map +1 -0
  275. package/dist/extends-093996c9.js +17 -0
  276. package/dist/extends-093996c9.js.map +1 -0
  277. package/dist/index-372a8b29.js +422 -0
  278. package/dist/index-372a8b29.js.map +1 -0
  279. package/dist/index-9720867c.js +372 -0
  280. package/dist/index-9720867c.js.map +1 -0
  281. package/dist/index-e5588516.js +1184 -0
  282. package/dist/index-e5588516.js.map +1 -0
  283. package/dist/inject-css-c86de496.js +4 -0
  284. package/dist/inject-css-c86de496.js.map +1 -0
  285. package/dist/objectWithoutProperties-a0edb288.js +31 -0
  286. package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
  287. package/dist/slicedToArray-b4278ecd.js +57 -0
  288. package/dist/slicedToArray-b4278ecd.js.map +1 -0
  289. package/dist/toConsumableArray-1cc38429.js +20 -0
  290. package/dist/toConsumableArray-1cc38429.js.map +1 -0
  291. package/package.json +1 -3
@@ -1,1357 +1,30 @@
1
- import React, { useState, useEffect, forwardRef } from 'react';
1
+ import { _ as _extends } from './extends-093996c9.js';
2
+ import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
3
+ import React__default, { useState, useEffect, forwardRef } from 'react';
4
+ import { p as propTypes } from './index-e5588516.js';
5
+ import { _ as _defineProperty } from './defineProperty-549061a7.js';
6
+ import { _ as _toConsumableArray } from './toConsumableArray-1cc38429.js';
7
+ import { _ as _slicedToArray } from './slicedToArray-b4278ecd.js';
2
8
  import { capitalize, isNotPresent, isPresent, truncate, noop } from '@bigbinary/neeto-cist';
3
9
  import useFetchNeetoApps from '@bigbinary/neeto-commons-frontend/react-utils/useFetchNeetoApps';
4
- import KeyboardShortcuts from '@bigbinary/neeto-molecules/KeyboardShortcuts';
5
10
  import { Profile } from '@bigbinary/neeto-team-members-frontend';
6
11
  import { Typography, Input, Dropdown, Spinner, Avatar } from '@bigbinary/neetoui';
12
+ import KeyboardShortcuts from './KeyboardShortcuts.js';
7
13
  import { NeetoIcon, Search, Right, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow } from '@bigbinary/neeto-icons';
8
14
  import { useTranslation } from 'react-i18next';
15
+ import { n } from './inject-css-c86de496.js';
9
16
  import classnames from 'classnames';
10
17
  import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
11
- import { t as t$1 } from 'i18next';
18
+ import { t } from 'i18next';
12
19
  import { toLower, mergeDeepLeft } from 'ramda';
13
20
  import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils/axios';
14
21
  import { removeFromLocalStorage } from '@bigbinary/neeto-commons-frontend/utils/general';
15
-
16
- function _extends() {
17
- _extends = Object.assign ? Object.assign.bind() : function (target) {
18
- for (var i = 1; i < arguments.length; i++) {
19
- var source = arguments[i];
20
- for (var key in source) {
21
- if (Object.prototype.hasOwnProperty.call(source, key)) {
22
- target[key] = source[key];
23
- }
24
- }
25
- }
26
- return target;
27
- };
28
- return _extends.apply(this, arguments);
29
- }
30
-
31
- function _objectWithoutPropertiesLoose(source, excluded) {
32
- if (source == null) return {};
33
- var target = {};
34
- var sourceKeys = Object.keys(source);
35
- var key, i;
36
- for (i = 0; i < sourceKeys.length; i++) {
37
- key = sourceKeys[i];
38
- if (excluded.indexOf(key) >= 0) continue;
39
- target[key] = source[key];
40
- }
41
- return target;
42
- }
43
-
44
- function _objectWithoutProperties(source, excluded) {
45
- if (source == null) return {};
46
- var target = _objectWithoutPropertiesLoose(source, excluded);
47
- var key, i;
48
- if (Object.getOwnPropertySymbols) {
49
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
50
- for (i = 0; i < sourceSymbolKeys.length; i++) {
51
- key = sourceSymbolKeys[i];
52
- if (excluded.indexOf(key) >= 0) continue;
53
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
54
- target[key] = source[key];
55
- }
56
- }
57
- return target;
58
- }
59
-
60
- var propTypes = {exports: {}};
61
-
62
- var reactIs = {exports: {}};
63
-
64
- var reactIs_production_min = {};
65
-
66
- /** @license React v16.13.1
67
- * react-is.production.min.js
68
- *
69
- * Copyright (c) Facebook, Inc. and its affiliates.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */
74
-
75
- var hasRequiredReactIs_production_min;
76
-
77
- function requireReactIs_production_min () {
78
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
79
- hasRequiredReactIs_production_min = 1;
80
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
81
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
82
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
83
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
84
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
85
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
86
- return reactIs_production_min;
87
- }
88
-
89
- var reactIs_development = {};
90
-
91
- /** @license React v16.13.1
92
- * react-is.development.js
93
- *
94
- * Copyright (c) Facebook, Inc. and its affiliates.
95
- *
96
- * This source code is licensed under the MIT license found in the
97
- * LICENSE file in the root directory of this source tree.
98
- */
99
-
100
- var hasRequiredReactIs_development;
101
-
102
- function requireReactIs_development () {
103
- if (hasRequiredReactIs_development) return reactIs_development;
104
- hasRequiredReactIs_development = 1;
105
-
106
-
107
-
108
- if (process.env.NODE_ENV !== "production") {
109
- (function() {
110
-
111
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
112
- // nor polyfill, then a plain number is used for performance.
113
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
114
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
115
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
116
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
117
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
118
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
119
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
120
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
121
- // (unstable) APIs that have been removed. Can we remove the symbols?
122
-
123
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
124
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
125
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
126
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
127
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
128
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
129
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
130
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
131
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
132
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
133
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
134
-
135
- function isValidElementType(type) {
136
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
137
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
138
- }
139
-
140
- function typeOf(object) {
141
- if (typeof object === 'object' && object !== null) {
142
- var $$typeof = object.$$typeof;
143
-
144
- switch ($$typeof) {
145
- case REACT_ELEMENT_TYPE:
146
- var type = object.type;
147
-
148
- switch (type) {
149
- case REACT_ASYNC_MODE_TYPE:
150
- case REACT_CONCURRENT_MODE_TYPE:
151
- case REACT_FRAGMENT_TYPE:
152
- case REACT_PROFILER_TYPE:
153
- case REACT_STRICT_MODE_TYPE:
154
- case REACT_SUSPENSE_TYPE:
155
- return type;
156
-
157
- default:
158
- var $$typeofType = type && type.$$typeof;
159
-
160
- switch ($$typeofType) {
161
- case REACT_CONTEXT_TYPE:
162
- case REACT_FORWARD_REF_TYPE:
163
- case REACT_LAZY_TYPE:
164
- case REACT_MEMO_TYPE:
165
- case REACT_PROVIDER_TYPE:
166
- return $$typeofType;
167
-
168
- default:
169
- return $$typeof;
170
- }
171
-
172
- }
173
-
174
- case REACT_PORTAL_TYPE:
175
- return $$typeof;
176
- }
177
- }
178
-
179
- return undefined;
180
- } // AsyncMode is deprecated along with isAsyncMode
181
-
182
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
183
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
184
- var ContextConsumer = REACT_CONTEXT_TYPE;
185
- var ContextProvider = REACT_PROVIDER_TYPE;
186
- var Element = REACT_ELEMENT_TYPE;
187
- var ForwardRef = REACT_FORWARD_REF_TYPE;
188
- var Fragment = REACT_FRAGMENT_TYPE;
189
- var Lazy = REACT_LAZY_TYPE;
190
- var Memo = REACT_MEMO_TYPE;
191
- var Portal = REACT_PORTAL_TYPE;
192
- var Profiler = REACT_PROFILER_TYPE;
193
- var StrictMode = REACT_STRICT_MODE_TYPE;
194
- var Suspense = REACT_SUSPENSE_TYPE;
195
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
196
-
197
- function isAsyncMode(object) {
198
- {
199
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
200
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
201
-
202
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
203
- }
204
- }
205
-
206
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
207
- }
208
- function isConcurrentMode(object) {
209
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
210
- }
211
- function isContextConsumer(object) {
212
- return typeOf(object) === REACT_CONTEXT_TYPE;
213
- }
214
- function isContextProvider(object) {
215
- return typeOf(object) === REACT_PROVIDER_TYPE;
216
- }
217
- function isElement(object) {
218
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
219
- }
220
- function isForwardRef(object) {
221
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
222
- }
223
- function isFragment(object) {
224
- return typeOf(object) === REACT_FRAGMENT_TYPE;
225
- }
226
- function isLazy(object) {
227
- return typeOf(object) === REACT_LAZY_TYPE;
228
- }
229
- function isMemo(object) {
230
- return typeOf(object) === REACT_MEMO_TYPE;
231
- }
232
- function isPortal(object) {
233
- return typeOf(object) === REACT_PORTAL_TYPE;
234
- }
235
- function isProfiler(object) {
236
- return typeOf(object) === REACT_PROFILER_TYPE;
237
- }
238
- function isStrictMode(object) {
239
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
240
- }
241
- function isSuspense(object) {
242
- return typeOf(object) === REACT_SUSPENSE_TYPE;
243
- }
244
-
245
- reactIs_development.AsyncMode = AsyncMode;
246
- reactIs_development.ConcurrentMode = ConcurrentMode;
247
- reactIs_development.ContextConsumer = ContextConsumer;
248
- reactIs_development.ContextProvider = ContextProvider;
249
- reactIs_development.Element = Element;
250
- reactIs_development.ForwardRef = ForwardRef;
251
- reactIs_development.Fragment = Fragment;
252
- reactIs_development.Lazy = Lazy;
253
- reactIs_development.Memo = Memo;
254
- reactIs_development.Portal = Portal;
255
- reactIs_development.Profiler = Profiler;
256
- reactIs_development.StrictMode = StrictMode;
257
- reactIs_development.Suspense = Suspense;
258
- reactIs_development.isAsyncMode = isAsyncMode;
259
- reactIs_development.isConcurrentMode = isConcurrentMode;
260
- reactIs_development.isContextConsumer = isContextConsumer;
261
- reactIs_development.isContextProvider = isContextProvider;
262
- reactIs_development.isElement = isElement;
263
- reactIs_development.isForwardRef = isForwardRef;
264
- reactIs_development.isFragment = isFragment;
265
- reactIs_development.isLazy = isLazy;
266
- reactIs_development.isMemo = isMemo;
267
- reactIs_development.isPortal = isPortal;
268
- reactIs_development.isProfiler = isProfiler;
269
- reactIs_development.isStrictMode = isStrictMode;
270
- reactIs_development.isSuspense = isSuspense;
271
- reactIs_development.isValidElementType = isValidElementType;
272
- reactIs_development.typeOf = typeOf;
273
- })();
274
- }
275
- return reactIs_development;
276
- }
277
-
278
- var hasRequiredReactIs;
279
-
280
- function requireReactIs () {
281
- if (hasRequiredReactIs) return reactIs.exports;
282
- hasRequiredReactIs = 1;
283
- (function (module) {
284
-
285
- if (process.env.NODE_ENV === 'production') {
286
- module.exports = requireReactIs_production_min();
287
- } else {
288
- module.exports = requireReactIs_development();
289
- }
290
- } (reactIs));
291
- return reactIs.exports;
292
- }
293
-
294
- /*
295
- object-assign
296
- (c) Sindre Sorhus
297
- @license MIT
298
- */
299
-
300
- var objectAssign;
301
- var hasRequiredObjectAssign;
302
-
303
- function requireObjectAssign () {
304
- if (hasRequiredObjectAssign) return objectAssign;
305
- hasRequiredObjectAssign = 1;
306
- /* eslint-disable no-unused-vars */
307
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
308
- var hasOwnProperty = Object.prototype.hasOwnProperty;
309
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
310
-
311
- function toObject(val) {
312
- if (val === null || val === undefined) {
313
- throw new TypeError('Object.assign cannot be called with null or undefined');
314
- }
315
-
316
- return Object(val);
317
- }
318
-
319
- function shouldUseNative() {
320
- try {
321
- if (!Object.assign) {
322
- return false;
323
- }
324
-
325
- // Detect buggy property enumeration order in older V8 versions.
326
-
327
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
328
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
329
- test1[5] = 'de';
330
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
331
- return false;
332
- }
333
-
334
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
335
- var test2 = {};
336
- for (var i = 0; i < 10; i++) {
337
- test2['_' + String.fromCharCode(i)] = i;
338
- }
339
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
340
- return test2[n];
341
- });
342
- if (order2.join('') !== '0123456789') {
343
- return false;
344
- }
345
-
346
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
347
- var test3 = {};
348
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
349
- test3[letter] = letter;
350
- });
351
- if (Object.keys(Object.assign({}, test3)).join('') !==
352
- 'abcdefghijklmnopqrst') {
353
- return false;
354
- }
355
-
356
- return true;
357
- } catch (err) {
358
- // We don't expect any of the above to throw, but better to be safe.
359
- return false;
360
- }
361
- }
362
-
363
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
364
- var from;
365
- var to = toObject(target);
366
- var symbols;
367
-
368
- for (var s = 1; s < arguments.length; s++) {
369
- from = Object(arguments[s]);
370
-
371
- for (var key in from) {
372
- if (hasOwnProperty.call(from, key)) {
373
- to[key] = from[key];
374
- }
375
- }
376
-
377
- if (getOwnPropertySymbols) {
378
- symbols = getOwnPropertySymbols(from);
379
- for (var i = 0; i < symbols.length; i++) {
380
- if (propIsEnumerable.call(from, symbols[i])) {
381
- to[symbols[i]] = from[symbols[i]];
382
- }
383
- }
384
- }
385
- }
386
-
387
- return to;
388
- };
389
- return objectAssign;
390
- }
391
-
392
- /**
393
- * Copyright (c) 2013-present, Facebook, Inc.
394
- *
395
- * This source code is licensed under the MIT license found in the
396
- * LICENSE file in the root directory of this source tree.
397
- */
398
-
399
- var ReactPropTypesSecret_1;
400
- var hasRequiredReactPropTypesSecret;
401
-
402
- function requireReactPropTypesSecret () {
403
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
404
- hasRequiredReactPropTypesSecret = 1;
405
-
406
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
407
-
408
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
409
- return ReactPropTypesSecret_1;
410
- }
411
-
412
- var has;
413
- var hasRequiredHas;
414
-
415
- function requireHas () {
416
- if (hasRequiredHas) return has;
417
- hasRequiredHas = 1;
418
- has = Function.call.bind(Object.prototype.hasOwnProperty);
419
- return has;
420
- }
421
-
422
- /**
423
- * Copyright (c) 2013-present, Facebook, Inc.
424
- *
425
- * This source code is licensed under the MIT license found in the
426
- * LICENSE file in the root directory of this source tree.
427
- */
428
-
429
- var checkPropTypes_1;
430
- var hasRequiredCheckPropTypes;
431
-
432
- function requireCheckPropTypes () {
433
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
434
- hasRequiredCheckPropTypes = 1;
435
-
436
- var printWarning = function() {};
437
-
438
- if (process.env.NODE_ENV !== 'production') {
439
- var ReactPropTypesSecret = requireReactPropTypesSecret();
440
- var loggedTypeFailures = {};
441
- var has = requireHas();
442
-
443
- printWarning = function(text) {
444
- var message = 'Warning: ' + text;
445
- if (typeof console !== 'undefined') {
446
- console.error(message);
447
- }
448
- try {
449
- // --- Welcome to debugging React ---
450
- // This error was thrown as a convenience so that you can use this stack
451
- // to find the callsite that caused this warning to fire.
452
- throw new Error(message);
453
- } catch (x) { /**/ }
454
- };
455
- }
456
-
457
- /**
458
- * Assert that the values match with the type specs.
459
- * Error messages are memorized and will only be shown once.
460
- *
461
- * @param {object} typeSpecs Map of name to a ReactPropType
462
- * @param {object} values Runtime values that need to be type-checked
463
- * @param {string} location e.g. "prop", "context", "child context"
464
- * @param {string} componentName Name of the component for error messages.
465
- * @param {?Function} getStack Returns the component stack.
466
- * @private
467
- */
468
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
469
- if (process.env.NODE_ENV !== 'production') {
470
- for (var typeSpecName in typeSpecs) {
471
- if (has(typeSpecs, typeSpecName)) {
472
- var error;
473
- // Prop type validation may throw. In case they do, we don't want to
474
- // fail the render phase where it didn't fail before. So we log it.
475
- // After these have been cleaned up, we'll let them throw.
476
- try {
477
- // This is intentionally an invariant that gets caught. It's the same
478
- // behavior as without this statement except with a better message.
479
- if (typeof typeSpecs[typeSpecName] !== 'function') {
480
- var err = Error(
481
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
482
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
483
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
484
- );
485
- err.name = 'Invariant Violation';
486
- throw err;
487
- }
488
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
489
- } catch (ex) {
490
- error = ex;
491
- }
492
- if (error && !(error instanceof Error)) {
493
- printWarning(
494
- (componentName || 'React class') + ': type specification of ' +
495
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
496
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
497
- 'You may have forgotten to pass an argument to the type checker ' +
498
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
499
- 'shape all require an argument).'
500
- );
501
- }
502
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
503
- // Only monitor this failure once because there tends to be a lot of the
504
- // same error.
505
- loggedTypeFailures[error.message] = true;
506
-
507
- var stack = getStack ? getStack() : '';
508
-
509
- printWarning(
510
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
511
- );
512
- }
513
- }
514
- }
515
- }
516
- }
517
-
518
- /**
519
- * Resets warning cache when testing.
520
- *
521
- * @private
522
- */
523
- checkPropTypes.resetWarningCache = function() {
524
- if (process.env.NODE_ENV !== 'production') {
525
- loggedTypeFailures = {};
526
- }
527
- };
528
-
529
- checkPropTypes_1 = checkPropTypes;
530
- return checkPropTypes_1;
531
- }
532
-
533
- /**
534
- * Copyright (c) 2013-present, Facebook, Inc.
535
- *
536
- * This source code is licensed under the MIT license found in the
537
- * LICENSE file in the root directory of this source tree.
538
- */
539
-
540
- var factoryWithTypeCheckers;
541
- var hasRequiredFactoryWithTypeCheckers;
542
-
543
- function requireFactoryWithTypeCheckers () {
544
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
545
- hasRequiredFactoryWithTypeCheckers = 1;
546
-
547
- var ReactIs = requireReactIs();
548
- var assign = requireObjectAssign();
549
-
550
- var ReactPropTypesSecret = requireReactPropTypesSecret();
551
- var has = requireHas();
552
- var checkPropTypes = requireCheckPropTypes();
553
-
554
- var printWarning = function() {};
555
-
556
- if (process.env.NODE_ENV !== 'production') {
557
- printWarning = function(text) {
558
- var message = 'Warning: ' + text;
559
- if (typeof console !== 'undefined') {
560
- console.error(message);
561
- }
562
- try {
563
- // --- Welcome to debugging React ---
564
- // This error was thrown as a convenience so that you can use this stack
565
- // to find the callsite that caused this warning to fire.
566
- throw new Error(message);
567
- } catch (x) {}
568
- };
569
- }
570
-
571
- function emptyFunctionThatReturnsNull() {
572
- return null;
573
- }
574
-
575
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
576
- /* global Symbol */
577
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
578
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
579
-
580
- /**
581
- * Returns the iterator method function contained on the iterable object.
582
- *
583
- * Be sure to invoke the function with the iterable as context:
584
- *
585
- * var iteratorFn = getIteratorFn(myIterable);
586
- * if (iteratorFn) {
587
- * var iterator = iteratorFn.call(myIterable);
588
- * ...
589
- * }
590
- *
591
- * @param {?object} maybeIterable
592
- * @return {?function}
593
- */
594
- function getIteratorFn(maybeIterable) {
595
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
596
- if (typeof iteratorFn === 'function') {
597
- return iteratorFn;
598
- }
599
- }
600
-
601
- /**
602
- * Collection of methods that allow declaration and validation of props that are
603
- * supplied to React components. Example usage:
604
- *
605
- * var Props = require('ReactPropTypes');
606
- * var MyArticle = React.createClass({
607
- * propTypes: {
608
- * // An optional string prop named "description".
609
- * description: Props.string,
610
- *
611
- * // A required enum prop named "category".
612
- * category: Props.oneOf(['News','Photos']).isRequired,
613
- *
614
- * // A prop named "dialog" that requires an instance of Dialog.
615
- * dialog: Props.instanceOf(Dialog).isRequired
616
- * },
617
- * render: function() { ... }
618
- * });
619
- *
620
- * A more formal specification of how these methods are used:
621
- *
622
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
623
- * decl := ReactPropTypes.{type}(.isRequired)?
624
- *
625
- * Each and every declaration produces a function with the same signature. This
626
- * allows the creation of custom validation functions. For example:
627
- *
628
- * var MyLink = React.createClass({
629
- * propTypes: {
630
- * // An optional string or URI prop named "href".
631
- * href: function(props, propName, componentName) {
632
- * var propValue = props[propName];
633
- * if (propValue != null && typeof propValue !== 'string' &&
634
- * !(propValue instanceof URI)) {
635
- * return new Error(
636
- * 'Expected a string or an URI for ' + propName + ' in ' +
637
- * componentName
638
- * );
639
- * }
640
- * }
641
- * },
642
- * render: function() {...}
643
- * });
644
- *
645
- * @internal
646
- */
647
-
648
- var ANONYMOUS = '<<anonymous>>';
649
-
650
- // Important!
651
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
652
- var ReactPropTypes = {
653
- array: createPrimitiveTypeChecker('array'),
654
- bigint: createPrimitiveTypeChecker('bigint'),
655
- bool: createPrimitiveTypeChecker('boolean'),
656
- func: createPrimitiveTypeChecker('function'),
657
- number: createPrimitiveTypeChecker('number'),
658
- object: createPrimitiveTypeChecker('object'),
659
- string: createPrimitiveTypeChecker('string'),
660
- symbol: createPrimitiveTypeChecker('symbol'),
661
-
662
- any: createAnyTypeChecker(),
663
- arrayOf: createArrayOfTypeChecker,
664
- element: createElementTypeChecker(),
665
- elementType: createElementTypeTypeChecker(),
666
- instanceOf: createInstanceTypeChecker,
667
- node: createNodeChecker(),
668
- objectOf: createObjectOfTypeChecker,
669
- oneOf: createEnumTypeChecker,
670
- oneOfType: createUnionTypeChecker,
671
- shape: createShapeTypeChecker,
672
- exact: createStrictShapeTypeChecker,
673
- };
674
-
675
- /**
676
- * inlined Object.is polyfill to avoid requiring consumers ship their own
677
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
678
- */
679
- /*eslint-disable no-self-compare*/
680
- function is(x, y) {
681
- // SameValue algorithm
682
- if (x === y) {
683
- // Steps 1-5, 7-10
684
- // Steps 6.b-6.e: +0 != -0
685
- return x !== 0 || 1 / x === 1 / y;
686
- } else {
687
- // Step 6.a: NaN == NaN
688
- return x !== x && y !== y;
689
- }
690
- }
691
- /*eslint-enable no-self-compare*/
692
-
693
- /**
694
- * We use an Error-like object for backward compatibility as people may call
695
- * PropTypes directly and inspect their output. However, we don't use real
696
- * Errors anymore. We don't inspect their stack anyway, and creating them
697
- * is prohibitively expensive if they are created too often, such as what
698
- * happens in oneOfType() for any type before the one that matched.
699
- */
700
- function PropTypeError(message, data) {
701
- this.message = message;
702
- this.data = data && typeof data === 'object' ? data: {};
703
- this.stack = '';
704
- }
705
- // Make `instanceof Error` still work for returned errors.
706
- PropTypeError.prototype = Error.prototype;
707
-
708
- function createChainableTypeChecker(validate) {
709
- if (process.env.NODE_ENV !== 'production') {
710
- var manualPropTypeCallCache = {};
711
- var manualPropTypeWarningCount = 0;
712
- }
713
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
714
- componentName = componentName || ANONYMOUS;
715
- propFullName = propFullName || propName;
716
-
717
- if (secret !== ReactPropTypesSecret) {
718
- if (throwOnDirectAccess) {
719
- // New behavior only for users of `prop-types` package
720
- var err = new Error(
721
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
722
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
723
- 'Read more at http://fb.me/use-check-prop-types'
724
- );
725
- err.name = 'Invariant Violation';
726
- throw err;
727
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
728
- // Old behavior for people using React.PropTypes
729
- var cacheKey = componentName + ':' + propName;
730
- if (
731
- !manualPropTypeCallCache[cacheKey] &&
732
- // Avoid spamming the console because they are often not actionable except for lib authors
733
- manualPropTypeWarningCount < 3
734
- ) {
735
- printWarning(
736
- 'You are manually calling a React.PropTypes validation ' +
737
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
738
- 'and will throw in the standalone `prop-types` package. ' +
739
- 'You may be seeing this warning due to a third-party PropTypes ' +
740
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
741
- );
742
- manualPropTypeCallCache[cacheKey] = true;
743
- manualPropTypeWarningCount++;
744
- }
745
- }
746
- }
747
- if (props[propName] == null) {
748
- if (isRequired) {
749
- if (props[propName] === null) {
750
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
751
- }
752
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
753
- }
754
- return null;
755
- } else {
756
- return validate(props, propName, componentName, location, propFullName);
757
- }
758
- }
759
-
760
- var chainedCheckType = checkType.bind(null, false);
761
- chainedCheckType.isRequired = checkType.bind(null, true);
762
-
763
- return chainedCheckType;
764
- }
765
-
766
- function createPrimitiveTypeChecker(expectedType) {
767
- function validate(props, propName, componentName, location, propFullName, secret) {
768
- var propValue = props[propName];
769
- var propType = getPropType(propValue);
770
- if (propType !== expectedType) {
771
- // `propValue` being instance of, say, date/regexp, pass the 'object'
772
- // check, but we can offer a more precise error message here rather than
773
- // 'of type `object`'.
774
- var preciseType = getPreciseType(propValue);
775
-
776
- return new PropTypeError(
777
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
778
- {expectedType: expectedType}
779
- );
780
- }
781
- return null;
782
- }
783
- return createChainableTypeChecker(validate);
784
- }
785
-
786
- function createAnyTypeChecker() {
787
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
788
- }
789
-
790
- function createArrayOfTypeChecker(typeChecker) {
791
- function validate(props, propName, componentName, location, propFullName) {
792
- if (typeof typeChecker !== 'function') {
793
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
794
- }
795
- var propValue = props[propName];
796
- if (!Array.isArray(propValue)) {
797
- var propType = getPropType(propValue);
798
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
799
- }
800
- for (var i = 0; i < propValue.length; i++) {
801
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
802
- if (error instanceof Error) {
803
- return error;
804
- }
805
- }
806
- return null;
807
- }
808
- return createChainableTypeChecker(validate);
809
- }
810
-
811
- function createElementTypeChecker() {
812
- function validate(props, propName, componentName, location, propFullName) {
813
- var propValue = props[propName];
814
- if (!isValidElement(propValue)) {
815
- var propType = getPropType(propValue);
816
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
817
- }
818
- return null;
819
- }
820
- return createChainableTypeChecker(validate);
821
- }
822
-
823
- function createElementTypeTypeChecker() {
824
- function validate(props, propName, componentName, location, propFullName) {
825
- var propValue = props[propName];
826
- if (!ReactIs.isValidElementType(propValue)) {
827
- var propType = getPropType(propValue);
828
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
829
- }
830
- return null;
831
- }
832
- return createChainableTypeChecker(validate);
833
- }
834
-
835
- function createInstanceTypeChecker(expectedClass) {
836
- function validate(props, propName, componentName, location, propFullName) {
837
- if (!(props[propName] instanceof expectedClass)) {
838
- var expectedClassName = expectedClass.name || ANONYMOUS;
839
- var actualClassName = getClassName(props[propName]);
840
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
841
- }
842
- return null;
843
- }
844
- return createChainableTypeChecker(validate);
845
- }
846
-
847
- function createEnumTypeChecker(expectedValues) {
848
- if (!Array.isArray(expectedValues)) {
849
- if (process.env.NODE_ENV !== 'production') {
850
- if (arguments.length > 1) {
851
- printWarning(
852
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
853
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
854
- );
855
- } else {
856
- printWarning('Invalid argument supplied to oneOf, expected an array.');
857
- }
858
- }
859
- return emptyFunctionThatReturnsNull;
860
- }
861
-
862
- function validate(props, propName, componentName, location, propFullName) {
863
- var propValue = props[propName];
864
- for (var i = 0; i < expectedValues.length; i++) {
865
- if (is(propValue, expectedValues[i])) {
866
- return null;
867
- }
868
- }
869
-
870
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
871
- var type = getPreciseType(value);
872
- if (type === 'symbol') {
873
- return String(value);
874
- }
875
- return value;
876
- });
877
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
878
- }
879
- return createChainableTypeChecker(validate);
880
- }
881
-
882
- function createObjectOfTypeChecker(typeChecker) {
883
- function validate(props, propName, componentName, location, propFullName) {
884
- if (typeof typeChecker !== 'function') {
885
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
886
- }
887
- var propValue = props[propName];
888
- var propType = getPropType(propValue);
889
- if (propType !== 'object') {
890
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
891
- }
892
- for (var key in propValue) {
893
- if (has(propValue, key)) {
894
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
895
- if (error instanceof Error) {
896
- return error;
897
- }
898
- }
899
- }
900
- return null;
901
- }
902
- return createChainableTypeChecker(validate);
903
- }
904
-
905
- function createUnionTypeChecker(arrayOfTypeCheckers) {
906
- if (!Array.isArray(arrayOfTypeCheckers)) {
907
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
908
- return emptyFunctionThatReturnsNull;
909
- }
910
-
911
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
912
- var checker = arrayOfTypeCheckers[i];
913
- if (typeof checker !== 'function') {
914
- printWarning(
915
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
916
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
917
- );
918
- return emptyFunctionThatReturnsNull;
919
- }
920
- }
921
-
922
- function validate(props, propName, componentName, location, propFullName) {
923
- var expectedTypes = [];
924
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
925
- var checker = arrayOfTypeCheckers[i];
926
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
927
- if (checkerResult == null) {
928
- return null;
929
- }
930
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
931
- expectedTypes.push(checkerResult.data.expectedType);
932
- }
933
- }
934
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
935
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
936
- }
937
- return createChainableTypeChecker(validate);
938
- }
939
-
940
- function createNodeChecker() {
941
- function validate(props, propName, componentName, location, propFullName) {
942
- if (!isNode(props[propName])) {
943
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
944
- }
945
- return null;
946
- }
947
- return createChainableTypeChecker(validate);
948
- }
949
-
950
- function invalidValidatorError(componentName, location, propFullName, key, type) {
951
- return new PropTypeError(
952
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
953
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
954
- );
955
- }
956
-
957
- function createShapeTypeChecker(shapeTypes) {
958
- function validate(props, propName, componentName, location, propFullName) {
959
- var propValue = props[propName];
960
- var propType = getPropType(propValue);
961
- if (propType !== 'object') {
962
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
963
- }
964
- for (var key in shapeTypes) {
965
- var checker = shapeTypes[key];
966
- if (typeof checker !== 'function') {
967
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
968
- }
969
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
970
- if (error) {
971
- return error;
972
- }
973
- }
974
- return null;
975
- }
976
- return createChainableTypeChecker(validate);
977
- }
978
-
979
- function createStrictShapeTypeChecker(shapeTypes) {
980
- function validate(props, propName, componentName, location, propFullName) {
981
- var propValue = props[propName];
982
- var propType = getPropType(propValue);
983
- if (propType !== 'object') {
984
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
985
- }
986
- // We need to check all keys in case some are required but missing from props.
987
- var allKeys = assign({}, props[propName], shapeTypes);
988
- for (var key in allKeys) {
989
- var checker = shapeTypes[key];
990
- if (has(shapeTypes, key) && typeof checker !== 'function') {
991
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
992
- }
993
- if (!checker) {
994
- return new PropTypeError(
995
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
996
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
997
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
998
- );
999
- }
1000
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1001
- if (error) {
1002
- return error;
1003
- }
1004
- }
1005
- return null;
1006
- }
1007
-
1008
- return createChainableTypeChecker(validate);
1009
- }
1010
-
1011
- function isNode(propValue) {
1012
- switch (typeof propValue) {
1013
- case 'number':
1014
- case 'string':
1015
- case 'undefined':
1016
- return true;
1017
- case 'boolean':
1018
- return !propValue;
1019
- case 'object':
1020
- if (Array.isArray(propValue)) {
1021
- return propValue.every(isNode);
1022
- }
1023
- if (propValue === null || isValidElement(propValue)) {
1024
- return true;
1025
- }
1026
-
1027
- var iteratorFn = getIteratorFn(propValue);
1028
- if (iteratorFn) {
1029
- var iterator = iteratorFn.call(propValue);
1030
- var step;
1031
- if (iteratorFn !== propValue.entries) {
1032
- while (!(step = iterator.next()).done) {
1033
- if (!isNode(step.value)) {
1034
- return false;
1035
- }
1036
- }
1037
- } else {
1038
- // Iterator will provide entry [k,v] tuples rather than values.
1039
- while (!(step = iterator.next()).done) {
1040
- var entry = step.value;
1041
- if (entry) {
1042
- if (!isNode(entry[1])) {
1043
- return false;
1044
- }
1045
- }
1046
- }
1047
- }
1048
- } else {
1049
- return false;
1050
- }
1051
-
1052
- return true;
1053
- default:
1054
- return false;
1055
- }
1056
- }
1057
-
1058
- function isSymbol(propType, propValue) {
1059
- // Native Symbol.
1060
- if (propType === 'symbol') {
1061
- return true;
1062
- }
1063
-
1064
- // falsy value can't be a Symbol
1065
- if (!propValue) {
1066
- return false;
1067
- }
1068
-
1069
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1070
- if (propValue['@@toStringTag'] === 'Symbol') {
1071
- return true;
1072
- }
1073
-
1074
- // Fallback for non-spec compliant Symbols which are polyfilled.
1075
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1076
- return true;
1077
- }
1078
-
1079
- return false;
1080
- }
1081
-
1082
- // Equivalent of `typeof` but with special handling for array and regexp.
1083
- function getPropType(propValue) {
1084
- var propType = typeof propValue;
1085
- if (Array.isArray(propValue)) {
1086
- return 'array';
1087
- }
1088
- if (propValue instanceof RegExp) {
1089
- // Old webkits (at least until Android 4.0) return 'function' rather than
1090
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1091
- // passes PropTypes.object.
1092
- return 'object';
1093
- }
1094
- if (isSymbol(propType, propValue)) {
1095
- return 'symbol';
1096
- }
1097
- return propType;
1098
- }
1099
-
1100
- // This handles more types than `getPropType`. Only used for error messages.
1101
- // See `createPrimitiveTypeChecker`.
1102
- function getPreciseType(propValue) {
1103
- if (typeof propValue === 'undefined' || propValue === null) {
1104
- return '' + propValue;
1105
- }
1106
- var propType = getPropType(propValue);
1107
- if (propType === 'object') {
1108
- if (propValue instanceof Date) {
1109
- return 'date';
1110
- } else if (propValue instanceof RegExp) {
1111
- return 'regexp';
1112
- }
1113
- }
1114
- return propType;
1115
- }
1116
-
1117
- // Returns a string that is postfixed to a warning about an invalid type.
1118
- // For example, "undefined" or "of type array"
1119
- function getPostfixForTypeWarning(value) {
1120
- var type = getPreciseType(value);
1121
- switch (type) {
1122
- case 'array':
1123
- case 'object':
1124
- return 'an ' + type;
1125
- case 'boolean':
1126
- case 'date':
1127
- case 'regexp':
1128
- return 'a ' + type;
1129
- default:
1130
- return type;
1131
- }
1132
- }
1133
-
1134
- // Returns class name of the object, if any.
1135
- function getClassName(propValue) {
1136
- if (!propValue.constructor || !propValue.constructor.name) {
1137
- return ANONYMOUS;
1138
- }
1139
- return propValue.constructor.name;
1140
- }
1141
-
1142
- ReactPropTypes.checkPropTypes = checkPropTypes;
1143
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1144
- ReactPropTypes.PropTypes = ReactPropTypes;
1145
-
1146
- return ReactPropTypes;
1147
- };
1148
- return factoryWithTypeCheckers;
1149
- }
1150
-
1151
- /**
1152
- * Copyright (c) 2013-present, Facebook, Inc.
1153
- *
1154
- * This source code is licensed under the MIT license found in the
1155
- * LICENSE file in the root directory of this source tree.
1156
- */
1157
-
1158
- var factoryWithThrowingShims;
1159
- var hasRequiredFactoryWithThrowingShims;
1160
-
1161
- function requireFactoryWithThrowingShims () {
1162
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1163
- hasRequiredFactoryWithThrowingShims = 1;
1164
-
1165
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1166
-
1167
- function emptyFunction() {}
1168
- function emptyFunctionWithReset() {}
1169
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1170
-
1171
- factoryWithThrowingShims = function() {
1172
- function shim(props, propName, componentName, location, propFullName, secret) {
1173
- if (secret === ReactPropTypesSecret) {
1174
- // It is still safe when called from React.
1175
- return;
1176
- }
1177
- var err = new Error(
1178
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1179
- 'Use PropTypes.checkPropTypes() to call them. ' +
1180
- 'Read more at http://fb.me/use-check-prop-types'
1181
- );
1182
- err.name = 'Invariant Violation';
1183
- throw err;
1184
- } shim.isRequired = shim;
1185
- function getShim() {
1186
- return shim;
1187
- } // Important!
1188
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1189
- var ReactPropTypes = {
1190
- array: shim,
1191
- bigint: shim,
1192
- bool: shim,
1193
- func: shim,
1194
- number: shim,
1195
- object: shim,
1196
- string: shim,
1197
- symbol: shim,
1198
-
1199
- any: shim,
1200
- arrayOf: getShim,
1201
- element: shim,
1202
- elementType: shim,
1203
- instanceOf: getShim,
1204
- node: shim,
1205
- objectOf: getShim,
1206
- oneOf: getShim,
1207
- oneOfType: getShim,
1208
- shape: getShim,
1209
- exact: getShim,
1210
-
1211
- checkPropTypes: emptyFunctionWithReset,
1212
- resetWarningCache: emptyFunction
1213
- };
1214
-
1215
- ReactPropTypes.PropTypes = ReactPropTypes;
1216
-
1217
- return ReactPropTypes;
1218
- };
1219
- return factoryWithThrowingShims;
1220
- }
1221
-
1222
- /**
1223
- * Copyright (c) 2013-present, Facebook, Inc.
1224
- *
1225
- * This source code is licensed under the MIT license found in the
1226
- * LICENSE file in the root directory of this source tree.
1227
- */
1228
-
1229
- if (process.env.NODE_ENV !== 'production') {
1230
- var ReactIs = requireReactIs();
1231
-
1232
- // By explicitly using `prop-types` you are opting into new development behavior.
1233
- // http://fb.me/prop-types-in-prod
1234
- var throwOnDirectAccess = true;
1235
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1236
- } else {
1237
- // By explicitly using `prop-types` you are opting into new production behavior.
1238
- // http://fb.me/prop-types-in-prod
1239
- propTypes.exports = requireFactoryWithThrowingShims()();
1240
- }
1241
-
1242
- function _typeof(o) {
1243
- "@babel/helpers - typeof";
1244
-
1245
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1246
- return typeof o;
1247
- } : function (o) {
1248
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1249
- }, _typeof(o);
1250
- }
1251
-
1252
- function _toPrimitive(input, hint) {
1253
- if (_typeof(input) !== "object" || input === null) return input;
1254
- var prim = input[Symbol.toPrimitive];
1255
- if (prim !== undefined) {
1256
- var res = prim.call(input, hint || "default");
1257
- if (_typeof(res) !== "object") return res;
1258
- throw new TypeError("@@toPrimitive must return a primitive value.");
1259
- }
1260
- return (hint === "string" ? String : Number)(input);
1261
- }
1262
-
1263
- function _toPropertyKey(arg) {
1264
- var key = _toPrimitive(arg, "string");
1265
- return _typeof(key) === "symbol" ? key : String(key);
1266
- }
1267
-
1268
- function _defineProperty(obj, key, value) {
1269
- key = _toPropertyKey(key);
1270
- if (key in obj) {
1271
- Object.defineProperty(obj, key, {
1272
- value: value,
1273
- enumerable: true,
1274
- configurable: true,
1275
- writable: true
1276
- });
1277
- } else {
1278
- obj[key] = value;
1279
- }
1280
- return obj;
1281
- }
1282
-
1283
- function _arrayLikeToArray(arr, len) {
1284
- if (len == null || len > arr.length) len = arr.length;
1285
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1286
- return arr2;
1287
- }
1288
-
1289
- function _arrayWithoutHoles(arr) {
1290
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1291
- }
1292
-
1293
- function _iterableToArray(iter) {
1294
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1295
- }
1296
-
1297
- function _unsupportedIterableToArray(o, minLen) {
1298
- if (!o) return;
1299
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1300
- var n = Object.prototype.toString.call(o).slice(8, -1);
1301
- if (n === "Object" && o.constructor) n = o.constructor.name;
1302
- if (n === "Map" || n === "Set") return Array.from(o);
1303
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1304
- }
1305
-
1306
- function _nonIterableSpread() {
1307
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1308
- }
1309
-
1310
- function _toConsumableArray(arr) {
1311
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1312
- }
1313
-
1314
- function _arrayWithHoles(arr) {
1315
- if (Array.isArray(arr)) return arr;
1316
- }
1317
-
1318
- function _iterableToArrayLimit(r, l) {
1319
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
1320
- if (null != t) {
1321
- var e,
1322
- n,
1323
- i,
1324
- u,
1325
- a = [],
1326
- f = !0,
1327
- o = !1;
1328
- try {
1329
- if (i = (t = t.call(r)).next, 0 === l) {
1330
- if (Object(t) !== t) return;
1331
- f = !1;
1332
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
1333
- } catch (r) {
1334
- o = !0, n = r;
1335
- } finally {
1336
- try {
1337
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
1338
- } finally {
1339
- if (o) throw n;
1340
- }
1341
- }
1342
- return a;
1343
- }
1344
- }
1345
-
1346
- function _nonIterableRest() {
1347
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1348
- }
1349
-
1350
- function _slicedToArray(arr, i) {
1351
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1352
- }
1353
-
1354
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
22
+ import '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
23
+ import 'zustand';
24
+ import 'zustand/shallow';
25
+ import '@bigbinary/neetoui/managers';
26
+ import '@bigbinary/neeto-hotkeys';
27
+ import 'platform';
1355
28
 
1356
29
  var css$1 = ".neeto-molecules-app-switcher__wrapper{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:column;justify-content:flex-start;max-width:100%;overflow-y:auto;padding:40px;position:relative;transition:all .3s;width:100%}@media only screen and (max-width:992px){.neeto-molecules-app-switcher__wrapper{padding:32px}}@media screen and (max-width:768px){.neeto-molecules-app-switcher__wrapper{padding:16px}}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}@media only screen and (max-width:992px){.neeto-molecules-app-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(248px,1fr))}}@media only screen and (max-width:640px){.neeto-molecules-app-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(100%,1fr))}}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:32px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}@media only screen and (max-width:768px){.neeto-molecules-app-switcher__header{align-items:flex-start;flex-direction:column-reverse;gap:24px}}@media only screen and (max-width:640px){.neeto-molecules-app-switcher__header h1{font-size:24px}}.neeto-molecules-app-switcher__close-btn{position:absolute;right:12px;top:12px}.neeto-molecules-app-switcher__search-wrapper{flex-grow:1}@media only screen and (min-width:992px){.neeto-molecules-app-switcher__search-wrapper{flex-grow:0;width:296px}}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}";
1357
30
  n(css$1,{});
@@ -1362,7 +35,7 @@ var AppLink = function AppLink(_ref) {
1362
35
  url = _ref.url;
1363
36
  var appName = "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase());
1364
37
  var AppIcon = AppIcons[appName];
1365
- return /*#__PURE__*/React.createElement("a", {
38
+ return /*#__PURE__*/React__default.createElement("a", {
1366
39
  "data-cy": "".concat(name, "-app-link"),
1367
40
  "data-test-id": "neetoapp-link-".concat(name),
1368
41
  href: url,
@@ -1371,29 +44,29 @@ var AppLink = function AppLink(_ref) {
1371
44
  className: classnames("neeto-molecules-app-switcher-link", {
1372
45
  "neeto-molecules-app-switcher-link--active": capitalize(globalProps.appName) === appName
1373
46
  })
1374
- }, /*#__PURE__*/React.createElement("div", {
47
+ }, /*#__PURE__*/React__default.createElement("div", {
1375
48
  className: classnames("neeto-molecules-app-switcher-link__icon-holder", {
1376
49
  "neeto-ui-bg-primary-500": !AppIcon
1377
50
  })
1378
- }, AppIcon ? /*#__PURE__*/React.createElement(AppIcon, {
51
+ }, AppIcon ? /*#__PURE__*/React__default.createElement(AppIcon, {
1379
52
  size: 42
1380
- }) : /*#__PURE__*/React.createElement(NeetoIcon, {
53
+ }) : /*#__PURE__*/React__default.createElement(NeetoIcon, {
1381
54
  color: "white",
1382
55
  size: 42
1383
- })), /*#__PURE__*/React.createElement("div", {
56
+ })), /*#__PURE__*/React__default.createElement("div", {
1384
57
  className: "neeto-molecules-app-switcher-link__content"
1385
- }, /*#__PURE__*/React.createElement(Typography, {
58
+ }, /*#__PURE__*/React__default.createElement(Typography, {
1386
59
  component: "span",
1387
60
  lineHeight: "relaxed",
1388
61
  style: "h4",
1389
62
  weight: "medium"
1390
- }, name), /*#__PURE__*/React.createElement(Typography, {
63
+ }, name), /*#__PURE__*/React__default.createElement(Typography, {
1391
64
  component: "span",
1392
65
  style: "body3",
1393
66
  weight: "normal"
1394
67
  }, description)));
1395
68
  };
1396
- var AppLink$1 = /*#__PURE__*/React.memo(AppLink);
69
+ var AppLink$1 = /*#__PURE__*/React__default.memo(AppLink);
1397
70
 
1398
71
  var Body = function Body() {
1399
72
  var _useTranslation = useTranslation(),
@@ -1414,53 +87,53 @@ var Body = function Body() {
1414
87
  var handleSearch = function handleSearch(e) {
1415
88
  return setSearchTerm(e.target.value);
1416
89
  };
1417
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
90
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1418
91
  className: "neeto-molecules-app-switcher__header",
1419
92
  "data-cy": "app-switcher-body-wrapper"
1420
- }, /*#__PURE__*/React.createElement(Typography, {
93
+ }, /*#__PURE__*/React__default.createElement(Typography, {
1421
94
  style: "h1"
1422
- }, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/React.createElement("div", {
95
+ }, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/React__default.createElement("div", {
1423
96
  className: "neeto-molecules-app-switcher__search-wrapper"
1424
- }, /*#__PURE__*/React.createElement(Input, {
97
+ }, /*#__PURE__*/React__default.createElement(Input, {
1425
98
  autoFocus: true,
1426
99
  "data-cy": "app-switcher-search-input",
1427
100
  placeholder: t("neetoMolecules.appSwitcher.searchProducts"),
1428
- prefix: /*#__PURE__*/React.createElement(Search, null),
101
+ prefix: /*#__PURE__*/React__default.createElement(Search, null),
1429
102
  type: "search",
1430
103
  value: searchTerm,
1431
104
  onChange: handleSearch
1432
- }))), /*#__PURE__*/React.createElement("div", {
105
+ }))), /*#__PURE__*/React__default.createElement("div", {
1433
106
  className: "neeto-molecules-app-switcher__body"
1434
- }, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/React.createElement("div", {
107
+ }, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
1435
108
  className: "neeto-molecules-app-switcher__grid"
1436
109
  }, filteredApps.map(function (app) {
1437
- return /*#__PURE__*/React.createElement(AppLink$1, _extends({
110
+ return /*#__PURE__*/React__default.createElement(AppLink$1, _extends({
1438
111
  key: app.name
1439
112
  }, app));
1440
- })) : /*#__PURE__*/React.createElement(Typography, {
113
+ })) : /*#__PURE__*/React__default.createElement(Typography, {
1441
114
  className: "neeto-ui-text-center",
1442
115
  style: "body1"
1443
116
  }, t("neetoMolecules.appSwitcher.noApps"))));
1444
117
  };
1445
118
 
1446
119
  var AppSwitcher = function AppSwitcher() {
1447
- return /*#__PURE__*/React.createElement("div", {
120
+ return /*#__PURE__*/React__default.createElement("div", {
1448
121
  className: "neeto-molecules-app-switcher__wrapper",
1449
122
  "data-cy": "switcher-wrapper",
1450
123
  "data-testid": "switcher-wrapper",
1451
124
  key: "switcher-wrapper"
1452
- }, /*#__PURE__*/React.createElement(Body, null));
125
+ }, /*#__PURE__*/React__default.createElement(Body, null));
1453
126
  };
1454
127
 
1455
128
  var _excluded$2 = ["showLoading"];
1456
129
  var ProductSwitcherIcon = function ProductSwitcherIcon(_ref) {
1457
130
  var showLoading = _ref.showLoading,
1458
131
  otherProps = _objectWithoutProperties(_ref, _excluded$2);
1459
- return showLoading ? /*#__PURE__*/React.createElement("span", {
132
+ return showLoading ? /*#__PURE__*/React__default.createElement("span", {
1460
133
  "data-testid": "app-switcher-button-loader"
1461
- }, /*#__PURE__*/React.createElement(Spinner, _extends({
134
+ }, /*#__PURE__*/React__default.createElement(Spinner, _extends({
1462
135
  size: 18
1463
- }, otherProps))) : /*#__PURE__*/React.createElement(AppSwitcher$1, _extends({
136
+ }, otherProps))) : /*#__PURE__*/React__default.createElement(AppSwitcher$1, _extends({
1464
137
  size: 18
1465
138
  }, otherProps));
1466
139
  };
@@ -1479,7 +152,7 @@ var AppSwitcherMenu = function AppSwitcherMenu() {
1479
152
  data = _useFetchNeetoApps.data,
1480
153
  refetchNeetoApps = _useFetchNeetoApps.refetch,
1481
154
  isStale = _useFetchNeetoApps.isStale;
1482
- return /*#__PURE__*/React.createElement(Dropdown, {
155
+ return /*#__PURE__*/React__default.createElement(Dropdown, {
1483
156
  className: "neeto-molecules-app-switcher-menu-popup-wrapper",
1484
157
  closeOnSelect: false,
1485
158
  disabled: !data,
@@ -1489,16 +162,16 @@ var AppSwitcherMenu = function AppSwitcherMenu() {
1489
162
  position: "right",
1490
163
  trigger: "hover",
1491
164
  zIndex: 99999,
1492
- customTarget: /*#__PURE__*/React.createElement(MenuItem.Button, {
165
+ customTarget: /*#__PURE__*/React__default.createElement(MenuItem.Button, {
1493
166
  className: "neeto-molecules-menu-sublist__item-btn",
1494
167
  "data-cy": "app-switcher-button",
1495
168
  "data-testid": "app-switcher-button",
1496
169
  label: t("neetoMolecules.sidebar.productSwitcher"),
1497
170
  style: "text",
1498
- suffix: /*#__PURE__*/React.createElement(Right, {
171
+ suffix: /*#__PURE__*/React__default.createElement(Right, {
1499
172
  size: 18
1500
173
  }),
1501
- prefix: /*#__PURE__*/React.createElement(ProductSwitcherIcon, {
174
+ prefix: /*#__PURE__*/React__default.createElement(ProductSwitcherIcon, {
1502
175
  showLoading: !data && hasHovered,
1503
176
  size: 18
1504
177
  }),
@@ -1511,7 +184,7 @@ var AppSwitcherMenu = function AppSwitcherMenu() {
1511
184
  dropdownProps: {
1512
185
  classNames: "neeto-molecules-app-switcher-menu-popup__dropdown"
1513
186
  }
1514
- }, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement(MenuItem, null, /*#__PURE__*/React.createElement(AppSwitcher, null))));
187
+ }, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem, null, /*#__PURE__*/React__default.createElement(AppSwitcher, null))));
1515
188
  };
1516
189
 
1517
190
  var _excluded$1 = ["label", "icon", "changesCount"];
@@ -1524,15 +197,15 @@ var LinkSection = function LinkSection(_ref) {
1524
197
  Icon = _ref2.icon,
1525
198
  changesCount = _ref2.changesCount,
1526
199
  otherProps = _objectWithoutProperties(_ref2, _excluded$1);
1527
- return /*#__PURE__*/React.createElement(MenuItem.Button, _extends({
200
+ return /*#__PURE__*/React__default.createElement(MenuItem.Button, _extends({
1528
201
  className: "neeto-molecules-menu-sublist__item-btn",
1529
202
  "data-cy": "floating-action-menu-link-section",
1530
203
  key: idx,
1531
- prefix: /*#__PURE__*/React.createElement(Icon, {
204
+ prefix: /*#__PURE__*/React__default.createElement(Icon, {
1532
205
  size: 18
1533
206
  }),
1534
207
  style: "text"
1535
- }, otherProps), label, isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
208
+ }, otherProps), label, isPresent(changesCount) && /*#__PURE__*/React__default.createElement("span", {
1536
209
  className: "neeto-molecules-menu-list__item-btn-count",
1537
210
  "data-cy": "help-section-menu-changes-count",
1538
211
  "data-testid": "help-section-menu-changes-count"
@@ -1544,18 +217,18 @@ var ProfileHeader = function ProfileHeader(_ref) {
1544
217
  var profileInfo = _ref.profileInfo;
1545
218
  var name = profileInfo.name,
1546
219
  email = profileInfo.email;
1547
- return /*#__PURE__*/React.createElement("div", {
220
+ return /*#__PURE__*/React__default.createElement("div", {
1548
221
  className: "neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3 neeto-ui-bg-primary-100 neeto-molecules-profile-popup__top-section",
1549
222
  "data-cy": "floating-action-menu-profile-header"
1550
- }, /*#__PURE__*/React.createElement("div", {
223
+ }, /*#__PURE__*/React__default.createElement("div", {
1551
224
  className: "left-0 top-0"
1552
- }, /*#__PURE__*/React.createElement(Avatar, {
225
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
1553
226
  "data-cy": "floating-action-menu-header-profile-icon",
1554
227
  size: "large",
1555
228
  user: profileInfo
1556
- })), /*#__PURE__*/React.createElement("div", {
229
+ })), /*#__PURE__*/React__default.createElement("div", {
1557
230
  className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-grow neeto-ui-min-w-0 neeto-ui-pl-3"
1558
- }, /*#__PURE__*/React.createElement(Typography, {
231
+ }, /*#__PURE__*/React__default.createElement(Typography, {
1559
232
  className: "neeto-ui-m-0",
1560
233
  component: "h2",
1561
234
  "data-cy": "floating-action-menu-header-user-name",
@@ -1563,7 +236,7 @@ var ProfileHeader = function ProfileHeader(_ref) {
1563
236
  style: "h5",
1564
237
  title: name,
1565
238
  weight: "semibold"
1566
- }, truncate(name, 18)), email && /*#__PURE__*/React.createElement(Typography, {
239
+ }, truncate(name, 18)), email && /*#__PURE__*/React__default.createElement(Typography, {
1567
240
  className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-700",
1568
241
  "data-cy": "floating-action-menu-header-user-email",
1569
242
  lineHeight: "tight",
@@ -1581,21 +254,21 @@ var ProfileMenu = function ProfileMenu(_ref) {
1581
254
  var Menu = Dropdown.Menu,
1582
255
  MenuItem = Dropdown.MenuItem,
1583
256
  Divider = Dropdown.Divider;
1584
- return /*#__PURE__*/React.createElement(Menu, {
257
+ return /*#__PURE__*/React__default.createElement(Menu, {
1585
258
  className: "pb-1"
1586
- }, /*#__PURE__*/React.createElement(MenuItem, {
259
+ }, /*#__PURE__*/React__default.createElement(MenuItem, {
1587
260
  className: "neeto-molecules-profile-popup mb-1",
1588
261
  "data-cy": "profile-popup",
1589
262
  "data-testid": "profile-popup"
1590
- }, /*#__PURE__*/React.createElement(ProfileHeader, {
263
+ }, /*#__PURE__*/React__default.createElement(ProfileHeader, {
1591
264
  profileInfo: profileInfo
1592
- })), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcherMenu, null), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(LinkSection, {
265
+ })), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcherMenu, null), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(LinkSection, {
1593
266
  links: topLinks
1594
- }), isPresent(customContent) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(MenuItem, {
267
+ }), isPresent(customContent) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(MenuItem, {
1595
268
  className: "neeto-molecules-floating-action-button__profile-wrapper-custom-content"
1596
- }, customContent)), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(LinkSection, {
269
+ }, customContent)), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(LinkSection, {
1597
270
  links: helpLinks
1598
- }), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(LinkSection, {
271
+ }), /*#__PURE__*/React__default.createElement(Divider, null), /*#__PURE__*/React__default.createElement(LinkSection, {
1599
272
  links: bottomLinks
1600
273
  }));
1601
274
  };
@@ -1609,7 +282,7 @@ var MY_ORGANIZATION_URL = "/auth/organization/edit";
1609
282
  var CHANGELOG_WIDGET_TRIGGER_ID = "neetochangelog-trigger";
1610
283
  var DEFAULT_HELP_LINK_PROPS = {
1611
284
  liveChatProps: {
1612
- label: t$1("neetoMolecules.sidebar.helpLinks.liveChat"),
285
+ label: t("neetoMolecules.sidebar.helpLinks.liveChat"),
1613
286
  icon: ChatEmpty,
1614
287
  "data-cy": "help-link-live-chat-button",
1615
288
  onClick: function onClick() {
@@ -1619,7 +292,7 @@ var DEFAULT_HELP_LINK_PROPS = {
1619
292
  }
1620
293
  },
1621
294
  helpCenterProps: {
1622
- label: t$1("neetoMolecules.sidebar.helpLinks.helpArticles"),
295
+ label: t("neetoMolecules.sidebar.helpLinks.helpArticles"),
1623
296
  icon: Book,
1624
297
  "data-cy": "help-link-help-center-button",
1625
298
  href: "https://help.".concat(toLower(globalProps.appName), ".com/"),
@@ -1627,13 +300,13 @@ var DEFAULT_HELP_LINK_PROPS = {
1627
300
  },
1628
301
  changelogProps: {
1629
302
  id: CHANGELOG_WIDGET_TRIGGER_ID,
1630
- label: t$1("neetoMolecules.sidebar.helpLinks.whatsNew"),
303
+ label: t("neetoMolecules.sidebar.helpLinks.whatsNew"),
1631
304
  icon: Gift,
1632
305
  "data-cy": "help-link-changelog-button",
1633
306
  isVisible: shouldShowWhatsNew
1634
307
  },
1635
308
  keyboardShortcutProps: {
1636
- label: t$1("neetoMolecules.sidebar.helpLinks.keyboardShortcuts"),
309
+ label: t("neetoMolecules.sidebar.helpLinks.keyboardShortcuts"),
1637
310
  icon: Keyboard,
1638
311
  "data-cy": "help-link-keyboard-shortcut-button"
1639
312
  }
@@ -1646,7 +319,7 @@ var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
1646
319
  };
1647
320
  var getDefaultTopLinks = function getDefaultTopLinks(isOwner, setIsProfilePaneOpen) {
1648
321
  return [{
1649
- label: t$1("neetoMolecules.sidebar.myProfile"),
322
+ label: t("neetoMolecules.sidebar.myProfile"),
1650
323
  icon: User,
1651
324
  onClick: function onClick() {
1652
325
  return setIsProfilePaneOpen(true);
@@ -1654,7 +327,7 @@ var getDefaultTopLinks = function getDefaultTopLinks(isOwner, setIsProfilePaneOp
1654
327
  "data-cy": "my-profile-button",
1655
328
  "data-testid": "my-profile-button"
1656
329
  }, isOwner && {
1657
- label: t$1("neetoMolecules.sidebar.myOrganization"),
330
+ label: t("neetoMolecules.sidebar.myOrganization"),
1658
331
  icon: Settings,
1659
332
  onClick: function onClick() {
1660
333
  return window.open(MY_ORGANIZATION_URL, "_blank");
@@ -1665,7 +338,7 @@ var getDefaultTopLinks = function getDefaultTopLinks(isOwner, setIsProfilePaneOp
1665
338
  var getDefaultBottomLinks = function getDefaultBottomLinks() {
1666
339
  return [{
1667
340
  icon: LeftArrow,
1668
- label: t$1("neetoMolecules.sidebar.logout"),
341
+ label: t("neetoMolecules.sidebar.logout"),
1669
342
  onClick: function onClick() {
1670
343
  resetAuthTokens();
1671
344
  removeFromLocalStorage(getSidebarStateLocalStorageKey());
@@ -1739,7 +412,7 @@ var ProfileButton = function ProfileButton(_ref) {
1739
412
  var hide = _ref2.hide;
1740
413
  return !hide;
1741
414
  });
1742
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Profile.Pane, null), /*#__PURE__*/React.createElement(Dropdown, {
415
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Profile.Pane, null), /*#__PURE__*/React__default.createElement(Dropdown, {
1743
416
  isMultiLevel: true,
1744
417
  appendTo: function appendTo() {
1745
418
  return document.body;
@@ -1756,7 +429,7 @@ var ProfileButton = function ProfileButton(_ref) {
1756
429
  theme: "light",
1757
430
  trigger: "hover",
1758
431
  zIndex: 99999,
1759
- customTarget: /*#__PURE__*/React.createElement(Avatar, {
432
+ customTarget: /*#__PURE__*/React__default.createElement(Avatar, {
1760
433
  className: "neeto-ui-flex-shrink-0 neeto-molecules-floating-action-button__profile-avatar",
1761
434
  "data-cy": "profile-avatar",
1762
435
  "data-testid": "profile-avatar",
@@ -1766,14 +439,14 @@ var ProfileButton = function ProfileButton(_ref) {
1766
439
  dropdownProps: {
1767
440
  classNames: "neeto-molecules-floating-action-button__dropdown"
1768
441
  }
1769
- }, /*#__PURE__*/React.createElement(ProfileMenu, {
442
+ }, /*#__PURE__*/React__default.createElement(ProfileMenu, {
1770
443
  customContent: customContent,
1771
444
  helpLinks: helpLinks,
1772
445
  profileInfo: profileInfo,
1773
446
  showAppSwitcher: showAppSwitcher,
1774
447
  bottomLinks: newBottomLinks,
1775
448
  topLinks: newTopLinks
1776
- })), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
449
+ })), isPresent(changesCount) && /*#__PURE__*/React__default.createElement("span", {
1777
450
  className: "neeto-molecules-menu__notif-count",
1778
451
  "data-cy": "help-icon-changes-count",
1779
452
  "data-testid": "help-icon-changes-count"
@@ -1797,12 +470,12 @@ var FloatingActionMenu = /*#__PURE__*/forwardRef(function (_ref, ref) {
1797
470
  showAppSwitcher = _ref$showAppSwitcher === void 0 ? true : _ref$showAppSwitcher,
1798
471
  customContent = _ref.customContent,
1799
472
  otherProps = _objectWithoutProperties(_ref, _excluded);
1800
- return /*#__PURE__*/React.createElement("div", _extends({
473
+ return /*#__PURE__*/React__default.createElement("div", _extends({
1801
474
  ref: ref,
1802
475
  className: "neeto-molecules-floating-action-menu__container neeto-ui-border-gray-300 border border-l-0",
1803
476
  "data-cy": "floating-action-menu-container",
1804
477
  "data-testid": "floating-action-menu-container"
1805
- }, otherProps), /*#__PURE__*/React.createElement(ProfileButton, {
478
+ }, otherProps), /*#__PURE__*/React__default.createElement(ProfileButton, {
1806
479
  bottomLinks: bottomLinks,
1807
480
  customContent: customContent,
1808
481
  helpLinkOverrides: helpLinkOverrides,