function a(r){const t=r.licensing;return!t||typeof t!="object"?null:t}function i(r,t){const e=a(r);if(e!=null&&e.featureStates&&Object.prototype.hasOwnProperty.call(e.featureStates,t))return!!e.featureStates[t];const n=o(r,t);return n?(n.tier??"free").toLowerCase()==="free":!1}function o(r,t){var n;const e=a(r);return((n=e==null?void 0:e.catalog)==null?void 0:n.find(u=>u.id===t))??null}function s(r,t){var n;const e=(n=o(r,t))==null?void 0:n.tier;return e==="starter"?"Starter":e==="pro"?"Growth":e==="scale"?"Scale":"Growth"}function f(r,t,e){return r?e&&t===null?"pending-addon":t===!0?"full":"addon-off":"locked-plan"}export{o as a,s as b,a as g,i,f as r};
