@corva/ui 3.40.0-9 → 3.41.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) 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/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  14. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  15. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  16. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  17. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  18. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  19. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  20. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  21. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  22. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  37. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  38. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  39. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  40. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  41. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  42. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  43. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  59. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  60. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  61. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  62. package/cjs-bundle/components/OffsetWellPickerV4/index.js +1 -1
  63. package/cjs-bundle/components/OffsetWellPickerV4/index.js.map +1 -1
  64. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  65. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  66. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  67. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  68. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  69. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  70. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
  71. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  72. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  73. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.js +1 -1
  74. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js +2 -0
  75. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js.map +1 -0
  76. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/WellsMap.js +1 -1
  77. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  78. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  79. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  80. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  81. package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
  82. package/cjs-bundle/components/OffsetWellPickerV5/constants.js.map +1 -1
  83. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  84. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  85. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
  86. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  87. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  88. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSortedWells.js +1 -1
  89. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSortedWells.js.map +1 -1
  90. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
  92. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js +2 -0
  93. package/cjs-bundle/components/{OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js.map → OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js.map} +1 -1
  94. package/cjs-bundle/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.js +2 -0
  95. package/cjs-bundle/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.js.map +1 -0
  96. package/cjs-bundle/components/OffsetWellPickerV5/utils/getIsImperial.js.map +1 -1
  97. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  98. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  99. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  100. package/cjs-bundle/componentsV2/AppCommonsProvider/AppCommonsProvider.js +1 -1
  101. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  102. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  103. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js +1 -1
  104. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/useLoadAssets.js +1 -1
  105. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.scss.js +1 -1
  106. package/cjs-bundle/componentsV2/Menu/MenuItem/MenuItem.js +1 -1
  107. package/cjs-bundle/componentsV2/Menu/MenuItem/MenuItem.scss.js +1 -1
  108. package/cjs-bundle/componentsV2/Popover/Popover.scss.js +1 -1
  109. package/cjs-bundle/componentsV2/WellArchivedMessage/ModalDisplayComponent/ModalDisplayComponent.scss.js +1 -1
  110. package/cjs-bundle/config/theme/index.js +1 -1
  111. package/cjs-bundle/config/theme/index.js.map +1 -1
  112. package/cjs-bundle/config/theme/themeVariables.mjs.js +1 -1
  113. package/cjs-bundle/config/theme/themeVariables.mjs.js.map +1 -1
  114. package/cjs-bundle/permissions/constants/settingsApps.js +1 -1
  115. package/cjs-bundle/styles/generatedThemesVariables.global.css.js +1 -1
  116. package/components/AddComment/Popover.js +1 -1
  117. package/components/AddComment/Popover.js.map +1 -1
  118. package/components/AddComment/components/Content.js +1 -1
  119. package/components/AddComment/components/Content.js.map +1 -1
  120. package/components/BICOffsetPickerDialog/index.js +1 -1
  121. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  122. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  123. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  124. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  125. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  126. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  127. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  128. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
  129. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  130. package/components/DocumentViewer/DocumentViewer.js +1 -1
  131. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  132. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  133. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  134. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  135. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  136. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  137. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  138. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  139. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  140. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  141. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  142. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  143. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  144. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  145. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  146. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  147. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  148. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  149. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  150. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  151. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  152. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  153. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  154. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  155. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  156. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  157. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  158. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  159. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  160. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  161. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  162. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  163. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  164. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  165. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  166. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  167. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  168. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  169. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  170. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  171. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  172. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  173. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  174. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  175. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  176. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  177. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  178. package/components/OffsetWellPickerV4/index.d.ts +1 -1
  179. package/components/OffsetWellPickerV4/index.d.ts.map +1 -1
  180. package/components/OffsetWellPickerV4/index.js +1 -1
  181. package/components/OffsetWellPickerV4/index.js.map +1 -1
  182. package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
  183. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  184. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  185. package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts +1 -9
  186. package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
  187. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  188. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  189. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts +1 -0
  190. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  191. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  192. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.d.ts +1 -0
  193. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.d.ts.map +1 -1
  194. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHints.js +1 -1
  195. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.d.ts.map +1 -1
  196. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
  197. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +25 -2
  198. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
  199. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  200. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts +1 -0
  201. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts.map +1 -1
  202. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts +3 -1
  203. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts.map +1 -1
  204. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  205. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.d.ts +3 -1
  206. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.d.ts.map +1 -1
  207. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusCircle.js +1 -1
  208. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.d.ts +21 -0
  209. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.d.ts.map +1 -0
  210. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js +2 -0
  211. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useRadiusResize.js.map +1 -0
  212. package/components/OffsetWellPickerV5/components/Map/WellsMap.d.ts +1 -0
  213. package/components/OffsetWellPickerV5/components/Map/WellsMap.d.ts.map +1 -1
  214. package/components/OffsetWellPickerV5/components/Map/WellsMap.js +1 -1
  215. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  216. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  217. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  218. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  219. package/components/OffsetWellPickerV5/constants.d.ts +1 -0
  220. package/components/OffsetWellPickerV5/constants.d.ts.map +1 -1
  221. package/components/OffsetWellPickerV5/constants.js +1 -1
  222. package/components/OffsetWellPickerV5/constants.js.map +1 -1
  223. package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts +1 -1
  224. package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts.map +1 -1
  225. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  226. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  227. package/components/OffsetWellPickerV5/effects/useFetchWells.d.ts.map +1 -1
  228. package/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
  229. package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts.map +1 -1
  230. package/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  231. package/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  232. package/components/OffsetWellPickerV5/effects/useSortedWells.d.ts.map +1 -1
  233. package/components/OffsetWellPickerV5/effects/useSortedWells.js +1 -1
  234. package/components/OffsetWellPickerV5/effects/useSortedWells.js.map +1 -1
  235. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.d.ts.map +1 -1
  236. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
  237. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
  238. package/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.d.ts +15 -0
  239. package/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.d.ts.map +1 -0
  240. package/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js +2 -0
  241. package/{cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js.map → components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.js.map} +1 -1
  242. package/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.d.ts +2 -0
  243. package/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.d.ts.map +1 -0
  244. package/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.js +2 -0
  245. package/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.js.map +1 -0
  246. package/components/OffsetWellPickerV5/utils/getIsImperial.d.ts +1 -1
  247. package/components/OffsetWellPickerV5/utils/getIsImperial.d.ts.map +1 -1
  248. package/components/OffsetWellPickerV5/utils/getIsImperial.js.map +1 -1
  249. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  250. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  251. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  252. package/componentsV2/AppCommonsProvider/AppCommonsProvider.d.ts.map +1 -1
  253. package/componentsV2/AppCommonsProvider/AppCommonsProvider.js +1 -1
  254. package/componentsV2/AppCommonsProvider/AppCommonsProvider.js.map +1 -1
  255. package/componentsV2/AppHeader/V3/Actions/Actions.d.ts.map +1 -1
  256. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  257. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  258. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js +1 -1
  259. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/useLoadAssets.d.ts.map +1 -1
  260. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/useLoadAssets.js +1 -1
  261. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.scss.js +1 -1
  262. package/componentsV2/Menu/Menu.stories.d.ts +1 -0
  263. package/componentsV2/Menu/Menu.stories.d.ts.map +1 -1
  264. package/componentsV2/Menu/MenuItem/MenuItem.d.ts +1 -0
  265. package/componentsV2/Menu/MenuItem/MenuItem.d.ts.map +1 -1
  266. package/componentsV2/Menu/MenuItem/MenuItem.js +1 -1
  267. package/componentsV2/Menu/MenuItem/MenuItem.scss.js +1 -1
  268. package/componentsV2/Popover/Popover.scss.js +1 -1
  269. package/componentsV2/WellArchivedMessage/ModalDisplayComponent/ModalDisplayComponent.scss.js +1 -1
  270. package/config/theme/index.d.ts.map +1 -1
  271. package/config/theme/index.js +1 -1
  272. package/config/theme/index.js.map +1 -1
  273. package/config/theme/themeVariables.d.mts +3 -0
  274. package/config/theme/themeVariables.d.mts.map +1 -1
  275. package/config/theme/themeVariables.mjs.js +1 -1
  276. package/config/theme/themeVariables.mjs.js.map +1 -1
  277. package/package.json +2 -1
  278. package/permissions/constants/index.d.ts +3 -0
  279. package/permissions/constants/index.d.ts.map +1 -1
  280. package/permissions/constants/settingsApps.d.ts +3 -0
  281. package/permissions/constants/settingsApps.d.ts.map +1 -1
  282. package/permissions/constants/settingsApps.js +1 -1
  283. package/styles/common.scss +7 -0
  284. package/styles/generatedThemesVariables.global.css +1 -1
  285. package/styles/generatedThemesVariables.global.css.js +1 -1
  286. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +0 -2
  287. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +0 -1
  288. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +0 -2
  289. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js.map +0 -1
  290. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +0 -2
  291. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js.map +0 -1
  292. package/cjs-bundle/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +0 -2
  293. package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +0 -2
  294. package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js.map +0 -1
  295. package/cjs-bundle/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +0 -2
  296. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +0 -2
  297. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js.map +0 -1
  298. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js +0 -2
  299. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js.map +0 -1
  300. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +0 -2
  301. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/MultiSelect.js.map +0 -1
  302. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +0 -2
  303. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js.map +0 -1
  304. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +0 -2
  305. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/RadiusInput.js.map +0 -1
  306. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +0 -2
  307. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/SingleSelect.js.map +0 -1
  308. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/WellSection.js +0 -2
  309. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/WellSection.js.map +0 -1
  310. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.js +0 -2
  311. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.js.map +0 -1
  312. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js +0 -2
  313. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js.map +0 -1
  314. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +0 -2
  315. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +0 -1
  316. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +0 -2
  317. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js.map +0 -1
  318. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +0 -2
  319. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +0 -1
  320. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +0 -2
  321. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js.map +0 -1
  322. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +0 -2
  323. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +0 -1
  324. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +0 -2
  325. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js.map +0 -1
  326. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +0 -2
  327. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js.map +0 -1
  328. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +0 -2
  329. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +0 -1
  330. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +0 -2
  331. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +0 -1
  332. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +0 -2
  333. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js.map +0 -1
  334. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +0 -2
  335. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +0 -1
  336. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +0 -2
  337. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js.map +0 -1
  338. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +0 -2
  339. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js.map +0 -1
  340. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +0 -2
  341. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js.map +0 -1
  342. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +0 -2
  343. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js.map +0 -1
  344. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +0 -2
  345. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js.map +0 -1
  346. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +0 -2
  347. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +0 -1
  348. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js +0 -2
  349. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js.map +0 -1
  350. package/cjs-bundle/components/OffsetWellPickerV4/constants.js +0 -2
  351. package/cjs-bundle/components/OffsetWellPickerV4/constants.js.map +0 -1
  352. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js +0 -2
  353. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAdvancedWells.js.map +0 -1
  354. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAssetsData.js +0 -2
  355. package/cjs-bundle/components/OffsetWellPickerV4/effects/useAssetsData.js.map +0 -1
  356. package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js +0 -2
  357. package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js.map +0 -1
  358. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanies.js +0 -2
  359. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanies.js.map +0 -1
  360. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +0 -2
  361. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js.map +0 -1
  362. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyProvider.js +0 -2
  363. package/cjs-bundle/components/OffsetWellPickerV4/effects/useCompanyProvider.js.map +0 -1
  364. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFetchWells.js +0 -2
  365. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFetchWells.js.map +0 -1
  366. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilterOptions.js +0 -2
  367. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilterOptions.js.map +0 -1
  368. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js +0 -2
  369. package/cjs-bundle/components/OffsetWellPickerV4/effects/useFilteredWells.js.map +0 -1
  370. package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js +0 -2
  371. package/cjs-bundle/components/OffsetWellPickerV4/effects/useSortedWells.js.map +0 -1
  372. package/cjs-bundle/components/OffsetWellPickerV4/effects/useTableColumns.js +0 -2
  373. package/cjs-bundle/components/OffsetWellPickerV4/effects/useTableColumns.js.map +0 -1
  374. package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js +0 -2
  375. package/cjs-bundle/components/OffsetWellPickerV4/utils/apiCalls.js.map +0 -1
  376. package/cjs-bundle/components/OffsetWellPickerV4/utils/index.js +0 -2
  377. package/cjs-bundle/components/OffsetWellPickerV4/utils/index.js.map +0 -1
  378. package/cjs-bundle/components/OffsetWellPickerV4/utils/timePeriod.js +0 -2
  379. package/cjs-bundle/components/OffsetWellPickerV4/utils/timePeriod.js.map +0 -1
  380. package/cjs-bundle/components/OffsetWellPickerV4/utils/unitSystem.js +0 -2
  381. package/cjs-bundle/components/OffsetWellPickerV4/utils/unitSystem.js.map +0 -1
  382. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +0 -2
  383. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +0 -1
  384. package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +0 -2
  385. package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js.map +0 -1
  386. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +0 -2
  387. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js.map +0 -1
  388. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +0 -2
  389. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js.map +0 -1
  390. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +0 -2
  391. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js.map +0 -1
  392. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +0 -2
  393. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js.map +0 -1
  394. package/components/OffsetWellPickerV4/components/Filter/Filter.js +0 -2
  395. package/components/OffsetWellPickerV4/components/Filter/Filter.js.map +0 -1
  396. package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js +0 -2
  397. package/components/OffsetWellPickerV4/components/Filter/Filter.module.css.js.map +0 -1
  398. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js +0 -2
  399. package/components/OffsetWellPickerV4/components/Filter/MultiSelect.js.map +0 -1
  400. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js +0 -2
  401. package/components/OffsetWellPickerV4/components/Filter/PeriodSelect.js.map +0 -1
  402. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js +0 -2
  403. package/components/OffsetWellPickerV4/components/Filter/RadiusInput.js.map +0 -1
  404. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js +0 -2
  405. package/components/OffsetWellPickerV4/components/Filter/SingleSelect.js.map +0 -1
  406. package/components/OffsetWellPickerV4/components/Filter/WellSection.js +0 -2
  407. package/components/OffsetWellPickerV4/components/Filter/WellSection.js.map +0 -1
  408. package/components/OffsetWellPickerV4/components/Map/WellsMap.js +0 -2
  409. package/components/OffsetWellPickerV4/components/Map/WellsMap.js.map +0 -1
  410. package/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js +0 -2
  411. package/components/OffsetWellPickerV4/components/Map/WellsMap.module.css.js.map +0 -1
  412. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +0 -2
  413. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +0 -1
  414. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +0 -2
  415. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js.map +0 -1
  416. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +0 -2
  417. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +0 -1
  418. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js +0 -2
  419. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AssetTypesSection.js.map +0 -1
  420. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +0 -2
  421. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +0 -1
  422. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js +0 -2
  423. package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js.map +0 -1
  424. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js +0 -2
  425. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSelect.js.map +0 -1
  426. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +0 -2
  427. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +0 -1
  428. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +0 -2
  429. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +0 -1
  430. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +0 -2
  431. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js.map +0 -1
  432. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +0 -2
  433. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js.map +0 -1
  434. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +0 -2
  435. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js.map +0 -1
  436. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +0 -2
  437. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js.map +0 -1
  438. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +0 -2
  439. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js.map +0 -1
  440. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js +0 -2
  441. package/components/OffsetWellPickerV4/components/OffsetWellsTable/SubjectWellMark.js.map +0 -1
  442. package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js +0 -2
  443. package/components/OffsetWellPickerV4/components/OffsetWellsTable/ViewWellSectionsName.js.map +0 -1
  444. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +0 -2
  445. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +0 -1
  446. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js +0 -2
  447. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.module.css.js.map +0 -1
  448. package/components/OffsetWellPickerV4/constants.js +0 -2
  449. package/components/OffsetWellPickerV4/constants.js.map +0 -1
  450. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js +0 -2
  451. package/components/OffsetWellPickerV4/effects/useAdvancedWells.js.map +0 -1
  452. package/components/OffsetWellPickerV4/effects/useAssetsData.js +0 -2
  453. package/components/OffsetWellPickerV4/effects/useAssetsData.js.map +0 -1
  454. package/components/OffsetWellPickerV4/effects/useBicWells.js +0 -2
  455. package/components/OffsetWellPickerV4/effects/useBicWells.js.map +0 -1
  456. package/components/OffsetWellPickerV4/effects/useCompanies.js +0 -2
  457. package/components/OffsetWellPickerV4/effects/useCompanies.js.map +0 -1
  458. package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js +0 -2
  459. package/components/OffsetWellPickerV4/effects/useCompanyMetricKey.js.map +0 -1
  460. package/components/OffsetWellPickerV4/effects/useCompanyProvider.js +0 -2
  461. package/components/OffsetWellPickerV4/effects/useCompanyProvider.js.map +0 -1
  462. package/components/OffsetWellPickerV4/effects/useFetchWells.js +0 -2
  463. package/components/OffsetWellPickerV4/effects/useFetchWells.js.map +0 -1
  464. package/components/OffsetWellPickerV4/effects/useFilterOptions.js +0 -2
  465. package/components/OffsetWellPickerV4/effects/useFilterOptions.js.map +0 -1
  466. package/components/OffsetWellPickerV4/effects/useFilteredWells.js +0 -2
  467. package/components/OffsetWellPickerV4/effects/useFilteredWells.js.map +0 -1
  468. package/components/OffsetWellPickerV4/effects/useSortedWells.js +0 -2
  469. package/components/OffsetWellPickerV4/effects/useSortedWells.js.map +0 -1
  470. package/components/OffsetWellPickerV4/effects/useTableColumns.js +0 -2
  471. package/components/OffsetWellPickerV4/effects/useTableColumns.js.map +0 -1
  472. package/components/OffsetWellPickerV4/utils/apiCalls.js +0 -2
  473. package/components/OffsetWellPickerV4/utils/apiCalls.js.map +0 -1
  474. package/components/OffsetWellPickerV4/utils/index.js +0 -2
  475. package/components/OffsetWellPickerV4/utils/index.js.map +0 -1
  476. package/components/OffsetWellPickerV4/utils/timePeriod.js +0 -2
  477. package/components/OffsetWellPickerV4/utils/timePeriod.js.map +0 -1
  478. package/components/OffsetWellPickerV4/utils/unitSystem.js +0 -2
  479. package/components/OffsetWellPickerV4/utils/unitSystem.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useSortedWells.js","sources":["../../../../src/components/OffsetWellPickerV5/effects/useSortedWells.js"],"sourcesContent":["import { useState, useMemo, useEffect } from 'react';\nimport { isEmpty } from 'lodash';\nimport { SortDirection } from 'react-virtualized';\n\nimport { ColumnType } from '../constants';\n\nconst sortFunction = (array, sortBy, sortDirection) => {\n const newArray = [...array];\n const isLastActiveSort = sortBy === ColumnType.lastActive;\n newArray.sort((a, b) => {\n const aVal = a[sortBy];\n const bVal = b[sortBy];\n\n const isANull = !aVal || (typeof aVal === 'string' && aVal.toLowerCase() === 'null');\n const isBNull = !bVal || (typeof bVal === 'string' && bVal.toLowerCase() === 'null');\n\n if (isANull && (aVal !== 0 || isLastActiveSort)) return 1;\n if (isBNull && (bVal !== 0 || isLastActiveSort)) return -1;\n\n if (typeof aVal === 'string' && typeof bVal === 'string') {\n return sortDirection === SortDirection.ASC\n ? aVal.localeCompare(bVal)\n : bVal.localeCompare(aVal);\n }\n\n if (sortDirection === SortDirection.ASC) return aVal >= bVal ? 1 : -1;\n return bVal >= aVal ? 1 : -1;\n });\n return newArray;\n};\n\nexport const useSortedWells = (subjectWell, expandedWells, selectedWells, setIsTableLoading) => {\n const [sortBy, setSortBy] = useState(ColumnType.distance);\n const [sortDirection, setSortDirection] = useState(SortDirection.ASC);\n\n const sortedWells = useMemo(() => {\n if (!expandedWells) {\n return null;\n }\n\n const selectedWellIdsSet = new Set(selectedWells.map(({ id }) => id));\n const restSelectedWells = selectedWells.filter(well => well.id !== subjectWell?.id);\n const sortedSelectedWells = sortFunction(restSelectedWells, sortBy, sortDirection);\n\n const restWells = expandedWells.filter(well => !selectedWellIdsSet.has(well.id));\n const sortedWells = sortFunction(restWells, sortBy, sortDirection);\n\n const combinedWells = (!isEmpty(subjectWell) ? [subjectWell] : [])\n .concat(sortedSelectedWells)\n .concat(sortedWells);\n\n return combinedWells.map(well => ({\n ...well,\n checked: selectedWellIdsSet.has(well.id),\n }));\n }, [expandedWells, sortBy, sortDirection, subjectWell, selectedWells]);\n\n useEffect(() => {\n if (sortedWells !== null) {\n setIsTableLoading(false);\n }\n }, [sortedWells, setIsTableLoading]);\n\n return [sortBy, setSortBy, sortDirection, setSortDirection, sortedWells];\n};\n"],"names":["sortFunction","array","sortBy","sortDirection","newArray","isLastActiveSort","ColumnType","lastActive","sort","a","b","aVal","bVal","isANull","toLowerCase","isBNull","SortDirection","ASC","localeCompare","useSortedWells","subjectWell","expandedWells","selectedWells","setIsTableLoading","_useState","useState","distance","_useState2","_slicedToArray","setSortBy","_useState3","_useState4","setSortDirection","sortedWells","useMemo","selectedWellIdsSet","Set","map","_ref","id","restSelectedWells","filter","well","sortedSelectedWells","restWells","has","isEmpty","concat","_objectSpread","checked","useEffect"],"mappings":"65BAMA,IAAMA,EAAe,SAACC,EAAOC,EAAQC,GACnC,IAAMC,EAAeH,EAAAA,GACfI,EAAmBH,IAAWI,EAAWC,WAoB/C,OAnBAH,EAASI,MAAK,SAACC,EAAGC,GAChB,IAAMC,EAAOF,EAAEP,GACTU,EAAOF,EAAER,GAETW,GAAWF,GAAyB,iBAATA,GAA4C,SAAvBA,EAAKG,cACrDC,GAAWH,GAAyB,iBAATA,GAA4C,SAAvBA,EAAKE,cAE3D,OAAID,IAAqB,IAATF,GAAcN,GAA0B,EACpDU,IAAqB,IAATH,GAAcP,IAA2B,EAErC,iBAATM,GAAqC,iBAATC,EAC9BT,IAAkBa,EAAcC,IACnCN,EAAKO,cAAcN,GACnBA,EAAKM,cAAcP,GAGrBR,IAAkBa,EAAcC,IAAYN,GAAQC,EAAO,GAAK,EAC7DA,GAAQD,EAAO,GAAK,CAC7B,IACOP,CACT,EAEae,EAAiB,SAACC,EAAaC,EAAeC,EAAeC,GACxE,IAAAC,EAA4BC,EAASnB,EAAWoB,UAASC,EAAAC,EAAAJ,EAAA,GAAlDtB,EAAMyB,EAAA,GAAEE,EAASF,EAAA,GACxBG,EAA0CL,EAAST,EAAcC,KAAIc,EAAAH,EAAAE,EAAA,GAA9D3B,EAAa4B,EAAA,GAAEC,EAAgBD,EAAA,GAEhCE,EAAcC,GAAQ,WAC1B,IAAKb,EACH,OAAO,KAGT,IAAMc,EAAqB,IAAIC,IAAId,EAAce,KAAI,SAAAC,GAAK,SAAFC,EAAW,KAC7DC,EAAoBlB,EAAcmB,QAAO,SAAAC,GAAI,OAAIA,EAAKH,MAAOnB,aAAW,EAAXA,EAAamB,OAC1EI,EAAsB3C,EAAawC,EAAmBtC,EAAQC,GAE9DyC,EAAYvB,EAAcoB,QAAO,SAAAC,GAAI,OAAKP,EAAmBU,IAAIH,EAAKH,OACtEN,EAAcjC,EAAa4C,EAAW1C,EAAQC,GAMpD,OAJwB2C,EAAQ1B,GAA+B,GAAhB,CAACA,IAC7C2B,OAAOJ,GACPI,OAAOd,GAEWI,KAAI,SAAAK,GAAI,OAAAM,EAAAA,EAAA,CAAA,EACxBN,GAAI,CAAA,EAAA,CACPO,QAASd,EAAmBU,IAAIH,EAAKH,KAAG,GAE5C,GAAG,CAAClB,EAAenB,EAAQC,EAAeiB,EAAaE,IAQvD,OANA4B,GAAU,WACY,OAAhBjB,GACFV,GAAkB,EAEtB,GAAG,CAACU,EAAaV,IAEV,CAACrB,EAAQ2B,EAAW1B,EAAe6B,EAAkBC,EAC9D"}
1
+ {"version":3,"file":"useSortedWells.js","sources":["../../../../src/components/OffsetWellPickerV5/effects/useSortedWells.js"],"sourcesContent":["import { useState, useMemo, useEffect } from 'react';\nimport { isEmpty } from 'lodash';\nimport { SortDirection } from 'react-virtualized';\n\nimport { ColumnType } from '../constants';\n\nconst sortFunction = (array, sortBy, sortDirection) => {\n const newArray = [...array];\n const isLastActiveSort = sortBy === ColumnType.lastActive;\n newArray.sort((a, b) => {\n const aVal = a[sortBy];\n const bVal = b[sortBy];\n\n const isANull = !aVal || (typeof aVal === 'string' && aVal.toLowerCase() === 'null');\n const isBNull = !bVal || (typeof bVal === 'string' && bVal.toLowerCase() === 'null');\n\n if (isANull && (aVal !== 0 || isLastActiveSort)) return 1;\n if (isBNull && (bVal !== 0 || isLastActiveSort)) return -1;\n\n if (typeof aVal === 'string' && typeof bVal === 'string') {\n return sortDirection === SortDirection.ASC\n ? aVal.localeCompare(bVal)\n : bVal.localeCompare(aVal);\n }\n\n if (sortDirection === SortDirection.ASC) return aVal >= bVal ? 1 : -1;\n return bVal >= aVal ? 1 : -1;\n });\n return newArray;\n};\n\nexport const useSortedWells = (subjectWell, expandedWells, selectedWells, setIsTableLoading) => {\n const [sortBy, setSortBy] = useState(ColumnType.distance);\n const [sortDirection, setSortDirection] = useState(SortDirection.ASC);\n\n const sortedWells = useMemo(() => {\n if (!expandedWells) {\n return null;\n }\n\n const selectedWellIdsSet = new Set(selectedWells.map(({ id }) => id));\n\n // Create lookup for enriched wells from expandedWells (has fresh metrics)\n const expandedWellsMap = new Map(expandedWells.map(w => [w.id, w]));\n\n // Get enriched versions of selected wells, falling back to original if not in expandedWells\n const enrichedSelectedWells = selectedWells\n .filter(well => well.id !== subjectWell?.id)\n .map(well => expandedWellsMap.get(well.id) || well);\n\n const sortedSelectedWells = sortFunction(enrichedSelectedWells, sortBy, sortDirection);\n\n const restWells = expandedWells.filter(well => !selectedWellIdsSet.has(well.id));\n const sortedWells = sortFunction(restWells, sortBy, sortDirection);\n\n const combinedWells = (!isEmpty(subjectWell) ? [subjectWell] : [])\n .concat(sortedSelectedWells)\n .concat(sortedWells);\n\n return combinedWells.map(well => ({\n ...well,\n checked: selectedWellIdsSet.has(well.id),\n }));\n }, [expandedWells, sortBy, sortDirection, subjectWell, selectedWells]);\n\n useEffect(() => {\n if (sortedWells !== null) {\n setIsTableLoading(false);\n }\n }, [sortedWells, setIsTableLoading]);\n\n return [sortBy, setSortBy, sortDirection, setSortDirection, sortedWells];\n};\n"],"names":["sortFunction","array","sortBy","sortDirection","newArray","isLastActiveSort","ColumnType","lastActive","sort","a","b","aVal","bVal","isANull","toLowerCase","isBNull","SortDirection","ASC","localeCompare","useSortedWells","subjectWell","expandedWells","selectedWells","setIsTableLoading","_useState","useState","distance","_useState2","_slicedToArray","setSortBy","_useState3","_useState4","setSortDirection","sortedWells","useMemo","selectedWellIdsSet","Set","map","_ref","id","expandedWellsMap","Map","w","enrichedSelectedWells","filter","well","get","sortedSelectedWells","restWells","has","isEmpty","concat","_objectSpread","checked","useEffect"],"mappings":"65BAMA,IAAMA,EAAe,SAACC,EAAOC,EAAQC,GACnC,IAAMC,EAAeH,EAAAA,GACfI,EAAmBH,IAAWI,EAAWC,WAoB/C,OAnBAH,EAASI,MAAK,SAACC,EAAGC,GAChB,IAAMC,EAAOF,EAAEP,GACTU,EAAOF,EAAER,GAETW,GAAWF,GAAyB,iBAATA,GAA4C,SAAvBA,EAAKG,cACrDC,GAAWH,GAAyB,iBAATA,GAA4C,SAAvBA,EAAKE,cAE3D,OAAID,IAAqB,IAATF,GAAcN,GAA0B,EACpDU,IAAqB,IAATH,GAAcP,IAA2B,EAErC,iBAATM,GAAqC,iBAATC,EAC9BT,IAAkBa,EAAcC,IACnCN,EAAKO,cAAcN,GACnBA,EAAKM,cAAcP,GAGrBR,IAAkBa,EAAcC,IAAYN,GAAQC,EAAO,GAAK,EAC7DA,GAAQD,EAAO,GAAK,CAC7B,IACOP,CACT,EAEae,EAAiB,SAACC,EAAaC,EAAeC,EAAeC,GACxE,IAAAC,EAA4BC,EAASnB,EAAWoB,UAASC,EAAAC,EAAAJ,EAAA,GAAlDtB,EAAMyB,EAAA,GAAEE,EAASF,EAAA,GACxBG,EAA0CL,EAAST,EAAcC,KAAIc,EAAAH,EAAAE,EAAA,GAA9D3B,EAAa4B,EAAA,GAAEC,EAAgBD,EAAA,GAEhCE,EAAcC,GAAQ,WAC1B,IAAKb,EACH,OAAO,KAGT,IAAMc,EAAqB,IAAIC,IAAId,EAAce,KAAI,SAAAC,GAAK,SAAFC,EAAW,KAG7DC,EAAmB,IAAIC,IAAIpB,EAAcgB,KAAI,SAAAK,GAAC,MAAI,CAACA,EAAEH,GAAIG,EAAE,KAG3DC,EAAwBrB,EAC3BsB,QAAO,SAAAC,GAAI,OAAIA,EAAKN,MAAOnB,aAAW,EAAXA,EAAamB,GAAE,IAC1CF,KAAI,SAAAQ,GAAI,OAAIL,EAAiBM,IAAID,EAAKN,KAAOM,KAE1CE,EAAsB/C,EAAa2C,EAAuBzC,EAAQC,GAElE6C,EAAY3B,EAAcuB,QAAO,SAAAC,GAAI,OAAKV,EAAmBc,IAAIJ,EAAKN,OACtEN,EAAcjC,EAAagD,EAAW9C,EAAQC,GAMpD,OAJwB+C,EAAQ9B,GAA+B,GAAhB,CAACA,IAC7C+B,OAAOJ,GACPI,OAAOlB,GAEWI,KAAI,SAAAQ,GAAI,OAAAO,EAAAA,EAAA,CAAA,EACxBP,GAAI,CAAA,EAAA,CACPQ,QAASlB,EAAmBc,IAAIJ,EAAKN,KAAG,GAE5C,GAAG,CAAClB,EAAenB,EAAQC,EAAeiB,EAAaE,IAQvD,OANAgC,GAAU,WACY,OAAhBrB,GACFV,GAAkB,EAEtB,GAAG,CAACU,EAAaV,IAEV,CAACrB,EAAQ2B,EAAW1B,EAAe6B,EAAkBC,EAC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterStoreProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAG9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAsB5D,CAAC"}
1
+ {"version":3,"file":"FilterStoreProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAK9C,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAO7D,KAAK,wBAAwB,GAAG,gBAAgB,GAAG;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAkC5D,CAAC"}
@@ -1,2 +1,2 @@
1
- import{jsx as r}from"react/jsx-runtime";import{useRef as e}from"react";import{isEqual as t}from"lodash";import{createFilterStore as i}from"./createFilterStore.js";import{FilterStoreContext as o}from"./FilterStoreContext.js";import{useSyncProps as l}from"../utils/useSyncProps.js";var s=function(s){var m=s.children,n=s.filters,u=e(null);if(!u.current){var f=null!=n?n:{};u.current=i({filters:f,defaultFilters:f})}return l(u.current,{filters:n},[{key:"filters",equals:t}]),r(o.Provider,{value:u.current,children:m})};s.displayName="FilterStoreProvider";export{s as FilterStoreProvider};
1
+ import{__assign as r}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{useRef as t}from"react";import{isEqual as i}from"lodash";import{getDefaultRadiusMiles as o}from"../../utils/getDefaultRadiusMiles.js";import{createFilterStore as s}from"./createFilterStore.js";import{FilterStoreContext as l}from"./FilterStoreContext.js";import{normalizeFilters as u}from"./utils/normalizeFilters.js";import{useSyncProps as m}from"../utils/useSyncProps.js";var a=function(a){var n,f=a.children,d=a.filters,c=t(null);if(!c.current){var p=o(),v=u(d),j=r(r({},v),{radius:null!==(n=null==v?void 0:v.radius)&&void 0!==n?n:p}),F={selectionMode:"radius",radius:p};c.current=s({filters:j,defaultFilters:F})}return m(c.current,{filters:d},[{key:"filters",equals:i,transform:u}]),e(l.Provider,{value:c.current,children:f})};a.displayName="FilterStoreProvider";export{a as FilterStoreProvider};
2
2
  //# sourceMappingURL=FilterStoreProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterStoreProvider.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,yBAAyB,0CAA6C;"}
@@ -0,0 +1,15 @@
1
+ import type { FilterState } from '../types';
2
+ /**
3
+ * Normalizes filter state to ensure consistency between selectionMode and polygonCoords.
4
+ *
5
+ * When selectionMode is 'lasso' but there's no valid polygon (undefined or < 3 coords),
6
+ * automatically resets selectionMode to 'radius' to prevent inconsistent state.
7
+ *
8
+ * This handles the case where a user:
9
+ * 1. Draws a polygon in lasso mode
10
+ * 2. Deletes the polygon
11
+ * 3. Saves/closes and reopens the modal
12
+ * On reopen, the persisted selectionMode would be 'lasso' with no polygon data.
13
+ */
14
+ export declare const normalizeFilters: (filters: FilterState | undefined) => FilterState | undefined;
15
+ //# sourceMappingURL=normalizeFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeFilters.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/stores/filter-store/utils/normalizeFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,UAAU,CAAC;AAM1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,GAAG,SAAS,KAAG,WAAW,GAAG,SAejF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{__assign as o}from'./../../../../../ext-esm/tslib/tslib.es6.js';var e=function(e){if(!e)return e;var r,s=e.selectionMode,n=e.polygonCoords;return"lasso"!==s||(r=n,Boolean(r&&r.length>=3))?e:o(o({},e),{selectionMode:"radius"})};export{e as normalizeFilters};
2
+ //# sourceMappingURL=normalizeFilters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,qBAAqB,4DAA+D;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,yBAAyB,6CAAgD;"}
@@ -0,0 +1,2 @@
1
+ export declare const getDefaultRadiusMiles: () => number;
2
+ //# sourceMappingURL=getDefaultRadiusMiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultRadiusMiles.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/getDefaultRadiusMiles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,QAAO,MAIxC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{DEFAULT_RADIUS_MILES as r,DEFAULT_RADIUS_KM as t}from"../constants.js";import{getIsImperial as m}from"./getIsImperial.js";import{convertValue as o}from"../../../utils/index.js";var i=function(){return m()?r:Number(o(t,"length","km","mi",3))};export{i as getDefaultRadiusMiles};
2
+ //# sourceMappingURL=getDefaultRadiusMiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultRadiusMiles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export function getIsImperial(): boolean;
1
+ export declare const getIsImperial: () => boolean;
2
2
  //# sourceMappingURL=getIsImperial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIsImperial.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/getIsImperial.js"],"names":[],"mappings":"AAEO,yCAGN"}
1
+ {"version":3,"file":"getIsImperial.d.ts","sourceRoot":"","sources":["../../../../src/components/OffsetWellPickerV5/utils/getIsImperial.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,QAAO,OAIhC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getIsImperial.js","sources":["../../../../src/components/OffsetWellPickerV5/utils/getIsImperial.js"],"sourcesContent":["import { getUnitPreference, getUnitDescription } from '~/utils';\n\nexport const getIsImperial = () => {\n const { system } = getUnitDescription(getUnitPreference('length'));\n return system === 'imperial';\n};\n"],"names":["getIsImperial","getUnitDescription","getUnitPreference","system"],"mappings":"oFAEaA,IAAAA,EAAgB,WAE3B,MAAkB,aADCC,EAAmBC,EAAkB,WAAhDC,MAEV"}
1
+ {"version":3,"file":"getIsImperial.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/regenerator";import{useReducer as n,useEffect as i}from"react";import{func as r,shape as p,number as m,string as c,oneOf as a}from"prop-types";import{isEmpty as l,get as d,last as j,isNull as u,noop as C,range as A}from"lodash";import{makeStyles as S,Dialog as g,DialogTitle as V,DialogContent as I,Grid as h,FormControl as D,InputLabel as v,Select as f,MenuItem as b,Checkbox as T,ListItemText as P,Typography as x,FormLabel as E,RadioGroup as F,FormControlLabel as y,Radio as L,DialogActions as B,Button as k}from"@material-ui/core";import{getAppStorage as W}from"../../clients/jsonApi/index.js";import{jsxs as O,Fragment as M,jsx as H}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"classnames";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/Lasso.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";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"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import w from"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/OffsetWellPickerV5WithStore.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../OffsetWellMap/OffsetWellMap.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker.js";import"./OffsetAssetChip.js";import"./OffsetAssetsListExpander.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";function G(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function q(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?G(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):G(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var R,N=S({dialogPaper:{width:"75%",maxWidth:420}}),_=(R=o(s.mark((function e(t,o){var n,i;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,W("corva","completion.wits",t,{limit:1,sort:"{timestamp:-1}"});case 3:n=e.sent,i=l(n)?null:d(j(n),"stage_number",null),o({type:"SUCCESS",lastStageNumber:i}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),o({type:"FAILURE",error:e.t0.message});case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t){return R.apply(this,arguments)}),U=function(e,t){switch(t.type){case"FETCH_STAGES":return q(q({},e),{},{requestState:"pending"});case"SUCCESS":return q(q({},e),{},{requestState:"success",lastStageNumber:t.lastStageNumber});case"FAILURE":return q(q({},e),{},{requestState:"failure",error:t.error});default:return e}},z=function(e,o){switch(o.type){case"OPEN_DIALOG":return q(q({},e),{},{dialogState:"open"});case"CLOSE_DIALOG":return q(q({},e),{},{dialogState:"closed"});case"SET_SELECTED_STAGES":return q(q({},e),{},{selectedStages:o.selectedStages,stagesData:o.selectedStages.reduce((function(e,o){return q(q({},e),{},t({},o,{lineStyle:"dotted",lineWidth:2}))}),{})});case"SET_SELECTED_LINE_STYLE":return q(q({},e),{},{stagesData:q(q({},e.stagesData),{},t({},o.stage,q(q({},e.stagesData[o.stage]),{},{lineStyle:o.selectedLineStyle})))});case"SET_SELECTED_LINE_WIDTH":return q(q({},e),{},{stagesData:q(q({},e.stagesData),{},t({},o.stage,q(q({},e.stagesData[o.stage]),{},{lineWidth:Number(o.selectedLineWidth)})))});default:return e}},Z=function(t){var o=t.onSave,s=t.onDelete,r=t.offset,p=N(),m=n(U,{requestState:"idle",lastStageNumber:null,error:null}),c=e(m,2),a=c[0],l=c[1],j=n(z,{dialogState:"closed",selectedStages:r.selectedStages||[],stagesData:r.stages||{}}),S=e(j,2),W=S[0],G=S[1],R=function(e){return function(t){G({type:"SET_SELECTED_LINE_STYLE",stage:e,selectedLineStyle:t.target.value})}},Z=function(e){return function(t){G({type:"SET_SELECTED_LINE_WIDTH",stage:e,selectedLineWidth:t.target.value})}},X=function(){G({type:"CLOSE_DIALOG"})},Y=r.selectedWellId;i((function(){l({type:"FETCH_STAGES"}),_(Y,l)}),[Y]);var J=u(a.lastStageNumber);return O(M,{children:[H(w,{title:r.selectedWellName,onClick:J?C:function(){G({type:"OPEN_DIALOG"})},onRemoveOffsetWell:s,wellId:Y,rigName:""}),"success"===a.requestState&&O(g,{open:"open"===W.dialogState,onBackdropClick:X,classes:{paper:p.dialogPaper},children:[H(V,{children:"Offset Well Stages"}),H(I,{children:O(h,{container:!0,direction:"column",spacing:2,children:[H(h,{item:!0,children:O(D,{margin:"normal",fullWidth:!0,required:!0,children:[H(v,{htmlFor:"stages-multi-select",children:"Stages"}),H(f,{inputProps:{name:"stages",id:"stages-multi-select"},value:W.selectedStages,renderValue:function(e){return"".concat(e.length," stages selected")},onChange:function(e){G({type:"SET_SELECTED_STAGES",selectedStages:e.target.value})},multiple:!0,children:A(1,a.lastStageNumber+1).map((function(e){return O(b,{value:e,children:[H(T,{checked:W.selectedStages.includes(e)}),H(P,{primary:e})]},e)}))})]})}),W.selectedStages.sort((function(e,t){return e-t})).map((function(e){return O(h,{item:!0,children:[O(x,{variant:"subtitle1",children:["Stage ",e]}),O(D,{component:"fieldset",children:[H(E,{component:"legend",required:!0,children:"Line Style"}),O(F,{name:"line-style",value:d(W.stagesData,[e,"lineStyle"],"dotted"),onChange:R(e),row:!0,children:[H(y,{value:"dotted",control:H(L,{}),label:"Dotted"}),H(y,{value:"dashed",control:H(L,{}),label:"Dashed"}),H(y,{value:"solid",control:H(L,{}),label:"Solid"})]})]}),O(D,{component:"fieldset",children:[H(E,{component:"legend",required:!0,children:"Line Width"}),O(F,{name:"line-width",value:String(d(W.stagesData,[e,"lineWidth"],"2")),onChange:Z(e),row:!0,children:[H(y,{value:String(1),control:H(L,{}),label:"Thin"}),H(y,{value:String(2),control:H(L,{}),label:"Normal"}),H(y,{value:String(4),control:H(L,{}),label:"Thick"})]})]})]},e)}))]})}),O(B,{children:[H(k,{onClick:X,children:"Cancel"}),H(k,{variant:"contained",color:"primary",onClick:function(){var e=q(q({},r),{},{stages:W.stagesData,selectedStages:W.selectedStages});X(),o(e)},children:"Save"})]})]})]})};Z.propTypes={onSave:r.isRequired,onDelete:r.isRequired,offset:p({selectedWellId:m,selectedWellName:c,selectedWellStatus:a(["active","idle","complete","paused","unknown"])}).isRequired};export{Z as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/asyncToGenerator";import s from"@babel/runtime/regenerator";import{useReducer as n,useEffect as i}from"react";import{func as r,shape as p,number as m,string as c,oneOf as a}from"prop-types";import{isEmpty as l,get as d,last as j,isNull as u,noop as C,range as A}from"lodash";import{makeStyles as S,Dialog as g,DialogTitle as V,DialogContent as I,Grid as h,FormControl as D,InputLabel as v,Select as b,MenuItem as T,Checkbox as P,ListItemText as f,Typography as E,FormLabel as x,RadioGroup as F,FormControlLabel as y,Radio as L,DialogActions as B,Button as M}from"@material-ui/core";import{getAppStorage as k}from"../../clients/jsonApi/index.js";import{jsxs as W,Fragment as H,jsx as O}from"react/jsx-runtime";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"classnames";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/Lasso.js";import"../../utils/mobileDetect.js";import"../IconButton/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../Modal/CorvaModal.css.js";import"uuid";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";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"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import w from"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/OffsetWellPickerV5WithStore.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker.js";import"./OffsetAssetChip.js";import"./OffsetAssetsListExpander.js";import"../PadOffsetsPickerV2/PadOffsetsPickerV2.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";function G(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function q(e){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?G(Object(s),!0).forEach((function(o){t(e,o,s[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):G(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}var R,N=S({dialogPaper:{width:"75%",maxWidth:420}}),_=(R=o(s.mark((function e(t,o){var n,i;return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,k("corva","completion.wits",t,{limit:1,sort:"{timestamp:-1}"});case 3:n=e.sent,i=l(n)?null:d(j(n),"stage_number",null),o({type:"SUCCESS",lastStageNumber:i}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),o({type:"FAILURE",error:e.t0.message});case 11:case"end":return e.stop()}}),e,null,[[0,8]])}))),function(e,t){return R.apply(this,arguments)}),U=function(e,t){switch(t.type){case"FETCH_STAGES":return q(q({},e),{},{requestState:"pending"});case"SUCCESS":return q(q({},e),{},{requestState:"success",lastStageNumber:t.lastStageNumber});case"FAILURE":return q(q({},e),{},{requestState:"failure",error:t.error});default:return e}},z=function(e,o){switch(o.type){case"OPEN_DIALOG":return q(q({},e),{},{dialogState:"open"});case"CLOSE_DIALOG":return q(q({},e),{},{dialogState:"closed"});case"SET_SELECTED_STAGES":return q(q({},e),{},{selectedStages:o.selectedStages,stagesData:o.selectedStages.reduce((function(e,o){return q(q({},e),{},t({},o,{lineStyle:"dotted",lineWidth:2}))}),{})});case"SET_SELECTED_LINE_STYLE":return q(q({},e),{},{stagesData:q(q({},e.stagesData),{},t({},o.stage,q(q({},e.stagesData[o.stage]),{},{lineStyle:o.selectedLineStyle})))});case"SET_SELECTED_LINE_WIDTH":return q(q({},e),{},{stagesData:q(q({},e.stagesData),{},t({},o.stage,q(q({},e.stagesData[o.stage]),{},{lineWidth:Number(o.selectedLineWidth)})))});default:return e}},Z=function(t){var o=t.onSave,s=t.onDelete,r=t.offset,p=N(),m=n(U,{requestState:"idle",lastStageNumber:null,error:null}),c=e(m,2),a=c[0],l=c[1],j=n(z,{dialogState:"closed",selectedStages:r.selectedStages||[],stagesData:r.stages||{}}),S=e(j,2),k=S[0],G=S[1],R=function(e){return function(t){G({type:"SET_SELECTED_LINE_STYLE",stage:e,selectedLineStyle:t.target.value})}},Z=function(e){return function(t){G({type:"SET_SELECTED_LINE_WIDTH",stage:e,selectedLineWidth:t.target.value})}},X=function(){G({type:"CLOSE_DIALOG"})},Y=r.selectedWellId;i((function(){l({type:"FETCH_STAGES"}),_(Y,l)}),[Y]);var J=u(a.lastStageNumber);return W(H,{children:[O(w,{title:r.selectedWellName,onClick:J?C:function(){G({type:"OPEN_DIALOG"})},onRemoveOffsetWell:s,wellId:Y,rigName:""}),"success"===a.requestState&&W(g,{open:"open"===k.dialogState,onBackdropClick:X,classes:{paper:p.dialogPaper},children:[O(V,{children:"Offset Well Stages"}),O(I,{children:W(h,{container:!0,direction:"column",spacing:2,children:[O(h,{item:!0,children:W(D,{margin:"normal",fullWidth:!0,required:!0,children:[O(v,{htmlFor:"stages-multi-select",children:"Stages"}),O(b,{inputProps:{name:"stages",id:"stages-multi-select"},value:k.selectedStages,renderValue:function(e){return"".concat(e.length," stages selected")},onChange:function(e){G({type:"SET_SELECTED_STAGES",selectedStages:e.target.value})},multiple:!0,children:A(1,a.lastStageNumber+1).map((function(e){return W(T,{value:e,children:[O(P,{checked:k.selectedStages.includes(e)}),O(f,{primary:e})]},e)}))})]})}),k.selectedStages.sort((function(e,t){return e-t})).map((function(e){return W(h,{item:!0,children:[W(E,{variant:"subtitle1",children:["Stage ",e]}),W(D,{component:"fieldset",children:[O(x,{component:"legend",required:!0,children:"Line Style"}),W(F,{name:"line-style",value:d(k.stagesData,[e,"lineStyle"],"dotted"),onChange:R(e),row:!0,children:[O(y,{value:"dotted",control:O(L,{}),label:"Dotted"}),O(y,{value:"dashed",control:O(L,{}),label:"Dashed"}),O(y,{value:"solid",control:O(L,{}),label:"Solid"})]})]}),W(D,{component:"fieldset",children:[O(x,{component:"legend",required:!0,children:"Line Width"}),W(F,{name:"line-width",value:String(d(k.stagesData,[e,"lineWidth"],"2")),onChange:Z(e),row:!0,children:[O(y,{value:String(1),control:O(L,{}),label:"Thin"}),O(y,{value:String(2),control:O(L,{}),label:"Normal"}),O(y,{value:String(4),control:O(L,{}),label:"Thick"})]})]})]},e)}))]})}),W(B,{children:[O(M,{onClick:X,children:"Cancel"}),O(M,{variant:"contained",color:"primary",onClick:function(){var e=q(q({},r),{},{stages:k.stagesData,selectedStages:k.selectedStages});X(),o(e)},children:"Save"})]})]})]})};Z.propTypes={onSave:r.isRequired,onDelete:r.isRequired,offset:p({selectedWellId:m,selectedWellName:c,selectedWellStatus:a(["active","idle","complete","paused","unknown"])}).isRequired};export{Z as default};
2
2
  //# sourceMappingURL=StagesSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"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"}
1
+ {"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"u5sBA2BA,IAOyBA,EAPnBC,EAAYC,EAAW,CAC3BC,YAAa,CACXC,MAAO,MACPC,SAAU,OAIRC,GAAmBN,EAAAO,EAAAC,EAAAC,MAAA,SAAAC,EAAOC,EAAcC,GAAQ,IAAAC,EAAAC,EAAA,OAAAN,EAAAO,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAE3BC,EAAc,QAAS,kBAAmBR,EAAc,CAC7ES,MAAO,EACPC,KAAM,mBACN,KAAA,EAHIR,EAAQG,EAAAM,KAIRR,EAAkBS,EAAQV,GAAY,KAAOW,EAAIC,EAAKZ,GAAW,eAAgB,MACvFD,EAAS,CAAEc,KAAM,UAAWZ,gBAAAA,IAAmBE,EAAAE,KAAA,GAAA,MAAA,KAAA,EAAAF,EAAAC,KAAA,EAAAD,EAAAW,GAAAX,EAAA,MAAA,GAE/CJ,EAAS,CAAEc,KAAM,UAAWE,MAAOZ,EAAMa,GAAAA,UAAW,KAAA,GAAA,IAAA,MAAA,OAAAb,EAAAc,OAAA,GAAApB,EAAA,KAAA,CAAA,CAAA,EAAA,IAEvD,KAAA,SAXqBqB,EAAAC,GAAA,OAAAhC,EAAAiC,MAAAC,KAAAC,UAAA,GAahBC,EAAqB,SAACC,EAAOC,GACjC,OAAQA,EAAOZ,MACb,IAAK,eACH,OAAAa,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,YACnC,IAAK,UACH,OAAAD,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,UAAW1B,gBAAiBwB,EAAOxB,kBACtE,IAAK,UACH,OAAAyB,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,UAAWZ,MAAOU,EAAOV,QAC5D,QACE,OAAOS,EAEb,EAEMI,EAAqB,SAACJ,EAAOC,GACjC,OAAQA,EAAOZ,MACb,IAAK,cACH,OAAAa,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEK,YAAa,SAClC,IAAK,eACH,OAAAH,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEK,YAAa,WAClC,IAAK,sBACH,OAAAH,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRM,eAAgBL,EAAOK,eACvBC,WAAYN,EAAOK,eAAeE,QAChC,SAACC,EAAQC,GAAK,OACTD,EAAAA,EAAAA,GAAAA,GACFC,GAAAA,EAAAA,CAAAA,EAAAA,EAAQ,CACPC,UAAW,SACXC,UAAW,IAEb,GACF,MAGN,IAAK,0BACH,OAAAV,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRO,kBACKP,EAAMO,YAAU,CAAA,EAAAM,EAAA,GAClBZ,EAAOS,MACHV,EAAAA,EAAAA,CAAAA,EAAAA,EAAMO,WAAWN,EAAOS,QAAM,GAAA,CACjCC,UAAWV,EAAOa,wBAI1B,IAAK,0BACH,OAAAZ,EAAAA,EAAA,CAAA,EACKF,GAAK,CAAA,EAAA,CACRO,kBACKP,EAAMO,YAAU,CAAA,EAAAM,EAAA,GAClBZ,EAAOS,MACHV,EAAAA,EAAAA,CAAAA,EAAAA,EAAMO,WAAWN,EAAOS,QAAM,GAAA,CACjCE,UAAWG,OAAOd,EAAOe,yBAIjC,QACE,OAAOhB,EAEb,EAEMiB,EAAiB,SAAkCC,GAAA,IAA/BC,IAAAA,OAAQC,IAAAA,SAAUC,IAAAA,OACpCC,EAAU1D,IAEwB2D,EAAAA,EAAWxB,EAAoB,CACrEI,aAAc,OACd1B,gBAAiB,KACjBc,MAAO,OACPiC,EAAAC,EAAAC,EAAA,GAJKvB,EAAYqB,EAAA,GAAEG,EAAeH,EAAA,GAMED,EAAAA,EAAWnB,EAAoB,CACnEC,YAAa,SACbC,eAAgBe,EAAOf,gBAAkB,GACzCC,WAAYc,EAAOZ,QAAU,CAAC,IAC9BmB,EAAAH,EAAAI,EAAA,GAJKxB,EAAWuB,EAAA,GAAEE,EAAcF,EAAA,GAU5BG,EAAwB,SAAArB,GAAK,OAAI,SAAAsB,GACrCF,EAAe,CACbzC,KAAM,0BACNqB,MAAAA,EACAI,kBAAmBkB,EAAMC,OAAOC,QAEnC,EAEKC,EAAwB,SAAAzB,GAAK,OAAI,SAAAsB,GACrCF,EAAe,CACbzC,KAAM,0BACNqB,MAAAA,EACAM,kBAAmBgB,EAAMC,OAAOC,QAEnC,EAMKE,EAAc,WAClBN,EAAe,CAAEzC,KAAM,kBAGnBf,EAAe+C,EAAOgB,eAa5BC,GAAU,WACRX,EAAgB,CAAEtC,KAAM,iBACxBpB,EAAiBK,EAAcqD,EACjC,GAAG,CAACrD,IAEJ,IAAMiE,EAAmBC,EAAOrC,EAAa1B,iBAE7C,OACEgE,EAAAC,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAc,CACbC,MAAOzB,EAAO0B,iBACdC,QAAST,EAAmBU,EAhCf,WACjBnB,EAAe,CAAEzC,KAAM,iBAgCnB6D,mBAAoB9B,EACpB+B,OAAQ7E,EACR8E,QAAQ,KAGqB,YAA9BjD,EAAaA,cACZsC,EAACY,EAAM,CACLC,KAAkC,SAA5BjD,EAAYA,YAClBkD,gBAAiBnB,EACjBd,QAAS,CAAEkC,MAAOlC,EAAQxD,aAAc6E,SAAA,CAExCC,EAACa,EAAW,CAAAd,SAAA,uBACZC,EAACc,EAAa,CAAAf,SACZF,EAACkB,EAAI,CAACC,WAAS,EAACC,UAAU,SAASC,QAAS,EAAEnB,SAAA,CAC5CC,EAACe,EAAI,CAACI,MAAI,EAAApB,SACRF,EAACuB,EAAW,CAACC,OAAO,SAASC,WAAS,EAACC,UAAQ,EAAAxB,SAAA,CAC7CC,EAACwB,EAAU,CAACC,QAAQ,sBAAqB1B,SAAA,WACzCC,EAAC0B,EAAM,CACLC,WAAY,CAAEC,KAAM,SAAUC,GAAI,uBAClCvC,MAAO7B,EAAYC,eACnBoE,YAAa,SAAAC,GAAQ,MAAOA,GAAAA,OAAAA,EAASC,OAAM,mBAAmB,EAC9DC,SA1ES,SAAA7C,GACzBF,EAAe,CAAEzC,KAAM,sBAAuBiB,eAAgB0B,EAAMC,OAAOC,SA0E3D4C,UAAQ,EAAAnC,SAEPoC,EAAM,EAAG5E,EAAa1B,gBAAkB,GAAGuG,KAAI,SAAAtE,GAAK,OACnD+B,EAACwC,EAAQ,CAAa/C,MAAOxB,EAAMiC,SAAA,CACjCC,EAACsC,EAAQ,CAACC,QAAS9E,EAAYC,eAAe8E,SAAS1E,KACvDkC,EAACyC,EAAY,CAACC,QAAS5E,MAFVA,aAQtBL,EAAYC,eACVtB,MAAK,SAACuG,EAAGC,GAAC,OAAKD,EAAIC,CAAC,IACpBR,KAAI,SAAAtE,GAAK,OACR+B,EAACkB,EAAI,CAACI,MAAI,EAAApB,SAAA,CACRF,EAACgD,EAAU,CAACC,QAAQ,YAAW/C,SAAA,CAAA,SAAQjC,KACvC+B,EAACuB,EAAW,CAAC2B,UAAU,WAAUhD,SAAA,CAC/BC,EAACgD,EAAS,CAACD,UAAU,SAASxB,UAAQ,EAAAxB,SAAA,eAGtCF,EAACoD,EAAU,CACTrB,KAAK,aACLtC,MAAO/C,EAAIkB,EAAYE,WAAY,CAACG,EAAO,aAAc,UACzDmE,SAAU9C,EAAsBrB,GAChCoF,KAAG,EAAAnD,SAAA,CAEHC,EAACmD,EAAgB,CAAC7D,MAAM,SAAS8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC3DtD,EAACmD,EAAgB,CAAC7D,MAAM,SAAS8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC3DtD,EAACmD,EAAgB,CAAC7D,MAAM,QAAQ8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,gBAG9DzD,EAACuB,EAAW,CAAC2B,UAAU,WAAUhD,SAAA,CAC/BC,EAACgD,EAAS,CAACD,UAAU,SAASxB,UAAQ,EAAAxB,SAAA,eAGtCF,EAACoD,EAAU,CACTrB,KAAK,aACLtC,MAAOiE,OAAOhH,EAAIkB,EAAYE,WAAY,CAACG,EAAO,aAAc,MAChEmE,SAAU1C,EAAsBzB,GAChCoF,KAAG,EAAAnD,SAAA,CAEHC,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,SAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,kBA7BpDxF,EAgCT,SAIf+B,EAAC2D,EAAa,CAAAzD,SAAA,CACZC,EAACyD,EAAM,CAACrD,QAASZ,EAAYO,SAAA,WAC7BC,EAACyD,EAAM,CAACX,QAAQ,YAAYY,MAAM,UAAUtD,QAjGnC,WACjB,IAAMuD,SACDlF,GAAM,GAAA,CACTZ,OAAQJ,EAAYE,WACpBD,eAAgBD,EAAYC,iBAG9B8B,IACAjB,EAAOoF,IAyFiE5D,SAAA,iBAQ5E,EAEA1B,EAAeuF,UAAY,CACzBrF,OAAQsF,EAAKC,WACbtF,SAAUqF,EAAKC,WACfrF,OAAQsF,EAAM,CACZtE,eAAgBuE,EAChB7D,iBAAkB8D,EAClBC,mBAAoBC,EAAM,CAAC,SAAU,OAAQ,WAAY,SAAU,cAClEL"}
@@ -1,2 +1,2 @@
1
- import{jsxs as t,Fragment as e,jsx as o}from"react/jsx-runtime";import{isEmpty as s}from"lodash";import{makeStyles as n,Button as i,FormControl as r,InputLabel as p,Select as m,MenuItem as c,Checkbox as a,ListItemText as l}from"@material-ui/core";import{useMemo as d}from"react";import j from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/Lasso.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../clients/jsonApi/index.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";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"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../utils/mobileDetect.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/OffsetWellPickerV5WithStore.js";import"../OffsetWellPickerV4/utils/apiCalls.js";import"../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../OffsetWellPickerV4/constants.js";import"react-virtualized";import"../OffsetWellPickerV4/effects/useAssetsData.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../OffsetWellPickerV4/components/AppHeader/AppHeader.js";import"../OffsetWellPickerV4/components/Toolbar/Toolbar.js";import"../OffsetWellPickerV4/components/Filter/Filter.js";import"../OffsetWellPickerV4/components/Map/WellsMap.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/constants.js";import"../OffsetWellPickerV4/utils/index.js";import"../OffsetWellPickerV4/OffsetWellPickerV4.module.css.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import"../OffsetWellMap/OffsetWellMap.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import{useOffsetPickerActions as A}from"./useOffsetPickerActions.js";var C=n({cancelButton:{marginLeft:"auto",marginRight:16}}),V=function(n){var V=n.assets,S=n.opened,I=n.currentOffsetSetting,g=n.appPad,P=n.companyId,v=n.onSave,f=n.onClose,h=C(),D=A({opened:S,appPad:g,assets:V,currentOffsetSetting:I}),b=D.selectedPads,T=D.selectedWellAssetIds,x=D.setSelectedPads,F=D.setSelectedWellAssetIds,B=d((function(){return b.reduce((function(t,e){return t.concat(e.wells)}),[])}),[b]),y=d((function(){return{company:[P],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[P]);return t(j,{open:S,onClose:f,title:"Offset Wells",size:"small",actions:t(e,{children:[o(i,{onClick:f,className:h.cancelButton,"data-testid":"closeButton",children:"Cancel"}),o(i,{variant:"contained",color:"primary",onClick:function(){var t=B.filter((function(t){return T.includes(t.assetId)})),e=new Map(I.map((function(t){return[t.selectedWellId,t]}))),o=t.map((function(t){var o=e.get(+t.assetId);return o||function(t){return{selectedWellId:Number(t.assetId),selectedWellIdNew:t.id,selectedWellName:t.name,selectedWellStatus:t.status,selectedStages:[],stages:{}}}(t)}));v(o),f()},"data-testid":"saveButton",children:"Save"})]}),children:[o(u,{selectedAssets:b,onChange:function(t){x(t)},label:"Pad *",type:"pad",customRequestQueryParams:y}),t(r,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!B.length,fullWidth:!0,required:!0,children:[o(p,{htmlFor:"wells",shrink:!s(T),children:"Well"}),o(m,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:T,onChange:function(t){F(t.target.value)},renderValue:function(t){return"".concat(t.length," selected")},children:B.map((function(e){return t(c,{value:e.assetId,"data-testid":"".concat(e.name,"_offsetWell_menuItem"),children:[o(a,{size:"small",checked:T.includes(e.assetId)}),o(l,{primary:e.name})]},e.id)}))})]})]})};export{V as default};
1
+ import{jsxs as t,Fragment as o,jsx as e}from"react/jsx-runtime";import{isEmpty as s}from"lodash";import{makeStyles as n,Button as i,FormControl as r,InputLabel as p,Select as m,MenuItem as c,Checkbox as a,ListItemText as l}from"@material-ui/core";import{useMemo as d}from"react";import j from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"@material-ui/icons";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../constants/corvaCompanyId.js";import"../GradientManager/configuration/constants.js";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/AvatarGroup/AvatarGroup.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/ModalWindow/ModalWindow.scss.js";import"@icon-park/react/es/all";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/Lasso.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/utils.js";import"../../componentsV2/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"../../componentsV2/Tag/Tag.js";import"react-dropzone";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/ButtonText/ButtonText.js";import"../../componentsV2/IndicatorLive/IndicatorLive.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/AppHeader/AppAssets/utils.js";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../types/shared/Completions.js";import"../PadModeSelect/types.js";import"lodash/flatten";import"lodash/partition";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.js";import"../../componentsV2/PadModeSelect/FracModeLabel/FracModeLabel.constants.js";import"../../clients/jsonApi/index.js";import"@babel/runtime/helpers/toConsumableArray";import"lodash/set";import"lodash/get";import"lodash/unset";import"moment";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"../../componentsV2/PadModeSelect/WellStreamActivityStatus/WellStreamActivityStatus.scss.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/PadModeSelect/PadModeSelect.scss.js";import"querystring";import"uuid/v1";import"jsona";import"../../utils/env.js";import"../StatusBadge/constants.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/AppFooter/DqPopover/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.scss.js";import"../../componentsV2/AppDqPopover/DqAlert/DqAlert.scss.js";import"../../componentsV2/AppDqPopover/DqAsset/DqAsset.scss.js";import"../../componentsV2/AppDqPopover/AppDqPopover.scss.js";import"../../utils/getSingleAsset.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppContainer/headerCommon.scss.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"@babel/runtime/helpers/typeof";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.js";import"../../componentsV2/AppSettings/AppSettings.js";import"../../componentsV2/AppSettings/AppSettings.constants.js";import"../../componentsV2/AppSettings/AppSettingsPinningContext.js";import"../../componentsV2/AppSizeProvider/AppSizeProvider.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.constants.js";import"../../componentsV2/AppHeader/V3/Actions/Actions.scss.js";import"../../componentsV2/AppHeader/V3/AppHeaderV3.scss.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/Autocomplete/Autocomplete.scss.js";import"../../componentsV2/Menu/MenuItem/MenuItem.js";import"../../componentsV2/Autocomplete/AutocompleteListBox.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"rollbar";import"@rollbar/react";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../utils/mobileDetect.js";import"../Icons/AnnotationIcon.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Toaster/Toaster.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../AssetEditor/index.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../EmptyState/EmptyState.js";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../CopyToClipboard/CopyToClipboard.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"react-color";import"../SettingEditors/ColorEditor/style.css.js";import"../SettingEditors/DropdownEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../Chart/components/ChartButton.js";import"../Chart/components/ChartButtons.js";import"../Chart/components/ChartWrapper.js";import"../Chart/components/AxisDropdown.js";import"../Chart/components/ChartSelect.js";import"../Chart/components/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../Chart/components/buttons/ChartTypeButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../MiddleTruncatedText/MiddleTruncatedText.js";import"../RangeSlider/constants.js";import"../RangeSlider/Input.css.js";import"../RangeSlider/RangeSlider.css.js";import"../AdvancedSlider/AdvancedSlider.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/components/Button/index.js";import"moment-timezone";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.styles.js";import"../GradientManager/GradientManager.styles.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/OffsetWellPickerV5WithStore.js";import"../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../Template/TemplateSharingDialog/index.js";import"../MenuItem/index.js";import"../MiddleTruncate/MiddleTruncate.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import"../Table/TablePagination/TablePagination.js";import"../Table/TablePaginationActions/TablePaginationActions.js";import"../Tooltip/ScrollableTooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Stepper.js";import"../Stepper/Step/Step.js";import"../Stepper/StepsWrapper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../../componentsV2/FileIcon/icons/ArchiveFileIcon.js";import"../../componentsV2/FileIcon/icons/CSVFileIcon.js";import"../../componentsV2/FileIcon/icons/DocFileIcon.js";import"../../componentsV2/FileIcon/icons/EDMFileIcon.js";import"../../componentsV2/FileIcon/icons/ExcelFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import{useOffsetPickerActions as A}from"./useOffsetPickerActions.js";var C=n({cancelButton:{marginLeft:"auto",marginRight:16}}),V=function(n){var V=n.assets,S=n.opened,I=n.currentOffsetSetting,g=n.appPad,v=n.companyId,D=n.onSave,h=n.onClose,P=C(),b=A({opened:S,appPad:g,assets:V,currentOffsetSetting:I}),T=b.selectedPads,f=b.selectedWellAssetIds,x=b.setSelectedPads,F=b.setSelectedWellAssetIds,B=d((function(){return T.reduce((function(t,o){return t.concat(o.wells)}),[])}),[T]),y=d((function(){return{company:[v],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[v]);return t(j,{open:S,onClose:h,title:"Offset Wells",size:"small",actions:t(o,{children:[e(i,{onClick:h,className:P.cancelButton,"data-testid":"closeButton",children:"Cancel"}),e(i,{variant:"contained",color:"primary",onClick:function(){var t=B.filter((function(t){return f.includes(t.assetId)})),o=new Map(I.map((function(t){return[t.selectedWellId,t]}))),e=t.map((function(t){var e=o.get(+t.assetId);return e||function(t){return{selectedWellId:Number(t.assetId),selectedWellIdNew:t.id,selectedWellName:t.name,selectedWellStatus:t.status,selectedStages:[],stages:{}}}(t)}));D(e),h()},"data-testid":"saveButton",children:"Save"})]}),children:[e(u,{selectedAssets:T,onChange:function(t){x(t)},label:"Pad *",type:"pad",customRequestQueryParams:y}),t(r,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!B.length,fullWidth:!0,required:!0,children:[e(p,{htmlFor:"wells",shrink:!s(f),children:"Well"}),e(m,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:f,onChange:function(t){F(t.target.value)},renderValue:function(t){return"".concat(t.length," selected")},children:B.map((function(o){return t(c,{value:o.assetId,"data-testid":"".concat(o.name,"_offsetWell_menuItem"),children:[e(a,{size:"small",checked:f.includes(o.assetId)}),e(l,{primary:o.name})]},o.id)}))})]})]})};export{V as default};
2
2
  //# sourceMappingURL=PadOffsetsPickerV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppCommonsProvider.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppCommonsProvider/AppCommonsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAG/C,OAAO,EAAE,wBAAwB,EAAsB,MAAM,SAAS,CAAC;AAUvE,eAAO,MAAM,kBAAkB,GAAI,4BAIhC,wBAAwB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gBAsBpD,CAAC"}
1
+ {"version":3,"file":"AppCommonsProvider.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/AppCommonsProvider/AppCommonsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAGvD,OAAO,EAAE,wBAAwB,EAAsB,MAAM,SAAS,CAAC;AAkBvE,eAAO,MAAM,kBAAkB,GAAI,4BAIhC,wBAAwB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gBA6BpD,CAAC"}
@@ -1,2 +1,2 @@
1
- import{__rest as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{useCallback as e}from"react";import{AppCommonsContext as l}from"./AppCommonsContext.js";import{useAppCommonsValue as p}from"./utils.js";var r=function(o){var i=e((function(){null==o||o()}),[o]);return o?i:void 0},a=function(e){var a,t,d,v,m,u,c=e.children,s=e.app,f=o(e,["children","app"]),C=(null===(d=null===(t=null===(a=null==s?void 0:s.package)||void 0===a?void 0:a.manifest)||void 0===t?void 0:t.application)||void 0===d?void 0:d.key)||"",k=(null==s?void 0:s.name)||(null===(u=null===(m=null===(v=null==s?void 0:s.package)||void 0===v?void 0:v.manifest)||void 0===m?void 0:m.application)||void 0===u?void 0:u.name)||"",A=r(f.onHelpCenterClick),j=r(f.onAppRemove),h=r(f.reloadApp),x=p(i(i({},f),{app:s,appKey:C,appName:k,onHelpCenterClick:A,onAppRemove:j,reloadApp:h}));return n(l.Provider,{value:x,children:c})};export{a as AppCommonsProvider};
1
+ import{__rest as n,__assign as o,__spreadArray as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as i}from"react/jsx-runtime";import{useCallback as l,useRef as r}from"react";import{AppCommonsContext as t}from"./AppCommonsContext.js";import{useAppCommonsValue as p}from"./utils.js";var a=function(n){var o=l((function(){null==n||n()}),[n]);return n?o:void 0},v=function(n){var o=r(n);return o.current=n,l((function(){for(var n,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return null===(n=o.current)||void 0===n?void 0:n.call.apply(n,e([o],i,!1))}),[])},d=function(e){var l,r,d,u,m,c,s=e.children,f=e.app,g=n(e,["children","app"]),C=(null===(d=null===(r=null===(l=null==f?void 0:f.package)||void 0===l?void 0:l.manifest)||void 0===r?void 0:r.application)||void 0===d?void 0:d.key)||"",h=(null==f?void 0:f.name)||(null===(c=null===(m=null===(u=null==f?void 0:f.package)||void 0===u?void 0:u.manifest)||void 0===m?void 0:m.application)||void 0===c?void 0:c.name)||"",k=a(g.onHelpCenterClick),A=a(g.onAppRemove),j=a(g.reloadApp),S=v(g.onSettingsChange),x=v(g.onSettingChange),y=p(o(o({},g),{app:f,appKey:C,appName:h,onHelpCenterClick:k,onAppRemove:A,reloadApp:j,onSettingsChange:S,onSettingChange:x}));return i(t.Provider,{value:y,children:s})};export{d as AppCommonsProvider};
2
2
  //# sourceMappingURL=AppCommonsProvider.js.map