@plusscommunities/pluss-core-app 8.0.0 → 8.0.1-auth.0

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 (320) hide show
  1. package/dist/module/actions/FollowerActions.js +4 -4
  2. package/dist/module/actions/FollowerActions.js.map +1 -1
  3. package/dist/module/actions/MediaActions.js +1 -1
  4. package/dist/module/actions/MediaActions.js.map +1 -1
  5. package/dist/module/actions/ResidentActions.js +1 -1
  6. package/dist/module/actions/ResidentActions.js.map +1 -1
  7. package/dist/module/actions/UserActions.js +1 -1
  8. package/dist/module/actions/UserActions.js.map +1 -1
  9. package/dist/module/actions/UserSettingsActions.js +1 -1
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -1
  11. package/dist/module/actions/index.js +5 -5
  12. package/dist/module/actions/index.js.map +1 -1
  13. package/dist/module/actions/types.js +16 -16
  14. package/dist/module/actions/types.js.map +1 -1
  15. package/dist/module/apis/analyticsActions.js +5 -5
  16. package/dist/module/apis/analyticsActions.js.map +1 -1
  17. package/dist/module/apis/contactActions.js +6 -6
  18. package/dist/module/apis/contactActions.js.map +1 -1
  19. package/dist/module/apis/eventActions.js +28 -28
  20. package/dist/module/apis/eventActions.js.map +1 -1
  21. package/dist/module/apis/fileActions.js +15 -15
  22. package/dist/module/apis/fileActions.js.map +1 -1
  23. package/dist/module/apis/followerActions.js +8 -8
  24. package/dist/module/apis/followerActions.js.map +1 -1
  25. package/dist/module/apis/index.js +12 -12
  26. package/dist/module/apis/index.js.map +1 -1
  27. package/dist/module/apis/notificationActions.js +17 -17
  28. package/dist/module/apis/notificationActions.js.map +1 -1
  29. package/dist/module/apis/profileActions.js +4 -4
  30. package/dist/module/apis/profileActions.js.map +1 -1
  31. package/dist/module/apis/reactionActions.js +15 -15
  32. package/dist/module/apis/reactionActions.js.map +1 -1
  33. package/dist/module/apis/settingActions.js +6 -6
  34. package/dist/module/apis/settingActions.js.map +1 -1
  35. package/dist/module/apis/stringActions.js +8 -8
  36. package/dist/module/apis/stringActions.js.map +1 -1
  37. package/dist/module/apis/typeActions.js +4 -4
  38. package/dist/module/apis/typeActions.js.map +1 -1
  39. package/dist/module/apis/userActions.js +8 -8
  40. package/dist/module/apis/userActions.js.map +1 -1
  41. package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  42. package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  43. package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  44. package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  45. package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  46. package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  47. package/dist/module/colours.js +26 -29
  48. package/dist/module/colours.js.map +1 -1
  49. package/dist/module/components/AddButton.js +8 -8
  50. package/dist/module/components/AddButton.js.map +1 -1
  51. package/dist/module/components/AddToCalendarButton.js +30 -29
  52. package/dist/module/components/AddToCalendarButton.js.map +1 -1
  53. package/dist/module/components/Attachment.js +10 -9
  54. package/dist/module/components/Attachment.js.map +1 -1
  55. package/dist/module/components/AudienceSelectorLauncher.js +11 -11
  56. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
  57. package/dist/module/components/AudienceSelectorPage.js +45 -44
  58. package/dist/module/components/AudienceSelectorPage.js.map +1 -1
  59. package/dist/module/components/AutoOffsetImage.js +13 -13
  60. package/dist/module/components/AutoOffsetImage.js.map +1 -1
  61. package/dist/module/components/BackButton.js +10 -10
  62. package/dist/module/components/BackButton.js.map +1 -1
  63. package/dist/module/components/CalendarPopup.js +21 -21
  64. package/dist/module/components/CalendarPopup.js.map +1 -1
  65. package/dist/module/components/CategoryTabs.js +30 -29
  66. package/dist/module/components/CategoryTabs.js.map +1 -1
  67. package/dist/module/components/CommentReply.js +43 -37
  68. package/dist/module/components/CommentReply.js.map +1 -1
  69. package/dist/module/components/CommentSection.js +74 -74
  70. package/dist/module/components/CommentSection.js.map +1 -1
  71. package/dist/module/components/ConfirmPopup.js +21 -20
  72. package/dist/module/components/ConfirmPopup.js.map +1 -1
  73. package/dist/module/components/ConfirmationPopup.js +11 -11
  74. package/dist/module/components/ConfirmationPopup.js.map +1 -1
  75. package/dist/module/components/DocumentUploader.js +50 -50
  76. package/dist/module/components/DocumentUploader.js.map +1 -1
  77. package/dist/module/components/DropDownItem.js +14 -13
  78. package/dist/module/components/DropDownItem.js.map +1 -1
  79. package/dist/module/components/DropDownMenu.js +5 -5
  80. package/dist/module/components/DropDownMenu.js.map +1 -1
  81. package/dist/module/components/EmptyStateMain.js +10 -9
  82. package/dist/module/components/EmptyStateMain.js.map +1 -1
  83. package/dist/module/components/EmptyStateWidget.js +7 -6
  84. package/dist/module/components/EmptyStateWidget.js.map +1 -1
  85. package/dist/module/components/FontScaleButton.js +5 -4
  86. package/dist/module/components/FontScaleButton.js.map +1 -1
  87. package/dist/module/components/FontScalePopup.js +11 -10
  88. package/dist/module/components/FontScalePopup.js.map +1 -1
  89. package/dist/module/components/Forbidden.js +13 -13
  90. package/dist/module/components/Forbidden.js.map +1 -1
  91. package/dist/module/components/FormCard.js +4 -4
  92. package/dist/module/components/FormCard.js.map +1 -1
  93. package/dist/module/components/FormCardSection.js +20 -18
  94. package/dist/module/components/FormCardSection.js.map +1 -1
  95. package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
  96. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
  97. package/dist/module/components/FormattedText.js +18 -16
  98. package/dist/module/components/FormattedText.js.map +1 -1
  99. package/dist/module/components/GenericInput.js +24 -21
  100. package/dist/module/components/GenericInput.js.map +1 -1
  101. package/dist/module/components/GenericInputSection.js +27 -26
  102. package/dist/module/components/GenericInputSection.js.map +1 -1
  103. package/dist/module/components/Header.js +70 -69
  104. package/dist/module/components/Header.js.map +1 -1
  105. package/dist/module/components/Icon.js +109 -0
  106. package/dist/module/components/Icon.js.map +1 -0
  107. package/dist/module/components/ImagePopup.js +211 -73
  108. package/dist/module/components/ImagePopup.js.map +1 -1
  109. package/dist/module/components/ImageUploadProgress.js +10 -9
  110. package/dist/module/components/ImageUploadProgress.js.map +1 -1
  111. package/dist/module/components/ImageUploader.js +116 -96
  112. package/dist/module/components/ImageUploader.js.map +1 -1
  113. package/dist/module/components/InlineButton.js +9 -8
  114. package/dist/module/components/InlineButton.js.map +1 -1
  115. package/dist/module/components/Input.js +28 -26
  116. package/dist/module/components/Input.js.map +1 -1
  117. package/dist/module/components/LoadingCircles.js +20 -20
  118. package/dist/module/components/LoadingCircles.js.map +1 -1
  119. package/dist/module/components/LoadingIndicator.js +11 -11
  120. package/dist/module/components/LoadingIndicator.js.map +1 -1
  121. package/dist/module/components/LoadingStateWidget.js +5 -5
  122. package/dist/module/components/LoadingStateWidget.js.map +1 -1
  123. package/dist/module/components/MediaPlayer.js +31 -31
  124. package/dist/module/components/MediaPlayer.js.map +1 -1
  125. package/dist/module/components/MiddlePopup.js +17 -11
  126. package/dist/module/components/MiddlePopup.js.map +1 -1
  127. package/dist/module/components/PDFPopup.js +52 -39
  128. package/dist/module/components/PDFPopup.js.map +1 -1
  129. package/dist/module/components/PlussChat.js +168 -149
  130. package/dist/module/components/PlussChat.js.map +1 -1
  131. package/dist/module/components/PlussChatMessage.js +42 -42
  132. package/dist/module/components/PlussChatMessage.js.map +1 -1
  133. package/dist/module/components/PlussChatTime.js +18 -17
  134. package/dist/module/components/PlussChatTime.js.map +1 -1
  135. package/dist/module/components/Popup.js +20 -19
  136. package/dist/module/components/Popup.js.map +1 -1
  137. package/dist/module/components/PopupMenu.js +15 -14
  138. package/dist/module/components/PopupMenu.js.map +1 -1
  139. package/dist/module/components/PositionedImage.js +20 -20
  140. package/dist/module/components/PositionedImage.js.map +1 -1
  141. package/dist/module/components/ProfilePic.js +10 -10
  142. package/dist/module/components/ProfilePic.js.map +1 -1
  143. package/dist/module/components/RadioButton.js +10 -9
  144. package/dist/module/components/RadioButton.js.map +1 -1
  145. package/dist/module/components/Reaction.js +18 -17
  146. package/dist/module/components/Reaction.js.map +1 -1
  147. package/dist/module/components/Reactions.js +7 -7
  148. package/dist/module/components/Reactions.js.map +1 -1
  149. package/dist/module/components/SharingTools.js +78 -43
  150. package/dist/module/components/SharingTools.js.map +1 -1
  151. package/dist/module/components/Spinner.js +5 -5
  152. package/dist/module/components/Spinner.js.map +1 -1
  153. package/dist/module/components/StickyFooter.js +6 -6
  154. package/dist/module/components/StickyFooter.js.map +1 -1
  155. package/dist/module/components/Text.js +57 -0
  156. package/dist/module/components/Text.js.map +1 -0
  157. package/dist/module/components/TickIcon.js +6 -6
  158. package/dist/module/components/TickIcon.js.map +1 -1
  159. package/dist/module/components/Toggle.js +10 -9
  160. package/dist/module/components/Toggle.js.map +1 -1
  161. package/dist/module/components/TouchableSearchBar.js +18 -17
  162. package/dist/module/components/TouchableSearchBar.js.map +1 -1
  163. package/dist/module/components/UserListPopup.js +20 -19
  164. package/dist/module/components/UserListPopup.js.map +1 -1
  165. package/dist/module/components/UserListing.js +41 -40
  166. package/dist/module/components/UserListing.js.map +1 -1
  167. package/dist/module/components/VideoPopup.js +20 -20
  168. package/dist/module/components/VideoPopup.js.map +1 -1
  169. package/dist/module/components/WarningPopup.js +21 -20
  170. package/dist/module/components/WarningPopup.js.map +1 -1
  171. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
  172. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
  173. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
  174. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
  175. package/dist/module/components/index.js +59 -58
  176. package/dist/module/components/index.js.map +1 -1
  177. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +94 -64
  178. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
  179. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
  180. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
  181. package/dist/module/config.js +15 -10
  182. package/dist/module/config.js.map +1 -1
  183. package/dist/module/constants.js +3 -4
  184. package/dist/module/constants.js.map +1 -1
  185. package/dist/module/helper.js +83 -82
  186. package/dist/module/helper.js.map +1 -1
  187. package/dist/module/index.js +12 -12
  188. package/dist/module/index.js.map +1 -1
  189. package/dist/module/js/images/detectFaces.js +11 -10
  190. package/dist/module/js/images/detectFaces.js.map +1 -1
  191. package/dist/module/js/images/findLandmarkRange.js +8 -8
  192. package/dist/module/js/images/findLandmarkRange.js.map +1 -1
  193. package/dist/module/js/images/getScaledOffset.js.map +1 -1
  194. package/dist/module/js/site/getSiteLevelFromState.js +2 -2
  195. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
  196. package/dist/module/js/site/isTVEnabled.js +2 -2
  197. package/dist/module/js/site/isTVEnabled.js.map +1 -1
  198. package/dist/module/session.js +6 -6
  199. package/dist/module/session.js.map +1 -1
  200. package/dist/module/styles.js +17 -17
  201. package/dist/module/styles.js.map +1 -1
  202. package/dist/module/withNavigationFocus.js +30 -0
  203. package/dist/module/withNavigationFocus.js.map +1 -0
  204. package/package.json +71 -68
  205. package/src/actions/FollowerActions.js +36 -32
  206. package/src/actions/MediaActions.js +25 -20
  207. package/src/actions/ResidentActions.js +26 -21
  208. package/src/actions/UserActions.js +22 -22
  209. package/src/actions/UserSettingsActions.js +11 -11
  210. package/src/actions/index.js +5 -5
  211. package/src/actions/types.js +16 -16
  212. package/src/apis/analyticsActions.js +17 -17
  213. package/src/apis/contactActions.js +20 -20
  214. package/src/apis/eventActions.js +153 -144
  215. package/src/apis/fileActions.js +96 -86
  216. package/src/apis/followerActions.js +29 -29
  217. package/src/apis/index.js +12 -12
  218. package/src/apis/notificationActions.js +44 -44
  219. package/src/apis/profileActions.js +8 -8
  220. package/src/apis/reactionActions.js +81 -73
  221. package/src/apis/settingActions.js +15 -15
  222. package/src/apis/stringActions.js +29 -25
  223. package/src/apis/typeActions.js +10 -10
  224. package/src/apis/userActions.js +93 -93
  225. package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  226. package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  227. package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  228. package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  229. package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  230. package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  231. package/src/colours.js +116 -96
  232. package/src/components/AddButton.js +32 -27
  233. package/src/components/AddToCalendarButton.js +236 -202
  234. package/src/components/Attachment.js +59 -36
  235. package/src/components/AudienceSelectorLauncher.js +52 -48
  236. package/src/components/AudienceSelectorPage.js +353 -311
  237. package/src/components/AutoOffsetImage.js +237 -196
  238. package/src/components/BackButton.js +57 -41
  239. package/src/components/CalendarPopup.js +127 -97
  240. package/src/components/CategoryTabs.js +208 -163
  241. package/src/components/CommentReply.js +370 -309
  242. package/src/components/CommentSection.js +974 -781
  243. package/src/components/ConfirmPopup.js +141 -110
  244. package/src/components/ConfirmationPopup.js +80 -69
  245. package/src/components/DocumentUploader.js +245 -215
  246. package/src/components/DropDownItem.js +70 -60
  247. package/src/components/DropDownMenu.js +31 -27
  248. package/src/components/EmptyStateMain.js +51 -44
  249. package/src/components/EmptyStateWidget.js +47 -38
  250. package/src/components/FontScaleButton.js +29 -25
  251. package/src/components/FontScalePopup.js +67 -56
  252. package/src/components/Forbidden.js +48 -46
  253. package/src/components/FormCard.js +21 -17
  254. package/src/components/FormCardSection.js +284 -233
  255. package/src/components/FormCardSectionOptionLauncher.js +72 -46
  256. package/src/components/FormattedText.js +128 -111
  257. package/src/components/GenericInput.js +168 -136
  258. package/src/components/GenericInputSection.js +209 -161
  259. package/src/components/Header.js +620 -474
  260. package/src/components/Icon.js +119 -0
  261. package/src/components/ImagePopup.js +425 -221
  262. package/src/components/ImageUploadProgress.js +49 -41
  263. package/src/components/ImageUploader.js +968 -797
  264. package/src/components/InlineButton.js +79 -69
  265. package/src/components/Input.js +190 -156
  266. package/src/components/LoadingCircles.js +233 -233
  267. package/src/components/LoadingIndicator.js +87 -76
  268. package/src/components/LoadingStateWidget.js +47 -37
  269. package/src/components/MediaPlayer.js +416 -387
  270. package/src/components/MiddlePopup.js +62 -33
  271. package/src/components/PDFPopup.js +212 -159
  272. package/src/components/PlussChat.js +1224 -1025
  273. package/src/components/PlussChatMessage.js +329 -298
  274. package/src/components/PlussChatTime.js +57 -53
  275. package/src/components/Popup.js +138 -116
  276. package/src/components/PopupMenu.js +140 -110
  277. package/src/components/PositionedImage.js +281 -237
  278. package/src/components/ProfilePic.js +122 -113
  279. package/src/components/RadioButton.js +76 -52
  280. package/src/components/Reaction.js +134 -96
  281. package/src/components/Reactions.js +65 -63
  282. package/src/components/SharingTools.js +185 -134
  283. package/src/components/Spinner.js +13 -13
  284. package/src/components/StickyFooter.js +36 -26
  285. package/src/components/Text.js +62 -0
  286. package/src/components/TickIcon.js +20 -20
  287. package/src/components/Toggle.js +74 -73
  288. package/src/components/TouchableSearchBar.js +68 -50
  289. package/src/components/UserListPopup.js +161 -124
  290. package/src/components/UserListing.js +273 -238
  291. package/src/components/VideoPopup.js +110 -96
  292. package/src/components/WarningPopup.js +92 -71
  293. package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
  294. package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
  295. package/src/components/index.js +59 -58
  296. package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +444 -359
  297. package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
  298. package/src/config.js +26 -21
  299. package/src/constants.js +8 -10
  300. package/src/helper.js +469 -438
  301. package/src/index.js +24 -12
  302. package/src/js/images/detectFaces.js +28 -21
  303. package/src/js/images/findLandmarkRange.js +97 -90
  304. package/src/js/images/getScaledOffset.js +80 -75
  305. package/src/js/site/getSiteLevelFromState.js +26 -26
  306. package/src/js/site/isTVEnabled.js +10 -10
  307. package/src/session.js +32 -32
  308. package/src/styles.js +61 -61
  309. package/src/withNavigationFocus.js +28 -0
  310. package/dist/module/components/TextStyle.js +0 -45
  311. package/dist/module/components/TextStyle.js.map +0 -1
  312. package/dist/module/fonts/index.js +0 -2
  313. package/dist/module/fonts/index.js.map +0 -1
  314. package/dist/module/fonts/pluss60-icons.js +0 -5
  315. package/dist/module/fonts/pluss60-icons.js.map +0 -1
  316. package/dist/module/fonts/pluss60-icons.json +0 -1097
  317. package/src/components/TextStyle.js +0 -48
  318. package/src/fonts/index.js +0 -1
  319. package/src/fonts/pluss60-icons.js +0 -7
  320. package/src/fonts/pluss60-icons.json +0 -1097
@@ -1,19 +1,21 @@
1
1
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
- import React, { Component } from 'react';
5
- import { Dimensions, Image, ScrollView, Modal, View, Text, SafeAreaView, TouchableOpacity, StyleSheet, Platform, LogBox } from 'react-native';
6
- import * as ImageManipulator from 'expo-image-manipulator';
7
- import PropTypes from 'prop-types';
8
- import AutoHeightImage from 'react-native-auto-height-image';
9
- import { isIphoneX, getStatusBarHeight } from 'react-native-iphone-x-helper';
10
- import ImageCropOverlay from './ImageCropOverlay';
4
+ import React, { Component } from "react";
5
+ import { Text } from "@plusscommunities/pluss-core-app/components";
6
+ import { Dimensions, Image, ScrollView, Modal, View, TouchableOpacity, StyleSheet, Platform, LogBox, Alert } from "react-native";
7
+ import * as ImageManipulator from "expo-image-manipulator";
8
+ import * as MediaLibrary from "expo-media-library";
9
+ import { File, Paths } from "expo-file-system";
10
+ import PropTypes from "prop-types";
11
+ import AutoHeightImage from "react-native-auto-height-image";
12
+ import { withSafeAreaInsets, SafeAreaView } from "react-native-safe-area-context";
13
+ import ImageCropOverlay from "./ImageCropOverlay";
11
14
  const {
12
15
  width
13
- } = Dimensions.get('window');
14
- const topMargin = getStatusBarHeight() + (Platform.OS === 'ios' ? 50 : 20);
15
- LogBox.ignoreLogs(['componentWillReceiveProps', 'componentWillUpdate', 'componentWillMount']);
16
- LogBox.ignoreLogs(['Warning: componentWillMount is deprecated', 'Warning: componentWillReceiveProps is deprecated', 'Module RCTImageLoader requires']);
16
+ } = Dimensions.get("window");
17
+ LogBox.ignoreLogs(["componentWillReceiveProps", "componentWillUpdate", "componentWillMount"]);
18
+ LogBox.ignoreLogs(["Warning: componentWillMount is deprecated", "Warning: componentWillReceiveProps is deprecated", "Module RCTImageLoader requires"]);
17
19
  class ExpoImageManipulator extends Component {
18
20
  constructor(props) {
19
21
  super(props);
@@ -64,11 +66,11 @@ class ExpoImageManipulator extends Component {
64
66
  this.scrollOffset = event.nativeEvent.contentOffset.y;
65
67
  });
66
68
  _defineProperty(this, "getCropBounds", (actualWidth, actualHeight) => {
69
+ var _this$props$insets, _this$props$insets2;
67
70
  let imageRatio = actualHeight / actualWidth;
68
- var originalHeight = Dimensions.get('window').height - 64;
69
- if (isIphoneX()) {
70
- originalHeight = Dimensions.get('window').height - 122;
71
- }
71
+ const topInset = ((_this$props$insets = this.props.insets) === null || _this$props$insets === void 0 ? void 0 : _this$props$insets.top) ?? 0;
72
+ const bottomInset = ((_this$props$insets2 = this.props.insets) === null || _this$props$insets2 === void 0 ? void 0 : _this$props$insets2.bottom) ?? 0;
73
+ var originalHeight = Dimensions.get("window").height - topInset - bottomInset - 44;
72
74
  let renderedImageWidth = imageRatio < originalHeight / width ? width : originalHeight / imageRatio;
73
75
  let renderedImageHeight = imageRatio < originalHeight / width ? width * imageRatio : originalHeight;
74
76
  let renderedImageY = (originalHeight - renderedImageHeight) / 2.0;
@@ -164,31 +166,60 @@ class ExpoImageManipulator extends Component {
164
166
  });
165
167
  }
166
168
  async onConvertImageToEditableSize() {
167
- const {
168
- photo: {
169
- uri: rawUri
170
- }
171
- } = this.props;
172
- const {
173
- uri,
174
- width,
175
- height
176
- } = await ImageManipulator.manipulateAsync(rawUri, [{
177
- resize: {
178
- width: 1080
169
+ try {
170
+ const {
171
+ photo: {
172
+ uri: rawUri
173
+ }
174
+ } = this.props;
175
+
176
+ // expo-image-manipulator only works with file:// URIs.
177
+ // Resolve ph:// (iOS Photo Library) and https:// (remote/stock images) first.
178
+ let resolvedUri = rawUri;
179
+ if (rawUri !== null && rawUri !== void 0 && rawUri.startsWith("ph://")) {
180
+ const assetId = rawUri.replace("ph://", "");
181
+ const assetInfo = await MediaLibrary.getAssetInfoAsync(assetId, {
182
+ shouldDownloadFromNetwork: true
183
+ });
184
+ resolvedUri = assetInfo.localUri || rawUri;
185
+ } else if (rawUri !== null && rawUri !== void 0 && rawUri.startsWith("http")) {
186
+ var _rawUri$split$pop;
187
+ const ext = ((_rawUri$split$pop = rawUri.split(".").pop()) === null || _rawUri$split$pop === void 0 ? void 0 : _rawUri$split$pop.split("?")[0]) || "jpg";
188
+ const file = await File.downloadFileAsync(rawUri, new File(Paths.cache, `crop_${Date.now()}.${ext}`), {
189
+ idempotent: true
190
+ });
191
+ resolvedUri = file.uri;
179
192
  }
180
- }]);
181
- this.setState({
182
- uri
183
- });
184
- this.actualSize.width = width;
185
- this.actualSize.height = height;
193
+ const manipulatePromise = ImageManipulator.manipulateAsync(resolvedUri, [{
194
+ resize: {
195
+ width: 1080
196
+ }
197
+ }]);
198
+ // manipulateAsync can hang forever on non-file:// URIs (promise never settles).
199
+ // Promise.race with a timeout ensures the catch block fires.
200
+ const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Image processing timed out")), 15000));
201
+ const {
202
+ uri,
203
+ width,
204
+ height
205
+ } = await Promise.race([manipulatePromise, timeoutPromise]);
206
+ this.setState({
207
+ uri
208
+ });
209
+ this.actualSize.width = width;
210
+ this.actualSize.height = height;
211
+ } catch (e) {
212
+ console.log("onConvertImageToEditableSize error", e);
213
+ this.onToggleModal();
214
+ Alert.alert("Error", "Unable to prepare this image for editing. Please try a different image.");
215
+ }
186
216
  }
187
217
  // eslint-disable-next-line camelcase
188
218
  async UNSAFE_componentWillReceiveProps() {
189
219
  await this.onConvertImageToEditableSize();
190
220
  }
191
221
  render() {
222
+ var _this$props$insets3, _this$props$insets4;
192
223
  const {
193
224
  isVisible,
194
225
  onPictureChoosed
@@ -200,10 +231,10 @@ class ExpoImageManipulator extends Component {
200
231
  processing
201
232
  } = this.state;
202
233
  let imageRatio = this.actualSize.height / this.actualSize.width;
203
- var originalHeight = Dimensions.get('window').height - 64;
204
- if (isIphoneX()) {
205
- originalHeight = Dimensions.get('window').height - 122;
206
- }
234
+ const topInset = ((_this$props$insets3 = this.props.insets) === null || _this$props$insets3 === void 0 ? void 0 : _this$props$insets3.top) ?? 0;
235
+ const bottomInset = ((_this$props$insets4 = this.props.insets) === null || _this$props$insets4 === void 0 ? void 0 : _this$props$insets4.bottom) ?? 0;
236
+ var originalHeight = Dimensions.get("window").height - topInset - bottomInset - 44;
237
+ const topMargin = topInset + (Platform.OS === "ios" ? 50 : 20);
207
238
  let cropRatio = originalHeight / width;
208
239
  let cropWidth = imageRatio < cropRatio ? width : originalHeight / imageRatio;
209
240
  let cropHeight = imageRatio < cropRatio ? width * imageRatio : originalHeight;
@@ -231,7 +262,7 @@ class ExpoImageManipulator extends Component {
231
262
  }, styles.headerContainer]
232
263
  }, !cropMode ? /*#__PURE__*/React.createElement(View, {
233
264
  style: [styles.headerButtonContainer, {
234
- justifyContent: 'flex-end'
265
+ justifyContent: "flex-end"
235
266
  }]
236
267
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
237
268
  onPress: () => {
@@ -244,14 +275,14 @@ class ExpoImageManipulator extends Component {
244
275
  style: styles.headerButton
245
276
  }, /*#__PURE__*/React.createElement(Text, {
246
277
  style: styles.headerButtonText
247
- }, 'Done'))) : /*#__PURE__*/React.createElement(View, {
278
+ }, "Done"))) : /*#__PURE__*/React.createElement(View, {
248
279
  style: styles.headerButtonContainer
249
280
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
250
281
  onPress: this.onToggleModal,
251
282
  style: styles.headerButton
252
283
  }, /*#__PURE__*/React.createElement(Text, {
253
284
  style: styles.headerButtonText
254
- }, 'Cancel')), /*#__PURE__*/React.createElement(TouchableOpacity, {
285
+ }, "Cancel")), /*#__PURE__*/React.createElement(TouchableOpacity, {
255
286
  onPress: () => {
256
287
  this.onCropImage(() => {
257
288
  onPictureChoosed({
@@ -264,17 +295,17 @@ class ExpoImageManipulator extends Component {
264
295
  style: styles.headerButton
265
296
  }, /*#__PURE__*/React.createElement(Text, {
266
297
  style: styles.headerButtonText
267
- }, processing ? 'Processing' : 'Done')))), /*#__PURE__*/React.createElement(View, {
298
+ }, processing ? "Processing" : "Done")))), /*#__PURE__*/React.createElement(View, {
268
299
  style: [styles.contentContainer, {
269
- width: Dimensions.get('window').width
300
+ width: Dimensions.get("window").width
270
301
  }]
271
302
  }, /*#__PURE__*/React.createElement(ScrollView, {
272
303
  style: {
273
- position: 'relative',
304
+ position: "relative",
274
305
  flex: 1
275
306
  },
276
307
  contentContainerStyle: {
277
- backgroundColor: 'black'
308
+ backgroundColor: "black"
278
309
  },
279
310
  maximumZoomScale: 5,
280
311
  minimumZoomScale: 0.5,
@@ -288,13 +319,12 @@ class ExpoImageManipulator extends Component {
288
319
  pinchGestureEnabled: false
289
320
  }, /*#__PURE__*/React.createElement(AutoHeightImage, {
290
321
  style: {
291
- backgroundColor: 'black',
292
- marginTop: cropInitialTop
322
+ backgroundColor: "black"
293
323
  },
294
324
  source: {
295
325
  uri
296
326
  },
297
- resizeMode: imageRatio >= 1 ? 'contain' : 'contain',
327
+ resizeMode: imageRatio >= 1 ? "contain" : "contain",
298
328
  width: width,
299
329
  height: originalHeight,
300
330
  onLayout: this.calculateMaxSizes
@@ -322,49 +352,49 @@ class ExpoImageManipulator extends Component {
322
352
  }
323
353
  const styles = StyleSheet.create({
324
354
  headerContainer: {
325
- flexDirection: 'row',
326
- backgroundColor: 'black',
327
- justifyContent: 'space-between'
355
+ flexDirection: "row",
356
+ backgroundColor: "black",
357
+ justifyContent: "space-between"
328
358
  },
329
359
  headerButtonContainer: {
330
360
  flex: 1,
331
- flexDirection: 'row',
332
- justifyContent: 'space-between'
361
+ flexDirection: "row",
362
+ justifyContent: "space-between"
333
363
  },
334
364
  headerButton: {
335
365
  marginHorizontal: 10,
336
366
  width: 60,
337
367
  height: 40,
338
- alignItems: 'center',
339
- justifyContent: 'center'
368
+ alignItems: "center",
369
+ justifyContent: "center"
340
370
  },
341
371
  headerButtonText: {
342
- fontWeight: '500',
343
- color: 'white',
372
+ fontWeight: "500",
373
+ color: "white",
344
374
  fontSize: 18
345
375
  },
346
376
  contentContainer: {
347
377
  flex: 1,
348
- backgroundColor: 'black'
378
+ backgroundColor: "black"
349
379
  },
350
380
  container: {
351
381
  flex: 1,
352
- backgroundColor: '#000d',
353
- alignItems: 'center',
354
- justifyContent: 'center'
382
+ backgroundColor: "#000d",
383
+ alignItems: "center",
384
+ justifyContent: "center"
355
385
  },
356
386
  prepareMessageText: {
357
- fontFamily: 'sf-bold',
387
+ fontFamily: "sf-bold",
358
388
  fontSize: 20,
359
- color: '#fff'
389
+ color: "#fff"
360
390
  }
361
391
  });
362
- export default ExpoImageManipulator;
392
+ export default withSafeAreaInsets(ExpoImageManipulator);
363
393
  ExpoImageManipulator.defaultProps = {
364
394
  onPictureChoosed: ({
365
395
  uri,
366
396
  base64
367
- }) => console.log('URI:', uri, base64),
397
+ }) => console.log("URI:", uri, base64),
368
398
  dragVelocity: 100,
369
399
  resizeVelocity: 50,
370
400
  saveOptions: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","Dimensions","Image","ScrollView","Modal","View","Text","SafeAreaView","TouchableOpacity","StyleSheet","Platform","LogBox","ImageManipulator","PropTypes","AutoHeightImage","isIphoneX","getStatusBarHeight","ImageCropOverlay","width","get","topMargin","OS","ignoreLogs","ExpoImageManipulator","constructor","props","_defineProperty","onToggleModal","setState","cropMode","callback","processing","uri","state","getSize","actualWidth","actualHeight","cropObj","getCropBounds","height","uriToCrop","uriCroped","base64","croppedWidth","croppedHeight","crop","actualSize","event","scrollOffset","nativeEvent","contentOffset","y","imageRatio","originalHeight","renderedImageWidth","renderedImageHeight","renderedImageY","renderedImageX","renderImageObj","left","top","cropOverlayObj","currentPos","currentSize","intersectAreaObj","x","Math","max","num1","min","num2","originX","originY","saveOptions","manipResult","manipulateAsync","w1","layout","h1","squareAspect","maxSizes","componentDidMount","onConvertImageToEditableSize","photo","rawUri","resize","UNSAFE_componentWillReceiveProps","render","isVisible","onPictureChoosed","cropRatio","cropWidth","cropHeight","cropInitialTop","cropInitialLeft","createElement","animationType","transparent","visible","hardwareAccelerated","onRequestClose","undefined","style","styles","container","headerContainer","headerButtonContainer","justifyContent","onPress","headerButton","headerButtonText","onCropImage","contentContainer","position","flex","contentContainerStyle","backgroundColor","maximumZoomScale","minimumZoomScale","onScroll","onHandleScroll","bounces","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","ref","c","scrollView","scrollEventThrottle","scrollEnabled","pinchGestureEnabled","marginTop","source","resizeMode","onLayout","calculateMaxSizes","onLayoutChanged","initialWidth","initialHeight","initialTop","initialLeft","minHeight","minWidth","prepareMessageText","create","flexDirection","marginHorizontal","alignItems","fontWeight","color","fontSize","fontFamily","defaultProps","console","log","dragVelocity","resizeVelocity","compress","format","SaveFormat","PNG","propTypes","bool","isRequired","func","object","number"],"sources":["ExpoImageManipulator.js"],"sourcesContent":["import React, { Component } from 'react';\nimport {\n Dimensions,\n Image,\n ScrollView,\n Modal,\n View,\n Text,\n SafeAreaView,\n TouchableOpacity,\n StyleSheet,\n Platform,\n LogBox,\n} from 'react-native';\nimport * as ImageManipulator from 'expo-image-manipulator';\nimport PropTypes from 'prop-types';\nimport AutoHeightImage from 'react-native-auto-height-image';\nimport { isIphoneX, getStatusBarHeight } from 'react-native-iphone-x-helper';\nimport ImageCropOverlay from './ImageCropOverlay';\n\nconst { width } = Dimensions.get('window');\nconst topMargin = getStatusBarHeight() + (Platform.OS === 'ios' ? 50 : 20);\n\nLogBox.ignoreLogs(['componentWillReceiveProps', 'componentWillUpdate', 'componentWillMount']);\nLogBox.ignoreLogs([\n 'Warning: componentWillMount is deprecated',\n 'Warning: componentWillReceiveProps is deprecated',\n 'Module RCTImageLoader requires',\n]);\n\nclass ExpoImageManipulator extends Component {\n constructor(props) {\n super(props);\n const { squareAspect } = this.props;\n this.state = {\n cropMode: false,\n processing: false,\n squareAspect,\n };\n\n this.scrollOffset = 0;\n this.currentPos = { left: 0, top: 0 };\n this.currentSize = { width: 0, height: 0 };\n this.maxSizes = { width: 0, height: 0 };\n this.actualSize = { width: 0, height: 0 };\n }\n\n async componentDidMount() {\n await this.onConvertImageToEditableSize();\n\n // Set cropping by default\n this.setState({ cropMode: true });\n }\n\n async onConvertImageToEditableSize() {\n const {\n photo: { uri: rawUri },\n } = this.props;\n const { uri, width, height } = await ImageManipulator.manipulateAsync(rawUri, [{ resize: { width: 1080 } }]);\n this.setState({ uri });\n this.actualSize.width = width;\n this.actualSize.height = height;\n }\n\n onToggleModal = () => {\n this.props.onToggleModal();\n this.setState({ cropMode: false });\n };\n\n onCropImage = (callback = null) => {\n this.setState({ processing: true });\n const { uri } = this.state;\n Image.getSize(uri, async (actualWidth, actualHeight) => {\n let cropObj = this.getCropBounds(actualWidth, actualHeight);\n if (cropObj.height > 0 && cropObj.width > 0) {\n let uriToCrop = uri;\n const { uri: uriCroped, base64, width: croppedWidth, height: croppedHeight } = await this.crop(cropObj, uriToCrop);\n\n this.actualSize.width = croppedWidth;\n this.actualSize.height = croppedHeight;\n\n this.setState(\n {\n uri: uriCroped,\n base64,\n cropMode: false,\n processing: false,\n },\n () => {\n if (callback) callback();\n },\n );\n } else {\n this.setState({ cropMode: false, processing: false }, () => {\n if (callback) callback();\n });\n }\n });\n };\n\n onHandleScroll = event => {\n this.scrollOffset = event.nativeEvent.contentOffset.y;\n };\n\n getCropBounds = (actualWidth, actualHeight) => {\n let imageRatio = actualHeight / actualWidth;\n var originalHeight = Dimensions.get('window').height - 64;\n if (isIphoneX()) {\n originalHeight = Dimensions.get('window').height - 122;\n }\n let renderedImageWidth = imageRatio < originalHeight / width ? width : originalHeight / imageRatio;\n let renderedImageHeight = imageRatio < originalHeight / width ? width * imageRatio : originalHeight;\n\n let renderedImageY = (originalHeight - renderedImageHeight) / 2.0;\n let renderedImageX = (width - renderedImageWidth) / 2.0;\n\n const renderImageObj = {\n left: renderedImageX,\n top: renderedImageY,\n width: renderedImageWidth,\n height: renderedImageHeight,\n };\n const cropOverlayObj = {\n left: this.currentPos.left,\n top: this.currentPos.top,\n width: this.currentSize.width,\n height: this.currentSize.height,\n };\n\n var intersectAreaObj = {};\n\n let x = Math.max(renderImageObj.left, cropOverlayObj.left);\n let num1 = Math.min(renderImageObj.left + renderImageObj.width, cropOverlayObj.left + cropOverlayObj.width);\n let y = Math.max(renderImageObj.top, cropOverlayObj.top);\n let num2 = Math.min(renderImageObj.top + renderImageObj.height, cropOverlayObj.top + cropOverlayObj.height);\n if (num1 >= x && num2 >= y)\n intersectAreaObj = {\n originX: (x - renderedImageX) * (actualWidth / renderedImageWidth),\n originY: (y - renderedImageY) * (actualWidth / renderedImageWidth),\n width: (num1 - x) * (actualWidth / renderedImageWidth),\n height: (num2 - y) * (actualWidth / renderedImageWidth),\n };\n else {\n intersectAreaObj = {\n originX: x - renderedImageX,\n originY: y - renderedImageY,\n width: 0,\n height: 0,\n };\n }\n return intersectAreaObj;\n };\n\n crop = async (cropObj, uri) => {\n const { saveOptions } = this.props;\n if (cropObj.height > 0 && cropObj.width > 0) {\n const manipResult = await ImageManipulator.manipulateAsync(\n uri,\n [\n {\n crop: cropObj,\n },\n ],\n saveOptions,\n );\n return manipResult;\n }\n return {\n uri: null,\n base64: null,\n };\n };\n\n calculateMaxSizes = event => {\n let w1 = event.nativeEvent.layout.width || 100;\n let h1 = event.nativeEvent.layout.height || 100;\n if (this.state.squareAspect) {\n if (w1 < h1) h1 = w1;\n else w1 = h1;\n }\n this.maxSizes.width = w1;\n this.maxSizes.height = h1;\n };\n\n // eslint-disable-next-line camelcase\n async UNSAFE_componentWillReceiveProps() {\n await this.onConvertImageToEditableSize();\n }\n\n render() {\n const { isVisible, onPictureChoosed } = this.props;\n const { uri, base64, cropMode, processing } = this.state;\n\n let imageRatio = this.actualSize.height / this.actualSize.width;\n var originalHeight = Dimensions.get('window').height - 64;\n if (isIphoneX()) {\n originalHeight = Dimensions.get('window').height - 122;\n }\n\n let cropRatio = originalHeight / width;\n\n let cropWidth = imageRatio < cropRatio ? width : originalHeight / imageRatio;\n let cropHeight = imageRatio < cropRatio ? width * imageRatio : originalHeight;\n\n let cropInitialTop = (originalHeight - cropHeight) / 2.0;\n let cropInitialLeft = (width - cropWidth) / 2.0;\n\n if (this.currentSize.width == 0 && cropMode) {\n this.currentSize.width = cropWidth;\n this.currentSize.height = cropHeight;\n\n this.currentPos.top = cropInitialTop;\n this.currentPos.left = cropInitialLeft;\n }\n\n return (\n <Modal\n animationType=\"slide\"\n transparent={true}\n visible={isVisible}\n hardwareAccelerated\n onRequestClose={() => {\n this.onToggleModal();\n }}\n >\n {uri !== undefined ? (\n <View style={styles.container}>\n <SafeAreaView style={[{ width }, styles.headerContainer]}>\n {!cropMode ? (\n <View style={[styles.headerButtonContainer, { justifyContent: 'flex-end' }]}>\n <TouchableOpacity\n onPress={() => {\n onPictureChoosed({ uri, base64 });\n this.onToggleModal();\n }}\n style={styles.headerButton}\n >\n <Text style={styles.headerButtonText}>{'Done'}</Text>\n </TouchableOpacity>\n </View>\n ) : (\n <View style={styles.headerButtonContainer}>\n <TouchableOpacity onPress={this.onToggleModal} style={styles.headerButton}>\n <Text style={styles.headerButtonText}>{'Cancel'}</Text>\n </TouchableOpacity>\n <TouchableOpacity\n onPress={() => {\n this.onCropImage(() => {\n onPictureChoosed({ uri: this.state.uri, base64: this.state.base64 });\n this.onToggleModal();\n });\n }}\n style={styles.headerButton}\n >\n <Text style={styles.headerButtonText}>{processing ? 'Processing' : 'Done'}</Text>\n </TouchableOpacity>\n </View>\n )}\n </SafeAreaView>\n <View style={[styles.contentContainer, { width: Dimensions.get('window').width }]}>\n <ScrollView\n style={{ position: 'relative', flex: 1 }}\n contentContainerStyle={{ backgroundColor: 'black' }}\n maximumZoomScale={5}\n minimumZoomScale={0.5}\n onScroll={this.onHandleScroll}\n bounces={false}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n ref={c => (this.scrollView = c)}\n scrollEventThrottle={16}\n scrollEnabled={false}\n pinchGestureEnabled={false}\n >\n <AutoHeightImage\n style={{ backgroundColor: 'black', marginTop: cropInitialTop }}\n source={{ uri }}\n resizeMode={imageRatio >= 1 ? 'contain' : 'contain'}\n width={width}\n height={originalHeight}\n onLayout={this.calculateMaxSizes}\n />\n {!!cropMode && (\n <ImageCropOverlay\n onLayoutChanged={(top, left, width, height) => {\n this.currentSize.width = width;\n this.currentSize.height = height;\n this.currentPos.top = top;\n this.currentPos.left = left;\n }}\n initialWidth={cropWidth}\n initialHeight={cropHeight}\n initialTop={cropInitialTop}\n initialLeft={cropInitialLeft}\n minHeight={100}\n minWidth={100}\n topMargin={topMargin}\n />\n )}\n </ScrollView>\n </View>\n </View>\n ) : (\n <View style={styles.container}>\n <Text style={styles.prepareMessageText}>Preparing...</Text>\n </View>\n )}\n </Modal>\n );\n // }\n }\n}\n\nconst styles = StyleSheet.create({\n headerContainer: {\n flexDirection: 'row',\n backgroundColor: 'black',\n justifyContent: 'space-between',\n },\n headerButtonContainer: {\n flex: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n headerButton: {\n marginHorizontal: 10,\n width: 60,\n height: 40,\n alignItems: 'center',\n justifyContent: 'center',\n },\n headerButtonText: {\n fontWeight: '500',\n color: 'white',\n fontSize: 18,\n },\n contentContainer: {\n flex: 1,\n backgroundColor: 'black',\n },\n container: {\n flex: 1,\n backgroundColor: '#000d',\n alignItems: 'center',\n justifyContent: 'center',\n },\n prepareMessageText: {\n fontFamily: 'sf-bold',\n fontSize: 20,\n color: '#fff',\n },\n});\n\nexport default ExpoImageManipulator;\n\nExpoImageManipulator.defaultProps = {\n onPictureChoosed: ({ uri, base64 }) => console.log('URI:', uri, base64),\n dragVelocity: 100,\n resizeVelocity: 50,\n saveOptions: {\n compress: 1,\n format: ImageManipulator.SaveFormat.PNG,\n base64: false,\n },\n};\n\nExpoImageManipulator.propTypes = {\n isVisible: PropTypes.bool.isRequired,\n onPictureChoosed: PropTypes.func,\n saveOptions: PropTypes.object,\n photo: PropTypes.object.isRequired,\n onToggleModal: PropTypes.func.isRequired,\n dragVelocity: PropTypes.number,\n resizeVelocity: PropTypes.number,\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SACEC,UAAU,EACVC,KAAK,EACLC,UAAU,EACVC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,YAAY,EACZC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,EACRC,MAAM,QACD,cAAc;AACrB,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAC1D,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,eAAe,MAAM,gCAAgC;AAC5D,SAASC,SAAS,EAAEC,kBAAkB,QAAQ,8BAA8B;AAC5E,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,MAAM;EAAEC;AAAM,CAAC,GAAGjB,UAAU,CAACkB,GAAG,CAAC,QAAQ,CAAC;AAC1C,MAAMC,SAAS,GAAGJ,kBAAkB,CAAC,CAAC,IAAIN,QAAQ,CAACW,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG,EAAE,CAAC;AAE1EV,MAAM,CAACW,UAAU,CAAC,C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C7BjF,KAAK,EAAEtE,SAAS,CAACuJ,MAAM,CAACF,UAAU;EAClCvI,aAAa,EAAEd,SAAS,CAACsJ,IAAI,CAACD,UAAU;EACxCR,YAAY,EAAE7I,SAAS,CAACwJ,MAAM;EAC9BV,cAAc,EAAE9I,SAAS,CAACwJ;AAC5B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Component","Text","Dimensions","Image","ScrollView","Modal","View","TouchableOpacity","StyleSheet","Platform","LogBox","Alert","ImageManipulator","MediaLibrary","File","Paths","PropTypes","AutoHeightImage","withSafeAreaInsets","SafeAreaView","ImageCropOverlay","width","get","ignoreLogs","ExpoImageManipulator","constructor","props","_defineProperty","onToggleModal","setState","cropMode","callback","processing","uri","state","getSize","actualWidth","actualHeight","cropObj","getCropBounds","height","uriToCrop","uriCroped","base64","croppedWidth","croppedHeight","crop","actualSize","event","scrollOffset","nativeEvent","contentOffset","y","_this$props$insets","_this$props$insets2","imageRatio","topInset","insets","top","bottomInset","bottom","originalHeight","renderedImageWidth","renderedImageHeight","renderedImageY","renderedImageX","renderImageObj","left","cropOverlayObj","currentPos","currentSize","intersectAreaObj","x","Math","max","num1","min","num2","originX","originY","saveOptions","manipResult","manipulateAsync","w1","layout","h1","squareAspect","maxSizes","componentDidMount","onConvertImageToEditableSize","photo","rawUri","resolvedUri","startsWith","assetId","replace","assetInfo","getAssetInfoAsync","shouldDownloadFromNetwork","localUri","_rawUri$split$pop","ext","split","pop","file","downloadFileAsync","cache","Date","now","idempotent","manipulatePromise","resize","timeoutPromise","Promise","_","reject","setTimeout","Error","race","e","console","log","alert","UNSAFE_componentWillReceiveProps","render","_this$props$insets3","_this$props$insets4","isVisible","onPictureChoosed","topMargin","OS","cropRatio","cropWidth","cropHeight","cropInitialTop","cropInitialLeft","createElement","animationType","transparent","visible","hardwareAccelerated","onRequestClose","undefined","style","styles","container","headerContainer","headerButtonContainer","justifyContent","onPress","headerButton","headerButtonText","onCropImage","contentContainer","position","flex","contentContainerStyle","backgroundColor","maximumZoomScale","minimumZoomScale","onScroll","onHandleScroll","bounces","showsHorizontalScrollIndicator","showsVerticalScrollIndicator","ref","c","scrollView","scrollEventThrottle","scrollEnabled","pinchGestureEnabled","source","resizeMode","onLayout","calculateMaxSizes","onLayoutChanged","initialWidth","initialHeight","initialTop","initialLeft","minHeight","minWidth","prepareMessageText","create","flexDirection","marginHorizontal","alignItems","fontWeight","color","fontSize","fontFamily","defaultProps","dragVelocity","resizeVelocity","compress","format","SaveFormat","PNG","propTypes","bool","isRequired","func","object","number"],"sources":["ExpoImageManipulator.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tDimensions,\n\tImage,\n\tScrollView,\n\tModal,\n\tView,\n\tTouchableOpacity,\n\tStyleSheet,\n\tPlatform,\n\tLogBox,\n\tAlert,\n} from \"react-native\";\nimport * as ImageManipulator from \"expo-image-manipulator\";\nimport * as MediaLibrary from \"expo-media-library\";\nimport { File, Paths } from \"expo-file-system\";\nimport PropTypes from \"prop-types\";\nimport AutoHeightImage from \"react-native-auto-height-image\";\nimport {\n\twithSafeAreaInsets,\n\tSafeAreaView,\n} from \"react-native-safe-area-context\";\nimport ImageCropOverlay from \"./ImageCropOverlay\";\n\nconst { width } = Dimensions.get(\"window\");\n\nLogBox.ignoreLogs([\n\t\"componentWillReceiveProps\",\n\t\"componentWillUpdate\",\n\t\"componentWillMount\",\n]);\nLogBox.ignoreLogs([\n\t\"Warning: componentWillMount is deprecated\",\n\t\"Warning: componentWillReceiveProps is deprecated\",\n\t\"Module RCTImageLoader requires\",\n]);\n\nclass ExpoImageManipulator extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tconst { squareAspect } = this.props;\n\t\tthis.state = {\n\t\t\tcropMode: false,\n\t\t\tprocessing: false,\n\t\t\tsquareAspect,\n\t\t};\n\n\t\tthis.scrollOffset = 0;\n\t\tthis.currentPos = { left: 0, top: 0 };\n\t\tthis.currentSize = { width: 0, height: 0 };\n\t\tthis.maxSizes = { width: 0, height: 0 };\n\t\tthis.actualSize = { width: 0, height: 0 };\n\t}\n\n\tasync componentDidMount() {\n\t\tawait this.onConvertImageToEditableSize();\n\n\t\t// Set cropping by default\n\t\tthis.setState({ cropMode: true });\n\t}\n\n\tasync onConvertImageToEditableSize() {\n\t\ttry {\n\t\t\tconst {\n\t\t\t\tphoto: { uri: rawUri },\n\t\t\t} = this.props;\n\n\t\t\t// expo-image-manipulator only works with file:// URIs.\n\t\t\t// Resolve ph:// (iOS Photo Library) and https:// (remote/stock images) first.\n\t\t\tlet resolvedUri = rawUri;\n\t\t\tif (rawUri?.startsWith(\"ph://\")) {\n\t\t\t\tconst assetId = rawUri.replace(\"ph://\", \"\");\n\t\t\t\tconst assetInfo = await MediaLibrary.getAssetInfoAsync(assetId, {\n\t\t\t\t\tshouldDownloadFromNetwork: true,\n\t\t\t\t});\n\t\t\t\tresolvedUri = assetInfo.localUri || rawUri;\n\t\t\t} else if (rawUri?.startsWith(\"http\")) {\n\t\t\t\tconst ext = rawUri.split(\".\").pop()?.split(\"?\")[0] || \"jpg\";\n\t\t\t\tconst file = await File.downloadFileAsync(\n\t\t\t\t\trawUri,\n\t\t\t\t\tnew File(Paths.cache, `crop_${Date.now()}.${ext}`),\n\t\t\t\t\t{ idempotent: true },\n\t\t\t\t);\n\t\t\t\tresolvedUri = file.uri;\n\t\t\t}\n\n\t\t\tconst manipulatePromise = ImageManipulator.manipulateAsync(resolvedUri, [\n\t\t\t\t{ resize: { width: 1080 } },\n\t\t\t]);\n\t\t\t// manipulateAsync can hang forever on non-file:// URIs (promise never settles).\n\t\t\t// Promise.race with a timeout ensures the catch block fires.\n\t\t\tconst timeoutPromise = new Promise((_, reject) =>\n\t\t\t\tsetTimeout(\n\t\t\t\t\t() => reject(new Error(\"Image processing timed out\")),\n\t\t\t\t\t15000,\n\t\t\t\t),\n\t\t\t);\n\t\t\tconst { uri, width, height } = await Promise.race([\n\t\t\t\tmanipulatePromise,\n\t\t\t\ttimeoutPromise,\n\t\t\t]);\n\t\t\tthis.setState({ uri });\n\t\t\tthis.actualSize.width = width;\n\t\t\tthis.actualSize.height = height;\n\t\t} catch (e) {\n\t\t\tconsole.log(\"onConvertImageToEditableSize error\", e);\n\t\t\tthis.onToggleModal();\n\t\t\tAlert.alert(\n\t\t\t\t\"Error\",\n\t\t\t\t\"Unable to prepare this image for editing. Please try a different image.\",\n\t\t\t);\n\t\t}\n\t}\n\n\tonToggleModal = () => {\n\t\tthis.props.onToggleModal();\n\t\tthis.setState({ cropMode: false });\n\t};\n\n\tonCropImage = (callback = null) => {\n\t\tthis.setState({ processing: true });\n\t\tconst { uri } = this.state;\n\t\tImage.getSize(uri, async (actualWidth, actualHeight) => {\n\t\t\tlet cropObj = this.getCropBounds(actualWidth, actualHeight);\n\t\t\tif (cropObj.height > 0 && cropObj.width > 0) {\n\t\t\t\tlet uriToCrop = uri;\n\t\t\t\tconst {\n\t\t\t\t\turi: uriCroped,\n\t\t\t\t\tbase64,\n\t\t\t\t\twidth: croppedWidth,\n\t\t\t\t\theight: croppedHeight,\n\t\t\t\t} = await this.crop(cropObj, uriToCrop);\n\n\t\t\t\tthis.actualSize.width = croppedWidth;\n\t\t\t\tthis.actualSize.height = croppedHeight;\n\n\t\t\t\tthis.setState(\n\t\t\t\t\t{\n\t\t\t\t\t\turi: uriCroped,\n\t\t\t\t\t\tbase64,\n\t\t\t\t\t\tcropMode: false,\n\t\t\t\t\t\tprocessing: false,\n\t\t\t\t\t},\n\t\t\t\t\t() => {\n\t\t\t\t\t\tif (callback) callback();\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tthis.setState({ cropMode: false, processing: false }, () => {\n\t\t\t\t\tif (callback) callback();\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t};\n\n\tonHandleScroll = (event) => {\n\t\tthis.scrollOffset = event.nativeEvent.contentOffset.y;\n\t};\n\n\tgetCropBounds = (actualWidth, actualHeight) => {\n\t\tlet imageRatio = actualHeight / actualWidth;\n\t\tconst topInset = this.props.insets?.top ?? 0;\n\t\tconst bottomInset = this.props.insets?.bottom ?? 0;\n\t\tvar originalHeight =\n\t\t\tDimensions.get(\"window\").height - topInset - bottomInset - 44;\n\t\tlet renderedImageWidth =\n\t\t\timageRatio < originalHeight / width ? width : originalHeight / imageRatio;\n\t\tlet renderedImageHeight =\n\t\t\timageRatio < originalHeight / width ? width * imageRatio : originalHeight;\n\n\t\tlet renderedImageY = (originalHeight - renderedImageHeight) / 2.0;\n\t\tlet renderedImageX = (width - renderedImageWidth) / 2.0;\n\n\t\tconst renderImageObj = {\n\t\t\tleft: renderedImageX,\n\t\t\ttop: renderedImageY,\n\t\t\twidth: renderedImageWidth,\n\t\t\theight: renderedImageHeight,\n\t\t};\n\t\tconst cropOverlayObj = {\n\t\t\tleft: this.currentPos.left,\n\t\t\ttop: this.currentPos.top,\n\t\t\twidth: this.currentSize.width,\n\t\t\theight: this.currentSize.height,\n\t\t};\n\n\t\tvar intersectAreaObj = {};\n\n\t\tlet x = Math.max(renderImageObj.left, cropOverlayObj.left);\n\t\tlet num1 = Math.min(\n\t\t\trenderImageObj.left + renderImageObj.width,\n\t\t\tcropOverlayObj.left + cropOverlayObj.width,\n\t\t);\n\t\tlet y = Math.max(renderImageObj.top, cropOverlayObj.top);\n\t\tlet num2 = Math.min(\n\t\t\trenderImageObj.top + renderImageObj.height,\n\t\t\tcropOverlayObj.top + cropOverlayObj.height,\n\t\t);\n\t\tif (num1 >= x && num2 >= y)\n\t\t\tintersectAreaObj = {\n\t\t\t\toriginX: (x - renderedImageX) * (actualWidth / renderedImageWidth),\n\t\t\t\toriginY: (y - renderedImageY) * (actualWidth / renderedImageWidth),\n\t\t\t\twidth: (num1 - x) * (actualWidth / renderedImageWidth),\n\t\t\t\theight: (num2 - y) * (actualWidth / renderedImageWidth),\n\t\t\t};\n\t\telse {\n\t\t\tintersectAreaObj = {\n\t\t\t\toriginX: x - renderedImageX,\n\t\t\t\toriginY: y - renderedImageY,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0,\n\t\t\t};\n\t\t}\n\t\treturn intersectAreaObj;\n\t};\n\n\tcrop = async (cropObj, uri) => {\n\t\tconst { saveOptions } = this.props;\n\t\tif (cropObj.height > 0 && cropObj.width > 0) {\n\t\t\tconst manipResult = await ImageManipulator.manipulateAsync(\n\t\t\t\turi,\n\t\t\t\t[\n\t\t\t\t\t{\n\t\t\t\t\t\tcrop: cropObj,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tsaveOptions,\n\t\t\t);\n\t\t\treturn manipResult;\n\t\t}\n\t\treturn {\n\t\t\turi: null,\n\t\t\tbase64: null,\n\t\t};\n\t};\n\n\tcalculateMaxSizes = (event) => {\n\t\tlet w1 = event.nativeEvent.layout.width || 100;\n\t\tlet h1 = event.nativeEvent.layout.height || 100;\n\t\tif (this.state.squareAspect) {\n\t\t\tif (w1 < h1) h1 = w1;\n\t\t\telse w1 = h1;\n\t\t}\n\t\tthis.maxSizes.width = w1;\n\t\tthis.maxSizes.height = h1;\n\t};\n\n\t// eslint-disable-next-line camelcase\n\tasync UNSAFE_componentWillReceiveProps() {\n\t\tawait this.onConvertImageToEditableSize();\n\t}\n\n\trender() {\n\t\tconst { isVisible, onPictureChoosed } = this.props;\n\t\tconst { uri, base64, cropMode, processing } = this.state;\n\n\t\tlet imageRatio = this.actualSize.height / this.actualSize.width;\n\t\tconst topInset = this.props.insets?.top ?? 0;\n\t\tconst bottomInset = this.props.insets?.bottom ?? 0;\n\t\tvar originalHeight =\n\t\t\tDimensions.get(\"window\").height - topInset - bottomInset - 44;\n\t\tconst topMargin = topInset + (Platform.OS === \"ios\" ? 50 : 20);\n\n\t\tlet cropRatio = originalHeight / width;\n\n\t\tlet cropWidth =\n\t\t\timageRatio < cropRatio ? width : originalHeight / imageRatio;\n\t\tlet cropHeight =\n\t\t\timageRatio < cropRatio ? width * imageRatio : originalHeight;\n\n\t\tlet cropInitialTop = (originalHeight - cropHeight) / 2.0;\n\t\tlet cropInitialLeft = (width - cropWidth) / 2.0;\n\n\t\tif (this.currentSize.width == 0 && cropMode) {\n\t\t\tthis.currentSize.width = cropWidth;\n\t\t\tthis.currentSize.height = cropHeight;\n\n\t\t\tthis.currentPos.top = cropInitialTop;\n\t\t\tthis.currentPos.left = cropInitialLeft;\n\t\t}\n\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tanimationType=\"slide\"\n\t\t\t\ttransparent={true}\n\t\t\t\tvisible={isVisible}\n\t\t\t\thardwareAccelerated\n\t\t\t\tonRequestClose={() => {\n\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{uri !== undefined ? (\n\t\t\t\t\t<View style={styles.container}>\n\t\t\t\t\t\t<SafeAreaView style={[{ width }, styles.headerContainer]}>\n\t\t\t\t\t\t\t{!cropMode ? (\n\t\t\t\t\t\t\t\t<View\n\t\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\t\tstyles.headerButtonContainer,\n\t\t\t\t\t\t\t\t\t\t{ justifyContent: \"flex-end\" },\n\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\t\t\t\tonPictureChoosed({ uri, base64 });\n\t\t\t\t\t\t\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>{\"Done\"}</Text>\n\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<View style={styles.headerButtonContainer}>\n\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\tonPress={this.onToggleModal}\n\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>{\"Cancel\"}</Text>\n\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\t\t\t\tthis.onCropImage(() => {\n\t\t\t\t\t\t\t\t\t\t\t\tonPictureChoosed({\n\t\t\t\t\t\t\t\t\t\t\t\t\turi: this.state.uri,\n\t\t\t\t\t\t\t\t\t\t\t\t\tbase64: this.state.base64,\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\tthis.onToggleModal();\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tstyle={styles.headerButton}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Text style={styles.headerButtonText}>\n\t\t\t\t\t\t\t\t\t\t\t{processing ? \"Processing\" : \"Done\"}\n\t\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</SafeAreaView>\n\t\t\t\t\t\t<View\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.contentContainer,\n\t\t\t\t\t\t\t\t{ width: Dimensions.get(\"window\").width },\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ScrollView\n\t\t\t\t\t\t\t\tstyle={{ position: \"relative\", flex: 1 }}\n\t\t\t\t\t\t\t\tcontentContainerStyle={{ backgroundColor: \"black\" }}\n\t\t\t\t\t\t\t\tmaximumZoomScale={5}\n\t\t\t\t\t\t\t\tminimumZoomScale={0.5}\n\t\t\t\t\t\t\t\tonScroll={this.onHandleScroll}\n\t\t\t\t\t\t\t\tbounces={false}\n\t\t\t\t\t\t\t\tshowsHorizontalScrollIndicator={false}\n\t\t\t\t\t\t\t\tshowsVerticalScrollIndicator={false}\n\t\t\t\t\t\t\t\tref={(c) => (this.scrollView = c)}\n\t\t\t\t\t\t\t\tscrollEventThrottle={16}\n\t\t\t\t\t\t\t\tscrollEnabled={false}\n\t\t\t\t\t\t\t\tpinchGestureEnabled={false}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<AutoHeightImage\n\t\t\t\t\t\t\t\t\tstyle={{ backgroundColor: \"black\" }}\n\t\t\t\t\t\t\t\t\tsource={{ uri }}\n\t\t\t\t\t\t\t\t\tresizeMode={imageRatio >= 1 ? \"contain\" : \"contain\"}\n\t\t\t\t\t\t\t\t\twidth={width}\n\t\t\t\t\t\t\t\t\theight={originalHeight}\n\t\t\t\t\t\t\t\t\tonLayout={this.calculateMaxSizes}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t{!!cropMode && (\n\t\t\t\t\t\t\t\t\t<ImageCropOverlay\n\t\t\t\t\t\t\t\t\t\tonLayoutChanged={(top, left, width, height) => {\n\t\t\t\t\t\t\t\t\t\t\tthis.currentSize.width = width;\n\t\t\t\t\t\t\t\t\t\t\tthis.currentSize.height = height;\n\t\t\t\t\t\t\t\t\t\t\tthis.currentPos.top = top;\n\t\t\t\t\t\t\t\t\t\t\tthis.currentPos.left = left;\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\tinitialWidth={cropWidth}\n\t\t\t\t\t\t\t\t\t\tinitialHeight={cropHeight}\n\t\t\t\t\t\t\t\t\t\tinitialTop={cropInitialTop}\n\t\t\t\t\t\t\t\t\t\tinitialLeft={cropInitialLeft}\n\t\t\t\t\t\t\t\t\t\tminHeight={100}\n\t\t\t\t\t\t\t\t\t\tminWidth={100}\n\t\t\t\t\t\t\t\t\t\ttopMargin={topMargin}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</ScrollView>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t) : (\n\t\t\t\t\t<View style={styles.container}>\n\t\t\t\t\t\t<Text style={styles.prepareMessageText}>Preparing...</Text>\n\t\t\t\t\t</View>\n\t\t\t\t)}\n\t\t\t</Modal>\n\t\t);\n\t\t// }\n\t}\n}\n\nconst styles = StyleSheet.create({\n\theaderContainer: {\n\t\tflexDirection: \"row\",\n\t\tbackgroundColor: \"black\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderButtonContainer: {\n\t\tflex: 1,\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderButton: {\n\t\tmarginHorizontal: 10,\n\t\twidth: 60,\n\t\theight: 40,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\theaderButtonText: {\n\t\tfontWeight: \"500\",\n\t\tcolor: \"white\",\n\t\tfontSize: 18,\n\t},\n\tcontentContainer: {\n\t\tflex: 1,\n\t\tbackgroundColor: \"black\",\n\t},\n\tcontainer: {\n\t\tflex: 1,\n\t\tbackgroundColor: \"#000d\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tprepareMessageText: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 20,\n\t\tcolor: \"#fff\",\n\t},\n});\n\nexport default withSafeAreaInsets(ExpoImageManipulator);\n\nExpoImageManipulator.defaultProps = {\n\tonPictureChoosed: ({ uri, base64 }) => console.log(\"URI:\", uri, base64),\n\tdragVelocity: 100,\n\tresizeVelocity: 50,\n\tsaveOptions: {\n\t\tcompress: 1,\n\t\tformat: ImageManipulator.SaveFormat.PNG,\n\t\tbase64: false,\n\t},\n};\n\nExpoImageManipulator.propTypes = {\n\tisVisible: PropTypes.bool.isRequired,\n\tonPictureChoosed: PropTypes.func,\n\tsaveOptions: PropTypes.object,\n\tphoto: PropTypes.object.isRequired,\n\tonToggleModal: PropTypes.func.isRequired,\n\tdragVelocity: PropTypes.number,\n\tresizeVelocity: PropTypes.number,\n};\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,UAAU,EACVC,KAAK,EACLC,UAAU,EACVC,KAAK,EACLC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,QAAQ,EACRC,MAAM,EACNC,KAAK,QACC,cAAc;AACrB,OAAO,KAAKC,gBAAgB,MAAM,wBAAwB;AAC1D,OAAO,KAAKC,YAAY,MAAM,oBAAoB;AAClD,SAASC,IAAI,EAAEC,KAAK,QAAQ,kBAAkB;AAC9C,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,eAAe,MAAM,gCAAgC;AAC5D,SACCC,kBAAkB,EAClBC,YAAY,QACN,gCAAgC;AACvC,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,MAAM;EAAEC;AAAM,CAAC,GAAGnB,UAAU,CAACoB,GAAG,CAAC,QAAQ,CAAC;AAE1CZ,MAAM,CAACa,UAAU,CAAC,CACjB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,CACpB,CAAC;AACFb,MAAM,CAACa,UAAU,CAAC,CACjB,2CAA2C,EAC3C,kDAAkD,EAClD,gCAAgC,CAChC,CAAC;AAEF,MAAMC,oBAAoB,SAASxB,SAAS,CAAC;EAC5CyB,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,wBA2EE,MAAM;MACrB,IAAI,CAACD,KAAK,CAACE,aAAa,CAAC,CAAC;MAC1B,IAAI,CAACC,QAAQ,CAAC;QAAEC,QAAQ,EAAE;MAAM,CAAC,CAAC;IACnC,CAAC;IAAAH,eAAA,sBAEa,CAACI,QAAQ,GAAG,IAAI,KAAK;MAClC,IAAI,CAACF,QAAQ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