PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/modules/workflow/index.js +965 -213 23.6.2 → 22.7.0 View file →
@@ -124,11 +124,11 @@
124 124 return _ = h && h.length > 0 ? `${_ + " " + h.join(" ")}` : _, G(_, C, D(_), D(C), 0, 0, {});
125 125 }
126 126
127 127 // node_modules/@radix-ui/react-dialog/dist/index.mjs
128 -var React24 = __toESM(require_react(), 1);
128 +var React37 = __toESM(require_react(), 1);
129 129
130 -// node_modules/@radix-ui/primitive/dist/index.mjs
130 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.mjs
131 131 var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
132 132 function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
133 133 return function handleEvent(event) {
134 134 originalEventHandler?.(event);
@@ -137,9 +137,9 @@
137 137 }
138 138 };
139 139 }
140 140
141 -// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
141 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
142 142 var React = __toESM(require_react(), 1);
143 143 function setRef(ref, value) {
144 144 if (typeof ref === "function") {
145 145 return ref(value);
@@ -251,17 +251,17 @@
251 251 createScope.scopeName = baseScope.scopeName;
252 252 return createScope;
253 253 }
254 254
255 -// node_modules/@radix-ui/react-id/dist/index.mjs
255 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs
256 256 var React4 = __toESM(require_react(), 1);
257 257
258 -// node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
258 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
259 259 var React3 = __toESM(require_react(), 1);
260 260 var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
261 261 };
262 262
263 -// node_modules/@radix-ui/react-id/dist/index.mjs
263 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.mjs
264 264 var useReactId = React4[" useId ".trim().toString()] || (() => void 0);
265 265 var count = 0;
266 266 function useId(deterministicId) {
267 267 const [id, setId] = React4.useState(useReactId());
@@ -339,35 +339,85 @@
339 339 return typeof value === "function";
340 340 }
341 341
342 342 // node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
343 -var React10 = __toESM(require_react(), 1);
343 +var React11 = __toESM(require_react(), 1);
344 344
345 -// node_modules/@radix-ui/react-primitive/dist/index.mjs
345 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/primitive/dist/index.mjs
346 +var canUseDOM2 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
347 +function composeEventHandlers2(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
348 + return function handleEvent(event) {
349 + originalEventHandler?.(event);
350 + if (checkForDefaultPrevented === false || !event.defaultPrevented) {
351 + return ourEventHandler?.(event);
352 + }
353 + };
354 +}
355 +
356 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.mjs
357 +var React8 = __toESM(require_react(), 1);
358 +var ReactDOM = __toESM(require_react_dom(), 1);
359 +
360 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.mjs
346 361 var React7 = __toESM(require_react(), 1);
347 -var ReactDOM = __toESM(require_react_dom(), 1);
348 362
349 -// node_modules/@radix-ui/react-slot/dist/index.mjs
363 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
350 364 var React6 = __toESM(require_react(), 1);
365 +function setRef2(ref, value) {
366 + if (typeof ref === "function") {
367 + return ref(value);
368 + } else if (ref !== null && ref !== void 0) {
369 + ref.current = value;
370 + }
371 +}
372 +function composeRefs2(...refs) {
373 + return (node) => {
374 + let hasCleanup = false;
375 + const cleanups = refs.map((ref) => {
376 + const cleanup = setRef2(ref, node);
377 + if (!hasCleanup && typeof cleanup == "function") {
378 + hasCleanup = true;
379 + }
380 + return cleanup;
381 + });
382 + if (hasCleanup) {
383 + return () => {
384 + for (let i = 0; i < cleanups.length; i++) {
385 + const cleanup = cleanups[i];
386 + if (typeof cleanup == "function") {
387 + cleanup();
388 + } else {
389 + setRef2(refs[i], null);
390 + }
391 + }
392 + };
393 + }
394 + };
395 +}
396 +function useComposedRefs2(...refs) {
397 + return React6.useCallback(composeRefs2(...refs), refs);
398 +}
399 +
400 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-slot/dist/index.mjs
351 401 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
352 402 // @__NO_SIDE_EFFECTS__
353 403 function createSlot(ownerName) {
354 404 const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
355 - const Slot2 = React6.forwardRef((props, forwardedRef) => {
405 + const Slot2 = React7.forwardRef((props, forwardedRef) => {
356 406 const { children, ...slotProps } = props;
357 - const childrenArray = React6.Children.toArray(children);
407 + const childrenArray = React7.Children.toArray(children);
358 408 const slottable = childrenArray.find(isSlottable);
359 409 if (slottable) {
360 410 const newElement = slottable.props.children;
361 411 const newChildren = childrenArray.map((child) => {
362 412 if (child === slottable) {
363 - if (React6.Children.count(newElement) > 1) return React6.Children.only(null);
364 - return React6.isValidElement(newElement) ? newElement.props.children : null;
413 + if (React7.Children.count(newElement) > 1) return React7.Children.only(null);
414 + return React7.isValidElement(newElement) ? newElement.props.children : null;
365 415 } else {
366 416 return child;
367 417 }
368 418 });
369 - return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React6.isValidElement(newElement) ? React6.cloneElement(newElement, void 0, newChildren) : null });
419 + return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React7.isValidElement(newElement) ? React7.cloneElement(newElement, void 0, newChildren) : null });
370 420 }
371 421 return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
372 422 });
373 423 Slot2.displayName = `${ownerName}.Slot`;
@@ -374,19 +424,19 @@
374 424 return Slot2;
375 425 }
376 426 // @__NO_SIDE_EFFECTS__
377 427 function createSlotClone(ownerName) {
378 - const SlotClone = React6.forwardRef((props, forwardedRef) => {
428 + const SlotClone = React7.forwardRef((props, forwardedRef) => {
379 429 const { children, ...slotProps } = props;
380 - if (React6.isValidElement(children)) {
430 + if (React7.isValidElement(children)) {
381 431 const childrenRef = getElementRef(children);
382 432 const props2 = mergeProps(slotProps, children.props);
383 - if (children.type !== React6.Fragment) {
384 - props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
433 + if (children.type !== React7.Fragment) {
434 + props2.ref = forwardedRef ? composeRefs2(forwardedRef, childrenRef) : childrenRef;
385 435 }
386 - return React6.cloneElement(children, props2);
436 + return React7.cloneElement(children, props2);
387 437 }
388 - return React6.Children.count(children) > 1 ? React6.Children.only(null) : null;
438 + return React7.Children.count(children) > 1 ? React7.Children.only(null) : null;
389 439 });
390 440 SlotClone.displayName = `${ownerName}.SlotClone`;
391 441 return SlotClone;
392 442 }
@@ -391,9 +441,9 @@
391 441 return SlotClone;
392 442 }
393 443 var SLOTTABLE_IDENTIFIER = /* @__PURE__ */ Symbol("radix.slottable");
394 444 function isSlottable(child) {
395 - return React6.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
445 + return React7.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
396 446 }
397 447 function mergeProps(slotProps, childProps) {
398 448 const overrideProps = { ...childProps };
399 449 for (const propName in childProps) {
@@ -431,9 +481,9 @@
431 481 }
432 482 return element.props.ref || element.ref;
433 483 }
434 484
435 -// node_modules/@radix-ui/react-primitive/dist/index.mjs
485 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-primitive/dist/index.mjs
436 486 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
437 487 var NODES = [
438 488 "a",
439 489 "button",
@@ -454,9 +504,9 @@
454 504 "ul"
455 505 ];
456 506 var Primitive = NODES.reduce((primitive, node) => {
457 507 const Slot2 = createSlot(`Primitive.${node}`);
458 - const Node2 = React7.forwardRef((props, forwardedRef) => {
508 + const Node2 = React8.forwardRef((props, forwardedRef) => {
459 509 const { asChild, ...primitiveProps } = props;
460 510 const Comp = asChild ? Slot2 : node;
461 511 if (typeof window !== "undefined") {
462 512 window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
@@ -469,23 +519,23 @@
469 519 function dispatchDiscreteCustomEvent(target, event) {
470 520 if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
471 521 }
472 522
473 -// node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
474 -var React8 = __toESM(require_react(), 1);
523 +// node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
524 +var React9 = __toESM(require_react(), 1);
475 525 function useCallbackRef(callback) {
476 - const callbackRef = React8.useRef(callback);
477 - React8.useEffect(() => {
526 + const callbackRef = React9.useRef(callback);
527 + React9.useEffect(() => {
478 528 callbackRef.current = callback;
479 529 });
480 - return React8.useMemo(() => (...args) => callbackRef.current?.(...args), []);
530 + return React9.useMemo(() => (...args) => callbackRef.current?.(...args), []);
481 531 }
482 532
483 533 // node_modules/@radix-ui/react-dismissable-layer/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
484 -var React9 = __toESM(require_react(), 1);
534 +var React10 = __toESM(require_react(), 1);
485 535 function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {
486 536 const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
487 - React9.useEffect(() => {
537 + React10.useEffect(() => {
488 538 const handleKeyDown = (event) => {
489 539 if (event.key === "Escape") {
490 540 onEscapeKeyDown(event);
491 541 }
@@ -501,14 +551,14 @@
501 551 var CONTEXT_UPDATE = "dismissableLayer.update";
502 552 var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
503 553 var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
504 554 var originalBodyPointerEvents;
505 -var DismissableLayerContext = React10.createContext({
555 +var DismissableLayerContext = React11.createContext({
506 556 layers: /* @__PURE__ */ new Set(),
507 557 layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
508 558 branches: /* @__PURE__ */ new Set()
509 559 });
510 -var DismissableLayer = React10.forwardRef(
560 +var DismissableLayer = React11.forwardRef(
511 561 (props, forwardedRef) => {
512 562 const {
513 563 disableOutsidePointerEvents = false,
514 564 onEscapeKeyDown,
@@ -517,13 +567,13 @@
517 567 onInteractOutside,
518 568 onDismiss,
519 569 ...layerProps
520 570 } = props;
521 - const context = React10.useContext(DismissableLayerContext);
522 - const [node, setNode] = React10.useState(null);
571 + const context = React11.useContext(DismissableLayerContext);
572 + const [node, setNode] = React11.useState(null);
523 573 const ownerDocument = node?.ownerDocument ?? globalThis?.document;
524 - const [, force] = React10.useState({});
525 - const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
574 + const [, force] = React11.useState({});
575 + const composedRefs = useComposedRefs2(forwardedRef, (node2) => setNode(node2));
526 576 const layers = Array.from(context.layers);
527 577 const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
528 578 const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
529 579 const index = node ? layers.indexOf(node) : -1;
@@ -553,9 +603,9 @@
553 603 event.preventDefault();
554 604 onDismiss();
555 605 }
556 606 }, ownerDocument);
557 - React10.useEffect(() => {
607 + React11.useEffect(() => {
558 608 if (!node) return;
559 609 if (disableOutsidePointerEvents) {
560 610 if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
561 611 originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
@@ -570,9 +620,9 @@
570 620 ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
571 621 }
572 622 };
573 623 }, [node, ownerDocument, disableOutsidePointerEvents, context]);
574 - React10.useEffect(() => {
624 + React11.useEffect(() => {
575 625 return () => {
576 626 if (!node) return;
577 627 context.layers.delete(node);
578 628 context.layersWithOutsidePointerEventsDisabled.delete(node);
@@ -578,9 +628,9 @@
578 628 context.layersWithOutsidePointerEventsDisabled.delete(node);
579 629 dispatchUpdate();
580 630 };
581 631 }, [node, context]);
582 - React10.useEffect(() => {
632 + React11.useEffect(() => {
583 633 const handleUpdate = () => force({});
584 634 document.addEventListener(CONTEXT_UPDATE, handleUpdate);
585 635 return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
586 636 }, []);
@@ -592,11 +642,11 @@
592 642 style: {
593 643 pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
594 644 ...props.style
595 645 },
596 - onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
597 - onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
598 - onPointerDownCapture: composeEventHandlers(
646 + onFocusCapture: composeEventHandlers2(props.onFocusCapture, focusOutside.onFocusCapture),
647 + onBlurCapture: composeEventHandlers2(props.onBlurCapture, focusOutside.onBlurCapture),
648 + onPointerDownCapture: composeEventHandlers2(
599 649 props.onPointerDownCapture,
600 650 pointerDownOutside.onPointerDownCapture
601 651 )
602 652 }
@@ -604,13 +654,13 @@
604 654 }
605 655 );
606 656 DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
607 657 var BRANCH_NAME = "DismissableLayerBranch";
608 -var DismissableLayerBranch = React10.forwardRef((props, forwardedRef) => {
609 - const context = React10.useContext(DismissableLayerContext);
610 - const ref = React10.useRef(null);
611 - const composedRefs = useComposedRefs(forwardedRef, ref);
612 - React10.useEffect(() => {
658 +var DismissableLayerBranch = React11.forwardRef((props, forwardedRef) => {
659 + const context = React11.useContext(DismissableLayerContext);
660 + const ref = React11.useRef(null);
661 + const composedRefs = useComposedRefs2(forwardedRef, ref);
662 + React11.useEffect(() => {
613 663 const node = ref.current;
614 664 if (node) {
615 665 context.branches.add(node);
616 666 return () => {
@@ -622,12 +672,12 @@
622 672 });
623 673 DismissableLayerBranch.displayName = BRANCH_NAME;
624 674 function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
625 675 const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
626 - const isPointerInsideReactTreeRef = React10.useRef(false);
627 - const handleClickRef = React10.useRef(() => {
676 + const isPointerInsideReactTreeRef = React11.useRef(false);
677 + const handleClickRef = React11.useRef(() => {
628 678 });
629 - React10.useEffect(() => {
679 + React11.useEffect(() => {
630 680 const handlePointerDown = (event) => {
631 681 if (event.target && !isPointerInsideReactTreeRef.current) {
632 682 let handleAndDispatchPointerDownOutsideEvent2 = function() {
633 683 handleAndDispatchCustomEvent(
@@ -666,10 +716,10 @@
666 716 };
667 717 }
668 718 function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
669 719 const handleFocusOutside = useCallbackRef(onFocusOutside);
670 - const isFocusInsideReactTreeRef = React10.useRef(false);
671 - React10.useEffect(() => {
720 + const isFocusInsideReactTreeRef = React11.useRef(false);
721 + React11.useEffect(() => {
672 722 const handleFocus = (event) => {
673 723 if (event.target && !isFocusInsideReactTreeRef.current) {
674 724 const eventDetail = { originalEvent: event };
675 725 handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {
@@ -700,15 +750,189 @@
700 750 }
701 751 }
702 752
703 753 // node_modules/@radix-ui/react-focus-scope/dist/index.mjs
704 -var React11 = __toESM(require_react(), 1);
754 +var React16 = __toESM(require_react(), 1);
755 +
756 +// node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
757 +var React12 = __toESM(require_react(), 1);
758 +function setRef3(ref, value) {
759 + if (typeof ref === "function") {
760 + return ref(value);
761 + } else if (ref !== null && ref !== void 0) {
762 + ref.current = value;
763 + }
764 +}
765 +function composeRefs3(...refs) {
766 + return (node) => {
767 + let hasCleanup = false;
768 + const cleanups = refs.map((ref) => {
769 + const cleanup = setRef3(ref, node);
770 + if (!hasCleanup && typeof cleanup == "function") {
771 + hasCleanup = true;
772 + }
773 + return cleanup;
774 + });
775 + if (hasCleanup) {
776 + return () => {
777 + for (let i = 0; i < cleanups.length; i++) {
778 + const cleanup = cleanups[i];
779 + if (typeof cleanup == "function") {
780 + cleanup();
781 + } else {
782 + setRef3(refs[i], null);
783 + }
784 + }
785 + };
786 + }
787 + };
788 +}
789 +function useComposedRefs3(...refs) {
790 + return React12.useCallback(composeRefs3(...refs), refs);
791 +}
792 +
793 +// node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.mjs
794 +var React14 = __toESM(require_react(), 1);
795 +var ReactDOM2 = __toESM(require_react_dom(), 1);
796 +
797 +// node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-slot/dist/index.mjs
798 +var React13 = __toESM(require_react(), 1);
705 799 var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
800 +// @__NO_SIDE_EFFECTS__
801 +function createSlot2(ownerName) {
802 + const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
803 + const Slot2 = React13.forwardRef((props, forwardedRef) => {
804 + const { children, ...slotProps } = props;
805 + const childrenArray = React13.Children.toArray(children);
806 + const slottable = childrenArray.find(isSlottable2);
807 + if (slottable) {
808 + const newElement = slottable.props.children;
809 + const newChildren = childrenArray.map((child) => {
810 + if (child === slottable) {
811 + if (React13.Children.count(newElement) > 1) return React13.Children.only(null);
812 + return React13.isValidElement(newElement) ? newElement.props.children : null;
813 + } else {
814 + return child;
815 + }
816 + });
817 + return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React13.isValidElement(newElement) ? React13.cloneElement(newElement, void 0, newChildren) : null });
818 + }
819 + return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
820 + });
821 + Slot2.displayName = `${ownerName}.Slot`;
822 + return Slot2;
823 +}
824 +// @__NO_SIDE_EFFECTS__
825 +function createSlotClone2(ownerName) {
826 + const SlotClone = React13.forwardRef((props, forwardedRef) => {
827 + const { children, ...slotProps } = props;
828 + if (React13.isValidElement(children)) {
829 + const childrenRef = getElementRef2(children);
830 + const props2 = mergeProps2(slotProps, children.props);
831 + if (children.type !== React13.Fragment) {
832 + props2.ref = forwardedRef ? composeRefs3(forwardedRef, childrenRef) : childrenRef;
833 + }
834 + return React13.cloneElement(children, props2);
835 + }
836 + return React13.Children.count(children) > 1 ? React13.Children.only(null) : null;
837 + });
838 + SlotClone.displayName = `${ownerName}.SlotClone`;
839 + return SlotClone;
840 +}
841 +var SLOTTABLE_IDENTIFIER2 = /* @__PURE__ */ Symbol("radix.slottable");
842 +function isSlottable2(child) {
843 + return React13.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER2;
844 +}
845 +function mergeProps2(slotProps, childProps) {
846 + const overrideProps = { ...childProps };
847 + for (const propName in childProps) {
848 + const slotPropValue = slotProps[propName];
849 + const childPropValue = childProps[propName];
850 + const isHandler = /^on[A-Z]/.test(propName);
851 + if (isHandler) {
852 + if (slotPropValue && childPropValue) {
853 + overrideProps[propName] = (...args) => {
854 + const result = childPropValue(...args);
855 + slotPropValue(...args);
856 + return result;
857 + };
858 + } else if (slotPropValue) {
859 + overrideProps[propName] = slotPropValue;
860 + }
861 + } else if (propName === "style") {
862 + overrideProps[propName] = { ...slotPropValue, ...childPropValue };
863 + } else if (propName === "className") {
864 + overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
865 + }
866 + }
867 + return { ...slotProps, ...overrideProps };
868 +}
869 +function getElementRef2(element) {
870 + let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
871 + let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
872 + if (mayWarn) {
873 + return element.ref;
874 + }
875 + getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
876 + mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
877 + if (mayWarn) {
878 + return element.props.ref;
879 + }
880 + return element.props.ref || element.ref;
881 +}
882 +
883 +// node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.mjs
884 +var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
885 +var NODES2 = [
886 + "a",
887 + "button",
888 + "div",
889 + "form",
890 + "h2",
891 + "h3",
892 + "img",
893 + "input",
894 + "label",
895 + "li",
896 + "nav",
897 + "ol",
898 + "p",
899 + "select",
900 + "span",
901 + "svg",
902 + "ul"
903 +];
904 +var Primitive2 = NODES2.reduce((primitive, node) => {
905 + const Slot2 = createSlot2(`Primitive.${node}`);
906 + const Node2 = React14.forwardRef((props, forwardedRef) => {
907 + const { asChild, ...primitiveProps } = props;
908 + const Comp = asChild ? Slot2 : node;
909 + if (typeof window !== "undefined") {
910 + window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
911 + }
912 + return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
913 + });
914 + Node2.displayName = `Primitive.${node}`;
915 + return { ...primitive, [node]: Node2 };
916 +}, {});
917 +
918 +// node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
919 +var React15 = __toESM(require_react(), 1);
920 +function useCallbackRef2(callback) {
921 + const callbackRef = React15.useRef(callback);
922 + React15.useEffect(() => {
923 + callbackRef.current = callback;
924 + });
925 + return React15.useMemo(() => (...args) => callbackRef.current?.(...args), []);
926 +}
927 +
928 +// node_modules/@radix-ui/react-focus-scope/dist/index.mjs
929 +var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
706 930 var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
707 931 var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
708 932 var EVENT_OPTIONS = { bubbles: false, cancelable: true };
709 933 var FOCUS_SCOPE_NAME = "FocusScope";
710 -var FocusScope = React11.forwardRef((props, forwardedRef) => {
934 +var FocusScope = React16.forwardRef((props, forwardedRef) => {
711 935 const {
712 936 loop = false,
713 937 trapped = false,
714 938 onMountAutoFocus: onMountAutoFocusProp,
@@ -714,14 +938,14 @@
714 938 onMountAutoFocus: onMountAutoFocusProp,
715 939 onUnmountAutoFocus: onUnmountAutoFocusProp,
716 940 ...scopeProps
717 941 } = props;
718 - const [container, setContainer] = React11.useState(null);
719 - const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
720 - const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
721 - const lastFocusedElementRef = React11.useRef(null);
722 - const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
723 - const focusScope = React11.useRef({
942 + const [container, setContainer] = React16.useState(null);
943 + const onMountAutoFocus = useCallbackRef2(onMountAutoFocusProp);
944 + const onUnmountAutoFocus = useCallbackRef2(onUnmountAutoFocusProp);
945 + const lastFocusedElementRef = React16.useRef(null);
946 + const composedRefs = useComposedRefs3(forwardedRef, (node) => setContainer(node));
947 + const focusScope = React16.useRef({
724 948 paused: false,
725 949 pause() {
726 950 this.paused = true;
727 951 },
@@ -728,9 +952,9 @@
728 952 resume() {
729 953 this.paused = false;
730 954 }
731 955 }).current;
732 - React11.useEffect(() => {
956 + React16.useEffect(() => {
733 957 if (trapped) {
734 958 let handleFocusIn2 = function(event) {
735 959 if (focusScope.paused || !container) return;
736 960 const target = event.target;
@@ -764,9 +988,9 @@
764 988 mutationObserver.disconnect();
765 989 };
766 990 }
767 991 }, [trapped, container, focusScope.paused]);
768 - React11.useEffect(() => {
992 + React16.useEffect(() => {
769 993 if (container) {
770 994 focusScopesStack.add(focusScope);
771 995 const previouslyFocusedElement = document.activeElement;
772 996 const hasFocusedCandidate = container.contains(previouslyFocusedElement);
@@ -795,9 +1019,9 @@
795 1019 }, 0);
796 1020 };
797 1021 }
798 1022 }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
799 - const handleKeyDown = React11.useCallback(
1023 + const handleKeyDown = React16.useCallback(
800 1024 (event) => {
801 1025 if (!loop && !trapped) return;
802 1026 if (focusScope.paused) return;
803 1027 const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
@@ -820,9 +1044,9 @@
820 1044 }
821 1045 },
822 1046 [loop, trapped, focusScope.paused]
823 1047 );
824 - return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
1048 + return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Primitive2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
825 1049 });
826 1050 FocusScope.displayName = FOCUS_SCOPE_NAME;
827 1051 function focusFirst(candidates, { select = false } = {}) {
828 1052 const previouslyFocusedElement = document.activeElement;
@@ -904,26 +1128,238 @@
904 1128 return items.filter((item) => item.tagName !== "A");
905 1129 }
906 1130
907 1131 // node_modules/@radix-ui/react-portal/dist/index.mjs
908 -var React12 = __toESM(require_react(), 1);
1132 +var React21 = __toESM(require_react(), 1);
909 1133 var import_react_dom = __toESM(require_react_dom(), 1);
910 -var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
1134 +
1135 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.mjs
1136 +var React19 = __toESM(require_react(), 1);
1137 +var ReactDOM3 = __toESM(require_react_dom(), 1);
1138 +
1139 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.mjs
1140 +var React18 = __toESM(require_react(), 1);
1141 +
1142 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
1143 +var React17 = __toESM(require_react(), 1);
1144 +function setRef4(ref, value) {
1145 + if (typeof ref === "function") {
1146 + return ref(value);
1147 + } else if (ref !== null && ref !== void 0) {
1148 + ref.current = value;
1149 + }
1150 +}
1151 +function composeRefs4(...refs) {
1152 + return (node) => {
1153 + let hasCleanup = false;
1154 + const cleanups = refs.map((ref) => {
1155 + const cleanup = setRef4(ref, node);
1156 + if (!hasCleanup && typeof cleanup == "function") {
1157 + hasCleanup = true;
1158 + }
1159 + return cleanup;
1160 + });
1161 + if (hasCleanup) {
1162 + return () => {
1163 + for (let i = 0; i < cleanups.length; i++) {
1164 + const cleanup = cleanups[i];
1165 + if (typeof cleanup == "function") {
1166 + cleanup();
1167 + } else {
1168 + setRef4(refs[i], null);
1169 + }
1170 + }
1171 + };
1172 + }
1173 + };
1174 +}
1175 +
1176 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-slot/dist/index.mjs
1177 +var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
1178 +// @__NO_SIDE_EFFECTS__
1179 +function createSlot3(ownerName) {
1180 + const SlotClone = /* @__PURE__ */ createSlotClone3(ownerName);
1181 + const Slot2 = React18.forwardRef((props, forwardedRef) => {
1182 + const { children, ...slotProps } = props;
1183 + const childrenArray = React18.Children.toArray(children);
1184 + const slottable = childrenArray.find(isSlottable3);
1185 + if (slottable) {
1186 + const newElement = slottable.props.children;
1187 + const newChildren = childrenArray.map((child) => {
1188 + if (child === slottable) {
1189 + if (React18.Children.count(newElement) > 1) return React18.Children.only(null);
1190 + return React18.isValidElement(newElement) ? newElement.props.children : null;
1191 + } else {
1192 + return child;
1193 + }
1194 + });
1195 + return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React18.isValidElement(newElement) ? React18.cloneElement(newElement, void 0, newChildren) : null });
1196 + }
1197 + return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
1198 + });
1199 + Slot2.displayName = `${ownerName}.Slot`;
1200 + return Slot2;
1201 +}
1202 +// @__NO_SIDE_EFFECTS__
1203 +function createSlotClone3(ownerName) {
1204 + const SlotClone = React18.forwardRef((props, forwardedRef) => {
1205 + const { children, ...slotProps } = props;
1206 + if (React18.isValidElement(children)) {
1207 + const childrenRef = getElementRef3(children);
1208 + const props2 = mergeProps3(slotProps, children.props);
1209 + if (children.type !== React18.Fragment) {
1210 + props2.ref = forwardedRef ? composeRefs4(forwardedRef, childrenRef) : childrenRef;
1211 + }
1212 + return React18.cloneElement(children, props2);
1213 + }
1214 + return React18.Children.count(children) > 1 ? React18.Children.only(null) : null;
1215 + });
1216 + SlotClone.displayName = `${ownerName}.SlotClone`;
1217 + return SlotClone;
1218 +}
1219 +var SLOTTABLE_IDENTIFIER3 = /* @__PURE__ */ Symbol("radix.slottable");
1220 +function isSlottable3(child) {
1221 + return React18.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER3;
1222 +}
1223 +function mergeProps3(slotProps, childProps) {
1224 + const overrideProps = { ...childProps };
1225 + for (const propName in childProps) {
1226 + const slotPropValue = slotProps[propName];
1227 + const childPropValue = childProps[propName];
1228 + const isHandler = /^on[A-Z]/.test(propName);
1229 + if (isHandler) {
1230 + if (slotPropValue && childPropValue) {
1231 + overrideProps[propName] = (...args) => {
1232 + const result = childPropValue(...args);
1233 + slotPropValue(...args);
1234 + return result;
1235 + };
1236 + } else if (slotPropValue) {
1237 + overrideProps[propName] = slotPropValue;
1238 + }
1239 + } else if (propName === "style") {
1240 + overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1241 + } else if (propName === "className") {
1242 + overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1243 + }
1244 + }
1245 + return { ...slotProps, ...overrideProps };
1246 +}
1247 +function getElementRef3(element) {
1248 + let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
1249 + let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1250 + if (mayWarn) {
1251 + return element.ref;
1252 + }
1253 + getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
1254 + mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1255 + if (mayWarn) {
1256 + return element.props.ref;
1257 + }
1258 + return element.props.ref || element.ref;
1259 +}
1260 +
1261 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-primitive/dist/index.mjs
1262 +var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
1263 +var NODES3 = [
1264 + "a",
1265 + "button",
1266 + "div",
1267 + "form",
1268 + "h2",
1269 + "h3",
1270 + "img",
1271 + "input",
1272 + "label",
1273 + "li",
1274 + "nav",
1275 + "ol",
1276 + "p",
1277 + "select",
1278 + "span",
1279 + "svg",
1280 + "ul"
1281 +];
1282 +var Primitive3 = NODES3.reduce((primitive, node) => {
1283 + const Slot2 = createSlot3(`Primitive.${node}`);
1284 + const Node2 = React19.forwardRef((props, forwardedRef) => {
1285 + const { asChild, ...primitiveProps } = props;
1286 + const Comp = asChild ? Slot2 : node;
1287 + if (typeof window !== "undefined") {
1288 + window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
1289 + }
1290 + return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
1291 + });
1292 + Node2.displayName = `Primitive.${node}`;
1293 + return { ...primitive, [node]: Node2 };
1294 +}, {});
1295 +
1296 +// node_modules/@radix-ui/react-portal/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
1297 +var React20 = __toESM(require_react(), 1);
1298 +var useLayoutEffect22 = globalThis?.document ? React20.useLayoutEffect : () => {
1299 +};
1300 +
1301 +// node_modules/@radix-ui/react-portal/dist/index.mjs
1302 +var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
911 1303 var PORTAL_NAME = "Portal";
912 -var Portal = React12.forwardRef((props, forwardedRef) => {
1304 +var Portal = React21.forwardRef((props, forwardedRef) => {
913 1305 const { container: containerProp, ...portalProps } = props;
914 - const [mounted, setMounted] = React12.useState(false);
915 - useLayoutEffect2(() => setMounted(true), []);
1306 + const [mounted, setMounted] = React21.useState(false);
1307 + useLayoutEffect22(() => setMounted(true), []);
916 1308 const container = containerProp || mounted && globalThis?.document?.body;
917 - return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
1309 + return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Primitive3.div, { ...portalProps, ref: forwardedRef }), container) : null;
918 1310 });
919 1311 Portal.displayName = PORTAL_NAME;
920 1312
921 1313 // node_modules/@radix-ui/react-presence/dist/index.mjs
1314 +var React25 = __toESM(require_react(), 1);
1315 +
1316 +// node_modules/@radix-ui/react-presence/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
922 1317 var React23 = __toESM(require_react(), 1);
923 -var React13 = __toESM(require_react(), 1);
1318 +function setRef5(ref, value) {
1319 + if (typeof ref === "function") {
1320 + return ref(value);
1321 + } else if (ref !== null && ref !== void 0) {
1322 + ref.current = value;
1323 + }
1324 +}
1325 +function composeRefs5(...refs) {
1326 + return (node) => {
1327 + let hasCleanup = false;
1328 + const cleanups = refs.map((ref) => {
1329 + const cleanup = setRef5(ref, node);
1330 + if (!hasCleanup && typeof cleanup == "function") {
1331 + hasCleanup = true;
1332 + }
1333 + return cleanup;
1334 + });
1335 + if (hasCleanup) {
1336 + return () => {
1337 + for (let i = 0; i < cleanups.length; i++) {
1338 + const cleanup = cleanups[i];
1339 + if (typeof cleanup == "function") {
1340 + cleanup();
1341 + } else {
1342 + setRef5(refs[i], null);
1343 + }
1344 + }
1345 + };
1346 + }
1347 + };
1348 +}
1349 +function useComposedRefs4(...refs) {
1350 + return React23.useCallback(composeRefs5(...refs), refs);
1351 +}
1352 +
1353 +// node_modules/@radix-ui/react-presence/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
1354 +var React24 = __toESM(require_react(), 1);
1355 +var useLayoutEffect23 = globalThis?.document ? React24.useLayoutEffect : () => {
1356 +};
1357 +
1358 +// node_modules/@radix-ui/react-presence/dist/index.mjs
1359 +var React26 = __toESM(require_react(), 1);
924 1360 function useStateMachine(initialState, machine) {
925 - return React13.useReducer((state, event) => {
1361 + return React26.useReducer((state, event) => {
926 1362 const nextState = machine[state][event];
927 1363 return nextState ?? state;
928 1364 }, initialState);
929 1365 }
@@ -929,19 +1365,19 @@
929 1365 }
930 1366 var Presence = (props) => {
931 1367 const { present, children } = props;
932 1368 const presence = usePresence(present);
933 - const child = typeof children === "function" ? children({ present: presence.isPresent }) : React23.Children.only(children);
934 - const ref = useComposedRefs(presence.ref, getElementRef2(child));
1369 + const child = typeof children === "function" ? children({ present: presence.isPresent }) : React25.Children.only(children);
1370 + const ref = useComposedRefs4(presence.ref, getElementRef4(child));
935 1371 const forceMount = typeof children === "function";
936 - return forceMount || presence.isPresent ? React23.cloneElement(child, { ref }) : null;
1372 + return forceMount || presence.isPresent ? React25.cloneElement(child, { ref }) : null;
937 1373 };
938 1374 Presence.displayName = "Presence";
939 1375 function usePresence(present) {
940 - const [node, setNode] = React23.useState();
941 - const stylesRef = React23.useRef(null);
942 - const prevPresentRef = React23.useRef(present);
943 - const prevAnimationNameRef = React23.useRef("none");
1376 + const [node, setNode] = React25.useState();
1377 + const stylesRef = React25.useRef(null);
1378 + const prevPresentRef = React25.useRef(present);
1379 + const prevAnimationNameRef = React25.useRef("none");
944 1380 const initialState = present ? "mounted" : "unmounted";
945 1381 const [state, send] = useStateMachine(initialState, {
946 1382 mounted: {
947 1383 UNMOUNT: "unmounted",
@@ -954,13 +1390,13 @@
954 1390 unmounted: {
955 1391 MOUNT: "mounted"
956 1392 }
957 1393 });
958 - React23.useEffect(() => {
1394 + React25.useEffect(() => {
959 1395 const currentAnimationName = getAnimationName(stylesRef.current);
960 1396 prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
961 1397 }, [state]);
962 - useLayoutEffect2(() => {
1398 + useLayoutEffect23(() => {
963 1399 const styles = stylesRef.current;
964 1400 const wasPresent = prevPresentRef.current;
965 1401 const hasPresentChanged = wasPresent !== present;
966 1402 if (hasPresentChanged) {
@@ -980,9 +1416,9 @@
980 1416 }
981 1417 prevPresentRef.current = present;
982 1418 }
983 1419 }, [present, send]);
984 - useLayoutEffect2(() => {
1420 + useLayoutEffect23(() => {
985 1421 if (node) {
986 1422 let timeoutId;
987 1423 const ownerWindow = node.ownerDocument.defaultView ?? window;
988 1424 const handleAnimationEnd = (event) => {
@@ -1020,9 +1456,9 @@
1020 1456 }
1021 1457 }, [node, send]);
1022 1458 return {
1023 1459 isPresent: ["mounted", "unmountSuspended"].includes(state),
1024 - ref: React23.useCallback((node2) => {
1460 + ref: React25.useCallback((node2) => {
1025 1461 stylesRef.current = node2 ? getComputedStyle(node2) : null;
1026 1462 setNode(node2);
1027 1463 }, [])
1028 1464 };
@@ -1029,9 +1465,9 @@
1029 1465 }
1030 1466 function getAnimationName(styles) {
1031 1467 return styles?.animationName || "none";
1032 1468 }
1033 -function getElementRef2(element) {
1469 +function getElementRef4(element) {
1034 1470 let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
1035 1471 let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1036 1472 if (mayWarn) {
1037 1473 return element.ref;
@@ -1043,13 +1479,138 @@
1043 1479 }
1044 1480 return element.props.ref || element.ref;
1045 1481 }
1046 1482
1483 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs
1484 +var React28 = __toESM(require_react(), 1);
1485 +var ReactDOM5 = __toESM(require_react_dom(), 1);
1486 +
1487 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
1488 +var React27 = __toESM(require_react(), 1);
1489 +var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
1490 +// @__NO_SIDE_EFFECTS__
1491 +function createSlot4(ownerName) {
1492 + const SlotClone = /* @__PURE__ */ createSlotClone4(ownerName);
1493 + const Slot2 = React27.forwardRef((props, forwardedRef) => {
1494 + const { children, ...slotProps } = props;
1495 + const childrenArray = React27.Children.toArray(children);
1496 + const slottable = childrenArray.find(isSlottable4);
1497 + if (slottable) {
1498 + const newElement = slottable.props.children;
1499 + const newChildren = childrenArray.map((child) => {
1500 + if (child === slottable) {
1501 + if (React27.Children.count(newElement) > 1) return React27.Children.only(null);
1502 + return React27.isValidElement(newElement) ? newElement.props.children : null;
1503 + } else {
1504 + return child;
1505 + }
1506 + });
1507 + return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React27.isValidElement(newElement) ? React27.cloneElement(newElement, void 0, newChildren) : null });
1508 + }
1509 + return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
1510 + });
1511 + Slot2.displayName = `${ownerName}.Slot`;
1512 + return Slot2;
1513 +}
1514 +// @__NO_SIDE_EFFECTS__
1515 +function createSlotClone4(ownerName) {
1516 + const SlotClone = React27.forwardRef((props, forwardedRef) => {
1517 + const { children, ...slotProps } = props;
1518 + if (React27.isValidElement(children)) {
1519 + const childrenRef = getElementRef5(children);
1520 + const props2 = mergeProps4(slotProps, children.props);
1521 + if (children.type !== React27.Fragment) {
1522 + props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
1523 + }
1524 + return React27.cloneElement(children, props2);
1525 + }
1526 + return React27.Children.count(children) > 1 ? React27.Children.only(null) : null;
1527 + });
1528 + SlotClone.displayName = `${ownerName}.SlotClone`;
1529 + return SlotClone;
1530 +}
1531 +var SLOTTABLE_IDENTIFIER4 = /* @__PURE__ */ Symbol("radix.slottable");
1532 +function isSlottable4(child) {
1533 + return React27.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER4;
1534 +}
1535 +function mergeProps4(slotProps, childProps) {
1536 + const overrideProps = { ...childProps };
1537 + for (const propName in childProps) {
1538 + const slotPropValue = slotProps[propName];
1539 + const childPropValue = childProps[propName];
1540 + const isHandler = /^on[A-Z]/.test(propName);
1541 + if (isHandler) {
1542 + if (slotPropValue && childPropValue) {
1543 + overrideProps[propName] = (...args) => {
1544 + const result = childPropValue(...args);
1545 + slotPropValue(...args);
1546 + return result;
1547 + };
1548 + } else if (slotPropValue) {
1549 + overrideProps[propName] = slotPropValue;
1550 + }
1551 + } else if (propName === "style") {
1552 + overrideProps[propName] = { ...slotPropValue, ...childPropValue };
1553 + } else if (propName === "className") {
1554 + overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
1555 + }
1556 + }
1557 + return { ...slotProps, ...overrideProps };
1558 +}
1559 +function getElementRef5(element) {
1560 + let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
1561 + let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1562 + if (mayWarn) {
1563 + return element.ref;
1564 + }
1565 + getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
1566 + mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
1567 + if (mayWarn) {
1568 + return element.props.ref;
1569 + }
1570 + return element.props.ref || element.ref;
1571 +}
1572 +
1573 +// node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs
1574 +var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
1575 +var NODES4 = [
1576 + "a",
1577 + "button",
1578 + "div",
1579 + "form",
1580 + "h2",
1581 + "h3",
1582 + "img",
1583 + "input",
1584 + "label",
1585 + "li",
1586 + "nav",
1587 + "ol",
1588 + "p",
1589 + "select",
1590 + "span",
1591 + "svg",
1592 + "ul"
1593 +];
1594 +var Primitive4 = NODES4.reduce((primitive, node) => {
1595 + const Slot2 = createSlot4(`Primitive.${node}`);
1596 + const Node2 = React28.forwardRef((props, forwardedRef) => {
1597 + const { asChild, ...primitiveProps } = props;
1598 + const Comp = asChild ? Slot2 : node;
1599 + if (typeof window !== "undefined") {
1600 + window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
1601 + }
1602 + return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
1603 + });
1604 + Node2.displayName = `Primitive.${node}`;
1605 + return { ...primitive, [node]: Node2 };
1606 +}, {});
1607 +
1047 1608 // node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
1048 -var React14 = __toESM(require_react(), 1);
1609 +var React29 = __toESM(require_react(), 1);
1049 1610 var count2 = 0;
1050 1611 function useFocusGuards() {
1051 - React14.useEffect(() => {
1612 + React29.useEffect(() => {
1052 1613 const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
1053 1614 document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
1054 1615 document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
1055 1616 count2++;
@@ -1104,12 +1665,12 @@
1104 1665 return to.concat(ar || Array.prototype.slice.call(from));
1105 1666 }
1106 1667
1107 1668 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js
1108 -var React21 = __toESM(require_react());
1669 +var React36 = __toESM(require_react());
1109 1670
1110 1671 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js
1111 -var React17 = __toESM(require_react());
1672 +var React32 = __toESM(require_react());
1112 1673
1113 1674 // node_modules/react-remove-scroll-bar/dist/es2015/constants.js
1114 1675 var zeroRightClassName = "right-scroll-bar-position";
1115 1676 var fullWidthClassName = "width-before-scroll-bar";
@@ -1127,9 +1688,9 @@
1127 1688 }
1128 1689
1129 1690 // node_modules/use-callback-ref/dist/es2015/useRef.js
1130 1691 var import_react = __toESM(require_react());
1131 -function useCallbackRef2(initialValue, callback) {
1692 +function useCallbackRef3(initialValue, callback) {
1132 1693 var ref = (0, import_react.useState)(function() {
1133 1694 return {
1134 1695 // value
1135 1696 value: initialValue,
@@ -1154,13 +1715,13 @@
1154 1715 return ref.facade;
1155 1716 }
1156 1717
1157 1718 // node_modules/use-callback-ref/dist/es2015/useMergeRef.js
1158 -var React15 = __toESM(require_react());
1159 -var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React15.useLayoutEffect : React15.useEffect;
1719 +var React30 = __toESM(require_react());
1720 +var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React30.useLayoutEffect : React30.useEffect;
1160 1721 var currentValues = /* @__PURE__ */ new WeakMap();
1161 1722 function useMergeRefs(refs, defaultValue) {
1162 - var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
1723 + var callbackRef = useCallbackRef3(defaultValue || null, function(newValue) {
1163 1724 return refs.forEach(function(ref) {
1164 1725 return assignRef(ref, newValue);
1165 1726 });
1166 1727 });
@@ -1272,9 +1833,9 @@
1272 1833 return medium;
1273 1834 }
1274 1835
1275 1836 // node_modules/use-sidecar/dist/es2015/exports.js
1276 -var React16 = __toESM(require_react());
1837 +var React31 = __toESM(require_react());
1277 1838 var SideCar = function(_a) {
1278 1839 var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
1279 1840 if (!sideCar) {
1280 1841 throw new Error("Sidecar: please provide `sideCar` property to import the right car");
@@ -1282,9 +1843,9 @@
1282 1843 var Target = sideCar.read();
1283 1844 if (!Target) {
1284 1845 throw new Error("Sidecar medium not found");
1285 1846 }
1286 - return React16.createElement(Target, __assign({}, rest));
1847 + return React31.createElement(Target, __assign({}, rest));
1287 1848 };
1288 1849 SideCar.isSideCarExport = true;
1289 1850 function exportSidecar(medium, exported) {
1290 1851 medium.useMedium(exported);
@@ -1297,11 +1858,11 @@
1297 1858 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/UI.js
1298 1859 var nothing = function() {
1299 1860 return;
1300 1861 };
1301 -var RemoveScroll = React17.forwardRef(function(props, parentRef) {
1302 - var ref = React17.useRef(null);
1303 - var _a = React17.useState({
1862 +var RemoveScroll = React32.forwardRef(function(props, parentRef) {
1863 + var ref = React32.useRef(null);
1864 + var _a = React32.useState({
1304 1865 onScrollCapture: nothing,
1305 1866 onWheelCapture: nothing,
1306 1867 onTouchMoveCapture: nothing
1307 1868 }), callbacks = _a[0], setCallbacks = _a[1];
@@ -1308,13 +1869,13 @@
1308 1869 var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
1309 1870 var SideCar2 = sideCar;
1310 1871 var containerRef = useMergeRefs([ref, parentRef]);
1311 1872 var containerProps = __assign(__assign({}, rest), callbacks);
1312 - return React17.createElement(
1313 - React17.Fragment,
1873 + return React32.createElement(
1874 + React32.Fragment,
1314 1875 null,
1315 - enabled && React17.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
1316 - forwardProps ? React17.cloneElement(React17.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React17.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
1876 + enabled && React32.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
1877 + forwardProps ? React32.cloneElement(React32.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React32.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
1317 1878 );
1318 1879 });
1319 1880 RemoveScroll.defaultProps = {
1320 1881 enabled: true,
@@ -1326,15 +1887,15 @@
1326 1887 zeroRight: zeroRightClassName
1327 1888 };
1328 1889
1329 1890 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
1330 -var React20 = __toESM(require_react());
1891 +var React35 = __toESM(require_react());
1331 1892
1332 1893 // node_modules/react-remove-scroll-bar/dist/es2015/component.js
1333 -var React19 = __toESM(require_react());
1894 +var React34 = __toESM(require_react());
1334 1895
1335 1896 // node_modules/react-style-singleton/dist/es2015/hook.js
1336 -var React18 = __toESM(require_react());
1897 +var React33 = __toESM(require_react());
1337 1898
1338 1899 // node_modules/get-nonce/dist/es2015/index.js
1339 1900 var currentNonce;
1340 1901 var getNonce = function() {
@@ -1396,9 +1957,9 @@
1396 1957 // node_modules/react-style-singleton/dist/es2015/hook.js
1397 1958 var styleHookSingleton = function() {
1398 1959 var sheet = stylesheetSingleton();
1399 1960 return function(styles, isDynamic) {
1400 - React18.useEffect(function() {
1961 + React33.useEffect(function() {
1401 1962 sheet.add(styles);
1402 1963 return function() {
1403 1964 sheet.remove();
1404 1965 };
@@ -1470,9 +2031,9 @@
1470 2031 var counter = parseInt(document.body.getAttribute(lockAttribute) || "0", 10);
1471 2032 return isFinite(counter) ? counter : 0;
1472 2033 };
1473 2034 var useLockAttribute = function() {
1474 - React19.useEffect(function() {
2035 + React34.useEffect(function() {
1475 2036 document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
1476 2037 return function() {
1477 2038 var newCounter = getCurrentUseCounter() - 1;
1478 2039 if (newCounter <= 0) {
@@ -1485,12 +2046,12 @@
1485 2046 };
1486 2047 var RemoveScrollBar = function(_a) {
1487 2048 var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
1488 2049 useLockAttribute();
1489 - var gap = React19.useMemo(function() {
2050 + var gap = React34.useMemo(function() {
1490 2051 return getGapWidth(gapMode);
1491 2052 }, [gapMode]);
1492 - return React19.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
2053 + return React34.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
1493 2054 };
1494 2055
1495 2056 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
1496 2057 var passiveSupported = false;
@@ -1629,18 +2190,18 @@
1629 2190 };
1630 2191 var idCounter = 0;
1631 2192 var lockStack = [];
1632 2193 function RemoveScrollSideCar(props) {
1633 - var shouldPreventQueue = React20.useRef([]);
1634 - var touchStartRef = React20.useRef([0, 0]);
1635 - var activeAxis = React20.useRef();
1636 - var id = React20.useState(idCounter++)[0];
1637 - var Style2 = React20.useState(styleSingleton)[0];
1638 - var lastProps = React20.useRef(props);
1639 - React20.useEffect(function() {
2194 + var shouldPreventQueue = React35.useRef([]);
2195 + var touchStartRef = React35.useRef([0, 0]);
2196 + var activeAxis = React35.useRef();
2197 + var id = React35.useState(idCounter++)[0];
2198 + var Style2 = React35.useState(styleSingleton)[0];
2199 + var lastProps = React35.useRef(props);
2200 + React35.useEffect(function() {
1640 2201 lastProps.current = props;
1641 2202 }, [props]);
1642 - React20.useEffect(function() {
2203 + React35.useEffect(function() {
1643 2204 if (props.inert) {
1644 2205 document.body.classList.add("block-interactivity-".concat(id));
1645 2206 var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
1646 2207 allow_1.forEach(function(el) {
@@ -1654,9 +2215,9 @@
1654 2215 };
1655 2216 }
1656 2217 return;
1657 2218 }, [props.inert, props.lockRef.current, props.shards]);
1658 - var shouldCancelEvent = React20.useCallback(function(event, parent) {
2219 + var shouldCancelEvent = React35.useCallback(function(event, parent) {
1659 2220 if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
1660 2221 return !lastProps.current.allowPinchZoom;
1661 2222 }
1662 2223 var touch = getTouchXY(event);
@@ -1690,9 +2251,9 @@
1690 2251 }
1691 2252 var cancelingAxis = activeAxis.current || currentAxis;
1692 2253 return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
1693 2254 }, []);
1694 - var shouldPrevent = React20.useCallback(function(_event) {
2255 + var shouldPrevent = React35.useCallback(function(_event) {
1695 2256 var event = _event;
1696 2257 if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
1697 2258 return;
1698 2259 }
@@ -1717,9 +2278,9 @@
1717 2278 }
1718 2279 }
1719 2280 }
1720 2281 }, []);
1721 - var shouldCancel = React20.useCallback(function(name, delta, target, should) {
2282 + var shouldCancel = React35.useCallback(function(name, delta, target, should) {
1722 2283 var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
1723 2284 shouldPreventQueue.current.push(event);
1724 2285 setTimeout(function() {
1725 2286 shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
@@ -1726,19 +2287,19 @@
1726 2287 return e !== event;
1727 2288 });
1728 2289 }, 1);
1729 2290 }, []);
1730 - var scrollTouchStart = React20.useCallback(function(event) {
2291 + var scrollTouchStart = React35.useCallback(function(event) {
1731 2292 touchStartRef.current = getTouchXY(event);
1732 2293 activeAxis.current = void 0;
1733 2294 }, []);
1734 - var scrollWheel = React20.useCallback(function(event) {
2295 + var scrollWheel = React35.useCallback(function(event) {
1735 2296 shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1736 2297 }, []);
1737 - var scrollTouchMove = React20.useCallback(function(event) {
2298 + var scrollTouchMove = React35.useCallback(function(event) {
1738 2299 shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
1739 2300 }, []);
1740 - React20.useEffect(function() {
2301 + React35.useEffect(function() {
1741 2302 lockStack.push(Style2);
1742 2303 props.setCallbacks({
1743 2304 onScrollCapture: scrollWheel,
1744 2305 onWheelCapture: scrollWheel,
@@ -1756,13 +2317,13 @@
1756 2317 document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
1757 2318 };
1758 2319 }, []);
1759 2320 var removeScrollBar = props.removeScrollBar, inert = props.inert;
1760 - return React20.createElement(
1761 - React20.Fragment,
2321 + return React35.createElement(
2322 + React35.Fragment,
1762 2323 null,
1763 - inert ? React20.createElement(Style2, { styles: generateStyle(id) }) : null,
1764 - removeScrollBar ? React20.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
2324 + inert ? React35.createElement(Style2, { styles: generateStyle(id) }) : null,
2325 + removeScrollBar ? React35.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
1765 2326 );
1766 2327 }
1767 2328 function getOutermostShadowParent(node) {
1768 2329 var shadowParent = null;
@@ -1779,10 +2340,10 @@
1779 2340 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
1780 2341 var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
1781 2342
1782 2343 // node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll/dist/es2015/Combination.js
1783 -var ReactRemoveScroll = React21.forwardRef(function(props, ref) {
1784 - return React21.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
2344 +var ReactRemoveScroll = React36.forwardRef(function(props, ref) {
2345 + return React36.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
1785 2346 });
1786 2347 ReactRemoveScroll.classNames = RemoveScroll.classNames;
1787 2348 var Combination_default = ReactRemoveScroll;
1788 2349
@@ -1907,9 +2468,9 @@
1907 2468 return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
1908 2469 };
1909 2470
1910 2471 // node_modules/@radix-ui/react-dialog/dist/index.mjs
1911 -var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
2472 +var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
1912 2473 var DIALOG_NAME = "Dialog";
1913 2474 var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
1914 2475 var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
1915 2476 var Dialog = (props) => {
@@ -1920,10 +2481,10 @@
1920 2481 defaultOpen,
1921 2482 onOpenChange,
1922 2483 modal = true
1923 2484 } = props;
1924 - const triggerRef = React24.useRef(null);
1925 - const contentRef = React24.useRef(null);
2485 + const triggerRef = React37.useRef(null);
2486 + const contentRef = React37.useRef(null);
1926 2487 const [open, setOpen] = useControllableState({
1927 2488 prop: openProp,
1928 2489 defaultProp: defaultOpen ?? false,
1929 2490 onChange: onOpenChange,
@@ -1928,9 +2489,9 @@
1928 2489 defaultProp: defaultOpen ?? false,
1929 2490 onChange: onOpenChange,
1930 2491 caller: DIALOG_NAME
1931 2492 });
1932 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2493 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
1933 2494 DialogProvider,
1934 2495 {
1935 2496 scope: __scopeDialog,
1936 2497 triggerRef,
@@ -1939,9 +2500,9 @@
1939 2500 titleId: useId(),
1940 2501 descriptionId: useId(),
1941 2502 open,
1942 2503 onOpenChange: setOpen,
1943 - onOpenToggle: React24.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
2504 + onOpenToggle: React37.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
1944 2505 modal,
1945 2506 children
1946 2507 }
1947 2508 );
@@ -1947,15 +2508,15 @@
1947 2508 );
1948 2509 };
1949 2510 Dialog.displayName = DIALOG_NAME;
1950 2511 var TRIGGER_NAME = "DialogTrigger";
1951 -var DialogTrigger = React24.forwardRef(
2512 +var DialogTrigger = React37.forwardRef(
1952 2513 (props, forwardedRef) => {
1953 2514 const { __scopeDialog, ...triggerProps } = props;
1954 2515 const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
1955 2516 const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
1956 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1957 - Primitive.button,
2517 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2518 + Primitive4.button,
1958 2519 {
1959 2520 type: "button",
1960 2521 "aria-haspopup": "dialog",
1961 2522 "aria-expanded": context.open,
@@ -1975,23 +2536,23 @@
1975 2536 });
1976 2537 var DialogPortal = (props) => {
1977 2538 const { __scopeDialog, forceMount, children, container } = props;
1978 2539 const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
1979 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React24.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Portal, { asChild: true, container, children: child }) })) });
2540 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React37.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Portal, { asChild: true, container, children: child }) })) });
1980 2541 };
1981 2542 DialogPortal.displayName = PORTAL_NAME2;
1982 2543 var OVERLAY_NAME = "DialogOverlay";
1983 -var DialogOverlay = React24.forwardRef(
2544 +var DialogOverlay = React37.forwardRef(
1984 2545 (props, forwardedRef) => {
1985 2546 const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
1986 2547 const { forceMount = portalContext.forceMount, ...overlayProps } = props;
1987 2548 const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
1988 - return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
2549 + return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
1989 2550 }
1990 2551 );
1991 2552 DialogOverlay.displayName = OVERLAY_NAME;
1992 -var Slot = createSlot("DialogOverlay.RemoveScroll");
1993 -var DialogOverlayImpl = React24.forwardRef(
2553 +var Slot = createSlot4("DialogOverlay.RemoveScroll");
2554 +var DialogOverlayImpl = React37.forwardRef(
1994 2555 (props, forwardedRef) => {
1995 2556 const { __scopeDialog, ...overlayProps } = props;
1996 2557 const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
1997 2558 return (
@@ -1996,10 +2557,10 @@
1996 2557 const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
1997 2558 return (
1998 2559 // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
1999 2560 // ie. when `Overlay` and `Content` are siblings
2000 - /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Combination_default, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2001 - Primitive.div,
2561 + /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Combination_default, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2562 + Primitive4.div,
2002 2563 {
2003 2564 "data-state": getState(context.open),
2004 2565 ...overlayProps,
2005 2566 ref: forwardedRef,
@@ -2009,27 +2570,27 @@
2009 2570 );
2010 2571 }
2011 2572 );
2012 2573 var CONTENT_NAME = "DialogContent";
2013 -var DialogContent = React24.forwardRef(
2574 +var DialogContent = React37.forwardRef(
2014 2575 (props, forwardedRef) => {
2015 2576 const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
2016 2577 const { forceMount = portalContext.forceMount, ...contentProps } = props;
2017 2578 const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
2018 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
2579 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
2019 2580 }
2020 2581 );
2021 2582 DialogContent.displayName = CONTENT_NAME;
2022 -var DialogContentModal = React24.forwardRef(
2583 +var DialogContentModal = React37.forwardRef(
2023 2584 (props, forwardedRef) => {
2024 2585 const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
2025 - const contentRef = React24.useRef(null);
2586 + const contentRef = React37.useRef(null);
2026 2587 const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
2027 - React24.useEffect(() => {
2588 + React37.useEffect(() => {
2028 2589 const content = contentRef.current;
2029 2590 if (content) return hideOthers(content);
2030 2591 }, []);
2031 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2592 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2032 2593 DialogContentImpl,
2033 2594 {
2034 2595 ...props,
2035 2596 ref: composedRefs,
@@ -2052,14 +2613,14 @@
2052 2613 }
2053 2614 );
2054 2615 }
2055 2616 );
2056 -var DialogContentNonModal = React24.forwardRef(
2617 +var DialogContentNonModal = React37.forwardRef(
2057 2618 (props, forwardedRef) => {
2058 2619 const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
2059 - const hasInteractedOutsideRef = React24.useRef(false);
2060 - const hasPointerDownOutsideRef = React24.useRef(false);
2061 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2620 + const hasInteractedOutsideRef = React37.useRef(false);
2621 + const hasPointerDownOutsideRef = React37.useRef(false);
2622 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2062 2623 DialogContentImpl,
2063 2624 {
2064 2625 ...props,
2065 2626 ref: forwardedRef,
@@ -2092,17 +2653,17 @@
2092 2653 }
2093 2654 );
2094 2655 }
2095 2656 );
2096 -var DialogContentImpl = React24.forwardRef(
2657 +var DialogContentImpl = React37.forwardRef(
2097 2658 (props, forwardedRef) => {
2098 2659 const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
2099 2660 const context = useDialogContext(CONTENT_NAME, __scopeDialog);
2100 - const contentRef = React24.useRef(null);
2661 + const contentRef = React37.useRef(null);
2101 2662 const composedRefs = useComposedRefs(forwardedRef, contentRef);
2102 2663 useFocusGuards();
2103 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2104 - /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2664 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
2665 + /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2105 2666 FocusScope,
2106 2667 {
2107 2668 asChild: true,
2108 2669 loop: true,
@@ -2108,9 +2669,9 @@
2108 2669 loop: true,
2109 2670 trapped: trapFocus,
2110 2671 onMountAutoFocus: onOpenAutoFocus,
2111 2672 onUnmountAutoFocus: onCloseAutoFocus,
2112 - children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2673 + children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2113 2674 DismissableLayer,
2114 2675 {
2115 2676 role: "dialog",
2116 2677 id: context.contentId,
@@ -2123,40 +2684,40 @@
2123 2684 }
2124 2685 )
2125 2686 }
2126 2687 ),
2127 - /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2128 - /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TitleWarning, { titleId: context.titleId }),
2129 - /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
2688 + /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
2689 + /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(TitleWarning, { titleId: context.titleId }),
2690 + /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
2130 2691 ] })
2131 2692 ] });
2132 2693 }
2133 2694 );
2134 2695 var TITLE_NAME = "DialogTitle";
2135 -var DialogTitle = React24.forwardRef(
2696 +var DialogTitle = React37.forwardRef(
2136 2697 (props, forwardedRef) => {
2137 2698 const { __scopeDialog, ...titleProps } = props;
2138 2699 const context = useDialogContext(TITLE_NAME, __scopeDialog);
2139 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
2700 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Primitive4.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
2140 2701 }
2141 2702 );
2142 2703 DialogTitle.displayName = TITLE_NAME;
2143 2704 var DESCRIPTION_NAME = "DialogDescription";
2144 -var DialogDescription = React24.forwardRef(
2705 +var DialogDescription = React37.forwardRef(
2145 2706 (props, forwardedRef) => {
2146 2707 const { __scopeDialog, ...descriptionProps } = props;
2147 2708 const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
2148 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
2709 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Primitive4.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
2149 2710 }
2150 2711 );
2151 2712 DialogDescription.displayName = DESCRIPTION_NAME;
2152 2713 var CLOSE_NAME = "DialogClose";
2153 -var DialogClose = React24.forwardRef(
2714 +var DialogClose = React37.forwardRef(
2154 2715 (props, forwardedRef) => {
2155 2716 const { __scopeDialog, ...closeProps } = props;
2156 2717 const context = useDialogContext(CLOSE_NAME, __scopeDialog);
2157 - return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2158 - Primitive.button,
2718 + return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2719 + Primitive4.button,
2159 2720 {
2160 2721 type: "button",
2161 2722 ...closeProps,
2162 2723 ref: forwardedRef,
@@ -2181,9 +2742,9 @@
2181 2742
2182 2743 If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
2183 2744
2184 2745 For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
2185 - React24.useEffect(() => {
2746 + React37.useEffect(() => {
2186 2747 if (titleId) {
2187 2748 const hasTitle = document.getElementById(titleId);
2188 2749 if (!hasTitle) console.error(MESSAGE);
2189 2750 }
@@ -2193,9 +2754,9 @@
2193 2754 var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
2194 2755 var DescriptionWarning = ({ contentRef, descriptionId }) => {
2195 2756 const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
2196 2757 const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
2197 - React24.useEffect(() => {
2758 + React37.useEffect(() => {
2198 2759 const describedById = contentRef.current?.getAttribute("aria-describedby");
2199 2760 if (descriptionId && describedById) {
2200 2761 const hasDescription = document.getElementById(descriptionId);
2201 2762 if (!hasDescription) console.warn(MESSAGE);
@@ -2209,8 +2770,204 @@
2209 2770 var Content = DialogContent;
2210 2771
2211 2772 // node_modules/cmdk/dist/index.mjs
2212 2773 var t = __toESM(require_react(), 1);
2774 +
2775 +// node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
2776 +var React40 = __toESM(require_react(), 1);
2777 +var ReactDOM6 = __toESM(require_react_dom(), 1);
2778 +
2779 +// node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.mjs
2780 +var React39 = __toESM(require_react(), 1);
2781 +
2782 +// node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
2783 +var React38 = __toESM(require_react(), 1);
2784 +function setRef6(ref, value) {
2785 + if (typeof ref === "function") {
2786 + return ref(value);
2787 + } else if (ref !== null && ref !== void 0) {
2788 + ref.current = value;
2789 + }
2790 +}
2791 +function composeRefs6(...refs) {
2792 + return (node) => {
2793 + let hasCleanup = false;
2794 + const cleanups = refs.map((ref) => {
2795 + const cleanup = setRef6(ref, node);
2796 + if (!hasCleanup && typeof cleanup == "function") {
2797 + hasCleanup = true;
2798 + }
2799 + return cleanup;
2800 + });
2801 + if (hasCleanup) {
2802 + return () => {
2803 + for (let i = 0; i < cleanups.length; i++) {
2804 + const cleanup = cleanups[i];
2805 + if (typeof cleanup == "function") {
2806 + cleanup();
2807 + } else {
2808 + setRef6(refs[i], null);
2809 + }
2810 + }
2811 + };
2812 + }
2813 + };
2814 +}
2815 +
2816 +// node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.mjs
2817 +var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
2818 +var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
2819 +var use = React39[" use ".trim().toString()];
2820 +function isPromiseLike(value) {
2821 + return typeof value === "object" && value !== null && "then" in value;
2822 +}
2823 +function isLazyComponent(element) {
2824 + return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
2825 +}
2826 +// @__NO_SIDE_EFFECTS__
2827 +function createSlot5(ownerName) {
2828 + const SlotClone = /* @__PURE__ */ createSlotClone5(ownerName);
2829 + const Slot2 = React39.forwardRef((props, forwardedRef) => {
2830 + let { children, ...slotProps } = props;
2831 + if (isLazyComponent(children) && typeof use === "function") {
2832 + children = use(children._payload);
2833 + }
2834 + const childrenArray = React39.Children.toArray(children);
2835 + const slottable = childrenArray.find(isSlottable5);
2836 + if (slottable) {
2837 + const newElement = slottable.props.children;
2838 + const newChildren = childrenArray.map((child) => {
2839 + if (child === slottable) {
2840 + if (React39.Children.count(newElement) > 1) return React39.Children.only(null);
2841 + return React39.isValidElement(newElement) ? newElement.props.children : null;
2842 + } else {
2843 + return child;
2844 + }
2845 + });
2846 + return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React39.isValidElement(newElement) ? React39.cloneElement(newElement, void 0, newChildren) : null });
2847 + }
2848 + return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
2849 + });
2850 + Slot2.displayName = `${ownerName}.Slot`;
2851 + return Slot2;
2852 +}
2853 +// @__NO_SIDE_EFFECTS__
2854 +function createSlotClone5(ownerName) {
2855 + const SlotClone = React39.forwardRef((props, forwardedRef) => {
2856 + let { children, ...slotProps } = props;
2857 + if (isLazyComponent(children) && typeof use === "function") {
2858 + children = use(children._payload);
2859 + }
2860 + if (React39.isValidElement(children)) {
2861 + const childrenRef = getElementRef6(children);
2862 + const props2 = mergeProps5(slotProps, children.props);
2863 + if (children.type !== React39.Fragment) {
2864 + props2.ref = forwardedRef ? composeRefs6(forwardedRef, childrenRef) : childrenRef;
2865 + }
2866 + return React39.cloneElement(children, props2);
2867 + }
2868 + return React39.Children.count(children) > 1 ? React39.Children.only(null) : null;
2869 + });
2870 + SlotClone.displayName = `${ownerName}.SlotClone`;
2871 + return SlotClone;
2872 +}
2873 +var SLOTTABLE_IDENTIFIER5 = /* @__PURE__ */ Symbol("radix.slottable");
2874 +function isSlottable5(child) {
2875 + return React39.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER5;
2876 +}
2877 +function mergeProps5(slotProps, childProps) {
2878 + const overrideProps = { ...childProps };
2879 + for (const propName in childProps) {
2880 + const slotPropValue = slotProps[propName];
2881 + const childPropValue = childProps[propName];
2882 + const isHandler = /^on[A-Z]/.test(propName);
2883 + if (isHandler) {
2884 + if (slotPropValue && childPropValue) {
2885 + overrideProps[propName] = (...args) => {
2886 + const result = childPropValue(...args);
2887 + slotPropValue(...args);
2888 + return result;
2889 + };
2890 + } else if (slotPropValue) {
2891 + overrideProps[propName] = slotPropValue;
2892 + }
2893 + } else if (propName === "style") {
2894 + overrideProps[propName] = { ...slotPropValue, ...childPropValue };
2895 + } else if (propName === "className") {
2896 + overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
2897 + }
2898 + }
2899 + return { ...slotProps, ...overrideProps };
2900 +}
2901 +function getElementRef6(element) {
2902 + let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
2903 + let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2904 + if (mayWarn) {
2905 + return element.ref;
2906 + }
2907 + getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
2908 + mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
2909 + if (mayWarn) {
2910 + return element.props.ref;
2911 + }
2912 + return element.props.ref || element.ref;
2913 +}
2914 +
2915 +// node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
2916 +var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
2917 +var NODES5 = [
2918 + "a",
2919 + "button",
2920 + "div",
2921 + "form",
2922 + "h2",
2923 + "h3",
2924 + "img",
2925 + "input",
2926 + "label",
2927 + "li",
2928 + "nav",
2929 + "ol",
2930 + "p",
2931 + "select",
2932 + "span",
2933 + "svg",
2934 + "ul"
2935 +];
2936 +var Primitive5 = NODES5.reduce((primitive, node) => {
2937 + const Slot2 = createSlot5(`Primitive.${node}`);
2938 + const Node2 = React40.forwardRef((props, forwardedRef) => {
2939 + const { asChild, ...primitiveProps } = props;
2940 + const Comp = asChild ? Slot2 : node;
2941 + if (typeof window !== "undefined") {
2942 + window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
2943 + }
2944 + return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
2945 + });
2946 + Node2.displayName = `Primitive.${node}`;
2947 + return { ...primitive, [node]: Node2 };
2948 +}, {});
2949 +
2950 +// node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.mjs
2951 +var React42 = __toESM(require_react(), 1);
2952 +
2953 +// node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
2954 +var React41 = __toESM(require_react(), 1);
2955 +var useLayoutEffect24 = globalThis?.document ? React41.useLayoutEffect : () => {
2956 +};
2957 +
2958 +// node_modules/cmdk/node_modules/@radix-ui/react-id/dist/index.mjs
2959 +var useReactId2 = React42[" useId ".trim().toString()] || (() => void 0);
2960 +var count3 = 0;
2961 +function useId2(deterministicId) {
2962 + const [id, setId] = React42.useState(useReactId2());
2963 + useLayoutEffect24(() => {
2964 + if (!deterministicId) setId((reactId) => reactId ?? String(count3++));
2965 + }, [deterministicId]);
2966 + return deterministicId || (id ? `radix-${id}` : "");
2967 +}
2968 +
2969 +// node_modules/cmdk/dist/index.mjs
2213 2970 var N = '[cmdk-group=""]';
2214 2971 var Y2 = '[cmdk-group-items=""]';
2215 2972 var be = '[cmdk-group-heading=""]';
2216 2973 var le = '[cmdk-item=""]';
@@ -2226,9 +2983,9 @@
2226 2983 var me = t.forwardRef((r, o) => {
2227 2984 let n = L(() => {
2228 2985 var e, a;
2229 2986 return { search: "", value: (a = (e = r.value) != null ? e : r.defaultValue) != null ? a : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
2230 - }), u2 = L(() => /* @__PURE__ */ new Set()), c = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p2 = pe(r), { label: b, children: m2, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r, $2 = useId(), q = useId(), _ = useId(), I = t.useRef(null), v = ke();
2987 + }), u2 = L(() => /* @__PURE__ */ new Set()), c = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p2 = pe(r), { label: b, children: m2, value: R, onValueChange: x, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r, $2 = useId2(), q = useId2(), _ = useId2(), I = t.useRef(null), v = ke();
2231 2988 k2(() => {
2232 2989 if (R !== void 0) {
2233 2990 let e = R.trim();
2234 2991 n.current.value = e, E.emit();
@@ -2356,9 +3113,9 @@
2356 3113 e.preventDefault(), e.metaKey ? oe() : e.altKey ? re(1) : Q(1);
2357 3114 }, se = (e) => {
2358 3115 e.preventDefault(), e.metaKey ? X2(0) : e.altKey ? re(-1) : Q(-1);
2359 3116 };
2360 - return t.createElement(Primitive.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
3117 + return t.createElement(Primitive5.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
2361 3118 var s;
2362 3119 (s = O.onKeyDown) == null || s.call(O, e);
2363 3120 let a = e.nativeEvent.isComposing || e.keyCode === 229;
2364 3121 if (!(e.defaultPrevented || a)) switch (e.key) {
@@ -2400,9 +3157,9 @@
2400 3157 } }, t.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b), B2(r, (e) => t.createElement(de.Provider, { value: E }, t.createElement(ue.Provider, { value: U2 }, e))));
2401 3158 });
2402 3159 var he = t.forwardRef((r, o) => {
2403 3160 var _, I;
2404 - let n = useId(), u2 = t.useRef(null), c = t.useContext(fe), d = K2(), f = pe(r), p2 = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c == null ? void 0 : c.forceMount;
3161 + let n = useId2(), u2 = t.useRef(null), c = t.useContext(fe), d = K2(), f = pe(r), p2 = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c == null ? void 0 : c.forceMount;
2405 3162 k2(() => {
2406 3163 if (!p2) return d.item(n, c == null ? void 0 : c.id);
2407 3164 }, [p2]);
2408 3165 let b = ve(n, u2, [r.value, r.children, u2], r.keywords), m2 = ee(), R = P((v) => v.value && v.value === b.current), x = P((v) => p2 || d.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
@@ -2418,25 +3175,25 @@
2418 3175 m2.setState("value", b.current, true);
2419 3176 }
2420 3177 if (!x) return null;
2421 3178 let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r;
2422 - return t.createElement(Primitive.div, { ref: composeRefs(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r.children);
3179 + return t.createElement(Primitive5.div, { ref: composeRefs6(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r.children);
2423 3180 });
2424 3181 var Ee = t.forwardRef((r, o) => {
2425 - let { heading: n, children: u2, forceMount: c, ...d } = r, f = useId(), p2 = t.useRef(null), b = t.useRef(null), m2 = useId(), R = K2(), x = P((S) => c || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
3182 + let { heading: n, children: u2, forceMount: c, ...d } = r, f = useId2(), p2 = t.useRef(null), b = t.useRef(null), m2 = useId2(), R = K2(), x = P((S) => c || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
2426 3183 k2(() => R.group(f), []), ve(f, p2, [r.value, r.heading, b]);
2427 3184 let C = t.useMemo(() => ({ id: f, forceMount: c }), [c]);
2428 - return t.createElement(Primitive.div, { ref: composeRefs(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && t.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B2(r, (S) => t.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, t.createElement(fe.Provider, { value: C }, S))));
3185 + return t.createElement(Primitive5.div, { ref: composeRefs6(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x ? void 0 : true }, n && t.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B2(r, (S) => t.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, t.createElement(fe.Provider, { value: C }, S))));
2429 3186 });
2430 3187 var ye = t.forwardRef((r, o) => {
2431 3188 let { alwaysRender: n, ...u2 } = r, c = t.useRef(null), d = P((f) => !f.search);
2432 - return !n && !d ? null : t.createElement(Primitive.div, { ref: composeRefs(c, o), ...u2, "cmdk-separator": "", role: "separator" });
3189 + return !n && !d ? null : t.createElement(Primitive5.div, { ref: composeRefs6(c, o), ...u2, "cmdk-separator": "", role: "separator" });
2433 3190 });
2434 3191 var Se = t.forwardRef((r, o) => {
2435 3192 let { onValueChange: n, ...u2 } = r, c = r.value != null, d = ee(), f = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b = K2();
2436 3193 return t.useEffect(() => {
2437 3194 r.value != null && d.setState("search", r.value);
2438 - }, [r.value]), t.createElement(Primitive.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c ? r.value : f, onChange: (m2) => {
3195 + }, [r.value]), t.createElement(Primitive5.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c ? r.value : f, onChange: (m2) => {
2439 3196 c || d.setState("search", m2.target.value), n == null || n(m2.target.value);
2440 3197 } });
2441 3198 });
2442 3199 var Ce = t.forwardRef((r, o) => {
@@ -2452,18 +3209,18 @@
2452 3209 return C.observe(m2), () => {
2453 3210 cancelAnimationFrame(x), C.unobserve(m2);
2454 3211 };
2455 3212 }
2456 - }, []), t.createElement(Primitive.div, { ref: composeRefs(d, o), ...c, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b.listId }, B2(r, (m2) => t.createElement("div", { ref: composeRefs(f, b.listInnerRef), "cmdk-list-sizer": "" }, m2)));
3213 + }, []), t.createElement(Primitive5.div, { ref: composeRefs6(d, o), ...c, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b.listId }, B2(r, (m2) => t.createElement("div", { ref: composeRefs6(f, b.listInnerRef), "cmdk-list-sizer": "" }, m2)));
2457 3214 });
2458 3215 var xe = t.forwardRef((r, o) => {
2459 3216 let { open: n, onOpenChange: u2, overlayClassName: c, contentClassName: d, container: f, ...p2 } = r;
2460 3217 return t.createElement(Root, { open: n, onOpenChange: u2 }, t.createElement(Portal2, { container: f }, t.createElement(Overlay, { "cmdk-overlay": "", className: c }), t.createElement(Content, { "aria-label": r.label, "cmdk-dialog": "", className: d }, t.createElement(me, { ref: o, ...p2 }))));
2461 3218 });
2462 -var Ie = t.forwardRef((r, o) => P((u2) => u2.filtered.count === 0) ? t.createElement(Primitive.div, { ref: o, ...r, "cmdk-empty": "", role: "presentation" }) : null);
3219 +var Ie = t.forwardRef((r, o) => P((u2) => u2.filtered.count === 0) ? t.createElement(Primitive5.div, { ref: o, ...r, "cmdk-empty": "", role: "presentation" }) : null);
2463 3220 var Pe = t.forwardRef((r, o) => {
2464 3221 let { progress: n, children: u2, label: c = "Loading...", ...d } = r;
2465 - return t.createElement(Primitive.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c }, B2(r, (f) => t.createElement("div", { "aria-hidden": true }, f)));
3222 + return t.createElement(Primitive5.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c }, B2(r, (f) => t.createElement("div", { "aria-hidden": true }, f)));
2466 3223 });
2467 3224 var _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
2468 3225 function we(r, o) {
2469 3226 let n = r.nextElementSibling;
@@ -2546,10 +3303,10 @@
2546 3303 );
2547 3304
2548 3305 // packages/icons/build-module/library/search.mjs
2549 3306 var import_primitives = __toESM(require_primitives(), 1);
2550 -var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
2551 -var search_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives.Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
3307 +var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
3308 +var search_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives.Path, { d: "M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z" }) });
2552 3309
2553 3310 // packages/workflow/build-module/components/workflow-menu.mjs
2554 3311 import { executeAbility, store as abilitiesStore } from "@wordpress/abilities";
2555 3312
@@ -2560,13 +3317,13 @@
2560 3317 "@wordpress/workflows"
2561 3318 );
2562 3319
2563 3320 // packages/workflow/build-module/components/workflow-menu.mjs
2564 -var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
2565 -if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='846895dde0']")) {
3321 +var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
3322 +if (typeof document !== "undefined" && true && !document.head.querySelector("style[data-wp-hash='cbad731ae6']")) {
2566 3323 const style = document.createElement("style");
2567 - style.setAttribute("data-wp-hash", "846895dde0");
2568 - style.appendChild(document.createTextNode(":root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.workflows-workflow-menu{border-radius:4px;margin:auto;max-width:400px;position:relative;top:calc(5% + 64px);width:calc(100% - 32px)}@media (min-width:600px){.workflows-workflow-menu{top:calc(10% + 64px)}}.workflows-workflow-menu .components-modal__content{margin:0;padding:0}.workflows-workflow-menu__overlay{align-items:start;display:block}.workflows-workflow-menu__header{padding:0 16px}.workflows-workflow-menu__header-search-icon:dir(ltr){transform:scaleX(-1)}.workflows-workflow-menu__container{will-change:transform}.workflows-workflow-menu__container:focus{outline:none}.workflows-workflow-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:15px;line-height:28px;margin:0;outline:none;padding:16px 4px;width:100%}.workflows-workflow-menu__container [cmdk-input]::placeholder{color:#757575}.workflows-workflow-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.workflows-workflow-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:var(--wpds-cursor-control,pointer);display:flex;font-size:13px}.workflows-workflow-menu__container [cmdk-item]:active,.workflows-workflow-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.workflows-workflow-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.workflows-workflow-menu__container [cmdk-item]>div{min-height:40px;padding:4px 4px 4px 16px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list]{max-height:376px;overflow:auto}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){padding-bottom:8px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px}.workflows-workflow-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.workflows-workflow-menu__container [cmdk-loading]{padding:16px}.workflows-workflow-menu__container [cmdk-list-sizer]{position:relative}.workflows-workflow-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflows-workflow-menu__item mark{background:unset;color:inherit;font-weight:var(--wpds-typography-font-weight-emphasis,600)}.workflows-workflow-menu__output{padding:16px}.workflows-workflow-menu__output-header{border-bottom:1px solid #ddd;margin-bottom:16px;padding-bottom:8px}.workflows-workflow-menu__output-header h3{color:#1e1e1e;font-size:16px;font-weight:var(--wpds-typography-font-weight-emphasis,600);margin:0 0 4px}.workflows-workflow-menu__output-hint{color:#757575;font-size:12px;margin:0}.workflows-workflow-menu__output-content{max-height:400px;overflow:auto}.workflows-workflow-menu__output-content pre{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-size:12px;line-height:1.5;margin:0;padding:12px;white-space:pre-wrap;word-break:break-word}.workflows-workflow-menu__output-error{background:#e0e0e0;border:1px solid #9e1313;border-radius:2px;color:#cc1818;padding:12px}.workflows-workflow-menu__output-error p{font-size:13px;margin:0}.workflows-workflow-menu__executing{color:#757575;font-size:14px;padding:24px 16px}"));
3324 + style.setAttribute("data-wp-hash", "cbad731ae6");
3325 + style.appendChild(document.createTextNode(":root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.workflows-workflow-menu{border-radius:4px;margin:auto;max-width:400px;position:relative;top:calc(5% + 64px);width:calc(100% - 32px)}@media (min-width:600px){.workflows-workflow-menu{top:calc(10% + 64px)}}.workflows-workflow-menu .components-modal__content{margin:0;padding:0}.workflows-workflow-menu__overlay{align-items:start;display:block}.workflows-workflow-menu__header{padding:0 16px}.workflows-workflow-menu__header-search-icon:dir(ltr){transform:scaleX(-1)}.workflows-workflow-menu__container{will-change:transform}.workflows-workflow-menu__container:focus{outline:none}.workflows-workflow-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:15px;line-height:28px;margin:0;outline:none;padding:16px 4px;width:100%}.workflows-workflow-menu__container [cmdk-input]::placeholder{color:#757575}.workflows-workflow-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.workflows-workflow-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px}.workflows-workflow-menu__container [cmdk-item]:active,.workflows-workflow-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.workflows-workflow-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.workflows-workflow-menu__container [cmdk-item]>div{min-height:40px;padding:4px 4px 4px 16px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){padding-bottom:8px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px}.workflows-workflow-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.workflows-workflow-menu__container [cmdk-loading]{padding:16px}.workflows-workflow-menu__container [cmdk-list-sizer]{position:relative}.workflows-workflow-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflows-workflow-menu__item mark{background:unset;color:inherit;font-weight:600}.workflows-workflow-menu__output{padding:16px}.workflows-workflow-menu__output-header{border-bottom:1px solid #ddd;margin-bottom:16px;padding-bottom:8px}.workflows-workflow-menu__output-header h3{color:#1e1e1e;font-size:16px;font-weight:600;margin:0 0 4px}.workflows-workflow-menu__output-hint{color:#757575;font-size:12px;margin:0}.workflows-workflow-menu__output-content{max-height:400px;overflow:auto}.workflows-workflow-menu__output-content pre{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-size:12px;line-height:1.5;margin:0;padding:12px;white-space:pre-wrap;word-break:break-word}.workflows-workflow-menu__output-error{background:#e0e0e0;border:1px solid #9e1313;border-radius:2px;color:#cc1818;padding:12px}.workflows-workflow-menu__output-error p{font-size:13px;margin:0}.workflows-workflow-menu__executing{color:#757575;font-size:14px;padding:24px 16px}"));
2569 3326 document.head.appendChild(style);
2570 3327 }
2571 3328 var { withIgnoreIMEEvents } = unlock(import_components.privateApis);
2572 3329 var EMPTY_ARRAY = [];
@@ -2582,9 +3339,9 @@
2582 3339 if (isOpen) {
2583 3340 workflowMenuInput.current.focus();
2584 3341 }
2585 3342 }, [isOpen]);
2586 - return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3343 + return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2587 3344 _e.Input,
2588 3345 {
2589 3346 ref: workflowMenuInput,
2590 3347 value: search,
@@ -2643,13 +3400,8 @@
2643 3400 {
2644 3401 bindGlobal: true
2645 3402 }
2646 3403 );
2647 - (0, import_element2.useEffect)(() => {
2648 - if (isOpen) {
2649 - import("@wordpress/core-abilities");
2650 - }
2651 - }, [isOpen]);
2652 3404 const closeAndReset = () => {
2653 3405 setSearch("");
2654 3406 setIsOpen(false);
2655 3407 setAbilityOutput(null);
@@ -2692,9 +3444,9 @@
2692 3444 };
2693 3445 if (!isOpen) {
2694 3446 return null;
2695 3447 }
2696 - return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3448 + return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2697 3449 import_components.Modal,
2698 3450 {
2699 3451 className: "workflows-workflow-menu",
2700 3452 overlayClassName: "workflows-workflow-menu__overlay",
@@ -2700,9 +3452,9 @@
2700 3452 overlayClassName: "workflows-workflow-menu__overlay",
2701 3453 onRequestClose: abilityOutput ? goBack : closeAndReset,
2702 3454 __experimentalHideHeader: true,
2703 3455 contentLabel: (0, import_i18n.__)("Workflow palette"),
2704 - children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3456 + children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2705 3457 "div",
2706 3458 {
2707 3459 className: "workflows-workflow-menu__container",
2708 3460 onKeyDown: withIgnoreIMEEvents(onContainerKeyDown),
@@ -2708,21 +3460,21 @@
2708 3460 onKeyDown: withIgnoreIMEEvents(onContainerKeyDown),
2709 3461 ref: containerRef,
2710 3462 tabIndex: -1,
2711 3463 role: "presentation",
2712 - children: abilityOutput ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "workflows-workflow-menu__output", children: [
2713 - /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "workflows-workflow-menu__output-header", children: [
2714 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { children: abilityOutput.label }),
2715 - abilityOutput.description && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "workflows-workflow-menu__output-hint", children: abilityOutput.description })
3464 + children: abilityOutput ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "workflows-workflow-menu__output", children: [
3465 + /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "workflows-workflow-menu__output-header", children: [
3466 + /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h3", { children: abilityOutput.label }),
3467 + abilityOutput.description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "workflows-workflow-menu__output-hint", children: abilityOutput.description })
2716 3468 ] }),
2717 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "workflows-workflow-menu__output-content", children: abilityOutput.success ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("pre", { children: JSON.stringify(
3469 + /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "workflows-workflow-menu__output-content", children: abilityOutput.success ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("pre", { children: JSON.stringify(
2718 3470 abilityOutput.data,
2719 3471 null,
2720 3472 2
2721 - ) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "workflows-workflow-menu__output-error", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: abilityOutput.error }) }) })
2722 - ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(_e, { label: inputLabel, shouldFilter: false, children: [
2723 - /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_components.__experimentalHStack, { className: "workflows-workflow-menu__header", children: [
2724 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3473 + ) }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "workflows-workflow-menu__output-error", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { children: abilityOutput.error }) }) })
3474 + ] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(_e, { label: inputLabel, shouldFilter: false, children: [
3475 + /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_components.__experimentalHStack, { className: "workflows-workflow-menu__header", children: [
3476 + /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2725 3477 icon_default,
2726 3478 {
2727 3479 className: "workflows-workflow-menu__header-search-icon",
2728 3480 icon: search_default
@@ -2727,9 +3479,9 @@
2727 3479 className: "workflows-workflow-menu__header-search-icon",
2728 3480 icon: search_default
2729 3481 }
2730 3482 ),
2731 - /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3483 + /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2732 3484 WorkflowInput,
2733 3485 {
2734 3486 search,
2735 3487 setSearch,
@@ -2737,19 +3489,19 @@
2737 3489 abilities
2738 3490 }
2739 3491 )
2740 3492 ] }),
2741 - /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(_e.List, { label: (0, import_i18n.__)("Workflow suggestions"), children: [
2742 - isExecuting && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3493 + /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(_e.List, { label: (0, import_i18n.__)("Workflow suggestions"), children: [
3494 + isExecuting && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2743 3495 import_components.__experimentalHStack,
2744 3496 {
2745 3497 className: "workflows-workflow-menu__executing",
2746 3498 align: "center",
2747 - children: (0, import_i18n.__)("Executing ability…")
3499 + children: (0, import_i18n.__)("Executing ability\u2026")
2748 3500 }
2749 3501 ),
2750 - !isExecuting && search && filteredAbilities.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(_e.Empty, { children: (0, import_i18n.__)("No results found.") }),
2751 - !isExecuting && filteredAbilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(_e.Group, { children: filteredAbilities.map((ability) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3502 + !isExecuting && search && filteredAbilities.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(_e.Empty, { children: (0, import_i18n.__)("No results found.") }),
3503 + !isExecuting && filteredAbilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(_e.Group, { children: filteredAbilities.map((ability) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2752 3504 _e.Item,
2753 3505 {
2754 3506 value: ability.label,
2755 3507 className: "workflows-workflow-menu__item",
@@ -2754,9 +3506,9 @@
2754 3506 value: ability.label,
2755 3507 className: "workflows-workflow-menu__item",
2756 3508 onSelect: () => handleExecuteAbility(ability),
2757 3509 id: ability.name,
2758 - children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components.__experimentalHStack, { alignment: "left", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3510 + children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_components.__experimentalHStack, { alignment: "left", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2759 3511 import_components.TextHighlight,
2760 3512 {
2761 3513 text: ability.label,
2762 3514 highlight: search