@corva/ui 0.33.0-2 → 0.33.0-22
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/CLI/components/App/App.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/clients/api/apiCore.js +1 -1
- package/clients/jsonApi/index.js +1 -1
- package/clients/utils.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AssetNameLabel/PrimaryAssetNameLabel.js +1 -0
- package/components/AssetNameLabel/SecondaryAssetNameLabel.js +1 -0
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/CollapsableSidebar.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/CustomSelect/index.js +1 -0
- package/components/DevCenter/AppHeader/AppHeaderNew.css.js +1 -1
- package/components/DevCenter/AppHeader/AppHeaderNew.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.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/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.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/HelpContentCaption.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/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -0
- package/components/EmbeddedApp/EmbeddedApp.js +1 -0
- package/components/EmbeddedApp/components/AppInfo.js +1 -0
- package/components/EmbeddedApp/styles.css.js +1 -0
- package/components/EmojiIconButton.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/components/Actions.js +1 -1
- package/components/FeedItem/components/Comments.js +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/components/FeedComments.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/FilePreview/index.js +1 -1
- package/components/FileUploadIconButton.js +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/InfiniteList/index.js +1 -1
- package/components/Modal/Modal.css.js +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/Notifications/components/Toast.js +1 -1
- package/components/Notifications/components/styles.js +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SingleSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/effects/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/ResizableTable/ResizableTable.js +1 -1
- package/components/ResizableTable/ResizableTableCell.js +1 -1
- package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
- package/components/index.js +1 -1
- package/constants/bha.js +1 -0
- package/constants/helpCenter.js +1 -0
- package/constants/index.js +1 -1
- package/constants/sizes.js +1 -0
- package/constants/subscriptions.js +1 -0
- package/constants/video.js +1 -0
- package/effects/useSubscriptions.js +1 -1
- package/package.json +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/utils/accuracy.js +1 -0
- package/utils/index.js +1 -1
- package/utils/jsonaDataFormatter.js +1 -0
- package/utils/user.js +1 -1
- package/utils/video.js +1 -0
- package/utils/AccuracyUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@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{jsx as t}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs 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 i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as
|
|
1
|
+
import e from"@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{jsx as t}from"react/jsx-runtime";import{makeStyles as r,Breadcrumbs 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 i from"prop-types";import n from"classnames";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../LoadingIndicator/LoadingIndicator.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../Avatar/index.js";import"../Annotations/AnnotationsContext.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as p}from"../DevCenter/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"../DevCenter/AppHeader/AppHeaderNew.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppContext.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../EmptyView/EmptyAppView/EmptyAppView.js";import"../ErrorBoundary/ErrorBoundary.js";import"../Typography.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../SlateFormattedText/RenderElements.js";import"../SlateFormattedText/SlateFormattedText.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../DevCenter/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"../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"../CustomSelect/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";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";var s=r((function(e){return{container:{fontSize:"0.8125rem"},pathPart:{color:e.palette.grey[400],"&:hover":{color:"white"}},lastPathPart:{color:"white"}}})),m=function(r){var i=r.pathItems,m=s();return t(o,{className:m.container,children:i.map((function(r,o,i){return t(p,{className:n(m.pathPart,e({},m.lastPathPart,o===i.length-1)),href:r.href,children:r.text},r.text)}))})};m.propTypes={pathItems:i.arrayOf(i.shape({text:i.string,href:i.string})).isRequired};export default m;
|
|
@@ -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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"./Tooltip/MuiTooltipDcWrapper.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/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"./DevCenter/AppHeader/AppHeaderNew.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import C from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"./DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.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 j=function(t){var n,m=t.classes,j=t.children,u=t.onStateChange,g=t.initialState,
|
|
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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../utils/index.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{withStyles as n,Box as s,IconButton as p}from"@material-ui/core";import{useState as a}from"react";import"querystring";import"uuid/v1";import"../clients/jsonApi/index.js";import"../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"./Tooltip/MuiTooltipDcWrapper.js";import"./Avatar/index.js";import"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"./DevCenter/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"./DevCenter/AppHeader/AppHeaderNew.js";import"./DevCenter/AppHeader/AppHeader.js";import d from"@material-ui/icons/ChevronLeftRounded";import c from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppContext.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./EmptyView/EmptyAppView/EmptyAppView.js";import"./ErrorBoundary/ErrorBoundary.js";import"./Typography.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"./SlateFormattedText/RenderElements.js";import"./SlateFormattedText/SlateFormattedText.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"./DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/NavigationBar/NavigationBar.js";import C from"./DevCenter/SideBar/SideBar.js";import"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"./DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"./DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"./TruncatedText/index.js";import"./AssetEditor/SingleAssetEditor.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.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"./CustomSelect/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";import"./EmbeddedApp/DevCenterEmbeddedApp.js";import"./EmbeddedApp/EmbeddedApp.js";var j=function(t){var n,m=t.classes,j=t.children,u=t.onStateChange,g=t.initialState,A=t.drawerPaperClassName,D=t.isToolbarGutterShown,v=t.openedDrawerWidth,f=t.anchor,b=a(g),x=o(b,2),h=x[0],S=x[1],P=function(){S(!h),u(!h)},T="left"===f?d:c;return r(C,{isToolbarGutterShown:D,drawerWidth:v,drawerClassName:l(m.drawer,!h&&m.drawerClosed),drawerPaperClassName:l(m.drawer,m.drawerPaper,A,!h&&m.drawerClosed),anchor:f,listClassName:m.list,onClick:function(){h||P()},children:[j,i(s,{className:l(m.openToggleContainer,(n={},e(n,m.openToggleContainerCollapsed,!h),e(n,m.openToggleContainerOpened,h),n)),children:i(p,{"aria-label":"toggle sidebar",className:m.openToggleIconButton,onClick:P,children:i(T,{className:l(m.openToggleIcon,e({},m.openToggleIconClosed,!h))})})})]})};j.propTypes={children:m.node.isRequired,onStateChange:m.func,initialState:m.bool,drawerPaperClassName:m.string,isToolbarGutterShown:m.bool,openedDrawerWidth:m.oneOfType([m.string,m.number]),anchor:m.oneOf(["left","right"]),closedWidth:m.oneOfType([m.string,m.number])},j.defaultProps={onStateChange:t,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=n((function(e){return{drawer:{display:"flex",flexDirection:"column",height:"100%"},drawerPaper:{"&$drawerClosed":{cursor:"pointer","&:hover::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:e.palette.background.b7}}},drawerClosed:{width:function(e){return e.closedWidth}},openToggleIcon:{fontSize:"1.25rem",color:e.palette.primary.text7},openToggleIconClosed:{transform:"rotate(180deg)"},openToggleIconButton:{padding:6},openToggleContainer:{display:"flex",position:"absolute",bottom:0,width:"100%",flex:"0 0",padding:e.spacing(2,1,1.5)},openToggleContainerCollapsed:{paddingRight:e.spacing(1),paddingLeft:e.spacing(1),justifyContent:"center"},openToggleContainerOpened:{justifyContent:function(e){return"left"===e.anchor?"flex-end":"flex-start"}},list:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden",paddingBottom:60}}}))(j);export default u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{includes as t,noop as n,get as r}from"lodash";import o from"moment";import i from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/regenerator";import s from"@babel/runtime/helpers/asyncToGenerator";import c from"@material-ui/core/colors/grey";import m from"../../utils/main.js";import{isNativeDetected as l}from"../../utils/mobileDetect.js";import{jsxs as p,jsx as u}from"react/jsx-runtime";import{createRef as d,PureComponent as h}from"react";import f from"@babel/runtime/helpers/createClass";import{deleteFeedItemComment as g}from"../../clients/jsonApi/index.js";import v from"prop-types";import y from"classnames";import{withStyles as b}from"@material-ui/core/styles";import C from"@babel/runtime/helpers/assertThisInitialized";import D from"@babel/runtime/helpers/inherits";import M from"@babel/runtime/helpers/possibleConstructorReturn";import w from"@babel/runtime/helpers/getPrototypeOf";import E from"../Avatar/index.js";import I from"@material-ui/core/Typography";import O from"../UserCardPopover.js";import{formatMentionText as j}from"../UserMention/utils/index.js";import k from"@material-ui/icons/MoreVert";import x from"../ConfirmationDialog.js";import A from"@material-ui/core/IconButton";import _ from"../Attachment/index.js";import N from"../CommentInput/index.js";import S from"../CommentWrapper.js";import R from"../CommentLoader.js";import P from"@material-ui/core/Menu";import T from"@material-ui/core/MenuItem";import U from"./styles.css.js";function z(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 L(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 n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}var W={chatAvatarWrapper:{paddingTop:2,position:"absolute",top:6,left:-18},commentInfoContainer:{display:"inline-flex",alignItems:"center",width:"100%",paddingTop:5},userNameWrapper:{overflow:"hidden"},infoContainer:{display:"inline-block",verticalAlign:"top",width:"100%",paddingLeft:10}},B={commentWrapper:{width:"calc(100% - 10px)"},timeRoot:{color:c[700],float:"right",marginRight:5,marginLeft:10,fontSize:"10px"},textRoot:{marginTop:5,color:"#CCC",fontWeight:"normal",fontSize:"14px"},iconButtonRoot:{float:"right",height:40,width:40,padding:0,visibility:"hidden"},userName:{fontSize:"12px"}},q=function(l){D(b,h);var v=L(b);function b(t){var n,r;return i(this,b),n=v.call(this,t),e(C(n),"deleteComment",(r=s(a.mark((function e(t,n){var r;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g(t,n);case 3:r=e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0);case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,null,[[0,6]])}))),function(e,t){return r.apply(this,arguments)})),e(C(n),"showIntoView",(function(){n.props.handleShowOnMount(),n.commentEl.current.scrollIntoView({block:"end"})})),e(C(n),"handleToggleActionsMenu",(function(e){var t=e.currentTarget;n.setState((function(e){return{actionsMenuAnchorEl:e.actionsMenuAnchorEl?null:t}}))})),e(C(n),"handleKeyDown",(function(e){27===e.keyCode&&n.setState({isEditing:!1}),document.removeEventListener("keydown",n.handleKeyDown,!1)})),e(C(n),"handleEditMenuItem",(function(){document.addEventListener("keydown",n.handleKeyDown,!1),n.setState({isEditing:!0},(function(){n.inputEl.current&&n.inputEl.current.focus()}))})),e(C(n),"getEditCommentProps",(function(){var e=n.props.comment,t=e.id,r=e.body,o=e.attachment;return{editFeedItemId:e.feed_activity_id,editCommentId:t,editComment:r,editAttachment:o}})),e(C(n),"onEditFinish",(function(){n.setState({isEditing:!1,isLoading:!1})})),e(C(n),"handleDeleteMenuItem",(function(){n.setState({openDeleteDialog:!0})})),e(C(n),"handleDelete",s(a.mark((function e(){var t,r,o;return a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props.comment.id,r=n.props.comment.feed_activity_id,n.setState({isLoading:!0}),e.next=5,n.deleteComment(r,t);case 5:o=e.sent,n.setState({isLoading:!1,openDeleteDialog:!1}),o&&n.props.handleDeleteCallback(t);case 8:case"end":return e.stop()}}),e)})))),n.state={actionsMenuAnchorEl:null,isLoading:!1,isEditing:!1,openDeleteDialog:!1},n.inputEl=d(),n.commentEl=d(),n}return f(b,[{key:"componentDidMount",value:function(){this.props.showOnMount&&this.showIntoView()}},{key:"renderMenuIcon",value:function(){var e=this.isCurrentUserCommentCreator,n=this.isCurrentUserCommentCreator||t(this.props.comment.allowed_actions,"destroy");return n||e?p("div",{className:U.cCommentMenu,children:[u(A,{"data-testid":"".concat("comment","_menuButton"),"aria-label":"Actions","aria-owns":this.state.actionsMenuAnchorEl?"c-comment__actions-menu":void 0,"aria-haspopup":"true",classes:{root:this.props.classes.iconButtonRoot},onClick:this.handleToggleActionsMenu,children:u(k,{htmlColor:c[400]})}),p(P,{id:"c-comment__actions-menu",anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:this.state.actionsMenuAnchorEl,open:!!this.state.actionsMenuAnchorEl,onClick:this.handleToggleActionsMenu,children:[e&&u(T,{"data-testid":"".concat("comment","_editMenuItem"),onClick:this.handleEditMenuItem,children:"Edit"}),n&&u(T,{"data-testid":"".concat("comment","_deleteMenuItem"),onClick:this.handleDeleteMenuItem,children:"Delete"})]})]}):null}},{key:"render",value:function(){var t,i,a=this,s=this.state,c=s.isLoading,l=s.isEditing;if(c){var d=this.props.spaceAround;return u(R,{spaceAround:d})}var h=this.props,f=h.comment,g=h.classes,v=h.spaceAround,b=h.isNative,C=h.patchCommentCallback,D=h.companyId;if(l)return u(N,function(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?z(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({inputRef:this.inputEl,postComment:n,exitEditMode:this.onEditFinish,setIsEditting:function(){return a.setState({isLoading:!0})},patchCommentCallback:C,companyId:D},this.getEditCommentProps()));var M=m.getUserFullName(f.user),w=b?"MM/DD HH:mm":"MM/DD/YY HH:mm",k=o(f.created_at).format(w),A=(null==f||null===(t=f.attachment)||void 0===t?void 0:t.signed_url)||(null==f||null===(i=f.attachment)||void 0===i?void 0:i.url),P=r(f,["attachment","size"]);return p("div",{"data-testid":"".concat("comment","_commentItem_").concat(f.body),className:y(U.cComment,e({},U.cCommentNative,b)),ref:this.commentEl,children:[p(S,{spaceAround:v,className:this.props.classes.commentWrapper,children:[u("div",{style:W.chatAvatarWrapper,children:b?u(E,{size:26,displayName:M,imgSrc:r(f,["user","profile_photo"]),className:this.props.classes.avatar}):u(O,{user:f.user,currentUser:this.props.currentUser,children:u(E,{size:26,displayName:M,imgSrc:r(f,["user","profile_photo"]),className:this.props.classes.avatar})})}),p("div",{style:W.infoContainer,children:[u("div",{children:p("div",{style:W.commentInfoContainer,children:[u("div",{style:W.userNameWrapper,children:u(I,{"data-testid":"".concat("comment","_userName"),variant:"subtitle2",noWrap:!0,className:g.userName,children:M})}),u("div",{style:W.timeWrapper,children:u(I,{"data-testid":"".concat("comment","_addTime"),variant:"caption",classes:{root:g.timeRoot},children:k})})]})}),p("div",{className:U.cCommentBody,children:[this.renderMenuIcon(),u(I,{"data-testid":"".concat("comment","_commentMessage"),variant:"body1",classes:{root:g.textRoot},children:j(f.body,f.mentioned_users,b,"#00bcd4",this.props.currentUser)}),A&&u(_,{attachmentUrl:A,attachmentSize:P,size:"small"})]})]})]}),this.state.openDeleteDialog&&u(x,{open:this.state.openDeleteDialog,text:"Do you really want to delete comment?",handleClose:function(){return a.setState({openDeleteDialog:!1})},handleOk:this.handleDelete,okText:"Delete"})]})}},{key:"isCurrentUserCommentCreator",get:function(){return Number(r(this.props.comment,["user","id"]))===Number(this.props.currentUser.id)}}]),b}();q.propTypes={comment:v.shape({}).isRequired,showOnMount:v.bool,spaceAround:v.bool,handleShowOnMount:v.func,handleEdit:v.func,handleDeleteCallback:v.func.isRequired,patchCommentCallback:v.func.isRequired,companyId:v.number,currentUser:v.shape(),classes:v.shape({}).isRequired,isNative:v.bool},q.defaultProps={showOnMount:!1,spaceAround:!1,handleShowOnMount:n,handleEdit:n,companyId:null,isNative:l,currentUser:{}};var F=b(B)(q);export default F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{get as e}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import r from"@material-ui/core/colors/grey";import a from"../../utils/main.js";import{isNativeDetected as s}from"../../utils/mobileDetect.js";import{notifyCommentEdit as l,notifyCommentPost as c}from"../../utils/nativeMessages.js";import m from"@babel/runtime/helpers/createClass";import{jsxs as p,jsx as d}from"react/jsx-runtime";import{Paper as u,TextField as h,InputAdornment as f,Tooltip as C,Typography as g,IconButton as b}from"@material-ui/core";import{PureComponent as v}from"react";import{patchFeedItemComment as x}from"../../clients/jsonApi/index.js";import I from"lodash/noop";import y from"prop-types";import E from"classnames";import{withStyles as F}from"@material-ui/core/styles";import S from"@babel/runtime/helpers/assertThisInitialized";import U from"@babel/runtime/helpers/inherits";import N from"@babel/runtime/helpers/possibleConstructorReturn";import k from"@babel/runtime/helpers/getPrototypeOf";import A from"../Avatar/index.js";import{isSuggestionsListOpened as M}from"../UserMention/utils/index.js";import R from"../UserMention/index.js";import j from"../EmojiIconButton.js";import w from"../FailedFileUploading.js";import L from"../FileUploadIconButton.js";import T from"../FilePreview/index.js";import P from"../Icons/SendIcon.js";import D from"./styles.css.js";function B(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 n,o=k(t);if(e){var i=k(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return N(this,n)}}var z={chatAvatarWrapper:{display:"inline-block",verticalAlign:"top",position:"absolute",left:-18},commentTextFieldContainer:{position:"relative",margin:"0"},commentTextFieldContainerSpaceAround:{position:"relative",margin:"20px 10px"}},_=function(s){U(y,v);var I=B(y);function y(e){var r,a,s;return n(this,y),r=I.call(this,e),t(S(r),"handleSelectEmoji",(function(t){return r.setState((function(e){var n=e.comment;return{comment:"".concat(n).concat(t.native)}}))})),t(S(r),"postComment",(a=i(o.mark((function t(e){var n;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.props.postComment(e);case 3:n=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0.message);case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(t){return a.apply(this,arguments)})),t(S(r),"patchComment",(s=i(o.mark((function t(e){var n,i,a,s;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.props,i=n.editFeedItemId,a=n.editCommentId,t.prev=1,t.next=4,x(i,a,e);case 4:s=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message);case 10:return t.abrupt("return",s);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t){return s.apply(this,arguments)})),t(S(r),"clearCommentField",(function(t){r.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},(function(){r.focusOnRef(),t&&"function"==typeof t&&t()}))})),t(S(r),"handleKeyDown",(function(t){var e=t.key;"Escape"===e&&r.props.exitEditMode(),"Enter"===e&&(M()||(t.preventDefault(),r.handleSendComment()))})),t(S(r),"handleAttachmentLoadingError",(function(t){r.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:t})})),t(S(r),"handleFileUpload",(function(t,e,n){r.setState({attachmentUrl:t,attachmentName:e,attachmentSize:n,attachmentLoadingError:null})})),t(S(r),"handleNativeFileUpload",(function(){var t=r.state.comment;r.isEditMode?(l(t),r.clearCommentField(r.props.exitEditMode)):(c(t),r.clearCommentField())})),t(S(r),"handleFileDelete",(function(){return r.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null})})),t(S(r),"handleSendComment",i(o.mark((function t(){var e,n,i;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=r.state.comment?r.state.comment.trim():null)||r.state.attachmentUrl){t.next=3;break}return t.abrupt("return");case 3:if(n={comment:{body:e,attachment:{url:r.state.attachmentUrl,size:r.state.attachmentSize,file_name:r.state.attachmentName}}},!r.isEditMode){t.next=16;break}return r.props.setIsEditting(!0),t.next=8,r.patchComment(n);case 8:return i=t.sent,t.next=11,r.props.patchCommentCallback(i);case 11:r.props.setIsEditting(!1),r.clearCommentField(),r.props.exitEditMode(),t.next=24;break;case 16:return r.props.setIsPosting(!0),t.next=19,r.postComment(n);case 19:return i=t.sent,t.next=22,r.props.postCommentCallback(i);case 22:r.props.setIsPosting(!1),r.clearCommentField();case 24:case"end":return t.stop()}}),t)})))),t(S(r),"handleCloseEditClick",(function(){r.setState({comment:""}),r.props.exitEditMode()})),r.state={comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:null},r}return m(y,[{key:"componentDidMount",value:function(){this.isEditMode&&this.setInitialCommentValue()}},{key:"componentDidUpdate",value:function(t){(this.isEditMode&&!t.editFeedItemId||this.props.editCommentId&&this.props.editCommentId!==t.editCommentId)&&this.setInitialCommentValue()}},{key:"setInitialCommentValue",value:function(){var t=this.props.editAttachment?this.props.editAttachment.url:null;this.setState({comment:this.props.editComment,attachmentUrl:t,attachmentName:t?a.getFileNameWithExtensionFromPath(t):null,attachmentSize:this.props.editAttachment?this.props.editAttachment.url:null})}},{key:"focusOnRef",value:function(){this.props.inputRef&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var t=this,n=this.props,o=n.classes,i=n.currentUser,a="".concat(e(i,["attributes","first_name"])," ").concat(e(i,["attributes","last_name"]));return p("div",{style:this.props.spaceAround?z.commentTextFieldContainerSpaceAround:z.commentTextFieldContainer,children:[d("div",{style:z.chatAvatarWrapper,children:d(A,{displayName:a,imgSrc:this.props.currentUser&&this.props.currentUser.profile_photo})}),d(u,{className:this.props.classes.paperRoot,children:d(h,{"data-testid":"".concat("commentInput","_input"),placeholder:"Add Comment...",FormHelperTextProps:{component:"div",margin:"dense"},InputProps:{inputComponent:R,inputProps:{onChange:function(e){return t.setState({comment:e})},singleLine:!0,value:this.state.comment||"",inputRef:this.props.inputRef,withLightTheme:!1,onMount:this.props.onMount,companyId:this.props.companyId,autoFocus:this.props.autoFocus,disabled:this.props.disabled},endAdornment:!this.props.isNative&&p(f,{position:"end",className:this.props.classes.iconsContainer,children:[!this.state.attachmentUrl&&d(C,{title:"Attach File",placement:"bottom",classes:{tooltip:o.iconTooltip},children:d("div",{className:E(D.cCommentInputIconContainer,D.cCommentInputIconUpload),children:d(L,{openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:this.handleFileUpload,onError:this.handleAttachmentLoadingError,fileUploadIconClassName:this.props.classes.additionalActionButton,htmlColor:r[400],inputId:"comment-attachment-".concat(this.props.editCommentId)})})}),d(C,{title:"Add Emoji",placement:"bottom",classes:{tooltip:o.iconTooltip},children:d("div",{className:D.cCommentInputIconContainer,children:d(j,{"data-testid":"".concat("commentInput","_emojiButton"),handleSelectEmoji:this.handleSelectEmoji,emojiIconClassName:this.props.classes.additionalActionButton,htmlColor:r[400],disableRipple:!0})})})]}),disableUnderline:!0,classes:{root:this.props.classes.inputRoot,input:this.props.classes.inputEl}},className:this.props.classes.input,onKeyDown:this.handleKeyDown})}),this.state.attachmentLoadingError&&d(w,{errorMessage:this.state.attachmentLoadingError,className:this.props.classes.fileUploadingError}),this.state.attachmentUrl&&d(T,{fileName:this.state.attachmentName,fileUrl:this.state.attachmentUrl,handleFileDelete:this.handleFileDelete,classes:this.props.classes}),p("div",{className:D.cCommentInputSendContainer,children:[d("div",{className:D.cCommentInputSendContainerCancel,children:this.isEditMode&&d(g,{variant:"caption",className:E(this.props.classes.inputMain,this.props.classes.cancelText,this.props.classes.highlightedLabel),component:"div",gutterBottom:!0,onClick:this.props.exitEditMode,children:"Cancel"})}),p("div",{className:D.cCommentInputSendContainerSend,children:[p(g,{variant:"caption",className:E(this.props.classes.inputMain,this.props.classes.inputHelper),component:"div",gutterBottom:!0,children:["Press ",d(g,{variant:"caption",color:"primary",className:E(this.props.classes.inputMain,this.props.classes.highlightedLabel),children:"Enter"})," to send"]}),d(b,{"data-testid":"".concat("commentInput","_sendButton"),onClick:this.handleSendComment,children:d(P,{})})]})]})]})}},{key:"isEditMode",get:function(){return!!this.props.editFeedItemId}}]),y}();_.propTypes={inputRef:y.shape({current:y.shape({focus:y.shape({})})}),editFeedItemId:y.number,editCommentId:y.number,editComment:y.string,editAttachment:y.shape({url:y.string}),spaceAround:y.bool,postComment:y.func.isRequired,postCommentCallback:y.func,patchCommentCallback:y.func,exitEditMode:y.func,setIsPosting:y.func,setIsEditting:y.func,onMount:y.func,autoFocus:y.bool,disabled:y.bool,classes:y.shape({}).isRequired,currentUser:y.shape(),isNative:y.bool,companyId:y.number},_.defaultProps={inputRef:null,editFeedItemId:null,editCommentId:null,editComment:null,editAttachment:{},spaceAround:!1,setIsPosting:I,setIsEditting:I,onMount:I,autoFocus:void 0,disabled:!1,patchCommentCallback:I,postCommentCallback:I,exitEditMode:I,companyId:null,currentUser:{},isNative:s};var H=F((function(t){return{paperRoot:{width:"calc(100% - 28px)",marginLeft:25,display:"inline-block",height:35,border:"0","&:focus-within":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.primary.main)},boxShadow:"none"},input:{paddingLeft:5,width:"100%"},inputRoot:{height:35,paddingRight:"10px",lineHeight:"29px",paddingLeft:"10px"},inputEl:{padding:"0 0 0 6px",height:"100%"},additionalActionButton:{padding:"5px","&:hover":{backgroundColor:"transparent"}},nativeActionButton:{margin:"5px 10px",cursor:"pointer"},fileUploadingError:{marginTop:10,marginLeft:24},inputMain:{marginBottom:0,fontSize:".7rem",color:t.palette.grey[700]},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:t.palette.primary.main},iconsContainer:{marginRight:"8px"},iconTooltip:{marginTop:"3px"}}}))(_);export default H;
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{get as e}from"lodash";import n from"@babel/runtime/helpers/classCallCheck";import o from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import r from"@material-ui/core/colors/grey";import a from"../../utils/main.js";import{isNativeDetected as s}from"../../utils/mobileDetect.js";import{notifyCommentEdit as l,notifyCommentPost as c}from"../../utils/nativeMessages.js";import{jsxs as m,jsx as p}from"react/jsx-runtime";import{Paper as d,TextField as u,InputAdornment as h,Tooltip as f,Typography as C,IconButton as g}from"@material-ui/core";import{PureComponent as b}from"react";import v from"@babel/runtime/helpers/createClass";import{patchFeedItemComment as x}from"../../clients/jsonApi/index.js";import I from"lodash/noop";import y from"prop-types";import E from"classnames";import{withStyles as F}from"@material-ui/core/styles";import S from"@babel/runtime/helpers/assertThisInitialized";import U from"@babel/runtime/helpers/inherits";import N from"@babel/runtime/helpers/possibleConstructorReturn";import k from"@babel/runtime/helpers/getPrototypeOf";import A from"../Avatar/index.js";import{isSuggestionsListOpened as M}from"../UserMention/utils/index.js";import R from"../UserMention/index.js";import j from"../EmojiIconButton.js";import w from"../FailedFileUploading.js";import L from"../FileUploadIconButton.js";import T from"../FilePreview/index.js";import P from"../Icons/SendIcon.js";import D from"./styles.css.js";function B(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 n,o=k(t);if(e){var i=k(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return N(this,n)}}var z={chatAvatarWrapper:{display:"inline-block",verticalAlign:"top",position:"absolute",left:-18},commentTextFieldContainer:{position:"relative",margin:"0"},commentTextFieldContainerSpaceAround:{position:"relative",margin:"20px 10px"}},_=function(s){U(y,b);var I=B(y);function y(e){var r,a,s;return n(this,y),r=I.call(this,e),t(S(r),"handleSelectEmoji",(function(t){return r.setState((function(e){var n=e.comment;return{comment:"".concat(n).concat(t.native)}}))})),t(S(r),"postComment",(a=i(o.mark((function t(e){var n;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.props.postComment(e);case 3:n=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.error(t.t0.message);case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}}),t,null,[[0,6]])}))),function(t){return a.apply(this,arguments)})),t(S(r),"patchComment",(s=i(o.mark((function t(e){var n,i,a,s;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.props,i=n.editFeedItemId,a=n.editCommentId,t.prev=1,t.next=4,x(i,a,e);case 4:s=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0.message);case 10:return t.abrupt("return",s);case 11:case"end":return t.stop()}}),t,null,[[1,7]])}))),function(t){return s.apply(this,arguments)})),t(S(r),"clearCommentField",(function(t){r.setState({comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null},(function(){r.focusOnRef(),t&&"function"==typeof t&&t()}))})),t(S(r),"handleKeyDown",(function(t){var e=t.key;"Escape"===e&&r.props.exitEditMode(),"Enter"===e&&(M()||(t.preventDefault(),r.handleSendComment()))})),t(S(r),"handleAttachmentLoadingError",(function(t){r.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:t})})),t(S(r),"handleFileUpload",(function(t,e,n){r.setState({attachmentUrl:t,attachmentName:e,attachmentSize:n,attachmentLoadingError:null})})),t(S(r),"handleNativeFileUpload",(function(){var t=r.state.comment;r.isEditMode?(l(t),r.clearCommentField(r.props.exitEditMode)):(c(t),r.clearCommentField())})),t(S(r),"handleFileDelete",(function(){return r.setState({attachmentUrl:null,attachmentName:null,attachmentSize:null})})),t(S(r),"handleSendComment",i(o.mark((function t(){var e,n,i;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=r.state.comment?r.state.comment.trim():null)||r.state.attachmentUrl){t.next=3;break}return t.abrupt("return");case 3:if(n={comment:{body:e,attachment:{url:r.state.attachmentUrl,size:r.state.attachmentSize,file_name:r.state.attachmentName}}},!r.isEditMode){t.next=16;break}return r.props.setIsEditting(!0),t.next=8,r.patchComment(n);case 8:return i=t.sent,t.next=11,r.props.patchCommentCallback(i);case 11:r.props.setIsEditting(!1),r.clearCommentField(),r.props.exitEditMode(),t.next=24;break;case 16:return r.props.setIsPosting(!0),t.next=19,r.postComment(n);case 19:return i=t.sent,t.next=22,r.props.postCommentCallback(i);case 22:r.props.setIsPosting(!1),r.clearCommentField();case 24:case"end":return t.stop()}}),t)})))),t(S(r),"handleCloseEditClick",(function(){r.setState({comment:""}),r.props.exitEditMode()})),r.state={comment:"",attachmentUrl:null,attachmentName:null,attachmentSize:null,attachmentLoadingError:null},r}return v(y,[{key:"componentDidMount",value:function(){this.isEditMode&&this.setInitialCommentValue()}},{key:"componentDidUpdate",value:function(t){(this.isEditMode&&!t.editFeedItemId||this.props.editCommentId&&this.props.editCommentId!==t.editCommentId)&&this.setInitialCommentValue()}},{key:"setInitialCommentValue",value:function(){var t=this.props.editAttachment?this.props.editAttachment.url:null;this.setState({comment:this.props.editComment,attachmentUrl:t,attachmentName:t?a.getFileNameWithExtensionFromPath(t):null,attachmentSize:this.props.editAttachment?this.props.editAttachment.url:null})}},{key:"focusOnRef",value:function(){this.props.inputRef&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var t=this,n=this.props,o=n.classes,i=n.currentUser,a="".concat(e(i,["attributes","first_name"])," ").concat(e(i,["attributes","last_name"]));return m("div",{style:this.props.spaceAround?z.commentTextFieldContainerSpaceAround:z.commentTextFieldContainer,children:[p("div",{style:z.chatAvatarWrapper,children:p(A,{displayName:a,imgSrc:this.props.currentUser&&this.props.currentUser.profile_photo})}),p(d,{className:this.props.classes.paperRoot,children:p(u,{"data-testid":"".concat("commentInput","_input"),placeholder:"Add Comment...",FormHelperTextProps:{component:"div",margin:"dense"},InputProps:{inputComponent:R,inputProps:{onChange:function(e){return t.setState({comment:e})},singleLine:!0,value:this.state.comment||"",inputRef:this.props.inputRef,withLightTheme:!1,onMount:this.props.onMount,companyId:this.props.companyId,autoFocus:this.props.autoFocus,disabled:this.props.disabled},endAdornment:!this.props.isNative&&m(h,{position:"end",className:this.props.classes.iconsContainer,children:[!this.state.attachmentUrl&&p(f,{title:"Attach File",placement:"bottom",classes:{tooltip:o.iconTooltip},children:p("div",{className:E(D.cCommentInputIconContainer,D.cCommentInputIconUpload),children:p(L,{openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:this.handleFileUpload,onError:this.handleAttachmentLoadingError,fileUploadIconClassName:this.props.classes.additionalActionButton,htmlColor:r[400],inputId:"comment-attachment-".concat(this.props.editCommentId)})})}),p(f,{title:"Add Emoji",placement:"bottom",classes:{tooltip:o.iconTooltip},children:p("div",{className:D.cCommentInputIconContainer,children:p(j,{"data-testid":"".concat("commentInput","_emojiButton"),handleSelectEmoji:this.handleSelectEmoji,emojiIconClassName:this.props.classes.additionalActionButton,htmlColor:r[400],disableRipple:!0})})})]}),disableUnderline:!0,classes:{root:this.props.classes.inputRoot,input:this.props.classes.inputEl}},className:this.props.classes.input,onKeyDown:this.handleKeyDown})}),this.state.attachmentLoadingError&&p(w,{errorMessage:this.state.attachmentLoadingError,className:this.props.classes.fileUploadingError}),this.state.attachmentUrl&&p(T,{fileName:this.state.attachmentName,fileUrl:this.state.attachmentUrl,handleFileDelete:this.handleFileDelete,classes:this.props.classes}),m("div",{className:D.cCommentInputSendContainer,children:[p("div",{className:D.cCommentInputSendContainerCancel,children:this.isEditMode&&p(C,{variant:"caption",className:E(this.props.classes.inputMain,this.props.classes.cancelText,this.props.classes.highlightedLabel),component:"div",gutterBottom:!0,onClick:this.props.exitEditMode,children:"Cancel"})}),m("div",{className:D.cCommentInputSendContainerSend,children:[m(C,{variant:"caption",className:E(this.props.classes.inputMain,this.props.classes.inputHelper),component:"div",gutterBottom:!0,children:["Press ",p(C,{variant:"caption",color:"primary",className:E(this.props.classes.inputMain,this.props.classes.highlightedLabel),children:"Enter"})," to send"]}),p(g,{"data-testid":"".concat("commentInput","_sendButton"),onClick:this.handleSendComment,children:p(P,{})})]})]})]})}},{key:"isEditMode",get:function(){return!!this.props.editFeedItemId}}]),y}();_.propTypes={inputRef:y.shape({current:y.shape({focus:y.shape({})})}),editFeedItemId:y.number,editCommentId:y.number,editComment:y.string,editAttachment:y.shape({url:y.string}),spaceAround:y.bool,postComment:y.func.isRequired,postCommentCallback:y.func,patchCommentCallback:y.func,exitEditMode:y.func,setIsPosting:y.func,setIsEditting:y.func,onMount:y.func,autoFocus:y.bool,disabled:y.bool,classes:y.shape({}).isRequired,currentUser:y.shape(),isNative:y.bool,companyId:y.number},_.defaultProps={inputRef:null,editFeedItemId:null,editCommentId:null,editComment:null,editAttachment:{},spaceAround:!1,setIsPosting:I,setIsEditting:I,onMount:I,autoFocus:void 0,disabled:!1,patchCommentCallback:I,postCommentCallback:I,exitEditMode:I,companyId:null,currentUser:{},isNative:s};var H=F((function(t){return{paperRoot:{width:"calc(100% - 28px)",marginLeft:25,display:"inline-block",height:35,border:"0","&:focus-within":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.primary.main)},boxShadow:"none"},input:{paddingLeft:5,width:"100%"},inputRoot:{height:35,paddingRight:"10px",lineHeight:"29px",paddingLeft:"10px"},inputEl:{padding:"0 0 0 6px",height:"100%"},additionalActionButton:{padding:"5px","&:hover":{backgroundColor:"transparent"}},nativeActionButton:{margin:"5px 10px",cursor:"pointer"},fileUploadingError:{marginTop:10,marginLeft:24},inputMain:{marginBottom:0,fontSize:".7rem",color:t.palette.grey[700]},inputHelper:{display:"flex",paddingRight:5},cancelText:{cursor:"pointer"},highlightedLabel:{color:t.palette.primary.main},iconsContainer:{marginRight:"8px"},iconTooltip:{marginTop:"3px"}}}))(_);export default H;
|
|
@@ -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{createRef as o,PureComponent as n}from"react";import i from"@babel/runtime/helpers/createClass";import s from"prop-types";import{withStyles as a}from"@material-ui/core/styles";import c from"@babel/runtime/helpers/assertThisInitialized";import p from"@babel/runtime/helpers/inherits";import l from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import m from"./LoadingIndicator/LoadingIndicator.js";import f from"./CommentWrapper.js";function d(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=u(r);if(e){var n=u(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return l(this,t)}}var h={loadingIndicatorWrapper:{padding:"0 20px 0 0"}},b=function(s){p(l,n);var a=d(l);function l(t){var n;return e(this,l),n=a.call(this,t),r(c(n),"showIntoView",(function(){n.commentLoaderEl.current.scrollIntoView({block:"end"})})),n.commentLoaderEl=o(),n}return i(l,[{key:"componentDidMount",value:function(){this.props.showOnMount&&this.showIntoView()}},{key:"render",value:function(){return t("div",{ref:this.commentLoaderEl,children:t(f,{spaceAround:this.props.spaceAround,isLoader:!0,className:this.props.classes.commentWrapper,children:t("div",{style:h.loadingIndicatorWrapper,children:t(m,{fullscreen:!1,size:30})})})})}}]),l}();b.propTypes={showOnMount:s.bool,spaceAround:s.bool,classes:s.shape({}).isRequired},b.defaultProps={showOnMount:!1,spaceAround:!1};var y=a({commentWrapper:{width:"calc(100% - 28px)"}})(b);export default y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/classCallCheck";import
|
|
1
|
+
import t from"@babel/runtime/helpers/classCallCheck";import{jsxs as i,jsx as e,Fragment as o}from"react/jsx-runtime";import{Component as r}from"react";import n from"@babel/runtime/helpers/createClass";import a from"prop-types";import{withStyles as s}from"@material-ui/core/styles";import l from"@babel/runtime/helpers/inherits";import c from"@babel/runtime/helpers/possibleConstructorReturn";import p from"@babel/runtime/helpers/getPrototypeOf";import m from"@material-ui/core/Button";import f from"@material-ui/core/Typography";import u from"@material-ui/core/DialogActions";import h from"@material-ui/core/DialogContent";import d from"@material-ui/core/DialogTitle";import b from"@material-ui/core/TextField";import g from"@material-ui/core/DialogContentText";import x from"@material-ui/core/Dialog";function y(t){var i=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 e,o=p(t);if(i){var r=p(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return c(this,e)}}var C="confirmationDialog",T=function(a){l(c,r);var s=y(c);function c(i){var e;return t(this,c),(e=s.call(this,i)).state={confirmationTextField:""},e}return n(c,[{key:"render",value:function(){var t=this;return i(x,{open:this.props.open,onClose:this.props.handleClose,"aria-labelledby":"confirmation-dialog-title",classes:{paper:this.props.classes.paper},children:[e(d,{id:"confirmation-dialog-title",children:this.props.title}),e(h,{children:i(g,{children:[e(f,{variant:"body2",className:this.props.classes.content,children:this.props.text}),this.props.confirmationText&&e(b,{fullWidth:!0,"data-testid":"".concat(C,"_input"),label:this.props.confirmationText,value:this.state.confirmationTextField,onChange:function(i){return t.setState({confirmationTextField:i.target.value})},className:this.props.classes.confirmation})]})}),e(u,{className:this.props.classes.actions,children:this.actions})]})}},{key:"actions",get:function(){return i(o,{children:[this.props.isShowCancel&&e(m,{variant:"text","data-testid":"".concat(C,"_cancelButton"),className:this.props.classes.actionButton,onClick:this.props.handleClose,color:"primary",children:"Cancel"}),e(m,{variant:"contained","data-testid":"".concat(C,"_confirmButton"),className:this.props.classes.actionButton,onClick:this.props.handleOk,disabled:this.props.disableOk||this.props.confirmationText&&this.props.confirmation!==this.state.confirmationTextField,color:"primary",children:this.props.okText})]})}}]),c}();T.propTypes={open:a.bool.isRequired,title:a.string,text:a.string.isRequired,confirmationText:a.string,confirmation:a.string,handleClose:a.func,handleOk:a.func,okText:a.string,disableOk:a.bool,isShowCancel:a.bool,classes:a.shape({}).isRequired},T.defaultProps={title:void 0,confirmationText:null,confirmation:"",okText:"Ok",handleOk:function(){},handleClose:function(){},disableOk:!1,isShowCancel:!0};var k=s({actionButton:{marginLeft:15},confirmation:{marginTop:10}})(T);export default k;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{makeStyles as o,FormControl as n,InputLabel as i,Select as l}from"@material-ui/core";import p from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import s from"classnames";function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var m=o((function(e){return{formControl:{width:"100%",height:function(e){return e}},inputLabel:{color:e.palette.primary.text6,fontSize:"14px",letterSpacing:"0.8px"},select:{background:e.palette.background.b7,"&::before":{borderBottom:"none !important"},"&::after":{borderBottom:"none !important"}},selectedItem:{display:"flex",alignItems:"center"},iconOpen:{color:e.palette.primary.main},paper:{marginTop:function(e){return e+10}},disabled:{color:e.palette.primary.text8}}})),d=function(e){var o,a,c,d=e.label,b=e.height,f=e.children,h=p(e,["label","height","children"]),O=m(b);return r(n,{variant:"filled",className:O.formControl,fullWidth:!0,children:[t(i,{className:O.inputLabel,children:d}),t(l,u(u({className:O.select,classes:{select:O.selectedItem,iconOpen:O.iconOpen,disabled:O.disabled}},h),{},{MenuProps:u(u({},(null==h?void 0:h.MenuProps)||{}),{},{classes:u(u({},(null==h||null===(o=h.MenuProps)||void 0===o?void 0:o.classes)||{}),{},{paper:s(O.paper,null==h||null===(a=h.MenuProps)||void 0===a||null===(c=a.classes)||void 0===c?void 0:c.paper)})}),children:f}))]})};d.propTypes={children:a.shape().isRequired,label:a.string.isRequired,height:a.number,MenuProps:a.shape()},d.defaultProps={height:56,MenuProps:{}};export default d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppHeaderNew_appHeaderContainer__1Jw7S{display:flex}.AppHeaderNew_titleBlock__2Hcti{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:8px}.AppHeaderNew_headerComponents__3IHT4{display:flex;justify-content:flex-end}.AppHeaderNew_padModeSelect__2TzNO{height:24px}.AppHeaderNew_padModeSelect__2TzNO>div:first-child{padding-top:0!important}.AppHeaderNew_smallPadModeSelect__3_IUP{height:24px;margin-top:8px}.AppHeaderNew_smallPadModeSelect__3_IUP>div:first-child{padding-left:0;padding-top:8px;padding-bottom:0}.AppHeaderNew_titleWrapper__1COp-{display:flex;align-items:center}.AppHeaderNew_title__3HPRS{margin:0 8px 0 1px;font-size:18px;font-weight:500;line-height:24px}.AppHeaderNew_subtitle__2SNhn,.AppHeaderNew_title__3HPRS{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.AppHeaderNew_subtitle__2SNhn{color:#888;margin:0 0 0 1px;font-size:12px;font-weight:400;line-height:16px}.AppHeaderNew_mediumSizeContent__1YMaM{margin-top:8px;justify-content:flex-start}.AppHeaderNew_mediumSizeContent__1YMaM .AppHeaderNew_headerChildren__1oNXF{padding:0}.AppHeaderNew_headerChildren__1oNXF{display:flex;padding:0 0 12px 16px}.AppHeaderNew_headerChildren__1oNXF,.AppHeaderNew_headerChildren__1oNXF>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}");export default{appHeaderContainer:"AppHeaderNew_appHeaderContainer__1Jw7S",titleBlock:"AppHeaderNew_titleBlock__2Hcti",headerComponents:"AppHeaderNew_headerComponents__3IHT4",padModeSelect:"AppHeaderNew_padModeSelect__2TzNO",smallPadModeSelect:"AppHeaderNew_smallPadModeSelect__3_IUP",titleWrapper:"AppHeaderNew_titleWrapper__1COp-",title:"AppHeaderNew_title__3HPRS",subtitle:"AppHeaderNew_subtitle__2SNhn",mediumSizeContent:"AppHeaderNew_mediumSizeContent__1YMaM",headerChildren:"AppHeaderNew_headerChildren__1oNXF"};
|
|
1
|
+
import e from'../../../ext-esm/style-inject/dist/style-inject.es.js';e(".AppHeaderNew_appHeaderContainer__1Jw7S{display:flex}.AppHeaderNew_titleBlock__2Hcti{display:inline;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-right:8px}.AppHeaderNew_headerComponents__3IHT4{display:flex;justify-content:flex-end}.AppHeaderNew_padModeSelect__2TzNO{height:24px}.AppHeaderNew_padModeSelect__2TzNO>div:first-child{padding-top:0!important}.AppHeaderNew_smallPadModeSelect__3_IUP{height:24px;margin-top:8px}.AppHeaderNew_smallPadModeSelect__3_IUP>div:first-child{padding-left:0;padding-top:8px;padding-bottom:0}.AppHeaderNew_titleWrapper__1COp-{display:flex;align-items:center}.AppHeaderNew_title__3HPRS{margin:0 8px 0 1px;font-size:18px;font-weight:500;line-height:24px}.AppHeaderNew_subtitle__2SNhn,.AppHeaderNew_title__3HPRS{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.AppHeaderNew_subtitle__2SNhn{color:#888;margin:0 0 0 1px;font-size:12px;font-weight:400;line-height:16px}.AppHeaderNew_mediumSizeContent__1YMaM{margin-top:8px;justify-content:flex-start}.AppHeaderNew_mediumSizeContent__1YMaM .AppHeaderNew_headerChildren__1oNXF{padding:0}.AppHeaderNew_headerChildren__1oNXF{display:flex;padding:0 0 12px 16px}.AppHeaderNew_headerChildren__1oNXF,.AppHeaderNew_headerChildren__1oNXF>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.AppHeaderNew_assetNameLabelContainer__gOqPe{position:absolute;right:15px;z-index:100;display:flex;justify-content:flex-end;margin-top:4px;top:10px;width:fit-content}.AppHeaderNew_appMaximized__3OxKZ{margin-right:28px}.AppHeaderNew_item__2o5s3{line-height:20px;padding:0 12px;border-radius:10px;background-color:#434343;font-size:.85rem;color:var(--palette-primary-text-1)}.dc-app-container__light-theme .AppHeaderNew_item__2o5s3{background-color:#bdbdbd}.AppHeaderNew_item__2o5s3.AppHeaderNew_secondaryAsset__tx0UG{background-color:#d860d8;margin-right:4px;min-width:60px;text-overflow:ellipsis;height:21px;overflow:hidden;white-space:nowrap}.AppHeaderNew_seccondaryAssetWrapper__3sySe{max-width:20%}.AppHeaderNew_seccondaryAssetLink__A-muP{width:100%;padding:0}");export default{appHeaderContainer:"AppHeaderNew_appHeaderContainer__1Jw7S",titleBlock:"AppHeaderNew_titleBlock__2Hcti",headerComponents:"AppHeaderNew_headerComponents__3IHT4",padModeSelect:"AppHeaderNew_padModeSelect__2TzNO",smallPadModeSelect:"AppHeaderNew_smallPadModeSelect__3_IUP",titleWrapper:"AppHeaderNew_titleWrapper__1COp-",title:"AppHeaderNew_title__3HPRS",subtitle:"AppHeaderNew_subtitle__2SNhn",mediumSizeContent:"AppHeaderNew_mediumSizeContent__1YMaM",headerChildren:"AppHeaderNew_headerChildren__1oNXF",assetNameLabelContainer:"AppHeaderNew_assetNameLabelContainer__gOqPe",appMaximized:"AppHeaderNew_appMaximized__3OxKZ",item:"AppHeaderNew_item__2o5s3",secondaryAsset:"AppHeaderNew_secondaryAsset__tx0UG",seccondaryAssetWrapper:"AppHeaderNew_seccondaryAssetWrapper__3sySe",seccondaryAssetLink:"AppHeaderNew_seccondaryAssetLink__A-muP"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{get as e}from"lodash";import"../../../constants/completion.js";import"../../../constants/alerts.js";import
|
|
1
|
+
import{get as e}from"lodash";import"../../../constants/completion.js";import"../../../constants/alerts.js";import t from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as n}from"../../../constants/devcenter.js";import"../../../constants/goals.js";import{SEGMENTS as a}from"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import{getAppName as i,getAppSegment as s}from"../../../utils/devcenter.js";import{jsxs as o,Fragment as r,jsx as l}from"react/jsx-runtime";import{useRef as d,useState as p,useEffect as c}from"react";import m from"prop-types";import u from"classnames";import"../../Annotations/AnnotationsContext.js";import"../../Annotations/components/AnnotationsList/index.js";import h from"../../Annotations/components/LastAnnotation/index.js";import f from"./VersionBadge.js";import A from"./PadMode.js";import{getAppDimension as v}from"./utils.js";import g from"../../AssetNameLabel/SecondaryAssetNameLabel.js";import L from"../../AssetNameLabel/PrimaryAssetNameLabel.js";import b from"./AppHeaderNew.css.js";var N="DevCenter_AppHeader",j="EXTRA_LARGE",w="SMALL";function C(m){var C,S,_,x,y=m.app,M=m.appLastAnnotation,I=m.appSettings,R=m.badge,W=m.classes,z=m.coordinates,H=m.currentUser,P=m.fracFleet,D=m.isMaximized,F=m.onSettingChange,T=m.openAnnotationsList,q=m.rig,O=m.showLastAnnotation,k=m.updateCurrentDashboardAppLastAnnotation,U=m.well,E=m.wells,B=m.children,G=null==z?void 0:z.pixelWidth,V=v(G),X=i(y),J=null==y||null===(C=y.package)||void 0===C||null===(S=C.manifest)||void 0===S||null===(_=S.application)||void 0===_?void 0:_.subtitle,K=s(y),Q=K===a.DRILLING,Y=(null==y?void 0:y.settings)||{},Z=Y.wellId,$=Y.rigId,ee=Y.fracFleetId,te=Y.padId,ne=te&&(null==P||null===(x=P.pad_frac_fleets.find((function(e){return e.pad.id===te})))||void 0===x?void 0:x.pad),ae=Q?null==q?void 0:q.name:null==P?void 0:P.name,ie=Q?Z&&(null==U?void 0:U.name):te&&(null==ne?void 0:ne.name),se=!!(Z||$||ee),oe=null!=P&&P.current_pad_id?"assets/types/pad/".concat(null==P?void 0:P.current_pad_id):null,re=Q?ae&&"assets/".concat(null==U?void 0:U.asset_id):oe,le=te&&"assets/types/pad/".concat(te),de=y&&y.id===n,pe=d(null),ce=p({width:0}),me=t(ce,2),ue=me[0],he=me[1],fe=p({width:0}),Ae=t(fe,2),ve=Ae[0],ge=Ae[1],Le=p(0),be=t(Le,2),Ne=be[0],je=be[1];return c((function(){je((null==ue?void 0:ue.width)+(null==ve?void 0:ve.width)+16)}),[null==ue?void 0:ue.width,null==ve?void 0:ve.width,G]),o(r,{children:[o("div",{className:u(b.appHeaderContainer,W.appHeader),children:[o("div",{className:b.titleBlock,children:[o("div",{className:W.appHeaderTitleWrapper,ref:pe,children:[o("div",{className:b.titleWrapper,children:[l("h6",{"data-testid":"".concat(N,"_name"),className:b.title,children:X}),l(f,{app:y})]}),R]}),J&&l("h6",{"data-testid":"".concat(N,"_subtitle"),className:b.subtitle,children:J})]}),o("div",{className:b.headerComponents,style:{marginRight:"".concat(Ne,"px")},children:[V===j&&l("div",{className:b.headerChildren,children:B}),K===a.COMPLETION&&V!==w&&l("div",{className:b.padModeSelect,children:l(A,{fracFleet:P,wells:E,well:U,onSettingChange:F,appSettings:I})})]}),y&&z&&o("div",{className:u(b.assetNameLabelContainer,D&&b.appMaximized),children:[ie&&l(g,{secondaryAssetName:ie,coordinatesPixelWidth:z.pixelWidth,secondaryAssetLink:!de&&le,pageName:N,onSize:function(e){return ge(e)}}),se&&l(L,{primaryAssetName:ae,pageName:N,coordinatesPixelWidth:z.pixelWidth,primaryAssetLink:re,onSize:function(e){return he(e)}})]}),O&&M&&l(h,{dashboardAppId:y.id,appId:e(y,["app","id"]),annotation:M,openAnnotationsList:T,updateCurrentDashboardAppLastAnnotation:k,currentUser:H})]}),V===w&&l("div",{className:u(b.padModeSelect,b.smallPadModeSelect),children:l(A,{fracFleet:P,wells:E,well:U,onSettingChange:F,appSettings:I})}),V!==j&&l("div",{className:u(b.mediumSizeContent,b.headerComponents),children:l("div",{className:b.headerChildren,children:B})})]})}C.propTypes={app:m.object.isRequired,badge:m.node,classes:m.shape({appHeader:m.string,appHeaderTitleWrapper:m.string}),showLastAnnotation:m.bool,currentUser:m.shape({}),appLastAnnotation:m.shape({}),updateCurrentDashboardAppLastAnnotation:m.func,openAnnotationsList:m.func,rig:m.shape({name:m.string,asset_id:m.number}),well:m.shape({name:m.string,asset_id:m.number}),fracFleet:m.shape({name:m.string,current_pad_id:m.number,pad_frac_fleets:m.arrayOf(m.shape({pad:m.shape({id:m.number.isRequired}).isRequired})).isRequired}),wells:m.arrayOf(m.shape({})),coordinates:m.shape({pixelWidth:m.number.isRequired}),isMaximized:m.bool,appSettings:m.shape({}),onSettingChange:m.func,children:m.arrayOf(m.node)},C.defaultProps={appLastAnnotation:null,appSettings:null,badge:null,classes:{},coordinates:void 0,currentUser:void 0,fracFleet:null,isMaximized:!1,onSettingChange:void 0,openAnnotationsList:void 0,rig:null,showLastAnnotation:!0,updateCurrentDashboardAppLastAnnotation:function(){},well:null,wells:null,children:null};export default C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import t 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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,Fragment as r,jsx as i}from"react/jsx-runtime";import{makeStyles as n,Popover as p}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import a from"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import{Settings as d,Close as c}from"@material-ui/icons";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"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import j from"../../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"../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"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.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";function u(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 C(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?u(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g=n((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 24px)","&.scrollable":{height:"100%"}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"}}}));function A(e){var n,m=e.children,u=e.iconSettingsProps,A=a(e,["children","iconSettingsProps"]),b=g(),h=s(null),v=t(h,2),P=v[0],f=v[1],x=s(!0),S=t(x,2),D=S[0],y=S[1],I=function(){f(null)},T=Boolean(P);return o(r,{children:[i(j,C(C({onClick:function(e){return f(e.currentTarget)}},u),{},{children:i(d,{})})),o(p,C(C({open:T,anchorEl:P,onClose:I,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},A),{},{classes:C(C({},null==A?void 0:A.classes),{},{paper:l(b.popoverPaper,D&&"scrollable",null==A||null===(n=A.classes)||void 0===n?void 0:n.paper)}),children:[o("div",{className:l(b.popoverHeader,D&&"scrollable"),children:[i("div",{className:b.headerTitle,children:"Settings"}),i(j,{tooltipProps:{title:"Close"},onClick:I,children:i(c,{})})]}),i("div",{className:l(b.popoverContentContainer,D&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&y(!1)},children:i("div",{className:b.popoverContent,children:m})})]}))]})}A.propTypes={children:m.node.isRequired,iconSettingsProps:m.shape({iconSize:m.string})},A.defaultProps={iconSettingsProps:{iconSize:"small"}};export default A;
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"lodash";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import t 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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as o,Fragment as r,jsx as i}from"react/jsx-runtime";import{makeStyles as n,Popover as p}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import m from"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import l from"classnames";import{Settings as d,Close as c}from"@material-ui/icons";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"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import j from"../../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"../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"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.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"../../CustomSelect/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";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";function u(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 C(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?u(Object(r),!0).forEach((function(o){e(t,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var g=n((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 24px)","&.scrollable":{height:"100%"}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"}}}));function A(e){var n,a=e.children,u=e.iconSettingsProps,A=m(e,["children","iconSettingsProps"]),b=g(),h=s(null),v=t(h,2),P=v[0],f=v[1],x=s(!0),S=t(x,2),D=S[0],y=S[1],E=function(){f(null)},I=Boolean(P);return o(r,{children:[i(j,C(C({onClick:function(e){return f(e.currentTarget)}},u),{},{children:i(d,{})})),o(p,C(C({open:I,anchorEl:P,onClose:E,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12},A),{},{classes:C(C({},null==A?void 0:A.classes),{},{paper:l(b.popoverPaper,D&&"scrollable",null==A||null===(n=A.classes)||void 0===n?void 0:n.paper)}),children:[o("div",{className:l(b.popoverHeader,D&&"scrollable"),children:[i("div",{className:b.headerTitle,children:"Settings"}),i(j,{tooltipProps:{title:"Close"},onClick:E,children:i(c,{})})]}),i("div",{className:l(b.popoverContentContainer,D&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&y(!1)},children:i("div",{className:b.popoverContent,children:a})})]}))]})}A.propTypes={children:a.node.isRequired,iconSettingsProps:a.shape({iconSize:a.string})},A.defaultProps={iconSettingsProps:{iconSize:"small"}};export default A;
|
|
@@ -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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as r,Fragment as i,jsx as n}from"react/jsx-runtime";import{makeStyles as p,Drawer as s,Box as a}from"@material-ui/core";import m from"@material-ui/icons/Close";import{useState as l,useRef as d,useEffect as c}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import j from"prop-types";import u 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"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import C from"../../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 g from"@material-ui/icons/ChevronLeftRounded";import h from"@material-ui/icons/ChevronRightRounded";import A from"@material-ui/icons/Sort";import x from"@material-ui/icons/Check";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";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"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/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 f from"../../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 b=p((function(t){var o,r;return{drawer:function(o){var r=o.openedDrawerWidth;return e({height:"100%",position:"relative",width:r,borderTop:"1px solid",borderTopColor:t.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"},"&.".concat("closed"),{width:"48px"})},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:t.palette.background.b5},e(o,"&.".concat("closed"),{cursor:"pointer","&:hover":{backgroundColor:t.palette.background.b7,"& > $header":{backgroundColor:t.palette.background.b7}}}),e(o,"&.MuiDrawer-paperAnchorDockedLeft",{borderRight:"none"}),e(o,"&.MuiDrawer-paperAnchorDockedRight",{borderLeft:"none"}),o),header:(r={height:48,borderBottom:"1px solid",borderBottomColor:t.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:t.palette.background.b5},e(r,"&.".concat("open"),{padding:t.spacing(1.5),justifyContent:"flex-start"}),e(r,"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px 12px 12px #272727"}),r),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(t){var o,r=t.anchor;return e(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"},"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px -12px 12px #272727"}),e(o,"&.".concat("open"),{justifyContent:"left"===r?"flex-end":"flex-start",paddingRight:6}),o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer"}}})),S=function(t){var p,j=t.anchor,S=t.children,D=t.drawerPaperClassName,v=t.header,I=t.headerIcon,P=t.headerTitleIcon,T=t.isOpen,w=t.openedDrawerWidth,y=t.setIsOpen,k=t.size,E=t.allOptionsButtonShown,L=t.isAllOptionsSelected,B=t.onAllOptionsClick,O=l(!1),W=o(O,2),F=W[0],H=W[1],M=d(),N=b({anchor:j,openedDrawerWidth:w||{small:235,medium:354,large:473}[k]});c((function(){var e=M.current,t=e.scrollHeight,o=e.clientHeight;H(t>o)}));var R="left"===j?h:g;return r(s,{onClick:function(){T||y(!0)},className:u(N.drawer,!T&&"closed"),variant:"permanent",classes:{paper:u(N.drawerPaper,D,!T&&"closed")},anchor:j,children:[r("div",{className:u(N.header,T&&"open",F&&"withShadow"),onClick:function(){T&&y(!1)},children:[T&&r(i,{children:[P||n(A,{className:N.headerIcon}),n("div",{className:N.headerIconText,children:v}),E&&n(f,{className:N.selectAllButton,onClick:function(e){e.stopPropagation(),B(e)},startIcon:n(L?m:x,{}),children:L?"Clear All":"Select All"})]}),!T&&I]}),n("div",{className:N.contentWrapper,ref:M,children:n("div",{className:N.content,children:T&&S})}),n(a,{className:u(N.openToggleContainer,(p={},e(p,"open",T),e(p,"withShadow",F),p)),children:n(C,{"aria-label":"toggle sidebar",onClick:function(){y(!T)},children:n(R,{className:u(T&&N.openToggleIconOpen)})})})]})};S.propTypes={anchor:j.oneOf(["left","right"]),children:j.node.isRequired,drawerPaperClassName:j.string,header:j.node,headerIcon:j.node,headerTitleIcon:j.node,isOpen:j.bool,openedDrawerWidth:j.oneOfType([j.string,j.number]),setIsOpen:j.func,size:j.oneOf(["small","medium","large"]),allOptionsButtonShown:j.bool,isAllOptionsSelected:j.bool,onAllOptionsClick:j.func},S.defaultProps={anchor:"left",drawerPaperClassName:"",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:t,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:t};export default S;
|
|
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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as r,Fragment as i,jsx as n}from"react/jsx-runtime";import{makeStyles as p,Drawer as s,Box as a}from"@material-ui/core";import m from"@material-ui/icons/Close";import{useState as l,useRef as d,useEffect as c}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import j from"prop-types";import u 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"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import C from"../../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 g from"@material-ui/icons/ChevronLeftRounded";import h from"@material-ui/icons/ChevronRightRounded";import A from"@material-ui/icons/Sort";import x from"@material-ui/icons/Check";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";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"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/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 b from"../../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"../../CustomSelect/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";import"../../EmbeddedApp/DevCenterEmbeddedApp.js";import"../../EmbeddedApp/EmbeddedApp.js";var f=p((function(t){var o,r;return{drawer:function(o){var r=o.openedDrawerWidth;return e({height:"100%",position:"relative",width:r,borderTop:"1px solid",borderTopColor:t.palette.background.b7,boxShadow:"4px 0px 8px rgba(0, 0, 0, 0.15)"},"&.".concat("closed"),{width:"48px"})},drawerPaper:(o={position:"relative",width:"100%",backgroundColor:t.palette.background.b5},e(o,"&.".concat("closed"),{cursor:"pointer","&:hover":{backgroundColor:t.palette.background.b7,"& > $header":{backgroundColor:t.palette.background.b7}}}),e(o,"&.MuiDrawer-paperAnchorDockedLeft",{borderRight:"none"}),e(o,"&.MuiDrawer-paperAnchorDockedRight",{borderLeft:"none"}),o),header:(r={height:48,borderBottom:"1px solid",borderBottomColor:t.palette.background.b7,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:0,left:0,right:0,letterSpacing:"1px",textTransform:"uppercase",fontSize:"14px",fontWeight:500,lineHeight:"20px",backgroundColor:t.palette.background.b5},e(r,"&.".concat("open"),{padding:t.spacing(1.5),justifyContent:"flex-start"}),e(r,"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px 12px 12px #272727"}),r),openToggleIconOpen:{transform:"rotate(180deg)"},openToggleContainer:function(t){var o,r=t.anchor;return e(o={alignItems:"center",bottom:0,display:"flex",flex:"0 0",height:48,justifyContent:"center",padding:6,position:"absolute",width:"100%"},"&.".concat("withShadow"),{zIndex:1,boxShadow:"-18px -12px 12px #272727"}),e(o,"&.".concat("open"),{justifyContent:"left"===r?"flex-end":"flex-start",paddingRight:6}),o},contentWrapper:{marginTop:48,height:"calc(100% - 96px)",overflowY:"auto"},content:{padding:"16px 12px",display:"flex",flexDirection:"column"},selectAllButton:{textTransform:"none",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.4px",marginLeft:16,"& .MuiButton-startIcon":{marginRight:4}},headerIcon:{cursor:"pointer"},headerIconText:{cursor:"pointer"}}})),S=function(t){var p,j=t.anchor,S=t.children,D=t.drawerPaperClassName,v=t.header,I=t.headerIcon,P=t.headerTitleIcon,T=t.isOpen,w=t.openedDrawerWidth,y=t.setIsOpen,k=t.size,E=t.allOptionsButtonShown,L=t.isAllOptionsSelected,B=t.onAllOptionsClick,O=l(!1),W=o(O,2),F=W[0],H=W[1],M=d(),N=f({anchor:j,openedDrawerWidth:w||{small:235,medium:354,large:473}[k]});c((function(){var e=M.current,t=e.scrollHeight,o=e.clientHeight;H(t>o)}));var R="left"===j?h:g;return r(s,{onClick:function(){T||y(!0)},className:u(N.drawer,!T&&"closed"),variant:"permanent",classes:{paper:u(N.drawerPaper,D,!T&&"closed")},anchor:j,children:[r("div",{className:u(N.header,T&&"open",F&&"withShadow"),onClick:function(){T&&y(!1)},children:[T&&r(i,{children:[P||n(A,{className:N.headerIcon}),n("div",{className:N.headerIconText,children:v}),E&&n(b,{className:N.selectAllButton,onClick:function(e){e.stopPropagation(),B(e)},startIcon:n(L?m:x,{}),children:L?"Clear All":"Select All"})]}),!T&&I]}),n("div",{className:N.contentWrapper,ref:M,children:n("div",{className:N.content,children:T&&S})}),n(a,{className:u(N.openToggleContainer,(p={},e(p,"open",T),e(p,"withShadow",F),p)),children:n(C,{"aria-label":"toggle sidebar",onClick:function(){y(!T)},children:n(R,{className:u(T&&N.openToggleIconOpen)})})})]})};S.propTypes={anchor:j.oneOf(["left","right"]),children:j.node.isRequired,drawerPaperClassName:j.string,header:j.node,headerIcon:j.node,headerTitleIcon:j.node,isOpen:j.bool,openedDrawerWidth:j.oneOfType([j.string,j.number]),setIsOpen:j.func,size:j.oneOf(["small","medium","large"]),allOptionsButtonShown:j.bool,isAllOptionsSelected:j.bool,onAllOptionsClick:j.func},S.defaultProps={anchor:"left",drawerPaperClassName:"",header:null,headerIcon:null,headerTitleIcon:null,isOpen:!1,openedDrawerWidth:0,setIsOpen:t,size:"medium",allOptionsButtonShown:!1,isAllOptionsSelected:!1,onAllOptionsClick:t};export default S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{get as e,uniq as t,keyBy as n}from"lodash";import"../../../../constants/completion.js";import"../../../../constants/alerts.js";import a from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as u}from"../../../../constants/devcenter.js";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 s from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import{getWells as
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{get as e,uniq as t,keyBy as n}from"lodash";import"../../../../constants/completion.js";import"../../../../constants/alerts.js";import a from"@babel/runtime/helpers/slicedToArray";import{DEV_CENTER_CLI_APP_ID as u}from"../../../../constants/devcenter.js";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 s from"@babel/runtime/regenerator";import i from"@babel/runtime/helpers/asyncToGenerator";import c from"jsona";import{getWells as o,getRigs as p,getResolvedAssets as l,getFracFleets as f,getFracFleetWells as d,getPadWells as m}from"../../../../clients/jsonApi/index.js";function b(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var h=new c,w=function(r,t){return+e(r,["settings",t])},y=function(r){return t(r.map((function(r){var e=a(r,2);e[0];return e[1]})).filter(Number.isFinite))};function g(r){return _.apply(this,arguments)}function _(){return(_=i(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,o({ids:e,fields:["well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.rig","rig.name","rig.asset_id","company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function j(r){return x.apply(this,arguments)}function x(){return(x=i(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,p({ids:e,fields:["rig.name","rig.settings","rig.asset_id","rig.active_well","well.name","well.settings","well.company","well.asset_id","well.last_active_at","well.id","well.company.id"]});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}function k(r){return O.apply(this,arguments)}function O(){return(O=i(s.mark((function r(e){return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,l({assets:e});case 5:return r.abrupt("return",r.sent);case 8:return r.prev=8,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",null);case 12:case"end":return r.stop()}}),r,null,[[2,8]])})))).apply(this,arguments)}var P=function(r,t){return{well:r&&v(v({},r.attributes),{},{id:r.id,companyId:e(r,"relationships.company.data.id")}),rig:{name:e(t,"attributes.name"),id:e(t,"id"),asset_id:e(t,"attributes.asset_id")}}},D=function(r,t,n){return t?r.reduce((function(r,u){var s=a(u,2),i=s[0],c=s[1],o=n(t,c),p=t[e(o,"relationships.rig.data.id")];return r[i]=P(o,p),r}),{}):{}},z=function(r,t,n){return t?r.reduce((function(r,u){var s=a(u,2),i=s[0],c=s[1],o=n(t,c),p=t[e(o,"relationships.active_well.data.id")];return r[i]=P(p,o),r}),{}):{}},A=function(r,e,t){return e||t?r.reduce((function(r,n){var u=a(n,2),s=u[0],i=u[1],c=null==e?void 0:e[i],o=null==t?void 0:t[s];return r[s]={fracFleet:c,wells:o},r}),{}):{}},E=function(r,e){return r||e?r.reduce((function(r,t){var n=a(t,2),u=n[0],s=(n[1],null==e?void 0:e[u]);return r[u]={wells:s},r}),{}):{}};function F(r){return S.apply(this,arguments)}function S(){return(S=i(s.mark((function r(e){var t;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.length){r.next=2;break}return r.abrupt("return",null);case 2:return r.prev=2,r.next=5,f({ids:e,fields:["frac_fleet.name","frac_fleet.pads","frac_fleet.current_pad_id","frac_fleet.pad_frac_fleets"]});case 5:return t=r.sent,r.abrupt("return",h.deserialize(t));case 9:return r.prev=9,r.t0=r.catch(2),console.error(r.t0),r.abrupt("return",{});case 13:case"end":return r.stop()}}),r,null,[[2,9]])})))).apply(this,arguments)}function T(r,e){return G.apply(this,arguments)}function G(){return(G=i(s.mark((function r(t,c){var o,p,l;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n(c,"id"),p=t.map(function(){var r=i(s.mark((function r(t){var n,i,c,p,l,f;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=a(t,2),i=n[0],c=n[1],p={fields:"all",frac_fleet_id:c},l=o[i],i===u?p.app_key=e(l,["app","app_key"]):p.app_id=e(l,["app","id"]),r.prev=4,r.next=7,d(p);case 7:return f=r.sent,r.abrupt("return",h.deserialize(f));case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(p);case 4:return l=r.sent,r.abrupt("return",l.reduce((function(r,e,n){return r[t[n][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)})))).apply(this,arguments)}function I(r,e){return N.apply(this,arguments)}function N(){return(N=i(s.mark((function r(t,c){var o,p,l;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=n(c,"id"),p=t.map(function(){var r=i(s.mark((function r(t){var n,i,c,p,l,f;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=a(t,2),i=n[0],c=n[1],p={fields:"all"},l=o[i],i===u?p.app_key=e(l,["app","app_key"]):p.app_id=e(l,["app","id"]),r.prev=4,r.next=7,m(c,p);case 7:return f=r.sent,r.abrupt("return",h.deserialize(f));case 11:return r.prev=11,r.t0=r.catch(4),console.error(r.t0),r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,11]])})));return function(e){return r.apply(this,arguments)}}()),r.next=4,Promise.all(p);case 4:return l=r.sent,r.abrupt("return",l.reduce((function(r,e,n){return r[t[n][0]]=e,r}),{}));case 6:case"end":return r.stop()}}),r)})))).apply(this,arguments)}export{k as fetchAssetEntitiesByAssetIds,T as fetchFracFleetWells,F as fetchFracFleets,I as fetchPadWells,j as fetchRigs,g as fetchWells,w as getAppAssetSpecificTypeId,A as getAppsDataByFFs,E as getAppsDataByPads,z as getAppsDataByRigs,D as getAppsDataByWells,y as getUniqAssetIds};
|