@corva/ui 0.67.0-12 → 0.67.0-13
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/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/utils.d.ts +1 -0
- package/components/DevCenter/DevCenterAppContainer/utils.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/utils.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),s=require("prop-types"),r=require("lodash"),i=require("@material-ui/core"),o=require("@material-ui/icons"),a=require("../../../../ErrorBoundary/ErrorBoundary.js"),c=require("../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),l=require("../../../../Button/index.js"),p=require("../../../../Modal/Modal.js"),u=require("../../../../AssetEditorV2/index.js"),d=require("../../../../AppVersionsSelect/AppVersionsSelect.js"),g=require("../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),j=require("../../../../ConfirmationDialog.js"),m=require("../../../../../constants/devcenter.js");require("../../../../../constants/goals.js");var f=require("../../../../../constants/segment.js");require("../../../../../constants/alerts.js"),require("../../../../../constants/apps.js"),require("../../../../../constants/drillstring.js"),require("../../../../../constants/completion.js"),require("../../../../../constants/notifications.js"),require("../../../../../constants/feed.js"),require("../../../../../constants/bha.js"),require("../../../../../utils/env.js"),require("../../../../GradientManager/configuration/constants.js"),require("../../../../../utils/index.js");var v=require("../../../../AppIcon/AppIcon.js"),h=require("./RemoveAppButton.js"),x=require("./styles.js"),q=require("../../utils.js"),S=require("react/jsx-runtime"),A=require("../../../../../utils/notificationToasts.js");function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var y=C(e),b=C(n);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,s)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){y.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N="DC_appSettings";function O(e){var n,s,C,E=e.AppSettingsComponent,O=e.app,I=e.appData,R=e.appName,T=e.currentUser,w=e.isMultiRig,M=e.isSettingsDialogHidden,P=e.layoutEnvironment,_=e.onAppRemove,k=e.onCloneDashboard,V=e.onSettingsChange,B=e.openIntercom,H=e.segment,G=e.toggleAppSettingsDialog,L=t.useState(!1),U=b.default(L,2);U[0];var F=U[1],Y=t.useState((function(){var e;return D(D({},r.cloneDeep(O.settings)),{},{package:O.settings.package||(null==O||null===(e=O.package)||void 0===e?void 0:e.version)})})),K=b.default(Y,2),z=K[0],J=K[1],Q=q.getIsSustainabilityApp(null==O||null===(n=O.app)||void 0===n?void 0:n.id),W=t.useState(!0),X=b.default(W,2),Z=X[0],$=X[1],ee=t.useRef(null),ne=Boolean(null===(s=ee.current)||void 0===s?void 0:s.clientHeight),te=x({isCompletionApp:H===f.SEGMENTS.COMPLETION,isSustainabilityApp:Q,hasCustomAppSettings:ne}),se=O.id===m.DEV_CENTER_CLI_APP_ID,re=function(e,n){return J((function(t){return D(D({},t),{},y.default({},e,n))}))},ie=function(e){return J((function(n){return D(D({},n),e)}))},oe=P&&"asset"===P.type,ae=!(w||oe&&H===f.SEGMENTS.COMPLETION);t.useEffect((function(){r.debounce(F,200)(!0)}),[]);var ce=S.jsx("div",{ref:ee,children:E&&S.jsx(E,{app:O,appData:I,settings:z,onSettingChange:re,onSettingsChange:ie,layoutEnvironment:P,currentUser:T})}),le=S.jsxs("div",{className:te.modalTitleContainer,children:[S.jsx(v.AppIcon,{className:te.appIcon,segment:null==O?void 0:O.segment,iconUrl:null==O||null===(C=O.icon)||void 0===C?void 0:C.url,height:48,width:48}),S.jsxs("div",{children:[S.jsx("div",{children:"".concat(R," Settings")}),S.jsxs("div",{"data-testid":"".concat(N,"_appstoreLink"),className:te.appStoreButton,onClick:function(){var e,n;return window.open((n=null==O||null===(e=O.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(n)),"_top")},children:["Open in Appstore ",S.jsx(o.ArrowForward,{className:te.arrowIcon})]})]})]}),pe=S.jsxs("div",{className:te.modalActions,children:[!M&&_&&S.jsx(h.default,{appName:R,onAppRemove:_}),S.jsxs("div",{className:te.mainActions,children:[S.jsx(l,{"data-testid":"".concat(N,"_cancel"),variation:"secondary",onClick:G,children:"Cancel"}),M&&S.jsx(l,{variation:"primary",onClick:function(){return k()},children:"Copy Dashboard"}),!M&&S.jsx(l,{"data-testid":"".concat(N,"_save"),className:te.saveButton,variation:"primary",onClick:function(){z.package||se?(V(z),A.showSuccessNotification("Successfully saved"),G()):$(!1)},children:"Save"})]})]}),ue=S.jsxs(S.Fragment,{children:[ae&&S.jsx(u,{appKey:se?null:O.app.app_key,settings:z,onSettingsChange:ie,appType:f.SEGMENT_TO_ASSET_TYPE[H],isNullable:oe,label:"Asset",isHiddenTitle:!0,isHiddenMultipleAssetsToggle:!0}),S.jsx(d.default,{className:te.appVersionSelect,appId:O.app.id,value:z.package,onChange:function(e){return re("package",e)}})]});return S.jsx(p,{open:!0,onClose:G,title:le,contentContainerClassName:te.modalContainer,modalTitleClassName:te.modalTitle,closeIconClassName:te.closeIcon,contentClassName:te.modalContent,actions:pe,children:S.jsxs(a,{ErrorView:c,openIntercom:B,children:[S.jsx(j,{open:!Z&&!z.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return $(!0)}}),M&&S.jsx(g,{}),!M&&S.jsxs(S.Fragment,{children:[S.jsxs(i.Accordion,{defaultExpanded:!0,className:te.assetAccordion,children:[S.jsx(i.AccordionSummary,{classes:{content:te.summaryContent,expandIcon:te.expandIcon},expandIcon:S.jsx(o.ExpandMore,{}),children:"Asset"}),S.jsx(i.AccordionDetails,{classes:{root:te.accordionDetails},children:ue})]}),S.jsxs(i.Accordion,{className:te.accordion,defaultExpanded:!0,children:[S.jsx(i.AccordionSummary,{classes:{content:te.summaryContent,expandIcon:te.expandIcon},expandIcon:S.jsx(o.ExpandMore,{}),children:"App Settings"}),S.jsx(i.AccordionDetails,{classes:{root:te.accordionDetails},children:ce})]})]})]})})}O.propTypes={AppSettingsComponent:s.node,app:s.shape({}).isRequired,appData:s.shape({}).isRequired,appName:s.string.isRequired,currentUser:s.shape({}).isRequired,isMultiRig:s.bool.isRequired,isSettingsDialogHidden:s.bool,layoutEnvironment:s.shape({}).isRequired,onAppRemove:s.func,onCloneDashboard:s.func,onSettingsChange:s.func.isRequired,segment:s.string.isRequired,toggleAppSettingsDialog:s.func.isRequired},O.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:r.noop},exports.PAGE_NAME=N,exports.default=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("@material-ui/core").makeStyles((function(t){return{modalTitle:{background:function(t){return t.
|
|
1
|
+
"use strict";var t=require("@material-ui/core").makeStyles((function(t){return{modalTitle:{background:function(t){var n=t.isCompletionApp;return t.isSustainabilityApp?"linear-gradient(90deg, #1D5450 0%, #2AAC8A 100%)":n?"linear-gradient(270deg, #3F33A9 0%, #DA4583 98.46%)":"linear-gradient(90deg, #05B58B 1.96%, #3A83D3 101.28%)"},paddingBottom:24},modalTitleContainer:{display:"flex",alignItems:"center"},appStoreButton:{display:"flex",alignItems:"center",fontSize:13,cursor:"pointer",width:"fit-content","&:hover":{textDecoration:"underline"}},arrowIcon:{width:16,height:16,marginLeft:4},closeIcon:{color:t.palette.primary.contrastText,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08) !important"}},appVersionSelect:{marginTop:16,width:"100%"},modalActions:{width:"100%",display:"flex",justifyContent:"space-between"},saveButton:{marginLeft:16},appIcon:{marginRight:12},accordionDetails:{flexDirection:"column",paddingTop:function(t){return t.hasCustomAppSettings?12:0},paddingLeft:function(t){return t.hasCustomAppSettings?32:0}},summaryContent:{display:function(t){return t.hasCustomAppSettings?"block":"none"},fontSize:16,color:t.palette.primary.contrastText},expandIcon:{display:function(t){return t.hasCustomAppSettings?"block":"none"},"& svg":{width:24,height:24}},hiddenAppSettings:{position:"fixed",left:"-10000px",top:"-10000px"},accordion:{marginTop:function(t){return t.hasCustomAppSettings?"24px !important":"0px !important"}},modalContainer:{width:600,maxWidth:600},assetAccordion:{marginTop:function(t){return t.hasCustomAppSettings?"8px !important":"-24px !important"}}}}));module.exports=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("lodash");exports.getAppAvailability=function(i,t){return i&&t?{hasProductSubscription:i.subscription,isAppSubscribedForAsset:i.asset_subscription}:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}},exports.getAppVersion=function(t){var e,s,r
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("lodash");exports.getAppAvailability=function(i,t){return i&&t?{hasProductSubscription:i.subscription,isAppSubscribedForAsset:i.asset_subscription}:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}},exports.getAppVersion=function(t){var o,e,s,r=null===(o=i.get(t,"package.package_code_version"))||void 0===o?void 0:o.toString(),n=null===(e=i.last(null===(s=i.get(t,"package.build"))||void 0===s?void 0:s.split("-")))||void 0===e?void 0:e.toString();return r||n||"0.0.1"},exports.getIsSustainabilityApp=function(i){var t,o,e,s,r,n;return null===(t=window.parent)||void 0===t||null===(o=t.appStoreMock)||void 0===o||null===(e=o.sustainability)||void 0===e||null===(s=e.sections)||void 0===s||null===(r=s[0])||void 0===r||null===(n=r.apps)||void 0===n?void 0:n.some((function(t){return+t.id===i}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js"],"names":[],"mappings":"AAyBA,yCAA0C;;AAI1C;;;;;;;;;;;;;;;gBAuNC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as
|
|
1
|
+
import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as v,ExpandMore as h}from"@material-ui/icons";import j from"../../../../ErrorBoundary/ErrorBoundary.js";import C from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import y from"../../../../Button/index.js";import A from"../../../../Modal/Modal.js";import S from"../../../../AssetEditorV2/index.js";import b from"../../../../AppVersionsSelect/AppVersionsSelect.js";import D from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import O from"../../../../ConfirmationDialog.js";import{DEV_CENTER_CLI_APP_ID as N}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as I,SEGMENT_TO_ASSET_TYPE as E}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import{AppIcon as R}from"../../../../AppIcon/AppIcon.js";import k from"./RemoveAppButton.js";import w from"./styles.js";import{getIsSustainabilityApp as x}from"../../utils.js";import{jsx as P,jsxs as T,Fragment as M}from"react/jsx-runtime";import{showSuccessNotification as q}from"../../../../../utils/notificationToasts.js";function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function V(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var H="DC_appSettings";function _(r){var s,a,p,l=r.AppSettingsComponent,m=r.app,B=r.appData,_=r.appName,U=r.currentUser,L=r.isMultiRig,G=r.isSettingsDialogHidden,K=r.layoutEnvironment,Y=r.onAppRemove,z=r.onCloneDashboard,F=r.onSettingsChange,J=r.openIntercom,Q=r.segment,W=r.toggleAppSettingsDialog,X=n(!1),Z=t(X,2);Z[0];var $=Z[1],ee=n((function(){var e;return V(V({},c(m.settings)),{},{package:m.settings.package||(null==m||null===(e=m.package)||void 0===e?void 0:e.version)})})),te=t(ee,2),ne=te[0],oe=te[1],ie=x(null==m||null===(s=m.app)||void 0===s?void 0:s.id),re=n(!0),se=t(re,2),ae=se[0],pe=se[1],le=o(null),ce=Boolean(null===(a=le.current)||void 0===a?void 0:a.clientHeight),de=w({isCompletionApp:Q===I.COMPLETION,isSustainabilityApp:ie,hasCustomAppSettings:ce}),me=m.id===N,ue=function(t,n){return oe((function(o){return V(V({},o),{},e({},t,n))}))},ge=function(e){return oe((function(t){return V(V({},t),e)}))},fe=K&&"asset"===K.type,ve=!(L||fe&&Q===I.COMPLETION);i((function(){d($,200)(!0)}),[]);var he=P("div",{ref:le,children:l&&P(l,{app:m,appData:B,settings:ne,onSettingChange:ue,onSettingsChange:ge,layoutEnvironment:K,currentUser:U})}),je=T("div",{className:de.modalTitleContainer,children:[P(R,{className:de.appIcon,segment:null==m?void 0:m.segment,iconUrl:null==m||null===(p=m.icon)||void 0===p?void 0:p.url,height:48,width:48}),T("div",{children:[P("div",{children:"".concat(_," Settings")}),T("div",{"data-testid":"".concat(H,"_appstoreLink"),className:de.appStoreButton,onClick:function(){var e,t;return window.open((t=null==m||null===(e=m.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(t)),"_top")},children:["Open in Appstore ",P(v,{className:de.arrowIcon})]})]})]}),Ce=T("div",{className:de.modalActions,children:[!G&&Y&&P(k,{appName:_,onAppRemove:Y}),T("div",{className:de.mainActions,children:[P(y,{"data-testid":"".concat(H,"_cancel"),variation:"secondary",onClick:W,children:"Cancel"}),G&&P(y,{variation:"primary",onClick:function(){return z()},children:"Copy Dashboard"}),!G&&P(y,{"data-testid":"".concat(H,"_save"),className:de.saveButton,variation:"primary",onClick:function(){ne.package||me?(F(ne),q("Successfully saved"),W()):pe(!1)},children:"Save"})]})]}),ye=T(M,{children:[ve&&P(S,{appKey:me?null:m.app.app_key,settings:ne,onSettingsChange:ge,appType:E[Q],isNullable:fe,label:"Asset",isHiddenTitle:!0,isHiddenMultipleAssetsToggle:!0}),P(b,{className:de.appVersionSelect,appId:m.app.id,value:ne.package,onChange:function(e){return ue("package",e)}})]});return P(A,{open:!0,onClose:W,title:je,contentContainerClassName:de.modalContainer,modalTitleClassName:de.modalTitle,closeIconClassName:de.closeIcon,contentClassName:de.modalContent,actions:Ce,children:T(j,{ErrorView:C,openIntercom:J,children:[P(O,{open:!ae&&!ne.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return pe(!0)}}),G&&P(D,{}),!G&&T(M,{children:[T(u,{defaultExpanded:!0,className:de.assetAccordion,children:[P(g,{classes:{content:de.summaryContent,expandIcon:de.expandIcon},expandIcon:P(h,{}),children:"Asset"}),P(f,{classes:{root:de.accordionDetails},children:ye})]}),T(u,{className:de.accordion,defaultExpanded:!0,children:[P(g,{classes:{content:de.summaryContent,expandIcon:de.expandIcon},expandIcon:P(h,{}),children:"App Settings"}),P(f,{classes:{root:de.accordionDetails},children:he})]})]})]})})}_.propTypes={AppSettingsComponent:r,app:s({}).isRequired,appData:s({}).isRequired,appName:a.isRequired,currentUser:s({}).isRequired,isMultiRig:p.isRequired,isSettingsDialogHidden:p,layoutEnvironment:s({}).isRequired,onAppRemove:l,onCloneDashboard:l,onSettingsChange:l.isRequired,segment:a.isRequired,toggleAppSettingsDialog:l.isRequired},_.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:m};export{H as PAGE_NAME,_ as default};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js"],"names":[],"mappings":";AAEA,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/styles.js"],"names":[],"mappings":";AAEA,4WAmFI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeStyles as t}from"@material-ui/core";var n=t((function(t){return{modalTitle:{background:function(t){return t.
|
|
1
|
+
import{makeStyles as t}from"@material-ui/core";var n=t((function(t){return{modalTitle:{background:function(t){var n=t.isCompletionApp;return t.isSustainabilityApp?"linear-gradient(90deg, #1D5450 0%, #2AAC8A 100%)":n?"linear-gradient(270deg, #3F33A9 0%, #DA4583 98.46%)":"linear-gradient(90deg, #05B58B 1.96%, #3A83D3 101.28%)"},paddingBottom:24},modalTitleContainer:{display:"flex",alignItems:"center"},appStoreButton:{display:"flex",alignItems:"center",fontSize:13,cursor:"pointer",width:"fit-content","&:hover":{textDecoration:"underline"}},arrowIcon:{width:16,height:16,marginLeft:4},closeIcon:{color:t.palette.primary.contrastText,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08) !important"}},appVersionSelect:{marginTop:16,width:"100%"},modalActions:{width:"100%",display:"flex",justifyContent:"space-between"},saveButton:{marginLeft:16},appIcon:{marginRight:12},accordionDetails:{flexDirection:"column",paddingTop:function(t){return t.hasCustomAppSettings?12:0},paddingLeft:function(t){return t.hasCustomAppSettings?32:0}},summaryContent:{display:function(t){return t.hasCustomAppSettings?"block":"none"},fontSize:16,color:t.palette.primary.contrastText},expandIcon:{display:function(t){return t.hasCustomAppSettings?"block":"none"},"& svg":{width:24,height:24}},hiddenAppSettings:{position:"fixed",left:"-10000px",top:"-10000px"},accordion:{marginTop:function(t){return t.hasCustomAppSettings?"24px !important":"0px !important"}},modalContainer:{width:600,maxWidth:600},assetAccordion:{marginTop:function(t){return t.hasCustomAppSettings?"8px !important":"-24px !important"}}}}));export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/utils.js"],"names":[],"mappings":"AAEO,sEAGH;AAEG,6DAGH;AAEG,6CAQN;AAEM;;;EAYN"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/DevCenter/DevCenterAppContainer/utils.js"],"names":[],"mappings":"AAEO,sEAGH;AAEG,6DAGH;AAEG,6CAQN;AAEM;;;EAYN;AAEM,wDAGJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{get as i,last as o}from"lodash";var
|
|
1
|
+
import{get as i,last as o}from"lodash";var n=function(n){var r,t,s,u=null===(r=i(n,"package.package_code_version"))||void 0===r?void 0:r.toString(),d=null===(t=o(null===(s=i(n,"package.build"))||void 0===s?void 0:s.split("-")))||void 0===t?void 0:t.toString();return u||d||"0.0.1"},r=function(i,o){return i&&o?{hasProductSubscription:i.subscription,isAppSubscribedForAsset:i.asset_subscription}:{hasProductSubscription:!0,isAppSubscribedForAsset:!0}},t=function(i){var o,n,r,t,s,u;return null===(o=window.parent)||void 0===o||null===(n=o.appStoreMock)||void 0===n||null===(r=n.sustainability)||void 0===r||null===(t=r.sections)||void 0===t||null===(s=t[0])||void 0===s||null===(u=s.apps)||void 0===u?void 0:u.some((function(o){return+o.id===i}))};export{r as getAppAvailability,n as getAppVersion,t as getIsSustainabilityApp};
|