@corva/ui 3.38.0-2 → 3.38.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) 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/DocumentViewer/DocumentViewer.js +1 -1
  14. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  15. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  16. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  17. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  18. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  19. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  20. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  21. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  22. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  37. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  38. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  39. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  40. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  41. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  42. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  43. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  59. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  60. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  61. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  62. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  63. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  64. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
  65. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  66. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  67. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  68. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  69. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  70. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
  71. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  72. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  73. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  74. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/constants.js +2 -0
  75. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/constants.js.map +1 -0
  76. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js +2 -0
  77. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js.map +1 -0
  78. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js +2 -0
  79. package/cjs-bundle/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js.map +1 -0
  80. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  81. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
  82. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  83. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  84. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.module.css.js +1 -1
  85. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  86. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  87. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +2 -0
  88. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js.map +1 -0
  89. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.js +1 -1
  90. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.module.css.js +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  92. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
  93. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js +2 -0
  94. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js.map +1 -0
  95. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js +2 -0
  96. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js.map +1 -0
  97. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  98. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.module.css.js +1 -1
  99. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  100. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  101. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js.map +1 -1
  102. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
  103. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +2 -0
  104. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js.map +1 -0
  105. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
  106. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js +2 -0
  107. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js.map +1 -0
  108. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  117. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js.map +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV5/constants.js +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV5/constants.js.map +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  128. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
  129. package/cjs-bundle/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
  130. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
  131. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV5/effects/usePinnedWells.js +2 -0
  134. package/cjs-bundle/components/OffsetWellPickerV5/effects/usePinnedWells.js.map +1 -0
  135. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSearchedWells.js +2 -0
  136. package/cjs-bundle/components/OffsetWellPickerV5/effects/useSearchedWells.js.map +1 -0
  137. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTableColumns.js +1 -1
  138. package/cjs-bundle/components/OffsetWellPickerV5/effects/useTableColumns.js.map +1 -1
  139. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
  140. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
  141. package/cjs-bundle/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
  142. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js +2 -0
  143. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js.map +1 -0
  144. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js +2 -0
  145. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js.map +1 -0
  146. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js +2 -0
  147. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js.map +1 -0
  148. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js +2 -0
  149. package/cjs-bundle/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js.map +1 -0
  150. package/cjs-bundle/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +1 -1
  151. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  152. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  153. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  154. package/components/AddComment/Popover.js +1 -1
  155. package/components/AddComment/Popover.js.map +1 -1
  156. package/components/AddComment/components/Content.js +1 -1
  157. package/components/AddComment/components/Content.js.map +1 -1
  158. package/components/BICOffsetPickerDialog/index.js +1 -1
  159. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  160. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  161. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  162. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  163. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  164. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  165. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  166. package/components/DocumentViewer/DocumentViewer.js +1 -1
  167. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  168. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  169. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  170. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  171. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  172. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  173. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  174. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  175. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  176. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  177. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  178. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  179. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  180. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  181. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  182. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  183. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  184. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  185. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  186. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  187. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  188. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  189. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  190. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  191. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  192. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  193. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  194. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  195. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  196. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  197. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  198. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  199. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  200. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  201. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  202. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  203. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  204. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  205. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  206. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  207. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  208. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  209. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  210. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  211. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  212. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  213. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  214. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  215. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js.map +1 -1
  216. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  217. package/components/OffsetWellPickerV4/components/Filter/Filter.js.map +1 -1
  218. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  219. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js.map +1 -1
  220. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  221. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  222. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  223. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js.map +1 -1
  224. package/components/OffsetWellPickerV5/OffsetWellPickerV5.d.ts.map +1 -1
  225. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  226. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  227. package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts +2 -4
  228. package/components/OffsetWellPickerV5/OffsetWellPickerV5.types.d.ts.map +1 -1
  229. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.d.ts.map +1 -1
  230. package/components/OffsetWellPickerV5/OffsetWellPickerV5WithStore.js +1 -1
  231. package/components/OffsetWellPickerV5/api/user-settings/constants.d.ts +2 -0
  232. package/components/OffsetWellPickerV5/api/user-settings/constants.d.ts.map +1 -0
  233. package/components/OffsetWellPickerV5/api/user-settings/constants.js +2 -0
  234. package/components/OffsetWellPickerV5/api/user-settings/constants.js.map +1 -0
  235. package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.d.ts +3 -0
  236. package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.d.ts.map +1 -0
  237. package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js +2 -0
  238. package/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.js.map +1 -0
  239. package/components/OffsetWellPickerV5/api/user-settings/index.d.ts +4 -0
  240. package/components/OffsetWellPickerV5/api/user-settings/index.d.ts.map +1 -0
  241. package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.d.ts +3 -0
  242. package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.d.ts.map +1 -0
  243. package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js +2 -0
  244. package/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.js.map +1 -0
  245. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js +1 -1
  246. package/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js.map +1 -1
  247. package/components/OffsetWellPickerV5/components/Filter/Filter.d.ts.map +1 -1
  248. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  249. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  250. package/components/OffsetWellPickerV5/components/Filter/Filter.module.css.js +1 -1
  251. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  252. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.js +1 -1
  253. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.module.css.js +1 -1
  254. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.types.d.ts +9 -9
  255. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.types.d.ts.map +1 -1
  256. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.d.ts +27 -0
  257. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.d.ts.map +1 -0
  258. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js +2 -0
  259. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/DrawControl.js.map +1 -0
  260. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/index.d.ts +2 -0
  261. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/DrawControl/index.d.ts.map +1 -0
  262. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.d.ts +3 -0
  263. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.d.ts.map +1 -1
  264. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.js +1 -1
  265. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LassoTip/LassoTip.module.css.js +1 -1
  266. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.d.ts +1 -1
  267. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.d.ts.map +1 -1
  268. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.d.ts.map +1 -1
  269. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  270. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.d.ts.map +1 -1
  271. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/RadiusInput/RadiusInput.js +1 -1
  272. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.d.ts +8 -0
  273. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.d.ts.map +1 -0
  274. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js +2 -0
  275. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.js.map +1 -0
  276. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js +2 -0
  277. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/ScaleIndicator.module.css.js.map +1 -0
  278. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/index.d.ts +2 -0
  279. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ScaleIndicator/index.d.ts.map +1 -0
  280. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.d.ts +0 -1
  281. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.d.ts.map +1 -1
  282. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.js +1 -1
  283. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/WellTooltip/WellTooltip.module.css.js +1 -1
  284. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts +13 -1
  285. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.d.ts.map +1 -1
  286. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/constants.js +1 -1
  287. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts +1 -1
  288. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/index.d.ts.map +1 -1
  289. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts +19 -5
  290. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.d.ts.map +1 -1
  291. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js +1 -1
  292. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useLassoSelection.js.map +1 -1
  293. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts +4 -1
  294. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.d.ts.map +1 -1
  295. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapBounds.js +1 -1
  296. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.d.ts +24 -0
  297. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.d.ts.map +1 -0
  298. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js +2 -0
  299. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapViewState.js.map +1 -0
  300. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts +0 -1
  301. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useTooltip.d.ts.map +1 -1
  302. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts +6 -4
  303. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.d.ts.map +1 -1
  304. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useWellMarkers.js +1 -1
  305. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.d.ts +10 -0
  306. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.d.ts.map +1 -0
  307. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js +2 -0
  308. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getStatusColor.js.map +1 -0
  309. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts +7 -1
  310. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
  311. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js +1 -1
  312. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.js.map +1 -1
  313. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.module.css.js +1 -1
  314. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts +7 -1
  315. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.d.ts.map +1 -1
  316. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js +1 -1
  317. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AssetResultSection.js.map +1 -1
  318. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts +5 -1
  319. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.d.ts.map +1 -1
  320. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js +1 -1
  321. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/AutoCompleteAssetSearch.js.map +1 -1
  322. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts +3 -1
  323. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.d.ts.map +1 -1
  324. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  325. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTable.js.map +1 -1
  326. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.d.ts +3 -2
  327. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.d.ts.map +1 -1
  328. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  329. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.js.map +1 -1
  330. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
  331. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +3 -1
  332. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.d.ts.map +1 -1
  333. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  334. package/components/OffsetWellPickerV5/components/OffsetWellsTable/OffsetWellsTableRow.js.map +1 -1
  335. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.d.ts +1 -1
  336. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js +1 -1
  337. package/components/OffsetWellPickerV5/components/OffsetWellsTable/SubjectWellMark.js.map +1 -1
  338. package/components/OffsetWellPickerV5/constants.js +1 -1
  339. package/components/OffsetWellPickerV5/constants.js.map +1 -1
  340. package/components/OffsetWellPickerV5/effects/index.d.ts +14 -12
  341. package/components/OffsetWellPickerV5/effects/index.d.ts.map +1 -1
  342. package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts +1 -1
  343. package/components/OffsetWellPickerV5/effects/useAdvancedWells.d.ts.map +1 -1
  344. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js +1 -1
  345. package/components/OffsetWellPickerV5/effects/useAdvancedWells.js.map +1 -1
  346. package/components/OffsetWellPickerV5/effects/useAssetsData.d.ts.map +1 -1
  347. package/components/OffsetWellPickerV5/effects/useAssetsData.js +1 -1
  348. package/components/OffsetWellPickerV5/effects/useAssetsData.js.map +1 -1
  349. package/components/OffsetWellPickerV5/effects/useFetchWells.d.ts.map +1 -1
  350. package/components/OffsetWellPickerV5/effects/useFetchWells.js +1 -1
  351. package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts +1 -1
  352. package/components/OffsetWellPickerV5/effects/useFilteredWells.d.ts.map +1 -1
  353. package/components/OffsetWellPickerV5/effects/useFilteredWells.js +1 -1
  354. package/components/OffsetWellPickerV5/effects/useFilteredWells.js.map +1 -1
  355. package/components/OffsetWellPickerV5/effects/usePinnedWells.d.ts +11 -0
  356. package/components/OffsetWellPickerV5/effects/usePinnedWells.d.ts.map +1 -0
  357. package/components/OffsetWellPickerV5/effects/usePinnedWells.js +2 -0
  358. package/components/OffsetWellPickerV5/effects/usePinnedWells.js.map +1 -0
  359. package/components/OffsetWellPickerV5/effects/useSearchedWells.d.ts +11 -0
  360. package/components/OffsetWellPickerV5/effects/useSearchedWells.d.ts.map +1 -0
  361. package/components/OffsetWellPickerV5/effects/useSearchedWells.js +2 -0
  362. package/components/OffsetWellPickerV5/effects/useSearchedWells.js.map +1 -0
  363. package/components/OffsetWellPickerV5/effects/useTableColumns.d.ts +1 -1
  364. package/components/OffsetWellPickerV5/effects/useTableColumns.d.ts.map +1 -1
  365. package/components/OffsetWellPickerV5/effects/useTableColumns.js +1 -1
  366. package/components/OffsetWellPickerV5/effects/useTableColumns.js.map +1 -1
  367. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.d.ts.map +1 -1
  368. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js +1 -1
  369. package/components/OffsetWellPickerV5/stores/filter-store/FilterStoreProvider.js.map +1 -1
  370. package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.d.ts.map +1 -1
  371. package/components/OffsetWellPickerV5/stores/filter-store/createFilterStore.js +1 -1
  372. package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts +3 -1
  373. package/components/OffsetWellPickerV5/stores/filter-store/types.d.ts.map +1 -1
  374. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.d.ts +3 -0
  375. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.d.ts.map +1 -0
  376. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js +2 -0
  377. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreContext.js.map +1 -0
  378. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.d.ts +8 -0
  379. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.d.ts.map +1 -0
  380. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js +2 -0
  381. package/components/OffsetWellPickerV5/stores/user-settings-store/UserSettingsStoreProvider.js.map +1 -0
  382. package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.d.ts +28 -0
  383. package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.d.ts.map +1 -0
  384. package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js +2 -0
  385. package/components/OffsetWellPickerV5/stores/user-settings-store/createUserSettingsStore.js.map +1 -0
  386. package/components/OffsetWellPickerV5/stores/user-settings-store/index.d.ts +5 -0
  387. package/components/OffsetWellPickerV5/stores/user-settings-store/index.d.ts.map +1 -0
  388. package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.d.ts +3 -0
  389. package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.d.ts.map +1 -0
  390. package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js +2 -0
  391. package/components/OffsetWellPickerV5/stores/user-settings-store/useUserSettingsStore.js.map +1 -0
  392. package/components/OffsetWellPickerV5/stores/utils/useSyncProps.d.ts +1 -1
  393. package/components/OffsetWellPickerV5/stores/utils/useSyncProps.d.ts.map +1 -1
  394. package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.d.ts +4 -0
  395. package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.d.ts.map +1 -1
  396. package/components/OffsetWellPickerV5/stores/view-store/ViewStoreProvider.js +1 -1
  397. package/components/OffsetWellPickerV5/stores/view-store/createViewStore.d.ts +1 -1
  398. package/components/OffsetWellPickerV5/stores/view-store/createViewStore.d.ts.map +1 -1
  399. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  400. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  401. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  402. package/package.json +1 -1
  403. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js +0 -2
  404. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js.map +0 -1
  405. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js +0 -2
  406. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js.map +0 -1
  407. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.d.ts +0 -13
  408. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.d.ts.map +0 -1
  409. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js +0 -2
  410. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/hooks/useMapZoom.js.map +0 -1
  411. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.d.ts +0 -3
  412. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.d.ts.map +0 -1
  413. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js +0 -2
  414. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/utils/getAllFormations.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{PickerPropsStoreProvider as i}from"./stores/picker-props-store/PickerPropsStoreProvider.js";import{usePickerPropsStore as t}from"./stores/picker-props-store/usePickerPropsStore.js";import{FilterStoreProvider as o}from"./stores/filter-store/FilterStoreProvider.js";import{ViewStoreProvider as s}from"./stores/view-store/ViewStoreProvider.js";import{OffsetWellPickerV5 as n}from"./OffsetWellPickerV5.js";var l=function(r){var i=r.children,s=t((function(r){return r.offsetSettings}));return e(o,{filters:null==s?void 0:s.filters,children:i})},d=function(r){var i=r.children,o=t((function(r){return r.offsetSettings}));return e(s,{isFilterExpanded:null==o?void 0:o.filterExpanded,isMapHidden:null==o?void 0:o.mapHidden,isWellNameExpand:null==o?void 0:o.wellNameExpanded,mapStyle:null==o?void 0:o.mapStyle,children:i})},p=function(t){return e(i,r({},t,{children:e(l,{children:e(d,{children:e(n,{})})})}))};export{p as OffsetWellPickerV5WithStore};
1
+ import{__assign as r}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,Fragment as t}from"react/jsx-runtime";import{useCallback as i}from"react";import{PickerPropsStoreProvider as n}from"./stores/picker-props-store/PickerPropsStoreProvider.js";import{usePickerPropsStore as s}from"./stores/picker-props-store/usePickerPropsStore.js";import{FilterStoreProvider as o}from"./stores/filter-store/FilterStoreProvider.js";import{ViewStoreProvider as l}from"./stores/view-store/ViewStoreProvider.js";import{UserSettingsStoreProvider as d}from"./stores/user-settings-store/UserSettingsStoreProvider.js";import{useUserSettingsStore as u}from"./stores/user-settings-store/useUserSettingsStore.js";import"./stores/user-settings-store/UserSettingsStoreContext.js";import{OffsetWellPickerV5 as a}from"./OffsetWellPickerV5.js";var c=function(r){var t=r.children,i=s((function(r){return r.offsetSettings}));return e(o,{filters:null==i?void 0:i.filters,children:t})};c.displayName="FilterStoreWrapper";var f=function(r){var t=r.children,n=s((function(r){return r.offsetSettings})),o=u((function(r){return r.settings})),d=u((function(r){return r.hasManuallyChanged})),a=u((function(r){return r.setSetting})),c=i((function(r,e){a(r,e)}),[a]);return e(l,{isFilterExpanded:null==n?void 0:n.filterExpanded,isMapHidden:null==n?void 0:n.mapHidden,userSettings:o,hasManuallyChanged:d,onSettingChange:c,children:t})};f.displayName="ViewStoreWrapper";var p=function(r){var t=r.children,i=s((function(r){return r.currentUser})),n=null==i?void 0:i.id;return e(d,{userId:n,children:t})};p.displayName="UserSettingsWrapper";var m=function(r){var i=r.children,n=u((function(r){return r.loadState}));return"loading"===n||"idle"===n?null:e(t,{children:i})};m.displayName="SettingsLoadingGuard";var S=function(t){return e(n,r({},t,{children:e(p,{children:e(m,{children:e(c,{children:e(f,{children:e(a,{})})})})})}))};S.displayName="OffsetWellPickerV5WithStore";export{S as OffsetWellPickerV5WithStore};
2
2
  //# sourceMappingURL=OffsetWellPickerV5WithStore.js.map
@@ -0,0 +1,2 @@
1
+ export declare const USER_SETTINGS_KEY = "offset_well_picker_5_settings_v1";
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/user-settings/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,qCAAqC,CAAC"}
@@ -0,0 +1,2 @@
1
+ var e="offset_well_picker_5_settings_v1";export{e as USER_SETTINGS_KEY};
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { PersistedUserSettings } from '../../stores/user-settings-store';
2
+ export declare const fetchUserSettings: (userId: number) => Promise<PersistedUserSettings | null>;
3
+ //# sourceMappingURL=fetchUserSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchUserSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/user-settings/fetchUserSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAU9E,eAAO,MAAM,iBAAiB,WAAkB,MAAM,KAAG,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAY5F,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{__awaiter as t,__generator as n}from'./../../../../ext-esm/tslib/tslib.es6.js';import{USER_SETTINGS_KEY as r}from"./constants.js";import{getUserSetting as s}from"../../../../clients/jsonApi/index.js";var o=function(o){return t(void 0,void 0,void 0,(function(){var t,i,e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,s(o,r)];case 1:return t=n.sent(),[2,null!==(e=null==t?void 0:t[r])&&void 0!==e?e:null];case 2:if(404===(null==(i=n.sent())?void 0:i.status))return[2,null];throw i;case 3:return[2]}}))}))};export{o as fetchUserSettings};
2
+ //# sourceMappingURL=fetchUserSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,2CAA2C,0CAA6C;"}
@@ -0,0 +1,4 @@
1
+ export { fetchUserSettings } from './fetchUserSettings';
2
+ export { saveUserSettings } from './saveUserSettings';
3
+ export { USER_SETTINGS_KEY } from './constants';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/user-settings/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PersistedUserSettings } from '../../stores/user-settings-store';
2
+ export declare const saveUserSettings: (userId: number, settings: PersistedUserSettings) => Promise<void>;
3
+ //# sourceMappingURL=saveUserSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saveUserSettings.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/api/user-settings/saveUserSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAM9E,eAAO,MAAM,gBAAgB,WACnB,MAAM,YACJ,qBAAqB,KAC9B,OAAO,CAAC,IAAI,CAEd,CAAC"}
@@ -0,0 +1,2 @@
1
+ import{__awaiter as t,__generator as n}from'./../../../../ext-esm/tslib/tslib.es6.js';import{USER_SETTINGS_KEY as o}from"./constants.js";import{setCurrentUserSettings as r}from"../../../../clients/jsonApi/index.js";var i=function(i,s){return t(void 0,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return[4,r(i,(t={},t[o]=s,t))];case 1:return n.sent(),[2]}}))}))};export{i as saveUserSettings};
2
+ //# sourceMappingURL=saveUserSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,2CAA2C,0CAA6C;"}
@@ -1,2 +1,2 @@
1
- import o from"prop-types";import{Divider as s,Tooltip as t}from"@material-ui/core";import e from"classnames";import{useCallback as n,useMemo as i}from"react";import{CustomInfoIcon as r}from"../CustomInfoIcon/CustomInfoIcon.js";import{MetricsSettingMenu as p}from"../OffsetWellsTable/MetricsSettingMenu.js";import{RESYNC_STATUS as c}from"../../constants.js";import{usePickerPropsStore as m}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useViewStore as a}from"../../stores/view-store/useViewStore.js";import l from"./AppHeader.module.css.js";import{Regular20 as d,Regular14 as j,Regular12 as u}from"../../../Typography.js";import"../../../../componentsV2/Text/Text.js";import"../../../../componentsV2/Grid/Grid.js";import"../../../../componentsV2/Grid/Cell.js";import{jsxs as A,jsx as V}from"react/jsx-runtime";import"../../../../componentsV2/Header/Header.scss.js";import{Button as C}from"../../../../componentsV2/Button/Button.js";import{ButtonIcon as S}from"../../../../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"lodash";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{CenterAlignmentIcon as I,MapDrawIcon as h}from"../../../../icons/iconParkIcons.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"../../../../utils/index.js";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"../../../../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"../../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";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"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";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"../../../AppIcon/AppIcon.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";var g=function(o){var g=o.totalCount,v=o.selectedCount,f=o.maxOffsetWellNumber,b=o.isXtoProvider,D=o.resyncStatus,P=o.setResyncStatus,y=o.metricsKeys,T=o.onChangeMetricsKeys,M=m((function(o){return o.isViewOnly})),x=m((function(o){return o.isGlobalMode})),H=a((function(o){return o.isFilterExpanded})),L=a((function(o){return o.toggleFilterExpanded})),B=a((function(o){return o.isMapHidden})),F=a((function(o){return o.toggleMapHidden})),q=n((function(){P(c.TRIGGERED)}),[P]),k=i((function(){return D===c.RUNNING}),[D]);return A("div",{className:l.headerContainer,children:[A("div",{className:l.leftSection,children:[V(d,{children:"Select Offset Wells"}),V(s,{className:l.divideLine}),V(j,{className:l.totalLabel,children:"Total:"}),V(j,{"data-testid":"".concat("AppHeader","_totalWells"),className:l.countValue,children:g}),V(j,{className:l.selectedLabel,children:"Selected:"}),V(j,{"data-testid":"".concat("AppHeader","_selected"),className:l.countValue,children:v}),x?V(u,{className:e(l.maxOffsetSize,l.maxOffsetSizeGlobal),children:"No global limit. Each app may have its own offset limit."}):V(t,{title:"App can't process more than (".concat(f-1,") Offset Wells."),placement:"right",children:A(u,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:l.maxOffsetSize,children:["/",f-1]})}),M&&V(r,{})]}),A("div",{className:l.rightSection,children:[b&&V(C,{size:"small",type:"primary",onClick:q,disabled:M||k,children:"Re-Sync with IDAS"}),V(t,{title:"Filters",children:V(S,{testId:"".concat("AppHeader","_filters"),size:"small",type:H?"secondaryBg":"tertiaryBg",onClick:L,disabled:M,children:V(I,{})})}),V(t,{title:"Map",children:V(S,{testId:"".concat("AppHeader","_map"),size:"small",type:B?"tertiaryBg":"secondaryBg",onClick:F,children:V(h,{})})}),V(p,{metricsKeys:y,onChange:T})]})]})};g.propTypes={totalCount:o.number.isRequired,selectedCount:o.number.isRequired,maxOffsetWellNumber:o.number.isRequired,isXtoProvider:o.bool.isRequired,resyncStatus:o.string.isRequired,setResyncStatus:o.func.isRequired,metricsKeys:o.arrayOf(o.string).isRequired,onChangeMetricsKeys:o.func.isRequired};export{g as AppHeader};
1
+ import o from"prop-types";import{Divider as s,Tooltip as t}from"@material-ui/core";import e from"classnames";import{useCallback as n,useMemo as i}from"react";import{CustomInfoIcon as r}from"../CustomInfoIcon/CustomInfoIcon.js";import{MetricsSettingMenu as p}from"../OffsetWellsTable/MetricsSettingMenu.js";import{RESYNC_STATUS as c}from"../../constants.js";import{usePickerPropsStore as m}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useViewStore as a}from"../../stores/view-store/useViewStore.js";import l from"./AppHeader.module.css.js";import{Regular20 as d,Regular14 as j,Regular12 as u}from"../../../Typography.js";import"../../../../componentsV2/Text/Text.js";import"../../../../componentsV2/Grid/Grid.js";import"../../../../componentsV2/Grid/Cell.js";import{jsxs as A,jsx as V}from"react/jsx-runtime";import"../../../../componentsV2/Header/Header.scss.js";import{Button as C}from"../../../../componentsV2/Button/Button.js";import{ButtonIcon as S}from"../../../../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"lodash";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{CenterAlignmentIcon as I,MapDrawIcon as h}from"../../../../icons/iconParkIcons.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"../../../../utils/index.js";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"../../../../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"../../../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../../../componentsV2/AppHeader/AppHeader.constants.js";import"../../../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";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"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";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"../../../AppIcon/AppIcon.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";var g=function(o){var g=o.totalCount,v=o.selectedCount,f=o.maxOffsetWellNumber,b=o.isXtoProvider,D=o.resyncStatus,P=o.setResyncStatus,y=o.metricsKeys,T=o.onChangeMetricsKeys,M=m((function(o){return o.isViewOnly})),x=m((function(o){return o.isGlobalMode})),H=a((function(o){return o.isFilterExpanded})),L=a((function(o){return o.toggleFilterExpanded})),B=a((function(o){return o.isMapHidden})),F=a((function(o){return o.toggleMapHidden})),q=n((function(){P(c.TRIGGERED)}),[P]),k=i((function(){return D===c.RUNNING}),[D]);return A("div",{className:l.headerContainer,children:[A("div",{className:l.leftSection,children:[V(d,{children:"Offset Wells"}),V(s,{className:l.divideLine}),V(j,{className:l.totalLabel,children:"Total:"}),V(j,{"data-testid":"".concat("AppHeader","_totalWells"),className:l.countValue,children:g}),V(j,{className:l.selectedLabel,children:"Selected:"}),V(j,{"data-testid":"".concat("AppHeader","_selected"),className:l.countValue,children:v}),x?V(u,{className:e(l.maxOffsetSize,l.maxOffsetSizeGlobal),children:"No global limit. Each app may have its own offset limit."}):V(t,{title:"App can't process more than (".concat(f-1,") Offset Wells."),placement:"right",children:A(u,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:l.maxOffsetSize,children:["/",f-1]})}),M&&V(r,{})]}),A("div",{className:l.rightSection,children:[b&&V(C,{size:"small",type:"primary",onClick:q,disabled:M||k,children:"Re-Sync with IDAS"}),V(t,{title:"Filters",children:V(S,{testId:"".concat("AppHeader","_filters"),size:"small",type:H?"secondaryBg":"tertiaryBg",onClick:L,disabled:M,children:V(I,{})})}),V(t,{title:"Map",children:V(S,{testId:"".concat("AppHeader","_map"),size:"small",type:B?"tertiaryBg":"secondaryBg",onClick:F,children:V(h,{})})}),V(p,{metricsKeys:y,onChange:T})]})]})};g.propTypes={totalCount:o.number.isRequired,selectedCount:o.number.isRequired,maxOffsetWellNumber:o.number.isRequired,isXtoProvider:o.bool.isRequired,resyncStatus:o.string.isRequired,setResyncStatus:o.func.isRequired,metricsKeys:o.arrayOf(o.string).isRequired,onChangeMetricsKeys:o.func.isRequired};export{g as AppHeader};
2
2
  //# sourceMappingURL=AppHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppHeader.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Divider, Tooltip } from '@material-ui/core';\nimport classNames from 'classnames';\nimport { useCallback, useMemo } from 'react';\n\nimport { CustomInfoIcon } from '../CustomInfoIcon';\nimport { MetricsSettingMenu } from '../OffsetWellsTable/MetricsSettingMenu';\nimport { RESYNC_STATUS } from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useViewStore } from '../../stores/view-store/useViewStore';\n\nimport styles from './AppHeader.module.css';\n\nimport { Regular12, Regular14, Regular20 } from '~/components/Typography';\nimport { ButtonIcon, Button } from '~/componentsV2';\nimport { CenterAlignmentIcon, MapDrawIcon } from '~/icons';\n\nconst PAGE_NAME = 'AppHeader';\nconst GLOBAL_MODE_LIMIT_TEXT = 'No global limit. Each app may have its own offset limit.';\n\nexport const AppHeader = ({\n totalCount,\n selectedCount,\n maxOffsetWellNumber,\n isXtoProvider,\n resyncStatus,\n setResyncStatus,\n metricsKeys,\n onChangeMetricsKeys,\n}) => {\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const isGlobalMode = usePickerPropsStore(state => state.isGlobalMode);\n const isFilterExpanded = useViewStore(state => state.isFilterExpanded);\n const toggleFilterExpanded = useViewStore(state => state.toggleFilterExpanded);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const toggleMapHidden = useViewStore(state => state.toggleMapHidden);\n\n const handleResync = useCallback(() => {\n setResyncStatus(RESYNC_STATUS.TRIGGERED);\n }, [setResyncStatus]);\n\n const isResyncRunning = useMemo(() => {\n return resyncStatus === RESYNC_STATUS.RUNNING;\n }, [resyncStatus]);\n\n return (\n <div className={styles.headerContainer}>\n <div className={styles.leftSection}>\n <Regular20>Select Offset Wells</Regular20>\n <Divider className={styles.divideLine} />\n <Regular14 className={styles.totalLabel}>Total:</Regular14>\n <Regular14 data-testid={`${PAGE_NAME}_totalWells`} className={styles.countValue}>\n {totalCount}\n </Regular14>\n <Regular14 className={styles.selectedLabel}>Selected:</Regular14>\n <Regular14 data-testid={`${PAGE_NAME}_selected`} className={styles.countValue}>\n {selectedCount}\n </Regular14>\n {isGlobalMode ? (\n <Regular12 className={classNames(styles.maxOffsetSize, styles.maxOffsetSizeGlobal)}>\n {GLOBAL_MODE_LIMIT_TEXT}\n </Regular12>\n ) : (\n <Tooltip\n title={`App can't process more than (${maxOffsetWellNumber - 1}) Offset Wells.`}\n placement=\"right\"\n >\n <Regular12 data-testid={`${PAGE_NAME}_maxOffsetSize`} className={styles.maxOffsetSize}>\n /{maxOffsetWellNumber - 1}\n </Regular12>\n </Tooltip>\n )}\n {isViewOnly && <CustomInfoIcon />}\n </div>\n <div className={styles.rightSection}>\n {isXtoProvider && (\n <Button\n size=\"small\"\n type=\"primary\"\n onClick={handleResync}\n disabled={isViewOnly || isResyncRunning}\n >\n Re-Sync with IDAS\n </Button>\n )}\n <Tooltip title=\"Filters\">\n <ButtonIcon\n testId={`${PAGE_NAME}_filters`}\n size=\"small\"\n type={isFilterExpanded ? 'secondaryBg' : 'tertiaryBg'}\n onClick={toggleFilterExpanded}\n disabled={isViewOnly}\n >\n <CenterAlignmentIcon />\n </ButtonIcon>\n </Tooltip>\n <Tooltip title=\"Map\">\n <ButtonIcon\n testId={`${PAGE_NAME}_map`}\n size=\"small\"\n type={isMapHidden ? 'tertiaryBg' : 'secondaryBg'}\n onClick={toggleMapHidden}\n >\n <MapDrawIcon />\n </ButtonIcon>\n </Tooltip>\n <MetricsSettingMenu metricsKeys={metricsKeys} onChange={onChangeMetricsKeys} />\n </div>\n </div>\n );\n};\n\nAppHeader.propTypes = {\n totalCount: PropTypes.number.isRequired,\n selectedCount: PropTypes.number.isRequired,\n maxOffsetWellNumber: PropTypes.number.isRequired,\n isXtoProvider: PropTypes.bool.isRequired,\n resyncStatus: PropTypes.string.isRequired,\n setResyncStatus: PropTypes.func.isRequired,\n metricsKeys: PropTypes.arrayOf(PropTypes.string).isRequired,\n onChangeMetricsKeys: PropTypes.func.isRequired,\n};\n"],"names":["AppHeader","_ref","totalCount","selectedCount","maxOffsetWellNumber","isXtoProvider","resyncStatus","setResyncStatus","metricsKeys","onChangeMetricsKeys","isViewOnly","usePickerPropsStore","state","isGlobalMode","isFilterExpanded","useViewStore","toggleFilterExpanded","isMapHidden","toggleMapHidden","handleResync","useCallback","RESYNC_STATUS","TRIGGERED","isResyncRunning","useMemo","RUNNING","_jsxs","className","styles","headerContainer","children","leftSection","_jsx","Regular20","Divider","divideLine","Regular14","totalLabel","concat","countValue","selectedLabel","Regular12","classNames","maxOffsetSize","maxOffsetSizeGlobal","Tooltip","title","placement","CustomInfoIcon","rightSection","Button","size","type","onClick","disabled","ButtonIcon","testId","CenterAlignmentIcon","MapDrawIcon","MetricsSettingMenu","onChange","propTypes","PropTypes","number","isRequired","bool","string","func","arrayOf"],"mappings":"s1YAiBA,IAGaA,EAAY,SASnBC,GAAA,IARJC,IAAAA,WACAC,IAAAA,cACAC,IAAAA,oBACAC,IAAAA,cACAC,IAAAA,aACAC,IAAAA,gBACAC,IAAAA,YACAC,IAAAA,oBAEMC,EAAaC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,cAChDG,EAAeF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,gBAClDC,EAAmBC,GAAa,SAAAH,GAAK,OAAIA,EAAME,oBAC/CE,EAAuBD,GAAa,SAAAH,GAAK,OAAIA,EAAMI,wBACnDC,EAAcF,GAAa,SAAAH,GAAK,OAAIA,EAAMK,eAC1CC,EAAkBH,GAAa,SAAAH,GAAK,OAAIA,EAAMM,mBAE9CC,EAAeC,GAAY,WAC/Bb,EAAgBc,EAAcC,UAChC,GAAG,CAACf,IAEEgB,EAAkBC,GAAQ,WAC9B,OAAOlB,IAAiBe,EAAcI,OACxC,GAAG,CAACnB,IAEJ,OACEoB,EAAA,MAAA,CAAKC,UAAWC,EAAOC,gBAAgBC,SACrC,CAAAJ,EAAA,MAAA,CAAKC,UAAWC,EAAOG,YAAYD,SAAA,CACjCE,EAACC,EAAS,CAAAH,SAAA,wBACVE,EAACE,EAAO,CAACP,UAAWC,EAAOO,aAC3BH,EAACI,EAAS,CAACT,UAAWC,EAAOS,WAAWP,SAAA,WACxCE,EAACI,EAAS,CAAC,cAAA,GAAAE,OAlCD,YAkCwC,eAACX,UAAWC,EAAOW,WAAWT,SAC7E5B,IAEH8B,EAACI,EAAS,CAACT,UAAWC,EAAOY,cAAcV,SAAA,cAC3CE,EAACI,EAAS,CAAC,cAAA,GAAAE,OAtC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AUM,QAAQN,EAAUI,QAAQF,WACjDvD,oBAAqBqD,EAAUK,KAAKH"}
1
+ {"version":3,"file":"AppHeader.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/AppHeader/AppHeader.js"],"sourcesContent":["import PropTypes from 'prop-types';\nimport { Divider, Tooltip } from '@material-ui/core';\nimport classNames from 'classnames';\nimport { useCallback, useMemo } from 'react';\n\nimport { CustomInfoIcon } from '../CustomInfoIcon';\nimport { MetricsSettingMenu } from '../OffsetWellsTable/MetricsSettingMenu';\nimport { RESYNC_STATUS } from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useViewStore } from '../../stores/view-store/useViewStore';\n\nimport styles from './AppHeader.module.css';\n\nimport { Regular12, Regular14, Regular20 } from '~/components/Typography';\nimport { ButtonIcon, Button } from '~/componentsV2';\nimport { CenterAlignmentIcon, MapDrawIcon } from '~/icons';\n\nconst PAGE_NAME = 'AppHeader';\nconst GLOBAL_MODE_LIMIT_TEXT = 'No global limit. Each app may have its own offset limit.';\n\nexport const AppHeader = ({\n totalCount,\n selectedCount,\n maxOffsetWellNumber,\n isXtoProvider,\n resyncStatus,\n setResyncStatus,\n metricsKeys,\n onChangeMetricsKeys,\n}) => {\n const isViewOnly = usePickerPropsStore(state => state.isViewOnly);\n const isGlobalMode = usePickerPropsStore(state => state.isGlobalMode);\n const isFilterExpanded = useViewStore(state => state.isFilterExpanded);\n const toggleFilterExpanded = useViewStore(state => state.toggleFilterExpanded);\n const isMapHidden = useViewStore(state => state.isMapHidden);\n const toggleMapHidden = useViewStore(state => state.toggleMapHidden);\n\n const handleResync = useCallback(() => {\n setResyncStatus(RESYNC_STATUS.TRIGGERED);\n }, [setResyncStatus]);\n\n const isResyncRunning = useMemo(() => {\n return resyncStatus === RESYNC_STATUS.RUNNING;\n }, [resyncStatus]);\n\n return (\n <div className={styles.headerContainer}>\n <div className={styles.leftSection}>\n <Regular20>Offset Wells</Regular20>\n <Divider className={styles.divideLine} />\n <Regular14 className={styles.totalLabel}>Total:</Regular14>\n <Regular14 data-testid={`${PAGE_NAME}_totalWells`} className={styles.countValue}>\n {totalCount}\n </Regular14>\n <Regular14 className={styles.selectedLabel}>Selected:</Regular14>\n <Regular14 data-testid={`${PAGE_NAME}_selected`} className={styles.countValue}>\n {selectedCount}\n </Regular14>\n {isGlobalMode ? (\n <Regular12 className={classNames(styles.maxOffsetSize, styles.maxOffsetSizeGlobal)}>\n {GLOBAL_MODE_LIMIT_TEXT}\n </Regular12>\n ) : (\n <Tooltip\n title={`App can't process more than (${maxOffsetWellNumber - 1}) Offset Wells.`}\n placement=\"right\"\n >\n <Regular12 data-testid={`${PAGE_NAME}_maxOffsetSize`} className={styles.maxOffsetSize}>\n /{maxOffsetWellNumber - 1}\n </Regular12>\n </Tooltip>\n )}\n {isViewOnly && <CustomInfoIcon />}\n </div>\n <div className={styles.rightSection}>\n {isXtoProvider && (\n <Button\n size=\"small\"\n type=\"primary\"\n onClick={handleResync}\n disabled={isViewOnly || isResyncRunning}\n >\n Re-Sync with IDAS\n </Button>\n )}\n <Tooltip title=\"Filters\">\n <ButtonIcon\n testId={`${PAGE_NAME}_filters`}\n size=\"small\"\n type={isFilterExpanded ? 'secondaryBg' : 'tertiaryBg'}\n onClick={toggleFilterExpanded}\n disabled={isViewOnly}\n >\n <CenterAlignmentIcon />\n </ButtonIcon>\n </Tooltip>\n <Tooltip title=\"Map\">\n <ButtonIcon\n testId={`${PAGE_NAME}_map`}\n size=\"small\"\n type={isMapHidden ? 'tertiaryBg' : 'secondaryBg'}\n onClick={toggleMapHidden}\n >\n <MapDrawIcon />\n </ButtonIcon>\n </Tooltip>\n <MetricsSettingMenu metricsKeys={metricsKeys} onChange={onChangeMetricsKeys} />\n </div>\n </div>\n );\n};\n\nAppHeader.propTypes = {\n totalCount: PropTypes.number.isRequired,\n selectedCount: PropTypes.number.isRequired,\n maxOffsetWellNumber: PropTypes.number.isRequired,\n isXtoProvider: PropTypes.bool.isRequired,\n resyncStatus: PropTypes.string.isRequired,\n setResyncStatus: PropTypes.func.isRequired,\n metricsKeys: PropTypes.arrayOf(PropTypes.string).isRequired,\n onChangeMetricsKeys: PropTypes.func.isRequired,\n};\n"],"names":["AppHeader","_ref","totalCount","selectedCount","maxOffsetWellNumber","isXtoProvider","resyncStatus","setResyncStatus","metricsKeys","onChangeMetricsKeys","isViewOnly","usePickerPropsStore","state","isGlobalMode","isFilterExpanded","useViewStore","toggleFilterExpanded","isMapHidden","toggleMapHidden","handleResync","useCallback","RESYNC_STATUS","TRIGGERED","isResyncRunning","useMemo","RUNNING","_jsxs","className","styles","headerContainer","children","leftSection","_jsx","Regular20","Divider","divideLine","Regular14","totalLabel","concat","countValue","selectedLabel","Regular12","classNames","maxOffsetSize","maxOffsetSizeGlobal","Tooltip","title","placement","CustomInfoIcon","rightSection","Button","size","type","onClick","disabled","ButtonIcon","testId","CenterAlignmentIcon","MapDrawIcon","MetricsSettingMenu","onChange","propTypes","PropTypes","number","isRequired","bool","string","func","arrayOf"],"mappings":"s1YAiBA,IAGaA,EAAY,SASnBC,GAAA,IARJC,IAAAA,WACAC,IAAAA,cACAC,IAAAA,oBACAC,IAAAA,cACAC,IAAAA,aACAC,IAAAA,gBACAC,IAAAA,YACAC,IAAAA,oBAEMC,EAAaC,GAAoB,SAAAC,GAAK,OAAIA,EAAMF,cAChDG,EAAeF,GAAoB,SAAAC,GAAK,OAAIA,EAAMC,gBAClDC,EAAmBC,GAAa,SAAAH,GAAK,OAAIA,EAAME,oBAC/CE,EAAuBD,GAAa,SAAAH,GAAK,OAAIA,EAAMI,wBACnDC,EAAcF,GAAa,SAAAH,GAAK,OAAIA,EAAMK,eAC1CC,EAAkBH,GAAa,SAAAH,GAAK,OAAIA,EAAMM,mBAE9CC,EAAeC,GAAY,WAC/Bb,EAAgBc,EAAcC,UAChC,GAAG,CAACf,IAEEgB,EAAkBC,GAAQ,WAC9B,OAAOlB,IAAiBe,EAAcI,OACxC,GAAG,CAACnB,IAEJ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EAAU,CACTC,OAAM,GAAAlB,OAjFA,YAiFqB,QAC3Ba,KAAK,QACLC,KAAMnC,EAAc,aAAe,cACnCoC,QAASnC,EAAgBY,SAEzBE,EAAC0B,EAAW,QAGhB1B,EAAC2B,EAAkB,CAACnD,YAAaA,EAAaoD,SAAUnD,SAIhE,EAEAT,EAAU6D,UAAY,CACpB3D,WAAY4D,EAAUC,OAAOC,WAC7B7D,cAAe2D,EAAUC,OAAOC,WAChC5D,oBAAqB0D,EAAUC,OAAOC,WACtC3D,cAAeyD,EAAUG,KAAKD,WAC9B1D,aAAcwD,EAAUI,OAAOF,WAC/BzD,gBAAiBuD,EAAUK,KAAKH,WAChCxD,YAAasD,EAAUM,QAAQN,EAAUI,QAAQF,WACjDvD,oBAAqBqD,EAAUK,KAAKH"}
@@ -1 +1 @@
1
- {"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/components/Filter/Filter.js"],"names":[],"mappings":"AAuBO;;;;;;;;gBA0NN;;;;;;;;;;;;;;;;sBAhPqB,YAAY"}
1
+ {"version":3,"file":"Filter.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV5/components/Filter/Filter.js"],"names":[],"mappings":"AAuBO;;;;;;;;gBAyNN;;;;;;;;;;;;;;;;sBA/OqB,YAAY"}
@@ -1,2 +1,2 @@
1
- import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as o,useCallback as s}from"react";import n from"prop-types";import{omit as i,startCase as r,isEmpty as p}from"lodash";import m from"moment";import c from"classnames";import{Divider as a,ListItemText as l}from"@material-ui/core";import{FilterType as d,StatusOptions as j,OBJECTIVE_PERIOD_LIST as u}from"../../constants.js";import{usePickerPropsStore as C}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as A}from"../../stores/filter-store/useFilterStore.js";import{MultiSelect as f}from"./MultiSelect.js";import{WellSection as V}from"./WellSection.js";import{PeriodSelect as S}from"./PeriodSelect.js";import v from"./Filter.module.css.js";import{UndoIcon as g}from"../../../../icons/iconParkIcons.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{jsxs as I,jsx as b,Fragment 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"../../../../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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";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{Switch as T}from"../../../../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{ButtonText as D}from"../../../../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"../../../../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"../../../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 P from"../../../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"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"zustand";import"../../stores/picker-props-store/PickerPropsStoreContext.js";import"lodash/isEqual";import"../../stores/filter-store/FilterStoreContext.js";import"../../stores/view-store/ViewStoreContext.js";import"../../api/shared/dataFormatter.js";import"geolib";import"../../../../utils/convert.js";import"../../utils/wellTransformations.js";import"react-virtualized";import"../../effects/useAssetsData.js";import"../../../../permissions/PermissionsContext.js";import"../../../../permissions/constants/index.js";import"../../../../permissions/withPermissionsHOC.js";import"../../../../permissions/ProvidePermissions.js";import"../AppHeader/AppHeader.js";import"react-map-gl/mapbox";import"mapbox-gl/dist/mapbox-gl.css";import"../Map/OffsetWellMap/components/RadiusInput/RadiusInput.module.css.js";import"../Map/OffsetWellMap/components/MapControls/MapControls.module.css.js";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../Map/OffsetWellMap/components/WellTooltip/WellTooltip.module.css.js";import"../Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.module.css.js";import"../Map/OffsetWellMap/components/LassoTip/LassoTip.module.css.js";import"@turf/circle";import"@turf/bbox";import"../Map/OffsetWellMap/hooks/useWellMarkers.js";import"@mapbox/mapbox-gl-draw";import"@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css";import"../Map/OffsetWellMap/OffsetWellMap.module.css.js";import"../../../../config/mapbox/index.js";import"../Map/WellsMap.module.css.js";import"../OffsetWellsTable/OffsetWellsTable.js";import"../OffsetWellsTable/OffsetWellsTableHead.js";import"../OffsetWellsTable/AdvancedSearch/AdvancedSearch.js";import"../OffsetWellsTable/AdvancedSearch/constants.js";import"../../utils/index.js";import"../../OffsetWellPickerV5.module.css.js";import"../OffsetWellsTable/OffsetWellsTable.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"../../../OffsetWellPickerV4/utils/apiCalls.js";import"../../../OffsetWellPickerV4/effects/useAdvancedWells.js";import"../../../OffsetWellPickerV4/constants.js";import"../../../OffsetWellPickerV4/effects/useAssetsData.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"../../../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"../../../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";var x=function(n){var x=n.isHidden,F=n.filterOptions,B=n.wellSections,M=n.selectedWellSection,y=n.subjectWell,W=n.assetCompanyId,k=n.onChangeBicWells,L=C((function(t){return t.isWDUser})),O=A((function(t){return t.filters})),E=A((function(t){return t.setFilter})),H=A((function(t){return t.setFilters})),w=A((function(t){return t.resetFilters})),R=A((function(t){return t.setTempFilter})),q=A((function(t){return t.clearTempFilter})),G=A((function(t){return t.commitTempFilter})),N=A((function(t){return t.tempFilters})),z=o({}),U=e(z,2),Z=U[0],Y=U[1],X=s((function(t,e){t===d.sideTracks?E(d.sideTracks,e):e?E(t,e):H(i(O,[t]))}),[O,E,H]),J=function(e){return function(o){var s=m(o);if(s.isValid()){var n=s.unix(),i=!1;"timeRangeFrom"===e?i=n>=O[d.timeRangeTo]:"timeRangeTo"===e&&(i=n<=O[d.timeRangeFrom]),Y(i?t({},e,!0):{}),E(e,n)}}};return I("div",{className:c(v.filterContainer,t({},v.hidden,x)),children:[b(a,{className:v.divideLine}),I("div",{className:v.filterGroup,children:[F.map((function(t,e){var o=t.value,s=t.label,n=t.options;if(o===d.company){var i,r={};n.forEach((function(t){r[t.id]=t.name}));var p=y?"Subject Well Company":"All",m=W?null===(i=n.find((function(t){return t.id===W})))||void 0===i?void 0:i.name:null;return b(f,{label:s,options:n.map((function(t){return t.name})),currentValues:(O[o]||[]).map((function(t){return r[t]})).filter(Boolean),tempValues:void 0!==N[o]?(N[o]||[]).map((function(t){return r[t]})).filter(Boolean):void 0,showAllOption:!0,allText:p,linkedDefaultValue:m,ListMenuItem:function(t){var e=t.value;return b(l,{primary:e})},onChange:function(t){if(null===t||Array.isArray(t)&&0===t.length){X(o,y&&W?void 0:[])}else{var e=t.map((function(t){var e;return null===(e=n.find((function(e){return e.name===t})))||void 0===e?void 0:e.id})).filter(Boolean);X(o,e)}},onTempChange:function(t){var e=t.map((function(t){var e;return null===(e=n.find((function(e){return e.name===t})))||void 0===e?void 0:e.id})).filter(Boolean);R(o,e)},onCommit:function(){return G(o)},onCancel:function(){return q(o)}},s)}return b(f,{label:s,options:n,currentValues:O[o]||[],tempValues:N[o],ListMenuItem:function(t){var e=t.value;return b(l,{primary:e})},onChange:function(t){return X(o,t)},onTempChange:function(t){return R(o,t)},onCommit:function(){return G(o)},onCancel:function(){return q(o)}},e)})),b(f,{label:"Status",options:j.map((function(t){return t.value})),currentValues:O[d.status]||[],tempValues:N[d.status],ValueComponent:function(t){var e,o=t.value;return I("div",{className:v.statusItem,children:[b("div",{className:v.statusIcon,style:{background:null===(e=j.find((function(t){return t.value===o})))||void 0===e?void 0:e.color}}),r(o)]})},ListMenuItem:function(t){var e,o=t.value;return I("div",{className:v.statusItem,children:[b("div",{className:v.statusIcon,style:{background:null===(e=j.find((function(t){return t.value===o})))||void 0===e?void 0:e.color}}),b(l,{primary:r(o)})]})},onChange:function(t){return X(d.status,t)},onTempChange:function(t){return R(d.status,t)},onCommit:function(){return G(d.status)},onCancel:function(){return q(d.status)}}),b(S,{label:"Last Active",currentValue:O[d.period]||"all",options:u,className:v.companySelect,onChange:function(t){return X(d.period,t)}}),"custom"===O[d.period]&&I(h,{children:[b("div",{className:v.filterItem,children:b(P,{variant:"inline",label:"Date From",format:"MM/DD/YY HH:mm",value:1e3*O[d.timeRangeFrom]||null,onChange:J("timeRangeFrom"),error:Z.timeRangeFrom})}),b("div",{className:v.filterItem,children:b(P,{variant:"inline",label:"Date To",format:"MM/DD/YY HH:mm",value:1e3*O[d.timeRangeTo]||null,onChange:J("timeRangeTo"),error:Z.timeRangeTo})})]}),L&&!p(B)&&b(V,{selectedValue:M,wellSections:B,onChange:k}),b(T,{testId:"".concat("Filter","_ExcludeSidetracks"),size:"small",checked:O[d.sideTracks]||!1,onChange:function(t){return X(d.sideTracks,t)},onLabel:"Exclude Sidetracks"}),b(D,{prefix:b(g,{}),onClick:w,disabled:p(O),children:"To Defaults"})]})]})};x.propTypes={isHidden:n.bool.isRequired,filterOptions:n.arrayOf(n.shape({})).isRequired,wellSections:n.arrayOf(n.shape({})).isRequired,selectedWellSection:n.string.isRequired,subjectWell:n.shape({}),assetCompanyId:n.number.isRequired,onChangeBicWells:n.func.isRequired},x.defaultProps={subjectWell:null};export{x as Filter};
1
+ import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useState as o,useCallback as s}from"react";import n from"prop-types";import{omit as i,startCase as r,isEmpty as p}from"lodash";import m from"moment";import c from"classnames";import{ListItemText as a}from"@material-ui/core";import{FilterType as l,StatusOptions as d,OBJECTIVE_PERIOD_LIST as j}from"../../constants.js";import{usePickerPropsStore as u}from"../../stores/picker-props-store/usePickerPropsStore.js";import{useFilterStore as C}from"../../stores/filter-store/useFilterStore.js";import{MultiSelect as A}from"./MultiSelect.js";import{WellSection as V}from"./WellSection.js";import{PeriodSelect as f}from"./PeriodSelect.js";import S from"./Filter.module.css.js";import{UndoIcon as v}from"../../../../icons/iconParkIcons.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{jsx as I,jsxs as g,Fragment 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"../../../../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"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";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{Switch as D}from"../../../../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{ButtonText as b}from"../../../../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"../../../../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"../../../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 T from"../../../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"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../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"../../../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";var P=function(n){var P=n.isHidden,F=n.filterOptions,x=n.wellSections,B=n.selectedWellSection,y=n.subjectWell,k=n.assetCompanyId,M=n.onChangeBicWells,L=u((function(t){return t.isWDUser})),W=C((function(t){return t.filters})),E=C((function(t){return t.setFilter})),H=C((function(t){return t.setFilters})),O=C((function(t){return t.resetFilters})),R=C((function(t){return t.setTempFilter})),w=C((function(t){return t.clearTempFilter})),q=C((function(t){return t.commitTempFilter})),G=C((function(t){return t.tempFilters})),N=o({}),z=e(N,2),U=z[0],Z=z[1],Y=s((function(t,e){t===l.sideTracks?E(l.sideTracks,e):e?E(t,e):H(i(null!=W?W:{},[t]))}),[W,E,H]),X=function(e){return function(o){var s=m(o);if(s.isValid()){var n=s.unix(),i=!1;"timeRangeFrom"===e?i=n>=W[l.timeRangeTo]:"timeRangeTo"===e&&(i=n<=W[l.timeRangeFrom]),Z(i?t({},e,!0):{}),E(e,n)}}};return I("div",{className:c(S.filterContainer,t({},S.hidden,P)),children:g("div",{className:S.filterGroup,children:[F.map((function(t,e){var o=t.value,s=t.label,n=t.options;if(o===l.company){var i,r={};n.forEach((function(t){r[t.id]=t.name}));var p=y?"Subject Well Company":"All",m=k?null===(i=n.find((function(t){return t.id===k})))||void 0===i?void 0:i.name:null;return I(A,{label:s,options:n.map((function(t){return t.name})),currentValues:(W[o]||[]).map((function(t){return r[t]})).filter(Boolean),tempValues:void 0!==G[o]?(G[o]||[]).map((function(t){return r[t]})).filter(Boolean):void 0,showAllOption:!0,allText:p,linkedDefaultValue:m,ListMenuItem:function(t){var e=t.value;return I(a,{primary:e})},onChange:function(t){if(null===t||Array.isArray(t)&&0===t.length){Y(o,y&&k?void 0:[])}else{var e=t.map((function(t){var e;return null===(e=n.find((function(e){return e.name===t})))||void 0===e?void 0:e.id})).filter(Boolean);Y(o,e)}},onTempChange:function(t){var e=t.map((function(t){var e;return null===(e=n.find((function(e){return e.name===t})))||void 0===e?void 0:e.id})).filter(Boolean);R(o,e)},onCommit:function(){return q(o)},onCancel:function(){return w(o)}},s)}return I(A,{label:s,options:n,currentValues:W[o]||[],tempValues:G[o],ListMenuItem:function(t){var e=t.value;return I(a,{primary:e})},onChange:function(t){return Y(o,t)},onTempChange:function(t){return R(o,t)},onCommit:function(){return q(o)},onCancel:function(){return w(o)}},e)})),I(A,{label:"Status",options:d.map((function(t){return t.value})),currentValues:W[l.status]||[],tempValues:G[l.status],ValueComponent:function(t){var e,o=t.value;return g("div",{className:S.statusItem,children:[I("div",{className:S.statusIcon,style:{background:null===(e=d.find((function(t){return t.value===o})))||void 0===e?void 0:e.color}}),r(o)]})},ListMenuItem:function(t){var e,o=t.value;return g("div",{className:S.statusItem,children:[I("div",{className:S.statusIcon,style:{background:null===(e=d.find((function(t){return t.value===o})))||void 0===e?void 0:e.color}}),I(a,{primary:r(o)})]})},onChange:function(t){return Y(l.status,t)},onTempChange:function(t){return R(l.status,t)},onCommit:function(){return q(l.status)},onCancel:function(){return w(l.status)}}),I(f,{label:"Last Active",currentValue:W[l.period]||"all",options:j,className:S.companySelect,onChange:function(t){return Y(l.period,t)}}),"custom"===W[l.period]&&g(h,{children:[I("div",{className:S.filterItem,children:I(T,{variant:"inline",label:"Date From",format:"MM/DD/YY HH:mm",value:1e3*W[l.timeRangeFrom]||null,onChange:X("timeRangeFrom"),error:U.timeRangeFrom})}),I("div",{className:S.filterItem,children:I(T,{variant:"inline",label:"Date To",format:"MM/DD/YY HH:mm",value:1e3*W[l.timeRangeTo]||null,onChange:X("timeRangeTo"),error:U.timeRangeTo})})]}),L&&!p(x)&&I(V,{selectedValue:B,wellSections:x,onChange:M}),I(D,{testId:"".concat("Filter","_ExcludeSidetracks"),size:"small",checked:W[l.sideTracks]||!1,onChange:function(t){return Y(l.sideTracks,t)},onLabel:"Exclude Sidetracks"}),I(b,{prefix:I(v,{}),onClick:O,disabled:p(W),children:"To Defaults"})]})})};P.propTypes={isHidden:n.bool.isRequired,filterOptions:n.arrayOf(n.shape({})).isRequired,wellSections:n.arrayOf(n.shape({})).isRequired,selectedWellSection:n.string.isRequired,subjectWell:n.shape({}),assetCompanyId:n.number.isRequired,onChangeBicWells:n.func.isRequired},P.defaultProps={subjectWell:null};export{P as Filter};
2
2
  //# sourceMappingURL=Filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Filter.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/Filter/Filter.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty, omit, startCase } from 'lodash';\nimport moment from 'moment';\nimport classNames from 'classnames';\nimport { Divider, ListItemText } from '@material-ui/core';\n\nimport { FilterType, OBJECTIVE_PERIOD_LIST, StatusOptions } from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useFilterStore } from '../../stores/filter-store/useFilterStore';\n\nimport { MultiSelect } from './MultiSelect';\nimport { WellSection } from './WellSection';\nimport { PeriodSelect } from './PeriodSelect';\n\nimport styles from './Filter.module.css';\n\nimport { UndoIcon } from '~/icons';\nimport { DateTimePicker } from '~/components';\nimport { Switch, ButtonText } from '~/componentsV2';\n\nconst PAGE_NAME = 'Filter';\n\nexport const Filter = ({\n isHidden,\n filterOptions,\n wellSections,\n selectedWellSection,\n subjectWell,\n assetCompanyId,\n onChangeBicWells,\n}) => {\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const filters = useFilterStore(state => state.filters);\n const setFilter = useFilterStore(state => state.setFilter);\n const setFilters = useFilterStore(state => state.setFilters);\n const resetFilters = useFilterStore(state => state.resetFilters);\n const setTempFilter = useFilterStore(state => state.setTempFilter);\n const clearTempFilter = useFilterStore(state => state.clearTempFilter);\n const commitTempFilter = useFilterStore(state => state.commitTempFilter);\n const tempFilters = useFilterStore(state => state.tempFilters);\n const [errors, setErrors] = useState({});\n\n const handleChangeFilter = useCallback(\n (type, value) => {\n if (type === FilterType.sideTracks) {\n setFilter(FilterType.sideTracks, value);\n } else if (value) {\n setFilter(type, value);\n } else {\n // Remove the filter by setting the entire filters object without this key\n setFilters(omit(filters, [type]));\n }\n },\n [filters, setFilter, setFilters]\n );\n\n const handleCustomDateChange = key => dateString => {\n const newDate = moment(dateString);\n if (!newDate.isValid()) {\n return;\n }\n const timestamp = newDate.unix();\n\n let isInvalidDate = false;\n if (key === 'timeRangeFrom') {\n isInvalidDate = timestamp >= filters[FilterType.timeRangeTo];\n } else if (key === 'timeRangeTo') {\n isInvalidDate = timestamp <= filters[FilterType.timeRangeFrom];\n }\n\n if (isInvalidDate) {\n setErrors({\n [key]: true,\n });\n } else {\n setErrors({});\n }\n\n setFilter(key, timestamp);\n };\n\n return (\n <div className={classNames(styles.filterContainer, { [styles.hidden]: isHidden })}>\n <Divider className={styles.divideLine} />\n <div className={styles.filterGroup}>\n {filterOptions.map(({ value, label, options }, index) => {\n const isCompanyFilter = value === FilterType.company;\n\n // Company filter: options are company objects {id, name}\n if (isCompanyFilter) {\n const companyMap = {};\n options.forEach(company => {\n companyMap[company.id] = company.name;\n });\n\n // Cosmetic: show \"Subject Well Company\" instead of \"All\" when subject well exists\n const allText = subjectWell ? 'Subject Well Company' : 'All';\n\n // Find subject well's company name to show as linked default\n const subjectCompanyName = assetCompanyId\n ? options.find(c => c.id === assetCompanyId)?.name\n : null;\n\n return (\n <MultiSelect\n key={label}\n label={label}\n options={options.map(c => c.name)}\n currentValues={(filters[value] || []).map(id => companyMap[id]).filter(Boolean)}\n tempValues={\n tempFilters[value] !== undefined\n ? (tempFilters[value] || []).map(id => companyMap[id]).filter(Boolean)\n : undefined\n }\n showAllOption\n allText={allText}\n linkedDefaultValue={subjectCompanyName}\n ListMenuItem={({ value: name }) => <ListItemText primary={name} />}\n onChange={names => {\n // When \"All\" (or \"Subject Well Company\") is selected, MultiSelect sends null\n if (names === null || (Array.isArray(names) && names.length === 0)) {\n // If subject well exists, remove filter (undefined) to restore initial state\n // Otherwise, set empty array to fetch all companies\n const filterValue = subjectWell && assetCompanyId ? undefined : [];\n handleChangeFilter(value, filterValue);\n return;\n }\n const ids = names\n .map(name => options.find(c => c.name === name)?.id)\n .filter(Boolean);\n handleChangeFilter(value, ids);\n }}\n onTempChange={names => {\n const ids = names\n .map(name => options.find(c => c.name === name)?.id)\n .filter(Boolean);\n setTempFilter(value, ids);\n }}\n onCommit={() => commitTempFilter(value)}\n onCancel={() => clearTempFilter(value)}\n />\n );\n }\n\n // Other filters: options are simple strings\n return (\n <MultiSelect\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n label={label}\n options={options}\n currentValues={filters[value] || []}\n tempValues={tempFilters[value]}\n ListMenuItem={({ value: itemValue }) => <ListItemText primary={itemValue} />}\n onChange={filterValue => handleChangeFilter(value, filterValue)}\n onTempChange={filterValue => setTempFilter(value, filterValue)}\n onCommit={() => commitTempFilter(value)}\n onCancel={() => clearTempFilter(value)}\n />\n );\n })}\n <MultiSelect\n label=\"Status\"\n options={StatusOptions.map(item => item.value)}\n currentValues={filters[FilterType.status] || []}\n tempValues={tempFilters[FilterType.status]}\n ValueComponent={({ value }) => (\n <div className={styles.statusItem}>\n <div\n className={styles.statusIcon}\n style={{ background: StatusOptions.find(item => item.value === value)?.color }}\n />\n {startCase(value)}\n </div>\n )}\n ListMenuItem={({ value }) => (\n <div className={styles.statusItem}>\n <div\n className={styles.statusIcon}\n style={{ background: StatusOptions.find(item => item.value === value)?.color }}\n />\n <ListItemText primary={startCase(value)} />\n </div>\n )}\n onChange={value => handleChangeFilter(FilterType.status, value)}\n onTempChange={value => setTempFilter(FilterType.status, value)}\n onCommit={() => commitTempFilter(FilterType.status)}\n onCancel={() => clearTempFilter(FilterType.status)}\n />\n <PeriodSelect\n label=\"Last Active\"\n currentValue={filters[FilterType.period] || 'all'}\n options={OBJECTIVE_PERIOD_LIST}\n className={styles.companySelect}\n onChange={value => handleChangeFilter(FilterType.period, value)}\n />\n {filters[FilterType.period] === 'custom' && (\n <>\n <div className={styles.filterItem}>\n <DateTimePicker\n variant=\"inline\"\n label=\"Date From\"\n format=\"MM/DD/YY HH:mm\"\n value={filters[FilterType.timeRangeFrom] * 1000 || null}\n onChange={handleCustomDateChange('timeRangeFrom')}\n error={errors.timeRangeFrom}\n />\n </div>\n <div className={styles.filterItem}>\n <DateTimePicker\n variant=\"inline\"\n label=\"Date To\"\n format=\"MM/DD/YY HH:mm\"\n value={filters[FilterType.timeRangeTo] * 1000 || null}\n onChange={handleCustomDateChange('timeRangeTo')}\n error={errors.timeRangeTo}\n />\n </div>\n </>\n )}\n {isWDUser && !isEmpty(wellSections) && (\n <WellSection\n selectedValue={selectedWellSection}\n wellSections={wellSections}\n onChange={onChangeBicWells}\n />\n )}\n <Switch\n testId={`${PAGE_NAME}_ExcludeSidetracks`}\n size=\"small\"\n checked={filters[FilterType.sideTracks] || false}\n onChange={checked => handleChangeFilter(FilterType.sideTracks, checked)}\n onLabel=\"Exclude Sidetracks\"\n />\n <ButtonText prefix={<UndoIcon />} onClick={resetFilters} disabled={isEmpty(filters)}>\n To Defaults\n </ButtonText>\n </div>\n </div>\n );\n};\n\nFilter.propTypes = {\n isHidden: PropTypes.bool.isRequired,\n filterOptions: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n wellSections: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n selectedWellSection: PropTypes.string.isRequired,\n subjectWell: PropTypes.shape({}),\n assetCompanyId: PropTypes.number.isRequired,\n onChangeBicWells: PropTypes.func.isRequired,\n};\n\nFilter.defaultProps = {\n subjectWell: null,\n};\n"],"names":["Filter","_ref","isHidden","filterOptions","wellSections","selectedWellSection","subjectWell","assetCompanyId","onChangeBicWells","isWDUser","usePickerPropsStore","state","filters","useFilterStore","setFilter","setFilters","resetFilters","setTempFilter","clearTempFilter","commitTempFilter","tempFilters","_useState","useState","_useState2","_slicedToArray","errors","setErrors","handleChangeFilter","useCallback","type","value","FilterType","sideTracks","omit","handleCustomDateChange","key","dateString","newDate","moment","isValid","timestamp","unix","isInvalidDate","timeRangeTo","timeRangeFrom","_jsxs","className","classNames","styles","filterContainer","hidden","children","_jsx","Divider","divideLine","filterGroup","map","_ref2","index","label","options","company","_options$find","companyMap","forEach","id","name","allText","subjectCompanyName","find","c","MultiSelect","currentValues","filter","Boolean","tempValues","undefined","showAllOption","linkedDefaultValue","ListMenuItem","_ref3","ListItemText","primary","onChange","names","Array","isArray","length","ids","_options$find2","onTempChange","_options$find3","onCommit","onCancel","_ref4","itemValue","filterValue","StatusOptions","item","status","ValueComponent","_ref5","_StatusOptions$find","statusItem","statusIcon","style","background","color","startCase","_ref6","_StatusOptions$find2","PeriodSelect","currentValue","period","OBJECTIVE_PERIOD_LIST","companySelect","_Fragment","filterItem","DateTimePicker","variant","format","error","isEmpty","WellSection","selectedValue","Switch","testId","concat","size","checked","onLabel","ButtonText","prefix","UndoIcon","onClick","disabled","propTypes","PropTypes","bool","isRequired","arrayOf","shape","string","number","func","defaultProps"],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,EAACkE,EAAc,CACbC,QAAQ,SACR5D,MAAM,UACN6D,OAAO,iBACP1F,MAAyC,IAAlClB,EAAQmB,EAAWY,cAAuB,KACjDwC,SAAUjD,EAAuB,eACjCuF,MAAOhG,EAAOkB,mBAKrBlC,IAAaiH,EAAQtH,IACpBgD,EAACuE,EAAW,CACVC,cAAevH,EACfD,aAAcA,EACd+E,SAAU3E,IAGd4C,EAACyE,EAAM,CACLC,OAAM,GAAAC,OAhNE,SAgNiC,sBACzCC,KAAK,QACLC,QAASrH,EAAQmB,EAAWC,cAAe,EAC3CmD,SAAU,SAAA8C,GAAO,OAAItG,EAAmBI,EAAWC,WAAYiG,EAAS,EACxEC,QAAQ,uBAEV9E,EAAC+E,EAAU,CAACC,OAAQhF,EAACiF,EAAY,IAACC,QAAStH,EAAcuH,SAAUb,EAAQ9G,GAASuC,SAAA,qBAM5F,EAEAnD,EAAOwI,UAAY,CACjBtI,SAAUuI,EAAUC,KAAKC,WACzBxI,cAAesI,EAAUG,QAAQH,EAAUI,MAAM,CAAA,IAAKF,WACtDvI,aAAcqI,EAAUG,QAAQH,EAAUI,MAAM,CAAA,IAAKF,WACrDtI,oBAAqBoI,EAAUK,OAAOH,WACtCrI,YAAamI,EAAUI,MAAM,IAC7BtI,eAAgBkI,EAAUM,OAAOJ,WACjCnI,iBAAkBiI,EAAUO,KAAKL,YAGnC3I,EAAOiJ,aAAe,CACpB3I,YAAa"}
1
+ {"version":3,"file":"Filter.js","sources":["../../../../../src/components/OffsetWellPickerV5/components/Filter/Filter.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { isEmpty, omit, startCase } from 'lodash';\nimport moment from 'moment';\nimport classNames from 'classnames';\nimport { ListItemText } from '@material-ui/core';\n\nimport { FilterType, OBJECTIVE_PERIOD_LIST, StatusOptions } from '../../constants';\nimport { usePickerPropsStore } from '../../stores/picker-props-store/usePickerPropsStore';\nimport { useFilterStore } from '../../stores/filter-store/useFilterStore';\n\nimport { MultiSelect } from './MultiSelect';\nimport { WellSection } from './WellSection';\nimport { PeriodSelect } from './PeriodSelect';\n\nimport styles from './Filter.module.css';\n\nimport { UndoIcon } from '~/icons';\nimport { DateTimePicker } from '~/components';\nimport { Switch, ButtonText } from '~/componentsV2';\n\nconst PAGE_NAME = 'Filter';\n\nexport const Filter = ({\n isHidden,\n filterOptions,\n wellSections,\n selectedWellSection,\n subjectWell,\n assetCompanyId,\n onChangeBicWells,\n}) => {\n const isWDUser = usePickerPropsStore(state => state.isWDUser);\n const filters = useFilterStore(state => state.filters);\n const setFilter = useFilterStore(state => state.setFilter);\n const setFilters = useFilterStore(state => state.setFilters);\n const resetFilters = useFilterStore(state => state.resetFilters);\n const setTempFilter = useFilterStore(state => state.setTempFilter);\n const clearTempFilter = useFilterStore(state => state.clearTempFilter);\n const commitTempFilter = useFilterStore(state => state.commitTempFilter);\n const tempFilters = useFilterStore(state => state.tempFilters);\n const [errors, setErrors] = useState({});\n\n const handleChangeFilter = useCallback(\n (type, value) => {\n if (type === FilterType.sideTracks) {\n setFilter(FilterType.sideTracks, value);\n } else if (value) {\n setFilter(type, value);\n } else {\n // Remove the filter by setting the entire filters object without this key\n setFilters(omit(filters ?? {}, [type]));\n }\n },\n [filters, setFilter, setFilters]\n );\n\n const handleCustomDateChange = key => dateString => {\n const newDate = moment(dateString);\n if (!newDate.isValid()) {\n return;\n }\n const timestamp = newDate.unix();\n\n let isInvalidDate = false;\n if (key === 'timeRangeFrom') {\n isInvalidDate = timestamp >= filters[FilterType.timeRangeTo];\n } else if (key === 'timeRangeTo') {\n isInvalidDate = timestamp <= filters[FilterType.timeRangeFrom];\n }\n\n if (isInvalidDate) {\n setErrors({\n [key]: true,\n });\n } else {\n setErrors({});\n }\n\n setFilter(key, timestamp);\n };\n\n return (\n <div className={classNames(styles.filterContainer, { [styles.hidden]: isHidden })}>\n <div className={styles.filterGroup}>\n {filterOptions.map(({ value, label, options }, index) => {\n const isCompanyFilter = value === FilterType.company;\n\n // Company filter: options are company objects {id, name}\n if (isCompanyFilter) {\n const companyMap = {};\n options.forEach(company => {\n companyMap[company.id] = company.name;\n });\n\n // Cosmetic: show \"Subject Well Company\" instead of \"All\" when subject well exists\n const allText = subjectWell ? 'Subject Well Company' : 'All';\n\n // Find subject well's company name to show as linked default\n const subjectCompanyName = assetCompanyId\n ? options.find(c => c.id === assetCompanyId)?.name\n : null;\n\n return (\n <MultiSelect\n key={label}\n label={label}\n options={options.map(c => c.name)}\n currentValues={(filters[value] || []).map(id => companyMap[id]).filter(Boolean)}\n tempValues={\n tempFilters[value] !== undefined\n ? (tempFilters[value] || []).map(id => companyMap[id]).filter(Boolean)\n : undefined\n }\n showAllOption\n allText={allText}\n linkedDefaultValue={subjectCompanyName}\n ListMenuItem={({ value: name }) => <ListItemText primary={name} />}\n onChange={names => {\n // When \"All\" (or \"Subject Well Company\") is selected, MultiSelect sends null\n if (names === null || (Array.isArray(names) && names.length === 0)) {\n // If subject well exists, remove filter (undefined) to restore initial state\n // Otherwise, set empty array to fetch all companies\n const filterValue = subjectWell && assetCompanyId ? undefined : [];\n handleChangeFilter(value, filterValue);\n return;\n }\n const ids = names\n .map(name => options.find(c => c.name === name)?.id)\n .filter(Boolean);\n handleChangeFilter(value, ids);\n }}\n onTempChange={names => {\n const ids = names\n .map(name => options.find(c => c.name === name)?.id)\n .filter(Boolean);\n setTempFilter(value, ids);\n }}\n onCommit={() => commitTempFilter(value)}\n onCancel={() => clearTempFilter(value)}\n />\n );\n }\n\n // Other filters: options are simple strings\n return (\n <MultiSelect\n // eslint-disable-next-line react/no-array-index-key\n key={index}\n label={label}\n options={options}\n currentValues={filters[value] || []}\n tempValues={tempFilters[value]}\n ListMenuItem={({ value: itemValue }) => <ListItemText primary={itemValue} />}\n onChange={filterValue => handleChangeFilter(value, filterValue)}\n onTempChange={filterValue => setTempFilter(value, filterValue)}\n onCommit={() => commitTempFilter(value)}\n onCancel={() => clearTempFilter(value)}\n />\n );\n })}\n <MultiSelect\n label=\"Status\"\n options={StatusOptions.map(item => item.value)}\n currentValues={filters[FilterType.status] || []}\n tempValues={tempFilters[FilterType.status]}\n ValueComponent={({ value }) => (\n <div className={styles.statusItem}>\n <div\n className={styles.statusIcon}\n style={{ background: StatusOptions.find(item => item.value === value)?.color }}\n />\n {startCase(value)}\n </div>\n )}\n ListMenuItem={({ value }) => (\n <div className={styles.statusItem}>\n <div\n className={styles.statusIcon}\n style={{ background: StatusOptions.find(item => item.value === value)?.color }}\n />\n <ListItemText primary={startCase(value)} />\n </div>\n )}\n onChange={value => handleChangeFilter(FilterType.status, value)}\n onTempChange={value => setTempFilter(FilterType.status, value)}\n onCommit={() => commitTempFilter(FilterType.status)}\n onCancel={() => clearTempFilter(FilterType.status)}\n />\n <PeriodSelect\n label=\"Last Active\"\n currentValue={filters[FilterType.period] || 'all'}\n options={OBJECTIVE_PERIOD_LIST}\n className={styles.companySelect}\n onChange={value => handleChangeFilter(FilterType.period, value)}\n />\n {filters[FilterType.period] === 'custom' && (\n <>\n <div className={styles.filterItem}>\n <DateTimePicker\n variant=\"inline\"\n label=\"Date From\"\n format=\"MM/DD/YY HH:mm\"\n value={filters[FilterType.timeRangeFrom] * 1000 || null}\n onChange={handleCustomDateChange('timeRangeFrom')}\n error={errors.timeRangeFrom}\n />\n </div>\n <div className={styles.filterItem}>\n <DateTimePicker\n variant=\"inline\"\n label=\"Date To\"\n format=\"MM/DD/YY HH:mm\"\n value={filters[FilterType.timeRangeTo] * 1000 || null}\n onChange={handleCustomDateChange('timeRangeTo')}\n error={errors.timeRangeTo}\n />\n </div>\n </>\n )}\n {isWDUser && !isEmpty(wellSections) && (\n <WellSection\n selectedValue={selectedWellSection}\n wellSections={wellSections}\n onChange={onChangeBicWells}\n />\n )}\n <Switch\n testId={`${PAGE_NAME}_ExcludeSidetracks`}\n size=\"small\"\n checked={filters[FilterType.sideTracks] || false}\n onChange={checked => handleChangeFilter(FilterType.sideTracks, checked)}\n onLabel=\"Exclude Sidetracks\"\n />\n <ButtonText prefix={<UndoIcon />} onClick={resetFilters} disabled={isEmpty(filters)}>\n To Defaults\n </ButtonText>\n </div>\n </div>\n );\n};\n\nFilter.propTypes = {\n isHidden: PropTypes.bool.isRequired,\n filterOptions: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n wellSections: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\n selectedWellSection: PropTypes.string.isRequired,\n subjectWell: PropTypes.shape({}),\n assetCompanyId: PropTypes.number.isRequired,\n onChangeBicWells: PropTypes.func.isRequired,\n};\n\nFilter.defaultProps = {\n subjectWell: null,\n};\n"],"names":["Filter","_ref","isHidden","filterOptions","wellSections","selectedWellSection","subjectWell","assetCompanyId","onChangeBicWells","isWDUser","usePickerPropsStore","state","filters","useFilterStore","setFilter","setFilters","resetFilters","setTempFilter","clearTempFilter","commitTempFilter","tempFilters","_useState","useState","_useState2","_slicedToArray","errors","setErrors","handleChangeFilter","useCallback","type","value","FilterType","sideTracks","omit","handleCustomDateChange","key","dateString","newDate","moment","isValid","timestamp","unix","isInvalidDate","timeRangeTo","timeRangeFrom","_jsx","className","classNames","styles","filterContainer","hidden","children","_jsxs","filterGroup","map","_ref2","index","label","options","company","_options$find","companyMap","forEach","id","name","allText","subjectCompanyName","find","c","MultiSelect","currentValues","filter","Boolean","tempValues","undefined","showAllOption","linkedDefaultValue","ListMenuItem","_ref3","ListItemText","primary","onChange","names","Array","isArray","length","ids","_options$find2","onTempChange","_options$find3","onCommit","onCancel","_ref4","itemValue","filterValue","StatusOptions","item","status","ValueComponent","_ref5","_StatusOptions$find","statusItem","statusIcon","style","background","color","startCase","_ref6","_StatusOptions$find2","PeriodSelect","currentValue","period","OBJECTIVE_PERIOD_LIST","companySelect","_Fragment","filterItem","DateTimePicker","variant","format","error","isEmpty","WellSection","selectedValue","Switch","testId","concat","size","checked","onLabel","ButtonText","prefix","UndoIcon","onClick","disabled","propTypes","PropTypes","bool","isRequired","arrayOf","shape","string","number","func","defaultProps"],"mappings":"y7yBAqBA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AAO,iBACPxF,MAAyC,IAAlClB,EAAQmB,EAAWY,cAAuB,KACjDsC,SAAU/C,EAAuB,eACjCqF,MAAO9F,EAAOkB,mBAKrBlC,IAAa+G,EAAQpH,IACpByC,EAAC4E,EAAW,CACVC,cAAerH,EACfD,aAAcA,EACd6E,SAAUzE,IAGdqC,EAAC8E,EAAM,CACLC,OAAM,GAAAC,OA/ME,SA+MiC,sBACzCC,KAAK,QACLC,QAASnH,EAAQmB,EAAWC,cAAe,EAC3CiD,SAAU,SAAA8C,GAAO,OAAIpG,EAAmBI,EAAWC,WAAY+F,EAAS,EACxEC,QAAQ,uBAEVnF,EAACoF,EAAU,CAACC,OAAQrF,EAACsF,EAAY,IAACC,QAASpH,EAAcqH,SAAUb,EAAQ5G,GAASuC,SAAA,oBAM5F,EAEAnD,EAAOsI,UAAY,CACjBpI,SAAUqI,EAAUC,KAAKC,WACzBtI,cAAeoI,EAAUG,QAAQH,EAAUI,MAAM,CAAA,IAAKF,WACtDrI,aAAcmI,EAAUG,QAAQH,EAAUI,MAAM,CAAA,IAAKF,WACrDpI,oBAAqBkI,EAAUK,OAAOH,WACtCnI,YAAaiI,EAAUI,MAAM,IAC7BpI,eAAgBgI,EAAUM,OAAOJ,WACjCjI,iBAAkB+H,EAAUO,KAAKL,YAGnCzI,EAAO+I,aAAe,CACpBzI,YAAa"}
@@ -1,2 +1,2 @@
1
- import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={filterContainer:"Filter-module_filterContainer__nneeM",hidden:"Filter-module_hidden__mo7y2",filterGroup:"Filter-module_filterGroup__tEkFd",divideLine:"Filter-module_divideLine__XvU-Y",statusItem:"Filter-module_statusItem__qY6HJ",statusIcon:"Filter-module_statusIcon__emgRj",companySelect:"Filter-module_companySelect__WPr6x",filterItem:"Filter-module_filterItem__R0VLr"};e('.Filter-module_filterContainer__nneeM{display:flex;flex-direction:column;left:0;margin-bottom:16px;padding:8px;position:sticky;right:0;top:0}.Filter-module_filterContainer__nneeM.Filter-module_hidden__mo7y2{display:none}.Filter-module_filterGroup__tEkFd{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(171px,1fr))}.Filter-module_divideLine__XvU-Y{margin-bottom:30px!important;margin-left:-8px!important;width:calc(100% + 16px)}.Filter-module_statusItem__qY6HJ{align-items:center;display:flex;gap:8px;padding-left:5px}.Filter-module_statusIcon__emgRj{border-radius:50%;height:8px;width:8px}.Filter-module_companySelect__WPr6x{width:100%}.Filter-module_filterItem__R0VLr{padding:"12px"}');export{t as default};
1
+ import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={filterContainer:"Filter-module_filterContainer__nneeM",hidden:"Filter-module_hidden__mo7y2",filterGroup:"Filter-module_filterGroup__tEkFd",statusItem:"Filter-module_statusItem__qY6HJ",statusIcon:"Filter-module_statusIcon__emgRj",companySelect:"Filter-module_companySelect__WPr6x",filterItem:"Filter-module_filterItem__R0VLr"};e('.Filter-module_filterContainer__nneeM{display:flex;flex-direction:column;left:0;margin-bottom:16px;padding:8px;position:sticky;right:0;top:0}.Filter-module_filterContainer__nneeM.Filter-module_hidden__mo7y2{display:none}.Filter-module_filterGroup__tEkFd{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(171px,1fr))}.Filter-module_statusItem__qY6HJ{align-items:center;display:flex;gap:8px;padding-left:5px}.Filter-module_statusIcon__emgRj{border-radius:50%;height:8px;width:8px}.Filter-module_companySelect__WPr6x{width:100%}.Filter-module_filterItem__R0VLr{padding:"12px"}');export{t as default};
2
2
  //# sourceMappingURL=Filter.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAG9E,OAAO,8BAA8B,CAAC;AAuBtC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAe,MAAM,uBAAuB,CAAC;AAQvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAubhD,CAAC"}
1
+ {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/OffsetWellPickerV5/components/Map/OffsetWellMap/OffsetWellMap.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAG9E,OAAO,8BAA8B,CAAC;AAyBtC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAe,MAAM,uBAAuB,CAAC;AAQvE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sBAAsB,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6chD,CAAC"}