@railtownai/railtracks-visualizer 0.0.39 → 0.0.41
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/cjs/index.js +749 -277
- package/dist/esm/index.js +942 -469
- package/dist/types/agenthub/components/KeyboardShortcutsModal.d.ts +6 -0
- package/dist/types/agenthub/components/SendFeedbackButton.d.ts +2 -0
- package/dist/types/agenthub/components/ThemeToggleButton.d.ts +2 -0
- package/dist/types/agenthub/context/EvaluationsMockProvider.d.ts +40 -0
- package/dist/types/agenthub/context/SessionsMockProvider.d.ts +12 -0
- package/dist/types/agenthub/hooks/useEvaluations.d.ts +7 -0
- package/dist/types/agenthub/hooks/useSequenceShortcut.d.ts +13 -0
- package/dist/types/agenthub/hooks/useSessions.d.ts +26 -0
- package/dist/types/agenthub/hooks/useShareAgentSession.d.ts +4 -0
- package/dist/types/agenthub/pages/evaluation-details.d.ts +9 -0
- package/dist/types/agenthub/pages/evaluations-compare-drawer.d.ts +13 -0
- package/dist/types/agenthub/pages/evaluations-compare.d.ts +2 -0
- package/dist/types/agenthub/pages/evaluations.d.ts +2 -0
- package/dist/types/agenthub/pages/evaluations.types.d.ts +35 -0
- package/dist/types/agenthub/pages/index.d.ts +5 -0
- package/dist/types/agenthub/pages/session-details.d.ts +9 -0
- package/dist/types/agenthub/pages/sessions.d.ts +2 -0
- package/dist/types/agenthub/pages/visualizer.d.ts +2 -0
- package/dist/types/components/nodes/AgentNode.d.ts +1 -0
- package/dist/types/components/ui/drawer.d.ts +4 -0
- package/dist/types/components/ui/header.d.ts +1 -21
- package/dist/types/dto/AgentSession.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/useApi.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +25 -20
- package/dist/types/components/ThemeToggle.d.ts +0 -2
- package/dist/types/components/ui/checkbox.d.ts +0 -4
- package/dist/types/hooks/useRailtracksStream.d.ts +0 -18
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { memo, useMemo, useState, useCallback, forwardRef, createContext, useContext, useRef, useLayoutEffect, useEffect, createElement } from 'react';
|
|
3
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { jsx as jsx$1, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as ReactDOM from 'react-dom';
|
|
5
5
|
import ReactDOM__default from 'react-dom';
|
|
6
6
|
import CountUp from 'react-countup';
|
|
@@ -3183,7 +3183,8 @@ const initialConnection = {
|
|
|
3183
3183
|
to: null,
|
|
3184
3184
|
toHandle: null,
|
|
3185
3185
|
toPosition: null,
|
|
3186
|
-
toNode: null
|
|
3186
|
+
toNode: null,
|
|
3187
|
+
pointer: null
|
|
3187
3188
|
};
|
|
3188
3189
|
/**
|
|
3189
3190
|
* If you set the `connectionLineType` prop on your [`<ReactFlow />`](/api-reference/react-flow#connection-connectionLineType)
|
|
@@ -5550,7 +5551,8 @@ function onPointerDown(event, { connectionMode, connectionRadius, handleId, node
|
|
|
5550
5551
|
to: position,
|
|
5551
5552
|
toHandle: null,
|
|
5552
5553
|
toPosition: oppositePosition[fromHandle.position],
|
|
5553
|
-
toNode: null
|
|
5554
|
+
toNode: null,
|
|
5555
|
+
pointer: position
|
|
5554
5556
|
};
|
|
5555
5557
|
function startConnection() {
|
|
5556
5558
|
connectionStarted = true;
|
|
@@ -5614,14 +5616,9 @@ function onPointerDown(event, { connectionMode, connectionRadius, handleId, node
|
|
|
5614
5616
|
}, transform) : position,
|
|
5615
5617
|
toHandle: result.toHandle,
|
|
5616
5618
|
toPosition: isValid && result.toHandle ? result.toHandle.position : oppositePosition[fromHandle.position],
|
|
5617
|
-
toNode: result.toHandle ? nodeLookup.get(result.toHandle.nodeId) : null
|
|
5619
|
+
toNode: result.toHandle ? nodeLookup.get(result.toHandle.nodeId) : null,
|
|
5620
|
+
pointer: position
|
|
5618
5621
|
};
|
|
5619
|
-
/*
|
|
5620
|
-
* we don't want to trigger an update when the connection
|
|
5621
|
-
* is snapped to the same handle as before
|
|
5622
|
-
*/ if (isValid && closestHandle && previousConnection.toHandle && newConnection.toHandle && previousConnection.toHandle.type === newConnection.toHandle.type && previousConnection.toHandle.nodeId === newConnection.toHandle.nodeId && previousConnection.toHandle.id === newConnection.toHandle.id && previousConnection.to.x === newConnection.to.x && previousConnection.to.y === newConnection.to.y) {
|
|
5623
|
-
return;
|
|
5624
|
-
}
|
|
5625
5622
|
updateConnection(newConnection);
|
|
5626
5623
|
previousConnection = newConnection;
|
|
5627
5624
|
}
|
|
@@ -7112,7 +7109,7 @@ const ariaLiveSelector = (s)=>s.ariaLiveMessage;
|
|
|
7112
7109
|
const ariaLabelConfigSelector = (s)=>s.ariaLabelConfig;
|
|
7113
7110
|
function AriaLiveMessage({ rfId }) {
|
|
7114
7111
|
const ariaLiveMessage = useStore(ariaLiveSelector);
|
|
7115
|
-
return jsx("div", {
|
|
7112
|
+
return jsx$1("div", {
|
|
7116
7113
|
id: `${ARIA_LIVE_MESSAGE}-${rfId}`,
|
|
7117
7114
|
"aria-live": "assertive",
|
|
7118
7115
|
"aria-atomic": "true",
|
|
@@ -7124,17 +7121,17 @@ function A11yDescriptions({ rfId, disableKeyboardA11y }) {
|
|
|
7124
7121
|
const ariaLabelConfig = useStore(ariaLabelConfigSelector);
|
|
7125
7122
|
return jsxs(Fragment, {
|
|
7126
7123
|
children: [
|
|
7127
|
-
jsx("div", {
|
|
7124
|
+
jsx$1("div", {
|
|
7128
7125
|
id: `${ARIA_NODE_DESC_KEY}-${rfId}`,
|
|
7129
7126
|
style: style,
|
|
7130
7127
|
children: disableKeyboardA11y ? ariaLabelConfig['node.a11yDescription.default'] : ariaLabelConfig['node.a11yDescription.keyboardDisabled']
|
|
7131
7128
|
}),
|
|
7132
|
-
jsx("div", {
|
|
7129
|
+
jsx$1("div", {
|
|
7133
7130
|
id: `${ARIA_EDGE_DESC_KEY}-${rfId}`,
|
|
7134
7131
|
style: style,
|
|
7135
7132
|
children: ariaLabelConfig['edge.a11yDescription.default']
|
|
7136
7133
|
}),
|
|
7137
|
-
!disableKeyboardA11y && jsx(AriaLiveMessage, {
|
|
7134
|
+
!disableKeyboardA11y && jsx$1(AriaLiveMessage, {
|
|
7138
7135
|
rfId: rfId
|
|
7139
7136
|
})
|
|
7140
7137
|
]
|
|
@@ -7166,7 +7163,7 @@ function A11yDescriptions({ rfId, disableKeyboardA11y }) {
|
|
|
7166
7163
|
*```
|
|
7167
7164
|
*/ const Panel = forwardRef(({ position = 'top-left', children, className, style, ...rest }, ref)=>{
|
|
7168
7165
|
const positionClasses = `${position}`.split('-');
|
|
7169
|
-
return jsx("div", {
|
|
7166
|
+
return jsx$1("div", {
|
|
7170
7167
|
className: cc([
|
|
7171
7168
|
'react-flow__panel',
|
|
7172
7169
|
className,
|
|
@@ -7183,11 +7180,11 @@ function Attribution({ proOptions, position = 'bottom-right' }) {
|
|
|
7183
7180
|
if (proOptions?.hideAttribution) {
|
|
7184
7181
|
return null;
|
|
7185
7182
|
}
|
|
7186
|
-
return jsx(Panel, {
|
|
7183
|
+
return jsx$1(Panel, {
|
|
7187
7184
|
position: position,
|
|
7188
7185
|
className: "react-flow__attribution",
|
|
7189
7186
|
"data-message": "Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",
|
|
7190
|
-
children: jsx("a", {
|
|
7187
|
+
children: jsx$1("a", {
|
|
7191
7188
|
href: "https://reactflow.dev",
|
|
7192
7189
|
target: "_blank",
|
|
7193
7190
|
rel: "noopener noreferrer",
|
|
@@ -7239,7 +7236,7 @@ const changeSelector = (s)=>!!s.onSelectionChangeHandlers;
|
|
|
7239
7236
|
function SelectionListener({ onSelectionChange }) {
|
|
7240
7237
|
const storeHasSelectionChangeHandlers = useStore(changeSelector);
|
|
7241
7238
|
if (onSelectionChange || storeHasSelectionChangeHandlers) {
|
|
7242
|
-
return jsx(SelectionListenerInner, {
|
|
7239
|
+
return jsx$1(SelectionListenerInner, {
|
|
7243
7240
|
onSelectionChange: onSelectionChange
|
|
7244
7241
|
});
|
|
7245
7242
|
}
|
|
@@ -8071,7 +8068,7 @@ const BatchContext = createContext(null);
|
|
|
8071
8068
|
nodeQueue,
|
|
8072
8069
|
edgeQueue
|
|
8073
8070
|
}), []);
|
|
8074
|
-
return jsx(BatchContext.Provider, {
|
|
8071
|
+
return jsx$1(BatchContext.Provider, {
|
|
8075
8072
|
value: value,
|
|
8076
8073
|
children: children
|
|
8077
8074
|
});
|
|
@@ -8537,7 +8534,7 @@ function ZoomPane({ onPaneContextMenu, zoomOnScroll = true, zoomOnPinch = true,
|
|
|
8537
8534
|
selectionOnDrag,
|
|
8538
8535
|
paneClickDistance
|
|
8539
8536
|
]);
|
|
8540
|
-
return jsx("div", {
|
|
8537
|
+
return jsx$1("div", {
|
|
8541
8538
|
className: "react-flow__renderer",
|
|
8542
8539
|
ref: zoomPane,
|
|
8543
8540
|
style: containerStyle,
|
|
@@ -8554,7 +8551,7 @@ function UserSelection() {
|
|
|
8554
8551
|
if (!isActive) {
|
|
8555
8552
|
return null;
|
|
8556
8553
|
}
|
|
8557
|
-
return jsx("div", {
|
|
8554
|
+
return jsx$1("div", {
|
|
8558
8555
|
className: "react-flow__selection react-flow__container",
|
|
8559
8556
|
style: {
|
|
8560
8557
|
width: userSelectionRect.width,
|
|
@@ -8745,7 +8742,7 @@ function Pane({ isSelecting, selectionKeyPressed, selectionMode = SelectionMode.
|
|
|
8745
8742
|
style: containerStyle,
|
|
8746
8743
|
children: [
|
|
8747
8744
|
children,
|
|
8748
|
-
jsx(UserSelection, {})
|
|
8745
|
+
jsx$1(UserSelection, {})
|
|
8749
8746
|
]
|
|
8750
8747
|
});
|
|
8751
8748
|
}
|
|
@@ -9039,7 +9036,7 @@ function HandleComponent({ type = 'source', position = Position.Top, isValidConn
|
|
|
9039
9036
|
connectionClickStartHandle: null
|
|
9040
9037
|
});
|
|
9041
9038
|
};
|
|
9042
|
-
return jsx("div", {
|
|
9039
|
+
return jsx$1("div", {
|
|
9043
9040
|
"data-handleid": handleId,
|
|
9044
9041
|
"data-nodeid": nodeId,
|
|
9045
9042
|
"data-handlepos": position,
|
|
@@ -9103,7 +9100,7 @@ function InputNode({ data, isConnectable, sourcePosition = Position.Bottom }) {
|
|
|
9103
9100
|
return jsxs(Fragment, {
|
|
9104
9101
|
children: [
|
|
9105
9102
|
data?.label,
|
|
9106
|
-
jsx(Handle$1, {
|
|
9103
|
+
jsx$1(Handle$1, {
|
|
9107
9104
|
type: "source",
|
|
9108
9105
|
position: sourcePosition,
|
|
9109
9106
|
isConnectable: isConnectable
|
|
@@ -9114,13 +9111,13 @@ function InputNode({ data, isConnectable, sourcePosition = Position.Bottom }) {
|
|
|
9114
9111
|
function DefaultNode({ data, isConnectable, targetPosition = Position.Top, sourcePosition = Position.Bottom }) {
|
|
9115
9112
|
return jsxs(Fragment, {
|
|
9116
9113
|
children: [
|
|
9117
|
-
jsx(Handle$1, {
|
|
9114
|
+
jsx$1(Handle$1, {
|
|
9118
9115
|
type: "target",
|
|
9119
9116
|
position: targetPosition,
|
|
9120
9117
|
isConnectable: isConnectable
|
|
9121
9118
|
}),
|
|
9122
9119
|
data?.label,
|
|
9123
|
-
jsx(Handle$1, {
|
|
9120
|
+
jsx$1(Handle$1, {
|
|
9124
9121
|
type: "source",
|
|
9125
9122
|
position: sourcePosition,
|
|
9126
9123
|
isConnectable: isConnectable
|
|
@@ -9134,7 +9131,7 @@ function GroupNode() {
|
|
|
9134
9131
|
function OutputNode({ data, isConnectable, targetPosition = Position.Top }) {
|
|
9135
9132
|
return jsxs(Fragment, {
|
|
9136
9133
|
children: [
|
|
9137
|
-
jsx(Handle$1, {
|
|
9134
|
+
jsx$1(Handle$1, {
|
|
9138
9135
|
type: "target",
|
|
9139
9136
|
position: targetPosition,
|
|
9140
9137
|
isConnectable: isConnectable
|
|
@@ -9223,7 +9220,7 @@ function NodesSelection({ onSelectionContextMenu, noPanClassName, disableKeyboar
|
|
|
9223
9220
|
});
|
|
9224
9221
|
}
|
|
9225
9222
|
};
|
|
9226
|
-
return jsx("div", {
|
|
9223
|
+
return jsx$1("div", {
|
|
9227
9224
|
className: cc([
|
|
9228
9225
|
'react-flow__nodesselection',
|
|
9229
9226
|
'react-flow__container',
|
|
@@ -9232,7 +9229,7 @@ function NodesSelection({ onSelectionContextMenu, noPanClassName, disableKeyboar
|
|
|
9232
9229
|
style: {
|
|
9233
9230
|
transform: transformString
|
|
9234
9231
|
},
|
|
9235
|
-
children: jsx("div", {
|
|
9232
|
+
children: jsx$1("div", {
|
|
9236
9233
|
ref: nodeRef,
|
|
9237
9234
|
className: "react-flow__nodesselection-rect",
|
|
9238
9235
|
onContextMenu: onContextMenu,
|
|
@@ -9268,7 +9265,7 @@ function FlowRendererComponent({ children, onPaneClick, onPaneMouseEnter, onPane
|
|
|
9268
9265
|
deleteKeyCode,
|
|
9269
9266
|
multiSelectionKeyCode
|
|
9270
9267
|
});
|
|
9271
|
-
return jsx(ZoomPane, {
|
|
9268
|
+
return jsx$1(ZoomPane, {
|
|
9272
9269
|
onPaneContextMenu: onPaneContextMenu,
|
|
9273
9270
|
elementsSelectable: elementsSelectable,
|
|
9274
9271
|
zoomOnScroll: zoomOnScroll,
|
|
@@ -9307,7 +9304,7 @@ function FlowRendererComponent({ children, onPaneClick, onPaneMouseEnter, onPane
|
|
|
9307
9304
|
selectionOnDrag: _selectionOnDrag,
|
|
9308
9305
|
children: [
|
|
9309
9306
|
children,
|
|
9310
|
-
nodesSelectionActive && jsx(NodesSelection, {
|
|
9307
|
+
nodesSelectionActive && jsx$1(NodesSelection, {
|
|
9311
9308
|
onSelectionContextMenu: onSelectionContextMenu,
|
|
9312
9309
|
noPanClassName: noPanClassName,
|
|
9313
9310
|
disableKeyboardA11y: disableKeyboardA11y
|
|
@@ -9564,7 +9561,7 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
|
|
|
9564
9561
|
});
|
|
9565
9562
|
}
|
|
9566
9563
|
};
|
|
9567
|
-
return jsx("div", {
|
|
9564
|
+
return jsx$1("div", {
|
|
9568
9565
|
className: cc([
|
|
9569
9566
|
'react-flow__node',
|
|
9570
9567
|
`react-flow__node-${nodeType}`,
|
|
@@ -9606,9 +9603,9 @@ function NodeWrapper({ id, onClick, onMouseEnter, onMouseMove, onMouseLeave, onC
|
|
|
9606
9603
|
"aria-describedby": disableKeyboardA11y ? undefined : `${ARIA_NODE_DESC_KEY}-${rfId}`,
|
|
9607
9604
|
"aria-label": node.ariaLabel,
|
|
9608
9605
|
...node.domAttributes,
|
|
9609
|
-
children: jsx(Provider, {
|
|
9606
|
+
children: jsx$1(Provider, {
|
|
9610
9607
|
value: id,
|
|
9611
|
-
children: jsx(NodeComponent, {
|
|
9608
|
+
children: jsx$1(NodeComponent, {
|
|
9612
9609
|
id: id,
|
|
9613
9610
|
data: node.data,
|
|
9614
9611
|
type: nodeType,
|
|
@@ -9642,7 +9639,7 @@ function NodeRendererComponent(props) {
|
|
|
9642
9639
|
const { nodesDraggable, nodesConnectable, nodesFocusable, elementsSelectable, onError } = useStore(selector$b, shallow$1);
|
|
9643
9640
|
const nodeIds = useVisibleNodeIds(props.onlyRenderVisibleElements);
|
|
9644
9641
|
const resizeObserver = useResizeObserver();
|
|
9645
|
-
return jsx("div", {
|
|
9642
|
+
return jsx$1("div", {
|
|
9646
9643
|
className: "react-flow__nodes",
|
|
9647
9644
|
style: containerStyle,
|
|
9648
9645
|
children: nodeIds.map((nodeId)=>{
|
|
@@ -9670,7 +9667,7 @@ function NodeRendererComponent(props) {
|
|
|
9670
9667
|
* moved into `NodeComponentWrapper`. This ensures they are
|
|
9671
9668
|
* memorized – so if `NodeRenderer` *has* to rerender, it only
|
|
9672
9669
|
* needs to regenerate the list of nodes, nothing else.
|
|
9673
|
-
*/ jsx(NodeWrapper$1, {
|
|
9670
|
+
*/ jsx$1(NodeWrapper$1, {
|
|
9674
9671
|
id: nodeId,
|
|
9675
9672
|
nodeTypes: props.nodeTypes,
|
|
9676
9673
|
nodeExtent: props.nodeExtent,
|
|
@@ -9737,7 +9734,7 @@ const ArrowSymbol = ({ color = 'none', strokeWidth = 1 })=>{
|
|
|
9737
9734
|
stroke: color
|
|
9738
9735
|
}
|
|
9739
9736
|
};
|
|
9740
|
-
return jsx("polyline", {
|
|
9737
|
+
return jsx$1("polyline", {
|
|
9741
9738
|
className: "arrow",
|
|
9742
9739
|
style: style,
|
|
9743
9740
|
strokeLinecap: "round",
|
|
@@ -9754,7 +9751,7 @@ const ArrowClosedSymbol = ({ color = 'none', strokeWidth = 1 })=>{
|
|
|
9754
9751
|
fill: color
|
|
9755
9752
|
}
|
|
9756
9753
|
};
|
|
9757
|
-
return jsx("polyline", {
|
|
9754
|
+
return jsx$1("polyline", {
|
|
9758
9755
|
className: "arrowclosed",
|
|
9759
9756
|
style: style,
|
|
9760
9757
|
strokeLinecap: "round",
|
|
@@ -9785,7 +9782,7 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
|
|
|
9785
9782
|
if (!Symbol) {
|
|
9786
9783
|
return null;
|
|
9787
9784
|
}
|
|
9788
|
-
return jsx("marker", {
|
|
9785
|
+
return jsx$1("marker", {
|
|
9789
9786
|
className: "react-flow__arrowhead",
|
|
9790
9787
|
id: id,
|
|
9791
9788
|
markerWidth: `${width}`,
|
|
@@ -9795,7 +9792,7 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
|
|
|
9795
9792
|
orient: orient,
|
|
9796
9793
|
refX: "0",
|
|
9797
9794
|
refY: "0",
|
|
9798
|
-
children: jsx(Symbol, {
|
|
9795
|
+
children: jsx$1(Symbol, {
|
|
9799
9796
|
color: color,
|
|
9800
9797
|
strokeWidth: strokeWidth
|
|
9801
9798
|
})
|
|
@@ -9825,11 +9822,11 @@ const Marker = ({ id, type, color, width = 12.5, height = 12.5, markerUnits = 's
|
|
|
9825
9822
|
if (!markers.length) {
|
|
9826
9823
|
return null;
|
|
9827
9824
|
}
|
|
9828
|
-
return jsx("svg", {
|
|
9825
|
+
return jsx$1("svg", {
|
|
9829
9826
|
className: "react-flow__marker",
|
|
9830
9827
|
"aria-hidden": "true",
|
|
9831
|
-
children: jsx("defs", {
|
|
9832
|
-
children: markers.map((marker)=>jsx(Marker, {
|
|
9828
|
+
children: jsx$1("defs", {
|
|
9829
|
+
children: markers.map((marker)=>jsx$1(Marker, {
|
|
9833
9830
|
id: marker.id,
|
|
9834
9831
|
type: marker.type,
|
|
9835
9832
|
color: marker.color,
|
|
@@ -9881,7 +9878,7 @@ function EdgeTextComponent({ x, y, label, labelStyle, labelShowBg = true, labelB
|
|
|
9881
9878
|
visibility: edgeTextBbox.width ? 'visible' : 'hidden',
|
|
9882
9879
|
...rest,
|
|
9883
9880
|
children: [
|
|
9884
|
-
labelShowBg && jsx("rect", {
|
|
9881
|
+
labelShowBg && jsx$1("rect", {
|
|
9885
9882
|
width: edgeTextBbox.width + 2 * labelBgPadding[0],
|
|
9886
9883
|
x: -labelBgPadding[0],
|
|
9887
9884
|
y: -labelBgPadding[1],
|
|
@@ -9891,7 +9888,7 @@ function EdgeTextComponent({ x, y, label, labelStyle, labelShowBg = true, labelB
|
|
|
9891
9888
|
rx: labelBgBorderRadius,
|
|
9892
9889
|
ry: labelBgBorderRadius
|
|
9893
9890
|
}),
|
|
9894
|
-
jsx("text", {
|
|
9891
|
+
jsx$1("text", {
|
|
9895
9892
|
className: "react-flow__edge-text",
|
|
9896
9893
|
y: edgeTextBbox.height / 2,
|
|
9897
9894
|
dy: "0.3em",
|
|
@@ -9959,7 +9956,7 @@ EdgeTextComponent.displayName = 'EdgeText';
|
|
|
9959
9956
|
*/ function BaseEdge({ path, labelX, labelY, label, labelStyle, labelShowBg, labelBgStyle, labelBgPadding, labelBgBorderRadius, interactionWidth = 20, ...props }) {
|
|
9960
9957
|
return jsxs(Fragment, {
|
|
9961
9958
|
children: [
|
|
9962
|
-
jsx("path", {
|
|
9959
|
+
jsx$1("path", {
|
|
9963
9960
|
...props,
|
|
9964
9961
|
d: path,
|
|
9965
9962
|
fill: "none",
|
|
@@ -9968,14 +9965,14 @@ EdgeTextComponent.displayName = 'EdgeText';
|
|
|
9968
9965
|
props.className
|
|
9969
9966
|
])
|
|
9970
9967
|
}),
|
|
9971
|
-
interactionWidth ? jsx("path", {
|
|
9968
|
+
interactionWidth ? jsx$1("path", {
|
|
9972
9969
|
d: path,
|
|
9973
9970
|
fill: "none",
|
|
9974
9971
|
strokeOpacity: 0,
|
|
9975
9972
|
strokeWidth: interactionWidth,
|
|
9976
9973
|
className: "react-flow__edge-interaction"
|
|
9977
9974
|
}) : null,
|
|
9978
|
-
label && isNumeric(labelX) && isNumeric(labelY) ? jsx(EdgeText, {
|
|
9975
|
+
label && isNumeric(labelX) && isNumeric(labelY) ? jsx$1(EdgeText, {
|
|
9979
9976
|
x: labelX,
|
|
9980
9977
|
y: labelY,
|
|
9981
9978
|
label: label,
|
|
@@ -10057,7 +10054,7 @@ function createSimpleBezierEdge(params) {
|
|
|
10057
10054
|
targetPosition
|
|
10058
10055
|
});
|
|
10059
10056
|
const _id = params.isInternal ? undefined : id;
|
|
10060
|
-
return jsx(BaseEdge, {
|
|
10057
|
+
return jsx$1(BaseEdge, {
|
|
10061
10058
|
id: _id,
|
|
10062
10059
|
path: path,
|
|
10063
10060
|
labelX: labelX,
|
|
@@ -10098,7 +10095,7 @@ function createSmoothStepEdge(params) {
|
|
|
10098
10095
|
stepPosition: pathOptions?.stepPosition
|
|
10099
10096
|
});
|
|
10100
10097
|
const _id = params.isInternal ? undefined : id;
|
|
10101
|
-
return jsx(BaseEdge, {
|
|
10098
|
+
return jsx$1(BaseEdge, {
|
|
10102
10099
|
id: _id,
|
|
10103
10100
|
path: path,
|
|
10104
10101
|
labelX: labelX,
|
|
@@ -10152,7 +10149,7 @@ function createStepEdge(params) {
|
|
|
10152
10149
|
// eslint-disable-next-line react/display-name
|
|
10153
10150
|
return memo(({ id, ...props })=>{
|
|
10154
10151
|
const _id = params.isInternal ? undefined : id;
|
|
10155
|
-
return jsx(SmoothStepEdge, {
|
|
10152
|
+
return jsx$1(SmoothStepEdge, {
|
|
10156
10153
|
...props,
|
|
10157
10154
|
id: _id,
|
|
10158
10155
|
pathOptions: useMemo(()=>({
|
|
@@ -10206,7 +10203,7 @@ function createStraightEdge(params) {
|
|
|
10206
10203
|
targetY
|
|
10207
10204
|
});
|
|
10208
10205
|
const _id = params.isInternal ? undefined : id;
|
|
10209
|
-
return jsx(BaseEdge, {
|
|
10206
|
+
return jsx$1(BaseEdge, {
|
|
10210
10207
|
id: _id,
|
|
10211
10208
|
path: path,
|
|
10212
10209
|
labelX: labelX,
|
|
@@ -10267,7 +10264,7 @@ function createBezierEdge(params) {
|
|
|
10267
10264
|
curvature: pathOptions?.curvature
|
|
10268
10265
|
});
|
|
10269
10266
|
const _id = params.isInternal ? undefined : id;
|
|
10270
|
-
return jsx(BaseEdge, {
|
|
10267
|
+
return jsx$1(BaseEdge, {
|
|
10271
10268
|
id: _id,
|
|
10272
10269
|
path: path,
|
|
10273
10270
|
labelX: labelX,
|
|
@@ -10346,7 +10343,7 @@ const EdgeUpdaterClassName = 'react-flow__edgeupdater';
|
|
|
10346
10343
|
/**
|
|
10347
10344
|
* @internal
|
|
10348
10345
|
*/ function EdgeAnchor({ position, centerX, centerY, radius = 10, onMouseDown, onMouseEnter, onMouseOut, type }) {
|
|
10349
|
-
return jsx("circle", {
|
|
10346
|
+
return jsx$1("circle", {
|
|
10350
10347
|
onMouseDown: onMouseDown,
|
|
10351
10348
|
onMouseEnter: onMouseEnter,
|
|
10352
10349
|
onMouseOut: onMouseOut,
|
|
@@ -10420,7 +10417,7 @@ function EdgeUpdateAnchors({ isReconnectable, reconnectRadius, edge, sourceX, so
|
|
|
10420
10417
|
const onReconnectMouseOut = ()=>setUpdateHover(false);
|
|
10421
10418
|
return jsxs(Fragment, {
|
|
10422
10419
|
children: [
|
|
10423
|
-
(isReconnectable === true || isReconnectable === 'source') && jsx(EdgeAnchor, {
|
|
10420
|
+
(isReconnectable === true || isReconnectable === 'source') && jsx$1(EdgeAnchor, {
|
|
10424
10421
|
position: sourcePosition,
|
|
10425
10422
|
centerX: sourceX,
|
|
10426
10423
|
centerY: sourceY,
|
|
@@ -10430,7 +10427,7 @@ function EdgeUpdateAnchors({ isReconnectable, reconnectRadius, edge, sourceX, so
|
|
|
10430
10427
|
onMouseOut: onReconnectMouseOut,
|
|
10431
10428
|
type: "source"
|
|
10432
10429
|
}),
|
|
10433
|
-
(isReconnectable === true || isReconnectable === 'target') && jsx(EdgeAnchor, {
|
|
10430
|
+
(isReconnectable === true || isReconnectable === 'target') && jsx$1(EdgeAnchor, {
|
|
10434
10431
|
position: targetPosition,
|
|
10435
10432
|
centerX: targetX,
|
|
10436
10433
|
centerY: targetY,
|
|
@@ -10579,7 +10576,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
|
|
|
10579
10576
|
}
|
|
10580
10577
|
}
|
|
10581
10578
|
};
|
|
10582
|
-
return jsx("svg", {
|
|
10579
|
+
return jsx$1("svg", {
|
|
10583
10580
|
style: {
|
|
10584
10581
|
zIndex
|
|
10585
10582
|
},
|
|
@@ -10614,7 +10611,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
|
|
|
10614
10611
|
ref: edgeRef,
|
|
10615
10612
|
...edge.domAttributes,
|
|
10616
10613
|
children: [
|
|
10617
|
-
!reconnecting && jsx(EdgeComponent, {
|
|
10614
|
+
!reconnecting && jsx$1(EdgeComponent, {
|
|
10618
10615
|
id: id,
|
|
10619
10616
|
source: edge.source,
|
|
10620
10617
|
target: edge.target,
|
|
@@ -10644,7 +10641,7 @@ function EdgeWrapper({ id, edgesFocusable, edgesReconnectable, elementsSelectabl
|
|
|
10644
10641
|
pathOptions: 'pathOptions' in edge ? edge.pathOptions : undefined,
|
|
10645
10642
|
interactionWidth: edge.interactionWidth
|
|
10646
10643
|
}),
|
|
10647
|
-
isReconnectable && jsx(EdgeUpdateAnchors, {
|
|
10644
|
+
isReconnectable && jsx$1(EdgeUpdateAnchors, {
|
|
10648
10645
|
edge: edge,
|
|
10649
10646
|
isReconnectable: isReconnectable,
|
|
10650
10647
|
reconnectRadius: reconnectRadius,
|
|
@@ -10678,12 +10675,12 @@ function EdgeRendererComponent({ defaultMarkerColor, onlyRenderVisibleElements,
|
|
|
10678
10675
|
return jsxs("div", {
|
|
10679
10676
|
className: "react-flow__edges",
|
|
10680
10677
|
children: [
|
|
10681
|
-
jsx(MarkerDefinitions$1, {
|
|
10678
|
+
jsx$1(MarkerDefinitions$1, {
|
|
10682
10679
|
defaultColor: defaultMarkerColor,
|
|
10683
10680
|
rfId: rfId
|
|
10684
10681
|
}),
|
|
10685
10682
|
edgeIds.map((id)=>{
|
|
10686
|
-
return jsx(EdgeWrapper$1, {
|
|
10683
|
+
return jsx$1(EdgeWrapper$1, {
|
|
10687
10684
|
id: id,
|
|
10688
10685
|
edgesFocusable: edgesFocusable,
|
|
10689
10686
|
edgesReconnectable: edgesReconnectable,
|
|
@@ -10713,7 +10710,7 @@ const EdgeRenderer = memo(EdgeRendererComponent);
|
|
|
10713
10710
|
const selector$9 = (s)=>`translate(${s.transform[0]}px,${s.transform[1]}px) scale(${s.transform[2]})`;
|
|
10714
10711
|
function Viewport$1({ children }) {
|
|
10715
10712
|
const transform = useStore(selector$9);
|
|
10716
|
-
return jsx("div", {
|
|
10713
|
+
return jsx$1("div", {
|
|
10717
10714
|
className: "react-flow__viewport xyflow__viewport react-flow__container",
|
|
10718
10715
|
style: {
|
|
10719
10716
|
transform
|
|
@@ -10820,17 +10817,17 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
|
|
|
10820
10817
|
if (!renderConnection) {
|
|
10821
10818
|
return null;
|
|
10822
10819
|
}
|
|
10823
|
-
return jsx("svg", {
|
|
10820
|
+
return jsx$1("svg", {
|
|
10824
10821
|
style: containerStyle,
|
|
10825
10822
|
width: width,
|
|
10826
10823
|
height: height,
|
|
10827
10824
|
className: "react-flow__connectionline react-flow__container",
|
|
10828
|
-
children: jsx("g", {
|
|
10825
|
+
children: jsx$1("g", {
|
|
10829
10826
|
className: cc([
|
|
10830
10827
|
'react-flow__connection',
|
|
10831
10828
|
getConnectionStatus(isValid)
|
|
10832
10829
|
]),
|
|
10833
|
-
children: jsx(ConnectionLine, {
|
|
10830
|
+
children: jsx$1(ConnectionLine, {
|
|
10834
10831
|
style: style,
|
|
10835
10832
|
type: type,
|
|
10836
10833
|
CustomComponent: component,
|
|
@@ -10840,12 +10837,12 @@ function ConnectionLineWrapper({ containerStyle, style, type, component }) {
|
|
|
10840
10837
|
});
|
|
10841
10838
|
}
|
|
10842
10839
|
const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomComponent, isValid })=>{
|
|
10843
|
-
const { inProgress, from, fromNode, fromHandle, fromPosition, to, toNode, toHandle, toPosition } = useConnection();
|
|
10840
|
+
const { inProgress, from, fromNode, fromHandle, fromPosition, to, toNode, toHandle, toPosition, pointer } = useConnection();
|
|
10844
10841
|
if (!inProgress) {
|
|
10845
10842
|
return;
|
|
10846
10843
|
}
|
|
10847
10844
|
if (CustomComponent) {
|
|
10848
|
-
return jsx(CustomComponent, {
|
|
10845
|
+
return jsx$1(CustomComponent, {
|
|
10849
10846
|
connectionLineType: type,
|
|
10850
10847
|
connectionLineStyle: style,
|
|
10851
10848
|
fromNode: fromNode,
|
|
@@ -10858,7 +10855,8 @@ const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomCompone
|
|
|
10858
10855
|
toPosition: toPosition,
|
|
10859
10856
|
connectionStatus: getConnectionStatus(isValid),
|
|
10860
10857
|
toNode: toNode,
|
|
10861
|
-
toHandle: toHandle
|
|
10858
|
+
toHandle: toHandle,
|
|
10859
|
+
pointer: pointer
|
|
10862
10860
|
});
|
|
10863
10861
|
}
|
|
10864
10862
|
let path = '';
|
|
@@ -10889,7 +10887,7 @@ const ConnectionLine = ({ style, type = ConnectionLineType.Bezier, CustomCompone
|
|
|
10889
10887
|
default:
|
|
10890
10888
|
[path] = getStraightPath(pathParams);
|
|
10891
10889
|
}
|
|
10892
|
-
return jsx("path", {
|
|
10890
|
+
return jsx$1("path", {
|
|
10893
10891
|
d: path,
|
|
10894
10892
|
fill: "none",
|
|
10895
10893
|
className: "react-flow__connection-path",
|
|
@@ -10941,7 +10939,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
|
|
|
10941
10939
|
useStylesLoadedWarning();
|
|
10942
10940
|
useOnInitHandler(onInit);
|
|
10943
10941
|
useViewportSync(viewport);
|
|
10944
|
-
return jsx(FlowRenderer, {
|
|
10942
|
+
return jsx$1(FlowRenderer, {
|
|
10945
10943
|
onPaneClick: onPaneClick,
|
|
10946
10944
|
onPaneMouseEnter: onPaneMouseEnter,
|
|
10947
10945
|
onPaneMouseMove: onPaneMouseMove,
|
|
@@ -10980,7 +10978,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
|
|
|
10980
10978
|
isControlledViewport: !!viewport,
|
|
10981
10979
|
children: jsxs(Viewport$1, {
|
|
10982
10980
|
children: [
|
|
10983
|
-
jsx(EdgeRenderer, {
|
|
10981
|
+
jsx$1(EdgeRenderer, {
|
|
10984
10982
|
edgeTypes: edgeTypes,
|
|
10985
10983
|
onEdgeClick: onEdgeClick,
|
|
10986
10984
|
onEdgeDoubleClick: onEdgeDoubleClick,
|
|
@@ -10998,16 +10996,16 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
|
|
|
10998
10996
|
disableKeyboardA11y: disableKeyboardA11y,
|
|
10999
10997
|
rfId: rfId
|
|
11000
10998
|
}),
|
|
11001
|
-
jsx(ConnectionLineWrapper, {
|
|
10999
|
+
jsx$1(ConnectionLineWrapper, {
|
|
11002
11000
|
style: connectionLineStyle,
|
|
11003
11001
|
type: connectionLineType,
|
|
11004
11002
|
component: connectionLineComponent,
|
|
11005
11003
|
containerStyle: connectionLineContainerStyle
|
|
11006
11004
|
}),
|
|
11007
|
-
jsx("div", {
|
|
11005
|
+
jsx$1("div", {
|
|
11008
11006
|
className: "react-flow__edgelabel-renderer"
|
|
11009
11007
|
}),
|
|
11010
|
-
jsx(NodeRenderer, {
|
|
11008
|
+
jsx$1(NodeRenderer, {
|
|
11011
11009
|
nodeTypes: nodeTypes,
|
|
11012
11010
|
onNodeClick: onNodeClick,
|
|
11013
11011
|
onNodeDoubleClick: onNodeDoubleClick,
|
|
@@ -11023,7 +11021,7 @@ function GraphViewComponent({ nodeTypes, edgeTypes, onInit, onNodeClick, onEdgeC
|
|
|
11023
11021
|
nodeExtent: nodeExtent,
|
|
11024
11022
|
rfId: rfId
|
|
11025
11023
|
}),
|
|
11026
|
-
jsx("div", {
|
|
11024
|
+
jsx$1("div", {
|
|
11027
11025
|
className: "react-flow__viewport-portal"
|
|
11028
11026
|
})
|
|
11029
11027
|
]
|
|
@@ -11510,9 +11508,9 @@ const createStore = ({ nodes, edges, defaultNodes, defaultEdges, width, height,
|
|
|
11510
11508
|
nodeOrigin,
|
|
11511
11509
|
nodeExtent
|
|
11512
11510
|
}));
|
|
11513
|
-
return jsx(Provider$1, {
|
|
11511
|
+
return jsx$1(Provider$1, {
|
|
11514
11512
|
value: store,
|
|
11515
|
-
children: jsx(BatchProvider, {
|
|
11513
|
+
children: jsx$1(BatchProvider, {
|
|
11516
11514
|
children: children
|
|
11517
11515
|
})
|
|
11518
11516
|
});
|
|
@@ -11523,11 +11521,11 @@ function Wrapper({ children, nodes, edges, defaultNodes, defaultEdges, width, he
|
|
|
11523
11521
|
/*
|
|
11524
11522
|
* we need to wrap it with a fragment because it's not allowed for children to be a ReactNode
|
|
11525
11523
|
* https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
|
|
11526
|
-
*/ return jsx(Fragment, {
|
|
11524
|
+
*/ return jsx$1(Fragment, {
|
|
11527
11525
|
children: children
|
|
11528
11526
|
});
|
|
11529
11527
|
}
|
|
11530
|
-
return jsx(ReactFlowProvider, {
|
|
11528
|
+
return jsx$1(ReactFlowProvider, {
|
|
11531
11529
|
initialNodes: nodes,
|
|
11532
11530
|
initialEdges: edges,
|
|
11533
11531
|
defaultNodes: defaultNodes,
|
|
@@ -11550,7 +11548,7 @@ const wrapperStyle = {
|
|
|
11550
11548
|
position: 'relative',
|
|
11551
11549
|
zIndex: 0
|
|
11552
11550
|
};
|
|
11553
|
-
function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTypes, edgeTypes, onNodeClick, onEdgeClick, onInit, onMove, onMoveStart, onMoveEnd, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, onNodeDragStart, onNodeDrag, onNodeDragStop, onNodesDelete, onEdgesDelete, onDelete, onSelectionChange, onSelectionDragStart, onSelectionDrag, onSelectionDragStop, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onBeforeDelete, connectionMode, connectionLineType = ConnectionLineType.Bezier, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, deleteKeyCode = 'Backspace', selectionKeyCode = 'Shift', selectionOnDrag = false, selectionMode = SelectionMode.Full, panActivationKeyCode = 'Space', multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control', zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control', snapToGrid, snapGrid, onlyRenderVisibleElements = false, selectNodesOnDrag, nodesDraggable, autoPanOnNodeFocus, nodesConnectable, nodesFocusable, nodeOrigin = defaultNodeOrigin, edgesFocusable, edgesReconnectable, elementsSelectable = true, defaultViewport: defaultViewport$1 = defaultViewport, minZoom = 0.5, maxZoom = 2, translateExtent = infiniteExtent, preventScrolling = true, nodeExtent, defaultMarkerColor = '#b1b1b7', zoomOnScroll = true, zoomOnPinch = true, panOnScroll = false, panOnScrollSpeed = 0.5, panOnScrollMode = PanOnScrollMode.Free, zoomOnDoubleClick = true, panOnDrag = true, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance =
|
|
11551
|
+
function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTypes, edgeTypes, onNodeClick, onEdgeClick, onInit, onMove, onMoveStart, onMoveEnd, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, onNodeDragStart, onNodeDrag, onNodeDragStop, onNodesDelete, onEdgesDelete, onDelete, onSelectionChange, onSelectionDragStart, onSelectionDrag, onSelectionDragStop, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onBeforeDelete, connectionMode, connectionLineType = ConnectionLineType.Bezier, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, deleteKeyCode = 'Backspace', selectionKeyCode = 'Shift', selectionOnDrag = false, selectionMode = SelectionMode.Full, panActivationKeyCode = 'Space', multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control', zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control', snapToGrid, snapGrid, onlyRenderVisibleElements = false, selectNodesOnDrag, nodesDraggable, autoPanOnNodeFocus, nodesConnectable, nodesFocusable, nodeOrigin = defaultNodeOrigin, edgesFocusable, edgesReconnectable, elementsSelectable = true, defaultViewport: defaultViewport$1 = defaultViewport, minZoom = 0.5, maxZoom = 2, translateExtent = infiniteExtent, preventScrolling = true, nodeExtent, defaultMarkerColor = '#b1b1b7', zoomOnScroll = true, zoomOnPinch = true, panOnScroll = false, panOnScrollSpeed = 0.5, panOnScrollMode = PanOnScrollMode.Free, zoomOnDoubleClick = true, panOnDrag = true, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance = 1, nodeClickDistance = 0, children, onReconnect, onReconnectStart, onReconnectEnd, onEdgeContextMenu, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, reconnectRadius = 10, onNodesChange, onEdgesChange, noDragClassName = 'nodrag', noWheelClassName = 'nowheel', noPanClassName = 'nopan', fitView, fitViewOptions, connectOnClick, attributionPosition, proOptions, defaultEdgeOptions, elevateNodesOnSelect, elevateEdgesOnSelect, disableKeyboardA11y = false, autoPanOnConnect, autoPanOnNodeDrag, autoPanSpeed, connectionRadius, isValidConnection, onError, style, id, nodeDragThreshold, connectionDragThreshold, viewport, onViewportChange, width, height, colorMode = 'light', debug, onScroll, ariaLabelConfig, ...rest }, ref) {
|
|
11554
11552
|
const rfId = id || '1';
|
|
11555
11553
|
const colorModeClassName = useColorModeClass(colorMode);
|
|
11556
11554
|
// Undo scroll events, preventing viewport from shifting when nodes outside of it are focused
|
|
@@ -11564,7 +11562,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
11564
11562
|
}, [
|
|
11565
11563
|
onScroll
|
|
11566
11564
|
]);
|
|
11567
|
-
return jsx("div", {
|
|
11565
|
+
return jsx$1("div", {
|
|
11568
11566
|
"data-testid": "rf__wrapper",
|
|
11569
11567
|
...rest,
|
|
11570
11568
|
onScroll: wrapperOnScroll,
|
|
@@ -11592,7 +11590,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
11592
11590
|
nodeOrigin: nodeOrigin,
|
|
11593
11591
|
nodeExtent: nodeExtent,
|
|
11594
11592
|
children: [
|
|
11595
|
-
jsx(GraphView, {
|
|
11593
|
+
jsx$1(GraphView, {
|
|
11596
11594
|
onInit: onInit,
|
|
11597
11595
|
onNodeClick: onNodeClick,
|
|
11598
11596
|
onEdgeClick: onEdgeClick,
|
|
@@ -11657,7 +11655,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
11657
11655
|
viewport: viewport,
|
|
11658
11656
|
onViewportChange: onViewportChange
|
|
11659
11657
|
}),
|
|
11660
|
-
jsx(StoreUpdater, {
|
|
11658
|
+
jsx$1(StoreUpdater, {
|
|
11661
11659
|
nodes: nodes,
|
|
11662
11660
|
edges: edges,
|
|
11663
11661
|
defaultNodes: defaultNodes,
|
|
@@ -11717,15 +11715,15 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
11717
11715
|
debug: debug,
|
|
11718
11716
|
ariaLabelConfig: ariaLabelConfig
|
|
11719
11717
|
}),
|
|
11720
|
-
jsx(SelectionListener, {
|
|
11718
|
+
jsx$1(SelectionListener, {
|
|
11721
11719
|
onSelectionChange: onSelectionChange
|
|
11722
11720
|
}),
|
|
11723
11721
|
children,
|
|
11724
|
-
jsx(Attribution, {
|
|
11722
|
+
jsx$1(Attribution, {
|
|
11725
11723
|
proOptions: proOptions,
|
|
11726
11724
|
position: attributionPosition
|
|
11727
11725
|
}),
|
|
11728
|
-
jsx(A11yDescriptions, {
|
|
11726
|
+
jsx$1(A11yDescriptions, {
|
|
11729
11727
|
rfId: rfId,
|
|
11730
11728
|
disableKeyboardA11y: disableKeyboardA11y
|
|
11731
11729
|
})
|
|
@@ -11862,7 +11860,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
11862
11860
|
];
|
|
11863
11861
|
}
|
|
11864
11862
|
function LinePattern({ dimensions, lineWidth, variant, className }) {
|
|
11865
|
-
return jsx("path", {
|
|
11863
|
+
return jsx$1("path", {
|
|
11866
11864
|
strokeWidth: lineWidth,
|
|
11867
11865
|
d: `M${dimensions[0] / 2} 0 V${dimensions[1]} M0 ${dimensions[1] / 2} H${dimensions[0]}`,
|
|
11868
11866
|
className: cc([
|
|
@@ -11873,7 +11871,7 @@ function LinePattern({ dimensions, lineWidth, variant, className }) {
|
|
|
11873
11871
|
});
|
|
11874
11872
|
}
|
|
11875
11873
|
function DotPattern({ radius, className }) {
|
|
11876
|
-
return jsx("circle", {
|
|
11874
|
+
return jsx$1("circle", {
|
|
11877
11875
|
cx: radius,
|
|
11878
11876
|
cy: radius,
|
|
11879
11877
|
r: radius,
|
|
@@ -11948,7 +11946,7 @@ size, lineWidth = 1, offset = 0, color, bgColor, style, className, patternClassN
|
|
|
11948
11946
|
ref: ref,
|
|
11949
11947
|
"data-testid": "rf__background",
|
|
11950
11948
|
children: [
|
|
11951
|
-
jsx("pattern", {
|
|
11949
|
+
jsx$1("pattern", {
|
|
11952
11950
|
id: _patternId,
|
|
11953
11951
|
x: transform[0] % scaledGap[0],
|
|
11954
11952
|
y: transform[1] % scaledGap[1],
|
|
@@ -11956,17 +11954,17 @@ size, lineWidth = 1, offset = 0, color, bgColor, style, className, patternClassN
|
|
|
11956
11954
|
height: scaledGap[1],
|
|
11957
11955
|
patternUnits: "userSpaceOnUse",
|
|
11958
11956
|
patternTransform: `translate(-${scaledOffset[0]},-${scaledOffset[1]})`,
|
|
11959
|
-
children: isDots ? jsx(DotPattern, {
|
|
11957
|
+
children: isDots ? jsx$1(DotPattern, {
|
|
11960
11958
|
radius: scaledSize / 2,
|
|
11961
11959
|
className: patternClassName
|
|
11962
|
-
}) : jsx(LinePattern, {
|
|
11960
|
+
}) : jsx$1(LinePattern, {
|
|
11963
11961
|
dimensions: patternDimensions,
|
|
11964
11962
|
lineWidth: lineWidth,
|
|
11965
11963
|
variant: variant,
|
|
11966
11964
|
className: patternClassName
|
|
11967
11965
|
})
|
|
11968
11966
|
}),
|
|
11969
|
-
jsx("rect", {
|
|
11967
|
+
jsx$1("rect", {
|
|
11970
11968
|
x: "0",
|
|
11971
11969
|
y: "0",
|
|
11972
11970
|
width: "100%",
|
|
@@ -12031,46 +12029,46 @@ BackgroundComponent.displayName = 'Background';
|
|
|
12031
12029
|
*
|
|
12032
12030
|
*/ const Background = memo(BackgroundComponent);
|
|
12033
12031
|
function PlusIcon() {
|
|
12034
|
-
return jsx("svg", {
|
|
12032
|
+
return jsx$1("svg", {
|
|
12035
12033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12036
12034
|
viewBox: "0 0 32 32",
|
|
12037
|
-
children: jsx("path", {
|
|
12035
|
+
children: jsx$1("path", {
|
|
12038
12036
|
d: "M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"
|
|
12039
12037
|
})
|
|
12040
12038
|
});
|
|
12041
12039
|
}
|
|
12042
12040
|
function MinusIcon() {
|
|
12043
|
-
return jsx("svg", {
|
|
12041
|
+
return jsx$1("svg", {
|
|
12044
12042
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12045
12043
|
viewBox: "0 0 32 5",
|
|
12046
|
-
children: jsx("path", {
|
|
12044
|
+
children: jsx$1("path", {
|
|
12047
12045
|
d: "M0 0h32v4.2H0z"
|
|
12048
12046
|
})
|
|
12049
12047
|
});
|
|
12050
12048
|
}
|
|
12051
12049
|
function FitViewIcon() {
|
|
12052
|
-
return jsx("svg", {
|
|
12050
|
+
return jsx$1("svg", {
|
|
12053
12051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12054
12052
|
viewBox: "0 0 32 30",
|
|
12055
|
-
children: jsx("path", {
|
|
12053
|
+
children: jsx$1("path", {
|
|
12056
12054
|
d: "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"
|
|
12057
12055
|
})
|
|
12058
12056
|
});
|
|
12059
12057
|
}
|
|
12060
12058
|
function LockIcon() {
|
|
12061
|
-
return jsx("svg", {
|
|
12059
|
+
return jsx$1("svg", {
|
|
12062
12060
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12063
12061
|
viewBox: "0 0 25 32",
|
|
12064
|
-
children: jsx("path", {
|
|
12062
|
+
children: jsx$1("path", {
|
|
12065
12063
|
d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"
|
|
12066
12064
|
})
|
|
12067
12065
|
});
|
|
12068
12066
|
}
|
|
12069
12067
|
function UnlockIcon() {
|
|
12070
|
-
return jsx("svg", {
|
|
12068
|
+
return jsx$1("svg", {
|
|
12071
12069
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12072
12070
|
viewBox: "0 0 25 32",
|
|
12073
|
-
children: jsx("path", {
|
|
12071
|
+
children: jsx$1("path", {
|
|
12074
12072
|
d: "M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"
|
|
12075
12073
|
})
|
|
12076
12074
|
});
|
|
@@ -12098,7 +12096,7 @@ function UnlockIcon() {
|
|
|
12098
12096
|
*}
|
|
12099
12097
|
*```
|
|
12100
12098
|
*/ function ControlButton({ children, className, ...rest }) {
|
|
12101
|
-
return jsx("button", {
|
|
12099
|
+
return jsx$1("button", {
|
|
12102
12100
|
type: "button",
|
|
12103
12101
|
className: cc([
|
|
12104
12102
|
'react-flow__controls-button',
|
|
@@ -12152,37 +12150,37 @@ function ControlsComponent({ style, showZoom = true, showFitView = true, showInt
|
|
|
12152
12150
|
children: [
|
|
12153
12151
|
showZoom && jsxs(Fragment, {
|
|
12154
12152
|
children: [
|
|
12155
|
-
jsx(ControlButton, {
|
|
12153
|
+
jsx$1(ControlButton, {
|
|
12156
12154
|
onClick: onZoomInHandler,
|
|
12157
12155
|
className: "react-flow__controls-zoomin",
|
|
12158
12156
|
title: ariaLabelConfig['controls.zoomIn.ariaLabel'],
|
|
12159
12157
|
"aria-label": ariaLabelConfig['controls.zoomIn.ariaLabel'],
|
|
12160
12158
|
disabled: maxZoomReached,
|
|
12161
|
-
children: jsx(PlusIcon, {})
|
|
12159
|
+
children: jsx$1(PlusIcon, {})
|
|
12162
12160
|
}),
|
|
12163
|
-
jsx(ControlButton, {
|
|
12161
|
+
jsx$1(ControlButton, {
|
|
12164
12162
|
onClick: onZoomOutHandler,
|
|
12165
12163
|
className: "react-flow__controls-zoomout",
|
|
12166
12164
|
title: ariaLabelConfig['controls.zoomOut.ariaLabel'],
|
|
12167
12165
|
"aria-label": ariaLabelConfig['controls.zoomOut.ariaLabel'],
|
|
12168
12166
|
disabled: minZoomReached,
|
|
12169
|
-
children: jsx(MinusIcon, {})
|
|
12167
|
+
children: jsx$1(MinusIcon, {})
|
|
12170
12168
|
})
|
|
12171
12169
|
]
|
|
12172
12170
|
}),
|
|
12173
|
-
showFitView && jsx(ControlButton, {
|
|
12171
|
+
showFitView && jsx$1(ControlButton, {
|
|
12174
12172
|
className: "react-flow__controls-fitview",
|
|
12175
12173
|
onClick: onFitViewHandler,
|
|
12176
12174
|
title: ariaLabelConfig['controls.fitView.ariaLabel'],
|
|
12177
12175
|
"aria-label": ariaLabelConfig['controls.fitView.ariaLabel'],
|
|
12178
|
-
children: jsx(FitViewIcon, {})
|
|
12176
|
+
children: jsx$1(FitViewIcon, {})
|
|
12179
12177
|
}),
|
|
12180
|
-
showInteractive && jsx(ControlButton, {
|
|
12178
|
+
showInteractive && jsx$1(ControlButton, {
|
|
12181
12179
|
className: "react-flow__controls-interactive",
|
|
12182
12180
|
onClick: onToggleInteractivity,
|
|
12183
12181
|
title: ariaLabelConfig['controls.interactive.ariaLabel'],
|
|
12184
12182
|
"aria-label": ariaLabelConfig['controls.interactive.ariaLabel'],
|
|
12185
|
-
children: isInteractive ? jsx(UnlockIcon, {}) : jsx(LockIcon, {})
|
|
12183
|
+
children: isInteractive ? jsx$1(UnlockIcon, {}) : jsx$1(LockIcon, {})
|
|
12186
12184
|
}),
|
|
12187
12185
|
children
|
|
12188
12186
|
]
|
|
@@ -12213,7 +12211,7 @@ ControlsComponent.displayName = 'Controls';
|
|
|
12213
12211
|
function MiniMapNodeComponent({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected, onClick }) {
|
|
12214
12212
|
const { background, backgroundColor } = style || {};
|
|
12215
12213
|
const fill = color || background || backgroundColor;
|
|
12216
|
-
return jsx("rect", {
|
|
12214
|
+
return jsx$1("rect", {
|
|
12217
12215
|
className: cc([
|
|
12218
12216
|
'react-flow__minimap-node',
|
|
12219
12217
|
{
|
|
@@ -12248,14 +12246,14 @@ function MiniMapNodes({ nodeStrokeColor, nodeColor, nodeClassName = '', nodeBord
|
|
|
12248
12246
|
const nodeStrokeColorFunc = getAttrFunction(nodeStrokeColor);
|
|
12249
12247
|
const nodeClassNameFunc = getAttrFunction(nodeClassName);
|
|
12250
12248
|
const shapeRendering = typeof window === 'undefined' || !!window.chrome ? 'crispEdges' : 'geometricPrecision';
|
|
12251
|
-
return jsx(Fragment, {
|
|
12249
|
+
return jsx$1(Fragment, {
|
|
12252
12250
|
children: nodeIds.map((nodeId)=>/*
|
|
12253
12251
|
* The split of responsibilities between MiniMapNodes and
|
|
12254
12252
|
* NodeComponentWrapper may appear weird. However, it’s designed to
|
|
12255
12253
|
* minimize the cost of updates when individual nodes change.
|
|
12256
12254
|
*
|
|
12257
12255
|
* For more details, see a similar commit in `NodeRenderer/index.tsx`.
|
|
12258
|
-
*/ jsx(NodeComponentWrapper, {
|
|
12256
|
+
*/ jsx$1(NodeComponentWrapper, {
|
|
12259
12257
|
id: nodeId,
|
|
12260
12258
|
nodeColorFunc: nodeColorFunc,
|
|
12261
12259
|
nodeStrokeColorFunc: nodeStrokeColorFunc,
|
|
@@ -12285,7 +12283,7 @@ function NodeComponentWrapperInner({ id, nodeColorFunc, nodeStrokeColorFunc, nod
|
|
|
12285
12283
|
if (!node || node.hidden || !nodeHasDimensions(node)) {
|
|
12286
12284
|
return null;
|
|
12287
12285
|
}
|
|
12288
|
-
return jsx(NodeComponent, {
|
|
12286
|
+
return jsx$1(NodeComponent, {
|
|
12289
12287
|
x: x,
|
|
12290
12288
|
y: y,
|
|
12291
12289
|
width: width,
|
|
@@ -12400,7 +12398,7 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
|
|
|
12400
12398
|
onNodeClick(event, node);
|
|
12401
12399
|
}, []) : undefined;
|
|
12402
12400
|
const _ariaLabel = ariaLabel ?? ariaLabelConfig['minimap.ariaLabel'];
|
|
12403
|
-
return jsx(Panel, {
|
|
12401
|
+
return jsx$1(Panel, {
|
|
12404
12402
|
position: position,
|
|
12405
12403
|
style: {
|
|
12406
12404
|
...style,
|
|
@@ -12427,11 +12425,11 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
|
|
|
12427
12425
|
ref: svg,
|
|
12428
12426
|
onClick: onSvgClick,
|
|
12429
12427
|
children: [
|
|
12430
|
-
_ariaLabel && jsx("title", {
|
|
12428
|
+
_ariaLabel && jsx$1("title", {
|
|
12431
12429
|
id: labelledBy,
|
|
12432
12430
|
children: _ariaLabel
|
|
12433
12431
|
}),
|
|
12434
|
-
jsx(MiniMapNodes$1, {
|
|
12432
|
+
jsx$1(MiniMapNodes$1, {
|
|
12435
12433
|
onClick: onSvgNodeClick,
|
|
12436
12434
|
nodeColor: nodeColor,
|
|
12437
12435
|
nodeStrokeColor: nodeStrokeColor,
|
|
@@ -12440,7 +12438,7 @@ function MiniMapComponent({ style, className, nodeStrokeColor, nodeColor, nodeCl
|
|
|
12440
12438
|
nodeStrokeWidth: nodeStrokeWidth,
|
|
12441
12439
|
nodeComponent: nodeComponent
|
|
12442
12440
|
}),
|
|
12443
|
-
jsx("path", {
|
|
12441
|
+
jsx$1("path", {
|
|
12444
12442
|
className: "react-flow__minimap-mask",
|
|
12445
12443
|
d: `M${x - offset},${y - offset}h${width + offset * 2}v${height + offset * 2}h${-width - offset * 2}z
|
|
12446
12444
|
M${viewBB.x},${viewBB.y}h${viewBB.width}v${viewBB.height}h${-viewBB.width}z`,
|
|
@@ -12625,7 +12623,7 @@ function ResizeControl({ nodeId, position, variant = ResizeControlVariant.Handle
|
|
|
12625
12623
|
shouldResize
|
|
12626
12624
|
]);
|
|
12627
12625
|
const positionClassNames = controlPosition.split('-');
|
|
12628
|
-
return jsx("div", {
|
|
12626
|
+
return jsx$1("div", {
|
|
12629
12627
|
className: cc([
|
|
12630
12628
|
'react-flow__resize-control',
|
|
12631
12629
|
'nodrag',
|
|
@@ -12679,7 +12677,7 @@ var css_248z = "/* this gets exported as style.css and can be used for the defau
|
|
|
12679
12677
|
styleInject(css_248z);
|
|
12680
12678
|
|
|
12681
12679
|
/**
|
|
12682
|
-
* @license lucide-react v0.
|
|
12680
|
+
* @license lucide-react v0.554.0 - ISC
|
|
12683
12681
|
*
|
|
12684
12682
|
* This source code is licensed under the ISC license.
|
|
12685
12683
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -12701,7 +12699,7 @@ const hasA11yProp = (props)=>{
|
|
|
12701
12699
|
};
|
|
12702
12700
|
|
|
12703
12701
|
/**
|
|
12704
|
-
* @license lucide-react v0.
|
|
12702
|
+
* @license lucide-react v0.554.0 - ISC
|
|
12705
12703
|
*
|
|
12706
12704
|
* This source code is licensed under the ISC license.
|
|
12707
12705
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -13942,6 +13940,372 @@ function _extends() {
|
|
|
13942
13940
|
}, _extends.apply(null, arguments);
|
|
13943
13941
|
}
|
|
13944
13942
|
|
|
13943
|
+
var reactIs = {exports: {}};
|
|
13944
|
+
|
|
13945
|
+
var reactIs_production_min = {};
|
|
13946
|
+
|
|
13947
|
+
var hasRequiredReactIs_production_min;
|
|
13948
|
+
function requireReactIs_production_min() {
|
|
13949
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
13950
|
+
hasRequiredReactIs_production_min = 1;
|
|
13951
|
+
var b = "function" === typeof Symbol && Symbol.for, c = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
13952
|
+
function z(a) {
|
|
13953
|
+
if ("object" === typeof a && null !== a) {
|
|
13954
|
+
var u = a.$$typeof;
|
|
13955
|
+
switch(u){
|
|
13956
|
+
case c:
|
|
13957
|
+
switch(a = a.type, a){
|
|
13958
|
+
case l:
|
|
13959
|
+
case m:
|
|
13960
|
+
case e:
|
|
13961
|
+
case g:
|
|
13962
|
+
case f:
|
|
13963
|
+
case p:
|
|
13964
|
+
return a;
|
|
13965
|
+
default:
|
|
13966
|
+
switch(a = a && a.$$typeof, a){
|
|
13967
|
+
case k:
|
|
13968
|
+
case n:
|
|
13969
|
+
case t:
|
|
13970
|
+
case r:
|
|
13971
|
+
case h:
|
|
13972
|
+
return a;
|
|
13973
|
+
default:
|
|
13974
|
+
return u;
|
|
13975
|
+
}
|
|
13976
|
+
}
|
|
13977
|
+
case d:
|
|
13978
|
+
return u;
|
|
13979
|
+
}
|
|
13980
|
+
}
|
|
13981
|
+
}
|
|
13982
|
+
function A(a) {
|
|
13983
|
+
return z(a) === m;
|
|
13984
|
+
}
|
|
13985
|
+
reactIs_production_min.AsyncMode = l;
|
|
13986
|
+
reactIs_production_min.ConcurrentMode = m;
|
|
13987
|
+
reactIs_production_min.ContextConsumer = k;
|
|
13988
|
+
reactIs_production_min.ContextProvider = h;
|
|
13989
|
+
reactIs_production_min.Element = c;
|
|
13990
|
+
reactIs_production_min.ForwardRef = n;
|
|
13991
|
+
reactIs_production_min.Fragment = e;
|
|
13992
|
+
reactIs_production_min.Lazy = t;
|
|
13993
|
+
reactIs_production_min.Memo = r;
|
|
13994
|
+
reactIs_production_min.Portal = d;
|
|
13995
|
+
reactIs_production_min.Profiler = g;
|
|
13996
|
+
reactIs_production_min.StrictMode = f;
|
|
13997
|
+
reactIs_production_min.Suspense = p;
|
|
13998
|
+
reactIs_production_min.isAsyncMode = function(a) {
|
|
13999
|
+
return A(a) || z(a) === l;
|
|
14000
|
+
};
|
|
14001
|
+
reactIs_production_min.isConcurrentMode = A;
|
|
14002
|
+
reactIs_production_min.isContextConsumer = function(a) {
|
|
14003
|
+
return z(a) === k;
|
|
14004
|
+
};
|
|
14005
|
+
reactIs_production_min.isContextProvider = function(a) {
|
|
14006
|
+
return z(a) === h;
|
|
14007
|
+
};
|
|
14008
|
+
reactIs_production_min.isElement = function(a) {
|
|
14009
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
14010
|
+
};
|
|
14011
|
+
reactIs_production_min.isForwardRef = function(a) {
|
|
14012
|
+
return z(a) === n;
|
|
14013
|
+
};
|
|
14014
|
+
reactIs_production_min.isFragment = function(a) {
|
|
14015
|
+
return z(a) === e;
|
|
14016
|
+
};
|
|
14017
|
+
reactIs_production_min.isLazy = function(a) {
|
|
14018
|
+
return z(a) === t;
|
|
14019
|
+
};
|
|
14020
|
+
reactIs_production_min.isMemo = function(a) {
|
|
14021
|
+
return z(a) === r;
|
|
14022
|
+
};
|
|
14023
|
+
reactIs_production_min.isPortal = function(a) {
|
|
14024
|
+
return z(a) === d;
|
|
14025
|
+
};
|
|
14026
|
+
reactIs_production_min.isProfiler = function(a) {
|
|
14027
|
+
return z(a) === g;
|
|
14028
|
+
};
|
|
14029
|
+
reactIs_production_min.isStrictMode = function(a) {
|
|
14030
|
+
return z(a) === f;
|
|
14031
|
+
};
|
|
14032
|
+
reactIs_production_min.isSuspense = function(a) {
|
|
14033
|
+
return z(a) === p;
|
|
14034
|
+
};
|
|
14035
|
+
reactIs_production_min.isValidElementType = function(a) {
|
|
14036
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
14037
|
+
};
|
|
14038
|
+
reactIs_production_min.typeOf = z;
|
|
14039
|
+
return reactIs_production_min;
|
|
14040
|
+
}
|
|
14041
|
+
|
|
14042
|
+
var reactIs_development = {};
|
|
14043
|
+
|
|
14044
|
+
var hasRequiredReactIs_development;
|
|
14045
|
+
function requireReactIs_development() {
|
|
14046
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
14047
|
+
hasRequiredReactIs_development = 1;
|
|
14048
|
+
if (process.env.NODE_ENV !== "production") {
|
|
14049
|
+
(function() {
|
|
14050
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
14051
|
+
// nor polyfill, then a plain number is used for performance.
|
|
14052
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
14053
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
14054
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
14055
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
14056
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
14057
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
14058
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
14059
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
14060
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
14061
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
14062
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
14063
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
14064
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
14065
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
14066
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
14067
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
14068
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
14069
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
14070
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
14071
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
14072
|
+
function isValidElementType(type) {
|
|
14073
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
14074
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
14075
|
+
}
|
|
14076
|
+
function typeOf(object) {
|
|
14077
|
+
if (typeof object === 'object' && object !== null) {
|
|
14078
|
+
var $$typeof = object.$$typeof;
|
|
14079
|
+
switch($$typeof){
|
|
14080
|
+
case REACT_ELEMENT_TYPE:
|
|
14081
|
+
var type = object.type;
|
|
14082
|
+
switch(type){
|
|
14083
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
14084
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
14085
|
+
case REACT_FRAGMENT_TYPE:
|
|
14086
|
+
case REACT_PROFILER_TYPE:
|
|
14087
|
+
case REACT_STRICT_MODE_TYPE:
|
|
14088
|
+
case REACT_SUSPENSE_TYPE:
|
|
14089
|
+
return type;
|
|
14090
|
+
default:
|
|
14091
|
+
var $$typeofType = type && type.$$typeof;
|
|
14092
|
+
switch($$typeofType){
|
|
14093
|
+
case REACT_CONTEXT_TYPE:
|
|
14094
|
+
case REACT_FORWARD_REF_TYPE:
|
|
14095
|
+
case REACT_LAZY_TYPE:
|
|
14096
|
+
case REACT_MEMO_TYPE:
|
|
14097
|
+
case REACT_PROVIDER_TYPE:
|
|
14098
|
+
return $$typeofType;
|
|
14099
|
+
default:
|
|
14100
|
+
return $$typeof;
|
|
14101
|
+
}
|
|
14102
|
+
}
|
|
14103
|
+
case REACT_PORTAL_TYPE:
|
|
14104
|
+
return $$typeof;
|
|
14105
|
+
}
|
|
14106
|
+
}
|
|
14107
|
+
return undefined;
|
|
14108
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
14109
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
14110
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
14111
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
14112
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
14113
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
14114
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
14115
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
14116
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
14117
|
+
var Memo = REACT_MEMO_TYPE;
|
|
14118
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
14119
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
14120
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
14121
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
14122
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
14123
|
+
function isAsyncMode(object) {
|
|
14124
|
+
{
|
|
14125
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
14126
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
14127
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
14128
|
+
}
|
|
14129
|
+
}
|
|
14130
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
14131
|
+
}
|
|
14132
|
+
function isConcurrentMode(object) {
|
|
14133
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
14134
|
+
}
|
|
14135
|
+
function isContextConsumer(object) {
|
|
14136
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
14137
|
+
}
|
|
14138
|
+
function isContextProvider(object) {
|
|
14139
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
14140
|
+
}
|
|
14141
|
+
function isElement(object) {
|
|
14142
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
14143
|
+
}
|
|
14144
|
+
function isForwardRef(object) {
|
|
14145
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
14146
|
+
}
|
|
14147
|
+
function isFragment(object) {
|
|
14148
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
14149
|
+
}
|
|
14150
|
+
function isLazy(object) {
|
|
14151
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
14152
|
+
}
|
|
14153
|
+
function isMemo(object) {
|
|
14154
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
14155
|
+
}
|
|
14156
|
+
function isPortal(object) {
|
|
14157
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
14158
|
+
}
|
|
14159
|
+
function isProfiler(object) {
|
|
14160
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
14161
|
+
}
|
|
14162
|
+
function isStrictMode(object) {
|
|
14163
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
14164
|
+
}
|
|
14165
|
+
function isSuspense(object) {
|
|
14166
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
14167
|
+
}
|
|
14168
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
14169
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
14170
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
14171
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
14172
|
+
reactIs_development.Element = Element;
|
|
14173
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
14174
|
+
reactIs_development.Fragment = Fragment;
|
|
14175
|
+
reactIs_development.Lazy = Lazy;
|
|
14176
|
+
reactIs_development.Memo = Memo;
|
|
14177
|
+
reactIs_development.Portal = Portal;
|
|
14178
|
+
reactIs_development.Profiler = Profiler;
|
|
14179
|
+
reactIs_development.StrictMode = StrictMode;
|
|
14180
|
+
reactIs_development.Suspense = Suspense;
|
|
14181
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
14182
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
14183
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
14184
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
14185
|
+
reactIs_development.isElement = isElement;
|
|
14186
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
14187
|
+
reactIs_development.isFragment = isFragment;
|
|
14188
|
+
reactIs_development.isLazy = isLazy;
|
|
14189
|
+
reactIs_development.isMemo = isMemo;
|
|
14190
|
+
reactIs_development.isPortal = isPortal;
|
|
14191
|
+
reactIs_development.isProfiler = isProfiler;
|
|
14192
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
14193
|
+
reactIs_development.isSuspense = isSuspense;
|
|
14194
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
14195
|
+
reactIs_development.typeOf = typeOf;
|
|
14196
|
+
})();
|
|
14197
|
+
}
|
|
14198
|
+
return reactIs_development;
|
|
14199
|
+
}
|
|
14200
|
+
|
|
14201
|
+
var hasRequiredReactIs;
|
|
14202
|
+
function requireReactIs() {
|
|
14203
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
14204
|
+
hasRequiredReactIs = 1;
|
|
14205
|
+
if (process.env.NODE_ENV === 'production') {
|
|
14206
|
+
reactIs.exports = requireReactIs_production_min();
|
|
14207
|
+
} else {
|
|
14208
|
+
reactIs.exports = requireReactIs_development();
|
|
14209
|
+
}
|
|
14210
|
+
return reactIs.exports;
|
|
14211
|
+
}
|
|
14212
|
+
|
|
14213
|
+
var hoistNonReactStatics_cjs;
|
|
14214
|
+
var hasRequiredHoistNonReactStatics_cjs;
|
|
14215
|
+
function requireHoistNonReactStatics_cjs() {
|
|
14216
|
+
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
|
14217
|
+
hasRequiredHoistNonReactStatics_cjs = 1;
|
|
14218
|
+
var reactIs = requireReactIs();
|
|
14219
|
+
/**
|
|
14220
|
+
* Copyright 2015, Yahoo! Inc.
|
|
14221
|
+
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
14222
|
+
*/ var REACT_STATICS = {
|
|
14223
|
+
childContextTypes: true,
|
|
14224
|
+
contextType: true,
|
|
14225
|
+
contextTypes: true,
|
|
14226
|
+
defaultProps: true,
|
|
14227
|
+
displayName: true,
|
|
14228
|
+
getDefaultProps: true,
|
|
14229
|
+
getDerivedStateFromError: true,
|
|
14230
|
+
getDerivedStateFromProps: true,
|
|
14231
|
+
mixins: true,
|
|
14232
|
+
propTypes: true,
|
|
14233
|
+
type: true
|
|
14234
|
+
};
|
|
14235
|
+
var KNOWN_STATICS = {
|
|
14236
|
+
name: true,
|
|
14237
|
+
length: true,
|
|
14238
|
+
prototype: true,
|
|
14239
|
+
caller: true,
|
|
14240
|
+
callee: true,
|
|
14241
|
+
arguments: true,
|
|
14242
|
+
arity: true
|
|
14243
|
+
};
|
|
14244
|
+
var FORWARD_REF_STATICS = {
|
|
14245
|
+
'$$typeof': true,
|
|
14246
|
+
render: true,
|
|
14247
|
+
defaultProps: true,
|
|
14248
|
+
displayName: true,
|
|
14249
|
+
propTypes: true
|
|
14250
|
+
};
|
|
14251
|
+
var MEMO_STATICS = {
|
|
14252
|
+
'$$typeof': true,
|
|
14253
|
+
compare: true,
|
|
14254
|
+
defaultProps: true,
|
|
14255
|
+
displayName: true,
|
|
14256
|
+
propTypes: true,
|
|
14257
|
+
type: true
|
|
14258
|
+
};
|
|
14259
|
+
var TYPE_STATICS = {};
|
|
14260
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
14261
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
14262
|
+
function getStatics(component) {
|
|
14263
|
+
// React v16.11 and below
|
|
14264
|
+
if (reactIs.isMemo(component)) {
|
|
14265
|
+
return MEMO_STATICS;
|
|
14266
|
+
} // React v16.12 and above
|
|
14267
|
+
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
14268
|
+
}
|
|
14269
|
+
var defineProperty = Object.defineProperty;
|
|
14270
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
14271
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
14272
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
14273
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
14274
|
+
var objectPrototype = Object.prototype;
|
|
14275
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
14276
|
+
if (typeof sourceComponent !== 'string') {
|
|
14277
|
+
// don't hoist over string (html) components
|
|
14278
|
+
if (objectPrototype) {
|
|
14279
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
14280
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
14281
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
14282
|
+
}
|
|
14283
|
+
}
|
|
14284
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
14285
|
+
if (getOwnPropertySymbols) {
|
|
14286
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
14287
|
+
}
|
|
14288
|
+
var targetStatics = getStatics(targetComponent);
|
|
14289
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
14290
|
+
for(var i = 0; i < keys.length; ++i){
|
|
14291
|
+
var key = keys[i];
|
|
14292
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
14293
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
14294
|
+
try {
|
|
14295
|
+
// Avoid failures from read-only properties
|
|
14296
|
+
defineProperty(targetComponent, key, descriptor);
|
|
14297
|
+
} catch (e) {}
|
|
14298
|
+
}
|
|
14299
|
+
}
|
|
14300
|
+
}
|
|
14301
|
+
return targetComponent;
|
|
14302
|
+
}
|
|
14303
|
+
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
14304
|
+
return hoistNonReactStatics_cjs;
|
|
14305
|
+
}
|
|
14306
|
+
|
|
14307
|
+
requireHoistNonReactStatics_cjs();
|
|
14308
|
+
|
|
13945
14309
|
var isBrowser = true;
|
|
13946
14310
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
13947
14311
|
var rawClassName = '';
|
|
@@ -14244,6 +14608,7 @@ var syncFallback = function syncFallback(create) {
|
|
|
14244
14608
|
};
|
|
14245
14609
|
var useInsertionEffect$1 = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
|
14246
14610
|
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect$1 || syncFallback;
|
|
14611
|
+
var useInsertionEffectWithLayoutFallback = useInsertionEffect$1 || React.useLayoutEffect;
|
|
14247
14612
|
|
|
14248
14613
|
var EmotionCacheContext = /* #__PURE__ */ React.createContext(// because this module is primarily intended for the browser and node
|
|
14249
14614
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -14283,6 +14648,153 @@ var ThemeProvider$1 = function ThemeProvider(props) {
|
|
|
14283
14648
|
value: theme
|
|
14284
14649
|
}, props.children);
|
|
14285
14650
|
};
|
|
14651
|
+
var hasOwn = {}.hasOwnProperty;
|
|
14652
|
+
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
14653
|
+
var createEmotionProps = function createEmotionProps(type, props) {
|
|
14654
|
+
var newProps = {};
|
|
14655
|
+
for(var _key in props){
|
|
14656
|
+
if (hasOwn.call(props, _key)) {
|
|
14657
|
+
newProps[_key] = props[_key];
|
|
14658
|
+
}
|
|
14659
|
+
}
|
|
14660
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
14661
|
+
return newProps;
|
|
14662
|
+
};
|
|
14663
|
+
var Insertion$1 = function Insertion(_ref) {
|
|
14664
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
14665
|
+
registerStyles(cache, serialized, isStringTag);
|
|
14666
|
+
useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
14667
|
+
return insertStyles(cache, serialized, isStringTag);
|
|
14668
|
+
});
|
|
14669
|
+
return null;
|
|
14670
|
+
};
|
|
14671
|
+
var Emotion = /* #__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
14672
|
+
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
14673
|
+
// not passing the registered cache to serializeStyles because it would
|
|
14674
|
+
// make certain babel optimisations not possible
|
|
14675
|
+
if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
|
|
14676
|
+
cssProp = cache.registered[cssProp];
|
|
14677
|
+
}
|
|
14678
|
+
var WrappedComponent = props[typePropName];
|
|
14679
|
+
var registeredStyles = [
|
|
14680
|
+
cssProp
|
|
14681
|
+
];
|
|
14682
|
+
var className = '';
|
|
14683
|
+
if (typeof props.className === 'string') {
|
|
14684
|
+
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
14685
|
+
} else if (props.className != null) {
|
|
14686
|
+
className = props.className + " ";
|
|
14687
|
+
}
|
|
14688
|
+
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext$1));
|
|
14689
|
+
className += cache.key + "-" + serialized.name;
|
|
14690
|
+
var newProps = {};
|
|
14691
|
+
for(var _key2 in props){
|
|
14692
|
+
if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && true) {
|
|
14693
|
+
newProps[_key2] = props[_key2];
|
|
14694
|
+
}
|
|
14695
|
+
}
|
|
14696
|
+
newProps.className = className;
|
|
14697
|
+
if (ref) {
|
|
14698
|
+
newProps.ref = ref;
|
|
14699
|
+
}
|
|
14700
|
+
return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Insertion$1, {
|
|
14701
|
+
cache: cache,
|
|
14702
|
+
serialized: serialized,
|
|
14703
|
+
isStringTag: typeof WrappedComponent === 'string'
|
|
14704
|
+
}), /*#__PURE__*/ React.createElement(WrappedComponent, newProps));
|
|
14705
|
+
});
|
|
14706
|
+
var Emotion$1 = Emotion;
|
|
14707
|
+
|
|
14708
|
+
var jsx = function jsx(type, props) {
|
|
14709
|
+
// eslint-disable-next-line prefer-rest-params
|
|
14710
|
+
var args = arguments;
|
|
14711
|
+
if (props == null || !hasOwn.call(props, 'css')) {
|
|
14712
|
+
return React.createElement.apply(undefined, args);
|
|
14713
|
+
}
|
|
14714
|
+
var argsLength = args.length;
|
|
14715
|
+
var createElementArgArray = new Array(argsLength);
|
|
14716
|
+
createElementArgArray[0] = Emotion$1;
|
|
14717
|
+
createElementArgArray[1] = createEmotionProps(type, props);
|
|
14718
|
+
for(var i = 2; i < argsLength; i++){
|
|
14719
|
+
createElementArgArray[i] = args[i];
|
|
14720
|
+
}
|
|
14721
|
+
return React.createElement.apply(null, createElementArgArray);
|
|
14722
|
+
};
|
|
14723
|
+
(function(_jsx) {
|
|
14724
|
+
var JSX;
|
|
14725
|
+
(function(_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
14726
|
+
})(jsx || (jsx = {}));
|
|
14727
|
+
// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
|
|
14728
|
+
// initial client-side render from SSR, use place of hydrating tag
|
|
14729
|
+
var Global = /* #__PURE__ */ withEmotionCache(function(props, cache) {
|
|
14730
|
+
var styles = props.styles;
|
|
14731
|
+
var serialized = serializeStyles([
|
|
14732
|
+
styles
|
|
14733
|
+
], undefined, React.useContext(ThemeContext$1));
|
|
14734
|
+
// but it is based on a constant that will never change at runtime
|
|
14735
|
+
// it's effectively like having two implementations and switching them out
|
|
14736
|
+
// so it's not actually breaking anything
|
|
14737
|
+
var sheetRef = React.useRef();
|
|
14738
|
+
useInsertionEffectWithLayoutFallback(function() {
|
|
14739
|
+
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
14740
|
+
var sheet = new cache.sheet.constructor({
|
|
14741
|
+
key: key,
|
|
14742
|
+
nonce: cache.sheet.nonce,
|
|
14743
|
+
container: cache.sheet.container,
|
|
14744
|
+
speedy: cache.sheet.isSpeedy
|
|
14745
|
+
});
|
|
14746
|
+
var rehydrating = false;
|
|
14747
|
+
var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
14748
|
+
if (cache.sheet.tags.length) {
|
|
14749
|
+
sheet.before = cache.sheet.tags[0];
|
|
14750
|
+
}
|
|
14751
|
+
if (node !== null) {
|
|
14752
|
+
rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
|
|
14753
|
+
node.setAttribute('data-emotion', key);
|
|
14754
|
+
sheet.hydrate([
|
|
14755
|
+
node
|
|
14756
|
+
]);
|
|
14757
|
+
}
|
|
14758
|
+
sheetRef.current = [
|
|
14759
|
+
sheet,
|
|
14760
|
+
rehydrating
|
|
14761
|
+
];
|
|
14762
|
+
return function() {
|
|
14763
|
+
sheet.flush();
|
|
14764
|
+
};
|
|
14765
|
+
}, [
|
|
14766
|
+
cache
|
|
14767
|
+
]);
|
|
14768
|
+
useInsertionEffectWithLayoutFallback(function() {
|
|
14769
|
+
var sheetRefCurrent = sheetRef.current;
|
|
14770
|
+
var sheet = sheetRefCurrent[0], rehydrating = sheetRefCurrent[1];
|
|
14771
|
+
if (rehydrating) {
|
|
14772
|
+
sheetRefCurrent[1] = false;
|
|
14773
|
+
return;
|
|
14774
|
+
}
|
|
14775
|
+
if (serialized.next !== undefined) {
|
|
14776
|
+
// insert keyframes
|
|
14777
|
+
insertStyles(cache, serialized.next, true);
|
|
14778
|
+
}
|
|
14779
|
+
if (sheet.tags.length) {
|
|
14780
|
+
// if this doesn't exist then it will be null so the style element will be appended
|
|
14781
|
+
var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
|
|
14782
|
+
sheet.before = element;
|
|
14783
|
+
sheet.flush();
|
|
14784
|
+
}
|
|
14785
|
+
cache.insert("", serialized, sheet, false);
|
|
14786
|
+
}, [
|
|
14787
|
+
cache,
|
|
14788
|
+
serialized.name
|
|
14789
|
+
]);
|
|
14790
|
+
return null;
|
|
14791
|
+
});
|
|
14792
|
+
function css() {
|
|
14793
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
14794
|
+
args[_key] = arguments[_key];
|
|
14795
|
+
}
|
|
14796
|
+
return serializeStyles(args);
|
|
14797
|
+
}
|
|
14286
14798
|
|
|
14287
14799
|
const lightTheme = {
|
|
14288
14800
|
colors: {
|
|
@@ -14390,9 +14902,15 @@ const ThemeProvider = ({ children, theme: propTheme })=>{
|
|
|
14390
14902
|
return propTheme;
|
|
14391
14903
|
}
|
|
14392
14904
|
// Only check localStorage if no theme prop is provided
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14905
|
+
// Handle cases where localStorage might not be available (e.g., test environments)
|
|
14906
|
+
try {
|
|
14907
|
+
const savedTheme = localStorage.getItem("theme");
|
|
14908
|
+
if (savedTheme === "dark") {
|
|
14909
|
+
return darkTheme;
|
|
14910
|
+
}
|
|
14911
|
+
} catch (e) {
|
|
14912
|
+
// localStorage not available, fall back to light theme
|
|
14913
|
+
// This can happen in test environments or when localStorage is disabled
|
|
14396
14914
|
}
|
|
14397
14915
|
return lightTheme;
|
|
14398
14916
|
});
|
|
@@ -14411,11 +14929,15 @@ const ThemeProvider = ({ children, theme: propTheme })=>{
|
|
|
14411
14929
|
return;
|
|
14412
14930
|
}
|
|
14413
14931
|
const handleStorageChange = ()=>{
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
|
|
14932
|
+
try {
|
|
14933
|
+
const savedTheme = localStorage.getItem("theme");
|
|
14934
|
+
if (savedTheme === "dark") {
|
|
14935
|
+
setCurrentTheme(darkTheme);
|
|
14936
|
+
} else {
|
|
14937
|
+
setCurrentTheme(lightTheme);
|
|
14938
|
+
}
|
|
14939
|
+
} catch (e) {
|
|
14940
|
+
// localStorage not available, ignore storage changes
|
|
14419
14941
|
}
|
|
14420
14942
|
};
|
|
14421
14943
|
// Listen for storage events (when localStorage changes in other tabs)
|
|
@@ -17021,15 +17543,24 @@ const NodeIcon$3 = styled.div`
|
|
|
17021
17543
|
`;
|
|
17022
17544
|
|
|
17023
17545
|
// Helper function to get node icon
|
|
17024
|
-
const getNodeIcon = (modelProvider)=>{
|
|
17546
|
+
const getNodeIcon = (modelProvider, size = 16)=>{
|
|
17025
17547
|
if (modelProvider === "OpenAI") {
|
|
17026
|
-
return /*#__PURE__*/ React__default.createElement(OpenAIIcon,
|
|
17548
|
+
return /*#__PURE__*/ React__default.createElement(OpenAIIcon, {
|
|
17549
|
+
width: size,
|
|
17550
|
+
height: size
|
|
17551
|
+
});
|
|
17027
17552
|
}
|
|
17028
17553
|
if (modelProvider === "Anthropic") {
|
|
17029
|
-
return /*#__PURE__*/ React__default.createElement(AnthropicIcon,
|
|
17554
|
+
return /*#__PURE__*/ React__default.createElement(AnthropicIcon, {
|
|
17555
|
+
width: size,
|
|
17556
|
+
height: size
|
|
17557
|
+
});
|
|
17030
17558
|
}
|
|
17031
17559
|
if (modelProvider === "Google" || modelProvider === "Vertex_AI") {
|
|
17032
|
-
return /*#__PURE__*/ React__default.createElement(GoogleIcon,
|
|
17560
|
+
return /*#__PURE__*/ React__default.createElement(GoogleIcon, {
|
|
17561
|
+
width: size,
|
|
17562
|
+
height: size
|
|
17563
|
+
});
|
|
17033
17564
|
}
|
|
17034
17565
|
return "🤖";
|
|
17035
17566
|
};
|
|
@@ -17711,7 +18242,7 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
17711
18242
|
const Provider = (props)=>{
|
|
17712
18243
|
const { children, ...context } = props;
|
|
17713
18244
|
const value = React.useMemo(()=>context, Object.values(context));
|
|
17714
|
-
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
18245
|
+
return /* @__PURE__ */ jsx$1(Context.Provider, {
|
|
17715
18246
|
value,
|
|
17716
18247
|
children
|
|
17717
18248
|
});
|
|
@@ -17741,7 +18272,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
17741
18272
|
const { scope, children, ...context } = props;
|
|
17742
18273
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
17743
18274
|
const value = React.useMemo(()=>context, Object.values(context));
|
|
17744
|
-
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
18275
|
+
return /* @__PURE__ */ jsx$1(Context.Provider, {
|
|
17745
18276
|
value,
|
|
17746
18277
|
children
|
|
17747
18278
|
});
|
|
@@ -17852,7 +18383,7 @@ function useControllableState$1({ prop, defaultProp, onChange = ()=>{}, caller }
|
|
|
17852
18383
|
}
|
|
17853
18384
|
const setValue = React.useCallback((nextValue)=>{
|
|
17854
18385
|
if (isControlled) {
|
|
17855
|
-
const value2 = isFunction
|
|
18386
|
+
const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
|
|
17856
18387
|
if (value2 !== prop) {
|
|
17857
18388
|
onChangeRef.current?.(value2);
|
|
17858
18389
|
}
|
|
@@ -17894,7 +18425,7 @@ function useUncontrolledState$1({ defaultProp, onChange }) {
|
|
|
17894
18425
|
onChangeRef
|
|
17895
18426
|
];
|
|
17896
18427
|
}
|
|
17897
|
-
function isFunction
|
|
18428
|
+
function isFunction(value) {
|
|
17898
18429
|
return typeof value === "function";
|
|
17899
18430
|
}
|
|
17900
18431
|
|
|
@@ -17916,13 +18447,13 @@ function createSlot(ownerName) {
|
|
|
17916
18447
|
return child;
|
|
17917
18448
|
}
|
|
17918
18449
|
});
|
|
17919
|
-
return /* @__PURE__ */ jsx(SlotClone, {
|
|
18450
|
+
return /* @__PURE__ */ jsx$1(SlotClone, {
|
|
17920
18451
|
...slotProps,
|
|
17921
18452
|
ref: forwardedRef,
|
|
17922
18453
|
children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null
|
|
17923
18454
|
});
|
|
17924
18455
|
}
|
|
17925
|
-
return /* @__PURE__ */ jsx(SlotClone, {
|
|
18456
|
+
return /* @__PURE__ */ jsx$1(SlotClone, {
|
|
17926
18457
|
...slotProps,
|
|
17927
18458
|
ref: forwardedRef,
|
|
17928
18459
|
children
|
|
@@ -18029,7 +18560,7 @@ var Primitive = NODES.reduce((primitive, node)=>{
|
|
|
18029
18560
|
if (typeof window !== "undefined") {
|
|
18030
18561
|
window[Symbol.for("radix-ui")] = true;
|
|
18031
18562
|
}
|
|
18032
|
-
return /* @__PURE__ */ jsx(Comp, {
|
|
18563
|
+
return /* @__PURE__ */ jsx$1(Comp, {
|
|
18033
18564
|
...primitiveProps,
|
|
18034
18565
|
ref: forwardedRef
|
|
18035
18566
|
});
|
|
@@ -18166,7 +18697,7 @@ var DismissableLayer = React.forwardRef((props, forwardedRef)=>{
|
|
|
18166
18697
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
18167
18698
|
return ()=>document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
18168
18699
|
}, []);
|
|
18169
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
18700
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
18170
18701
|
...layerProps,
|
|
18171
18702
|
ref: composedRefs,
|
|
18172
18703
|
style: {
|
|
@@ -18195,7 +18726,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef)=>{
|
|
|
18195
18726
|
}, [
|
|
18196
18727
|
context.branches
|
|
18197
18728
|
]);
|
|
18198
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
18729
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
18199
18730
|
...props,
|
|
18200
18731
|
ref: composedRefs
|
|
18201
18732
|
});
|
|
@@ -18432,7 +18963,7 @@ var FocusScope = React.forwardRef((props, forwardedRef)=>{
|
|
|
18432
18963
|
trapped,
|
|
18433
18964
|
focusScope.paused
|
|
18434
18965
|
]);
|
|
18435
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
18966
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
18436
18967
|
tabIndex: -1,
|
|
18437
18968
|
...scopeProps,
|
|
18438
18969
|
ref: composedRefs,
|
|
@@ -18536,7 +19067,7 @@ var Portal$3 = React.forwardRef((props, forwardedRef)=>{
|
|
|
18536
19067
|
const [mounted, setMounted] = React.useState(false);
|
|
18537
19068
|
useLayoutEffect2(()=>setMounted(true), []);
|
|
18538
19069
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
18539
|
-
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, {
|
|
19070
|
+
return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx$1(Primitive.div, {
|
|
18540
19071
|
...portalProps,
|
|
18541
19072
|
ref: forwardedRef
|
|
18542
19073
|
}), container) : null;
|
|
@@ -19690,7 +20221,7 @@ var Dialog = (props)=>{
|
|
|
19690
20221
|
onChange: onOpenChange,
|
|
19691
20222
|
caller: DIALOG_NAME
|
|
19692
20223
|
});
|
|
19693
|
-
return /* @__PURE__ */ jsx(DialogProvider, {
|
|
20224
|
+
return /* @__PURE__ */ jsx$1(DialogProvider, {
|
|
19694
20225
|
scope: __scopeDialog,
|
|
19695
20226
|
triggerRef,
|
|
19696
20227
|
contentRef,
|
|
@@ -19707,23 +20238,23 @@ var Dialog = (props)=>{
|
|
|
19707
20238
|
});
|
|
19708
20239
|
};
|
|
19709
20240
|
Dialog.displayName = DIALOG_NAME;
|
|
19710
|
-
var TRIGGER_NAME$
|
|
20241
|
+
var TRIGGER_NAME$1 = "DialogTrigger";
|
|
19711
20242
|
var DialogTrigger = React.forwardRef((props, forwardedRef)=>{
|
|
19712
20243
|
const { __scopeDialog, ...triggerProps } = props;
|
|
19713
|
-
const context = useDialogContext(TRIGGER_NAME$
|
|
20244
|
+
const context = useDialogContext(TRIGGER_NAME$1, __scopeDialog);
|
|
19714
20245
|
const composedTriggerRef = useComposedRefs$1(forwardedRef, context.triggerRef);
|
|
19715
|
-
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
20246
|
+
return /* @__PURE__ */ jsx$1(Primitive.button, {
|
|
19716
20247
|
type: "button",
|
|
19717
20248
|
"aria-haspopup": "dialog",
|
|
19718
20249
|
"aria-expanded": context.open,
|
|
19719
20250
|
"aria-controls": context.contentId,
|
|
19720
|
-
"data-state": getState
|
|
20251
|
+
"data-state": getState(context.open),
|
|
19721
20252
|
...triggerProps,
|
|
19722
20253
|
ref: composedTriggerRef,
|
|
19723
20254
|
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
19724
20255
|
});
|
|
19725
20256
|
});
|
|
19726
|
-
DialogTrigger.displayName = TRIGGER_NAME$
|
|
20257
|
+
DialogTrigger.displayName = TRIGGER_NAME$1;
|
|
19727
20258
|
var PORTAL_NAME$1 = "DialogPortal";
|
|
19728
20259
|
var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME$1, {
|
|
19729
20260
|
forceMount: void 0
|
|
@@ -19731,12 +20262,12 @@ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME$1, {
|
|
|
19731
20262
|
var DialogPortal = (props)=>{
|
|
19732
20263
|
const { __scopeDialog, forceMount, children, container } = props;
|
|
19733
20264
|
const context = useDialogContext(PORTAL_NAME$1, __scopeDialog);
|
|
19734
|
-
return /* @__PURE__ */ jsx(PortalProvider, {
|
|
20265
|
+
return /* @__PURE__ */ jsx$1(PortalProvider, {
|
|
19735
20266
|
scope: __scopeDialog,
|
|
19736
20267
|
forceMount,
|
|
19737
|
-
children: React.Children.map(children, (child)=>/* @__PURE__ */ jsx(Presence, {
|
|
20268
|
+
children: React.Children.map(children, (child)=>/* @__PURE__ */ jsx$1(Presence, {
|
|
19738
20269
|
present: forceMount || context.open,
|
|
19739
|
-
children: /* @__PURE__ */ jsx(Portal$3, {
|
|
20270
|
+
children: /* @__PURE__ */ jsx$1(Portal$3, {
|
|
19740
20271
|
asChild: true,
|
|
19741
20272
|
container,
|
|
19742
20273
|
children: child
|
|
@@ -19750,9 +20281,9 @@ var DialogOverlay = React.forwardRef((props, forwardedRef)=>{
|
|
|
19750
20281
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
|
19751
20282
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
|
19752
20283
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
|
19753
|
-
return context.modal ? /* @__PURE__ */ jsx(Presence, {
|
|
20284
|
+
return context.modal ? /* @__PURE__ */ jsx$1(Presence, {
|
|
19754
20285
|
present: forceMount || context.open,
|
|
19755
|
-
children: /* @__PURE__ */ jsx(DialogOverlayImpl, {
|
|
20286
|
+
children: /* @__PURE__ */ jsx$1(DialogOverlayImpl, {
|
|
19756
20287
|
...overlayProps,
|
|
19757
20288
|
ref: forwardedRef
|
|
19758
20289
|
})
|
|
@@ -19765,14 +20296,14 @@ var DialogOverlayImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
19765
20296
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
19766
20297
|
return(// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
19767
20298
|
// ie. when `Overlay` and `Content` are siblings
|
|
19768
|
-
/* @__PURE__ */ jsx(ReactRemoveScroll, {
|
|
20299
|
+
/* @__PURE__ */ jsx$1(ReactRemoveScroll, {
|
|
19769
20300
|
as: Slot$1,
|
|
19770
20301
|
allowPinchZoom: true,
|
|
19771
20302
|
shards: [
|
|
19772
20303
|
context.contentRef
|
|
19773
20304
|
],
|
|
19774
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
19775
|
-
"data-state": getState
|
|
20305
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
20306
|
+
"data-state": getState(context.open),
|
|
19776
20307
|
...overlayProps,
|
|
19777
20308
|
ref: forwardedRef,
|
|
19778
20309
|
style: {
|
|
@@ -19787,12 +20318,12 @@ var DialogContent = React.forwardRef((props, forwardedRef)=>{
|
|
|
19787
20318
|
const portalContext = usePortalContext(CONTENT_NAME$2, props.__scopeDialog);
|
|
19788
20319
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
19789
20320
|
const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
|
|
19790
|
-
return /* @__PURE__ */ jsx(Presence, {
|
|
20321
|
+
return /* @__PURE__ */ jsx$1(Presence, {
|
|
19791
20322
|
present: forceMount || context.open,
|
|
19792
|
-
children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, {
|
|
20323
|
+
children: context.modal ? /* @__PURE__ */ jsx$1(DialogContentModal, {
|
|
19793
20324
|
...contentProps,
|
|
19794
20325
|
ref: forwardedRef
|
|
19795
|
-
}) : /* @__PURE__ */ jsx(DialogContentNonModal, {
|
|
20326
|
+
}) : /* @__PURE__ */ jsx$1(DialogContentNonModal, {
|
|
19796
20327
|
...contentProps,
|
|
19797
20328
|
ref: forwardedRef
|
|
19798
20329
|
})
|
|
@@ -19807,7 +20338,7 @@ var DialogContentModal = React.forwardRef((props, forwardedRef)=>{
|
|
|
19807
20338
|
const content = contentRef.current;
|
|
19808
20339
|
if (content) return hideOthers(content);
|
|
19809
20340
|
}, []);
|
|
19810
|
-
return /* @__PURE__ */ jsx(DialogContentImpl, {
|
|
20341
|
+
return /* @__PURE__ */ jsx$1(DialogContentImpl, {
|
|
19811
20342
|
...props,
|
|
19812
20343
|
ref: composedRefs,
|
|
19813
20344
|
trapFocus: context.open,
|
|
@@ -19829,7 +20360,7 @@ var DialogContentNonModal = React.forwardRef((props, forwardedRef)=>{
|
|
|
19829
20360
|
const context = useDialogContext(CONTENT_NAME$2, props.__scopeDialog);
|
|
19830
20361
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
19831
20362
|
const hasPointerDownOutsideRef = React.useRef(false);
|
|
19832
|
-
return /* @__PURE__ */ jsx(DialogContentImpl, {
|
|
20363
|
+
return /* @__PURE__ */ jsx$1(DialogContentImpl, {
|
|
19833
20364
|
...props,
|
|
19834
20365
|
ref: forwardedRef,
|
|
19835
20366
|
trapFocus: false,
|
|
@@ -19868,18 +20399,18 @@ var DialogContentImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
19868
20399
|
useFocusGuards();
|
|
19869
20400
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
19870
20401
|
children: [
|
|
19871
|
-
/* @__PURE__ */ jsx(FocusScope, {
|
|
20402
|
+
/* @__PURE__ */ jsx$1(FocusScope, {
|
|
19872
20403
|
asChild: true,
|
|
19873
20404
|
loop: true,
|
|
19874
20405
|
trapped: trapFocus,
|
|
19875
20406
|
onMountAutoFocus: onOpenAutoFocus,
|
|
19876
20407
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
19877
|
-
children: /* @__PURE__ */ jsx(DismissableLayer, {
|
|
20408
|
+
children: /* @__PURE__ */ jsx$1(DismissableLayer, {
|
|
19878
20409
|
role: "dialog",
|
|
19879
20410
|
id: context.contentId,
|
|
19880
20411
|
"aria-describedby": context.descriptionId,
|
|
19881
20412
|
"aria-labelledby": context.titleId,
|
|
19882
|
-
"data-state": getState
|
|
20413
|
+
"data-state": getState(context.open),
|
|
19883
20414
|
...contentProps,
|
|
19884
20415
|
ref: composedRefs,
|
|
19885
20416
|
onDismiss: ()=>context.onOpenChange(false)
|
|
@@ -19887,10 +20418,10 @@ var DialogContentImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
19887
20418
|
}),
|
|
19888
20419
|
/* @__PURE__ */ jsxs(Fragment, {
|
|
19889
20420
|
children: [
|
|
19890
|
-
/* @__PURE__ */ jsx(TitleWarning, {
|
|
20421
|
+
/* @__PURE__ */ jsx$1(TitleWarning, {
|
|
19891
20422
|
titleId: context.titleId
|
|
19892
20423
|
}),
|
|
19893
|
-
/* @__PURE__ */ jsx(DescriptionWarning, {
|
|
20424
|
+
/* @__PURE__ */ jsx$1(DescriptionWarning, {
|
|
19894
20425
|
contentRef,
|
|
19895
20426
|
descriptionId: context.descriptionId
|
|
19896
20427
|
})
|
|
@@ -19903,7 +20434,7 @@ var TITLE_NAME = "DialogTitle";
|
|
|
19903
20434
|
var DialogTitle = React.forwardRef((props, forwardedRef)=>{
|
|
19904
20435
|
const { __scopeDialog, ...titleProps } = props;
|
|
19905
20436
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
19906
|
-
return /* @__PURE__ */ jsx(Primitive.h2, {
|
|
20437
|
+
return /* @__PURE__ */ jsx$1(Primitive.h2, {
|
|
19907
20438
|
id: context.titleId,
|
|
19908
20439
|
...titleProps,
|
|
19909
20440
|
ref: forwardedRef
|
|
@@ -19914,7 +20445,7 @@ var DESCRIPTION_NAME = "DialogDescription";
|
|
|
19914
20445
|
var DialogDescription = React.forwardRef((props, forwardedRef)=>{
|
|
19915
20446
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
19916
20447
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
19917
|
-
return /* @__PURE__ */ jsx(Primitive.p, {
|
|
20448
|
+
return /* @__PURE__ */ jsx$1(Primitive.p, {
|
|
19918
20449
|
id: context.descriptionId,
|
|
19919
20450
|
...descriptionProps,
|
|
19920
20451
|
ref: forwardedRef
|
|
@@ -19925,7 +20456,7 @@ var CLOSE_NAME = "DialogClose";
|
|
|
19925
20456
|
var DialogClose = React.forwardRef((props, forwardedRef)=>{
|
|
19926
20457
|
const { __scopeDialog, ...closeProps } = props;
|
|
19927
20458
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
19928
|
-
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
20459
|
+
return /* @__PURE__ */ jsx$1(Primitive.button, {
|
|
19929
20460
|
type: "button",
|
|
19930
20461
|
...closeProps,
|
|
19931
20462
|
ref: forwardedRef,
|
|
@@ -19933,7 +20464,7 @@ var DialogClose = React.forwardRef((props, forwardedRef)=>{
|
|
|
19933
20464
|
});
|
|
19934
20465
|
});
|
|
19935
20466
|
DialogClose.displayName = CLOSE_NAME;
|
|
19936
|
-
function getState
|
|
20467
|
+
function getState(open) {
|
|
19937
20468
|
return open ? "open" : "closed";
|
|
19938
20469
|
}
|
|
19939
20470
|
var TITLE_WARNING_NAME = "DialogTitleWarning";
|
|
@@ -20881,7 +21412,7 @@ function createCollection(name) {
|
|
|
20881
21412
|
const { scope, children } = props;
|
|
20882
21413
|
const ref = React__default.useRef(null);
|
|
20883
21414
|
const itemMap = React__default.useRef(/* @__PURE__ */ new Map()).current;
|
|
20884
|
-
return /* @__PURE__ */ jsx(CollectionProviderImpl, {
|
|
21415
|
+
return /* @__PURE__ */ jsx$1(CollectionProviderImpl, {
|
|
20885
21416
|
scope,
|
|
20886
21417
|
itemMap,
|
|
20887
21418
|
collectionRef: ref,
|
|
@@ -20895,7 +21426,7 @@ function createCollection(name) {
|
|
|
20895
21426
|
const { scope, children } = props;
|
|
20896
21427
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
20897
21428
|
const composedRefs = useComposedRefs$1(forwardedRef, context.collectionRef);
|
|
20898
|
-
return /* @__PURE__ */ jsx(CollectionSlotImpl, {
|
|
21429
|
+
return /* @__PURE__ */ jsx$1(CollectionSlotImpl, {
|
|
20899
21430
|
ref: composedRefs,
|
|
20900
21431
|
children
|
|
20901
21432
|
});
|
|
@@ -20916,7 +21447,7 @@ function createCollection(name) {
|
|
|
20916
21447
|
});
|
|
20917
21448
|
return ()=>void context.itemMap.delete(ref);
|
|
20918
21449
|
});
|
|
20919
|
-
return /* @__PURE__ */ jsx(CollectionItemSlotImpl, {
|
|
21450
|
+
return /* @__PURE__ */ jsx$1(CollectionItemSlotImpl, {
|
|
20920
21451
|
...{
|
|
20921
21452
|
[ITEM_DATA_ATTR]: ""
|
|
20922
21453
|
},
|
|
@@ -23019,14 +23550,14 @@ function useLatestRef(value) {
|
|
|
23019
23550
|
var NAME$1 = "Arrow";
|
|
23020
23551
|
var Arrow$1 = React.forwardRef((props, forwardedRef)=>{
|
|
23021
23552
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
23022
|
-
return /* @__PURE__ */ jsx(Primitive.svg, {
|
|
23553
|
+
return /* @__PURE__ */ jsx$1(Primitive.svg, {
|
|
23023
23554
|
...arrowProps,
|
|
23024
23555
|
ref: forwardedRef,
|
|
23025
23556
|
width,
|
|
23026
23557
|
height,
|
|
23027
23558
|
viewBox: "0 0 30 10",
|
|
23028
23559
|
preserveAspectRatio: "none",
|
|
23029
|
-
children: props.asChild ? children : /* @__PURE__ */ jsx("polygon", {
|
|
23560
|
+
children: props.asChild ? children : /* @__PURE__ */ jsx$1("polygon", {
|
|
23030
23561
|
points: "0,0 30,0 15,10"
|
|
23031
23562
|
})
|
|
23032
23563
|
});
|
|
@@ -23086,7 +23617,7 @@ var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
|
23086
23617
|
var Popper = (props)=>{
|
|
23087
23618
|
const { __scopePopper, children } = props;
|
|
23088
23619
|
const [anchor, setAnchor] = React.useState(null);
|
|
23089
|
-
return /* @__PURE__ */ jsx(PopperProvider, {
|
|
23620
|
+
return /* @__PURE__ */ jsx$1(PopperProvider, {
|
|
23090
23621
|
scope: __scopePopper,
|
|
23091
23622
|
anchor,
|
|
23092
23623
|
onAnchorChange: setAnchor,
|
|
@@ -23108,7 +23639,7 @@ var PopperAnchor = React.forwardRef((props, forwardedRef)=>{
|
|
|
23108
23639
|
context.onAnchorChange(anchorRef.current);
|
|
23109
23640
|
}
|
|
23110
23641
|
});
|
|
23111
|
-
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, {
|
|
23642
|
+
return virtualRef ? null : /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
23112
23643
|
...anchorProps,
|
|
23113
23644
|
ref: composedRefs
|
|
23114
23645
|
});
|
|
@@ -23214,7 +23745,7 @@ var PopperContent = React.forwardRef((props, forwardedRef)=>{
|
|
|
23214
23745
|
}, [
|
|
23215
23746
|
content
|
|
23216
23747
|
]);
|
|
23217
|
-
return /* @__PURE__ */ jsx("div", {
|
|
23748
|
+
return /* @__PURE__ */ jsx$1("div", {
|
|
23218
23749
|
ref: refs.setFloating,
|
|
23219
23750
|
"data-radix-popper-content-wrapper": "",
|
|
23220
23751
|
style: {
|
|
@@ -23236,14 +23767,14 @@ var PopperContent = React.forwardRef((props, forwardedRef)=>{
|
|
|
23236
23767
|
}
|
|
23237
23768
|
},
|
|
23238
23769
|
dir: props.dir,
|
|
23239
|
-
children: /* @__PURE__ */ jsx(PopperContentProvider, {
|
|
23770
|
+
children: /* @__PURE__ */ jsx$1(PopperContentProvider, {
|
|
23240
23771
|
scope: __scopePopper,
|
|
23241
23772
|
placedSide,
|
|
23242
23773
|
onArrowChange: setArrow,
|
|
23243
23774
|
arrowX,
|
|
23244
23775
|
arrowY,
|
|
23245
23776
|
shouldHideArrow: cannotCenterArrow,
|
|
23246
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
23777
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
23247
23778
|
"data-side": placedSide,
|
|
23248
23779
|
"data-align": placedAlign,
|
|
23249
23780
|
...contentProps,
|
|
@@ -23273,7 +23804,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
|
23273
23804
|
return(// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
23274
23805
|
// doesn't report size as we'd expect on SVG elements.
|
|
23275
23806
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
23276
|
-
/* @__PURE__ */ jsx("span", {
|
|
23807
|
+
/* @__PURE__ */ jsx$1("span", {
|
|
23277
23808
|
ref: contentContext.onArrowChange,
|
|
23278
23809
|
style: {
|
|
23279
23810
|
position: "absolute",
|
|
@@ -23294,7 +23825,7 @@ var PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
|
23294
23825
|
}[contentContext.placedSide],
|
|
23295
23826
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
23296
23827
|
},
|
|
23297
|
-
children: /* @__PURE__ */ jsx(Root$1, {
|
|
23828
|
+
children: /* @__PURE__ */ jsx$1(Root$1, {
|
|
23298
23829
|
...arrowProps,
|
|
23299
23830
|
ref: forwardedRef,
|
|
23300
23831
|
style: {
|
|
@@ -23394,7 +23925,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
23394
23925
|
});
|
|
23395
23926
|
var NAME = "VisuallyHidden";
|
|
23396
23927
|
var VisuallyHidden = React.forwardRef((props, forwardedRef)=>{
|
|
23397
|
-
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
23928
|
+
return /* @__PURE__ */ jsx$1(Primitive.span, {
|
|
23398
23929
|
...props,
|
|
23399
23930
|
ref: forwardedRef,
|
|
23400
23931
|
style: {
|
|
@@ -23447,7 +23978,7 @@ var Select$1 = (props)=>{
|
|
|
23447
23978
|
const isFormControl = trigger ? form || !!trigger.closest("form") : true;
|
|
23448
23979
|
const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());
|
|
23449
23980
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option)=>option.props.value).join(";");
|
|
23450
|
-
return /* @__PURE__ */ jsx(Root2$1, {
|
|
23981
|
+
return /* @__PURE__ */ jsx$1(Root2$1, {
|
|
23451
23982
|
...popperScope,
|
|
23452
23983
|
children: /* @__PURE__ */ jsxs(SelectProvider, {
|
|
23453
23984
|
required,
|
|
@@ -23467,9 +23998,9 @@ var Select$1 = (props)=>{
|
|
|
23467
23998
|
triggerPointerDownPosRef,
|
|
23468
23999
|
disabled,
|
|
23469
24000
|
children: [
|
|
23470
|
-
/* @__PURE__ */ jsx(Collection.Provider, {
|
|
24001
|
+
/* @__PURE__ */ jsx$1(Collection.Provider, {
|
|
23471
24002
|
scope: __scopeSelect,
|
|
23472
|
-
children: /* @__PURE__ */ jsx(SelectNativeOptionsProvider, {
|
|
24003
|
+
children: /* @__PURE__ */ jsx$1(SelectNativeOptionsProvider, {
|
|
23473
24004
|
scope: props.__scopeSelect,
|
|
23474
24005
|
onNativeOptionAdd: React.useCallback((option)=>{
|
|
23475
24006
|
setNativeOptionsSet((prev)=>new Set(prev).add(option));
|
|
@@ -23495,7 +24026,7 @@ var Select$1 = (props)=>{
|
|
|
23495
24026
|
disabled,
|
|
23496
24027
|
form,
|
|
23497
24028
|
children: [
|
|
23498
|
-
value === void 0 ? /* @__PURE__ */ jsx("option", {
|
|
24029
|
+
value === void 0 ? /* @__PURE__ */ jsx$1("option", {
|
|
23499
24030
|
value: ""
|
|
23500
24031
|
}) : null,
|
|
23501
24032
|
Array.from(nativeOptionsSet)
|
|
@@ -23506,11 +24037,11 @@ var Select$1 = (props)=>{
|
|
|
23506
24037
|
});
|
|
23507
24038
|
};
|
|
23508
24039
|
Select$1.displayName = SELECT_NAME;
|
|
23509
|
-
var TRIGGER_NAME
|
|
24040
|
+
var TRIGGER_NAME = "SelectTrigger";
|
|
23510
24041
|
var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
|
|
23511
24042
|
const { __scopeSelect, disabled = false, ...triggerProps } = props;
|
|
23512
24043
|
const popperScope = usePopperScope(__scopeSelect);
|
|
23513
|
-
const context = useSelectContext(TRIGGER_NAME
|
|
24044
|
+
const context = useSelectContext(TRIGGER_NAME, __scopeSelect);
|
|
23514
24045
|
const isDisabled = context.disabled || disabled;
|
|
23515
24046
|
const composedRefs = useComposedRefs$1(forwardedRef, context.onTriggerChange);
|
|
23516
24047
|
const getItems = useCollection(__scopeSelect);
|
|
@@ -23535,10 +24066,10 @@ var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
23535
24066
|
};
|
|
23536
24067
|
}
|
|
23537
24068
|
};
|
|
23538
|
-
return /* @__PURE__ */ jsx(Anchor, {
|
|
24069
|
+
return /* @__PURE__ */ jsx$1(Anchor, {
|
|
23539
24070
|
asChild: true,
|
|
23540
24071
|
...popperScope,
|
|
23541
|
-
children: /* @__PURE__ */ jsx(Primitive.button, {
|
|
24072
|
+
children: /* @__PURE__ */ jsx$1(Primitive.button, {
|
|
23542
24073
|
type: "button",
|
|
23543
24074
|
role: "combobox",
|
|
23544
24075
|
"aria-controls": context.contentId,
|
|
@@ -23582,7 +24113,7 @@ var SelectTrigger$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
23582
24113
|
})
|
|
23583
24114
|
});
|
|
23584
24115
|
});
|
|
23585
|
-
SelectTrigger$1.displayName = TRIGGER_NAME
|
|
24116
|
+
SelectTrigger$1.displayName = TRIGGER_NAME;
|
|
23586
24117
|
var VALUE_NAME = "SelectValue";
|
|
23587
24118
|
var SelectValue$1 = React.forwardRef((props, forwardedRef)=>{
|
|
23588
24119
|
const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
|
|
@@ -23596,13 +24127,13 @@ var SelectValue$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
23596
24127
|
onValueNodeHasChildrenChange,
|
|
23597
24128
|
hasChildren
|
|
23598
24129
|
]);
|
|
23599
|
-
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
24130
|
+
return /* @__PURE__ */ jsx$1(Primitive.span, {
|
|
23600
24131
|
...valueProps,
|
|
23601
24132
|
ref: composedRefs,
|
|
23602
24133
|
style: {
|
|
23603
24134
|
pointerEvents: "none"
|
|
23604
24135
|
},
|
|
23605
|
-
children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx(Fragment, {
|
|
24136
|
+
children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx$1(Fragment, {
|
|
23606
24137
|
children: placeholder
|
|
23607
24138
|
}) : children
|
|
23608
24139
|
});
|
|
@@ -23611,7 +24142,7 @@ SelectValue$1.displayName = VALUE_NAME;
|
|
|
23611
24142
|
var ICON_NAME = "SelectIcon";
|
|
23612
24143
|
var SelectIcon$1 = React.forwardRef((props, forwardedRef)=>{
|
|
23613
24144
|
const { __scopeSelect, children, ...iconProps } = props;
|
|
23614
|
-
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
24145
|
+
return /* @__PURE__ */ jsx$1(Primitive.span, {
|
|
23615
24146
|
"aria-hidden": true,
|
|
23616
24147
|
...iconProps,
|
|
23617
24148
|
ref: forwardedRef,
|
|
@@ -23621,7 +24152,7 @@ var SelectIcon$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
23621
24152
|
SelectIcon$1.displayName = ICON_NAME;
|
|
23622
24153
|
var PORTAL_NAME = "SelectPortal";
|
|
23623
24154
|
var SelectPortal = (props)=>{
|
|
23624
|
-
return /* @__PURE__ */ jsx(Portal$3, {
|
|
24155
|
+
return /* @__PURE__ */ jsx$1(Portal$3, {
|
|
23625
24156
|
asChild: true,
|
|
23626
24157
|
...props
|
|
23627
24158
|
});
|
|
@@ -23636,17 +24167,17 @@ var SelectContent$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
23636
24167
|
}, []);
|
|
23637
24168
|
if (!context.open) {
|
|
23638
24169
|
const frag = fragment;
|
|
23639
|
-
return frag ? ReactDOM.createPortal(/* @__PURE__ */ jsx(SelectContentProvider, {
|
|
24170
|
+
return frag ? ReactDOM.createPortal(/* @__PURE__ */ jsx$1(SelectContentProvider, {
|
|
23640
24171
|
scope: props.__scopeSelect,
|
|
23641
|
-
children: /* @__PURE__ */ jsx(Collection.Slot, {
|
|
24172
|
+
children: /* @__PURE__ */ jsx$1(Collection.Slot, {
|
|
23642
24173
|
scope: props.__scopeSelect,
|
|
23643
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
24174
|
+
children: /* @__PURE__ */ jsx$1("div", {
|
|
23644
24175
|
children: props.children
|
|
23645
24176
|
})
|
|
23646
24177
|
})
|
|
23647
24178
|
}), frag) : null;
|
|
23648
24179
|
}
|
|
23649
|
-
return /* @__PURE__ */ jsx(SelectContentImpl, {
|
|
24180
|
+
return /* @__PURE__ */ jsx$1(SelectContentImpl, {
|
|
23650
24181
|
...props,
|
|
23651
24182
|
ref: forwardedRef
|
|
23652
24183
|
});
|
|
@@ -23807,7 +24338,7 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
23807
24338
|
hideWhenDetached,
|
|
23808
24339
|
avoidCollisions
|
|
23809
24340
|
} : {};
|
|
23810
|
-
return /* @__PURE__ */ jsx(SelectContentProvider, {
|
|
24341
|
+
return /* @__PURE__ */ jsx$1(SelectContentProvider, {
|
|
23811
24342
|
scope: __scopeSelect,
|
|
23812
24343
|
content,
|
|
23813
24344
|
viewport,
|
|
@@ -23821,10 +24352,10 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
23821
24352
|
position,
|
|
23822
24353
|
isPositioned,
|
|
23823
24354
|
searchRef,
|
|
23824
|
-
children: /* @__PURE__ */ jsx(ReactRemoveScroll, {
|
|
24355
|
+
children: /* @__PURE__ */ jsx$1(ReactRemoveScroll, {
|
|
23825
24356
|
as: Slot,
|
|
23826
24357
|
allowPinchZoom: true,
|
|
23827
|
-
children: /* @__PURE__ */ jsx(FocusScope, {
|
|
24358
|
+
children: /* @__PURE__ */ jsx$1(FocusScope, {
|
|
23828
24359
|
asChild: true,
|
|
23829
24360
|
trapped: context.open,
|
|
23830
24361
|
onMountAutoFocus: (event)=>{
|
|
@@ -23836,14 +24367,14 @@ var SelectContentImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
23836
24367
|
});
|
|
23837
24368
|
event.preventDefault();
|
|
23838
24369
|
}),
|
|
23839
|
-
children: /* @__PURE__ */ jsx(DismissableLayer, {
|
|
24370
|
+
children: /* @__PURE__ */ jsx$1(DismissableLayer, {
|
|
23840
24371
|
asChild: true,
|
|
23841
24372
|
disableOutsidePointerEvents: true,
|
|
23842
24373
|
onEscapeKeyDown,
|
|
23843
24374
|
onPointerDownOutside,
|
|
23844
24375
|
onFocusOutside: (event)=>event.preventDefault(),
|
|
23845
24376
|
onDismiss: ()=>context.onOpenChange(false),
|
|
23846
|
-
children: /* @__PURE__ */ jsx(SelectPosition, {
|
|
24377
|
+
children: /* @__PURE__ */ jsx$1(SelectPosition, {
|
|
23847
24378
|
role: "listbox",
|
|
23848
24379
|
id: context.contentId,
|
|
23849
24380
|
"data-state": context.open ? "open" : "closed",
|
|
@@ -24022,12 +24553,12 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef)=>{
|
|
|
24022
24553
|
position,
|
|
24023
24554
|
focusSelectedItem
|
|
24024
24555
|
]);
|
|
24025
|
-
return /* @__PURE__ */ jsx(SelectViewportProvider, {
|
|
24556
|
+
return /* @__PURE__ */ jsx$1(SelectViewportProvider, {
|
|
24026
24557
|
scope: __scopeSelect,
|
|
24027
24558
|
contentWrapper,
|
|
24028
24559
|
shouldExpandOnScrollRef,
|
|
24029
24560
|
onScrollButtonChange: handleScrollButtonChange,
|
|
24030
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
24561
|
+
children: /* @__PURE__ */ jsx$1("div", {
|
|
24031
24562
|
ref: setContentWrapper,
|
|
24032
24563
|
style: {
|
|
24033
24564
|
display: "flex",
|
|
@@ -24035,7 +24566,7 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef)=>{
|
|
|
24035
24566
|
position: "fixed",
|
|
24036
24567
|
zIndex: contentZIndex
|
|
24037
24568
|
},
|
|
24038
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
24569
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24039
24570
|
...popperProps,
|
|
24040
24571
|
ref: composedRefs,
|
|
24041
24572
|
style: {
|
|
@@ -24055,7 +24586,7 @@ var POPPER_POSITION_NAME = "SelectPopperPosition";
|
|
|
24055
24586
|
var SelectPopperPosition = React.forwardRef((props, forwardedRef)=>{
|
|
24056
24587
|
const { __scopeSelect, align = "start", collisionPadding = CONTENT_MARGIN, ...popperProps } = props;
|
|
24057
24588
|
const popperScope = usePopperScope(__scopeSelect);
|
|
24058
|
-
return /* @__PURE__ */ jsx(Content$1, {
|
|
24589
|
+
return /* @__PURE__ */ jsx$1(Content$1, {
|
|
24059
24590
|
...popperScope,
|
|
24060
24591
|
...popperProps,
|
|
24061
24592
|
ref: forwardedRef,
|
|
@@ -24087,15 +24618,15 @@ var SelectViewport = React.forwardRef((props, forwardedRef)=>{
|
|
|
24087
24618
|
const prevScrollTopRef = React.useRef(0);
|
|
24088
24619
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24089
24620
|
children: [
|
|
24090
|
-
/* @__PURE__ */ jsx("style", {
|
|
24621
|
+
/* @__PURE__ */ jsx$1("style", {
|
|
24091
24622
|
dangerouslySetInnerHTML: {
|
|
24092
24623
|
__html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
|
|
24093
24624
|
},
|
|
24094
24625
|
nonce
|
|
24095
24626
|
}),
|
|
24096
|
-
/* @__PURE__ */ jsx(Collection.Slot, {
|
|
24627
|
+
/* @__PURE__ */ jsx$1(Collection.Slot, {
|
|
24097
24628
|
scope: __scopeSelect,
|
|
24098
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
24629
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24099
24630
|
"data-radix-select-viewport": "",
|
|
24100
24631
|
role: "presentation",
|
|
24101
24632
|
...viewportProps,
|
|
@@ -24148,10 +24679,10 @@ var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GR
|
|
|
24148
24679
|
var SelectGroup = React.forwardRef((props, forwardedRef)=>{
|
|
24149
24680
|
const { __scopeSelect, ...groupProps } = props;
|
|
24150
24681
|
const groupId = useId();
|
|
24151
|
-
return /* @__PURE__ */ jsx(SelectGroupContextProvider, {
|
|
24682
|
+
return /* @__PURE__ */ jsx$1(SelectGroupContextProvider, {
|
|
24152
24683
|
scope: __scopeSelect,
|
|
24153
24684
|
id: groupId,
|
|
24154
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
24685
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24155
24686
|
role: "group",
|
|
24156
24687
|
"aria-labelledby": groupId,
|
|
24157
24688
|
...groupProps,
|
|
@@ -24164,7 +24695,7 @@ var LABEL_NAME = "SelectLabel";
|
|
|
24164
24695
|
var SelectLabel$1 = React.forwardRef((props, forwardedRef)=>{
|
|
24165
24696
|
const { __scopeSelect, ...labelProps } = props;
|
|
24166
24697
|
const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
|
|
24167
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
24698
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24168
24699
|
id: groupContext.id,
|
|
24169
24700
|
...labelProps,
|
|
24170
24701
|
ref: forwardedRef
|
|
@@ -24192,7 +24723,7 @@ var SelectItem$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
24192
24723
|
if (value === "") {
|
|
24193
24724
|
throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
24194
24725
|
}
|
|
24195
|
-
return /* @__PURE__ */ jsx(SelectItemContextProvider, {
|
|
24726
|
+
return /* @__PURE__ */ jsx$1(SelectItemContextProvider, {
|
|
24196
24727
|
scope: __scopeSelect,
|
|
24197
24728
|
value,
|
|
24198
24729
|
disabled,
|
|
@@ -24201,12 +24732,12 @@ var SelectItem$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
24201
24732
|
onItemTextChange: React.useCallback((node)=>{
|
|
24202
24733
|
setTextValue((prevTextValue)=>prevTextValue || (node?.textContent ?? "").trim());
|
|
24203
24734
|
}, []),
|
|
24204
|
-
children: /* @__PURE__ */ jsx(Collection.ItemSlot, {
|
|
24735
|
+
children: /* @__PURE__ */ jsx$1(Collection.ItemSlot, {
|
|
24205
24736
|
scope: __scopeSelect,
|
|
24206
24737
|
value,
|
|
24207
24738
|
disabled,
|
|
24208
24739
|
textValue,
|
|
24209
|
-
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
24740
|
+
children: /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24210
24741
|
role: "option",
|
|
24211
24742
|
"aria-labelledby": textId,
|
|
24212
24743
|
"data-highlighted": isFocused ? "" : void 0,
|
|
@@ -24264,7 +24795,7 @@ var SelectItemText = React.forwardRef((props, forwardedRef)=>{
|
|
|
24264
24795
|
const [itemTextNode, setItemTextNode] = React.useState(null);
|
|
24265
24796
|
const composedRefs = useComposedRefs$1(forwardedRef, (node)=>setItemTextNode(node), itemContext.onItemTextChange, (node)=>contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
|
|
24266
24797
|
const textContent = itemTextNode?.textContent;
|
|
24267
|
-
const nativeOption = React.useMemo(()=>/* @__PURE__ */ jsx("option", {
|
|
24798
|
+
const nativeOption = React.useMemo(()=>/* @__PURE__ */ jsx$1("option", {
|
|
24268
24799
|
value: itemContext.value,
|
|
24269
24800
|
disabled: itemContext.disabled,
|
|
24270
24801
|
children: textContent
|
|
@@ -24284,7 +24815,7 @@ var SelectItemText = React.forwardRef((props, forwardedRef)=>{
|
|
|
24284
24815
|
]);
|
|
24285
24816
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
24286
24817
|
children: [
|
|
24287
|
-
/* @__PURE__ */ jsx(Primitive.span, {
|
|
24818
|
+
/* @__PURE__ */ jsx$1(Primitive.span, {
|
|
24288
24819
|
id: itemContext.textId,
|
|
24289
24820
|
...itemTextProps,
|
|
24290
24821
|
ref: composedRefs
|
|
@@ -24298,7 +24829,7 @@ var ITEM_INDICATOR_NAME = "SelectItemIndicator";
|
|
|
24298
24829
|
var SelectItemIndicator$1 = React.forwardRef((props, forwardedRef)=>{
|
|
24299
24830
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
24300
24831
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
|
|
24301
|
-
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, {
|
|
24832
|
+
return itemContext.isSelected ? /* @__PURE__ */ jsx$1(Primitive.span, {
|
|
24302
24833
|
"aria-hidden": true,
|
|
24303
24834
|
...itemIndicatorProps,
|
|
24304
24835
|
ref: forwardedRef
|
|
@@ -24326,7 +24857,7 @@ var SelectScrollUpButton$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
24326
24857
|
contentContext.viewport,
|
|
24327
24858
|
contentContext.isPositioned
|
|
24328
24859
|
]);
|
|
24329
|
-
return canScrollUp ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
|
|
24860
|
+
return canScrollUp ? /* @__PURE__ */ jsx$1(SelectScrollButtonImpl, {
|
|
24330
24861
|
...props,
|
|
24331
24862
|
ref: composedRefs,
|
|
24332
24863
|
onAutoScroll: ()=>{
|
|
@@ -24360,7 +24891,7 @@ var SelectScrollDownButton$1 = React.forwardRef((props, forwardedRef)=>{
|
|
|
24360
24891
|
contentContext.viewport,
|
|
24361
24892
|
contentContext.isPositioned
|
|
24362
24893
|
]);
|
|
24363
|
-
return canScrollDown ? /* @__PURE__ */ jsx(SelectScrollButtonImpl, {
|
|
24894
|
+
return canScrollDown ? /* @__PURE__ */ jsx$1(SelectScrollButtonImpl, {
|
|
24364
24895
|
...props,
|
|
24365
24896
|
ref: composedRefs,
|
|
24366
24897
|
onAutoScroll: ()=>{
|
|
@@ -24396,7 +24927,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
24396
24927
|
}, [
|
|
24397
24928
|
getItems
|
|
24398
24929
|
]);
|
|
24399
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
24930
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24400
24931
|
"aria-hidden": true,
|
|
24401
24932
|
...scrollIndicatorProps,
|
|
24402
24933
|
ref: forwardedRef,
|
|
@@ -24423,7 +24954,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef)=>{
|
|
|
24423
24954
|
var SEPARATOR_NAME = "SelectSeparator";
|
|
24424
24955
|
var SelectSeparator$1 = React.forwardRef((props, forwardedRef)=>{
|
|
24425
24956
|
const { __scopeSelect, ...separatorProps } = props;
|
|
24426
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
24957
|
+
return /* @__PURE__ */ jsx$1(Primitive.div, {
|
|
24427
24958
|
"aria-hidden": true,
|
|
24428
24959
|
...separatorProps,
|
|
24429
24960
|
ref: forwardedRef
|
|
@@ -24436,14 +24967,14 @@ var SelectArrow = React.forwardRef((props, forwardedRef)=>{
|
|
|
24436
24967
|
const popperScope = usePopperScope(__scopeSelect);
|
|
24437
24968
|
const context = useSelectContext(ARROW_NAME, __scopeSelect);
|
|
24438
24969
|
const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);
|
|
24439
|
-
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx(Arrow, {
|
|
24970
|
+
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx$1(Arrow, {
|
|
24440
24971
|
...popperScope,
|
|
24441
24972
|
...arrowProps,
|
|
24442
24973
|
ref: forwardedRef
|
|
24443
24974
|
}) : null;
|
|
24444
24975
|
});
|
|
24445
24976
|
SelectArrow.displayName = ARROW_NAME;
|
|
24446
|
-
var BUBBLE_INPUT_NAME
|
|
24977
|
+
var BUBBLE_INPUT_NAME = "SelectBubbleInput";
|
|
24447
24978
|
var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, forwardedRef)=>{
|
|
24448
24979
|
const ref = React.useRef(null);
|
|
24449
24980
|
const composedRefs = useComposedRefs$1(forwardedRef, ref);
|
|
@@ -24465,7 +24996,7 @@ var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, fo
|
|
|
24465
24996
|
prevValue,
|
|
24466
24997
|
value
|
|
24467
24998
|
]);
|
|
24468
|
-
return /* @__PURE__ */ jsx(Primitive.select, {
|
|
24999
|
+
return /* @__PURE__ */ jsx$1(Primitive.select, {
|
|
24469
25000
|
...props,
|
|
24470
25001
|
style: {
|
|
24471
25002
|
...VISUALLY_HIDDEN_STYLES,
|
|
@@ -24475,7 +25006,7 @@ var SelectBubbleInput = React.forwardRef(({ __scopeSelect, value, ...props }, fo
|
|
|
24475
25006
|
defaultValue: value
|
|
24476
25007
|
});
|
|
24477
25008
|
});
|
|
24478
|
-
SelectBubbleInput.displayName = BUBBLE_INPUT_NAME
|
|
25009
|
+
SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
24479
25010
|
function shouldShowPlaceholder(value) {
|
|
24480
25011
|
return value === "" || value === void 0;
|
|
24481
25012
|
}
|
|
@@ -24935,240 +25466,6 @@ const FileSelector = ({ files, currentFile, onFileSelect, onRefresh, loading = f
|
|
|
24935
25466
|
}, loading ? /*#__PURE__*/ React__default.createElement(LoadingIcon, null) : /*#__PURE__*/ React__default.createElement(RefreshIcon, null)));
|
|
24936
25467
|
};
|
|
24937
25468
|
|
|
24938
|
-
var CHECKBOX_NAME = "Checkbox";
|
|
24939
|
-
var [createCheckboxContext] = createContextScope(CHECKBOX_NAME);
|
|
24940
|
-
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
24941
|
-
function CheckboxProvider(props) {
|
|
24942
|
-
const { __scopeCheckbox, checked: checkedProp, children, defaultChecked, disabled, form, name, onCheckedChange, required, value = "on", // @ts-expect-error
|
|
24943
|
-
internal_do_not_use_render } = props;
|
|
24944
|
-
const [checked, setChecked] = useControllableState$1({
|
|
24945
|
-
prop: checkedProp,
|
|
24946
|
-
defaultProp: defaultChecked ?? false,
|
|
24947
|
-
onChange: onCheckedChange,
|
|
24948
|
-
caller: CHECKBOX_NAME
|
|
24949
|
-
});
|
|
24950
|
-
const [control, setControl] = React.useState(null);
|
|
24951
|
-
const [bubbleInput, setBubbleInput] = React.useState(null);
|
|
24952
|
-
const hasConsumerStoppedPropagationRef = React.useRef(false);
|
|
24953
|
-
const isFormControl = control ? !!form || !!control.closest("form") : // We set this to true by default so that events bubble to forms without JS (SSR)
|
|
24954
|
-
true;
|
|
24955
|
-
const context = {
|
|
24956
|
-
checked,
|
|
24957
|
-
disabled,
|
|
24958
|
-
setChecked,
|
|
24959
|
-
control,
|
|
24960
|
-
setControl,
|
|
24961
|
-
name,
|
|
24962
|
-
form,
|
|
24963
|
-
value,
|
|
24964
|
-
hasConsumerStoppedPropagationRef,
|
|
24965
|
-
required,
|
|
24966
|
-
defaultChecked: isIndeterminate(defaultChecked) ? false : defaultChecked,
|
|
24967
|
-
isFormControl,
|
|
24968
|
-
bubbleInput,
|
|
24969
|
-
setBubbleInput
|
|
24970
|
-
};
|
|
24971
|
-
return /* @__PURE__ */ jsx(CheckboxProviderImpl, {
|
|
24972
|
-
scope: __scopeCheckbox,
|
|
24973
|
-
...context,
|
|
24974
|
-
children: isFunction(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
|
|
24975
|
-
});
|
|
24976
|
-
}
|
|
24977
|
-
var TRIGGER_NAME = "CheckboxTrigger";
|
|
24978
|
-
var CheckboxTrigger = React.forwardRef(({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef)=>{
|
|
24979
|
-
const { control, value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, isFormControl, bubbleInput } = useCheckboxContext(TRIGGER_NAME, __scopeCheckbox);
|
|
24980
|
-
const composedRefs = useComposedRefs$1(forwardedRef, setControl);
|
|
24981
|
-
const initialCheckedStateRef = React.useRef(checked);
|
|
24982
|
-
React.useEffect(()=>{
|
|
24983
|
-
const form = control?.form;
|
|
24984
|
-
if (form) {
|
|
24985
|
-
const reset = ()=>setChecked(initialCheckedStateRef.current);
|
|
24986
|
-
form.addEventListener("reset", reset);
|
|
24987
|
-
return ()=>form.removeEventListener("reset", reset);
|
|
24988
|
-
}
|
|
24989
|
-
}, [
|
|
24990
|
-
control,
|
|
24991
|
-
setChecked
|
|
24992
|
-
]);
|
|
24993
|
-
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
24994
|
-
type: "button",
|
|
24995
|
-
role: "checkbox",
|
|
24996
|
-
"aria-checked": isIndeterminate(checked) ? "mixed" : checked,
|
|
24997
|
-
"aria-required": required,
|
|
24998
|
-
"data-state": getState(checked),
|
|
24999
|
-
"data-disabled": disabled ? "" : void 0,
|
|
25000
|
-
disabled,
|
|
25001
|
-
value,
|
|
25002
|
-
...checkboxProps,
|
|
25003
|
-
ref: composedRefs,
|
|
25004
|
-
onKeyDown: composeEventHandlers(onKeyDown, (event)=>{
|
|
25005
|
-
if (event.key === "Enter") event.preventDefault();
|
|
25006
|
-
}),
|
|
25007
|
-
onClick: composeEventHandlers(onClick, (event)=>{
|
|
25008
|
-
setChecked((prevChecked)=>isIndeterminate(prevChecked) ? true : !prevChecked);
|
|
25009
|
-
if (bubbleInput && isFormControl) {
|
|
25010
|
-
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
25011
|
-
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
|
25012
|
-
}
|
|
25013
|
-
})
|
|
25014
|
-
});
|
|
25015
|
-
});
|
|
25016
|
-
CheckboxTrigger.displayName = TRIGGER_NAME;
|
|
25017
|
-
var Checkbox$1 = React.forwardRef((props, forwardedRef)=>{
|
|
25018
|
-
const { __scopeCheckbox, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...checkboxProps } = props;
|
|
25019
|
-
return /* @__PURE__ */ jsx(CheckboxProvider, {
|
|
25020
|
-
__scopeCheckbox,
|
|
25021
|
-
checked,
|
|
25022
|
-
defaultChecked,
|
|
25023
|
-
disabled,
|
|
25024
|
-
required,
|
|
25025
|
-
onCheckedChange,
|
|
25026
|
-
name,
|
|
25027
|
-
form,
|
|
25028
|
-
value,
|
|
25029
|
-
internal_do_not_use_render: ({ isFormControl })=>/* @__PURE__ */ jsxs(Fragment, {
|
|
25030
|
-
children: [
|
|
25031
|
-
/* @__PURE__ */ jsx(CheckboxTrigger, {
|
|
25032
|
-
...checkboxProps,
|
|
25033
|
-
ref: forwardedRef,
|
|
25034
|
-
__scopeCheckbox
|
|
25035
|
-
}),
|
|
25036
|
-
isFormControl && /* @__PURE__ */ jsx(CheckboxBubbleInput, {
|
|
25037
|
-
__scopeCheckbox
|
|
25038
|
-
})
|
|
25039
|
-
]
|
|
25040
|
-
})
|
|
25041
|
-
});
|
|
25042
|
-
});
|
|
25043
|
-
Checkbox$1.displayName = CHECKBOX_NAME;
|
|
25044
|
-
var INDICATOR_NAME = "CheckboxIndicator";
|
|
25045
|
-
var CheckboxIndicator$1 = React.forwardRef((props, forwardedRef)=>{
|
|
25046
|
-
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
25047
|
-
const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
|
|
25048
|
-
return /* @__PURE__ */ jsx(Presence, {
|
|
25049
|
-
present: forceMount || isIndeterminate(context.checked) || context.checked === true,
|
|
25050
|
-
children: /* @__PURE__ */ jsx(Primitive.span, {
|
|
25051
|
-
"data-state": getState(context.checked),
|
|
25052
|
-
"data-disabled": context.disabled ? "" : void 0,
|
|
25053
|
-
...indicatorProps,
|
|
25054
|
-
ref: forwardedRef,
|
|
25055
|
-
style: {
|
|
25056
|
-
pointerEvents: "none",
|
|
25057
|
-
...props.style
|
|
25058
|
-
}
|
|
25059
|
-
})
|
|
25060
|
-
});
|
|
25061
|
-
});
|
|
25062
|
-
CheckboxIndicator$1.displayName = INDICATOR_NAME;
|
|
25063
|
-
var BUBBLE_INPUT_NAME = "CheckboxBubbleInput";
|
|
25064
|
-
var CheckboxBubbleInput = React.forwardRef(({ __scopeCheckbox, ...props }, forwardedRef)=>{
|
|
25065
|
-
const { control, hasConsumerStoppedPropagationRef, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useCheckboxContext(BUBBLE_INPUT_NAME, __scopeCheckbox);
|
|
25066
|
-
const composedRefs = useComposedRefs$1(forwardedRef, setBubbleInput);
|
|
25067
|
-
const prevChecked = usePrevious(checked);
|
|
25068
|
-
const controlSize = useSize(control);
|
|
25069
|
-
React.useEffect(()=>{
|
|
25070
|
-
const input = bubbleInput;
|
|
25071
|
-
if (!input) return;
|
|
25072
|
-
const inputProto = window.HTMLInputElement.prototype;
|
|
25073
|
-
const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
|
|
25074
|
-
const setChecked = descriptor.set;
|
|
25075
|
-
const bubbles = !hasConsumerStoppedPropagationRef.current;
|
|
25076
|
-
if (prevChecked !== checked && setChecked) {
|
|
25077
|
-
const event = new Event("click", {
|
|
25078
|
-
bubbles
|
|
25079
|
-
});
|
|
25080
|
-
input.indeterminate = isIndeterminate(checked);
|
|
25081
|
-
setChecked.call(input, isIndeterminate(checked) ? false : checked);
|
|
25082
|
-
input.dispatchEvent(event);
|
|
25083
|
-
}
|
|
25084
|
-
}, [
|
|
25085
|
-
bubbleInput,
|
|
25086
|
-
prevChecked,
|
|
25087
|
-
checked,
|
|
25088
|
-
hasConsumerStoppedPropagationRef
|
|
25089
|
-
]);
|
|
25090
|
-
const defaultCheckedRef = React.useRef(isIndeterminate(checked) ? false : checked);
|
|
25091
|
-
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
25092
|
-
type: "checkbox",
|
|
25093
|
-
"aria-hidden": true,
|
|
25094
|
-
defaultChecked: defaultChecked ?? defaultCheckedRef.current,
|
|
25095
|
-
required,
|
|
25096
|
-
disabled,
|
|
25097
|
-
name,
|
|
25098
|
-
value,
|
|
25099
|
-
form,
|
|
25100
|
-
...props,
|
|
25101
|
-
tabIndex: -1,
|
|
25102
|
-
ref: composedRefs,
|
|
25103
|
-
style: {
|
|
25104
|
-
...props.style,
|
|
25105
|
-
...controlSize,
|
|
25106
|
-
position: "absolute",
|
|
25107
|
-
pointerEvents: "none",
|
|
25108
|
-
opacity: 0,
|
|
25109
|
-
margin: 0,
|
|
25110
|
-
// We transform because the input is absolutely positioned but we have
|
|
25111
|
-
// rendered it **after** the button. This pulls it back to sit on top
|
|
25112
|
-
// of the button.
|
|
25113
|
-
transform: "translateX(-100%)"
|
|
25114
|
-
}
|
|
25115
|
-
});
|
|
25116
|
-
});
|
|
25117
|
-
CheckboxBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
25118
|
-
function isFunction(value) {
|
|
25119
|
-
return typeof value === "function";
|
|
25120
|
-
}
|
|
25121
|
-
function isIndeterminate(checked) {
|
|
25122
|
-
return checked === "indeterminate";
|
|
25123
|
-
}
|
|
25124
|
-
function getState(checked) {
|
|
25125
|
-
return isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
25126
|
-
}
|
|
25127
|
-
|
|
25128
|
-
const CheckboxRoot = styled(Checkbox$1)`
|
|
25129
|
-
display: flex;
|
|
25130
|
-
align-items: center;
|
|
25131
|
-
justify-content: center;
|
|
25132
|
-
height: 1rem;
|
|
25133
|
-
width: 1rem;
|
|
25134
|
-
flex-shrink: 0;
|
|
25135
|
-
border-radius: 0.125rem;
|
|
25136
|
-
border: 1px solid #6366f1;
|
|
25137
|
-
background-color: transparent;
|
|
25138
|
-
outline: none;
|
|
25139
|
-
transition: all 0.2s ease-in-out;
|
|
25140
|
-
|
|
25141
|
-
&:focus-visible {
|
|
25142
|
-
outline: none;
|
|
25143
|
-
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
|
|
25144
|
-
}
|
|
25145
|
-
|
|
25146
|
-
&:disabled {
|
|
25147
|
-
cursor: not-allowed;
|
|
25148
|
-
opacity: 0.5;
|
|
25149
|
-
}
|
|
25150
|
-
|
|
25151
|
-
&[data-state="checked"] {
|
|
25152
|
-
background-color: #6366f1;
|
|
25153
|
-
color: white;
|
|
25154
|
-
}
|
|
25155
|
-
`;
|
|
25156
|
-
const CheckboxIndicator = styled(CheckboxIndicator$1)`
|
|
25157
|
-
display: flex;
|
|
25158
|
-
align-items: center;
|
|
25159
|
-
justify-content: center;
|
|
25160
|
-
color: currentColor;
|
|
25161
|
-
`;
|
|
25162
|
-
const CheckIcon = styled(Check)`
|
|
25163
|
-
height: 1rem;
|
|
25164
|
-
width: 1rem;
|
|
25165
|
-
`;
|
|
25166
|
-
const Checkbox = /*#__PURE__*/ React.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ React.createElement(CheckboxRoot, {
|
|
25167
|
-
ref: ref,
|
|
25168
|
-
...props
|
|
25169
|
-
}, /*#__PURE__*/ React.createElement(CheckboxIndicator, null, /*#__PURE__*/ React.createElement(CheckIcon, null))));
|
|
25170
|
-
Checkbox.displayName = Checkbox$1.displayName;
|
|
25171
|
-
|
|
25172
25469
|
function __insertCSS(code) {
|
|
25173
25470
|
if (typeof document == 'undefined') return;
|
|
25174
25471
|
let head = document.head || document.getElementsByTagName('head')[0];
|
|
@@ -26791,7 +27088,7 @@ const DrawerOverlay = /*#__PURE__*/ React.forwardRef(({ className, ...props }, r
|
|
|
26791
27088
|
bottom: 0,
|
|
26792
27089
|
left: 0,
|
|
26793
27090
|
zIndex: 50,
|
|
26794
|
-
backgroundColor: "rgba(0, 0, 0, 0.
|
|
27091
|
+
backgroundColor: "rgba(0, 0, 0, 0.3)"
|
|
26795
27092
|
},
|
|
26796
27093
|
className: className,
|
|
26797
27094
|
...props
|
|
@@ -26850,7 +27147,183 @@ const DrawerDescription = /*#__PURE__*/ React.forwardRef(({ className, ...props
|
|
|
26850
27147
|
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
26851
27148
|
|
|
26852
27149
|
const GlobalStyles = ()=>{
|
|
26853
|
-
|
|
27150
|
+
const systemFontStack = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"';
|
|
27151
|
+
return /*#__PURE__*/ React__default.createElement(Global, {
|
|
27152
|
+
styles: css`
|
|
27153
|
+
* {
|
|
27154
|
+
box-sizing: border-box;
|
|
27155
|
+
border-color: #e5e7eb;
|
|
27156
|
+
font-family: ${systemFontStack};
|
|
27157
|
+
}
|
|
27158
|
+
|
|
27159
|
+
html,
|
|
27160
|
+
body {
|
|
27161
|
+
margin: 0;
|
|
27162
|
+
padding: 0;
|
|
27163
|
+
background-color: #ffffff;
|
|
27164
|
+
color: #1f2937;
|
|
27165
|
+
font-family: ${systemFontStack};
|
|
27166
|
+
line-height: 1.5;
|
|
27167
|
+
-webkit-font-smoothing: antialiased;
|
|
27168
|
+
-moz-osx-font-smoothing: grayscale;
|
|
27169
|
+
transition:
|
|
27170
|
+
background-color 0.2s ease-in-out,
|
|
27171
|
+
color 0.2s ease-in-out;
|
|
27172
|
+
}
|
|
27173
|
+
|
|
27174
|
+
/* Dark theme styles */
|
|
27175
|
+
html.dark,
|
|
27176
|
+
html.dark body {
|
|
27177
|
+
background-color: #0f172a;
|
|
27178
|
+
color: #f1f5f9;
|
|
27179
|
+
}
|
|
27180
|
+
|
|
27181
|
+
/* XYFlow overrides */
|
|
27182
|
+
.react-flow__edge {
|
|
27183
|
+
cursor: default !important;
|
|
27184
|
+
}
|
|
27185
|
+
|
|
27186
|
+
.react-flow__edge-path {
|
|
27187
|
+
cursor: default !important;
|
|
27188
|
+
}
|
|
27189
|
+
|
|
27190
|
+
.react-flow__edge-label {
|
|
27191
|
+
font-size: 10px;
|
|
27192
|
+
background: white;
|
|
27193
|
+
padding: 2px 4px;
|
|
27194
|
+
border-radius: 4px;
|
|
27195
|
+
border: 1px solid #e5e7eb;
|
|
27196
|
+
max-width: 150px;
|
|
27197
|
+
overflow: hidden;
|
|
27198
|
+
text-overflow: ellipsis;
|
|
27199
|
+
white-space: nowrap;
|
|
27200
|
+
}
|
|
27201
|
+
|
|
27202
|
+
/* Dark theme XYFlow overrides */
|
|
27203
|
+
html.dark .react-flow__edge-label {
|
|
27204
|
+
background: #1e293b;
|
|
27205
|
+
border: 1px solid #475569;
|
|
27206
|
+
color: #f1f5f9;
|
|
27207
|
+
}
|
|
27208
|
+
|
|
27209
|
+
/* Radix UI Select styles */
|
|
27210
|
+
[data-radix-select-trigger],
|
|
27211
|
+
.shadcn-select {
|
|
27212
|
+
display: flex;
|
|
27213
|
+
height: 2.5rem;
|
|
27214
|
+
width: 100%;
|
|
27215
|
+
align-items: center;
|
|
27216
|
+
justify-content: space-between;
|
|
27217
|
+
border-radius: 0.375rem;
|
|
27218
|
+
border: 1px solid #e5e7eb;
|
|
27219
|
+
background-color: #ffffff;
|
|
27220
|
+
padding: 0.5rem 0.75rem;
|
|
27221
|
+
font-size: 0.875rem;
|
|
27222
|
+
line-height: 1.25rem;
|
|
27223
|
+
outline: none;
|
|
27224
|
+
transition: all 0.2s ease-in-out;
|
|
27225
|
+
}
|
|
27226
|
+
|
|
27227
|
+
/* Dark theme select styles */
|
|
27228
|
+
html.dark [data-radix-select-trigger],
|
|
27229
|
+
html.dark .shadcn-select {
|
|
27230
|
+
border: 1px solid #475569;
|
|
27231
|
+
background-color: #1e293b;
|
|
27232
|
+
color: #f1f5f9;
|
|
27233
|
+
}
|
|
27234
|
+
|
|
27235
|
+
[data-radix-select-trigger]:focus,
|
|
27236
|
+
.shadcn-select:focus {
|
|
27237
|
+
outline: none;
|
|
27238
|
+
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
|
|
27239
|
+
}
|
|
27240
|
+
|
|
27241
|
+
[data-radix-select-trigger]:disabled,
|
|
27242
|
+
.shadcn-select:disabled {
|
|
27243
|
+
cursor: not-allowed;
|
|
27244
|
+
opacity: 0.5;
|
|
27245
|
+
}
|
|
27246
|
+
|
|
27247
|
+
/* File selector refresh button styles */
|
|
27248
|
+
.file-selector-refresh-btn {
|
|
27249
|
+
padding: 0.5rem;
|
|
27250
|
+
border-radius: 0.375rem;
|
|
27251
|
+
border: 1px solid #e5e7eb;
|
|
27252
|
+
background-color: #ffffff;
|
|
27253
|
+
transition: all 0.2s ease-in-out;
|
|
27254
|
+
}
|
|
27255
|
+
|
|
27256
|
+
.file-selector-refresh-btn:hover {
|
|
27257
|
+
background-color: #f3f4f6;
|
|
27258
|
+
color: #374151;
|
|
27259
|
+
}
|
|
27260
|
+
|
|
27261
|
+
.file-selector-refresh-btn:disabled {
|
|
27262
|
+
opacity: 0.5;
|
|
27263
|
+
cursor: not-allowed;
|
|
27264
|
+
}
|
|
27265
|
+
|
|
27266
|
+
/* Dark theme file selector refresh button */
|
|
27267
|
+
html.dark .file-selector-refresh-btn {
|
|
27268
|
+
border: 1px solid #475569;
|
|
27269
|
+
background-color: #1e293b;
|
|
27270
|
+
color: #f1f5f9;
|
|
27271
|
+
}
|
|
27272
|
+
|
|
27273
|
+
html.dark .file-selector-refresh-btn:hover {
|
|
27274
|
+
background-color: #334155;
|
|
27275
|
+
color: #f1f5f9;
|
|
27276
|
+
}
|
|
27277
|
+
|
|
27278
|
+
/* CSS Variables for backward compatibility */
|
|
27279
|
+
:root {
|
|
27280
|
+
--background: #ffffff;
|
|
27281
|
+
--foreground: #1f2937;
|
|
27282
|
+
--card: #ffffff;
|
|
27283
|
+
--card-foreground: #1f2937;
|
|
27284
|
+
--popover: #ffffff;
|
|
27285
|
+
--popover-foreground: #1f2937;
|
|
27286
|
+
--primary: #6366f1;
|
|
27287
|
+
--primary-foreground: #ffffff;
|
|
27288
|
+
--secondary: #f3f4f6;
|
|
27289
|
+
--secondary-foreground: #1f2937;
|
|
27290
|
+
--muted: #f3f4f6;
|
|
27291
|
+
--muted-foreground: #6b7280;
|
|
27292
|
+
--accent: #f3f4f6;
|
|
27293
|
+
--accent-foreground: #1f2937;
|
|
27294
|
+
--destructive: #ef4444;
|
|
27295
|
+
--destructive-foreground: #ffffff;
|
|
27296
|
+
--border: #e5e7eb;
|
|
27297
|
+
--input: #e5e7eb;
|
|
27298
|
+
--ring: #6366f1;
|
|
27299
|
+
--radius: 0.5rem;
|
|
27300
|
+
}
|
|
27301
|
+
|
|
27302
|
+
/* Dark theme CSS variables */
|
|
27303
|
+
html.dark {
|
|
27304
|
+
--background: #0f172a;
|
|
27305
|
+
--foreground: #f1f5f9;
|
|
27306
|
+
--card: #1e293b;
|
|
27307
|
+
--card-foreground: #f1f5f9;
|
|
27308
|
+
--popover: #1e293b;
|
|
27309
|
+
--popover-foreground: #f1f5f9;
|
|
27310
|
+
--primary: #6366f1;
|
|
27311
|
+
--primary-foreground: #ffffff;
|
|
27312
|
+
--secondary: #334155;
|
|
27313
|
+
--secondary-foreground: #f1f5f9;
|
|
27314
|
+
--muted: #334155;
|
|
27315
|
+
--muted-foreground: #94a3b8;
|
|
27316
|
+
--accent: #334155;
|
|
27317
|
+
--accent-foreground: #f1f5f9;
|
|
27318
|
+
--destructive: #ef4444;
|
|
27319
|
+
--destructive-foreground: #ffffff;
|
|
27320
|
+
--border: #475569;
|
|
27321
|
+
--input: #475569;
|
|
27322
|
+
--ring: #6366f1;
|
|
27323
|
+
--radius: 0.5rem;
|
|
27324
|
+
}
|
|
27325
|
+
`
|
|
27326
|
+
});
|
|
26854
27327
|
};
|
|
26855
27328
|
|
|
26856
27329
|
/**
|
|
@@ -26989,4 +27462,4 @@ const GlobalStyles = ()=>{
|
|
|
26989
27462
|
return getSafeColor(props.theme, path, fallback);
|
|
26990
27463
|
};
|
|
26991
27464
|
|
|
26992
|
-
export { AgenticFlowVisualizer, AnthropicIcon, Badge,
|
|
27465
|
+
export { AgenticFlowVisualizer, AnthropicIcon, Badge, Drawer, Edge, FileSelector, GlobalStyles, GoogleIcon, JsonTreeViewer, Node$1 as Node, OpenAIIcon, SafeThemeProvider, Select, Sheet, ThemeProvider, Timeline, Visualizer, calculateAutoLayout, cn, conditionalStyle, createSafeTheme, darkTheme, defaultTheme, detectContentType, formatCurrency, formatLatency, formatToolCalls, getColor, getSafeColor, getSafeSpacing, getSafeThemeValue, getSpacing, lightTheme, safeStyled, safeThemeColor, safeThemeSpacing, safeThemeValue, toTitleCase, truncateText, useComponentTheme, useSafeTheme, useTheme, useThemeValue };
|