"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const strategy_1 = require("./strategy");
class UserWithIdStrategy extends strategy_1.Strategy {
    constructor() {
        super('userWithId');
    }
    isEnabled(parameters, context) {
        const userIdList = parameters.userIds ? parameters.userIds.split(/\s*,\s*/) : [];
        return userIdList.includes(context.userId);
    }
}
exports.default = UserWithIdStrategy;//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/ecfbad74d93962fc8ca485d93ab9b4f3d4cb6cf8/node_modules/unleash-client/lib/strategy/user-with-id-strategy.js.map