@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.cjs
CHANGED
|
@@ -3334,14 +3334,14 @@ const Alert$1 = React.forwardRef(function Alert2(props, ref) {
|
|
|
3334
3334
|
);
|
|
3335
3335
|
return /* @__PURE__ */ React.createElement("div", { ...props, ref, className, "data-taco": "alert", role: "alert" }, /* @__PURE__ */ React.createElement(BadgeIcon, { className: "flex-none", icon: getIconName(state), color: getColorByState(state) }), /* @__PURE__ */ React.createElement("div", { className: "grow text-sm" }, title && /* @__PURE__ */ React.createElement("div", { className: "font-bold" }, title), children), onClose && /* @__PURE__ */ React.createElement(Icon$1, { className: "flex-none cursor-pointer", name: "close", onClick: onClose }));
|
|
3336
3336
|
});
|
|
3337
|
-
function _extends$
|
|
3338
|
-
return _extends$
|
|
3337
|
+
function _extends$x() {
|
|
3338
|
+
return _extends$x = Object.assign ? Object.assign.bind() : function(n2) {
|
|
3339
3339
|
for (var e3 = 1; e3 < arguments.length; e3++) {
|
|
3340
3340
|
var t2 = arguments[e3];
|
|
3341
3341
|
for (var r2 in t2) ({}).hasOwnProperty.call(t2, r2) && (n2[r2] = t2[r2]);
|
|
3342
3342
|
}
|
|
3343
3343
|
return n2;
|
|
3344
|
-
}, _extends$
|
|
3344
|
+
}, _extends$x.apply(null, arguments);
|
|
3345
3345
|
}
|
|
3346
3346
|
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
3347
3347
|
const Context2 = /* @__PURE__ */ React.createContext(defaultContext);
|
|
@@ -3559,11 +3559,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 = /* @__PURE__ */ React.forwar
|
|
|
3559
3559
|
return /* @__PURE__ */ React.isValidElement(newElement) ? newElement.props.children : null;
|
|
3560
3560
|
} else return child;
|
|
3561
3561
|
});
|
|
3562
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$
|
|
3562
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$x({}, slotProps, {
|
|
3563
3563
|
ref: forwardedRef
|
|
3564
3564
|
}), /* @__PURE__ */ React.isValidElement(newElement) ? /* @__PURE__ */ React.cloneElement(newElement, void 0, newChildren) : null);
|
|
3565
3565
|
}
|
|
3566
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$
|
|
3566
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone$1, _extends$x({}, slotProps, {
|
|
3567
3567
|
ref: forwardedRef
|
|
3568
3568
|
}), children);
|
|
3569
3569
|
});
|
|
@@ -3634,7 +3634,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034$1 = $8927f6f2acc4f386$var$NODES$
|
|
|
3634
3634
|
React.useEffect(() => {
|
|
3635
3635
|
window[Symbol.for("radix-ui")] = true;
|
|
3636
3636
|
}, []);
|
|
3637
|
-
return /* @__PURE__ */ React.createElement(Comp, _extends$
|
|
3637
|
+
return /* @__PURE__ */ React.createElement(Comp, _extends$x({}, primitiveProps, {
|
|
3638
3638
|
ref: forwardedRef
|
|
3639
3639
|
}));
|
|
3640
3640
|
});
|
|
@@ -3759,7 +3759,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /* @__PURE__ */ React.forwardR
|
|
|
3759
3759
|
document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
3760
3760
|
return () => document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate);
|
|
3761
3761
|
}, []);
|
|
3762
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
3762
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, layerProps, {
|
|
3763
3763
|
ref: composedRefs,
|
|
3764
3764
|
style: {
|
|
3765
3765
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
@@ -3973,7 +3973,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /* @__PURE__ */ React.forwardR
|
|
|
3973
3973
|
trapped,
|
|
3974
3974
|
focusScope.paused
|
|
3975
3975
|
]);
|
|
3976
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
3976
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
3977
3977
|
tabIndex: -1
|
|
3978
3978
|
}, scopeProps, {
|
|
3979
3979
|
ref: composedRefs,
|
|
@@ -4071,7 +4071,7 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
|
4071
4071
|
const $f1701beae083dbae$export$602eac185826482c = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
4072
4072
|
var _globalThis$document;
|
|
4073
4073
|
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;
|
|
4074
|
-
return container ? /* @__PURE__ */ ReactDOM.createPortal(/* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
4074
|
+
return container ? /* @__PURE__ */ ReactDOM.createPortal(/* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, portalProps, {
|
|
4075
4075
|
ref: forwardedRef
|
|
4076
4076
|
})), container) : null;
|
|
4077
4077
|
});
|
|
@@ -4710,10 +4710,10 @@ var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
|
4710
4710
|
var availableScrollTop = 0;
|
|
4711
4711
|
do {
|
|
4712
4712
|
var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
|
|
4713
|
-
var
|
|
4714
|
-
if (position ||
|
|
4713
|
+
var elementScroll2 = scroll_1 - capacity - directionFactor * position;
|
|
4714
|
+
if (position || elementScroll2) {
|
|
4715
4715
|
if (elementCouldBeScrolled(axis, target)) {
|
|
4716
|
-
availableScroll +=
|
|
4716
|
+
availableScroll += elementScroll2;
|
|
4717
4717
|
availableScrollTop += position;
|
|
4718
4718
|
}
|
|
4719
4719
|
}
|
|
@@ -5045,7 +5045,7 @@ const $5d3850c4d0b4e6c7$export$2e1e1122cf0cba88 = /* @__PURE__ */ React.forwardR
|
|
|
5045
5045
|
const { __scopeDialog, ...triggerProps } = props;
|
|
5046
5046
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME, __scopeDialog);
|
|
5047
5047
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.triggerRef);
|
|
5048
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
5048
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
5049
5049
|
type: "button",
|
|
5050
5050
|
"aria-haspopup": "dialog",
|
|
5051
5051
|
"aria-expanded": context.open,
|
|
@@ -5083,7 +5083,7 @@ const $5d3850c4d0b4e6c7$export$bd1d06c79be19e17 = /* @__PURE__ */ React.forwardR
|
|
|
5083
5083
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME, props.__scopeDialog);
|
|
5084
5084
|
return context.modal ? /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
5085
5085
|
present: forceMount || context.open
|
|
5086
|
-
}, /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, _extends$
|
|
5086
|
+
}, /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl, _extends$x({}, overlayProps, {
|
|
5087
5087
|
ref: forwardedRef
|
|
5088
5088
|
}))) : null;
|
|
5089
5089
|
});
|
|
@@ -5099,7 +5099,7 @@ const $5d3850c4d0b4e6c7$var$DialogOverlayImpl = /* @__PURE__ */ React.forwardRef
|
|
|
5099
5099
|
shards: [
|
|
5100
5100
|
context.contentRef
|
|
5101
5101
|
]
|
|
5102
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
5102
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
5103
5103
|
"data-state": $5d3850c4d0b4e6c7$var$getState(context.open)
|
|
5104
5104
|
}, overlayProps, {
|
|
5105
5105
|
ref: forwardedRef,
|
|
@@ -5117,9 +5117,9 @@ const $5d3850c4d0b4e6c7$export$b6d9565de1e068cf = /* @__PURE__ */ React.forwardR
|
|
|
5117
5117
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
|
|
5118
5118
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
5119
5119
|
present: forceMount || context.open
|
|
5120
|
-
}, context.modal ? /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentModal, _extends$
|
|
5120
|
+
}, context.modal ? /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentModal, _extends$x({}, contentProps, {
|
|
5121
5121
|
ref: forwardedRef
|
|
5122
|
-
})) : /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, _extends$
|
|
5122
|
+
})) : /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal, _extends$x({}, contentProps, {
|
|
5123
5123
|
ref: forwardedRef
|
|
5124
5124
|
})));
|
|
5125
5125
|
});
|
|
@@ -5134,7 +5134,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentModal = /* @__PURE__ */ React.forwardRe
|
|
|
5134
5134
|
const content = contentRef.current;
|
|
5135
5135
|
if (content) return hideOthers(content);
|
|
5136
5136
|
}, []);
|
|
5137
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$
|
|
5137
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$x({}, props, {
|
|
5138
5138
|
ref: composedRefs,
|
|
5139
5139
|
trapFocus: context.open,
|
|
5140
5140
|
disableOutsidePointerEvents: true,
|
|
@@ -5158,7 +5158,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentModal = /* @__PURE__ */ React.forwardRe
|
|
|
5158
5158
|
const $5d3850c4d0b4e6c7$var$DialogContentNonModal = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5159
5159
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME, props.__scopeDialog);
|
|
5160
5160
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
5161
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$
|
|
5161
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl, _extends$x({}, props, {
|
|
5162
5162
|
ref: forwardedRef,
|
|
5163
5163
|
trapFocus: false,
|
|
5164
5164
|
disableOutsidePointerEvents: false,
|
|
@@ -5194,7 +5194,7 @@ const $5d3850c4d0b4e6c7$var$DialogContentImpl = /* @__PURE__ */ React.forwardRef
|
|
|
5194
5194
|
trapped: trapFocus,
|
|
5195
5195
|
onMountAutoFocus: onOpenAutoFocus,
|
|
5196
5196
|
onUnmountAutoFocus: onCloseAutoFocus
|
|
5197
|
-
}, /* @__PURE__ */ React.createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends$
|
|
5197
|
+
}, /* @__PURE__ */ React.createElement($5cb92bef7577960e$export$177fb62ff3ec1f22, _extends$x({
|
|
5198
5198
|
role: "dialog",
|
|
5199
5199
|
id: context.contentId,
|
|
5200
5200
|
"aria-describedby": context.descriptionId,
|
|
@@ -5209,7 +5209,7 @@ const $5d3850c4d0b4e6c7$var$TITLE_NAME = "DialogTitle";
|
|
|
5209
5209
|
const $5d3850c4d0b4e6c7$export$16f7638e4a34b909 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5210
5210
|
const { __scopeDialog, ...titleProps } = props;
|
|
5211
5211
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME, __scopeDialog);
|
|
5212
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h2, _extends$
|
|
5212
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h2, _extends$x({
|
|
5213
5213
|
id: context.titleId
|
|
5214
5214
|
}, titleProps, {
|
|
5215
5215
|
ref: forwardedRef
|
|
@@ -5222,7 +5222,7 @@ const $5d3850c4d0b4e6c7$var$DESCRIPTION_NAME = "DialogDescription";
|
|
|
5222
5222
|
const $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5223
5223
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
5224
5224
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME, __scopeDialog);
|
|
5225
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.p, _extends$
|
|
5225
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.p, _extends$x({
|
|
5226
5226
|
id: context.descriptionId
|
|
5227
5227
|
}, descriptionProps, {
|
|
5228
5228
|
ref: forwardedRef
|
|
@@ -5235,7 +5235,7 @@ const $5d3850c4d0b4e6c7$var$CLOSE_NAME = "DialogClose";
|
|
|
5235
5235
|
const $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5236
5236
|
const { __scopeDialog, ...closeProps } = props;
|
|
5237
5237
|
const context = $5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME, __scopeDialog);
|
|
5238
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
5238
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
5239
5239
|
type: "button"
|
|
5240
5240
|
}, closeProps, {
|
|
5241
5241
|
ref: forwardedRef,
|
|
@@ -5273,26 +5273,26 @@ const $905f4ae918aab1aa$var$useDialogScope = $5d3850c4d0b4e6c7$export$cc702773b8
|
|
|
5273
5273
|
const $905f4ae918aab1aa$export$de466dd8317b0b75 = (props) => {
|
|
5274
5274
|
const { __scopeAlertDialog, ...alertDialogProps } = props;
|
|
5275
5275
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5276
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, _extends$
|
|
5276
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, _extends$x({}, dialogScope, alertDialogProps, {
|
|
5277
5277
|
modal: true
|
|
5278
5278
|
}));
|
|
5279
5279
|
};
|
|
5280
5280
|
const $905f4ae918aab1aa$export$6edd7a623ef0f40b = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5281
5281
|
const { __scopeAlertDialog, ...triggerProps } = props;
|
|
5282
5282
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5283
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$41fb9f06171c75f4, _extends$
|
|
5283
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$41fb9f06171c75f4, _extends$x({}, dialogScope, triggerProps, {
|
|
5284
5284
|
ref: forwardedRef
|
|
5285
5285
|
}));
|
|
5286
5286
|
});
|
|
5287
5287
|
const $905f4ae918aab1aa$export$660f2bfdb986706c = (props) => {
|
|
5288
5288
|
const { __scopeAlertDialog, ...portalProps } = props;
|
|
5289
5289
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5290
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$602eac185826482c, _extends$
|
|
5290
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$602eac185826482c, _extends$x({}, dialogScope, portalProps));
|
|
5291
5291
|
};
|
|
5292
5292
|
const $905f4ae918aab1aa$export$a707a4895ce23256 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5293
5293
|
const { __scopeAlertDialog, ...overlayProps } = props;
|
|
5294
5294
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5295
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, _extends$
|
|
5295
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, _extends$x({}, dialogScope, overlayProps, {
|
|
5296
5296
|
ref: forwardedRef
|
|
5297
5297
|
}));
|
|
5298
5298
|
});
|
|
@@ -5311,7 +5311,7 @@ const $905f4ae918aab1aa$export$94e6af45f0af4efd = /* @__PURE__ */ React.forwardR
|
|
|
5311
5311
|
}, /* @__PURE__ */ React.createElement($905f4ae918aab1aa$var$AlertDialogContentProvider, {
|
|
5312
5312
|
scope: __scopeAlertDialog,
|
|
5313
5313
|
cancelRef
|
|
5314
|
-
}, /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, _extends$
|
|
5314
|
+
}, /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, _extends$x({
|
|
5315
5315
|
role: "alertdialog"
|
|
5316
5316
|
}, dialogScope, contentProps, {
|
|
5317
5317
|
ref: composedRefs,
|
|
@@ -5330,21 +5330,21 @@ const $905f4ae918aab1aa$var$TITLE_NAME = "AlertDialogTitle";
|
|
|
5330
5330
|
const $905f4ae918aab1aa$export$225e0da62d314b7 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5331
5331
|
const { __scopeAlertDialog, ...titleProps } = props;
|
|
5332
5332
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5333
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0, _extends$
|
|
5333
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f99233281efd08a0, _extends$x({}, dialogScope, titleProps, {
|
|
5334
5334
|
ref: forwardedRef
|
|
5335
5335
|
}));
|
|
5336
5336
|
});
|
|
5337
5337
|
const $905f4ae918aab1aa$export$a23b55cde55ad9a5 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5338
5338
|
const { __scopeAlertDialog, ...descriptionProps } = props;
|
|
5339
5339
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5340
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d, _extends$
|
|
5340
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$393edc798c47379d, _extends$x({}, dialogScope, descriptionProps, {
|
|
5341
5341
|
ref: forwardedRef
|
|
5342
5342
|
}));
|
|
5343
5343
|
});
|
|
5344
5344
|
const $905f4ae918aab1aa$export$b454f818c58ee85d = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
5345
5345
|
const { __scopeAlertDialog, ...actionProps } = props;
|
|
5346
5346
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5347
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$
|
|
5347
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$x({}, dialogScope, actionProps, {
|
|
5348
5348
|
ref: forwardedRef
|
|
5349
5349
|
}));
|
|
5350
5350
|
});
|
|
@@ -5354,7 +5354,7 @@ const $905f4ae918aab1aa$export$2f67a923571aaea0 = /* @__PURE__ */ React.forwardR
|
|
|
5354
5354
|
const { cancelRef } = $905f4ae918aab1aa$var$useAlertDialogContentContext($905f4ae918aab1aa$var$CANCEL_NAME, __scopeAlertDialog);
|
|
5355
5355
|
const dialogScope = $905f4ae918aab1aa$var$useDialogScope(__scopeAlertDialog);
|
|
5356
5356
|
const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, cancelRef);
|
|
5357
|
-
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$
|
|
5357
|
+
return /* @__PURE__ */ React.createElement($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, _extends$x({}, dialogScope, cancelProps, {
|
|
5358
5358
|
ref
|
|
5359
5359
|
}));
|
|
5360
5360
|
});
|
|
@@ -10574,7 +10574,7 @@ const arrow$1 = (options) => {
|
|
|
10574
10574
|
};
|
|
10575
10575
|
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
10576
10576
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
10577
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends$
|
|
10577
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.svg, _extends$x({}, arrowProps, {
|
|
10578
10578
|
ref: forwardedRef,
|
|
10579
10579
|
width,
|
|
10580
10580
|
height,
|
|
@@ -10649,7 +10649,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /* @__PURE__ */ React.forwardRe
|
|
|
10649
10649
|
React.useEffect(() => {
|
|
10650
10650
|
context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
|
|
10651
10651
|
});
|
|
10652
|
-
return virtualRef ? null : /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
10652
|
+
return virtualRef ? null : /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, anchorProps, {
|
|
10653
10653
|
ref: composedRefs
|
|
10654
10654
|
}));
|
|
10655
10655
|
});
|
|
@@ -10841,7 +10841,7 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /* @__PURE__ */ React.forwardR
|
|
|
10841
10841
|
}[contentContext.placedSide],
|
|
10842
10842
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
10843
10843
|
}
|
|
10844
|
-
}, /* @__PURE__ */ React.createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$
|
|
10844
|
+
}, /* @__PURE__ */ React.createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$x({}, arrowProps, {
|
|
10845
10845
|
ref: forwardedRef,
|
|
10846
10846
|
style: {
|
|
10847
10847
|
...arrowProps.style,
|
|
@@ -10913,7 +10913,7 @@ const $cf1ac5d9fe0e8206$export$b688253958b8dfe7 = $cf1ac5d9fe0e8206$export$ecd4e
|
|
|
10913
10913
|
const $cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2 = $cf1ac5d9fe0e8206$export$bc4ae5855d3c4fc;
|
|
10914
10914
|
const $cf1ac5d9fe0e8206$export$21b07c8f274aebd5 = $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0;
|
|
10915
10915
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
10916
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
10916
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({}, props, {
|
|
10917
10917
|
ref: forwardedRef,
|
|
10918
10918
|
style: {
|
|
10919
10919
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -11074,9 +11074,9 @@ const $a093c7e1ec25a057$export$8c610744efcf8a1d = /* @__PURE__ */ React.forwardR
|
|
|
11074
11074
|
}, [
|
|
11075
11075
|
handlePointerUp
|
|
11076
11076
|
]);
|
|
11077
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
11077
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
11078
11078
|
asChild: true
|
|
11079
|
-
}, popperScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
11079
|
+
}, popperScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
11080
11080
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
11081
11081
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
11082
11082
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
@@ -11131,11 +11131,11 @@ const $a093c7e1ec25a057$export$e9003e2be37ec060 = /* @__PURE__ */ React.forwardR
|
|
|
11131
11131
|
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
11132
11132
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
11133
11133
|
present: forceMount || context.open
|
|
11134
|
-
}, context.disableHoverableContent ? /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
11134
|
+
}, context.disableHoverableContent ? /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$x({
|
|
11135
11135
|
side
|
|
11136
11136
|
}, contentProps, {
|
|
11137
11137
|
ref: forwardedRef
|
|
11138
|
-
})) : /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$
|
|
11138
|
+
})) : /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$x({
|
|
11139
11139
|
side
|
|
11140
11140
|
}, contentProps, {
|
|
11141
11141
|
ref: forwardedRef
|
|
@@ -11230,7 +11230,7 @@ const $a093c7e1ec25a057$var$TooltipContentHoverable = /* @__PURE__ */ React.forw
|
|
|
11230
11230
|
onClose,
|
|
11231
11231
|
handleRemoveGraceArea
|
|
11232
11232
|
]);
|
|
11233
|
-
return /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
11233
|
+
return /* @__PURE__ */ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$x({}, props, {
|
|
11234
11234
|
ref: composedRefs
|
|
11235
11235
|
}));
|
|
11236
11236
|
});
|
|
@@ -11272,7 +11272,7 @@ const $a093c7e1ec25a057$var$TooltipContentImpl = /* @__PURE__ */ React.forwardRe
|
|
|
11272
11272
|
onPointerDownOutside,
|
|
11273
11273
|
onFocusOutside: (event) => event.preventDefault(),
|
|
11274
11274
|
onDismiss: onClose
|
|
11275
|
-
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
11275
|
+
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
11276
11276
|
"data-state": context.stateAttribute
|
|
11277
11277
|
}, popperScope, contentProps, {
|
|
11278
11278
|
ref: forwardedRef,
|
|
@@ -11294,7 +11294,7 @@ const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /* @__PURE__ */ React.forwardR
|
|
|
11294
11294
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
11295
11295
|
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
11296
11296
|
const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip);
|
|
11297
|
-
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
11297
|
+
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
11298
11298
|
ref: forwardedRef
|
|
11299
11299
|
}));
|
|
11300
11300
|
});
|
|
@@ -24040,7 +24040,7 @@ const $e698a72e93240346$export$48513f6b9f8ce62d = /* @__PURE__ */ React.forwardR
|
|
|
24040
24040
|
scope: __scopeCheckbox,
|
|
24041
24041
|
state: checked,
|
|
24042
24042
|
disabled
|
|
24043
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24043
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24044
24044
|
type: "button",
|
|
24045
24045
|
role: "checkbox",
|
|
24046
24046
|
"aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? "mixed" : checked,
|
|
@@ -24082,7 +24082,7 @@ const $e698a72e93240346$export$59aad738f51d1c05 = /* @__PURE__ */ React.forwardR
|
|
|
24082
24082
|
const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
|
|
24083
24083
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
24084
24084
|
present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
|
|
24085
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
24085
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
24086
24086
|
"data-state": $e698a72e93240346$var$getState(context.state),
|
|
24087
24087
|
"data-disabled": context.disabled ? "" : void 0
|
|
24088
24088
|
}, indicatorProps, {
|
|
@@ -24116,7 +24116,7 @@ const $e698a72e93240346$var$BubbleInput = (props) => {
|
|
|
24116
24116
|
checked,
|
|
24117
24117
|
bubbles
|
|
24118
24118
|
]);
|
|
24119
|
-
return /* @__PURE__ */ React.createElement("input", _extends$
|
|
24119
|
+
return /* @__PURE__ */ React.createElement("input", _extends$x({
|
|
24120
24120
|
type: "checkbox",
|
|
24121
24121
|
"aria-hidden": true,
|
|
24122
24122
|
defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
|
|
@@ -24299,7 +24299,7 @@ const $cb5cc270b50c6fcd$export$96e5381f42521a79 = /* @__PURE__ */ React.forwardR
|
|
|
24299
24299
|
onCustomAnchorAdd,
|
|
24300
24300
|
onCustomAnchorRemove
|
|
24301
24301
|
]);
|
|
24302
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
24302
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({}, popperScope, anchorProps, {
|
|
24303
24303
|
ref: forwardedRef
|
|
24304
24304
|
}));
|
|
24305
24305
|
});
|
|
@@ -24309,7 +24309,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ React.forwardRe
|
|
|
24309
24309
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$TRIGGER_NAME, __scopePopover);
|
|
24310
24310
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
24311
24311
|
const composedTriggerRef = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.triggerRef);
|
|
24312
|
-
const trigger = /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24312
|
+
const trigger = /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24313
24313
|
type: "button",
|
|
24314
24314
|
"aria-haspopup": "dialog",
|
|
24315
24315
|
"aria-expanded": context.open,
|
|
@@ -24319,7 +24319,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /* @__PURE__ */ React.forwardRe
|
|
|
24319
24319
|
ref: composedTriggerRef,
|
|
24320
24320
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
|
|
24321
24321
|
}));
|
|
24322
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
24322
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
24323
24323
|
asChild: true
|
|
24324
24324
|
}, popperScope), trigger);
|
|
24325
24325
|
});
|
|
@@ -24347,9 +24347,9 @@ const $cb5cc270b50c6fcd$export$d7e1f420b25549ff = /* @__PURE__ */ React.forwardR
|
|
|
24347
24347
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
24348
24348
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
24349
24349
|
present: forceMount || context.open
|
|
24350
|
-
}, context.modal ? /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$
|
|
24350
|
+
}, context.modal ? /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentModal, _extends$x({}, contentProps, {
|
|
24351
24351
|
ref: forwardedRef
|
|
24352
|
-
})) : /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$
|
|
24352
|
+
})) : /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentNonModal, _extends$x({}, contentProps, {
|
|
24353
24353
|
ref: forwardedRef
|
|
24354
24354
|
})));
|
|
24355
24355
|
});
|
|
@@ -24365,7 +24365,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ React.forwardR
|
|
|
24365
24365
|
return /* @__PURE__ */ React.createElement(ReactRemoveScroll, {
|
|
24366
24366
|
as: $5e63c961fc1ce211$export$8c6ed5c666ac1360$1,
|
|
24367
24367
|
allowPinchZoom: true
|
|
24368
|
-
}, /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$
|
|
24368
|
+
}, /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$x({}, props, {
|
|
24369
24369
|
ref: composedRefs,
|
|
24370
24370
|
trapFocus: context.open,
|
|
24371
24371
|
disableOutsidePointerEvents: true,
|
|
@@ -24394,7 +24394,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentModal = /* @__PURE__ */ React.forwardR
|
|
|
24394
24394
|
const $cb5cc270b50c6fcd$var$PopoverContentNonModal = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
24395
24395
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CONTENT_NAME, props.__scopePopover);
|
|
24396
24396
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
24397
|
-
return /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$
|
|
24397
|
+
return /* @__PURE__ */ React.createElement($cb5cc270b50c6fcd$var$PopoverContentImpl, _extends$x({}, props, {
|
|
24398
24398
|
ref: forwardedRef,
|
|
24399
24399
|
trapFocus: false,
|
|
24400
24400
|
disableOutsidePointerEvents: false,
|
|
@@ -24437,7 +24437,7 @@ const $cb5cc270b50c6fcd$var$PopoverContentImpl = /* @__PURE__ */ React.forwardRe
|
|
|
24437
24437
|
onPointerDownOutside,
|
|
24438
24438
|
onFocusOutside,
|
|
24439
24439
|
onDismiss: () => context.onOpenChange(false)
|
|
24440
|
-
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
24440
|
+
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
24441
24441
|
"data-state": $cb5cc270b50c6fcd$var$getState(context.open),
|
|
24442
24442
|
role: "dialog",
|
|
24443
24443
|
id: context.contentId
|
|
@@ -24454,7 +24454,7 @@ const $cb5cc270b50c6fcd$var$CLOSE_NAME = "PopoverClose";
|
|
|
24454
24454
|
const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
24455
24455
|
const { __scopePopover, ...closeProps } = props;
|
|
24456
24456
|
const context = $cb5cc270b50c6fcd$var$usePopoverContext($cb5cc270b50c6fcd$var$CLOSE_NAME, __scopePopover);
|
|
24457
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
24457
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
24458
24458
|
type: "button"
|
|
24459
24459
|
}, closeProps, {
|
|
24460
24460
|
ref: forwardedRef,
|
|
@@ -24467,7 +24467,7 @@ const $cb5cc270b50c6fcd$export$d6ac43ebaa40d53e = /* @__PURE__ */ React.forwardR
|
|
|
24467
24467
|
const $cb5cc270b50c6fcd$export$3152841115e061b2 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
24468
24468
|
const { __scopePopover, ...arrowProps } = props;
|
|
24469
24469
|
const popperScope = $cb5cc270b50c6fcd$var$usePopperScope(__scopePopover);
|
|
24470
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
24470
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
24471
24471
|
ref: forwardedRef
|
|
24472
24472
|
}));
|
|
24473
24473
|
});
|
|
@@ -24513,7 +24513,7 @@ const getButtonStateClasses = (invalid, disabled = false) => {
|
|
|
24513
24513
|
}
|
|
24514
24514
|
return "border border-grey-300 group-peer-hover:enabled:border-grey-500 transition-colors transition-opacity ease-in";
|
|
24515
24515
|
};
|
|
24516
|
-
const debounce$
|
|
24516
|
+
const debounce$3 = (fn, delay) => {
|
|
24517
24517
|
let timeoutId;
|
|
24518
24518
|
return function(...args) {
|
|
24519
24519
|
clearTimeout(timeoutId);
|
|
@@ -24533,7 +24533,7 @@ const useBoundingClientRectListener = (ref, dependencies) => {
|
|
|
24533
24533
|
};
|
|
24534
24534
|
React__namespace.useEffect(() => {
|
|
24535
24535
|
const timeout = setTimeout(resize, 0);
|
|
24536
|
-
const debouncedResize = debounce$
|
|
24536
|
+
const debouncedResize = debounce$3(resize, 250);
|
|
24537
24537
|
window.addEventListener("resize", debouncedResize);
|
|
24538
24538
|
return () => {
|
|
24539
24539
|
clearTimeout(timeout);
|
|
@@ -24967,7 +24967,7 @@ function requireDebounce() {
|
|
|
24967
24967
|
return debounce_1;
|
|
24968
24968
|
}
|
|
24969
24969
|
var debounceExports = requireDebounce();
|
|
24970
|
-
const debounce$
|
|
24970
|
+
const debounce$2 = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
|
24971
24971
|
const getNextIndexFromKey = (key, length, index2, direction = "vertical") => {
|
|
24972
24972
|
const previousKey = direction === "horizontal" ? "ArrowLeft" : "ArrowUp";
|
|
24973
24973
|
const nextKey = direction === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
@@ -25318,7 +25318,7 @@ const filterData = (data, value = "") => {
|
|
|
25318
25318
|
});
|
|
25319
25319
|
return data.filter(({ value: value2 }) => filteredOptionValues.has(value2));
|
|
25320
25320
|
};
|
|
25321
|
-
const debouncer = debounce$
|
|
25321
|
+
const debouncer = debounce$2((f2) => f2(), 200);
|
|
25322
25322
|
const convertToInputValue = (value) => String(value ?? "");
|
|
25323
25323
|
const useCombobox = (props, ref) => {
|
|
25324
25324
|
const {
|
|
@@ -32780,7 +32780,7 @@ const $57acba87d6e25586$export$ccf8d8d7bbf3c2cc = /* @__PURE__ */ React.forwardR
|
|
|
32780
32780
|
onScrollbarYEnabledChange: setScrollbarYEnabled,
|
|
32781
32781
|
onCornerWidthChange: setCornerWidth,
|
|
32782
32782
|
onCornerHeightChange: setCornerHeight
|
|
32783
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
32783
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
32784
32784
|
dir: direction
|
|
32785
32785
|
}, scrollAreaProps, {
|
|
32786
32786
|
ref: composedRefs,
|
|
@@ -32803,7 +32803,7 @@ const $57acba87d6e25586$export$a21cbf9f11fca853 = /* @__PURE__ */ React.forwardR
|
|
|
32803
32803
|
dangerouslySetInnerHTML: {
|
|
32804
32804
|
__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}`
|
|
32805
32805
|
}
|
|
32806
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
32806
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
32807
32807
|
"data-radix-scroll-area-viewport": ""
|
|
32808
32808
|
}, viewportProps, {
|
|
32809
32809
|
ref: composedRefs,
|
|
@@ -32847,16 +32847,16 @@ const $57acba87d6e25586$export$2fabd85d0eba3c57 = /* @__PURE__ */ React.forwardR
|
|
|
32847
32847
|
onScrollbarXEnabledChange,
|
|
32848
32848
|
onScrollbarYEnabledChange
|
|
32849
32849
|
]);
|
|
32850
|
-
return context.type === "hover" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$
|
|
32850
|
+
return context.type === "hover" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$x({}, scrollbarProps, {
|
|
32851
32851
|
ref: forwardedRef,
|
|
32852
32852
|
forceMount
|
|
32853
|
-
})) : context.type === "scroll" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$
|
|
32853
|
+
})) : context.type === "scroll" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$x({}, scrollbarProps, {
|
|
32854
32854
|
ref: forwardedRef,
|
|
32855
32855
|
forceMount
|
|
32856
|
-
})) : context.type === "auto" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$
|
|
32856
|
+
})) : context.type === "auto" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$x({}, scrollbarProps, {
|
|
32857
32857
|
ref: forwardedRef,
|
|
32858
32858
|
forceMount
|
|
32859
|
-
})) : context.type === "always" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32859
|
+
})) : context.type === "always" ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({}, scrollbarProps, {
|
|
32860
32860
|
ref: forwardedRef
|
|
32861
32861
|
})) : null;
|
|
32862
32862
|
});
|
|
@@ -32892,7 +32892,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarHover = /* @__PURE__ */ React.for
|
|
|
32892
32892
|
]);
|
|
32893
32893
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32894
32894
|
present: forceMount || visible
|
|
32895
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$
|
|
32895
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$x({
|
|
32896
32896
|
"data-state": visible ? "visible" : "hidden"
|
|
32897
32897
|
}, scrollbarProps, {
|
|
32898
32898
|
ref: forwardedRef
|
|
@@ -32962,7 +32962,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarScroll = /* @__PURE__ */ React.fo
|
|
|
32962
32962
|
]);
|
|
32963
32963
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32964
32964
|
present: forceMount || state !== "hidden"
|
|
32965
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32965
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({
|
|
32966
32966
|
"data-state": state === "hidden" ? "hidden" : "visible"
|
|
32967
32967
|
}, scrollbarProps, {
|
|
32968
32968
|
ref: forwardedRef,
|
|
@@ -32992,7 +32992,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarAuto = /* @__PURE__ */ React.forw
|
|
|
32992
32992
|
$57acba87d6e25586$var$useResizeObserver(context.content, handleResize);
|
|
32993
32993
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
32994
32994
|
present: forceMount || visible
|
|
32995
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$
|
|
32995
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$x({
|
|
32996
32996
|
"data-state": visible ? "visible" : "hidden"
|
|
32997
32997
|
}, scrollbarProps, {
|
|
32998
32998
|
ref: forwardedRef
|
|
@@ -33025,7 +33025,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ React.f
|
|
|
33025
33025
|
function getScrollPosition2(pointerPos, dir) {
|
|
33026
33026
|
return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);
|
|
33027
33027
|
}
|
|
33028
|
-
if (orientation === "horizontal") return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$
|
|
33028
|
+
if (orientation === "horizontal") return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$x({}, commonProps, {
|
|
33029
33029
|
ref: forwardedRef,
|
|
33030
33030
|
onThumbPositionChange: () => {
|
|
33031
33031
|
if (context.viewport && thumbRef.current) {
|
|
@@ -33041,7 +33041,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ React.f
|
|
|
33041
33041
|
if (context.viewport) context.viewport.scrollLeft = getScrollPosition2(pointerPos, context.dir);
|
|
33042
33042
|
}
|
|
33043
33043
|
}));
|
|
33044
|
-
if (orientation === "vertical") return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$
|
|
33044
|
+
if (orientation === "vertical") return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$x({}, commonProps, {
|
|
33045
33045
|
ref: forwardedRef,
|
|
33046
33046
|
onThumbPositionChange: () => {
|
|
33047
33047
|
if (context.viewport && thumbRef.current) {
|
|
@@ -33070,7 +33070,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarX = /* @__PURE__ */ React.forward
|
|
|
33070
33070
|
}, [
|
|
33071
33071
|
ref
|
|
33072
33072
|
]);
|
|
33073
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$
|
|
33073
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$x({
|
|
33074
33074
|
"data-orientation": "horizontal"
|
|
33075
33075
|
}, scrollbarProps, {
|
|
33076
33076
|
ref: composeRefs,
|
|
@@ -33115,7 +33115,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarY = /* @__PURE__ */ React.forward
|
|
|
33115
33115
|
}, [
|
|
33116
33116
|
ref
|
|
33117
33117
|
]);
|
|
33118
|
-
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$
|
|
33118
|
+
return /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$x({
|
|
33119
33119
|
"data-orientation": "vertical"
|
|
33120
33120
|
}, scrollbarProps, {
|
|
33121
33121
|
ref: composeRefs,
|
|
@@ -33208,7 +33208,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarImpl = /* @__PURE__ */ React.forw
|
|
|
33208
33208
|
onThumbPointerUp: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onThumbPointerUp),
|
|
33209
33209
|
onThumbPositionChange: handleThumbPositionChange,
|
|
33210
33210
|
onThumbPointerDown: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onThumbPointerDown)
|
|
33211
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33211
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, scrollbarProps, {
|
|
33212
33212
|
ref: composeRefs,
|
|
33213
33213
|
style: {
|
|
33214
33214
|
position: "absolute",
|
|
@@ -33240,7 +33240,7 @@ const $57acba87d6e25586$export$9fba1154677d7cd2 = /* @__PURE__ */ React.forwardR
|
|
|
33240
33240
|
const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea);
|
|
33241
33241
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
33242
33242
|
present: forceMount || scrollbarContext.hasThumb
|
|
33243
|
-
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$
|
|
33243
|
+
}, /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$x({
|
|
33244
33244
|
ref: forwardedRef
|
|
33245
33245
|
}, thumbProps)));
|
|
33246
33246
|
});
|
|
@@ -33280,7 +33280,7 @@ const $57acba87d6e25586$var$ScrollAreaThumbImpl = /* @__PURE__ */ React.forwardR
|
|
|
33280
33280
|
debounceScrollEnd,
|
|
33281
33281
|
onThumbPositionChange
|
|
33282
33282
|
]);
|
|
33283
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33283
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
33284
33284
|
"data-state": scrollbarContext.hasThumb ? "visible" : "hidden"
|
|
33285
33285
|
}, thumbProps, {
|
|
33286
33286
|
ref: composedRef,
|
|
@@ -33307,7 +33307,7 @@ const $57acba87d6e25586$export$56969d565df7cc4b = /* @__PURE__ */ React.forwardR
|
|
|
33307
33307
|
const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea);
|
|
33308
33308
|
const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);
|
|
33309
33309
|
const hasCorner = context.type !== "scroll" && hasBothScrollbarsVisible;
|
|
33310
|
-
return hasCorner ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$
|
|
33310
|
+
return hasCorner ? /* @__PURE__ */ React.createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$x({}, props, {
|
|
33311
33311
|
ref: forwardedRef
|
|
33312
33312
|
})) : null;
|
|
33313
33313
|
});
|
|
@@ -33329,7 +33329,7 @@ const $57acba87d6e25586$var$ScrollAreaCornerImpl = /* @__PURE__ */ React.forward
|
|
|
33329
33329
|
context.onCornerWidthChange(width);
|
|
33330
33330
|
setWidth(width);
|
|
33331
33331
|
});
|
|
33332
|
-
return hasSize ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
33332
|
+
return hasSize ? /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, cornerProps, {
|
|
33333
33333
|
ref: forwardedRef,
|
|
33334
33334
|
style: {
|
|
33335
33335
|
width: width1,
|
|
@@ -33969,9 +33969,9 @@ const $cef8881cdc69808e$export$ef9f7fd8e4ba882f = /* @__PURE__ */ React.forwardR
|
|
|
33969
33969
|
const { __scopeHoverCard, ...triggerProps } = props;
|
|
33970
33970
|
const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$TRIGGER_NAME, __scopeHoverCard);
|
|
33971
33971
|
const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
|
|
33972
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
33972
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({
|
|
33973
33973
|
asChild: true
|
|
33974
|
-
}, popperScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.a, _extends$
|
|
33974
|
+
}, popperScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.a, _extends$x({
|
|
33975
33975
|
"data-state": context.open ? "open" : "closed"
|
|
33976
33976
|
}, triggerProps, {
|
|
33977
33977
|
ref: forwardedRef,
|
|
@@ -34009,7 +34009,7 @@ const $cef8881cdc69808e$export$aa4724a5938c586 = /* @__PURE__ */ React.forwardRe
|
|
|
34009
34009
|
const context = $cef8881cdc69808e$var$useHoverCardContext($cef8881cdc69808e$var$CONTENT_NAME, props.__scopeHoverCard);
|
|
34010
34010
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
34011
34011
|
present: forceMount || context.open
|
|
34012
|
-
}, /* @__PURE__ */ React.createElement($cef8881cdc69808e$var$HoverCardContentImpl, _extends$
|
|
34012
|
+
}, /* @__PURE__ */ React.createElement($cef8881cdc69808e$var$HoverCardContentImpl, _extends$x({
|
|
34013
34013
|
"data-state": context.open ? "open" : "closed"
|
|
34014
34014
|
}, contentProps, {
|
|
34015
34015
|
onPointerEnter: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onPointerEnter, $cef8881cdc69808e$var$excludeTouch(context.onOpen)),
|
|
@@ -34078,7 +34078,7 @@ const $cef8881cdc69808e$var$HoverCardContentImpl = /* @__PURE__ */ React.forward
|
|
|
34078
34078
|
event.preventDefault();
|
|
34079
34079
|
}),
|
|
34080
34080
|
onDismiss: context.onDismiss
|
|
34081
|
-
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
34081
|
+
}, /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({}, popperScope, contentProps, {
|
|
34082
34082
|
onPointerDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(contentProps.onPointerDown, (event) => {
|
|
34083
34083
|
if (event.currentTarget.contains(event.target)) setContainSelection(true);
|
|
34084
34084
|
context.hasSelectionRef.current = false;
|
|
@@ -34098,7 +34098,7 @@ const $cef8881cdc69808e$var$HoverCardContentImpl = /* @__PURE__ */ React.forward
|
|
|
34098
34098
|
const $cef8881cdc69808e$export$b9744d3e7456d806 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
34099
34099
|
const { __scopeHoverCard, ...arrowProps } = props;
|
|
34100
34100
|
const popperScope = $cef8881cdc69808e$var$usePopperScope(__scopeHoverCard);
|
|
34101
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
34101
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$x({}, popperScope, arrowProps, {
|
|
34102
34102
|
ref: forwardedRef
|
|
34103
34103
|
}));
|
|
34104
34104
|
});
|
|
@@ -34358,11 +34358,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ React.forwardR
|
|
|
34358
34358
|
return /* @__PURE__ */ React.isValidElement(newElement) ? newElement.props.children : null;
|
|
34359
34359
|
} else return child;
|
|
34360
34360
|
});
|
|
34361
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
34361
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$x({}, slotProps, {
|
|
34362
34362
|
ref: forwardedRef
|
|
34363
34363
|
}), /* @__PURE__ */ React.isValidElement(newElement) ? /* @__PURE__ */ React.cloneElement(newElement, void 0, newChildren) : null);
|
|
34364
34364
|
}
|
|
34365
|
-
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
34365
|
+
return /* @__PURE__ */ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$x({}, slotProps, {
|
|
34366
34366
|
ref: forwardedRef
|
|
34367
34367
|
}), children);
|
|
34368
34368
|
});
|
|
@@ -34435,7 +34435,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
34435
34435
|
React.useEffect(() => {
|
|
34436
34436
|
window[Symbol.for("radix-ui")] = true;
|
|
34437
34437
|
}, []);
|
|
34438
|
-
return /* @__PURE__ */ React.createElement(Comp, _extends$
|
|
34438
|
+
return /* @__PURE__ */ React.createElement(Comp, _extends$x({}, primitiveProps, {
|
|
34439
34439
|
ref: forwardedRef
|
|
34440
34440
|
}));
|
|
34441
34441
|
});
|
|
@@ -34588,7 +34588,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /* @__PURE__ */ React.forwardR
|
|
|
34588
34588
|
setOpen
|
|
34589
34589
|
]
|
|
34590
34590
|
)
|
|
34591
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
34591
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$x({
|
|
34592
34592
|
"data-state": $409067139f391064$var$getState(open),
|
|
34593
34593
|
"data-disabled": disabled ? "" : void 0
|
|
34594
34594
|
}, collapsibleProps, {
|
|
@@ -34599,7 +34599,7 @@ const $409067139f391064$var$TRIGGER_NAME = "CollapsibleTrigger";
|
|
|
34599
34599
|
const $409067139f391064$export$c135dce7b15bbbdc = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
34600
34600
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
34601
34601
|
const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
|
|
34602
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
34602
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$x({
|
|
34603
34603
|
type: "button",
|
|
34604
34604
|
"aria-controls": context.contentId,
|
|
34605
34605
|
"aria-expanded": context.open || false,
|
|
@@ -34620,7 +34620,7 @@ const $409067139f391064$export$aadde00976f34151 = /* @__PURE__ */ React.forwardR
|
|
|
34620
34620
|
{
|
|
34621
34621
|
present: forceMount || context.open
|
|
34622
34622
|
},
|
|
34623
|
-
({ present }) => /* @__PURE__ */ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends$
|
|
34623
|
+
({ present }) => /* @__PURE__ */ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends$x({}, contentProps, {
|
|
34624
34624
|
ref: forwardedRef,
|
|
34625
34625
|
present
|
|
34626
34626
|
}))
|
|
@@ -34667,7 +34667,7 @@ const $409067139f391064$var$CollapsibleContentImpl = /* @__PURE__ */ React.forwa
|
|
|
34667
34667
|
context.open,
|
|
34668
34668
|
present
|
|
34669
34669
|
]);
|
|
34670
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
34670
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$x({
|
|
34671
34671
|
"data-state": $409067139f391064$var$getState(context.open),
|
|
34672
34672
|
"data-disabled": context.disabled ? "" : void 0,
|
|
34673
34673
|
id: context.contentId,
|
|
@@ -34714,7 +34714,7 @@ const $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /* @__PURE__ */ React.forwardR
|
|
|
34714
34714
|
scope: __scopeSwitch,
|
|
34715
34715
|
checked,
|
|
34716
34716
|
disabled
|
|
34717
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
34717
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
34718
34718
|
type: "button",
|
|
34719
34719
|
role: "switch",
|
|
34720
34720
|
"aria-checked": checked,
|
|
@@ -34751,7 +34751,7 @@ const $6be4966fd9bbc698$var$THUMB_NAME = "SwitchThumb";
|
|
|
34751
34751
|
const $6be4966fd9bbc698$export$4d07bf653ea69106 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
34752
34752
|
const { __scopeSwitch, ...thumbProps } = props;
|
|
34753
34753
|
const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);
|
|
34754
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
34754
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
34755
34755
|
"data-state": $6be4966fd9bbc698$var$getState(context.checked),
|
|
34756
34756
|
"data-disabled": context.disabled ? "" : void 0
|
|
34757
34757
|
}, thumbProps, {
|
|
@@ -34780,7 +34780,7 @@ const $6be4966fd9bbc698$var$BubbleInput = (props) => {
|
|
|
34780
34780
|
checked,
|
|
34781
34781
|
bubbles
|
|
34782
34782
|
]);
|
|
34783
|
-
return /* @__PURE__ */ React.createElement("input", _extends$
|
|
34783
|
+
return /* @__PURE__ */ React.createElement("input", _extends$x({
|
|
34784
34784
|
type: "checkbox",
|
|
34785
34785
|
"aria-hidden": true,
|
|
34786
34786
|
defaultChecked: checked
|
|
@@ -35358,7 +35358,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ React.forwardR
|
|
|
35358
35358
|
scope: props.__scopeRovingFocusGroup
|
|
35359
35359
|
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
35360
35360
|
scope: props.__scopeRovingFocusGroup
|
|
35361
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$
|
|
35361
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$x({}, props, {
|
|
35362
35362
|
ref: forwardedRef
|
|
35363
35363
|
}))));
|
|
35364
35364
|
});
|
|
@@ -35414,7 +35414,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ React.forward
|
|
|
35414
35414
|
),
|
|
35415
35415
|
[]
|
|
35416
35416
|
)
|
|
35417
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35417
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
35418
35418
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
35419
35419
|
"data-orientation": orientation
|
|
35420
35420
|
}, groupProps, {
|
|
@@ -35483,7 +35483,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ React.forwardRe
|
|
|
35483
35483
|
id: id2,
|
|
35484
35484
|
focusable,
|
|
35485
35485
|
active
|
|
35486
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
35486
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({
|
|
35487
35487
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
35488
35488
|
"data-orientation": context.orientation
|
|
35489
35489
|
}, itemProps, {
|
|
@@ -35669,7 +35669,7 @@ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props) => {
|
|
|
35669
35669
|
const $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
35670
35670
|
const { __scopeMenu, ...anchorProps } = props;
|
|
35671
35671
|
const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
|
|
35672
|
-
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
35672
|
+
return /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$x({}, popperScope, anchorProps, {
|
|
35673
35673
|
ref: forwardedRef
|
|
35674
35674
|
}));
|
|
35675
35675
|
});
|
|
@@ -35703,9 +35703,9 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /* @__PURE__ */ React.forwardR
|
|
|
35703
35703
|
present: forceMount || context.open
|
|
35704
35704
|
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$Collection.Slot, {
|
|
35705
35705
|
scope: props.__scopeMenu
|
|
35706
|
-
}, rootContext.modal ? /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$
|
|
35706
|
+
}, rootContext.modal ? /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$x({}, contentProps, {
|
|
35707
35707
|
ref: forwardedRef
|
|
35708
|
-
})) : /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$
|
|
35708
|
+
})) : /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$x({}, contentProps, {
|
|
35709
35709
|
ref: forwardedRef
|
|
35710
35710
|
})))));
|
|
35711
35711
|
});
|
|
@@ -35717,7 +35717,7 @@ const $6cc32821e9371a1c$var$MenuRootContentModal = /* @__PURE__ */ React.forward
|
|
|
35717
35717
|
const content = ref.current;
|
|
35718
35718
|
if (content) return hideOthers(content);
|
|
35719
35719
|
}, []);
|
|
35720
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
35720
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({}, props, {
|
|
35721
35721
|
ref: composedRefs,
|
|
35722
35722
|
trapFocus: context.open,
|
|
35723
35723
|
disableOutsidePointerEvents: context.open,
|
|
@@ -35734,7 +35734,7 @@ const $6cc32821e9371a1c$var$MenuRootContentModal = /* @__PURE__ */ React.forward
|
|
|
35734
35734
|
});
|
|
35735
35735
|
const $6cc32821e9371a1c$var$MenuRootContentNonModal = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
35736
35736
|
const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);
|
|
35737
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
35737
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({}, props, {
|
|
35738
35738
|
ref: forwardedRef,
|
|
35739
35739
|
trapFocus: false,
|
|
35740
35740
|
disableOutsidePointerEvents: false,
|
|
@@ -35844,7 +35844,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ React.forwardRef((
|
|
|
35844
35844
|
onFocusOutside,
|
|
35845
35845
|
onInteractOutside,
|
|
35846
35846
|
onDismiss
|
|
35847
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
35847
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$x({
|
|
35848
35848
|
asChild: true
|
|
35849
35849
|
}, rovingFocusGroupScope, {
|
|
35850
35850
|
dir: rootContext.dir,
|
|
@@ -35855,7 +35855,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ React.forwardRef((
|
|
|
35855
35855
|
onEntryFocus: (event) => {
|
|
35856
35856
|
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
35857
35857
|
}
|
|
35858
|
-
}), /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
35858
|
+
}), /* @__PURE__ */ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$x({
|
|
35859
35859
|
role: "menu",
|
|
35860
35860
|
"aria-orientation": "vertical",
|
|
35861
35861
|
"data-state": $6cc32821e9371a1c$var$getOpenState(context.open),
|
|
@@ -35908,7 +35908,7 @@ const $6cc32821e9371a1c$var$MenuContentImpl = /* @__PURE__ */ React.forwardRef((
|
|
|
35908
35908
|
});
|
|
35909
35909
|
const $6cc32821e9371a1c$export$22a631d1f72787bb = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
35910
35910
|
const { __scopeMenu, ...groupProps } = props;
|
|
35911
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35911
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
35912
35912
|
role: "group"
|
|
35913
35913
|
}, groupProps, {
|
|
35914
35914
|
ref: forwardedRef
|
|
@@ -35916,7 +35916,7 @@ const $6cc32821e9371a1c$export$22a631d1f72787bb = /* @__PURE__ */ React.forwardR
|
|
|
35916
35916
|
});
|
|
35917
35917
|
const $6cc32821e9371a1c$export$dd37bec0e8a99143 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
35918
35918
|
const { __scopeMenu, ...labelProps } = props;
|
|
35919
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35919
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({}, labelProps, {
|
|
35920
35920
|
ref: forwardedRef
|
|
35921
35921
|
}));
|
|
35922
35922
|
});
|
|
@@ -35948,7 +35948,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /* @__PURE__ */ React.forwardR
|
|
|
35948
35948
|
else rootContext.onClose();
|
|
35949
35949
|
}
|
|
35950
35950
|
};
|
|
35951
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$
|
|
35951
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$x({}, itemProps, {
|
|
35952
35952
|
ref: composedRefs,
|
|
35953
35953
|
disabled,
|
|
35954
35954
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, handleSelect),
|
|
@@ -35992,11 +35992,11 @@ const $6cc32821e9371a1c$var$MenuItemImpl = /* @__PURE__ */ React.forwardRef((pro
|
|
|
35992
35992
|
scope: __scopeMenu,
|
|
35993
35993
|
disabled,
|
|
35994
35994
|
textValue: textValue !== null && textValue !== void 0 ? textValue : textContent
|
|
35995
|
-
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
35995
|
+
}, /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$x({
|
|
35996
35996
|
asChild: true
|
|
35997
35997
|
}, rovingFocusGroupScope, {
|
|
35998
35998
|
focusable: !disabled
|
|
35999
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
35999
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
36000
36000
|
role: "menuitem",
|
|
36001
36001
|
"data-highlighted": isFocused ? "" : void 0,
|
|
36002
36002
|
"aria-disabled": disabled || void 0,
|
|
@@ -36031,7 +36031,7 @@ const $6cc32821e9371a1c$export$f6f243521332502d = /* @__PURE__ */ React.forwardR
|
|
|
36031
36031
|
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
36032
36032
|
scope: props.__scopeMenu,
|
|
36033
36033
|
checked
|
|
36034
|
-
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
36034
|
+
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$x({
|
|
36035
36035
|
role: "menuitemcheckbox",
|
|
36036
36036
|
"aria-checked": $6cc32821e9371a1c$var$isIndeterminate(checked) ? "mixed" : checked
|
|
36037
36037
|
}, checkboxItemProps, {
|
|
@@ -36059,7 +36059,7 @@ const $6cc32821e9371a1c$export$ea2200c9eee416b3 = /* @__PURE__ */ React.forwardR
|
|
|
36059
36059
|
scope: props.__scopeMenu,
|
|
36060
36060
|
value,
|
|
36061
36061
|
onValueChange: handleValueChange
|
|
36062
|
-
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$
|
|
36062
|
+
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$x({}, groupProps, {
|
|
36063
36063
|
ref: forwardedRef
|
|
36064
36064
|
})));
|
|
36065
36065
|
});
|
|
@@ -36071,7 +36071,7 @@ const $6cc32821e9371a1c$export$69bd225e9817f6d0 = /* @__PURE__ */ React.forwardR
|
|
|
36071
36071
|
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
36072
36072
|
scope: props.__scopeMenu,
|
|
36073
36073
|
checked
|
|
36074
|
-
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
36074
|
+
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$x({
|
|
36075
36075
|
role: "menuitemradio",
|
|
36076
36076
|
"aria-checked": checked
|
|
36077
36077
|
}, radioItemProps, {
|
|
@@ -36094,14 +36094,14 @@ const $6cc32821e9371a1c$export$a2593e23056970a3 = /* @__PURE__ */ React.forwardR
|
|
|
36094
36094
|
const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);
|
|
36095
36095
|
return /* @__PURE__ */ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
|
|
36096
36096
|
present: forceMount || $6cc32821e9371a1c$var$isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true
|
|
36097
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$
|
|
36097
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends$x({}, itemIndicatorProps, {
|
|
36098
36098
|
ref: forwardedRef,
|
|
36099
36099
|
"data-state": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)
|
|
36100
36100
|
})));
|
|
36101
36101
|
});
|
|
36102
36102
|
const $6cc32821e9371a1c$export$1cec7dcdd713e220 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36103
36103
|
const { __scopeMenu, ...separatorProps } = props;
|
|
36104
|
-
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
36104
|
+
return /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
36105
36105
|
role: "separator",
|
|
36106
36106
|
"aria-orientation": "horizontal"
|
|
36107
36107
|
}, separatorProps, {
|
|
@@ -36169,9 +36169,9 @@ const $6cc32821e9371a1c$export$5fbbb3ba7297405f = /* @__PURE__ */ React.forwardR
|
|
|
36169
36169
|
pointerGraceTimerRef,
|
|
36170
36170
|
onPointerGraceIntentChange
|
|
36171
36171
|
]);
|
|
36172
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, _extends$
|
|
36172
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$9fa5ebd18bee4d43, _extends$x({
|
|
36173
36173
|
asChild: true
|
|
36174
|
-
}, scope), /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$
|
|
36174
|
+
}, scope), /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$x({
|
|
36175
36175
|
id: subContext.triggerId,
|
|
36176
36176
|
"aria-haspopup": "menu",
|
|
36177
36177
|
"aria-expanded": context.open,
|
|
@@ -36272,7 +36272,7 @@ const $6cc32821e9371a1c$export$e7142ab31822bde6 = /* @__PURE__ */ React.forwardR
|
|
|
36272
36272
|
present: forceMount || context.open
|
|
36273
36273
|
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$Collection.Slot, {
|
|
36274
36274
|
scope: props.__scopeMenu
|
|
36275
|
-
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
36275
|
+
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$x({
|
|
36276
36276
|
id: subContext.contentId,
|
|
36277
36277
|
"aria-labelledby": subContext.triggerId
|
|
36278
36278
|
}, subContentProps, {
|
|
@@ -36411,7 +36411,7 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props) => {
|
|
|
36411
36411
|
]
|
|
36412
36412
|
),
|
|
36413
36413
|
modal
|
|
36414
|
-
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$
|
|
36414
|
+
}, /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$x({}, menuScope, {
|
|
36415
36415
|
open,
|
|
36416
36416
|
onOpenChange: setOpen,
|
|
36417
36417
|
dir,
|
|
@@ -36423,9 +36423,9 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /* @__PURE__ */ React.forwardR
|
|
|
36423
36423
|
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
36424
36424
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$TRIGGER_NAME, __scopeDropdownMenu);
|
|
36425
36425
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36426
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$
|
|
36426
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$x({
|
|
36427
36427
|
asChild: true
|
|
36428
|
-
}, menuScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
36428
|
+
}, menuScope), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
36429
36429
|
type: "button",
|
|
36430
36430
|
id: context.triggerId,
|
|
36431
36431
|
"aria-haspopup": "menu",
|
|
@@ -36460,7 +36460,7 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /* @__PURE__ */ React.forwardR
|
|
|
36460
36460
|
const $d08ef79370b62062$export$cd369b4d4d54efc9 = (props) => {
|
|
36461
36461
|
const { __scopeDropdownMenu, ...portalProps } = props;
|
|
36462
36462
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36463
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$
|
|
36463
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$602eac185826482c, _extends$x({}, menuScope, portalProps));
|
|
36464
36464
|
};
|
|
36465
36465
|
const $d08ef79370b62062$var$CONTENT_NAME = "DropdownMenuContent";
|
|
36466
36466
|
const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
@@ -36468,7 +36468,7 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ React.forwardR
|
|
|
36468
36468
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$CONTENT_NAME, __scopeDropdownMenu);
|
|
36469
36469
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36470
36470
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
36471
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$
|
|
36471
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$x({
|
|
36472
36472
|
id: context.contentId,
|
|
36473
36473
|
"aria-labelledby": context.triggerId
|
|
36474
36474
|
}, menuScope, contentProps, {
|
|
@@ -36495,49 +36495,49 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /* @__PURE__ */ React.forwardR
|
|
|
36495
36495
|
const $d08ef79370b62062$export$76e48c5b57f24495 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36496
36496
|
const { __scopeDropdownMenu, ...labelProps } = props;
|
|
36497
36497
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36498
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$
|
|
36498
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$x({}, menuScope, labelProps, {
|
|
36499
36499
|
ref: forwardedRef
|
|
36500
36500
|
}));
|
|
36501
36501
|
});
|
|
36502
36502
|
const $d08ef79370b62062$export$ed97964d1871885d = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36503
36503
|
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
36504
36504
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36505
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$
|
|
36505
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$x({}, menuScope, itemProps, {
|
|
36506
36506
|
ref: forwardedRef
|
|
36507
36507
|
}));
|
|
36508
36508
|
});
|
|
36509
36509
|
const $d08ef79370b62062$export$53a69729da201fa9 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36510
36510
|
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
|
36511
36511
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36512
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$
|
|
36512
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$x({}, menuScope, checkboxItemProps, {
|
|
36513
36513
|
ref: forwardedRef
|
|
36514
36514
|
}));
|
|
36515
36515
|
});
|
|
36516
36516
|
const $d08ef79370b62062$export$3323ad73d55f587e = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36517
36517
|
const { __scopeDropdownMenu, ...radioGroupProps } = props;
|
|
36518
36518
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36519
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$
|
|
36519
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$x({}, menuScope, radioGroupProps, {
|
|
36520
36520
|
ref: forwardedRef
|
|
36521
36521
|
}));
|
|
36522
36522
|
});
|
|
36523
36523
|
const $d08ef79370b62062$export$e4f69b41b1637536 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36524
36524
|
const { __scopeDropdownMenu, ...radioItemProps } = props;
|
|
36525
36525
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36526
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$
|
|
36526
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$x({}, menuScope, radioItemProps, {
|
|
36527
36527
|
ref: forwardedRef
|
|
36528
36528
|
}));
|
|
36529
36529
|
});
|
|
36530
36530
|
const $d08ef79370b62062$export$42355ae145153fb6 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36531
36531
|
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
|
36532
36532
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36533
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$
|
|
36533
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$x({}, menuScope, itemIndicatorProps, {
|
|
36534
36534
|
ref: forwardedRef
|
|
36535
36535
|
}));
|
|
36536
36536
|
});
|
|
36537
36537
|
const $d08ef79370b62062$export$da160178fd3bc7e9 = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36538
36538
|
const { __scopeDropdownMenu, ...separatorProps } = props;
|
|
36539
36539
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36540
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$1ff3c3f08ae963c0, _extends$
|
|
36540
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$1ff3c3f08ae963c0, _extends$x({}, menuScope, separatorProps, {
|
|
36541
36541
|
ref: forwardedRef
|
|
36542
36542
|
}));
|
|
36543
36543
|
});
|
|
@@ -36549,7 +36549,7 @@ const $d08ef79370b62062$export$2f307d81a64f5442 = (props) => {
|
|
|
36549
36549
|
defaultProp: defaultOpen,
|
|
36550
36550
|
onChange: onOpenChange
|
|
36551
36551
|
});
|
|
36552
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$
|
|
36552
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$x({}, menuScope, {
|
|
36553
36553
|
open,
|
|
36554
36554
|
onOpenChange: setOpen
|
|
36555
36555
|
}), children);
|
|
@@ -36557,14 +36557,14 @@ const $d08ef79370b62062$export$2f307d81a64f5442 = (props) => {
|
|
|
36557
36557
|
const $d08ef79370b62062$export$21dcb7ec56f874cf = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36558
36558
|
const { __scopeDropdownMenu, ...subTriggerProps } = props;
|
|
36559
36559
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36560
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$
|
|
36560
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$x({}, menuScope, subTriggerProps, {
|
|
36561
36561
|
ref: forwardedRef
|
|
36562
36562
|
}));
|
|
36563
36563
|
});
|
|
36564
36564
|
const $d08ef79370b62062$export$f34ec8bc2482cc5f = /* @__PURE__ */ React.forwardRef((props, forwardedRef) => {
|
|
36565
36565
|
const { __scopeDropdownMenu, ...subContentProps } = props;
|
|
36566
36566
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
36567
|
-
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$
|
|
36567
|
+
return /* @__PURE__ */ React.createElement($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$x({}, menuScope, subContentProps, {
|
|
36568
36568
|
ref: forwardedRef,
|
|
36569
36569
|
style: {
|
|
36570
36570
|
...props.style,
|
|
@@ -43912,645 +43912,742 @@ function useTableRef(table, ref) {
|
|
|
43912
43912
|
}
|
|
43913
43913
|
}, [table, ref.current]);
|
|
43914
43914
|
}
|
|
43915
|
-
/**
|
|
43916
|
-
* react-virtual
|
|
43917
|
-
*
|
|
43918
|
-
* Copyright (c) TanStack
|
|
43919
|
-
*
|
|
43920
|
-
* This source code is licensed under the MIT license found in the
|
|
43921
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43922
|
-
*
|
|
43923
|
-
* @license MIT
|
|
43924
|
-
*/
|
|
43925
|
-
function _extends$y() {
|
|
43926
|
-
_extends$y = Object.assign ? Object.assign.bind() : function(target) {
|
|
43927
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43928
|
-
var source = arguments[i2];
|
|
43929
|
-
for (var key in source) {
|
|
43930
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43931
|
-
target[key] = source[key];
|
|
43932
|
-
}
|
|
43933
|
-
}
|
|
43934
|
-
}
|
|
43935
|
-
return target;
|
|
43936
|
-
};
|
|
43937
|
-
return _extends$y.apply(this, arguments);
|
|
43938
|
-
}
|
|
43939
|
-
/**
|
|
43940
|
-
* virtual-core
|
|
43941
|
-
*
|
|
43942
|
-
* Copyright (c) TanStack
|
|
43943
|
-
*
|
|
43944
|
-
* This source code is licensed under the MIT license found in the
|
|
43945
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43946
|
-
*
|
|
43947
|
-
* @license MIT
|
|
43948
|
-
*/
|
|
43949
|
-
function _extends$x() {
|
|
43950
|
-
_extends$x = Object.assign ? Object.assign.bind() : function(target) {
|
|
43951
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
43952
|
-
var source = arguments[i2];
|
|
43953
|
-
for (var key in source) {
|
|
43954
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
43955
|
-
target[key] = source[key];
|
|
43956
|
-
}
|
|
43957
|
-
}
|
|
43958
|
-
}
|
|
43959
|
-
return target;
|
|
43960
|
-
};
|
|
43961
|
-
return _extends$x.apply(this, arguments);
|
|
43962
|
-
}
|
|
43963
|
-
/**
|
|
43964
|
-
* virtual-core
|
|
43965
|
-
*
|
|
43966
|
-
* Copyright (c) TanStack
|
|
43967
|
-
*
|
|
43968
|
-
* This source code is licensed under the MIT license found in the
|
|
43969
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
43970
|
-
*
|
|
43971
|
-
* @license MIT
|
|
43972
|
-
*/
|
|
43973
43915
|
function memo(getDeps, fn, opts) {
|
|
43974
|
-
|
|
43975
|
-
|
|
43976
|
-
|
|
43977
|
-
|
|
43978
|
-
|
|
43979
|
-
if (opts.key && opts.debug
|
|
43980
|
-
|
|
43981
|
-
|
|
43982
|
-
return deps[index2] !== dep;
|
|
43983
|
-
});
|
|
43916
|
+
let deps = opts.initialDeps ?? [];
|
|
43917
|
+
let result;
|
|
43918
|
+
function memoizedFunction() {
|
|
43919
|
+
var _a, _b, _c, _d;
|
|
43920
|
+
let depTime;
|
|
43921
|
+
if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();
|
|
43922
|
+
const newDeps = getDeps();
|
|
43923
|
+
const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index2) => deps[index2] !== dep);
|
|
43984
43924
|
if (!depsChanged) {
|
|
43985
43925
|
return result;
|
|
43986
43926
|
}
|
|
43987
43927
|
deps = newDeps;
|
|
43988
|
-
|
|
43989
|
-
if (opts.key && opts.debug
|
|
43990
|
-
result = fn
|
|
43991
|
-
if (opts.key && opts.debug
|
|
43992
|
-
|
|
43993
|
-
|
|
43994
|
-
|
|
43995
|
-
|
|
43928
|
+
let resultTime;
|
|
43929
|
+
if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();
|
|
43930
|
+
result = fn(...newDeps);
|
|
43931
|
+
if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {
|
|
43932
|
+
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
43933
|
+
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
43934
|
+
const resultFpsPercentage = resultEndTime / 16;
|
|
43935
|
+
const pad2 = (str, num) => {
|
|
43996
43936
|
str = String(str);
|
|
43997
43937
|
while (str.length < num) {
|
|
43998
43938
|
str = " " + str;
|
|
43999
43939
|
}
|
|
44000
43940
|
return str;
|
|
44001
43941
|
};
|
|
44002
|
-
console.info(
|
|
43942
|
+
console.info(
|
|
43943
|
+
`%c⏱ ${pad2(resultEndTime, 5)} /${pad2(depEndTime, 5)} ms`,
|
|
43944
|
+
`
|
|
43945
|
+
font-size: .6rem;
|
|
43946
|
+
font-weight: bold;
|
|
43947
|
+
color: hsl(${Math.max(
|
|
43948
|
+
0,
|
|
43949
|
+
Math.min(120 - 120 * resultFpsPercentage, 120)
|
|
43950
|
+
)}deg 100% 31%);`,
|
|
43951
|
+
opts == null ? void 0 : opts.key
|
|
43952
|
+
);
|
|
44003
43953
|
}
|
|
44004
|
-
opts == null
|
|
43954
|
+
(_d = opts == null ? void 0 : opts.onChange) == null ? void 0 : _d.call(opts, result);
|
|
44005
43955
|
return result;
|
|
43956
|
+
}
|
|
43957
|
+
memoizedFunction.updateDeps = (newDeps) => {
|
|
43958
|
+
deps = newDeps;
|
|
44006
43959
|
};
|
|
43960
|
+
return memoizedFunction;
|
|
44007
43961
|
}
|
|
44008
43962
|
function notUndefined(value, msg) {
|
|
44009
43963
|
if (value === void 0) {
|
|
44010
|
-
throw new Error(
|
|
43964
|
+
throw new Error(`Unexpected undefined${""}`);
|
|
44011
43965
|
} else {
|
|
44012
43966
|
return value;
|
|
44013
43967
|
}
|
|
44014
43968
|
}
|
|
44015
|
-
|
|
44016
|
-
|
|
43969
|
+
const approxEqual = (a2, b2) => Math.abs(a2 - b2) < 1.01;
|
|
43970
|
+
const debounce$1 = (targetWindow, fn, ms) => {
|
|
43971
|
+
let timeoutId;
|
|
43972
|
+
return function(...args) {
|
|
43973
|
+
targetWindow.clearTimeout(timeoutId);
|
|
43974
|
+
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
43975
|
+
};
|
|
44017
43976
|
};
|
|
44018
|
-
|
|
44019
|
-
|
|
44020
|
-
|
|
44021
|
-
* Copyright (c) TanStack
|
|
44022
|
-
*
|
|
44023
|
-
* This source code is licensed under the MIT license found in the
|
|
44024
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
44025
|
-
*
|
|
44026
|
-
* @license MIT
|
|
44027
|
-
*/
|
|
44028
|
-
var defaultKeyExtractor = function defaultKeyExtractor2(index2) {
|
|
44029
|
-
return index2;
|
|
43977
|
+
const getRect$1 = (element) => {
|
|
43978
|
+
const { offsetWidth, offsetHeight } = element;
|
|
43979
|
+
return { width: offsetWidth, height: offsetHeight };
|
|
44030
43980
|
};
|
|
44031
|
-
|
|
44032
|
-
|
|
44033
|
-
|
|
44034
|
-
|
|
44035
|
-
|
|
44036
|
-
|
|
43981
|
+
const defaultKeyExtractor = (index2) => index2;
|
|
43982
|
+
const defaultRangeExtractor = (range3) => {
|
|
43983
|
+
const start = Math.max(range3.startIndex - range3.overscan, 0);
|
|
43984
|
+
const end = Math.min(range3.endIndex + range3.overscan, range3.count - 1);
|
|
43985
|
+
const arr = [];
|
|
43986
|
+
for (let i2 = start; i2 <= end; i2++) {
|
|
43987
|
+
arr.push(i2);
|
|
44037
43988
|
}
|
|
44038
43989
|
return arr;
|
|
44039
43990
|
};
|
|
44040
|
-
|
|
44041
|
-
|
|
43991
|
+
const observeElementRect = (instance, cb2) => {
|
|
43992
|
+
const element = instance.scrollElement;
|
|
44042
43993
|
if (!element) {
|
|
44043
43994
|
return;
|
|
44044
43995
|
}
|
|
44045
|
-
|
|
44046
|
-
|
|
44047
|
-
|
|
44048
|
-
|
|
44049
|
-
|
|
44050
|
-
}
|
|
43996
|
+
const targetWindow = instance.targetWindow;
|
|
43997
|
+
if (!targetWindow) {
|
|
43998
|
+
return;
|
|
43999
|
+
}
|
|
44000
|
+
const handler = (rect) => {
|
|
44001
|
+
const { width, height } = rect;
|
|
44002
|
+
cb2({ width: Math.round(width), height: Math.round(height) });
|
|
44051
44003
|
};
|
|
44052
|
-
handler(element
|
|
44053
|
-
|
|
44054
|
-
|
|
44055
|
-
|
|
44056
|
-
|
|
44057
|
-
|
|
44058
|
-
|
|
44059
|
-
|
|
44060
|
-
|
|
44061
|
-
|
|
44062
|
-
|
|
44004
|
+
handler(getRect$1(element));
|
|
44005
|
+
if (!targetWindow.ResizeObserver) {
|
|
44006
|
+
return () => {
|
|
44007
|
+
};
|
|
44008
|
+
}
|
|
44009
|
+
const observer = new targetWindow.ResizeObserver((entries) => {
|
|
44010
|
+
const run = () => {
|
|
44011
|
+
const entry = entries[0];
|
|
44012
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
44013
|
+
const box = entry.borderBoxSize[0];
|
|
44014
|
+
if (box) {
|
|
44015
|
+
handler({ width: box.inlineSize, height: box.blockSize });
|
|
44016
|
+
return;
|
|
44017
|
+
}
|
|
44063
44018
|
}
|
|
44064
|
-
|
|
44065
|
-
|
|
44066
|
-
|
|
44067
|
-
observer.observe(element, {
|
|
44068
|
-
box: "border-box"
|
|
44019
|
+
handler(getRect$1(element));
|
|
44020
|
+
};
|
|
44021
|
+
instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
44069
44022
|
});
|
|
44070
|
-
|
|
44023
|
+
observer.observe(element, { box: "border-box" });
|
|
44024
|
+
return () => {
|
|
44071
44025
|
observer.unobserve(element);
|
|
44072
44026
|
};
|
|
44073
44027
|
};
|
|
44074
|
-
|
|
44075
|
-
|
|
44028
|
+
const addEventListenerOptions = {
|
|
44029
|
+
passive: true
|
|
44030
|
+
};
|
|
44031
|
+
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
44032
|
+
const observeElementOffset = (instance, cb2) => {
|
|
44033
|
+
const element = instance.scrollElement;
|
|
44076
44034
|
if (!element) {
|
|
44077
44035
|
return;
|
|
44078
44036
|
}
|
|
44079
|
-
|
|
44080
|
-
|
|
44081
|
-
|
|
44082
|
-
|
|
44083
|
-
|
|
44084
|
-
|
|
44085
|
-
|
|
44086
|
-
|
|
44037
|
+
const targetWindow = instance.targetWindow;
|
|
44038
|
+
if (!targetWindow) {
|
|
44039
|
+
return;
|
|
44040
|
+
}
|
|
44041
|
+
let offset2 = 0;
|
|
44042
|
+
const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce$1(
|
|
44043
|
+
targetWindow,
|
|
44044
|
+
() => {
|
|
44045
|
+
cb2(offset2, false);
|
|
44046
|
+
},
|
|
44047
|
+
instance.options.isScrollingResetDelay
|
|
44048
|
+
);
|
|
44049
|
+
const createHandler = (isScrolling) => () => {
|
|
44050
|
+
const { horizontal, isRtl } = instance.options;
|
|
44051
|
+
offset2 = horizontal ? element["scrollLeft"] * (isRtl && -1 || 1) : element["scrollTop"];
|
|
44052
|
+
fallback();
|
|
44053
|
+
cb2(offset2, isScrolling);
|
|
44054
|
+
};
|
|
44055
|
+
const handler = createHandler(true);
|
|
44056
|
+
const endHandler = createHandler(false);
|
|
44057
|
+
endHandler();
|
|
44058
|
+
element.addEventListener("scroll", handler, addEventListenerOptions);
|
|
44059
|
+
const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
|
|
44060
|
+
if (registerScrollendEvent) {
|
|
44061
|
+
element.addEventListener("scrollend", endHandler, addEventListenerOptions);
|
|
44062
|
+
}
|
|
44063
|
+
return () => {
|
|
44087
44064
|
element.removeEventListener("scroll", handler);
|
|
44065
|
+
if (registerScrollendEvent) {
|
|
44066
|
+
element.removeEventListener("scrollend", endHandler);
|
|
44067
|
+
}
|
|
44088
44068
|
};
|
|
44089
44069
|
};
|
|
44090
|
-
|
|
44091
|
-
if (entry
|
|
44092
|
-
|
|
44070
|
+
const measureElement = (element, entry, instance) => {
|
|
44071
|
+
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
44072
|
+
const box = entry.borderBoxSize[0];
|
|
44093
44073
|
if (box) {
|
|
44094
|
-
|
|
44074
|
+
const size2 = Math.round(
|
|
44075
|
+
box[instance.options.horizontal ? "inlineSize" : "blockSize"]
|
|
44076
|
+
);
|
|
44095
44077
|
return size2;
|
|
44096
44078
|
}
|
|
44097
44079
|
}
|
|
44098
|
-
return
|
|
44099
|
-
};
|
|
44100
|
-
|
|
44101
|
-
|
|
44102
|
-
|
|
44103
|
-
|
|
44104
|
-
|
|
44105
|
-
|
|
44106
|
-
|
|
44107
|
-
|
|
44108
|
-
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44113
|
-
|
|
44114
|
-
|
|
44115
|
-
|
|
44116
|
-
|
|
44117
|
-
|
|
44118
|
-
|
|
44119
|
-
|
|
44120
|
-
|
|
44121
|
-
|
|
44122
|
-
|
|
44123
|
-
|
|
44124
|
-
|
|
44125
|
-
|
|
44126
|
-
|
|
44127
|
-
|
|
44080
|
+
return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
44081
|
+
};
|
|
44082
|
+
const elementScroll = (offset2, {
|
|
44083
|
+
adjustments = 0,
|
|
44084
|
+
behavior
|
|
44085
|
+
}, instance) => {
|
|
44086
|
+
var _a, _b;
|
|
44087
|
+
const toOffset = offset2 + adjustments;
|
|
44088
|
+
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null ? void 0 : _b.call(_a, {
|
|
44089
|
+
[instance.options.horizontal ? "left" : "top"]: toOffset,
|
|
44090
|
+
behavior
|
|
44091
|
+
});
|
|
44092
|
+
};
|
|
44093
|
+
class Virtualizer {
|
|
44094
|
+
constructor(opts) {
|
|
44095
|
+
this.unsubs = [];
|
|
44096
|
+
this.scrollElement = null;
|
|
44097
|
+
this.targetWindow = null;
|
|
44098
|
+
this.isScrolling = false;
|
|
44099
|
+
this.measurementsCache = [];
|
|
44100
|
+
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44101
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44102
|
+
this.scrollRect = null;
|
|
44103
|
+
this.scrollOffset = null;
|
|
44104
|
+
this.scrollDirection = null;
|
|
44105
|
+
this.scrollAdjustments = 0;
|
|
44106
|
+
this.elementsCache = /* @__PURE__ */ new Map();
|
|
44107
|
+
this.observer = /* @__PURE__ */ (() => {
|
|
44108
|
+
let _ro = null;
|
|
44109
|
+
const get2 = () => {
|
|
44110
|
+
if (_ro) {
|
|
44111
|
+
return _ro;
|
|
44112
|
+
}
|
|
44113
|
+
if (!this.targetWindow || !this.targetWindow.ResizeObserver) {
|
|
44114
|
+
return null;
|
|
44115
|
+
}
|
|
44116
|
+
return _ro = new this.targetWindow.ResizeObserver((entries) => {
|
|
44117
|
+
entries.forEach((entry) => {
|
|
44118
|
+
const run = () => {
|
|
44119
|
+
this._measureElement(entry.target, entry);
|
|
44120
|
+
};
|
|
44121
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
44128
44122
|
});
|
|
44129
44123
|
});
|
|
44130
|
-
}
|
|
44131
|
-
|
|
44132
|
-
|
|
44124
|
+
};
|
|
44125
|
+
return {
|
|
44126
|
+
disconnect: () => {
|
|
44127
|
+
var _a;
|
|
44128
|
+
(_a = get2()) == null ? void 0 : _a.disconnect();
|
|
44129
|
+
_ro = null;
|
|
44130
|
+
},
|
|
44131
|
+
observe: (target) => {
|
|
44132
|
+
var _a;
|
|
44133
|
+
return (_a = get2()) == null ? void 0 : _a.observe(target, { box: "border-box" });
|
|
44134
|
+
},
|
|
44135
|
+
unobserve: (target) => {
|
|
44136
|
+
var _a;
|
|
44137
|
+
return (_a = get2()) == null ? void 0 : _a.unobserve(target);
|
|
44138
|
+
}
|
|
44139
|
+
};
|
|
44140
|
+
})();
|
|
44141
|
+
this.range = null;
|
|
44142
|
+
this.setOptions = (opts2) => {
|
|
44143
|
+
Object.entries(opts2).forEach(([key, value]) => {
|
|
44144
|
+
if (typeof value === "undefined") delete opts2[key];
|
|
44145
|
+
});
|
|
44146
|
+
this.options = {
|
|
44147
|
+
debug: false,
|
|
44148
|
+
initialOffset: 0,
|
|
44149
|
+
overscan: 1,
|
|
44150
|
+
paddingStart: 0,
|
|
44151
|
+
paddingEnd: 0,
|
|
44152
|
+
scrollPaddingStart: 0,
|
|
44153
|
+
scrollPaddingEnd: 0,
|
|
44154
|
+
horizontal: false,
|
|
44155
|
+
getItemKey: defaultKeyExtractor,
|
|
44156
|
+
rangeExtractor: defaultRangeExtractor,
|
|
44157
|
+
onChange: () => {
|
|
44158
|
+
},
|
|
44159
|
+
measureElement,
|
|
44160
|
+
initialRect: { width: 0, height: 0 },
|
|
44161
|
+
scrollMargin: 0,
|
|
44162
|
+
gap: 0,
|
|
44163
|
+
indexAttribute: "data-index",
|
|
44164
|
+
initialMeasurementsCache: [],
|
|
44165
|
+
lanes: 1,
|
|
44166
|
+
isScrollingResetDelay: 150,
|
|
44167
|
+
enabled: true,
|
|
44168
|
+
isRtl: false,
|
|
44169
|
+
useScrollendEvent: false,
|
|
44170
|
+
useAnimationFrameWithResizeObserver: false,
|
|
44171
|
+
...opts2
|
|
44172
|
+
};
|
|
44133
44173
|
};
|
|
44134
|
-
|
|
44135
|
-
|
|
44136
|
-
|
|
44137
|
-
|
|
44174
|
+
this.notify = (sync2) => {
|
|
44175
|
+
var _a, _b;
|
|
44176
|
+
(_b = (_a = this.options).onChange) == null ? void 0 : _b.call(_a, this, sync2);
|
|
44177
|
+
};
|
|
44178
|
+
this.maybeNotify = memo(
|
|
44179
|
+
() => {
|
|
44180
|
+
this.calculateRange();
|
|
44181
|
+
return [
|
|
44182
|
+
this.isScrolling,
|
|
44183
|
+
this.range ? this.range.startIndex : null,
|
|
44184
|
+
this.range ? this.range.endIndex : null
|
|
44185
|
+
];
|
|
44138
44186
|
},
|
|
44139
|
-
|
|
44140
|
-
|
|
44141
|
-
return (_get2 = get2()) == null ? void 0 : _get2.observe(target, {
|
|
44142
|
-
box: "border-box"
|
|
44143
|
-
});
|
|
44187
|
+
(isScrolling) => {
|
|
44188
|
+
this.notify(isScrolling);
|
|
44144
44189
|
},
|
|
44145
|
-
|
|
44146
|
-
|
|
44147
|
-
|
|
44190
|
+
{
|
|
44191
|
+
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
44192
|
+
debug: () => this.options.debug,
|
|
44193
|
+
initialDeps: [
|
|
44194
|
+
this.isScrolling,
|
|
44195
|
+
this.range ? this.range.startIndex : null,
|
|
44196
|
+
this.range ? this.range.endIndex : null
|
|
44197
|
+
]
|
|
44148
44198
|
}
|
|
44199
|
+
);
|
|
44200
|
+
this.cleanup = () => {
|
|
44201
|
+
this.unsubs.filter(Boolean).forEach((d2) => d2());
|
|
44202
|
+
this.unsubs = [];
|
|
44203
|
+
this.observer.disconnect();
|
|
44204
|
+
this.scrollElement = null;
|
|
44205
|
+
this.targetWindow = null;
|
|
44206
|
+
};
|
|
44207
|
+
this._didMount = () => {
|
|
44208
|
+
return () => {
|
|
44209
|
+
this.cleanup();
|
|
44210
|
+
};
|
|
44149
44211
|
};
|
|
44150
|
-
|
|
44151
|
-
|
|
44152
|
-
|
|
44153
|
-
|
|
44154
|
-
|
|
44155
|
-
|
|
44156
|
-
|
|
44157
|
-
|
|
44158
|
-
|
|
44159
|
-
|
|
44160
|
-
|
|
44161
|
-
|
|
44162
|
-
|
|
44163
|
-
|
|
44164
|
-
|
|
44165
|
-
|
|
44166
|
-
|
|
44167
|
-
|
|
44168
|
-
|
|
44212
|
+
this._willUpdate = () => {
|
|
44213
|
+
var _a;
|
|
44214
|
+
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
|
|
44215
|
+
if (this.scrollElement !== scrollElement) {
|
|
44216
|
+
this.cleanup();
|
|
44217
|
+
if (!scrollElement) {
|
|
44218
|
+
this.maybeNotify();
|
|
44219
|
+
return;
|
|
44220
|
+
}
|
|
44221
|
+
this.scrollElement = scrollElement;
|
|
44222
|
+
if (this.scrollElement && "ownerDocument" in this.scrollElement) {
|
|
44223
|
+
this.targetWindow = this.scrollElement.ownerDocument.defaultView;
|
|
44224
|
+
} else {
|
|
44225
|
+
this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
|
|
44226
|
+
}
|
|
44227
|
+
this.elementsCache.forEach((cached) => {
|
|
44228
|
+
this.observer.observe(cached);
|
|
44229
|
+
});
|
|
44230
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
44231
|
+
adjustments: void 0,
|
|
44232
|
+
behavior: void 0
|
|
44233
|
+
});
|
|
44234
|
+
this.unsubs.push(
|
|
44235
|
+
this.options.observeElementRect(this, (rect) => {
|
|
44236
|
+
this.scrollRect = rect;
|
|
44237
|
+
this.maybeNotify();
|
|
44238
|
+
})
|
|
44239
|
+
);
|
|
44240
|
+
this.unsubs.push(
|
|
44241
|
+
this.options.observeElementOffset(this, (offset2, isScrolling) => {
|
|
44242
|
+
this.scrollAdjustments = 0;
|
|
44243
|
+
this.scrollDirection = isScrolling ? this.getScrollOffset() < offset2 ? "forward" : "backward" : null;
|
|
44244
|
+
this.scrollOffset = offset2;
|
|
44245
|
+
this.isScrolling = isScrolling;
|
|
44246
|
+
this.maybeNotify();
|
|
44247
|
+
})
|
|
44248
|
+
);
|
|
44249
|
+
}
|
|
44250
|
+
};
|
|
44251
|
+
this.getSize = () => {
|
|
44252
|
+
if (!this.options.enabled) {
|
|
44253
|
+
this.scrollRect = null;
|
|
44254
|
+
return 0;
|
|
44255
|
+
}
|
|
44256
|
+
this.scrollRect = this.scrollRect ?? this.options.initialRect;
|
|
44257
|
+
return this.scrollRect[this.options.horizontal ? "width" : "height"];
|
|
44258
|
+
};
|
|
44259
|
+
this.getScrollOffset = () => {
|
|
44260
|
+
if (!this.options.enabled) {
|
|
44261
|
+
this.scrollOffset = null;
|
|
44262
|
+
return 0;
|
|
44263
|
+
}
|
|
44264
|
+
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
|
|
44265
|
+
return this.scrollOffset;
|
|
44266
|
+
};
|
|
44267
|
+
this.getFurthestMeasurement = (measurements, index2) => {
|
|
44268
|
+
const furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
44269
|
+
const furthestMeasurements = /* @__PURE__ */ new Map();
|
|
44270
|
+
for (let m2 = index2 - 1; m2 >= 0; m2--) {
|
|
44271
|
+
const measurement = measurements[m2];
|
|
44272
|
+
if (furthestMeasurementsFound.has(measurement.lane)) {
|
|
44273
|
+
continue;
|
|
44274
|
+
}
|
|
44275
|
+
const previousFurthestMeasurement = furthestMeasurements.get(
|
|
44276
|
+
measurement.lane
|
|
44277
|
+
);
|
|
44278
|
+
if (previousFurthestMeasurement == null || measurement.end > previousFurthestMeasurement.end) {
|
|
44279
|
+
furthestMeasurements.set(measurement.lane, measurement);
|
|
44280
|
+
} else if (measurement.end < previousFurthestMeasurement.end) {
|
|
44281
|
+
furthestMeasurementsFound.set(measurement.lane, true);
|
|
44282
|
+
}
|
|
44283
|
+
if (furthestMeasurementsFound.size === this.options.lanes) {
|
|
44284
|
+
break;
|
|
44285
|
+
}
|
|
44286
|
+
}
|
|
44287
|
+
return furthestMeasurements.size === this.options.lanes ? Array.from(furthestMeasurements.values()).sort((a2, b2) => {
|
|
44288
|
+
if (a2.end === b2.end) {
|
|
44289
|
+
return a2.index - b2.index;
|
|
44290
|
+
}
|
|
44291
|
+
return a2.end - b2.end;
|
|
44292
|
+
})[0] : void 0;
|
|
44293
|
+
};
|
|
44294
|
+
this.getMeasurementOptions = memo(
|
|
44295
|
+
() => [
|
|
44296
|
+
this.options.count,
|
|
44297
|
+
this.options.paddingStart,
|
|
44298
|
+
this.options.scrollMargin,
|
|
44299
|
+
this.options.getItemKey,
|
|
44300
|
+
this.options.enabled
|
|
44301
|
+
],
|
|
44302
|
+
(count2, paddingStart, scrollMargin, getItemKey, enabled) => {
|
|
44303
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44304
|
+
return {
|
|
44305
|
+
count: count2,
|
|
44306
|
+
paddingStart,
|
|
44307
|
+
scrollMargin,
|
|
44308
|
+
getItemKey,
|
|
44309
|
+
enabled
|
|
44310
|
+
};
|
|
44169
44311
|
},
|
|
44170
|
-
|
|
44171
|
-
|
|
44172
|
-
|
|
44173
|
-
|
|
44312
|
+
{
|
|
44313
|
+
key: false
|
|
44314
|
+
}
|
|
44315
|
+
);
|
|
44316
|
+
this.getMeasurements = memo(
|
|
44317
|
+
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
44318
|
+
({ count: count2, paddingStart, scrollMargin, getItemKey, enabled }, itemSizeCache) => {
|
|
44319
|
+
if (!enabled) {
|
|
44320
|
+
this.measurementsCache = [];
|
|
44321
|
+
this.itemSizeCache.clear();
|
|
44322
|
+
return [];
|
|
44323
|
+
}
|
|
44324
|
+
if (this.measurementsCache.length === 0) {
|
|
44325
|
+
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
44326
|
+
this.measurementsCache.forEach((item) => {
|
|
44327
|
+
this.itemSizeCache.set(item.key, item.size);
|
|
44328
|
+
});
|
|
44329
|
+
}
|
|
44330
|
+
const min2 = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
44331
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
44332
|
+
const measurements = this.measurementsCache.slice(0, min2);
|
|
44333
|
+
for (let i2 = min2; i2 < count2; i2++) {
|
|
44334
|
+
const key = getItemKey(i2);
|
|
44335
|
+
const furthestMeasurement = this.options.lanes === 1 ? measurements[i2 - 1] : this.getFurthestMeasurement(measurements, i2);
|
|
44336
|
+
const start = furthestMeasurement ? furthestMeasurement.end + this.options.gap : paddingStart + scrollMargin;
|
|
44337
|
+
const measuredSize = itemSizeCache.get(key);
|
|
44338
|
+
const size2 = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i2);
|
|
44339
|
+
const end = start + size2;
|
|
44340
|
+
const lane = furthestMeasurement ? furthestMeasurement.lane : i2 % this.options.lanes;
|
|
44341
|
+
measurements[i2] = {
|
|
44342
|
+
index: i2,
|
|
44343
|
+
start,
|
|
44344
|
+
size: size2,
|
|
44345
|
+
end,
|
|
44346
|
+
key,
|
|
44347
|
+
lane
|
|
44348
|
+
};
|
|
44349
|
+
}
|
|
44350
|
+
this.measurementsCache = measurements;
|
|
44351
|
+
return measurements;
|
|
44174
44352
|
},
|
|
44175
|
-
|
|
44176
|
-
|
|
44177
|
-
|
|
44178
|
-
|
|
44179
|
-
|
|
44180
|
-
|
|
44181
|
-
|
|
44182
|
-
|
|
44183
|
-
|
|
44184
|
-
|
|
44185
|
-
|
|
44186
|
-
|
|
44187
|
-
|
|
44188
|
-
|
|
44189
|
-
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
|
|
44193
|
-
|
|
44194
|
-
|
|
44195
|
-
|
|
44196
|
-
|
|
44197
|
-
|
|
44198
|
-
|
|
44199
|
-
|
|
44200
|
-
|
|
44201
|
-
|
|
44202
|
-
|
|
44203
|
-
|
|
44204
|
-
|
|
44205
|
-
|
|
44206
|
-
|
|
44207
|
-
|
|
44208
|
-
|
|
44353
|
+
{
|
|
44354
|
+
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
44355
|
+
debug: () => this.options.debug
|
|
44356
|
+
}
|
|
44357
|
+
);
|
|
44358
|
+
this.calculateRange = memo(
|
|
44359
|
+
() => [
|
|
44360
|
+
this.getMeasurements(),
|
|
44361
|
+
this.getSize(),
|
|
44362
|
+
this.getScrollOffset(),
|
|
44363
|
+
this.options.lanes
|
|
44364
|
+
],
|
|
44365
|
+
(measurements, outerSize, scrollOffset, lanes) => {
|
|
44366
|
+
return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
44367
|
+
measurements,
|
|
44368
|
+
outerSize,
|
|
44369
|
+
scrollOffset,
|
|
44370
|
+
lanes
|
|
44371
|
+
}) : null;
|
|
44372
|
+
},
|
|
44373
|
+
{
|
|
44374
|
+
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
44375
|
+
debug: () => this.options.debug
|
|
44376
|
+
}
|
|
44377
|
+
);
|
|
44378
|
+
this.getVirtualIndexes = memo(
|
|
44379
|
+
() => {
|
|
44380
|
+
let startIndex = null;
|
|
44381
|
+
let endIndex = null;
|
|
44382
|
+
const range3 = this.calculateRange();
|
|
44383
|
+
if (range3) {
|
|
44384
|
+
startIndex = range3.startIndex;
|
|
44385
|
+
endIndex = range3.endIndex;
|
|
44386
|
+
}
|
|
44387
|
+
this.maybeNotify.updateDeps([this.isScrolling, startIndex, endIndex]);
|
|
44388
|
+
return [
|
|
44389
|
+
this.options.rangeExtractor,
|
|
44390
|
+
this.options.overscan,
|
|
44391
|
+
this.options.count,
|
|
44392
|
+
startIndex,
|
|
44393
|
+
endIndex
|
|
44394
|
+
];
|
|
44395
|
+
},
|
|
44396
|
+
(rangeExtractor, overscan, count2, startIndex, endIndex) => {
|
|
44397
|
+
return startIndex === null || endIndex === null ? [] : rangeExtractor({
|
|
44398
|
+
startIndex,
|
|
44399
|
+
endIndex,
|
|
44400
|
+
overscan,
|
|
44401
|
+
count: count2
|
|
44402
|
+
});
|
|
44403
|
+
},
|
|
44404
|
+
{
|
|
44405
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
44406
|
+
debug: () => this.options.debug
|
|
44407
|
+
}
|
|
44408
|
+
);
|
|
44409
|
+
this.indexFromElement = (node) => {
|
|
44410
|
+
const attributeName = this.options.indexAttribute;
|
|
44411
|
+
const indexStr = node.getAttribute(attributeName);
|
|
44412
|
+
if (!indexStr) {
|
|
44413
|
+
console.warn(
|
|
44414
|
+
`Missing attribute name '${attributeName}={index}' on measured element.`
|
|
44415
|
+
);
|
|
44416
|
+
return -1;
|
|
44417
|
+
}
|
|
44418
|
+
return parseInt(indexStr, 10);
|
|
44209
44419
|
};
|
|
44210
|
-
|
|
44211
|
-
|
|
44212
|
-
|
|
44213
|
-
|
|
44214
|
-
|
|
44215
|
-
|
|
44216
|
-
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
|
|
44220
|
-
|
|
44221
|
-
_this.scrollRect = rect;
|
|
44222
|
-
_this.maybeNotify();
|
|
44223
|
-
}));
|
|
44224
|
-
_this.unsubs.push(_this.options.observeElementOffset(_this, function(offset2) {
|
|
44225
|
-
_this.scrollAdjustments = 0;
|
|
44226
|
-
if (_this.scrollOffset === offset2) {
|
|
44227
|
-
return;
|
|
44420
|
+
this._measureElement = (node, entry) => {
|
|
44421
|
+
const index2 = this.indexFromElement(node);
|
|
44422
|
+
const item = this.measurementsCache[index2];
|
|
44423
|
+
if (!item) {
|
|
44424
|
+
return;
|
|
44425
|
+
}
|
|
44426
|
+
const key = item.key;
|
|
44427
|
+
const prevNode = this.elementsCache.get(key);
|
|
44428
|
+
if (prevNode !== node) {
|
|
44429
|
+
if (prevNode) {
|
|
44430
|
+
this.observer.unobserve(prevNode);
|
|
44228
44431
|
}
|
|
44229
|
-
|
|
44230
|
-
|
|
44231
|
-
|
|
44232
|
-
|
|
44233
|
-
|
|
44234
|
-
|
|
44235
|
-
_this.scrollOffset = offset2;
|
|
44236
|
-
_this.maybeNotify();
|
|
44237
|
-
_this.isScrollingTimeoutId = setTimeout(function() {
|
|
44238
|
-
_this.isScrollingTimeoutId = null;
|
|
44239
|
-
_this.isScrolling = false;
|
|
44240
|
-
_this.scrollDirection = null;
|
|
44241
|
-
_this.maybeNotify();
|
|
44242
|
-
}, _this.options.scrollingDelay);
|
|
44243
|
-
}));
|
|
44244
|
-
}
|
|
44245
|
-
};
|
|
44246
|
-
this.getSize = function() {
|
|
44247
|
-
return _this.scrollRect[_this.options.horizontal ? "width" : "height"];
|
|
44248
|
-
};
|
|
44249
|
-
this.memoOptions = memo(function() {
|
|
44250
|
-
return [_this.options.count, _this.options.paddingStart, _this.options.scrollMargin, _this.options.getItemKey];
|
|
44251
|
-
}, function(count2, paddingStart, scrollMargin, getItemKey) {
|
|
44252
|
-
_this.pendingMeasuredCacheIndexes = [];
|
|
44253
|
-
return {
|
|
44254
|
-
count: count2,
|
|
44255
|
-
paddingStart,
|
|
44256
|
-
scrollMargin,
|
|
44257
|
-
getItemKey
|
|
44432
|
+
this.observer.observe(node);
|
|
44433
|
+
this.elementsCache.set(key, node);
|
|
44434
|
+
}
|
|
44435
|
+
if (node.isConnected) {
|
|
44436
|
+
this.resizeItem(index2, this.options.measureElement(node, entry, this));
|
|
44437
|
+
}
|
|
44258
44438
|
};
|
|
44259
|
-
|
|
44260
|
-
|
|
44261
|
-
|
|
44262
|
-
|
|
44263
|
-
var furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
44264
|
-
var furthestMeasurements = /* @__PURE__ */ new Map();
|
|
44265
|
-
for (var m2 = index2 - 1; m2 >= 0; m2--) {
|
|
44266
|
-
var measurement = measurements[m2];
|
|
44267
|
-
if (furthestMeasurementsFound.has(measurement.lane)) {
|
|
44268
|
-
continue;
|
|
44439
|
+
this.resizeItem = (index2, size2) => {
|
|
44440
|
+
const item = this.measurementsCache[index2];
|
|
44441
|
+
if (!item) {
|
|
44442
|
+
return;
|
|
44269
44443
|
}
|
|
44270
|
-
|
|
44271
|
-
|
|
44272
|
-
|
|
44273
|
-
|
|
44274
|
-
|
|
44444
|
+
const itemSize = this.itemSizeCache.get(item.key) ?? item.size;
|
|
44445
|
+
const delta = size2 - itemSize;
|
|
44446
|
+
if (delta !== 0) {
|
|
44447
|
+
if (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(item, delta, this) : item.start < this.getScrollOffset() + this.scrollAdjustments) {
|
|
44448
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug) {
|
|
44449
|
+
console.info("correction", delta);
|
|
44450
|
+
}
|
|
44451
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
44452
|
+
adjustments: this.scrollAdjustments += delta,
|
|
44453
|
+
behavior: void 0
|
|
44454
|
+
});
|
|
44455
|
+
}
|
|
44456
|
+
this.pendingMeasuredCacheIndexes.push(item.index);
|
|
44457
|
+
this.itemSizeCache = new Map(this.itemSizeCache.set(item.key, size2));
|
|
44458
|
+
this.notify(false);
|
|
44275
44459
|
}
|
|
44276
|
-
|
|
44277
|
-
|
|
44460
|
+
};
|
|
44461
|
+
this.measureElement = (node) => {
|
|
44462
|
+
if (!node) {
|
|
44463
|
+
this.elementsCache.forEach((cached, key) => {
|
|
44464
|
+
if (!cached.isConnected) {
|
|
44465
|
+
this.observer.unobserve(cached);
|
|
44466
|
+
this.elementsCache.delete(key);
|
|
44467
|
+
}
|
|
44468
|
+
});
|
|
44469
|
+
return;
|
|
44278
44470
|
}
|
|
44279
|
-
|
|
44280
|
-
|
|
44281
|
-
|
|
44282
|
-
|
|
44283
|
-
|
|
44284
|
-
|
|
44285
|
-
|
|
44286
|
-
|
|
44287
|
-
|
|
44288
|
-
|
|
44289
|
-
_this.pendingMeasuredCacheIndexes = [];
|
|
44290
|
-
var measurements = _this.measurementsCache.slice(0, min2);
|
|
44291
|
-
for (var _i2 = min2; _i2 < count2; _i2++) {
|
|
44292
|
-
var key = getItemKey(_i2);
|
|
44293
|
-
var furthestMeasurement = _this.options.lanes === 1 ? measurements[_i2 - 1] : _this.getFurthestMeasurement(measurements, _i2);
|
|
44294
|
-
var start = furthestMeasurement ? furthestMeasurement.end : paddingStart + scrollMargin;
|
|
44295
|
-
var measuredSize = itemSizeCache.get(key);
|
|
44296
|
-
var size2 = typeof measuredSize === "number" ? measuredSize : _this.options.estimateSize(_i2);
|
|
44297
|
-
var end = start + size2;
|
|
44298
|
-
var lane = furthestMeasurement ? furthestMeasurement.lane : _i2 % _this.options.lanes;
|
|
44299
|
-
measurements[_i2] = {
|
|
44300
|
-
index: _i2,
|
|
44301
|
-
start,
|
|
44302
|
-
size: size2,
|
|
44303
|
-
end,
|
|
44304
|
-
key,
|
|
44305
|
-
lane
|
|
44306
|
-
};
|
|
44307
|
-
}
|
|
44308
|
-
_this.measurementsCache = measurements;
|
|
44309
|
-
return measurements;
|
|
44310
|
-
}, {
|
|
44311
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
44312
|
-
debug: function debug2() {
|
|
44313
|
-
return _this.options.debug;
|
|
44314
|
-
}
|
|
44315
|
-
});
|
|
44316
|
-
this.calculateRange = memo(function() {
|
|
44317
|
-
return [_this.getMeasurements(), _this.getSize(), _this.scrollOffset];
|
|
44318
|
-
}, function(measurements, outerSize, scrollOffset) {
|
|
44319
|
-
return _this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
44320
|
-
measurements,
|
|
44321
|
-
outerSize,
|
|
44322
|
-
scrollOffset
|
|
44323
|
-
}) : null;
|
|
44324
|
-
}, {
|
|
44325
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
44326
|
-
debug: function debug2() {
|
|
44327
|
-
return _this.options.debug;
|
|
44328
|
-
}
|
|
44329
|
-
});
|
|
44330
|
-
this.getIndexes = memo(function() {
|
|
44331
|
-
return [_this.options.rangeExtractor, _this.calculateRange(), _this.options.overscan, _this.options.count];
|
|
44332
|
-
}, function(rangeExtractor, range3, overscan, count2) {
|
|
44333
|
-
return range3 === null ? [] : rangeExtractor(_extends$x({}, range3, {
|
|
44334
|
-
overscan,
|
|
44335
|
-
count: count2
|
|
44336
|
-
}));
|
|
44337
|
-
}, {
|
|
44338
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
44339
|
-
debug: function debug2() {
|
|
44340
|
-
return _this.options.debug;
|
|
44341
|
-
}
|
|
44342
|
-
});
|
|
44343
|
-
this.indexFromElement = function(node) {
|
|
44344
|
-
var attributeName = _this.options.indexAttribute;
|
|
44345
|
-
var indexStr = node.getAttribute(attributeName);
|
|
44346
|
-
if (!indexStr) {
|
|
44347
|
-
console.warn("Missing attribute name '" + attributeName + "={index}' on measured element.");
|
|
44348
|
-
return -1;
|
|
44349
|
-
}
|
|
44350
|
-
return parseInt(indexStr, 10);
|
|
44351
|
-
};
|
|
44352
|
-
this._measureElement = function(node, entry) {
|
|
44353
|
-
var item = _this.measurementsCache[_this.indexFromElement(node)];
|
|
44354
|
-
if (!item || !node.isConnected) {
|
|
44355
|
-
_this.measureElementCache.forEach(function(cached, key) {
|
|
44356
|
-
if (cached === node) {
|
|
44357
|
-
_this.observer.unobserve(node);
|
|
44358
|
-
_this.measureElementCache["delete"](key);
|
|
44471
|
+
this._measureElement(node, void 0);
|
|
44472
|
+
};
|
|
44473
|
+
this.getVirtualItems = memo(
|
|
44474
|
+
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
44475
|
+
(indexes, measurements) => {
|
|
44476
|
+
const virtualItems = [];
|
|
44477
|
+
for (let k2 = 0, len = indexes.length; k2 < len; k2++) {
|
|
44478
|
+
const i2 = indexes[k2];
|
|
44479
|
+
const measurement = measurements[i2];
|
|
44480
|
+
virtualItems.push(measurement);
|
|
44359
44481
|
}
|
|
44360
|
-
|
|
44361
|
-
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44365
|
-
if (prevNode) {
|
|
44366
|
-
_this.observer.unobserve(prevNode);
|
|
44482
|
+
return virtualItems;
|
|
44483
|
+
},
|
|
44484
|
+
{
|
|
44485
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
44486
|
+
debug: () => this.options.debug
|
|
44367
44487
|
}
|
|
44368
|
-
|
|
44369
|
-
|
|
44370
|
-
|
|
44371
|
-
|
|
44372
|
-
|
|
44373
|
-
|
|
44374
|
-
|
|
44375
|
-
|
|
44376
|
-
|
|
44377
|
-
|
|
44378
|
-
|
|
44379
|
-
|
|
44380
|
-
|
|
44381
|
-
|
|
44488
|
+
);
|
|
44489
|
+
this.getVirtualItemForOffset = (offset2) => {
|
|
44490
|
+
const measurements = this.getMeasurements();
|
|
44491
|
+
if (measurements.length === 0) {
|
|
44492
|
+
return void 0;
|
|
44493
|
+
}
|
|
44494
|
+
return notUndefined(
|
|
44495
|
+
measurements[findNearestBinarySearch(
|
|
44496
|
+
0,
|
|
44497
|
+
measurements.length - 1,
|
|
44498
|
+
(index2) => notUndefined(measurements[index2]).start,
|
|
44499
|
+
offset2
|
|
44500
|
+
)]
|
|
44501
|
+
);
|
|
44502
|
+
};
|
|
44503
|
+
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
44504
|
+
const size2 = this.getSize();
|
|
44505
|
+
const scrollOffset = this.getScrollOffset();
|
|
44506
|
+
if (align === "auto") {
|
|
44507
|
+
align = toOffset >= scrollOffset + size2 ? "end" : "start";
|
|
44508
|
+
}
|
|
44509
|
+
if (align === "center") {
|
|
44510
|
+
toOffset += (itemSize - size2) / 2;
|
|
44511
|
+
} else if (align === "end") {
|
|
44512
|
+
toOffset -= size2;
|
|
44513
|
+
}
|
|
44514
|
+
const maxOffset = this.getTotalSize() + this.options.scrollMargin - size2;
|
|
44515
|
+
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
44516
|
+
};
|
|
44517
|
+
this.getOffsetForIndex = (index2, align = "auto") => {
|
|
44518
|
+
index2 = Math.max(0, Math.min(index2, this.options.count - 1));
|
|
44519
|
+
const item = this.measurementsCache[index2];
|
|
44520
|
+
if (!item) {
|
|
44521
|
+
return void 0;
|
|
44522
|
+
}
|
|
44523
|
+
const size2 = this.getSize();
|
|
44524
|
+
const scrollOffset = this.getScrollOffset();
|
|
44525
|
+
if (align === "auto") {
|
|
44526
|
+
if (item.end >= scrollOffset + size2 - this.options.scrollPaddingEnd) {
|
|
44527
|
+
align = "end";
|
|
44528
|
+
} else if (item.start <= scrollOffset + this.options.scrollPaddingStart) {
|
|
44529
|
+
align = "start";
|
|
44530
|
+
} else {
|
|
44531
|
+
return [scrollOffset, align];
|
|
44382
44532
|
}
|
|
44383
|
-
_this._scrollToOffset(_this.scrollOffset, {
|
|
44384
|
-
adjustments: _this.scrollAdjustments += delta,
|
|
44385
|
-
behavior: void 0
|
|
44386
|
-
});
|
|
44387
44533
|
}
|
|
44388
|
-
|
|
44389
|
-
|
|
44390
|
-
|
|
44391
|
-
|
|
44392
|
-
|
|
44393
|
-
|
|
44394
|
-
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
return [_this.getIndexes(), _this.getMeasurements()];
|
|
44401
|
-
}, function(indexes, measurements) {
|
|
44402
|
-
var virtualItems = [];
|
|
44403
|
-
for (var k2 = 0, len = indexes.length; k2 < len; k2++) {
|
|
44404
|
-
var _i3 = indexes[k2];
|
|
44405
|
-
var measurement = measurements[_i3];
|
|
44406
|
-
virtualItems.push(measurement);
|
|
44407
|
-
}
|
|
44408
|
-
return virtualItems;
|
|
44409
|
-
}, {
|
|
44410
|
-
key: process.env.NODE_ENV !== "production" && "getIndexes",
|
|
44411
|
-
debug: function debug2() {
|
|
44412
|
-
return _this.options.debug;
|
|
44413
|
-
}
|
|
44414
|
-
});
|
|
44415
|
-
this.getVirtualItemForOffset = function(offset2) {
|
|
44416
|
-
var measurements = _this.getMeasurements();
|
|
44417
|
-
return notUndefined(measurements[findNearestBinarySearch(0, measurements.length - 1, function(index2) {
|
|
44418
|
-
return notUndefined(measurements[index2]).start;
|
|
44419
|
-
}, offset2)]);
|
|
44420
|
-
};
|
|
44421
|
-
this.getOffsetForAlignment = function(toOffset, align) {
|
|
44422
|
-
var size2 = _this.getSize();
|
|
44423
|
-
if (align === "auto") {
|
|
44424
|
-
if (toOffset <= _this.scrollOffset) {
|
|
44425
|
-
align = "start";
|
|
44426
|
-
} else if (toOffset >= _this.scrollOffset + size2) {
|
|
44427
|
-
align = "end";
|
|
44428
|
-
} else {
|
|
44429
|
-
align = "start";
|
|
44430
|
-
}
|
|
44431
|
-
}
|
|
44432
|
-
if (align === "start") {
|
|
44433
|
-
toOffset = toOffset;
|
|
44434
|
-
} else if (align === "end") {
|
|
44435
|
-
toOffset = toOffset - size2;
|
|
44436
|
-
} else if (align === "center") {
|
|
44437
|
-
toOffset = toOffset - size2 / 2;
|
|
44438
|
-
}
|
|
44439
|
-
var scrollSizeProp = _this.options.horizontal ? "scrollWidth" : "scrollHeight";
|
|
44440
|
-
var scrollSize = _this.scrollElement ? "document" in _this.scrollElement ? _this.scrollElement.document.documentElement[scrollSizeProp] : _this.scrollElement[scrollSizeProp] : 0;
|
|
44441
|
-
var maxOffset = scrollSize - _this.getSize();
|
|
44442
|
-
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
44443
|
-
};
|
|
44444
|
-
this.getOffsetForIndex = function(index2, align) {
|
|
44445
|
-
if (align === void 0) {
|
|
44446
|
-
align = "auto";
|
|
44447
|
-
}
|
|
44448
|
-
index2 = Math.max(0, Math.min(index2, _this.options.count - 1));
|
|
44449
|
-
var measurement = notUndefined(_this.getMeasurements()[index2]);
|
|
44450
|
-
if (align === "auto") {
|
|
44451
|
-
if (measurement.end >= _this.scrollOffset + _this.getSize() - _this.options.scrollPaddingEnd) {
|
|
44452
|
-
align = "end";
|
|
44453
|
-
} else if (measurement.start <= _this.scrollOffset + _this.options.scrollPaddingStart) {
|
|
44454
|
-
align = "start";
|
|
44455
|
-
} else {
|
|
44456
|
-
return [_this.scrollOffset, align];
|
|
44534
|
+
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
44535
|
+
return [
|
|
44536
|
+
this.getOffsetForAlignment(toOffset, align, item.size),
|
|
44537
|
+
align
|
|
44538
|
+
];
|
|
44539
|
+
};
|
|
44540
|
+
this.isDynamicMode = () => this.elementsCache.size > 0;
|
|
44541
|
+
this.scrollToOffset = (toOffset, { align = "start", behavior } = {}) => {
|
|
44542
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44543
|
+
console.warn(
|
|
44544
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44545
|
+
);
|
|
44457
44546
|
}
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44461
|
-
|
|
44462
|
-
|
|
44463
|
-
|
|
44464
|
-
|
|
44465
|
-
|
|
44466
|
-
|
|
44467
|
-
|
|
44468
|
-
|
|
44469
|
-
|
|
44470
|
-
|
|
44471
|
-
|
|
44472
|
-
|
|
44473
|
-
|
|
44474
|
-
|
|
44475
|
-
|
|
44476
|
-
|
|
44477
|
-
|
|
44478
|
-
|
|
44479
|
-
|
|
44480
|
-
|
|
44481
|
-
|
|
44482
|
-
|
|
44483
|
-
|
|
44484
|
-
|
|
44485
|
-
|
|
44486
|
-
|
|
44487
|
-
console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
|
|
44488
|
-
}
|
|
44489
|
-
var _this$getOffsetForInd = _this.getOffsetForIndex(index2, initialAlign), toOffset = _this$getOffsetForInd[0], align = _this$getOffsetForInd[1];
|
|
44490
|
-
_this._scrollToOffset(toOffset, {
|
|
44491
|
-
adjustments: void 0,
|
|
44492
|
-
behavior
|
|
44493
|
-
});
|
|
44494
|
-
if (behavior !== "smooth" && _this.isDynamicMode()) {
|
|
44495
|
-
_this.scrollToIndexTimeoutId = setTimeout(function() {
|
|
44496
|
-
_this.scrollToIndexTimeoutId = null;
|
|
44497
|
-
var elementInDOM = _this.measureElementCache.has(_this.options.getItemKey(index2));
|
|
44498
|
-
if (elementInDOM) {
|
|
44499
|
-
var _this$getOffsetForInd2 = _this.getOffsetForIndex(index2, align), _toOffset = _this$getOffsetForInd2[0];
|
|
44500
|
-
if (!approxEqual(_toOffset, _this.scrollOffset)) {
|
|
44501
|
-
_this.scrollToIndex(index2, {
|
|
44502
|
-
align,
|
|
44503
|
-
behavior
|
|
44504
|
-
});
|
|
44547
|
+
this._scrollToOffset(this.getOffsetForAlignment(toOffset, align), {
|
|
44548
|
+
adjustments: void 0,
|
|
44549
|
+
behavior
|
|
44550
|
+
});
|
|
44551
|
+
};
|
|
44552
|
+
this.scrollToIndex = (index2, { align: initialAlign = "auto", behavior } = {}) => {
|
|
44553
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44554
|
+
console.warn(
|
|
44555
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44556
|
+
);
|
|
44557
|
+
}
|
|
44558
|
+
index2 = Math.max(0, Math.min(index2, this.options.count - 1));
|
|
44559
|
+
let attempts = 0;
|
|
44560
|
+
const maxAttempts = 10;
|
|
44561
|
+
const tryScroll = (currentAlign) => {
|
|
44562
|
+
if (!this.targetWindow) return;
|
|
44563
|
+
const offsetInfo = this.getOffsetForIndex(index2, currentAlign);
|
|
44564
|
+
if (!offsetInfo) {
|
|
44565
|
+
console.warn("Failed to get offset for index:", index2);
|
|
44566
|
+
return;
|
|
44567
|
+
}
|
|
44568
|
+
const [offset2, align] = offsetInfo;
|
|
44569
|
+
this._scrollToOffset(offset2, { adjustments: void 0, behavior });
|
|
44570
|
+
this.targetWindow.requestAnimationFrame(() => {
|
|
44571
|
+
const currentOffset = this.getScrollOffset();
|
|
44572
|
+
const afterInfo = this.getOffsetForIndex(index2, align);
|
|
44573
|
+
if (!afterInfo) {
|
|
44574
|
+
console.warn("Failed to get offset for index:", index2);
|
|
44575
|
+
return;
|
|
44505
44576
|
}
|
|
44577
|
+
if (!approxEqual(afterInfo[0], currentOffset)) {
|
|
44578
|
+
scheduleRetry(align);
|
|
44579
|
+
}
|
|
44580
|
+
});
|
|
44581
|
+
};
|
|
44582
|
+
const scheduleRetry = (align) => {
|
|
44583
|
+
if (!this.targetWindow) return;
|
|
44584
|
+
attempts++;
|
|
44585
|
+
if (attempts < maxAttempts) {
|
|
44586
|
+
if (process.env.NODE_ENV !== "production" && this.options.debug) {
|
|
44587
|
+
console.info("Schedule retry", attempts, maxAttempts);
|
|
44588
|
+
}
|
|
44589
|
+
this.targetWindow.requestAnimationFrame(() => tryScroll(align));
|
|
44506
44590
|
} else {
|
|
44507
|
-
|
|
44508
|
-
|
|
44509
|
-
|
|
44510
|
-
});
|
|
44591
|
+
console.warn(
|
|
44592
|
+
`Failed to scroll to index ${index2} after ${maxAttempts} attempts.`
|
|
44593
|
+
);
|
|
44511
44594
|
}
|
|
44595
|
+
};
|
|
44596
|
+
tryScroll(initialAlign);
|
|
44597
|
+
};
|
|
44598
|
+
this.scrollBy = (delta, { behavior } = {}) => {
|
|
44599
|
+
if (behavior === "smooth" && this.isDynamicMode()) {
|
|
44600
|
+
console.warn(
|
|
44601
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
44602
|
+
);
|
|
44603
|
+
}
|
|
44604
|
+
this._scrollToOffset(this.getScrollOffset() + delta, {
|
|
44605
|
+
adjustments: void 0,
|
|
44606
|
+
behavior
|
|
44512
44607
|
});
|
|
44513
|
-
}
|
|
44514
|
-
|
|
44515
|
-
|
|
44516
|
-
|
|
44517
|
-
|
|
44518
|
-
|
|
44519
|
-
|
|
44520
|
-
|
|
44521
|
-
|
|
44522
|
-
|
|
44608
|
+
};
|
|
44609
|
+
this.getTotalSize = () => {
|
|
44610
|
+
var _a;
|
|
44611
|
+
const measurements = this.getMeasurements();
|
|
44612
|
+
let end;
|
|
44613
|
+
if (measurements.length === 0) {
|
|
44614
|
+
end = this.options.paddingStart;
|
|
44615
|
+
} else if (this.options.lanes === 1) {
|
|
44616
|
+
end = ((_a = measurements[measurements.length - 1]) == null ? void 0 : _a.end) ?? 0;
|
|
44617
|
+
} else {
|
|
44618
|
+
const endByLane = Array(this.options.lanes).fill(null);
|
|
44619
|
+
let endIndex = measurements.length - 1;
|
|
44620
|
+
while (endIndex >= 0 && endByLane.some((val) => val === null)) {
|
|
44621
|
+
const item = measurements[endIndex];
|
|
44622
|
+
if (endByLane[item.lane] === null) {
|
|
44623
|
+
endByLane[item.lane] = item.end;
|
|
44624
|
+
}
|
|
44625
|
+
endIndex--;
|
|
44626
|
+
}
|
|
44627
|
+
end = Math.max(...endByLane.filter((val) => val !== null));
|
|
44628
|
+
}
|
|
44629
|
+
return Math.max(
|
|
44630
|
+
end - this.options.scrollMargin + this.options.paddingEnd,
|
|
44631
|
+
0
|
|
44632
|
+
);
|
|
44633
|
+
};
|
|
44634
|
+
this._scrollToOffset = (offset2, {
|
|
44635
|
+
adjustments,
|
|
44523
44636
|
behavior
|
|
44524
|
-
})
|
|
44525
|
-
|
|
44526
|
-
|
|
44527
|
-
|
|
44528
|
-
|
|
44529
|
-
|
|
44530
|
-
|
|
44531
|
-
|
|
44532
|
-
|
|
44533
|
-
|
|
44534
|
-
|
|
44535
|
-
}, _this);
|
|
44536
|
-
};
|
|
44537
|
-
this.measure = function() {
|
|
44538
|
-
_this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44539
|
-
_this.notify(false);
|
|
44540
|
-
};
|
|
44541
|
-
this.setOptions(_opts);
|
|
44542
|
-
this.scrollRect = this.options.initialRect;
|
|
44543
|
-
this.scrollOffset = this.options.initialOffset;
|
|
44544
|
-
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
44545
|
-
this.measurementsCache.forEach(function(item) {
|
|
44546
|
-
_this.itemSizeCache.set(item.key, item.size);
|
|
44547
|
-
});
|
|
44548
|
-
this.maybeNotify();
|
|
44549
|
-
};
|
|
44550
|
-
var findNearestBinarySearch = function findNearestBinarySearch2(low, high, getCurrentValue, value) {
|
|
44637
|
+
}) => {
|
|
44638
|
+
this.options.scrollToFn(offset2, { behavior, adjustments }, this);
|
|
44639
|
+
};
|
|
44640
|
+
this.measure = () => {
|
|
44641
|
+
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
44642
|
+
this.notify(false);
|
|
44643
|
+
};
|
|
44644
|
+
this.setOptions(opts);
|
|
44645
|
+
}
|
|
44646
|
+
}
|
|
44647
|
+
const findNearestBinarySearch = (low, high, getCurrentValue, value) => {
|
|
44551
44648
|
while (low <= high) {
|
|
44552
|
-
|
|
44553
|
-
|
|
44649
|
+
const middle = (low + high) / 2 | 0;
|
|
44650
|
+
const currentValue = getCurrentValue(middle);
|
|
44554
44651
|
if (currentValue < value) {
|
|
44555
44652
|
low = middle + 1;
|
|
44556
44653
|
} else if (currentValue > value) {
|
|
@@ -44565,65 +44662,83 @@ var findNearestBinarySearch = function findNearestBinarySearch2(low, high, getCu
|
|
|
44565
44662
|
return 0;
|
|
44566
44663
|
}
|
|
44567
44664
|
};
|
|
44568
|
-
function calculateRange(
|
|
44569
|
-
|
|
44570
|
-
|
|
44571
|
-
|
|
44572
|
-
|
|
44573
|
-
|
|
44574
|
-
|
|
44575
|
-
|
|
44576
|
-
|
|
44577
|
-
|
|
44665
|
+
function calculateRange({
|
|
44666
|
+
measurements,
|
|
44667
|
+
outerSize,
|
|
44668
|
+
scrollOffset,
|
|
44669
|
+
lanes
|
|
44670
|
+
}) {
|
|
44671
|
+
const lastIndex = measurements.length - 1;
|
|
44672
|
+
const getOffset3 = (index2) => measurements[index2].start;
|
|
44673
|
+
if (measurements.length <= lanes) {
|
|
44674
|
+
return {
|
|
44675
|
+
startIndex: 0,
|
|
44676
|
+
endIndex: lastIndex
|
|
44677
|
+
};
|
|
44578
44678
|
}
|
|
44579
|
-
|
|
44580
|
-
|
|
44581
|
-
|
|
44582
|
-
|
|
44583
|
-
|
|
44584
|
-
|
|
44585
|
-
|
|
44586
|
-
|
|
44587
|
-
|
|
44588
|
-
|
|
44589
|
-
|
|
44590
|
-
|
|
44591
|
-
|
|
44592
|
-
|
|
44593
|
-
|
|
44594
|
-
|
|
44679
|
+
let startIndex = findNearestBinarySearch(
|
|
44680
|
+
0,
|
|
44681
|
+
lastIndex,
|
|
44682
|
+
getOffset3,
|
|
44683
|
+
scrollOffset
|
|
44684
|
+
);
|
|
44685
|
+
let endIndex = startIndex;
|
|
44686
|
+
if (lanes === 1) {
|
|
44687
|
+
while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) {
|
|
44688
|
+
endIndex++;
|
|
44689
|
+
}
|
|
44690
|
+
} else if (lanes > 1) {
|
|
44691
|
+
const endPerLane = Array(lanes).fill(0);
|
|
44692
|
+
while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
|
|
44693
|
+
const item = measurements[endIndex];
|
|
44694
|
+
endPerLane[item.lane] = item.end;
|
|
44695
|
+
endIndex++;
|
|
44696
|
+
}
|
|
44697
|
+
const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
|
|
44698
|
+
while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
|
|
44699
|
+
const item = measurements[startIndex];
|
|
44700
|
+
startPerLane[item.lane] = item.start;
|
|
44701
|
+
startIndex--;
|
|
44702
|
+
}
|
|
44703
|
+
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
44704
|
+
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
44705
|
+
}
|
|
44706
|
+
return { startIndex, endIndex };
|
|
44707
|
+
}
|
|
44708
|
+
const useIsomorphicLayoutEffect$1 = typeof document !== "undefined" ? React__namespace.useLayoutEffect : React__namespace.useEffect;
|
|
44595
44709
|
function useVirtualizerBase(options) {
|
|
44596
|
-
|
|
44597
|
-
|
|
44598
|
-
|
|
44599
|
-
|
|
44600
|
-
|
|
44710
|
+
const rerender = React__namespace.useReducer(() => ({}), {})[1];
|
|
44711
|
+
const resolvedOptions = {
|
|
44712
|
+
...options,
|
|
44713
|
+
onChange: (instance2, sync2) => {
|
|
44714
|
+
var _a;
|
|
44601
44715
|
if (sync2) {
|
|
44602
44716
|
ReactDOM.flushSync(rerender);
|
|
44603
44717
|
} else {
|
|
44604
44718
|
rerender();
|
|
44605
44719
|
}
|
|
44606
|
-
options.onChange == null
|
|
44720
|
+
(_a = options.onChange) == null ? void 0 : _a.call(options, instance2, sync2);
|
|
44607
44721
|
}
|
|
44608
|
-
}
|
|
44609
|
-
|
|
44610
|
-
|
|
44611
|
-
|
|
44722
|
+
};
|
|
44723
|
+
const [instance] = React__namespace.useState(
|
|
44724
|
+
() => new Virtualizer(resolvedOptions)
|
|
44725
|
+
);
|
|
44612
44726
|
instance.setOptions(resolvedOptions);
|
|
44613
|
-
|
|
44727
|
+
useIsomorphicLayoutEffect$1(() => {
|
|
44614
44728
|
return instance._didMount();
|
|
44615
44729
|
}, []);
|
|
44616
|
-
useIsomorphicLayoutEffect$1(
|
|
44730
|
+
useIsomorphicLayoutEffect$1(() => {
|
|
44617
44731
|
return instance._willUpdate();
|
|
44618
44732
|
});
|
|
44619
44733
|
return instance;
|
|
44620
44734
|
}
|
|
44621
44735
|
function useVirtualizer(options) {
|
|
44622
|
-
return useVirtualizerBase(
|
|
44736
|
+
return useVirtualizerBase({
|
|
44623
44737
|
observeElementRect,
|
|
44624
44738
|
observeElementOffset,
|
|
44625
|
-
scrollToFn: elementScroll
|
|
44626
|
-
|
|
44739
|
+
scrollToFn: elementScroll,
|
|
44740
|
+
...options
|
|
44741
|
+
});
|
|
44627
44742
|
}
|
|
44628
44743
|
const ROW_HEIGHT_ESTIMATES = {
|
|
44629
44744
|
short: 33,
|
|
@@ -44805,7 +44920,7 @@ function useTableRenderer(renderers, table, tableRef, length, defaultRowActiveIn
|
|
|
44805
44920
|
return /* @__PURE__ */ React.createElement(SkeletonRow, { key: skeletonKey, index: virtualRow.index, table });
|
|
44806
44921
|
}
|
|
44807
44922
|
const measureRow = (rowHeight) => {
|
|
44808
|
-
virtualiser.resizeItem(virtualRow, rowHeight);
|
|
44923
|
+
virtualiser.resizeItem(virtualRow.index, rowHeight);
|
|
44809
44924
|
};
|
|
44810
44925
|
return /* @__PURE__ */ React.createElement(
|
|
44811
44926
|
Row$2,
|
|
@@ -51722,7 +51837,7 @@ const Select22 = React.forwardRef(function Select222(props, ref) {
|
|
|
51722
51837
|
(child) => isGroup(child) ? Array.isArray(child.props.children) && child.props.children.map((subChild) => subChild.props.value) : child.props.value
|
|
51723
51838
|
) || [];
|
|
51724
51839
|
const queryTimeoutRef = React.useRef("");
|
|
51725
|
-
const typeahead = debounce$
|
|
51840
|
+
const typeahead = debounce$3(function() {
|
|
51726
51841
|
if (!queryTimeoutRef.current) {
|
|
51727
51842
|
return;
|
|
51728
51843
|
}
|
|
@@ -59582,7 +59697,7 @@ function createListComponent(_ref) {
|
|
|
59582
59697
|
className,
|
|
59583
59698
|
onScroll,
|
|
59584
59699
|
ref: this._outerRefSetter,
|
|
59585
|
-
style: _extends$
|
|
59700
|
+
style: _extends$x({
|
|
59586
59701
|
position: "relative",
|
|
59587
59702
|
height,
|
|
59588
59703
|
width,
|
|
@@ -63649,7 +63764,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /* @__PURE__ */ React.forwardR
|
|
|
63649
63764
|
orientation,
|
|
63650
63765
|
dir: direction,
|
|
63651
63766
|
activationMode
|
|
63652
|
-
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63767
|
+
}, /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63653
63768
|
dir: direction,
|
|
63654
63769
|
"data-orientation": orientation
|
|
63655
63770
|
}, tabsProps, {
|
|
@@ -63661,13 +63776,13 @@ const $69cb30bb0017df05$export$9712d22edc0d78c1 = /* @__PURE__ */ React.forwardR
|
|
|
63661
63776
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
63662
63777
|
const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);
|
|
63663
63778
|
const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);
|
|
63664
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
63779
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$x({
|
|
63665
63780
|
asChild: true
|
|
63666
63781
|
}, rovingFocusGroupScope, {
|
|
63667
63782
|
orientation: context.orientation,
|
|
63668
63783
|
dir: context.dir,
|
|
63669
63784
|
loop
|
|
63670
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63785
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63671
63786
|
role: "tablist",
|
|
63672
63787
|
"aria-orientation": context.orientation
|
|
63673
63788
|
}, listProps, {
|
|
@@ -63682,12 +63797,12 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /* @__PURE__ */ React.forwardR
|
|
|
63682
63797
|
const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);
|
|
63683
63798
|
const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);
|
|
63684
63799
|
const isSelected = value === context.value;
|
|
63685
|
-
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
63800
|
+
return /* @__PURE__ */ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$x({
|
|
63686
63801
|
asChild: true
|
|
63687
63802
|
}, rovingFocusGroupScope, {
|
|
63688
63803
|
focusable: !disabled,
|
|
63689
63804
|
active: isSelected
|
|
63690
|
-
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$
|
|
63805
|
+
}), /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends$x({
|
|
63691
63806
|
type: "button",
|
|
63692
63807
|
role: "tab",
|
|
63693
63808
|
"aria-selected": isSelected,
|
|
@@ -63734,7 +63849,7 @@ const $69cb30bb0017df05$export$bd905d70e8fd2ebb = /* @__PURE__ */ React.forwardR
|
|
|
63734
63849
|
{
|
|
63735
63850
|
present: forceMount || isSelected
|
|
63736
63851
|
},
|
|
63737
|
-
({ present }) => /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$
|
|
63852
|
+
({ present }) => /* @__PURE__ */ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends$x({
|
|
63738
63853
|
"data-state": isSelected ? "active" : "inactive",
|
|
63739
63854
|
"data-orientation": context.orientation,
|
|
63740
63855
|
role: "tabpanel",
|
|
@@ -67863,7 +67978,7 @@ function isRequiredIf(typeValidator, condition, message2) {
|
|
|
67863
67978
|
};
|
|
67864
67979
|
}
|
|
67865
67980
|
var STATUS$1 = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing" };
|
|
67866
|
-
var isReact16 = ReactDOM.createPortal !== void 0;
|
|
67981
|
+
var isReact16$1 = ReactDOM.createPortal !== void 0;
|
|
67867
67982
|
function canUseDOM$1() {
|
|
67868
67983
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
67869
67984
|
}
|
|
@@ -67920,17 +68035,17 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67920
68035
|
if (!this.node) {
|
|
67921
68036
|
this.appendNode();
|
|
67922
68037
|
}
|
|
67923
|
-
if (!isReact16) {
|
|
68038
|
+
if (!isReact16$1) {
|
|
67924
68039
|
this.renderPortal();
|
|
67925
68040
|
}
|
|
67926
68041
|
} }, { key: "componentDidUpdate", value: function componentDidUpdate() {
|
|
67927
68042
|
if (!canUseDOM$1()) return;
|
|
67928
|
-
if (!isReact16) {
|
|
68043
|
+
if (!isReact16$1) {
|
|
67929
68044
|
this.renderPortal();
|
|
67930
68045
|
}
|
|
67931
68046
|
} }, { key: "componentWillUnmount", value: function componentWillUnmount() {
|
|
67932
68047
|
if (!canUseDOM$1() || !this.node) return;
|
|
67933
|
-
if (!isReact16) {
|
|
68048
|
+
if (!isReact16$1) {
|
|
67934
68049
|
ReactDOM.unmountComponentAtNode(this.node);
|
|
67935
68050
|
}
|
|
67936
68051
|
if (this.node && this.node.parentNode === document.body) {
|
|
@@ -67955,7 +68070,7 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67955
68070
|
if (!this.node) {
|
|
67956
68071
|
this.appendNode();
|
|
67957
68072
|
}
|
|
67958
|
-
if (isReact16) {
|
|
68073
|
+
if (isReact16$1) {
|
|
67959
68074
|
return /* @__PURE__ */ ReactDOM.createPortal(children, this.node);
|
|
67960
68075
|
}
|
|
67961
68076
|
var portal = ReactDOM.unstable_renderSubtreeIntoContainer(this, children.length > 1 ? /* @__PURE__ */ React.createElement("div", null, children) : children[0], this.node);
|
|
@@ -67971,7 +68086,7 @@ var ReactFloaterPortal = /* @__PURE__ */ function(_React$Component) {
|
|
|
67971
68086
|
}
|
|
67972
68087
|
return this.renderPortal();
|
|
67973
68088
|
} }, { key: "render", value: function render() {
|
|
67974
|
-
if (!isReact16) {
|
|
68089
|
+
if (!isReact16$1) {
|
|
67975
68090
|
return null;
|
|
67976
68091
|
}
|
|
67977
68092
|
return this.renderReact16();
|
|
@@ -68658,6 +68773,7 @@ function scrollTo(value, options) {
|
|
|
68658
68773
|
});
|
|
68659
68774
|
});
|
|
68660
68775
|
}
|
|
68776
|
+
var isReact16 = ReactDOM.createPortal !== void 0;
|
|
68661
68777
|
function getBrowser(userAgent = navigator.userAgent) {
|
|
68662
68778
|
let browser = userAgent;
|
|
68663
68779
|
if (typeof window === "undefined") {
|
|
@@ -69594,23 +69710,55 @@ var JoyridePortal = class extends React__namespace.Component {
|
|
|
69594
69710
|
this.node = document.createElement("div");
|
|
69595
69711
|
this.node.id = id2;
|
|
69596
69712
|
document.body.appendChild(this.node);
|
|
69713
|
+
if (!isReact16) {
|
|
69714
|
+
this.renderReact15();
|
|
69715
|
+
}
|
|
69716
|
+
}
|
|
69717
|
+
componentDidUpdate() {
|
|
69718
|
+
if (!canUseDOM()) {
|
|
69719
|
+
return;
|
|
69720
|
+
}
|
|
69721
|
+
if (!isReact16) {
|
|
69722
|
+
this.renderReact15();
|
|
69723
|
+
}
|
|
69597
69724
|
}
|
|
69598
69725
|
componentWillUnmount() {
|
|
69599
69726
|
if (!canUseDOM() || !this.node) {
|
|
69600
69727
|
return;
|
|
69601
69728
|
}
|
|
69729
|
+
if (!isReact16) {
|
|
69730
|
+
ReactDOM__namespace.unmountComponentAtNode(this.node);
|
|
69731
|
+
}
|
|
69602
69732
|
if (this.node.parentNode === document.body) {
|
|
69603
69733
|
document.body.removeChild(this.node);
|
|
69604
69734
|
this.node = null;
|
|
69605
69735
|
}
|
|
69606
69736
|
}
|
|
69607
|
-
|
|
69608
|
-
if (!canUseDOM()
|
|
69737
|
+
renderReact15() {
|
|
69738
|
+
if (!canUseDOM()) {
|
|
69739
|
+
return;
|
|
69740
|
+
}
|
|
69741
|
+
const { children } = this.props;
|
|
69742
|
+
if (this.node) {
|
|
69743
|
+
ReactDOM__namespace.unstable_renderSubtreeIntoContainer(this, children, this.node);
|
|
69744
|
+
}
|
|
69745
|
+
}
|
|
69746
|
+
renderReact16() {
|
|
69747
|
+
if (!canUseDOM() || !isReact16) {
|
|
69609
69748
|
return null;
|
|
69610
69749
|
}
|
|
69611
69750
|
const { children } = this.props;
|
|
69751
|
+
if (!this.node) {
|
|
69752
|
+
return null;
|
|
69753
|
+
}
|
|
69612
69754
|
return ReactDOM__namespace.createPortal(children, this.node);
|
|
69613
69755
|
}
|
|
69756
|
+
render() {
|
|
69757
|
+
if (!isReact16) {
|
|
69758
|
+
return null;
|
|
69759
|
+
}
|
|
69760
|
+
return this.renderReact16();
|
|
69761
|
+
}
|
|
69614
69762
|
};
|
|
69615
69763
|
var Scope = class {
|
|
69616
69764
|
constructor(element, options) {
|