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