125 lines
3.5 KiB
JavaScript
125 lines
3.5 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: fd0220e4d10052af.701bdafa2d.js
|
|
* Module id: 710871
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(462214),
|
|
n = e.i(358379),
|
|
i = e.i(768924),
|
|
r = e.i(790748),
|
|
a = e.i(41114),
|
|
o = e.i(463672),
|
|
s = e.i(386951),
|
|
c = e.i(210550),
|
|
l = e.i(260561);
|
|
let u = (0, n.memo)(
|
|
(0, n.forwardRef)(function (
|
|
{
|
|
id: e,
|
|
selected: n,
|
|
label: u,
|
|
titleIcon: h,
|
|
isStale: f,
|
|
onDismissStale: d,
|
|
onRetry: p,
|
|
isReadonly: g,
|
|
onLabelChange: b,
|
|
maxWidth: m,
|
|
generatorAnchorWidth: w,
|
|
rootClassName: v = "relative",
|
|
interaction: x,
|
|
contentStyle: y,
|
|
contentClassName: _ = "group overflow-visible rounded-xl",
|
|
shouldShowGenerator: S,
|
|
nodeType: E,
|
|
generatorType: M,
|
|
incomingData: T,
|
|
hideTargetHandle: k,
|
|
hideSourceHandle: C,
|
|
beforeContent: A,
|
|
afterContent: N,
|
|
children: I,
|
|
titleDimensionHint: P,
|
|
labelSuffix: R,
|
|
},
|
|
L,
|
|
) {
|
|
let {
|
|
isConnectionTarget: D,
|
|
isConnectionBlocked: j,
|
|
isConnectionInvalid: O,
|
|
onNodeMouseEnter: F,
|
|
onNodeMouseLeave: U,
|
|
tiltStyle: B,
|
|
handleTiltMove: H,
|
|
handleVisible: z,
|
|
pipelineNodeStatus: G,
|
|
pipelineBorderColor: $,
|
|
} = x,
|
|
V = (0, i.useStore)((t) => t.nodeLookup.get(e)?.dragging === !0);
|
|
return (0, t.jsxs)("div", {
|
|
ref: L,
|
|
className: (0, a.cn)("node-shell", v),
|
|
"data-nodeid": e,
|
|
style: { overflow: "visible", width: "fit-content", ...B },
|
|
onMouseEnter: F,
|
|
onMouseLeave: U,
|
|
onMouseMove: H,
|
|
children: [
|
|
(0, t.jsx)(o.default, {
|
|
nodeId: e,
|
|
label: u,
|
|
icon: h,
|
|
isStale: f,
|
|
onDismissStale: d,
|
|
onRetry: p,
|
|
onLabelChange: b,
|
|
readOnly: g,
|
|
maxWidth: m,
|
|
titleDimensionHint: P,
|
|
labelSuffix: R,
|
|
}),
|
|
!V &&
|
|
(0, t.jsx)(l.PipelineStatusLabel, { status: G, borderColor: $ }),
|
|
!V && A,
|
|
(0, t.jsxs)("div", {
|
|
className: _,
|
|
style: y,
|
|
children: [
|
|
(0, t.jsx)(c.TargetHandle, {
|
|
visible: !g && !k && z,
|
|
isConnectable: !g && !k,
|
|
}),
|
|
(0, t.jsx)(s.default, { active: D, invalid: O }),
|
|
(0, t.jsx)(s.NodeFrostedOverlay, { active: j || O }),
|
|
I,
|
|
(0, t.jsx)(c.SourceHandle, {
|
|
visible: !g && !C && z,
|
|
isConnectable: !g && !C,
|
|
}),
|
|
],
|
|
}),
|
|
N,
|
|
!V &&
|
|
S &&
|
|
E &&
|
|
T &&
|
|
(0, t.jsx)(r.GeneratorFactory, {
|
|
nodeType: E,
|
|
generatorType: M,
|
|
nodeId: e,
|
|
incomingData: T,
|
|
layoutAnchorWidth: w,
|
|
}),
|
|
],
|
|
});
|
|
}),
|
|
);
|
|
e.s(["default", 0, u]);
|
|
};
|
|
|
|
export default moduleFactory;
|