@corva/ui 0.57.0-7 → 0.57.0-9

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 (185) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  3. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  4. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  5. package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
  6. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  9. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  10. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  11. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  12. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  13. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  14. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  15. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  16. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  17. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  18. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  19. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  20. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  21. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  22. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  33. package/cjs-bundle/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  34. package/cjs-bundle/components/FeedItem/components/Content.js +1 -1
  35. package/cjs-bundle/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -0
  36. package/cjs-bundle/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -0
  37. package/cjs-bundle/components/Notifications/Notifications.js +1 -1
  38. package/cjs-bundle/components/Notifications/NotificationsContainer.js +1 -1
  39. package/cjs-bundle/components/Notifications/Toast.js +1 -0
  40. package/cjs-bundle/components/Notifications/Toast.styles.js +1 -0
  41. package/cjs-bundle/components/OffsetWellMap/OffsetWellMap.js +1 -1
  42. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  43. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  44. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  45. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  59. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  60. package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  61. package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
  62. package/cjs-bundle/components/StatusBadge/index.js +1 -1
  63. package/cjs-bundle/components/TextLink/index.js +1 -1
  64. package/cjs-bundle/components/index.js +1 -1
  65. package/cjs-bundle/constants/feed.js +1 -1
  66. package/cjs-bundle/utils/feed.js +1 -1
  67. package/cjs-bundle/utils/reports.js +1 -1
  68. package/components/AddComment/Popover.js +1 -1
  69. package/components/AddComment/components/Content.js +1 -1
  70. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  71. package/components/BICOffsetPickerDialog/index.js +1 -1
  72. package/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +2 -0
  73. package/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts.map +1 -0
  74. package/components/Breadcrumbs/index.js +1 -1
  75. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  76. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  77. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  78. package/components/CollapsableSidebar.js +1 -1
  79. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  80. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  81. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  82. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  83. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  84. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  85. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  86. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  87. package/components/DocumentViewer/DocumentViewer.js +1 -1
  88. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  89. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  90. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  91. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  92. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  93. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  94. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  95. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  96. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  97. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  98. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  99. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  100. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  101. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  102. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.d.ts.map +1 -1
  103. package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
  104. package/components/FeedItem/components/Content.d.ts.map +1 -1
  105. package/components/FeedItem/components/Content.js +1 -1
  106. package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.d.ts +21 -0
  107. package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.d.ts.map +1 -0
  108. package/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js +1 -0
  109. package/components/FeedItem/editModals/HookloadCommentEdit/index.d.ts +2 -0
  110. package/components/FeedItem/editModals/HookloadCommentEdit/index.d.ts.map +1 -0
  111. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts +19 -0
  112. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.d.ts.map +1 -0
  113. package/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js +1 -0
  114. package/components/Notifications/Notifications.d.ts +7 -21
  115. package/components/Notifications/Notifications.d.ts.map +1 -1
  116. package/components/Notifications/Notifications.js +1 -1
  117. package/components/Notifications/NotificationsContainer.d.ts +2 -2
  118. package/components/Notifications/NotificationsContainer.d.ts.map +1 -1
  119. package/components/Notifications/NotificationsContainer.js +1 -1
  120. package/components/Notifications/Toast.d.ts +10 -0
  121. package/components/Notifications/Toast.d.ts.map +1 -0
  122. package/components/Notifications/Toast.js +1 -0
  123. package/components/Notifications/Toast.styles.d.ts +2 -0
  124. package/components/Notifications/Toast.styles.d.ts.map +1 -0
  125. package/components/Notifications/Toast.styles.js +1 -0
  126. package/components/Notifications/__tests__/NotificationsContainer.test.d.ts +2 -0
  127. package/components/Notifications/__tests__/NotificationsContainer.test.d.ts.map +1 -0
  128. package/components/Notifications/__tests__/Toast.test.d.ts +2 -0
  129. package/components/Notifications/__tests__/Toast.test.d.ts.map +1 -0
  130. package/components/Notifications/index.d.ts +2 -2
  131. package/components/Notifications/index.d.ts.map +1 -1
  132. package/components/Notifications/types.d.ts +18 -0
  133. package/components/Notifications/types.d.ts.map +1 -0
  134. package/components/OffsetWellMap/OffsetWellMap.d.ts +1 -7
  135. package/components/OffsetWellMap/OffsetWellMap.d.ts.map +1 -1
  136. package/components/OffsetWellMap/OffsetWellMap.js +1 -1
  137. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  138. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  139. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  140. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  141. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  142. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  143. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  144. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  145. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  146. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  147. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  148. package/components/OffsetWellPickerV4/OffsetWellPickerV4.d.ts.map +1 -1
  149. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  150. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  151. package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts +1 -7
  152. package/components/OffsetWellPickerV4/components/Map/WellsMap.d.ts.map +1 -1
  153. package/components/OffsetWellPickerV4/components/Map/WellsMap.js +1 -1
  154. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  155. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  156. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  157. package/components/StatusBadge/components/DQAlertsTooltip.d.ts.map +1 -1
  158. package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  159. package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
  160. package/components/StatusBadge/components/ReportIssueModal.js +1 -1
  161. package/components/StatusBadge/constants.d.ts +1 -0
  162. package/components/StatusBadge/constants.d.ts.map +1 -1
  163. package/components/StatusBadge/index.d.ts.map +1 -1
  164. package/components/StatusBadge/index.js +1 -1
  165. package/components/TextLink/index.js +1 -1
  166. package/components/index.js +1 -1
  167. package/constants/feed.d.ts.map +1 -1
  168. package/constants/feed.js +1 -1
  169. package/effects/__tests__/useEscPress.test.d.ts +2 -0
  170. package/effects/__tests__/useEscPress.test.d.ts.map +1 -0
  171. package/effects/__tests__/useOutsideClick.test.d.ts +2 -0
  172. package/effects/__tests__/useOutsideClick.test.d.ts.map +1 -0
  173. package/package.json +1 -1
  174. package/utils/feed.d.ts.map +1 -1
  175. package/utils/feed.js +1 -1
  176. package/utils/reports.d.ts.map +1 -1
  177. package/utils/reports.js +1 -1
  178. package/cjs-bundle/components/Notifications/components/Toast.js +0 -1
  179. package/cjs-bundle/components/Notifications/components/styles.js +0 -1
  180. package/components/Notifications/components/Toast.d.ts +0 -28
  181. package/components/Notifications/components/Toast.d.ts.map +0 -1
  182. package/components/Notifications/components/Toast.js +0 -1
  183. package/components/Notifications/components/styles.d.ts +0 -2
  184. package/components/Notifications/components/styles.d.ts.map +0 -1
  185. package/components/Notifications/components/styles.js +0 -1
@@ -0,0 +1,21 @@
1
+ export default HookloadCommentEdit;
2
+ declare function HookloadCommentEdit({ feedItem: { context: { hookload_broomstick_comment: { body, attachment, data: pointData, data: { timestamp, measuredDepth, activityLabel, hookload }, }, }, }, onClose, onSave, userCompanyId, }: {
3
+ feedItem: {
4
+ context: {
5
+ hookload_broomstick_comment: {
6
+ body: any;
7
+ attachment: any;
8
+ data: {
9
+ timestamp: any;
10
+ measuredDepth: any;
11
+ activityLabel: any;
12
+ hookload: any;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ onClose: any;
18
+ onSave: any;
19
+ userCompanyId: any;
20
+ }): JSX.Element;
21
+ //# sourceMappingURL=HookloadCommentEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HookloadCommentEdit.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/HookloadCommentEdit/HookloadCommentEdit.js"],"names":[],"mappings":";AA6EA;;;;;;;;;;;;;;;;;;gBAyJC"}
@@ -0,0 +1 @@
1
+ import t from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useRef as o,useState as r}from"react";import n from"moment";import{debounce as a}from"lodash";import i from"classnames";import{makeStyles as c,Grid as l,Typography as s}from"@material-ui/core";import m from"../../../Modal/Modal.js";import p from"../../../PostInput/PostInput.js";import d from"../../../IconButton/index.js";import{Regular14 as u}from"../../../Typography.js";import f from"../../../Icons/SendIcon.js";import{isSuggestionsListOpened as h}from"../../../UserMention/utils/index.js";import{convertValue as g,getUnitDisplay as b}from"../../../../utils/convert.js";import{jsxs as y,jsx as v}from"react/jsx-runtime";function x(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function w(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?x(Object(r),!0).forEach((function(o){t(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=c((function(t){return{postInput:{paddingBottom:8},filePreviewWrapper:{width:"100%",marginLeft:0,maxHeight:251},modal:{maxWidth:450,width:"100vw"},actionsAdornment:{flex:1},info:{marginTop:16},text:{color:t.palette.primary.text6},value:{color:"#fff",paddingLeft:4},inputMain:{marginBottom:0,fontSize:"11px",color:t.palette.primary.text8},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:t.palette.primary.main},modalActions:{paddingTop:16},actions:{height:36},sendRow:{display:"flex"},sendIcon:{"&.Mui-disabled":{cursor:"not-allowed!important"}}}})),N={suggestions:{list:{background:"#414141"},item:{color:"white",height:30,"&focused":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}};function O(t){var c=t.feedItem.context.hookload_broomstick_comment,x=c.body,O=c.attachment,P=c.data,C=c.data,k=C.timestamp,I=C.measuredDepth,M=C.activityLabel,D=C.hookload,B=t.onClose,S=t.onSave,L=t.userCompanyId,H=j(),T=g(+I,"length","ft"),A=g(+D,"force","klbf"),E=o(),W=r({body:x,attachment:O}),_=e(W,2),R=_[0],K=_[1],Y=a(K,300),z=function(){S({context:{hookload_broomstick_comment:w(w({},R),{},{data:P})}})};return y(m,{open:!0,onClose:B,title:"Edit Comment",contentClassName:H.modal,actionsClassName:H.modalActions,onClick:function(t){t.stopPropagation()},actions:y(l,{container:!0,direction:"row",justify:"space-between",alignItems:"center",className:H.actions,children:[v(l,{item:!0,children:v(s,{variant:"caption",className:i(H.inputMain,H.cancelText,H.highlightedLabel),component:"div",gutterBottom:!0,onClick:B,children:"Cancel"})}),y(l,{item:!0,direction:"row",alignItems:"center",className:H.sendRow,children:[y(s,{variant:"caption",className:i(H.inputMain,H.inputHelper),component:"div",gutterBottom:!0,children:["Press ",v(s,{variant:"caption",color:"primary",className:i(H.inputMain,H.highlightedLabel),children:"Enter"})," to send"]}),v(d,{onClick:z,className:H.sendIcon,disabled:!R||!R.body&&!R.attachment,children:v(f,{})})]})]}),ref:E,children:[v(p,{initialValue:{body:x,attachment:O},userCompanyId:L,onChange:Y,filePreviewWrapperClass:H.filePreviewWrapper,className:H.postInput,onKeyDown:function(t){"Enter"!==t.key||t.shiftKey||h()||(t.preventDefault(),z())},mentionStyle:N,suggestionsPortalHost:E.current,allowSuggestionsAboveCursor:!0}),y("div",{className:H.info,children:[Number.isFinite(I)&&y(u,{className:H.text,gutterBottom:!0,children:["Measured Depth:",v("span",{className:H.value,children:"".concat(Math.round(T).toLocaleString()," ").concat(b("length"))})]}),D&&y(u,{className:H.text,gutterBottom:!0,children:["Hookload:",v("span",{className:H.value,children:"".concat(Math.round(A).toLocaleString()," ").concat(b("force"))})]}),M&&y(u,{className:H.text,gutterBottom:!0,children:["Activity:",v("span",{className:H.value,children:M})]}),k&&y(u,{className:H.text,gutterBottom:!0,children:["Time:",v("span",{className:H.value,children:n.unix(k).format("MM/DD/YY HH:mm")})]})]})]})}export{O as default};
@@ -0,0 +1,2 @@
1
+ export { default } from "./HookloadCommentEdit";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/FeedItem/editModals/HookloadCommentEdit/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export default HookloadCommentFeedItem;
2
+ declare function HookloadCommentFeedItem({ feedItem: { context: { hookload_broomstick_comment: { body, attachment, data: { timestamp, measuredDepth, activityLabel, hookload }, }, }, mentioned_users: mentionedUsers, }, }: {
3
+ feedItem: {
4
+ context: {
5
+ hookload_broomstick_comment: {
6
+ body: any;
7
+ attachment?: {};
8
+ data: {
9
+ timestamp: any;
10
+ measuredDepth: any;
11
+ activityLabel: any;
12
+ hookload: any;
13
+ };
14
+ };
15
+ };
16
+ mentioned_users: any;
17
+ };
18
+ }): JSX.Element;
19
+ //# sourceMappingURL=HookloadCommentFeedItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HookloadCommentFeedItem.d.ts","sourceRoot":"","sources":["../../../../src/components/FeedItem/feedItemTypes/HookloadCommentFeedItem.js"],"names":[],"mappings":";AA6BA;;;;;;;;;;;;;;;;gBAkEC"}
@@ -0,0 +1 @@
1
+ import{makeStyles as e,Typography as t}from"@material-ui/core";import a from"moment";import{isNativeDetected as o}from"../../../utils/mobileDetect.js";import{formatMentionText as i}from"../../UserMention/utils/index.js";import r from"../../Attachment/index.js";import{convertValue as n,getUnitDisplay as m}from"../../../utils/convert.js";import{jsxs as l,jsx as c}from"react/jsx-runtime";var d=e((function(e){return{text:{color:e.palette.primary.text6},value:{color:"#fff"},attachment:{paddingTop:10,width:300},infoField:{color:e.palette.primary.text6,"& span":{color:"#fff"}}}})),s=function(e){var s=e.feedItem,f=s.context.hookload_broomstick_comment,h=f.body,p=f.attachment,u=void 0===p?{}:p,v=f.data,g=v.timestamp,x=v.measuredDepth,N=v.activityLabel,b=v.hookload,y=s.mentioned_users,F=d(),k=n(+x,"length","ft"),M=n(+b,"force","klbf");return l("div",{className:F.wrapper,children:[h&&c(t,{"data-testid":"".concat("HookloadCommentFeedItem","_message"),variant:"body1",gutterBottom:!0,children:i(h,y,o)}),Number.isFinite(x)&&l(t,{className:F.infoField,children:["Measured Depth:"," ",c("span",{children:"".concat(Math.round(k).toLocaleString()," ").concat(m("length"))})]}),b&&l(t,{className:F.infoField,children:["Hookload:"," ",c("span",{children:"".concat(Math.round(M).toLocaleString()," ").concat(m("force"))})]}),N&&l(t,{className:F.infoField,children:["Activity: ",c("span",{children:N})]}),g&&l(t,{className:F.infoField,children:["Time: ",c("span",{children:a.unix(g).format("MM/DD/YY HH:mm")})]}),u&&(u.signed_url||u.url||u.name)&&c("div",{className:F.attachment,children:c(r,{small:!0,attachmentUrl:u.signed_url||u.url,fileName:u.name,displayName:u.name})})]})};export{s as default};
@@ -1,23 +1,9 @@
1
- export default Notifications;
2
- declare function Notifications({ notifications, removeNotification }: {
3
- notifications: any;
4
- removeNotification: any;
5
- }): JSX.Element;
6
- declare namespace Notifications {
7
- namespace propTypes {
8
- const removeNotification: PropTypes.Validator<(...args: any[]) => any>;
9
- const notifications: PropTypes.Validator<PropTypes.InferProps<{
10
- alertLevel: PropTypes.Requireable<string>;
11
- autoHideDuration: PropTypes.Requireable<number>;
12
- content: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
13
- hideIcon: PropTypes.Requireable<boolean>;
14
- icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
15
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
16
- timestamp: PropTypes.Requireable<string>;
17
- title: PropTypes.Requireable<string>;
18
- variant: PropTypes.Requireable<string>;
19
- }>[]>;
20
- }
1
+ /// <reference types="react" />
2
+ import { Notification } from './types';
3
+ interface NotificationsProps {
4
+ removeNotification: (id: string) => void;
5
+ notifications: Notification[];
21
6
  }
22
- import PropTypes from "prop-types";
7
+ export declare const Notifications: ({ notifications, removeNotification, }: NotificationsProps) => JSX.Element;
8
+ export {};
23
9
  //# sourceMappingURL=Notifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.js"],"names":[],"mappings":";AAMA;;;gBAiBC"}
1
+ {"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Notifications.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,UAAU,kBAAkB;IAC1B,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,aAAa,2CAGvB,kBAAkB,KAAG,WAkBvB,CAAC"}
@@ -1 +1 @@
1
- import i from"prop-types";import o from"@material-ui/core/Snackbar";import r from"./components/Toast.js";import{jsx as n}from"react/jsx-runtime";var t=function(i){var t=i.notifications,e=i.removeNotification;return n(o,{anchorOrigin:{vertical:"top",horizontal:"right"},open:!0,ClickAwayListenerProps:{onClickAway:function(i){return i.stopPropagation()}},children:n("div",{children:t.map((function(i){return n(r,{onDismissClick:e,toast:i},i.id)}))})})};t.propTypes={removeNotification:i.func.isRequired,notifications:i.arrayOf(i.shape({alertLevel:i.oneOf(["info","warning","critical"]),autoHideDuration:i.number,content:i.node.isRequired,hideIcon:i.bool,icon:i.node,onClick:i.func,timestamp:i.string,title:i.string,variant:i.oneOf(["success","warning","error","info","neutral"])})).isRequired};export{t as default};
1
+ import{__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import r from"@material-ui/core/Snackbar";import{Toast as t}from"./Toast.js";var n=function(n){var a=n.notifications,e=n.removeNotification;return o(r,i({anchorOrigin:{vertical:"top",horizontal:"right"},open:!0,ClickAwayListenerProps:{onClickAway:function(i){return i.stopPropagation()}}},{children:o("div",{children:a.map((function(i){return o(t,{onDismissClick:e,toast:i},i.id)}))})}))};export{n as Notifications};
@@ -1,3 +1,3 @@
1
- export default NotificationsContainer;
2
- declare function NotificationsContainer(): JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const NotificationsContainer: () => JSX.Element;
3
3
  //# sourceMappingURL=NotificationsContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/NotificationsContainer.js"],"names":[],"mappings":";AAIA,uDAoEC"}
1
+ {"version":3,"file":"NotificationsContainer.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/NotificationsContainer.tsx"],"names":[],"mappings":";AAeA,eAAO,MAAM,sBAAsB,mBAoElC,CAAC"}
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/toConsumableArray";import n from"@babel/runtime/helpers/slicedToArray";import{useState as o,useEffect as e}from"react";import{v4 as i}from"uuid";import c from"./Notifications.js";import{jsx as a}from"react/jsx-runtime";function f(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?f(Object(o),!0).forEach((function(n){r(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var s=function(){var r=o([]),f=n(r,2),s=f[0],l=f[1],p=function(r){l((function(n){return[].concat(t(n),[r])}))},m=function(r){l((function(t){return t.filter((function(t){return t.id!==r}))}))},b=function(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={info:"Info",error:"Error",warning:"Warning",success:"Success",neutral:"Neutral"},e=3e3,c=u({autoHideDuration:e,content:t||o[r]||"info",id:i(),variant:r},n);return p(c),c.id},v=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b("success",r,t)},h=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b("error",r,t)},d=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b("warning",r,t)},g=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b("info",r,t)},O=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b("neutral",r,t)};return e((function(){window[Symbol.for("notificationToasts")]={createNotification:p,removeNotification:m,showErrorNotification:h,showInfoNotification:g,showNeutralNotification:O,showSuccessNotification:v,showWarningNotification:d}}),[]),a(c,{notifications:s,removeNotification:m})};export{s as default};
1
+ import{__spreadArray as o,__assign as i}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{useState as t,useEffect as r}from"react";import{v4 as e}from"uuid";import{Notifications as u}from"./Notifications.js";var c=function(){var c=t([]),f=c[0],a=c[1],s=function(i){a((function(n){return o(o([],n,!0),[i],!1)}))},m=function(o){a((function(i){return i.filter((function(i){return i.id!==o}))}))},N=function(o,n,t){void 0===t&&(t={});var r=i({autoHideDuration:3e3,content:n||{info:"Info",error:"Error",warning:"Warning",success:"Success",neutral:"Neutral"}[o]||"info",id:e(),variant:o},t);return s(r),r.id},d=function(o,i){return N("success",o,i)},l=function(o,i){return N("error",o,i)},w=function(o,i){return N("warning",o,i)},v=function(o,i){return N("info",o,i)},p=function(o,i){return N("neutral",o,i)};return r((function(){window[Symbol.for("notificationToasts")]={createNotification:s,removeNotification:m,showErrorNotification:l,showInfoNotification:v,showNeutralNotification:p,showSuccessNotification:d,showWarningNotification:w}}),[]),n(u,{notifications:f,removeNotification:m})};export{c as NotificationsContainer};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Notification } from './types';
3
+ export declare const PAGE_NAME = "NotificationPopup";
4
+ interface ToastProps {
5
+ onDismissClick: (id: string) => void;
6
+ toast: Notification;
7
+ }
8
+ export declare const Toast: ({ onDismissClick, toast, ...other }: ToastProps) => JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=Toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Toast.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAIvC,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAU7C,UAAU,UAAU;IAClB,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,eAAO,MAAM,KAAK,wCAAyC,UAAU,KAAG,WAsHvE,CAAC"}
@@ -0,0 +1 @@
1
+ import{__rest as t,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useEffect as a,cloneElement as s}from"react";import n from"classnames";import{noop as c}from"lodash";import{Grow as r,SnackbarContent as l,Tooltip as m,Typography as d}from"@material-ui/core";import{CheckCircleOutline as p,ReportProblemOutlined as f,ReportOutlined as u,InfoOutlined as v,Check as h,Close as C}from"@material-ui/icons";import N from"../IconButton/index.js";import{NOTIFICATION_VARIANTS as b}from"../../constants/notifications.js";import{useStyles as g}from"./Toast.styles.js";var k,_="NotificationPopup",j=((k={})[b.success]=p,k[b.warning]=f,k[b.error]=u,k[b.info]=v,k[b.neutral]=h,k),I=function(p){var f=p.onDismissClick,u=p.toast,v=t(p,["onDismissClick","toast"]),h=u.alertLevel,k=u.autoHideDuration,I=void 0===k?3e3:k,T=u.content,x=u.hideIcon,B=u.icon,D=u.id,P=u.onClick,y=void 0===P?c:P,L=u.onClose,W=void 0===L?c:L,w=u.timestamp,z=u.title,H=u.tooltipProps,q=u.variant,A=void 0===q?"info":q;a((function(){var t=setTimeout((function(){return f(D)}),I);return function(){return clearTimeout(t)}}),[]);var E=g(),F=j[A];return e(r,o({appear:!0,in:!0},{children:e(l,o({classes:{root:n(E.main,!h&&E[A],h&&E.alertNotification,h&&E["alertLevels-".concat(h)]),action:E.actionContainer,message:E.messageContainer},"aria-describedby":"client-snackbar",message:e(m,o({},H,{title:T,classes:{tooltip:E.tooltip},placement:"bottom"},{children:i("div",o({id:"client-snackbar",className:E.messageWrapper,onClick:y,"data-testid":"".concat(_,"_status_").concat(b[A])},{children:[!x&&e("div",o({className:E.iconWrapper},{children:B?s(B,{className:E.icon,nativeColor:"#fff"}):e(F,{htmlColor:"#fff",className:E.icon})})),i("div",o({className:E.message},{children:[i("div",o({className:E.messageTop},{children:[z&&e(d,o({"data-testid":"".concat(_,"_title"),variant:"subtitle2",className:E.title},{children:z})),w&&e(d,o({className:n(E.timestamp,!h&&E[A])},{children:w}))]})),e("div",o({className:n(E.messageContent,!h&&E[A])},{children:e(d,o({"data-testid":"".concat(_,"_content"),className:n(!h&&E.content)},{children:T}))}))]}))]}))})),action:[e(N,o({"data-testid":"".concat(_,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){W(),f(D)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:E.tooltip}},className:E.closeIconButton},{children:e(C,{className:E.closeIcon,htmlColor:h?"#000":"#fff"})}),"close")]},v))}))};export{_ as PAGE_NAME,I as Toast};
@@ -0,0 +1,2 @@
1
+ export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<string>;
2
+ //# sourceMappingURL=Toast.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/Toast.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,qEAuInB,CAAC"}
@@ -0,0 +1 @@
1
+ import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{main:{width:443,height:48,maxWidth:"85vw",display:"flex",flexWrap:"nowrap",alignItems:"center",padding:0,marginBottom:e.spacing(2)},success:{backgroundColor:e.palette.success.main},error:{backgroundColor:e.palette.error.main},warning:{backgroundColor:e.palette.warning.main,"& .MuiSvgIcon-root":{color:e.palette.background.b7},"& p":{color:e.palette.background.b7}},info:{backgroundColor:e.palette.info.main},neutral:{backgroundColor:e.palette.background.b9,"& .MuiSvgIcon-root":{color:e.palette.primary.text7}},title:{color:e.palette.grey[600],fontWeight:400},content:{fontSize:"14px",lineHeight:"16px",color:e.palette.primary.contrastText,fontWeight:500,whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":2,height:"fit-content",display:"-webkit-box",flexDirection:"column",justifyContent:"center"},iconWrapper:{display:"flex",alignSelf:"center",alignItems:"center",height:35,padding:"0px 10px 0 18px"},icon:{width:20,height:20,transform:"scale(1.2)"},closeIconButton:{"&.MuiButtonBase-root":{color:e.palette.primary.contrastText,padding:11,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.4)"}}},closeIcon:{width:14,height:14,"&.MuiSvgIcon-root":{fontSize:14,transform:"scale(1.715)"}},messageContainer:{overflowX:"hidden",flex:1},messageWrapper:{display:"flex"},message:{display:"flex",flex:1,alignItems:"center",minHeight:35,height:"100%",overflowY:"hidden",justifyContent:"center",flexDirection:"column"},messageTop:{display:"flex",justifyContent:"space-between",overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},messageContent:{overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},timestamp:{marginLeft:10,alignSelf:"flex-end"},actionContainer:{paddingLeft:"8px",marginRight:"16px"},alertNotification:{paddingLeft:12,backgroundColor:e.palette.background.paper,height:"unset"},"alertLevels-info":{borderLeft:"15px solid rgb(119, 195, 241)"},"alertLevels-warning":{borderLeft:"15px solid rgb(242, 192, 70)"},"alertLevels-critical":{borderLeft:"15px solid rgb(237, 70, 48)"},tooltip:{marginTop:8,color:e.palette.primary.contrastText}}}));export{t as useStyles};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NotificationsContainer.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationsContainer.test.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/__tests__/NotificationsContainer.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Toast.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toast.test.d.ts","sourceRoot":"","sources":["../../../../src/components/Notifications/__tests__/Toast.test.js"],"names":[],"mappings":""}
@@ -1,3 +1,3 @@
1
- export { default as Notifications } from "./Notifications";
2
- export { default as NotificationsContainer } from "./NotificationsContainer";
1
+ export { Notifications } from './Notifications';
2
+ export { NotificationsContainer } from './NotificationsContainer';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ReactNode, ReactElement } from 'react';
2
+ import { TooltipProps } from '@material-ui/core';
3
+ export declare type Variant = 'success' | 'warning' | 'error' | 'info' | 'neutral';
4
+ export interface Notification {
5
+ alertLevel?: 'info' | 'warning' | 'critical';
6
+ autoHideDuration?: number;
7
+ content: ReactNode;
8
+ hideIcon?: boolean;
9
+ icon?: ReactElement;
10
+ id: string;
11
+ onClick?: () => void;
12
+ onClose?: () => void;
13
+ timestamp?: string;
14
+ title?: string;
15
+ tooltipProps?: TooltipProps;
16
+ variant?: Variant;
17
+ }
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Notifications/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,oBAAY,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,5 +1,5 @@
1
1
  export default OffsetWellMap;
2
- declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, isClickable, lastVisitedWellId, updateLastVisitedWellId, }: {
2
+ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds, radius, handleChanageOffsetWell, activeWellId, isClickable, }: {
3
3
  isViewOnly: any;
4
4
  subjectWell: any;
5
5
  wells: any;
@@ -8,8 +8,6 @@ declare function OffsetWellMap({ isViewOnly, subjectWell, wells, offsetWellIds,
8
8
  handleChanageOffsetWell: any;
9
9
  activeWellId: any;
10
10
  isClickable: any;
11
- lastVisitedWellId: any;
12
- updateLastVisitedWellId: any;
13
11
  }): JSX.Element;
14
12
  declare namespace OffsetWellMap {
15
13
  namespace propTypes {
@@ -24,16 +22,12 @@ declare namespace OffsetWellMap {
24
22
  const handleChanageOffsetWell: PropTypes.Validator<(...args: any[]) => any>;
25
23
  const activeWellId: PropTypes.Validator<number>;
26
24
  const isClickable: PropTypes.Requireable<boolean>;
27
- const lastVisitedWellId: PropTypes.Requireable<number>;
28
- const updateLastVisitedWellId: PropTypes.Validator<(...args: any[]) => any>;
29
25
  }
30
26
  namespace defaultProps {
31
27
  const subjectWell_1: any;
32
28
  export { subjectWell_1 as subjectWell };
33
29
  const isClickable_1: boolean;
34
30
  export { isClickable_1 as isClickable };
35
- const lastVisitedWellId_1: any;
36
- export { lastVisitedWellId_1 as lastVisitedWellId };
37
31
  }
38
32
  }
39
33
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAgCA;;;;;;;;;;;gBA+YC"}
1
+ {"version":3,"file":"OffsetWellMap.d.ts","sourceRoot":"","sources":["../../../src/components/OffsetWellMap/OffsetWellMap.js"],"names":[],"mappings":";AAgCA;;;;;;;;;gBA+XC"}
@@ -1 +1 @@
1
- import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as i,createElement as c}from"react";import l from"react-dom";import{get as u}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as f,Remove as m}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var W=v.isValidCoordinates,O=[29.749907,-95.358421],T=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,I=a.wells,L=a.offsetWellIds,x=a.radius,N=a.handleChanageOffsetWell,j=a.activeWellId,F=a.isClickable,V=a.lastVisitedWellId,z=a.updateLastVisitedWellId,E=t((function(){return D&&u(D,"topHole.coordinates")}),[D]),w=t((function(){return C(I)}),[I]),Z=n(),q=n(),R=n(),_=n(),M=n(null),P=o(!1),G=e(P,2),S=G[0],H=G[1],A=n(),U=n(),J=(null==D?void 0:D.id)===j,K=h(I),Q=o(null),X=e(Q,2),Y=X[0],$=X[1],rr=o(3),er=e(rr,2),tr=er[0],nr=er[1];i((function(){Z.current=p.mapbox.map(Z.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(O,3).on("zoomend",(function(){return nr(Z.current.getZoom())})),Z.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(Z.current)}),[]),i((function(){if(Z.current){if(q.current&&(Z.current.removeLayer(q.current),q.current=null),R.current&&Z.current.removeLayer(R.current),!E)return q.current=null,void(R.current=null);x&&(q.current=p.circle(E,1609.34*x,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),q.current.addTo(Z.current))}}),[x,E]);var or=function(r,e,t,n,o,i){i&&(r.setStyle({fillColor:"#63EFFF"}),H(!0)),M.current=p.circleMarker(e,{radius:i?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){_.current.removeFrom(Z.current),_.current=p.featureGroup(A.current),_.current.addTo(Z.current),Z.current.closePopup(),i&&(r.setStyle({fillColor:"#03BCD4"}),H(!1))})),M.current.addEventListener("click",(function(){v||(N(n,!o),z&&z(n.id))}));var c=A.current.concat(M.current);_.current.removeFrom(Z.current),_.current=p.featureGroup(c),_.current.addTo(Z.current)},ir=function(r,e,t,n,o){var i=document.createElement("div"),a=c(y(),{isViewOnly:v,well:r,color:u(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:F});l.render(k(g,{children:a}),i),p.popup().setLatLng(n).setContent(i).openOn(Z.current)};i((function(){if(Z.current&&I&&L){Z.current.closePopup(),_.current&&_.current.removeFrom(Z.current);var r=[],e=[],t=[];I.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(L.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&W(n)){var o=(null==D?void 0:D.id)===e.id,i=L.includes(e.id)&&!o,c=o?"#03BCD4":u(w,e.formation,"#BDBDBD"),l=i?.7:.3;if(i){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:c,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:l,fillColor:c,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Y&&u(r.target,T)&&(t=[u(r.target,T).x-Y.x,u(r.target,T).y-Y.y]),ir(e,i,o,n,t),or(s,n,c,e,i,o)})),o&&(U.current=s),r.push(s),e.id===j&&!J){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c,className:"circle_1200"});r.push(d)}}})),r.length&&(_.current=p.featureGroup(r),_.current.addTo(Z.current)),A.current=r,setTimeout((function(){q.current&&q.current.bringToBack(),x<3e3&&Z.current&&q.current&&I!==K&&Z.current.fitBounds(q.current.getBounds(),{padding:[5,5]})}),500)}}),[D,I,L,Y]),i((function(){if(S&&u(Z.current,T)){var r=[u(Z.current,T).x-Y.x,u(Z.current,T).y-Y.y];ir(D,!1,!0,E,r)}}),[S,Y,D,E]),i((function(){if(Z.current&&E){R.current&&R.current.removeFrom(Z.current);var r=p.icon({iconUrl:S||J?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:S||J?[70,20]:[62,12],iconAnchor:S||J?[35,29]:[31,25],className:"dot"});R.current=p.marker(E,{icon:r}),R.current.addTo(Z.current),U.current&&(R.current.addEventListener("mouseover",(function(){H(!0),or(U.current,E,"#03BCD4",D,!0,!0)})),R.current.addEventListener("mouseout",(function(){_.current.removeFrom(Z.current),_.current=p.featureGroup(A.current),_.current.addTo(Z.current),Z.current.closePopup(),U.current.setStyle({fillColor:"#03BCD4"}),H(!1)})))}}),[S,E,x,D,J,Y]),i((function(){x>3e3?Z.current.setZoom(1):setTimeout((function(){q.current&&q.current.bringToBack(),D?Z.current&&q.current&&x&&Z.current.fitBounds(q.current.getBounds(),{padding:[5,5]}):Z.current&&_.current&&Z.current.fitBounds(_.current.getBounds()),u(Z.current,T)&&$(u(Z.current,T))}),500)}),[x,D,E]),i((function(){setTimeout((function(){var r;if(V){var e=I.find((function(r){return r.id===V}));r=u(e,"topHole.coordinates")}else r=E;Z.current.panTo(r,{duration:.7,easeLinearity:.25})}),500)}),[I,E]);var cr=function(){Z.current.setZoom(tr+1)};return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:Z,onDoubleClick:cr,children:B("div",{className:b.zoomGroup,children:[k(d,{title:tr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===tr)),onClick:cr,children:k(f,{className:b.zoomInOutIcon})})}),k(d,{title:tr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===tr)),onClick:function(){tr>1&&Z.current.setZoom(tr-1)},children:k(m,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool,lastVisitedWellId:a.number,updateLastVisitedWellId:a.func.isRequired},D.defaultProps={subjectWell:null,isClickable:!0,lastVisitedWellId:null};export{D as default};
1
+ import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{useMemo as t,useRef as n,useState as o,useEffect as c,createElement as i}from"react";import u from"react-dom";import{get as l}from"lodash";import a from"prop-types";import s from"classnames";import{Tooltip as d}from"@material-ui/core";import{Add as m,Remove as f}from"@material-ui/icons";import p from"mapbox.js";import{mapbox as v}from"../../utils/index.js";import b from"./OffsetWellMap.module.css.js";import{usePreviousWells as h}from"./effects/usePreviousWells.js";import{WellTooltip as y}from"./WellTooltip.js";import{getAllFormations as C}from"./utils.js";import{jsx as k,jsxs as B,Fragment as g}from"react/jsx-runtime";var O=v.isValidCoordinates,T=[29.749907,-95.358421],W=["_renderer","_bounds","min"],D=function(a){var v=a.isViewOnly,D=a.subjectWell,x=a.wells,N=a.offsetWellIds,j=a.radius,F=a.handleChanageOffsetWell,L=a.activeWellId,z=a.isClickable,E=t((function(){return D&&l(D,"topHole.coordinates")}),[D]),w=t((function(){return C(x)}),[x]),I=n(),Z=n(),_=n(),q=n(),M=n(null),P=o(!1),R=e(P,2),V=R[0],G=R[1],S=n(),A=n(),H=(null==D?void 0:D.id)===L,U=h(x),J=o(null),K=e(J,2),Q=K[0],X=K[1],Y=o(3),$=e(Y,2),rr=$[0],er=$[1];c((function(){I.current=p.mapbox.map(I.current,null,{attributionControl:!1,scrollWheelZoom:!1,zoomControl:!1}).setView(T,3).on("zoomend",(function(){return er(I.current.getZoom())})),I.current.doubleClickZoom.disable(),p.mapbox.styleLayer("mapbox://styles/mapbox/dark-v9").addTo(I.current)}),[]),c((function(){if(I.current){if(Z.current&&(I.current.removeLayer(Z.current),Z.current=null),_.current&&I.current.removeLayer(_.current),!E)return Z.current=null,void(_.current=null);j&&(Z.current=p.circle(E,1609.34*j,{stroke:!1,fill:!0,fillOpacity:.2,fillColor:"#03BCD4",className:"circle_500"}),Z.current.addTo(I.current))}}),[j,E]);var tr=function(r,e,t,n,o,c){c&&(r.setStyle({fillColor:"#63EFFF"}),G(!0)),M.current=p.circleMarker(e,{radius:c?5:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:c?"#63EFFF":t,className:"circle_highlight"}),M.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),c&&(r.setStyle({fillColor:"#03BCD4"}),G(!1))})),M.current.addEventListener("click",(function(){v||F(n,!o)}));var i=S.current.concat(M.current);q.current.removeFrom(I.current),q.current=p.featureGroup(i),q.current.addTo(I.current)},nr=function(r,e,t,n,o){var c=document.createElement("div"),a=i(y(),{isViewOnly:v,well:r,color:l(w,r.formation,"#BDBDBD"),isOffsetWell:e,isSubjectWell:t,offset:o,isClickable:z});u.render(k(g,{children:a}),c),p.popup().setLatLng(n).setContent(c).openOn(I.current)};c((function(){if(I.current&&x&&N){I.current.closePopup(),q.current&&q.current.removeFrom(I.current);var r=[],e=[],t=[];x.forEach((function(r){r.id!==(null==D?void 0:D.id)&&(N.includes(r.id)?e.push(r):t.push(r))})),[].concat(t,e,[D]).forEach((function(e){var t,n=null==e||null===(t=e.topHole)||void 0===t?void 0:t.coordinates;if(n&&O(n)){var o=(null==D?void 0:D.id)===e.id,c=N.includes(e.id)&&!o,i=o?"#03BCD4":l(w,e.formation,"#BDBDBD"),u=c?.7:.3;if(c){var a=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillColor:i,calssname:"circle_500",fillOpacity:.08});r.push(a)}var s=p.circleMarker(n,{radius:5,stroke:!1,fill:!0,fillOpacity:o?1:u,fillColor:i,className:"circle_500"});if(s.addEventListener("mouseover",(function(r){var t=[0,0];Q&&l(r.target,W)&&(t=[l(r.target,W).x-Q.x,l(r.target,W).y-Q.y]),nr(e,c,o,n,t),tr(s,n,i,e,c,o)})),o&&(A.current=s),r.push(s),e.id===L&&!H){var d=p.circleMarker(n,{radius:12,stroke:!1,fill:!0,fillOpacity:.24,fillColor:i,className:"circle_1200"});r.push(d)}}})),r.length&&(q.current=p.featureGroup(r),q.current.addTo(I.current)),S.current=r,setTimeout((function(){Z.current&&Z.current.bringToBack(),j<3e3&&I.current&&Z.current&&x!==U&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]})}),500)}}),[D,x,N,Q]),c((function(){if(V&&l(I.current,W)){var r=[l(I.current,W).x-Q.x,l(I.current,W).y-Q.y];nr(D,!1,!0,E,r)}}),[V,Q,D,E]),c((function(){if(I.current&&E){_.current&&_.current.removeFrom(I.current);var r=p.icon({iconUrl:V||H?"/static/media/5e9c4959259cb12c11b2c5eaf27eb3ad.svg":"/static/media/9efe5882f31d2f22bd57af92069d0a3e.svg",iconSize:V||H?[70,20]:[62,12],iconAnchor:V||H?[35,29]:[31,25],className:"dot"});_.current=p.marker(E,{icon:r}),_.current.addTo(I.current),A.current&&(_.current.addEventListener("mouseover",(function(){G(!0),tr(A.current,E,"#03BCD4",D,!0,!0)})),_.current.addEventListener("mouseout",(function(){q.current.removeFrom(I.current),q.current=p.featureGroup(S.current),q.current.addTo(I.current),I.current.closePopup(),A.current.setStyle({fillColor:"#03BCD4"}),G(!1)})))}}),[V,E,j,D,H,Q]),c((function(){j>3e3?I.current.setZoom(1):setTimeout((function(){Z.current&&Z.current.bringToBack(),D?I.current&&Z.current&&j&&I.current.fitBounds(Z.current.getBounds(),{padding:[5,5]}):I.current&&q.current&&I.current.fitBounds(q.current.getBounds()),E&&I.current.panTo(E,{duration:.7,easeLinearity:.25}),l(I.current,W)&&X(l(I.current,W))}),500)}),[j,D,E]);var or=function(){I.current.setZoom(rr+1)};return k("div",{className:b.mapView,children:k("div",{className:b.mapMain,ref:I,onDoubleClick:or,children:B("div",{className:b.zoomGroup,children:[k(d,{title:rr<18?"Zoom in":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,18===rr)),onClick:or,children:k(m,{className:b.zoomInOutIcon})})}),k(d,{title:rr>1?"Zoom out":"",placement:"left",children:k("div",{className:s(b.zoomButton,r({},b.zoomDisabled,1===rr)),onClick:function(){rr>1&&I.current.setZoom(rr-1)},children:k(f,{className:b.zoomInOutIcon})})})]})})})};D.propTypes={isViewOnly:a.bool.isRequired,subjectWell:a.shape({id:a.number,formation:a.string}),wells:a.arrayOf(a.shape({})).isRequired,offsetWellIds:a.arrayOf(a.number).isRequired,radius:a.number.isRequired,handleChanageOffsetWell:a.func.isRequired,activeWellId:a.number.isRequired,isClickable:a.bool},D.defaultProps={subjectWell:null,isClickable:!0};export{D as default};
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as t}from"react";import r from"prop-types";import{debounce as o}from"lodash";import{withStyles as i}from"@material-ui/core";import{jsx as s}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"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"classnames";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.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"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../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"../../../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 n from"../../../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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/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"../../../Template/TemplateSharingDialog/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/ScrollableTooltip.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"../../../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"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";var p=o((function(e){e()}),500);function m(r){var o=r.initialChecked,i=r.onChange,m=r.classes,a=r["data-testid"],l=t(o),d=e(l,2),j=d[0],c=d[1];return s(n,{"data-testid":a,rightLabel:"Exclude Sidetracks",color:"primary",checked:j,onChange:function(e){c(e.target.checked),p((function(){i(e.target.checked)}))},size:"small",className:m.formControl})}m.propTypes={initialChecked:r.bool.isRequired,onChange:r.func.isRequired,classes:r.shape({}).isRequired,"data-testid":r.string},m.defaultProps={"data-testid":"SidetrackSwitch"};var a=i({formControl:{display:"flex",alignItems:"flex-end",height:"56px"}})(m);export{a as default};
1
+ import e from"@babel/runtime/helpers/slicedToArray";import{useState as t}from"react";import r from"prop-types";import{debounce as o}from"lodash";import{withStyles as i}from"@material-ui/core";import{jsx as s}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"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"classnames";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.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"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../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"../../../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 n from"../../../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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../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/ScrollableTooltip.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"../../../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"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";var p=o((function(e){e()}),500);function m(r){var o=r.initialChecked,i=r.onChange,m=r.classes,a=r["data-testid"],l=t(o),d=e(l,2),j=d[0],c=d[1];return s(n,{"data-testid":a,rightLabel:"Exclude Sidetracks",color:"primary",checked:j,onChange:function(e){c(e.target.checked),p((function(){i(e.target.checked)}))},size:"small",className:m.formControl})}m.propTypes={initialChecked:r.bool.isRequired,onChange:r.func.isRequired,classes:r.shape({}).isRequired,"data-testid":r.string},m.defaultProps={"data-testid":"SidetrackSwitch"};var a=i({formControl:{display:"flex",alignItems:"flex-end",height:"56px"}})(m);export{a as default};
@@ -1 +1 @@
1
- import{memo as e}from"react";import t from"prop-types";import{makeStyles as o}from"@material-ui/core";import{jsx as r,jsxs as i}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"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"lodash";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.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"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../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"../../../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"../../../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 n from"../../../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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/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"../../../Template/TemplateSharingDialog/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/ScrollableTooltip.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"../../../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"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import s from'./../../../../ext-esm/@material-ui/icons/esm/Map.js';import p from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldMore.js';import m from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldLess.js';var a=o({iconButtonWrapper:{marginTop:5,width:"40px"},mapExpandIconGroup:{display:"flex",flexDirection:"column",height:"26px",width:"26px",alignItems:"center",justifyContent:"center"}}),l=function(e){var t=e.mapHidden,o=e.onToggleMap,l=a();return r("div",{className:l.iconButtonWrapper,children:r(n,{"data-testid":"".concat("ToggleMapButton","_expandCollapseMap"),size:"small",variant:"contained",tooltipProps:{title:t?"Expand Map":"Collapse Map"},onClick:function(){o()},children:i("div",{className:l.mapExpandIconGroup,children:[r(s,{fontSize:"inherit"}),r(t?p:m,{fontSize:"inherit"})]})})})};l.propTypes={mapHidden:t.bool.isRequired,onToggleMap:t.func.isRequired};var d=e(l);export{d as default};
1
+ import{memo as e}from"react";import t from"prop-types";import{makeStyles as o}from"@material-ui/core";import{jsx as r,jsxs as i}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"../../../DevCenter/AppHeader/AppHeader.js";import"../../../DevCenter/AppSideBar/AppSideBar.js";import"../../../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/slicedToArray";import"classnames";import"lodash";import"../../../Icons/AnnotationIcon.js";import"../../../Annotations/components/AnnotationsList/index.js";import"../../../Annotations/components/LastAnnotation/index.js";import"../../../Annotations/AnnotationsContext.js";import"../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../../../clients/jsonApi/index.js";import"../../../../clients/subscriptions.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"../../../GradientManager/configuration/constants.js";import"../../../../utils/index.js";import"../../../HelpCenter/HelpCenterIcon.js";import"../../../DevCenter/AppContext.js";import"../../../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../../../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../../../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../../DevCenter/NavigationBar/NavigationBar.js";import"../../../DevCenter/SideBar/SideBar.js";import"../../../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../../../DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../AssetEditor/index.js";import"../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../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"../../../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"../../../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 n from"../../../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"@material-ui/icons/Check";import"@material-ui/icons/Close";import"@material-ui/icons/Edit";import"@material-ui/icons/Delete";import"../../../GradientManager/GradientList.js";import"@material-ui/icons/AddCircle";import"../../../GradientManager/GradientPreview/GradientPreview.js";import"../../../GradientManager/GradientSelect.styles.js";import"../../../GradientPicker/GradientPicker.js";import"../../../GradientManager/GradientManager.styles.js";import"../../../Drillstring/BHASchematic.js";import"../../../Drillstring/BHATable/index.js";import"../../../Drillstring/BHAComponentIcon.js";import"../../../Drillstring/BHAComponentDetail/index.js";import"../../../Drillstring/BHATileIcon.js";import"../../../Drillstring/BHATile/BHATile.js";import"../../../Drillstring/BHAList/BHAList.js";import"../../../Drillstring/BHAComponentsTable/BHAComponentsTable.js";import"../../../Casing/CasingTable/index.js";import"../../../Casing/CasingComponentIcon.js";import"../../../Casing/CasingTileIcon.js";import"../../../Casing/CasingTableV2/CasingTableV2.js";import"../../../Casing/CasingTile/CasingTile.js";import"../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"../../../WellSummary/WellSummaryItemLabel.js";import"../../../WellSummary/WellSummaryItemTitle.js";import"../../../WellSummary/WellSummaryItemValue.js";import"../../../WellSummary/ActivitySummaryChart.js";import"../../../WellSummary/FracWirelineTimeChart.js";import"../../../BICOffsetPickerDialog/index.js";import"../../../OffsetWellButton/OffsetWellButton.js";import"../../OffsetWellPickerDialog.js";import"../../../OffsetWellPickerV3/index.js";import"../../../OffsetWellChips/Chip.js";import"../../../OffsetWellChips/ChipsContainer.js";import"../../../OffsetWellPickerV4/OffsetWellPickerV4.js";import"../../../OffsetWellMap/OffsetWellMap.js";import"@material-ui/core/Snackbar";import"../../../Notifications/Toast.js";import"../../../Toaster/Toaster.js";import"../../../ConfirmationDialog.js";import"../../../TextLink/index.js";import"../../../Avatar/index.js";import"../../../Template/TemplatePopover/index.js";import"../../../Template/TemplateSharingDialog/index.js";import"../../../MenuItem/index.js";import"../../../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/ScrollableTooltip.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"../../../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"../../../StatusBadge/index.js";import"../../../Attachment/index.js";import"../../../EmojiIconButton.js";import"../../../FileUploadIconButton.js";import"../../../FilePreview/index.js";import"../../../FailedFileUploading.js";import"../../../UserMention/index.js";import"../../../CommentsInfo/index.js";import"../../../CommentInput/index.js";import"../../../Comment/index.js";import"../../../CommentLoader.js";import"../../../AssetNameLabel/AssetStatusBadge.js";import s from'./../../../../ext-esm/@material-ui/icons/esm/Map.js';import p from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldMore.js';import m from'./../../../../ext-esm/@material-ui/icons/esm/UnfoldLess.js';var a=o({iconButtonWrapper:{marginTop:5,width:"40px"},mapExpandIconGroup:{display:"flex",flexDirection:"column",height:"26px",width:"26px",alignItems:"center",justifyContent:"center"}}),l=function(e){var t=e.mapHidden,o=e.onToggleMap,l=a();return r("div",{className:l.iconButtonWrapper,children:r(n,{"data-testid":"".concat("ToggleMapButton","_expandCollapseMap"),size:"small",variant:"contained",tooltipProps:{title:t?"Expand Map":"Collapse Map"},onClick:function(){o()},children:i("div",{className:l.mapExpandIconGroup,children:[r(s,{fontSize:"inherit"}),r(t?p:m,{fontSize:"inherit"})]})})})};l.propTypes={mapHidden:t.bool.isRequired,onToggleMap:t.func.isRequired};var d=e(l);export{d as default};