@ovalbee/flow-viewer 0.0.4 → 0.0.5
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.
- package/dist/flow-viewer.cjs +76 -76
- package/dist/flow-viewer.css +1 -1
- package/dist/flow-viewer.js +380 -374
- package/package.json +9 -8
package/dist/flow-viewer.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Handle as
|
|
1
|
+
import { defineComponent as R, inject as ne, createElementBlock as r, openBlock as i, unref as M, normalizeClass as U, createElementVNode as f, createCommentVNode as z, createBlock as C, normalizeStyle as F, toDisplayString as V, Fragment as P, computed as q, markRaw as Y, ref as ie, onBeforeUnmount as ce, provide as se, createVNode as de, withCtx as re, Teleport as le, renderList as B, h as G, resolveDynamicComponent as he } from "vue";
|
|
2
|
+
import { Handle as I, Position as j, ConnectionLineType as ye, VueFlow as pe } from "@vue-flow/core";
|
|
3
3
|
import { Controls as ke } from "@vue-flow/controls";
|
|
4
4
|
import { MiniMap as ue } from "@vue-flow/minimap";
|
|
5
|
-
const
|
|
5
|
+
const ee = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-flow-viewer-node__header" }, ge = ["innerHTML"], we = { key: 1 }, fe = { class: "ob-flow-viewer-node__title-wrap" }, Me = { class: "ob-flow-viewer-node__title" }, xe = { class: "ob-flow-viewer-node__key" }, be = { class: "ob-flow-viewer-node__description ob-flow-viewer-node__description--clamped" }, ze = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "ob-flow-viewer-node__widget-label"
|
|
8
|
+
}, He = {
|
|
6
9
|
key: 1,
|
|
7
10
|
class: "ob-flow-viewer-node__widget-image",
|
|
8
11
|
"aria-hidden": "true"
|
|
9
|
-
}, _e = /* @__PURE__ */
|
|
12
|
+
}, _e = /* @__PURE__ */ R({
|
|
10
13
|
__name: "FlowViewerNode",
|
|
11
14
|
props: {
|
|
12
15
|
id: {},
|
|
@@ -30,103 +33,100 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
30
33
|
events: {}
|
|
31
34
|
},
|
|
32
35
|
setup(t) {
|
|
33
|
-
const n = t, v = ne(
|
|
34
|
-
return (
|
|
36
|
+
const n = t, v = ne(ee), x = n.data.available ? n.data.description : "This node template is unavailable.";
|
|
37
|
+
return (l, p) => {
|
|
35
38
|
var k, b;
|
|
36
|
-
return i(),
|
|
37
|
-
class:
|
|
39
|
+
return i(), r("article", {
|
|
40
|
+
class: U(["ob-flow-viewer-node", { "ob-flow-viewer-node--unavailable": !t.data.available }]),
|
|
38
41
|
tabindex: "0",
|
|
39
42
|
"aria-label": `${t.data.name} node`,
|
|
40
|
-
onMouseenter:
|
|
41
|
-
var
|
|
42
|
-
return (
|
|
43
|
+
onMouseenter: p[0] || (p[0] = (o) => {
|
|
44
|
+
var d;
|
|
45
|
+
return (d = M(v)) == null ? void 0 : d.show(t.data, o);
|
|
43
46
|
}),
|
|
44
|
-
onMouseleave:
|
|
45
|
-
var
|
|
46
|
-
return (
|
|
47
|
+
onMouseleave: p[1] || (p[1] = (o) => {
|
|
48
|
+
var d;
|
|
49
|
+
return (d = M(v)) == null ? void 0 : d.hide();
|
|
47
50
|
}),
|
|
48
|
-
onClick:
|
|
49
|
-
var
|
|
50
|
-
return (
|
|
51
|
+
onClick: p[2] || (p[2] = (o) => {
|
|
52
|
+
var d;
|
|
53
|
+
return (d = M(v)) == null ? void 0 : d.show(t.data, o);
|
|
51
54
|
}),
|
|
52
|
-
onFocus:
|
|
53
|
-
var
|
|
54
|
-
return (
|
|
55
|
+
onFocus: p[3] || (p[3] = (o) => {
|
|
56
|
+
var d;
|
|
57
|
+
return (d = M(v)) == null ? void 0 : d.show(t.data, o);
|
|
55
58
|
}),
|
|
56
|
-
onBlur:
|
|
57
|
-
var
|
|
58
|
-
return (
|
|
59
|
+
onBlur: p[4] || (p[4] = (o) => {
|
|
60
|
+
var d;
|
|
61
|
+
return (d = M(v)) == null ? void 0 : d.hide();
|
|
59
62
|
})
|
|
60
63
|
}, [
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
f("header", ve, [
|
|
65
|
+
f("span", {
|
|
63
66
|
class: "ob-flow-viewer-node__icon",
|
|
64
|
-
style:
|
|
67
|
+
style: F({ "--ob-node-icon-color": ((k = t.data.icon) == null ? void 0 : k.color) ?? "#64748b" }),
|
|
65
68
|
"aria-hidden": "true"
|
|
66
69
|
}, [
|
|
67
|
-
(b = t.data.icon) != null && b.svg ? (i(),
|
|
70
|
+
(b = t.data.icon) != null && b.svg ? (i(), r("span", {
|
|
68
71
|
key: 0,
|
|
69
72
|
class: "ob-flow-viewer-node__icon-svg",
|
|
70
73
|
innerHTML: t.data.icon.svg
|
|
71
|
-
}, null, 8,
|
|
74
|
+
}, null, 8, ge)) : (i(), r("span", we, V(t.data.available ? t.data.name.slice(0, 1).toUpperCase() : "?"), 1))
|
|
72
75
|
], 4),
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
f("span", fe, [
|
|
77
|
+
f("strong", Me, V(t.data.name), 1),
|
|
78
|
+
f("span", xe, V(t.data.key), 1)
|
|
76
79
|
])
|
|
77
80
|
]),
|
|
78
|
-
|
|
79
|
-
t.data.widgetPreview && t.data.available ? (i(),
|
|
81
|
+
f("p", be, V(M(x)), 1),
|
|
82
|
+
t.data.widgetPreview && t.data.available ? (i(), r("div", {
|
|
80
83
|
key: 0,
|
|
81
|
-
class:
|
|
84
|
+
class: U(["ob-flow-viewer-node__widget", `ob-flow-viewer-node__widget--${t.data.widgetPreview}`]),
|
|
82
85
|
"aria-label": "Widget preview"
|
|
83
86
|
}, [
|
|
84
|
-
t.data.widgetPreview === "button" ? (i(),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
], 64)) : t.data.widgetPreview === "dataset" ? (i(), l("span", ze)) : (i(), l(q, { key: 2 }, [
|
|
88
|
-
y[7] || (y[7] = m("span", null, null, -1)),
|
|
89
|
-
y[8] || (y[8] = m("span", null, null, -1))
|
|
87
|
+
t.data.widgetPreview === "button" ? (i(), r("span", ze)) : t.data.widgetPreview === "dataset" ? (i(), r("span", He)) : (i(), r(P, { key: 2 }, [
|
|
88
|
+
p[5] || (p[5] = f("span", null, null, -1)),
|
|
89
|
+
p[6] || (p[6] = f("span", null, null, -1))
|
|
90
90
|
], 64))
|
|
91
91
|
], 2)) : z("", !0),
|
|
92
|
-
t.data.connectedHandles.has("target") ? (i(),
|
|
92
|
+
t.data.connectedHandles.has("target") ? (i(), C(M(I), {
|
|
93
93
|
key: 1,
|
|
94
94
|
type: "target",
|
|
95
|
-
position: M(
|
|
95
|
+
position: M(j).Top
|
|
96
96
|
}, null, 8, ["position"])) : z("", !0),
|
|
97
|
-
t.data.connectedHandles.has("left") ? (i(),
|
|
97
|
+
t.data.connectedHandles.has("left") ? (i(), C(M(I), {
|
|
98
98
|
key: 2,
|
|
99
99
|
id: "left",
|
|
100
100
|
type: "target",
|
|
101
|
-
position: M(
|
|
101
|
+
position: M(j).Left
|
|
102
102
|
}, null, 8, ["position"])) : z("", !0),
|
|
103
|
-
t.data.connectedHandles.has("right") ? (i(),
|
|
103
|
+
t.data.connectedHandles.has("right") ? (i(), C(M(I), {
|
|
104
104
|
key: 3,
|
|
105
105
|
id: "right",
|
|
106
106
|
type: "target",
|
|
107
|
-
position: M(
|
|
107
|
+
position: M(j).Right
|
|
108
108
|
}, null, 8, ["position"])) : z("", !0),
|
|
109
|
-
t.data.connectedHandles.has("source") ? (i(),
|
|
109
|
+
t.data.connectedHandles.has("source") ? (i(), C(M(I), {
|
|
110
110
|
key: 4,
|
|
111
111
|
type: "source",
|
|
112
|
-
position: M(
|
|
112
|
+
position: M(j).Bottom
|
|
113
113
|
}, null, 8, ["position"])) : z("", !0),
|
|
114
|
-
t.data.connectedHandles.has("left-source") ? (i(),
|
|
114
|
+
t.data.connectedHandles.has("left-source") ? (i(), C(M(I), {
|
|
115
115
|
key: 5,
|
|
116
116
|
id: "left-source",
|
|
117
117
|
type: "source",
|
|
118
|
-
position: M(
|
|
118
|
+
position: M(j).Left
|
|
119
119
|
}, null, 8, ["position"])) : z("", !0),
|
|
120
|
-
t.data.connectedHandles.has("right-source") ? (i(),
|
|
120
|
+
t.data.connectedHandles.has("right-source") ? (i(), C(M(I), {
|
|
121
121
|
key: 6,
|
|
122
122
|
id: "right-source",
|
|
123
123
|
type: "source",
|
|
124
|
-
position: M(
|
|
124
|
+
position: M(j).Right
|
|
125
125
|
}, null, 8, ["position"])) : z("", !0)
|
|
126
126
|
], 42, me);
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
}),
|
|
129
|
+
}), Ve = ["innerHTML"], Ae = /* @__PURE__ */ R({
|
|
130
130
|
__name: "FlowViewerNote",
|
|
131
131
|
props: {
|
|
132
132
|
id: {},
|
|
@@ -150,32 +150,32 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
150
150
|
events: {}
|
|
151
151
|
},
|
|
152
152
|
setup(t) {
|
|
153
|
-
const n = t, v =
|
|
153
|
+
const n = t, v = q(() => ({
|
|
154
154
|
width: `${n.data.appearance.width}px`,
|
|
155
155
|
minHeight: n.data.appearance.height ? `${n.data.appearance.height}px` : void 0
|
|
156
156
|
}));
|
|
157
|
-
return (x,
|
|
158
|
-
class:
|
|
159
|
-
style:
|
|
157
|
+
return (x, l) => (i(), r("article", {
|
|
158
|
+
class: U(["ob-flow-viewer-note", `ob-flow-viewer-note--${t.data.appearance.color}`]),
|
|
159
|
+
style: F(v.value),
|
|
160
160
|
innerHTML: t.data.content
|
|
161
|
-
}, null, 14,
|
|
161
|
+
}, null, 14, Ve));
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), Ce = ["data-theme"], qe = ["data-theme"], $e = { class: "ob-flow-viewer-tooltip__header" }, Le = ["innerHTML"], Pe = { key: 1 }, Te = { class: "ob-flow-viewer-tooltip__title-wrap" }, Ie = { class: "ob-flow-viewer-tooltip__body" }, je = {
|
|
164
164
|
key: 0,
|
|
165
165
|
class: "ob-flow-viewer-tooltip__unavailable"
|
|
166
|
-
},
|
|
166
|
+
}, Ne = {
|
|
167
167
|
key: 1,
|
|
168
168
|
class: "ob-flow-viewer-tooltip__description"
|
|
169
169
|
}, Se = {
|
|
170
170
|
key: 2,
|
|
171
171
|
class: "ob-flow-viewer-node__ports"
|
|
172
|
-
}, Be = { class: "ob-flow-viewer-node__port-group" },
|
|
172
|
+
}, Be = { class: "ob-flow-viewer-node__port-group" }, Fe = {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: "ob-flow-viewer-node__empty"
|
|
175
|
-
},
|
|
175
|
+
}, De = { key: 0 }, Oe = { class: "ob-flow-viewer-node__port-group ob-flow-viewer-node__port-group--outputs" }, Ee = {
|
|
176
176
|
key: 0,
|
|
177
177
|
class: "ob-flow-viewer-node__empty"
|
|
178
|
-
},
|
|
178
|
+
}, Ze = { key: 0 }, W = 72, J = 64, Re = 1.45, La = /* @__PURE__ */ R({
|
|
179
179
|
__name: "FlowViewer",
|
|
180
180
|
props: {
|
|
181
181
|
document: {},
|
|
@@ -190,82 +190,87 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
190
190
|
},
|
|
191
191
|
setup(t) {
|
|
192
192
|
const n = t, v = {
|
|
193
|
-
catalog:
|
|
194
|
-
note:
|
|
193
|
+
catalog: Y(_e),
|
|
194
|
+
note: Y(Ae)
|
|
195
195
|
};
|
|
196
196
|
function x(a) {
|
|
197
197
|
if (a.kind === "note") return a.appearance.height ?? 130;
|
|
198
|
-
const h = a.description ? Math.min(2, Math.max(1, Math.ceil(a.description.length / 34))) : a.available ? 0 : 1,
|
|
199
|
-
return 60 +
|
|
198
|
+
const h = a.description ? Math.min(2, Math.max(1, Math.ceil(a.description.length / 34))) : a.available ? 0 : 1, y = h > 0 ? 10 + h * 19.5 : 0, m = a.available && a.widgetPreview ? 10 + (a.widgetPreview === "dataset" ? 72 : 32) : 0;
|
|
199
|
+
return 60 + y + m;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
201
|
+
const l = ie(null);
|
|
202
|
+
let p = null;
|
|
203
203
|
function k() {
|
|
204
|
-
|
|
204
|
+
p !== null && (clearTimeout(p), p = null);
|
|
205
205
|
}
|
|
206
206
|
function b() {
|
|
207
|
-
k(),
|
|
208
|
-
|
|
207
|
+
k(), p = setTimeout(() => {
|
|
208
|
+
l.value = null, p = null;
|
|
209
209
|
}, 140);
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
ce(k);
|
|
212
212
|
function o(a) {
|
|
213
213
|
const h = /* @__PURE__ */ new Set();
|
|
214
|
-
for (const
|
|
215
|
-
|
|
214
|
+
for (const y of n.document.edges)
|
|
215
|
+
y.source === a && h.add(y.sourceHandle ?? "source"), y.target === a && h.add(y.targetHandle ?? "target");
|
|
216
216
|
return h;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function d(a, h) {
|
|
219
219
|
k();
|
|
220
|
-
const
|
|
221
|
-
if (!(
|
|
222
|
-
const
|
|
223
|
-
let
|
|
224
|
-
|
|
220
|
+
const y = h.currentTarget;
|
|
221
|
+
if (!(y instanceof HTMLElement)) return;
|
|
222
|
+
const m = y.getBoundingClientRect(), s = 12, c = Math.min(404, window.innerWidth - s * 2), w = Math.min(520, window.innerHeight - s * 2);
|
|
223
|
+
let u = m.right + s + c / 2;
|
|
224
|
+
u + c / 2 > window.innerWidth - s && (u = m.left - s - c / 2), u = Math.max(c / 2 + s, Math.min(u, window.innerWidth - c / 2 - s)), l.value = {
|
|
225
225
|
node: a,
|
|
226
|
-
x:
|
|
227
|
-
y: Math.max(s, Math.min(
|
|
226
|
+
x: u,
|
|
227
|
+
y: Math.max(s, Math.min(m.top, window.innerHeight - w - s))
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function g() {
|
|
231
231
|
b();
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
const a = new Map(n.document.nodes.map((
|
|
236
|
-
for (
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
if (
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
V.y,
|
|
246
|
-
g.y + x(P) + Y
|
|
233
|
+
se(ee, { show: d, hide: g });
|
|
234
|
+
const H = q(() => {
|
|
235
|
+
const a = new Map(n.document.nodes.map((c) => [c.id, { ...c.position }])), h = Math.min(...n.document.nodes.map((c) => c.position.x)), y = Math.max(...n.document.nodes.map((c) => c.position.x)), m = (h + y) / 2;
|
|
236
|
+
for (let c = 0; c < n.document.nodes.length; c += 1)
|
|
237
|
+
for (const w of n.document.edges) {
|
|
238
|
+
if (w.sourceHandle || w.targetHandle) continue;
|
|
239
|
+
const u = a.get(w.source), _ = a.get(w.target);
|
|
240
|
+
if (!(!u || !_ || Math.abs(u.x - _.x) >= 40) && (_.x = u.x, _.y > u.y)) {
|
|
241
|
+
const A = n.document.nodes.find((T) => T.id === w.source);
|
|
242
|
+
A && (_.y = Math.max(
|
|
243
|
+
_.y,
|
|
244
|
+
u.y + x(A) + W
|
|
247
245
|
));
|
|
248
246
|
}
|
|
249
247
|
}
|
|
248
|
+
for (const c of a.values())
|
|
249
|
+
c.x = m + (c.x - m) * Re;
|
|
250
250
|
const s = [...n.document.nodes].sort(
|
|
251
|
-
(
|
|
251
|
+
(c, w) => c.position.y - w.position.y || c.position.x - w.position.x
|
|
252
252
|
);
|
|
253
|
-
for (const [
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
256
|
-
for (const
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
for (const [c, w] of s.entries()) {
|
|
254
|
+
const u = a.get(w.id);
|
|
255
|
+
if (u)
|
|
256
|
+
for (const _ of s.slice(0, c)) {
|
|
257
|
+
const A = a.get(_.id);
|
|
258
|
+
if (!A) continue;
|
|
259
|
+
const T = w.kind === "note" ? w.appearance.width : 260, N = _.kind === "note" ? _.appearance.width : 260;
|
|
260
|
+
u.x >= A.x + N + J || A.x >= u.x + T + J || (u.y = Math.max(
|
|
261
|
+
u.y,
|
|
262
|
+
A.y + x(_) + W
|
|
263
263
|
));
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
+
for (const c of n.document.edges) {
|
|
267
|
+
if (!((c.sourceHandle === "left-source" || c.sourceHandle === "right-source") && (c.targetHandle === "left" || c.targetHandle === "right"))) continue;
|
|
268
|
+
const u = a.get(c.source), _ = a.get(c.target), A = n.document.nodes.find((N) => N.id === c.source), T = n.document.nodes.find((N) => N.id === c.target);
|
|
269
|
+
!u || !_ || !A || !T || (_.y = u.y + (x(A) - x(T)) / 2);
|
|
270
|
+
}
|
|
266
271
|
return a;
|
|
267
|
-
}), $ =
|
|
268
|
-
const h =
|
|
272
|
+
}), $ = q(() => n.document.nodes.map((a) => {
|
|
273
|
+
const h = H.value.get(a.id) ?? a.position;
|
|
269
274
|
return a.kind === "note" ? {
|
|
270
275
|
id: a.id,
|
|
271
276
|
type: "note",
|
|
@@ -285,7 +290,7 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
285
290
|
},
|
|
286
291
|
selectable: !1
|
|
287
292
|
};
|
|
288
|
-
})), L =
|
|
293
|
+
})), L = q(() => n.document.edges.map((a, h) => ({
|
|
289
294
|
id: `viewer-edge-${h}-${a.source}-${a.target}`,
|
|
290
295
|
source: a.source,
|
|
291
296
|
target: a.target,
|
|
@@ -295,36 +300,36 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
295
300
|
data: a.data,
|
|
296
301
|
style: a.isVisual ? { strokeDasharray: "6 4" } : void 0,
|
|
297
302
|
selectable: !1
|
|
298
|
-
}))),
|
|
303
|
+
}))), te = q(() => {
|
|
299
304
|
if (n.document.nodes.length === 0) return { minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
300
|
-
let a = 1 / 0, h = 1 / 0,
|
|
305
|
+
let a = 1 / 0, h = 1 / 0, y = -1 / 0, m = -1 / 0;
|
|
301
306
|
for (const s of n.document.nodes) {
|
|
302
|
-
const
|
|
303
|
-
a = Math.min(a,
|
|
307
|
+
const c = H.value.get(s.id) ?? s.position, w = s.kind === "note" ? s.appearance.width : 260, u = x(s);
|
|
308
|
+
a = Math.min(a, c.x), h = Math.min(h, c.y), y = Math.max(y, c.x + w), m = Math.max(m, c.y + u);
|
|
304
309
|
}
|
|
305
|
-
return { minX: a, minY: h, maxX:
|
|
306
|
-
}),
|
|
307
|
-
const a = n.document.nodes.filter((s) => s.kind === "node"), h = new Set(n.document.edges.map((s) => s.target)),
|
|
308
|
-
return [...
|
|
309
|
-
const
|
|
310
|
-
return
|
|
310
|
+
return { minX: a, minY: h, maxX: y, maxY: m };
|
|
311
|
+
}), ae = q(() => {
|
|
312
|
+
const a = n.document.nodes.filter((s) => s.kind === "node"), h = new Set(n.document.edges.map((s) => s.target)), y = a.filter((s) => !h.has(s.id));
|
|
313
|
+
return [...y.length > 0 ? y : a.length > 0 ? a : n.document.nodes].sort((s, c) => {
|
|
314
|
+
const w = H.value.get(s.id) ?? s.position, u = H.value.get(c.id) ?? c.position;
|
|
315
|
+
return w.y - u.y || w.x - u.x;
|
|
311
316
|
})[0];
|
|
312
317
|
});
|
|
313
|
-
function
|
|
318
|
+
function oe(a) {
|
|
314
319
|
if (n.fitViewOnInit) {
|
|
315
320
|
a.fitView({ padding: 0.15, maxZoom: 1 });
|
|
316
321
|
return;
|
|
317
322
|
}
|
|
318
|
-
const h =
|
|
323
|
+
const h = te.value, y = n.initialZoom, m = ae.value, s = m ? H.value.get(m.id) ?? m.position : null, c = (m == null ? void 0 : m.kind) === "note" ? m.appearance.width : 260, w = s ? (s.x + c / 2) * y : (h.minX + h.maxX) / 2 * y;
|
|
319
324
|
a.setViewport({
|
|
320
|
-
x: a.dimensions.value.width / 2 -
|
|
321
|
-
y: 24 - h.minY *
|
|
322
|
-
zoom:
|
|
325
|
+
x: a.dimensions.value.width / 2 - w,
|
|
326
|
+
y: 24 - h.minY * y,
|
|
327
|
+
zoom: y
|
|
323
328
|
});
|
|
324
329
|
}
|
|
325
330
|
return (a, h) => {
|
|
326
|
-
var
|
|
327
|
-
return i(),
|
|
331
|
+
var y, m;
|
|
332
|
+
return i(), r("div", {
|
|
328
333
|
class: "ob-flow-viewer",
|
|
329
334
|
"data-theme": t.theme
|
|
330
335
|
}, [
|
|
@@ -348,81 +353,82 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
348
353
|
"zoom-on-scroll": !1,
|
|
349
354
|
"zoom-on-pinch": !0,
|
|
350
355
|
class: "ob-flow-viewer__canvas",
|
|
351
|
-
onPaneReady:
|
|
356
|
+
onPaneReady: oe
|
|
352
357
|
}, {
|
|
353
|
-
default:
|
|
354
|
-
t.showControls ? (i(),
|
|
358
|
+
default: re(() => [
|
|
359
|
+
t.showControls ? (i(), C(M(ke), {
|
|
355
360
|
key: 0,
|
|
356
361
|
"show-interactive": !1
|
|
357
362
|
})) : z("", !0),
|
|
358
|
-
t.showMiniMap ? (i(),
|
|
363
|
+
t.showMiniMap ? (i(), C(M(ue), {
|
|
359
364
|
key: 1,
|
|
360
365
|
pannable: !0,
|
|
361
|
-
zoomable: !0
|
|
362
|
-
|
|
366
|
+
zoomable: !0,
|
|
367
|
+
"mask-color": t.theme === "dark" ? "rgba(0, 0, 0, 0.55)" : "rgba(240, 240, 240, 0.6)"
|
|
368
|
+
}, null, 8, ["mask-color"])) : z("", !0)
|
|
363
369
|
]),
|
|
364
370
|
_: 1
|
|
365
371
|
}, 8, ["nodes", "edges", "min-zoom", "max-zoom", "pan-on-scroll"]),
|
|
366
|
-
(i(),
|
|
367
|
-
|
|
372
|
+
(i(), C(le, { to: "body" }, [
|
|
373
|
+
l.value ? (i(), r("section", {
|
|
368
374
|
key: 0,
|
|
369
375
|
class: "ob-flow-viewer-tooltip",
|
|
370
376
|
"data-theme": t.theme,
|
|
371
|
-
style:
|
|
377
|
+
style: F({ left: `${l.value.x}px`, top: `${l.value.y}px` }),
|
|
372
378
|
role: "tooltip",
|
|
373
379
|
tabindex: "0",
|
|
374
380
|
onMouseenter: k,
|
|
375
|
-
onMouseleave:
|
|
381
|
+
onMouseleave: g,
|
|
376
382
|
onFocusin: k,
|
|
377
|
-
onFocusout:
|
|
383
|
+
onFocusout: g
|
|
378
384
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
385
|
+
f("header", $e, [
|
|
386
|
+
f("span", {
|
|
381
387
|
class: "ob-flow-viewer-tooltip__icon",
|
|
382
|
-
style:
|
|
388
|
+
style: F({ "--ob-node-icon-color": ((y = l.value.node.icon) == null ? void 0 : y.color) ?? "#64748b" }),
|
|
383
389
|
"aria-hidden": "true"
|
|
384
390
|
}, [
|
|
385
|
-
(
|
|
391
|
+
(m = l.value.node.icon) != null && m.svg ? (i(), r("span", {
|
|
386
392
|
key: 0,
|
|
387
393
|
class: "ob-flow-viewer-node__icon-svg",
|
|
388
|
-
innerHTML:
|
|
389
|
-
}, null, 8,
|
|
394
|
+
innerHTML: l.value.node.icon.svg
|
|
395
|
+
}, null, 8, Le)) : (i(), r("span", Pe, V(l.value.node.available ? l.value.node.name.slice(0, 1).toUpperCase() : "?"), 1))
|
|
390
396
|
], 4),
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
397
|
+
f("span", Te, [
|
|
398
|
+
f("strong", null, V(l.value.node.name), 1),
|
|
399
|
+
f("code", null, V(l.value.node.key), 1)
|
|
394
400
|
])
|
|
395
401
|
]),
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
h[0] || (h[0] =
|
|
401
|
-
|
|
402
|
-
(i(!0),
|
|
402
|
+
f("div", Ie, [
|
|
403
|
+
l.value.node.available ? l.value.node.description ? (i(), r("p", Ne, V(l.value.node.description), 1)) : z("", !0) : (i(), r("p", je, " This node template is unavailable. ")),
|
|
404
|
+
l.value.node.available ? (i(), r("div", Se, [
|
|
405
|
+
f("div", Be, [
|
|
406
|
+
h[0] || (h[0] = f("span", { class: "ob-flow-viewer-node__port-heading" }, "Inputs", -1)),
|
|
407
|
+
l.value.node.inputs.length === 0 ? (i(), r("span", Fe, "None")) : z("", !0),
|
|
408
|
+
(i(!0), r(P, null, B(l.value.node.inputs, (s) => (i(), r("span", {
|
|
403
409
|
key: s.key,
|
|
404
410
|
class: "ob-flow-viewer-node__port"
|
|
405
411
|
}, [
|
|
406
|
-
|
|
407
|
-
s.description ? (i(),
|
|
412
|
+
f("span", null, V(s.name), 1),
|
|
413
|
+
s.description ? (i(), r("small", De, V(s.description), 1)) : z("", !0)
|
|
408
414
|
]))), 128))
|
|
409
415
|
]),
|
|
410
|
-
|
|
411
|
-
h[1] || (h[1] =
|
|
412
|
-
|
|
413
|
-
(i(!0),
|
|
416
|
+
f("div", Oe, [
|
|
417
|
+
h[1] || (h[1] = f("span", { class: "ob-flow-viewer-node__port-heading" }, "Outputs", -1)),
|
|
418
|
+
l.value.node.outputs.length === 0 ? (i(), r("span", Ee, "None")) : z("", !0),
|
|
419
|
+
(i(!0), r(P, null, B(l.value.node.outputs, (s) => (i(), r("span", {
|
|
414
420
|
key: s.key,
|
|
415
421
|
class: "ob-flow-viewer-node__port"
|
|
416
422
|
}, [
|
|
417
|
-
|
|
418
|
-
s.description ? (i(),
|
|
423
|
+
f("span", null, V(s.name), 1),
|
|
424
|
+
s.description ? (i(), r("small", Ze, V(s.description), 1)) : z("", !0)
|
|
419
425
|
]))), 128))
|
|
420
426
|
])
|
|
421
427
|
])) : z("", !0)
|
|
422
428
|
])
|
|
423
|
-
], 44,
|
|
429
|
+
], 44, qe)) : z("", !0)
|
|
424
430
|
]))
|
|
425
|
-
], 8,
|
|
431
|
+
], 8, Ce);
|
|
426
432
|
};
|
|
427
433
|
}
|
|
428
434
|
});
|
|
@@ -432,7 +438,7 @@ const Q = Symbol("flow-viewer-details"), me = ["aria-label"], ve = { class: "ob-
|
|
|
432
438
|
* This source code is licensed under the ISC license.
|
|
433
439
|
* See the LICENSE file in the root directory of this source tree.
|
|
434
440
|
*/
|
|
435
|
-
const
|
|
441
|
+
const Xe = (t) => {
|
|
436
442
|
for (const n in t)
|
|
437
443
|
if (n.startsWith("aria-") || n === "role" || n === "title")
|
|
438
444
|
return !0;
|
|
@@ -444,28 +450,28 @@ const Re = (t) => {
|
|
|
444
450
|
* This source code is licensed under the ISC license.
|
|
445
451
|
* See the LICENSE file in the root directory of this source tree.
|
|
446
452
|
*/
|
|
447
|
-
const
|
|
453
|
+
const K = (t) => t === "";
|
|
448
454
|
/**
|
|
449
455
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
450
456
|
*
|
|
451
457
|
* This source code is licensed under the ISC license.
|
|
452
458
|
* See the LICENSE file in the root directory of this source tree.
|
|
453
459
|
*/
|
|
454
|
-
const
|
|
460
|
+
const Ue = (...t) => t.filter((n, v, x) => !!n && n.trim() !== "" && x.indexOf(n) === v).join(" ").trim();
|
|
455
461
|
/**
|
|
456
462
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
457
463
|
*
|
|
458
464
|
* This source code is licensed under the ISC license.
|
|
459
465
|
* See the LICENSE file in the root directory of this source tree.
|
|
460
466
|
*/
|
|
461
|
-
const
|
|
467
|
+
const Q = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
462
468
|
/**
|
|
463
469
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
464
470
|
*
|
|
465
471
|
* This source code is licensed under the ISC license.
|
|
466
472
|
* See the LICENSE file in the root directory of this source tree.
|
|
467
473
|
*/
|
|
468
|
-
const
|
|
474
|
+
const Ge = (t) => t.replace(
|
|
469
475
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
470
476
|
(n, v, x) => x ? x.toUpperCase() : v.toLowerCase()
|
|
471
477
|
);
|
|
@@ -475,8 +481,8 @@ const Ue = (t) => t.replace(
|
|
|
475
481
|
* This source code is licensed under the ISC license.
|
|
476
482
|
* See the LICENSE file in the root directory of this source tree.
|
|
477
483
|
*/
|
|
478
|
-
const
|
|
479
|
-
const n =
|
|
484
|
+
const Ye = (t) => {
|
|
485
|
+
const n = Ge(t);
|
|
480
486
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
481
487
|
};
|
|
482
488
|
/**
|
|
@@ -485,7 +491,7 @@ const Ge = (t) => {
|
|
|
485
491
|
* This source code is licensed under the ISC license.
|
|
486
492
|
* See the LICENSE file in the root directory of this source tree.
|
|
487
493
|
*/
|
|
488
|
-
var
|
|
494
|
+
var S = {
|
|
489
495
|
xmlns: "http://www.w3.org/2000/svg",
|
|
490
496
|
width: 24,
|
|
491
497
|
height: 24,
|
|
@@ -502,33 +508,33 @@ var j = {
|
|
|
502
508
|
* This source code is licensed under the ISC license.
|
|
503
509
|
* See the LICENSE file in the root directory of this source tree.
|
|
504
510
|
*/
|
|
505
|
-
const
|
|
511
|
+
const We = ({
|
|
506
512
|
name: t,
|
|
507
513
|
iconNode: n,
|
|
508
514
|
absoluteStrokeWidth: v,
|
|
509
515
|
"absolute-stroke-width": x,
|
|
510
|
-
strokeWidth:
|
|
511
|
-
"stroke-width":
|
|
512
|
-
size: k =
|
|
513
|
-
color: b =
|
|
516
|
+
strokeWidth: l,
|
|
517
|
+
"stroke-width": p,
|
|
518
|
+
size: k = S.width,
|
|
519
|
+
color: b = S.stroke,
|
|
514
520
|
...o
|
|
515
|
-
}, { slots:
|
|
521
|
+
}, { slots: d }) => G(
|
|
516
522
|
"svg",
|
|
517
523
|
{
|
|
518
|
-
...
|
|
524
|
+
...S,
|
|
519
525
|
...o,
|
|
520
526
|
width: k,
|
|
521
527
|
height: k,
|
|
522
528
|
stroke: b,
|
|
523
|
-
"stroke-width":
|
|
524
|
-
class:
|
|
529
|
+
"stroke-width": K(v) || K(x) || v === !0 || x === !0 ? Number(l || p || S["stroke-width"]) * 24 / Number(k) : l || p || S["stroke-width"],
|
|
530
|
+
class: Ue(
|
|
525
531
|
"lucide",
|
|
526
532
|
o.class,
|
|
527
|
-
...t ? [`lucide-${
|
|
533
|
+
...t ? [`lucide-${Q(Ye(t))}-icon`, `lucide-${Q(t)}`] : ["lucide-icon"]
|
|
528
534
|
),
|
|
529
|
-
...!
|
|
535
|
+
...!d.default && !Xe(o) && { "aria-hidden": "true" }
|
|
530
536
|
},
|
|
531
|
-
[...n.map((
|
|
537
|
+
[...n.map((g) => G(...g)), ...d.default ? [d.default()] : []]
|
|
532
538
|
);
|
|
533
539
|
/**
|
|
534
540
|
* @license lucide-vue-next v0.577.0 - ISC
|
|
@@ -536,10 +542,10 @@ const Ye = ({
|
|
|
536
542
|
* This source code is licensed under the ISC license.
|
|
537
543
|
* See the LICENSE file in the root directory of this source tree.
|
|
538
544
|
*/
|
|
539
|
-
const e = (t, n) => (v, { slots: x, attrs:
|
|
540
|
-
|
|
545
|
+
const e = (t, n) => (v, { slots: x, attrs: l }) => G(
|
|
546
|
+
We,
|
|
541
547
|
{
|
|
542
|
-
...
|
|
548
|
+
...l,
|
|
543
549
|
...v,
|
|
544
550
|
iconNode: n,
|
|
545
551
|
name: t
|
|
@@ -552,7 +558,7 @@ const e = (t, n) => (v, { slots: x, attrs: r }) => U(
|
|
|
552
558
|
* This source code is licensed under the ISC license.
|
|
553
559
|
* See the LICENSE file in the root directory of this source tree.
|
|
554
560
|
*/
|
|
555
|
-
const
|
|
561
|
+
const Je = e("archive-restore", [
|
|
556
562
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
557
563
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
|
|
558
564
|
["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
|
|
@@ -565,7 +571,7 @@ const We = e("archive-restore", [
|
|
|
565
571
|
* This source code is licensed under the ISC license.
|
|
566
572
|
* See the LICENSE file in the root directory of this source tree.
|
|
567
573
|
*/
|
|
568
|
-
const
|
|
574
|
+
const Ke = e("archive", [
|
|
569
575
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
570
576
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }],
|
|
571
577
|
["path", { d: "M10 12h4", key: "a56b0p" }]
|
|
@@ -576,7 +582,7 @@ const Je = e("archive", [
|
|
|
576
582
|
* This source code is licensed under the ISC license.
|
|
577
583
|
* See the LICENSE file in the root directory of this source tree.
|
|
578
584
|
*/
|
|
579
|
-
const
|
|
585
|
+
const Qe = e("arrow-down-to-line", [
|
|
580
586
|
["path", { d: "M12 17V3", key: "1cwfxf" }],
|
|
581
587
|
["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
|
|
582
588
|
["path", { d: "M19 21H5", key: "150jfl" }]
|
|
@@ -587,7 +593,7 @@ const Ke = e("arrow-down-to-line", [
|
|
|
587
593
|
* This source code is licensed under the ISC license.
|
|
588
594
|
* See the LICENSE file in the root directory of this source tree.
|
|
589
595
|
*/
|
|
590
|
-
const
|
|
596
|
+
const et = e("badge-check", [
|
|
591
597
|
[
|
|
592
598
|
"path",
|
|
593
599
|
{
|
|
@@ -603,7 +609,7 @@ const Qe = e("badge-check", [
|
|
|
603
609
|
* This source code is licensed under the ISC license.
|
|
604
610
|
* See the LICENSE file in the root directory of this source tree.
|
|
605
611
|
*/
|
|
606
|
-
const
|
|
612
|
+
const tt = e("bot", [
|
|
607
613
|
["path", { d: "M12 8V4H8", key: "hb8ula" }],
|
|
608
614
|
["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
|
|
609
615
|
["path", { d: "M2 14h2", key: "vft8re" }],
|
|
@@ -617,7 +623,7 @@ const et = e("bot", [
|
|
|
617
623
|
* This source code is licensed under the ISC license.
|
|
618
624
|
* See the LICENSE file in the root directory of this source tree.
|
|
619
625
|
*/
|
|
620
|
-
const
|
|
626
|
+
const at = e("box", [
|
|
621
627
|
[
|
|
622
628
|
"path",
|
|
623
629
|
{
|
|
@@ -634,7 +640,7 @@ const tt = e("box", [
|
|
|
634
640
|
* This source code is licensed under the ISC license.
|
|
635
641
|
* See the LICENSE file in the root directory of this source tree.
|
|
636
642
|
*/
|
|
637
|
-
const
|
|
643
|
+
const ot = e("brain-circuit", [
|
|
638
644
|
[
|
|
639
645
|
"path",
|
|
640
646
|
{
|
|
@@ -661,7 +667,7 @@ const at = e("brain-circuit", [
|
|
|
661
667
|
* This source code is licensed under the ISC license.
|
|
662
668
|
* See the LICENSE file in the root directory of this source tree.
|
|
663
669
|
*/
|
|
664
|
-
const
|
|
670
|
+
const nt = e("brain", [
|
|
665
671
|
["path", { d: "M12 18V5", key: "adv99a" }],
|
|
666
672
|
["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
|
|
667
673
|
["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
|
|
@@ -677,7 +683,7 @@ const ot = e("brain", [
|
|
|
677
683
|
* This source code is licensed under the ISC license.
|
|
678
684
|
* See the LICENSE file in the root directory of this source tree.
|
|
679
685
|
*/
|
|
680
|
-
const
|
|
686
|
+
const it = e("chart-column", [
|
|
681
687
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
682
688
|
["path", { d: "M18 17V9", key: "2bz60n" }],
|
|
683
689
|
["path", { d: "M13 17V5", key: "1frdt8" }],
|
|
@@ -689,7 +695,7 @@ const nt = e("chart-column", [
|
|
|
689
695
|
* This source code is licensed under the ISC license.
|
|
690
696
|
* See the LICENSE file in the root directory of this source tree.
|
|
691
697
|
*/
|
|
692
|
-
const
|
|
698
|
+
const ct = e("clipboard-check", [
|
|
693
699
|
["rect", { width: "8", height: "4", x: "8", y: "2", rx: "1", ry: "1", key: "tgr4d6" }],
|
|
694
700
|
[
|
|
695
701
|
"path",
|
|
@@ -716,7 +722,7 @@ const st = e("clock-3", [
|
|
|
716
722
|
* This source code is licensed under the ISC license.
|
|
717
723
|
* See the LICENSE file in the root directory of this source tree.
|
|
718
724
|
*/
|
|
719
|
-
const
|
|
725
|
+
const dt = e("cloud-download", [
|
|
720
726
|
["path", { d: "M12 13v8l-4-4", key: "1f5nwf" }],
|
|
721
727
|
["path", { d: "m12 21 4-4", key: "1lfcce" }],
|
|
722
728
|
["path", { d: "M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284", key: "ui1hmy" }]
|
|
@@ -727,7 +733,7 @@ const ct = e("cloud-download", [
|
|
|
727
733
|
* This source code is licensed under the ISC license.
|
|
728
734
|
* See the LICENSE file in the root directory of this source tree.
|
|
729
735
|
*/
|
|
730
|
-
const
|
|
736
|
+
const rt = e("combine", [
|
|
731
737
|
["path", { d: "M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1", key: "1l7d7l" }],
|
|
732
738
|
["path", { d: "M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1", key: "9955pe" }],
|
|
733
739
|
["path", { d: "m7 15 3 3", key: "4hkfgk" }],
|
|
@@ -751,7 +757,7 @@ const lt = e("copy", [
|
|
|
751
757
|
* This source code is licensed under the ISC license.
|
|
752
758
|
* See the LICENSE file in the root directory of this source tree.
|
|
753
759
|
*/
|
|
754
|
-
const
|
|
760
|
+
const ht = e("cpu", [
|
|
755
761
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
756
762
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
757
763
|
["path", { d: "M17 20v2", key: "1rnc9c" }],
|
|
@@ -773,7 +779,7 @@ const rt = e("cpu", [
|
|
|
773
779
|
* This source code is licensed under the ISC license.
|
|
774
780
|
* See the LICENSE file in the root directory of this source tree.
|
|
775
781
|
*/
|
|
776
|
-
const
|
|
782
|
+
const yt = e("crop", [
|
|
777
783
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
778
784
|
["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
|
|
779
785
|
]);
|
|
@@ -783,7 +789,7 @@ const ht = e("crop", [
|
|
|
783
789
|
* This source code is licensed under the ISC license.
|
|
784
790
|
* See the LICENSE file in the root directory of this source tree.
|
|
785
791
|
*/
|
|
786
|
-
const
|
|
792
|
+
const pt = e("crosshair", [
|
|
787
793
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
788
794
|
["line", { x1: "22", x2: "18", y1: "12", y2: "12", key: "l9bcsi" }],
|
|
789
795
|
["line", { x1: "6", x2: "2", y1: "12", y2: "12", key: "13hhkx" }],
|
|
@@ -796,7 +802,7 @@ const yt = e("crosshair", [
|
|
|
796
802
|
* This source code is licensed under the ISC license.
|
|
797
803
|
* See the LICENSE file in the root directory of this source tree.
|
|
798
804
|
*/
|
|
799
|
-
const
|
|
805
|
+
const kt = e("database", [
|
|
800
806
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
801
807
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
802
808
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
@@ -807,7 +813,7 @@ const pt = e("database", [
|
|
|
807
813
|
* This source code is licensed under the ISC license.
|
|
808
814
|
* See the LICENSE file in the root directory of this source tree.
|
|
809
815
|
*/
|
|
810
|
-
const
|
|
816
|
+
const ut = e("download", [
|
|
811
817
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
812
818
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
813
819
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
@@ -818,7 +824,7 @@ const kt = e("download", [
|
|
|
818
824
|
* This source code is licensed under the ISC license.
|
|
819
825
|
* See the LICENSE file in the root directory of this source tree.
|
|
820
826
|
*/
|
|
821
|
-
const
|
|
827
|
+
const mt = e("eye", [
|
|
822
828
|
[
|
|
823
829
|
"path",
|
|
824
830
|
{
|
|
@@ -834,7 +840,7 @@ const ut = e("eye", [
|
|
|
834
840
|
* This source code is licensed under the ISC license.
|
|
835
841
|
* See the LICENSE file in the root directory of this source tree.
|
|
836
842
|
*/
|
|
837
|
-
const
|
|
843
|
+
const vt = e("file-down", [
|
|
838
844
|
[
|
|
839
845
|
"path",
|
|
840
846
|
{
|
|
@@ -852,7 +858,7 @@ const mt = e("file-down", [
|
|
|
852
858
|
* This source code is licensed under the ISC license.
|
|
853
859
|
* See the LICENSE file in the root directory of this source tree.
|
|
854
860
|
*/
|
|
855
|
-
const
|
|
861
|
+
const gt = e("files", [
|
|
856
862
|
["path", { d: "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8", key: "14sh0y" }],
|
|
857
863
|
[
|
|
858
864
|
"path",
|
|
@@ -885,7 +891,7 @@ const wt = e("film", [
|
|
|
885
891
|
* This source code is licensed under the ISC license.
|
|
886
892
|
* See the LICENSE file in the root directory of this source tree.
|
|
887
893
|
*/
|
|
888
|
-
const
|
|
894
|
+
const ft = e("folder-plus", [
|
|
889
895
|
["path", { d: "M12 10v6", key: "1bos4e" }],
|
|
890
896
|
["path", { d: "M9 13h6", key: "1uhe8q" }],
|
|
891
897
|
[
|
|
@@ -902,7 +908,7 @@ const gt = e("folder-plus", [
|
|
|
902
908
|
* This source code is licensed under the ISC license.
|
|
903
909
|
* See the LICENSE file in the root directory of this source tree.
|
|
904
910
|
*/
|
|
905
|
-
const
|
|
911
|
+
const Mt = e("folder-root", [
|
|
906
912
|
[
|
|
907
913
|
"path",
|
|
908
914
|
{
|
|
@@ -919,7 +925,7 @@ const ft = e("folder-root", [
|
|
|
919
925
|
* This source code is licensed under the ISC license.
|
|
920
926
|
* See the LICENSE file in the root directory of this source tree.
|
|
921
927
|
*/
|
|
922
|
-
const
|
|
928
|
+
const xt = e("folder-sync", [
|
|
923
929
|
[
|
|
924
930
|
"path",
|
|
925
931
|
{
|
|
@@ -938,7 +944,7 @@ const Mt = e("folder-sync", [
|
|
|
938
944
|
* This source code is licensed under the ISC license.
|
|
939
945
|
* See the LICENSE file in the root directory of this source tree.
|
|
940
946
|
*/
|
|
941
|
-
const
|
|
947
|
+
const bt = e("funnel", [
|
|
942
948
|
[
|
|
943
949
|
"path",
|
|
944
950
|
{
|
|
@@ -953,7 +959,7 @@ const xt = e("funnel", [
|
|
|
953
959
|
* This source code is licensed under the ISC license.
|
|
954
960
|
* See the LICENSE file in the root directory of this source tree.
|
|
955
961
|
*/
|
|
956
|
-
const
|
|
962
|
+
const zt = e("gallery-vertical-end", [
|
|
957
963
|
["path", { d: "M7 2h10", key: "nczekb" }],
|
|
958
964
|
["path", { d: "M5 6h14", key: "u2x4p" }],
|
|
959
965
|
["rect", { width: "18", height: "12", x: "3", y: "10", rx: "2", key: "l0tzu3" }]
|
|
@@ -964,7 +970,7 @@ const bt = e("gallery-vertical-end", [
|
|
|
964
970
|
* This source code is licensed under the ISC license.
|
|
965
971
|
* See the LICENSE file in the root directory of this source tree.
|
|
966
972
|
*/
|
|
967
|
-
const
|
|
973
|
+
const Ht = e("gauge", [
|
|
968
974
|
["path", { d: "m12 14 4-4", key: "9kzdfg" }],
|
|
969
975
|
["path", { d: "M3.34 19a10 10 0 1 1 17.32 0", key: "19p75a" }]
|
|
970
976
|
]);
|
|
@@ -985,7 +991,7 @@ const _t = e("git-branch", [
|
|
|
985
991
|
* This source code is licensed under the ISC license.
|
|
986
992
|
* See the LICENSE file in the root directory of this source tree.
|
|
987
993
|
*/
|
|
988
|
-
const
|
|
994
|
+
const Vt = e("git-merge", [
|
|
989
995
|
["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }],
|
|
990
996
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
991
997
|
["path", { d: "M6 21V9a9 9 0 0 0 9 9", key: "7kw0sc" }]
|
|
@@ -996,7 +1002,7 @@ const Ht = e("git-merge", [
|
|
|
996
1002
|
* This source code is licensed under the ISC license.
|
|
997
1003
|
* See the LICENSE file in the root directory of this source tree.
|
|
998
1004
|
*/
|
|
999
|
-
const
|
|
1005
|
+
const At = e("hard-drive-download", [
|
|
1000
1006
|
["path", { d: "M12 2v8", key: "1q4o3n" }],
|
|
1001
1007
|
["path", { d: "m16 6-4 4-4-4", key: "6wukr" }],
|
|
1002
1008
|
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
|
|
@@ -1009,7 +1015,7 @@ const Vt = e("hard-drive-download", [
|
|
|
1009
1015
|
* This source code is licensed under the ISC license.
|
|
1010
1016
|
* See the LICENSE file in the root directory of this source tree.
|
|
1011
1017
|
*/
|
|
1012
|
-
const
|
|
1018
|
+
const Ct = e("hard-drive-upload", [
|
|
1013
1019
|
["path", { d: "m16 6-4-4-4 4", key: "13yo43" }],
|
|
1014
1020
|
["path", { d: "M12 2v8", key: "1q4o3n" }],
|
|
1015
1021
|
["rect", { width: "20", height: "8", x: "2", y: "14", rx: "2", key: "w68u3i" }],
|
|
@@ -1022,7 +1028,7 @@ const At = e("hard-drive-upload", [
|
|
|
1022
1028
|
* This source code is licensed under the ISC license.
|
|
1023
1029
|
* See the LICENSE file in the root directory of this source tree.
|
|
1024
1030
|
*/
|
|
1025
|
-
const
|
|
1031
|
+
const qt = e("history", [
|
|
1026
1032
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
1027
1033
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
1028
1034
|
["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
|
|
@@ -1033,7 +1039,7 @@ const Ct = e("history", [
|
|
|
1033
1039
|
* This source code is licensed under the ISC license.
|
|
1034
1040
|
* See the LICENSE file in the root directory of this source tree.
|
|
1035
1041
|
*/
|
|
1036
|
-
const
|
|
1042
|
+
const $t = e("image-up", [
|
|
1037
1043
|
[
|
|
1038
1044
|
"path",
|
|
1039
1045
|
{
|
|
@@ -1051,7 +1057,7 @@ const qt = e("image-up", [
|
|
|
1051
1057
|
* This source code is licensed under the ISC license.
|
|
1052
1058
|
* See the LICENSE file in the root directory of this source tree.
|
|
1053
1059
|
*/
|
|
1054
|
-
const
|
|
1060
|
+
const Lt = e("image-plus", [
|
|
1055
1061
|
["path", { d: "M16 5h6", key: "1vod17" }],
|
|
1056
1062
|
["path", { d: "M19 2v6", key: "4bpg5p" }],
|
|
1057
1063
|
["path", { d: "M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5", key: "1ue2ih" }],
|
|
@@ -1064,7 +1070,7 @@ const $t = e("image-plus", [
|
|
|
1064
1070
|
* This source code is licensed under the ISC license.
|
|
1065
1071
|
* See the LICENSE file in the root directory of this source tree.
|
|
1066
1072
|
*/
|
|
1067
|
-
const
|
|
1073
|
+
const Pt = e("image", [
|
|
1068
1074
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
1069
1075
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
1070
1076
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
@@ -1075,7 +1081,7 @@ const Lt = e("image", [
|
|
|
1075
1081
|
* This source code is licensed under the ISC license.
|
|
1076
1082
|
* See the LICENSE file in the root directory of this source tree.
|
|
1077
1083
|
*/
|
|
1078
|
-
const
|
|
1084
|
+
const Tt = e("images", [
|
|
1079
1085
|
["path", { d: "m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16", key: "9kzy35" }],
|
|
1080
1086
|
["path", { d: "M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2", key: "1t0f0t" }],
|
|
1081
1087
|
["circle", { cx: "13", cy: "7", r: "1", fill: "currentColor", key: "1obus6" }],
|
|
@@ -1087,7 +1093,7 @@ const Pt = e("images", [
|
|
|
1087
1093
|
* This source code is licensed under the ISC license.
|
|
1088
1094
|
* See the LICENSE file in the root directory of this source tree.
|
|
1089
1095
|
*/
|
|
1090
|
-
const
|
|
1096
|
+
const It = e("layers", [
|
|
1091
1097
|
[
|
|
1092
1098
|
"path",
|
|
1093
1099
|
{
|
|
@@ -1116,7 +1122,7 @@ const Tt = e("layers", [
|
|
|
1116
1122
|
* This source code is licensed under the ISC license.
|
|
1117
1123
|
* See the LICENSE file in the root directory of this source tree.
|
|
1118
1124
|
*/
|
|
1119
|
-
const
|
|
1125
|
+
const jt = e("list-checks", [
|
|
1120
1126
|
["path", { d: "M13 5h8", key: "a7qcls" }],
|
|
1121
1127
|
["path", { d: "M13 12h8", key: "h98zly" }],
|
|
1122
1128
|
["path", { d: "M13 19h8", key: "c3s6r1" }],
|
|
@@ -1129,7 +1135,7 @@ const It = e("list-checks", [
|
|
|
1129
1135
|
* This source code is licensed under the ISC license.
|
|
1130
1136
|
* See the LICENSE file in the root directory of this source tree.
|
|
1131
1137
|
*/
|
|
1132
|
-
const
|
|
1138
|
+
const Nt = e("loader-circle", [
|
|
1133
1139
|
["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]
|
|
1134
1140
|
]);
|
|
1135
1141
|
/**
|
|
@@ -1163,7 +1169,7 @@ const Bt = e("moon", [
|
|
|
1163
1169
|
* This source code is licensed under the ISC license.
|
|
1164
1170
|
* See the LICENSE file in the root directory of this source tree.
|
|
1165
1171
|
*/
|
|
1166
|
-
const
|
|
1172
|
+
const Ft = e("move-right", [
|
|
1167
1173
|
["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
|
|
1168
1174
|
["path", { d: "M2 12H22", key: "1m8cig" }]
|
|
1169
1175
|
]);
|
|
@@ -1173,7 +1179,7 @@ const Nt = e("move-right", [
|
|
|
1173
1179
|
* This source code is licensed under the ISC license.
|
|
1174
1180
|
* See the LICENSE file in the root directory of this source tree.
|
|
1175
1181
|
*/
|
|
1176
|
-
const
|
|
1182
|
+
const Dt = e("octagon-x", [
|
|
1177
1183
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
1178
1184
|
[
|
|
1179
1185
|
"path",
|
|
@@ -1190,7 +1196,7 @@ const Ft = e("octagon-x", [
|
|
|
1190
1196
|
* This source code is licensed under the ISC license.
|
|
1191
1197
|
* See the LICENSE file in the root directory of this source tree.
|
|
1192
1198
|
*/
|
|
1193
|
-
const
|
|
1199
|
+
const Ot = e("package-minus", [
|
|
1194
1200
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1195
1201
|
["path", { d: "M16 17h6", key: "1ook5g" }],
|
|
1196
1202
|
[
|
|
@@ -1209,7 +1215,7 @@ const Dt = e("package-minus", [
|
|
|
1209
1215
|
* This source code is licensed under the ISC license.
|
|
1210
1216
|
* See the LICENSE file in the root directory of this source tree.
|
|
1211
1217
|
*/
|
|
1212
|
-
const
|
|
1218
|
+
const Et = e("package-open", [
|
|
1213
1219
|
["path", { d: "M12 22v-9", key: "x3hkom" }],
|
|
1214
1220
|
[
|
|
1215
1221
|
"path",
|
|
@@ -1239,7 +1245,7 @@ const Ot = e("package-open", [
|
|
|
1239
1245
|
* This source code is licensed under the ISC license.
|
|
1240
1246
|
* See the LICENSE file in the root directory of this source tree.
|
|
1241
1247
|
*/
|
|
1242
|
-
const
|
|
1248
|
+
const Zt = e("package-plus", [
|
|
1243
1249
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
1244
1250
|
["path", { d: "M16 17h6", key: "1ook5g" }],
|
|
1245
1251
|
["path", { d: "M19 14v6", key: "1ckrd5" }],
|
|
@@ -1259,7 +1265,7 @@ const Et = e("package-plus", [
|
|
|
1259
1265
|
* This source code is licensed under the ISC license.
|
|
1260
1266
|
* See the LICENSE file in the root directory of this source tree.
|
|
1261
1267
|
*/
|
|
1262
|
-
const
|
|
1268
|
+
const Rt = e("play", [
|
|
1263
1269
|
[
|
|
1264
1270
|
"path",
|
|
1265
1271
|
{
|
|
@@ -1274,7 +1280,7 @@ const Zt = e("play", [
|
|
|
1274
1280
|
* This source code is licensed under the ISC license.
|
|
1275
1281
|
* See the LICENSE file in the root directory of this source tree.
|
|
1276
1282
|
*/
|
|
1277
|
-
const
|
|
1283
|
+
const Xt = e("radar", [
|
|
1278
1284
|
["path", { d: "M19.07 4.93A10 10 0 0 0 6.99 3.34", key: "z3du51" }],
|
|
1279
1285
|
["path", { d: "M4 6h.01", key: "oypzma" }],
|
|
1280
1286
|
["path", { d: "M2.29 9.62A10 10 0 1 0 21.31 8.35", key: "qzzz0" }],
|
|
@@ -1290,7 +1296,7 @@ const Rt = e("radar", [
|
|
|
1290
1296
|
* This source code is licensed under the ISC license.
|
|
1291
1297
|
* See the LICENSE file in the root directory of this source tree.
|
|
1292
1298
|
*/
|
|
1293
|
-
const
|
|
1299
|
+
const Ut = e("route", [
|
|
1294
1300
|
["circle", { cx: "6", cy: "19", r: "3", key: "1kj8tv" }],
|
|
1295
1301
|
["path", { d: "M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15", key: "1d8sl" }],
|
|
1296
1302
|
["circle", { cx: "18", cy: "5", r: "3", key: "gq8acd" }]
|
|
@@ -1301,7 +1307,7 @@ const Xt = e("route", [
|
|
|
1301
1307
|
* This source code is licensed under the ISC license.
|
|
1302
1308
|
* See the LICENSE file in the root directory of this source tree.
|
|
1303
1309
|
*/
|
|
1304
|
-
const
|
|
1310
|
+
const Gt = e("ruler", [
|
|
1305
1311
|
[
|
|
1306
1312
|
"path",
|
|
1307
1313
|
{
|
|
@@ -1320,7 +1326,7 @@ const Ut = e("ruler", [
|
|
|
1320
1326
|
* This source code is licensed under the ISC license.
|
|
1321
1327
|
* See the LICENSE file in the root directory of this source tree.
|
|
1322
1328
|
*/
|
|
1323
|
-
const
|
|
1329
|
+
const Yt = e("scale", [
|
|
1324
1330
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
1325
1331
|
["path", { d: "m19 8 3 8a5 5 0 0 1-6 0zV7", key: "zcdpyk" }],
|
|
1326
1332
|
["path", { d: "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1", key: "1yorad" }],
|
|
@@ -1333,7 +1339,7 @@ const Gt = e("scale", [
|
|
|
1333
1339
|
* This source code is licensed under the ISC license.
|
|
1334
1340
|
* See the LICENSE file in the root directory of this source tree.
|
|
1335
1341
|
*/
|
|
1336
|
-
const
|
|
1342
|
+
const Wt = e("scan-eye", [
|
|
1337
1343
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
1338
1344
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
1339
1345
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -1353,7 +1359,7 @@ const Yt = e("scan-eye", [
|
|
|
1353
1359
|
* This source code is licensed under the ISC license.
|
|
1354
1360
|
* See the LICENSE file in the root directory of this source tree.
|
|
1355
1361
|
*/
|
|
1356
|
-
const
|
|
1362
|
+
const Jt = e("scan-search", [
|
|
1357
1363
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
1358
1364
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
1359
1365
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -1367,7 +1373,7 @@ const Wt = e("scan-search", [
|
|
|
1367
1373
|
* This source code is licensed under the ISC license.
|
|
1368
1374
|
* See the LICENSE file in the root directory of this source tree.
|
|
1369
1375
|
*/
|
|
1370
|
-
const
|
|
1376
|
+
const Kt = e("scan-text", [
|
|
1371
1377
|
["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
|
|
1372
1378
|
["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
|
|
1373
1379
|
["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
|
|
@@ -1382,7 +1388,7 @@ const Jt = e("scan-text", [
|
|
|
1382
1388
|
* This source code is licensed under the ISC license.
|
|
1383
1389
|
* See the LICENSE file in the root directory of this source tree.
|
|
1384
1390
|
*/
|
|
1385
|
-
const
|
|
1391
|
+
const Qt = e("scissors", [
|
|
1386
1392
|
["circle", { cx: "6", cy: "6", r: "3", key: "1lh9wr" }],
|
|
1387
1393
|
["path", { d: "M8.12 8.12 12 12", key: "1alkpv" }],
|
|
1388
1394
|
["path", { d: "M20 4 8.12 15.88", key: "xgtan2" }],
|
|
@@ -1395,7 +1401,7 @@ const Kt = e("scissors", [
|
|
|
1395
1401
|
* This source code is licensed under the ISC license.
|
|
1396
1402
|
* See the LICENSE file in the root directory of this source tree.
|
|
1397
1403
|
*/
|
|
1398
|
-
const
|
|
1404
|
+
const ea = e("search", [
|
|
1399
1405
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
1400
1406
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
1401
1407
|
]);
|
|
@@ -1405,7 +1411,7 @@ const Qt = e("search", [
|
|
|
1405
1411
|
* This source code is licensed under the ISC license.
|
|
1406
1412
|
* See the LICENSE file in the root directory of this source tree.
|
|
1407
1413
|
*/
|
|
1408
|
-
const
|
|
1414
|
+
const ta = e("settings", [
|
|
1409
1415
|
[
|
|
1410
1416
|
"path",
|
|
1411
1417
|
{
|
|
@@ -1421,7 +1427,7 @@ const ea = e("settings", [
|
|
|
1421
1427
|
* This source code is licensed under the ISC license.
|
|
1422
1428
|
* See the LICENSE file in the root directory of this source tree.
|
|
1423
1429
|
*/
|
|
1424
|
-
const
|
|
1430
|
+
const aa = e("shield-check", [
|
|
1425
1431
|
[
|
|
1426
1432
|
"path",
|
|
1427
1433
|
{
|
|
@@ -1437,7 +1443,7 @@ const ta = e("shield-check", [
|
|
|
1437
1443
|
* This source code is licensed under the ISC license.
|
|
1438
1444
|
* See the LICENSE file in the root directory of this source tree.
|
|
1439
1445
|
*/
|
|
1440
|
-
const
|
|
1446
|
+
const oa = e("shuffle", [
|
|
1441
1447
|
["path", { d: "m18 14 4 4-4 4", key: "10pe0f" }],
|
|
1442
1448
|
["path", { d: "m18 2 4 4-4 4", key: "pucp1d" }],
|
|
1443
1449
|
["path", { d: "M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22", key: "1ailkh" }],
|
|
@@ -1450,7 +1456,7 @@ const aa = e("shuffle", [
|
|
|
1450
1456
|
* This source code is licensed under the ISC license.
|
|
1451
1457
|
* See the LICENSE file in the root directory of this source tree.
|
|
1452
1458
|
*/
|
|
1453
|
-
const
|
|
1459
|
+
const na = e("sparkles", [
|
|
1454
1460
|
[
|
|
1455
1461
|
"path",
|
|
1456
1462
|
{
|
|
@@ -1468,7 +1474,7 @@ const oa = e("sparkles", [
|
|
|
1468
1474
|
* This source code is licensed under the ISC license.
|
|
1469
1475
|
* See the LICENSE file in the root directory of this source tree.
|
|
1470
1476
|
*/
|
|
1471
|
-
const
|
|
1477
|
+
const ia = e("split", [
|
|
1472
1478
|
["path", { d: "M16 3h5v5", key: "1806ms" }],
|
|
1473
1479
|
["path", { d: "M8 3H3v5", key: "15dfkv" }],
|
|
1474
1480
|
["path", { d: "M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3", key: "1qrqzj" }],
|
|
@@ -1480,7 +1486,7 @@ const na = e("split", [
|
|
|
1480
1486
|
* This source code is licensed under the ISC license.
|
|
1481
1487
|
* See the LICENSE file in the root directory of this source tree.
|
|
1482
1488
|
*/
|
|
1483
|
-
const
|
|
1489
|
+
const ca = e("tag", [
|
|
1484
1490
|
[
|
|
1485
1491
|
"path",
|
|
1486
1492
|
{
|
|
@@ -1516,7 +1522,7 @@ const sa = e("tags", [
|
|
|
1516
1522
|
* This source code is licensed under the ISC license.
|
|
1517
1523
|
* See the LICENSE file in the root directory of this source tree.
|
|
1518
1524
|
*/
|
|
1519
|
-
const
|
|
1525
|
+
const da = e("terminal", [
|
|
1520
1526
|
["path", { d: "M12 19h8", key: "baeox8" }],
|
|
1521
1527
|
["path", { d: "m4 17 6-6-6-6", key: "1yngyt" }]
|
|
1522
1528
|
]);
|
|
@@ -1526,7 +1532,7 @@ const ca = e("terminal", [
|
|
|
1526
1532
|
* This source code is licensed under the ISC license.
|
|
1527
1533
|
* See the LICENSE file in the root directory of this source tree.
|
|
1528
1534
|
*/
|
|
1529
|
-
const
|
|
1535
|
+
const ra = e("text-cursor-input", [
|
|
1530
1536
|
["path", { d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6", key: "1528k5" }],
|
|
1531
1537
|
["path", { d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7", key: "13ksps" }],
|
|
1532
1538
|
["path", { d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1", key: "1n9rhb" }],
|
|
@@ -1552,7 +1558,7 @@ const la = e("trash-2", [
|
|
|
1552
1558
|
* This source code is licensed under the ISC license.
|
|
1553
1559
|
* See the LICENSE file in the root directory of this source tree.
|
|
1554
1560
|
*/
|
|
1555
|
-
const
|
|
1561
|
+
const ha = e("triangle-alert", [
|
|
1556
1562
|
[
|
|
1557
1563
|
"path",
|
|
1558
1564
|
{
|
|
@@ -1569,7 +1575,7 @@ const ra = e("triangle-alert", [
|
|
|
1569
1575
|
* This source code is licensed under the ISC license.
|
|
1570
1576
|
* See the LICENSE file in the root directory of this source tree.
|
|
1571
1577
|
*/
|
|
1572
|
-
const
|
|
1578
|
+
const ya = e("trophy", [
|
|
1573
1579
|
["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978", key: "1n3hpd" }],
|
|
1574
1580
|
["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978", key: "rfe1zi" }],
|
|
1575
1581
|
["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18", key: "7xy6bh" }],
|
|
@@ -1583,7 +1589,7 @@ const ha = e("trophy", [
|
|
|
1583
1589
|
* This source code is licensed under the ISC license.
|
|
1584
1590
|
* See the LICENSE file in the root directory of this source tree.
|
|
1585
1591
|
*/
|
|
1586
|
-
const
|
|
1592
|
+
const pa = e("video", [
|
|
1587
1593
|
[
|
|
1588
1594
|
"path",
|
|
1589
1595
|
{
|
|
@@ -1599,7 +1605,7 @@ const ya = e("video", [
|
|
|
1599
1605
|
* This source code is licensed under the ISC license.
|
|
1600
1606
|
* See the LICENSE file in the root directory of this source tree.
|
|
1601
1607
|
*/
|
|
1602
|
-
const
|
|
1608
|
+
const ka = e("wand-sparkles", [
|
|
1603
1609
|
[
|
|
1604
1610
|
"path",
|
|
1605
1611
|
{
|
|
@@ -1621,7 +1627,7 @@ const pa = e("wand-sparkles", [
|
|
|
1621
1627
|
* This source code is licensed under the ISC license.
|
|
1622
1628
|
* See the LICENSE file in the root directory of this source tree.
|
|
1623
1629
|
*/
|
|
1624
|
-
const
|
|
1630
|
+
const ua = e("webhook", [
|
|
1625
1631
|
[
|
|
1626
1632
|
"path",
|
|
1627
1633
|
{
|
|
@@ -1631,7 +1637,7 @@ const ka = e("webhook", [
|
|
|
1631
1637
|
],
|
|
1632
1638
|
["path", { d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06", key: "1go1hn" }],
|
|
1633
1639
|
["path", { d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8", key: "qlwsc0" }]
|
|
1634
|
-
]),
|
|
1640
|
+
]), ma = [
|
|
1635
1641
|
"archive",
|
|
1636
1642
|
"archive-restore",
|
|
1637
1643
|
"arrow-down-to-line",
|
|
@@ -1705,167 +1711,167 @@ const ka = e("webhook", [
|
|
|
1705
1711
|
"video",
|
|
1706
1712
|
"wand-sparkles",
|
|
1707
1713
|
"webhook"
|
|
1708
|
-
],
|
|
1709
|
-
archive:
|
|
1710
|
-
"archive-restore":
|
|
1711
|
-
"arrow-down-to-line":
|
|
1712
|
-
"badge-check":
|
|
1713
|
-
bot:
|
|
1714
|
-
box:
|
|
1715
|
-
brain:
|
|
1716
|
-
"brain-circuit":
|
|
1717
|
-
"chart-column":
|
|
1718
|
-
"clipboard-check":
|
|
1714
|
+
], Pa = Object.freeze(ma), va = Object.freeze({
|
|
1715
|
+
archive: Ke,
|
|
1716
|
+
"archive-restore": Je,
|
|
1717
|
+
"arrow-down-to-line": Qe,
|
|
1718
|
+
"badge-check": et,
|
|
1719
|
+
bot: tt,
|
|
1720
|
+
box: at,
|
|
1721
|
+
brain: nt,
|
|
1722
|
+
"brain-circuit": ot,
|
|
1723
|
+
"chart-column": it,
|
|
1724
|
+
"clipboard-check": ct,
|
|
1719
1725
|
"clock-3": st,
|
|
1720
|
-
"cloud-download":
|
|
1721
|
-
combine:
|
|
1726
|
+
"cloud-download": dt,
|
|
1727
|
+
combine: rt,
|
|
1722
1728
|
copy: lt,
|
|
1723
|
-
cpu:
|
|
1724
|
-
crop:
|
|
1725
|
-
crosshair:
|
|
1726
|
-
database:
|
|
1727
|
-
download:
|
|
1728
|
-
eye:
|
|
1729
|
-
"file-down":
|
|
1730
|
-
files:
|
|
1729
|
+
cpu: ht,
|
|
1730
|
+
crop: yt,
|
|
1731
|
+
crosshair: pt,
|
|
1732
|
+
database: kt,
|
|
1733
|
+
download: ut,
|
|
1734
|
+
eye: mt,
|
|
1735
|
+
"file-down": vt,
|
|
1736
|
+
files: gt,
|
|
1731
1737
|
film: wt,
|
|
1732
|
-
"folder-plus":
|
|
1733
|
-
"folder-root":
|
|
1734
|
-
"folder-sync":
|
|
1735
|
-
funnel:
|
|
1736
|
-
"gallery-vertical-end":
|
|
1737
|
-
gauge:
|
|
1738
|
+
"folder-plus": ft,
|
|
1739
|
+
"folder-root": Mt,
|
|
1740
|
+
"folder-sync": xt,
|
|
1741
|
+
funnel: bt,
|
|
1742
|
+
"gallery-vertical-end": zt,
|
|
1743
|
+
gauge: Ht,
|
|
1738
1744
|
"git-branch": _t,
|
|
1739
|
-
"git-merge":
|
|
1740
|
-
"hard-drive-download":
|
|
1741
|
-
"hard-drive-upload":
|
|
1742
|
-
history:
|
|
1743
|
-
image:
|
|
1744
|
-
"image-plus":
|
|
1745
|
-
"image-up":
|
|
1746
|
-
images:
|
|
1747
|
-
layers:
|
|
1748
|
-
"list-checks":
|
|
1749
|
-
"loader-circle":
|
|
1745
|
+
"git-merge": Vt,
|
|
1746
|
+
"hard-drive-download": At,
|
|
1747
|
+
"hard-drive-upload": Ct,
|
|
1748
|
+
history: qt,
|
|
1749
|
+
image: Pt,
|
|
1750
|
+
"image-plus": Lt,
|
|
1751
|
+
"image-up": $t,
|
|
1752
|
+
images: Tt,
|
|
1753
|
+
layers: It,
|
|
1754
|
+
"list-checks": jt,
|
|
1755
|
+
"loader-circle": Nt,
|
|
1750
1756
|
mail: St,
|
|
1751
1757
|
moon: Bt,
|
|
1752
|
-
"move-right":
|
|
1753
|
-
"octagon-x":
|
|
1754
|
-
"package-minus":
|
|
1755
|
-
"package-open":
|
|
1756
|
-
"package-plus":
|
|
1757
|
-
play:
|
|
1758
|
-
radar:
|
|
1759
|
-
route:
|
|
1760
|
-
ruler:
|
|
1761
|
-
scale:
|
|
1762
|
-
"scan-eye":
|
|
1763
|
-
"scan-search":
|
|
1764
|
-
"scan-text":
|
|
1765
|
-
scissors:
|
|
1766
|
-
search:
|
|
1767
|
-
settings:
|
|
1768
|
-
"shield-check":
|
|
1769
|
-
shuffle:
|
|
1770
|
-
sparkles:
|
|
1771
|
-
split:
|
|
1772
|
-
tag:
|
|
1758
|
+
"move-right": Ft,
|
|
1759
|
+
"octagon-x": Dt,
|
|
1760
|
+
"package-minus": Ot,
|
|
1761
|
+
"package-open": Et,
|
|
1762
|
+
"package-plus": Zt,
|
|
1763
|
+
play: Rt,
|
|
1764
|
+
radar: Xt,
|
|
1765
|
+
route: Ut,
|
|
1766
|
+
ruler: Gt,
|
|
1767
|
+
scale: Yt,
|
|
1768
|
+
"scan-eye": Wt,
|
|
1769
|
+
"scan-search": Jt,
|
|
1770
|
+
"scan-text": Kt,
|
|
1771
|
+
scissors: Qt,
|
|
1772
|
+
search: ea,
|
|
1773
|
+
settings: ta,
|
|
1774
|
+
"shield-check": aa,
|
|
1775
|
+
shuffle: oa,
|
|
1776
|
+
sparkles: na,
|
|
1777
|
+
split: ia,
|
|
1778
|
+
tag: ca,
|
|
1773
1779
|
tags: sa,
|
|
1774
|
-
terminal:
|
|
1775
|
-
"text-cursor-input":
|
|
1780
|
+
terminal: da,
|
|
1781
|
+
"text-cursor-input": ra,
|
|
1776
1782
|
"trash-2": la,
|
|
1777
|
-
"triangle-alert":
|
|
1778
|
-
trophy:
|
|
1779
|
-
video:
|
|
1780
|
-
"wand-sparkles":
|
|
1781
|
-
webhook:
|
|
1782
|
-
}),
|
|
1783
|
+
"triangle-alert": ha,
|
|
1784
|
+
trophy: ya,
|
|
1785
|
+
video: pa,
|
|
1786
|
+
"wand-sparkles": ka,
|
|
1787
|
+
webhook: ua
|
|
1788
|
+
}), ga = { class: "ob-flow-preview" }, wa = ["viewBox"], fa = ["d"], Ma = ["x", "y"], xa = ["x", "y"], ba = ["href", "x", "y"], za = ["x", "y"], Ha = ["x", "y"], D = 260, O = 100, E = 140, _a = 140, X = 48, Z = 26, Ta = /* @__PURE__ */ R({
|
|
1783
1789
|
__name: "FlowPreview",
|
|
1784
1790
|
props: {
|
|
1785
1791
|
preview: {},
|
|
1786
|
-
icons: { default: () =>
|
|
1792
|
+
icons: { default: () => va },
|
|
1787
1793
|
iconUrl: { type: Function, default: void 0 }
|
|
1788
1794
|
},
|
|
1789
1795
|
setup(t) {
|
|
1790
|
-
const n = t, v =
|
|
1791
|
-
var o,
|
|
1792
|
-
const k = ((o = n.preview) == null ? void 0 : o.n) ?? [], b = new Map(k.map((
|
|
1793
|
-
for (let
|
|
1794
|
-
for (const
|
|
1795
|
-
const $ = b.get(
|
|
1796
|
+
const n = t, v = q(() => {
|
|
1797
|
+
var o, d;
|
|
1798
|
+
const k = ((o = n.preview) == null ? void 0 : o.n) ?? [], b = new Map(k.map((g) => [g.id, { x: g.x, y: g.y }]));
|
|
1799
|
+
for (let g = 0; g < k.length; g += 1)
|
|
1800
|
+
for (const H of ((d = n.preview) == null ? void 0 : d.e) ?? []) {
|
|
1801
|
+
const $ = b.get(H.s), L = b.get(H.t);
|
|
1796
1802
|
$ && L && Math.abs($.x - L.x) < _a && (L.x = $.x);
|
|
1797
1803
|
}
|
|
1798
|
-
return k.map((
|
|
1799
|
-
...
|
|
1800
|
-
...b.get(
|
|
1804
|
+
return k.map((g) => ({
|
|
1805
|
+
...g,
|
|
1806
|
+
...b.get(g.id) ?? { x: g.x, y: g.y }
|
|
1801
1807
|
}));
|
|
1802
|
-
}), x =
|
|
1808
|
+
}), x = q(() => {
|
|
1803
1809
|
const k = v.value;
|
|
1804
1810
|
if (k.length === 0) return "0 0 1 1";
|
|
1805
|
-
let b = 1 / 0, o = 1 / 0,
|
|
1806
|
-
for (const
|
|
1807
|
-
b = Math.min(b,
|
|
1808
|
-
return `${b -
|
|
1809
|
-
}),
|
|
1811
|
+
let b = 1 / 0, o = 1 / 0, d = -1 / 0, g = -1 / 0;
|
|
1812
|
+
for (const H of k)
|
|
1813
|
+
b = Math.min(b, H.x), o = Math.min(o, H.y), d = Math.max(d, H.x + D), g = Math.max(g, H.y + O);
|
|
1814
|
+
return `${b - E} ${o - E} ${d - b + E * 2} ${g - o + E * 2}`;
|
|
1815
|
+
}), l = q(
|
|
1810
1816
|
() => new Map(v.value.map((k) => [k.id, k]))
|
|
1811
1817
|
);
|
|
1812
|
-
function
|
|
1813
|
-
const o =
|
|
1814
|
-
if (!o || !
|
|
1815
|
-
const
|
|
1816
|
-
return `M ${
|
|
1818
|
+
function p(k, b) {
|
|
1819
|
+
const o = l.value.get(k), d = l.value.get(b);
|
|
1820
|
+
if (!o || !d) return "";
|
|
1821
|
+
const g = o.x + D / 2, H = o.y + O / 2, $ = d.x + D / 2, L = d.y + O / 2;
|
|
1822
|
+
return `M ${g} ${H} L ${$} ${L}`;
|
|
1817
1823
|
}
|
|
1818
|
-
return (k, b) => (i(),
|
|
1819
|
-
t.preview && t.preview.n.length > 0 ? (i(),
|
|
1824
|
+
return (k, b) => (i(), r("div", ga, [
|
|
1825
|
+
t.preview && t.preview.n.length > 0 ? (i(), r("svg", {
|
|
1820
1826
|
key: 0,
|
|
1821
1827
|
class: "ob-flow-preview__svg",
|
|
1822
1828
|
viewBox: x.value,
|
|
1823
1829
|
preserveAspectRatio: "xMidYMid meet"
|
|
1824
1830
|
}, [
|
|
1825
|
-
(i(!0),
|
|
1826
|
-
key:
|
|
1827
|
-
d:
|
|
1831
|
+
(i(!0), r(P, null, B(t.preview.e, (o, d) => (i(), r("path", {
|
|
1832
|
+
key: d,
|
|
1833
|
+
d: p(o.s, o.t),
|
|
1828
1834
|
class: "ob-flow-preview__edge",
|
|
1829
1835
|
"vector-effect": "non-scaling-stroke"
|
|
1830
|
-
}, null, 8,
|
|
1831
|
-
(i(!0),
|
|
1836
|
+
}, null, 8, fa))), 128)),
|
|
1837
|
+
(i(!0), r(P, null, B(v.value, (o) => (i(), r("rect", {
|
|
1832
1838
|
key: o.id,
|
|
1833
1839
|
x: o.x,
|
|
1834
1840
|
y: o.y,
|
|
1835
|
-
width:
|
|
1836
|
-
height:
|
|
1841
|
+
width: D,
|
|
1842
|
+
height: O,
|
|
1837
1843
|
rx: "16",
|
|
1838
1844
|
class: "ob-flow-preview__node",
|
|
1839
1845
|
"vector-effect": "non-scaling-stroke"
|
|
1840
|
-
}, null, 8,
|
|
1841
|
-
(i(!0),
|
|
1846
|
+
}, null, 8, Ma))), 128)),
|
|
1847
|
+
(i(!0), r(P, null, B(v.value, (o) => (i(), r(P, {
|
|
1842
1848
|
key: `content-${o.id}`
|
|
1843
1849
|
}, [
|
|
1844
|
-
|
|
1850
|
+
f("rect", {
|
|
1845
1851
|
x: o.x + 18,
|
|
1846
1852
|
y: o.y + 18,
|
|
1847
1853
|
width: "64",
|
|
1848
1854
|
height: "64",
|
|
1849
1855
|
rx: "16",
|
|
1850
1856
|
class: "ob-flow-preview__icon-background",
|
|
1851
|
-
style:
|
|
1852
|
-
}, null, 12,
|
|
1853
|
-
o.i && t.icons[o.i] ? (i(),
|
|
1857
|
+
style: F(o.c ? { fill: o.c } : void 0)
|
|
1858
|
+
}, null, 12, xa),
|
|
1859
|
+
o.i && t.icons[o.i] ? (i(), C(he(t.icons[o.i]), {
|
|
1854
1860
|
key: 0,
|
|
1855
|
-
x: o.x +
|
|
1856
|
-
y: o.y +
|
|
1857
|
-
size:
|
|
1861
|
+
x: o.x + Z,
|
|
1862
|
+
y: o.y + Z,
|
|
1863
|
+
size: X,
|
|
1858
1864
|
color: "white",
|
|
1859
1865
|
"stroke-width": 2.5,
|
|
1860
1866
|
"aria-hidden": "true"
|
|
1861
|
-
}, null, 8, ["x", "y"])) : o.i && t.iconUrl ? (i(),
|
|
1867
|
+
}, null, 8, ["x", "y"])) : o.i && t.iconUrl ? (i(), r("image", {
|
|
1862
1868
|
key: 1,
|
|
1863
1869
|
href: t.iconUrl(o.i),
|
|
1864
|
-
x: o.x +
|
|
1865
|
-
y: o.y +
|
|
1866
|
-
width:
|
|
1867
|
-
height:
|
|
1868
|
-
}, null, 8,
|
|
1870
|
+
x: o.x + Z,
|
|
1871
|
+
y: o.y + Z,
|
|
1872
|
+
width: X,
|
|
1873
|
+
height: X
|
|
1874
|
+
}, null, 8, ba)) : (i(), r("text", {
|
|
1869
1875
|
key: 2,
|
|
1870
1876
|
x: o.x + 50,
|
|
1871
1877
|
y: o.y + 68,
|
|
@@ -1873,23 +1879,23 @@ const ka = e("webhook", [
|
|
|
1873
1879
|
"font-size": "42",
|
|
1874
1880
|
"font-family": "sans-serif",
|
|
1875
1881
|
"text-anchor": "middle"
|
|
1876
|
-
}, " * ", 8,
|
|
1877
|
-
|
|
1882
|
+
}, " * ", 8, za)),
|
|
1883
|
+
f("rect", {
|
|
1878
1884
|
x: o.x + 100,
|
|
1879
1885
|
y: o.y + 45,
|
|
1880
1886
|
width: "128",
|
|
1881
1887
|
height: "10",
|
|
1882
1888
|
rx: "5",
|
|
1883
1889
|
class: "ob-flow-preview__line"
|
|
1884
|
-
}, null, 8,
|
|
1890
|
+
}, null, 8, Ha)
|
|
1885
1891
|
], 64))), 128))
|
|
1886
1892
|
], 8, wa)) : z("", !0)
|
|
1887
1893
|
]));
|
|
1888
1894
|
}
|
|
1889
1895
|
});
|
|
1890
1896
|
export {
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1897
|
+
Ta as FlowPreview,
|
|
1898
|
+
La as FlowViewer,
|
|
1899
|
+
Pa as nodePreviewIconNames,
|
|
1900
|
+
va as nodePreviewIcons
|
|
1895
1901
|
};
|