d3f6f1f0b5e649484e9c65298d510d3d73099e6d6643a27fb1bf19071431d14d573cbef346e3d601a6082b229025e1f427cba3df0c75a47e70ea2e5a2854ec 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var Declaration = require('../declaration');
  6. var utils = require('../utils');
  7. var BackdropFilter = /*#__PURE__*/function (_Declaration) {
  8. _inheritsLoose(BackdropFilter, _Declaration);
  9. function BackdropFilter(name, prefixes, all) {
  10. var _this;
  11. _this = _Declaration.call(this, name, prefixes, all) || this;
  12. if (_this.prefixes) {
  13. _this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
  14. return i === '-ms-' ? '-webkit-' : i;
  15. }));
  16. }
  17. return _this;
  18. }
  19. return BackdropFilter;
  20. }(Declaration);
  21. _defineProperty(BackdropFilter, "names", ['backdrop-filter']);
  22. module.exports = BackdropFilter;