@monkvision/inspection-capture-web 4.0.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 (220) hide show
  1. package/LICENSE +32 -0
  2. package/README.md +97 -0
  3. package/lib/PhotoCapture/PhotoCapture.d.ts +44 -0
  4. package/lib/PhotoCapture/PhotoCapture.js +179 -0
  5. package/lib/PhotoCapture/PhotoCapture.js.map +1 -0
  6. package/lib/PhotoCapture/PhotoCapture.styles.d.ts +2 -0
  7. package/lib/PhotoCapture/PhotoCapture.styles.js +34 -0
  8. package/lib/PhotoCapture/PhotoCapture.styles.js.map +1 -0
  9. package/lib/PhotoCapture/PhotoCaptureHOC.d.ts +40 -0
  10. package/lib/PhotoCapture/PhotoCaptureHOC.js +60 -0
  11. package/lib/PhotoCapture/PhotoCaptureHOC.js.map +1 -0
  12. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.d.ts +88 -0
  13. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.js +51 -0
  14. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.js.map +1 -0
  15. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.styles.d.ts +2 -0
  16. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.styles.js +25 -0
  17. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUD.styles.js.map +1 -0
  18. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.d.ts +66 -0
  19. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.js +44 -0
  20. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.js.map +1 -0
  21. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.d.ts +5 -0
  22. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.js +72 -0
  23. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles.js.map +1 -0
  24. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/hooks.d.ts +25 -0
  25. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/hooks.js +45 -0
  26. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/hooks.js.map +1 -0
  27. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.d.ts +1 -0
  28. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.js +6 -0
  29. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDButtons/index.js.map +1 -0
  30. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.d.ts +13 -0
  31. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.js +29 -0
  32. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/PhotoCaptureHUDCancelButton.js.map +1 -0
  33. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.d.ts +1 -0
  34. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.js +6 -0
  35. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCancelButton/index.js.map +1 -0
  36. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.d.ts +5 -0
  37. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.js +28 -0
  38. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.js.map +1 -0
  39. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.d.ts +2 -0
  40. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.js +17 -0
  41. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/PhotoCaptureHUDCounter.styles.js.map +1 -0
  42. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/hooks.d.ts +24 -0
  43. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/hooks.js +17 -0
  44. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/hooks.js.map +1 -0
  45. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.d.ts +2 -0
  46. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.js +6 -0
  47. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDCounter/index.js.map +1 -0
  48. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.d.ts +63 -0
  49. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.js +25 -0
  50. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.js.map +1 -0
  51. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/index.d.ts +1 -0
  52. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/index.js +6 -0
  53. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/index.js.map +1 -0
  54. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.d.ts +14 -0
  55. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.js +39 -0
  56. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.js.map +1 -0
  57. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.d.ts +2 -0
  58. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.js +46 -0
  59. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.js.map +1 -0
  60. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.d.ts +6 -0
  61. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.js +25 -0
  62. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.js.map +1 -0
  63. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.d.ts +1 -0
  64. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.js +6 -0
  65. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.js.map +1 -0
  66. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.d.ts +19 -0
  67. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.js +41 -0
  68. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.js.map +1 -0
  69. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.d.ts +2 -0
  70. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.js +78 -0
  71. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.js.map +1 -0
  72. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.d.ts +7 -0
  73. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.js +26 -0
  74. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.js.map +1 -0
  75. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.d.ts +1 -0
  76. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.js +6 -0
  77. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.js.map +1 -0
  78. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.d.ts +19 -0
  79. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.js +29 -0
  80. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.js.map +1 -0
  81. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/index.d.ts +1 -0
  82. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/index.js +6 -0
  83. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/index.js.map +1 -0
  84. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.d.ts +6 -0
  85. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.js +35 -0
  86. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.js.map +1 -0
  87. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.styles.d.ts +2 -0
  88. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.styles.js +40 -0
  89. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.styles.js.map +1 -0
  90. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.d.ts +14 -0
  91. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.js +37 -0
  92. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.js.map +1 -0
  93. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.styles.d.ts +2 -0
  94. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.styles.js +28 -0
  95. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/SightGuideline.styles.js.map +1 -0
  96. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/index.d.ts +1 -0
  97. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/index.js +18 -0
  98. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightGuideline/index.js.map +1 -0
  99. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.d.ts +36 -0
  100. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.js +63 -0
  101. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.js.map +1 -0
  102. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.styles.d.ts +2 -0
  103. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.styles.js +30 -0
  104. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSlider.styles.js.map +1 -0
  105. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSliderButton.d.ts +26 -0
  106. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSliderButton.js +67 -0
  107. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/SightSliderButton.js.map +1 -0
  108. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/hooks.d.ts +5 -0
  109. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/hooks.js +24 -0
  110. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/hooks.js.map +1 -0
  111. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/index.d.ts +2 -0
  112. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/index.js +8 -0
  113. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/SightSlider/index.js.map +1 -0
  114. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.d.ts +867 -0
  115. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.js +38 -0
  116. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/hooks.js.map +1 -0
  117. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/index.d.ts +5 -0
  118. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/index.js +23 -0
  119. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/index.js.map +1 -0
  120. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.d.ts +6 -0
  121. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.js +37 -0
  122. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.js.map +1 -0
  123. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.d.ts +2 -0
  124. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.js +40 -0
  125. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/PhotoCaptureHUDOverlay.styles.js.map +1 -0
  126. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/hooks.d.ts +28 -0
  127. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/hooks.js +58 -0
  128. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/hooks.js.map +1 -0
  129. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.d.ts +2 -0
  130. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.js +6 -0
  131. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDOverlay/index.js.map +1 -0
  132. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/ArrowIcon.d.ts +5 -0
  133. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/ArrowIcon.js +20 -0
  134. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/ArrowIcon.js.map +1 -0
  135. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/DisplayText.d.ts +5 -0
  136. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/DisplayText.js +25 -0
  137. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/DisplayText.js.map +1 -0
  138. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.d.ts +27 -0
  139. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.js +37 -0
  140. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.js.map +1 -0
  141. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.styles.d.ts +2 -0
  142. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.styles.js +68 -0
  143. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/PhotoCaptureHUDTutorial.styles.js.map +1 -0
  144. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/index.d.ts +3 -0
  145. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/index.js +10 -0
  146. package/lib/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDTutorial/index.js.map +1 -0
  147. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.d.ts +2 -0
  148. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.js +19 -0
  149. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/index.js.map +1 -0
  150. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.d.ts +4 -0
  151. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.js +14 -0
  152. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDButtonBackground.js.map +1 -0
  153. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDStyle.d.ts +814 -0
  154. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDStyle.js +25 -0
  155. package/lib/PhotoCapture/PhotoCaptureHUD/hooks/usePhotoCaptureHUDStyle.js.map +1 -0
  156. package/lib/PhotoCapture/PhotoCaptureHUD/index.d.ts +11 -0
  157. package/lib/PhotoCapture/PhotoCaptureHUD/index.js +30 -0
  158. package/lib/PhotoCapture/PhotoCaptureHUD/index.js.map +1 -0
  159. package/lib/PhotoCapture/errors.d.ts +3 -0
  160. package/lib/PhotoCapture/errors.js +8 -0
  161. package/lib/PhotoCapture/errors.js.map +1 -0
  162. package/lib/PhotoCapture/hooks/index.d.ts +11 -0
  163. package/lib/PhotoCapture/hooks/index.js +28 -0
  164. package/lib/PhotoCapture/hooks/index.js.map +1 -0
  165. package/lib/PhotoCapture/hooks/useAdaptiveCameraConfig.d.ts +29 -0
  166. package/lib/PhotoCapture/hooks/useAdaptiveCameraConfig.js +80 -0
  167. package/lib/PhotoCapture/hooks/useAdaptiveCameraConfig.js.map +1 -0
  168. package/lib/PhotoCapture/hooks/useAddDamageMode.d.ts +42 -0
  169. package/lib/PhotoCapture/hooks/useAddDamageMode.js +58 -0
  170. package/lib/PhotoCapture/hooks/useAddDamageMode.js.map +1 -0
  171. package/lib/PhotoCapture/hooks/useBadConnectionWarning.d.ts +27 -0
  172. package/lib/PhotoCapture/hooks/useBadConnectionWarning.js +38 -0
  173. package/lib/PhotoCapture/hooks/useBadConnectionWarning.js.map +1 -0
  174. package/lib/PhotoCapture/hooks/useComplianceAnalytics.d.ts +20 -0
  175. package/lib/PhotoCapture/hooks/useComplianceAnalytics.js +54 -0
  176. package/lib/PhotoCapture/hooks/useComplianceAnalytics.js.map +1 -0
  177. package/lib/PhotoCapture/hooks/usePhotoCaptureImages.d.ts +5 -0
  178. package/lib/PhotoCapture/hooks/usePhotoCaptureImages.js +14 -0
  179. package/lib/PhotoCapture/hooks/usePhotoCaptureImages.js.map +1 -0
  180. package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.d.ts +80 -0
  181. package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.js +201 -0
  182. package/lib/PhotoCapture/hooks/usePhotoCaptureSightState.js.map +1 -0
  183. package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.d.ts +36 -0
  184. package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.js +67 -0
  185. package/lib/PhotoCapture/hooks/usePhotoCaptureTutorial.js.map +1 -0
  186. package/lib/PhotoCapture/hooks/usePictureTaken.d.ts +35 -0
  187. package/lib/PhotoCapture/hooks/usePictureTaken.js +45 -0
  188. package/lib/PhotoCapture/hooks/usePictureTaken.js.map +1 -0
  189. package/lib/PhotoCapture/hooks/useStartTasksOnComplete.d.ts +33 -0
  190. package/lib/PhotoCapture/hooks/useStartTasksOnComplete.js +100 -0
  191. package/lib/PhotoCapture/hooks/useStartTasksOnComplete.js.map +1 -0
  192. package/lib/PhotoCapture/hooks/useTracking.d.ts +17 -0
  193. package/lib/PhotoCapture/hooks/useTracking.js +29 -0
  194. package/lib/PhotoCapture/hooks/useTracking.js.map +1 -0
  195. package/lib/PhotoCapture/hooks/useUploadQueue.d.ts +95 -0
  196. package/lib/PhotoCapture/hooks/useUploadQueue.js +117 -0
  197. package/lib/PhotoCapture/hooks/useUploadQueue.js.map +1 -0
  198. package/lib/PhotoCapture/index.d.ts +3 -0
  199. package/lib/PhotoCapture/index.js +21 -0
  200. package/lib/PhotoCapture/index.js.map +1 -0
  201. package/lib/assets/arrows.asset.d.ts +2 -0
  202. package/lib/assets/arrows.asset.js +6 -0
  203. package/lib/assets/arrows.asset.js.map +1 -0
  204. package/lib/assets/crosshair.asset.d.ts +1 -0
  205. package/lib/assets/crosshair.asset.js +5 -0
  206. package/lib/assets/crosshair.asset.js.map +1 -0
  207. package/lib/assets/index.d.ts +2 -0
  208. package/lib/assets/index.js +19 -0
  209. package/lib/assets/index.js.map +1 -0
  210. package/lib/i18n.d.ts +6 -0
  211. package/lib/i18n.js +25 -0
  212. package/lib/i18n.js.map +1 -0
  213. package/lib/index.d.ts +2 -0
  214. package/lib/index.js +19 -0
  215. package/lib/index.js.map +1 -0
  216. package/lib/translations/de.json +45 -0
  217. package/lib/translations/en.json +45 -0
  218. package/lib/translations/fr.json +45 -0
  219. package/lib/translations/nl.json +45 -0
  220. package/package.json +94 -0
@@ -0,0 +1,63 @@
1
+ import { CaptureAppConfig, Image, PixelDimensions, Sight } from '@monkvision/types';
2
+ import { PhotoCaptureMode, TutorialSteps } from '../../hooks';
3
+ /**
4
+ * Props of the PhotoCaptureHUDElements component.
5
+ */
6
+ export interface PhotoCaptureHUDElementsProps extends Pick<CaptureAppConfig, 'enableSightGuidelines' | 'sightGuidelines' | 'enableAddDamage'> {
7
+ /**
8
+ * The currently selected sight in the PhotoCapture component : the sight that the user needs to capture.
9
+ */
10
+ selectedSight: Sight;
11
+ /**
12
+ * The list of sights provided to the PhotoCapture component.
13
+ */
14
+ sights: Sight[];
15
+ /**
16
+ * Array containing the list of sights that the user has already captured.
17
+ */
18
+ sightsTaken: Sight[];
19
+ /**
20
+ * The current mode of the component.
21
+ */
22
+ mode: PhotoCaptureMode;
23
+ /**
24
+ * The current tutorial step in PhotoCapture component.
25
+ */
26
+ tutorialStep: TutorialSteps | null;
27
+ /**
28
+ * Callback called when the user presses the Add Damage button.
29
+ */
30
+ onAddDamage: () => void;
31
+ /**
32
+ * Callback called when the user cancels the Add Damage mode.
33
+ */
34
+ onCancelAddDamage: () => void;
35
+ /**
36
+ * Callback called when the user manually select a new sight.
37
+ */
38
+ onSelectSight: (sight: Sight) => void;
39
+ /**
40
+ * Callback called when the user manually selects a sight to retake.
41
+ */
42
+ onRetakeSight: (sight: string) => void;
43
+ /**
44
+ * The effective pixel dimensions of the Camera video stream on the screen.
45
+ */
46
+ previewDimensions: PixelDimensions | null;
47
+ /**
48
+ * Boolean indicating if the global loading state of the PhotoCapture component is loading or not.
49
+ */
50
+ isLoading?: boolean;
51
+ /**
52
+ * The error that occurred in the PhotoCapture component. Set this value to `null` if there is no error.
53
+ */
54
+ error?: unknown | null;
55
+ /**
56
+ * The current images taken by the user (ignoring retaken pictures etc.).
57
+ */
58
+ images: Image[];
59
+ }
60
+ /**
61
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process.
62
+ */
63
+ export declare function PhotoCaptureHUDElements(params: PhotoCaptureHUDElementsProps): JSX.Element | null;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoCaptureHUDElements = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var hooks_1 = require("../../hooks");
6
+ var PhotoCaptureHUDElementsSight_1 = require("../PhotoCaptureHUDElementsSight");
7
+ var PhotoCaptureHUDElementsAddDamage1stShot_1 = require("../PhotoCaptureHUDElementsAddDamage1stShot");
8
+ var PhotoCaptureHUDElementsAddDamage2ndShot_1 = require("../PhotoCaptureHUDElementsAddDamage2ndShot");
9
+ /**
10
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process.
11
+ */
12
+ function PhotoCaptureHUDElements(params) {
13
+ if (params.isLoading || !!params.error) {
14
+ return null;
15
+ }
16
+ if (params.mode === hooks_1.PhotoCaptureMode.SIGHT) {
17
+ return ((0, jsx_runtime_1.jsx)(PhotoCaptureHUDElementsSight_1.PhotoCaptureHUDElementsSight, { sights: params.sights, selectedSight: params.selectedSight, onSelectedSight: params.onSelectSight, onRetakeSight: params.onRetakeSight, sightsTaken: params.sightsTaken, onAddDamage: params.onAddDamage, previewDimensions: params.previewDimensions, images: params.images, enableAddDamage: params.enableAddDamage, sightGuidelines: params.sightGuidelines, enableSightGuidelines: params.enableSightGuidelines, tutorialStep: params.tutorialStep }));
18
+ }
19
+ if (params.mode === hooks_1.PhotoCaptureMode.ADD_DAMAGE_1ST_SHOT) {
20
+ return (0, jsx_runtime_1.jsx)(PhotoCaptureHUDElementsAddDamage1stShot_1.PhotoCaptureHUDElementsAddDamage1stShot, { onCancel: params.onCancelAddDamage });
21
+ }
22
+ return ((0, jsx_runtime_1.jsx)(PhotoCaptureHUDElementsAddDamage2ndShot_1.PhotoCaptureHUDElementsAddDamage2ndShot, { onCancel: params.onCancelAddDamage, streamDimensions: params.previewDimensions }));
23
+ }
24
+ exports.PhotoCaptureHUDElements = PhotoCaptureHUDElements;
25
+ //# sourceMappingURL=PhotoCaptureHUDElements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElements.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/PhotoCaptureHUDElements.tsx"],"names":[],"mappings":";;;;AACA,qCAA8D;AAC9D,gFAA+E;AAC/E,sGAAqG;AACrG,sGAAqG;AA6DrG;;GAEG;AACH,SAAgB,uBAAuB,CAAC,MAAoC;IAC1E,IAAI,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE;QACtC,OAAO,IAAI,CAAC;KACb;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,wBAAgB,CAAC,KAAK,EAAE;QAC1C,OAAO,CACL,uBAAC,2DAA4B,IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,eAAe,EAAE,MAAM,CAAC,aAAa,EACrC,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,WAAW,EAAE,MAAM,CAAC,WAAW,EAC/B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,EAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,eAAe,EAAE,MAAM,CAAC,eAAe,EACvC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EACnD,YAAY,EAAE,MAAM,CAAC,YAAY,GACjC,CACH,CAAC;KACH;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,wBAAgB,CAAC,mBAAmB,EAAE;QACxD,OAAO,uBAAC,iFAAuC,IAAC,QAAQ,EAAE,MAAM,CAAC,iBAAiB,GAAI,CAAC;KACxF;IACD,OAAO,CACL,uBAAC,iFAAuC,IACtC,QAAQ,EAAE,MAAM,CAAC,iBAAiB,EAClC,gBAAgB,EAAE,MAAM,CAAC,iBAAiB,GAC1C,CACH,CAAC;AACJ,CAAC;AA/BD,0DA+BC"}
@@ -0,0 +1 @@
1
+ export { PhotoCaptureHUDElements, type PhotoCaptureHUDElementsProps, } from './PhotoCaptureHUDElements';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoCaptureHUDElements = void 0;
4
+ var PhotoCaptureHUDElements_1 = require("./PhotoCaptureHUDElements");
5
+ Object.defineProperty(exports, "PhotoCaptureHUDElements", { enumerable: true, get: function () { return PhotoCaptureHUDElements_1.PhotoCaptureHUDElements; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElements/index.ts"],"names":[],"mappings":";;;AAAA,qEAGmC;AAFjC,kIAAA,uBAAuB,OAAA"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Props of the PhotoCaptureHUDElementsAddDamage1stShot component.
3
+ */
4
+ export interface PhotoCaptureHUDElementsAddDamage1stShotProps {
5
+ /**
6
+ * Callback called when the user cancels the Add Damage mode.
7
+ */
8
+ onCancel?: () => void;
9
+ }
10
+ /**
11
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
12
+ * mode is ADD_DAMAGE_1ST_SHOT.
13
+ */
14
+ export declare function PhotoCaptureHUDElementsAddDamage1stShot({ onCancel, }: PhotoCaptureHUDElementsAddDamage1stShotProps): JSX.Element;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.PhotoCaptureHUDElementsAddDamage1stShot = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var react_1 = require("react");
17
+ var react_i18next_1 = require("react-i18next");
18
+ var common_ui_web_1 = require("@monkvision/common-ui-web");
19
+ var hooks_1 = require("../hooks");
20
+ var PhotoCaptureHUDElementsAddDamage1stShot_styles_1 = require("./PhotoCaptureHUDElementsAddDamage1stShot.styles");
21
+ var PhotoCaptureHUDCounter_1 = require("../PhotoCaptureHUDCounter");
22
+ var hooks_2 = require("../../hooks");
23
+ var PhotoCaptureHUDCancelButton_1 = require("../PhotoCaptureHUDCancelButton");
24
+ var assets_1 = require("../../../assets");
25
+ var hooks_3 = require("./hooks");
26
+ /**
27
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
28
+ * mode is ADD_DAMAGE_1ST_SHOT.
29
+ */
30
+ function PhotoCaptureHUDElementsAddDamage1stShot(_a) {
31
+ var onCancel = _a.onCancel;
32
+ var _b = (0, react_1.useState)(true), showInfoPopup = _b[0], setShowInfoPopup = _b[1];
33
+ var t = (0, react_i18next_1.useTranslation)().t;
34
+ var primaryColor = (0, hooks_1.usePhotoCaptureHUDButtonBackground)();
35
+ var style = (0, hooks_3.usePhotoCaptureHUDElementsAddDamage1stShotStyles)();
36
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['container'] }, { children: [(0, jsx_runtime_1.jsx)(common_ui_web_1.DynamicSVG, { style: PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['svg'], svg: assets_1.crosshairSvg }), (0, jsx_runtime_1.jsxs)("div", __assign({ style: style.top }, { children: [(0, jsx_runtime_1.jsx)(PhotoCaptureHUDCounter_1.PhotoCaptureHUDCounter, { mode: hooks_2.PhotoCaptureMode.ADD_DAMAGE_1ST_SHOT }), (0, jsx_runtime_1.jsx)(PhotoCaptureHUDCancelButton_1.PhotoCaptureHUDCancelButton, { onCancel: onCancel })] })), showInfoPopup && ((0, jsx_runtime_1.jsx)(common_ui_web_1.Button, __assign({ icon: 'close', primaryColor: primaryColor, style: style.infoBtn, onClick: function () { return setShowInfoPopup(false); } }, { children: t('photo.hud.addDamage.infoBtn') })))] })));
37
+ }
38
+ exports.PhotoCaptureHUDElementsAddDamage1stShot = PhotoCaptureHUDElementsAddDamage1stShot;
39
+ //# sourceMappingURL=PhotoCaptureHUDElementsAddDamage1stShot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElementsAddDamage1stShot.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAAiC;AACjC,+CAA+C;AAC/C,2DAA+D;AAC/D,kCAA8D;AAC9D,mHAA0E;AAC1E,oEAAmE;AACnE,qCAA+C;AAC/C,8EAA6E;AAC7E,0CAA+C;AAC/C,iCAA2E;AAY3E;;;GAGG;AACH,SAAgB,uCAAuC,CAAC,EAET;QAD7C,QAAQ,cAAA;IAEF,IAAA,KAAoC,IAAA,gBAAQ,EAAC,IAAI,CAAC,EAAjD,aAAa,QAAA,EAAE,gBAAgB,QAAkB,CAAC;IACjD,IAAA,CAAC,GAAK,IAAA,8BAAc,GAAE,EAArB,CAAsB;IAC/B,IAAM,YAAY,GAAG,IAAA,0CAAkC,GAAE,CAAC;IAC1D,IAAM,KAAK,GAAG,IAAA,wDAAgD,GAAE,CAAC;IAEjE,OAAO,CACL,0CAAK,KAAK,EAAE,uDAAM,CAAC,WAAW,CAAC,iBAC7B,uBAAC,0BAAU,IAAC,KAAK,EAAE,uDAAM,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,qBAAY,GAAI,EACvD,0CAAK,KAAK,EAAE,KAAK,CAAC,GAAG,iBACnB,uBAAC,+CAAsB,IAAC,IAAI,EAAE,wBAAgB,CAAC,mBAAmB,GAAI,EACtE,uBAAC,yDAA2B,IAAC,QAAQ,EAAE,QAAQ,GAAI,KAC/C,EACL,aAAa,IAAI,CAChB,uBAAC,sBAAM,aACL,IAAI,EAAC,OAAO,EACZ,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,KAAK,CAAC,OAAO,EACpB,OAAO,EAAE,cAAM,OAAA,gBAAgB,CAAC,KAAK,CAAC,EAAvB,CAAuB,gBAErC,CAAC,CAAC,6BAA6B,CAAC,IAC1B,CACV,KACG,CACP,CAAC;AACJ,CAAC;AA3BD,0FA2BC"}
@@ -0,0 +1,2 @@
1
+ import { Styles } from '@monkvision/types';
2
+ export declare const styles: Styles;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styles = void 0;
4
+ var PhotoCaptureHUDButtons_styles_1 = require("../PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles");
5
+ exports.styles = {
6
+ container: {
7
+ position: 'absolute',
8
+ display: 'flex',
9
+ justifyContent: 'center',
10
+ alignItems: 'center',
11
+ flexDirection: 'column',
12
+ top: '0',
13
+ right: '0',
14
+ left: '0',
15
+ bottom: '0',
16
+ },
17
+ top: {
18
+ position: 'absolute',
19
+ display: 'flex',
20
+ alignSelf: 'stretch',
21
+ flexDirection: 'row',
22
+ justifyContent: 'space-between',
23
+ margin: '10px',
24
+ zIndex: '9',
25
+ top: '0',
26
+ right: '0',
27
+ left: '0',
28
+ },
29
+ topLandscape: {
30
+ __media: { landscape: true },
31
+ right: "".concat(PhotoCaptureHUDButtons_styles_1.PHOTO_CAPTURE_HUD_BUTTONS_BAR_WIDTH * 2, "px"),
32
+ },
33
+ infoBtn: {
34
+ position: 'absolute',
35
+ margin: '20px',
36
+ bottom: '0',
37
+ },
38
+ infoBtnPortrait: {
39
+ __media: { portrait: true },
40
+ bottom: "".concat(PhotoCaptureHUDButtons_styles_1.PHOTO_CAPTURE_HUD_BUTTONS_BAR_WIDTH * 1.5, "px"),
41
+ },
42
+ svg: {
43
+ width: '15%',
44
+ },
45
+ };
46
+ //# sourceMappingURL=PhotoCaptureHUDElementsAddDamage1stShot.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElementsAddDamage1stShot.styles.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/PhotoCaptureHUDElementsAddDamage1stShot.styles.ts"],"names":[],"mappings":";;;AACA,yGAA8G;AAEjG,QAAA,MAAM,GAAW;IAC5B,SAAS,EAAE;QACT,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,QAAQ;QACvB,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,GAAG;KACZ;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,GAAG;KACV;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;QAC5B,KAAK,EAAE,UAAG,mEAAmC,GAAG,CAAC,OAAI;KACtD;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,GAAG;KACZ;IACD,eAAe,EAAE;QACf,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3B,MAAM,EAAE,UAAG,mEAAmC,GAAG,GAAG,OAAI;KACzD;IACD,GAAG,EAAE;QACH,KAAK,EAAE,KAAK;KACb;CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CSSProperties } from 'react';
2
+ export interface PhotoCaptureHUDElementsAddDamage1stShotStyle {
3
+ top: CSSProperties;
4
+ infoBtn: CSSProperties;
5
+ }
6
+ export declare function usePhotoCaptureHUDElementsAddDamage1stShotStyles(): PhotoCaptureHUDElementsAddDamage1stShotStyle;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.usePhotoCaptureHUDElementsAddDamage1stShotStyles = void 0;
15
+ var common_1 = require("@monkvision/common");
16
+ var PhotoCaptureHUDElementsAddDamage1stShot_styles_1 = require("./PhotoCaptureHUDElementsAddDamage1stShot.styles");
17
+ function usePhotoCaptureHUDElementsAddDamage1stShotStyles() {
18
+ var responsive = (0, common_1.useResponsiveStyle)().responsive;
19
+ return {
20
+ top: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['top']), responsive(PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['topLandscape'])),
21
+ infoBtn: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['infoBtn']), responsive(PhotoCaptureHUDElementsAddDamage1stShot_styles_1.styles['infoBtnPortrait'])),
22
+ };
23
+ }
24
+ exports.usePhotoCaptureHUDElementsAddDamage1stShotStyles = usePhotoCaptureHUDElementsAddDamage1stShotStyles;
25
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,6CAAwD;AACxD,mHAA0E;AAO1E,SAAgB,gDAAgD;IACtD,IAAA,UAAU,GAAK,IAAA,2BAAkB,GAAE,WAAzB,CAA0B;IAE5C,OAAO;QACL,GAAG,wBACE,uDAAM,CAAC,KAAK,CAAC,GACb,UAAU,CAAC,uDAAM,CAAC,cAAc,CAAC,CAAC,CACtC;QACD,OAAO,wBACF,uDAAM,CAAC,SAAS,CAAC,GACjB,UAAU,CAAC,uDAAM,CAAC,iBAAiB,CAAC,CAAC,CACzC;KACF,CAAC;AACJ,CAAC;AAbD,4GAaC"}
@@ -0,0 +1 @@
1
+ export { PhotoCaptureHUDElementsAddDamage1stShot, type PhotoCaptureHUDElementsAddDamage1stShotProps, } from './PhotoCaptureHUDElementsAddDamage1stShot';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoCaptureHUDElementsAddDamage1stShot = void 0;
4
+ var PhotoCaptureHUDElementsAddDamage1stShot_1 = require("./PhotoCaptureHUDElementsAddDamage1stShot");
5
+ Object.defineProperty(exports, "PhotoCaptureHUDElementsAddDamage1stShot", { enumerable: true, get: function () { return PhotoCaptureHUDElementsAddDamage1stShot_1.PhotoCaptureHUDElementsAddDamage1stShot; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage1stShot/index.ts"],"names":[],"mappings":";;;AAAA,qGAGmD;AAFjD,kKAAA,uCAAuC,OAAA"}
@@ -0,0 +1,19 @@
1
+ import { PixelDimensions } from '@monkvision/types';
2
+ /**
3
+ * Props of the PhotoCaptureHUDElementsAddDamage2ndShot component.
4
+ */
5
+ export interface PhotoCaptureHUDElementsAddDamage2ndShotProps {
6
+ /**
7
+ * Callback called when the user cancels the Add Damage mode.
8
+ */
9
+ onCancel?: () => void;
10
+ /**
11
+ * The dimensions of the Camera video stream.
12
+ */
13
+ streamDimensions?: PixelDimensions | null;
14
+ }
15
+ /**
16
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
17
+ * mode is ADD_DAMAGE_2ND_SHOT.
18
+ */
19
+ export declare function PhotoCaptureHUDElementsAddDamage2ndShot({ onCancel, streamDimensions, }: PhotoCaptureHUDElementsAddDamage2ndShotProps): JSX.Element;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.PhotoCaptureHUDElementsAddDamage2ndShot = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var react_i18next_1 = require("react-i18next");
17
+ var common_1 = require("@monkvision/common");
18
+ var hooks_1 = require("../../hooks");
19
+ var PhotoCaptureHUDElementsAddDamage2ndShot_styles_1 = require("./PhotoCaptureHUDElementsAddDamage2ndShot.styles");
20
+ var PhotoCaptureHUDCounter_1 = require("../PhotoCaptureHUDCounter");
21
+ var PhotoCaptureHUDCancelButton_1 = require("../PhotoCaptureHUDCancelButton");
22
+ var hooks_2 = require("./hooks");
23
+ function getAspectRatio(streamDimensions) {
24
+ if ((0, common_1.isMobileDevice)() && streamDimensions) {
25
+ return "".concat(streamDimensions === null || streamDimensions === void 0 ? void 0 : streamDimensions.width, "/").concat(streamDimensions === null || streamDimensions === void 0 ? void 0 : streamDimensions.height);
26
+ }
27
+ return '16/9';
28
+ }
29
+ /**
30
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
31
+ * mode is ADD_DAMAGE_2ND_SHOT.
32
+ */
33
+ function PhotoCaptureHUDElementsAddDamage2ndShot(_a) {
34
+ var onCancel = _a.onCancel, streamDimensions = _a.streamDimensions;
35
+ var t = (0, react_i18next_1.useTranslation)().t;
36
+ var style = (0, hooks_2.usePhotoCaptureHUDElementsAddDamage2ndShotStyle)();
37
+ var aspectRatio = getAspectRatio(streamDimensions);
38
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['container'] }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ style: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['frameContainer']), { aspectRatio: aspectRatio }), "data-testid": 'frame-container' }, { children: (0, jsx_runtime_1.jsx)("div", { style: style.frame }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ style: style.top }, { children: [(0, jsx_runtime_1.jsx)(PhotoCaptureHUDCounter_1.PhotoCaptureHUDCounter, { mode: hooks_1.PhotoCaptureMode.ADD_DAMAGE_2ND_SHOT }), (0, jsx_runtime_1.jsx)(PhotoCaptureHUDCancelButton_1.PhotoCaptureHUDCancelButton, { onCancel: onCancel })] })), (0, jsx_runtime_1.jsx)("div", __assign({ style: style.infoCloseup }, { children: t('photo.hud.addDamage.infoCloseup') }))] })));
39
+ }
40
+ exports.PhotoCaptureHUDElementsAddDamage2ndShot = PhotoCaptureHUDElementsAddDamage2ndShot;
41
+ //# sourceMappingURL=PhotoCaptureHUDElementsAddDamage2ndShot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElementsAddDamage2ndShot.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+CAA+C;AAC/C,6CAAoD;AACpD,qCAA+C;AAC/C,mHAA0E;AAC1E,oEAAmE;AACnE,8EAA6E;AAC7E,iCAA0E;AAgB1E,SAAS,cAAc,CAAC,gBAAyC;IAC/D,IAAI,IAAA,uBAAc,GAAE,IAAI,gBAAgB,EAAE;QACxC,OAAO,UAAG,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,cAAI,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,MAAM,CAAE,CAAC;KACjE;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,SAAgB,uCAAuC,CAAC,EAGT;QAF7C,QAAQ,cAAA,EACR,gBAAgB,sBAAA;IAER,IAAA,CAAC,GAAK,IAAA,8BAAc,GAAE,EAArB,CAAsB;IAC/B,IAAM,KAAK,GAAG,IAAA,uDAA+C,GAAE,CAAC;IAEhE,IAAM,WAAW,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAErD,OAAO,CACL,0CAAK,KAAK,EAAE,uDAAM,CAAC,WAAW,CAAC,iBAC7B,yCAAK,KAAK,wBAAO,uDAAM,CAAC,gBAAgB,CAAC,KAAE,WAAW,aAAA,oBAAgB,iBAAiB,gBACrF,gCAAK,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,IACvB,EACN,0CAAK,KAAK,EAAE,KAAK,CAAC,GAAG,iBACnB,uBAAC,+CAAsB,IAAC,IAAI,EAAE,wBAAgB,CAAC,mBAAmB,GAAI,EACtE,uBAAC,yDAA2B,IAAC,QAAQ,EAAE,QAAQ,GAAI,KAC/C,EACN,yCAAK,KAAK,EAAE,KAAK,CAAC,WAAW,gBAAG,CAAC,CAAC,iCAAiC,CAAC,IAAO,KACvE,CACP,CAAC;AACJ,CAAC;AArBD,0FAqBC"}
@@ -0,0 +1,2 @@
1
+ import { Styles } from '@monkvision/types';
2
+ export declare const styles: Styles;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.styles = void 0;
4
+ var PhotoCaptureHUDButtons_styles_1 = require("../PhotoCaptureHUDButtons/PhotoCaptureHUDButtons.styles");
5
+ exports.styles = {
6
+ container: {
7
+ position: 'absolute',
8
+ display: 'flex',
9
+ justifyContent: 'center',
10
+ alignItems: 'center',
11
+ flexDirection: 'column',
12
+ top: '0',
13
+ right: '0',
14
+ left: '0',
15
+ bottom: '0',
16
+ },
17
+ top: {
18
+ position: 'absolute',
19
+ display: 'flex',
20
+ alignSelf: 'stretch',
21
+ flexDirection: 'row',
22
+ justifyContent: 'space-between',
23
+ margin: '10px',
24
+ zIndex: '9',
25
+ top: '0',
26
+ right: '0',
27
+ left: '0',
28
+ },
29
+ topLandscape: {
30
+ __media: { landscape: true },
31
+ right: "".concat(PhotoCaptureHUDButtons_styles_1.PHOTO_CAPTURE_HUD_BUTTONS_BAR_WIDTH * 2, "px"),
32
+ },
33
+ frameContainer: {
34
+ position: 'absolute',
35
+ width: '100%',
36
+ },
37
+ frame: {
38
+ position: 'absolute',
39
+ top: '25%',
40
+ left: '32%',
41
+ width: '36%',
42
+ height: '50%',
43
+ border: '2px solid #FFC000',
44
+ borderRadius: '10px',
45
+ boxShadow: '0px 0px 0px 100pc rgba(0, 0, 0, 0.5)',
46
+ },
47
+ framePortrait: {
48
+ __media: { portrait: true },
49
+ top: '32%',
50
+ left: '25%',
51
+ width: '50%',
52
+ height: '36%',
53
+ },
54
+ label: {
55
+ position: 'absolute',
56
+ top: '0',
57
+ color: 'white',
58
+ margin: '20px',
59
+ padding: '10px 24px',
60
+ },
61
+ labelPortrait: {
62
+ __media: { portrait: true },
63
+ top: '10%',
64
+ },
65
+ infoCloseup: {
66
+ position: 'absolute',
67
+ bottom: '0',
68
+ color: 'white',
69
+ margin: '20px',
70
+ padding: '10px 24px',
71
+ textAlign: 'center',
72
+ },
73
+ infoCloseupPortrait: {
74
+ __media: { portrait: true },
75
+ bottom: "".concat(PhotoCaptureHUDButtons_styles_1.PHOTO_CAPTURE_HUD_BUTTONS_BAR_WIDTH * 1.5, "px"),
76
+ },
77
+ };
78
+ //# sourceMappingURL=PhotoCaptureHUDElementsAddDamage2ndShot.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElementsAddDamage2ndShot.styles.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/PhotoCaptureHUDElementsAddDamage2ndShot.styles.ts"],"names":[],"mappings":";;;AACA,yGAA8G;AAEjG,QAAA,MAAM,GAAW;IAC5B,SAAS,EAAE;QACT,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,aAAa,EAAE,QAAQ;QACvB,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,GAAG;KACZ;IACD,GAAG,EAAE;QACH,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,MAAM;QACf,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,GAAG;QACX,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,GAAG;KACV;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;QAC5B,KAAK,EAAE,UAAG,mEAAmC,GAAG,CAAC,OAAI;KACtD;IACD,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,MAAM;KACd;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,mBAAmB;QAC3B,YAAY,EAAE,MAAM;QACpB,SAAS,EAAE,sCAAsC;KAClD;IACD,aAAa,EAAE;QACb,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3B,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,KAAK;KACd;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,WAAW;KACrB;IACD,aAAa,EAAE;QACb,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3B,GAAG,EAAE,KAAK;KACX;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,QAAQ;KACpB;IACD,mBAAmB,EAAE;QACnB,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3B,MAAM,EAAE,UAAG,mEAAmC,GAAG,GAAG,OAAI;KACzD;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CSSProperties } from 'react';
2
+ export interface PhotoCaptureHUDElementsAddDamage2ndShotStyle {
3
+ top: CSSProperties;
4
+ infoCloseup: CSSProperties;
5
+ frame: CSSProperties;
6
+ }
7
+ export declare function usePhotoCaptureHUDElementsAddDamage2ndShotStyle(): PhotoCaptureHUDElementsAddDamage2ndShotStyle;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.usePhotoCaptureHUDElementsAddDamage2ndShotStyle = void 0;
15
+ var common_1 = require("@monkvision/common");
16
+ var PhotoCaptureHUDElementsAddDamage2ndShot_styles_1 = require("./PhotoCaptureHUDElementsAddDamage2ndShot.styles");
17
+ function usePhotoCaptureHUDElementsAddDamage2ndShotStyle() {
18
+ var responsive = (0, common_1.useResponsiveStyle)().responsive;
19
+ return {
20
+ top: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['top']), responsive(PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['topLandscape'])),
21
+ frame: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['frame']), responsive(PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['framePortrait'])),
22
+ infoCloseup: __assign(__assign({}, PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['infoCloseup']), responsive(PhotoCaptureHUDElementsAddDamage2ndShot_styles_1.styles['infoCloseupPortrait'])),
23
+ };
24
+ }
25
+ exports.usePhotoCaptureHUDElementsAddDamage2ndShotStyle = usePhotoCaptureHUDElementsAddDamage2ndShotStyle;
26
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/hooks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,6CAAwD;AACxD,mHAA0E;AAQ1E,SAAgB,+CAA+C;IACrD,IAAA,UAAU,GAAK,IAAA,2BAAkB,GAAE,WAAzB,CAA0B;IAE5C,OAAO;QACL,GAAG,wBACE,uDAAM,CAAC,KAAK,CAAC,GACb,UAAU,CAAC,uDAAM,CAAC,cAAc,CAAC,CAAC,CACtC;QACD,KAAK,wBACA,uDAAM,CAAC,OAAO,CAAC,GACf,UAAU,CAAC,uDAAM,CAAC,eAAe,CAAC,CAAC,CACvC;QACD,WAAW,wBACN,uDAAM,CAAC,aAAa,CAAC,GACrB,UAAU,CAAC,uDAAM,CAAC,qBAAqB,CAAC,CAAC,CAC7C;KACF,CAAC;AACJ,CAAC;AAjBD,0GAiBC"}
@@ -0,0 +1 @@
1
+ export { PhotoCaptureHUDElementsAddDamage2ndShot, type PhotoCaptureHUDElementsAddDamage2ndShotProps, } from './PhotoCaptureHUDElementsAddDamage2ndShot';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PhotoCaptureHUDElementsAddDamage2ndShot = void 0;
4
+ var PhotoCaptureHUDElementsAddDamage2ndShot_1 = require("./PhotoCaptureHUDElementsAddDamage2ndShot");
5
+ Object.defineProperty(exports, "PhotoCaptureHUDElementsAddDamage2ndShot", { enumerable: true, get: function () { return PhotoCaptureHUDElementsAddDamage2ndShot_1.PhotoCaptureHUDElementsAddDamage2ndShot; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsAddDamage2ndShot/index.ts"],"names":[],"mappings":";;;AAAA,qGAGmD;AAFjD,kKAAA,uCAAuC,OAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Props of the AddDamageButton component.
3
+ */
4
+ export interface AddDamageButtonProps {
5
+ /**
6
+ * Callback called when the user presses the button.
7
+ */
8
+ onAddDamage?: () => void;
9
+ /**
10
+ * Boolean indicating whether the Add Damage feature is enabled. If disabled, the `Add Damage` button will be hidden.
11
+ *
12
+ * @default true
13
+ */
14
+ enableAddDamage?: boolean;
15
+ }
16
+ /**
17
+ * Custom button displayed in the PhotoCapture Camera HUD that allows user to enter add damage mode.
18
+ */
19
+ export declare function AddDamageButton({ onAddDamage, enableAddDamage }: AddDamageButtonProps): JSX.Element;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.AddDamageButton = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var common_ui_web_1 = require("@monkvision/common-ui-web");
17
+ var react_i18next_1 = require("react-i18next");
18
+ var hooks_1 = require("../../hooks");
19
+ /**
20
+ * Custom button displayed in the PhotoCapture Camera HUD that allows user to enter add damage mode.
21
+ */
22
+ function AddDamageButton(_a) {
23
+ var onAddDamage = _a.onAddDamage, enableAddDamage = _a.enableAddDamage;
24
+ var t = (0, react_i18next_1.useTranslation)().t;
25
+ var primaryColor = (0, hooks_1.usePhotoCaptureHUDButtonBackground)();
26
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: enableAddDamage && ((0, jsx_runtime_1.jsx)(common_ui_web_1.Button, __assign({ icon: 'add', onClick: onAddDamage, "data-testid": 'monk-test-btn', primaryColor: primaryColor }, { children: t('photo.hud.sight.addDamageBtn') }))) }));
27
+ }
28
+ exports.AddDamageButton = AddDamageButton;
29
+ //# sourceMappingURL=AddDamageButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddDamageButton.js","sourceRoot":"","sources":["../../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/AddDamageButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAmD;AACnD,+CAA+C;AAC/C,qCAAiE;AAkBjE;;GAEG;AACH,SAAgB,eAAe,CAAC,EAAsD;QAApD,WAAW,iBAAA,EAAE,eAAe,qBAAA;IACpD,IAAA,CAAC,GAAK,IAAA,8BAAc,GAAE,EAArB,CAAsB;IAC/B,IAAM,YAAY,GAAG,IAAA,0CAAkC,GAAE,CAAC;IAE1D,OAAO,CACL,2DACG,eAAe,IAAI,CAClB,uBAAC,sBAAM,aACL,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,WAAW,iBACR,eAAe,EAC3B,YAAY,EAAE,YAAY,gBAEzB,CAAC,CAAC,8BAA8B,CAAC,IAC3B,CACV,GACA,CACJ,CAAC;AACJ,CAAC;AAlBD,0CAkBC"}
@@ -0,0 +1 @@
1
+ export { AddDamageButton, type AddDamageButtonProps } from './AddDamageButton';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddDamageButton = void 0;
4
+ var AddDamageButton_1 = require("./AddDamageButton");
5
+ Object.defineProperty(exports, "AddDamageButton", { enumerable: true, get: function () { return AddDamageButton_1.AddDamageButton; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/AddDamageButton/index.ts"],"names":[],"mappings":";;;AAAA,qDAA+E;AAAtE,kHAAA,eAAe,OAAA"}
@@ -0,0 +1,6 @@
1
+ import { PhotoCaptureHUDElementsSightProps } from './hooks';
2
+ /**
3
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
4
+ * mode is SIGHT.
5
+ */
6
+ export declare function PhotoCaptureHUDElementsSight({ sights, selectedSight, onSelectedSight, onRetakeSight, onAddDamage, sightsTaken, previewDimensions, images, enableAddDamage, sightGuidelines, enableSightGuidelines, tutorialStep, }: PhotoCaptureHUDElementsSightProps): JSX.Element;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.PhotoCaptureHUDElementsSight = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var common_ui_web_1 = require("@monkvision/common-ui-web");
17
+ var SightSlider_1 = require("./SightSlider");
18
+ var PhotoCaptureHUDElementsSight_styles_1 = require("./PhotoCaptureHUDElementsSight.styles");
19
+ var AddDamageButton_1 = require("./AddDamageButton");
20
+ var hooks_1 = require("./hooks");
21
+ var PhotoCaptureHUDCounter_1 = require("../PhotoCaptureHUDCounter");
22
+ var hooks_2 = require("../../hooks");
23
+ var SightGuideline_1 = require("./SightGuideline");
24
+ /**
25
+ * Component implementing an HUD displayed on top of the Camera preview during the PhotoCapture process when the current
26
+ * mode is SIGHT.
27
+ */
28
+ function PhotoCaptureHUDElementsSight(_a) {
29
+ var sights = _a.sights, selectedSight = _a.selectedSight, _b = _a.onSelectedSight, onSelectedSight = _b === void 0 ? function () { } : _b, _c = _a.onRetakeSight, onRetakeSight = _c === void 0 ? function () { } : _c, _d = _a.onAddDamage, onAddDamage = _d === void 0 ? function () { } : _d, sightsTaken = _a.sightsTaken, previewDimensions = _a.previewDimensions, images = _a.images, enableAddDamage = _a.enableAddDamage, sightGuidelines = _a.sightGuidelines, enableSightGuidelines = _a.enableSightGuidelines, tutorialStep = _a.tutorialStep;
30
+ var style = (0, hooks_1.usePhotoCaptureHUDSightPreviewStyle)({ previewDimensions: previewDimensions });
31
+ var showSight = previewDimensions && (!tutorialStep || tutorialStep === hooks_2.TutorialSteps.SIGHT);
32
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: PhotoCaptureHUDElementsSight_styles_1.styles['container'] }, { children: [showSight && (0, jsx_runtime_1.jsx)(common_ui_web_1.SightOverlay, { style: style.overlay, sight: selectedSight }), !tutorialStep && ((0, jsx_runtime_1.jsxs)("div", __assign({ style: style.elementsContainer }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ style: style.top }, { children: [(0, jsx_runtime_1.jsx)(SightGuideline_1.SightGuideline, { sightId: selectedSight.id, sightGuidelines: sightGuidelines, enableSightGuidelines: enableSightGuidelines, enableAddDamage: enableAddDamage }), (0, jsx_runtime_1.jsx)(AddDamageButton_1.AddDamageButton, { onAddDamage: onAddDamage, enableAddDamage: enableAddDamage })] })), (0, jsx_runtime_1.jsxs)("div", __assign({ style: style.bottom }, { children: [(0, jsx_runtime_1.jsx)(PhotoCaptureHUDCounter_1.PhotoCaptureHUDCounter, { mode: hooks_2.PhotoCaptureMode.SIGHT, totalSights: sights.length, sightsTaken: sightsTaken.length }), (0, jsx_runtime_1.jsx)(SightSlider_1.SightSlider, { sights: sights, selectedSight: selectedSight, sightsTaken: sightsTaken, onSelectedSight: onSelectedSight, onRetakeSight: onRetakeSight, images: images })] }))] })))] })));
33
+ }
34
+ exports.PhotoCaptureHUDElementsSight = PhotoCaptureHUDElementsSight;
35
+ //# sourceMappingURL=PhotoCaptureHUDElementsSight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PhotoCaptureHUDElementsSight.js","sourceRoot":"","sources":["../../../../src/PhotoCapture/PhotoCaptureHUD/PhotoCaptureHUDElementsSight/PhotoCaptureHUDElementsSight.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2DAAyD;AACzD,6CAA4C;AAC5C,6FAA+D;AAC/D,qDAAoD;AACpD,iCAAiG;AACjG,oEAAmE;AACnE,qCAA8D;AAC9D,mDAAkD;AAElD;;;GAGG;AACH,SAAgB,4BAA4B,CAAC,EAaT;QAZlC,MAAM,YAAA,EACN,aAAa,mBAAA,EACb,uBAA0B,EAA1B,eAAe,mBAAG,cAAO,CAAC,KAAA,EAC1B,qBAAwB,EAAxB,aAAa,mBAAG,cAAO,CAAC,KAAA,EACxB,mBAAsB,EAAtB,WAAW,mBAAG,cAAO,CAAC,KAAA,EACtB,WAAW,iBAAA,EACX,iBAAiB,uBAAA,EACjB,MAAM,YAAA,EACN,eAAe,qBAAA,EACf,eAAe,qBAAA,EACf,qBAAqB,2BAAA,EACrB,YAAY,kBAAA;IAEZ,IAAM,KAAK,GAAG,IAAA,2CAAmC,EAAC,EAAE,iBAAiB,mBAAA,EAAE,CAAC,CAAC;IAEzE,IAAM,SAAS,GAAG,iBAAiB,IAAI,CAAC,CAAC,YAAY,IAAI,YAAY,KAAK,qBAAa,CAAC,KAAK,CAAC,CAAC;IAE/F,OAAO,CACL,0CAAK,KAAK,EAAE,4CAAM,CAAC,WAAW,CAAC,iBAC5B,SAAS,IAAI,uBAAC,4BAAY,IAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,aAAa,GAAI,EACzE,CAAC,YAAY,IAAI,CAChB,0CAAK,KAAK,EAAE,KAAK,CAAC,iBAAiB,iBACjC,0CAAK,KAAK,EAAE,KAAK,CAAC,GAAG,iBACnB,uBAAC,+BAAc,IACb,OAAO,EAAE,aAAa,CAAC,EAAE,EACzB,eAAe,EAAE,eAAe,EAChC,qBAAqB,EAAE,qBAAqB,EAC5C,eAAe,EAAE,eAAe,GAChC,EACF,uBAAC,iCAAe,IAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,GAAI,KAC3E,EACN,0CAAK,KAAK,EAAE,KAAK,CAAC,MAAM,iBACtB,uBAAC,+CAAsB,IACrB,IAAI,EAAE,wBAAgB,CAAC,KAAK,EAC5B,WAAW,EAAE,MAAM,CAAC,MAAM,EAC1B,WAAW,EAAE,WAAW,CAAC,MAAM,GAC/B,EACF,uBAAC,yBAAW,IACV,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,GACd,KACE,KACF,CACP,KACG,CACP,CAAC;AACJ,CAAC;AAnDD,oEAmDC"}
@@ -0,0 +1,2 @@
1
+ import { Styles } from '@monkvision/types';
2
+ export declare const styles: Styles;