@babsey/code-graph 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import Y from "mustache";
2
2
  import Ye from "toposort";
3
- import { AbstractNode as Ke, sortTopologically as qe, NodeInterface as Je, displayInSidebar as Ne, NodeInterfaceType as H, BaklavaInterfaceTypes as Qe, CheckboxInterfaceComponent as Ze, setType as T, IntegerInterfaceComponent as et, TextInputInterfaceComponent as Me, NumberInterfaceComponent as tt, SelectInterfaceComponent as st, SliderInterfaceComponent as nt, TextareaInputInterfaceComponent as ot, allowMultipleConnections as A, IntegerInterface as at, TextInputInterface as it, getGraphNodeTypeString as rt, GraphInputNode as dt, GraphOutputNode as lt, Commands as Z, useViewModel as K, useTemporaryConnection as ut, Components as Ce, useGraph as ae, GRAPH_NODE_TYPE_PREFIX as se, useTransform as ct, useNodeCategories as pt, BaklavaEditor as ht, useBaklava as mt, DependencyEngine as vt } from "baklavajs";
4
- import { reactive as q, defineComponent as R, createElementBlock as d, openBlock as i, toDisplayString as j, markRaw as B, computed as b, createElementVNode as l, withDirectives as ee, vModelText as te, ref as V, onMounted as ie, onUpdated as $e, normalizeClass as P, createCommentVNode as x, unref as k, renderSlot as X, createStaticVNode as J, onBeforeUnmount as ft, normalizeStyle as re, withModifiers as F, createBlock as E, Fragment as S, createTextVNode as gt, createVNode as z, withKeys as ne, renderList as D, nextTick as bt, toRef as Oe, resolveDynamicComponent as ke, inject as _t, Transition as yt, withCtx as W, onUnmounted as Ct, normalizeProps as kt, guardReactiveProps as wt, mergeProps as It } from "vue";
3
+ import { AbstractNode as Ke, sortTopologically as qe, NodeInterface as Je, displayInSidebar as xe, NodeInterfaceType as H, BaklavaInterfaceTypes as Qe, CheckboxInterfaceComponent as Ze, setType as T, IntegerInterfaceComponent as et, TextInputInterfaceComponent as Me, NumberInterfaceComponent as tt, SelectInterfaceComponent as st, SliderInterfaceComponent as nt, TextareaInputInterfaceComponent as ot, allowMultipleConnections as A, IntegerInterface as at, TextInputInterface as it, getGraphNodeTypeString as rt, GraphInputNode as dt, GraphOutputNode as lt, Commands as Z, useViewModel as K, useTemporaryConnection as ut, Components as Ce, useGraph as ae, GRAPH_NODE_TYPE_PREFIX as se, useTransform as ct, useNodeCategories as pt, BaklavaEditor as ht, useBaklava as mt, DependencyEngine as vt, DEFAULT_TOOLBAR_COMMANDS as ft } from "baklavajs";
4
+ import { reactive as q, defineComponent as R, createElementBlock as d, openBlock as i, toDisplayString as j, markRaw as B, computed as b, createElementVNode as l, withDirectives as ee, vModelText as te, ref as V, onMounted as ie, onUpdated as Oe, normalizeClass as P, createCommentVNode as N, unref as k, renderSlot as X, createStaticVNode as J, onBeforeUnmount as gt, normalizeStyle as re, withModifiers as F, createBlock as E, Fragment as S, createTextVNode as bt, createVNode as z, withKeys as ne, renderList as D, nextTick as _t, toRef as $e, resolveDynamicComponent as ke, inject as yt, Transition as Ct, withCtx as W, onUnmounted as kt, normalizeProps as wt, guardReactiveProps as It, mergeProps as Nt } from "vue";
5
5
  import { v4 as Te } from "uuid";
6
6
  import { usePointer as xt } from "@vueuse/core";
7
7
  Y.escape = (s) => s;
@@ -24,7 +24,7 @@ class Ee extends Ke {
24
24
  script: "",
25
25
  variableName: "x"
26
26
  }), this.codeTemplate = function() {
27
- return `${this.name}(${Nt(this.codeNodeInputs).join(", ")})`;
27
+ return `${this.name}(${Mt(this.codeNodeInputs).join(", ")})`;
28
28
  };
29
29
  }
30
30
  get codeNodeInputs() {
@@ -190,7 +190,7 @@ class Se extends Ee {
190
190
  }
191
191
  save() {
192
192
  const e = super.save();
193
- return Mt(this.graph, e), e;
193
+ return Ot(this.graph, e), e;
194
194
  }
195
195
  updateModules(e) {
196
196
  if (e)
@@ -201,7 +201,7 @@ class Se extends Ee {
201
201
  }
202
202
  }
203
203
  }
204
- const Nt = (s, e = !0) => {
204
+ const Mt = (s, e = !0) => {
205
205
  const t = [], n = Object.keys(s);
206
206
  return n.forEach((o) => {
207
207
  if (s[o]?.hidden) return;
@@ -218,7 +218,7 @@ const Nt = (s, e = !0) => {
218
218
  }), Object.entries(e.outputs).forEach(([o, a]) => {
219
219
  o !== "_code" && n.outputs[o] && (n.outputs[o].hidden = a.hidden);
220
220
  });
221
- }, Mt = (s, e) => {
221
+ }, Ot = (s, e) => {
222
222
  if (!s) return;
223
223
  const t = s.findNodeById(e.id);
224
224
  if (!t || t.subgraph) return;
@@ -239,7 +239,7 @@ const Nt = (s, e = !0) => {
239
239
  }, j(s.intf.name), 9, $t));
240
240
  }
241
241
  });
242
- class L extends Je {
242
+ class G extends Je {
243
243
  isCodeNode = !0;
244
244
  code;
245
245
  state;
@@ -268,9 +268,9 @@ class L extends Je {
268
268
  return this.state.optional = e, this.setHidden(e), this;
269
269
  }
270
270
  }
271
- class Q extends L {
271
+ class Q extends G {
272
272
  constructor(e = "", t) {
273
- super(e, t), this.setComponent(B(de)), this.use(Ne, !0);
273
+ super(e, t), this.setComponent(B(de)), this.use(xe, !0);
274
274
  }
275
275
  set script(e) {
276
276
  if (this.state.script && this.allowMultipleConnections) {
@@ -286,8 +286,8 @@ class Q extends L {
286
286
  super.value = e, this.name !== "_code" && this.setHidden(!1);
287
287
  }
288
288
  }
289
- const Ve = new H("boolean"), Ot = new H("dict"), ze = new H("list"), U = new H("node"), le = new H("number"), ue = new H("string"), je = new H("tuple"), In = (s) => {
290
- new Qe(s.editor, { viewPlugin: s }).addTypes(Ve, Ot, ze, U, le, ue, je);
289
+ const Ve = new H("boolean"), Tt = new H("dict"), ze = new H("list"), U = new H("node"), le = new H("number"), ue = new H("string"), je = new H("tuple"), Nn = (s) => {
290
+ new Qe(s.editor, { viewPlugin: s }).addTypes(Ve, Tt, ze, U, le, ue, je);
291
291
  };
292
292
  class xn extends Q {
293
293
  constructor(e, t) {
@@ -295,7 +295,7 @@ class xn extends Q {
295
295
  }
296
296
  getValue = () => this.value ? "True" : "False";
297
297
  }
298
- class Ge extends L {
298
+ class Le extends G {
299
299
  isCodeNodeOutput = !0;
300
300
  constructor(e = "", t = "") {
301
301
  super(e, t), this.setComponent(B(de));
@@ -314,13 +314,13 @@ class ce extends Q {
314
314
  return (this.min === void 0 || e >= this.min) && (this.max === void 0 || e <= this.max);
315
315
  }
316
316
  }
317
- class Nn extends ce {
317
+ class Mn extends ce {
318
318
  component = B(et);
319
319
  validate(e) {
320
320
  return Number.isInteger(e) && super.validate(e);
321
321
  }
322
322
  }
323
- class Mn extends Q {
323
+ class On extends Q {
324
324
  constructor(e = "", t = "") {
325
325
  super(e, t), this.setComponent(B(Me)), this.use(T, ze);
326
326
  }
@@ -335,14 +335,14 @@ class pe extends Q {
335
335
  }
336
336
  getValue = () => `"${this.value}"`;
337
337
  }
338
- class On extends pe {
338
+ class Tn extends pe {
339
339
  component = B(st);
340
340
  items;
341
341
  constructor(e, t, n) {
342
342
  super(e, t), this.items = n;
343
343
  }
344
344
  }
345
- class Tn extends ce {
345
+ class En extends ce {
346
346
  component = B(nt);
347
347
  min;
348
348
  max;
@@ -351,7 +351,7 @@ class Tn extends ce {
351
351
  }
352
352
  getValue = () => `${Math.round(this.value * 1e3) / 1e3}`;
353
353
  }
354
- const Tt = R({
354
+ const Et = R({
355
355
  props: {
356
356
  intf: {
357
357
  type: Object,
@@ -371,40 +371,40 @@ const Tt = R({
371
371
  }
372
372
  }) };
373
373
  }
374
- }), $ = (s, e) => {
374
+ }), O = (s, e) => {
375
375
  const t = s.__vccOpts || s;
376
376
  for (const [n, o] of e)
377
377
  t[n] = o;
378
378
  return t;
379
- }, Et = { style: { position: "relative" } }, St = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Bt = ["placeholder", "title"];
380
- function Vt(s, e, t, n, o, a) {
381
- return i(), d("div", Et, [
382
- l("label", St, j(s.intf.name), 1),
379
+ }, St = { style: { position: "relative" } }, Bt = { style: { "font-size": "12px", padding: "0 6px", position: "absolute", top: "-8px", "background-color": "var(--baklava-node-color-background)" } }, Vt = ["placeholder", "title"];
380
+ function zt(s, e, t, n, o, a) {
381
+ return i(), d("div", St, [
382
+ l("label", Bt, j(s.intf.name), 1),
383
383
  ee(l("input", {
384
384
  "onUpdate:modelValue": e[0] || (e[0] = (r) => s.v = r),
385
385
  type: "text",
386
386
  class: "baklava-input",
387
387
  placeholder: s.intf.name,
388
388
  title: s.intf.name
389
- }, null, 8, Bt), [
389
+ }, null, 8, Vt), [
390
390
  [te, s.v]
391
391
  ])
392
392
  ]);
393
393
  }
394
- const zt = /* @__PURE__ */ $(Tt, [["render", Vt]]);
395
- class En extends pe {
396
- component = B(zt);
397
- }
394
+ const jt = /* @__PURE__ */ O(Et, [["render", zt]]);
398
395
  class Sn extends pe {
396
+ component = B(jt);
397
+ }
398
+ class Bn extends pe {
399
399
  component = B(ot);
400
400
  }
401
- class Bn extends Q {
401
+ class Vn extends Q {
402
402
  constructor(e = "", t = "") {
403
403
  super(e, t), this.setComponent(B(Me)), this.use(T, je);
404
404
  }
405
405
  getValue = () => `(${this.value})`;
406
406
  }
407
- function Vn(s) {
407
+ function zn(s) {
408
408
  return class extends Se {
409
409
  type = s.type;
410
410
  inputs = {};
@@ -412,10 +412,10 @@ function Vn(s) {
412
412
  constructor() {
413
413
  super(), this._title = s.title ?? s.type, this.executeFactory("input", s.inputs), this.executeFactory("output", s.outputs), s.onCreate?.call(this), this.name = s.name ?? s.type, this.updateModules(s.modules), s.variableName != null && (this.state.variableName = s.variableName), s.codeTemplate && (this.codeTemplate = s.codeTemplate), this.addInput(
414
414
  "_code",
415
- new L("", []).use(T, U).use(A).setHidden(!0)
415
+ new G("", []).use(T, U).use(A).setHidden(!0)
416
416
  ), this.addOutput(
417
417
  "_code",
418
- new L("", []).use(T, U).use(A).setHidden(!0)
418
+ new G("", []).use(T, U).use(A).setHidden(!0)
419
419
  );
420
420
  }
421
421
  onPlaced() {
@@ -441,7 +441,7 @@ function Vn(s) {
441
441
  }
442
442
  };
443
443
  }
444
- class jt extends Se {
444
+ class Lt extends Se {
445
445
  /**
446
446
  * The default implementation does nothing.
447
447
  * Overwrite this method to do calculation.
@@ -451,8 +451,8 @@ class jt extends Se {
451
451
  */
452
452
  calculate;
453
453
  }
454
- function zn(s) {
455
- return class extends jt {
454
+ function jn(s) {
455
+ return class extends Lt {
456
456
  type = s.type;
457
457
  inputs = {};
458
458
  outputs = {};
@@ -462,10 +462,10 @@ function zn(s) {
462
462
  constructor() {
463
463
  super(), this._title = s.title ?? s.type, this.executeFactory("input", s.inputs), this.executeFactory("output", s.outputs), s.onCreate?.call(this), this.name = s.name ?? s.type, this.updateModules(s.modules), s.codeTemplate && (this.codeTemplate = s.codeTemplate), s.variableName && (this.state.variableName = s.variableName), this.addInput(
464
464
  "_code",
465
- new L("", []).use(T, U).use(A).setHidden(!0)
465
+ new G("", []).use(T, U).use(A).setHidden(!0)
466
466
  ), this.addOutput(
467
467
  "_code",
468
- new L("", []).use(T, U).use(A).setHidden(!0)
468
+ new G("", []).use(T, U).use(A).setHidden(!0)
469
469
  ), this.staticInputKeys.push("_code"), this.staticOutputKeys.push("_code");
470
470
  }
471
471
  onPlaced() {
@@ -497,14 +497,14 @@ function zn(s) {
497
497
  if (!this.inputs[t]) {
498
498
  const n = e.inputs[t].value;
499
499
  let o;
500
- typeof n == "number" ? o = new at(t, n).use(T, le) : o = new it(t, JSON.stringify(n)).use(T, ue), o.use(Ne, !0), this.addInput(t, o);
500
+ typeof n == "number" ? o = new at(t, n).use(T, le) : o = new it(t, JSON.stringify(n)).use(T, ue), o.use(xe, !0), this.addInput(t, o);
501
501
  }
502
502
  this.inputs[t] && (this.inputs[t].load(e.inputs[t]), this.inputs[t].nodeId = this.id);
503
503
  }
504
504
  for (const t of Object.keys(e.outputs))
505
505
  if (!this.staticOutputKeys.includes(t)) {
506
506
  if (!this.outputs[t]) {
507
- const n = new Ge(t);
507
+ const n = new Le(t);
508
508
  this.addOutput(t, n);
509
509
  }
510
510
  this.outputs[t] && (this.outputs[t].load(e.outputs[t]), this.outputs[t].nodeId = this.id);
@@ -544,7 +544,7 @@ function zn(s) {
544
544
  }
545
545
  };
546
546
  }
547
- const jn = "__baklava_GraphNode-", Gt = [
547
+ const Ln = "__baklava_GraphNode-", Gt = [
548
548
  "component",
549
549
  "connectionCount",
550
550
  "events",
@@ -559,7 +559,7 @@ const jn = "__baklava_GraphNode-", Gt = [
559
559
  "templateId",
560
560
  "value"
561
561
  ];
562
- function Lt(s) {
562
+ function Rt(s) {
563
563
  return class extends Ee {
564
564
  type = rt(s);
565
565
  get title() {
@@ -652,13 +652,13 @@ function Lt(s) {
652
652
  this.subgraph.outputs.some((n) => n.id === t) || this.removeOutput(t);
653
653
  this.addInput(
654
654
  "_code",
655
- new L("", []).use(T, U).use(A).setHidden(!0)
655
+ new G("", []).use(T, U).use(A).setHidden(!0)
656
656
  ), this.addOutput(
657
657
  "_code",
658
- new L("", []).use(T, U).use(A).setHidden(!0)
658
+ new G("", []).use(T, U).use(A).setHidden(!0)
659
659
  ), this.addOutput(
660
660
  "_calculationResults",
661
- new Ge("_calculationResults", void 0).setHidden(!0)
661
+ new Le("_calculationResults", void 0).setHidden(!0)
662
662
  );
663
663
  }
664
664
  /**
@@ -667,7 +667,7 @@ function Lt(s) {
667
667
  * These properties should be proxied to the subgraph interface, so they behave the same as the original interface.
668
668
  */
669
669
  createProxyInterface(t, n) {
670
- const o = new L(t.name, void 0);
670
+ const o = new G(t.name, void 0);
671
671
  return new Proxy(o, {
672
672
  get: (a, r) => {
673
673
  if (Gt.includes(r) || r in a || typeof r == "string" && r.startsWith("__v_"))
@@ -687,7 +687,7 @@ function Lt(s) {
687
687
  };
688
688
  }
689
689
  Y.escape = (s) => s;
690
- class Rt {
690
+ class Pt {
691
691
  _id;
692
692
  _viewModel;
693
693
  _state;
@@ -744,7 +744,7 @@ class Rt {
744
744
  return this.state.script;
745
745
  }
746
746
  set script(e) {
747
- this.state.script = e, this.viewModel.engine && this.viewModel.engine.runOnce(void 0);
747
+ this.state.script = e;
748
748
  }
749
749
  get scriptedCodeNodes() {
750
750
  return oe(this.graph).filter(
@@ -791,7 +791,7 @@ class Rt {
791
791
  * Clear code graph.
792
792
  */
793
793
  clear() {
794
- this.viewModel.commandHandler.executeCommand(Z.CLEAR_CLIPBOARD_COMMAND), this.viewModel.commandHandler.executeCommand(Z.CLEAR_HISTORY_COMMAND), this.state.modules = {}, this.nodes = [], this.connections = [], this.script = "";
794
+ this.viewModel.commandHandler.executeCommand(Z.CLEAR_CLIPBOARD_COMMAND), this.viewModel.commandHandler.executeCommand(Z.CLEAR_HISTORY_COMMAND), this.state.modules = {}, this.nodes = [], this.connections = [], this.state.script = "";
795
795
  }
796
796
  /**
797
797
  * Find node by ID.
@@ -918,13 +918,13 @@ const oe = (s) => {
918
918
  return s.nodes.length === 0 || s.nodes.forEach((t) => {
919
919
  t && (t.hasOwnProperty("subgraph") ? e.push(...oe(t.subgraph)) : t.hasOwnProperty("isCodeNode") && e.push(t));
920
920
  }), e;
921
- }, Ln = (s = 0, e = 100) => ({
921
+ }, Rn = (s = 0, e = 100) => ({
922
922
  x: s * 420,
923
923
  y: e
924
- }), Rn = (s) => {
924
+ }), Pn = (s) => {
925
925
  const e = { ...s.position };
926
926
  return e.x -= 440, e.y += 50, e;
927
- }, Pt = ["id"], Ut = { class: "align-middle" }, we = /* @__PURE__ */ R({
927
+ }, Ut = ["id"], Ht = { class: "align-middle" }, we = /* @__PURE__ */ R({
928
928
  __name: "CodeGraphNodeInterface",
929
929
  props: {
930
930
  node: {},
@@ -940,7 +940,7 @@ const oe = (s) => {
940
940
  }, g = () => {
941
941
  a.value && t.value.hooks.renderInterface.execute({ intf: e.intf, el: a.value });
942
942
  };
943
- return ie(g), $e(g), (I, G) => (i(), d("div", {
943
+ return ie(g), Oe(g), (I, L) => (i(), d("div", {
944
944
  id: s.intf.id,
945
945
  ref_key: "el",
946
946
  ref: a,
@@ -951,13 +951,13 @@ const oe = (s) => {
951
951
  class: P(["__port", { "--selected": k(o)?.from === s.intf }]),
952
952
  onPointerover: p,
953
953
  onPointerout: _
954
- }, null, 34)) : x("", !0),
955
- l("span", Ut, [
954
+ }, null, 34)) : N("", !0),
955
+ l("span", Ht, [
956
956
  X(I.$slots, "default")
957
957
  ])
958
- ], 10, Pt));
958
+ ], 10, Ut));
959
959
  }
960
- }), Ht = {}, At = {
960
+ }), At = {}, Dt = {
961
961
  xmlns: "http://www.w3.org/2000/svg",
962
962
  width: "24",
963
963
  height: "24",
@@ -969,8 +969,8 @@ const oe = (s) => {
969
969
  "stroke-linejoin": "round",
970
970
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-code-variable"
971
971
  };
972
- function Dt(s, e) {
973
- return i(), d("svg", At, [...e[0] || (e[0] = [
972
+ function Ft(s, e) {
973
+ return i(), d("svg", Dt, [...e[0] || (e[0] = [
974
974
  l("path", {
975
975
  stroke: "none",
976
976
  d: "M0 0h24v24H0z",
@@ -979,7 +979,7 @@ function Dt(s, e) {
979
979
  l("path", { d: "M4 8m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, null, -1)
980
980
  ])]);
981
981
  }
982
- const Ft = /* @__PURE__ */ $(Ht, [["render", Dt]]), Wt = {}, Xt = {
982
+ const Wt = /* @__PURE__ */ O(At, [["render", Ft]]), Xt = {}, Yt = {
983
983
  xmlns: "http://www.w3.org/2000/svg",
984
984
  width: "24",
985
985
  height: "24",
@@ -991,8 +991,8 @@ const Ft = /* @__PURE__ */ $(Ht, [["render", Dt]]), Wt = {}, Xt = {
991
991
  "stroke-linejoin": "round",
992
992
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-dots-vertical"
993
993
  };
994
- function Yt(s, e) {
995
- return i(), d("svg", Xt, [...e[0] || (e[0] = [
994
+ function Kt(s, e) {
995
+ return i(), d("svg", Yt, [...e[0] || (e[0] = [
996
996
  l("path", {
997
997
  stroke: "none",
998
998
  d: "M0 0h24v24H0z",
@@ -1003,7 +1003,7 @@ function Yt(s, e) {
1003
1003
  l("path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
1004
1004
  ])]);
1005
1005
  }
1006
- const Kt = /* @__PURE__ */ $(Wt, [["render", Yt]]), qt = {}, Jt = {
1006
+ const qt = /* @__PURE__ */ O(Xt, [["render", Kt]]), Jt = {}, Qt = {
1007
1007
  xmlns: "http://www.w3.org/2000/svg",
1008
1008
  width: "24",
1009
1009
  height: "24",
@@ -1011,8 +1011,8 @@ const Kt = /* @__PURE__ */ $(Wt, [["render", Yt]]), qt = {}, Jt = {
1011
1011
  fill: "currentColor",
1012
1012
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-collapse"
1013
1013
  };
1014
- function Qt(s, e) {
1015
- return i(), d("svg", Jt, [...e[0] || (e[0] = [
1014
+ function Zt(s, e) {
1015
+ return i(), d("svg", Qt, [...e[0] || (e[0] = [
1016
1016
  l("path", {
1017
1017
  stroke: "none",
1018
1018
  d: "M0 0h24v24H0z",
@@ -1021,7 +1021,7 @@ function Qt(s, e) {
1021
1021
  l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
1022
1022
  ])]);
1023
1023
  }
1024
- const Zt = /* @__PURE__ */ $(qt, [["render", Qt]]), es = {}, ts = {
1024
+ const es = /* @__PURE__ */ O(Jt, [["render", Zt]]), ts = {}, ss = {
1025
1025
  xmlns: "http://www.w3.org/2000/svg",
1026
1026
  width: "24",
1027
1027
  height: "24",
@@ -1029,8 +1029,8 @@ const Zt = /* @__PURE__ */ $(qt, [["render", Qt]]), es = {}, ts = {
1029
1029
  fill: "currentColor",
1030
1030
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-left-expand"
1031
1031
  };
1032
- function ss(s, e) {
1033
- return i(), d("svg", ts, [...e[0] || (e[0] = [
1032
+ function ns(s, e) {
1033
+ return i(), d("svg", ss, [...e[0] || (e[0] = [
1034
1034
  l("path", {
1035
1035
  stroke: "none",
1036
1036
  d: "M0 0h24v24H0z",
@@ -1039,7 +1039,7 @@ function ss(s, e) {
1039
1039
  l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-4.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
1040
1040
  ])]);
1041
1041
  }
1042
- const ns = /* @__PURE__ */ $(es, [["render", ss]]), os = {}, as = {
1042
+ const os = /* @__PURE__ */ O(ts, [["render", ns]]), as = {}, is = {
1043
1043
  xmlns: "http://www.w3.org/2000/svg",
1044
1044
  width: "24",
1045
1045
  height: "24",
@@ -1047,8 +1047,8 @@ const ns = /* @__PURE__ */ $(es, [["render", ss]]), os = {}, as = {
1047
1047
  fill: "currentColor",
1048
1048
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right"
1049
1049
  };
1050
- function is(s, e) {
1051
- return i(), d("svg", as, [...e[0] || (e[0] = [
1050
+ function rs(s, e) {
1051
+ return i(), d("svg", is, [...e[0] || (e[0] = [
1052
1052
  l("path", {
1053
1053
  stroke: "none",
1054
1054
  d: "M0 0h24v24H0z",
@@ -1057,7 +1057,7 @@ function is(s, e) {
1057
1057
  l("path", { d: "M6 21a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3zm8 -16h-8a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h8z" }, null, -1)
1058
1058
  ])]);
1059
1059
  }
1060
- const rs = /* @__PURE__ */ $(os, [["render", is]]), ds = {}, ls = {
1060
+ const ds = /* @__PURE__ */ O(as, [["render", rs]]), ls = {}, us = {
1061
1061
  xmlns: "http://www.w3.org/2000/svg",
1062
1062
  width: "24",
1063
1063
  height: "24",
@@ -1065,8 +1065,8 @@ const rs = /* @__PURE__ */ $(os, [["render", is]]), ds = {}, ls = {
1065
1065
  fill: "currentColor",
1066
1066
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-collapse"
1067
1067
  };
1068
- function us(s, e) {
1069
- return i(), d("svg", ls, [...e[0] || (e[0] = [
1068
+ function cs(s, e) {
1069
+ return i(), d("svg", us, [...e[0] || (e[0] = [
1070
1070
  l("path", {
1071
1071
  stroke: "none",
1072
1072
  d: "M0 0h24v24H0z",
@@ -1075,7 +1075,7 @@ function us(s, e) {
1075
1075
  l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-5.387 4.21l.094 .083l2 2a1 1 0 0 1 .083 1.32l-.083 .094l-2 2a1 1 0 0 1 -1.497 -1.32l.083 -.094l1.292 -1.293l-1.292 -1.293a1 1 0 0 1 -.083 -1.32l.083 -.094a1 1 0 0 1 1.32 -.083z" }, null, -1)
1076
1076
  ])]);
1077
1077
  }
1078
- const cs = /* @__PURE__ */ $(ds, [["render", us]]), ps = {}, hs = {
1078
+ const ps = /* @__PURE__ */ O(ls, [["render", cs]]), hs = {}, ms = {
1079
1079
  xmlns: "http://www.w3.org/2000/svg",
1080
1080
  width: "24",
1081
1081
  height: "24",
@@ -1083,8 +1083,8 @@ const cs = /* @__PURE__ */ $(ds, [["render", us]]), ps = {}, hs = {
1083
1083
  fill: "currentColor",
1084
1084
  class: "baklava-icon icon icon-tabler icons-tabler-filled icon-tabler-layout-sidebar-right-expand"
1085
1085
  };
1086
- function ms(s, e) {
1087
- return i(), d("svg", hs, [...e[0] || (e[0] = [
1086
+ function vs(s, e) {
1087
+ return i(), d("svg", ms, [...e[0] || (e[0] = [
1088
1088
  l("path", {
1089
1089
  stroke: "none",
1090
1090
  d: "M0 0h24v24H0z",
@@ -1093,7 +1093,7 @@ function ms(s, e) {
1093
1093
  l("path", { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 2h-9a1 1 0 0 0 -.993 .883l-.007 .117v12a1 1 0 0 0 .883 .993l.117 .007h9v-14zm-3.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, null, -1)
1094
1094
  ])]);
1095
1095
  }
1096
- const vs = /* @__PURE__ */ $(ps, [["render", ms]]), fs = {}, gs = {
1096
+ const fs = /* @__PURE__ */ O(hs, [["render", vs]]), gs = {}, bs = {
1097
1097
  xmlns: "http://www.w3.org/2000/svg",
1098
1098
  width: "24",
1099
1099
  height: "24",
@@ -1105,12 +1105,12 @@ const vs = /* @__PURE__ */ $(ps, [["render", ms]]), fs = {}, gs = {
1105
1105
  "stroke-linejoin": "round",
1106
1106
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-lock-code"
1107
1107
  };
1108
- function bs(s, e) {
1109
- return i(), d("svg", gs, [...e[0] || (e[0] = [
1108
+ function _s(s, e) {
1109
+ return i(), d("svg", bs, [...e[0] || (e[0] = [
1110
1110
  J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2"></path><path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"></path><path d="M8 11v-4a4 4 0 1 1 8 0v4"></path><path d="M20 21l2 -2l-2 -2"></path><path d="M17 17l-2 2l2 2"></path>', 6)
1111
1111
  ])]);
1112
1112
  }
1113
- const _s = /* @__PURE__ */ $(fs, [["render", bs]]), ys = {}, Cs = {
1113
+ const ys = /* @__PURE__ */ O(gs, [["render", _s]]), Cs = {}, ks = {
1114
1114
  xmlns: "http://www.w3.org/2000/svg",
1115
1115
  width: "24",
1116
1116
  height: "24",
@@ -1122,12 +1122,12 @@ const _s = /* @__PURE__ */ $(fs, [["render", bs]]), ys = {}, Cs = {
1122
1122
  "stroke-linejoin": "round",
1123
1123
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema"
1124
1124
  };
1125
- function ks(s, e) {
1126
- return i(), d("svg", Cs, [...e[0] || (e[0] = [
1125
+ function ws(s, e) {
1126
+ return i(), d("svg", ks, [...e[0] || (e[0] = [
1127
1127
  J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 2h5v4h-5z"></path><path d="M15 10h5v4h-5z"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h5"></path><path d="M7.5 6v4"></path><path d="M7.5 14v4"></path>', 8)
1128
1128
  ])]);
1129
1129
  }
1130
- const ws = /* @__PURE__ */ $(ys, [["render", ks]]), Is = {}, xs = {
1130
+ const Is = /* @__PURE__ */ O(Cs, [["render", ws]]), Ns = {}, xs = {
1131
1131
  xmlns: "http://www.w3.org/2000/svg",
1132
1132
  width: "24",
1133
1133
  height: "24",
@@ -1139,12 +1139,12 @@ const ws = /* @__PURE__ */ $(ys, [["render", ks]]), Is = {}, xs = {
1139
1139
  "stroke-linejoin": "round",
1140
1140
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-schema-off"
1141
1141
  };
1142
- function Ns(s, e) {
1142
+ function Ms(s, e) {
1143
1143
  return i(), d("svg", xs, [...e[0] || (e[0] = [
1144
1144
  J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 2h4v4m-4 0h-1v-1"></path><path d="M15 11v-1h5v4h-2"></path><path d="M5 18h5v4h-5z"></path><path d="M5 10h5v4h-5z"></path><path d="M10 12h2"></path><path d="M7.5 7.5v2.5"></path><path d="M7.5 14v4"></path><path d="M3 3l18 18"></path>', 9)
1145
1145
  ])]);
1146
1146
  }
1147
- const Ms = /* @__PURE__ */ $(Is, [["render", Ns]]), $s = {}, Os = {
1147
+ const Os = /* @__PURE__ */ O(Ns, [["render", Ms]]), $s = {}, Ts = {
1148
1148
  xmlns: "http://www.w3.org/2000/svg",
1149
1149
  width: "24",
1150
1150
  height: "24",
@@ -1156,12 +1156,12 @@ const Ms = /* @__PURE__ */ $(Is, [["render", Ns]]), $s = {}, Os = {
1156
1156
  "stroke-linejoin": "round",
1157
1157
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-transition-bottom"
1158
1158
  };
1159
- function Ts(s, e) {
1160
- return i(), d("svg", Os, [...e[0] || (e[0] = [
1159
+ function Es(s, e) {
1160
+ return i(), d("svg", Ts, [...e[0] || (e[0] = [
1161
1161
  J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M21 18a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3"></path><path d="M3 3m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z"></path><path d="M12 9v8"></path><path d="M9 14l3 3l3 -3"></path>', 5)
1162
1162
  ])]);
1163
1163
  }
1164
- const Es = /* @__PURE__ */ $($s, [["render", Ts]]), Ss = {}, Bs = {
1164
+ const Ss = /* @__PURE__ */ O($s, [["render", Es]]), Bs = {}, Vs = {
1165
1165
  xmlns: "http://www.w3.org/2000/svg",
1166
1166
  width: "24",
1167
1167
  height: "24",
@@ -1173,18 +1173,18 @@ const Es = /* @__PURE__ */ $($s, [["render", Ts]]), Ss = {}, Bs = {
1173
1173
  "stroke-linejoin": "round",
1174
1174
  class: "baklava-icon icon icon-tabler icons-tabler-outline icon-tabler-trash-off"
1175
1175
  };
1176
- function Vs(s, e) {
1177
- return i(), d("svg", Bs, [...e[0] || (e[0] = [
1176
+ function zs(s, e) {
1177
+ return i(), d("svg", Vs, [...e[0] || (e[0] = [
1178
1178
  J('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 3l18 18"></path><path d="M4 7h3m4 0h9"></path><path d="M10 11l0 6"></path><path d="M14 14l0 3"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l.077 -.923"></path><path d="M18.384 14.373l.616 -7.373"></path><path d="M9 5v-1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 8)
1179
1179
  ])]);
1180
1180
  }
1181
- const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"], Gs = {
1181
+ const js = /* @__PURE__ */ O(Bs, [["render", zs]]), Ls = ["id", "data-node-type"], Gs = {
1182
1182
  class: "__title-label",
1183
1183
  style: { "flex-grow": "1" }
1184
- }, Ls = { key: 0 }, Rs = {
1184
+ }, Rs = { key: 0 }, Ps = {
1185
1185
  class: "__menu",
1186
1186
  style: { display: "flex" }
1187
- }, Ps = { class: "__outputs" }, Us = { key: 0 }, Hs = ["id", "title"], As = { class: "__inputs" }, Ds = { key: 0 }, Fs = ["id", "title"], Ws = /* @__PURE__ */ R({
1187
+ }, Us = { class: "__outputs" }, Hs = { key: 0 }, As = ["id", "title"], Ds = { class: "__inputs" }, Fs = { key: 0 }, Ws = ["id", "title"], Xs = /* @__PURE__ */ R({
1188
1188
  __name: "CodeGraphNode",
1189
1189
  props: {
1190
1190
  node: {},
@@ -1193,8 +1193,8 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1193
1193
  },
1194
1194
  emits: ["select", "start-drag", "update"],
1195
1195
  setup(s, { emit: e }) {
1196
- const t = Ce.ContextMenu, n = Ce.NodeInterface, o = s, a = b(() => o.node), r = e, { viewModel: u } = K(), { graph: p, switchGraph: _ } = ae(), g = V(null), I = V(!1), G = V(""), N = V(null), y = V(!1);
1197
- let f = 0, O = 0;
1196
+ const t = Ce.ContextMenu, n = Ce.NodeInterface, o = s, a = b(() => o.node), r = e, { viewModel: u } = K(), { graph: p, switchGraph: _ } = ae(), g = V(null), I = V(!1), L = V(""), x = V(null), y = V(!1);
1197
+ let f = 0, $ = 0;
1198
1198
  const m = V(!1), w = b(() => {
1199
1199
  const c = [
1200
1200
  { value: "edit", label: "Edit" },
@@ -1209,7 +1209,7 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1209
1209
  "--hidden": a.value.state?.hidden
1210
1210
  })), M = b(() => ({
1211
1211
  "--reverse-y": o.node.reverseY ?? u.value.settings.nodes.reverseY
1212
- })), Le = b(() => ({
1212
+ })), Ge = b(() => ({
1213
1213
  top: `${o.node.position?.y ?? 0}px`,
1214
1214
  left: `${o.node.position?.x ?? 0}px`,
1215
1215
  "--width": `${o.node.width ?? u.value.settings.nodes.defaultWidth}px`
@@ -1237,30 +1237,30 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1237
1237
  p.value.removeNode(o.node);
1238
1238
  break;
1239
1239
  case "rename":
1240
- G.value = o.node.title, I.value = !0, await bt(), N.value?.focus();
1240
+ L.value = o.node.title, I.value = !0, await _t(), x.value?.focus();
1241
1241
  break;
1242
1242
  case "editSubgraph":
1243
1243
  _(o.node.template);
1244
1244
  break;
1245
1245
  }
1246
1246
  }, fe = () => {
1247
- a.value.title = G.value, I.value = !1;
1247
+ a.value.title = L.value, I.value = !1;
1248
1248
  }, ge = () => {
1249
1249
  g.value && u.value.hooks.renderNode.execute({ node: o.node, el: g.value });
1250
1250
  }, Fe = (c) => {
1251
- y.value = !0, f = o.node.width, O = c.clientX, c.preventDefault();
1251
+ y.value = !0, f = o.node.width, $ = c.clientX, c.preventDefault();
1252
1252
  }, be = (c) => {
1253
1253
  a.value.state && (a.value.state.integrated = c, r("update"));
1254
1254
  }, _e = (c) => {
1255
1255
  if (!y.value) return;
1256
- const C = c.clientX - O, v = f + C / p.value.scaling, We = u.value.settings.nodes.minWidth, Xe = u.value.settings.nodes.maxWidth;
1256
+ const C = c.clientX - $, v = f + C / p.value.scaling, We = u.value.settings.nodes.minWidth, Xe = u.value.settings.nodes.maxWidth;
1257
1257
  a.value.width = Math.max(We, Math.min(Xe, v));
1258
1258
  }, ye = () => {
1259
1259
  y.value = !1;
1260
1260
  };
1261
1261
  return ie(() => {
1262
1262
  ge(), window.addEventListener("mousemove", _e), window.addEventListener("mouseup", ye);
1263
- }), $e(ge), ft(() => {
1263
+ }), Oe(ge), gt(() => {
1264
1264
  window.removeEventListener("mousemove", _e), window.removeEventListener("mouseup", ye);
1265
1265
  }), (c, C) => (i(), d("div", {
1266
1266
  id: a.value.id,
@@ -1268,14 +1268,14 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1268
1268
  ref: g,
1269
1269
  class: P([h.value, "baklava-node"]),
1270
1270
  "data-node-type": a.value.type,
1271
- style: re(Le.value),
1271
+ style: re(Ge.value),
1272
1272
  onPointerdown: he
1273
1273
  }, [
1274
1274
  k(u).settings.nodes.resizable ? (i(), d("div", {
1275
1275
  key: 0,
1276
1276
  class: "__resize-handle",
1277
1277
  onMousedown: Fe
1278
- }, null, 32)) : x("", !0),
1278
+ }, null, 32)) : N("", !0),
1279
1279
  l("div", {
1280
1280
  class: "__title",
1281
1281
  onPointerdown: F(Ue, ["self", "stop"]),
@@ -1289,12 +1289,12 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1289
1289
  class: "--input",
1290
1290
  "data-interface-type": "node",
1291
1291
  style: { "flex-grow": "0" }
1292
- }, null, 8, ["node", "intf", "title"])) : x("", !0),
1292
+ }, null, 8, ["node", "intf", "title"])) : N("", !0),
1293
1293
  I.value ? ee((i(), d("input", {
1294
1294
  key: 2,
1295
1295
  ref_key: "renameInputEl",
1296
- ref: N,
1297
- "onUpdate:modelValue": C[4] || (C[4] = (v) => G.value = v),
1296
+ ref: x,
1297
+ "onUpdate:modelValue": C[4] || (C[4] = (v) => L.value = v),
1298
1298
  class: "baklava-input",
1299
1299
  placeholder: "Node Name",
1300
1300
  style: { "flex-grow": "1" },
@@ -1302,43 +1302,43 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1302
1302
  onBlur: fe,
1303
1303
  onKeydown: ne(fe, ["enter"])
1304
1304
  }, null, 544)), [
1305
- [te, G.value]
1305
+ [te, L.value]
1306
1306
  ]) : (i(), d(S, { key: 1 }, [
1307
1307
  l("div", Gs, [
1308
- a.value.idx > -1 ? (i(), d("span", Ls, j(a.value.idx + 1) + " - ", 1)) : x("", !0),
1309
- gt(j(a.value.title), 1)
1308
+ a.value.idx > -1 ? (i(), d("span", Rs, j(a.value.idx + 1) + " - ", 1)) : N("", !0),
1309
+ bt(j(a.value.title), 1)
1310
1310
  ]),
1311
- l("div", Rs, [
1311
+ l("div", Ps, [
1312
1312
  a.value.isCodeNode ? (i(), d(S, { key: 0 }, [
1313
- a.value.state.lockCode ? (i(), E(k(_s), {
1313
+ a.value.state.lockCode ? (i(), E(k(ys), {
1314
1314
  key: 0,
1315
1315
  class: "--clickable mx-1",
1316
1316
  onClick: C[0] || (C[0] = (v) => a.value.lockCode = !1)
1317
- })) : x("", !0),
1318
- a.value.state.integrated ? (i(), E(k(Ft), {
1317
+ })) : N("", !0),
1318
+ a.value.state.integrated ? (i(), E(k(Wt), {
1319
1319
  key: 1,
1320
1320
  class: "--clickable mx-1",
1321
1321
  onClick: C[1] || (C[1] = (v) => be(!1))
1322
- })) : (i(), E(k(Es), {
1322
+ })) : (i(), E(k(Ss), {
1323
1323
  key: 2,
1324
1324
  class: "--clickable mx-1",
1325
1325
  onClick: C[2] || (C[2] = (v) => be(!0))
1326
1326
  })),
1327
- !k(u).displayedGraph.sidebar.visible && k(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), E(k(vs), {
1327
+ !k(u).displayedGraph.sidebar.visible && k(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), E(k(fs), {
1328
1328
  key: 3,
1329
1329
  class: "--clickable mx-1",
1330
1330
  onClick: ve
1331
- })) : k(u).displayedGraph.sidebar.visible && k(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), E(k(rs), {
1331
+ })) : k(u).displayedGraph.sidebar.visible && k(u).displayedGraph.sidebar.nodeId !== a.value.id ? (i(), E(k(ds), {
1332
1332
  key: 4,
1333
1333
  class: "--clickable mx-1",
1334
1334
  onClick: Ae
1335
- })) : (i(), E(k(cs), {
1335
+ })) : (i(), E(k(ps), {
1336
1336
  key: 5,
1337
1337
  class: "--clickable mx-1",
1338
1338
  onClick: He
1339
1339
  }))
1340
- ], 64)) : x("", !0),
1341
- z(k(Kt), {
1340
+ ], 64)) : N("", !0),
1341
+ z(k(qt), {
1342
1342
  class: "--clickable mx-1",
1343
1343
  onClick: me
1344
1344
  }),
@@ -1359,7 +1359,7 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1359
1359
  class: "--output",
1360
1360
  title: a.value.outputs._code.value,
1361
1361
  "data-interface-type": "node"
1362
- }, null, 8, ["node", "intf", "title"])) : x("", !0)
1362
+ }, null, 8, ["node", "intf", "title"])) : N("", !0)
1363
1363
  ], 32),
1364
1364
  l("div", {
1365
1365
  class: P(["__content", M.value]),
@@ -1368,11 +1368,11 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1368
1368
  onContextmenu: C[6] || (C[6] = F(() => {
1369
1369
  }, ["prevent"]))
1370
1370
  }, [
1371
- l("div", Ps, [
1371
+ l("div", Us, [
1372
1372
  (i(!0), d(S, null, D(Pe.value, (v) => (i(), d(S, {
1373
1373
  key: v.id
1374
1374
  }, [
1375
- a.value.state?.hidden ? (i(), d("div", Us, [
1375
+ a.value.state?.hidden ? (i(), d("div", Hs, [
1376
1376
  v.port ? (i(), d("div", {
1377
1377
  key: 0,
1378
1378
  id: v.id,
@@ -1380,7 +1380,7 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1380
1380
  class: "baklava-node-interface --output --connected"
1381
1381
  }, [...C[7] || (C[7] = [
1382
1382
  l("div", { class: "__port" }, null, -1)
1383
- ])], 8, Hs)) : x("", !0)
1383
+ ])], 8, As)) : N("", !0)
1384
1384
  ])) : X(c.$slots, "nodeInterface", {
1385
1385
  key: 1,
1386
1386
  type: "output",
@@ -1395,11 +1395,11 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1395
1395
  ])
1396
1396
  ], 64))), 128))
1397
1397
  ]),
1398
- l("div", As, [
1398
+ l("div", Ds, [
1399
1399
  (i(!0), d(S, null, D(Re.value, (v) => (i(), d(S, {
1400
1400
  key: v.id
1401
1401
  }, [
1402
- a.value.state?.hidden ? (i(), d("div", Ds, [
1402
+ a.value.state?.hidden ? (i(), d("div", Fs, [
1403
1403
  v.port ? (i(), d("div", {
1404
1404
  key: 0,
1405
1405
  id: v.id,
@@ -1407,7 +1407,7 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1407
1407
  class: "baklava-node-interface --input --connected"
1408
1408
  }, [...C[8] || (C[8] = [
1409
1409
  l("div", { class: "__port" }, null, -1)
1410
- ])], 8, Fs)) : x("", !0)
1410
+ ])], 8, Ws)) : N("", !0)
1411
1411
  ])) : X(c.$slots, "nodeInterface", {
1412
1412
  key: 1,
1413
1413
  node: a.value,
@@ -1423,9 +1423,9 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1423
1423
  ], 64))), 128))
1424
1424
  ])
1425
1425
  ], 34)
1426
- ], 46, js));
1426
+ ], 46, Ls));
1427
1427
  }
1428
- }), Xs = ["title"], Ys = {
1428
+ }), Ys = ["title"], Ks = {
1429
1429
  key: 0,
1430
1430
  class: "__label"
1431
1431
  }, Ie = /* @__PURE__ */ R({
@@ -1458,35 +1458,35 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1458
1458
  })
1459
1459
  ])
1460
1460
  ], -1)),
1461
- s.name ? (i(), d("div", Ys, j(s.name), 1)) : x("", !0)
1462
- ], 10, Xs));
1461
+ s.name ? (i(), d("div", Ks, j(s.name), 1)) : N("", !0)
1462
+ ], 10, Ys));
1463
1463
  }
1464
- }), Ks = { class: "__header" }, qs = { class: "__node-name" }, Js = { class: "__interfaces" }, Qs = { class: "__inputs" }, Zs = { style: { display: "flex" } }, en = { class: "__outputs" }, tn = {
1464
+ }), qs = { class: "__header" }, Js = { class: "__node-name" }, Qs = { class: "__interfaces" }, Zs = { class: "__inputs" }, en = { style: { display: "flex" } }, tn = { class: "__outputs" }, sn = {
1465
1465
  key: 0,
1466
1466
  class: "__interface"
1467
- }, sn = { style: { display: "flex" } }, nn = /* @__PURE__ */ R({
1467
+ }, nn = { style: { display: "flex" } }, on = /* @__PURE__ */ R({
1468
1468
  __name: "CodeGraphSidebar",
1469
1469
  setup(s) {
1470
- const { viewModel: e } = K(), { graph: t } = ae(), n = V(null), o = Oe(e.value.settings.sidebar, "width"), a = b(() => e.value.settings.sidebar.resizable);
1470
+ const { viewModel: e } = K(), { graph: t } = ae(), n = V(null), o = $e(e.value.settings.sidebar, "width"), a = b(() => e.value.settings.sidebar.resizable);
1471
1471
  let r = 0, u = 0;
1472
1472
  const p = b(() => {
1473
1473
  const m = t.value.sidebar.nodeId;
1474
1474
  return t.value.nodes.find((w) => w.id === m);
1475
1475
  }), _ = b(() => p.value), g = b(() => ({
1476
1476
  width: `${o.value}px`
1477
- })), I = b(() => _.value ? Object.values(_.value.inputs).filter((m) => m.displayInSidebar && m.component) : []), G = b(() => _.value ? Object.values(_.value.outputs).filter((m) => m.displayInSidebar && m.component) : []), N = () => {
1477
+ })), I = b(() => _.value ? Object.values(_.value.inputs).filter((m) => m.displayInSidebar && m.component) : []), L = b(() => _.value ? Object.values(_.value.outputs).filter((m) => m.displayInSidebar && m.component) : []), x = () => {
1478
1478
  t.value.sidebar.visible = !1;
1479
1479
  }, y = () => {
1480
1480
  p.value?.events.update.emit(null);
1481
1481
  }, f = (m) => {
1482
- r = o.value, u = m.clientX, window.addEventListener("mousemove", O), window.addEventListener(
1482
+ r = o.value, u = m.clientX, window.addEventListener("mousemove", $), window.addEventListener(
1483
1483
  "mouseup",
1484
1484
  () => {
1485
- window.removeEventListener("mousemove", O);
1485
+ window.removeEventListener("mousemove", $);
1486
1486
  },
1487
1487
  { once: !0 }
1488
1488
  );
1489
- }, O = (m) => {
1489
+ }, $ = (m) => {
1490
1490
  const w = n.value?.parentElement?.getBoundingClientRect().width ?? 500, h = m.clientX - u;
1491
1491
  let M = r - h;
1492
1492
  M < 300 ? M = 300 : M > 0.9 * w && (M = 0.9 * w), o.value = M;
@@ -1501,25 +1501,25 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1501
1501
  key: 0,
1502
1502
  class: "__resizer",
1503
1503
  onMousedown: f
1504
- }, null, 32)) : x("", !0),
1504
+ }, null, 32)) : N("", !0),
1505
1505
  p.value ? (i(), d(S, { key: 1 }, [
1506
- l("div", Ks, [
1506
+ l("div", qs, [
1507
1507
  l("button", {
1508
1508
  tabindex: "-1",
1509
1509
  class: "__close",
1510
- onClick: N
1510
+ onClick: x
1511
1511
  }, "×"),
1512
- l("div", qs, [
1512
+ l("div", Js, [
1513
1513
  l("b", null, j(p.value.title), 1)
1514
1514
  ])
1515
1515
  ]),
1516
- l("div", Js, [
1517
- l("div", Qs, [
1516
+ l("div", Qs, [
1517
+ l("div", Zs, [
1518
1518
  (i(!0), d(S, null, D(I.value, (h) => (i(), d("div", {
1519
1519
  key: h.id,
1520
1520
  class: "__interface"
1521
1521
  }, [
1522
- l("div", Zs, [
1522
+ l("div", en, [
1523
1523
  z(Ie, {
1524
1524
  modelValue: h.hidden,
1525
1525
  "onUpdate:modelValue": [
@@ -1540,8 +1540,8 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1540
1540
  ])
1541
1541
  ]))), 128))
1542
1542
  ]),
1543
- l("div", en, [
1544
- _.value && _.value.state ? (i(), d("div", tn, [
1543
+ l("div", tn, [
1544
+ _.value && _.value.state ? (i(), d("div", sn, [
1545
1545
  w[3] || (w[3] = l("label", null, "Variable name", -1)),
1546
1546
  ee(l("input", {
1547
1547
  "onUpdate:modelValue": w[1] || (w[1] = (h) => _.value.state.variableName = h),
@@ -1553,12 +1553,12 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1553
1553
  }, null, 544), [
1554
1554
  [te, _.value.state.variableName]
1555
1555
  ])
1556
- ])) : x("", !0),
1557
- (i(!0), d(S, null, D(G.value, (h) => (i(), d("div", {
1556
+ ])) : N("", !0),
1557
+ (i(!0), d(S, null, D(L.value, (h) => (i(), d("div", {
1558
1558
  key: h.id,
1559
1559
  class: "__interface"
1560
1560
  }, [
1561
- l("div", sn, [
1561
+ l("div", nn, [
1562
1562
  z(Ie, {
1563
1563
  modelValue: h.hidden,
1564
1564
  "onUpdate:modelValue": [
@@ -1581,14 +1581,14 @@ const zs = /* @__PURE__ */ $(Ss, [["render", Vs]]), js = ["id", "data-node-type"
1581
1581
  ])
1582
1582
  ]),
1583
1583
  X(m.$slots, "codeEditor", { node: p.value })
1584
- ], 64)) : x("", !0)
1584
+ ], 64)) : N("", !0)
1585
1585
  ], 6));
1586
1586
  }
1587
1587
  });
1588
- function on(s, e) {
1588
+ function an(s, e) {
1589
1589
  return Object.fromEntries(Object.entries(s).filter(e));
1590
1590
  }
1591
- const an = R({
1591
+ const rn = R({
1592
1592
  props: {
1593
1593
  type: {
1594
1594
  type: String,
@@ -1619,63 +1619,63 @@ const an = R({
1619
1619
  }
1620
1620
  } };
1621
1621
  }
1622
- }), rn = ["data-node-type"], dn = { class: "__title" }, ln = { class: "__title-label" };
1623
- function un(s, e, t, n, o, a) {
1622
+ }), dn = ["data-node-type"], ln = { class: "__title" }, un = { class: "__title-label" };
1623
+ function cn(s, e, t, n, o, a) {
1624
1624
  return i(), d("div", {
1625
1625
  class: "baklava-node --palette",
1626
1626
  "data-node-type": s.type
1627
1627
  }, [
1628
- l("div", dn, [
1629
- l("div", ln, j(s.title), 1)
1628
+ l("div", ln, [
1629
+ l("div", un, j(s.title), 1)
1630
1630
  ])
1631
- ], 8, rn);
1631
+ ], 8, dn);
1632
1632
  }
1633
- const xe = /* @__PURE__ */ $(an, [["render", un]]), cn = {
1633
+ const Ne = /* @__PURE__ */ O(rn, [["render", cn]]), pn = {
1634
1634
  class: "baklava-node --palette",
1635
1635
  style: { "margin-top": "-20px", "margin-bottom": "20px" }
1636
- }, pn = {
1636
+ }, hn = {
1637
1637
  key: 0,
1638
1638
  style: { display: "flex", "justify-content": "space-between" }
1639
- }, hn = ["onClick"], mn = {
1639
+ }, mn = ["onClick"], vn = {
1640
1640
  key: 0,
1641
1641
  style: { margin: "auto 0", "font-size": "12px" }
1642
- }, vn = /* @__PURE__ */ R({
1642
+ }, fn = /* @__PURE__ */ R({
1643
1643
  __name: "CodeNodePalette",
1644
1644
  setup(s) {
1645
- const { viewModel: e } = K(), { x: t, y: n } = xt(), { transform: o } = ct(), a = pt(e), r = _t("editorEl"), u = V(""), p = V(null), _ = () => u.value ? a.value.filter(
1646
- (N) => N.name.toLowerCase().includes(u.value.toLowerCase()) || Object.values(N.nodeTypes).some(
1645
+ const { viewModel: e } = K(), { x: t, y: n } = xt(), { transform: o } = ct(), a = pt(e), r = yt("editorEl"), u = V(""), p = V(null), _ = () => u.value ? a.value.filter(
1646
+ (x) => x.name.toLowerCase().includes(u.value.toLowerCase()) || Object.values(x.nodeTypes).some(
1647
1647
  (y) => y.title.toLowerCase().includes(u.value.toLowerCase())
1648
1648
  )
1649
- ) : a.value, g = (N) => u.value ? on(N, (y) => {
1649
+ ) : a.value, g = (x) => u.value ? an(x, (y) => {
1650
1650
  const f = y[1];
1651
1651
  return f.category.includes(u.value.toLowerCase()) || f.title?.toLowerCase().includes(u.value.toLowerCase());
1652
- }) : N, I = b(() => {
1652
+ }) : x, I = b(() => {
1653
1653
  if (!p.value || !r?.value) return {};
1654
- const { left: N, top: y } = r.value.getBoundingClientRect();
1654
+ const { left: x, top: y } = r.value.getBoundingClientRect();
1655
1655
  return {
1656
1656
  top: `${n.value - y}px`,
1657
- left: `${t.value - N}px`
1657
+ left: `${t.value - x}px`
1658
1658
  };
1659
- }), G = (N, y) => {
1659
+ }), L = (x, y) => {
1660
1660
  p.value = {
1661
- type: N,
1661
+ type: x,
1662
1662
  nodeInformation: y
1663
1663
  };
1664
1664
  const f = () => {
1665
- const O = q(new y.type());
1666
- e.value.displayedGraph.addNode(O);
1665
+ const $ = q(new y.type());
1666
+ e.value.displayedGraph.addNode($);
1667
1667
  const m = r.value.getBoundingClientRect(), [w, h] = o(t.value - m.left, n.value - m.top);
1668
- O.position.x = w, O.position.y = h, p.value = null, document.removeEventListener("pointerup", f);
1668
+ $.position.x = w, $.position.y = h, p.value = null, document.removeEventListener("pointerup", f);
1669
1669
  };
1670
1670
  document.addEventListener("pointerup", f);
1671
1671
  };
1672
- return (N, y) => (i(), d(S, null, [
1672
+ return (x, y) => (i(), d(S, null, [
1673
1673
  l("div", {
1674
1674
  class: P([{ "--open": k(e).settings.palette.enabled }, "baklava-node-palette"]),
1675
1675
  onContextmenu: y[1] || (y[1] = F(() => {
1676
1676
  }, ["stop", "prevent"]))
1677
1677
  }, [
1678
- l("div", cn, [
1678
+ l("div", pn, [
1679
1679
  ee(l("input", {
1680
1680
  "onUpdate:modelValue": y[0] || (y[0] = (f) => u.value = f),
1681
1681
  type: "text",
@@ -1689,60 +1689,60 @@ const xe = /* @__PURE__ */ $(an, [["render", un]]), cn = {
1689
1689
  (i(!0), d(S, null, D(_(), (f) => (i(), d("section", {
1690
1690
  key: f.name
1691
1691
  }, [
1692
- f.name !== "default" ? (i(), d("h3", pn, [
1692
+ f.name !== "default" ? (i(), d("h3", hn, [
1693
1693
  l("div", {
1694
- onClick: (O) => u.value = f.name,
1694
+ onClick: ($) => u.value = f.name,
1695
1695
  style: { cursor: "pointer" }
1696
- }, j(f.name), 9, hn),
1697
- Object.keys(g(f.nodeTypes)).length < Object.values(f.nodeTypes).length ? (i(), d("div", mn, " ( " + j(Object.keys(g(f.nodeTypes)).length) + " / " + j(Object.values(f.nodeTypes).length) + " ) ", 1)) : x("", !0)
1698
- ])) : x("", !0),
1699
- (i(!0), d(S, null, D(g(f.nodeTypes), (O, m) => (i(), E(xe, {
1696
+ }, j(f.name), 9, mn),
1697
+ Object.keys(g(f.nodeTypes)).length < Object.values(f.nodeTypes).length ? (i(), d("div", vn, " ( " + j(Object.keys(g(f.nodeTypes)).length) + " / " + j(Object.values(f.nodeTypes).length) + " ) ", 1)) : N("", !0)
1698
+ ])) : N("", !0),
1699
+ (i(!0), d(S, null, D(g(f.nodeTypes), ($, m) => (i(), E(Ne, {
1700
1700
  key: m,
1701
1701
  type: m,
1702
- title: O.title,
1703
- onPointerdown: (w) => G(m, O)
1702
+ title: $.title,
1703
+ onPointerdown: (w) => L(m, $)
1704
1704
  }, null, 8, ["type", "title", "onPointerdown"]))), 128))
1705
1705
  ]))), 128))
1706
1706
  ], 34),
1707
- z(yt, { name: "fade" }, {
1707
+ z(Ct, { name: "fade" }, {
1708
1708
  default: W(() => [
1709
1709
  p.value ? (i(), d("div", {
1710
1710
  key: 0,
1711
1711
  class: "baklava-dragged-node",
1712
1712
  style: re(I.value)
1713
1713
  }, [
1714
- z(xe, {
1714
+ z(Ne, {
1715
1715
  type: p.value.type,
1716
1716
  title: p.value.nodeInformation.title
1717
1717
  }, null, 8, ["type", "title"])
1718
- ], 4)) : x("", !0)
1718
+ ], 4)) : N("", !0)
1719
1719
  ]),
1720
1720
  _: 1
1721
1721
  })
1722
1722
  ], 64));
1723
1723
  }
1724
- }), Pn = /* @__PURE__ */ R({
1724
+ }), Un = /* @__PURE__ */ R({
1725
1725
  __name: "CodeGraphEditor",
1726
1726
  props: {
1727
1727
  viewModel: {}
1728
1728
  },
1729
1729
  setup(s) {
1730
- const t = Oe(s, "viewModel"), n = (o) => o.events.update.emit(null);
1730
+ const t = $e(s, "viewModel"), n = (o) => o.events.update.emit(null);
1731
1731
  return ie(() => {
1732
1732
  t.value.subscribe(), t.value.engine.start();
1733
- }), Ct(() => {
1733
+ }), kt(() => {
1734
1734
  t.value.unsubscribe(), t.value.engine.stop();
1735
1735
  }), (o, a) => (i(), E(k(ht), { "view-model": t.value }, {
1736
1736
  palette: W(() => [
1737
- z(vn)
1737
+ z(fn)
1738
1738
  ]),
1739
1739
  node: W((r) => [
1740
- z(Ws, It(r, {
1740
+ z(Xs, Nt(r, {
1741
1741
  onUpdate: (u) => n(r.node)
1742
1742
  }), null, 16, ["onUpdate"])
1743
1743
  ]),
1744
1744
  sidebar: W((r) => [
1745
- z(nn, kt(wt(r)), {
1745
+ z(on, wt(It(r)), {
1746
1746
  codeEditor: W(({ node: u }) => [
1747
1747
  X(o.$slots, "sidebarCodeEditor", { node: u })
1748
1748
  ]),
@@ -1753,15 +1753,15 @@ const xe = /* @__PURE__ */ $(an, [["render", un]]), cn = {
1753
1753
  }, 8, ["view-model"]));
1754
1754
  }
1755
1755
  });
1756
- function Un(s) {
1756
+ function Hn(s) {
1757
1757
  const e = mt(s?.existingEditor);
1758
- return e.code = s?.code ? new s.code(e) : new Rt(e), e.editor.addGraphTemplate = function(t) {
1758
+ return e.code = s?.code ? new s.code(e) : new Pt(e), e.editor.addGraphTemplate = function(t) {
1759
1759
  if (this.events.beforeAddGraphTemplate.emit(t).prevented)
1760
1760
  return;
1761
1761
  this._graphTemplates.push(t), this.graphTemplateEvents.addTarget(t.events), this.graphTemplateHooks.addTarget(t.hooks);
1762
- const n = Lt(t);
1762
+ const n = Rt(t);
1763
1763
  this.registerNodeType(n, { category: "Subgraphs", title: t.name }), this.events.addGraphTemplate.emit(t);
1764
- }, fn(e), gn(e), e.state = q({
1764
+ }, gn(e), bn(e), e.state = q({
1765
1765
  modules: {},
1766
1766
  token: null
1767
1767
  }), e.init = () => {
@@ -1800,91 +1800,93 @@ function Un(s) {
1800
1800
  e.displayedGraph.events.addNode.unsubscribe(t), e.displayedGraph.events.addConnection.unsubscribe(t), e.engine.events.beforeRun.unsubscribe(t), e.engine.events.beforeNodeCalculation.unsubscribe(t), e.engine.events.afterRun.unsubscribe(t), e.state.token = null;
1801
1801
  }, e;
1802
1802
  }
1803
- const fn = (s) => {
1803
+ const gn = (s) => {
1804
1804
  const e = "TOGGLE_PALETTE";
1805
1805
  s.commandHandler.registerCommand(e, {
1806
1806
  execute: () => s.settings.palette.enabled = !s.settings.palette.enabled,
1807
1807
  canExecute: () => !0
1808
- }), s.settings.toolbar.commands.unshift({
1808
+ });
1809
+ const t = {
1809
1810
  command: e,
1810
1811
  title: "Toggle palette",
1811
1812
  // Tooltip text
1812
- icon: b(() => s.settings.palette.enabled ? Zt : ns)
1813
- });
1814
- const t = "CLEAR_ALL";
1815
- s.commandHandler.registerCommand(t, {
1813
+ icon: b(() => s.settings.palette.enabled ? es : os)
1814
+ }, n = "CLEAR_ALL";
1815
+ s.commandHandler.registerCommand(n, {
1816
1816
  execute: () => s.code.clear(),
1817
1817
  canExecute: () => s.displayedGraph.nodes.length > 0
1818
- }), s.settings.toolbar.commands.push({
1819
- command: t,
1818
+ });
1819
+ const o = {
1820
+ command: n,
1820
1821
  title: "Clear all",
1821
1822
  // Tooltip text
1822
- icon: b(() => zs)
1823
- });
1824
- const n = "TOGGLE_MINIMAP";
1825
- s.commandHandler.registerCommand(n, {
1823
+ icon: b(() => js)
1824
+ }, a = "TOGGLE_MINIMAP";
1825
+ s.commandHandler.registerCommand(a, {
1826
1826
  execute: () => s.settings.enableMinimap = !s.settings.enableMinimap,
1827
1827
  canExecute: () => s.displayedGraph.nodes.length > 1
1828
- }), s.settings.toolbar.commands.push({
1829
- command: n,
1828
+ });
1829
+ const r = {
1830
+ command: a,
1830
1831
  title: "Toggle minimap",
1831
1832
  // Tooltip text
1832
- icon: b(() => s.settings.enableMinimap ? Ms : ws)
1833
- });
1834
- }, gn = (s) => {
1833
+ icon: b(() => s.settings.enableMinimap ? Os : Is)
1834
+ };
1835
+ s.settings.toolbar.commands = [t, ...ft, o, r];
1836
+ }, bn = (s) => {
1835
1837
  s.settings.nodes.defaultWidth = 400;
1836
1838
  };
1837
1839
  export {
1838
1840
  Ee as AbstractCodeNode,
1839
1841
  xn as CheckboxInterface,
1840
- Rt as Code,
1841
- Pn as CodeGraphEditor,
1842
+ Pt as Code,
1843
+ Un as CodeGraphEditor,
1842
1844
  Se as CodeNode,
1843
1845
  Q as CodeNodeInputInterface,
1844
- L as CodeNodeInterface,
1846
+ G as CodeNodeInterface,
1845
1847
  de as CodeNodeInterfaceComponent,
1846
- Ge as CodeNodeOutputInterface,
1847
- Ft as CodeVariable,
1848
- Kt as DotsVertical,
1849
- jt as DynamicCodeNode,
1850
- jn as GRAPH_NODE_TYPE_PREFIX,
1851
- Nn as IntegerInterface,
1852
- Zt as LayoutSidebarLeftCollapse,
1853
- ns as LayoutSidebarLeftExpand,
1854
- rs as LayoutSidebarRight,
1855
- cs as LayoutSidebarRightCollapse,
1856
- vs as LayoutSidebarRightExpand,
1857
- Mn as ListInputInterface,
1858
- _s as LockCode,
1848
+ Le as CodeNodeOutputInterface,
1849
+ Wt as CodeVariable,
1850
+ qt as DotsVertical,
1851
+ Lt as DynamicCodeNode,
1852
+ Ln as GRAPH_NODE_TYPE_PREFIX,
1853
+ Mn as IntegerInterface,
1854
+ es as LayoutSidebarLeftCollapse,
1855
+ os as LayoutSidebarLeftExpand,
1856
+ ds as LayoutSidebarRight,
1857
+ ps as LayoutSidebarRightCollapse,
1858
+ fs as LayoutSidebarRightExpand,
1859
+ On as ListInputInterface,
1860
+ ys as LockCode,
1859
1861
  $n as NumberInterface,
1860
- ws as Schema,
1861
- Ms as SchemaOff,
1862
- On as SelectInterface,
1863
- Tn as SliderInterface,
1864
- En as TextInputInterface,
1865
- zt as TextInputInterfaceComponent,
1866
- Sn as TextareaInputInterface,
1867
- Es as TransitionBottom,
1868
- zs as TrashOff,
1869
- Bn as TupleInputInterface,
1870
- In as addDefaultInterfaceTypes,
1871
- fn as addToolbarCommands,
1862
+ Is as Schema,
1863
+ Os as SchemaOff,
1864
+ Tn as SelectInterface,
1865
+ En as SliderInterface,
1866
+ Sn as TextInputInterface,
1867
+ jt as TextInputInterfaceComponent,
1868
+ Bn as TextareaInputInterface,
1869
+ Ss as TransitionBottom,
1870
+ js as TrashOff,
1871
+ Vn as TupleInputInterface,
1872
+ Nn as addDefaultInterfaceTypes,
1873
+ gn as addToolbarCommands,
1872
1874
  Ve as booleanType,
1873
- Lt as createCodeGraphNodeType,
1874
- Vn as defineCodeNode,
1875
- zn as defineDynamicCodeNode,
1876
- Ot as dictType,
1877
- Nt as formatInputs,
1875
+ Rt as createCodeGraphNodeType,
1876
+ zn as defineCodeNode,
1877
+ jn as defineDynamicCodeNode,
1878
+ Tt as dictType,
1879
+ Mt as formatInputs,
1878
1880
  oe as getCodeNodes,
1879
- Ln as getPositionAtColumn,
1880
- Rn as getPositionBeforeNode,
1881
+ Rn as getPositionAtColumn,
1882
+ Pn as getPositionBeforeNode,
1881
1883
  ze as listType,
1882
1884
  Be as loadNodeState,
1883
1885
  U as nodeType,
1884
1886
  le as numberType,
1885
- Mt as saveNodeState,
1887
+ Ot as saveNodeState,
1886
1888
  ue as stringType,
1887
1889
  je as tupleType,
1888
- gn as updateSettings,
1889
- Un as useCodeGraph
1890
+ bn as updateSettings,
1891
+ Hn as useCodeGraph
1890
1892
  };