@bigbinary/neeto-molecules 1.1.78 → 1.2.0-beta1

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