"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Feature_1 = require("./Feature");
class MemberPortalFeature extends Feature_1.Feature {
    constructor() {
        super('MemberPortalFeature');
        // If this option is enabled, we'll force users to sign up to the member portal before showing member prices.
        // This will require them to set a password and verify their email before proceeding to checkout.
        this.useMemberPortalForMemberPricing = false;
    }
    shouldUseMemberPortalForMemberPricing() {
        return this.useMemberPortalForMemberPricing;
    }
    onLoad(options) {
        if ((options === null || options === void 0 ? void 0 : options.useMemberPortalForMemberPricing) !== undefined) {
            this.useMemberPortalForMemberPricing = options.useMemberPortalForMemberPricing;
        }
    }
}
exports.default = new MemberPortalFeature();
//# sourceMappingURL=MemberPortalFeature.js.map