import { s as state } from './store-d3327c94.js';

function isAdmin() {
  var _a;
  return (state === null || state === void 0 ? void 0 : state.session) && ((_a = state === null || state === void 0 ? void 0 : state.claims) === null || _a === void 0 ? void 0 : _a.admin);
}

function isInternalTeam() {
  var _a, _b;
  const internalTeam = [
    "tech",
    "marketing",
    "franchisee",
    "operations",
    "vision",
    "success",
    "mitigation",
    "finance",
    "design",
  ];
  return ((state === null || state === void 0 ? void 0 : state.session) &&
    (((_a = state === null || state === void 0 ? void 0 : state.claims) === null || _a === void 0 ? void 0 : _a.admin) || internalTeam.includes((_b = state === null || state === void 0 ? void 0 : state.claims) === null || _b === void 0 ? void 0 : _b.role)));
}

export { isInternalTeam as a, isAdmin as i };

//# sourceMappingURL=isInternalTeam-18a7b452.js.map