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};
//# sourceMappingURL=utils.js.map
