@corva/ui 3.78.0-1 → 3.78.0-11

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 (584) hide show
  1. package/cjs-bundle/clients/index.js +1 -1
  2. package/cjs-bundle/clients/index.js.map +1 -1
  3. package/cjs-bundle/clients/subscriptions/constants.js +1 -1
  4. package/cjs-bundle/clients/subscriptions/constants.js.map +1 -1
  5. package/cjs-bundle/clients/subscriptions.js +1 -1
  6. package/cjs-bundle/clients/subscriptions.js.map +1 -1
  7. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  8. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  9. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  10. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  11. package/cjs-bundle/components/AssetEditor/effects/index.js +1 -1
  12. package/cjs-bundle/components/AssetEditor/effects/index.js.map +1 -1
  13. package/cjs-bundle/components/AssetEditorV2/effects/index.js +1 -1
  14. package/cjs-bundle/components/AssetEditorV2/effects/index.js.map +1 -1
  15. package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  16. package/cjs-bundle/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js.map +1 -1
  17. package/cjs-bundle/components/Attachment/index.js +1 -1
  18. package/cjs-bundle/components/Attachment/index.js.map +1 -1
  19. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  20. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  21. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  22. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  23. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  24. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  25. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  26. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  27. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  28. package/cjs-bundle/components/CollapsableSidebar.js.map +1 -1
  29. package/cjs-bundle/components/CommentComposer/CommentComposer.js +1 -1
  30. package/cjs-bundle/components/CommentComposer/CommentComposer.js.map +1 -1
  31. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  32. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  33. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  34. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  35. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  36. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  37. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  38. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  39. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  40. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  41. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  42. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  43. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  44. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  45. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  46. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  47. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  48. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  49. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  50. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  51. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  52. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  53. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  54. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  55. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  56. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  57. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  58. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  59. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  60. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  61. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  62. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  63. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  64. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  65. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  66. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  67. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  68. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  69. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  70. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  71. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  72. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  73. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  74. package/cjs-bundle/components/FeedItem/FeedItem.js.map +1 -1
  75. package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
  76. package/cjs-bundle/components/GradientManager/GradientManager.js.map +1 -1
  77. package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
  78. package/cjs-bundle/components/GradientManager/GradientSelect.js.map +1 -1
  79. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  80. package/cjs-bundle/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  81. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  82. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  83. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  84. package/cjs-bundle/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  85. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  86. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  87. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  88. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  89. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  90. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  91. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  92. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  93. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  94. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  95. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  96. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  97. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  98. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  99. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  100. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  101. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  102. package/cjs-bundle/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  103. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  104. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  105. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  106. package/cjs-bundle/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  107. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  108. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  109. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  110. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  111. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  112. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  113. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  114. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  115. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  116. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  117. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  118. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  119. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  120. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  121. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  122. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  123. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  124. package/cjs-bundle/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  125. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  126. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  127. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
  128. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js.map +1 -1
  129. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  130. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  131. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  132. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  133. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  134. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  135. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  136. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  137. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsData.utils.js +1 -1
  138. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsData.utils.js.map +1 -1
  139. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFetch.js +1 -1
  140. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFetch.js.map +1 -1
  141. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  142. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  143. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  144. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  145. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  146. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  147. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  148. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  149. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  150. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  151. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  152. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  153. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js +1 -1
  154. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js.map +1 -1
  155. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  156. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  157. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  158. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  159. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  160. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  161. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  162. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  163. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
  164. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js.map +1 -1
  165. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  166. package/cjs-bundle/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  167. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.js +1 -1
  168. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.js.map +1 -1
  169. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js +1 -1
  170. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js.map +1 -1
  171. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyProvider.js +1 -1
  172. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyProvider.js.map +1 -1
  173. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useFetchSubjectWell.js +1 -1
  174. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useFetchSubjectWell.js.map +1 -1
  175. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useSearchedWells.js +1 -1
  176. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useSearchedWells.js.map +1 -1
  177. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  178. package/cjs-bundle/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  179. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
  180. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js.map +1 -1
  181. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useCompanies.js +1 -1
  182. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useCompanies.js.map +1 -1
  183. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useExternalOffsets.js +1 -1
  184. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useExternalOffsets.js.map +1 -1
  185. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  186. package/cjs-bundle/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  187. package/cjs-bundle/components/OffsetWellPickerV5/hooks/usePinnedWells.js +1 -1
  188. package/cjs-bundle/components/OffsetWellPickerV5/hooks/usePinnedWells.js.map +1 -1
  189. package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +1 -1
  190. package/cjs-bundle/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -1
  191. package/cjs-bundle/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -1
  192. package/cjs-bundle/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js.map +1 -1
  193. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  194. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  195. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  196. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  197. package/cjs-bundle/components/PinnableFilters/effects/index.js +1 -1
  198. package/cjs-bundle/components/PinnableFilters/effects/index.js.map +1 -1
  199. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  200. package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  201. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  202. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js.map +1 -1
  203. package/cjs-bundle/components/index.js +1 -1
  204. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  205. package/cjs-bundle/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  206. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  207. package/cjs-bundle/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  208. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  209. package/cjs-bundle/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  210. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  211. package/cjs-bundle/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  212. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  213. package/cjs-bundle/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  214. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  215. package/cjs-bundle/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  216. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  217. package/cjs-bundle/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  218. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js +1 -1
  219. package/cjs-bundle/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -1
  220. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js +1 -1
  221. package/cjs-bundle/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  222. package/cjs-bundle/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.js +1 -1
  223. package/cjs-bundle/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.js.map +1 -1
  224. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  225. package/cjs-bundle/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  226. package/cjs-bundle/componentsV2/InterventionEventSelector/useInterventionUnitEvents.js +1 -1
  227. package/cjs-bundle/componentsV2/InterventionEventSelector/useInterventionUnitEvents.js.map +1 -1
  228. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  229. package/cjs-bundle/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  230. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  231. package/cjs-bundle/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  232. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  233. package/cjs-bundle/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  234. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js +1 -1
  235. package/cjs-bundle/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js.map +1 -1
  236. package/cjs-bundle/componentsV2/TemplatesControl/Store/utils.js +1 -1
  237. package/cjs-bundle/componentsV2/TemplatesControl/Store/utils.js.map +1 -1
  238. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  239. package/cjs-bundle/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  240. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js +1 -1
  241. package/cjs-bundle/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  242. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js +1 -1
  243. package/cjs-bundle/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  244. package/cjs-bundle/config/theme/palette.mjs.js +1 -1
  245. package/cjs-bundle/config/theme/palette.mjs.js.map +1 -1
  246. package/cjs-bundle/effects/index.js +1 -1
  247. package/cjs-bundle/effects/subscriptions/fetchInitialSubscriptionsData.js +2 -0
  248. package/cjs-bundle/effects/subscriptions/fetchInitialSubscriptionsData.js.map +1 -0
  249. package/cjs-bundle/effects/subscriptions/useSubscriptions.v2.js +1 -1
  250. package/cjs-bundle/effects/subscriptions/useSubscriptions.v2.js.map +1 -1
  251. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js +1 -1
  252. package/cjs-bundle/effects/useGlobalOffsetWellsSync.js.map +1 -1
  253. package/cjs-bundle/effects/useSubscriptions.js +1 -1
  254. package/cjs-bundle/effects/useSubscriptions.js.map +1 -1
  255. package/cjs-bundle/effects/useWellnessAlerts.js +1 -1
  256. package/cjs-bundle/effects/useWellnessAlerts.js.map +1 -1
  257. package/cjs-bundle/icons/customIcons/icons/Search.js.map +1 -1
  258. package/cjs-bundle/permissions/constants/index.js +1 -1
  259. package/cjs-bundle/permissions/constants/index.js.map +1 -1
  260. package/cjs-bundle/styles/generatedThemesVariables.global.css.js +1 -1
  261. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  262. package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  263. package/cjs-bundle/utils/index.js +1 -1
  264. package/cjs-bundle/utils/index.js.map +1 -1
  265. package/cjs-bundle/utils/safeTemplate.js +2 -0
  266. package/cjs-bundle/utils/safeTemplate.js.map +1 -0
  267. package/clients/index.d.ts +1 -9
  268. package/clients/index.d.ts.map +1 -1
  269. package/clients/index.js +1 -1
  270. package/clients/index.js.map +1 -1
  271. package/clients/subscriptions/constants.d.ts +0 -1
  272. package/clients/subscriptions/constants.d.ts.map +1 -1
  273. package/clients/subscriptions/constants.js +1 -1
  274. package/clients/subscriptions/constants.js.map +1 -1
  275. package/clients/subscriptions.d.ts.map +1 -1
  276. package/clients/subscriptions.js +1 -1
  277. package/clients/subscriptions.js.map +1 -1
  278. package/components/AddComment/Popover.js +1 -1
  279. package/components/AddComment/Popover.js.map +1 -1
  280. package/components/AddComment/components/Content.js +1 -1
  281. package/components/AddComment/components/Content.js.map +1 -1
  282. package/components/AssetEditor/effects/index.js +1 -1
  283. package/components/AssetEditor/effects/index.js.map +1 -1
  284. package/components/AssetEditorV2/effects/index.js +1 -1
  285. package/components/AssetEditorV2/effects/index.js.map +1 -1
  286. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js +1 -1
  287. package/components/AssetEditorV2/effects/usePrimaryAssetSelectData.js.map +1 -1
  288. package/components/Attachment/index.js +1 -1
  289. package/components/Attachment/index.js.map +1 -1
  290. package/components/BICOffsetPickerDialog/index.js +1 -1
  291. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  292. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  293. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  294. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  295. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  296. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  297. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  298. package/components/CollapsableSidebar.js +1 -1
  299. package/components/CollapsableSidebar.js.map +1 -1
  300. package/components/CommentComposer/CommentComposer.js +1 -1
  301. package/components/CommentComposer/CommentComposer.js.map +1 -1
  302. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  303. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js.map +1 -1
  304. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
  305. package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js.map +1 -1
  306. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js +1 -1
  307. package/components/DevCenter/DevCenterAppContainer/components/LegacyAppActions.js.map +1 -1
  308. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js +1 -1
  309. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus.js.map +1 -1
  310. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js +1 -1
  311. package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus.js.map +1 -1
  312. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  313. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js.map +1 -1
  314. package/components/DocumentViewer/DocumentViewer.js +1 -1
  315. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  316. package/components/Drillstring/BHAComponentDetail/constants.d.ts +2 -2
  317. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  318. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  319. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  320. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  321. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  322. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  323. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  324. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  325. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  326. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  327. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  328. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  329. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  330. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  331. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  332. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  333. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  334. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  335. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  336. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  337. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  338. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  339. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  340. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  341. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  342. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  343. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  344. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  345. package/components/FeedItem/FeedItem.js +1 -1
  346. package/components/FeedItem/FeedItem.js.map +1 -1
  347. package/components/GradientManager/GradientManager.js +1 -1
  348. package/components/GradientManager/GradientManager.js.map +1 -1
  349. package/components/GradientManager/GradientSelect.js +1 -1
  350. package/components/GradientManager/GradientSelect.js.map +1 -1
  351. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
  352. package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js.map +1 -1
  353. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  354. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  355. package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
  356. package/components/OffsetWellPickerV2/components/Map/Map.js.map +1 -1
  357. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  358. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  359. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  360. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  361. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  362. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  363. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  364. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  365. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  366. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  367. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  368. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  369. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  370. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  371. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  372. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  373. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js +1 -1
  374. package/components/OffsetWellPickerV5/OffsetWellPickerV5.js.map +1 -1
  375. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js +1 -1
  376. package/components/OffsetWellPickerV5/components/AppHeader/components/HeaderActions/HeaderActions.js.map +1 -1
  377. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js +1 -1
  378. package/components/OffsetWellPickerV5/components/AppHeader/components/LoadAllWellsToggle/LoadAllWellsToggle.js.map +1 -1
  379. package/components/OffsetWellPickerV5/components/Filter/Filter.js +1 -1
  380. package/components/OffsetWellPickerV5/components/Filter/Filter.js.map +1 -1
  381. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  382. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  383. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js +1 -1
  384. package/components/OffsetWellPickerV5/components/Filter/components/PeriodFilterSelect/PeriodFilterSelect.js.map +1 -1
  385. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js +1 -1
  386. package/components/OffsetWellPickerV5/components/Filter/components/SingleFilterSelect/SingleFilterSelect.js.map +1 -1
  387. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js +1 -1
  388. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/ClusterTooltip/ClusterTooltip.js.map +1 -1
  389. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js +1 -1
  390. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/LayerSwitcher/LayerSwitcher.js.map +1 -1
  391. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js +1 -1
  392. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapControls/MapControls.js.map +1 -1
  393. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js +1 -1
  394. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/MapHints/MapHintsStash.js.map +1 -1
  395. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js +1 -1
  396. package/components/OffsetWellPickerV5/components/Map/OffsetWellMap/components/SubjectWellMarker/SubjectWellMarker.js.map +1 -1
  397. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  398. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  399. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js +1 -1
  400. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js.map +1 -1
  401. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js +1 -1
  402. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/CompanySafeguardWrapper/CompanySafeguardWrapper.js.map +1 -1
  403. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js +1 -1
  404. package/components/OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/components/UserSettingsWrapper/UserSettingsWrapper.js.map +1 -1
  405. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js +1 -1
  406. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AssetResultSection/AssetResultSection.js.map +1 -1
  407. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
  408. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/components/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js.map +1 -1
  409. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsData.utils.js +1 -1
  410. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsData.utils.js.map +1 -1
  411. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFetch.js +1 -1
  412. package/components/OffsetWellPickerV5/components/OffsetWellsTable/AdvancedSearch/hooks/useAssetsFetch.js.map +1 -1
  413. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js +1 -1
  414. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/CompanyCell/CompanyCell.js.map +1 -1
  415. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js +1 -1
  416. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/FormationCell/FormationCell.js.map +1 -1
  417. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js +1 -1
  418. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/InterventionAssetCell/InterventionAssetCell.js.map +1 -1
  419. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js +1 -1
  420. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/PadNameCell/PadNameCell.js.map +1 -1
  421. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js +1 -1
  422. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/RigCell/RigCell.js.map +1 -1
  423. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js +1 -1
  424. package/components/OffsetWellPickerV5/components/OffsetWellsTable/cells/WellNameCell/WellNameCell.js.map +1 -1
  425. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js +1 -1
  426. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/MetricCell/MetricCell.js.map +1 -1
  427. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js +1 -1
  428. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/SettingsMenu.js.map +1 -1
  429. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js +1 -1
  430. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/MetricsSettingsSection/MetricsSettingsSection.js.map +1 -1
  431. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js +1 -1
  432. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/SettingsMenu/components/TableSettingsSection/TableSettingsSection.js.map +1 -1
  433. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js +1 -1
  434. package/components/OffsetWellPickerV5/components/OffsetWellsTable/components/WellNameHeaderCell/WellNameHeaderCell.js.map +1 -1
  435. package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js +1 -1
  436. package/components/OffsetWellPickerV5/components/OffsetWellsTable/hooks/useAdvancedSearchHandler.js.map +1 -1
  437. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js +1 -1
  438. package/components/OffsetWellPickerV5/components/PickerModalActions/PickerModalActions.js.map +1 -1
  439. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.js +1 -1
  440. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useAdvancedWells.js.map +1 -1
  441. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js +1 -1
  442. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyMetricKey.js.map +1 -1
  443. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyProvider.js +1 -1
  444. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useCompanyProvider.js.map +1 -1
  445. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useFetchSubjectWell.js +1 -1
  446. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useFetchSubjectWell.js.map +1 -1
  447. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useSearchedWells.js +1 -1
  448. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useSearchedWells.js.map +1 -1
  449. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js +1 -1
  450. package/components/OffsetWellPickerV5/hooks/use-well-data-pipeline/useWellDataPipeline.js.map +1 -1
  451. package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js +1 -1
  452. package/components/OffsetWellPickerV5/hooks/useAllWells/useLoadAllWellsCallback.js.map +1 -1
  453. package/components/OffsetWellPickerV5/hooks/useCompanies.js +1 -1
  454. package/components/OffsetWellPickerV5/hooks/useCompanies.js.map +1 -1
  455. package/components/OffsetWellPickerV5/hooks/useExternalOffsets.js +1 -1
  456. package/components/OffsetWellPickerV5/hooks/useExternalOffsets.js.map +1 -1
  457. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js +1 -1
  458. package/components/OffsetWellPickerV5/hooks/useIsAdmin.js.map +1 -1
  459. package/components/OffsetWellPickerV5/hooks/usePinnedWells.js +1 -1
  460. package/components/OffsetWellPickerV5/hooks/usePinnedWells.js.map +1 -1
  461. package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js +1 -1
  462. package/components/OffsetWellPickerV5/stores/idas-resync-store/createIdasResyncController.js.map +1 -1
  463. package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js +1 -1
  464. package/components/PadModeSelect/effects/useWellStreamActivityTypeSubscription.js.map +1 -1
  465. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  466. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  467. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  468. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  469. package/components/PinnableFilters/effects/index.js +1 -1
  470. package/components/PinnableFilters/effects/index.js.map +1 -1
  471. package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
  472. package/components/RealTimeValuesSidebar/SidebarFooter.js.map +1 -1
  473. package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -1
  474. package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  475. package/components/StatusBadge/components/DQAlertsTooltip.js.map +1 -1
  476. package/components/index.js +1 -1
  477. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.d.ts.map +1 -1
  478. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js +1 -1
  479. package/componentsV2/AppDqPopover/DqAlertTooltip/DqAlertTooltip.js.map +1 -1
  480. package/componentsV2/AppFooter/DqPopover/DqPopover.js +1 -1
  481. package/componentsV2/AppFooter/DqPopover/DqPopover.js.map +1 -1
  482. package/componentsV2/AppHeader/AppAssets/utils.js +1 -1
  483. package/componentsV2/AppHeader/AppAssets/utils.js.map +1 -1
  484. package/componentsV2/AppHeader/V3/Actions/Actions.js +1 -1
  485. package/componentsV2/AppHeader/V3/Actions/Actions.js.map +1 -1
  486. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js +1 -1
  487. package/componentsV2/AppHeader/V3/AppTitle/AppTitle.js.map +1 -1
  488. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js +1 -1
  489. package/componentsV2/AppHeader/V3/AssetSelector/AssetSelector.js.map +1 -1
  490. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js +1 -1
  491. package/componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js.map +1 -1
  492. package/componentsV2/AppPanel/AppPanelDisplay.js +1 -1
  493. package/componentsV2/AppPanel/AppPanelDisplay.js.map +1 -1
  494. package/componentsV2/Autocomplete/Autocomplete.d.ts.map +1 -1
  495. package/componentsV2/Autocomplete/Autocomplete.js +1 -1
  496. package/componentsV2/Autocomplete/Autocomplete.js.map +1 -1
  497. package/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.d.ts.map +1 -1
  498. package/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.js +1 -1
  499. package/componentsV2/Autocomplete/AutocompleteInput/AutocompleteInput.js.map +1 -1
  500. package/componentsV2/Autocomplete/AutocompleteNext.stories.d.ts +1 -0
  501. package/componentsV2/Autocomplete/AutocompleteNext.stories.d.ts.map +1 -1
  502. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js +1 -1
  503. package/componentsV2/CompletionsOffsetWellPicker/Map/Map.js.map +1 -1
  504. package/componentsV2/InterventionEventSelector/useInterventionUnitEvents.js +1 -1
  505. package/componentsV2/InterventionEventSelector/useInterventionUnitEvents.js.map +1 -1
  506. package/componentsV2/PadModeSelect/PadModeSelect.js +1 -1
  507. package/componentsV2/PadModeSelect/PadModeSelect.js.map +1 -1
  508. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js +1 -1
  509. package/componentsV2/TemplatesControl/PublishModal/PublishModal.js.map +1 -1
  510. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js +1 -1
  511. package/componentsV2/TemplatesControl/ShareModal/ShareModal.js.map +1 -1
  512. package/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.d.ts.map +1 -1
  513. package/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js +1 -1
  514. package/componentsV2/TemplatesControl/Store/hooks/usePublishTemplate.js.map +1 -1
  515. package/componentsV2/TemplatesControl/Store/utils.d.ts +7 -0
  516. package/componentsV2/TemplatesControl/Store/utils.d.ts.map +1 -1
  517. package/componentsV2/TemplatesControl/Store/utils.js +1 -1
  518. package/componentsV2/TemplatesControl/Store/utils.js.map +1 -1
  519. package/componentsV2/TemplatesControl/Toggle/Toggle.js +1 -1
  520. package/componentsV2/TemplatesControl/Toggle/Toggle.js.map +1 -1
  521. package/componentsV2/TextInputBase/TextInputBase.js +1 -1
  522. package/componentsV2/TextInputBase/TextInputBase.js.map +1 -1
  523. package/componentsV2/TextInputNext/TextInputNext.js +1 -1
  524. package/componentsV2/TextInputNext/TextInputNext.js.map +1 -1
  525. package/config/theme/lightThemePalette.d.mts +4 -0
  526. package/config/theme/lightThemePalette.d.mts.map +1 -1
  527. package/config/theme/palette.d.mts +4 -0
  528. package/config/theme/palette.d.mts.map +1 -1
  529. package/config/theme/palette.mjs.js +1 -1
  530. package/config/theme/palette.mjs.js.map +1 -1
  531. package/config/theme/themeVariables.d.mts +12 -0
  532. package/config/theme/themeVariables.d.mts.map +1 -1
  533. package/effects/index.js +1 -1
  534. package/effects/subscriptions/fetchInitialSubscriptionsData.d.ts +23 -0
  535. package/effects/subscriptions/fetchInitialSubscriptionsData.d.ts.map +1 -0
  536. package/effects/subscriptions/fetchInitialSubscriptionsData.js +2 -0
  537. package/effects/subscriptions/fetchInitialSubscriptionsData.js.map +1 -0
  538. package/effects/subscriptions/useSubscriptions.v2.d.ts.map +1 -1
  539. package/effects/subscriptions/useSubscriptions.v2.js +1 -1
  540. package/effects/subscriptions/useSubscriptions.v2.js.map +1 -1
  541. package/effects/useGlobalOffsetWellsSync.js +1 -1
  542. package/effects/useGlobalOffsetWellsSync.js.map +1 -1
  543. package/effects/useSubscriptions.d.ts +1 -2
  544. package/effects/useSubscriptions.d.ts.map +1 -1
  545. package/effects/useSubscriptions.js +1 -1
  546. package/effects/useSubscriptions.js.map +1 -1
  547. package/effects/useWellnessAlerts.js +1 -1
  548. package/effects/useWellnessAlerts.js.map +1 -1
  549. package/icons/customIcons/icons/Search.d.ts +1 -1
  550. package/icons/customIcons/icons/Search.js.map +1 -1
  551. package/mcp-server/server.mjs +14079 -29649
  552. package/package.json +1 -1
  553. package/permissions/constants/index.d.ts +1 -0
  554. package/permissions/constants/index.d.ts.map +1 -1
  555. package/permissions/constants/index.js +1 -1
  556. package/permissions/constants/index.js.map +1 -1
  557. package/styles/common.scss +2 -0
  558. package/styles/generatedThemesVariables.global.css +1 -1
  559. package/styles/generatedThemesVariables.global.css.js +1 -1
  560. package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
  561. package/testing/AppTestWrapper/AppTestWrapper.js.map +1 -1
  562. package/tsconfig.tsbuildinfo +1 -1
  563. package/utils/__tests__/safeTemplate.test.d.ts +2 -0
  564. package/utils/__tests__/safeTemplate.test.d.ts.map +1 -0
  565. package/utils/index.d.ts +1 -0
  566. package/utils/index.d.ts.map +1 -1
  567. package/utils/index.js +1 -1
  568. package/utils/index.js.map +1 -1
  569. package/utils/safeTemplate.d.ts +24 -0
  570. package/utils/safeTemplate.d.ts.map +1 -0
  571. package/utils/safeTemplate.js +2 -0
  572. package/utils/safeTemplate.js.map +1 -0
  573. package/cjs-bundle/clients/subscriptions.v1.js +0 -2
  574. package/cjs-bundle/clients/subscriptions.v1.js.map +0 -1
  575. package/cjs-bundle/effects/subscriptions/useSubscriptions.v1.js +0 -2
  576. package/cjs-bundle/effects/subscriptions/useSubscriptions.v1.js.map +0 -1
  577. package/clients/subscriptions.v1.d.ts +0 -9
  578. package/clients/subscriptions.v1.d.ts.map +0 -1
  579. package/clients/subscriptions.v1.js +0 -2
  580. package/clients/subscriptions.v1.js.map +0 -1
  581. package/effects/subscriptions/useSubscriptions.v1.d.ts +0 -24
  582. package/effects/subscriptions/useSubscriptions.v1.d.ts.map +0 -1
  583. package/effects/subscriptions/useSubscriptions.v1.js +0 -2
  584. package/effects/subscriptions/useSubscriptions.v1.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as i,useCallback as e}from"react";import n from"prop-types";import c from"react-player";import r from"classnames";import{withStyles as a}from"@material-ui/core/styles";import{Typography as m}from"@material-ui/core";import l from"@material-ui/icons/Image";import p from"@material-ui/icons/Fullscreen";import u from"@material-ui/core/colors/grey";import d from"../NewDocumentViewer/NewDocumentViewer.js";import{UnavailableFileIcon as h}from"../NewDocumentViewer/icons/UnavailableFileIcon.js";import{ImageViewer as j}from"../../componentsV2/ImageViewer/ImageViewer.js";import f from"./styles.css.js";import I from"../FileTypeIcon.js";import g from"../IconButton/index.js";import{isNativeDetected as v}from"../../utils/mobileDetect.js";import{getIsImage as b,getIsVideo as y}from"../../utils/fileExtension.js";import{getIsPreviewUnavailable as C}from"../../utils/filePreview.js";import{DownloadIcon as N}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"../../clients/subscriptions/constants.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"lodash";import"../../clients/subscriptions.v1.js";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"query-string";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 w from"../../effects/useSignedURL.js";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import P from"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import{jsx as O,jsxs as F,Fragment as A}from"react/jsx-runtime";var x=["displayName","fileName","attachmentSize","size","small"];function D(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,i)}return t}function S(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?D(Object(i),!0).forEach((function(t){s(o,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var z=u[200],W=u[400],R={label:"small",value:135},U={label:"medium",value:300},L={fileImage:function(o,s){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:s===R.label?R.value:U.value,display:o?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{padding:"10px 10px 10px 5px",border:"1px solid #616161",borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:z,borderRadius:3,marginTop:10,height:135,width:135}},k=function(o){var s,t,i=w(o.attachmentFileName)||o.attachmentUrl;return F(A,{children:[F("div",{onClick:o.openLightbox,className:f.cAttachmentImg,children:[O("img",{"data-testid":"".concat("Attachment","_image"),src:i,style:L.fileImage(!!o.imageDimensions,o.size),alt:"Attachment",onLoad:o.onImageLoaded}),O("div",{"data-testid":"".concat("Attachment","_button"),className:f.cAttachmentImgPreviwBtn,children:O(p,{})})]}),!o.imageDimensions&&O("div",{style:L.imagePlaceholder,children:O(l,{"data-testid":"".concat("Attachment","_placeholder"),className:o.classes.imageIconRoot,htmlColor:W,fontSize:"large"})}),o.lightboxIsOpen&&O(j,{src:i,onClose:o.handleLightboxClose,onOpen:o.handleLightboxOpen,width:null===(s=o.imageDimensions)||void 0===s?void 0:s.width,height:null===(t=o.imageDimensions)||void 0===t?void 0:t.height})]})},E=function(o){var s=P.getFileNameWithExtensionFromPath(o.displayName||o.attachmentUrl),t=w(o.attachmentFileName,"inline"),i=w(o.attachmentFileName,"attachment"),e=C(s);return F("div",{className:f.cAttachmentFileWrapper,children:[F("div",{className:r(f.cAttachmentFileDownloadWrapper,e&&o.classes.disabledPreview),style:L.fileDownloadWrapper,onClick:function(){e||o.openPreview()},children:[e?O(h,{className:o.classes.unavailableFileIcon}):O(I,{fileName:o.displayName||o.attachmentUrl,className:f.cAttachmentFileDownloadWrapperFileIcon,size:o.small?25:50}),F("div",{className:o.classes.titleContainer,children:[e&&O("div",{className:o.classes.caption,children:"Preview unavailable"}),O("div",{"data-testid":"".concat("Attachment","_name"),className:r(f.cAttachmentFileDownloadWrapperFileName,e&&o.classes.fileName),children:O(m,{variant:"subtitle2",noWrap:!0,className:o.classes.unavailableFileName,children:s})})]}),O(d,{fileUrl:t,classes:{root:o.classes.dialogRoot,paper:v?o.classes.nativeDialog:o.classes.dialog},fileName:s,fileSize:o.attachmentSize,onClose:o.closePreview,open:o.previewIsOpen})]}),O("a",{download:o.displayName,href:i,className:f.cAttachmentFileDownloadWrapperForm,children:O(g,{"data-testid":"".concat("Attachment","_downloadButton"),className:o.classes.downloadIcon,type:"submit",children:O(N,{size:24,className:o.classes.downloadIcon})})})]})};function M(s){var n=s.displayName,r=void 0===n?null:n,a=s.fileName,m=void 0===a?null:a,l=s.attachmentSize,p=void 0===l?void 0:l,u=s.size,d=void 0===u?U.label:u,h=s.small,j=void 0!==h&&h,I=S(S({},t(s,x)),{},{displayName:r,fileName:m,attachmentSize:p,size:d,small:j}),g=i(void 0),C=o(g,2),N=C[0],P=C[1],F=i(!1),A=o(F,2),D=A[0],z=A[1],W=i(!1),L=o(W,2),M=L[0],T=L[1],V=I.displayName||I.attachmentUrl||I.fileName,B=b(V),q=y(V),G=w(!I.attachmentUrl&&I.fileName),_=I.attachmentUrl||G,H=e((function(o){return o.preventDefault()}),[]),K=e((function(){v&&document.documentElement.addEventListener("touchmove",H,{passive:!1})}),[H]),Z=e((function(){v&&document.documentElement.removeEventListener("touchmove",H),z(!1)}),[H]),J=e((function(){return z(!0)}),[]),Q=e((function(o){var s=o.currentTarget,t=s.naturalWidth,i=s.naturalHeight;P({width:t,height:i})}),[]),X=e((function(){return T(!0)}),[]),Y=e((function(o){o.stopPropagation(),T(!1)}),[]);return B?O("div",{className:f.cAttachment,children:O(k,{size:I.size,openLightbox:J,attachmentFileName:I.fileName,attachmentUrl:I.attachmentUrl,onImageLoaded:Q,imageDimensions:N,lightboxIsOpen:D,handleLightboxOpen:K,handleLightboxClose:Z,classes:I.classes})}):q&&c.canPlay(_)?O("div",{className:f.cAttachment,children:O(c,{"data-testid":"".concat("Attachment","_player"),className:f.cAttachmentReactPlayer,url:_,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:I.size===R.label?R.value:U.value,width:null})}):O("div",{className:f.cAttachment,children:O(E,{attachmentUrl:_,attachmentFileName:I.fileName,attachmentSize:I.attachmentSize,displayName:I.displayName,openPreview:X,closePreview:Y,previewIsOpen:M,classes:I.classes,small:I.small})})}M.propTypes={attachmentUrl:n.string.isRequired,attachmentSize:n.number,displayName:n.string,fileName:n.string,size:n.oneOf([R.label,U.label]),classes:n.shape({}).isRequired,small:n.bool};var T=a((function(o){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:400},downloadIcon:{color:o.palette.primary.text3},disabledPreview:{backgroundColor:o.palette.primary.text9},unavailableFileIcon:{marginRight:12,minWidth:32},titleContainer:{display:"flex",flexDirection:"column",width:"100%"},caption:{fontSize:12,fontWeight:400,width:"fit-content"},unavailableFileName:{fontSize:12,fontWeight:400}}}))(M);export{T as default};
1
+ import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{useState as i,useCallback as e}from"react";import n from"prop-types";import c from"react-player";import r from"classnames";import{withStyles as a}from"@material-ui/core/styles";import{Typography as m}from"@material-ui/core";import l from"@material-ui/icons/Image";import p from"@material-ui/icons/Fullscreen";import u from"@material-ui/core/colors/grey";import d from"../NewDocumentViewer/NewDocumentViewer.js";import{UnavailableFileIcon as h}from"../NewDocumentViewer/icons/UnavailableFileIcon.js";import{ImageViewer as j}from"../../componentsV2/ImageViewer/ImageViewer.js";import f from"./styles.css.js";import I from"../FileTypeIcon.js";import g from"../IconButton/index.js";import{isNativeDetected as v}from"../../utils/mobileDetect.js";import{getIsImage as b,getIsVideo as y}from"../../utils/fileExtension.js";import{getIsPreviewUnavailable as C}from"../../utils/filePreview.js";import{DownloadIcon as N}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.js";import"querystring";import"lodash";import"../../clients/subscriptions/subscriptions-client.factory.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"query-string";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 w from"../../effects/useSignedURL.js";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"@babel/runtime/helpers/toConsumableArray";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import P from"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"@babel/runtime/helpers/typeof";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"uuid";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import{jsx as O,jsxs as F,Fragment as A}from"react/jsx-runtime";var x=["displayName","fileName","attachmentSize","size","small"];function D(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);s&&(i=i.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,i)}return t}function S(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?D(Object(i),!0).forEach((function(t){s(o,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))}))}return o}var z=u[200],W=u[400],R={label:"small",value:135},U={label:"medium",value:300},L={fileImage:function(o,s){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:s===R.label?R.value:U.value,display:o?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{padding:"10px 10px 10px 5px",border:"1px solid #616161",borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:z,borderRadius:3,marginTop:10,height:135,width:135}},k=function(o){var s,t,i=w(o.attachmentFileName)||o.attachmentUrl;return F(A,{children:[F("div",{onClick:o.openLightbox,className:f.cAttachmentImg,children:[O("img",{"data-testid":"".concat("Attachment","_image"),src:i,style:L.fileImage(!!o.imageDimensions,o.size),alt:"Attachment",onLoad:o.onImageLoaded}),O("div",{"data-testid":"".concat("Attachment","_button"),className:f.cAttachmentImgPreviwBtn,children:O(p,{})})]}),!o.imageDimensions&&O("div",{style:L.imagePlaceholder,children:O(l,{"data-testid":"".concat("Attachment","_placeholder"),className:o.classes.imageIconRoot,htmlColor:W,fontSize:"large"})}),o.lightboxIsOpen&&O(j,{src:i,onClose:o.handleLightboxClose,onOpen:o.handleLightboxOpen,width:null===(s=o.imageDimensions)||void 0===s?void 0:s.width,height:null===(t=o.imageDimensions)||void 0===t?void 0:t.height})]})},E=function(o){var s=P.getFileNameWithExtensionFromPath(o.displayName||o.attachmentUrl),t=w(o.attachmentFileName,"inline"),i=w(o.attachmentFileName,"attachment"),e=C(s);return F("div",{className:f.cAttachmentFileWrapper,children:[F("div",{className:r(f.cAttachmentFileDownloadWrapper,e&&o.classes.disabledPreview),style:L.fileDownloadWrapper,onClick:function(){e||o.openPreview()},children:[e?O(h,{className:o.classes.unavailableFileIcon}):O(I,{fileName:o.displayName||o.attachmentUrl,className:f.cAttachmentFileDownloadWrapperFileIcon,size:o.small?25:50}),F("div",{className:o.classes.titleContainer,children:[e&&O("div",{className:o.classes.caption,children:"Preview unavailable"}),O("div",{"data-testid":"".concat("Attachment","_name"),className:r(f.cAttachmentFileDownloadWrapperFileName,e&&o.classes.fileName),children:O(m,{variant:"subtitle2",noWrap:!0,className:o.classes.unavailableFileName,children:s})})]}),O(d,{fileUrl:t,classes:{root:o.classes.dialogRoot,paper:v?o.classes.nativeDialog:o.classes.dialog},fileName:s,fileSize:o.attachmentSize,onClose:o.closePreview,open:o.previewIsOpen})]}),O("a",{download:o.displayName,href:i,className:f.cAttachmentFileDownloadWrapperForm,children:O(g,{"data-testid":"".concat("Attachment","_downloadButton"),className:o.classes.downloadIcon,type:"submit",children:O(N,{size:24,className:o.classes.downloadIcon})})})]})};function M(s){var n=s.displayName,r=void 0===n?null:n,a=s.fileName,m=void 0===a?null:a,l=s.attachmentSize,p=void 0===l?void 0:l,u=s.size,d=void 0===u?U.label:u,h=s.small,j=void 0!==h&&h,I=S(S({},t(s,x)),{},{displayName:r,fileName:m,attachmentSize:p,size:d,small:j}),g=i(void 0),C=o(g,2),N=C[0],P=C[1],F=i(!1),A=o(F,2),D=A[0],z=A[1],W=i(!1),L=o(W,2),M=L[0],T=L[1],V=I.displayName||I.attachmentUrl||I.fileName,B=b(V),q=y(V),G=w(!I.attachmentUrl&&I.fileName),_=I.attachmentUrl||G,H=e((function(o){return o.preventDefault()}),[]),K=e((function(){v&&document.documentElement.addEventListener("touchmove",H,{passive:!1})}),[H]),Z=e((function(){v&&document.documentElement.removeEventListener("touchmove",H),z(!1)}),[H]),J=e((function(){return z(!0)}),[]),Q=e((function(o){var s=o.currentTarget,t=s.naturalWidth,i=s.naturalHeight;P({width:t,height:i})}),[]),X=e((function(){return T(!0)}),[]),Y=e((function(o){o.stopPropagation(),T(!1)}),[]);return B?O("div",{className:f.cAttachment,children:O(k,{size:I.size,openLightbox:J,attachmentFileName:I.fileName,attachmentUrl:I.attachmentUrl,onImageLoaded:Q,imageDimensions:N,lightboxIsOpen:D,handleLightboxOpen:K,handleLightboxClose:Z,classes:I.classes})}):q&&c.canPlay(_)?O("div",{className:f.cAttachment,children:O(c,{"data-testid":"".concat("Attachment","_player"),className:f.cAttachmentReactPlayer,url:_,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:I.size===R.label?R.value:U.value,width:null})}):O("div",{className:f.cAttachment,children:O(E,{attachmentUrl:_,attachmentFileName:I.fileName,attachmentSize:I.attachmentSize,displayName:I.displayName,openPreview:X,closePreview:Y,previewIsOpen:M,classes:I.classes,small:I.small})})}M.propTypes={attachmentUrl:n.string.isRequired,attachmentSize:n.number,displayName:n.string,fileName:n.string,size:n.oneOf([R.label,U.label]),classes:n.shape({}).isRequired,small:n.bool};var T=a((function(o){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:400},downloadIcon:{color:o.palette.primary.text3},disabledPreview:{backgroundColor:o.palette.primary.text9},unavailableFileIcon:{marginRight:12,minWidth:32},titleContainer:{display:"flex",flexDirection:"column",width:"100%"},caption:{fontSize:12,fontWeight:400,width:"fit-content"},unavailableFileName:{fontSize:12,fontWeight:400}}}))(M);export{T as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Attachment/index.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactPlayer from 'react-player';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Typography } from '@material-ui/core';\nimport ImageIcon from '@material-ui/icons/Image';\nimport FullSizeIcon from '@material-ui/icons/Fullscreen';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { NewDocumentViewer } from '../NewDocumentViewer';\nimport { UnavailableFileIcon } from '../NewDocumentViewer/icons/UnavailableFileIcon';\nimport { ImageViewer } from '../../componentsV2/ImageViewer';\n\nimport styles from './styles.css';\n\nimport FileTypeIcon from '~components/FileTypeIcon';\nimport IconButton from '~components/IconButton';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport { getIsImage, getIsVideo } from '~/utils/fileExtension';\nimport { getIsPreviewUnavailable } from '~/utils/filePreview';\nimport { DownloadIcon } from '~/icons';\nimport { useSignedURL } from '~/effects';\nimport utils from '~utils/main';\n\nconst PAGE_NAME = 'Attachment';\n\nconst grey200 = grey[200];\nconst grey400 = grey[400];\n\nconst SIZES = {\n small: { label: 'small', value: 135 },\n medium: { label: 'medium', value: 300 },\n};\n\nconst style = {\n fileImage: (imageIsLoaded, size) => ({\n maxWidth: '100%',\n borderRadius: 4,\n overflow: 'hidden',\n // NOTE: Makes one-line comment with image fits into comments container. Equals to\n // imagePlaceholder height\n maxHeight: size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value,\n display: imageIsLoaded ? 'initial' : 'none',\n cursor: 'pointer',\n }),\n fileDownloadWrapper: {\n padding: '10px 10px 10px 5px',\n border: `1px solid #616161`,\n borderRadius: 3,\n maxWidth: 500, // NOTE: Corresponds to react-player max width\n width: '75%',\n },\n imagePlaceholder: {\n position: 'relative',\n backgroundColor: grey200,\n borderRadius: 3,\n marginTop: 10,\n height: 135,\n width: 135,\n },\n};\n\nconst muiStyles = theme => ({\n imageIconRoot: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n },\n dialog: {\n width: '95%',\n height: '95%',\n maxWidth: '100%',\n position: 'relative',\n },\n nativeDialog: {\n width: '100%',\n height: '100%',\n maxWidth: '100%',\n maxHeight: '100%',\n margin: 0,\n },\n dialogRoot: {\n // NOTE: Make background color similar to lightbox\n backgroundColor: 'rgba(0, 0, 0, 0.85)',\n },\n fileName: {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n fontWeight: 400,\n },\n downloadIcon: {\n color: theme.palette.primary.text3,\n },\n disabledPreview: {\n backgroundColor: theme.palette.primary.text9,\n },\n unavailableFileIcon: {\n marginRight: 12,\n minWidth: 32,\n },\n titleContainer: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n caption: {\n fontSize: 12,\n fontWeight: 400,\n width: 'fit-content',\n },\n unavailableFileName: {\n fontSize: 12,\n fontWeight: 400,\n },\n});\n\n/* eslint-disable react/prop-types */\nconst ImageAttachment = props => {\n const downloadLink = useSignedURL(props.attachmentFileName) || props.attachmentUrl;\n\n return (\n <>\n <div onClick={props.openLightbox} className={styles.cAttachmentImg}>\n <img\n data-testid={`${PAGE_NAME}_image`}\n src={downloadLink}\n style={style.fileImage(!!props.imageDimensions, props.size)}\n alt=\"Attachment\"\n onLoad={props.onImageLoaded}\n />\n <div data-testid={`${PAGE_NAME}_button`} className={styles.cAttachmentImgPreviwBtn}>\n <FullSizeIcon />\n </div>\n </div>\n\n {!props.imageDimensions && (\n <div style={style.imagePlaceholder}>\n <ImageIcon\n data-testid={`${PAGE_NAME}_placeholder`}\n className={props.classes.imageIconRoot}\n htmlColor={grey400}\n fontSize=\"large\"\n />\n </div>\n )}\n\n {props.lightboxIsOpen && (\n <ImageViewer\n src={downloadLink}\n onClose={props.handleLightboxClose}\n onOpen={props.handleLightboxOpen}\n width={props.imageDimensions?.width}\n height={props.imageDimensions?.height}\n />\n )}\n </>\n );\n};\n\nconst FileAttachment = props => {\n const fileName = utils.getFileNameWithExtensionFromPath(props.displayName || props.attachmentUrl);\n\n const previewUrl = useSignedURL(props.attachmentFileName, 'inline');\n const downloadUrl = useSignedURL(props.attachmentFileName, 'attachment');\n\n const isPreviewUnavailable = getIsPreviewUnavailable(fileName);\n\n const handleFilePreviewOpen = () => {\n if (isPreviewUnavailable) return;\n props.openPreview();\n };\n\n return (\n <div className={styles.cAttachmentFileWrapper}>\n <div\n className={classNames(\n styles.cAttachmentFileDownloadWrapper,\n isPreviewUnavailable && props.classes.disabledPreview\n )}\n style={style.fileDownloadWrapper}\n onClick={handleFilePreviewOpen}\n >\n {isPreviewUnavailable ? (\n <UnavailableFileIcon className={props.classes.unavailableFileIcon} />\n ) : (\n <FileTypeIcon\n fileName={props.displayName || props.attachmentUrl}\n className={styles.cAttachmentFileDownloadWrapperFileIcon}\n size={props.small ? 25 : 50}\n />\n )}\n <div className={props.classes.titleContainer}>\n {isPreviewUnavailable && <div className={props.classes.caption}>Preview unavailable</div>}\n <div\n data-testid={`${PAGE_NAME}_name`}\n className={classNames(\n styles.cAttachmentFileDownloadWrapperFileName,\n isPreviewUnavailable && props.classes.fileName\n )}\n >\n <Typography variant=\"subtitle2\" noWrap className={props.classes.unavailableFileName}>\n {fileName}\n </Typography>\n </div>\n </div>\n <NewDocumentViewer\n fileUrl={previewUrl}\n classes={{\n root: props.classes.dialogRoot,\n paper: isNativeDetected ? props.classes.nativeDialog : props.classes.dialog,\n }}\n fileName={fileName}\n fileSize={props.attachmentSize}\n onClose={props.closePreview}\n open={props.previewIsOpen}\n />\n </div>\n <a\n download={props.displayName}\n href={downloadUrl}\n className={styles.cAttachmentFileDownloadWrapperForm}\n >\n <IconButton\n data-testid={`${PAGE_NAME}_downloadButton`}\n className={props.classes.downloadIcon}\n type=\"submit\"\n >\n <DownloadIcon size={24} className={props.classes.downloadIcon} />\n </IconButton>\n </a>\n </div>\n );\n};\n\n/* eslint-enable react/prop-types */\n\nfunction Attachment(rawProps) {\n const {\n displayName = null,\n fileName: attachmentFileName = null,\n attachmentSize = undefined,\n size = SIZES.medium.label,\n small = false,\n ...otherProps\n } = rawProps;\n const props = {\n ...otherProps,\n displayName,\n fileName: attachmentFileName,\n attachmentSize,\n size,\n small,\n };\n\n const [imageDimensions, setImageDimensions] = useState(undefined);\n const [isLightboxOpen, setIsLightboxOpen] = useState(false);\n const [isPreviewOpen, setIsPreviewOpen] = useState(false);\n\n const fileName = props.displayName || props.attachmentUrl || props.fileName;\n const isImage = getIsImage(fileName);\n const isVideo = getIsVideo(fileName);\n\n // Don't fetch download link if attachmentUrl is provided\n const downloadLink = useSignedURL(!props.attachmentUrl && props.fileName);\n const attachmentUrl = props.attachmentUrl || downloadLink;\n const preventIOSScroll = useCallback(e => e.preventDefault(), []);\n\n // NOTE: iOS WebView has a bug when background content of React Modal is scrollable\n // Source: https://github.com/reactjs/react-modal/issues/369\n const handleLightboxOpen = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'hidden';\n document.documentElement.addEventListener('touchmove', preventIOSScroll, {\n passive: false,\n });\n }\n }, [preventIOSScroll]);\n\n const handleLightboxClose = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'visible';\n document.documentElement.removeEventListener('touchmove', preventIOSScroll);\n }\n setIsLightboxOpen(false);\n }, [preventIOSScroll]);\n\n const openLightbox = useCallback(() => setIsLightboxOpen(true), []);\n const onImageLoaded = useCallback(e => {\n const { naturalWidth, naturalHeight } = e.currentTarget;\n setImageDimensions({ width: naturalWidth, height: naturalHeight });\n }, []);\n const openPreview = useCallback(() => setIsPreviewOpen(true), []);\n const closePreview = useCallback(e => {\n e.stopPropagation();\n setIsPreviewOpen(false);\n }, []);\n\n if (isImage)\n return (\n <div className={styles.cAttachment}>\n <ImageAttachment\n size={props.size}\n openLightbox={openLightbox}\n attachmentFileName={props.fileName}\n attachmentUrl={props.attachmentUrl}\n onImageLoaded={onImageLoaded}\n imageDimensions={imageDimensions}\n lightboxIsOpen={isLightboxOpen}\n handleLightboxOpen={handleLightboxOpen}\n handleLightboxClose={handleLightboxClose}\n classes={props.classes}\n />\n </div>\n );\n\n if (isVideo && ReactPlayer.canPlay(attachmentUrl))\n return (\n <div className={styles.cAttachment}>\n <ReactPlayer\n data-testid={`${PAGE_NAME}_player`}\n className={styles.cAttachmentReactPlayer}\n url={attachmentUrl}\n config={{ file: { attributes: { preload: 'metadata' } } }}\n controls\n height={props.size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value}\n width={null}\n />\n </div>\n );\n\n return (\n <div className={styles.cAttachment}>\n <FileAttachment\n attachmentUrl={attachmentUrl}\n attachmentFileName={props.fileName}\n attachmentSize={props.attachmentSize}\n displayName={props.displayName}\n openPreview={openPreview}\n closePreview={closePreview}\n previewIsOpen={isPreviewOpen}\n classes={props.classes}\n small={props.small}\n />\n </div>\n );\n}\n\nAttachment.propTypes = {\n attachmentUrl: PropTypes.string.isRequired,\n attachmentSize: PropTypes.number,\n displayName: PropTypes.string,\n fileName: PropTypes.string,\n size: PropTypes.oneOf([SIZES.small.label, SIZES.medium.label]),\n classes: PropTypes.shape({}).isRequired,\n small: PropTypes.bool,\n};\n\nexport default withStyles(muiStyles)(Attachment);\n"],"names":["grey200","grey","grey400","SIZES","label","value","style","fileImage","imageIsLoaded","size","maxWidth","borderRadius","overflow","maxHeight","display","cursor","fileDownloadWrapper","padding","border","width","imagePlaceholder","position","backgroundColor","marginTop","height","ImageAttachment","props","_props$imageDimension","_props$imageDimension2","downloadLink","useSignedURL","attachmentFileName","attachmentUrl","_jsxs","_Fragment","children","onClick","openLightbox","className","styles","cAttachmentImg","_jsx","concat","src","imageDimensions","alt","onLoad","onImageLoaded","cAttachmentImgPreviwBtn","FullSizeIcon","ImageIcon","classes","imageIconRoot","htmlColor","fontSize","lightboxIsOpen","ImageViewer","onClose","handleLightboxClose","onOpen","handleLightboxOpen","FileAttachment","fileName","utils","getFileNameWithExtensionFromPath","displayName","previewUrl","downloadUrl","isPreviewUnavailable","getIsPreviewUnavailable","cAttachmentFileWrapper","classNames","cAttachmentFileDownloadWrapper","disabledPreview","openPreview","UnavailableFileIcon","unavailableFileIcon","FileTypeIcon","cAttachmentFileDownloadWrapperFileIcon","small","titleContainer","caption","cAttachmentFileDownloadWrapperFileName","Typography","variant","noWrap","unavailableFileName","NewDocumentViewer","fileUrl","root","dialogRoot","paper","isNativeDetected","nativeDialog","dialog","fileSize","attachmentSize","closePreview","open","previewIsOpen","download","href","cAttachmentFileDownloadWrapperForm","IconButton","downloadIcon","type","DownloadIcon","Attachment","rawProps","_rawProps$displayName","_rawProps$fileName","_rawProps$attachmentS","undefined","_rawProps$size","_rawProps$small","_excluded","useState","_useState2","_slicedToArray","_useState","setImageDimensions","_useState4","_useState3","isLightboxOpen","setIsLightboxOpen","_useState6","_useState5","isPreviewOpen","setIsPreviewOpen","isImage","getIsImage","isVideo","getIsVideo","preventIOSScroll","useCallback","e","preventDefault","document","documentElement","addEventListener","passive","removeEventListener","currentTarget","naturalWidth","naturalHeight","stopPropagation","cAttachment","ReactPlayer","canPlay","cAttachmentReactPlayer","url","config","file","attributes","preload","controls","propTypes","PropTypes","string","isRequired","number","oneOf","shape","bool","Attachment$1","withStyles","theme","top","left","transform","margin","whiteSpace","textOverflow","fontWeight","color","palette","primary","text3","text9","marginRight","minWidth","flexDirection"],"mappings":"04PAyBA,IAEMA,EAAUC,EAAK,KACfC,EAAUD,EAAK,KAEfE,EACG,CAAEC,MAAO,QAASC,MAAO,KAD5BF,EAEI,CAAEC,MAAO,SAAUC,MAAO,KAG9BC,EAAQ,CACZC,UAAW,SAACC,EAAeC,GAAI,MAAM,CACnCC,SAAU,OACVC,aAAc,EACdC,SAAU,SAGVC,UAAWJ,IAASN,EAAYC,MAAQD,EAAYE,MAAQF,EAAaE,MAC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D,EAAMqD,SAIrB,CAEA4B,EAAWiD,UAAY,CACrB5H,cAAe6H,EAAUC,OAAOC,WAChC/D,eAAgB6D,EAAUG,OAC1B/F,YAAa4F,EAAUC,OACvBhG,SAAU+F,EAAUC,OACpBrJ,KAAMoJ,EAAUI,MAAM,CAAC9J,EAAYC,MAAOD,EAAaC,QACvD+C,QAAS0G,EAAUK,MAAM,CAAA,GAAIH,WAC7BhF,MAAO8E,EAAUM,MAGnB,IAAAC,EAAeC,GAzSG,SAAAC,GAAK,MAAK,CAC1BlH,cAAe,CACb/B,SAAU,WACVkJ,IAAK,MACLC,KAAM,MACNC,UAAW,yBAEb3E,OAAQ,CACN3E,MAAO,MACPK,OAAQ,MACRd,SAAU,OACVW,SAAU,YAEZwE,aAAc,CACZ1E,MAAO,OACPK,OAAQ,OACRd,SAAU,OACVG,UAAW,OACX6J,OAAQ,GAEVhF,WAAY,CAEVpE,gBAAiB,uBAEnBwC,SAAU,CACRlD,SAAU,SACV+J,WAAY,SACZC,aAAc,WACdC,WAAY,KAEdrE,aAAc,CACZsE,MAAOR,EAAMS,QAAQC,QAAQC,OAE/BxG,gBAAiB,CACfnD,gBAAiBgJ,EAAMS,QAAQC,QAAQE,OAEzCtG,oBAAqB,CACnBuG,YAAa,GACbC,SAAU,IAEZpG,eAAgB,CACdlE,QAAS,OACTuK,cAAe,SACflK,MAAO,QAET8D,QAAS,CACP3B,SAAU,GACVuH,WAAY,IACZ1J,MAAO,eAETmE,oBAAqB,CACnBhC,SAAU,GACVuH,WAAY,KAEf,GAmPcR,CAAsB1D"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Attachment/index.js"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactPlayer from 'react-player';\nimport classNames from 'classnames';\nimport { withStyles } from '@material-ui/core/styles';\nimport { Typography } from '@material-ui/core';\nimport ImageIcon from '@material-ui/icons/Image';\nimport FullSizeIcon from '@material-ui/icons/Fullscreen';\nimport grey from '@material-ui/core/colors/grey';\n\nimport { NewDocumentViewer } from '../NewDocumentViewer';\nimport { UnavailableFileIcon } from '../NewDocumentViewer/icons/UnavailableFileIcon';\nimport { ImageViewer } from '../../componentsV2/ImageViewer';\n\nimport styles from './styles.css';\n\nimport FileTypeIcon from '~components/FileTypeIcon';\nimport IconButton from '~components/IconButton';\nimport { isNativeDetected } from '~/utils/mobileDetect';\nimport { getIsImage, getIsVideo } from '~/utils/fileExtension';\nimport { getIsPreviewUnavailable } from '~/utils/filePreview';\nimport { DownloadIcon } from '~/icons';\nimport { useSignedURL } from '~/effects';\nimport utils from '~utils/main';\n\nconst PAGE_NAME = 'Attachment';\n\nconst grey200 = grey[200];\nconst grey400 = grey[400];\n\nconst SIZES = {\n small: { label: 'small', value: 135 },\n medium: { label: 'medium', value: 300 },\n};\n\nconst style = {\n fileImage: (imageIsLoaded, size) => ({\n maxWidth: '100%',\n borderRadius: 4,\n overflow: 'hidden',\n // NOTE: Makes one-line comment with image fits into comments container. Equals to\n // imagePlaceholder height\n maxHeight: size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value,\n display: imageIsLoaded ? 'initial' : 'none',\n cursor: 'pointer',\n }),\n fileDownloadWrapper: {\n padding: '10px 10px 10px 5px',\n border: `1px solid #616161`,\n borderRadius: 3,\n maxWidth: 500, // NOTE: Corresponds to react-player max width\n width: '75%',\n },\n imagePlaceholder: {\n position: 'relative',\n backgroundColor: grey200,\n borderRadius: 3,\n marginTop: 10,\n height: 135,\n width: 135,\n },\n};\n\nconst muiStyles = theme => ({\n imageIconRoot: {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n },\n dialog: {\n width: '95%',\n height: '95%',\n maxWidth: '100%',\n position: 'relative',\n },\n nativeDialog: {\n width: '100%',\n height: '100%',\n maxWidth: '100%',\n maxHeight: '100%',\n margin: 0,\n },\n dialogRoot: {\n // NOTE: Make background color similar to lightbox\n backgroundColor: 'rgba(0, 0, 0, 0.85)',\n },\n fileName: {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n fontWeight: 400,\n },\n downloadIcon: {\n color: theme.palette.primary.text3,\n },\n disabledPreview: {\n backgroundColor: theme.palette.primary.text9,\n },\n unavailableFileIcon: {\n marginRight: 12,\n minWidth: 32,\n },\n titleContainer: {\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n },\n caption: {\n fontSize: 12,\n fontWeight: 400,\n width: 'fit-content',\n },\n unavailableFileName: {\n fontSize: 12,\n fontWeight: 400,\n },\n});\n\n/* eslint-disable react/prop-types */\nconst ImageAttachment = props => {\n const downloadLink = useSignedURL(props.attachmentFileName) || props.attachmentUrl;\n\n return (\n <>\n <div onClick={props.openLightbox} className={styles.cAttachmentImg}>\n <img\n data-testid={`${PAGE_NAME}_image`}\n src={downloadLink}\n style={style.fileImage(!!props.imageDimensions, props.size)}\n alt=\"Attachment\"\n onLoad={props.onImageLoaded}\n />\n <div data-testid={`${PAGE_NAME}_button`} className={styles.cAttachmentImgPreviwBtn}>\n <FullSizeIcon />\n </div>\n </div>\n\n {!props.imageDimensions && (\n <div style={style.imagePlaceholder}>\n <ImageIcon\n data-testid={`${PAGE_NAME}_placeholder`}\n className={props.classes.imageIconRoot}\n htmlColor={grey400}\n fontSize=\"large\"\n />\n </div>\n )}\n\n {props.lightboxIsOpen && (\n <ImageViewer\n src={downloadLink}\n onClose={props.handleLightboxClose}\n onOpen={props.handleLightboxOpen}\n width={props.imageDimensions?.width}\n height={props.imageDimensions?.height}\n />\n )}\n </>\n );\n};\n\nconst FileAttachment = props => {\n const fileName = utils.getFileNameWithExtensionFromPath(props.displayName || props.attachmentUrl);\n\n const previewUrl = useSignedURL(props.attachmentFileName, 'inline');\n const downloadUrl = useSignedURL(props.attachmentFileName, 'attachment');\n\n const isPreviewUnavailable = getIsPreviewUnavailable(fileName);\n\n const handleFilePreviewOpen = () => {\n if (isPreviewUnavailable) return;\n props.openPreview();\n };\n\n return (\n <div className={styles.cAttachmentFileWrapper}>\n <div\n className={classNames(\n styles.cAttachmentFileDownloadWrapper,\n isPreviewUnavailable && props.classes.disabledPreview\n )}\n style={style.fileDownloadWrapper}\n onClick={handleFilePreviewOpen}\n >\n {isPreviewUnavailable ? (\n <UnavailableFileIcon className={props.classes.unavailableFileIcon} />\n ) : (\n <FileTypeIcon\n fileName={props.displayName || props.attachmentUrl}\n className={styles.cAttachmentFileDownloadWrapperFileIcon}\n size={props.small ? 25 : 50}\n />\n )}\n <div className={props.classes.titleContainer}>\n {isPreviewUnavailable && <div className={props.classes.caption}>Preview unavailable</div>}\n <div\n data-testid={`${PAGE_NAME}_name`}\n className={classNames(\n styles.cAttachmentFileDownloadWrapperFileName,\n isPreviewUnavailable && props.classes.fileName\n )}\n >\n <Typography variant=\"subtitle2\" noWrap className={props.classes.unavailableFileName}>\n {fileName}\n </Typography>\n </div>\n </div>\n <NewDocumentViewer\n fileUrl={previewUrl}\n classes={{\n root: props.classes.dialogRoot,\n paper: isNativeDetected ? props.classes.nativeDialog : props.classes.dialog,\n }}\n fileName={fileName}\n fileSize={props.attachmentSize}\n onClose={props.closePreview}\n open={props.previewIsOpen}\n />\n </div>\n <a\n download={props.displayName}\n href={downloadUrl}\n className={styles.cAttachmentFileDownloadWrapperForm}\n >\n <IconButton\n data-testid={`${PAGE_NAME}_downloadButton`}\n className={props.classes.downloadIcon}\n type=\"submit\"\n >\n <DownloadIcon size={24} className={props.classes.downloadIcon} />\n </IconButton>\n </a>\n </div>\n );\n};\n\n/* eslint-enable react/prop-types */\n\nfunction Attachment(rawProps) {\n const {\n displayName = null,\n fileName: attachmentFileName = null,\n attachmentSize = undefined,\n size = SIZES.medium.label,\n small = false,\n ...otherProps\n } = rawProps;\n const props = {\n ...otherProps,\n displayName,\n fileName: attachmentFileName,\n attachmentSize,\n size,\n small,\n };\n\n const [imageDimensions, setImageDimensions] = useState(undefined);\n const [isLightboxOpen, setIsLightboxOpen] = useState(false);\n const [isPreviewOpen, setIsPreviewOpen] = useState(false);\n\n const fileName = props.displayName || props.attachmentUrl || props.fileName;\n const isImage = getIsImage(fileName);\n const isVideo = getIsVideo(fileName);\n\n // Don't fetch download link if attachmentUrl is provided\n const downloadLink = useSignedURL(!props.attachmentUrl && props.fileName);\n const attachmentUrl = props.attachmentUrl || downloadLink;\n const preventIOSScroll = useCallback(e => e.preventDefault(), []);\n\n // NOTE: iOS WebView has a bug when background content of React Modal is scrollable\n // Source: https://github.com/reactjs/react-modal/issues/369\n const handleLightboxOpen = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'hidden';\n document.documentElement.addEventListener('touchmove', preventIOSScroll, {\n passive: false,\n });\n }\n }, [preventIOSScroll]);\n\n const handleLightboxClose = useCallback(() => {\n if (isNativeDetected) {\n // document.documentElement.style.overflowY = 'visible';\n document.documentElement.removeEventListener('touchmove', preventIOSScroll);\n }\n setIsLightboxOpen(false);\n }, [preventIOSScroll]);\n\n const openLightbox = useCallback(() => setIsLightboxOpen(true), []);\n const onImageLoaded = useCallback(e => {\n const { naturalWidth, naturalHeight } = e.currentTarget;\n setImageDimensions({ width: naturalWidth, height: naturalHeight });\n }, []);\n const openPreview = useCallback(() => setIsPreviewOpen(true), []);\n const closePreview = useCallback(e => {\n e.stopPropagation();\n setIsPreviewOpen(false);\n }, []);\n\n if (isImage)\n return (\n <div className={styles.cAttachment}>\n <ImageAttachment\n size={props.size}\n openLightbox={openLightbox}\n attachmentFileName={props.fileName}\n attachmentUrl={props.attachmentUrl}\n onImageLoaded={onImageLoaded}\n imageDimensions={imageDimensions}\n lightboxIsOpen={isLightboxOpen}\n handleLightboxOpen={handleLightboxOpen}\n handleLightboxClose={handleLightboxClose}\n classes={props.classes}\n />\n </div>\n );\n\n if (isVideo && ReactPlayer.canPlay(attachmentUrl))\n return (\n <div className={styles.cAttachment}>\n <ReactPlayer\n data-testid={`${PAGE_NAME}_player`}\n className={styles.cAttachmentReactPlayer}\n url={attachmentUrl}\n config={{ file: { attributes: { preload: 'metadata' } } }}\n controls\n height={props.size === SIZES.small.label ? SIZES.small.value : SIZES.medium.value}\n width={null}\n />\n </div>\n );\n\n return (\n <div className={styles.cAttachment}>\n <FileAttachment\n attachmentUrl={attachmentUrl}\n attachmentFileName={props.fileName}\n attachmentSize={props.attachmentSize}\n displayName={props.displayName}\n openPreview={openPreview}\n closePreview={closePreview}\n previewIsOpen={isPreviewOpen}\n classes={props.classes}\n small={props.small}\n />\n </div>\n );\n}\n\nAttachment.propTypes = {\n attachmentUrl: PropTypes.string.isRequired,\n attachmentSize: PropTypes.number,\n displayName: PropTypes.string,\n fileName: PropTypes.string,\n size: PropTypes.oneOf([SIZES.small.label, SIZES.medium.label]),\n classes: PropTypes.shape({}).isRequired,\n small: PropTypes.bool,\n};\n\nexport default withStyles(muiStyles)(Attachment);\n"],"names":["grey200","grey","grey400","SIZES","label","value","style","fileImage","imageIsLoaded","size","maxWidth","borderRadius","overflow","maxHeight","display","cursor","fileDownloadWrapper","padding","border","width","imagePlaceholder","position","backgroundColor","marginTop","height","ImageAttachment","props","_props$imageDimension","_props$imageDimension2","downloadLink","useSignedURL","attachmentFileName","attachmentUrl","_jsxs","_Fragment","children","onClick","openLightbox","className","styles","cAttachmentImg","_jsx","concat","src","imageDimensions","alt","onLoad","onImageLoaded","cAttachmentImgPreviwBtn","FullSizeIcon","ImageIcon","classes","imageIconRoot","htmlColor","fontSize","lightboxIsOpen","ImageViewer","onClose","handleLightboxClose","onOpen","handleLightboxOpen","FileAttachment","fileName","utils","getFileNameWithExtensionFromPath","displayName","previewUrl","downloadUrl","isPreviewUnavailable","getIsPreviewUnavailable","cAttachmentFileWrapper","classNames","cAttachmentFileDownloadWrapper","disabledPreview","openPreview","UnavailableFileIcon","unavailableFileIcon","FileTypeIcon","cAttachmentFileDownloadWrapperFileIcon","small","titleContainer","caption","cAttachmentFileDownloadWrapperFileName","Typography","variant","noWrap","unavailableFileName","NewDocumentViewer","fileUrl","root","dialogRoot","paper","isNativeDetected","nativeDialog","dialog","fileSize","attachmentSize","closePreview","open","previewIsOpen","download","href","cAttachmentFileDownloadWrapperForm","IconButton","downloadIcon","type","DownloadIcon","Attachment","rawProps","_rawProps$displayName","_rawProps$fileName","_rawProps$attachmentS","undefined","_rawProps$size","_rawProps$small","_excluded","useState","_useState2","_slicedToArray","_useState","setImageDimensions","_useState4","_useState3","isLightboxOpen","setIsLightboxOpen","_useState6","_useState5","isPreviewOpen","setIsPreviewOpen","isImage","getIsImage","isVideo","getIsVideo","preventIOSScroll","useCallback","e","preventDefault","document","documentElement","addEventListener","passive","removeEventListener","currentTarget","naturalWidth","naturalHeight","stopPropagation","cAttachment","ReactPlayer","canPlay","cAttachmentReactPlayer","url","config","file","attributes","preload","controls","propTypes","PropTypes","string","isRequired","number","oneOf","shape","bool","Attachment$1","withStyles","theme","top","left","transform","margin","whiteSpace","textOverflow","fontWeight","color","palette","primary","text3","text9","marginRight","minWidth","flexDirection"],"mappings":"+xPAyBA,IAEMA,EAAUC,EAAK,KACfC,EAAUD,EAAK,KAEfE,EACG,CAAEC,MAAO,QAASC,MAAO,KAD5BF,EAEI,CAAEC,MAAO,SAAUC,MAAO,KAG9BC,EAAQ,CACZC,UAAW,SAACC,EAAeC,GAAI,MAAM,CACnCC,SAAU,OACVC,aAAc,EACdC,SAAU,SAGVC,UAAWJ,IAASN,EAAYC,MAAQD,EAAYE,MAAQF,EAAaE,MACzES,QAASN,EAAgB,UAAY,OACrCO,OAAQ,UACR,EACFC,oBAAqB,CACnBC,QAAS,qBACTC,OAA2B,oBAC3BP,aAAc,EACdD,SAAU,IACVS,MAAO,OAETC,iBAAkB,CAChBC,SAAU,WACVC,gBAAiBtB,EACjBW,aAAc,EACdY,UAAW,GACXC,OAAQ,IACRL,MAAO,MA6DLM,EAAkB,SAAAC,GAAS,IAAAC,EAAAC,EACzBC,EAAeC,EAAaJ,EAAMK,qBAAuBL,EAAMM,cAErE,OACEC,EAAAC,EAAA,CAAAC,SACE,CAAAF,EAAA,MAAA,CAA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MACLC,KAAM,MACNC,UAAW,yBAEb3E,OAAQ,CACN3E,MAAO,MACPK,OAAQ,MACRd,SAAU,OACVW,SAAU,YAEZwE,aAAc,CACZ1E,MAAO,OACPK,OAAQ,OACRd,SAAU,OACVG,UAAW,OACX6J,OAAQ,GAEVhF,WAAY,CAEVpE,gBAAiB,uBAEnBwC,SAAU,CACRlD,SAAU,SACV+J,WAAY,SACZC,aAAc,WACdC,WAAY,KAEdrE,aAAc,CACZsE,MAAOR,EAAMS,QAAQC,QAAQC,OAE/BxG,gBAAiB,CACfnD,gBAAiBgJ,EAAMS,QAAQC,QAAQE,OAEzCtG,oBAAqB,CACnBuG,YAAa,GACbC,SAAU,IAEZpG,eAAgB,CACdlE,QAAS,OACTuK,cAAe,SACflK,MAAO,QAET8D,QAAS,CACP3B,SAAU,GACVuH,WAAY,IACZ1J,MAAO,eAETmE,oBAAqB,CACnBhC,SAAU,GACVuH,WAAY,KAEf,GAmPcR,CAAsB1D"}
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/defineProperty";import{useState as i,useRef as n,useMemo as r,useEffect as p,useCallback as m}from"react";import c from"prop-types";import{get as a,uniq as l,includes as d,isEqual as j}from"lodash";import u from"classnames";import{makeStyles as C,Dialog as I,DialogTitle as A,Typography as f,Tooltip as h,IconButton as g,DialogContent as S,DialogActions as v,Button as V}from"@material-ui/core";import{Close as b}from"@material-ui/icons";import F from"./components/Map/index.js";import T from"./components/WellSection/index.js";import{useWells as x,useFetchBicWellsData as P}from"./effects/index.js";import{DEFAULT_WELL_SECTIONS as D}from"./constants.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as y,Fragment as k,jsx as B}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.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"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"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"query-string";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../clients/jsonApi/index.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.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"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.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"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"../../clients/subscriptions/constants.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.v1.js";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.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/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.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/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.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"../../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/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppPanel/AppPanel.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.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 W from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";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"../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/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.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"../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"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.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"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../OffsetWellButton/OffsetWellButton.js";import w from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.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";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";function E(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var L=C((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function M(e,t){var o=e.find((function(e){return e.id===t}));return a(o,"name")||"-"}function H(e,t){var o=e.find((function(e){return e.id===t}));return a(o,"rigName")||"-"}function R(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function N(e){return e.map((function(e){return O(O({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function G(e){var t=a(e,"bicWellIds")||[],o=a(e,"manualWellIds")||[],s=a(e,"selectedWellIds")||[];return l(t.concat(o).concat(s))}function q(s){var c=s.defaultSubjectWell,C=void 0===c?null:c,E=s.offsetSetting,q=void 0===E?U:E,_=s.currentUser,K=void 0===_?z:_,X=s.isOpen,J=s.onClose,Q=s.onSave,Z=s.addWellsUsabilityInfo,$=void 0===Z?null:Z,Y=s.unusableWellAlarm,ee=void 0===Y?"Unable to add":Y,te=i(!1),oe=o(te,2),se=oe[0],ie=oe[1],ne=L({scrolling:se}),re=n(null),pe=n(!0),me=i(a(C,"companyId")||a(q,"companyId")||+a(K,"company_id")),ce=o(me,2),ae=ce[0],le=ce[1],de=i(a(C,"asset_id")||a(q,"subjectWellId")||null),je=o(de,2),ue=je[0],Ce=je[1],Ie=x(ae,X),Ae=P(ue,X),fe=i([]),he=o(fe,2),ge=he[0],Se=he[1],ve=i(!1),Ve=o(ve,2),be=Ve[0],Fe=Ve[1],Te=i(q),xe=o(Te,2),Pe=xe[0],De=xe[1],ye=i(!1),ke=o(ye,2),Be=ke[0],We=ke[1],we=r((function(){if(Ie){var e=G(Pe);return Ie.filter((function(t){return e.find((function(e){return e===a(t,"id")}))}))}return[]}),[Ie,Pe]);p((function(){X&&(le(a(C,"companyId")||a(q,"companyId")||+a(K,"company_id")),Ce(a(C,"asset_id")||a(q,"subjectWellId")||null),De(q),We(!1),pe.current=!0)}),[q,X]),p((function(){if(X&&Ie&&pe.current){var o,s=a(Pe,"selectedWellIds")||[],i=a(Pe,"manualWellIds")||[],n=a(Pe,"bicWellIds")||[],r=s.concat(i),p=r.filter((function(e){return Ie.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:M(Ie,e),rigName:H(Ie,e),kind:s.includes(e)?"advanced":"manual"}}));if(Ae&&Ae.filters&&Ae.result){var m,c=[],j=[{name:"Wells within Area",value:"area"}].concat(t(a(Ae,["filters","filterTabs"]))),u=(null===(m=Ae.filters)||void 0===m?void 0:m.filterMode)||"holeSize",C=l(j);o=[{name:"Search Results",wells:p,expanded:Be}].concat(t(C.map((function(t){var o;return{name:R(t,u),wells:(null===(o=Ae.result[t.value])||void 0===o?void 0:o.filter((function(e){return Ie.find((function(t){return t.id===e}))})).map((function(t){var o="object"===e(t)?t.id:t;return c.push(o),{id:o,checked:!1,name:M(Ie,o),rigName:H(Ie,o),kind:"best"}})))||[],expanded:!1}}))))}else o=[{name:"Search Results",wells:p,expanded:Be}].concat(t(D));var I=o.map((function(e){var t=e.wells.map((function(e){return d(n,e.id)||d(r,e.id)?O(O({},e),{},{checked:!0}):O({},e)}));return O(O({},e),{},{wells:t})}));Se(N(I))}}),[X,Ie,Ae,Pe]);var Ee=m((function(){return G(Pe).length}),[Pe]),Oe=m((function(){return(a(Pe,"bicWellIds")||[]).length}),[]),Le=n(null),Me=!Ie;return y(k,{children:[y(I,{onBackdropClick:J,onEscapeKeyDown:J,open:X,classes:{paper:ne.paper},children:[B(A,{children:y("div",{className:ne.dialogTitles,children:[y("div",{className:ne.titleContent,children:[B(f,{className:ne.title,children:"Select Offset Wells"}),B(h,{title:"Close",children:B(g,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:ne.closeIconButton,onClick:J,children:B(b,{className:ne.closeIcon})})})]}),B("div",{className:ne.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),se&&B("div",{className:ne.topShadow}),B(S,{className:ne.dialogContent,ref:re,onScroll:function(){ie(!0),clearTimeout(Le.current),Le.current=setTimeout((function(){ie(!1)}),1e3)},children:Me?B(W,{fullscreen:!1}):y(k,{children:[B(F,{wells:we,offsetWells:we}),B(T,{company:ae,wellSections:ge,getWellName:M,onChangeWellSections:function(e){var t=N(e);Se(t),We(t[0].expanded);var o=[],s=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&o.push(e.id),e.checked&&"manual"===e.kind&&s.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var n=o.concat(s).concat(i),r=O(O({},Pe),{},{selectedWellIds:l(o),manualWellIds:l(s),bicWellIds:l(i),resultWellIds:l(n)});De(r),pe.current=!1},onExploreMode:function(){Fe(!0)}})]})}),B("div",{className:ne.bottomShadow}),B(v,{className:u(ne.dialogActions),children:y("div",{className:ne.buttonContainer,children:[B(V,{"data-testid":"".concat("BICOffsetPickerDialog","_cancel"),onClick:J,color:"primary",children:"Cancel"}),y(V,{"data-testid":"".concat("BICOffsetPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=G(Pe),t=Ie.filter((function(t){return d(e,t.id)})),o=O(O({},Pe),{},{companyId:+ae,resultWellIds:e});Fe(!1),Q(o,t)},children:["Add (",Ee(),")"]})]})})]}),be&&B(w,{defaultSubjectWellId:a(C,"asset_id"),companyId:+ae,offsetSetting:Pe,currentUser:K,addWellsUsabilityInfo:$,unusableWellAlarm:ee,isAdvancedSearch:!0,bestCount:Oe(),isOpen:be,onClose:function(){Fe(!1)},onSave:function(e){var t=e;C||(j(ue,a(t,"subjectWellId"))&&j(ae,a(t,"companyId"))||(t=O(O({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),Ce(a(t,"subjectWellId")),le(a(t,"companyId")));var o=a(t,"manualWellIds")||[],s=a(t,"selectedWellIds")||[];o=o.filter((function(e){return!s.includes(e)})),t=O(O({},t),{},{manualWellIds:o}),De(t),pe.current=!0,We(!0),Fe(!1)}})]})}q.propTypes={defaultSubjectWell:c.shape({}),offsetSetting:c.shape({subjectWellId:c.number,companyId:c.number}),currentUser:c.shape({}),isOpen:c.bool.isRequired,onClose:c.func.isRequired,onSave:c.func.isRequired,addWellsUsabilityInfo:c.func,unusableWellAlarm:c.string};var U={},z={};export{q as default};
1
+ import e from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/toConsumableArray";import o from"@babel/runtime/helpers/slicedToArray";import s from"@babel/runtime/helpers/defineProperty";import{useState as n,useRef as i,useMemo as r,useEffect as p,useCallback as m}from"react";import c from"prop-types";import{get as a,uniq as l,includes as d,isEqual as j}from"lodash";import u from"classnames";import{makeStyles as C,Dialog as I,DialogTitle as A,Typography as f,Tooltip as h,IconButton as g,DialogContent as S,DialogActions as V,Button as v}from"@material-ui/core";import{Close as b}from"@material-ui/icons";import F from"./components/Map/index.js";import T from"./components/WellSection/index.js";import{useWells as x,useFetchBicWellsData as P}from"./effects/index.js";import{DEFAULT_WELL_SECTIONS as D}from"./constants.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@babel/runtime/helpers/objectWithoutProperties";import"../Modal/CorvaModal.scss.js";import"@icon-park/react/es/all";import{jsxs as y,Fragment as k,jsx as B}from"react/jsx-runtime";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/DragOne.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/InfoRounded.js";import"../../icons/customIcons/icons/FlameFilled.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/PinOne.js";import"../../icons/customIcons/icons/PinOneCrossed.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/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";import"../../icons/customIcons/icons/ErrorOps.js";import"../../icons/customIcons/icons/DataTypeOps.js";import"../../icons/customIcons/icons/FalsePositiveOps.js";import"../../icons/customIcons/icons/CalibrationOps.js";import"../../icons/customIcons/icons/CriticalOps.js";import"../../icons/customIcons/icons/Company.js";import"../../icons/customIcons/icons/ArchiveOne.js";import"../../icons/customIcons/icons/ParseBotFusion.js";import"../../icons/customIcons/icons/Connect.js";import"../../icons/customIcons/icons/PuzzleOne.js";import"../../icons/customIcons/icons/Feed.js";import"../../icons/customIcons/icons/Prompt.js";import"../../icons/customIcons/icons/Companies.js";import"../../icons/customIcons/icons/ClipboardAi.js";import"../../icons/customIcons/icons/Key.js";import"../../icons/customIcons/icons/AtSignCrossed.js";import"../../icons/customIcons/icons/MappingManual.js";import"../../icons/customIcons/icons/Mapping.js";import"../../icons/customIcons/icons/Metrics.js";import"../../icons/customIcons/icons/Drops.js";import"../../icons/customIcons/icons/ClipboardSearch.js";import"../../icons/customIcons/icons/Template.js";import"../../icons/customIcons/icons/ClipboardMetrics.js";import"../../icons/customIcons/icons/ClipboardBuilder.js";import"../../icons/customIcons/icons/UnitConversion.js";import"../../icons/customIcons/icons/NPT.js";import"../../icons/customIcons/icons/GuidedFrac.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"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"../DevCenter/AppContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"react-router-dom";import"query-string";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../UserMention/utils/index.js";import"../../utils/convert.js";import"moment";import"../../utils/casing/validation.js";import"lodash/mean";import"../../constants/streamSourceType.js";import"lodash/get";import"file-saver";import"../../utils/drillstring/conversion.js";import"lodash/set";import"lodash/cloneDeep";import"lodash/isNumber";import"lodash/has";import"../../utils/ga.js";import"../../utils/goalsConfig/goalsConfig.js";import"../../utils/lasParser.js";import"../../utils/main.js";import"../../utils/metrics/metricsConfig.js";import"../../utils/feed.js";import"../../utils/reports.js";import"moment-timezone";import"../../utils/dashboardReports.js";import"../../utils/env.js";import"file-extension";import"image-extensions";import"video-extensions";import"../../utils/jsonaDataFormatter.js";import"../../utils/bha.js";import"jsona";import"../../clients/jsonApi/index.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"../EmptyState/EmptyState.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/SettingsAccordion.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/styles.js";import"@material-ui/pickers";import"@date-io/moment";import"../../config/theme/index.js";import"../../hocs/withAssetEditorLockHOC.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Button/components/Button/index.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import"../AssetEditorV2/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../ConfirmationDialog.js";import"../../permissions/PermissionsContext.js";import"../../permissions/constants/index.js";import"../../permissions/withPermissionsHOC.js";import"../../permissions/ProvidePermissions.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.constants.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppContainer/AppContainer.constants.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/AppCommonsProvider/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppHeader.constants.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.constants.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.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"../../componentsV2/PadModeSelect/PadModeSelect.js";import"../../componentsV2/PadModeSelect/PadModeSelect.constants.js";import"../../componentsV2/AppCommonsProvider/AppCommonsProvider.js";import"../../componentsV2/utils.js";import"../../componentsV2/AppHeader/V3/VersionSelect/VersionSelect.js";import"../../componentsV2/UniversalLink/UniversalLink.scss.js";import"../../componentsV2/AppHeader/V3/AssetChips/AssetChips.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.js";import"../../componentsV2/AppHeader/V3/DqStatusIcon/DqStatusIcon.constants.js";import"../../componentsV2/Popover/Popover.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/ButtonIcon/ButtonIcon.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"../../componentsV2/Menu/Menu.js";import"../../componentsV2/ModalWindow/ModalWindow.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../componentsV2/LoaderLogo/LoaderLogo.constants.js";import"../../componentsV2/LoaderLogo/LoaderLogo.scss.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorChip/AssetSelectorChip.js";import"../../componentsV2/TextInput/TextInput.js";import"../../componentsV2/AppHeader/V3/AssetSelector/constants.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/AssetSelectorSelect.scss.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelectorSelect/loadAssets.js";import"../../componentsV2/AppHeader/V3/AssetSelector/AssetSelector.scss.js";import"querystring";import"../../clients/subscriptions/subscriptions-client.factory.js";import"../StatusBadge/constants.js";import"lodash/unset";import"../../clients/api/apiCore.js";import"../../clients/constants.js";import"../../clients/sso/auth0.js";import"../../clients/sso/oauth2.js";import"../../clients/api/rateLimiter.js";import"lodash/isEmpty";import"lodash/sortBy";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../componentsV2/AppPanel/AppPanelsContext.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.constants.js";import"../../componentsV2/AppHeader/V3/AppTitle/AppTitle.scss.js";import"../../componentsV2/AppHeader/V3/constants.scss.js";import"../../componentsV2/AppHeader/V3/SettingsButton/SettingsButton.constants.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/EmptyState/EmptyState.scss.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.scss.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Grid/Grid.js";import"../../componentsV2/Grid/Cell.js";import"../../componentsV2/PopoverPanel/PopoverPanel.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInputNext/TextInputNext.js";import"../../componentsV2/TextArea/TextArea.js";import"../../componentsV2/Label/Label.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/ChipAlert/ChipAlert.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/Hint/Hint.scss.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/TemplatesControl/TemplatesControl.js";import"zustand";import"../../componentsV2/TemplatesControl/utils.js";import"../../componentsV2/TemplatesControl/icons/folder/index.js";import"../../componentsV2/TemplatesControl/Store/utils.js";import"../../componentsV2/TemplatesControl/types.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.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"../../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/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../componentsV2/OffsetWellsButton/OffsetWellsButton.js";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtreme.scss.js";import"highcharts";import"../../componentsV2/ChartAxisExtreme/ChartAxisExtremeDragTracker.js";import"../../componentsV2/Autocomplete/Autocomplete.js";import"../../componentsV2/Select/Select.js";import"../../componentsV2/AppPanel/AppPanel.js";import"../../componentsV2/AppSettingsDivider/AppSettingsDivider.scss.js";import"../../componentsV2/WellArchivedMessage/WellArchivedMessage.js";import"../../componentsV2/DatePicker/DatePicker.js";import"../../componentsV2/DragHandle/DragHandle.js";import"../../componentsV2/CompletionsOffsetWellPicker/CompletionsOffsetWellPicker.js";import"../../componentsV2/Slider/constants.js";import"../../componentsV2/Slider/components/SliderThumb.js";import"../../componentsV2/Slider/Slider.scss.js";import"../../componentsV2/SliderAdvanced/SliderAdvanced.js";import"react-color";import"../../componentsV2/ColorPicker/Swatches/Swatches.scss.js";import"../../componentsV2/ColorPicker/OpacityDragtracker/OpacityDragTracker.scss.js";import"../../componentsV2/ColorPicker/ColorPicker.scss.js";import"../../componentsV2/ChartHelper/ChartHelper.scss.js";import"../../componentsV2/Hotkey/Hotkey.js";import"@tanstack/react-query";import"../../componentsV2/InterventionEventSelector/useInterventionUnitEvents.js";import"../../componentsV2/InterventionEventSelector/InterventionEventSelector.scss.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js";import"../Icons/AnnotationIcon.js";import"../HelpCenter/HelpCenterIcon.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.scss.js";import"../Toaster/Toaster.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 W from"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../RealTimeValuesSidebar/RealTimeSidebar.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";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"../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/ChartWrapperContext.js";import"../Chart/effects/useChartModifier.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"../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"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"../GradientManager/GradientPreview/GradientPreview.js";import"../GradientManager/GradientSelect.scss.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"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"../OffsetWellButton/OffsetWellButton.js";import w from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"mapbox-gl/dist/mapbox-gl.css";import"@material-ui/icons/Info";import"@material-ui/icons/Block";import"../OffsetWellMap/WellTooltip.module.css.js";import"../OffsetWellMap/OffsetWellMap.module.css.js";import"../../config/mapboxGl/index.js";import"../../config/mapbox/index.js";import"react-dom";import"@material-ui/core/Snackbar";import"../Notifications/Toast.js";import"../Notifications/Notifications.scss.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";import"../CommentCard/CommentCard.js";import"@material-ui/icons/AlternateEmail";import"../AttachFileButton/AttachFileButton.scss.js";import"../CommentInputNext/CommentInputNext.js";import"../WellhubFilePicker/components/WellhubFileCard/WellhubFileCard.scss.js";import"../WellhubFilePicker/components/WellhubFilePickerView/WellhubFilePickerView.scss.js";import"react-s3-uploader/s3upload";import"../CommentComposer/CommentMetaLine.scss.js";import"../CommentComposer/ChatChannelSelector.scss.js";import"../CommentComposer/ShareToChatRow.scss.js";import"../CommentComposer/CommentComposer.scss.js";import"../AttachmentPreview/AttachmentPreview.js";import"../AttachmentPreview/AttachmentImage.js";import"../AttachmentPreview/AttachmentPreview.scss.js";import"../CommentPin/CommentPin.js";import"../FeedCard/FeedCard.js";import"../FeedItemCard/FeedItemCard.js";import"../NewCommentCursor/NewCommentCursor.js";import"../LinkedText/LinkedText.js";import"../FeedItem/feedItemTypes/AlertFeedItem.js";import"../FeedItem/feedItemTypes/PostFeedItem.js";import"../FeedItem/feedItemTypes/GeosteeringFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/DocumentFeedItem.js";import"../FeedItem/feedItemTypes/DrillerMemoFeedItem.js";import"../FeedItem/feedItemTypes/NptFeedItem.js";import"../FeedItem/feedItemTypes/SurveyStationFeedItem/index.js";import"../FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js";import"../FeedItem/feedItemTypes/TracesMemoFeedItem.js";import"../FeedItem/feedItemTypes/DepthCommentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js";import"../FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js";import"../FeedItem/feedItemTypes/CompletionDocumentFeedItem.js";import"../FeedItem/feedItemTypes/CompletionNptFeedItem.js";import"../FeedItem/feedItemTypes/StageOverviewFeedItem/index.js";import"../FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js";import"../FeedItem/feedItemTypes/WellPlanFeedItem/index.js";import"../FeedItem/feedItemTypes/FluidReportFeedItem.js";import"../FeedItem/feedItemTypes/BhaFeedItem/BhaFeedItem.js";import"../FeedItem/feedItemTypes/DvDCommentFeedItem.js";import"../FeedItem/feedItemTypes/PCCommentFeedItem.js";import"../FeedItem/feedItemTypes/HookloadCommentFeedItem.js";import"../FeedItem/feedItemTypes/NptLessonsCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";function E(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach((function(t){s(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var L=C((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function M(e,t){var o=e.find((function(e){return e.id===t}));return a(o,"name")||"-"}function H(e,t){var o=e.find((function(e){return e.id===t}));return a(o,"rigName")||"-"}function R(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function N(e){return e.map((function(e){return O(O({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function G(e){var t=a(e,"bicWellIds")||[],o=a(e,"manualWellIds")||[],s=a(e,"selectedWellIds")||[];return l(t.concat(o).concat(s))}function q(s){var c=s.defaultSubjectWell,C=void 0===c?null:c,E=s.offsetSetting,q=void 0===E?U:E,_=s.currentUser,K=void 0===_?z:_,X=s.isOpen,J=s.onClose,Q=s.onSave,Z=s.addWellsUsabilityInfo,$=void 0===Z?null:Z,Y=s.unusableWellAlarm,ee=void 0===Y?"Unable to add":Y,te=n(!1),oe=o(te,2),se=oe[0],ne=oe[1],ie=L({scrolling:se}),re=i(null),pe=i(!0),me=n(a(C,"companyId")||a(q,"companyId")||+a(K,"company_id")),ce=o(me,2),ae=ce[0],le=ce[1],de=n(a(C,"asset_id")||a(q,"subjectWellId")||null),je=o(de,2),ue=je[0],Ce=je[1],Ie=x(ae,X),Ae=P(ue,X),fe=n([]),he=o(fe,2),ge=he[0],Se=he[1],Ve=n(!1),ve=o(Ve,2),be=ve[0],Fe=ve[1],Te=n(q),xe=o(Te,2),Pe=xe[0],De=xe[1],ye=n(!1),ke=o(ye,2),Be=ke[0],We=ke[1],we=r((function(){if(Ie){var e=G(Pe);return Ie.filter((function(t){return e.find((function(e){return e===a(t,"id")}))}))}return[]}),[Ie,Pe]);p((function(){X&&(le(a(C,"companyId")||a(q,"companyId")||+a(K,"company_id")),Ce(a(C,"asset_id")||a(q,"subjectWellId")||null),De(q),We(!1),pe.current=!0)}),[q,X]),p((function(){if(X&&Ie&&pe.current){var o,s=a(Pe,"selectedWellIds")||[],n=a(Pe,"manualWellIds")||[],i=a(Pe,"bicWellIds")||[],r=s.concat(n),p=r.filter((function(e){return Ie.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:M(Ie,e),rigName:H(Ie,e),kind:s.includes(e)?"advanced":"manual"}}));if(Ae&&Ae.filters&&Ae.result){var m,c=[],j=[{name:"Wells within Area",value:"area"}].concat(t(a(Ae,["filters","filterTabs"]))),u=(null===(m=Ae.filters)||void 0===m?void 0:m.filterMode)||"holeSize",C=l(j);o=[{name:"Search Results",wells:p,expanded:Be}].concat(t(C.map((function(t){var o;return{name:R(t,u),wells:(null===(o=Ae.result[t.value])||void 0===o?void 0:o.filter((function(e){return Ie.find((function(t){return t.id===e}))})).map((function(t){var o="object"===e(t)?t.id:t;return c.push(o),{id:o,checked:!1,name:M(Ie,o),rigName:H(Ie,o),kind:"best"}})))||[],expanded:!1}}))))}else o=[{name:"Search Results",wells:p,expanded:Be}].concat(t(D));var I=o.map((function(e){var t=e.wells.map((function(e){return d(i,e.id)||d(r,e.id)?O(O({},e),{},{checked:!0}):O({},e)}));return O(O({},e),{},{wells:t})}));Se(N(I))}}),[X,Ie,Ae,Pe]);var Ee=m((function(){return G(Pe).length}),[Pe]),Oe=m((function(){return(a(Pe,"bicWellIds")||[]).length}),[]),Le=i(null),Me=!Ie;return y(k,{children:[y(I,{onBackdropClick:J,onEscapeKeyDown:J,open:X,classes:{paper:ie.paper},children:[B(A,{children:y("div",{className:ie.dialogTitles,children:[y("div",{className:ie.titleContent,children:[B(f,{className:ie.title,children:"Select Offset Wells"}),B(h,{title:"Close",children:B(g,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:ie.closeIconButton,onClick:J,children:B(b,{className:ie.closeIcon})})})]}),B("div",{className:ie.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),se&&B("div",{className:ie.topShadow}),B(S,{className:ie.dialogContent,ref:re,onScroll:function(){ne(!0),clearTimeout(Le.current),Le.current=setTimeout((function(){ne(!1)}),1e3)},children:Me?B(W,{fullscreen:!1}):y(k,{children:[B(F,{wells:we,offsetWells:we}),B(T,{company:ae,wellSections:ge,getWellName:M,onChangeWellSections:function(e){var t=N(e);Se(t),We(t[0].expanded);var o=[],s=[],n=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&o.push(e.id),e.checked&&"manual"===e.kind&&s.push(e.id),e.checked&&"best"===e.kind&&n.push(e.id)}))}));var i=o.concat(s).concat(n),r=O(O({},Pe),{},{selectedWellIds:l(o),manualWellIds:l(s),bicWellIds:l(n),resultWellIds:l(i)});De(r),pe.current=!1},onExploreMode:function(){Fe(!0)}})]})}),B("div",{className:ie.bottomShadow}),B(V,{className:u(ie.dialogActions),children:y("div",{className:ie.buttonContainer,children:[B(v,{"data-testid":"".concat("BICOffsetPickerDialog","_cancel"),onClick:J,color:"primary",children:"Cancel"}),y(v,{"data-testid":"".concat("BICOffsetPickerDialog","_add"),variant:"contained",color:"primary",onClick:function(){var e=G(Pe),t=Ie.filter((function(t){return d(e,t.id)})),o=O(O({},Pe),{},{companyId:+ae,resultWellIds:e});Fe(!1),Q(o,t)},children:["Add (",Ee(),")"]})]})})]}),be&&B(w,{defaultSubjectWellId:a(C,"asset_id"),companyId:+ae,offsetSetting:Pe,currentUser:K,addWellsUsabilityInfo:$,unusableWellAlarm:ee,isAdvancedSearch:!0,bestCount:Oe(),isOpen:be,onClose:function(){Fe(!1)},onSave:function(e){var t=e;C||(j(ue,a(t,"subjectWellId"))&&j(ae,a(t,"companyId"))||(t=O(O({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),Ce(a(t,"subjectWellId")),le(a(t,"companyId")));var o=a(t,"manualWellIds")||[],s=a(t,"selectedWellIds")||[];o=o.filter((function(e){return!s.includes(e)})),t=O(O({},t),{},{manualWellIds:o}),De(t),pe.current=!0,We(!0),Fe(!1)}})]})}q.propTypes={defaultSubjectWell:c.shape({}),offsetSetting:c.shape({subjectWellId:c.number,companyId:c.number}),currentUser:c.shape({}),isOpen:c.bool.isRequired,onClose:c.func.isRequired,onSave:c.func.isRequired,addWellsUsabilityInfo:c.func,unusableWellAlarm:c.string};var U={},z={};export{q as default};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/BICOffsetPickerDialog/index.js"],"sourcesContent":["import { useState, useEffect, useCallback, useMemo, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { get, uniq, includes, isEqual } from 'lodash';\nimport classnames from 'classnames';\nimport {\n Button,\n IconButton,\n Typography,\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Tooltip,\n makeStyles,\n} from '@material-ui/core';\nimport { Close as CloseIcon } from '@material-ui/icons';\n\nimport WellsMap from './components/Map';\nimport WellSection from './components/WellSection';\nimport { useWells, useFetchBicWellsData } from './effects';\nimport { DEFAULT_WELL_SECTIONS } from './constants';\n\nimport { LoadingIndicator, OffsetWellPickerV2 } from '~/components';\n\nconst PAGE_NAME = 'BICOffsetPickerDialog';\n\nconst useStyles = makeStyles(theme => ({\n paper: {\n width: '552px',\n },\n dialogTitles: {\n display: 'flex',\n flexDirection: 'column',\n },\n titleContent: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n title: {\n fontSize: '20px',\n color: theme.palette.primary.text1,\n },\n description: {\n fontSize: '16px',\n fontWeight: 'normal',\n color: theme.palette.primary.text6,\n marginTop: 16,\n },\n closeIconButton: {\n fontSize: '20px',\n padding: 4,\n '&:hover $closeIcon': {\n color: '#fff',\n },\n },\n closeIcon: {\n color: theme.palette.primary.text6,\n },\n topShadow: {\n width: '100%',\n height: '16px',\n backgroundImage: `linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ${theme.palette.background.b9})`,\n position: 'absolute',\n top: '155px',\n zIndex: 2,\n },\n bottomShadow: {\n width: '100%',\n height: '16px',\n backgroundImage: `linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ${theme.palette.background.b9})`,\n position: 'absolute',\n bottom: '52px',\n zIndex: 2,\n },\n dialogActions: {\n display: 'flex',\n justifyContent: 'flex-end',\n paddingTop: 8,\n paddingBottom: 8,\n },\n dialogActionsSmallScreen: {\n paddingRight: '100px', // Intercom\n },\n dialogContent: {\n display: 'flex',\n flexDirection: 'column',\n overflowX: 'hidden',\n },\n buttonContainer: {\n display: 'flex',\n gap: '16px',\n },\n}));\n\nfunction getWellName(wells, wellId) {\n const well = wells.find(item => item.id === wellId);\n return get(well, 'name') || '-';\n}\n\nfunction getRigName(wells, wellId) {\n const well = wells.find(item => item.id === wellId);\n return get(well, 'rigName') || '-';\n}\n\nfunction getSectionName(area, filterMode) {\n if (area.value === 'well') return 'Best Wells';\n else if (area.value === 'area') return 'Area Offsets';\n else if (filterMode === 'section') return `Best ${area.value} Wells`;\n return `Best ${area.value} \" Wells`;\n}\n\nfunction sortWells(sections) {\n const sortedWells = sections.map(section => ({\n ...section,\n wells: section.wells.sort((a, b) => {\n if (a.name < b.name) return -1;\n if (a.name > b.name) return 1;\n return 0;\n }),\n }));\n return sortedWells;\n}\n\nfunction getResultWellIds(offsetSetting) {\n const bicWellIds = get(offsetSetting, 'bicWellIds') || [];\n const manualWellIds = get(offsetSetting, 'manualWellIds') || [];\n const selectedWellIds = get(offsetSetting, 'selectedWellIds') || [];\n const resultWellIds = uniq(bicWellIds.concat(manualWellIds).concat(selectedWellIds));\n return resultWellIds;\n}\n\nfunction BICOffsetPickerDialog({\n defaultSubjectWell = null,\n offsetSetting = DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING,\n currentUser = DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER,\n isOpen,\n onClose,\n onSave,\n addWellsUsabilityInfo = null,\n unusableWellAlarm = 'Unable to add',\n}) {\n const [scrolling, setScrolling] = useState(false);\n const classes = useStyles({ scrolling });\n const dialogContentRef = useRef(null);\n const loadingRef = useRef(true);\n const [companyId, setCompanyId] = useState(\n get(defaultSubjectWell, 'companyId') ||\n get(offsetSetting, 'companyId') ||\n +get(currentUser, 'company_id')\n );\n const [subjectWellId, setSubjectWellId] = useState(\n get(defaultSubjectWell, 'asset_id') || get(offsetSetting, 'subjectWellId') || null\n );\n const wells = useWells(companyId, isOpen);\n const bicData = useFetchBicWellsData(subjectWellId, isOpen);\n const [wellSections, setWellSections] = useState([]);\n const [isOpenOffsetDialog, setIsOpenOffsetsDialog] = useState(false);\n const [interimOffsetSetting, setInterimOffsetSetting] = useState(offsetSetting);\n const [expandedSearchResult, setExpandedSearchResult] = useState(false);\n const offsetWells = useMemo(() => {\n if (wells) {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n const data = wells.filter(well => resultWellIds.find(id => id === get(well, 'id')));\n return data;\n }\n return [];\n }, [wells, interimOffsetSetting]);\n\n useEffect(() => {\n if (isOpen) {\n setCompanyId(\n get(defaultSubjectWell, 'companyId') ||\n get(offsetSetting, 'companyId') ||\n +get(currentUser, 'company_id')\n );\n setSubjectWellId(\n get(defaultSubjectWell, 'asset_id') || get(offsetSetting, 'subjectWellId') || null\n );\n setInterimOffsetSetting(offsetSetting);\n setExpandedSearchResult(false);\n loadingRef.current = true;\n }\n }, [offsetSetting, isOpen]);\n\n // NOTE: update well section wells data\n useEffect(() => {\n if (!isOpen || !wells || !loadingRef.current) return;\n\n const selectedWellIds = get(interimOffsetSetting, 'selectedWellIds') || [];\n const manualWellIds = get(interimOffsetSetting, 'manualWellIds') || [];\n const bicWellIds = get(interimOffsetSetting, 'bicWellIds') || [];\n\n // Make Search Results Tab\n const allManualWellIds = selectedWellIds.concat(manualWellIds);\n const searchResults = allManualWellIds\n .filter(id => wells.find(well => well.id === id))\n .map(id => {\n return {\n id,\n checked: true,\n name: getWellName(wells, id),\n rigName: getRigName(wells, id),\n kind: selectedWellIds.includes(id) ? 'advanced' : 'manual',\n };\n });\n\n // Make Best Wells Tabs\n let mergedSections;\n if (!bicData || !bicData.filters || !bicData.result) {\n mergedSections = [\n { name: 'Search Results', wells: searchResults, expanded: expandedSearchResult },\n ...DEFAULT_WELL_SECTIONS,\n ];\n } else {\n const bestWellIds = [];\n const filteredTabs = [\n { name: 'Wells within Area', value: 'area' },\n ...get(bicData, ['filters', 'filterTabs']),\n ];\n const filterMode = bicData.filters?.filterMode || 'holeSize';\n const tabs = uniq(filteredTabs);\n mergedSections = [\n { name: 'Search Results', wells: searchResults, expanded: expandedSearchResult },\n ...tabs.map(area => {\n return {\n name: getSectionName(area, filterMode),\n wells:\n bicData.result[area.value]\n ?.filter(id => wells.find(well => well.id === id))\n .map(item => {\n const id = typeof item === 'object' ? item.id : item;\n bestWellIds.push(id);\n return {\n id,\n checked: false,\n name: getWellName(wells, id),\n rigName: getRigName(wells, id),\n kind: 'best',\n };\n }) || [],\n expanded: false,\n };\n }),\n ];\n }\n\n // Check if any best well is checked\n const sectionsData = mergedSections.map(section => {\n const data = section.wells.map(item => {\n if (includes(bicWellIds, item.id) || includes(allManualWellIds, item.id)) {\n return {\n ...item,\n checked: true,\n };\n } else {\n return { ...item };\n }\n });\n return {\n ...section,\n wells: data,\n };\n });\n // Sort by name\n setWellSections(sortWells(sectionsData));\n }, [isOpen, wells, bicData, interimOffsetSetting]);\n\n // NOTE: BIC Wells\n const handleChangeWellSections = sections => {\n const sortedSections = sortWells(sections);\n setWellSections(sortedSections);\n setExpandedSearchResult(sortedSections[0].expanded);\n\n const newSelectedWellIds = [];\n const newManualWellIds = [];\n const newBicWellIds = [];\n sortedSections.forEach(section => {\n section.wells.forEach(well => {\n if (well.checked && well.kind === 'advanced') newSelectedWellIds.push(well.id);\n if (well.checked && well.kind === 'manual') newManualWellIds.push(well.id);\n if (well.checked && well.kind === 'best') newBicWellIds.push(well.id);\n });\n });\n const newResultWellIds = newSelectedWellIds.concat(newManualWellIds).concat(newBicWellIds);\n const newOffsetSetting = {\n ...interimOffsetSetting,\n selectedWellIds: uniq(newSelectedWellIds),\n manualWellIds: uniq(newManualWellIds),\n bicWellIds: uniq(newBicWellIds),\n resultWellIds: uniq(newResultWellIds),\n };\n setInterimOffsetSetting(newOffsetSetting);\n loadingRef.current = false;\n };\n\n const handleCloseAdvancedWells = () => {\n setIsOpenOffsetsDialog(false);\n };\n\n const handleAddAdvancedWells = newOffsetSetting => {\n let offsetSettings = newOffsetSetting;\n if (!defaultSubjectWell) {\n if (\n !isEqual(subjectWellId, get(offsetSettings, 'subjectWellId')) ||\n !isEqual(companyId, get(offsetSettings, 'companyId'))\n ) {\n offsetSettings = {\n ...offsetSettings,\n bicWellIds: [],\n manualWellIds: [],\n resultWellIds: [],\n };\n }\n setSubjectWellId(get(offsetSettings, 'subjectWellId'));\n setCompanyId(get(offsetSettings, 'companyId'));\n }\n\n let manualWellIds = get(offsetSettings, 'manualWellIds') || [];\n const selectedWellIds = get(offsetSettings, 'selectedWellIds') || [];\n manualWellIds = manualWellIds.filter(id => !selectedWellIds.includes(id));\n offsetSettings = {\n ...offsetSettings,\n manualWellIds,\n };\n setInterimOffsetSetting(offsetSettings);\n loadingRef.current = true;\n setExpandedSearchResult(true);\n setIsOpenOffsetsDialog(false);\n };\n\n const handleOpenAdvancedDialog = () => {\n setIsOpenOffsetsDialog(true);\n };\n\n const handleAdd = () => {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n\n const allOffsetWells = wells.filter(well => includes(resultWellIds, well.id));\n const newOffsetSetting = {\n ...interimOffsetSetting,\n companyId: +companyId,\n resultWellIds,\n };\n\n setIsOpenOffsetsDialog(false);\n onSave(newOffsetSetting, allOffsetWells);\n };\n\n const getResultCount = useCallback(() => {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n return resultWellIds.length;\n }, [interimOffsetSetting]);\n\n const getBestCount = useCallback(() => {\n const bicWellIds = get(interimOffsetSetting, 'bicWellIds') || [];\n return bicWellIds.length;\n }, []);\n const scrollTimeoutRef = useRef(null);\n\n const handleScroll = () => {\n setScrolling(true);\n clearTimeout(scrollTimeoutRef.current);\n scrollTimeoutRef.current = setTimeout(() => {\n setScrolling(false);\n }, 1000);\n };\n\n const isLoading = !wells;\n\n return (\n <>\n <Dialog\n onBackdropClick={onClose}\n onEscapeKeyDown={onClose}\n open={isOpen}\n classes={{ paper: classes.paper }}\n >\n <DialogTitle>\n <div className={classes.dialogTitles}>\n <div className={classes.titleContent}>\n <Typography className={classes.title}>Select Offset Wells</Typography>\n <Tooltip title=\"Close\">\n <IconButton\n data-not-migrated-muiiconbutton\n aria-label=\"close\"\n className={classes.closeIconButton}\n onClick={onClose}\n >\n <CloseIcon className={classes.closeIcon} />\n </IconButton>\n </Tooltip>\n </div>\n <div className={classes.description}>\n Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well\n Selection Application.\n </div>\n </div>\n </DialogTitle>\n {scrolling && <div className={classes.topShadow} />}\n <DialogContent\n className={classes.dialogContent}\n ref={dialogContentRef}\n onScroll={handleScroll}\n >\n {!isLoading ? (\n <>\n <WellsMap wells={offsetWells} offsetWells={offsetWells} />\n <WellSection\n company={companyId}\n wellSections={wellSections}\n getWellName={getWellName}\n onChangeWellSections={handleChangeWellSections}\n onExploreMode={handleOpenAdvancedDialog}\n />\n </>\n ) : (\n <LoadingIndicator fullscreen={false} />\n )}\n </DialogContent>\n <div className={classes.bottomShadow} />\n <DialogActions className={classnames(classes.dialogActions)}>\n <div className={classes.buttonContainer}>\n <Button data-testid={`${PAGE_NAME}_cancel`} onClick={onClose} color=\"primary\">\n Cancel\n </Button>\n <Button\n data-testid={`${PAGE_NAME}_add`}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleAdd}\n >\n Add ({getResultCount()})\n </Button>\n </div>\n </DialogActions>\n </Dialog>\n\n {isOpenOffsetDialog && (\n <OffsetWellPickerV2\n defaultSubjectWellId={get(defaultSubjectWell, 'asset_id')}\n companyId={+companyId}\n offsetSetting={interimOffsetSetting}\n currentUser={currentUser}\n addWellsUsabilityInfo={addWellsUsabilityInfo}\n unusableWellAlarm={unusableWellAlarm}\n isAdvancedSearch\n bestCount={getBestCount()}\n isOpen={isOpenOffsetDialog}\n onClose={handleCloseAdvancedWells}\n onSave={handleAddAdvancedWells}\n />\n )}\n </>\n );\n}\n\nBICOffsetPickerDialog.propTypes = {\n defaultSubjectWell: PropTypes.shape({}),\n offsetSetting: PropTypes.shape({\n subjectWellId: PropTypes.number,\n companyId: PropTypes.number,\n }),\n currentUser: PropTypes.shape({}),\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n addWellsUsabilityInfo: PropTypes.func, // update offset wells usability info in specific apps (\"is_usable\" field)\n unusableWellAlarm: PropTypes.string,\n};\n\nconst DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING = {};\nconst DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER = {};\n\nexport default BICOffsetPickerDialog;\n"],"names":["useStyles","makeStyles","theme","paper","width","dialogTitles","display","flexDirection","titleContent","justifyContent","alignItems","title","fontSize","color","palette","primary","text1","description","fontWeight","text6","marginTop","closeIconButton","padding","closeIcon","topShadow","height","backgroundImage","concat","background","b9","position","top","zIndex","bottomShadow","bottom","dialogActions","paddingTop","paddingBottom","dialogActionsSmallScreen","paddingRight","dialogContent","overflowX","buttonContainer","gap","getWellName","wells","wellId","well","find","item","id","get","getRigName","getSectionName","area","filterMode","value","sortWells","sections","map","section","_objectSpread","sort","a","b","name","getResultWellIds","offsetSetting","bicWellIds","manualWellIds","selectedWellIds","uniq","BICOffsetPickerDialog","_ref","_ref$defaultSubjectWe","defaultSubjectWell","_ref$offsetSetting","DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING","_ref$currentUser","currentUser","DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER","isOpen","onClose","onSave","_ref$addWellsUsabilit","addWellsUsabilityInfo","_ref$unusableWellAlar","unusableWellAlarm","useState","_useState2","_slicedToArray","_useState","scrolling","setScrolling","classes","dialogContentRef","useRef","loadingRef","_useState4","_useState3","companyId","setCompanyId","_useState5","_useState6","subjectWellId","setSubjectWellId","useWells","bicData","useFetchBicWellsData","_useState8","_useState7","wellSections","setWellSections","_useState10","_useState9","isOpenOffsetDialog","setIsOpenOffsetsDialog","_useState12","_useState11","interimOffsetSetting","setInterimOffsetSetting","_useState14","_useState13","expandedSearchResult","setExpandedSearchResult","offsetWells","useMemo","resultWellIds","filter","useEffect","current","mergedSections","allManualWellIds","searchResults","checked","rigName","kind","includes","filters","result","_bicData$filters","bestWellIds","filteredTabs","_toConsumableArray","tabs","expanded","_bicData$result$area$","_typeof","push","DEFAULT_WELL_SECTIONS","sectionsData","data","getResultCount","useCallback","length","getBestCount","scrollTimeoutRef","isLoading","_jsxs","_Fragment","children","Dialog","onBackdropClick","onEscapeKeyDown","open","_jsx","DialogTitle","className","Typography","Tooltip","IconButton","onClick","CloseIcon","DialogContent","ref","onScroll","clearTimeout","setTimeout","LoadingIndicator","fullscreen","WellsMap","WellSection","company","onChangeWellSections","sortedSections","newSelectedWellIds","newManualWellIds","newBicWellIds","forEach","newResultWellIds","newOffsetSetting","onExploreMode","DialogActions","classnames","Button","variant","allOffsetWells","OffsetWellPickerV2","defaultSubjectWellId","isAdvancedSearch","bestCount","offsetSettings","isEqual","propTypes","PropTypes","shape","number","bool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,GAAE,OAAKoB,EAAgBmE,SAASvF,MACrEuJ,SACKA,GAAc,CAAA,EAAA,CACjBpI,cAAAA,IAEFmD,GAAwBiF,GACxBxG,GAAWiC,SAAU,EACrBN,IAAwB,GACxBR,IAAuB,QA+H3B,CAEA5C,EAAsBmI,UAAY,CAChChI,mBAAoBiI,EAAUC,MAAM,IACpC1I,cAAeyI,EAAUC,MAAM,CAC7BrG,cAAeoG,EAAUE,OACzB1G,UAAWwG,EAAUE,SAEvB/H,YAAa6H,EAAUC,MAAM,IAC7B5H,OAAQ2H,EAAUG,KAAKC,WACvB9H,QAAS0H,EAAUK,KAAKD,WACxB7H,OAAQyH,EAAUK,KAAKD,WACvB3H,sBAAuBuH,EAAUK,KACjC1H,kBAAmBqH,EAAUM,QAG/B,IAAMrI,EAAiD,CAAA,EACjDG,EAA+C,CAAE"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/BICOffsetPickerDialog/index.js"],"sourcesContent":["import { useState, useEffect, useCallback, useMemo, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { get, uniq, includes, isEqual } from 'lodash';\nimport classnames from 'classnames';\nimport {\n Button,\n IconButton,\n Typography,\n Dialog,\n DialogContent,\n DialogTitle,\n DialogActions,\n Tooltip,\n makeStyles,\n} from '@material-ui/core';\nimport { Close as CloseIcon } from '@material-ui/icons';\n\nimport WellsMap from './components/Map';\nimport WellSection from './components/WellSection';\nimport { useWells, useFetchBicWellsData } from './effects';\nimport { DEFAULT_WELL_SECTIONS } from './constants';\n\nimport { LoadingIndicator, OffsetWellPickerV2 } from '~/components';\n\nconst PAGE_NAME = 'BICOffsetPickerDialog';\n\nconst useStyles = makeStyles(theme => ({\n paper: {\n width: '552px',\n },\n dialogTitles: {\n display: 'flex',\n flexDirection: 'column',\n },\n titleContent: {\n display: 'flex',\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n title: {\n fontSize: '20px',\n color: theme.palette.primary.text1,\n },\n description: {\n fontSize: '16px',\n fontWeight: 'normal',\n color: theme.palette.primary.text6,\n marginTop: 16,\n },\n closeIconButton: {\n fontSize: '20px',\n padding: 4,\n '&:hover $closeIcon': {\n color: '#fff',\n },\n },\n closeIcon: {\n color: theme.palette.primary.text6,\n },\n topShadow: {\n width: '100%',\n height: '16px',\n backgroundImage: `linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ${theme.palette.background.b9})`,\n position: 'absolute',\n top: '155px',\n zIndex: 2,\n },\n bottomShadow: {\n width: '100%',\n height: '16px',\n backgroundImage: `linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ${theme.palette.background.b9})`,\n position: 'absolute',\n bottom: '52px',\n zIndex: 2,\n },\n dialogActions: {\n display: 'flex',\n justifyContent: 'flex-end',\n paddingTop: 8,\n paddingBottom: 8,\n },\n dialogActionsSmallScreen: {\n paddingRight: '100px', // Intercom\n },\n dialogContent: {\n display: 'flex',\n flexDirection: 'column',\n overflowX: 'hidden',\n },\n buttonContainer: {\n display: 'flex',\n gap: '16px',\n },\n}));\n\nfunction getWellName(wells, wellId) {\n const well = wells.find(item => item.id === wellId);\n return get(well, 'name') || '-';\n}\n\nfunction getRigName(wells, wellId) {\n const well = wells.find(item => item.id === wellId);\n return get(well, 'rigName') || '-';\n}\n\nfunction getSectionName(area, filterMode) {\n if (area.value === 'well') return 'Best Wells';\n else if (area.value === 'area') return 'Area Offsets';\n else if (filterMode === 'section') return `Best ${area.value} Wells`;\n return `Best ${area.value} \" Wells`;\n}\n\nfunction sortWells(sections) {\n const sortedWells = sections.map(section => ({\n ...section,\n wells: section.wells.sort((a, b) => {\n if (a.name < b.name) return -1;\n if (a.name > b.name) return 1;\n return 0;\n }),\n }));\n return sortedWells;\n}\n\nfunction getResultWellIds(offsetSetting) {\n const bicWellIds = get(offsetSetting, 'bicWellIds') || [];\n const manualWellIds = get(offsetSetting, 'manualWellIds') || [];\n const selectedWellIds = get(offsetSetting, 'selectedWellIds') || [];\n const resultWellIds = uniq(bicWellIds.concat(manualWellIds).concat(selectedWellIds));\n return resultWellIds;\n}\n\nfunction BICOffsetPickerDialog({\n defaultSubjectWell = null,\n offsetSetting = DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING,\n currentUser = DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER,\n isOpen,\n onClose,\n onSave,\n addWellsUsabilityInfo = null,\n unusableWellAlarm = 'Unable to add',\n}) {\n const [scrolling, setScrolling] = useState(false);\n const classes = useStyles({ scrolling });\n const dialogContentRef = useRef(null);\n const loadingRef = useRef(true);\n const [companyId, setCompanyId] = useState(\n get(defaultSubjectWell, 'companyId') ||\n get(offsetSetting, 'companyId') ||\n +get(currentUser, 'company_id')\n );\n const [subjectWellId, setSubjectWellId] = useState(\n get(defaultSubjectWell, 'asset_id') || get(offsetSetting, 'subjectWellId') || null\n );\n const wells = useWells(companyId, isOpen);\n const bicData = useFetchBicWellsData(subjectWellId, isOpen);\n const [wellSections, setWellSections] = useState([]);\n const [isOpenOffsetDialog, setIsOpenOffsetsDialog] = useState(false);\n const [interimOffsetSetting, setInterimOffsetSetting] = useState(offsetSetting);\n const [expandedSearchResult, setExpandedSearchResult] = useState(false);\n const offsetWells = useMemo(() => {\n if (wells) {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n const data = wells.filter(well => resultWellIds.find(id => id === get(well, 'id')));\n return data;\n }\n return [];\n }, [wells, interimOffsetSetting]);\n\n useEffect(() => {\n if (isOpen) {\n setCompanyId(\n get(defaultSubjectWell, 'companyId') ||\n get(offsetSetting, 'companyId') ||\n +get(currentUser, 'company_id')\n );\n setSubjectWellId(\n get(defaultSubjectWell, 'asset_id') || get(offsetSetting, 'subjectWellId') || null\n );\n setInterimOffsetSetting(offsetSetting);\n setExpandedSearchResult(false);\n loadingRef.current = true;\n }\n }, [offsetSetting, isOpen]);\n\n // NOTE: update well section wells data\n useEffect(() => {\n if (!isOpen || !wells || !loadingRef.current) return;\n\n const selectedWellIds = get(interimOffsetSetting, 'selectedWellIds') || [];\n const manualWellIds = get(interimOffsetSetting, 'manualWellIds') || [];\n const bicWellIds = get(interimOffsetSetting, 'bicWellIds') || [];\n\n // Make Search Results Tab\n const allManualWellIds = selectedWellIds.concat(manualWellIds);\n const searchResults = allManualWellIds\n .filter(id => wells.find(well => well.id === id))\n .map(id => {\n return {\n id,\n checked: true,\n name: getWellName(wells, id),\n rigName: getRigName(wells, id),\n kind: selectedWellIds.includes(id) ? 'advanced' : 'manual',\n };\n });\n\n // Make Best Wells Tabs\n let mergedSections;\n if (!bicData || !bicData.filters || !bicData.result) {\n mergedSections = [\n { name: 'Search Results', wells: searchResults, expanded: expandedSearchResult },\n ...DEFAULT_WELL_SECTIONS,\n ];\n } else {\n const bestWellIds = [];\n const filteredTabs = [\n { name: 'Wells within Area', value: 'area' },\n ...get(bicData, ['filters', 'filterTabs']),\n ];\n const filterMode = bicData.filters?.filterMode || 'holeSize';\n const tabs = uniq(filteredTabs);\n mergedSections = [\n { name: 'Search Results', wells: searchResults, expanded: expandedSearchResult },\n ...tabs.map(area => {\n return {\n name: getSectionName(area, filterMode),\n wells:\n bicData.result[area.value]\n ?.filter(id => wells.find(well => well.id === id))\n .map(item => {\n const id = typeof item === 'object' ? item.id : item;\n bestWellIds.push(id);\n return {\n id,\n checked: false,\n name: getWellName(wells, id),\n rigName: getRigName(wells, id),\n kind: 'best',\n };\n }) || [],\n expanded: false,\n };\n }),\n ];\n }\n\n // Check if any best well is checked\n const sectionsData = mergedSections.map(section => {\n const data = section.wells.map(item => {\n if (includes(bicWellIds, item.id) || includes(allManualWellIds, item.id)) {\n return {\n ...item,\n checked: true,\n };\n } else {\n return { ...item };\n }\n });\n return {\n ...section,\n wells: data,\n };\n });\n // Sort by name\n setWellSections(sortWells(sectionsData));\n }, [isOpen, wells, bicData, interimOffsetSetting]);\n\n // NOTE: BIC Wells\n const handleChangeWellSections = sections => {\n const sortedSections = sortWells(sections);\n setWellSections(sortedSections);\n setExpandedSearchResult(sortedSections[0].expanded);\n\n const newSelectedWellIds = [];\n const newManualWellIds = [];\n const newBicWellIds = [];\n sortedSections.forEach(section => {\n section.wells.forEach(well => {\n if (well.checked && well.kind === 'advanced') newSelectedWellIds.push(well.id);\n if (well.checked && well.kind === 'manual') newManualWellIds.push(well.id);\n if (well.checked && well.kind === 'best') newBicWellIds.push(well.id);\n });\n });\n const newResultWellIds = newSelectedWellIds.concat(newManualWellIds).concat(newBicWellIds);\n const newOffsetSetting = {\n ...interimOffsetSetting,\n selectedWellIds: uniq(newSelectedWellIds),\n manualWellIds: uniq(newManualWellIds),\n bicWellIds: uniq(newBicWellIds),\n resultWellIds: uniq(newResultWellIds),\n };\n setInterimOffsetSetting(newOffsetSetting);\n loadingRef.current = false;\n };\n\n const handleCloseAdvancedWells = () => {\n setIsOpenOffsetsDialog(false);\n };\n\n const handleAddAdvancedWells = newOffsetSetting => {\n let offsetSettings = newOffsetSetting;\n if (!defaultSubjectWell) {\n if (\n !isEqual(subjectWellId, get(offsetSettings, 'subjectWellId')) ||\n !isEqual(companyId, get(offsetSettings, 'companyId'))\n ) {\n offsetSettings = {\n ...offsetSettings,\n bicWellIds: [],\n manualWellIds: [],\n resultWellIds: [],\n };\n }\n setSubjectWellId(get(offsetSettings, 'subjectWellId'));\n setCompanyId(get(offsetSettings, 'companyId'));\n }\n\n let manualWellIds = get(offsetSettings, 'manualWellIds') || [];\n const selectedWellIds = get(offsetSettings, 'selectedWellIds') || [];\n manualWellIds = manualWellIds.filter(id => !selectedWellIds.includes(id));\n offsetSettings = {\n ...offsetSettings,\n manualWellIds,\n };\n setInterimOffsetSetting(offsetSettings);\n loadingRef.current = true;\n setExpandedSearchResult(true);\n setIsOpenOffsetsDialog(false);\n };\n\n const handleOpenAdvancedDialog = () => {\n setIsOpenOffsetsDialog(true);\n };\n\n const handleAdd = () => {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n\n const allOffsetWells = wells.filter(well => includes(resultWellIds, well.id));\n const newOffsetSetting = {\n ...interimOffsetSetting,\n companyId: +companyId,\n resultWellIds,\n };\n\n setIsOpenOffsetsDialog(false);\n onSave(newOffsetSetting, allOffsetWells);\n };\n\n const getResultCount = useCallback(() => {\n const resultWellIds = getResultWellIds(interimOffsetSetting);\n return resultWellIds.length;\n }, [interimOffsetSetting]);\n\n const getBestCount = useCallback(() => {\n const bicWellIds = get(interimOffsetSetting, 'bicWellIds') || [];\n return bicWellIds.length;\n }, []);\n const scrollTimeoutRef = useRef(null);\n\n const handleScroll = () => {\n setScrolling(true);\n clearTimeout(scrollTimeoutRef.current);\n scrollTimeoutRef.current = setTimeout(() => {\n setScrolling(false);\n }, 1000);\n };\n\n const isLoading = !wells;\n\n return (\n <>\n <Dialog\n onBackdropClick={onClose}\n onEscapeKeyDown={onClose}\n open={isOpen}\n classes={{ paper: classes.paper }}\n >\n <DialogTitle>\n <div className={classes.dialogTitles}>\n <div className={classes.titleContent}>\n <Typography className={classes.title}>Select Offset Wells</Typography>\n <Tooltip title=\"Close\">\n <IconButton\n data-not-migrated-muiiconbutton\n aria-label=\"close\"\n className={classes.closeIconButton}\n onClick={onClose}\n >\n <CloseIcon className={classes.closeIcon} />\n </IconButton>\n </Tooltip>\n </div>\n <div className={classes.description}>\n Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well\n Selection Application.\n </div>\n </div>\n </DialogTitle>\n {scrolling && <div className={classes.topShadow} />}\n <DialogContent\n className={classes.dialogContent}\n ref={dialogContentRef}\n onScroll={handleScroll}\n >\n {!isLoading ? (\n <>\n <WellsMap wells={offsetWells} offsetWells={offsetWells} />\n <WellSection\n company={companyId}\n wellSections={wellSections}\n getWellName={getWellName}\n onChangeWellSections={handleChangeWellSections}\n onExploreMode={handleOpenAdvancedDialog}\n />\n </>\n ) : (\n <LoadingIndicator fullscreen={false} />\n )}\n </DialogContent>\n <div className={classes.bottomShadow} />\n <DialogActions className={classnames(classes.dialogActions)}>\n <div className={classes.buttonContainer}>\n <Button data-testid={`${PAGE_NAME}_cancel`} onClick={onClose} color=\"primary\">\n Cancel\n </Button>\n <Button\n data-testid={`${PAGE_NAME}_add`}\n variant=\"contained\"\n color=\"primary\"\n onClick={handleAdd}\n >\n Add ({getResultCount()})\n </Button>\n </div>\n </DialogActions>\n </Dialog>\n\n {isOpenOffsetDialog && (\n <OffsetWellPickerV2\n defaultSubjectWellId={get(defaultSubjectWell, 'asset_id')}\n companyId={+companyId}\n offsetSetting={interimOffsetSetting}\n currentUser={currentUser}\n addWellsUsabilityInfo={addWellsUsabilityInfo}\n unusableWellAlarm={unusableWellAlarm}\n isAdvancedSearch\n bestCount={getBestCount()}\n isOpen={isOpenOffsetDialog}\n onClose={handleCloseAdvancedWells}\n onSave={handleAddAdvancedWells}\n />\n )}\n </>\n );\n}\n\nBICOffsetPickerDialog.propTypes = {\n defaultSubjectWell: PropTypes.shape({}),\n offsetSetting: PropTypes.shape({\n subjectWellId: PropTypes.number,\n companyId: PropTypes.number,\n }),\n currentUser: PropTypes.shape({}),\n isOpen: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onSave: PropTypes.func.isRequired,\n addWellsUsabilityInfo: PropTypes.func, // update offset wells usability info in specific apps (\"is_usable\" field)\n unusableWellAlarm: PropTypes.string,\n};\n\nconst DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING = {};\nconst DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER = {};\n\nexport default BICOffsetPickerDialog;\n"],"names":["useStyles","makeStyles","theme","paper","width","dialogTitles","display","flexDirection","titleContent","justifyContent","alignItems","title","fontSize","color","palette","primary","text1","description","fontWeight","text6","marginTop","closeIconButton","padding","closeIcon","topShadow","height","backgroundImage","concat","background","b9","position","top","zIndex","bottomShadow","bottom","dialogActions","paddingTop","paddingBottom","dialogActionsSmallScreen","paddingRight","dialogContent","overflowX","buttonContainer","gap","getWellName","wells","wellId","well","find","item","id","get","getRigName","getSectionName","area","filterMode","value","sortWells","sections","map","section","_objectSpread","sort","a","b","name","getResultWellIds","offsetSetting","bicWellIds","manualWellIds","selectedWellIds","uniq","BICOffsetPickerDialog","_ref","_ref$defaultSubjectWe","defaultSubjectWell","_ref$offsetSetting","DEFAULT_BICOFFSET_PICKER_DIALOG_OFFSET_SETTING","_ref$currentUser","currentUser","DEFAULT_BICOFFSET_PICKER_DIALOG_CURRENT_USER","isOpen","onClose","onSave","_ref$addWellsUsabilit","addWellsUsabilityInfo","_ref$unusableWellAlar","unusableWellAlarm","useState","_useState2","_slicedToArray","_useState","scrolling","setScrolling","classes","dialogContentRef","useRef","loadingRef","_useState4","_useState3","companyId","setCompanyId","_useState5","_useState6","subjectWellId","setSubjectWellId","useWells","bicData","useFetchBicWellsData","_useState8","_useState7","wellSections","setWellSections","_useState10","_useState9","isOpenOffsetDialog","setIsOpenOffsetsDialog","_useState12","_useState11","interimOffsetSetting","setInterimOffsetSetting","_useState14","_useState13","expandedSearchResult","setExpandedSearchResult","offsetWells","useMemo","resultWellIds","filter","useEffect","current","mergedSections","allManualWellIds","searchResults","checked","rigName","kind","includes","filters","result","_bicData$filters","bestWellIds","filteredTabs","_toConsumableArray","tabs","expanded","_bicData$result$area$","_typeof","push","DEFAULT_WELL_SECTIONS","sectionsData","data","getResultCount","useCallback","length","getBestCount","scrollTimeoutRef","isLoading","_jsxs","_Fragment","children","Dialog","onBackdropClick","onEscapeKeyDown","open","_jsx","DialogTitle","className","Typography","Tooltip","IconButton","onClick","CloseIcon","DialogContent","ref","onScroll","clearTimeout","setTimeout","LoadingIndicator","fullscreen","WellsMap","WellSection","company","onChangeWellSections","sortedSections","newSelectedWellIds","newManualWellIds","newBicWellIds","forEach","newResultWellIds","newOffsetSetting","onExploreMode","DialogActions","classnames","Button","variant","allOffsetWells","OffsetWellPickerV2","defaultSubjectWellId","isAdvancedSearch","bestCount","offsetSettings","isEqual","propTypes","PropTypes","shape","number","bool","isRequired","func","string"],"mappings":"++4BAwBA,IAEMA,EAAYC,GAAW,SAAAC,GAAK,MAAK,CACrCC,MAAO,CACLC,MAAO,SAETC,a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