@corva/ui 0.31.0-9 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLI/components/App/App.js +1 -1
- package/CLI/hocs/withAppDataProviderHOC.js +1 -1
- package/CLI/hocs/withReactRouterHOC.js +1 -1
- package/CLI/screens/OAuthCallbackScreen/index.js +1 -1
- package/components/AddComment/Popover.js +1 -0
- package/components/AddComment/Popup.js +1 -0
- package/components/AddComment/components/Content.js +1 -0
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/Annotation/index.js +1 -1
- package/components/Annotations/components/LastAnnotation/index.js +1 -1
- package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/Comment/index.js +1 -1
- package/components/ConfirmationDialog.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js +1 -1
- package/components/ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js +1 -1
- package/components/FeedItem/components/Content.js +1 -1
- package/components/FeedItem/feedItemTypes/PostFeedItem.js +1 -1
- package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.js +1 -1
- package/components/FilePreview/index.js +1 -1
- package/components/Modal/Modal.css.js +1 -1
- package/components/Modal/index.js +1 -1
- package/components/Notifications/NotificationsContainer.js +1 -1
- package/components/Notifications/components/Toast.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/TextField/index.js +1 -1
- package/components/Tooltip/MuiTooltipDcWrapper.js +1 -1
- package/components/Tooltip/Tooltip.js +1 -1
- package/components/UserCard/index.js +1 -1
- package/components/WellSummary/effects/useWellSummaryData.js +1 -1
- package/components/index.js +1 -1
- package/config/theme/lightThemePalette.mjs.js +1 -1
- package/package.json +1 -1
- package/styles/generatedThemesVariables.global.css +1 -1
- package/styles/generatedThemesVariables.global.css.js +1 -1
- package/utils/devcenter.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{NOTIFICATION_VARIANTS as t}from"../../../constants/notifications.js";import"../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{Grow as o,SnackbarContent as n,Typography as s}from"@material-ui/core";import{useEffect as p,cloneElement as a}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import m from"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import c from"classnames";import{CheckCircleOutline as d,ReportProblemOutlined as j,ReportOutlined as u,InfoOutlined as C,Close as v}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";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"../../ConfirmationDialog.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/HelpCenterDialog/HelpCenterDialog.js";import"../../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.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"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.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/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"../../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 f from"../../IconButton/index.js";import"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import{useStyles as D}from"./styles.js";import"../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"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";var g;function A(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 b(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?A(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var P="NotificationPopup",x=(e(g={},t.success,d),e(g,t.warning,j),e(g,t.error,u),e(g,t.info,C),g),S=function(e){e.classes;var t=e.onDismissClick,l=e.toast,d=m(e,["classes","onDismissClick","toast"]),j=l.alertLevel,u=l.autoHideDuration,C=void 0===u?3e3:u,g=l.content,A=l.hideIcon,S=l.icon,y=l.id,h=l.onClick,I=void 0===h?function(){}:h,T=l.timestamp,E=l.title,L=l.variant,k=void 0===L?"info":L;p((function(){var e=setTimeout((function(){return t(y)}),C);return function(){return clearTimeout(e)}}),[]);var O=D(),B=x[k];return r(o,{appear:!0,in:!0,children:r(n,b({classes:{root:c(O.main,!j&&O[k],j&&O["alertLevels-".concat(j)]),action:O.actionContainer,message:O.messageContainer},"aria-describedby":"client-snackbar",message:i("div",{id:"client-snackbar",className:O.messageWrapper,onClick:I,"data-testid":"".concat(P,"_status_").concat({success:"success",info:"info",warning:"warning",error:"error"}[k]),children:[!A&&r("div",{className:O.iconWrapper,children:S?a(S,{className:O.icon,nativeColor:"#fff"}):r(B,{htmlColor:"#fff",className:O.icon})}),i("div",{className:O.message,children:[i("div",{className:O.messageTop,children:[E&&r(s,{"data-testid":"".concat(P,"_title"),variant:"subtitle2",className:O.title,children:E}),T&&r(s,{className:c(O.timestamp,!j&&O[k]),children:T})]}),r("div",{className:c(O.messageContent,!j&&O[k]),children:r(s,{"data-testid":"".concat(P,"_content"),className:c(!j&&O.content),children:g})})]})]}),action:[r(f,{"data-testid":"".concat(P,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){return t(y)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:O.tooltip}},className:O.closeIconButton,children:r(v,{className:O.closeIcon,htmlColor:j?"#000":"#fff"})},"close")]},d))})};S.propTypes={onDismissClick:l.func.isRequired,toast:l.shape({alertLevel:l.oneOf(["info","warning","critical"]),autoHideDuration:l.number,content:l.node.isRequired,hideIcon:l.bool,icon:l.node,id:l.oneOfType([l.number,l.string]).isRequired,onClick:l.func,timestamp:l.string,title:l.string,variant:l.oneOf(["success","warning","error","info"])}).isRequired};export default S;
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import{NOTIFICATION_VARIANTS as t}from"../../../constants/notifications.js";import"../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as r,jsxs as o}from"react/jsx-runtime";import{Grow as i,SnackbarContent as n,Typography as s}from"@material-ui/core";import{useEffect as p,cloneElement as m}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import a from"@babel/runtime/helpers/objectWithoutProperties";import l from"prop-types";import c from"classnames";import{CheckCircleOutline as d,ReportProblemOutlined as j,ReportOutlined as u,InfoOutlined as C,Close as v}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../ConfirmationDialog.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.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/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"../../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 f from"../../IconButton/index.js";import"../../TextField/index.js";import"../../Chip/index.js";import"../../Counter/index.js";import"../../AnchorsList/AnchorsList.js";import"../../Select/index.js";import"../../Tabs/Tabs.js";import"../../Tabs/Tab.js";import"../../Drillstring/BHASchematic.js";import"../../Drillstring/BHAComponentIcon.js";import"../../Drillstring/BHATable/index.js";import"../../Drillstring/BHAComponentDetail/index.js";import"../../Casing/CasingComponentIcon.js";import"../../Casing/CasingTable/index.js";import"../../WellSummary/WellSummaryItemLabel.js";import"../../WellSummary/WellSummaryItemTitle.js";import"../../WellSummary/WellSummaryItemValue.js";import"../../WellSummary/ActivitySummaryChart.js";import"../../WellSummary/FracWirelineTimeChart.js";import"../../BICOffsetPickerDialog/index.js";import"../../OffsetWellPickerV2/OffsetWellPickerDialog.js";import{useStyles as D}from"./styles.js";import"../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"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";import"../../AddComment/Popover.js";import"../../AddComment/Popup.js";var g;function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function b(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?A(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):A(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var P="NotificationPopup",x=(e(g={},t.success,d),e(g,t.warning,j),e(g,t.error,u),e(g,t.info,C),g),S=function(e){e.classes;var t=e.onDismissClick,l=e.toast,d=a(e,["classes","onDismissClick","toast"]),j=l.alertLevel,u=l.autoHideDuration,C=void 0===u?3e3:u,g=l.content,A=l.hideIcon,S=l.icon,y=l.id,h=l.onClick,I=void 0===h?function(){}:h,T=l.timestamp,E=l.title,L=l.variant,k=void 0===L?"info":L;p((function(){var e=setTimeout((function(){return t(y)}),C);return function(){return clearTimeout(e)}}),[]);var O=D(),B=x[k];return r(i,{appear:!0,in:!0,children:r(n,b({classes:{root:c(O.main,!j&&O[k],j&&O["alertLevels-".concat(j)]),action:O.actionContainer,message:O.messageContainer},"aria-describedby":"client-snackbar",message:o("div",{id:"client-snackbar",className:O.messageWrapper,onClick:I,"data-testid":"".concat(P,"_status_").concat({success:"success",info:"info",warning:"warning",error:"error"}[k]),children:[!A&&r("div",{className:O.iconWrapper,children:S?m(S,{className:O.icon,nativeColor:"#fff"}):r(B,{htmlColor:"#fff",className:O.icon})}),o("div",{className:O.message,children:[o("div",{className:O.messageTop,children:[E&&r(s,{"data-testid":"".concat(P,"_title"),variant:"subtitle2",className:O.title,children:E}),T&&r(s,{className:c(O.timestamp,!j&&O[k]),children:T})]}),r("div",{className:c(O.messageContent,!j&&O[k]),children:r(s,{"data-testid":"".concat(P,"_content"),className:c(!j&&O.content),children:g})})]})]}),action:[r(f,{"data-testid":"".concat(P,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){return t(y)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:O.tooltip}},className:O.closeIconButton,children:r(v,{className:O.closeIcon,htmlColor:j?"#000":"#fff"})},"close")]},d))})};S.propTypes={onDismissClick:l.func.isRequired,toast:l.shape({alertLevel:l.oneOf(["info","warning","critical"]),autoHideDuration:l.number,content:l.node.isRequired,hideIcon:l.bool,icon:l.node,id:l.oneOfType([l.number,l.string]).isRequired,onClick:l.func,timestamp:l.string,title:l.string,variant:l.oneOf(["success","warning","error","info"])}).isRequired};export default S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from'../../ext-esm/style-inject/dist/style-inject.es.js';t(".PostInput_input__16eG-{width:100%}.PostInput_inputTextField__kEr_F{width:100%;background:#3b3b3b;border:2px solid #03bcd4!important;box-sizing:border-box;border-radius:4px;padding:8px 14px
|
|
1
|
+
import t from'../../ext-esm/style-inject/dist/style-inject.es.js';t(".PostInput_input__16eG-{width:100%}.PostInput_inputTextField__kEr_F{width:100%;background:#3b3b3b;border:2px solid #03bcd4!important;box-sizing:border-box;border-radius:4px;padding:8px 14px 26px!important}.PostInput_inputAdornment__2hpEe{height:auto;width:100%;display:flex;justify-content:flex-end}.PostInput_input__16eG- .MuiInputBase-root{display:flex;flex-direction:column}");export default{input:"PostInput_input__16eG-",inputTextField:"PostInput_inputTextField__kEr_F",inputAdornment:"PostInput_inputAdornment__2hpEe"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{noop as e}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import o from"@material-ui/core/colors/grey";import{jsxs as
|
|
1
|
+
import{noop as e}from"lodash";import n from"@babel/runtime/helpers/slicedToArray";import o from"@material-ui/core/colors/grey";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{TextField as i,InputAdornment as a,Tooltip as l}from"@material-ui/core";import{useState as m,useEffect as s}from"react";import p from"prop-types";import c from"classnames";import u from"../UserMention/index.js";import d from"../EmojiIconButton.js";import f from"../FailedFileUploading.js";import h from"../FileUploadIconButton.js";import y from"../FilePreview/index.js";import g from"./PostInput.css.js";var v=function(e){var p=e.className,v=e.userCompanyId,C=e.onChange,w=e.onKeyDown,b=e.initialValue,j=e.filePreviewWrapperClass,F=m(b.body),P=n(F,2),I=P[0],N=P[1],x=m(b.attachment),A=n(x,2),D=A[0],T=A[1],U=m(null),E=n(U,2),K=E[0],V=E[1];return s((function(){C({body:I,attachment:D})}),[I,D]),r("div",{className:c(g.input,p),children:[t(i,{className:g.inputTextField,placeholder:"Add Comment...",FormHelperTextProps:{component:"div",margin:"dense"},InputProps:{inputComponent:u,inputProps:{onChange:N,value:I,withLightTheme:!1,companyId:v,autoFocus:!0,className:g.inputInput},endAdornment:r(a,{position:"end",className:g.inputAdornment,children:[!D&&t(l,{title:"Attach File",placement:"bottom",children:t("div",{children:t(h,{openPreviewDialogOnUpload:!1,onFinish:function(e,n,o){T({url:e,name:n,size:o})},onError:V,htmlColor:o[400]})})}),t(l,{title:"Add Emoji",placement:"bottom",children:t("div",{children:t(d,{handleSelectEmoji:function(e){return N((function(n){return"".concat(n).concat(e.native)}))},htmlColor:o[400]})})})]}),disableUnderline:!0,classes:{}},onKeyDown:w}),D&&t(y,{fileName:D.name,fileUrl:D.url,handleFileDelete:function(){return T(null)},classes:{wrapper:j}}),K&&t(f,{errorMessage:K})]})};v.propTypes={userCompanyId:p.oneOfType([p.string,p.number]).isRequired,className:p.string,onKeyDown:p.func,onChange:p.func,initialValue:p.shape({body:p.string,attachment:p.shape({})}),filePreviewWrapperClass:p.string},v.defaultProps={className:null,initialValue:{body:"",attachment:null},filePreviewWrapperClass:null,onKeyDown:e,onChange:e};export default v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import l from"@babel/runtime/helpers/createClass";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Dialog as n}from"@material-ui/core";import{createRef as s,PureComponent as c}from"react";import p from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import m from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import h from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import g from"@material-ui/core/
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import i from"@material-ui/core/colors/grey";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import l from"@babel/runtime/helpers/createClass";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{Dialog as n}from"@material-ui/core";import{createRef as s,PureComponent as c}from"react";import p from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import m from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import h from"@babel/runtime/helpers/possibleConstructorReturn";import u from"@babel/runtime/helpers/getPrototypeOf";import g from"@material-ui/core/Button";import U from"@material-ui/core/Typography";import y from"../UserMention/index.js";import F from"../EmojiIconButton.js";import v from"file-extension";import N from"image-extensions";import S from"@material-ui/core/Paper";import b from"@material-ui/core/DialogActions";import D from"@material-ui/core/DialogContent";import C from"@material-ui/core/DialogTitle";import E from"@material-ui/core/Input";import P from"@material-ui/core/RootRef";import R from"@material-ui/icons/Delete";import x from"../FileTypeIcon.js";import B from"../FailedFileUploading.js";import w from"./styles.css.js";import I from"../FileUploadIconButton.js";function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,o=u(e);if(t){var l=u(this).constructor;i=Reflect.construct(o,arguments,l)}else i=o.apply(this,arguments);return h(this,i)}}var j="PostPreviewDialog",T=i[200],z=i[300],A=i[400],M=function(e){return a(S,{className:e.classes.messageWrapper,children:[r(E,{"data-testid":"".concat(j,"_messageInput"),inputRef:e.inputEl,inputComponent:y,inputProps:{onChange:e.handleMessageChange,companyId:e.companyId,suggestionsPortalHost:e.rootRef.current},placeholder:"Add a message about the file...",fullWidth:!0,disableUnderline:!0,multiline:!0,rows:"3",className:e.classes.textFieldRoot,value:e.comment,onKeyDown:e.handleKeyDown}),a("div",{className:w.cPostPreviewDialogMessageAdditionalFieldsWrapper,children:[r("div",{children:e.additionalFields}),a("div",{className:w.cPostPreviewDialogMessageActionFields,children:[!e.fileUrl&&r(I,{htmlColor:i[400],openPreviewDialogOnUpload:!1,disableRipple:!0,onFinish:e.handleFileUpload,onError:e.handleFileUploadingError,inputId:"preview-dialog-file-upload"}),r(F,{handleSelectEmoji:e.handleSelectEmoji,emojiIconClassName:e.classes.additionalActionButton,htmlColor:i[400],disableRipple:!0})]})]})]})},W=function(e){var t=v(e.fileName),i=N.includes(t);return a("div",i?{children:[a("div",{className:w.cPostPreviewDialogFileName,children:[r(U,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,gutterBottom:!0,children:e.fileName}),r(R,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]}),r("div",{className:w.cPostPreviewDialogFileImageFileWrapper,style:{backgroundColor:T,border:"1px solid ".concat(z)},children:r("img",{"data-testid":"".concat(j,"_previewImage"),className:w.cPostPreviewDialogFileImage,src:e.fileUrl,alt:"Uploaded file"})})]}:{className:w.cPostPreviewDialogFileDownload,style:{backgroundColor:T,border:"1px solid ".concat(A)},children:[r(x,{fileName:e.fileName}),a("div",{className:w.cPostPreviewDialogFileDownloadText,children:[r(U,{"data-testid":"".concat(j,"_fileName"),variant:"subtitle2",noWrap:!0,children:e.fileName}),r(R,{"data-testid":"".concat(j,"_deleteButton"),color:"action",onClick:e.handleFileDelete,className:e.classes.deleteButton})]})]})},_=function(i){f(d,c);var p=k(d);function d(i){var o;return t(this,d),o=p.call(this,i),e(m(o),"focusOnInput",(function(){return o.inputEl.current.focus()})),e(m(o),"handleKeyDown",(function(e){"Enter"===e.key&&o.handleShare()})),e(m(o),"handleMessageChange",(function(e){return o.setState({comment:e})})),e(m(o),"handleSelectEmoji",(function(e){return o.setState((function(t){var i=t.comment;return{comment:"".concat(i).concat(e.native)}}))})),e(m(o),"handleShare",(function(){o.props.handleShare(o.state.comment,o.state.fileUrl,o.state.fileSize)})),e(m(o),"handleFileDelete",(function(){o.setState({fileUrl:"",fileSize:null,fileName:""})})),e(m(o),"handleFileUpload",(function(e,t,i){o.setState({fileUrl:e,fileName:t,fileSize:i,fileUploadingError:null})})),e(m(o),"handleFileUploadingError",(function(e){o.setState({fileUrl:null,fileName:null,fileSize:null,fileUploadingError:e})})),o.state={comment:i.message,fileUrl:i.fileUrl,fileSize:i.fileSize,fileName:i.fileName,fileUploadingError:null},o.inputEl=s(),o.rootRef=s(),o}return l(d,[{key:"componentDidUpdate",value:function(e){!e.open&&this.props.open&&!this.state.comment&&this.props.message&&this.setState({comment:this.props.message}),this.props.fileUrl===e.fileUrl&&this.props.fileSize===e.fileSize&&this.props.fileName===e.fileName||this.setState({fileUrl:this.props.fileUrl,fileSize:this.props.fileSize,fileName:this.props.fileName})}},{key:"render",value:function(){return r(P,{rootRef:this.rootRef,children:a(n,{fullScreen:o,open:this.props.open,onClose:this.props.handleClose,onBackdropClick:this.props.handleClose,onEntered:this.focusOnInput,children:[r(C,{children:this.props.title}),a(D,{classes:{root:!o&&this.props.classes.dialogContentRoot},children:[r(M,{inputEl:this.inputEl,comment:this.state.comment,handleMessageChange:this.handleMessageChange,handleKeyDown:this.handleKeyDown,handleFileUpload:this.handleFileUpload,handleSelectEmoji:this.handleSelectEmoji,handleFileUploadingError:this.handleFileUploadingError,additionalFields:this.props.additionalFields,fileUrl:this.state.fileUrl,classes:this.props.classes,companyId:this.props.companyId,rootRef:this.rootRef}),this.state.fileUploadingError&&r(B,{errorMessage:this.state.fileUploadingError,className:this.props.classes.fileUploadingError}),this.state.fileUrl&&r(W,{fileName:this.state.fileName,fileUrl:this.state.fileUrl,handleFileDelete:this.handleFileDelete,handleFileUploadingError:this.handleFileUploadingError,classes:this.props.classes})]}),a(b,{className:this.props.classes.dialogActions,children:[r(g,{"data-testid":"".concat(j,"_cancelButton"),color:"primary",onClick:this.props.handleClose,children:this.props.cancelButtonText}),r(g,{"data-testid":"".concat(j,"_okButton"),color:"primary",variant:"contained",disabled:!this.state.fileUrl&&!this.state.comment||!this.props.requiredFields.every(Boolean),onClick:this.handleShare,children:this.props.okButtonText})]})]})})}}]),d}();_.propTypes={title:p.string,open:p.bool.isRequired,fileUrl:p.string,fileName:p.string,fileSize:p.number,handleShare:p.func.isRequired,handleClose:p.func.isRequired,classes:p.shape({}).isRequired,additionalFields:p.arrayOf(p.node),requiredFields:p.arrayOf(p.string),message:p.string,companyId:p.number,okButtonText:p.string,cancelButtonText:p.string},_.defaultProps={title:"Share a file",fileUrl:"",fileName:"",fileSize:null,additionalFields:[],requiredFields:[],message:"",companyId:null,okButtonText:"Post",cancelButtonText:"Cancel"};var q=d((function(e){return{dialogContentRoot:{minWidth:500},textFieldRoot:{marginBottom:20},textInput:{paddingTop:2},messageWrapper:{padding:"18.5px 14px",border:"solid 1px ".concat(e.palette.primary.main),boxShadow:"none"},dialogActions:{padding:"24px 24px",margin:0},deleteButton:{color:"#DADADA",cursor:"pointer"},fileUploadingError:{marginTop:10}}}))(_);export default q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import{jsx as n}from"react/jsx-runtime";import{makeStyles as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import{jsx as n}from"react/jsx-runtime";import{makeStyles as e,TextField as r,InputAdornment as o}from"@material-ui/core";import u from"../../config/theme/palette.mjs.js";import i from"@babel/runtime/helpers/objectWithoutProperties";import s from"prop-types";import{useCustomShrink as l}from"./effects/index.js";function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function p(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){t(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}))}return n}var c=e((function(t){return{textField:{marginTop:16,marginBottom:8,"& .MuiFormLabel-root":{marginLeft:function(t){return t.startlabelOffset?"".concat(t.startlabelOffset+8,"px"):0},marginRight:function(t){return t.endlabelOffset?"".concat(t.endlabelOffset+8,"px"):0}},"&:hover":{"&.MuiTextField-root .MuiInput-root":{"& .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:u.primary.contrastText}}},"&.MuiTextField-root .MuiInput-root":{"& .MuiInputAdornment-root svg.MuiSvgIcon-root":{width:16,height:16,fontSize:16,fill:"#DADADA"},"&.Mui-error .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:"".concat(t.palette.error.main," !important")}},"& .Mui-focused .MuiInputAdornment-root svg.MuiSvgIcon-root":{fill:"".concat(t.palette.primary.main," !important")}},shrunkLabel:{"&.MuiInputLabel-shrink.MuiFormLabel-root":{marginLeft:0}}}})),f=function(t){var e=t.startIcon,u=t.endIcon,s=t.onFocus,a=t.onBlur,f=t.InputProps,d=t.value,m=t.startAdornment,b=t.endAdornment,I=i(t,["startIcon","endIcon","onFocus","onBlur","InputProps","value","startAdornment","endAdornment"]),O=l({startIcon:e,endIcon:u,onFocus:s,onBlur:a,value:d,InputProps:f}),v=O.shrink,g=O.onInputFocus,h=O.onInputBlur,P=O.startlabelOffset,A=O.endlabelOffset,M=O.startAdornmentRef,j=O.endAdornmentRef,y=c({startlabelOffset:P,endlabelOffset:A});return n(r,p(p({},I),{},{value:d,onFocus:g,onBlur:h,classes:{root:y.textField},InputLabelProps:p({shrink:v,classes:{shrink:y.shrunkLabel}},t.InputLabelProps),InputProps:p({startAdornment:e?n(o,{position:"start",ref:M,children:e}):m,endAdornment:u?n(o,{position:"end",ref:j,children:u}):b},t.InputProps)}))};f.propTypes={startIcon:s.node,endIcon:s.node,InputProps:s.shape({startAdornment:null}),InputLabelProps:s.shape({startAdornment:null}),value:s.oneOf([s.string,s.number]),onFocus:s.func,onBlur:s.func,endAdornment:s.node,startAdornment:s.node},f.defaultProps={startIcon:null,endIcon:null,InputProps:void 0,InputLabelProps:void 0,value:"",onFocus:void 0,onBlur:void 0,endAdornment:null,startAdornment:null};export default f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{jsx as r}from"react/jsx-runtime";import{Tooltip as n}from"@material-ui/core";import{useState as t,useEffect as p}from"react";import i from"@babel/runtime/helpers/objectWithoutProperties";import s from"prop-types";import{useDcTooltipsCoordinator as c}from"../DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";function u(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function f(o){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?u(Object(n),!0).forEach((function(r){e(o,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(n,e))}))}return o}function l(e){var s=e.onOpen,u=e.onClose,l=e.open,a=e.TransitionProps,O=i(e,["onOpen","onClose","open","TransitionProps"]),m=t(!1),b=o(m,2),P=b[0],y=b[1],d=c(),j=d.requestOpen,C=d.requestClose,h="boolean"==typeof l;return p((function(){l?j({setIsOpened:y}):C({setIsOpened:y})}),[l]),p((function(){return function(){C({setIsOpened:y})}}),[]),r(n,f(f({},O),{},{open:P,onOpen:function(e){s(e),h||j({setIsOpened:y})},onClose:function(e){u(e),h||C({setIsOpened:y})},TransitionProps:f(f({},a),{},{timeout:0})}))}l.defaultProps={onOpen:function(){},onClose:function(){},open:null,TransitionProps:{}},l.propTypes={onOpen:s.func,onClose:s.func,open:s.bool,TransitionProps:s.shape({})};export{l as MuiTooltipDcWrapper};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from"@babel/runtime/helpers/defineProperty";import{jsx as e}from"react/jsx-runtime";import{Tooltip as t}from"@material-ui/core";import{useIsInsideDcApp as o}from"../DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import{MuiTooltipDcWrapper as n}from"./MuiTooltipDcWrapper.js";function p(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function i(i){var c=o();return e(c?n:t,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}({},i))}export{i as Tooltip};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import e from"@material-ui/core/colors/blue";import{jsxs as t,jsx as r}from"react/jsx-runtime";import"react";import"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import{withStyles as i}from"@material-ui/core/styles";import o from"@material-ui/core/
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import e from"@material-ui/core/colors/blue";import{jsxs as t,jsx as r}from"react/jsx-runtime";import"react";import"@babel/runtime/helpers/objectWithoutProperties";import a from"prop-types";import{withStyles as i}from"@material-ui/core/styles";import o from"@material-ui/core/Card";import c from"@material-ui/core/CardActions";import n from"@material-ui/core/CardContent";import s from"@material-ui/core/CardMedia";import l from"@material-ui/core/Chip";import m from"@material-ui/core/Button";import d from"@material-ui/core/Typography";import p from"@material-ui/icons/Email";import u from"@material-ui/icons/Phone";import h from"./style.css.js";import"../DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import{UniversalLink as f}from"../DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";var g="UserCardDialogPo";function b(e){var a=e.user,i=a.id,b=a.email,v=a.mobile,C=a.title,N=a.first_name,y=a.last_name,_=a.profile_photo,x=e.currentUser,B=e.classes;return t(o,{"data-testid":"".concat(g),className:B.card,children:[r(s,{"data-testid":"".concat(g,"_placeholder"),className:B.media,image:_||"https://cdn.corva.ai/app/images/user-placeholder.svg",title:"".concat(N," ").concat(y),children:Number(x.id)===Number(i)&&r("div",{className:h.cUserCardMediaBackdrop,children:r(f,{href:"/config/users/".concat(i),children:r(l,{"data-not-migrated-MuiChip":!0,"data-testid":"".concat(g,"_viewProfile"),className:h.cUserCardMediaBackdropToProfile,label:"View Profile"})})})}),t(n,{className:B.content,children:[r(d,{"data-testid":"".concat(g,"_name"),variant:"h5",className:B.userName,children:"".concat(N," ").concat(y)}),C&&r(d,{variant:"subtitle1",children:C}),r("br",{}),b&&r("a",{href:"mailto:".concat(b),target:"_top",children:t(d,{"data-testid":"".concat(g,"_email"),gutterBottom:!0,variant:"body1",className:B.contact,children:[r(p,{className:B.contactIcon}),b]})}),v&&r("a",{href:"tel:".concat(v),target:"_top",children:t(d,{"data-testid":"".concat(g,"_phone"),variant:"body1",className:B.contact,children:[r(u,{className:B.contactIcon}),v]})})]}),t(c,{className:B.actions,children:[b?r("a",{href:"mailto:".concat(b),target:"_top",children:r(m,{"data-testid":"".concat(g,"_emailButton"),className:B.actionButton,variant:"contained",color:"primary",children:"Email"})}):r(m,{disabled:!0,className:B.actionButton,variant:"contained",color:"primary",children:"Email"}),r(m,{"data-testid":"".concat(g,"_messageButton"),disabled:!0,className:B.actionButton,variant:"contained",color:"primary",children:"Message"})]})]})}b.propTypes={user:a.shape({id:a.number.isRequired,email:a.string,mobile:a.string,title:a.string,role:a.string,first_name:a.string.isRequired,last_name:a.string.isRequired,profile_photo:a.string}).isRequired,classes:a.shape({}).isRequired,currentUser:a.shape({id:a.oneOfType([a.number,a.string])})},b.defaultProps={currentUser:{}};var v=i((function(t){return{card:{width:352},media:{height:264,width:"100%"},content:{cursor:"auto",padding:"10px 28px 28px 28px"},userName:{fontWeight:"bold"},contact:{display:"flex",alignItems:"center",fontSize:12,color:e[900],cursor:"pointer"},contactIcon:{height:15,width:15,marginRight:10,color:t.palette.grey[300]},actions:{display:"flex",justifyContent:"space-between",padding:"0 28px 28px 28px"},actionButton:{width:139}}}))(b);export default v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{get as
|
|
1
|
+
import t from"@babel/runtime/helpers/defineProperty";import"../../../constants/completion.js";import"../../../constants/alerts.js";import{get as r,sortBy as e,omit as n}from"lodash";import a 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{DRILLING_WELL_SUMMARY as s,COMPLETION_WELL_SUMMARY as c,DRILLOUT_WELL_SUMMARY as i}from"../../../constants/wellSummary.js";import{RIG_ACTIVITY_COLORS as o}from"../../../constants/rigActivity.js";import u from"@babel/runtime/regenerator";import p from"@babel/runtime/helpers/asyncToGenerator";import{useState as l,useEffect as f}from"react";import{getAppStorage as m}from"../../../clients/jsonApi/index.js";function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function h(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function v(t){return b.apply(this,arguments)}function b(){return(b=p(u.mark((function t(e){var n,a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.map(function(){var t=p(u.mark((function t(e){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m("corva","activities.summary-continuous",e,{fields:["data.activities","data.start_timestamp","data.end_timestamp"].join(","),limit:1,query:"{timestamp#lte#".concat(Math.floor(Date.now()/1e3),"}"),sort:"{timestamp:-1}"});case 3:return n=t.sent,t.abrupt("return",(r(n,"0.data.activities")||[]).map((function(t){return h(h({},t),{},{duration:(t.day||0)+(t.night||0),color:o[t.name]})})));case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(r){return t.apply(this,arguments)}}()));case 2:return n=t.sent,a={},n.forEach((function(t,r){a[e[r]]=t})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t,r,e,n){return g.apply(this,arguments)}function g(){return(g=p(u.mark((function t(a,s,c,i){var o,p;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m("corva",s,a,{aggregate:JSON.stringify([{$match:{asset_id:a,timestamp:{$lte:c,$gte:c-86400}}},{$project:{_id:-1,stage_number:1,data:1,timestamp:1}},{$group:{_id:"$stage_number",timestamp:{$first:"$timestamp"},stage_number:{$last:"$stage_number"},first_data:{$first:"$data"},last_data:{$last:"$data"}}}])});case 3:return o=t.sent,p=0,e(o,"timestamp").forEach((function(t,e){if(0===e){var a=n(r(t,"first_data"),i),s=n(r(t,"last_data"),i);Object.keys(s).forEach((function(t){p+=s[t]-(a[t]||0)}))}else{var c=n(r(t,"last_data"),i);Object.keys(c).forEach((function(t){p+=c[t]}))}})),t.abrupt("return",p);case 9:t.prev=9,t.t0=t.catch(0),console.error(t.t0);case 12:return t.abrupt("return",0);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))).apply(this,arguments)}function j(t){return w.apply(this,arguments)}function w(){return(w=p(u.mark((function t(e){var n,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(e.map(function(){var t=p(u.mark((function t(e){var n,s,c,i,o,p,l,f,d,h,v;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=Promise,t.next=4,m("corva","completion.wits",e,{limit:1,fields:"timestamp"});case 4:return t.t1=t.sent,t.next=7,m("corva","wireline.wits",e,{limit:1,fields:"timestamp"});case 7:return t.t2=t.sent,t.t3=[t.t1,t.t2],t.next=11,t.t0.all.call(t.t0,t.t3);case 11:if(n=t.sent,s=a(n,2),c=s[0],i=s[1],o=r(c,"0.timestamp"),p=r(i,"0.timestamp"),l=null,o&&p?l=o>p?o:p:o?l=o:p&&(l=p),l){t.next=21;break}return t.abrupt("return",[]);case 21:return t.next=23,Promise.all([y(e,"completion.activity.summary-stage",l,["activities"]),y(e,"wireline.activity.summary-stage",l,["durations"])]);case 23:return f=t.sent,d=a(f,2),h=d[0],v=d[1],t.abrupt("return",[{name:"frac",duration:h,color:"#7177FF"},{name:"wireline",duration:v,color:"#FF9C00"}]);case 30:t.prev=30,t.t4=t.catch(0),console.error(t.t4);case 33:return t.abrupt("return",[]);case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(r){return t.apply(this,arguments)}}()));case 2:return n=t.sent,s={},n.forEach((function(t,r){s[e[r]]=t})),t.abrupt("return",s);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=l(!0),o=a(n,2),d=o[0],b=o[1],y=l({}),g=a(y,2),w=g[0],x=g[1],O=l(!0),_=a(O,2),$=_[0],k=_[1],P=l({}),E=a(P,2),S=E[0],D=E[1],F="drilling"===r;return f((function(){function n(){return(n=p(u.mark((function r(){var n,a,o,p,l,f,d;return u.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=(e||Object.values(F?s:h(h({},c),i))).filter((function(t){return t.dataSource&&t.dataSource.length})),a=[],n.forEach((function(t){t.dataSource.forEach((function(t){var r=t.provider,e=t.collection,n=t.fields;r&&e&&n&&n.length?n.forEach((function(t){return a.push("".concat(r,"#").concat(e,".").concat(t))})):e&&a.push(e)}))})),a.push("well_id"),r.prev=4,o={asset_id:{$in:t}},p=a.reduce((function(t,r){return t[r]=1,t}),{asset_id:1}),l={aggregate:JSON.stringify([{$match:o},{$project:p}])},r.next=10,m("corva","well_cache",null,l);case 10:f=r.sent,d={},f.forEach((function(t){var r=t.asset_id;d[r]=t})),x(d),r.next=19;break;case 16:r.prev=16,r.t0=r.catch(4),console.error(r.t0);case 19:b(!1);case 20:case"end":return r.stop()}}),r,null,[[4,16]])})))).apply(this,arguments)}function a(){return(a=p(u.mark((function e(){var n;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"drilling"!==r){e.next=7;break}return e.next=4,v(t);case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,j(t);case 9:e.t0=e.sent;case 10:n=e.t0,D(n),e.next=17;break;case 14:e.prev=14,e.t1=e.catch(0),console.error(e.t1);case 17:k(!1);case 18:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}b(!0),k(!0),function(){n.apply(this,arguments)}(),function(){a.apply(this,arguments)}()}),[]),[d||$,w,S]}export{x as useWellSummaryData};
|
package/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"@babel/runtime/helpers/defineProperty";import"../constants/segment.js";import"react/jsx-runtime";import"react";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/
|
|
1
|
+
import"@babel/runtime/helpers/defineProperty";import"../constants/segment.js";import"react/jsx-runtime";import"react";export{default as Modal}from"./Modal/index.js";export{default as IconMenu}from"./IconMenu/index.js";export{default as StyledMenuItem}from"./StyledMenuItem/index.js";export{default as LoadingIndicator}from"./LoadingIndicator/LoadingIndicator.js";import"./DevCenter/DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"./DevCenter/DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{default as Avatar}from"./Avatar/index.js";export{AnnotationsProvider,useAnnotationsDispatch,useAnnotationsState}from"./Annotations/AnnotationsContext.js";import"./DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";export{UniversalLink}from"./DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";export{withUniversalLocationHOC}from"./DevCenter/DevCenterRouterContext/hocs/withUniversalLocationHOC.js";export{default as ConfirmationDialog}from"./ConfirmationDialog.js";export{default as AnnotationsList}from"./Annotations/components/AnnotationsList/index.js";export{default as LastAnnotation}from"./Annotations/components/LastAnnotation/index.js";export{default as PadModeSelect}from"./PadModeSelect/PadModeSelect.js";export{default as AppHeader}from"./DevCenter/AppHeader/AppHeader.js";export{default as AppSideBar}from"./DevCenter/AppSideBar/AppSideBar.js";export{default as AppContext}from"./DevCenter/AppContext.js";export{default as AppsDataProvider}from"./DevCenter/AppsDataProvider/AppsDataProvider.js";import"./DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";export{default as EmptyAppView}from"./EmptyView/EmptyAppView/EmptyAppView.js";export{default as ErrorBoundary}from"./ErrorBoundary/ErrorBoundary.js";import*as e from"./Typography.js";export{e as Typography};import"./ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";export{default as DisabledSettingsMessage}from"./DevCenter/DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";export{Element,Leaf}from"./SlateFormattedText/RenderElements.js";export{slateFormattingTextUtils}from"./SlateFormattedText/utils.js";export{default as SlateFormattedText}from"./SlateFormattedText/SlateFormattedText.js";export{default as AppSettingsDialog}from"./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/HelpCenterDialog/HelpCenterDialog.js";export{default as DevCenterAppContainer}from"./DevCenter/DevCenterAppContainer/DevCenterAppContainer.js";export{default as NavigationBar}from"./DevCenter/NavigationBar/NavigationBar.js";export{default as SideBar}from"./DevCenter/SideBar/SideBar.js";export{default as AppSettingsPopover}from"./DevCenter/AppSettingsPopover/AppSettingsPopover.js";export{default as TruncatedText}from"./TruncatedText/index.js";export{default as SingleAssetEditor}from"./AssetEditor/SingleAssetEditor.js";export{default as AssetEditorAutocomplete,default as SingleAssetEditorAutocomplete}from"./AssetEditor/AssetEditorAutocomplete.js";export{default as AppSettingsAssetEditor}from"./AssetEditor/index.js";export{default as AppVersionsSelect}from"./AppVersionsSelect/AppVersionsSelect.js";export{default as CollapsableSidebar}from"./CollapsableSidebar.js";export{default as DateTimePicker}from"./DateTimePicker/index.js";export{default as DatePicker}from"./DatePicker/index.js";export{default as PaletteChromePicker}from"./ColorPicker/PaletteChromePicker/PaletteChromePicker.js";export{default as ColorPicker}from"./ColorPicker/ColorPicker.js";export{default as AddEditTrack}from"./ParameterCharts/AddEditTrack.js";export{default as ParameterCharts}from"./ParameterCharts/ParameterCharts.js";export{default as ChartActionsList}from"./ChartActionsList/ChartActionsList.js";export{default as ColorEditor}from"./SettingEditors/ColorEditor/index.js";export{default as StyledDropdownEditor}from"./SettingEditors/DropdownEditor/index.js";export{default as RadioEditor}from"./SettingEditors/RadioEditor/index.js";export{default as SwitchControl}from"./SwitchControl/index.js";export{default as RangeSlider}from"./RangeSlider/RangeSlider.js";import*as t from"./Login/index.js";export{t as Login};export{default as Breadcrumbs}from"./Breadcrumbs/index.js";export{default as VirtualizedTable}from"./VirtualizedTable/index.js";export{default as EmptyView}from"./EmptyView/EmptyView.js";export{default as Button}from"./Button/index.js";export{default as MenuItem}from"./MenuItem/index.js";export{default as ContextMenuItem}from"./ContextMenuItem/index.js";export{default as FolderMenuItem}from"./FolderMenuItem/index.js";export{default as EditableItem}from"./EditableItem/EditableItem/index.js";export{default as EditableItemWithBadge}from"./EditableItem/EditableItemWithBadge/index.js";export{default as Checkbox}from"./Checkbox/index.js";export{default as FolderMenuItemWithLinks}from"./FolderMenuItemWithLinks/index.js";export{default as IconButton}from"./IconButton/index.js";export{default as TextField}from"./TextField/index.js";export{default as Chip}from"./Chip/index.js";export{default as Counter}from"./Counter/index.js";export{default as AnchorsList}from"./AnchorsList/AnchorsList.js";export{default as Select}from"./Select/index.js";export{default as Tabs}from"./Tabs/Tabs.js";export{default as Tab}from"./Tabs/Tab.js";export{default as BHASchematic}from"./Drillstring/BHASchematic.js";export{default as BHAComponentIcon}from"./Drillstring/BHAComponentIcon.js";export{default as BHATable}from"./Drillstring/BHATable/index.js";export{default as BHAComponentDetail}from"./Drillstring/BHAComponentDetail/index.js";export{default as CasingComponentIcon}from"./Casing/CasingComponentIcon.js";export{default as CasingTable}from"./Casing/CasingTable/index.js";import*as o from"./WellSummary/index.js";export{o as WellSummary};export{default as BICOffsetPickerDialog}from"./BICOffsetPickerDialog/index.js";export{default as OffsetWellPickerV2}from"./OffsetWellPickerV2/OffsetWellPickerDialog.js";export{default as Notifications}from"./Notifications/Notifications.js";export{default as NotificationsContainer}from"./Notifications/NotificationsContainer.js";export{default as TextLink}from"./TextLink/index.js";export{default as TemplatePopover}from"./Template/TemplatePopover/index.js";export{default as PinnableFilters}from"./PinnableFilters/PinnableFilters.js";export{default as HeaderLayout}from"./HeaderLayout/HeaderLayout.js";import*as r from"./PadOffsetsPicker/index.js";export{r as PadOffsetsPicker};export{default as TableSortLabel}from"./Table/TableSortLabel/TableSortLabel.js";export{default as TableToolbar}from"./Table/TableToolbar/TableToolbar.js";export{default as PriceInput}from"./PriceInput/PriceInput.js";export{default as LabelsCounter}from"./LabelsCounter/LabelsCounter.js";export{default as Step}from"./Stepper/Step.js";export{default as StepsWrapper}from"./Stepper/StepsWrapper.js";export{default as Stepper}from"./Stepper/Stepper.js";export{default as CommentIcon}from"./Comment/CommentIcon/index.js";export{default as FilesLoader}from"./FilesLoader/FilesLoader.js";export{default as SearchInput}from"./SearchInput/index.js";export{default as FeedItem}from"./FeedItem/FeedItem.js";export{default as KeyboardDateTimePicker}from"./KeyboardDateTimePicker.js";export{default as PostInput}from"./PostInput/PostInput.js";export{FeedItemEditProvider,useFeedItemEditProvider}from"./FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";export{default as AddCommentPopover}from"./AddComment/Popover.js";export{default as AddCommentPopup}from"./AddComment/Popup.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"./palette.mjs.js";import f from"lodash/merge.js";const t=f({},e,{primary:{text1:"#000",text6:"#393939",text7:"#575757",text8:"#757575",text9:"#9e9e9e"},background:{b1:"#fff",b2:"#fff",b3:"#fff",b4:"#fff",b5:"#f5f5f5",b6:"#eeeeee",b7:"#e7e7e7",b8:"#e0e0e0",b9:"#d6d6d6",b10:"#c7c7c7",b11:"#bdbdbd"}});export default t;
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* This file was fully generated via the the script that uses our MUI theme variables object as a source */
|
|
2
|
-
[data-corva-theme-light]{--palette-primary-main:#03BCD4;--palette-primary-dark:#008BA3;--palette-primary-light:#63EFFF;--palette-primary-contrast-text:#FFFFFF;--palette-primary-text-1:#000;--palette-primary-text-6:#
|
|
2
|
+
[data-corva-theme-light]{--palette-primary-main:#03BCD4;--palette-primary-dark:#008BA3;--palette-primary-light:#63EFFF;--palette-primary-contrast-text:#FFFFFF;--palette-primary-text-1:#000;--palette-primary-text-6:#393939;--palette-primary-text-7:#575757;--palette-primary-text-8:#757575;--palette-primary-text-9:#9e9e9e;--palette-secondary-main:#F50056;--palette-secondary-dark:#BB002E;--palette-secondary-light:#FF5982;--palette-background-b-1:#fff;--palette-background-b-2:#fff;--palette-background-b-3:#fff;--palette-background-b-4:#fff;--palette-background-b-5:#f5f5f5;--palette-background-b-6:#eeeeee;--palette-background-b-7:#e7e7e7;--palette-background-b-8:#e0e0e0;--palette-background-b-9:#d6d6d6;--palette-background-b-10:#c7c7c7;--palette-background-b-11:#bdbdbd;--palette-error-main:#F44336;--palette-error-dark:#D32F2F;--palette-error-light:#E57373;--palette-success-main:#4CAF50;--palette-success-dark:#388E3C;--palette-success-light:#81C784;--palette-success-bright:#75DB29;--palette-warning-main:#FFC107;--palette-warning-dark:#C79100;--palette-warning-light:#FFF350;--palette-info-main:#2196F3;--palette-info-dark:#1976D2;--palette-info-light:#64B5F6;--palette-charts-background:#FFFFFF;--palette-charts-gauge-arrow:#2a2e2e;--palette-pastel-p-1:#A92E26;--palette-pastel-p-2:#E06C92;--palette-pastel-p-3:#801797;--palette-pastel-p-4:#C336F0;--palette-pastel-p-5:#9078C8;--palette-pastel-p-6:#29388E;--palette-pastel-p-7:#77B5F1;--palette-pastel-p-8:#38818D;--palette-pastel-p-9:#91C9C4;--palette-pastel-p-10:#62893D;--palette-pastel-p-11:#A6CA72;--palette-pastel-p-12:#EEAB46;--palette-pastel-p-13:#EE7850;--palette-pastel-p-14:#F3AE96;--palette-pastel-p-15:#896F65;--palette-pastel-p-16:#7D909B;}[data-corva-theme-dark]{--palette-primary-main:#03BCD4;--palette-primary-dark:#008BA3;--palette-primary-light:#63EFFF;--palette-primary-contrast-text:#FFFFFF;--palette-primary-text-1:#FFFFFF;--palette-primary-text-6:#BDBDBD;--palette-primary-text-7:#9E9E9E;--palette-primary-text-8:#808080;--palette-primary-text-9:#616161;--palette-secondary-main:#F50056;--palette-secondary-dark:#BB002E;--palette-secondary-light:#FF5982;--palette-background-b-1:black;--palette-background-b-2:#141414;--palette-background-b-3:#191919;--palette-background-b-4:#212121;--palette-background-b-5:#272727;--palette-background-b-6:#2C2C2C;--palette-background-b-7:#333333;--palette-background-b-8:#3B3B3B;--palette-background-b-9:#414141;--palette-background-b-10:#4E4E4E;--palette-background-b-11:#373737;--palette-error-main:#F44336;--palette-error-dark:#D32F2F;--palette-error-light:#E57373;--palette-success-main:#4CAF50;--palette-success-dark:#388E3C;--palette-success-light:#81C784;--palette-success-bright:#75DB29;--palette-warning-main:#FFC107;--palette-warning-dark:#C79100;--palette-warning-light:#FFF350;--palette-info-main:#2196F3;--palette-info-dark:#1976D2;--palette-info-light:#64B5F6;--palette-charts-background:#2a2e2e;--palette-charts-gauge-arrow:white;--palette-pastel-p-1:#A92E26;--palette-pastel-p-2:#E06C92;--palette-pastel-p-3:#801797;--palette-pastel-p-4:#C336F0;--palette-pastel-p-5:#9078C8;--palette-pastel-p-6:#29388E;--palette-pastel-p-7:#77B5F1;--palette-pastel-p-8:#38818D;--palette-pastel-p-9:#91C9C4;--palette-pastel-p-10:#62893D;--palette-pastel-p-11:#A6CA72;--palette-pastel-p-12:#EEAB46;--palette-pastel-p-13:#EE7850;--palette-pastel-p-14:#F3AE96;--palette-pastel-p-15:#896F65;--palette-pastel-p-16:#7D909B;--status-login-text-field:undefined;--status-login-button:#03BCD4;--status-login-button-hovered:#03BCD4;--status-login-button-label:#ffffff;--status-login-linear-progress:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from'../ext-esm/style-inject/dist/style-inject.es.js';e("[data-corva-theme-light]{--palette-primary-main:#03bcd4;--palette-primary-dark:#008ba3;--palette-primary-light:#63efff;--palette-primary-contrast-text:#fff;--palette-primary-text-1:#000;--palette-primary-text-6:#
|
|
1
|
+
import e from'../ext-esm/style-inject/dist/style-inject.es.js';e("[data-corva-theme-light]{--palette-primary-main:#03bcd4;--palette-primary-dark:#008ba3;--palette-primary-light:#63efff;--palette-primary-contrast-text:#fff;--palette-primary-text-1:#000;--palette-primary-text-6:#393939;--palette-primary-text-7:#575757;--palette-primary-text-8:#757575;--palette-primary-text-9:#9e9e9e;--palette-secondary-main:#f50056;--palette-secondary-dark:#bb002e;--palette-secondary-light:#ff5982;--palette-background-b-1:#fff;--palette-background-b-2:#fff;--palette-background-b-3:#fff;--palette-background-b-4:#fff;--palette-background-b-5:#f5f5f5;--palette-background-b-6:#eee;--palette-background-b-7:#e7e7e7;--palette-background-b-8:#e0e0e0;--palette-background-b-9:#d6d6d6;--palette-background-b-10:#c7c7c7;--palette-background-b-11:#bdbdbd;--palette-error-main:#f44336;--palette-error-dark:#d32f2f;--palette-error-light:#e57373;--palette-success-main:#4caf50;--palette-success-dark:#388e3c;--palette-success-light:#81c784;--palette-success-bright:#75db29;--palette-warning-main:#ffc107;--palette-warning-dark:#c79100;--palette-warning-light:#fff350;--palette-info-main:#2196f3;--palette-info-dark:#1976d2;--palette-info-light:#64b5f6;--palette-charts-background:#fff;--palette-charts-gauge-arrow:#2a2e2e;--palette-pastel-p-1:#a92e26;--palette-pastel-p-2:#e06c92;--palette-pastel-p-3:#801797;--palette-pastel-p-4:#c336f0;--palette-pastel-p-5:#9078c8;--palette-pastel-p-6:#29388e;--palette-pastel-p-7:#77b5f1;--palette-pastel-p-8:#38818d;--palette-pastel-p-9:#91c9c4;--palette-pastel-p-10:#62893d;--palette-pastel-p-11:#a6ca72;--palette-pastel-p-12:#eeab46;--palette-pastel-p-13:#ee7850;--palette-pastel-p-14:#f3ae96;--palette-pastel-p-15:#896f65;--palette-pastel-p-16:#7d909b}[data-corva-theme-dark]{--palette-primary-main:#03bcd4;--palette-primary-dark:#008ba3;--palette-primary-light:#63efff;--palette-primary-contrast-text:#fff;--palette-primary-text-1:#fff;--palette-primary-text-6:#bdbdbd;--palette-primary-text-7:#9e9e9e;--palette-primary-text-8:grey;--palette-primary-text-9:#616161;--palette-secondary-main:#f50056;--palette-secondary-dark:#bb002e;--palette-secondary-light:#ff5982;--palette-background-b-1:#000;--palette-background-b-2:#141414;--palette-background-b-3:#191919;--palette-background-b-4:#212121;--palette-background-b-5:#272727;--palette-background-b-6:#2c2c2c;--palette-background-b-7:#333;--palette-background-b-8:#3b3b3b;--palette-background-b-9:#414141;--palette-background-b-10:#4e4e4e;--palette-background-b-11:#373737;--palette-error-main:#f44336;--palette-error-dark:#d32f2f;--palette-error-light:#e57373;--palette-success-main:#4caf50;--palette-success-dark:#388e3c;--palette-success-light:#81c784;--palette-success-bright:#75db29;--palette-warning-main:#ffc107;--palette-warning-dark:#c79100;--palette-warning-light:#fff350;--palette-info-main:#2196f3;--palette-info-dark:#1976d2;--palette-info-light:#64b5f6;--palette-charts-background:#2a2e2e;--palette-charts-gauge-arrow:#fff;--palette-pastel-p-1:#a92e26;--palette-pastel-p-2:#e06c92;--palette-pastel-p-3:#801797;--palette-pastel-p-4:#c336f0;--palette-pastel-p-5:#9078c8;--palette-pastel-p-6:#29388e;--palette-pastel-p-7:#77b5f1;--palette-pastel-p-8:#38818d;--palette-pastel-p-9:#91c9c4;--palette-pastel-p-10:#62893d;--palette-pastel-p-11:#a6ca72;--palette-pastel-p-12:#eeab46;--palette-pastel-p-13:#ee7850;--palette-pastel-p-14:#f3ae96;--palette-pastel-p-15:#896f65;--palette-pastel-p-16:#7d909b;--status-login-text-field:undefined;--status-login-button:#03bcd4;--status-login-button-hovered:#03bcd4;--status-login-button-label:#fff;--status-login-linear-progress:undefined}");
|
package/utils/devcenter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../constants/completion.js";import"../constants/alerts.js";import"lodash";import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"../constants/feed.js";var t=function(n,t){return n?"".concat(n.replace(/\./g,"_"),"-").concat(t):""},o=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:n.location.pathname,query:n.location.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},i=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:n.name},s=function(n){var t;return"dev_center"===(null==n||null===(t=n.app)||void 0===t?void 0:t.platform)};export{a as createDevCenterRouter,t as getAppIdentifier,i as getAppName,r as getTimestampFromQuery,o as isAppMaximized,s as isDevCenterApp};
|
|
1
|
+
import"../constants/completion.js";import"../constants/alerts.js";import"lodash";import{DEV_CENTER_CLI_APP_ID as n}from"../constants/devcenter.js";import"../constants/goals.js";import"../constants/segment.js";import"../constants/apps.js";import"../constants/drillstring.js";import"../constants/notifications.js";import"../constants/feed.js";var t=function(n,t){return n?"".concat(n.replace(/\./g,"_"),"-").concat(t):""},o=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return o===+(null==t?void 0:t.maximizeDC)};function a(n){return{push:function(t){"string"==typeof t?n.push(t):n.push({pathname:t.pathname,query:t.query})},location:{pathname:n.location.pathname,query:n.location.query}}}var r=function(n){return n?+(n.split("#")[2]||"").replace("}",""):void 0},i=function(n){var t,o;return null!==(t=null==n||null===(o=n.package)||void 0===o?void 0:o.manifest.application.name)&&void 0!==t?t:n.name},s=function(n){var t;return"dev_center"===((null==n?void 0:n.platform)||(null==n||null===(t=n.app)||void 0===t?void 0:t.platform))};export{a as createDevCenterRouter,t as getAppIdentifier,i as getAppName,r as getTimestampFromQuery,o as isAppMaximized,s as isDevCenterApp};
|