@norskvideo/norsk-studio-built-ins 1.27.0-2025-07-08-02bba8fe → 1.27.0-2025-07-09-f9b24945
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 +441 -279
- package/client/style.css +38 -0
- package/lib/input.rtmp/types.yaml +2 -0
- package/lib/input.silence/types.yaml +2 -0
- package/lib/input.srt-caller/types.yaml +2 -0
- package/lib/input.srt-listener/types.yaml +2 -0
- package/lib/input.udp-ts/types.yaml +2 -0
- package/lib/input.videoTestCard/types.yaml +2 -0
- package/lib/input.whip/types.yaml +2 -0
- package/lib/output.autoCmaf/fullscreen.js +46 -1
- package/lib/output.autoCmaf/fullscreen.js.map +1 -1
- package/lib/output.autoCmaf/inline-view.d.ts +3 -2
- package/lib/output.autoCmaf/inline-view.js +72 -2
- package/lib/output.autoCmaf/inline-view.js.map +1 -1
- package/lib/output.autoCmaf/runtime.js +8 -6
- package/lib/output.autoCmaf/runtime.js.map +1 -1
- package/lib/output.autoCmaf/types.d.ts +1 -0
- package/lib/output.autoCmaf/types.yaml +3 -0
- package/lib/output.preview/inline-view.js +1 -1
- package/lib/output.preview/inline-view.js.map +1 -1
- package/lib/output.statistics/types.yaml +2 -0
- package/lib/processor.audioEncoder/types.yaml +2 -0
- package/lib/processor.browserOverlay/info.js +5 -3
- package/lib/processor.browserOverlay/info.js.map +1 -1
- package/lib/processor.browserOverlay/runtime.d.ts +2 -1
- package/lib/processor.browserOverlay/runtime.js +16 -2
- package/lib/processor.browserOverlay/runtime.js.map +1 -1
- package/lib/processor.fixedLadder/types.yaml +2 -0
- package/lib/processor.smartSingleMediaSwitch/types.yaml +2 -0
- package/lib/processor.smartSourceSwitch/form-views.d.ts +6 -0
- package/lib/processor.smartSourceSwitch/form-views.js +11 -0
- package/lib/processor.smartSourceSwitch/form-views.js.map +1 -0
- package/lib/processor.smartSourceSwitch/info.d.ts +6 -0
- package/lib/processor.smartSourceSwitch/info.js +30 -0
- package/lib/processor.smartSourceSwitch/info.js.map +1 -1
- package/lib/processor.smartSourceSwitch/inline-view.js +9 -8
- package/lib/processor.smartSourceSwitch/inline-view.js.map +1 -1
- package/lib/processor.smartSourceSwitch/runtime.d.ts +4 -1
- package/lib/processor.smartSourceSwitch/runtime.js +56 -27
- package/lib/processor.smartSourceSwitch/runtime.js.map +1 -1
- package/lib/processor.smartSourceSwitch/types.d.ts +19 -0
- package/lib/processor.smartSourceSwitch/types.source.yaml +32 -0
- package/lib/processor.smartSourceSwitch/types.yaml +43 -8
- package/lib/processor.videoDecoder/info.js +4 -2
- package/lib/processor.videoDecoder/info.js.map +1 -1
- package/lib/processor.zoomTo/info.js +4 -2
- package/lib/processor.zoomTo/info.js.map +1 -1
- package/lib/processor.zoomTo/runtime.d.ts +2 -2
- package/lib/processor.zoomTo/runtime.js +22 -6
- package/lib/processor.zoomTo/runtime.js.map +1 -1
- package/lib/test/smart-source-switch.js +117 -2
- package/lib/test/smart-source-switch.js.map +1 -1
- package/package.json +5 -5
- package/lib/output.autoCmaf/summary.d.ts +0 -6
- package/lib/output.autoCmaf/summary.js +0 -57
- package/lib/output.autoCmaf/summary.js.map +0 -1
package/client/info.js
CHANGED
@@ -47149,13 +47149,13 @@ var require_dist3 = __commonJS({
|
|
47149
47149
|
});
|
47150
47150
|
module.exports = __toCommonJS2(src_exports);
|
47151
47151
|
var React3 = __toESM2(require_react());
|
47152
|
-
var
|
47152
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47153
47153
|
function createContext2(rootComponentName, defaultContext) {
|
47154
47154
|
const Context = React3.createContext(defaultContext);
|
47155
47155
|
const Provider = (props) => {
|
47156
47156
|
const { children, ...context } = props;
|
47157
47157
|
const value = React3.useMemo(() => context, Object.values(context));
|
47158
|
-
return /* @__PURE__ */ (0,
|
47158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
47159
47159
|
};
|
47160
47160
|
Provider.displayName = rootComponentName + "Provider";
|
47161
47161
|
function useContext2(consumerName) {
|
@@ -47178,7 +47178,7 @@ var require_dist3 = __commonJS({
|
|
47178
47178
|
const { scope, children, ...context } = props;
|
47179
47179
|
const Context = scope?.[scopeName]?.[index3] || BaseContext;
|
47180
47180
|
const value = React3.useMemo(() => context, Object.values(context));
|
47181
|
-
return /* @__PURE__ */ (0,
|
47181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
47182
47182
|
};
|
47183
47183
|
Provider.displayName = rootComponentName + "Provider";
|
47184
47184
|
function useContext2(consumerName, scope) {
|
@@ -47346,7 +47346,7 @@ var require_dist5 = __commonJS({
|
|
47346
47346
|
module.exports = __toCommonJS2(src_exports);
|
47347
47347
|
var React3 = __toESM2(require_react());
|
47348
47348
|
var import_react_compose_refs = require_dist4();
|
47349
|
-
var
|
47349
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47350
47350
|
var Slot = React3.forwardRef((props, forwardedRef) => {
|
47351
47351
|
const { children, ...slotProps } = props;
|
47352
47352
|
const childrenArray = React3.Children.toArray(children);
|
@@ -47362,9 +47362,9 @@ var require_dist5 = __commonJS({
|
|
47362
47362
|
return child;
|
47363
47363
|
}
|
47364
47364
|
});
|
47365
|
-
return /* @__PURE__ */ (0,
|
47365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
|
47366
47366
|
}
|
47367
|
-
return /* @__PURE__ */ (0,
|
47367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
47368
47368
|
});
|
47369
47369
|
Slot.displayName = "Slot";
|
47370
47370
|
var SlotClone = React3.forwardRef((props, forwardedRef) => {
|
@@ -47381,7 +47381,7 @@ var require_dist5 = __commonJS({
|
|
47381
47381
|
});
|
47382
47382
|
SlotClone.displayName = "SlotClone";
|
47383
47383
|
var Slottable = ({ children }) => {
|
47384
|
-
return /* @__PURE__ */ (0,
|
47384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children });
|
47385
47385
|
};
|
47386
47386
|
function isSlottable(child) {
|
47387
47387
|
return React3.isValidElement(child) && child.type === Slottable;
|
@@ -47463,11 +47463,11 @@ var require_dist6 = __commonJS({
|
|
47463
47463
|
createCollection: () => createCollection
|
47464
47464
|
});
|
47465
47465
|
module.exports = __toCommonJS2(src_exports);
|
47466
|
-
var
|
47466
|
+
var import_react18 = __toESM2(require_react());
|
47467
47467
|
var import_react_context = require_dist3();
|
47468
47468
|
var import_react_compose_refs = require_dist4();
|
47469
47469
|
var import_react_slot = require_dist5();
|
47470
|
-
var
|
47470
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47471
47471
|
function createCollection(name) {
|
47472
47472
|
const PROVIDER_NAME = name + "CollectionProvider";
|
47473
47473
|
const [createCollectionContext, createCollectionScope] = (0, import_react_context.createContextScope)(PROVIDER_NAME);
|
@@ -47477,40 +47477,40 @@ var require_dist6 = __commonJS({
|
|
47477
47477
|
);
|
47478
47478
|
const CollectionProvider = (props) => {
|
47479
47479
|
const { scope, children } = props;
|
47480
|
-
const ref =
|
47481
|
-
const itemMap =
|
47482
|
-
return /* @__PURE__ */ (0,
|
47480
|
+
const ref = import_react18.default.useRef(null);
|
47481
|
+
const itemMap = import_react18.default.useRef(/* @__PURE__ */ new Map()).current;
|
47482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
47483
47483
|
};
|
47484
47484
|
CollectionProvider.displayName = PROVIDER_NAME;
|
47485
47485
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
47486
|
-
const CollectionSlot =
|
47486
|
+
const CollectionSlot = import_react18.default.forwardRef(
|
47487
47487
|
(props, forwardedRef) => {
|
47488
47488
|
const { scope, children } = props;
|
47489
47489
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
47490
47490
|
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
|
47491
|
-
return /* @__PURE__ */ (0,
|
47491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_slot.Slot, { ref: composedRefs, children });
|
47492
47492
|
}
|
47493
47493
|
);
|
47494
47494
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
47495
47495
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
47496
47496
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
47497
|
-
const CollectionItemSlot =
|
47497
|
+
const CollectionItemSlot = import_react18.default.forwardRef(
|
47498
47498
|
(props, forwardedRef) => {
|
47499
47499
|
const { scope, children, ...itemData } = props;
|
47500
|
-
const ref =
|
47500
|
+
const ref = import_react18.default.useRef(null);
|
47501
47501
|
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, ref);
|
47502
47502
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
47503
|
-
|
47503
|
+
import_react18.default.useEffect(() => {
|
47504
47504
|
context.itemMap.set(ref, { ref, ...itemData });
|
47505
47505
|
return () => void context.itemMap.delete(ref);
|
47506
47506
|
});
|
47507
|
-
return /* @__PURE__ */ (0,
|
47507
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_slot.Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
47508
47508
|
}
|
47509
47509
|
);
|
47510
47510
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
47511
47511
|
function useCollection(scope) {
|
47512
47512
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
47513
|
-
const getItems =
|
47513
|
+
const getItems = import_react18.default.useCallback(() => {
|
47514
47514
|
const collectionNode = context.collectionRef.current;
|
47515
47515
|
if (!collectionNode)
|
47516
47516
|
return [];
|
@@ -47571,11 +47571,11 @@ var require_dist7 = __commonJS({
|
|
47571
47571
|
});
|
47572
47572
|
module.exports = __toCommonJS2(src_exports);
|
47573
47573
|
var React3 = __toESM2(require_react());
|
47574
|
-
var
|
47574
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47575
47575
|
var DirectionContext = React3.createContext(void 0);
|
47576
47576
|
var DirectionProvider = (props) => {
|
47577
47577
|
const { dir, children } = props;
|
47578
|
-
return /* @__PURE__ */ (0,
|
47578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DirectionContext.Provider, { value: dir, children });
|
47579
47579
|
};
|
47580
47580
|
function useDirection(localDir) {
|
47581
47581
|
const globalDir = React3.useContext(DirectionContext);
|
@@ -47626,7 +47626,7 @@ var require_dist8 = __commonJS({
|
|
47626
47626
|
var React3 = __toESM2(require_react());
|
47627
47627
|
var ReactDOM2 = __toESM2(require_react_dom());
|
47628
47628
|
var import_react_slot = require_dist5();
|
47629
|
-
var
|
47629
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47630
47630
|
var NODES = [
|
47631
47631
|
"a",
|
47632
47632
|
"button",
|
@@ -47652,7 +47652,7 @@ var require_dist8 = __commonJS({
|
|
47652
47652
|
if (typeof window !== "undefined") {
|
47653
47653
|
window[Symbol.for("radix-ui")] = true;
|
47654
47654
|
}
|
47655
|
-
return /* @__PURE__ */ (0,
|
47655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
47656
47656
|
});
|
47657
47657
|
Node2.displayName = `Primitive.${node}`;
|
47658
47658
|
return { ...primitive, [node]: Node2 };
|
@@ -47811,7 +47811,7 @@ var require_dist11 = __commonJS({
|
|
47811
47811
|
var import_react_compose_refs = require_dist4();
|
47812
47812
|
var import_react_use_callback_ref = require_dist9();
|
47813
47813
|
var import_react_use_escape_keydown = require_dist10();
|
47814
|
-
var
|
47814
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
47815
47815
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
47816
47816
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
47817
47817
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
@@ -47906,7 +47906,7 @@ var require_dist11 = __commonJS({
|
|
47906
47906
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
47907
47907
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
47908
47908
|
}, []);
|
47909
|
-
return /* @__PURE__ */ (0,
|
47909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
47910
47910
|
import_react_primitive.Primitive.div,
|
47911
47911
|
{
|
47912
47912
|
...layerProps,
|
@@ -47940,7 +47940,7 @@ var require_dist11 = __commonJS({
|
|
47940
47940
|
};
|
47941
47941
|
}
|
47942
47942
|
}, [context.branches]);
|
47943
|
-
return /* @__PURE__ */ (0,
|
47943
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
|
47944
47944
|
});
|
47945
47945
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
47946
47946
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
@@ -48142,7 +48142,7 @@ var require_dist13 = __commonJS({
|
|
48142
48142
|
var import_react_compose_refs = require_dist4();
|
48143
48143
|
var import_react_primitive = require_dist8();
|
48144
48144
|
var import_react_use_callback_ref = require_dist9();
|
48145
|
-
var
|
48145
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
48146
48146
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
48147
48147
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
48148
48148
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
@@ -48272,7 +48272,7 @@ var require_dist13 = __commonJS({
|
|
48272
48272
|
},
|
48273
48273
|
[loop, trapped, focusScope.paused]
|
48274
48274
|
);
|
48275
|
-
return /* @__PURE__ */ (0,
|
48275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
48276
48276
|
});
|
48277
48277
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
48278
48278
|
function focusFirst(candidates, { select = false } = {}) {
|
@@ -50514,15 +50514,15 @@ function useFloating(options) {
|
|
50514
50514
|
floatingStyles
|
50515
50515
|
}), [data, update, refs, elements2, floatingStyles]);
|
50516
50516
|
}
|
50517
|
-
var React2,
|
50517
|
+
var React2, import_react5, ReactDOM, index2, arrow$1, offset3, shift3, limitShift3, flip3, size3, autoPlacement3, hide3, inline3, arrow3;
|
50518
50518
|
var init_floating_ui_react_dom_esm = __esm({
|
50519
50519
|
"../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"() {
|
50520
50520
|
init_floating_ui_dom();
|
50521
50521
|
init_floating_ui_dom();
|
50522
50522
|
React2 = __toESM(require_react());
|
50523
|
-
|
50523
|
+
import_react5 = __toESM(require_react());
|
50524
50524
|
ReactDOM = __toESM(require_react_dom());
|
50525
|
-
index2 = typeof document !== "undefined" ?
|
50525
|
+
index2 = typeof document !== "undefined" ? import_react5.useLayoutEffect : import_react5.useEffect;
|
50526
50526
|
arrow$1 = (options) => {
|
50527
50527
|
function isRef(value) {
|
50528
50528
|
return {}.hasOwnProperty.call(value, "current");
|
@@ -50632,11 +50632,11 @@ var require_dist16 = __commonJS({
|
|
50632
50632
|
module.exports = __toCommonJS2(src_exports);
|
50633
50633
|
var React3 = __toESM2(require_react());
|
50634
50634
|
var import_react_primitive = require_dist8();
|
50635
|
-
var
|
50635
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
50636
50636
|
var NAME = "Arrow";
|
50637
50637
|
var Arrow = React3.forwardRef((props, forwardedRef) => {
|
50638
50638
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
50639
|
-
return /* @__PURE__ */ (0,
|
50639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50640
50640
|
import_react_primitive.Primitive.svg,
|
50641
50641
|
{
|
50642
50642
|
...arrowProps,
|
@@ -50645,7 +50645,7 @@ var require_dist16 = __commonJS({
|
|
50645
50645
|
height,
|
50646
50646
|
viewBox: "0 0 30 10",
|
50647
50647
|
preserveAspectRatio: "none",
|
50648
|
-
children: props.asChild ? children : /* @__PURE__ */ (0,
|
50648
|
+
children: props.asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
50649
50649
|
}
|
50650
50650
|
);
|
50651
50651
|
});
|
@@ -50785,7 +50785,7 @@ var require_dist18 = __commonJS({
|
|
50785
50785
|
var import_react_use_callback_ref = require_dist9();
|
50786
50786
|
var import_react_use_layout_effect = require_dist14();
|
50787
50787
|
var import_react_use_size = require_dist17();
|
50788
|
-
var
|
50788
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
50789
50789
|
var SIDE_OPTIONS = ["top", "right", "bottom", "left"];
|
50790
50790
|
var ALIGN_OPTIONS = ["start", "center", "end"];
|
50791
50791
|
var POPPER_NAME = "Popper";
|
@@ -50794,7 +50794,7 @@ var require_dist18 = __commonJS({
|
|
50794
50794
|
var Popper = (props) => {
|
50795
50795
|
const { __scopePopper, children } = props;
|
50796
50796
|
const [anchor, setAnchor] = React3.useState(null);
|
50797
|
-
return /* @__PURE__ */ (0,
|
50797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
50798
50798
|
};
|
50799
50799
|
Popper.displayName = POPPER_NAME;
|
50800
50800
|
var ANCHOR_NAME = "PopperAnchor";
|
@@ -50807,7 +50807,7 @@ var require_dist18 = __commonJS({
|
|
50807
50807
|
React3.useEffect(() => {
|
50808
50808
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
50809
50809
|
});
|
50810
|
-
return virtualRef ? null : /* @__PURE__ */ (0,
|
50810
|
+
return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...anchorProps, ref: composedRefs });
|
50811
50811
|
}
|
50812
50812
|
);
|
50813
50813
|
PopperAnchor.displayName = ANCHOR_NAME;
|
@@ -50901,7 +50901,7 @@ var require_dist18 = __commonJS({
|
|
50901
50901
|
if (content)
|
50902
50902
|
setContentZIndex(window.getComputedStyle(content).zIndex);
|
50903
50903
|
}, [content]);
|
50904
|
-
return /* @__PURE__ */ (0,
|
50904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50905
50905
|
"div",
|
50906
50906
|
{
|
50907
50907
|
ref: refs.setFloating,
|
@@ -50925,7 +50925,7 @@ var require_dist18 = __commonJS({
|
|
50925
50925
|
}
|
50926
50926
|
},
|
50927
50927
|
dir: props.dir,
|
50928
|
-
children: /* @__PURE__ */ (0,
|
50928
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50929
50929
|
PopperContentProvider,
|
50930
50930
|
{
|
50931
50931
|
scope: __scopePopper,
|
@@ -50934,7 +50934,7 @@ var require_dist18 = __commonJS({
|
|
50934
50934
|
arrowX,
|
50935
50935
|
arrowY,
|
50936
50936
|
shouldHideArrow: cannotCenterArrow,
|
50937
|
-
children: /* @__PURE__ */ (0,
|
50937
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50938
50938
|
import_react_primitive.Primitive.div,
|
50939
50939
|
{
|
50940
50940
|
"data-side": placedSide,
|
@@ -50971,7 +50971,7 @@ var require_dist18 = __commonJS({
|
|
50971
50971
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
50972
50972
|
// doesn't report size as we'd expect on SVG elements.
|
50973
50973
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
50974
|
-
/* @__PURE__ */ (0,
|
50974
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50975
50975
|
"span",
|
50976
50976
|
{
|
50977
50977
|
ref: contentContext.onArrowChange,
|
@@ -50994,7 +50994,7 @@ var require_dist18 = __commonJS({
|
|
50994
50994
|
}[contentContext.placedSide],
|
50995
50995
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
50996
50996
|
},
|
50997
|
-
children: /* @__PURE__ */ (0,
|
50997
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
50998
50998
|
ArrowPrimitive.Root,
|
50999
50999
|
{
|
51000
51000
|
...arrowProps,
|
@@ -51098,14 +51098,14 @@ var require_dist19 = __commonJS({
|
|
51098
51098
|
var import_react_dom = __toESM2(require_react_dom());
|
51099
51099
|
var import_react_primitive = require_dist8();
|
51100
51100
|
var import_react_use_layout_effect = require_dist14();
|
51101
|
-
var
|
51101
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
51102
51102
|
var PORTAL_NAME = "Portal";
|
51103
51103
|
var Portal = React3.forwardRef((props, forwardedRef) => {
|
51104
51104
|
const { container: containerProp, ...portalProps } = props;
|
51105
51105
|
const [mounted, setMounted] = React3.useState(false);
|
51106
51106
|
(0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
|
51107
51107
|
const container = containerProp || mounted && globalThis?.document?.body;
|
51108
|
-
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0,
|
51108
|
+
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
51109
51109
|
});
|
51110
51110
|
Portal.displayName = PORTAL_NAME;
|
51111
51111
|
var Root = Portal;
|
@@ -51283,11 +51283,11 @@ var require_dist22 = __commonJS({
|
|
51283
51283
|
module.exports = __toCommonJS2(src_exports);
|
51284
51284
|
var React3 = __toESM2(require_react());
|
51285
51285
|
var import_react_primitive = require_dist8();
|
51286
|
-
var
|
51286
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
51287
51287
|
var NAME = "VisuallyHidden";
|
51288
51288
|
var VisuallyHidden = React3.forwardRef(
|
51289
51289
|
(props, forwardedRef) => {
|
51290
|
-
return /* @__PURE__ */ (0,
|
51290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
51291
51291
|
import_react_primitive.Primitive.span,
|
51292
51292
|
{
|
51293
51293
|
...props,
|
@@ -53446,7 +53446,7 @@ var require_dist23 = __commonJS({
|
|
53446
53446
|
var import_react_visually_hidden = require_dist22();
|
53447
53447
|
var import_aria_hidden = require_es5();
|
53448
53448
|
var import_react_remove_scroll = require_es57();
|
53449
|
-
var
|
53449
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
53450
53450
|
var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
53451
53451
|
var SELECTION_KEYS = [" ", "Enter"];
|
53452
53452
|
var SELECT_NAME = "Select";
|
@@ -53494,7 +53494,7 @@ var require_dist23 = __commonJS({
|
|
53494
53494
|
const isFormControl = trigger ? form || !!trigger.closest("form") : true;
|
53495
53495
|
const [nativeOptionsSet, setNativeOptionsSet] = React3.useState(/* @__PURE__ */ new Set());
|
53496
53496
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
53497
|
-
return /* @__PURE__ */ (0,
|
53497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
53498
53498
|
SelectProvider,
|
53499
53499
|
{
|
53500
53500
|
required,
|
@@ -53514,7 +53514,7 @@ var require_dist23 = __commonJS({
|
|
53514
53514
|
triggerPointerDownPosRef,
|
53515
53515
|
disabled,
|
53516
53516
|
children: [
|
53517
|
-
/* @__PURE__ */ (0,
|
53517
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53518
53518
|
SelectNativeOptionsProvider,
|
53519
53519
|
{
|
53520
53520
|
scope: props.__scopeSelect,
|
@@ -53531,7 +53531,7 @@ var require_dist23 = __commonJS({
|
|
53531
53531
|
children
|
53532
53532
|
}
|
53533
53533
|
) }),
|
53534
|
-
isFormControl ? /* @__PURE__ */ (0,
|
53534
|
+
isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
53535
53535
|
BubbleSelect,
|
53536
53536
|
{
|
53537
53537
|
"aria-hidden": true,
|
@@ -53544,7 +53544,7 @@ var require_dist23 = __commonJS({
|
|
53544
53544
|
disabled,
|
53545
53545
|
form,
|
53546
53546
|
children: [
|
53547
|
-
value === void 0 ? /* @__PURE__ */ (0,
|
53547
|
+
value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("option", { value: "" }) : null,
|
53548
53548
|
Array.from(nativeOptionsSet)
|
53549
53549
|
]
|
53550
53550
|
},
|
@@ -53585,7 +53585,7 @@ var require_dist23 = __commonJS({
|
|
53585
53585
|
};
|
53586
53586
|
}
|
53587
53587
|
};
|
53588
|
-
return /* @__PURE__ */ (0,
|
53588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53589
53589
|
import_react_primitive.Primitive.button,
|
53590
53590
|
{
|
53591
53591
|
type: "button",
|
@@ -53646,13 +53646,13 @@ var require_dist23 = __commonJS({
|
|
53646
53646
|
(0, import_react_use_layout_effect.useLayoutEffect)(() => {
|
53647
53647
|
onValueNodeHasChildrenChange(hasChildren);
|
53648
53648
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
53649
|
-
return /* @__PURE__ */ (0,
|
53649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53650
53650
|
import_react_primitive.Primitive.span,
|
53651
53651
|
{
|
53652
53652
|
...valueProps,
|
53653
53653
|
ref: composedRefs,
|
53654
53654
|
style: { pointerEvents: "none" },
|
53655
|
-
children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0,
|
53655
|
+
children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: placeholder }) : children
|
53656
53656
|
}
|
53657
53657
|
);
|
53658
53658
|
}
|
@@ -53662,13 +53662,13 @@ var require_dist23 = __commonJS({
|
|
53662
53662
|
var SelectIcon = React3.forwardRef(
|
53663
53663
|
(props, forwardedRef) => {
|
53664
53664
|
const { __scopeSelect, children, ...iconProps } = props;
|
53665
|
-
return /* @__PURE__ */ (0,
|
53665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
|
53666
53666
|
}
|
53667
53667
|
);
|
53668
53668
|
SelectIcon.displayName = ICON_NAME;
|
53669
53669
|
var PORTAL_NAME = "SelectPortal";
|
53670
53670
|
var SelectPortal = (props) => {
|
53671
|
-
return /* @__PURE__ */ (0,
|
53671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_portal.Portal, { asChild: true, ...props });
|
53672
53672
|
};
|
53673
53673
|
SelectPortal.displayName = PORTAL_NAME;
|
53674
53674
|
var CONTENT_NAME = "SelectContent";
|
@@ -53682,11 +53682,11 @@ var require_dist23 = __commonJS({
|
|
53682
53682
|
if (!context.open) {
|
53683
53683
|
const frag = fragment;
|
53684
53684
|
return frag ? ReactDOM2.createPortal(
|
53685
|
-
/* @__PURE__ */ (0,
|
53685
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: props.children }) }) }),
|
53686
53686
|
frag
|
53687
53687
|
) : null;
|
53688
53688
|
}
|
53689
|
-
return /* @__PURE__ */ (0,
|
53689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
|
53690
53690
|
}
|
53691
53691
|
);
|
53692
53692
|
SelectContent.displayName = CONTENT_NAME;
|
@@ -53845,7 +53845,7 @@ var require_dist23 = __commonJS({
|
|
53845
53845
|
hideWhenDetached,
|
53846
53846
|
avoidCollisions
|
53847
53847
|
} : {};
|
53848
|
-
return /* @__PURE__ */ (0,
|
53848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53849
53849
|
SelectContentProvider,
|
53850
53850
|
{
|
53851
53851
|
scope: __scopeSelect,
|
@@ -53861,7 +53861,7 @@ var require_dist23 = __commonJS({
|
|
53861
53861
|
position,
|
53862
53862
|
isPositioned,
|
53863
53863
|
searchRef,
|
53864
|
-
children: /* @__PURE__ */ (0,
|
53864
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53865
53865
|
import_react_focus_scope.FocusScope,
|
53866
53866
|
{
|
53867
53867
|
asChild: true,
|
@@ -53873,7 +53873,7 @@ var require_dist23 = __commonJS({
|
|
53873
53873
|
context.trigger?.focus({ preventScroll: true });
|
53874
53874
|
event.preventDefault();
|
53875
53875
|
}),
|
53876
|
-
children: /* @__PURE__ */ (0,
|
53876
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53877
53877
|
import_react_dismissable_layer.DismissableLayer,
|
53878
53878
|
{
|
53879
53879
|
asChild: true,
|
@@ -53882,7 +53882,7 @@ var require_dist23 = __commonJS({
|
|
53882
53882
|
onPointerDownOutside,
|
53883
53883
|
onFocusOutside: (event) => event.preventDefault(),
|
53884
53884
|
onDismiss: () => context.onOpenChange(false),
|
53885
|
-
children: /* @__PURE__ */ (0,
|
53885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
53886
53886
|
SelectPosition,
|
53887
53887
|
{
|
53888
53888
|
role: "listbox",
|
@@ -54061,14 +54061,14 @@ var require_dist23 = __commonJS({
|
|
54061
54061
|
},
|
54062
54062
|
[position, focusSelectedItem]
|
54063
54063
|
);
|
54064
|
-
return /* @__PURE__ */ (0,
|
54064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54065
54065
|
SelectViewportProvider,
|
54066
54066
|
{
|
54067
54067
|
scope: __scopeSelect,
|
54068
54068
|
contentWrapper,
|
54069
54069
|
shouldExpandOnScrollRef,
|
54070
54070
|
onScrollButtonChange: handleScrollButtonChange,
|
54071
|
-
children: /* @__PURE__ */ (0,
|
54071
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54072
54072
|
"div",
|
54073
54073
|
{
|
54074
54074
|
ref: setContentWrapper,
|
@@ -54078,7 +54078,7 @@ var require_dist23 = __commonJS({
|
|
54078
54078
|
position: "fixed",
|
54079
54079
|
zIndex: contentZIndex
|
54080
54080
|
},
|
54081
|
-
children: /* @__PURE__ */ (0,
|
54081
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54082
54082
|
import_react_primitive.Primitive.div,
|
54083
54083
|
{
|
54084
54084
|
...popperProps,
|
@@ -54108,7 +54108,7 @@ var require_dist23 = __commonJS({
|
|
54108
54108
|
...popperProps
|
54109
54109
|
} = props;
|
54110
54110
|
const popperScope = usePopperScope(__scopeSelect);
|
54111
|
-
return /* @__PURE__ */ (0,
|
54111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54112
54112
|
PopperPrimitive.Content,
|
54113
54113
|
{
|
54114
54114
|
...popperScope,
|
@@ -54142,8 +54142,8 @@ var require_dist23 = __commonJS({
|
|
54142
54142
|
const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
|
54143
54143
|
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentContext.onViewportChange);
|
54144
54144
|
const prevScrollTopRef = React3.useRef(0);
|
54145
|
-
return /* @__PURE__ */ (0,
|
54146
|
-
/* @__PURE__ */ (0,
|
54145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
54146
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54147
54147
|
"style",
|
54148
54148
|
{
|
54149
54149
|
dangerouslySetInnerHTML: {
|
@@ -54152,7 +54152,7 @@ var require_dist23 = __commonJS({
|
|
54152
54152
|
nonce
|
54153
54153
|
}
|
54154
54154
|
),
|
54155
|
-
/* @__PURE__ */ (0,
|
54155
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54156
54156
|
import_react_primitive.Primitive.div,
|
54157
54157
|
{
|
54158
54158
|
"data-radix-select-viewport": "",
|
@@ -54208,7 +54208,7 @@ var require_dist23 = __commonJS({
|
|
54208
54208
|
(props, forwardedRef) => {
|
54209
54209
|
const { __scopeSelect, ...groupProps } = props;
|
54210
54210
|
const groupId = (0, import_react_id.useId)();
|
54211
|
-
return /* @__PURE__ */ (0,
|
54211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
54212
54212
|
}
|
54213
54213
|
);
|
54214
54214
|
SelectGroup.displayName = GROUP_NAME;
|
@@ -54217,7 +54217,7 @@ var require_dist23 = __commonJS({
|
|
54217
54217
|
(props, forwardedRef) => {
|
54218
54218
|
const { __scopeSelect, ...labelProps } = props;
|
54219
54219
|
const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
|
54220
|
-
return /* @__PURE__ */ (0,
|
54220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
54221
54221
|
}
|
54222
54222
|
);
|
54223
54223
|
SelectLabel.displayName = LABEL_NAME;
|
@@ -54254,7 +54254,7 @@ var require_dist23 = __commonJS({
|
|
54254
54254
|
"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."
|
54255
54255
|
);
|
54256
54256
|
}
|
54257
|
-
return /* @__PURE__ */ (0,
|
54257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54258
54258
|
SelectItemContextProvider,
|
54259
54259
|
{
|
54260
54260
|
scope: __scopeSelect,
|
@@ -54265,14 +54265,14 @@ var require_dist23 = __commonJS({
|
|
54265
54265
|
onItemTextChange: React3.useCallback((node) => {
|
54266
54266
|
setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
|
54267
54267
|
}, []),
|
54268
|
-
children: /* @__PURE__ */ (0,
|
54268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54269
54269
|
Collection.ItemSlot,
|
54270
54270
|
{
|
54271
54271
|
scope: __scopeSelect,
|
54272
54272
|
value,
|
54273
54273
|
disabled,
|
54274
54274
|
textValue,
|
54275
|
-
children: /* @__PURE__ */ (0,
|
54275
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54276
54276
|
import_react_primitive.Primitive.div,
|
54277
54277
|
{
|
54278
54278
|
role: "option",
|
@@ -54346,7 +54346,7 @@ var require_dist23 = __commonJS({
|
|
54346
54346
|
);
|
54347
54347
|
const textContent = itemTextNode?.textContent;
|
54348
54348
|
const nativeOption = React3.useMemo(
|
54349
|
-
() => /* @__PURE__ */ (0,
|
54349
|
+
() => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
|
54350
54350
|
[itemContext.disabled, itemContext.value, textContent]
|
54351
54351
|
);
|
54352
54352
|
const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
|
@@ -54354,8 +54354,8 @@ var require_dist23 = __commonJS({
|
|
54354
54354
|
onNativeOptionAdd(nativeOption);
|
54355
54355
|
return () => onNativeOptionRemove(nativeOption);
|
54356
54356
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
54357
|
-
return /* @__PURE__ */ (0,
|
54358
|
-
/* @__PURE__ */ (0,
|
54357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
54358
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
54359
54359
|
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM2.createPortal(itemTextProps.children, context.valueNode) : null
|
54360
54360
|
] });
|
54361
54361
|
}
|
@@ -54366,7 +54366,7 @@ var require_dist23 = __commonJS({
|
|
54366
54366
|
(props, forwardedRef) => {
|
54367
54367
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
54368
54368
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
|
54369
|
-
return itemContext.isSelected ? /* @__PURE__ */ (0,
|
54369
|
+
return itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
54370
54370
|
}
|
54371
54371
|
);
|
54372
54372
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
@@ -54389,7 +54389,7 @@ var require_dist23 = __commonJS({
|
|
54389
54389
|
return () => viewport.removeEventListener("scroll", handleScroll2);
|
54390
54390
|
}
|
54391
54391
|
}, [contentContext.viewport, contentContext.isPositioned]);
|
54392
|
-
return canScrollUp ? /* @__PURE__ */ (0,
|
54392
|
+
return canScrollUp ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54393
54393
|
SelectScrollButtonImpl,
|
54394
54394
|
{
|
54395
54395
|
...props,
|
@@ -54424,7 +54424,7 @@ var require_dist23 = __commonJS({
|
|
54424
54424
|
return () => viewport.removeEventListener("scroll", handleScroll2);
|
54425
54425
|
}
|
54426
54426
|
}, [contentContext.viewport, contentContext.isPositioned]);
|
54427
|
-
return canScrollDown ? /* @__PURE__ */ (0,
|
54427
|
+
return canScrollDown ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54428
54428
|
SelectScrollButtonImpl,
|
54429
54429
|
{
|
54430
54430
|
...props,
|
@@ -54457,7 +54457,7 @@ var require_dist23 = __commonJS({
|
|
54457
54457
|
const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
|
54458
54458
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
54459
54459
|
}, [getItems]);
|
54460
|
-
return /* @__PURE__ */ (0,
|
54460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54461
54461
|
import_react_primitive.Primitive.div,
|
54462
54462
|
{
|
54463
54463
|
"aria-hidden": true,
|
@@ -54485,7 +54485,7 @@ var require_dist23 = __commonJS({
|
|
54485
54485
|
var SelectSeparator = React3.forwardRef(
|
54486
54486
|
(props, forwardedRef) => {
|
54487
54487
|
const { __scopeSelect, ...separatorProps } = props;
|
54488
|
-
return /* @__PURE__ */ (0,
|
54488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
54489
54489
|
}
|
54490
54490
|
);
|
54491
54491
|
SelectSeparator.displayName = SEPARATOR_NAME;
|
@@ -54496,7 +54496,7 @@ var require_dist23 = __commonJS({
|
|
54496
54496
|
const popperScope = usePopperScope(__scopeSelect);
|
54497
54497
|
const context = useSelectContext(ARROW_NAME, __scopeSelect);
|
54498
54498
|
const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);
|
54499
|
-
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0,
|
54499
|
+
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
|
54500
54500
|
}
|
54501
54501
|
);
|
54502
54502
|
SelectArrow.displayName = ARROW_NAME;
|
@@ -54523,7 +54523,7 @@ var require_dist23 = __commonJS({
|
|
54523
54523
|
select.dispatchEvent(event);
|
54524
54524
|
}
|
54525
54525
|
}, [prevValue, value]);
|
54526
|
-
return /* @__PURE__ */ (0,
|
54526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_visually_hidden.VisuallyHidden, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
|
54527
54527
|
}
|
54528
54528
|
);
|
54529
54529
|
BubbleSelect.displayName = "BubbleSelect";
|
@@ -54907,7 +54907,7 @@ var require_dist25 = __commonJS({
|
|
54907
54907
|
var import_react_use_controllable_state = require_dist20();
|
54908
54908
|
var import_aria_hidden = require_es5();
|
54909
54909
|
var import_react_remove_scroll = require_es57();
|
54910
|
-
var
|
54910
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
54911
54911
|
var POPOVER_NAME = "Popover";
|
54912
54912
|
var [createPopoverContext, createPopoverScope] = (0, import_react_context.createContextScope)(POPOVER_NAME, [
|
54913
54913
|
import_react_popper.createPopperScope
|
@@ -54931,7 +54931,7 @@ var require_dist25 = __commonJS({
|
|
54931
54931
|
defaultProp: defaultOpen,
|
54932
54932
|
onChange: onOpenChange
|
54933
54933
|
});
|
54934
|
-
return /* @__PURE__ */ (0,
|
54934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54935
54935
|
PopoverProvider,
|
54936
54936
|
{
|
54937
54937
|
scope: __scopePopover,
|
@@ -54960,7 +54960,7 @@ var require_dist25 = __commonJS({
|
|
54960
54960
|
onCustomAnchorAdd();
|
54961
54961
|
return () => onCustomAnchorRemove();
|
54962
54962
|
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
54963
|
-
return /* @__PURE__ */ (0,
|
54963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
54964
54964
|
}
|
54965
54965
|
);
|
54966
54966
|
PopoverAnchor.displayName = ANCHOR_NAME;
|
@@ -54971,7 +54971,7 @@ var require_dist25 = __commonJS({
|
|
54971
54971
|
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
54972
54972
|
const popperScope = usePopperScope(__scopePopover);
|
54973
54973
|
const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
54974
|
-
const trigger = /* @__PURE__ */ (0,
|
54974
|
+
const trigger = /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
54975
54975
|
import_react_primitive.Primitive.button,
|
54976
54976
|
{
|
54977
54977
|
type: "button",
|
@@ -54984,7 +54984,7 @@ var require_dist25 = __commonJS({
|
|
54984
54984
|
onClick: (0, import_primitive.composeEventHandlers)(props.onClick, context.onOpenToggle)
|
54985
54985
|
}
|
54986
54986
|
);
|
54987
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0,
|
54987
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: trigger });
|
54988
54988
|
}
|
54989
54989
|
);
|
54990
54990
|
PopoverTrigger.displayName = TRIGGER_NAME;
|
@@ -54995,7 +54995,7 @@ var require_dist25 = __commonJS({
|
|
54995
54995
|
var PopoverPortal = (props) => {
|
54996
54996
|
const { __scopePopover, forceMount, children, container } = props;
|
54997
54997
|
const context = usePopoverContext(PORTAL_NAME, __scopePopover);
|
54998
|
-
return /* @__PURE__ */ (0,
|
54998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_portal.Portal, { asChild: true, container, children }) }) });
|
54999
54999
|
};
|
55000
55000
|
PopoverPortal.displayName = PORTAL_NAME;
|
55001
55001
|
var CONTENT_NAME = "PopoverContent";
|
@@ -55004,7 +55004,7 @@ var require_dist25 = __commonJS({
|
|
55004
55004
|
const portalContext = usePortalContext(CONTENT_NAME, props.__scopePopover);
|
55005
55005
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
55006
55006
|
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
55007
|
-
return /* @__PURE__ */ (0,
|
55007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
55008
55008
|
}
|
55009
55009
|
);
|
55010
55010
|
PopoverContent.displayName = CONTENT_NAME;
|
@@ -55019,7 +55019,7 @@ var require_dist25 = __commonJS({
|
|
55019
55019
|
if (content)
|
55020
55020
|
return (0, import_aria_hidden.hideOthers)(content);
|
55021
55021
|
}, []);
|
55022
|
-
return /* @__PURE__ */ (0,
|
55022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_remove_scroll.RemoveScroll, { as: import_react_slot.Slot, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55023
55023
|
PopoverContentImpl,
|
55024
55024
|
{
|
55025
55025
|
...props,
|
@@ -55055,7 +55055,7 @@ var require_dist25 = __commonJS({
|
|
55055
55055
|
const context = usePopoverContext(CONTENT_NAME, props.__scopePopover);
|
55056
55056
|
const hasInteractedOutsideRef = React3.useRef(false);
|
55057
55057
|
const hasPointerDownOutsideRef = React3.useRef(false);
|
55058
|
-
return /* @__PURE__ */ (0,
|
55058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55059
55059
|
PopoverContentImpl,
|
55060
55060
|
{
|
55061
55061
|
...props,
|
@@ -55109,7 +55109,7 @@ var require_dist25 = __commonJS({
|
|
55109
55109
|
const context = usePopoverContext(CONTENT_NAME, __scopePopover);
|
55110
55110
|
const popperScope = usePopperScope(__scopePopover);
|
55111
55111
|
(0, import_react_focus_guards.useFocusGuards)();
|
55112
|
-
return /* @__PURE__ */ (0,
|
55112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55113
55113
|
import_react_focus_scope.FocusScope,
|
55114
55114
|
{
|
55115
55115
|
asChild: true,
|
@@ -55117,7 +55117,7 @@ var require_dist25 = __commonJS({
|
|
55117
55117
|
trapped: trapFocus,
|
55118
55118
|
onMountAutoFocus: onOpenAutoFocus,
|
55119
55119
|
onUnmountAutoFocus: onCloseAutoFocus,
|
55120
|
-
children: /* @__PURE__ */ (0,
|
55120
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55121
55121
|
import_react_dismissable_layer.DismissableLayer,
|
55122
55122
|
{
|
55123
55123
|
asChild: true,
|
@@ -55127,7 +55127,7 @@ var require_dist25 = __commonJS({
|
|
55127
55127
|
onPointerDownOutside,
|
55128
55128
|
onFocusOutside,
|
55129
55129
|
onDismiss: () => context.onOpenChange(false),
|
55130
|
-
children: /* @__PURE__ */ (0,
|
55130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55131
55131
|
PopperPrimitive.Content,
|
55132
55132
|
{
|
55133
55133
|
"data-state": getState(context.open),
|
@@ -55160,7 +55160,7 @@ var require_dist25 = __commonJS({
|
|
55160
55160
|
(props, forwardedRef) => {
|
55161
55161
|
const { __scopePopover, ...closeProps } = props;
|
55162
55162
|
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
55163
|
-
return /* @__PURE__ */ (0,
|
55163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
55164
55164
|
import_react_primitive.Primitive.button,
|
55165
55165
|
{
|
55166
55166
|
type: "button",
|
@@ -55177,7 +55177,7 @@ var require_dist25 = __commonJS({
|
|
55177
55177
|
(props, forwardedRef) => {
|
55178
55178
|
const { __scopePopover, ...arrowProps } = props;
|
55179
55179
|
const popperScope = usePopperScope(__scopePopover);
|
55180
|
-
return /* @__PURE__ */ (0,
|
55180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
55181
55181
|
}
|
55182
55182
|
);
|
55183
55183
|
PopoverArrow.displayName = ARROW_NAME;
|
@@ -55403,13 +55403,13 @@ var require_dist28 = __commonJS({
|
|
55403
55403
|
});
|
55404
55404
|
module.exports = __toCommonJS2(index_exports);
|
55405
55405
|
var React3 = __toESM2(require_react());
|
55406
|
-
var
|
55406
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
55407
55407
|
function createContext2(rootComponentName, defaultContext) {
|
55408
55408
|
const Context = React3.createContext(defaultContext);
|
55409
55409
|
const Provider = (props) => {
|
55410
55410
|
const { children, ...context } = props;
|
55411
55411
|
const value = React3.useMemo(() => context, Object.values(context));
|
55412
|
-
return /* @__PURE__ */ (0,
|
55412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
55413
55413
|
};
|
55414
55414
|
Provider.displayName = rootComponentName + "Provider";
|
55415
55415
|
function useContext2(consumerName) {
|
@@ -55432,7 +55432,7 @@ var require_dist28 = __commonJS({
|
|
55432
55432
|
const { scope, children, ...context } = props;
|
55433
55433
|
const Context = scope?.[scopeName]?.[index3] || BaseContext;
|
55434
55434
|
const value = React3.useMemo(() => context, Object.values(context));
|
55435
|
-
return /* @__PURE__ */ (0,
|
55435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
55436
55436
|
};
|
55437
55437
|
Provider.displayName = rootComponentName + "Provider";
|
55438
55438
|
function useContext2(consumerName, scope) {
|
@@ -55891,7 +55891,7 @@ var require_dist34 = __commonJS({
|
|
55891
55891
|
module.exports = __toCommonJS2(index_exports);
|
55892
55892
|
var React3 = __toESM2(require_react());
|
55893
55893
|
var import_react_compose_refs = require_dist27();
|
55894
|
-
var
|
55894
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
55895
55895
|
// @__NO_SIDE_EFFECTS__
|
55896
55896
|
function createSlot(ownerName) {
|
55897
55897
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
@@ -55910,9 +55910,9 @@ var require_dist34 = __commonJS({
|
|
55910
55910
|
return child;
|
55911
55911
|
}
|
55912
55912
|
});
|
55913
|
-
return /* @__PURE__ */ (0,
|
55913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
|
55914
55914
|
}
|
55915
|
-
return /* @__PURE__ */ (0,
|
55915
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
55916
55916
|
});
|
55917
55917
|
Slot2.displayName = `${ownerName}.Slot`;
|
55918
55918
|
return Slot2;
|
@@ -55939,7 +55939,7 @@ var require_dist34 = __commonJS({
|
|
55939
55939
|
// @__NO_SIDE_EFFECTS__
|
55940
55940
|
function createSlottable(ownerName) {
|
55941
55941
|
const Slottable2 = ({ children }) => {
|
55942
|
-
return /* @__PURE__ */ (0,
|
55942
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children });
|
55943
55943
|
};
|
55944
55944
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
55945
55945
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
@@ -56029,7 +56029,7 @@ var require_dist35 = __commonJS({
|
|
56029
56029
|
var React3 = __toESM2(require_react());
|
56030
56030
|
var ReactDOM2 = __toESM2(require_react_dom());
|
56031
56031
|
var import_react_slot = require_dist34();
|
56032
|
-
var
|
56032
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
56033
56033
|
var NODES = [
|
56034
56034
|
"a",
|
56035
56035
|
"button",
|
@@ -56057,7 +56057,7 @@ var require_dist35 = __commonJS({
|
|
56057
56057
|
if (typeof window !== "undefined") {
|
56058
56058
|
window[Symbol.for("radix-ui")] = true;
|
56059
56059
|
}
|
56060
|
-
return /* @__PURE__ */ (0,
|
56060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
56061
56061
|
});
|
56062
56062
|
Node2.displayName = `Primitive.${node}`;
|
56063
56063
|
return { ...primitive, [node]: Node2 };
|
@@ -56216,7 +56216,7 @@ var require_dist38 = __commonJS({
|
|
56216
56216
|
var import_react_compose_refs = require_dist27();
|
56217
56217
|
var import_react_use_callback_ref = require_dist36();
|
56218
56218
|
var import_react_use_escape_keydown = require_dist37();
|
56219
|
-
var
|
56219
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
56220
56220
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
56221
56221
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
56222
56222
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
@@ -56311,7 +56311,7 @@ var require_dist38 = __commonJS({
|
|
56311
56311
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
56312
56312
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
56313
56313
|
}, []);
|
56314
|
-
return /* @__PURE__ */ (0,
|
56314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
56315
56315
|
import_react_primitive.Primitive.div,
|
56316
56316
|
{
|
56317
56317
|
...layerProps,
|
@@ -56345,7 +56345,7 @@ var require_dist38 = __commonJS({
|
|
56345
56345
|
};
|
56346
56346
|
}
|
56347
56347
|
}, [context.branches]);
|
56348
|
-
return /* @__PURE__ */ (0,
|
56348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
|
56349
56349
|
});
|
56350
56350
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
56351
56351
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
@@ -56474,7 +56474,7 @@ var require_dist39 = __commonJS({
|
|
56474
56474
|
var import_react_compose_refs = require_dist27();
|
56475
56475
|
var import_react_primitive = require_dist35();
|
56476
56476
|
var import_react_use_callback_ref = require_dist36();
|
56477
|
-
var
|
56477
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
56478
56478
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
56479
56479
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
56480
56480
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
@@ -56604,7 +56604,7 @@ var require_dist39 = __commonJS({
|
|
56604
56604
|
},
|
56605
56605
|
[loop, trapped, focusScope.paused]
|
56606
56606
|
);
|
56607
|
-
return /* @__PURE__ */ (0,
|
56607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
56608
56608
|
});
|
56609
56609
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
56610
56610
|
function focusFirst(candidates, { select = false } = {}) {
|
@@ -56739,14 +56739,14 @@ var require_dist40 = __commonJS({
|
|
56739
56739
|
var import_react_dom = __toESM2(require_react_dom());
|
56740
56740
|
var import_react_primitive = require_dist35();
|
56741
56741
|
var import_react_use_layout_effect = require_dist29();
|
56742
|
-
var
|
56742
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
56743
56743
|
var PORTAL_NAME = "Portal";
|
56744
56744
|
var Portal = React3.forwardRef((props, forwardedRef) => {
|
56745
56745
|
const { container: containerProp, ...portalProps } = props;
|
56746
56746
|
const [mounted, setMounted] = React3.useState(false);
|
56747
56747
|
(0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
|
56748
56748
|
const container = containerProp || mounted && globalThis?.document?.body;
|
56749
|
-
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0,
|
56749
|
+
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
56750
56750
|
});
|
56751
56751
|
Portal.displayName = PORTAL_NAME;
|
56752
56752
|
var Root = Portal;
|
@@ -57063,7 +57063,7 @@ var require_dist43 = __commonJS({
|
|
57063
57063
|
var import_react_remove_scroll = require_es57();
|
57064
57064
|
var import_aria_hidden = require_es5();
|
57065
57065
|
var import_react_slot = require_dist34();
|
57066
|
-
var
|
57066
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
57067
57067
|
var DIALOG_NAME = "Dialog";
|
57068
57068
|
var [createDialogContext, createDialogScope] = (0, import_react_context.createContextScope)(DIALOG_NAME);
|
57069
57069
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
@@ -57084,7 +57084,7 @@ var require_dist43 = __commonJS({
|
|
57084
57084
|
onChange: onOpenChange,
|
57085
57085
|
caller: DIALOG_NAME
|
57086
57086
|
});
|
57087
|
-
return /* @__PURE__ */ (0,
|
57087
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57088
57088
|
DialogProvider,
|
57089
57089
|
{
|
57090
57090
|
scope: __scopeDialog,
|
@@ -57108,7 +57108,7 @@ var require_dist43 = __commonJS({
|
|
57108
57108
|
const { __scopeDialog, ...triggerProps } = props;
|
57109
57109
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
57110
57110
|
const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
57111
|
-
return /* @__PURE__ */ (0,
|
57111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57112
57112
|
import_react_primitive.Primitive.button,
|
57113
57113
|
{
|
57114
57114
|
type: "button",
|
@@ -57131,7 +57131,7 @@ var require_dist43 = __commonJS({
|
|
57131
57131
|
var DialogPortal = (props) => {
|
57132
57132
|
const { __scopeDialog, forceMount, children, container } = props;
|
57133
57133
|
const context = useDialogContext(PORTAL_NAME, __scopeDialog);
|
57134
|
-
return /* @__PURE__ */ (0,
|
57134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
|
57135
57135
|
};
|
57136
57136
|
DialogPortal.displayName = PORTAL_NAME;
|
57137
57137
|
var OVERLAY_NAME = "DialogOverlay";
|
@@ -57140,7 +57140,7 @@ var require_dist43 = __commonJS({
|
|
57140
57140
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
57141
57141
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
57142
57142
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
57143
|
-
return context.modal ? /* @__PURE__ */ (0,
|
57143
|
+
return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
57144
57144
|
}
|
57145
57145
|
);
|
57146
57146
|
DialogOverlay.displayName = OVERLAY_NAME;
|
@@ -57152,7 +57152,7 @@ var require_dist43 = __commonJS({
|
|
57152
57152
|
return (
|
57153
57153
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
57154
57154
|
// ie. when `Overlay` and `Content` are siblings
|
57155
|
-
/* @__PURE__ */ (0,
|
57155
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57156
57156
|
import_react_primitive.Primitive.div,
|
57157
57157
|
{
|
57158
57158
|
"data-state": getState(context.open),
|
@@ -57170,7 +57170,7 @@ var require_dist43 = __commonJS({
|
|
57170
57170
|
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
|
57171
57171
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
57172
57172
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
57173
|
-
return /* @__PURE__ */ (0,
|
57173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
57174
57174
|
}
|
57175
57175
|
);
|
57176
57176
|
DialogContent.displayName = CONTENT_NAME;
|
@@ -57184,7 +57184,7 @@ var require_dist43 = __commonJS({
|
|
57184
57184
|
if (content)
|
57185
57185
|
return (0, import_aria_hidden.hideOthers)(content);
|
57186
57186
|
}, []);
|
57187
|
-
return /* @__PURE__ */ (0,
|
57187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57188
57188
|
DialogContentImpl,
|
57189
57189
|
{
|
57190
57190
|
...props,
|
@@ -57215,7 +57215,7 @@ var require_dist43 = __commonJS({
|
|
57215
57215
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
57216
57216
|
const hasInteractedOutsideRef = React3.useRef(false);
|
57217
57217
|
const hasPointerDownOutsideRef = React3.useRef(false);
|
57218
|
-
return /* @__PURE__ */ (0,
|
57218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57219
57219
|
DialogContentImpl,
|
57220
57220
|
{
|
57221
57221
|
...props,
|
@@ -57259,8 +57259,8 @@ var require_dist43 = __commonJS({
|
|
57259
57259
|
const contentRef = React3.useRef(null);
|
57260
57260
|
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
|
57261
57261
|
(0, import_react_focus_guards.useFocusGuards)();
|
57262
|
-
return /* @__PURE__ */ (0,
|
57263
|
-
/* @__PURE__ */ (0,
|
57262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
57263
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57264
57264
|
import_react_focus_scope.FocusScope,
|
57265
57265
|
{
|
57266
57266
|
asChild: true,
|
@@ -57268,7 +57268,7 @@ var require_dist43 = __commonJS({
|
|
57268
57268
|
trapped: trapFocus,
|
57269
57269
|
onMountAutoFocus: onOpenAutoFocus,
|
57270
57270
|
onUnmountAutoFocus: onCloseAutoFocus,
|
57271
|
-
children: /* @__PURE__ */ (0,
|
57271
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57272
57272
|
import_react_dismissable_layer.DismissableLayer,
|
57273
57273
|
{
|
57274
57274
|
role: "dialog",
|
@@ -57283,9 +57283,9 @@ var require_dist43 = __commonJS({
|
|
57283
57283
|
)
|
57284
57284
|
}
|
57285
57285
|
),
|
57286
|
-
/* @__PURE__ */ (0,
|
57287
|
-
/* @__PURE__ */ (0,
|
57288
|
-
/* @__PURE__ */ (0,
|
57286
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
57287
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TitleWarning, { titleId: context.titleId }),
|
57288
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
57289
57289
|
] })
|
57290
57290
|
] });
|
57291
57291
|
}
|
@@ -57295,7 +57295,7 @@ var require_dist43 = __commonJS({
|
|
57295
57295
|
(props, forwardedRef) => {
|
57296
57296
|
const { __scopeDialog, ...titleProps } = props;
|
57297
57297
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
57298
|
-
return /* @__PURE__ */ (0,
|
57298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
57299
57299
|
}
|
57300
57300
|
);
|
57301
57301
|
DialogTitle.displayName = TITLE_NAME;
|
@@ -57304,7 +57304,7 @@ var require_dist43 = __commonJS({
|
|
57304
57304
|
(props, forwardedRef) => {
|
57305
57305
|
const { __scopeDialog, ...descriptionProps } = props;
|
57306
57306
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
57307
|
-
return /* @__PURE__ */ (0,
|
57307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
57308
57308
|
}
|
57309
57309
|
);
|
57310
57310
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
@@ -57313,7 +57313,7 @@ var require_dist43 = __commonJS({
|
|
57313
57313
|
(props, forwardedRef) => {
|
57314
57314
|
const { __scopeDialog, ...closeProps } = props;
|
57315
57315
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
57316
|
-
return /* @__PURE__ */ (0,
|
57316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
57317
57317
|
import_react_primitive.Primitive.button,
|
57318
57318
|
{
|
57319
57319
|
type: "button",
|
@@ -57913,13 +57913,13 @@ var require_dist47 = __commonJS({
|
|
57913
57913
|
});
|
57914
57914
|
module.exports = __toCommonJS2(index_exports);
|
57915
57915
|
var React3 = __toESM2(require_react());
|
57916
|
-
var
|
57916
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
57917
57917
|
function createContext2(rootComponentName, defaultContext) {
|
57918
57918
|
const Context = React3.createContext(defaultContext);
|
57919
57919
|
const Provider = (props) => {
|
57920
57920
|
const { children, ...context } = props;
|
57921
57921
|
const value = React3.useMemo(() => context, Object.values(context));
|
57922
|
-
return /* @__PURE__ */ (0,
|
57922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
57923
57923
|
};
|
57924
57924
|
Provider.displayName = rootComponentName + "Provider";
|
57925
57925
|
function useContext2(consumerName) {
|
@@ -57942,7 +57942,7 @@ var require_dist47 = __commonJS({
|
|
57942
57942
|
const { scope, children, ...context } = props;
|
57943
57943
|
const Context = scope?.[scopeName]?.[index3] || BaseContext;
|
57944
57944
|
const value = React3.useMemo(() => context, Object.values(context));
|
57945
|
-
return /* @__PURE__ */ (0,
|
57945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Context.Provider, { value, children });
|
57946
57946
|
};
|
57947
57947
|
Provider.displayName = rootComponentName + "Provider";
|
57948
57948
|
function useContext2(consumerName, scope) {
|
@@ -58416,7 +58416,7 @@ var require_dist53 = __commonJS({
|
|
58416
58416
|
module.exports = __toCommonJS2(index_exports);
|
58417
58417
|
var React3 = __toESM2(require_react());
|
58418
58418
|
var import_react_compose_refs = require_dist52();
|
58419
|
-
var
|
58419
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
58420
58420
|
// @__NO_SIDE_EFFECTS__
|
58421
58421
|
function createSlot(ownerName) {
|
58422
58422
|
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
@@ -58435,9 +58435,9 @@ var require_dist53 = __commonJS({
|
|
58435
58435
|
return child;
|
58436
58436
|
}
|
58437
58437
|
});
|
58438
|
-
return /* @__PURE__ */ (0,
|
58438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
|
58439
58439
|
}
|
58440
|
-
return /* @__PURE__ */ (0,
|
58440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
58441
58441
|
});
|
58442
58442
|
Slot2.displayName = `${ownerName}.Slot`;
|
58443
58443
|
return Slot2;
|
@@ -58465,7 +58465,7 @@ var require_dist53 = __commonJS({
|
|
58465
58465
|
// @__NO_SIDE_EFFECTS__
|
58466
58466
|
function createSlottable(ownerName) {
|
58467
58467
|
const Slottable2 = ({ children }) => {
|
58468
|
-
return /* @__PURE__ */ (0,
|
58468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children });
|
58469
58469
|
};
|
58470
58470
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
58471
58471
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
@@ -58556,7 +58556,7 @@ var require_dist54 = __commonJS({
|
|
58556
58556
|
var React3 = __toESM2(require_react());
|
58557
58557
|
var ReactDOM2 = __toESM2(require_react_dom());
|
58558
58558
|
var import_react_slot = require_dist53();
|
58559
|
-
var
|
58559
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
58560
58560
|
var NODES = [
|
58561
58561
|
"a",
|
58562
58562
|
"button",
|
@@ -58584,7 +58584,7 @@ var require_dist54 = __commonJS({
|
|
58584
58584
|
if (typeof window !== "undefined") {
|
58585
58585
|
window[Symbol.for("radix-ui")] = true;
|
58586
58586
|
}
|
58587
|
-
return /* @__PURE__ */ (0,
|
58587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
58588
58588
|
});
|
58589
58589
|
Node2.displayName = `Primitive.${node}`;
|
58590
58590
|
return { ...primitive, [node]: Node2 };
|
@@ -58743,7 +58743,7 @@ var require_dist57 = __commonJS({
|
|
58743
58743
|
var import_react_compose_refs = require_dist46();
|
58744
58744
|
var import_react_use_callback_ref = require_dist55();
|
58745
58745
|
var import_react_use_escape_keydown = require_dist56();
|
58746
|
-
var
|
58746
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
58747
58747
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
58748
58748
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
58749
58749
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
@@ -58838,7 +58838,7 @@ var require_dist57 = __commonJS({
|
|
58838
58838
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
58839
58839
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
58840
58840
|
}, []);
|
58841
|
-
return /* @__PURE__ */ (0,
|
58841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
58842
58842
|
import_react_primitive.Primitive.div,
|
58843
58843
|
{
|
58844
58844
|
...layerProps,
|
@@ -58872,7 +58872,7 @@ var require_dist57 = __commonJS({
|
|
58872
58872
|
};
|
58873
58873
|
}
|
58874
58874
|
}, [context.branches]);
|
58875
|
-
return /* @__PURE__ */ (0,
|
58875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...props, ref: composedRefs });
|
58876
58876
|
});
|
58877
58877
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
58878
58878
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
@@ -59048,7 +59048,7 @@ var require_dist59 = __commonJS({
|
|
59048
59048
|
var import_react_compose_refs = require_dist46();
|
59049
59049
|
var import_react_primitive = require_dist54();
|
59050
59050
|
var import_react_use_callback_ref = require_dist58();
|
59051
|
-
var
|
59051
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
59052
59052
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
59053
59053
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
59054
59054
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
@@ -59178,7 +59178,7 @@ var require_dist59 = __commonJS({
|
|
59178
59178
|
},
|
59179
59179
|
[loop, trapped, focusScope.paused]
|
59180
59180
|
);
|
59181
|
-
return /* @__PURE__ */ (0,
|
59181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
59182
59182
|
});
|
59183
59183
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
59184
59184
|
function focusFirst(candidates, { select = false } = {}) {
|
@@ -59355,14 +59355,14 @@ var require_dist61 = __commonJS({
|
|
59355
59355
|
var import_react_dom = __toESM2(require_react_dom());
|
59356
59356
|
var import_react_primitive = require_dist54();
|
59357
59357
|
var import_react_use_layout_effect = require_dist60();
|
59358
|
-
var
|
59358
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
59359
59359
|
var PORTAL_NAME = "Portal";
|
59360
59360
|
var Portal = React3.forwardRef((props, forwardedRef) => {
|
59361
59361
|
const { container: containerProp, ...portalProps } = props;
|
59362
59362
|
const [mounted, setMounted] = React3.useState(false);
|
59363
59363
|
(0, import_react_use_layout_effect.useLayoutEffect)(() => setMounted(true), []);
|
59364
59364
|
const container = containerProp || mounted && globalThis?.document?.body;
|
59365
|
-
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0,
|
59365
|
+
return container ? import_react_dom.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
59366
59366
|
});
|
59367
59367
|
Portal.displayName = PORTAL_NAME;
|
59368
59368
|
var Root = Portal;
|
@@ -59721,7 +59721,7 @@ var require_dist65 = __commonJS({
|
|
59721
59721
|
var import_react_remove_scroll = require_es57();
|
59722
59722
|
var import_aria_hidden = require_es5();
|
59723
59723
|
var import_react_slot = require_dist53();
|
59724
|
-
var
|
59724
|
+
var import_jsx_runtime52 = require_jsx_runtime();
|
59725
59725
|
var DIALOG_NAME = "Dialog";
|
59726
59726
|
var [createDialogContext, createDialogScope] = (0, import_react_context.createContextScope)(DIALOG_NAME);
|
59727
59727
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
@@ -59742,7 +59742,7 @@ var require_dist65 = __commonJS({
|
|
59742
59742
|
onChange: onOpenChange,
|
59743
59743
|
caller: DIALOG_NAME
|
59744
59744
|
});
|
59745
|
-
return /* @__PURE__ */ (0,
|
59745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59746
59746
|
DialogProvider,
|
59747
59747
|
{
|
59748
59748
|
scope: __scopeDialog,
|
@@ -59766,7 +59766,7 @@ var require_dist65 = __commonJS({
|
|
59766
59766
|
const { __scopeDialog, ...triggerProps } = props;
|
59767
59767
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
59768
59768
|
const composedTriggerRef = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.triggerRef);
|
59769
|
-
return /* @__PURE__ */ (0,
|
59769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59770
59770
|
import_react_primitive.Primitive.button,
|
59771
59771
|
{
|
59772
59772
|
type: "button",
|
@@ -59789,7 +59789,7 @@ var require_dist65 = __commonJS({
|
|
59789
59789
|
var DialogPortal = (props) => {
|
59790
59790
|
const { __scopeDialog, forceMount, children, container } = props;
|
59791
59791
|
const context = useDialogContext(PORTAL_NAME, __scopeDialog);
|
59792
|
-
return /* @__PURE__ */ (0,
|
59792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PortalProvider, { scope: __scopeDialog, forceMount, children: React3.Children.map(children, (child) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_portal.Portal, { asChild: true, container, children: child }) })) });
|
59793
59793
|
};
|
59794
59794
|
DialogPortal.displayName = PORTAL_NAME;
|
59795
59795
|
var OVERLAY_NAME = "DialogOverlay";
|
@@ -59798,7 +59798,7 @@ var require_dist65 = __commonJS({
|
|
59798
59798
|
const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
|
59799
59799
|
const { forceMount = portalContext.forceMount, ...overlayProps } = props;
|
59800
59800
|
const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
|
59801
|
-
return context.modal ? /* @__PURE__ */ (0,
|
59801
|
+
return context.modal ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
59802
59802
|
}
|
59803
59803
|
);
|
59804
59804
|
DialogOverlay.displayName = OVERLAY_NAME;
|
@@ -59810,7 +59810,7 @@ var require_dist65 = __commonJS({
|
|
59810
59810
|
return (
|
59811
59811
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
59812
59812
|
// ie. when `Overlay` and `Content` are siblings
|
59813
|
-
/* @__PURE__ */ (0,
|
59813
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_remove_scroll.RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59814
59814
|
import_react_primitive.Primitive.div,
|
59815
59815
|
{
|
59816
59816
|
"data-state": getState(context.open),
|
@@ -59828,7 +59828,7 @@ var require_dist65 = __commonJS({
|
|
59828
59828
|
const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
|
59829
59829
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
59830
59830
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
59831
|
-
return /* @__PURE__ */ (0,
|
59831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_presence.Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
59832
59832
|
}
|
59833
59833
|
);
|
59834
59834
|
DialogContent.displayName = CONTENT_NAME;
|
@@ -59842,7 +59842,7 @@ var require_dist65 = __commonJS({
|
|
59842
59842
|
if (content)
|
59843
59843
|
return (0, import_aria_hidden.hideOthers)(content);
|
59844
59844
|
}, []);
|
59845
|
-
return /* @__PURE__ */ (0,
|
59845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59846
59846
|
DialogContentImpl,
|
59847
59847
|
{
|
59848
59848
|
...props,
|
@@ -59873,7 +59873,7 @@ var require_dist65 = __commonJS({
|
|
59873
59873
|
const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
|
59874
59874
|
const hasInteractedOutsideRef = React3.useRef(false);
|
59875
59875
|
const hasPointerDownOutsideRef = React3.useRef(false);
|
59876
|
-
return /* @__PURE__ */ (0,
|
59876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59877
59877
|
DialogContentImpl,
|
59878
59878
|
{
|
59879
59879
|
...props,
|
@@ -59917,8 +59917,8 @@ var require_dist65 = __commonJS({
|
|
59917
59917
|
const contentRef = React3.useRef(null);
|
59918
59918
|
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, contentRef);
|
59919
59919
|
(0, import_react_focus_guards.useFocusGuards)();
|
59920
|
-
return /* @__PURE__ */ (0,
|
59921
|
-
/* @__PURE__ */ (0,
|
59920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
59921
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59922
59922
|
import_react_focus_scope.FocusScope,
|
59923
59923
|
{
|
59924
59924
|
asChild: true,
|
@@ -59926,7 +59926,7 @@ var require_dist65 = __commonJS({
|
|
59926
59926
|
trapped: trapFocus,
|
59927
59927
|
onMountAutoFocus: onOpenAutoFocus,
|
59928
59928
|
onUnmountAutoFocus: onCloseAutoFocus,
|
59929
|
-
children: /* @__PURE__ */ (0,
|
59929
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59930
59930
|
import_react_dismissable_layer.DismissableLayer,
|
59931
59931
|
{
|
59932
59932
|
role: "dialog",
|
@@ -59941,9 +59941,9 @@ var require_dist65 = __commonJS({
|
|
59941
59941
|
)
|
59942
59942
|
}
|
59943
59943
|
),
|
59944
|
-
/* @__PURE__ */ (0,
|
59945
|
-
/* @__PURE__ */ (0,
|
59946
|
-
/* @__PURE__ */ (0,
|
59944
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
59945
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TitleWarning, { titleId: context.titleId }),
|
59946
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
|
59947
59947
|
] })
|
59948
59948
|
] });
|
59949
59949
|
}
|
@@ -59953,7 +59953,7 @@ var require_dist65 = __commonJS({
|
|
59953
59953
|
(props, forwardedRef) => {
|
59954
59954
|
const { __scopeDialog, ...titleProps } = props;
|
59955
59955
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
59956
|
-
return /* @__PURE__ */ (0,
|
59956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
59957
59957
|
}
|
59958
59958
|
);
|
59959
59959
|
DialogTitle.displayName = TITLE_NAME;
|
@@ -59962,7 +59962,7 @@ var require_dist65 = __commonJS({
|
|
59962
59962
|
(props, forwardedRef) => {
|
59963
59963
|
const { __scopeDialog, ...descriptionProps } = props;
|
59964
59964
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
59965
|
-
return /* @__PURE__ */ (0,
|
59965
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_primitive.Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
59966
59966
|
}
|
59967
59967
|
);
|
59968
59968
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
@@ -59971,7 +59971,7 @@ var require_dist65 = __commonJS({
|
|
59971
59971
|
(props, forwardedRef) => {
|
59972
59972
|
const { __scopeDialog, ...closeProps } = props;
|
59973
59973
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
59974
|
-
return /* @__PURE__ */ (0,
|
59974
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
59975
59975
|
import_react_primitive.Primitive.button,
|
59976
59976
|
{
|
59977
59977
|
type: "button",
|
@@ -69721,7 +69721,7 @@ var require_client_types = __commonJS({
|
|
69721
69721
|
exports.simpleToMedia = simpleToMedia;
|
69722
69722
|
exports.outputStreamComponents = outputStreamComponents;
|
69723
69723
|
exports.inputMedia = inputMedia;
|
69724
|
-
exports.discriminatedForm =
|
69724
|
+
exports.discriminatedForm = discriminatedForm5;
|
69725
69725
|
exports.mappingsToStreams = mappingsToStreams;
|
69726
69726
|
exports.singleAvStreamMapping = singleAvStreamMapping;
|
69727
69727
|
var document_1 = require_document();
|
@@ -69813,7 +69813,7 @@ var require_client_types = __commonJS({
|
|
69813
69813
|
tooltip: "rgba(255, 255, 255, 0.9)"
|
69814
69814
|
}
|
69815
69815
|
};
|
69816
|
-
function
|
69816
|
+
function discriminatedForm5(setup) {
|
69817
69817
|
const options = Object.keys(setup).map((k) => ({
|
69818
69818
|
key: k,
|
69819
69819
|
display: setup[k].display
|
@@ -69833,7 +69833,7 @@ var require_client_types = __commonJS({
|
|
69833
69833
|
}
|
69834
69834
|
};
|
69835
69835
|
}
|
69836
|
-
|
69836
|
+
discriminatedForm5.kind = function(setup) {
|
69837
69837
|
const options = Object.keys(setup).map((k) => ({
|
69838
69838
|
key: k,
|
69839
69839
|
display: setup[k].display
|
@@ -85603,9 +85603,54 @@ function FullscreenView({ state, config }) {
|
|
85603
85603
|
return;
|
85604
85604
|
const element = document.getElementById(`${id}-video`);
|
85605
85605
|
if (import_hls.default.isSupported()) {
|
85606
|
-
|
85606
|
+
let widevineLicenseUrl;
|
85607
|
+
const headers = {};
|
85608
|
+
if (config.drmProvider === "ezdrm") {
|
85609
|
+
if (config.__global?.ezdrmConfig?.pX || state.drmToken) {
|
85610
|
+
widevineLicenseUrl = `https://widevine-dash.ezdrm.com/widevine-php/widevine-foreignkey.php?pX=${config.__global?.ezdrmConfig?.pX || state.drmToken}`;
|
85611
|
+
}
|
85612
|
+
}
|
85613
|
+
if (config.drmProvider === "axinom") {
|
85614
|
+
widevineLicenseUrl = `https://drm-widevine-licensing.axprod.net/AcquireLicense`;
|
85615
|
+
headers["X-AxDrm-Message"] = state.drmToken;
|
85616
|
+
}
|
85617
|
+
const hls = new import_hls.default({
|
85618
|
+
widevineLicenseUrl,
|
85619
|
+
emeEnabled: !!widevineLicenseUrl,
|
85620
|
+
licenseXhrSetup: (xhr) => {
|
85621
|
+
for (const k in headers) {
|
85622
|
+
const v = headers[k];
|
85623
|
+
if (v !== void 0) {
|
85624
|
+
xhr.setRequestHeader(k, v);
|
85625
|
+
}
|
85626
|
+
}
|
85627
|
+
}
|
85628
|
+
});
|
85607
85629
|
hls.loadSource(url);
|
85608
85630
|
hls.attachMedia(element);
|
85631
|
+
let errors = 0;
|
85632
|
+
hls.on(import_hls.default.Events.ERROR, function(_event, data) {
|
85633
|
+
if (data.fatal) {
|
85634
|
+
if (errors++ > 10)
|
85635
|
+
return hls.destroy();
|
85636
|
+
switch (data.type) {
|
85637
|
+
case import_hls.default.ErrorTypes.NETWORK_ERROR:
|
85638
|
+
console.error("HLS network error", data);
|
85639
|
+
setTimeout(() => hls.loadSource(url), 1e3);
|
85640
|
+
break;
|
85641
|
+
case import_hls.default.ErrorTypes.MEDIA_ERROR:
|
85642
|
+
console.error("HLS media error", data);
|
85643
|
+
setTimeout(() => hls.recoverMediaError(), 1e3);
|
85644
|
+
break;
|
85645
|
+
default:
|
85646
|
+
hls.destroy();
|
85647
|
+
break;
|
85648
|
+
}
|
85649
|
+
}
|
85650
|
+
});
|
85651
|
+
return () => {
|
85652
|
+
hls.destroy();
|
85653
|
+
};
|
85609
85654
|
} else if (element.canPlayType("application/vnd.apple.mpegurl")) {
|
85610
85655
|
element.src = url;
|
85611
85656
|
}
|
@@ -85620,8 +85665,74 @@ var fullscreen_default = FullscreenView;
|
|
85620
85665
|
|
85621
85666
|
// build/output.autoCmaf/inline-view.js
|
85622
85667
|
var import_jsx_runtime13 = __toESM(require_jsx_runtime());
|
85623
|
-
|
85624
|
-
|
85668
|
+
var import_hls2 = __toESM(require_hls());
|
85669
|
+
var import_react4 = __toESM(require_react());
|
85670
|
+
function InlineView5({ state, config }) {
|
85671
|
+
const url = state.url;
|
85672
|
+
const id = config.id;
|
85673
|
+
const previewVideo = (0, import_react4.useRef)(null);
|
85674
|
+
const [showPreview, setShowPreview] = (0, import_react4.useState)(config.showPreview ?? true);
|
85675
|
+
(0, import_react4.useEffect)(() => {
|
85676
|
+
if (!url)
|
85677
|
+
return;
|
85678
|
+
if (!previewVideo.current)
|
85679
|
+
return;
|
85680
|
+
if (!showPreview)
|
85681
|
+
return;
|
85682
|
+
if (import_hls2.default.isSupported()) {
|
85683
|
+
let widevineLicenseUrl;
|
85684
|
+
const headers = {};
|
85685
|
+
if (config.drmProvider === "ezdrm") {
|
85686
|
+
if (config.__global?.ezdrmConfig?.pX || state.drmToken) {
|
85687
|
+
widevineLicenseUrl = `https://widevine-dash.ezdrm.com/widevine-php/widevine-foreignkey.php?pX=${config.__global?.ezdrmConfig?.pX || state.drmToken}`;
|
85688
|
+
}
|
85689
|
+
}
|
85690
|
+
if (config.drmProvider === "axinom") {
|
85691
|
+
widevineLicenseUrl = `https://drm-widevine-licensing.axprod.net/AcquireLicense`;
|
85692
|
+
headers["X-AxDrm-Message"] = state.drmToken;
|
85693
|
+
}
|
85694
|
+
const hls = new import_hls2.default({
|
85695
|
+
widevineLicenseUrl,
|
85696
|
+
emeEnabled: !!widevineLicenseUrl,
|
85697
|
+
licenseXhrSetup: (xhr) => {
|
85698
|
+
for (const k in headers) {
|
85699
|
+
const v = headers[k];
|
85700
|
+
if (v !== void 0) {
|
85701
|
+
xhr.setRequestHeader(k, v);
|
85702
|
+
}
|
85703
|
+
}
|
85704
|
+
}
|
85705
|
+
});
|
85706
|
+
hls.loadSource(url);
|
85707
|
+
hls.attachMedia(previewVideo.current);
|
85708
|
+
let errors = 0;
|
85709
|
+
hls.on(import_hls2.default.Events.ERROR, function(_event, data) {
|
85710
|
+
if (data.fatal) {
|
85711
|
+
if (errors++ > 10)
|
85712
|
+
return hls.destroy();
|
85713
|
+
switch (data.type) {
|
85714
|
+
case import_hls2.default.ErrorTypes.NETWORK_ERROR:
|
85715
|
+
console.error("HLS network error", data);
|
85716
|
+
setTimeout(() => hls.loadSource(url), 1e3);
|
85717
|
+
break;
|
85718
|
+
case import_hls2.default.ErrorTypes.MEDIA_ERROR:
|
85719
|
+
console.error("HLS media error", data);
|
85720
|
+
setTimeout(() => hls.recoverMediaError(), 1e3);
|
85721
|
+
break;
|
85722
|
+
default:
|
85723
|
+
hls.destroy();
|
85724
|
+
break;
|
85725
|
+
}
|
85726
|
+
}
|
85727
|
+
});
|
85728
|
+
return () => {
|
85729
|
+
hls.destroy();
|
85730
|
+
};
|
85731
|
+
} else if (previewVideo.current.canPlayType("application/vnd.apple.mpegurl")) {
|
85732
|
+
previewVideo.current.src = url;
|
85733
|
+
}
|
85734
|
+
}, [config.__global?.ezdrmConfig?.pX, config.drmProvider, state.drmToken, url, showPreview]);
|
85735
|
+
return (0, import_jsx_runtime13.jsxs)("div", { className: "cmaf-output", children: [state.enabled ? (0, import_jsx_runtime13.jsx)("div", { className: "active text-green-500 dark:text-green-300", children: "Output enabled" }) : (0, import_jsx_runtime13.jsx)("div", { className: "disabled text-gray-500 dark:text-gray-400", children: "Output disabled" }), (0, import_jsx_runtime13.jsxs)("div", { className: "flex items-center gap-2", children: [(0, import_jsx_runtime13.jsx)("input", { type: "checkbox", id: `video-toggle-${id}`, checked: showPreview, onChange: (e) => setShowPreview(e.target.checked), className: "h-4 w-4" }), (0, import_jsx_runtime13.jsx)("label", { htmlFor: `video-toggle-${id}`, className: "text-sm", children: "Show Preview" })] }), !url ? (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, {}) : (0, import_jsx_runtime13.jsx)("div", { className: "mb-5", children: (0, import_jsx_runtime13.jsx)("video", { ref: previewVideo, autoPlay: true, muted: true, id: `${id}-video` }) })] });
|
85625
85736
|
}
|
85626
85737
|
var inline_view_default5 = InlineView5;
|
85627
85738
|
|
@@ -90522,7 +90633,7 @@ var import_config3 = __toESM(require_config());
|
|
90522
90633
|
|
90523
90634
|
// build/output.preview/inline-view.js
|
90524
90635
|
var import_jsx_runtime18 = __toESM(require_jsx_runtime());
|
90525
|
-
var
|
90636
|
+
var import_react6 = __toESM(require_react());
|
90526
90637
|
|
90527
90638
|
// build/shared/whep.js
|
90528
90639
|
var import_webrtc_client = __toESM(require_webrtc_client());
|
@@ -90572,9 +90683,9 @@ function createPlayerElement(stream, container) {
|
|
90572
90683
|
function InlineView7({ state, config, raise }) {
|
90573
90684
|
const url = state.url;
|
90574
90685
|
const id = config.id;
|
90575
|
-
const [showPreview, setShowPreview] = (0,
|
90576
|
-
const [_existing, setClient] = (0,
|
90577
|
-
const createClient = (0,
|
90686
|
+
const [showPreview, setShowPreview] = (0, import_react6.useState)(config.showPreview ?? true);
|
90687
|
+
const [_existing, setClient] = (0, import_react6.useState)(null);
|
90688
|
+
const createClient = (0, import_react6.useCallback)((url2) => {
|
90578
90689
|
const client = new NorskWhepClient({
|
90579
90690
|
url: url2,
|
90580
90691
|
container: document.getElementById(`preview-${id}`) ?? void 0
|
@@ -90582,11 +90693,11 @@ function InlineView7({ state, config, raise }) {
|
|
90582
90693
|
client.start().catch(console.error);
|
90583
90694
|
return client;
|
90584
90695
|
}, [id]);
|
90585
|
-
const cleanupClient = (0,
|
90586
|
-
console.log("CLEANING UP CLIENT");
|
90696
|
+
const cleanupClient = (0, import_react6.useCallback)(() => {
|
90587
90697
|
setClient((client) => {
|
90588
90698
|
if (!client)
|
90589
90699
|
return null;
|
90700
|
+
console.log("CLEANING UP CLIENT");
|
90590
90701
|
client.outputVideoTracks.forEach((track) => track.stop());
|
90591
90702
|
if (client.outputAudioTrack) {
|
90592
90703
|
client.outputAudioTrack.stop();
|
@@ -90598,8 +90709,8 @@ function InlineView7({ state, config, raise }) {
|
|
90598
90709
|
return null;
|
90599
90710
|
});
|
90600
90711
|
}, []);
|
90601
|
-
const [imageUrl, setImageUrl] = (0,
|
90602
|
-
(0,
|
90712
|
+
const [imageUrl, setImageUrl] = (0, import_react6.useState)(null);
|
90713
|
+
(0, import_react6.useEffect)(() => {
|
90603
90714
|
if (!url || !showPreview) {
|
90604
90715
|
setImageUrl(null);
|
90605
90716
|
return;
|
@@ -90610,7 +90721,7 @@ function InlineView7({ state, config, raise }) {
|
|
90610
90721
|
}
|
90611
90722
|
setImageUrl(url);
|
90612
90723
|
}, [url, showPreview, config.previewMode]);
|
90613
|
-
(0,
|
90724
|
+
(0, import_react6.useEffect)(() => {
|
90614
90725
|
cleanupClient();
|
90615
90726
|
if (config.previewMode === "image") {
|
90616
90727
|
return;
|
@@ -90629,10 +90740,10 @@ function InlineView7({ state, config, raise }) {
|
|
90629
90740
|
id,
|
90630
90741
|
createClient
|
90631
90742
|
]);
|
90632
|
-
(0,
|
90743
|
+
(0, import_react6.useEffect)(() => {
|
90633
90744
|
setShowPreview(config.showPreview ?? true);
|
90634
90745
|
}, [config.showPreview]);
|
90635
|
-
(0,
|
90746
|
+
(0, import_react6.useEffect)(() => raise?.(), [raise]);
|
90636
90747
|
if (!url)
|
90637
90748
|
return (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: "..." });
|
90638
90749
|
function percentage(levels) {
|
@@ -91369,13 +91480,13 @@ var import_config4 = __toESM(require_config());
|
|
91369
91480
|
|
91370
91481
|
// build/output.whep/inline-view.js
|
91371
91482
|
var import_jsx_runtime25 = __toESM(require_jsx_runtime());
|
91372
|
-
var
|
91483
|
+
var import_react7 = __toESM(require_react());
|
91373
91484
|
function InlineView12({ state, config, raise }) {
|
91374
91485
|
const url = state.url;
|
91375
91486
|
const id = config.id;
|
91376
|
-
const [showPreview, setShowPreview] = (0,
|
91377
|
-
const [_existing, setClient] = (0,
|
91378
|
-
const createClient = (0,
|
91487
|
+
const [showPreview, setShowPreview] = (0, import_react7.useState)(config.showPreview ?? true);
|
91488
|
+
const [_existing, setClient] = (0, import_react7.useState)(null);
|
91489
|
+
const createClient = (0, import_react7.useCallback)((url2) => {
|
91379
91490
|
const newClient = new NorskWhepClient({
|
91380
91491
|
url: url2,
|
91381
91492
|
container: document.getElementById(`whep-${id}`) ?? void 0
|
@@ -91383,7 +91494,7 @@ function InlineView12({ state, config, raise }) {
|
|
91383
91494
|
newClient.start().catch(console.error);
|
91384
91495
|
return newClient;
|
91385
91496
|
}, [id]);
|
91386
|
-
const cleanupClient = (0,
|
91497
|
+
const cleanupClient = (0, import_react7.useCallback)((client) => {
|
91387
91498
|
client.outputVideoTracks.forEach((track) => track.stop());
|
91388
91499
|
if (client.outputAudioTrack) {
|
91389
91500
|
client.outputAudioTrack.stop();
|
@@ -91393,7 +91504,7 @@ function InlineView12({ state, config, raise }) {
|
|
91393
91504
|
video.remove();
|
91394
91505
|
});
|
91395
91506
|
}, []);
|
91396
|
-
(0,
|
91507
|
+
(0, import_react7.useEffect)(() => {
|
91397
91508
|
setClient((existing) => {
|
91398
91509
|
if (existing)
|
91399
91510
|
cleanupClient(existing);
|
@@ -91407,10 +91518,10 @@ function InlineView12({ state, config, raise }) {
|
|
91407
91518
|
cleanupClient(newClient);
|
91408
91519
|
};
|
91409
91520
|
}, [url, showPreview, createClient, id, cleanupClient]);
|
91410
|
-
(0,
|
91521
|
+
(0, import_react7.useEffect)(() => {
|
91411
91522
|
setShowPreview(config.showPreview ?? true);
|
91412
91523
|
}, [config.showPreview]);
|
91413
|
-
(0,
|
91524
|
+
(0, import_react7.useEffect)(() => raise && raise(), [raise]);
|
91414
91525
|
if (!url)
|
91415
91526
|
return (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: "..." });
|
91416
91527
|
const videoStyles = `
|
@@ -91716,7 +91827,7 @@ var inline_view_default13 = InlineView13;
|
|
91716
91827
|
|
91717
91828
|
// build/processor.audioMixer/fullscreen-view.js
|
91718
91829
|
var import_jsx_runtime29 = __toESM(require_jsx_runtime());
|
91719
|
-
var
|
91830
|
+
var import_react8 = __toESM(require_react());
|
91720
91831
|
function FullScreen({ state, sendCommand }) {
|
91721
91832
|
const initialSliders = [];
|
91722
91833
|
const initialPreMuteSliders = [];
|
@@ -91729,9 +91840,9 @@ function FullScreen({ state, sendCommand }) {
|
|
91729
91840
|
initialSliders.push(state.output.configuredGain || 0);
|
91730
91841
|
initialPreMuteSliders.push(state.output.configuredGain || 0);
|
91731
91842
|
initialCanSetVolume.push(true);
|
91732
|
-
const [canSetVolume, setCanSetVolume] = (0,
|
91733
|
-
const [sliderValues, setSliderValue] = (0,
|
91734
|
-
const [preMuteValues, setPreMuteValues] = (0,
|
91843
|
+
const [canSetVolume, setCanSetVolume] = (0, import_react8.useState)(initialCanSetVolume);
|
91844
|
+
const [sliderValues, setSliderValue] = (0, import_react8.useState)(initialSliders);
|
91845
|
+
const [preMuteValues, setPreMuteValues] = (0, import_react8.useState)(initialPreMuteSliders);
|
91735
91846
|
const throttleDelay = 100;
|
91736
91847
|
function percentage(levels) {
|
91737
91848
|
if (!levels) {
|
@@ -91952,11 +92063,11 @@ var import_FaWindowRestore = __toESM(require_FaWindowRestore());
|
|
91952
92063
|
|
91953
92064
|
// build/processor.browserOverlay/summary-view.js
|
91954
92065
|
var import_jsx_runtime30 = __toESM(require_jsx_runtime());
|
91955
|
-
var
|
92066
|
+
var import_react9 = __toESM(require_react());
|
91956
92067
|
function SummaryView8({ state, sendCommand }) {
|
91957
|
-
const [url, setUrl] = (0,
|
91958
|
-
const [enabled, setEnabled] = (0,
|
91959
|
-
const stateChanged = (0,
|
92068
|
+
const [url, setUrl] = (0, import_react9.useState)(state.currentUrl);
|
92069
|
+
const [enabled, setEnabled] = (0, import_react9.useState)(state.enabled);
|
92070
|
+
const stateChanged = (0, import_react9.useMemo)(() => {
|
91960
92071
|
return url !== state.currentUrl || enabled !== state.enabled;
|
91961
92072
|
}, [url, enabled, state.currentUrl, state.enabled]);
|
91962
92073
|
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";
|
@@ -91997,8 +92108,10 @@ function info_default27({ defineComponent, validation: { Z } }) {
|
|
91997
92108
|
video: true
|
91998
92109
|
},
|
91999
92110
|
produces: {
|
92000
|
-
type: "
|
92001
|
-
|
92111
|
+
type: "dynamic-streams",
|
92112
|
+
streams: (_, input) => {
|
92113
|
+
return input;
|
92114
|
+
}
|
92002
92115
|
}
|
92003
92116
|
},
|
92004
92117
|
extraValidation: function(ctx) {
|
@@ -93814,15 +93927,15 @@ var import_config7 = __toESM(require_config());
|
|
93814
93927
|
|
93815
93928
|
// build/processor.onscreenGraphic/image-selection.js
|
93816
93929
|
var import_jsx_runtime40 = __toESM(require_jsx_runtime());
|
93817
|
-
var
|
93930
|
+
var import_react10 = __toESM(require_react());
|
93818
93931
|
function GraphicSelection(props) {
|
93819
|
-
const [loading, setLoading] = (0,
|
93932
|
+
const [loading, setLoading] = (0, import_react10.useState)(true);
|
93820
93933
|
const staticUrl = props.urls?.staticUrl.toString();
|
93821
93934
|
const { onChanged, defaultValue } = props;
|
93822
|
-
const myOnChange = (0,
|
93935
|
+
const myOnChange = (0, import_react10.useCallback)((e) => {
|
93823
93936
|
onChanged(e.target.value);
|
93824
93937
|
}, [onChanged]);
|
93825
|
-
(0,
|
93938
|
+
(0, import_react10.useEffect)(() => {
|
93826
93939
|
const fn = async () => {
|
93827
93940
|
if (!staticUrl)
|
93828
93941
|
return;
|
@@ -93840,7 +93953,7 @@ function GraphicSelection(props) {
|
|
93840
93953
|
};
|
93841
93954
|
fn().catch(console.error);
|
93842
93955
|
}, [staticUrl, defaultValue, onChanged]);
|
93843
|
-
const [graphcs, setGraphics] = (0,
|
93956
|
+
const [graphcs, setGraphics] = (0, import_react10.useState)([]);
|
93844
93957
|
if (loading) {
|
93845
93958
|
return (0, import_jsx_runtime40.jsx)("div", { children: "Loading.." });
|
93846
93959
|
}
|
@@ -93855,19 +93968,19 @@ var image_selection_default = GraphicSelection;
|
|
93855
93968
|
|
93856
93969
|
// build/processor.onscreenGraphic/summary-view.js
|
93857
93970
|
var import_jsx_runtime41 = __toESM(require_jsx_runtime());
|
93858
|
-
var
|
93971
|
+
var import_react11 = __toESM(require_react());
|
93859
93972
|
function SummaryView9({ state, sendCommand, urls }) {
|
93860
|
-
const [graphic, setGraphic] = (0,
|
93861
|
-
const [position, setPosition] = (0,
|
93862
|
-
const [graphics, setGraphics] = (0,
|
93863
|
-
const [fileToUpload, setFileToUpload] = (0,
|
93864
|
-
const [showFileInput, setShowFileInput] = (0,
|
93865
|
-
const [showUploadButton, setShowUploadButton] = (0,
|
93866
|
-
const [uploadStatus, setUploadStatus] = (0,
|
93867
|
-
const [showDeleteDropdown, setShowDeleteDropdown] = (0,
|
93868
|
-
const [graphicToDelete, setGraphicToDelete] = (0,
|
93973
|
+
const [graphic, setGraphic] = (0, import_react11.useState)(state.activeGraphic?.file);
|
93974
|
+
const [position, setPosition] = (0, import_react11.useState)(state.activeGraphic?.position ?? { type: "named", position: "topleft" });
|
93975
|
+
const [graphics, setGraphics] = (0, import_react11.useState)([]);
|
93976
|
+
const [fileToUpload, setFileToUpload] = (0, import_react11.useState)(void 0);
|
93977
|
+
const [showFileInput, setShowFileInput] = (0, import_react11.useState)(false);
|
93978
|
+
const [showUploadButton, setShowUploadButton] = (0, import_react11.useState)(false);
|
93979
|
+
const [uploadStatus, setUploadStatus] = (0, import_react11.useState)({ success: false, message: null });
|
93980
|
+
const [showDeleteDropdown, setShowDeleteDropdown] = (0, import_react11.useState)(false);
|
93981
|
+
const [graphicToDelete, setGraphicToDelete] = (0, import_react11.useState)("");
|
93869
93982
|
const staticUrl = urls.staticUrl.toString();
|
93870
|
-
const updateGraphics = (0,
|
93983
|
+
const updateGraphics = (0, import_react11.useCallback)(async () => {
|
93871
93984
|
try {
|
93872
93985
|
const result2 = await fetch(`${staticUrl}/graphics`);
|
93873
93986
|
if (result2.ok) {
|
@@ -93884,7 +93997,7 @@ function SummaryView9({ state, sendCommand, urls }) {
|
|
93884
93997
|
});
|
93885
93998
|
}
|
93886
93999
|
}, [staticUrl]);
|
93887
|
-
(0,
|
94000
|
+
(0, import_react11.useEffect)(() => {
|
93888
94001
|
updateGraphics().catch(console.error);
|
93889
94002
|
}, [updateGraphics]);
|
93890
94003
|
const onFileChange = (e) => {
|
@@ -94044,16 +94157,16 @@ function convertPosition(givenPosition, currentVideo, currentGraphic) {
|
|
94044
94157
|
var PositionSelector = ({ initialPosition: givenPosition = { type: "named", position: "topleft" }, onChange, currentVideo, currentGraphic, graphicChanged }) => {
|
94045
94158
|
const convertPos = (pos) => convertPosition(pos, currentVideo, currentGraphic);
|
94046
94159
|
const initialPosition = convertPos(givenPosition);
|
94047
|
-
const [position, setLocalPosition] = (0,
|
94048
|
-
const setPosition = (0,
|
94160
|
+
const [position, setLocalPosition] = (0, import_react11.useState)(initialPosition);
|
94161
|
+
const setPosition = (0, import_react11.useCallback)((v) => {
|
94049
94162
|
setLocalPosition(v);
|
94050
94163
|
onChange(fromLocalPosition(v));
|
94051
94164
|
}, [onChange]);
|
94052
|
-
const [positionUnit, setPositionUnit] = (0,
|
94053
|
-
const [isDragging, setIsDragging] = (0,
|
94054
|
-
const [dragStart, setDragStart] = (0,
|
94055
|
-
const previewAreaRef = (0,
|
94056
|
-
const previewTargetRef = (0,
|
94165
|
+
const [positionUnit, setPositionUnit] = (0, import_react11.useState)(position.type === "coordinate" ? "px" : "%");
|
94166
|
+
const [isDragging, setIsDragging] = (0, import_react11.useState)(false);
|
94167
|
+
const [dragStart, setDragStart] = (0, import_react11.useState)({ xPct: 0, yPct: 0, cx: 0, cy: 0 });
|
94168
|
+
const previewAreaRef = (0, import_react11.useRef)(null);
|
94169
|
+
const previewTargetRef = (0, import_react11.useRef)(null);
|
94057
94170
|
const handleMouseDown = (e) => {
|
94058
94171
|
setIsDragging(true);
|
94059
94172
|
setDragStart({
|
@@ -94063,7 +94176,7 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
|
|
94063
94176
|
});
|
94064
94177
|
handleMouseMove(e);
|
94065
94178
|
};
|
94066
|
-
const handleMouseMove = (0,
|
94179
|
+
const handleMouseMove = (0, import_react11.useCallback)((e) => {
|
94067
94180
|
if (!isDragging)
|
94068
94181
|
return;
|
94069
94182
|
const boundingBox = previewAreaRef.current?.getBoundingClientRect() ?? { width: 0, height: 0 };
|
@@ -94104,10 +94217,10 @@ var PositionSelector = ({ initialPosition: givenPosition = { type: "named", posi
|
|
94104
94217
|
positionUnit,
|
94105
94218
|
setPosition
|
94106
94219
|
]);
|
94107
|
-
const handleMouseUp = (0,
|
94220
|
+
const handleMouseUp = (0, import_react11.useCallback)(() => {
|
94108
94221
|
setIsDragging(false);
|
94109
94222
|
}, []);
|
94110
|
-
(0,
|
94223
|
+
(0, import_react11.useEffect)(() => {
|
94111
94224
|
const previous = { handleMouseMove, handleMouseUp };
|
94112
94225
|
if (isDragging) {
|
94113
94226
|
window.addEventListener("mousemove", handleMouseMove);
|
@@ -94278,11 +94391,11 @@ function assertUnreachable22(_) {
|
|
94278
94391
|
|
94279
94392
|
// build/processor.smartSingleMediaSwitch/source-selection.js
|
94280
94393
|
var import_jsx_runtime42 = __toESM(require_jsx_runtime());
|
94281
|
-
var
|
94394
|
+
var import_react12 = __toESM(require_react());
|
94282
94395
|
function OrderInput(props) {
|
94283
94396
|
const { onChanged } = props;
|
94284
|
-
const [value, setValue] = (0,
|
94285
|
-
(0,
|
94397
|
+
const [value, setValue] = (0, import_react12.useState)(props.defaultValue ?? []);
|
94398
|
+
(0, import_react12.useEffect)(() => {
|
94286
94399
|
onChanged(value);
|
94287
94400
|
}, [value, onChanged]);
|
94288
94401
|
if (value.length == 0) {
|
@@ -94466,11 +94579,11 @@ function assertUnreachable23(_) {
|
|
94466
94579
|
|
94467
94580
|
// build/processor.smartSourceSwitch/source-selection.js
|
94468
94581
|
var import_jsx_runtime44 = __toESM(require_jsx_runtime());
|
94469
|
-
var
|
94582
|
+
var import_react13 = __toESM(require_react());
|
94470
94583
|
function OrderInput2(props) {
|
94471
94584
|
const { onChanged } = props;
|
94472
|
-
const [value, setValue] = (0,
|
94473
|
-
(0,
|
94585
|
+
const [value, setValue] = (0, import_react13.useState)(props.defaultValue ?? []);
|
94586
|
+
(0, import_react13.useEffect)(() => {
|
94474
94587
|
onChanged(value);
|
94475
94588
|
}, [value, onChanged]);
|
94476
94589
|
if (value.length == 0) {
|
@@ -94501,16 +94614,33 @@ var source_selection_default2 = OrderInput2;
|
|
94501
94614
|
|
94502
94615
|
// build/processor.smartSourceSwitch/inline-view.js
|
94503
94616
|
var import_jsx_runtime45 = __toESM(require_jsx_runtime());
|
94504
|
-
|
94505
|
-
|
94506
|
-
|
94617
|
+
function cn(...classes) {
|
94618
|
+
return classes.filter(Boolean).join(" ");
|
94619
|
+
}
|
94507
94620
|
function InlineView17({ state, config }) {
|
94508
|
-
return (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [(0, import_jsx_runtime45.jsx)("h5", {
|
94621
|
+
return (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [(0, import_jsx_runtime45.jsx)("h5", { className: "text-gray-900 dark:text-white font-medium", children: "Sources:" }), (0, import_jsx_runtime45.jsxs)("ul", { className: "space-y-2 mt-2", children: [config.sources.map((s, i) => {
|
94622
|
+
const isActive = state.activeSource === s;
|
94623
|
+
const isAvailable = state.availableSources.includes(s);
|
94624
|
+
const indicatorClasses = cn("w-3 h-3 rounded-full", isActive ? "bg-live" : isAvailable ? "bg-standby" : "bg-offline");
|
94625
|
+
return (0, import_jsx_runtime45.jsxs)("li", { className: "flex items-center gap-2", children: [(0, import_jsx_runtime45.jsxs)("div", { className: "relative", children: [(0, import_jsx_runtime45.jsx)("div", { className: indicatorClasses }), isActive && (0, import_jsx_runtime45.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-live animate-ping duration-150" }) })] }), (0, import_jsx_runtime45.jsx)("span", { className: "text-gray-900 dark:text-white", children: s })] }, i);
|
94626
|
+
}), (0, import_jsx_runtime45.jsxs)("li", { className: "flex items-center gap-2", children: [(0, import_jsx_runtime45.jsxs)("div", { className: "relative", children: [(0, import_jsx_runtime45.jsx)("div", { className: cn("w-3 h-3 rounded-full", state.activeSource === "fallback" ? "bg-live" : "bg-standby") }), state.activeSource === "fallback" && (0, import_jsx_runtime45.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: (0, import_jsx_runtime45.jsx)("div", { className: "w-3 h-3 rounded-full bg-live animate-ping duration-150" }) })] }), (0, import_jsx_runtime45.jsx)("span", { className: "text-gray-900 dark:text-white", children: "fallback" })] }, "fallback")] })] });
|
94509
94627
|
}
|
94510
94628
|
var inline_view_default17 = InlineView17;
|
94511
94629
|
|
94512
94630
|
// build/processor.smartSourceSwitch/info.js
|
94513
94631
|
var import_FaSlidersH2 = __toESM(require_FaSlidersH());
|
94632
|
+
var import_client_types4 = __toESM(require_client_types());
|
94633
|
+
|
94634
|
+
// build/processor.smartSourceSwitch/form-views.js
|
94635
|
+
var import_jsx_runtime46 = __toESM(require_jsx_runtime());
|
94636
|
+
function FallbackConfiguration(cfg) {
|
94637
|
+
if (cfg.kind === "file") {
|
94638
|
+
return (0, import_jsx_runtime46.jsx)("div", { className: "text-sm", children: cfg.filePath || "No file specified" });
|
94639
|
+
}
|
94640
|
+
return (0, import_jsx_runtime46.jsx)("div", { className: "text-sm", children: "Test Card" });
|
94641
|
+
}
|
94642
|
+
|
94643
|
+
// build/processor.smartSourceSwitch/info.js
|
94514
94644
|
function info_default34({ defineComponent, Av, common: { Resolutions, FrameRates } }) {
|
94515
94645
|
function patchConfigFromSubscription(cfg, sub) {
|
94516
94646
|
const potentiallyNewSources = sub.expectedStreams.map((s) => s.sourceName).filter((s) => !!s);
|
@@ -94655,6 +94785,34 @@ function info_default34({ defineComponent, Av, common: { Resolutions, FrameRates
|
|
94655
94785
|
defaultValue: []
|
94656
94786
|
}
|
94657
94787
|
},
|
94788
|
+
fallback: {
|
94789
|
+
help: "Configuration for fallback source when no inputs are available",
|
94790
|
+
advanced: true,
|
94791
|
+
hint: {
|
94792
|
+
type: "form-pick",
|
94793
|
+
envOverride: true,
|
94794
|
+
defaultValue: { kind: "testcard" },
|
94795
|
+
form: import_client_types4.discriminatedForm.kind({
|
94796
|
+
testcard: {
|
94797
|
+
display: "Test Card",
|
94798
|
+
form: {}
|
94799
|
+
},
|
94800
|
+
file: {
|
94801
|
+
display: "MP4 File",
|
94802
|
+
form: {
|
94803
|
+
filePath: {
|
94804
|
+
help: "Path to MP4 file to use as fallback",
|
94805
|
+
hint: {
|
94806
|
+
type: "text",
|
94807
|
+
envOverride: true
|
94808
|
+
}
|
94809
|
+
}
|
94810
|
+
}
|
94811
|
+
}
|
94812
|
+
}),
|
94813
|
+
view: FallbackConfiguration
|
94814
|
+
}
|
94815
|
+
},
|
94658
94816
|
notes: { help: "Notes about this component", hint: { type: "text", optional: true } }
|
94659
94817
|
}
|
94660
94818
|
}
|
@@ -94762,21 +94920,21 @@ function info_default35({ defineComponent, All, validation: { Z } }) {
|
|
94762
94920
|
var import_config8 = __toESM(require_config());
|
94763
94921
|
|
94764
94922
|
// build/processor.syncExternalAudio/inline-view.js
|
94765
|
-
var
|
94766
|
-
var
|
94923
|
+
var import_jsx_runtime47 = __toESM(require_jsx_runtime());
|
94924
|
+
var import_react14 = __toESM(require_react());
|
94767
94925
|
function InlineView18({ state, raise }) {
|
94768
|
-
(0,
|
94926
|
+
(0, import_react14.useEffect)(() => {
|
94769
94927
|
if (raise) {
|
94770
94928
|
raise();
|
94771
94929
|
}
|
94772
94930
|
}, [raise]);
|
94773
|
-
return (0,
|
94931
|
+
return (0, import_jsx_runtime47.jsx)("div", { className: "processor-syncExternalAudio", children: (0, import_jsx_runtime47.jsx)("div", { className: "sync-status-inline", children: (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center space-x-2", children: [(0, import_jsx_runtime47.jsx)("div", { className: `w-2 h-2 rounded-full ${state.isConnected ? "bg-green-400" : "bg-red-400"}` }), (0, import_jsx_runtime47.jsx)("span", { className: "text-sm", children: state.isConnected ? "Connected" : "Disconnected" }), state.currentSyncMs !== void 0 && (0, import_jsx_runtime47.jsxs)("span", { className: "text-xs text-gray-500", children: ["(", state.currentSyncMs, "ms)"] })] }) }) });
|
94774
94932
|
}
|
94775
94933
|
var inline_view_default18 = InlineView18;
|
94776
94934
|
|
94777
94935
|
// build/processor.syncExternalAudio/fullscreen-view.js
|
94778
|
-
var
|
94779
|
-
var
|
94936
|
+
var import_jsx_runtime48 = __toESM(require_jsx_runtime());
|
94937
|
+
var import_react15 = __toESM(require_react());
|
94780
94938
|
var CommentaryWhepClient = class extends NorskWhepClient {
|
94781
94939
|
audio;
|
94782
94940
|
constructor(settings) {
|
@@ -94919,15 +95077,15 @@ var DualWhepPreview = class {
|
|
94919
95077
|
}
|
94920
95078
|
};
|
94921
95079
|
function SyncExternalAudioFullscreenView({ state, config, sendCommand }) {
|
94922
|
-
const videoContainerRef = (0,
|
94923
|
-
const [preview, setPreview] = (0,
|
94924
|
-
const [isReady, setIsReady] = (0,
|
94925
|
-
const [primaryVolume, setPrimaryVolume] = (0,
|
94926
|
-
const [commentaryVolume, setCommentaryVolume] = (0,
|
94927
|
-
const [primaryMuted, setPrimaryMuted] = (0,
|
94928
|
-
const [commentaryMuted, setCommentaryMuted] = (0,
|
94929
|
-
const [audioStarted, setAudioStarted] = (0,
|
94930
|
-
(0,
|
95080
|
+
const videoContainerRef = (0, import_react15.useRef)(null);
|
95081
|
+
const [preview, setPreview] = (0, import_react15.useState)(null);
|
95082
|
+
const [isReady, setIsReady] = (0, import_react15.useState)(false);
|
95083
|
+
const [primaryVolume, setPrimaryVolume] = (0, import_react15.useState)(50);
|
95084
|
+
const [commentaryVolume, setCommentaryVolume] = (0, import_react15.useState)(100);
|
95085
|
+
const [primaryMuted, setPrimaryMuted] = (0, import_react15.useState)(false);
|
95086
|
+
const [commentaryMuted, setCommentaryMuted] = (0, import_react15.useState)(false);
|
95087
|
+
const [audioStarted, setAudioStarted] = (0, import_react15.useState)(false);
|
95088
|
+
(0, import_react15.useEffect)(() => {
|
94931
95089
|
if (state.primaryWhepUrl && state.commentaryWhepUrl && videoContainerRef.current) {
|
94932
95090
|
const newPreview = new DualWhepPreview(videoContainerRef.current, state.primaryWhepUrl, state.commentaryWhepUrl, () => {
|
94933
95091
|
setIsReady(true);
|
@@ -94939,7 +95097,7 @@ function SyncExternalAudioFullscreenView({ state, config, sendCommand }) {
|
|
94939
95097
|
};
|
94940
95098
|
}
|
94941
95099
|
}, [state.primaryWhepUrl, state.commentaryWhepUrl]);
|
94942
|
-
(0,
|
95100
|
+
(0, import_react15.useEffect)(() => {
|
94943
95101
|
if (preview && isReady) {
|
94944
95102
|
preview.setPrimaryVolume(primaryVolume / 100);
|
94945
95103
|
preview.setPrimaryMuted(primaryMuted);
|
@@ -94964,7 +95122,7 @@ function SyncExternalAudioFullscreenView({ state, config, sendCommand }) {
|
|
94964
95122
|
setAudioStarted(true);
|
94965
95123
|
}
|
94966
95124
|
};
|
94967
|
-
return (0,
|
95125
|
+
return (0, import_jsx_runtime48.jsxs)("div", { className: "w-full h-full flex flex-col bg-gray-900 text-white", children: [(0, import_jsx_runtime48.jsxs)("div", { className: "flex justify-between items-center p-4 bg-gray-800 border-b border-gray-700", children: [(0, import_jsx_runtime48.jsxs)("h1", { className: "text-xl font-semibold", children: ["Sync External Audio - ", config.displayName] }), (0, import_jsx_runtime48.jsx)("div", { className: "flex items-center space-x-4", children: (0, import_jsx_runtime48.jsxs)("div", { className: `flex items-center space-x-2 ${state.isConnected ? "text-green-400" : "text-red-400"}`, children: [(0, import_jsx_runtime48.jsx)("div", { className: `w-2 h-2 rounded-full ${state.isConnected ? "bg-green-400" : "bg-red-400"}` }), (0, import_jsx_runtime48.jsx)("span", { className: "text-sm", children: state.isConnected ? "Connected" : "Disconnected" })] }) })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 flex", children: [(0, import_jsx_runtime48.jsx)("div", { className: "flex-1 flex flex-col", children: (0, import_jsx_runtime48.jsx)("div", { className: "flex-1 bg-black flex items-center justify-center", children: state.primaryWhepUrl && state.commentaryWhepUrl ? (0, import_jsx_runtime48.jsx)("div", { ref: videoContainerRef, className: "max-w-full max-h-full" }) : (0, import_jsx_runtime48.jsxs)("div", { className: "text-gray-500 text-center", children: [(0, import_jsx_runtime48.jsx)("div", { className: "text-6xl mb-4", children: "\u{1F4FA}" }), (0, import_jsx_runtime48.jsx)("div", { children: "Waiting for video preview..." }), state.primaryWhepUrl && !state.commentaryWhepUrl && (0, import_jsx_runtime48.jsx)("div", { className: "text-sm mt-2", children: "Primary stream ready, waiting for commentary..." }), !state.primaryWhepUrl && state.commentaryWhepUrl && (0, import_jsx_runtime48.jsx)("div", { className: "text-sm mt-2", children: "Commentary stream ready, waiting for primary..." })] }) }) }), (0, import_jsx_runtime48.jsxs)("div", { className: "w-80 bg-gray-800 border-l border-gray-700 flex flex-col", children: [(0, import_jsx_runtime48.jsxs)("div", { className: "p-4 border-b border-gray-700", children: [(0, import_jsx_runtime48.jsx)("h3", { className: "text-lg font-medium mb-4", children: "Commentary Sync Control" }), (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4 p-3 bg-gray-700 rounded-lg text-center", children: [(0, import_jsx_runtime48.jsx)("div", { className: "text-sm text-gray-300", children: "Current Offset" }), (0, import_jsx_runtime48.jsxs)("div", { className: "text-2xl font-mono", children: [state.currentSyncMs, "ms"] })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4", children: [(0, import_jsx_runtime48.jsx)("div", { className: "text-sm text-gray-300 mb-2", children: "Fine Adjustment (\xB1200ms)" }), (0, import_jsx_runtime48.jsxs)("div", { className: "flex space-x-2", children: [(0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(-200), className: "flex-1 px-3 py-2 bg-red-600 hover:bg-red-700 rounded text-sm font-medium", children: "-200ms" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(200), className: "flex-1 px-3 py-2 bg-green-600 hover:bg-green-700 rounded text-sm font-medium", children: "+200ms" })] })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4", children: [(0, import_jsx_runtime48.jsx)("div", { className: "text-sm text-gray-300 mb-2", children: "Coarse Adjustment" }), (0, import_jsx_runtime48.jsxs)("div", { className: "grid grid-cols-2 gap-2", children: [(0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(-1e3), className: "px-3 py-2 bg-red-700 hover:bg-red-800 rounded text-sm", children: "-1000ms" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(1e3), className: "px-3 py-2 bg-green-700 hover:bg-green-800 rounded text-sm", children: "+1000ms" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(-500), className: "px-3 py-2 bg-red-600 hover:bg-red-700 rounded text-sm", children: "-500ms" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => handleSyncAdjust(500), className: "px-3 py-2 bg-green-600 hover:bg-green-700 rounded text-sm", children: "+500ms" })] })] }), (0, import_jsx_runtime48.jsxs)("button", { onClick: handleResetSync, className: "w-full px-3 py-2 bg-blue-600 hover:bg-blue-700 rounded text-sm font-medium", children: ["Reset to Initial (", config.initialSyncMs, "ms)"] })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "p-4 flex-1", children: [(0, import_jsx_runtime48.jsx)("h3", { className: "text-lg font-medium mb-4", children: "Audio Monitor Controls" }), !audioStarted && isReady && (0, import_jsx_runtime48.jsxs)("div", { className: "mb-6 p-4 bg-yellow-900 border border-yellow-600 rounded-lg", children: [(0, import_jsx_runtime48.jsx)("div", { className: "text-sm text-yellow-200 mb-2", children: "Click to enable commentary audio (required by browser policy):" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => void handleStartAudio(), className: "w-full px-3 py-2 bg-yellow-600 hover:bg-yellow-700 rounded text-sm font-medium", children: "\u{1F50A} Start Commentary Audio" })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "mb-6", children: [(0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [(0, import_jsx_runtime48.jsx)("span", { className: "text-sm font-medium", children: "Primary Audio" }), (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center space-x-2", children: [isReady ? (0, import_jsx_runtime48.jsx)("span", { className: "text-xs text-green-400", children: "\u2713 Ready" }) : (0, import_jsx_runtime48.jsx)("span", { className: "text-xs text-yellow-400", children: "\u23F3 Loading" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => setPrimaryMuted(!primaryMuted), disabled: !isReady, className: `px-2 py-1 rounded text-xs ${!isReady ? "bg-gray-500 cursor-not-allowed" : primaryMuted ? "bg-red-600 hover:bg-red-700" : "bg-gray-600 hover:bg-gray-700"}`, children: primaryMuted ? "Unmute" : "Mute" })] })] }), (0, import_jsx_runtime48.jsx)("input", { type: "range", min: "0", max: "100", value: primaryVolume, onChange: (e) => setPrimaryVolume(parseInt(e.target.value)), className: "w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer", disabled: primaryMuted || !isReady }), (0, import_jsx_runtime48.jsxs)("div", { className: "text-xs text-gray-400 mt-1", children: [primaryVolume, "%"] })] }), (0, import_jsx_runtime48.jsxs)("div", { className: "mb-6", children: [(0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [(0, import_jsx_runtime48.jsx)("span", { className: "text-sm font-medium", children: "Commentary Audio" }), (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center space-x-2", children: [isReady ? (0, import_jsx_runtime48.jsx)("span", { className: "text-xs text-green-400", children: "\u2713 Ready" }) : (0, import_jsx_runtime48.jsx)("span", { className: "text-xs text-yellow-400", children: "\u23F3 Loading" }), (0, import_jsx_runtime48.jsx)("button", { onClick: () => setCommentaryMuted(!commentaryMuted), disabled: !isReady, className: `px-2 py-1 rounded text-xs ${!isReady ? "bg-gray-500 cursor-not-allowed" : commentaryMuted ? "bg-red-600 hover:bg-red-700" : "bg-gray-600 hover:bg-gray-700"}`, children: commentaryMuted ? "Unmute" : "Mute" })] })] }), (0, import_jsx_runtime48.jsx)("input", { type: "range", min: "0", max: "100", value: commentaryVolume, onChange: (e) => setCommentaryVolume(parseInt(e.target.value)), className: "w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer", disabled: commentaryMuted || !isReady }), (0, import_jsx_runtime48.jsxs)("div", { className: "text-xs text-gray-400 mt-1", children: [commentaryVolume, "%"] })] }), (0, import_jsx_runtime48.jsx)("div", { className: "mt-auto pt-4 border-t border-gray-700", children: (0, import_jsx_runtime48.jsxs)("div", { className: "text-xs text-gray-400 space-y-1", children: [(0, import_jsx_runtime48.jsxs)("div", { children: ["Primary Delay: ", config.delayMs, "ms"] }), (0, import_jsx_runtime48.jsxs)("div", { children: ["Primary WHEP: ", state.primaryWhepUrl ? "\u2713 Available" : "\u2717 Not ready"] }), (0, import_jsx_runtime48.jsxs)("div", { children: ["Commentary WHEP: ", state.commentaryWhepUrl ? "\u2713 Available" : "\u2717 Not ready"] }), (0, import_jsx_runtime48.jsxs)("div", { children: ["Dual Streams: ", isReady ? "\u2713 Connected" : "\u23F3 Connecting"] }), (0, import_jsx_runtime48.jsxs)("div", { children: ["Audio Started: ", audioStarted ? "\u2713 Yes" : "\u2717 No"] }), isReady && (0, import_jsx_runtime48.jsx)("div", { className: "text-green-400", children: "\u2713 Dual WHEP ready" }), isReady && (0, import_jsx_runtime48.jsx)("div", { className: "text-xs text-gray-500 mt-1", children: "Check browser console for audio debug logs" })] }) })] })] })] })] });
|
94968
95126
|
}
|
94969
95127
|
|
94970
95128
|
// build/processor.syncExternalAudio/info.js
|
@@ -95093,8 +95251,10 @@ function info_default37({ defineComponent }) {
|
|
95093
95251
|
video: true
|
95094
95252
|
},
|
95095
95253
|
produces: {
|
95096
|
-
type: "
|
95097
|
-
|
95254
|
+
type: "dynamic-streams",
|
95255
|
+
streams: (_, input) => {
|
95256
|
+
return input;
|
95257
|
+
}
|
95098
95258
|
}
|
95099
95259
|
},
|
95100
95260
|
display: ({ config }) => {
|
@@ -95131,8 +95291,8 @@ var import_config9 = __toESM(require_config());
|
|
95131
95291
|
var import_util10 = __toESM(require_util());
|
95132
95292
|
|
95133
95293
|
// build/processor.webRtcDuplex/fullscreen.js
|
95134
|
-
var
|
95135
|
-
var
|
95294
|
+
var import_jsx_runtime49 = __toESM(require_jsx_runtime());
|
95295
|
+
var import_react16 = __toESM(require_react());
|
95136
95296
|
var import_webrtc_client2 = __toESM(require_webrtc_client());
|
95137
95297
|
var DuplexWhepClient = class extends NorskWhepClient {
|
95138
95298
|
showVideo;
|
@@ -95173,11 +95333,11 @@ var DuplexWhipClient = class extends import_webrtc_client2.WhipClient {
|
|
95173
95333
|
}
|
95174
95334
|
};
|
95175
95335
|
function FullscreenView2({ state, config }) {
|
95176
|
-
const [client, setClient] = (0,
|
95177
|
-
const [sender, setSender] = (0,
|
95178
|
-
const container = (0,
|
95179
|
-
const button = (0,
|
95180
|
-
const go = (0,
|
95336
|
+
const [client, setClient] = (0, import_react16.useState)(void 0);
|
95337
|
+
const [sender, setSender] = (0, import_react16.useState)(void 0);
|
95338
|
+
const container = (0, import_react16.useRef)(null);
|
95339
|
+
const button = (0, import_react16.useRef)(null);
|
95340
|
+
const go = (0, import_react16.useCallback)(async () => {
|
95181
95341
|
if (!state.publishUrl)
|
95182
95342
|
return;
|
95183
95343
|
if (!client && state.outputUrl && container.current) {
|
@@ -95204,7 +95364,7 @@ function FullscreenView2({ state, config }) {
|
|
95204
95364
|
}
|
95205
95365
|
}
|
95206
95366
|
}, [state.publishUrl, state.outputUrl, container, button, client, sender, config, state.videoAvailable]);
|
95207
|
-
return (0,
|
95367
|
+
return (0, import_jsx_runtime49.jsxs)("div", { children: [(0, import_jsx_runtime49.jsx)("div", { id: "buttons", children: (0, import_jsx_runtime49.jsx)("button", { ref: button, type: "button", className: "text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800", onClick: () => void go(), id: "go", children: "Send/Receive" }) }), (0, import_jsx_runtime49.jsx)("div", { id: "error" }), (0, import_jsx_runtime49.jsx)("div", { id: "container", ref: container, className: "p-4 absolute h-full w-full" })] });
|
95208
95368
|
}
|
95209
95369
|
|
95210
95370
|
// build/processor.webRtcDuplex/info.js
|
@@ -95299,8 +95459,10 @@ function info_default39({ defineComponent, validation: { Z } }) {
|
|
95299
95459
|
video: true
|
95300
95460
|
},
|
95301
95461
|
produces: {
|
95302
|
-
type: "
|
95303
|
-
|
95462
|
+
type: "dynamic-streams",
|
95463
|
+
streams: (_, input) => {
|
95464
|
+
return input;
|
95465
|
+
}
|
95304
95466
|
}
|
95305
95467
|
},
|
95306
95468
|
extraValidation: function(ctx) {
|
@@ -95456,8 +95618,8 @@ function assertUnreachable26(_) {
|
|
95456
95618
|
}
|
95457
95619
|
|
95458
95620
|
// build/util.stats.latency/inline-view.js
|
95459
|
-
var
|
95460
|
-
var
|
95621
|
+
var import_jsx_runtime50 = __toESM(require_jsx_runtime());
|
95622
|
+
var import_react17 = __toESM(require_react());
|
95461
95623
|
|
95462
95624
|
// ../../node_modules/chart.js/auto/auto.js
|
95463
95625
|
Chart.register(...registerables);
|
@@ -95465,8 +95627,8 @@ var auto_default = Chart;
|
|
95465
95627
|
|
95466
95628
|
// build/util.stats.latency/inline-view.js
|
95467
95629
|
function InlineView19({ state, config: _2 }) {
|
95468
|
-
const chartContainer = (0,
|
95469
|
-
const [chartControl, setChartControl] = (0,
|
95630
|
+
const chartContainer = (0, import_react17.useRef)(null);
|
95631
|
+
const [chartControl, setChartControl] = (0, import_react17.useState)(void 0);
|
95470
95632
|
function makeDataSet(key, color2, values) {
|
95471
95633
|
return {
|
95472
95634
|
label: key,
|
@@ -95477,13 +95639,13 @@ function InlineView19({ state, config: _2 }) {
|
|
95477
95639
|
data: values
|
95478
95640
|
};
|
95479
95641
|
}
|
95480
|
-
const makeData = (0,
|
95642
|
+
const makeData = (0, import_react17.useCallback)((state2) => {
|
95481
95643
|
return {
|
95482
95644
|
labels: new Array(state2.values.length).fill(0).map((_, i) => i).map((_) => ""),
|
95483
95645
|
datasets: [makeDataSet("latency", "rgba(255, 0, 0, 255)", state2.values)]
|
95484
95646
|
};
|
95485
95647
|
}, []);
|
95486
|
-
(0,
|
95648
|
+
(0, import_react17.useEffect)(() => {
|
95487
95649
|
if (!chartContainer.current)
|
95488
95650
|
return;
|
95489
95651
|
auto_default.defaults.color = "#FFF";
|
@@ -95521,24 +95683,24 @@ function InlineView19({ state, config: _2 }) {
|
|
95521
95683
|
chart.update();
|
95522
95684
|
}, 100);
|
95523
95685
|
}, [chartContainer, makeData, state]);
|
95524
|
-
(0,
|
95686
|
+
(0, import_react17.useEffect)(() => {
|
95525
95687
|
if (!chartControl)
|
95526
95688
|
return;
|
95527
95689
|
chartControl.data = makeData(state);
|
95528
95690
|
}, [chartControl, makeData, state]);
|
95529
|
-
return (0,
|
95691
|
+
return (0, import_jsx_runtime50.jsx)("div", { className: "bg-gray-50 dark:bg-gray-700 rounded", style: { width: "360px", height: "200px", padding: "10px" }, children: (0, import_jsx_runtime50.jsx)("canvas", { className: "bg-gray-50 dark:bg-gray-700 rounded", ref: chartContainer }) });
|
95530
95692
|
}
|
95531
95693
|
var inline_view_default19 = InlineView19;
|
95532
95694
|
|
95533
95695
|
// build/util.stats.latency/source-node-selection.js
|
95534
|
-
var
|
95696
|
+
var import_jsx_runtime51 = __toESM(require_jsx_runtime());
|
95535
95697
|
function SourceNodeSelection(props) {
|
95536
|
-
return (0,
|
95698
|
+
return (0, import_jsx_runtime51.jsx)("div", { children: (0, import_jsx_runtime51.jsxs)("select", { defaultValue: props.defaultValue, className: `node-editor-select-input`, id: props.id, onChange: myOnChange, onBlur: myOnChange, children: [(0, import_jsx_runtime51.jsx)("option", { value: "", children: "---" }, "empty"), Object.values(props.latestDocument.components).map((o, i) => {
|
95537
95699
|
if (o.id == props.id)
|
95538
|
-
return (0,
|
95700
|
+
return (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, {});
|
95539
95701
|
if (o.info.category === "output")
|
95540
95702
|
return;
|
95541
|
-
return (0,
|
95703
|
+
return (0, import_jsx_runtime51.jsx)("option", { value: o.id, children: o.config.displayName }, i);
|
95542
95704
|
})] }) });
|
95543
95705
|
function myOnChange(e) {
|
95544
95706
|
props.onChanged(e.target.value);
|