function Doormat(opts) {
  _classCallCheck(this, Doormat);

  _initialiseProps.call(this);

  var bind = this.bind,
      calibrate = this.calibrate,
      classes = this.classes,
      active = this.active,
      defaults = this.defaults,
      enums = this.enums,
      errors = this.errors;

  this.options = Object.assign({}, defaults, opts);
  /**
    * Set appropriate classes for first panel and doormat element.
  */
  if (!(this.options.snapMode === enums.travel || this.options.snapMode === enums.viewport)) throw Error(errors.invalidSnap);

  if (!(this.options.mode === enums.inbound || this.options.mode === enums.outbound)) throw Error(errors.invalidMode);
  active.classList.add(classes.active);
  if (this.options.mode === enums.inbound) this.el.classList.add(classes.inbound);
  calibrate();
  bind();
}
// class enums for no class mis-match
class enums for no class mis-match
class enums for no class mis - match
function Doormat(opts) {
  _classCallCheck(this, Doormat);
  _initialiseProps.call(this);
  var bind = this.bind,
      calibrate = this.calibrate,
      classes = this.classes,
      active = this.active,
      defaults = this.defaults,
      enums = this.enums,
      errors = this.errors;
  this.options = Object.assign({}, defaults, opts);
  if (!(this.options.snapMode === enums.travel || this.options.snapMode === enums.viewport)) throw Error(errors.invalidSnap);
  if (!(this.options.mode === enums.inbound || this.options.mode === enums.outbound)) throw Error(errors.invalidMode);
  active.classList.add(classes.active);
  if (this.options.mode === enums.inbound) this.el.classList.add(classes.inbound);
  calibrate();
  bind();
}
function Doormat ( opts ) { _classCallCheck ( this , Doormat ) ; _initialiseProps . call ( this ) ; var bind = this . bind , calibrate = this . calibrate , classes = this . classes , active = this . active , defaults = this . defaults , enums = this . enums , errors = this . errors ; this . options = Object . assign ( { } , defaults , opts ) ; if ( ! ( this . options . snapMode === enums . travel || this . options . snapMode === enums . viewport ) ) throw Error ( errors . invalidSnap ) ; if ( ! ( this . options . mode === enums . inbound || this . options . mode === enums . outbound ) ) throw Error ( errors . invalidMode ) ; active . classList . add ( classes . active ) ; if ( this . options . mode === enums . inbound ) this . el . classList . add ( classes . inbound ) ; calibrate ( ) ; bind ( ) ; }
class enums for no class mis-match
class enums for no class mis - match
/**
    * Set appropriate classes for first panel and doormat element.
  */