@corva/ui 0.34.0-1 → 0.34.0-10
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/assets/DevCenterLogo.js +1 -1
- package/CLI/components/App/App.css.js +1 -1
- package/CLI/components/App/App.js +1 -1
- package/CLI/components/App/components/AppBar/AppBar.js +1 -1
- package/CLI/hocs/effects/useProvideAuth.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withCLIAppSettingsHOC.js +1 -1
- package/CLI/hocs/withCorvaMagicHOC.js +1 -1
- package/CLI/hocs/withDevCenterRouterHOC.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.css.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.global.css.js +1 -1
- package/CLI/hocs/withGridLayoutHOC/withGridLayoutHOC.js +1 -1
- package/CLI/hocs/withPDFLayoutHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/LoginScreen/LoginScreen.css.js +1 -1
- package/CLI/screens/LoginScreen/LoginScreen.js +1 -1
- package/CLI/screens/LoginScreen/components/Auth.js +1 -1
- package/CLI/screens/LoginScreen/components/AuthStep.js +1 -1
- package/CLI/screens/LoginScreen/components/EmailStep.js +1 -1
- package/CLI/screens/LoginScreen/components/IconLogo.js +1 -1
- package/CLI/screens/LoginScreen/components/SSOButton.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/_virtual/_commonjsHelpers.js +1 -1
- package/_virtual/arrayLikeToArray.js +1 -0
- package/_virtual/arrayWithHoles.js +1 -0
- package/_virtual/arrayWithoutHoles.js +1 -0
- package/_virtual/iterableToArray.js +1 -0
- package/_virtual/iterableToArrayLimit.js +1 -0
- package/_virtual/nonIterableRest.js +1 -0
- package/_virtual/nonIterableSpread.js +1 -0
- package/_virtual/runtime.js +1 -0
- package/_virtual/unsupportedIterableToArray.js +1 -0
- package/cjs/devcenter/webpack/DevServerEntryPoint.js +1 -1
- package/cjs/devcenter/webpack/DevServerIsolatedAppEntryPoint.js +1 -1
- package/cjs/devcenter/webpack/constants.js +1 -1
- package/cjs/devcenter/webpack/plugins/checkCorvaUIVersion.js +1 -1
- package/cjs/devcenter/webpack/utils/middlewares.js +1 -1
- package/cjs/devcenter/webpack/validators/dependencies.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.dev.js +1 -1
- package/cjs/devcenter/webpack/webpack.config.prod.js +1 -1
- package/clients/api/apiCore.js +1 -1
- package/clients/auth0/index.js +1 -1
- package/clients/clientStorage/core.js +1 -1
- package/clients/clientStorage/index.js +1 -1
- package/clients/index.js +1 -1
- package/clients/jsonApi/index.js +1 -1
- package/clients/subscriptions.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/Popup.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AnchorsList/AnchorsList.js +1 -1
- package/components/Annotations/AnnotationsContext.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/style.css.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/style.css.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationComments/style.css.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/StyledSelect.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AnnotationInput/style.css.js +1 -1
- package/components/Annotations/components/AnnotationsList/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/style.css.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/style.css.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/AppVersionsSelect/effects/index.js +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.js +1 -1
- package/components/AssetEditor/AssetEditors.css.js +1 -1
- package/components/AssetEditor/SingleAssetEditor.js +1 -1
- package/components/AssetEditor/effects/index.js +1 -1
- package/components/AssetEditor/index.js +1 -1
- package/components/AssetNameLabel/PrimaryAssetNameLabel.js +1 -1
- package/components/AssetNameLabel/SecondaryAssetNameLabel.js +1 -1
- package/components/AssetNameLabel/index.js +1 -1
- package/components/AssetNameLabel/styles.css.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/Attachment/styles.css.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.css.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/Map.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.css.js +1 -1
- package/components/BICOffsetPickerDialog/components/Map/index.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AssetSearch.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetResultSection.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AssetTypesSection.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/AutoCompleteAssetSearch.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/constants.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/effects/useAssetsData.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/AutoCompleteAssetSearch/utils/apiCalls.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/NumberCircle.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/SectionItem.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/WellListItem.js +1 -1
- package/components/BICOffsetPickerDialog/components/WellSection/index.js +1 -1
- package/components/BICOffsetPickerDialog/effects/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/BICOffsetPickerDialog/utils/apiCalls.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/index.js +1 -1
- package/components/Casing/CasingComponentIcon.js +1 -1
- package/components/Casing/CasingTable/CasingComponent.js +1 -1
- package/components/Casing/CasingTable/index.js +1 -1
- package/components/ChartActionsList/ChartActionsList.css.js +1 -1
- package/components/ChartActionsList/ChartActionsList.js +1 -1
- package/components/ChartActionsList/icons/GoLive.js +1 -1
- package/components/ChartActionsList/icons/LeftArrow.js +1 -1
- package/components/ChartActionsList/icons/RightArrow.js +1 -1
- package/components/ChartActionsList/icons/TimeRange.js +1 -1
- package/components/ChartActionsList/icons/ZoomIn.js +1 -1
- package/components/ChartActionsList/icons/ZoomOut.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/CollapsibleContent.js +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/ColorSquare/ColorSquare.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.css.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/Palette/Palette.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/Comment/CommentIcon/BadgeIcon.js +1 -1
- package/components/Comment/CommentIcon/index.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/Comment/styles.css.js +1 -1
- package/components/CommentInput/index.js +1 -1
- package/components/CommentInput/styles.css.js +1 -1
- package/components/CommentLoader.js +1 -1
- package/components/CommentWrapper.js +1 -1
- package/components/CommentsInfo/index.js +1 -1
- package/components/CommentsInfo/styles.css.js +1 -1
- package/components/ConfirmationDialog.js +1 -1
- package/components/ContextMenuItem/index.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/CustomSelect/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppContext.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.css.js +1 -1
- package/components/DevCenter/AppHeader/AppHeader.js +1 -1
- package/components/DevCenter/AppHeader/AppHeaderNew.css.js +1 -1
- package/components/DevCenter/AppHeader/AppHeaderNew.js +1 -1
- package/components/DevCenter/AppHeader/PadMode.js +1 -1
- package/components/DevCenter/AppHeader/VersionBadge.css.js +1 -1
- package/components/DevCenter/AppHeader/VersionBadge.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/AppsDataProvider/AppsDataProvider.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/dataResolvers.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/useAppsData.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppActions/AppActions.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/RestoreAppSizeButton.css.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsData.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAnnotationsList.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useAppSettings.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/effects/useHelpCenter.js +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.css.js +1 -1
- package/components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js +1 -1
- package/components/DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.scss.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.module.css.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DevCenter/NavigationBar/NavigationBar.js +1 -1
- package/components/DevCenter/SideBar/SideBar.js +1 -1
- package/components/Drillstring/BHAComponentDetail/index.js +1 -1
- package/components/Drillstring/BHAComponentIcon.js +1 -1
- package/components/Drillstring/BHASchematic.js +1 -1
- package/components/Drillstring/BHATable/BHAComponent.js +1 -1
- package/components/Drillstring/BHATable/index.js +1 -1
- package/components/EditableItem/EditableItem/index.js +1 -1
- package/components/EditableItem/EditableItemWithBadge/index.js +1 -1
- package/components/EmbeddedApp/DevCenterEmbeddedApp.js +1 -1
- package/components/EmbeddedApp/EmbeddedApp.js +1 -1
- package/components/EmbeddedApp/components/AppInfo.js +1 -1
- package/components/EmbeddedApp/styles.css.js +1 -1
- package/components/EmojiIconButton.js +1 -1
- package/components/EmptyView/EmptyAppView/EmptyAppView.js +1 -1
- package/components/EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js +1 -1
- package/components/EmptyView/EmptyView.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.css.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/FailedFileUploading.js +1 -1
- package/components/FeedItem/FeedItem.css.js +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditModal.js +1 -1
- package/components/FeedItem/FeedItemEditProvider/FeedItemEditProvider.js +1 -1
- package/components/FeedItem/components/Actions.js +1 -1
- package/components/FeedItem/components/AvatarIcon.js +1 -1
- package/components/FeedItem/components/Comments.js +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/components/CreatedAt.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FeedItem/components/Icon.js +1 -1
- package/components/FeedItem/components/Reactions.js +1 -1
- package/components/FeedItem/components/RigAndWell.js +1 -1
- package/components/FeedItem/components/TypeAndAssetTitle.js +1 -1
- package/components/FeedItem/feedItemTypes/AlertFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/helpers.js +1 -0
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/index.js +1 -0
- package/components/FeedItem/feedItemTypes/AppAnnotationFeedItem/styles.css.js +1 -0
- package/components/FeedItem/feedItemTypes/CompletionDailyCostFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/CompletionDocumentFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/CompletionNptFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationSummaryFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/CompletionOperationalNoteFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/DocumentFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/DrillerMemoFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/DrillingDailyCostFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationSummaryFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/DrillingOperationalNoteFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/FluidReportFeedItem.js +1 -0
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Critical.js +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Major.js +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/icons/Minor.js +1 -1
- package/components/FeedItem/feedItemTypes/LessonsLearnedFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/NptFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/api.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/NoData.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Predictions.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/PredictionsItem.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/Stages.js +1 -1
- package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/api.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/AccuracyPlan.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/ActualPointInfo.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/components/Warning.js +1 -1
- package/components/FeedItem/feedItemTypes/SurveyStationFeedItem/index.js +1 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/TargetChanges.js +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/components/VerticalSectionAzimuth.js +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/constants.js +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/index.js +1 -0
- package/components/FeedItem/feedItemTypes/WellPlanFeedItem/styles.css.js +1 -0
- package/components/FilePreview/index.js +1 -1
- package/components/FilePreview/styles.css.js +1 -1
- package/components/FileTypeIcon.js +1 -1
- package/components/FileUploadIconButton.js +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/Icons/CSVFileIcon.js +1 -1
- package/components/FilesLoader/Icons/DocFileIcon.js +1 -1
- package/components/FilesLoader/Icons/ExelFileIcon.js +1 -1
- package/components/FilesLoader/Icons/FileIcon.js +1 -1
- package/components/FilesLoader/Icons/IconCancel.js +1 -1
- package/components/FilesLoader/Icons/IconSuccess.js +1 -1
- package/components/FilesLoader/Icons/IconWarning.js +1 -1
- package/components/FilesLoader/Icons/ImageFileIcon.js +1 -1
- package/components/FilesLoader/Icons/PdfFileIcon.js +1 -1
- package/components/FilesLoader/Icons/UnknownFileIcon.js +1 -1
- package/components/FolderMenuItem/components/ClosedFolderIcon.js +1 -1
- package/components/FolderMenuItem/components/FolderIcon.js +1 -1
- package/components/FolderMenuItem/components/OpenFolderIcon.js +1 -1
- package/components/FolderMenuItem/index.js +1 -1
- package/components/FolderMenuItemWithLinks/index.js +1 -1
- package/components/GoogleDocsViewer/index.js +1 -1
- package/components/GoogleDocsViewer/styles.css.js +1 -1
- package/components/HeaderLayout/HeaderLayout.css.js +1 -1
- package/components/HeaderLayout/HeaderLayout.js +1 -1
- package/components/HeaderLayout/effects/index.js +1 -1
- package/components/HelpCenter/ArticleIcon.js +1 -0
- package/components/HelpCenter/DialogLayout.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/HelpCenterDialog.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/components/HelpContentCaption.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/components/HelpContentItem.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/components/HelpContentList.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/components/HelpContentTimestamp.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/components/SearchInput.js +1 -0
- package/components/HelpCenter/HelpCenterDialog/effects/useHelpContents.js +1 -0
- package/components/HelpCenter/ItemContent/ArticleItemContent.js +1 -0
- package/components/HelpCenter/ItemContent/ItemContent.js +1 -0
- package/components/HelpCenter/ItemContent/VideoItemContent.js +1 -0
- package/components/HelpCenter/SingleItemHeader.js +1 -0
- package/components/HelpCenter/index.js +1 -0
- package/components/HelpCenter/shapes/index.js +1 -0
- package/components/IconButton/index.js +1 -1
- package/components/IconMenu/index.js +1 -1
- package/components/Icons/AttachIcon.js +1 -1
- package/components/Icons/EmojiIcon.js +1 -1
- package/components/Icons/SendIcon.js +1 -1
- package/components/ImageViewer/index.js +1 -1
- package/components/ImageViewer/styles.css.js +1 -1
- package/components/InfiniteList/index.js +1 -1
- package/components/InfiniteList/styles.css.js +1 -1
- package/components/KeyboardDateTimePicker.js +1 -1
- package/components/LabelsCounter/LabelsCounter.js +1 -1
- package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
- package/components/LoadingIndicator/Loader.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/components/LoadingIndicator/LoadingIndicator.js +1 -1
- package/components/Login/components/Chip.js +1 -1
- package/components/Login/components/EmailField.js +1 -1
- package/components/Login/components/HiddenEmailField.js +1 -1
- package/components/Login/components/Login.global.css.js +1 -1
- package/components/Login/components/Login.js +1 -1
- package/components/Login/components/LogoIcon.js +1 -1
- package/components/Login/components/OrDivider.js +1 -1
- package/components/Login/components/PasswordField.js +1 -1
- package/components/Login/components/Step.js +1 -1
- package/components/Login/components/StepContent.js +1 -1
- package/components/Login/components/StepFooter.js +1 -1
- package/components/Login/components/StepHeader.js +1 -1
- package/components/MenuItem/index.js +1 -1
- package/components/Modal/Modal.css.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/Notifications/Notifications.js +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/Notifications/components/Toast.js +1 -1
- package/components/OffsetWellPickerV2/OffsetWellPickerDialog.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ClearFiltersButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/MultiSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/RadiusInput.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/SubjectWellSearch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleFiltersButton.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/Map/Map.css.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.css.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/popup.css.js +1 -1
- package/components/OffsetWellPickerV2/components/Map/popupGenerator.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsSelect.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.css.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/SubjectIndicator.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV2/constants.js +1 -1
- package/components/OffsetWellPickerV2/effects/biDirectionalFiltering.js +1 -1
- package/components/OffsetWellPickerV2/effects/index.js +1 -1
- package/components/OffsetWellPickerV2/utils/apiCalls.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/ClearFiltersButton.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/MultiSelect.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/RadiusInput.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/FormationsLegend.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.css.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/Map.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Map/popupGenerator.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/SubjectIndicator.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/WellSearch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/biDirectionalFiltering.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/utils/apiCalls.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableRows.js +1 -1
- package/components/OffsetWellPickerV3/effects/index.js +1 -1
- package/components/OffsetWellPickerV3/index.js +1 -1
- package/components/OffsetWellPickerV3/utils/apiCalls.js +1 -1
- package/components/PadModeSelect/PadModeSelect.js +1 -1
- package/components/PadOffsetsPicker/OffsetAssetChip.js +1 -1
- package/components/PadOffsetsPicker/OffsetAssetsListExpander.js +1 -1
- package/components/PadOffsetsPicker/PadOffsetsPicker.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/ParameterCharts/AddEditTrack.css.js +1 -1
- package/components/ParameterCharts/AddEditTrack.js +1 -1
- package/components/ParameterCharts/ChartsContext.js +1 -1
- package/components/ParameterCharts/DataContext.js +1 -1
- package/components/ParameterCharts/ParameterCharts.css.js +1 -1
- package/components/ParameterCharts/ParameterCharts.js +1 -1
- package/components/ParameterCharts/SettingsContext.js +1 -1
- package/components/ParameterCharts/components/ChartContainer.css.js +1 -1
- package/components/ParameterCharts/components/ChartContainer.js +1 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.css.js +1 -1
- package/components/ParameterCharts/components/Charts/EmptyChart.js +1 -1
- package/components/ParameterCharts/components/Charts/LineChart.css.js +1 -1
- package/components/ParameterCharts/components/Charts/LineChart.js +1 -1
- package/components/ParameterCharts/components/DataLoadingIndicator.js +1 -1
- package/components/ParameterCharts/components/SingleChannelTrackSettings.js +1 -1
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.css.js +1 -1
- package/components/ParameterCharts/components/Tooltip/CursorPositioner.js +1 -1
- package/components/ParameterCharts/components/Tooltip/Tooltip.css.js +1 -1
- package/components/ParameterCharts/components/Tooltip/Tooltip.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.css.js +1 -1
- package/components/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/ParameterCharts/components/TraceSelect.js +1 -1
- package/components/ParameterCharts/components/TraceSettings.css.js +1 -1
- package/components/ParameterCharts/components/TraceSettings.js +1 -1
- package/components/ParameterCharts/components/Track.css.js +1 -1
- package/components/ParameterCharts/components/Track.js +1 -1
- package/components/ParameterCharts/components/TrackSettings.css.js +1 -1
- package/components/ParameterCharts/components/TrackSettings.js +1 -1
- package/components/PinnableFilters/PinnableFilters.css.js +1 -1
- package/components/PinnableFilters/PinnableFilters.js +1 -1
- package/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/components/PinnableFilters/components/PinAppSwitch.js +1 -1
- package/components/PinnableFilters/effects/index.js +1 -1
- package/components/PostInput/PostInput.css.js +1 -1
- package/components/PostInput/PostInput.js +1 -1
- package/components/PostPreviewDialog/index.js +1 -1
- package/components/PostPreviewDialog/styles.css.js +1 -1
- package/components/PriceInput/FormattedNumber.js +1 -1
- package/components/PriceInput/PriceInput.js +1 -1
- package/components/RangeSlider/Input.css.js +1 -1
- package/components/RangeSlider/RangeSlider.css.js +1 -1
- package/components/RangeSlider/RangeSlider.js +1 -1
- package/components/RangeSlider/inputs/FromInput.js +1 -1
- package/components/RangeSlider/inputs/ToInput.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/SearchInput/index.js +1 -1
- package/components/Select/index.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/SettingEditors/ColorEditor/style.css.js +1 -1
- package/components/SettingEditors/DropdownEditor/index.js +1 -1
- package/components/SettingEditors/RadioEditor/index.js +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.css.js +1 -1
- package/components/SlateFormattedText/Elements/ImageElement/ImageElement.js +1 -1
- package/components/SlateFormattedText/Elements/VideoElement/VideoElement.js +1 -1
- package/components/SlateFormattedText/Elements/VideoElement/style.css.js +1 -1
- package/components/SlateFormattedText/RenderElements.js +1 -1
- package/components/SlateFormattedText/SlateFormattedText.js +1 -1
- package/components/SlateFormattedText/style.css.js +1 -1
- package/components/SlateFormattedText/utils.js +1 -1
- package/components/StageDesignVActual/ComparisonBar/ComparisonBar.js +1 -1
- package/components/StageDesignVActual/ComparisonHeader.js +1 -1
- package/components/StageDesignVActual/ComparisonRow.js +1 -1
- package/components/StageDesignVActual/ComparisonTable.css.js +1 -1
- package/components/StageDesignVActual/ElementsComparison/ElementsComparison.js +1 -1
- package/components/Stepper/Step.css.js +1 -1
- package/components/Stepper/Step.js +1 -1
- package/components/Stepper/Stepper.js +1 -1
- package/components/Stepper/StepsWrapper.css.js +1 -1
- package/components/Stepper/StepsWrapper.js +1 -1
- package/components/StyledMenuItem/index.js +1 -1
- package/components/SwitchControl/index.js +1 -1
- package/components/SwitchControl/style.css.js +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/components/Table/TableToolbar/TableToolbar.js +1 -1
- package/components/Tabs/Tab.js +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/Template/TemplatePopover/index.js +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.css.js +1 -1
- package/components/Template/TemplateSharingDialog/ChipSelector.js +1 -1
- package/components/Template/TemplateSharingDialog/UsersChipSelector.js +1 -1
- package/components/Template/TemplateSharingDialog/index.js +1 -1
- package/components/TextField/index.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
- package/components/Tooltip/Tooltip.js +1 -1
- package/components/TracesEditModal/TracesEditModal.css.js +1 -1
- package/components/TracesEditModal/TracesEditModal.js +1 -1
- package/components/TracesEditModal/TracesEditModalContainer.js +1 -1
- package/components/TruncatedText/index.js +1 -1
- package/components/UserCard/index.js +1 -1
- package/components/UserCard/style.css.js +1 -1
- package/components/UserCardPopover.js +1 -1
- package/components/UserMention/index.js +1 -1
- package/components/UserMention/style.css.js +1 -1
- package/components/UserMention/utils/index.js +1 -1
- package/components/VirtualizedTable/CustomizeColumnsDialog.js +1 -1
- package/components/VirtualizedTable/DraggableList.js +1 -1
- package/components/VirtualizedTable/VirtualizedTable.js +1 -1
- package/components/VirtualizedTable/index.js +1 -1
- package/components/WellSummary/ActivitySummaryChart.js +1 -1
- package/components/WellSummary/FracWirelineTimeChart.js +1 -1
- package/components/WellSummary/WellSummaryItemLabel.js +1 -1
- package/components/WellSummary/WellSummaryItemTitle.js +1 -1
- package/components/WellSummary/WellSummaryItemValue.js +1 -1
- package/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/components/index.js +1 -1
- package/config/highcharts/highcharts-contour.js +1 -1
- package/config/theme/accordionOverrides.js +1 -1
- package/config/theme/buttonOverrides.js +1 -1
- package/config/theme/checkboxOverrides.js +1 -1
- package/config/theme/chipOverrides.js +1 -1
- package/config/theme/fabOverrides.js +1 -1
- package/config/theme/formControlLabelOverrides.js +1 -1
- package/config/theme/formGroupOverrides.js +1 -1
- package/config/theme/index.js +1 -1
- package/config/theme/lightThemePalette.mjs.js +1 -1
- package/config/theme/palette.mjs.js +1 -1
- package/config/theme/radioOverrides.js +1 -1
- package/config/theme/tableOverrides.js +1 -1
- package/config/theme/textFieldOverrides.js +1 -1
- package/config/theme/themeVariables.mjs.js +1 -1
- package/config/theme/toggleButtonsGroupOverrides.js +1 -1
- package/config/theme/tooltipOverrides.js +1 -1
- package/constants/bha.js +1 -1
- package/constants/goals.js +1 -1
- package/constants/index.js +1 -1
- package/effects/useDevCenterApp.js +1 -1
- package/effects/useEscPress.js +1 -1
- package/effects/useOutsideClick.js +1 -1
- package/effects/useSignedURL.js +1 -1
- package/effects/useSubscriptions.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/arrayLikeToArray.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithHoles.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/arrayWithoutHoles.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/asyncToGenerator.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/defineProperty.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArray.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/iterableToArrayLimit.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableRest.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/nonIterableSpread.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/slicedToArray.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/taggedTemplateLiteral.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/toConsumableArray.js +1 -1
- package/ext-cjs/@babel/runtime/helpers/unsupportedIterableToArray.js +1 -1
- package/ext-cjs/regenerator-runtime/runtime.js +1 -1
- package/ext-esm/@material-ui/icons/esm/ExpandLess.js +1 -1
- package/ext-esm/@material-ui/icons/esm/ExpandMore.js +1 -1
- package/ext-esm/@material-ui/icons/esm/Map.js +1 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldLess.js +1 -1
- package/ext-esm/@material-ui/icons/esm/UnfoldMore.js +1 -1
- package/ext-esm/@material-ui/icons/esm/utils/createSvgIcon.js +1 -1
- package/ext-esm/style-inject/dist/style-inject.es.js +1 -1
- package/hocs/withMUIProvidersHOC.js +1 -1
- package/index.js +1 -1
- package/package.json +20 -6
- package/permissions/PermissionsContext.js +1 -1
- package/permissions/ProvidePermissions.js +1 -1
- package/permissions/constants/appsPermissions.js +1 -1
- package/permissions/constants/index.js +1 -1
- package/permissions/constants/settingsApps.js +1 -1
- package/permissions/index.js +1 -1
- package/permissions/usePermissions.js +1 -1
- package/permissions/useProvidePermissions.js +1 -1
- package/permissions/withPermissionsHOC.js +1 -1
- package/styles/counter/counter.module.scss.js +1 -1
- package/styles/customScrollbars.global.css.js +1 -1
- package/styles/emojiMart.global.css.js +1 -1
- package/styles/generatedThemesVariables.global.css.js +1 -1
- package/styles/index.global.css.js +1 -1
- package/styles/mapbox.global.css.js +1 -1
- package/styles/reactVirtualized.global.css.js +1 -1
- package/styles/typography/colors.module.scss.js +1 -1
- package/styles/typography/index.js +1 -1
- package/styles/typography/typography.module.scss.js +1 -1
- package/utils/DrillstringUtils.js +1 -1
- package/utils/FluidCheckUtils.js +1 -1
- package/utils/apps.js +1 -1
- package/utils/casing/conversion.js +1 -1
- package/utils/casing/validation.js +1 -1
- package/utils/completion.js +1 -1
- package/utils/convert.js +1 -1
- package/utils/convertKeys.js +1 -1
- package/utils/devcenter.js +1 -1
- package/utils/drillstring/validation.js +1 -1
- package/utils/index.js +1 -1
- package/utils/lasParser.js +1 -1
- package/utils/main.js +1 -1
- package/utils/mapUnits.js +1 -1
- package/utils/mapbox.js +1 -1
- package/utils/metrics/index.js +1 -1
- package/utils/metrics/metricsConfig.js +1 -1
- package/utils/permissions.js +1 -1
- package/_virtual/arrayLikeToArray.js_commonjs-proxy +0 -1
- package/_virtual/arrayWithHoles.js_commonjs-proxy +0 -1
- package/_virtual/arrayWithoutHoles.js_commonjs-proxy +0 -1
- package/_virtual/iterableToArray.js_commonjs-proxy +0 -1
- package/_virtual/iterableToArrayLimit.js_commonjs-proxy +0 -1
- package/_virtual/nonIterableRest.js_commonjs-proxy +0 -1
- package/_virtual/nonIterableSpread.js_commonjs-proxy +0 -1
- package/_virtual/runtime.js_commonjs-proxy +0 -1
- package/_virtual/unsupportedIterableToArray.js_commonjs-proxy +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleIcon.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ArticleItemContent.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentCaption.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentItem.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentList.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/HelpContentTimestamp.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/ItemContent.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/SearchInput.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/components/VideoItemContent.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/effects/useHelpContents.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/shapes/index.js +0 -1
- package/utils/user.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/
|
|
1
|
+
import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/defineProperty";import{memo as n}from"react";import{string as r,arrayOf as o,shape as i,func as l}from"prop-types";import c from"classnames";import{makeStyles as a,Typography as s,Accordion as m,AccordionSummary as p,AccordionDetails as d,List as u}from"@material-ui/core";import{ExpandMore as f}from"@material-ui/icons";import"../../../../utils/index.js";import h from"./AssetSearch.js";import w from"./SectionItem.js";import y from"./WellListItem.js";import{jsxs as x,jsx as b}from"react/jsx-runtime";import{showSuccessNotification as g}from"../../../../utils/notificationToasts.js";function v(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 j(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?v(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=a((function(e){return{content:{width:"472px",marginTop:"24px"},sectionItem:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"8px",fontSize:"12px",fontWeight:"normal",color:e.palette.primary.text6,borderTop:"1px solid ".concat(e.palette.primary.text8),"&:last-child":{borderBottom:"1px solid ".concat(e.palette.primary.text8)}},disabledSectionItem:{color:e.palette.primary.text8},wellList:{width:"100%",margin:0,padding:0},searchContainer:{display:"flex",justifyContent:"space-between",marginBottom:"24px",alignItems:"center"},advancedSearch:{fontSize:"14px",fontWeight:500,color:"#03BCD4",cursor:"pointer","&:hover":{textDecoration:"underline"}}}}));function S(t){var n=t.company,r=t.wellSections,o=t.getWellName,i=t.onChangeWellSections,l=t.onExploreMode,a=O(),v=function(e,t){var n=r.find((function(t){return t.name===e.name})).wells.map((function(e){return e.id})),o=r.map((function(e){var r=e.wells.map((function(e){return n.includes(e.id)?j(j({},e),{},{checked:t}):j({},e)}));return j(j({},e),{},{wells:r})}));i(o)},S=function(e){var t=r.map((function(t){return t.name===e.name?j(j({},t),{},{expanded:!t.expanded}):t}));i(t)},C=function(e){var t=r.map((function(t){var n=t.wells.map((function(t){return t.id===e.id?j(j({},t),{},{checked:!t.checked}):t}));return j(j({},t),{},{wells:n})}));i(t)},N=function(e){v(e,!0)},I=function(e){v(e,!1)};return x("div",{className:a.content,children:[x("div",{className:a.searchContainer,children:[b(h,{company:+n,onClickAsset:function(t,n){var o=r.map((function(r){if("Search Results"===r.name){var o=e(r.wells);return r.wells.find((function(e){return e.id===t}))||o.push({id:t,checked:!0,name:n,kind:"manual"}),j(j({},r),{},{wells:o})}return j(j({},r),{},{wells:r.wells.map((function(e){return e.id===t?j(j({},e),{},{checked:!0}):e}))})}));i(o),g("Offset well successfully added!")},onExploreMode:l}),b(s,{className:a.advancedSearch,onClick:function(){l()},children:"Advanced Search"})]}),(r||[]).map((function(e){return 0===e.wells.length?b("div",{className:c(a.sectionItem,a.disabledSectionItem),children:b(w,{section:e,disabled:!0})},"empty-".concat(e.name)):b("div",{className:a.sectionItem,children:x(m,{expanded:e.expanded,onChange:function(){return S(e)},children:[b(p,{expandIcon:b(f,{}),style:{width:"100%"},children:b(w,{section:e,onExpandCollapse:S,onSelectAll:N,onClearAll:I})}),b(d,{children:b(u,{dense:!0,className:a.wellList,children:e.wells.map((function(t){return b(y,{well:t,wellName:o(e.wells,t.id),rigName:t.rigName,onToggleWell:C},"well-".concat(e.name,"-").concat(t.id))}))})})]})},"section-".concat(e.name))}))]})}S.propTypes={company:r.isRequired,wellSections:o(i({})),getWellName:l.isRequired,onChangeWellSections:l.isRequired,onExploreMode:l.isRequired},S.defaultProps={wellSections:[]};var C=n(S);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/helpers/slicedToArray";import e from"@babel/runtime/regenerator";import{useRef as n,useEffect as a,useState as u}from"react";import{isEmpty as o}from"lodash";import{fetchBicWellSections as i,fetchWells as s}from"../utils/apiCalls.js";function c(r){var t=n();return a((function(){t.current=r})),t.current}function l(o,i){var c=n(!0),l=u(null),p=t(l,2),f=p[0],m=p[1];return a((function(){function t(){return(t=r(e.mark((function r(){var t;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,s(o);case 2:t=r.sent,m(t);case 4:case"end":return r.stop()}}),r)})))).apply(this,arguments)}i&&c.current&&(m(null),function(){t.apply(this,arguments)}(),c.current=!1)}),[o,i]),f}var p=function(n,s){var c=u([]),l=t(c,2),p=l[0],f=l[1];return a((function(){var a,u=(a=r(e.mark((function r(){var a,u,s,c,l;return e.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!n){r.next=7;break}return r.next=4,Promise.all([i(n)]);case 4:r.t0=r.sent,r.next=8;break;case 7:r.t0=[];case 8:u=r.t0,s=t(u,1),a=s[0],c=!o(a)&&JSON.parse(a[0].data.filters)||void 0,l=!o(a)&&a[0].data.result&&JSON.parse(a[0].data.result)||void 0,f({filters:c,result:l}),r.next=19;break;case 16:r.prev=16,r.t1=r.catch(0),f(null);case 19:case"end":return r.stop()}}),r,null,[[0,16]])}))),function(){return a.apply(this,arguments)});s&&u()}),[n,s]),p};export{p as useFetchBicWellsData,c as usePrevious,l as useWells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{get as t,uniq as r,includes as n,isEqual as o}from"lodash";import i from"@babel/runtime/helpers/toConsumableArray";import"../../constants/completion.js";import"../../constants/alerts.js";import s 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 p from"@babel/runtime/helpers/typeof";import"../../utils/index.js";import{jsxs as a,Fragment as l,jsx as m}from"react/jsx-runtime";import{makeStyles as d,Dialog as c,DialogTitle as u,Typography as j,Tooltip as f,IconButton as C,DialogContent as v,DialogActions as b,Button as g}from"@material-ui/core";import{useState as A,useRef as D,useMemo as h,useEffect as x,useCallback as I}from"react";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import S from"prop-types";import y from"classnames";import{Close as W}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import P from"../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"../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"../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{useWells as E,useFetchBicWellsData as k}from"./effects/index.js";import w from"./components/Map/index.js";import T from"./components/WellSection/index.js";import{DEFAULT_WELL_SECTIONS as O}from"./constants.js";import B from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.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 L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?L(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var N=d((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function M(e,r){var n=e.find((function(e){return e.id===r}));return t(n,"name")||"-"}function V(e,r){var n=e.find((function(e){return e.id===r}));return t(n,"rigName")||"-"}function H(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function R(e){return e.map((function(e){return F(F({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var n=t(e,"bicWellIds")||[],o=t(e,"manualWellIds")||[],i=t(e,"selectedWellIds")||[];return r(n.concat(o).concat(i))}function z(e){var d=e.defaultSubjectWell,S=e.offsetSetting,L=e.currentUser,z=e.isOpen,_=e.onClose,q=e.onSave,G=e.addWellsUsabilityInfo,K=e.unusableWellAlarm,Q=A(!1),X=s(Q,2),$=X[0],J=X[1],Y=N({scrolling:$}),Z=D(null),ee=D(!0),te=A(t(d,"companyId")||t(S,"companyId")||+t(L,"company_id")),re=s(te,2),ne=re[0],oe=re[1],ie=A(t(d,"asset_id")||t(S,"subjectWellId")||null),se=s(ie,2),pe=se[0],ae=se[1],le=E(ne,z),me=k(pe,z),de=A([]),ce=s(de,2),ue=ce[0],je=ce[1],fe=A(!1),Ce=s(fe,2),ve=Ce[0],be=Ce[1],ge=A(S),Ae=s(ge,2),De=Ae[0],he=Ae[1],xe=A(!1),Ie=s(xe,2),Se=Ie[0],ye=Ie[1],We=h((function(){if(le){var e=U(De);return le.filter((function(r){return e.find((function(e){return e===t(r,"id")}))}))}return[]}),[le,De]);x((function(){z&&(oe(t(d,"companyId")||t(S,"companyId")||+t(L,"company_id")),ae(t(d,"asset_id")||t(S,"subjectWellId")||null),he(S),ye(!1),ee.current=!0)}),[S,z]),x((function(){if(z&&le&&ee.current){var e,o=t(De,"selectedWellIds")||[],s=t(De,"manualWellIds")||[],a=t(De,"bicWellIds")||[],l=o.concat(s),m=l.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:M(le,e),rigName:V(le,e),kind:o.includes(e)?"advanced":"manual"}}));if(me&&me.filters&&me.result){var d,c=[],u=[{name:"Wells within Area",value:"area"}].concat(i(t(me,["filters","filterTabs"]))),j=(null===(d=me.filters)||void 0===d?void 0:d.filterMode)||"holeSize",f=r(u);e=[{name:"Search Results",wells:m,expanded:Se}].concat(i(f.map((function(e){var t;return{name:H(e,j),wells:(null===(t=me.result[e.value])||void 0===t?void 0:t.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(e){var t="object"===p(e)?e.id:e;return c.push(t),{id:t,checked:!1,name:M(le,t),rigName:V(le,t),kind:"best"}})))||[],expanded:!1}}))))}else e=[{name:"Search Results",wells:m,expanded:Se}].concat(i(O));var C=e.map((function(e){var t=e.wells.map((function(e){return n(a,e.id)||n(l,e.id)?F(F({},e),{},{checked:!0}):F({},e)}));return F(F({},e),{},{wells:t})}));je(R(C))}}),[z,le,me,De]);var Pe=I((function(){return U(De).length}),[De]),Ee=I((function(){return(t(De,"bicWellIds")||[]).length})),ke=D(null),we=!le;return a(l,{children:[a(c,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Y.paper},children:[m(u,{children:a("div",{className:Y.dialogTitles,children:[a("div",{className:Y.titleContent,children:[m(j,{className:Y.title,children:"Select Offset Wells"}),m(f,{title:"Close",children:m(C,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Y.closeIconButton,onClick:_,children:m(W,{className:Y.closeIcon})})})]}),m("div",{className:Y.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),$&&m("div",{className:Y.topShadow}),m(v,{className:Y.dialogContent,ref:Z,onScroll:function(){J(!0),clearTimeout(ke.current),ke.current=setTimeout((function(){J(!1)}),1e3)},children:we?m(P,{fullscreen:!1}):a(l,{children:[m(w,{wells:We,offsetWells:We}),m(T,{company:ne,wellSections:ue,getWellName:M,onChangeWellSections:function(e){var t=R(e);je(t),ye(t[0].expanded);var n=[],o=[],i=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&n.push(e.id),e.checked&&"manual"===e.kind&&o.push(e.id),e.checked&&"best"===e.kind&&i.push(e.id)}))}));var s=n.concat(o).concat(i),p=F(F({},De),{},{selectedWellIds:r(n),manualWellIds:r(o),bicWellIds:r(i),resultWellIds:r(s)});he(p),ee.current=!1},onExploreMode:function(){be(!0)}})]})}),m("div",{className:Y.bottomShadow}),m(b,{className:y(Y.dialogActions),children:a("div",{className:Y.buttonContainer,children:[m(g,{onClick:_,color:"primary",children:"Cancel"}),a(g,{variant:"contained",color:"primary",onClick:function(){var e=U(De),t=le.filter((function(t){return n(e,t.id)})),r=F(F({},De),{},{companyId:+ne,resultWellIds:e});be(!1),q(r,t)},children:["Add (",Pe(),")"]})]})})]}),ve&&m(B,{defaultSubjectWellId:t(d,"asset_id"),companyId:+ne,offsetSetting:De,currentUser:L,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:Ee(),isOpen:ve,onClose:function(){be(!1)},onSave:function(e){var r=e;d||(o(pe,t(r,"subjectWellId"))&&o(ne,t(r,"companyId"))||(r=F(F({},r),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ae(t(r,"subjectWellId")),oe(t(r,"companyId")));var n=t(r,"manualWellIds")||[],i=t(r,"selectedWellIds")||[];n=n.filter((function(e){return!i.includes(e)})),r=F(F({},r),{},{manualWellIds:n}),he(r),ee.current=!0,ye(!0),be(!1)}})]})}z.propTypes={defaultSubjectWell:S.shape({}),offsetSetting:S.shape({subjectWellId:S.number,companyId:S.number}),currentUser:S.shape({}),isOpen:S.bool.isRequired,onClose:S.func.isRequired,onSave:S.func.isRequired,addWellsUsabilityInfo:S.func,unusableWellAlarm:S.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export default z;
|
|
1
|
+
import e from"@babel/runtime/helpers/typeof";import t from"@babel/runtime/helpers/toConsumableArray";import r from"@babel/runtime/helpers/slicedToArray";import n from"@babel/runtime/helpers/defineProperty";import{useState as o,useRef as i,useMemo as s,useEffect as p,useCallback as a}from"react";import l from"prop-types";import{get as m,uniq as d,includes as c,isEqual as u}from"lodash";import j from"classnames";import{makeStyles as f,Dialog as C,DialogTitle as v,Typography as b,Tooltip as g,IconButton as A,DialogContent as I,DialogActions as D,Button as h}from"@material-ui/core";import{Close as x}from"@material-ui/icons";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../../utils/mobileDetect.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"querystring";import"uuid/v1";import"../../clients/jsonApi/index.js";import"../../clients/subscriptions.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../utils/index.js";import"../HelpCenter/ArticleIcon.js";import"../HelpCenter/DialogLayout.js";import"../HelpCenter/HelpCenterDialog/HelpCenterDialog.js";import"../HelpCenter/ItemContent/ItemContent.js";import"../HelpCenter/SingleItemHeader.js";import"../HelpCenter/shapes/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import{jsxs as S,Fragment as y,jsx as W}from"react/jsx-runtime";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"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import P from"../LoadingIndicator/LoadingIndicator.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../DevCenter/AppContext.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../DevCenter/AppHeader/AppHeaderNew.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/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"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import E from"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../Notifications/Notifications.js";import"uuid";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../MenuItem/index.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import k from"./components/Map/index.js";import w from"./components/WellSection/index.js";import{useWells as T,useFetchBicWellsData as O}from"./effects/index.js";import{DEFAULT_WELL_SECTIONS as L}from"./constants.js";function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var F=f((function(e){return{paper:{width:"552px"},dialogTitles:{display:"flex",flexDirection:"column"},titleContent:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{fontSize:"20px",color:e.palette.primary.text1},description:{fontSize:"16px",fontWeight:"normal",color:e.palette.primary.text6,marginTop:16},closeIconButton:{fontSize:"20px",padding:4,"&:hover $closeIcon":{color:"#fff"}},closeIcon:{color:e.palette.primary.text6},topShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(0deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",top:"155px",zIndex:2},bottomShadow:{width:"100%",height:"16px",backgroundImage:"linear-gradient(180deg, rgba(65, 65, 65, 0) 0%, ".concat(e.palette.background.b9,")"),position:"absolute",bottom:"52px",zIndex:2},dialogActions:{display:"flex",justifyContent:"flex-end",paddingTop:8,paddingBottom:8},dialogActionsSmallScreen:{paddingRight:"100px"},dialogContent:{display:"flex",flexDirection:"column",overflowX:"hidden"},buttonContainer:{display:"flex",gap:"16px"}}}));function N(e,t){var r=e.find((function(e){return e.id===t}));return m(r,"name")||"-"}function M(e,t){var r=e.find((function(e){return e.id===t}));return m(r,"rigName")||"-"}function V(e,t){return"well"===e.value?"Best Wells":"area"===e.value?"Area Offsets":"Best ".concat(e.value,"section"===t?" Wells":' " Wells')}function R(e){return e.map((function(e){return H(H({},e),{},{wells:e.wells.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))})}))}function U(e){var t=m(e,"bicWellIds")||[],r=m(e,"manualWellIds")||[],n=m(e,"selectedWellIds")||[];return d(t.concat(r).concat(n))}function z(n){var l=n.defaultSubjectWell,f=n.offsetSetting,B=n.currentUser,z=n.isOpen,_=n.onClose,q=n.onSave,G=n.addWellsUsabilityInfo,K=n.unusableWellAlarm,Q=o(!1),X=r(Q,2),$=X[0],J=X[1],Y=F({scrolling:$}),Z=i(null),ee=i(!0),te=o(m(l,"companyId")||m(f,"companyId")||+m(B,"company_id")),re=r(te,2),ne=re[0],oe=re[1],ie=o(m(l,"asset_id")||m(f,"subjectWellId")||null),se=r(ie,2),pe=se[0],ae=se[1],le=T(ne,z),me=O(pe,z),de=o([]),ce=r(de,2),ue=ce[0],je=ce[1],fe=o(!1),Ce=r(fe,2),ve=Ce[0],be=Ce[1],ge=o(f),Ae=r(ge,2),Ie=Ae[0],De=Ae[1],he=o(!1),xe=r(he,2),Se=xe[0],ye=xe[1],We=s((function(){if(le){var e=U(Ie);return le.filter((function(t){return e.find((function(e){return e===m(t,"id")}))}))}return[]}),[le,Ie]);p((function(){z&&(oe(m(l,"companyId")||m(f,"companyId")||+m(B,"company_id")),ae(m(l,"asset_id")||m(f,"subjectWellId")||null),De(f),ye(!1),ee.current=!0)}),[f,z]),p((function(){if(z&&le&&ee.current){var r,n=m(Ie,"selectedWellIds")||[],o=m(Ie,"manualWellIds")||[],i=m(Ie,"bicWellIds")||[],s=n.concat(o),p=s.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(e){return{id:e,checked:!0,name:N(le,e),rigName:M(le,e),kind:n.includes(e)?"advanced":"manual"}}));if(me&&me.filters&&me.result){var a,l=[],u=[{name:"Wells within Area",value:"area"}].concat(t(m(me,["filters","filterTabs"]))),j=(null===(a=me.filters)||void 0===a?void 0:a.filterMode)||"holeSize",f=d(u);r=[{name:"Search Results",wells:p,expanded:Se}].concat(t(f.map((function(t){var r;return{name:V(t,j),wells:(null===(r=me.result[t.value])||void 0===r?void 0:r.filter((function(e){return le.find((function(t){return t.id===e}))})).map((function(t){var r="object"===e(t)?t.id:t;return l.push(r),{id:r,checked:!1,name:N(le,r),rigName:M(le,r),kind:"best"}})))||[],expanded:!1}}))))}else r=[{name:"Search Results",wells:p,expanded:Se}].concat(t(L));var C=r.map((function(e){var t=e.wells.map((function(e){return c(i,e.id)||c(s,e.id)?H(H({},e),{},{checked:!0}):H({},e)}));return H(H({},e),{},{wells:t})}));je(R(C))}}),[z,le,me,Ie]);var Pe=a((function(){return U(Ie).length}),[Ie]),Ee=a((function(){return(m(Ie,"bicWellIds")||[]).length})),ke=i(null),we=!le;return S(y,{children:[S(C,{onBackdropClick:_,onEscapeKeyDown:_,open:z,classes:{paper:Y.paper},children:[W(v,{children:S("div",{className:Y.dialogTitles,children:[S("div",{className:Y.titleContent,children:[W(b,{className:Y.title,children:"Select Offset Wells"}),W(g,{title:"Close",children:W(A,{"data-not-migrated-muiiconbutton":!0,"aria-label":"close",className:Y.closeIconButton,onClick:_,children:W(x,{className:Y.closeIcon})})})]}),W("div",{className:Y.description,children:"Quickly add all of the Best-In-Class Wells per section selected from the Offsets Well Selection Application."})]})}),$&&W("div",{className:Y.topShadow}),W(I,{className:Y.dialogContent,ref:Z,onScroll:function(){J(!0),clearTimeout(ke.current),ke.current=setTimeout((function(){J(!1)}),1e3)},children:we?W(P,{fullscreen:!1}):S(y,{children:[W(k,{wells:We,offsetWells:We}),W(w,{company:ne,wellSections:ue,getWellName:N,onChangeWellSections:function(e){var t=R(e);je(t),ye(t[0].expanded);var r=[],n=[],o=[];t.forEach((function(e){e.wells.forEach((function(e){e.checked&&"advanced"===e.kind&&r.push(e.id),e.checked&&"manual"===e.kind&&n.push(e.id),e.checked&&"best"===e.kind&&o.push(e.id)}))}));var i=r.concat(n).concat(o),s=H(H({},Ie),{},{selectedWellIds:d(r),manualWellIds:d(n),bicWellIds:d(o),resultWellIds:d(i)});De(s),ee.current=!1},onExploreMode:function(){be(!0)}})]})}),W("div",{className:Y.bottomShadow}),W(D,{className:j(Y.dialogActions),children:S("div",{className:Y.buttonContainer,children:[W(h,{onClick:_,color:"primary",children:"Cancel"}),S(h,{variant:"contained",color:"primary",onClick:function(){var e=U(Ie),t=le.filter((function(t){return c(e,t.id)})),r=H(H({},Ie),{},{companyId:+ne,resultWellIds:e});be(!1),q(r,t)},children:["Add (",Pe(),")"]})]})})]}),ve&&W(E,{defaultSubjectWellId:m(l,"asset_id"),companyId:+ne,offsetSetting:Ie,currentUser:B,addWellsUsabilityInfo:G,unusableWellAlarm:K,isAdvancedSearch:!0,bestCount:Ee(),isOpen:ve,onClose:function(){be(!1)},onSave:function(e){var t=e;l||(u(pe,m(t,"subjectWellId"))&&u(ne,m(t,"companyId"))||(t=H(H({},t),{},{bicWellIds:[],manualWellIds:[],resultWellIds:[]})),ae(m(t,"subjectWellId")),oe(m(t,"companyId")));var r=m(t,"manualWellIds")||[],n=m(t,"selectedWellIds")||[];r=r.filter((function(e){return!n.includes(e)})),t=H(H({},t),{},{manualWellIds:r}),De(t),ee.current=!0,ye(!0),be(!1)}})]})}z.propTypes={defaultSubjectWell:l.shape({}),offsetSetting:l.shape({subjectWellId:l.number,companyId:l.number}),currentUser:l.shape({}),isOpen:l.bool.isRequired,onClose:l.func.isRequired,onSave:l.func.isRequired,addWellsUsabilityInfo:l.func,unusableWellAlarm:l.string},z.defaultProps={defaultSubjectWell:null,addWellsUsabilityInfo:null,unusableWellAlarm:"Unable to add",offsetSetting:{},currentUser:{}};export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"@babel/runtime/helpers/asyncToGenerator";import e from"@babel/runtime/regenerator";import{get as r}from"lodash";import{getAppStorage as a,getAssets as s}from"../../../clients/jsonApi/index.js";function n(t,e){return i.apply(this,arguments)}function i(){return(i=t(e.mark((function t(a,n){var i,u,o;return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=null,t.prev=1,t.next=4,s({types:["well"],company_id:a?+a:void 0,fields:["asset.name","asset.parent_asset_id","asset.parent_asset_name","asset.stats","asset.target_formation","asset.string_design","asset.root_asset_name","asset.basin","asset.county","asset.area","asset.visibility","asset.top_hole"],per_page:1e4,sort:"name"});case 4:i=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0);case 10:if(u=i?i.data.map((function(t){return{id:Number(t.id),name:r(t,"attributes.name"),rigId:r(t,"attributes.parent_asset_id")||"Null",rigName:r(t,"attributes.parent_asset_name")||"Null",formation:r(t,"attributes.target_formation")||"Null",stringDesign:r(t,"attributes.string_design")||"Null",programName:r(t,"attributes.root_asset_name")||"Null",basin:r(t,"attributes.basin")||"Null",county:r(t,"attributes.county")||"Null",area:r(t,"attributes.area")||"Null",visibility:r(t,"attributes.visibility"),topHole:r(t,"attributes.top_hole"),rigReleaseDate:r(t,"attributes.stats.well_end"),totalDepth:r(t,"attributes.stats.total_depth"),is_usable:!0}})).filter((function(t){return"visible"===t.visibility})):[],!n){t.next=16;break}return t.next=14,n(u);case 14:return o=t.sent,t.abrupt("return",o);case 16:return t.abrupt("return",u);case 17:case"end":return t.stop()}}),t,null,[[1,7]])})))).apply(this,arguments)}function u(t){return o.apply(this,arguments)}function o(){return(o=t(e.mark((function t(r){return e.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",a("corva","data.offset-wells.bic",r,{limit:1,sort:"{timestamp: -1}"}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}export{u as fetchBicWellSections,n as fetchWells};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"prop-types";import{makeStyles as r,Breadcrumbs as o}from"@material-ui/core";import i from"classnames";import"../DevCenter/AppHeader/AppHeader.js";import"../DevCenter/AppSideBar/AppSideBar.js";import"../DevCenter/AppsDataProvider/AppsDataProvider.js";import"@babel/runtime/helpers/slicedToArray";import"react";import"lodash";import"@material-ui/icons/Help";import"../Annotations/components/AnnotationsList/index.js";import"../Annotations/components/LastAnnotation/index.js";import"../Annotations/AnnotationsContext.js";import"../Modal/index.js";import"../IconMenu/index.js";import"../StyledMenuItem/index.js";import"../DevCenter/AppContext.js";import"../AssetEditor/index.js";import"../AppVersionsSelect/AppVersionsSelect.js";import"../LoadingIndicator/LoadingIndicator.js";import"../Typography.js";import"../CollapsableSidebar.js";import"../DateTimePicker/index.js";import"../DatePicker/index.js";import"../ErrorBoundary/ErrorBoundary.js";import"../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../SlateFormattedText/SlateFormattedText.js";import"../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"../ParameterCharts/ParameterCharts.js";import"../ParameterCharts/AddEditTrack.js";import"../ChartActionsList/ChartActionsList.js";import"../AssetEditor/AssetEditorAutocomplete.js";import"../AssetEditor/SingleAssetEditor.js";import"../SettingEditors/ColorEditor/index.js";import"../SettingEditors/DropdownEditor/index.js";import"../SettingEditors/RadioEditor/index.js";import"../SwitchControl/index.js";import"../ColorPicker/ColorPicker.js";import"../ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"../TruncatedText/index.js";import"../RangeSlider/RangeSlider.js";import"../DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"../EmptyView/EmptyAppView/EmptyAppView.js";import"../Button/index.js";import"../ContextMenuItem/index.js";import"../FolderMenuItem/index.js";import"../EditableItem/EditableItem/index.js";import"../EditableItem/EditableItemWithBadge/index.js";import"../Checkbox/index.js";import"../FolderMenuItemWithLinks/index.js";import"../IconButton/index.js";import"../TextField/index.js";import"../Chip/index.js";import"../Counter/index.js";import"../AnchorsList/AnchorsList.js";import"../Select/index.js";import"../CustomSelect/index.js";import"../Tabs/Tabs.js";import"../Tabs/Tab.js";import"../ResizableTable/ResizableTable.js";import"../Drillstring/BHASchematic.js";import"../Drillstring/BHATable/index.js";import"../Drillstring/BHAComponentIcon.js";import"../Drillstring/BHAComponentDetail/index.js";import"../Casing/CasingTable/index.js";import"../Casing/CasingComponentIcon.js";import"../WellSummary/WellSummaryItemLabel.js";import"../WellSummary/WellSummaryItemTitle.js";import"../WellSummary/WellSummaryItemValue.js";import"../WellSummary/ActivitySummaryChart.js";import"../WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../../clients/jsonApi/index.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../BICOffsetPickerDialog/index.js";import"../OffsetWellPickerV2/OffsetWellPickerDialog.js";import"../OffsetWellPickerV3/index.js";import"../Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import{jsx as n}from"react/jsx-runtime";import"../ConfirmationDialog.js";import"../TextLink/index.js";import"../Avatar/index.js";import"../Template/TemplatePopover/index.js";import"../MenuItem/index.js";import"../PadModeSelect/PadModeSelect.js";import"../PinnableFilters/PinnableFilters.js";import"../HeaderLayout/HeaderLayout.js";import"../PadOffsetsPicker/PadOffsetsPicker.js";import"../PadOffsetsPicker/OffsetAssetChip.js";import"../PadOffsetsPicker/OffsetAssetsListExpander.js";import"../PadOffsetsPicker/StagesSelector.js";import"../Table/TableToolbar/TableToolbar.js";import"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../Tooltip/MuiTooltipDcWrapper.js";import"../PriceInput/PriceInput.js";import"../LabelsCounter/LabelsCounter.js";import"../Stepper/Step.js";import"../Stepper/StepsWrapper.js";import"../Stepper/Stepper.js";import"../Comment/CommentIcon/index.js";import"../FilesLoader/FilesLoader.js";import"../SearchInput/index.js";import"../FeedItem/FeedItem.js";import"../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../PostInput/PostInput.js";import"../KeyboardDateTimePicker.js";import"../AddComment/Popover.js";import"../AddComment/Popup.js";import"../StageDesignVActual/ComparisonBar/ComparisonBar.js";import"../StageDesignVActual/ElementsComparison/ElementsComparison.js";import"../StageDesignVActual/ComparisonHeader.js";import"../StageDesignVActual/ComparisonRow.js";import"../EmbeddedApp/DevCenterEmbeddedApp.js";import"../EmbeddedApp/EmbeddedApp.js";import"../HelpCenter/ArticleIcon.js";import"../HelpCenter/DialogLayout.js";import"../HelpCenter/HelpCenterDialog/HelpCenterDialog.js";import"../HelpCenter/ItemContent/ItemContent.js";import"../HelpCenter/SingleItemHeader.js";import"../HelpCenter/shapes/index.js";import"../../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../../clients/subscriptions.js";import"../../utils/index.js";import"../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"../DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{UniversalLink as p}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../DevCenter/NavigationBar/NavigationBar.js";import"../DevCenter/SideBar/SideBar.js";import"../DevCenter/AppSettingsPopover/AppSettingsPopover.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js";import"../DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js";import"../DevCenter/IsolatedDevCenterAppContainer/AppsGridDragHandle.js";import"../DevCenter/AppHeader/AppHeaderNew.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(t){var r=t.pathItems,m=s();return n(o,{className:m.container,children:r.map((function(t,r,o){return n(p,{className:i(m.pathPart,e({},m.lastPathPart,r===o.length-1)),href:t.href,children:t.text},t.text)}))})};m.propTypes={pathItems:t.arrayOf(t.shape({text:t.string,href:t.string})).isRequired};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"@babel/runtime/helpers/defineProperty";import{
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{memo as e}from"react";import o from"prop-types";import{makeStyles as t,Button as a}from"@material-ui/core";import n from"classnames";import{jsx as i}from"react/jsx-runtime";function c(r,e){var o=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.push.apply(o,t)}return o}function p(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?c(Object(t),!0).forEach((function(o){r(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=t((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),m=function(r){var e=r.classes,o=void 0===e?{}:e,t=r.variation,c=l(),m=p(p({},o),{},{root:n(null==c?void 0:c[t],o.root),disabled:n(null==c?void 0:c["".concat(t,"Disabled")],o.disabled)}),d=p(p({classes:m},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(r.variation)),r);return i(a,p({},d))};m.propTypes={variation:o.oneOf(["primary","secondary","tertiary","dangerPrimary","dangerSecondary"])},m.defaultProps={variation:"tertiary"};var d=e(m);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import a from"prop-types";import{jsx as e}from"react/jsx-runtime";var t="/static/media/bdd9614af7b1365a1e0435f0169c2033.png",d={casing_joints:"/static/media/bdd9614af7b1365a1e0435f0169c2033.png",marker_joint:t,marker_point:t,hwdp:"/static/media/6353e26f84ea149fa9e5a1767650ddf3.png",air_lock_sub:"/static/media/15fd5b35ab8342f5267dd4abc9792f59.png",float_collar:"/static/media/b1d1ae1bbfd72e23f056a32f2faa9066.png",toe_sleeve:"/static/media/af609097556a6e8eea7fb52dc01f667e.png",cross_over:"/static/media/bdd9614af7b1365a1e0435f0169c2033.png",dp:"/static/media/bcf418ea7521581a93380040b39b16af.png",pup:"/static/media/bdd9614af7b1365a1e0435f0169c2033.png",float_shoe:"/static/media/1c4f4dc7c9f5811edd17bed054bb20f3.png",liner_hanger:"/static/media/17f3c0abdddffe33d8122a5a38b3198b.png",liner_top_packer:"/static/media/bec247b9c8dd7a6719f71c363f786191.png",dv_tool:"/static/media/287707400e3de3b19e7505422e83e4fe.png",acp:"/static/media/83d595ca4b7568ad827d0ce29a582abd.png",pbr:"/static/media/9bdbb0a0b667f71d59383d496741a4b7.png",riser:"/static/media/969dcadc9d652412c0c64d56c0ed9d11.png"};function i(a){var t=a.component,i=a.width,c=a.height,f=t.family;return e("img",{src:d[f],alt:f,width:i,height:c})}i.propTypes={width:a.number,height:a.number,component:a.shape({family:a.string,material:a.string,bit_type:a.string}).isRequired},i.defaultProps={width:32,height:48};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{memo as r}from"react";import{shape as i,number as n}from"prop-types";import{makeStyles as o,TableRow as a,TableCell as l}from"@material-ui/core";import{InfoOutlined as c}from"@material-ui/icons";import t from"../CasingComponentIcon.js";import{jsxs as m,jsx as s}from"react/jsx-runtime";var d,p=o({tableBodyCell:{padding:0,borderBottom:"none",height:49},componentIconCell:{padding:0,borderBottom:"none",height:49,display:"flex",alignItems:"center"},infoIcon:{fontSize:16,color:"#ccc"},iconWrapper:(d={display:"inline-block",width:"40px",height:"48px"},e(d,"display","flex"),e(d,"justifyContent","center"),e(d,"marginRight","4px"),d)}),h=function(e){var r=e.component,i=e.order,n=p(),o=n.tableBodyCell,d=n.componentIconCell,h=n.infoIcon,f=n.iconWrapper;return m(a,{children:[s(l,{className:o,children:i}),m(l,{className:d,children:[s("div",{className:f,children:s(t,{component:r})}),s("div",{children:r.family_name||r.family})]}),s(l,{className:o,children:r.name}),s(l,{className:o,children:r.outer_diameter}),s(l,{className:o,children:r.inner_diameter}),s(l,{className:o,children:r.linear_weight}),s(l,{className:o,children:r.length}),s(l,{className:o,children:r.weight}),s(l,{className:o,children:r.cum_length}),s(l,{className:o,children:r.grade}),s(l,{className:o,children:s(c,{className:h})})]})};h.propTypes={component:i({}).isRequired,order:n.isRequired};var f=r(h);export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{memo as e}from"react";import{arrayOf as t,shape as l}from"prop-types";import{makeStyles as a,Table as r,TableHead as s,TableRow as i,TableCell as n,TableBody as d}from"@material-ui/core";import{getUnitDisplay as c}from"../../../utils/index.js";import h from"./CasingComponent.js";import{jsxs as o,jsx as m}from"react/jsx-runtime";var p=a({tableStyle:{tableLayout:"fixed"},tableHeadCellStyle:{padding:"14px 0px",color:"#9E9E9E",borderTop:"1px solid rgba(81, 81, 81, 1)"}}),y=function(e){var t=e.components,l=p(),a=l.tableStyle,y=l.tableHeadCellStyle;return o(r,{"aria-label":"casing table",className:a,children:[m(s,{children:o(i,{children:[m(n,{className:y,style:{width:"2%"},children:"#"}),m(n,{className:y,style:{width:"13%",paddingLeft:44},children:"Category"}),m(n,{className:y,style:{width:"13%"},children:"Name"}),o(n,{className:y,style:{width:"7%"},children:["OD (",c("shortLength"),")"]}),o(n,{className:y,style:{width:"7%"},children:["ID (",c("shortLength"),")"]}),o(n,{className:y,style:{width:"15%"},children:["Linear Weight (",c("massPerLength"),")"]}),o(n,{className:y,style:{width:"10%"},children:["Length (",c("length"),")"]}),o(n,{className:y,style:{width:"10%"},children:["Weight (",c("mass"),")"]}),o(n,{className:y,style:{width:"13%"},children:["Cum.Length (",c("length"),")"]}),m(n,{className:y,style:{width:"7%"},children:"Grade"}),m(n,{className:y,style:{width:"3%"}})]})}),m(d,{children:t.map((function(e,t){return m(h,{component:e,order:t+1},e.id)}))})]})};y.propTypes={components:t(l({})).isRequired};var g=e(y);export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from'
|
|
1
|
+
import t from'./../../ext-esm/style-inject/dist/style-inject.es.js';var i={container:"ChartActionsList_container__8QH8k",action:"ChartActionsList_action__m0wLw",disabled:"ChartActionsList_disabled__0FXYD",form:"ChartActionsList_form__9SEmt",actions:"ChartActionsList_actions__xnBYs"};t(".ChartActionsList_container__8QH8k{display:flex;flex-direction:row;padding-left:10px}.ChartActionsList_action__m0wLw{cursor:pointer;margin-right:22px}.ChartActionsList_disabled__0FXYD{cursor:default;pointer-events:none}.ChartActionsList_form__9SEmt{display:flex;flex-direction:row;margin-top:20px;min-width:120px}.ChartActionsList_actions__xnBYs{display:flex;flex-direction:row;justify-content:flex-end;width:100%}");export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import i from"@babel/runtime/helpers/slicedToArray";import{
|
|
1
|
+
import i from"@babel/runtime/helpers/slicedToArray";import{useState as e,useEffect as r}from"react";import n from"prop-types";import o from"classnames";import{withStyles as a,Button as t,TextField as s}from"@material-ui/core";import l from"../Modal/index.js";import c from"./icons/LeftArrow.js";import m from"./icons/GoLive.js";import d from"./icons/RightArrow.js";import f from"./icons/ZoomIn.js";import p from"./icons/TimeRange.js";import u from"./icons/ZoomOut.js";import h from"./ChartActionsList.css.js";import{jsxs as v,jsx as g}from"react/jsx-runtime";var b=function(n){var a=n.onChange,b=n.min,C=n.max,k=n.left,A=n.right,N=n.classes,R=e(!1),j=i(R,2),y=j[0],q=j[1],x=e(k),L=i(x,2),F=L[0],T=L[1],I=e(A),P=i(I,2),V=P[0],w=P[1];r((function(){w(A),T(k)}),[k,A]);var W=A-k>=1,Z=b<k||C>A,G=k>b,J=A<C,M=A!==C,O=F<b||V>C||F+1>V,S=function(){q(!1)};return v("div",{className:h.container,children:[g("span",{className:o(h.action,!W&&h.disabled),onClick:function(){var i=A-k,e=k+i/4,r=A-i/4,n=r-e;if(n<1){var o=(1-n)/2;e+=o,r-=o}a({left:e,right:r})},children:g(f,{isActive:W})}),g("span",{className:o(h.action,!Z&&h.disabled),onClick:function(){var i=A-k,e=k-i/2,r=A+i/2,n=r-e;e<b&&r>C?(e=b,r=C):e<b?(e=b,r=b+n):r>C&&(r=C,e=C-n),a({left:e,right:r})},children:g(u,{isActive:Z})}),g("span",{className:o(h.action,!G&&h.disabled),onClick:function(){var i=.75*(A-k),e=k-i,r=A-i;e<b&&(e=b,r=b+i),a({left:e,right:r})},children:g(c,{isActive:G})}),g("span",{className:o(h.action,!J&&h.disabled),onClick:function(){var i=.75*(A-k),e=k+i,r=A+i;r>C&&(r=C,e=C-i),a({left:e,right:r})},children:g(d,{isActive:J})}),g("span",{className:o(h.action,!M&&h.disabled),onClick:function(){a({left:k,right:C})},children:g(m,{isActive:M})}),g("span",{className:h.action,onClick:function(){q(!0)},children:g(p,{})}),g(l,{open:y,onClose:S,title:"Jump to Selected Range",actions:v("div",{className:h.actions,children:[g(t,{variant:"textPrimary",onClick:S,children:"Cancel"}),g(t,{variant:"contained",color:"primary",onClick:function(){a({left:F,right:V}),q(!1)},disabled:O,children:"Apply"})]}),children:v("form",{noValidate:!0,className:h.form,children:[g(s,{id:"depth-from",label:"From",type:"number",defaultValue:F,onChange:function(i){T(parseFloat(i.target.value))},InputLabelProps:{shrink:!0},error:F<b,autoFocus:!0,className:N.input,fullWidth:!0}),g(s,{id:"depth-from",label:"To",type:"number",defaultValue:V,onChange:function(i){w(parseFloat(i.target.value))},InputLabelProps:{shrink:!0},error:V>C,fullWidth:!0})]})})]})};b.propTypes={onChange:n.func.isRequired,min:n.number.isRequired,max:n.number.isRequired,left:n.number.isRequired,right:n.number.isRequired,classes:n.shape({}).isRequired};var C=a({input:{marginRight:20}})(b);export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import e from"prop-types";import{jsxs as c,jsx as i}from"react/jsx-runtime";function l(e){var l=e.isActive;return c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[i("g",{fill:l?"#9E9E9E":"#9e9e9e66",clipPath:"url(#clip0)",children:i("path",{d:"M12 .5v6c0 .3.2.5.5.5s.5-.2.5-.5v-6c0-.3-.2-.5-.5-.5s-.5.2-.5.5zM9 .5v6c0 .3.2.5.5.5s.5-.2.5-.5v-6c0-.3-.2-.5-.5-.5S9 .2 9 .5zM6 .5v6c0 .3.2.5.5.5s.5-.2.5-.5v-6c0-.3-.2-.5-.5-.5S6 .2 6 .5zM4 6.5v-6c0-.3-.2-.5-.5-.5S3 .2 3 .5v6c0 .3.2.5.5.5s.5-.2.5-.5zM12 9.5c0 .1.1.3.1.4l2.2 2.1H.5c-.3 0-.5.2-.5.5s.2.5.5.5h13.8l-2.1 2.1c-.1.1-.2.3-.2.4 0 .3.2.5.5.5.1 0 .3-.1.4-.1l3-3c0-.1.1-.3.1-.4 0-.1-.1-.3-.2-.4l-3-3s-.2-.1-.3-.1c-.3 0-.5.2-.5.5z"})}),i("defs",{children:i("clipPath",{id:"clip0",children:i("path",{fill:l?"#9E9E9E":"#9e9e9e66",d:"M0 0H16V16H0z",transform:"rotate(-90 8 8)"})})})]})}l.propTypes={isActive:e.bool.isRequired};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import e from"prop-types";import{jsx as i}from"react/jsx-runtime";function t(e){var t=e.isActive;return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",fill:"none",viewBox:"0 0 10 16",children:i("path",{fill:t?"#9E9E9E":"#9e9e9e66",d:"M8.2.1l-8 7.4c-.1.2-.2.3-.2.4 0 .2.1.3.1.4l8 7.6c.2.1.6.1.7 0 .2-.2.2-.6 0-.8L1.2 7.9 8.9.8c.2-.2.2-.5 0-.7-.2-.1-.5-.1-.7 0z"})})}t.propTypes={isActive:e.bool.isRequired};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import e from"prop-types";import{jsx as i}from"react/jsx-runtime";function t(e){var t=e.isActive;return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"16",fill:"none",viewBox:"0 0 10 16",children:i("path",{fill:t?"#9E9E9E":"#9e9e9e66",d:"M1.8 15.9l8-7.4c.1-.2.2-.3.2-.4 0-.1-.1-.3-.1-.4L1.9.1c-.2-.2-.5-.2-.7 0-.2.2-.2.5 0 .7L8.8 8l-7.7 7.1c-.2.2-.2.5 0 .7.2.2.5.2.7.1z"})})}t.propTypes={isActive:e.bool.isRequired};export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as c,jsx as t}from"react/jsx-runtime";function
|
|
1
|
+
import{jsxs as c,jsx as t}from"react/jsx-runtime";function s(){return c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[t("path",{fill:"#9E9E9E",d:"M8 2.5c-.3 0-.5.2-.5.5v5c0 .1.1.3.1.4l3 3c.1.1.2.1.4.1s.3 0 .4-.1c.2-.2.2-.5 0-.7L8.5 7.8V3c0-.3-.2-.5-.5-.5z"}),t("path",{fill:"#9E9E9E",d:"M8 0C3.6 0 0 3.6 0 8c0 2.4 1.1 4.6 2.8 6H.5c-.3 0-.5.2-.5.5s.2.5.5.5h4v-4.5c0-.3-.2-.5-.5-.5s-.5.2-.5.5v2.9C2 12.1 1 10.2 1 8c0-3.9 3.1-7 7-7s7 3.1 7 7-3.1 7-7 7h-.5c-.3 0-.5.2-.5.5s.2.5.5.5H8c4.4 0 8-3.6 8-8s-3.6-8-8-8z"})]})}export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import e from"prop-types";import{jsxs as i,jsx as t}from"react/jsx-runtime";function r(e){var r=e.isActive;return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[t("path",{fill:r?"#9E9E9E":"#9e9e9e66",d:"M15.8 15.1l-4.5-4.3c1-1.1 1.6-2.7 1.6-4.3C13 2.9 10.1 0 6.5 0 2.9 0 0 2.9 0 6.5S2.9 13 6.5 13c1.6 0 3-.6 4.1-1.5l4.5 4.4c.1.1.2.1.3.1.1 0 .3-.1.4-.2.3-.2.2-.5 0-.7zM1 6.5C1 3.5 3.5 1 6.5 1S12 3.5 12 6.5 9.5 12 6.5 12 1 9.5 1 6.5z"}),t("path",{fill:r?"#9E9E9E":"#9e9e9e66",d:"M9.5 6H7V3.5c0-.3-.2-.5-.5-.5s-.5.2-.5.5V6H3.5c-.3 0-.5.2-.5.5s.2.5.5.5H6v2.5c0 .3.2.5.5.5s.5-.2.5-.5V7h2.5c.3 0 .5-.2.5-.5S9.8 6 9.5 6z"})]})}r.propTypes={isActive:e.bool.isRequired};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import e from"prop-types";import{jsxs as i,jsx as t}from"react/jsx-runtime";function r(e){var r=e.isActive;return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[t("path",{fill:r?"#9E9E9E":"#9e9e9e66",d:"M15.8 15.1l-4.5-4.3c1-1.1 1.6-2.7 1.6-4.3C13 2.9 10.1 0 6.5 0 2.9 0 0 2.9 0 6.5S2.9 13 6.5 13c1.6 0 3-.6 4.1-1.5l4.5 4.4c.1.1.2.1.3.1.1 0 .3-.1.4-.2.3-.2.2-.5 0-.7zM1 6.5C1 3.5 3.5 1 6.5 1S12 3.5 12 6.5 9.5 12 6.5 12 1 9.5 1 6.5z"}),t("path",{fill:r?"#9E9E9E":"#9e9e9e66",d:"M9.5 6h-6c-.3 0-.5.2-.5.5s.2.5.5.5h6c.3 0 .5-.2.5-.5S9.8 6 9.5 6z"})]})}r.propTypes={isActive:e.bool.isRequired};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"prop-types";import t from"classnames";import{makeStyles as o,Checkbox as s}from"@material-ui/core";import{jsx as i}from"react/jsx-runtime";function n(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 p(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var c=o({small:{padding:5}}),a=function(e){var r=e.size,o=r.size,n=r.classes,a=void 0===n?{}:n,m=c();return i(s,"medium"===o?p({},e):p(p({},e),{},{classes:p(p({},e.classes),{},{root:t(m.small,a.root)})}))};a.propTypes={size:r.string},a.defaultProps={size:"medium"};export{a as default};
|
package/components/Chip/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import{makeStyles as t,Chip as r}from"@material-ui/core";import i from"prop-types";import o from"classnames";import{jsx as a}from"react/jsx-runtime";function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function n(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?c(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l=function(e){var t=e.width,r=void 0===t?18:t,i=e.height,o=void 0===i?14:i,a=e.fill.replace("#","%23");return"<svg width='".concat(r,"' height='").concat(o,"' viewBox='0 0 18 14' fill='").concat(a,"' xmlns='http://www.w3.org/2000/svg'><path d='M6 11.1698L1.83 6.99984L0.410004 8.40984L6 13.9998L18 1.99984L16.59 0.589844L6 11.1698Z'/></svg>")},p=t((function(e){return{checked:{"&::before":{content:'url("data:image/svg+xml; utf8, '.concat(l({fill:e.palette.primary.main}),'")'),display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,lineHeight:"24px",marginLeft:8,marginRight:"-4px",paddingTop:3},"&.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(l({fill:e.palette.primary.text8}),'")')},"&.MuiChip-sizeSmall::before":{content:'url("data:image/svg+xml; utf8, '.concat(l({width:12,fill:e.palette.primary.main}),'")'),width:16,height:16},"&.MuiChip-sizeSmall.Mui-disabled::before":{content:'url("data:image/svg+xml; utf8, '.concat(l({width:12,fill:e.palette.primary.text8}),'")')},"&.MuiChip-root.MuiChip-clickable":{"& .MuiChip-label, & .MuiChip-deleteIcon, & .MuiChip-icon":{color:"#FFFFFF"}},"& .MuiChip-label:first-child":{marginLeft:"-4px"}}}})),s=function(e){var t=e.checked,i=e.classes,c=void 0===i?{}:i,l=p();return a(r,t?n(n({},e),{},{classes:n(n({},c),{},{root:o(c.root,l.checked)})}):n({},e))};s.propTypes={checked:i.bool},s.defaultProps={checked:!1};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import r from"prop-types";import i from"classnames";import{noop as n}from"lodash";import{withStyles as s,Box as p,IconButton as a}from"@material-ui/core";import m from"@material-ui/icons/ChevronLeftRounded";import l from"@material-ui/icons/ChevronRightRounded";import"./DevCenter/AppHeader/AppHeader.js";import"./DevCenter/AppSideBar/AppSideBar.js";import"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"./Annotations/components/AnnotationsList/index.js";import"./Annotations/components/LastAnnotation/index.js";import"./Annotations/AnnotationsContext.js";import"./Modal/index.js";import"./IconMenu/index.js";import"./StyledMenuItem/index.js";import"./DevCenter/AppContext.js";import"./AssetEditor/index.js";import"./AppVersionsSelect/AppVersionsSelect.js";import"./LoadingIndicator/LoadingIndicator.js";import"./Typography.js";import"./DateTimePicker/index.js";import"./DatePicker/index.js";import"./ErrorBoundary/ErrorBoundary.js";import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"./SlateFormattedText/SlateFormattedText.js";import"./SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"slate";import"./ParameterCharts/ParameterCharts.js";import"./ParameterCharts/AddEditTrack.js";import"./ChartActionsList/ChartActionsList.js";import"./AssetEditor/AssetEditorAutocomplete.js";import"./AssetEditor/SingleAssetEditor.js";import"./SettingEditors/ColorEditor/index.js";import"./SettingEditors/DropdownEditor/index.js";import"./SettingEditors/RadioEditor/index.js";import"./SwitchControl/index.js";import"./ColorPicker/ColorPicker.js";import"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";import"./TruncatedText/index.js";import"./RangeSlider/RangeSlider.js";import"./DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.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"./EmptyView/EmptyAppView/EmptyAppView.js";import"./Button/index.js";import"./ContextMenuItem/index.js";import"./FolderMenuItem/index.js";import"./EditableItem/EditableItem/index.js";import"./EditableItem/EditableItemWithBadge/index.js";import"./Checkbox/index.js";import"./FolderMenuItemWithLinks/index.js";import"./IconButton/index.js";import"./TextField/index.js";import"./Chip/index.js";import"./Counter/index.js";import"./AnchorsList/AnchorsList.js";import"./Select/index.js";import"./CustomSelect/index.js";import"./Tabs/Tabs.js";import"./Tabs/Tab.js";import"./ResizableTable/ResizableTable.js";import"./Drillstring/BHASchematic.js";import"./Drillstring/BHATable/index.js";import"./Drillstring/BHAComponentIcon.js";import"./Drillstring/BHAComponentDetail/index.js";import"./Casing/CasingTable/index.js";import"./Casing/CasingComponentIcon.js";import"./WellSummary/WellSummaryItemLabel.js";import"./WellSummary/WellSummaryItemTitle.js";import"./WellSummary/WellSummaryItemValue.js";import"./WellSummary/ActivitySummaryChart.js";import"./WellSummary/FracWirelineTimeChart.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"../clients/jsonApi/index.js";import"../constants/goals.js";import"../constants/segment.js";import"../constants/alerts.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/completion.js";import"../constants/notifications.js";import"../constants/feed.js";import"./BICOffsetPickerDialog/index.js";import"./OffsetWellPickerV2/OffsetWellPickerDialog.js";import"./OffsetWellPickerV3/index.js";import"./Notifications/Notifications.js";import"@babel/runtime/helpers/toConsumableArray";import"uuid";import{jsxs as d,jsx as c}from"react/jsx-runtime";import"./ConfirmationDialog.js";import"./TextLink/index.js";import"./Avatar/index.js";import"./Template/TemplatePopover/index.js";import"./MenuItem/index.js";import"./PadModeSelect/PadModeSelect.js";import"./PinnableFilters/PinnableFilters.js";import"./HeaderLayout/HeaderLayout.js";import"./PadOffsetsPicker/PadOffsetsPicker.js";import"./PadOffsetsPicker/OffsetAssetChip.js";import"./PadOffsetsPicker/OffsetAssetsListExpander.js";import"./PadOffsetsPicker/StagesSelector.js";import"./Table/TableToolbar/TableToolbar.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./Tooltip/MuiTooltipDcWrapper.js";import"./PriceInput/PriceInput.js";import"./LabelsCounter/LabelsCounter.js";import"./Stepper/Step.js";import"./Stepper/StepsWrapper.js";import"./Stepper/Stepper.js";import"./Comment/CommentIcon/index.js";import"./FilesLoader/FilesLoader.js";import"./SearchInput/index.js";import"./FeedItem/FeedItem.js";import"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"./PostInput/PostInput.js";import"./KeyboardDateTimePicker.js";import"./AddComment/Popover.js";import"./AddComment/Popup.js";import"./StageDesignVActual/ComparisonBar/ComparisonBar.js";import"./StageDesignVActual/ElementsComparison/ElementsComparison.js";import"./StageDesignVActual/ComparisonHeader.js";import"./StageDesignVActual/ComparisonRow.js";import"./EmbeddedApp/DevCenterEmbeddedApp.js";import"./EmbeddedApp/EmbeddedApp.js";import"./HelpCenter/ArticleIcon.js";import"./HelpCenter/DialogLayout.js";import"./HelpCenter/HelpCenterDialog/HelpCenterDialog.js";import"./HelpCenter/ItemContent/ItemContent.js";import"./HelpCenter/SingleItemHeader.js";import"./HelpCenter/shapes/index.js";import"../utils/mobileDetect.js";import"querystring";import"uuid/v1";import"../clients/subscriptions.js";import"../utils/index.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"./DevCenter/DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"./DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"./DevCenter/DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"./DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"./EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"./DevCenter/DevCenterAppContainer/components/DevCenterAppView/components/ChooseAssetButton/index.js";import"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.css.js";import"./DevCenter/DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"./DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"./DevCenter/NavigationBar/NavigationBar.js";import 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"./DevCenter/AppHeader/AppHeaderNew.js";var j=function(r){var n,s=r.classes,j=r.children,u=r.onStateChange,g=r.initialState,A=r.drawerPaperClassName,D=r.isToolbarGutterShown,v=r.openedDrawerWidth,f=r.anchor,b=o(g),x=t(b,2),h=x[0],S=x[1],P=function(){S(!h),u(!h)},T="left"===f?m:l;return d(C,{isToolbarGutterShown:D,drawerWidth:v,drawerClassName:i(s.drawer,!h&&s.drawerClosed),drawerPaperClassName:i(s.drawer,s.drawerPaper,A,!h&&s.drawerClosed),anchor:f,listClassName:s.list,onClick:function(){h||P()},children:[j,c(p,{className:i(s.openToggleContainer,(n={},e(n,s.openToggleContainerCollapsed,!h),e(n,s.openToggleContainerOpened,h),n)),children:c(a,{"aria-label":"toggle sidebar",className:s.openToggleIconButton,onClick:P,children:c(T,{className:i(s.openToggleIcon,e({},s.openToggleIconClosed,!h))})})})]})};j.propTypes={children:r.node.isRequired,onStateChange:r.func,initialState:r.bool,drawerPaperClassName:r.string,isToolbarGutterShown:r.bool,openedDrawerWidth:r.oneOfType([r.string,r.number]),anchor:r.oneOf(["left","right"]),closedWidth:r.oneOfType([r.string,r.number])},j.defaultProps={onStateChange:n,initialState:!0,closedWidth:48,drawerPaperClassName:null,isToolbarGutterShown:void 0,openedDrawerWidth:void 0,anchor:void 0};var u=s((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{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/slicedToArray";import{
|
|
1
|
+
import e from"@babel/runtime/helpers/slicedToArray";import{useState as r,useRef as t,useEffect as i}from"react";import n from"prop-types";import{makeStyles as o,Button as a}from"@material-ui/core";import{jsxs as c,jsx as l,Fragment as d}from"react/jsx-runtime";var p=o((function(e){return{contentWrapper:{position:"relative"},content:{overflow:"hidden"},readMore:{height:40,display:"block",textAlign:"right"},blackOut:{width:"100%",position:"absolute",justifyContent:"flex-end",background:"linear-gradient(to bottom, transparent, ".concat(e.palette.background.paper,")"),height:40,marginTop:-40}}})),s=function(n){var o=n.maxHeight,s=n.children,m=p(),u=r(!1),h=e(u,2),f=h[0],g=h[1],b=r(!1),v=e(b,2),x=v[0],y=v[1],H=t();return i((function(){!function(){var e=o&&H.current.clientHeight>o+40;y(e),g(e)}()}),[s]),c("div",{className:m.contentWrapper,children:[l("div",{className:m.content,style:{maxHeight:x?o:"initial"},children:l("div",{ref:H,children:s})}),f&&c("div",{className:m.readMore,children:[x&&l("div",{className:m.blackOut}),l(a,{onClick:function(){y((function(e){return!e})),x&&window.innerHeight<H.current.clientHeight&&H.current.scrollIntoView()},children:x?l(d,{children:"Read more …"}):"Show less"})]})]})};s.propTypes={children:n.oneOfType([n.node,n.string]).isRequired,maxHeight:n.number},s.defaultProps={maxHeight:120};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import o
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/slicedToArray";import{useState as o,useRef as n,useEffect as t}from"react";import a from"prop-types";import{withStyles as i,InputLabel as l,IconButton as c,Popover as p}from"@material-ui/core";import{ColorLens as s}from"@material-ui/icons";import b from"chroma-js";import g from"classnames";import u from"./PaletteChromePicker/PaletteChromePicker.js";import{jsxs as m,jsx as h}from"react/jsx-runtime";var f={root:{position:"relative",display:"flex"},topLabelRoot:{flexDirection:"column"},rightLabelRoot:{flexDirection:"row-reverse",justifyContent:"flex-end",alignItems:"center"},button:{width:"36px",height:"24px",boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.161)",borderRadius:"5px"},buttonTransparrent:{position:"relative",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"3px",background:"#FF0000",transform:"rotate(148deg)",borderRadius:"2px"}},colorLensIcon:{position:"relative",zIndex:2},popper:{zIndex:1500},topLabel:{marginBottom:"8px",fontSize:"15px",lineHeight:"17px",letterSpacing:"0.4px",color:"#BDBDBD",whiteSpace:"nowrap"},rightLabel:{marginLeft:"8px",fontSize:"16px"}},d={rgba:function(e){return"rgba(".concat(e.rgb.r,", ").concat(e.rgb.g,", ").concat(e.rgb.b,", ").concat(e.rgb.a,")")},rgb:function(e){return"rgb(".concat(e.rgb.r,", ").concat(e.rgb.g,", ").concat(e.rgb.b,")")},hex:function(e){return e.hex},rgba_rgb:function(e){return 1===e.rgb.a?d.rgb(e):d.rgba(e)},rgba_hex:function(e){return 1===e.rgb.a?d.hex(e):d.rgba(e)}},x=function(a){var i,u,f=a.label,x=a.value,v=a.converter,C=a.onChange,P=a.buttonClassName,k=a.popoverAnchorOrigin,L=a.popoverTransformOrigin,y=a.labelPosition,T=a.hideLabel,O=a.pickerComponent,R=a.classes,z=a.lensColor,S=a.enableTransparencyPalette,N=o(null),w=r(N,2),I=w[0],j=w[1],B=o(x),D=r(B,2),q=D[0],A=D[1],_=n();t((function(){A(x)}),[x]);return m("div",{className:g(R.root,(i={},e(i,R.topLabelRoot,"top"===y),e(i,R.rightLabelRoot,"right"===y),i)),children:[!T&&h(l,{className:g((u={},e(u,R.topLabel,"top"===y),e(u,R.rightLabel,"right"===y),u)),shrink:!0,children:f}),h(c,{className:g(R.button,P,e({},R.buttonTransparrent,0===b(q).alpha())),disableRipple:!0,style:{backgroundColor:q,color:z},onClick:function(e){j(e.currentTarget)},children:h(s,{fontSize:"small",className:R.colorLensIcon})}),h(p,{id:"colors-popper",action:_,open:Boolean(I),anchorEl:I,onClose:function(){j(null)},anchorOrigin:k,transformOrigin:L,children:h(O,{color:q,onChange:function(e){var r=d[v](e);A(r),C(r)},onSizeChange:function(){_.current&&_.current.updatePosition()},enableTransparencyPalette:S})})]})};x.propTypes={buttonClassName:a.string,label:a.string,value:a.string.isRequired,onChange:a.func.isRequired,converter:a.oneOf(Object.keys(d)),classes:a.shape({button:a.string.isRequired}).isRequired,pickerComponent:a.node,labelPosition:a.oneOf(["top","right"]),popoverAnchorOrigin:a.shape({}),popoverTransformOrigin:a.shape({}),hideLabel:a.bool,lensColor:a.string,enableTransparencyPalette:a.bool},x.defaultProps={label:"Color",buttonClassName:null,converter:"rgba_hex",pickerComponent:u,hideLabel:!1,popoverAnchorOrigin:{vertical:"bottom",horizontal:"left"},popoverTransformOrigin:{vertical:"top",horizontal:"left"},labelPosition:"top",lensColor:"#fff",enableTransparencyPalette:!1};var v=i(f)(x);export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import r from"
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import r from"prop-types";import i from"@material-ui/icons/CheckRounded";import{makeStyles as o}from"@material-ui/core";import t from"classnames";import a from"chroma-js";import{jsx as n}from"react/jsx-runtime";var s=o({container:{position:"relative",cursor:"pointer",width:"16px",height:"16px",borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{border:"1px solid white"}},containerSelected:{border:"1px solid white","& $squareCheck":{visibility:"visible"}},transparentContainer:{position:"relative",border:"1px solid #C4C4C4;",backgroundImage:"url(".concat("/static/media/39f55985e0da1489ad22264208b0493d.svg",")"),backgroundSize:"cover",backgroundPosition:"center","&::before":{content:'""',position:"absolute",display:"block",width:"100%",height:"2px",background:"#FF0000",transform:"rotate(135deg)",borderRadius:"2px"}},squareCheck:{width:"16px",height:"16px",color:"white",visibility:"hidden",zIndex:2}});function c(r){var o,c=r.color,d=r.isSelected,l=r.onClick,p=s();return n("div",{className:t(p.container,(o={},e(o,p.transparentContainer,0===a(c).alpha()),e(o,p.containerSelected,d),o)),style:{backgroundColor:c},onClick:l,children:n(i,{fontSize:"small",className:p.squareCheck})})}c.propTypes={color:r.string.isRequired,isSelected:r.bool.isRequired,onClick:r.func.isRequired};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from'
|
|
1
|
+
import t from'./../../../../ext-esm/style-inject/dist/style-inject.es.js';var e={paletteContainer:"Palette_paletteContainer__S2Z3b"};t(".Palette_paletteContainer__S2Z3b{display:grid;gap:2px;grid-template-columns:repeat(auto-fit,16px);width:232px}");export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"
|
|
1
|
+
import r from"prop-types";import{CustomPicker as e}from"react-color";import o from"classnames";import a from"chroma-js";import t from"../ColorSquare/ColorSquare.js";import{paletteColorsWithTransparent as n,paletteColors as s}from"./PaletteConstants.js";import l from"./Palette.css.js";import{jsx as i}from"react/jsx-runtime";var m=function(r,e){var o=a(r).alpha(),t=a(e).alpha();return o?r===e:o===t},c=function(r){var e=r.onChange,a=r.color,c=r.className,p=r.enableTransparencyPalette?n:s;return i("div",{className:o(l.paletteContainer,c),children:p.map((function(r){return i(t,{color:r,isSelected:m(a,r),onClick:function(){e(r)}},r)}))})};c.propTypes={onChange:r.func.isRequired,color:r.string.isRequired,className:r.string,enableTransparencyPalette:r.bool.isRequired},c.defaultProps={className:null};var p=e(c);export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{
|
|
1
|
+
import o from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/slicedToArray";import{forwardRef as r,useState as i,useLayoutEffect as t}from"react";import{ChromePicker as n}from"react-color";import a from"classnames";import l from"prop-types";import{makeStyles as c,Tooltip as p,IconButton as d}from"@material-ui/core";import s from"@material-ui/icons/Palette";import m from"@material-ui/icons/Colorize";import b from"./Palette/Palette.js";import{jsxs as f,jsx as u}from"react/jsx-runtime";var h="PALETTE",x="CHROME_PICKER",g={default:{picker:{width:"100%",boxShadow:"none"},body:{backgroundColor:"#3b3b3b",padding:"16px 16px 0"},color:{width:"32px",height:"32px",marginRight:"16px",borderRadius:"2px"},swatch:{marginTop:0,width:"100%",height:"100%",borderRadius:0,position:"relative",overflow:"hidden"},toggles:{display:"flex",flexDirection:"column",justifyContent:"space-between"},Alpha:{checkboard:{display:"none"},gradient:{borderRadius:"5px"}}}},C=c({container:{backgroundColor:"#3b3b3b",boxShadow:"0px 3px 10px rgba(0, 0, 0, 0.4)",width:"250px",paddingBottom:"8px",borderRadius:"4px","& input":{border:"1px solid #616161 !important",backgroundColor:"#3b3b3b",color:"#fff !important",boxShadow:"none !important",outline:"none"},"& svg:not(.MuiSvgIcon-root)":{fill:"#bdbdbd !important"}},chomePickerPalette:{margin:"0 8px",paddingTop:"8px"},buttonsContainer:{display:"flex",justifyContent:"center",marginTop:"8px"},iconButton:{padding:"8px","&:hover":{backgroundColor:"#333333"},"&:hover $icon":{color:"#fff"}},icon:{color:"#bdbdbd",fontSize:"24px"},iconActive:{color:"#fff"},tooltip:{background:"#414141",color:"#fff",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.12)",borderRadius:"4px",opacity:1,fontSize:"11px"}}),y=r((function(r,l){var c=r.color,y=r.onChange,P=r.onSizeChange,v=r.enableTransparencyPalette,k=C(),w=i(h),R=e(w,2),S=R[0],T=R[1];return t(P,[S]),f("div",{className:k.container,ref:l,children:[S===h&&u(b,{className:k.chomePickerPalette,color:c,onChange:y,enableTransparencyPalette:v}),S===x&&u(n,{styles:g,color:c,onChange:y}),f("div",{className:k.buttonsContainer,children:[u(p,{title:"Palette",classes:{tooltip:k.tooltip},children:u(d,{className:k.iconButton,onClick:function(){return T(h)},children:u(s,{className:a(k.icon,o({},k.iconActive,S===h)),fontSize:"small"})})}),u(p,{title:"Pick your own",classes:{tooltip:k.tooltip},children:u(d,{className:k.iconButton,onClick:function(){return T(x)},children:u(m,{className:a(k.icon,o({},k.iconActive,S===x)),fontSize:"small"})})})]})]})}));y.propTypes={color:l.string.isRequired,onChange:l.func.isRequired,onSizeChange:l.func.isRequired,enableTransparencyPalette:l.bool.isRequired};export{y as default};
|