"use strict";
/**
 * Matcher for ads campaign
 * Ported from https://github.com/optimizely/client-js/blob/5025fb16720e35213b822c0e673a265d24ae4bff/src/plugins/feature_campaign/matchers/campaign.js
 * @module
 */
var match = require('../match');
/**
 * @type ConditionMatcher
 */
module.exports = {
    // specify the fields needed
    fieldsNeeded: ['campaign'],
    /**
     * @param {Object} value
     * @param {Condition} cond
     * @return {Boolean}
     */
    match: function (value, cond) {
        return match.hasMatch(cond.value, cond.match, value.campaign);
    },
};
