'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = imageSet; var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue'); var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // http://caniuse.com/#feat=css-image-set var prefixes = ['-webkit-', '']; function imageSet(property, value) { if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('image-set(') > -1) { return prefixes.map(function (prefix) { return value.replace(/image-set\(/g, prefix + 'image-set('); }); } }