@hipay/hipay-material-ui 2.3.0-rc.5 → 2.3.0-rc.PSYCHE-2530-2

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 (359) hide show
  1. package/HiAlertModal/HiAlertModal.js +16 -78
  2. package/HiAlertModal/index.js +1 -1
  3. package/HiAppBar/HiAppBar.js +11 -55
  4. package/HiAppBar/index.js +1 -1
  5. package/HiBadge/HiBadge.js +4 -32
  6. package/HiBadge/index.js +1 -1
  7. package/HiBreadcrumb/HiBreadcrumb.js +15 -46
  8. package/HiBreadcrumb/HiStep.js +17 -72
  9. package/HiBreadcrumb/HiStepConnector.js +17 -56
  10. package/HiBreadcrumb/HiStepContent.js +10 -20
  11. package/HiBreadcrumb/HiStepIcon.js +11 -34
  12. package/HiBreadcrumb/HiStepLabel.js +28 -80
  13. package/HiBreadcrumb/HiStepper.js +12 -28
  14. package/HiBreadcrumb/index.js +1 -1
  15. package/HiButton/HiButton.js +58 -205
  16. package/HiButton/index.js +6 -8
  17. package/HiCell/CellAddress.js +10 -51
  18. package/HiCell/CellDate.js +16 -44
  19. package/HiCell/CellIcon.js +10 -52
  20. package/HiCell/CellImage.js +10 -51
  21. package/HiCell/CellNumeric.js +10 -41
  22. package/HiCell/CellPinToAction.js +6 -25
  23. package/HiCell/CellRate.js +9 -47
  24. package/HiCell/CellSentinel.js +10 -20
  25. package/HiCell/CellSentinelScore.js +10 -16
  26. package/HiCell/CellText.js +11 -33
  27. package/HiCell/CellTextStyled.js +1 -39
  28. package/HiCell/index.js +1 -1
  29. package/HiCheckbox/HiCheckbox.js +15 -63
  30. package/HiCheckbox/index.js +1 -1
  31. package/HiChip/HiChip.js +15 -115
  32. package/HiChip/HiChipSwitch.js +19 -73
  33. package/HiChip/index.js +1 -1
  34. package/HiColoredLabel/HiColoredLabel.js +13 -55
  35. package/HiColoredLabel/index.js +1 -1
  36. package/HiDatePicker/Caption.js +3 -39
  37. package/HiDatePicker/HiDatePicker.js +56 -150
  38. package/HiDatePicker/HiDatePickerMobile.js +11 -32
  39. package/HiDatePicker/HiDateRangePicker.js +71 -226
  40. package/HiDatePicker/HiDateRangeSelector.js +68 -181
  41. package/HiDatePicker/ListPicker.js +13 -44
  42. package/HiDatePicker/NavBar.js +1 -49
  43. package/HiDatePicker/Overlays/CustomOverlayLayout.js +7 -27
  44. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +7 -27
  45. package/HiDatePicker/Overlays/MonthPickerOverlay.js +14 -45
  46. package/HiDatePicker/Overlays/Overlay.js +5 -47
  47. package/HiDatePicker/Overlays/TimePickerOverlay.js +19 -53
  48. package/HiDatePicker/Overlays/YearPickerOverlay.js +14 -60
  49. package/HiDatePicker/Overlays/index.js +1 -1
  50. package/HiDatePicker/Weekday.js +1 -24
  51. package/HiDatePicker/index.js +15 -0
  52. package/HiDatePicker/stylesheet.js +6 -6
  53. package/HiDotsStepper/HiDot.js +12 -18
  54. package/HiDotsStepper/HiDotsStepper.js +13 -23
  55. package/HiDotsStepper/index.js +23 -0
  56. package/HiExpansionPanel/HiExpansionPanel.js +24 -73
  57. package/HiExpansionPanel/index.js +6 -8
  58. package/HiForm/HiAddressField.js +13 -36
  59. package/HiForm/HiEmailField.js +13 -46
  60. package/HiForm/HiFormControl.js +24 -121
  61. package/HiForm/HiFormLabel.js +15 -59
  62. package/HiForm/HiInput.js +20 -200
  63. package/HiForm/HiPasswordField.js +13 -25
  64. package/HiForm/HiSearchField.js +13 -43
  65. package/HiForm/HiSlider.js +15 -86
  66. package/HiForm/HiTextField.js +14 -153
  67. package/HiForm/HiUpload.js +29 -91
  68. package/HiForm/HiUploadField.js +12 -73
  69. package/HiForm/HiUploadInput.js +33 -113
  70. package/HiForm/index.js +1 -1
  71. package/HiIcon/HiIcon.js +37 -116
  72. package/HiIcon/index.js +1 -1
  73. package/HiIconButton/HiIconButton.js +4 -22
  74. package/HiIconButton/index.js +1 -1
  75. package/HiLoader/HiLoader.js +7 -27
  76. package/HiLoader/index.js +1 -1
  77. package/HiMap/HiMap.js +14 -35
  78. package/HiMap/HiMapExpand.js +13 -41
  79. package/HiMap/index.js +1 -1
  80. package/HiNotice/HiKPI.js +12 -82
  81. package/HiNotice/HiKPINotice.js +1 -29
  82. package/HiNotice/index.js +1 -1
  83. package/HiPaymentMeans/HiPaymentMeans.js +17 -112
  84. package/HiPaymentMeans/index.js +1 -1
  85. package/HiPdfReader/HiPdfReader.js +24 -48
  86. package/HiPdfReader/index.js +1 -1
  87. package/HiPin/HiPin.js +3 -16
  88. package/HiPin/index.js +1 -1
  89. package/HiRadio/HiRadio.js +1 -13
  90. package/HiRadio/index.js +1 -1
  91. package/HiSelect/HiDynamicSelect.js +23 -94
  92. package/HiSelect/HiDynamicSelectField.js +8 -56
  93. package/HiSelect/HiNestedSelect.js +25 -116
  94. package/HiSelect/HiNestedSelectContent.js +24 -102
  95. package/HiSelect/HiNestedSelectField.js +8 -56
  96. package/HiSelect/HiSelect.js +68 -270
  97. package/HiSelect/HiSelectContent.js +42 -167
  98. package/HiSelect/HiSelectField.js +8 -61
  99. package/HiSelect/HiSelectInput.js +24 -125
  100. package/HiSelect/HiSelectMobile.js +23 -54
  101. package/HiSelect/HiSuggestSelect.js +25 -105
  102. package/HiSelect/HiSuggestSelectField.js +8 -56
  103. package/HiSelect/index.js +2 -2
  104. package/HiSelectableList/HiSelectableList.js +24 -122
  105. package/HiSelectableList/HiSelectableListHierarchic.js +18 -78
  106. package/HiSelectableList/HiSelectableListItem.js +20 -159
  107. package/HiSelectableList/index.js +1 -1
  108. package/HiSwitch/HiSwitch.js +4 -40
  109. package/HiSwitch/HiSwitchState.js +2 -58
  110. package/HiSwitch/index.js +1 -1
  111. package/HiTable/HiCellBuilder.js +13 -34
  112. package/HiTable/HiTable.js +11 -65
  113. package/HiTable/HiTableBody.js +6 -34
  114. package/HiTable/HiTableHeader.js +13 -50
  115. package/HiTable/HiTableRow.js +11 -49
  116. package/HiTable/constants.js +2 -2
  117. package/HiTable/index.js +1 -1
  118. package/README.md +11 -38
  119. package/es/HiAlertModal/HiAlertModal.js +211 -220
  120. package/es/HiAlertModal/index.js +15 -1
  121. package/es/HiAppBar/HiAppBar.js +120 -118
  122. package/es/HiAppBar/index.js +15 -1
  123. package/es/HiBadge/HiBadge.js +85 -100
  124. package/es/HiBadge/index.js +15 -1
  125. package/es/HiBreadcrumb/HiBreadcrumb.js +98 -83
  126. package/es/HiBreadcrumb/HiStep.js +113 -113
  127. package/es/HiBreadcrumb/HiStepConnector.js +144 -137
  128. package/es/HiBreadcrumb/HiStepContent.js +90 -58
  129. package/es/HiBreadcrumb/HiStepIcon.js +144 -141
  130. package/es/HiBreadcrumb/HiStepLabel.js +161 -184
  131. package/es/HiBreadcrumb/HiStepper.js +73 -46
  132. package/es/HiBreadcrumb/index.js +15 -1
  133. package/es/HiButton/HiButton.js +77 -217
  134. package/es/HiButton/index.js +13 -1
  135. package/es/HiCell/CellAddress.js +85 -83
  136. package/es/HiCell/CellDate.js +87 -70
  137. package/es/HiCell/CellIcon.js +94 -96
  138. package/es/HiCell/CellImage.js +99 -98
  139. package/es/HiCell/CellNumeric.js +79 -68
  140. package/es/HiCell/CellPinToAction.js +61 -41
  141. package/es/HiCell/CellRate.js +137 -133
  142. package/es/HiCell/CellSentinel.js +75 -46
  143. package/es/HiCell/CellSentinelScore.js +69 -35
  144. package/es/HiCell/CellText.js +190 -160
  145. package/es/HiCell/CellTextStyled.js +37 -59
  146. package/es/HiCell/index.js +79 -9
  147. package/es/HiCheckbox/HiCheckbox.js +154 -162
  148. package/es/HiCheckbox/index.js +15 -1
  149. package/es/HiChip/HiChip.js +172 -245
  150. package/es/HiChip/HiChipSwitch.js +208 -223
  151. package/es/HiChip/index.js +23 -2
  152. package/es/HiColoredLabel/HiColoredLabel.js +157 -185
  153. package/es/HiColoredLabel/index.js +15 -1
  154. package/es/HiDatePicker/Caption.js +46 -61
  155. package/es/HiDatePicker/HiDatePicker.js +283 -323
  156. package/es/HiDatePicker/HiDatePickerMobile.js +104 -87
  157. package/es/HiDatePicker/HiDateRangePicker.js +500 -570
  158. package/es/HiDatePicker/HiDateRangeSelector.js +337 -376
  159. package/es/HiDatePicker/ListPicker.js +125 -101
  160. package/es/HiDatePicker/NavBar.js +94 -112
  161. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +93 -96
  162. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +86 -89
  163. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +80 -75
  164. package/es/HiDatePicker/Overlays/Overlay.js +62 -87
  165. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +202 -188
  166. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +90 -95
  167. package/es/HiDatePicker/Overlays/index.js +47 -5
  168. package/es/HiDatePicker/Weekday.js +19 -32
  169. package/es/HiDatePicker/hiLocaleUtils.js +41 -28
  170. package/es/HiDatePicker/index.js +15 -0
  171. package/es/HiDatePicker/stylesheet.js +259 -244
  172. package/es/HiDotsStepper/HiDot.js +86 -50
  173. package/es/HiDotsStepper/HiDotsStepper.js +96 -58
  174. package/es/HiDotsStepper/index.js +23 -0
  175. package/es/HiExpansionPanel/HiExpansionPanel.js +198 -204
  176. package/es/HiExpansionPanel/index.js +13 -1
  177. package/es/HiForm/HiAddressField.js +125 -106
  178. package/es/HiForm/HiEmailField.js +69 -66
  179. package/es/HiForm/HiFormControl.js +266 -309
  180. package/es/HiForm/HiFormLabel.js +110 -112
  181. package/es/HiForm/HiInput.js +397 -530
  182. package/es/HiForm/HiPasswordField.js +101 -67
  183. package/es/HiForm/HiSearchField.js +130 -121
  184. package/es/HiForm/HiSlider.js +251 -272
  185. package/es/HiForm/HiTextField.js +145 -244
  186. package/es/HiForm/HiUpload.js +288 -300
  187. package/es/HiForm/HiUploadField.js +82 -109
  188. package/es/HiForm/HiUploadInput.js +295 -325
  189. package/es/HiForm/index.js +95 -11
  190. package/es/HiIcon/HiIcon.js +75 -133
  191. package/es/HiIcon/index.js +15 -1
  192. package/es/HiIconButton/HiIconButton.js +82 -80
  193. package/es/HiIconButton/index.js +15 -1
  194. package/es/HiLoader/HiLoader.js +30 -37
  195. package/es/HiLoader/index.js +15 -1
  196. package/es/HiMap/HiMap.js +281 -245
  197. package/es/HiMap/HiMapExpand.js +182 -162
  198. package/es/HiMap/index.js +23 -2
  199. package/es/HiNotice/HiKPI.js +173 -201
  200. package/es/HiNotice/HiKPINotice.js +42 -52
  201. package/es/HiNotice/index.js +23 -2
  202. package/es/HiPaymentMeans/HiPaymentMeans.js +453 -500
  203. package/es/HiPaymentMeans/index.js +15 -1
  204. package/es/HiPdfReader/HiPdfReader.js +215 -184
  205. package/es/HiPdfReader/index.js +15 -1
  206. package/es/HiPin/HiPin.js +82 -79
  207. package/es/HiPin/index.js +15 -1
  208. package/es/HiRadio/HiRadio.js +47 -40
  209. package/es/HiRadio/index.js +15 -1
  210. package/es/HiSelect/HiDynamicSelect.js +110 -146
  211. package/es/HiSelect/HiDynamicSelectField.js +91 -104
  212. package/es/HiSelect/HiNestedSelect.js +235 -260
  213. package/es/HiSelect/HiNestedSelectContent.js +186 -197
  214. package/es/HiSelect/HiNestedSelectField.js +91 -104
  215. package/es/HiSelect/HiSelect.js +564 -684
  216. package/es/HiSelect/HiSelectContent.js +283 -338
  217. package/es/HiSelect/HiSelectField.js +93 -111
  218. package/es/HiSelect/HiSelectInput.js +266 -321
  219. package/es/HiSelect/HiSelectMobile.js +118 -100
  220. package/es/HiSelect/HiSuggestSelect.js +237 -256
  221. package/es/HiSelect/HiSuggestSelectField.js +80 -93
  222. package/es/HiSelect/index.js +85 -8
  223. package/es/HiSelectableList/HiSelectableList.js +195 -219
  224. package/es/HiSelectableList/HiSelectableListHierarchic.js +148 -150
  225. package/es/HiSelectableList/HiSelectableListItem.js +378 -475
  226. package/es/HiSelectableList/index.js +31 -3
  227. package/es/HiSwitch/HiSwitch.js +172 -185
  228. package/es/HiSwitch/HiSwitchState.js +134 -171
  229. package/es/HiSwitch/index.js +23 -2
  230. package/es/HiTable/HiCellBuilder.js +106 -72
  231. package/es/HiTable/HiTable.js +92 -105
  232. package/es/HiTable/HiTableBody.js +59 -53
  233. package/es/HiTable/HiTableHeader.js +133 -116
  234. package/es/HiTable/HiTableRow.js +126 -110
  235. package/es/HiTable/constants.js +97 -138
  236. package/es/HiTable/index.js +15 -1
  237. package/es/hi-svg-icons/HiAccount.js +41 -21
  238. package/es/hi-svg-icons/HiActivity.js +40 -20
  239. package/es/hi-svg-icons/HiAll.js +44 -24
  240. package/es/hi-svg-icons/HiBilling.js +41 -21
  241. package/es/hi-svg-icons/HiBriefcaseRescue.js +35 -10
  242. package/es/hi-svg-icons/HiCatalog.js +41 -21
  243. package/es/hi-svg-icons/HiCustomer.js +41 -21
  244. package/es/hi-svg-icons/HiDownload.js +29 -12
  245. package/es/hi-svg-icons/HiFinance.js +41 -21
  246. package/es/hi-svg-icons/HiPermission.js +40 -20
  247. package/es/hi-svg-icons/HiRoute.js +41 -21
  248. package/es/hi-svg-icons/HiSettlement.js +41 -21
  249. package/es/hi-svg-icons/HiSizeLarge.js +28 -15
  250. package/es/hi-svg-icons/HiSizeMedium.js +26 -15
  251. package/es/hi-svg-icons/HiSizeSmall.js +26 -15
  252. package/es/hi-svg-icons/HiTransaction.js +41 -21
  253. package/es/hi-svg-icons/HiUser.js +41 -21
  254. package/es/hi-svg-icons/HiWidget.js +44 -24
  255. package/es/hi-svg-icons/index.js +151 -18
  256. package/es/hi-svg-icons/index.text.js +27 -17
  257. package/es/styleguide/Wrapper.js +51 -0
  258. package/es/styles/MuiThemeProvider.js +131 -111
  259. package/es/styles/colorManipulator.js +89 -52
  260. package/es/styles/createBreakpoints.js +48 -35
  261. package/es/styles/createGenerateClassName.js +34 -22
  262. package/es/styles/createMixins.js +31 -20
  263. package/es/styles/createMuiTheme.js +67 -44
  264. package/es/styles/createPalette.js +135 -102
  265. package/es/styles/createStyles.js +8 -1
  266. package/es/styles/createTypography.js +86 -75
  267. package/es/styles/getStylesCreator.js +31 -18
  268. package/es/styles/getThemeProps.js +11 -5
  269. package/es/styles/index.js +47 -7
  270. package/es/styles/jssPreset.js +25 -9
  271. package/es/styles/mergeClasses.js +28 -16
  272. package/es/styles/shadows.js +14 -7
  273. package/es/styles/shape.js +9 -2
  274. package/es/styles/spacing.js +13 -2
  275. package/es/styles/themeListener.js +22 -10
  276. package/es/styles/transitions.js +61 -31
  277. package/es/styles/zIndex.js +9 -2
  278. package/es/test-utils/createMount.js +31 -18
  279. package/es/test-utils/createRender.js +25 -12
  280. package/es/test-utils/createShallow.js +34 -19
  281. package/es/test-utils/getClasses.js +11 -2
  282. package/es/test-utils/index.js +47 -5
  283. package/es/test-utils/until.js +25 -12
  284. package/es/test-utils/unwrap.js +8 -1
  285. package/es/theme/palette.js +106 -0
  286. package/es/theme/typography.js +170 -0
  287. package/es/theme.js +22 -0
  288. package/es/transitions/utils.js +18 -6
  289. package/es/utils/helpers.js +99 -39
  290. package/es/withMobileDialog/index.js +15 -1
  291. package/es/withMobileDialog/withMobileDialog.js +32 -20
  292. package/hi-svg-icons/HiAccount.js +16 -10
  293. package/hi-svg-icons/HiActivity.js +16 -10
  294. package/hi-svg-icons/HiAll.js +16 -10
  295. package/hi-svg-icons/HiBilling.js +16 -10
  296. package/hi-svg-icons/HiBriefcaseRescue.js +22 -10
  297. package/hi-svg-icons/HiCatalog.js +16 -10
  298. package/hi-svg-icons/HiCustomer.js +16 -10
  299. package/hi-svg-icons/HiDownload.js +13 -5
  300. package/hi-svg-icons/HiFinance.js +16 -10
  301. package/hi-svg-icons/HiPermission.js +16 -10
  302. package/hi-svg-icons/HiRoute.js +16 -10
  303. package/hi-svg-icons/HiSettlement.js +16 -10
  304. package/hi-svg-icons/HiSizeLarge.js +5 -3
  305. package/hi-svg-icons/HiSizeMedium.js +3 -3
  306. package/hi-svg-icons/HiSizeSmall.js +3 -3
  307. package/hi-svg-icons/HiTransaction.js +16 -10
  308. package/hi-svg-icons/HiUser.js +16 -10
  309. package/hi-svg-icons/HiWidget.js +16 -10
  310. package/hi-svg-icons/index.js +1 -1
  311. package/hi-svg-icons/index.text.js +1 -1
  312. package/package.json +37 -56
  313. package/styleguide/Wrapper.js +51 -0
  314. package/styles/MuiThemeProvider.js +17 -44
  315. package/styles/colorManipulator.js +1 -1
  316. package/styles/createBreakpoints.js +4 -4
  317. package/styles/createGenerateClassName.js +1 -1
  318. package/styles/createMixins.js +6 -6
  319. package/styles/createMuiTheme.js +4 -4
  320. package/styles/createPalette.js +5 -5
  321. package/styles/createTypography.js +15 -15
  322. package/styles/getStylesCreator.js +4 -4
  323. package/styles/index.js +2 -18
  324. package/styles/jssPreset.js +1 -1
  325. package/styles/mergeClasses.js +3 -3
  326. package/styles/themeListener.js +2 -2
  327. package/styles/transitions.js +2 -2
  328. package/test-utils/createMount.js +5 -5
  329. package/test-utils/createRender.js +4 -4
  330. package/test-utils/createShallow.js +5 -5
  331. package/test-utils/index.js +1 -1
  332. package/test-utils/until.js +5 -5
  333. package/theme/palette.js +106 -0
  334. package/theme/typography.js +170 -0
  335. package/theme.js +22 -0
  336. package/utils/helpers.js +4 -4
  337. package/withMobileDialog/index.js +1 -1
  338. package/withMobileDialog/withMobileDialog.js +3 -8
  339. package/CHANGELOG.md +0 -8486
  340. package/LICENSE +0 -21
  341. package/es/index.js +0 -26
  342. package/es/styles/withStyles.js +0 -317
  343. package/es/styles/withTheme.js +0 -84
  344. package/es/utils/exactProp.js +0 -28
  345. package/es/utils/ownerDocument.js +0 -5
  346. package/es/utils/ownerWindow.js +0 -8
  347. package/es/utils/reactHelpers.js +0 -19
  348. package/es/utils/requirePropFactory.js +0 -20
  349. package/es/utils/unsupportedProp.js +0 -16
  350. package/index.es.js +0 -31
  351. package/index.js +0 -256
  352. package/styles/withStyles.js +0 -378
  353. package/styles/withTheme.js +0 -126
  354. package/utils/exactProp.js +0 -43
  355. package/utils/ownerDocument.js +0 -13
  356. package/utils/ownerWindow.js +0 -19
  357. package/utils/reactHelpers.js +0 -36
  358. package/utils/requirePropFactory.js +0 -32
  359. package/utils/unsupportedProp.js +0 -24
@@ -1,397 +1,385 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import React from 'react';
4
- import PropTypes from 'prop-types';
5
- import classNames from 'classnames';
6
- import keycode from 'keycode/index';
7
- import { withStyles } from '@material-ui/core/styles';
8
- import HiUploadInput from './HiUploadInput';
9
- import HiIcon from '../HiIcon';
10
- export const styles = theme => ({
11
- flexContainer: {
12
- display: 'flex',
13
- alignItems: 'center'
14
- },
15
- statusIcon: {
16
- height: '80px',
17
- width: '80px',
18
- marginRight: '8px',
19
- padding: '24px',
20
- borderRadius: '2px',
21
- backgroundColor: theme.palette.local.background2,
22
- border: `1px solid ${theme.palette.middle.main}`,
23
- color: `${theme.palette.middle.main} !important`,
24
- fontSize: '80px'
25
- },
26
- dragOver: {},
27
- inputContainer: {
28
- flex: '1',
29
- width: 'calc(100% - 88px)'
30
- },
31
- empty: {
32
- border: `1px solid ${theme.palette.input.bottomLine}`,
33
- color: `${theme.palette.neutral.main} !important`
34
- },
35
- complete: {
36
- border: `1px solid ${theme.palette.positive.main}`,
37
- color: `${theme.palette.positive.main} !important`,
38
- fontSize: '32px'
39
- },
40
- error: {
41
- border: `1px solid ${theme.palette.negative.main}`,
42
- color: `${theme.palette.negative.main} !important`
43
- },
44
- fileButton: {
45
- marginRight: 8,
46
- '&$focusable': {
47
- cursor: 'pointer',
48
- '&:hover, &:focus, &$dragOver': {
49
- border: `1px solid ${theme.palette.primary.main}`,
50
- color: `${theme.palette.primary.main} !important`
51
- }
52
- }
53
- },
54
- focusable: {}
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
55
7
  });
8
+ exports.default = exports.styles = void 0;
9
+
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties"));
11
+
12
+ var _extends2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/extends"));
13
+
14
+ var _classCallCheck2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck"));
15
+
16
+ var _createClass2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass"));
17
+
18
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn"));
19
+
20
+ var _getPrototypeOf2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf"));
21
+
22
+ var _assertThisInitialized2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized"));
23
+
24
+ var _inherits2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits"));
25
+
26
+ var _defineProperty2 = _interopRequireDefault(require("/home/mfazio/dev/projects/hipay-material-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty"));
27
+
28
+ var _react = _interopRequireDefault(require("react"));
29
+
30
+ var _classnames = _interopRequireDefault(require("classnames"));
31
+
32
+ var _index = _interopRequireDefault(require("keycode/index"));
33
+
34
+ var _styles = require("@material-ui/core/styles");
35
+
36
+ var _HiUploadInput = _interopRequireDefault(require("./HiUploadInput"));
37
+
38
+ var _HiIcon = _interopRequireDefault(require("../HiIcon"));
39
+
40
+ var styles = function styles(theme) {
41
+ return {
42
+ flexContainer: {
43
+ display: 'flex',
44
+ alignItems: 'center'
45
+ },
46
+ statusIcon: {
47
+ height: '80px',
48
+ width: '80px',
49
+ marginRight: '8px',
50
+ padding: '24px',
51
+ borderRadius: '2px',
52
+ backgroundColor: theme.palette.background2,
53
+ border: "1px solid ".concat(theme.palette.middle.main),
54
+ color: "".concat(theme.palette.middle.main, " !important"),
55
+ fontSize: '80px'
56
+ },
57
+ dragOver: {},
58
+ inputContainer: {
59
+ flex: '1',
60
+ width: 'calc(100% - 88px)'
61
+ },
62
+ empty: {
63
+ border: "1px solid ".concat(theme.palette.input.bottomLine),
64
+ color: "".concat(theme.palette.neutral.main, " !important")
65
+ },
66
+ complete: {
67
+ border: "1px solid ".concat(theme.palette.positive.main),
68
+ color: "".concat(theme.palette.positive.main, " !important"),
69
+ fontSize: '32px'
70
+ },
71
+ error: {
72
+ border: "1px solid ".concat(theme.palette.negative.main),
73
+ color: "".concat(theme.palette.negative.main, " !important")
74
+ },
75
+ fileButton: {
76
+ marginRight: 8,
77
+ '&$focusable': {
78
+ cursor: 'pointer',
79
+ '&:hover, &:focus, &$dragOver': {
80
+ border: "1px solid ".concat(theme.palette.primary.main),
81
+ color: "".concat(theme.palette.primary.main, " !important")
82
+ }
83
+ }
84
+ },
85
+ focusable: {}
86
+ };
87
+ };
88
+
89
+ exports.styles = styles;
90
+
91
+ var HiUpload =
92
+ /*#__PURE__*/
93
+ function (_React$PureComponent) {
94
+ (0, _inherits2.default)(HiUpload, _React$PureComponent);
56
95
 
57
- class HiUpload extends React.PureComponent {
58
- constructor() {
59
- super();
96
+ function HiUpload() {
97
+ var _this;
60
98
 
61
- this.handleDrop = event => {
62
- if (event.path[0].id === this.uploadIconRef.props.id) {
99
+ (0, _classCallCheck2.default)(this, HiUpload);
100
+ _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiUpload).call(this));
101
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDrop", function (event) {
102
+ if (event.path[0].id === _this.uploadIconRef.props.id) {
63
103
  event.preventDefault();
64
104
  event.stopPropagation();
65
105
 
66
- if (this.state.droppable) {
67
- const index = this.getNextInputIndex();
68
- const param = this.handleFile(event.dataTransfer.files, index);
69
- this.setState({
106
+ if (_this.state.droppable) {
107
+ var index = _this.getNextInputIndex();
108
+
109
+ var param = _this.handleFile(event.dataTransfer.files, index);
110
+
111
+ _this.setState({
70
112
  dragOver: false
71
113
  });
72
- this.props.onChange(param, 0);
114
+
115
+ _this.props.onChange(param, 0);
73
116
  } else {
74
- this.setState({
117
+ _this.setState({
75
118
  dragOver: false
76
119
  });
77
120
  }
78
121
  }
79
- };
80
-
81
- this.handleDragEnter = event => {
122
+ });
123
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDragEnter", function (event) {
82
124
  event.preventDefault();
83
125
  event.stopPropagation();
84
126
 
85
- if (event.path[0].id === this.uploadIconRef.props.id) {
127
+ if (event.path[0].id === _this.uploadIconRef.props.id) {
86
128
  if (event.dataTransfer.items.length !== 1) {
87
129
  event.dataTransfer.dropEffect = 'none';
88
- this.props.onChange({
89
- errorMessage: this.props.translations.errorDragEnter,
130
+
131
+ _this.props.onChange({
132
+ errorMessage: _this.props.translations.errorDragEnter,
90
133
  value: null
91
134
  }, 0);
92
- this.setState({
135
+
136
+ _this.setState({
93
137
  dragOver: true
94
138
  });
95
139
  } else {
96
- this.setState({
140
+ _this.setState({
97
141
  droppable: true,
98
142
  dragOver: true
99
143
  });
100
144
  }
101
145
  }
102
- };
103
-
104
- this.handleDragLeave = event => {
146
+ });
147
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleDragLeave", function (event) {
105
148
  event.preventDefault();
106
149
  event.stopPropagation();
107
150
 
108
- if (event.path[0].id === this.uploadIconRef.props.id && event.relatedTarget.parentElement !== this.uploadFieldRef) {
109
- this.props.onChange({
151
+ if (event.path[0].id === _this.uploadIconRef.props.id && event.relatedTarget.parentElement !== _this.uploadFieldRef) {
152
+ _this.props.onChange({
110
153
  errorMessage: '',
111
154
  value: null
112
155
  }, 0);
113
- this.setState({
156
+
157
+ _this.setState({
114
158
  droppable: false,
115
159
  dragOver: false
116
160
  });
117
161
  }
118
- };
162
+ });
163
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleChange", function (event) {
164
+ var index = _this.getNextInputIndex();
119
165
 
120
- this.handleChange = event => {
121
- const index = this.getNextInputIndex();
122
- const param = this.handleFile(event.target.files, index);
123
- this.props.onChange(param, index);
124
- };
166
+ var param = _this.handleFile(event.target.files, index);
125
167
 
126
- this.handleEmptyField = event => {
168
+ _this.props.onChange(param, index);
169
+ });
170
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleEmptyField", function (event) {
127
171
  event.target.value = '';
128
- };
129
-
130
- this.handleKeyPress = event => {
131
- const key = keycode(event);
172
+ });
173
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleKeyPress", function (event) {
174
+ var key = (0, _index.default)(event);
132
175
 
133
176
  if (key === 'enter' || key === 'space') {
134
177
  event.preventDefault();
135
- this.uploadInput.click();
136
- }
137
- };
138
178
 
139
- this.handleFile = (files, index) => {
140
- let error = false;
141
- let errorMessage = '';
142
- let file = null;
179
+ _this.uploadInput.click();
180
+ }
181
+ });
182
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleFile", function (files, index) {
183
+ var error = false;
184
+ var errorMessage = '';
185
+ var file = null;
143
186
 
144
187
  if (files.length === 1) {
145
188
  file = files[0];
146
189
 
147
- if (this.props.inputs[index] && file.size > this.props.inputs[index].maxSize) {
148
- errorMessage += this.props.translations.errorSize.replace('maxSize', this.props.inputs[index].maxSize / 1000000);
190
+ if (_this.props.inputs[index] && file.size > _this.props.inputs[index].maxSize) {
191
+ errorMessage += _this.props.translations.errorSize.replace('maxSize', _this.props.inputs[index].maxSize / 1000000);
149
192
  error = true;
150
193
  }
151
194
 
152
- if (this.props.inputs[index] && this.props.inputs[index].acceptedTypes && this.props.inputs[index].acceptedTypes.length !== 0 && this.props.inputs[index].acceptedTypes.indexOf(file.type) === -1) {
153
- errorMessage += this.props.translations.errorType;
195
+ if (_this.props.inputs[index] && _this.props.inputs[index].acceptedTypes && _this.props.inputs[index].acceptedTypes.length !== 0 && _this.props.inputs[index].acceptedTypes.indexOf(file.type) === -1) {
196
+ errorMessage += _this.props.translations.errorType;
154
197
  error = true;
155
198
  }
156
199
  } else {
157
- errorMessage = this.props.translations.errorDropMultiple;
200
+ errorMessage = _this.props.translations.errorDropMultiple;
158
201
  }
159
202
 
160
203
  return {
161
- errorMessage,
162
- error,
204
+ errorMessage: errorMessage,
205
+ error: error,
163
206
  value: file
164
207
  };
165
- };
166
-
167
- this.createInputs = others => {
168
- const {
169
- inputs,
170
- values
171
- } = this.props;
172
- let files = inputs; // unlimited number of files
208
+ });
209
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createInputs", function (others) {
210
+ var _this$props = _this.props,
211
+ inputs = _this$props.inputs,
212
+ values = _this$props.values;
213
+ var files = inputs; // unlimited number of files
173
214
 
174
215
  if (inputs.length === 0) {
175
216
  files = values;
176
217
  }
177
218
 
178
- const inputComponents = [];
219
+ var inputComponents = [];
179
220
 
180
- for (let i = 0; i < files.length; i += 1) {
221
+ for (var i = 0; i < files.length; i += 1) {
181
222
  if (files.length > 1 || values[i] && values[i].value) {
182
- inputComponents.push(React.createElement(HiUploadInput, _extends({
223
+ inputComponents.push(_react.default.createElement(_HiUploadInput.default, (0, _extends2.default)({
183
224
  maxSize: inputs[i] ? inputs[i].maxSize : undefined,
184
225
  acceptedTypes: inputs[i] ? inputs[i].acceptedTypes : undefined,
185
226
  placeholder: inputs[i] ? inputs[i].placeholder : undefined,
186
227
  value: values[i] ? values[i].value : null,
187
228
  error: values[i] ? values[i].error : null,
188
229
  errorMessage: values[i] ? values[i].errorMessage : null,
189
- onSeeFile: this.handleSeeFile,
190
- onDeleteFile: this.props.onDeleteFile,
191
- onChange: this.props.onChange,
230
+ onSeeFile: _this.handleSeeFile,
231
+ onDeleteFile: _this.props.onDeleteFile,
232
+ onChange: _this.props.onChange,
192
233
  index: i,
193
- key: inputs[i] ? inputs[i].id : `doc-${i}`
234
+ key: inputs[i] ? inputs[i].id : "doc-".concat(i)
194
235
  }, others)));
195
236
  }
196
237
  }
197
238
 
198
239
  return inputComponents;
199
- };
200
-
201
- this.uploadFieldRef = void 0;
202
- this.state = {
240
+ });
241
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "uploadFieldRef", void 0);
242
+ _this.state = {
203
243
  dragOver: false,
204
244
  droppable: false
205
245
  };
246
+ return _this;
206
247
  } // When component mounts, we add eventListeners to handle the file drag and drop
207
248
 
208
249
 
209
- componentDidMount() {
210
- this.uploadFieldRef.addEventListener('dragenter', this.handleDragEnter, false);
211
- this.uploadFieldRef.addEventListener('dragleave', this.handleDragLeave, false);
212
- this.uploadFieldRef.addEventListener('dragover', event => {
213
- event.preventDefault();
214
- }, false);
215
- this.uploadFieldRef.addEventListener('drop', this.handleDrop, false);
216
- }
217
-
218
- componentWillUnmount() {
219
- this.uploadFieldRef.removeEventListener('dragenter', this.handleDragEnter, false);
220
- this.uploadFieldRef.removeEventListener('dragleave', this.handleDragLeave, false);
221
- this.uploadFieldRef.removeEventListener('dragover', event => {
222
- event.preventDefault();
223
- }, false);
224
- this.uploadFieldRef.removeEventListener('drop', this.handleDrop, false);
225
- }
226
-
227
- getNextInputIndex() {
228
- let index = 0; // Add an input at the end
229
-
230
- if (!this.props.inputs.length) {
231
- index = this.props.values.length + 1;
232
- } else {
233
- // First empty input
234
- for (let i = 0; i < this.props.values.length; i += 1) {
235
- if (!this.props.values[i] || this.props.values[i].error || !this.props.values[i].value) {
236
- index = i;
237
- break;
250
+ (0, _createClass2.default)(HiUpload, [{
251
+ key: "componentDidMount",
252
+ value: function componentDidMount() {
253
+ this.uploadFieldRef.addEventListener('dragenter', this.handleDragEnter, false);
254
+ this.uploadFieldRef.addEventListener('dragleave', this.handleDragLeave, false);
255
+ this.uploadFieldRef.addEventListener('dragover', function (event) {
256
+ event.preventDefault();
257
+ }, false);
258
+ this.uploadFieldRef.addEventListener('drop', this.handleDrop, false);
259
+ }
260
+ }, {
261
+ key: "componentWillUnmount",
262
+ value: function componentWillUnmount() {
263
+ this.uploadFieldRef.removeEventListener('dragenter', this.handleDragEnter, false);
264
+ this.uploadFieldRef.removeEventListener('dragleave', this.handleDragLeave, false);
265
+ this.uploadFieldRef.removeEventListener('dragover', function (event) {
266
+ event.preventDefault();
267
+ }, false);
268
+ this.uploadFieldRef.removeEventListener('drop', this.handleDrop, false);
269
+ }
270
+ }, {
271
+ key: "getNextInputIndex",
272
+ value: function getNextInputIndex() {
273
+ var index = 0; // Add an input at the end
274
+
275
+ if (!this.props.inputs.length) {
276
+ index = this.props.values.length + 1;
277
+ } else {
278
+ // First empty input
279
+ for (var i = 0; i < this.props.values.length; i += 1) {
280
+ if (!this.props.values[i] || this.props.values[i].error || !this.props.values[i].value) {
281
+ index = i;
282
+ break;
283
+ }
238
284
  }
239
285
  }
240
- }
241
286
 
242
- return index;
243
- } // Action when files are dropped on the field
244
-
245
-
246
- render() {
247
- const _this$props = this.props,
248
- {
249
- id,
250
- inputs,
251
- classes,
252
- values,
253
- focused
254
- } = _this$props,
255
- others = _objectWithoutProperties(_this$props, ["id", "inputs", "classes", "values", "focused"]);
256
-
257
- const {
258
- dragOver,
259
- droppable
260
- } = this.state;
261
- let complete = true;
262
- let empty = true;
263
- let error = false; // For unlimited inputs: always grey
264
-
265
- if (!inputs.length) {
266
- complete = false;
267
- } else if (values.length === 0 || inputs.length > 0 && inputs.length !== values.length) {
268
- complete = false;
269
- } else {
270
- for (let i = 0, len = values.length; i < len; i += 1) {
271
- const value = values[i];
272
-
273
- if (value !== undefined) {
274
- complete = value.value === null || value.error ? false : complete;
275
- empty = value.value !== null && !value.error ? false : empty;
276
- error = value.error || error;
277
- } else {
278
- complete = false;
287
+ return index;
288
+ } // Action when files are dropped on the field
289
+
290
+ }, {
291
+ key: "render",
292
+ value: function render() {
293
+ var _classNames,
294
+ _classNames2,
295
+ _this2 = this;
296
+
297
+ var _this$props2 = this.props,
298
+ id = _this$props2.id,
299
+ inputs = _this$props2.inputs,
300
+ classes = _this$props2.classes,
301
+ values = _this$props2.values,
302
+ focused = _this$props2.focused,
303
+ others = (0, _objectWithoutProperties2.default)(_this$props2, ["id", "inputs", "classes", "values", "focused"]);
304
+ var _this$state = this.state,
305
+ dragOver = _this$state.dragOver,
306
+ droppable = _this$state.droppable;
307
+ var complete = true;
308
+ var empty = true;
309
+ var error = false; // For unlimited inputs: always grey
310
+
311
+ if (!inputs.length) {
312
+ complete = false;
313
+ } else if (values.length === 0 || inputs.length > 0 && inputs.length !== values.length) {
314
+ complete = false;
315
+ } else {
316
+ for (var i = 0, len = values.length; i < len; i += 1) {
317
+ var value = values[i];
318
+
319
+ if (value !== undefined) {
320
+ complete = value.value === null || value.error ? false : complete;
321
+ empty = value.value !== null && !value.error ? false : empty;
322
+ error = value.error || error;
323
+ } else {
324
+ complete = false;
325
+ }
279
326
  }
280
327
  }
281
- }
282
328
 
283
- const statusClass = classNames(classes.statusIcon, {
284
- [classes.empty]: empty,
285
- [classes.complete]: complete
286
- });
287
- let icon;
288
-
289
- if (error) {
290
- icon = 'warning';
291
- } else if (complete) {
292
- icon = 'check_circle';
293
- } else {
294
- icon = 'file_upload';
295
- }
329
+ var statusClass = (0, _classnames.default)(classes.statusIcon, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.empty, empty), (0, _defineProperty2.default)(_classNames, classes.complete, complete), _classNames));
330
+ var icon;
296
331
 
297
- let focusable = true;
332
+ if (error) {
333
+ icon = 'warning';
334
+ } else if (complete) {
335
+ icon = 'check_circle';
336
+ } else {
337
+ icon = 'file_upload';
338
+ }
298
339
 
299
- if (complete && values.length > 1) {
300
- focusable = false;
301
- }
340
+ var focusable = true;
302
341
 
303
- const iconClass = classNames(statusClass, classes.fileButton, {
304
- [classes.dragOver]: dragOver,
305
- [classes.droppable]: droppable,
306
- [classes.focused]: focused,
307
- [classes.error]: error && !focused,
308
- [classes.focusable]: focusable
309
- });
310
- return React.createElement("div", {
311
- className: classes.flexContainer
312
- }, React.createElement("label", {
313
- ref: label => {
314
- this.uploadFieldRef = label;
315
- },
316
- tabIndex: "-1"
317
- }, React.createElement("input", {
318
- hidden: true,
319
- type: !complete || values.length === 1 ? 'file' : 'hidden',
320
- onChange: this.handleChange,
321
- onClick: focusable ? this.handleEmptyField : undefined,
322
- ref: el => {
323
- this.uploadInput = el;
342
+ if (complete && values.length > 1) {
343
+ focusable = false;
324
344
  }
325
- }), React.createElement(HiIcon, {
326
- ref: uploadIcon => {
327
- this.uploadIconRef = uploadIcon;
328
- },
329
- id: `iconUpload-${id}`,
330
- className: iconClass,
331
- icon: icon,
332
- size: 32,
333
- tabIndex: focusable ? '0' : '-1',
334
- onKeyPress: this.handleKeyPress
335
- })), React.createElement("div", {
336
- className: classes.inputContainer
337
- }, this.createInputs(others)));
338
- }
339
-
340
- }
341
-
342
- HiUpload.propTypes = process.env.NODE_ENV !== "production" ? {
343
- /**
344
- * Useful to extend the style applied to components.
345
- */
346
- classes: PropTypes.object,
347
-
348
- /**
349
- * Classes CSS appliquées.
350
- */
351
- className: PropTypes.string,
352
-
353
- /**
354
- * Si "true", le texte d'aide s'affichera seulement au clic sur l'icône "Information"
355
- */
356
- helperIcon: PropTypes.bool,
357
-
358
- /**
359
- * Texte de l'aide
360
- */
361
- helperText: PropTypes.string,
362
-
363
- /**
364
- * Identifiant unique
365
- */
366
- id: PropTypes.string,
367
-
368
- /**
369
- * Array containing each of the inputs the component has to show (represented by an object).
370
- * If empty => unlimited number of files accepted
371
- */
372
- inputs: PropTypes.array.isRequired,
373
-
374
- /**
375
- * The method given to change the file.
376
- */
377
- onChange: PropTypes.func,
378
-
379
- /**
380
- * The method to delete a file.
381
- */
382
- onDeleteFile: PropTypes.func,
383
-
384
- /**
385
- * The method given to see the file.
386
- */
387
- onSeeFile: PropTypes.func,
388
-
389
- /**
390
- * True if can upload an unlimited number of files
391
- */
392
- values: PropTypes.array
393
- } : {};
394
- export default withStyles(styles, {
345
+
346
+ var iconClass = (0, _classnames.default)(statusClass, classes.fileButton, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, classes.dragOver, dragOver), (0, _defineProperty2.default)(_classNames2, classes.droppable, droppable), (0, _defineProperty2.default)(_classNames2, classes.focused, focused), (0, _defineProperty2.default)(_classNames2, classes.error, error && !focused), (0, _defineProperty2.default)(_classNames2, classes.focusable, focusable), _classNames2));
347
+ return _react.default.createElement("div", {
348
+ className: classes.flexContainer
349
+ }, _react.default.createElement("label", {
350
+ ref: function ref(label) {
351
+ _this2.uploadFieldRef = label;
352
+ },
353
+ tabIndex: "-1"
354
+ }, _react.default.createElement("input", {
355
+ hidden: true,
356
+ type: !complete || values.length === 1 ? 'file' : 'hidden',
357
+ onChange: this.handleChange,
358
+ onClick: focusable ? this.handleEmptyField : undefined,
359
+ ref: function ref(el) {
360
+ _this2.uploadInput = el;
361
+ }
362
+ }), _react.default.createElement(_HiIcon.default, {
363
+ ref: function ref(uploadIcon) {
364
+ _this2.uploadIconRef = uploadIcon;
365
+ },
366
+ id: "iconUpload-".concat(id),
367
+ className: iconClass,
368
+ icon: icon,
369
+ size: 32,
370
+ tabIndex: focusable ? '0' : '-1',
371
+ onKeyPress: this.handleKeyPress
372
+ })), _react.default.createElement("div", {
373
+ className: classes.inputContainer
374
+ }, this.createInputs(others)));
375
+ }
376
+ }]);
377
+ return HiUpload;
378
+ }(_react.default.PureComponent);
379
+
380
+ var _default = (0, _styles.withStyles)(styles, {
395
381
  hiComponent: true,
396
382
  name: 'HmuiHiUpload'
397
- })(HiUpload);
383
+ })(HiUpload);
384
+
385
+ exports.default = _default;