@corva/ui 0.52.0-12 → 0.52.0-14

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 (81) hide show
  1. package/components/Chip/index.d.ts +1 -0
  2. package/components/Chip/index.d.ts.map +1 -1
  3. package/components/Comment/CommentIcon/index.d.ts +1 -0
  4. package/components/Comment/CommentIcon/index.d.ts.map +1 -1
  5. package/components/Counter/index.d.ts +1 -0
  6. package/components/Counter/index.d.ts.map +1 -1
  7. package/components/DatePicker/index.d.ts +1 -0
  8. package/components/DatePicker/index.d.ts.map +1 -1
  9. package/components/DateTimePicker/index.d.ts +1 -0
  10. package/components/DateTimePicker/index.d.ts.map +1 -1
  11. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +1 -0
  12. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  13. package/components/DevCenter/AppSideBar/AppSideBar.d.ts +1 -0
  14. package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +1 -1
  15. package/components/EditableItem/EditableItem/index.d.ts +1 -0
  16. package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
  17. package/components/FilesLoader/FilesLoader.d.ts +1 -0
  18. package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
  19. package/components/IconButton/index.d.ts +1 -0
  20. package/components/IconButton/index.d.ts.map +1 -1
  21. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +1 -0
  22. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
  23. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +1 -0
  24. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
  25. package/components/LoadingIndicator/Loader.d.ts +1 -0
  26. package/components/LoadingIndicator/Loader.d.ts.map +1 -1
  27. package/components/LoadingIndicator/LoadingIndicator.d.ts +1 -0
  28. package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  29. package/components/Modal/CorvaModal.d.ts +1 -0
  30. package/components/Modal/CorvaModal.d.ts.map +1 -1
  31. package/components/Modal/DcCorvaModal.d.ts +1 -0
  32. package/components/Modal/DcCorvaModal.d.ts.map +1 -1
  33. package/components/Modal/Modal.d.ts +1 -0
  34. package/components/Modal/Modal.d.ts.map +1 -1
  35. package/components/OffsetWellButton/OffsetWellButton.d.ts +5 -1
  36. package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
  37. package/components/OffsetWellButton/OffsetWellButton.js +1 -1
  38. package/components/OffsetWellChips/Chip.d.ts +1 -0
  39. package/components/OffsetWellChips/Chip.d.ts.map +1 -1
  40. package/components/OffsetWellChips/ChipsContainer.d.ts +1 -0
  41. package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
  42. package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
  43. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  44. package/components/OffsetWellPickerV4/OffsetWellPickerV4.module.css.js +1 -1
  45. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts +1 -5
  46. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.d.ts.map +1 -1
  47. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js +1 -1
  48. package/components/OffsetWellPickerV4/components/AppHeader/AppHeader.module.css.js +1 -1
  49. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.d.ts +3 -1
  50. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  51. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.d.ts +3 -1
  52. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.js +1 -1
  53. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableRow.module.css.js +1 -1
  54. package/components/OffsetWellPickerV4/constants.d.ts +1 -1
  55. package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
  56. package/components/OffsetWellPickerV4/constants.js +1 -1
  57. package/components/RangeSlider/RangeSlider.d.ts +1 -0
  58. package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  59. package/components/ResizableTable/ResizableTable.d.ts +1 -0
  60. package/components/ResizableTable/ResizableTable.d.ts.map +1 -1
  61. package/components/ResizableTable/ResizableTableCell.d.ts +1 -0
  62. package/components/ResizableTable/ResizableTableCell.d.ts.map +1 -1
  63. package/components/ResizableTable/ResizableTableHeaderCell.d.ts +1 -0
  64. package/components/ResizableTable/ResizableTableHeaderCell.d.ts.map +1 -1
  65. package/components/Search/Search.d.ts +1 -0
  66. package/components/Search/Search.d.ts.map +1 -1
  67. package/components/Select/index.d.ts +1 -0
  68. package/components/Select/index.d.ts.map +1 -1
  69. package/components/SettingEditors/RadioEditor/index.d.ts +1 -0
  70. package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
  71. package/components/Stepper/Step.d.ts +1 -0
  72. package/components/Stepper/Step.d.ts.map +1 -1
  73. package/components/Stepper/Stepper.d.ts +1 -0
  74. package/components/Stepper/Stepper.d.ts.map +1 -1
  75. package/components/Stepper/StepsWrapper.d.ts +1 -0
  76. package/components/Stepper/StepsWrapper.d.ts.map +1 -1
  77. package/components/TextLink/index.d.ts +1 -0
  78. package/components/TextLink/index.d.ts.map +1 -1
  79. package/package.json +3 -3
  80. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.js +0 -1
  81. package/components/OffsetWellPickerV4/components/CustomInfoIcon/CustomInfoIcon.module.css.js +0 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChipProps as MuiChipProps } from '@material-ui/core';
2
3
  import PropTypes from 'prop-types';
3
4
  interface ChipProps extends MuiChipProps, PropTypes.InferProps<typeof chipPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,SAAS,MAAM,YAAY,CAAC;AAuDnC,UAAU,SAAU,SAAQ,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AAEvF,QAAA,MAAM,IAAI;YAAW,SAAS,GAAG,WAAW;;;;;;;;;CAkB3C,CAAC;AAEF,QAAA,MAAM,aAAa;;;CAGlB,CAAC;AASF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA+B,SAAS,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,SAAS,MAAM,YAAY,CAAC;AAuDnC,UAAU,SAAU,SAAQ,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AAEvF,QAAA,MAAM,IAAI;YAAW,SAAS,GAAG,WAAW;;;;;;;;;CAkB3C,CAAC;AAEF,QAAA,MAAM,aAAa;;;CAGlB,CAAC;AASF,eAAe,IAAI,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface CommentIconProps extends PropTypes.InferProps<typeof commentIconProps> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Comment/CommentIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoCnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEnF,QAAA,MAAM,WAAW;oCAAmC,gBAAgB,GAAG,WAAW;;;;;;;;;;;CAYjF,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;CAIrB,CAAC;AAUF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Comment/CommentIcon/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoCnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAEnF,QAAA,MAAM,WAAW;oCAAmC,gBAAgB,GAAG,WAAW;;;;;;;;;;;CAYjF,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;CAIrB,CAAC;AAUF,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { ChipProps as MuiChipProps } from '@material-ui/core';
3
4
  interface CounterProps extends Omit<MuiChipProps, 'classes' | 'size' | 'label'>, PropTypes.InferProps<typeof counterPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAmB,SAAS,IAAI,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAkGpG,UAAU,YAAa,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAC5H,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,OAAO;YAAW,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;CASrB,CAAC;AAYF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAmB,SAAS,IAAI,YAAY,EAAuB,MAAM,mBAAmB,CAAC;AAkGpG,UAAU,YAAa,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;IAC5H,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAED,QAAA,MAAM,OAAO;YAAW,YAAY,GAAG,WAAW;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;CASrB,CAAC;AAYF,eAAe,OAAO,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { KeyboardDatePickerProps } from '@material-ui/pickers';
3
4
  interface DatePickerProps extends KeyboardDatePickerProps {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AA6BnF,UAAU,eAAgB,SAAQ,uBAAuB;IACvD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,UAAU;iDAAgD,eAAe,GAAG,WAAW;;;;;;;;;;;CAmB5F,CAAA;AAcD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAsB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AA6BnF,UAAU,eAAgB,SAAQ,uBAAuB;IACvD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,UAAU;iDAAgD,eAAe,GAAG,WAAW;;;;;;;;;;;CAmB5F,CAAA;AAcD,eAAe,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { KeyboardDateTimePickerProps } from '@material-ui/pickers';
3
4
  declare function DateTimePicker({ className, PopoverProps, format, ...otherProps }: KeyboardDateTimePickerProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAA0B,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AA4B3F,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CAepH;kBAfQ,cAAc;;;;;;;;;;;;;;AA+BvB,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateTimePicker/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAA0B,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AA4B3F,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,EAAE,2BAA2B,GAAG,GAAG,CAAC,OAAO,CAepH;kBAfQ,cAAc;;;;;;;;;;;;;;AA+BvB,eAAe,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { PopoverProps } from '@material-ui/core';
3
4
  interface AppSettingsPopoverProps extends PopoverProps, PropTypes.InferProps<typeof appSettingsPopoverPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAyD7D,UAAU,uBACR,SAAQ,YAAY,EAClB,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwEvC;kBAhFQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;AAkF3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;CAShC,CAAC;AAWF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"AppSettingsPopover.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSettingsPopover/AppSettingsPopover.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAc,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAyD7D,UAAU,uBACR,SAAQ,YAAY,EAClB,SAAS,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC;CAAG;AAE/D,iBAAS,kBAAkB,CAAC,EAC1B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,GAAG,YAAY,EAChB,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwEvC;kBAhFQ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;AAkF3B,QAAA,MAAM,2BAA2B;;;;;;;;;;;CAShC,CAAC;AAWF,eAAe,kBAAkB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  declare type Anchor = 'left' | 'right';
3
4
  interface AppSideBarProps extends PropTypes.InferProps<typeof appSideBarPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoBnC,aAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/B,UAAU,eAAgB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChF,MAAM,EAAE,MAAM,CAAC;CAChB;AAmHD,QAAA,MAAM,UAAU;gPAgBb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAqBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"AppSideBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/AppSideBar/AppSideBar.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAoBnC,aAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE/B,UAAU,eAAgB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChF,MAAM,EAAE,MAAM,CAAC;CAChB;AAmHD,QAAA,MAAM,UAAU;gPAgBb,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+F/B,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBxB,CAAC;AAqBF,eAAe,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  declare type EditableItemProps = PropTypes.InferProps<typeof editableItemPropTypes>;
3
4
  declare const EditableItem: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EditableItem/EditableItem/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAsGnC,aAAK,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E,QAAA,MAAM,YAAY;2HASf,iBAAiB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAkIjC,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;CAS1B,CAAC;AAaF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/EditableItem/EditableItem/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAsGnC,aAAK,iBAAiB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE5E,QAAA,MAAM,YAAY;2HASf,iBAAiB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAkIjC,CAAC;AAEF,QAAA,MAAM,qBAAqB;;;;;;;;;CAS1B,CAAC;AAaF,eAAe,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface FilesLoaderProps extends PropTypes.InferProps<typeof filesLoaderPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6CnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAOvF,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAqMhC;kBAnNQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqNpB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;CAczB,CAAA;AAkBD,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6CnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAOvF,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAqMhC;kBAnNQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqNpB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;CAczB,CAAA;AAkBD,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { IconButtonProps as MuiIconButtonProps } from '@material-ui/core';
3
4
  interface IconButtonProps extends Omit<MuiIconButtonProps, 'size' | 'variant' | 'classes'>, PropTypes.InferProps<typeof iconButtonPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAkE,eAAe,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiE1I,UAAU,eAAgB,SACxB,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EACxD,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED,QAAA,MAAM,UAAU;gDAAsE,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClH,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;CAaxB,CAAC;AAaF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAkE,eAAe,IAAI,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAiE1I,UAAU,eAAgB,SACxB,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,EACxD,SAAS,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC;IAChD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED,QAAA,MAAM,UAAU;gDAAsE,eAAe,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClH,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;CAaxB,CAAC;AAaF,eAAe,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FullScreenLoadingIndicatorProps } from "./types";
2
3
  declare const FullScreenLoadingIndicator: {
3
4
  (props: FullScreenLoadingIndicatorProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/FullScreenLoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG3F,QAAA,MAAM,0BAA0B;YAAW,+BAA+B,GAAG,WAAW;;;;;;;;;;;CAYvF,CAAC;AAUF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"FullScreenLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/FullScreenLoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAmC,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG3F,QAAA,MAAM,0BAA0B;YAAW,+BAA+B,GAAG,WAAW;;;;;;;;;;;CAYvF,CAAC;AAUF,eAAe,0BAA0B,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InlineLoadingIndicatorProps } from "./types";
2
3
  declare const InlineLoadingIndicator: {
3
4
  (props: InlineLoadingIndicatorProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"InlineLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/InlineLoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGvF,QAAA,MAAM,sBAAsB;YAAW,2BAA2B,GAAG,WAAW;;;;;;;;;;;CAQ/E,CAAC;AAUF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"InlineLoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/InlineLoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAmC,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAGvF,QAAA,MAAM,sBAAsB;YAAW,2BAA2B,GAAG,WAAW;;;;;;;;;;;CAQ/E,CAAC;AAUF,eAAe,sBAAsB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoaderProps } from "./types";
2
3
  export declare const LOADER_HREF = "https://cdn.corva.ai/app/images/corva-loading-icon.gif";
3
4
  export declare const LOADER_DEFAULT_SIZE = 80;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,WAAW,2DAA2D,CAAC;AACpF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,WAAW,2DAA2D,CAAC;AACpF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,QAAA,MAAM,MAAM;YAAW,WAAW,GAAG,WAAW;;;;;;;;;CAY/C,CAAC;AASF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LoadingIndicatorProps } from "./types";
2
3
  declare const LoadingIndicator: {
3
4
  ({ fullscreen, ...props }: LoadingIndicatorProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,QAAA,MAAM,gBAAgB;+BAA8B,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;CACS,CAAC;AAcjG,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":";AAEA,OAAO,EAA6B,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAI3E,QAAA,MAAM,gBAAgB;+BAA8B,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;CACS,CAAC;AAcjG,eAAe,gBAAgB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ModalProps } from "~/components/Modal/types";
2
3
  export declare function CorvaModal({ title, children, actions, open, isCloseIconHidden, onClose, isNative, isMobile, stickyFooter, contentContainerClassName, contentClassName, stickyFooterClassName, modalTitleClassName, size, type, rootClassName, actionsClassName, ...otherProps }: ModalProps): JSX.Element;
3
4
  export declare namespace CorvaModal {
@@ -1 +1 @@
1
- {"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAkB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AA4DtE,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAiG1B;yBApHe,UAAU"}
1
+ {"version":3,"file":"CorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/CorvaModal.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAkB,UAAU,EAAE,MAAM,0BAA0B,CAAC;AA4DtE,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,yBAAyB,EACzB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,GAAG,UAAU,EACd,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAiG1B;yBApHe,UAAU"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ModalProps } from './types';
2
3
  export declare function DcCorvaModal({ open: openProp, ...otherProps }: ModalProps): JSX.Element;
3
4
  //# sourceMappingURL=DcCorvaModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DcCorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/DcCorvaModal.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAQvF"}
1
+ {"version":3,"file":"DcCorvaModal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/DcCorvaModal.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAQvF"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ModalProps } from './types';
2
3
  export default function Modal(props: ModalProps): JSX.Element;
3
4
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAO5D"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAO5D"}
@@ -1,7 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  declare type OffsetWellButtonProps = PropTypes.InferProps<typeof offsetWellButtonPropTypes>;
3
4
  declare const OffsetWellButton: {
4
- ({ onClick, wells, disabled, expanded, onExpand }: OffsetWellButtonProps): JSX.Element;
5
+ ({ onClick, wells, disabled, expanded, onExpand, offsetWellsLimited, }: OffsetWellButtonProps): JSX.Element;
5
6
  propTypes: {
6
7
  onClick: PropTypes.Validator<(...args: any[]) => any>;
7
8
  wells: PropTypes.Requireable<PropTypes.InferProps<{
@@ -11,12 +12,14 @@ declare const OffsetWellButton: {
11
12
  disabled: PropTypes.Requireable<boolean>;
12
13
  onExpand: PropTypes.Requireable<(...args: any[]) => any>;
13
14
  expanded: PropTypes.Requireable<boolean>;
15
+ offsetWellsLimited: PropTypes.Requireable<boolean>;
14
16
  };
15
17
  defaultProps: {
16
18
  onExpand: any;
17
19
  expanded: boolean;
18
20
  wells: any[];
19
21
  disabled: boolean;
22
+ offsetWellsLimited: boolean;
20
23
  };
21
24
  };
22
25
  declare const offsetWellButtonPropTypes: {
@@ -28,6 +31,7 @@ declare const offsetWellButtonPropTypes: {
28
31
  disabled: PropTypes.Requireable<boolean>;
29
32
  onExpand: PropTypes.Requireable<(...args: any[]) => any>;
30
33
  expanded: PropTypes.Requireable<boolean>;
34
+ offsetWellsLimited: PropTypes.Requireable<boolean>;
31
35
  };
32
36
  export default OffsetWellButton;
33
37
  //# sourceMappingURL=OffsetWellButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA+CnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;uDAAsD,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;CAoE9G,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;CAW9B,CAAC;AAWF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"OffsetWellButton.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellButton/OffsetWellButton.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyDnC,aAAK,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEpF,QAAA,MAAM,gBAAgB;4EAOnB,qBAAqB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CA4ErC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;;;;;;;CAY9B,CAAC;AAYF,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import n from"prop-types";import i from"classnames";import{makeStyles as a,Typography as l,Tooltip as s}from"@material-ui/core";import{Edit as d,ExpandLess as c,ExpandMore as p}from"@material-ui/icons";import f from"../IconButton/index.js";var m=a((function(e){var o=e.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:o.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:o.primary.contrastText}},buttons:{display:"flex"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}}}})),u=function(n){var a=n.onClick,u=n.wells,x=n.disabled,b=n.expanded,h=n.onExpand,v=r(!1),g=v[0],y=v[1],C=m(),w=u.length,k=!(!w||!h),E=o("div",e({className:i(C.offsetContainer,x&&C.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?y(!1):y(!0)},onMouseLeave:function(){y(!1)}},{children:[o(l,e({className:i(C.offsetText,g&&C.isActive)},{children:["Offset Wells (",w,")"]})),t(f,e({className:i(C.primaryIcon,g&&C.hoveredContainer),color:"primary",size:"medium"},{children:t(d,{})}))]}));return o("div",e({className:C.buttons},{children:[t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:E})),k&&t(f,e({tooltipProps:{title:b?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),h()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(b?c:p,{"data-icon":"expandIcon"})}))]}))},x={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),disabled:n.bool,onExpand:n.func,expanded:n.bool};u.propTypes=x,u.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1};export{u as default};
1
+ import{__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as o,jsx as t}from"react/jsx-runtime";import{useState as i}from"react";import n from"prop-types";import r from"classnames";import{makeStyles as a,Typography as l,Tooltip as s}from"@material-ui/core";import{Edit as c,Info as d,ExpandLess as p,ExpandMore as f}from"@material-ui/icons";import m from"../IconButton/index.js";var u=a((function(e){var o=e.palette;return{disabled:{opacity:.4,pointerEvents:"none"},offsetContainer:{cursor:"pointer",display:"flex",whiteSpace:"nowrap",flexWrap:"nowrap",alignItems:"center",width:"fit-content"},hoveredContainer:{backgroundColor:"rgba(3, 188, 212, 0.16)"},offsetText:{color:o.primary.text6,fontSize:12,paddingRight:4,"&:hover":{color:o.primary.contrastText}},buttons:{display:"flex",alignItems:"center"},isActive:{color:o.primary.contrastText},primaryIcon:{"&:hover":{backgroundColor:"rgba(3, 188, 212, 0.16)"}},infoIcon:{marginRight:"8px",fontSize:"20px",color:o.info.light},infoTooltip:{maxWidth:"264px"}}})),x=function(n){var a=n.onClick,x=n.wells,h=n.disabled,b=n.expanded,g=n.onExpand,v=n.offsetWellsLimited,y=i(!1),C=y[0],w=y[1],I=u(),W=x.length,T=!(!W||!g),k=o("div",e({className:r(I.offsetContainer,h&&I.disabled),onClick:a,onMouseMove:function(e){var o=e.target,t=o.parentNode;o.getAttribute("data-icon")||t.getAttribute("data-icon")?w(!1):w(!0)},onMouseLeave:function(){w(!1)}},{children:[o(l,e({className:r(I.offsetText,C&&I.isActive)},{children:["Offset Wells (",W,")"]})),t(m,e({className:r(I.primaryIcon,C&&I.hoveredContainer),color:"primary",size:"medium"},{children:t(c,{})}))]}));return o("div",e({className:I.buttons},{children:[v&&t(s,e({title:"Offset wells list wasn't populated completely due to technical limitations of the app.",classes:{tooltip:I.infoTooltip}},{children:t(d,{className:I.infoIcon})})),t(s,e({title:"Edit Offset Wells",placement:"bottom"},{children:k})),T&&t(m,e({tooltipProps:{title:b?"Collapse Offset Wells":"Expand Offset Wells"},onClick:function(e){e.stopPropagation(),g()},color:"default",size:"medium","data-icon":"expandIcon"},{children:t(b?p:f,{"data-icon":"expandIcon"})}))]}))},h={onClick:n.func.isRequired,wells:n.arrayOf(n.shape({id:n.number,title:n.string})),disabled:n.bool,onExpand:n.func,expanded:n.bool,offsetWellsLimited:n.bool};x.propTypes=h,x.defaultProps={onExpand:null,expanded:!1,wells:[],disabled:!1,offsetWellsLimited:!1};export{x as default};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChipProps } from './types';
2
3
  declare const OffsetWellChip: {
3
4
  ({ title, onClick, markColor, isSubject, rigName, maxWidth }: ChipProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":"AAGA,OAAO,EAA2B,SAAS,EAAE,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,cAAc;kEAAiE,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;CA2C3G,CAAC;AAWF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/Chip.tsx"],"names":[],"mappings":";AAGA,OAAO,EAA2B,SAAS,EAAE,MAAM,SAAS,CAAC;AAwC7D,QAAA,MAAM,cAAc;kEAAiE,SAAS,GAAG,WAAW;;;;;;;;;;;;;;;;CA2C3G,CAAC;AAWF,eAAe,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { ChipsContainerProps } from "./types";
3
4
  declare const OffsetWellChips: {
@@ -1 +1 @@
1
- {"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,QAAA,MAAM,eAAe;0BAAyB,mBAAmB,GAAG,WAAW;;;;;;;;;;CAiB9E,CAAC;AAcF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ChipsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellChips/ChipsContainer.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAU9C,QAAA,MAAM,eAAe;0BAAyB,mBAAmB,GAAG,WAAW;;;;;;;;;;CAiB9E,CAAC;AAcF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellPickerV4.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/OffsetWellPickerV4.js"],"names":[],"mappings":";AA+CA;;;;;;;;;;;;gBAkkBC"}
1
+ {"version":3,"file":"OffsetWellPickerV4.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/OffsetWellPickerV4.js"],"names":[],"mappings":";AA+CA;;;;;;;;;;;;gBA0kBC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{useState as i,useRef as r,useMemo as n,useEffect as s,useCallback as l}from"react";import a from"prop-types";import p from"classnames";import{uniqBy as m,sortBy as c,isEmpty as d,isEqual as u}from"lodash";import{Replay as f,InfoOutlined as j}from"@material-ui/icons";import C from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../ImagesGrid/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{jsx as b,jsxs as v,Fragment as h}from"react/jsx-runtime";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../DevCenter/AppContext.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import g from"../LoadingIndicator/LoadingIndicator.js";import{Regular12 as A}from"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";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/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import y from"../Button/index.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"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.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"../OffsetWellMap/OffsetWellMap.js";import"../Notifications/Notifications.js";import"uuid";import"../Toaster/Toaster.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../MenuItem/index.js";import"../PadModeSelect/PadModeSelect.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"@material-ui/core";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import{Tooltip as D}from"../Tooltip/Tooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../FilesLoader/Icons/FileIcon.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"../HelpCenter/HelpCenterIcon.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.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/InputAdornmentLeft.js";import"../Search/components/Groups.js";import S from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import{isMobileDetected as I,isNativeDetected as x}from"../../utils/mobileDetect.js";import{useFetchWells as W}from"./effects/useFetchWells.js";import{useAdvancedWells as T}from"./effects/useAdvancedWells.js";import{useBicWells as P}from"./effects/useBicWells.js";import{useCompanyMetricKey as O}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as w}from"./effects/useFilterOptions.js";import{useFilteredWells as E}from"./effects/useFilteredWells.js";import{useSortedWells as B}from"./effects/useSortedWells.js";import{useRadiusWells as M}from"./effects/useRadiusWells.js";import"./effects/useAssetsData.js";import{useTableColumns as H}from"./effects/useTableColumns.js";import{AppHeader as F}from"./components/AppHeader/AppHeader.js";import{Toolbar as L}from"./components/Toolbar/Toolbar.js";import{Filter as V}from"./components/Filter/Filter.js";import{WellsMap as k}from"./components/Map/WellsMap.js";import N from"./components/OffsetWellsTable/OffsetWellsTable.js";import R from"./OffsetWellPickerV4.module.css.js";import{ALL_SECTION_KEY as U,ViewType as z,ColumnType as _,FilterType as K,ROWS_PER_PAGE as G,LEAVE_TOUCH_DELAY as q,IOS_DEVICE as Z,DEFAULT_BIC_OFFSET_SIZE as J,DEFAULT_LOCAL_OFFSET_SIZE as Q,MAX_OFFSET_SIZE as X,SMALL_SCREEN_WIDTH as Y,SMALL_SCREEN_HEIGHT as $}from"./constants.js";import{SEARCH_CATEGORIES as ee}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{CustomInfoIcon as te}from"./components/CustomInfoIcon/CustomInfoIcon.js";import{getMobileOperatingSystem as oe}from"./utils/index.js";function ie(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function re(e){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?ie(Object(i),!0).forEach((function(o){t(e,o,i[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ie(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var ne="OffsetWellPickerV4",se=function(a){var J,Q,ie,se=a.open,le=a.isWDUser,ae=a.defaultSubjectWell,pe=a.currentUser,me=a.offsetSettings,ce=a.addWellsUsabilityInfo,de=a.isViewOnly,ue=a.onClose,fe=a.onSave,je=a.maxOffsetSize,Ce=a.localMaxOffsetSize,be=i(null),ve=o(be,2),he=ve[0],ge=ve[1],Ae=Math.min(je+1,Ce+1,X),ye=Math.min(Math.max(Ae,Ce+1),X),De=i(null==me?void 0:me.filterExpanded),Se=o(De,2),Ie=Se[0],xe=Se[1],We=i(null==me?void 0:me.mapHidden),Te=o(We,2),Pe=Te[0],Oe=Te[1],we=+(null==ae?void 0:ae.companyId)||+(null==pe?void 0:pe.company_id),Ee=null==ae?void 0:ae.asset_id,Be=i((null==me?void 0:me.filters)||{}),Me=o(Be,2),He=Me[0],Fe=Me[1],Le=i((null==me?void 0:me.wellSection)||U),Ve=o(Le,2),ke=Ve[0],Ne=Ve[1],Re=r(!0),Ue=i([]),ze=o(Ue,2),_e=ze[0],Ke=ze[1],Ge=i(null),qe=o(Ge,2),Ze=qe[0],Je=qe[1],Qe=i(!0),Xe=o(Qe,2),Ye=Xe[0],$e=Xe[1],et=i(!1),tt=o(et,2),ot=tt[0],it=tt[1],rt=i(!1),nt=o(rt,2),st=nt[0],lt=nt[1],at=r(),pt=i(z.none),mt=o(pt,2),ct=mt[0],dt=mt[1],ut=i(!1),ft=o(ut,2),jt=ft[0],Ct=ft[1],bt=n((function(){return ye<=_e.length}),[_e,ye]),vt=n((function(){return ct===z.small?0:ct===z.mobile?52:48}),[bt,ct]);s((function(){function e(){window.innerWidth<=Y||I||x?dt(z.mobile):window.innerHeight<=$?dt(z.small):dt(z.normal)}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[se]),s((function(){Re.current=!0}),[Ee,null==me?void 0:me.selectedWellIds]),s((function(){ct===z.small||ct===z.mobile?(Oe(!0),xe(!1)):(xe(!de&&(null==me?void 0:me.filterExpanded)),Oe(!de&&(null==me?void 0:me.mapHidden))),Fe((null==me?void 0:me.filters)||{}),Ne((null==me?void 0:me.wellSection)||U)}),[me,de,ct]);var ht=W(we,ce),gt=P(le,Ee,ht),At=o(gt,2),yt=At[0],Dt=At[1],St=O(we,null==me?void 0:me.metricsKeys),It=o(St,2),xt=It[0],Wt=It[1],Tt=T(we,ht,yt,Dt,Ee),Pt=w(Tt);s((function(){if(Tt&&yt){var e=Tt.find((function(e){return e.id===Ee}));if(e){var o=yt.filter((function(e){return e.value!==U})).map((function(e){return e.label})),i=re(re({},e),o.length>0&&t({},_.wellSection,o));Je(i)}else Je(null)}}),[yt,Tt]);var Ot=H(xt),wt=E(Tt,He);s((function(){if(wt)if(Re.current){var e=Tt.filter((function(e){return((null==me?void 0:me.selectedWellIds)||[]).includes(e.id)}));Ze&&(e=e.concat(Ze)),Ke(m(e,"id")),Re.current=!1}else Ke((function(e){var t=(wt||[]).filter((function(t){return!!e.find((function(e){var o=e.id;return t.id===o}))}));return Ze&&(t=t.concat(Ze)),m(t,"id")}))}),[Tt,wt,null==me?void 0:me.selectedWellIds]);var Et=B(Ze,wt,_e,$e,Re.current),Bt=o(Et,5),Mt=Bt[0],Ht=Bt[1],Ft=Bt[2],Lt=Bt[3],Vt=Bt[4];M(He[K.radius],wt,Ke,ye);var kt=l((function(e,t,o){var i;i=o===ee.well.name?t:t.reduce((function(e,t){var o,i=null===(o=Tt.find((function(e){return e.id===t})))||void 0===o?void 0:o.rigName,r=Tt.filter((function(e){return e.rigName===i})).map((function(e){return e.id}));return e.concat(r)}),[]);var r=Tt.filter((function(e){var t=e.id;return i.includes(t)}));e?(r=r.slice(0,Math.min(r.length,ye-_e.length)),Ke((function(e){return m(e.concat(r),"id")}))):Ke((function(e){return m(e.filter((function(e){var t=e.id;return!r.find((function(e){return e.id===t}))})))}))}),[Tt,_e]),Nt=l((function(){lt(!0)}),[]),Rt=l((function(e){Wt(e)}),[]),Ut=l((function(t,o){Ke(o?function(o){return[].concat(e(o),[t])}:function(e){return e.filter((function(e){return e.id!==t.id}))})}),[]),zt=l((function(e){if(e){var t=Ze?wt.concat(Ze):wt,o=c(m(t,"id"),"distance");Ke(o.slice(0,ye))}else Ke(Ze?[Ze]:[])}),[wt,Ze,ye]),_t=function(e){if(d(Dt))Ke(Ze?[Ze]:[]);else{var t=Tt.filter((function(t){return Dt[e].includes(t.id)})),o=c(t,"distance");Ke(o.slice(0,Ae))}},Kt=l((function(e){Ne(e),_t(e)}),[_t]),Gt=n((function(){return _e.find((function(e){return e.id===Ee}))?_e.length-1:_e.length}),[_e,Ee]),qt=n((function(){if(!Dt)return!1;var e=_e.map((function(e){return e.id})),t=Dt[ke]||[];return Math.min(t.length,Ae)===e.length&&e.every((function(e){return t.includes(e)}))}),[Dt,_e,ke,Ae]),Zt=function(){var e=(Tt||[]).filter((function(e){return((null==me?void 0:me.selectedWellIds)||[]).includes(e.id)}));Ze&&(e=e.concat(Ze)),Ke(m(e,"id")),u(He,me.filters)||(Re.current=!0);var t=re(re({},me),{},{mapHidden:Pe,filterExpanded:Ie});fe(t),Fe((null==me?void 0:me.filters)||{}),Ne((null==me?void 0:me.wellSection)||U),ue()},Jt=n((function(){return!qt||(!(d(He)||!He[K.sideTracks])||ke!==U)}),[qt,He,ke]),Qt=!Tt||!yt||!Vt||ct===z.none,Xt=i(!1),Yt=o(Xt,2),$t=Yt[0],eo=Yt[1],to=i(G),oo=o(to,2),io=oo[0],ro=oo[1],no=i([]),so=o(no,2),lo=so[0],ao=so[1];s((function(){if(Vt){var e=Vt.slice(0,io);ao(e)}}),[Vt,io,Ze]);return b(C,{open:se,onClose:Zt,title:b(F,{isWDUser:le,viewType:ct,totalCount:null!==(J=null==Tt?void 0:Tt.length)&&void 0!==J?J:0,selectedCount:Gt,isViewOnly:de,maxOffsetwellNumber:ye}),isMobile:ct===z.mobile,contentContainerClassName:p(R.offsetWellDialog,t({},R.offsetWellDialogMobile,ct===z.mobile)),contentClassName:p(R.contentContainer,(Q={},t(Q,R.smallContainer,ct===z.small),t(Q,R.contentContainerMobile,ct===z.mobile),Q)),actionsClassName:p(R.modalActions,t({},R.modalActionsMobile,ct===z.mobile)),actions:!de&&v("div",{className:R.actionsWrapper,children:[!Qt&&Jt?b(D,{placement:"bottom-start",title:"Reset to Synced Offsets in ".concat(le?"Offset App":"Wellhub"),children:b("div",{children:b(y,{"data-testid":"".concat(ne,"_reset"),onClick:function(){Fe({}),Ne(U),_t(U)},color:"primary",startIcon:ct!==z.mobile&&b(f,{}),classes:ct===z.mobile&&{root:R.resetButtonMobile},children:ct!==z.mobile?"Reset":b(f,{})})})}):b("div",{className:ct===z.mobile&&R.infoIconContainer,children:ct!==z.mobile?v(h,{children:[b("span",{className:p(S.regular12,S.colors.t6),children:"The offset list is being automatically populated by "}),b("span",{className:p(S.medium12,S.colors.t6),children:le?"Offset Selection App.":"WellHub."})]}):b(D,{title:v("div",{children:[b("span",{className:p(S.regular12,S.colors.t1),children:"The offset list is being automatically populated by "}),b("span",{className:p(S.medium12,S.colors.t1),children:le?"Offset Selection App.":"WellHub."})]}),enterTouchDelay:0,leaveTouchDelay:q,children:b(j,{className:R.infoIcon})})}),v("div",{className:R.buttonGap,children:[b(y,{"data-testid":"".concat(ne,"_cancel"),onClick:Zt,color:"primary",children:"Cancel"}),v(y,{"data-testid":"".concat(ne,"_selectedWells"),variant:"contained",color:"primary",onClick:function(){ue();var e=re(re({},me),{},{companyId:we,subjectWellId:Ee,selectedWellIds:_e.map((function(e){return e.id})),filters:He,metricsKeys:xt,wellSection:ke,isSynced:qt,mapHidden:Pe,filterExpanded:Ie});fe(e,_e)},children:["Select (",Gt,")"]})]})]}),children:Qt?b(g,{fullscreen:!1}):v("div",{className:p(R.contentWrapper),ref:at,children:[ct===z.mobile&&v("div",{className:p(R.countContainer,t({},R.countContainerMobile,ct===z.mobile)),children:[b(A,{className:R.totalLabel,children:"Total:"}),b(A,{"data-testid":"".concat(ne,"_totalWells"),className:R.countValue,children:Tt.length}),b(A,{className:R.selectedLabel,children:"Selected:"}),b(A,{"data-testid":"".concat(ne,"_selected"),className:R.countValue,children:Gt}),ct===z.mobile&&(de||bt)&&b(te,{isWDUser:le,isViewOnly:de,maxOffsetwellNumber:ye,selectedCount:Gt,viewType:ct})]}),ct===z.normal&&b(L,{isViewOnly:de,viewType:ct,filters:He,setFilters:Fe,isFilterExpanded:Ie,setIsFilterExpanded:xe,isMapHidden:Pe,setIsMapHidden:Oe}),jt&&b("div",{className:R.topGradient,style:{top:vt}}),v("div",{className:p(R.content,(ie={},t(ie,R.contentMobile,ct===z.mobile),t(ie,R.contentiOSMobile,oe()===Z),ie)),onScroll:function(e){return function(e){e.target&&(st&&(e.target.scrollLeft=0,lt(!1)),e.target.scrollLeft<=5&&$t&&eo(!1),e.target.scrollLeft>5&&!$t&&eo(!0),e.target.scrollTop<=5&&jt&&Ct(!1),e.target.scrollTop>5&&!jt&&Ct(!0),e.target.scrollHeight!==e.target.offsetHeight&&Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&io<Vt.length&&ro((function(e){return e+G})))}(e)},children:[ct!==z.normal&&b(L,{isViewOnly:de,viewType:ct,filters:He,setFilters:Fe,isFilterExpanded:Ie,setIsFilterExpanded:xe,isMapHidden:Pe,setIsMapHidden:Oe}),!Pe&&se&&b(k,{isViewOnly:de,mapHidden:Pe,companyId:we,subjectWell:Ze,offsetWellIds:_e.map((function(e){return e.id})),wells:Tt,radius:He[K.radius],handleChanageOffsetWell:Ut,activeWellId:he,viewType:ct}),b(V,{isHidden:!Ie,isWDUser:le,filterOptions:Pt,filters:He,wellSections:yt,selectedWellSection:ke,subjectWell:Ze,onChangeFilters:function(e){$e(!0),setTimeout((function(){return Fe(e)}),0)},onChangeBicWells:Kt}),b(N,{open:se,isTableLoading:Ye,companyId:we,subjectWellId:Ee,sortBy:Mt,setSortBy:Ht,sortDirection:Ft,setSortDirection:Lt,columnsWithDict:Ot,wells:lo,metricsKeys:xt,setMetricsKeys:Rt,handleChanageOffsetWell:Ut,handleChangeAllOffsetWells:zt,handleAddRemoveAssets:kt,isWellNameExpand:ot,setIsWellNameExpand:it,isHscrollMoved:$t,onHideAdvancedSearch:Nt,isViewOnly:de,isLastWell:Vt.length<=io,contentRef:at,isLimitedOffsetwells:ye<=_e.length,wellSections:yt,setActiveWellId:ge,viewType:ct})]})]})})};se.propTypes={isWDUser:a.bool,defaultSubjectWell:a.shape({asset_id:a.number,companyId:a.number}),offsetSettings:a.shape({selectedWellIds:a.arrayOf(a.number),manualWellIds:a.arrayOf(a.number),filters:a.shape({}),metricsKeys:a.arrayOf(a.string),wellSection:a.string,companyId:a.number,subjectWellId:a.number,mapHidden:a.bool,filterExpanded:a.bool,hintPopupClosed:a.bool}),currentUser:a.shape({company_id:a.number}).isRequired,open:a.bool.isRequired,addWellsUsabilityInfo:a.func,isViewOnly:a.bool,onSave:a.func.isRequired,onClose:a.func.isRequired,maxOffsetSize:a.number,localMaxOffsetSize:a.number},se.defaultProps={isWDUser:!1,defaultSubjectWell:null,offsetSettings:{},addWellsUsabilityInfo:void 0,isViewOnly:!1,maxOffsetSize:J,localMaxOffsetSize:Q};export{se as default};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import i from"@babel/runtime/helpers/slicedToArray";import{useState as o,useRef as r,useMemo as n,useEffect as s,useCallback as l}from"react";import a from"prop-types";import p from"classnames";import{uniqBy as m,sortBy as c,isEmpty as d}from"lodash";import{Replay as u,InfoOutlined as f}from"@material-ui/icons";import j from"../Modal/Modal.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../ImagesGrid/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import{jsx as C,jsxs as b,Fragment as v}from"react/jsx-runtime";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../DevCenter/AppContext.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import h from"../LoadingIndicator/LoadingIndicator.js";import{Regular14 as g,Regular12 as A}from"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";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/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../Chart/components/buttons/ZoomInButton.js";import"../Chart/components/buttons/ZoomOutButton.js";import"../Chart/components/buttons/PanButton.js";import"../Chart/components/buttons/ResetZoomButton.js";import"../Chart/components/buttons/HideAxesButton.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../RangeSlider/RangeSlider.js";import"../AdvancedSlider/AdvancedSlider.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../Breadcrumbs/index.js";import"../VirtualizedTable/index.js";import"../EmptyView/EmptyView.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import y from"../Button/index.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"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Drillstring/BHATileIcon.js";import"../Drillstring/BHATile/BHATile.js";import"../Drillstring/BHAList/BHAList.js";import"../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../Casing/CasingTileIcon.js";import"../Casing/CasingTableV2/CasingTableV2.js";import"../Casing/CasingTile/CasingTile.js";import"../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.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"../OffsetWellMap/OffsetWellMap.js";import"../Notifications/Notifications.js";import"uuid";import"../Toaster/Toaster.js";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../MenuItem/index.js";import"../PadModeSelect/PadModeSelect.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"@material-ui/core";import"../Table/TableToolbar/TableToolbar.js";import"../Table/TableContainer/TableContainer.js";import"../Table/TableCell/TableCell.js";import{Tooltip as D}from"../Tooltip/Tooltip.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../FilesLoader/Icons/FileIcon.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"../HelpCenter/HelpCenterIcon.js";import"../Autocomplete/Autocomplete.js";import"../DocumentViewer/DocumentViewer.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.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/InputAdornmentLeft.js";import"../Search/components/Groups.js";import"../../utils/index.js";import S from"../../styles/typography/index.js";import"../../styles/counter/counter.module.scss.js";import{isMobileDetected as x,isNativeDetected as W}from"../../utils/mobileDetect.js";import{useFetchWells as I}from"./effects/useFetchWells.js";import{useAdvancedWells as T}from"./effects/useAdvancedWells.js";import{useBicWells as P}from"./effects/useBicWells.js";import{useCompanyMetricKey as O}from"./effects/useCompanyMetricKey.js";import{useFilterOptions as w}from"./effects/useFilterOptions.js";import{useFilteredWells as E}from"./effects/useFilteredWells.js";import{useSortedWells as B}from"./effects/useSortedWells.js";import{useRadiusWells as M}from"./effects/useRadiusWells.js";import"./effects/useAssetsData.js";import{useTableColumns as H}from"./effects/useTableColumns.js";import{AppHeader as F}from"./components/AppHeader/AppHeader.js";import{Toolbar as L}from"./components/Toolbar/Toolbar.js";import{Filter as V}from"./components/Filter/Filter.js";import{WellsMap as k}from"./components/Map/WellsMap.js";import N from"./components/OffsetWellsTable/OffsetWellsTable.js";import R from"./OffsetWellPickerV4.module.css.js";import{ALL_SECTION_KEY as z,ViewType as U,ColumnType as _,FilterType as K,ROWS_PER_PAGE as G,LEAVE_TOUCH_DELAY as q,IOS_DEVICE as Z,DEFAULT_BIC_OFFSET_SIZE as J,DEFAULT_LOCAL_OFFSET_SIZE as Q,MAX_OFFSET_SIZE as X,SMALL_SCREEN_WIDTH as Y,SMALL_SCREEN_HEIGHT as $}from"./constants.js";import{SEARCH_CATEGORIES as ee}from"./components/OffsetWellsTable/AdvancedSearch/constants.js";import{getMobileOperatingSystem as te}from"./utils/index.js";import{showInfoNotification as ie}from"../../utils/notificationToasts.js";function oe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function re(e){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?oe(Object(o),!0).forEach((function(i){t(e,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):oe(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var ne="OffsetWellPickerV4",se=function(a){var J,Q,oe,se=a.open,le=a.isWDUser,ae=a.defaultSubjectWell,pe=a.currentUser,me=a.offsetSettings,ce=a.addWellsUsabilityInfo,de=a.isViewOnly,ue=a.onClose,fe=a.onSave,je=a.maxOffsetSize,Ce=a.localMaxOffsetSize,be=o(null),ve=i(be,2),he=ve[0],ge=ve[1],Ae=Math.min(je+1,Ce+1,X+1),ye=Math.min(Math.max(Ae,Ce+1),X+1),De=o(null==me?void 0:me.filterExpanded),Se=i(De,2),xe=Se[0],We=Se[1],Ie=o(null==me?void 0:me.mapHidden),Te=i(Ie,2),Pe=Te[0],Oe=Te[1],we=+(null==ae?void 0:ae.companyId)||+(null==pe?void 0:pe.company_id),Ee=null==ae?void 0:ae.asset_id,Be=o((null==me?void 0:me.filters)||{}),Me=i(Be,2),He=Me[0],Fe=Me[1],Le=o((null==me?void 0:me.wellSection)||z),Ve=i(Le,2),ke=Ve[0],Ne=Ve[1],Re=r(!0),ze=o([]),Ue=i(ze,2),_e=Ue[0],Ke=Ue[1],Ge=o(null),qe=i(Ge,2),Ze=qe[0],Je=qe[1],Qe=o(!0),Xe=i(Qe,2),Ye=Xe[0],$e=Xe[1],et=o(!1),tt=i(et,2),it=tt[0],ot=tt[1],rt=o(!1),nt=i(rt,2),st=nt[0],lt=nt[1],at=r(),pt=o(U.none),mt=i(pt,2),ct=mt[0],dt=mt[1],ut=r(),ft=o(!1),jt=i(ft,2),Ct=jt[0],bt=jt[1],vt=n((function(){return ye<=_e.length}),[_e,ye]),ht=n((function(){return ct===U.small?0:ct===U.mobile?52:48}),[ct]);s((function(){se&&vt&&ie("App can’t process more than (".concat(ye-1,") Offset Wells."))}),[vt,se,me]),s((function(){function e(){window.innerWidth<=Y||x||W?dt(U.mobile):window.innerHeight<=$?dt(U.small):dt(U.normal)}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[se]),s((function(){ut.current&&ct===ut.current||(ut.current=ct,ct===U.small||ct===U.mobile?(Oe(!0),We(!1)):(We(!de&&(null==me?void 0:me.filterExpanded)),Oe(!de&&(null==me?void 0:me.mapHidden))),Fe((null==me?void 0:me.filters)||{}),Ne((null==me?void 0:me.wellSection)||z))}),[me,de,ct]);var gt=I(we,ce),At=P(le,Ee,gt),yt=i(At,2),Dt=yt[0],St=yt[1],xt=O(we,null==me?void 0:me.metricsKeys),Wt=i(xt,2),It=Wt[0],Tt=Wt[1],Pt=T(we,gt,Dt,St,Ee),Ot=w(Pt);s((function(){if(Pt&&Dt){var e=Pt.find((function(e){return e.id===Ee}));if(e){var i=Dt.filter((function(e){return e.value!==z})).map((function(e){return e.label})),o=re(re({},e),i.length>0&&t({},_.wellSection,i));Je(o)}else Je(null)}}),[Dt,Pt]);var wt=H(It),Et=E(Pt,He);s((function(){if(Et)if(Re.current){var e=Pt.filter((function(e){return((null==me?void 0:me.selectedWellIds)||[]).includes(e.id)}));Ze&&(e=e.concat(Ze)),Ke(m(e,"id")),Re.current=!1}else Ke((function(e){var t=(Et||[]).filter((function(t){return!!e.find((function(e){var i=e.id;return t.id===i}))}));return Ze&&(t=t.concat(Ze)),m(t,"id")}))}),[Pt,Et,null==me?void 0:me.selectedWellIds]);var Bt=B(Ze,Et,_e,$e,Re.current),Mt=i(Bt,5),Ht=Mt[0],Ft=Mt[1],Lt=Mt[2],Vt=Mt[3],kt=Mt[4];M(He[K.radius],Et,Ke,ye);var Nt=l((function(e,t,i){var o;o=i===ee.well.name?t:t.reduce((function(e,t){var i,o=null===(i=Pt.find((function(e){return e.id===t})))||void 0===i?void 0:i.rigName,r=Pt.filter((function(e){return e.rigName===o})).map((function(e){return e.id}));return e.concat(r)}),[]);var r=Pt.filter((function(e){var t=e.id;return o.includes(t)}));e?(r=r.slice(0,Math.min(r.length,ye-_e.length)),Ke((function(e){return m(e.concat(r),"id")}))):Ke((function(e){return m(e.filter((function(e){var t=e.id;return!r.find((function(e){return e.id===t}))})))}))}),[Pt,_e]),Rt=l((function(){lt(!0)}),[]),zt=l((function(e){Tt(e)}),[]),Ut=l((function(t,i){Ke(i?function(i){return[].concat(e(i),[t])}:function(e){return e.filter((function(e){return e.id!==t.id}))})}),[]),_t=l((function(e){if(e){var t=Ze?Et.concat(Ze):Et,i=c(m(t,"id"),"distance");Ke(i.slice(0,ye))}else Ke(Ze?[Ze]:[])}),[Et,Ze,ye]),Kt=function(e){if(d(St))Ke(Ze?[Ze]:[]);else{var t=Pt.filter((function(t){return St[e].includes(t.id)})),i=c(t,"distance");Ke(i.slice(0,Ae))}},Gt=l((function(e){Ne(e),Kt(e)}),[Kt]),qt=n((function(){return _e.find((function(e){return e.id===Ee}))?_e.length-1:_e.length}),[_e,Ee]),Zt=n((function(){if(!St)return!1;var e=_e.map((function(e){return e.id})),t=St[ke]||[];return Math.min(t.length,Ae)===e.length&&e.every((function(e){return t.includes(e)}))}),[St,_e,ke,Ae]),Jt=function(){var e=(Pt||[]).filter((function(e){return((null==me?void 0:me.selectedWellIds)||[]).includes(e.id)}));Ze&&(e=e.concat(Ze)),Ke(m(e,"id"));var t=re(re({},me),{},{mapHidden:Pe,filterExpanded:xe});fe(t),Fe((null==me?void 0:me.filters)||{}),Ne((null==me?void 0:me.wellSection)||z),ue()},Qt=n((function(){return!Zt||(!(d(He)||!He[K.sideTracks])||ke!==z)}),[Zt,He,ke]),Xt=!Pt||!Dt||!kt||ct===U.none,Yt=o(!1),$t=i(Yt,2),ei=$t[0],ti=$t[1],ii=o(G),oi=i(ii,2),ri=oi[0],ni=oi[1],si=o([]),li=i(si,2),ai=li[0],pi=li[1];s((function(){if(kt){var e=kt.slice(0,ri);pi(e)}}),[kt,ri,Ze]);return C(j,{open:se,onClose:Jt,title:C(F,{isWDUser:le,viewType:ct,totalCount:null!==(J=null==Pt?void 0:Pt.length)&&void 0!==J?J:0,selectedCount:qt,isViewOnly:de,maxOffsetwellNumber:ye}),isMobile:ct===U.mobile,contentContainerClassName:p(R.offsetWellDialog,t({},R.offsetWellDialogMobile,ct===U.mobile)),contentClassName:p(R.contentContainer,(Q={},t(Q,R.smallContainer,ct===U.small),t(Q,R.contentContainerMobile,ct===U.mobile),Q)),actionsClassName:p(R.modalActions,t({},R.modalActionsMobile,ct===U.mobile)),actions:!de&&b("div",{className:R.actionsWrapper,children:[!Xt&&Qt?C(D,{placement:"bottom-start",title:"Reset to Synced Offsets in ".concat(le?"Offset App":"Wellhub"),children:C("div",{children:C(y,{"data-testid":"".concat(ne,"_reset"),onClick:function(){Fe({}),Ne(z),Kt(z)},color:"primary",startIcon:ct!==U.mobile&&C(u,{}),classes:ct===U.mobile&&{root:R.resetButtonMobile},children:ct!==U.mobile?"Reset":C(u,{})})})}):C("div",{className:ct===U.mobile&&R.infoIconContainer,children:ct!==U.mobile?b(v,{children:[C("span",{className:p(S.regular12,S.colors.t6),children:"The offset list is being automatically populated by "}),C("span",{className:p(S.medium12,S.colors.t6),children:le?"Offset Selection App.":"WellHub."})]}):C(D,{title:b("div",{children:[C("span",{className:p(S.regular12,S.colors.t1),children:"The offset list is being automatically populated by "}),C("span",{className:p(S.medium12,S.colors.t1),children:le?"Offset Selection App.":"WellHub."})]}),enterTouchDelay:0,leaveTouchDelay:q,children:C(f,{className:R.infoIcon})})}),b("div",{className:R.buttonGap,children:[C(y,{"data-testid":"".concat(ne,"_cancel"),onClick:Jt,color:"primary",children:"Cancel"}),b(y,{"data-testid":"".concat(ne,"_selectedWells"),variant:"contained",color:"primary",onClick:function(){ue();var e=re(re({},me),{},{companyId:we,subjectWellId:Ee,selectedWellIds:_e.map((function(e){return e.id})),filters:He,metricsKeys:It,wellSection:ke,isSynced:Zt,mapHidden:Pe,filterExpanded:xe,offsetWellsLimited:vt});fe(e,_e)},children:["Select (",qt,")"]})]})]}),children:Xt?C(h,{fullscreen:!1}):b("div",{className:p(R.contentWrapper),ref:at,children:[ct===U.mobile&&b("div",{className:p(R.countContainer,t({},R.countContainerMobile,ct===U.mobile)),children:[C(g,{className:R.totalLabel,children:"Total:"}),C(g,{"data-testid":"".concat(ne,"_totalWells"),className:R.countValue,children:Pt.length}),C(g,{className:R.selectedLabel,children:"Selected:"}),C(g,{"data-testid":"".concat(ne,"_selected"),className:R.countValue,children:qt}),C(D,{title:"App can’t process more than (".concat(ye-1,") Offset Wells."),placement:"right",children:b(A,{"data-testid":"".concat(ne,"_maxOffsetSize"),className:R.maxOffsetSize,children:["/",ye-1]})})]}),ct===U.normal&&C(L,{isViewOnly:de,viewType:ct,filters:He,setFilters:Fe,isFilterExpanded:xe,setIsFilterExpanded:We,isMapHidden:Pe,setIsMapHidden:Oe}),Ct&&C("div",{className:R.topGradient,style:{top:ht}}),b("div",{className:p(R.content,(oe={},t(oe,R.contentMobile,ct===U.mobile),t(oe,R.contentiOSMobile,te()===Z),oe)),onScroll:function(e){return function(e){e.target&&(st&&(e.target.scrollLeft=0,lt(!1)),e.target.scrollLeft<=5&&ei&&ti(!1),e.target.scrollLeft>5&&!ei&&ti(!0),e.target.scrollTop<=5&&Ct&&bt(!1),e.target.scrollTop>5&&!Ct&&bt(!0),e.target.scrollHeight!==e.target.offsetHeight&&Math.round(e.target.scrollTop+e.target.offsetHeight+2)>=e.target.scrollHeight&&ri<kt.length&&ni((function(e){return e+G})))}(e)},children:[ct!==U.normal&&C(L,{isViewOnly:de,viewType:ct,filters:He,setFilters:Fe,isFilterExpanded:xe,setIsFilterExpanded:We,isMapHidden:Pe,setIsMapHidden:Oe}),!Pe&&se&&C(k,{isViewOnly:de,mapHidden:Pe,companyId:we,subjectWell:Ze,offsetWellIds:_e.map((function(e){return e.id})),wells:Pt,radius:He[K.radius],handleChanageOffsetWell:Ut,activeWellId:he,viewType:ct}),C(V,{isHidden:!xe,isWDUser:le,filterOptions:Ot,filters:He,wellSections:Dt,selectedWellSection:ke,subjectWell:Ze,onChangeFilters:function(e){$e(!0),setTimeout((function(){return Fe(e)}),0)},onChangeBicWells:Gt}),C(N,{open:se,isTableLoading:Ye,companyId:we,subjectWellId:Ee,sortBy:Ht,setSortBy:Ft,sortDirection:Lt,setSortDirection:Vt,columnsWithDict:wt,wells:ai,metricsKeys:It,setMetricsKeys:zt,handleChanageOffsetWell:Ut,handleChangeAllOffsetWells:_t,handleAddRemoveAssets:Nt,isWellNameExpand:it,setIsWellNameExpand:ot,isHscrollMoved:ei,onHideAdvancedSearch:Rt,isViewOnly:de,isLastWell:kt.length<=ri,contentRef:at,isLimitedOffsetwells:vt,maxOffsetwellNumber:ye,wellSections:Dt,setActiveWellId:ge,viewType:ct})]})]})})};se.propTypes={isWDUser:a.bool,defaultSubjectWell:a.shape({asset_id:a.number,companyId:a.number}),offsetSettings:a.shape({selectedWellIds:a.arrayOf(a.number),manualWellIds:a.arrayOf(a.number),filters:a.shape({}),metricsKeys:a.arrayOf(a.string),wellSection:a.string,companyId:a.number,subjectWellId:a.number,mapHidden:a.bool,filterExpanded:a.bool,hintPopupClosed:a.bool}),currentUser:a.shape({company_id:a.number}).isRequired,open:a.bool.isRequired,addWellsUsabilityInfo:a.func,isViewOnly:a.bool,onSave:a.func.isRequired,onClose:a.func.isRequired,maxOffsetSize:a.number,localMaxOffsetSize:a.number},se.defaultProps={isWDUser:!1,defaultSubjectWell:null,offsetSettings:{},addWellsUsabilityInfo:void 0,isViewOnly:!1,maxOffsetSize:J,localMaxOffsetSize:Q};export{se as default};
@@ -1 +1 @@
1
- import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var l={offsetWellDialog:"OffsetWellPickerV4-module_offsetWellDialog__EkSjl",offsetWellDialogMobile:"OffsetWellPickerV4-module_offsetWellDialogMobile__ng66x",viewOnlyTitleLabel:"OffsetWellPickerV4-module_viewOnlyTitleLabel__pod4c",contentWrapper:"OffsetWellPickerV4-module_contentWrapper__gVGQ-",contentContainer:"OffsetWellPickerV4-module_contentContainer__Eb9sk",smallContainer:"OffsetWellPickerV4-module_smallContainer__ngDTM",contentContainerMobile:"OffsetWellPickerV4-module_contentContainerMobile__0VZNE",content:"OffsetWellPickerV4-module_content__mEQWD",contentMobile:"OffsetWellPickerV4-module_contentMobile__jM5ou",contentiOSMobile:"OffsetWellPickerV4-module_contentiOSMobile__e4Coq",modalActions:"OffsetWellPickerV4-module_modalActions__cShAH",modalActionsMobile:"OffsetWellPickerV4-module_modalActionsMobile__ttUJ0",actionsWrapper:"OffsetWellPickerV4-module_actionsWrapper__C0Ciz",buttonGap:"OffsetWellPickerV4-module_buttonGap__fjFT6",viewOnlyLabel:"OffsetWellPickerV4-module_viewOnlyLabel__GP44N",countContainer:"OffsetWellPickerV4-module_countContainer__p8V5A",countContainerMobile:"OffsetWellPickerV4-module_countContainerMobile__HPiI2",totalLabel:"OffsetWellPickerV4-module_totalLabel__3n5bD",selectedLabel:"OffsetWellPickerV4-module_selectedLabel__BzClE",countValue:"OffsetWellPickerV4-module_countValue__dLG-K",resetButtonMobile:"OffsetWellPickerV4-module_resetButtonMobile__dCDdg",infoIconContainer:"OffsetWellPickerV4-module_infoIconContainer__olAOe",infoIcon:"OffsetWellPickerV4-module_infoIcon__8tuGL",topGradient:"OffsetWellPickerV4-module_topGradient__fAc7W"};e(".OffsetWellPickerV4-module_offsetWellDialog__EkSjl{max-height:calc(100% - 32px);padding-bottom:40px;width:1100px}.OffsetWellPickerV4-module_offsetWellDialogMobile__ng66x{margin-top:50px;overflow-y:hidden;padding-bottom:0}.OffsetWellPickerV4-module_viewOnlyTitleLabel__pod4c{color:var(--palette-primary-text-6);font-size:16px!important;line-height:140.6%!important;margin-bottom:16px!important;margin-left:40px!important}.OffsetWellPickerV4-module_contentWrapper__gVGQ-{display:flex;flex-direction:column;overflow:hidden auto;position:relative}.OffsetWellPickerV4-module_contentContainer__Eb9sk{display:flex;flex-direction:column;overflow-y:hidden;padding:0;position:relative}.OffsetWellPickerV4-module_smallContainer__ngDTM{margin-top:4px}.OffsetWellPickerV4-module_contentContainerMobile__0VZNE{height:calc(100% - 104px)}.OffsetWellPickerV4-module_content__mEQWD{flex:1;margin:0 24px 0 40px;overflow:auto;position:relative}.OffsetWellPickerV4-module_contentMobile__jM5ou{margin:0 0 0 16px}.OffsetWellPickerV4-module_contentiOSMobile__e4Coq{margin:0 16px}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar-corner{background-color:transparent}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar{width:16px}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:hsla(240,2%,65%,.722);border:5px solid rgba(0,0,0,.01);border-radius:10px}.OffsetWellPickerV4-module_modalActions__cShAH{justify-content:flex-end;padding:8px 40px}.OffsetWellPickerV4-module_modalActionsMobile__ttUJ0{padding:10px 16px}.OffsetWellPickerV4-module_actionsWrapper__C0Ciz{align-items:center;display:flex;flex:1;justify-content:space-between}.OffsetWellPickerV4-module_buttonGap__fjFT6{display:flex;gap:16px}.OffsetWellPickerV4-module_viewOnlyLabel__GP44N{color:var(--palette-primary-text-6);padding-bottom:16px;padding-left:40px}.OffsetWellPickerV4-module_countContainer__p8V5A{align-items:center;display:flex;height:24px;margin:0 0 16px 40px;z-index:9}.OffsetWellPickerV4-module_countContainerMobile__HPiI2{margin-left:16px;margin-top:14px}.OffsetWellPickerV4-module_totalLabel__3n5bD{color:var(--palette-primary-text-6)}.OffsetWellPickerV4-module_selectedLabel__BzClE{color:var(--palette-primary-text-6);padding-left:16px}.OffsetWellPickerV4-module_countValue__dLG-K{color:var(--palette-primary-text-1);padding-left:8px}.OffsetWellPickerV4-module_resetButtonMobile__dCDdg{max-height:40px;max-width:40px;min-height:40px;min-width:40px!important}.OffsetWellPickerV4-module_infoIconContainer__olAOe{height:40px}.OffsetWellPickerV4-module_infoIcon__8tuGL{color:#dadada;height:40px!important;padding:10px;width:40px!important}.OffsetWellPickerV4-module_topGradient__fAc7W{background-image:linear-gradient(0deg,rgba(65,65,65,0),#414141);border-bottom:none!important;height:16px!important;padding:0!important;position:absolute;top:120px;width:100%;z-index:3}");export{l as default};
1
+ import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var l={offsetWellDialog:"OffsetWellPickerV4-module_offsetWellDialog__EkSjl",offsetWellDialogMobile:"OffsetWellPickerV4-module_offsetWellDialogMobile__ng66x",viewOnlyTitleLabel:"OffsetWellPickerV4-module_viewOnlyTitleLabel__pod4c",contentWrapper:"OffsetWellPickerV4-module_contentWrapper__gVGQ-",contentContainer:"OffsetWellPickerV4-module_contentContainer__Eb9sk",smallContainer:"OffsetWellPickerV4-module_smallContainer__ngDTM",contentContainerMobile:"OffsetWellPickerV4-module_contentContainerMobile__0VZNE",content:"OffsetWellPickerV4-module_content__mEQWD",contentMobile:"OffsetWellPickerV4-module_contentMobile__jM5ou",contentiOSMobile:"OffsetWellPickerV4-module_contentiOSMobile__e4Coq",modalActions:"OffsetWellPickerV4-module_modalActions__cShAH",modalActionsMobile:"OffsetWellPickerV4-module_modalActionsMobile__ttUJ0",actionsWrapper:"OffsetWellPickerV4-module_actionsWrapper__C0Ciz",buttonGap:"OffsetWellPickerV4-module_buttonGap__fjFT6",viewOnlyLabel:"OffsetWellPickerV4-module_viewOnlyLabel__GP44N",countContainer:"OffsetWellPickerV4-module_countContainer__p8V5A",countContainerMobile:"OffsetWellPickerV4-module_countContainerMobile__HPiI2",totalLabel:"OffsetWellPickerV4-module_totalLabel__3n5bD",selectedLabel:"OffsetWellPickerV4-module_selectedLabel__BzClE",countValue:"OffsetWellPickerV4-module_countValue__dLG-K",maxOffsetSize:"OffsetWellPickerV4-module_maxOffsetSize__MBfqm",resetButtonMobile:"OffsetWellPickerV4-module_resetButtonMobile__dCDdg",infoIconContainer:"OffsetWellPickerV4-module_infoIconContainer__olAOe",infoIcon:"OffsetWellPickerV4-module_infoIcon__8tuGL",topGradient:"OffsetWellPickerV4-module_topGradient__fAc7W"};e(".OffsetWellPickerV4-module_offsetWellDialog__EkSjl{max-height:calc(100% - 32px);padding-bottom:40px;width:1100px}.OffsetWellPickerV4-module_offsetWellDialogMobile__ng66x{margin-top:50px;overflow-y:hidden;padding-bottom:0}.OffsetWellPickerV4-module_viewOnlyTitleLabel__pod4c{color:var(--palette-primary-text-6);font-size:16px!important;line-height:140.6%!important;margin-bottom:16px!important;margin-left:40px!important}.OffsetWellPickerV4-module_contentWrapper__gVGQ-{display:flex;flex-direction:column;overflow:hidden auto;position:relative}.OffsetWellPickerV4-module_contentContainer__Eb9sk{display:flex;flex-direction:column;overflow-y:hidden;padding:0;position:relative}.OffsetWellPickerV4-module_smallContainer__ngDTM{margin-top:4px}.OffsetWellPickerV4-module_contentContainerMobile__0VZNE{height:calc(100% - 104px)}.OffsetWellPickerV4-module_content__mEQWD{flex:1;margin:0 24px 0 40px;overflow:auto;position:relative}.OffsetWellPickerV4-module_contentMobile__jM5ou{margin:0 0 0 16px}.OffsetWellPickerV4-module_contentiOSMobile__e4Coq{margin:0 16px}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar-corner{background-color:transparent}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar{width:16px}.OffsetWellPickerV4-module_content__mEQWD::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:hsla(240,2%,65%,.722);border:5px solid rgba(0,0,0,.01);border-radius:10px}.OffsetWellPickerV4-module_modalActions__cShAH{justify-content:flex-end;padding:8px 40px}.OffsetWellPickerV4-module_modalActionsMobile__ttUJ0{padding:10px 16px}.OffsetWellPickerV4-module_actionsWrapper__C0Ciz{align-items:center;display:flex;flex:1;justify-content:space-between}.OffsetWellPickerV4-module_buttonGap__fjFT6{display:flex;gap:16px}.OffsetWellPickerV4-module_viewOnlyLabel__GP44N{color:var(--palette-primary-text-6);padding-bottom:16px;padding-left:40px}.OffsetWellPickerV4-module_countContainer__p8V5A{align-items:center;display:flex;height:24px;margin:0 0 16px 40px;z-index:9}.OffsetWellPickerV4-module_countContainerMobile__HPiI2{margin-left:16px;margin-top:14px}.OffsetWellPickerV4-module_totalLabel__3n5bD{color:var(--palette-primary-text-6)}.OffsetWellPickerV4-module_selectedLabel__BzClE{color:var(--palette-primary-text-6);padding-left:16px}.OffsetWellPickerV4-module_countValue__dLG-K{color:var(--palette-primary-text-1);padding-left:8px}.OffsetWellPickerV4-module_maxOffsetSize__MBfqm{color:var(--palette-primary-text-6);cursor:default;padding-left:4px}.OffsetWellPickerV4-module_resetButtonMobile__dCDdg{max-height:40px;max-width:40px;min-height:40px;min-width:40px!important}.OffsetWellPickerV4-module_infoIconContainer__olAOe{height:40px}.OffsetWellPickerV4-module_infoIcon__8tuGL{color:#dadada;height:40px!important;padding:10px;width:40px!important}.OffsetWellPickerV4-module_topGradient__fAc7W{background-image:linear-gradient(0deg,rgba(65,65,65,0),#414141);border-bottom:none!important;height:16px!important;padding:0!important;position:absolute;top:120px;width:100%;z-index:3}");export{l as default};
@@ -1,18 +1,14 @@
1
- export function AppHeader({ isWDUser, viewType, totalCount, selectedCount, isViewOnly, maxOffsetwellNumber, }: {
2
- isWDUser: any;
1
+ export function AppHeader({ viewType, totalCount, selectedCount, maxOffsetwellNumber }: {
3
2
  viewType: any;
4
3
  totalCount: any;
5
4
  selectedCount: any;
6
- isViewOnly: any;
7
5
  maxOffsetwellNumber: any;
8
6
  }): JSX.Element;
9
7
  export namespace AppHeader {
10
8
  namespace propTypes {
11
- const isWDUser: PropTypes.Validator<boolean>;
12
9
  const viewType: PropTypes.Validator<string>;
13
10
  const totalCount: PropTypes.Validator<number>;
14
11
  const selectedCount: PropTypes.Validator<number>;
15
- const isViewOnly: PropTypes.Validator<boolean>;
16
12
  const maxOffsetwellNumber: PropTypes.Validator<number>;
17
13
  }
18
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js"],"names":[],"mappings":"AASO;;;;;;;gBAuCN"}
1
+ {"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/OffsetWellPickerV4/components/AppHeader/AppHeader.js"],"names":[],"mappings":"AAQO;;;;;gBA+BN"}
@@ -1 +1 @@
1
- import e from"prop-types";import{Divider as s}from"@material-ui/core";import{Regular20 as t,Regular12 as r}from"../../../Typography.js";import{ViewType as i}from"../../constants.js";import{CustomInfoIcon as l}from"../CustomInfoIcon/CustomInfoIcon.js";import o from"./AppHeader.module.css.js";import{jsx as a,jsxs as n}from"react/jsx-runtime";var c=function(e){var c=e.isWDUser,m=e.viewType,d=e.totalCount,u=e.selectedCount,p=e.isViewOnly,f=e.maxOffsetwellNumber;return m===i.mobile?a("div",{className:o.headerContainer,children:a(t,{children:"Select Offset Wells"})}):n("div",{className:o.headerContainer,children:[a(t,{children:"Select Offset Wells"}),a(s,{className:o.divideLine}),a(r,{className:o.totalLabel,children:"Total:"}),a(r,{"data-testid":"".concat("AppHeader","_totalWells"),className:o.countValue,children:d}),a(r,{className:o.selectedLabel,children:"Selected:"}),a(r,{"data-testid":"".concat("AppHeader","_selected"),className:o.countValue,children:u}),(p||f<=u+1)&&a(l,{isWDUser:c,isViewOnly:p,maxOffsetwellNumber:f,selectedCount:u,viewType:m})]})};c.propTypes={isWDUser:e.bool.isRequired,viewType:e.string.isRequired,totalCount:e.number.isRequired,selectedCount:e.number.isRequired,isViewOnly:e.bool.isRequired,maxOffsetwellNumber:e.number.isRequired};export{c as AppHeader};
1
+ import e from"prop-types";import{Divider as t,Tooltip as a}from"@material-ui/core";import{Regular20 as r,Regular14 as l,Regular12 as s}from"../../../Typography.js";import{ViewType as i}from"../../constants.js";import c from"./AppHeader.module.css.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";var d=function(e){var d=e.viewType,m=e.totalCount,p=e.selectedCount,u=e.maxOffsetwellNumber;return d===i.mobile?o("div",{className:c.headerContainer,children:o(r,{children:"Select Offset Wells"})}):n("div",{className:c.headerContainer,children:[o(r,{children:"Select Offset Wells"}),o(t,{className:c.divideLine}),o(l,{className:c.totalLabel,children:"Total:"}),o(l,{"data-testid":"".concat("AppHeader","_totalWells"),className:c.countValue,children:m}),o(l,{className:c.selectedLabel,children:"Selected:"}),o(l,{"data-testid":"".concat("AppHeader","_selected"),className:c.countValue,children:p}),o(a,{title:"App can’t process more than (".concat(u-1,") Offset Wells."),placement:"right",children:n(s,{"data-testid":"".concat("AppHeader","_maxOffsetSize"),className:c.maxOffsetSize,children:["/",u-1]})})]})};d.propTypes={viewType:e.string.isRequired,totalCount:e.number.isRequired,selectedCount:e.number.isRequired,maxOffsetwellNumber:e.number.isRequired};export{d as AppHeader};
@@ -1 +1 @@
1
- import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={headerContainer:"AppHeader-module_headerContainer__U12-A",divideLine:"AppHeader-module_divideLine__Ug9rR",totalLabel:"AppHeader-module_totalLabel__ML9sB",selectedLabel:"AppHeader-module_selectedLabel__m24nY",countValue:"AppHeader-module_countValue__m4GWf"};e(".AppHeader-module_headerContainer__U12-A{align-items:center;display:flex;flex-direction:row}.AppHeader-module_divideLine__Ug9rR{height:12px!important;margin-left:16px!important;margin-right:16px!important;width:1px}.AppHeader-module_totalLabel__ML9sB{color:var(--palette-primary-text-6)}.AppHeader-module_selectedLabel__m24nY{color:var(--palette-primary-text-6);padding-left:16px}.AppHeader-module_countValue__m4GWf{color:var(--palette-primary-text-1);padding-left:4px}");export{t as default};
1
+ import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={headerContainer:"AppHeader-module_headerContainer__U12-A",divideLine:"AppHeader-module_divideLine__Ug9rR",totalLabel:"AppHeader-module_totalLabel__ML9sB",selectedLabel:"AppHeader-module_selectedLabel__m24nY",countValue:"AppHeader-module_countValue__m4GWf",maxOffsetSize:"AppHeader-module_maxOffsetSize__D4TGt"};e(".AppHeader-module_headerContainer__U12-A{align-items:center;display:flex;flex-direction:row}.AppHeader-module_divideLine__Ug9rR{height:12px!important;margin-left:16px!important;margin-right:16px!important;width:1px}.AppHeader-module_totalLabel__ML9sB{color:var(--palette-primary-text-6)}.AppHeader-module_selectedLabel__m24nY{color:var(--palette-primary-text-6);padding-left:16px}.AppHeader-module_countValue__m4GWf{color:var(--palette-primary-text-1);padding-left:4px}.AppHeader-module_maxOffsetSize__D4TGt{color:var(--palette-primary-text-6);cursor:default;padding-left:4px}");export{t as default};
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("react").MemoExoticComponent<{
2
- ({ open, isTableLoading, companyId, subjectWellId, sortBy, setSortBy, sortDirection, setSortDirection, columnsWithDict, wells: updatedWells, metricsKeys, setMetricsKeys, handleChanageOffsetWell, handleChangeAllOffsetWells, handleAddRemoveAssets, isWellNameExpand, setIsWellNameExpand, isHscrollMoved, onHideAdvancedSearch, isViewOnly, isLastWell, contentRef, isLimitedOffsetwells, wellSections, setActiveWellId, viewType, }: {
2
+ ({ open, isTableLoading, companyId, subjectWellId, sortBy, setSortBy, sortDirection, setSortDirection, columnsWithDict, wells: updatedWells, metricsKeys, setMetricsKeys, handleChanageOffsetWell, handleChangeAllOffsetWells, handleAddRemoveAssets, isWellNameExpand, setIsWellNameExpand, isHscrollMoved, onHideAdvancedSearch, isViewOnly, isLastWell, contentRef, isLimitedOffsetwells, maxOffsetwellNumber, wellSections, setActiveWellId, viewType, }: {
3
3
  open: any;
4
4
  isTableLoading: any;
5
5
  companyId: any;
@@ -23,6 +23,7 @@ declare const _default: import("react").MemoExoticComponent<{
23
23
  isLastWell: any;
24
24
  contentRef: any;
25
25
  isLimitedOffsetwells: any;
26
+ maxOffsetwellNumber: any;
26
27
  wellSections: any;
27
28
  setActiveWellId: any;
28
29
  viewType: any;
@@ -50,6 +51,7 @@ declare const _default: import("react").MemoExoticComponent<{
50
51
  isViewOnly: PropTypes.Validator<boolean>;
51
52
  isLastWell: PropTypes.Validator<boolean>;
52
53
  isLimitedOffsetwells: PropTypes.Validator<boolean>;
54
+ maxOffsetwellNumber: PropTypes.Validator<number>;
53
55
  contentRef: PropTypes.Validator<NonNullable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>>;
54
56
  wellSections: PropTypes.Validator<PropTypes.InferProps<{}>[]>;
55
57
  setActiveWellId: PropTypes.Validator<(...args: any[]) => any>;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as p}from"react";import l from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import v from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.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"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.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"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.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"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as b}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as y,TableColumns as S,ViewType as T,ROW_HEIGHT as x}from"../../constants.js";import P from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function W(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var O=function(r){var m,w=r.open,O=r.isTableLoading,E=r.companyId,B=r.subjectWellId,R=r.sortBy,L=r.setSortBy,k=r.sortDirection,M=r.setSortDirection,F=r.columnsWithDict,N=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,K=r.handleChangeAllOffsetWells,Z=r.handleAddRemoveAssets,z=r.isWellNameExpand,G=r.setIsWellNameExpand,U=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.wellSections,ee=r.setActiveWellId,te=r.viewType,re=i([]),ie=e(re,2),oe=ie[0],ne=ie[1],se=i(null),ae=e(se,2),pe=ae[0],le=ae[1],me=i(0),de=e(me,2),ce=de[0],ue=de[1],je=i(0),Ce=e(je,2),fe=Ce[0],he=Ce[1],ve=o(),be=o(),Ae=o();n((function(){if(!pe)return ne(N),void he(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/x+1),p=s-n;Math.abs(p)>a&&(s=n+a*Math.sign(p));var l=s-n;return[n,s,l,200*(.4*Math.abs(l)+2),Math.min(n,s),(Math.abs(l)+1)*x]}(oe,pe,N,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],p=r[5];if(Ae.current=s,o===i)ne(N);else{ue(a),he(p);var l=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?W(W({},e),{},{moveTo:t}):n?W(W({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(oe,n,i,o);ne(l),setTimeout((function(){ne(N),he(0),le(null)}),s)}}),[N]);var ge=s((function(){var e=oe.filter((function(e){return e.checked}));return[e,oe.length!==e.length&&e.length&&!$,e.length===oe.length||$]}),[oe,$]),De=e(ge,3),ye=De[0],Se=De[1],Te=De[2],xe=s((function(){return I()}),[]),Pe=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),Ie=s((function(){return z?y-58:S[0].width[q.length]-58}),[z,null==q?void 0:q.length]);n((function(){if(te!==T.mobile&&ve.current&&be.current){var e=ve.current.querySelector(".".concat(P.wellNameFixed));U?e.classList.remove(P.noShadow):e.classList.add(P.noShadow);var t=be.current.querySelectorAll(".".concat(P.wellNameFixed));U?t.forEach((function(e){return e.classList.remove(P.noShadow)})):t.forEach((function(e){return e.classList.add(P.noShadow)}))}}),[U,be.current,ve.current,oe]);var we=a((function(e,t){L(e),M(t)}),[]),We=a((function(e){V(e)}),[]),Oe=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return F&&oe?f("div",{className:P.offsetWellsTable,children:[h("div",{className:P.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:ve,children:h(c,{children:h(A,{open:w,columnsWithDict:F,metricsKeys:q,sortBy:R,sortDirection:k,indeterminate:Se,isAllWellsSelected:Te,onChangeSort:we,onChangeMetricsKeys:We,onUpdateMetricsKey:Oe,isWellNameExpand:z,setIsWellNameExpand:G,handleChangeAllOffsetWells:K,wellNameStyle:P.wellNameFixed,isViewOnly:Q,isImperial:xe,contentRef:Y,viewType:te})})})}),!Q&&h("div",{className:P.searchCell,children:h(b,{companyId:E,subjectWellId:B,wells:oe,onChange:Z,selectedWellIds:ye.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:be,className:P.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:l(P.topShadow,t({},P.viewOnlyShadow,Q))})}),oe.map((function(e,t){return f(p,{children:[h(j,{children:pe&&fe>0&&t===ce&&h(C,{style:{height:fe}})}),h(g,{columnsWithDict:F,subjectWellId:B,data:e,metricsKeys:q,metricsColumns:Pe,handleChanageOffsetWell:H,isWellNameExpand:z,wellNameStyle:P.wellNameFixed,wellNameWidth:Ie,isViewOnly:Q,isImperial:xe,isLimitedOffsetwells:$,wellSections:_,setActiveWellId:ee,viewType:te,newCheckedWellId:null!=e&&e.moveTo?pe:0,setNewCheckedWellId:le,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?Ae.current:0})]},e.id)})),!X&&h(j,{children:h(C,{className:P.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:P.bottomShadow})})]})}),O&&h(v,{fullscreen:!1,className:P.loadingContainer})]}):null};O.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired};var E=r(O);export{E as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as r,useState as i,useRef as o,useEffect as n,useMemo as s,useCallback as a,Fragment as l}from"react";import p from"classnames";import m from"prop-types";import{Table as d,TableHead as c,TableBody as u,TableRow as j,TableCell as C}from"@material-ui/core";import{jsxs as f,jsx as h}from"react/jsx-runtime";import"../../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../../../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../../../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../../../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../../../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../../DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../../Modal/CorvaModal.js";import"uuid";import"../../../IconMenu/index.js";import"../../../StyledMenuItem/index.js";import"../../../ImagesGrid/index.js";import"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../DevCenter/AppContext.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import b from"../../../LoadingIndicator/LoadingIndicator.js";import"../../../Typography.js";import"../../../CollapsableSidebar.js";import"../../../DateTimePicker/index.js";import"../../../DatePicker/index.js";import"../../../ErrorBoundary/ErrorBoundary.js";import"../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../SlateFormattedText/SlateFormattedText.js";import"../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";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/index.js";import"../../../SettingEditors/DropdownEditor/index.js";import"../../../SettingEditors/RadioEditor/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/buttons/DragToZoomButton.js";import"../../../Chart/components/buttons/ZoomInButton.js";import"../../../Chart/components/buttons/ZoomOutButton.js";import"../../../Chart/components/buttons/PanButton.js";import"../../../Chart/components/buttons/ResetZoomButton.js";import"../../../Chart/components/buttons/HideAxesButton.js";import"../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../TruncatedText/index.js";import"../../../RangeSlider/RangeSlider.js";import"../../../AdvancedSlider/AdvancedSlider.js";import"../../../Breadcrumbs/index.js";import"../../../VirtualizedTable/index.js";import"../../../EmptyView/EmptyView.js";import"../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../Button/index.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"../../../CustomSelect/index.js";import"../../../Tabs/Tabs.js";import"../../../Tabs/Tab.js";import"../../../ResizableTable/ResizableTable.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../../../clients/jsonApi/index.js";import"../../../../constants/goals.js";import"../../../../constants/segment.js";import"../../../../constants/alerts.js";import"../../../../constants/apps.js";import"../../../../constants/drillstring.js";import"../../../../constants/completion.js";import"../../../../constants/notifications.js";import"../../../../constants/feed.js";import"../../../../constants/bha.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"../../OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"../../../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../MenuItem/index.js";import"../../../PadModeSelect/PadModeSelect.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"../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../PriceInput/PriceInput.js";import"../../../LabelsCounter/LabelsCounter.js";import"../../../Stepper/Step.js";import"../../../Stepper/StepsWrapper.js";import"../../../Stepper/Stepper.js";import"../../../Comment/CommentIcon/index.js";import"../../../FilesLoader/FilesLoader.js";import"../../../FilesLoader/Icons/FileIcon.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"../../../HelpCenter/HelpCenterIcon.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/InputAdornmentLeft.js";import"../../../Search/components/Groups.js";import{AdvancedSearch as v}from"./AdvancedSearch/AdvancedSearch.js";import A from"./OffsetWellsTableHead.js";import g from"./OffsetWellsTableRow.js";import{METRICS_LIST as D,EXPANED_WELLNAME_WIDTH as y,TableColumns as S,ViewType as x,ROW_HEIGHT as T}from"../../constants.js";import P from"./OffsetWellsTable.module.css.js";import{getIsImperial as I}from"../../utils/unitSystem.js";function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function O(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?w(Object(i),!0).forEach((function(r){t(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var W=function(r){var m,w=r.open,W=r.isTableLoading,E=r.companyId,R=r.subjectWellId,B=r.sortBy,L=r.setSortBy,k=r.sortDirection,M=r.setSortDirection,N=r.columnsWithDict,F=r.wells,q=r.metricsKeys,V=r.setMetricsKeys,H=r.handleChanageOffsetWell,K=r.handleChangeAllOffsetWells,Z=r.handleAddRemoveAssets,z=r.isWellNameExpand,G=r.setIsWellNameExpand,U=r.isHscrollMoved,J=r.onHideAdvancedSearch,Q=r.isViewOnly,X=r.isLastWell,Y=r.contentRef,$=r.isLimitedOffsetwells,_=r.maxOffsetwellNumber,ee=r.wellSections,te=r.setActiveWellId,re=r.viewType,ie=i([]),oe=e(ie,2),ne=oe[0],se=oe[1],ae=i(null),le=e(ae,2),pe=le[0],me=le[1],de=i(0),ce=e(de,2),ue=ce[0],je=ce[1],Ce=i(0),fe=e(Ce,2),he=fe[0],be=fe[1],ve=o(),Ae=o(),ge=o();n((function(){if(!pe)return se(F),void be(0);var t=function(e,t,r,i){var o,n=e.findIndex((function(e){return t===e.id})),s=r.findIndex((function(e){return t===e.id}));-1===s&&(s=r.length);var a=Math.round(((null===(o=i.current)||void 0===o?void 0:o.clientHeight)-145)/T+1),l=s-n;Math.abs(l)>a&&(s=n+a*Math.sign(l));var p=s-n;return[n,s,p,200*(.4*Math.abs(p)+2),Math.min(n,s),(Math.abs(p)+1)*T]}(ne,pe,F,Y),r=e(t,6),i=r[0],o=r[1],n=r[2],s=r[3],a=r[4],l=r[5];if(ge.current=s,o===i)se(F);else{je(a),be(l);var p=function(e,t,r,i){return e.map((function(e,o){var n=r<o&&o<=i||i<=o&&o<r;return o===r?O(O({},e),{},{moveTo:t}):n?O(O({},e),{},{moveTo:r<i?-1:1,delayTime:Math.abs(o-r)}):e}))}(ne,n,i,o);se(p),setTimeout((function(){se(F),be(0),me(null)}),s)}}),[F]);var De=s((function(){var e=ne.filter((function(e){return e.checked}));return[e,ne.length!==e.length&&e.length&&!$,e.length===ne.length||$]}),[ne,$]),ye=e(De,3),Se=ye[0],xe=ye[1],Te=ye[2],Pe=s((function(){return I()}),[]),Ie=s((function(){return(q||[]).reduce((function(e,t){return e.concat(D.filter((function(e){return e.key===t})))}),[])}),[q]),we=s((function(){return z?y-58:S[0].width[q.length]-58}),[z,null==q?void 0:q.length]);n((function(){if(re!==x.mobile&&ve.current&&Ae.current){var e=ve.current.querySelector(".".concat(P.wellNameFixed));U?e.classList.remove(P.noShadow):e.classList.add(P.noShadow);var t=Ae.current.querySelectorAll(".".concat(P.wellNameFixed));U?t.forEach((function(e){return e.classList.remove(P.noShadow)})):t.forEach((function(e){return e.classList.add(P.noShadow)}))}}),[U,Ae.current,ve.current,ne]);var Oe=a((function(e,t){L(e),M(t)}),[]),We=a((function(e){V(e)}),[]),Ee=a((function(e,t){V((function(r){return r.map((function(r){return r===e?t:r}))}))}),[]);return N&&ne?f("div",{className:P.offsetWellsTable,children:[h("div",{className:P.stickyTable,children:h(d,{"aria-label":"ows table head",innerRef:ve,children:h(c,{children:h(A,{open:w,columnsWithDict:N,metricsKeys:q,sortBy:B,sortDirection:k,indeterminate:xe,isAllWellsSelected:Te,onChangeSort:Oe,onChangeMetricsKeys:We,onUpdateMetricsKey:Ee,isWellNameExpand:z,setIsWellNameExpand:G,handleChangeAllOffsetWells:K,wellNameStyle:P.wellNameFixed,isViewOnly:Q,isImperial:Pe,contentRef:Y,viewType:re})})})}),!Q&&h("div",{className:P.searchCell,children:h(v,{companyId:E,subjectWellId:R,wells:ne,onChange:Z,selectedWellIds:Se.map((function(e){return e.id})),onHideAdvancedSearch:J,width:null===(m=Y.current)||void 0===m?void 0:m.getBoundingClientRect().width})}),h(d,{"aria-label":"ows table body",innerRef:Ae,className:P.bodyTable,children:f(u,{children:[h(j,{children:h(C,{className:p(P.topShadow,t({},P.viewOnlyShadow,Q))})}),ne.map((function(e,t){return f(l,{children:[h(j,{children:pe&&he>0&&t===ue&&h(C,{style:{height:he}})}),h(g,{columnsWithDict:N,subjectWellId:R,data:e,metricsKeys:q,metricsColumns:Ie,handleChanageOffsetWell:H,isWellNameExpand:z,wellNameStyle:P.wellNameFixed,wellNameWidth:we,isViewOnly:Q,isImperial:Pe,isLimitedOffsetwells:$,maxOffsetwellNumber:_,wellSections:ee,setActiveWellId:te,viewType:re,newCheckedWellId:null!=e&&e.moveTo?pe:0,setNewCheckedWellId:me,index:null!=e&&e.moveTo?t:0,flyDuration:null!=e&&e.moveTo?ge.current:0})]},e.id)})),!X&&h(j,{children:h(C,{className:P.loadingCell,children:h("span",{children:"Loading..."})})}),h(j,{children:h(C,{className:P.bottomShadow})})]})}),W&&h(b,{fullscreen:!1,className:P.loadingContainer})]}):null};W.propTypes={open:m.bool.isRequired,isTableLoading:m.bool.isRequired,companyId:m.number.isRequired,subjectWellId:m.number.isRequired,sortBy:m.string.isRequired,setSortBy:m.func.isRequired,sortDirection:m.string.isRequired,setSortDirection:m.func.isRequired,columnsWithDict:m.arrayOf(m.shape({})).isRequired,wells:m.arrayOf(m.shape({})).isRequired,metricsKeys:m.arrayOf(m.string).isRequired,setMetricsKeys:m.func.isRequired,handleChanageOffsetWell:m.func.isRequired,handleChangeAllOffsetWells:m.func.isRequired,handleAddRemoveAssets:m.func.isRequired,setIsWellNameExpand:m.func.isRequired,isWellNameExpand:m.bool.isRequired,isHscrollMoved:m.bool.isRequired,onHideAdvancedSearch:m.func.isRequired,isViewOnly:m.bool.isRequired,isLastWell:m.bool.isRequired,isLimitedOffsetwells:m.bool.isRequired,maxOffsetwellNumber:m.number.isRequired,contentRef:m.shape().isRequired,wellSections:m.arrayOf(m.shape({})).isRequired,setActiveWellId:m.func.isRequired,viewType:m.string.isRequired};var E=r(W);export{E as default};
@@ -1,5 +1,5 @@
1
1
  declare const _default: import("react").MemoExoticComponent<{
2
- ({ columnsWithDict, data, subjectWellId, metricsKeys, metricsColumns, handleChanageOffsetWell, isWellNameExpand, wellNameStyle, wellNameWidth, isViewOnly, isImperial, isLimitedOffsetwells, wellSections, setActiveWellId, viewType, newCheckedWellId, setNewCheckedWellId, index, flyDuration, }: {
2
+ ({ columnsWithDict, data, subjectWellId, metricsKeys, metricsColumns, handleChanageOffsetWell, isWellNameExpand, wellNameStyle, wellNameWidth, isViewOnly, isImperial, isLimitedOffsetwells, maxOffsetwellNumber, wellSections, setActiveWellId, viewType, newCheckedWellId, setNewCheckedWellId, index, flyDuration, }: {
3
3
  columnsWithDict: any;
4
4
  data: any;
5
5
  subjectWellId: any;
@@ -12,6 +12,7 @@ declare const _default: import("react").MemoExoticComponent<{
12
12
  isViewOnly: any;
13
13
  isImperial: any;
14
14
  isLimitedOffsetwells: any;
15
+ maxOffsetwellNumber: any;
15
16
  wellSections: any;
16
17
  setActiveWellId: any;
17
18
  viewType: any;
@@ -40,6 +41,7 @@ declare const _default: import("react").MemoExoticComponent<{
40
41
  isViewOnly: PropTypes.Validator<boolean>;
41
42
  isImperial: PropTypes.Validator<boolean>;
42
43
  isLimitedOffsetwells: PropTypes.Validator<boolean>;
44
+ maxOffsetwellNumber: PropTypes.Validator<number>;
43
45
  wellSections: PropTypes.Validator<PropTypes.InferProps<{}>[]>;
44
46
  setActiveWellId: PropTypes.Validator<(...args: any[]) => any>;
45
47
  viewType: PropTypes.Validator<string>;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as i,useState as l,useRef as n,useCallback as a,useEffect as r,useMemo as s}from"react";import o from"prop-types";import{omit as c,startCase as d,get as m}from"lodash";import u from"classnames";import h from"moment";import{TableRow as f,TableCell as y,Checkbox as b,Tooltip as p,Typography as v}from"@material-ui/core";import{convertValue as w}from"../../../../utils/index.js";import{ColumnType as N,ROW_HEIGHT as g,ViewType as R,EXPANED_WELLNAME_WIDTH as W,LEAVE_TOUCH_DELAY as C,StatusOptions as k}from"../../constants.js";import{SubjectWellMark as T}from"./SubjectWellMark.js";import q from"./OffsetWellsTableRow.module.css.js";import x from"./ViewWellSectionsName.js";import{jsxs as D,jsx as O}from"react/jsx-runtime";var S="OffsetWellsTableRow";function j(e,t,i){var l=t.find((function(e){return e.key===i})),n=m(e,l.key);return"undefined"===n?"loading...":Number.isFinite(n)||n?l.unitType?w(n,l.unitType,l.from,l.to):n:"—"}function I(e,t){var i=m(e,N.distance);return Number.isFinite(i)?t?i:w(i,"length","mi","km"):"—"}function M(e,t){var i=e.find((function(e){return e.key===t}));return(null==i?void 0:i.width)||0}var _=function(i){var o,m,w,_=i.columnsWithDict,A=i.data,L=i.subjectWellId,Y=i.metricsKeys,z=i.metricsColumns,E=i.handleChanageOffsetWell,V=i.isWellNameExpand,F=i.wellNameStyle,K=i.wellNameWidth,P=i.isViewOnly,H=i.isImperial,B=i.isLimitedOffsetwells,G=i.wellSections,J=i.setActiveWellId,Q=i.viewType,U=i.newCheckedWellId,X=i.setNewCheckedWellId,Z=i.index,$=i.flyDuration,ee=L===A.id,te=t({},q.subjectWellRow,ee),ie=l(A.checked),le=e(ie,2),ne=le[0],ae=le[1],re=n(),se=!1,oe=A[N.name]||"—",ce=oe;if(!V&&2*K<8*oe.length){var de=function(e){var t=document.createElement("span");document.body.appendChild(t),t.style.font="Roboto",t.style.fontSize="14px",t.style.letterSpacing="0.01071em",t.style.height="auto",t.style.width="auto",t.style.position="absolute",t.style.whiteSpace="nowrap",t.innerHTML=e;var i=Math.ceil(t.clientWidth);return document.body.removeChild(t),i}(oe);if(de>2*K){var me=2*K/(de/oe.length);ce="".concat(oe.substring(0,me/2-2),"\n... ").concat(oe.substring(oe.length-me/2+6)),se=!0}}var ue=a((function(e,t,i,l,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=t-e;re.current.style.position="absolute",re.current.style.top="".concat(e,"px"),re.current.style.zIndex=i===l?4:3,re.current.style.transition="transform ".concat(n,"ms ease ").concat(50*a,"ms"),re.current.style.transform="translateY(".concat(r,"px)")}),[]),he=a((function(){re.current.style.position="unset",re.current.style.zIndex=1,re.current.style.transition="none",re.current.style.transform="none"}),[]),fe=a((function(e){X(A.id);var t=c(A,"moveTo");E(t,e),ae(e)}),[A,X,E]);r((function(){if(U){var e=Z*g+16;if(A.moveTo){var t=e+g*A.moveTo;ue(e,t,U,A.id,$,A.delayTime)}}else he()}),[A.moveTo,U]),r((function(){ae(A.checked)}),[A.checked]);var ye,be,pe=s((function(){return A[N.wellSection]}),[A]);return D(f,{"data-testid":"".concat(S,"_row_").concat(oe),className:u(q.bodyRow,t({},q.moveRow,1===Math.abs(A.moveTo)&&U!==A.id)),innerRef:re,onMouseEnter:function(){J(A.id)},onMouseLeave:function(){J(null)},children:[D(y,{"data-testid":"".concat(S,"_well"),className:u(q.bodyCell,q.wellNameCell,te,(o={},t(o,F,Q!==R.mobile),t(o,q.wellNameCellMobile,Q===R.mobile),o)),style:{width:V?W:M(_,N.name)},children:[ee&&O(T,{className:u(q.subjectWellMark,t({},q.subjectWellMarkMobile,Q===R.mobile))}),!ee&&O(b,{"data-testid":"".concat(S,"_checkbox"),size:"medium",checked:ne,disabled:P||B&&!A.checked,onChange:function(e){return fe(e.target.checked)}}),O(p,{title:se?oe:"",children:O(v,{variant:"body2",className:u(q.wellNameCursor,(m={},t(m,q.cellDataViewOnly,ee),t(m,q.wellNamePreWrap,se),m)),children:se?ce:oe})})]}),O(y,{"data-testid":"".concat(S,"_dot"),className:u(q.bodyCell,te),style:{width:M(_,N.status)},children:!ee&&O(p,{title:d(A[N.status]),enterTouchDelay:Q===R.mobile&&0,leaveTouchDelay:Q===R.mobile&&C,children:O("div",{className:q.statusContainer,children:O("div",{"data-testid":"".concat(S,"_color"),className:q.status,style:{background:null===(w=k.find((function(e){return e.value===A[N.status]})))||void 0===w?void 0:w.color}})})})}),O(y,{"data-testid":"".concat(S,"_rig"),className:u(q.bodyCell,te),style:{width:M(_,N.rig)},children:O(v,{variant:"body2",className:q.cellData,children:A[N.rig]&&"Null"!==A[N.rig]?A[N.rig]:"—"})}),O(y,{"data-testid":"".concat(S,"_distance"),className:u(q.bodyCell,te),style:{width:M(_,N.distance)},children:O(v,{variant:"body2",className:q.cellData,children:I(A,H)})}),O(y,{"data-testid":"".concat(S,"_lastActive"),className:u(q.bodyCell,te),style:{width:M(_,N.lastActive)},children:O(v,{variant:"body2",className:q.cellData,children:A[N.lastActive]&&Number.isFinite(A[N.lastActive])?h.unix(A[N.lastActive]).format("MM/DD/YYYY"):"—"})}),Y.map((function(e){return O(y,{"data-testid":"".concat(S,"_").concat(e),className:u(q.bodyCell,te),style:{width:M(_,e)},children:O(v,{variant:"body2",className:q.cellData,children:j(A,z,e)})},e)})),O(y,{"data-testid":"".concat(S,"_wellSection"),className:u(q.bodyCell,q.lastCell,te),style:{width:M(_,N.wellSection)},children:pe&&pe.length>1?O(p,{classes:{tooltip:q.customTooltip},title:O(x,{wellSectionNames:pe}),children:O("div",{className:q.sectionLength,children:pe.length})}):O(p,{title:pe||"",children:O(v,{variant:"body2",className:q.cellData,style:{color:pe&&1===pe.length&&(ye=pe,be=e(ye,1)[0],G.find((function(e){return e.label===be})).color)},children:pe})})})]})};_.propTypes={columnsWithDict:o.arrayOf(o.shape({})).isRequired,data:o.shape({id:o.number,checked:o.bool,name:o.string,status:o.string,moveTo:o.number,delayTime:o.number}).isRequired,subjectWellId:o.number.isRequired,metricsKeys:o.arrayOf(o.string).isRequired,metricsColumns:o.arrayOf(o.shape({})).isRequired,handleChanageOffsetWell:o.func.isRequired,isWellNameExpand:o.bool.isRequired,wellNameStyle:o.string.isRequired,wellNameWidth:o.number.isRequired,isViewOnly:o.bool.isRequired,isImperial:o.bool.isRequired,isLimitedOffsetwells:o.bool.isRequired,wellSections:o.arrayOf(o.shape({})).isRequired,setActiveWellId:o.func.isRequired,viewType:o.string.isRequired,newCheckedWellId:o.number.isRequired,setNewCheckedWellId:o.func.isRequired,index:o.number.isRequired,flyDuration:o.number.isRequired};var A=i(_);export{A as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as l,useState as i,useRef as a,useCallback as n,useEffect as s,useMemo as r}from"react";import o from"prop-types";import{omit as c,startCase as d,get as m}from"lodash";import u from"classnames";import h from"moment";import{TableRow as f,TableCell as b,Tooltip as y,Checkbox as p,Typography as v}from"@material-ui/core";import{convertValue as w}from"../../../../utils/index.js";import{ColumnType as N,ROW_HEIGHT as g,ViewType as R,EXPANED_WELLNAME_WIDTH as W,LEAVE_TOUCH_DELAY as k,StatusOptions as C}from"../../constants.js";import{SubjectWellMark as T}from"./SubjectWellMark.js";import q from"./OffsetWellsTableRow.module.css.js";import x from"./ViewWellSectionsName.js";import{jsxs as O,jsx as D}from"react/jsx-runtime";var S="OffsetWellsTableRow";function j(e,t,l){var i=t.find((function(e){return e.key===l})),a=m(e,i.key);return"undefined"===a?"loading...":Number.isFinite(a)||a?i.unitType?w(a,i.unitType,i.from,i.to):a:"—"}function I(e,t){var l=m(e,N.distance);return Number.isFinite(l)?t?l:w(l,"length","mi","km"):"—"}function M(e,t){var l=e.find((function(e){return e.key===t}));return(null==l?void 0:l.width)||0}var _=function(l){var o,m,w,_=l.columnsWithDict,A=l.data,L=l.subjectWellId,Y=l.metricsKeys,z=l.metricsColumns,E=l.handleChanageOffsetWell,V=l.isWellNameExpand,F=l.wellNameStyle,P=l.wellNameWidth,K=l.isViewOnly,B=l.isImperial,H=l.isLimitedOffsetwells,G=l.maxOffsetwellNumber,J=l.wellSections,Q=l.setActiveWellId,U=l.viewType,X=l.newCheckedWellId,Z=l.setNewCheckedWellId,$=l.index,ee=l.flyDuration,te=L===A.id,le=t({},q.subjectWellRow,te),ie=i(A.checked),ae=e(ie,2),ne=ae[0],se=ae[1],re=a(),oe=!1,ce=A[N.name]||"—",de=ce;if(!V&&2*P<8*ce.length){var me=function(e){var t=document.createElement("span");document.body.appendChild(t),t.style.font="Roboto",t.style.fontSize="14px",t.style.letterSpacing="0.01071em",t.style.height="auto",t.style.width="auto",t.style.position="absolute",t.style.whiteSpace="nowrap",t.innerHTML=e;var l=Math.ceil(t.clientWidth);return document.body.removeChild(t),l}(ce);if(me>2*P){var ue=2*P/(me/ce.length);de="".concat(ce.substring(0,ue/2-2),"\n... ").concat(ce.substring(ce.length-ue/2+6)),oe=!0}}var he=n((function(e,t,l,i,a){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=t-e;re.current.style.position="absolute",re.current.style.top="".concat(e,"px"),re.current.style.zIndex=l===i?4:3,re.current.style.transition="transform ".concat(a,"ms ease ").concat(50*n,"ms"),re.current.style.transform="translateY(".concat(s,"px)")}),[]),fe=n((function(){re.current.style.position="unset",re.current.style.zIndex=1,re.current.style.transition="none",re.current.style.transform="none"}),[]),be=n((function(e){Z(A.id);var t=c(A,"moveTo");E(t,e),se(e)}),[A,Z,E]);s((function(){if(X){var e=$*g+16;if(A.moveTo){var t=e+g*A.moveTo;he(e,t,X,A.id,ee,A.delayTime)}}else fe()}),[A.moveTo,X]),s((function(){se(A.checked)}),[A.checked]);var ye,pe,ve=r((function(){return A[N.wellSection]}),[A]);return O(f,{"data-testid":"".concat(S,"_row_").concat(ce),className:u(q.bodyRow,t({},q.moveRow,1===Math.abs(A.moveTo)&&X!==A.id)),innerRef:re,onMouseEnter:function(){Q(A.id)},onMouseLeave:function(){Q(null)},children:[O(b,{"data-testid":"".concat(S,"_well"),className:u(q.bodyCell,q.wellNameCell,le,(o={},t(o,F,U!==R.mobile),t(o,q.wellNameCellMobile,U===R.mobile),o)),style:{width:V?W:M(_,N.name)},children:[te&&D(T,{className:u(q.subjectWellMark,t({},q.subjectWellMarkMobile,U===R.mobile))}),!te&&D(y,{title:H&&!A.checked?"App can’t process more than (".concat(G-1,") Offset Wells."):"",placement:"bottom-start",classes:{tooltipPlacementBottom:q.checkboxTooltip},children:D("div",{children:D(p,{"data-testid":"".concat(S,"_checkbox"),size:"medium",checked:ne,classes:{disabled:q.checkboxDisabled},disabled:K||H&&!A.checked,onChange:function(e){return be(e.target.checked)}})})}),D(y,{title:oe?ce:"",children:D(v,{variant:"body2",className:u(q.wellNameCursor,(m={},t(m,q.cellDataViewOnly,te),t(m,q.wellNamePreWrap,oe),m)),children:oe?de:ce})})]}),D(b,{"data-testid":"".concat(S,"_dot"),className:u(q.bodyCell,le),style:{width:M(_,N.status)},children:!te&&D(y,{title:d(A[N.status]),enterTouchDelay:U===R.mobile&&0,leaveTouchDelay:U===R.mobile&&k,children:D("div",{className:q.statusContainer,children:D("div",{"data-testid":"".concat(S,"_color"),className:q.status,style:{background:null===(w=C.find((function(e){return e.value===A[N.status]})))||void 0===w?void 0:w.color}})})})}),D(b,{"data-testid":"".concat(S,"_rig"),className:u(q.bodyCell,le),style:{width:M(_,N.rig)},children:D(v,{variant:"body2",className:q.cellData,children:A[N.rig]&&"Null"!==A[N.rig]?A[N.rig]:"—"})}),D(b,{"data-testid":"".concat(S,"_distance"),className:u(q.bodyCell,le),style:{width:M(_,N.distance)},children:D(v,{variant:"body2",className:q.cellData,children:I(A,B)})}),D(b,{"data-testid":"".concat(S,"_lastActive"),className:u(q.bodyCell,le),style:{width:M(_,N.lastActive)},children:D(v,{variant:"body2",className:q.cellData,children:A[N.lastActive]&&Number.isFinite(A[N.lastActive])?h.unix(A[N.lastActive]).format("MM/DD/YYYY"):"—"})}),Y.map((function(e){return D(b,{"data-testid":"".concat(S,"_").concat(e),className:u(q.bodyCell,le),style:{width:M(_,e)},children:D(v,{variant:"body2",className:q.cellData,children:j(A,z,e)})},e)})),D(b,{"data-testid":"".concat(S,"_wellSection"),className:u(q.bodyCell,q.lastCell,le),style:{width:M(_,N.wellSection)},children:ve&&ve.length>1?D(y,{classes:{tooltip:q.customTooltip},title:D(x,{wellSectionNames:ve}),children:D("div",{className:q.sectionLength,children:ve.length})}):D(y,{title:ve||"",children:D(v,{variant:"body2",className:q.cellData,style:{color:ve&&1===ve.length&&(ye=ve,pe=e(ye,1)[0],J.find((function(e){return e.label===pe})).color)},children:ve})})})]})};_.propTypes={columnsWithDict:o.arrayOf(o.shape({})).isRequired,data:o.shape({id:o.number,checked:o.bool,name:o.string,status:o.string,moveTo:o.number,delayTime:o.number}).isRequired,subjectWellId:o.number.isRequired,metricsKeys:o.arrayOf(o.string).isRequired,metricsColumns:o.arrayOf(o.shape({})).isRequired,handleChanageOffsetWell:o.func.isRequired,isWellNameExpand:o.bool.isRequired,wellNameStyle:o.string.isRequired,wellNameWidth:o.number.isRequired,isViewOnly:o.bool.isRequired,isImperial:o.bool.isRequired,isLimitedOffsetwells:o.bool.isRequired,maxOffsetwellNumber:o.number.isRequired,wellSections:o.arrayOf(o.shape({})).isRequired,setActiveWellId:o.func.isRequired,viewType:o.string.isRequired,newCheckedWellId:o.number.isRequired,setNewCheckedWellId:o.func.isRequired,index:o.number.isRequired,flyDuration:o.number.isRequired};var A=l(_);export{A as default};
@@ -1 +1 @@
1
- import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={bodyRow:"OffsetWellsTableRow-module_bodyRow__UqDEw",bodyCell:"OffsetWellsTableRow-module_bodyCell__B-yWv",subjectWellRow:"OffsetWellsTableRow-module_subjectWellRow__x60wK",subjectWellMark:"OffsetWellsTableRow-module_subjectWellMark__S-nvA",subjectWellMarkMobile:"OffsetWellsTableRow-module_subjectWellMarkMobile__ghfJp",cellData:"OffsetWellsTableRow-module_cellData__SNLYB",cellDataViewOnly:"OffsetWellsTableRow-module_cellDataViewOnly__2Fd-1",hoverCell:"OffsetWellsTableRow-module_hoverCell__4wFuk",wellNameCell:"OffsetWellsTableRow-module_wellNameCell__BBEf-",wellNameCellMobile:"OffsetWellsTableRow-module_wellNameCellMobile__AJ0Rm",lastCell:"OffsetWellsTableRow-module_lastCell__VEQCi",subjectWellImage:"OffsetWellsTableRow-module_subjectWellImage__IkmRP",statusContainer:"OffsetWellsTableRow-module_statusContainer__IUVWC",status:"OffsetWellsTableRow-module_status__qWj9c",customTooltip:"OffsetWellsTableRow-module_customTooltip__aeWUJ",wellNameCursor:"OffsetWellsTableRow-module_wellNameCursor__BlXVa",wellNamePreWrap:"OffsetWellsTableRow-module_wellNamePreWrap__oXXEB",sectionLength:"OffsetWellsTableRow-module_sectionLength__vxefy",moveRow:"OffsetWellsTableRow-module_moveRow__dV8Gw"};e(".OffsetWellsTableRow-module_bodyRow__UqDEw{display:flex!important;flex-direction:row!important;margin-bottom:4px!important}.OffsetWellsTableRow-module_bodyRow__UqDEw:hover .OffsetWellsTableRow-module_bodyCell__B-yWv{background:#393939}.OffsetWellsTableRow-module_subjectWellRow__x60wK{border-color:var(--palette-primary-main)!important}.OffsetWellsTableRow-module_subjectWellMark__S-nvA{left:-1px;position:absolute;top:-1px;z-index:98}.OffsetWellsTableRow-module_subjectWellMarkMobile__ghfJp{top:16px}.OffsetWellsTableRow-module_bodyCell__B-yWv{align-items:center!important;background:var(--palette-background-b-8);border-top:1px solid var(--palette-primary-text-9);display:flex!important;height:56px!important;padding:0 12px 0 0!important}.OffsetWellsTableRow-module_cellData__SNLYB{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--palette-primary-text-1);display:-webkit-box;font-size:14px;font-weight:400;line-height:20px;overflow:hidden;overflow-wrap:break-word;white-space:normal}.OffsetWellsTableRow-module_cellDataViewOnly__2Fd-1{padding-left:12px}.OffsetWellsTableRow-module_hoverCell__4wFuk{background:var(--palette-background-b-7)!important}.OffsetWellsTableRow-module_wellNameCell__BBEf-{border-bottom-left-radius:4px;border-left:1px solid var(--palette-primary-text-9);border-top-left-radius:4px;left:0;position:sticky;z-index:2}.OffsetWellsTableRow-module_wellNameCellMobile__AJ0Rm{position:static}.OffsetWellsTableRow-module_lastCell__VEQCi{border-bottom-right-radius:4px;border-right:1px solid var(--palette-primary-text-9);border-top-right-radius:4px}.OffsetWellsTableRow-module_subjectWellImage__IkmRP{height:16px;width:16px}.OffsetWellsTableRow-module_statusContainer__IUVWC{align-items:center;display:flex;height:32px;justify-content:center;width:32px}.OffsetWellsTableRow-module_status__qWj9c{border-radius:50%;cursor:default;height:8px;width:8px}.OffsetWellsTableRow-module_customTooltip__aeWUJ{opacity:.9!important}.OffsetWellsTableRow-module_wellNameCursor__BlXVa{color:var(--palette-primary-text-1);cursor:default;white-space:normal;word-break:break-all}.OffsetWellsTableRow-module_wellNamePreWrap__oXXEB{white-space:pre}.OffsetWellsTableRow-module_sectionLength__vxefy{background:var(--palette-primary-text-9);border-radius:20px;cursor:default;padding:2px 8px}.OffsetWellsTableRow-module_moveRow__dV8Gw{opacity:.38!important}");export{l as default};
1
+ import e from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var l={bodyRow:"OffsetWellsTableRow-module_bodyRow__UqDEw",bodyCell:"OffsetWellsTableRow-module_bodyCell__B-yWv",subjectWellRow:"OffsetWellsTableRow-module_subjectWellRow__x60wK",subjectWellMark:"OffsetWellsTableRow-module_subjectWellMark__S-nvA",subjectWellMarkMobile:"OffsetWellsTableRow-module_subjectWellMarkMobile__ghfJp",cellData:"OffsetWellsTableRow-module_cellData__SNLYB",cellDataViewOnly:"OffsetWellsTableRow-module_cellDataViewOnly__2Fd-1",hoverCell:"OffsetWellsTableRow-module_hoverCell__4wFuk",wellNameCell:"OffsetWellsTableRow-module_wellNameCell__BBEf-",wellNameCellMobile:"OffsetWellsTableRow-module_wellNameCellMobile__AJ0Rm",lastCell:"OffsetWellsTableRow-module_lastCell__VEQCi",subjectWellImage:"OffsetWellsTableRow-module_subjectWellImage__IkmRP",statusContainer:"OffsetWellsTableRow-module_statusContainer__IUVWC",status:"OffsetWellsTableRow-module_status__qWj9c",customTooltip:"OffsetWellsTableRow-module_customTooltip__aeWUJ",wellNameCursor:"OffsetWellsTableRow-module_wellNameCursor__BlXVa",wellNamePreWrap:"OffsetWellsTableRow-module_wellNamePreWrap__oXXEB",sectionLength:"OffsetWellsTableRow-module_sectionLength__vxefy",moveRow:"OffsetWellsTableRow-module_moveRow__dV8Gw",checkboxTooltip:"OffsetWellsTableRow-module_checkboxTooltip__4e4Sp",checkboxDisabled:"OffsetWellsTableRow-module_checkboxDisabled__-lVnx"};e(".OffsetWellsTableRow-module_bodyRow__UqDEw{display:flex!important;flex-direction:row!important;margin-bottom:4px!important}.OffsetWellsTableRow-module_bodyRow__UqDEw:hover .OffsetWellsTableRow-module_bodyCell__B-yWv{background:#393939}.OffsetWellsTableRow-module_subjectWellRow__x60wK{border-color:var(--palette-primary-main)!important}.OffsetWellsTableRow-module_subjectWellMark__S-nvA{left:-1px;position:absolute;top:-1px;z-index:98}.OffsetWellsTableRow-module_subjectWellMarkMobile__ghfJp{top:16px}.OffsetWellsTableRow-module_bodyCell__B-yWv{align-items:center!important;background:var(--palette-background-b-8);border-top:1px solid var(--palette-primary-text-9);display:flex!important;height:56px!important;padding:0 12px 0 0!important}.OffsetWellsTableRow-module_cellData__SNLYB{-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--palette-primary-text-1);display:-webkit-box;font-size:14px;font-weight:400;line-height:20px;overflow:hidden;overflow-wrap:break-word;white-space:normal}.OffsetWellsTableRow-module_cellDataViewOnly__2Fd-1{padding-left:12px}.OffsetWellsTableRow-module_hoverCell__4wFuk{background:var(--palette-background-b-7)!important}.OffsetWellsTableRow-module_wellNameCell__BBEf-{border-bottom-left-radius:4px;border-left:1px solid var(--palette-primary-text-9);border-top-left-radius:4px;left:0;position:sticky;z-index:2}.OffsetWellsTableRow-module_wellNameCellMobile__AJ0Rm{position:static}.OffsetWellsTableRow-module_lastCell__VEQCi{border-bottom-right-radius:4px;border-right:1px solid var(--palette-primary-text-9);border-top-right-radius:4px}.OffsetWellsTableRow-module_subjectWellImage__IkmRP{height:16px;width:16px}.OffsetWellsTableRow-module_statusContainer__IUVWC{align-items:center;display:flex;height:32px;justify-content:center;width:32px}.OffsetWellsTableRow-module_status__qWj9c{border-radius:50%;cursor:default;height:8px;width:8px}.OffsetWellsTableRow-module_customTooltip__aeWUJ{opacity:.9!important}.OffsetWellsTableRow-module_wellNameCursor__BlXVa{color:var(--palette-primary-text-1);cursor:default;white-space:normal;word-break:break-all}.OffsetWellsTableRow-module_wellNamePreWrap__oXXEB{white-space:pre}.OffsetWellsTableRow-module_sectionLength__vxefy{background:var(--palette-primary-text-9);border-radius:20px;cursor:default;padding:2px 8px}.OffsetWellsTableRow-module_moveRow__dV8Gw{opacity:.38!important}.OffsetWellsTableRow-module_checkboxTooltip__4e4Sp{margin-left:11px!important;margin-top:-1px!important}.OffsetWellsTableRow-module_checkboxDisabled__-lVnx{opacity:.16!important}");export{l as default};
@@ -7,7 +7,7 @@ export namespace ViewType {
7
7
  const tablet: string;
8
8
  const mobile: string;
9
9
  }
10
- export const MAX_OFFSET_SIZE: 100;
10
+ export const MAX_OFFSET_SIZE: 1000;
11
11
  export const DEFAULT_BIC_OFFSET_SIZE: 50;
12
12
  export const DEFAULT_LOCAL_OFFSET_SIZE: 50;
13
13
  export const ANDROID_DEVICE: "Android";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/constants.js"],"names":[],"mappings":"AAGA,sCAAuC;AACvC,qCAAsC;;;;;;;;AAQtC,kCAAmC;AACnC,yCAA0C;AAC1C,2CAA4C;AAE5C,uCAAwC;AACxC,+BAAgC;AAChC,2CAA4C;AAC5C,mCAAoC;AAEpC,oCAAqC;AACrC,sCAAuC;AACvC,yCAA0C;AAC1C,+BAAgC;AAChC,4BAA6B;AAC7B,sCAAuC;;;;;;;;;;;;;;;;AAmBvC;;;IA6BE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;AAYF;;;;;IA2CE;AAEF;;;IAOE;AAEF,kCAAmC;AAEnC;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;;;;;;;;;;AAW/D,yCAYE"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellPickerV4/constants.js"],"names":[],"mappings":"AAGA,sCAAuC;AACvC,qCAAsC;;;;;;;;AAQtC,mCAAoC;AACpC,yCAA0C;AAC1C,2CAA4C;AAE5C,uCAAwC;AACxC,+BAAgC;AAChC,2CAA4C;AAC5C,mCAAoC;AAEpC,oCAAqC;AACrC,sCAAuC;AACvC,yCAA0C;AAC1C,+BAAgC;AAChC,4BAA6B;AAC7B,sCAAuC;;;;;;;;;;;;;;;;AAmBvC;;;IA6BE;;;;;;;;AAUF;;;IAME;;;;;;;;;;;;AAYF;;;;;IA2CE;AAEF;;;IAOE;AAEF,kCAAmC;AAEnC;;;;;;;;;;;;;KAqCE;AAEF,oCAA+D;;;;;;;;;;AAW/D,yCAYE"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=800,i=650,o={none:"none",normal:"normal",small:"small screen",tablet:"tablet",mobile:"mobile"},r=100,s=50,n=50,p="Android",_="iOS",d="Window Phone",m="other",c="all",u="All",g=450,b=50,v=60,h=1e4,y=a,F={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},w=[{value:F.rig,label:"Rig"},{value:F.program,label:"Program/BU"},{value:F.basin,label:"Basin"},{value:F.county,label:"County"},{value:F.area,label:"Area"},{value:F.formation,label:"Target Formation"},{value:F.stringDesign,label:"String Design"}],f={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},A=[{value:f.unknown,color:"#9E9E9E"},{value:f.idle,color:"#BDBDBD"},{value:f.active,color:"#95F126"},{value:f.paused,color:"#FFF350"},{value:f.complete,color:"#2196F3"}],k={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},E=[{type:k.name,label:"Well Name",key:k.name,width:[280,197,197,186]},{type:k.status,label:"",key:k.status,width:[40,40,40,30]},{type:k.rig,label:"Rig",key:k.rig,width:[220,140,140,93]},{type:k.distance,label:"Distance",key:k.distance,width:[160,160,122,93]},{type:k.lastActive,label:"Last Active",key:k.lastActive,width:[140,140,108,98]},{type:k.metrics,label:"",key:"",width:[0,212,141,141]},{type:k.wellSection,label:"Well Section",key:k.wellSection,width:[180,131,131,97]}],D=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Сustom"}],B=3,R=t([y.weight_to_weight_average,y.bottom_to_slips_average,y.drilling_connection_average,y.slips_to_bottom_average,y.hole_depth,y.hole_depth_change,y.drilled_feet_rotary,y.drilled_feet_slide,y.rop_gross,y.rop,y.rop_rotary,y.rop_slide,y.drilled_feet_rotary_percentage,y.drilled_feet_slide_percentage,y.on_bottom_percentage,y.on_bottom_time,y.cost_per_ft,y.cost_per_lat_ft,y.feet_per_day,y.tripping_in_speed_cased,y.tripping_in_speed_open,y.tripping_in_speed,y.tripping_out_speed_cased,y.tripping_out_speed_open,y.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[y.npt,y.circulating_time,y.spud_to_rig_release_time,y.spud_to_total_depth_time]:[])),"label"),C=R.map((function(e){return e.key})),N=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"];export{c as ALL_SECTION_KEY,u as ALL_SECTION_LABEL,p as ANDROID_DEVICE,k as ColumnType,s as DEFAULT_BIC_OFFSET_SIZE,n as DEFAULT_LOCAL_OFFSET_SIZE,g as EXPANED_WELLNAME_WIDTH,w as FilterOptions,F as FilterType,_ as IOS_DEVICE,h as LEAVE_TOUCH_DELAY,B as MAX_METRICS_COUNT,r as MAX_OFFSET_SIZE,C as METRICS_KEYS,R as METRICS_LIST,D as OBJECTIVE_PERIOD_LIST,m as OTHER_DEVICE,b as ROWS_PER_PAGE,v as ROW_HEIGHT,l as SMALL_SCREEN_HEIGHT,i as SMALL_SCREEN_WIDTH,A as StatusOptions,E as TableColumns,o as ViewType,d as WINDOWS_PHONE,N as WellSectionColors,f as WellStatus};
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import{sortBy as t}from"lodash";import"../../utils/index.js";import*as a from"../../utils/metrics/metricsConfig.js";var l=800,i=650,o={none:"none",normal:"normal",small:"small screen",tablet:"tablet",mobile:"mobile"},r=1e3,s=50,n=50,p="Android",_="iOS",d="Window Phone",m="other",c="all",u="All",g=450,b=50,v=60,h=1e4,y=a,F={status:"status",rig:"rigName",program:"programName",basin:"basin",county:"county",area:"area",formation:"formation",stringDesign:"stringDesign",radius:"radius",period:"period",sideTracks:"sideTracks",timeRangeFrom:"timeRangeFrom",timeRangeTo:"timeRangeTo"},w=[{value:F.rig,label:"Rig"},{value:F.program,label:"Program/BU"},{value:F.basin,label:"Basin"},{value:F.county,label:"County"},{value:F.area,label:"Area"},{value:F.formation,label:"Target Formation"},{value:F.stringDesign,label:"String Design"}],f={unknown:"unknown",idle:"idle",active:"active",paused:"paused",complete:"complete"},A=[{value:f.unknown,color:"#9E9E9E"},{value:f.idle,color:"#BDBDBD"},{value:f.active,color:"#95F126"},{value:f.paused,color:"#FFF350"},{value:f.complete,color:"#2196F3"}],k={name:"name",status:"status",rig:"rigName",distance:"distance",lastActive:"lastActive",metrics:"metrics",wellSection:"wellSection"},E=[{type:k.name,label:"Well Name",key:k.name,width:[280,197,197,186]},{type:k.status,label:"",key:k.status,width:[40,40,40,30]},{type:k.rig,label:"Rig",key:k.rig,width:[220,140,140,93]},{type:k.distance,label:"Distance",key:k.distance,width:[160,160,122,93]},{type:k.lastActive,label:"Last Active",key:k.lastActive,width:[140,140,108,98]},{type:k.metrics,label:"",key:"",width:[0,212,141,141]},{type:k.wellSection,label:"Well Section",key:k.wellSection,width:[180,131,131,97]}],D=[{value:"all",label:"All"},{value:"last12h",label:"Last 12 hrs"},{value:"last24h",label:"Last 24 hrs"},{value:"last7d",label:"Last 7 days"},{value:"lastMonth",label:"Last Month"},{value:"custom",label:"Сustom"}],B=3,R=t([y.weight_to_weight_average,y.bottom_to_slips_average,y.drilling_connection_average,y.slips_to_bottom_average,y.hole_depth,y.hole_depth_change,y.drilled_feet_rotary,y.drilled_feet_slide,y.rop_gross,y.rop,y.rop_rotary,y.rop_slide,y.drilled_feet_rotary_percentage,y.drilled_feet_slide_percentage,y.on_bottom_percentage,y.on_bottom_time,y.cost_per_ft,y.cost_per_lat_ft,y.feet_per_day,y.tripping_in_speed_cased,y.tripping_in_speed_open,y.tripping_in_speed,y.tripping_out_speed_cased,y.tripping_out_speed_open,y.tripping_out_speed].concat(e("production"!==process.env.REACT_APP_ENVIRONMENT?[y.npt,y.circulating_time,y.spud_to_rig_release_time,y.spud_to_total_depth_time]:[])),"label"),C=R.map((function(e){return e.key})),N=["#6EACFF","#69B919","#E95DAF","#A77DFF","#77FFC1","#018EFE","#FF5D7E","#B9E310","#FFD111","#24BB8E","#C426F3"];export{c as ALL_SECTION_KEY,u as ALL_SECTION_LABEL,p as ANDROID_DEVICE,k as ColumnType,s as DEFAULT_BIC_OFFSET_SIZE,n as DEFAULT_LOCAL_OFFSET_SIZE,g as EXPANED_WELLNAME_WIDTH,w as FilterOptions,F as FilterType,_ as IOS_DEVICE,h as LEAVE_TOUCH_DELAY,B as MAX_METRICS_COUNT,r as MAX_OFFSET_SIZE,C as METRICS_KEYS,R as METRICS_LIST,D as OBJECTIVE_PERIOD_LIST,m as OTHER_DEVICE,b as ROWS_PER_PAGE,v as ROW_HEIGHT,l as SMALL_SCREEN_HEIGHT,i as SMALL_SCREEN_WIDTH,A as StatusOptions,E as TableColumns,o as ViewType,d as WINDOWS_PHONE,N as WellSectionColors,f as WellStatus};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface RangeSliderProps extends PropTypes.InferProps<typeof rangeSliderPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RangeSlider.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/RangeSlider.tsx"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiBnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAEvF,QAAA,MAAM,WAAW;YAAW,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAuVzD,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAkBzB,CAAC;AAeF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"RangeSlider.d.ts","sourceRoot":"","sources":["../../../src/components/RangeSlider/RangeSlider.tsx"],"names":[],"mappings":";AAIA,OAAO,SAAS,MAAM,YAAY,CAAC;AAiBnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAEvF,QAAA,MAAM,WAAW;YAAW,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAuVzD,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;;;;;CAkBzB,CAAC;AAeF,eAAe,WAAW,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  import { TableProps } from '@material-ui/core';
3
4
  declare const ResizableTable: {
@@ -1 +1 @@
1
- {"version":3,"file":"ResizableTable.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTable.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAoD,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMjG,QAAA,MAAM,cAAc;4BAA2B,UAAU,GAAG,WAAW;;;;CAyEtE,CAAC;AAQF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ResizableTable.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTable.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAoD,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMjG,QAAA,MAAM,cAAc;4BAA2B,UAAU,GAAG,WAAW;;;;CAyEtE,CAAC;AAQF,eAAe,cAAc,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface ResizableTableCellProps {
3
4
  children: JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"ResizableTableCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB;AAED,iBAAwB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAQ7F;kBARuB,kBAAkB;;;;;eAAlB,kBAAkB"}
1
+ {"version":3,"file":"ResizableTableCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;CACtB;AAED,iBAAwB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAQ7F;kBARuB,kBAAkB;;;;;eAAlB,kBAAkB"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface ResizableTableHeaderCellProps extends PropTypes.InferProps<typeof resizableTableHeaderCellPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ResizableTableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableHeaderCell.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA+BnC,UAAU,6BAA8B,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,iCAAiC,CAAC;CAAG;AAEjH,iBAAwB,wBAAwB,CAAC,EAC/C,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAqD7C;kBA3DuB,wBAAwB;;;;;;;;;eAAxB,wBAAwB;AA6DhD,QAAA,MAAM,iCAAiC;;;;;;CAMtC,CAAC"}
1
+ {"version":3,"file":"ResizableTableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/components/ResizableTable/ResizableTableHeaderCell.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA+BnC,UAAU,6BAA8B,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,iCAAiC,CAAC;CAAG;AAEjH,iBAAwB,wBAAwB,CAAC,EAC/C,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,kBAAkB,GACnB,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAqD7C;kBA3DuB,wBAAwB;;;;;;;;;eAAxB,wBAAwB;AA6DhD,QAAA,MAAM,iCAAiC;;;;;;CAMtC,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface SearchProps extends PropTypes.InferProps<typeof searchPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAwBnC,UAAU,WAAY,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAE7E,QAAA,MAAM,MAAM;mOAiBT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Q3B,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAsBpB,CAAC;AAqBF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAwBnC,UAAU,WAAY,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAE7E,QAAA,MAAM,MAAM;mOAiBT,WAAW,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Q3B,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;CAsBpB,CAAC;AAqBF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps as MuiSelectProps, MenuProps as MuiMenuProps, FormControlProps as MuiFormControlProps } from '@material-ui/core';
2
3
  import PropTypes from 'prop-types';
3
4
  interface SelectProps extends MuiFormControlProps, PropTypes.InferProps<typeof selectPropTypes> {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,IAAI,cAAc,EAC7B,SAAS,IAAI,YAAY,EAEzB,gBAAgB,IAAI,mBAAmB,EAIxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAS,MAAM,YAAY,CAAC;AA+InC,UAAU,WAAY,SAAQ,mBAAmB,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;CACF;AAED,QAAA,MAAM,MAAM;2CAA0C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ChE,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiBpB,CAAC;AAYF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAEL,WAAW,IAAI,cAAc,EAC7B,SAAS,IAAI,YAAY,EAEzB,gBAAgB,IAAI,mBAAmB,EAIxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAS,MAAM,YAAY,CAAC;AA+InC,UAAU,WAAY,SAAQ,mBAAmB,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;CACF;AAED,QAAA,MAAM,MAAM;2CAA0C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ChE,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiBpB,CAAC;AAYF,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  declare type RadioEditorProps = PropTypes.InferProps<typeof radioEditorPropTypes>;
3
4
  declare const RadioEditor: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,aAAK,gBAAgB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,QAAA,MAAM,WAAW;wDAAuD,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;CAgBrG,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;CAMzB,CAAA;AAQD,eAAe,WAAW,CAAC;AAG3B,eAAO,MAAM,yBAAyB,kEAErC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,aAAK,gBAAgB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,QAAA,MAAM,WAAW;wDAAuD,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;CAgBrG,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;CAMzB,CAAA;AAQD,eAAe,WAAW,CAAC;AAG3B,eAAO,MAAM,yBAAyB,kEAErC,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface StepProps extends PropTypes.InferProps<typeof stepPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Step.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAuBnC,UAAU,SAAU,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzE,iBAAS,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAuBpH;kBAvBQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;AAyBb,QAAA,MAAM,aAAa;;;;;;;;;;CAUlB,CAAC;AAeF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Step.tsx"],"names":[],"mappings":";AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAuBnC,UAAU,SAAU,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzE,iBAAS,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAuBpH;kBAvBQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;AAyBb,QAAA,MAAM,aAAa;;;;;;;;;;CAUlB,CAAC;AAeF,eAAe,IAAI,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface StepperProps extends PropTypes.InferProps<typeof stepperPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,UAAU,YAAa,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE/E,iBAAS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAgBvE;kBAhBQ,OAAO;;;;;;;;;;;;;;;;;;;;;AAkBhB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;CAIrB,CAAC;AASF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,UAAU,YAAa,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE/E,iBAAS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAgBvE;kBAhBQ,OAAO;;;;;;;;;;;;;;;;;;;;;AAkBhB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;CAIrB,CAAC;AASF,eAAe,OAAO,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  interface StepsWrapperProps extends PropTypes.InferProps<typeof stepsWrapperPropTypes> {
3
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"StepsWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/StepsWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,UAAU,iBAAkB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAEzF,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAE7E;kBAFQ,YAAY;;;;;;;;;AAIrB,QAAA,MAAM,qBAAqB;;;CAG1B,CAAC;AAQF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"StepsWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/StepsWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,UAAU,iBAAkB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAEzF,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAE7E;kBAFQ,YAAY;;;;;;;;;AAIrB,QAAA,MAAM,qBAAqB;;;CAG1B,CAAC;AAQF,eAAe,YAAY,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import PropTypes from 'prop-types';
2
3
  declare type TextLinkProps = PropTypes.InferProps<typeof textLinkPropTypes>;
3
4
  declare const TextLink: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6CnC,aAAK,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;4GAUX,aAAa,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAgE7B,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;CAStB,CAAC;AAsBF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AA6CnC,aAAK,aAAa,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEpE,QAAA,MAAM,QAAQ;4GAUX,aAAa,GAAG,WAAW;;;;;;;;;;;;;;;;;;;CAgE7B,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;CAStB,CAAC;AAsBF,eAAe,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.52.0-12",
3
+ "version": "0.52.0-14",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -86,7 +86,7 @@
86
86
  "@babel/plugin-transform-runtime": "^7.12.10",
87
87
  "@babel/preset-env": "^7.12.11",
88
88
  "@babel/preset-react": "^7.12.10",
89
- "@corva/dc-platform-shared": "0.1.7-6",
89
+ "@corva/dc-platform-shared": "0.1.7-9",
90
90
  "@corva/eslint-config-browser": "^0.0.4",
91
91
  "@date-io/moment": "1.3.13",
92
92
  "@material-ui/core": "4.11.2",
@@ -131,7 +131,7 @@
131
131
  "mapbox.js": "3.2.1",
132
132
  "mini-css-extract-plugin": "0.9.0",
133
133
  "mobile-detect": "1.4.3",
134
- "moment": "2.23.0",
134
+ "moment": "2.29.4",
135
135
  "moment-duration-format": "1.3.0",
136
136
  "moment-timezone": "0.5.23",
137
137
  "node-fetch": "^2.6.1",
@@ -1 +0,0 @@
1
- import e from"prop-types";import{Tooltip as i,Badge as l,Typography as o}from"@material-ui/core";import s from"@material-ui/icons/Info";import t from"./CustomInfoIcon.module.css.js";import{ViewType as r,LEAVE_TOUCH_DELAY as a}from"../../constants.js";import{jsx as n,jsxs as p}from"react/jsx-runtime";var m=function(e){var i=e.sourceApp,l=e.isViewOnly,s=e.maxOffsetwellNumber,r=e.selectedCount;return l&&s<=r+1?p("div",{className:t.tooltipContainer,children:[p("div",{className:t.tooltipWrapper,children:[n(o,{className:t.tooltipLabel,children:"1."}),p(o,{className:t.tooltipLabel,children:["This application can work with no more than (",s-1,") Offset Wells at a time."]})]}),p("div",{className:t.tooltipWrapper,children:[n(o,{className:t.tooltipLabel,children:"2."}),p(o,{className:t.tooltipLabel,children:["The window is in the view only mode. To edit offset wells, use the ",i,"."]})]})]}):l?n("div",{className:t.tooltipContainer,children:p("span",{className:t.tooltipLabel,children:["The window is in the view only mode. To edit offset wells, use the ",i,"."]})}):s<=r+1?n("div",{className:t.tooltipContainer,children:p("span",{className:t.tooltipLabel,children:["This application can work with no more than (",s-1,") Offset Wells at a time."]})}):null};function c(e){var o=e.isWDUser,c=e.isViewOnly,d=e.maxOffsetwellNumber,u=e.selectedCount,f=e.viewType;return n(i,{title:n(m,{sourceApp:o?"Offset Well Selection app":"Wellhub",isViewOnly:c,maxOffsetwellNumber:d,selectedCount:u}),enterTouchDelay:f===r.mobile&&0,leaveTouchDelay:f===r.mobile&&a,placement:f===r.mobile?"":"right",classes:{popper:c&&d<=u&&t.tooltipPopper},children:p("div",{className:t.infoWrapper,children:[n(s,{className:t.infoIcon}),c&&d<=u&&n(l,{badgeContent:2,classes:{badge:t.infoBadge}})]})})}m.propTypes={sourceApp:e.string.isRequired,isViewOnly:e.bool.isRequired,maxOffsetwellNumber:e.number.isRequired,selectedCount:e.number.isRequired},c.propTypes={isWDUser:e.bool.isRequired,selectedCount:e.number.isRequired,isViewOnly:e.bool.isRequired,maxOffsetwellNumber:e.number.isRequired,viewType:e.string.isRequired};export{c as CustomInfoIcon};
@@ -1 +0,0 @@
1
- import o from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={infoWrapper:"CustomInfoIcon-module_infoWrapper__uxAjc",infoIcon:"CustomInfoIcon-module_infoIcon__VAE52",infoBadge:"CustomInfoIcon-module_infoBadge__4YnF4",tooltipContainer:"CustomInfoIcon-module_tooltipContainer__XzJTY",tooltipPopper:"CustomInfoIcon-module_tooltipPopper__2JYQc",tooltipWrapper:"CustomInfoIcon-module_tooltipWrapper__pjtex",tooltipLabel:"CustomInfoIcon-module_tooltipLabel__hGMtU"};o(".CustomInfoIcon-module_infoWrapper__uxAjc{align-items:center;display:flex;margin-left:18px;position:relative}.CustomInfoIcon-module_infoIcon__VAE52{color:var(--palette-info-light);font-size:20px!important}.CustomInfoIcon-module_infoBadge__4YnF4{background-color:var(--palette-primary-text-9);border:2px solid var(--palette-background-b-9);border-radius:16px!important;box-sizing:content-box!important;color:var(--palette-primary-text-6);font-size:11px!important;font-weight:400!important;height:16px!important;line-height:14px!important;min-width:16px!important;padding:0!important;right:-2px!important;top:-10px!important}.CustomInfoIcon-module_tooltipContainer__XzJTY{display:flex;flex-direction:column;gap:12px;padding:4px}.CustomInfoIcon-module_tooltipPopper__2JYQc{margin-left:12px!important}.CustomInfoIcon-module_tooltipWrapper__pjtex{display:flex;gap:4px}.CustomInfoIcon-module_tooltipLabel__hGMtU{color:#fff!important;font-size:12px!important;font-weight:400!important;letter-spacing:.4px!important;line-height:16px!important}");export{t as default};