var Wick = Wick || {};

Wick.Loader = class {
  HIDDEN_CLASS_NAME = 'd-none';

  constructor(parentSelector){
    this.loaderElement = $(`${parentSelector} > .loader-wrapper`);
  }

  showLoader() {
    this.loaderElement.removeClass(this.HIDDEN_CLASS_NAME);
  }

  hideLoader() {
    this.loaderElement.addClass(this.HIDDEN_CLASS_NAME);
  }
}
