@norskvideo/norsk-studio-built-ins 1.27.0-2025-05-22-5168ed86 → 1.27.0-2025-05-27-5d82451c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client/info.js CHANGED
@@ -346,7 +346,7 @@ var require_util = __commonJS({
346
346
  exports.getObjectByType = getObjectByType;
347
347
  exports.getObjectByPath = getObjectByPath;
348
348
  exports.displayNodeId = displayNodeId;
349
- exports.assertUnreachable = assertUnreachable23;
349
+ exports.assertUnreachable = assertUnreachable24;
350
350
  exports.waitForCondition = waitForCondition;
351
351
  exports.streamMatchesExpected = streamMatchesExpected;
352
352
  exports.shortStreamNameFromDefinition = shortStreamNameFromDefinition;
@@ -419,7 +419,7 @@ var require_util = __commonJS({
419
419
  }
420
420
  return document2.components[id]?.config?.displayName ?? id;
421
421
  }
422
- function assertUnreachable23(_) {
422
+ function assertUnreachable24(_) {
423
423
  throw new Error("Didn't expect to get here");
424
424
  }
425
425
  async function waitForCondition(condition, timeout, interval) {
@@ -47123,13 +47123,13 @@ var require_dist3 = __commonJS({
47123
47123
  });
47124
47124
  module.exports = __toCommonJS2(src_exports);
47125
47125
  var React3 = __toESM2(require_react());
47126
- var import_jsx_runtime44 = require_jsx_runtime();
47126
+ var import_jsx_runtime45 = require_jsx_runtime();
47127
47127
  function createContext2(rootComponentName, defaultContext) {
47128
47128
  const Context = React3.createContext(defaultContext);
47129
47129
  const Provider = (props) => {
47130
47130
  const { children, ...context } = props;
47131
47131
  const value = React3.useMemo(() => context, Object.values(context));
47132
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
47132
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
47133
47133
  };
47134
47134
  Provider.displayName = rootComponentName + "Provider";
47135
47135
  function useContext2(consumerName) {
@@ -47152,7 +47152,7 @@ var require_dist3 = __commonJS({
47152
47152
  const { scope, children, ...context } = props;
47153
47153
  const Context = scope?.[scopeName]?.[index3] || BaseContext;
47154
47154
  const value = React3.useMemo(() => context, Object.values(context));
47155
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
47155
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
47156
47156
  };
47157
47157
  Provider.displayName = rootComponentName + "Provider";
47158
47158
  function useContext2(consumerName, scope) {
@@ -47320,7 +47320,7 @@ var require_dist5 = __commonJS({
47320
47320
  module.exports = __toCommonJS2(src_exports);
47321
47321
  var React3 = __toESM2(require_react());
47322
47322
  var import_react_compose_refs = require_dist4();
47323
- var import_jsx_runtime44 = require_jsx_runtime();
47323
+ var import_jsx_runtime45 = require_jsx_runtime();
47324
47324
  var Slot = React3.forwardRef((props, forwardedRef) => {
47325
47325
  const { children, ...slotProps } = props;
47326
47326
  const childrenArray = React3.Children.toArray(children);
@@ -47336,9 +47336,9 @@ var require_dist5 = __commonJS({
47336
47336
  return child;
47337
47337
  }
47338
47338
  });
47339
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
47339
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
47340
47340
  }
47341
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
47341
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
47342
47342
  });
47343
47343
  Slot.displayName = "Slot";
47344
47344
  var SlotClone = React3.forwardRef((props, forwardedRef) => {
@@ -47355,7 +47355,7 @@ var require_dist5 = __commonJS({
47355
47355
  });
47356
47356
  SlotClone.displayName = "SlotClone";
47357
47357
  var Slottable = ({ children }) => {
47358
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children });
47358
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children });
47359
47359
  };
47360
47360
  function isSlottable(child) {
47361
47361
  return React3.isValidElement(child) && child.type === Slottable;
@@ -47441,7 +47441,7 @@ var require_dist6 = __commonJS({
47441
47441
  var import_react_context = require_dist3();
47442
47442
  var import_react_compose_refs = require_dist4();
47443
47443
  var import_react_slot = require_dist5();
47444
- var import_jsx_runtime44 = require_jsx_runtime();
47444
+ var import_jsx_runtime45 = require_jsx_runtime();
47445
47445
  function createCollection(name) {
47446
47446
  const PROVIDER_NAME = name + "CollectionProvider";
47447
47447
  const [createCollectionContext, createCollectionScope] = (0, import_react_context.createContextScope)(PROVIDER_NAME);
@@ -47453,7 +47453,7 @@ var require_dist6 = __commonJS({
47453
47453
  const { scope, children } = props;
47454
47454
  const ref = import_react12.default.useRef(null);
47455
47455
  const itemMap = import_react12.default.useRef(/* @__PURE__ */ new Map()).current;
47456
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
47456
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
47457
47457
  };
47458
47458
  CollectionProvider.displayName = PROVIDER_NAME;
47459
47459
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
@@ -47462,7 +47462,7 @@ var require_dist6 = __commonJS({
47462
47462
  const { scope, children } = props;
47463
47463
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
47464
47464
  const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
47465
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_slot.Slot, { ref: composedRefs, children });
47465
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_slot.Slot, { ref: composedRefs, children });
47466
47466
  }
47467
47467
  );
47468
47468
  CollectionSlot.displayName = COLLECTION_SLOT_NAME;
@@ -47478,7 +47478,7 @@ var require_dist6 = __commonJS({
47478
47478
  context.itemMap.set(ref, { ref, ...itemData });
47479
47479
  return () => void context.itemMap.delete(ref);
47480
47480
  });
47481
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_slot.Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
47481
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_slot.Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
47482
47482
  }
47483
47483
  );
47484
47484
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
@@ -47545,11 +47545,11 @@ var require_dist7 = __commonJS({
47545
47545
  });
47546
47546
  module.exports = __toCommonJS2(src_exports);
47547
47547
  var React3 = __toESM2(require_react());
47548
- var import_jsx_runtime44 = require_jsx_runtime();
47548
+ var import_jsx_runtime45 = require_jsx_runtime();
47549
47549
  var DirectionContext = React3.createContext(void 0);
47550
47550
  var DirectionProvider = (props) => {
47551
47551
  const { dir, children } = props;
47552
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DirectionContext.Provider, { value: dir, children });
47552
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DirectionContext.Provider, { value: dir, children });
47553
47553
  };
47554
47554
  function useDirection(localDir) {
47555
47555
  const globalDir = React3.useContext(DirectionContext);
@@ -47600,7 +47600,7 @@ var require_dist8 = __commonJS({
47600
47600
  var React3 = __toESM2(require_react());
47601
47601
  var ReactDOM2 = __toESM2(require_react_dom());
47602
47602
  var import_react_slot = require_dist5();
47603
- var import_jsx_runtime44 = require_jsx_runtime();
47603
+ var import_jsx_runtime45 = require_jsx_runtime();
47604
47604
  var NODES = [
47605
47605
  "a",
47606
47606
  "button",
@@ -47626,7 +47626,7 @@ var require_dist8 = __commonJS({
47626
47626
  if (typeof window !== "undefined") {
47627
47627
  window[Symbol.for("radix-ui")] = true;
47628
47628
  }
47629
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
47629
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
47630
47630
  });
47631
47631
  Node2.displayName = `Primitive.${node}`;
47632
47632
  return { ...primitive, [node]: Node2 };
@@ -47785,7 +47785,7 @@ var require_dist11 = __commonJS({
47785
47785
  var import_react_compose_refs = require_dist4();
47786
47786
  var import_react_use_callback_ref = require_dist9();
47787
47787
  var import_react_use_escape_keydown = require_dist10();
47788
- var import_jsx_runtime44 = require_jsx_runtime();
47788
+ var import_jsx_runtime45 = require_jsx_runtime();
47789
47789
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
47790
47790
  var CONTEXT_UPDATE = "dismissableLayer.update";
47791
47791
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
@@ -47880,7 +47880,7 @@ var require_dist11 = __commonJS({
47880
47880
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
47881
47881
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
47882
47882
  }, []);
47883
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
47883
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
47884
47884
  import_react_primitive.Primitive.div,
47885
47885
  {
47886
47886
  ...layerProps,
@@ -47914,7 +47914,7 @@ var require_dist11 = __commonJS({
47914
47914
  };
47915
47915
  }
47916
47916
  }, [context.branches]);
47917
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
47917
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
47918
47918
  });
47919
47919
  DismissableLayerBranch.displayName = BRANCH_NAME;
47920
47920
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
@@ -48116,7 +48116,7 @@ var require_dist13 = __commonJS({
48116
48116
  var import_react_compose_refs = require_dist4();
48117
48117
  var import_react_primitive = require_dist8();
48118
48118
  var import_react_use_callback_ref = require_dist9();
48119
- var import_jsx_runtime44 = require_jsx_runtime();
48119
+ var import_jsx_runtime45 = require_jsx_runtime();
48120
48120
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
48121
48121
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
48122
48122
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
@@ -48246,7 +48246,7 @@ var require_dist13 = __commonJS({
48246
48246
  },
48247
48247
  [loop, trapped, focusScope.paused]
48248
48248
  );
48249
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
48249
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
48250
48250
  });
48251
48251
  FocusScope.displayName = FOCUS_SCOPE_NAME;
48252
48252
  function focusFirst(candidates, { select = false } = {}) {
@@ -50606,11 +50606,11 @@ var require_dist16 = __commonJS({
50606
50606
  module.exports = __toCommonJS2(src_exports);
50607
50607
  var React3 = __toESM2(require_react());
50608
50608
  var import_react_primitive = require_dist8();
50609
- var import_jsx_runtime44 = require_jsx_runtime();
50609
+ var import_jsx_runtime45 = require_jsx_runtime();
50610
50610
  var NAME = "Arrow";
50611
50611
  var Arrow = React3.forwardRef((props, forwardedRef) => {
50612
50612
  const { children, width = 10, height = 5, ...arrowProps } = props;
50613
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50613
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50614
50614
  import_react_primitive.Primitive.svg,
50615
50615
  {
50616
50616
  ...arrowProps,
@@ -50619,7 +50619,7 @@ var require_dist16 = __commonJS({
50619
50619
  height,
50620
50620
  viewBox: "0 0 30 10",
50621
50621
  preserveAspectRatio: "none",
50622
- children: props.asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("polygon", { points: "0,0 30,0 15,10" })
50622
+ children: props.asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("polygon", { points: "0,0 30,0 15,10" })
50623
50623
  }
50624
50624
  );
50625
50625
  });
@@ -50759,7 +50759,7 @@ var require_dist18 = __commonJS({
50759
50759
  var import_react_use_callback_ref = require_dist9();
50760
50760
  var import_react_use_layout_effect = require_dist14();
50761
50761
  var import_react_use_size = require_dist17();
50762
- var import_jsx_runtime44 = require_jsx_runtime();
50762
+ var import_jsx_runtime45 = require_jsx_runtime();
50763
50763
  var SIDE_OPTIONS = ["top", "right", "bottom", "left"];
50764
50764
  var ALIGN_OPTIONS = ["start", "center", "end"];
50765
50765
  var POPPER_NAME = "Popper";
@@ -50768,7 +50768,7 @@ var require_dist18 = __commonJS({
50768
50768
  var Popper = (props) => {
50769
50769
  const { __scopePopper, children } = props;
50770
50770
  const [anchor, setAnchor] = React3.useState(null);
50771
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
50771
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
50772
50772
  };
50773
50773
  Popper.displayName = POPPER_NAME;
50774
50774
  var ANCHOR_NAME = "PopperAnchor";
@@ -50781,7 +50781,7 @@ var require_dist18 = __commonJS({
50781
50781
  React3.useEffect(() => {
50782
50782
  context.onAnchorChange(virtualRef?.current || ref.current);
50783
50783
  });
50784
- return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...anchorProps, ref: composedRefs });
50784
+ return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...anchorProps, ref: composedRefs });
50785
50785
  }
50786
50786
  );
50787
50787
  PopperAnchor.displayName = ANCHOR_NAME;
@@ -50875,7 +50875,7 @@ var require_dist18 = __commonJS({
50875
50875
  if (content)
50876
50876
  setContentZIndex(window.getComputedStyle(content).zIndex);
50877
50877
  }, [content]);
50878
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50878
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50879
50879
  "div",
50880
50880
  {
50881
50881
  ref: refs.setFloating,
@@ -50899,7 +50899,7 @@ var require_dist18 = __commonJS({
50899
50899
  }
50900
50900
  },
50901
50901
  dir: props.dir,
50902
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50902
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50903
50903
  PopperContentProvider,
50904
50904
  {
50905
50905
  scope: __scopePopper,
@@ -50908,7 +50908,7 @@ var require_dist18 = __commonJS({
50908
50908
  arrowX,
50909
50909
  arrowY,
50910
50910
  shouldHideArrow: cannotCenterArrow,
50911
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50911
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50912
50912
  import_react_primitive.Primitive.div,
50913
50913
  {
50914
50914
  "data-side": placedSide,
@@ -50945,7 +50945,7 @@ var require_dist18 = __commonJS({
50945
50945
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
50946
50946
  // doesn't report size as we'd expect on SVG elements.
50947
50947
  // it reports their bounding box which is effectively the largest path inside the SVG.
50948
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50948
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50949
50949
  "span",
50950
50950
  {
50951
50951
  ref: contentContext.onArrowChange,
@@ -50968,7 +50968,7 @@ var require_dist18 = __commonJS({
50968
50968
  }[contentContext.placedSide],
50969
50969
  visibility: contentContext.shouldHideArrow ? "hidden" : void 0
50970
50970
  },
50971
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
50971
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
50972
50972
  ArrowPrimitive.Root,
50973
50973
  {
50974
50974
  ...arrowProps,
@@ -51072,14 +51072,14 @@ var require_dist19 = __commonJS({
51072
51072
  var import_react_dom = __toESM2(require_react_dom());
51073
51073
  var import_react_primitive = require_dist8();
51074
51074
  var import_react_use_layout_effect = require_dist14();
51075
- var import_jsx_runtime44 = require_jsx_runtime();
51075
+ var import_jsx_runtime45 = require_jsx_runtime();
51076
51076
  var PORTAL_NAME = "Portal";
51077
51077
  var Portal = React3.forwardRef((props, forwardedRef) => {
51078
51078
  const { container: containerProp, ...portalProps } = props;
51079
51079
  const [mounted, setMounted] = React3.useState(false);
51080
51080
  (0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
51081
51081
  const container = containerProp || mounted && globalThis?.document?.body;
51082
- return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
51082
+ return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
51083
51083
  });
51084
51084
  Portal.displayName = PORTAL_NAME;
51085
51085
  var Root = Portal;
@@ -51257,11 +51257,11 @@ var require_dist22 = __commonJS({
51257
51257
  module.exports = __toCommonJS2(src_exports);
51258
51258
  var React3 = __toESM2(require_react());
51259
51259
  var import_react_primitive = require_dist8();
51260
- var import_jsx_runtime44 = require_jsx_runtime();
51260
+ var import_jsx_runtime45 = require_jsx_runtime();
51261
51261
  var NAME = "VisuallyHidden";
51262
51262
  var VisuallyHidden = React3.forwardRef(
51263
51263
  (props, forwardedRef) => {
51264
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
51264
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
51265
51265
  import_react_primitive.Primitive.span,
51266
51266
  {
51267
51267
  ...props,
@@ -53420,7 +53420,7 @@ var require_dist23 = __commonJS({
53420
53420
  var import_react_visually_hidden = require_dist22();
53421
53421
  var import_aria_hidden = require_es5();
53422
53422
  var import_react_remove_scroll = require_es57();
53423
- var import_jsx_runtime44 = require_jsx_runtime();
53423
+ var import_jsx_runtime45 = require_jsx_runtime();
53424
53424
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
53425
53425
  var SELECTION_KEYS = [" ", "Enter"];
53426
53426
  var SELECT_NAME = "Select";
@@ -53468,7 +53468,7 @@ var require_dist23 = __commonJS({
53468
53468
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
53469
53469
  const [nativeOptionsSet, setNativeOptionsSet] = React3.useState(/* @__PURE__ */ new Set());
53470
53470
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
53471
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
53471
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
53472
53472
  SelectProvider,
53473
53473
  {
53474
53474
  required,
@@ -53488,7 +53488,7 @@ var require_dist23 = __commonJS({
53488
53488
  triggerPointerDownPosRef,
53489
53489
  disabled,
53490
53490
  children: [
53491
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53491
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53492
53492
  SelectNativeOptionsProvider,
53493
53493
  {
53494
53494
  scope: props.__scopeSelect,
@@ -53505,7 +53505,7 @@ var require_dist23 = __commonJS({
53505
53505
  children
53506
53506
  }
53507
53507
  ) }),
53508
- isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
53508
+ isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
53509
53509
  BubbleSelect,
53510
53510
  {
53511
53511
  "aria-hidden": true,
@@ -53518,7 +53518,7 @@ var require_dist23 = __commonJS({
53518
53518
  disabled,
53519
53519
  form,
53520
53520
  children: [
53521
- value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { value: "" }) : null,
53521
+ value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { value: "" }) : null,
53522
53522
  Array.from(nativeOptionsSet)
53523
53523
  ]
53524
53524
  },
@@ -53559,7 +53559,7 @@ var require_dist23 = __commonJS({
53559
53559
  };
53560
53560
  }
53561
53561
  };
53562
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53562
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53563
53563
  import_react_primitive.Primitive.button,
53564
53564
  {
53565
53565
  type: "button",
@@ -53620,13 +53620,13 @@ var require_dist23 = __commonJS({
53620
53620
  (0, import_react_use_layout_effect.useLayoutEffect)(() => {
53621
53621
  onValueNodeHasChildrenChange(hasChildren);
53622
53622
  }, [onValueNodeHasChildrenChange, hasChildren]);
53623
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53623
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53624
53624
  import_react_primitive.Primitive.span,
53625
53625
  {
53626
53626
  ...valueProps,
53627
53627
  ref: composedRefs,
53628
53628
  style: { pointerEvents: "none" },
53629
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: placeholder }) : children
53629
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: placeholder }) : children
53630
53630
  }
53631
53631
  );
53632
53632
  }
@@ -53636,13 +53636,13 @@ var require_dist23 = __commonJS({
53636
53636
  var SelectIcon = React3.forwardRef(
53637
53637
  (props, forwardedRef) => {
53638
53638
  const { __scopeSelect, children, ...iconProps } = props;
53639
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
53639
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
53640
53640
  }
53641
53641
  );
53642
53642
  SelectIcon.displayName = ICON_NAME;
53643
53643
  var PORTAL_NAME = "SelectPortal";
53644
53644
  var SelectPortal = (props) => {
53645
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_portal.Portal, { asChild: true, ...props });
53645
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_portal.Portal, { asChild: true, ...props });
53646
53646
  };
53647
53647
  SelectPortal.displayName = PORTAL_NAME;
53648
53648
  var CONTENT_NAME = "SelectContent";
@@ -53656,11 +53656,11 @@ var require_dist23 = __commonJS({
53656
53656
  if (!context.open) {
53657
53657
  const frag = fragment;
53658
53658
  return frag ? ReactDOM2.createPortal(
53659
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { children: props.children }) }) }),
53659
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children: props.children }) }) }),
53660
53660
  frag
53661
53661
  ) : null;
53662
53662
  }
53663
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
53663
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
53664
53664
  }
53665
53665
  );
53666
53666
  SelectContent.displayName = CONTENT_NAME;
@@ -53819,7 +53819,7 @@ var require_dist23 = __commonJS({
53819
53819
  hideWhenDetached,
53820
53820
  avoidCollisions
53821
53821
  } : {};
53822
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53822
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53823
53823
  SelectContentProvider,
53824
53824
  {
53825
53825
  scope: __scopeSelect,
@@ -53835,7 +53835,7 @@ var require_dist23 = __commonJS({
53835
53835
  position,
53836
53836
  isPositioned,
53837
53837
  searchRef,
53838
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53838
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53839
53839
  import_react_focus_scope.FocusScope,
53840
53840
  {
53841
53841
  asChild: true,
@@ -53847,7 +53847,7 @@ var require_dist23 = __commonJS({
53847
53847
  context.trigger?.focus({ preventScroll: true });
53848
53848
  event.preventDefault();
53849
53849
  }),
53850
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53850
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53851
53851
  import_react_dismissable_layer.DismissableLayer,
53852
53852
  {
53853
53853
  asChild: true,
@@ -53856,7 +53856,7 @@ var require_dist23 = __commonJS({
53856
53856
  onPointerDownOutside,
53857
53857
  onFocusOutside: (event) => event.preventDefault(),
53858
53858
  onDismiss: () => context.onOpenChange(false),
53859
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
53859
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
53860
53860
  SelectPosition,
53861
53861
  {
53862
53862
  role: "listbox",
@@ -54035,14 +54035,14 @@ var require_dist23 = __commonJS({
54035
54035
  },
54036
54036
  [position, focusSelectedItem]
54037
54037
  );
54038
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54038
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54039
54039
  SelectViewportProvider,
54040
54040
  {
54041
54041
  scope: __scopeSelect,
54042
54042
  contentWrapper,
54043
54043
  shouldExpandOnScrollRef,
54044
54044
  onScrollButtonChange: handleScrollButtonChange,
54045
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54045
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54046
54046
  "div",
54047
54047
  {
54048
54048
  ref: setContentWrapper,
@@ -54052,7 +54052,7 @@ var require_dist23 = __commonJS({
54052
54052
  position: "fixed",
54053
54053
  zIndex: contentZIndex
54054
54054
  },
54055
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54055
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54056
54056
  import_react_primitive.Primitive.div,
54057
54057
  {
54058
54058
  ...popperProps,
@@ -54082,7 +54082,7 @@ var require_dist23 = __commonJS({
54082
54082
  ...popperProps
54083
54083
  } = props;
54084
54084
  const popperScope = usePopperScope(__scopeSelect);
54085
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54085
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54086
54086
  PopperPrimitive.Content,
54087
54087
  {
54088
54088
  ...popperScope,
@@ -54116,8 +54116,8 @@ var require_dist23 = __commonJS({
54116
54116
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
54117
54117
  const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentContext.onViewportChange);
54118
54118
  const prevScrollTopRef = React3.useRef(0);
54119
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
54120
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54119
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
54120
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54121
54121
  "style",
54122
54122
  {
54123
54123
  dangerouslySetInnerHTML: {
@@ -54126,7 +54126,7 @@ var require_dist23 = __commonJS({
54126
54126
  nonce
54127
54127
  }
54128
54128
  ),
54129
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54129
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54130
54130
  import_react_primitive.Primitive.div,
54131
54131
  {
54132
54132
  "data-radix-select-viewport": "",
@@ -54182,7 +54182,7 @@ var require_dist23 = __commonJS({
54182
54182
  (props, forwardedRef) => {
54183
54183
  const { __scopeSelect, ...groupProps } = props;
54184
54184
  const groupId = (0, import_react_id.useId)();
54185
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
54185
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
54186
54186
  }
54187
54187
  );
54188
54188
  SelectGroup.displayName = GROUP_NAME;
@@ -54191,7 +54191,7 @@ var require_dist23 = __commonJS({
54191
54191
  (props, forwardedRef) => {
54192
54192
  const { __scopeSelect, ...labelProps } = props;
54193
54193
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
54194
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
54194
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
54195
54195
  }
54196
54196
  );
54197
54197
  SelectLabel.displayName = LABEL_NAME;
@@ -54228,7 +54228,7 @@ var require_dist23 = __commonJS({
54228
54228
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
54229
54229
  );
54230
54230
  }
54231
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54231
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54232
54232
  SelectItemContextProvider,
54233
54233
  {
54234
54234
  scope: __scopeSelect,
@@ -54239,14 +54239,14 @@ var require_dist23 = __commonJS({
54239
54239
  onItemTextChange: React3.useCallback((node) => {
54240
54240
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
54241
54241
  }, []),
54242
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54242
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54243
54243
  Collection.ItemSlot,
54244
54244
  {
54245
54245
  scope: __scopeSelect,
54246
54246
  value,
54247
54247
  disabled,
54248
54248
  textValue,
54249
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54249
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54250
54250
  import_react_primitive.Primitive.div,
54251
54251
  {
54252
54252
  role: "option",
@@ -54320,7 +54320,7 @@ var require_dist23 = __commonJS({
54320
54320
  );
54321
54321
  const textContent = itemTextNode?.textContent;
54322
54322
  const nativeOption = React3.useMemo(
54323
- () => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
54323
+ () => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
54324
54324
  [itemContext.disabled, itemContext.value, textContent]
54325
54325
  );
54326
54326
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
@@ -54328,8 +54328,8 @@ var require_dist23 = __commonJS({
54328
54328
  onNativeOptionAdd(nativeOption);
54329
54329
  return () => onNativeOptionRemove(nativeOption);
54330
54330
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
54331
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
54332
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
54331
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
54332
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
54333
54333
  itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM2.createPortal(itemTextProps.children, context.valueNode) : null
54334
54334
  ] });
54335
54335
  }
@@ -54340,7 +54340,7 @@ var require_dist23 = __commonJS({
54340
54340
  (props, forwardedRef) => {
54341
54341
  const { __scopeSelect, ...itemIndicatorProps } = props;
54342
54342
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
54343
- return itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
54343
+ return itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
54344
54344
  }
54345
54345
  );
54346
54346
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
@@ -54363,7 +54363,7 @@ var require_dist23 = __commonJS({
54363
54363
  return () => viewport.removeEventListener("scroll", handleScroll2);
54364
54364
  }
54365
54365
  }, [contentContext.viewport, contentContext.isPositioned]);
54366
- return canScrollUp ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54366
+ return canScrollUp ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54367
54367
  SelectScrollButtonImpl,
54368
54368
  {
54369
54369
  ...props,
@@ -54398,7 +54398,7 @@ var require_dist23 = __commonJS({
54398
54398
  return () => viewport.removeEventListener("scroll", handleScroll2);
54399
54399
  }
54400
54400
  }, [contentContext.viewport, contentContext.isPositioned]);
54401
- return canScrollDown ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54401
+ return canScrollDown ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54402
54402
  SelectScrollButtonImpl,
54403
54403
  {
54404
54404
  ...props,
@@ -54431,7 +54431,7 @@ var require_dist23 = __commonJS({
54431
54431
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
54432
54432
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
54433
54433
  }, [getItems]);
54434
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54434
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54435
54435
  import_react_primitive.Primitive.div,
54436
54436
  {
54437
54437
  "aria-hidden": true,
@@ -54459,7 +54459,7 @@ var require_dist23 = __commonJS({
54459
54459
  var SelectSeparator = React3.forwardRef(
54460
54460
  (props, forwardedRef) => {
54461
54461
  const { __scopeSelect, ...separatorProps } = props;
54462
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
54462
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
54463
54463
  }
54464
54464
  );
54465
54465
  SelectSeparator.displayName = SEPARATOR_NAME;
@@ -54470,7 +54470,7 @@ var require_dist23 = __commonJS({
54470
54470
  const popperScope = usePopperScope(__scopeSelect);
54471
54471
  const context = useSelectContext(ARROW_NAME, __scopeSelect);
54472
54472
  const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);
54473
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
54473
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
54474
54474
  }
54475
54475
  );
54476
54476
  SelectArrow.displayName = ARROW_NAME;
@@ -54497,7 +54497,7 @@ var require_dist23 = __commonJS({
54497
54497
  select.dispatchEvent(event);
54498
54498
  }
54499
54499
  }, [prevValue, value]);
54500
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_visually_hidden.VisuallyHidden, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
54500
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_visually_hidden.VisuallyHidden, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
54501
54501
  }
54502
54502
  );
54503
54503
  BubbleSelect.displayName = "BubbleSelect";
@@ -54881,7 +54881,7 @@ var require_dist25 = __commonJS({
54881
54881
  var import_react_use_controllable_state = require_dist20();
54882
54882
  var import_aria_hidden = require_es5();
54883
54883
  var import_react_remove_scroll = require_es57();
54884
- var import_jsx_runtime44 = require_jsx_runtime();
54884
+ var import_jsx_runtime45 = require_jsx_runtime();
54885
54885
  var POPOVER_NAME = "Popover";
54886
54886
  var [createPopoverContext, createPopoverScope] = (0, import_react_context.createContextScope)(POPOVER_NAME, [
54887
54887
  import_react_popper.createPopperScope
@@ -54905,7 +54905,7 @@ var require_dist25 = __commonJS({
54905
54905
  defaultProp: defaultOpen,
54906
54906
  onChange: onOpenChange
54907
54907
  });
54908
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54908
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54909
54909
  PopoverProvider,
54910
54910
  {
54911
54911
  scope: __scopePopover,
@@ -54934,7 +54934,7 @@ var require_dist25 = __commonJS({
54934
54934
  onCustomAnchorAdd();
54935
54935
  return () => onCustomAnchorRemove();
54936
54936
  }, [onCustomAnchorAdd, onCustomAnchorRemove]);
54937
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
54937
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
54938
54938
  }
54939
54939
  );
54940
54940
  PopoverAnchor.displayName = ANCHOR_NAME;
@@ -54945,7 +54945,7 @@ var require_dist25 = __commonJS({
54945
54945
  const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
54946
54946
  const popperScope = usePopperScope(__scopePopover);
54947
54947
  const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
54948
- const trigger = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54948
+ const trigger = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54949
54949
  import_react_primitive.Primitive.button,
54950
54950
  {
54951
54951
  type: "button",
@@ -54958,7 +54958,7 @@ var require_dist25 = __commonJS({
54958
54958
  onClick: (0, import_primitive.composeEventHandlers)(props.onClick, context.onOpenToggle)
54959
54959
  }
54960
54960
  );
54961
- return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
54961
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
54962
54962
  }
54963
54963
  );
54964
54964
  PopoverTrigger.displayName = TRIGGER_NAME;
@@ -54969,7 +54969,7 @@ var require_dist25 = __commonJS({
54969
54969
  var PopoverPortal = (props) => {
54970
54970
  const { __scopePopover, forceMount, children, container } = props;
54971
54971
  const context = usePopoverContext(PORTAL_NAME, __scopePopover);
54972
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_portal.Portal, { asChild: true, container, children }) }) });
54972
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_portal.Portal, { asChild: true, container, children }) }) });
54973
54973
  };
54974
54974
  PopoverPortal.displayName = PORTAL_NAME;
54975
54975
  var CONTENT_NAME = "PopoverContent";
@@ -54978,7 +54978,7 @@ var require_dist25 = __commonJS({
54978
54978
  const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
54979
54979
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
54980
54980
  const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
54981
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
54981
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
54982
54982
  }
54983
54983
  );
54984
54984
  PopoverContent.displayName = CONTENT_NAME;
@@ -54993,7 +54993,7 @@ var require_dist25 = __commonJS({
54993
54993
  if (content)
54994
54994
  return (0, import_aria_hidden.hideOthers)(content);
54995
54995
  }, []);
54996
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
54996
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
54997
54997
  PopoverContentImpl,
54998
54998
  {
54999
54999
  ...props,
@@ -55029,7 +55029,7 @@ var require_dist25 = __commonJS({
55029
55029
  const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
55030
55030
  const hasInteractedOutsideRef = React3.useRef(false);
55031
55031
  const hasPointerDownOutsideRef = React3.useRef(false);
55032
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
55032
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
55033
55033
  PopoverContentImpl,
55034
55034
  {
55035
55035
  ...props,
@@ -55083,7 +55083,7 @@ var require_dist25 = __commonJS({
55083
55083
  const context = usePopoverContext(CONTENT_NAME, __scopePopover);
55084
55084
  const popperScope = usePopperScope(__scopePopover);
55085
55085
  (0, import_react_focus_guards.useFocusGuards)();
55086
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
55086
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
55087
55087
  import_react_focus_scope.FocusScope,
55088
55088
  {
55089
55089
  asChild: true,
@@ -55091,7 +55091,7 @@ var require_dist25 = __commonJS({
55091
55091
  trapped: trapFocus,
55092
55092
  onMountAutoFocus: onOpenAutoFocus,
55093
55093
  onUnmountAutoFocus: onCloseAutoFocus,
55094
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
55094
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
55095
55095
  import_react_dismissable_layer.DismissableLayer,
55096
55096
  {
55097
55097
  asChild: true,
@@ -55101,7 +55101,7 @@ var require_dist25 = __commonJS({
55101
55101
  onPointerDownOutside,
55102
55102
  onFocusOutside,
55103
55103
  onDismiss: () => context.onOpenChange(false),
55104
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
55104
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
55105
55105
  PopperPrimitive.Content,
55106
55106
  {
55107
55107
  "data-state": getState(context.open),
@@ -55134,7 +55134,7 @@ var require_dist25 = __commonJS({
55134
55134
  (props, forwardedRef) => {
55135
55135
  const { __scopePopover, ...closeProps } = props;
55136
55136
  const context = usePopoverContext(CLOSE_NAME, __scopePopover);
55137
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
55137
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
55138
55138
  import_react_primitive.Primitive.button,
55139
55139
  {
55140
55140
  type: "button",
@@ -55151,7 +55151,7 @@ var require_dist25 = __commonJS({
55151
55151
  (props, forwardedRef) => {
55152
55152
  const { __scopePopover, ...arrowProps } = props;
55153
55153
  const popperScope = usePopperScope(__scopePopover);
55154
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
55154
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
55155
55155
  }
55156
55156
  );
55157
55157
  PopoverArrow.displayName = ARROW_NAME;
@@ -55377,13 +55377,13 @@ var require_dist28 = __commonJS({
55377
55377
  });
55378
55378
  module.exports = __toCommonJS2(index_exports);
55379
55379
  var React3 = __toESM2(require_react());
55380
- var import_jsx_runtime44 = require_jsx_runtime();
55380
+ var import_jsx_runtime45 = require_jsx_runtime();
55381
55381
  function createContext2(rootComponentName, defaultContext) {
55382
55382
  const Context = React3.createContext(defaultContext);
55383
55383
  const Provider = (props) => {
55384
55384
  const { children, ...context } = props;
55385
55385
  const value = React3.useMemo(() => context, Object.values(context));
55386
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
55386
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
55387
55387
  };
55388
55388
  Provider.displayName = rootComponentName + "Provider";
55389
55389
  function useContext2(consumerName) {
@@ -55406,7 +55406,7 @@ var require_dist28 = __commonJS({
55406
55406
  const { scope, children, ...context } = props;
55407
55407
  const Context = scope?.[scopeName]?.[index3] || BaseContext;
55408
55408
  const value = React3.useMemo(() => context, Object.values(context));
55409
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
55409
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
55410
55410
  };
55411
55411
  Provider.displayName = rootComponentName + "Provider";
55412
55412
  function useContext2(consumerName, scope) {
@@ -55865,7 +55865,7 @@ var require_dist34 = __commonJS({
55865
55865
  module.exports = __toCommonJS2(index_exports);
55866
55866
  var React3 = __toESM2(require_react());
55867
55867
  var import_react_compose_refs = require_dist27();
55868
- var import_jsx_runtime44 = require_jsx_runtime();
55868
+ var import_jsx_runtime45 = require_jsx_runtime();
55869
55869
  // @__NO_SIDE_EFFECTS__
55870
55870
  function createSlot(ownerName) {
55871
55871
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
@@ -55884,9 +55884,9 @@ var require_dist34 = __commonJS({
55884
55884
  return child;
55885
55885
  }
55886
55886
  });
55887
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
55887
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
55888
55888
  }
55889
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
55889
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
55890
55890
  });
55891
55891
  Slot2.displayName = `${ownerName}.Slot`;
55892
55892
  return Slot2;
@@ -55913,7 +55913,7 @@ var require_dist34 = __commonJS({
55913
55913
  // @__NO_SIDE_EFFECTS__
55914
55914
  function createSlottable(ownerName) {
55915
55915
  const Slottable2 = ({ children }) => {
55916
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children });
55916
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children });
55917
55917
  };
55918
55918
  Slottable2.displayName = `${ownerName}.Slottable`;
55919
55919
  Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
@@ -56003,7 +56003,7 @@ var require_dist35 = __commonJS({
56003
56003
  var React3 = __toESM2(require_react());
56004
56004
  var ReactDOM2 = __toESM2(require_react_dom());
56005
56005
  var import_react_slot = require_dist34();
56006
- var import_jsx_runtime44 = require_jsx_runtime();
56006
+ var import_jsx_runtime45 = require_jsx_runtime();
56007
56007
  var NODES = [
56008
56008
  "a",
56009
56009
  "button",
@@ -56031,7 +56031,7 @@ var require_dist35 = __commonJS({
56031
56031
  if (typeof window !== "undefined") {
56032
56032
  window[Symbol.for("radix-ui")] = true;
56033
56033
  }
56034
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
56034
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
56035
56035
  });
56036
56036
  Node2.displayName = `Primitive.${node}`;
56037
56037
  return { ...primitive, [node]: Node2 };
@@ -56190,7 +56190,7 @@ var require_dist38 = __commonJS({
56190
56190
  var import_react_compose_refs = require_dist27();
56191
56191
  var import_react_use_callback_ref = require_dist36();
56192
56192
  var import_react_use_escape_keydown = require_dist37();
56193
- var import_jsx_runtime44 = require_jsx_runtime();
56193
+ var import_jsx_runtime45 = require_jsx_runtime();
56194
56194
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
56195
56195
  var CONTEXT_UPDATE = "dismissableLayer.update";
56196
56196
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
@@ -56285,7 +56285,7 @@ var require_dist38 = __commonJS({
56285
56285
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
56286
56286
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
56287
56287
  }, []);
56288
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
56288
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
56289
56289
  import_react_primitive.Primitive.div,
56290
56290
  {
56291
56291
  ...layerProps,
@@ -56319,7 +56319,7 @@ var require_dist38 = __commonJS({
56319
56319
  };
56320
56320
  }
56321
56321
  }, [context.branches]);
56322
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
56322
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
56323
56323
  });
56324
56324
  DismissableLayerBranch.displayName = BRANCH_NAME;
56325
56325
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
@@ -56448,7 +56448,7 @@ var require_dist39 = __commonJS({
56448
56448
  var import_react_compose_refs = require_dist27();
56449
56449
  var import_react_primitive = require_dist35();
56450
56450
  var import_react_use_callback_ref = require_dist36();
56451
- var import_jsx_runtime44 = require_jsx_runtime();
56451
+ var import_jsx_runtime45 = require_jsx_runtime();
56452
56452
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
56453
56453
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
56454
56454
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
@@ -56578,7 +56578,7 @@ var require_dist39 = __commonJS({
56578
56578
  },
56579
56579
  [loop, trapped, focusScope.paused]
56580
56580
  );
56581
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
56581
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
56582
56582
  });
56583
56583
  FocusScope.displayName = FOCUS_SCOPE_NAME;
56584
56584
  function focusFirst(candidates, { select = false } = {}) {
@@ -56713,14 +56713,14 @@ var require_dist40 = __commonJS({
56713
56713
  var import_react_dom = __toESM2(require_react_dom());
56714
56714
  var import_react_primitive = require_dist35();
56715
56715
  var import_react_use_layout_effect = require_dist29();
56716
- var import_jsx_runtime44 = require_jsx_runtime();
56716
+ var import_jsx_runtime45 = require_jsx_runtime();
56717
56717
  var PORTAL_NAME = "Portal";
56718
56718
  var Portal = React3.forwardRef((props, forwardedRef) => {
56719
56719
  const { container: containerProp, ...portalProps } = props;
56720
56720
  const [mounted, setMounted] = React3.useState(false);
56721
56721
  (0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
56722
56722
  const container = containerProp || mounted && globalThis?.document?.body;
56723
- return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
56723
+ return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
56724
56724
  });
56725
56725
  Portal.displayName = PORTAL_NAME;
56726
56726
  var Root = Portal;
@@ -57037,7 +57037,7 @@ var require_dist43 = __commonJS({
57037
57037
  var import_react_remove_scroll = require_es57();
57038
57038
  var import_aria_hidden = require_es5();
57039
57039
  var import_react_slot = require_dist34();
57040
- var import_jsx_runtime44 = require_jsx_runtime();
57040
+ var import_jsx_runtime45 = require_jsx_runtime();
57041
57041
  var DIALOG_NAME = "Dialog";
57042
57042
  var [createDialogContext, createDialogScope] = (0, import_react_context.createContextScope)(DIALOG_NAME);
57043
57043
  var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
@@ -57058,7 +57058,7 @@ var require_dist43 = __commonJS({
57058
57058
  onChange: onOpenChange,
57059
57059
  caller: DIALOG_NAME
57060
57060
  });
57061
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57061
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57062
57062
  DialogProvider,
57063
57063
  {
57064
57064
  scope: __scopeDialog,
@@ -57082,7 +57082,7 @@ var require_dist43 = __commonJS({
57082
57082
  const { __scopeDialog, ...triggerProps } = props;
57083
57083
  const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
57084
57084
  const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
57085
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57085
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57086
57086
  import_react_primitive.Primitive.button,
57087
57087
  {
57088
57088
  type: "button",
@@ -57105,7 +57105,7 @@ var require_dist43 = __commonJS({
57105
57105
  var DialogPortal = (props) => {
57106
57106
  const { __scopeDialog, forceMount, children, container } = props;
57107
57107
  const context = useDialogContext(PORTAL_NAME, __scopeDialog);
57108
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
57108
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
57109
57109
  };
57110
57110
  DialogPortal.displayName = PORTAL_NAME;
57111
57111
  var OVERLAY_NAME = "DialogOverlay";
@@ -57114,7 +57114,7 @@ var require_dist43 = __commonJS({
57114
57114
  const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
57115
57115
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
57116
57116
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
57117
- return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
57117
+ return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
57118
57118
  }
57119
57119
  );
57120
57120
  DialogOverlay.displayName = OVERLAY_NAME;
@@ -57126,7 +57126,7 @@ var require_dist43 = __commonJS({
57126
57126
  return (
57127
57127
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
57128
57128
  // ie. when `Overlay` and `Content` are siblings
57129
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57129
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57130
57130
  import_react_primitive.Primitive.div,
57131
57131
  {
57132
57132
  "data-state": getState(context.open),
@@ -57144,7 +57144,7 @@ var require_dist43 = __commonJS({
57144
57144
  const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
57145
57145
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
57146
57146
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
57147
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
57147
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
57148
57148
  }
57149
57149
  );
57150
57150
  DialogContent.displayName = CONTENT_NAME;
@@ -57158,7 +57158,7 @@ var require_dist43 = __commonJS({
57158
57158
  if (content)
57159
57159
  return (0, import_aria_hidden.hideOthers)(content);
57160
57160
  }, []);
57161
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57161
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57162
57162
  DialogContentImpl,
57163
57163
  {
57164
57164
  ...props,
@@ -57189,7 +57189,7 @@ var require_dist43 = __commonJS({
57189
57189
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
57190
57190
  const hasInteractedOutsideRef = React3.useRef(false);
57191
57191
  const hasPointerDownOutsideRef = React3.useRef(false);
57192
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57192
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57193
57193
  DialogContentImpl,
57194
57194
  {
57195
57195
  ...props,
@@ -57233,8 +57233,8 @@ var require_dist43 = __commonJS({
57233
57233
  const contentRef = React3.useRef(null);
57234
57234
  const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
57235
57235
  (0, import_react_focus_guards.useFocusGuards)();
57236
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
57237
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57236
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
57237
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57238
57238
  import_react_focus_scope.FocusScope,
57239
57239
  {
57240
57240
  asChild: true,
@@ -57242,7 +57242,7 @@ var require_dist43 = __commonJS({
57242
57242
  trapped: trapFocus,
57243
57243
  onMountAutoFocus: onOpenAutoFocus,
57244
57244
  onUnmountAutoFocus: onCloseAutoFocus,
57245
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57245
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57246
57246
  import_react_dismissable_layer.DismissableLayer,
57247
57247
  {
57248
57248
  role: "dialog",
@@ -57257,9 +57257,9 @@ var require_dist43 = __commonJS({
57257
57257
  )
57258
57258
  }
57259
57259
  ),
57260
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
57261
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TitleWarning, { titleId: context.titleId }),
57262
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
57260
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
57261
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TitleWarning, { titleId: context.titleId }),
57262
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
57263
57263
  ] })
57264
57264
  ] });
57265
57265
  }
@@ -57269,7 +57269,7 @@ var require_dist43 = __commonJS({
57269
57269
  (props, forwardedRef) => {
57270
57270
  const { __scopeDialog, ...titleProps } = props;
57271
57271
  const context = useDialogContext(TITLE_NAME, __scopeDialog);
57272
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
57272
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
57273
57273
  }
57274
57274
  );
57275
57275
  DialogTitle.displayName = TITLE_NAME;
@@ -57278,7 +57278,7 @@ var require_dist43 = __commonJS({
57278
57278
  (props, forwardedRef) => {
57279
57279
  const { __scopeDialog, ...descriptionProps } = props;
57280
57280
  const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
57281
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
57281
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
57282
57282
  }
57283
57283
  );
57284
57284
  DialogDescription.displayName = DESCRIPTION_NAME;
@@ -57287,7 +57287,7 @@ var require_dist43 = __commonJS({
57287
57287
  (props, forwardedRef) => {
57288
57288
  const { __scopeDialog, ...closeProps } = props;
57289
57289
  const context = useDialogContext(CLOSE_NAME, __scopeDialog);
57290
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
57290
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
57291
57291
  import_react_primitive.Primitive.button,
57292
57292
  {
57293
57293
  type: "button",
@@ -57887,13 +57887,13 @@ var require_dist47 = __commonJS({
57887
57887
  });
57888
57888
  module.exports = __toCommonJS2(index_exports);
57889
57889
  var React3 = __toESM2(require_react());
57890
- var import_jsx_runtime44 = require_jsx_runtime();
57890
+ var import_jsx_runtime45 = require_jsx_runtime();
57891
57891
  function createContext2(rootComponentName, defaultContext) {
57892
57892
  const Context = React3.createContext(defaultContext);
57893
57893
  const Provider = (props) => {
57894
57894
  const { children, ...context } = props;
57895
57895
  const value = React3.useMemo(() => context, Object.values(context));
57896
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
57896
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
57897
57897
  };
57898
57898
  Provider.displayName = rootComponentName + "Provider";
57899
57899
  function useContext2(consumerName) {
@@ -57916,7 +57916,7 @@ var require_dist47 = __commonJS({
57916
57916
  const { scope, children, ...context } = props;
57917
57917
  const Context = scope?.[scopeName]?.[index3] || BaseContext;
57918
57918
  const value = React3.useMemo(() => context, Object.values(context));
57919
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Context.Provider, { value, children });
57919
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Context.Provider, { value, children });
57920
57920
  };
57921
57921
  Provider.displayName = rootComponentName + "Provider";
57922
57922
  function useContext2(consumerName, scope) {
@@ -58390,7 +58390,7 @@ var require_dist53 = __commonJS({
58390
58390
  module.exports = __toCommonJS2(index_exports);
58391
58391
  var React3 = __toESM2(require_react());
58392
58392
  var import_react_compose_refs = require_dist52();
58393
- var import_jsx_runtime44 = require_jsx_runtime();
58393
+ var import_jsx_runtime45 = require_jsx_runtime();
58394
58394
  // @__NO_SIDE_EFFECTS__
58395
58395
  function createSlot(ownerName) {
58396
58396
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
@@ -58409,9 +58409,9 @@ var require_dist53 = __commonJS({
58409
58409
  return child;
58410
58410
  }
58411
58411
  });
58412
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
58412
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
58413
58413
  }
58414
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
58414
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
58415
58415
  });
58416
58416
  Slot2.displayName = `${ownerName}.Slot`;
58417
58417
  return Slot2;
@@ -58439,7 +58439,7 @@ var require_dist53 = __commonJS({
58439
58439
  // @__NO_SIDE_EFFECTS__
58440
58440
  function createSlottable(ownerName) {
58441
58441
  const Slottable2 = ({ children }) => {
58442
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children });
58442
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children });
58443
58443
  };
58444
58444
  Slottable2.displayName = `${ownerName}.Slottable`;
58445
58445
  Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
@@ -58530,7 +58530,7 @@ var require_dist54 = __commonJS({
58530
58530
  var React3 = __toESM2(require_react());
58531
58531
  var ReactDOM2 = __toESM2(require_react_dom());
58532
58532
  var import_react_slot = require_dist53();
58533
- var import_jsx_runtime44 = require_jsx_runtime();
58533
+ var import_jsx_runtime45 = require_jsx_runtime();
58534
58534
  var NODES = [
58535
58535
  "a",
58536
58536
  "button",
@@ -58558,7 +58558,7 @@ var require_dist54 = __commonJS({
58558
58558
  if (typeof window !== "undefined") {
58559
58559
  window[Symbol.for("radix-ui")] = true;
58560
58560
  }
58561
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
58561
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
58562
58562
  });
58563
58563
  Node2.displayName = `Primitive.${node}`;
58564
58564
  return { ...primitive, [node]: Node2 };
@@ -58717,7 +58717,7 @@ var require_dist57 = __commonJS({
58717
58717
  var import_react_compose_refs = require_dist46();
58718
58718
  var import_react_use_callback_ref = require_dist55();
58719
58719
  var import_react_use_escape_keydown = require_dist56();
58720
- var import_jsx_runtime44 = require_jsx_runtime();
58720
+ var import_jsx_runtime45 = require_jsx_runtime();
58721
58721
  var DISMISSABLE_LAYER_NAME = "DismissableLayer";
58722
58722
  var CONTEXT_UPDATE = "dismissableLayer.update";
58723
58723
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
@@ -58812,7 +58812,7 @@ var require_dist57 = __commonJS({
58812
58812
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
58813
58813
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
58814
58814
  }, []);
58815
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
58815
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
58816
58816
  import_react_primitive.Primitive.div,
58817
58817
  {
58818
58818
  ...layerProps,
@@ -58846,7 +58846,7 @@ var require_dist57 = __commonJS({
58846
58846
  };
58847
58847
  }
58848
58848
  }, [context.branches]);
58849
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
58849
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
58850
58850
  });
58851
58851
  DismissableLayerBranch.displayName = BRANCH_NAME;
58852
58852
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
@@ -59022,7 +59022,7 @@ var require_dist59 = __commonJS({
59022
59022
  var import_react_compose_refs = require_dist46();
59023
59023
  var import_react_primitive = require_dist54();
59024
59024
  var import_react_use_callback_ref = require_dist58();
59025
- var import_jsx_runtime44 = require_jsx_runtime();
59025
+ var import_jsx_runtime45 = require_jsx_runtime();
59026
59026
  var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
59027
59027
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
59028
59028
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
@@ -59152,7 +59152,7 @@ var require_dist59 = __commonJS({
59152
59152
  },
59153
59153
  [loop, trapped, focusScope.paused]
59154
59154
  );
59155
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
59155
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
59156
59156
  });
59157
59157
  FocusScope.displayName = FOCUS_SCOPE_NAME;
59158
59158
  function focusFirst(candidates, { select = false } = {}) {
@@ -59329,14 +59329,14 @@ var require_dist61 = __commonJS({
59329
59329
  var import_react_dom = __toESM2(require_react_dom());
59330
59330
  var import_react_primitive = require_dist54();
59331
59331
  var import_react_use_layout_effect = require_dist60();
59332
- var import_jsx_runtime44 = require_jsx_runtime();
59332
+ var import_jsx_runtime45 = require_jsx_runtime();
59333
59333
  var PORTAL_NAME = "Portal";
59334
59334
  var Portal = React3.forwardRef((props, forwardedRef) => {
59335
59335
  const { container: containerProp, ...portalProps } = props;
59336
59336
  const [mounted, setMounted] = React3.useState(false);
59337
59337
  (0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
59338
59338
  const container = containerProp || mounted && globalThis?.document?.body;
59339
- return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
59339
+ return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
59340
59340
  });
59341
59341
  Portal.displayName = PORTAL_NAME;
59342
59342
  var Root = Portal;
@@ -59695,7 +59695,7 @@ var require_dist65 = __commonJS({
59695
59695
  var import_react_remove_scroll = require_es57();
59696
59696
  var import_aria_hidden = require_es5();
59697
59697
  var import_react_slot = require_dist53();
59698
- var import_jsx_runtime44 = require_jsx_runtime();
59698
+ var import_jsx_runtime45 = require_jsx_runtime();
59699
59699
  var DIALOG_NAME = "Dialog";
59700
59700
  var [createDialogContext, createDialogScope] = (0, import_react_context.createContextScope)(DIALOG_NAME);
59701
59701
  var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
@@ -59716,7 +59716,7 @@ var require_dist65 = __commonJS({
59716
59716
  onChange: onOpenChange,
59717
59717
  caller: DIALOG_NAME
59718
59718
  });
59719
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59719
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59720
59720
  DialogProvider,
59721
59721
  {
59722
59722
  scope: __scopeDialog,
@@ -59740,7 +59740,7 @@ var require_dist65 = __commonJS({
59740
59740
  const { __scopeDialog, ...triggerProps } = props;
59741
59741
  const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
59742
59742
  const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
59743
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59743
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59744
59744
  import_react_primitive.Primitive.button,
59745
59745
  {
59746
59746
  type: "button",
@@ -59763,7 +59763,7 @@ var require_dist65 = __commonJS({
59763
59763
  var DialogPortal = (props) => {
59764
59764
  const { __scopeDialog, forceMount, children, container } = props;
59765
59765
  const context = useDialogContext(PORTAL_NAME, __scopeDialog);
59766
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
59766
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
59767
59767
  };
59768
59768
  DialogPortal.displayName = PORTAL_NAME;
59769
59769
  var OVERLAY_NAME = "DialogOverlay";
@@ -59772,7 +59772,7 @@ var require_dist65 = __commonJS({
59772
59772
  const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
59773
59773
  const { forceMount = portalContext.forceMount, ...overlayProps } = props;
59774
59774
  const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
59775
- return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
59775
+ return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
59776
59776
  }
59777
59777
  );
59778
59778
  DialogOverlay.displayName = OVERLAY_NAME;
@@ -59784,7 +59784,7 @@ var require_dist65 = __commonJS({
59784
59784
  return (
59785
59785
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
59786
59786
  // ie. when `Overlay` and `Content` are siblings
59787
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59787
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59788
59788
  import_react_primitive.Primitive.div,
59789
59789
  {
59790
59790
  "data-state": getState(context.open),
@@ -59802,7 +59802,7 @@ var require_dist65 = __commonJS({
59802
59802
  const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
59803
59803
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
59804
59804
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
59805
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
59805
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
59806
59806
  }
59807
59807
  );
59808
59808
  DialogContent.displayName = CONTENT_NAME;
@@ -59816,7 +59816,7 @@ var require_dist65 = __commonJS({
59816
59816
  if (content)
59817
59817
  return (0, import_aria_hidden.hideOthers)(content);
59818
59818
  }, []);
59819
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59819
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59820
59820
  DialogContentImpl,
59821
59821
  {
59822
59822
  ...props,
@@ -59847,7 +59847,7 @@ var require_dist65 = __commonJS({
59847
59847
  const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
59848
59848
  const hasInteractedOutsideRef = React3.useRef(false);
59849
59849
  const hasPointerDownOutsideRef = React3.useRef(false);
59850
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59850
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59851
59851
  DialogContentImpl,
59852
59852
  {
59853
59853
  ...props,
@@ -59891,8 +59891,8 @@ var require_dist65 = __commonJS({
59891
59891
  const contentRef = React3.useRef(null);
59892
59892
  const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
59893
59893
  (0, import_react_focus_guards.useFocusGuards)();
59894
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
59895
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59894
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
59895
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59896
59896
  import_react_focus_scope.FocusScope,
59897
59897
  {
59898
59898
  asChild: true,
@@ -59900,7 +59900,7 @@ var require_dist65 = __commonJS({
59900
59900
  trapped: trapFocus,
59901
59901
  onMountAutoFocus: onOpenAutoFocus,
59902
59902
  onUnmountAutoFocus: onCloseAutoFocus,
59903
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59903
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59904
59904
  import_react_dismissable_layer.DismissableLayer,
59905
59905
  {
59906
59906
  role: "dialog",
@@ -59915,9 +59915,9 @@ var require_dist65 = __commonJS({
59915
59915
  )
59916
59916
  }
59917
59917
  ),
59918
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
59919
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(TitleWarning, { titleId: context.titleId }),
59920
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
59918
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
59919
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TitleWarning, { titleId: context.titleId }),
59920
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
59921
59921
  ] })
59922
59922
  ] });
59923
59923
  }
@@ -59927,7 +59927,7 @@ var require_dist65 = __commonJS({
59927
59927
  (props, forwardedRef) => {
59928
59928
  const { __scopeDialog, ...titleProps } = props;
59929
59929
  const context = useDialogContext(TITLE_NAME, __scopeDialog);
59930
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
59930
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
59931
59931
  }
59932
59932
  );
59933
59933
  DialogTitle.displayName = TITLE_NAME;
@@ -59936,7 +59936,7 @@ var require_dist65 = __commonJS({
59936
59936
  (props, forwardedRef) => {
59937
59937
  const { __scopeDialog, ...descriptionProps } = props;
59938
59938
  const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
59939
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
59939
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
59940
59940
  }
59941
59941
  );
59942
59942
  DialogDescription.displayName = DESCRIPTION_NAME;
@@ -59945,7 +59945,7 @@ var require_dist65 = __commonJS({
59945
59945
  (props, forwardedRef) => {
59946
59946
  const { __scopeDialog, ...closeProps } = props;
59947
59947
  const context = useDialogContext(CLOSE_NAME, __scopeDialog);
59948
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
59948
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
59949
59949
  import_react_primitive.Primitive.button,
59950
59950
  {
59951
59951
  type: "button",
@@ -70025,22 +70025,22 @@ var require_FaLayerGroup = __commonJS({
70025
70025
  }
70026
70026
  });
70027
70027
 
70028
- // ../../node_modules/@react-icons/all-files/fa/FaPlayCircle.js
70029
- var require_FaPlayCircle = __commonJS({
70030
- "../../node_modules/@react-icons/all-files/fa/FaPlayCircle.js"(exports, module) {
70028
+ // ../../node_modules/@react-icons/all-files/fa/FaImage.js
70029
+ var require_FaImage = __commonJS({
70030
+ "../../node_modules/@react-icons/all-files/fa/FaImage.js"(exports, module) {
70031
70031
  var GenIcon = require_cjs().GenIcon;
70032
- module.exports.FaPlayCircle = function FaPlayCircle2(props) {
70033
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z" } }] })(props);
70032
+ module.exports.FaImage = function FaImage3(props) {
70033
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z" } }] })(props);
70034
70034
  };
70035
70035
  }
70036
70036
  });
70037
70037
 
70038
- // ../../node_modules/@react-icons/all-files/fa/FaImage.js
70039
- var require_FaImage = __commonJS({
70040
- "../../node_modules/@react-icons/all-files/fa/FaImage.js"(exports, module) {
70038
+ // ../../node_modules/@react-icons/all-files/fa/FaPlayCircle.js
70039
+ var require_FaPlayCircle = __commonJS({
70040
+ "../../node_modules/@react-icons/all-files/fa/FaPlayCircle.js"(exports, module) {
70041
70041
  var GenIcon = require_cjs().GenIcon;
70042
- module.exports.FaImage = function FaImage2(props) {
70043
- return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z" } }] })(props);
70042
+ module.exports.FaPlayCircle = function FaPlayCircle2(props) {
70043
+ return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z" } }] })(props);
70044
70044
  };
70045
70045
  }
70046
70046
  });
@@ -92964,9 +92964,94 @@ function assertUnreachable17(_) {
92964
92964
  throw new Error("Didn't expect to get here");
92965
92965
  }
92966
92966
 
92967
+ // build/processor.gate/info.js
92968
+ var import_FaImage = __toESM(require_FaImage());
92969
+
92970
+ // build/processor.gate/inline-view.js
92971
+ var import_jsx_runtime36 = __toESM(require_jsx_runtime());
92972
+ function InlineView13({ state, config, sendCommand }) {
92973
+ function onStatusChanged(selected) {
92974
+ if (selected) {
92975
+ sendCommand({ type: "open" });
92976
+ } else {
92977
+ sendCommand({ type: "close" });
92978
+ }
92979
+ }
92980
+ return (0, import_jsx_runtime36.jsx)("div", { id: `browser-overlay-${config.id}`, children: (0, import_jsx_runtime36.jsxs)("div", { className: "w-64 grid grid-cols-[min-content,1fr] gap-2", children: [(0, import_jsx_runtime36.jsx)("div", { children: state.status == "open" ? "Open" : "Closed" }), (0, import_jsx_runtime36.jsx)("div", { children: (0, import_jsx_runtime36.jsxs)("label", { className: "inline-flex items-center cursor-pointer", children: [(0, import_jsx_runtime36.jsx)("input", { type: "checkbox", checked: state.status == "open", onChange: (e) => onStatusChanged(e.target.checked), className: "sr-only peer" }), (0, import_jsx_runtime36.jsx)("div", { className: "relative w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600" })] }) })] }) });
92981
+ }
92982
+ var inline_view_default13 = InlineView13;
92983
+
92984
+ // build/processor.gate/info.js
92985
+ function info_default27({ defineComponent, All }) {
92986
+ return defineComponent({
92987
+ identifier: "processor.gate",
92988
+ category: "processor",
92989
+ name: "Gate",
92990
+ description: "Can be used to disable/enable parts of a workflow by acting as a gate for all subscribed streams",
92991
+ icon: import_FaImage.FaImage,
92992
+ subscription: {
92993
+ accepts: {
92994
+ type: "dynamic-streams",
92995
+ mode: "any",
92996
+ makeProgram: false,
92997
+ streams: () => {
92998
+ return All.map((m) => ({ media: m }));
92999
+ }
93000
+ },
93001
+ produces: {
93002
+ type: "dynamic-streams",
93003
+ streams: (_, i) => {
93004
+ return i.map((i2) => ({
93005
+ ...i2
93006
+ }));
93007
+ }
93008
+ }
93009
+ },
93010
+ display: (desc) => {
93011
+ return {
93012
+ initalStatus: desc.config.initialStatus
93013
+ };
93014
+ },
93015
+ runtime: {
93016
+ inline: inline_view_default13,
93017
+ initialState: () => ({
93018
+ status: "closed"
93019
+ }),
93020
+ handleEvent: (ev, state) => {
93021
+ const evType = ev.type;
93022
+ switch (evType) {
93023
+ case "status-changed":
93024
+ return { ...state, status: ev.status };
93025
+ default:
93026
+ assertUnreachable18(evType);
93027
+ }
93028
+ }
93029
+ },
93030
+ configForm: {
93031
+ form: {
93032
+ initialStatus: {
93033
+ help: "The initial state of this gate on start-up",
93034
+ hint: {
93035
+ type: "select",
93036
+ optional: true,
93037
+ options: [
93038
+ { value: "closed", display: "Closed" },
93039
+ { value: "open", display: "Open" }
93040
+ ]
93041
+ }
93042
+ },
93043
+ notes: { help: "Notes about this component", hint: { type: "text", optional: true } }
93044
+ }
93045
+ }
93046
+ });
93047
+ }
93048
+ function assertUnreachable18(_) {
93049
+ throw new Error("Didn't expect to get here");
93050
+ }
93051
+
92967
93052
  // build/processor.makeProgram/info.js
92968
93053
  var import_FaPlayCircle = __toESM(require_FaPlayCircle());
92969
- function info_default27({ defineComponent, All, validation: { Z } }) {
93054
+ function info_default28({ defineComponent, All, validation: { Z } }) {
92970
93055
  return defineComponent({
92971
93056
  identifier: "processor.makeProgram",
92972
93057
  category: "processor",
@@ -93083,7 +93168,7 @@ function getStreamKeyMapping(componentId, rows, columns) {
93083
93168
  audioStreamKeys
93084
93169
  };
93085
93170
  }
93086
- function info_default28({ defineComponent, validation: { Z } }) {
93171
+ function info_default29({ defineComponent, validation: { Z } }) {
93087
93172
  return defineComponent({
93088
93173
  identifier: "processor.multiview",
93089
93174
  name: "Multiview",
@@ -93186,7 +93271,7 @@ function info_default28({ defineComponent, validation: { Z } }) {
93186
93271
  var import_config6 = __toESM(require_config());
93187
93272
 
93188
93273
  // build/processor.onscreenGraphic/image-selection.js
93189
- var import_jsx_runtime36 = __toESM(require_jsx_runtime());
93274
+ var import_jsx_runtime37 = __toESM(require_jsx_runtime());
93190
93275
  var import_react7 = __toESM(require_react());
93191
93276
  function GraphicSelection(props) {
93192
93277
  const [loading, setLoading] = (0, import_react7.useState)(true);
@@ -93210,13 +93295,13 @@ function GraphicSelection(props) {
93210
93295
  }, [props.urls?.staticUrl?.toString()]);
93211
93296
  const [graphcs, setGraphics] = (0, import_react7.useState)([]);
93212
93297
  if (loading) {
93213
- return (0, import_jsx_runtime36.jsx)("div", { children: "Loading.." });
93298
+ return (0, import_jsx_runtime37.jsx)("div", { children: "Loading.." });
93214
93299
  }
93215
93300
  if (graphcs.length == 0) {
93216
- return (0, import_jsx_runtime36.jsx)("div", { children: "No graphics loaded" });
93301
+ return (0, import_jsx_runtime37.jsx)("div", { children: "No graphics loaded" });
93217
93302
  }
93218
- return (0, import_jsx_runtime36.jsx)("div", { children: (0, import_jsx_runtime36.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime36.jsx)("option", { value: "", children: "---" }, "empty"), graphcs.map((o, i) => {
93219
- return (0, import_jsx_runtime36.jsx)("option", { value: o, children: o }, i);
93303
+ return (0, import_jsx_runtime37.jsx)("div", { children: (0, import_jsx_runtime37.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime37.jsx)("option", { value: "", children: "---" }, "empty"), graphcs.map((o, i) => {
93304
+ return (0, import_jsx_runtime37.jsx)("option", { value: o, children: o }, i);
93220
93305
  })] }) });
93221
93306
  function myOnChange(e) {
93222
93307
  props.onChanged(e.target.value);
@@ -93225,7 +93310,7 @@ function GraphicSelection(props) {
93225
93310
  var image_selection_default = GraphicSelection;
93226
93311
 
93227
93312
  // build/processor.onscreenGraphic/summary-view.js
93228
- var import_jsx_runtime37 = __toESM(require_jsx_runtime());
93313
+ var import_jsx_runtime38 = __toESM(require_jsx_runtime());
93229
93314
  var import_react8 = __toESM(require_react());
93230
93315
  function SummaryView9({ state, sendCommand, urls }) {
93231
93316
  const [graphic, setGraphic] = (0, import_react8.useState)(state.activeGraphic?.file);
@@ -93362,7 +93447,7 @@ function SummaryView9({ state, sendCommand, urls }) {
93362
93447
  const buttonClass = "mt-2 mb-5 text-white w-full justify-center bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800";
93363
93448
  const deleteButtonClass = "mt-2 text-white w-full justify-center bg-red-600 hover:bg-red-700 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-red-700 dark:hover:bg-red-800 dark:focus:ring-red-900";
93364
93449
  const fileInputClass = "block w-full text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400";
93365
- return (0, import_jsx_runtime37.jsxs)("div", { className: "space-y-3", children: [(0, import_jsx_runtime37.jsx)("h2", { className: "text-xl font-bold text-gray-900 dark:text-white", children: "Controls" }), (0, import_jsx_runtime37.jsxs)("div", { children: [(0, import_jsx_runtime37.jsx)("label", { htmlFor: "select-graphic", className: "block text-gray-900 dark:text-white mb-1", children: "Source" }), (0, import_jsx_runtime37.jsxs)("select", { id: "select-graphic", className: "w-full node-editor-select-input", value: graphic || "", onChange: (e) => setGraphic(e.target.value || void 0), children: [(0, import_jsx_runtime37.jsx)("option", { value: "", children: "---" }), graphics.map((s) => (0, import_jsx_runtime37.jsx)("option", { value: s, children: s }, s))] })] }), graphic && (0, import_jsx_runtime37.jsxs)("div", { children: [(0, import_jsx_runtime37.jsx)("label", { htmlFor: "select-position", className: "block text-gray-900 dark:text-white mb-1", children: "Graphic position" }), (0, import_jsx_runtime37.jsx)(PositionSelector, { initialPosition: position, onChange: setPosition, graphicChanged, ...state })] }), (0, import_jsx_runtime37.jsx)("button", { type: "button", className: `${buttonClass} ${!stateChanged ? "opacity-50 cursor-not-allowed" : ""}`, onClick: () => sendCommand({ type: "change-graphic", file: graphic, position }), disabled: !stateChanged, children: "Commit" }), !showFileInput && !uploadStatus.success && (0, import_jsx_runtime37.jsx)("button", { type: "button", className: buttonClass, onClick: () => setShowFileInput(true), style: { marginBottom: "1rem" }, children: "Upload Graphic" }), showFileInput && (0, import_jsx_runtime37.jsxs)("form", { style: { display: "block", marginBottom: "1rem" }, children: [(0, import_jsx_runtime37.jsx)("input", { type: "file", id: "file", name: "filename", onChange: onFileChange, className: fileInputClass }), showUploadButton && (0, import_jsx_runtime37.jsx)("button", { type: "button", className: buttonClass, onClick: uploadFile, children: "Upload" })] }), (0, import_jsx_runtime37.jsx)("button", { type: "button", className: deleteButtonClass, onClick: () => setShowDeleteDropdown(!showDeleteDropdown), style: { marginBottom: "1rem" }, children: showDeleteDropdown ? "Hide Delete Options" : "Delete Graphics" }), showDeleteDropdown && (0, import_jsx_runtime37.jsxs)("div", { className: "mt-2 p-2 bg-gray-100 dark:bg-gray-800 rounded-lg", children: [(0, import_jsx_runtime37.jsx)("h3", { className: "text-lg font-semibold mb-2 text-gray-900 dark:text-white", children: "Select Graphic to Delete" }), (0, import_jsx_runtime37.jsxs)("select", { className: "w-full mb-2 node-editor-select-input", value: graphicToDelete, onChange: (e) => setGraphicToDelete(e.target.value), children: [(0, import_jsx_runtime37.jsx)("option", { value: "", children: " Select a graphic" }), graphics.map((graphicName) => (0, import_jsx_runtime37.jsx)("option", { value: graphicName, children: graphicName }, graphicName))] }), (0, import_jsx_runtime37.jsx)("button", { onClick: deleteBug, disabled: !graphicToDelete, className: `${deleteButtonClass} ${!graphicToDelete ? "opacity-50 cursor-not-allowed" : ""}`, children: "Delete Selected Graphic" })] }), uploadStatus.message && (0, import_jsx_runtime37.jsx)("div", { className: `mt-2 text-center ${uploadStatus.success ? "text-green-600" : "text-red-600"}`, children: uploadStatus.message })] });
93450
+ return (0, import_jsx_runtime38.jsxs)("div", { className: "space-y-3", children: [(0, import_jsx_runtime38.jsx)("h2", { className: "text-xl font-bold text-gray-900 dark:text-white", children: "Controls" }), (0, import_jsx_runtime38.jsxs)("div", { children: [(0, import_jsx_runtime38.jsx)("label", { htmlFor: "select-graphic", className: "block text-gray-900 dark:text-white mb-1", children: "Source" }), (0, import_jsx_runtime38.jsxs)("select", { id: "select-graphic", className: "w-full node-editor-select-input", value: graphic || "", onChange: (e) => setGraphic(e.target.value || void 0), children: [(0, import_jsx_runtime38.jsx)("option", { value: "", children: "---" }), graphics.map((s) => (0, import_jsx_runtime38.jsx)("option", { value: s, children: s }, s))] })] }), graphic && (0, import_jsx_runtime38.jsxs)("div", { children: [(0, import_jsx_runtime38.jsx)("label", { htmlFor: "select-position", className: "block text-gray-900 dark:text-white mb-1", children: "Graphic position" }), (0, import_jsx_runtime38.jsx)(PositionSelector, { initialPosition: position, onChange: setPosition, graphicChanged, ...state })] }), (0, import_jsx_runtime38.jsx)("button", { type: "button", className: `${buttonClass} ${!stateChanged ? "opacity-50 cursor-not-allowed" : ""}`, onClick: () => sendCommand({ type: "change-graphic", file: graphic, position }), disabled: !stateChanged, children: "Commit" }), !showFileInput && !uploadStatus.success && (0, import_jsx_runtime38.jsx)("button", { type: "button", className: buttonClass, onClick: () => setShowFileInput(true), style: { marginBottom: "1rem" }, children: "Upload Graphic" }), showFileInput && (0, import_jsx_runtime38.jsxs)("form", { style: { display: "block", marginBottom: "1rem" }, children: [(0, import_jsx_runtime38.jsx)("input", { type: "file", id: "file", name: "filename", onChange: onFileChange, className: fileInputClass }), showUploadButton && (0, import_jsx_runtime38.jsx)("button", { type: "button", className: buttonClass, onClick: uploadFile, children: "Upload" })] }), (0, import_jsx_runtime38.jsx)("button", { type: "button", className: deleteButtonClass, onClick: () => setShowDeleteDropdown(!showDeleteDropdown), style: { marginBottom: "1rem" }, children: showDeleteDropdown ? "Hide Delete Options" : "Delete Graphics" }), showDeleteDropdown && (0, import_jsx_runtime38.jsxs)("div", { className: "mt-2 p-2 bg-gray-100 dark:bg-gray-800 rounded-lg", children: [(0, import_jsx_runtime38.jsx)("h3", { className: "text-lg font-semibold mb-2 text-gray-900 dark:text-white", children: "Select Graphic to Delete" }), (0, import_jsx_runtime38.jsxs)("select", { className: "w-full mb-2 node-editor-select-input", value: graphicToDelete, onChange: (e) => setGraphicToDelete(e.target.value), children: [(0, import_jsx_runtime38.jsx)("option", { value: "", children: " Select a graphic" }), graphics.map((graphicName) => (0, import_jsx_runtime38.jsx)("option", { value: graphicName, children: graphicName }, graphicName))] }), (0, import_jsx_runtime38.jsx)("button", { onClick: deleteBug, disabled: !graphicToDelete, className: `${deleteButtonClass} ${!graphicToDelete ? "opacity-50 cursor-not-allowed" : ""}`, children: "Delete Selected Graphic" })] }), uploadStatus.message && (0, import_jsx_runtime38.jsx)("div", { className: `mt-2 text-center ${uploadStatus.success ? "text-green-600" : "text-red-600"}`, children: uploadStatus.message })] });
93366
93451
  }
93367
93452
  function fromLocalPosition(pos) {
93368
93453
  if (pos.type === "named")
@@ -93371,7 +93456,7 @@ function fromLocalPosition(pos) {
93371
93456
  return { type: pos.type, x: pos.x, y: pos.y };
93372
93457
  if (pos.type === "percentage")
93373
93458
  return { type: pos.type, x: pos.x, y: pos.y };
93374
- assertUnreachable18(pos);
93459
+ assertUnreachable19(pos);
93375
93460
  }
93376
93461
  function convertPosition(givenPosition, currentVideo, currentGraphic) {
93377
93462
  if (!givenPosition)
@@ -93389,7 +93474,7 @@ function convertPosition(givenPosition, currentVideo, currentGraphic) {
93389
93474
  } else if (givenPosition.position === "center") {
93390
93475
  xy = { x: 50, y: 50 };
93391
93476
  } else {
93392
- assertUnreachable18(givenPosition.position);
93477
+ assertUnreachable19(givenPosition.position);
93393
93478
  }
93394
93479
  return { ...givenPosition, ...xy, xPct: xy.x, yPct: xy.y };
93395
93480
  }
@@ -93477,7 +93562,7 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
93477
93562
  window.removeEventListener("mouseup", handleMouseUp);
93478
93563
  };
93479
93564
  }, [isDragging]);
93480
- return (0, import_jsx_runtime37.jsxs)("div", { className: "relative w-full max-w-lg mx-auto mt-4 mb-8", children: [(0, import_jsx_runtime37.jsxs)("div", { className: "mb-4 flex items-center gap-2", children: [(0, import_jsx_runtime37.jsx)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: "Position Type:" }), (0, import_jsx_runtime37.jsxs)("select", { value: position.type, onChange: (e) => {
93565
+ return (0, import_jsx_runtime38.jsxs)("div", { className: "relative w-full max-w-lg mx-auto mt-4 mb-8", children: [(0, import_jsx_runtime38.jsxs)("div", { className: "mb-4 flex items-center gap-2", children: [(0, import_jsx_runtime38.jsx)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: "Position Type:" }), (0, import_jsx_runtime38.jsxs)("select", { value: position.type, onChange: (e) => {
93481
93566
  const newType = e.target.value;
93482
93567
  if (newType === "named") {
93483
93568
  setPosition(convertPos({ type: "named", position: "topleft" }));
@@ -93485,12 +93570,12 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
93485
93570
  setPositionUnit("%");
93486
93571
  setPosition({ ...convertPos(position), type: "percentage" });
93487
93572
  }
93488
- }, className: "node-editor-select-input", children: [(0, import_jsx_runtime37.jsx)("option", { value: "coordinate", children: "Custom Position" }), (0, import_jsx_runtime37.jsx)("option", { value: "named", children: "Preset Position" })] })] }), position.type === "named" ? (0, import_jsx_runtime37.jsx)("div", { className: "mb-4", children: (0, import_jsx_runtime37.jsxs)("select", { value: position.position, onChange: (e) => {
93573
+ }, className: "node-editor-select-input", children: [(0, import_jsx_runtime38.jsx)("option", { value: "coordinate", children: "Custom Position" }), (0, import_jsx_runtime38.jsx)("option", { value: "named", children: "Preset Position" })] })] }), position.type === "named" ? (0, import_jsx_runtime38.jsx)("div", { className: "mb-4", children: (0, import_jsx_runtime38.jsxs)("select", { value: position.position, onChange: (e) => {
93489
93574
  setPosition(convertPos({
93490
93575
  type: "named",
93491
93576
  position: e.target.value
93492
93577
  }));
93493
- }, className: "w-full node-editor-select-input", children: [(0, import_jsx_runtime37.jsx)("option", { value: "topleft", children: "Top Left" }), (0, import_jsx_runtime37.jsx)("option", { value: "topright", children: "Top Right" }), (0, import_jsx_runtime37.jsx)("option", { value: "bottomleft", children: "Bottom Left" }), (0, import_jsx_runtime37.jsx)("option", { value: "bottomright", children: "Bottom Right" }), (0, import_jsx_runtime37.jsx)("option", { value: "center", children: "Centered" })] }) }) : (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [(0, import_jsx_runtime37.jsxs)("div", { className: "mb-4 flex items-center gap-2", children: [(0, import_jsx_runtime37.jsx)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: "Position Unit:" }), (0, import_jsx_runtime37.jsxs)("select", { value: positionUnit, onChange: (e) => {
93578
+ }, className: "w-full node-editor-select-input", children: [(0, import_jsx_runtime38.jsx)("option", { value: "topleft", children: "Top Left" }), (0, import_jsx_runtime38.jsx)("option", { value: "topright", children: "Top Right" }), (0, import_jsx_runtime38.jsx)("option", { value: "bottomleft", children: "Bottom Left" }), (0, import_jsx_runtime38.jsx)("option", { value: "bottomright", children: "Bottom Right" }), (0, import_jsx_runtime38.jsx)("option", { value: "center", children: "Centered" })] }) }) : (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [(0, import_jsx_runtime38.jsxs)("div", { className: "mb-4 flex items-center gap-2", children: [(0, import_jsx_runtime38.jsx)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: "Position Unit:" }), (0, import_jsx_runtime38.jsxs)("select", { value: positionUnit, onChange: (e) => {
93494
93579
  setPositionUnit(e.target.value);
93495
93580
  if (e.target.value === "px" && position.type !== "coordinate" && currentVideo && currentGraphic) {
93496
93581
  const { width: videoWidth, height: videoHeight } = currentVideo;
@@ -93515,18 +93600,18 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
93515
93600
  yStr: void 0
93516
93601
  });
93517
93602
  }
93518
- }, className: "node-editor-select-input", children: [(0, import_jsx_runtime37.jsx)("option", { value: "px", children: "Pixels" }), (0, import_jsx_runtime37.jsx)("option", { value: "%", children: "Percentage" })] })] }), (0, import_jsx_runtime37.jsxs)("div", { className: "relative bg-gray-200 dark:bg-gray-700 rounded-lg", style: {
93603
+ }, className: "node-editor-select-input", children: [(0, import_jsx_runtime38.jsx)("option", { value: "px", children: "Pixels" }), (0, import_jsx_runtime38.jsx)("option", { value: "%", children: "Percentage" })] })] }), (0, import_jsx_runtime38.jsxs)("div", { className: "relative bg-gray-200 dark:bg-gray-700 rounded-lg", style: {
93519
93604
  width: "100%",
93520
93605
  userSelect: "none",
93521
93606
  aspectRatio: currentVideo ? `${currentVideo.width} / ${currentVideo.height}` : `3 / 2`
93522
- }, ref: previewAreaRef, children: [(0, import_jsx_runtime37.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-gray-500 dark:text-gray-400", children: [(0, import_jsx_runtime37.jsx)("span", { children: currentVideo ? "Video Preview Area" : "Video Dimensions Unknown" }), " ", currentVideo ? (0, import_jsx_runtime37.jsxs)("span", { children: [currentVideo.width, "x", currentVideo.height, "px"] }) : ""] }), (0, import_jsx_runtime37.jsx)("div", { className: `absolute cursor-move ${currentGraphic && !graphicChanged ? "" : "p-2"} rounded-lg bg-primary-500 bg-opacity-50 hover:bg-opacity-75 transition-colors
93607
+ }, ref: previewAreaRef, children: [(0, import_jsx_runtime38.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center text-gray-500 dark:text-gray-400", children: [(0, import_jsx_runtime38.jsx)("span", { children: currentVideo ? "Video Preview Area" : "Video Dimensions Unknown" }), " ", currentVideo ? (0, import_jsx_runtime38.jsxs)("span", { children: [currentVideo.width, "x", currentVideo.height, "px"] }) : ""] }), (0, import_jsx_runtime38.jsx)("div", { className: `absolute cursor-move ${currentGraphic && !graphicChanged ? "" : "p-2"} rounded-lg bg-primary-500 bg-opacity-50 hover:bg-opacity-75 transition-colors
93523
93608
  ${isDragging ? "bg-opacity-75" : ""}`, style: {
93524
93609
  left: `${position.xPct}%`,
93525
93610
  top: `${position.yPct}%`,
93526
93611
  transform: `translate(-${position.xPct}%, -${position.yPct}%)`,
93527
93612
  aspectRatio: currentGraphic && !graphicChanged ? `${currentGraphic.width} / ${currentGraphic.height}` : `1`,
93528
93613
  width: currentGraphic && currentVideo && !graphicChanged ? currentGraphic.width / currentVideo.width * 100 + "%" : void 0
93529
- }, onMouseDown: handleMouseDown, ref: previewTargetRef, children: (0, import_jsx_runtime37.jsx)("svg", { className: `${currentGraphic && !graphicChanged ? "w-full h-full" : "w-6 h-6"} text-white`, "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: (0, import_jsx_runtime37.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 6v12m-6-6h12m-6-6 1.5 1.5M12 6l-1.5 1.5m1.5 10.5L10.5 16.5M12 18l1.5-1.5M6 12l1.5-1.5M7.5 13.5 6 12m12 0-1.5-1.5M16.5 13.5 18 12" }) }) })] }), (0, import_jsx_runtime37.jsxs)("div", { className: "mt-2 text-sm text-gray-600 dark:text-gray-300 text-center", children: ["Position:", " ", position.type === "percentage" ? `${position.xPct.toFixed(1)}%, ${position.yPct.toFixed(1)}%` : `${Math.round(position.x)}px, ${Math.round(position.y)}px`] }), (0, import_jsx_runtime37.jsxs)("div", { className: "mt-2 flex gap-4", children: [(0, import_jsx_runtime37.jsxs)("div", { children: [(0, import_jsx_runtime37.jsxs)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: ["X Position ", positionUnit] }), (0, import_jsx_runtime37.jsx)("input", { type: "number", step: positionUnit === "%" ? "0.1" : "1", value: position.xStr ?? (positionUnit === "%" ? position.xPct.toFixed(1) : Math.round(position.x)), onChange: (e) => {
93614
+ }, onMouseDown: handleMouseDown, ref: previewTargetRef, children: (0, import_jsx_runtime38.jsx)("svg", { className: `${currentGraphic && !graphicChanged ? "w-full h-full" : "w-6 h-6"} text-white`, "aria-hidden": "true", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: (0, import_jsx_runtime38.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 6v12m-6-6h12m-6-6 1.5 1.5M12 6l-1.5 1.5m1.5 10.5L10.5 16.5M12 18l1.5-1.5M6 12l1.5-1.5M7.5 13.5 6 12m12 0-1.5-1.5M16.5 13.5 18 12" }) }) })] }), (0, import_jsx_runtime38.jsxs)("div", { className: "mt-2 text-sm text-gray-600 dark:text-gray-300 text-center", children: ["Position:", " ", position.type === "percentage" ? `${position.xPct.toFixed(1)}%, ${position.yPct.toFixed(1)}%` : `${Math.round(position.x)}px, ${Math.round(position.y)}px`] }), (0, import_jsx_runtime38.jsxs)("div", { className: "mt-2 flex gap-4", children: [(0, import_jsx_runtime38.jsxs)("div", { children: [(0, import_jsx_runtime38.jsxs)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: ["X Position ", positionUnit] }), (0, import_jsx_runtime38.jsx)("input", { type: "number", step: positionUnit === "%" ? "0.1" : "1", value: position.xStr ?? (positionUnit === "%" ? position.xPct.toFixed(1) : Math.round(position.x)), onChange: (e) => {
93530
93615
  const newX = Number(e.target.value);
93531
93616
  setPosition(convertPos({
93532
93617
  type: positionUnit === "%" ? "percentage" : "coordinate",
@@ -93535,7 +93620,7 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
93535
93620
  y: position.y,
93536
93621
  yStr: position.yStr
93537
93622
  }));
93538
- }, className: "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm dark:bg-gray-700 dark:border-gray-600" })] }), (0, import_jsx_runtime37.jsxs)("div", { children: [(0, import_jsx_runtime37.jsxs)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: ["Y Position ", positionUnit] }), (0, import_jsx_runtime37.jsx)("input", { type: "number", step: positionUnit === "%" ? "0.1" : "1", value: position.yStr ?? (positionUnit === "%" ? position.yPct.toFixed(1) : Math.round(position.y)), onChange: (e) => {
93623
+ }, className: "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500 sm:text-sm dark:bg-gray-700 dark:border-gray-600" })] }), (0, import_jsx_runtime38.jsxs)("div", { children: [(0, import_jsx_runtime38.jsxs)("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: ["Y Position ", positionUnit] }), (0, import_jsx_runtime38.jsx)("input", { type: "number", step: positionUnit === "%" ? "0.1" : "1", value: position.yStr ?? (positionUnit === "%" ? position.yPct.toFixed(1) : Math.round(position.y)), onChange: (e) => {
93539
93624
  const newY = Number(e.target.value);
93540
93625
  setPosition(convertPos({
93541
93626
  type: positionUnit === "%" ? "percentage" : "coordinate",
@@ -93549,20 +93634,20 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
93549
93634
  function clamp2(min2, num, max2) {
93550
93635
  return num < min2 ? min2 : num > max2 ? max2 : num;
93551
93636
  }
93552
- function assertUnreachable18(_) {
93637
+ function assertUnreachable19(_) {
93553
93638
  throw new Error("Didn't expect to get here");
93554
93639
  }
93555
93640
  var summary_view_default9 = SummaryView9;
93556
93641
 
93557
93642
  // build/processor.onscreenGraphic/info.js
93558
- var import_FaImage = __toESM(require_FaImage());
93559
- function info_default29({ defineComponent }) {
93643
+ var import_FaImage2 = __toESM(require_FaImage());
93644
+ function info_default30({ defineComponent }) {
93560
93645
  return defineComponent({
93561
93646
  identifier: "processor.onscreenGraphic",
93562
93647
  category: "processor",
93563
93648
  name: "Onscreen Graphic",
93564
93649
  description: "Overlay graphics onto a video",
93565
- icon: import_FaImage.FaImage,
93650
+ icon: import_FaImage2.FaImage,
93566
93651
  subscription: {
93567
93652
  // Only accept a single video stream
93568
93653
  accepts: {
@@ -93595,7 +93680,7 @@ function info_default29({ defineComponent }) {
93595
93680
  case "graphic-loaded":
93596
93681
  return { ...state, currentGraphic: ev.currentGraphic };
93597
93682
  default:
93598
- assertUnreachable19(evType);
93683
+ assertUnreachable20(evType);
93599
93684
  }
93600
93685
  }
93601
93686
  },
@@ -93631,12 +93716,12 @@ function info_default29({ defineComponent }) {
93631
93716
  }
93632
93717
  });
93633
93718
  }
93634
- function assertUnreachable19(_) {
93719
+ function assertUnreachable20(_) {
93635
93720
  throw new Error("Didn't expect to get here");
93636
93721
  }
93637
93722
 
93638
93723
  // build/processor.smartSingleMediaSwitch/source-selection.js
93639
- var import_jsx_runtime38 = __toESM(require_jsx_runtime());
93724
+ var import_jsx_runtime39 = __toESM(require_jsx_runtime());
93640
93725
  var import_react9 = __toESM(require_react());
93641
93726
  function OrderInput(props) {
93642
93727
  (0, import_react9.useEffect)(() => {
@@ -93644,10 +93729,10 @@ function OrderInput(props) {
93644
93729
  }, [props.defaultValue]);
93645
93730
  const [value, setValue] = (0, import_react9.useState)(props.defaultValue ?? []);
93646
93731
  if (value.length == 0) {
93647
- return (0, import_jsx_runtime38.jsx)("p", { className: "node-editor-helper-text", children: "Sources will appear here when subscriptions have been added to this node" });
93732
+ return (0, import_jsx_runtime39.jsx)("p", { className: "node-editor-helper-text", children: "Sources will appear here when subscriptions have been added to this node" });
93648
93733
  } else {
93649
- return (0, import_jsx_runtime38.jsx)("div", { id: props.id, children: (0, import_jsx_runtime38.jsx)("ul", { children: value.map((v, ix) => {
93650
- return (0, import_jsx_runtime38.jsxs)("li", { className: "flex", children: [(0, import_jsx_runtime38.jsx)("span", { className: "node-editor-label flex-grow", children: v.displayName }), ix == 0 ? (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, {}) : (0, import_jsx_runtime38.jsx)("svg", { onClick: moveUp(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime38.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 6.75L12 3m0 0l3.75 3.75M12 3v18" }) }), ix == value.length - 1 ? (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, {}) : (0, import_jsx_runtime38.jsx)("svg", { onClick: moveDown(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime38.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 17.25L12 21m0 0l-3.75-3.75M12 21V3" }) })] }, ix);
93734
+ return (0, import_jsx_runtime39.jsx)("div", { id: props.id, children: (0, import_jsx_runtime39.jsx)("ul", { children: value.map((v, ix) => {
93735
+ return (0, import_jsx_runtime39.jsxs)("li", { className: "flex", children: [(0, import_jsx_runtime39.jsx)("span", { className: "node-editor-label flex-grow", children: v.displayName }), ix == 0 ? (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, {}) : (0, import_jsx_runtime39.jsx)("svg", { onClick: moveUp(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime39.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 6.75L12 3m0 0l3.75 3.75M12 3v18" }) }), ix == value.length - 1 ? (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, {}) : (0, import_jsx_runtime39.jsx)("svg", { onClick: moveDown(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime39.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 17.25L12 21m0 0l-3.75-3.75M12 21V3" }) })] }, ix);
93651
93736
  }) }) });
93652
93737
  }
93653
93738
  function moveUp(ix) {
@@ -93672,18 +93757,18 @@ function OrderInput(props) {
93672
93757
  var source_selection_default = OrderInput;
93673
93758
 
93674
93759
  // build/processor.smartSingleMediaSwitch/inline-view.js
93675
- var import_jsx_runtime39 = __toESM(require_jsx_runtime());
93760
+ var import_jsx_runtime40 = __toESM(require_jsx_runtime());
93676
93761
  var activeClasses = "active text-green-500 dark:text-green-300";
93677
93762
  var availableClasses = "available text-green-500 dark:text-green-300";
93678
93763
  var inactiveClasses = "inactive text-orange-500 dark:text-orange-300";
93679
- function InlineView13({ state, config }) {
93680
- return (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [(0, import_jsx_runtime39.jsx)("h5", { children: "Sources" }), (0, import_jsx_runtime39.jsxs)("ul", { children: [config.sources.map((s, i) => state.activeSource == i ? (0, import_jsx_runtime39.jsxs)("li", { className: activeClasses, children: [s.displayName, " <--"] }, i) : state.availableSources.includes(i) ? (0, import_jsx_runtime39.jsxs)("li", { className: availableClasses, children: [s.displayName, " (available)"] }, i) : (0, import_jsx_runtime39.jsxs)("li", { className: inactiveClasses, children: [s.displayName, " (inactive)"] }, i)), (0, import_jsx_runtime39.jsx)("li", { className: state.activeSource < 0 ? activeClasses : availableClasses, children: "fallback" }, "fallback")] })] });
93764
+ function InlineView14({ state, config }) {
93765
+ return (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [(0, import_jsx_runtime40.jsx)("h5", { children: "Sources" }), (0, import_jsx_runtime40.jsxs)("ul", { children: [config.sources.map((s, i) => state.activeSource == i ? (0, import_jsx_runtime40.jsxs)("li", { className: activeClasses, children: [s.displayName, " <--"] }, i) : state.availableSources.includes(i) ? (0, import_jsx_runtime40.jsxs)("li", { className: availableClasses, children: [s.displayName, " (available)"] }, i) : (0, import_jsx_runtime40.jsxs)("li", { className: inactiveClasses, children: [s.displayName, " (inactive)"] }, i)), (0, import_jsx_runtime40.jsx)("li", { className: state.activeSource < 0 ? activeClasses : availableClasses, children: "fallback" }, "fallback")] })] });
93681
93766
  }
93682
- var inline_view_default13 = InlineView13;
93767
+ var inline_view_default14 = InlineView14;
93683
93768
 
93684
93769
  // build/processor.smartSingleMediaSwitch/info.js
93685
93770
  var import_FaSlidersH = __toESM(require_FaSlidersH());
93686
- function info_default30({ defineComponent, All, common: { Resolutions, FrameRates }, streamMatchesFilter }) {
93771
+ function info_default31({ defineComponent, All, common: { Resolutions, FrameRates }, streamMatchesFilter }) {
93687
93772
  function patchConfigFromSubscription(cfg, sub) {
93688
93773
  const potentiallyNewSources = sub.expectedStreams;
93689
93774
  potentiallyNewSources.forEach((s) => {
@@ -93768,12 +93853,12 @@ function info_default30({ defineComponent, All, common: { Resolutions, FrameRate
93768
93853
  state.availableSources.splice(state.availableSources.indexOf(ev.sourceIndex), 1);
93769
93854
  return { ...state };
93770
93855
  default:
93771
- assertUnreachable20(evType);
93856
+ assertUnreachable21(evType);
93772
93857
  }
93773
93858
  },
93774
- inline: inline_view_default13,
93775
- summary: inline_view_default13,
93776
- fullscreen: inline_view_default13
93859
+ inline: inline_view_default14,
93860
+ summary: inline_view_default14,
93861
+ fullscreen: inline_view_default14
93777
93862
  },
93778
93863
  configForm: {
93779
93864
  form: {
@@ -93820,12 +93905,12 @@ function info_default30({ defineComponent, All, common: { Resolutions, FrameRate
93820
93905
  }
93821
93906
  });
93822
93907
  }
93823
- function assertUnreachable20(_) {
93908
+ function assertUnreachable21(_) {
93824
93909
  throw new Error("Didn't expect to get here");
93825
93910
  }
93826
93911
 
93827
93912
  // build/processor.smartSourceSwitch/source-selection.js
93828
- var import_jsx_runtime40 = __toESM(require_jsx_runtime());
93913
+ var import_jsx_runtime41 = __toESM(require_jsx_runtime());
93829
93914
  var import_react10 = __toESM(require_react());
93830
93915
  function OrderInput2(props) {
93831
93916
  (0, import_react10.useEffect)(() => {
@@ -93833,10 +93918,10 @@ function OrderInput2(props) {
93833
93918
  }, [props.defaultValue]);
93834
93919
  const [value, setValue] = (0, import_react10.useState)(props.defaultValue ?? []);
93835
93920
  if (value.length == 0) {
93836
- return (0, import_jsx_runtime40.jsx)("p", { className: "node-editor-helper-text", children: "Sources will appear here when subscriptions have been added to this node" });
93921
+ return (0, import_jsx_runtime41.jsx)("p", { className: "node-editor-helper-text", children: "Sources will appear here when subscriptions have been added to this node" });
93837
93922
  } else {
93838
- return (0, import_jsx_runtime40.jsx)("div", { id: props.id, children: (0, import_jsx_runtime40.jsx)("ul", { children: value.map((v, ix) => {
93839
- return (0, import_jsx_runtime40.jsxs)("li", { className: "flex", children: [(0, import_jsx_runtime40.jsx)("span", { className: "node-editor-label flex-grow", children: v }), ix == 0 ? (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, {}) : (0, import_jsx_runtime40.jsx)("svg", { onClick: moveUp(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 6.75L12 3m0 0l3.75 3.75M12 3v18" }) }), ix == value.length - 1 ? (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, {}) : (0, import_jsx_runtime40.jsx)("svg", { onClick: moveDown(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 17.25L12 21m0 0l-3.75-3.75M12 21V3" }) })] }, v);
93923
+ return (0, import_jsx_runtime41.jsx)("div", { id: props.id, children: (0, import_jsx_runtime41.jsx)("ul", { children: value.map((v, ix) => {
93924
+ return (0, import_jsx_runtime41.jsxs)("li", { className: "flex", children: [(0, import_jsx_runtime41.jsx)("span", { className: "node-editor-label flex-grow", children: v }), ix == 0 ? (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, {}) : (0, import_jsx_runtime41.jsx)("svg", { onClick: moveUp(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 6.75L12 3m0 0l3.75 3.75M12 3v18" }) }), ix == value.length - 1 ? (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, {}) : (0, import_jsx_runtime41.jsx)("svg", { onClick: moveDown(ix), xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, className: "w-4 h-6 shrink cursor-pointer stroke-gray-700 dark:stroke-gray-50", children: (0, import_jsx_runtime41.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 17.25L12 21m0 0l-3.75-3.75M12 21V3" }) })] }, v);
93840
93925
  }) }) });
93841
93926
  }
93842
93927
  function moveUp(ix) {
@@ -93861,18 +93946,18 @@ function OrderInput2(props) {
93861
93946
  var source_selection_default2 = OrderInput2;
93862
93947
 
93863
93948
  // build/processor.smartSourceSwitch/inline-view.js
93864
- var import_jsx_runtime41 = __toESM(require_jsx_runtime());
93949
+ var import_jsx_runtime42 = __toESM(require_jsx_runtime());
93865
93950
  var activeClasses2 = "active text-green-500 dark:text-green-300";
93866
93951
  var availableClasses2 = "available text-green-500 dark:text-green-300";
93867
93952
  var inactiveClasses2 = "inactive text-orange-500 dark:text-orange-300";
93868
- function InlineView14({ state, config }) {
93869
- return (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [(0, import_jsx_runtime41.jsx)("h5", { children: "Sources" }), (0, import_jsx_runtime41.jsxs)("ul", { children: [config.sources.map((s, i) => state.activeSource == s ? (0, import_jsx_runtime41.jsxs)("li", { className: activeClasses2, children: [s, " <--"] }, i) : state.availableSources.includes(s) ? (0, import_jsx_runtime41.jsxs)("li", { className: availableClasses2, children: [s, " (available)"] }, i) : (0, import_jsx_runtime41.jsxs)("li", { className: inactiveClasses2, children: [s, " (inactive)"] }, i)), (0, import_jsx_runtime41.jsx)("li", { className: state.activeSource == "fallback" ? activeClasses2 : availableClasses2, children: "fallback" }, "fallback")] })] });
93953
+ function InlineView15({ state, config }) {
93954
+ return (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [(0, import_jsx_runtime42.jsx)("h5", { children: "Sources" }), (0, import_jsx_runtime42.jsxs)("ul", { children: [config.sources.map((s, i) => state.activeSource == s ? (0, import_jsx_runtime42.jsxs)("li", { className: activeClasses2, children: [s, " <--"] }, i) : state.availableSources.includes(s) ? (0, import_jsx_runtime42.jsxs)("li", { className: availableClasses2, children: [s, " (available)"] }, i) : (0, import_jsx_runtime42.jsxs)("li", { className: inactiveClasses2, children: [s, " (inactive)"] }, i)), (0, import_jsx_runtime42.jsx)("li", { className: state.activeSource == "fallback" ? activeClasses2 : availableClasses2, children: "fallback" }, "fallback")] })] });
93870
93955
  }
93871
- var inline_view_default14 = InlineView14;
93956
+ var inline_view_default15 = InlineView15;
93872
93957
 
93873
93958
  // build/processor.smartSourceSwitch/info.js
93874
93959
  var import_FaSlidersH2 = __toESM(require_FaSlidersH());
93875
- function info_default31({ defineComponent, Av, common: { Resolutions, FrameRates } }) {
93960
+ function info_default32({ defineComponent, Av, common: { Resolutions, FrameRates } }) {
93876
93961
  function patchConfigFromSubscription(cfg, sub) {
93877
93962
  const potentiallyNewSources = sub.expectedStreams.map((s) => s.sourceName).filter((s) => !!s);
93878
93963
  potentiallyNewSources.forEach((s) => {
@@ -93969,12 +94054,12 @@ function info_default31({ defineComponent, Av, common: { Resolutions, FrameRates
93969
94054
  state.availableSources.splice(state.availableSources.indexOf(ev.source), 1);
93970
94055
  return { ...state };
93971
94056
  default:
93972
- assertUnreachable21(evType);
94057
+ assertUnreachable22(evType);
93973
94058
  }
93974
94059
  },
93975
- inline: inline_view_default14,
93976
- summary: inline_view_default14,
93977
- fullscreen: inline_view_default14
94060
+ inline: inline_view_default15,
94061
+ summary: inline_view_default15,
94062
+ fullscreen: inline_view_default15
93978
94063
  },
93979
94064
  configForm: {
93980
94065
  form: {
@@ -94021,13 +94106,13 @@ function info_default31({ defineComponent, Av, common: { Resolutions, FrameRates
94021
94106
  }
94022
94107
  });
94023
94108
  }
94024
- function assertUnreachable21(_) {
94109
+ function assertUnreachable22(_) {
94025
94110
  throw new Error("Didn't expect to get here");
94026
94111
  }
94027
94112
 
94028
94113
  // build/processor.streamKeyOverride/info.js
94029
94114
  var import_FaKey = __toESM(require_FaKey());
94030
- function info_default32({ defineComponent, All, validation: { Z } }) {
94115
+ function info_default33({ defineComponent, All, validation: { Z } }) {
94031
94116
  return defineComponent({
94032
94117
  identifier: "processor.streamKeyOverride",
94033
94118
  category: "processor",
@@ -94121,7 +94206,7 @@ function info_default32({ defineComponent, All, validation: { Z } }) {
94121
94206
 
94122
94207
  // build/processor.videoDecoder/info.js
94123
94208
  var import_FaFileVideo = __toESM(require_FaFileVideo());
94124
- function info_default33({ defineComponent }) {
94209
+ function info_default34({ defineComponent }) {
94125
94210
  return defineComponent({
94126
94211
  identifier: "processor.videoDecoder",
94127
94212
  category: "processor",
@@ -94168,7 +94253,7 @@ function info_default33({ defineComponent }) {
94168
94253
  }
94169
94254
 
94170
94255
  // build/util.stats.latency/inline-view.js
94171
- var import_jsx_runtime42 = __toESM(require_jsx_runtime());
94256
+ var import_jsx_runtime43 = __toESM(require_jsx_runtime());
94172
94257
  var import_react11 = __toESM(require_react());
94173
94258
 
94174
94259
  // ../../node_modules/chart.js/auto/auto.js
@@ -94176,7 +94261,7 @@ Chart.register(...registerables);
94176
94261
  var auto_default = Chart;
94177
94262
 
94178
94263
  // build/util.stats.latency/inline-view.js
94179
- function InlineView15({ state, config: _2 }) {
94264
+ function InlineView16({ state, config: _2 }) {
94180
94265
  const chartContainer = (0, import_react11.useRef)(null);
94181
94266
  const [chartControl, setChartControl] = (0, import_react11.useState)(void 0);
94182
94267
  function makeDataSet(key, color2, values) {
@@ -94238,19 +94323,19 @@ function InlineView15({ state, config: _2 }) {
94238
94323
  return;
94239
94324
  chartControl.data = makeData(state);
94240
94325
  }, [state]);
94241
- return (0, import_jsx_runtime42.jsx)("div", { className: "bg-gray-50 dark:bg-gray-700 rounded", style: { width: "360px", height: "200px", padding: "10px" }, children: (0, import_jsx_runtime42.jsx)("canvas", { className: "bg-gray-50 dark:bg-gray-700 rounded", ref: chartContainer }) });
94326
+ return (0, import_jsx_runtime43.jsx)("div", { className: "bg-gray-50 dark:bg-gray-700 rounded", style: { width: "360px", height: "200px", padding: "10px" }, children: (0, import_jsx_runtime43.jsx)("canvas", { className: "bg-gray-50 dark:bg-gray-700 rounded", ref: chartContainer }) });
94242
94327
  }
94243
- var inline_view_default15 = InlineView15;
94328
+ var inline_view_default16 = InlineView16;
94244
94329
 
94245
94330
  // build/util.stats.latency/source-node-selection.js
94246
- var import_jsx_runtime43 = __toESM(require_jsx_runtime());
94331
+ var import_jsx_runtime44 = __toESM(require_jsx_runtime());
94247
94332
  function SourceNodeSelection(props) {
94248
- return (0, import_jsx_runtime43.jsx)("div", { children: (0, import_jsx_runtime43.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime43.jsx)("option", { value: "", children: "---" }, "empty"), Object.values(props.latestDocument.components).map((o, i) => {
94333
+ return (0, import_jsx_runtime44.jsx)("div", { children: (0, import_jsx_runtime44.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime44.jsx)("option", { value: "", children: "---" }, "empty"), Object.values(props.latestDocument.components).map((o, i) => {
94249
94334
  if (o.id == props.id)
94250
- return (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, {});
94335
+ return (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, {});
94251
94336
  if (o.info.category === "output")
94252
94337
  return;
94253
- return (0, import_jsx_runtime43.jsx)("option", { value: o.id, children: o.config.displayName }, i);
94338
+ return (0, import_jsx_runtime44.jsx)("option", { value: o.id, children: o.config.displayName }, i);
94254
94339
  })] }) });
94255
94340
  function myOnChange(e) {
94256
94341
  props.onChanged(e.target.value);
@@ -94260,7 +94345,7 @@ var source_node_selection_default = SourceNodeSelection;
94260
94345
 
94261
94346
  // build/util.stats.latency/info.js
94262
94347
  var import_FaClock = __toESM(require_FaClock());
94263
- function info_default34(R) {
94348
+ function info_default35(R) {
94264
94349
  const { defineComponent } = R;
94265
94350
  return defineComponent({
94266
94351
  identifier: "util.stats.latency",
@@ -94290,11 +94375,11 @@ function info_default34(R) {
94290
94375
  break;
94291
94376
  }
94292
94377
  default:
94293
- assertUnreachable22(evType);
94378
+ assertUnreachable23(evType);
94294
94379
  }
94295
94380
  return { ...state };
94296
94381
  },
94297
- inline: inline_view_default15
94382
+ inline: inline_view_default16
94298
94383
  },
94299
94384
  configForm: {
94300
94385
  form: {
@@ -94345,7 +94430,7 @@ function info_default34(R) {
94345
94430
  }
94346
94431
  });
94347
94432
  }
94348
- function assertUnreachable22(_) {
94433
+ function assertUnreachable23(_) {
94349
94434
  throw new Error("Didn't expect to get here");
94350
94435
  }
94351
94436
 
@@ -94397,6 +94482,7 @@ AllComponents.push((r) => info_default31(r));
94397
94482
  AllComponents.push((r) => info_default32(r));
94398
94483
  AllComponents.push((r) => info_default33(r));
94399
94484
  AllComponents.push((r) => info_default34(r));
94485
+ AllComponents.push((r) => info_default35(r));
94400
94486
  export {
94401
94487
  getNodeInfo as default
94402
94488
  };