@corva/ui 3.84.0-1 → 3.84.0-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/Popover.js.map +1 -1
  3. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  4. package/cjs-bundle/components/AddComment/components/Content.js.map +1 -1
  5. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  6. package/cjs-bundle/components/BICOffsetPickerDialog/index.js.map +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  9. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  10. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  11. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  12. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  13. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  14. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js.map +1 -1
  15. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  16. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  17. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  18. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  19. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  20. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  21. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  22. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  37. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  38. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  39. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  40. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  41. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  42. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  43. package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
  44. package/cjs-bundle/components/FeedItem/components/Content.js.map +1 -1
  45. package/cjs-bundle/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.js +2 -0
  46. package/cjs-bundle/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.js.map +1 -0
  47. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  59. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  60. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  61. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  62. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  63. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  64. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  65. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  66. package/cjs-bundle/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  67. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  68. package/cjs-bundle/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  69. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  70. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  71. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  72. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  73. package/cjs-bundle/componentsV2/LiveDotIndicator/LiveDotIndicator.js +1 -1
  74. package/cjs-bundle/componentsV2/LiveDotIndicator/LiveDotIndicator.js.map +1 -1
  75. package/cjs-bundle/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js +1 -1
  76. package/cjs-bundle/constants/feed.js +1 -1
  77. package/cjs-bundle/constants/feed.js.map +1 -1
  78. package/cjs-bundle/utils/feed.js +1 -1
  79. package/cjs-bundle/utils/feed.js.map +1 -1
  80. package/components/AddComment/Popover.js +1 -1
  81. package/components/AddComment/Popover.js.map +1 -1
  82. package/components/AddComment/components/Content.js +1 -1
  83. package/components/AddComment/components/Content.js.map +1 -1
  84. package/components/BICOffsetPickerDialog/index.js +1 -1
  85. package/components/BICOffsetPickerDialog/index.js.map +1 -1
  86. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  87. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js.map +1 -1
  88. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  89. package/components/Casing/CasingTableV2/components/Component.js.map +1 -1
  90. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  91. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js.map +1 -1
  92. package/components/DocumentViewer/DocumentViewer.js +1 -1
  93. package/components/DocumentViewer/DocumentViewer.js.map +1 -1
  94. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  95. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js.map +1 -1
  96. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  97. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js.map +1 -1
  98. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  99. package/components/Drillstring/BHAComponentsTable/components/Component.js.map +1 -1
  100. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  101. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js.map +1 -1
  102. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  103. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js.map +1 -1
  104. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  105. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js.map +1 -1
  106. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  107. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js.map +1 -1
  108. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  109. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js.map +1 -1
  110. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  111. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js.map +1 -1
  112. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  113. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js.map +1 -1
  114. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  115. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js.map +1 -1
  116. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  117. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js.map +1 -1
  118. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  119. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js.map +1 -1
  120. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  121. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js.map +1 -1
  122. package/components/FeedItem/components/Content.d.ts.map +1 -1
  123. package/components/FeedItem/components/Content.js +1 -1
  124. package/components/FeedItem/components/Content.js.map +1 -1
  125. package/components/FeedItem/feed.fixtures.d.ts +44 -0
  126. package/components/FeedItem/feed.fixtures.d.ts.map +1 -1
  127. package/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.d.ts +32 -0
  128. package/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.d.ts.map +1 -0
  129. package/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.js +2 -0
  130. package/components/FeedItem/feedItemTypes/TreatmentPlotCommentFeedItem.js.map +1 -0
  131. package/components/FeedItem/feedItemTypes/__tests__/TreatmentPlotCommentFeedItem.test.d.ts +2 -0
  132. package/components/FeedItem/feedItemTypes/__tests__/TreatmentPlotCommentFeedItem.test.d.ts.map +1 -0
  133. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  134. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js.map +1 -1
  135. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  136. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js.map +1 -1
  137. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  138. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js.map +1 -1
  139. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  140. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js.map +1 -1
  141. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  142. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js.map +1 -1
  143. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  144. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js.map +1 -1
  145. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  146. package/components/OffsetWellPickerV3/components/TabSelection/index.js.map +1 -1
  147. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  148. package/components/OffsetWellPickerV3/components/WellHubView/index.js.map +1 -1
  149. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  150. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js.map +1 -1
  151. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js +1 -1
  152. package/components/OffsetWellPickerV5/components/Filter/components/CustomDateFields/CustomDateFields.js.map +1 -1
  153. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js +1 -1
  154. package/components/OffsetWellPickerV5/components/OffsetWellPickerContent/OffsetWellPickerContent.js.map +1 -1
  155. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  156. package/components/PadOffsetsPicker/StagesSelector.js.map +1 -1
  157. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  158. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js.map +1 -1
  159. package/componentsV2/LiveDotIndicator/LiveDotIndicator.d.ts.map +1 -1
  160. package/componentsV2/LiveDotIndicator/LiveDotIndicator.js +1 -1
  161. package/componentsV2/LiveDotIndicator/LiveDotIndicator.js.map +1 -1
  162. package/componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js +1 -1
  163. package/constants/feed.d.ts +1 -0
  164. package/constants/feed.d.ts.map +1 -1
  165. package/constants/feed.js +1 -1
  166. package/constants/feed.js.map +1 -1
  167. package/mcp-server/server.mjs +1 -1
  168. package/package.json +1 -1
  169. package/tsconfig.tsbuildinfo +1 -1
  170. package/utils/feed.d.ts.map +1 -1
  171. package/utils/feed.js +1 -1
  172. package/utils/feed.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"qy5BA2BA,IAOyBA,EAPnBC,EAAYC,EAAW,CAC3BC,YAAa,CACXC,MAAO,MACPC,SAAU,OAIRC,GAAmBN,EAAAO,EAAAC,EAAAC,MAAA,SAAAC,EAAOC,EAAcC,GAAQ,IAAAC,EAAAC,EAAA,OAAAN,EAAAO,MAAA,SAAAC,GAAA,OAAA,OAAAA,EAAAC,KAAAD,EAAAE,MAAA,KAAA,EAAA,OAAAF,EAAAC,KAAA,EAAAD,EAAAE,KAAA,EAE3BC,EAAc,QAAS,kBAAmBR,EAAc,CAC7ES,MAAO,EACPC,KAAM,mBACN,KAAA,EAHIR,EAAQG,EAAAM,KAIRR,EAAkBS,EAAQV,GAAY,KAAOW,EAAIC,EAAKZ,GAAW,eAAgB,MACvFD,EAAS,CAAEc,KAAM,UAAWZ,gBAAAA,IAAmBE,EAAAE,KAAA,GAAA,MAAA,KAAA,EAAAF,EAAAC,KAAA,EAAAD,EAAAW,GAAAX,EAAA,MAAA,GAE/CJ,EAAS,CAAEc,KAAM,UAAWE,MAAOZ,EAAMa,GAAAA,UAAW,KAAA,GAAA,IAAA,MAAA,OAAAb,EAAAc,OAAA,GAAApB,EAAA,KAAA,CAAA,CAAA,EAAA,IAEvD,KAAA,SAXqBqB,EAAAC,GAAA,OAAAhC,EAAAiC,MAAAC,KAAAC,UAAA,GAahBC,EAAqB,SAACC,EAAOC,GACjC,OAAQA,EAAOZ,MACb,IAAK,eACH,OAAAa,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,YACnC,IAAK,UACH,OAAAD,EAAAA,EAAA,CAAA,EAAYF,GAAK,CAAA,EAAA,CAAEG,aAAc,U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IAACC,MAAM,WAC3DtD,EAACmD,EAAgB,CAAC7D,MAAM,QAAQ8D,QAASpD,EAACqD,EAAS,IAACC,MAAM,gBAG9DzD,EAACuB,EAAW,CAAC2B,UAAU,WAAUhD,SAAA,CAC/BC,EAACgD,EAAS,CAACD,UAAU,SAASxB,UAAQ,EAAAxB,SAAA,eAGtCF,EAACoD,EAAU,CACTrB,KAAK,aACLtC,MAAOiE,OAAOhH,EAAIkB,EAAYE,WAAY,CAACG,EAAO,aAAc,MAChEmE,SAAU1C,EAAsBzB,GAChCoF,KAAG,EAAAnD,SAAA,CAEHC,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,SAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,kBA7BpDxF,EAgCT,SAIf+B,EAAC2D,EAAa,CAAAzD,SAAA,CACZC,EAACyD,EAAM,CAACrD,QAASZ,EAAYO,SAAA,WAC7BC,EAACyD,EAAM,CAACX,QAAQ,YAAYY,MAAM,UAAUtD,QAjGnC,WACjB,IAAMuD,SACDlF,GAAM,GAAA,CACTZ,OAAQJ,EAAYE,WACpBD,eAAgBD,EAAYC,iBAG9B8B,IACAjB,EAAOoF,IAyFiE5D,SAAA,iBAQ5E,EAEA1B,EAAeuF,UAAY,CACzBrF,OAAQsF,EAAKC,WACbtF,SAAUqF,EAAKC,WACfrF,OAAQsF,EAAM,CACZtE,eAAgBuE,EAChB7D,iBAAkB8D,EAClBC,mBAAoBC,EAAM,CAAC,SAAU,OAAQ,WAAY,SAAU,cAClEL"}
1
+ {"version":3,"file":"StagesSelector.js","sources":["../../../src/components/PadOffsetsPicker/StagesSelector.js"],"sourcesContent":["import { useEffect, useReducer } from 'react';\nimport { func, number, oneOf, string, shape } from 'prop-types';\nimport { isNull, get, noop, range, isEmpty, last } from 'lodash';\nimport {\n Button,\n Checkbox,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n FormControlLabel,\n FormLabel,\n Grid,\n InputLabel,\n ListItemText,\n MenuItem,\n Radio,\n RadioGroup,\n Select,\n Typography,\n makeStyles,\n} from '@material-ui/core';\n\nimport { getAppStorage } from '~/clients/jsonApi';\nimport { OffsetWellChip } from '~/components';\n\nconst useStyles = makeStyles({\n dialogPaper: {\n width: '75%',\n maxWidth: 420,\n },\n});\n\nconst fetchStageAction = async (offsetWellId, dispatch) => {\n try {\n const response = await getAppStorage('corva', 'completion.wits', offsetWellId, {\n limit: 1,\n sort: '{timestamp:-1}',\n });\n const lastStageNumber = isEmpty(response) ? null : get(last(response), 'stage_number', null);\n dispatch({ type: 'SUCCESS', lastStageNumber });\n } catch (error) {\n dispatch({ type: 'FAILURE', error: error.message });\n }\n};\n\nconst stagesStateReducer = (state, action) => {\n switch (action.type) {\n case 'FETCH_STAGES':\n return { ...state, requestState: 'pending' };\n case 'SUCCESS':\n return { ...state, requestState: 'success', lastStageNumber: action.lastStageNumber };\n case 'FAILURE':\n return { ...state, requestState: 'failure', error: action.error };\n default:\n return state;\n }\n};\n\nconst dialogStateReducer = (state, action) => {\n switch (action.type) {\n case 'OPEN_DIALOG':\n return { ...state, dialogState: 'open' };\n case 'CLOSE_DIALOG':\n return { ...state, dialogState: 'closed' };\n case 'SET_SELECTED_STAGES':\n return {\n ...state,\n selectedStages: action.selectedStages,\n stagesData: action.selectedStages.reduce(\n (stages, stage) => ({\n ...stages,\n [stage]: {\n lineStyle: 'dotted',\n lineWidth: 2,\n },\n }),\n {}\n ),\n };\n case 'SET_SELECTED_LINE_STYLE':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineStyle: action.selectedLineStyle,\n },\n },\n };\n case 'SET_SELECTED_LINE_WIDTH':\n return {\n ...state,\n stagesData: {\n ...state.stagesData,\n [action.stage]: {\n ...state.stagesData[action.stage],\n lineWidth: Number(action.selectedLineWidth),\n },\n },\n };\n default:\n return state;\n }\n};\n\nconst StagesSelector = ({ onSave, onDelete, offset }) => {\n const classes = useStyles();\n\n const [requestState, dispatchRequest] = useReducer(stagesStateReducer, {\n requestState: 'idle',\n lastStageNumber: null,\n error: null,\n });\n\n const [dialogState, dispatchDialog] = useReducer(dialogStateReducer, {\n dialogState: 'closed',\n selectedStages: offset.selectedStages || [],\n stagesData: offset.stages || {},\n });\n\n const handleStagesSelect = event => {\n dispatchDialog({ type: 'SET_SELECTED_STAGES', selectedStages: event.target.value });\n };\n\n const handleLineStyleChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_STYLE',\n stage,\n selectedLineStyle: event.target.value,\n });\n };\n\n const handleLineWidthChange = stage => event => {\n dispatchDialog({\n type: 'SET_SELECTED_LINE_WIDTH',\n stage,\n selectedLineWidth: event.target.value,\n });\n };\n\n const openDialog = () => {\n dispatchDialog({ type: 'OPEN_DIALOG' });\n };\n\n const closeDialog = () => {\n dispatchDialog({ type: 'CLOSE_DIALOG' });\n };\n\n const offsetWellId = offset.selectedWellId;\n\n const handleSave = () => {\n const updatedOffset = {\n ...offset,\n stages: dialogState.stagesData,\n selectedStages: dialogState.selectedStages,\n };\n\n closeDialog();\n onSave(updatedOffset);\n };\n\n useEffect(() => {\n dispatchRequest({ type: 'FETCH_STAGES' });\n fetchStageAction(offsetWellId, dispatchRequest);\n }, [offsetWellId]);\n\n const isStageDataEmpty = isNull(requestState.lastStageNumber);\n\n return (\n <>\n <OffsetWellChip\n title={offset.selectedWellName}\n onClick={isStageDataEmpty ? noop : openDialog}\n onRemoveOffsetWell={onDelete}\n wellId={offsetWellId}\n rigName=\"\"\n />\n\n {requestState.requestState === 'success' && (\n <Dialog\n open={dialogState.dialogState === 'open'}\n onBackdropClick={closeDialog}\n classes={{ paper: classes.dialogPaper }}\n >\n <DialogTitle>Offset Well Stages</DialogTitle>\n <DialogContent>\n <Grid container direction=\"column\" spacing={2}>\n <Grid item>\n <FormControl margin=\"normal\" fullWidth required>\n <InputLabel htmlFor=\"stages-multi-select\">Stages</InputLabel>\n <Select\n inputProps={{ name: 'stages', id: 'stages-multi-select' }}\n value={dialogState.selectedStages}\n renderValue={selected => `${selected.length} stages selected`}\n onChange={handleStagesSelect}\n multiple\n >\n {range(1, requestState.lastStageNumber + 1).map(stage => (\n <MenuItem key={stage} value={stage}>\n <Checkbox checked={dialogState.selectedStages.includes(stage)} />\n <ListItemText primary={stage} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Grid>\n {dialogState.selectedStages\n .sort((a, b) => a - b)\n .map(stage => (\n <Grid item key={stage}>\n <Typography variant=\"subtitle1\">Stage {stage}</Typography>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Style\n </FormLabel>\n <RadioGroup\n name=\"line-style\"\n value={get(dialogState.stagesData, [stage, 'lineStyle'], 'dotted')}\n onChange={handleLineStyleChange(stage)}\n row\n >\n <FormControlLabel value=\"dotted\" control={<Radio />} label=\"Dotted\" />\n <FormControlLabel value=\"dashed\" control={<Radio />} label=\"Dashed\" />\n <FormControlLabel value=\"solid\" control={<Radio />} label=\"Solid\" />\n </RadioGroup>\n </FormControl>\n <FormControl component=\"fieldset\">\n <FormLabel component=\"legend\" required>\n Line Width\n </FormLabel>\n <RadioGroup\n name=\"line-width\"\n value={String(get(dialogState.stagesData, [stage, 'lineWidth'], '2'))}\n onChange={handleLineWidthChange(stage)}\n row\n >\n <FormControlLabel value={String(1)} control={<Radio />} label=\"Thin\" />\n <FormControlLabel value={String(2)} control={<Radio />} label=\"Normal\" />\n <FormControlLabel value={String(4)} control={<Radio />} label=\"Thick\" />\n </RadioGroup>\n </FormControl>\n </Grid>\n ))}\n </Grid>\n </DialogContent>\n <DialogActions>\n <Button onClick={closeDialog}>Cancel</Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave}>\n Save\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </>\n );\n};\n\nStagesSelector.propTypes = {\n onSave: func.isRequired,\n onDelete: func.isRequired,\n offset: shape({\n selectedWellId: number,\n selectedWellName: string,\n selectedWellStatus: oneOf(['active', 'idle', 'complete', 'paused', 'unknown']),\n }).isRequired,\n};\n\nexport default StagesSelector;\n"],"names":["_ref","useStyles","makeStyles","dialogPaper","width","maxWidth","fetchStageAction","_asyncToGenerator","_regeneratorRuntime","mark","_callee","offsetWellId","dispatch","response","lastStageNumber","wrap","_context","prev","next","getAppStorage","limit","sort","sent","isEmpty","get","last","type","t0","error","message","stop","_x","_x2","apply","this","arguments","stagesStateReducer","state","action","_objectSpread","requestState","dialogStateReducer","dialogState","selectedStages","stagesData","reduce","stages","stage","lineStyle","lineWidth","_defineProperty","selectedLineStyle","Number","selectedLineWidth","StagesSelector","_ref2","onSave","onDelete","offset","classes","useReducer","_useReducer2","_slicedToArray","_useReducer","dispatchRequest","_useReducer4","_useReducer3","dispatchDialog","handleLineStyleChange","event","target","value","handleLineWidthChange","closeDialog","selectedWellId","useEffect","isStageDataEmpty","isNull","_jsxs","_Fragment","children","_jsx","OffsetWellChip","title","selectedWellName","onClick","noop","onRemoveOffsetWell","wellId","rigName","Dialog","open","onBackdropClick","paper","DialogTitle","DialogContent","Grid","container","direction","spacing","item","FormControl","margin","fullWidth","required","InputLabel","htmlFor","Select","inputProps","name","id","renderValue","selected","length","onChange","multiple","range","map","MenuItem","Checkbox","checked","includes","ListItemText","primary","a","b","Typography","variant","component","FormLabel","RadioGroup","row","FormControlLabel","control","Radio","label","String","DialogActions","Button","color","updatedOffset","propTypes","func","isRequired","shape","number","string","selectedWellStatus","oneOf"],"mappings":"u25BA2BA,IAOyBA,EAPnBC,EAAYC,EAAW,CAC3BC,YAAa,CACXC,MAAO,MACPC,SAAU,OAIRC,GAAmBN,EAAAO,EAAAC,EAAAC,MAAA,SAAAC,EAAOC,EAAcC,GAAQ,IAAAC,EAAAC,E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,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,SAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,WAC9DtD,EAACmD,EAAgB,CAAC7D,MAAOiE,OAAO,GAAIH,QAASpD,EAACqD,EAAS,IAACC,MAAM,kBA7BpDxF,EAgCT,SAIf+B,EAAC2D,EAAa,CAAAzD,SAAA,CACZC,EAACyD,EAAM,CAACrD,QAASZ,EAAYO,SAAA,WAC7BC,EAACyD,EAAM,CAACX,QAAQ,YAAYY,MAAM,UAAUtD,QAjGnC,WACjB,IAAMuD,SACDlF,GAAM,GAAA,CACTZ,OAAQJ,EAAYE,WACpBD,eAAgBD,EAAYC,iBAG9B8B,IACAjB,EAAOoF,IAyFiE5D,SAAA,iBAQ5E,EAEA1B,EAAeuF,UAAY,CACzBrF,OAAQsF,EAAKC,WACbtF,SAAUqF,EAAKC,WACfrF,OAAQsF,EAAM,CACZtE,eAAgBuE,EAChB7D,iBAAkB8D,EAClBC,mBAAoBC,EAAM,CAAC,SAAU,OAAQ,WAAY,SAAU,cAClEL"}
@@ -1,2 +1,2 @@
1
- import{isEmpty as e}from"lodash";import{makeStyles as o,Button as t,FormControl as s,InputLabel as i,Select as n,MenuItem as r,Checkbox as p,ListItemText as m}from"@material-ui/core";import{useMemo as c}from"react";import a from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";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{jsxs as l,Fragment as d,jsx as j}from"react/jsx-runtime";import"classnames";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";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/mobileDetect.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"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/shareRecentRequest.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons/ArrowForward";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"@icon-park/react/es/all";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"../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"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";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"@material-ui/icons/BugReport";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.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/ColorPicker.constants.js";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"@material-ui/icons/Launch";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"../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"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@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"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"@material-ui/icons/Add";import"@material-ui/icons/Remove";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"../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/HtmlFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/MarkdownFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../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/CommentMentionField.scss.js";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";import{useOffsetPickerActions as C}from"./useOffsetPickerActions.js";var I=o({cancelButton:{marginLeft:"auto",marginRight:16}}),A=function(o){var A=o.assets,V=o.opened,S=o.currentOffsetSetting,h=o.appPad,F=o.companyId,g=o.onSave,T=o.onClose,v=I(),P=C({opened:V,appPad:h,assets:A,currentOffsetSetting:S}),D=P.selectedPads,f=P.selectedWellAssetIds,x=P.setSelectedPads,b=P.setSelectedWellAssetIds,y=c((function(){return D.reduce((function(e,o){return e.concat(o.wells)}),[])}),[D]),B=c((function(){return{company:[F],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[F]);return l(a,{open:V,onClose:T,title:"Offset Wells",size:"small",actions:l(d,{children:[j(t,{onClick:T,className:v.cancelButton,"data-testid":"closeButton",children:"Cancel"}),j(t,{variant:"contained",color:"primary",onClick:function(){var e=y.filter((function(e){return f.includes(e.assetId)})),o=new Map(S.map((function(e){return[e.selectedWellId,e]}))),t=e.map((function(e){var t=o.get(+e.assetId);return t||function(e){return{selectedWellId:Number(e.assetId),selectedWellIdNew:e.id,selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}(e)}));g(t),T()},"data-testid":"saveButton",children:"Save"})]}),children:[j(u,{selectedAssets:D,onChange:function(e){x(e)},label:"Pad *",type:"pad",customRequestQueryParams:B}),l(s,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!y.length,fullWidth:!0,required:!0,children:[j(i,{htmlFor:"wells",shrink:!e(f),children:"Well"}),j(n,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:f,onChange:function(e){b(e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:y.map((function(e){return l(r,{value:e.assetId,"data-testid":"".concat(e.name,"_offsetWell_menuItem"),children:[j(p,{size:"small",checked:f.includes(e.assetId)}),j(m,{primary:e.name})]},e.id)}))})]})]})};export{A as default};
1
+ import{isEmpty as e}from"lodash";import{makeStyles as o,Button as t,FormControl as s,InputLabel as i,Select as n,MenuItem as r,Checkbox as p,ListItemText as m}from"@material-ui/core";import{useMemo as c}from"react";import a from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../AppIcon/AppIcon.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/regenerator";import"../DevCenter/AppsDataProvider/effects/utils.js";import"@babel/runtime/helpers/toConsumableArray";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{jsxs as l,Fragment as d,jsx as j}from"react/jsx-runtime";import"classnames";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";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/mobileDetect.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"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/shareRecentRequest.js";import"../../utils/charts/Styles.scss.js";import"../../utils/getSingleAsset.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"@material-ui/icons/ArrowForward";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"@icon-park/react/es/all";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"../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"../DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider.js";import"uuid";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"@material-ui/icons/BugReport";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.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/ColorPicker.constants.js";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"@material-ui/icons/Launch";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"../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"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../Select/SelectFilterBy.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../GradientPicker/GradientPicker.js";import"@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"../BICOffsetPickerDialog/index.js";import"../OffsetWellButton/OffsetWellButton.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../OffsetWellChips/Chip.js";import"../OffsetWellChips/ChipsContainer.js";import"../OffsetWellPickerV5/components/OffsetWellPickerV5WithStore/OffsetWellPickerV5WithStore.js";import"@material-ui/icons/Add";import"@material-ui/icons/Remove";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"../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/HtmlFileIcon.js";import"../../componentsV2/FileIcon/icons/ImageFileIcon.js";import"../../componentsV2/FileIcon/icons/JsonFileIcon.js";import"../../componentsV2/FileIcon/icons/LasFileIcon.js";import"../../componentsV2/FileIcon/icons/MarkdownFileIcon.js";import"../../componentsV2/FileIcon/icons/OtherFileIcon.js";import"../../componentsV2/FileIcon/icons/PdfFileIcon.js";import"../../componentsV2/FileIcon/icons/PowerPointFileIcon.js";import"../../componentsV2/FileIcon/icons/TxtFileIcon.js";import"../../componentsV2/FileIcon/icons/UnknownFileIcon.js";import"../../componentsV2/FileIcon/icons/VideoFileIcon.js";import"../../componentsV2/FileIcon/icons/XmlFileIcon.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../ColorPickerPalette/ColorPickerPalette.js";import"../Search/Search.js";import"../Search/components/Listbox.js";import"../Search/components/Paper.js";import"../Search/components/RecentSearches.js";import"../Search/components/Groups.js";import"../Search/components/SelectAllListItem.js";import"../StatusBadge/index.js";import"../Attachment/index.js";import"../EmojiIconButton.js";import"../FileUploadIconButton.js";import"../FilePreview/index.js";import"../FailedFileUploading.js";import"../UserMention/index.js";import"../CommentsInfo/index.js";import"../CommentInput/index.js";import"../Comment/index.js";import"../CommentLoader.js";import"../AssetNameLabel/AssetStatusBadge.js";import"../AssetEditorV2/components/PrimaryAssetSelect.js";import"../AssetEditorV2/components/SecondaryAssetSelect.js";import"../AssetEditorV2/components/SelectItem.js";import"../AssetEditorV2/components/MultipleAssetsToggle.js";import"../AssetEditorV2/components/PrimaryAssetSelectV2.js";import"../EChartsWrapper/EChartsWrapper.js";import u from"../AssetsMultipleSelector/AssetsMultipleSelector.js";import"@material-ui/icons/Close";import"@material-ui/icons/GetApp";import"../GoogleDocsViewer/index.js";import"../NewDocumentViewer/effects/useFileContent.js";import"../NewDocumentViewer/styles.js";import"../FilesLoaderV2/styles.js";import"../FilesDropzone/styles.js";import"../FilesProcessor/styles.js";import"../Hint/styles.js";import"@babel/runtime/helpers/taggedTemplateLiteral";import"fparser";import"../Formula/useFormulaStyles.js";import"../Formula/RootXIcon.js";import"../Formula/FormulaTextEditor.js";import"../Formula/CloseSuggestion.js";import"../Formula/SuggestionsMenu.js";import"../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/CommentMentionField.scss.js";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/TreatmentPlotCommentFeedItem.js";import"../FeedItem/feedItemTypes/GenericDataCommentFeedItem.js";import{useOffsetPickerActions as C}from"./useOffsetPickerActions.js";var I=o({cancelButton:{marginLeft:"auto",marginRight:16}}),A=function(o){var A=o.assets,V=o.opened,S=o.currentOffsetSetting,h=o.appPad,F=o.companyId,g=o.onSave,T=o.onClose,v=I(),P=C({opened:V,appPad:h,assets:A,currentOffsetSetting:S}),f=P.selectedPads,D=P.selectedWellAssetIds,x=P.setSelectedPads,b=P.setSelectedWellAssetIds,y=c((function(){return f.reduce((function(e,o){return e.concat(o.wells)}),[])}),[f]),B=c((function(){return{company:[F],fields:["pad.wells"],sort:"last_active_at",per_page:100}}),[F]);return l(a,{open:V,onClose:T,title:"Offset Wells",size:"small",actions:l(d,{children:[j(t,{onClick:T,className:v.cancelButton,"data-testid":"closeButton",children:"Cancel"}),j(t,{variant:"contained",color:"primary",onClick:function(){var e=y.filter((function(e){return D.includes(e.assetId)})),o=new Map(S.map((function(e){return[e.selectedWellId,e]}))),t=e.map((function(e){var t=o.get(+e.assetId);return t||function(e){return{selectedWellId:Number(e.assetId),selectedWellIdNew:e.id,selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}(e)}));g(t),T()},"data-testid":"saveButton",children:"Save"})]}),children:[j(u,{selectedAssets:f,onChange:function(e){x(e)},label:"Pad *",type:"pad",customRequestQueryParams:B}),l(s,{"data-testid":"offsetWellDropdown",margin:"normal",disabled:!y.length,fullWidth:!0,required:!0,children:[j(i,{htmlFor:"wells",shrink:!e(D),children:"Well"}),j(n,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:D,onChange:function(e){b(e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:y.map((function(e){return l(r,{value:e.assetId,"data-testid":"".concat(e.name,"_offsetWell_menuItem"),children:[j(p,{size:"small",checked:D.includes(e.assetId)}),j(m,{primary:e.name})]},e.id)}))})]})]})};export{A as default};
2
2
  //# sourceMappingURL=PadOffsetsPickerV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PadOffsetsPickerV2.js","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"sourcesContent":["import { isEmpty } from 'lodash';\nimport {\n Button,\n FormControl,\n InputLabel,\n Select,\n MenuItem,\n Checkbox,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\nimport React, { useMemo } from 'react';\n\nimport { Modal, AssetsMultipleSelector } from '~/components';\nimport { AssetsMultipleSelectorProps } from '~/components/AssetsMultipleSelector/AssetsMultipleSelector';\nimport { AssetSelectorPad, AssetSelectorPadWell, PadOffsetsPickerV2Props } from './types';\nimport { useOffsetPickerActions } from './useOffsetPickerActions';\nimport { OffsetSetting } from '~/types';\n\nconst useStyles = makeStyles({\n cancelButton: {\n marginLeft: 'auto',\n marginRight: 16,\n },\n});\n\nconst convertWellToOffset = (well: AssetSelectorPadWell): OffsetSetting => ({\n selectedWellId: Number(well.assetId),\n selectedWellIdNew: well.id,\n selectedWellName: well.name,\n selectedWellStatus: well.status,\n selectedStages: [],\n stages: {},\n});\n\nconst PadOffsetsPickerV2 = ({\n assets,\n opened,\n currentOffsetSetting,\n appPad,\n companyId,\n onSave,\n onClose,\n}: PadOffsetsPickerV2Props): JSX.Element => {\n const classes = useStyles();\n const { selectedPads, selectedWellAssetIds, setSelectedPads, setSelectedWellAssetIds } =\n useOffsetPickerActions({ opened, appPad, assets, currentOffsetSetting });\n\n const wellsList: AssetSelectorPadWell[] = useMemo(\n () => selectedPads.reduce<AssetSelectorPadWell[]>((result, pad) => result.concat(pad.wells), []),\n [selectedPads]\n );\n\n const handlePadSelect = (pads: AssetSelectorPad[]) => {\n setSelectedPads(pads);\n };\n\n const handleWellSelect = (event: React.ChangeEvent<{ value: unknown }>) => {\n setSelectedWellAssetIds(event.target.value as number[]);\n };\n\n const handleSave = () => {\n const selectedWells = wellsList.filter(well => selectedWellAssetIds.includes(well.assetId));\n const offsetsMap = new Map(currentOffsetSetting.map(offset => [offset.selectedWellId, offset]));\n\n const newOffsets = selectedWells.map(well => {\n const preSelectedWell = offsetsMap.get(+well.assetId);\n if (preSelectedWell) return preSelectedWell;\n\n return convertWellToOffset(well);\n });\n\n onSave(newOffsets);\n onClose();\n };\n\n const padSelectorQuery = useMemo(\n () => ({\n company: [companyId],\n fields: ['pad.wells'],\n sort: 'last_active_at',\n per_page: 100,\n }),\n [companyId]\n );\n\n return (\n <Modal\n open={opened}\n onClose={onClose}\n title=\"Offset Wells\"\n size=\"small\"\n actions={\n <>\n <Button onClick={onClose} className={classes.cancelButton} data-testid=\"closeButton\">\n Cancel\n </Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave} data-testid=\"saveButton\">\n Save\n </Button>\n </>\n }\n >\n <AssetsMultipleSelector\n selectedAssets={selectedPads as AssetsMultipleSelectorProps['selectedAssets']}\n onChange={handlePadSelect as AssetsMultipleSelectorProps['onChange']}\n label=\"Pad *\"\n type=\"pad\"\n customRequestQueryParams={padSelectorQuery}\n />\n <FormControl\n data-testid=\"offsetWellDropdown\"\n margin=\"normal\"\n disabled={!wellsList.length}\n fullWidth\n required\n >\n <InputLabel htmlFor=\"wells\" shrink={!isEmpty(selectedWellAssetIds)}>\n Well\n </InputLabel>\n <Select\n multiple\n inputProps={{ name: 'wells', id: 'well-select' }}\n value={selectedWellAssetIds}\n onChange={handleWellSelect}\n renderValue={(selected) => `${(selected as string[]).length} selected`}\n >\n {wellsList.map(well => (\n <MenuItem\n key={well.id}\n value={well.assetId}\n data-testid={`${well.name}_offsetWell_menuItem`}\n >\n <Checkbox size=\"small\" checked={selectedWellAssetIds.includes(well.assetId)} />\n <ListItemText primary={well.name} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Modal>\n );\n};\n\nexport default PadOffsetsPickerV2;\n"],"names":["useStyles","makeStyles","cancelButton","marginLeft","marginRight","PadOffsetsPickerV2","_ref","assets","opened","currentOffsetSetting","appPad","companyId","onSave","onClose","classes","_useOffsetPickerActio","useOffsetPickerActions","selectedPads","selectedWellAssetIds","setSelectedPads","setSelectedWellAssetIds","wellsList","useMemo","reduce","result","pad","concat","wells","padSelectorQuery","company","fields","sort","per_page","_jsxs","Modal","open","title","size","actions","_Fragment","children","_jsx","Button","onClick","className","variant","color","selectedWells","filter","well","includes","assetId","offsetsMap","Map","map","offset","selectedWellId","newOffsets","preSelectedWell","get","Number","selectedWellIdNew","id","selectedWellName","name","selectedWellStatus","status","selectedStages","stages","convertWellToOffset","AssetsMultipleSelector","selectedAssets","onChange","pads","label","type","customRequestQueryParams","FormControl","margin","disabled","length","fullWidth","required","InputLabel","htmlFor","shrink","isEmpty","Select","multiple","inputProps","value","event","target","renderValue","selected","MenuItem","Checkbox","checked","ListItemText","primary"],"mappings":"i/3BAmBA,IAAMA,EAAYC,EAAW,CAC3BC,aAAc,CACZC,WAAY,OACZC,YAAa,MAaXC,EAAqB,SAQiBC,GAAA,IAP1CC,IAAAA,OACAC,IAAAA,OACAC,IAAAA,qBACAC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,OACAC,IAAAA,QAEMC,EAAUd,IAChBe,EACEC,EAAuB,CAAER,OAAAA,EAAQE,OAAAA,EAAQH,OAAAA,EAAQE,qBAAAA,IAD3CQ,IAAAA,aAAcC,IAAAA,qBAAsBC,IAAAA,gBAAiBC,IAAAA,wBAGvDC,EAAoCC,GACxC,WAAA,OAAML,EAAaM,QAA+B,SAACC,EAAQC,GAAG,OAAKD,EAAOE,OAAOD,EAAIE,MAAM,GAAE,MAC7F,CAACV,IA0BGW,EAAmBN,GACvB,WAAA,MAAO,CACLO,QAAS,CAAClB,GACVmB,OAAQ,CAAC,aACTC,KAAM,iBACNC,SAAU,IACX,GACD,CAACrB,IAGH,OACEsB,EAACC,EAAK,CACJC,KAAM3B,EACNK,QAASA,EACTuB,MAAM,eACNC,KAAK,QACLC,QACEL,EAAAM,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAM,CAACC,QAAS9B,EAAS+B,UAAW9B,EAAQZ,aAAc,cAAY,cAAasC,SAAA,WAGpFC,EAACC,EAAM,CAACG,QAAQ,YAAYC,MAAM,UAAUH,QApCjC,WACjB,IAAMI,EAAgB1B,EAAU2B,QAAO,SAAAC,GAAI,OAAI/B,EAAqBgC,SAASD,EAAKE,YAC5EC,EAAa,IAAIC,IAAI5C,EAAqB6C,KAAI,SAAAC,GAAM,MAAI,CAACA,EAAOC,eAAgBD,EAAO,KAEvFE,EAAaV,EAAcO,KAAI,SAAAL,GACnC,IAAMS,EAAkBN,EAAWO,KAAKV,EAAKE,SAC7C,OAAIO,GAzCkB,SAACT,GAA0B,MAAqB,CAC1EO,eAAgBI,OAAOX,EAAKE,SAC5BU,kBAAmBZ,EAAKa,GACxBC,iBAAkBd,EAAKe,KACvBC,mBAAoBhB,EAAKiB,OACzBC,eAAgB,GAChBC,OAAQ,CAAC,EACV,CAoCYC,CAAoBpB,EAC7B,IAEArC,EAAO6C,GACP5C,KAwBuE,cAAY,aAAY2B,SAAA,YAI5FA,SAAA,CAEDC,EAAC6B,EAAsB,CACrBC,eAAgBtD,EAChBuD,SApDkB,SAACC,GACvBtD,EAAgBsD,IAoDZC,MAAM,QACNC,KAAK,MACLC,yBAA0BhD,IAE5BK,EAAC4C,EAAW,CACV,cAAY,qBACZC,OAAO,SACPC,UAAW1D,EAAU2D,OACrBC,WAAS,EACTC,UAAQ,EAAA1C,SAAA,CAERC,EAAC0C,EAAU,CAACC,QAAQ,QAAQC,QAASC,EAAQpE,GAAsBsB,SAAA,SAGnEC,EAAC8C,EAAM,CACLC,UAAQ,EACRC,WAAY,CAAEzB,KAAM,QAASF,GAAI,eACjC4B,MAAOxE,EACPsD,SAnEiB,SAACmB,GACxBvE,EAAwBuE,EAAMC,OAAOF,QAmE/BG,YAAa,SAACC,GAAQ,MAASA,GAAAA,OAAAA,EAAsBd,OAAM,YAAY,EAAAxC,SAEtEnB,EAAUiC,KAAI,SAAAL,GAAI,OACjBhB,EAAC8D,EAAQ,CAEPL,MAAOzC,EAAKE,QACZ,cAAgBF,GAAAA,OAAAA,EAAKe,KAA2B,wBAAAxB,SAAA,CAEhDC,EAACuD,EAAQ,CAAC3D,KAAK,QAAQ4D,QAAS/E,EAAqBgC,SAASD,EAAKE,WACnEV,EAACyD,EAAY,CAACC,QAASlD,EAAKe,SALvBf,EAAKa,cAYxB"}
1
+ {"version":3,"file":"PadOffsetsPickerV2.js","sources":["../../../src/components/PadOffsetsPickerV2/PadOffsetsPickerV2.tsx"],"sourcesContent":["import { isEmpty } from 'lodash';\nimport {\n Button,\n FormControl,\n InputLabel,\n Select,\n MenuItem,\n Checkbox,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\nimport React, { useMemo } from 'react';\n\nimport { Modal, AssetsMultipleSelector } from '~/components';\nimport { AssetsMultipleSelectorProps } from '~/components/AssetsMultipleSelector/AssetsMultipleSelector';\nimport { AssetSelectorPad, AssetSelectorPadWell, PadOffsetsPickerV2Props } from './types';\nimport { useOffsetPickerActions } from './useOffsetPickerActions';\nimport { OffsetSetting } from '~/types';\n\nconst useStyles = makeStyles({\n cancelButton: {\n marginLeft: 'auto',\n marginRight: 16,\n },\n});\n\nconst convertWellToOffset = (well: AssetSelectorPadWell): OffsetSetting => ({\n selectedWellId: Number(well.assetId),\n selectedWellIdNew: well.id,\n selectedWellName: well.name,\n selectedWellStatus: well.status,\n selectedStages: [],\n stages: {},\n});\n\nconst PadOffsetsPickerV2 = ({\n assets,\n opened,\n currentOffsetSetting,\n appPad,\n companyId,\n onSave,\n onClose,\n}: PadOffsetsPickerV2Props): JSX.Element => {\n const classes = useStyles();\n const { selectedPads, selectedWellAssetIds, setSelectedPads, setSelectedWellAssetIds } =\n useOffsetPickerActions({ opened, appPad, assets, currentOffsetSetting });\n\n const wellsList: AssetSelectorPadWell[] = useMemo(\n () => selectedPads.reduce<AssetSelectorPadWell[]>((result, pad) => result.concat(pad.wells), []),\n [selectedPads]\n );\n\n const handlePadSelect = (pads: AssetSelectorPad[]) => {\n setSelectedPads(pads);\n };\n\n const handleWellSelect = (event: React.ChangeEvent<{ value: unknown }>) => {\n setSelectedWellAssetIds(event.target.value as number[]);\n };\n\n const handleSave = () => {\n const selectedWells = wellsList.filter(well => selectedWellAssetIds.includes(well.assetId));\n const offsetsMap = new Map(currentOffsetSetting.map(offset => [offset.selectedWellId, offset]));\n\n const newOffsets = selectedWells.map(well => {\n const preSelectedWell = offsetsMap.get(+well.assetId);\n if (preSelectedWell) return preSelectedWell;\n\n return convertWellToOffset(well);\n });\n\n onSave(newOffsets);\n onClose();\n };\n\n const padSelectorQuery = useMemo(\n () => ({\n company: [companyId],\n fields: ['pad.wells'],\n sort: 'last_active_at',\n per_page: 100,\n }),\n [companyId]\n );\n\n return (\n <Modal\n open={opened}\n onClose={onClose}\n title=\"Offset Wells\"\n size=\"small\"\n actions={\n <>\n <Button onClick={onClose} className={classes.cancelButton} data-testid=\"closeButton\">\n Cancel\n </Button>\n <Button variant=\"contained\" color=\"primary\" onClick={handleSave} data-testid=\"saveButton\">\n Save\n </Button>\n </>\n }\n >\n <AssetsMultipleSelector\n selectedAssets={selectedPads as AssetsMultipleSelectorProps['selectedAssets']}\n onChange={handlePadSelect as AssetsMultipleSelectorProps['onChange']}\n label=\"Pad *\"\n type=\"pad\"\n customRequestQueryParams={padSelectorQuery}\n />\n <FormControl\n data-testid=\"offsetWellDropdown\"\n margin=\"normal\"\n disabled={!wellsList.length}\n fullWidth\n required\n >\n <InputLabel htmlFor=\"wells\" shrink={!isEmpty(selectedWellAssetIds)}>\n Well\n </InputLabel>\n <Select\n multiple\n inputProps={{ name: 'wells', id: 'well-select' }}\n value={selectedWellAssetIds}\n onChange={handleWellSelect}\n renderValue={(selected) => `${(selected as string[]).length} selected`}\n >\n {wellsList.map(well => (\n <MenuItem\n key={well.id}\n value={well.assetId}\n data-testid={`${well.name}_offsetWell_menuItem`}\n >\n <Checkbox size=\"small\" checked={selectedWellAssetIds.includes(well.assetId)} />\n <ListItemText primary={well.name} />\n </MenuItem>\n ))}\n </Select>\n </FormControl>\n </Modal>\n );\n};\n\nexport default PadOffsetsPickerV2;\n"],"names":["useStyles","makeStyles","cancelButton","marginLeft","marginRight","PadOffsetsPickerV2","_ref","assets","opened","currentOffsetSetting","appPad","companyId","onSave","onClose","classes","_useOffsetPickerActio","useOffsetPickerActions","selectedPads","selectedWellAssetIds","setSelectedPads","setSelectedWellAssetIds","wellsList","useMemo","reduce","result","pad","concat","wells","padSelectorQuery","company","fields","sort","per_page","_jsxs","Modal","open","title","size","actions","_Fragment","children","_jsx","Button","onClick","className","variant","color","selectedWells","filter","well","includes","assetId","offsetsMap","Map","map","offset","selectedWellId","newOffsets","preSelectedWell","get","Number","selectedWellIdNew","id","selectedWellName","name","selectedWellStatus","status","selectedStages","stages","convertWellToOffset","AssetsMultipleSelector","selectedAssets","onChange","pads","label","type","customRequestQueryParams","FormControl","margin","disabled","length","fullWidth","required","InputLabel","htmlFor","shrink","isEmpty","Select","multiple","inputProps","value","event","target","renderValue","selected","MenuItem","Checkbox","checked","ListItemText","primary"],"mappings":"mj4BAmBA,IAAMA,EAAYC,EAAW,CAC3BC,aAAc,CACZC,WAAY,OACZC,YAAa,MAaXC,EAAqB,SAQiBC,GAAA,IAP1CC,IAAAA,OACAC,IAAAA,OACAC,IAAAA,qBACAC,IAAAA,OACAC,IAAAA,UACAC,IAAAA,OACAC,IAAAA,QAEMC,EAAUd,IAChBe,EACEC,EAAuB,CAAER,OAAAA,EAAQE,OAAAA,EAAQH,OAAAA,EAAQE,qBAAAA,IAD3CQ,IAAAA,aAAcC,IAAAA,qBAAsBC,IAAAA,gBAAiBC,IAAAA,wBAGvDC,EAAoCC,GACxC,WAAA,OAAML,EAAaM,QAA+B,SAACC,EAAQC,GAAG,OAAKD,EAAOE,OAAOD,EAAIE,MAAM,GAAE,MAC7F,CAACV,IA0BGW,EAAmBN,GACvB,WAAA,MAAO,CACLO,QAAS,CAAClB,GACVmB,OAAQ,CAAC,aACTC,KAAM,iBACNC,SAAU,IACX,GACD,CAACrB,IAGH,OACEsB,EAACC,EAAK,CACJC,KAAM3B,EACNK,QAASA,EACTuB,MAAM,eACNC,KAAK,QACLC,QACEL,EAAAM,EAAA,CAAAC,SAAA,CACEC,EAACC,EAAM,CAACC,QAAS9B,EAAS+B,UAAW9B,EAAQZ,aAAc,cAAY,cAAasC,SAAA,WAGpFC,EAACC,EAAM,CAACG,QAAQ,YAAYC,MAAM,UAAUH,QApCjC,WACjB,IAAMI,EAAgB1B,EAAU2B,QAAO,SAAAC,GAAI,OAAI/B,EAAqBgC,SAASD,EAAKE,YAC5EC,EAAa,IAAIC,IAAI5C,EAAqB6C,KAAI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 +1 @@
1
- {"version":3,"file":"LiveDotIndicator.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAOF,eAAO,MAAM,gBAAgB,iCAAkC,qBAAqB,4CAKnF,CAAC"}
1
+ {"version":3,"file":"LiveDotIndicator.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAwBF,eAAO,MAAM,gBAAgB,iCAAkC,qBAAqB,4CAgCnF,CAAC"}
@@ -1,2 +1,2 @@
1
- import t from"classnames";import e from"./LiveDotIndicator.scss.js";import{jsx as r}from"react/jsx-runtime";var s={live:e.live,offline:e.offline},o=function(o){var a=o.state,i=o.className,m=o.testId;return r("div",{"data-testid":m,className:t(e.root,s[a],i)})};export{o as LiveDotIndicator};
1
+ import t from"classnames";import{useRef as r,useLayoutEffect as a}from"react";import e from"./LiveDotIndicator.scss.js";import{jsx as i}from"react/jsx-runtime";var n={live:e.live,offline:e.offline},o="cubic-bezier(0.455, 0.03, 0.515, 0.955)",c="cubic-bezier(0.215, 0.61, 0.355, 1)",s=[{opacity:.5,easing:o},{opacity:1,easing:o},{opacity:.5}],f=[{transform:"scale(1)",opacity:0,easing:c},{transform:"scale(2)",opacity:.5,easing:c},{transform:"scale(3.5)",opacity:0}],m=function(o){var c=o.state,m=o.className,u=o.testId,l=r(null);return a((function(){var t;if("live"===c&&null!==(t=l.current)&&void 0!==t&&t.animate){var r=[l.current.animate(s,{duration:3250,delay:-400,iterations:1/0}),l.current.animate(f,{duration:3250,iterations:1/0,pseudoElement:"::after"})];return function(){return r.forEach((function(t){return t.cancel()}))}}}),[c]),i("div",{"data-testid":u,className:t(e.root,n[c],m),ref:l})};export{m as LiveDotIndicator};
2
2
  //# sourceMappingURL=LiveDotIndicator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LiveDotIndicator.js","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => (\n <div\n data-testid={testId}\n className={classNames(styles.root, StateToClassMap[state], className)}\n />\n);\n"],"names":["StateToClassMap","live","styles","offline","LiveDotIndicator","_ref","state","className","testId","_jsx","classNames","root"],"mappings":"4GAWA,IAAMA,EAAkE,CACtEC,KAAMC,EAAOD,KACbE,QAASD,EAAOC,SAGLC,EAAmB,SAAHC,GAAA,IAAMC,IAAAA,MAAOC,IAAAA,UAAWC,IAAAA,OAAM,OACzDC,EAAA,MAAA,CACE,cAAaD,EACbD,UAAWG,EAAWR,EAAOS,KAAMX,EAAgBM,GAAQC,IAC3D"}
1
+ {"version":3,"file":"LiveDotIndicator.js","sources":["../../../src/componentsV2/LiveDotIndicator/LiveDotIndicator.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useLayoutEffect, useRef } from 'react';\n\nimport styles from './LiveDotIndicator.scss';\n\nexport type LiveDotIndicatorProps = {\n state: 'live' | 'offline';\n\n className?: string;\n testId?: string;\n};\n\nconst StateToClassMap: Record<LiveDotIndicatorProps['state'], string> = {\n live: styles.live,\n offline: styles.offline,\n};\n\nconst PULSE_DURATION_MS = 3250;\nconst BG_EASING = 'cubic-bezier(0.455, 0.03, 0.515, 0.955)';\nconst RING_EASING = 'cubic-bezier(0.215, 0.61, 0.355, 1)';\n\n// Keyframe easing, not the option: a CSS animation eases each keyframe interval, and these match the CSS it replaces.\nconst BG_KEYFRAMES: Keyframe[] = [\n { opacity: 0.5, easing: BG_EASING },\n { opacity: 1, easing: BG_EASING },\n { opacity: 0.5 },\n];\n\nconst RING_KEYFRAMES: Keyframe[] = [\n { transform: 'scale(1)', opacity: 0, easing: RING_EASING },\n { transform: 'scale(2)', opacity: 0.5, easing: RING_EASING },\n { transform: 'scale(3.5)', opacity: 0 },\n];\n\nexport const LiveDotIndicator = ({ state, className, testId }: LiveDotIndicatorProps) => {\n const dotRef = useRef<HTMLDivElement>(null);\n\n // Web Animations, not CSS keyframes: every React root listens for animation events, and while a\n // document listens, Chromium updates a running CSS animation on the main thread every frame.\n useLayoutEffect(() => {\n // A DOM without Web Animations (jsdom in consumers' tests) renders the dot still, as it renders any page.\n if (state !== 'live' || !dotRef.current?.animate) return undefined;\n\n const animations = [\n dotRef.current.animate(BG_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n delay: -400,\n iterations: Infinity,\n }),\n dotRef.current.animate(RING_KEYFRAMES, {\n duration: PULSE_DURATION_MS,\n iterations: Infinity,\n pseudoElement: '::after',\n }),\n ];\n\n return () => animations.forEach(animation => animation.cancel());\n }, [state]);\n\n return (\n <div\n data-testid={testId}\n className={classNames(styles.root, StateToClassMap[state], className)}\n ref={dotRef}\n />\n );\n};\n"],"names":["StateToClassMap","live","styles","offline","BG_EASING","RING_EASING","BG_KEYFRAMES","opacity","easing","RING_KEYFRAMES","transform","LiveDotIndicator","_ref","state","className","testId","dotRef","useRef","useLayoutEffect","_dotRef$current","current","animate","animations","duration","delay","iterations","Infinity","pseudoElement","forEach","animation","cancel","_jsx","classNames","root","ref"],"mappings":"gKAYA,IAAMA,EAAkE,CACtEC,KAAMC,EAAOD,KACbE,QAASD,EAAOC,SAIZC,EAAY,0CACZC,EAAc,sCAGdC,EAA2B,CAC/B,CAAEC,QAAS,GAAKC,OAAQJ,GACxB,CAAEG,QAAS,EAAGC,OAAQJ,GACtB,CAAEG,QAAS,KAGPE,EAA6B,CACjC,CAAEC,UAAW,WAAYH,QAAS,EAAGC,OAAQH,GAC7C,CAAEK,UAAW,WAAYH,QAAS,GAAKC,OAAQH,GAC/C,CAAEK,UAAW,aAAcH,QAAS,IAGzBI,EAAmB,SAAyDC,GAAA,IAAtDC,IAAAA,MAAOC,IAAAA,UAAWC,IAAAA,OAC7CC,EAASC,EAAuB,MAwBtC,OApBAC,GAAgB,WAAM,IAAAC,EAEpB,GAAc,SAAVN,GAAqB,QAAAG,EAAAA,EAAOI,eAAP,IAAAD,GAAAA,EAAgBE,QAAzC,CAEA,IAAMC,EAAa,CACjBN,EAAOI,QAAQC,QAAQf,EAAc,CACnCiB,SA5BkB,KA6BlBC,OAAQ,IACRC,WAAYC,MAEdV,EAAOI,QAAQC,QAAQZ,EAAgB,CACrCc,SAjCkB,KAkClBE,WAAYC,IACZC,cAAe,aAInB,OAAO,WAAA,OAAML,EAAWM,SAAQ,SAAAC,GAAS,OAAIA,EAAUC,WAAS,CAfE,CAgBpE,GAAG,CAACjB,IAGFkB,EAAA,MAAA,CACE,cAAahB,EACbD,UAAWkB,EAAW9B,EAAO+B,KAAMjC,EAAgBa,GAAQC,GAC3DoB,IAAKlB,GAGX"}
@@ -1,2 +1,2 @@
1
- import i from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"LiveDotIndicator_root__9o2vz",live:"LiveDotIndicator_live__2lXWs",LivePulseBg:"LiveDotIndicator_LivePulseBg__gZC8F",LivePulseRing:"LiveDotIndicator_LivePulseRing__3xc85",offline:"LiveDotIndicator_offline__1W-4D"};i('.LiveDotIndicator_root__9o2vz{display:inline-block;padding:2px;vertical-align:middle}.LiveDotIndicator_root__9o2vz:before{border-radius:50%;content:"";display:block;height:4px;width:4px}.LiveDotIndicator_live__2lXWs{animation:LiveDotIndicator_LivePulseBg__gZC8F 3.25s cubic-bezier(.455,.03,.515,.955) -.4s infinite;isolation:isolate;position:relative}.LiveDotIndicator_live__2lXWs:after,.LiveDotIndicator_live__2lXWs:before{background:var(--palette-success-bright)}.LiveDotIndicator_live__2lXWs:after{animation:LiveDotIndicator_LivePulseRing__3xc85 3.25s cubic-bezier(.215,.61,.355,1) infinite;border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:2px;width:4px;z-index:-1}.LiveDotIndicator_offline__1W-4D:before{background:var(--palette-background-b-9);box-shadow:0 0 0 2px rgb(from var(--palette-background-b-9) r g b/.4)}@keyframes LiveDotIndicator_LivePulseRing__3xc85{0%{opacity:0;transform:scale(1)}50%{opacity:.5;transform:scale(2)}to{opacity:0;transform:scale(3.5)}}@keyframes LiveDotIndicator_LivePulseBg__gZC8F{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}');export{e as default};
1
+ import o from'./../../ext-esm/style-inject/dist/style-inject.es.js';var e={spacing:"8",root:"LiveDotIndicator_root__9o2vz",live:"LiveDotIndicator_live__2lXWs",offline:"LiveDotIndicator_offline__1W-4D"};o('.LiveDotIndicator_root__9o2vz{display:inline-block;padding:2px;vertical-align:middle}.LiveDotIndicator_root__9o2vz:before{border-radius:50%;content:"";display:block;height:4px;width:4px}.LiveDotIndicator_live__2lXWs{isolation:isolate;position:relative}.LiveDotIndicator_live__2lXWs:after,.LiveDotIndicator_live__2lXWs:before{background:var(--palette-success-bright)}.LiveDotIndicator_live__2lXWs:after{border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:2px;width:4px;z-index:-1}.LiveDotIndicator_offline__1W-4D:before{background:var(--palette-background-b-9);box-shadow:0 0 0 2px rgb(from var(--palette-background-b-9) r g b/.4)}');export{e as default};
2
2
  //# sourceMappingURL=LiveDotIndicator.scss.js.map
@@ -41,6 +41,7 @@ export declare const FEED_ITEM_TYPES: {
41
41
  COMPLETION_DOCUMENT: string;
42
42
  COMPLETION_ACTUAL_STAGE: string;
43
43
  COMPLETION_NPT_EVENT: string;
44
+ TREATMENT_PLOT_COMMENT: string;
44
45
  };
45
46
  export declare const FEED_ITEM_TIME_FORMAT = "MMM D YYYY, hh:mm A";
46
47
  export declare const FEED_ITEM_CONFIGS: ({
@@ -1 +1 @@
1
- {"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../src/constants/feed.js"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,SAAS,CAAC;AAE3B,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,iCAAiC,sCAAsC,CAAC;AACrF,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,iCAAiC,sCAAsC,CAAC;AAErF,eAAO,MAAM,IAAI;;;;CAMhB,CAAC;AAEF,eAAO,MAAM,eAAe;IAC1B,WAAW;IACX,IAAI;IACJ,cAAc;IACd,KAAK;IACL,gBAAgB;IAChB,iBAAiB;IACjB,UAAU;IACV,QAAQ;IACR,oBAAoB;IACpB,YAAY;IACZ,GAAG;IACH,cAAc;IACd,SAAS;IACT,YAAY;IACZ,SAAS;IACT,eAAe;IACf,cAAc;IACd,oBAAoB;IACpB,2BAA2B;IAC3B,WAAW;IACX,UAAU;IACV,0BAA0B;IAC1B,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;IAC5B,qBAAqB;IACrB,mBAAmB;IACnB,uBAAuB;IACvB,oBAAoB;CACrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAE3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;IA+K7B,CAAC;AAEF,eAAO,MAAM,kCAAkC;IAC7C,MAAM;IACN,MAAM;IACN,IAAI;IACJ,WAAW;CACZ,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AAE3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;IAsL7B,CAAC;AAEF,eAAO,MAAM,kCAAkC;IAC7C,MAAM;IACN,MAAM;IACN,IAAI;IACJ,WAAW;CACZ,CAAC;AAEF,eAAO,MAAM,sBAAsB,IAGlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAwB3B,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;CAGxC,CAAC;AAEF,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,eAAO,MAAM,aAAa;IACxB,WAAW;QACT,IAAI;YACF,UAAU;;QAEZ,IAAI;YACF,KAAK;YACL,MAAM;YACN,UAAU;gBACR,eAAe;;;;CAItB,CAAC"}
package/constants/feed.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import o from"../config/theme/palette.mjs.js";function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,l)}return o}function n(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?l(Object(n),!0).forEach((function(o){e(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var r="feed",a="ADD_NEW_FEED_ITEMS",E="DELETE_NEW_FEED_ITEM",i="CLEAR_NEW_FEED_ITEMS",_="ADD_FEED_ITEM_TO_UPDATE_LIST",s="DELETE_FEED_ITEM_FROM_UPDATE_LIST",m="ADD_FEED_ITEM_TO_DELETE_LIST",T="DELETE_FEED_ITEM_FROM_DELETE_LIST",O={SUBSCRIPTIONS:[{collection:"feed"}]},p={TRACES_MEMO:"traces_memo",POST:"post",DEPTH_COMMENTS:"depth_comments",ALERT:"alert",OPERATIONAL_NOTE:"operational_note",OPERATION_SUMMARY:"operation_summary",DAILY_COST:"daily_cost",DOCUMENT:"document",GENERIC_DATA_COMMENT:"generic_data_comment",FLUID_REPORT:"fluid_report",BHA:"bha",SURVEY_STATION:"survey_station",WELL_PLAN:"well_plan",DRILLER_MEMO:"driller_memo",NPT_EVENT:"npt_event",LESSONS_LEARNED:"lessons_learned",APP_ANNOTATION:"app_annotation",GEOSTEERING_COMMENTS:"geosteering_comments",HOOKLOAD_BROOMSTICK_COMMENT:"hookload_broomstick_comment",DVD_COMMENT:"dvd_comment",PC_COMMENT:"pc_comment",DRILLING_DYSFUNCTION_EVENT:"drilling_dysfunction_event",NPT_LESSONS_COMMENT:"npt_lessons_comment",COMPLETION_OPERATIONAL_NOTE:"completion_operational_note",COMPLETION_OPERATION_SUMMARY:"completion_operation_summary",COMPLETION_DAILY_COST:"completion_daily_cost",COMPLETION_DOCUMENT:"completion_document",COMPLETION_ACTUAL_STAGE:"completion_actual_stage",COMPLETION_NPT_EVENT:"completion_npt_event"},c="MMM D YYYY, hh:mm A",g=[{label:"Post",category:"post",type:p.POST,segment:["drilling","completion"]},{label:"Alert",category:"post",type:p.ALERT,segment:["drilling","completion"]},{label:"Operational Note",category:"post",type:p.OPERATIONAL_NOTE,segment:["drilling"]},{label:"Operation Summary",category:"post",type:p.OPERATION_SUMMARY,segment:["drilling"]},{label:"Daily Cost",category:"post",type:p.DAILY_COST,segment:["drilling"]},{label:"Document",category:"post",type:p.DOCUMENT,segment:["drilling"]},{label:"Fluid Report",category:"post",type:p.FLUID_REPORT,segment:["drilling"]},{label:"BHA",category:"post",type:p.BHA,segment:["drilling"]},{label:"Survey Station",category:"post",type:p.SURVEY_STATION,segment:["drilling"]}].concat(t("production"!==process.env.REACT_APP_ENVIRONMENT?[{label:"Well Plan",category:"post",type:p.WELL_PLAN,segment:["drilling"]}]:[]),[{label:"Driller Memo",category:"post",type:p.DRILLER_MEMO,segment:["drilling"]},{label:"NPT",category:"post",type:p.NPT_EVENT,segment:["drilling"]},{label:"Lessons Learned",category:"post",type:p.LESSONS_LEARNED,segment:["drilling"]},{label:"Operational Note",category:"post",type:p.COMPLETION_OPERATIONAL_NOTE,segment:["completion"]},{label:"Operation Summary",category:"post",type:p.COMPLETION_OPERATION_SUMMARY,segment:["completion"]},{label:"Daily Cost",category:"post",type:p.COMPLETION_DAILY_COST,segment:["completion"]},{label:"Document",category:"post",type:p.COMPLETION_DOCUMENT,segment:["completion"]},{label:"Stage Overview",category:"post",type:p.COMPLETION_ACTUAL_STAGE,segment:["completion"]},{label:"NPT",category:"post",type:p.COMPLETION_NPT_EVENT,segment:["completion"]},{label:"App Annotation",category:"post",type:p.APP_ANNOTATION,segment:["drilling","completion"]},{label:"Traces Memo",category:"post",type:p.TRACES_MEMO,segment:["drilling","completion"]},{label:"Geosteering Recommendations",category:"post",type:p.GEOSTEERING_COMMENTS,segment:["drilling","completion"]},{label:"Depth Comments",category:"comment",type:p.DEPTH_COMMENTS,segment:["drilling","completion"]},{label:"Hookload Point Annotations",category:"comment",type:p.HOOKLOAD_BROOMSTICK_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"DvD Comment",category:"comment",type:p.DVD_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Parameter Comparison",category:"comment",type:p.PC_COMMENT,showCreatorToLabel:!0,segment:["drilling","completion"]},{label:"Drilling Dysfunction",category:"post",type:p.DRILLING_DYSFUNCTION_EVENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Npt Lessons Comment",category:"comment",type:p.NPT_LESSONS_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Generic Data Comment",category:"comment",type:p.GENERIC_DATA_COMMENT,showCreatorToLabel:!0,segment:["drilling","completion"]}]),N={string:"string",number:"number",date:"date",convertable:"convertable"},y=g.reduce((function(t,o){return n(n({},t),{},e({},o.type,o))}),{}),M={RIG_FILTERS:[{label:"All",value:"all"},{label:"Filter by asset",value:"filterByAsset"}],DATE_RANGE_FILTERS:[{label:"Last 24 hours",value:"last24hours"},{label:"Last 7 days",value:"last7days"},{label:"Custom",value:"custom"}],CONTENT_TYPE_FILTERS:g.map((function(e){return{label:e.label,value:e.type,segment:e.segment}})),USER_FILTERS:[{label:"All",value:"all"},{label:"Filter by user",value:"filterByUser"}]},b=g.reduce((function(e,o){var l=o.type;return[].concat(t(e),[l])}),[]),L=!0,A={suggestions:{list:{background:o.background.b9},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};export{m as ADD_FEED_ITEM_TO_DELETE_LIST,_ as ADD_FEED_ITEM_TO_UPDATE_LIST,a as ADD_NEW_FEED_ITEMS,i as CLEAR_NEW_FEED_ITEMS,b as DEFAULT_CONTENT_TYPES_FILTER,T as DELETE_FEED_ITEM_FROM_DELETE_LIST,s as DELETE_FEED_ITEM_FROM_UPDATE_LIST,E as DELETE_NEW_FEED_ITEM,O as FEED,g as FEED_ITEM_CONFIGS,c as FEED_ITEM_TIME_FORMAT,p as FEED_ITEM_TYPES,y as FEED_ITEM_TYPES_BY_KEY,N as GENERIC_DATA_COMMENTS_VALUES_TYPES,L as IS_FEED_SHOWN,A as MENTION_STYLE,r as NAME,M as SIDEBAR_FILTERS};
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import o from"../config/theme/palette.mjs.js";function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,l)}return o}function n(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?l(Object(n),!0).forEach((function(o){e(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var r="feed",a="ADD_NEW_FEED_ITEMS",E="DELETE_NEW_FEED_ITEM",_="CLEAR_NEW_FEED_ITEMS",i="ADD_FEED_ITEM_TO_UPDATE_LIST",m="DELETE_FEED_ITEM_FROM_UPDATE_LIST",T="ADD_FEED_ITEM_TO_DELETE_LIST",s="DELETE_FEED_ITEM_FROM_DELETE_LIST",O={SUBSCRIPTIONS:[{collection:"feed"}]},p={TRACES_MEMO:"traces_memo",POST:"post",DEPTH_COMMENTS:"depth_comments",ALERT:"alert",OPERATIONAL_NOTE:"operational_note",OPERATION_SUMMARY:"operation_summary",DAILY_COST:"daily_cost",DOCUMENT:"document",GENERIC_DATA_COMMENT:"generic_data_comment",FLUID_REPORT:"fluid_report",BHA:"bha",SURVEY_STATION:"survey_station",WELL_PLAN:"well_plan",DRILLER_MEMO:"driller_memo",NPT_EVENT:"npt_event",LESSONS_LEARNED:"lessons_learned",APP_ANNOTATION:"app_annotation",GEOSTEERING_COMMENTS:"geosteering_comments",HOOKLOAD_BROOMSTICK_COMMENT:"hookload_broomstick_comment",DVD_COMMENT:"dvd_comment",PC_COMMENT:"pc_comment",DRILLING_DYSFUNCTION_EVENT:"drilling_dysfunction_event",NPT_LESSONS_COMMENT:"npt_lessons_comment",COMPLETION_OPERATIONAL_NOTE:"completion_operational_note",COMPLETION_OPERATION_SUMMARY:"completion_operation_summary",COMPLETION_DAILY_COST:"completion_daily_cost",COMPLETION_DOCUMENT:"completion_document",COMPLETION_ACTUAL_STAGE:"completion_actual_stage",COMPLETION_NPT_EVENT:"completion_npt_event",TREATMENT_PLOT_COMMENT:"treatment_plot_comment"},c="MMM D YYYY, hh:mm A",g=[{label:"Post",category:"post",type:p.POST,segment:["drilling","completion"]},{label:"Alert",category:"post",type:p.ALERT,segment:["drilling","completion"]},{label:"Operational Note",category:"post",type:p.OPERATIONAL_NOTE,segment:["drilling"]},{label:"Operation Summary",category:"post",type:p.OPERATION_SUMMARY,segment:["drilling"]},{label:"Daily Cost",category:"post",type:p.DAILY_COST,segment:["drilling"]},{label:"Document",category:"post",type:p.DOCUMENT,segment:["drilling"]},{label:"Fluid Report",category:"post",type:p.FLUID_REPORT,segment:["drilling"]},{label:"BHA",category:"post",type:p.BHA,segment:["drilling"]},{label:"Survey Station",category:"post",type:p.SURVEY_STATION,segment:["drilling"]}].concat(t("production"!==process.env.REACT_APP_ENVIRONMENT?[{label:"Well Plan",category:"post",type:p.WELL_PLAN,segment:["drilling"]}]:[]),[{label:"Driller Memo",category:"post",type:p.DRILLER_MEMO,segment:["drilling"]},{label:"NPT",category:"post",type:p.NPT_EVENT,segment:["drilling"]},{label:"Lessons Learned",category:"post",type:p.LESSONS_LEARNED,segment:["drilling"]},{label:"Operational Note",category:"post",type:p.COMPLETION_OPERATIONAL_NOTE,segment:["completion"]},{label:"Operation Summary",category:"post",type:p.COMPLETION_OPERATION_SUMMARY,segment:["completion"]},{label:"Daily Cost",category:"post",type:p.COMPLETION_DAILY_COST,segment:["completion"]},{label:"Document",category:"post",type:p.COMPLETION_DOCUMENT,segment:["completion"]},{label:"Stage Overview",category:"post",type:p.COMPLETION_ACTUAL_STAGE,segment:["completion"]},{label:"NPT",category:"post",type:p.COMPLETION_NPT_EVENT,segment:["completion"]},{label:"App Annotation",category:"post",type:p.APP_ANNOTATION,segment:["drilling","completion"]},{label:"Traces Memo",category:"post",type:p.TRACES_MEMO,segment:["drilling","completion"]},{label:"Geosteering Recommendations",category:"post",type:p.GEOSTEERING_COMMENTS,segment:["drilling","completion"]},{label:"Depth Comments",category:"comment",type:p.DEPTH_COMMENTS,segment:["drilling","completion"]},{label:"Hookload Point Annotations",category:"comment",type:p.HOOKLOAD_BROOMSTICK_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"DvD Comment",category:"comment",type:p.DVD_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Parameter Comparison",category:"comment",type:p.PC_COMMENT,showCreatorToLabel:!0,segment:["drilling","completion"]},{label:"Drilling Dysfunction",category:"post",type:p.DRILLING_DYSFUNCTION_EVENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Npt Lessons Comment",category:"comment",type:p.NPT_LESSONS_COMMENT,showCreatorToLabel:!0,segment:["drilling"]},{label:"Generic Data Comment",category:"comment",type:p.GENERIC_DATA_COMMENT,showCreatorToLabel:!0,segment:["drilling","completion"]},{label:"Treatment Plot Comment",category:"comment",type:p.TREATMENT_PLOT_COMMENT,showCreatorToLabel:!0,segment:["completion"]}]),N={string:"string",number:"number",date:"date",convertable:"convertable"},y=g.reduce((function(t,o){return n(n({},t),{},e({},o.type,o))}),{}),M={RIG_FILTERS:[{label:"All",value:"all"},{label:"Filter by asset",value:"filterByAsset"}],DATE_RANGE_FILTERS:[{label:"Last 24 hours",value:"last24hours"},{label:"Last 7 days",value:"last7days"},{label:"Custom",value:"custom"}],CONTENT_TYPE_FILTERS:g.map((function(e){return{label:e.label,value:e.type,segment:e.segment}})),USER_FILTERS:[{label:"All",value:"all"},{label:"Filter by user",value:"filterByUser"}]},b=g.reduce((function(e,o){var l=o.type;return[].concat(t(e),[l])}),[]),L=!0,A={suggestions:{list:{background:o.background.b9},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};export{T as ADD_FEED_ITEM_TO_DELETE_LIST,i as ADD_FEED_ITEM_TO_UPDATE_LIST,a as ADD_NEW_FEED_ITEMS,_ as CLEAR_NEW_FEED_ITEMS,b as DEFAULT_CONTENT_TYPES_FILTER,s as DELETE_FEED_ITEM_FROM_DELETE_LIST,m as DELETE_FEED_ITEM_FROM_UPDATE_LIST,E as DELETE_NEW_FEED_ITEM,O as FEED,g as FEED_ITEM_CONFIGS,c as FEED_ITEM_TIME_FORMAT,p as FEED_ITEM_TYPES,y as FEED_ITEM_TYPES_BY_KEY,N as GENERIC_DATA_COMMENTS_VALUES_TYPES,L as IS_FEED_SHOWN,A as MENTION_STYLE,r as NAME,M as SIDEBAR_FILTERS};
2
2
  //# sourceMappingURL=feed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feed.js","sources":["../../src/constants/feed.js"],"sourcesContent":["import palette from '~/config/theme/palette.mjs';\n\nexport const NAME = 'feed';\n\nexport const ADD_NEW_FEED_ITEMS = 'ADD_NEW_FEED_ITEMS';\nexport const DELETE_NEW_FEED_ITEM = 'DELETE_NEW_FEED_ITEM';\nexport const CLEAR_NEW_FEED_ITEMS = 'CLEAR_NEW_FEED_ITEMS';\nexport const ADD_FEED_ITEM_TO_UPDATE_LIST = 'ADD_FEED_ITEM_TO_UPDATE_LIST';\nexport const DELETE_FEED_ITEM_FROM_UPDATE_LIST = 'DELETE_FEED_ITEM_FROM_UPDATE_LIST';\nexport const ADD_FEED_ITEM_TO_DELETE_LIST = 'ADD_FEED_ITEM_TO_DELETE_LIST';\nexport const DELETE_FEED_ITEM_FROM_DELETE_LIST = 'DELETE_FEED_ITEM_FROM_DELETE_LIST';\n\nexport const FEED = {\n SUBSCRIPTIONS: [\n {\n collection: 'feed',\n },\n ],\n};\n\nexport const FEED_ITEM_TYPES = {\n TRACES_MEMO: 'traces_memo',\n POST: 'post',\n DEPTH_COMMENTS: 'depth_comments',\n ALERT: 'alert',\n OPERATIONAL_NOTE: 'operational_note',\n OPERATION_SUMMARY: 'operation_summary',\n DAILY_COST: 'daily_cost',\n DOCUMENT: 'document',\n GENERIC_DATA_COMMENT: 'generic_data_comment',\n FLUID_REPORT: 'fluid_report',\n BHA: 'bha',\n SURVEY_STATION: 'survey_station',\n WELL_PLAN: 'well_plan',\n DRILLER_MEMO: 'driller_memo',\n NPT_EVENT: 'npt_event',\n LESSONS_LEARNED: 'lessons_learned',\n APP_ANNOTATION: 'app_annotation',\n GEOSTEERING_COMMENTS: 'geosteering_comments',\n HOOKLOAD_BROOMSTICK_COMMENT: 'hookload_broomstick_comment',\n DVD_COMMENT: 'dvd_comment',\n PC_COMMENT: 'pc_comment',\n DRILLING_DYSFUNCTION_EVENT: 'drilling_dysfunction_event',\n NPT_LESSONS_COMMENT: 'npt_lessons_comment',\n COMPLETION_OPERATIONAL_NOTE: 'completion_operational_note',\n COMPLETION_OPERATION_SUMMARY: 'completion_operation_summary',\n COMPLETION_DAILY_COST: 'completion_daily_cost',\n COMPLETION_DOCUMENT: 'completion_document',\n COMPLETION_ACTUAL_STAGE: 'completion_actual_stage',\n COMPLETION_NPT_EVENT: 'completion_npt_event',\n};\n\nexport const FEED_ITEM_TIME_FORMAT = 'MMM D YYYY, hh:mm A';\n\nexport const FEED_ITEM_CONFIGS = [\n {\n label: 'Post',\n category: 'post',\n type: FEED_ITEM_TYPES.POST,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Alert',\n category: 'post',\n type: FEED_ITEM_TYPES.ALERT,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Operational Note',\n category: 'post',\n type: FEED_ITEM_TYPES.OPERATIONAL_NOTE,\n segment: ['drilling'],\n },\n {\n label: 'Operation Summary',\n category: 'post',\n type: FEED_ITEM_TYPES.OPERATION_SUMMARY,\n segment: ['drilling'],\n },\n {\n label: 'Daily Cost',\n category: 'post',\n type: FEED_ITEM_TYPES.DAILY_COST,\n segment: ['drilling'],\n },\n { label: 'Document', category: 'post', type: FEED_ITEM_TYPES.DOCUMENT, segment: ['drilling'] },\n {\n label: 'Fluid Report',\n category: 'post',\n type: FEED_ITEM_TYPES.FLUID_REPORT,\n segment: ['drilling'],\n },\n { label: 'BHA', category: 'post', type: FEED_ITEM_TYPES.BHA, segment: ['drilling'] },\n {\n label: 'Survey Station',\n category: 'post',\n type: FEED_ITEM_TYPES.SURVEY_STATION,\n segment: ['drilling'],\n },\n // NOTE: Temporarily hidden on prod\n ...(process.env.REACT_APP_ENVIRONMENT !== 'production'\n ? [\n {\n label: 'Well Plan',\n category: 'post',\n type: FEED_ITEM_TYPES.WELL_PLAN,\n segment: ['drilling'],\n },\n ]\n : []),\n {\n label: 'Driller Memo',\n category: 'post',\n type: FEED_ITEM_TYPES.DRILLER_MEMO,\n segment: ['drilling'],\n },\n { label: 'NPT', category: 'post', type: FEED_ITEM_TYPES.NPT_EVENT, segment: ['drilling'] },\n {\n label: 'Lessons Learned',\n category: 'post',\n type: FEED_ITEM_TYPES.LESSONS_LEARNED,\n segment: ['drilling'],\n },\n\n {\n label: 'Operational Note',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_OPERATIONAL_NOTE,\n segment: ['completion'],\n },\n {\n label: 'Operation Summary',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_OPERATION_SUMMARY,\n segment: ['completion'],\n },\n {\n label: 'Daily Cost',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_DAILY_COST,\n segment: ['completion'],\n },\n {\n label: 'Document',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_DOCUMENT,\n segment: ['completion'],\n },\n {\n label: 'Stage Overview',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_ACTUAL_STAGE,\n segment: ['completion'],\n },\n // NOTE: Implement after Mo's explanation\n // { label: 'Stage Predictions', type: '???', segment: ['completion'] },\n {\n label: 'NPT',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_NPT_EVENT,\n segment: ['completion'],\n },\n\n {\n label: 'App Annotation',\n category: 'post',\n type: FEED_ITEM_TYPES.APP_ANNOTATION,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Traces Memo',\n category: 'post',\n type: FEED_ITEM_TYPES.TRACES_MEMO,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Geosteering Recommendations',\n category: 'post',\n type: FEED_ITEM_TYPES.GEOSTEERING_COMMENTS,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Depth Comments',\n category: 'comment',\n type: FEED_ITEM_TYPES.DEPTH_COMMENTS,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Hookload Point Annotations',\n category: 'comment',\n type: FEED_ITEM_TYPES.HOOKLOAD_BROOMSTICK_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'DvD Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.DVD_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Parameter Comparison',\n category: 'comment',\n type: FEED_ITEM_TYPES.PC_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Drilling Dysfunction',\n category: 'post',\n type: FEED_ITEM_TYPES.DRILLING_DYSFUNCTION_EVENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Npt Lessons Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.NPT_LESSONS_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Generic Data Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.GENERIC_DATA_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling', 'completion'],\n },\n];\n\nexport const GENERIC_DATA_COMMENTS_VALUES_TYPES = {\n string: 'string',\n number: 'number',\n date: 'date',\n convertable: 'convertable',\n};\n\nexport const FEED_ITEM_TYPES_BY_KEY = FEED_ITEM_CONFIGS.reduce(\n (result, feedItemType) => ({ ...result, [feedItemType.type]: feedItemType }),\n {}\n);\n\nexport const SIDEBAR_FILTERS = {\n RIG_FILTERS: [\n { label: 'All', value: 'all' },\n { label: 'Filter by asset', value: 'filterByAsset' },\n ],\n\n DATE_RANGE_FILTERS: [\n // NOTE: Order matters in handleChangeDateRangeFilter and renderDateRangeFilters\n // { label: 'All', value: 'all' },\n { label: 'Last 24 hours', value: 'last24hours' },\n { label: 'Last 7 days', value: 'last7days' },\n { label: 'Custom', value: 'custom' },\n ],\n\n CONTENT_TYPE_FILTERS: FEED_ITEM_CONFIGS.map(feedItemType => ({\n label: feedItemType.label,\n value: feedItemType.type,\n segment: feedItemType.segment,\n })),\n\n USER_FILTERS: [\n { label: 'All', value: 'all' },\n { label: 'Filter by user', value: 'filterByUser' },\n ],\n};\n\nexport const DEFAULT_CONTENT_TYPES_FILTER = FEED_ITEM_CONFIGS.reduce(\n (result, { type }) => [...result, type],\n []\n);\n\nexport const IS_FEED_SHOWN = true;\n\nexport const MENTION_STYLE = {\n suggestions: {\n list: {\n background: palette.background.b9,\n },\n item: {\n color: 'white',\n height: 30,\n '&focused': {\n backgroundColor: 'rgba(255, 255, 255, 0.08)',\n },\n },\n },\n};\n"],"names":["NAME","ADD_NEW_FEED_ITEMS","DELETE_NEW_FEED_ITEM","CLEAR_NEW_FEED_ITEMS","ADD_FEED_ITEM_TO_UPDATE_LIST","DELETE_FEED_ITEM_FROM_UPDATE_LIST","ADD_FEED_ITEM_TO_DELETE_LIST","DELETE_FEED_ITEM_FROM_DELETE_LIST","FEED","SUBSCRIPTIONS","collection","FEED_ITEM_TYPES","TRACES_MEMO","POST","DEPTH_COMMENTS","ALERT","OPERATIONAL_NOTE","OPERATION_SUMMARY","DAILY_COST","DOCUMENT","GENERIC_DATA_COMMENT","FLUID_REPORT","BHA","SURVEY_STATION","WELL_PLAN","DRILLER_MEMO","NPT_EVENT","LESSONS_LEARNED","APP_ANNOTATION","GEOSTEERING_COMMENTS","HOOKLOAD_BROOMSTICK_COMMENT","DVD_COMMENT","PC_COMMENT","DRILLING_DYSFUNCTION_EVENT","NPT_LESSONS_COMMENT","COMPLETION_OPERATIONAL_NOTE","COMPLETION_OPERATION_SUMMARY","COMPLETION_DAILY_COST","COMPLETION_DOCUMENT","COMPLETION_ACTUAL_STAGE","COMPLETION_NPT_EVENT","FEED_ITEM_TIME_FORMAT","FEED_ITEM_CONFIGS","label","category","type","segment","concat","_toConsumableArray","process","env","REACT_APP_ENVIRONMENT","showCreatorToLabel","GENERIC_DATA_COMMENTS_VALUES_TYPES","string","number","date","convertable","FEED_ITEM_TYPES_BY_KEY","reduce","result","feedItemType","_objectSpread","SIDEBAR_FILTERS","RIG_FILTERS","value","DATE_RANGE_FILTERS","CONTENT_TYPE_FILTERS","map","USER_FILTERS","DEFAULT_CONTENT_TYPES_FILTER","_ref","IS_FEED_SHOWN","MENTION_STYLE","suggestions","list","background","palette","b9","item","color","height","backgroundColor"],"mappings":"0tBAEO,IAAMA,EAAO,OAEPC,EAAqB,qBACrBC,EAAuB,uBACvBC,EAAuB,uBACvBC,EAA+B,+BAC/BC,EAAoC,oCACpCC,EAA+B,+BAC/BC,EAAoC,oCAEpCC,EAAO,CAClBC,cAAe,CACb,CACEC,WAAY,UAKLC,EAAkB,CAC7BC,YAAa,cACbC,KAAM,OACNC,eAAgB,iBAChBC,MAAO,QACPC,iBAAkB,mBAClBC,kBAAmB,oBACnBC,WAAY,aACZC,SAAU,WACVC,qBAAsB,uBACtBC,aAAc,eACdC,IAAK,MACLC,eAAgB,iBAChBC,UAAW,YACXC,aAAc,eACdC,UAAW,YACXC,gBAAiB,kBACjBC,eAAgB,iBAChBC,qBAAsB,uBACtBC,4BAA6B,8BAC7BC,YAAa,cACbC,WAAY,aACZC,2BAA4B,6BAC5BC,oBAAqB,sBACrBC,4BAA6B,8BAC7BC,6BAA8B,+BAC9BC,sBAAuB,wBACvBC,oBAAqB,sBACrBC,wBAAyB,0BACzBC,qBAAsB,wBAGXC,EAAwB,sBAExBC,EACX,CAAA,CACEC,MAAO,OACPC,SAAU,OACVC,KAAMlC,EAAgBE,KACtBiC,QAAS,CAAC,WAAY,eAExB,CACEH,MAAO,QACPC,SAAU,OACVC,KAAMlC,EAAgBI,MACtB+B,QAAS,CAAC,WAAY,eAExB,CACEH,MAAO,mBACPC,SAAU,OACVC,KAAMlC,EAAgBK,iBACtB8B,QAAS,CAAC,aAEZ,CACEH,MAAO,oBACPC,SAAU,OACVC,KAAMlC,EAAgBM,kBACtB6B,QAAS,CAAC,aAEZ,CACEH,MAAO,aACPC,SAAU,OACVC,KAAMlC,EAAgBO,WACtB4B,QAAS,CAAC,aAEZ,CAAEH,MAAO,WAAYC,SAAU,OAAQC,KAAMlC,EAAgBQ,SAAU2B,QAAS,CAAC,aACjF,CACEH,MAAO,eACPC,SAAU,OACVC,KAAMlC,EAAgBU,aACtByB,QAAS,CAAC,aAEZ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AE1B,MAAO,MAAOsB,MAAO,OACvB,CAAEtB,MAAO,iBAAkBsB,MAAO,kBAIzBK,EAA+B5B,EAAkBiB,QAC5D,SAACC,EAAMW,GAAA,IAAI1B,IAAAA,KAAI,MAAWe,GAAAA,OAAAA,EAAAA,IAAQf,GAAI,GACtC,IAGW2B,GAAgB,EAEhBC,EAAgB,CAC3BC,YAAa,CACXC,KAAM,CACJC,WAAYC,EAAQD,WAAWE,IAEjCC,KAAM,CACJC,MAAO,QACPC,OAAQ,GACR,WAAY,CACVC,gBAAiB"}
1
+ {"version":3,"file":"feed.js","sources":["../../src/constants/feed.js"],"sourcesContent":["import palette from '~/config/theme/palette.mjs';\n\nexport const NAME = 'feed';\n\nexport const ADD_NEW_FEED_ITEMS = 'ADD_NEW_FEED_ITEMS';\nexport const DELETE_NEW_FEED_ITEM = 'DELETE_NEW_FEED_ITEM';\nexport const CLEAR_NEW_FEED_ITEMS = 'CLEAR_NEW_FEED_ITEMS';\nexport const ADD_FEED_ITEM_TO_UPDATE_LIST = 'ADD_FEED_ITEM_TO_UPDATE_LIST';\nexport const DELETE_FEED_ITEM_FROM_UPDATE_LIST = 'DELETE_FEED_ITEM_FROM_UPDATE_LIST';\nexport const ADD_FEED_ITEM_TO_DELETE_LIST = 'ADD_FEED_ITEM_TO_DELETE_LIST';\nexport const DELETE_FEED_ITEM_FROM_DELETE_LIST = 'DELETE_FEED_ITEM_FROM_DELETE_LIST';\n\nexport const FEED = {\n SUBSCRIPTIONS: [\n {\n collection: 'feed',\n },\n ],\n};\n\nexport const FEED_ITEM_TYPES = {\n TRACES_MEMO: 'traces_memo',\n POST: 'post',\n DEPTH_COMMENTS: 'depth_comments',\n ALERT: 'alert',\n OPERATIONAL_NOTE: 'operational_note',\n OPERATION_SUMMARY: 'operation_summary',\n DAILY_COST: 'daily_cost',\n DOCUMENT: 'document',\n GENERIC_DATA_COMMENT: 'generic_data_comment',\n FLUID_REPORT: 'fluid_report',\n BHA: 'bha',\n SURVEY_STATION: 'survey_station',\n WELL_PLAN: 'well_plan',\n DRILLER_MEMO: 'driller_memo',\n NPT_EVENT: 'npt_event',\n LESSONS_LEARNED: 'lessons_learned',\n APP_ANNOTATION: 'app_annotation',\n GEOSTEERING_COMMENTS: 'geosteering_comments',\n HOOKLOAD_BROOMSTICK_COMMENT: 'hookload_broomstick_comment',\n DVD_COMMENT: 'dvd_comment',\n PC_COMMENT: 'pc_comment',\n DRILLING_DYSFUNCTION_EVENT: 'drilling_dysfunction_event',\n NPT_LESSONS_COMMENT: 'npt_lessons_comment',\n COMPLETION_OPERATIONAL_NOTE: 'completion_operational_note',\n COMPLETION_OPERATION_SUMMARY: 'completion_operation_summary',\n COMPLETION_DAILY_COST: 'completion_daily_cost',\n COMPLETION_DOCUMENT: 'completion_document',\n COMPLETION_ACTUAL_STAGE: 'completion_actual_stage',\n COMPLETION_NPT_EVENT: 'completion_npt_event',\n TREATMENT_PLOT_COMMENT: 'treatment_plot_comment',\n};\n\nexport const FEED_ITEM_TIME_FORMAT = 'MMM D YYYY, hh:mm A';\n\nexport const FEED_ITEM_CONFIGS = [\n {\n label: 'Post',\n category: 'post',\n type: FEED_ITEM_TYPES.POST,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Alert',\n category: 'post',\n type: FEED_ITEM_TYPES.ALERT,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Operational Note',\n category: 'post',\n type: FEED_ITEM_TYPES.OPERATIONAL_NOTE,\n segment: ['drilling'],\n },\n {\n label: 'Operation Summary',\n category: 'post',\n type: FEED_ITEM_TYPES.OPERATION_SUMMARY,\n segment: ['drilling'],\n },\n {\n label: 'Daily Cost',\n category: 'post',\n type: FEED_ITEM_TYPES.DAILY_COST,\n segment: ['drilling'],\n },\n { label: 'Document', category: 'post', type: FEED_ITEM_TYPES.DOCUMENT, segment: ['drilling'] },\n {\n label: 'Fluid Report',\n category: 'post',\n type: FEED_ITEM_TYPES.FLUID_REPORT,\n segment: ['drilling'],\n },\n { label: 'BHA', category: 'post', type: FEED_ITEM_TYPES.BHA, segment: ['drilling'] },\n {\n label: 'Survey Station',\n category: 'post',\n type: FEED_ITEM_TYPES.SURVEY_STATION,\n segment: ['drilling'],\n },\n // NOTE: Temporarily hidden on prod\n ...(process.env.REACT_APP_ENVIRONMENT !== 'production'\n ? [\n {\n label: 'Well Plan',\n category: 'post',\n type: FEED_ITEM_TYPES.WELL_PLAN,\n segment: ['drilling'],\n },\n ]\n : []),\n {\n label: 'Driller Memo',\n category: 'post',\n type: FEED_ITEM_TYPES.DRILLER_MEMO,\n segment: ['drilling'],\n },\n { label: 'NPT', category: 'post', type: FEED_ITEM_TYPES.NPT_EVENT, segment: ['drilling'] },\n {\n label: 'Lessons Learned',\n category: 'post',\n type: FEED_ITEM_TYPES.LESSONS_LEARNED,\n segment: ['drilling'],\n },\n\n {\n label: 'Operational Note',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_OPERATIONAL_NOTE,\n segment: ['completion'],\n },\n {\n label: 'Operation Summary',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_OPERATION_SUMMARY,\n segment: ['completion'],\n },\n {\n label: 'Daily Cost',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_DAILY_COST,\n segment: ['completion'],\n },\n {\n label: 'Document',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_DOCUMENT,\n segment: ['completion'],\n },\n {\n label: 'Stage Overview',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_ACTUAL_STAGE,\n segment: ['completion'],\n },\n // NOTE: Implement after Mo's explanation\n // { label: 'Stage Predictions', type: '???', segment: ['completion'] },\n {\n label: 'NPT',\n category: 'post',\n type: FEED_ITEM_TYPES.COMPLETION_NPT_EVENT,\n segment: ['completion'],\n },\n\n {\n label: 'App Annotation',\n category: 'post',\n type: FEED_ITEM_TYPES.APP_ANNOTATION,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Traces Memo',\n category: 'post',\n type: FEED_ITEM_TYPES.TRACES_MEMO,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Geosteering Recommendations',\n category: 'post',\n type: FEED_ITEM_TYPES.GEOSTEERING_COMMENTS,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Depth Comments',\n category: 'comment',\n type: FEED_ITEM_TYPES.DEPTH_COMMENTS,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Hookload Point Annotations',\n category: 'comment',\n type: FEED_ITEM_TYPES.HOOKLOAD_BROOMSTICK_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'DvD Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.DVD_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Parameter Comparison',\n category: 'comment',\n type: FEED_ITEM_TYPES.PC_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Drilling Dysfunction',\n category: 'post',\n type: FEED_ITEM_TYPES.DRILLING_DYSFUNCTION_EVENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Npt Lessons Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.NPT_LESSONS_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling'],\n },\n {\n label: 'Generic Data Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.GENERIC_DATA_COMMENT,\n showCreatorToLabel: true,\n segment: ['drilling', 'completion'],\n },\n {\n label: 'Treatment Plot Comment',\n category: 'comment',\n type: FEED_ITEM_TYPES.TREATMENT_PLOT_COMMENT,\n showCreatorToLabel: true,\n segment: ['completion'],\n },\n];\n\nexport const GENERIC_DATA_COMMENTS_VALUES_TYPES = {\n string: 'string',\n number: 'number',\n date: 'date',\n convertable: 'convertable',\n};\n\nexport const FEED_ITEM_TYPES_BY_KEY = FEED_ITEM_CONFIGS.reduce(\n (result, feedItemType) => ({ ...result, [feedItemType.type]: feedItemType }),\n {}\n);\n\nexport const SIDEBAR_FILTERS = {\n RIG_FILTERS: [\n { label: 'All', value: 'all' },\n { label: 'Filter by asset', value: 'filterByAsset' },\n ],\n\n DATE_RANGE_FILTERS: [\n // NOTE: Order matters in handleChangeDateRangeFilter and renderDateRangeFilters\n // { label: 'All', value: 'all' },\n { label: 'Last 24 hours', value: 'last24hours' },\n { label: 'Last 7 days', value: 'last7days' },\n { label: 'Custom', value: 'custom' },\n ],\n\n CONTENT_TYPE_FILTERS: FEED_ITEM_CONFIGS.map(feedItemType => ({\n label: feedItemType.label,\n value: feedItemType.type,\n segment: feedItemType.segment,\n })),\n\n USER_FILTERS: [\n { label: 'All', value: 'all' },\n { label: 'Filter by user', value: 'filterByUser' },\n ],\n};\n\nexport const DEFAULT_CONTENT_TYPES_FILTER = FEED_ITEM_CONFIGS.reduce(\n (result, { type }) => [...result, type],\n []\n);\n\nexport const IS_FEED_SHOWN = true;\n\nexport const MENTION_STYLE = {\n suggestions: {\n list: {\n background: palette.background.b9,\n },\n item: {\n color: 'white',\n height: 30,\n '&focused': {\n backgroundColor: 'rgba(255, 255, 255, 0.08)',\n },\n },\n },\n};\n"],"names":["NAME","ADD_NEW_FEED_ITEMS","DELETE_NEW_FEED_ITEM","CLEAR_NEW_FEED_ITEMS","ADD_FEED_ITEM_TO_UPDATE_LIST","DELETE_FEED_ITEM_FROM_UPDATE_LIST","ADD_FEED_ITEM_TO_DELETE_LIST","DELETE_FEED_ITEM_FROM_DELETE_LIST","FEED","SUBSCRIPTIONS","collection","FEED_ITEM_TYPES","TRACES_MEMO","POST","DEPTH_COMMENTS","ALERT","OPERATIONAL_NOTE","OPERATION_SUMMARY","DAILY_COST","DOCUMENT","GENERIC_DATA_COMMENT","FLUID_REPORT","BHA","SURVEY_STATION","WELL_PLAN","DRILLER_MEMO","NPT_EVENT","LESSONS_LEARNED","APP_ANNOTATION","GEOSTEERING_COMMENTS","HOOKLOAD_BROOMSTICK_COMMENT","DVD_COMMENT","PC_COMMENT","DRILLING_DYSFUNCTION_EVENT","NPT_LESSONS_COMMENT","COMPLETION_OPERATIONAL_NOTE","COMPLETION_OPERATION_SUMMARY","COMPLETION_DAILY_COST","COMPLETION_DOCUMENT","COMPLETION_ACTUAL_STAGE","COMPLETION_NPT_EVENT","TREATMENT_PLOT_COMMENT","FEED_ITEM_TIME_FORMAT","FEED_ITEM_CONFIGS","label","category","type","segment","concat","_toConsumableArray","process","env","REACT_APP_ENVIRONMENT","showCreatorToLabel","GENERIC_DATA_COMMENTS_VALUES_TYPES","string","number","date","convertable","FEED_ITEM_TYPES_BY_KEY","reduce","result","feedItemType","_objectSpread","SIDEBAR_FILTERS","RIG_FILTERS","value","DATE_RANGE_FILTERS","CONTENT_TYPE_FILTERS","map","USER_FILTERS","DEFAULT_CONTENT_TYPES_FILTER","_ref","IS_FEED_SHOWN","MENTION_STYLE","suggestions","list","background","palette","b9","item","color","height","backgroundColor"],"mappings":"0tBAEO,IAAMA,EAAO,OAEPC,EAAqB,qBACrBC,EAAuB,uBACvBC,EAAuB,uBACvBC,EAA+B,+BAC/BC,EAAoC,oCACpCC,EAA+B,+BAC/BC,EAAoC,oCAEpCC,EAAO,CAClBC,cAAe,CACb,CACEC,WAAY,UAKLC,EAAkB,CAC7BC,YAAa,cACbC,KAAM,OACNC,eAAgB,iBAChBC,MAAO,QACPC,iBAAkB,mBAClBC,kBAAmB,oBACnBC,WAAY,aACZC,SAAU,WACVC,qBAAsB,uBACtBC,aAAc,eACdC,IAAK,MACLC,eAAgB,iBAChBC,UAAW,YACXC,aAAc,eACdC,UAAW,YACXC,gBAAiB,kBACjBC,eAAgB,iBAChBC,qBAAsB,uBACtBC,4BAA6B,8BAC7BC,YAAa,cACbC,WAAY,aACZC,2BAA4B,6BAC5BC,oBAAqB,sBACrBC,4BAA6B,8BAC7BC,6BAA8B,+BAC9BC,sBAAuB,wBACvBC,oBAAqB,sBACrBC,wBAAyB,0BACzBC,qBAAsB,uBACtBC,uBAAwB,0BAGbC,EAAwB,sBAExBC,EACX,CAAA,CACEC,MAAO,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pBN,QAAS,CAAC,iBAIDO,EAAqC,CAChDC,OAAQ,SACRC,OAAQ,SACRC,KAAM,OACNC,YAAa,eAGFC,EAAyBhB,EAAkBiB,QACtD,SAACC,EAAQC,GAAY,OAAAC,EAAAA,EAAA,CAAA,EAAWF,GAASC,CAAAA,EAAAA,EAAAA,CAAAA,EAAAA,EAAahB,KAAOgB,GAAY,GACzE,IAGWE,EAAkB,CAC7BC,YAAa,CACX,CAAErB,MAAO,MAAOsB,MAAO,OACvB,CAAEtB,MAAO,kBAAmBsB,MAAO,kBAGrCC,mBAAoB,CAGlB,CAAEvB,MAAO,gBAAiBsB,MAAO,eACjC,CAAEtB,MAAO,cAAesB,MAAO,aAC/B,CAAEtB,MAAO,SAAUsB,MAAO,WAG5BE,qBAAsBzB,EAAkB0B,KAAI,SAAAP,GAAY,MAAK,CAC3DlB,MAAOkB,EAAalB,MACpBsB,MAAOJ,EAAahB,KACpBC,QAASe,EAAaf,QACvB,IAEDuB,aAAc,CACZ,CAAE1B,MAAO,MAAOsB,MAAO,OACvB,CAAEtB,MAAO,iBAAkBsB,MAAO,kBAIzBK,EAA+B5B,EAAkBiB,QAC5D,SAACC,EAAMW,GAAA,IAAI1B,IAAAA,KAAI,MAAWe,GAAAA,OAAAA,EAAAA,IAAQf,GAAI,GACtC,IAGW2B,GAAgB,EAEhBC,EAAgB,CAC3BC,YAAa,CACXC,KAAM,CACJC,WAAYC,EAAQD,WAAWE,IAEjCC,KAAM,CACJC,MAAO,QACPC,OAAQ,GACR,WAAY,CACVC,gBAAiB"}
@@ -249,7 +249,7 @@ const validateDsn = dsn => {
249
249
 
250
250
  const MCP_SERVER_VERSION = '1.10.0';
251
251
 
252
- var version = "3.84.0-1";
252
+ var version = "3.84.0-3";
253
253
 
254
254
  const CORVA_UI_VERSION = version;
255
255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "3.84.0-1",
3
+ "version": "3.84.0-3",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Shared components/utils for Corva ui projects",
6
6
  "repository": {