import { Q as Query } from './datorama-akita-d2413fd0.js';
import { _ as _function } from './Option-53ef163a.js';
import { a as fold } from './index-6869168f.js';
import { c as benefitsAppStore } from './api-client-a68152b8.js';

class BenefitsAppQuery extends Query {
  constructor(store) {
    super(store);
    this.store = store;
    this.signedInUser$ = this.select((state) => state.user);
    this.signedInUserRole$ = this.select((state) => _function.pipe(state.user, fold(() => 'user', (v) => v.benefitsProfile.role)));
  }
}
const benefitsAppQuery = new BenefitsAppQuery(benefitsAppStore);

export { benefitsAppQuery as b };
