@bigbinary/neeto-molecules 1.1.10 → 1.1.12

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