opus-react 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +152 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -36
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +241 -159
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -427,7 +427,7 @@ var init_setupFireBarrelScene = __esm({
|
|
|
427
427
|
});
|
|
428
428
|
|
|
429
429
|
// ../../components/fields/Button/Button.module.css
|
|
430
|
-
var Button_default = {"
|
|
430
|
+
var Button_default = {"dark":"opus_lZkc26_dark","secondary":"opus_lZkc26_secondary","primary":"opus_lZkc26_primary","success":"opus_lZkc26_success","button":"opus_lZkc26_button","link":"opus_lZkc26_link","light":"opus_lZkc26_light","info":"opus_lZkc26_info","danger":"opus_lZkc26_danger","warning":"opus_lZkc26_warning"};
|
|
431
431
|
|
|
432
432
|
// ../../components/fields/Button/Button.tsx
|
|
433
433
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -448,13 +448,24 @@ function Button(_a2) {
|
|
|
448
448
|
import { createContext, useContext, useMemo } from "react";
|
|
449
449
|
|
|
450
450
|
// ../../components/Tooltip/Tooltip.tsx
|
|
451
|
-
import {
|
|
451
|
+
import {
|
|
452
|
+
useCallback,
|
|
453
|
+
useEffect,
|
|
454
|
+
useId,
|
|
455
|
+
useLayoutEffect,
|
|
456
|
+
useRef,
|
|
457
|
+
useState
|
|
458
|
+
} from "react";
|
|
459
|
+
import { createPortal } from "react-dom";
|
|
452
460
|
|
|
453
461
|
// ../../components/Tooltip/Tooltip.module.css
|
|
454
|
-
var Tooltip_default = {"
|
|
462
|
+
var Tooltip_default = {"top":"opus_R70RbH_top","left":"opus_R70RbH_left","right":"opus_R70RbH_right","popup":"opus_R70RbH_popup","triggerWrap":"opus_R70RbH_triggerWrap","arrow":"opus_R70RbH_arrow","trigger":"opus_R70RbH_trigger","root":"opus_R70RbH_root","bottom":"opus_R70RbH_bottom"};
|
|
455
463
|
|
|
456
464
|
// ../../components/Tooltip/Tooltip.tsx
|
|
457
465
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
466
|
+
var GAP = 8;
|
|
467
|
+
var VIEWPORT_PADDING = 8;
|
|
468
|
+
var ARROW_HALF = 6;
|
|
458
469
|
function Tooltip({
|
|
459
470
|
content,
|
|
460
471
|
label = "More information",
|
|
@@ -465,8 +476,64 @@ function Tooltip({
|
|
|
465
476
|
}) {
|
|
466
477
|
const tooltipId = useId();
|
|
467
478
|
const rootRef = useRef(null);
|
|
479
|
+
const popupRef = useRef(null);
|
|
468
480
|
const [open, setOpen] = useState(false);
|
|
481
|
+
const [mounted, setMounted] = useState(false);
|
|
482
|
+
const [position, setPosition] = useState(null);
|
|
469
483
|
const isVisible = open && !disabled && content.length > 0;
|
|
484
|
+
useEffect(() => {
|
|
485
|
+
setMounted(true);
|
|
486
|
+
}, []);
|
|
487
|
+
const updatePosition = useCallback(() => {
|
|
488
|
+
const trigger = rootRef.current;
|
|
489
|
+
const popup2 = popupRef.current;
|
|
490
|
+
if (!trigger || !popup2) {
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
const triggerRect = trigger.getBoundingClientRect();
|
|
494
|
+
const popupRect = popup2.getBoundingClientRect();
|
|
495
|
+
const vw = window.innerWidth;
|
|
496
|
+
const vh = window.innerHeight;
|
|
497
|
+
const centerX = triggerRect.left + triggerRect.width / 2;
|
|
498
|
+
const centerY = triggerRect.top + triggerRect.height / 2;
|
|
499
|
+
let left = 0;
|
|
500
|
+
let top = 0;
|
|
501
|
+
let arrowOffset = 0;
|
|
502
|
+
if (placement === "top" || placement === "bottom") {
|
|
503
|
+
top = placement === "top" ? triggerRect.top - popupRect.height - GAP : triggerRect.bottom + GAP;
|
|
504
|
+
const rawLeft = centerX - popupRect.width / 2;
|
|
505
|
+
const maxLeft = vw - popupRect.width - VIEWPORT_PADDING;
|
|
506
|
+
left = Math.min(Math.max(rawLeft, VIEWPORT_PADDING), Math.max(maxLeft, VIEWPORT_PADDING));
|
|
507
|
+
arrowOffset = Math.min(
|
|
508
|
+
Math.max(centerX - left, ARROW_HALF + 2),
|
|
509
|
+
popupRect.width - ARROW_HALF - 2
|
|
510
|
+
);
|
|
511
|
+
} else {
|
|
512
|
+
left = placement === "left" ? triggerRect.left - popupRect.width - GAP : triggerRect.right + GAP;
|
|
513
|
+
const rawTop = centerY - popupRect.height / 2;
|
|
514
|
+
const maxTop = vh - popupRect.height - VIEWPORT_PADDING;
|
|
515
|
+
top = Math.min(Math.max(rawTop, VIEWPORT_PADDING), Math.max(maxTop, VIEWPORT_PADDING));
|
|
516
|
+
arrowOffset = Math.min(
|
|
517
|
+
Math.max(centerY - top, ARROW_HALF + 2),
|
|
518
|
+
popupRect.height - ARROW_HALF - 2
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
setPosition({ left, top, arrowOffset });
|
|
522
|
+
}, [placement]);
|
|
523
|
+
useLayoutEffect(() => {
|
|
524
|
+
if (!isVisible) {
|
|
525
|
+
setPosition(null);
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
updatePosition();
|
|
529
|
+
const handleReflow = () => updatePosition();
|
|
530
|
+
window.addEventListener("scroll", handleReflow, true);
|
|
531
|
+
window.addEventListener("resize", handleReflow);
|
|
532
|
+
return () => {
|
|
533
|
+
window.removeEventListener("scroll", handleReflow, true);
|
|
534
|
+
window.removeEventListener("resize", handleReflow);
|
|
535
|
+
};
|
|
536
|
+
}, [isVisible, updatePosition]);
|
|
470
537
|
useEffect(() => {
|
|
471
538
|
if (!isVisible) {
|
|
472
539
|
return;
|
|
@@ -495,14 +562,24 @@ function Tooltip({
|
|
|
495
562
|
setOpen(false);
|
|
496
563
|
}
|
|
497
564
|
};
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
565
|
+
const isHorizontal = placement === "left" || placement === "right";
|
|
566
|
+
const arrowStyle = position ? isHorizontal ? { top: position.arrowOffset } : { left: position.arrowOffset } : void 0;
|
|
567
|
+
const popup = isVisible && mounted ? createPortal(
|
|
568
|
+
/* @__PURE__ */ jsxs(
|
|
569
|
+
"span",
|
|
570
|
+
{
|
|
571
|
+
ref: popupRef,
|
|
572
|
+
className: [Tooltip_default.popup, Tooltip_default[placement]].join(" "),
|
|
573
|
+
id: tooltipId,
|
|
574
|
+
role: "tooltip",
|
|
575
|
+
style: position ? { left: position.left, top: position.top, visibility: "visible" } : { left: 0, top: 0, visibility: "hidden" },
|
|
576
|
+
children: [
|
|
577
|
+
content,
|
|
578
|
+
/* @__PURE__ */ jsx2("span", { "aria-hidden": "true", className: Tooltip_default.arrow, style: arrowStyle })
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
),
|
|
582
|
+
document.body
|
|
506
583
|
) : null;
|
|
507
584
|
const rootClassName = [Tooltip_default.root, className].filter(Boolean).join(" ");
|
|
508
585
|
if (children) {
|
|
@@ -551,7 +628,7 @@ function Tooltip({
|
|
|
551
628
|
}
|
|
552
629
|
|
|
553
630
|
// ../../components/fields/FieldShell/FieldShell.module.css
|
|
554
|
-
var FieldShell_default = {"
|
|
631
|
+
var FieldShell_default = {"compactControl":"opus_zNi12Z_compactControl","labelLeft":"opus_zNi12Z_labelLeft","labelFlagged":"opus_zNi12Z_labelFlagged","stackedLeft":"opus_zNi12Z_stackedLeft","controlFlagged":"opus_zNi12Z_controlFlagged","stacked":"opus_zNi12Z_stacked","control":"opus_zNi12Z_control","labelRight":"opus_zNi12Z_labelRight","visuallyHidden":"opus_zNi12Z_visuallyHidden","stackedRight":"opus_zNi12Z_stackedRight","fitContent":"opus_zNi12Z_fitContent","flaggedCenter":"opus_zNi12Z_flaggedCenter","error":"opus_zNi12Z_error","errorFlagged":"opus_zNi12Z_errorFlagged","flagged":"opus_zNi12Z_flagged","flaggedStart":"opus_zNi12Z_flaggedStart","label":"opus_zNi12Z_label","root":"opus_zNi12Z_root","required":"opus_zNi12Z_required"};
|
|
555
632
|
|
|
556
633
|
// ../../components/fields/FieldShell/FieldShell.tsx
|
|
557
634
|
import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -676,7 +753,7 @@ function FieldShell({
|
|
|
676
753
|
}
|
|
677
754
|
|
|
678
755
|
// ../../components/fields/CheckboxField/CheckboxField.module.css
|
|
679
|
-
var CheckboxField_default = {"
|
|
756
|
+
var CheckboxField_default = {"error":"opus_g-5tlR_error","shell":"opus_g-5tlR_shell","toggle":"opus_g-5tlR_toggle","visual":"opus_g-5tlR_visual","round":"opus_g-5tlR_round","nativeInput":"opus_g-5tlR_nativeInput","square":"opus_g-5tlR_square"};
|
|
680
757
|
|
|
681
758
|
// ../../components/fields/CheckboxField/CheckboxField.tsx
|
|
682
759
|
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -733,7 +810,7 @@ function CheckboxField({
|
|
|
733
810
|
}
|
|
734
811
|
|
|
735
812
|
// ../../components/fields/ColorField/ColorField.module.css
|
|
736
|
-
var ColorField_default = {"
|
|
813
|
+
var ColorField_default = {"swatch":"opus_Z7jeX4_swatch","icon":"opus_Z7jeX4_icon","error":"opus_Z7jeX4_error","nativeInput":"opus_Z7jeX4_nativeInput","value":"opus_Z7jeX4_value","picker":"opus_Z7jeX4_picker"};
|
|
737
814
|
|
|
738
815
|
// ../../components/fields/ColorField/ColorField.tsx
|
|
739
816
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
@@ -874,7 +951,7 @@ function HiddenField({
|
|
|
874
951
|
}
|
|
875
952
|
|
|
876
953
|
// ../../components/fields/FileField/FileField.module.css
|
|
877
|
-
var FileField_default = {"
|
|
954
|
+
var FileField_default = {"drop":"opus_aOsPA7_drop","wrapper":"opus_aOsPA7_wrapper","dragging":"opus_aOsPA7_dragging","iconSvg":"opus_aOsPA7_iconSvg","action":"opus_aOsPA7_action","hint":"opus_aOsPA7_hint","footnote":"opus_aOsPA7_footnote","input":"opus_aOsPA7_input","icon":"opus_aOsPA7_icon","content":"opus_aOsPA7_content","dropError":"opus_aOsPA7_dropError","title":"opus_aOsPA7_title"};
|
|
878
955
|
|
|
879
956
|
// ../../components/fields/FileField/FileField.tsx
|
|
880
957
|
import {
|
|
@@ -1182,7 +1259,7 @@ function NumberField({
|
|
|
1182
1259
|
import { createContext as createContext2, useContext as useContext2, useId as useId2 } from "react";
|
|
1183
1260
|
|
|
1184
1261
|
// ../../components/fields/RadioGroup/RadioGroup.module.css
|
|
1185
|
-
var RadioGroup_default = {"
|
|
1262
|
+
var RadioGroup_default = {"visual":"opus_O-1nor_visual","round":"opus_O-1nor_round","option":"opus_O-1nor_option","error":"opus_O-1nor_error","choice":"opus_O-1nor_choice","options":"opus_O-1nor_options","nativeInput":"opus_O-1nor_nativeInput","shell":"opus_O-1nor_shell","square":"opus_O-1nor_square"};
|
|
1186
1263
|
|
|
1187
1264
|
// ../../components/fields/RadioGroup/RadioGroup.tsx
|
|
1188
1265
|
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
@@ -1279,7 +1356,7 @@ function Radio({ children, error, name, shape, value, defaultChecked }) {
|
|
|
1279
1356
|
import { useId as useId3, useRef as useRef3, useState as useState4 } from "react";
|
|
1280
1357
|
|
|
1281
1358
|
// ../../components/fields/ChipInputField/ChipInputField.module.css
|
|
1282
|
-
var ChipInputField_default = {"
|
|
1359
|
+
var ChipInputField_default = {"readOnly":"opus_IOOYwh_readOnly","chip":"opus_IOOYwh_chip","disabled":"opus_IOOYwh_disabled","input":"opus_IOOYwh_input","error":"opus_IOOYwh_error","field":"opus_IOOYwh_field","remove":"opus_IOOYwh_remove","chipLabel":"opus_IOOYwh_chipLabel","shell":"opus_IOOYwh_shell"};
|
|
1283
1360
|
|
|
1284
1361
|
// ../../components/fields/ChipInputField/ChipInputField.tsx
|
|
1285
1362
|
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -1415,7 +1492,7 @@ function ChipInput({
|
|
|
1415
1492
|
var ChipInputField = ChipInput;
|
|
1416
1493
|
|
|
1417
1494
|
// ../../components/fields/RangeField/RangeField.module.css
|
|
1418
|
-
var RangeField_default = {"
|
|
1495
|
+
var RangeField_default = {"topRow":"opus_iRHQuG_topRow","value":"opus_iRHQuG_value","error":"opus_iRHQuG_error","footer":"opus_iRHQuG_footer","fieldLabel":"opus_iRHQuG_fieldLabel","slider":"opus_iRHQuG_slider","wrap":"opus_iRHQuG_wrap"};
|
|
1419
1496
|
|
|
1420
1497
|
// ../../components/fields/RangeField/RangeField.tsx
|
|
1421
1498
|
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
@@ -1494,7 +1571,7 @@ function RangeField({
|
|
|
1494
1571
|
}
|
|
1495
1572
|
|
|
1496
1573
|
// ../../components/fields/SelectField/SelectField.module.css
|
|
1497
|
-
var SelectField_default = {"
|
|
1574
|
+
var SelectField_default = {"error":"opus_m2ObG0_error","wrap":"opus_m2ObG0_wrap","select":"opus_m2ObG0_select"};
|
|
1498
1575
|
|
|
1499
1576
|
// ../../components/fields/SelectField/SelectField.tsx
|
|
1500
1577
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
@@ -1538,7 +1615,7 @@ function SelectField({
|
|
|
1538
1615
|
}
|
|
1539
1616
|
|
|
1540
1617
|
// ../../components/fields/SwitchField/SwitchField.module.css
|
|
1541
|
-
var SwitchField_default = {"error":"opus_t9NLEA_error","
|
|
1618
|
+
var SwitchField_default = {"error":"opus_t9NLEA_error","track":"opus_t9NLEA_track","toggle":"opus_t9NLEA_toggle","shell":"opus_t9NLEA_shell"};
|
|
1542
1619
|
|
|
1543
1620
|
// ../../components/fields/SwitchField/SwitchField.tsx
|
|
1544
1621
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
@@ -1587,7 +1664,7 @@ function SwitchField({
|
|
|
1587
1664
|
import { useId as useId4 } from "react";
|
|
1588
1665
|
|
|
1589
1666
|
// ../../components/fields/TextAreaField/TextAreaField.module.css
|
|
1590
|
-
var TextAreaField_default = {"inputWrap":"opus_FjhWmh_inputWrap","
|
|
1667
|
+
var TextAreaField_default = {"inputWrap":"opus_FjhWmh_inputWrap","footer":"opus_FjhWmh_footer","inlineCount":"opus_FjhWmh_inlineCount","field":"opus_FjhWmh_field","withCount":"opus_FjhWmh_withCount","error":"opus_FjhWmh_error","textarea":"opus_FjhWmh_textarea","footerError":"opus_FjhWmh_footerError","externalCount":"opus_FjhWmh_externalCount"};
|
|
1591
1668
|
|
|
1592
1669
|
// ../../components/fields/TextAreaField/TextAreaField.tsx
|
|
1593
1670
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
@@ -1666,7 +1743,7 @@ import { config } from "@fortawesome/fontawesome-svg-core";
|
|
|
1666
1743
|
config.autoAddCss = false;
|
|
1667
1744
|
|
|
1668
1745
|
// ../../components/fields/RichTextField/RichTextField.tsx
|
|
1669
|
-
import { useCallback, useEffect as useEffect3, useLayoutEffect, useRef as useRef4, useState as useState5 } from "react";
|
|
1746
|
+
import { useCallback as useCallback2, useEffect as useEffect3, useLayoutEffect as useLayoutEffect2, useRef as useRef4, useState as useState5 } from "react";
|
|
1670
1747
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
1671
1748
|
import {
|
|
1672
1749
|
faAlignCenter,
|
|
@@ -1697,7 +1774,7 @@ import {
|
|
|
1697
1774
|
} from "@fortawesome/free-solid-svg-icons";
|
|
1698
1775
|
|
|
1699
1776
|
// ../../components/fields/RichTextField/RichTextField.module.css
|
|
1700
|
-
var RichTextField_default = {"
|
|
1777
|
+
var RichTextField_default = {"toolbarIcon":"opus_6HFqZH_toolbarIcon","modalDimensions":"opus_6HFqZH_modalDimensions","readOnly":"opus_6HFqZH_readOnly","modalLabel":"opus_6HFqZH_modalLabel","toolbarButton":"opus_6HFqZH_toolbarButton","editor":"opus_6HFqZH_editor","modalCancel":"opus_6HFqZH_modalCancel","divider":"opus_6HFqZH_divider","modalConfirm":"opus_6HFqZH_modalConfirm","toolbar":"opus_6HFqZH_toolbar","colorInput":"opus_6HFqZH_colorInput","modalDimensionField":"opus_6HFqZH_modalDimensionField","modal":"opus_6HFqZH_modal","colorSwatch":"opus_6HFqZH_colorSwatch","error":"opus_6HFqZH_error","modalTimes":"opus_6HFqZH_modalTimes","modalField":"opus_6HFqZH_modalField","modalActions":"opus_6HFqZH_modalActions","modalNumber":"opus_6HFqZH_modalNumber","modalInput":"opus_6HFqZH_modalInput","modalTitle":"opus_6HFqZH_modalTitle","blockSelect":"opus_6HFqZH_blockSelect","toolbarButtonActive":"opus_6HFqZH_toolbarButtonActive","modalOverlay":"opus_6HFqZH_modalOverlay","editorShell":"opus_6HFqZH_editorShell","field":"opus_6HFqZH_field"};
|
|
1701
1778
|
|
|
1702
1779
|
// ../../components/fields/RichTextField/RichTextField.tsx
|
|
1703
1780
|
import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
@@ -1789,7 +1866,7 @@ function RichTextField({
|
|
|
1789
1866
|
const [tableModalOpen, setTableModalOpen] = useState5(false);
|
|
1790
1867
|
const [tableRows, setTableRows] = useState5(2);
|
|
1791
1868
|
const [tableCols, setTableCols] = useState5(2);
|
|
1792
|
-
const syncHistoryState =
|
|
1869
|
+
const syncHistoryState = useCallback2(() => {
|
|
1793
1870
|
if (typeof document === "undefined") {
|
|
1794
1871
|
return;
|
|
1795
1872
|
}
|
|
@@ -1804,7 +1881,7 @@ function RichTextField({
|
|
|
1804
1881
|
setCanRedo(false);
|
|
1805
1882
|
}
|
|
1806
1883
|
}, []);
|
|
1807
|
-
|
|
1884
|
+
useLayoutEffect2(() => {
|
|
1808
1885
|
const editor = editorRef.current;
|
|
1809
1886
|
if (!editor || syncingValueRef.current) {
|
|
1810
1887
|
return;
|
|
@@ -1813,7 +1890,7 @@ function RichTextField({
|
|
|
1813
1890
|
editor.innerHTML = value;
|
|
1814
1891
|
}
|
|
1815
1892
|
}, [value]);
|
|
1816
|
-
const saveSelection =
|
|
1893
|
+
const saveSelection = useCallback2(() => {
|
|
1817
1894
|
const editor = editorRef.current;
|
|
1818
1895
|
const selection = document.getSelection();
|
|
1819
1896
|
if (!editor || !selection || selection.rangeCount === 0) {
|
|
@@ -1823,7 +1900,7 @@ function RichTextField({
|
|
|
1823
1900
|
savedRangeRef.current = selection.getRangeAt(0).cloneRange();
|
|
1824
1901
|
}
|
|
1825
1902
|
}, []);
|
|
1826
|
-
const restoreSelection =
|
|
1903
|
+
const restoreSelection = useCallback2(() => {
|
|
1827
1904
|
const editor = editorRef.current;
|
|
1828
1905
|
const range = savedRangeRef.current;
|
|
1829
1906
|
editor == null ? void 0 : editor.focus();
|
|
@@ -1837,7 +1914,7 @@ function RichTextField({
|
|
|
1837
1914
|
selection.removeAllRanges();
|
|
1838
1915
|
selection.addRange(range);
|
|
1839
1916
|
}, []);
|
|
1840
|
-
const syncToolbarState =
|
|
1917
|
+
const syncToolbarState = useCallback2(() => {
|
|
1841
1918
|
if (typeof document === "undefined") {
|
|
1842
1919
|
return;
|
|
1843
1920
|
}
|
|
@@ -1877,7 +1954,7 @@ function RichTextField({
|
|
|
1877
1954
|
document.addEventListener("selectionchange", handleSelectionChange);
|
|
1878
1955
|
return () => document.removeEventListener("selectionchange", handleSelectionChange);
|
|
1879
1956
|
}, [readOnly, syncHistoryState, syncToolbarState]);
|
|
1880
|
-
const emitChange =
|
|
1957
|
+
const emitChange = useCallback2(() => {
|
|
1881
1958
|
const editor = editorRef.current;
|
|
1882
1959
|
if (!editor) {
|
|
1883
1960
|
return;
|
|
@@ -1889,11 +1966,11 @@ function RichTextField({
|
|
|
1889
1966
|
syncingValueRef.current = false;
|
|
1890
1967
|
});
|
|
1891
1968
|
}, [onChange, syncHistoryState]);
|
|
1892
|
-
const focusEditor =
|
|
1969
|
+
const focusEditor = useCallback2(() => {
|
|
1893
1970
|
var _a2;
|
|
1894
1971
|
(_a2 = editorRef.current) == null ? void 0 : _a2.focus();
|
|
1895
1972
|
}, []);
|
|
1896
|
-
const exec =
|
|
1973
|
+
const exec = useCallback2(
|
|
1897
1974
|
(command, commandValue) => {
|
|
1898
1975
|
if (readOnly) {
|
|
1899
1976
|
return;
|
|
@@ -1905,7 +1982,7 @@ function RichTextField({
|
|
|
1905
1982
|
},
|
|
1906
1983
|
[emitChange, focusEditor, readOnly, syncToolbarState]
|
|
1907
1984
|
);
|
|
1908
|
-
const execWithSelection =
|
|
1985
|
+
const execWithSelection = useCallback2(
|
|
1909
1986
|
(command, commandValue) => {
|
|
1910
1987
|
if (readOnly) {
|
|
1911
1988
|
return;
|
|
@@ -1917,7 +1994,7 @@ function RichTextField({
|
|
|
1917
1994
|
},
|
|
1918
1995
|
[emitChange, readOnly, restoreSelection, syncToolbarState]
|
|
1919
1996
|
);
|
|
1920
|
-
const applyBlockFormat =
|
|
1997
|
+
const applyBlockFormat = useCallback2(
|
|
1921
1998
|
(nextValue) => {
|
|
1922
1999
|
if (readOnly) {
|
|
1923
2000
|
return;
|
|
@@ -1930,7 +2007,7 @@ function RichTextField({
|
|
|
1930
2007
|
},
|
|
1931
2008
|
[emitChange, focusEditor, readOnly, syncToolbarState]
|
|
1932
2009
|
);
|
|
1933
|
-
const openLinkModal =
|
|
2010
|
+
const openLinkModal = useCallback2(() => {
|
|
1934
2011
|
if (readOnly) {
|
|
1935
2012
|
return;
|
|
1936
2013
|
}
|
|
@@ -1938,7 +2015,7 @@ function RichTextField({
|
|
|
1938
2015
|
setLinkUrl("");
|
|
1939
2016
|
setLinkModalOpen(true);
|
|
1940
2017
|
}, [readOnly, saveSelection]);
|
|
1941
|
-
const confirmLink =
|
|
2018
|
+
const confirmLink = useCallback2(() => {
|
|
1942
2019
|
const url = linkUrl.trim();
|
|
1943
2020
|
setLinkModalOpen(false);
|
|
1944
2021
|
if (!url) {
|
|
@@ -1946,7 +2023,7 @@ function RichTextField({
|
|
|
1946
2023
|
}
|
|
1947
2024
|
execWithSelection("createLink", url);
|
|
1948
2025
|
}, [execWithSelection, linkUrl]);
|
|
1949
|
-
const insertImage =
|
|
2026
|
+
const insertImage = useCallback2(() => {
|
|
1950
2027
|
if (readOnly) {
|
|
1951
2028
|
return;
|
|
1952
2029
|
}
|
|
@@ -1956,7 +2033,7 @@ function RichTextField({
|
|
|
1956
2033
|
}
|
|
1957
2034
|
exec("insertImage", url);
|
|
1958
2035
|
}, [exec, readOnly]);
|
|
1959
|
-
const openTableModal =
|
|
2036
|
+
const openTableModal = useCallback2(() => {
|
|
1960
2037
|
if (readOnly) {
|
|
1961
2038
|
return;
|
|
1962
2039
|
}
|
|
@@ -1965,7 +2042,7 @@ function RichTextField({
|
|
|
1965
2042
|
setTableCols(2);
|
|
1966
2043
|
setTableModalOpen(true);
|
|
1967
2044
|
}, [readOnly, saveSelection]);
|
|
1968
|
-
const confirmTable =
|
|
2045
|
+
const confirmTable = useCallback2(() => {
|
|
1969
2046
|
setTableModalOpen(false);
|
|
1970
2047
|
const rows = Math.max(1, Math.min(20, Math.round(tableRows) || 0));
|
|
1971
2048
|
const cols = Math.max(1, Math.min(20, Math.round(tableCols) || 0));
|
|
@@ -2345,7 +2422,7 @@ import { useState as useState6 } from "react";
|
|
|
2345
2422
|
var TextField_default = {"error":"opus_SOck2f_error","input":"opus_SOck2f_input"};
|
|
2346
2423
|
|
|
2347
2424
|
// ../../components/fields/shared/fieldControl.module.css
|
|
2348
|
-
var fieldControl_default = {"
|
|
2425
|
+
var fieldControl_default = {"search":"opus_1Q5xBh_search","actionButtonPrimary":"opus_1Q5xBh_actionButtonPrimary","triggerError":"opus_1Q5xBh_triggerError","error":"opus_1Q5xBh_error","chevron":"opus_1Q5xBh_chevron","panel":"opus_1Q5xBh_panel","placeholder":"opus_1Q5xBh_placeholder","triggerOpen":"opus_1Q5xBh_triggerOpen","passwordToggle":"opus_1Q5xBh_passwordToggle","option":"opus_1Q5xBh_option","trigger":"opus_1Q5xBh_trigger","groupLabel":"opus_1Q5xBh_groupLabel","input":"opus_1Q5xBh_input","passwordWrap":"opus_1Q5xBh_passwordWrap","actionButton":"opus_1Q5xBh_actionButton","passwordInput":"opus_1Q5xBh_passwordInput","panelFooter":"opus_1Q5xBh_panelFooter","list":"opus_1Q5xBh_list","passwordToggleSlot":"opus_1Q5xBh_passwordToggleSlot"};
|
|
2349
2426
|
|
|
2350
2427
|
// ../../components/fields/shared/PasswordToggle.tsx
|
|
2351
2428
|
import { FontAwesomeIcon as FontAwesomeIcon2 } from "@fortawesome/react-fontawesome";
|
|
@@ -2428,12 +2505,13 @@ import { FontAwesomeIcon as FontAwesomeIcon3 } from "@fortawesome/react-fontawes
|
|
|
2428
2505
|
import { faMoon, faSun } from "@fortawesome/free-solid-svg-icons";
|
|
2429
2506
|
|
|
2430
2507
|
// ../../components/fields/ThemeToggleField/ThemeToggleField.module.css
|
|
2431
|
-
var ThemeToggleField_default = {"option":"opus_SwerMA_option","indicator":"opus_SwerMA_indicator","
|
|
2508
|
+
var ThemeToggleField_default = {"option":"opus_SwerMA_option","indicator":"opus_SwerMA_indicator","toggle":"opus_SwerMA_toggle","active":"opus_SwerMA_active"};
|
|
2432
2509
|
|
|
2433
2510
|
// ../../components/fields/ThemeToggleField/ThemeToggleField.tsx
|
|
2434
2511
|
import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2435
2512
|
function ThemeToggleField({
|
|
2436
2513
|
className,
|
|
2514
|
+
help,
|
|
2437
2515
|
id,
|
|
2438
2516
|
label = "Theme",
|
|
2439
2517
|
labelPosition = "left",
|
|
@@ -2448,6 +2526,7 @@ function ThemeToggleField({
|
|
|
2448
2526
|
className,
|
|
2449
2527
|
fitContent: true,
|
|
2450
2528
|
flaggedAlign: "center",
|
|
2529
|
+
help,
|
|
2451
2530
|
id,
|
|
2452
2531
|
label,
|
|
2453
2532
|
labelPosition,
|
|
@@ -2759,7 +2838,7 @@ function MultiSelectField({
|
|
|
2759
2838
|
import { useState as useState9 } from "react";
|
|
2760
2839
|
|
|
2761
2840
|
// ../../components/fields/TransferListField/TransferListField.module.css
|
|
2762
|
-
var TransferListField_default = {"column":"opus_NPBFZk_column","
|
|
2841
|
+
var TransferListField_default = {"column":"opus_NPBFZk_column","list":"opus_NPBFZk_list","item":"opus_NPBFZk_item","controls":"opus_NPBFZk_controls","root":"opus_NPBFZk_root","columnHeader":"opus_NPBFZk_columnHeader","controlButton":"opus_NPBFZk_controlButton","itemActive":"opus_NPBFZk_itemActive"};
|
|
2763
2842
|
|
|
2764
2843
|
// ../../components/fields/TransferListField/TransferListField.tsx
|
|
2765
2844
|
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
@@ -2879,7 +2958,7 @@ import { FontAwesomeIcon as FontAwesomeIcon4 } from "@fortawesome/react-fontawes
|
|
|
2879
2958
|
import { faCheck, faXmark } from "@fortawesome/free-solid-svg-icons";
|
|
2880
2959
|
|
|
2881
2960
|
// ../../components/fields/PasswordStrengthField/PasswordStrengthField.module.css
|
|
2882
|
-
var PasswordStrengthField_default = {"
|
|
2961
|
+
var PasswordStrengthField_default = {"root":"opus_S1A372_root","requirementMet":"opus_S1A372_requirementMet","requirementIcon":"opus_S1A372_requirementIcon","meterFill":"opus_S1A372_meterFill","requirements":"opus_S1A372_requirements","meterWrap":"opus_S1A372_meterWrap","meterLabel":"opus_S1A372_meterLabel","requirement":"opus_S1A372_requirement","meterTrack":"opus_S1A372_meterTrack"};
|
|
2883
2962
|
|
|
2884
2963
|
// ../../components/fields/PasswordStrengthField/PasswordStrengthField.tsx
|
|
2885
2964
|
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
@@ -2987,7 +3066,7 @@ function PasswordStrengthField({
|
|
|
2987
3066
|
}
|
|
2988
3067
|
|
|
2989
3068
|
// ../../components/fields/RatingField/RatingField.module.css
|
|
2990
|
-
var RatingField_default = {"
|
|
3069
|
+
var RatingField_default = {"symbol":"opus_0tdNUz_symbol","numericActive":"opus_0tdNUz_numericActive","numeric":"opus_0tdNUz_numeric","root":"opus_0tdNUz_root","symbolActive":"opus_0tdNUz_symbolActive"};
|
|
2991
3070
|
|
|
2992
3071
|
// ../../components/fields/RatingField/RatingField.tsx
|
|
2993
3072
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
@@ -3062,7 +3141,7 @@ function RatingField({
|
|
|
3062
3141
|
}
|
|
3063
3142
|
|
|
3064
3143
|
// ../../components/fields/SegmentedControlField/SegmentedControlField.module.css
|
|
3065
|
-
var SegmentedControlField_default = {"
|
|
3144
|
+
var SegmentedControlField_default = {"root":"opus_ZHwfiN_root","segment":"opus_ZHwfiN_segment","segmentActive":"opus_ZHwfiN_segmentActive"};
|
|
3066
3145
|
|
|
3067
3146
|
// ../../components/fields/SegmentedControlField/SegmentedControlField.tsx
|
|
3068
3147
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
@@ -3117,7 +3196,7 @@ function SegmentedControlField({
|
|
|
3117
3196
|
import { useMemo as useMemo5 } from "react";
|
|
3118
3197
|
|
|
3119
3198
|
// ../../components/fields/SliderRangeField/SliderRangeField.module.css
|
|
3120
|
-
var SliderRangeField_default = {"value":"opus_k3d0sS_value","track":"opus_k3d0sS_track","
|
|
3199
|
+
var SliderRangeField_default = {"value":"opus_k3d0sS_value","track":"opus_k3d0sS_track","slider":"opus_k3d0sS_slider","footer":"opus_k3d0sS_footer","trackWrap":"opus_k3d0sS_trackWrap","root":"opus_k3d0sS_root","header":"opus_k3d0sS_header"};
|
|
3121
3200
|
|
|
3122
3201
|
// ../../components/fields/SliderRangeField/SliderRangeField.tsx
|
|
3123
3202
|
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -3214,7 +3293,7 @@ function SliderRangeField({
|
|
|
3214
3293
|
import { useEffect as useEffect6, useMemo as useMemo6, useRef as useRef7, useState as useState11 } from "react";
|
|
3215
3294
|
|
|
3216
3295
|
// ../../components/fields/PhoneNumberField/PhoneNumberField.module.css
|
|
3217
|
-
var PhoneNumberField_default = {"
|
|
3296
|
+
var PhoneNumberField_default = {"countryValue":"opus_WC4gnN_countryValue","root":"opus_WC4gnN_root","option":"opus_WC4gnN_option","panel":"opus_WC4gnN_panel","chevron":"opus_WC4gnN_chevron","optionActive":"opus_WC4gnN_optionActive","dial":"opus_WC4gnN_dial","code":"opus_WC4gnN_code","country":"opus_WC4gnN_country","optionLabel":"opus_WC4gnN_optionLabel","optionDial":"opus_WC4gnN_optionDial","flag":"opus_WC4gnN_flag","empty":"opus_WC4gnN_empty","countryWrap":"opus_WC4gnN_countryWrap"};
|
|
3218
3297
|
|
|
3219
3298
|
// ../../components/fields/PhoneNumberField/countries.ts
|
|
3220
3299
|
function countryCodeToFlag(code) {
|
|
@@ -3617,7 +3696,7 @@ function PhoneNumberField({
|
|
|
3617
3696
|
import { useEffect as useEffect7, useMemo as useMemo7, useRef as useRef8, useState as useState12 } from "react";
|
|
3618
3697
|
|
|
3619
3698
|
// ../../components/fields/CountryPickerField/CountryPickerField.module.css
|
|
3620
|
-
var CountryPickerField_default = {"
|
|
3699
|
+
var CountryPickerField_default = {"option":"opus_O7qqfR_option","optionCode":"opus_O7qqfR_optionCode","flag":"opus_O7qqfR_flag","root":"opus_O7qqfR_root","empty":"opus_O7qqfR_empty","triggerValue":"opus_O7qqfR_triggerValue","optionActive":"opus_O7qqfR_optionActive","optionLabel":"opus_O7qqfR_optionLabel"};
|
|
3621
3700
|
|
|
3622
3701
|
// ../../components/fields/CountryPickerField/CountryPickerField.tsx
|
|
3623
3702
|
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
@@ -3773,7 +3852,7 @@ function CountryPickerField({
|
|
|
3773
3852
|
import { useEffect as useEffect8, useMemo as useMemo8, useRef as useRef9, useState as useState13 } from "react";
|
|
3774
3853
|
|
|
3775
3854
|
// ../../components/fields/TreeSelectField/TreeSelectField.module.css
|
|
3776
|
-
var TreeSelectField_default = {"treeOption":"opus_Mq6C00_treeOption","
|
|
3855
|
+
var TreeSelectField_default = {"treeOption":"opus_Mq6C00_treeOption","root":"opus_Mq6C00_root","treeOptionActive":"opus_Mq6C00_treeOptionActive"};
|
|
3777
3856
|
|
|
3778
3857
|
// ../../components/fields/TreeSelectField/TreeSelectField.tsx
|
|
3779
3858
|
import { Fragment as Fragment3, jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -3902,7 +3981,7 @@ function TreeSelectField({
|
|
|
3902
3981
|
import { useEffect as useEffect9, useMemo as useMemo9, useRef as useRef10, useState as useState14 } from "react";
|
|
3903
3982
|
|
|
3904
3983
|
// ../../components/fields/CascaderField/CascaderField.module.css
|
|
3905
|
-
var CascaderField_default = {"
|
|
3984
|
+
var CascaderField_default = {"option":"opus_1Fg59A_option","optionActive":"opus_1Fg59A_optionActive","column":"opus_1Fg59A_column","root":"opus_1Fg59A_root","panel":"opus_1Fg59A_panel"};
|
|
3906
3985
|
|
|
3907
3986
|
// ../../components/fields/CascaderField/CascaderField.tsx
|
|
3908
3987
|
import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
@@ -4105,7 +4184,7 @@ function OpusThemeProvider({
|
|
|
4105
4184
|
}
|
|
4106
4185
|
|
|
4107
4186
|
// ../../components/Alert/Alert.module.css
|
|
4108
|
-
var Alert_default = {"
|
|
4187
|
+
var Alert_default = {"content":"opus_eh3eeT_content","iconSvg":"opus_eh3eeT_iconSvg","iconFlagged":"opus_eh3eeT_iconFlagged","iconMark":"opus_eh3eeT_iconMark","title":"opus_eh3eeT_title","dismissIcon":"opus_eh3eeT_dismissIcon","dismiss":"opus_eh3eeT_dismiss","alert":"opus_eh3eeT_alert","icon":"opus_eh3eeT_icon","description":"opus_eh3eeT_description"};
|
|
4109
4188
|
|
|
4110
4189
|
// ../../components/Alert/Alert.tsx
|
|
4111
4190
|
import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -4254,7 +4333,7 @@ function useOverlayAccessibility(active, containerRef, {
|
|
|
4254
4333
|
}
|
|
4255
4334
|
|
|
4256
4335
|
// ../../components/Dialog/Dialog.module.css
|
|
4257
|
-
var Dialog_default = {"visuallyHidden":"opus_sz-ZGI_visuallyHidden","
|
|
4336
|
+
var Dialog_default = {"visuallyHidden":"opus_sz-ZGI_visuallyHidden","dialogIn":"opus_sz-ZGI_dialogIn","backdrop":"opus_sz-ZGI_backdrop","description":"opus_sz-ZGI_description","body":"opus_sz-ZGI_body","dialog":"opus_sz-ZGI_dialog","dialogOut":"opus_sz-ZGI_dialogOut","title":"opus_sz-ZGI_title","backdropIn":"opus_sz-ZGI_backdropIn","actions":"opus_sz-ZGI_actions","icon":"opus_sz-ZGI_icon","backdropOut":"opus_sz-ZGI_backdropOut","iconMark":"opus_sz-ZGI_iconMark","iconSvg":"opus_sz-ZGI_iconSvg","content":"opus_sz-ZGI_content"};
|
|
4258
4337
|
|
|
4259
4338
|
// ../../components/Dialog/Dialog.tsx
|
|
4260
4339
|
import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
@@ -4385,7 +4464,7 @@ function Dialog({
|
|
|
4385
4464
|
import { useEffect as useEffect13, useId as useId6, useRef as useRef13, useState as useState16 } from "react";
|
|
4386
4465
|
|
|
4387
4466
|
// ../../components/Modal/Modal.module.css
|
|
4388
|
-
var Modal_default = {"
|
|
4467
|
+
var Modal_default = {"modalBackdropOut":"opus_LQbzGS_modalBackdropOut","modal":"opus_LQbzGS_modal","footer":"opus_LQbzGS_footer","body":"opus_LQbzGS_body","modalPanelOut":"opus_LQbzGS_modalPanelOut","heading":"opus_LQbzGS_heading","modalPanelIn":"opus_LQbzGS_modalPanelIn","title":"opus_LQbzGS_title","description":"opus_LQbzGS_description","close":"opus_LQbzGS_close","actions":"opus_LQbzGS_actions","header":"opus_LQbzGS_header","modalBackdropIn":"opus_LQbzGS_modalBackdropIn","closeIcon":"opus_LQbzGS_closeIcon","footerContent":"opus_LQbzGS_footerContent","backdrop":"opus_LQbzGS_backdrop"};
|
|
4389
4468
|
|
|
4390
4469
|
// ../../components/Modal/Modal.tsx
|
|
4391
4470
|
import { Fragment as Fragment4, jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
@@ -4516,7 +4595,7 @@ function ModalDefaultActions({ onClose }) {
|
|
|
4516
4595
|
import { useEffect as useEffect14, useId as useId7, useRef as useRef14, useState as useState17 } from "react";
|
|
4517
4596
|
|
|
4518
4597
|
// ../../components/Drawer/Drawer.module.css
|
|
4519
|
-
var Drawer_default = {"
|
|
4598
|
+
var Drawer_default = {"drawer":"opus_0CaGbZ_drawer","drawerInRight":"opus_0CaGbZ_drawerInRight","description":"opus_0CaGbZ_description","footerContent":"opus_0CaGbZ_footerContent","title":"opus_0CaGbZ_title","actions":"opus_0CaGbZ_actions","drawerOutRight":"opus_0CaGbZ_drawerOutRight","drawerBackdropIn":"opus_0CaGbZ_drawerBackdropIn","close":"opus_0CaGbZ_close","drawerBackdropOut":"opus_0CaGbZ_drawerBackdropOut","drawerOutTop":"opus_0CaGbZ_drawerOutTop","drawerOutBottom":"opus_0CaGbZ_drawerOutBottom","heading":"opus_0CaGbZ_heading","drawerInLeft":"opus_0CaGbZ_drawerInLeft","drawerInBottom":"opus_0CaGbZ_drawerInBottom","closeIcon":"opus_0CaGbZ_closeIcon","body":"opus_0CaGbZ_body","backdrop":"opus_0CaGbZ_backdrop","drawerInTop":"opus_0CaGbZ_drawerInTop","drawerOutLeft":"opus_0CaGbZ_drawerOutLeft","footer":"opus_0CaGbZ_footer","header":"opus_0CaGbZ_header"};
|
|
4520
4599
|
|
|
4521
4600
|
// ../../components/Drawer/Drawer.tsx
|
|
4522
4601
|
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
@@ -4648,7 +4727,7 @@ function DrawerDefaultActions({ onClose }) {
|
|
|
4648
4727
|
import {
|
|
4649
4728
|
cloneElement,
|
|
4650
4729
|
isValidElement,
|
|
4651
|
-
useCallback as
|
|
4730
|
+
useCallback as useCallback3,
|
|
4652
4731
|
useEffect as useEffect15,
|
|
4653
4732
|
useId as useId8,
|
|
4654
4733
|
useRef as useRef15,
|
|
@@ -4656,7 +4735,7 @@ import {
|
|
|
4656
4735
|
} from "react";
|
|
4657
4736
|
|
|
4658
4737
|
// ../../components/Popover/Popover.module.css
|
|
4659
|
-
var Popover_default = {"
|
|
4738
|
+
var Popover_default = {"root":"opus_yq4OU0_root","popoverIn":"opus_yq4OU0_popoverIn","panel":"opus_yq4OU0_panel","title":"opus_yq4OU0_title","content":"opus_yq4OU0_content","arrow":"opus_yq4OU0_arrow"};
|
|
4660
4739
|
|
|
4661
4740
|
// ../../components/Popover/Popover.tsx
|
|
4662
4741
|
import { jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
@@ -4698,7 +4777,7 @@ function Popover({
|
|
|
4698
4777
|
restoreFocus: true,
|
|
4699
4778
|
trapFocus: false
|
|
4700
4779
|
});
|
|
4701
|
-
const setVisible =
|
|
4780
|
+
const setVisible = useCallback3((nextOpen) => {
|
|
4702
4781
|
if (!controlled) {
|
|
4703
4782
|
setInternalOpen(nextOpen);
|
|
4704
4783
|
}
|
|
@@ -4761,18 +4840,18 @@ function Popover({
|
|
|
4761
4840
|
import {
|
|
4762
4841
|
cloneElement as cloneElement2,
|
|
4763
4842
|
isValidElement as isValidElement2,
|
|
4764
|
-
useCallback as
|
|
4843
|
+
useCallback as useCallback6,
|
|
4765
4844
|
useEffect as useEffect18,
|
|
4766
4845
|
useId as useId10,
|
|
4767
|
-
useLayoutEffect as
|
|
4846
|
+
useLayoutEffect as useLayoutEffect4,
|
|
4768
4847
|
useRef as useRef18,
|
|
4769
4848
|
useState as useState21
|
|
4770
4849
|
} from "react";
|
|
4771
|
-
import { createPortal as
|
|
4850
|
+
import { createPortal as createPortal3 } from "react-dom";
|
|
4772
4851
|
|
|
4773
4852
|
// ../../components/TopNavigation/TopNavigation.tsx
|
|
4774
4853
|
import {
|
|
4775
|
-
useCallback as
|
|
4854
|
+
useCallback as useCallback5,
|
|
4776
4855
|
useContext as useContext5,
|
|
4777
4856
|
useEffect as useEffect17,
|
|
4778
4857
|
useMemo as useMemo10,
|
|
@@ -4781,8 +4860,8 @@ import {
|
|
|
4781
4860
|
} from "react";
|
|
4782
4861
|
|
|
4783
4862
|
// ../../components/MegaMenu/MegaMenu.tsx
|
|
4784
|
-
import { useCallback as
|
|
4785
|
-
import { createPortal } from "react-dom";
|
|
4863
|
+
import { useCallback as useCallback4, useEffect as useEffect16, useId as useId9, useLayoutEffect as useLayoutEffect3, useRef as useRef16, useState as useState19 } from "react";
|
|
4864
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
4786
4865
|
|
|
4787
4866
|
// ../../components/TopNavigation/TopNavigationContext.tsx
|
|
4788
4867
|
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
@@ -4823,7 +4902,7 @@ function resolveMegaMenuPortalStyle(root, inTopNavigation) {
|
|
|
4823
4902
|
}
|
|
4824
4903
|
|
|
4825
4904
|
// ../../components/MegaMenu/MegaMenu.module.css
|
|
4826
|
-
var MegaMenu_default = {"
|
|
4905
|
+
var MegaMenu_default = {"featuredAction":"opus_Y_ikQV_featuredAction","megaMenuIn":"opus_Y_ikQV_megaMenuIn","items":"opus_Y_ikQV_items","itemIcon":"opus_Y_ikQV_itemIcon","megaMenuOut":"opus_Y_ikQV_megaMenuOut","root":"opus_Y_ikQV_root","trigger":"opus_Y_ikQV_trigger","sections":"opus_Y_ikQV_sections","section":"opus_Y_ikQV_section","featured":"opus_Y_ikQV_featured","panelContent":"opus_Y_ikQV_panelContent","panel":"opus_Y_ikQV_panel","itemCopy":"opus_Y_ikQV_itemCopy","menuBar":"opus_Y_ikQV_menuBar","item":"opus_Y_ikQV_item","eyebrow":"opus_Y_ikQV_eyebrow"};
|
|
4827
4906
|
|
|
4828
4907
|
// ../../components/MegaMenu/MegaMenu.tsx
|
|
4829
4908
|
import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
@@ -5057,7 +5136,7 @@ function MegaMenu({
|
|
|
5057
5136
|
const visible = isStaticPanel ? true : inTopNavigation ? navigationOpen : controlled ? open : internalOpen;
|
|
5058
5137
|
const resolvedCloseOnEscape = inTopNavigation ? topNavigation.closeOnEscape : closeOnEscape;
|
|
5059
5138
|
const resolvedCloseOnOutside = inTopNavigation ? topNavigation.closeOnOutside : closeOnOutside;
|
|
5060
|
-
const setVisible =
|
|
5139
|
+
const setVisible = useCallback4((nextOpen, menuId2 = ((_d2) => (_d2 = activeConfig == null ? void 0 : activeConfig.id) != null ? _d2 : firstMenuId)()) => {
|
|
5061
5140
|
if (inTopNavigation) {
|
|
5062
5141
|
if (nextOpen) {
|
|
5063
5142
|
topNavigation.openMenu(menuId2);
|
|
@@ -5069,13 +5148,13 @@ function MegaMenu({
|
|
|
5069
5148
|
}
|
|
5070
5149
|
onOpenChange == null ? void 0 : onOpenChange(nextOpen);
|
|
5071
5150
|
}, [activeConfig == null ? void 0 : activeConfig.id, controlled, firstMenuId, inTopNavigation, onOpenChange, topNavigation]);
|
|
5072
|
-
const setActive =
|
|
5151
|
+
const setActive = useCallback4((menuId2) => {
|
|
5073
5152
|
if (activeMenu === void 0) {
|
|
5074
5153
|
setInternalActiveMenu(menuId2);
|
|
5075
5154
|
}
|
|
5076
5155
|
onActiveMenuChange == null ? void 0 : onActiveMenuChange(menuId2);
|
|
5077
5156
|
}, [activeMenu, onActiveMenuChange]);
|
|
5078
|
-
const openMenu =
|
|
5157
|
+
const openMenu = useCallback4((menuId2) => {
|
|
5079
5158
|
setActive(menuId2);
|
|
5080
5159
|
setVisible(true, menuId2);
|
|
5081
5160
|
}, [setActive, setVisible]);
|
|
@@ -5083,7 +5162,7 @@ function MegaMenu({
|
|
|
5083
5162
|
const timeout = window.setTimeout(() => setPortalReady(true), 0);
|
|
5084
5163
|
return () => window.clearTimeout(timeout);
|
|
5085
5164
|
}, []);
|
|
5086
|
-
|
|
5165
|
+
useLayoutEffect3(() => {
|
|
5087
5166
|
if (isStaticPanel || !renderPanel || !rootRef.current) {
|
|
5088
5167
|
setPortalStyle(null);
|
|
5089
5168
|
return;
|
|
@@ -5259,14 +5338,14 @@ function MegaMenu({
|
|
|
5259
5338
|
);
|
|
5260
5339
|
}) }),
|
|
5261
5340
|
isStaticPanel ? panelNode : null,
|
|
5262
|
-
!isStaticPanel && portalReady && panelNode ?
|
|
5341
|
+
!isStaticPanel && portalReady && panelNode ? createPortal2(panelNode, document.body) : null
|
|
5263
5342
|
]
|
|
5264
5343
|
}
|
|
5265
5344
|
);
|
|
5266
5345
|
}
|
|
5267
5346
|
|
|
5268
5347
|
// ../../components/TopNavigation/TopNavigation.module.css
|
|
5269
|
-
var TopNavigation_default = {"
|
|
5348
|
+
var TopNavigation_default = {"bar":"opus_OIomR6_bar","menuTrigger":"opus_OIomR6_menuTrigger","nav":"opus_OIomR6_nav","menuSlot":"opus_OIomR6_menuSlot","menuSlotMega":"opus_OIomR6_menuSlotMega"};
|
|
5270
5349
|
|
|
5271
5350
|
// ../../components/TopNavigation/TopNavigation.tsx
|
|
5272
5351
|
import { Fragment as Fragment6, jsx as jsx39 } from "react/jsx-runtime";
|
|
@@ -5492,27 +5571,27 @@ function TopNavigation({
|
|
|
5492
5571
|
}) {
|
|
5493
5572
|
const closeTimeoutRef = useRef17(null);
|
|
5494
5573
|
const [presentMenus, setPresentMenus] = useState20(() => /* @__PURE__ */ new Set());
|
|
5495
|
-
const clearCloseTimeout =
|
|
5574
|
+
const clearCloseTimeout = useCallback5(() => {
|
|
5496
5575
|
if (closeTimeoutRef.current) {
|
|
5497
5576
|
window.clearTimeout(closeTimeoutRef.current);
|
|
5498
5577
|
closeTimeoutRef.current = null;
|
|
5499
5578
|
}
|
|
5500
5579
|
}, []);
|
|
5501
|
-
const openMenu =
|
|
5580
|
+
const openMenu = useCallback5(
|
|
5502
5581
|
(menuId) => {
|
|
5503
5582
|
clearCloseTimeout();
|
|
5504
5583
|
onActiveMenuChange == null ? void 0 : onActiveMenuChange(menuId);
|
|
5505
5584
|
},
|
|
5506
5585
|
[clearCloseTimeout, onActiveMenuChange]
|
|
5507
5586
|
);
|
|
5508
|
-
const closeMenu =
|
|
5587
|
+
const closeMenu = useCallback5(() => {
|
|
5509
5588
|
onActiveMenuChange == null ? void 0 : onActiveMenuChange(null);
|
|
5510
5589
|
}, [onActiveMenuChange]);
|
|
5511
|
-
const scheduleClose =
|
|
5590
|
+
const scheduleClose = useCallback5(() => {
|
|
5512
5591
|
clearCloseTimeout();
|
|
5513
5592
|
closeTimeoutRef.current = window.setTimeout(closeMenu, HOVER_CLOSE_DELAY_MS);
|
|
5514
5593
|
}, [clearCloseTimeout, closeMenu]);
|
|
5515
|
-
const setMenuPresent =
|
|
5594
|
+
const setMenuPresent = useCallback5((menuId, present) => {
|
|
5516
5595
|
setPresentMenus((current) => {
|
|
5517
5596
|
const hasMenu = current.has(menuId);
|
|
5518
5597
|
if (present && hasMenu) {
|
|
@@ -5623,7 +5702,7 @@ function handleMenuKeyDown(event, menu, onEscape) {
|
|
|
5623
5702
|
}
|
|
5624
5703
|
|
|
5625
5704
|
// ../../components/DropdownMenu/DropdownMenu.module.css
|
|
5626
|
-
var DropdownMenu_default = {"
|
|
5705
|
+
var DropdownMenu_default = {"dropdownIn":"opus_UUVDVQ_dropdownIn","dropdownOut":"opus_UUVDVQ_dropdownOut","menu":"opus_UUVDVQ_menu","icon":"opus_UUVDVQ_icon","label":"opus_UUVDVQ_label","root":"opus_UUVDVQ_root","shortcut":"opus_UUVDVQ_shortcut","item":"opus_UUVDVQ_item"};
|
|
5627
5706
|
|
|
5628
5707
|
// ../../components/DropdownMenu/DropdownMenu.tsx
|
|
5629
5708
|
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
@@ -5728,7 +5807,7 @@ function DropdownMenu({
|
|
|
5728
5807
|
const resolvedElevated = elevated || inTopNavigation;
|
|
5729
5808
|
const dismissOnOutside = openOnHover ? false : resolvedCloseOnOutside;
|
|
5730
5809
|
const disableClickToggle = openOnHover;
|
|
5731
|
-
const setVisible =
|
|
5810
|
+
const setVisible = useCallback6((nextOpen) => {
|
|
5732
5811
|
if (!controlled) {
|
|
5733
5812
|
setInternalOpen(nextOpen);
|
|
5734
5813
|
}
|
|
@@ -5737,13 +5816,13 @@ function DropdownMenu({
|
|
|
5737
5816
|
topNavigation.closeMenu();
|
|
5738
5817
|
}
|
|
5739
5818
|
}, [controlled, inTopNavigation, onOpenChange, topNavigation]);
|
|
5740
|
-
const clearHoverCloseTimeout =
|
|
5819
|
+
const clearHoverCloseTimeout = useCallback6(() => {
|
|
5741
5820
|
if (hoverCloseTimeoutRef.current) {
|
|
5742
5821
|
window.clearTimeout(hoverCloseTimeoutRef.current);
|
|
5743
5822
|
hoverCloseTimeoutRef.current = null;
|
|
5744
5823
|
}
|
|
5745
5824
|
}, []);
|
|
5746
|
-
const scheduleHoverClose =
|
|
5825
|
+
const scheduleHoverClose = useCallback6(() => {
|
|
5747
5826
|
clearHoverCloseTimeout();
|
|
5748
5827
|
hoverCloseTimeoutRef.current = window.setTimeout(() => {
|
|
5749
5828
|
setVisible(false);
|
|
@@ -5771,7 +5850,7 @@ function DropdownMenu({
|
|
|
5771
5850
|
const timeout = window.setTimeout(() => setPortalReady(true), 0);
|
|
5772
5851
|
return () => window.clearTimeout(timeout);
|
|
5773
5852
|
}, []);
|
|
5774
|
-
|
|
5853
|
+
useLayoutEffect4(() => {
|
|
5775
5854
|
if (!renderMenu || !rootRef.current) {
|
|
5776
5855
|
setPortalStyle(null);
|
|
5777
5856
|
return;
|
|
@@ -5943,7 +6022,7 @@ function DropdownMenu({
|
|
|
5943
6022
|
},
|
|
5944
6023
|
label
|
|
5945
6024
|
),
|
|
5946
|
-
portalReady && menuNode ?
|
|
6025
|
+
portalReady && menuNode ? createPortal3(menuNode, document.body) : null
|
|
5947
6026
|
]
|
|
5948
6027
|
}
|
|
5949
6028
|
);
|
|
@@ -5952,18 +6031,18 @@ function DropdownMenu({
|
|
|
5952
6031
|
// ../../components/ContextMenu/ContextMenuProvider.tsx
|
|
5953
6032
|
import {
|
|
5954
6033
|
createContext as createContext5,
|
|
5955
|
-
useCallback as
|
|
6034
|
+
useCallback as useCallback7,
|
|
5956
6035
|
useContext as useContext6,
|
|
5957
6036
|
useEffect as useEffect19,
|
|
5958
6037
|
useId as useId11,
|
|
5959
|
-
useLayoutEffect as
|
|
6038
|
+
useLayoutEffect as useLayoutEffect5,
|
|
5960
6039
|
useRef as useRef19,
|
|
5961
6040
|
useState as useState22
|
|
5962
6041
|
} from "react";
|
|
5963
|
-
import { createPortal as
|
|
6042
|
+
import { createPortal as createPortal4 } from "react-dom";
|
|
5964
6043
|
|
|
5965
6044
|
// ../../components/ContextMenu/ContextMenu.module.css
|
|
5966
|
-
var ContextMenu_default = {"menu":"opus_nMhhae_menu","layer":"opus_nMhhae_layer","backdrop":"opus_nMhhae_backdrop","contextMenuBackdropIn":"opus_nMhhae_contextMenuBackdropIn","contextMenuIn":"opus_nMhhae_contextMenuIn"
|
|
6045
|
+
var ContextMenu_default = {"menu":"opus_nMhhae_menu","layer":"opus_nMhhae_layer","target":"opus_nMhhae_target","backdrop":"opus_nMhhae_backdrop","contextMenuBackdropIn":"opus_nMhhae_contextMenuBackdropIn","contextMenuIn":"opus_nMhhae_contextMenuIn"};
|
|
5967
6046
|
|
|
5968
6047
|
// ../../components/ContextMenu/ContextMenuProvider.tsx
|
|
5969
6048
|
import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
@@ -6028,12 +6107,12 @@ function ContextMenuProvider({
|
|
|
6028
6107
|
useEffect19(() => {
|
|
6029
6108
|
setMounted(true);
|
|
6030
6109
|
}, []);
|
|
6031
|
-
const close =
|
|
6110
|
+
const close = useCallback7(() => {
|
|
6032
6111
|
setActiveMenu(null);
|
|
6033
6112
|
setAdjustedPosition(null);
|
|
6034
6113
|
onOpenChange == null ? void 0 : onOpenChange(false);
|
|
6035
6114
|
}, [onOpenChange]);
|
|
6036
|
-
const registerTarget =
|
|
6115
|
+
const registerTarget = useCallback7(
|
|
6037
6116
|
(targetId, registration) => {
|
|
6038
6117
|
targetsRef.current.set(targetId, registration);
|
|
6039
6118
|
return () => {
|
|
@@ -6042,7 +6121,7 @@ function ContextMenuProvider({
|
|
|
6042
6121
|
},
|
|
6043
6122
|
[]
|
|
6044
6123
|
);
|
|
6045
|
-
const openFromTarget =
|
|
6124
|
+
const openFromTarget = useCallback7(
|
|
6046
6125
|
(targetId, x, y) => {
|
|
6047
6126
|
const registration = targetsRef.current.get(targetId);
|
|
6048
6127
|
if (!registration) {
|
|
@@ -6088,7 +6167,7 @@ function ContextMenuProvider({
|
|
|
6088
6167
|
setAdjustedPosition(null);
|
|
6089
6168
|
}
|
|
6090
6169
|
}, [controlled, open]);
|
|
6091
|
-
|
|
6170
|
+
useLayoutEffect5(() => {
|
|
6092
6171
|
if (!visible || !activeMenu || !menuRef.current) {
|
|
6093
6172
|
return;
|
|
6094
6173
|
}
|
|
@@ -6168,7 +6247,7 @@ function ContextMenuProvider({
|
|
|
6168
6247
|
const portalTheme = (_d2 = activeMenu == null ? void 0 : activeMenu.theme) != null ? _d2 : theme;
|
|
6169
6248
|
return /* @__PURE__ */ jsxs31(ContextMenuContext.Provider, { value: contextValue, children: [
|
|
6170
6249
|
children,
|
|
6171
|
-
mounted && visible && activeMenu && menuPosition ?
|
|
6250
|
+
mounted && visible && activeMenu && menuPosition ? createPortal4(
|
|
6172
6251
|
/* @__PURE__ */ jsxs31("div", { className: ContextMenu_default.layer, "data-theme": portalTheme, children: [
|
|
6173
6252
|
/* @__PURE__ */ jsx41(
|
|
6174
6253
|
"button",
|
|
@@ -6274,7 +6353,7 @@ import { faMagnifyingGlass } from "@fortawesome/free-solid-svg-icons";
|
|
|
6274
6353
|
import { FontAwesomeIcon as FontAwesomeIcon5 } from "@fortawesome/react-fontawesome";
|
|
6275
6354
|
|
|
6276
6355
|
// ../../components/CommandPalette/CommandPalette.module.css
|
|
6277
|
-
var CommandPalette_default = {"
|
|
6356
|
+
var CommandPalette_default = {"item":"opus_k1ypuy_item","commandPalettePanelIn":"opus_k1ypuy_commandPalettePanelIn","commandPaletteBackdropIn":"opus_k1ypuy_commandPaletteBackdropIn","searchInput":"opus_k1ypuy_searchInput","itemMain":"opus_k1ypuy_itemMain","empty":"opus_k1ypuy_empty","group":"opus_k1ypuy_group","itemDescription":"opus_k1ypuy_itemDescription","backdrop":"opus_k1ypuy_backdrop","searchWrap":"opus_k1ypuy_searchWrap","visuallyHidden":"opus_k1ypuy_visuallyHidden","searchIcon":"opus_k1ypuy_searchIcon","commandPalettePanelOut":"opus_k1ypuy_commandPalettePanelOut","footer":"opus_k1ypuy_footer","shortcut":"opus_k1ypuy_shortcut","results":"opus_k1ypuy_results","groupLabel":"opus_k1ypuy_groupLabel","panel":"opus_k1ypuy_panel","commandPaletteBackdropOut":"opus_k1ypuy_commandPaletteBackdropOut","searchIconSvg":"opus_k1ypuy_searchIconSvg","itemLabel":"opus_k1ypuy_itemLabel"};
|
|
6278
6357
|
|
|
6279
6358
|
// ../../components/CommandPalette/CommandPalette.tsx
|
|
6280
6359
|
import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
@@ -6543,7 +6622,7 @@ import {
|
|
|
6543
6622
|
} from "react";
|
|
6544
6623
|
|
|
6545
6624
|
// ../../components/AccordionGroup/AccordionGroup.tsx
|
|
6546
|
-
import { createContext as createContext6, useCallback as
|
|
6625
|
+
import { createContext as createContext6, useCallback as useCallback8, useMemo as useMemo12, useState as useState24 } from "react";
|
|
6547
6626
|
|
|
6548
6627
|
// ../../components/AccordionGroup/AccordionGroup.module.css
|
|
6549
6628
|
var AccordionGroup_default = {"group":"opus_WiRBMz_group"};
|
|
@@ -6567,7 +6646,7 @@ function AccordionGroup({
|
|
|
6567
6646
|
return type === "multiple" ? [] : "";
|
|
6568
6647
|
});
|
|
6569
6648
|
const currentValue = value != null ? value : internalValue;
|
|
6570
|
-
const setValue =
|
|
6649
|
+
const setValue = useCallback8(
|
|
6571
6650
|
(next) => {
|
|
6572
6651
|
if (value === void 0) {
|
|
6573
6652
|
setInternalValue(next);
|
|
@@ -6576,7 +6655,7 @@ function AccordionGroup({
|
|
|
6576
6655
|
},
|
|
6577
6656
|
[onValueChange, value]
|
|
6578
6657
|
);
|
|
6579
|
-
const isOpen =
|
|
6658
|
+
const isOpen = useCallback8(
|
|
6580
6659
|
(itemValue) => {
|
|
6581
6660
|
if (type === "multiple") {
|
|
6582
6661
|
return Array.isArray(currentValue) && currentValue.includes(itemValue);
|
|
@@ -6585,7 +6664,7 @@ function AccordionGroup({
|
|
|
6585
6664
|
},
|
|
6586
6665
|
[currentValue, type]
|
|
6587
6666
|
);
|
|
6588
|
-
const toggle =
|
|
6667
|
+
const toggle = useCallback8(
|
|
6589
6668
|
(itemValue) => {
|
|
6590
6669
|
if (type === "multiple") {
|
|
6591
6670
|
const openValues = Array.isArray(currentValue) ? currentValue : [];
|
|
@@ -6614,7 +6693,7 @@ function AccordionGroup({
|
|
|
6614
6693
|
}
|
|
6615
6694
|
|
|
6616
6695
|
// ../../components/Accordion/Accordion.module.css
|
|
6617
|
-
var Accordion_default = {"
|
|
6696
|
+
var Accordion_default = {"chevron":"opus_WNZQMV_chevron","panelInner":"opus_WNZQMV_panelInner","triggerLabel":"opus_WNZQMV_triggerLabel","trigger":"opus_WNZQMV_trigger","standalone":"opus_WNZQMV_standalone","panel":"opus_WNZQMV_panel","content":"opus_WNZQMV_content","item":"opus_WNZQMV_item"};
|
|
6618
6697
|
|
|
6619
6698
|
// ../../components/Accordion/Accordion.tsx
|
|
6620
6699
|
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
@@ -6699,15 +6778,15 @@ function Accordion({
|
|
|
6699
6778
|
|
|
6700
6779
|
// ../../components/ShowMore/ShowMore.tsx
|
|
6701
6780
|
import {
|
|
6702
|
-
useCallback as
|
|
6781
|
+
useCallback as useCallback10,
|
|
6703
6782
|
useId as useId14,
|
|
6704
|
-
useLayoutEffect as
|
|
6783
|
+
useLayoutEffect as useLayoutEffect6,
|
|
6705
6784
|
useRef as useRef21,
|
|
6706
6785
|
useState as useState26
|
|
6707
6786
|
} from "react";
|
|
6708
6787
|
|
|
6709
6788
|
// ../../components/ShowMore/ShowMore.module.css
|
|
6710
|
-
var ShowMore_default = {"toggle":"opus_dSk-ve_toggle","
|
|
6789
|
+
var ShowMore_default = {"toggle":"opus_dSk-ve_toggle","toggleLabel":"opus_dSk-ve_toggleLabel","showMoreLabelIn":"opus_dSk-ve_showMoreLabelIn","chevron":"opus_dSk-ve_chevron","root":"opus_dSk-ve_root","inner":"opus_dSk-ve_inner","contentShell":"opus_dSk-ve_contentShell"};
|
|
6711
6790
|
|
|
6712
6791
|
// ../../components/ShowMore/ShowMore.tsx
|
|
6713
6792
|
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
@@ -6740,7 +6819,7 @@ function ShowMore({
|
|
|
6740
6819
|
const [heights, setHeights] = useState26(null);
|
|
6741
6820
|
const isExpanded = expanded != null ? expanded : internalExpanded;
|
|
6742
6821
|
const clampLines2 = Math.max(1, maxLines);
|
|
6743
|
-
const measureHeights =
|
|
6822
|
+
const measureHeights = useCallback10(() => {
|
|
6744
6823
|
const inner = innerRef.current;
|
|
6745
6824
|
if (!inner) {
|
|
6746
6825
|
return;
|
|
@@ -6751,10 +6830,10 @@ function ShowMore({
|
|
|
6751
6830
|
setHeights({ collapsed, full });
|
|
6752
6831
|
setCanExpand(full > collapsed + 1);
|
|
6753
6832
|
}, [clampLines2]);
|
|
6754
|
-
|
|
6833
|
+
useLayoutEffect6(() => {
|
|
6755
6834
|
measureHeights();
|
|
6756
6835
|
}, [children, measureHeights]);
|
|
6757
|
-
|
|
6836
|
+
useLayoutEffect6(() => {
|
|
6758
6837
|
const inner = innerRef.current;
|
|
6759
6838
|
if (!inner || typeof ResizeObserver === "undefined") {
|
|
6760
6839
|
return;
|
|
@@ -6811,7 +6890,7 @@ function ShowMore({
|
|
|
6811
6890
|
}
|
|
6812
6891
|
|
|
6813
6892
|
// ../../components/Toast/Toast.module.css
|
|
6814
|
-
var Toast_default = {"
|
|
6893
|
+
var Toast_default = {"dismiss":"opus_cklQPW_dismiss","title":"opus_cklQPW_title","progressBar":"opus_cklQPW_progressBar","toastProgress":"opus_cklQPW_toastProgress","dismissIcon":"opus_cklQPW_dismissIcon","toast":"opus_cklQPW_toast","description":"opus_cklQPW_description","progressTrack":"opus_cklQPW_progressTrack","body":"opus_cklQPW_body","main":"opus_cklQPW_main","content":"opus_cklQPW_content","iconMark":"opus_cklQPW_iconMark","icon":"opus_cklQPW_icon","iconSvg":"opus_cklQPW_iconSvg"};
|
|
6815
6894
|
|
|
6816
6895
|
// ../../components/Toast/Toast.tsx
|
|
6817
6896
|
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
@@ -6882,16 +6961,16 @@ function Toast({
|
|
|
6882
6961
|
// ../../components/ToastProvider/ToastProvider.tsx
|
|
6883
6962
|
import {
|
|
6884
6963
|
createContext as createContext7,
|
|
6885
|
-
useCallback as
|
|
6964
|
+
useCallback as useCallback11,
|
|
6886
6965
|
useContext as useContext8,
|
|
6887
6966
|
useEffect as useEffect21,
|
|
6888
|
-
useLayoutEffect as
|
|
6967
|
+
useLayoutEffect as useLayoutEffect7,
|
|
6889
6968
|
useRef as useRef22,
|
|
6890
6969
|
useState as useState27
|
|
6891
6970
|
} from "react";
|
|
6892
6971
|
|
|
6893
6972
|
// ../../components/ToastProvider/ToastProvider.module.css
|
|
6894
|
-
var ToastProvider_default = {"
|
|
6973
|
+
var ToastProvider_default = {"viewport":"opus_z3pSp7_viewport","viewportTop":"opus_z3pSp7_viewportTop","item":"opus_z3pSp7_item","itemClip":"opus_z3pSp7_itemClip","viewportRight":"opus_z3pSp7_viewportRight","itemBackdrop":"opus_z3pSp7_itemBackdrop","itemSurface":"opus_z3pSp7_itemSurface","viewportLeft":"opus_z3pSp7_viewportLeft","viewportBottom":"opus_z3pSp7_viewportBottom"};
|
|
6895
6974
|
|
|
6896
6975
|
// ../../components/ToastProvider/ToastProvider.tsx
|
|
6897
6976
|
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
@@ -7062,10 +7141,10 @@ function ToastProvider({
|
|
|
7062
7141
|
const collapsingRef = useRef22(/* @__PURE__ */ new Set());
|
|
7063
7142
|
const enteringRef = useRef22(/* @__PURE__ */ new Set());
|
|
7064
7143
|
const stackLayoutReadyRef = useRef22(false);
|
|
7065
|
-
const setViewport =
|
|
7144
|
+
const setViewport = useCallback11((position) => {
|
|
7066
7145
|
setViewportState(position);
|
|
7067
7146
|
}, []);
|
|
7068
|
-
const setItemRef =
|
|
7147
|
+
const setItemRef = useCallback11((id) => {
|
|
7069
7148
|
return (node) => {
|
|
7070
7149
|
if (node) {
|
|
7071
7150
|
itemRefs.current.set(id, node);
|
|
@@ -7076,21 +7155,21 @@ function ToastProvider({
|
|
|
7076
7155
|
collapsingRef.current.delete(id);
|
|
7077
7156
|
};
|
|
7078
7157
|
}, []);
|
|
7079
|
-
const removeToast =
|
|
7158
|
+
const removeToast = useCallback11((id) => {
|
|
7080
7159
|
collapsingRef.current.delete(id);
|
|
7081
7160
|
enteringRef.current.delete(id);
|
|
7082
7161
|
itemRefs.current.delete(id);
|
|
7083
7162
|
setToasts((current) => current.filter((toast) => toast.id !== id));
|
|
7084
7163
|
}, []);
|
|
7085
|
-
const dismiss =
|
|
7164
|
+
const dismiss = useCallback11((id) => {
|
|
7086
7165
|
setToasts(
|
|
7087
7166
|
(current) => current.map((toast) => toast.id === id ? __spreadProps(__spreadValues({}, toast), { phase: "exiting" }) : toast)
|
|
7088
7167
|
);
|
|
7089
7168
|
}, []);
|
|
7090
|
-
const dismissAll =
|
|
7169
|
+
const dismissAll = useCallback11(() => {
|
|
7091
7170
|
setToasts((current) => current.map((toast) => __spreadProps(__spreadValues({}, toast), { phase: "exiting" })));
|
|
7092
7171
|
}, []);
|
|
7093
|
-
const markEntered =
|
|
7172
|
+
const markEntered = useCallback11((id) => {
|
|
7094
7173
|
enteringRef.current.delete(id);
|
|
7095
7174
|
setToasts(
|
|
7096
7175
|
(current) => current.map(
|
|
@@ -7098,7 +7177,7 @@ function ToastProvider({
|
|
|
7098
7177
|
)
|
|
7099
7178
|
);
|
|
7100
7179
|
}, []);
|
|
7101
|
-
const show =
|
|
7180
|
+
const show = useCallback11(
|
|
7102
7181
|
(options) => {
|
|
7103
7182
|
const id = `toast-${nextId.current++}`;
|
|
7104
7183
|
const entry = __spreadProps(__spreadValues({}, options), { id, phase: "entering" });
|
|
@@ -7109,7 +7188,7 @@ function ToastProvider({
|
|
|
7109
7188
|
},
|
|
7110
7189
|
[viewport.vertical]
|
|
7111
7190
|
);
|
|
7112
|
-
|
|
7191
|
+
useLayoutEffect7(() => {
|
|
7113
7192
|
const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
7114
7193
|
const offscreenTransform = hiddenSurfaceTransform(viewport.vertical);
|
|
7115
7194
|
const exitingElements = toasts.filter((toast) => toast.phase === "exiting").map((toast) => itemRefs.current.get(toast.id)).filter((element) => Boolean(element));
|
|
@@ -7261,7 +7340,7 @@ function ToastProvider({
|
|
|
7261
7340
|
import { useId as useId15, useState as useState28 } from "react";
|
|
7262
7341
|
|
|
7263
7342
|
// ../../components/Tabs/Tabs.module.css
|
|
7264
|
-
var Tabs_default = {"
|
|
7343
|
+
var Tabs_default = {"list":"opus_ADVJmy_list","panel":"opus_ADVJmy_panel","root":"opus_ADVJmy_root","tab":"opus_ADVJmy_tab"};
|
|
7265
7344
|
|
|
7266
7345
|
// ../../components/Tabs/Tabs.tsx
|
|
7267
7346
|
import { jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
@@ -7375,7 +7454,7 @@ function Tabs({
|
|
|
7375
7454
|
}
|
|
7376
7455
|
|
|
7377
7456
|
// ../../components/Card/Card.module.css
|
|
7378
|
-
var Card_default = {"
|
|
7457
|
+
var Card_default = {"media":"opus_qWo1sP_media","footerContent":"opus_qWo1sP_footerContent","title":"opus_qWo1sP_title","actions":"opus_qWo1sP_actions","heading":"opus_qWo1sP_heading","content":"opus_qWo1sP_content","footer":"opus_qWo1sP_footer","card":"opus_qWo1sP_card","eyebrow":"opus_qWo1sP_eyebrow","body":"opus_qWo1sP_body"};
|
|
7379
7458
|
|
|
7380
7459
|
// ../../components/Card/Card.tsx
|
|
7381
7460
|
import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
@@ -7406,7 +7485,7 @@ function Card({
|
|
|
7406
7485
|
}
|
|
7407
7486
|
|
|
7408
7487
|
// ../../components/dashboardMetricCardLayout/dashboardMetricCardLayout.module.css
|
|
7409
|
-
var dashboardMetricCardLayout_default = {"
|
|
7488
|
+
var dashboardMetricCardLayout_default = {"header":"opus_6_sptY_header","label":"opus_6_sptY_label","iconSlot":"opus_6_sptY_iconSlot","iconPlaceholder":"opus_6_sptY_iconPlaceholder","value":"opus_6_sptY_value","shell":"opus_6_sptY_shell","metaPlaceholder":"opus_6_sptY_metaPlaceholder","metaSlot":"opus_6_sptY_metaSlot"};
|
|
7410
7489
|
|
|
7411
7490
|
// ../../components/StatCard/StatCard.module.css
|
|
7412
7491
|
var StatCard_default = {"change":"opus_KIXsQY_change"};
|
|
@@ -7436,7 +7515,7 @@ function StatCard({
|
|
|
7436
7515
|
}
|
|
7437
7516
|
|
|
7438
7517
|
// ../../components/Gauge/Gauge.module.css
|
|
7439
|
-
var Gauge_default = {"
|
|
7518
|
+
var Gauge_default = {"title":"opus_t6IuQe_title","gaugeTrack":"opus_t6IuQe_gaugeTrack","gauge":"opus_t6IuQe_gauge","summary":"opus_t6IuQe_summary","subtitle":"opus_t6IuQe_subtitle","heading":"opus_t6IuQe_heading","change":"opus_t6IuQe_change","gaugeSlot":"opus_t6IuQe_gaugeSlot","footerLabel":"opus_t6IuQe_footerLabel","widget":"opus_t6IuQe_widget","gaugeSvg":"opus_t6IuQe_gaugeSvg","header":"opus_t6IuQe_header","gaugeCenter":"opus_t6IuQe_gaugeCenter","footer":"opus_t6IuQe_footer","footerTrend":"opus_t6IuQe_footerTrend","footerItem":"opus_t6IuQe_footerItem","footerValue":"opus_t6IuQe_footerValue","gaugeValue":"opus_t6IuQe_gaugeValue","body":"opus_t6IuQe_body"};
|
|
7440
7519
|
|
|
7441
7520
|
// ../../components/Gauge/Gauge.tsx
|
|
7442
7521
|
import { jsx as jsx51, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
@@ -7570,7 +7649,7 @@ function Gauge({
|
|
|
7570
7649
|
import { useId as useId16 } from "react";
|
|
7571
7650
|
|
|
7572
7651
|
// ../../components/Sparkline/Sparkline.module.css
|
|
7573
|
-
var Sparkline_default = {"
|
|
7652
|
+
var Sparkline_default = {"line":"opus_xXtB87_line","sparkline":"opus_xXtB87_sparkline","label":"opus_xXtB87_label","chart":"opus_xXtB87_chart","area":"opus_xXtB87_area","endPoint":"opus_xXtB87_endPoint","svg":"opus_xXtB87_svg"};
|
|
7574
7653
|
|
|
7575
7654
|
// ../../components/Sparkline/Sparkline.tsx
|
|
7576
7655
|
import { jsx as jsx52, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
@@ -7636,7 +7715,7 @@ function Sparkline({
|
|
|
7636
7715
|
}
|
|
7637
7716
|
|
|
7638
7717
|
// ../../components/ProgressRing/ProgressRing.module.css
|
|
7639
|
-
var ProgressRing_default = {"
|
|
7718
|
+
var ProgressRing_default = {"track":"opus_YxX6Hh_track","ring":"opus_YxX6Hh_ring","svg":"opus_YxX6Hh_svg","value":"opus_YxX6Hh_value","center":"opus_YxX6Hh_center"};
|
|
7640
7719
|
|
|
7641
7720
|
// ../../components/ProgressRing/ProgressRing.tsx
|
|
7642
7721
|
import { jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
@@ -7669,7 +7748,7 @@ function ProgressRing({ label, max = 100, value }) {
|
|
|
7669
7748
|
}
|
|
7670
7749
|
|
|
7671
7750
|
// ../../components/ProgressBar/ProgressBar.module.css
|
|
7672
|
-
var ProgressBar_default = {"
|
|
7751
|
+
var ProgressBar_default = {"header":"opus_q04AvA_header","bar":"opus_q04AvA_bar","label":"opus_q04AvA_label","value":"opus_q04AvA_value","track":"opus_q04AvA_track","fill":"opus_q04AvA_fill"};
|
|
7673
7752
|
|
|
7674
7753
|
// ../../components/ProgressBar/ProgressBar.tsx
|
|
7675
7754
|
import { jsx as jsx54, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
@@ -7689,7 +7768,7 @@ function ProgressBar({ label, max = 100, value }) {
|
|
|
7689
7768
|
}
|
|
7690
7769
|
|
|
7691
7770
|
// ../../components/Speedometer/Speedometer.module.css
|
|
7692
|
-
var Speedometer_default = {"
|
|
7771
|
+
var Speedometer_default = {"svg":"opus__jpB7z_svg","value":"opus__jpB7z_value","needle":"opus__jpB7z_needle","speedometer":"opus__jpB7z_speedometer","track":"opus__jpB7z_track","center":"opus__jpB7z_center","hub":"opus__jpB7z_hub"};
|
|
7693
7772
|
|
|
7694
7773
|
// ../../components/Speedometer/Speedometer.tsx
|
|
7695
7774
|
import { jsx as jsx55, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
@@ -7765,7 +7844,7 @@ function TrendBadge({ direction, value }) {
|
|
|
7765
7844
|
}
|
|
7766
7845
|
|
|
7767
7846
|
// ../../components/Panel/Panel.module.css
|
|
7768
|
-
var Panel_default = {"
|
|
7847
|
+
var Panel_default = {"body":"opus_JZHUc__body","footer":"opus_JZHUc__footer","headerActions":"opus_JZHUc__headerActions","heading":"opus_JZHUc__heading","header":"opus_JZHUc__header","description":"opus_JZHUc__description","panel":"opus_JZHUc__panel","title":"opus_JZHUc__title"};
|
|
7769
7848
|
|
|
7770
7849
|
// ../../components/Panel/Panel.tsx
|
|
7771
7850
|
import { jsx as jsx58, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
@@ -7949,7 +8028,7 @@ function resolveSectionGapVars(gap = "md") {
|
|
|
7949
8028
|
}
|
|
7950
8029
|
|
|
7951
8030
|
// ../../components/Section/Section.module.css
|
|
7952
|
-
var Section_default = {"
|
|
8031
|
+
var Section_default = {"column":"opus_FajZiH_column","title":"opus_FajZiH_title","section":"opus_FajZiH_section","body":"opus_FajZiH_body","row":"opus_FajZiH_row","header":"opus_FajZiH_header","description":"opus_FajZiH_description"};
|
|
7953
8032
|
|
|
7954
8033
|
// ../../components/Section/Section.tsx
|
|
7955
8034
|
import { jsx as jsx59, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
@@ -8030,7 +8109,7 @@ var Section = Object.assign(SectionRoot, {
|
|
|
8030
8109
|
});
|
|
8031
8110
|
|
|
8032
8111
|
// ../../components/Table/Table.module.css
|
|
8033
|
-
var Table_default = {"
|
|
8112
|
+
var Table_default = {"caption":"opus_2q7S14_caption","wrap":"opus_2q7S14_wrap","table":"opus_2q7S14_table","empty":"opus_2q7S14_empty","visuallyHidden":"opus_2q7S14_visuallyHidden"};
|
|
8034
8113
|
|
|
8035
8114
|
// ../../components/Table/Table.tsx
|
|
8036
8115
|
import { jsx as jsx60, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
@@ -8059,12 +8138,12 @@ function Table({
|
|
|
8059
8138
|
}
|
|
8060
8139
|
|
|
8061
8140
|
// ../../components/DataGrid/DataGrid.tsx
|
|
8062
|
-
import { forwardRef, useCallback as
|
|
8141
|
+
import { forwardRef, useCallback as useCallback12, useLayoutEffect as useLayoutEffect8, useMemo as useMemo14, useRef as useRef23, useState as useState29 } from "react";
|
|
8063
8142
|
import { faFilter } from "@fortawesome/free-solid-svg-icons";
|
|
8064
8143
|
import { FontAwesomeIcon as FontAwesomeIcon6 } from "@fortawesome/react-fontawesome";
|
|
8065
8144
|
|
|
8066
8145
|
// ../../components/DataGrid/DataGrid.module.css
|
|
8067
|
-
var DataGrid_default = {"
|
|
8146
|
+
var DataGrid_default = {"empty":"opus_zN0bNb_empty","caption":"opus_zN0bNb_caption","menuHost":"opus_zN0bNb_menuHost","headerLabel":"opus_zN0bNb_headerLabel","menuSection":"opus_zN0bNb_menuSection","menuAction":"opus_zN0bNb_menuAction","sortIndicatorButton":"opus_zN0bNb_sortIndicatorButton","frame":"opus_zN0bNb_frame","gridBody":"opus_zN0bNb_gridBody","menuFilterIcon":"opus_zN0bNb_menuFilterIcon","menuLabel":"opus_zN0bNb_menuLabel","headerCell":"opus_zN0bNb_headerCell","grid":"opus_zN0bNb_grid","columnResizeHandle":"opus_zN0bNb_columnResizeHandle","sortButton":"opus_zN0bNb_sortButton","visuallyHidden":"opus_zN0bNb_visuallyHidden","filterInput":"opus_zN0bNb_filterInput","menuButton":"opus_zN0bNb_menuButton","menuChevron":"opus_zN0bNb_menuChevron","rowHeader":"opus_zN0bNb_rowHeader","sortIndicator":"opus_zN0bNb_sortIndicator","headerMenu":"opus_zN0bNb_headerMenu","wrap":"opus_zN0bNb_wrap","headerControls":"opus_zN0bNb_headerControls","corner":"opus_zN0bNb_corner","sortButtonLabel":"opus_zN0bNb_sortButtonLabel"};
|
|
8068
8147
|
|
|
8069
8148
|
// ../../components/DataGrid/DataGrid.tsx
|
|
8070
8149
|
import { jsx as jsx61, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
@@ -8192,18 +8271,18 @@ function DataGrid({
|
|
|
8192
8271
|
return sort.direction === "ascending" ? result : -result;
|
|
8193
8272
|
});
|
|
8194
8273
|
const openMenuFeatures = openMenu ? columnFeatures[openMenu.key] : void 0;
|
|
8195
|
-
const resetWrapMinHeight =
|
|
8274
|
+
const resetWrapMinHeight = useCallback12(() => {
|
|
8196
8275
|
if (wrapRef.current) {
|
|
8197
8276
|
wrapRef.current.style.minHeight = "";
|
|
8198
8277
|
}
|
|
8199
8278
|
}, []);
|
|
8200
|
-
const closeHeaderMenu =
|
|
8279
|
+
const closeHeaderMenu = useCallback12(() => {
|
|
8201
8280
|
menuAnchorRef.current = null;
|
|
8202
8281
|
resetWrapMinHeight();
|
|
8203
8282
|
setOpenMenu(null);
|
|
8204
8283
|
}, [resetWrapMinHeight]);
|
|
8205
8284
|
const activeMenuFilter = openMenu ? (_a2 = filters[openMenu.key]) != null ? _a2 : "" : "";
|
|
8206
|
-
const applyMenuPosition =
|
|
8285
|
+
const applyMenuPosition = useCallback12(() => {
|
|
8207
8286
|
const anchor = menuAnchorRef.current;
|
|
8208
8287
|
const menu = menuRef.current;
|
|
8209
8288
|
const host = menuHostRef.current;
|
|
@@ -8244,7 +8323,7 @@ function DataGrid({
|
|
|
8244
8323
|
menu.style.maxHeight = `${maxHeight}px`;
|
|
8245
8324
|
menu.style.transform = openBelow ? "" : "translateY(-100%)";
|
|
8246
8325
|
}, [activeMenuFilter, closeHeaderMenu, openMenuFeatures == null ? void 0 : openMenuFeatures.filterable]);
|
|
8247
|
-
const scheduleMenuPosition =
|
|
8326
|
+
const scheduleMenuPosition = useCallback12(() => {
|
|
8248
8327
|
if (menuFrameRef.current !== null) {
|
|
8249
8328
|
return;
|
|
8250
8329
|
}
|
|
@@ -8253,7 +8332,7 @@ function DataGrid({
|
|
|
8253
8332
|
applyMenuPosition();
|
|
8254
8333
|
});
|
|
8255
8334
|
}, [applyMenuPosition]);
|
|
8256
|
-
|
|
8335
|
+
useLayoutEffect8(() => {
|
|
8257
8336
|
var _a3;
|
|
8258
8337
|
if (!openMenu) {
|
|
8259
8338
|
resetWrapMinHeight();
|
|
@@ -8309,7 +8388,7 @@ function DataGrid({
|
|
|
8309
8388
|
}
|
|
8310
8389
|
};
|
|
8311
8390
|
}, [activeMenuFilter, applyMenuPosition, closeHeaderMenu, openMenu, resetWrapMinHeight, scheduleMenuPosition]);
|
|
8312
|
-
|
|
8391
|
+
useLayoutEffect8(() => {
|
|
8313
8392
|
if (!openMenu) {
|
|
8314
8393
|
return;
|
|
8315
8394
|
}
|
|
@@ -8348,7 +8427,7 @@ function DataGrid({
|
|
|
8348
8427
|
menuId: key
|
|
8349
8428
|
});
|
|
8350
8429
|
};
|
|
8351
|
-
const beginResize =
|
|
8430
|
+
const beginResize = useCallback12((event, key, measuredWidth) => {
|
|
8352
8431
|
var _a3, _b3, _c3, _d3;
|
|
8353
8432
|
if (!((_a3 = columnFeatures[key]) == null ? void 0 : _a3.resizable)) {
|
|
8354
8433
|
return;
|
|
@@ -8398,7 +8477,7 @@ function DataGrid({
|
|
|
8398
8477
|
window.addEventListener("pointerup", finishResize);
|
|
8399
8478
|
window.addEventListener("pointercancel", finishResize);
|
|
8400
8479
|
}, [closeHeaderMenu, columnFeatures, columnWidths, density]);
|
|
8401
|
-
const handleBodyPointerDown =
|
|
8480
|
+
const handleBodyPointerDown = useCallback12((event) => {
|
|
8402
8481
|
var _a3;
|
|
8403
8482
|
const cell = event.target.closest(
|
|
8404
8483
|
"td[data-column-key]"
|
|
@@ -11007,7 +11086,7 @@ function SpecializedChart(props) {
|
|
|
11007
11086
|
}
|
|
11008
11087
|
|
|
11009
11088
|
// ../../components/Chart/Chart.module.css
|
|
11010
|
-
var Chart_default = {"
|
|
11089
|
+
var Chart_default = {"radarGrid":"opus_L6guCK_radarGrid","packLabel":"opus_L6guCK_packLabel","sankeyCenterLabel":"opus_L6guCK_sankeyCenterLabel","axisGuide":"opus_L6guCK_axisGuide","seriesF":"opus_L6guCK_seriesF","sankeyLabelBox":"opus_L6guCK_sankeyLabelBox","link":"opus_L6guCK_link","graphLinkColored":"opus_L6guCK_graphLinkColored","slice":"opus_L6guCK_slice","line":"opus_L6guCK_line","legend":"opus_L6guCK_legend","land":"opus_L6guCK_land","radarArea":"opus_L6guCK_radarArea","seriesA":"opus_L6guCK_seriesA","violin":"opus_L6guCK_violin","graphNode":"opus_L6guCK_graphNode","graphNodeRing":"opus_L6guCK_graphNodeRing","graphLabel":"opus_L6guCK_graphLabel","seriesB":"opus_L6guCK_seriesB","bar":"opus_L6guCK_bar","wick":"opus_L6guCK_wick","sankeySideValue":"opus_L6guCK_sankeySideValue","area":"opus_L6guCK_area","seriesD":"opus_L6guCK_seriesD","treemapLabel":"opus_L6guCK_treemapLabel","axisTitle":"opus_L6guCK_axisTitle","svg":"opus_L6guCK_svg","packParent":"opus_L6guCK_packParent","sankeyNode":"opus_L6guCK_sankeyNode","sankeySideLabel":"opus_L6guCK_sankeySideLabel","header":"opus_L6guCK_header","seriesC":"opus_L6guCK_seriesC","mapRegion":"opus_L6guCK_mapRegion","axisLine":"opus_L6guCK_axisLine","legendSwatch":"opus_L6guCK_legendSwatch","sankeySideName":"opus_L6guCK_sankeySideName","meta":"opus_L6guCK_meta","title":"opus_L6guCK_title","valueLabel":"opus_L6guCK_valueLabel","sankeyLink":"opus_L6guCK_sankeyLink","funnelText":"opus_L6guCK_funnelText","ring":"opus_L6guCK_ring","axisTick":"opus_L6guCK_axisTick","seriesE":"opus_L6guCK_seriesE","legendItem":"opus_L6guCK_legendItem","axisLabels":"opus_L6guCK_axisLabels","funnel":"opus_L6guCK_funnel","axes":"opus_L6guCK_axes","mapLand":"opus_L6guCK_mapLand","chart":"opus_L6guCK_chart","funnelGuide":"opus_L6guCK_funnelGuide","mapLabel":"opus_L6guCK_mapLabel","graphLink":"opus_L6guCK_graphLink","grid":"opus_L6guCK_grid","point":"opus_L6guCK_point","treemapGroupLabel":"opus_L6guCK_treemapGroupLabel","ridge":"opus_L6guCK_ridge","mapValue":"opus_L6guCK_mapValue"};
|
|
11011
11090
|
|
|
11012
11091
|
// ../../components/Chart/Chart.tsx
|
|
11013
11092
|
import { Fragment as Fragment7, jsx as jsx63, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
@@ -12107,7 +12186,7 @@ function Chart({
|
|
|
12107
12186
|
}
|
|
12108
12187
|
|
|
12109
12188
|
// ../../components/Skeleton/Skeleton.module.css
|
|
12110
|
-
var Skeleton_default = {"
|
|
12189
|
+
var Skeleton_default = {"avatar":"opus_27r9Md_avatar","stack":"opus_27r9Md_stack","tableRow":"opus_27r9Md_tableRow","skeleton":"opus_27r9Md_skeleton","media":"opus_27r9Md_media","line":"opus_27r9Md_line","skeletonPulse":"opus_27r9Md_skeletonPulse","avatarContent":"opus_27r9Md_avatarContent","tableCell":"opus_27r9Md_tableCell","skeletonShimmer":"opus_27r9Md_skeletonShimmer"};
|
|
12111
12190
|
|
|
12112
12191
|
// ../../components/Skeleton/Skeleton.tsx
|
|
12113
12192
|
import { jsx as jsx64, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
@@ -12148,17 +12227,17 @@ function Skeleton({
|
|
|
12148
12227
|
}
|
|
12149
12228
|
|
|
12150
12229
|
// ../../components/Carousel/Carousel.tsx
|
|
12151
|
-
import { useCallback as
|
|
12230
|
+
import { useCallback as useCallback14, useEffect as useEffect24, useMemo as useMemo15, useRef as useRef26, useState as useState32 } from "react";
|
|
12152
12231
|
import { faChevronLeft, faChevronRight } from "@fortawesome/free-solid-svg-icons";
|
|
12153
12232
|
import { FontAwesomeIcon as FontAwesomeIcon8 } from "@fortawesome/react-fontawesome";
|
|
12154
12233
|
|
|
12155
12234
|
// ../../components/Lightbox/Lightbox.tsx
|
|
12156
|
-
import { useCallback as
|
|
12235
|
+
import { useCallback as useCallback13, useEffect as useEffect23, useRef as useRef25, useState as useState31 } from "react";
|
|
12157
12236
|
import { faXmark as faXmark2 } from "@fortawesome/free-solid-svg-icons";
|
|
12158
12237
|
import { FontAwesomeIcon as FontAwesomeIcon7 } from "@fortawesome/react-fontawesome";
|
|
12159
12238
|
|
|
12160
12239
|
// ../../components/Lightbox/Lightbox.module.css
|
|
12161
|
-
var Lightbox_default = {"frame":"opus_s7Rpyv_frame","
|
|
12240
|
+
var Lightbox_default = {"frame":"opus_s7Rpyv_frame","panel":"opus_s7Rpyv_panel","trigger":"opus_s7Rpyv_trigger","overlay":"opus_s7Rpyv_overlay","lightboxFadeOut":"opus_s7Rpyv_lightboxFadeOut","lightboxFadeIn":"opus_s7Rpyv_lightboxFadeIn","lightboxPanelOut":"opus_s7Rpyv_lightboxPanelOut","image":"opus_s7Rpyv_image","lightbox":"opus_s7Rpyv_lightbox","close":"opus_s7Rpyv_close","lightboxPanelIn":"opus_s7Rpyv_lightboxPanelIn","closeIcon":"opus_s7Rpyv_closeIcon","caption":"opus_s7Rpyv_caption"};
|
|
12162
12241
|
|
|
12163
12242
|
// ../../components/Lightbox/Lightbox.tsx
|
|
12164
12243
|
import { jsx as jsx65, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
@@ -12181,7 +12260,7 @@ function Lightbox({
|
|
|
12181
12260
|
const triggerRef = useRef25(null);
|
|
12182
12261
|
const panelRef = useRef25(null);
|
|
12183
12262
|
const closeRef = useRef25(null);
|
|
12184
|
-
const setOpen =
|
|
12263
|
+
const setOpen = useCallback13((nextOpen) => {
|
|
12185
12264
|
if (!isControlled) {
|
|
12186
12265
|
setInternalOpen(nextOpen);
|
|
12187
12266
|
}
|
|
@@ -12273,7 +12352,7 @@ function Lightbox({
|
|
|
12273
12352
|
}
|
|
12274
12353
|
|
|
12275
12354
|
// ../../components/Carousel/Carousel.module.css
|
|
12276
|
-
var Carousel_default = {"
|
|
12355
|
+
var Carousel_default = {"image":"opus_N4occJ_image","carousel":"opus_N4occJ_carousel","pips":"opus_N4occJ_pips","navIcon":"opus_N4occJ_navIcon","caption":"opus_N4occJ_caption","stage":"opus_N4occJ_stage","footer":"opus_N4occJ_footer","pip":"opus_N4occJ_pip","slide":"opus_N4occJ_slide","empty":"opus_N4occJ_empty","visuallyHidden":"opus_N4occJ_visuallyHidden","nav":"opus_N4occJ_nav","track":"opus_N4occJ_track"};
|
|
12277
12356
|
|
|
12278
12357
|
// ../../components/Carousel/Carousel.tsx
|
|
12279
12358
|
import { Fragment as Fragment8, jsx as jsx66, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
@@ -12347,7 +12426,7 @@ function Carousel({
|
|
|
12347
12426
|
}, [images.length, initialIndex, loopEnabled]);
|
|
12348
12427
|
const activeIndex = getRealIndex(trackIndex, images.length, loopEnabled);
|
|
12349
12428
|
const activeImage = images[activeIndex];
|
|
12350
|
-
const goToTrackIndex =
|
|
12429
|
+
const goToTrackIndex = useCallback14((nextTrackIndex, animate = true) => {
|
|
12351
12430
|
if (trackImages.length === 0) {
|
|
12352
12431
|
return;
|
|
12353
12432
|
}
|
|
@@ -12362,7 +12441,7 @@ function Carousel({
|
|
|
12362
12441
|
}
|
|
12363
12442
|
setTrackIndex(clamped);
|
|
12364
12443
|
}, [isAnimating, trackImages.length]);
|
|
12365
|
-
const goTo =
|
|
12444
|
+
const goTo = useCallback14((targetIndex) => {
|
|
12366
12445
|
if (images.length === 0) {
|
|
12367
12446
|
return;
|
|
12368
12447
|
}
|
|
@@ -12372,7 +12451,7 @@ function Carousel({
|
|
|
12372
12451
|
}
|
|
12373
12452
|
goToTrackIndex(getTrackIndexForRealIndex(normalized, loopEnabled), true);
|
|
12374
12453
|
}, [activeIndex, goToTrackIndex, images.length, loopEnabled]);
|
|
12375
|
-
const finishJump =
|
|
12454
|
+
const finishJump = useCallback14((nextTrackIndex) => {
|
|
12376
12455
|
isJumpingRef.current = true;
|
|
12377
12456
|
setTransitionEnabled(false);
|
|
12378
12457
|
setTrackIndex(nextTrackIndex);
|
|
@@ -12525,7 +12604,7 @@ function Carousel({
|
|
|
12525
12604
|
}
|
|
12526
12605
|
|
|
12527
12606
|
// ../../components/ImageThumbnail/ImageThumbnail.module.css
|
|
12528
|
-
var ImageThumbnail_default = {"
|
|
12607
|
+
var ImageThumbnail_default = {"thumbnail":"opus_Gp1o-9_thumbnail","caption":"opus_Gp1o-9_caption","image":"opus_Gp1o-9_image","figure":"opus_Gp1o-9_figure"};
|
|
12529
12608
|
|
|
12530
12609
|
// ../../components/ImageThumbnail/ImageThumbnail.tsx
|
|
12531
12610
|
import { jsx as jsx67, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
@@ -12564,7 +12643,7 @@ function ImageThumbnail({
|
|
|
12564
12643
|
}
|
|
12565
12644
|
|
|
12566
12645
|
// ../../components/ImageGallery/ImageGallery.module.css
|
|
12567
|
-
var ImageGallery_default = {"
|
|
12646
|
+
var ImageGallery_default = {"gallery":"opus_bezg4E_gallery","empty":"opus_bezg4E_empty"};
|
|
12568
12647
|
|
|
12569
12648
|
// ../../components/ImageGallery/ImageGallery.tsx
|
|
12570
12649
|
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
@@ -12594,13 +12673,13 @@ function ImageGallery({
|
|
|
12594
12673
|
}
|
|
12595
12674
|
|
|
12596
12675
|
// ../../components/ModelViewer/ModelViewer.tsx
|
|
12597
|
-
import { createElement, useCallback as
|
|
12676
|
+
import { createElement, useCallback as useCallback15, useEffect as useEffect26, useRef as useRef28, useState as useState34 } from "react";
|
|
12598
12677
|
|
|
12599
12678
|
// ../../components/ModelViewer/FireBarrelModelViewer.tsx
|
|
12600
12679
|
import { useEffect as useEffect25, useRef as useRef27, useState as useState33 } from "react";
|
|
12601
12680
|
|
|
12602
12681
|
// ../../components/ModelViewer/ModelViewer.module.css
|
|
12603
|
-
var ModelViewer_default = {"
|
|
12682
|
+
var ModelViewer_default = {"viewer":"opus_f7gfHI_viewer","model":"opus_f7gfHI_model","canvasHost":"opus_f7gfHI_canvasHost","stage":"opus_f7gfHI_stage","loading":"opus_f7gfHI_loading","caption":"opus_f7gfHI_caption"};
|
|
12604
12683
|
|
|
12605
12684
|
// ../../components/ModelViewer/FireBarrelModelViewer.tsx
|
|
12606
12685
|
import { jsx as jsx69, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
@@ -12755,7 +12834,7 @@ function StandardModelViewer({
|
|
|
12755
12834
|
const [ready, setReady] = useState34(false);
|
|
12756
12835
|
const [failed, setFailed] = useState34(false);
|
|
12757
12836
|
const shouldAutoRotate = autoRotate && !asset.autoplay;
|
|
12758
|
-
const setViewerRef =
|
|
12837
|
+
const setViewerRef = useCallback15((node) => {
|
|
12759
12838
|
viewerRef.current = node;
|
|
12760
12839
|
}, []);
|
|
12761
12840
|
useEffect26(() => {
|
|
@@ -12813,12 +12892,12 @@ function StandardModelViewer({
|
|
|
12813
12892
|
}
|
|
12814
12893
|
|
|
12815
12894
|
// ../../components/ModelLightbox/ModelLightbox.tsx
|
|
12816
|
-
import { useCallback as
|
|
12895
|
+
import { useCallback as useCallback16, useEffect as useEffect27, useRef as useRef29, useState as useState35 } from "react";
|
|
12817
12896
|
import { faXmark as faXmark3 } from "@fortawesome/free-solid-svg-icons";
|
|
12818
12897
|
import { FontAwesomeIcon as FontAwesomeIcon9 } from "@fortawesome/react-fontawesome";
|
|
12819
12898
|
|
|
12820
12899
|
// ../../components/ModelLightbox/ModelLightbox.module.css
|
|
12821
|
-
var ModelLightbox_default = {"
|
|
12900
|
+
var ModelLightbox_default = {"frame":"opus_YYKGIB_frame","modelLightboxPanelOut":"opus_YYKGIB_modelLightboxPanelOut","close":"opus_YYKGIB_close","modelLightboxFadeOut":"opus_YYKGIB_modelLightboxFadeOut","lightbox":"opus_YYKGIB_lightbox","modelLightboxPanelIn":"opus_YYKGIB_modelLightboxPanelIn","overlay":"opus_YYKGIB_overlay","trigger":"opus_YYKGIB_trigger","closeIcon":"opus_YYKGIB_closeIcon","modelLightboxFadeIn":"opus_YYKGIB_modelLightboxFadeIn"};
|
|
12822
12901
|
|
|
12823
12902
|
// ../../components/ModelLightbox/ModelLightbox.tsx
|
|
12824
12903
|
import { jsx as jsx71, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
@@ -12838,7 +12917,7 @@ function ModelLightbox({
|
|
|
12838
12917
|
const [isRendered, setIsRendered] = useState35(isOpen);
|
|
12839
12918
|
const panelRef = useRef29(null);
|
|
12840
12919
|
const closeRef = useRef29(null);
|
|
12841
|
-
const setOpen =
|
|
12920
|
+
const setOpen = useCallback16((nextOpen) => {
|
|
12842
12921
|
if (!isControlled) {
|
|
12843
12922
|
setInternalOpen(nextOpen);
|
|
12844
12923
|
}
|
|
@@ -12923,7 +13002,7 @@ function ModelLightbox({
|
|
|
12923
13002
|
}
|
|
12924
13003
|
|
|
12925
13004
|
// ../../components/ModelThumbnail/ModelThumbnail.module.css
|
|
12926
|
-
var ModelThumbnail_default = {"
|
|
13005
|
+
var ModelThumbnail_default = {"staticThumbnail":"opus_NkO9Yb_staticThumbnail","content":"opus_NkO9Yb_content","caption":"opus_NkO9Yb_caption"};
|
|
12927
13006
|
|
|
12928
13007
|
// ../../components/ModelThumbnail/ModelThumbnail.tsx
|
|
12929
13008
|
import { jsx as jsx72, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
@@ -13041,7 +13120,7 @@ function CatalogIcon({ iconName }) {
|
|
|
13041
13120
|
}
|
|
13042
13121
|
|
|
13043
13122
|
// ../../components/EmptyState/EmptyState.module.css
|
|
13044
|
-
var EmptyState_default = {"root":"opus_1KckGY_root","
|
|
13123
|
+
var EmptyState_default = {"root":"opus_1KckGY_root","iconWrap":"opus_1KckGY_iconWrap","copy":"opus_1KckGY_copy","title":"opus_1KckGY_title","actions":"opus_1KckGY_actions","description":"opus_1KckGY_description"};
|
|
13045
13124
|
|
|
13046
13125
|
// ../../components/EmptyState/EmptyState.tsx
|
|
13047
13126
|
import { jsx as jsx75, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
@@ -13082,7 +13161,7 @@ import {
|
|
|
13082
13161
|
} from "react";
|
|
13083
13162
|
|
|
13084
13163
|
// ../../components/Sidebar/Sidebar.module.css
|
|
13085
|
-
var Sidebar_default = {"
|
|
13164
|
+
var Sidebar_default = {"link":"opus_4Pogux_link","main":"opus_4Pogux_main","groupItems":"opus_4Pogux_groupItems","groupLabel":"opus_4Pogux_groupLabel","footer":"opus_4Pogux_footer","group":"opus_4Pogux_group","headerTitle":"opus_4Pogux_headerTitle","linkActive":"opus_4Pogux_linkActive","body":"opus_4Pogux_body","sidebar":"opus_4Pogux_sidebar","headerInner":"opus_4Pogux_headerInner","groupChevron":"opus_4Pogux_groupChevron","groupHeader":"opus_4Pogux_groupHeader","visuallyHidden":"opus_4Pogux_visuallyHidden","groupChevronOpen":"opus_4Pogux_groupChevronOpen","header":"opus_4Pogux_header","groupToggle":"opus_4Pogux_groupToggle","groupItemsWrap":"opus_4Pogux_groupItemsWrap","layout":"opus_4Pogux_layout","nav":"opus_4Pogux_nav"};
|
|
13086
13165
|
|
|
13087
13166
|
// ../../components/Sidebar/Sidebar.tsx
|
|
13088
13167
|
import { Fragment as Fragment9, jsx as jsx76, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
@@ -13188,7 +13267,7 @@ function SidebarLayout({ children, collapsed = false, main, side = "left" }) {
|
|
|
13188
13267
|
}
|
|
13189
13268
|
|
|
13190
13269
|
// ../../components/AccentColorPicker/AccentColorPicker.tsx
|
|
13191
|
-
import { useCallback as
|
|
13270
|
+
import { useCallback as useCallback17, useEffect as useEffect28, useMemo as useMemo16, useState as useState37 } from "react";
|
|
13192
13271
|
|
|
13193
13272
|
// ../../components/AccentColorPicker/AccentColorPicker.module.css
|
|
13194
13273
|
var AccentColorPicker_default = {"swatches":"opus_scMnrW_swatches","swatch":"opus_scMnrW_swatch"};
|
|
@@ -13241,7 +13320,7 @@ function useAccentPreference() {
|
|
|
13241
13320
|
}, 0);
|
|
13242
13321
|
return () => window.clearTimeout(timeout);
|
|
13243
13322
|
}, []);
|
|
13244
|
-
const setAccent =
|
|
13323
|
+
const setAccent = useCallback17((next) => {
|
|
13245
13324
|
if (!isAccentColor(next)) {
|
|
13246
13325
|
return;
|
|
13247
13326
|
}
|
|
@@ -13253,6 +13332,7 @@ function useAccentPreference() {
|
|
|
13253
13332
|
return { accent, accentStyle, setAccent };
|
|
13254
13333
|
}
|
|
13255
13334
|
function AccentColorPicker({
|
|
13335
|
+
help,
|
|
13256
13336
|
id,
|
|
13257
13337
|
label = "Accent",
|
|
13258
13338
|
labelPosition = "left",
|
|
@@ -13265,6 +13345,7 @@ function AccentColorPicker({
|
|
|
13265
13345
|
{
|
|
13266
13346
|
fitContent: true,
|
|
13267
13347
|
flaggedAlign: "center",
|
|
13348
|
+
help,
|
|
13268
13349
|
id,
|
|
13269
13350
|
label,
|
|
13270
13351
|
labelPosition,
|
|
@@ -13297,11 +13378,12 @@ import { useEffect as useEffect29, useId as useId19, useMemo as useMemo17, useRe
|
|
|
13297
13378
|
import { FontAwesomeIcon as FontAwesomeIcon11 } from "@fortawesome/react-fontawesome";
|
|
13298
13379
|
|
|
13299
13380
|
// ../../components/IconPicker/IconPicker.module.css
|
|
13300
|
-
var IconPicker_default = {"
|
|
13381
|
+
var IconPicker_default = {"root":"opus_4E-Oa1_root","menu":"opus_4E-Oa1_menu","triggerIcon":"opus_4E-Oa1_triggerIcon","optionIcon":"opus_4E-Oa1_optionIcon","triggerLabel":"opus_4E-Oa1_triggerLabel","chevron":"opus_4E-Oa1_chevron","grid":"opus_4E-Oa1_grid","option":"opus_4E-Oa1_option","trigger":"opus_4E-Oa1_trigger","search":"opus_4E-Oa1_search","empty":"opus_4E-Oa1_empty"};
|
|
13301
13382
|
|
|
13302
13383
|
// ../../components/IconPicker/IconPicker.tsx
|
|
13303
13384
|
import { jsx as jsx78, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
13304
13385
|
function IconPicker({
|
|
13386
|
+
help,
|
|
13305
13387
|
id,
|
|
13306
13388
|
label = "Icon",
|
|
13307
13389
|
labelPosition = "left",
|
|
@@ -13344,7 +13426,7 @@ function IconPicker({
|
|
|
13344
13426
|
document.removeEventListener("keydown", handleKeyDown);
|
|
13345
13427
|
};
|
|
13346
13428
|
}, [open]);
|
|
13347
|
-
return /* @__PURE__ */ jsx78(FieldShell, { id, label, labelPosition, mode, children: /* @__PURE__ */ jsxs64("div", { className: IconPicker_default.root, ref: rootRef, children: [
|
|
13429
|
+
return /* @__PURE__ */ jsx78(FieldShell, { help, id, label, labelPosition, mode, children: /* @__PURE__ */ jsxs64("div", { className: IconPicker_default.root, ref: rootRef, children: [
|
|
13348
13430
|
/* @__PURE__ */ jsxs64(
|
|
13349
13431
|
"button",
|
|
13350
13432
|
{
|