@corva/ui 0.33.0-2 → 0.33.0-5
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.
- package/clients/api/apiCore.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/CommentLoader.js +1 -1
- package/components/ConfirmationDialog.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleIcon.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentItem.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentList.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentTimestamp.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/SearchInput.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/VideoItemContent.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/effects/useHelpContents.js +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/shapes/index.js +1 -0
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/EmojiIconButton.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -0
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -0
- package/components/FileUploadIconButton.js +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/InfiniteList/index.js +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
- package/components/PostPreviewDialog/index.js +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
- package/constants/helpCenter.js +1 -0
- package/constants/index.js +1 -1
- package/constants/video.js +1 -0
- package/package.json +1 -1
- package/utils/accuracy.js +1 -0
- package/utils/index.js +1 -1
- package/utils/jsonaDataFormatter.js +1 -0
- package/utils/video.js +1 -0
- package/utils/AccuracyUtils.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import"../../../../../../constants/alerts.js";import"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import"../../../../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../../../../utils/index.js";import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import r from"prop-types";import"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import s from"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.js";import"../../../../../Avatar/index.js";import"../../../../../Annotations/AnnotationsContext.js";import"../../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../../IconButton/index.js";import"../../../../../ConfirmationDialog.js";import"../../../../../Annotations/components/AnnotationsList/index.js";import"../../../../../Annotations/components/LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../AppHeader/AppHeaderNew.js";import"../../../../AppHeader/AppHeader.js";import"../../../../AppSideBar/AppSideBar.js";import"../../../../AppContext.js";import"../../../../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../../AppActions/AppActions.css.js";import"../../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../AppSettingsDialog/AppSettingsDialog.js";import"../../AnnotationsButton/AnnotationsButton.js";import"../../NonPriorityMenus/NonPriorityMenus.js";import"../../FullscreenButton/FullscreenButton.js";import"../../AppInfoMessage/AppInfoMessage.js";import"../../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../DevCenterAppView/components/ChooseAssetButton/index.js";import{helpContentShape as n}from"../shapes/index.js";import{HelpContentItem as p}from"./HelpContentItem.js";import"../HelpCenterDialog.js";import"../../../DevCenterAppContainer.css.js";import"../../RestoreAppSizeButton/index.js";import"../../PriorityMenus/PriorityMenus.css.js";import"../../../../NavigationBar/NavigationBar.js";import"../../../../SideBar/SideBar.js";import"../../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/EmptyView.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/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"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.js";import"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../ResizableTable/ResizableTable.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.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"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.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"../../../../../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"../../../../../SearchInput/index.js";import"../../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../../StageDesignVActual/ComparisonRow.js";import"../../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../../FeedItem/FeedItem.js";import"../../../../../KeyboardDateTimePicker.js";import"../../../../../PostInput/PostInput.js";import"../../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../../AddComment/Popover.js";import"../../../../../AddComment/Popup.js";var m=o((function(t){return{helpContentList:{width:1281},loader:{height:500,display:"flex",alignItems:"center"},helpContentsContainer:{width:"100%",display:"flex",flexWrap:"wrap"},footer:{display:"flex",alignItems:"center",justifyContent:"center",height:32,width:"100%",fontSize:14,lineHeight:"20px",color:t.palette.primary.text7,marginBottom:12}}}));function a(o){var r=o.isLoading,n=o.error,a=o.helpContents,l=o.onItemClick,d=m();return t("div",{className:d.helpContentList,children:[r&&e(s,{fullscreen:!1,className:d.loader}),n&&n.message,!r&&!n&&0===!a.length&&"No help contents were found",!r&&!n&&a.length>0&&e(i,{children:e("div",{className:d.helpContentsContainer,children:a.map((function(t){return e(p,{helpContent:t,onClick:function(){return l(t)}},t.id)}))})}),!r&&!n&&e("div",{className:d.footer,children:"Did nоt find an answer? Visit Corva Help Center or contact us."})]})}a.propTypes={isLoading:r.bool.isRequired,error:r.shape({message:r.string.isRequired}),helpContents:r.arrayOf(n).isRequired,onItemClick:r.func.isRequired},a.defaultProps={error:null};export{a as HelpContentList};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"moment";import{jsx as e}from"react/jsx-runtime";import{makeStyles as r}from"@material-ui/core";import{helpContentShape as i}from"../shapes/index.js";var m=r((function(t){return{timeStamp:{fontSize:12,lineHeight:"17px",color:t.palette.primary.text6,letterSpacing:"0.4px"}}}));function o(r){var i=r.helpContent,o=m(),p=t(i.updatedAt||i.createdAt).format("MM/DD/YY HH:mm");return e("div",{className:o.timeStamp,children:p})}o.propTypes={helpContent:i.isRequired};export{o as HelpContentTimestamp};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{helpContentShape as e}from"../shapes/index.js";import{ArticleItemContent as o}from"./ArticleItemContent.js";import{VideoItemContent as r}from"./VideoItemContent.js";function n(e){var n=e.helpContent,i=n.articleContent?o:r;return t(i,{helpContent:n})}n.propTypes={helpContent:e.isRequired};export{n as ItemContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{debounce as r}from"lodash";import e from"@babel/runtime/helpers/slicedToArray";import{jsxs as o,jsx as t}from"react/jsx-runtime";import{makeStyles as a,Paper as i,InputBase as n}from"@material-ui/core";import c from"@material-ui/icons/Close";import{useState as l,useCallback as s}from"react";import m from"prop-types";import p from"classnames";import u from"@material-ui/icons/Search";var h=a((function(r){return{root:{display:"flex",alignItems:"center",height:30,paddingLeft:19,borderRadius:30,boxShadow:"none","&:focus-within":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.primary.main)},width:358,backgroundColor:r.palette.background.b7},input:{flex:1,fontSize:14,fontWeight:200},searchIcon:{height:16,width:16,color:r.palette.primary.contrastText,marginRight:9},closeIcon:{height:16,width:16,margin:"0 10px",color:r.palette.primary.text6,cursor:"pointer"}}})),f=function(a){var m=a.onChange,f=a.initialValue,d=h(),g=l(f),x=e(g,2),b=x[0],y=x[1],v=s(r(m,500),[]);return o(i,{className:p(d.root),children:[t(u,{className:d.searchIcon}),t(n,{className:d.input,placeholder:"Search ...",value:b,inputProps:{"aria-label":"search"},onChange:function(r){var e=r.target;y(e.value),v(e.value)}}),b&&t(c,{className:d.closeIcon,onClick:function(){return m("")}})]})};f.propTypes={onChange:m.func.isRequired,initialValue:m.string.isRequired};export{f as SearchInput};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../../../../constants/completion.js";import"../../../../../../constants/alerts.js";import"@babel/runtime/helpers/slicedToArray";import"../../../../../../constants/goals.js";import"../../../../../../constants/segment.js";import"../../../../../../constants/apps.js";import"../../../../../../constants/drillstring.js";import"../../../../../../constants/notifications.js";import"../../../../../../constants/feed.js";import{ATTACMENT_METADATA_TYPE as t}from"../../../../../../constants/helpCenter.js";import{VIDEO_SOURCES as e}from"../../../../../../constants/video.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import{getVideoSourceAndIdByUrl as i}from"../../../../../../utils/video.js";import"../../../../../../utils/index.js";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{makeStyles as s}from"@material-ui/core";import"react";import"querystring";import"uuid/v1";import"../../../../../../clients/jsonApi/index.js";import"../../../../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import"classnames";import"../../../../../Modal/index.js";import"../../../../../IconMenu/index.js";import"../../../../../StyledMenuItem/index.js";import"../../../../../LoadingIndicator/LoadingIndicator.js";import"../../IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../../../../Tooltip/MuiTooltipDcWrapper.js";import n from"../../../../../Avatar/index.js";import"../../../../../Annotations/AnnotationsContext.js";import"../../../../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../../../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../../../../IconButton/index.js";import"../../../../../ConfirmationDialog.js";import"../../../../../Annotations/components/AnnotationsList/index.js";import"../../../../../Annotations/components/LastAnnotation/index.js";import"../../../../../PadModeSelect/PadModeSelect.js";import"../../../../AppHeader/AppHeaderNew.js";import"../../../../AppHeader/AppHeader.js";import"../../../../AppSideBar/AppSideBar.js";import"../../../../AppContext.js";import"../../../../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../../AppActions/AppActions.css.js";import"../../../../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../../../../ErrorBoundary/ErrorBoundary.js";import"../../../../../Typography.js";import"../../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../../../../SlateFormattedText/RenderElements.js";import"../../../../../SlateFormattedText/SlateFormattedText.js";import"../../AppSettingsDialog/AppSettingsDialog.js";import"../../AnnotationsButton/AnnotationsButton.js";import"../../NonPriorityMenus/NonPriorityMenus.js";import"../../FullscreenButton/FullscreenButton.js";import"../../AppInfoMessage/AppInfoMessage.js";import"../../../../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../../DevCenterAppView/components/ChooseAssetButton/index.js";import{helpContentShape as p}from"../shapes/index.js";import{HelpContentTimestamp as m}from"./HelpContentTimestamp.js";import"../HelpCenterDialog.js";import"../../../DevCenterAppContainer.css.js";import"../../RestoreAppSizeButton/index.js";import"../../PriorityMenus/PriorityMenus.css.js";import"../../../../NavigationBar/NavigationBar.js";import"../../../../SideBar/SideBar.js";import"../../../../AppSettingsPopover/AppSettingsPopover.js";import"../../../../IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../../../../IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../../../../IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../../../../../TruncatedText/index.js";import"../../../../../AssetEditor/SingleAssetEditor.js";import"../../../../../AssetEditor/AssetEditorAutocomplete.js";import"../../../../../AssetEditor/index.js";import"../../../../../AppVersionsSelect/AppVersionsSelect.js";import"../../../../../CollapsableSidebar.js";import"../../../../../DateTimePicker/index.js";import"../../../../../DatePicker/index.js";import"../../../../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../../../../ColorPicker/ColorPicker.js";import"../../../../../ParameterCharts/AddEditTrack.js";import"../../../../../ParameterCharts/ParameterCharts.js";import"../../../../../ChartActionsList/ChartActionsList.js";import"../../../../../SettingEditors/ColorEditor/index.js";import"../../../../../SettingEditors/DropdownEditor/index.js";import"../../../../../SettingEditors/RadioEditor/index.js";import"../../../../../SwitchControl/index.js";import"../../../../../RangeSlider/RangeSlider.js";import"../../../../../Login/components/Login.js";import"../../../../../Login/components/PasswordField.js";import"../../../../../Login/components/Chip.js";import"../../../../../Login/components/StepFooter.js";import"../../../../../Login/components/StepContent.js";import"../../../../../Login/components/StepHeader.js";import"../../../../../Login/components/Step.js";import"../../../../../Login/components/OrDivider.js";import"../../../../../Login/components/HiddenEmailField.js";import"../../../../../Login/components/EmailField.js";import"../../../../../Breadcrumbs/index.js";import"../../../../../VirtualizedTable/index.js";import"../../../../../EmptyView/EmptyView.js";import"../../../../../Button/index.js";import"../../../../../MenuItem/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"../../../../../TextField/index.js";import"../../../../../Chip/index.js";import"../../../../../Counter/index.js";import"../../../../../AnchorsList/AnchorsList.js";import"../../../../../Select/index.js";import"../../../../../Tabs/Tabs.js";import"../../../../../Tabs/Tab.js";import"../../../../../ResizableTable/ResizableTable.js";import"../../../../../Drillstring/BHASchematic.js";import"../../../../../Drillstring/BHAComponentIcon.js";import"../../../../../Drillstring/BHATable/index.js";import"../../../../../Drillstring/BHAComponentDetail/index.js";import"../../../../../Casing/CasingComponentIcon.js";import"../../../../../Casing/CasingTable/index.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"../../../../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../../../../Notifications/Notifications.js";import"../../../../../TextLink/index.js";import"../../../../../Template/TemplatePopover/index.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"../../../../../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"../../../../../SearchInput/index.js";import"../../../../../StageDesignVActual/ComparisonHeader.js";import"../../../../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../../../../StageDesignVActual/ComparisonRow.js";import"../../../../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../../../../FeedItem/FeedItem.js";import"../../../../../KeyboardDateTimePicker.js";import"../../../../../PostInput/PostInput.js";import"../../../../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../../../../AddComment/Popover.js";import"../../../../../AddComment/Popup.js";var a=s((function(t){return{videoItemContent:{width:902},videoContainer:{width:"100%",minHeight:507,marginBottom:16},video:{width:"100%"},youtubeVideoContainer:{height:507},caption:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},captionText:{display:"flex",alignItems:"center"},avatar:{marginRight:8},authorName:{marginRight:16,color:t.palette.primary.contrastText,fontWeight:500,fontSize:16,lineHeight:"22px"},description:{width:"100%",color:t.palette.primary.contrastText,fontSize:16,lineHeight:"22px",paddingBottom:32}}})),l=function(e){var i,o;return null===(i=e.attachmentMetadata)||void 0===i||null===(o=i.find((function(e){return e.type===t.video})))||void 0===o?void 0:o.cdn_url};function d(t){var s=t.helpContent,p=a();console.log(s);var d=i(s.url),c=d.source,j=d.id,u=c===e.YOUTUBE;return o("div",{className:p.videoItemContent,children:[o("div",{className:p.videoContainer,children:[u&&r("div",{className:p.youtubeVideoContainer,children:r("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/".concat(j),title:s.title,frameBorder:0,allow:"picture-in-picture",allowFullScreen:!0})}),!u&&r("video",{controls:!0,preload:"metadata",className:p.video,children:r("source",{src:l(s)})})]}),r("div",{className:p.caption,children:o("div",{className:p.captionText,children:[r(n,{displayName:"".concat(s.author.firstName," ").concat(s.author.lastName),imgSrc:s.author.profilePhoto,className:p.avatar}),r("span",{className:p.authorName,children:"".concat(s.author.firstName," ").concat(s.author.lastName)}),r(m,{helpContent:s})]})}),r("div",{className:p.description,children:s.description})]})}d.propTypes={helpContent:p.isRequired};export{d as VideoItemContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/regenerator";import t from"@babel/runtime/helpers/asyncToGenerator";import{jsonaDataFormatter as n}from"../../../../../../utils/jsonaDataFormatter.js";import"../../../../../../utils/index.js";import{useState as a,useEffect as o}from"react";import{getAppHelpContent as s}from"../../../../../../clients/jsonApi/index.js";function i(i){var p,c=i.appId,u=a([]),l=r(u,2),m=l[0],f=l[1],d=a(!1),h=r(d,2),b=h[0],x=h[1],j=a(null),v=r(j,2),I=v[0],y=v[1],g=(p=t(e.mark((function r(t){var a,o,i,p;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=t.appId,o=t.search,x(!0),y(null),r.prev=3,r.next=6,s(a,{search:o,status:"published"});case 6:i=r.sent,p=n.deserialize(i),f(p),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(3),y(r.t0);case 14:x(!1);case 15:case"end":return r.stop()}}),r,null,[[3,11]])}))),function(r){return p.apply(this,arguments)});return o((function(){g({appId:c})}),[c]),{helpContents:m,isLoading:b,error:I,searchHelpContents:function(r){return g({appId:c,search:r})}}}export{i as useHelpContents};
|
package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/shapes/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ATTACMENT_METADATA_TYPE as e}from"../../../../../../constants/helpCenter.js";import r from"prop-types";var t=r.shape({id:r.number.isRequired,createdAt:r.number.isRequired,updatedAt:r.number.isRequired,title:r.string.isRequired,articleContent:r.string,attachmentMetadata:r.arrayOf(r.shape({type:r.oneOf(Object.values(e)).isRequired,cdn_url:r.string.isRequired})).isRequired});export{t as helpContentShape};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{noop as t}from"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import o from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import{createDevCenterRouter as r,isAppMaximized as n}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import{getUserUnits as i,subscribeForUserUnitsUpdates as s}from"../../../utils/index.js";import{jsx as p}from"react/jsx-runtime";import"@material-ui/core";import{useMemo as a,useRef as m,useState as l,useEffect as c,useContext as d,useReducer as u,useCallback as j}from"react";import"../../../clients/jsonApi/index.js";import"uuid";import C from"@babel/runtime/helpers/objectWithoutProperties";import A from"prop-types";import f from"classnames";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import{withRouter as g}from"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../IconButton/index.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeaderNew.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import b from"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import v from"../DevCenterAppContainer/DevCenterAppContainer.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import x from"../../../permissions/PermissionsContext.js";import{ISOLATED_PAGE_APP_CONTAINER_ID as S}from"./constants.js";import{DevCenterAppZoidComponent as P,APP_IFRAME_ATTRIBUTE as I}from"./DevCenterAppZoidComponent.js";import"./DevCenterIsolatedAppPage.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import h from"./DevCenterIsolatedApp.module.css.js";import"./AppsGridDragHandle.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../Button/index.js";import"../../MenuItem/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.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"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../Notifications/Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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"../../SearchInput/index.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function y(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?D(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(e){var t=e.isIsolationFeatureEnabled,A=e.onAppFullscreenTransparentMode,g=e.isAssetSubscriptionFeatureActive,D=e.onIsMaximizedChange,E=e.onInnerContainerMouseEnter,T=e.onInnerContainerMouseLeave,L=e.onAppContainerClick,F=e.setInnerContainerRefFn,M=C(e,["isIsolationFeatureEnabled","onAppFullscreenTransparentMode","isAssetSubscriptionFeatureActive","onIsMaximizedChange","onInnerContainerMouseEnter","onInnerContainerMouseLeave","onAppContainerClick","setInnerContainerRefFn"]),w=a((function(){return r(M.router)}),[M.router.location]),k=t?P:v,O=m(),B=m(),V=m(),R=n(M.location.query,M.app.id),W=l(i()),H=o(W,2),z=H[0],N=H[1];c((function(){var e=s((function(e){return N(e)}));return function(){return e()}}),[]);var q=d(b),U=x(),G=m(!1),_=u((function(e){return!e}),!1),K=o(_,2)[1];function Z(){A(null),document.body.classList.remove(h.overflowHidden,h.compensateScroll)}c((function(){return Z}),[]);var J=j((function(e){B.current=e,F(e)}),[]);return p("div",{className:h.fixedSizeContainer,ref:V,children:p("div",{ref:J,onMouseEnter:E,onMouseLeave:T,"data-testid":"".concat("DevCenter_AppContainer","_").concat(M.app.app.name),className:f(h.container,G.current&&h.containerMaximizedTransparent,R&&h.containerMaximized),children:p(k,y(y({},M),{},{appContextValue:q,devCenterRouter:w,globalNotificationToastsAPI:window[Symbol.for("notificationToasts")],isAssetSubscriptionFeatureActive:g,onAppContainerClick:L,onIsMaximizedChange:D,permissionsContextValue:U,setIsFullscreenModalMode:function(e){var o,r,n,i;if(t){G.current=e,K(),O.current=null===(o=B.current)||void 0===o||null===(r=o.querySelector("[".concat(I,"]")))||void 0===r||null===(n=r.contentWindow)||void 0===n?void 0:n.document;var s=null===(i=O.current)||void 0===i?void 0:i.getElementById(S);if(s)if(e){var p=V.current.getBoundingClientRect(),a=p.top,m=p.left,l=p.width,c=p.height;s.setAttribute("style","\n top: ".concat(a,"px;\n left: ").concat(m,"px;\n width: ").concat(l,"px;\n height: ").concat(c,"px;\n position: absolute;\n ")),A(M.app.id);var d=window.innerWidth!==document.body.clientWidth;document.body.classList.add(h.overflowHidden,d&&h.compensateScroll)}else s.setAttribute("style",""),Z()}},userUnits:z}))})})}E.propTypes={app:A.shape({id:A.string,app:A.shape({name:A.string})}).isRequired,currentUser:A.shape({}).isRequired,isIsolationFeatureEnabled:A.func,onAppFullscreenTransparentMode:A.func,onAppRemove:A.func,onSettingChange:A.func,onSettingsChange:A.func,onIsMaximizedChange:A.func,onInnerContainerMouseEnter:A.func,onInnerContainerMouseLeave:A.func,onAppContainerClick:A.func,updateCurrentDashboardAppLastAnnotation:A.func,setInnerContainerRefFn:A.func,isAssetSubscriptionFeatureActive:A.bool},E.defaultProps={onAppFullscreenTransparentMode:t,onAppRemove:t,onSettingChange:t,onSettingsChange:t,updateCurrentDashboardAppLastAnnotation:t,onIsMaximizedChange:t,setInnerContainerRefFn:t,onInnerContainerMouseEnter:t,onInnerContainerMouseLeave:t,onAppContainerClick:t,isIsolationFeatureEnabled:!1,isAssetSubscriptionFeatureActive:!1};var T=g(E);export{T as DevCenterIsolatedApp};
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{noop as t}from"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import o from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import{createDevCenterRouter as r,isAppMaximized as n}from"../../../utils/devcenter.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/helpers/typeof";import{getUserUnits as i,subscribeForUserUnitsUpdates as s}from"../../../utils/index.js";import{jsx as p}from"react/jsx-runtime";import"@material-ui/core";import{useMemo as a,useRef as m,useState as l,useEffect as d,useContext as c,useReducer as u,useCallback as j}from"react";import"../../../clients/jsonApi/index.js";import"uuid";import C from"@babel/runtime/helpers/objectWithoutProperties";import A from"prop-types";import f from"classnames";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import{withRouter as g}from"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../IconButton/index.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeaderNew.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import b from"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import v from"../DevCenterAppContainer/DevCenterAppContainer.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../AppSettingsPopover/AppSettingsPopover.js";import x from"../../../permissions/PermissionsContext.js";import{ISOLATED_PAGE_APP_CONTAINER_ID as P}from"./constants.js";import{DevCenterAppZoidComponent as S,APP_IFRAME_ATTRIBUTE as I}from"./DevCenterAppZoidComponent.js";import"./DevCenterIsolatedAppPage.js";import"../../../permissions/constants/index.js";import"../../../permissions/withPermissionsHOC.js";import"../../../permissions/ProvidePermissions.js";import h from"./DevCenterIsolatedApp.module.css.js";import"./AppsGridDragHandle.js";import"../../TruncatedText/index.js";import"../../AssetEditor/SingleAssetEditor.js";import"../../AssetEditor/AssetEditorAutocomplete.js";import"../../AssetEditor/index.js";import"../../AppVersionsSelect/AppVersionsSelect.js";import"../../CollapsableSidebar.js";import"../../DateTimePicker/index.js";import"../../DatePicker/index.js";import"../../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../../ColorPicker/ColorPicker.js";import"../../ParameterCharts/AddEditTrack.js";import"../../ParameterCharts/ParameterCharts.js";import"../../ChartActionsList/ChartActionsList.js";import"../../SettingEditors/ColorEditor/index.js";import"../../SettingEditors/DropdownEditor/index.js";import"../../SettingEditors/RadioEditor/index.js";import"../../SwitchControl/index.js";import"../../RangeSlider/RangeSlider.js";import"../../Login/components/Login.js";import"../../Login/components/PasswordField.js";import"../../Login/components/Chip.js";import"../../Login/components/StepFooter.js";import"../../Login/components/StepContent.js";import"../../Login/components/StepHeader.js";import"../../Login/components/Step.js";import"../../Login/components/OrDivider.js";import"../../Login/components/HiddenEmailField.js";import"../../Login/components/EmailField.js";import"../../Breadcrumbs/index.js";import"../../VirtualizedTable/index.js";import"../../EmptyView/EmptyView.js";import"../../Button/index.js";import"../../MenuItem/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"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../ResizableTable/ResizableTable.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.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"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../../Notifications/Notifications.js";import"../../TextLink/index.js";import"../../Template/TemplatePopover/index.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"../../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"../../SearchInput/index.js";import"../../StageDesignVActual/ComparisonHeader.js";import"../../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../../StageDesignVActual/ComparisonRow.js";import"../../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";function D(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function y(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?D(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(e){var t=e.isIsolationFeatureEnabled,A=e.onAppFullscreenTransparentMode,g=e.onIsMaximizedChange,D=e.onInnerContainerMouseEnter,E=e.onInnerContainerMouseLeave,T=e.onAppContainerClick,L=e.setInnerContainerRefFn,M=C(e,["isIsolationFeatureEnabled","onAppFullscreenTransparentMode","onIsMaximizedChange","onInnerContainerMouseEnter","onInnerContainerMouseLeave","onAppContainerClick","setInnerContainerRefFn"]),F=a((function(){return r(M.router)}),[M.router.location]),w=t?S:v,k=m(),O=m(),B=m(),V=n(M.location.query,M.app.id),R=l(i()),W=o(R,2),H=W[0],z=W[1];d((function(){var e=s((function(e){return z(e)}));return function(){return e()}}),[]);var N=c(b),q=x(),U=m(!1),G=u((function(e){return!e}),!1),_=o(G,2)[1];function K(){A(null),document.body.classList.remove(h.overflowHidden,h.compensateScroll)}d((function(){return K}),[]);var Z=j((function(e){O.current=e,L(e)}),[]);return p("div",{className:h.fixedSizeContainer,ref:B,children:p("div",{ref:Z,onMouseEnter:D,onMouseLeave:E,"data-testid":"".concat("DevCenter_AppContainer","_").concat(M.app.app.name),className:f(h.container,U.current&&h.containerMaximizedTransparent,V&&h.containerMaximized),children:p(w,y(y({},M),{},{appContextValue:N,devCenterRouter:F,globalNotificationToastsAPI:window[Symbol.for("notificationToasts")],onAppContainerClick:T,onIsMaximizedChange:g,permissionsContextValue:q,setIsFullscreenModalMode:function(e){var o,r,n,i;if(t){U.current=e,_(),k.current=null===(o=O.current)||void 0===o||null===(r=o.querySelector("[".concat(I,"]")))||void 0===r||null===(n=r.contentWindow)||void 0===n?void 0:n.document;var s=null===(i=k.current)||void 0===i?void 0:i.getElementById(P);if(s)if(e){var p=B.current.getBoundingClientRect(),a=p.top,m=p.left,l=p.width,d=p.height;s.setAttribute("style","\n top: ".concat(a,"px;\n left: ").concat(m,"px;\n width: ").concat(l,"px;\n height: ").concat(d,"px;\n position: absolute;\n ")),A(M.app.id);var c=window.innerWidth!==document.body.clientWidth;document.body.classList.add(h.overflowHidden,c&&h.compensateScroll)}else s.setAttribute("style",""),K()}},userUnits:H}))})})}E.propTypes={app:A.shape({id:A.string,app:A.shape({name:A.string})}).isRequired,currentUser:A.shape({}).isRequired,isIsolationFeatureEnabled:A.func,onAppContainerClick:A.func,onAppFullscreenTransparentMode:A.func,onAppRemove:A.func,onInnerContainerMouseEnter:A.func,onInnerContainerMouseLeave:A.func,onIsMaximizedChange:A.func,onSettingChange:A.func,onSettingsChange:A.func,setInnerContainerRefFn:A.func,updateCurrentDashboardAppLastAnnotation:A.func},E.defaultProps={isIsolationFeatureEnabled:!1,onAppContainerClick:t,onAppFullscreenTransparentMode:t,onAppRemove:t,onInnerContainerMouseEnter:t,onInnerContainerMouseLeave:t,onIsMaximizedChange:t,onSettingChange:t,onSettingsChange:t,setInnerContainerRefFn:t,updateCurrentDashboardAppLastAnnotation:t};var T=g(E);export{T as DevCenterIsolatedApp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import e from"@babel/runtime/helpers/classCallCheck";import{jsxs as t,Fragment as r,jsx as o}from"react/jsx-runtime";import{PureComponent as i}from"react";import n from"@babel/runtime/helpers/createClass";import a from"prop-types";import l from"@babel/runtime/helpers/inherits";import c from"@babel/runtime/helpers/possibleConstructorReturn";import s from"@babel/runtime/helpers/getPrototypeOf";import{Picker as p}from"emoji-mart";import m from"@material-ui/core/Popover";import u from"./IconButton/index.js";import f from"./Icons/EmojiIcon.js";function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=s(e);if(t){var i=s(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return c(this,r)}}var d=function(a){l(s,i);var c=h(s);function s(t){var r;return e(this,s),(r=c.call(this,t)).state={openEmojiPicker:!1},r}return n(s,[{key:"render",value:function(){var e=this;return t(r,{children:[o(u,{"data-testid":"generic_emojiButton",buttonRef:function(t){e.anchorEl=t},"aria-label":"Emoji",onClick:function(){return e.setState({openEmojiPicker:!0})},disableRipple:this.props.disableRipple,className:this.props.emojiIconClassName,tooltipProps:{title:"Add Emoji"},children:o(f,{})}),o(m,{open:this.state.openEmojiPicker,anchorEl:this.anchorEl,onClose:function(){return e.setState({openEmojiPicker:!1})},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o(p,{onSelect:this.props.handleSelectEmoji,theme:"dark"})})]})}}]),s}();d.propTypes={handleSelectEmoji:a.func.isRequired,emojiIconClassName:a.string,disableRipple:a.bool},d.defaultProps={emojiIconClassName:void 0,disableRipple:!1};export default d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/classCallCheck";import{jsx as t}from"react/jsx-runtime";import{Component as o}from"react";import n from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/objectWithoutProperties";import c from"prop-types";import p from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import u from"../EmptyView/EmptyAppView/EmptyAppView.js";function f(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function m(r){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}();return function(){var t,o=l(r);if(e){var n=l(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return a(this,t)}}var h=function(c){s(l,o);var a=m(l);function l(){var t;e(this,l);for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];return t=a.call.apply(a,[this].concat(n)),r(p(t),"state",{hasInternalError:!1}),t}return n(l,[{key:"componentDidCatch",value:function(r){this.setState({hasInternalError:!0}),console.error(r),window.Rollbar&&window.Rollbar.error(r)}},{key:"render",value:function(){if(!this.state.hasInternalError)return this.props.children;var e=this.props,o=e.ErrorView,n=(e.children,i(e,["ErrorView","children"]));return t(o,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}({},n))}}],[{key:"getDerivedStateFromError",value:function(){return{hasInternalError:!0}}}]),l}();h.propTypes={children:c.node.isRequired,ErrorView:c.oneOfType([c.node,c.func])},h.defaultProps={ErrorView:u};export default h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{get as e}from"lodash";import{fromJS as t}from"immutable";import{FEED_ITEM_TYPES_BY_KEY as m,FEED_ITEM_TYPES as r}from"../../../constants/feed.js";import{jsx as o}from"react/jsx-runtime";import{THEMES as p}from"../../../constants/theme.js";import s from"../feedItemTypes/AlertFeedItem.js";import n from"../feedItemTypes/PostFeedItem.js";import d from"../feedItemTypes/DrillingOperationalNoteFeedItem.js";import a from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import i from"../feedItemTypes/DrillingDailyCostFeedItem.js";import f from"../feedItemTypes/DocumentFeedItem.js";import I from"../feedItemTypes/DrillerMemoFeedItem.js";import y from"../feedItemTypes/NptFeedItem.js";import l from"../feedItemTypes/
|
|
1
|
+
import{get as e}from"lodash";import{fromJS as t}from"immutable";import{FEED_ITEM_TYPES_BY_KEY as m,FEED_ITEM_TYPES as r}from"../../../constants/feed.js";import{jsx as o}from"react/jsx-runtime";import{THEMES as p}from"../../../constants/theme.js";import s from"../feedItemTypes/AlertFeedItem.js";import n from"../feedItemTypes/PostFeedItem.js";import d from"../feedItemTypes/DrillingOperationalNoteFeedItem.js";import a from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import i from"../feedItemTypes/DrillingDailyCostFeedItem.js";import f from"../feedItemTypes/DocumentFeedItem.js";import I from"../feedItemTypes/DrillerMemoFeedItem.js";import y from"../feedItemTypes/NptFeedItem.js";import l from"../feedItemTypes/SurveyStationFeedItem/index.js";import c from"../feedItemTypes/LessonsLearnedFeedItem/index.js";import u from"../feedItemTypes/TracesMemoFeedItem.js";import T from"../feedItemTypes/CompletionOperationalNoteFeedItem.js";import _ from"../feedItemTypes/CompletionOperationSummaryFeedItem.js";import j from"../feedItemTypes/CompletionDailyCostFeedItem.js";import F from"../feedItemTypes/CompletionDocumentFeedItem.js";import D from"../feedItemTypes/CompletionNptFeedItem.js";import v from"../feedItemTypes/StageOverviewFeedItem/index.js";var C={view:"feedItem",theme:p.DARK};export default function(p){var x=p.feedItem,O=p.appData,S=p.customFeedItemTypeTemplates;if(x.type in S){var g=S[x.type];return o(g,{"data-testid":"".concat("Feed_Content","_template"),feedItem:t(x),appData:t(O),appContext:t(C)})}switch(x.type){case e(m,"alert.type"):return o(s,{feedItem:x});case e(m,"post.type"):return o(n,{feedItem:x});case e(m,"operational_note.type"):return o(d,{feedItem:x});case e(m,"operation_summary.type"):return o(a,{feedItem:x});case e(m,"daily_cost.type"):return o(i,{feedItem:x});case e(m,"document.type"):return o(f,{feedItem:x});case e(m,"driller_memo.type"):return o(I,{feedItem:x});case e(m,"npt_event.type"):return o(y,{feedItem:x});case e(m,"survey_station.type"):return o(l,{feedItem:x});case e(m,"completion_operational_note.type"):return o(T,{feedItem:x});case e(m,"completion_operation_summary.type"):return o(_,{feedItem:x});case e(m,"completion_daily_cost.type"):return o(j,{feedItem:x});case e(m,"completion_document.type"):return o(F,{feedItem:x});case e(m,"completion_npt_event.type"):return o(D,{feedItem:x});case e(m,"completion_actual_stage.type"):return o(v,{feedItem:x});case r.TRACES_MEMO:return o(u,{feedItem:x});case e(m,"lessons_learned.type"):return o(c,{feedItem:x});default:return null}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"@babel/runtime/regenerator";import e from"@babel/runtime/helpers/asyncToGenerator";import{getAppStorage as t}from"../../../../clients/jsonApi/index.js";function n(r){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function e(n){var a,o,c;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.wellId,o=n.md,r.prev=1,r.next=4,t("corva","directional.accuracy",a,{query:"{data.actual_point.measured_depth#eq#".concat(o,"}"),sort:"{timestamp: -1}",limit:1});case 4:c=r.sent,r.next=10;break;case 7:r.prev=7,r.t0=r.catch(1),console.error(r.t0);case 10:return r.abrupt("return",c);case 11:case"end":return r.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}export{n as fetchDirectionalAccuracyRecords};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{convertValue as a,getUnitDisplay as t}from"../../../../../utils/convert.js";import e from"moment";import{purifyPlanName as i,getColorBySeverity as l}from"../../../../../utils/accuracy.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{makeStyles as c,Typography as m}from"@material-ui/core";import{number as o,string as p,shape as u}from"prop-types";var s=c((function(a){return{wrapper:{display:"flex",flexDirection:"column",margin:"0 20px 10px 0",minWidth:"290px"},planValueWrapper:{display:"flex",alignItems:"baseline"},planUnit:{color:a.palette.grey[400],marginLeft:5},planText:{color:a.palette.grey[400]}}})),d=function(c){var o,p=c.timestamp,u=c.initialPlanName,d=c.cumulativeTvdChange,v=c.accuracyData,f=s(),h=p?e.unix(p).format("MM/DD/YY"):"",y=i(u);return d&&(y="".concat(y,", ").concat(d," ft cumulative TVD change")),n("div",{className:"c-survey-station-feed-item__accuracy-plan",children:[r(m,{variant:"subtitle1",children:"Minimum Distance to Plan:"}),n("div",{className:f.planValueWrapper,children:[r(m,{variant:"h5",style:{color:l(v)},children:null===(o=a(null==v?void 0:v.distance_to_plan,"length","ft"))||void 0===o?void 0:o.fixFloat(1)}),n(m,{variant:"caption",className:f.planUnit,children:["(",t("length"),")"]})]}),r(m,{variant:"body1",className:f.planText,children:y||h})]})};d.propTypes={timestamp:o,initialPlanName:p,cumulativeTvdChange:p,accuracyData:u().isRequired},d.defaultProps={timestamp:null,initialPlanName:"",cumulativeTvdChange:""};export default d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{convertValue as a,getUnitDisplay as t}from"../../../../../utils/convert.js";import{jsxs as n,jsx as e}from"react/jsx-runtime";import{makeStyles as i,Grid as l,Typography as r}from"@material-ui/core";import{shape as c}from"prop-types";var o="surveyStationActivity",s=i((function(a){return{planText:{color:a.palette.grey[400]},planUnit:{color:a.palette.grey[400],marginLeft:5},pointValue:{display:"flex"},columnWithMargin:{marginRight:40},actualPointContainer:{width:400}}})),d=function(a){return a&&"number"==typeof a?a.toFixed(2):"-"},p=function(i){var c,p,m=i.feedItem,h=s(),u=(null===(c=m.context)||void 0===c||null===(p=c.survey_station)||void 0===p?void 0:p.data)||{},v=u.measured_depth,y=u.inclination,N=u.azimuth,b=u.tvd,f=u.vertical_section,g=u.dls,x=a(v,"length","ft"),V=a(b,"length","ft"),T=a(f,"length","ft"),_=a(g,"anglePerLength","dp100f");return n(l,{spacing:8,justify:"flex-start",container:!0,className:h.actualPointContainer,children:[n(l,{item:!0,children:[e(r,{variant:"body1",className:h.planText,children:"Survey at:"}),e(r,{variant:"body1",className:h.planText,children:"Inc:"}),e(r,{variant:"body1",className:h.planText,children:"Azi:"})]}),n(l,{item:!0,className:h.columnWithMargin,children:[n(r,{variant:"body2","data-testid":"".concat(o,"_lastSurvey"),className:h.pointValue,children:[d(x),n(r,{variant:"body2",component:"span",className:h.planUnit,children:["(",t("length"),")"]})]}),n(r,{variant:"body2","data-testid":"".concat(o,"_inclination"),className:h.pointValue,children:[d(y),e(r,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]}),n(r,{variant:"body2","data-testid":"".concat(o,"_azimuth"),className:h.pointValue,children:[d(N),e(r,{variant:"body2",component:"span",className:h.planUnit,children:"°"})]})]}),n(l,{item:!0,children:[e(r,{variant:"body1",className:h.planText,children:"TVD:"}),e(r,{variant:"body1",className:h.planText,children:"VS:"}),e(r,{variant:"body1",className:h.planText,children:"DLS:"})]}),n(l,{item:!0,children:[n(r,{variant:"body2","data-testid":"".concat(o,"_TVD"),className:h.pointValue,children:[d(V),n(r,{variant:"body2",component:"span",className:h.planUnit,children:["(",t("length"),")"]})]}),n(r,{variant:"body2","data-testid":"".concat(o,"_VS"),className:h.pointValue,children:[d(T),n(r,{variant:"body2",component:"span",className:h.planUnit,children:["(",t("length"),")"]})]}),n(r,{variant:"body2","data-testid":"".concat(o,"_DLS"),className:h.pointValue,children:[d(_),e(r,{variant:"body2",component:"span",className:h.planUnit,children:t("anglePerLength")})]})]})]})};p.propTypes={feedItem:c({context:c({survey_station:c({data:c().isRequired}).isRequired}).isRequired}).isRequired};export default p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e,Fragment as i}from"react/jsx-runtime";import{makeStyles as a,Typography as t}from"@material-ui/core";import{bool as n}from"prop-types";import s from"@material-ui/icons/NotInterested";import o from"@material-ui/icons/Warning";var l=a((function(r){return{wrapper:{display:"flex",alignItems:"center",margin:"0 20px 10px 0",minWidth:"290px"},warningIcon:{width:60,height:60,color:r.palette.grey[600],marginRight:15},warningMessage:{color:r.palette.grey[600]}}})),c=function(a){var n=a.isWellStatusActive,c=l();return r("div",{className:c.wrapper,children:e(i,n?{children:[r(o,{className:c.warningIcon}),e(t,{variant:"body1",className:c.warningMessage,children:["Directional accuracy is not ",r("br",{}),"available at this ",r("br",{}),"time"]})]}:{children:[r(s,{className:c.warningIcon}),e(t,{variant:"body1",className:c.warningMessage,children:["Well is not ",r("br",{}),"active"]})]})})};c.propTypes={isWellStatusActive:n.isRequired};export default c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import r from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import{jsx as t,jsxs as a}from"react/jsx-runtime";import{makeStyles as o}from"@material-ui/core";import{useState as n,useEffect as l}from"react";import{shape as u,number as s,string as m}from"prop-types";import d from"../../../LoadingIndicator/LoadingIndicator.js";import p from"./components/AccuracyPlan.js";import c from"./components/ActualPointInfo.js";import v from"./components/Warning.js";import{fetchDirectionalAccuracyRecords as f}from"./api.js";var y=o({wrapper:{display:"flex",flexWrap:"wrap"}}),h=function(o){var u,s,m,h=o.feedItem,q=y(),w=n(!1),x=e(w,2),R=x[0],_=x[1],I=n(!1),b=e(I,2),g=b[0],j=b[1],A=n(null),T=e(A,2),P=T[0],W=T[1],L=n(""),N=e(L,2),k=N[0],z=N[1],C=n(""),D=e(C,2),G=D[0],S=D[1],B=n(null),E=e(B,2),F=E[0],H=E[1],J="active"===(null===(u=h.context)||void 0===u||null===(s=u.survey_station)||void 0===s||null===(m=s.well)||void 0===m?void 0:m.status);return l(i(r.mark((function e(){var i,t,a,o,n,l,u,s,m,d,p,c,v,y;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null===(i=h.well)||void 0===i?void 0:i.id,u=null===(t=h.context)||void 0===t||null===(a=t.survey_station)||void 0===a||null===(o=a.data)||void 0===o?void 0:o.measured_depth,e.next=4,f({wellId:l,md:u});case 4:s=e.sent,m=null==s||null===(n=s[0])||void 0===n?void 0:n.data,_(!0),m&&(p=m.accuracy,c=m.cumulative_tvd_change||"",v=m.plan_name||"",y=null===(d=s[0])||void 0===d?void 0:d.timestamp,j(!0),W(p),z(c),S(v),H(y));case 8:case"end":return e.stop()}}),e)}))),[]),R?a("div",{className:q.wrapper,children:[g?t(p,{accuracyData:P,cumulativeTvdChange:k,initialPlanName:G,timestamp:F}):t(v,{isWellStatusActive:J}),t(c,{feedItem:h})]}):t(d,{})};h.propTypes={feedItem:u({context:u({survey_station:u({data:u({azimuth:s.isRequired,inclination:s.isRequired,measured_depth:s.isRequired}).isRequired,well:u({status:m.isRequired}).isRequired}).isRequired}).isRequired}).isRequired};export default h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as o}from"../utils/mobileDetect.js";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import{isNativeDetected as o}from"../utils/mobileDetect.js";import{jsxs as n,jsx as l,Fragment as s}from"react/jsx-runtime";import{createRef as a,PureComponent as p}from"react";import u from"@babel/runtime/helpers/createClass";import{getS3DownloadLink as c,getS3SignedUrl as d}from"../clients/jsonApi/index.js";import f from"prop-types";import{withStyles as m}from"@material-ui/core/styles";import h from"@babel/runtime/helpers/assertThisInitialized";import b from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import F from"@babel/runtime/helpers/getPrototypeOf";import v from"./IconButton/index.js";import U from"react-s3-uploader/s3upload";import y from"@material-ui/core/CircularProgress";import P from"@material-ui/icons/PhotoCamera";import S from"./PostPreviewDialog/index.js";import w from"./Icons/AttachIcon.js";function O(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function D(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?O(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}function j(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,i=F(e);if(r){var o=F(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return g(this,t)}}var I=function(f){b(g,p);var m=j(g);function g(o){var n,l;return r(this,g),n=m.call(this,o),e(h(n),"onFinish",i(t.mark((function e(){return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.setState({currentUpload:null,uploadingFileToS3:!1,openFileUploadPreviewDialog:n.props.openPreviewDialogOnUpload},(function(){n.props.onFinish&&c(n.state.s3FileName).then((function(e){n.props.onFinish(e.url,n.state.s3FileName,n.state.s3FileSize)}))}));case 1:case"end":return e.stop()}}),e)})))),e(h(n),"onError",(function(e){n.props.onError&&n.props.onError(e),console.error(e)})),e(h(n),"getSignedUrl",(l=i(t.mark((function e(r,i){var o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d(r.name,r.type);case 3:o=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),n.setState({uploadingFileToS3:null,currentUpload:null},(function(){n.onError(e.t0.message)})),e.abrupt("return");case 10:n.setState({s3FileUrl:o.signed_url,s3FileName:o.file_name,s3FileSize:r.size}),i(D(D({},o),{},{signedUrl:o.signed_url}));case 12:case"end":return e.stop()}}),e,null,[[0,6]])}))),function(e,r){return l.apply(this,arguments)})),e(h(n),"preprocess",(function(e,r){r(e)})),e(h(n),"uploadFile",(function(e){if(e.target.files[0]){n.clearUpload();var r=new U({fileElement:n.fileInput.current,getSignedUrl:n.getSignedUrl,preprocess:n.preprocess,onProgress:function(){},onFinishS3Put:n.onFinish,onError:n.onError});n.setState({uploadingFileToS3:!0,currentUpload:{uploader:r}})}})),e(h(n),"handleCloseFileUploadPreviewDialog",(function(){n.setState({openFileUploadPreviewDialog:!1})})),e(h(n),"handleShare",(function(e,r,t){n.setState({openFileUploadPreviewDialog:!1},(function(){n.props.handleShare&&n.props.handleShare(e,r,t)}))})),n.state={currentUpload:null,s3FileUrl:null,s3FileName:null,s3FileSize:null,uploadingFileToS3:!1,openFileUploadPreviewDialog:!1},n.fileInput=a(),n}return u(g,[{key:"clearUpload",value:function(){var e=this.state.currentUpload;e&&e.uploader&&e.uploader.abortUpload()}},{key:"renderUploadButton",value:function(){var e=o?P:w;return n("label",{htmlFor:this.props.inputId,children:[l("input",{ref:this.fileInput,id:this.props.inputId,type:"file",disabled:this.props.disabled,onChange:this.uploadFile,style:{display:"none"}}),l(v,{"data-testid":"".concat("fileUpload","_attachFileButton"),"aria-label":"File Upload",disabled:this.props.disabled,component:this.props.disabled?"button":"span",className:this.props.fileUploadIconClassName,disableRipple:this.props.disableRipple,tooltipProps:{title:"Attach File"},children:l(e,{})})]})}},{key:"render",value:function(){return n(s,{children:[this.state.uploadingFileToS3?l(y,{"data-testid":"generic_uploadProgress",classes:{root:this.props.classes.progressRoot},size:20}):this.renderUploadButton(),this.state.openFileUploadPreviewDialog&&l(S,{open:this.state.openFileUploadPreviewDialog,fileUrl:this.state.s3FileUrl,fileName:this.state.s3FileName,fileSize:this.state.s3FileSize,handleShare:this.handleShare,handleClose:this.handleCloseFileUploadPreviewDialog,additionalFields:this.props.additionalFields,requiredFields:this.props.requiredFields,message:this.props.message})]})}}]),g}();I.propTypes={additionalFields:f.arrayOf(f.node),classes:f.shape({}).isRequired,disableRipple:f.bool,disabled:f.bool,fileUploadIconClassName:f.string,handleShare:f.func,inputId:f.string,message:f.string,onError:f.func,onFinish:f.func,openPreviewDialogOnUpload:f.bool,requiredFields:f.arrayOf(f.string)},I.defaultProps={additionalFields:[],disableRipple:!1,disabled:!1,fileUploadIconClassName:void 0,handleShare:void 0,inputId:"icon-button-file",message:void 0,onError:void 0,onFinish:void 0,openPreviewDialogOnUpload:!0,requiredFields:[]};var C=m({progressRoot:{margin:14,marginTop:20}})(I);export default C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/classCallCheck";import{jsxs as o,jsx as t}from"react/jsx-runtime";import{createRef as i,PureComponent as n}from"react";import a from"@babel/runtime/helpers/createClass";import l from"prop-types";import s from"classnames";import c from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import m from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import p from"../LoadingIndicator/LoadingIndicator.js";import d from"@material-ui/core/Typography";import h from"@material-ui/icons/ArrowBack";import b from"./styles.css.js";function g(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,t=u(e);if(r){var i=u(this).constructor;o=Reflect.construct(t,arguments,i)}else o=t.apply(this,arguments);return m(this,o)}}var v=function(e){return t("div",{className:b.cGoogleDocsViewerToolbar,children:t("button",{type:"button","aria-label":"Close",className:b.cGoogleDocsViewerToolbarButton,onClick:e.onClose,children:o("div",{className:b.cGoogleDocsViewerToolbarBackButton,children:[t(h,{className:b.cGoogleDocsViewerToolbarIcon,htmlColor:"#b3b3b3"}),e.fileName&&t("span",{className:b.cGoogleDocsViewerToolbarBackButtonFileName,children:e.fileName})]})})})},y=function(l){f(u,n);var m=g(u);function u(o){var t;return r(this,u),t=m.call(this,o),e(c(t),"reloadFrame",(function(){t.frameRef.current&&t.setState((function(e){return{reloadsCounter:e.reloadsCounter+1}}),(function(){t.frameRef.current.src=t.frameLink}))})),e(c(t),"onFrameLoad",(function(){t.setState({loading:!1},(function(){clearInterval(t.frameLoadInterval)}))})),t.state={reloadsCounter:0,loading:!0,loadingFailed:!1},t.frameRef=i(),t}return a(u,[{key:"componentDidMount",value:function(){var e=this.props.fileSize&&this.props.fileSize>=1048576?this.props.fileSize/1048576*1e4:1e4;this.frameLoadInterval=setInterval(this.reloadFrame,e)}},{key:"componentWillUnmount",value:function(){clearInterval(this.frameLoadInterval)}},{key:"render",value:function(){var r=this.props,i=r.fileUrl,n=r.width,a=r.height,l=r.fileName,c=r.onClose,f=this.state,m=f.loading,u=f.loadingFailed;return o("div",{className:b.cGoogleDocsViewer,style:{width:n,height:a},children:[t(v,{fileName:l,onClose:c}),m&&t(p,{white:!1}),u?t(d,{variant:"body2",children:"Loading failed"}):t("iframe",{className:s(b.cGoogleDocsViewerFrame,e({},b.cGoogleDocsViewerFrameHidden,m)),title:i,src:this.frameLink,onLoad:this.onFrameLoad,ref:this.frameRef})]})}},{key:"frameLink",get:function(){return"https://docs.google.com/viewer?url=".concat(encodeURIComponent(this.props.fileUrl),"&embedded=true")}}]),u}();y.propTypes={width:l.oneOfType([l.string,l.number]),height:l.oneOfType([l.string,l.number]),fileUrl:l.string.isRequired,fileName:l.string,fileSize:l.number,onClose:l.func.isRequired},v.propTypes={onClose:l.func.isRequired,fileName:l.string},y.defaultProps={width:"100%",height:"100%",fileName:void 0,fileSize:void 0},v.defaultProps={fileName:void 0};export default y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{get as r,set as t}from"lodash";import o from"@babel/runtime/helpers/toConsumableArray";import i from"moment";import n from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import d from"@material-ui/core/colors/grey";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{get as r,set as t}from"lodash";import o from"@babel/runtime/helpers/toConsumableArray";import i from"moment";import n from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/regenerator";import a from"@babel/runtime/helpers/asyncToGenerator";import d from"@material-ui/core/colors/grey";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{PureComponent as p}from"react";import c from"@babel/runtime/helpers/createClass";import h from"prop-types";import m from"classnames";import f from"@babel/runtime/helpers/assertThisInitialized";import y from"@babel/runtime/helpers/inherits";import b from"@babel/runtime/helpers/possibleConstructorReturn";import I from"@babel/runtime/helpers/getPrototypeOf";import g from"react-infinite-scroller";import v from"../LoadingIndicator/LoadingIndicator.js";import L from"./styles.css.js";function T(e){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=I(e);if(r){var i=I(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return b(this,t)}}var D=d[700],C={newerThan12Hours:"Last 12 hours",olderThan12Hours:"Last 24 hours",olderThan1Days:"Earlier this week",olderThan7Days:"Older than 7 days",olderThan14Days:"Older than 14 days",olderThan30Days:"Older than 30 days"},w=function(d){y(b,p);var h=T(b);function b(r){var t;return n(this,b),t=h.call(this,r),e(f(t),"loadItems",a(s.mark((function e(){return s.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.state.isLoadingByScroll){e.next=2;break}return e.abrupt("return");case 2:return t.setState({isLoadingByScroll:!0}),e.next=5,t.props.loadItems();case 5:t.setState({isLoadingByScroll:!1});case 6:case"end":return e.stop()}}),e)})))),t.state={isLoadingByScroll:!1,periodDates:t.periodDates},t.updatePeriodsIntervalId=null,t}return c(b,[{key:"componentDidMount",value:function(){var e=this;this.updatePeriodsIntervalId=setInterval((function(){return e.setState({periodDates:e.periodDates})}),216e5)}},{key:"componentWillUnmount",value:function(){this.updatePeriodsIntervalId&&clearInterval(this.updatePeriodsIntervalId)}},{key:"renderNoItemsLabel",value:function(){return l("div",{"data-testid":"".concat("generic_infiniteList","_noItems"),className:L.cInfiniteListEmpty,children:this.props.noItemsFoundLabel},"c-infinite-list__empty")}},{key:"renderPeriodSeparator",value:function(e){return l("div",{"data-testid":"".concat("generic_infiniteList","_periodLabel"),className:L.cInfiniteListPeriod,style:{color:D},children:C[e]},e)}},{key:"renderItems",value:function(){var e=this;if(!this.props.divideByPeriods)return this.props.items.map((function(r){return e.props.renderItem(r)})).unshift(this.props.headerComponent);var n=this.state.periodDates,s=n.hoursAgo12,a=n.daysAgo1,d=n.daysAgo7,l=n.daysAgo14,u=n.daysAgo30,p=this.props.items.reduce((function(o,n,p){var c,h=e.props.renderItem(n,p),m=r(n,e.props.pathToCreatedAt),f=i(m);return f>=s?c="newerThan12Hours":f<s&&f>=a?c="olderThan12Hours":f<a&&f>=d?c="olderThan1Days":f<d&&f>=l?c="olderThan7Days":f<l&&f>=u?c="olderThan14Days":f<u&&(c="olderThan30Days"),t(o,[c,o[c].length],h)}),{newerThan12Hours:[],olderThan12Hours:[],olderThan1Days:[],olderThan7Days:[],olderThan14Days:[],olderThan30Days:[]}),c=Object.keys(p).reduce((function(r,t){return 0===p[t].length?r.concat(p[t]):r.concat([e.renderPeriodSeparator(t)].concat(o(p[t])))}),[]);return[this.props.headerComponent].concat(o(c))}},{key:"render",value:function(){return u("div",{className:m(L.cInfiniteList,this.props.infiniteClassName,e({},L.cInfiniteListOverflow,!this.props.useWindow)),style:{height:this.props.infiniteContainerHeight},children:[l(g,{loadMore:this.loadItems,hasMore:this.props.moreItemsMayExist&&!this.props.showNoItemsFound,threshold:this.props.threshold,loader:l(v,{fullscreen:!1},"c-infinite-scroll__loader"),useWindow:this.props.useWindow,initialLoad:this.props.initialLoad,children:this.renderItems()}),this.props.showNoItemsFound&&this.renderNoItemsLabel()]})}},{key:"periodDates",get:function(){return{hoursAgo12:i().subtract(12,"hours"),daysAgo1:i().subtract(1,"days"),daysAgo7:i().subtract(7,"days"),daysAgo14:i().subtract(14,"days"),daysAgo30:i().subtract(30,"days")}}}]),b}();w.propTypes={infiniteClassName:h.string,useWindow:h.bool,headerComponent:h.node,items:h.arrayOf(h.shape()).isRequired,showNoItemsFound:h.bool.isRequired,noItemsFoundLabel:h.string.isRequired,infiniteContainerHeight:h.number,moreItemsMayExist:h.bool.isRequired,pathToCreatedAt:h.arrayOf(h.string).isRequired,renderItem:h.func.isRequired,loadItems:h.func.isRequired,threshold:h.number,initialLoad:h.bool,divideByPeriods:h.bool},w.defaultProps={infiniteClassName:null,useWindow:!1,headerComponent:null,infiniteContainerHeight:null,threshold:3e3,initialLoad:!0,divideByPeriods:!0};export default w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{first as e}from"lodash";import t from"@babel/runtime/helpers/toConsumableArray";import{COMPLETION_APPTYPE_MODES_DICT as r,DEFAULT_SUPPORTED_PAD_MODES as o,COMPLETION_APP_TYPES as n}from"../../constants/completion.js";import
|
|
1
|
+
import{first as e}from"lodash";import t from"@babel/runtime/helpers/toConsumableArray";import{COMPLETION_APPTYPE_MODES_DICT as r,DEFAULT_SUPPORTED_PAD_MODES as o,COMPLETION_APP_TYPES as n,COMPLETION_MODES as i}from"../../constants/completion.js";import p from"@babel/runtime/helpers/slicedToArray";import{resolveActiveFracAsset as l,resolveActiveWirelineAsset as a,resolveActivePumpdownAsset as s}from"../../utils/completion.js";import{jsx as c}from"react/jsx-runtime";import{makeStyles as u,FormControl as m,Select as d,MenuItem as f}from"@material-ui/core";import{useMemo as g}from"react";import h from"prop-types";import{getWellStatusLabel as A}from"./utils.js";var y=n.padApp,v=n.fracWirelineMultiWellApp,b=n.fracMultiWellApp,S=n.wirelineMultiWellApp,W=n.fracSingleWellApp,M=n.wirelineSingleWellApp,x=n.pumpdownMultiWellApp,C=n.pumpdownSingleWellApp,w=u({selectFormControl:{maxWidth:"320px",padding:"5px 8px",marginLeft:"auto"},padSelect:{fontSize:"14px","&:before":{borderBottom:0},"&:after":{borderBottom:0}}}),j=function(n){var u=n.completionAppType,h=n.padModeSetting,j=n.assets,k=n.onChange,T=w(),F=[y,v,b,W].includes(u)&&l(j),P=[y,v,S,M].includes(u)&&a(j),q=[x,C].includes(u)&&s(j),B=g((function(){var e=[];return F||e.push(i.activeFrac),P||e.push(i.activeWireline),q||e.push(i.activePumpdown),e}),[F,P,q]),O="custom"===h.mode?"custom--".concat(e(h.selectedAssets)):h.mode,R=g((function(){return r[u].filter((function(e){return!B.includes(e)}))}),[u,B]),z=g((function(){return o.filter((function(e){return R.includes(e.key)}))}),[R]),I=g((function(){return j.reduce((function(e,r){var o=F&&F.id===r.id,n=P&&P.id===r.id,i=q&&q.id===r.id;return[].concat(t(e),[{key:"custom--".concat(r.id),label:"".concat(r.name).concat(A(o,n,i))}])}),[])}),[j,u]),L=z.concat(I),N=function(e){var t=e.split("--"),r=p(t,2),o=r[0],n=r[1],i={mode:o};"custom"===o&&(i.mode="custom",i.selectedAssets=[parseInt(n,10)]),k(i)};return c(m,{classes:{root:T.selectFormControl},children:O&&c(d,{value:O,onChange:function(e){return N(e.target.value)},inputProps:{name:"padModeSelect",id:"pad-mode-select"},className:T.padSelect,children:L.map((function(e){return c(f,{value:e.key,children:e.label},e.key)}))})})};j.propTypes={padModeSetting:h.shape({mode:h.string,selectedAssets:h.arrayOf(h.string)}),assets:h.arrayOf(h.shape()),completionAppType:h.string.isRequired,onChange:h.func.isRequired},j.defaultProps={padModeSetting:{},assets:[]};export default j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{isEmpty as t,get as n}from"lodash";import r from"@babel/runtime/helpers/toConsumableArray";import{jsxs as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{isEmpty as t,get as n}from"lodash";import r from"@babel/runtime/helpers/toConsumableArray";import a from"jsona";import{jsxs as i,jsx as s}from"react/jsx-runtime";import{makeStyles as c,Fab as l,Dialog as o,DialogTitle as d,DialogContent as u,FormControl as p,InputLabel as f,Select as m,MenuItem as h,Checkbox as S,ListItemText as g,DialogActions as E,Button as b}from"@material-ui/core";import{useMemo as I,useEffect as _}from"react";import{getPads as C}from"../../clients/jsonApi/index.js";import D from"prop-types";import{Add as O}from"@material-ui/icons";import P from"use-tiny-state-machine";function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var W=new a,w=c({fabSmallBtn:{width:24,height:24,minHeight:24,margin:"0 6px 0 1px"},fabSmallBtnIcon:{width:20,height:20},dialogPaper:{width:"75%",maxWidth:420}});var L={id:"requests",initial:"idle",context:{padsData:[],wellsData:[],lastStage:[],error:null,companyId:0},states:{idle:{on:{FETCH_PADS:{target:"pending",action:function(e){var r=e.dispatch,a=e.context;C({fields:["pad.name","pad.wells"],sort:"name",per_page:1e3,company:a.companyId}).then((function(e){return W.deserialize(e)})).then((function(e){return e.filter((function(e){return!t(n(e,"wells"))}))})).then((function(e){return r("PADS_REQUEST_SUCCESS",e)})).catch((function(e){return r("FAILURE",e)}))}}}},pending:{on:{PADS_REQUEST_SUCCESS:{target:"success",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{padsData:t})}))}},FAILURE:{target:"failure",beforeStateChange:function(e,t){throw new Error(t.message)}}}},success:{on:{FETCH_WELLS:{target:"success",action:function(e,t){(0,e.dispatch)("WELLS_REQUEST_SUCCESS",t.reduce((function(e,t){return e.concat(t.wells)}),[]))}},WELLS_REQUEST_SUCCESS:{target:"success",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{wellsData:t})}))}}}}}},x={id:"dialog",initial:"closed",context:{selectedPadIds:[],selectedWellIds:[]},states:{closed:{on:{OPEN_DIALOG:{target:"open",beforeStateChange:function(e,n){var a=e.updateContext,i=n.currentWellIds,s=n.padsData,c=[];return t(i)||s.forEach((function(e){e.wells.forEach((function(t){i.includes(t.asset_id)&&!c.includes(e.id)&&c.push(e.id)}))})),a((function(e){return v(v({},e),{},{selectedPadIds:[].concat(c),selectedWellIds:r(i)})}))}}}},open:{on:{CLOSE_DIALOG:{target:"closed",beforeStateChange:function(e){return(0,e.updateContext)((function(e){return v(v({},e),{},{selectedPadIds:[],selectedWellIds:[]})}))}},SET_PAD_ID:{target:"open",beforeStateChange:function(e,n){var r=e.updateContext,a=n.selectedPadIds,i=n.currentWellIds,s=n.padsData,c=[];return t(i)||s.forEach((function(e){e.wells.forEach((function(t){a.includes(e.id)&&i.includes(t.asset_id)&&c.push(t.asset_id)}))})),r((function(e){return v(v({},e),{},{selectedPadIds:a,selectedWellIds:[].concat(c)})}))}},SET_WELL_ID:{target:"open",beforeStateChange:function(e,t){return(0,e.updateContext)((function(e){return v(v({},e),{},{selectedWellIds:t})}))}}}}}},j=function(e){var n=e.onSave,r=e.currentOffsetSetting,a=e.assets,c=e.companyId,C=w(),D=P(L),y=D.state,v=D.dispatch,W=D.context,j=P(x),A=j.state,T=j.dispatch,k=j.context,R=I((function(){return t(r)&&!t(a)?a.map((function(e){return e.asset_id})):r.map((function(e){return e.selectedWellId}))}),[r,a]),U=function(){return T("CLOSE_DIALOG")},F=k.selectedPadIds,q=k.selectedWellIds;_((function(){W.companyId=c,v("FETCH_PADS")}),[]),_((function(){if(!t(F)){var e=W.padsData.filter((function(e){return F.includes(e.id)}));v("FETCH_WELLS",e)}}),[F]);var N=new Set(a.map((function(e){return Number(e.asset_id)})));return i("div",{children:[s(l,{size:"small",color:"primary",classes:{sizeSmall:C.fabSmallBtn},onClick:function(){return T("OPEN_DIALOG",{currentWellIds:R,padsData:W.padsData})},disabled:"success"!==y,children:s(O,{className:C.fabSmallBtnIcon})}),"success"===y&&i(o,{open:"open"===A,onBackdropClick:U,classes:{paper:C.dialogPaper},children:[s(d,{children:"Offset Wells"}),i(u,{children:[i(p,{margin:"normal",fullWidth:!0,required:!0,children:[s(f,{htmlFor:"pad-select",shrink:!t(F),children:"Pad"}),s(m,{multiple:!0,inputProps:{name:"pads",id:"pad-select"},value:F,onChange:function(e){return T("SET_PAD_ID",{selectedPadIds:e.target.value,currentWellIds:R,padsData:W.padsData})},renderValue:function(e){return"".concat(e.length," selected")},children:W.padsData.map((function(e){return i(h,{value:e.id,children:[s(S,{checked:F.includes(e.id)}),s(g,{primary:e.name})]},e.id)}))})]}),i(p,{margin:"normal",disabled:t(F),fullWidth:!0,required:!0,children:[s(f,{htmlFor:"wells",shrink:!t(q),children:"Well"}),s(m,{multiple:!0,inputProps:{name:"wells",id:"well-select"},value:q,onChange:function(e){return T("SET_WELL_ID",e.target.value)},renderValue:function(e){return"".concat(e.length," selected")},children:W.wellsData.map((function(e){var t=N.has(e.asset_id);return i(h,{value:e.asset_id,disabled:t,children:[s(S,{checked:q.includes(e.asset_id)}),s(g,{primary:e.name})]},e.id)}))})]})]}),i(E,{children:[s(b,{onClick:U,children:"Cancel"}),s(b,{variant:"contained",color:"primary",disabled:t(q),onClick:function(){var e=W.wellsData.filter((function(e){return q.includes(e.asset_id)})).map((function(e){var t=r.find((function(t){return t.selectedWellId===Number(e.asset_id)}));return t||{selectedWellId:Number(e.asset_id),selectedWellName:e.name,selectedWellStatus:e.status,selectedStages:[],stages:{}}}));U(),n(e)},children:"Save"})]})]})]})};j.propTypes={currentOffsetSetting:D.arrayOf(D.shape({})).isRequired,onSave:D.func.isRequired,companyId:D.string.isRequired,assets:D.arrayOf(D.shape({})).isRequired};export default j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import{getIsImage as l}from"../../utils/fileExtension.js";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Dialog as n}from"@material-ui/core";import{createRef as s,PureComponent as c}from"react";import p from"@babel/runtime/helpers/createClass";import d from"prop-types";import{withStyles as m}from"@material-ui/core/styles";import f from"@babel/runtime/helpers/assertThisInitialized";import h from"@babel/runtime/helpers/inherits";import u from"@babel/runtime/helpers/possibleConstructorReturn";import g from"@babel/runtime/helpers/getPrototypeOf";import U from"@material-ui/core/Button";import y from"@material-ui/core/Typography";import F from"../UserMention/index.js";import v from"../EmojiIconButton.js";import N from"@material-ui/core/Paper";import S from"@material-ui/core/DialogActions";import b from"@material-ui/core/DialogContent";import D from"@material-ui/core/DialogTitle";import C from"@material-ui/core/Input";import E from"@material-ui/core/RootRef";import P from"@material-ui/icons/Delete";import R from"../FileTypeIcon.js";import x from"../FailedFileUploading.js";import B from"./styles.css.js";import w from"../FileUploadIconButton.js";function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,o=g(e);if(t){var l=g(this).constructor;i=Reflect.construct(o,arguments,l)}else i=o.apply(this,arguments);return u(this,i)}}var j="PostPreviewDialog",k=i[200],T=i[300],z=i[400],A=function(e){return a(N,{className:e.classes.messageWrapper,children:[r(C,{"data-testid":"".concat(j,"_messageInput"),inputRef:e.inputEl,inputComponent:F,inputProps:{onChange:e.handleMessageChange,companyId:e.companyId,suggestionsPortalHost:e.rootRef.current},placeholder:"Add a message about the file...",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:e.classes.textFieldRoot,value:e.comment,onKeyDown:e.handleKeyDown}),a("div",{className:B.cPostPreviewDialogMessageAdditionalFieldsWrapper,children:[r("div",{children:e.additionalFields}),a("div",{className:B.cPostPreviewDialogMessageActionFields,children:[!e.fileUrl&&r(w,{htmlColor:i[400],openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:e.handleFileUpload,onError:e.handleFileUploadingError,inputId:"preview-dialog-file-upload"}),r(v,{handleSelectEmoji:e.handleSelectEmoji,emojiIconClassName:e.classes.additionalActionButton,htmlColor:i[400],disableRipple:!0})]})]})]})},M=function(e){var t=l(e.fileName);return a("div",t?{children:[a("div",{className:B.cPostPreviewDialogFileName,children:[r(y,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,gutterBottom:!0,children:e.fileName}),r(P,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]}),r("div",{className:B.cPostPreviewDialogFileImageFileWrapper,style:{backgroundColor:k,border:"1px solid ".concat(T)},children:r("img",{"data-testid":"".concat(j,"_previewImage"),className:B.cPostPreviewDialogFileImage,src:e.fileUrl,alt:"Uploaded file"})})]}:{className:B.cPostPreviewDialogFileDownload,style:{backgroundColor:k,border:"1px solid ".concat(z)},children:[r(R,{fileName:e.fileName}),a("div",{className:B.cPostPreviewDialogFileDownloadText,children:[r(y,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,children:e.fileName}),r(P,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]})]})},W=function(i){h(d,c);var l=I(d);function d(i){var o;return t(this,d),o=l.call(this,i),e(f(o),"focusOnInput",(function(){return o.inputEl.current.focus()})),e(f(o),"handleKeyDown",(function(e){"Enter"===e.key&&o.handleShare()})),e(f(o),"handleMessageChange",(function(e){return o.setState({comment:e})})),e(f(o),"handleSelectEmoji",(function(e){return o.setState((function(t){var i=t.comment;return{comment:"".concat(i).concat(e.native)}}))})),e(f(o),"handleShare",(function(){o.props.handleShare(o.state.comment,o.state.fileUrl,o.state.fileSize)})),e(f(o),"handleFileDelete",(function(){o.setState({fileUrl:"",fileSize:null,fileName:""})})),e(f(o),"handleFileUpload",(function(e,t,i){o.setState({fileUrl:e,fileName:t,fileSize:i,fileUploadingError:null})})),e(f(o),"handleFileUploadingError",(function(e){o.setState({fileUrl:null,fileName:null,fileSize:null,fileUploadingError:e})})),o.state={comment:i.message,fileUrl:i.fileUrl,fileSize:i.fileSize,fileName:i.fileName,fileUploadingError:null},o.inputEl=s(),o.rootRef=s(),o}return p(d,[{key:"componentDidUpdate",value:function(e){!e.open&&this.props.open&&!this.state.comment&&this.props.message&&this.setState({comment:this.props.message}),this.props.fileUrl===e.fileUrl&&this.props.fileSize===e.fileSize&&this.props.fileName===e.fileName||this.setState({fileUrl:this.props.fileUrl,fileSize:this.props.fileSize,fileName:this.props.fileName})}},{key:"render",value:function(){return r(E,{rootRef:this.rootRef,children:a(n,{fullScreen:o,open:this.props.open,onClose:this.props.handleClose,onBackdropClick:this.props.handleClose,onEntered:this.focusOnInput,children:[r(D,{children:this.props.title}),a(b,{classes:{root:!o&&this.props.classes.dialogContentRoot},children:[r(A,{inputEl:this.inputEl,comment:this.state.comment,handleMessageChange:this.handleMessageChange,handleKeyDown:this.handleKeyDown,handleFileUpload:this.handleFileUpload,handleSelectEmoji:this.handleSelectEmoji,handleFileUploadingError:this.handleFileUploadingError,additionalFields:this.props.additionalFields,fileUrl:this.state.fileUrl,classes:this.props.classes,companyId:this.props.companyId,rootRef:this.rootRef}),this.state.fileUploadingError&&r(x,{errorMessage:this.state.fileUploadingError,className:this.props.classes.fileUploadingError}),this.state.fileUrl&&r(M,{fileName:this.state.fileName,fileUrl:this.state.fileUrl,handleFileDelete:this.handleFileDelete,handleFileUploadingError:this.handleFileUploadingError,classes:this.props.classes})]}),a(S,{className:this.props.classes.dialogActions,children:[r(U,{"data-testid":"".concat(j,"_cancelButton"),color:"primary",onClick:this.props.handleClose,children:this.props.cancelButtonText}),r(U,{"data-testid":"".concat(j,"_okButton"),color:"primary",variant:"contained",disabled:!this.state.fileUrl&&!this.state.comment||!this.props.requiredFields.every(Boolean),onClick:this.handleShare,children:this.props.okButtonText})]})]})})}}]),d}();W.propTypes={title:d.string,open:d.bool.isRequired,fileUrl:d.string,fileName:d.string,fileSize:d.number,handleShare:d.func.isRequired,handleClose:d.func.isRequired,classes:d.shape({}).isRequired,additionalFields:d.arrayOf(d.node),requiredFields:d.arrayOf(d.string),message:d.string,companyId:d.number,okButtonText:d.string,cancelButtonText:d.string},W.defaultProps={title:"Share a file",fileUrl:"",fileName:"",fileSize:null,additionalFields:[],requiredFields:[],message:"",companyId:null,okButtonText:"Post",cancelButtonText:"Cancel"};var _=m((function(e){return{dialogContentRoot:{minWidth:500},textFieldRoot:{marginBottom:20},textInput:{paddingTop:2},messageWrapper:{padding:"18.5px 14px",border:"solid 1px ".concat(e.palette.primary.main),boxShadow:"none"},dialogActions:{padding:"24px 24px",margin:0},deleteButton:{color:"#DADADA",cursor:"pointer"},fileUploadingError:{marginTop:10}}}))(W);export default _;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{get as e,isEmpty as r}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{get as e,isEmpty as r}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import{jsx as i,jsxs as s}from"react/jsx-runtime";import{Chip as o,TextField as a,FormControl as l,FormHelperText as c,List as p,ListItem as m,ListItemText as u,withStyles as d}from"@material-ui/core";import{PureComponent as f}from"react";import h from"@babel/runtime/helpers/createClass";import I from"prop-types";import b from"classnames";import g from"@babel/runtime/helpers/assertThisInitialized";import y from"@babel/runtime/helpers/inherits";import v from"@babel/runtime/helpers/possibleConstructorReturn";import w from"@babel/runtime/helpers/getPrototypeOf";import{Autocomplete as O}from"@material-ui/lab";import"./ChipSelector.css.js";function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?R(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=w(t);if(e){var i=w(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}var C=new RegExp("^new.*$"),N=function(d){y(v,f);var I=x(v);function v(r){var s;return n(this,v),s=I.call(this,r),t(g(s),"formatItem",(function(t){return{text:s.props.chipFormatter(t),id:e(t,"id"),persistent:e(t,"persistent",!1)}})),t(g(s),"handleChange",(function(t,e){var r=s.formattedSelectedItems,n=new Set(r.map((function(t){return t.id}))),i=new Set(e.map((function(t){return t.id}))),o=e.filter((function(t){return!n.has(t.id)})),a=r.filter((function(t){return!i.has(t.id)&&!t.persistent})).map((function(t){return t.id}));o.forEach(s.handleRequestAdd),a.forEach(s.handleRequestDelete)})),t(g(s),"handleRequestAdd",(function(t){var r=t.id,n=t.text;s.props.allowAddNewItems?s.itemWithSameNameExists(n)?s.setState({isError:!0}):s.props.onAddNew({id:"new".concat(n),name:n}):s.listedItems.find((function(t){return e(t,"id")===r}))?s.props.onAdd(r):s.setState({isError:!0})})),t(g(s),"handleRequestDelete",(function(t){s.props.allowAddNewItems&&C.test(t)?s.props.onRemoveNew(t):s.props.onRemove(t)})),t(g(s),"handleUpdateInput",(function(){s.state.isError&&s.setState({isError:!1})})),t(g(s),"getOptionLabel",(function(t){return t.text})),t(g(s),"renderTags",(function(t,e){return t.map((function(t,r){return i(o,S(S({"data-not-migrated-MuiChip":!0,label:s.getOptionLabel(t)},e({index:r})),{},{onDelete:t.persistent?null:function(){return s.handleRequestDelete(t.id)}}))}))})),t(g(s),"renderInput",(function(t){return i(a,S(S({},t),{},{variant:"standard",placeholder:s.props.hintText}))})),t(g(s),"itemWithSameNameExists",(function(t){return s.props.items.concat(s.props.newItems).map(s.formatItem).find((function(r){return e(r,"text")===t}))})),s.state={isError:!1},s}return h(v,[{key:"componentDidUpdate",value:function(t){var e=t.selectedItems;this.props.selectedItems!==e&&this.setState({isError:!1})}},{key:"render",value:function(){var t=this.state.isError?this.props.errorText:"",e=this.props.classes;return s("div",{children:[s(l,{className:e.formControl,error:!!t,fullWidth:!0,children:[i(O,{"data-testid":"generic_chipInput",multiple:!0,fullWidth:!0,id:"chip-selector",classes:{inputRoot:e.inputRoot},value:this.formattedSelectedItems,onChange:this.handleChange,onInputChange:this.handleUpdateInput,options:this.formattedListedItems,getOptionLabel:this.getOptionLabel,renderInput:this.renderInput,renderTags:this.renderTags}),i(c,{children:t})]}),i("div",{className:"c-chip-select-component__list-title",children:i("em",{children:this.props.listTitle})}),i(p,{className:b(this.props.listClasses,this.props.classes.listStyle),children:r(this.listedItems)?i("div",{className:"c-chip-select-component__empty-list",children:i("p",{"data-testid":"".concat("chipSelector","_emptyLabel"),children:"List is empty"})}):this.itemList})]})}},{key:"itemList",get:function(){var t=this;return this.listedItems.map((function(r){return i(m,{"data-testid":"".concat("chipSelector","_item_").concat(t.props.listItemFormatter(r)),button:!0,divider:!0,onClick:function(){return t.props.onAdd(e(r,"id"))},children:i(u,{children:t.props.listItemFormatter(r)})},e(r,"id"))}))}},{key:"listedItems",get:function(){var t=this;return this.props.items.filter((function(r){return!t.props.selectedItems.has(e(r,"id"))}))}},{key:"selectedItems",get:function(){var t=this;return this.props.items.filter((function(r){return t.props.selectedItems.has(e(r,"id"))})).concat(this.props.allowAddNewItems?this.props.newItems:[])}},{key:"formattedSelectedItems",get:function(){return this.selectedItems.map(this.formatItem)}},{key:"formattedListedItems",get:function(){return this.listedItems.map(this.formatItem)}}]),v}();N.propTypes={items:I.arrayOf(I.shape({})).isRequired,selectedItems:I.shape([]).isRequired,newItems:I.arrayOf(I.shape({})),onAdd:I.func.isRequired,onRemove:I.func.isRequired,allowAddNewItems:I.bool,onAddNew:I.func,onRemoveNew:I.func,chipFormatter:I.func,listItemFormatter:I.func,classes:I.string,listClasses:I.string,hintText:I.string,errorText:I.string,listTitle:I.string},N.defaultProps={allowAddNewItems:!1,chipFormatter:function(t){return t.toString()},listItemFormatter:function(t){return t.toString()},classes:"c-chip-select-component__container",listClasses:"c-chip-select-component__list",hintText:null,errorText:"You can not add not existing item",listTitle:"All items",onAddNew:null,onRemoveNew:null,newItems:null};var A=d({listStyle:{borderColor:"grey",overflow:"auto"},formControl:{marginBottom:8},inputRoot:{paddingBottom:"8px !important"}})(N);export default A;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={video:"video",thumb:"thumb",file:"file,"};export{e as ATTACMENT_METADATA_TYPE};
|
package/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as r from"./completion.js";export{r as completion};import*as o from"./alerts.js";export{o as alerts};export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as
|
|
1
|
+
import*as r from"./completion.js";export{r as completion};import*as o from"./alerts.js";export{o as alerts};export{DEV_CENTER_CLI_APP_ID}from"./devcenter.js";import*as t from"./goals.js";export{t as goals};export{ASSET_TYPES}from"./assetTypes.js";import*as s from"./segment.js";export{s as segment};import*as p from"./apps.js";export{p as apps};import*as e from"./drillstring.js";export{e as drillstring};import*as m from"./appPackages.js";export{m as appPackages};import*as i from"./notifications.js";export{i as notifications};import*as a from"./feed.js";export{a as feed};import*as f from"./helpCenter.js";export{f as helpCenter};import*as j from"./video.js";export{j as video};export{COMPLETION_WELL_SUMMARY,DRILLING_WELL_SUMMARY,DRILLOUT_WELL_SUMMARY}from"./wellSummary.js";export{RIG_ACTIVITY_COLORS}from"./rigActivity.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o={YOUTUBE:"youtube",CUSTOM:"custom"};export{o as VIDEO_SOURCES};
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{COLOR as e}from"../constants/accuracy.js";function r(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}function t(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e}function n(t,n,a,o){var c;t&&(c=n&&a?r(t.distance_to_plan,n,a):t.severity);switch(c){case"low":return e.green;case"moderate":return o?e.orange:e.yellow;case"high":return e.red;default:return e.white}}export{n as getColorBySeverity,r as getSeverity,t as purifyPlanName};
|
package/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as p,getUnitPlural as
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{convertArray as t,convertValue as o,getAllUnitTypes as e,getDefaultImperialUnit as s,getDefaultUnits as i,getUnitDescription as a,getUnitDisplay as p,getUnitPlural as m,getUnitPreference as n,getUnitsByType as f,getUnitSingular as c,getUnitSystem as l,updateUserUnits as j,getUserUnits as x,subscribeForUserUnitsUpdates as u,convertImmutables as g,convertImmutablesByBatch as y,getUniqueUnitsByType as U}from"./convert.js";import*as b from"./convert.js";export{b as convert};import*as v from"./StageDesignVActualUtils.js";export{v as StageDesignVActualUtils};import*as d from"./alerts.js";export{d as alerts};import*as O from"./audio.js";export{O as audio};import*as h from"./casing/index.js";export{h as casing};import*as P from"./chartSeries.js";export{P as chartSeries};import*as D from"./completion.js";export{D as completion};import*as w from"./components.js";import*as S from"./csvExport.js";export{S as csvExport};import*as C from"./metrics/index.js";export{C as metricsUtils};import*as N from"./devcenter.js";export{N as devcenter};import*as T from"./drillstring/index.js";export{T as drillstring};import*as k from"./DrillstringUtils.js";export{k as drillstringUtils};import*as A from"./FluidCheckUtils.js";export{A as fluidCheckUtils};import*as E from"./formatting.js";export{E as formatting};import*as B from"./reports.js";export{B as reports};import*as F from"./ga.js";export{F as ga};import*as I from"./goals.js";export{I as goals};import*as K from"./lasParser.js";export{K as lasParser};import*as q from"./loadable.js";export{q as loadable};import*as V from"./main.js";export{V as main};import*as J from"./mapUnits.js";export{J as mapUnits};import*as H from"./mapbox.js";import*as M from"./mobileDetect.js";export{M as mobileDetect};import*as R from"./nativeMessages.js";export{R as nativeMessages};import*as W from"./notifications.js";export{W as notifications};import*as z from"./permissions.js";export{z as permissions};import*as G from"./rollbar.js";export{G as rollbar};import*as L from"./sqlParser.js";export{L as sqlParser};import*as Q from"./time.js";export{Q as time};import*as X from"./torqueAndHookloadUtils.js";export{X as torqueAndHookloadUtils};import*as Y from"./accuracy.js";export{Y as accuracy};export{createNotification,removeNotification,showErrorNotification,showInfoNotification,showSuccessNotification,showWarningNotification}from"./notificationToasts.js";export{convertKeysToCamelCase,convertKeysToSnakeCase,getConvertKeys}from"./convertKeys.js";import*as Z from"./dashboardReports.js";export{Z as dashboardReports};import*as $ from"./apps.js";export{$ as apps};import*as _ from"./themeVariables.js";export{_ as themeVariables};import*as rr from"./env.js";export{rr as env};import*as tr from"./fileExtension.js";export{tr as fileExtension};export{jsonaDataFormatter}from"./jsonaDataFormatter.js";import*as or from"./video.js";export{or as video};function er(r,t){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.push.apply(o,e)}return o}var sr={get:function(r,t){var o=r[t];return"function"==typeof o?function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return o.apply(r,e.map((function(r){return r.toJS?r.toJS():r})))}:o}};function ir(t){return new Proxy(function(t){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?er(Object(e),!0).forEach((function(o){r(t,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):er(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t),sr)}var ar=t,pr=o,mr=e,nr=s,fr=i,cr=a,lr=p,jr=m,xr=n,ur=f,gr=c,yr=l,Ur=j,br=x,vr=u,dr=g,Or=y,hr=U,Pr=ir(H),Dr=ir(w);export{Dr as components,ar as convertArray,dr as convertImmutables,Or as convertImmutablesByBatch,pr as convertValue,mr as getAllUnitTypes,nr as getDefaultImperialUnit,fr as getDefaultUnits,hr as getUniqueUnitsByType,cr as getUnitDescription,lr as getUnitDisplay,jr as getUnitPlural,xr as getUnitPreference,gr as getUnitSingular,yr as getUnitSystem,ur as getUnitsByType,br as getUserUnits,Pr as mapbox,vr as subscribeForUserUnitsUpdates,Ur as updateUserUnits};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r,{SwitchCaseJsonMapper as e}from"jsona";var o=new r({jsonPropertiesMapper:new e({switchChar:"_"})});export{o as jsonaDataFormatter};
|
package/utils/video.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VIDEO_SOURCES as o}from"../constants/video.js";var t=/(http:|https:|)\/\/(www.)?(youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(&\S+)?/,e=function(e){var c=(e||"").match(t);return{source:c&&c[3].includes("youtu")?o.YOUTUBE:o.CUSTOM,id:c&&c[6]}};export{e as getVideoSourceAndIdByUrl};
|
package/utils/AccuracyUtils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import r from"@babel/runtime/helpers/createClass";import{COLOR as t}from"../constants/accuracy.js";var a=function(){function a(){e(this,a)}return r(a,[{key:"getColorBySeverity",value:function(e,r,a,n){var i;if(e)if(r&&a){var l=e.get("distance_to_plan");i=this.getSeverity(l,r,a)}else i=e.get("severity");switch(i){case"low":return t.green;case"moderate":return n?t.orange:t.yellow;case"high":return t.red;default:return t.white}}},{key:"getSeverity",value:function(e,r,t){return e>=r?"high":e>=t?"moderate":"low"}},{key:"purifyPlanName",value:function(e){var r=e.indexOf(", Updated Target");return-1!==r?e.slice(0,r):e}}]),a}();export default a;
|