@bigbinary/neeto-molecules 1.1.16 → 1.1.18

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 (392) hide show
  1. package/dist/AutoSaveInput.js +658 -0
  2. package/dist/AutoSaveInput.js.map +1 -0
  3. package/dist/Breadcrumbs.js +38 -0
  4. package/dist/Breadcrumbs.js.map +1 -0
  5. package/dist/BrowserSupport.js +418 -0
  6. package/dist/BrowserSupport.js.map +1 -0
  7. package/dist/Builder.js +662 -0
  8. package/dist/Builder.js.map +1 -0
  9. package/dist/CalendarView.js +538 -0
  10. package/dist/CalendarView.js.map +1 -0
  11. package/dist/Codeblock.js +236 -0
  12. package/dist/Codeblock.js.map +1 -0
  13. package/dist/{Columns/index.js → Columns.js} +130 -13
  14. package/dist/Columns.js.map +1 -0
  15. package/dist/{ConfirmationModal/index.js → ConfirmationModal.js} +20 -8
  16. package/dist/ConfirmationModal.js.map +1 -0
  17. package/dist/Container.js +1211 -0
  18. package/dist/Container.js.map +1 -0
  19. package/dist/CopyToClipboardButton.js +209 -0
  20. package/dist/CopyToClipboardButton.js.map +1 -0
  21. package/dist/CustomDomain.js +688 -0
  22. package/dist/CustomDomain.js.map +1 -0
  23. package/dist/CustomDomainDashboard.js +2283 -0
  24. package/dist/CustomDomainDashboard.js.map +1 -0
  25. package/dist/{DateFormat/index.js → DateFormat.js} +25 -8
  26. package/dist/DateFormat.js.map +1 -0
  27. package/dist/DateRangeFilter.js +229 -0
  28. package/dist/DateRangeFilter.js.map +1 -0
  29. package/dist/DynamicVariables.js +183 -0
  30. package/dist/DynamicVariables.js.map +1 -0
  31. package/dist/EmailForm.js +2292 -0
  32. package/dist/EmailForm.js.map +1 -0
  33. package/dist/EmailPreview.js +1353 -0
  34. package/dist/EmailPreview.js.map +1 -0
  35. package/dist/{ErrorPage/constants.js → ErrorPage.js} +137 -36
  36. package/dist/ErrorPage.js.map +1 -0
  37. package/dist/Header.js +122 -0
  38. package/dist/Header.js.map +1 -0
  39. package/dist/IconPicker.js +313 -0
  40. package/dist/IconPicker.js.map +1 -0
  41. package/dist/ImageWithFallback.js +181 -0
  42. package/dist/ImageWithFallback.js.map +1 -0
  43. package/dist/IntegrationCard.js +343 -0
  44. package/dist/IntegrationCard.js.map +1 -0
  45. package/dist/IntegrationDisconnectAlert.js +80 -0
  46. package/dist/IntegrationDisconnectAlert.js.map +1 -0
  47. package/dist/{IntegrationWalkthroughModal/index.js → IntegrationWalkthroughModal.js} +8 -6
  48. package/dist/IntegrationWalkthroughModal.js.map +1 -0
  49. package/dist/IpRestriction.js +857 -0
  50. package/dist/IpRestriction.js.map +1 -0
  51. package/dist/KeyboardShortcuts.js +359 -0
  52. package/dist/KeyboardShortcuts.js.map +1 -0
  53. package/dist/LoginPage.js +593 -0
  54. package/dist/LoginPage.js.map +1 -0
  55. package/dist/MenuBar.js +1461 -0
  56. package/dist/MenuBar.js.map +1 -0
  57. package/dist/Metadata.js +206 -0
  58. package/dist/Metadata.js.map +1 -0
  59. package/dist/{MoreDropdown/index.js → MoreDropdown.js} +102 -9
  60. package/dist/MoreDropdown.js.map +1 -0
  61. package/dist/NavigationHeader.js +690 -0
  62. package/dist/NavigationHeader.js.map +1 -0
  63. package/dist/NeetoWidget.js +1333 -0
  64. package/dist/NeetoWidget.js.map +1 -0
  65. package/dist/PageLoader.js +134 -0
  66. package/dist/PageLoader.js.map +1 -0
  67. package/dist/PhoneNumber.js +365 -0
  68. package/dist/PhoneNumber.js.map +1 -0
  69. package/dist/PublishBlock.js +158 -0
  70. package/dist/PublishBlock.js.map +1 -0
  71. package/dist/Rename.js +450 -0
  72. package/dist/Rename.js.map +1 -0
  73. package/dist/ResponsiveDevicePicker.js +194 -0
  74. package/dist/ResponsiveDevicePicker.js.map +1 -0
  75. package/dist/Schedule.js +1046 -0
  76. package/dist/Schedule.js.map +1 -0
  77. package/dist/Scrollable.js +122 -0
  78. package/dist/Scrollable.js.map +1 -0
  79. package/dist/Search.js +151 -0
  80. package/dist/Search.js.map +1 -0
  81. package/dist/Security.js +1835 -0
  82. package/dist/Security.js.map +1 -0
  83. package/dist/SendToFields.js +601 -0
  84. package/dist/SendToFields.js.map +1 -0
  85. package/dist/Settings.js +435 -0
  86. package/dist/Settings.js.map +1 -0
  87. package/dist/ShareViaEmail.js +2277 -0
  88. package/dist/ShareViaEmail.js.map +1 -0
  89. package/dist/ShareViaLink.js +628 -0
  90. package/dist/ShareViaLink.js.map +1 -0
  91. package/dist/Sidebar.js +972 -0
  92. package/dist/Sidebar.js.map +1 -0
  93. package/dist/SubHeader.js +216 -0
  94. package/dist/SubHeader.js.map +1 -0
  95. package/dist/{TableWrapper/index.js → TableWrapper.js} +6 -3
  96. package/dist/TableWrapper.js.map +1 -0
  97. package/dist/ThemeSidebar.js +1984 -0
  98. package/dist/ThemeSidebar.js.map +1 -0
  99. package/dist/TimeFormat.js +47 -0
  100. package/dist/TimeFormat.js.map +1 -0
  101. package/dist/TimezoneMismatchModal.js +168 -0
  102. package/dist/TimezoneMismatchModal.js.map +1 -0
  103. package/dist/ToggleFeatureCard.js +323 -0
  104. package/dist/ToggleFeatureCard.js.map +1 -0
  105. package/package.json +22 -13
  106. package/dist/AutoSaveInput/autosaveinput.scss +0 -15
  107. package/dist/AutoSaveInput/constants.js +0 -13
  108. package/dist/AutoSaveInput/index.js +0 -124
  109. package/dist/AutoSaveInput/utils.js +0 -10
  110. package/dist/Breadcrumbs/breadcrumbs.scss +0 -33
  111. package/dist/Breadcrumbs/index.js +0 -31
  112. package/dist/BrowserSupport/Callout.js +0 -15
  113. package/dist/BrowserSupport/ContactUs.js +0 -21
  114. package/dist/BrowserSupport/DownloadLink.js +0 -17
  115. package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +0 -17
  116. package/dist/BrowserSupport/UnknownBrowser.js +0 -13
  117. package/dist/BrowserSupport/UnsupportedBrowser.js +0 -24
  118. package/dist/BrowserSupport/UnsupportedBrowserMessage.js +0 -22
  119. package/dist/BrowserSupport/UnsupportedBrowserVersion.js +0 -27
  120. package/dist/BrowserSupport/UnsupportedVersionMessage.js +0 -30
  121. package/dist/BrowserSupport/browsersupport.scss +0 -71
  122. package/dist/BrowserSupport/constants.js +0 -63
  123. package/dist/BrowserSupport/index.js +0 -58
  124. package/dist/BrowserSupport/utils.js +0 -32
  125. package/dist/Builder/Body.js +0 -9
  126. package/dist/Builder/ElementsPanel/ElementsList/Element.js +0 -27
  127. package/dist/Builder/ElementsPanel/ElementsList/Section.js +0 -28
  128. package/dist/Builder/ElementsPanel/ElementsList/TitleBar.js +0 -28
  129. package/dist/Builder/ElementsPanel/ElementsList/index.js +0 -63
  130. package/dist/Builder/ElementsPanel/SelectedElementsList/SelectedElement.js +0 -73
  131. package/dist/Builder/ElementsPanel/SelectedElementsList/TitleBar.js +0 -50
  132. package/dist/Builder/ElementsPanel/SelectedElementsList/index.js +0 -91
  133. package/dist/Builder/ElementsPanel/index.js +0 -70
  134. package/dist/Builder/PropertiesPanel/EmptyProperty.js +0 -21
  135. package/dist/Builder/PropertiesPanel/Skeleton.js +0 -24
  136. package/dist/Builder/PropertiesPanel/index.js +0 -12
  137. package/dist/Builder/index.js +0 -3
  138. package/dist/Builder/styles.scss +0 -84
  139. package/dist/CalendarView/CustomDatePicker.js +0 -87
  140. package/dist/CalendarView/Header.js +0 -53
  141. package/dist/CalendarView/constants.js +0 -19
  142. package/dist/CalendarView/index.js +0 -83
  143. package/dist/CalendarView/utils.js +0 -50
  144. package/dist/Codeblock/index.js +0 -30
  145. package/dist/Columns/utils.js +0 -20
  146. package/dist/ConfirmationModal/constants.js +0 -3
  147. package/dist/ConfirmationModal/utils.js +0 -6
  148. package/dist/Container/container.scss +0 -21
  149. package/dist/Container/index.js +0 -23
  150. package/dist/CopyToClipboardButton/constants.js +0 -13
  151. package/dist/CopyToClipboardButton/copyToClipboard.scss +0 -22
  152. package/dist/CopyToClipboardButton/index.js +0 -59
  153. package/dist/CustomDomain/index.js +0 -98
  154. package/dist/CustomDomainDashboard/DeleteAlert.js +0 -28
  155. package/dist/CustomDomainDashboard/Header.js +0 -32
  156. package/dist/CustomDomainDashboard/Manage/Record.js +0 -42
  157. package/dist/CustomDomainDashboard/Manage/StatusInfo.js +0 -21
  158. package/dist/CustomDomainDashboard/Manage/TagBlock.js +0 -36
  159. package/dist/CustomDomainDashboard/Manage/constants.js +0 -4
  160. package/dist/CustomDomainDashboard/Manage/index.js +0 -125
  161. package/dist/CustomDomainDashboard/Manage/utils.js +0 -8
  162. package/dist/CustomDomainDashboard/api.js +0 -35
  163. package/dist/CustomDomainDashboard/constants.js +0 -2
  164. package/dist/CustomDomainDashboard/index.js +0 -118
  165. package/dist/CustomDomainDashboard/useCustomDomainApi.js +0 -71
  166. package/dist/CustomDomainDashboard/utils.js +0 -84
  167. package/dist/DateRangeFilter/index.js +0 -60
  168. package/dist/DateRangeFilter/utils.js +0 -113
  169. package/dist/DynamicVariables/dynamic-variables.scss +0 -34
  170. package/dist/DynamicVariables/index.js +0 -59
  171. package/dist/DynamicVariables/utils.js +0 -37
  172. package/dist/EmailForm/EmailForm.js +0 -98
  173. package/dist/EmailForm/EmailFormProvider.js +0 -45
  174. package/dist/EmailForm/EmailPreview.js +0 -129
  175. package/dist/EmailForm/ReplyToField.js +0 -55
  176. package/dist/EmailForm/SendToField.js +0 -28
  177. package/dist/EmailForm/SubjectField.js +0 -64
  178. package/dist/EmailForm/constants.js +0 -33
  179. package/dist/EmailForm/contexts/EmailForm.js +0 -7
  180. package/dist/EmailForm/index.js +0 -4
  181. package/dist/EmailForm/utils.js +0 -10
  182. package/dist/EmailPreview/index.js +0 -2
  183. package/dist/ErrorPage/index.js +0 -78
  184. package/dist/Header/Breadcrumbs.js +0 -31
  185. package/dist/Header/Dropdown.js +0 -12
  186. package/dist/Header/constants.js +0 -6
  187. package/dist/Header/header.scss +0 -121
  188. package/dist/Header/index.js +0 -61
  189. package/dist/IconPicker/Icon.js +0 -34
  190. package/dist/IconPicker/NoResults.js +0 -12
  191. package/dist/IconPicker/constants.js +0 -8
  192. package/dist/IconPicker/icon-picker.scss +0 -1
  193. package/dist/IconPicker/index.js +0 -164
  194. package/dist/ImageWithFallback/ImagePlaceholder.js +0 -16
  195. package/dist/ImageWithFallback/index.js +0 -31
  196. package/dist/IntegrationCard/Dropdown.js +0 -45
  197. package/dist/IntegrationCard/Status.js +0 -25
  198. package/dist/IntegrationCard/index.js +0 -128
  199. package/dist/IntegrationDisconnectAlert/index.js +0 -36
  200. package/dist/IpRestriction/AllowedIpRanges.js +0 -75
  201. package/dist/IpRestriction/CurrentIp.js +0 -26
  202. package/dist/IpRestriction/FormRow.js +0 -84
  203. package/dist/IpRestriction/Row.js +0 -91
  204. package/dist/IpRestriction/apis/allowed_ip_ranges.js +0 -28
  205. package/dist/IpRestriction/apis/current_ip.js +0 -11
  206. package/dist/IpRestriction/apis/ip_restriction.js +0 -16
  207. package/dist/IpRestriction/constants.js +0 -20
  208. package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +0 -34
  209. package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +0 -10
  210. package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +0 -18
  211. package/dist/IpRestriction/index.js +0 -102
  212. package/dist/IpRestriction/utils.js +0 -85
  213. package/dist/KeyboardShortcuts/Pane/HotKey.js +0 -44
  214. package/dist/KeyboardShortcuts/Pane/HotKeyList.js +0 -42
  215. package/dist/KeyboardShortcuts/Pane/constants.js +0 -25
  216. package/dist/KeyboardShortcuts/Pane/index.js +0 -61
  217. package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +0 -5
  218. package/dist/KeyboardShortcuts/Pane/utils.js +0 -66
  219. package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +0 -31
  220. package/dist/KeyboardShortcuts/index.js +0 -9
  221. package/dist/LoginPage/Form.js +0 -57
  222. package/dist/LoginPage/constants.js +0 -12
  223. package/dist/LoginPage/index.js +0 -103
  224. package/dist/MenuBar/AddNew.js +0 -25
  225. package/dist/MenuBar/Block.js +0 -60
  226. package/dist/MenuBar/Item.js +0 -32
  227. package/dist/MenuBar/Search.js +0 -39
  228. package/dist/MenuBar/SubTitle.js +0 -23
  229. package/dist/MenuBar/index.js +0 -46
  230. package/dist/MenuBar/menubar.scss +0 -154
  231. package/dist/Metadata/Block.js +0 -30
  232. package/dist/Metadata/DetailsBlock.js +0 -86
  233. package/dist/Metadata/constants.js +0 -9
  234. package/dist/Metadata/index.js +0 -29
  235. package/dist/Metadata/metadata.scss +0 -15
  236. package/dist/MoreDropdown/constants.js +0 -25
  237. package/dist/NavigationHeader/LeftBlock.js +0 -32
  238. package/dist/NavigationHeader/Navigation.js +0 -24
  239. package/dist/NavigationHeader/RightBlock.js +0 -68
  240. package/dist/NavigationHeader/constants.js +0 -11
  241. package/dist/NavigationHeader/index.js +0 -19
  242. package/dist/NavigationHeader/navigation-header.scss +0 -3
  243. package/dist/NeetoWidget/CodeBlock.js +0 -57
  244. package/dist/NeetoWidget/CodeSnippet.js +0 -119
  245. package/dist/NeetoWidget/EmbedCode.js +0 -281
  246. package/dist/NeetoWidget/Main.js +0 -19
  247. package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +0 -25
  248. package/dist/NeetoWidget/SelectionSwitches/index.js +0 -44
  249. package/dist/NeetoWidget/SyntaxHighlighter.js +0 -17
  250. package/dist/NeetoWidget/api.js +0 -20
  251. package/dist/NeetoWidget/constants.js +0 -62
  252. package/dist/NeetoWidget/hooks/useForceUpdate.js +0 -14
  253. package/dist/NeetoWidget/index.js +0 -7
  254. package/dist/NeetoWidget/mutations.js +0 -9
  255. package/dist/NeetoWidget/queries.js +0 -32
  256. package/dist/NeetoWidget/utils.js +0 -83
  257. package/dist/PageLoader/index.js +0 -81
  258. package/dist/PageLoader/page-loader.scss +0 -95
  259. package/dist/PhoneNumber/CountryPicker/SingleValue.js +0 -21
  260. package/dist/PhoneNumber/CountryPicker/constants.js +0 -26
  261. package/dist/PhoneNumber/CountryPicker/index.js +0 -59
  262. package/dist/PhoneNumber/FormikPhoneNumberInput.js +0 -21
  263. package/dist/PhoneNumber/PhoneNumber.js +0 -30
  264. package/dist/PhoneNumber/PhoneNumberInput.js +0 -79
  265. package/dist/PhoneNumber/index.js +0 -5
  266. package/dist/PhoneNumber/utils.js +0 -55
  267. package/dist/PublishBlock/AlertBlock.js +0 -14
  268. package/dist/PublishBlock/index.js +0 -100
  269. package/dist/PublishBlock/publish-block.scss +0 -25
  270. package/dist/Rename/DummySpan.js +0 -21
  271. package/dist/Rename/constants.js +0 -1
  272. package/dist/Rename/index.js +0 -191
  273. package/dist/Rename/rename.scss +0 -69
  274. package/dist/Rename/utils.js +0 -10
  275. package/dist/ResponsiveDevicePicker/constants.js +0 -19
  276. package/dist/ResponsiveDevicePicker/index.js +0 -36
  277. package/dist/Schedule/DisplayAvailability.js +0 -58
  278. package/dist/Schedule/Fields.js +0 -43
  279. package/dist/Schedule/Form/ScheduleRow.js +0 -125
  280. package/dist/Schedule/Form/constants.js +0 -20
  281. package/dist/Schedule/Form/index.js +0 -144
  282. package/dist/Schedule/Form/utils.js +0 -63
  283. package/dist/Schedule/Header.js +0 -76
  284. package/dist/Schedule/ScheduleContext.js +0 -8
  285. package/dist/Schedule/constants.js +0 -8
  286. package/dist/Schedule/dayjsExtended/constants.js +0 -1
  287. package/dist/Schedule/dayjsExtended/index.js +0 -14
  288. package/dist/Schedule/dayjsExtended/range.js +0 -73
  289. package/dist/Schedule/index.js +0 -80
  290. package/dist/Schedule/utils.js +0 -152
  291. package/dist/Scrollable/constants.js +0 -8
  292. package/dist/Scrollable/index.js +0 -26
  293. package/dist/Scrollable/scrollable.scss +0 -32
  294. package/dist/Search/index.js +0 -52
  295. package/dist/Security/AllowedKeywords/Add.js +0 -38
  296. package/dist/Security/AllowedKeywords/index.js +0 -38
  297. package/dist/Security/PasswordBlock.js +0 -31
  298. package/dist/Security/RadioBlock.js +0 -38
  299. package/dist/Security/api.js +0 -12
  300. package/dist/Security/constants.js +0 -58
  301. package/dist/Security/index.js +0 -68
  302. package/dist/Security/useSecurityApi.js +0 -22
  303. package/dist/Security/utils.js +0 -31
  304. package/dist/SendToFields/FilePicker.js +0 -34
  305. package/dist/SendToFields/constants.js +0 -6
  306. package/dist/SendToFields/index.js +0 -102
  307. package/dist/SendToFields/utils.js +0 -54
  308. package/dist/Settings/Category.js +0 -30
  309. package/dist/Settings/Item.js +0 -38
  310. package/dist/Settings/index.js +0 -37
  311. package/dist/Settings/utils.js +0 -4
  312. package/dist/ShareViaEmail/EmailBodyEditor.js +0 -22
  313. package/dist/ShareViaEmail/FilePicker.js +0 -43
  314. package/dist/ShareViaEmail/Form.js +0 -105
  315. package/dist/ShareViaEmail/FormikDatePicker.js +0 -24
  316. package/dist/ShareViaEmail/constants.js +0 -14
  317. package/dist/ShareViaEmail/index.js +0 -92
  318. package/dist/ShareViaEmail/utils.js +0 -72
  319. package/dist/ShareViaLink/EditURL.js +0 -74
  320. package/dist/ShareViaLink/Link.js +0 -105
  321. package/dist/ShareViaLink/QRCode.js +0 -41
  322. package/dist/ShareViaLink/RegenerateURL.js +0 -47
  323. package/dist/ShareViaLink/SocialMedia.js +0 -52
  324. package/dist/ShareViaLink/constants.js +0 -25
  325. package/dist/ShareViaLink/edit-url.scss +0 -8
  326. package/dist/ShareViaLink/index.js +0 -46
  327. package/dist/ShareViaLink/utils.js +0 -47
  328. package/dist/Sidebar/AppSwitcher/AppLink.js +0 -45
  329. package/dist/Sidebar/AppSwitcher/Backdrop.js +0 -13
  330. package/dist/Sidebar/AppSwitcher/Body.js +0 -65
  331. package/dist/Sidebar/AppSwitcher/Portal.js +0 -27
  332. package/dist/Sidebar/AppSwitcher/appswitcher.scss +0 -164
  333. package/dist/Sidebar/AppSwitcher/index.js +0 -47
  334. package/dist/Sidebar/AppSwitcher/utils.js +0 -25
  335. package/dist/Sidebar/Chevron.js +0 -14
  336. package/dist/Sidebar/FeaturedTooltip.js +0 -19
  337. package/dist/Sidebar/Footer/AppSwitcherButton.js +0 -48
  338. package/dist/Sidebar/Footer/ProfileButton.js +0 -30
  339. package/dist/Sidebar/Footer/index.js +0 -56
  340. package/dist/Sidebar/Footer/utils.js +0 -39
  341. package/dist/Sidebar/Header.js +0 -33
  342. package/dist/Sidebar/HelpSection/HelpSectionMenu.js +0 -52
  343. package/dist/Sidebar/HelpSection/index.js +0 -32
  344. package/dist/Sidebar/Links.js +0 -112
  345. package/dist/Sidebar/NavIconWrapper.js +0 -20
  346. package/dist/Sidebar/ProfileSection/LinkSection.js +0 -36
  347. package/dist/Sidebar/ProfileSection/ProfileMenu.js +0 -48
  348. package/dist/Sidebar/ProfileSection/index.js +0 -42
  349. package/dist/Sidebar/constants.js +0 -40
  350. package/dist/Sidebar/index.js +0 -94
  351. package/dist/Sidebar/sidebar.scss +0 -379
  352. package/dist/Sidebar/utils.js +0 -18
  353. package/dist/SubHeader/RightBlock/Columns.js +0 -35
  354. package/dist/SubHeader/RightBlock/Download.js +0 -28
  355. package/dist/SubHeader/RightBlock/Filter.js +0 -31
  356. package/dist/SubHeader/RightBlock/index.js +0 -21
  357. package/dist/SubHeader/RightBlock/utils.js +0 -13
  358. package/dist/SubHeader/index.js +0 -28
  359. package/dist/SubHeader/subheader.scss +0 -78
  360. package/dist/ThemeSidebar/Customize/Logo.js +0 -39
  361. package/dist/ThemeSidebar/Customize/Properties.js +0 -170
  362. package/dist/ThemeSidebar/Customize/index.js +0 -66
  363. package/dist/ThemeSidebar/Themes/ThemeCard.js +0 -135
  364. package/dist/ThemeSidebar/Themes/index.js +0 -110
  365. package/dist/ThemeSidebar/TitleBar.js +0 -62
  366. package/dist/ThemeSidebar/constants.js +0 -127
  367. package/dist/ThemeSidebar/fields/AlignmentBlock.js +0 -50
  368. package/dist/ThemeSidebar/fields/Card.js +0 -19
  369. package/dist/ThemeSidebar/fields/ColorBlock.js +0 -19
  370. package/dist/ThemeSidebar/fields/FontPickerBlock.js +0 -35
  371. package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +0 -67
  372. package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +0 -22
  373. package/dist/ThemeSidebar/fields/ImageBlock/index.js +0 -55
  374. package/dist/ThemeSidebar/fields/SelectBlock.js +0 -24
  375. package/dist/ThemeSidebar/fields/SliderBlock.js +0 -30
  376. package/dist/ThemeSidebar/fields/SwitchBlock.js +0 -17
  377. package/dist/ThemeSidebar/fields/TextBlock.js +0 -13
  378. package/dist/ThemeSidebar/fields/slider.scss +0 -199
  379. package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +0 -149
  380. package/dist/ThemeSidebar/index.js +0 -118
  381. package/dist/ThemeSidebar/themeSidebar.scss +0 -45
  382. package/dist/ThemeSidebar/utils.js +0 -169
  383. package/dist/TimeFormat/index.js +0 -3
  384. package/dist/TimezoneMismatchModal/apis/time_zone.js +0 -9
  385. package/dist/TimezoneMismatchModal/index.js +0 -83
  386. package/dist/TimezoneMismatchModal/useTimeZoneApi.js +0 -10
  387. package/dist/TimezoneMismatchModal/utils.js +0 -12
  388. package/dist/ToggleFeatureCard/ToolTipSwitch.js +0 -31
  389. package/dist/ToggleFeatureCard/constants.js +0 -5
  390. package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +0 -11
  391. package/dist/ToggleFeatureCard/index.js +0 -148
  392. package/dist/ToggleFeatureCard/toggleFeatureCard.scss +0 -4
@@ -0,0 +1,593 @@
1
+ import React, { useState } from 'react';
2
+ import { Button as Button$1, Toastr } from '@bigbinary/neetoui';
3
+ import { useTranslation, Trans } from 'react-i18next';
4
+ import { t } from 'i18next';
5
+ import * as Yup from 'yup';
6
+ import { Formik, Form } from 'formik';
7
+ import { Button, Input } from '@bigbinary/neetoui/formik';
8
+ import { assoc } from 'ramda';
9
+
10
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
11
+ try {
12
+ var info = gen[key](arg);
13
+ var value = info.value;
14
+ } catch (error) {
15
+ reject(error);
16
+ return;
17
+ }
18
+ if (info.done) {
19
+ resolve(value);
20
+ } else {
21
+ Promise.resolve(value).then(_next, _throw);
22
+ }
23
+ }
24
+ function _asyncToGenerator(fn) {
25
+ return function () {
26
+ var self = this,
27
+ args = arguments;
28
+ return new Promise(function (resolve, reject) {
29
+ var gen = fn.apply(self, args);
30
+ function _next(value) {
31
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
32
+ }
33
+ function _throw(err) {
34
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
35
+ }
36
+ _next(undefined);
37
+ });
38
+ };
39
+ }
40
+
41
+ function _arrayWithHoles(arr) {
42
+ if (Array.isArray(arr)) return arr;
43
+ }
44
+
45
+ function _iterableToArrayLimit(arr, i) {
46
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
47
+ if (null != _i) {
48
+ var _s,
49
+ _e,
50
+ _x,
51
+ _r,
52
+ _arr = [],
53
+ _n = !0,
54
+ _d = !1;
55
+ try {
56
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
57
+ if (Object(_i) !== _i) return;
58
+ _n = !1;
59
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
60
+ } catch (err) {
61
+ _d = !0, _e = err;
62
+ } finally {
63
+ try {
64
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
65
+ } finally {
66
+ if (_d) throw _e;
67
+ }
68
+ }
69
+ return _arr;
70
+ }
71
+ }
72
+
73
+ function _arrayLikeToArray(arr, len) {
74
+ if (len == null || len > arr.length) len = arr.length;
75
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
76
+ return arr2;
77
+ }
78
+
79
+ function _unsupportedIterableToArray(o, minLen) {
80
+ if (!o) return;
81
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
82
+ var n = Object.prototype.toString.call(o).slice(8, -1);
83
+ if (n === "Object" && o.constructor) n = o.constructor.name;
84
+ if (n === "Map" || n === "Set") return Array.from(o);
85
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
86
+ }
87
+
88
+ function _nonIterableRest() {
89
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
90
+ }
91
+
92
+ function _slicedToArray(arr, i) {
93
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
94
+ }
95
+
96
+ var regeneratorRuntime$1 = {exports: {}};
97
+
98
+ var _typeof = {exports: {}};
99
+
100
+ (function (module) {
101
+ function _typeof(obj) {
102
+ "@babel/helpers - typeof";
103
+
104
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
105
+ return typeof obj;
106
+ } : function (obj) {
107
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
108
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
109
+ }
110
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
111
+ } (_typeof));
112
+
113
+ (function (module) {
114
+ var _typeof$1 = _typeof.exports["default"];
115
+ function _regeneratorRuntime() {
116
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
117
+ return exports;
118
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
119
+ var exports = {},
120
+ Op = Object.prototype,
121
+ hasOwn = Op.hasOwnProperty,
122
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
123
+ obj[key] = desc.value;
124
+ },
125
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
126
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
127
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
128
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
129
+ function define(obj, key, value) {
130
+ return Object.defineProperty(obj, key, {
131
+ value: value,
132
+ enumerable: !0,
133
+ configurable: !0,
134
+ writable: !0
135
+ }), obj[key];
136
+ }
137
+ try {
138
+ define({}, "");
139
+ } catch (err) {
140
+ define = function define(obj, key, value) {
141
+ return obj[key] = value;
142
+ };
143
+ }
144
+ function wrap(innerFn, outerFn, self, tryLocsList) {
145
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
146
+ generator = Object.create(protoGenerator.prototype),
147
+ context = new Context(tryLocsList || []);
148
+ return defineProperty(generator, "_invoke", {
149
+ value: makeInvokeMethod(innerFn, self, context)
150
+ }), generator;
151
+ }
152
+ function tryCatch(fn, obj, arg) {
153
+ try {
154
+ return {
155
+ type: "normal",
156
+ arg: fn.call(obj, arg)
157
+ };
158
+ } catch (err) {
159
+ return {
160
+ type: "throw",
161
+ arg: err
162
+ };
163
+ }
164
+ }
165
+ exports.wrap = wrap;
166
+ var ContinueSentinel = {};
167
+ function Generator() {}
168
+ function GeneratorFunction() {}
169
+ function GeneratorFunctionPrototype() {}
170
+ var IteratorPrototype = {};
171
+ define(IteratorPrototype, iteratorSymbol, function () {
172
+ return this;
173
+ });
174
+ var getProto = Object.getPrototypeOf,
175
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
176
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
177
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
178
+ function defineIteratorMethods(prototype) {
179
+ ["next", "throw", "return"].forEach(function (method) {
180
+ define(prototype, method, function (arg) {
181
+ return this._invoke(method, arg);
182
+ });
183
+ });
184
+ }
185
+ function AsyncIterator(generator, PromiseImpl) {
186
+ function invoke(method, arg, resolve, reject) {
187
+ var record = tryCatch(generator[method], generator, arg);
188
+ if ("throw" !== record.type) {
189
+ var result = record.arg,
190
+ value = result.value;
191
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
192
+ invoke("next", value, resolve, reject);
193
+ }, function (err) {
194
+ invoke("throw", err, resolve, reject);
195
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
196
+ result.value = unwrapped, resolve(result);
197
+ }, function (error) {
198
+ return invoke("throw", error, resolve, reject);
199
+ });
200
+ }
201
+ reject(record.arg);
202
+ }
203
+ var previousPromise;
204
+ defineProperty(this, "_invoke", {
205
+ value: function value(method, arg) {
206
+ function callInvokeWithMethodAndArg() {
207
+ return new PromiseImpl(function (resolve, reject) {
208
+ invoke(method, arg, resolve, reject);
209
+ });
210
+ }
211
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
212
+ }
213
+ });
214
+ }
215
+ function makeInvokeMethod(innerFn, self, context) {
216
+ var state = "suspendedStart";
217
+ return function (method, arg) {
218
+ if ("executing" === state) throw new Error("Generator is already running");
219
+ if ("completed" === state) {
220
+ if ("throw" === method) throw arg;
221
+ return doneResult();
222
+ }
223
+ for (context.method = method, context.arg = arg;;) {
224
+ var delegate = context.delegate;
225
+ if (delegate) {
226
+ var delegateResult = maybeInvokeDelegate(delegate, context);
227
+ if (delegateResult) {
228
+ if (delegateResult === ContinueSentinel) continue;
229
+ return delegateResult;
230
+ }
231
+ }
232
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
233
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
234
+ context.dispatchException(context.arg);
235
+ } else "return" === context.method && context.abrupt("return", context.arg);
236
+ state = "executing";
237
+ var record = tryCatch(innerFn, self, context);
238
+ if ("normal" === record.type) {
239
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
240
+ return {
241
+ value: record.arg,
242
+ done: context.done
243
+ };
244
+ }
245
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
246
+ }
247
+ };
248
+ }
249
+ function maybeInvokeDelegate(delegate, context) {
250
+ var methodName = context.method,
251
+ method = delegate.iterator[methodName];
252
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
253
+ var record = tryCatch(method, delegate.iterator, context.arg);
254
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
255
+ var info = record.arg;
256
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
257
+ }
258
+ function pushTryEntry(locs) {
259
+ var entry = {
260
+ tryLoc: locs[0]
261
+ };
262
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
263
+ }
264
+ function resetTryEntry(entry) {
265
+ var record = entry.completion || {};
266
+ record.type = "normal", delete record.arg, entry.completion = record;
267
+ }
268
+ function Context(tryLocsList) {
269
+ this.tryEntries = [{
270
+ tryLoc: "root"
271
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
272
+ }
273
+ function values(iterable) {
274
+ if (iterable) {
275
+ var iteratorMethod = iterable[iteratorSymbol];
276
+ if (iteratorMethod) return iteratorMethod.call(iterable);
277
+ if ("function" == typeof iterable.next) return iterable;
278
+ if (!isNaN(iterable.length)) {
279
+ var i = -1,
280
+ next = function next() {
281
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
282
+ return next.value = undefined, next.done = !0, next;
283
+ };
284
+ return next.next = next;
285
+ }
286
+ }
287
+ return {
288
+ next: doneResult
289
+ };
290
+ }
291
+ function doneResult() {
292
+ return {
293
+ value: undefined,
294
+ done: !0
295
+ };
296
+ }
297
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
298
+ value: GeneratorFunctionPrototype,
299
+ configurable: !0
300
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
301
+ value: GeneratorFunction,
302
+ configurable: !0
303
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
304
+ var ctor = "function" == typeof genFun && genFun.constructor;
305
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
306
+ }, exports.mark = function (genFun) {
307
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
308
+ }, exports.awrap = function (arg) {
309
+ return {
310
+ __await: arg
311
+ };
312
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
313
+ return this;
314
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
315
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
316
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
317
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
318
+ return result.done ? result.value : iter.next();
319
+ });
320
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
321
+ return this;
322
+ }), define(Gp, "toString", function () {
323
+ return "[object Generator]";
324
+ }), exports.keys = function (val) {
325
+ var object = Object(val),
326
+ keys = [];
327
+ for (var key in object) keys.push(key);
328
+ return keys.reverse(), function next() {
329
+ for (; keys.length;) {
330
+ var key = keys.pop();
331
+ if (key in object) return next.value = key, next.done = !1, next;
332
+ }
333
+ return next.done = !0, next;
334
+ };
335
+ }, exports.values = values, Context.prototype = {
336
+ constructor: Context,
337
+ reset: function reset(skipTempReset) {
338
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
339
+ },
340
+ stop: function stop() {
341
+ this.done = !0;
342
+ var rootRecord = this.tryEntries[0].completion;
343
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
344
+ return this.rval;
345
+ },
346
+ dispatchException: function dispatchException(exception) {
347
+ if (this.done) throw exception;
348
+ var context = this;
349
+ function handle(loc, caught) {
350
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
351
+ }
352
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
353
+ var entry = this.tryEntries[i],
354
+ record = entry.completion;
355
+ if ("root" === entry.tryLoc) return handle("end");
356
+ if (entry.tryLoc <= this.prev) {
357
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
358
+ hasFinally = hasOwn.call(entry, "finallyLoc");
359
+ if (hasCatch && hasFinally) {
360
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
361
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
362
+ } else if (hasCatch) {
363
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
364
+ } else {
365
+ if (!hasFinally) throw new Error("try statement without catch or finally");
366
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
367
+ }
368
+ }
369
+ }
370
+ },
371
+ abrupt: function abrupt(type, arg) {
372
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
373
+ var entry = this.tryEntries[i];
374
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
375
+ var finallyEntry = entry;
376
+ break;
377
+ }
378
+ }
379
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
380
+ var record = finallyEntry ? finallyEntry.completion : {};
381
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
382
+ },
383
+ complete: function complete(record, afterLoc) {
384
+ if ("throw" === record.type) throw record.arg;
385
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
386
+ },
387
+ finish: function finish(finallyLoc) {
388
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
389
+ var entry = this.tryEntries[i];
390
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
391
+ }
392
+ },
393
+ "catch": function _catch(tryLoc) {
394
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
395
+ var entry = this.tryEntries[i];
396
+ if (entry.tryLoc === tryLoc) {
397
+ var record = entry.completion;
398
+ if ("throw" === record.type) {
399
+ var thrown = record.arg;
400
+ resetTryEntry(entry);
401
+ }
402
+ return thrown;
403
+ }
404
+ }
405
+ throw new Error("illegal catch attempt");
406
+ },
407
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
408
+ return this.delegate = {
409
+ iterator: values(iterable),
410
+ resultName: resultName,
411
+ nextLoc: nextLoc
412
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
413
+ }
414
+ }, exports;
415
+ }
416
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
417
+ } (regeneratorRuntime$1));
418
+
419
+ // TODO(Babel 8): Remove this file.
420
+
421
+ var runtime = regeneratorRuntime$1.exports();
422
+ var regenerator = runtime;
423
+
424
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
425
+ try {
426
+ regeneratorRuntime = runtime;
427
+ } catch (accidentalStrictMode) {
428
+ if (typeof globalThis === "object") {
429
+ globalThis.regeneratorRuntime = runtime;
430
+ } else {
431
+ Function("r", "regeneratorRuntime = r")(runtime);
432
+ }
433
+ }
434
+
435
+ var INITIAL_FORM_VALUES = {
436
+ email: "",
437
+ password: ""
438
+ };
439
+ var DEFAULT_EMAIL = "oliver@example.com";
440
+ var DEFAULT_PASSWORD = "welcome";
441
+ var LOGIN_FORM_VALIDATION_SCHEMA = Yup.object().shape({
442
+ email: Yup.string().email(t("neetoMolecules.login.invalidEmail")).required(t("neetoMolecules.login.emailRequired")),
443
+ password: Yup.string().required(t("neetoMolecules.login.passwordRequired"))
444
+ });
445
+
446
+ var SignInForm = function SignInForm(_ref) {
447
+ var handleFormSubmit = _ref.handleFormSubmit;
448
+ var _useTranslation = useTranslation(),
449
+ t = _useTranslation.t;
450
+ var emailFromSearchParams = function emailFromSearchParams() {
451
+ return new URLSearchParams(window.location.search).get("email") || "";
452
+ };
453
+ var emailPrefilledInitialValues = function emailPrefilledInitialValues() {
454
+ return assoc("email", emailFromSearchParams(), INITIAL_FORM_VALUES);
455
+ };
456
+ if (Button === undefined) {
457
+ return /*#__PURE__*/React.createElement(Trans, {
458
+ components: {
459
+ code: /*#__PURE__*/React.createElement("code", null)
460
+ },
461
+ i18nKey: "neetoMolecules.login.installNeetoUI"
462
+ });
463
+ }
464
+ return /*#__PURE__*/React.createElement(Formik, {
465
+ initialValues: emailPrefilledInitialValues(),
466
+ validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
467
+ onSubmit: handleFormSubmit
468
+ }, /*#__PURE__*/React.createElement(Form, {
469
+ className: "w-full"
470
+ }, /*#__PURE__*/React.createElement("div", {
471
+ className: "mb-6"
472
+ }, /*#__PURE__*/React.createElement(Input, {
473
+ required: true,
474
+ "data-cy": "login-email-text-field",
475
+ "data-test-id": "login-email",
476
+ label: t("neetoMolecules.login.email"),
477
+ name: "email"
478
+ })), /*#__PURE__*/React.createElement("div", {
479
+ className: "mb-6"
480
+ }, /*#__PURE__*/React.createElement(Input, {
481
+ required: true,
482
+ "data-cy": "login-password-text-field",
483
+ "data-test-id": "login-password",
484
+ label: t("neetoMolecules.login.password"),
485
+ name: "password",
486
+ type: "password"
487
+ })), /*#__PURE__*/React.createElement(Button, {
488
+ fullWidth: true,
489
+ "data-cy": "login-submit-button",
490
+ "data-test-id": "login-submit-button",
491
+ label: t("neetoMolecules.login.login"),
492
+ style: "secondary",
493
+ type: "submit"
494
+ })));
495
+ };
496
+
497
+ var SignIn = function SignIn(_ref) {
498
+ var handleSubmit = _ref.handleSubmit;
499
+ var _useState = useState(null),
500
+ _useState2 = _slicedToArray(_useState, 2),
501
+ isSubmitting = _useState2[0],
502
+ setIsSubmitting = _useState2[1];
503
+ var _useTranslation = useTranslation(),
504
+ t = _useTranslation.t;
505
+ var redirectAfterSuccessfulLogin = function redirectAfterSuccessfulLogin(redirectTo) {
506
+ window.location.pathname = redirectTo || "/";
507
+ };
508
+ var handleFormSubmit = /*#__PURE__*/function () {
509
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(formValues) {
510
+ var response;
511
+ return regenerator.wrap(function _callee$(_context) {
512
+ while (1) switch (_context.prev = _context.next) {
513
+ case 0:
514
+ _context.prev = 0;
515
+ _context.next = 3;
516
+ return handleSubmit({
517
+ user: formValues
518
+ });
519
+ case 3:
520
+ response = _context.sent;
521
+ Toastr.success(t("neetoMolecules.login.success"));
522
+ redirectAfterSuccessfulLogin(response.redirectTo);
523
+ _context.next = 10;
524
+ break;
525
+ case 8:
526
+ _context.prev = 8;
527
+ _context.t0 = _context["catch"](0);
528
+ case 10:
529
+ case "end":
530
+ return _context.stop();
531
+ }
532
+ }, _callee, null, [[0, 8]]);
533
+ }));
534
+ return function handleFormSubmit(_x) {
535
+ return _ref2.apply(this, arguments);
536
+ };
537
+ }();
538
+ var loginAsOliver = /*#__PURE__*/function () {
539
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
540
+ return regenerator.wrap(function _callee2$(_context2) {
541
+ while (1) switch (_context2.prev = _context2.next) {
542
+ case 0:
543
+ setIsSubmitting(true);
544
+ _context2.next = 3;
545
+ return handleFormSubmit({
546
+ email: DEFAULT_EMAIL,
547
+ password: DEFAULT_PASSWORD
548
+ });
549
+ case 3:
550
+ setIsSubmitting(false);
551
+ case 4:
552
+ case "end":
553
+ return _context2.stop();
554
+ }
555
+ }, _callee2);
556
+ }));
557
+ return function loginAsOliver() {
558
+ return _ref3.apply(this, arguments);
559
+ };
560
+ }();
561
+ return /*#__PURE__*/React.createElement("div", {
562
+ className: "flex h-screen w-full justify-center"
563
+ }, /*#__PURE__*/React.createElement("div", {
564
+ className: "neeto-ui-bg-white neeto-ui-rounded-lg neeto-ui-shadow-sm w-2/3 min-w-max max-w-lg self-center p-10"
565
+ }, /*#__PURE__*/React.createElement("h1", {
566
+ className: "mb-6 text-xl font-medium"
567
+ }, /*#__PURE__*/React.createElement(Trans, {
568
+ components: {
569
+ bold: /*#__PURE__*/React.createElement("b", {
570
+ "data-test-id": "organization-name"
571
+ })
572
+ },
573
+ i18nKey: "neetoMolecules.login.toOrganizationAccount",
574
+ values: {
575
+ organizationName: globalProps.organization.name
576
+ }
577
+ })), /*#__PURE__*/React.createElement(Button$1, {
578
+ fullWidth: true,
579
+ disabled: isSubmitting,
580
+ label: t("neetoMolecules.login.loginAsOliver"),
581
+ loading: isSubmitting,
582
+ size: "large",
583
+ style: "primary",
584
+ onClick: loginAsOliver
585
+ }), /*#__PURE__*/React.createElement("div", {
586
+ className: "my-6 text-center text-lg font-semibold"
587
+ }, t("neetoMolecules.common.or").toLocaleUpperCase()), /*#__PURE__*/React.createElement(SignInForm, {
588
+ handleFormSubmit: handleFormSubmit
589
+ })));
590
+ };
591
+
592
+ export { SignIn as default };
593
+ //# sourceMappingURL=LoginPage.js.map