// Generated by CoffeeScript 2.3.2
(function() {
  var ConfigNode, Suggest;

  ({ConfigNode} = require("@l.degener/irma-config"));

  module.exports = Suggest = class Suggest extends ConfigNode {
    init() {
      var ref;
      if (this.field == null) {
        this.field = this._options.field;
      }
      if (typeof this.field !== "string") {
        throw new Error("You *must* give me a field to work on.");
      }
      return this.name != null ? this.name : this.name = (ref = this._options.name) != null ? ref : this.field;
    }

    build(query) {
      return void 0; //overwrite this with your own semantics
    }

    transform(data) {
      return data;
    }

  };

}).call(this);
