@corva/ui 3.47.0-1 → 3.47.0-3

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 (464) 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/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  6. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  9. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  10. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  11. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  12. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  13. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  14. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  15. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  16. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  17. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  18. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  19. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  20. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  21. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  22. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  37. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  38. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  39. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  40. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  41. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  42. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  43. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  44. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  45. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  46. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  47. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  48. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  49. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  50. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  51. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  52. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  53. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  54. package/cjs-bundle/components/FeedItem/components/FeedComments.js.map +1 -1
  55. package/cjs-bundle/components/ImageViewer/index.js +1 -1
  56. package/cjs-bundle/components/ImageViewer/index.js.map +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  59. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  60. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  61. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js +1 -1
  62. package/cjs-bundle/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  63. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  64. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  65. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  66. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  67. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  68. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  69. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  70. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  71. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  72. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  73. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  74. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  75. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  76. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  77. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  78. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  79. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  80. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  81. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.module.css.js +1 -1
  82. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/LoadAllWellsToggle.js +1 -1
  83. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  84. package/cjs-bundle/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  85. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  86. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/MultiFilterSelect/MultiFilterSelect.js +1 -1
  87. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  88. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  89. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/StatusFilterSelect/StatusFilterSelect.js +1 -1
  90. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +2 -0
  92. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -0
  93. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.module.css.js +2 -0
  94. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js +1 -1
  95. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js +1 -1
  96. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  97. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  98. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  99. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  100. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js.map +1 -1
  101. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  102. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js +1 -1
  103. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.js +1 -1
  104. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
  105. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  106. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  107. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  108. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV5/constants.js.map +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.js +2 -0
  116. package/cjs-bundle/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.js.map +1 -0
  117. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.js +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV5/effects/useBicWells.js +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV5/effects/useBicWells.js.map +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/constants.js +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js.map +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.js +2 -0
  128. package/cjs-bundle/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.js.map +1 -0
  129. package/cjs-bundle/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.js +2 -0
  130. package/cjs-bundle/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.js.map +1 -0
  131. package/cjs-bundle/components/OffsetWellPickerV5/stores/picker-props-store/PickerPropsStoreProvider.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js +1 -1
  134. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.js +2 -0
  135. package/cjs-bundle/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.js.map +1 -0
  136. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewType.js +2 -0
  137. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewType.js.map +1 -0
  138. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewportContext.js +2 -0
  139. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewportContext.js.map +1 -0
  140. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewportProvider.js +2 -0
  141. package/cjs-bundle/components/OffsetWellPickerV5/viewport/ViewportProvider.js.map +1 -0
  142. package/cjs-bundle/components/OffsetWellPickerV5/viewport/computeViewType.js +2 -0
  143. package/cjs-bundle/components/OffsetWellPickerV5/viewport/computeViewType.js.map +1 -0
  144. package/cjs-bundle/components/OffsetWellPickerV5/viewport/useViewType.js +2 -0
  145. package/cjs-bundle/components/OffsetWellPickerV5/viewport/useViewType.js.map +1 -0
  146. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  147. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  148. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  149. package/cjs-bundle/components/Popover/Popover.js +1 -1
  150. package/cjs-bundle/components/Popper/Popper.js +1 -1
  151. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  152. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  153. package/cjs-bundle/componentsV2/Slider/Slider.js +2 -0
  154. package/cjs-bundle/componentsV2/Slider/Slider.js.map +1 -0
  155. package/cjs-bundle/componentsV2/Slider/Slider.scss.js +2 -0
  156. package/cjs-bundle/componentsV2/Slider/Slider.scss.js.map +1 -0
  157. package/cjs-bundle/componentsV2/Slider/components/SliderInput.js +2 -0
  158. package/cjs-bundle/componentsV2/Slider/components/SliderInput.js.map +1 -0
  159. package/cjs-bundle/componentsV2/Slider/components/SliderThumb.js +2 -0
  160. package/cjs-bundle/componentsV2/Slider/components/SliderThumb.js.map +1 -0
  161. package/cjs-bundle/componentsV2/Slider/constants.js +2 -0
  162. package/cjs-bundle/componentsV2/Slider/constants.js.map +1 -0
  163. package/cjs-bundle/componentsV2/Slider/strategies/horizontal.js +2 -0
  164. package/cjs-bundle/componentsV2/Slider/strategies/horizontal.js.map +1 -0
  165. package/cjs-bundle/componentsV2/Slider/strategies/vertical.js +2 -0
  166. package/cjs-bundle/componentsV2/Slider/strategies/vertical.js.map +1 -0
  167. package/cjs-bundle/componentsV2/Slider/utils.js +2 -0
  168. package/cjs-bundle/componentsV2/Slider/utils.js.map +1 -0
  169. package/cjs-bundle/componentsV2/Tooltip/Tooltip.js +1 -1
  170. package/cjs-bundle/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  171. package/cjs-bundle/componentsV2/index.js +1 -1
  172. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  173. package/components/AddComment/Popover.js +1 -1
  174. package/components/AddComment/Popover.js.map +1 -1
  175. package/components/AddComment/components/Content.js +1 -1
  176. package/components/AddComment/components/Content.js.map +1 -1
  177. package/components/BICOffsetPickerDialog/index.js +1 -1
  178. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  179. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  180. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  181. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  182. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  183. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  184. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  185. package/components/CollapsableSidebar.js +1 -1
  186. package/components/CollapsableSidebar.js.map +1 -1
  187. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  188. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  189. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  190. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  191. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
  192. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js.map +1 -1
  193. package/components/DocumentViewer/DocumentViewer.js +1 -1
  194. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  195. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  196. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  197. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  198. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  199. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  200. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  201. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  202. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  203. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  204. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  205. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  206. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  207. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  208. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  209. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  210. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  211. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  212. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  213. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  214. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  215. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  216. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  217. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  218. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  219. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  220. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  221. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  222. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  223. package/components/FeedItem/FeedItem.js +1 -1
  224. package/components/FeedItem/FeedItem.js.map +1 -1
  225. package/components/FeedItem/components/FeedComments.js +1 -1
  226. package/components/FeedItem/components/FeedComments.js.map +1 -1
  227. package/components/ImageViewer/index.js +1 -1
  228. package/components/ImageViewer/index.js.map +1 -1
  229. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  230. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  231. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  232. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  233. package/components/OffsetWellPickerV2/effects/index.d.ts.map +1 -1
  234. package/components/OffsetWellPickerV2/effects/index.js +1 -1
  235. package/components/OffsetWellPickerV2/effects/index.js.map +1 -1
  236. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  237. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  238. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  239. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  240. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  241. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  242. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  243. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  244. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  245. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  246. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  247. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  248. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  249. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  250. package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
  251. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  252. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  253. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.d.ts.map +1 -1
  254. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  255. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.d.ts.map +1 -1
  256. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  257. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.module.css.js +1 -1
  258. package/components/OffsetWellPickerV5/components/AppHeader/LoadAllWellsToggle.js +1 -1
  259. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.d.ts.map +1 -1
  260. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js +1 -1
  261. package/components/OffsetWellPickerV5/components/CustomInfoIcon/CustomInfoIcon.js.map +1 -1
  262. package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts +1 -2
  263. package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
  264. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  265. package/components/OffsetWellPickerV5/components/Filter/components/MultiFilterSelect/MultiFilterSelect.js +1 -1
  266. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  267. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  268. package/components/OffsetWellPickerV5/components/Filter/components/StatusFilterSelect/StatusFilterSelect.js +1 -1
  269. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  270. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  271. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.d.ts +8 -0
  272. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.d.ts.map +1 -0
  273. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +2 -0
  274. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -0
  275. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.module.css.js +2 -0
  276. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/index.d.ts +2 -0
  277. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/index.d.ts.map +1 -0
  278. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.d.ts.map +1 -1
  279. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/GhostSelectionZone.js +1 -1
  280. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.d.ts +1 -7
  281. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.d.ts.map +1 -1
  282. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/GhostSelectionZone/constants.js +1 -1
  283. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  284. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  285. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.d.ts.map +1 -1
  286. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  287. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +6 -2
  288. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
  289. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  290. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js.map +1 -1
  291. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts.map +1 -1
  292. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  293. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.d.ts +1 -2
  294. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.d.ts.map +1 -1
  295. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusKeyboardHandlers.js +1 -1
  296. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts +8 -0
  297. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts.map +1 -1
  298. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.js +1 -1
  299. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts +1 -5
  300. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts.map +1 -1
  301. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
  302. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  303. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  304. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  305. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  306. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  307. package/components/OffsetWellPickerV5/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  308. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts.map +1 -1
  309. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  310. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  311. package/components/OffsetWellPickerV5/constants.d.ts +0 -1
  312. package/components/OffsetWellPickerV5/constants.d.ts.map +1 -1
  313. package/components/OffsetWellPickerV5/constants.js +1 -1
  314. package/components/OffsetWellPickerV5/constants.js.map +1 -1
  315. package/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.d.ts +2 -0
  316. package/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.d.ts.map +1 -0
  317. package/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.js +2 -0
  318. package/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.js.map +1 -0
  319. package/components/OffsetWellPickerV5/effects/cache-utils/index.d.ts +3 -0
  320. package/components/OffsetWellPickerV5/effects/cache-utils/index.d.ts.map +1 -0
  321. package/components/OffsetWellPickerV5/effects/cache-utils/types.d.ts +21 -0
  322. package/components/OffsetWellPickerV5/effects/cache-utils/types.d.ts.map +1 -0
  323. package/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.d.ts +9 -1
  324. package/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.d.ts.map +1 -1
  325. package/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.js +1 -1
  326. package/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.d.ts +5 -1
  327. package/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.d.ts.map +1 -1
  328. package/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.js +1 -1
  329. package/components/OffsetWellPickerV5/effects/useAllWellsCache/types.d.ts +3 -8
  330. package/components/OffsetWellPickerV5/effects/useAllWellsCache/types.d.ts.map +1 -1
  331. package/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.d.ts +5 -26
  332. package/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.d.ts.map +1 -1
  333. package/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.js +1 -1
  334. package/components/OffsetWellPickerV5/effects/useBicWells.d.ts.map +1 -1
  335. package/components/OffsetWellPickerV5/effects/useBicWells.js +1 -1
  336. package/components/OffsetWellPickerV5/effects/useBicWells.js.map +1 -1
  337. package/components/OffsetWellPickerV5/effects/useTileCache/constants.d.ts +5 -1
  338. package/components/OffsetWellPickerV5/effects/useTileCache/constants.d.ts.map +1 -1
  339. package/components/OffsetWellPickerV5/effects/useTileCache/constants.js +1 -1
  340. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.d.ts +3 -17
  341. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.d.ts.map +1 -1
  342. package/components/OffsetWellPickerV5/effects/useTileCache/idle-callback.js +1 -1
  343. package/components/OffsetWellPickerV5/effects/useTileCache/index.d.ts +1 -1
  344. package/components/OffsetWellPickerV5/effects/useTileCache/index.d.ts.map +1 -1
  345. package/components/OffsetWellPickerV5/effects/useTileCache/types.d.ts +4 -11
  346. package/components/OffsetWellPickerV5/effects/useTileCache/types.d.ts.map +1 -1
  347. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.d.ts +6 -76
  348. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.d.ts.map +1 -1
  349. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js +1 -1
  350. package/components/OffsetWellPickerV5/effects/useTileCache/useTileCache.js.map +1 -1
  351. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.d.ts.map +1 -1
  352. package/components/OffsetWellPickerV5/effects/useViewportWells/useViewportWells.js +1 -1
  353. package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.d.ts +13 -0
  354. package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.d.ts.map +1 -0
  355. package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.js +2 -0
  356. package/components/OffsetWellPickerV5/stores/company-safeguard/CompanySafeguardContext.js.map +1 -0
  357. package/components/OffsetWellPickerV5/stores/company-safeguard/index.d.ts +4 -0
  358. package/components/OffsetWellPickerV5/stores/company-safeguard/index.d.ts.map +1 -0
  359. package/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.d.ts +3 -0
  360. package/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.d.ts.map +1 -0
  361. package/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.js +2 -0
  362. package/components/OffsetWellPickerV5/stores/company-safeguard/useCompanySafeguard.js.map +1 -0
  363. package/components/OffsetWellPickerV5/stores/picker-props-store/PickerPropsStoreProvider.d.ts.map +1 -1
  364. package/components/OffsetWellPickerV5/stores/picker-props-store/PickerPropsStoreProvider.js +1 -1
  365. package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.d.ts.map +1 -1
  366. package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +1 -1
  367. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.d.ts.map +1 -1
  368. package/components/OffsetWellPickerV5/stores/viewport-store/createViewportStore.js +1 -1
  369. package/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.d.ts +2 -0
  370. package/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.d.ts.map +1 -0
  371. package/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.js +2 -0
  372. package/components/OffsetWellPickerV5/stores/viewport-store/utils/areWellMapsEqual.js.map +1 -0
  373. package/components/OffsetWellPickerV5/viewport/ViewType.d.ts +7 -0
  374. package/components/OffsetWellPickerV5/viewport/ViewType.d.ts.map +1 -0
  375. package/components/OffsetWellPickerV5/viewport/ViewType.js +2 -0
  376. package/components/OffsetWellPickerV5/viewport/ViewType.js.map +1 -0
  377. package/components/OffsetWellPickerV5/viewport/ViewportContext.d.ts +3 -0
  378. package/components/OffsetWellPickerV5/viewport/ViewportContext.d.ts.map +1 -0
  379. package/components/OffsetWellPickerV5/viewport/ViewportContext.js +2 -0
  380. package/components/OffsetWellPickerV5/viewport/ViewportContext.js.map +1 -0
  381. package/components/OffsetWellPickerV5/viewport/ViewportProvider.d.ts +7 -0
  382. package/components/OffsetWellPickerV5/viewport/ViewportProvider.d.ts.map +1 -0
  383. package/components/OffsetWellPickerV5/viewport/ViewportProvider.js +2 -0
  384. package/components/OffsetWellPickerV5/viewport/ViewportProvider.js.map +1 -0
  385. package/components/OffsetWellPickerV5/viewport/computeViewType.d.ts +3 -0
  386. package/components/OffsetWellPickerV5/viewport/computeViewType.d.ts.map +1 -0
  387. package/components/OffsetWellPickerV5/viewport/computeViewType.js +2 -0
  388. package/components/OffsetWellPickerV5/viewport/computeViewType.js.map +1 -0
  389. package/components/OffsetWellPickerV5/viewport/index.d.ts +5 -0
  390. package/components/OffsetWellPickerV5/viewport/index.d.ts.map +1 -0
  391. package/components/OffsetWellPickerV5/viewport/useViewType.d.ts +7 -0
  392. package/components/OffsetWellPickerV5/viewport/useViewType.d.ts.map +1 -0
  393. package/components/OffsetWellPickerV5/viewport/useViewType.js +2 -0
  394. package/components/OffsetWellPickerV5/viewport/useViewType.js.map +1 -0
  395. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  396. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  397. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  398. package/components/Popover/Popover.js +1 -1
  399. package/components/Popper/Popper.js +1 -1
  400. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  401. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  402. package/componentsV2/Popper/Popper.d.ts +7 -1
  403. package/componentsV2/Popper/Popper.d.ts.map +1 -1
  404. package/componentsV2/Slider/Slider.d.ts +60 -0
  405. package/componentsV2/Slider/Slider.d.ts.map +1 -0
  406. package/componentsV2/Slider/Slider.js +2 -0
  407. package/componentsV2/Slider/Slider.js.map +1 -0
  408. package/componentsV2/Slider/Slider.scss.js +2 -0
  409. package/componentsV2/Slider/Slider.scss.js.map +1 -0
  410. package/componentsV2/Slider/Slider.stories.d.ts +13 -0
  411. package/componentsV2/Slider/Slider.stories.d.ts.map +1 -0
  412. package/componentsV2/Slider/components/SliderInput.d.ts +9 -0
  413. package/componentsV2/Slider/components/SliderInput.d.ts.map +1 -0
  414. package/componentsV2/Slider/components/SliderInput.js +2 -0
  415. package/componentsV2/Slider/components/SliderInput.js.map +1 -0
  416. package/componentsV2/Slider/components/SliderThumb.d.ts +9 -0
  417. package/componentsV2/Slider/components/SliderThumb.d.ts.map +1 -0
  418. package/componentsV2/Slider/components/SliderThumb.js +2 -0
  419. package/componentsV2/Slider/components/SliderThumb.js.map +1 -0
  420. package/componentsV2/Slider/constants.d.ts +19 -0
  421. package/componentsV2/Slider/constants.d.ts.map +1 -0
  422. package/componentsV2/Slider/constants.js +2 -0
  423. package/componentsV2/Slider/constants.js.map +1 -0
  424. package/componentsV2/Slider/index.d.ts +2 -0
  425. package/componentsV2/Slider/index.d.ts.map +1 -0
  426. package/componentsV2/Slider/strategies/horizontal.d.ts +22 -0
  427. package/componentsV2/Slider/strategies/horizontal.d.ts.map +1 -0
  428. package/componentsV2/Slider/strategies/horizontal.js +2 -0
  429. package/componentsV2/Slider/strategies/horizontal.js.map +1 -0
  430. package/componentsV2/Slider/strategies/vertical.d.ts +22 -0
  431. package/componentsV2/Slider/strategies/vertical.d.ts.map +1 -0
  432. package/componentsV2/Slider/strategies/vertical.js +2 -0
  433. package/componentsV2/Slider/strategies/vertical.js.map +1 -0
  434. package/componentsV2/Slider/utils.d.ts +48 -0
  435. package/componentsV2/Slider/utils.d.ts.map +1 -0
  436. package/componentsV2/Slider/utils.js +2 -0
  437. package/componentsV2/Slider/utils.js.map +1 -0
  438. package/componentsV2/Tooltip/Tooltip.d.ts +3 -1
  439. package/componentsV2/Tooltip/Tooltip.d.ts.map +1 -1
  440. package/componentsV2/Tooltip/Tooltip.js +1 -1
  441. package/componentsV2/Tooltip/Tooltip.stories.d.ts.map +1 -1
  442. package/componentsV2/WellArchivedMessage/WellArchivedMessage.js +1 -1
  443. package/componentsV2/index.d.ts +1 -0
  444. package/componentsV2/index.d.ts.map +1 -1
  445. package/componentsV2/index.js +1 -1
  446. package/mcp-server/server.mjs +341 -2
  447. package/mcp-server/server.mjs.map +1 -1
  448. package/mcp-server/setup.mjs +1108 -16
  449. package/package.json +3 -2
  450. package/storyBookHelpers/components.d.ts +4 -2
  451. package/storyBookHelpers/components.d.ts.map +1 -1
  452. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  453. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js +0 -2
  454. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js.map +0 -1
  455. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js +0 -2
  456. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js +0 -2
  457. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js.map +0 -1
  458. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js +0 -2
  459. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.js.map +0 -1
  460. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ConfirmationPopup/ConfirmationPopup.module.css.js +0 -2
  461. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js +0 -2
  462. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useConfirmationPopupPosition.js.map +0 -1
  463. /package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/{ConfirmationPopup/ConfirmationPopup.module.css.js.map → ClusterTooltip/ClusterTooltip.module.css.js.map} +0 -0
  464. /package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/{ConfirmationPopup/ConfirmationPopup.module.css.js.map → ClusterTooltip/ClusterTooltip.module.css.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellsTableRow.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js"],"sourcesContent":["import { memo, useCallback, useEffect, useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { startCase, get } from 'lodash';\nimport classNames from 'classnames';\nimport moment from 'moment';\nimport { Typography, Checkbox, Tooltip, TableCell, TableRow } from '@material-ui/core';\n\nimport {\n ColumnType,\n EXPANDED_WELL_NAME_WIDTH,\n LEAVE_TOUCH_DELAY,\n StatusOptions,\n} from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useViewStore } from '../../stores/view-store/useViewStore';\n\nimport { MetricCell } from './MetricCell';\nimport { SubjectWellMark } from './SubjectWellMark';\nimport { ViewWellSectionsName } from './ViewWellSectionsName';\n\nimport styles from './OffsetWellsTableRow.module.css';\n\nimport { convertValue } from '~/utils';\nimport { isMobileDetected } from '~/utils/mobileDetect';\n\nconst PAGE_NAME = 'OffsetWellsTableRow';\nconst AVG_CHAR_WIDTH = 8;\n\nconst formatDistance = (data, isImperial) => {\n const value = get(data, ColumnType.distance);\n if (Number.isFinite(value)) {\n return isImperial ? value : convertValue(value, 'length', 'mi', 'km');\n }\n return '—';\n};\n\nconst getTextWidth = strText => {\n const text = document.createElement('span');\n document.body.appendChild(text);\n text.style.font = 'Roboto';\n text.style.fontSize = '14px';\n text.style.letterSpacing = '0.01071em';\n text.style.height = 'auto';\n text.style.width = 'auto';\n text.style.position = 'absolute';\n text.style.whiteSpace = 'nowrap';\n text.innerHTML = strText;\n const textWidth = Math.ceil(text.clientWidth);\n document.body.removeChild(text);\n return textWidth;\n};\n\nconst OffsetWellsTableRowComponent = ({\n columnsWithDict,\n data,\n subjectWellId,\n metricsKeys,\n metricsColumns,\n handleChangeOffsetWell,\n wellNameStyle,\n wellNameWidth,\n isImperial,\n isLimitedOffsetWells,\n maxOffsetWellNumber,\n wellSections,\n setActiveWellId,\n onRowClick,\n taScores,\n isWellSectionColumnVisible,\n loadingWellIds,\n registerRow,\n}) => {\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const isWellNameExpand = useViewStore(state => state.isWellNameExpand);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const isSubjectWell = subjectWellId === data.id;\n const borderStyle = { [styles.subjectWellRow]: isSubjectWell };\n const [isChecked, setIsChecked] = useState(data.checked);\n const hasCompanyColumn = columnsWithDict?.some(col => col.key === ColumnType.company);\n\n // Memoize lookup Maps for O(1) access instead of O(n) find() calls\n const columnsMap = useMemo(\n () => new Map(columnsWithDict?.map(col => [col.key, col]) || []),\n [columnsWithDict]\n );\n const metricsMap = useMemo(\n () => new Map(metricsColumns?.map(m => [m.key, m]) || []),\n [metricsColumns]\n );\n const taScoresMap = useMemo(\n () => new Map(taScores?.map(t => [t.wellId, t.taScore]) || []),\n [taScores]\n );\n const wellSectionsMap = useMemo(\n () => new Map(wellSections?.map(ws => [ws.label, ws.color]) || []),\n [wellSections]\n );\n const statusOptionsMap = useMemo(\n () => new Map(StatusOptions.map(opt => [opt.value, opt.color])),\n []\n );\n\n const rowRef = useCallback(\n node => {\n registerRow(data.id, node);\n },\n [registerRow, data.id]\n );\n\n let isOverFlowWellName = false;\n const wellName = data[ColumnType.name] || '—';\n let truncWellName = wellName;\n if (!isWellNameExpand && wellNameWidth * 2 < wellName.length * AVG_CHAR_WIDTH) {\n const wellNameRealWidth = getTextWidth(wellName);\n if (wellNameRealWidth > wellNameWidth * 2) {\n const maxCounts = (wellNameWidth * 2) / (wellNameRealWidth / wellName.length);\n truncWellName = `${wellName.substring(0, maxCounts / 2 - 2)}\\n... ${wellName.substring(\n wellName.length - maxCounts / 2 + 6\n )}`;\n isOverFlowWellName = true;\n }\n }\n\n const handleChangeCheckbox = checked => {\n handleChangeOffsetWell(data, checked);\n setIsChecked(checked);\n };\n\n useEffect(() => {\n setIsChecked(data.checked);\n }, [data.checked]);\n\n const getSectionColor = ([sectionName]) => {\n return wellSectionsMap.get(sectionName);\n };\n\n const wellSectionData = useMemo(() => {\n return data[ColumnType.wellSection];\n }, [data]);\n\n const checkboxTooltipText = useMemo(() => {\n if (isViewOnly) {\n return `View only mode. To edit offsets, use ${\n isWDUser ? 'Offset Selection App' : 'WellHub'\n }.`;\n } else if (isLimitedOffsetWells && !data.checked) {\n return `App can't process more than (${maxOffsetWellNumber - 1}) Offset Wells.`;\n } else {\n return '';\n }\n }, [isViewOnly, isLimitedOffsetWells, data.checked, isWDUser, maxOffsetWellNumber]);\n\n const lastCellColumn = useMemo(() => {\n if (isWellSectionColumnVisible) {\n return 'wellSection';\n }\n\n if (metricsKeys.length > 0) {\n return 'lastMetric';\n }\n\n return 'lastActive';\n }, [isWellSectionColumnVisible, metricsKeys.length]);\n\n const handleMouseEnter = () => {\n setActiveWellId(data.id);\n };\n\n const handleMouseLeave = () => {\n setActiveWellId(null);\n };\n\n const handleRowClick = () => {\n if (!isMapHidden) {\n onRowClick?.(data.id);\n }\n };\n\n return (\n <TableRow\n ref={rowRef}\n data-testid={`${PAGE_NAME}_row_${wellName}`}\n data-well-id={data.id}\n className={styles.bodyRow}\n title={isMapHidden ? undefined : 'Click to show on map'}\n onClick={handleRowClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <TableCell\n data-testid={`${PAGE_NAME}_well`}\n className={classNames(styles.bodyCell, styles.wellNameCell, borderStyle, wellNameStyle)}\n style={\n isWellNameExpand\n ? { minWidth: EXPANDED_WELL_NAME_WIDTH, flex: 0 }\n : {\n minWidth: columnsMap.get(ColumnType.name)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.name)?.flex || 0,\n }\n }\n >\n {isSubjectWell && <SubjectWellMark className={classNames(styles.subjectWellMark)} />}\n {!isSubjectWell && (\n <Tooltip\n title={checkboxTooltipText}\n placement=\"bottom-start\"\n classes={{ tooltipPlacementBottom: styles.checkboxTooltip }}\n >\n <div onClick={e => e.stopPropagation()}>\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n size=\"medium\"\n checked={isChecked}\n classes={{ disabled: styles.checkboxDisabled }}\n disabled={isViewOnly || (isLimitedOffsetWells && !data.checked)}\n onChange={event => handleChangeCheckbox(event.target.checked)}\n />\n </div>\n </Tooltip>\n )}\n <Tooltip title={isOverFlowWellName ? wellName : ''}>\n <Typography\n variant=\"body2\"\n className={classNames(styles.wellNameCursor, {\n [styles.cellDataViewOnly]: isSubjectWell,\n [styles.wellNamePreWrap]: isOverFlowWellName,\n })}\n >\n {isOverFlowWellName ? truncWellName : wellName}\n </Typography>\n </Tooltip>\n </TableCell>\n\n <TableCell\n data-testid={`${PAGE_NAME}_dot`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.status)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.status)?.flex || 0,\n }}\n >\n {!isSubjectWell && (\n <Tooltip\n title={startCase(data[ColumnType.status])}\n enterTouchDelay={isMobileDetected ? 0 : undefined}\n leaveTouchDelay={isMobileDetected ? LEAVE_TOUCH_DELAY : undefined}\n >\n <div className={styles.statusContainer}>\n <div\n data-testid={`${PAGE_NAME}_color`}\n className={styles.status}\n style={{\n background: statusOptionsMap.get(data[ColumnType.status]),\n }}\n />\n </div>\n </Tooltip>\n )}\n </TableCell>\n\n {hasCompanyColumn && (\n <TableCell\n data-testid={`${PAGE_NAME}_company`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.company)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.company)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.company] && data[ColumnType.company] !== 'Null'\n ? data[ColumnType.company]\n : '—'}\n </Typography>\n </TableCell>\n )}\n\n <TableCell\n data-testid={`${PAGE_NAME}_rig`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.rig)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.rig)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.rig] && data[ColumnType.rig] !== 'Null' ? data[ColumnType.rig] : '—'}\n </Typography>\n </TableCell>\n\n <TableCell\n data-testid={`${PAGE_NAME}_distance`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.distance)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.distance)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {formatDistance(data, isImperial)}\n </Typography>\n </TableCell>\n\n {!!taScores.length && (\n <TableCell\n data-testid={`${PAGE_NAME}_ta`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.taScore)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.taScore)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {taScoresMap.get(data.id) ?? ''}\n </Typography>\n </TableCell>\n )}\n\n <TableCell\n data-testid={`${PAGE_NAME}_lastActive`}\n className={classNames(styles.bodyCell, borderStyle, {\n [styles.lastCell]: lastCellColumn === 'lastActive',\n })}\n style={{\n minWidth: columnsMap.get(ColumnType.lastActive)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.lastActive)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.lastActive] && Number.isFinite(data[ColumnType.lastActive])\n ? moment.unix(data[ColumnType.lastActive]).format('MM/DD/YYYY')\n : '—'}\n </Typography>\n </TableCell>\n\n {metricsKeys.map((metricsKey, index) => {\n const metric = metricsMap.get(metricsKey);\n const value = metric ? get(data, metric.key) : undefined;\n\n return (\n <TableCell\n data-testid={`${PAGE_NAME}_${metricsKey}`}\n key={metricsKey}\n className={classNames(styles.bodyCell, borderStyle, {\n [styles.lastCell]:\n lastCellColumn === 'lastMetric' && index === metricsKeys.length - 1,\n })}\n style={{\n minWidth: columnsMap.get(metricsKey)?.minWidth || 0,\n flex: columnsMap.get(metricsKey)?.flex || 0,\n }}\n >\n <MetricCell\n value={value}\n wellId={data.id}\n loadingWellIds={loadingWellIds}\n metric={metric}\n />\n </TableCell>\n );\n })}\n\n {isWellSectionColumnVisible && (\n <TableCell\n data-testid={`${PAGE_NAME}_wellSection`}\n className={classNames(styles.bodyCell, styles.lastCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.wellSection)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.wellSection)?.flex || 0,\n }}\n >\n {wellSectionData && wellSectionData.length > 1 ? (\n <Tooltip\n classes={{\n tooltip: styles.customTooltip,\n }}\n title={<ViewWellSectionsName wellSectionNames={wellSectionData} />}\n >\n <div className={styles.sectionLength}>{wellSectionData.length}</div>\n </Tooltip>\n ) : (\n <Tooltip title={wellSectionData || ''}>\n <Typography\n variant=\"body2\"\n className={styles.cellData}\n style={{\n color:\n wellSectionData &&\n wellSectionData.length === 1 &&\n getSectionColor(wellSectionData),\n }}\n >\n {wellSectionData}\n </Typography>\n </Tooltip>\n )}\n </TableCell>\n )}\n </TableRow>\n );\n};\n\nOffsetWellsTableRowComponent.propTypes = {\n columnsWithDict: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n data: PropTypes.shape({\n id: PropTypes.number,\n checked: PropTypes.bool,\n name: PropTypes.string,\n status: PropTypes.string,\n }).isRequired,\n subjectWellId: PropTypes.number.isRequired,\n metricsKeys: PropTypes.arrayOf(PropTypes.string).isRequired,\n metricsColumns: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n handleChangeOffsetWell: PropTypes.func.isRequired,\n wellNameStyle: PropTypes.string.isRequired,\n wellNameWidth: PropTypes.number.isRequired,\n isImperial: PropTypes.bool.isRequired,\n isLimitedOffsetWells: PropTypes.bool.isRequired,\n maxOffsetWellNumber: PropTypes.number.isRequired,\n wellSections: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n setActiveWellId: PropTypes.func.isRequired,\n onRowClick: PropTypes.func.isRequired,\n taScores: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n isWellSectionColumnVisible: PropTypes.bool.isRequired,\n loadingWellIds: PropTypes.instanceOf(Set).isRequired,\n registerRow: PropTypes.func.isRequired,\n};\n\nexport const OffsetWellsTableRow = memo(OffsetWellsTableRowComponent);\n"],"names":["PAGE_NAME","formatDistance","data","isImperial","value","get","ColumnType","distance","Number","isFinite","convertValue","OffsetWellsTableRowComponent","_ref","_columnsMap$get","_columnsMap$get2","_classNames","_columnsMap$get3","_columnsMap$get4","_columnsMap$get5","_columnsMap$get6","_columnsMap$get7","_columnsMap$get8","_columnsMap$get9","_columnsMap$get10","_columnsMap$get11","_columnsMap$get12","_taScoresMap$get","_columnsMap$get13","_columnsMap$get14","_columnsMap$get17","_columnsMap$get18","columnsWithDict","subjectWellId","metricsKeys","metricsColumns","handleChangeOffsetWell","wellNameStyle","wellNameWidth","isLimitedOffsetWells","maxOffsetWellNumber","wellSections","setActiveWellId","onRowClick","taScores","isWellSectionColumnVisible","loadingWellIds","registerRow","isWDUser","usePickerPropsStore","state","isViewOnly","isWellNameExpand","useViewStore","isMapHidden","isSubjectWell","id","borderStyle","styles","subjectWellRow","_useState","useState","checked","_useState2","_slicedToArray","isChecked","setIsChecked","hasCompanyColumn","some","col","key","company","columnsMap","useMemo","Map","map","metricsMap","m","taScoresMap","t","wellId","taScore","wellSectionsMap","ws","label","color","statusOptionsMap","StatusOptions","opt","rowRef","useCallback","node","isOverFlowWellName","wellName","name","truncWellName","length","wellNameRealWidth","strText","text","document","createElement","body","appendChild","style","font","fontSize","letterSpacing","height","width","position","whiteSpace","innerHTML","textWidth","Math","ceil","clientWidth","removeChild","getTextWidth","maxCounts","substring","concat","useEffect","_ref2","sectionName","wellSectionData","wellSection","checkboxTooltipText","lastCellColumn","_jsxs","TableRow","ref","className","bodyRow","title","undefined","onClick","onMouseEnter","onMouseLeave","children","TableCell","classNames","bodyCell","wellNameCell","minWidth","EXPANDED_WELL_NAME_WIDTH","flex","_jsx","SubjectWellMark","subjectWellMark","Tooltip","placement","classes","tooltipPlacementBottom","checkboxTooltip","e","stopPropagation","Checkbox","size","disabled","checkboxDisabled","onChange","event","target","Typography","variant","wellNameCursor","cellDataViewOnly","wellNamePreWrap","status","startCase","enterTouchDelay","isMobileDetected","leaveTouchDelay","LEAVE_TOUCH_DELAY","statusContainer","background","cellData","rig","lastCell","lastActive","moment","unix","format","metricsKey","index","_columnsMap$get15","_columnsMap$get16","metric","MetricCell","tooltip","customTooltip","ViewWellSectionsName","wellSectionNames","sectionLength","propTypes","PropTypes","arrayOf","shape","isRequired","number","bool","string","func","instanceOf","Set","OffsetWellsTableRow","memo"],"mappings":"mkCAyBA,IAAMA,EAAY,sBAGZC,EAAiB,SAACC,EAAMC,GAC5B,IAAMC,EAAQC,EAAIH,EAAMI,EAAWC,UACnC,OAAIC,OAAOC,SAASL,GACXD,EAAaC,EAAQM,EAAaN,EAAO,SAAU,KAAM,MAE3D,GACT,EAkBMO,EAA+B,SAmB/BC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAlBJC,IAAAA,gBACA7B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O,CAAChB,MAAOT,IAAmB,GAAGc,SACpCQ,EAACiB,EAAU,CACTC,QAAQ,QACRjC,UAAW1E,EAAOuH,SAClBzE,MAAO,CACLnB,MACEwC,IAC2B,IAA3BA,GAAgB7B,SAhQS2B,GAiQTE,GAjQRD,GAAiB5D,EAAA2D,GAAA,GAAN,GAC5BzC,GAAgB5E,IAAIsH,MAiQbe,SAEDd,WAQjB,EAEAjH,EAA6BuL,UAAY,CACvCnK,gBAAiBoK,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACxDpM,KAAMiM,EAAUE,MAAM,CACpB9I,GAAI4I,EAAUI,OACd1I,QAASsI,EAAUK,KACnB3G,KAAMsG,EAAUM,OAChBjC,OAAQ2B,EAAUM,SACjBH,WACHtK,cAAemK,EAAUI,OAAOD,WAChCrK,YAAakK,EAAUC,QAAQD,EAAUM,QAAQH,WACjDpK,eAAgBiK,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACvDnK,uBAAwBgK,EAAUO,KAAKJ,WACvClK,cAAe+J,EAAUM,OAAOH,WAChCjK,cAAe8J,EAAUI,OAAOD,WAChCnM,WAAYgM,EAAUK,KAAKF,WAC3BhK,qBAAsB6J,EAAUK,KAAKF,WACrC/J,oBAAqB4J,EAAUI,OAAOD,WACtC9J,aAAc2J,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACrD7J,gBAAiB0J,EAAUO,KAAKJ,WAChC5J,WAAYyJ,EAAUO,KAAKJ,WAC3B3J,SAAUwJ,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACjD1J,2BAA4BuJ,EAAUK,KAAKF,WAC3CzJ,eAAgBsJ,EAAUQ,WAAWC,KAAKN,WAC1CxJ,YAAaqJ,EAAUO,KAAKJ,gBAGjBO,EAAsBC,EAAKnM"}
1
+ {"version":3,"file":"OffsetWellsTableRow.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js"],"sourcesContent":["import { memo, useCallback, useEffect, useState, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { startCase, get } from 'lodash';\nimport classNames from 'classnames';\nimport moment from 'moment';\nimport { Typography, Checkbox, Tooltip, TableCell, TableRow } from '@material-ui/core';\n\nimport {\n ColumnType,\n EXPANDED_WELL_NAME_WIDTH,\n LEAVE_TOUCH_DELAY,\n StatusOptions,\n} from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useViewStore } from '../../stores/view-store/useViewStore';\nimport { useViewType } from '../../viewport';\n\nimport { MetricCell } from './MetricCell';\nimport { SubjectWellMark } from './SubjectWellMark';\nimport { ViewWellSectionsName } from './ViewWellSectionsName';\n\nimport styles from './OffsetWellsTableRow.module.css';\n\nimport { convertValue } from '~/utils';\n\nconst PAGE_NAME = 'OffsetWellsTableRow';\nconst AVG_CHAR_WIDTH = 8;\n\nconst formatDistance = (data, isImperial) => {\n const value = get(data, ColumnType.distance);\n if (Number.isFinite(value)) {\n return isImperial ? value : convertValue(value, 'length', 'mi', 'km');\n }\n return '—';\n};\n\nconst getTextWidth = strText => {\n const text = document.createElement('span');\n document.body.appendChild(text);\n text.style.font = 'Roboto';\n text.style.fontSize = '14px';\n text.style.letterSpacing = '0.01071em';\n text.style.height = 'auto';\n text.style.width = 'auto';\n text.style.position = 'absolute';\n text.style.whiteSpace = 'nowrap';\n text.innerHTML = strText;\n const textWidth = Math.ceil(text.clientWidth);\n document.body.removeChild(text);\n return textWidth;\n};\n\nconst OffsetWellsTableRowComponent = ({\n columnsWithDict,\n data,\n subjectWellId,\n metricsKeys,\n metricsColumns,\n handleChangeOffsetWell,\n wellNameStyle,\n wellNameWidth,\n isImperial,\n isLimitedOffsetWells,\n maxOffsetWellNumber,\n wellSections,\n setActiveWellId,\n onRowClick,\n taScores,\n isWellSectionColumnVisible,\n loadingWellIds,\n registerRow,\n}) => {\n const { isMobile } = useViewType();\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const isWellNameExpand = useViewStore(state => state.isWellNameExpand);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const isSubjectWell = subjectWellId === data.id;\n const borderStyle = { [styles.subjectWellRow]: isSubjectWell };\n const [isChecked, setIsChecked] = useState(data.checked);\n const hasCompanyColumn = columnsWithDict?.some(col => col.key === ColumnType.company);\n\n // Memoize lookup Maps for O(1) access instead of O(n) find() calls\n const columnsMap = useMemo(\n () => new Map(columnsWithDict?.map(col => [col.key, col]) || []),\n [columnsWithDict]\n );\n const metricsMap = useMemo(\n () => new Map(metricsColumns?.map(m => [m.key, m]) || []),\n [metricsColumns]\n );\n const taScoresMap = useMemo(\n () => new Map(taScores?.map(t => [t.wellId, t.taScore]) || []),\n [taScores]\n );\n const wellSectionsMap = useMemo(\n () => new Map(wellSections?.map(ws => [ws.label, ws.color]) || []),\n [wellSections]\n );\n const statusOptionsMap = useMemo(\n () => new Map(StatusOptions.map(opt => [opt.value, opt.color])),\n []\n );\n\n const rowRef = useCallback(\n node => {\n registerRow(data.id, node);\n },\n [registerRow, data.id]\n );\n\n let isOverFlowWellName = false;\n const wellName = data[ColumnType.name] || '—';\n let truncWellName = wellName;\n if (!isWellNameExpand && wellNameWidth * 2 < wellName.length * AVG_CHAR_WIDTH) {\n const wellNameRealWidth = getTextWidth(wellName);\n if (wellNameRealWidth > wellNameWidth * 2) {\n const maxCounts = (wellNameWidth * 2) / (wellNameRealWidth / wellName.length);\n truncWellName = `${wellName.substring(0, maxCounts / 2 - 2)}\\n... ${wellName.substring(\n wellName.length - maxCounts / 2 + 6\n )}`;\n isOverFlowWellName = true;\n }\n }\n\n const handleChangeCheckbox = checked => {\n handleChangeOffsetWell(data, checked);\n setIsChecked(checked);\n };\n\n useEffect(() => {\n setIsChecked(data.checked);\n }, [data.checked]);\n\n const getSectionColor = ([sectionName]) => {\n return wellSectionsMap.get(sectionName);\n };\n\n const wellSectionData = useMemo(() => {\n return data[ColumnType.wellSection];\n }, [data]);\n\n const checkboxTooltipText = useMemo(() => {\n if (isViewOnly) {\n return `View only mode. To edit offsets, use ${\n isWDUser ? 'Offset Selection App' : 'WellHub'\n }.`;\n } else if (isLimitedOffsetWells && !data.checked) {\n return `App can't process more than (${maxOffsetWellNumber - 1}) Offset Wells.`;\n } else {\n return '';\n }\n }, [isViewOnly, isLimitedOffsetWells, data.checked, isWDUser, maxOffsetWellNumber]);\n\n const lastCellColumn = useMemo(() => {\n if (isWellSectionColumnVisible) {\n return 'wellSection';\n }\n\n if (metricsKeys.length > 0) {\n return 'lastMetric';\n }\n\n return 'lastActive';\n }, [isWellSectionColumnVisible, metricsKeys.length]);\n\n const handleMouseEnter = () => {\n setActiveWellId(data.id);\n };\n\n const handleMouseLeave = () => {\n setActiveWellId(null);\n };\n\n const handleRowClick = () => {\n if (!isMapHidden) {\n onRowClick?.(data.id);\n }\n };\n\n return (\n <TableRow\n ref={rowRef}\n data-testid={`${PAGE_NAME}_row_${wellName}`}\n data-well-id={data.id}\n className={styles.bodyRow}\n title={isMapHidden ? undefined : 'Click to show on map'}\n onClick={handleRowClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <TableCell\n data-testid={`${PAGE_NAME}_well`}\n className={classNames(styles.bodyCell, styles.wellNameCell, borderStyle, wellNameStyle)}\n style={\n isWellNameExpand\n ? { minWidth: EXPANDED_WELL_NAME_WIDTH, flex: 0 }\n : {\n minWidth: columnsMap.get(ColumnType.name)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.name)?.flex || 0,\n }\n }\n >\n {isSubjectWell && <SubjectWellMark className={classNames(styles.subjectWellMark)} />}\n {!isSubjectWell && (\n <Tooltip\n title={checkboxTooltipText}\n placement=\"bottom-start\"\n classes={{ tooltipPlacementBottom: styles.checkboxTooltip }}\n >\n <div onClick={e => e.stopPropagation()}>\n <Checkbox\n data-testid={`${PAGE_NAME}_checkbox`}\n size=\"medium\"\n checked={isChecked}\n classes={{ disabled: styles.checkboxDisabled }}\n disabled={isViewOnly || (isLimitedOffsetWells && !data.checked)}\n onChange={event => handleChangeCheckbox(event.target.checked)}\n />\n </div>\n </Tooltip>\n )}\n <Tooltip title={isOverFlowWellName ? wellName : ''}>\n <Typography\n variant=\"body2\"\n className={classNames(styles.wellNameCursor, {\n [styles.cellDataViewOnly]: isSubjectWell,\n [styles.wellNamePreWrap]: isOverFlowWellName,\n })}\n >\n {isOverFlowWellName ? truncWellName : wellName}\n </Typography>\n </Tooltip>\n </TableCell>\n\n <TableCell\n data-testid={`${PAGE_NAME}_dot`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.status)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.status)?.flex || 0,\n }}\n >\n {!isSubjectWell && (\n <Tooltip\n title={startCase(data[ColumnType.status])}\n enterTouchDelay={isMobile ? 0 : undefined}\n leaveTouchDelay={isMobile ? LEAVE_TOUCH_DELAY : undefined}\n >\n <div className={styles.statusContainer}>\n <div\n data-testid={`${PAGE_NAME}_color`}\n className={styles.status}\n style={{\n background: statusOptionsMap.get(data[ColumnType.status]),\n }}\n />\n </div>\n </Tooltip>\n )}\n </TableCell>\n\n {hasCompanyColumn && (\n <TableCell\n data-testid={`${PAGE_NAME}_company`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.company)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.company)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.company] && data[ColumnType.company] !== 'Null'\n ? data[ColumnType.company]\n : '—'}\n </Typography>\n </TableCell>\n )}\n\n <TableCell\n data-testid={`${PAGE_NAME}_rig`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.rig)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.rig)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.rig] && data[ColumnType.rig] !== 'Null' ? data[ColumnType.rig] : '—'}\n </Typography>\n </TableCell>\n\n <TableCell\n data-testid={`${PAGE_NAME}_distance`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.distance)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.distance)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {formatDistance(data, isImperial)}\n </Typography>\n </TableCell>\n\n {!!taScores.length && (\n <TableCell\n data-testid={`${PAGE_NAME}_ta`}\n className={classNames(styles.bodyCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.taScore)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.taScore)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {taScoresMap.get(data.id) ?? ''}\n </Typography>\n </TableCell>\n )}\n\n <TableCell\n data-testid={`${PAGE_NAME}_lastActive`}\n className={classNames(styles.bodyCell, borderStyle, {\n [styles.lastCell]: lastCellColumn === 'lastActive',\n })}\n style={{\n minWidth: columnsMap.get(ColumnType.lastActive)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.lastActive)?.flex || 0,\n }}\n >\n <Typography variant=\"body2\" className={styles.cellData}>\n {data[ColumnType.lastActive] && Number.isFinite(data[ColumnType.lastActive])\n ? moment.unix(data[ColumnType.lastActive]).format('MM/DD/YYYY')\n : '—'}\n </Typography>\n </TableCell>\n\n {metricsKeys.map((metricsKey, index) => {\n const metric = metricsMap.get(metricsKey);\n const value = metric ? get(data, metric.key) : undefined;\n\n return (\n <TableCell\n data-testid={`${PAGE_NAME}_${metricsKey}`}\n key={metricsKey}\n className={classNames(styles.bodyCell, borderStyle, {\n [styles.lastCell]:\n lastCellColumn === 'lastMetric' && index === metricsKeys.length - 1,\n })}\n style={{\n minWidth: columnsMap.get(metricsKey)?.minWidth || 0,\n flex: columnsMap.get(metricsKey)?.flex || 0,\n }}\n >\n <MetricCell\n value={value}\n wellId={data.id}\n loadingWellIds={loadingWellIds}\n metric={metric}\n />\n </TableCell>\n );\n })}\n\n {isWellSectionColumnVisible && (\n <TableCell\n data-testid={`${PAGE_NAME}_wellSection`}\n className={classNames(styles.bodyCell, styles.lastCell, borderStyle)}\n style={{\n minWidth: columnsMap.get(ColumnType.wellSection)?.minWidth || 0,\n flex: columnsMap.get(ColumnType.wellSection)?.flex || 0,\n }}\n >\n {wellSectionData && wellSectionData.length > 1 ? (\n <Tooltip\n classes={{\n tooltip: styles.customTooltip,\n }}\n title={<ViewWellSectionsName wellSectionNames={wellSectionData} />}\n >\n <div className={styles.sectionLength}>{wellSectionData.length}</div>\n </Tooltip>\n ) : (\n <Tooltip title={wellSectionData || ''}>\n <Typography\n variant=\"body2\"\n className={styles.cellData}\n style={{\n color:\n wellSectionData &&\n wellSectionData.length === 1 &&\n getSectionColor(wellSectionData),\n }}\n >\n {wellSectionData}\n </Typography>\n </Tooltip>\n )}\n </TableCell>\n )}\n </TableRow>\n );\n};\n\nOffsetWellsTableRowComponent.propTypes = {\n columnsWithDict: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n data: PropTypes.shape({\n id: PropTypes.number,\n checked: PropTypes.bool,\n name: PropTypes.string,\n status: PropTypes.string,\n }).isRequired,\n subjectWellId: PropTypes.number.isRequired,\n metricsKeys: PropTypes.arrayOf(PropTypes.string).isRequired,\n metricsColumns: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n handleChangeOffsetWell: PropTypes.func.isRequired,\n wellNameStyle: PropTypes.string.isRequired,\n wellNameWidth: PropTypes.number.isRequired,\n isImperial: PropTypes.bool.isRequired,\n isLimitedOffsetWells: PropTypes.bool.isRequired,\n maxOffsetWellNumber: PropTypes.number.isRequired,\n wellSections: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n setActiveWellId: PropTypes.func.isRequired,\n onRowClick: PropTypes.func.isRequired,\n taScores: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n isWellSectionColumnVisible: PropTypes.bool.isRequired,\n loadingWellIds: PropTypes.instanceOf(Set).isRequired,\n registerRow: PropTypes.func.isRequired,\n};\n\nexport const OffsetWellsTableRow = memo(OffsetWellsTableRowComponent);\n"],"names":["PAGE_NAME","formatDistance","data","isImperial","value","get","ColumnType","distance","Number","isFinite","convertValue","OffsetWellsTableRowComponent","_ref","_columnsMap$get","_columnsMap$get2","_classNames","_columnsMap$get3","_columnsMap$get4","_columnsMap$get5","_columnsMap$get6","_columnsMap$get7","_columnsMap$get8","_columnsMap$get9","_columnsMap$get10","_columnsMap$get11","_columnsMap$get12","_taScoresMap$get","_columnsMap$get13","_columnsMap$get14","_columnsMap$get17","_columnsMap$get18","columnsWithDict","subjectWellId","metricsKeys","metricsColumns","handleChangeOffsetWell","wellNameStyle","wellNameWidth","isLimitedOffsetWells","maxOffsetWellNumber","wellSections","setActiveWellId","onRowClick","taScores","isWellSectionColumnVisible","loadingWellIds","registerRow","isMobile","useViewType","isWDUser","usePickerPropsStore","state","isViewOnly","isWellNameExpand","useViewStore","isMapHidden","isSubjectWell","id","borderStyle","styles","subjectWellRow","_useState","useState","checked","_useState2","_slicedToArray","isChecked","setIsChecked","hasCompanyColumn","some","col","key","company","columnsMap","useMemo","Map","map","metricsMap","m","taScoresMap","t","wellId","taScore","wellSectionsMap","ws","label","color","statusOptionsMap","StatusOptions","opt","rowRef","useCallback","node","isOverFlowWellName","wellName","name","truncWellName","length","wellNameRealWidth","strText","text","document","createElement","body","appendChild","style","font","fontSize","letterSpacing","height","width","position","whiteSpace","innerHTML","textWidth","Math","ceil","clientWidth","removeChild","getTextWidth","maxCounts","substring","concat","useEffect","_ref2","sectionName","wellSectionData","wellSection","checkboxTooltipText","lastCellColumn","_jsxs","TableRow","ref","className","bodyRow","title","undefined","onClick","onMouseEnter","onMouseLeave","children","TableCell","classNames","bodyCell","wellNameCell","minWidth","EXPANDED_WELL_NAME_WIDTH","flex","_jsx","SubjectWellMark","subjectWellMark","Tooltip","placement","classes","tooltipPlacementBottom","checkboxTooltip","e","stopPropagation","Checkbox","size","disabled","checkboxDisabled","onChange","event","target","Typography","variant","wellNameCursor","cellDataViewOnly","wellNamePreWrap","status","startCase","enterTouchDelay","leaveTouchDelay","LEAVE_TOUCH_DELAY","statusContainer","background","cellData","rig","lastCell","lastActive","moment","unix","format","metricsKey","index","_columnsMap$get15","_columnsMap$get16","metric","MetricCell","tooltip","customTooltip","ViewWellSectionsName","wellSectionNames","sectionLength","propTypes","PropTypes","arrayOf","shape","isRequired","number","bool","string","func","instanceOf","Set","OffsetWellsTableRow","memo"],"mappings":"qmCAyBA,IAAMA,EAAY,sBAGZC,EAAiB,SAACC,EAAMC,GAC5B,IAAMC,EAAQC,EAAIH,EAAMI,EAAWC,UACnC,OAAIC,OAAOC,SAASL,GACXD,EAAaC,EAAQM,EAAaN,EAAO,SAAU,KAAM,MAE3D,GACT,EAkBMO,EAA+B,SAmB/BC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAlBJC,IAAAA,gBACA7B,IAAAA,KACA8B,IAAAA,cACAC,IAAAA,YACAC,IAAAA,eACAC,KAAAA,uBACAC,KAAAA,cACAC,KAAAA,cACAlC,KAAAA,WACAmC,KAAAA,qBACAC,KAAAA,oBACAC,KAAAA,aACAC,KAAAA,gBACAC,KAAAA,WACAC,KAAAA,SACAC,KAAAA,2BACAC,KAAAA,eACAC,KAAAA,YAEQC,GAAaC,IAAbD,SACFE,GAAWC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,YAC9CG,GAAaF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,cAChDC,GAAmBC,GAAa,SAAAH,GAAK,OAAIA,EAAME,oBAC/CE,GAAcD,GAAa,SAAAH,GAAK,OAAIA,EAAMI,eAC1CC,GAAgBxB,IAAkB9B,EAAKuD,GACvCC,GAAiBC,EAAA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AOD,WAChCtK,YAAamK,EAAUC,QAAQD,EAAUM,QAAQH,WACjDrK,eAAgBkK,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACvDpK,uBAAwBiK,EAAUO,KAAKJ,WACvCnK,cAAegK,EAAUM,OAAOH,WAChClK,cAAe+J,EAAUI,OAAOD,WAChCpM,WAAYiM,EAAUK,KAAKF,WAC3BjK,qBAAsB8J,EAAUK,KAAKF,WACrChK,oBAAqB6J,EAAUI,OAAOD,WACtC/J,aAAc4J,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACrD9J,gBAAiB2J,EAAUO,KAAKJ,WAChC7J,WAAY0J,EAAUO,KAAKJ,WAC3B5J,SAAUyJ,EAAUC,QAAQD,EAAUE,MAAM,CAAA,IAAKC,WACjD3J,2BAA4BwJ,EAAUK,KAAKF,WAC3C1J,eAAgBuJ,EAAUQ,WAAWC,KAAKN,WAC1CzJ,YAAasJ,EAAUO,KAAKJ,gBAGjBO,EAAsBC,EAAKpM"}
@@ -1,6 +1,5 @@
1
1
  export const DEFAULT_RADIUS_MILES: 25;
2
2
  export const DEFAULT_RADIUS_KM: 40;
3
- export const MAX_OFFSET_SIZE: 1000;
4
3
  export const ALL_SECTION_KEY: "all";
5
4
  export const ALL_SECTION_LABEL: "All";
6
5
  export const EXPANDED_WELL_NAME_WIDTH: 450;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/constants.js"],"names":[],"mappings":"AAIA,mCAAoC,EAAE,CAAC;AACvC,gCAAiC,EAAE,CAAC;AACpC,8BAA+B,IAAI,CAAC;AAEpC,8BAA+B,KAAK,CAAC;AACrC,gCAAiC,KAAK,CAAC;AACvC,uCAAwC,GAAG,CAAC;AAC5C,4BAA6B,EAAE,CAAC;AAChC,gCAAiC,KAAK,CAAC;AACvC,kDAAkD;AAGlD,6CAA4D;;;;;;;;;;;;;;;;;AAmB5D;;;IAiCE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;;;;AAcF;;;;;;IAgEE;AAEF;;;IAOE;AAEF,gCAAiC,CAAC,CAAC;AAEnC;;;IAwCE;AAEF,yCAYE;AAEF,kCAAmC,mBAAmB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV5/constants.js"],"names":[],"mappings":"AAIA,mCAAoC,EAAE,CAAC;AACvC,gCAAiC,EAAE,CAAC;AAEpC,8BAA+B,KAAK,CAAC;AACrC,gCAAiC,KAAK,CAAC;AACvC,uCAAwC,GAAG,CAAC;AAC5C,4BAA6B,EAAE,CAAC;AAChC,gCAAiC,KAAK,CAAC;AACvC,kDAAkD;AAGlD,6CAA4D;;;;;;;;;;;;;;;;;AAmB5D;;;IAiCE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;;;;AAcF;;;;;;IAgEE;AAEF;;;IAOE;AAEF,gCAAiC,CAAC,CAAC;AAEnC;;;IAwCE;AAEF,yCAYE;AAEF,kCAAmC,mBAAmB,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=25,i=40,o=1e3,r="all",n="All",s=450,p=50,m=1e4,_=["xto"],c=a,d=[c.mud_type.key],u={status:"status",company:"companyId",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},g=[{value:u.company,label:"Company"},{value:u.rig,label:"Rig"},{value:u.program,label:"Program/BU"},{value:u.basin,label:"Basin"},{value:u.county,label:"County"},{value:u.area,label:"Area"},{value:u.formation,label:"Target Formation"},{value:u.stringDesign,label:"String Design"}],y={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},b=[{value:y.unknown,color:"#FFFFFF"},{value:y.idle,color:"#ADADFF"},{value:y.active,color:"#A8FF3D"},{value:y.paused,color:"#FFF66C"},{value:y.complete,color:"#76C2FF"}],v={name:"name",status:"status",company:"companyName",rig:"rigName",distance:"distance",taScore:"TA",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},F=[{type:v.name,label:"Well Name",key:v.name,minWidth:[280,197,197,186],flex:3},{type:v.status,label:"",key:v.status,minWidth:[40,40,40,30],flex:0},{type:v.company,label:"Company",key:v.company,minWidth:[180,140,140,93],flex:2},{type:v.rig,label:"Rig",key:v.rig,minWidth:[220,140,140,93],flex:2},{type:v.distance,label:"Distance",key:v.distance,minWidth:[160,160,122,93],flex:1},{type:v.taScore,label:"TA",key:v.taScore,minWidth:[90,90,75,70],flex:1},{type:v.lastActive,label:"Last Active",key:v.lastActive,minWidth:[140,140,108,98],flex:1.5},{type:v.metrics,label:"",key:"",minWidth:[0,212,141,141],flex:2},{type:v.wellSection,label:"Well Section",key:v.wellSection,minWidth:[180,131,131,97],flex:1.5}],h=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Custom"}],f=3,A=t([c.weight_to_weight_average,c.bottom_to_slips_average,c.drilling_connection_average,c.slips_to_bottom_average,c.hole_depth,c.hole_depth_change,c.drilled_feet_rotary,c.drilled_feet_slide,c.rop_gross,c.rop,c.rop_rotary,c.rop_slide,c.drilled_feet_rotary_percentage,c.drilled_feet_slide_percentage,c.on_bottom_percentage,c.on_bottom_time,c.cost_per_ft,c.cost_per_lat_ft,c.feet_per_day,c.tripping_in_speed_cased,c.tripping_in_speed_open,c.tripping_in_speed,c.tripping_out_speed_cased,c.tripping_out_speed_open,c.tripping_out_speed,c.target_formation,c.mud_type,c.total_time].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[c.npt,c.circulating_time,c.spud_to_rig_release_time,c.spud_to_total_depth_time]:[])),"label"),E=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"],C="hole_depth_change",D={SUCCESS:"succeeded",FAILURE:"failed"},k={INITIAL:0,TRIGGERED:1,RUNNING:2,SUCCEEDED:3,FAILED:-1};export{r as ALL_SECTION_KEY,n as ALL_SECTION_LABEL,_ as COMPANY_PROVIDERS_FOR_IDAS,v as ColumnType,C as DEFAULT_METRICS_KEY,i as DEFAULT_RADIUS_KM,l as DEFAULT_RADIUS_MILES,s as EXPANDED_WELL_NAME_WIDTH,g as FilterOptions,u as FilterType,m as LEAVE_TOUCH_DELAY,f as MAX_METRICS_COUNT,o as MAX_OFFSET_SIZE,A as METRICS_LIST,d as NonConvertableMetrics,h as OBJECTIVE_PERIOD_LIST,k as RESYNC_STATUS,D as RESYNC_TASK_RESPONSE,p as ROWS_PER_PAGE,b as StatusOptions,F as TableColumns,E as WellSectionColors,y as WellStatus};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=25,i=40,o="all",r="All",n=450,s=50,p=1e4,m=["xto"],_=a,c=[_.mud_type.key],d={status:"status",company:"companyId",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},u=[{value:d.company,label:"Company"},{value:d.rig,label:"Rig"},{value:d.program,label:"Program/BU"},{value:d.basin,label:"Basin"},{value:d.county,label:"County"},{value:d.area,label:"Area"},{value:d.formation,label:"Target Formation"},{value:d.stringDesign,label:"String Design"}],g={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},y=[{value:g.unknown,color:"#FFFFFF"},{value:g.idle,color:"#ADADFF"},{value:g.active,color:"#A8FF3D"},{value:g.paused,color:"#FFF66C"},{value:g.complete,color:"#76C2FF"}],b={name:"name",status:"status",company:"companyName",rig:"rigName",distance:"distance",taScore:"TA",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},v=[{type:b.name,label:"Well Name",key:b.name,minWidth:[280,197,197,186],flex:3},{type:b.status,label:"",key:b.status,minWidth:[40,40,40,30],flex:0},{type:b.company,label:"Company",key:b.company,minWidth:[180,140,140,93],flex:2},{type:b.rig,label:"Rig",key:b.rig,minWidth:[220,140,140,93],flex:2},{type:b.distance,label:"Distance",key:b.distance,minWidth:[160,160,122,93],flex:1},{type:b.taScore,label:"TA",key:b.taScore,minWidth:[90,90,75,70],flex:1},{type:b.lastActive,label:"Last Active",key:b.lastActive,minWidth:[140,140,108,98],flex:1.5},{type:b.metrics,label:"",key:"",minWidth:[0,212,141,141],flex:2},{type:b.wellSection,label:"Well Section",key:b.wellSection,minWidth:[180,131,131,97],flex:1.5}],F=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Custom"}],h=3,f=t([_.weight_to_weight_average,_.bottom_to_slips_average,_.drilling_connection_average,_.slips_to_bottom_average,_.hole_depth,_.hole_depth_change,_.drilled_feet_rotary,_.drilled_feet_slide,_.rop_gross,_.rop,_.rop_rotary,_.rop_slide,_.drilled_feet_rotary_percentage,_.drilled_feet_slide_percentage,_.on_bottom_percentage,_.on_bottom_time,_.cost_per_ft,_.cost_per_lat_ft,_.feet_per_day,_.tripping_in_speed_cased,_.tripping_in_speed_open,_.tripping_in_speed,_.tripping_out_speed_cased,_.tripping_out_speed_open,_.tripping_out_speed,_.target_formation,_.mud_type,_.total_time].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[_.npt,_.circulating_time,_.spud_to_rig_release_time,_.spud_to_total_depth_time]:[])),"label"),A=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"],E="hole_depth_change",C={SUCCESS:"succeeded",FAILURE:"failed"},D={INITIAL:0,TRIGGERED:1,RUNNING:2,SUCCEEDED:3,FAILED:-1};export{o as ALL_SECTION_KEY,r as ALL_SECTION_LABEL,m as COMPANY_PROVIDERS_FOR_IDAS,b as ColumnType,E as DEFAULT_METRICS_KEY,i as DEFAULT_RADIUS_KM,l as DEFAULT_RADIUS_MILES,n as EXPANDED_WELL_NAME_WIDTH,u as FilterOptions,d as FilterType,p as LEAVE_TOUCH_DELAY,h as MAX_METRICS_COUNT,f as METRICS_LIST,c as NonConvertableMetrics,F as OBJECTIVE_PERIOD_LIST,D as RESYNC_STATUS,C as RESYNC_TASK_RESPONSE,s as ROWS_PER_PAGE,y as StatusOptions,v as TableColumns,A as WellSectionColors,g as WellStatus};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/components/OffsetWellPickerV5/constants.js"],"sourcesContent":["import { sortBy } from 'lodash';\n\nimport { metricsUtils } from '~/utils';\n\nexport const DEFAULT_RADIUS_MILES = 25;\nexport const DEFAULT_RADIUS_KM = 40;\nexport const MAX_OFFSET_SIZE = 1000;\n\nexport const ALL_SECTION_KEY = 'all';\nexport const ALL_SECTION_LABEL = 'All';\nexport const EXPANDED_WELL_NAME_WIDTH = 450;\nexport const ROWS_PER_PAGE = 50;\nexport const LEAVE_TOUCH_DELAY = 10000;\nexport const COMPANY_PROVIDERS_FOR_IDAS = ['xto'];\nconst metrics = metricsUtils.default;\n\nexport const NonConvertableMetrics = [metrics.mud_type.key];\n\nexport const FilterType = {\n status: 'status',\n company: 'companyId',\n rig: 'rigName',\n program: 'programName',\n basin: 'basin',\n county: 'county',\n area: 'area',\n formation: 'formation',\n stringDesign: 'stringDesign',\n radius: 'radius',\n period: 'period',\n sideTracks: 'sideTracks',\n timeRangeFrom: 'timeRangeFrom',\n timeRangeTo: 'timeRangeTo',\n};\n\nexport const FilterOptions = [\n {\n value: FilterType.company,\n label: 'Company',\n },\n {\n value: FilterType.rig,\n label: 'Rig',\n },\n {\n value: FilterType.program,\n label: 'Program/BU',\n },\n {\n value: FilterType.basin,\n label: 'Basin',\n },\n {\n value: FilterType.county,\n label: 'County',\n },\n {\n value: FilterType.area,\n label: 'Area',\n },\n {\n value: FilterType.formation,\n label: 'Target Formation',\n },\n {\n value: FilterType.stringDesign,\n label: 'String Design',\n },\n];\n\nexport const WellStatus = {\n unknown: 'unknown',\n idle: 'idle',\n active: 'active',\n paused: 'paused',\n complete: 'complete',\n};\n\nexport const StatusOptions = [\n { value: WellStatus.unknown, color: '#FFFFFF' },\n { value: WellStatus.idle, color: '#ADADFF' },\n { value: WellStatus.active, color: '#A8FF3D' },\n { value: WellStatus.paused, color: '#FFF66C' },\n { value: WellStatus.complete, color: '#76C2FF' },\n];\n\nexport const ColumnType = {\n name: 'name',\n status: 'status',\n company: 'companyName',\n rig: 'rigName',\n distance: 'distance',\n taScore: 'TA',\n lastActive: 'lastActive',\n metrics: 'metrics',\n wellSection: 'wellSection',\n};\n\nexport const TableColumns = [\n {\n type: ColumnType.name,\n label: 'Well Name',\n key: ColumnType.name,\n minWidth: [280, 197, 197, 186],\n flex: 3,\n },\n {\n type: ColumnType.status,\n label: '',\n key: ColumnType.status,\n minWidth: [40, 40, 40, 30],\n flex: 0,\n },\n {\n type: ColumnType.company,\n label: 'Company',\n key: ColumnType.company,\n minWidth: [180, 140, 140, 93],\n flex: 2,\n },\n {\n type: ColumnType.rig,\n label: 'Rig',\n key: ColumnType.rig,\n minWidth: [220, 140, 140, 93],\n flex: 2,\n },\n {\n type: ColumnType.distance,\n label: 'Distance',\n key: ColumnType.distance,\n minWidth: [160, 160, 122, 93],\n flex: 1,\n },\n {\n type: ColumnType.taScore,\n label: 'TA',\n key: ColumnType.taScore,\n minWidth: [90, 90, 75, 70],\n flex: 1,\n },\n {\n type: ColumnType.lastActive,\n label: 'Last Active',\n key: ColumnType.lastActive,\n minWidth: [140, 140, 108, 98],\n flex: 1.5,\n },\n {\n type: ColumnType.metrics,\n label: '',\n key: '',\n minWidth: [0, 212, 141, 141],\n flex: 2,\n },\n {\n type: ColumnType.wellSection,\n label: 'Well Section',\n key: ColumnType.wellSection,\n minWidth: [180, 131, 131, 97],\n flex: 1.5,\n },\n];\n\nexport const OBJECTIVE_PERIOD_LIST = [\n { value: 'all', label: 'All' },\n { value: 'last12h', label: 'Last 12 hrs' },\n { value: 'last24h', label: 'Last 24 hrs' },\n { value: 'last7d', label: 'Last 7 days' },\n { value: 'lastMonth', label: 'Last Month' },\n { value: 'custom', label: 'Custom' },\n];\n\nexport const MAX_METRICS_COUNT = 3;\n\nexport const METRICS_LIST = sortBy(\n [\n metrics.weight_to_weight_average,\n metrics.bottom_to_slips_average,\n metrics.drilling_connection_average,\n metrics.slips_to_bottom_average,\n metrics.hole_depth,\n metrics.hole_depth_change,\n metrics.drilled_feet_rotary,\n metrics.drilled_feet_slide,\n metrics.rop_gross,\n metrics.rop,\n metrics.rop_rotary,\n metrics.rop_slide,\n metrics.drilled_feet_rotary_percentage,\n metrics.drilled_feet_slide_percentage,\n metrics.on_bottom_percentage,\n metrics.on_bottom_time,\n metrics.cost_per_ft,\n metrics.cost_per_lat_ft,\n metrics.feet_per_day,\n metrics.tripping_in_speed_cased,\n metrics.tripping_in_speed_open,\n metrics.tripping_in_speed,\n metrics.tripping_out_speed_cased,\n metrics.tripping_out_speed_open,\n metrics.tripping_out_speed,\n metrics.target_formation,\n metrics.mud_type,\n metrics.total_time,\n ...(process.env.REACT_APP_ENVIRONMENT !== 'production'\n ? [\n metrics.npt,\n metrics.circulating_time,\n metrics.spud_to_rig_release_time,\n metrics.spud_to_total_depth_time,\n ]\n : []),\n ],\n 'label'\n);\n\nexport const WellSectionColors = [\n '#6EACFF',\n '#69B919',\n '#E95DAF',\n '#A77DFF',\n '#77FFC1',\n '#018EFE',\n '#FF5D7E',\n '#B9E310',\n '#FFD111',\n '#24BB8E',\n '#C426F3',\n];\n\nexport const DEFAULT_METRICS_KEY = 'hole_depth_change';\n\nexport const RESYNC_TASK_RESPONSE = {\n SUCCESS: 'succeeded',\n FAILURE: 'failed',\n};\n\nexport const RESYNC_STATUS = {\n INITIAL: 0,\n TRIGGERED: 1,\n RUNNING: 2,\n SUCCEEDED: 3,\n FAILED: -1,\n};\n"],"names":["DEFAULT_RADIUS_MILES","DEFAULT_RADIUS_KM","MAX_OFFSET_SIZE","ALL_SECTION_KEY","ALL_SECTION_LABEL","EXPANDED_WELL_NAME_WIDTH","ROWS_PER_PAGE","LEAVE_TOUCH_DELAY","COMPANY_PROVIDERS_FOR_IDAS","metrics","metricsUtils","NonConvertableMetrics","mud_type","key","FilterType","status","company","rig","program","basin","county","area","formation","stringDesign","radius","period","sideTracks","timeRangeFrom","timeRangeTo","FilterOptions","value","label","WellStatus","unknown","idle","active","paused","complete","StatusOptions","color","ColumnType","name","distance","taScore","lastActive","wellSection","TableColumns","type","minWidth","flex","OBJECTIVE_PERIOD_LIST","MAX_METRICS_COUNT","METRICS_LIST","sortBy","weight_to_weight_average","bottom_to_slips_average","drilling_connection_average","slips_to_bottom_average","hole_depth","hole_depth_change","drilled_feet_rotary","drilled_feet_slide","rop_gross","rop","rop_rotary","rop_slide","drilled_feet_rotary_percentage","drilled_feet_slide_percentage","on_bottom_percentage","on_bottom_time","cost_per_ft","cost_per_lat_ft","feet_per_day","tripping_in_speed_cased","tripping_in_speed_open","tripping_in_speed","tripping_out_speed_cased","tripping_out_speed_open","tripping_out_speed","target_formation","total_time","process","env","REACT_APP_ENVIRONMENT","npt","circulating_time","spud_to_rig_release_time","spud_to_total_depth_time","WellSectionColors","DEFAULT_METRICS_KEY","RESYNC_TASK_RESPONSE","SUCCESS","FAILURE","RESYNC_STATUS","INITIAL","TRIGGERED","RUNNING","SUCCEEDED","FAILED"],"mappings":"4KAIO,IAAMA,EAAuB,GACvBC,EAAoB,GACpBC,EAAkB,IAElBC,EAAkB,MAClBC,EAAoB,MACpBC,EAA2B,IAC3BC,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rD,EAAQsD,IACRtD,EAAQuD,WACRvD,EAAQwD,UACRxD,EAAQyD,+BACRzD,EAAQ0D,8BACR1D,EAAQ2D,qBACR3D,EAAQ4D,eACR5D,EAAQ6D,YACR7D,EAAQ8D,gBACR9D,EAAQ+D,aACR/D,EAAQgE,wBACRhE,EAAQiE,uBACRjE,EAAQkE,kBACRlE,EAAQmE,yBACRnE,EAAQoE,wBACRpE,EAAQqE,mBACRrE,EAAQsE,iBACRtE,EAAQG,SACRH,EAAQuE,qBACkC,eAAtCC,QAAQC,IAAIC,sBACZ,CACE1E,EAAQ2E,IACR3E,EAAQ4E,iBACR5E,EAAQ6E,yBACR7E,EAAQ8E,0BAEV,KAEN,SAGWC,EAAoB,CAC/B,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAGWC,EAAsB,oBAEtBC,EAAuB,CAClCC,QAAS,YACTC,QAAS,UAGEC,EAAgB,CAC3BC,QAAS,EACTC,UAAW,EACXC,QAAS,EACTC,UAAW,EACXC,QAAS"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/components/OffsetWellPickerV5/constants.js"],"sourcesContent":["import { sortBy } from 'lodash';\n\nimport { metricsUtils } from '~/utils';\n\nexport const DEFAULT_RADIUS_MILES = 25;\nexport const DEFAULT_RADIUS_KM = 40;\n\nexport const ALL_SECTION_KEY = 'all';\nexport const ALL_SECTION_LABEL = 'All';\nexport const EXPANDED_WELL_NAME_WIDTH = 450;\nexport const ROWS_PER_PAGE = 50;\nexport const LEAVE_TOUCH_DELAY = 10000;\nexport const COMPANY_PROVIDERS_FOR_IDAS = ['xto'];\nconst metrics = metricsUtils.default;\n\nexport const NonConvertableMetrics = [metrics.mud_type.key];\n\nexport const FilterType = {\n status: 'status',\n company: 'companyId',\n rig: 'rigName',\n program: 'programName',\n basin: 'basin',\n county: 'county',\n area: 'area',\n formation: 'formation',\n stringDesign: 'stringDesign',\n radius: 'radius',\n period: 'period',\n sideTracks: 'sideTracks',\n timeRangeFrom: 'timeRangeFrom',\n timeRangeTo: 'timeRangeTo',\n};\n\nexport const FilterOptions = [\n {\n value: FilterType.company,\n label: 'Company',\n },\n {\n value: FilterType.rig,\n label: 'Rig',\n },\n {\n value: FilterType.program,\n label: 'Program/BU',\n },\n {\n value: FilterType.basin,\n label: 'Basin',\n },\n {\n value: FilterType.county,\n label: 'County',\n },\n {\n value: FilterType.area,\n label: 'Area',\n },\n {\n value: FilterType.formation,\n label: 'Target Formation',\n },\n {\n value: FilterType.stringDesign,\n label: 'String Design',\n },\n];\n\nexport const WellStatus = {\n unknown: 'unknown',\n idle: 'idle',\n active: 'active',\n paused: 'paused',\n complete: 'complete',\n};\n\nexport const StatusOptions = [\n { value: WellStatus.unknown, color: '#FFFFFF' },\n { value: WellStatus.idle, color: '#ADADFF' },\n { value: WellStatus.active, color: '#A8FF3D' },\n { value: WellStatus.paused, color: '#FFF66C' },\n { value: WellStatus.complete, color: '#76C2FF' },\n];\n\nexport const ColumnType = {\n name: 'name',\n status: 'status',\n company: 'companyName',\n rig: 'rigName',\n distance: 'distance',\n taScore: 'TA',\n lastActive: 'lastActive',\n metrics: 'metrics',\n wellSection: 'wellSection',\n};\n\nexport const TableColumns = [\n {\n type: ColumnType.name,\n label: 'Well Name',\n key: ColumnType.name,\n minWidth: [280, 197, 197, 186],\n flex: 3,\n },\n {\n type: ColumnType.status,\n label: '',\n key: ColumnType.status,\n minWidth: [40, 40, 40, 30],\n flex: 0,\n },\n {\n type: ColumnType.company,\n label: 'Company',\n key: ColumnType.company,\n minWidth: [180, 140, 140, 93],\n flex: 2,\n },\n {\n type: ColumnType.rig,\n label: 'Rig',\n key: ColumnType.rig,\n minWidth: [220, 140, 140, 93],\n flex: 2,\n },\n {\n type: ColumnType.distance,\n label: 'Distance',\n key: ColumnType.distance,\n minWidth: [160, 160, 122, 93],\n flex: 1,\n },\n {\n type: ColumnType.taScore,\n label: 'TA',\n key: ColumnType.taScore,\n minWidth: [90, 90, 75, 70],\n flex: 1,\n },\n {\n type: ColumnType.lastActive,\n label: 'Last Active',\n key: ColumnType.lastActive,\n minWidth: [140, 140, 108, 98],\n flex: 1.5,\n },\n {\n type: ColumnType.metrics,\n label: '',\n key: '',\n minWidth: [0, 212, 141, 141],\n flex: 2,\n },\n {\n type: ColumnType.wellSection,\n label: 'Well Section',\n key: ColumnType.wellSection,\n minWidth: [180, 131, 131, 97],\n flex: 1.5,\n },\n];\n\nexport const OBJECTIVE_PERIOD_LIST = [\n { value: 'all', label: 'All' },\n { value: 'last12h', label: 'Last 12 hrs' },\n { value: 'last24h', label: 'Last 24 hrs' },\n { value: 'last7d', label: 'Last 7 days' },\n { value: 'lastMonth', label: 'Last Month' },\n { value: 'custom', label: 'Custom' },\n];\n\nexport const MAX_METRICS_COUNT = 3;\n\nexport const METRICS_LIST = sortBy(\n [\n metrics.weight_to_weight_average,\n metrics.bottom_to_slips_average,\n metrics.drilling_connection_average,\n metrics.slips_to_bottom_average,\n metrics.hole_depth,\n metrics.hole_depth_change,\n metrics.drilled_feet_rotary,\n metrics.drilled_feet_slide,\n metrics.rop_gross,\n metrics.rop,\n metrics.rop_rotary,\n metrics.rop_slide,\n metrics.drilled_feet_rotary_percentage,\n metrics.drilled_feet_slide_percentage,\n metrics.on_bottom_percentage,\n metrics.on_bottom_time,\n metrics.cost_per_ft,\n metrics.cost_per_lat_ft,\n metrics.feet_per_day,\n metrics.tripping_in_speed_cased,\n metrics.tripping_in_speed_open,\n metrics.tripping_in_speed,\n metrics.tripping_out_speed_cased,\n metrics.tripping_out_speed_open,\n metrics.tripping_out_speed,\n metrics.target_formation,\n metrics.mud_type,\n metrics.total_time,\n ...(process.env.REACT_APP_ENVIRONMENT !== 'production'\n ? [\n metrics.npt,\n metrics.circulating_time,\n metrics.spud_to_rig_release_time,\n metrics.spud_to_total_depth_time,\n ]\n : []),\n ],\n 'label'\n);\n\nexport const WellSectionColors = [\n '#6EACFF',\n '#69B919',\n '#E95DAF',\n '#A77DFF',\n '#77FFC1',\n '#018EFE',\n '#FF5D7E',\n '#B9E310',\n '#FFD111',\n '#24BB8E',\n '#C426F3',\n];\n\nexport const DEFAULT_METRICS_KEY = 'hole_depth_change';\n\nexport const RESYNC_TASK_RESPONSE = {\n SUCCESS: 'succeeded',\n FAILURE: 'failed',\n};\n\nexport const RESYNC_STATUS = {\n INITIAL: 0,\n TRIGGERED: 1,\n RUNNING: 2,\n SUCCEEDED: 3,\n FAILED: -1,\n};\n"],"names":["DEFAULT_RADIUS_MILES","DEFAULT_RADIUS_KM","ALL_SECTION_KEY","ALL_SECTION_LABEL","EXPANDED_WELL_NAME_WIDTH","ROWS_PER_PAGE","LEAVE_TOUCH_DELAY","COMPANY_PROVIDERS_FOR_IDAS","metrics","metricsUtils","NonConvertableMetrics","mud_type","key","FilterType","status","company","rig","program","basin","county","area","formation","stringDesign","radius","period","sideTracks","timeRangeFrom","timeRangeTo","FilterOptions","value","label","WellStatus","unknown","idle","active","paused","complete","StatusOptions","color","ColumnType","name","distance","taScore","lastActive","wellSection","TableColumns","type","minWidth","flex","OBJECTIVE_PERIOD_LIST","MAX_METRICS_COUNT","METRICS_LIST","sortBy","weight_to_weight_average","bottom_to_slips_average","drilling_connection_average","slips_to_bottom_average","hole_depth","hole_depth_change","drilled_feet_rotary","drilled_feet_slide","rop_gross","rop","rop_rotary","rop_slide","drilled_feet_rotary_percentage","drilled_feet_slide_percentage","on_bottom_percentage","on_bottom_time","cost_per_ft","cost_per_lat_ft","feet_per_day","tripping_in_speed_cased","tripping_in_speed_open","tripping_in_speed","tripping_out_speed_cased","tripping_out_speed_open","tripping_out_speed","target_formation","total_time","process","env","REACT_APP_ENVIRONMENT","npt","circulating_time","spud_to_rig_release_time","spud_to_total_depth_time","WellSectionColors","DEFAULT_METRICS_KEY","RESYNC_TASK_RESPONSE","SUCCESS","FAILURE","RESYNC_STATUS","INITIAL","TRIGGERED","RUNNING","SUCCEEDED","FAILED"],"mappings":"4KAIO,IAAMA,EAAuB,GACvBC,EAAoB,GAEpBC,E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AQmD,oBACRnD,EAAQoD,mBACRpD,EAAQqD,UACRrD,EAAQsD,IACRtD,EAAQuD,WACRvD,EAAQwD,UACRxD,EAAQyD,+BACRzD,EAAQ0D,8BACR1D,EAAQ2D,qBACR3D,EAAQ4D,eACR5D,EAAQ6D,YACR7D,EAAQ8D,gBACR9D,EAAQ+D,aACR/D,EAAQgE,wBACRhE,EAAQiE,uBACRjE,EAAQkE,kBACRlE,EAAQmE,yBACRnE,EAAQoE,wBACRpE,EAAQqE,mBACRrE,EAAQsE,iBACRtE,EAAQG,SACRH,EAAQuE,qBACkC,eAAtCC,QAAQC,IAAIC,sBACZ,CACE1E,EAAQ2E,IACR3E,EAAQ4E,iBACR5E,EAAQ6E,yBACR7E,EAAQ8E,0BAEV,KAEN,SAGWC,EAAoB,CAC/B,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,WAGWC,EAAsB,oBAEtBC,EAAuB,CAClCC,QAAS,YACTC,QAAS,UAGEC,EAAgB,CAC3BC,QAAS,EACTC,UAAW,EACXC,QAAS,EACTC,UAAW,EACXC,QAAS"}
@@ -0,0 +1,2 @@
1
+ export declare const formatBytesToKB: (bytes: number) => string;
2
+ //# sourceMappingURL=formatBytes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatBytes.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/cache-utils/formatBytes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,KAAG,MAA2C,CAAC"}
@@ -0,0 +1,2 @@
1
+ var t=function(t){return"".concat((t/1024).toFixed(1)," KB")};export{t as formatBytesToKB};
2
+ //# sourceMappingURL=formatBytes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatBytes.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export { formatBytesToKB } from './formatBytes';
2
+ export type { CacheEnvelope, IdleCallbackHandle } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/cache-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,21 @@
1
+ /** Handle returned by requestIdleCallback or setTimeout fallback. */
2
+ export type IdleCallbackHandle = number;
3
+ /**
4
+ * Versioned envelope for cached data stored in sessionStorage.
5
+ * Only the `state` field is compressed; metadata remains readable for debugging.
6
+ */
7
+ export type CacheEnvelope = {
8
+ /** Schema version - bump to invalidate old caches */
9
+ version: number;
10
+ /** Unix timestamp (ms) when cache was written */
11
+ timestamp: number;
12
+ /** TypeScript-like description of the data shape */
13
+ schema: string;
14
+ compression: 'lz-utf16';
15
+ count: number;
16
+ /** Human-readable size of uncompressed state (e.g., "12.5 KB") */
17
+ sizeKB: string;
18
+ /** LZ-UTF16 compressed JSON string of the actual data */
19
+ state: string;
20
+ };
21
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/cache-utils/types.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,2 +1,10 @@
1
- export declare const useAllWells: (enabled: boolean, isSafeguardReady: boolean) => void;
1
+ /**
2
+ * Loads all wells for the "Load All Wells" mode.
3
+ *
4
+ * This hook is mounted when `isLoadAllWells` is true (via `<AllWellsEffect />`).
5
+ * It guards loading and companyId reactions on `isSafeguardReady` to avoid
6
+ * reacting to filter oscillations during safeguard transitions (cancel/reopen).
7
+ * The component stays mounted during these transitions, preserving the cache.
8
+ */
9
+ export declare const useAllWells: () => void;
2
10
  //# sourceMappingURL=useAllWells.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAllWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,EAAE,kBAAkB,OAAO,KAAG,IA8JzE,CAAC"}
1
+ {"version":3,"file":"useAllWells.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWells/useAllWells.ts"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,QAAO,IAyI9B,CAAC"}
@@ -1,2 +1,2 @@
1
- import{__awaiter as r,__generator as t}from'./../../../../ext-esm/tslib/tslib.es6.js';import{useRef as e,useCallback as o,useEffect as n}from"react";import s from"lodash/isEqual";import{useStore as i}from"zustand";import{ViewportStoreContext as l}from"../../stores/viewport-store/ViewportStoreContext.js";import"lodash";import"../../stores/picker-props-store/PickerPropsStoreContext.js";import"react/jsx-runtime";import{usePickerPropsStore as u}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as c}from"../../stores/filter-store/useFilterStore.js";import{useContextOrThrow as a}from"../../stores/utils/useContextOrThrow.js";import"@babel/runtime/helpers/defineProperty";import"uuid";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions/constants.js";import"../../../../clients/subscriptions.v1.js";import"../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/sso/auth0.js";import"../../../../clients/sso/oauth2.js";import{getAllAssets as p}from"../../api/shared/fetchers/getAllAssets.js";import"../../constants.js";import"../../api/shared/dataFormatter.js";import{useAllWellsCache as m}from"../useAllWellsCache/useAllWellsCache.js";var d=function(d,f){var h=a(l),v=i(h,(function(r){return r.addWellsToTile})),b=i(h,(function(r){return r.clearTiles})),j=u((function(r){return r.open})),C=u((function(r){return r.addWellsUsabilityInfo})),g=u((function(r){return r.setAllWellsLoadProgress})),A=u((function(r){return r.setShouldRecenter})),w=c((function(r){var t;return null!==(t=r.filters.companyId)&&void 0!==t?t:null})),P=m(),W=P.getCachedWellIds,x=P.setCachedWellIds,y=P.clearCache,S=e(null),k=e(!1),I=e(d),T=e(void 0),F=o((function(){return r(void 0,void 0,void 0,(function(){var r,e,o,n,s,i,l,u;return t(this,(function(t){switch(t.label){case 0:null===(u=S.current)||void 0===u||u.abort(),S.current=new AbortController,r=S.current.signal,t.label=1;case 1:return t.trys.push([1,4,,5]),null!==(e=W())&&(o=h.getState(),(n=e.map((function(r){return o.wells.get(r)})).filter((function(r){return void 0!==r}))).length===e.length)?(g({loaded:n.length,isComplete:!0}),k.current=!0,[2]):(g({loaded:0,isComplete:!1}),[4,p(w,{signal:r,onProgress:g})]);case 2:return s=t.sent(),r.aborted?[2]:[4,C(s)];case 3:return i=t.sent(),r.aborted?[2]:(v("all-wells",i),x(i.map((function(r){return r.id}))),g({loaded:i.length,isComplete:!0}),k.current=!0,[3,5]);case 4:return"AbortError"===(null==(l=t.sent())?void 0:l.name)?[2]:(console.error("Failed to load all wells:",l),g(null),[3,5]);case 5:return[2]}}))}))}),[h,v,C,w,W,x,g]),E=o((function(){var r;null===(r=S.current)||void 0===r||r.abort(),b(),y(),g(null),k.current=!1}),[b,y,g]);n((function(){var r=I.current;return I.current=d,d&&!r?(E(),void(f&&F())):!d&&r?(E(),void A(!0)):void(d&&f&&!k.current&&F())}),[d,f,F,E,A]),n((function(){void 0!==T.current&&d?s(T.current,w)||(y(),b(),k.current=!1,T.current=w,f&&F()):T.current=w}),[d,f,w,y,b,F]),n((function(){return function(){var r;null===(r=S.current)||void 0===r||r.abort()}}),[]),n((function(){if(!j)return k.current=!1,void(I.current=!1);d&&f&&!k.current&&F()}),[j,d,f,F])};export{d as useAllWells};
1
+ import{__awaiter as r,__generator as t}from'./../../../../ext-esm/tslib/tslib.es6.js';import{useRef as e,useCallback as o,useEffect as s}from"react";import n from"lodash/isEqual";import{useStore as i}from"zustand";import{ViewportStoreContext as l}from"../../stores/viewport-store/ViewportStoreContext.js";import"lodash";import"../../stores/picker-props-store/PickerPropsStoreContext.js";import"react/jsx-runtime";import"../../viewport/ViewportProvider.js";import{useContextOrThrow as u}from"../../stores/utils/useContextOrThrow.js";import"../../viewport/ViewportContext.js";import{usePickerPropsStore as a}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as c}from"../../stores/filter-store/useFilterStore.js";import"../../stores/company-safeguard/CompanySafeguardContext.js";import{useCompanySafeguard as p}from"../../stores/company-safeguard/useCompanySafeguard.js";import"@babel/runtime/helpers/defineProperty";import"uuid";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions/constants.js";import"../../../../clients/subscriptions.v1.js";import"../../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../../clients/api/apiCore.js";import"../../../../clients/constants.js";import"../../../../clients/sso/auth0.js";import"../../../../clients/sso/oauth2.js";import{getAllAssets as m}from"../../api/shared/fetchers/getAllAssets.js";import"../../constants.js";import"../../api/shared/dataFormatter.js";import{useAllWellsCache as d}from"../useAllWellsCache/useAllWellsCache.js";var f=function(){var f=u(l),h=i(f,(function(r){return r.addWellsToTile})),j=i(f,(function(r){return r.clearTiles})),b=a((function(r){return r.open})),v=a((function(r){return r.addWellsUsabilityInfo})),g=a((function(r){return r.setAllWellsLoadProgress})),C=a((function(r){return r.setShouldRecenter})),w=c((function(r){var t;return null!==(t=r.filters.companyId)&&void 0!==t?t:null})),y=p().isSafeguardReady,A=d(),S=A.getCachedWellIds,x=A.setCachedWellIds,P=A.clearCache,W=e(null),k=e(!1),I=e(void 0),T=o((function(){return r(void 0,void 0,void 0,(function(){var r,e,o,s,n,i,l,u;return t(this,(function(t){switch(t.label){case 0:null===(u=W.current)||void 0===u||u.abort(),W.current=new AbortController,r=W.current.signal,t.label=1;case 1:return t.trys.push([1,4,,5]),null!==(e=S())&&(o=f.getState(),(s=e.map((function(r){return o.wells.get(r)})).filter((function(r){return void 0!==r}))).length===e.length)?(g({loaded:s.length,isComplete:!0}),k.current=!0,[2]):(g({loaded:0,isComplete:!1}),[4,m(w,{signal:r,onProgress:g})]);case 2:return n=t.sent(),r.aborted?[2]:[4,v(n)];case 3:return i=t.sent(),r.aborted?[2]:(h("all-wells",i),x(i.map((function(r){return r.id}))),g({loaded:i.length,isComplete:!0}),k.current=!0,[3,5]);case 4:return"AbortError"===(null==(l=t.sent())?void 0:l.name)?[2]:(console.error("Failed to load all wells:",l),g(null),[3,5]);case 5:return[2]}}))}))}),[f,h,v,w,S,x,g]);s((function(){return j(),function(){var r;null===(r=W.current)||void 0===r||r.abort(),j(),g(null),C(!0)}}),[j,g,C]),s((function(){b?y&&!k.current&&T():k.current=!1}),[b,y,T]),s((function(){y&&(void 0!==I.current?n(I.current,w)||(P(),j(),k.current=!1,I.current=w,T()):I.current=w)}),[y,w,P,j,T])};export{f as useAllWells};
2
2
  //# sourceMappingURL=useAllWells.js.map
@@ -1,7 +1,11 @@
1
+ /** Cache schema version. Bump to invalidate existing caches. */
2
+ export declare const CACHE_VERSION = 1;
3
+ /** TypeScript-like description of cached data shape. */
4
+ export declare const CACHE_SCHEMA = "number[]";
1
5
  /** Cache entry time-to-live: 5 minutes in milliseconds. */
2
6
  export declare const CACHE_TTL: number;
3
7
  /** SessionStorage key for the compressed all-wells cache data. */
4
- export declare const STORAGE_KEY = "corva-offset-well-picker-all-wells-cache";
8
+ export declare const STORAGE_KEY = "corva-offset-well-picker-all-wells-cache-compressed";
5
9
  /** Delay (ms) before flushing pending writes to sessionStorage. */
6
10
  export declare const DEBOUNCE_DELAY = 500;
7
11
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,eAAO,MAAM,SAAS,QAAgB,CAAC;AAEvC,kEAAkE;AAClE,eAAO,MAAM,WAAW,6CAA6C,CAAC;AAEtE,mEAAmE;AACnE,eAAO,MAAM,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/constants.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,wDAAwD;AACxD,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,2DAA2D;AAC3D,eAAO,MAAM,SAAS,QAAgB,CAAC;AAEvC,kEAAkE;AAClE,eAAO,MAAM,WAAW,wDAAwD,CAAC;AAEjF,mEAAmE;AACnE,eAAO,MAAM,cAAc,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- var e=3e5,l="corva-offset-well-picker-all-wells-cache",a=500;export{e as CACHE_TTL,a as DEBOUNCE_DELAY,l as STORAGE_KEY};
1
+ var e=1,l="number[]",r=3e5,c="corva-offset-well-picker-all-wells-cache-compressed",a=500;export{l as CACHE_SCHEMA,r as CACHE_TTL,e as CACHE_VERSION,a as DEBOUNCE_DELAY,c as STORAGE_KEY};
2
2
  //# sourceMappingURL=constants.js.map
@@ -1,13 +1,8 @@
1
- /** Handle returned by requestIdleCallback or setTimeout fallback. */
2
- export type IdleCallbackHandle = number;
3
- /**
4
- * All-wells cache entry.
5
- *
6
- * @property wellIds - Array of well IDs
7
- * @property timestamp - Unix timestamp (ms) when this entry was created
8
- */
1
+ /** In-memory cache entry for all-wells data. */
9
2
  export type AllWellsCacheEntry = {
10
3
  wellIds: number[];
11
4
  timestamp: number;
12
5
  };
6
+ /** Storage state format (inside envelope). Just the array of well IDs. */
7
+ export type AllWellsStorageState = number[];
13
8
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/types.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/types.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,oBAAoB,GAAG,MAAM,EAAE,CAAC"}
@@ -1,33 +1,12 @@
1
1
  /**
2
- * @fileoverview Two-level cache for all-wells mode data.
3
- *
4
- * ## Architecture
5
- *
6
- * Same pattern as useTileCache but for the all-wells loading mode:
7
- *
8
- * ```
9
- * ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
10
- * │ Memory Cache │ ──► │ Pending Queue │ ──► │ SessionStorage │
11
- * │ (instant) │ │ (debounced) │ │ (LZ compressed) │
12
- * └─────────────────┘ └─────────────────┘ └─────────────────┘
13
- * ```
14
- *
15
- * - **Level 1 (Memory)**: In-memory cache for instant lookups. Lost on page reload.
16
- * - **Level 2 (SessionStorage)**: Persistent storage with LZ-String compression.
17
- *
18
- * @module useAllWellsCache
2
+ * Two-level cache for all-wells mode: memory (instant) + sessionStorage (LZ-compressed).
3
+ * Same pattern as useTileCache but stores a flat array of well IDs instead of per-tile maps.
19
4
  */
20
- /**
21
- * Two-level cache for all-wells mode data.
22
- *
23
- * @returns Cache operations object
24
- * @returns returns.getCachedWellIds - Retrieves cached well IDs
25
- * @returns returns.setCachedWellIds - Caches well IDs
26
- * @returns returns.clearCache - Clears all cache data and pending operations
27
- */
28
- export declare const useAllWellsCache: () => {
5
+ type AllWellsCacheResult = {
29
6
  getCachedWellIds: () => number[] | null;
30
7
  setCachedWellIds: (wellIds: number[]) => void;
31
8
  clearCache: () => void;
32
9
  };
10
+ export declare const useAllWellsCache: () => AllWellsCacheResult;
11
+ export {};
33
12
  //# sourceMappingURL=useAllWellsCache.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAllWellsCache.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAWH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;4BAgGc,MAAM,EAAE,GAAG,IAAI;gCA6BT,MAAM,EAAE,KAAG,IAAI;sBAc3B,IAAI;CAcxC,CAAC"}
1
+ {"version":3,"file":"useAllWellsCache.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useAllWellsCache/useAllWellsCache.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+BH,KAAK,mBAAmB,GAAG;IACzB,gBAAgB,EAAE,MAAM,MAAM,EAAE,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,mBAuInC,CAAC"}
@@ -1,2 +1,2 @@
1
- import{useRef as r,useEffect as e,useCallback as t}from"react";import n from"lz-string";import c from"lodash/debounce";import{scheduleIdleWork as u,cancelIdleWork as o}from"../useTileCache/idle-callback.js";import{DEBOUNCE_DELAY as a,CACHE_TTL as l,STORAGE_KEY as s}from"./constants.js";var i=function(){var i=r(null),m=r(null),f=r(new Set);e((function(){var r=f.current,e=u((function(){r.delete(e);try{var t=sessionStorage.getItem(s);if(!t)return;var c=n.decompressFromUTF16(t);if(!c)return;var u=JSON.parse(c);Date.now()-u.timestamp>=l||(i.current=u)}catch(r){sessionStorage.removeItem(s)}}),{timeout:2e3});return r.add(e),function(){o(e),r.delete(e)}}),[]);var d=r(c((function(){var r=m.current;if(r){var e=r,t=u((function(){f.current.delete(t);try{var r=JSON.stringify(e),c=n.compressToUTF16(r);sessionStorage.setItem(s,c),m.current===e&&(m.current=null)}catch(r){m.current=null}}),{timeout:5e3});f.current.add(t)}}),a));return e((function(){var r=d.current,e=f.current;return function(){r.cancel(),e.forEach(o),e.clear()}}),[]),{getCachedWellIds:t((function(){var r=Date.now(),e=i.current,t=m.current;return e&&r-e.timestamp<l?e.wellIds:t&&r-t.timestamp<l?t.wellIds:(e&&(i.current=null),null)}),[]),setCachedWellIds:t((function(r){var e={wellIds:r,timestamp:Date.now()};i.current=e,m.current=e,d.current()}),[]),clearCache:t((function(){i.current=null,m.current=null,d.current.cancel(),f.current.forEach(o),f.current.clear(),sessionStorage.removeItem(s)}),[])}};export{i as useAllWellsCache};
1
+ import{useRef as e,useEffect as r,useCallback as t}from"react";import n from"lz-string";import c from"lodash/debounce";import{scheduleIdleWork as u,cancelIdleWork as l}from"../useTileCache/idle-callback.js";import{formatBytesToKB as s}from"../cache-utils/formatBytes.js";import{STORAGE_KEY as a,CACHE_VERSION as o,CACHE_SCHEMA as i,DEBOUNCE_DELAY as m,CACHE_TTL as f}from"./constants.js";var d=function(){var d=e(null),p=e(null),v=e(new Set);r((function(){var e=v.current,r=u((function(){e.delete(r);try{var t=sessionStorage.getItem(a);if(!t)return;var c=JSON.parse(t),u=function(e){if(e.version!==o)return null;if(Date.now()-e.timestamp>=f)return null;var r=n.decompressFromUTF16(e.state);return r?JSON.parse(r):null}(c);u&&(d.current={wellIds:u,timestamp:c.timestamp})}catch(e){sessionStorage.removeItem(a)}}),{timeout:2e3});return e.add(r),function(){l(r),e.delete(r)}}),[]);var h=e(c((function(){var e=p.current;if(e){var r=u((function(){v.current.delete(r);try{var t=JSON.stringify(e.wellIds),c={version:o,timestamp:e.timestamp,schema:i,compression:"lz-utf16",count:e.wellIds.length,sizeKB:s(t.length),state:n.compressToUTF16(t)};sessionStorage.setItem(a,JSON.stringify(c))}finally{p.current===e&&(p.current=null)}}),{timeout:5e3});v.current.add(r)}}),m));return r((function(){var e=h.current,r=v.current;return function(){e.cancel(),r.forEach(l),r.clear()}}),[]),{getCachedWellIds:t((function(){var e=Date.now(),r=d.current,t=p.current;return r&&e-r.timestamp<f?r.wellIds:t&&e-t.timestamp<f?t.wellIds:(r&&(d.current=null),null)}),[]),setCachedWellIds:t((function(e){var r={wellIds:e,timestamp:Date.now()};d.current=r,p.current=r,h.current()}),[]),clearCache:t((function(){d.current=null,p.current=null,h.current.cancel(),v.current.forEach(l),v.current.clear(),sessionStorage.removeItem(a)}),[])}};export{d as useAllWellsCache};
2
2
  //# sourceMappingURL=useAllWellsCache.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBicWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useBicWells.js"],"names":[],"mappings":"AAeO,6DAgKN"}
1
+ {"version":3,"file":"useBicWells.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/effects/useBicWells.js"],"names":[],"mappings":"AAeO,6DA8JN"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{useState as s,useEffect as a}from"react";import{isEmpty as i,uniq as c,intersection as l,get as u}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import{RESYNC_STATUS as p,WellSectionColors as f,ALL_SECTION_KEY as m,ALL_SECTION_LABEL as b,RESYNC_TASK_RESPONSE as d}from"../constants.js";import"../api/shared/dataFormatter.js";import{fetchOffsetWellSelections as v}from"../api/bic/fetchOffsetWellSelections.js";import{fetchWellhubWells as j}from"../api/bic/fetchWellhubWells.js";import{resyncIdasWells as h}from"../api/bic/resyncIdasWells.js";import"zustand";import"../stores/picker-props-store/PickerPropsStoreContext.js";import"react/jsx-runtime";import{usePickerPropsStore as y}from"../stores/picker-props-store/usePickerPropsStore.js";import"../../../utils/index.js";import{showSuccessNotification as O,showErrorNotification as w}from"../../../utils/notificationToasts.js";function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?x(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(x,k){var E=y((function(e){return e.isWDUser})),I=y((function(e){return e.currentUser})),D=y((function(e){return e.isManualWellsEnabled})),P=s(null),g=n(P,2),A=g[0],C=g[1],N=s(null),T=n(N,2),U=T[0],R=T[1],W=s(null),_=n(W,2),G=_[0],J=_[1],L=s(p.INITIAL),F=n(L,2),z=F[0],M=F[1],q=s([]),B=n(q,2),H=B[0],K=B[1];return a((function(){var n,s,a=(n=r(o.mark((function r(){var n,s,a,u,p,d,j,h,y,O;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!x){r.next=7;break}return r.next=4,v(x);case 4:r.t0=r.sent,r.next=8;break;case 7:r.t0=[];case 8:s=r.t0,a=!i(s)&&JSON.parse(s[0].data.filters),u=!i(s)&&s[0].data.result&&JSON.parse(s[0].data.result),p=D&&!i(s)&&s[0].data.manual_wells&&JSON.parse(s[0].data.manual_wells),d=k.map((function(e){return e.id})),j=D&&!i(s)&&s[0].data.ta_scores&&JSON.parse(s[0].data.ta_scores),h=(null==a||null===(n=a.filterTabs)||void 0===n?void 0:n.map((function(e,t){return{value:e.value,label:e.name,color:f[t]}})))||[],y=[x],O={},a&&u&&(O=h.reduce((function(e,r){var n=r.value,o=(null==u?void 0:u[n])||[],s=c(o.concat(x));return y=y.concat(s),S(S({},e),{},t({},n,s))}),{})),p&&p.length&&(y=y.concat(p),K(p.map((function(e,t){var r;return{wellId:e,taScore:null!==(r=null==j?void 0:j[t])&&void 0!==r?r:""}})))),O[m]=c(y),J(S({},O)),O=Object.keys(O).reduce((function(e,r){return S(S({},e),{},t({},r,l(O[r],d)))}),{}),C([{value:m,label:b}].concat(e(h))),R(O),r.next=31;break;case 26:r.prev=26,r.t1=r.catch(0),console.error("offsetwell selection fetch error: ",r.t1),C([]),R([]);case 31:case"end":return r.stop()}}),r,null,[[0,26]])}))),function(){return n.apply(this,arguments)}),d=(s=r(o.mark((function e(){var r,n,s,a;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j(x);case 3:r=e.sent,n=u(r[0],"data.offset_wells")||[],s=t({},m,c(n.map((function(e){return e.id})).concat(x))),C([{value:m,label:b}]),J(S({},s)),a=k.map((function(e){return e.id})),s=Object.keys(s).reduce((function(e,r){return S(S({},e),{},t({},r,l(s[r],a)))}),{}),R(s),e.next=18;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("wellhub fetch error: ",e.t0),C([]),R([]);case 18:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(){return s.apply(this,arguments)});x&&k&&(z===p.INITIAL||z===p.SUCCEEDED)?E?a():d():!x&&k&&(C([{value:m,label:b}]),R(t({},m,[])),J(t({},m,[])))}),[E,x,k,z,D]),a((function(){function e(){return(e=r(o.mark((function e(){var t,r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M(p.RUNNING),!(x&&I&&I.id)){e.next=7;break}return e.next=4,h(I,x);case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0=[];case 8:(null==(t=e.t0)?void 0:t.state)===d.SUCCESS?(M(p.SUCCEEDED),O("Re-sync wells from IDAS was successful")):(null==t?void 0:t.state)===d.FAILURE&&(M(p.FAILED),r=(null==t?void 0:t.fail_reason)||"Re-sync wells from IDAS failed",w(r));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}z===p.TRIGGERED&&function(){e.apply(this,arguments)}()}),[x,I,z]),[A,C,U,R,z,M,H,G]};export{k as useBicWells};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/asyncToGenerator";import n from"@babel/runtime/helpers/slicedToArray";import o from"@babel/runtime/regenerator";import{useState as s,useEffect as i}from"react";import{isEmpty as a,uniq as c,intersection as l,get as u}from"lodash";import"uuid";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions/constants.js";import"../../../clients/subscriptions.v1.js";import"../../../clients/subscriptions/subscriptions-client.factory.js";import"../../../clients/api/apiCore.js";import"../../../clients/constants.js";import"../../../clients/sso/auth0.js";import"../../../clients/sso/oauth2.js";import{RESYNC_STATUS as p,WellSectionColors as f,ALL_SECTION_KEY as m,ALL_SECTION_LABEL as b,RESYNC_TASK_RESPONSE as d}from"../constants.js";import"../api/shared/dataFormatter.js";import{fetchOffsetWellSelections as v}from"../api/bic/fetchOffsetWellSelections.js";import{fetchWellhubWells as j}from"../api/bic/fetchWellhubWells.js";import{resyncIdasWells as h}from"../api/bic/resyncIdasWells.js";import"zustand";import"../stores/picker-props-store/PickerPropsStoreContext.js";import"react/jsx-runtime";import"../viewport/ViewportProvider.js";import"../viewport/ViewportContext.js";import{usePickerPropsStore as w}from"../stores/picker-props-store/usePickerPropsStore.js";import"../../../utils/index.js";import{showSuccessNotification as y,showErrorNotification as O}from"../../../utils/notificationToasts.js";function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?x(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(x,k){var E=w((function(e){return e.isWDUser})),I=w((function(e){return e.currentUser})),P=w((function(e){return e.isManualWellsEnabled})),D=s(null),g=n(D,2),C=g[0],A=g[1],N=s(null),T=n(N,2),U=T[0],R=T[1],W=s(null),_=n(W,2),G=_[0],J=_[1],L=s(p.INITIAL),F=n(L,2),V=F[0],z=F[1],M=s([]),q=n(M,2),B=q[0],H=q[1];return i((function(){var n,s,i=(n=r(o.mark((function r(){var n,s,i,u,p,d,j,h,w,y;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!x){r.next=7;break}return r.next=4,v(x);case 4:r.t0=r.sent,r.next=8;break;case 7:r.t0=[];case 8:s=r.t0,i=!a(s)&&JSON.parse(s[0].data.filters),u=!a(s)&&s[0].data.result&&JSON.parse(s[0].data.result),p=P&&!a(s)&&s[0].data.manual_wells&&JSON.parse(s[0].data.manual_wells),d=k.map((function(e){return e.id})),j=P&&!a(s)&&s[0].data.ta_scores&&JSON.parse(s[0].data.ta_scores),h=(null==i||null===(n=i.filterTabs)||void 0===n?void 0:n.map((function(e,t){return{value:e.value,label:e.name,color:f[t]}})))||[],w=[x],y={},i&&u&&(y=h.reduce((function(e,r){var n=r.value,o=(null==u?void 0:u[n])||[],s=c(o.concat(x));return w=w.concat(s),S(S({},e),{},t({},n,s))}),{})),p&&p.length&&(w=w.concat(p),H(p.map((function(e,t){var r;return{wellId:e,taScore:null!==(r=null==j?void 0:j[t])&&void 0!==r?r:""}})))),y[m]=c(w),J(S({},y)),y=Object.keys(y).reduce((function(e,r){return S(S({},e),{},t({},r,l(y[r],d)))}),{}),A([{value:m,label:b}].concat(e(h))),R(y),r.next=31;break;case 26:r.prev=26,r.t1=r.catch(0),console.error("offsetwell selection fetch error: ",r.t1),A([]),R([]);case 31:case"end":return r.stop()}}),r,null,[[0,26]])}))),function(){return n.apply(this,arguments)}),d=(s=r(o.mark((function e(){var r,n,s,i;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j(x);case 3:r=e.sent,n=u(r[0],"data.offset_wells")||[],s=t({},m,c(n.map((function(e){return e.id})).concat(x))),A([{value:m,label:b}]),J(S({},s)),i=k.map((function(e){return e.id})),s=Object.keys(s).reduce((function(e,r){return S(S({},e),{},t({},r,l(s[r],i)))}),{}),R(s),e.next=18;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("wellhub fetch error: ",e.t0),A([]),R([]);case 18:case"end":return e.stop()}}),e,null,[[0,13]])}))),function(){return s.apply(this,arguments)});x&&k&&(V===p.INITIAL||V===p.SUCCEEDED)?E?i():d():!x&&k&&(A([{value:m,label:b}]),R(t({},m,[])),J(t({},m,[])))}),[E,x,k,V,P]),i((function(){function e(){return(e=r(o.mark((function e(){var t,r;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z(p.RUNNING),!(x&&I&&I.id)){e.next=7;break}return e.next=4,h(I,x);case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0=[];case 8:(null==(t=e.t0)?void 0:t.state)===d.SUCCESS?(z(p.SUCCEEDED),y("Re-sync wells from IDAS was successful")):(null==t?void 0:t.state)===d.FAILURE&&(z(p.FAILED),r=(null==t?void 0:t.fail_reason)||"Re-sync wells from IDAS failed",O(r));case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}V===p.TRIGGERED&&function(){e.apply(this,arguments)}()}),[x,I,V]),[C,A,U,R,V,z,B,G]};export{k as useBicWells};
2
2
  //# sourceMappingURL=useBicWells.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useBicWells.js","sources":["../../../../src/components/OffsetWellPickerV5/effects/useBicWells.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { isEmpty, get, uniq, intersection } from 'lodash';\n\nimport { fetchOffsetWellSelections, fetchWellhubWells, resyncIdasWells } from '../api';\nimport {\n ALL_SECTION_KEY,\n ALL_SECTION_LABEL,\n WellSectionColors,\n RESYNC_TASK_RESPONSE,\n RESYNC_STATUS,\n} from '../constants';\nimport { usePickerPropsStore } from '../stores/picker-props-store';\n\nimport { showSuccessNotification, showErrorNotification } from '~/utils';\n\nexport const useBicWells = (assetId, wells) => {\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const currentUser = usePickerPropsStore(state => state.currentUser);\n const isManualWellsEnabled = usePickerPropsStore(state => state.isManualWellsEnabled);\n\n const [wellSections, setWellSections] = useState(null);\n const [offsetWellsBySection, setOffsetWellsBySection] = useState(null);\n const [rawOffsetWellsBySection, setRawOffsetWellsBySection] = useState(null);\n const [resyncStatus, setResyncStatus] = useState(RESYNC_STATUS.INITIAL);\n const [taScores, setTaScores] = useState([]);\n\n useEffect(() => {\n const fetchOffsetWellSelectionData = async () => {\n try {\n const data = assetId ? await fetchOffsetWellSelections(assetId) : [];\n const filters = !isEmpty(data) && JSON.parse(data[0].data.filters);\n const result = !isEmpty(data) && data[0].data.result && JSON.parse(data[0].data.result);\n const manualWellIds =\n isManualWellsEnabled &&\n !isEmpty(data) &&\n data[0].data.manual_wells &&\n JSON.parse(data[0].data.manual_wells);\n const wellIds = wells.map(well => well.id);\n const taScores =\n isManualWellsEnabled &&\n !isEmpty(data) &&\n data[0].data.ta_scores &&\n JSON.parse(data[0].data.ta_scores);\n\n const sections =\n filters?.filterTabs?.map((tab, index) => ({\n value: tab.value,\n label: tab.name,\n color: WellSectionColors[index],\n })) || [];\n\n let allWellIds = [assetId];\n let wellsData = {};\n\n if (filters && result) {\n wellsData = sections.reduce((acc, { value }) => {\n const sectionWellIds = result?.[value] || [];\n const addedWellIds = uniq(sectionWellIds.concat(assetId));\n allWellIds = allWellIds.concat(addedWellIds);\n return { ...acc, [value]: addedWellIds };\n }, {});\n }\n\n if (manualWellIds && manualWellIds.length) {\n allWellIds = allWellIds.concat(manualWellIds);\n setTaScores(\n manualWellIds.map((wellId, index) => ({\n wellId,\n taScore: taScores?.[index] ?? '',\n }))\n );\n }\n\n wellsData[ALL_SECTION_KEY] = uniq(allWellIds);\n\n // Store raw BIC well IDs before filtering (for reset to default functionality)\n setRawOffsetWellsBySection({ ...wellsData });\n\n // NOTE: Filter the removed offset\n wellsData = Object.keys(wellsData).reduce(\n (acc, key) => ({\n ...acc,\n [key]: intersection(wellsData[key], wellIds),\n }),\n {}\n );\n\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }, ...sections]);\n setOffsetWellsBySection(wellsData);\n } catch (err) {\n console.error('offsetwell selection fetch error: ', err);\n setWellSections([]);\n setOffsetWellsBySection([]);\n }\n };\n\n const fetchWellhubData = async () => {\n try {\n const record = await fetchWellhubWells(assetId);\n const offsetWells = get(record[0], 'data.offset_wells') || [];\n let offsetWellsBySection = {\n [ALL_SECTION_KEY]: uniq(offsetWells.map(({ id }) => id).concat(assetId)),\n };\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }]);\n\n // Store raw BIC well IDs before filtering (for reset to default functionality)\n setRawOffsetWellsBySection({ ...offsetWellsBySection });\n\n // NOTE: Filter the removed offset wells\n const wellIds = wells.map(well => well.id);\n offsetWellsBySection = Object.keys(offsetWellsBySection).reduce(\n (acc, key) => ({ ...acc, [key]: intersection(offsetWellsBySection[key], wellIds) }),\n {}\n );\n setOffsetWellsBySection(offsetWellsBySection);\n } catch (err) {\n console.error('wellhub fetch error: ', err);\n setWellSections([]);\n setOffsetWellsBySection([]);\n }\n };\n\n if (\n assetId &&\n wells &&\n (resyncStatus === RESYNC_STATUS.INITIAL || resyncStatus === RESYNC_STATUS.SUCCEEDED)\n ) {\n if (isWDUser) {\n fetchOffsetWellSelectionData();\n } else {\n fetchWellhubData();\n }\n } else if (!assetId && wells) {\n // No subject well - initialize with defaults to clear loading state\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }]);\n setOffsetWellsBySection({ [ALL_SECTION_KEY]: [] });\n setRawOffsetWellsBySection({ [ALL_SECTION_KEY]: [] });\n }\n // TODO: Check reference stability. Initially had only isWDUser, assetId, wells, resyncStatus\n }, [isWDUser, assetId, wells, resyncStatus, isManualWellsEnabled]);\n\n useEffect(() => {\n if (resyncStatus !== RESYNC_STATUS.TRIGGERED) {\n return;\n }\n\n async function handleResyncWells() {\n setResyncStatus(RESYNC_STATUS.RUNNING);\n const response =\n assetId && currentUser && currentUser.id ? await resyncIdasWells(currentUser, assetId) : [];\n\n if (response?.state === RESYNC_TASK_RESPONSE.SUCCESS) {\n setResyncStatus(RESYNC_STATUS.SUCCEEDED);\n showSuccessNotification('Re-sync wells from IDAS was successful');\n } else if (response?.state === RESYNC_TASK_RESPONSE.FAILURE) {\n setResyncStatus(RESYNC_STATUS.FAILED);\n const error = response?.fail_reason || 'Re-sync wells from IDAS failed';\n showErrorNotification(error);\n }\n }\n\n handleResyncWells();\n // TODO: Check reference stability. Initially had only resyncStatus\n }, [assetId, currentUser, resyncStatus]);\n\n return [\n wellSections,\n setWellSections,\n offsetWellsBySection,\n setOffsetWellsBySection,\n resyncStatus,\n setResyncStatus,\n taScores,\n rawOffsetWellsBySection,\n ];\n};\n"],"names":["useBicWells","assetId","wells","isWDUser","usePickerPropsStore","state","currentUser","isManualWellsEnabled","useState","_useState2","_slicedToArray","_useState","wellSections","setWellSections","_useState4","_useState3","offsetWellsBySection","setOffsetWellsBySection","_useState6","_useState5","rawOffsetWellsBySection","setRawOffsetWellsBySection","_useState7","RESYNC_STATUS","INITIAL","_useState8","resyncStatus","setResyncStatus","_useState10","_useState9","taScores","setTaScores","useEffect","_ref","_ref3","fetchOffsetWellSelectionData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_filters$filterTabs","data","filters","result","manualWellIds","wellIds","_taScores","sections","allWellIds","wellsData","wrap","_context","prev","next","fetchOffsetWellSelections","t0","sent","isEmpty","JSON","parse","manual_wells","map","well","id","ta_scores","filterTabs","tab","index","value","label","name","color","WellSectionColors","reduce","acc","_ref2","sectionWellIds","addedWellIds","uniq","concat","_objectSpread","_defineProperty","length","wellId","_taScores$index","taScore","ALL_SECTION_KEY","Object","keys","key","intersection","ALL_SECTION_LABEL","_toConsumableArray","t1","console","error","stop","apply","this","arguments","fetchWellhubData","_callee2","record","offsetWells","_offsetWellsBySection","_context2","fetchWellhubWells","get","_ref4","SUCCEEDED","_handleResyncWells","_callee3","response","_context3","RUNNING","resyncIdasWells","RESYNC_TASK_RESPONSE","SUCCESS","showSuccessNotification","FAILURE","FAILED","fail_reason","showErrorNotification","TRIGGERED","handleResyncWells"],"mappings":"qlEAeO,IAAMA,EAAc,SAACC,EAASC,GACnC,IAAMC,EAAWC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,YAC9CG,EAAcF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,eACjDC,EAAuBH,GAAoB,SAAAC,GAAK,OAAIA,EAAME,wBAExBC,EA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,cAAe,iCACvCC,EAAsB3B,IACvB,KAAA,GAAA,IAAA,MAAA,OAAAkB,EAAAjB,OAAA,GAAAe,EACF,MAAAd,MAAAC,KAAAC,UAAA,CAjBGzE,IAAiBH,EAAcoG,WAElC,WAE+Bb,EAAAb,MAAAC,KAAAC,UAAA,CAehCyB,EAED,GAAE,CAAC3H,EAASK,EAAaoB,IAEnB,CACLd,EACAC,EACAG,EACAC,EACAS,EACAC,EACAG,EACAV,EAEJ"}
1
+ {"version":3,"file":"useBicWells.js","sources":["../../../../src/components/OffsetWellPickerV5/effects/useBicWells.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { isEmpty, get, uniq, intersection } from 'lodash';\n\nimport { fetchOffsetWellSelections, fetchWellhubWells, resyncIdasWells } from '../api';\nimport {\n ALL_SECTION_KEY,\n ALL_SECTION_LABEL,\n WellSectionColors,\n RESYNC_TASK_RESPONSE,\n RESYNC_STATUS,\n} from '../constants';\nimport { usePickerPropsStore } from '../stores/picker-props-store';\n\nimport { showSuccessNotification, showErrorNotification } from '~/utils';\n\nexport const useBicWells = (assetId, wells) => {\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const currentUser = usePickerPropsStore(state => state.currentUser);\n const isManualWellsEnabled = usePickerPropsStore(state => state.isManualWellsEnabled);\n\n const [wellSections, setWellSections] = useState(null);\n const [offsetWellsBySection, setOffsetWellsBySection] = useState(null);\n const [rawOffsetWellsBySection, setRawOffsetWellsBySection] = useState(null);\n const [resyncStatus, setResyncStatus] = useState(RESYNC_STATUS.INITIAL);\n const [taScores, setTaScores] = useState([]);\n\n useEffect(() => {\n const fetchOffsetWellSelectionData = async () => {\n try {\n const data = assetId ? await fetchOffsetWellSelections(assetId) : [];\n const filters = !isEmpty(data) && JSON.parse(data[0].data.filters);\n const result = !isEmpty(data) && data[0].data.result && JSON.parse(data[0].data.result);\n const manualWellIds =\n isManualWellsEnabled &&\n !isEmpty(data) &&\n data[0].data.manual_wells &&\n JSON.parse(data[0].data.manual_wells);\n const wellIds = wells.map(well => well.id);\n const taScores =\n isManualWellsEnabled &&\n !isEmpty(data) &&\n data[0].data.ta_scores &&\n JSON.parse(data[0].data.ta_scores);\n\n const sections =\n filters?.filterTabs?.map((tab, index) => ({\n value: tab.value,\n label: tab.name,\n color: WellSectionColors[index],\n })) || [];\n\n let allWellIds = [assetId];\n let wellsData = {};\n\n if (filters && result) {\n wellsData = sections.reduce((acc, { value }) => {\n const sectionWellIds = result?.[value] || [];\n const addedWellIds = uniq(sectionWellIds.concat(assetId));\n allWellIds = allWellIds.concat(addedWellIds);\n return { ...acc, [value]: addedWellIds };\n }, {});\n }\n\n if (manualWellIds && manualWellIds.length) {\n allWellIds = allWellIds.concat(manualWellIds);\n setTaScores(\n manualWellIds.map((wellId, index) => ({\n wellId,\n taScore: taScores?.[index] ?? '',\n }))\n );\n }\n\n wellsData[ALL_SECTION_KEY] = uniq(allWellIds);\n\n // Store raw BIC well IDs before filtering (for reset to default functionality)\n setRawOffsetWellsBySection({ ...wellsData });\n\n // NOTE: Filter the removed offset\n wellsData = Object.keys(wellsData).reduce(\n (acc, key) => ({\n ...acc,\n [key]: intersection(wellsData[key], wellIds),\n }),\n {}\n );\n\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }, ...sections]);\n setOffsetWellsBySection(wellsData);\n } catch (err) {\n console.error('offsetwell selection fetch error: ', err);\n setWellSections([]);\n setOffsetWellsBySection([]);\n }\n };\n\n const fetchWellhubData = async () => {\n try {\n const record = await fetchWellhubWells(assetId);\n const offsetWells = get(record[0], 'data.offset_wells') || [];\n let offsetWellsBySection = {\n [ALL_SECTION_KEY]: uniq(offsetWells.map(({ id }) => id).concat(assetId)),\n };\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }]);\n\n // Store raw BIC well IDs before filtering (for reset to default functionality)\n setRawOffsetWellsBySection({ ...offsetWellsBySection });\n\n // NOTE: Filter the removed offset wells\n const wellIds = wells.map(well => well.id);\n offsetWellsBySection = Object.keys(offsetWellsBySection).reduce(\n (acc, key) => ({ ...acc, [key]: intersection(offsetWellsBySection[key], wellIds) }),\n {}\n );\n setOffsetWellsBySection(offsetWellsBySection);\n } catch (err) {\n console.error('wellhub fetch error: ', err);\n setWellSections([]);\n setOffsetWellsBySection([]);\n }\n };\n\n if (\n assetId &&\n wells &&\n (resyncStatus === RESYNC_STATUS.INITIAL || resyncStatus === RESYNC_STATUS.SUCCEEDED)\n ) {\n if (isWDUser) {\n fetchOffsetWellSelectionData();\n } else {\n fetchWellhubData();\n }\n } else if (!assetId && wells) {\n // No subject well - initialize with defaults to clear loading state\n setWellSections([{ value: ALL_SECTION_KEY, label: ALL_SECTION_LABEL }]);\n setOffsetWellsBySection({ [ALL_SECTION_KEY]: [] });\n setRawOffsetWellsBySection({ [ALL_SECTION_KEY]: [] });\n }\n }, [isWDUser, assetId, wells, resyncStatus, isManualWellsEnabled]);\n\n useEffect(() => {\n if (resyncStatus !== RESYNC_STATUS.TRIGGERED) {\n return;\n }\n\n async function handleResyncWells() {\n setResyncStatus(RESYNC_STATUS.RUNNING);\n const response =\n assetId && currentUser && currentUser.id ? await resyncIdasWells(currentUser, assetId) : [];\n\n if (response?.state === RESYNC_TASK_RESPONSE.SUCCESS) {\n setResyncStatus(RESYNC_STATUS.SUCCEEDED);\n showSuccessNotification('Re-sync wells from IDAS was successful');\n } else if (response?.state === RESYNC_TASK_RESPONSE.FAILURE) {\n setResyncStatus(RESYNC_STATUS.FAILED);\n const error = response?.fail_reason || 'Re-sync wells from IDAS failed';\n showErrorNotification(error);\n }\n }\n\n handleResyncWells();\n }, [assetId, currentUser, resyncStatus]);\n\n return [\n wellSections,\n setWellSections,\n offsetWellsBySection,\n setOffsetWellsBySection,\n resyncStatus,\n setResyncStatus,\n taScores,\n rawOffsetWellsBySection,\n ];\n};\n"],"names":["useBicWells","assetId","wells","isWDUser","usePickerPropsStore","state","currentUser","isManualWellsEnabled","useState","_useState2","_slicedToArray","_useState","wellSections","setWellSections","_useState4","_useState3","offsetWellsBySection","setOffsetWellsBySection","_useState6","_useState5","rawOffsetWellsBySection","setRawOffsetWellsBySection","_useState7","RESYNC_STATUS","INITIAL","_useState8","resyncStatus","setResyncStatus","_useState10","_useState9","taScores","setTaScores","useEffect","_ref","_ref3","fetchOffsetWellSelectionData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","_filters$filterTabs","data","filters","result","manualWellIds","wellIds","_taScores","sections","allWellIds","wellsData","wrap","_context","prev","next","fetchOffsetWellSelections","t0","sent","isEmpty","JSON","parse","manual_wells","map","well","id","ta_scores","filterTabs","tab","index","value","label","name","color","WellSectionColors","reduce","acc","_ref2","sectionWellIds","addedWellIds","uniq","concat","_objectSpread","_defineProperty","length","wellId","_taScores$index","taScore","ALL_SECTION_KEY","Object","keys","key","intersection","ALL_SECTION_LABEL","_toConsumableArray","t1","console","error","stop","apply","this","arguments","fetchWellhubData","_callee2","record","offsetWells","_offsetWellsBySection","_context2","fetchWellhubWells","get","_ref4","SUCCEEDED","_handleResyncWells","_callee3","response","_context3","RUNNING","resyncIdasWells","RESYNC_TASK_RESPONSE","SUCCESS","showSuccessNotification","FAILURE","FAILED","fail_reason","showErrorNotification","TRIGGERED","handleResyncWells"],"mappings":"oqEAeO,IAAMA,EAAc,SAACC,EAASC,GACnC,IAAMC,EAAWC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,YAC9CG,EAAcF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,eACjDC,EAAuBH,GAAoB,SAAAC,GAAK,OAAIA,EAAME,wBAExBC,EAAAA,EAAS,MAAKC,EAAAC,EAAAC,EAAA,GAA/CC,EAAYH,EAAA,GAAEI,EAAeJ,EAAA,GACoBD,EAAAA,EAAS,MAAKM,EAAAJ,EAAAK,EAAA,GAA/DC,EAAoBF,EAAA,GAAEG,EAAuBH,EAAA,GACUN,EAAAA,EAAS,MAAKU,EAAAR,EAAAS,EAAA,GAArEC,EAAuBF,EAAA,GAAEG,EAA0BH,E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EACAS,EACAC,EACAG,EACAV,EAEJ"}
@@ -1,7 +1,11 @@
1
+ /** Cache schema version. Bump to invalidate existing caches. */
2
+ export declare const CACHE_VERSION = 1;
3
+ /** TypeScript-like description of cached data shape. */
4
+ export declare const CACHE_SCHEMA = "Record<TileKey, number[]>";
1
5
  /** Cache entry time-to-live: 5 minutes in milliseconds. */
2
6
  export declare const CACHE_TTL: number;
3
7
  /** SessionStorage key for the compressed cache data. */
4
- export declare const STORAGE_KEY = "corva-offset-well-picker-tile-cache";
8
+ export declare const STORAGE_KEY = "corva-offset-well-picker-tile-cache-compressed";
5
9
  /** Delay (ms) before flushing pending writes to sessionStorage. */
6
10
  export declare const DEBOUNCE_DELAY = 500;
7
11
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useTileCache/constants.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,eAAO,MAAM,SAAS,QAAgB,CAAC;AAEvC,wDAAwD;AACxD,eAAO,MAAM,WAAW,wCAAwC,CAAC;AAEjE,mEAAmE;AACnE,eAAO,MAAM,cAAc,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/effects/useTileCache/constants.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B,wDAAwD;AACxD,eAAO,MAAM,YAAY,8BAA8B,CAAC;AAExD,2DAA2D;AAC3D,eAAO,MAAM,SAAS,QAAgB,CAAC;AAEvC,wDAAwD;AACxD,eAAO,MAAM,WAAW,mDAAmD,CAAC;AAE5E,mEAAmE;AACnE,eAAO,MAAM,cAAc,MAAM,CAAC"}