@corva/ui 0.27.0-4 → 0.27.0-9
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{jsx as t,jsxs as r}from"react/jsx-runtime";import{Grow as i,SnackbarContent as
|
|
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"@babel/runtime/regenerator";import"@babel/runtime/helpers/asyncToGenerator";import"../../../utils/mobileDetect.js";import"@babel/runtime/helpers/typeof";import"../../../utils/index.js";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{Grow as i,SnackbarContent as o,Typography as n}from"@material-ui/core";import{useEffect as s,cloneElement as p}from"react";import"querystring";import"uuid/v1";import"../../../clients/jsonApi/index.js";import"../../../clients/subscriptions.js";import"uuid";import a from"@babel/runtime/helpers/objectWithoutProperties";import m from"prop-types";import l from"classnames";import{Close as c,CheckCircleOutline as d,ReportProblemOutlined as j,ReportOutlined as u,InfoOutlined as C}from"@material-ui/icons";import"../../Modal/index.js";import"../../IconMenu/index.js";import"../../StyledMenuItem/index.js";import"../../LoadingIndicator/LoadingIndicator.js";import"../../Tooltip.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"../../DevCenter/DevCenterAppContainer/components/AppActions/AppActions.css.js";import"../../ErrorBoundary/InternalErrorView/InternalErrorView.js";import"../../ErrorBoundary/ErrorBoundary.js";import"../../Typography.js";import"../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";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"../../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"../../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/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/index.js";import"../../EmptyView/EmptyAppView/index.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"../../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 g}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";function b(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 v(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?b(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var A="NotificationPopup",D={success:d,warning:j,error:u,info:C},x=function(e){e.classes;var m=e.onDismissClick,d=e.toast,j=a(e,["classes","onDismissClick","toast"]),u=d.alertLevel,C=d.autoHideDuration,b=void 0===C?3e3:C,x=d.content,y=d.hideIcon,S=d.icon,h=d.id,P=d.onClick,L=void 0===P?function(){}:P,E=d.timestamp,T=d.title,O=d.variant,I=void 0===O?"info":O;s((function(){var e=setTimeout((function(){return m(h)}),b);return function(){return clearTimeout(e)}}),[]);var k=g(),B=D[I];return t(i,{appear:!0,in:!0,children:t(o,v({classes:{root:l(k.main,!u&&k[I],u&&k["alertLevels-".concat(u)]),action:k.actionContainer,message:k.messageContainer},"aria-describedby":"client-snackbar",message:r("div",{id:"client-snackbar",className:k.messageWrapper,onClick:L,"data-testid":"".concat(A,"_status_").concat({success:"success",info:"info",warning:"warning",error:"error"}[I]),children:[!y&&t("div",{className:k.iconWrapper,children:S?p(S,{className:k.icon,nativeColor:"#fff"}):t(B,{htmlColor:"#fff",className:k.icon})}),r("div",{className:k.message,children:[r("div",{className:k.messageTop,children:[T&&t(n,{"data-testid":"".concat(A,"_title"),variant:"subtitle2",className:k.title,children:T}),E&&t(n,{className:l(k.timestamp,!u&&k[I]),children:E})]}),t("div",{className:l(k.messageContent,!u&&k[I]),children:t(n,{"data-testid":"".concat(A,"_content"),className:l(!u&&k.content),children:x})})]})]}),action:[t(f,{"data-testid":"".concat(A,"_closeButton"),"aria-label":"Close",color:"inherit",onClick:function(){return m(h)},size:"small",tooltipProps:{title:"Close",classes:{tooltip:k.tooltip}},className:k.closeIconButton,children:t(c,{className:k.closeIcon,htmlColor:u?"#000":"#fff"})},"close")]},j))})};x.propTypes={onDismissClick:m.func.isRequired,toast:m.shape({alertLevel:m.oneOf(["info","warning","critical"]),autoHideDuration:m.number,content:m.node.isRequired,hideIcon:m.bool,icon:m.node,id:m.oneOfType([m.number,m.string]).isRequired,onClick:m.func,timestamp:m.string,title:m.string,variant:m.oneOf(["success","warning","error","info"])}).isRequired};export default x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as e}from"@material-ui/core";var
|
|
1
|
+
import{makeStyles as e}from"@material-ui/core";var o=e((function(e){return{main:{width:443,height:48,maxWidth:"85vw",display:"flex",flexWrap:"nowrap",alignItems:"center",padding:0,marginBottom:e.spacing(2)},success:{backgroundColor:e.palette.success.main},error:{backgroundColor:e.palette.error.main},warning:{backgroundColor:e.palette.warning.main,"& .MuiSvgIcon-root":{color:e.palette.background.b7},"& p":{color:e.palette.background.b7}},info:{backgroundColor:e.palette.info.main},title:{color:e.palette.grey[600],fontWeight:"400"},content:{fontSize:"14px",lineHeight:"16px",padding:"8px 0",color:"#fff",fontWeight:500},iconWrapper:{display:"flex",alignSelf:"center",alignItems:"center",height:35,padding:"0px 10px 0 18px"},icon:{width:20,height:20,transform:"scale(1.2)"},closeIconButton:{"&.MuiButtonBase-root":{color:"#fff",padding:11,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"},"&:active":{backgroundColor:"rgba(255, 255, 255, 0.4)"}}},closeIcon:{width:14,height:14,"&.MuiSvgIcon-root":{fontSize:14,transform:"scale(1.715)"}},messageContainer:{overflowX:"hidden",flex:1},messageWrapper:{display:"flex"},message:{display:"flex",flex:1,alignItems:"center",minHeight:35,height:"100%",overflowY:"hidden",justifyContent:"center",flexDirection:"column"},messageTop:{display:"flex",justifyContent:"space-between",overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},messageContent:{overflowX:"hidden",textOverflow:"ellipsis",width:"100%"},timestamp:{marginLeft:10,alignSelf:"flex-end"},actionContainer:{paddingLeft:"8px",marginRight:"16px"},"alertLevels-info":{borderLeft:"15px solid rgb(119, 195, 241)",backgroundColor:"#fff"},"alertLevels-warning":{borderLeft:"15px solid rgb(242, 192, 70)",backgroundColor:"#fff"},"alertLevels-critical":{borderLeft:"15px solid rgb(237, 70, 48)",backgroundColor:"#fff"},tooltip:{marginTop:8}}}));export{o as useStyles};
|
|
@@ -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 e,sortBy as r,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{DRILLING_WELL_SUMMARY as s,COMPLETION_WELL_SUMMARY as i,DRILLOUT_WELL_SUMMARY as c}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{getWell as m,getAppStorage as d}from"../../../clients/jsonApi/index.js";function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?v(Object(n),!0).forEach((function(r){t(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(t){return y.apply(this,arguments)}function y(){return(y=p(u.mark((function t(r){var n,a;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(r.map(function(){var t=p(u.mark((function t(r){var n;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d("corva","activities.summary-continuous",r,{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",(e(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(e){return t.apply(this,arguments)}}()));case 2:return n=t.sent,a={},n.forEach((function(t,e){a[r[e]]=t})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t,e,r,n){return w.apply(this,arguments)}function w(){return(w=p(u.mark((function t(a,s,i,c){var o,p;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d("corva",s,a,{aggregate:JSON.stringify([{$match:{asset_id:a,timestamp:{$lte:i,$gte:i-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,r(o,"timestamp").forEach((function(t,r){if(0===r){var a=n(e(t,"first_data"),c),s=n(e(t,"last_data"),c);Object.keys(s).forEach((function(t){p+=s[t]-(a[t]||0)}))}else{var i=n(e(t,"last_data"),c);Object.keys(i).forEach((function(t){p+=i[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 x.apply(this,arguments)}function x(){return(x=p(u.mark((function t(r){var n,s;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(r.map(function(){var t=p(u.mark((function t(r){var n,s,i,c,o,p,l,f,m,v,h;return u.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=Promise,t.next=4,d("corva","completion.wits",r,{limit:1,fields:"timestamp"});case 4:return t.t1=t.sent,t.next=7,d("corva","wireline.wits",r,{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),i=s[0],c=s[1],o=e(i,"0.timestamp"),p=e(c,"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([g(r,"completion.activity.summary-stage",l,["activities"]),g(r,"wireline.activity.summary-stage",l,["durations"])]);case 23:return f=t.sent,m=a(f,2),v=m[0],h=m[1],t.abrupt("return",[{name:"frac",duration:v,color:"#7177FF"},{name:"wireline",duration:h,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(e){return t.apply(this,arguments)}}()));case 2:return n=t.sent,s={},n.forEach((function(t,e){s[r[e]]=t})),t.abrupt("return",s);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=l(!0),o=a(n,2),v=o[0],y=o[1],g=l({}),w=a(g,2),x=w[0],_=w[1],O=l(!0),$=a(O,2),k=$[0],P=$[1],E=l({}),S=a(E,2),D=S[0],F=S[1],A="drilling"===e;return f((function(){function n(){return(n=p(u.mark((function e(){var n,a,o,p,l,f,v,b,g,w,j;return u.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r||Object.values(A?s:h(h({},i),c))).filter((function(t){return t.dataSource&&t.dataSource.length})),a=[],n.forEach((function(t){t.dataSource.forEach((function(t){var e=t.provider,r=t.collection,n=t.fields;e&&r&&n&&n.length?n.forEach((function(t){return a.push("".concat(e,"#").concat(r,".").concat(t))})):r&&a.push(r)}))})),a.push("well_id"),e.prev=4,l={asset_id:{$in:t}},f=a.reduce((function(t,e){return t[e]=1,t}),{asset_id:1}),v={aggregate:JSON.stringify([{$match:l},{$project:f}])},e.next=10,d("corva","well_cache",null,v);case 10:return b=e.sent,e.next=13,m(b[0].well_id,{fields:"well.last_active_at"});case 13:g=e.sent,w=Date.parse(null===(o=g.data)||void 0===o||null===(p=o.attributes)||void 0===p?void 0:p.last_active_at)/1e3,j={},b.forEach((function(t){var e=t.asset_id;j[e]=t,j[e]["corva#wits"].timestamp=w})),_(j),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(4),console.error(e.t0);case 23:y(!1);case 24:case"end":return e.stop()}}),e,null,[[4,20]])})))).apply(this,arguments)}function a(){return(a=p(u.mark((function r(){var n;return u.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"drilling"!==e){r.next=7;break}return r.next=4,b(t);case 4:r.t0=r.sent,r.next=10;break;case 7:return r.next=9,j(t);case 9:r.t0=r.sent;case 10:n=r.t0,F(n),r.next=17;break;case 14:r.prev=14,r.t1=r.catch(0),console.error(r.t1);case 17:P(!1);case 18:case"end":return r.stop()}}),r,null,[[0,14]])})))).apply(this,arguments)}y(!0),P(!0),function(){n.apply(this,arguments)}(),function(){a.apply(this,arguments)}()}),[]),[v||k,x,D]}export{_ as useWellSummaryData};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"./palette.mjs.js";var
|
|
1
|
+
import o from"./palette.mjs.js";var e=o.primary,t=o.background,i={MuiTableCell:{root:{borderBottomColor:e.text9,height:56,letterSpacing:"0.4px",lineHeight:"20px",paddingLeft:8,paddingRight:8,"&.dense":{fontSize:14,lineHeight:"14px",height:28}},stickyHeader:{backgroundColor:t.b6},head:{color:e.text7,fontSize:14,lineHeight:"14px","&.MuiTableCell-sizeSmall":{fontSize:12,height:48,lineHeight:"14px"},"&.dense":{fontSize:12,lineHeight:"12px",height:28}},body:{fontSize:16},sizeSmall:{fontSize:14,height:48,lineHeight:"20px",paddingRight:16}},MuiTableRow:{root:{"&.MuiTableRow-hover:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"},"&.Mui-selected, .MuiTableRow-root.Mui-selected:hover":{backgroundColor:"rgba(3, 188, 212, 0.2)"}},head:{borderTop:"1px solid ".concat(e.text9)}},MuiTableSortLabel:{root:{flexDirection:"row",justifyContent:"flex-end","&:hover":{color:o.primary.contrastText,"& .MuiTableSortLabel-icon":{opacity:1,color:o.primary.contrastText},"&.MuiTableSortLabel-active":{color:o.primary.contrastText,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.contrastText}}},"&.MuiTableSortLabel-active":{color:o.primary.text7,"&.MuiTableSortLabel-root.MuiTableSortLabel-active .MuiSvgIcon-root.MuiTableSortLabel-icon":{color:o.primary.text7}}},icon:{marginRight:0,color:o.primary.text7,fontSize:16}},MuiTablePagination:{toolbar:{paddingTop:10},caption:{fontSize:12},selectRoot:{marginRight:31,marginLeft:3,"& .MuiTablePagination-select":{paddingRight:31,paddingLeft:2}},input:{fontSize:12,position:"relative",top:1},selectIcon:{"&.MuiSvgIcon-root.MuiSelect-icon":{fontSize:16,top:5}},actions:{marginLeft:23,"& .MuiIconButton-root":{color:e.text6,fontSize:16,padding:7,"&:hover":{color:e.contrastText},"&.Mui-disabled":{color:e.text8}}},root:{"& .MuiSvgIcon-root":{color:"inherit",fontSize:"inherit"}}}};export default i;
|
package/package.json
CHANGED
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";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},e=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},i=function(n){return"dev_center"===n.app.platform};export{a as createDevCenterRouter,t as getAppIdentifier,e as getAppName,r as getTimestampFromQuery,o as isAppMaximized,i 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";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},e=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},i=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,e as getAppName,r as getTimestampFromQuery,o as isAppMaximized,i as isDevCenterApp};
|