1export const VALID_ACTIVE_STATUSES = ['trialing', 'active', 'past_due']; 2 3export const isPowerUser = (member) => { 4 if (!member || !member.planConnections || !Array.isArray(member.planConnections)) { 5 return false; 6 } 7 8 return member.planConnections.some( 9 connection => 10 VALID_ACTIVE_STATUSES.includes(connection?.status?.toLowerCase()) && 11 connection?.planId?.toLowerCase().includes('power-user') 12 ); 13}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.