@economic/taco 2.72.0-joyride.0 → 2.72.0-tanstack-virtual.0
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/taco.cjs +905 -757
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.d.ts +1 -1
- package/dist/taco.js +905 -757
- package/dist/taco.js.map +1 -1
- package/package.json +4 -4
package/dist/taco.js
CHANGED
|
@@ -3316,14 +3316,14 @@ const Alert$1 = React__default.forwardRef(function Alert2(props, ref) {
|
|
|
3316
3316
|
);
|
|
3317
3317
|
return /* @__PURE__ */ React__default.createElement("div", { ...props, ref, className, "data-taco": "alert", role: "alert" }, /* @__PURE__ */ React__default.createElement(BadgeIcon, { className: "flex-none", icon: getIconName(state), color: getColorByState(state) }), /* @__PURE__ */ React__default.createElement("div", { className: "grow text-sm" }, title && /* @__PURE__ */ React__default.createElement("div", { className: "font-bold" }, title), children), onClose && /* @__PURE__ */ React__default.createElement(Icon$1, { className: "flex-none cursor-pointer", name: "close", onClick: onClose }));
|
|
3318
3318
|
});
|
|
3319
|
-
function _extends$
|
|
3320
|
-
return _extends$
|
|
3319
|
+
function _extends$x() {
|
|
3320
|
+
return _extends$x = Object.assign ? Object.assign.bind() : function(n2) {
|
|
3321
3321
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
3322
3322
|
var t2 = arguments[e3];
|
|
3323
3323
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
3324
3324
|
}
|
|
3325
3325
|
return n2;
|
|
3326
|
-
}, _extends$
|
|
3326
|
+
}, _extends$x.apply(null, arguments);
|
|
3327
3327
|
}
|
|
3328
3328
|
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
3329
3329
|
const Context2 = /* @__PURE__ */ createContext(defaultContext);
|
|
@@ -3541,11 +3541,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 = /* @__PURE__ */ forwardRef((
|
|
|
3541
3541
|
return /* @__PURE__ */ isValidElement(newElement) ? newElement.props.children : null;
|
|
3542
3542
|
} else return child;
|
|
3543
3543
|
});
|
|
3544
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$
|
|
3544
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$x({}, slotProps, {
|
|
3545
3545
|
ref: forwardedRef
|
|
3546
3546
|
}), /* @__PURE__ */ isValidElement(newElement) ? /* @__PURE__ */ cloneElement(newElement, void 0, newChildren) : null);
|
|
3547
3547
|
}
|
|
3548
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$
|
|
3548
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$x({}, slotProps, {
|
|
3549
3549
|
ref: forwardedRef
|
|
3550
3550
|
}), children);
|
|
3551
3551
|
});
|
|
@@ -3616,7 +3616,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$
|
|
|
3616
3616
|
useEffect(() => {
|
|
3617
3617
|
window[Symbol.for("radix-ui")] = true;
|
|
3618
3618
|
}, []);
|
|
3619
|
-
return /* @__PURE__ */ createElement(Comp, _extends$
|
|
3619
|
+
return /* @__PURE__ */ createElement(Comp, _extends$x({}, primitiveProps, {
|
|
3620
3620
|
ref: forwardedRef
|
|
3621
3621
|
}));
|
|
3622
3622
|
});
|
|
@@ -3741,7 +3741,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ forwardRef((pr
|
|
|
3741
3741
|
document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
3742
3742
|
return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
3743
3743
|
}, []);
|
|
3744
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
3744
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, layerProps, {
|
|
3745
3745
|
ref: composedRefs,
|
|
3746
3746
|
style: {
|
|
3747
3747
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
@@ -3955,7 +3955,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ forwardRef((pr
|
|
|
3955
3955
|
trapped,
|
|
3956
3956
|
focusScope.paused
|
|
3957
3957
|
]);
|
|
3958
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
3958
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
3959
3959
|
tabIndex: -1
|
|
3960
3960
|
}, scopeProps, {
|
|
3961
3961
|
ref: composedRefs,
|
|
@@ -4053,7 +4053,7 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
|
4053
4053
|
const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
4054
4054
|
var _globalThis$document;
|
|
4055
4055
|
const { container = globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : _globalThis$document.body, ...portalProps } = props;
|
|
4056
|
-
return container ? /* @__PURE__ */ ReactDOM__default.createPortal(/* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
4056
|
+
return container ? /* @__PURE__ */ ReactDOM__default.createPortal(/* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, portalProps, {
|
|
4057
4057
|
ref: forwardedRef
|
|
4058
4058
|
})), container) : null;
|
|
4059
4059
|
});
|
|
@@ -4692,10 +4692,10 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
4692
4692
|
var availableScrollTop = 0;
|
|
4693
4693
|
do {
|
|
4694
4694
|
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
|
|
4695
|
-
var
|
|
4696
|
-
if (position ||
|
|
4695
|
+
var elementScroll2 = scroll_1 - capacity - directionFactor * position;
|
|
4696
|
+
if (position || elementScroll2) {
|
|
4697
4697
|
if (elementCouldBeScrolled(axis, target)) {
|
|
4698
|
-
availableScroll +=
|
|
4698
|
+
availableScroll += elementScroll2;
|
|
4699
4699
|
availableScrollTop += position;
|
|
4700
4700
|
}
|
|
4701
4701
|
}
|
|
@@ -5027,7 +5027,7 @@ const $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /* @__PURE__ */ forwardRef((pr
|
|
|
5027
5027
|
const { __scopeDialog, ...triggerProps } = props;
|
|
5028
5028
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);
|
|
5029
5029
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.triggerRef);
|
|
5030
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
5030
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
5031
5031
|
type: "button",
|
|
5032
5032
|
"aria-haspopup": "dialog",
|
|
5033
5033
|
"aria-expanded": context.open,
|
|
@@ -5065,7 +5065,7 @@ const $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /* @__PURE__ */ forwardRef((pr
|
|
|
5065
5065
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);
|
|
5066
5066
|
return context.modal ? /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
5067
5067
|
present: forceMount || context.open
|
|
5068
|
-
}, /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, _extends$
|
|
5068
|
+
}, /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, _extends$x({}, overlayProps, {
|
|
5069
5069
|
ref: forwardedRef
|
|
5070
5070
|
}))) : null;
|
|
5071
5071
|
});
|
|
@@ -5081,7 +5081,7 @@ const $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /* @__PURE__ */ forwardRef((prop
|
|
|
5081
5081
|
shards: [
|
|
5082
5082
|
context.contentRef
|
|
5083
5083
|
]
|
|
5084
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
5084
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
5085
5085
|
"data-state": $5d3850c4d0b4e6c7$var$getState(context.open)
|
|
5086
5086
|
}, overlayProps, {
|
|
5087
5087
|
ref: forwardedRef,
|
|
@@ -5099,9 +5099,9 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /* @__PURE__ */ forwardRef((pr
|
|
|
5099
5099
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
|
|
5100
5100
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
5101
5101
|
present: forceMount || context.open
|
|
5102
|
-
}, context.modal ? /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentModal, _extends$
|
|
5102
|
+
}, context.modal ? /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentModal, _extends$x({}, contentProps, {
|
|
5103
5103
|
ref: forwardedRef
|
|
5104
|
-
})) : /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, _extends$
|
|
5104
|
+
})) : /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, _extends$x({}, contentProps, {
|
|
5105
5105
|
ref: forwardedRef
|
|
5106
5106
|
})));
|
|
5107
5107
|
});
|
|
@@ -5116,7 +5116,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentModal = /* @__PURE__ */ forwardRef((pro
|
|
|
5116
5116
|
const content = contentRef.current;
|
|
5117
5117
|
if (content) return hideOthers(content);
|
|
5118
5118
|
}, []);
|
|
5119
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$
|
|
5119
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$x({}, props, {
|
|
5120
5120
|
ref: composedRefs,
|
|
5121
5121
|
trapFocus: context.open,
|
|
5122
5122
|
disableOutsidePointerEvents: true,
|
|
@@ -5140,7 +5140,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentModal = /* @__PURE__ */ forwardRef((pro
|
|
|
5140
5140
|
const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5141
5141
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
|
|
5142
5142
|
const hasInteractedOutsideRef = useRef(false);
|
|
5143
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$
|
|
5143
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$x({}, props, {
|
|
5144
5144
|
ref: forwardedRef,
|
|
5145
5145
|
trapFocus: false,
|
|
5146
5146
|
disableOutsidePointerEvents: false,
|
|
@@ -5176,7 +5176,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /* @__PURE__ */ forwardRef((prop
|
|
|
5176
5176
|
trapped: trapFocus,
|
|
5177
5177
|
onMountAutoFocus: onOpenAutoFocus,
|
|
5178
5178
|
onUnmountAutoFocus: onCloseAutoFocus
|
|
5179
|
-
}, /* @__PURE__ */ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends$
|
|
5179
|
+
}, /* @__PURE__ */ createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends$x({
|
|
5180
5180
|
role: "dialog",
|
|
5181
5181
|
id: context.contentId,
|
|
5182
5182
|
"aria-describedby": context.descriptionId,
|
|
@@ -5191,7 +5191,7 @@ const $5d3850c4d0b4e6c7$var$TITLE_NAME = "DialogTitle";
|
|
|
5191
5191
|
const $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5192
5192
|
const { __scopeDialog, ...titleProps } = props;
|
|
5193
5193
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);
|
|
5194
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h2, _extends$
|
|
5194
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h2, _extends$x({
|
|
5195
5195
|
id: context.titleId
|
|
5196
5196
|
}, titleProps, {
|
|
5197
5197
|
ref: forwardedRef
|
|
@@ -5204,7 +5204,7 @@ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = "DialogDescription";
|
|
|
5204
5204
|
const $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5205
5205
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
5206
5206
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);
|
|
5207
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.p, _extends$
|
|
5207
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.p, _extends$x({
|
|
5208
5208
|
id: context.descriptionId
|
|
5209
5209
|
}, descriptionProps, {
|
|
5210
5210
|
ref: forwardedRef
|
|
@@ -5217,7 +5217,7 @@ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = "DialogClose";
|
|
|
5217
5217
|
const $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5218
5218
|
const { __scopeDialog, ...closeProps } = props;
|
|
5219
5219
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);
|
|
5220
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
5220
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
5221
5221
|
type: "button"
|
|
5222
5222
|
}, closeProps, {
|
|
5223
5223
|
ref: forwardedRef,
|
|
@@ -5255,26 +5255,26 @@ const $905f4ae918aab1aa$var$useDialogScope = $5d3850c4d0b4e6c7$export$cc702773b8
|
|
|
5255
5255
|
const $905f4ae918aab1aa$export$de466dd8317b0b75 = (props) => {
|
|
5256
5256
|
const { __scopeAlertDialog, ...alertDialogProps } = props;
|
|
5257
5257
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5258
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, _extends$
|
|
5258
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, _extends$x({}, dialogScope, alertDialogProps, {
|
|
5259
5259
|
modal: true
|
|
5260
5260
|
}));
|
|
5261
5261
|
};
|
|
5262
5262
|
const $905f4ae918aab1aa$export$6edd7a623ef0f40b = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5263
5263
|
const { __scopeAlertDialog, ...triggerProps } = props;
|
|
5264
5264
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5265
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$41fb9f06171c75f4, _extends$
|
|
5265
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$41fb9f06171c75f4, _extends$x({}, dialogScope, triggerProps, {
|
|
5266
5266
|
ref: forwardedRef
|
|
5267
5267
|
}));
|
|
5268
5268
|
});
|
|
5269
5269
|
const $905f4ae918aab1aa$export$660f2bfdb986706c = (props) => {
|
|
5270
5270
|
const { __scopeAlertDialog, ...portalProps } = props;
|
|
5271
5271
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5272
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$602eac185826482c, _extends$
|
|
5272
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$602eac185826482c, _extends$x({}, dialogScope, portalProps));
|
|
5273
5273
|
};
|
|
5274
5274
|
const $905f4ae918aab1aa$export$a707a4895ce23256 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5275
5275
|
const { __scopeAlertDialog, ...overlayProps } = props;
|
|
5276
5276
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5277
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, _extends$
|
|
5277
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, _extends$x({}, dialogScope, overlayProps, {
|
|
5278
5278
|
ref: forwardedRef
|
|
5279
5279
|
}));
|
|
5280
5280
|
});
|
|
@@ -5293,7 +5293,7 @@ const $905f4ae918aab1aa$export$94e6af45f0af4efd = /* @__PURE__ */ forwardRef((pr
|
|
|
5293
5293
|
}, /* @__PURE__ */ createElement($905f4ae918aab1aa$var$AlertDialogContentProvider, {
|
|
5294
5294
|
scope: __scopeAlertDialog,
|
|
5295
5295
|
cancelRef
|
|
5296
|
-
}, /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, _extends$
|
|
5296
|
+
}, /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, _extends$x({
|
|
5297
5297
|
role: "alertdialog"
|
|
5298
5298
|
}, dialogScope, contentProps, {
|
|
5299
5299
|
ref: composedRefs,
|
|
@@ -5312,21 +5312,21 @@ const $905f4ae918aab1aa$var$TITLE_NAME = "AlertDialogTitle";
|
|
|
5312
5312
|
const $905f4ae918aab1aa$export$225e0da62d314b7 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5313
5313
|
const { __scopeAlertDialog, ...titleProps } = props;
|
|
5314
5314
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5315
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0, _extends$
|
|
5315
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0, _extends$x({}, dialogScope, titleProps, {
|
|
5316
5316
|
ref: forwardedRef
|
|
5317
5317
|
}));
|
|
5318
5318
|
});
|
|
5319
5319
|
const $905f4ae918aab1aa$export$a23b55cde55ad9a5 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5320
5320
|
const { __scopeAlertDialog, ...descriptionProps } = props;
|
|
5321
5321
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5322
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$393edc798c47379d, _extends$
|
|
5322
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$393edc798c47379d, _extends$x({}, dialogScope, descriptionProps, {
|
|
5323
5323
|
ref: forwardedRef
|
|
5324
5324
|
}));
|
|
5325
5325
|
});
|
|
5326
5326
|
const $905f4ae918aab1aa$export$b454f818c58ee85d = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
5327
5327
|
const { __scopeAlertDialog, ...actionProps } = props;
|
|
5328
5328
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5329
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$
|
|
5329
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$x({}, dialogScope, actionProps, {
|
|
5330
5330
|
ref: forwardedRef
|
|
5331
5331
|
}));
|
|
5332
5332
|
});
|
|
@@ -5336,7 +5336,7 @@ const $905f4ae918aab1aa$export$2f67a923571aaea0 = /* @__PURE__ */ forwardRef((pr
|
|
|
5336
5336
|
const { cancelRef } = $905f4ae918aab1aa$var$useAlertDialogContentContext($905f4ae918aab1aa$var$CANCEL_NAME, __scopeAlertDialog);
|
|
5337
5337
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5338
5338
|
const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, cancelRef);
|
|
5339
|
-
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$
|
|
5339
|
+
return /* @__PURE__ */ createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$x({}, dialogScope, cancelProps, {
|
|
5340
5340
|
ref
|
|
5341
5341
|
}));
|
|
5342
5342
|
});
|
|
@@ -10556,7 +10556,7 @@ const arrow$1 = (options) => {
|
|
|
10556
10556
|
};
|
|
10557
10557
|
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
10558
10558
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
10559
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends$
|
|
10559
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends$x({}, arrowProps, {
|
|
10560
10560
|
ref: forwardedRef,
|
|
10561
10561
|
width,
|
|
10562
10562
|
height,
|
|
@@ -10631,7 +10631,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /* @__PURE__ */ forwardRef((pro
|
|
|
10631
10631
|
useEffect(() => {
|
|
10632
10632
|
context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
|
|
10633
10633
|
});
|
|
10634
|
-
return virtualRef ? null : /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
10634
|
+
return virtualRef ? null : /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, anchorProps, {
|
|
10635
10635
|
ref: composedRefs
|
|
10636
10636
|
}));
|
|
10637
10637
|
});
|
|
@@ -10823,7 +10823,7 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ forwardRef(fun
|
|
|
10823
10823
|
}[contentContext.placedSide],
|
|
10824
10824
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
10825
10825
|
}
|
|
10826
|
-
}, /* @__PURE__ */ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$
|
|
10826
|
+
}, /* @__PURE__ */ createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$x({}, arrowProps, {
|
|
10827
10827
|
ref: forwardedRef,
|
|
10828
10828
|
style: {
|
|
10829
10829
|
...arrowProps.style,
|
|
@@ -10895,7 +10895,7 @@ const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e
|
|
|
10895
10895
|
const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
|
|
10896
10896
|
const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
|
|
10897
10897
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
10898
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
10898
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({}, props, {
|
|
10899
10899
|
ref: forwardedRef,
|
|
10900
10900
|
style: {
|
|
10901
10901
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -11056,9 +11056,9 @@ const $a093c7e1ec25a057$export$8c610744efcf8a1d = /* @__PURE__ */ forwardRef((pr
|
|
|
11056
11056
|
}, [
|
|
11057
11057
|
handlePointerUp
|
|
11058
11058
|
]);
|
|
11059
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
11059
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
11060
11060
|
asChild: true
|
|
11061
|
-
}, popperScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
11061
|
+
}, popperScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
11062
11062
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
11063
11063
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
11064
11064
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
@@ -11113,11 +11113,11 @@ const $a093c7e1ec25a057$export$e9003e2be37ec060 = /* @__PURE__ */ forwardRef((pr
|
|
|
11113
11113
|
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11114
11114
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
11115
11115
|
present: forceMount || context.open
|
|
11116
|
-
}, context.disableHoverableContent ? /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
11116
|
+
}, context.disableHoverableContent ? /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$x({
|
|
11117
11117
|
side
|
|
11118
11118
|
}, contentProps, {
|
|
11119
11119
|
ref: forwardedRef
|
|
11120
|
-
})) : /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$
|
|
11120
|
+
})) : /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$x({
|
|
11121
11121
|
side
|
|
11122
11122
|
}, contentProps, {
|
|
11123
11123
|
ref: forwardedRef
|
|
@@ -11212,7 +11212,7 @@ const $a093c7e1ec25a057$var$TooltipContentHoverable = /* @__PURE__ */ forwardRef
|
|
|
11212
11212
|
onClose,
|
|
11213
11213
|
handleRemoveGraceArea
|
|
11214
11214
|
]);
|
|
11215
|
-
return /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
11215
|
+
return /* @__PURE__ */ createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$x({}, props, {
|
|
11216
11216
|
ref: composedRefs
|
|
11217
11217
|
}));
|
|
11218
11218
|
});
|
|
@@ -11254,7 +11254,7 @@ const $a093c7e1ec25a057$var$TooltipContentImpl = /* @__PURE__ */ forwardRef((pro
|
|
|
11254
11254
|
onPointerDownOutside,
|
|
11255
11255
|
onFocusOutside: (event) => event.preventDefault(),
|
|
11256
11256
|
onDismiss: onClose
|
|
11257
|
-
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
11257
|
+
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
11258
11258
|
"data-state": context.stateAttribute
|
|
11259
11259
|
}, popperScope, contentProps, {
|
|
11260
11260
|
ref: forwardedRef,
|
|
@@ -11276,7 +11276,7 @@ const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /* @__PURE__ */ forwardRef((pr
|
|
|
11276
11276
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
11277
11277
|
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11278
11278
|
const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip);
|
|
11279
|
-
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
11279
|
+
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
11280
11280
|
ref: forwardedRef
|
|
11281
11281
|
}));
|
|
11282
11282
|
});
|
|
@@ -24022,7 +24022,7 @@ const $e698a72e93240346$export$48513f6b9f8ce62d = /* @__PURE__ */ forwardRef((pr
|
|
|
24022
24022
|
scope: __scopeCheckbox,
|
|
24023
24023
|
state: checked,
|
|
24024
24024
|
disabled
|
|
24025
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24025
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24026
24026
|
type: "button",
|
|
24027
24027
|
role: "checkbox",
|
|
24028
24028
|
"aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? "mixed" : checked,
|
|
@@ -24064,7 +24064,7 @@ const $e698a72e93240346$export$59aad738f51d1c05 = /* @__PURE__ */ forwardRef((pr
|
|
|
24064
24064
|
const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
|
|
24065
24065
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
24066
24066
|
present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
|
|
24067
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
24067
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
24068
24068
|
"data-state": $e698a72e93240346$var$getState(context.state),
|
|
24069
24069
|
"data-disabled": context.disabled ? "" : void 0
|
|
24070
24070
|
}, indicatorProps, {
|
|
@@ -24098,7 +24098,7 @@ const $e698a72e93240346$var$BubbleInput = (props) => {
|
|
|
24098
24098
|
checked,
|
|
24099
24099
|
bubbles
|
|
24100
24100
|
]);
|
|
24101
|
-
return /* @__PURE__ */ createElement("input", _extends$
|
|
24101
|
+
return /* @__PURE__ */ createElement("input", _extends$x({
|
|
24102
24102
|
type: "checkbox",
|
|
24103
24103
|
"aria-hidden": true,
|
|
24104
24104
|
defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
|
|
@@ -24281,7 +24281,7 @@ const $cb5cc270b50c6fcd$export$96e5381f42521a79 = /* @__PURE__ */ forwardRef((pr
|
|
|
24281
24281
|
onCustomAnchorAdd,
|
|
24282
24282
|
onCustomAnchorRemove
|
|
24283
24283
|
]);
|
|
24284
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
24284
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({}, popperScope, anchorProps, {
|
|
24285
24285
|
ref: forwardedRef
|
|
24286
24286
|
}));
|
|
24287
24287
|
});
|
|
@@ -24291,7 +24291,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ forwardRef((pro
|
|
|
24291
24291
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
|
|
24292
24292
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
24293
24293
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.triggerRef);
|
|
24294
|
-
const trigger = /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24294
|
+
const trigger = /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24295
24295
|
type: "button",
|
|
24296
24296
|
"aria-haspopup": "dialog",
|
|
24297
24297
|
"aria-expanded": context.open,
|
|
@@ -24301,7 +24301,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ forwardRef((pro
|
|
|
24301
24301
|
ref: composedTriggerRef,
|
|
24302
24302
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
|
|
24303
24303
|
}));
|
|
24304
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
24304
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
24305
24305
|
asChild: true
|
|
24306
24306
|
}, popperScope), trigger);
|
|
24307
24307
|
});
|
|
@@ -24329,9 +24329,9 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /* @__PURE__ */ forwardRef((pr
|
|
|
24329
24329
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
24330
24330
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
24331
24331
|
present: forceMount || context.open
|
|
24332
|
-
}, context.modal ? /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$
|
|
24332
|
+
}, context.modal ? /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$x({}, contentProps, {
|
|
24333
24333
|
ref: forwardedRef
|
|
24334
|
-
})) : /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$
|
|
24334
|
+
})) : /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$x({}, contentProps, {
|
|
24335
24335
|
ref: forwardedRef
|
|
24336
24336
|
})));
|
|
24337
24337
|
});
|
|
@@ -24347,7 +24347,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ forwardRef((pr
|
|
|
24347
24347
|
return /* @__PURE__ */ createElement(ReactRemoveScroll, {
|
|
24348
24348
|
as: $5e63c961fc1ce211$export$8c6ed5c666ac1360$1,
|
|
24349
24349
|
allowPinchZoom: true
|
|
24350
|
-
}, /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$
|
|
24350
|
+
}, /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$x({}, props, {
|
|
24351
24351
|
ref: composedRefs,
|
|
24352
24352
|
trapFocus: context.open,
|
|
24353
24353
|
disableOutsidePointerEvents: true,
|
|
@@ -24376,7 +24376,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ forwardRef((pr
|
|
|
24376
24376
|
const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
24377
24377
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
24378
24378
|
const hasInteractedOutsideRef = useRef(false);
|
|
24379
|
-
return /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$
|
|
24379
|
+
return /* @__PURE__ */ createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$x({}, props, {
|
|
24380
24380
|
ref: forwardedRef,
|
|
24381
24381
|
trapFocus: false,
|
|
24382
24382
|
disableOutsidePointerEvents: false,
|
|
@@ -24419,7 +24419,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentImpl = /* @__PURE__ */ forwardRef((pro
|
|
|
24419
24419
|
onPointerDownOutside,
|
|
24420
24420
|
onFocusOutside,
|
|
24421
24421
|
onDismiss: () => context.onOpenChange(false)
|
|
24422
|
-
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
24422
|
+
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
24423
24423
|
"data-state": $cb5cc270b50c6fcd$var$getState(context.open),
|
|
24424
24424
|
role: "dialog",
|
|
24425
24425
|
id: context.contentId
|
|
@@ -24436,7 +24436,7 @@ const $cb5cc270b50c6fcd$var$CLOSE_NAME = "PopoverClose";
|
|
|
24436
24436
|
const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
24437
24437
|
const { __scopePopover, ...closeProps } = props;
|
|
24438
24438
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CLOSE_NAME, __scopePopover);
|
|
24439
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24439
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24440
24440
|
type: "button"
|
|
24441
24441
|
}, closeProps, {
|
|
24442
24442
|
ref: forwardedRef,
|
|
@@ -24449,7 +24449,7 @@ const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /* @__PURE__ */ forwardRef((pr
|
|
|
24449
24449
|
const $cb5cc270b50c6fcd$export$3152841115e061b2 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
24450
24450
|
const { __scopePopover, ...arrowProps } = props;
|
|
24451
24451
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
24452
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
24452
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
24453
24453
|
ref: forwardedRef
|
|
24454
24454
|
}));
|
|
24455
24455
|
});
|
|
@@ -24495,7 +24495,7 @@ const getButtonStateClasses = (invalid, disabled = false) => {
|
|
|
24495
24495
|
}
|
|
24496
24496
|
return "border border-grey-300 group-peer-hover:enabled:border-grey-500 transition-colors transition-opacity ease-in";
|
|
24497
24497
|
};
|
|
24498
|
-
const debounce$
|
|
24498
|
+
const debounce$3 = (fn, delay) => {
|
|
24499
24499
|
let timeoutId;
|
|
24500
24500
|
return function(...args) {
|
|
24501
24501
|
clearTimeout(timeoutId);
|
|
@@ -24515,7 +24515,7 @@ const useBoundingClientRectListener = (ref, dependencies) => {
|
|
|
24515
24515
|
};
|
|
24516
24516
|
React.useEffect(() => {
|
|
24517
24517
|
const timeout = setTimeout(resize, 0);
|
|
24518
|
-
const debouncedResize = debounce$
|
|
24518
|
+
const debouncedResize = debounce$3(resize, 250);
|
|
24519
24519
|
window.addEventListener("resize", debouncedResize);
|
|
24520
24520
|
return () => {
|
|
24521
24521
|
clearTimeout(timeout);
|
|
@@ -24949,7 +24949,7 @@ function requireDebounce() {
|
|
|
24949
24949
|
return debounce_1;
|
|
24950
24950
|
}
|
|
24951
24951
|
var debounceExports = requireDebounce();
|
|
24952
|
-
const debounce$
|
|
24952
|
+
const debounce$2 = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
|
24953
24953
|
const getNextIndexFromKey = (key, length, index2, direction = "vertical") => {
|
|
24954
24954
|
const previousKey = direction === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
24955
24955
|
const nextKey = direction === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -25300,7 +25300,7 @@ const filterData = (data, value = "") => {
|
|
|
25300
25300
|
});
|
|
25301
25301
|
return data.filter(({ value: value2 }) => filteredOptionValues.has(value2));
|
|
25302
25302
|
};
|
|
25303
|
-
const debouncer = debounce$
|
|
25303
|
+
const debouncer = debounce$2((f2) => f2(), 200);
|
|
25304
25304
|
const convertToInputValue = (value) => String(value ?? "");
|
|
25305
25305
|
const useCombobox = (props, ref) => {
|
|
25306
25306
|
const {
|
|
@@ -32762,7 +32762,7 @@ const $57acba87d6e25586$export$ccf8d8d7bbf3c2cc = /* @__PURE__ */ forwardRef((pr
|
|
|
32762
32762
|
onScrollbarYEnabledChange: setScrollbarYEnabled,
|
|
32763
32763
|
onCornerWidthChange: setCornerWidth,
|
|
32764
32764
|
onCornerHeightChange: setCornerHeight
|
|
32765
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
32765
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
32766
32766
|
dir: direction
|
|
32767
32767
|
}, scrollAreaProps, {
|
|
32768
32768
|
ref: composedRefs,
|
|
@@ -32785,7 +32785,7 @@ const $57acba87d6e25586$export$a21cbf9f11fca853 = /* @__PURE__ */ forwardRef((pr
|
|
|
32785
32785
|
dangerouslySetInnerHTML: {
|
|
32786
32786
|
__html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`
|
|
32787
32787
|
}
|
|
32788
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
32788
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
32789
32789
|
"data-radix-scroll-area-viewport": ""
|
|
32790
32790
|
}, viewportProps, {
|
|
32791
32791
|
ref: composedRefs,
|
|
@@ -32829,16 +32829,16 @@ const $57acba87d6e25586$export$2fabd85d0eba3c57 = /* @__PURE__ */ forwardRef((pr
|
|
|
32829
32829
|
onScrollbarXEnabledChange,
|
|
32830
32830
|
onScrollbarYEnabledChange
|
|
32831
32831
|
]);
|
|
32832
|
-
return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$
|
|
32832
|
+
return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$x({}, scrollbarProps, {
|
|
32833
32833
|
ref: forwardedRef,
|
|
32834
32834
|
forceMount
|
|
32835
|
-
})) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$
|
|
32835
|
+
})) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$x({}, scrollbarProps, {
|
|
32836
32836
|
ref: forwardedRef,
|
|
32837
32837
|
forceMount
|
|
32838
|
-
})) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$
|
|
32838
|
+
})) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$x({}, scrollbarProps, {
|
|
32839
32839
|
ref: forwardedRef,
|
|
32840
32840
|
forceMount
|
|
32841
|
-
})) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32841
|
+
})) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({}, scrollbarProps, {
|
|
32842
32842
|
ref: forwardedRef
|
|
32843
32843
|
})) : null;
|
|
32844
32844
|
});
|
|
@@ -32874,7 +32874,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarHover = /* @__PURE__ */ forwardRe
|
|
|
32874
32874
|
]);
|
|
32875
32875
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32876
32876
|
present: forceMount || visible
|
|
32877
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$
|
|
32877
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$x({
|
|
32878
32878
|
"data-state": visible ? "visible" : "hidden"
|
|
32879
32879
|
}, scrollbarProps, {
|
|
32880
32880
|
ref: forwardedRef
|
|
@@ -32944,7 +32944,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarScroll = /* @__PURE__ */ forwardR
|
|
|
32944
32944
|
]);
|
|
32945
32945
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32946
32946
|
present: forceMount || state !== "hidden"
|
|
32947
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32947
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({
|
|
32948
32948
|
"data-state": state === "hidden" ? "hidden" : "visible"
|
|
32949
32949
|
}, scrollbarProps, {
|
|
32950
32950
|
ref: forwardedRef,
|
|
@@ -32974,7 +32974,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarAuto = /* @__PURE__ */ forwardRef
|
|
|
32974
32974
|
$57acba87d6e25586$var$useResizeObserver(context.content, handleResize);
|
|
32975
32975
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32976
32976
|
present: forceMount || visible
|
|
32977
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32977
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({
|
|
32978
32978
|
"data-state": visible ? "visible" : "hidden"
|
|
32979
32979
|
}, scrollbarProps, {
|
|
32980
32980
|
ref: forwardedRef
|
|
@@ -33007,7 +33007,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
|
|
|
33007
33007
|
function getScrollPosition2(pointerPos, dir) {
|
|
33008
33008
|
return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);
|
|
33009
33009
|
}
|
|
33010
|
-
if (orientation === "horizontal") return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$
|
|
33010
|
+
if (orientation === "horizontal") return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$x({}, commonProps, {
|
|
33011
33011
|
ref: forwardedRef,
|
|
33012
33012
|
onThumbPositionChange: () => {
|
|
33013
33013
|
if (context.viewport && thumbRef.current) {
|
|
@@ -33023,7 +33023,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
|
|
|
33023
33023
|
if (context.viewport) context.viewport.scrollLeft = getScrollPosition2(pointerPos, context.dir);
|
|
33024
33024
|
}
|
|
33025
33025
|
}));
|
|
33026
|
-
if (orientation === "vertical") return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$
|
|
33026
|
+
if (orientation === "vertical") return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$x({}, commonProps, {
|
|
33027
33027
|
ref: forwardedRef,
|
|
33028
33028
|
onThumbPositionChange: () => {
|
|
33029
33029
|
if (context.viewport && thumbRef.current) {
|
|
@@ -33052,7 +33052,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarX = /* @__PURE__ */ forwardRef((p
|
|
|
33052
33052
|
}, [
|
|
33053
33053
|
ref
|
|
33054
33054
|
]);
|
|
33055
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$
|
|
33055
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$x({
|
|
33056
33056
|
"data-orientation": "horizontal"
|
|
33057
33057
|
}, scrollbarProps, {
|
|
33058
33058
|
ref: composeRefs,
|
|
@@ -33097,7 +33097,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarY = /* @__PURE__ */ forwardRef((p
|
|
|
33097
33097
|
}, [
|
|
33098
33098
|
ref
|
|
33099
33099
|
]);
|
|
33100
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$
|
|
33100
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$x({
|
|
33101
33101
|
"data-orientation": "vertical"
|
|
33102
33102
|
}, scrollbarProps, {
|
|
33103
33103
|
ref: composeRefs,
|
|
@@ -33190,7 +33190,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarImpl = /* @__PURE__ */ forwardRef
|
|
|
33190
33190
|
onThumbPointerUp: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onThumbPointerUp),
|
|
33191
33191
|
onThumbPositionChange: handleThumbPositionChange,
|
|
33192
33192
|
onThumbPointerDown: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onThumbPointerDown)
|
|
33193
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33193
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, scrollbarProps, {
|
|
33194
33194
|
ref: composeRefs,
|
|
33195
33195
|
style: {
|
|
33196
33196
|
position: "absolute",
|
|
@@ -33222,7 +33222,7 @@ const $57acba87d6e25586$export$9fba1154677d7cd2 = /* @__PURE__ */ forwardRef((pr
|
|
|
33222
33222
|
const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea);
|
|
33223
33223
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
33224
33224
|
present: forceMount || scrollbarContext.hasThumb
|
|
33225
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$
|
|
33225
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$x({
|
|
33226
33226
|
ref: forwardedRef
|
|
33227
33227
|
}, thumbProps)));
|
|
33228
33228
|
});
|
|
@@ -33262,7 +33262,7 @@ const $57acba87d6e25586$var$ScrollAreaThumbImpl = /* @__PURE__ */ forwardRef((pr
|
|
|
33262
33262
|
debounceScrollEnd,
|
|
33263
33263
|
onThumbPositionChange
|
|
33264
33264
|
]);
|
|
33265
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33265
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
33266
33266
|
"data-state": scrollbarContext.hasThumb ? "visible" : "hidden"
|
|
33267
33267
|
}, thumbProps, {
|
|
33268
33268
|
ref: composedRef,
|
|
@@ -33289,7 +33289,7 @@ const $57acba87d6e25586$export$56969d565df7cc4b = /* @__PURE__ */ forwardRef((pr
|
|
|
33289
33289
|
const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea);
|
|
33290
33290
|
const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);
|
|
33291
33291
|
const hasCorner = context.type !== "scroll" && hasBothScrollbarsVisible;
|
|
33292
|
-
return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$
|
|
33292
|
+
return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$x({}, props, {
|
|
33293
33293
|
ref: forwardedRef
|
|
33294
33294
|
})) : null;
|
|
33295
33295
|
});
|
|
@@ -33311,7 +33311,7 @@ const $57acba87d6e25586$var$ScrollAreaCornerImpl = /* @__PURE__ */ forwardRef((p
|
|
|
33311
33311
|
context.onCornerWidthChange(width);
|
|
33312
33312
|
setWidth(width);
|
|
33313
33313
|
});
|
|
33314
|
-
return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33314
|
+
return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, cornerProps, {
|
|
33315
33315
|
ref: forwardedRef,
|
|
33316
33316
|
style: {
|
|
33317
33317
|
width: width1,
|
|
@@ -33951,9 +33951,9 @@ const $cef8881cdc69808e$export$ef9f7fd8e4ba882f = /* @__PURE__ */ forwardRef((pr
|
|
|
33951
33951
|
const { __scopeHoverCard, ...triggerProps } = props;
|
|
33952
33952
|
const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$TRIGGER_NAME, __scopeHoverCard);
|
|
33953
33953
|
const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
|
|
33954
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
33954
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
33955
33955
|
asChild: true
|
|
33956
|
-
}, popperScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.a, _extends$
|
|
33956
|
+
}, popperScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.a, _extends$x({
|
|
33957
33957
|
"data-state": context.open ? "open" : "closed"
|
|
33958
33958
|
}, triggerProps, {
|
|
33959
33959
|
ref: forwardedRef,
|
|
@@ -33991,7 +33991,7 @@ const $cef8881cdc69808e$export$aa4724a5938c586 = /* @__PURE__ */ forwardRef((pro
|
|
|
33991
33991
|
const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$CONTENT_NAME, props.__scopeHoverCard);
|
|
33992
33992
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
33993
33993
|
present: forceMount || context.open
|
|
33994
|
-
}, /* @__PURE__ */ createElement($cef8881cdc69808e$var$HoverCardContentImpl, _extends$
|
|
33994
|
+
}, /* @__PURE__ */ createElement($cef8881cdc69808e$var$HoverCardContentImpl, _extends$x({
|
|
33995
33995
|
"data-state": context.open ? "open" : "closed"
|
|
33996
33996
|
}, contentProps, {
|
|
33997
33997
|
onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerEnter, $cef8881cdc69808e$var$excludeTouch(context.onOpen)),
|
|
@@ -34060,7 +34060,7 @@ const $cef8881cdc69808e$var$HoverCardContentImpl = /* @__PURE__ */ forwardRef((p
|
|
|
34060
34060
|
event.preventDefault();
|
|
34061
34061
|
}),
|
|
34062
34062
|
onDismiss: context.onDismiss
|
|
34063
|
-
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
34063
|
+
}, /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({}, popperScope, contentProps, {
|
|
34064
34064
|
onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(contentProps.onPointerDown, (event) => {
|
|
34065
34065
|
if (event.currentTarget.contains(event.target)) setContainSelection(true);
|
|
34066
34066
|
context.hasSelectionRef.current = false;
|
|
@@ -34080,7 +34080,7 @@ const $cef8881cdc69808e$var$HoverCardContentImpl = /* @__PURE__ */ forwardRef((p
|
|
|
34080
34080
|
const $cef8881cdc69808e$export$b9744d3e7456d806 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
34081
34081
|
const { __scopeHoverCard, ...arrowProps } = props;
|
|
34082
34082
|
const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
|
|
34083
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
34083
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
34084
34084
|
ref: forwardedRef
|
|
34085
34085
|
}));
|
|
34086
34086
|
});
|
|
@@ -34340,11 +34340,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ forwardRef((pr
|
|
|
34340
34340
|
return /* @__PURE__ */ isValidElement(newElement) ? newElement.props.children : null;
|
|
34341
34341
|
} else return child;
|
|
34342
34342
|
});
|
|
34343
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
34343
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$x({}, slotProps, {
|
|
34344
34344
|
ref: forwardedRef
|
|
34345
34345
|
}), /* @__PURE__ */ isValidElement(newElement) ? /* @__PURE__ */ cloneElement(newElement, void 0, newChildren) : null);
|
|
34346
34346
|
}
|
|
34347
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
34347
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$x({}, slotProps, {
|
|
34348
34348
|
ref: forwardedRef
|
|
34349
34349
|
}), children);
|
|
34350
34350
|
});
|
|
@@ -34417,7 +34417,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
34417
34417
|
useEffect(() => {
|
|
34418
34418
|
window[Symbol.for("radix-ui")] = true;
|
|
34419
34419
|
}, []);
|
|
34420
|
-
return /* @__PURE__ */ createElement(Comp, _extends$
|
|
34420
|
+
return /* @__PURE__ */ createElement(Comp, _extends$x({}, primitiveProps, {
|
|
34421
34421
|
ref: forwardedRef
|
|
34422
34422
|
}));
|
|
34423
34423
|
});
|
|
@@ -34570,7 +34570,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ forwardRef((pr
|
|
|
34570
34570
|
setOpen
|
|
34571
34571
|
]
|
|
34572
34572
|
)
|
|
34573
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
34573
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$x({
|
|
34574
34574
|
"data-state": $409067139f391064$var$getState(open),
|
|
34575
34575
|
"data-disabled": disabled ? "" : void 0
|
|
34576
34576
|
}, collapsibleProps, {
|
|
@@ -34581,7 +34581,7 @@ const $409067139f391064$var$TRIGGER_NAME = "CollapsibleTrigger";
|
|
|
34581
34581
|
const $409067139f391064$export$c135dce7b15bbbdc = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
34582
34582
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
34583
34583
|
const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
|
|
34584
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
34584
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$x({
|
|
34585
34585
|
type: "button",
|
|
34586
34586
|
"aria-controls": context.contentId,
|
|
34587
34587
|
"aria-expanded": context.open || false,
|
|
@@ -34602,7 +34602,7 @@ const $409067139f391064$export$aadde00976f34151 = /* @__PURE__ */ forwardRef((pr
|
|
|
34602
34602
|
{
|
|
34603
34603
|
present: forceMount || context.open
|
|
34604
34604
|
},
|
|
34605
|
-
({ present }) => /* @__PURE__ */ createElement($409067139f391064$var$CollapsibleContentImpl, _extends$
|
|
34605
|
+
({ present }) => /* @__PURE__ */ createElement($409067139f391064$var$CollapsibleContentImpl, _extends$x({}, contentProps, {
|
|
34606
34606
|
ref: forwardedRef,
|
|
34607
34607
|
present
|
|
34608
34608
|
}))
|
|
@@ -34649,7 +34649,7 @@ const $409067139f391064$var$CollapsibleContentImpl = /* @__PURE__ */ forwardRef(
|
|
|
34649
34649
|
context.open,
|
|
34650
34650
|
present
|
|
34651
34651
|
]);
|
|
34652
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
34652
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$x({
|
|
34653
34653
|
"data-state": $409067139f391064$var$getState(context.open),
|
|
34654
34654
|
"data-disabled": context.disabled ? "" : void 0,
|
|
34655
34655
|
id: context.contentId,
|
|
@@ -34696,7 +34696,7 @@ const $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /* @__PURE__ */ forwardRef((pr
|
|
|
34696
34696
|
scope: __scopeSwitch,
|
|
34697
34697
|
checked,
|
|
34698
34698
|
disabled
|
|
34699
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
34699
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
34700
34700
|
type: "button",
|
|
34701
34701
|
role: "switch",
|
|
34702
34702
|
"aria-checked": checked,
|
|
@@ -34733,7 +34733,7 @@ const $6be4966fd9bbc698$var$THUMB_NAME = "SwitchThumb";
|
|
|
34733
34733
|
const $6be4966fd9bbc698$export$4d07bf653ea69106 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
34734
34734
|
const { __scopeSwitch, ...thumbProps } = props;
|
|
34735
34735
|
const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);
|
|
34736
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
34736
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
34737
34737
|
"data-state": $6be4966fd9bbc698$var$getState(context.checked),
|
|
34738
34738
|
"data-disabled": context.disabled ? "" : void 0
|
|
34739
34739
|
}, thumbProps, {
|
|
@@ -34762,7 +34762,7 @@ const $6be4966fd9bbc698$var$BubbleInput = (props) => {
|
|
|
34762
34762
|
checked,
|
|
34763
34763
|
bubbles
|
|
34764
34764
|
]);
|
|
34765
|
-
return /* @__PURE__ */ createElement("input", _extends$
|
|
34765
|
+
return /* @__PURE__ */ createElement("input", _extends$x({
|
|
34766
34766
|
type: "checkbox",
|
|
34767
34767
|
"aria-hidden": true,
|
|
34768
34768
|
defaultChecked: checked
|
|
@@ -35340,7 +35340,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ forwardRef((pr
|
|
|
35340
35340
|
scope: props.__scopeRovingFocusGroup
|
|
35341
35341
|
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
35342
35342
|
scope: props.__scopeRovingFocusGroup
|
|
35343
|
-
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$
|
|
35343
|
+
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$x({}, props, {
|
|
35344
35344
|
ref: forwardedRef
|
|
35345
35345
|
}))));
|
|
35346
35346
|
});
|
|
@@ -35396,7 +35396,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ forwardRef((p
|
|
|
35396
35396
|
),
|
|
35397
35397
|
[]
|
|
35398
35398
|
)
|
|
35399
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35399
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
35400
35400
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
35401
35401
|
"data-orientation": orientation
|
|
35402
35402
|
}, groupProps, {
|
|
@@ -35465,7 +35465,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ forwardRef((pro
|
|
|
35465
35465
|
id: id2,
|
|
35466
35466
|
focusable,
|
|
35467
35467
|
active
|
|
35468
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
35468
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
35469
35469
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
35470
35470
|
"data-orientation": context.orientation
|
|
35471
35471
|
}, itemProps, {
|
|
@@ -35651,7 +35651,7 @@ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props) => {
|
|
|
35651
35651
|
const $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
35652
35652
|
const { __scopeMenu, ...anchorProps } = props;
|
|
35653
35653
|
const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
|
|
35654
|
-
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
35654
|
+
return /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({}, popperScope, anchorProps, {
|
|
35655
35655
|
ref: forwardedRef
|
|
35656
35656
|
}));
|
|
35657
35657
|
});
|
|
@@ -35685,9 +35685,9 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /* @__PURE__ */ forwardRef((pr
|
|
|
35685
35685
|
present: forceMount || context.open
|
|
35686
35686
|
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$var$Collection.Slot, {
|
|
35687
35687
|
scope: props.__scopeMenu
|
|
35688
|
-
}, rootContext.modal ? /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$
|
|
35688
|
+
}, rootContext.modal ? /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$x({}, contentProps, {
|
|
35689
35689
|
ref: forwardedRef
|
|
35690
|
-
})) : /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$
|
|
35690
|
+
})) : /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$x({}, contentProps, {
|
|
35691
35691
|
ref: forwardedRef
|
|
35692
35692
|
})))));
|
|
35693
35693
|
});
|
|
@@ -35699,7 +35699,7 @@ const $6cc32821e9371a1c$var$MenuRootContentModal = /* @__PURE__ */ forwardRef((p
|
|
|
35699
35699
|
const content = ref.current;
|
|
35700
35700
|
if (content) return hideOthers(content);
|
|
35701
35701
|
}, []);
|
|
35702
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
35702
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({}, props, {
|
|
35703
35703
|
ref: composedRefs,
|
|
35704
35704
|
trapFocus: context.open,
|
|
35705
35705
|
disableOutsidePointerEvents: context.open,
|
|
@@ -35716,7 +35716,7 @@ const $6cc32821e9371a1c$var$MenuRootContentModal = /* @__PURE__ */ forwardRef((p
|
|
|
35716
35716
|
});
|
|
35717
35717
|
const $6cc32821e9371a1c$var$MenuRootContentNonModal = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
35718
35718
|
const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);
|
|
35719
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
35719
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({}, props, {
|
|
35720
35720
|
ref: forwardedRef,
|
|
35721
35721
|
trapFocus: false,
|
|
35722
35722
|
disableOutsidePointerEvents: false,
|
|
@@ -35826,7 +35826,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ forwardRef((props,
|
|
|
35826
35826
|
onFocusOutside,
|
|
35827
35827
|
onInteractOutside,
|
|
35828
35828
|
onDismiss
|
|
35829
|
-
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
35829
|
+
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$x({
|
|
35830
35830
|
asChild: true
|
|
35831
35831
|
}, rovingFocusGroupScope, {
|
|
35832
35832
|
dir: rootContext.dir,
|
|
@@ -35837,7 +35837,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ forwardRef((props,
|
|
|
35837
35837
|
onEntryFocus: (event) => {
|
|
35838
35838
|
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
35839
35839
|
}
|
|
35840
|
-
}), /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
35840
|
+
}), /* @__PURE__ */ createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
35841
35841
|
role: "menu",
|
|
35842
35842
|
"aria-orientation": "vertical",
|
|
35843
35843
|
"data-state": $6cc32821e9371a1c$var$getOpenState(context.open),
|
|
@@ -35890,7 +35890,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ forwardRef((props,
|
|
|
35890
35890
|
});
|
|
35891
35891
|
const $6cc32821e9371a1c$export$22a631d1f72787bb = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
35892
35892
|
const { __scopeMenu, ...groupProps } = props;
|
|
35893
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35893
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
35894
35894
|
role: "group"
|
|
35895
35895
|
}, groupProps, {
|
|
35896
35896
|
ref: forwardedRef
|
|
@@ -35898,7 +35898,7 @@ const $6cc32821e9371a1c$export$22a631d1f72787bb = /* @__PURE__ */ forwardRef((pr
|
|
|
35898
35898
|
});
|
|
35899
35899
|
const $6cc32821e9371a1c$export$dd37bec0e8a99143 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
35900
35900
|
const { __scopeMenu, ...labelProps } = props;
|
|
35901
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35901
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, labelProps, {
|
|
35902
35902
|
ref: forwardedRef
|
|
35903
35903
|
}));
|
|
35904
35904
|
});
|
|
@@ -35930,7 +35930,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /* @__PURE__ */ forwardRef((pr
|
|
|
35930
35930
|
else rootContext.onClose();
|
|
35931
35931
|
}
|
|
35932
35932
|
};
|
|
35933
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$
|
|
35933
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$x({}, itemProps, {
|
|
35934
35934
|
ref: composedRefs,
|
|
35935
35935
|
disabled,
|
|
35936
35936
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, handleSelect),
|
|
@@ -35974,11 +35974,11 @@ const $6cc32821e9371a1c$var$MenuItemImpl = /* @__PURE__ */ forwardRef((props, fo
|
|
|
35974
35974
|
scope: __scopeMenu,
|
|
35975
35975
|
disabled,
|
|
35976
35976
|
textValue: textValue !== null && textValue !== void 0 ? textValue : textContent
|
|
35977
|
-
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
35977
|
+
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$x({
|
|
35978
35978
|
asChild: true
|
|
35979
35979
|
}, rovingFocusGroupScope, {
|
|
35980
35980
|
focusable: !disabled
|
|
35981
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35981
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
35982
35982
|
role: "menuitem",
|
|
35983
35983
|
"data-highlighted": isFocused ? "" : void 0,
|
|
35984
35984
|
"aria-disabled": disabled || void 0,
|
|
@@ -36013,7 +36013,7 @@ const $6cc32821e9371a1c$export$f6f243521332502d = /* @__PURE__ */ forwardRef((pr
|
|
|
36013
36013
|
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
36014
36014
|
scope: props.__scopeMenu,
|
|
36015
36015
|
checked
|
|
36016
|
-
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
36016
|
+
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$x({
|
|
36017
36017
|
role: "menuitemcheckbox",
|
|
36018
36018
|
"aria-checked": $6cc32821e9371a1c$var$isIndeterminate(checked) ? "mixed" : checked
|
|
36019
36019
|
}, checkboxItemProps, {
|
|
@@ -36041,7 +36041,7 @@ const $6cc32821e9371a1c$export$ea2200c9eee416b3 = /* @__PURE__ */ forwardRef((pr
|
|
|
36041
36041
|
scope: props.__scopeMenu,
|
|
36042
36042
|
value,
|
|
36043
36043
|
onValueChange: handleValueChange
|
|
36044
|
-
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$
|
|
36044
|
+
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$x({}, groupProps, {
|
|
36045
36045
|
ref: forwardedRef
|
|
36046
36046
|
})));
|
|
36047
36047
|
});
|
|
@@ -36053,7 +36053,7 @@ const $6cc32821e9371a1c$export$69bd225e9817f6d0 = /* @__PURE__ */ forwardRef((pr
|
|
|
36053
36053
|
return /* @__PURE__ */ createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
36054
36054
|
scope: props.__scopeMenu,
|
|
36055
36055
|
checked
|
|
36056
|
-
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
36056
|
+
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$x({
|
|
36057
36057
|
role: "menuitemradio",
|
|
36058
36058
|
"aria-checked": checked
|
|
36059
36059
|
}, radioItemProps, {
|
|
@@ -36076,14 +36076,14 @@ const $6cc32821e9371a1c$export$a2593e23056970a3 = /* @__PURE__ */ forwardRef((pr
|
|
|
36076
36076
|
const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);
|
|
36077
36077
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
36078
36078
|
present: forceMount || $6cc32821e9371a1c$var$isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true
|
|
36079
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
36079
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({}, itemIndicatorProps, {
|
|
36080
36080
|
ref: forwardedRef,
|
|
36081
36081
|
"data-state": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)
|
|
36082
36082
|
})));
|
|
36083
36083
|
});
|
|
36084
36084
|
const $6cc32821e9371a1c$export$1cec7dcdd713e220 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36085
36085
|
const { __scopeMenu, ...separatorProps } = props;
|
|
36086
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
36086
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
36087
36087
|
role: "separator",
|
|
36088
36088
|
"aria-orientation": "horizontal"
|
|
36089
36089
|
}, separatorProps, {
|
|
@@ -36151,9 +36151,9 @@ const $6cc32821e9371a1c$export$5fbbb3ba7297405f = /* @__PURE__ */ forwardRef((pr
|
|
|
36151
36151
|
pointerGraceTimerRef,
|
|
36152
36152
|
onPointerGraceIntentChange
|
|
36153
36153
|
]);
|
|
36154
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, _extends$
|
|
36154
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, _extends$x({
|
|
36155
36155
|
asChild: true
|
|
36156
|
-
}, scope), /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$
|
|
36156
|
+
}, scope), /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$x({
|
|
36157
36157
|
id: subContext.triggerId,
|
|
36158
36158
|
"aria-haspopup": "menu",
|
|
36159
36159
|
"aria-expanded": context.open,
|
|
@@ -36254,7 +36254,7 @@ const $6cc32821e9371a1c$export$e7142ab31822bde6 = /* @__PURE__ */ forwardRef((pr
|
|
|
36254
36254
|
present: forceMount || context.open
|
|
36255
36255
|
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$var$Collection.Slot, {
|
|
36256
36256
|
scope: props.__scopeMenu
|
|
36257
|
-
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
36257
|
+
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({
|
|
36258
36258
|
id: subContext.contentId,
|
|
36259
36259
|
"aria-labelledby": subContext.triggerId
|
|
36260
36260
|
}, subContentProps, {
|
|
@@ -36393,7 +36393,7 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props) => {
|
|
|
36393
36393
|
]
|
|
36394
36394
|
),
|
|
36395
36395
|
modal
|
|
36396
|
-
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$
|
|
36396
|
+
}, /* @__PURE__ */ createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$x({}, menuScope, {
|
|
36397
36397
|
open,
|
|
36398
36398
|
onOpenChange: setOpen,
|
|
36399
36399
|
dir,
|
|
@@ -36405,9 +36405,9 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /* @__PURE__ */ forwardRef((pr
|
|
|
36405
36405
|
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
36406
36406
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$TRIGGER_NAME, __scopeDropdownMenu);
|
|
36407
36407
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36408
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$
|
|
36408
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$x({
|
|
36409
36409
|
asChild: true
|
|
36410
|
-
}, menuScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
36410
|
+
}, menuScope), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
36411
36411
|
type: "button",
|
|
36412
36412
|
id: context.triggerId,
|
|
36413
36413
|
"aria-haspopup": "menu",
|
|
@@ -36442,7 +36442,7 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /* @__PURE__ */ forwardRef((pr
|
|
|
36442
36442
|
const $d08ef79370b62062$export$cd369b4d4d54efc9 = (props) => {
|
|
36443
36443
|
const { __scopeDropdownMenu, ...portalProps } = props;
|
|
36444
36444
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36445
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$
|
|
36445
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$x({}, menuScope, portalProps));
|
|
36446
36446
|
};
|
|
36447
36447
|
const $d08ef79370b62062$var$CONTENT_NAME = "DropdownMenuContent";
|
|
36448
36448
|
const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
@@ -36450,7 +36450,7 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ forwardRef((pr
|
|
|
36450
36450
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$CONTENT_NAME, __scopeDropdownMenu);
|
|
36451
36451
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36452
36452
|
const hasInteractedOutsideRef = useRef(false);
|
|
36453
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$
|
|
36453
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$x({
|
|
36454
36454
|
id: context.contentId,
|
|
36455
36455
|
"aria-labelledby": context.triggerId
|
|
36456
36456
|
}, menuScope, contentProps, {
|
|
@@ -36477,49 +36477,49 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ forwardRef((pr
|
|
|
36477
36477
|
const $d08ef79370b62062$export$76e48c5b57f24495 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36478
36478
|
const { __scopeDropdownMenu, ...labelProps } = props;
|
|
36479
36479
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36480
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$
|
|
36480
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$x({}, menuScope, labelProps, {
|
|
36481
36481
|
ref: forwardedRef
|
|
36482
36482
|
}));
|
|
36483
36483
|
});
|
|
36484
36484
|
const $d08ef79370b62062$export$ed97964d1871885d = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36485
36485
|
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
36486
36486
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36487
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$
|
|
36487
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$x({}, menuScope, itemProps, {
|
|
36488
36488
|
ref: forwardedRef
|
|
36489
36489
|
}));
|
|
36490
36490
|
});
|
|
36491
36491
|
const $d08ef79370b62062$export$53a69729da201fa9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36492
36492
|
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
|
36493
36493
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36494
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$
|
|
36494
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$x({}, menuScope, checkboxItemProps, {
|
|
36495
36495
|
ref: forwardedRef
|
|
36496
36496
|
}));
|
|
36497
36497
|
});
|
|
36498
36498
|
const $d08ef79370b62062$export$3323ad73d55f587e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36499
36499
|
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
|
36500
36500
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36501
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$
|
|
36501
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$x({}, menuScope, radioGroupProps, {
|
|
36502
36502
|
ref: forwardedRef
|
|
36503
36503
|
}));
|
|
36504
36504
|
});
|
|
36505
36505
|
const $d08ef79370b62062$export$e4f69b41b1637536 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36506
36506
|
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
|
36507
36507
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36508
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$
|
|
36508
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$x({}, menuScope, radioItemProps, {
|
|
36509
36509
|
ref: forwardedRef
|
|
36510
36510
|
}));
|
|
36511
36511
|
});
|
|
36512
36512
|
const $d08ef79370b62062$export$42355ae145153fb6 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36513
36513
|
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
|
36514
36514
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36515
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$
|
|
36515
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$x({}, menuScope, itemIndicatorProps, {
|
|
36516
36516
|
ref: forwardedRef
|
|
36517
36517
|
}));
|
|
36518
36518
|
});
|
|
36519
36519
|
const $d08ef79370b62062$export$da160178fd3bc7e9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36520
36520
|
const { __scopeDropdownMenu, ...separatorProps } = props;
|
|
36521
36521
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36522
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$1ff3c3f08ae963c0, _extends$
|
|
36522
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$1ff3c3f08ae963c0, _extends$x({}, menuScope, separatorProps, {
|
|
36523
36523
|
ref: forwardedRef
|
|
36524
36524
|
}));
|
|
36525
36525
|
});
|
|
@@ -36531,7 +36531,7 @@ const $d08ef79370b62062$export$2f307d81a64f5442 = (props) => {
|
|
|
36531
36531
|
defaultProp: defaultOpen,
|
|
36532
36532
|
onChange: onOpenChange
|
|
36533
36533
|
});
|
|
36534
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$
|
|
36534
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$x({}, menuScope, {
|
|
36535
36535
|
open,
|
|
36536
36536
|
onOpenChange: setOpen
|
|
36537
36537
|
}), children);
|
|
@@ -36539,14 +36539,14 @@ const $d08ef79370b62062$export$2f307d81a64f5442 = (props) => {
|
|
|
36539
36539
|
const $d08ef79370b62062$export$21dcb7ec56f874cf = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36540
36540
|
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
|
36541
36541
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36542
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$
|
|
36542
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$x({}, menuScope, subTriggerProps, {
|
|
36543
36543
|
ref: forwardedRef
|
|
36544
36544
|
}));
|
|
36545
36545
|
});
|
|
36546
36546
|
const $d08ef79370b62062$export$f34ec8bc2482cc5f = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
36547
36547
|
const { __scopeDropdownMenu, ...subContentProps } = props;
|
|
36548
36548
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36549
|
-
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$
|
|
36549
|
+
return /* @__PURE__ */ createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$x({}, menuScope, subContentProps, {
|
|
36550
36550
|
ref: forwardedRef,
|
|
36551
36551
|
style: {
|
|
36552
36552
|
...props.style,
|
|
@@ -43894,645 +43894,742 @@ function useTableRef(table, ref) {
|
|
|
43894
43894
|
}
|
|
43895
43895
|
}, [table, ref.current]);
|
|
43896
43896
|
}
|
|
43897
|
-
/**
|
|
43898
|
-
* react-virtual
|
|
43899
|
-
*
|
|
43900
|
-
* Copyright (c) TanStack
|
|
43901
|
-
*
|
|
43902
|
-
* This source code is licensed under the MIT license found in the
|
|
43903
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43904
|
-
*
|
|
43905
|
-
* @license MIT
|
|
43906
|
-
*/
|
|
43907
|
-
function _extends$y() {
|
|
43908
|
-
_extends$y = Object.assign ? Object.assign.bind() : function(target) {
|
|
43909
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43910
|
-
var source = arguments[i2];
|
|
43911
|
-
for (var key in source) {
|
|
43912
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43913
|
-
target[key] = source[key];
|
|
43914
|
-
}
|
|
43915
|
-
}
|
|
43916
|
-
}
|
|
43917
|
-
return target;
|
|
43918
|
-
};
|
|
43919
|
-
return _extends$y.apply(this, arguments);
|
|
43920
|
-
}
|
|
43921
|
-
/**
|
|
43922
|
-
* virtual-core
|
|
43923
|
-
*
|
|
43924
|
-
* Copyright (c) TanStack
|
|
43925
|
-
*
|
|
43926
|
-
* This source code is licensed under the MIT license found in the
|
|
43927
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43928
|
-
*
|
|
43929
|
-
* @license MIT
|
|
43930
|
-
*/
|
|
43931
|
-
function _extends$x() {
|
|
43932
|
-
_extends$x = Object.assign ? Object.assign.bind() : function(target) {
|
|
43933
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43934
|
-
var source = arguments[i2];
|
|
43935
|
-
for (var key in source) {
|
|
43936
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43937
|
-
target[key] = source[key];
|
|
43938
|
-
}
|
|
43939
|
-
}
|
|
43940
|
-
}
|
|
43941
|
-
return target;
|
|
43942
|
-
};
|
|
43943
|
-
return _extends$x.apply(this, arguments);
|
|
43944
|
-
}
|
|
43945
|
-
/**
|
|
43946
|
-
* virtual-core
|
|
43947
|
-
*
|
|
43948
|
-
* Copyright (c) TanStack
|
|
43949
|
-
*
|
|
43950
|
-
* This source code is licensed under the MIT license found in the
|
|
43951
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43952
|
-
*
|
|
43953
|
-
* @license MIT
|
|
43954
|
-
*/
|
|
43955
43897
|
function memo(getDeps, fn, opts) {
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43960
|
-
|
|
43961
|
-
if (opts.key && opts.debug
|
|
43962
|
-
|
|
43963
|
-
|
|
43964
|
-
return deps[index2] !== dep;
|
|
43965
|
-
});
|
|
43898
|
+
let deps = opts.initialDeps ?? [];
|
|
43899
|
+
let result;
|
|
43900
|
+
function memoizedFunction() {
|
|
43901
|
+
var _a, _b, _c, _d;
|
|
43902
|
+
let depTime;
|
|
43903
|
+
if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();
|
|
43904
|
+
const newDeps = getDeps();
|
|
43905
|
+
const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index2) => deps[index2] !== dep);
|
|
43966
43906
|
if (!depsChanged) {
|
|
43967
43907
|
return result;
|
|
43968
43908
|
}
|
|
43969
43909
|
deps = newDeps;
|
|
43970
|
-
|
|
43971
|
-
if (opts.key && opts.debug
|
|
43972
|
-
result = fn
|
|
43973
|
-
if (opts.key && opts.debug
|
|
43974
|
-
|
|
43975
|
-
|
|
43976
|
-
|
|
43977
|
-
|
|
43910
|
+
let resultTime;
|
|
43911
|
+
if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();
|
|
43912
|
+
result = fn(...newDeps);
|
|
43913
|
+
if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {
|
|
43914
|
+
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
43915
|
+
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
43916
|
+
const resultFpsPercentage = resultEndTime / 16;
|
|
43917
|
+
const pad2 = (str, num) => {
|
|
43978
43918
|
str = String(str);
|
|
43979
43919
|
while (str.length < num) {
|
|
43980
43920
|
str = " " + str;
|
|
43981
43921
|
}
|
|
43982
43922
|
return str;
|
|
43983
43923
|
};
|
|
43984
|
-
console.info(
|
|
43924
|
+
console.info(
|
|
43925
|
+
`%c⏱ ${pad2(resultEndTime, 5)} /${pad2(depEndTime, 5)} ms`,
|
|
43926
|
+
`
|
|
43927
|
+
font-size: .6rem;
|
|
43928
|
+
font-weight: bold;
|
|
43929
|
+
color: hsl(${Math.max(
|
|
43930
|
+
0,
|
|
43931
|
+
Math.min(120 - 120 * resultFpsPercentage, 120)
|
|
43932
|
+
)}deg 100% 31%);`,
|
|
43933
|
+
opts == null ? void 0 : opts.key
|
|
43934
|
+
);
|
|
43985
43935
|
}
|
|
43986
|
-
opts == null
|
|
43936
|
+
(_d = opts == null ? void 0 : opts.onChange) == null ? void 0 : _d.call(opts, result);
|
|
43987
43937
|
return result;
|
|
43938
|
+
}
|
|
43939
|
+
memoizedFunction.updateDeps = (newDeps) => {
|
|
43940
|
+
deps = newDeps;
|
|
43988
43941
|
};
|
|
43942
|
+
return memoizedFunction;
|
|
43989
43943
|
}
|
|
43990
43944
|
function notUndefined(value, msg) {
|
|
43991
43945
|
if (value === void 0) {
|
|
43992
|
-
throw new Error(
|
|
43946
|
+
throw new Error(`Unexpected undefined${""}`);
|
|
43993
43947
|
} else {
|
|
43994
43948
|
return value;
|
|
43995
43949
|
}
|
|
43996
43950
|
}
|
|
43997
|
-
|
|
43998
|
-
|
|
43951
|
+
const approxEqual = (a2, b2) => Math.abs(a2 - b2) < 1.01;
|
|
43952
|
+
const debounce$1 = (targetWindow, fn, ms) => {
|
|
43953
|
+
let timeoutId;
|
|
43954
|
+
return function(...args) {
|
|
43955
|
+
targetWindow.clearTimeout(timeoutId);
|
|
43956
|
+
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
43957
|
+
};
|
|
43999
43958
|
};
|
|
44000
|
-
|
|
44001
|
-
|
|
44002
|
-
|
|
44003
|
-
* Copyright (c) TanStack
|
|
44004
|
-
*
|
|
44005
|
-
* This source code is licensed under the MIT license found in the
|
|
44006
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
44007
|
-
*
|
|
44008
|
-
* @license MIT
|
|
44009
|
-
*/
|
|
44010
|
-
var defaultKeyExtractor = function defaultKeyExtractor2(index2) {
|
|
44011
|
-
return index2;
|
|
43959
|
+
const getRect$1 = (element) => {
|
|
43960
|
+
const { offsetWidth, offsetHeight } = element;
|
|
43961
|
+
return { width: offsetWidth, height: offsetHeight };
|
|
44012
43962
|
};
|
|
44013
|
-
|
|
44014
|
-
|
|
44015
|
-
|
|
44016
|
-
|
|
44017
|
-
|
|
44018
|
-
|
|
43963
|
+
const defaultKeyExtractor = (index2) => index2;
|
|
43964
|
+
const defaultRangeExtractor = (range3) => {
|
|
43965
|
+
const start = Math.max(range3.startIndex - range3.overscan, 0);
|
|
43966
|
+
const end = Math.min(range3.endIndex + range3.overscan, range3.count - 1);
|
|
43967
|
+
const arr = [];
|
|
43968
|
+
for (let i2 = start; i2 <= end; i2++) {
|
|
43969
|
+
arr.push(i2);
|
|
44019
43970
|
}
|
|
44020
43971
|
return arr;
|
|
44021
43972
|
};
|
|
44022
|
-
|
|
44023
|
-
|
|
43973
|
+
const observeElementRect = (instance, cb2) => {
|
|
43974
|
+
const element = instance.scrollElement;
|
|
44024
43975
|
if (!element) {
|
|
44025
43976
|
return;
|
|
44026
43977
|
}
|
|
44027
|
-
|
|
44028
|
-
|
|
44029
|
-
|
|
44030
|
-
|
|
44031
|
-
|
|
44032
|
-
}
|
|
43978
|
+
const targetWindow = instance.targetWindow;
|
|
43979
|
+
if (!targetWindow) {
|
|
43980
|
+
return;
|
|
43981
|
+
}
|
|
43982
|
+
const handler = (rect) => {
|
|
43983
|
+
const { width, height } = rect;
|
|
43984
|
+
cb2({ width: Math.round(width), height: Math.round(height) });
|
|
44033
43985
|
};
|
|
44034
|
-
handler(element
|
|
44035
|
-
|
|
44036
|
-
|
|
44037
|
-
|
|
44038
|
-
|
|
44039
|
-
|
|
44040
|
-
|
|
44041
|
-
|
|
44042
|
-
|
|
44043
|
-
|
|
44044
|
-
|
|
43986
|
+
handler(getRect$1(element));
|
|
43987
|
+
if (!targetWindow.ResizeObserver) {
|
|
43988
|
+
return () => {
|
|
43989
|
+
};
|
|
43990
|
+
}
|
|
43991
|
+
const observer = new targetWindow.ResizeObserver((entries) => {
|
|
43992
|
+
const run = () => {
|
|
43993
|
+
const entry = entries[0];
|
|
43994
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
43995
|
+
const box = entry.borderBoxSize[0];
|
|
43996
|
+
if (box) {
|
|
43997
|
+
handler({ width: box.inlineSize, height: box.blockSize });
|
|
43998
|
+
return;
|
|
43999
|
+
}
|
|
44045
44000
|
}
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
observer.observe(element, {
|
|
44050
|
-
box: "border-box"
|
|
44001
|
+
handler(getRect$1(element));
|
|
44002
|
+
};
|
|
44003
|
+
instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
44051
44004
|
});
|
|
44052
|
-
|
|
44005
|
+
observer.observe(element, { box: "border-box" });
|
|
44006
|
+
return () => {
|
|
44053
44007
|
observer.unobserve(element);
|
|
44054
44008
|
};
|
|
44055
44009
|
};
|
|
44056
|
-
|
|
44057
|
-
|
|
44010
|
+
const addEventListenerOptions = {
|
|
44011
|
+
passive: true
|
|
44012
|
+
};
|
|
44013
|
+
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
44014
|
+
const observeElementOffset = (instance, cb2) => {
|
|
44015
|
+
const element = instance.scrollElement;
|
|
44058
44016
|
if (!element) {
|
|
44059
44017
|
return;
|
|
44060
44018
|
}
|
|
44061
|
-
|
|
44062
|
-
|
|
44063
|
-
|
|
44064
|
-
|
|
44065
|
-
|
|
44066
|
-
|
|
44067
|
-
|
|
44068
|
-
|
|
44019
|
+
const targetWindow = instance.targetWindow;
|
|
44020
|
+
if (!targetWindow) {
|
|
44021
|
+
return;
|
|
44022
|
+
}
|
|
44023
|
+
let offset2 = 0;
|
|
44024
|
+
const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce$1(
|
|
44025
|
+
targetWindow,
|
|
44026
|
+
() => {
|
|
44027
|
+
cb2(offset2, false);
|
|
44028
|
+
},
|
|
44029
|
+
instance.options.isScrollingResetDelay
|
|
44030
|
+
);
|
|
44031
|
+
const createHandler = (isScrolling) => () => {
|
|
44032
|
+
const { horizontal, isRtl } = instance.options;
|
|
44033
|
+
offset2 = horizontal ? element["scrollLeft"] * (isRtl && -1 || 1) : element["scrollTop"];
|
|
44034
|
+
fallback();
|
|
44035
|
+
cb2(offset2, isScrolling);
|
|
44036
|
+
};
|
|
44037
|
+
const handler = createHandler(true);
|
|
44038
|
+
const endHandler = createHandler(false);
|
|
44039
|
+
endHandler();
|
|
44040
|
+
element.addEventListener("scroll", handler, addEventListenerOptions);
|
|
44041
|
+
const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
|
|
44042
|
+
if (registerScrollendEvent) {
|
|
44043
|
+
element.addEventListener("scrollend", endHandler, addEventListenerOptions);
|
|
44044
|
+
}
|
|
44045
|
+
return () => {
|
|
44069
44046
|
element.removeEventListener("scroll", handler);
|
|
44047
|
+
if (registerScrollendEvent) {
|
|
44048
|
+
element.removeEventListener("scrollend", endHandler);
|
|
44049
|
+
}
|
|
44070
44050
|
};
|
|
44071
44051
|
};
|
|
44072
|
-
|
|
44073
|
-
if (entry
|
|
44074
|
-
|
|
44052
|
+
const measureElement = (element, entry, instance) => {
|
|
44053
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
44054
|
+
const box = entry.borderBoxSize[0];
|
|
44075
44055
|
if (box) {
|
|
44076
|
-
|
|
44056
|
+
const size2 = Math.round(
|
|
44057
|
+
box[instance.options.horizontal ? "inlineSize" : "blockSize"]
|
|
44058
|
+
);
|
|
44077
44059
|
return size2;
|
|
44078
44060
|
}
|
|
44079
44061
|
}
|
|
44080
|
-
return
|
|
44081
|
-
};
|
|
44082
|
-
|
|
44083
|
-
|
|
44084
|
-
|
|
44085
|
-
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
|
|
44092
|
-
|
|
44093
|
-
|
|
44094
|
-
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
|
|
44098
|
-
|
|
44099
|
-
|
|
44100
|
-
|
|
44101
|
-
|
|
44102
|
-
|
|
44103
|
-
|
|
44104
|
-
|
|
44105
|
-
|
|
44106
|
-
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44062
|
+
return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
44063
|
+
};
|
|
44064
|
+
const elementScroll = (offset2, {
|
|
44065
|
+
adjustments = 0,
|
|
44066
|
+
behavior
|
|
44067
|
+
}, instance) => {
|
|
44068
|
+
var _a, _b;
|
|
44069
|
+
const toOffset = offset2 + adjustments;
|
|
44070
|
+
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {
|
|
44071
|
+
[instance.options.horizontal ? "left" : "top"]: toOffset,
|
|
44072
|
+
behavior
|
|
44073
|
+
});
|
|
44074
|
+
};
|
|
44075
|
+
class Virtualizer {
|
|
44076
|
+
constructor(opts) {
|
|
44077
|
+
this.unsubs = [];
|
|
44078
|
+
this.scrollElement = null;
|
|
44079
|
+
this.targetWindow = null;
|
|
44080
|
+
this.isScrolling = false;
|
|
44081
|
+
this.measurementsCache = [];
|
|
44082
|
+
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44083
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44084
|
+
this.scrollRect = null;
|
|
44085
|
+
this.scrollOffset = null;
|
|
44086
|
+
this.scrollDirection = null;
|
|
44087
|
+
this.scrollAdjustments = 0;
|
|
44088
|
+
this.elementsCache = /* @__PURE__ */ new Map();
|
|
44089
|
+
this.observer = /* @__PURE__ */ (() => {
|
|
44090
|
+
let _ro = null;
|
|
44091
|
+
const get2 = () => {
|
|
44092
|
+
if (_ro) {
|
|
44093
|
+
return _ro;
|
|
44094
|
+
}
|
|
44095
|
+
if (!this.targetWindow || !this.targetWindow.ResizeObserver) {
|
|
44096
|
+
return null;
|
|
44097
|
+
}
|
|
44098
|
+
return _ro = new this.targetWindow.ResizeObserver((entries) => {
|
|
44099
|
+
entries.forEach((entry) => {
|
|
44100
|
+
const run = () => {
|
|
44101
|
+
this._measureElement(entry.target, entry);
|
|
44102
|
+
};
|
|
44103
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
44110
44104
|
});
|
|
44111
44105
|
});
|
|
44112
|
-
}
|
|
44113
|
-
|
|
44114
|
-
|
|
44106
|
+
};
|
|
44107
|
+
return {
|
|
44108
|
+
disconnect: () => {
|
|
44109
|
+
var _a;
|
|
44110
|
+
(_a = get2()) == null ? void 0 : _a.disconnect();
|
|
44111
|
+
_ro = null;
|
|
44112
|
+
},
|
|
44113
|
+
observe: (target) => {
|
|
44114
|
+
var _a;
|
|
44115
|
+
return (_a = get2()) == null ? void 0 : _a.observe(target, { box: "border-box" });
|
|
44116
|
+
},
|
|
44117
|
+
unobserve: (target) => {
|
|
44118
|
+
var _a;
|
|
44119
|
+
return (_a = get2()) == null ? void 0 : _a.unobserve(target);
|
|
44120
|
+
}
|
|
44121
|
+
};
|
|
44122
|
+
})();
|
|
44123
|
+
this.range = null;
|
|
44124
|
+
this.setOptions = (opts2) => {
|
|
44125
|
+
Object.entries(opts2).forEach(([key, value]) => {
|
|
44126
|
+
if (typeof value === "undefined") delete opts2[key];
|
|
44127
|
+
});
|
|
44128
|
+
this.options = {
|
|
44129
|
+
debug: false,
|
|
44130
|
+
initialOffset: 0,
|
|
44131
|
+
overscan: 1,
|
|
44132
|
+
paddingStart: 0,
|
|
44133
|
+
paddingEnd: 0,
|
|
44134
|
+
scrollPaddingStart: 0,
|
|
44135
|
+
scrollPaddingEnd: 0,
|
|
44136
|
+
horizontal: false,
|
|
44137
|
+
getItemKey: defaultKeyExtractor,
|
|
44138
|
+
rangeExtractor: defaultRangeExtractor,
|
|
44139
|
+
onChange: () => {
|
|
44140
|
+
},
|
|
44141
|
+
measureElement,
|
|
44142
|
+
initialRect: { width: 0, height: 0 },
|
|
44143
|
+
scrollMargin: 0,
|
|
44144
|
+
gap: 0,
|
|
44145
|
+
indexAttribute: "data-index",
|
|
44146
|
+
initialMeasurementsCache: [],
|
|
44147
|
+
lanes: 1,
|
|
44148
|
+
isScrollingResetDelay: 150,
|
|
44149
|
+
enabled: true,
|
|
44150
|
+
isRtl: false,
|
|
44151
|
+
useScrollendEvent: false,
|
|
44152
|
+
useAnimationFrameWithResizeObserver: false,
|
|
44153
|
+
...opts2
|
|
44154
|
+
};
|
|
44115
44155
|
};
|
|
44116
|
-
|
|
44117
|
-
|
|
44118
|
-
|
|
44119
|
-
|
|
44156
|
+
this.notify = (sync2) => {
|
|
44157
|
+
var _a, _b;
|
|
44158
|
+
(_b = (_a = this.options).onChange) == null ? void 0 : _b.call(_a, this, sync2);
|
|
44159
|
+
};
|
|
44160
|
+
this.maybeNotify = memo(
|
|
44161
|
+
() => {
|
|
44162
|
+
this.calculateRange();
|
|
44163
|
+
return [
|
|
44164
|
+
this.isScrolling,
|
|
44165
|
+
this.range ? this.range.startIndex : null,
|
|
44166
|
+
this.range ? this.range.endIndex : null
|
|
44167
|
+
];
|
|
44120
44168
|
},
|
|
44121
|
-
|
|
44122
|
-
|
|
44123
|
-
return (_get2 = get2()) == null ? void 0 : _get2.observe(target, {
|
|
44124
|
-
box: "border-box"
|
|
44125
|
-
});
|
|
44169
|
+
(isScrolling) => {
|
|
44170
|
+
this.notify(isScrolling);
|
|
44126
44171
|
},
|
|
44127
|
-
|
|
44128
|
-
|
|
44129
|
-
|
|
44172
|
+
{
|
|
44173
|
+
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
44174
|
+
debug: () => this.options.debug,
|
|
44175
|
+
initialDeps: [
|
|
44176
|
+
this.isScrolling,
|
|
44177
|
+
this.range ? this.range.startIndex : null,
|
|
44178
|
+
this.range ? this.range.endIndex : null
|
|
44179
|
+
]
|
|
44130
44180
|
}
|
|
44181
|
+
);
|
|
44182
|
+
this.cleanup = () => {
|
|
44183
|
+
this.unsubs.filter(Boolean).forEach((d2) => d2());
|
|
44184
|
+
this.unsubs = [];
|
|
44185
|
+
this.observer.disconnect();
|
|
44186
|
+
this.scrollElement = null;
|
|
44187
|
+
this.targetWindow = null;
|
|
44188
|
+
};
|
|
44189
|
+
this._didMount = () => {
|
|
44190
|
+
return () => {
|
|
44191
|
+
this.cleanup();
|
|
44192
|
+
};
|
|
44131
44193
|
};
|
|
44132
|
-
|
|
44133
|
-
|
|
44134
|
-
|
|
44135
|
-
|
|
44136
|
-
|
|
44137
|
-
|
|
44138
|
-
|
|
44139
|
-
|
|
44140
|
-
|
|
44141
|
-
|
|
44142
|
-
|
|
44143
|
-
|
|
44144
|
-
|
|
44145
|
-
|
|
44146
|
-
|
|
44147
|
-
|
|
44148
|
-
|
|
44149
|
-
|
|
44150
|
-
|
|
44194
|
+
this._willUpdate = () => {
|
|
44195
|
+
var _a;
|
|
44196
|
+
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
|
|
44197
|
+
if (this.scrollElement !== scrollElement) {
|
|
44198
|
+
this.cleanup();
|
|
44199
|
+
if (!scrollElement) {
|
|
44200
|
+
this.maybeNotify();
|
|
44201
|
+
return;
|
|
44202
|
+
}
|
|
44203
|
+
this.scrollElement = scrollElement;
|
|
44204
|
+
if (this.scrollElement && "ownerDocument" in this.scrollElement) {
|
|
44205
|
+
this.targetWindow = this.scrollElement.ownerDocument.defaultView;
|
|
44206
|
+
} else {
|
|
44207
|
+
this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
|
|
44208
|
+
}
|
|
44209
|
+
this.elementsCache.forEach((cached) => {
|
|
44210
|
+
this.observer.observe(cached);
|
|
44211
|
+
});
|
|
44212
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
44213
|
+
adjustments: void 0,
|
|
44214
|
+
behavior: void 0
|
|
44215
|
+
});
|
|
44216
|
+
this.unsubs.push(
|
|
44217
|
+
this.options.observeElementRect(this, (rect) => {
|
|
44218
|
+
this.scrollRect = rect;
|
|
44219
|
+
this.maybeNotify();
|
|
44220
|
+
})
|
|
44221
|
+
);
|
|
44222
|
+
this.unsubs.push(
|
|
44223
|
+
this.options.observeElementOffset(this, (offset2, isScrolling) => {
|
|
44224
|
+
this.scrollAdjustments = 0;
|
|
44225
|
+
this.scrollDirection = isScrolling ? this.getScrollOffset() < offset2 ? "forward" : "backward" : null;
|
|
44226
|
+
this.scrollOffset = offset2;
|
|
44227
|
+
this.isScrolling = isScrolling;
|
|
44228
|
+
this.maybeNotify();
|
|
44229
|
+
})
|
|
44230
|
+
);
|
|
44231
|
+
}
|
|
44232
|
+
};
|
|
44233
|
+
this.getSize = () => {
|
|
44234
|
+
if (!this.options.enabled) {
|
|
44235
|
+
this.scrollRect = null;
|
|
44236
|
+
return 0;
|
|
44237
|
+
}
|
|
44238
|
+
this.scrollRect = this.scrollRect ?? this.options.initialRect;
|
|
44239
|
+
return this.scrollRect[this.options.horizontal ? "width" : "height"];
|
|
44240
|
+
};
|
|
44241
|
+
this.getScrollOffset = () => {
|
|
44242
|
+
if (!this.options.enabled) {
|
|
44243
|
+
this.scrollOffset = null;
|
|
44244
|
+
return 0;
|
|
44245
|
+
}
|
|
44246
|
+
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
|
|
44247
|
+
return this.scrollOffset;
|
|
44248
|
+
};
|
|
44249
|
+
this.getFurthestMeasurement = (measurements, index2) => {
|
|
44250
|
+
const furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
44251
|
+
const furthestMeasurements = /* @__PURE__ */ new Map();
|
|
44252
|
+
for (let m2 = index2 - 1; m2 >= 0; m2--) {
|
|
44253
|
+
const measurement = measurements[m2];
|
|
44254
|
+
if (furthestMeasurementsFound.has(measurement.lane)) {
|
|
44255
|
+
continue;
|
|
44256
|
+
}
|
|
44257
|
+
const previousFurthestMeasurement = furthestMeasurements.get(
|
|
44258
|
+
measurement.lane
|
|
44259
|
+
);
|
|
44260
|
+
if (previousFurthestMeasurement == null || measurement.end > previousFurthestMeasurement.end) {
|
|
44261
|
+
furthestMeasurements.set(measurement.lane, measurement);
|
|
44262
|
+
} else if (measurement.end < previousFurthestMeasurement.end) {
|
|
44263
|
+
furthestMeasurementsFound.set(measurement.lane, true);
|
|
44264
|
+
}
|
|
44265
|
+
if (furthestMeasurementsFound.size === this.options.lanes) {
|
|
44266
|
+
break;
|
|
44267
|
+
}
|
|
44268
|
+
}
|
|
44269
|
+
return furthestMeasurements.size === this.options.lanes ? Array.from(furthestMeasurements.values()).sort((a2, b2) => {
|
|
44270
|
+
if (a2.end === b2.end) {
|
|
44271
|
+
return a2.index - b2.index;
|
|
44272
|
+
}
|
|
44273
|
+
return a2.end - b2.end;
|
|
44274
|
+
})[0] : void 0;
|
|
44275
|
+
};
|
|
44276
|
+
this.getMeasurementOptions = memo(
|
|
44277
|
+
() => [
|
|
44278
|
+
this.options.count,
|
|
44279
|
+
this.options.paddingStart,
|
|
44280
|
+
this.options.scrollMargin,
|
|
44281
|
+
this.options.getItemKey,
|
|
44282
|
+
this.options.enabled
|
|
44283
|
+
],
|
|
44284
|
+
(count2, paddingStart, scrollMargin, getItemKey, enabled) => {
|
|
44285
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44286
|
+
return {
|
|
44287
|
+
count: count2,
|
|
44288
|
+
paddingStart,
|
|
44289
|
+
scrollMargin,
|
|
44290
|
+
getItemKey,
|
|
44291
|
+
enabled
|
|
44292
|
+
};
|
|
44151
44293
|
},
|
|
44152
|
-
|
|
44153
|
-
|
|
44154
|
-
|
|
44155
|
-
|
|
44294
|
+
{
|
|
44295
|
+
key: false
|
|
44296
|
+
}
|
|
44297
|
+
);
|
|
44298
|
+
this.getMeasurements = memo(
|
|
44299
|
+
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
44300
|
+
({ count: count2, paddingStart, scrollMargin, getItemKey, enabled }, itemSizeCache) => {
|
|
44301
|
+
if (!enabled) {
|
|
44302
|
+
this.measurementsCache = [];
|
|
44303
|
+
this.itemSizeCache.clear();
|
|
44304
|
+
return [];
|
|
44305
|
+
}
|
|
44306
|
+
if (this.measurementsCache.length === 0) {
|
|
44307
|
+
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
44308
|
+
this.measurementsCache.forEach((item) => {
|
|
44309
|
+
this.itemSizeCache.set(item.key, item.size);
|
|
44310
|
+
});
|
|
44311
|
+
}
|
|
44312
|
+
const min2 = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
44313
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44314
|
+
const measurements = this.measurementsCache.slice(0, min2);
|
|
44315
|
+
for (let i2 = min2; i2 < count2; i2++) {
|
|
44316
|
+
const key = getItemKey(i2);
|
|
44317
|
+
const furthestMeasurement = this.options.lanes === 1 ? measurements[i2 - 1] : this.getFurthestMeasurement(measurements, i2);
|
|
44318
|
+
const start = furthestMeasurement ? furthestMeasurement.end + this.options.gap : paddingStart + scrollMargin;
|
|
44319
|
+
const measuredSize = itemSizeCache.get(key);
|
|
44320
|
+
const size2 = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i2);
|
|
44321
|
+
const end = start + size2;
|
|
44322
|
+
const lane = furthestMeasurement ? furthestMeasurement.lane : i2 % this.options.lanes;
|
|
44323
|
+
measurements[i2] = {
|
|
44324
|
+
index: i2,
|
|
44325
|
+
start,
|
|
44326
|
+
size: size2,
|
|
44327
|
+
end,
|
|
44328
|
+
key,
|
|
44329
|
+
lane
|
|
44330
|
+
};
|
|
44331
|
+
}
|
|
44332
|
+
this.measurementsCache = measurements;
|
|
44333
|
+
return measurements;
|
|
44156
44334
|
},
|
|
44157
|
-
|
|
44158
|
-
|
|
44159
|
-
|
|
44160
|
-
|
|
44161
|
-
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
|
|
44165
|
-
|
|
44166
|
-
|
|
44167
|
-
|
|
44168
|
-
|
|
44169
|
-
|
|
44170
|
-
|
|
44171
|
-
|
|
44172
|
-
|
|
44173
|
-
|
|
44174
|
-
|
|
44175
|
-
|
|
44176
|
-
|
|
44177
|
-
|
|
44178
|
-
|
|
44179
|
-
|
|
44180
|
-
|
|
44181
|
-
|
|
44182
|
-
|
|
44183
|
-
|
|
44184
|
-
|
|
44185
|
-
|
|
44186
|
-
|
|
44187
|
-
|
|
44188
|
-
|
|
44189
|
-
|
|
44190
|
-
|
|
44335
|
+
{
|
|
44336
|
+
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
44337
|
+
debug: () => this.options.debug
|
|
44338
|
+
}
|
|
44339
|
+
);
|
|
44340
|
+
this.calculateRange = memo(
|
|
44341
|
+
() => [
|
|
44342
|
+
this.getMeasurements(),
|
|
44343
|
+
this.getSize(),
|
|
44344
|
+
this.getScrollOffset(),
|
|
44345
|
+
this.options.lanes
|
|
44346
|
+
],
|
|
44347
|
+
(measurements, outerSize, scrollOffset, lanes) => {
|
|
44348
|
+
return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
44349
|
+
measurements,
|
|
44350
|
+
outerSize,
|
|
44351
|
+
scrollOffset,
|
|
44352
|
+
lanes
|
|
44353
|
+
}) : null;
|
|
44354
|
+
},
|
|
44355
|
+
{
|
|
44356
|
+
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
44357
|
+
debug: () => this.options.debug
|
|
44358
|
+
}
|
|
44359
|
+
);
|
|
44360
|
+
this.getVirtualIndexes = memo(
|
|
44361
|
+
() => {
|
|
44362
|
+
let startIndex = null;
|
|
44363
|
+
let endIndex = null;
|
|
44364
|
+
const range3 = this.calculateRange();
|
|
44365
|
+
if (range3) {
|
|
44366
|
+
startIndex = range3.startIndex;
|
|
44367
|
+
endIndex = range3.endIndex;
|
|
44368
|
+
}
|
|
44369
|
+
this.maybeNotify.updateDeps([this.isScrolling, startIndex, endIndex]);
|
|
44370
|
+
return [
|
|
44371
|
+
this.options.rangeExtractor,
|
|
44372
|
+
this.options.overscan,
|
|
44373
|
+
this.options.count,
|
|
44374
|
+
startIndex,
|
|
44375
|
+
endIndex
|
|
44376
|
+
];
|
|
44377
|
+
},
|
|
44378
|
+
(rangeExtractor, overscan, count2, startIndex, endIndex) => {
|
|
44379
|
+
return startIndex === null || endIndex === null ? [] : rangeExtractor({
|
|
44380
|
+
startIndex,
|
|
44381
|
+
endIndex,
|
|
44382
|
+
overscan,
|
|
44383
|
+
count: count2
|
|
44384
|
+
});
|
|
44385
|
+
},
|
|
44386
|
+
{
|
|
44387
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
44388
|
+
debug: () => this.options.debug
|
|
44389
|
+
}
|
|
44390
|
+
);
|
|
44391
|
+
this.indexFromElement = (node) => {
|
|
44392
|
+
const attributeName = this.options.indexAttribute;
|
|
44393
|
+
const indexStr = node.getAttribute(attributeName);
|
|
44394
|
+
if (!indexStr) {
|
|
44395
|
+
console.warn(
|
|
44396
|
+
`Missing attribute name '${attributeName}={index}' on measured element.`
|
|
44397
|
+
);
|
|
44398
|
+
return -1;
|
|
44399
|
+
}
|
|
44400
|
+
return parseInt(indexStr, 10);
|
|
44191
44401
|
};
|
|
44192
|
-
|
|
44193
|
-
|
|
44194
|
-
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
|
|
44198
|
-
|
|
44199
|
-
|
|
44200
|
-
|
|
44201
|
-
|
|
44202
|
-
|
|
44203
|
-
_this.scrollRect = rect;
|
|
44204
|
-
_this.maybeNotify();
|
|
44205
|
-
}));
|
|
44206
|
-
_this.unsubs.push(_this.options.observeElementOffset(_this, function(offset2) {
|
|
44207
|
-
_this.scrollAdjustments = 0;
|
|
44208
|
-
if (_this.scrollOffset === offset2) {
|
|
44209
|
-
return;
|
|
44402
|
+
this._measureElement = (node, entry) => {
|
|
44403
|
+
const index2 = this.indexFromElement(node);
|
|
44404
|
+
const item = this.measurementsCache[index2];
|
|
44405
|
+
if (!item) {
|
|
44406
|
+
return;
|
|
44407
|
+
}
|
|
44408
|
+
const key = item.key;
|
|
44409
|
+
const prevNode = this.elementsCache.get(key);
|
|
44410
|
+
if (prevNode !== node) {
|
|
44411
|
+
if (prevNode) {
|
|
44412
|
+
this.observer.unobserve(prevNode);
|
|
44210
44413
|
}
|
|
44211
|
-
|
|
44212
|
-
|
|
44213
|
-
|
|
44214
|
-
|
|
44215
|
-
|
|
44216
|
-
|
|
44217
|
-
_this.scrollOffset = offset2;
|
|
44218
|
-
_this.maybeNotify();
|
|
44219
|
-
_this.isScrollingTimeoutId = setTimeout(function() {
|
|
44220
|
-
_this.isScrollingTimeoutId = null;
|
|
44221
|
-
_this.isScrolling = false;
|
|
44222
|
-
_this.scrollDirection = null;
|
|
44223
|
-
_this.maybeNotify();
|
|
44224
|
-
}, _this.options.scrollingDelay);
|
|
44225
|
-
}));
|
|
44226
|
-
}
|
|
44227
|
-
};
|
|
44228
|
-
this.getSize = function() {
|
|
44229
|
-
return _this.scrollRect[_this.options.horizontal ? "width" : "height"];
|
|
44230
|
-
};
|
|
44231
|
-
this.memoOptions = memo(function() {
|
|
44232
|
-
return [_this.options.count, _this.options.paddingStart, _this.options.scrollMargin, _this.options.getItemKey];
|
|
44233
|
-
}, function(count2, paddingStart, scrollMargin, getItemKey) {
|
|
44234
|
-
_this.pendingMeasuredCacheIndexes = [];
|
|
44235
|
-
return {
|
|
44236
|
-
count: count2,
|
|
44237
|
-
paddingStart,
|
|
44238
|
-
scrollMargin,
|
|
44239
|
-
getItemKey
|
|
44414
|
+
this.observer.observe(node);
|
|
44415
|
+
this.elementsCache.set(key, node);
|
|
44416
|
+
}
|
|
44417
|
+
if (node.isConnected) {
|
|
44418
|
+
this.resizeItem(index2, this.options.measureElement(node, entry, this));
|
|
44419
|
+
}
|
|
44240
44420
|
};
|
|
44241
|
-
|
|
44242
|
-
|
|
44243
|
-
|
|
44244
|
-
|
|
44245
|
-
var furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
44246
|
-
var furthestMeasurements = /* @__PURE__ */ new Map();
|
|
44247
|
-
for (var m2 = index2 - 1; m2 >= 0; m2--) {
|
|
44248
|
-
var measurement = measurements[m2];
|
|
44249
|
-
if (furthestMeasurementsFound.has(measurement.lane)) {
|
|
44250
|
-
continue;
|
|
44421
|
+
this.resizeItem = (index2, size2) => {
|
|
44422
|
+
const item = this.measurementsCache[index2];
|
|
44423
|
+
if (!item) {
|
|
44424
|
+
return;
|
|
44251
44425
|
}
|
|
44252
|
-
|
|
44253
|
-
|
|
44254
|
-
|
|
44255
|
-
|
|
44256
|
-
|
|
44426
|
+
const itemSize = this.itemSizeCache.get(item.key) ?? item.size;
|
|
44427
|
+
const delta = size2 - itemSize;
|
|
44428
|
+
if (delta !== 0) {
|
|
44429
|
+
if (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(item, delta, this) : item.start < this.getScrollOffset() + this.scrollAdjustments) {
|
|
44430
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug) {
|
|
44431
|
+
console.info("correction", delta);
|
|
44432
|
+
}
|
|
44433
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
44434
|
+
adjustments: this.scrollAdjustments += delta,
|
|
44435
|
+
behavior: void 0
|
|
44436
|
+
});
|
|
44437
|
+
}
|
|
44438
|
+
this.pendingMeasuredCacheIndexes.push(item.index);
|
|
44439
|
+
this.itemSizeCache = new Map(this.itemSizeCache.set(item.key, size2));
|
|
44440
|
+
this.notify(false);
|
|
44257
44441
|
}
|
|
44258
|
-
|
|
44259
|
-
|
|
44442
|
+
};
|
|
44443
|
+
this.measureElement = (node) => {
|
|
44444
|
+
if (!node) {
|
|
44445
|
+
this.elementsCache.forEach((cached, key) => {
|
|
44446
|
+
if (!cached.isConnected) {
|
|
44447
|
+
this.observer.unobserve(cached);
|
|
44448
|
+
this.elementsCache.delete(key);
|
|
44449
|
+
}
|
|
44450
|
+
});
|
|
44451
|
+
return;
|
|
44260
44452
|
}
|
|
44261
|
-
|
|
44262
|
-
|
|
44263
|
-
|
|
44264
|
-
|
|
44265
|
-
|
|
44266
|
-
|
|
44267
|
-
|
|
44268
|
-
|
|
44269
|
-
|
|
44270
|
-
|
|
44271
|
-
_this.pendingMeasuredCacheIndexes = [];
|
|
44272
|
-
var measurements = _this.measurementsCache.slice(0, min2);
|
|
44273
|
-
for (var _i2 = min2; _i2 < count2; _i2++) {
|
|
44274
|
-
var key = getItemKey(_i2);
|
|
44275
|
-
var furthestMeasurement = _this.options.lanes === 1 ? measurements[_i2 - 1] : _this.getFurthestMeasurement(measurements, _i2);
|
|
44276
|
-
var start = furthestMeasurement ? furthestMeasurement.end : paddingStart + scrollMargin;
|
|
44277
|
-
var measuredSize = itemSizeCache.get(key);
|
|
44278
|
-
var size2 = typeof measuredSize === "number" ? measuredSize : _this.options.estimateSize(_i2);
|
|
44279
|
-
var end = start + size2;
|
|
44280
|
-
var lane = furthestMeasurement ? furthestMeasurement.lane : _i2 % _this.options.lanes;
|
|
44281
|
-
measurements[_i2] = {
|
|
44282
|
-
index: _i2,
|
|
44283
|
-
start,
|
|
44284
|
-
size: size2,
|
|
44285
|
-
end,
|
|
44286
|
-
key,
|
|
44287
|
-
lane
|
|
44288
|
-
};
|
|
44289
|
-
}
|
|
44290
|
-
_this.measurementsCache = measurements;
|
|
44291
|
-
return measurements;
|
|
44292
|
-
}, {
|
|
44293
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
44294
|
-
debug: function debug2() {
|
|
44295
|
-
return _this.options.debug;
|
|
44296
|
-
}
|
|
44297
|
-
});
|
|
44298
|
-
this.calculateRange = memo(function() {
|
|
44299
|
-
return [_this.getMeasurements(), _this.getSize(), _this.scrollOffset];
|
|
44300
|
-
}, function(measurements, outerSize, scrollOffset) {
|
|
44301
|
-
return _this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
44302
|
-
measurements,
|
|
44303
|
-
outerSize,
|
|
44304
|
-
scrollOffset
|
|
44305
|
-
}) : null;
|
|
44306
|
-
}, {
|
|
44307
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
44308
|
-
debug: function debug2() {
|
|
44309
|
-
return _this.options.debug;
|
|
44310
|
-
}
|
|
44311
|
-
});
|
|
44312
|
-
this.getIndexes = memo(function() {
|
|
44313
|
-
return [_this.options.rangeExtractor, _this.calculateRange(), _this.options.overscan, _this.options.count];
|
|
44314
|
-
}, function(rangeExtractor, range3, overscan, count2) {
|
|
44315
|
-
return range3 === null ? [] : rangeExtractor(_extends$x({}, range3, {
|
|
44316
|
-
overscan,
|
|
44317
|
-
count: count2
|
|
44318
|
-
}));
|
|
44319
|
-
}, {
|
|
44320
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
44321
|
-
debug: function debug2() {
|
|
44322
|
-
return _this.options.debug;
|
|
44323
|
-
}
|
|
44324
|
-
});
|
|
44325
|
-
this.indexFromElement = function(node) {
|
|
44326
|
-
var attributeName = _this.options.indexAttribute;
|
|
44327
|
-
var indexStr = node.getAttribute(attributeName);
|
|
44328
|
-
if (!indexStr) {
|
|
44329
|
-
console.warn("Missing attribute name '" + attributeName + "={index}' on measured element.");
|
|
44330
|
-
return -1;
|
|
44331
|
-
}
|
|
44332
|
-
return parseInt(indexStr, 10);
|
|
44333
|
-
};
|
|
44334
|
-
this._measureElement = function(node, entry) {
|
|
44335
|
-
var item = _this.measurementsCache[_this.indexFromElement(node)];
|
|
44336
|
-
if (!item || !node.isConnected) {
|
|
44337
|
-
_this.measureElementCache.forEach(function(cached, key) {
|
|
44338
|
-
if (cached === node) {
|
|
44339
|
-
_this.observer.unobserve(node);
|
|
44340
|
-
_this.measureElementCache["delete"](key);
|
|
44453
|
+
this._measureElement(node, void 0);
|
|
44454
|
+
};
|
|
44455
|
+
this.getVirtualItems = memo(
|
|
44456
|
+
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
44457
|
+
(indexes, measurements) => {
|
|
44458
|
+
const virtualItems = [];
|
|
44459
|
+
for (let k2 = 0, len = indexes.length; k2 < len; k2++) {
|
|
44460
|
+
const i2 = indexes[k2];
|
|
44461
|
+
const measurement = measurements[i2];
|
|
44462
|
+
virtualItems.push(measurement);
|
|
44341
44463
|
}
|
|
44342
|
-
|
|
44343
|
-
|
|
44344
|
-
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
if (prevNode) {
|
|
44348
|
-
_this.observer.unobserve(prevNode);
|
|
44464
|
+
return virtualItems;
|
|
44465
|
+
},
|
|
44466
|
+
{
|
|
44467
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
44468
|
+
debug: () => this.options.debug
|
|
44349
44469
|
}
|
|
44350
|
-
|
|
44351
|
-
|
|
44352
|
-
|
|
44353
|
-
|
|
44354
|
-
|
|
44355
|
-
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44470
|
+
);
|
|
44471
|
+
this.getVirtualItemForOffset = (offset2) => {
|
|
44472
|
+
const measurements = this.getMeasurements();
|
|
44473
|
+
if (measurements.length === 0) {
|
|
44474
|
+
return void 0;
|
|
44475
|
+
}
|
|
44476
|
+
return notUndefined(
|
|
44477
|
+
measurements[findNearestBinarySearch(
|
|
44478
|
+
0,
|
|
44479
|
+
measurements.length - 1,
|
|
44480
|
+
(index2) => notUndefined(measurements[index2]).start,
|
|
44481
|
+
offset2
|
|
44482
|
+
)]
|
|
44483
|
+
);
|
|
44484
|
+
};
|
|
44485
|
+
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
44486
|
+
const size2 = this.getSize();
|
|
44487
|
+
const scrollOffset = this.getScrollOffset();
|
|
44488
|
+
if (align === "auto") {
|
|
44489
|
+
align = toOffset >= scrollOffset + size2 ? "end" : "start";
|
|
44490
|
+
}
|
|
44491
|
+
if (align === "center") {
|
|
44492
|
+
toOffset += (itemSize - size2) / 2;
|
|
44493
|
+
} else if (align === "end") {
|
|
44494
|
+
toOffset -= size2;
|
|
44495
|
+
}
|
|
44496
|
+
const maxOffset = this.getTotalSize() + this.options.scrollMargin - size2;
|
|
44497
|
+
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
44498
|
+
};
|
|
44499
|
+
this.getOffsetForIndex = (index2, align = "auto") => {
|
|
44500
|
+
index2 = Math.max(0, Math.min(index2, this.options.count - 1));
|
|
44501
|
+
const item = this.measurementsCache[index2];
|
|
44502
|
+
if (!item) {
|
|
44503
|
+
return void 0;
|
|
44504
|
+
}
|
|
44505
|
+
const size2 = this.getSize();
|
|
44506
|
+
const scrollOffset = this.getScrollOffset();
|
|
44507
|
+
if (align === "auto") {
|
|
44508
|
+
if (item.end >= scrollOffset + size2 - this.options.scrollPaddingEnd) {
|
|
44509
|
+
align = "end";
|
|
44510
|
+
} else if (item.start <= scrollOffset + this.options.scrollPaddingStart) {
|
|
44511
|
+
align = "start";
|
|
44512
|
+
} else {
|
|
44513
|
+
return [scrollOffset, align];
|
|
44364
44514
|
}
|
|
44365
|
-
_this._scrollToOffset(_this.scrollOffset, {
|
|
44366
|
-
adjustments: _this.scrollAdjustments += delta,
|
|
44367
|
-
behavior: void 0
|
|
44368
|
-
});
|
|
44369
44515
|
}
|
|
44370
|
-
|
|
44371
|
-
|
|
44372
|
-
|
|
44373
|
-
|
|
44374
|
-
|
|
44375
|
-
|
|
44376
|
-
|
|
44377
|
-
|
|
44378
|
-
|
|
44379
|
-
|
|
44380
|
-
|
|
44381
|
-
|
|
44382
|
-
return [_this.getIndexes(), _this.getMeasurements()];
|
|
44383
|
-
}, function(indexes, measurements) {
|
|
44384
|
-
var virtualItems = [];
|
|
44385
|
-
for (var k2 = 0, len = indexes.length; k2 < len; k2++) {
|
|
44386
|
-
var _i3 = indexes[k2];
|
|
44387
|
-
var measurement = measurements[_i3];
|
|
44388
|
-
virtualItems.push(measurement);
|
|
44389
|
-
}
|
|
44390
|
-
return virtualItems;
|
|
44391
|
-
}, {
|
|
44392
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
44393
|
-
debug: function debug2() {
|
|
44394
|
-
return _this.options.debug;
|
|
44395
|
-
}
|
|
44396
|
-
});
|
|
44397
|
-
this.getVirtualItemForOffset = function(offset2) {
|
|
44398
|
-
var measurements = _this.getMeasurements();
|
|
44399
|
-
return notUndefined(measurements[findNearestBinarySearch(0, measurements.length - 1, function(index2) {
|
|
44400
|
-
return notUndefined(measurements[index2]).start;
|
|
44401
|
-
}, offset2)]);
|
|
44402
|
-
};
|
|
44403
|
-
this.getOffsetForAlignment = function(toOffset, align) {
|
|
44404
|
-
var size2 = _this.getSize();
|
|
44405
|
-
if (align === "auto") {
|
|
44406
|
-
if (toOffset <= _this.scrollOffset) {
|
|
44407
|
-
align = "start";
|
|
44408
|
-
} else if (toOffset >= _this.scrollOffset + size2) {
|
|
44409
|
-
align = "end";
|
|
44410
|
-
} else {
|
|
44411
|
-
align = "start";
|
|
44412
|
-
}
|
|
44413
|
-
}
|
|
44414
|
-
if (align === "start") {
|
|
44415
|
-
toOffset = toOffset;
|
|
44416
|
-
} else if (align === "end") {
|
|
44417
|
-
toOffset = toOffset - size2;
|
|
44418
|
-
} else if (align === "center") {
|
|
44419
|
-
toOffset = toOffset - size2 / 2;
|
|
44420
|
-
}
|
|
44421
|
-
var scrollSizeProp = _this.options.horizontal ? "scrollWidth" : "scrollHeight";
|
|
44422
|
-
var scrollSize = _this.scrollElement ? "document" in _this.scrollElement ? _this.scrollElement.document.documentElement[scrollSizeProp] : _this.scrollElement[scrollSizeProp] : 0;
|
|
44423
|
-
var maxOffset = scrollSize - _this.getSize();
|
|
44424
|
-
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
44425
|
-
};
|
|
44426
|
-
this.getOffsetForIndex = function(index2, align) {
|
|
44427
|
-
if (align === void 0) {
|
|
44428
|
-
align = "auto";
|
|
44429
|
-
}
|
|
44430
|
-
index2 = Math.max(0, Math.min(index2, _this.options.count - 1));
|
|
44431
|
-
var measurement = notUndefined(_this.getMeasurements()[index2]);
|
|
44432
|
-
if (align === "auto") {
|
|
44433
|
-
if (measurement.end >= _this.scrollOffset + _this.getSize() - _this.options.scrollPaddingEnd) {
|
|
44434
|
-
align = "end";
|
|
44435
|
-
} else if (measurement.start <= _this.scrollOffset + _this.options.scrollPaddingStart) {
|
|
44436
|
-
align = "start";
|
|
44437
|
-
} else {
|
|
44438
|
-
return [_this.scrollOffset, align];
|
|
44516
|
+
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
44517
|
+
return [
|
|
44518
|
+
this.getOffsetForAlignment(toOffset, align, item.size),
|
|
44519
|
+
align
|
|
44520
|
+
];
|
|
44521
|
+
};
|
|
44522
|
+
this.isDynamicMode = () => this.elementsCache.size > 0;
|
|
44523
|
+
this.scrollToOffset = (toOffset, { align = "start", behavior } = {}) => {
|
|
44524
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44525
|
+
console.warn(
|
|
44526
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44527
|
+
);
|
|
44439
44528
|
}
|
|
44440
|
-
|
|
44441
|
-
|
|
44442
|
-
|
|
44443
|
-
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44447
|
-
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44456
|
-
|
|
44457
|
-
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44467
|
-
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
_this._scrollToOffset(toOffset, {
|
|
44473
|
-
adjustments: void 0,
|
|
44474
|
-
behavior
|
|
44475
|
-
});
|
|
44476
|
-
if (behavior !== "smooth" && _this.isDynamicMode()) {
|
|
44477
|
-
_this.scrollToIndexTimeoutId = setTimeout(function() {
|
|
44478
|
-
_this.scrollToIndexTimeoutId = null;
|
|
44479
|
-
var elementInDOM = _this.measureElementCache.has(_this.options.getItemKey(index2));
|
|
44480
|
-
if (elementInDOM) {
|
|
44481
|
-
var _this$getOffsetForInd2 = _this.getOffsetForIndex(index2, align), _toOffset = _this$getOffsetForInd2[0];
|
|
44482
|
-
if (!approxEqual(_toOffset, _this.scrollOffset)) {
|
|
44483
|
-
_this.scrollToIndex(index2, {
|
|
44484
|
-
align,
|
|
44485
|
-
behavior
|
|
44486
|
-
});
|
|
44529
|
+
this._scrollToOffset(this.getOffsetForAlignment(toOffset, align), {
|
|
44530
|
+
adjustments: void 0,
|
|
44531
|
+
behavior
|
|
44532
|
+
});
|
|
44533
|
+
};
|
|
44534
|
+
this.scrollToIndex = (index2, { align: initialAlign = "auto", behavior } = {}) => {
|
|
44535
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44536
|
+
console.warn(
|
|
44537
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44538
|
+
);
|
|
44539
|
+
}
|
|
44540
|
+
index2 = Math.max(0, Math.min(index2, this.options.count - 1));
|
|
44541
|
+
let attempts = 0;
|
|
44542
|
+
const maxAttempts = 10;
|
|
44543
|
+
const tryScroll = (currentAlign) => {
|
|
44544
|
+
if (!this.targetWindow) return;
|
|
44545
|
+
const offsetInfo = this.getOffsetForIndex(index2, currentAlign);
|
|
44546
|
+
if (!offsetInfo) {
|
|
44547
|
+
console.warn("Failed to get offset for index:", index2);
|
|
44548
|
+
return;
|
|
44549
|
+
}
|
|
44550
|
+
const [offset2, align] = offsetInfo;
|
|
44551
|
+
this._scrollToOffset(offset2, { adjustments: void 0, behavior });
|
|
44552
|
+
this.targetWindow.requestAnimationFrame(() => {
|
|
44553
|
+
const currentOffset = this.getScrollOffset();
|
|
44554
|
+
const afterInfo = this.getOffsetForIndex(index2, align);
|
|
44555
|
+
if (!afterInfo) {
|
|
44556
|
+
console.warn("Failed to get offset for index:", index2);
|
|
44557
|
+
return;
|
|
44558
|
+
}
|
|
44559
|
+
if (!approxEqual(afterInfo[0], currentOffset)) {
|
|
44560
|
+
scheduleRetry(align);
|
|
44487
44561
|
}
|
|
44562
|
+
});
|
|
44563
|
+
};
|
|
44564
|
+
const scheduleRetry = (align) => {
|
|
44565
|
+
if (!this.targetWindow) return;
|
|
44566
|
+
attempts++;
|
|
44567
|
+
if (attempts < maxAttempts) {
|
|
44568
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug) {
|
|
44569
|
+
console.info("Schedule retry", attempts, maxAttempts);
|
|
44570
|
+
}
|
|
44571
|
+
this.targetWindow.requestAnimationFrame(() => tryScroll(align));
|
|
44488
44572
|
} else {
|
|
44489
|
-
|
|
44490
|
-
|
|
44491
|
-
|
|
44492
|
-
});
|
|
44573
|
+
console.warn(
|
|
44574
|
+
`Failed to scroll to index ${index2} after ${maxAttempts} attempts.`
|
|
44575
|
+
);
|
|
44493
44576
|
}
|
|
44577
|
+
};
|
|
44578
|
+
tryScroll(initialAlign);
|
|
44579
|
+
};
|
|
44580
|
+
this.scrollBy = (delta, { behavior } = {}) => {
|
|
44581
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44582
|
+
console.warn(
|
|
44583
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44584
|
+
);
|
|
44585
|
+
}
|
|
44586
|
+
this._scrollToOffset(this.getScrollOffset() + delta, {
|
|
44587
|
+
adjustments: void 0,
|
|
44588
|
+
behavior
|
|
44494
44589
|
});
|
|
44495
|
-
}
|
|
44496
|
-
|
|
44497
|
-
|
|
44498
|
-
|
|
44499
|
-
|
|
44500
|
-
|
|
44501
|
-
|
|
44502
|
-
|
|
44503
|
-
|
|
44504
|
-
|
|
44590
|
+
};
|
|
44591
|
+
this.getTotalSize = () => {
|
|
44592
|
+
var _a;
|
|
44593
|
+
const measurements = this.getMeasurements();
|
|
44594
|
+
let end;
|
|
44595
|
+
if (measurements.length === 0) {
|
|
44596
|
+
end = this.options.paddingStart;
|
|
44597
|
+
} else if (this.options.lanes === 1) {
|
|
44598
|
+
end = ((_a = measurements[measurements.length - 1]) == null ? void 0 : _a.end) ?? 0;
|
|
44599
|
+
} else {
|
|
44600
|
+
const endByLane = Array(this.options.lanes).fill(null);
|
|
44601
|
+
let endIndex = measurements.length - 1;
|
|
44602
|
+
while (endIndex >= 0 && endByLane.some((val) => val === null)) {
|
|
44603
|
+
const item = measurements[endIndex];
|
|
44604
|
+
if (endByLane[item.lane] === null) {
|
|
44605
|
+
endByLane[item.lane] = item.end;
|
|
44606
|
+
}
|
|
44607
|
+
endIndex--;
|
|
44608
|
+
}
|
|
44609
|
+
end = Math.max(...endByLane.filter((val) => val !== null));
|
|
44610
|
+
}
|
|
44611
|
+
return Math.max(
|
|
44612
|
+
end - this.options.scrollMargin + this.options.paddingEnd,
|
|
44613
|
+
0
|
|
44614
|
+
);
|
|
44615
|
+
};
|
|
44616
|
+
this._scrollToOffset = (offset2, {
|
|
44617
|
+
adjustments,
|
|
44505
44618
|
behavior
|
|
44506
|
-
})
|
|
44507
|
-
|
|
44508
|
-
|
|
44509
|
-
|
|
44510
|
-
|
|
44511
|
-
|
|
44512
|
-
|
|
44513
|
-
|
|
44514
|
-
|
|
44515
|
-
|
|
44516
|
-
|
|
44517
|
-
}, _this);
|
|
44518
|
-
};
|
|
44519
|
-
this.measure = function() {
|
|
44520
|
-
_this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44521
|
-
_this.notify(false);
|
|
44522
|
-
};
|
|
44523
|
-
this.setOptions(_opts);
|
|
44524
|
-
this.scrollRect = this.options.initialRect;
|
|
44525
|
-
this.scrollOffset = this.options.initialOffset;
|
|
44526
|
-
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
44527
|
-
this.measurementsCache.forEach(function(item) {
|
|
44528
|
-
_this.itemSizeCache.set(item.key, item.size);
|
|
44529
|
-
});
|
|
44530
|
-
this.maybeNotify();
|
|
44531
|
-
};
|
|
44532
|
-
var findNearestBinarySearch = function findNearestBinarySearch2(low, high, getCurrentValue, value) {
|
|
44619
|
+
}) => {
|
|
44620
|
+
this.options.scrollToFn(offset2, { behavior, adjustments }, this);
|
|
44621
|
+
};
|
|
44622
|
+
this.measure = () => {
|
|
44623
|
+
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44624
|
+
this.notify(false);
|
|
44625
|
+
};
|
|
44626
|
+
this.setOptions(opts);
|
|
44627
|
+
}
|
|
44628
|
+
}
|
|
44629
|
+
const findNearestBinarySearch = (low, high, getCurrentValue, value) => {
|
|
44533
44630
|
while (low <= high) {
|
|
44534
|
-
|
|
44535
|
-
|
|
44631
|
+
const middle = (low + high) / 2 | 0;
|
|
44632
|
+
const currentValue = getCurrentValue(middle);
|
|
44536
44633
|
if (currentValue < value) {
|
|
44537
44634
|
low = middle + 1;
|
|
44538
44635
|
} else if (currentValue > value) {
|
|
@@ -44547,65 +44644,83 @@ var findNearestBinarySearch = function findNearestBinarySearch2(low, high, getCu
|
|
|
44547
44644
|
return 0;
|
|
44548
44645
|
}
|
|
44549
44646
|
};
|
|
44550
|
-
function calculateRange(
|
|
44551
|
-
|
|
44552
|
-
|
|
44553
|
-
|
|
44554
|
-
|
|
44555
|
-
|
|
44556
|
-
|
|
44557
|
-
|
|
44558
|
-
|
|
44559
|
-
|
|
44647
|
+
function calculateRange({
|
|
44648
|
+
measurements,
|
|
44649
|
+
outerSize,
|
|
44650
|
+
scrollOffset,
|
|
44651
|
+
lanes
|
|
44652
|
+
}) {
|
|
44653
|
+
const lastIndex = measurements.length - 1;
|
|
44654
|
+
const getOffset3 = (index2) => measurements[index2].start;
|
|
44655
|
+
if (measurements.length <= lanes) {
|
|
44656
|
+
return {
|
|
44657
|
+
startIndex: 0,
|
|
44658
|
+
endIndex: lastIndex
|
|
44659
|
+
};
|
|
44560
44660
|
}
|
|
44561
|
-
|
|
44562
|
-
|
|
44563
|
-
|
|
44564
|
-
|
|
44565
|
-
|
|
44566
|
-
|
|
44567
|
-
|
|
44568
|
-
|
|
44569
|
-
|
|
44570
|
-
|
|
44571
|
-
|
|
44572
|
-
|
|
44573
|
-
|
|
44574
|
-
|
|
44575
|
-
|
|
44576
|
-
|
|
44661
|
+
let startIndex = findNearestBinarySearch(
|
|
44662
|
+
0,
|
|
44663
|
+
lastIndex,
|
|
44664
|
+
getOffset3,
|
|
44665
|
+
scrollOffset
|
|
44666
|
+
);
|
|
44667
|
+
let endIndex = startIndex;
|
|
44668
|
+
if (lanes === 1) {
|
|
44669
|
+
while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) {
|
|
44670
|
+
endIndex++;
|
|
44671
|
+
}
|
|
44672
|
+
} else if (lanes > 1) {
|
|
44673
|
+
const endPerLane = Array(lanes).fill(0);
|
|
44674
|
+
while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
|
|
44675
|
+
const item = measurements[endIndex];
|
|
44676
|
+
endPerLane[item.lane] = item.end;
|
|
44677
|
+
endIndex++;
|
|
44678
|
+
}
|
|
44679
|
+
const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
|
|
44680
|
+
while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
|
|
44681
|
+
const item = measurements[startIndex];
|
|
44682
|
+
startPerLane[item.lane] = item.start;
|
|
44683
|
+
startIndex--;
|
|
44684
|
+
}
|
|
44685
|
+
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
44686
|
+
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
44687
|
+
}
|
|
44688
|
+
return { startIndex, endIndex };
|
|
44689
|
+
}
|
|
44690
|
+
const useIsomorphicLayoutEffect$1 = typeof document !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
44577
44691
|
function useVirtualizerBase(options) {
|
|
44578
|
-
|
|
44579
|
-
|
|
44580
|
-
|
|
44581
|
-
|
|
44582
|
-
|
|
44692
|
+
const rerender = React.useReducer(() => ({}), {})[1];
|
|
44693
|
+
const resolvedOptions = {
|
|
44694
|
+
...options,
|
|
44695
|
+
onChange: (instance2, sync2) => {
|
|
44696
|
+
var _a;
|
|
44583
44697
|
if (sync2) {
|
|
44584
44698
|
flushSync$1(rerender);
|
|
44585
44699
|
} else {
|
|
44586
44700
|
rerender();
|
|
44587
44701
|
}
|
|
44588
|
-
options.onChange == null
|
|
44702
|
+
(_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync2);
|
|
44589
44703
|
}
|
|
44590
|
-
}
|
|
44591
|
-
|
|
44592
|
-
|
|
44593
|
-
|
|
44704
|
+
};
|
|
44705
|
+
const [instance] = React.useState(
|
|
44706
|
+
() => new Virtualizer(resolvedOptions)
|
|
44707
|
+
);
|
|
44594
44708
|
instance.setOptions(resolvedOptions);
|
|
44595
|
-
|
|
44709
|
+
useIsomorphicLayoutEffect$1(() => {
|
|
44596
44710
|
return instance._didMount();
|
|
44597
44711
|
}, []);
|
|
44598
|
-
useIsomorphicLayoutEffect$1(
|
|
44712
|
+
useIsomorphicLayoutEffect$1(() => {
|
|
44599
44713
|
return instance._willUpdate();
|
|
44600
44714
|
});
|
|
44601
44715
|
return instance;
|
|
44602
44716
|
}
|
|
44603
44717
|
function useVirtualizer(options) {
|
|
44604
|
-
return useVirtualizerBase(
|
|
44718
|
+
return useVirtualizerBase({
|
|
44605
44719
|
observeElementRect,
|
|
44606
44720
|
observeElementOffset,
|
|
44607
|
-
scrollToFn: elementScroll
|
|
44608
|
-
|
|
44721
|
+
scrollToFn: elementScroll,
|
|
44722
|
+
...options
|
|
44723
|
+
});
|
|
44609
44724
|
}
|
|
44610
44725
|
const ROW_HEIGHT_ESTIMATES = {
|
|
44611
44726
|
short: 33,
|
|
@@ -44787,7 +44902,7 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
|
|
|
44787
44902
|
return /* @__PURE__ */ React__default.createElement(SkeletonRow, { key: skeletonKey, index: virtualRow.index, table });
|
|
44788
44903
|
}
|
|
44789
44904
|
const measureRow = (rowHeight) => {
|
|
44790
|
-
virtualiser.resizeItem(virtualRow, rowHeight);
|
|
44905
|
+
virtualiser.resizeItem(virtualRow.index, rowHeight);
|
|
44791
44906
|
};
|
|
44792
44907
|
return /* @__PURE__ */ React__default.createElement(
|
|
44793
44908
|
Row$2,
|
|
@@ -51704,7 +51819,7 @@ const Select22 = React__default.forwardRef(function Select222(props, ref) {
|
|
|
51704
51819
|
(child) => isGroup(child) ? Array.isArray(child.props.children) && child.props.children.map((subChild) => subChild.props.value) : child.props.value
|
|
51705
51820
|
) || [];
|
|
51706
51821
|
const queryTimeoutRef = React__default.useRef("");
|
|
51707
|
-
const typeahead = debounce$
|
|
51822
|
+
const typeahead = debounce$3(function() {
|
|
51708
51823
|
if (!queryTimeoutRef.current) {
|
|
51709
51824
|
return;
|
|
51710
51825
|
}
|
|
@@ -59564,7 +59679,7 @@ function createListComponent(_ref) {
|
|
|
59564
59679
|
className,
|
|
59565
59680
|
onScroll,
|
|
59566
59681
|
ref: this._outerRefSetter,
|
|
59567
|
-
style: _extends$
|
|
59682
|
+
style: _extends$x({
|
|
59568
59683
|
position: "relative",
|
|
59569
59684
|
height,
|
|
59570
59685
|
width,
|
|
@@ -63631,7 +63746,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /* @__PURE__ */ forwardRef((pr
|
|
|
63631
63746
|
orientation,
|
|
63632
63747
|
dir: direction,
|
|
63633
63748
|
activationMode
|
|
63634
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63749
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63635
63750
|
dir: direction,
|
|
63636
63751
|
"data-orientation": orientation
|
|
63637
63752
|
}, tabsProps, {
|
|
@@ -63643,13 +63758,13 @@ const $69cb30bb0017df05$export$9712d22edc0d78c1 = /* @__PURE__ */ forwardRef((pr
|
|
|
63643
63758
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
63644
63759
|
const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);
|
|
63645
63760
|
const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);
|
|
63646
|
-
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
63761
|
+
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$x({
|
|
63647
63762
|
asChild: true
|
|
63648
63763
|
}, rovingFocusGroupScope, {
|
|
63649
63764
|
orientation: context.orientation,
|
|
63650
63765
|
dir: context.dir,
|
|
63651
63766
|
loop
|
|
63652
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63767
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63653
63768
|
role: "tablist",
|
|
63654
63769
|
"aria-orientation": context.orientation
|
|
63655
63770
|
}, listProps, {
|
|
@@ -63664,12 +63779,12 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /* @__PURE__ */ forwardRef((pr
|
|
|
63664
63779
|
const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);
|
|
63665
63780
|
const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);
|
|
63666
63781
|
const isSelected = value === context.value;
|
|
63667
|
-
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
63782
|
+
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$x({
|
|
63668
63783
|
asChild: true
|
|
63669
63784
|
}, rovingFocusGroupScope, {
|
|
63670
63785
|
focusable: !disabled,
|
|
63671
63786
|
active: isSelected
|
|
63672
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
63787
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
63673
63788
|
type: "button",
|
|
63674
63789
|
role: "tab",
|
|
63675
63790
|
"aria-selected": isSelected,
|
|
@@ -63716,7 +63831,7 @@ const $69cb30bb0017df05$export$bd905d70e8fd2ebb = /* @__PURE__ */ forwardRef((pr
|
|
|
63716
63831
|
{
|
|
63717
63832
|
present: forceMount || isSelected
|
|
63718
63833
|
},
|
|
63719
|
-
({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63834
|
+
({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63720
63835
|
"data-state": isSelected ? "active" : "inactive",
|
|
63721
63836
|
"data-orientation": context.orientation,
|
|
63722
63837
|
role: "tabpanel",
|
|
@@ -67845,7 +67960,7 @@ function isRequiredIf(typeValidator, condition, message2) {
|
|
|
67845
67960
|
};
|
|
67846
67961
|
}
|
|
67847
67962
|
var STATUS$1 = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing" };
|
|
67848
|
-
var isReact16 = ReactDOM__default.createPortal !== void 0;
|
|
67963
|
+
var isReact16$1 = ReactDOM__default.createPortal !== void 0;
|
|
67849
67964
|
function canUseDOM$1() {
|
|
67850
67965
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
67851
67966
|
}
|
|
@@ -67902,17 +68017,17 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67902
68017
|
if (!this.node) {
|
|
67903
68018
|
this.appendNode();
|
|
67904
68019
|
}
|
|
67905
|
-
if (!isReact16) {
|
|
68020
|
+
if (!isReact16$1) {
|
|
67906
68021
|
this.renderPortal();
|
|
67907
68022
|
}
|
|
67908
68023
|
} }, { key: "componentDidUpdate", value: function componentDidUpdate() {
|
|
67909
68024
|
if (!canUseDOM$1()) return;
|
|
67910
|
-
if (!isReact16) {
|
|
68025
|
+
if (!isReact16$1) {
|
|
67911
68026
|
this.renderPortal();
|
|
67912
68027
|
}
|
|
67913
68028
|
} }, { key: "componentWillUnmount", value: function componentWillUnmount() {
|
|
67914
68029
|
if (!canUseDOM$1() || !this.node) return;
|
|
67915
|
-
if (!isReact16) {
|
|
68030
|
+
if (!isReact16$1) {
|
|
67916
68031
|
ReactDOM__default.unmountComponentAtNode(this.node);
|
|
67917
68032
|
}
|
|
67918
68033
|
if (this.node && this.node.parentNode === document.body) {
|
|
@@ -67937,7 +68052,7 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67937
68052
|
if (!this.node) {
|
|
67938
68053
|
this.appendNode();
|
|
67939
68054
|
}
|
|
67940
|
-
if (isReact16) {
|
|
68055
|
+
if (isReact16$1) {
|
|
67941
68056
|
return /* @__PURE__ */ ReactDOM__default.createPortal(children, this.node);
|
|
67942
68057
|
}
|
|
67943
68058
|
var portal = ReactDOM__default.unstable_renderSubtreeIntoContainer(this, children.length > 1 ? /* @__PURE__ */ React__default.createElement("div", null, children) : children[0], this.node);
|
|
@@ -67953,7 +68068,7 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67953
68068
|
}
|
|
67954
68069
|
return this.renderPortal();
|
|
67955
68070
|
} }, { key: "render", value: function render() {
|
|
67956
|
-
if (!isReact16) {
|
|
68071
|
+
if (!isReact16$1) {
|
|
67957
68072
|
return null;
|
|
67958
68073
|
}
|
|
67959
68074
|
return this.renderReact16();
|
|
@@ -68640,6 +68755,7 @@ function scrollTo(value, options) {
|
|
|
68640
68755
|
});
|
|
68641
68756
|
});
|
|
68642
68757
|
}
|
|
68758
|
+
var isReact16 = createPortal !== void 0;
|
|
68643
68759
|
function getBrowser(userAgent = navigator.userAgent) {
|
|
68644
68760
|
let browser = userAgent;
|
|
68645
68761
|
if (typeof window === "undefined") {
|
|
@@ -69576,23 +69692,55 @@ var JoyridePortal = class extends React.Component {
|
|
|
69576
69692
|
this.node = document.createElement("div");
|
|
69577
69693
|
this.node.id = id2;
|
|
69578
69694
|
document.body.appendChild(this.node);
|
|
69695
|
+
if (!isReact16) {
|
|
69696
|
+
this.renderReact15();
|
|
69697
|
+
}
|
|
69698
|
+
}
|
|
69699
|
+
componentDidUpdate() {
|
|
69700
|
+
if (!canUseDOM()) {
|
|
69701
|
+
return;
|
|
69702
|
+
}
|
|
69703
|
+
if (!isReact16) {
|
|
69704
|
+
this.renderReact15();
|
|
69705
|
+
}
|
|
69579
69706
|
}
|
|
69580
69707
|
componentWillUnmount() {
|
|
69581
69708
|
if (!canUseDOM() || !this.node) {
|
|
69582
69709
|
return;
|
|
69583
69710
|
}
|
|
69711
|
+
if (!isReact16) {
|
|
69712
|
+
ReactDOM.unmountComponentAtNode(this.node);
|
|
69713
|
+
}
|
|
69584
69714
|
if (this.node.parentNode === document.body) {
|
|
69585
69715
|
document.body.removeChild(this.node);
|
|
69586
69716
|
this.node = null;
|
|
69587
69717
|
}
|
|
69588
69718
|
}
|
|
69589
|
-
|
|
69590
|
-
if (!canUseDOM()
|
|
69719
|
+
renderReact15() {
|
|
69720
|
+
if (!canUseDOM()) {
|
|
69721
|
+
return;
|
|
69722
|
+
}
|
|
69723
|
+
const { children } = this.props;
|
|
69724
|
+
if (this.node) {
|
|
69725
|
+
ReactDOM.unstable_renderSubtreeIntoContainer(this, children, this.node);
|
|
69726
|
+
}
|
|
69727
|
+
}
|
|
69728
|
+
renderReact16() {
|
|
69729
|
+
if (!canUseDOM() || !isReact16) {
|
|
69591
69730
|
return null;
|
|
69592
69731
|
}
|
|
69593
69732
|
const { children } = this.props;
|
|
69733
|
+
if (!this.node) {
|
|
69734
|
+
return null;
|
|
69735
|
+
}
|
|
69594
69736
|
return ReactDOM.createPortal(children, this.node);
|
|
69595
69737
|
}
|
|
69738
|
+
render() {
|
|
69739
|
+
if (!isReact16) {
|
|
69740
|
+
return null;
|
|
69741
|
+
}
|
|
69742
|
+
return this.renderReact16();
|
|
69743
|
+
}
|
|
69596
69744
|
};
|
|
69597
69745
|
var Scope = class {
|
|
69598
69746
|
constructor(element, options) {
|