@corva/ui 3.73.0-7 → 3.73.0-rc.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 (1103) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/Popup.js +1 -1
  4. package/cjs-bundle/components/AddComment/Popup.js.map +1 -1
  5. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  6. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  7. package/cjs-bundle/components/AnchorsList/AnchorsList.js +1 -1
  8. package/cjs-bundle/components/AnchorsList/AnchorsList.js.map +1 -1
  9. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  10. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
  11. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  12. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map +1 -1
  13. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  14. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js.map +1 -1
  15. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js +1 -1
  16. package/cjs-bundle/components/Annotations/components/AnnotationsList/index.js.map +1 -1
  17. package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js +1 -1
  18. package/cjs-bundle/components/Annotations/components/LastAnnotation/index.js.map +1 -1
  19. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  20. package/cjs-bundle/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
  21. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  22. package/cjs-bundle/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
  23. package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js +1 -1
  24. package/cjs-bundle/components/AssetEditor/SingleAssetEditor.js.map +1 -1
  25. package/cjs-bundle/components/AssetEditor/index.js +1 -1
  26. package/cjs-bundle/components/AssetEditor/index.js.map +1 -1
  27. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  28. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
  29. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  30. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelect.js.map +1 -1
  31. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  32. package/cjs-bundle/components/AssetEditorV2/components/PrimaryAssetSelectV2.js.map +1 -1
  33. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  34. package/cjs-bundle/components/AssetEditorV2/components/SecondaryAssetSelect.js.map +1 -1
  35. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js +1 -1
  36. package/cjs-bundle/components/AssetEditorV2/components/SelectItem.js.map +1 -1
  37. package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
  38. package/cjs-bundle/components/AssetEditorV2/index.js.map +1 -1
  39. package/cjs-bundle/components/Attachment/index.js +1 -1
  40. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  41. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  42. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  43. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  44. package/cjs-bundle/components/BICOffsetPickerDialog/components/Map/index.js.map +1 -1
  45. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  46. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js.map +1 -1
  47. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  48. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
  49. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  50. package/cjs-bundle/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  51. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  52. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  53. package/cjs-bundle/components/Button/components/Button/index.js +1 -1
  54. package/cjs-bundle/components/Button/components/Button/index.js.map +1 -1
  55. package/cjs-bundle/components/Casing/CasingComponentIcon.js +1 -1
  56. package/cjs-bundle/components/Casing/CasingComponentIcon.js.map +1 -1
  57. package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  58. package/cjs-bundle/components/Casing/CasingTableV2/CasingTableV2.js.map +1 -1
  59. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  60. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  61. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  62. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  63. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  64. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  65. package/cjs-bundle/components/Casing/CasingTile/CasingTile.js +1 -1
  66. package/cjs-bundle/components/Casing/CasingTile/CasingTile.js.map +1 -1
  67. package/cjs-bundle/components/Chart/components/ChartWrapper.js +1 -1
  68. package/cjs-bundle/components/Chart/components/ChartWrapper.js.map +1 -1
  69. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  70. package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  71. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  72. package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  73. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
  74. package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  75. package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
  76. package/cjs-bundle/components/Chart/components/buttons/PanButton.js.map +1 -1
  77. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  78. package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  79. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
  80. package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  81. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  82. package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  83. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  84. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  85. package/cjs-bundle/components/CollapsibleContent.js +1 -1
  86. package/cjs-bundle/components/CollapsibleContent.js.map +1 -1
  87. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  88. package/cjs-bundle/components/ColorPicker/PaletteChromePicker/Palette/Palette.js.map +1 -1
  89. package/cjs-bundle/components/CommentWrapper.js +1 -1
  90. package/cjs-bundle/components/CommentWrapper.js.map +1 -1
  91. package/cjs-bundle/components/CommentsInfo/index.js +1 -1
  92. package/cjs-bundle/components/CommentsInfo/index.js.map +1 -1
  93. package/cjs-bundle/components/CustomSelect/index.js +1 -1
  94. package/cjs-bundle/components/CustomSelect/index.js.map +1 -1
  95. package/cjs-bundle/components/DatePicker/index.js +1 -1
  96. package/cjs-bundle/components/DatePicker/index.js.map +1 -1
  97. package/cjs-bundle/components/DateTimePicker/index.js +1 -1
  98. package/cjs-bundle/components/DateTimePicker/index.js.map +1 -1
  99. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js +1 -1
  100. package/cjs-bundle/components/DevCenter/AppHeader/AppHeader.js.map +1 -1
  101. package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js +1 -1
  102. package/cjs-bundle/components/DevCenter/AppHeader/PadMode.js.map +1 -1
  103. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  104. package/cjs-bundle/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
  105. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js.map +1 -1
  106. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  107. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  108. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  109. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
  110. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  111. package/cjs-bundle/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js.map +1 -1
  112. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  113. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  114. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  115. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  116. package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  117. package/cjs-bundle/components/DevCenter/NavigationBar/NavigationBar.js.map +1 -1
  118. package/cjs-bundle/components/DevCenter/SideBar/SideBar.js +1 -1
  119. package/cjs-bundle/components/DevCenter/SideBar/SideBar.js.map +1 -1
  120. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  121. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  122. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js +1 -1
  123. package/cjs-bundle/components/Drillstring/BHAComponentIcon.js.map +1 -1
  124. package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  125. package/cjs-bundle/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js.map +1 -1
  126. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  127. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  128. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  129. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  130. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  131. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  132. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  133. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  134. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  135. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  136. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  137. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  138. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  139. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  140. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  141. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js.map +1 -1
  142. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  143. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  144. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  145. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js.map +1 -1
  146. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  147. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  148. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  149. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js.map +1 -1
  150. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  151. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  152. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  153. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  154. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  155. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  156. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  157. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js.map +1 -1
  158. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  159. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  160. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  161. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  162. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  163. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
  164. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  165. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js.map +1 -1
  166. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  167. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/InputText.js.map +1 -1
  168. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  169. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
  170. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  171. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js.map +1 -1
  172. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  173. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js.map +1 -1
  174. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  175. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js.map +1 -1
  176. package/cjs-bundle/components/Drillstring/BHAList/BHAList.js +1 -1
  177. package/cjs-bundle/components/Drillstring/BHAList/BHAList.js.map +1 -1
  178. package/cjs-bundle/components/Drillstring/BHASchematic.js +1 -1
  179. package/cjs-bundle/components/Drillstring/BHASchematic.js.map +1 -1
  180. package/cjs-bundle/components/Drillstring/BHATile/BHATile.js +1 -1
  181. package/cjs-bundle/components/Drillstring/BHATile/BHATile.js.map +1 -1
  182. package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  183. package/cjs-bundle/components/Drillstring/BhaIndicator/BhaIndicator.js.map +1 -1
  184. package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  185. package/cjs-bundle/components/Drillstring/DrillstringDetail/DrillstringDetail.js.map +1 -1
  186. package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js +1 -1
  187. package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
  188. package/cjs-bundle/components/EditableItem/EditableItem/index.js +1 -1
  189. package/cjs-bundle/components/EditableItem/EditableItem/index.js.map +1 -1
  190. package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  191. package/cjs-bundle/components/EditableItem/EditableItemWithBadge/index.js.map +1 -1
  192. package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  193. package/cjs-bundle/components/EmbeddedApp/DevCenterEmbeddedApp.js.map +1 -1
  194. package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js +1 -1
  195. package/cjs-bundle/components/EmbeddedApp/EmbeddedApp.js.map +1 -1
  196. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  197. package/cjs-bundle/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  198. package/cjs-bundle/components/FailedFileUploading.js +1 -1
  199. package/cjs-bundle/components/FailedFileUploading.js.map +1 -1
  200. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  201. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  202. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  203. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js.map +1 -1
  204. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  205. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
  206. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  207. package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
  208. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  209. package/cjs-bundle/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
  210. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  211. package/cjs-bundle/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
  212. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  213. package/cjs-bundle/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
  214. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  215. package/cjs-bundle/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
  216. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  217. package/cjs-bundle/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
  218. package/cjs-bundle/components/FileTypeIcon.js +1 -1
  219. package/cjs-bundle/components/FileTypeIcon.js.map +1 -1
  220. package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
  221. package/cjs-bundle/components/FilesLoader/FilesLoader.js.map +1 -1
  222. package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js +1 -1
  223. package/cjs-bundle/components/FolderMenuItem/components/FolderIcon.js.map +1 -1
  224. package/cjs-bundle/components/FolderMenuItem/index.js +1 -1
  225. package/cjs-bundle/components/FolderMenuItem/index.js.map +1 -1
  226. package/cjs-bundle/components/FolderMenuItemWithLinks/index.js +1 -1
  227. package/cjs-bundle/components/FolderMenuItemWithLinks/index.js.map +1 -1
  228. package/cjs-bundle/components/Formula/RootXIcon.js +1 -1
  229. package/cjs-bundle/components/Formula/RootXIcon.js.map +1 -1
  230. package/cjs-bundle/components/GoogleDocsViewer/index.js +1 -1
  231. package/cjs-bundle/components/GoogleDocsViewer/index.js.map +1 -1
  232. package/cjs-bundle/components/IconMenu/index.js +1 -1
  233. package/cjs-bundle/components/IconMenu/index.js.map +1 -1
  234. package/cjs-bundle/components/Icons/AnnotationIcon.js +1 -1
  235. package/cjs-bundle/components/Icons/AnnotationIcon.js.map +1 -1
  236. package/cjs-bundle/components/Icons/AttachIcon.js +1 -1
  237. package/cjs-bundle/components/Icons/AttachIcon.js.map +1 -1
  238. package/cjs-bundle/components/Icons/EmojiIcon.js +1 -1
  239. package/cjs-bundle/components/Icons/EmojiIcon.js.map +1 -1
  240. package/cjs-bundle/components/Icons/RecommendationIcon.js +1 -1
  241. package/cjs-bundle/components/Icons/RecommendationIcon.js.map +1 -1
  242. package/cjs-bundle/components/Icons/SendIcon.js +1 -1
  243. package/cjs-bundle/components/Icons/SendIcon.js.map +1 -1
  244. package/cjs-bundle/components/KeyboardDateTimePicker.js +1 -1
  245. package/cjs-bundle/components/KeyboardDateTimePicker.js.map +1 -1
  246. package/cjs-bundle/components/LabelsCounter/LabelsCounter.js +1 -1
  247. package/cjs-bundle/components/LabelsCounter/LabelsCounter.js.map +1 -1
  248. package/cjs-bundle/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
  249. package/cjs-bundle/components/LoadingIndicator/FullScreenLoadingIndicator.js.map +1 -1
  250. package/cjs-bundle/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
  251. package/cjs-bundle/components/LoadingIndicator/InlineLoadingIndicator.js.map +1 -1
  252. package/cjs-bundle/components/LoadingIndicator/Loader.js +1 -1
  253. package/cjs-bundle/components/LoadingIndicator/Loader.js.map +1 -1
  254. package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js +1 -1
  255. package/cjs-bundle/components/MiddleTruncate/MiddleTruncate.js.map +1 -1
  256. package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js +1 -1
  257. package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.js.map +1 -1
  258. package/cjs-bundle/components/OffsetWellChips/Chip.js +1 -1
  259. package/cjs-bundle/components/OffsetWellChips/Chip.js.map +1 -1
  260. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  261. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  262. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  263. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js.map +1 -1
  264. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  265. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/MultiSelect.js.map +1 -1
  266. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  267. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
  268. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  269. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/RadiusInput.js.map +1 -1
  270. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  271. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js.map +1 -1
  272. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  273. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SingleSelect.js.map +1 -1
  274. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  275. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js.map +1 -1
  276. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  277. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  278. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  279. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/index.js.map +1 -1
  280. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  281. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  282. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  283. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/index.js.map +1 -1
  284. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  285. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  286. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  287. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsSelect.js.map +1 -1
  288. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  289. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/index.js.map +1 -1
  290. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  291. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
  292. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  293. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  294. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  295. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js.map +1 -1
  296. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  297. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  298. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  299. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js.map +1 -1
  300. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  301. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  302. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  303. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  304. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  305. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  306. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  307. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  308. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  309. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  310. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  311. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  312. package/cjs-bundle/components/OffsetWellPickerV3/index.js +1 -1
  313. package/cjs-bundle/components/OffsetWellPickerV3/index.js.map +1 -1
  314. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  315. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  316. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  317. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  318. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  319. package/cjs-bundle/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
  320. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  321. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  322. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  323. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  324. package/cjs-bundle/components/ParameterCharts/AddEditTrack.js +1 -1
  325. package/cjs-bundle/components/ParameterCharts/AddEditTrack.js.map +1 -1
  326. package/cjs-bundle/components/ParameterCharts/ParameterCharts.js +1 -1
  327. package/cjs-bundle/components/ParameterCharts/ParameterCharts.js.map +1 -1
  328. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js +1 -1
  329. package/cjs-bundle/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  330. package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js +1 -1
  331. package/cjs-bundle/components/ParameterCharts/components/TraceSelect.js.map +1 -1
  332. package/cjs-bundle/components/ParameterCharts/components/Track.js +1 -1
  333. package/cjs-bundle/components/ParameterCharts/components/Track.js.map +1 -1
  334. package/cjs-bundle/components/PinnableFilters/PinnableFilters.js +1 -1
  335. package/cjs-bundle/components/PinnableFilters/PinnableFilters.js.map +1 -1
  336. package/cjs-bundle/components/Popover/Popover.js +1 -1
  337. package/cjs-bundle/components/Popover/Popover.js.map +1 -1
  338. package/cjs-bundle/components/Popper/Popper.js +1 -1
  339. package/cjs-bundle/components/Popper/Popper.js.map +1 -1
  340. package/cjs-bundle/components/PostInput/PostInput.js +1 -1
  341. package/cjs-bundle/components/PostInput/PostInput.js.map +1 -1
  342. package/cjs-bundle/components/PriceInput/FormattedNumber.js +1 -1
  343. package/cjs-bundle/components/PriceInput/FormattedNumber.js.map +1 -1
  344. package/cjs-bundle/components/PriceInput/PriceInput.js +1 -1
  345. package/cjs-bundle/components/PriceInput/PriceInput.js.map +1 -1
  346. package/cjs-bundle/components/SearchInput/index.js +1 -1
  347. package/cjs-bundle/components/SearchInput/index.js.map +1 -1
  348. package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js +1 -1
  349. package/cjs-bundle/components/SettingEditors/DropdownEditor/index.js.map +1 -1
  350. package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  351. package/cjs-bundle/components/SlateFormattedText/Elements/ImageElement/ImageElement.js.map +1 -1
  352. package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js +1 -1
  353. package/cjs-bundle/components/SlateFormattedText/SlateFormattedText.js.map +1 -1
  354. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  355. package/cjs-bundle/components/StageDesignVActual/ComparisonBar/ComparisonBar.js.map +1 -1
  356. package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js +1 -1
  357. package/cjs-bundle/components/StageDesignVActual/ComparisonHeader.js.map +1 -1
  358. package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js +1 -1
  359. package/cjs-bundle/components/StageDesignVActual/ComparisonRow.js.map +1 -1
  360. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  361. package/cjs-bundle/components/StageDesignVActual/ElementsComparison/ElementsComparison.js.map +1 -1
  362. package/cjs-bundle/components/SwitchControl/index.js +1 -1
  363. package/cjs-bundle/components/SwitchControl/index.js.map +1 -1
  364. package/cjs-bundle/components/Template/TemplatePopover/index.js +1 -1
  365. package/cjs-bundle/components/Template/TemplatePopover/index.js.map +1 -1
  366. package/cjs-bundle/components/Template/TemplateSharingDialog/index.js +1 -1
  367. package/cjs-bundle/components/Template/TemplateSharingDialog/index.js.map +1 -1
  368. package/cjs-bundle/components/TracesEditModal/TracesEditModal.js +1 -1
  369. package/cjs-bundle/components/TracesEditModal/TracesEditModal.js.map +1 -1
  370. package/cjs-bundle/components/UserCard/index.js +1 -1
  371. package/cjs-bundle/components/UserCard/index.js.map +1 -1
  372. package/cjs-bundle/components/UserCardPopover.js +1 -1
  373. package/cjs-bundle/components/UserCardPopover.js.map +1 -1
  374. package/cjs-bundle/components/UserMention/index.js +1 -1
  375. package/cjs-bundle/components/UserMention/index.js.map +1 -1
  376. package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js +1 -1
  377. package/cjs-bundle/components/WellSummary/ActivitySummaryChart.js.map +1 -1
  378. package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js +1 -1
  379. package/cjs-bundle/components/WellSummary/FracWirelineTimeChart.js.map +1 -1
  380. package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js +1 -1
  381. package/cjs-bundle/components/WellSummary/WellSummaryItemLabel.js.map +1 -1
  382. package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  383. package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
  384. package/components/AddComment/Popover.d.ts +9 -15
  385. package/components/AddComment/Popover.d.ts.map +1 -1
  386. package/components/AddComment/Popover.js +1 -1
  387. package/components/AddComment/Popover.js.map +1 -1
  388. package/components/AddComment/Popup.d.ts +8 -16
  389. package/components/AddComment/Popup.d.ts.map +1 -1
  390. package/components/AddComment/Popup.js +1 -1
  391. package/components/AddComment/Popup.js.map +1 -1
  392. package/components/AddComment/components/Content.d.ts +8 -15
  393. package/components/AddComment/components/Content.d.ts.map +1 -1
  394. package/components/AddComment/components/Content.js +1 -1
  395. package/components/AddComment/components/Content.js.map +1 -1
  396. package/components/AnchorsList/AnchorsList.d.ts +0 -4
  397. package/components/AnchorsList/AnchorsList.d.ts.map +1 -1
  398. package/components/AnchorsList/AnchorsList.js +1 -1
  399. package/components/AnchorsList/AnchorsList.js.map +1 -1
  400. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  401. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js.map +1 -1
  402. package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
  403. package/components/Annotations/components/AnnotationsList/components/Annotation/index.js.map +1 -1
  404. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts +11 -56
  405. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts.map +1 -1
  406. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
  407. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js.map +1 -1
  408. package/components/Annotations/components/AnnotationsList/index.d.ts +18 -22
  409. package/components/Annotations/components/AnnotationsList/index.js +1 -1
  410. package/components/Annotations/components/AnnotationsList/index.js.map +1 -1
  411. package/components/Annotations/components/LastAnnotation/index.js +1 -1
  412. package/components/Annotations/components/LastAnnotation/index.js.map +1 -1
  413. package/components/AppVersionsSelect/AppVersionsSelect.d.ts +7 -16
  414. package/components/AppVersionsSelect/AppVersionsSelect.d.ts.map +1 -1
  415. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  416. package/components/AppVersionsSelect/AppVersionsSelect.js.map +1 -1
  417. package/components/AssetEditor/AssetEditorAutocomplete.d.ts +13 -96
  418. package/components/AssetEditor/AssetEditorAutocomplete.d.ts.map +1 -1
  419. package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
  420. package/components/AssetEditor/AssetEditorAutocomplete.js.map +1 -1
  421. package/components/AssetEditor/SingleAssetEditor.d.ts +2 -29
  422. package/components/AssetEditor/SingleAssetEditor.js +1 -1
  423. package/components/AssetEditor/SingleAssetEditor.js.map +1 -1
  424. package/components/AssetEditor/index.d.ts +3 -9
  425. package/components/AssetEditor/index.d.ts.map +1 -1
  426. package/components/AssetEditor/index.js +1 -1
  427. package/components/AssetEditor/index.js.map +1 -1
  428. package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts +3 -8
  429. package/components/AssetEditorV2/components/MultipleAssetsToggle.d.ts.map +1 -1
  430. package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  431. package/components/AssetEditorV2/components/MultipleAssetsToggle.js.map +1 -1
  432. package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts +8 -14
  433. package/components/AssetEditorV2/components/PrimaryAssetSelect.d.ts.map +1 -1
  434. package/components/AssetEditorV2/components/PrimaryAssetSelect.js +1 -1
  435. package/components/AssetEditorV2/components/PrimaryAssetSelect.js.map +1 -1
  436. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts +8 -14
  437. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.d.ts.map +1 -1
  438. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js +1 -1
  439. package/components/AssetEditorV2/components/PrimaryAssetSelectV2.js.map +1 -1
  440. package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts +0 -10
  441. package/components/AssetEditorV2/components/SecondaryAssetSelect.d.ts.map +1 -1
  442. package/components/AssetEditorV2/components/SecondaryAssetSelect.js +1 -1
  443. package/components/AssetEditorV2/components/SecondaryAssetSelect.js.map +1 -1
  444. package/components/AssetEditorV2/components/SelectItem.d.ts.map +1 -1
  445. package/components/AssetEditorV2/components/SelectItem.js +1 -1
  446. package/components/AssetEditorV2/components/SelectItem.js.map +1 -1
  447. package/components/AssetEditorV2/index.d.ts +12 -28
  448. package/components/AssetEditorV2/index.d.ts.map +1 -1
  449. package/components/AssetEditorV2/index.js +1 -1
  450. package/components/AssetEditorV2/index.js.map +1 -1
  451. package/components/Attachment/index.d.ts +2 -16
  452. package/components/Attachment/index.js +1 -1
  453. package/components/Attachment/index.js.map +1 -1
  454. package/components/BICOffsetPickerDialog/components/Map/Map.d.ts +5 -5
  455. package/components/BICOffsetPickerDialog/components/Map/Map.d.ts.map +1 -1
  456. package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
  457. package/components/BICOffsetPickerDialog/components/Map/Map.js.map +1 -1
  458. package/components/BICOffsetPickerDialog/components/Map/index.d.ts +3 -3
  459. package/components/BICOffsetPickerDialog/components/Map/index.d.ts.map +1 -1
  460. package/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
  461. package/components/BICOffsetPickerDialog/components/Map/index.js.map +1 -1
  462. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts +4 -10
  463. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.d.ts.map +1 -1
  464. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
  465. package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js.map +1 -1
  466. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts +5 -5
  467. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.d.ts.map +1 -1
  468. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
  469. package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js.map +1 -1
  470. package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts +2 -2
  471. package/components/BICOffsetPickerDialog/components/WellSection/index.d.ts.map +1 -1
  472. package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
  473. package/components/BICOffsetPickerDialog/components/WellSection/index.js.map +1 -1
  474. package/components/BICOffsetPickerDialog/index.d.ts +5 -12
  475. package/components/BICOffsetPickerDialog/index.d.ts.map +1 -1
  476. package/components/BICOffsetPickerDialog/index.js +1 -1
  477. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  478. package/components/Button/components/Button/index.d.ts.map +1 -1
  479. package/components/Button/components/Button/index.js +1 -1
  480. package/components/Button/components/Button/index.js.map +1 -1
  481. package/components/Casing/CasingComponentIcon.d.ts +2 -6
  482. package/components/Casing/CasingComponentIcon.d.ts.map +1 -1
  483. package/components/Casing/CasingComponentIcon.js +1 -1
  484. package/components/Casing/CasingComponentIcon.js.map +1 -1
  485. package/components/Casing/CasingTableV2/CasingTableV2.d.ts +4 -10
  486. package/components/Casing/CasingTableV2/CasingTableV2.d.ts.map +1 -1
  487. package/components/Casing/CasingTableV2/CasingTableV2.js +1 -1
  488. package/components/Casing/CasingTableV2/CasingTableV2.js.map +1 -1
  489. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts +2 -2
  490. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.d.ts.map +1 -1
  491. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  492. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  493. package/components/Casing/CasingTableV2/components/Component.d.ts +3 -3
  494. package/components/Casing/CasingTableV2/components/Component.d.ts.map +1 -1
  495. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  496. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  497. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts +2 -2
  498. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.d.ts.map +1 -1
  499. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  500. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  501. package/components/Casing/CasingTile/CasingTile.d.ts +4 -9
  502. package/components/Casing/CasingTile/CasingTile.d.ts.map +1 -1
  503. package/components/Casing/CasingTile/CasingTile.js +1 -1
  504. package/components/Casing/CasingTile/CasingTile.js.map +1 -1
  505. package/components/Chart/components/ChartWrapper.d.ts +4 -8
  506. package/components/Chart/components/ChartWrapper.d.ts.map +1 -1
  507. package/components/Chart/components/ChartWrapper.js +1 -1
  508. package/components/Chart/components/ChartWrapper.js.map +1 -1
  509. package/components/Chart/components/buttons/ChartTypeButton.d.ts +4 -9
  510. package/components/Chart/components/buttons/ChartTypeButton.d.ts.map +1 -1
  511. package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
  512. package/components/Chart/components/buttons/ChartTypeButton.js.map +1 -1
  513. package/components/Chart/components/buttons/DragToZoomButton.d.ts +5 -10
  514. package/components/Chart/components/buttons/DragToZoomButton.d.ts.map +1 -1
  515. package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
  516. package/components/Chart/components/buttons/DragToZoomButton.js.map +1 -1
  517. package/components/Chart/components/buttons/HideAxesButton.d.ts +4 -6
  518. package/components/Chart/components/buttons/HideAxesButton.d.ts.map +1 -1
  519. package/components/Chart/components/buttons/HideAxesButton.js +1 -1
  520. package/components/Chart/components/buttons/HideAxesButton.js.map +1 -1
  521. package/components/Chart/components/buttons/PanButton.d.ts +5 -10
  522. package/components/Chart/components/buttons/PanButton.d.ts.map +1 -1
  523. package/components/Chart/components/buttons/PanButton.js +1 -1
  524. package/components/Chart/components/buttons/PanButton.js.map +1 -1
  525. package/components/Chart/components/buttons/ResetZoomButton.d.ts +5 -11
  526. package/components/Chart/components/buttons/ResetZoomButton.d.ts.map +1 -1
  527. package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
  528. package/components/Chart/components/buttons/ResetZoomButton.js.map +1 -1
  529. package/components/Chart/components/buttons/ZoomInButton.d.ts +5 -9
  530. package/components/Chart/components/buttons/ZoomInButton.d.ts.map +1 -1
  531. package/components/Chart/components/buttons/ZoomInButton.js +1 -1
  532. package/components/Chart/components/buttons/ZoomInButton.js.map +1 -1
  533. package/components/Chart/components/buttons/ZoomOutButton.d.ts +5 -9
  534. package/components/Chart/components/buttons/ZoomOutButton.d.ts.map +1 -1
  535. package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
  536. package/components/Chart/components/buttons/ZoomOutButton.js.map +1 -1
  537. package/components/CollapsableSidebar.d.ts +8 -33
  538. package/components/CollapsableSidebar.d.ts.map +1 -1
  539. package/components/CollapsableSidebar.js +1 -1
  540. package/components/CollapsableSidebar.js.map +1 -1
  541. package/components/CollapsibleContent.d.ts +1 -4
  542. package/components/CollapsibleContent.d.ts.map +1 -1
  543. package/components/CollapsibleContent.js +1 -1
  544. package/components/CollapsibleContent.js.map +1 -1
  545. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
  546. package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js.map +1 -1
  547. package/components/CommentWrapper.d.ts +12 -16
  548. package/components/CommentWrapper.js +1 -1
  549. package/components/CommentWrapper.js.map +1 -1
  550. package/components/CommentsInfo/index.d.ts +23 -30
  551. package/components/CommentsInfo/index.d.ts.map +1 -1
  552. package/components/CommentsInfo/index.js +1 -1
  553. package/components/CommentsInfo/index.js.map +1 -1
  554. package/components/CustomSelect/index.d.ts +3 -6
  555. package/components/CustomSelect/index.d.ts.map +1 -1
  556. package/components/CustomSelect/index.js +1 -1
  557. package/components/CustomSelect/index.js.map +1 -1
  558. package/components/DatePicker/index.d.ts +1 -5
  559. package/components/DatePicker/index.d.ts.map +1 -1
  560. package/components/DatePicker/index.js +1 -1
  561. package/components/DatePicker/index.js.map +1 -1
  562. package/components/DateTimePicker/index.d.ts +0 -5
  563. package/components/DateTimePicker/index.d.ts.map +1 -1
  564. package/components/DateTimePicker/index.js +1 -1
  565. package/components/DateTimePicker/index.js.map +1 -1
  566. package/components/DevCenter/AppHeader/AppHeader.d.ts +18 -40
  567. package/components/DevCenter/AppHeader/AppHeader.d.ts.map +1 -1
  568. package/components/DevCenter/AppHeader/AppHeader.js +1 -1
  569. package/components/DevCenter/AppHeader/AppHeader.js.map +1 -1
  570. package/components/DevCenter/AppHeader/PadMode.d.ts +4 -14
  571. package/components/DevCenter/AppHeader/PadMode.d.ts.map +1 -1
  572. package/components/DevCenter/AppHeader/PadMode.js +1 -1
  573. package/components/DevCenter/AppHeader/PadMode.js.map +1 -1
  574. package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts +1 -5
  575. package/components/DevCenter/AppsDataProvider/AppsDataProvider.d.ts.map +1 -1
  576. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
  577. package/components/DevCenter/AppsDataProvider/AppsDataProvider.js.map +1 -1
  578. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts +3 -8
  579. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.d.ts.map +1 -1
  580. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js.map +1 -1
  581. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +5 -11
  582. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  583. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  584. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js.map +1 -1
  585. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts +1 -9
  586. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.d.ts.map +1 -1
  587. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  588. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js.map +1 -1
  589. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts +1 -13
  590. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.d.ts.map +1 -1
  591. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
  592. package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js.map +1 -1
  593. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.d.ts.map +1 -1
  594. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  595. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js.map +1 -1
  596. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts +3 -8
  597. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
  598. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  599. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  600. package/components/DevCenter/NavigationBar/NavigationBar.d.ts +5 -13
  601. package/components/DevCenter/NavigationBar/NavigationBar.d.ts.map +1 -1
  602. package/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
  603. package/components/DevCenter/NavigationBar/NavigationBar.js.map +1 -1
  604. package/components/DevCenter/SideBar/SideBar.d.ts +11 -35
  605. package/components/DevCenter/SideBar/SideBar.d.ts.map +1 -1
  606. package/components/DevCenter/SideBar/SideBar.js +1 -1
  607. package/components/DevCenter/SideBar/SideBar.js.map +1 -1
  608. package/components/DevCenter/icons/CorvaLogoSmall.d.ts +3 -8
  609. package/components/DevCenter/icons/CorvaLogoSmall.d.ts.map +1 -1
  610. package/components/DevCenter/icons/DevCenterIcon.d.ts +3 -8
  611. package/components/DevCenter/icons/DevCenterIcon.d.ts.map +1 -1
  612. package/components/DocumentViewer/DocumentViewer.d.ts +1 -6
  613. package/components/DocumentViewer/DocumentViewer.d.ts.map +1 -1
  614. package/components/DocumentViewer/DocumentViewer.js +1 -1
  615. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  616. package/components/Drillstring/BHAComponentIcon.d.ts +2 -6
  617. package/components/Drillstring/BHAComponentIcon.d.ts.map +1 -1
  618. package/components/Drillstring/BHAComponentIcon.js +1 -1
  619. package/components/Drillstring/BHAComponentIcon.js.map +1 -1
  620. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts +4 -10
  621. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.d.ts.map +1 -1
  622. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js +1 -1
  623. package/components/Drillstring/BHAComponentsTable/BHAComponentsTable.js.map +1 -1
  624. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts +1 -1
  625. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.d.ts.map +1 -1
  626. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  627. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  628. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts +1 -1
  629. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.d.ts.map +1 -1
  630. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  631. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  632. package/components/Drillstring/BHAComponentsTable/components/Component.d.ts +3 -3
  633. package/components/Drillstring/BHAComponentsTable/components/Component.d.ts.map +1 -1
  634. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  635. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  636. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts +1 -1
  637. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.d.ts.map +1 -1
  638. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  639. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  640. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts +2 -2
  641. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.d.ts.map +1 -1
  642. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  643. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  644. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts +1 -1
  645. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.d.ts.map +1 -1
  646. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  647. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  648. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts +1 -1
  649. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.d.ts.map +1 -1
  650. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  651. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  652. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts +4 -4
  653. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.d.ts.map +1 -1
  654. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js +1 -1
  655. package/components/Drillstring/BHAComponentsTable/components/Lwd/Measurement.js.map +1 -1
  656. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts +1 -1
  657. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.d.ts.map +1 -1
  658. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  659. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  660. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts +4 -4
  661. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.d.ts.map +1 -1
  662. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js +1 -1
  663. package/components/Drillstring/BHAComponentsTable/components/NozzleSize/index.js.map +1 -1
  664. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts +1 -1
  665. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.d.ts.map +1 -1
  666. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  667. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  668. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts +5 -5
  669. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.d.ts.map +1 -1
  670. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js +1 -1
  671. package/components/Drillstring/BHAComponentsTable/components/PressureLoss/index.js.map +1 -1
  672. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts +1 -1
  673. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.d.ts.map +1 -1
  674. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  675. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  676. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts +1 -1
  677. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.d.ts.map +1 -1
  678. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  679. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  680. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts +1 -1
  681. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.d.ts.map +1 -1
  682. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  683. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  684. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts +2 -2
  685. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.d.ts.map +1 -1
  686. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js +1 -1
  687. package/components/Drillstring/BHAComponentsTable/components/Suggestions/Suggestions.js.map +1 -1
  688. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts +1 -1
  689. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.d.ts.map +1 -1
  690. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  691. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  692. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  693. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  694. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts +1 -4
  695. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.d.ts.map +1 -1
  696. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js +1 -1
  697. package/components/Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js.map +1 -1
  698. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts +3 -8
  699. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.d.ts.map +1 -1
  700. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js +1 -1
  701. package/components/Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js.map +1 -1
  702. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts +4 -10
  703. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.d.ts.map +1 -1
  704. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js +1 -1
  705. package/components/Drillstring/BHAComponentsTable/components/shared/InputText.js.map +1 -1
  706. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts +1 -4
  707. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.d.ts.map +1 -1
  708. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js +1 -1
  709. package/components/Drillstring/BHAComponentsTable/components/shared/SaveButton.js.map +1 -1
  710. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts +3 -8
  711. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.d.ts.map +1 -1
  712. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js +1 -1
  713. package/components/Drillstring/BHAComponentsTable/components/shared/SelectField.js.map +1 -1
  714. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts +1 -4
  715. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.d.ts.map +1 -1
  716. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js +1 -1
  717. package/components/Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js.map +1 -1
  718. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts +5 -11
  719. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.d.ts.map +1 -1
  720. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js +1 -1
  721. package/components/Drillstring/BHAComponentsTable/components/shared/StaticField.js.map +1 -1
  722. package/components/Drillstring/BHAList/BHAList.d.ts +5 -12
  723. package/components/Drillstring/BHAList/BHAList.d.ts.map +1 -1
  724. package/components/Drillstring/BHAList/BHAList.js +1 -1
  725. package/components/Drillstring/BHAList/BHAList.js.map +1 -1
  726. package/components/Drillstring/BHASchematic.d.ts +2 -6
  727. package/components/Drillstring/BHASchematic.d.ts.map +1 -1
  728. package/components/Drillstring/BHASchematic.js +1 -1
  729. package/components/Drillstring/BHASchematic.js.map +1 -1
  730. package/components/Drillstring/BHATile/BHATile.d.ts +6 -13
  731. package/components/Drillstring/BHATile/BHATile.d.ts.map +1 -1
  732. package/components/Drillstring/BHATile/BHATile.js +1 -1
  733. package/components/Drillstring/BHATile/BHATile.js.map +1 -1
  734. package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts +1 -4
  735. package/components/Drillstring/BhaIndicator/BhaIndicator.d.ts.map +1 -1
  736. package/components/Drillstring/BhaIndicator/BhaIndicator.js +1 -1
  737. package/components/Drillstring/BhaIndicator/BhaIndicator.js.map +1 -1
  738. package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts +0 -3
  739. package/components/Drillstring/DrillstringDetail/DrillstringDetail.d.ts.map +1 -1
  740. package/components/Drillstring/DrillstringDetail/DrillstringDetail.js +1 -1
  741. package/components/Drillstring/DrillstringDetail/DrillstringDetail.js.map +1 -1
  742. package/components/EChartsWrapper/EChartsWrapper.d.ts.map +1 -1
  743. package/components/EChartsWrapper/EChartsWrapper.js +1 -1
  744. package/components/EChartsWrapper/EChartsWrapper.js.map +1 -1
  745. package/components/EditableItem/EditableItem/index.d.ts +0 -8
  746. package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
  747. package/components/EditableItem/EditableItem/index.js +1 -1
  748. package/components/EditableItem/EditableItem/index.js.map +1 -1
  749. package/components/EditableItem/EditableItemWithBadge/index.d.ts +4 -4
  750. package/components/EditableItem/EditableItemWithBadge/index.d.ts.map +1 -1
  751. package/components/EditableItem/EditableItemWithBadge/index.js +1 -1
  752. package/components/EditableItem/EditableItemWithBadge/index.js.map +1 -1
  753. package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts +3 -10
  754. package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts.map +1 -1
  755. package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
  756. package/components/EmbeddedApp/DevCenterEmbeddedApp.js.map +1 -1
  757. package/components/EmbeddedApp/EmbeddedApp.d.ts +1 -20
  758. package/components/EmbeddedApp/EmbeddedApp.d.ts.map +1 -1
  759. package/components/EmbeddedApp/EmbeddedApp.js +1 -1
  760. package/components/EmbeddedApp/EmbeddedApp.js.map +1 -1
  761. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts +0 -3
  762. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.d.ts.map +1 -1
  763. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
  764. package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js.map +1 -1
  765. package/components/FailedFileUploading.d.ts +2 -5
  766. package/components/FailedFileUploading.js +1 -1
  767. package/components/FailedFileUploading.js.map +1 -1
  768. package/components/FeedItem/FeedItem.js +1 -1
  769. package/components/FeedItem/FeedItem.js.map +1 -1
  770. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts +0 -5
  771. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts.map +1 -1
  772. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  773. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js.map +1 -1
  774. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts +5 -10
  775. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.d.ts.map +1 -1
  776. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
  777. package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js.map +1 -1
  778. package/components/FeedItem/components/FeedComments.js +1 -1
  779. package/components/FeedItem/components/FeedComments.js.map +1 -1
  780. package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts +2 -6
  781. package/components/FeedItem/components/LessonsLearnedLeafIcon.d.ts.map +1 -1
  782. package/components/FeedItem/components/LessonsLearnedLeafIcon.js +1 -1
  783. package/components/FeedItem/components/LessonsLearnedLeafIcon.js.map +1 -1
  784. package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts +0 -3
  785. package/components/FeedItem/feedItemTypes/AlertFeedItem.d.ts.map +1 -1
  786. package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
  787. package/components/FeedItem/feedItemTypes/AlertFeedItem.js.map +1 -1
  788. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts +0 -3
  789. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.d.ts.map +1 -1
  790. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -1
  791. package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js.map +1 -1
  792. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts +4 -9
  793. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.d.ts.map +1 -1
  794. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
  795. package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js.map +1 -1
  796. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts +1 -4
  797. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.d.ts.map +1 -1
  798. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -1
  799. package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js.map +1 -1
  800. package/components/FileTypeIcon.d.ts +1 -5
  801. package/components/FileTypeIcon.d.ts.map +1 -1
  802. package/components/FileTypeIcon.js +1 -1
  803. package/components/FileTypeIcon.js.map +1 -1
  804. package/components/FilesLoader/FilesLoader.d.ts +0 -16
  805. package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
  806. package/components/FilesLoader/FilesLoader.js +1 -1
  807. package/components/FilesLoader/FilesLoader.js.map +1 -1
  808. package/components/FolderMenuItem/components/FolderIcon.d.ts +2 -6
  809. package/components/FolderMenuItem/components/FolderIcon.d.ts.map +1 -1
  810. package/components/FolderMenuItem/components/FolderIcon.js +1 -1
  811. package/components/FolderMenuItem/components/FolderIcon.js.map +1 -1
  812. package/components/FolderMenuItem/index.d.ts +3 -8
  813. package/components/FolderMenuItem/index.d.ts.map +1 -1
  814. package/components/FolderMenuItem/index.js +1 -1
  815. package/components/FolderMenuItem/index.js.map +1 -1
  816. package/components/FolderMenuItemWithLinks/index.d.ts +5 -10
  817. package/components/FolderMenuItemWithLinks/index.d.ts.map +1 -1
  818. package/components/FolderMenuItemWithLinks/index.js +1 -1
  819. package/components/FolderMenuItemWithLinks/index.js.map +1 -1
  820. package/components/Formula/RootXIcon.d.ts +1 -4
  821. package/components/Formula/RootXIcon.d.ts.map +1 -1
  822. package/components/Formula/RootXIcon.js +1 -1
  823. package/components/Formula/RootXIcon.js.map +1 -1
  824. package/components/GoogleDocsViewer/index.d.ts +2 -8
  825. package/components/GoogleDocsViewer/index.d.ts.map +1 -1
  826. package/components/GoogleDocsViewer/index.js +1 -1
  827. package/components/GoogleDocsViewer/index.js.map +1 -1
  828. package/components/IconMenu/index.d.ts +21 -67
  829. package/components/IconMenu/index.d.ts.map +1 -1
  830. package/components/IconMenu/index.js +1 -1
  831. package/components/IconMenu/index.js.map +1 -1
  832. package/components/Icons/AnnotationIcon.d.ts +2 -6
  833. package/components/Icons/AnnotationIcon.d.ts.map +1 -1
  834. package/components/Icons/AnnotationIcon.js +1 -1
  835. package/components/Icons/AnnotationIcon.js.map +1 -1
  836. package/components/Icons/AttachIcon.d.ts +2 -6
  837. package/components/Icons/AttachIcon.d.ts.map +1 -1
  838. package/components/Icons/AttachIcon.js +1 -1
  839. package/components/Icons/AttachIcon.js.map +1 -1
  840. package/components/Icons/EmojiIcon.d.ts +2 -6
  841. package/components/Icons/EmojiIcon.d.ts.map +1 -1
  842. package/components/Icons/EmojiIcon.js +1 -1
  843. package/components/Icons/EmojiIcon.js.map +1 -1
  844. package/components/Icons/RecommendationIcon.d.ts +2 -6
  845. package/components/Icons/RecommendationIcon.d.ts.map +1 -1
  846. package/components/Icons/RecommendationIcon.js +1 -1
  847. package/components/Icons/RecommendationIcon.js.map +1 -1
  848. package/components/Icons/SendIcon.d.ts +2 -6
  849. package/components/Icons/SendIcon.d.ts.map +1 -1
  850. package/components/Icons/SendIcon.js +1 -1
  851. package/components/Icons/SendIcon.js.map +1 -1
  852. package/components/KeyboardDateTimePicker.d.ts +7 -6
  853. package/components/KeyboardDateTimePicker.d.ts.map +1 -1
  854. package/components/KeyboardDateTimePicker.js +1 -1
  855. package/components/KeyboardDateTimePicker.js.map +1 -1
  856. package/components/LabelsCounter/LabelsCounter.d.ts +1 -4
  857. package/components/LabelsCounter/LabelsCounter.d.ts.map +1 -1
  858. package/components/LabelsCounter/LabelsCounter.js +1 -1
  859. package/components/LabelsCounter/LabelsCounter.js.map +1 -1
  860. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +1 -6
  861. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
  862. package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
  863. package/components/LoadingIndicator/FullScreenLoadingIndicator.js.map +1 -1
  864. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +1 -6
  865. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
  866. package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
  867. package/components/LoadingIndicator/InlineLoadingIndicator.js.map +1 -1
  868. package/components/LoadingIndicator/Loader.d.ts +0 -4
  869. package/components/LoadingIndicator/Loader.d.ts.map +1 -1
  870. package/components/LoadingIndicator/Loader.js +1 -1
  871. package/components/LoadingIndicator/Loader.js.map +1 -1
  872. package/components/MiddleTruncate/MiddleTruncate.d.ts +1 -13
  873. package/components/MiddleTruncate/MiddleTruncate.d.ts.map +1 -1
  874. package/components/MiddleTruncate/MiddleTruncate.js +1 -1
  875. package/components/MiddleTruncate/MiddleTruncate.js.map +1 -1
  876. package/components/OffsetWellButton/OffsetWellButton.d.ts +1 -10
  877. package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
  878. package/components/OffsetWellButton/OffsetWellButton.js +1 -1
  879. package/components/OffsetWellButton/OffsetWellButton.js.map +1 -1
  880. package/components/OffsetWellChips/Chip.d.ts +1 -11
  881. package/components/OffsetWellChips/Chip.d.ts.map +1 -1
  882. package/components/OffsetWellChips/Chip.js +1 -1
  883. package/components/OffsetWellChips/Chip.js.map +1 -1
  884. package/components/OffsetWellChips/types.d.ts +4 -4
  885. package/components/OffsetWellChips/types.d.ts.map +1 -1
  886. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts +7 -16
  887. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.d.ts.map +1 -1
  888. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  889. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  890. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts +1 -4
  891. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.d.ts.map +1 -1
  892. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
  893. package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js.map +1 -1
  894. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts +1 -4
  895. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.d.ts.map +1 -1
  896. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
  897. package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js.map +1 -1
  898. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.d.ts +10 -12
  899. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  900. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js.map +1 -1
  901. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.d.ts +11 -13
  902. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js +1 -1
  903. package/components/OffsetWellPickerV2/components/Filter/RadiusInput.js.map +1 -1
  904. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.d.ts +10 -12
  905. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  906. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js.map +1 -1
  907. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts +3 -7
  908. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.d.ts.map +1 -1
  909. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
  910. package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js.map +1 -1
  911. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts +1 -1
  912. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.d.ts.map +1 -1
  913. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js +1 -1
  914. package/components/OffsetWellPickerV2/components/Filter/SubjectWellSearch.js.map +1 -1
  915. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  916. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  917. package/components/OffsetWellPickerV2/components/Filter/index.d.ts +1 -1
  918. package/components/OffsetWellPickerV2/components/Filter/index.d.ts.map +1 -1
  919. package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
  920. package/components/OffsetWellPickerV2/components/Filter/index.js.map +1 -1
  921. package/components/OffsetWellPickerV2/components/Map/Map.d.ts +6 -6
  922. package/components/OffsetWellPickerV2/components/Map/Map.d.ts.map +1 -1
  923. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  924. package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  925. package/components/OffsetWellPickerV2/components/Map/index.d.ts +2 -2
  926. package/components/OffsetWellPickerV2/components/Map/index.d.ts.map +1 -1
  927. package/components/OffsetWellPickerV2/components/Map/index.js +1 -1
  928. package/components/OffsetWellPickerV2/components/Map/index.js.map +1 -1
  929. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.d.ts +10 -12
  930. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  931. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  932. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.d.ts +11 -13
  933. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
  934. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js.map +1 -1
  935. package/components/OffsetWellPickerV2/components/Table/index.d.ts +20 -29
  936. package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
  937. package/components/OffsetWellPickerV2/components/Table/index.js.map +1 -1
  938. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
  939. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js.map +1 -1
  940. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts +4 -4
  941. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.d.ts.map +1 -1
  942. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
  943. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js.map +1 -1
  944. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts +2 -2
  945. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.d.ts.map +1 -1
  946. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
  947. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js.map +1 -1
  948. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  949. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  950. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.d.ts.map +1 -1
  951. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
  952. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js.map +1 -1
  953. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts +4 -4
  954. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.d.ts.map +1 -1
  955. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  956. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  957. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  958. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  959. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  960. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  961. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  962. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  963. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  964. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  965. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  966. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  967. package/components/OffsetWellPickerV3/index.d.ts +7 -16
  968. package/components/OffsetWellPickerV3/index.d.ts.map +1 -1
  969. package/components/OffsetWellPickerV3/index.js +1 -1
  970. package/components/OffsetWellPickerV3/index.js.map +1 -1
  971. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.d.ts +2 -6
  972. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.d.ts.map +1 -1
  973. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts +1 -4
  974. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.d.ts.map +1 -1
  975. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts +2 -5
  976. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.d.ts.map +1 -1
  977. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts +2 -6
  978. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.d.ts.map +1 -1
  979. package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts +2 -6
  980. package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts.map +1 -1
  981. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.d.ts +1 -4
  982. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.d.ts.map +1 -1
  983. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  984. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  985. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  986. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  987. package/components/PadOffsetsPicker/OffsetAssetChip.d.ts +5 -11
  988. package/components/PadOffsetsPicker/OffsetAssetChip.d.ts.map +1 -1
  989. package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
  990. package/components/PadOffsetsPicker/OffsetAssetChip.js.map +1 -1
  991. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  992. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  993. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  994. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  995. package/components/ParameterCharts/AddEditTrack.d.ts +12 -28
  996. package/components/ParameterCharts/AddEditTrack.js +1 -1
  997. package/components/ParameterCharts/AddEditTrack.js.map +1 -1
  998. package/components/ParameterCharts/ParameterCharts.d.ts +5 -12
  999. package/components/ParameterCharts/ParameterCharts.d.ts.map +1 -1
  1000. package/components/ParameterCharts/ParameterCharts.js +1 -1
  1001. package/components/ParameterCharts/ParameterCharts.js.map +1 -1
  1002. package/components/ParameterCharts/components/TraceHeader.d.ts +13 -89
  1003. package/components/ParameterCharts/components/TraceHeader.d.ts.map +1 -1
  1004. package/components/ParameterCharts/components/TraceHeader.js +1 -1
  1005. package/components/ParameterCharts/components/TraceHeader.js.map +1 -1
  1006. package/components/ParameterCharts/components/TraceSelect.d.ts +12 -18
  1007. package/components/ParameterCharts/components/TraceSelect.js +1 -1
  1008. package/components/ParameterCharts/components/TraceSelect.js.map +1 -1
  1009. package/components/ParameterCharts/components/Track.d.ts +1 -4
  1010. package/components/ParameterCharts/components/Track.d.ts.map +1 -1
  1011. package/components/ParameterCharts/components/Track.js +1 -1
  1012. package/components/ParameterCharts/components/Track.js.map +1 -1
  1013. package/components/PinnableFilters/PinnableFilters.d.ts.map +1 -1
  1014. package/components/PinnableFilters/PinnableFilters.js +1 -1
  1015. package/components/PinnableFilters/PinnableFilters.js.map +1 -1
  1016. package/components/Popover/Popover.js +1 -1
  1017. package/components/Popover/Popover.js.map +1 -1
  1018. package/components/Popper/Popper.js +1 -1
  1019. package/components/Popper/Popper.js.map +1 -1
  1020. package/components/PostInput/PostInput.d.ts +10 -20
  1021. package/components/PostInput/PostInput.d.ts.map +1 -1
  1022. package/components/PostInput/PostInput.js +1 -1
  1023. package/components/PostInput/PostInput.js.map +1 -1
  1024. package/components/PriceInput/FormattedNumber.d.ts +0 -3
  1025. package/components/PriceInput/FormattedNumber.d.ts.map +1 -1
  1026. package/components/PriceInput/FormattedNumber.js +1 -1
  1027. package/components/PriceInput/FormattedNumber.js.map +1 -1
  1028. package/components/PriceInput/PriceInput.d.ts +4 -4
  1029. package/components/PriceInput/PriceInput.d.ts.map +1 -1
  1030. package/components/PriceInput/PriceInput.js +1 -1
  1031. package/components/PriceInput/PriceInput.js.map +1 -1
  1032. package/components/SearchInput/index.d.ts +1 -4
  1033. package/components/SearchInput/index.d.ts.map +1 -1
  1034. package/components/SearchInput/index.js +1 -1
  1035. package/components/SearchInput/index.js.map +1 -1
  1036. package/components/SettingEditors/DropdownEditor/index.d.ts +21 -30
  1037. package/components/SettingEditors/DropdownEditor/index.d.ts.map +1 -1
  1038. package/components/SettingEditors/DropdownEditor/index.js +1 -1
  1039. package/components/SettingEditors/DropdownEditor/index.js.map +1 -1
  1040. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.d.ts +0 -4
  1041. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.d.ts.map +1 -1
  1042. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
  1043. package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js.map +1 -1
  1044. package/components/SlateFormattedText/SlateFormattedText.d.ts +4 -11
  1045. package/components/SlateFormattedText/SlateFormattedText.d.ts.map +1 -1
  1046. package/components/SlateFormattedText/SlateFormattedText.js +1 -1
  1047. package/components/SlateFormattedText/SlateFormattedText.js.map +1 -1
  1048. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.d.ts +1 -6
  1049. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.d.ts.map +1 -1
  1050. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
  1051. package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js.map +1 -1
  1052. package/components/StageDesignVActual/ComparisonHeader.d.ts +1 -7
  1053. package/components/StageDesignVActual/ComparisonHeader.d.ts.map +1 -1
  1054. package/components/StageDesignVActual/ComparisonHeader.js +1 -1
  1055. package/components/StageDesignVActual/ComparisonHeader.js.map +1 -1
  1056. package/components/StageDesignVActual/ComparisonRow.d.ts +7 -16
  1057. package/components/StageDesignVActual/ComparisonRow.d.ts.map +1 -1
  1058. package/components/StageDesignVActual/ComparisonRow.js +1 -1
  1059. package/components/StageDesignVActual/ComparisonRow.js.map +1 -1
  1060. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts +7 -15
  1061. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts.map +1 -1
  1062. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
  1063. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js.map +1 -1
  1064. package/components/SwitchControl/index.d.ts.map +1 -1
  1065. package/components/SwitchControl/index.js +1 -1
  1066. package/components/SwitchControl/index.js.map +1 -1
  1067. package/components/Template/TemplatePopover/index.d.ts +8 -18
  1068. package/components/Template/TemplatePopover/index.d.ts.map +1 -1
  1069. package/components/Template/TemplatePopover/index.js +1 -1
  1070. package/components/Template/TemplatePopover/index.js.map +1 -1
  1071. package/components/Template/TemplateSharingDialog/index.d.ts +1 -4
  1072. package/components/Template/TemplateSharingDialog/index.d.ts.map +1 -1
  1073. package/components/Template/TemplateSharingDialog/index.js +1 -1
  1074. package/components/Template/TemplateSharingDialog/index.js.map +1 -1
  1075. package/components/TracesEditModal/TracesEditModal.d.ts +5 -13
  1076. package/components/TracesEditModal/TracesEditModal.d.ts.map +1 -1
  1077. package/components/TracesEditModal/TracesEditModal.js +1 -1
  1078. package/components/TracesEditModal/TracesEditModal.js.map +1 -1
  1079. package/components/UserCard/index.d.ts +1 -1
  1080. package/components/UserCard/index.js +1 -1
  1081. package/components/UserCard/index.js.map +1 -1
  1082. package/components/UserCardPopover.d.ts +14 -5
  1083. package/components/UserCardPopover.js +1 -1
  1084. package/components/UserCardPopover.js.map +1 -1
  1085. package/components/UserMention/index.js +1 -1
  1086. package/components/UserMention/index.js.map +1 -1
  1087. package/components/WellSummary/ActivitySummaryChart.d.ts +3 -7
  1088. package/components/WellSummary/ActivitySummaryChart.d.ts.map +1 -1
  1089. package/components/WellSummary/ActivitySummaryChart.js +1 -1
  1090. package/components/WellSummary/ActivitySummaryChart.js.map +1 -1
  1091. package/components/WellSummary/FracWirelineTimeChart.d.ts +0 -4
  1092. package/components/WellSummary/FracWirelineTimeChart.d.ts.map +1 -1
  1093. package/components/WellSummary/FracWirelineTimeChart.js +1 -1
  1094. package/components/WellSummary/FracWirelineTimeChart.js.map +1 -1
  1095. package/components/WellSummary/WellSummaryItemLabel.d.ts +1 -4
  1096. package/components/WellSummary/WellSummaryItemLabel.d.ts.map +1 -1
  1097. package/components/WellSummary/WellSummaryItemLabel.js +1 -1
  1098. package/components/WellSummary/WellSummaryItemLabel.js.map +1 -1
  1099. package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  1100. package/componentsV2/WellArchivedMessage/WellArchivedMessage.js.map +1 -1
  1101. package/mcp-server/server.mjs +5 -5
  1102. package/package.json +1 -1
  1103. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/Attachment/index.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactPlayer from 'react-player';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Typography } from '@material-ui/core';\nimport ImageIcon from '@material-ui/icons/Image';\nimport FullSizeIcon from '@material-ui/icons/Fullscreen';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { NewDocumentViewer } from '../NewDocumentViewer';\nimport { UnavailableFileIcon } from '../NewDocumentViewer/icons/UnavailableFileIcon';\nimport { ImageViewer } from '../../componentsV2/ImageViewer';\n\nimport styles from './styles.css';\n\nimport FileTypeIcon from '~components/FileTypeIcon';\nimport IconButton from '~components/IconButton';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport { getIsImage, getIsVideo } from '~/utils/fileExtension';\nimport { getIsPreviewUnavailable } from '~/utils/filePreview';\nimport { DownloadIcon } from '~/icons';\nimport { useSignedURL } from '~/effects';\nimport utils from '~utils/main';\n\nconst PAGE_NAME = 'Attachment';\n\nconst grey200 = grey[200];\nconst grey400 = grey[400];\n\nconst SIZES = {\n small: { label: 'small', value: 135 },\n medium: { label: 'medium', value: 300 },\n};\n\nconst style = {\n fileImage: (imageIsLoaded, size) => ({\n maxWidth: '100%',\n borderRadius: 4,\n overflow: 'hidden',\n // NOTE: Makes one-line comment with image fits into comments container. Equals to\n // imagePlaceholder height\n maxHeight: size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value,\n display: imageIsLoaded ? 'initial' : 'none',\n cursor: 'pointer',\n }),\n fileDownloadWrapper: {\n padding: '10px 10px 10px 5px',\n border: `1px solid #616161`,\n borderRadius: 3,\n maxWidth: 500, // NOTE: Corresponds to react-player max width\n width: '75%',\n },\n imagePlaceholder: {\n position: 'relative',\n backgroundColor: grey200,\n borderRadius: 3,\n marginTop: 10,\n height: 135,\n width: 135,\n },\n};\n\nconst muiStyles = theme => ({\n imageIconRoot: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n },\n dialog: {\n width: '95%',\n height: '95%',\n maxWidth: '100%',\n position: 'relative',\n },\n nativeDialog: {\n width: '100%',\n height: '100%',\n maxWidth: '100%',\n maxHeight: '100%',\n margin: 0,\n },\n dialogRoot: {\n // NOTE: Make background color similar to lightbox\n backgroundColor: 'rgba(0, 0, 0, 0.85)',\n },\n fileName: {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n fontWeight: 400,\n },\n downloadIcon: {\n color: theme.palette.primary.text3,\n },\n disabledPreview: {\n backgroundColor: theme.palette.primary.text9,\n },\n unavailableFileIcon: {\n marginRight: 12,\n minWidth: 32,\n },\n titleContainer: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n caption: {\n fontSize: 12,\n fontWeight: 400,\n width: 'fit-content',\n },\n unavailableFileName: {\n fontSize: 12,\n fontWeight: 400,\n },\n});\n\n/* eslint-disable react/prop-types */\nconst ImageAttachment = props => {\n const downloadLink = useSignedURL(props.attachmentFileName) || props.attachmentUrl;\n\n return (\n <>\n <div onClick={props.openLightbox} className={styles.cAttachmentImg}>\n <img\n data-testid={`${PAGE_NAME}_image`}\n src={downloadLink}\n style={style.fileImage(!!props.imageDimensions, props.size)}\n alt=\"Attachment\"\n onLoad={props.onImageLoaded}\n />\n <div data-testid={`${PAGE_NAME}_button`} className={styles.cAttachmentImgPreviwBtn}>\n <FullSizeIcon />\n </div>\n </div>\n\n {!props.imageDimensions && (\n <div style={style.imagePlaceholder}>\n <ImageIcon\n data-testid={`${PAGE_NAME}_placeholder`}\n className={props.classes.imageIconRoot}\n htmlColor={grey400}\n fontSize=\"large\"\n />\n </div>\n )}\n\n {props.lightboxIsOpen && (\n <ImageViewer\n src={downloadLink}\n onClose={props.handleLightboxClose}\n onOpen={props.handleLightboxOpen}\n width={props.imageDimensions?.width}\n height={props.imageDimensions?.height}\n />\n )}\n </>\n );\n};\n\nconst FileAttachment = props => {\n const fileName = utils.getFileNameWithExtensionFromPath(props.displayName || props.attachmentUrl);\n\n const previewUrl = useSignedURL(props.attachmentFileName, 'inline');\n const downloadUrl = useSignedURL(props.attachmentFileName, 'attachment');\n\n const isPreviewUnavailable = getIsPreviewUnavailable(fileName);\n\n const handleFilePreviewOpen = () => {\n if (isPreviewUnavailable) return;\n props.openPreview();\n };\n\n return (\n <div className={styles.cAttachmentFileWrapper}>\n <div\n className={classNames(\n styles.cAttachmentFileDownloadWrapper,\n isPreviewUnavailable && props.classes.disabledPreview\n )}\n style={style.fileDownloadWrapper}\n onClick={handleFilePreviewOpen}\n >\n {isPreviewUnavailable ? (\n <UnavailableFileIcon className={props.classes.unavailableFileIcon} />\n ) : (\n <FileTypeIcon\n fileName={props.displayName || props.attachmentUrl}\n className={styles.cAttachmentFileDownloadWrapperFileIcon}\n size={props.small ? 25 : 50}\n />\n )}\n <div className={props.classes.titleContainer}>\n {isPreviewUnavailable && <div className={props.classes.caption}>Preview unavailable</div>}\n <div\n data-testid={`${PAGE_NAME}_name`}\n className={classNames(\n styles.cAttachmentFileDownloadWrapperFileName,\n isPreviewUnavailable && props.classes.fileName\n )}\n >\n <Typography variant=\"subtitle2\" noWrap className={props.classes.unavailableFileName}>\n {fileName}\n </Typography>\n </div>\n </div>\n <NewDocumentViewer\n fileUrl={previewUrl}\n classes={{\n root: props.classes.dialogRoot,\n paper: isNativeDetected ? props.classes.nativeDialog : props.classes.dialog,\n }}\n fileName={fileName}\n fileSize={props.attachmentSize}\n onClose={props.closePreview}\n open={props.previewIsOpen}\n />\n </div>\n <a\n download={props.displayName}\n href={downloadUrl}\n className={styles.cAttachmentFileDownloadWrapperForm}\n >\n <IconButton\n data-testid={`${PAGE_NAME}_downloadButton`}\n className={props.classes.downloadIcon}\n type=\"submit\"\n >\n <DownloadIcon size={24} className={props.classes.downloadIcon} />\n </IconButton>\n </a>\n </div>\n );\n};\n\n/* eslint-enable react/prop-types */\n\nfunction Attachment(props) {\n const [imageDimensions, setImageDimensions] = useState(undefined);\n const [isLightboxOpen, setIsLightboxOpen] = useState(false);\n const [isPreviewOpen, setIsPreviewOpen] = useState(false);\n\n const fileName = props.displayName || props.attachmentUrl || props.fileName;\n const isImage = getIsImage(fileName);\n const isVideo = getIsVideo(fileName);\n\n // Don't fetch download link if attachmentUrl is provided\n const downloadLink = useSignedURL(!props.attachmentUrl && props.fileName);\n const attachmentUrl = props.attachmentUrl || downloadLink;\n const preventIOSScroll = useCallback(e => e.preventDefault(), []);\n\n // NOTE: iOS WebView has a bug when background content of React Modal is scrollable\n // Source: https://github.com/reactjs/react-modal/issues/369\n const handleLightboxOpen = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'hidden';\n document.documentElement.addEventListener('touchmove', preventIOSScroll, {\n passive: false,\n });\n }\n }, [preventIOSScroll]);\n\n const handleLightboxClose = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'visible';\n document.documentElement.removeEventListener('touchmove', preventIOSScroll);\n }\n setIsLightboxOpen(false);\n }, [preventIOSScroll]);\n\n const openLightbox = useCallback(() => setIsLightboxOpen(true), []);\n const onImageLoaded = useCallback(e => {\n const { naturalWidth, naturalHeight } = e.currentTarget;\n setImageDimensions({ width: naturalWidth, height: naturalHeight });\n }, []);\n const openPreview = useCallback(() => setIsPreviewOpen(true), []);\n const closePreview = useCallback(e => {\n e.stopPropagation();\n setIsPreviewOpen(false);\n }, []);\n\n if (isImage)\n return (\n <div className={styles.cAttachment}>\n <ImageAttachment\n size={props.size}\n openLightbox={openLightbox}\n attachmentFileName={props.fileName}\n attachmentUrl={props.attachmentUrl}\n onImageLoaded={onImageLoaded}\n imageDimensions={imageDimensions}\n lightboxIsOpen={isLightboxOpen}\n handleLightboxOpen={handleLightboxOpen}\n handleLightboxClose={handleLightboxClose}\n classes={props.classes}\n />\n </div>\n );\n\n if (isVideo && ReactPlayer.canPlay(attachmentUrl))\n return (\n <div className={styles.cAttachment}>\n <ReactPlayer\n data-testid={`${PAGE_NAME}_player`}\n className={styles.cAttachmentReactPlayer}\n url={attachmentUrl}\n config={{ file: { attributes: { preload: 'metadata' } } }}\n controls\n height={props.size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value}\n width={null}\n />\n </div>\n );\n\n return (\n <div className={styles.cAttachment}>\n <FileAttachment\n attachmentUrl={attachmentUrl}\n attachmentFileName={props.fileName}\n attachmentSize={props.attachmentSize}\n displayName={props.displayName}\n openPreview={openPreview}\n closePreview={closePreview}\n previewIsOpen={isPreviewOpen}\n classes={props.classes}\n small={props.small}\n />\n </div>\n );\n}\n\nAttachment.propTypes = {\n attachmentUrl: PropTypes.string.isRequired,\n attachmentSize: PropTypes.number,\n displayName: PropTypes.string,\n fileName: PropTypes.string,\n size: PropTypes.oneOf([SIZES.small.label, SIZES.medium.label]),\n classes: PropTypes.shape({}).isRequired,\n small: PropTypes.bool,\n};\n\nAttachment.defaultProps = {\n displayName: null,\n fileName: null,\n attachmentSize: undefined,\n size: SIZES.medium.label,\n small: false,\n};\n\nexport default withStyles(muiStyles)(Attachment);\n"],"names":["grey200","grey","grey400","SIZES","label","value","style","fileImage","imageIsLoaded","size","maxWidth","borderRadius","overflow","maxHeight","display","cursor","fileDownloadWrapper","padding","border","width","imagePlaceholder","position","backgroundColor","marginTop","height","ImageAttachment","props","_props$imageDimension","_props$imageDimension2","downloadLink","useSignedURL","attachmentFileName","attachmentUrl","_jsxs","_Fragment","children","jsxs","onClick","openLightbox","className","styles","cAttachmentImg","_jsx","jsx","concat","src","imageDimensions","alt","onLoad","onImageLoaded","cAttachmentImgPreviwBtn","FullSizeIcon","ImageIcon","classes","imageIconRoot","htmlColor","fontSize","lightboxIsOpen","ImageViewer","onClose","handleLightboxClose","onOpen","handleLightboxOpen","FileAttachment","fileName","utils","getFileNameWithExtensionFromPath","displayName","previewUrl","downloadUrl","isPreviewUnavailable","getIsPreviewUnavailable","cAttachmentFileWrapper","classNames","cAttachmentFileDownloadWrapper","disabledPreview","openPreview","UnavailableFileIcon","unavailableFileIcon","FileTypeIcon","cAttachmentFileDownloadWrapperFileIcon","small","titleContainer","caption","cAttachmentFileDownloadWrapperFileName","Typography","variant","noWrap","unavailableFileName","NewDocumentViewer","fileUrl","root","dialogRoot","paper","isNativeDetected","nativeDialog","dialog","fileSize","attachmentSize","closePreview","open","previewIsOpen","download","href","cAttachmentFileDownloadWrapperForm","IconButton","downloadIcon","type","DownloadIcon","Attachment","useState","undefined","_useState2","_slicedToArray","_useState","setImageDimensions","_useState4","_useState3","isLightboxOpen","setIsLightboxOpen","_useState6","_useState5","isPreviewOpen","setIsPreviewOpen","isImage","getIsImage","isVideo","getIsVideo","preventIOSScroll","useCallback","e","preventDefault","document","documentElement","addEventListener","passive","removeEventListener","currentTarget","naturalWidth","naturalHeight","stopPropagation","cAttachment","ReactPlayer","canPlay","cAttachmentReactPlayer","url","config","file","attributes","preload","controls","propTypes","PropTypes","string","isRequired","number","oneOf","shape","bool","defaultProps","Attachment$1","withStyles","theme","top","left","transform","margin","whiteSpace","textOverflow","fontWeight","color","palette","primary","text3","text9","marginRight","minWidth","flexDirection"],"mappings":"ukNA2BMA,EAAUC,EAAAA,QAAK,KACfC,EAAUD,EAAAA,QAAK,KAEfE,EACG,CAAEC,MAAO,QAASC,MAAO,KAD5BF,EAEI,CAAEC,MAAO,SAAUC,MAAO,KAG9BC,EAAQ,CACZC,UAAW,SAACC,EAAeC,GA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B,MAAOvD,EAAMuD,SAIrB,CAEA4B,EAAW0C,UAAY,CACrBvH,cAAewH,EAAAA,QAAUC,OAAOC,WAChCxD,eAAgBsD,EAAS,QAACG,OAC1BxF,YAAaqF,EAAS,QAACC,OACvBzF,SAAUwF,EAAS,QAACC,OACpBhJ,KAAM+I,EAAAA,QAAUI,MAAM,CAACzJ,EAAYC,MAAOD,EAAaC,QACvDiD,QAASmG,EAAS,QAACK,MAAM,CAAA,GAAIH,WAC7BzE,MAAOuE,EAAS,QAACM,MAGnBjD,EAAWkD,aAAe,CACxB5F,YAAa,KACbH,SAAU,KACVkC,oBAAgBa,EAChBtG,KAAMN,EAAaC,MACnB6E,OAAO,GAGT,IAAA+E,EAAeC,cAhSG,SAAAC,GAAK,MAAK,CAC1B5G,cAAe,CACbjC,SAAU,WACV8I,IAAK,MACLC,KAAM,MACNC,UAAW,yBAEbrE,OAAQ,CACN7E,MAAO,MACPK,OAAQ,MACRd,SAAU,OACVW,SAAU,YAEZ0E,aAAc,CACZ5E,MAAO,OACPK,OAAQ,OACRd,SAAU,OACVG,UAAW,OACXyJ,OAAQ,GAEV1E,WAAY,CAEVtE,gBAAiB,uBAEnB0C,SAAU,CACRpD,SAAU,SACV2J,WAAY,SACZC,aAAc,WACdC,WAAY,KAEd/D,aAAc,CACZgE,MAAOR,EAAMS,QAAQC,QAAQC,OAE/BlG,gBAAiB,CACfrD,gBAAiB4I,EAAMS,QAAQC,QAAQE,OAEzChG,oBAAqB,CACnBiG,YAAa,GACbC,SAAU,IAEZ9F,eAAgB,CACdpE,QAAS,OACTmK,cAAe,SACf9J,MAAO,QAETgE,QAAS,CACP3B,SAAU,GACViH,WAAY,IACZtJ,MAAO,eAETqE,oBAAqB,CACnBhC,SAAU,GACViH,WAAY,KAEf,GA0OcR,CAAsBpD"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/Attachment/index.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactPlayer from 'react-player';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Typography } from '@material-ui/core';\nimport ImageIcon from '@material-ui/icons/Image';\nimport FullSizeIcon from '@material-ui/icons/Fullscreen';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { NewDocumentViewer } from '../NewDocumentViewer';\nimport { UnavailableFileIcon } from '../NewDocumentViewer/icons/UnavailableFileIcon';\nimport { ImageViewer } from '../../componentsV2/ImageViewer';\n\nimport styles from './styles.css';\n\nimport FileTypeIcon from '~components/FileTypeIcon';\nimport IconButton from '~components/IconButton';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport { getIsImage, getIsVideo } from '~/utils/fileExtension';\nimport { getIsPreviewUnavailable } from '~/utils/filePreview';\nimport { DownloadIcon } from '~/icons';\nimport { useSignedURL } from '~/effects';\nimport utils from '~utils/main';\n\nconst PAGE_NAME = 'Attachment';\n\nconst grey200 = grey[200];\nconst grey400 = grey[400];\n\nconst SIZES = {\n small: { label: 'small', value: 135 },\n medium: { label: 'medium', value: 300 },\n};\n\nconst style = {\n fileImage: (imageIsLoaded, size) => ({\n maxWidth: '100%',\n borderRadius: 4,\n overflow: 'hidden',\n // NOTE: Makes one-line comment with image fits into comments container. Equals to\n // imagePlaceholder height\n maxHeight: size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value,\n display: imageIsLoaded ? 'initial' : 'none',\n cursor: 'pointer',\n }),\n fileDownloadWrapper: {\n padding: '10px 10px 10px 5px',\n border: `1px solid #616161`,\n borderRadius: 3,\n maxWidth: 500, // NOTE: Corresponds to react-player max width\n width: '75%',\n },\n imagePlaceholder: {\n position: 'relative',\n backgroundColor: grey200,\n borderRadius: 3,\n marginTop: 10,\n height: 135,\n width: 135,\n },\n};\n\nconst muiStyles = theme => ({\n imageIconRoot: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n },\n dialog: {\n width: '95%',\n height: '95%',\n maxWidth: '100%',\n position: 'relative',\n },\n nativeDialog: {\n width: '100%',\n height: '100%',\n maxWidth: '100%',\n maxHeight: '100%',\n margin: 0,\n },\n dialogRoot: {\n // NOTE: Make background color similar to lightbox\n backgroundColor: 'rgba(0, 0, 0, 0.85)',\n },\n fileName: {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n fontWeight: 400,\n },\n downloadIcon: {\n color: theme.palette.primary.text3,\n },\n disabledPreview: {\n backgroundColor: theme.palette.primary.text9,\n },\n unavailableFileIcon: {\n marginRight: 12,\n minWidth: 32,\n },\n titleContainer: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n caption: {\n fontSize: 12,\n fontWeight: 400,\n width: 'fit-content',\n },\n unavailableFileName: {\n fontSize: 12,\n fontWeight: 400,\n },\n});\n\n/* eslint-disable react/prop-types */\nconst ImageAttachment = props => {\n const downloadLink = useSignedURL(props.attachmentFileName) || props.attachmentUrl;\n\n return (\n <>\n <div onClick={props.openLightbox} className={styles.cAttachmentImg}>\n <img\n data-testid={`${PAGE_NAME}_image`}\n src={downloadLink}\n style={style.fileImage(!!props.imageDimensions, props.size)}\n alt=\"Attachment\"\n onLoad={props.onImageLoaded}\n />\n <div data-testid={`${PAGE_NAME}_button`} className={styles.cAttachmentImgPreviwBtn}>\n <FullSizeIcon />\n </div>\n </div>\n\n {!props.imageDimensions && (\n <div style={style.imagePlaceholder}>\n <ImageIcon\n data-testid={`${PAGE_NAME}_placeholder`}\n className={props.classes.imageIconRoot}\n htmlColor={grey400}\n fontSize=\"large\"\n />\n </div>\n )}\n\n {props.lightboxIsOpen && (\n <ImageViewer\n src={downloadLink}\n onClose={props.handleLightboxClose}\n onOpen={props.handleLightboxOpen}\n width={props.imageDimensions?.width}\n height={props.imageDimensions?.height}\n />\n )}\n </>\n );\n};\n\nconst FileAttachment = props => {\n const fileName = utils.getFileNameWithExtensionFromPath(props.displayName || props.attachmentUrl);\n\n const previewUrl = useSignedURL(props.attachmentFileName, 'inline');\n const downloadUrl = useSignedURL(props.attachmentFileName, 'attachment');\n\n const isPreviewUnavailable = getIsPreviewUnavailable(fileName);\n\n const handleFilePreviewOpen = () => {\n if (isPreviewUnavailable) return;\n props.openPreview();\n };\n\n return (\n <div className={styles.cAttachmentFileWrapper}>\n <div\n className={classNames(\n styles.cAttachmentFileDownloadWrapper,\n isPreviewUnavailable && props.classes.disabledPreview\n )}\n style={style.fileDownloadWrapper}\n onClick={handleFilePreviewOpen}\n >\n {isPreviewUnavailable ? (\n <UnavailableFileIcon className={props.classes.unavailableFileIcon} />\n ) : (\n <FileTypeIcon\n fileName={props.displayName || props.attachmentUrl}\n className={styles.cAttachmentFileDownloadWrapperFileIcon}\n size={props.small ? 25 : 50}\n />\n )}\n <div className={props.classes.titleContainer}>\n {isPreviewUnavailable && <div className={props.classes.caption}>Preview unavailable</div>}\n <div\n data-testid={`${PAGE_NAME}_name`}\n className={classNames(\n styles.cAttachmentFileDownloadWrapperFileName,\n isPreviewUnavailable && props.classes.fileName\n )}\n >\n <Typography variant=\"subtitle2\" noWrap className={props.classes.unavailableFileName}>\n {fileName}\n </Typography>\n </div>\n </div>\n <NewDocumentViewer\n fileUrl={previewUrl}\n classes={{\n root: props.classes.dialogRoot,\n paper: isNativeDetected ? props.classes.nativeDialog : props.classes.dialog,\n }}\n fileName={fileName}\n fileSize={props.attachmentSize}\n onClose={props.closePreview}\n open={props.previewIsOpen}\n />\n </div>\n <a\n download={props.displayName}\n href={downloadUrl}\n className={styles.cAttachmentFileDownloadWrapperForm}\n >\n <IconButton\n data-testid={`${PAGE_NAME}_downloadButton`}\n className={props.classes.downloadIcon}\n type=\"submit\"\n >\n <DownloadIcon size={24} className={props.classes.downloadIcon} />\n </IconButton>\n </a>\n </div>\n );\n};\n\n/* eslint-enable react/prop-types */\n\nfunction Attachment(rawProps) {\n const {\n displayName = null,\n fileName: attachmentFileName = null,\n attachmentSize = undefined,\n size = SIZES.medium.label,\n small = false,\n ...otherProps\n } = rawProps;\n const props = {\n ...otherProps,\n displayName,\n fileName: attachmentFileName,\n attachmentSize,\n size,\n small,\n };\n\n const [imageDimensions, setImageDimensions] = useState(undefined);\n const [isLightboxOpen, setIsLightboxOpen] = useState(false);\n const [isPreviewOpen, setIsPreviewOpen] = useState(false);\n\n const fileName = props.displayName || props.attachmentUrl || props.fileName;\n const isImage = getIsImage(fileName);\n const isVideo = getIsVideo(fileName);\n\n // Don't fetch download link if attachmentUrl is provided\n const downloadLink = useSignedURL(!props.attachmentUrl && props.fileName);\n const attachmentUrl = props.attachmentUrl || downloadLink;\n const preventIOSScroll = useCallback(e => e.preventDefault(), []);\n\n // NOTE: iOS WebView has a bug when background content of React Modal is scrollable\n // Source: https://github.com/reactjs/react-modal/issues/369\n const handleLightboxOpen = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'hidden';\n document.documentElement.addEventListener('touchmove', preventIOSScroll, {\n passive: false,\n });\n }\n }, [preventIOSScroll]);\n\n const handleLightboxClose = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'visible';\n document.documentElement.removeEventListener('touchmove', preventIOSScroll);\n }\n setIsLightboxOpen(false);\n }, [preventIOSScroll]);\n\n const openLightbox = useCallback(() => setIsLightboxOpen(true), []);\n const onImageLoaded = useCallback(e => {\n const { naturalWidth, naturalHeight } = e.currentTarget;\n setImageDimensions({ width: naturalWidth, height: naturalHeight });\n }, []);\n const openPreview = useCallback(() => setIsPreviewOpen(true), []);\n const closePreview = useCallback(e => {\n e.stopPropagation();\n setIsPreviewOpen(false);\n }, []);\n\n if (isImage)\n return (\n <div className={styles.cAttachment}>\n <ImageAttachment\n size={props.size}\n openLightbox={openLightbox}\n attachmentFileName={props.fileName}\n attachmentUrl={props.attachmentUrl}\n onImageLoaded={onImageLoaded}\n imageDimensions={imageDimensions}\n lightboxIsOpen={isLightboxOpen}\n handleLightboxOpen={handleLightboxOpen}\n handleLightboxClose={handleLightboxClose}\n classes={props.classes}\n />\n </div>\n );\n\n if (isVideo && ReactPlayer.canPlay(attachmentUrl))\n return (\n <div className={styles.cAttachment}>\n <ReactPlayer\n data-testid={`${PAGE_NAME}_player`}\n className={styles.cAttachmentReactPlayer}\n url={attachmentUrl}\n config={{ file: { attributes: { preload: 'metadata' } } }}\n controls\n height={props.size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value}\n width={null}\n />\n </div>\n );\n\n return (\n <div className={styles.cAttachment}>\n <FileAttachment\n attachmentUrl={attachmentUrl}\n attachmentFileName={props.fileName}\n attachmentSize={props.attachmentSize}\n displayName={props.displayName}\n openPreview={openPreview}\n closePreview={closePreview}\n previewIsOpen={isPreviewOpen}\n classes={props.classes}\n small={props.small}\n />\n </div>\n );\n}\n\nAttachment.propTypes = {\n attachmentUrl: PropTypes.string.isRequired,\n attachmentSize: PropTypes.number,\n displayName: PropTypes.string,\n fileName: PropTypes.string,\n size: PropTypes.oneOf([SIZES.small.label, SIZES.medium.label]),\n classes: PropTypes.shape({}).isRequired,\n small: PropTypes.bool,\n};\n\nexport default withStyles(muiStyles)(Attachment);\n"],"names":["grey200","grey","grey400","SIZES","label","value","style","fileImage","imageIsLoaded","size","maxWidth","borderRadius","overflow","maxHeight","display","cursor","fileDownloadWrapper","padding","border","width","imagePlaceholder","position","backgroundColor","marginTop","height","ImageAttachment","props","_props$imageDimension","_props$imageDimension2","downloadLink","useSignedURL","attachmentFileName","attachmentUrl","_jsxs","_Fragment","children","jsxs","onClick","openLightbox","className","styles","cAttachmentImg","_jsx","jsx","concat","src","imageDimensions","alt","onLoad","onImageLoaded","cAttachmentImgPreviwBtn","FullSizeIcon","ImageIcon","classes","imageIconRoot","htmlColor","fontSize","lightboxIsOpen","ImageViewer","onClose","handleLightboxClose","onOpen","handleLightboxOpen","FileAttachment","fileName","utils","getFileNameWithExtensionFromPath","displayName","previewUrl","downloadUrl","isPreviewUnavailable","getIsPreviewUnavailable","cAttachmentFileWrapper","classNames","cAttachmentFileDownloadWrapper","disabledPreview","openPreview","UnavailableFileIcon","unavailableFileIcon","FileTypeIcon","cAttachmentFileDownloadWrapperFileIcon","small","titleContainer","caption","cAttachmentFileDownloadWrapperFileName","Typography","variant","noWrap","unavailableFileName","NewDocumentViewer","fileUrl","root","dialogRoot","paper","isNativeDetected","nativeDialog","dialog","fileSize","attachmentSize","closePreview","open","previewIsOpen","download","href","cAttachmentFileDownloadWrapperForm","IconButton","downloadIcon","type","DownloadIcon","Attachment","rawProps","_rawProps$displayName","_rawProps$fileName","_rawProps$attachmentS","undefined","_rawProps$size","_rawProps$small","_excluded","useState","_useState2","_slicedToArray","_useState","setImageDimensions","_useState4","_useState3","isLightboxOpen","setIsLightboxOpen","_useState6","_useState5","isPreviewOpen","setIsPreviewOpen","isImage","getIsImage","isVideo","getIsVideo","preventIOSScroll","useCallback","e","preventDefault","document","documentElement","addEventListener","passive","removeEventListener","currentTarget","naturalWidth","naturalHeight","stopPropagation","cAttachment","ReactPlayer","canPlay","cAttachmentReactPlayer","url","config","file","attributes","preload","controls","propTypes","PropTypes","string","isRequired","number","oneOf","shape","bool","Attachment$1","withStyles","theme","top","left","transform","margin","whiteSpace","textOverflow","fontWeight","color","palette","primary","text3","text9","marginRight","minWidth","flexDirection"],"mappings":"uxOAyBA,IAEMA,EAAUC,EAAAA,QAAK,KACfC,EAAUD,EAAAA,QAAK,KAEfE,EACG,CAAEC,MAAO,QAASC,MAAO,KAD5BF,EAEI,CAAEC,MAAO,SAAUC,MAAO,KAG9BC,EAAQ,CACZC,UAAW,SAACC,EAAeC,GAAI,MAAM,CACnCC,SAAU,OACVC,aAAc,EACdC,SAAU,SAGVC,UAAWJ,IAASN,EAAYC,MAAQD,EAAYE,MAAQF,EAAaE,MACzES,QAASN,EAAgB,UAAY,OACrCO,OAAQ,UACR,EACFC,oBAAqB,CACnBC,QAAS,qBACTC,OAA2B,oBAC3BP,aAAc,EACdD,SAAU,IACVS,MAAO,OAETC,iBAAkB,CAChBC,SAAU,WACVC,gBAAiBtB,EACjBW,aAAc,EACdY,UAAW,GAC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AAcA,EACdE,cAAe4B,EACf5E,QAAS3B,EAAM2B,QACf4B,MAAOvD,EAAMuD,SAIrB,CAEA4B,EAAWiD,UAAY,CACrB9H,cAAe+H,EAAAA,QAAUC,OAAOC,WAChC/D,eAAgB6D,EAAS,QAACG,OAC1B/F,YAAa4F,EAAS,QAACC,OACvBhG,SAAU+F,EAAS,QAACC,OACpBvJ,KAAMsJ,EAAAA,QAAUI,MAAM,CAAChK,EAAYC,MAAOD,EAAaC,QACvDiD,QAAS0G,EAAS,QAACK,MAAM,CAAA,GAAIH,WAC7BhF,MAAO8E,EAAS,QAACM,MAGnB,IAAAC,EAAeC,cAzSG,SAAAC,GAAK,MAAK,CAC1BlH,cAAe,CACbjC,SAAU,WACVoJ,IAAK,MACLC,KAAM,MACNC,UAAW,yBAEb3E,OAAQ,CACN7E,MAAO,MACPK,OAAQ,MACRd,SAAU,OACVW,SAAU,YAEZ0E,aAAc,CACZ5E,MAAO,OACPK,OAAQ,OACRd,SAAU,OACVG,UAAW,OACX+J,OAAQ,GAEVhF,WAAY,CAEVtE,gBAAiB,uBAEnB0C,SAAU,CACRpD,SAAU,SACViK,WAAY,SACZC,aAAc,WACdC,WAAY,KAEdrE,aAAc,CACZsE,MAAOR,EAAMS,QAAQC,QAAQC,OAE/BxG,gBAAiB,CACfrD,gBAAiBkJ,EAAMS,QAAQC,QAAQE,OAEzCtG,oBAAqB,CACnBuG,YAAa,GACbC,SAAU,IAEZpG,eAAgB,CACdpE,QAAS,OACTyK,cAAe,SACfpK,MAAO,QAETgE,QAAS,CACP3B,SAAU,GACVuH,WAAY,IACZ5J,MAAO,eAETqE,oBAAqB,CACnBhC,SAAU,GACVuH,WAAY,KAEf,GAmPcR,CAAsB1D"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),t=require("prop-types"),u=require("lodash"),n=require("./Map.css.js"),a=require("../../../../utils/index.js"),l=require("../../../../utils/createAdaptiveRoot.js");require("../../../../config/mapboxGl/index.js");var o=require("../../../../config/mapbox/index.js");require("mapbox-gl/dist/mapbox-gl.css");var i=require("react/jsx-runtime"),c=require("mapbox-gl");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=s(e),f=s(t),p=s(c),m=a.mapbox.isValidCoordinates,v=[29.749907,-95.358421],g="wells-highlight",y={type:"FeatureCollection",features:[]},h=function(e){var r=d.default(e,2),t=r[0];return[r[1],t]};function b(e){var t=e.subjectWell,a=e.wells,c=e.offsetWells,s=e.radius,f=e.subjectWellMarkerSize,b=e.wellMarkerSize,w=e.coordsDataPath,x=r.useRef(null),j=r.useRef(null),S=r.useRef(null),M=r.useRef(null),q=r.useRef(null),C=r.useRef(null),D=r.useRef(),R=r.useState(!1),P=d.default(R,2),F=P[0],W=P[1],k=r.useMemo((function(){return t&&u.get(t,w)}),[t,w]);r.useEffect((function(){if(o.IS_MAPBOX_ENABLED){j.current=new p.default.Map({container:x.current,style:"mapbox://styles/mapbox/dark-v9",center:h(v),zoom:1,attributionControl:!1,scrollZoom:!1}),j.current.addControl(new p.default.NavigationControl({showCompass:!1}),"bottom-right"),j.current.on("load",(function(){j.current.addSource("radius-circle",{type:"geojson",data:y}),j.current.addLayer({id:"radius-circle",type:"fill",source:"radius-circle",paint:{"fill-color":"#03BCD4","fill-opacity":.2}}),j.current.addSource("wells",{type:"geojson",data:y}),j.current.addLayer({id:"wells",type:"circle",source:"wells",paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":["get","opacity"]}}),j.current.addSource(g,{type:"geojson",data:y}),j.current.addLayer({id:g,type:"circle",source:g,paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":.2}}),W(!0)}));var e=j.current;return function(){var r;null===(r=q.current)||void 0===r||r.unmount(),q.current=null,C.current=null,e.remove(),j.current=null,S.current=null}}}),[]),r.useEffect((function(){if(j.current&&F)if(k){var e=function(e,r){for(var t=d.default(e,2),u=t[0],n=t[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,l=[],o=r/(111320*Math.cos(u*Math.PI/180)),i=r/110574,c=0;c<=a;c+=1){var s=c/a*(2*Math.PI);l.push([n+o*Math.cos(s),u+i*Math.sin(s)])}return l}(k,1609.34*s);j.current.getSource("radius-circle").setData({type:"Feature",geometry:{type:"Polygon",coordinates:[e]}})}else j.current.getSource("radius-circle").setData(y)}),[s,k,F]);return r.useEffect((function(){var e;if(j.current&&F){var n=D.current;D.current=a,null===(e=M.current)||void 0===e||e.remove(),j.current.getSource(g).setData(y);var o=c.map((function(e){return e.id})),s=[],d={},v=new p.default.LngLatBounds;a.forEach((function(e){var r=u.get(e,w);if(r&&m(r)){var n=t&&t.id===e.id,a=o.includes(e.id),l=n?f:b,i=n||a?1:.3;d[e.id]=e,v.extend(h(r)),s.push({type:"Feature",geometry:{type:"Point",coordinates:h(r)},properties:{wellId:e.id,radius:l,opacity:i}})}})),j.current.getSource("wells").setData({type:"FeatureCollection",features:s}),S.current=s.length?v:null;var x=j.current,R=null,P=function(e){x.getCanvas().style.cursor="pointer";var t=d[e.features[0].properties.wellId];if(t&&t.id!==R){R=t.id;var n=u.get(t,w);C.current||(C.current=document.createElement("div"),q.current=l.createAdaptiveRoot(C.current)),q.current.render(r.createElement((function(e){var r=e.well;return i.jsx("div",{style:{color:"#fff",background:"##414141"},children:i.jsx("span",{style:{fontSize:"11px",lineHeight:"16px"},children:u.get(r,"name")})})}),{well:t})),M.current||(M.current=new p.default.Popup({closeButton:!1,maxWidth:"none"})),M.current.setLngLat(h(n)).setDOMContent(C.current).addTo(x),function(e,r){j.current.getSource(g).setData({type:"Feature",geometry:{type:"Point",coordinates:h(e)},properties:{radius:3*r}})}(n,e.features[0].properties.radius)}},W=function(){var e;R=null,x.getCanvas().style.cursor="",x.getSource(g).setData(y),null===(e=M.current)||void 0===e||e.remove()},k=function(e){null!=e&&e.point&&x.queryRenderedFeatures(e.point,{layers:[g]}).length||W()};return x.on("mousemove","wells",P),x.on("mouseleave","wells",k),x.on("mouseleave",g,W),setTimeout((function(){j.current&&S.current&&a!==n&&j.current.fitBounds(S.current)}),500),function(){x.off("mousemove","wells",P),x.off("mouseleave","wells",k),x.off("mouseleave",g,W)}}}),[t,a,c,F]),i.jsx("div",{className:n.map,children:i.jsx("div",{className:n.mapMain,ref:x})})}b.propTypes={subjectWell:f.default.shape({id:f.default.number,formation:f.default.string}),wells:f.default.arrayOf(f.default.shape({})).isRequired,offsetWells:f.default.arrayOf(f.default.shape({})),radius:f.default.number.isRequired,subjectWellMarkerSize:f.default.number,wellMarkerSize:f.default.number,coordsDataPath:f.default.string},b.defaultProps={subjectWell:null,subjectWellMarkerSize:8,wellMarkerSize:5,coordsDataPath:"settings.top_hole.coordinates",offsetWells:null};var w=r.memo(b);module.exports=w;
1
+ "use strict";var e=require("@babel/runtime/helpers/slicedToArray"),r=require("react"),t=require("prop-types"),u=require("lodash"),n=require("./Map.css.js"),a=require("../../../../utils/index.js"),l=require("../../../../utils/createAdaptiveRoot.js");require("../../../../config/mapboxGl/index.js");var o=require("../../../../config/mapbox/index.js");require("mapbox-gl/dist/mapbox-gl.css");var i=require("react/jsx-runtime"),c=require("mapbox-gl");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=s(e),f=s(t),p=s(c),v=a.mapbox.isValidCoordinates,m=[29.749907,-95.358421],g="wells-highlight",y={type:"FeatureCollection",features:[]},h=function(e){var r=d.default(e,2),t=r[0];return[r[1],t]};function b(e){var t=e.subjectWell,a=void 0===t?null:t,c=e.wells,s=e.offsetWells,f=void 0===s?null:s,b=e.radius,j=e.subjectWellMarkerSize,S=void 0===j?w:j,q=e.wellMarkerSize,M=void 0===q?x:q,C=e.coordsDataPath,R=void 0===C?"settings.top_hole.coordinates":C,D=r.useRef(null),F=r.useRef(null),P=r.useRef(null),E=r.useRef(null),L=r.useRef(null),W=r.useRef(null),k=r.useRef(),z=r.useState(!1),B=d.default(z,2),A=B[0],I=B[1],N=r.useMemo((function(){return a&&u.get(a,R)}),[a,R]);r.useEffect((function(){if(o.IS_MAPBOX_ENABLED){F.current=new p.default.Map({container:D.current,style:"mapbox://styles/mapbox/dark-v9",center:h(m),zoom:1,attributionControl:!1,scrollZoom:!1}),F.current.addControl(new p.default.NavigationControl({showCompass:!1}),"bottom-right"),F.current.on("load",(function(){F.current.addSource("radius-circle",{type:"geojson",data:y}),F.current.addLayer({id:"radius-circle",type:"fill",source:"radius-circle",paint:{"fill-color":"#03BCD4","fill-opacity":.2}}),F.current.addSource("wells",{type:"geojson",data:y}),F.current.addLayer({id:"wells",type:"circle",source:"wells",paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":["get","opacity"]}}),F.current.addSource(g,{type:"geojson",data:y}),F.current.addLayer({id:g,type:"circle",source:g,paint:{"circle-radius":["get","radius"],"circle-color":"#FFC107","circle-opacity":.2}}),I(!0)}));var e=F.current;return function(){var r;null===(r=L.current)||void 0===r||r.unmount(),L.current=null,W.current=null,e.remove(),F.current=null,P.current=null}}}),[]),r.useEffect((function(){if(F.current&&A)if(N){var e=function(e,r){for(var t=d.default(e,2),u=t[0],n=t[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,l=[],o=r/(111320*Math.cos(u*Math.PI/180)),i=r/110574,c=0;c<=a;c+=1){var s=c/a*(2*Math.PI);l.push([n+o*Math.cos(s),u+i*Math.sin(s)])}return l}(N,1609.34*b);F.current.getSource("radius-circle").setData({type:"Feature",geometry:{type:"Polygon",coordinates:[e]}})}else F.current.getSource("radius-circle").setData(y)}),[b,N,A]);return r.useEffect((function(){var e;if(F.current&&A){var t=k.current;k.current=c,null===(e=E.current)||void 0===e||e.remove(),F.current.getSource(g).setData(y);var n=f.map((function(e){return e.id})),o=[],s={},d=new p.default.LngLatBounds;c.forEach((function(e){var r=u.get(e,R);if(r&&v(r)){var t=a&&a.id===e.id,l=n.includes(e.id),i=t?S:M,c=t||l?1:.3;s[e.id]=e,d.extend(h(r)),o.push({type:"Feature",geometry:{type:"Point",coordinates:h(r)},properties:{wellId:e.id,radius:i,opacity:c}})}})),F.current.getSource("wells").setData({type:"FeatureCollection",features:o}),P.current=o.length?d:null;var m=F.current,b=null,w=function(e){m.getCanvas().style.cursor="pointer";var t=s[e.features[0].properties.wellId];if(t&&t.id!==b){b=t.id;var n=u.get(t,R);W.current||(W.current=document.createElement("div"),L.current=l.createAdaptiveRoot(W.current)),L.current.render(r.createElement((function(e){var r=e.well;return i.jsx("div",{style:{color:"#fff",background:"##414141"},children:i.jsx("span",{style:{fontSize:"11px",lineHeight:"16px"},children:u.get(r,"name")})})}),{well:t})),E.current||(E.current=new p.default.Popup({closeButton:!1,maxWidth:"none"})),E.current.setLngLat(h(n)).setDOMContent(W.current).addTo(m),function(e,r){F.current.getSource(g).setData({type:"Feature",geometry:{type:"Point",coordinates:h(e)},properties:{radius:3*r}})}(n,e.features[0].properties.radius)}},x=function(){var e;b=null,m.getCanvas().style.cursor="",m.getSource(g).setData(y),null===(e=E.current)||void 0===e||e.remove()},j=function(e){null!=e&&e.point&&m.queryRenderedFeatures(e.point,{layers:[g]}).length||x()};return m.on("mousemove","wells",w),m.on("mouseleave","wells",j),m.on("mouseleave",g,x),setTimeout((function(){F.current&&P.current&&c!==t&&F.current.fitBounds(P.current)}),500),function(){m.off("mousemove","wells",w),m.off("mouseleave","wells",j),m.off("mouseleave",g,x)}}}),[a,c,f,A]),i.jsx("div",{className:n.map,children:i.jsx("div",{className:n.mapMain,ref:D})})}b.propTypes={subjectWell:f.default.shape({id:f.default.number,formation:f.default.string}),wells:f.default.arrayOf(f.default.shape({})).isRequired,offsetWells:f.default.arrayOf(f.default.shape({})),radius:f.default.number.isRequired,subjectWellMarkerSize:f.default.number,wellMarkerSize:f.default.number,coordsDataPath:f.default.string};var w=8,x=5,j=r.memo(b);module.exports=j;
2
2
  //# sourceMappingURL=Map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Map.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { get } from 'lodash';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 8;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#FFC107';\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst HIGHLIGHT_ID = 'wells-highlight';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\nconst toolTip =\n () =>\n // eslint-disable-next-line react/prop-types\n ({ well }) => {\n return (\n <div style={{ color: '#fff', background: '##414141' }}>\n <span style={{ fontSize: '11px', lineHeight: '16px' }}>{get(well, 'name')}</span>\n </div>\n );\n };\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell,\n wells,\n offsetWells,\n radius,\n subjectWellMarkerSize,\n wellMarkerSize,\n coordsDataPath,\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const tooltipRootRef = useRef(null);\n const tooltipContainerRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack),\n // and the hover highlight layer last so it renders on top of the markers\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n mapRef.current.addSource(HIGHLIGHT_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: HIGHLIGHT_ID,\n type: 'circle',\n source: HIGHLIGHT_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': 0.2,\n },\n });\n\n setIsMapReady(true);\n });\n\n const map = mapRef.current;\n return () => {\n tooltipRootRef.current?.unmount();\n tooltipRootRef.current = null;\n tooltipContainerRef.current = null;\n\n map.remove();\n mapRef.current = null;\n markersBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n }, [radius, subjectWellCoords, isMapReady]);\n\n const handleMouseOver = (coords, r) => {\n // Highlight the hovered well with a bigger translucent circle\n mapRef.current.getSource(HIGHLIGHT_ID).setData({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { radius: r * 3 },\n });\n };\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n popupRef.current?.remove();\n mapRef.current.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { wellId: well.id, radius: r, opacity },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n const coords = get(well, coordsDataPath);\n\n // Tooltip\n if (!tooltipContainerRef.current) {\n tooltipContainerRef.current = document.createElement('div');\n tooltipRootRef.current = createAdaptiveRoot(tooltipContainerRef.current);\n }\n tooltipRootRef.current.render(createElement(toolTip(), { well }));\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(coords))\n .setDOMContent(tooltipContainerRef.current)\n .addTo(map);\n\n // Highlight\n handleMouseOver(coords, e.features[0].properties.radius);\n };\n\n // NOTE: was the mouseout handler of the Leaflet highlight marker\n const handleHighlightMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n map.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n popupRef.current?.remove();\n };\n\n // NOTE: If the pointer exits before the highlight renders under it, the highlight\n // layer never emits mouseleave — clear here unless the cursor is inside the highlight\n const handleWellsMouseLeave = e => {\n if (e?.point && map.queryRenderedFeatures(e.point, { layers: [HIGHLIGHT_ID] }).length) {\n return;\n }\n handleHighlightMouseLeave();\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.on('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n\n setTimeout(() => {\n if (mapRef.current && markersBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.off('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n };\n }, [subjectWell, wells, offsetWells, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n coordsDataPath: PropTypes.string,\n};\n\nWellsMap.defaultProps = {\n subjectWell: null,\n subjectWellMarkerSize: DEFAULT_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize: DEFAULT_WELL_MARKER_SIZE,\n coordsDataPath: 'settings.top_hole.coordinates',\n offsetWells: null,\n};\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","HIGHLIGHT_ID","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref6","subjectWell","wells","offsetWells","radius","subjectWellMarkerSize","wellMarkerSize","coordsDataPath","mapContainerRef","useRef","mapRef","markersBoundsRef","popupRef","tooltipRootRef","tooltipContainerRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","subjectWellCoords","useMemo","get","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","id","source","paint","map","_tooltipRootRef$curre","unmount","remove","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","push","sin","makeCirclePolygon","getSource","setData","geometry","coordinates","_popupRef$current","prevWells","offsetWellIds","well","wellsById","bounds","LngLatBounds","forEach","coords","isWellSubject","isWellOffset","includes","r","opacity","extend","properties","wellId","length","hoveredWellId","handleMouseMove","e","getCanvas","cursor","document","createElement","createAdaptiveRoot","render","_ref5","_jsx","color","background","children","jsx","fontSize","lineHeight","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseOver","handleHighlightMouseLeave","_popupRef$current2","handleWellsMouseLeave","point","queryRenderedFeatures","layers","setTimeout","fitBounds","off","className","styles","mapMain","ref","propTypes","PropTypes","shape","number","formation","string","arrayOf","isRequired","defaultProps","memo"],"mappings":"giBAYQA,EAAuBC,EAAMA,OAA7BD,mBAQFE,EAAiB,CAAC,WAAY,WAI9BC,EAAe,kBACfC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAElEC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,EAAGF,EAAA,GAAK,MAAM,CAANA,EAAA,GAAYE,EAAI,EA0B3C,SAASC,EAQNC,GAAA,IAPDC,IAAAA,YACAC,IAAAA,MACAC,IAAAA,YACAC,IAAAA,OACAC,IAAAA,sBACAC,IAAAA,eACAC,IAAAA,eAEMC,EAAkBC,SAAO,MACzBC,EAASD,SAAO,MAChBE,EAAmBF,SAAO,MAC1BG,EAAWH,SAAO,MAClBI,EAAiBJ,SAAO,MACxBK,EAAsBL,SAAO,MAC7BM,EAAeN,EAAAA,SACeO,EAAAA,EAAQA,UAAC,GAAMC,EAAApB,EAAAA,QAAAqB,EAAA,GAA5CC,EAAUF,EAAA,GAAEG,EAAaH,EAAA,GAE1BI,EAAoBC,EAAAA,SAAQ,WAChC,OAAOrB,GAAesB,EAAAA,IAAItB,EAAaM,EACzC,GAAG,CAACN,EAAaM,IAGjBiB,EAAAA,WAAU,WACR,GAAKC,EAAAA,kBAAL,CAEAf,EAAOgB,QAAU,IAAIC,EAAQ,QAACC,IAAI,CAChCC,UAAWrB,EAAgBkB,QAC3BI,MAAO,iCACPC,OAAQrC,EAASL,GACjB2C,KAAM,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EAAS,QAACK,QAAQL,EAAAA,QAAUC,MAAM,CAAA,IAAKK,WAC9ChI,YAAa0H,EAAS,QAACK,QAAQL,EAAS,QAACC,MAAM,CAAE,IACjD1H,OAAQyH,EAAAA,QAAUE,OAAOI,WACzB9H,sBAAuBwH,EAAS,QAACE,OACjCzH,eAAgBuH,EAAS,QAACE,OAC1BxH,eAAgBsH,EAAS,QAACI,QAG5BlI,EAASqI,aAAe,CACtBnI,YAAa,KACbI,sBAjSuC,EAkSvCC,eAjS+B,EAkS/BC,eAAgB,gCAChBJ,YAAa,MAGf,IAAekI,EAAAA,EAAAA,KAAKtI"}
1
+ {"version":3,"file":"Map.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/Map/Map.js"],"sourcesContent":["import { createElement, memo, useRef, useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { get } from 'lodash';\n\nimport styles from './Map.css';\n\nimport { mapbox } from '~/utils';\nimport { createAdaptiveRoot } from '~/utils/createAdaptiveRoot';\nimport mapboxgl from '~/config/mapboxGl';\nimport { IS_MAPBOX_ENABLED } from '~/config/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nconst { isValidCoordinates } = mapbox;\n\nconst RADIUS_CIRCLE_COLOR = '#03BCD4';\nconst METERS_IN_MILE = 1609.34;\nconst DEFAULT_SUBJECT_WELL_MARKER_SIZE = 8;\nconst DEFAULT_WELL_MARKER_SIZE = 5;\nconst OFFSET_WELL_COLOR = '#FFC107';\n\nconst DEFAULT_COORDS = [29.749907, -95.358421]; // TX coordinates\n\nconst RADIUS_CIRCLE_ID = 'radius-circle';\nconst WELLS_ID = 'wells';\nconst HIGHLIGHT_ID = 'wells-highlight';\nconst EMPTY_FEATURE_COLLECTION = { type: 'FeatureCollection', features: [] };\n\nconst toLngLat = ([lat, lng]) => [lng, lat];\n\n// NOTE: mapbox-gl has no geographic-radius circle primitive, so approximate it with a polygon\nconst makeCirclePolygon = ([lat, lng], radiusMeters, points = 64) => {\n const ring = [];\n const distanceX = radiusMeters / (111320 * Math.cos((lat * Math.PI) / 180));\n const distanceY = radiusMeters / 110574;\n for (let i = 0; i <= points; i += 1) {\n const theta = (i / points) * (2 * Math.PI);\n ring.push([lng + distanceX * Math.cos(theta), lat + distanceY * Math.sin(theta)]);\n }\n return ring;\n};\n\nconst toolTip =\n () =>\n // eslint-disable-next-line react/prop-types\n ({ well }) => {\n return (\n <div style={{ color: '#fff', background: '##414141' }}>\n <span style={{ fontSize: '11px', lineHeight: '16px' }}>{get(well, 'name')}</span>\n </div>\n );\n };\n\n// eslint-disable-next-line no-unused-vars\nfunction WellsMap({\n subjectWell = null,\n wells,\n offsetWells = null,\n radius,\n subjectWellMarkerSize = DEFAULT_WELLS_MAP_SUBJECT_WELL_MARKER_SIZE,\n wellMarkerSize = DEFAULT_WELLS_MAP_WELL_MARKER_SIZE,\n coordsDataPath = 'settings.top_hole.coordinates',\n}) {\n const mapContainerRef = useRef(null);\n const mapRef = useRef(null);\n const markersBoundsRef = useRef(null);\n const popupRef = useRef(null);\n const tooltipRootRef = useRef(null);\n const tooltipContainerRef = useRef(null);\n const prevWellsRef = useRef();\n const [isMapReady, setIsMapReady] = useState(false);\n\n const subjectWellCoords = useMemo(() => {\n return subjectWell && get(subjectWell, coordsDataPath);\n }, [subjectWell, coordsDataPath]);\n\n // NOTE: Initialize map\n useEffect(() => {\n if (!IS_MAPBOX_ENABLED) return undefined;\n\n mapRef.current = new mapboxgl.Map({\n container: mapContainerRef.current,\n style: 'mapbox://styles/mapbox/dark-v9',\n center: toLngLat(DEFAULT_COORDS),\n zoom: 1,\n attributionControl: false,\n scrollZoom: false,\n });\n\n mapRef.current.addControl(\n new mapboxgl.NavigationControl({ showCompass: false }),\n 'bottom-right'\n );\n\n // NOTE: Sources/layers can only be added once the style has loaded.\n // The radius circle layer is added first so well markers render above it (was bringToBack),\n // and the hover highlight layer last so it renders on top of the markers\n mapRef.current.on('load', () => {\n mapRef.current.addSource(RADIUS_CIRCLE_ID, {\n type: 'geojson',\n data: EMPTY_FEATURE_COLLECTION,\n });\n mapRef.current.addLayer({\n id: RADIUS_CIRCLE_ID,\n type: 'fill',\n source: RADIUS_CIRCLE_ID,\n paint: {\n 'fill-color': RADIUS_CIRCLE_COLOR,\n 'fill-opacity': 0.2,\n },\n });\n\n mapRef.current.addSource(WELLS_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: WELLS_ID,\n type: 'circle',\n source: WELLS_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': ['get', 'opacity'],\n },\n });\n\n mapRef.current.addSource(HIGHLIGHT_ID, { type: 'geojson', data: EMPTY_FEATURE_COLLECTION });\n mapRef.current.addLayer({\n id: HIGHLIGHT_ID,\n type: 'circle',\n source: HIGHLIGHT_ID,\n paint: {\n 'circle-radius': ['get', 'radius'],\n 'circle-color': OFFSET_WELL_COLOR,\n 'circle-opacity': 0.2,\n },\n });\n\n setIsMapReady(true);\n });\n\n const map = mapRef.current;\n return () => {\n tooltipRootRef.current?.unmount();\n tooltipRootRef.current = null;\n tooltipContainerRef.current = null;\n\n map.remove();\n mapRef.current = null;\n markersBoundsRef.current = null;\n };\n }, []);\n\n // NOTE: Radius circle\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return;\n }\n\n if (!subjectWellCoords) {\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData(EMPTY_FEATURE_COLLECTION);\n return;\n }\n\n const ring = makeCirclePolygon(subjectWellCoords, radius * METERS_IN_MILE);\n mapRef.current.getSource(RADIUS_CIRCLE_ID).setData({\n type: 'Feature',\n geometry: { type: 'Polygon', coordinates: [ring] },\n });\n }, [radius, subjectWellCoords, isMapReady]);\n\n const handleMouseOver = (coords, r) => {\n // Highlight the hovered well with a bigger translucent circle\n mapRef.current.getSource(HIGHLIGHT_ID).setData({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { radius: r * 3 },\n });\n };\n\n // NOTE: Well markers\n useEffect(() => {\n if (!mapRef.current || !isMapReady) {\n return undefined;\n }\n\n const prevWells = prevWellsRef.current;\n prevWellsRef.current = wells;\n\n popupRef.current?.remove();\n mapRef.current.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n\n const offsetWellIds = offsetWells.map(well => well.id);\n\n const features = [];\n const wellsById = {};\n const bounds = new mapboxgl.LngLatBounds();\n wells.forEach(well => {\n const coords = get(well, coordsDataPath);\n\n if (coords && isValidCoordinates(coords)) {\n const isWellSubject = subjectWell && subjectWell.id === well.id;\n const isWellOffset = offsetWellIds.includes(well.id);\n const r = isWellSubject ? subjectWellMarkerSize : wellMarkerSize;\n const opacity = isWellSubject || isWellOffset ? 1 : 0.3;\n\n wellsById[well.id] = well;\n bounds.extend(toLngLat(coords));\n features.push({\n type: 'Feature',\n geometry: { type: 'Point', coordinates: toLngLat(coords) },\n properties: { wellId: well.id, radius: r, opacity },\n });\n }\n });\n\n mapRef.current.getSource(WELLS_ID).setData({ type: 'FeatureCollection', features });\n markersBoundsRef.current = features.length ? bounds : null;\n\n const map = mapRef.current;\n let hoveredWellId = null;\n\n const handleMouseMove = e => {\n map.getCanvas().style.cursor = 'pointer';\n\n const well = wellsById[e.features[0].properties.wellId];\n if (!well || well.id === hoveredWellId) {\n return;\n }\n hoveredWellId = well.id;\n\n const coords = get(well, coordsDataPath);\n\n // Tooltip\n if (!tooltipContainerRef.current) {\n tooltipContainerRef.current = document.createElement('div');\n tooltipRootRef.current = createAdaptiveRoot(tooltipContainerRef.current);\n }\n tooltipRootRef.current.render(createElement(toolTip(), { well }));\n\n if (!popupRef.current) {\n popupRef.current = new mapboxgl.Popup({ closeButton: false, maxWidth: 'none' });\n }\n popupRef.current\n .setLngLat(toLngLat(coords))\n .setDOMContent(tooltipContainerRef.current)\n .addTo(map);\n\n // Highlight\n handleMouseOver(coords, e.features[0].properties.radius);\n };\n\n // NOTE: was the mouseout handler of the Leaflet highlight marker\n const handleHighlightMouseLeave = () => {\n hoveredWellId = null;\n map.getCanvas().style.cursor = '';\n map.getSource(HIGHLIGHT_ID).setData(EMPTY_FEATURE_COLLECTION);\n popupRef.current?.remove();\n };\n\n // NOTE: If the pointer exits before the highlight renders under it, the highlight\n // layer never emits mouseleave — clear here unless the cursor is inside the highlight\n const handleWellsMouseLeave = e => {\n if (e?.point && map.queryRenderedFeatures(e.point, { layers: [HIGHLIGHT_ID] }).length) {\n return;\n }\n handleHighlightMouseLeave();\n };\n\n map.on('mousemove', WELLS_ID, handleMouseMove);\n map.on('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.on('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n\n setTimeout(() => {\n if (mapRef.current && markersBoundsRef.current && wells !== prevWells) {\n mapRef.current.fitBounds(markersBoundsRef.current);\n }\n }, 500);\n\n return () => {\n map.off('mousemove', WELLS_ID, handleMouseMove);\n map.off('mouseleave', WELLS_ID, handleWellsMouseLeave);\n map.off('mouseleave', HIGHLIGHT_ID, handleHighlightMouseLeave);\n };\n }, [subjectWell, wells, offsetWells, isMapReady]);\n\n return (\n <div className={styles.map}>\n <div className={styles.mapMain} ref={mapContainerRef} />\n </div>\n );\n}\n\nWellsMap.propTypes = {\n subjectWell: PropTypes.shape({\n id: PropTypes.number,\n formation: PropTypes.string,\n }),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})),\n radius: PropTypes.number.isRequired,\n subjectWellMarkerSize: PropTypes.number,\n wellMarkerSize: PropTypes.number,\n coordsDataPath: PropTypes.string,\n};\n\nconst DEFAULT_WELLS_MAP_SUBJECT_WELL_MARKER_SIZE = DEFAULT_SUBJECT_WELL_MARKER_SIZE;\nconst DEFAULT_WELLS_MAP_WELL_MARKER_SIZE = DEFAULT_WELL_MARKER_SIZE;\n\nexport default memo(WellsMap);\n"],"names":["isValidCoordinates","mapbox","DEFAULT_COORDS","HIGHLIGHT_ID","EMPTY_FEATURE_COLLECTION","type","features","toLngLat","_ref","_ref2","_slicedToArray","lat","WellsMap","_ref6","_ref6$subjectWell","subjectWell","wells","_ref6$offsetWells","offsetWells","radius","_ref6$subjectWellMark","subjectWellMarkerSize","DEFAULT_WELLS_MAP_SUBJECT_WELL_MARKER_SIZE","_ref6$wellMarkerSize","wellMarkerSize","DEFAULT_WELLS_MAP_WELL_MARKER_SIZE","_ref6$coordsDataPath","coordsDataPath","mapContainerRef","useRef","mapRef","markersBoundsRef","popupRef","tooltipRootRef","tooltipContainerRef","prevWellsRef","useState","_useState2","_useState","isMapReady","setIsMapReady","subjectWellCoords","useMemo","get","useEffect","IS_MAPBOX_ENABLED","current","mapboxgl","Map","container","style","center","zoom","attributionControl","scrollZoom","addControl","NavigationControl","showCompass","on","addSource","data","addLayer","id","source","paint","map","_tooltipRootRef$curre","unmount","remove","ring","_ref3","radiusMeters","_ref4","lng","points","distanceX","Math","cos","PI","distanceY","i","theta","push","sin","makeCirclePolygon","getSource","setData","geometry","coordinates","_popupRef$current","prevWells","offsetWellIds","well","wellsById","bounds","LngLatBounds","forEach","coords","isWellSubject","isWellOffset","includes","r","opacity","extend","properties","wellId","length","hoveredWellId","handleMouseMove","e","getCanvas","cursor","document","createElement","createAdaptiveRoot","render","_ref5","_jsx","color","background","children","jsx","fontSize","lineHeight","Popup","closeButton","maxWidth","setLngLat","setDOMContent","addTo","handleMouseOver","handleHighlightMouseLeave","_popupRef$current2","handleWellsMouseLeave","point","queryRenderedFeatures","layers","setTimeout","fitBounds","off","className","styles","mapMain","ref","propTypes","PropTypes","shape","number","formation","string","arrayOf","isRequired","memo"],"mappings":"giBAYQA,EAAuBC,EAAMA,OAA7BD,mBAQFE,EAAiB,CAAC,WAAY,WAI9BC,EAAe,kBACfC,EAA2B,CAAEC,KAAM,oBAAqBC,SAAU,IAElEC,EAAW,SAAHC,GAAA,IAAAC,EAAAC,EAAAA,QAAAF,EAAA,GAAKG,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("classnames"),s=require("./Map.js"),l=require("./index.css.js"),t=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(a),i=u(r);function o(e){var a=e.subjectWell,r=e.wells,u=e.offsetWells,d=e.radius,o=e.mapHidden,f=i.default(l.mapContainer,o&&l.mapContainerHidden);return t.jsx("div",{className:f,children:t.jsx(s,{subjectWell:a,wells:r,offsetWells:u,radius:d,coordsDataPath:"topHole.coordinates"})})}o.propTypes={subjectWell:d.default.shape({}),wells:d.default.arrayOf(d.default.shape({})).isRequired,offsetWells:d.default.arrayOf(d.default.shape({})).isRequired,radius:d.default.number,mapHidden:d.default.bool},o.defaultProps={subjectWell:null,radius:5,mapHidden:!1};var f=e.memo(o);module.exports=f;
1
+ "use strict";var e=require("react"),r=require("prop-types"),a=require("classnames"),s=require("./Map.js"),l=require("./index.css.js"),t=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(r),i=u(a);function o(e){var r=e.subjectWell,a=void 0===r?null:r,u=e.wells,d=e.offsetWells,o=e.radius,f=void 0===o?5:o,n=e.mapHidden,p=void 0!==n&&n,c=i.default(l.mapContainer,p&&l.mapContainerHidden);return t.jsx("div",{className:c,children:t.jsx(s,{subjectWell:a,wells:u,offsetWells:d,radius:f,coordsDataPath:"topHole.coordinates"})})}o.propTypes={subjectWell:d.default.shape({}),wells:d.default.arrayOf(d.default.shape({})).isRequired,offsetWells:d.default.arrayOf(d.default.shape({})).isRequired,radius:d.default.number,mapHidden:d.default.bool};var f=e.memo(o);module.exports=f;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/Map/index.js"],"sourcesContent":["import { memo } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport Map from './Map';\n\nimport styles from './index.css';\n\nfunction MapContainer({ subjectWell, wells, offsetWells, radius, mapHidden }) {\n const containerClass = classNames(styles.mapContainer, mapHidden && styles.mapContainerHidden);\n\n return (\n <div className={containerClass}>\n <Map\n subjectWell={subjectWell}\n wells={wells}\n offsetWells={offsetWells}\n radius={radius}\n coordsDataPath=\"topHole.coordinates\"\n />\n </div>\n );\n}\n\nMapContainer.propTypes = {\n subjectWell: PropTypes.shape({}),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n radius: PropTypes.number,\n mapHidden: PropTypes.bool,\n};\n\nMapContainer.defaultProps = {\n subjectWell: null,\n radius: 5,\n mapHidden: false,\n};\n\nexport default memo(MapContainer);\n"],"names":["MapContainer","_ref","subjectWell","wells","offsetWells","radius","mapHidden","containerClass","classNames","styles","mapContainer","mapContainerHidden","_jsx","className","children","Map","coordsDataPath","propTypes","PropTypes","shape","arrayOf","isRequired","number","bool","defaultProps","memo"],"mappings":"+PAQA,SAASA,EAAqEC,GAAA,IAAtDC,IAAAA,YAAaC,IAAAA,MAAOC,IAAAA,YAAaC,IAAAA,OAAQC,IAAAA,UACzDC,EAAiBC,EAAAA,QAAWC,EAAOC,aAAcJ,GAAaG,EAAOE,oBAE3E,OACEC,EAAAA,IAAA,MAAA,CAAKC,UAAWN,EAAeO,SAC7BF,MAACG,EAAG,CACFb,YAAaA,EACbC,MAAOA,EACPC,YAAaA,EACbC,OAAQA,EACRW,eAAe,yBAIvB,CAEAhB,EAAaiB,UAAY,CACvBf,YAAagB,EAAAA,QAAUC,MAAM,IAC7BhB,MAAOe,EAAS,QAACE,QAAQF,EAAAA,QAAUC,MAAM,CAAA,IAAKE,WAC9CjB,YAAac,EAAS,QAACE,QAAQF,EAAAA,QAAUC,MAAM,CAAA,IAAKE,WACpDhB,OAAQa,EAAS,QAACI,OAClBhB,UAAWY,EAAS,QAACK,MAGvBvB,EAAawB,aAAe,CAC1BtB,YAAa,KACbG,OAAQ,EACRC,WAAW,GAGb,IAAemB,EAAAA,EAAAA,KAAKzB"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/Map/index.js"],"sourcesContent":["import { memo } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport Map from './Map';\n\nimport styles from './index.css';\n\nfunction MapContainer({ subjectWell = null, wells, offsetWells, radius = 5, mapHidden = false }) {\n const containerClass = classNames(styles.mapContainer, mapHidden && styles.mapContainerHidden);\n\n return (\n <div className={containerClass}>\n <Map\n subjectWell={subjectWell}\n wells={wells}\n offsetWells={offsetWells}\n radius={radius}\n coordsDataPath=\"topHole.coordinates\"\n />\n </div>\n );\n}\n\nMapContainer.propTypes = {\n subjectWell: PropTypes.shape({}),\n wells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n offsetWells: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n radius: PropTypes.number,\n mapHidden: PropTypes.bool,\n};\n\nexport default memo(MapContainer);\n"],"names":["MapContainer","_ref","_ref$subjectWell","subjectWell","wells","offsetWells","_ref$radius","radius","_ref$mapHidden","mapHidden","containerClass","classNames","styles","mapContainer","mapContainerHidden","_jsx","className","children","Map","coordsDataPath","propTypes","PropTypes","shape","arrayOf","isRequired","number","bool","memo"],"mappings":"+PAQA,SAASA,EAAwFC,GAAA,IAAAC,EAAAD,EAAzEE,YAAAA,aAAc,KAAID,EAAEE,IAAAA,MAAOC,IAAAA,YAAWC,EAAAL,EAAEM,OAAAA,aAAS,EAACD,EAAAE,EAAAP,EAAEQ,UAAAA,cAAiBD,EACrFE,EAAiBC,EAAAA,QAAWC,EAAOC,aAAcJ,GAAaG,EAAOE,oBAE3E,OACEC,EAAAA,IAAA,MAAA,CAAKC,UAAWN,EAAeO,SAC7BF,MAACG,EAAG,CACFf,YAAaA,EACbC,MAAOA,EACPC,YAAaA,EACbE,OAAQA,EACRY,eAAe,yBAIvB,CAEAnB,EAAaoB,UAAY,CACvBjB,YAAakB,EAAAA,QAAUC,MAAM,IAC7BlB,MAAOiB,EAAS,QAACE,QAAQF,EAAAA,QAAUC,MAAM,CAAA,IAAKE,WAC9CnB,YAAagB,EAAS,QAACE,QAAQF,EAAAA,QAAUC,MAAM,CAAA,IAAKE,WACpDjB,OAAQc,EAAS,QAACI,OAClBhB,UAAWY,EAAS,QAACK,MAGvB,IAAeC,EAAAA,EAAAA,KAAK3B"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("prop-types"),t=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e);function d(e){var i=e.bgColor,r=e.textColor,d=e.width,n=e.height,o=e.fontSize,u=e.children,a=e["data-testid"],l={borderRadius:"calc(100vh)",background:i,color:r,fontSize:o,width:d,height:n,display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"normal",minWidth:24};return t.jsx("div",{"data-testid":a,style:l,children:u})}d.propTypes={bgColor:r.default.string.isRequired,textColor:r.default.string.isRequired,width:r.default.number,height:r.default.number,fontSize:r.default.number,children:r.default.node.isRequired,"data-testid":r.default.string},d.defaultProps={width:24,height:24,fontSize:12,"data-testid":"NumberCircle"},module.exports=d;
1
+ "use strict";var e=require("prop-types"),t=require("react/jsx-runtime");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e);function d(e){var i=e.bgColor,r=e.textColor,d=e.width,o=void 0===d?24:d,n=e.height,u=void 0===n?24:n,a=e.fontSize,l=void 0===a?12:a,s=e.children,f=e["data-testid"],c=void 0===f?"NumberCircle":f,h={borderRadius:"calc(100vh)",background:i,color:r,fontSize:l,width:o,height:u,display:"flex",justifyContent:"center",alignItems:"center",fontWeight:"normal",minWidth:24};return t.jsx("div",{"data-testid":c,style:h,children:s})}d.propTypes={bgColor:r.default.string.isRequired,textColor:r.default.string.isRequired,width:r.default.number,height:r.default.number,fontSize:r.default.number,children:r.default.node.isRequired,"data-testid":r.default.string},module.exports=d;
2
2
  //# sourceMappingURL=NumberCircle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberCircle.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nfunction NumberCircle({\n bgColor,\n textColor,\n width,\n height,\n fontSize,\n children,\n 'data-testid': dataTestId,\n}) {\n const style = {\n borderRadius: 'calc(100vh)',\n background: bgColor,\n color: textColor,\n fontSize,\n width,\n height,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n fontWeight: 'normal',\n minWidth: 24,\n };\n\n return (\n <div data-testid={dataTestId} style={style}>\n {children}\n </div>\n );\n}\n\nNumberCircle.propTypes = {\n bgColor: PropTypes.string.isRequired,\n textColor: PropTypes.string.isRequired,\n width: PropTypes.number,\n height: PropTypes.number,\n fontSize: PropTypes.number,\n children: PropTypes.node.isRequired,\n 'data-testid': PropTypes.string,\n};\n\nNumberCircle.defaultProps = {\n width: 24,\n height: 24,\n fontSize: 12,\n 'data-testid': 'NumberCircle',\n};\n\nexport default NumberCircle;\n"],"names":["NumberCircle","_ref","bgColor","textColor","width","height","fontSize","children","dataTestId","style","borderRadius","background","color","display","justifyContent","alignItems","fontWeight","minWidth","_jsx","propTypes","PropTypes","string","isRequired","number","node","defaultProps"],"mappings":"2JAEA,SAASA,EAQNC,GAAA,IAPDC,IAAAA,QACAC,IAAAA,UACAC,IAAAA,MACAC,IAAAA,OACAC,IAAAA,SACAC,IAAAA,SACeC,IAAf,eAEMC,EAAQ,CACZC,aAAc,cACdC,WAAYT,EACZU,MAAOT,EACPG,SAAAA,EACAF,MAAAA,EACAC,OAAAA,EACAQ,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,WAAY,SACZC,SAAU,IAGZ,OACEC,EAAAA,IAAA,MAAA,CAAK,cAAaV,EAAYC,MAAOA,EAAMF,SACxCA,GAGP,CAEAP,EAAamB,UAAY,CACvBjB,QAASkB,EAAAA,QAAUC,OAAOC,WAC1BnB,UAAWiB,EAAAA,QAAUC,OAAOC,WAC5BlB,MAAOgB,EAAS,QAACG,OACjBlB,OAAQe,EAAS,QAACG,OAClBjB,SAAUc,EAAS,QAACG,OACpBhB,SAAUa,EAAAA,QAAUI,KAAKF,WACzB,cAAeF,EAAS,QAACC,QAG3BrB,EAAayB,aAAe,CAC1BrB,MAAO,GACPC,OAAQ,GACRC,SAAU,GACV,cAAe"}
1
+ {"version":3,"file":"NumberCircle.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js"],"sourcesContent":["import PropTypes from 'prop-types';\n\nfunction NumberCircle({\n bgColor,\n textColor,\n width = 24,\n height = 24,\n fontSize = 12,\n children,\n 'data-testid': dataTestId = 'NumberCircle',\n}) {\n const style = {\n borderRadius: 'calc(100vh)',\n background: bgColor,\n color: textColor,\n fontSize,\n width,\n height,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n fontWeight: 'normal',\n minWidth: 24,\n };\n\n return (\n <div data-testid={dataTestId} style={style}>\n {children}\n </div>\n );\n}\n\nNumberCircle.propTypes = {\n bgColor: PropTypes.string.isRequired,\n textColor: PropTypes.string.isRequired,\n width: PropTypes.number,\n height: PropTypes.number,\n fontSize: PropTypes.number,\n children: PropTypes.node.isRequired,\n 'data-testid': PropTypes.string,\n};\n\nexport default NumberCircle;\n"],"names":["NumberCircle","_ref","bgColor","textColor","_ref$width","width","_ref$height","height","_ref$fontSize","fontSize","children","_ref$dataTestid","dataTestId","style","borderRadius","background","color","display","justifyContent","alignItems","fontWeight","minWidth","_jsx","propTypes","PropTypes","string","isRequired","number","node"],"mappings":"2JAEA,SAASA,EAQNC,GAAA,IAPDC,IAAAA,QACAC,IAAAA,UAASC,EAAAH,EACTI,MAAAA,aAAQ,GAAED,EAAAE,EAAAL,EACVM,OAAAA,aAAS,GAAED,EAAAE,EAAAP,EACXQ,SAAAA,aAAW,GAAED,EACbE,IAAAA,SAAQC,EAAAV,EACR,eAAeW,aAAa,eAAcD,EAEpCE,EAAQ,CACZC,aAAc,cACdC,WAAYb,EACZc,MAAOb,EACPM,SAAAA,EACAJ,MAAAA,EACAE,OAAAA,EACAU,QAAS,OACTC,eAAgB,SAChBC,WAAY,SACZC,WAAY,SACZC,SAAU,IAGZ,OACEC,EAAAA,IAAA,MAAA,CAAK,cAAaV,EAAYC,MAAOA,EAAMH,SACxCA,GAGP,CAEAV,EAAauB,UAAY,CACvBrB,QAASsB,EAAAA,QAAUC,OAAOC,WAC1BvB,UAAWqB,EAAAA,QAAUC,OAAOC,WAC5BrB,MAAOmB,EAAS,QAACG,OACjBpB,OAAQiB,EAAS,QAACG,OAClBlB,SAAUe,EAAS,QAACG,OACpBjB,SAAUc,EAAAA,QAAUI,KAAKF,WACzB,cAAeF,EAAS,QAACC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react"),t=require("prop-types"),n=require("@material-ui/core"),l=require("@material-ui/icons"),i=require("./NumberCircle.js"),a=require("react/jsx-runtime"),c=n.makeStyles({sectionContainer:{display:"flex",width:"100%",justifyContent:"space-between",marginRight:"4px",alignItems:"center"},itemLabel:{display:"flex",alignItems:"center","&:hover":{color:"#DADADA",cursor:"pointer"}},disabledItemLabel:{display:"flex",alignItems:"center","&:hover":{cursor:"pointer"}},itemLabelToggle:{},sectionName:{marginLeft:"6px",marginRight:"10px"},checkbox:{width:"11px",height:"11px"},sectionTitle:{display:"flex",alignItems:"center"},expandIcon:{fontSize:"14px",marginRight:"8px"}});function r(e){return(e.wells.filter((function(e){return e.checked}))||[]).length}function o(e){var t=r(e);return t===e.wells.length?"".concat(t):"".concat(t," of ").concat(e.wells.length," Selected")}function s(e){return e.wells.filter((function(e){return e.checked})).length>0}function d(e){return e.wells.filter((function(e){return e.checked})).length!==e.wells.length}function m(e){var t=e.section,m=e.disabled,u=e.onExpandCollapse,p=e.onSelectAll,h=e.onClearAll,x=c(),f=n.useTheme(),b=function(e){e.stopPropagation(),!d(t)&&h&&h(t),d(t)&&p&&p(t)};return a.jsxs("div",{"data-testid":"".concat("SectionItem","_section_").concat(t.name),className:x.sectionContainer,children:[a.jsxs("div",{className:m?x.disabledItemLabel:x.itemLabel,onClick:function(){return u&&u(t)},children:[a.jsx(n.Tooltip,{title:"No Wells",placement:"right",children:a.jsxs("div",{className:x.sectionTitle,children:[m&&a.jsx(l.ExpandMore,{className:x.expandIcon}),a.jsxs("span",{className:x.sectionName,children:[" ",t.name]})]})}),r(t)>0&&a.jsx(i,{"data-testid":"".concat("SectionItem","_wellsNumber"),bgColor:f.palette.primary.text9,textColor:"#fff",width:20+6*(o(t).length-2),children:o(t)})]}),s(t)?a.jsx(n.Checkbox,{"data-testid":"".concat("SectionItem","_checkbox"),className:x.checkbox,size:"small",checked:!0,indeterminate:d(t),color:"primary",onClick:b,disabled:m}):a.jsx(n.Checkbox,{"data-testid":"".concat("SectionItem","_checkbox"),className:x.checkbox,checked:!1,size:"small",color:"primary",onClick:b,indeterminate:!1,disabled:m})]})}m.propTypes={section:t.shape({expanded:t.bool,name:t.string,wells:t.arrayOf(t.shape({}))}).isRequired,disabled:t.bool,onExpandCollapse:t.func,onSelectAll:t.func,onClearAll:t.func},m.defaultProps={disabled:!1,onSelectAll:null,onExpandCollapse:null,onClearAll:null};var u=e.memo(m);module.exports=u;
1
+ "use strict";var e=require("react"),t=require("prop-types"),n=require("@material-ui/core"),l=require("@material-ui/icons"),i=require("./NumberCircle.js"),c=require("react/jsx-runtime"),a=n.makeStyles({sectionContainer:{display:"flex",width:"100%",justifyContent:"space-between",marginRight:"4px",alignItems:"center"},itemLabel:{display:"flex",alignItems:"center","&:hover":{color:"#DADADA",cursor:"pointer"}},disabledItemLabel:{display:"flex",alignItems:"center","&:hover":{cursor:"pointer"}},itemLabelToggle:{},sectionName:{marginLeft:"6px",marginRight:"10px"},checkbox:{width:"11px",height:"11px"},sectionTitle:{display:"flex",alignItems:"center"},expandIcon:{fontSize:"14px",marginRight:"8px"}});function r(e){return(e.wells.filter((function(e){return e.checked}))||[]).length}function o(e){var t=r(e);return t===e.wells.length?"".concat(t):"".concat(t," of ").concat(e.wells.length," Selected")}function s(e){return e.wells.filter((function(e){return e.checked})).length>0}function d(e){return e.wells.filter((function(e){return e.checked})).length!==e.wells.length}function m(e){var t=e.section,m=e.disabled,u=void 0!==m&&m,p=e.onExpandCollapse,h=void 0===p?null:p,x=e.onSelectAll,f=void 0===x?null:x,g=e.onClearAll,b=void 0===g?null:g,k=a(),C=n.useTheme(),v=function(e){e.stopPropagation(),!d(t)&&b&&b(t),d(t)&&f&&f(t)};return c.jsxs("div",{"data-testid":"".concat("SectionItem","_section_").concat(t.name),className:k.sectionContainer,children:[c.jsxs("div",{className:u?k.disabledItemLabel:k.itemLabel,onClick:function(){return h&&h(t)},children:[c.jsx(n.Tooltip,{title:"No Wells",placement:"right",children:c.jsxs("div",{className:k.sectionTitle,children:[u&&c.jsx(l.ExpandMore,{className:k.expandIcon}),c.jsxs("span",{className:k.sectionName,children:[" ",t.name]})]})}),r(t)>0&&c.jsx(i,{"data-testid":"".concat("SectionItem","_wellsNumber"),bgColor:C.palette.primary.text9,textColor:"#fff",width:20+6*(o(t).length-2),children:o(t)})]}),s(t)?c.jsx(n.Checkbox,{"data-testid":"".concat("SectionItem","_checkbox"),className:k.checkbox,size:"small",checked:!0,indeterminate:d(t),color:"primary",onClick:v,disabled:u}):c.jsx(n.Checkbox,{"data-testid":"".concat("SectionItem","_checkbox"),className:k.checkbox,checked:!1,size:"small",color:"primary",onClick:v,indeterminate:!1,disabled:u})]})}m.propTypes={section:t.shape({expanded:t.bool,name:t.string,wells:t.arrayOf(t.shape({}))}).isRequired,disabled:t.bool,onExpandCollapse:t.func,onSelectAll:t.func,onClearAll:t.func};var u=e.memo(m);module.exports=u;
2
2
  //# sourceMappingURL=SectionItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionItem.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js"],"sourcesContent":["import { memo } from 'react';\nimport { shape, arrayOf, func, bool, string } from 'prop-types';\nimport { makeStyles, Checkbox, Tooltip, useTheme } from '@material-ui/core';\nimport { ExpandMore } from '@material-ui/icons';\n\nimport NumberCircle from './NumberCircle';\n\nconst PAGE_NAME = 'SectionItem';\n\nconst useStyles = makeStyles({\n sectionContainer: {\n display: 'flex',\n width: '100%',\n justifyContent: 'space-between',\n marginRight: '4px',\n alignItems: 'center',\n },\n itemLabel: {\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n color: '#DADADA',\n cursor: 'pointer',\n },\n },\n disabledItemLabel: {\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n cursor: 'pointer',\n },\n },\n itemLabelToggle: {},\n sectionName: {\n marginLeft: '6px',\n marginRight: '10px',\n },\n checkbox: {\n width: '11px',\n height: '11px',\n },\n sectionTitle: {\n display: 'flex',\n alignItems: 'center',\n },\n expandIcon: {\n fontSize: '14px',\n marginRight: '8px',\n },\n});\n\nfunction getSelectedCount(section) {\n const data = section.wells.filter(item => item.checked) || [];\n return data.length;\n}\n\nfunction getSelectedNumber(section) {\n const selectedCount = getSelectedCount(section);\n return selectedCount === section.wells.length\n ? `${selectedCount}`\n : `${selectedCount} of ${section.wells.length} Selected`;\n}\n\nfunction isSelected(section) {\n return section.wells.filter(item => item.checked).length > 0;\n}\n\nfunction isAllSelected(section) {\n return section.wells.filter(item => item.checked).length !== section.wells.length;\n}\n\nfunction SectionItem({ section, disabled, onExpandCollapse, onSelectAll, onClearAll }) {\n const classes = useStyles();\n const theme = useTheme();\n const handleClick = e => {\n e.stopPropagation();\n if (!isAllSelected(section) && onClearAll) onClearAll(section);\n if (isAllSelected(section) && onSelectAll) onSelectAll(section);\n };\n return (\n <div data-testid={`${PAGE_NAME}_section_${section.name}`} className={classes.sectionContainer}>\n <div\n className={disabled ? classes.disabledItemLabel : classes.itemLabel}\n onClick={() => onExpandCollapse && onExpandCollapse(section)}\n >\n <Tooltip title=\"No Wells\" placement=\"right\">\n <div className={classes.sectionTitle}>\n {disabled && <ExpandMore className={classes.expandIcon} />}\n <span className={classes.sectionName}> {section.name}</span>\n </div>\n </Tooltip>\n {getSelectedCount(section) > 0 && (\n <NumberCircle\n data-testid={`${PAGE_NAME}_wellsNumber`}\n bgColor={theme.palette.primary.text9}\n textColor=\"#fff\"\n width={20 + (getSelectedNumber(section).length - 2) * 6}\n >\n {getSelectedNumber(section)}\n </NumberCircle>\n )}\n </div>\n\n {isSelected(section) ? (\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n className={classes.checkbox}\n size=\"small\"\n checked\n indeterminate={isAllSelected(section)}\n color=\"primary\"\n onClick={handleClick}\n disabled={disabled}\n />\n ) : (\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n className={classes.checkbox}\n checked={false}\n size=\"small\"\n color=\"primary\"\n onClick={handleClick}\n indeterminate={false}\n disabled={disabled}\n />\n )}\n </div>\n );\n}\n\nSectionItem.propTypes = {\n section: shape({\n expanded: bool,\n name: string,\n wells: arrayOf(shape({})),\n }).isRequired,\n disabled: bool,\n onExpandCollapse: func,\n onSelectAll: func,\n onClearAll: func,\n};\n\nSectionItem.defaultProps = {\n disabled: false,\n onSelectAll: null,\n onExpandCollapse: null,\n onClearAll: null,\n};\n// Important: Do not change root component default export (SectionItem.js). Use it as container\n// for your SectionItem. It's required to make build and zip scripts work as expected;\nexport default memo(SectionItem);\n"],"names":["useStyles","makeStyles","sectionContainer","display","width","justifyContent","marginRight","alignItems","itemLabel","color","cursor","disabledItemLabel","itemLabelToggle","sectionName","marginLeft","checkbox","height","sectionTitle","expandIcon","fontSize","getSelectedCount","section","wells","filter","item","checked","length","getSelectedNumber","selectedCount","concat","isSelected","isAllSelected","SectionItem","_ref","disabled","onExpandCollapse","onSelectAll","onClearAll","classes","theme","useTheme","handleClick","e","stopPropagation","_jsxs","name","className","children","jsxs","onClick","_jsx","Tooltip","title","placement","jsx","ExpandMore","NumberCircle","bgColor","palette","primary","text9","textColor","Checkbox","size","indeterminate","propTypes","shape","expanded","bool","string","arrayOf","isRequired","func","defaultProps","memo"],"mappings":"yLASMA,EAAYC,EAAAA,WAAW,CA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C,EAAIA,KACtBpC,YAAaoC,EAAIA,KACjBnC,WAAYmC,EAAAA,MAGdxC,EAAYyC,aAAe,CACzBvC,UAAU,EACVE,YAAa,KACbD,iBAAkB,KAClBE,WAAY,MAId,IAAeqC,EAAAA,EAAAA,KAAK1C"}
1
+ {"version":3,"file":"SectionItem.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js"],"sourcesContent":["import { memo } from 'react';\nimport { shape, arrayOf, func, bool, string } from 'prop-types';\nimport { makeStyles, Checkbox, Tooltip, useTheme } from '@material-ui/core';\nimport { ExpandMore } from '@material-ui/icons';\n\nimport NumberCircle from './NumberCircle';\n\nconst PAGE_NAME = 'SectionItem';\n\nconst useStyles = makeStyles({\n sectionContainer: {\n display: 'flex',\n width: '100%',\n justifyContent: 'space-between',\n marginRight: '4px',\n alignItems: 'center',\n },\n itemLabel: {\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n color: '#DADADA',\n cursor: 'pointer',\n },\n },\n disabledItemLabel: {\n display: 'flex',\n alignItems: 'center',\n '&:hover': {\n cursor: 'pointer',\n },\n },\n itemLabelToggle: {},\n sectionName: {\n marginLeft: '6px',\n marginRight: '10px',\n },\n checkbox: {\n width: '11px',\n height: '11px',\n },\n sectionTitle: {\n display: 'flex',\n alignItems: 'center',\n },\n expandIcon: {\n fontSize: '14px',\n marginRight: '8px',\n },\n});\n\nfunction getSelectedCount(section) {\n const data = section.wells.filter(item => item.checked) || [];\n return data.length;\n}\n\nfunction getSelectedNumber(section) {\n const selectedCount = getSelectedCount(section);\n return selectedCount === section.wells.length\n ? `${selectedCount}`\n : `${selectedCount} of ${section.wells.length} Selected`;\n}\n\nfunction isSelected(section) {\n return section.wells.filter(item => item.checked).length > 0;\n}\n\nfunction isAllSelected(section) {\n return section.wells.filter(item => item.checked).length !== section.wells.length;\n}\n\nfunction SectionItem({\n section,\n disabled = false,\n onExpandCollapse = null,\n onSelectAll = null,\n onClearAll = null,\n}) {\n const classes = useStyles();\n const theme = useTheme();\n const handleClick = e => {\n e.stopPropagation();\n if (!isAllSelected(section) && onClearAll) onClearAll(section);\n if (isAllSelected(section) && onSelectAll) onSelectAll(section);\n };\n return (\n <div data-testid={`${PAGE_NAME}_section_${section.name}`} className={classes.sectionContainer}>\n <div\n className={disabled ? classes.disabledItemLabel : classes.itemLabel}\n onClick={() => onExpandCollapse && onExpandCollapse(section)}\n >\n <Tooltip title=\"No Wells\" placement=\"right\">\n <div className={classes.sectionTitle}>\n {disabled && <ExpandMore className={classes.expandIcon} />}\n <span className={classes.sectionName}> {section.name}</span>\n </div>\n </Tooltip>\n {getSelectedCount(section) > 0 && (\n <NumberCircle\n data-testid={`${PAGE_NAME}_wellsNumber`}\n bgColor={theme.palette.primary.text9}\n textColor=\"#fff\"\n width={20 + (getSelectedNumber(section).length - 2) * 6}\n >\n {getSelectedNumber(section)}\n </NumberCircle>\n )}\n </div>\n\n {isSelected(section) ? (\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n className={classes.checkbox}\n size=\"small\"\n checked\n indeterminate={isAllSelected(section)}\n color=\"primary\"\n onClick={handleClick}\n disabled={disabled}\n />\n ) : (\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n className={classes.checkbox}\n checked={false}\n size=\"small\"\n color=\"primary\"\n onClick={handleClick}\n indeterminate={false}\n disabled={disabled}\n />\n )}\n </div>\n );\n}\n\nSectionItem.propTypes = {\n section: shape({\n expanded: bool,\n name: string,\n wells: arrayOf(shape({})),\n }).isRequired,\n disabled: bool,\n onExpandCollapse: func,\n onSelectAll: func,\n onClearAll: func,\n};\n\n// Important: Do not change root component default export (SectionItem.js). Use it as container\n// for your SectionItem. It's required to make build and zip scripts work as expected;\nexport default memo(SectionItem);\n"],"names":["useStyles","makeStyles","sectionContainer","display","width","justifyContent","marginRight","alignItems","itemLabel","color","cursor","disabledItemLabel","itemLabelToggle","sectionName","marginLeft","checkbox","height","sectionTitle","expandIcon","fontSize","getSelectedCount","section","wells","filter","item","checked","length","getSelectedNumber","selectedCount","concat","isSelected","isAllSelected","SectionItem","_ref","_ref$disabled","disabled","_ref$onExpandCollapse","onExpandCollapse","_ref$onSelectAll","onSelectAll","_ref$onClearAll","onClearAll","classes","theme","useTheme","handleClick","e","stopPropagation","_jsxs","name","className","children","jsxs","onClick","_jsx","Tooltip","title","placement","jsx","ExpandMore","NumberCircle","bgColor","palette","primary","text9","textColor","Checkbox","size","indeterminate","propTypes","shape","expanded","bool","string","arrayOf","isRequired","func","memo"],"mappings":"yLASMA,EAAYC,EAAAA,WAAW,CAC3BC,iBAAkB,CAChBC,QAAS,OACTC,MAAO,OACPC,eAAgB,gBAChBC,YAAa,MACbC,WAAY,UAEdC,UAAW,CACTL,QAAS,OACTI,WAAY,SACZ,UAAW,CACTE,MAAO,UACPC,OAAQ,YAGZC,kBAAmB,CACjBR,QAAS,OACTI,WAAY,SACZ,UAAW,CACTG,OAAQ,YAGZE,gBAAiB,CAAE,EACnBC,YAAa,CACXC,WAAY,MACZR,YAAa,QAEfS,SAAU,CACRX,MAAO,OACPY,OAAQ,QAEVC,aAAc,CACZd,QAAS,OACTI,WAAY,UAEdW,WAAY,CACVC,SAAU,OACVb,YAAa,SAIjB,SAASc,EAAiBC,GAExB,OADaA,EAAQC,MAAMC,QAAO,SAAAC,GAAI,OAAIA,EAAKC,OAAO,KAAK,IAC/CC,MACd,CAEA,SAASC,EAAkBN,GACzB,IAAMO,EAAgBR,EAAiBC,GACvC,OAAOO,IAAkBP,EAAQC,MAAMI,OAAM,GAAAG,OACtCD,GAAa,GAAAC,OACbD,EAAoBP,QAAAA,OAAAA,EAAQC,MAAMI,OAAiB,YAC5D,CAEA,SAASI,EAAWT,GAClB,OAAOA,EAAQC,MAAMC,QAAO,SAAAC,GAAI,OAAIA,EAAKC,WAASC,OAAS,CAC7D,CAEA,SAASK,EAAcV,GACrB,OAAOA,EAAQC,MAAMC,QAAO,SAAAC,GAAI,OAAIA,EAAKC,OAAO,IAAEC,SAAW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UAAWR,EAAQ3B,SACnBoD,KAAK,QACL1C,SAAO,EACP2C,cAAerC,EAAcV,GAC7BZ,MAAM,UACN4C,QAASR,EACTV,SAAUA,IAGZmB,MAACY,WAAQ,CACP,cAAA,GAAArC,OAnHQ,cAmH6B,aACrCqB,UAAWR,EAAQ3B,SACnBU,SAAS,EACT0C,KAAK,QACL1D,MAAM,UACN4C,QAASR,EACTuB,eAAe,EACfjC,SAAUA,MAKpB,CAEAH,EAAYqC,UAAY,CACtBhD,QAASiD,EAAAA,MAAM,CACbC,SAAUC,EAAIA,KACdvB,KAAMwB,EAAMA,OACZnD,MAAOoD,EAAOA,QAACJ,QAAM,CAAA,MACpBK,WACHxC,SAAUqC,EAAIA,KACdnC,iBAAkBuC,EAAIA,KACtBrC,YAAaqC,EAAIA,KACjBnC,WAAYmC,EAAAA,MAKd,IAAeC,EAAAA,EAAAA,KAAK7C"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),n=require("@babel/runtime/helpers/defineProperty"),t=require("react"),r=require("prop-types"),i=require("classnames"),a=require("@material-ui/core"),c=require("@material-ui/icons"),o=require("./AssetSearch.js"),l=require("./SectionItem.js"),s=require("./WellListItem.js");require("../../../../utils/index.js");var u=require("react/jsx-runtime"),d=require("../../../../utils/notificationToasts.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(e),f=p(n),h=p(i);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){f.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=a.makeStyles((function(e){return{content:{width:"472px",marginTop:"24px"},sectionItem:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"8px",fontSize:"12px",fontWeight:"normal",color:e.palette.primary.text6,borderTop:"1px solid ".concat(e.palette.primary.text8),"&:last-child":{borderBottom:"1px solid ".concat(e.palette.primary.text8)}},disabledSectionItem:{color:e.palette.primary.text8},wellList:{width:"100%",margin:0,padding:0},searchContainer:{display:"flex",justifyContent:"space-between",marginBottom:"24px",alignItems:"center"},advancedSearch:{fontSize:"14px",fontWeight:500,color:"#03BCD4",cursor:"pointer","&:hover":{textDecoration:"underline"}}}}));function j(e){var n=e.company,t=e.wellSections,r=e.getWellName,i=e.onChangeWellSections,p=e.onExploreMode,f=y(),x=function(e,n){var r=t.find((function(n){return n.name===e.name})).wells.map((function(e){return e.id})),a=t.map((function(e){var t=e.wells.map((function(e){return r.includes(e.id)?w(w({},e),{},{checked:n}):w({},e)}));return w(w({},e),{},{wells:t})}));i(a)},j=function(e){var n=t.map((function(n){return n.name===e.name?w(w({},n),{},{expanded:!n.expanded}):n}));i(n)},g=function(e){var n=t.map((function(n){var t=n.wells.map((function(n){return n.id===e.id?w(w({},n),{},{checked:!n.checked}):n}));return w(w({},n),{},{wells:t})}));i(n)},b=function(e){x(e,!0)},v=function(e){x(e,!1)};return u.jsxs("div",{className:f.content,children:[u.jsxs("div",{className:f.searchContainer,children:[u.jsx(o,{company:+n,onClickAsset:function(e,n){var r=t.map((function(t){if("Search Results"===t.name){var r=m.default(t.wells);return t.wells.find((function(n){return n.id===e}))||r.push({id:e,checked:!0,name:n,kind:"manual"}),w(w({},t),{},{wells:r})}return w(w({},t),{},{wells:t.wells.map((function(n){return n.id===e?w(w({},n),{},{checked:!0}):n}))})}));i(r),d.showSuccessNotification("Offset well successfully added!")},onExploreMode:p}),u.jsx(a.Typography,{"data-testid":"".concat("WellSection","_advancedSearch"),className:f.advancedSearch,onClick:function(){p()},children:"Advanced Search"})]}),(t||[]).map((function(e){return 0===e.wells.length?u.jsx("div",{className:h.default(f.sectionItem,f.disabledSectionItem),children:u.jsx(l,{section:e,disabled:!0})},"empty-".concat(e.name)):u.jsx("div",{className:f.sectionItem,children:u.jsxs(a.Accordion,{expanded:e.expanded,onChange:function(){return j(e)},children:[u.jsx(a.AccordionSummary,{expandIcon:u.jsx(c.ExpandMore,{}),style:{width:"100%"},children:u.jsx(l,{section:e,onExpandCollapse:j,onSelectAll:b,onClearAll:v})}),u.jsx(a.AccordionDetails,{children:u.jsx(a.List,{dense:!0,className:f.wellList,children:e.wells.map((function(n){return u.jsx(s,{well:n,wellName:r(e.wells,n.id),rigName:n.rigName,onToggleWell:g},"well-".concat(e.name,"-").concat(n.id))}))})})]})},"section-".concat(e.name))}))]})}j.propTypes={company:r.string.isRequired,wellSections:r.arrayOf(r.shape({})),getWellName:r.func.isRequired,onChangeWellSections:r.func.isRequired,onExploreMode:r.func.isRequired},j.defaultProps={wellSections:[]};var g=t.memo(j);module.exports=g;
1
+ "use strict";var e=require("@babel/runtime/helpers/toConsumableArray"),n=require("@babel/runtime/helpers/defineProperty"),t=require("react"),r=require("prop-types"),i=require("classnames"),a=require("@material-ui/core"),c=require("@material-ui/icons"),o=require("./AssetSearch.js"),l=require("./SectionItem.js"),s=require("./WellListItem.js");require("../../../../utils/index.js");var d=require("react/jsx-runtime"),u=require("../../../../utils/notificationToasts.js");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=p(e),f=p(n),h=p(i);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){f.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=a.makeStyles((function(e){return{content:{width:"472px",marginTop:"24px"},sectionItem:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"8px",fontSize:"12px",fontWeight:"normal",color:e.palette.primary.text6,borderTop:"1px solid ".concat(e.palette.primary.text8),"&:last-child":{borderBottom:"1px solid ".concat(e.palette.primary.text8)}},disabledSectionItem:{color:e.palette.primary.text8},wellList:{width:"100%",margin:0,padding:0},searchContainer:{display:"flex",justifyContent:"space-between",marginBottom:"24px",alignItems:"center"},advancedSearch:{fontSize:"14px",fontWeight:500,color:"#03BCD4",cursor:"pointer","&:hover":{textDecoration:"underline"}}}}));function w(e){var n=e.company,t=e.wellSections,r=void 0===t?g:t,i=e.getWellName,p=e.onChangeWellSections,f=e.onExploreMode,x=j(),w=function(e,n){var t=r.find((function(n){return n.name===e.name})).wells.map((function(e){return e.id})),i=r.map((function(e){var r=e.wells.map((function(e){return t.includes(e.id)?y(y({},e),{},{checked:n}):y({},e)}));return y(y({},e),{},{wells:r})}));p(i)},b=function(e){var n=r.map((function(n){return n.name===e.name?y(y({},n),{},{expanded:!n.expanded}):n}));p(n)},v=function(e){var n=r.map((function(n){var t=n.wells.map((function(n){return n.id===e.id?y(y({},n),{},{checked:!n.checked}):n}));return y(y({},n),{},{wells:t})}));p(n)},S=function(e){w(e,!0)},O=function(e){w(e,!1)};return d.jsxs("div",{className:x.content,children:[d.jsxs("div",{className:x.searchContainer,children:[d.jsx(o,{company:+n,onClickAsset:function(e,n){var t=r.map((function(t){if("Search Results"===t.name){var r=m.default(t.wells);return t.wells.find((function(n){return n.id===e}))||r.push({id:e,checked:!0,name:n,kind:"manual"}),y(y({},t),{},{wells:r})}return y(y({},t),{},{wells:t.wells.map((function(n){return n.id===e?y(y({},n),{},{checked:!0}):n}))})}));p(t),u.showSuccessNotification("Offset well successfully added!")},onExploreMode:f}),d.jsx(a.Typography,{"data-testid":"".concat("WellSection","_advancedSearch"),className:x.advancedSearch,onClick:function(){f()},children:"Advanced Search"})]}),(r||[]).map((function(e){return 0===e.wells.length?d.jsx("div",{className:h.default(x.sectionItem,x.disabledSectionItem),children:d.jsx(l,{section:e,disabled:!0})},"empty-".concat(e.name)):d.jsx("div",{className:x.sectionItem,children:d.jsxs(a.Accordion,{expanded:e.expanded,onChange:function(){return b(e)},children:[d.jsx(a.AccordionSummary,{expandIcon:d.jsx(c.ExpandMore,{}),style:{width:"100%"},children:d.jsx(l,{section:e,onExpandCollapse:b,onSelectAll:S,onClearAll:O})}),d.jsx(a.AccordionDetails,{children:d.jsx(a.List,{dense:!0,className:x.wellList,children:e.wells.map((function(n){return d.jsx(s,{well:n,wellName:i(e.wells,n.id),rigName:n.rigName,onToggleWell:v},"well-".concat(e.name,"-").concat(n.id))}))})})]})},"section-".concat(e.name))}))]})}w.propTypes={company:r.string.isRequired,wellSections:r.arrayOf(r.shape({})),getWellName:r.func.isRequired,onChangeWellSections:r.func.isRequired,onExploreMode:r.func.isRequired};var g=[],b=t.memo(w);module.exports=b;
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/index.js"],"sourcesContent":["import { memo } from 'react';\nimport { string, shape, func, arrayOf } from 'prop-types';\nimport classNames from 'classnames';\nimport {\n makeStyles,\n List,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Typography,\n} from '@material-ui/core';\nimport { ExpandMore } from '@material-ui/icons';\n\nimport AssetSearch from './AssetSearch';\nimport SectionItem from './SectionItem';\nimport WellListItem from './WellListItem';\n\nimport { showSuccessNotification } from '~/utils';\n\nconst PAGE_NAME = 'WellSection';\n\nconst useStyles = makeStyles(theme => ({\n content: {\n width: '472px',\n marginTop: '24px',\n },\n sectionItem: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: '8px',\n fontSize: '12px',\n fontWeight: 'normal',\n color: theme.palette.primary.text6,\n borderTop: `1px solid ${theme.palette.primary.text8}`,\n '&:last-child': {\n borderBottom: `1px solid ${theme.palette.primary.text8}`,\n },\n },\n disabledSectionItem: {\n color: theme.palette.primary.text8,\n },\n wellList: {\n width: '100%',\n margin: 0,\n padding: 0,\n },\n searchContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: '24px',\n alignItems: 'center',\n },\n advancedSearch: {\n fontSize: '14px',\n fontWeight: 500,\n color: '#03BCD4',\n cursor: 'pointer',\n '&:hover': {\n textDecoration: 'underline',\n },\n },\n}));\n\nfunction WellSection({ company, wellSections, getWellName, onChangeWellSections, onExploreMode }) {\n const classes = useStyles();\n\n const selectAllWells = (targetSection, f) => {\n const selectedWellIds = wellSections\n .find(section => section.name === targetSection.name)\n .wells.map(item => item.id);\n\n const data = wellSections.map(section => {\n const sectionData = section.wells.map(well => {\n if (selectedWellIds.includes(well.id)) {\n return { ...well, checked: f };\n } else {\n return { ...well };\n }\n });\n return {\n ...section,\n wells: sectionData,\n };\n });\n onChangeWellSections(data);\n };\n\n const handleExpandCollapseSection = targetSection => {\n const data = wellSections.map(section => {\n if (section.name === targetSection.name) {\n return { ...section, expanded: !section.expanded };\n }\n return section;\n });\n onChangeWellSections(data);\n };\n\n const handleToggleWell = targetWell => {\n const data = wellSections.map(section => {\n const sectionData = section.wells.map(well => {\n if (well.id === targetWell.id) {\n return { ...well, checked: !well.checked };\n }\n return well;\n });\n return {\n ...section,\n wells: sectionData,\n };\n });\n onChangeWellSections(data);\n };\n\n const handleSelectAll = targetSection => {\n selectAllWells(targetSection, true);\n };\n\n const handleClearAll = targetSection => {\n selectAllWells(targetSection, false);\n };\n\n const handleClickAsset = (redirectAssetId, name) => {\n const data = wellSections.map(section => {\n if (section.name === 'Search Results') {\n const wells = [...section.wells];\n if (!section.wells.find(item => item.id === redirectAssetId)) {\n wells.push({ id: redirectAssetId, checked: true, name, kind: 'manual' });\n }\n return { ...section, wells };\n }\n return {\n ...section,\n wells: section.wells.map(well =>\n well.id === redirectAssetId ? { ...well, checked: true } : well\n ),\n };\n });\n onChangeWellSections(data);\n showSuccessNotification('Offset well successfully added!');\n };\n\n const handleOffsetPickerDialog = () => {\n onExploreMode();\n };\n\n return (\n <div className={classes.content}>\n <div className={classes.searchContainer}>\n <AssetSearch\n company={+company}\n onClickAsset={handleClickAsset}\n onExploreMode={onExploreMode}\n />\n <Typography\n data-testid={`${PAGE_NAME}_advancedSearch`}\n className={classes.advancedSearch}\n onClick={handleOffsetPickerDialog}\n >\n Advanced Search\n </Typography>\n </div>\n\n {(wellSections || []).map(section =>\n section.wells.length === 0 ? (\n <div\n key={`empty-${section.name}`}\n className={classNames(classes.sectionItem, classes.disabledSectionItem)}\n >\n <SectionItem section={section} disabled />\n </div>\n ) : (\n <div key={`section-${section.name}`} className={classes.sectionItem}>\n <Accordion\n expanded={section.expanded}\n onChange={() => handleExpandCollapseSection(section)}\n >\n <AccordionSummary expandIcon={<ExpandMore />} style={{ width: '100%' }}>\n <SectionItem\n section={section}\n onExpandCollapse={handleExpandCollapseSection}\n onSelectAll={handleSelectAll}\n onClearAll={handleClearAll}\n />\n </AccordionSummary>\n <AccordionDetails>\n <List dense className={classes.wellList}>\n {section.wells.map(well => (\n <WellListItem\n key={`well-${section.name}-${well.id}`}\n well={well}\n wellName={getWellName(section.wells, well.id)}\n rigName={well.rigName}\n onToggleWell={handleToggleWell}\n />\n ))}\n </List>\n </AccordionDetails>\n </Accordion>\n </div>\n )\n )}\n </div>\n );\n}\n\nWellSection.propTypes = {\n company: string.isRequired,\n wellSections: arrayOf(shape({})),\n getWellName: func.isRequired,\n onChangeWellSections: func.isRequired,\n onExploreMode: func.isRequired,\n};\n\nWellSection.defaultProps = {\n wellSections: [],\n};\n\n// Important: Do not change root component default export (WellSection.js). Use it as container\n// for your WellSection. It's required to make build and zip scripts work as expected;\nexport default memo(WellSection);\n"],"names":["useStyles","makeStyles","theme","content","width","marginTop","sectionItem","display","flexDirection","justifyContent","alignItems","padding","fontSize","fontWeight","color","palette","primary","text6","borderTop","concat","text8","borderBottom","disabledSectionItem","wellList","margin","searchContainer","marginBottom","advancedSearch","cursor","textDecoration","WellSection","_ref","company","wellSections","getWellName","onChangeWellSections","onExploreMode","classes","selectAllWells","targetSection","f","selectedWellIds","find","section","name","wells","map","item","id","data","sectionData","well","includes","_objectSpread","checked","handleExpandCollapseSection","expanded","handleToggleWell","targetWell","handleSelectAll","handleClearAll","_jsxs","className","children","jsxs","_jsx","AssetSearch","onClickAsset","redirectAssetId","_toConsumableArray","push","kind","showSuccessNotification","Typography","onClick","length","classNames","SectionItem","disabled","jsx","Accordion","onChange","AccordionSummary","expandIcon","ExpandMore","style","onExpandCollapse","onSelectAll","onClearAll","AccordionDetails","List","dense","WellListItem","wellName","rigName","onToggleWell","propTypes","string","isRequired","arrayOf","shape","func","defaultProps","memo"],"mappings":"6nCAmBA,IAEMA,EAAYC,EAAAA,YAAW,SAAAC,GAAK,MAAK,CACrCC,QAAS,CACPC,MAAO,QACPC,UAAW,QAEbC,YAAa,CACXC,QAAS,OACTC,cAAe,MACfC,eAAgB,gBAChBC,WAAY,SACZC,QAAS,MACTC,SAAU,OACVC,WAAY,SACZC,MAAOZ,EAAMa,QAAQC,QAAQC,MAC7BC,UAAS,aAAAC,OAAejB,EAAMa,QAAQC,QAAQI,OAC9C,eAAgB,CACdC,iCAA2BnB,EAAMa,QAAQC,QAAQI,SAGrDE,oBAAqB,CACnBR,MAAOZ,EAAMa,QAAQC,QAAQI,OAE/BG,SAAU,CACRnB,MAAO,OACPoB,OAAQ,EACRb,QAAS,GAEXc,gBAAiB,CACflB,QAAS,OACTE,eAAgB,gBAChBiB,aAAc,OACdhB,WAAY,UAEdiB,eAAgB,CACdf,SAAU,OACVC,WAAY,IACZC,MAAO,UACPc,OAAQ,UACR,UAAW,CACTC,eAAgB,cAGrB,IAED,SAASC,EAAyFC,GAAA,IAA3EC,IAAAA,QAASC,IAAAA,aAAcC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oB,SAAA,CAErDE,MAACiB,mBAAgB,CAACC,WAAYlB,EAAAA,IAACmB,EAAUA,WAAI,IAACC,MAAO,CAAEjF,MAAO,QAAS2D,SACrEE,MAACY,EAAW,CACVlC,QAASA,EACT2C,iBAAkB/B,EAClBgC,YAAa5B,EACb6B,WAAY5B,MAGhBK,MAACwB,mBAAgB,CAAA1B,SACfE,MAACyB,OAAI,CAACC,OAAK,EAAC7B,UAAWzB,EAAQd,SAASwC,SACrCpB,EAAQE,MAAMC,KAAI,SAAAK,GAAI,OACrBc,EAAAA,IAAC2B,EAAY,CAEXzC,KAAMA,EACN0C,SAAU3D,EAAYS,EAAQE,MAAOM,EAAKH,IAC1C8C,QAAS3C,EAAK2C,QACdC,aAActC,GAAiB,QAAAtC,OAJlBwB,EAAQC,iBAAQO,EAAKH,gBAjBzBL,WAAAA,OAAAA,EAAQC,YAgCvC,CAEAd,EAAYkE,UAAY,CACtBhE,QAASiE,EAAMA,OAACC,WAChBjE,aAAckE,EAAOA,QAACC,QAAM,CAAA,IAC5BlE,YAAamE,EAAIA,KAACH,WAClB/D,qBAAsBkE,EAAIA,KAACH,WAC3B9D,cAAeiE,EAAIA,KAACH,YAGtBpE,EAAYwE,aAAe,CACzBrE,aAAc,IAKhB,IAAesE,EAAAA,EAAAA,KAAKzE"}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/BICOffsetPickerDialog/components/WellSection/index.js"],"sourcesContent":["import { memo } from 'react';\nimport { string, shape, func, arrayOf } from 'prop-types';\nimport classNames from 'classnames';\nimport {\n makeStyles,\n List,\n Accordion,\n AccordionSummary,\n AccordionDetails,\n Typography,\n} from '@material-ui/core';\nimport { ExpandMore } from '@material-ui/icons';\n\nimport AssetSearch from './AssetSearch';\nimport SectionItem from './SectionItem';\nimport WellListItem from './WellListItem';\n\nimport { showSuccessNotification } from '~/utils';\n\nconst PAGE_NAME = 'WellSection';\n\nconst useStyles = makeStyles(theme => ({\n content: {\n width: '472px',\n marginTop: '24px',\n },\n sectionItem: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n padding: '8px',\n fontSize: '12px',\n fontWeight: 'normal',\n color: theme.palette.primary.text6,\n borderTop: `1px solid ${theme.palette.primary.text8}`,\n '&:last-child': {\n borderBottom: `1px solid ${theme.palette.primary.text8}`,\n },\n },\n disabledSectionItem: {\n color: theme.palette.primary.text8,\n },\n wellList: {\n width: '100%',\n margin: 0,\n padding: 0,\n },\n searchContainer: {\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: '24px',\n alignItems: 'center',\n },\n advancedSearch: {\n fontSize: '14px',\n fontWeight: 500,\n color: '#03BCD4',\n cursor: 'pointer',\n '&:hover': {\n textDecoration: 'underline',\n },\n },\n}));\n\nfunction WellSection({\n company,\n wellSections = DEFAULT_WELL_SECTION_WELL_SECTIONS,\n getWellName,\n onChangeWellSections,\n onExploreMode,\n}) {\n const classes = useStyles();\n\n const selectAllWells = (targetSection, f) => {\n const selectedWellIds = wellSections\n .find(section => section.name === targetSection.name)\n .wells.map(item => item.id);\n\n const data = wellSections.map(section => {\n const sectionData = section.wells.map(well => {\n if (selectedWellIds.includes(well.id)) {\n return { ...well, checked: f };\n } else {\n return { ...well };\n }\n });\n return {\n ...section,\n wells: sectionData,\n };\n });\n onChangeWellSections(data);\n };\n\n const handleExpandCollapseSection = targetSection => {\n const data = wellSections.map(section => {\n if (section.name === targetSection.name) {\n return { ...section, expanded: !section.expanded };\n }\n return section;\n });\n onChangeWellSections(data);\n };\n\n const handleToggleWell = targetWell => {\n const data = wellSections.map(section => {\n const sectionData = section.wells.map(well => {\n if (well.id === targetWell.id) {\n return { ...well, checked: !well.checked };\n }\n return well;\n });\n return {\n ...section,\n wells: sectionData,\n };\n });\n onChangeWellSections(data);\n };\n\n const handleSelectAll = targetSection => {\n selectAllWells(targetSection, true);\n };\n\n const handleClearAll = targetSection => {\n selectAllWells(targetSection, false);\n };\n\n const handleClickAsset = (redirectAssetId, name) => {\n const data = wellSections.map(section => {\n if (section.name === 'Search Results') {\n const wells = [...section.wells];\n if (!section.wells.find(item => item.id === redirectAssetId)) {\n wells.push({ id: redirectAssetId, checked: true, name, kind: 'manual' });\n }\n return { ...section, wells };\n }\n return {\n ...section,\n wells: section.wells.map(well =>\n well.id === redirectAssetId ? { ...well, checked: true } : well\n ),\n };\n });\n onChangeWellSections(data);\n showSuccessNotification('Offset well successfully added!');\n };\n\n const handleOffsetPickerDialog = () => {\n onExploreMode();\n };\n\n return (\n <div className={classes.content}>\n <div className={classes.searchContainer}>\n <AssetSearch\n company={+company}\n onClickAsset={handleClickAsset}\n onExploreMode={onExploreMode}\n />\n <Typography\n data-testid={`${PAGE_NAME}_advancedSearch`}\n className={classes.advancedSearch}\n onClick={handleOffsetPickerDialog}\n >\n Advanced Search\n </Typography>\n </div>\n\n {(wellSections || []).map(section =>\n section.wells.length === 0 ? (\n <div\n key={`empty-${section.name}`}\n className={classNames(classes.sectionItem, classes.disabledSectionItem)}\n >\n <SectionItem section={section} disabled />\n </div>\n ) : (\n <div key={`section-${section.name}`} className={classes.sectionItem}>\n <Accordion\n expanded={section.expanded}\n onChange={() => handleExpandCollapseSection(section)}\n >\n <AccordionSummary expandIcon={<ExpandMore />} style={{ width: '100%' }}>\n <SectionItem\n section={section}\n onExpandCollapse={handleExpandCollapseSection}\n onSelectAll={handleSelectAll}\n onClearAll={handleClearAll}\n />\n </AccordionSummary>\n <AccordionDetails>\n <List dense className={classes.wellList}>\n {section.wells.map(well => (\n <WellListItem\n key={`well-${section.name}-${well.id}`}\n well={well}\n wellName={getWellName(section.wells, well.id)}\n rigName={well.rigName}\n onToggleWell={handleToggleWell}\n />\n ))}\n </List>\n </AccordionDetails>\n </Accordion>\n </div>\n )\n )}\n </div>\n );\n}\n\nWellSection.propTypes = {\n company: string.isRequired,\n wellSections: arrayOf(shape({})),\n getWellName: func.isRequired,\n onChangeWellSections: func.isRequired,\n onExploreMode: func.isRequired,\n};\n\nconst DEFAULT_WELL_SECTION_WELL_SECTIONS = [];\n\n// Important: Do not change root component default export (WellSection.js). Use it as container\n// for your WellSection. It's required to make build and zip scripts work as expected;\nexport default memo(WellSection);\n"],"names":["useStyles","makeStyles","theme","content","width","marginTop","sectionItem","display","flexDirection","justifyContent","alignItems","padding","fontSize","fontWeight","color","palette","primary","text6","borderTop","concat","text8","borderBottom","disabledSectionItem","wellList","margin","searchContainer","marginBottom","advancedSearch","cursor","textDecoration","WellSection","_ref","company","_ref$wellSections","wellSections","DEFAULT_WELL_SECTION_WELL_SECTIONS","getWellName","onChangeWellSections","onExploreMode","classes","selectAllWells","targetSection","f","selectedWellIds","find","section","name","wells","map","item","id","data","sectionData","well","includes","_objectSpread","checked","handleExpandCollapseSection","expanded","handleToggleWell","targetWell","handleSelectAll","handleClearAll","_jsxs","className","children","jsxs","_jsx","AssetSearch","onClickAsset","redirectAssetId","_toConsumableArray","push","kind","showSuccessNotification","Typography","onClick","length","classNames","SectionItem","disabled","jsx","Accordion","onChange","AccordionSummary","expandIcon","ExpandMore","style","onExpandCollapse","onSelectAll","onClearAll","AccordionDetails","List","dense","WellListItem","wellName","rigName","onToggleWell","propTypes","string","isRequired","arrayOf","shape","func","memo"],"mappings":"6nCAmBA,IAEMA,EAAYC,EAAAA,YAAW,SAAAC,GAAK,MAAK,CACrCC,QAAS,CACPC,MAAO,QACPC,UAAW,QAEbC,YAAa,CACXC,QAAS,OACTC,cAAe,MACfC,eAAgB,gBAChBC,WAAY,SACZC,QAAS,MACTC,SAAU,OACVC,WAAY,SACZC,MAAOZ,EAAMa,QAAQC,QAAQC,MAC7BC,UAAS,aAAAC,OAAejB,EAAMa,QAAQC,QAAQI,OAC9C,eAAgB,CACdC,iCAA2BnB,EAAMa,QAAQC,QAAQI,SAGrDE,oBAAqB,CACnBR,MAAOZ,EAAMa,QAAQC,QAAQI,OAE/BG,SAAU,CACRnB,MAAO,OACPoB,OAAQ,EACRb,QAAS,GAEXc,gBAAiB,CACflB,QAAS,OACTE,eAAgB,g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