@code0-tech/pictor 0.0.0-mvp.31 → 0.0.0-mvp.32

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.
Files changed (134) hide show
  1. package/dist/components/avatar/Avatar.js +7 -7
  2. package/dist/components/breadcrumb/Breadcrumb.js +4 -4
  3. package/dist/components/button/Button.js +8 -8
  4. package/dist/components/context-menu/ContextMenu.js +131 -131
  5. package/dist/components/d-flow/DFlow.edges.hook.js +22 -22
  6. package/dist/components/d-flow/DFlow.js +32 -32
  7. package/dist/components/d-flow/DFlow.nodes.hook.js +8 -8
  8. package/dist/components/d-flow-file/DFlowTabDefault.js +16 -16
  9. package/dist/components/d-flow-folder/DFlowFolder.js +13 -13
  10. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +5 -5
  11. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +13 -13
  12. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +5 -5
  13. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +11 -11
  14. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +7 -7
  15. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +9 -9
  16. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +12 -12
  17. package/dist/components/d-flow-input/DFlowInputDataType.js +16 -16
  18. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +8 -8
  19. package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +4 -4
  20. package/dist/components/d-flow-panel/DFlowExport.js +5 -5
  21. package/dist/components/d-flow-panel/DFlowPanelControl.js +4 -4
  22. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +4 -4
  23. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +7 -7
  24. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +12 -12
  25. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +5 -5
  26. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +4 -4
  27. package/dist/components/d-flow-validation/DNodeValidation.hook.js +3 -3
  28. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  29. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  30. package/dist/components/d-organization/DOrganizationList.js +7 -7
  31. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  32. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  33. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  34. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  35. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  36. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  37. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  38. package/dist/components/d-user/DUser.session.hook.js +2 -2
  39. package/dist/components/d-user/DUserContent.js +13 -13
  40. package/dist/components/d-user/DUserList.js +9 -9
  41. package/dist/components/form/CheckboxInput.js +4 -4
  42. package/dist/components/form/EmailInput.js +9 -9
  43. package/dist/components/form/Input.js +311 -230
  44. package/dist/components/form/Input.utils.js +1 -1
  45. package/dist/components/form/InputContentEditable.hook.d.ts +14 -2
  46. package/dist/components/form/InputContentEditable.hook.js +296 -317
  47. package/dist/components/form/NumberInput.js +9 -9
  48. package/dist/components/form/PasswordInput.js +2 -2
  49. package/dist/components/form/SwitchInput.js +7 -7
  50. package/dist/components/form/TextInput.js +6 -6
  51. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  52. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  53. package/dist/utils/objectStore.js +15 -15
  54. package/dist/utils/reactiveArrayService.js +10 -10
  55. package/package.json +18 -18
  56. package/dist/_virtual/_commonjsHelpers.js +0 -6
  57. package/dist/_virtual/index.js +0 -4
  58. package/dist/_virtual/index2.js +0 -4
  59. package/dist/_virtual/react-contenteditable.js +0 -7
  60. package/dist/_virtual/react-contenteditable2.js +0 -4
  61. package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
  62. package/dist/_virtual/react-dom-server-legacy.browser.production.js +0 -4
  63. package/dist/_virtual/react-dom-server.browser.development.js +0 -4
  64. package/dist/_virtual/react-dom-server.browser.production.js +0 -4
  65. package/dist/_virtual/react-is.development.js +0 -4
  66. package/dist/_virtual/react-is.production.min.js +0 -4
  67. package/dist/_virtual/server.browser.js +0 -5
  68. package/dist/_virtual/server.browser2.js +0 -4
  69. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
  70. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
  71. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
  72. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
  73. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
  74. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
  75. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
  76. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
  77. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
  78. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
  79. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -222
  80. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
  81. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
  82. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
  83. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
  84. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
  85. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
  86. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
  87. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
  88. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
  89. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
  90. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
  91. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
  92. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
  93. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
  94. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
  95. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
  96. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
  97. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
  98. package/dist/node_modules/fast-deep-equal/index.js +0 -31
  99. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
  100. package/dist/node_modules/object-assign/index.js +0 -49
  101. package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
  102. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
  103. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
  104. package/dist/node_modules/prop-types/index.js +0 -17
  105. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
  106. package/dist/node_modules/prop-types/lib/has.js +0 -7
  107. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -87
  108. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -70
  109. package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
  110. package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +0 -132
  111. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -6235
  112. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -4096
  113. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -6753
  114. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -4645
  115. package/dist/node_modules/react-dom/server.browser.js +0 -15
  116. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
  117. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
  118. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
  119. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
  120. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
  121. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  122. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  123. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
  124. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
  125. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
  126. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
  127. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
  128. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
  129. package/dist/node_modules/tslib/tslib.es6.js +0 -27
  130. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
  131. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
  132. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
  133. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
  134. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
@@ -1,7 +1,7 @@
1
- import { jsx as z, jsxs as Q } from "react/jsx-runtime";
1
+ import { jsx as H, jsxs as Q } from "react/jsx-runtime";
2
2
  import { c as Z } from "../../_virtual/compiler-runtime.js";
3
3
  import "../../utils/contextStore.js";
4
- import W from "react";
4
+ import _ from "react";
5
5
  import { mergeCode0Props as tt } from "../../utils/utils.js";
6
6
  import { ReactFlowProvider as et, useNodesState as ot, useEdgesState as st, useUpdateNodeInternals as nt, ReactFlow as it, Background as rt, BackgroundVariant as at } from "@xyflow/react";
7
7
  import '../../assets/components/d-flow-panel/DFlowMiniMap.style.css';import '../../assets/components/d-flow/DFlow.style.css';import '../../assets/node_modules/@xyflow/react/dist/style.css';/* empty css */
@@ -25,12 +25,12 @@ const xt = (m, F) => {
25
25
  };
26
26
  const w = 50, Y = 50, N = 16, x = 0.25;
27
27
  let G = 0, A = !1;
28
- const K = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map();
28
+ const K = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
29
29
  for (const e of m) {
30
30
  const a = e.data?.linkingId;
31
31
  if (a) {
32
- const l = H.get(a) ?? [];
33
- l.push(e.id), H.set(a, l);
32
+ const l = L.get(a) ?? [];
33
+ l.push(e.id), L.set(a, l);
34
34
  }
35
35
  if (e.parentId && !a) {
36
36
  const l = K.get(e.parentId) ?? [];
@@ -44,7 +44,7 @@ const xt = (m, F) => {
44
44
  O.set(e, l);
45
45
  }
46
46
  const X = /* @__PURE__ */ new Map();
47
- for (const [e, a] of H) {
47
+ for (const [e, a] of L) {
48
48
  const l = new Array(a.length);
49
49
  for (let p = 0; p < a.length; p++) l[p] = R.get(a[p]);
50
50
  X.set(e, l);
@@ -73,15 +73,15 @@ const xt = (m, F) => {
73
73
  return f.set(e.id, S), S;
74
74
  }
75
75
  const T = O.get(e.id) ?? [];
76
- let k = 0, V = 0, _ = 0;
76
+ let k = 0, V = 0, z = 0;
77
77
  for (const S of T) {
78
- const L = I(S);
79
- k += L.h, L.w > V && (V = L.w), _++;
78
+ const W = I(S);
79
+ k += W.h, W.w > V && (V = W.w), z++;
80
80
  }
81
- k += w * Math.max(0, _ - 1);
81
+ k += w * Math.max(0, z - 1);
82
82
  const q = {
83
83
  w: V + 2 * N,
84
- h: (_ ? k : 0) + 2 * N
84
+ h: (z ? k : 0) + 2 * N
85
85
  };
86
86
  return f.set(e.id, q), q;
87
87
  };
@@ -240,9 +240,9 @@ const xt = (m, F) => {
240
240
  for (; g?.parentId && (h++, g = R.get(g.parentId), !!g); )
241
241
  ;
242
242
  return h;
243
- }, _ = [];
244
- for (const o of m) o.type === "group" && _.push(o);
245
- _.sort((o, h) => V(h) - V(o));
243
+ }, z = [];
244
+ for (const o of m) o.type === "group" && z.push(o);
245
+ z.sort((o, h) => V(h) - V(o));
246
246
  const q = (o) => {
247
247
  const h = typeof o.style?.width == "number" ? o.style.width : void 0, g = typeof o.style?.height == "number" ? o.style.height : void 0, i = b.get(o.id);
248
248
  return {
@@ -250,7 +250,7 @@ const xt = (m, F) => {
250
250
  h: g ?? i.h
251
251
  };
252
252
  };
253
- for (const o of _) {
253
+ for (const o of z) {
254
254
  const h = [];
255
255
  for (const d of m)
256
256
  d.parentId === o.id && h.push(d);
@@ -296,10 +296,10 @@ const xt = (m, F) => {
296
296
  }
297
297
  f.clear();
298
298
  for (const o of m) I(o);
299
- const S = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
299
+ const S = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map();
300
300
  for (const o of m) {
301
301
  const h = I(o), g = e.get(o.id);
302
- L.set(o.id, g), S.set(o.id, {
302
+ W.set(o.id, g), S.set(o.id, {
303
303
  x: g.x - h.w / 2,
304
304
  y: g.y - h.h / 2
305
305
  });
@@ -316,7 +316,7 @@ const xt = (m, F) => {
316
316
  let t = 0;
317
317
  for (const s of M) t += s;
318
318
  t += Y * (i.length - 1);
319
- let r = L.get(o.id).x - t / 2;
319
+ let r = W.get(o.id).x - t / 2;
320
320
  for (let s = 0; s < i.length; s++) {
321
321
  const c = i[s], D = c.parentId ? S.get(c.parentId) : {
322
322
  x: 0
@@ -366,29 +366,29 @@ const xt = (m, F) => {
366
366
  } : e;
367
367
  })
368
368
  };
369
- }, $ = W.cache(xt), Gt = (m) => {
369
+ }, $ = _.cache(xt), Gt = (m) => {
370
370
  const F = Z.c(2);
371
371
  let w;
372
- return F[0] !== m ? (w = /* @__PURE__ */ z(et, { children: /* @__PURE__ */ z(It, { ...m }) }), F[0] = m, F[1] = w) : w = F[1], w;
372
+ return F[0] !== m ? (w = /* @__PURE__ */ H(et, { children: /* @__PURE__ */ H(It, { ...m }) }), F[0] = m, F[1] = w) : w = F[1], w;
373
373
  }, It = (m) => {
374
374
  const {
375
375
  flowId: F,
376
376
  namespaceId: w,
377
377
  projectId: Y
378
- } = m, N = W.useMemo(() => ({
378
+ } = m, N = _.useMemo(() => ({
379
379
  default: ct,
380
380
  group: dt,
381
381
  suggestion: ht,
382
382
  trigger: lt
383
- }), []), x = W.useMemo(() => ({
383
+ }), []), x = _.useMemo(() => ({
384
384
  default: gt
385
- }), []), G = ut(F, w, Y), A = ft(F, w, Y), [K, H] = ot([]), [R, O, X] = st([]), C = nt(), B = W.useCallback((b) => {
385
+ }), []), G = ut(F, w, Y), A = ft(F, w, Y), [K, L] = ot([]), [R, O, X] = st([]), C = nt(), B = _.useCallback((b) => {
386
386
  requestAnimationFrame(() => {
387
387
  b.forEach((E) => C(E));
388
388
  });
389
- }, [C]), j = W.useCallback((b) => {
389
+ }, [C]), j = _.useCallback((b) => {
390
390
  const E = Array.from(new Set(b.filter((f) => f.type === "dimensions" || f.type === "position").map((f) => f.id))), y = /* @__PURE__ */ new Map();
391
- b.filter((f) => f.type === "dimensions").forEach((f) => y.set(f.id, f.dimensions)), H((f) => {
391
+ b.filter((f) => f.type === "dimensions").forEach((f) => y.set(f.id, f.dimensions)), L((f) => {
392
392
  const I = f.map((e) => {
393
393
  if (!y.has(e.id)) return e;
394
394
  const a = y.get(e.id) || {};
@@ -403,7 +403,7 @@ const xt = (m, F) => {
403
403
  return $(I, new Set(E)).nodes;
404
404
  }), B(E);
405
405
  }, [B]);
406
- return W.useEffect(() => {
406
+ return _.useEffect(() => {
407
407
  const b = G.map((y) => {
408
408
  const f = y.measured ? [] : document.querySelectorAll("[data-id='" + y.id + "']");
409
409
  return {
@@ -414,13 +414,13 @@ const xt = (m, F) => {
414
414
  }
415
415
  };
416
416
  }), E = $(b, new Set(b.map((y) => y.id)));
417
- H(E.nodes), O(A), B(E.nodes.map((y) => y.id));
417
+ L(E.nodes), O(A), B(E.nodes.map((y) => y.id));
418
418
  }, [G, A, B]), /* @__PURE__ */ Q(it, { onlyRenderVisibleElements: !0, panOnScroll: !1, nodeTypes: N, edgeTypes: x, onInit: (b) => b.fitView(), onNodesChange: j, onEdgesChange: X, ...tt("flow", m), nodes: K, edges: R, children: [
419
- /* @__PURE__ */ z(rt, { variant: at.Dots, color: "rgba(255,255,255, .05)", gap: 8, size: 2 }),
420
- /* @__PURE__ */ z(pt, {}),
421
- /* @__PURE__ */ z(wt, {}),
422
- /* @__PURE__ */ z(yt, { flowId: "gid://sagittarius/Flow/1" }),
423
- /* @__PURE__ */ z(mt, { flowId: F })
419
+ /* @__PURE__ */ H(rt, { variant: at.Dots, color: "rgba(255,255,255, .05)", gap: 8, size: 2 }),
420
+ /* @__PURE__ */ H(pt, {}),
421
+ /* @__PURE__ */ H(wt, {}),
422
+ /* @__PURE__ */ H(yt, { flowId: "gid://sagittarius/Flow/1" }),
423
+ /* @__PURE__ */ H(mt, { flowId: F })
424
424
  ] });
425
425
  };
426
426
  export {
@@ -2,9 +2,9 @@ import { useService as b, useStore as B } from "../../utils/contextStore.js";
2
2
  import C from "react";
3
3
  import "merge-props";
4
4
  import { DFlowReactiveService as M } from "./DFlow.service.js";
5
- import { DFlowFunctionReactiveService as _ } from "../d-flow-function/DFlowFunction.service.js";
5
+ import { DFlowFunctionReactiveService as k } from "../d-flow-function/DFlowFunction.service.js";
6
6
  import { hashToColor as O } from "./DFlow.util.js";
7
- import { DFlowDataTypeReactiveService as k } from "../d-flow-data-type/DFlowDataType.service.js";
7
+ import { DFlowDataTypeReactiveService as A } from "../d-flow-data-type/DFlowDataType.service.js";
8
8
  const V = /* @__PURE__ */ new Map([["std", "default"]]), j = (i, m) => {
9
9
  if (!m || i.size === 0) return "";
10
10
  const v = /[:._\-\/\s]+/, o = m.trim().toLowerCase();
@@ -33,7 +33,7 @@ const V = /* @__PURE__ */ new Map([["std", "default"]]), j = (i, m) => {
33
33
  }
34
34
  return n !== null ? i.get(n) : "";
35
35
  }, Z = (i, m, v) => {
36
- const o = b(M), n = B(M), u = b(_), l = B(_), T = b(k), a = B(k), t = C.useMemo(() => o.getById(i, {
36
+ const o = b(M), n = B(M), u = b(k), l = B(k), T = b(A), a = B(A), t = C.useMemo(() => o.getById(i, {
37
37
  namespaceId: m,
38
38
  projectId: v
39
39
  }), [i, n]);
@@ -41,9 +41,9 @@ const V = /* @__PURE__ */ new Map([["std", "default"]]), j = (i, m) => {
41
41
  if (!t) return [];
42
42
  const d = [];
43
43
  let r = 0;
44
- const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), A = (e, s = f) => (s.has(e) || s.set(e, u.getById(e)), s.get(e)), $ = (e, s = g) => (s.has(e) || s.set(e, T.getDataType(e)), s.get(e));
45
- let R = 0;
46
- const E = () => ++R;
44
+ const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), $ = (e, s = f) => (s.has(e) || s.set(e, u.getById(e)), s.get(e)), R = (e, s = g) => (s.has(e) || s.set(e, T.getDataType(e)), s.get(e));
45
+ let _ = 0;
46
+ const E = () => ++_;
47
47
  let W = 0;
48
48
  d.push({
49
49
  id: `${t.id}`,
@@ -84,10 +84,10 @@ const V = /* @__PURE__ */ new Map([["std", "default"]]), j = (i, m) => {
84
84
  // global node level
85
85
  }
86
86
  });
87
- const z = A(e?.functionDefinition?.id, S);
87
+ const z = $(e?.functionDefinition?.id, S);
88
88
  e.parameters?.nodes?.forEach((c) => {
89
89
  const F = z?.parameterDefinitions.find((x) => x.id == c?.runtimeParameter?.id)?.dataTypeIdentifier;
90
- if ((F ? $(F, N) : void 0)?.variant === "NODE") {
90
+ if ((F ? R(F, N) : void 0)?.variant === "NODE") {
91
91
  if (c?.value && c.value.__typename === "NodeFunctionIdWrapper") {
92
92
  const x = `${D}-group-${r++}`, w = [...h, E()];
93
93
  d.push({
@@ -34,7 +34,7 @@ const ve = (w) => {
34
34
  const {
35
35
  node: o,
36
36
  flowId: a
37
- } = w, D = p(V), I = S(V), l = p(g), _ = S(g), h = p(E), f = B(o.id, a), c = r.useRef(/* @__PURE__ */ new Set()), [, F] = r.useTransition(), v = r.useMemo(() => D.getById(o.functionDefinition?.id), [I]), N = r.useMemo(() => {
37
+ } = w, D = p(V), I = S(V), c = p(g), h = S(g), F = p(E), f = B(o.id, a), u = r.useRef(/* @__PURE__ */ new Set()), [, _] = r.useTransition(), v = r.useMemo(() => D.getById(o.functionDefinition?.id), [I]), N = r.useMemo(() => {
38
38
  const t = {};
39
39
  return v?.parameterDefinitions?.forEach((e) => {
40
40
  t[e.id] = e;
@@ -47,23 +47,23 @@ const ve = (w) => {
47
47
  }, [s]), P = r.useMemo(() => {
48
48
  const t = {};
49
49
  return s.forEach((e) => {
50
- t[e?.id] = (u) => {
50
+ t[e?.id] = (l) => {
51
51
  const n = f?.find((i) => i.parameterId === e?.id);
52
52
  return n ? n.message[0]?.content || "Invalid value" : null;
53
53
  };
54
54
  }), t;
55
55
  }, [s, f]), x = r.useCallback((t) => {
56
- F(async () => {
56
+ _(async () => {
57
57
  for (const e of s) {
58
- if (!c.current.has(e?.id)) continue;
59
- const u = t[e?.id], n = e?.value, i = u?.[0]?.value;
60
- n && n.__typename === "NodeFunctionIdWrapper" && n.id && l.getLinkedNodesById(a, n.id).reverse().forEach((y) => {
61
- y.id && h.deleteById(y.id);
62
- }), (!i || !u) && await l.setParameterValue(a, o.id, e.id, void 0);
58
+ if (!u.current.has(e?.id)) continue;
59
+ const l = t[e?.id], n = e?.value, i = l?.[0]?.value;
60
+ n && n.__typename === "NodeFunctionIdWrapper" && n.id && c.getLinkedNodesById(a, n.id).reverse().forEach((y) => {
61
+ y.id && F.deleteById(y.id);
62
+ }), (!i || !l) && await c.setParameterValue(a, o.id, e.id, void 0);
63
63
  try {
64
64
  const d = JSON.parse(String(i));
65
65
  if (!i?.__typename) {
66
- await l.setParameterValue(a, o.id, e.id, i ? {
66
+ await c.setParameterValue(a, o.id, e.id, i ? {
67
67
  __typename: "LiteralValue",
68
68
  value: d
69
69
  } : void 0);
@@ -71,18 +71,18 @@ const ve = (w) => {
71
71
  }
72
72
  } catch {
73
73
  if (!i?.__typename) {
74
- await l.setParameterValue(a, o.id, e.id, i ? {
74
+ await c.setParameterValue(a, o.id, e.id, i ? {
75
75
  __typename: "LiteralValue",
76
76
  value: i
77
77
  } : void 0);
78
78
  continue;
79
79
  }
80
80
  }
81
- await l.setParameterValue(a, o.id, e.id, i.__typename === "LiteralValue" ? i.value ? i : void 0 : i);
81
+ await c.setParameterValue(a, o.id, e.id, i.__typename === "LiteralValue" ? i.value ? i : void 0 : i);
82
82
  }
83
- c.current.clear();
83
+ u.current.clear();
84
84
  });
85
- }, [_, s]), [T, L] = M({
85
+ }, [h, s]), [T, L] = M({
86
86
  initialValues: b,
87
87
  validate: P,
88
88
  truthyValidationBeforeSubmit: !1,
@@ -93,9 +93,9 @@ const ve = (w) => {
93
93
  flexDirection: "column"
94
94
  }, children: s.map((t) => {
95
95
  if (!t) return null;
96
- const e = N[t.id], u = e?.names ? e?.names[0]?.content : e?.id, n = e?.descriptions ? e?.descriptions[0]?.content : JSON.stringify(e?.dataTypeIdentifier);
97
- return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(J, { flowId: a, nodeId: o.id, parameterId: t.id, title: u, description: n, clearable: !0, onChange: () => {
98
- c.current.add(t.id), L();
96
+ const e = N[t.id], l = e?.names ? e?.names[0]?.content : e?.id, n = e?.descriptions ? e?.descriptions[0]?.content : JSON.stringify(e?.dataTypeIdentifier);
97
+ return /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(J, { flowId: a, nodeId: o.id, parameterId: t.id, title: l, description: n, clearable: !0, onChange: () => {
98
+ u.current.add(t.id), L();
99
99
  }, ...T.getInputProps(t.id) }) });
100
100
  }) });
101
101
  };
@@ -55,12 +55,12 @@ const Oe = p.forwardRef((I, e) => {
55
55
  }
56
56
  }
57
57
  return l;
58
- }, [f]), P = p.useCallback((l) => l ? l.split("/").filter(Boolean).every((c, o) => w[o] === c) : !1, [w]), [S, _] = p.useState("default"), [m, F] = p.useState(0), g = p.useCallback(() => {
59
- _("allOpen"), F((l) => l + 1);
58
+ }, [f]), P = p.useCallback((l) => l ? l.split("/").filter(Boolean).every((c, o) => w[o] === c) : !1, [w]), [S, F] = p.useState("default"), [m, _] = p.useState(0), g = p.useCallback(() => {
59
+ F("allOpen"), _((l) => l + 1);
60
60
  }, []), k = p.useCallback(() => {
61
- _("allClosed"), F((l) => l + 1);
61
+ F("allClosed"), _((l) => l + 1);
62
62
  }, []), y = p.useCallback(() => {
63
- _("activePath"), F((l) => l + 1);
63
+ F("activePath"), _((l) => l + 1);
64
64
  }, []);
65
65
  p.useImperativeHandle(e, () => ({
66
66
  openAll: g,
@@ -91,7 +91,7 @@ const Oe = p.forwardRef((I, e) => {
91
91
  namespaceId: C,
92
92
  projectId: P,
93
93
  ...S
94
- } = I, _ = v === void 0 ? !1 : v, [m, F] = p.useState(_);
94
+ } = I, F = v === void 0 ? !1 : v, [m, _] = p.useState(F);
95
95
  let g;
96
96
  e[0] !== w || e[1] !== C || e[2] !== h || e[3] !== u || e[4] !== f || e[5] !== P ? (g = {
97
97
  onCreate: h,
@@ -109,7 +109,7 @@ const Oe = p.forwardRef((I, e) => {
109
109
  type: "folder"
110
110
  }, e[7] = d, e[8] = s, e[9] = b) : b = e[9];
111
111
  let x;
112
- e[10] === Symbol.for("react.memo_cache_sentinel") ? (x = () => F(ne), e[10] = x) : x = e[10];
112
+ e[10] === Symbol.for("react.memo_cache_sentinel") ? (x = () => _(ne), e[10] = x) : x = e[10];
113
113
  const l = N("d-folder", S);
114
114
  let r;
115
115
  e[11] === Symbol.for("react.memo_cache_sentinel") ? (r = {
@@ -186,17 +186,17 @@ const Oe = p.forwardRef((I, e) => {
186
186
  const P = h + v;
187
187
  let S;
188
188
  e[22] !== P ? (S = W(P), e[22] = P, e[23] = S) : S = e[23];
189
- let _;
190
- e[24] !== S ? (_ = /* @__PURE__ */ a(U, { color: S, size: 12 }), e[24] = S, e[25] = _) : _ = e[25];
189
+ let F;
190
+ e[24] !== S ? (F = /* @__PURE__ */ a(U, { color: S, size: 12 }), e[24] = S, e[25] = F) : F = e[25];
191
191
  let m;
192
192
  e[26] !== v ? (m = /* @__PURE__ */ a(G, { children: v }), e[26] = v, e[27] = m) : m = e[27];
193
- let F;
194
- e[28] !== u || e[29] !== C || e[30] !== _ || e[31] !== m ? (F = /* @__PURE__ */ R("div", { ...u, onClick: C, children: [
195
- _,
193
+ let _;
194
+ e[28] !== u || e[29] !== C || e[30] !== F || e[31] !== m ? (_ = /* @__PURE__ */ R("div", { ...u, onClick: C, children: [
195
+ F,
196
196
  m
197
- ] }), e[28] = u, e[29] = C, e[30] = _, e[31] = m, e[32] = F) : F = e[32];
197
+ ] }), e[28] = u, e[29] = C, e[30] = F, e[31] = m, e[32] = _) : _ = e[32];
198
198
  let g;
199
- return e[33] !== s || e[34] !== f || e[35] !== w || e[36] !== F ? (g = /* @__PURE__ */ a(s, { contextData: f, ...w, children: F }), e[33] = s, e[34] = f, e[35] = w, e[36] = F, e[37] = g) : g = e[37], g;
199
+ return e[33] !== s || e[34] !== f || e[35] !== w || e[36] !== _ ? (g = /* @__PURE__ */ a(s, { contextData: f, ...w, children: _ }), e[33] = s, e[34] = f, e[35] = w, e[36] = _, e[37] = g) : g = e[37], g;
200
200
  };
201
201
  function ne(I) {
202
202
  return !I;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, Fragment as a, jsxs as n } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { ContextMenu as x, ContextMenuTrigger as s, ContextMenuPortal as C, ContextMenuContent as p, ContextMenuSub as S, ContextMenuSubTrigger as f, ContextMenuSubContent as M, ContextMenuItem as r, ContextMenuSeparator as g } from "../context-menu/ContextMenu.js";
3
+ import { ContextMenu as x, ContextMenuTrigger as s, ContextMenuPortal as C, ContextMenuContent as p, ContextMenuSub as S, ContextMenuSubTrigger as M, ContextMenuSubContent as f, ContextMenuItem as r, ContextMenuSeparator as g } from "../context-menu/ContextMenu.js";
4
4
  import { Flex as v } from "../flex/Flex.js";
5
5
  import { Text as i } from "../text/Text.js";
6
6
  import { IconChevronRight as w, IconEdit as D, IconTrash as F } from "@tabler/icons-react";
@@ -14,18 +14,18 @@ import "../d-flow-data-type/rules/DFlowDataTypeContainsTypeRule.js";
14
14
  import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
15
15
  import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
16
16
  import "js-md5";
17
- const K = (t) => {
17
+ const L = (t) => {
18
18
  const {
19
19
  children: l
20
20
  } = t, m = R(c), d = T(c), u = h.useMemo(() => m.values(), [d]);
21
21
  return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ n(x, { children: [
22
22
  /* @__PURE__ */ e(s, { asChild: !0, children: l }),
23
23
  /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ n(S, { children: [
24
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ n(v, { align: "center", justify: "space-between", w: "100%", children: [
24
+ /* @__PURE__ */ e(M, { children: /* @__PURE__ */ n(v, { align: "center", justify: "space-between", w: "100%", children: [
25
25
  /* @__PURE__ */ e(i, { children: "New flow" }),
26
26
  /* @__PURE__ */ e(w, { size: 12 })
27
27
  ] }) }),
28
- /* @__PURE__ */ e(M, { children: u.map((o) => /* @__PURE__ */ e(r, { onSelect: () => {
28
+ /* @__PURE__ */ e(f, { children: u.map((o) => /* @__PURE__ */ e(r, { onSelect: () => {
29
29
  t.onCreate?.(o.id);
30
30
  }, children: o.names[0]?.content ?? o.id }, o.id)) }),
31
31
  /* @__PURE__ */ e(g, {}),
@@ -41,5 +41,5 @@ const K = (t) => {
41
41
  ] }) });
42
42
  };
43
43
  export {
44
- K as DFlowFolderContextMenu
44
+ L as DFlowFolderContextMenu
45
45
  };
@@ -1,6 +1,6 @@
1
- import { jsx as o, jsxs as w } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as y } from "react/jsx-runtime";
2
2
  import { c as O } from "../../_virtual/compiler-runtime.js";
3
- import y from "react";
3
+ import F from "react";
4
4
  import "@radix-ui/react-checkbox";
5
5
  import "merge-props";
6
6
  import "@tabler/icons-react";
@@ -17,12 +17,12 @@ import "../form/TextInput.js";
17
17
  import { useForm as S } from "../form/useForm.js";
18
18
  import { DialogClose as I, DialogPortal as j, DialogContent as v, Dialog as N } from "../dialog/Dialog.js";
19
19
  import { Flex as P } from "../flex/Flex.js";
20
- import { Button as F } from "../button/Button.js";
20
+ import { Button as _ } from "../button/Button.js";
21
21
  import { DFlowFolderItemPathInput as k } from "./DFlowFolderItemPathInput.js";
22
22
  const te = (t) => {
23
23
  const e = O.c(23), {
24
24
  open: m
25
- } = t, [g, b] = y.useState(m);
25
+ } = t, [g, b] = F.useState(m);
26
26
  let c;
27
27
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
28
28
  name: ""
@@ -31,7 +31,7 @@ const te = (t) => {
31
31
  let s, f;
32
32
  e[1] !== m ? (s = () => {
33
33
  b(m);
34
- }, f = [m], e[1] = m, e[2] = s, e[3] = f) : (s = e[2], f = e[3]), y.useEffect(s, f);
34
+ }, f = [m], e[1] = m, e[2] = s, e[3] = f) : (s = e[2], f = e[3]), F.useEffect(s, f);
35
35
  let u;
36
36
  e[4] === Symbol.for("react.memo_cache_sentinel") ? (u = {
37
37
  name: B
@@ -40,28 +40,28 @@ const te = (t) => {
40
40
  e[5] !== t ? (p = {
41
41
  initialValues: x,
42
42
  validate: u,
43
- onSubmit: (_) => {
44
- t.onCreate?.(_.name, t.flowTypeId), t.onOpenChange?.(!1);
43
+ onSubmit: (w) => {
44
+ t.onCreate?.(w.name, t.flowTypeId), t.onOpenChange?.(!1);
45
45
  }
46
46
  }, e[5] = t, e[6] = p) : p = e[6];
47
47
  const [C, D] = S(p);
48
48
  let i;
49
- e[7] !== t ? (i = (_) => {
50
- t.onOpenChange?.(_);
49
+ e[7] !== t ? (i = (w) => {
50
+ t.onOpenChange?.(w);
51
51
  }, e[7] = t, e[8] = i) : i = e[8];
52
52
  let l;
53
53
  e[9] !== C ? (l = C.getInputProps("name"), e[9] = C, e[10] = l) : l = e[10];
54
54
  let n;
55
55
  e[11] !== l ? (n = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(k, { description: "You can choose a name here and only use alphanumeric names.", title: "Name of the flow", ...l }) }), e[11] = l, e[12] = n) : n = e[12];
56
56
  let h;
57
- e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(I, { asChild: !0, children: /* @__PURE__ */ o(F, { color: "secondary", children: "No, go back!" }) }), e[13] = h) : h = e[13];
57
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ o(I, { asChild: !0, children: /* @__PURE__ */ o(_, { color: "secondary", children: "No, go back!" }) }), e[13] = h) : h = e[13];
58
58
  let r;
59
- e[14] !== D ? (r = /* @__PURE__ */ w(P, { justify: "space-between", align: "center", children: [
59
+ e[14] !== D ? (r = /* @__PURE__ */ y(P, { justify: "space-between", align: "center", children: [
60
60
  h,
61
- /* @__PURE__ */ o(F, { color: "success", onClick: D, children: "Yes, create!" })
61
+ /* @__PURE__ */ o(_, { color: "success", onClick: D, children: "Yes, create!" })
62
62
  ] }), e[14] = D, e[15] = r) : r = e[15];
63
63
  let a;
64
- e[16] !== n || e[17] !== r ? (a = /* @__PURE__ */ o(j, { children: /* @__PURE__ */ w(v, { autoFocus: !0, showCloseButton: !0, title: "Create new flow", children: [
64
+ e[16] !== n || e[17] !== r ? (a = /* @__PURE__ */ o(j, { children: /* @__PURE__ */ y(v, { autoFocus: !0, showCloseButton: !0, title: "Create new flow", children: [
65
65
  n,
66
66
  r
67
67
  ] }) }), e[16] = n, e[17] = r, e[18] = a) : a = e[18];
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as y } from "react/jsx-runtime";
2
- import { c as b } from "../../_virtual/compiler-runtime.js";
2
+ import { c as _ } from "../../_virtual/compiler-runtime.js";
3
3
  import { DialogClose as x, DialogPortal as v, DialogContent as j, Dialog as F } from "../dialog/Dialog.js";
4
4
  import { Text as g } from "../text/Text.js";
5
5
  import { Badge as R } from "../badge/Badge.js";
@@ -7,11 +7,11 @@ import { Flex as S } from "../flex/Flex.js";
7
7
  import { Button as w } from "../button/Button.js";
8
8
  import B from "react";
9
9
  const Y = (t) => {
10
- const e = b.c(18), {
11
- open: _
12
- } = t, [s, C] = B.useState(_);
10
+ const e = _.c(18), {
11
+ open: C
12
+ } = t, [s, b] = B.useState(C);
13
13
  let a;
14
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = (u) => C(u), e[0] = a) : a = e[0];
14
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = (u) => b(u), e[0] = a) : a = e[0];
15
15
  const d = t.contextData.type == "item" ? "Remove flow" : "Remove folder", h = t.contextData.type == "item" ? "Are you sure you want to remove flow" : "Are you sure you want to remove folder";
16
16
  let c;
17
17
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (c = {
@@ -19,24 +19,24 @@ import "@radix-ui/react-radio-group";
19
19
  import "../form/SwitchInput.js";
20
20
  import "../form/TextInput.js";
21
21
  import { useForm as C } from "../form/useForm.js";
22
- const G = (e) => {
22
+ const H = (e) => {
23
23
  const {
24
- open: a
25
- } = e, [c, h] = i.useState(a), u = i.useMemo(() => ({
24
+ open: n
25
+ } = e, [c, h] = i.useState(n), u = i.useMemo(() => ({
26
26
  path: e.contextData.name
27
27
  }), []);
28
28
  i.useEffect(() => {
29
- h(a);
30
- }, [a]);
31
- const [s, d] = C({
29
+ h(n);
30
+ }, [n]);
31
+ const [s, p] = C({
32
32
  initialValues: u,
33
33
  validate: {
34
34
  path: (o) => null
35
35
  },
36
36
  onSubmit: (o) => {
37
- e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "folder" && e.contextData.flow.forEach((n) => {
38
- const p = n.name?.replace(e.contextData.name, o.path) ?? n.name;
39
- e.onRename?.(n, p);
37
+ e.contextData.type === "item" ? e.onRename?.(e.contextData.flow, o.path) : e.contextData.type === "folder" && e.contextData.flow.forEach((a) => {
38
+ const d = a.name?.replace(e.contextData.name, o.path) ?? a.name;
39
+ e.onRename?.(a, d);
40
40
  });
41
41
  }
42
42
  });
@@ -46,10 +46,10 @@ const G = (e) => {
46
46
  /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(x, { description: "You can choose a new name here and only use alphanumeric names.", title: e.contextData.type == "item" ? "Name of the flow" : "Name of the folder", ...s.getInputProps("path") }) }),
47
47
  /* @__PURE__ */ r(w, { justify: "space-between", align: "center", children: [
48
48
  /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "secondary", children: "No, go back!" }) }),
49
- /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "success", onClick: d, children: "Yes, save!" }) })
49
+ /* @__PURE__ */ t(m, { asChild: !0, children: /* @__PURE__ */ t(l, { color: "success", onClick: p, children: "Yes, save!" }) })
50
50
  ] })
51
51
  ] }) }) });
52
52
  };
53
53
  export {
54
- G as DFlowFolderRenameDialog
54
+ H as DFlowFolderRenameDialog
55
55
  };
@@ -7,9 +7,9 @@ import { useStore as h, useReactFlow as Y, Handle as g, Position as f } from "@x
7
7
  import { Card as q } from "../card/Card.js";
8
8
  import '../../assets/components/d-flow-function/DFlowFunctionDefaultCard.style.css';/* empty css */
9
9
  import { Flex as G } from "../flex/Flex.js";
10
- import { IconNote as F } from "@tabler/icons-react";
10
+ import { IconNote as D } from "@tabler/icons-react";
11
11
  import { Text as y } from "../text/Text.js";
12
- import { DFlowFunctionReactiveService as D } from "./DFlowFunction.service.js";
12
+ import { DFlowFunctionReactiveService as _ } from "./DFlowFunction.service.js";
13
13
  import { useNodeValidation as J } from "../d-flow-validation/DNodeValidation.hook.js";
14
14
  import "../d-flow/DFlow.js";
15
15
  import { DFlowReactiveService as T } from "../d-flow/DFlow.service.js";
@@ -32,12 +32,12 @@ const Be = X((d) => {
32
32
  id: p,
33
33
  width: C = 0,
34
34
  height: M = 0
35
- } = d, R = h((o) => o.width), z = h((o) => o.height), P = Y(), u = v(N), I = w(N), V = v(T), b = w(T), k = v(D), S = w(D), r = c.useMemo(() => V.getNodeById(e.flowId, e.nodeId), [b, e]), l = c.useMemo(() => r ? k.getById(r.functionDefinition?.id) : void 0, [S, e, r]), $ = J(e.nodeId, e.flowId), x = c.useMemo(() => I.find((o) => o.active)?.id, [I, u]), A = h((o) => {
35
+ } = d, R = h((o) => o.width), z = h((o) => o.height), P = Y(), u = v(N), I = w(N), V = v(T), b = w(T), k = v(_), S = w(_), r = c.useMemo(() => V.getNodeById(e.flowId, e.nodeId), [b, e]), l = c.useMemo(() => r ? k.getById(r.functionDefinition?.id) : void 0, [S, e, r]), $ = J(e.nodeId, e.flowId), x = c.useMemo(() => I.find((o) => o.active)?.id, [I, u]), A = h((o) => {
36
36
  const i = o.nodes.filter((n) => n.parentId === d.parentId);
37
37
  let a;
38
38
  return i.forEach((n) => {
39
- const s = n.data?.index ?? 1 / 0, _ = a?.data?.index ?? 1 / 0;
40
- (!a || s < _) && (a = n);
39
+ const s = n.data?.index ?? 1 / 0, F = a?.data?.index ?? 1 / 0;
40
+ (!a || s < F) && (a = n);
41
41
  }), a;
42
42
  }), L = (o) => o.split(/(\$\{[^}]+\})/).filter(Boolean).flatMap((i) => i.startsWith("${") ? [i.slice(2, -1)] : i.split(/(\s*,\s*)/).filter(Boolean).flatMap((a) => a.trim() === "," ? [","] : a.trim() ? [a.trim()] : [])), W = c.useMemo(() => L(l?.displayMessages[0]?.content ?? "").map((o) => {
43
43
  const i = r?.parameters?.nodes?.find((s) => l?.parameterDefinitions?.find((j) => j.id == s?.id)?.identifier == o), a = $?.filter((s) => s.parameterId === i?.id), n = a?.length ? H[a[0].type] : {};
@@ -74,7 +74,7 @@ const Be = X((d) => {
74
74
  active: !1,
75
75
  closeable: !0,
76
76
  children: /* @__PURE__ */ m(E, { children: [
77
- /* @__PURE__ */ t(F, { color: B(e.nodeId), size: 12 }),
77
+ /* @__PURE__ */ t(D, { color: B(e.nodeId), size: 12 }),
78
78
  /* @__PURE__ */ t(y, { size: "sm", children: l?.names[0]?.content })
79
79
  ] }),
80
80
  content: /* @__PURE__ */ t(K, { flowId: d.data.flowId, node: r })
@@ -107,7 +107,7 @@ const Be = X((d) => {
107
107
  /* @__PURE__ */ m(G, { align: "center", style: {
108
108
  gap: "0.7rem"
109
109
  }, children: [
110
- /* @__PURE__ */ t(F, { color: B(e.nodeId), size: 16 }),
110
+ /* @__PURE__ */ t(D, { color: B(e.nodeId), size: 16 }),
111
111
  /* @__PURE__ */ t(y, { size: "md", children: W })
112
112
  ] })
113
113
  ] }, p);
@@ -3,12 +3,12 @@ import { c as u } from "../../_virtual/compiler-runtime.js";
3
3
  import { useService as p } from "../../utils/contextStore.js";
4
4
  import g, { memo as w } from "react";
5
5
  import "merge-props";
6
- import { Handle as S, Position as _ } from "@xyflow/react";
7
- import { Button as v } from "../button/Button.js";
8
- import { IconPlus as F } from "@tabler/icons-react";
9
- import { useSuggestions as x } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
6
+ import { Handle as S, Position as v } from "@xyflow/react";
7
+ import { Button as F } from "../button/Button.js";
8
+ import { IconPlus as x } from "@tabler/icons-react";
9
+ import { useSuggestions as y } from "../d-flow-suggestion/DFlowSuggestion.hook.js";
10
10
  import "../d-flow/DFlow.js";
11
- import { DFlowReactiveService as y } from "../d-flow/DFlow.service.js";
11
+ import { DFlowReactiveService as _ } from "../d-flow/DFlow.service.js";
12
12
  import "js-md5";
13
13
  import "../d-flow-data-type/rules/DFlowDataTypeRegexRule.js";
14
14
  import "../d-flow-data-type/rules/DFlowDataTypeNumberRangeRule.js";
@@ -18,7 +18,7 @@ import "../d-flow-data-type/rules/DFlowDataTypeContainsKeyRule.js";
18
18
  import "../d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js";
19
19
  import { DFlowSuggestionMenu as I } from "../d-flow-suggestion/DFlowSuggestionMenu.js";
20
20
  const J = w((e) => {
21
- const t = u.c(12), [, l] = g.useTransition(), d = x(e.data.flowId, e.data.parentFunction?.id), o = p(y);
21
+ const t = u.c(12), [, l] = g.useTransition(), d = y(e.data.flowId, e.data.parentFunction?.id), o = p(_);
22
22
  let a;
23
23
  t[0] !== o || t[1] !== e.data.flowId ? (a = o.getById(e.data.flowId), t[0] = o, t[1] = e.data.flowId, t[2] = a) : a = t[2];
24
24
  const m = a;
@@ -29,11 +29,11 @@ const J = w((e) => {
29
29
  });
30
30
  }, t[3] = m?.id, t[4] = o, t[5] = e.data.parentFunction?.id, t[6] = l, t[7] = i) : i = t[7];
31
31
  let n;
32
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(v, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
32
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ f(F, { paddingSize: "xxs", variant: "normal", color: "secondary", children: [
33
33
  /* @__PURE__ */ s(S, { isConnectable: !1, draggable: !1, type: "target", className: "d-flow-viewport-default-card__handle d-flow-viewport-default-card__handle--target", style: {
34
34
  top: "2px"
35
- }, position: _.Top }),
36
- /* @__PURE__ */ s(F, { size: 12 })
35
+ }, position: v.Top }),
36
+ /* @__PURE__ */ s(x, { size: 12 })
37
37
  ] }), t[8] = n) : n = t[8];
38
38
  let r;
39
39
  return t[9] !== d || t[10] !== i ? (r = /* @__PURE__ */ s(I, { onSuggestionSelect: i, suggestions: d, triggerContent: n }), t[9] = d, t[10] = i, t[11] = r) : r = t[11], r;