@corva/ui 0.31.0-13 → 0.31.0-16

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.
@@ -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 a from"../../utils/main.js";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import r from"@babel/runtime/helpers/createClass";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import w from"file-extension";import x from"image-extensions";import N from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import U from"../ImageViewer/index.js";import R from"../GoogleDocsViewer/index.js";import C from"./styles.css.js";function z(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,a=v(e);if(t){var o=v(this).constructor;i=Reflect.construct(a,arguments,o)}else i=a.apply(this,arguments);return g(this,i)}}var A=i[200],F=i[400],W=i[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:A,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:C.cAttachmentImg,children:[s("img",{"data-testid":"".concat("attachment","_preview"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{className:C.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(U,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:C.cAttachmentFileWrapper,children:[l("div",{className:C.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(N,{fileName:e.displayName||e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("attachment","_name"),className:C.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(R,{fileUrl:e.attachmentUrl,fileName:a.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:C.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},V=function(i){f(o,c);var a=z(o);function o(i){var r;t(this,o),r=a.call(this,i),e(u(r),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(r),"handleLightboxOpen",(function(){r.props.isNative&&document.documentElement.addEventListener("touchmove",r.preventIOSScroll,{passive:!1})})),e(u(r),"handleLightboxClose",(function(){r.props.isNative&&document.documentElement.removeEventListener("touchmove",r.preventIOSScroll),r.setState({lightboxIsOpen:!1})})),e(u(r),"openLightbox",(function(){return r.setState({lightboxIsOpen:!0})})),e(u(r),"setImageIsLoaded",(function(){return r.setState({imageIsLoaded:!0})})),e(u(r),"openPreview",(function(){return r.setState({previewIsOpen:!0})})),e(u(r),"closePreview",(function(e){e.stopPropagation(),r.setState({previewIsOpen:!1})})),r.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=w(i.displayName||i.attachmentUrl);return r.isImage=x.includes(s),r.isVideo=y.includes(s),r}return r(o,[{key:"render",value:function(){return this.isImage?s("div",{className:C.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:C.cAttachment,children:s(L,{className:C.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:C.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),o}();V.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},V.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:o};var q=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(V);export default q;
1
+ import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/classCallCheck";import a from"@material-ui/core/colors/grey";import i from"../../utils/main.js";import{isNativeDetected as o}from"../../utils/mobileDetect.js";import r from"@babel/runtime/helpers/createClass";import{jsx as s,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Dialog as m}from"@material-ui/core";import{PureComponent as c}from"react";import{getFileDownloadLink as p}from"../../clients/jsonApi/index.js";import h from"prop-types";import{withStyles as d}from"@material-ui/core/styles";import u from"@babel/runtime/helpers/assertThisInitialized";import f from"@babel/runtime/helpers/inherits";import g from"@babel/runtime/helpers/possibleConstructorReturn";import v from"@babel/runtime/helpers/getPrototypeOf";import b from"@material-ui/core/Typography";import I from"@material-ui/core/IconButton";import x from"file-extension";import N from"image-extensions";import w from"../FileTypeIcon.js";import y from"video-extensions";import L from"react-player";import O from"@material-ui/icons/Image";import P from"@material-ui/icons/SaveAlt";import S from"@material-ui/icons/Fullscreen";import A from"../ImageViewer/index.js";import U from"../GoogleDocsViewer/index.js";import R from"./styles.css.js";function C(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 a,i=v(e);if(t){var o=v(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return g(this,a)}}var z=a[200],F=a[400],W=a[600],D={label:"small",value:135},j={label:"medium",value:300},k={fileImage:function(e,t){return{maxWidth:"100%",borderRadius:4,overflow:"hidden",maxHeight:t===D.label?D.value:j.value,display:e?"initial":"none",cursor:"pointer"}},fileDownloadWrapper:{marginTop:10,padding:"10px 10px 10px 5px",border:"1px solid ".concat(W),borderRadius:3,maxWidth:500,width:"75%"},imagePlaceholder:{position:"relative",backgroundColor:z,borderRadius:3,marginTop:10,height:135,width:135}},E=function(e){return l(n,{children:[l("div",{onClick:e.openLightbox,className:R.cAttachmentImg,children:[s("img",{"data-testid":"".concat("Attachment","_image"),src:e.attachmentUrl,style:k.fileImage(e.imageIsLoaded,e.size),alt:"Attachment",onLoad:e.setImageIsLoaded}),s("div",{"data-testid":"".concat("Attachment","_button"),className:R.cAttachmentImgPreviwBtn,children:s(S,{})})]}),!e.imageIsLoaded&&s("div",{style:k.imagePlaceholder,children:s(O,{"data-testid":"".concat("Attachment","_placeholder"),className:e.classes.imageIconRoot,htmlColor:F,fontSize:"large"})}),e.lightboxIsOpen&&s(A,{mainSrc:e.attachmentUrl,imagePadding:50,onAfterOpen:e.handleLightboxOpen,onCloseRequest:e.handleLightboxClose})]})},T=function(e){return l("div",{className:R.cAttachmentFileWrapper,children:[l("div",{className:R.cAttachmentFileDownloadWrapper,style:k.fileDownloadWrapper,onClick:e.openPreview,children:[s(w,{fileName:e.displayName||e.attachmentUrl,className:R.cAttachmentFileDownloadWrapperFileIcon,size:e.small?25:50}),s("div",{"data-testid":"".concat("Attachment","_name"),className:R.cAttachmentFileDownloadWrapperFileName,children:s(b,{variant:"subtitle2",noWrap:!0,className:e.classes.fileName,children:i.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl)})}),s(m,{open:e.previewIsOpen,onClose:e.closePreview,classes:{root:e.classes.dialogRoot,paper:e.isNative?e.classes.nativeDialog:e.classes.dialog},children:s(U,{fileUrl:e.attachmentUrl,fileName:i.getFileNameWithExtensionFromPath(e.displayName||e.attachmentUrl),fileSize:e.attachmentSize,onClose:e.closePreview,width:"100%",height:"100%"})})]}),s("a",{download:e.displayName,href:e.attachmentUrl,className:R.cAttachmentFileDownloadWrapperForm,children:s(I,{"data-testid":"".concat("Attachment","_downloadButton"),type:"submit",children:s(P,{className:e.classes.downloadIcon})})})]})},_=function(a){f(o,c);var i=C(o);function o(a){var r;t(this,o),r=i.call(this,a),e(u(r),"preventIOSScroll",(function(e){return e.preventDefault()})),e(u(r),"handleLightboxOpen",(function(){r.props.isNative&&document.documentElement.addEventListener("touchmove",r.preventIOSScroll,{passive:!1})})),e(u(r),"handleLightboxClose",(function(){r.props.isNative&&document.documentElement.removeEventListener("touchmove",r.preventIOSScroll),r.setState({lightboxIsOpen:!1})})),e(u(r),"openLightbox",(function(){return r.setState({lightboxIsOpen:!0})})),e(u(r),"setImageIsLoaded",(function(){return r.setState({imageIsLoaded:!0})})),e(u(r),"openPreview",(function(){return r.setState({previewIsOpen:!0})})),e(u(r),"closePreview",(function(e){e.stopPropagation(),r.setState({previewIsOpen:!1})})),r.state={imageIsLoaded:!1,lightboxIsOpen:!1,previewIsOpen:!1};var s=x(a.displayName||a.attachmentUrl);return r.isImage=N.includes(s),r.isVideo=y.includes(s),r}return r(o,[{key:"render",value:function(){return this.isImage?s("div",{className:R.cAttachment,children:s(E,{size:this.props.size,openLightbox:this.openLightbox,attachmentUrl:this.attachmentUrl,setImageIsLoaded:this.setImageIsLoaded,imageIsLoaded:this.state.imageIsLoaded,lightboxIsOpen:this.state.lightboxIsOpen,handleLightboxOpen:this.handleLightboxOpen,handleLightboxClose:this.handleLightboxClose,classes:this.props.classes})}):this.isVideo&&L.canPlay(this.props.attachmentUrl)?s("div",{className:R.cAttachment,children:s(L,{"data-testid":"".concat("Attachment","_player"),className:R.cAttachmentReactPlayer,url:this.attachmentUrl,config:{file:{attributes:{preload:"metadata"}}},controls:!0,height:this.props.size===D.label?D.value:j.value,width:null})}):s("div",{className:R.cAttachment,children:s(T,{attachmentUrl:this.attachmentUrl,attachmentSize:this.props.attachmentSize,displayName:this.props.displayName,isNative:this.props.isNative,openPreview:this.openPreview,closePreview:this.closePreview,previewIsOpen:this.state.previewIsOpen,classes:this.props.classes,small:this.props.small})})}},{key:"attachmentUrl",get:function(){return this.props.fileName?p(this.props.fileName):this.props.attachmentUrl}}]),o}();_.propTypes={attachmentUrl:h.string.isRequired,attachmentSize:h.number,displayName:h.string,fileName:h.string,size:h.oneOf([D.label,j.label]),classes:h.shape({}).isRequired,isNative:h.bool,small:h.bool},_.defaultProps={displayName:null,fileName:null,attachmentSize:void 0,size:j.label,small:!1,isNative:o};var V=d((function(e){return{imageIconRoot:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},dialog:{width:"95%",height:"95%",maxWidth:"100%",position:"relative"},nativeDialog:{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",margin:0},dialogRoot:{backgroundColor:"rgba(0, 0, 0, 0.85)"},fileName:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},downloadIcon:{color:W,"&:hover":{color:e.palette.common.white}}}}))(_);export default V;
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import e from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as t,Fragment as o,jsx as i}from"react/jsx-runtime";import{makeStyles as r,Popover as n}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import p from"prop-types";import m from"classnames";import{Settings as a,Close as l}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../ConfirmationDialog.js";import"../DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../../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 d 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"../../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"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";var c=r((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 24px)","&.scrollable":{height:"100%"}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"}}}));function j(r){var p=r.children,j=c(),u=s(null),C=e(u,2),g=C[0],A=C[1],b=s(!0),h=e(b,2),x=h[0],v=h[1],P=function(){A(null)},f=Boolean(g);return t(o,{children:[i(d,{onClick:function(e){return A(e.currentTarget)},children:i(a,{})}),t(n,{open:f,anchorEl:g,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12,classes:{paper:m(j.popoverPaper,x&&"scrollable")},children:[t("div",{className:m(j.popoverHeader,x&&"scrollable"),children:[i("div",{className:j.headerTitle,children:"Settings"}),i(d,{tooltipProps:{title:"Close"},onClick:P,children:i(l,{})})]}),i("div",{className:m(j.popoverContentContainer,x&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&v(!1)},children:i("div",{className:j.popoverContent,children:p})})]})]})}j.propTypes={children:p.node.isRequired};export default j;
1
+ import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/toConsumableArray";import"../../../constants/completion.js";import"../../../constants/alerts.js";import"lodash";import e from"@babel/runtime/helpers/slicedToArray";import"../../../constants/goals.js";import"../../../constants/segment.js";import"../../../constants/apps.js";import"../../../constants/drillstring.js";import"../../../constants/notifications.js";import"../../../constants/feed.js";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsxs as t,Fragment as o,jsx as i}from"react/jsx-runtime";import{makeStyles as r,Popover as n}from"@material-ui/core";import{useState as s}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import"@babel/runtime/helpers/objectWithoutProperties";import p from"prop-types";import m from"classnames";import{Settings as a,Close as l}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../EmptyView/EmptyAppView/EmptyAppView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import"../../ConfirmationDialog.js";import"../DevCenterAppContainer/components/DisabledSettingsMessage/DisabledSettingsMessage.js";import"slate";import"../../SlateFormattedText/RenderElements.js";import"../../SlateFormattedText/SlateFormattedText.js";import"../DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js";import"../DevCenterAppContainer/components/AnnotationsButton/AnnotationsButton.js";import"../DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js";import"../DevCenterAppContainer/components/FullscreenButton/FullscreenButton.js";import"../DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js";import"../../EmptyView/EmptyAppView/components/ErrorSubtitleWithIntercomLink.js";import"../DevCenterAppContainer/components/HelpCenterDialog/HelpCenterDialog.js";import"../DevCenterAppContainer/components/DcTooltipsCoordinatorProvider/DcTooltipsCoordinatorProvider.js";import"../DevCenterAppContainer/components/IsInsideDcAppProvider/IsInsideDcAppProvider.js";import"../../Tooltip/MuiTooltipDcWrapper.js";import"../../Avatar/index.js";import"../../Annotations/AnnotationsContext.js";import"../DevCenterRouterContext/DevCenterRouterContext.js";import"react-router";import"../DevCenterRouterContext/UniversalLink/UniversalLink.js";import"../../Annotations/components/AnnotationsList/index.js";import"../../Annotations/components/LastAnnotation/index.js";import"../../PadModeSelect/PadModeSelect.js";import"../AppHeader/AppHeader.js";import"../AppSideBar/AppSideBar.js";import"../AppContext.js";import"../AppsDataProvider/AppsDataProvider.js";import"@material-ui/icons/Help";import"../DevCenterAppContainer/DevCenterAppContainer.css.js";import"../DevCenterAppContainer/components/RestoreAppSizeButton/index.js";import"../DevCenterAppContainer/components/PriorityMenus/PriorityMenus.css.js";import"../NavigationBar/NavigationBar.js";import"../SideBar/SideBar.js";import"../../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 d 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"../../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"../../FeedItem/FeedItem.js";import"../../KeyboardDateTimePicker.js";import"../../PostInput/PostInput.js";import"../../FeedItem/FeedItemEditProvider/FeedItemEditProvider.js";var c=r((function(e){return{popoverPaper:{minWidth:286,width:286,overflowY:"hidden",backgroundColor:e.palette.background.b9,maxHeight:"calc(100% - 24px)","&.scrollable":{height:"100%"}},popoverHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",height:76,padding:"24px 16px 16px 16px",position:"absolute",left:0,right:0,zIndex:1,"&.scrollable":{background:"linear-gradient(to bottom, ".concat(e.palette.background.b9,", ").concat(e.palette.background.b9," 79%, rgba(65, 65, 65, 0) 100%)")}},headerTitle:{fontSize:20},popoverContentContainer:{marginTop:60,paddingTop:16,overflowX:"hidden",overflowY:"auto","&.scrollable":{height:"calc(100% - 60px)"}},popoverContent:{width:"100%"}}}));function j(r){var p=r.children,j=c(),u=s(null),C=e(u,2),g=C[0],A=C[1],b=s(!0),h=e(b,2),x=h[0],v=h[1],P=function(){A(null)},f=Boolean(g);return t(o,{children:[i(d,{size:"small",onClick:function(e){return A(e.currentTarget)},children:i(a,{})}),t(n,{open:f,anchorEl:g,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},marginThreshold:12,classes:{paper:m(j.popoverPaper,x&&"scrollable")},children:[t("div",{className:m(j.popoverHeader,x&&"scrollable"),children:[i("div",{className:j.headerTitle,children:"Settings"}),i(d,{tooltipProps:{title:"Close"},onClick:P,children:i(l,{})})]}),i("div",{className:m(j.popoverContentContainer,x&&"scrollable"),ref:function(e){e&&e.scrollHeight<=e.clientHeight&&v(!1)},children:i("div",{className:j.popoverContent,children:p})})]})]})}j.propTypes={children:p.node.isRequired};export default j;
@@ -1 +1 @@
1
- import{get as e}from"lodash";import{fromJS as t}from"immutable";import{FEED_ITEM_TYPES_BY_KEY as m,FEED_ITEM_TYPES as r}from"../../../constants/feed.js";import{jsx as o}from"react/jsx-runtime";import{THEMES as p}from"../../../constants/theme.js";import s from"../feedItemTypes/AlertFeedItem.js";import n from"../feedItemTypes/PostFeedItem.js";import d from"../feedItemTypes/DrillingOperationalNoteFeedItem.js";import f from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import i from"../feedItemTypes/DrillingDailyCostFeedItem.js";import a from"../feedItemTypes/DocumentFeedItem.js";import I from"../feedItemTypes/DrillerMemoFeedItem.js";import y from"../feedItemTypes/NptFeedItem.js";import l from"../feedItemTypes/LessonsLearnedFeedItem/index.js";import c from"../feedItemTypes/TracesMemoFeedItem.js";import u from"../feedItemTypes/CompletionOperationalNoteFeedItem.js";import T from"../feedItemTypes/CompletionOperationSummaryFeedItem.js";import j from"../feedItemTypes/CompletionDailyCostFeedItem.js";import F from"../feedItemTypes/CompletionDocumentFeedItem.js";import _ from"../feedItemTypes/CompletionNptFeedItem.js";var D={view:"feedItem",theme:p.DARK};export default function(p){var C=p.feedItem,v=p.appData,O=p.customFeedItemTypeTemplates;if(C.type in O){var h=O[C.type];return o(h,{feedItem:t(C),appData:t(v),appContext:t(D)})}switch(C.type){case e(m,"alert.type"):return o(s,{feedItem:C});case e(m,"post.type"):return o(n,{feedItem:C});case e(m,"operational_note.type"):return o(d,{feedItem:C});case e(m,"operation_summary.type"):return o(f,{feedItem:C});case e(m,"daily_cost.type"):return o(i,{feedItem:C});case e(m,"document.type"):return o(a,{feedItem:C});case e(m,"driller_memo.type"):return o(I,{feedItem:C});case e(m,"npt_event.type"):return o(y,{feedItem:C});case e(m,"completion_operational_note.type"):return o(u,{feedItem:C});case e(m,"completion_operation_summary.type"):return o(T,{feedItem:C});case e(m,"completion_daily_cost.type"):return o(j,{feedItem:C});case e(m,"completion_document.type"):return o(F,{feedItem:C});case e(m,"completion_npt_event.type"):return o(_,{feedItem:C});case r.TRACES_MEMO:return o(c,{feedItem:C});case e(m,"lessons_learned.type"):return o(l,{feedItem:C});default:return null}}
1
+ import{get as e}from"lodash";import{fromJS as t}from"immutable";import{FEED_ITEM_TYPES_BY_KEY as m,FEED_ITEM_TYPES as r}from"../../../constants/feed.js";import{jsx as o}from"react/jsx-runtime";import{THEMES as p}from"../../../constants/theme.js";import s from"../feedItemTypes/AlertFeedItem.js";import n from"../feedItemTypes/PostFeedItem.js";import d from"../feedItemTypes/DrillingOperationalNoteFeedItem.js";import a from"../feedItemTypes/DrillingOperationSummaryFeedItem.js";import i from"../feedItemTypes/DrillingDailyCostFeedItem.js";import f from"../feedItemTypes/DocumentFeedItem.js";import I from"../feedItemTypes/DrillerMemoFeedItem.js";import y from"../feedItemTypes/NptFeedItem.js";import l from"../feedItemTypes/LessonsLearnedFeedItem/index.js";import c from"../feedItemTypes/TracesMemoFeedItem.js";import u from"../feedItemTypes/CompletionOperationalNoteFeedItem.js";import T from"../feedItemTypes/CompletionOperationSummaryFeedItem.js";import j from"../feedItemTypes/CompletionDailyCostFeedItem.js";import _ from"../feedItemTypes/CompletionDocumentFeedItem.js";import F from"../feedItemTypes/CompletionNptFeedItem.js";var D={view:"feedItem",theme:p.DARK};export default function(p){var C=p.feedItem,v=p.appData,O=p.customFeedItemTypeTemplates;if(C.type in O){var h=O[C.type];return o(h,{"data-testid":"".concat("Feed_Content","_template"),feedItem:t(C),appData:t(v),appContext:t(D)})}switch(C.type){case e(m,"alert.type"):return o(s,{feedItem:C});case e(m,"post.type"):return o(n,{feedItem:C});case e(m,"operational_note.type"):return o(d,{feedItem:C});case e(m,"operation_summary.type"):return o(a,{feedItem:C});case e(m,"daily_cost.type"):return o(i,{feedItem:C});case e(m,"document.type"):return o(f,{feedItem:C});case e(m,"driller_memo.type"):return o(I,{feedItem:C});case e(m,"npt_event.type"):return o(y,{feedItem:C});case e(m,"completion_operational_note.type"):return o(u,{feedItem:C});case e(m,"completion_operation_summary.type"):return o(T,{feedItem:C});case e(m,"completion_daily_cost.type"):return o(j,{feedItem:C});case e(m,"completion_document.type"):return o(_,{feedItem:C});case e(m,"completion_npt_event.type"):return o(F,{feedItem:C});case r.TRACES_MEMO:return o(c,{feedItem:C});case e(m,"lessons_learned.type"):return o(l,{feedItem:C});default:return null}}
@@ -1 +1 @@
1
- import{isNativeDetected as e}from"../../../utils/mobileDetect.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{makeStyles as i,Typography as o}from"@material-ui/core";import s from"prop-types";import{formatMentionText as a}from"../../UserMention/utils/index.js";import m from"../../Attachment/index.js";import p from"../../CollapsibleContent.js";var n=i({wrapper:{whiteSpace:"pre-wrap"}}),d=function(i){var s=i.feedItem,d=s.context.post,u=d.body,c=d.attachment,l=void 0===c?{}:c,h=s.mentioned_users,f=n();return t("div",{className:f.wrapper,children:[u&&r(p,{children:r(o,{variant:"body1",gutterBottom:!0,children:a(u,h,e)})}),l.url&&r(m,{attachmentUrl:l.url,attachmentSize:l.size,size:"medium"})]})};d.propTypes={feedItem:s.shape({context:s.shape({post:s.shape({body:s.string.isRequired,attachment:s.shape({url:s.string,size:s.number})}).isRequired}).isRequired,mentioned_users:s.arrayOf(s.shape({}))}).isRequired};export default d;
1
+ import{isNativeDetected as e}from"../../../utils/mobileDetect.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{makeStyles as i,Typography as o}from"@material-ui/core";import s from"prop-types";import{formatMentionText as a}from"../../UserMention/utils/index.js";import m from"../../Attachment/index.js";import n from"../../CollapsibleContent.js";var p=i({wrapper:{whiteSpace:"pre-wrap"}}),d=function(i){var s=i.feedItem,d=s.context.post,u=d.body,c=d.attachment,l=void 0===c?{}:c,h=s.mentioned_users,f=p();return t("div",{className:f.wrapper,children:[u&&r(n,{children:r(o,{"data-testid":"".concat("PostFeedItem","_message"),variant:"body1",gutterBottom:!0,children:a(u,h,e)})}),l.url&&r(m,{attachmentUrl:l.url,attachmentSize:l.size,size:"medium"})]})};d.propTypes={feedItem:s.shape({context:s.shape({post:s.shape({body:s.string.isRequired,attachment:s.shape({url:s.string,size:s.number})}).isRequired}).isRequired,mentioned_users:s.arrayOf(s.shape({}))}).isRequired};export default d;
@@ -1 +1 @@
1
- import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_small__W_lAm{width:416px}.Modal_medium__1bbOT{width:552px}.Modal_large__3W3z5{width:768px}.Modal_extraLarge__2hv5g{width:80%;height:80%;max-width:1152px}.Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalContainer__1ntEL,.Modal_modalMobileContainer__3V7C-{background-color:#3b3b3b}.Modal_modalMobileContainer__3V7C-{outline:none;display:flex;flex-direction:column;padding-bottom:16px}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobileStaticFooter__3ZRy4{overflow-y:scroll;padding-bottom:16px;margin-top:60px}.Modal_modalMobile__3Q0mr,.Modal_modalMobileStaticFooter__3ZRy4{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%}.Modal_modalMobile__3Q0mr{padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px;line-height:28px}.Modal_modalMobileTitle__V8TLa{margin-bottom:auto;display:flex;position:absolute;top:0;width:100%;left:0;padding:0 16px;background-color:#3b3b3b}.Modal_filtersTitle__G2f7r{border-bottom:1px solid #333}.Modal_modalTitleText__1Qw62{line-height:28px;padding:4px 0}.Modal_modalMobileTitleText__HnTTy{font-size:20px;color:#fff;padding:16px 16px 16px 0;line-height:28px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalMobileActions__3uzdU{margin-top:auto;display:flex;position:absolute;bottom:0;width:100%;left:0;padding:8px 16px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobileContent__11cdf{overflow-y:scroll;padding:4px 16px 92px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}.Modal_settings__2iaI6,.Modal_settings__2iaI6 .Modal_modalMobileContainer__3V7C-,.Modal_settings__2iaI6 .Modal_modalMobileContent__11cdf,.Modal_settings__2iaI6 .Modal_modalMobileTitle__V8TLa{background-color:#414141}.Modal_filters__2q2wn,.Modal_filters__2q2wn .Modal_modalMobileContainer__3V7C-,.Modal_filters__2q2wn .Modal_modalMobileContent__11cdf,.Modal_filters__2q2wn .Modal_modalMobileTitle__V8TLa{background-color:#272727}.Modal_settings__2iaI6 .Modal_modalMobileActions__3uzdU{background-color:#414141;box-shadow:0 -8px 10px #414141}.Modal_filters__2q2wn .Modal_modalMobileActions__3uzdU{background-color:#272727;box-shadow:0 -8px 10px #272727}.Modal_settings__2iaI6 .Modal_modalMobileTitle__V8TLa{box-shadow:0 8px 10px #414141}.Modal_filters__2q2wn .Modal_modalMobileTitle__V8TLa{box-shadow:0 8px 10px #272727}");export default{small:"Modal_small__W_lAm",medium:"Modal_medium__1bbOT",large:"Modal_large__3W3z5",extraLarge:"Modal_extraLarge__2hv5g",modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalMobileContainer:"Modal_modalMobileContainer__3V7C-",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobileStaticFooter:"Modal_modalMobileStaticFooter__3ZRy4",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalMobileTitle:"Modal_modalMobileTitle__V8TLa",filtersTitle:"Modal_filtersTitle__G2f7r",modalTitleText:"Modal_modalTitleText__1Qw62",modalMobileTitleText:"Modal_modalMobileTitleText__HnTTy",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalMobileActions:"Modal_modalMobileActions__3uzdU",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY",modalMobileContent:"Modal_modalMobileContent__11cdf",settings:"Modal_settings__2iaI6",filters:"Modal_filters__2q2wn"};
1
+ import o from'../../ext-esm/style-inject/dist/style-inject.es.js';o(".Modal_small__W_lAm{width:416px}.Modal_medium__1bbOT{width:552px}.Modal_large__3W3z5{width:768px}.Modal_extraLarge__2hv5g{width:80%;height:80%;max-width:1152px}.Modal_modalWrapper__1Irj5{display:flex;width:100%;height:100%}.Modal_modalContainer__1ntEL{outline:none;max-width:80%;max-height:80%;margin:auto;border-radius:4px;display:flex;flex-direction:column}.Modal_modalContainer__1ntEL,.Modal_modalMobileContainer__3V7C-{background-color:#3b3b3b}.Modal_modalMobileContainer__3V7C-{outline:none;display:flex;flex-direction:column;padding-bottom:16px}.Modal_modalStaticFooter__3__80{overflow-y:scroll;padding-bottom:0}.Modal_modalMobileStaticFooter__3ZRy4{overflow-y:scroll;padding-bottom:16px;margin-top:60px}.Modal_modalMobile__3Q0mr,.Modal_modalMobileStaticFooter__3ZRy4{border-radius:0;max-width:100%;max-height:100%;min-width:100%;min-height:100%}.Modal_modalMobile__3Q0mr{padding:0}.Modal_modalTitle__3EmG3{font-size:20px;color:#fff;padding:40px 40px 16px;line-height:28px}.Modal_modalMobileTitle__V8TLa{margin-bottom:auto;display:flex;position:fixed;top:0;width:100%;left:0;padding:0 16px;background-color:#3b3b3b}.Modal_filtersTitle__G2f7r{border-bottom:1px solid #333}.Modal_modalTitleText__1Qw62{line-height:28px;padding:4px 0}.Modal_modalMobileTitleText__HnTTy{font-size:20px;color:#fff;padding:16px 16px 16px 0;line-height:28px}.Modal_modalTitleWithClose__1KEFF{display:flex;justify-content:space-between}.Modal_modalActions__1pnLy{margin-top:auto;display:flex;align-items:center;padding:32px 40px 40px}.Modal_modalMobileActions__3uzdU{margin-top:auto;display:flex;position:absolute;bottom:0;width:100%;left:0;padding:8px 16px}.Modal_modalActionsSticky__2ppfp{background:#3b3b3b;padding:8px 40px;box-shadow:0 -8px 10px rgba(0,0,0,.14)}.Modal_modalContent__30BgY{overflow-y:auto;padding:0 40px}.Modal_modalMobileContent__11cdf{overflow-y:scroll;padding:4px 16px 92px}.Modal_modalMobile__3Q0mr .Modal_modalContent__30BgY{padding:28px 32px}.Modal_settings__2iaI6,.Modal_settings__2iaI6 .Modal_modalMobileContainer__3V7C-,.Modal_settings__2iaI6 .Modal_modalMobileContent__11cdf,.Modal_settings__2iaI6 .Modal_modalMobileTitle__V8TLa{background-color:#414141}.Modal_filters__2q2wn,.Modal_filters__2q2wn .Modal_modalMobileContainer__3V7C-,.Modal_filters__2q2wn .Modal_modalMobileContent__11cdf,.Modal_filters__2q2wn .Modal_modalMobileTitle__V8TLa{background-color:#272727}.Modal_settings__2iaI6 .Modal_modalMobileActions__3uzdU{background-color:#414141;box-shadow:0 -8px 10px #414141}.Modal_filters__2q2wn .Modal_modalMobileActions__3uzdU{background-color:#272727;box-shadow:0 -8px 10px #272727}.Modal_settings__2iaI6 .Modal_modalMobileTitle__V8TLa{box-shadow:0 8px 10px #414141}.Modal_filters__2q2wn .Modal_modalMobileTitle__V8TLa{box-shadow:0 8px 10px #272727}");export default{small:"Modal_small__W_lAm",medium:"Modal_medium__1bbOT",large:"Modal_large__3W3z5",extraLarge:"Modal_extraLarge__2hv5g",modalWrapper:"Modal_modalWrapper__1Irj5",modalContainer:"Modal_modalContainer__1ntEL",modalMobileContainer:"Modal_modalMobileContainer__3V7C-",modalStaticFooter:"Modal_modalStaticFooter__3__80",modalMobileStaticFooter:"Modal_modalMobileStaticFooter__3ZRy4",modalMobile:"Modal_modalMobile__3Q0mr",modalTitle:"Modal_modalTitle__3EmG3",modalMobileTitle:"Modal_modalMobileTitle__V8TLa",filtersTitle:"Modal_filtersTitle__G2f7r",modalTitleText:"Modal_modalTitleText__1Qw62",modalMobileTitleText:"Modal_modalMobileTitleText__HnTTy",modalTitleWithClose:"Modal_modalTitleWithClose__1KEFF",modalActions:"Modal_modalActions__1pnLy",modalMobileActions:"Modal_modalMobileActions__3uzdU",modalActionsSticky:"Modal_modalActionsSticky__2ppfp",modalContent:"Modal_modalContent__30BgY",modalMobileContent:"Modal_modalMobileContent__11cdf",settings:"Modal_settings__2iaI6",filters:"Modal_filters__2q2wn"};
@@ -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/Typography";import n from"@material-ui/core/Button";import c from"@material-ui/core/Card";import s from"@material-ui/core/CardActions";import l from"@material-ui/core/CardContent";import m from"@material-ui/core/CardMedia";import d from"@material-ui/core/Chip";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(c,{"data-testid":"".concat(g),className:B.card,children:[r(m,{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(d,{"data-not-migrated-MuiChip":!0,"data-testid":"".concat(g,"_viewProfile"),className:h.cUserCardMediaBackdropToProfile,label:"View Profile"})})})}),t(l,{className:B.content,children:[r(o,{"data-testid":"".concat(g,"_name"),variant:"h5",className:B.userName,children:"".concat(N," ").concat(y)}),C&&r(o,{variant:"subtitle1",children:C}),r("br",{}),b&&r("a",{href:"mailto:".concat(b),target:"_top",children:t(o,{"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(o,{"data-testid":"".concat(g,"_phone"),variant:"body1",className:B.contact,children:[r(u,{className:B.contactIcon}),v]})})]}),t(s,{className:B.actions,children:[b?r("a",{href:"mailto:".concat(b),target:"_top",children:r(n,{"data-testid":"".concat(g,"_emailButton"),className:B.actionButton,variant:"contained",color:"primary",children:"Email"})}):r(n,{disabled:!0,className:B.actionButton,variant:"contained",color:"primary",children:"Email"}),r(n,{"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
+ 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/Typography";import c from"@material-ui/core/Button";import n from"@material-ui/core/Card";import s from"@material-ui/core/CardActions";import l from"@material-ui/core/CardContent";import m from"@material-ui/core/CardMedia";import d from"@material-ui/core/Chip";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(n,{"data-testid":"".concat(g),className:B.card,children:[r(m,{"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(d,{"data-not-migrated-MuiChip":!0,"data-testid":"".concat(g,"_viewProfile"),className:h.cUserCardMediaBackdropToProfile,label:"View Profile"})})})}),t(l,{className:B.content,children:[r(o,{"data-testid":"".concat(g,"_name"),variant:"h5",className:B.userName,children:"".concat(N," ").concat(y)}),C&&r(o,{variant:"subtitle1",children:C}),r("br",{}),b&&r("a",{href:"mailto:".concat(b),target:"_top",children:t(o,{"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(o,{"data-testid":"".concat(g,"_phone"),variant:"body1",className:B.contact,children:[r(u,{className:B.contactIcon}),v]})})]}),t(s,{className:B.actions,children:[b?r("a",{href:"mailto:".concat(b),target:"_top",children:r(c,{"data-testid":"".concat(g,"_emailButton"),className:B.actionButton,variant:"contained",color:"primary",children:"Email"})}):r(c,{disabled:!0,className:B.actionButton,variant:"contained",color:"primary",children:"Email"}),r(c,{"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 r from"./palette.mjs.js";import t from"lodash/merge.js";const o=t({},r,{primary:{text1:"#000"},background:{b6:"#bdbdbd"}});export default o;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.31.0-13",
3
+ "version": "0.31.0-16",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"
@@ -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:#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:#bdbdbd;--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:#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;}
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:#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:#bdbdbd;--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:#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}");
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}");