Condition.js 642 B

123456789101112131415161718192021
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0});
  5. const s = t("constants"),
  6. o = t("BaseNode");
  7. i.default = class extends o.default {
  8. constructor({name: t = "Condition", title: e, properties: i} = {}) {
  9. super({category: s.CONDITION, name: t, title: e, properties: i});
  10. }
  11. log(...t) {
  12. let e = this.title,
  13. i = e.match(/(<[0-9a-zA-Z_]+>)/g);
  14. if (i)
  15. for (const o of i) {
  16. var s = o.slice(1, o.length - 1);
  17. e = e.replace(o, this.properties[s] + "");
  18. }
  19. Log.trace(e, ...t);
  20. }
  21. };