opus-react 0.4.7 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1120 -607
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +511 -25
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +136 -22
- package/dist/index.d.ts +136 -22
- package/dist/index.js +1130 -621
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -533,16 +533,19 @@ __export(src_exports, {
|
|
|
533
533
|
DualListBuilder: () => DualListBuilder,
|
|
534
534
|
EmojiPicker: () => EmojiPicker,
|
|
535
535
|
EmptyState: () => EmptyState,
|
|
536
|
+
FLIP_CLOCK_FRAME_RATE: () => FLIP_CLOCK_FRAME_RATE,
|
|
536
537
|
FONT_STORAGE_KEY: () => FONT_STORAGE_KEY,
|
|
537
538
|
FieldShell: () => FieldShell,
|
|
538
539
|
FileField: () => FileField,
|
|
539
540
|
FilterBuilder: () => FilterBuilder,
|
|
540
541
|
FilterSelectField: () => FilterSelectField,
|
|
542
|
+
FlipClock: () => FlipClock,
|
|
541
543
|
FloatingActionButton: () => FloatingActionButton,
|
|
542
544
|
FocusTrap: () => FocusTrap,
|
|
543
545
|
FontPicker: () => FontPicker,
|
|
544
546
|
Form: () => Form,
|
|
545
547
|
FormActions: () => FormActions,
|
|
548
|
+
FormHeader: () => FormHeader,
|
|
546
549
|
FormSection: () => FormSection,
|
|
547
550
|
FormValidationSummary: () => FormValidationSummary,
|
|
548
551
|
Gauge: () => Gauge,
|
|
@@ -703,6 +706,7 @@ __export(src_exports, {
|
|
|
703
706
|
useContextMenu: () => useContextMenu,
|
|
704
707
|
useFieldShellAria: () => useFieldShellAria,
|
|
705
708
|
useFontPreference: () => useFontPreference,
|
|
709
|
+
useFormState: () => useFormState,
|
|
706
710
|
useHotkey: () => useHotkey,
|
|
707
711
|
useHotkeyManager: () => useHotkeyManager,
|
|
708
712
|
useIntersectionObserver: () => useIntersectionObserver,
|
|
@@ -717,7 +721,7 @@ __export(src_exports, {
|
|
|
717
721
|
module.exports = __toCommonJS(src_exports);
|
|
718
722
|
|
|
719
723
|
// ../../components/fields/shared/inputControlSizes.module.css
|
|
720
|
-
var inputControlSizes_default = {"
|
|
724
|
+
var inputControlSizes_default = {"sizeSm":"opus_8ChDQJ_sizeSm","sizeMd":"opus_8ChDQJ_sizeMd","sizeLg":"opus_8ChDQJ_sizeLg"};
|
|
721
725
|
|
|
722
726
|
// ../../components/fields/shared/inputControlSizes.ts
|
|
723
727
|
var inputControlSizeClassName = {
|
|
@@ -727,7 +731,7 @@ var inputControlSizeClassName = {
|
|
|
727
731
|
};
|
|
728
732
|
|
|
729
733
|
// ../../components/fields/Button/Button.module.css
|
|
730
|
-
var Button_default = {"link":"opus_lZkc26_link","secondary":"opus_lZkc26_secondary","
|
|
734
|
+
var Button_default = {"primary":"opus_lZkc26_primary","link":"opus_lZkc26_link","secondary":"opus_lZkc26_secondary","warning":"opus_lZkc26_warning","danger":"opus_lZkc26_danger","success":"opus_lZkc26_success","dark":"opus_lZkc26_dark","light":"opus_lZkc26_light","info":"opus_lZkc26_info","button":"opus_lZkc26_button"};
|
|
731
735
|
|
|
732
736
|
// ../../components/fields/Button/Button.tsx
|
|
733
737
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -769,7 +773,7 @@ var import_react = require("react");
|
|
|
769
773
|
var import_react_dom = require("react-dom");
|
|
770
774
|
|
|
771
775
|
// ../../components/Tooltip/Tooltip.module.css
|
|
772
|
-
var Tooltip_default = {"
|
|
776
|
+
var Tooltip_default = {"trigger":"opus_R70RbH_trigger","popup":"opus_R70RbH_popup","bottom":"opus_R70RbH_bottom","top":"opus_R70RbH_top","left":"opus_R70RbH_left","arrow":"opus_R70RbH_arrow","triggerWrap":"opus_R70RbH_triggerWrap","right":"opus_R70RbH_right","root":"opus_R70RbH_root"};
|
|
773
777
|
|
|
774
778
|
// ../../components/Tooltip/Tooltip.tsx
|
|
775
779
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -938,7 +942,7 @@ function Tooltip({
|
|
|
938
942
|
}
|
|
939
943
|
|
|
940
944
|
// ../../components/fields/FieldShell/FieldShell.module.css
|
|
941
|
-
var FieldShell_default = {"
|
|
945
|
+
var FieldShell_default = {"stacked":"opus_zNi12Z_stacked","fitContent":"opus_zNi12Z_fitContent","errorFlagged":"opus_zNi12Z_errorFlagged","label":"opus_zNi12Z_label","compactControl":"opus_zNi12Z_compactControl","labelFlagged":"opus_zNi12Z_labelFlagged","control":"opus_zNi12Z_control","stackedLeft":"opus_zNi12Z_stackedLeft","stackedRight":"opus_zNi12Z_stackedRight","visuallyHidden":"opus_zNi12Z_visuallyHidden","flaggedCenter":"opus_zNi12Z_flaggedCenter","labelRight":"opus_zNi12Z_labelRight","root":"opus_zNi12Z_root","controlFlagged":"opus_zNi12Z_controlFlagged","error":"opus_zNi12Z_error","required":"opus_zNi12Z_required","flagged":"opus_zNi12Z_flagged","labelLeft":"opus_zNi12Z_labelLeft","flaggedStart":"opus_zNi12Z_flaggedStart"};
|
|
942
946
|
|
|
943
947
|
// ../../components/fields/FieldShell/FieldShell.tsx
|
|
944
948
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -1063,7 +1067,7 @@ function FieldShell({
|
|
|
1063
1067
|
}
|
|
1064
1068
|
|
|
1065
1069
|
// ../../components/fields/CheckboxField/CheckboxField.module.css
|
|
1066
|
-
var CheckboxField_default = {"
|
|
1070
|
+
var CheckboxField_default = {"shell":"opus_g-5tlR_shell","toggleLabel":"opus_g-5tlR_toggleLabel","visual":"opus_g-5tlR_visual","nativeInput":"opus_g-5tlR_nativeInput","round":"opus_g-5tlR_round","error":"opus_g-5tlR_error","square":"opus_g-5tlR_square","toggle":"opus_g-5tlR_toggle"};
|
|
1067
1071
|
|
|
1068
1072
|
// ../../components/fields/shared/choiceControlSizes.module.css
|
|
1069
1073
|
var choiceControlSizes_default = {"sizeLg":"opus_4er5Uc_sizeLg","sizeSm":"opus_4er5Uc_sizeSm","sizeMd":"opus_4er5Uc_sizeMd"};
|
|
@@ -1088,9 +1092,11 @@ function CheckboxField({
|
|
|
1088
1092
|
labelPosition = "left",
|
|
1089
1093
|
labelVisuallyHidden,
|
|
1090
1094
|
mode = "flagged",
|
|
1095
|
+
name,
|
|
1091
1096
|
onChange,
|
|
1092
1097
|
shape = "square",
|
|
1093
|
-
size = "md"
|
|
1098
|
+
size = "md",
|
|
1099
|
+
value
|
|
1094
1100
|
}) {
|
|
1095
1101
|
const shellAria = useFieldShellAria();
|
|
1096
1102
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -1115,8 +1121,10 @@ function CheckboxField({
|
|
|
1115
1121
|
className: CheckboxField_default.nativeInput,
|
|
1116
1122
|
checked,
|
|
1117
1123
|
id,
|
|
1124
|
+
name,
|
|
1118
1125
|
onChange,
|
|
1119
|
-
type: "checkbox"
|
|
1126
|
+
type: "checkbox",
|
|
1127
|
+
value
|
|
1120
1128
|
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
1121
1129
|
),
|
|
1122
1130
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -1136,7 +1144,7 @@ function CheckboxField({
|
|
|
1136
1144
|
}
|
|
1137
1145
|
|
|
1138
1146
|
// ../../components/fields/ColorField/ColorField.module.css
|
|
1139
|
-
var ColorField_default = {"
|
|
1147
|
+
var ColorField_default = {"picker":"opus_Z7jeX4_picker","icon":"opus_Z7jeX4_icon","error":"opus_Z7jeX4_error","nativeInput":"opus_Z7jeX4_nativeInput","value":"opus_Z7jeX4_value","swatch":"opus_Z7jeX4_swatch"};
|
|
1140
1148
|
|
|
1141
1149
|
// ../../components/fields/ColorField/ColorField.tsx
|
|
1142
1150
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
@@ -1197,17 +1205,23 @@ function ColorField({
|
|
|
1197
1205
|
}
|
|
1198
1206
|
|
|
1199
1207
|
// ../../components/fields/DateField/DateField.module.css
|
|
1200
|
-
var DateField_default = {"
|
|
1208
|
+
var DateField_default = {"input":"opus_G3y11z_input","error":"opus_G3y11z_error"};
|
|
1201
1209
|
|
|
1202
1210
|
// ../../components/fields/DateField/DateField.tsx
|
|
1203
1211
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1204
1212
|
function DateField({
|
|
1213
|
+
autoComplete,
|
|
1214
|
+
autoFocus,
|
|
1215
|
+
disabled,
|
|
1205
1216
|
error,
|
|
1206
1217
|
help,
|
|
1207
1218
|
id,
|
|
1208
1219
|
label,
|
|
1209
1220
|
labelPosition = "left",
|
|
1210
1221
|
mode = "stacked",
|
|
1222
|
+
inputProps,
|
|
1223
|
+
name,
|
|
1224
|
+
readOnly,
|
|
1211
1225
|
required,
|
|
1212
1226
|
size = "md",
|
|
1213
1227
|
type = "date",
|
|
@@ -1227,25 +1241,31 @@ function DateField({
|
|
|
1227
1241
|
required,
|
|
1228
1242
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1229
1243
|
"input",
|
|
1230
|
-
__spreadValues({
|
|
1244
|
+
__spreadValues(__spreadProps(__spreadValues({}, inputProps), {
|
|
1231
1245
|
"aria-invalid": error ? "true" : void 0,
|
|
1246
|
+
autoComplete,
|
|
1247
|
+
autoFocus,
|
|
1232
1248
|
className: [
|
|
1233
1249
|
DateField_default.input,
|
|
1234
1250
|
inputControlSizeClassName[size],
|
|
1235
1251
|
error ? DateField_default.error : ""
|
|
1236
1252
|
].filter(Boolean).join(" "),
|
|
1237
1253
|
id,
|
|
1254
|
+
disabled,
|
|
1255
|
+
name,
|
|
1238
1256
|
onChange,
|
|
1239
1257
|
type,
|
|
1258
|
+
readOnly,
|
|
1259
|
+
required,
|
|
1240
1260
|
value
|
|
1241
|
-
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
1261
|
+
}), fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
1242
1262
|
)
|
|
1243
1263
|
}
|
|
1244
1264
|
);
|
|
1245
1265
|
}
|
|
1246
1266
|
|
|
1247
1267
|
// ../../components/fields/HiddenField/HiddenField.module.css
|
|
1248
|
-
var HiddenField_default = {"
|
|
1268
|
+
var HiddenField_default = {"preview":"opus_kL1YXS_preview","meta":"opus_kL1YXS_meta","note":"opus_kL1YXS_note"};
|
|
1249
1269
|
|
|
1250
1270
|
// ../../components/fields/HiddenField/HiddenField.tsx
|
|
1251
1271
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -1294,7 +1314,7 @@ function HiddenField({
|
|
|
1294
1314
|
}
|
|
1295
1315
|
|
|
1296
1316
|
// ../../components/fields/FileField/FileField.module.css
|
|
1297
|
-
var FileField_default = {"
|
|
1317
|
+
var FileField_default = {"drop":"opus_aOsPA7_drop","iconSvg":"opus_aOsPA7_iconSvg","title":"opus_aOsPA7_title","input":"opus_aOsPA7_input","dropError":"opus_aOsPA7_dropError","icon":"opus_aOsPA7_icon","hint":"opus_aOsPA7_hint","wrapper":"opus_aOsPA7_wrapper","dragging":"opus_aOsPA7_dragging","action":"opus_aOsPA7_action","footnote":"opus_aOsPA7_footnote","content":"opus_aOsPA7_content"};
|
|
1298
1318
|
|
|
1299
1319
|
// ../../components/fields/FileField/FileField.tsx
|
|
1300
1320
|
var import_react3 = require("react");
|
|
@@ -1579,7 +1599,7 @@ async function cropImageToViewport(image, viewport, output, state, options) {
|
|
|
1579
1599
|
}
|
|
1580
1600
|
|
|
1581
1601
|
// ../../components/fields/ImageCropUploadField/ImageCropUploadField.module.css
|
|
1582
|
-
var ImageCropUploadField_default = {"
|
|
1602
|
+
var ImageCropUploadField_default = {"previewHint":"opus_itxBv9_previewHint","previewImage":"opus_itxBv9_previewImage","drop":"opus_itxBv9_drop","dropHint":"opus_itxBv9_dropHint","changeLink":"opus_itxBv9_changeLink","instruction":"opus_itxBv9_instruction","zoomRow":"opus_itxBv9_zoomRow","dropIconSvg":"opus_itxBv9_dropIconSvg","root":"opus_itxBv9_root","previewCopy":"opus_itxBv9_previewCopy","actions":"opus_itxBv9_actions","dragging":"opus_itxBv9_dragging","zoomButton":"opus_itxBv9_zoomButton","zoomSlider":"opus_itxBv9_zoomSlider","dropError":"opus_itxBv9_dropError","dropContent":"opus_itxBv9_dropContent","dropAction":"opus_itxBv9_dropAction","previewCameraButton":"opus_itxBv9_previewCameraButton","editor":"opus_itxBv9_editor","viewport":"opus_itxBv9_viewport","dropTitle":"opus_itxBv9_dropTitle","viewportRing":"opus_itxBv9_viewportRing","previewRow":"opus_itxBv9_previewRow","previewTitle":"opus_itxBv9_previewTitle","previewFrame":"opus_itxBv9_previewFrame","viewportImage":"opus_itxBv9_viewportImage","zoomLabel":"opus_itxBv9_zoomLabel","dropIcon":"opus_itxBv9_dropIcon","hiddenInput":"opus_itxBv9_hiddenInput","viewportDragging":"opus_itxBv9_viewportDragging","previewCard":"opus_itxBv9_previewCard"};
|
|
1583
1603
|
|
|
1584
1604
|
// ../../components/fields/ImageCropUploadField/ImageCropUploadField.tsx
|
|
1585
1605
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
@@ -2046,7 +2066,7 @@ function ImageCropUploadField({
|
|
|
2046
2066
|
var import_react5 = require("react");
|
|
2047
2067
|
|
|
2048
2068
|
// ../../components/fields/NumberField/NumberField.module.css
|
|
2049
|
-
var NumberField_default = {"
|
|
2069
|
+
var NumberField_default = {"stepper":"opus_L272Dk_stepper","error":"opus_L272Dk_error","input":"opus_L272Dk_input","button":"opus_L272Dk_button"};
|
|
2050
2070
|
|
|
2051
2071
|
// ../../components/fields/numericUtils.ts
|
|
2052
2072
|
function decimalPlacesFromStep(step) {
|
|
@@ -2225,7 +2245,7 @@ function NumberField({
|
|
|
2225
2245
|
var import_react6 = require("react");
|
|
2226
2246
|
|
|
2227
2247
|
// ../../components/fields/RadioGroup/RadioGroup.module.css
|
|
2228
|
-
var RadioGroup_default = {"
|
|
2248
|
+
var RadioGroup_default = {"options":"opus_O-1nor_options","square":"opus_O-1nor_square","error":"opus_O-1nor_error","shell":"opus_O-1nor_shell","choice":"opus_O-1nor_choice","visual":"opus_O-1nor_visual","round":"opus_O-1nor_round","option":"opus_O-1nor_option","nativeInput":"opus_O-1nor_nativeInput"};
|
|
2229
2249
|
|
|
2230
2250
|
// ../../components/fields/RadioGroup/RadioGroup.tsx
|
|
2231
2251
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
@@ -2323,7 +2343,7 @@ function Radio({ children, error, name, shape, value, defaultChecked }) {
|
|
|
2323
2343
|
var import_react7 = require("react");
|
|
2324
2344
|
|
|
2325
2345
|
// ../../components/fields/ChipInputField/ChipInputField.module.css
|
|
2326
|
-
var ChipInputField_default = {"
|
|
2346
|
+
var ChipInputField_default = {"readOnly":"opus_IOOYwh_readOnly","error":"opus_IOOYwh_error","remove":"opus_IOOYwh_remove","chipLabel":"opus_IOOYwh_chipLabel","input":"opus_IOOYwh_input","field":"opus_IOOYwh_field","chip":"opus_IOOYwh_chip","shell":"opus_IOOYwh_shell","disabled":"opus_IOOYwh_disabled"};
|
|
2327
2347
|
|
|
2328
2348
|
// ../../components/fields/ChipInputField/ChipInputField.tsx
|
|
2329
2349
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
@@ -2460,7 +2480,7 @@ function ChipInput({
|
|
|
2460
2480
|
var ChipInputField = ChipInput;
|
|
2461
2481
|
|
|
2462
2482
|
// ../../components/fields/ChoiceChipsField/ChoiceChipsField.module.css
|
|
2463
|
-
var ChoiceChipsField_default = {"
|
|
2483
|
+
var ChoiceChipsField_default = {"chip":"opus_X6xFEA_chip","selected":"opus_X6xFEA_selected","optionDisabled":"opus_X6xFEA_optionDisabled","root":"opus_X6xFEA_root","indicator":"opus_X6xFEA_indicator","shell":"opus_X6xFEA_shell","disabled":"opus_X6xFEA_disabled"};
|
|
2464
2484
|
|
|
2465
2485
|
// ../../components/fields/ChoiceChipsField/ChoiceChipsField.tsx
|
|
2466
2486
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
@@ -2546,7 +2566,7 @@ function ChoiceChips({
|
|
|
2546
2566
|
var ChoiceChipsField = ChoiceChips;
|
|
2547
2567
|
|
|
2548
2568
|
// ../../components/fields/RangeField/RangeField.module.css
|
|
2549
|
-
var RangeField_default = {"
|
|
2569
|
+
var RangeField_default = {"footer":"opus_iRHQuG_footer","fieldLabel":"opus_iRHQuG_fieldLabel","error":"opus_iRHQuG_error","wrap":"opus_iRHQuG_wrap","topRow":"opus_iRHQuG_topRow","value":"opus_iRHQuG_value","slider":"opus_iRHQuG_slider"};
|
|
2550
2570
|
|
|
2551
2571
|
// ../../components/fields/RangeField/RangeField.tsx
|
|
2552
2572
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
@@ -2630,6 +2650,7 @@ function SelectField({
|
|
|
2630
2650
|
label,
|
|
2631
2651
|
labelPosition = "left",
|
|
2632
2652
|
mode = "stacked",
|
|
2653
|
+
name,
|
|
2633
2654
|
options,
|
|
2634
2655
|
required,
|
|
2635
2656
|
size = "md",
|
|
@@ -2653,6 +2674,7 @@ function SelectField({
|
|
|
2653
2674
|
"aria-invalid": error ? "true" : void 0,
|
|
2654
2675
|
className: `${SelectField_default.select} ${error ? SelectField_default.error : ""}`,
|
|
2655
2676
|
id,
|
|
2677
|
+
name,
|
|
2656
2678
|
onChange,
|
|
2657
2679
|
value
|
|
2658
2680
|
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) })), {
|
|
@@ -2664,7 +2686,7 @@ function SelectField({
|
|
|
2664
2686
|
}
|
|
2665
2687
|
|
|
2666
2688
|
// ../../components/fields/SwitchField/SwitchField.module.css
|
|
2667
|
-
var SwitchField_default = {"
|
|
2689
|
+
var SwitchField_default = {"error":"opus_t9NLEA_error","toggle":"opus_t9NLEA_toggle","track":"opus_t9NLEA_track","shell":"opus_t9NLEA_shell"};
|
|
2668
2690
|
|
|
2669
2691
|
// ../../components/fields/SwitchField/SwitchField.tsx
|
|
2670
2692
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
@@ -2716,22 +2738,34 @@ function SwitchField({
|
|
|
2716
2738
|
var import_react8 = require("react");
|
|
2717
2739
|
|
|
2718
2740
|
// ../../components/fields/TextAreaField/TextAreaField.module.css
|
|
2719
|
-
var TextAreaField_default = {"externalCount":"opus_FjhWmh_externalCount","
|
|
2741
|
+
var TextAreaField_default = {"externalCount":"opus_FjhWmh_externalCount","field":"opus_FjhWmh_field","inputWrap":"opus_FjhWmh_inputWrap","footer":"opus_FjhWmh_footer","footerError":"opus_FjhWmh_footerError","textarea":"opus_FjhWmh_textarea","error":"opus_FjhWmh_error","inlineCount":"opus_FjhWmh_inlineCount","withCount":"opus_FjhWmh_withCount"};
|
|
2720
2742
|
|
|
2721
2743
|
// ../../components/fields/TextAreaField/TextAreaField.tsx
|
|
2722
2744
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
2723
2745
|
function TextAreaField({
|
|
2746
|
+
autoCapitalize,
|
|
2747
|
+
autoComplete,
|
|
2748
|
+
autoCorrect,
|
|
2749
|
+
autoFocus,
|
|
2750
|
+
disabled,
|
|
2751
|
+
enterKeyHint,
|
|
2724
2752
|
error,
|
|
2725
2753
|
help,
|
|
2726
2754
|
id,
|
|
2727
2755
|
label,
|
|
2728
2756
|
labelPosition = "left",
|
|
2729
2757
|
maxChars,
|
|
2758
|
+
minLength,
|
|
2759
|
+
inputMode,
|
|
2760
|
+
inputProps,
|
|
2730
2761
|
mode = "stacked",
|
|
2731
2762
|
placeholder,
|
|
2732
2763
|
required,
|
|
2764
|
+
name,
|
|
2765
|
+
readOnly,
|
|
2733
2766
|
size = "md",
|
|
2734
2767
|
value,
|
|
2768
|
+
spellCheck,
|
|
2735
2769
|
onChange
|
|
2736
2770
|
}) {
|
|
2737
2771
|
const shellAria = useFieldShellAria();
|
|
@@ -2755,19 +2789,31 @@ function TextAreaField({
|
|
|
2755
2789
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: `${TextAreaField_default.inputWrap} ${inputControlSizeClassName[size]}`, children: [
|
|
2756
2790
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2757
2791
|
"textarea",
|
|
2758
|
-
__spreadProps(__spreadValues({
|
|
2792
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, inputProps), {
|
|
2759
2793
|
"aria-invalid": error ? "true" : void 0,
|
|
2794
|
+
autoCapitalize,
|
|
2795
|
+
autoComplete,
|
|
2796
|
+
autoCorrect,
|
|
2797
|
+
autoFocus,
|
|
2760
2798
|
className: [
|
|
2761
2799
|
TextAreaField_default.textarea,
|
|
2762
2800
|
error ? TextAreaField_default.error : "",
|
|
2763
2801
|
showCharCount ? TextAreaField_default.withCount : ""
|
|
2764
2802
|
].filter(Boolean).join(" "),
|
|
2765
2803
|
id,
|
|
2804
|
+
disabled,
|
|
2805
|
+
enterKeyHint,
|
|
2806
|
+
inputMode,
|
|
2766
2807
|
maxLength: maxChars,
|
|
2808
|
+
minLength,
|
|
2809
|
+
name,
|
|
2767
2810
|
onChange,
|
|
2768
2811
|
placeholder,
|
|
2812
|
+
readOnly,
|
|
2813
|
+
required,
|
|
2814
|
+
spellCheck,
|
|
2769
2815
|
value
|
|
2770
|
-
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) })), {
|
|
2816
|
+
}), fieldInputAriaProps(shellAria, { invalid: Boolean(error) })), {
|
|
2771
2817
|
"aria-describedby": describedBy || void 0
|
|
2772
2818
|
})
|
|
2773
2819
|
),
|
|
@@ -2797,7 +2843,7 @@ var import_react_fontawesome2 = require("@fortawesome/react-fontawesome");
|
|
|
2797
2843
|
var import_free_solid_svg_icons2 = require("@fortawesome/free-solid-svg-icons");
|
|
2798
2844
|
|
|
2799
2845
|
// ../../components/fields/RichTextField/RichTextField.module.css
|
|
2800
|
-
var RichTextField_default = {"
|
|
2846
|
+
var RichTextField_default = {"toolbar":"opus_6HFqZH_toolbar","modalField":"opus_6HFqZH_modalField","modalActions":"opus_6HFqZH_modalActions","editor":"opus_6HFqZH_editor","toolbarIcon":"opus_6HFqZH_toolbarIcon","toolbarButtonActive":"opus_6HFqZH_toolbarButtonActive","readOnly":"opus_6HFqZH_readOnly","modalInput":"opus_6HFqZH_modalInput","modal":"opus_6HFqZH_modal","modalDimensionField":"opus_6HFqZH_modalDimensionField","error":"opus_6HFqZH_error","modalLabel":"opus_6HFqZH_modalLabel","modalCancel":"opus_6HFqZH_modalCancel","colorInput":"opus_6HFqZH_colorInput","modalConfirm":"opus_6HFqZH_modalConfirm","field":"opus_6HFqZH_field","modalOverlay":"opus_6HFqZH_modalOverlay","modalTimes":"opus_6HFqZH_modalTimes","colorSwatch":"opus_6HFqZH_colorSwatch","modalNumber":"opus_6HFqZH_modalNumber","blockSelect":"opus_6HFqZH_blockSelect","modalTitle":"opus_6HFqZH_modalTitle","divider":"opus_6HFqZH_divider","toolbarButton":"opus_6HFqZH_toolbarButton","modalDimensions":"opus_6HFqZH_modalDimensions","editorShell":"opus_6HFqZH_editorShell"};
|
|
2801
2847
|
|
|
2802
2848
|
// ../../components/fields/RichTextField/RichTextField.tsx
|
|
2803
2849
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
@@ -3446,7 +3492,7 @@ var import_react_fontawesome4 = require("@fortawesome/react-fontawesome");
|
|
|
3446
3492
|
var import_free_solid_svg_icons4 = require("@fortawesome/free-solid-svg-icons");
|
|
3447
3493
|
|
|
3448
3494
|
// ../../components/fields/shared/fieldControl.module.css
|
|
3449
|
-
var fieldControl_default = {"
|
|
3495
|
+
var fieldControl_default = {"searchWrapError":"opus_1Q5xBh_searchWrapError","prefixIcon":"opus_1Q5xBh_prefixIcon","searchWrap":"opus_1Q5xBh_searchWrap","panelFooter":"opus_1Q5xBh_panelFooter","search":"opus_1Q5xBh_search","passwordInput":"opus_1Q5xBh_passwordInput","input":"opus_1Q5xBh_input","trigger":"opus_1Q5xBh_trigger","chevron":"opus_1Q5xBh_chevron","option":"opus_1Q5xBh_option","placeholder":"opus_1Q5xBh_placeholder","triggerError":"opus_1Q5xBh_triggerError","passwordToggleSlot":"opus_1Q5xBh_passwordToggleSlot","actionButtonPrimary":"opus_1Q5xBh_actionButtonPrimary","prefixIconSvg":"opus_1Q5xBh_prefixIconSvg","actionButton":"opus_1Q5xBh_actionButton","groupLabel":"opus_1Q5xBh_groupLabel","searchInput":"opus_1Q5xBh_searchInput","endAdornment":"opus_1Q5xBh_endAdornment","error":"opus_1Q5xBh_error","passwordWrap":"opus_1Q5xBh_passwordWrap","passwordToggle":"opus_1Q5xBh_passwordToggle","triggerOpen":"opus_1Q5xBh_triggerOpen","panel":"opus_1Q5xBh_panel","list":"opus_1Q5xBh_list"};
|
|
3450
3496
|
|
|
3451
3497
|
// ../../components/fields/shared/PasswordToggle.tsx
|
|
3452
3498
|
var import_react_fontawesome3 = require("@fortawesome/react-fontawesome");
|
|
@@ -3471,6 +3517,12 @@ function PasswordToggle({ visible, onToggle, controlsId }) {
|
|
|
3471
3517
|
// ../../components/fields/TextField/TextField.tsx
|
|
3472
3518
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3473
3519
|
function TextField({
|
|
3520
|
+
autoCapitalize,
|
|
3521
|
+
autoComplete,
|
|
3522
|
+
autoCorrect,
|
|
3523
|
+
autoFocus,
|
|
3524
|
+
disabled,
|
|
3525
|
+
enterKeyHint,
|
|
3474
3526
|
error,
|
|
3475
3527
|
help,
|
|
3476
3528
|
id,
|
|
@@ -3480,10 +3532,18 @@ function TextField({
|
|
|
3480
3532
|
labelPosition = "left",
|
|
3481
3533
|
mode = "stacked",
|
|
3482
3534
|
placeholder,
|
|
3535
|
+
inputMode,
|
|
3536
|
+
inputProps,
|
|
3537
|
+
maxLength,
|
|
3538
|
+
minLength,
|
|
3539
|
+
name,
|
|
3540
|
+
pattern,
|
|
3541
|
+
readOnly,
|
|
3483
3542
|
required,
|
|
3484
3543
|
size = "md",
|
|
3485
3544
|
type,
|
|
3486
3545
|
value,
|
|
3546
|
+
spellCheck,
|
|
3487
3547
|
endAdornment,
|
|
3488
3548
|
onChange
|
|
3489
3549
|
}) {
|
|
@@ -3495,20 +3555,34 @@ function TextField({
|
|
|
3495
3555
|
const sizeClass = inputControlSizeClassName[size];
|
|
3496
3556
|
const inputEl = /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3497
3557
|
"input",
|
|
3498
|
-
__spreadValues({
|
|
3558
|
+
__spreadValues(__spreadProps(__spreadValues({}, inputProps), {
|
|
3499
3559
|
"aria-invalid": error ? "true" : void 0,
|
|
3560
|
+
autoCapitalize,
|
|
3561
|
+
autoComplete,
|
|
3562
|
+
autoCorrect,
|
|
3563
|
+
autoFocus,
|
|
3500
3564
|
className: [
|
|
3501
3565
|
isSearch ? fieldControl_default.searchInput : fieldControl_default.input,
|
|
3502
3566
|
error ? fieldControl_default.error : "",
|
|
3503
3567
|
isPassword ? fieldControl_default.passwordInput : ""
|
|
3504
3568
|
].filter(Boolean).join(" "),
|
|
3505
3569
|
id,
|
|
3570
|
+
disabled,
|
|
3571
|
+
enterKeyHint,
|
|
3572
|
+
inputMode,
|
|
3573
|
+
maxLength,
|
|
3574
|
+
minLength,
|
|
3575
|
+
name,
|
|
3576
|
+
pattern,
|
|
3577
|
+
readOnly,
|
|
3506
3578
|
ref: inputRef,
|
|
3507
3579
|
placeholder,
|
|
3508
3580
|
onChange,
|
|
3509
3581
|
type: inputType,
|
|
3510
|
-
value
|
|
3511
|
-
|
|
3582
|
+
value,
|
|
3583
|
+
required,
|
|
3584
|
+
spellCheck
|
|
3585
|
+
}), fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
3512
3586
|
);
|
|
3513
3587
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3514
3588
|
FieldShell,
|
|
@@ -3555,7 +3629,7 @@ var import_react_fontawesome5 = require("@fortawesome/react-fontawesome");
|
|
|
3555
3629
|
var import_free_solid_svg_icons5 = require("@fortawesome/free-solid-svg-icons");
|
|
3556
3630
|
|
|
3557
3631
|
// ../../components/fields/ThemeToggleField/ThemeToggleField.module.css
|
|
3558
|
-
var ThemeToggleField_default = {"
|
|
3632
|
+
var ThemeToggleField_default = {"active":"opus_SwerMA_active","toggle":"opus_SwerMA_toggle","option":"opus_SwerMA_option","indicator":"opus_SwerMA_indicator"};
|
|
3559
3633
|
|
|
3560
3634
|
// ../../components/fields/ThemeToggleField/ThemeToggleField.tsx
|
|
3561
3635
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
@@ -3897,7 +3971,7 @@ function MultiSelectField({
|
|
|
3897
3971
|
var import_react13 = require("react");
|
|
3898
3972
|
|
|
3899
3973
|
// ../../components/fields/TransferListField/TransferListField.module.css
|
|
3900
|
-
var TransferListField_default = {"column":"opus_NPBFZk_column","controlButton":"opus_NPBFZk_controlButton","
|
|
3974
|
+
var TransferListField_default = {"column":"opus_NPBFZk_column","itemActive":"opus_NPBFZk_itemActive","controlButton":"opus_NPBFZk_controlButton","item":"opus_NPBFZk_item","controls":"opus_NPBFZk_controls","list":"opus_NPBFZk_list","columnHeader":"opus_NPBFZk_columnHeader","root":"opus_NPBFZk_root"};
|
|
3901
3975
|
|
|
3902
3976
|
// ../../components/fields/TransferListField/TransferListField.tsx
|
|
3903
3977
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
@@ -4019,7 +4093,7 @@ var import_react_fontawesome6 = require("@fortawesome/react-fontawesome");
|
|
|
4019
4093
|
var import_free_solid_svg_icons6 = require("@fortawesome/free-solid-svg-icons");
|
|
4020
4094
|
|
|
4021
4095
|
// ../../components/fields/PasswordStrengthField/PasswordStrengthField.module.css
|
|
4022
|
-
var PasswordStrengthField_default = {"
|
|
4096
|
+
var PasswordStrengthField_default = {"requirementIcon":"opus_S1A372_requirementIcon","requirementMet":"opus_S1A372_requirementMet","requirements":"opus_S1A372_requirements","requirement":"opus_S1A372_requirement","meterTrack":"opus_S1A372_meterTrack","meterFill":"opus_S1A372_meterFill","root":"opus_S1A372_root","meterWrap":"opus_S1A372_meterWrap","meterLabel":"opus_S1A372_meterLabel"};
|
|
4023
4097
|
|
|
4024
4098
|
// ../../components/fields/PasswordStrengthField/PasswordStrengthField.tsx
|
|
4025
4099
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
@@ -4037,6 +4111,9 @@ function scorePassword(value, requirements) {
|
|
|
4037
4111
|
return Math.round(passed / requirements.length * 100);
|
|
4038
4112
|
}
|
|
4039
4113
|
function PasswordStrengthField({
|
|
4114
|
+
autoComplete = "new-password",
|
|
4115
|
+
autoFocus,
|
|
4116
|
+
disabled,
|
|
4040
4117
|
error,
|
|
4041
4118
|
help,
|
|
4042
4119
|
id,
|
|
@@ -4044,6 +4121,9 @@ function PasswordStrengthField({
|
|
|
4044
4121
|
labelPosition = "left",
|
|
4045
4122
|
mode = "stacked",
|
|
4046
4123
|
placeholder = "Enter a password",
|
|
4124
|
+
inputProps,
|
|
4125
|
+
name,
|
|
4126
|
+
readOnly,
|
|
4047
4127
|
required,
|
|
4048
4128
|
requirements = defaultRequirements,
|
|
4049
4129
|
showRequirements = true,
|
|
@@ -4070,16 +4150,21 @@ function PasswordStrengthField({
|
|
|
4070
4150
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: `${fieldControl_default.passwordWrap} ${inputControlSizeClassName[size]}`, children: [
|
|
4071
4151
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4072
4152
|
"input",
|
|
4073
|
-
__spreadValues({
|
|
4153
|
+
__spreadValues(__spreadProps(__spreadValues({}, inputProps), {
|
|
4074
4154
|
"aria-invalid": error ? "true" : void 0,
|
|
4075
|
-
autoComplete
|
|
4155
|
+
autoComplete,
|
|
4156
|
+
autoFocus,
|
|
4076
4157
|
className: `${fieldControl_default.input} ${fieldControl_default.passwordInput} ${error ? fieldControl_default.error : ""}`,
|
|
4077
4158
|
id,
|
|
4159
|
+
disabled,
|
|
4160
|
+
name,
|
|
4078
4161
|
placeholder,
|
|
4079
4162
|
type: revealed ? "text" : "password",
|
|
4163
|
+
readOnly,
|
|
4164
|
+
required,
|
|
4080
4165
|
value,
|
|
4081
4166
|
onChange: (event) => onChange(event.target.value)
|
|
4082
|
-
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
4167
|
+
}), fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
4083
4168
|
),
|
|
4084
4169
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4085
4170
|
PasswordToggle,
|
|
@@ -4128,7 +4213,7 @@ function PasswordStrengthField({
|
|
|
4128
4213
|
}
|
|
4129
4214
|
|
|
4130
4215
|
// ../../components/fields/RatingField/RatingField.module.css
|
|
4131
|
-
var RatingField_default = {"symbolActive":"opus_0tdNUz_symbolActive","root":"opus_0tdNUz_root","
|
|
4216
|
+
var RatingField_default = {"symbolActive":"opus_0tdNUz_symbolActive","root":"opus_0tdNUz_root","numeric":"opus_0tdNUz_numeric","symbol":"opus_0tdNUz_symbol","numericActive":"opus_0tdNUz_numericActive"};
|
|
4132
4217
|
|
|
4133
4218
|
// ../../components/fields/RatingField/RatingField.tsx
|
|
4134
4219
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
@@ -4204,7 +4289,7 @@ function RatingField({
|
|
|
4204
4289
|
}
|
|
4205
4290
|
|
|
4206
4291
|
// ../../components/fields/SegmentedControlField/SegmentedControlField.module.css
|
|
4207
|
-
var SegmentedControlField_default = {"
|
|
4292
|
+
var SegmentedControlField_default = {"root":"opus_ZHwfiN_root","segmentActive":"opus_ZHwfiN_segmentActive","segment":"opus_ZHwfiN_segment"};
|
|
4208
4293
|
|
|
4209
4294
|
// ../../components/fields/SegmentedControlField/SegmentedControlField.tsx
|
|
4210
4295
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
@@ -4260,7 +4345,7 @@ function SegmentedControlField({
|
|
|
4260
4345
|
var import_react15 = require("react");
|
|
4261
4346
|
|
|
4262
4347
|
// ../../components/fields/SliderRangeField/SliderRangeField.module.css
|
|
4263
|
-
var SliderRangeField_default = {"slider":"opus_k3d0sS_slider","
|
|
4348
|
+
var SliderRangeField_default = {"slider":"opus_k3d0sS_slider","track":"opus_k3d0sS_track","trackWrap":"opus_k3d0sS_trackWrap","footer":"opus_k3d0sS_footer","value":"opus_k3d0sS_value","header":"opus_k3d0sS_header","root":"opus_k3d0sS_root"};
|
|
4264
4349
|
|
|
4265
4350
|
// ../../components/fields/SliderRangeField/SliderRangeField.tsx
|
|
4266
4351
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
@@ -4358,7 +4443,7 @@ function SliderRangeField({
|
|
|
4358
4443
|
var import_react16 = require("react");
|
|
4359
4444
|
|
|
4360
4445
|
// ../../components/fields/PhoneNumberField/PhoneNumberField.module.css
|
|
4361
|
-
var PhoneNumberField_default = {"
|
|
4446
|
+
var PhoneNumberField_default = {"empty":"opus_WC4gnN_empty","root":"opus_WC4gnN_root","countryWrap":"opus_WC4gnN_countryWrap","optionActive":"opus_WC4gnN_optionActive","panel":"opus_WC4gnN_panel","countryValue":"opus_WC4gnN_countryValue","country":"opus_WC4gnN_country","flag":"opus_WC4gnN_flag","dial":"opus_WC4gnN_dial","code":"opus_WC4gnN_code","chevron":"opus_WC4gnN_chevron","option":"opus_WC4gnN_option","optionLabel":"opus_WC4gnN_optionLabel","optionDial":"opus_WC4gnN_optionDial"};
|
|
4362
4447
|
|
|
4363
4448
|
// ../../components/fields/PhoneNumberField/countries.ts
|
|
4364
4449
|
function countryCodeToFlag(code) {
|
|
@@ -4613,6 +4698,9 @@ function flagClassName(code) {
|
|
|
4613
4698
|
return `fi fi-${code.toLowerCase()}`;
|
|
4614
4699
|
}
|
|
4615
4700
|
function PhoneNumberField({
|
|
4701
|
+
autoComplete,
|
|
4702
|
+
autoFocus,
|
|
4703
|
+
disabled,
|
|
4616
4704
|
countries: countries2 = countries,
|
|
4617
4705
|
countryCode,
|
|
4618
4706
|
error,
|
|
@@ -4622,6 +4710,9 @@ function PhoneNumberField({
|
|
|
4622
4710
|
labelPosition = "left",
|
|
4623
4711
|
mode = "stacked",
|
|
4624
4712
|
placeholder = "7123 456789",
|
|
4713
|
+
inputProps,
|
|
4714
|
+
name,
|
|
4715
|
+
readOnly,
|
|
4625
4716
|
required,
|
|
4626
4717
|
size = "md",
|
|
4627
4718
|
value,
|
|
@@ -4743,16 +4834,22 @@ function PhoneNumberField({
|
|
|
4743
4834
|
] }),
|
|
4744
4835
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4745
4836
|
"input",
|
|
4746
|
-
__spreadValues({
|
|
4837
|
+
__spreadValues(__spreadProps(__spreadValues({}, inputProps), {
|
|
4747
4838
|
"aria-invalid": error ? "true" : void 0,
|
|
4839
|
+
autoComplete,
|
|
4840
|
+
autoFocus,
|
|
4748
4841
|
className: `${fieldControl_default.input} ${error ? fieldControl_default.error : ""}`,
|
|
4749
4842
|
id,
|
|
4843
|
+
disabled,
|
|
4750
4844
|
inputMode: "tel",
|
|
4845
|
+
name,
|
|
4751
4846
|
placeholder,
|
|
4752
4847
|
type: "tel",
|
|
4848
|
+
readOnly,
|
|
4849
|
+
required,
|
|
4753
4850
|
value,
|
|
4754
4851
|
onChange: (event) => onChange(event.target.value)
|
|
4755
|
-
}, fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
4852
|
+
}), fieldInputAriaProps(shellAria, { invalid: Boolean(error) }))
|
|
4756
4853
|
)
|
|
4757
4854
|
] })
|
|
4758
4855
|
}
|
|
@@ -4763,7 +4860,7 @@ function PhoneNumberField({
|
|
|
4763
4860
|
var import_react17 = require("react");
|
|
4764
4861
|
|
|
4765
4862
|
// ../../components/fields/CountryPickerField/CountryPickerField.module.css
|
|
4766
|
-
var CountryPickerField_default = {"
|
|
4863
|
+
var CountryPickerField_default = {"optionLabel":"opus_O7qqfR_optionLabel","root":"opus_O7qqfR_root","option":"opus_O7qqfR_option","optionCode":"opus_O7qqfR_optionCode","optionActive":"opus_O7qqfR_optionActive","triggerValue":"opus_O7qqfR_triggerValue","flag":"opus_O7qqfR_flag","empty":"opus_O7qqfR_empty"};
|
|
4767
4864
|
|
|
4768
4865
|
// ../../components/fields/CountryPickerField/CountryPickerField.tsx
|
|
4769
4866
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
@@ -4922,7 +5019,7 @@ function CountryPickerField({
|
|
|
4922
5019
|
var import_react18 = require("react");
|
|
4923
5020
|
|
|
4924
5021
|
// ../../components/fields/TreeSelectField/TreeSelectField.module.css
|
|
4925
|
-
var TreeSelectField_default = {"
|
|
5022
|
+
var TreeSelectField_default = {"root":"opus_Mq6C00_root","treeOption":"opus_Mq6C00_treeOption","treeOptionActive":"opus_Mq6C00_treeOptionActive"};
|
|
4926
5023
|
|
|
4927
5024
|
// ../../components/fields/TreeSelectField/TreeSelectField.tsx
|
|
4928
5025
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
@@ -5053,7 +5150,7 @@ function TreeSelectField({
|
|
|
5053
5150
|
var import_react19 = require("react");
|
|
5054
5151
|
|
|
5055
5152
|
// ../../components/fields/CascaderField/CascaderField.module.css
|
|
5056
|
-
var CascaderField_default = {"
|
|
5153
|
+
var CascaderField_default = {"root":"opus_1Fg59A_root","column":"opus_1Fg59A_column","option":"opus_1Fg59A_option","optionActive":"opus_1Fg59A_optionActive","panel":"opus_1Fg59A_panel"};
|
|
5057
5154
|
|
|
5058
5155
|
// ../../components/fields/CascaderField/CascaderField.tsx
|
|
5059
5156
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
@@ -5268,7 +5365,7 @@ function OpusThemeProvider({
|
|
|
5268
5365
|
}
|
|
5269
5366
|
|
|
5270
5367
|
// ../../components/Alert/Alert.module.css
|
|
5271
|
-
var Alert_default = {"
|
|
5368
|
+
var Alert_default = {"description":"opus_eh3eeT_description","dismissIcon":"opus_eh3eeT_dismissIcon","iconFlagged":"opus_eh3eeT_iconFlagged","content":"opus_eh3eeT_content","icon":"opus_eh3eeT_icon","dismiss":"opus_eh3eeT_dismiss","iconSvg":"opus_eh3eeT_iconSvg","iconMark":"opus_eh3eeT_iconMark","title":"opus_eh3eeT_title","alert":"opus_eh3eeT_alert"};
|
|
5272
5369
|
|
|
5273
5370
|
// ../../components/Alert/Alert.tsx
|
|
5274
5371
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
@@ -5490,7 +5587,7 @@ function useOverlayAccessibility(active, containerRef, {
|
|
|
5490
5587
|
}
|
|
5491
5588
|
|
|
5492
5589
|
// ../../components/Dialog/Dialog.module.css
|
|
5493
|
-
var Dialog_default = {"
|
|
5590
|
+
var Dialog_default = {"dialogIn":"opus_sz-ZGI_dialogIn","backdropOut":"opus_sz-ZGI_backdropOut","icon":"opus_sz-ZGI_icon","visuallyHidden":"opus_sz-ZGI_visuallyHidden","body":"opus_sz-ZGI_body","description":"opus_sz-ZGI_description","backdrop":"opus_sz-ZGI_backdrop","dialogOut":"opus_sz-ZGI_dialogOut","dialog":"opus_sz-ZGI_dialog","backdropIn":"opus_sz-ZGI_backdropIn","actions":"opus_sz-ZGI_actions","iconSvg":"opus_sz-ZGI_iconSvg","iconMark":"opus_sz-ZGI_iconMark","title":"opus_sz-ZGI_title","content":"opus_sz-ZGI_content"};
|
|
5494
5591
|
|
|
5495
5592
|
// ../../components/Dialog/Dialog.tsx
|
|
5496
5593
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
@@ -5621,7 +5718,7 @@ function Dialog({
|
|
|
5621
5718
|
var import_react24 = require("react");
|
|
5622
5719
|
|
|
5623
5720
|
// ../../components/Modal/Modal.module.css
|
|
5624
|
-
var Modal_default = {"
|
|
5721
|
+
var Modal_default = {"modalBackdropIn":"opus_LQbzGS_modalBackdropIn","backdrop":"opus_LQbzGS_backdrop","modal":"opus_LQbzGS_modal","title":"opus_LQbzGS_title","body":"opus_LQbzGS_body","heading":"opus_LQbzGS_heading","modalBackdropOut":"opus_LQbzGS_modalBackdropOut","actions":"opus_LQbzGS_actions","close":"opus_LQbzGS_close","modalPanelIn":"opus_LQbzGS_modalPanelIn","modalPanelOut":"opus_LQbzGS_modalPanelOut","description":"opus_LQbzGS_description","footer":"opus_LQbzGS_footer","header":"opus_LQbzGS_header","footerContent":"opus_LQbzGS_footerContent","closeIcon":"opus_LQbzGS_closeIcon"};
|
|
5625
5722
|
|
|
5626
5723
|
// ../../components/Modal/Modal.tsx
|
|
5627
5724
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
@@ -5752,7 +5849,7 @@ function ModalDefaultActions({ onClose }) {
|
|
|
5752
5849
|
var import_react25 = require("react");
|
|
5753
5850
|
|
|
5754
5851
|
// ../../components/Drawer/Drawer.module.css
|
|
5755
|
-
var Drawer_default = {"
|
|
5852
|
+
var Drawer_default = {"drawerBackdropOut":"opus_0CaGbZ_drawerBackdropOut","footerContent":"opus_0CaGbZ_footerContent","backdrop":"opus_0CaGbZ_backdrop","drawerOutTop":"opus_0CaGbZ_drawerOutTop","drawerInBottom":"opus_0CaGbZ_drawerInBottom","drawerOutRight":"opus_0CaGbZ_drawerOutRight","drawerOutLeft":"opus_0CaGbZ_drawerOutLeft","header":"opus_0CaGbZ_header","title":"opus_0CaGbZ_title","body":"opus_0CaGbZ_body","drawerInTop":"opus_0CaGbZ_drawerInTop","footer":"opus_0CaGbZ_footer","actions":"opus_0CaGbZ_actions","description":"opus_0CaGbZ_description","heading":"opus_0CaGbZ_heading","drawerOutBottom":"opus_0CaGbZ_drawerOutBottom","drawerBackdropIn":"opus_0CaGbZ_drawerBackdropIn","drawerInLeft":"opus_0CaGbZ_drawerInLeft","drawer":"opus_0CaGbZ_drawer","close":"opus_0CaGbZ_close","drawerInRight":"opus_0CaGbZ_drawerInRight","closeIcon":"opus_0CaGbZ_closeIcon"};
|
|
5756
5853
|
|
|
5757
5854
|
// ../../components/Drawer/Drawer.tsx
|
|
5758
5855
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
@@ -5884,7 +5981,7 @@ function DrawerDefaultActions({ onClose }) {
|
|
|
5884
5981
|
var import_react26 = require("react");
|
|
5885
5982
|
|
|
5886
5983
|
// ../../components/Popover/Popover.module.css
|
|
5887
|
-
var Popover_default = {"
|
|
5984
|
+
var Popover_default = {"popoverIn":"opus_yq4OU0_popoverIn","panel":"opus_yq4OU0_panel","root":"opus_yq4OU0_root","title":"opus_yq4OU0_title","content":"opus_yq4OU0_content","arrow":"opus_yq4OU0_arrow"};
|
|
5888
5985
|
|
|
5889
5986
|
// ../../components/Popover/Popover.tsx
|
|
5890
5987
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
@@ -6027,9 +6124,9 @@ function resolveEmojiPickerPortalStyle(anchorRect, panelRect, placement) {
|
|
|
6027
6124
|
);
|
|
6028
6125
|
return { left, top, width: panelWidth };
|
|
6029
6126
|
}
|
|
6030
|
-
function resolveDropdownPortalStyle(anchorRect, menuRect, placement, elevated) {
|
|
6127
|
+
function resolveDropdownPortalStyle(anchorRect, menuRect, placement, elevated, gapOverride) {
|
|
6031
6128
|
var _a2, _b2;
|
|
6032
|
-
const gap = elevated ? 6 : 8;
|
|
6129
|
+
const gap = gapOverride != null ? gapOverride : elevated ? 6 : 8;
|
|
6033
6130
|
const menuWidth = (_a2 = menuRect == null ? void 0 : menuRect.width) != null ? _a2 : Math.min(260, window.innerWidth - 32);
|
|
6034
6131
|
const menuHeight = (_b2 = menuRect == null ? void 0 : menuRect.height) != null ? _b2 : 0;
|
|
6035
6132
|
switch (placement) {
|
|
@@ -6058,7 +6155,7 @@ function resolveMegaMenuPortalStyle(root, inTopNavigation) {
|
|
|
6058
6155
|
}
|
|
6059
6156
|
|
|
6060
6157
|
// ../../components/MegaMenu/MegaMenu.module.css
|
|
6061
|
-
var MegaMenu_default = {"
|
|
6158
|
+
var MegaMenu_default = {"menuBar":"opus_Y_ikQV_menuBar","sections":"opus_Y_ikQV_sections","root":"opus_Y_ikQV_root","eyebrow":"opus_Y_ikQV_eyebrow","panel":"opus_Y_ikQV_panel","items":"opus_Y_ikQV_items","trigger":"opus_Y_ikQV_trigger","megaMenuIn":"opus_Y_ikQV_megaMenuIn","featured":"opus_Y_ikQV_featured","megaMenuOut":"opus_Y_ikQV_megaMenuOut","section":"opus_Y_ikQV_section","item":"opus_Y_ikQV_item","featuredAction":"opus_Y_ikQV_featuredAction","panelContent":"opus_Y_ikQV_panelContent","itemCopy":"opus_Y_ikQV_itemCopy","itemIcon":"opus_Y_ikQV_itemIcon"};
|
|
6062
6159
|
|
|
6063
6160
|
// ../../components/MegaMenu/MegaMenu.tsx
|
|
6064
6161
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
@@ -6520,7 +6617,7 @@ function MegaMenu({
|
|
|
6520
6617
|
}
|
|
6521
6618
|
|
|
6522
6619
|
// ../../components/TopNavigation/TopNavigation.module.css
|
|
6523
|
-
var TopNavigation_default = {"menuTrigger":"opus_OIomR6_menuTrigger","bar":"opus_OIomR6_bar","
|
|
6620
|
+
var TopNavigation_default = {"menuSlotMega":"opus_OIomR6_menuSlotMega","menuTrigger":"opus_OIomR6_menuTrigger","bar":"opus_OIomR6_bar","nav":"opus_OIomR6_nav","menuSlot":"opus_OIomR6_menuSlot"};
|
|
6524
6621
|
|
|
6525
6622
|
// ../../components/TopNavigation/TopNavigation.tsx
|
|
6526
6623
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
@@ -6877,7 +6974,7 @@ function handleMenuKeyDown(event, menu, onEscape) {
|
|
|
6877
6974
|
}
|
|
6878
6975
|
|
|
6879
6976
|
// ../../components/DropdownMenu/DropdownMenu.module.css
|
|
6880
|
-
var DropdownMenu_default = {"
|
|
6977
|
+
var DropdownMenu_default = {"label":"opus_UUVDVQ_label","pointer":"opus_UUVDVQ_pointer","dropdownIn":"opus_UUVDVQ_dropdownIn","shortcut":"opus_UUVDVQ_shortcut","dropdownOut":"opus_UUVDVQ_dropdownOut","icon":"opus_UUVDVQ_icon","item":"opus_UUVDVQ_item","root":"opus_UUVDVQ_root","menu":"opus_UUVDVQ_menu"};
|
|
6881
6978
|
|
|
6882
6979
|
// ../../components/DropdownMenu/DropdownMenu.tsx
|
|
6883
6980
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
@@ -6957,6 +7054,8 @@ function DropdownMenu({
|
|
|
6957
7054
|
open,
|
|
6958
7055
|
openOnHover = false,
|
|
6959
7056
|
placement = "bottom-start",
|
|
7057
|
+
showPointer = false,
|
|
7058
|
+
triggerGap,
|
|
6960
7059
|
trigger
|
|
6961
7060
|
}) {
|
|
6962
7061
|
const menuId = (0, import_react30.useId)();
|
|
@@ -6982,6 +7081,12 @@ function DropdownMenu({
|
|
|
6982
7081
|
const resolvedElevated = elevated || inTopNavigation;
|
|
6983
7082
|
const dismissOnOutside = openOnHover ? false : resolvedCloseOnOutside;
|
|
6984
7083
|
const disableClickToggle = openOnHover;
|
|
7084
|
+
const resolvedTriggerGap = Math.min(
|
|
7085
|
+
16,
|
|
7086
|
+
Math.max(0, triggerGap != null ? triggerGap : 8)
|
|
7087
|
+
);
|
|
7088
|
+
const pointerExtent = placement === "bottom-start" ? 9.5 : 9;
|
|
7089
|
+
const portalGap = showPointer ? pointerExtent + resolvedTriggerGap : resolvedTriggerGap;
|
|
6985
7090
|
const setVisible = (0, import_react30.useCallback)((nextOpen) => {
|
|
6986
7091
|
if (!controlled) {
|
|
6987
7092
|
setInternalOpen(nextOpen);
|
|
@@ -7041,18 +7146,27 @@ function DropdownMenu({
|
|
|
7041
7146
|
anchor.getBoundingClientRect(),
|
|
7042
7147
|
(_b2 = (_a2 = menuRef.current) == null ? void 0 : _a2.getBoundingClientRect()) != null ? _b2 : null,
|
|
7043
7148
|
placement,
|
|
7044
|
-
resolvedElevated
|
|
7149
|
+
resolvedElevated,
|
|
7150
|
+
portalGap
|
|
7045
7151
|
)
|
|
7046
7152
|
);
|
|
7047
7153
|
};
|
|
7048
7154
|
updatePosition();
|
|
7155
|
+
const frame = window.requestAnimationFrame(updatePosition);
|
|
7156
|
+
const resizeObserver = new ResizeObserver(updatePosition);
|
|
7157
|
+
resizeObserver.observe(rootRef.current);
|
|
7158
|
+
if (menuRef.current) {
|
|
7159
|
+
resizeObserver.observe(menuRef.current);
|
|
7160
|
+
}
|
|
7049
7161
|
window.addEventListener("resize", updatePosition);
|
|
7050
7162
|
window.addEventListener("scroll", updatePosition, true);
|
|
7051
7163
|
return () => {
|
|
7164
|
+
window.cancelAnimationFrame(frame);
|
|
7165
|
+
resizeObserver.disconnect();
|
|
7052
7166
|
window.removeEventListener("resize", updatePosition);
|
|
7053
7167
|
window.removeEventListener("scroll", updatePosition, true);
|
|
7054
7168
|
};
|
|
7055
|
-
}, [placement, renderMenu, resolvedElevated, phase]);
|
|
7169
|
+
}, [placement, portalGap, renderMenu, resolvedElevated, phase]);
|
|
7056
7170
|
(0, import_react30.useEffect)(() => {
|
|
7057
7171
|
let timeout;
|
|
7058
7172
|
const frame = window.requestAnimationFrame(() => {
|
|
@@ -7130,7 +7244,7 @@ function DropdownMenu({
|
|
|
7130
7244
|
left: portalStyle.left,
|
|
7131
7245
|
top: portalStyle.top
|
|
7132
7246
|
}, portalStyle.width ? { width: portalStyle.width } : {}) : {});
|
|
7133
|
-
const menuNode = renderMenu ? /* @__PURE__ */ (0, import_jsx_runtime44.
|
|
7247
|
+
const menuNode = renderMenu ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
7134
7248
|
"span",
|
|
7135
7249
|
{
|
|
7136
7250
|
ref: menuRef,
|
|
@@ -7140,6 +7254,7 @@ function DropdownMenu({
|
|
|
7140
7254
|
"data-open-on-hover": openOnHover || resolvedElevated ? "true" : void 0,
|
|
7141
7255
|
"data-has-icon-column": showIconColumn ? "true" : void 0,
|
|
7142
7256
|
"data-placement": placement,
|
|
7257
|
+
"data-show-pointer": showPointer ? "true" : void 0,
|
|
7143
7258
|
"data-portaled": "true",
|
|
7144
7259
|
"data-theme": theme,
|
|
7145
7260
|
id: menuId,
|
|
@@ -7148,15 +7263,45 @@ function DropdownMenu({
|
|
|
7148
7263
|
onKeyDown: (event) => {
|
|
7149
7264
|
handleMenuKeyDown(event.nativeEvent, event.currentTarget, () => setVisible(false));
|
|
7150
7265
|
},
|
|
7151
|
-
children:
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7266
|
+
children: [
|
|
7267
|
+
showPointer ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
7268
|
+
"svg",
|
|
7269
|
+
{
|
|
7270
|
+
"aria-hidden": "true",
|
|
7271
|
+
className: DropdownMenu_default.pointer,
|
|
7272
|
+
focusable: "false",
|
|
7273
|
+
viewBox: "0 0 18 10",
|
|
7274
|
+
children: [
|
|
7275
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
7276
|
+
"path",
|
|
7277
|
+
{
|
|
7278
|
+
d: "M0 10 L9 0 L18 10 Z",
|
|
7279
|
+
fill: "var(--opus-pointed-menu-surface)"
|
|
7280
|
+
}
|
|
7281
|
+
),
|
|
7282
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
7283
|
+
"path",
|
|
7284
|
+
{
|
|
7285
|
+
d: "M0 10 L9 0 L18 10",
|
|
7286
|
+
fill: "none",
|
|
7287
|
+
stroke: "var(--opus-menu-glass-border)",
|
|
7288
|
+
strokeWidth: "1",
|
|
7289
|
+
vectorEffect: "non-scaling-stroke"
|
|
7290
|
+
}
|
|
7291
|
+
)
|
|
7292
|
+
]
|
|
7293
|
+
}
|
|
7294
|
+
) : null,
|
|
7295
|
+
items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
7296
|
+
DropdownMenuItem,
|
|
7297
|
+
{
|
|
7298
|
+
item,
|
|
7299
|
+
showIconColumn,
|
|
7300
|
+
onSelect: handleSelect
|
|
7301
|
+
},
|
|
7302
|
+
item.id
|
|
7303
|
+
))
|
|
7304
|
+
]
|
|
7160
7305
|
}
|
|
7161
7306
|
) : null;
|
|
7162
7307
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
@@ -7208,7 +7353,7 @@ var import_react31 = require("react");
|
|
|
7208
7353
|
var import_react_dom5 = require("react-dom");
|
|
7209
7354
|
|
|
7210
7355
|
// ../../components/ContextMenu/ContextMenu.module.css
|
|
7211
|
-
var ContextMenu_default = {"
|
|
7356
|
+
var ContextMenu_default = {"contextMenuBackdropIn":"opus_nMhhae_contextMenuBackdropIn","layer":"opus_nMhhae_layer","contextMenuIn":"opus_nMhhae_contextMenuIn","target":"opus_nMhhae_target","backdrop":"opus_nMhhae_backdrop","menu":"opus_nMhhae_menu"};
|
|
7212
7357
|
|
|
7213
7358
|
// ../../components/ContextMenu/ContextMenuProvider.tsx
|
|
7214
7359
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
@@ -7515,7 +7660,7 @@ var import_free_solid_svg_icons7 = require("@fortawesome/free-solid-svg-icons");
|
|
|
7515
7660
|
var import_react_fontawesome7 = require("@fortawesome/react-fontawesome");
|
|
7516
7661
|
|
|
7517
7662
|
// ../../components/CommandPalette/CommandPalette.module.css
|
|
7518
|
-
var CommandPalette_default = {"
|
|
7663
|
+
var CommandPalette_default = {"shortcut":"opus_k1ypuy_shortcut","item":"opus_k1ypuy_item","commandPalettePanelOut":"opus_k1ypuy_commandPalettePanelOut","commandPalettePanelIn":"opus_k1ypuy_commandPalettePanelIn","searchWrap":"opus_k1ypuy_searchWrap","searchIcon":"opus_k1ypuy_searchIcon","backdrop":"opus_k1ypuy_backdrop","itemLabel":"opus_k1ypuy_itemLabel","itemDescription":"opus_k1ypuy_itemDescription","group":"opus_k1ypuy_group","panel":"opus_k1ypuy_panel","results":"opus_k1ypuy_results","searchIconSvg":"opus_k1ypuy_searchIconSvg","empty":"opus_k1ypuy_empty","visuallyHidden":"opus_k1ypuy_visuallyHidden","commandPaletteBackdropOut":"opus_k1ypuy_commandPaletteBackdropOut","commandPaletteBackdropIn":"opus_k1ypuy_commandPaletteBackdropIn","searchInput":"opus_k1ypuy_searchInput","groupLabel":"opus_k1ypuy_groupLabel","footer":"opus_k1ypuy_footer","itemMain":"opus_k1ypuy_itemMain"};
|
|
7519
7664
|
|
|
7520
7665
|
// ../../components/CommandPalette/CommandPalette.tsx
|
|
7521
7666
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
@@ -7851,7 +7996,7 @@ function AccordionGroup({
|
|
|
7851
7996
|
}
|
|
7852
7997
|
|
|
7853
7998
|
// ../../components/Accordion/Accordion.module.css
|
|
7854
|
-
var Accordion_default = {"
|
|
7999
|
+
var Accordion_default = {"panelInner":"opus_WNZQMV_panelInner","item":"opus_WNZQMV_item","triggerLabel":"opus_WNZQMV_triggerLabel","panel":"opus_WNZQMV_panel","chevron":"opus_WNZQMV_chevron","trigger":"opus_WNZQMV_trigger","standalone":"opus_WNZQMV_standalone","content":"opus_WNZQMV_content"};
|
|
7855
8000
|
|
|
7856
8001
|
// ../../components/Accordion/Accordion.tsx
|
|
7857
8002
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
@@ -7938,7 +8083,7 @@ function Accordion({
|
|
|
7938
8083
|
var import_react35 = require("react");
|
|
7939
8084
|
|
|
7940
8085
|
// ../../components/ShowMore/ShowMore.module.css
|
|
7941
|
-
var ShowMore_default = {"
|
|
8086
|
+
var ShowMore_default = {"root":"opus_dSk-ve_root","toggle":"opus_dSk-ve_toggle","toggleLabel":"opus_dSk-ve_toggleLabel","chevron":"opus_dSk-ve_chevron","showMoreLabelIn":"opus_dSk-ve_showMoreLabelIn","contentShell":"opus_dSk-ve_contentShell","inner":"opus_dSk-ve_inner"};
|
|
7942
8087
|
|
|
7943
8088
|
// ../../components/ShowMore/ShowMore.tsx
|
|
7944
8089
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
@@ -8042,7 +8187,7 @@ function ShowMore({
|
|
|
8042
8187
|
}
|
|
8043
8188
|
|
|
8044
8189
|
// ../../components/Toast/Toast.module.css
|
|
8045
|
-
var Toast_default = {"
|
|
8190
|
+
var Toast_default = {"main":"opus_cklQPW_main","dismiss":"opus_cklQPW_dismiss","progressBar":"opus_cklQPW_progressBar","content":"opus_cklQPW_content","iconMark":"opus_cklQPW_iconMark","iconSvg":"opus_cklQPW_iconSvg","icon":"opus_cklQPW_icon","description":"opus_cklQPW_description","body":"opus_cklQPW_body","progressTrack":"opus_cklQPW_progressTrack","dismissIcon":"opus_cklQPW_dismissIcon","toastProgress":"opus_cklQPW_toastProgress","title":"opus_cklQPW_title","toast":"opus_cklQPW_toast"};
|
|
8046
8191
|
|
|
8047
8192
|
// ../../components/Toast/Toast.tsx
|
|
8048
8193
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -8114,7 +8259,7 @@ function Toast({
|
|
|
8114
8259
|
var import_react36 = require("react");
|
|
8115
8260
|
|
|
8116
8261
|
// ../../components/ToastProvider/ToastProvider.module.css
|
|
8117
|
-
var ToastProvider_default = {"
|
|
8262
|
+
var ToastProvider_default = {"viewportBottom":"opus_z3pSp7_viewportBottom","itemSurface":"opus_z3pSp7_itemSurface","viewportRight":"opus_z3pSp7_viewportRight","viewportLeft":"opus_z3pSp7_viewportLeft","viewportTop":"opus_z3pSp7_viewportTop","item":"opus_z3pSp7_item","viewport":"opus_z3pSp7_viewport","itemBackdrop":"opus_z3pSp7_itemBackdrop","itemClip":"opus_z3pSp7_itemClip"};
|
|
8118
8263
|
|
|
8119
8264
|
// ../../components/ToastProvider/ToastProvider.tsx
|
|
8120
8265
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
@@ -8501,7 +8646,7 @@ function TabActiveLine({ className, orientation = "horizontal", style }) {
|
|
|
8501
8646
|
}
|
|
8502
8647
|
|
|
8503
8648
|
// ../../components/Tabs/Tabs.module.css
|
|
8504
|
-
var Tabs_default = {"
|
|
8649
|
+
var Tabs_default = {"cardMovingActiveLine":"opus_ADVJmy_cardMovingActiveLine","tabShape":"opus_ADVJmy_tabShape","nextButton":"opus_ADVJmy_nextButton","list":"opus_ADVJmy_list","tabLabel":"opus_ADVJmy_tabLabel","panel":"opus_ADVJmy_panel","header":"opus_ADVJmy_header","movingActiveLine":"opus_ADVJmy_movingActiveLine","previousButton":"opus_ADVJmy_previousButton","containedMovingActiveLine":"opus_ADVJmy_containedMovingActiveLine","tab":"opus_ADVJmy_tab","panelContent":"opus_ADVJmy_panelContent","root":"opus_ADVJmy_root","listViewport":"opus_ADVJmy_listViewport","scrollButton":"opus_ADVJmy_scrollButton","trailing":"opus_ADVJmy_trailing","cardTabLine":"opus_ADVJmy_cardTabLine"};
|
|
8505
8650
|
|
|
8506
8651
|
// ../../components/Tabs/Tabs.tsx
|
|
8507
8652
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
@@ -8825,7 +8970,7 @@ function Tabs({
|
|
|
8825
8970
|
id: panelId,
|
|
8826
8971
|
inert: !selected ? true : void 0,
|
|
8827
8972
|
role: "tabpanel",
|
|
8828
|
-
tabIndex: selected ?
|
|
8973
|
+
tabIndex: selected ? 0 : void 0,
|
|
8829
8974
|
children: item.content
|
|
8830
8975
|
},
|
|
8831
8976
|
item.value
|
|
@@ -8838,7 +8983,7 @@ function Tabs({
|
|
|
8838
8983
|
id: `${generatedId}-${activeItem.value}-panel`,
|
|
8839
8984
|
ref: panelRef,
|
|
8840
8985
|
role: "tabpanel",
|
|
8841
|
-
tabIndex:
|
|
8986
|
+
tabIndex: 0,
|
|
8842
8987
|
children: activeItem.content
|
|
8843
8988
|
}
|
|
8844
8989
|
) : null
|
|
@@ -8848,7 +8993,7 @@ function Tabs({
|
|
|
8848
8993
|
}
|
|
8849
8994
|
|
|
8850
8995
|
// ../../components/Card/Card.module.css
|
|
8851
|
-
var Card_default = {"
|
|
8996
|
+
var Card_default = {"eyebrow":"opus_qWo1sP_eyebrow","title":"opus_qWo1sP_title","media":"opus_qWo1sP_media","card":"opus_qWo1sP_card","content":"opus_qWo1sP_content","body":"opus_qWo1sP_body","actions":"opus_qWo1sP_actions","footerContent":"opus_qWo1sP_footerContent","heading":"opus_qWo1sP_heading","footer":"opus_qWo1sP_footer"};
|
|
8852
8997
|
|
|
8853
8998
|
// ../../components/Card/Card.tsx
|
|
8854
8999
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
@@ -8879,7 +9024,7 @@ function Card({
|
|
|
8879
9024
|
}
|
|
8880
9025
|
|
|
8881
9026
|
// ../../components/dashboardMetricCardLayout/dashboardMetricCardLayout.module.css
|
|
8882
|
-
var dashboardMetricCardLayout_default = {"
|
|
9027
|
+
var dashboardMetricCardLayout_default = {"header":"opus_6_sptY_header","metaPlaceholder":"opus_6_sptY_metaPlaceholder","label":"opus_6_sptY_label","iconSlot":"opus_6_sptY_iconSlot","iconPlaceholder":"opus_6_sptY_iconPlaceholder","shell":"opus_6_sptY_shell","value":"opus_6_sptY_value","metaSlot":"opus_6_sptY_metaSlot"};
|
|
8883
9028
|
|
|
8884
9029
|
// ../../components/StatCard/StatCard.module.css
|
|
8885
9030
|
var StatCard_default = {"change":"opus_KIXsQY_change"};
|
|
@@ -8909,7 +9054,7 @@ function StatCard({
|
|
|
8909
9054
|
}
|
|
8910
9055
|
|
|
8911
9056
|
// ../../components/Gauge/Gauge.module.css
|
|
8912
|
-
var Gauge_default = {"
|
|
9057
|
+
var Gauge_default = {"gaugeValue":"opus_t6IuQe_gaugeValue","subtitle":"opus_t6IuQe_subtitle","gaugeSlot":"opus_t6IuQe_gaugeSlot","footerTrend":"opus_t6IuQe_footerTrend","footerLabel":"opus_t6IuQe_footerLabel","header":"opus_t6IuQe_header","heading":"opus_t6IuQe_heading","gaugeTrack":"opus_t6IuQe_gaugeTrack","gaugeCenter":"opus_t6IuQe_gaugeCenter","title":"opus_t6IuQe_title","change":"opus_t6IuQe_change","gauge":"opus_t6IuQe_gauge","gaugeSvg":"opus_t6IuQe_gaugeSvg","footerValue":"opus_t6IuQe_footerValue","footerItem":"opus_t6IuQe_footerItem","summary":"opus_t6IuQe_summary","widget":"opus_t6IuQe_widget","body":"opus_t6IuQe_body","footer":"opus_t6IuQe_footer"};
|
|
8913
9058
|
|
|
8914
9059
|
// ../../components/Gauge/Gauge.tsx
|
|
8915
9060
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
@@ -9043,7 +9188,7 @@ function Gauge({
|
|
|
9043
9188
|
var import_react38 = require("react");
|
|
9044
9189
|
|
|
9045
9190
|
// ../../components/Sparkline/Sparkline.module.css
|
|
9046
|
-
var Sparkline_default = {"sparkline":"opus_xXtB87_sparkline","
|
|
9191
|
+
var Sparkline_default = {"sparkline":"opus_xXtB87_sparkline","line":"opus_xXtB87_line","area":"opus_xXtB87_area","chart":"opus_xXtB87_chart","endPoint":"opus_xXtB87_endPoint","svg":"opus_xXtB87_svg","label":"opus_xXtB87_label"};
|
|
9047
9192
|
|
|
9048
9193
|
// ../../components/Sparkline/Sparkline.tsx
|
|
9049
9194
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
@@ -9110,7 +9255,7 @@ function Sparkline({
|
|
|
9110
9255
|
}
|
|
9111
9256
|
|
|
9112
9257
|
// ../../components/ProgressRing/ProgressRing.module.css
|
|
9113
|
-
var ProgressRing_default = {"
|
|
9258
|
+
var ProgressRing_default = {"svg":"opus_YxX6Hh_svg","value":"opus_YxX6Hh_value","track":"opus_YxX6Hh_track","ring":"opus_YxX6Hh_ring","center":"opus_YxX6Hh_center"};
|
|
9114
9259
|
|
|
9115
9260
|
// ../../components/ProgressRing/ProgressRing.tsx
|
|
9116
9261
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
@@ -9143,7 +9288,7 @@ function ProgressRing({ label, max = 100, value }) {
|
|
|
9143
9288
|
}
|
|
9144
9289
|
|
|
9145
9290
|
// ../../components/ProgressBar/ProgressBar.module.css
|
|
9146
|
-
var ProgressBar_default = {"
|
|
9291
|
+
var ProgressBar_default = {"bar":"opus_q04AvA_bar","label":"opus_q04AvA_label","value":"opus_q04AvA_value","header":"opus_q04AvA_header","track":"opus_q04AvA_track","fill":"opus_q04AvA_fill"};
|
|
9147
9292
|
|
|
9148
9293
|
// ../../components/ProgressBar/ProgressBar.tsx
|
|
9149
9294
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
@@ -9163,7 +9308,7 @@ function ProgressBar({ label, max = 100, value }) {
|
|
|
9163
9308
|
}
|
|
9164
9309
|
|
|
9165
9310
|
// ../../components/Speedometer/Speedometer.module.css
|
|
9166
|
-
var Speedometer_default = {"
|
|
9311
|
+
var Speedometer_default = {"center":"opus__jpB7z_center","svg":"opus__jpB7z_svg","track":"opus__jpB7z_track","needle":"opus__jpB7z_needle","speedometer":"opus__jpB7z_speedometer","value":"opus__jpB7z_value","hub":"opus__jpB7z_hub"};
|
|
9167
9312
|
|
|
9168
9313
|
// ../../components/Speedometer/Speedometer.tsx
|
|
9169
9314
|
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
@@ -9196,7 +9341,7 @@ function Speedometer({ label, max = 100, value }) {
|
|
|
9196
9341
|
}
|
|
9197
9342
|
|
|
9198
9343
|
// ../../components/MetricTile/MetricTile.module.css
|
|
9199
|
-
var MetricTile_default = {"
|
|
9344
|
+
var MetricTile_default = {"tile":"opus_-dz9KL_tile","topRow":"opus_-dz9KL_topRow","sparklineSlot":"opus_-dz9KL_sparklineSlot"};
|
|
9200
9345
|
|
|
9201
9346
|
// ../../components/MetricTile/MetricTile.tsx
|
|
9202
9347
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
@@ -9217,7 +9362,7 @@ var import_react39 = require("react");
|
|
|
9217
9362
|
var import_maplibre_gl = require("maplibre-gl/dist/maplibre-gl.css");
|
|
9218
9363
|
|
|
9219
9364
|
// ../../components/Map/Map.module.css
|
|
9220
|
-
var Map_default = {"
|
|
9365
|
+
var Map_default = {"searchResults":"opus_srL77d_searchResults","shell":"opus_srL77d_shell","address":"opus_srL77d_address","searchStatus":"opus_srL77d_searchStatus","hotspotDot":"opus_srL77d_hotspotDot","popupContent":"opus_srL77d_popupContent","hotspots":"opus_srL77d_hotspots","mapFrame":"opus_srL77d_mapFrame","content":"opus_srL77d_content","coordinates":"opus_srL77d_coordinates","map":"opus_srL77d_map","search":"opus_srL77d_search","atmosphere":"opus_srL77d_atmosphere","marker":"opus_srL77d_marker"};
|
|
9221
9366
|
|
|
9222
9367
|
// ../../components/Map/Map.tsx
|
|
9223
9368
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
@@ -9690,11 +9835,12 @@ function TrendBadge({ direction, value }) {
|
|
|
9690
9835
|
var import_react41 = require("react");
|
|
9691
9836
|
|
|
9692
9837
|
// ../../components/Badge/Badge.module.css
|
|
9693
|
-
var Badge_default = {"dot":"opus_1GJHzl_dot","badge":"opus_1GJHzl_badge"};
|
|
9838
|
+
var Badge_default = {"count":"opus_1GJHzl_count","dot":"opus_1GJHzl_dot","badge":"opus_1GJHzl_badge"};
|
|
9694
9839
|
|
|
9695
9840
|
// ../../components/Badge/Badge.tsx
|
|
9696
9841
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
9697
9842
|
function Badge({
|
|
9843
|
+
count,
|
|
9698
9844
|
dot = false,
|
|
9699
9845
|
label,
|
|
9700
9846
|
size = "md",
|
|
@@ -9703,12 +9849,13 @@ function Badge({
|
|
|
9703
9849
|
}) {
|
|
9704
9850
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: Badge_default.badge, "data-size": size, "data-tone": tone, "data-variant": variant, children: [
|
|
9705
9851
|
dot ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { "aria-hidden": "true", className: Badge_default.dot }) : null,
|
|
9706
|
-
label
|
|
9852
|
+
label,
|
|
9853
|
+
count === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: Badge_default.count, children: count })
|
|
9707
9854
|
] });
|
|
9708
9855
|
}
|
|
9709
9856
|
|
|
9710
9857
|
// ../../components/DashboardContentContainer/DashboardContentContainer.module.css
|
|
9711
|
-
var DashboardContentContainer_default = {"
|
|
9858
|
+
var DashboardContentContainer_default = {"container":"opus_myuwZ6_container","title":"opus_myuwZ6_title"};
|
|
9712
9859
|
|
|
9713
9860
|
// ../../components/DashboardContentContainer/DashboardContentContainer.tsx
|
|
9714
9861
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
@@ -9747,7 +9894,7 @@ function DashboardContentContainer({
|
|
|
9747
9894
|
var import_react40 = require("react");
|
|
9748
9895
|
|
|
9749
9896
|
// ../../components/TreeMenu/TreeMenu.module.css
|
|
9750
|
-
var TreeMenu_default = {"
|
|
9897
|
+
var TreeMenu_default = {"label":"opus_RUNNkf_label","tree":"opus_RUNNkf_tree","item":"opus_RUNNkf_item","icon":"opus_RUNNkf_icon","row":"opus_RUNNkf_row","node":"opus_RUNNkf_node","meta":"opus_RUNNkf_meta","toggleSpacer":"opus_RUNNkf_toggleSpacer","toggle":"opus_RUNNkf_toggle","children":"opus_RUNNkf_children"};
|
|
9751
9898
|
|
|
9752
9899
|
// ../../components/TreeMenu/TreeMenu.tsx
|
|
9753
9900
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
@@ -9774,17 +9921,23 @@ function TreeMenuBranch({
|
|
|
9774
9921
|
role: "treeitem",
|
|
9775
9922
|
children: [
|
|
9776
9923
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: TreeMenu_default.row, "data-selected": selected ? "true" : void 0, children: [
|
|
9777
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
9924
|
+
hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
9778
9925
|
"button",
|
|
9779
9926
|
{
|
|
9780
|
-
"aria-label":
|
|
9927
|
+
"aria-label": `${isExpanded ? "Collapse" : "Expand"} ${node.label}`,
|
|
9781
9928
|
className: TreeMenu_default.toggle,
|
|
9782
|
-
disabled:
|
|
9929
|
+
disabled: node.disabled,
|
|
9783
9930
|
onClick: () => onToggle(node),
|
|
9784
9931
|
style: { marginLeft: depth * indent },
|
|
9785
|
-
tabIndex: hasChildren ? 0 : -1,
|
|
9786
9932
|
type: "button",
|
|
9787
|
-
children:
|
|
9933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CatalogIcon, { iconName: isExpanded ? "chevron-down" : "chevron-right" })
|
|
9934
|
+
}
|
|
9935
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
9936
|
+
"span",
|
|
9937
|
+
{
|
|
9938
|
+
"aria-hidden": "true",
|
|
9939
|
+
className: TreeMenu_default.toggleSpacer,
|
|
9940
|
+
style: { marginLeft: depth * indent }
|
|
9788
9941
|
}
|
|
9789
9942
|
),
|
|
9790
9943
|
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
@@ -9883,7 +10036,7 @@ function TreeMenu({
|
|
|
9883
10036
|
}
|
|
9884
10037
|
|
|
9885
10038
|
// ../../components/CrmWorkspaceLab/CrmWorkspaceLab.module.css
|
|
9886
|
-
var CrmWorkspaceLab_default = {"
|
|
10039
|
+
var CrmWorkspaceLab_default = {"docColumnHeading":"opus_7Zs_d5_docColumnHeading","boardCardHeader":"opus_7Zs_d5_boardCardHeader","breadcrumb":"opus_7Zs_d5_breadcrumb","openChevron":"opus_7Zs_d5_openChevron","feedBadge":"opus_7Zs_d5_feedBadge","boardCard":"opus_7Zs_d5_boardCard","settingsRow":"opus_7Zs_d5_settingsRow","docGrid":"opus_7Zs_d5_docGrid","feedItem":"opus_7Zs_d5_feedItem","docBrowser":"opus_7Zs_d5_docBrowser","catalogueCard":"opus_7Zs_d5_catalogueCard","docCardHeader":"opus_7Zs_d5_docCardHeader","boardCards":"opus_7Zs_d5_boardCards","docCard":"opus_7Zs_d5_docCard","catalogueBody":"opus_7Zs_d5_catalogueBody","docListRow":"opus_7Zs_d5_docListRow","feedIcon":"opus_7Zs_d5_feedIcon","timelineTime":"opus_7Zs_d5_timelineTime","catalogueIcon":"opus_7Zs_d5_catalogueIcon","docEmpty":"opus_7Zs_d5_docEmpty","price":"opus_7Zs_d5_price","timeline":"opus_7Zs_d5_timeline","docColumnItem":"opus_7Zs_d5_docColumnItem","selectCell":"opus_7Zs_d5_selectCell","catalogue":"opus_7Zs_d5_catalogue","tableHead":"opus_7Zs_d5_tableHead","toolbar":"opus_7Zs_d5_toolbar","documents":"opus_7Zs_d5_documents","heading":"opus_7Zs_d5_heading","docTree":"opus_7Zs_d5_docTree","actionCell":"opus_7Zs_d5_actionCell","resultCount":"opus_7Zs_d5_resultCount","feedBody":"opus_7Zs_d5_feedBody","row":"opus_7Zs_d5_row","root":"opus_7Zs_d5_root","headingIcon":"opus_7Zs_d5_headingIcon","docColumn":"opus_7Zs_d5_docColumn","docTreeItem":"opus_7Zs_d5_docTreeItem","docList":"opus_7Zs_d5_docList","docCardIcon":"opus_7Zs_d5_docCardIcon","timelineBody":"opus_7Zs_d5_timelineBody","settings":"opus_7Zs_d5_settings","settingsIcon":"opus_7Zs_d5_settingsIcon","docListHeading":"opus_7Zs_d5_docListHeading","boardColumn":"opus_7Zs_d5_boardColumn","feed":"opus_7Zs_d5_feed","headerAction":"opus_7Zs_d5_headerAction","docColumnEmpty":"opus_7Zs_d5_docColumnEmpty","timelineTitleRow":"opus_7Zs_d5_timelineTitleRow","docViewOptions":"opus_7Zs_d5_docViewOptions","timelineIcon":"opus_7Zs_d5_timelineIcon","rowActionOverlay":"opus_7Zs_d5_rowActionOverlay","meta":"opus_7Zs_d5_meta","catalogueTitleRow":"opus_7Zs_d5_catalogueTitleRow","table":"opus_7Zs_d5_table","feedTitleRow":"opus_7Zs_d5_feedTitleRow","settingsBody":"opus_7Zs_d5_settingsBody","docColumns":"opus_7Zs_d5_docColumns","board":"opus_7Zs_d5_board","docListName":"opus_7Zs_d5_docListName","docToolbarControls":"opus_7Zs_d5_docToolbarControls","identity":"opus_7Zs_d5_identity","timelineCard":"opus_7Zs_d5_timelineCard","timelineItem":"opus_7Zs_d5_timelineItem","actionRow":"opus_7Zs_d5_actionRow","header":"opus_7Zs_d5_header","docToolbar":"opus_7Zs_d5_docToolbar","rowIcon":"opus_7Zs_d5_rowIcon","docTreeHeading":"opus_7Zs_d5_docTreeHeading","docViewButton":"opus_7Zs_d5_docViewButton"};
|
|
9887
10040
|
|
|
9888
10041
|
// ../../components/CrmWorkspaceLab/CrmWorkspaceLab.tsx
|
|
9889
10042
|
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
@@ -10227,7 +10380,7 @@ function DirectoryLayout({
|
|
|
10227
10380
|
filtered.map((row) => {
|
|
10228
10381
|
const checked = selected.includes(row.id);
|
|
10229
10382
|
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: `${CrmWorkspaceLab_default.row} ${CrmWorkspaceLab_default.actionRow}`, role: "row", children: [
|
|
10230
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
10383
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: CrmWorkspaceLab_default.selectCell, role: "cell", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
10231
10384
|
"input",
|
|
10232
10385
|
{
|
|
10233
10386
|
"aria-label": `Select ${row.primary}`,
|
|
@@ -10235,7 +10388,7 @@ function DirectoryLayout({
|
|
|
10235
10388
|
type: "checkbox",
|
|
10236
10389
|
onChange: () => onToggle(row.id)
|
|
10237
10390
|
}
|
|
10238
|
-
),
|
|
10391
|
+
) }),
|
|
10239
10392
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: CrmWorkspaceLab_default.identity, role: "cell", children: [
|
|
10240
10393
|
row.icon ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: CrmWorkspaceLab_default.rowIcon, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CatalogIcon, { iconName: row.icon }) }) : null,
|
|
10241
10394
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { children: [
|
|
@@ -10245,7 +10398,7 @@ function DirectoryLayout({
|
|
|
10245
10398
|
] }),
|
|
10246
10399
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { role: "cell", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Badge, { label: row.status, size: "sm", tone: statusTone(row.status) }) }),
|
|
10247
10400
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: CrmWorkspaceLab_default.meta, role: "cell", children: row.meta }),
|
|
10248
|
-
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
10401
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: CrmWorkspaceLab_default.actionCell, role: "cell", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
10249
10402
|
"button",
|
|
10250
10403
|
{
|
|
10251
10404
|
"aria-label": `Open ${row.primary}`,
|
|
@@ -10254,7 +10407,7 @@ function DirectoryLayout({
|
|
|
10254
10407
|
type: "button",
|
|
10255
10408
|
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(RowChevron, {})
|
|
10256
10409
|
}
|
|
10257
|
-
)
|
|
10410
|
+
) })
|
|
10258
10411
|
] }, row.id);
|
|
10259
10412
|
})
|
|
10260
10413
|
] })
|
|
@@ -10682,7 +10835,7 @@ function CrmWorkspaceLab({ variant, onAction }) {
|
|
|
10682
10835
|
var import_react42 = require("react");
|
|
10683
10836
|
|
|
10684
10837
|
// ../../components/fields/OtpField/OtpField.module.css
|
|
10685
|
-
var OtpField_default = {"
|
|
10838
|
+
var OtpField_default = {"input":"opus_7RMR7r_input","inputs":"opus_7RMR7r_inputs"};
|
|
10686
10839
|
|
|
10687
10840
|
// ../../components/fields/OtpField/OtpField.tsx
|
|
10688
10841
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
@@ -10756,7 +10909,7 @@ function OtpField({ error, help, id, label, labelPosition = "left", length = 6,
|
|
|
10756
10909
|
var import_react43 = require("react");
|
|
10757
10910
|
|
|
10758
10911
|
// ../../components/fields/AdvancedFields/AdvancedFields.module.css
|
|
10759
|
-
var AdvancedFields_default = {"
|
|
10912
|
+
var AdvancedFields_default = {"formSection":"opus_ymQ4nN_formSection","formHeaderEyebrow":"opus_ymQ4nN_formHeaderEyebrow","summary":"opus_ymQ4nN_summary","affixed":"opus_ymQ4nN_affixed","rangeGrid":"opus_ymQ4nN_rangeGrid","formHeaderDescription":"opus_ymQ4nN_formHeaderDescription","checkGroup":"opus_ymQ4nN_checkGroup","drop":"opus_ymQ4nN_drop","formHeaderTitle":"opus_ymQ4nN_formHeaderTitle","input":"opus_ymQ4nN_input","fileList":"opus_ymQ4nN_fileList","formHeaderCopy":"opus_ymQ4nN_formHeaderCopy","form":"opus_ymQ4nN_form","actions":"opus_ymQ4nN_actions","hidden":"opus_ymQ4nN_hidden","bareInput":"opus_ymQ4nN_bareInput","formHeader":"opus_ymQ4nN_formHeader","formHeaderActions":"opus_ymQ4nN_formHeaderActions"};
|
|
10760
10913
|
|
|
10761
10914
|
// ../../components/fields/AdvancedFields/AdvancedFields.tsx
|
|
10762
10915
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
@@ -10830,8 +10983,20 @@ function FormValidationSummary({ errors, title = "Please correct the following"
|
|
|
10830
10983
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("ul", { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("li", { children: error.fieldId ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("a", { href: `#${error.fieldId}`, children: error.message }) : error.message }, `${error.fieldId}-${index}`)) })
|
|
10831
10984
|
] });
|
|
10832
10985
|
}
|
|
10833
|
-
function Form(
|
|
10834
|
-
|
|
10986
|
+
function Form(_a2) {
|
|
10987
|
+
var _b2 = _a2, { children, className } = _b2, props = __objRest(_b2, ["children", "className"]);
|
|
10988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("form", __spreadProps(__spreadValues({}, props), { className: [AdvancedFields_default.form, className].filter(Boolean).join(" "), children }));
|
|
10989
|
+
}
|
|
10990
|
+
function FormHeader({ actions, align = "start", description, eyebrow, headingLevel = 2, title, titleId }) {
|
|
10991
|
+
const Heading = `h${headingLevel}`;
|
|
10992
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("header", { className: AdvancedFields_default.formHeader, "data-align": align, children: [
|
|
10993
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: AdvancedFields_default.formHeaderCopy, children: [
|
|
10994
|
+
eyebrow ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: AdvancedFields_default.formHeaderEyebrow, children: eyebrow }) : null,
|
|
10995
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Heading, { className: AdvancedFields_default.formHeaderTitle, id: titleId, children: title }),
|
|
10996
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: AdvancedFields_default.formHeaderDescription, children: description }) : null
|
|
10997
|
+
] }),
|
|
10998
|
+
actions ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: AdvancedFields_default.formHeaderActions, children: actions }) : null
|
|
10999
|
+
] });
|
|
10835
11000
|
}
|
|
10836
11001
|
function FormSection({ children, title }) {
|
|
10837
11002
|
const id = (0, import_react43.useId)();
|
|
@@ -10845,7 +11010,7 @@ function FormActions({ children }) {
|
|
|
10845
11010
|
}
|
|
10846
11011
|
|
|
10847
11012
|
// ../../components/Panel/Panel.module.css
|
|
10848
|
-
var Panel_default = {"
|
|
11013
|
+
var Panel_default = {"title":"opus_JZHUc__title","body":"opus_JZHUc__body","headerActions":"opus_JZHUc__headerActions","footer":"opus_JZHUc__footer","panel":"opus_JZHUc__panel","heading":"opus_JZHUc__heading","header":"opus_JZHUc__header","description":"opus_JZHUc__description"};
|
|
10849
11014
|
|
|
10850
11015
|
// ../../components/Panel/Panel.tsx
|
|
10851
11016
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
@@ -11040,7 +11205,7 @@ function resolveSectionGapVars(gap = "md") {
|
|
|
11040
11205
|
}
|
|
11041
11206
|
|
|
11042
11207
|
// ../../components/Section/Section.module.css
|
|
11043
|
-
var Section_default = {"
|
|
11208
|
+
var Section_default = {"body":"opus_FajZiH_body","title":"opus_FajZiH_title","row":"opus_FajZiH_row","column":"opus_FajZiH_column","section":"opus_FajZiH_section","header":"opus_FajZiH_header","description":"opus_FajZiH_description"};
|
|
11044
11209
|
|
|
11045
11210
|
// ../../components/Section/Section.tsx
|
|
11046
11211
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
@@ -11121,7 +11286,7 @@ var Section = Object.assign(SectionRoot, {
|
|
|
11121
11286
|
});
|
|
11122
11287
|
|
|
11123
11288
|
// ../../components/Table/Table.module.css
|
|
11124
|
-
var Table_default = {"
|
|
11289
|
+
var Table_default = {"wrap":"opus_2q7S14_wrap","table":"opus_2q7S14_table","caption":"opus_2q7S14_caption","empty":"opus_2q7S14_empty","visuallyHidden":"opus_2q7S14_visuallyHidden"};
|
|
11125
11290
|
|
|
11126
11291
|
// ../../components/Table/Table.tsx
|
|
11127
11292
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
@@ -11343,7 +11508,7 @@ function buildPivotGrid(sourceRows, config2) {
|
|
|
11343
11508
|
}
|
|
11344
11509
|
|
|
11345
11510
|
// ../../components/DataGrid/DataGrid.module.css
|
|
11346
|
-
var DataGrid_default = {"
|
|
11511
|
+
var DataGrid_default = {"menuFilterIcon":"opus_zN0bNb_menuFilterIcon","menuHost":"opus_zN0bNb_menuHost","headerLabel":"opus_zN0bNb_headerLabel","wrap":"opus_zN0bNb_wrap","sortIndicator":"opus_zN0bNb_sortIndicator","detailRow":"opus_zN0bNb_detailRow","frame":"opus_zN0bNb_frame","rowHeader":"opus_zN0bNb_rowHeader","gridBody":"opus_zN0bNb_gridBody","sortIndicatorButton":"opus_zN0bNb_sortIndicatorButton","corner":"opus_zN0bNb_corner","expandSpacer":"opus_zN0bNb_expandSpacer","expandButton":"opus_zN0bNb_expandButton","menuButton":"opus_zN0bNb_menuButton","headerMenu":"opus_zN0bNb_headerMenu","detailCell":"opus_zN0bNb_detailCell","rowHeaderInner":"opus_zN0bNb_rowHeaderInner","grid":"opus_zN0bNb_grid","menuChevron":"opus_zN0bNb_menuChevron","chevron":"opus_zN0bNb_chevron","caption":"opus_zN0bNb_caption","columnResizeHandle":"opus_zN0bNb_columnResizeHandle","visuallyHidden":"opus_zN0bNb_visuallyHidden","rowHeaderLabel":"opus_zN0bNb_rowHeaderLabel","menuSection":"opus_zN0bNb_menuSection","groupButton":"opus_zN0bNb_groupButton","headerCell":"opus_zN0bNb_headerCell","menuLabel":"opus_zN0bNb_menuLabel","spacerRow":"opus_zN0bNb_spacerRow","sortButton":"opus_zN0bNb_sortButton","menuAction":"opus_zN0bNb_menuAction","groupCount":"opus_zN0bNb_groupCount","groupRow":"opus_zN0bNb_groupRow","infiniteFooter":"opus_zN0bNb_infiniteFooter","sortButtonLabel":"opus_zN0bNb_sortButtonLabel","empty":"opus_zN0bNb_empty","filterInput":"opus_zN0bNb_filterInput","headerControls":"opus_zN0bNb_headerControls","groupCell":"opus_zN0bNb_groupCell"};
|
|
11347
11512
|
|
|
11348
11513
|
// ../../components/DataGrid/DataGrid.tsx
|
|
11349
11514
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
@@ -14909,7 +15074,7 @@ function SpecializedChart(props) {
|
|
|
14909
15074
|
}
|
|
14910
15075
|
|
|
14911
15076
|
// ../../components/Chart/Chart.module.css
|
|
14912
|
-
var Chart_default = {"
|
|
15077
|
+
var Chart_default = {"axisLine":"opus_L6guCK_axisLine","mapRegion":"opus_L6guCK_mapRegion","packParent":"opus_L6guCK_packParent","axisTick":"opus_L6guCK_axisTick","mapLabel":"opus_L6guCK_mapLabel","title":"opus_L6guCK_title","point":"opus_L6guCK_point","funnel":"opus_L6guCK_funnel","seriesC":"opus_L6guCK_seriesC","sankeyLabelBox":"opus_L6guCK_sankeyLabelBox","radarGrid":"opus_L6guCK_radarGrid","legendSwatch":"opus_L6guCK_legendSwatch","funnelText":"opus_L6guCK_funnelText","sankeySideValue":"opus_L6guCK_sankeySideValue","header":"opus_L6guCK_header","seriesA":"opus_L6guCK_seriesA","valueLabel":"opus_L6guCK_valueLabel","sankeySideName":"opus_L6guCK_sankeySideName","ring":"opus_L6guCK_ring","packLabel":"opus_L6guCK_packLabel","chart":"opus_L6guCK_chart","bar":"opus_L6guCK_bar","treemapGroupLabel":"opus_L6guCK_treemapGroupLabel","svg":"opus_L6guCK_svg","axes":"opus_L6guCK_axes","seriesE":"opus_L6guCK_seriesE","graphLinkColored":"opus_L6guCK_graphLinkColored","land":"opus_L6guCK_land","sankeyLink":"opus_L6guCK_sankeyLink","axisLabels":"opus_L6guCK_axisLabels","line":"opus_L6guCK_line","axisTitle":"opus_L6guCK_axisTitle","slice":"opus_L6guCK_slice","meta":"opus_L6guCK_meta","graphLabel":"opus_L6guCK_graphLabel","mapValue":"opus_L6guCK_mapValue","graphNode":"opus_L6guCK_graphNode","sankeyCenterLabel":"opus_L6guCK_sankeyCenterLabel","legendItem":"opus_L6guCK_legendItem","area":"opus_L6guCK_area","sankeySideLabel":"opus_L6guCK_sankeySideLabel","seriesB":"opus_L6guCK_seriesB","violin":"opus_L6guCK_violin","grid":"opus_L6guCK_grid","graphNodeRing":"opus_L6guCK_graphNodeRing","seriesD":"opus_L6guCK_seriesD","ridge":"opus_L6guCK_ridge","treemapLabel":"opus_L6guCK_treemapLabel","link":"opus_L6guCK_link","mapLand":"opus_L6guCK_mapLand","radarArea":"opus_L6guCK_radarArea","legend":"opus_L6guCK_legend","funnelGuide":"opus_L6guCK_funnelGuide","axisGuide":"opus_L6guCK_axisGuide","sankeyNode":"opus_L6guCK_sankeyNode","seriesF":"opus_L6guCK_seriesF","wick":"opus_L6guCK_wick","graphLink":"opus_L6guCK_graphLink"};
|
|
14913
15078
|
|
|
14914
15079
|
// ../../components/Chart/Chart.tsx
|
|
14915
15080
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
@@ -16048,7 +16213,7 @@ function Chart({
|
|
|
16048
16213
|
}
|
|
16049
16214
|
|
|
16050
16215
|
// ../../components/Skeleton/Skeleton.module.css
|
|
16051
|
-
var Skeleton_default = {"avatar":"opus_27r9Md_avatar","skeleton":"opus_27r9Md_skeleton","
|
|
16216
|
+
var Skeleton_default = {"stack":"opus_27r9Md_stack","avatar":"opus_27r9Md_avatar","skeleton":"opus_27r9Md_skeleton","media":"opus_27r9Md_media","tableRow":"opus_27r9Md_tableRow","tableCell":"opus_27r9Md_tableCell","line":"opus_27r9Md_line","skeletonShimmer":"opus_27r9Md_skeletonShimmer","skeletonPulse":"opus_27r9Md_skeletonPulse","avatarContent":"opus_27r9Md_avatarContent"};
|
|
16052
16217
|
|
|
16053
16218
|
// ../../components/Skeleton/Skeleton.tsx
|
|
16054
16219
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
@@ -16099,7 +16264,7 @@ var import_free_solid_svg_icons9 = require("@fortawesome/free-solid-svg-icons");
|
|
|
16099
16264
|
var import_react_fontawesome9 = require("@fortawesome/react-fontawesome");
|
|
16100
16265
|
|
|
16101
16266
|
// ../../components/Lightbox/Lightbox.module.css
|
|
16102
|
-
var Lightbox_default = {"
|
|
16267
|
+
var Lightbox_default = {"lightbox":"opus_s7Rpyv_lightbox","lightboxPanelOut":"opus_s7Rpyv_lightboxPanelOut","frame":"opus_s7Rpyv_frame","lightboxFadeIn":"opus_s7Rpyv_lightboxFadeIn","overlay":"opus_s7Rpyv_overlay","closeIcon":"opus_s7Rpyv_closeIcon","lightboxPanelIn":"opus_s7Rpyv_lightboxPanelIn","lightboxFadeOut":"opus_s7Rpyv_lightboxFadeOut","trigger":"opus_s7Rpyv_trigger","panel":"opus_s7Rpyv_panel","close":"opus_s7Rpyv_close","caption":"opus_s7Rpyv_caption","image":"opus_s7Rpyv_image"};
|
|
16103
16268
|
|
|
16104
16269
|
// ../../components/Lightbox/Lightbox.tsx
|
|
16105
16270
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
@@ -16214,7 +16379,7 @@ function Lightbox({
|
|
|
16214
16379
|
}
|
|
16215
16380
|
|
|
16216
16381
|
// ../../components/Carousel/Carousel.module.css
|
|
16217
|
-
var Carousel_default = {"empty":"opus_N4occJ_empty","
|
|
16382
|
+
var Carousel_default = {"empty":"opus_N4occJ_empty","visuallyHidden":"opus_N4occJ_visuallyHidden","stage":"opus_N4occJ_stage","pips":"opus_N4occJ_pips","slide":"opus_N4occJ_slide","navIcon":"opus_N4occJ_navIcon","carousel":"opus_N4occJ_carousel","pip":"opus_N4occJ_pip","image":"opus_N4occJ_image","nav":"opus_N4occJ_nav","footer":"opus_N4occJ_footer","track":"opus_N4occJ_track","caption":"opus_N4occJ_caption"};
|
|
16218
16383
|
|
|
16219
16384
|
// ../../components/Carousel/Carousel.tsx
|
|
16220
16385
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
@@ -16569,7 +16734,7 @@ async function shareMedia({
|
|
|
16569
16734
|
}
|
|
16570
16735
|
|
|
16571
16736
|
// ../../components/MediaShareCastControl/MediaShareCastControl.module.css
|
|
16572
|
-
var MediaShareCastControl_default = {"
|
|
16737
|
+
var MediaShareCastControl_default = {"trigger":"opus_ioyYOy_trigger","menu":"opus_ioyYOy_menu","root":"opus_ioyYOy_root","itemHint":"opus_ioyYOy_itemHint","itemLabel":"opus_ioyYOy_itemLabel","item":"opus_ioyYOy_item","icon":"opus_ioyYOy_icon","itemIcon":"opus_ioyYOy_itemIcon"};
|
|
16573
16738
|
|
|
16574
16739
|
// ../../components/MediaShareCastControl/MediaShareCastControl.tsx
|
|
16575
16740
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
@@ -16863,7 +17028,7 @@ function MediaShareCastControl({
|
|
|
16863
17028
|
}
|
|
16864
17029
|
|
|
16865
17030
|
// ../../components/VideoPlayer/VideoPlayer.module.css
|
|
16866
|
-
var VideoPlayer_default = {"
|
|
17031
|
+
var VideoPlayer_default = {"player":"opus_g_RHVI_player","title":"opus_g_RHVI_title","video":"opus_g_RHVI_video","progressTrack":"opus_g_RHVI_progressTrack","icon":"opus_g_RHVI_icon","progressFill":"opus_g_RHVI_progressFill","stage":"opus_g_RHVI_stage","titleRow":"opus_g_RHVI_titleRow","progress":"opus_g_RHVI_progress","centerPlay":"opus_g_RHVI_centerPlay","time":"opus_g_RHVI_time","controls":"opus_g_RHVI_controls","iconButton":"opus_g_RHVI_iconButton","spacer":"opus_g_RHVI_spacer","progressThumb":"opus_g_RHVI_progressThumb","trackCount":"opus_g_RHVI_trackCount","volume":"opus_g_RHVI_volume","toolbar":"opus_g_RHVI_toolbar","videoBackdrop":"opus_g_RHVI_videoBackdrop"};
|
|
16867
17032
|
|
|
16868
17033
|
// ../../components/VideoPlayer/VideoPlayer.tsx
|
|
16869
17034
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
@@ -17507,7 +17672,7 @@ var import_free_solid_svg_icons13 = require("@fortawesome/free-solid-svg-icons")
|
|
|
17507
17672
|
var import_react_fontawesome13 = require("@fortawesome/react-fontawesome");
|
|
17508
17673
|
|
|
17509
17674
|
// ../../components/AudioPlayer/AudioPlayer.module.css
|
|
17510
|
-
var AudioPlayer_default = {"player":"opus_pJZZp1_player","
|
|
17675
|
+
var AudioPlayer_default = {"player":"opus_pJZZp1_player","trackCount":"opus_pJZZp1_trackCount","playButton":"opus_pJZZp1_playButton","spacer":"opus_pJZZp1_spacer","progressTrack":"opus_pJZZp1_progressTrack","artworkGlow":"opus_pJZZp1_artworkGlow","progressFill":"opus_pJZZp1_progressFill","artworkImage":"opus_pJZZp1_artworkImage","toolbar":"opus_pJZZp1_toolbar","progress":"opus_pJZZp1_progress","title":"opus_pJZZp1_title","artist":"opus_pJZZp1_artist","icon":"opus_pJZZp1_icon","progressThumb":"opus_pJZZp1_progressThumb","body":"opus_pJZZp1_body","iconButton":"opus_pJZZp1_iconButton","time":"opus_pJZZp1_time","artwork":"opus_pJZZp1_artwork","volume":"opus_pJZZp1_volume","artworkMark":"opus_pJZZp1_artworkMark","meta":"opus_pJZZp1_meta"};
|
|
17511
17676
|
|
|
17512
17677
|
// ../../components/AudioPlayer/AudioPlayer.tsx
|
|
17513
17678
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
@@ -17897,7 +18062,7 @@ function AudioPlayer({
|
|
|
17897
18062
|
}
|
|
17898
18063
|
|
|
17899
18064
|
// ../../components/ImageThumbnail/ImageThumbnail.module.css
|
|
17900
|
-
var ImageThumbnail_default = {"
|
|
18065
|
+
var ImageThumbnail_default = {"caption":"opus_Gp1o-9_caption","figure":"opus_Gp1o-9_figure","thumbnail":"opus_Gp1o-9_thumbnail","image":"opus_Gp1o-9_image"};
|
|
17901
18066
|
|
|
17902
18067
|
// ../../components/ImageThumbnail/ImageThumbnail.tsx
|
|
17903
18068
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
@@ -17972,7 +18137,7 @@ var import_react52 = require("react");
|
|
|
17972
18137
|
var import_react51 = require("react");
|
|
17973
18138
|
|
|
17974
18139
|
// ../../components/ModelViewer/ModelViewer.module.css
|
|
17975
|
-
var ModelViewer_default = {"
|
|
18140
|
+
var ModelViewer_default = {"loading":"opus_f7gfHI_loading","model":"opus_f7gfHI_model","stage":"opus_f7gfHI_stage","viewer":"opus_f7gfHI_viewer","canvasHost":"opus_f7gfHI_canvasHost","caption":"opus_f7gfHI_caption"};
|
|
17976
18141
|
|
|
17977
18142
|
// ../../components/ModelViewer/FireBarrelModelViewer.tsx
|
|
17978
18143
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
@@ -18190,10 +18355,14 @@ var import_free_solid_svg_icons14 = require("@fortawesome/free-solid-svg-icons")
|
|
|
18190
18355
|
var import_react_fontawesome14 = require("@fortawesome/react-fontawesome");
|
|
18191
18356
|
|
|
18192
18357
|
// ../../components/ModelLightbox/ModelLightbox.module.css
|
|
18193
|
-
var ModelLightbox_default = {"
|
|
18358
|
+
var ModelLightbox_default = {"customTriggerContent":"opus_YYKGIB_customTriggerContent","frame":"opus_YYKGIB_frame","modelLightboxPanelOut":"opus_YYKGIB_modelLightboxPanelOut","close":"opus_YYKGIB_close","customTriggerButton":"opus_YYKGIB_customTriggerButton","overlay":"opus_YYKGIB_overlay","modelLightboxFadeIn":"opus_YYKGIB_modelLightboxFadeIn","trigger":"opus_YYKGIB_trigger","customTrigger":"opus_YYKGIB_customTrigger","closeIcon":"opus_YYKGIB_closeIcon","modelLightboxFadeOut":"opus_YYKGIB_modelLightboxFadeOut","lightbox":"opus_YYKGIB_lightbox","modelLightboxPanelIn":"opus_YYKGIB_modelLightboxPanelIn"};
|
|
18194
18359
|
|
|
18195
18360
|
// ../../components/ModelLightbox/ModelLightbox.tsx
|
|
18196
|
-
var import_jsx_runtime87 =
|
|
18361
|
+
var import_jsx_runtime87 = (
|
|
18362
|
+
/* The trigger content can hold its own controls (model-viewer renders a poster
|
|
18363
|
+
button), so it stays outside the button and an overlay captures the click. */
|
|
18364
|
+
require("react/jsx-runtime")
|
|
18365
|
+
);
|
|
18197
18366
|
function ModelLightbox({
|
|
18198
18367
|
asset,
|
|
18199
18368
|
dismissOnBackdrop = true,
|
|
@@ -18244,17 +18413,18 @@ function ModelLightbox({
|
|
|
18244
18413
|
return () => window.clearTimeout(timeout);
|
|
18245
18414
|
}, [isOpen, isRendered]);
|
|
18246
18415
|
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ModelLightbox_default.lightbox, children: [
|
|
18247
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.
|
|
18248
|
-
"
|
|
18249
|
-
|
|
18250
|
-
"
|
|
18251
|
-
|
|
18252
|
-
|
|
18253
|
-
|
|
18254
|
-
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18416
|
+
trigger ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: ModelLightbox_default.customTrigger, children: [
|
|
18417
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: ModelLightbox_default.customTriggerContent, inert: true, children: trigger }),
|
|
18418
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
18419
|
+
"button",
|
|
18420
|
+
{
|
|
18421
|
+
"aria-label": triggerLabel,
|
|
18422
|
+
className: ModelLightbox_default.customTriggerButton,
|
|
18423
|
+
type: "button",
|
|
18424
|
+
onClick: () => setOpen(true)
|
|
18425
|
+
}
|
|
18426
|
+
)
|
|
18427
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("button", { className: ModelLightbox_default.trigger, type: "button", onClick: () => setOpen(true), children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: triggerLabel }) }),
|
|
18258
18428
|
isOpen || isRendered ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
18259
18429
|
"div",
|
|
18260
18430
|
{
|
|
@@ -18295,7 +18465,7 @@ function ModelLightbox({
|
|
|
18295
18465
|
}
|
|
18296
18466
|
|
|
18297
18467
|
// ../../components/ModelThumbnail/ModelThumbnail.module.css
|
|
18298
|
-
var ModelThumbnail_default = {"caption":"opus_NkO9Yb_caption","
|
|
18468
|
+
var ModelThumbnail_default = {"caption":"opus_NkO9Yb_caption","staticThumbnail":"opus_NkO9Yb_staticThumbnail","content":"opus_NkO9Yb_content"};
|
|
18299
18469
|
|
|
18300
18470
|
// ../../components/ModelThumbnail/ModelThumbnail.tsx
|
|
18301
18471
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
@@ -18365,7 +18535,7 @@ function ModelGallery({
|
|
|
18365
18535
|
var import_react54 = require("react");
|
|
18366
18536
|
|
|
18367
18537
|
// ../../components/EmptyState/EmptyState.module.css
|
|
18368
|
-
var EmptyState_default = {"iconWrap":"opus_1KckGY_iconWrap","title":"opus_1KckGY_title","
|
|
18538
|
+
var EmptyState_default = {"iconWrap":"opus_1KckGY_iconWrap","title":"opus_1KckGY_title","description":"opus_1KckGY_description","copy":"opus_1KckGY_copy","root":"opus_1KckGY_root","actions":"opus_1KckGY_actions"};
|
|
18369
18539
|
|
|
18370
18540
|
// ../../components/EmptyState/EmptyState.tsx
|
|
18371
18541
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
@@ -18399,7 +18569,7 @@ function EmptyState({
|
|
|
18399
18569
|
}
|
|
18400
18570
|
|
|
18401
18571
|
// ../../components/Divider/Divider.module.css
|
|
18402
|
-
var Divider_default = {"
|
|
18572
|
+
var Divider_default = {"divider":"opus_ux1i0D_divider","line":"opus_ux1i0D_line","labelled":"opus_ux1i0D_labelled","label":"opus_ux1i0D_label"};
|
|
18403
18573
|
|
|
18404
18574
|
// ../../components/Divider/Divider.tsx
|
|
18405
18575
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
@@ -18441,7 +18611,7 @@ function Divider({
|
|
|
18441
18611
|
var import_react55 = require("react");
|
|
18442
18612
|
|
|
18443
18613
|
// ../../components/Avatar/Avatar.module.css
|
|
18444
|
-
var Avatar_default = {"
|
|
18614
|
+
var Avatar_default = {"initials":"opus_jsRWxO_initials","avatar":"opus_jsRWxO_avatar","image":"opus_jsRWxO_image"};
|
|
18445
18615
|
|
|
18446
18616
|
// ../../components/Avatar/Avatar.tsx
|
|
18447
18617
|
var import_jsx_runtime92 = (
|
|
@@ -18491,7 +18661,7 @@ function Avatar({
|
|
|
18491
18661
|
}
|
|
18492
18662
|
|
|
18493
18663
|
// ../../components/AvatarGroup/AvatarGroup.module.css
|
|
18494
|
-
var AvatarGroup_default = {"
|
|
18664
|
+
var AvatarGroup_default = {"group":"opus_Vv36ne_group","item":"opus_Vv36ne_item","overflow":"opus_Vv36ne_overflow"};
|
|
18495
18665
|
|
|
18496
18666
|
// ../../components/AvatarGroup/AvatarGroup.tsx
|
|
18497
18667
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
@@ -18517,7 +18687,7 @@ function AvatarGroup({ items, max = 4, size = "md" }) {
|
|
|
18517
18687
|
}
|
|
18518
18688
|
|
|
18519
18689
|
// ../../components/Statistic/Statistic.module.css
|
|
18520
|
-
var Statistic_default = {"
|
|
18690
|
+
var Statistic_default = {"value":"opus_vCN1bv_value","label":"opus_vCN1bv_label","affix":"opus_vCN1bv_affix","root":"opus_vCN1bv_root","trend":"opus_vCN1bv_trend"};
|
|
18521
18691
|
|
|
18522
18692
|
// ../../components/Statistic/Statistic.tsx
|
|
18523
18693
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
@@ -18544,7 +18714,7 @@ function Statistic({
|
|
|
18544
18714
|
}
|
|
18545
18715
|
|
|
18546
18716
|
// ../../components/List/List.module.css
|
|
18547
|
-
var List_default = {"
|
|
18717
|
+
var List_default = {"itemAction":"opus_ys3xlo_itemAction","icon":"opus_ys3xlo_icon","meta":"opus_ys3xlo_meta","body":"opus_ys3xlo_body","item":"opus_ys3xlo_item","list":"opus_ys3xlo_list","head":"opus_ys3xlo_head","description":"opus_ys3xlo_description","title":"opus_ys3xlo_title"};
|
|
18548
18718
|
|
|
18549
18719
|
// ../../components/List/List.tsx
|
|
18550
18720
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
@@ -18567,7 +18737,7 @@ function List({ density = "comfortable", items, ordered = false, onItemClick })
|
|
|
18567
18737
|
}
|
|
18568
18738
|
|
|
18569
18739
|
// ../../components/DescriptionList/DescriptionList.module.css
|
|
18570
|
-
var DescriptionList_default = {"list":"opus_FY8OsC_list","
|
|
18740
|
+
var DescriptionList_default = {"list":"opus_FY8OsC_list","term":"opus_FY8OsC_term","details":"opus_FY8OsC_details","row":"opus_FY8OsC_row"};
|
|
18571
18741
|
|
|
18572
18742
|
// ../../components/DescriptionList/DescriptionList.tsx
|
|
18573
18743
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
@@ -18585,7 +18755,7 @@ function DescriptionList({
|
|
|
18585
18755
|
var import_react56 = require("react");
|
|
18586
18756
|
|
|
18587
18757
|
// ../../components/PropertyGrid/PropertyGrid.module.css
|
|
18588
|
-
var PropertyGrid_default = {"
|
|
18758
|
+
var PropertyGrid_default = {"copy":"opus_Bnfsue_copy","row":"opus_Bnfsue_row","grid":"opus_Bnfsue_grid","label":"opus_Bnfsue_label","valueCell":"opus_Bnfsue_valueCell","value":"opus_Bnfsue_value"};
|
|
18589
18759
|
|
|
18590
18760
|
// ../../components/PropertyGrid/PropertyGrid.tsx
|
|
18591
18761
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
@@ -18652,7 +18822,7 @@ function Stack({
|
|
|
18652
18822
|
var import_react57 = require("react");
|
|
18653
18823
|
|
|
18654
18824
|
// ../../components/Columns/Columns.module.css
|
|
18655
|
-
var Columns_default = {"
|
|
18825
|
+
var Columns_default = {"cell":"opus_dI4yQh_cell","root":"opus_dI4yQh_root"};
|
|
18656
18826
|
|
|
18657
18827
|
// ../../components/Columns/Columns.tsx
|
|
18658
18828
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
@@ -18710,7 +18880,7 @@ function Grid2({
|
|
|
18710
18880
|
var import_react58 = require("react");
|
|
18711
18881
|
|
|
18712
18882
|
// ../../components/ResizeHandle/ResizeHandle.module.css
|
|
18713
|
-
var ResizeHandle_default = {"
|
|
18883
|
+
var ResizeHandle_default = {"grip":"opus_PaKREB_grip","dot":"opus_PaKREB_dot","handle":"opus_PaKREB_handle"};
|
|
18714
18884
|
|
|
18715
18885
|
// ../../components/ResizeHandle/ResizeHandle.tsx
|
|
18716
18886
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
@@ -18857,7 +19027,7 @@ function Splitter({
|
|
|
18857
19027
|
var import_react59 = require("react");
|
|
18858
19028
|
|
|
18859
19029
|
// ../../components/ResizablePanel/ResizablePanel.module.css
|
|
18860
|
-
var ResizablePanel_default = {"
|
|
19030
|
+
var ResizablePanel_default = {"root":"opus_kVJ122_root","body":"opus_kVJ122_body","handle":"opus_kVJ122_handle"};
|
|
18861
19031
|
|
|
18862
19032
|
// ../../components/ResizablePanel/ResizablePanel.tsx
|
|
18863
19033
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
@@ -18940,7 +19110,7 @@ function ResizablePanel({
|
|
|
18940
19110
|
}
|
|
18941
19111
|
|
|
18942
19112
|
// ../../components/DockLayout/DockLayout.module.css
|
|
18943
|
-
var DockLayout_default = {"
|
|
19113
|
+
var DockLayout_default = {"top":"opus_3zzL8C_top","left":"opus_3zzL8C_left","center":"opus_3zzL8C_center","bottom":"opus_3zzL8C_bottom","right":"opus_3zzL8C_right","middle":"opus_3zzL8C_middle","root":"opus_3zzL8C_root"};
|
|
18944
19114
|
|
|
18945
19115
|
// ../../components/DockLayout/DockLayout.tsx
|
|
18946
19116
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
@@ -18971,7 +19141,7 @@ var import_react61 = require("react");
|
|
|
18971
19141
|
var import_react60 = require("react");
|
|
18972
19142
|
|
|
18973
19143
|
// ../../components/CustomScrollbar/CustomScrollbar.module.css
|
|
18974
|
-
var CustomScrollbar_default = {"cornerDot":"opus_I9wQcM_cornerDot","
|
|
19144
|
+
var CustomScrollbar_default = {"content":"opus_I9wQcM_content","cornerDot":"opus_I9wQcM_cornerDot","viewport":"opus_I9wQcM_viewport","track":"opus_I9wQcM_track","root":"opus_I9wQcM_root","thumb":"opus_I9wQcM_thumb"};
|
|
18975
19145
|
|
|
18976
19146
|
// ../../components/CustomScrollbar/CustomScrollbar.tsx
|
|
18977
19147
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
@@ -19267,7 +19437,7 @@ function CustomScrollbar({
|
|
|
19267
19437
|
}
|
|
19268
19438
|
|
|
19269
19439
|
// ../../components/ThreePaneLayout/ThreePaneLayout.module.css
|
|
19270
|
-
var ThreePaneLayout_default = {"
|
|
19440
|
+
var ThreePaneLayout_default = {"sidebar":"opus_DtnFdK_sidebar","content":"opus_DtnFdK_content","root":"opus_DtnFdK_root","handle":"opus_DtnFdK_handle"};
|
|
19271
19441
|
|
|
19272
19442
|
// ../../components/ThreePaneLayout/ThreePaneLayout.tsx
|
|
19273
19443
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
@@ -19713,7 +19883,7 @@ function Spacer({ axis = "y", className, flex = false, size = 16, style }) {
|
|
|
19713
19883
|
}
|
|
19714
19884
|
|
|
19715
19885
|
// ../../components/Breadcrumb/Breadcrumb.module.css
|
|
19716
|
-
var Breadcrumb_default = {"
|
|
19886
|
+
var Breadcrumb_default = {"item":"opus_FwZfXe_item","current":"opus_FwZfXe_current","link":"opus_FwZfXe_link","list":"opus_FwZfXe_list","separator":"opus_FwZfXe_separator","root":"opus_FwZfXe_root"};
|
|
19717
19887
|
|
|
19718
19888
|
// ../../components/Breadcrumb/Breadcrumb.tsx
|
|
19719
19889
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
@@ -19741,7 +19911,7 @@ function Breadcrumb({ ariaLabel = "Breadcrumb", items, onNavigate, separator = "
|
|
|
19741
19911
|
}
|
|
19742
19912
|
|
|
19743
19913
|
// ../../components/Pagination/Pagination.module.css
|
|
19744
|
-
var Pagination_default = {"button":"opus_VkXUKR_button","root":"opus_VkXUKR_root","
|
|
19914
|
+
var Pagination_default = {"button":"opus_VkXUKR_button","root":"opus_VkXUKR_root","ellipsis":"opus_VkXUKR_ellipsis","active":"opus_VkXUKR_active"};
|
|
19745
19915
|
|
|
19746
19916
|
// ../../components/Pagination/Pagination.tsx
|
|
19747
19917
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
@@ -19806,7 +19976,7 @@ function Pagination({ page, pageCount, onPageChange, siblingCount = 1 }) {
|
|
|
19806
19976
|
}
|
|
19807
19977
|
|
|
19808
19978
|
// ../../components/PageHeader/PageHeader.module.css
|
|
19809
|
-
var PageHeader_default = {"
|
|
19979
|
+
var PageHeader_default = {"copy":"opus_1pSVfU_copy","eyebrow":"opus_1pSVfU_eyebrow","description":"opus_1pSVfU_description","title":"opus_1pSVfU_title","row":"opus_1pSVfU_row","breadcrumbs":"opus_1pSVfU_breadcrumbs","actions":"opus_1pSVfU_actions","root":"opus_1pSVfU_root"};
|
|
19810
19980
|
|
|
19811
19981
|
// ../../components/PageHeader/PageHeader.tsx
|
|
19812
19982
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
@@ -19825,7 +19995,7 @@ function PageHeader({ actions, breadcrumbs, description, eyebrow, title }) {
|
|
|
19825
19995
|
}
|
|
19826
19996
|
|
|
19827
19997
|
// ../../components/Toolbar/Toolbar.module.css
|
|
19828
|
-
var Toolbar_default = {"
|
|
19998
|
+
var Toolbar_default = {"cluster":"opus_lO-IAD_cluster","end":"opus_lO-IAD_end","root":"opus_lO-IAD_root"};
|
|
19829
19999
|
|
|
19830
20000
|
// ../../components/Toolbar/Toolbar.tsx
|
|
19831
20001
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
@@ -19847,7 +20017,7 @@ function Toolbar({ children, className, dense = false, end, label, start }) {
|
|
|
19847
20017
|
}
|
|
19848
20018
|
|
|
19849
20019
|
// ../../components/BottomNavigation/BottomNavigation.module.css
|
|
19850
|
-
var BottomNavigation_default = {"
|
|
20020
|
+
var BottomNavigation_default = {"root":"opus_Yqcmor_root","item":"opus_Yqcmor_item","icon":"opus_Yqcmor_icon","label":"opus_Yqcmor_label","active":"opus_Yqcmor_active"};
|
|
19851
20021
|
|
|
19852
20022
|
// ../../components/BottomNavigation/BottomNavigation.tsx
|
|
19853
20023
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
@@ -19877,7 +20047,7 @@ function BottomNavigation({ items, onChange, value }) {
|
|
|
19877
20047
|
}
|
|
19878
20048
|
|
|
19879
20049
|
// ../../components/NavigationRail/NavigationRail.module.css
|
|
19880
|
-
var NavigationRail_default = {"
|
|
20050
|
+
var NavigationRail_default = {"label":"opus_E7mR15_label","srOnly":"opus_E7mR15_srOnly","icon":"opus_E7mR15_icon","root":"opus_E7mR15_root","active":"opus_E7mR15_active","item":"opus_E7mR15_item"};
|
|
19881
20051
|
|
|
19882
20052
|
// ../../components/NavigationRail/NavigationRail.tsx
|
|
19883
20053
|
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
@@ -19920,7 +20090,7 @@ function NavigationRail({ collapsed = false, items, onChange, value }) {
|
|
|
19920
20090
|
var import_react62 = require("react");
|
|
19921
20091
|
|
|
19922
20092
|
// ../../components/SplitButton/SplitButton.module.css
|
|
19923
|
-
var SplitButton_default = {"root":"opus_TVuiQN_root","
|
|
20093
|
+
var SplitButton_default = {"root":"opus_TVuiQN_root","menuItem":"opus_TVuiQN_menuItem","caret":"opus_TVuiQN_caret","main":"opus_TVuiQN_main","menu":"opus_TVuiQN_menu"};
|
|
19924
20094
|
|
|
19925
20095
|
// ../../components/SplitButton/SplitButton.tsx
|
|
19926
20096
|
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
@@ -19985,7 +20155,7 @@ function SplitButton({
|
|
|
19985
20155
|
}
|
|
19986
20156
|
|
|
19987
20157
|
// ../../components/FloatingActionButton/FloatingActionButton.module.css
|
|
19988
|
-
var FloatingActionButton_default = {"
|
|
20158
|
+
var FloatingActionButton_default = {"icon":"opus_UXPLpX_icon","root":"opus_UXPLpX_root","label":"opus_UXPLpX_label","srOnly":"opus_UXPLpX_srOnly"};
|
|
19989
20159
|
|
|
19990
20160
|
// ../../components/FloatingActionButton/FloatingActionButton.tsx
|
|
19991
20161
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
@@ -20354,7 +20524,7 @@ function Tile({
|
|
|
20354
20524
|
}
|
|
20355
20525
|
|
|
20356
20526
|
// ../../components/Tiles/Tiles.module.css
|
|
20357
|
-
var Tiles_default = {"
|
|
20527
|
+
var Tiles_default = {"moreButton":"opus_zD82gC_moreButton","viewport":"opus_zD82gC_viewport","tileItem":"opus_zD82gC_tileItem","tile":"opus_zD82gC_tile","previousButton":"opus_zD82gC_previousButton","nextButton":"opus_zD82gC_nextButton","row":"opus_zD82gC_row"};
|
|
20358
20528
|
|
|
20359
20529
|
// ../../components/Tiles/Tiles.tsx
|
|
20360
20530
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
@@ -20432,7 +20602,7 @@ function Tiles({ className, items, layout = "fill" }) {
|
|
|
20432
20602
|
}
|
|
20433
20603
|
|
|
20434
20604
|
// ../../components/StatTile/StatTile.module.css
|
|
20435
|
-
var StatTile_default = {"
|
|
20605
|
+
var StatTile_default = {"statTile":"opus_8DpwUV_statTile","label":"opus_8DpwUV_label","meta":"opus_8DpwUV_meta","trend":"opus_8DpwUV_trend","value":"opus_8DpwUV_value","comparison":"opus_8DpwUV_comparison","icon":"opus_8DpwUV_icon","body":"opus_8DpwUV_body"};
|
|
20436
20606
|
|
|
20437
20607
|
// ../../components/StatTile/StatTile.tsx
|
|
20438
20608
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
@@ -20487,7 +20657,7 @@ function StatTile({
|
|
|
20487
20657
|
var import_react65 = require("react");
|
|
20488
20658
|
|
|
20489
20659
|
// ../../components/StatTiles/StatTiles.module.css
|
|
20490
|
-
var StatTiles_default = {"moreButton":"opus_uhJd8v_moreButton","
|
|
20660
|
+
var StatTiles_default = {"moreButton":"opus_uhJd8v_moreButton","viewport":"opus_uhJd8v_viewport","statTileItem":"opus_uhJd8v_statTileItem","row":"opus_uhJd8v_row","nextButton":"opus_uhJd8v_nextButton","statTile":"opus_uhJd8v_statTile","previousButton":"opus_uhJd8v_previousButton"};
|
|
20491
20661
|
|
|
20492
20662
|
// ../../components/StatTiles/StatTiles.tsx
|
|
20493
20663
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
@@ -20496,12 +20666,14 @@ function StatTiles({ className, items, layout = "fill" }) {
|
|
|
20496
20666
|
const rowRef = (0, import_react65.useRef)(null);
|
|
20497
20667
|
const [hasPrevious, setHasPrevious] = (0, import_react65.useState)(false);
|
|
20498
20668
|
const [hasMore, setHasMore] = (0, import_react65.useState)(false);
|
|
20669
|
+
const [scrollable, setScrollable] = (0, import_react65.useState)(false);
|
|
20499
20670
|
const rowStyle = layout === "fill" && items.length > 0 ? { gridTemplateColumns: `repeat(${items.length}, minmax(var(--stat-tile-min), 1fr))` } : void 0;
|
|
20500
20671
|
const updateOverflow = (0, import_react65.useCallback)(() => {
|
|
20501
20672
|
const row = rowRef.current;
|
|
20502
20673
|
if (!row) return;
|
|
20503
20674
|
setHasPrevious(row.scrollLeft > 2);
|
|
20504
20675
|
setHasMore(row.scrollWidth - row.scrollLeft - row.clientWidth > 2);
|
|
20676
|
+
setScrollable(row.scrollWidth - row.clientWidth > 2);
|
|
20505
20677
|
}, []);
|
|
20506
20678
|
(0, import_react65.useEffect)(() => {
|
|
20507
20679
|
const row = rowRef.current;
|
|
@@ -20536,6 +20708,7 @@ function StatTiles({ className, items, layout = "fill" }) {
|
|
|
20536
20708
|
ref: rowRef,
|
|
20537
20709
|
role: "list",
|
|
20538
20710
|
style: rowStyle,
|
|
20711
|
+
tabIndex: scrollable ? 0 : void 0,
|
|
20539
20712
|
children: items.map((item, index) => {
|
|
20540
20713
|
var _a2;
|
|
20541
20714
|
const tone = (_a2 = item.tone) != null ? _a2 : defaultToneForIndex2(index);
|
|
@@ -20568,7 +20741,7 @@ function StatTiles({ className, items, layout = "fill" }) {
|
|
|
20568
20741
|
var import_react66 = require("react");
|
|
20569
20742
|
|
|
20570
20743
|
// ../../components/PipelineOverview/PipelineOverview.module.css
|
|
20571
|
-
var PipelineOverview_default = {"
|
|
20744
|
+
var PipelineOverview_default = {"legendValue":"opus_1ScjMZ_legendValue","totalValue":"opus_1ScjMZ_totalValue","totalLabel":"opus_1ScjMZ_totalLabel","body":"opus_1ScjMZ_body","funnelSvg":"opus_1ScjMZ_funnelSvg","legendCopy":"opus_1ScjMZ_legendCopy","funnel":"opus_1ScjMZ_funnel","footer":"opus_1ScjMZ_footer","legend":"opus_1ScjMZ_legend","root":"opus_1ScjMZ_root","period":"opus_1ScjMZ_period","periodLabel":"opus_1ScjMZ_periodLabel","periodSelect":"opus_1ScjMZ_periodSelect","periodChevron":"opus_1ScjMZ_periodChevron","legendLabel":"opus_1ScjMZ_legendLabel","total":"opus_1ScjMZ_total","legendDot":"opus_1ScjMZ_legendDot","legendItem":"opus_1ScjMZ_legendItem"};
|
|
20572
20745
|
|
|
20573
20746
|
// ../../components/PipelineOverview/PipelineOverview.tsx
|
|
20574
20747
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
@@ -20915,7 +21088,7 @@ function getDealsOverTimePalette(palette, accents) {
|
|
|
20915
21088
|
}
|
|
20916
21089
|
|
|
20917
21090
|
// ../../components/DealsOverTime/DealsOverTime.module.css
|
|
20918
|
-
var DealsOverTime_default = {"
|
|
21091
|
+
var DealsOverTime_default = {"lineGlowMid":"opus_Hn1LW1_lineGlowMid","header":"opus_Hn1LW1_header","root":"opus_Hn1LW1_root","periodSelect":"opus_Hn1LW1_periodSelect","tooltipDate":"opus_Hn1LW1_tooltipDate","gridLine":"opus_Hn1LW1_gridLine","pointRing":"opus_Hn1LW1_pointRing","hitTarget":"opus_Hn1LW1_hitTarget","pointCore":"opus_Hn1LW1_pointCore","lineGlowSoft":"opus_Hn1LW1_lineGlowSoft","pointGlow":"opus_Hn1LW1_pointGlow","pointSolid":"opus_Hn1LW1_pointSolid","period":"opus_Hn1LW1_period","line":"opus_Hn1LW1_line","area":"opus_Hn1LW1_area","tooltipValue":"opus_Hn1LW1_tooltipValue","axisLabel":"opus_Hn1LW1_axisLabel","periodLabel":"opus_Hn1LW1_periodLabel","chartWrap":"opus_Hn1LW1_chartWrap","title":"opus_Hn1LW1_title","chart":"opus_Hn1LW1_chart","tooltip":"opus_Hn1LW1_tooltip"};
|
|
20919
21092
|
|
|
20920
21093
|
// ../../components/DealsOverTime/DealsOverTime.tsx
|
|
20921
21094
|
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
@@ -21319,7 +21492,7 @@ function DealsOverTime({
|
|
|
21319
21492
|
var import_react68 = require("react");
|
|
21320
21493
|
|
|
21321
21494
|
// ../../components/DashboardListWidget/shared.module.css
|
|
21322
|
-
var shared_default = {"
|
|
21495
|
+
var shared_default = {"list":"opus_8R-PJ3_list","footerAction":"opus_8R-PJ3_footerAction","iconWrap":"opus_8R-PJ3_iconWrap","itemAction":"opus_8R-PJ3_itemAction","footerIcon":"opus_8R-PJ3_footerIcon","footer":"opus_8R-PJ3_footer"};
|
|
21323
21496
|
|
|
21324
21497
|
// ../../components/DashboardListWidget/DashboardListFooter.tsx
|
|
21325
21498
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
@@ -21332,7 +21505,7 @@ function DashboardListFooter({ footerHref, footerLabel, onFooterClick }) {
|
|
|
21332
21505
|
}
|
|
21333
21506
|
|
|
21334
21507
|
// ../../components/UpcomingTasks/UpcomingTasks.module.css
|
|
21335
|
-
var UpcomingTasks_default = {"
|
|
21508
|
+
var UpcomingTasks_default = {"time":"opus_mFTWWU_time","item":"opus_mFTWWU_item","header":"opus_mFTWWU_header","itemAction":"opus_mFTWWU_itemAction","itemBody":"opus_mFTWWU_itemBody","root":"opus_mFTWWU_root","title":"opus_mFTWWU_title","taskCheckbox":"opus_mFTWWU_taskCheckbox","copy":"opus_mFTWWU_copy","itemTitle":"opus_mFTWWU_itemTitle","itemSubtitle":"opus_mFTWWU_itemSubtitle","list":"opus_mFTWWU_list"};
|
|
21336
21509
|
|
|
21337
21510
|
// ../../components/UpcomingTasks/UpcomingTasks.tsx
|
|
21338
21511
|
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
@@ -21417,7 +21590,7 @@ function UpcomingTasks({
|
|
|
21417
21590
|
}
|
|
21418
21591
|
|
|
21419
21592
|
// ../../components/RecentActivity/RecentActivity.module.css
|
|
21420
|
-
var RecentActivity_default = {"
|
|
21593
|
+
var RecentActivity_default = {"root":"opus_PR08Ax_root","iconWrap":"opus_PR08Ax_iconWrap","title":"opus_PR08Ax_title","copy":"opus_PR08Ax_copy","itemAction":"opus_PR08Ax_itemAction","list":"opus_PR08Ax_list","header":"opus_PR08Ax_header","time":"opus_PR08Ax_time","item":"opus_PR08Ax_item","itemSubtitle":"opus_PR08Ax_itemSubtitle","itemTitle":"opus_PR08Ax_itemTitle"};
|
|
21421
21594
|
|
|
21422
21595
|
// ../../components/RecentActivity/RecentActivity.tsx
|
|
21423
21596
|
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
@@ -43207,7 +43380,7 @@ function opusThemeTokens(theme) {
|
|
|
43207
43380
|
}
|
|
43208
43381
|
|
|
43209
43382
|
// ../../components/EmojiPicker/EmojiPicker.module.css
|
|
43210
|
-
var EmojiPicker_default = {"
|
|
43383
|
+
var EmojiPicker_default = {"panel":"opus__tyRxw_panel","empty":"opus__tyRxw_empty","srOnly":"opus__tyRxw_srOnly","search":"opus__tyRxw_search","emojiButton":"opus__tyRxw_emojiButton","grid":"opus__tyRxw_grid","root":"opus__tyRxw_root","categoryButton":"opus__tyRxw_categoryButton","searchHint":"opus__tyRxw_searchHint","categories":"opus__tyRxw_categories"};
|
|
43211
43384
|
|
|
43212
43385
|
// ../../components/EmojiPicker/EmojiPicker.tsx
|
|
43213
43386
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
@@ -43485,7 +43658,7 @@ function EmojiPicker({
|
|
|
43485
43658
|
var import_react70 = require("react");
|
|
43486
43659
|
|
|
43487
43660
|
// ../../components/NoteTag/NoteTag.module.css
|
|
43488
|
-
var NoteTag_default = {"
|
|
43661
|
+
var NoteTag_default = {"option":"opus__ZnbtA_option","menu":"opus__ZnbtA_menu","options":"opus__ZnbtA_options","removeButton":"opus__ZnbtA_removeButton","picker":"opus__ZnbtA_picker","list":"opus__ZnbtA_list","tag":"opus__ZnbtA_tag","menuHeader":"opus__ZnbtA_menuHeader"};
|
|
43489
43662
|
|
|
43490
43663
|
// ../../components/NoteTag/NoteTag.tsx
|
|
43491
43664
|
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
@@ -43635,7 +43808,7 @@ function NoteTagPicker({
|
|
|
43635
43808
|
}
|
|
43636
43809
|
|
|
43637
43810
|
// ../../components/NoteComposer/NoteComposer.module.css
|
|
43638
|
-
var NoteComposer_default = {"
|
|
43811
|
+
var NoteComposer_default = {"saveButton":"opus_pQVlNo_saveButton","textarea":"opus_pQVlNo_textarea","tools":"opus_pQVlNo_tools","selectedTags":"opus_pQVlNo_selectedTags","toolButton":"opus_pQVlNo_toolButton","root":"opus_pQVlNo_root","footer":"opus_pQVlNo_footer"};
|
|
43639
43812
|
|
|
43640
43813
|
// ../../components/NoteComposer/NoteComposer.tsx
|
|
43641
43814
|
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
@@ -43839,7 +44012,7 @@ var import_react73 = require("react");
|
|
|
43839
44012
|
var import_react72 = require("react");
|
|
43840
44013
|
|
|
43841
44014
|
// ../../components/ContentTimeline/ContentTimeline.module.css
|
|
43842
|
-
var ContentTimeline_default = {"
|
|
44015
|
+
var ContentTimeline_default = {"tag":"opus_vApy-v_tag","title":"opus_vApy-v_title","children":"opus_vApy-v_children","itemFooter":"opus_vApy-v_itemFooter","item":"opus_vApy-v_item","dot":"opus_vApy-v_dot","line":"opus_vApy-v_line","time":"opus_vApy-v_time","head":"opus_vApy-v_head","description":"opus_vApy-v_description","rail":"opus_vApy-v_rail","tags":"opus_vApy-v_tags","statusDot":"opus_vApy-v_statusDot","itemAction":"opus_vApy-v_itemAction","metaRow":"opus_vApy-v_metaRow","content":"opus_vApy-v_content","markerSlot":"opus_vApy-v_markerSlot","body":"opus_vApy-v_body","list":"opus_vApy-v_list","groupLabel":"opus_vApy-v_groupLabel"};
|
|
43843
44016
|
|
|
43844
44017
|
// ../../components/ContentTimeline/ContentTimeline.tsx
|
|
43845
44018
|
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
@@ -43956,7 +44129,7 @@ function ContentTimeline({ groups, items, onItemClick, onItemDoubleClick, varian
|
|
|
43956
44129
|
}
|
|
43957
44130
|
|
|
43958
44131
|
// ../../components/NotesActivity/NotesActivity.module.css
|
|
43959
|
-
var NotesActivity_default = {"
|
|
44132
|
+
var NotesActivity_default = {"tab":"opus_ThZ-Bi_tab","addNoteButton":"opus_ThZ-Bi_addNoteButton","footer":"opus_ThZ-Bi_footer","replyComposer":"opus_ThZ-Bi_replyComposer","replyInputShell":"opus_ThZ-Bi_replyInputShell","threadItems":"opus_ThZ-Bi_threadItems","composerClose":"opus_ThZ-Bi_composerClose","replyToolButton":"opus_ThZ-Bi_replyToolButton","replyBlock":"opus_ThZ-Bi_replyBlock","composer":"opus_ThZ-Bi_composer","threadConnectors":"opus_ThZ-Bi_threadConnectors","replyTags":"opus_ThZ-Bi_replyTags","tabIcon":"opus_ThZ-Bi_tabIcon","composerPanel":"opus_ThZ-Bi_composerPanel","notesActivityEnterFromLeft":"opus_ThZ-Bi_notesActivityEnterFromLeft","notesActivityEnterFromRight":"opus_ThZ-Bi_notesActivityEnterFromRight","tabs":"opus_ThZ-Bi_tabs","replyTools":"opus_ThZ-Bi_replyTools","footerIcon":"opus_ThZ-Bi_footerIcon","composerBar":"opus_ThZ-Bi_composerBar","root":"opus_ThZ-Bi_root","tabsRow":"opus_ThZ-Bi_tabsRow","replyInput":"opus_ThZ-Bi_replyInput","footerAction":"opus_ThZ-Bi_footerAction","feed":"opus_ThZ-Bi_feed"};
|
|
43960
44133
|
|
|
43961
44134
|
// ../../components/NotesActivity/NotesActivity.tsx
|
|
43962
44135
|
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
@@ -44737,7 +44910,7 @@ function NotesActivity({
|
|
|
44737
44910
|
var import_react74 = require("react");
|
|
44738
44911
|
|
|
44739
44912
|
// ../../components/TopPerformingUsers/TopPerformingUsers.module.css
|
|
44740
|
-
var TopPerformingUsers_default = {"
|
|
44913
|
+
var TopPerformingUsers_default = {"title":"opus_sYx0a6_title","itemAction":"opus_sYx0a6_itemAction","row":"opus_sYx0a6_row","item":"opus_sYx0a6_item","list":"opus_sYx0a6_list","root":"opus_sYx0a6_root","name":"opus_sYx0a6_name","barTrack":"opus_sYx0a6_barTrack","value":"opus_sYx0a6_value","header":"opus_sYx0a6_header","barFill":"opus_sYx0a6_barFill"};
|
|
44741
44914
|
|
|
44742
44915
|
// ../../components/TopPerformingUsers/TopPerformingUsers.tsx
|
|
44743
44916
|
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
@@ -44796,7 +44969,7 @@ function TopPerformingUsers({
|
|
|
44796
44969
|
}
|
|
44797
44970
|
|
|
44798
44971
|
// ../../components/UserProfileWidget/UserProfileWidget.module.css
|
|
44799
|
-
var UserProfileWidget_default = {"chevronButton":"opus_zjR1aT_chevronButton","
|
|
44972
|
+
var UserProfileWidget_default = {"chevronButton":"opus_zjR1aT_chevronButton","chevron":"opus_zjR1aT_chevron","avatarButton":"opus_zjR1aT_avatarButton","name":"opus_zjR1aT_name","role":"opus_zjR1aT_role","root":"opus_zjR1aT_root","copy":"opus_zjR1aT_copy"};
|
|
44800
44973
|
|
|
44801
44974
|
// ../../components/UserProfileWidget/UserProfileWidget.tsx
|
|
44802
44975
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
@@ -44964,7 +45137,7 @@ function ProfilePhotoUploadModal({
|
|
|
44964
45137
|
}
|
|
44965
45138
|
|
|
44966
45139
|
// ../../components/ImageCropUploadWidget/ImageCropUploadWidget.module.css
|
|
44967
|
-
var ImageCropUploadWidget_default = {"root":"opus_jO9vJQ_root","
|
|
45140
|
+
var ImageCropUploadWidget_default = {"root":"opus_jO9vJQ_root","field":"opus_jO9vJQ_field","title":"opus_jO9vJQ_title"};
|
|
44968
45141
|
|
|
44969
45142
|
// ../../components/ImageCropUploadWidget/ImageCropUploadWidget.tsx
|
|
44970
45143
|
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
@@ -45012,7 +45185,7 @@ function ImageCropUploadWidget({
|
|
|
45012
45185
|
var import_react76 = require("react");
|
|
45013
45186
|
|
|
45014
45187
|
// ../../components/PropertyInspector/PropertyInspector.module.css
|
|
45015
|
-
var PropertyInspector_default = {"
|
|
45188
|
+
var PropertyInspector_default = {"search":"opus_IrN8Z8_search","group":"opus_IrN8Z8_group","select":"opus_IrN8Z8_select","input":"opus_IrN8Z8_input","label":"opus_IrN8Z8_label","root":"opus_IrN8Z8_root","row":"opus_IrN8Z8_row","groupHeader":"opus_IrN8Z8_groupHeader","rows":"opus_IrN8Z8_rows","valueCell":"opus_IrN8Z8_valueCell","value":"opus_IrN8Z8_value","checkbox":"opus_IrN8Z8_checkbox","searchRow":"opus_IrN8Z8_searchRow"};
|
|
45016
45189
|
|
|
45017
45190
|
// ../../components/PropertyInspector/PropertyInspector.tsx
|
|
45018
45191
|
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
@@ -45132,7 +45305,7 @@ function PropertyInspector({ items, onChange, searchable = false }) {
|
|
|
45132
45305
|
var import_react77 = require("react");
|
|
45133
45306
|
|
|
45134
45307
|
// ../../components/FilterBuilder/FilterBuilder.module.css
|
|
45135
|
-
var FilterBuilder_default = {"
|
|
45308
|
+
var FilterBuilder_default = {"joiner":"opus_CtJDHh_joiner","select":"opus_CtJDHh_select","header":"opus_CtJDHh_header","add":"opus_CtJDHh_add","remove":"opus_CtJDHh_remove","output":"opus_CtJDHh_output","valuePlaceholder":"opus_CtJDHh_valuePlaceholder","row":"opus_CtJDHh_row","expression":"opus_CtJDHh_expression","title":"opus_CtJDHh_title","empty":"opus_CtJDHh_empty","joinerSpacer":"opus_CtJDHh_joinerSpacer","root":"opus_CtJDHh_root","input":"opus_CtJDHh_input","outputLabel":"opus_CtJDHh_outputLabel","payload":"opus_CtJDHh_payload","list":"opus_CtJDHh_list"};
|
|
45136
45309
|
|
|
45137
45310
|
// ../../components/FilterBuilder/FilterBuilder.tsx
|
|
45138
45311
|
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
@@ -45242,7 +45415,7 @@ function FilterBuilder({ conditions, fields, onChange }) {
|
|
|
45242
45415
|
var import_react78 = require("react");
|
|
45243
45416
|
|
|
45244
45417
|
// ../../components/QueryBuilder/QueryBuilder.module.css
|
|
45245
|
-
var QueryBuilder_default = {"
|
|
45418
|
+
var QueryBuilder_default = {"outputLabel":"opus_b7dZwd_outputLabel","combinator":"opus_b7dZwd_combinator","expression":"opus_b7dZwd_expression","payload":"opus_b7dZwd_payload","input":"opus_b7dZwd_input","output":"opus_b7dZwd_output","add":"opus_b7dZwd_add","select":"opus_b7dZwd_select","chipSpacer":"opus_b7dZwd_chipSpacer","toolbar":"opus_b7dZwd_toolbar","row":"opus_b7dZwd_row","root":"opus_b7dZwd_root","list":"opus_b7dZwd_list","remove":"opus_b7dZwd_remove","selectNarrow":"opus_b7dZwd_selectNarrow","chip":"opus_b7dZwd_chip","empty":"opus_b7dZwd_empty"};
|
|
45246
45419
|
|
|
45247
45420
|
// ../../components/QueryBuilder/QueryBuilder.tsx
|
|
45248
45421
|
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
@@ -45369,7 +45542,7 @@ function QueryBuilder({ fields, group, onChange }) {
|
|
|
45369
45542
|
var import_react79 = require("react");
|
|
45370
45543
|
|
|
45371
45544
|
// ../../components/RuleBuilder/RuleBuilder.module.css
|
|
45372
|
-
var RuleBuilder_default = {"
|
|
45545
|
+
var RuleBuilder_default = {"input":"opus_O61tUk_input","outputLabel":"opus_O61tUk_outputLabel","payload":"opus_O61tUk_payload","field":"opus_O61tUk_field","add":"opus_O61tUk_add","list":"opus_O61tUk_list","cardTop":"opus_O61tUk_cardTop","output":"opus_O61tUk_output","action":"opus_O61tUk_action","title":"opus_O61tUk_title","name":"opus_O61tUk_name","root":"opus_O61tUk_root","subtitle":"opus_O61tUk_subtitle","empty":"opus_O61tUk_empty","select":"opus_O61tUk_select","card":"opus_O61tUk_card","header":"opus_O61tUk_header","priority":"opus_O61tUk_priority","enabled":"opus_O61tUk_enabled","actions":"opus_O61tUk_actions","expression":"opus_O61tUk_expression"};
|
|
45373
45546
|
|
|
45374
45547
|
// ../../components/RuleBuilder/RuleBuilder.tsx
|
|
45375
45548
|
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
@@ -45512,7 +45685,7 @@ function RuleBuilder({ onChange, rules }) {
|
|
|
45512
45685
|
}
|
|
45513
45686
|
|
|
45514
45687
|
// ../../components/PermissionsMatrix/PermissionsMatrix.module.css
|
|
45515
|
-
var PermissionsMatrix_default = {"
|
|
45688
|
+
var PermissionsMatrix_default = {"table":"opus_x-xBrX_table","cell":"opus_x-xBrX_cell","rowHead":"opus_x-xBrX_rowHead","head":"opus_x-xBrX_head","scroll":"opus_x-xBrX_scroll","corner":"opus_x-xBrX_corner","root":"opus_x-xBrX_root","select":"opus_x-xBrX_select"};
|
|
45516
45689
|
|
|
45517
45690
|
// ../../components/PermissionsMatrix/PermissionsMatrix.tsx
|
|
45518
45691
|
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
@@ -45548,7 +45721,7 @@ function PermissionsMatrix({ onChange, permissions, resources, roles }) {
|
|
|
45548
45721
|
var import_react80 = require("react");
|
|
45549
45722
|
|
|
45550
45723
|
// ../../components/DualListBuilder/DualListBuilder.module.css
|
|
45551
|
-
var DualListBuilder_default = {"
|
|
45724
|
+
var DualListBuilder_default = {"list":"opus_P6crEX_list","searchRow":"opus_P6crEX_searchRow","columns":"opus_P6crEX_columns","outputLabel":"opus_P6crEX_outputLabel","itemActive":"opus_P6crEX_itemActive","columnTitle":"opus_P6crEX_columnTitle","item":"opus_P6crEX_item","column":"opus_P6crEX_column","expression":"opus_P6crEX_expression","controls":"opus_P6crEX_controls","control":"opus_P6crEX_control","root":"opus_P6crEX_root","output":"opus_P6crEX_output","count":"opus_P6crEX_count","search":"opus_P6crEX_search","payload":"opus_P6crEX_payload"};
|
|
45552
45725
|
|
|
45553
45726
|
// ../../components/DualListBuilder/DualListBuilder.tsx
|
|
45554
45727
|
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
@@ -45677,7 +45850,7 @@ function ListColumn2({
|
|
|
45677
45850
|
var import_react81 = require("react");
|
|
45678
45851
|
|
|
45679
45852
|
// ../../components/Scheduler/Scheduler.module.css
|
|
45680
|
-
var Scheduler_default = {"
|
|
45853
|
+
var Scheduler_default = {"corner":"opus_ZqbdMc_corner","eventTitle":"opus_ZqbdMc_eventTitle","event":"opus_ZqbdMc_event","dayHead":"opus_ZqbdMc_dayHead","eventTime":"opus_ZqbdMc_eventTime","time":"opus_ZqbdMc_time","cell":"opus_ZqbdMc_cell","grid":"opus_ZqbdMc_grid","root":"opus_ZqbdMc_root"};
|
|
45681
45854
|
|
|
45682
45855
|
// ../../components/Scheduler/Scheduler.tsx
|
|
45683
45856
|
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
@@ -45745,7 +45918,7 @@ function formatHour(hour) {
|
|
|
45745
45918
|
var import_react82 = require("react");
|
|
45746
45919
|
|
|
45747
45920
|
// ../../components/KanbanBoard/KanbanBoard.module.css
|
|
45748
|
-
var KanbanBoard_default = {"
|
|
45921
|
+
var KanbanBoard_default = {"cardMeta":"opus_EUh8ei_cardMeta","root":"opus_EUh8ei_root","columnHeader":"opus_EUh8ei_columnHeader","columnTitle":"opus_EUh8ei_columnTitle","cards":"opus_EUh8ei_cards","count":"opus_EUh8ei_count","cardTitle":"opus_EUh8ei_cardTitle","card":"opus_EUh8ei_card","column":"opus_EUh8ei_column"};
|
|
45749
45922
|
|
|
45750
45923
|
// ../../components/KanbanBoard/KanbanBoard.tsx
|
|
45751
45924
|
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
@@ -45859,7 +46032,7 @@ function sortEventsByTime(events) {
|
|
|
45859
46032
|
var import_react83 = require("react");
|
|
45860
46033
|
|
|
45861
46034
|
// ../../components/Calendar/Calendar.module.css
|
|
45862
|
-
var Calendar_default = {"
|
|
46035
|
+
var Calendar_default = {"today":"opus_IjCc5M_today","dayModalHeading":"opus_IjCc5M_dayModalHeading","dayModalForm":"opus_IjCc5M_dayModalForm","select":"opus_IjCc5M_select","selected":"opus_IjCc5M_selected","nav":"opus_IjCc5M_nav","dot":"opus_IjCc5M_dot","dayModalItemTitle":"opus_IjCc5M_dayModalItemTitle","empty":"opus_IjCc5M_empty","moreEvents":"opus_IjCc5M_moreEvents","dayModalFieldRow":"opus_IjCc5M_dayModalFieldRow","eventLabel":"opus_IjCc5M_eventLabel","dayModalList":"opus_IjCc5M_dayModalList","dayModalItemBody":"opus_IjCc5M_dayModalItemBody","grid":"opus_IjCc5M_grid","event":"opus_IjCc5M_event","dayModal":"opus_IjCc5M_dayModal","dayModalItemMeta":"opus_IjCc5M_dayModalItemMeta","dayModalItemTime":"opus_IjCc5M_dayModalItemTime","pickerField":"opus_IjCc5M_pickerField","weekday":"opus_IjCc5M_weekday","dayModalDot":"opus_IjCc5M_dayModalDot","srOnly":"opus_IjCc5M_srOnly","dayModalSection":"opus_IjCc5M_dayModalSection","day":"opus_IjCc5M_day","picker":"opus_IjCc5M_picker","dayModalNotice":"opus_IjCc5M_dayModalNotice","dayModalItem":"opus_IjCc5M_dayModalItem","dayModalEmpty":"opus_IjCc5M_dayModalEmpty","dayNumber":"opus_IjCc5M_dayNumber","yearSelect":"opus_IjCc5M_yearSelect","weekdays":"opus_IjCc5M_weekdays","monthSelect":"opus_IjCc5M_monthSelect","label":"opus_IjCc5M_label","events":"opus_IjCc5M_events","root":"opus_IjCc5M_root","toolbar":"opus_IjCc5M_toolbar"};
|
|
45863
46036
|
|
|
45864
46037
|
// ../../components/Calendar/CalendarDayModal.tsx
|
|
45865
46038
|
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
@@ -46186,7 +46359,7 @@ function Calendar({
|
|
|
46186
46359
|
var import_react85 = require("react");
|
|
46187
46360
|
|
|
46188
46361
|
// ../../components/ResourcePlanner/ResourcePlanner.module.css
|
|
46189
|
-
var ResourcePlanner_default = {"
|
|
46362
|
+
var ResourcePlanner_default = {"block":"opus_9Mof8o_block","corner":"opus_9Mof8o_corner","row":"opus_9Mof8o_row","hour":"opus_9Mof8o_hour","track":"opus_9Mof8o_track","resource":"opus_9Mof8o_resource","lanes":"opus_9Mof8o_lanes","root":"opus_9Mof8o_root","header":"opus_9Mof8o_header","scroll":"opus_9Mof8o_scroll","lane":"opus_9Mof8o_lane"};
|
|
46190
46363
|
|
|
46191
46364
|
// ../../components/ResourcePlanner/ResourcePlanner.tsx
|
|
46192
46365
|
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
@@ -46261,7 +46434,7 @@ function resolveContactDetailsContact(contact, defaults) {
|
|
|
46261
46434
|
}
|
|
46262
46435
|
|
|
46263
46436
|
// ../../components/ContactDetails/ContactIdentityCard.module.css
|
|
46264
|
-
var ContactIdentityCard_default = {"
|
|
46437
|
+
var ContactIdentityCard_default = {"companyList":"opus_9xh2Bk_companyList","identity":"opus_9xh2Bk_identity","headline":"opus_9xh2Bk_headline","avatarWrap":"opus_9xh2Bk_avatarWrap","avatarEdit":"opus_9xh2Bk_avatarEdit","primaryMark":"opus_9xh2Bk_primaryMark","companyCopy":"opus_9xh2Bk_companyCopy","companyIcon":"opus_9xh2Bk_companyIcon","status":"opus_9xh2Bk_status","identityCard":"opus_9xh2Bk_identityCard"};
|
|
46265
46438
|
|
|
46266
46439
|
// ../../components/ContactDetails/ContactIdentityCard.tsx
|
|
46267
46440
|
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
@@ -46352,7 +46525,9 @@ var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
|
46352
46525
|
function MoreActionsMenu({
|
|
46353
46526
|
items,
|
|
46354
46527
|
label = "More actions",
|
|
46355
|
-
onSelect
|
|
46528
|
+
onSelect,
|
|
46529
|
+
showPointer = true,
|
|
46530
|
+
triggerGap = 8
|
|
46356
46531
|
}) {
|
|
46357
46532
|
const dropdownItems = items.map((item) => ({
|
|
46358
46533
|
destructive: item.destructive,
|
|
@@ -46375,13 +46550,15 @@ function MoreActionsMenu({
|
|
|
46375
46550
|
onSelect == null ? void 0 : onSelect(item);
|
|
46376
46551
|
},
|
|
46377
46552
|
placement: "bottom-end",
|
|
46553
|
+
showPointer,
|
|
46554
|
+
triggerGap,
|
|
46378
46555
|
trigger: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(Button, { "aria-label": label, className: MoreActionsMenu_default.trigger, variant: "dark", children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(CatalogIcon, { iconName: "ellipsis-vertical" }) })
|
|
46379
46556
|
}
|
|
46380
46557
|
);
|
|
46381
46558
|
}
|
|
46382
46559
|
|
|
46383
46560
|
// ../../components/ContactDetails/ContactSummaryCard.module.css
|
|
46384
|
-
var ContactSummaryCard_default = {"
|
|
46561
|
+
var ContactSummaryCard_default = {"owner":"opus_8ccRnS_owner","tags":"opus_8ccRnS_tags","companyEmployment":"opus_8ccRnS_companyEmployment","detailIcon":"opus_8ccRnS_detailIcon","securityField":"opus_8ccRnS_securityField","securityAction":"opus_8ccRnS_securityAction","detailItem":"opus_8ccRnS_detailItem","detailsGrid":"opus_8ccRnS_detailsGrid","summaryPanel":"opus_8ccRnS_summaryPanel","detailsCard":"opus_8ccRnS_detailsCard","summaryTabs":"opus_8ccRnS_summaryTabs","detailsColumn":"opus_8ccRnS_detailsColumn","companies":"opus_8ccRnS_companies","statusValue":"opus_8ccRnS_statusValue"};
|
|
46385
46562
|
|
|
46386
46563
|
// ../../components/ContactDetails/ContactSummaryCard.tsx
|
|
46387
46564
|
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
@@ -46876,7 +47053,7 @@ var import_react90 = require("react");
|
|
|
46876
47053
|
var import_react89 = require("react");
|
|
46877
47054
|
|
|
46878
47055
|
// ../../components/CompactDocuments/CompactDocuments.module.css
|
|
46879
|
-
var CompactDocuments_default = {"
|
|
47056
|
+
var CompactDocuments_default = {"card":"opus_I18Pjx_card","columnTitle":"opus_I18Pjx_columnTitle","nodeIcon":"opus_I18Pjx_nodeIcon","viewport":"opus_I18Pjx_viewport","list":"opus_I18Pjx_list","listRow":"opus_I18Pjx_listRow","empty":"opus_I18Pjx_empty","grid":"opus_I18Pjx_grid","nodeCopy":"opus_I18Pjx_nodeCopy","controls":"opus_I18Pjx_controls","viewOptions":"opus_I18Pjx_viewOptions","root":"opus_I18Pjx_root","columnRow":"opus_I18Pjx_columnRow","cardTop":"opus_I18Pjx_cardTop","breadcrumb":"opus_I18Pjx_breadcrumb","columns":"opus_I18Pjx_columns","column":"opus_I18Pjx_column","toolbar":"opus_I18Pjx_toolbar"};
|
|
46880
47057
|
|
|
46881
47058
|
// ../../components/CompactDocuments/CompactDocuments.tsx
|
|
46882
47059
|
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
@@ -47050,7 +47227,7 @@ function CompactDocuments({
|
|
|
47050
47227
|
}
|
|
47051
47228
|
|
|
47052
47229
|
// ../../components/ContactDetails/ContactNotesActivity.module.css
|
|
47053
|
-
var ContactNotesActivity_default = {"
|
|
47230
|
+
var ContactNotesActivity_default = {"scrollPanel":"opus_542jf0_scrollPanel","workspaceTabs":"opus_542jf0_workspaceTabs","compactDocuments":"opus_542jf0_compactDocuments","tabsCardLine":"opus_542jf0_tabsCardLine","cardNotesPanel":"opus_542jf0_cardNotesPanel","cardNotesPanelContent":"opus_542jf0_cardNotesPanelContent","emptyPanel":"opus_542jf0_emptyPanel","workspaceAction":"opus_542jf0_workspaceAction","tabsCardCard":"opus_542jf0_tabsCardCard","notesActivity":"opus_542jf0_notesActivity"};
|
|
47054
47231
|
|
|
47055
47232
|
// ../../components/ContactDetails/ContactNotesActivity.tsx
|
|
47056
47233
|
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
@@ -47302,7 +47479,7 @@ function CompanyLogoUploadModal({
|
|
|
47302
47479
|
}
|
|
47303
47480
|
|
|
47304
47481
|
// ../../components/CompanyDetails/CompanyIdentityCard.module.css
|
|
47305
|
-
var CompanyIdentityCard_default = {"
|
|
47482
|
+
var CompanyIdentityCard_default = {"identityCard":"opus_VeicQh_identityCard","primaryMark":"opus_VeicQh_primaryMark","status":"opus_VeicQh_status","logo":"opus_VeicQh_logo","identity":"opus_VeicQh_identity","companyCopy":"opus_VeicQh_companyCopy","avatarEdit":"opus_VeicQh_avatarEdit","logoFrame":"opus_VeicQh_logoFrame","headline":"opus_VeicQh_headline","avatarWrap":"opus_VeicQh_avatarWrap","companyList":"opus_VeicQh_companyList","companyIcon":"opus_VeicQh_companyIcon"};
|
|
47306
47483
|
|
|
47307
47484
|
// ../../components/CompanyDetails/CompanyIdentityCard.tsx
|
|
47308
47485
|
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
@@ -47401,7 +47578,7 @@ function resolveCompanyDetailsCompany(company, defaults) {
|
|
|
47401
47578
|
}
|
|
47402
47579
|
|
|
47403
47580
|
// ../../components/CompanyDetails/CompanySummaryCard.module.css
|
|
47404
|
-
var CompanySummaryCard_default = {"
|
|
47581
|
+
var CompanySummaryCard_default = {"tags":"opus_O7TkMw_tags","branchesEmpty":"opus_O7TkMw_branchesEmpty","summaryTabs":"opus_O7TkMw_summaryTabs","detailIcon":"opus_O7TkMw_detailIcon","detailsGrid":"opus_O7TkMw_detailsGrid","statusValue":"opus_O7TkMw_statusValue","securityField":"opus_O7TkMw_securityField","securityAction":"opus_O7TkMw_securityAction","companies":"opus_O7TkMw_companies","detailsCard":"opus_O7TkMw_detailsCard","summaryPanel":"opus_O7TkMw_summaryPanel","companyEmployment":"opus_O7TkMw_companyEmployment","branchName":"opus_O7TkMw_branchName","detailsColumn":"opus_O7TkMw_detailsColumn","owner":"opus_O7TkMw_owner","detailItem":"opus_O7TkMw_detailItem"};
|
|
47405
47582
|
|
|
47406
47583
|
// ../../components/CompanyDetails/CompanySummaryCard.tsx
|
|
47407
47584
|
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
@@ -47847,7 +48024,7 @@ function CompanyDetails({
|
|
|
47847
48024
|
var import_react94 = require("react");
|
|
47848
48025
|
|
|
47849
48026
|
// ../../components/CompanyDetails/CompanyNotesActivity.module.css
|
|
47850
|
-
var CompanyNotesActivity_default = {"
|
|
48027
|
+
var CompanyNotesActivity_default = {"workspaceTabs":"opus_dp6pcp_workspaceTabs","tabsCardCard":"opus_dp6pcp_tabsCardCard","compactDocuments":"opus_dp6pcp_compactDocuments","cardNotesPanel":"opus_dp6pcp_cardNotesPanel","contactsList":"opus_dp6pcp_contactsList","scrollPanel":"opus_dp6pcp_scrollPanel","contactCopy":"opus_dp6pcp_contactCopy","emptyPanel":"opus_dp6pcp_emptyPanel","tabsCardLine":"opus_dp6pcp_tabsCardLine","contactHeadline":"opus_dp6pcp_contactHeadline","cardNotesPanelContent":"opus_dp6pcp_cardNotesPanelContent","workspaceAction":"opus_dp6pcp_workspaceAction","contactRow":"opus_dp6pcp_contactRow","notesActivity":"opus_dp6pcp_notesActivity","contactMeta":"opus_dp6pcp_contactMeta"};
|
|
47851
48028
|
|
|
47852
48029
|
// ../../components/CompanyDetails/CompanyNotesActivity.tsx
|
|
47853
48030
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
@@ -48037,7 +48214,7 @@ function CompanyNotesActivity({
|
|
|
48037
48214
|
var import_react95 = require("react");
|
|
48038
48215
|
|
|
48039
48216
|
// ../../components/TreeView/TreeView.module.css
|
|
48040
|
-
var TreeView_default = {"
|
|
48217
|
+
var TreeView_default = {"leafMark":"opus_NlkzXy_leafMark","children":"opus_NlkzXy_children","toggle":"opus_NlkzXy_toggle","label":"opus_NlkzXy_label","tree":"opus_NlkzXy_tree","node":"opus_NlkzXy_node","row":"opus_NlkzXy_row"};
|
|
48041
48218
|
|
|
48042
48219
|
// ../../components/TreeView/TreeView.tsx
|
|
48043
48220
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
@@ -48117,7 +48294,7 @@ function TreeView({ defaultExpandedIds, nodes }) {
|
|
|
48117
48294
|
}
|
|
48118
48295
|
|
|
48119
48296
|
// ../../components/MasonryGrid/MasonryGrid.module.css
|
|
48120
|
-
var MasonryGrid_default = {"
|
|
48297
|
+
var MasonryGrid_default = {"title":"opus_Fxxd7-_title","grid":"opus_Fxxd7-_grid","body":"opus_Fxxd7-_body","card":"opus_Fxxd7-_card"};
|
|
48121
48298
|
|
|
48122
48299
|
// ../../components/MasonryGrid/MasonryGrid.tsx
|
|
48123
48300
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
@@ -48162,7 +48339,7 @@ function MasonryGrid({ columns = 3, gap = 12, items, onItemClick }) {
|
|
|
48162
48339
|
var import_react96 = require("react");
|
|
48163
48340
|
|
|
48164
48341
|
// ../../components/JsonViewer/JsonViewer.module.css
|
|
48165
|
-
var JsonViewer_default = {"
|
|
48342
|
+
var JsonViewer_default = {"key":"opus_uLDgXq_key","toggleLine":"opus_uLDgXq_toggleLine","number":"opus_uLDgXq_number","string":"opus_uLDgXq_string","boolean":"opus_uLDgXq_boolean","root":"opus_uLDgXq_root","summary":"opus_uLDgXq_summary","null":"opus_uLDgXq_null","chevron":"opus_uLDgXq_chevron","line":"opus_uLDgXq_line","block":"opus_uLDgXq_block","children":"opus_uLDgXq_children"};
|
|
48166
48343
|
|
|
48167
48344
|
// ../../components/JsonViewer/JsonViewer.tsx
|
|
48168
48345
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
@@ -48278,7 +48455,7 @@ function Icon({ label, name, size = "md", tone = "default" }) {
|
|
|
48278
48455
|
}
|
|
48279
48456
|
|
|
48280
48457
|
// ../../components/Spinner/Spinner.module.css
|
|
48281
|
-
var Spinner_default = {"spinner":"opus_g5cd4Q_spinner","opus-spinner-rotate":"opus_g5cd4Q_opus-spinner-rotate"
|
|
48458
|
+
var Spinner_default = {"ring":"opus_g5cd4Q_ring","spinner":"opus_g5cd4Q_spinner","opus-spinner-rotate":"opus_g5cd4Q_opus-spinner-rotate"};
|
|
48282
48459
|
|
|
48283
48460
|
// ../../components/Spinner/Spinner.tsx
|
|
48284
48461
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
@@ -48296,11 +48473,111 @@ function Spinner({ label = "Loading", size = "md", tone = "accent" }) {
|
|
|
48296
48473
|
);
|
|
48297
48474
|
}
|
|
48298
48475
|
|
|
48299
|
-
// ../../components/
|
|
48476
|
+
// ../../components/fields/useFormState/useFormState.ts
|
|
48300
48477
|
var import_react97 = require("react");
|
|
48478
|
+
function useFormState({
|
|
48479
|
+
defaults,
|
|
48480
|
+
validate
|
|
48481
|
+
}) {
|
|
48482
|
+
const [baseline, setBaseline] = (0, import_react97.useState)(defaults);
|
|
48483
|
+
const [values, setValues] = (0, import_react97.useState)(defaults);
|
|
48484
|
+
const [touchedMap, setTouchedMap] = (0, import_react97.useState)({});
|
|
48485
|
+
const errors = (0, import_react97.useMemo)(
|
|
48486
|
+
() => {
|
|
48487
|
+
var _a2;
|
|
48488
|
+
return (_a2 = validate == null ? void 0 : validate(values)) != null ? _a2 : {};
|
|
48489
|
+
},
|
|
48490
|
+
[validate, values]
|
|
48491
|
+
);
|
|
48492
|
+
const setValue = (0, import_react97.useCallback)((name, value) => {
|
|
48493
|
+
setValues((previous) => __spreadProps(__spreadValues({}, previous), { [name]: value }));
|
|
48494
|
+
setTouchedMap((previous) => __spreadProps(__spreadValues({}, previous), { [name]: true }));
|
|
48495
|
+
}, []);
|
|
48496
|
+
const setTouched = (0, import_react97.useCallback)((name, touched = true) => {
|
|
48497
|
+
setTouchedMap((previous) => __spreadProps(__spreadValues({}, previous), { [name]: touched }));
|
|
48498
|
+
}, []);
|
|
48499
|
+
const touchAll = (0, import_react97.useCallback)(() => {
|
|
48500
|
+
setTouchedMap((previous) => {
|
|
48501
|
+
const next = __spreadValues({}, previous);
|
|
48502
|
+
for (const key of Object.keys(values)) {
|
|
48503
|
+
next[key] = true;
|
|
48504
|
+
}
|
|
48505
|
+
return next;
|
|
48506
|
+
});
|
|
48507
|
+
}, [values]);
|
|
48508
|
+
const reset = (0, import_react97.useCallback)(
|
|
48509
|
+
(nextDefaults) => {
|
|
48510
|
+
const target = nextDefaults != null ? nextDefaults : baseline;
|
|
48511
|
+
setBaseline(target);
|
|
48512
|
+
setValues(target);
|
|
48513
|
+
setTouchedMap({});
|
|
48514
|
+
},
|
|
48515
|
+
[baseline]
|
|
48516
|
+
);
|
|
48517
|
+
const register = (0, import_react97.useCallback)(
|
|
48518
|
+
(name) => ({
|
|
48519
|
+
name: String(name),
|
|
48520
|
+
value: values[name],
|
|
48521
|
+
onBlur: () => setTouched(name),
|
|
48522
|
+
onChange: (event) => setValue(name, event.target.value)
|
|
48523
|
+
}),
|
|
48524
|
+
[setTouched, setValue, values]
|
|
48525
|
+
);
|
|
48526
|
+
const registerCheckbox = (0, import_react97.useCallback)(
|
|
48527
|
+
(name) => ({
|
|
48528
|
+
name: String(name),
|
|
48529
|
+
checked: Boolean(values[name]),
|
|
48530
|
+
onBlur: () => setTouched(name),
|
|
48531
|
+
onChange: (event) => setValue(name, event.target.checked)
|
|
48532
|
+
}),
|
|
48533
|
+
[setTouched, setValue, values]
|
|
48534
|
+
);
|
|
48535
|
+
const fields = (0, import_react97.useMemo)(() => {
|
|
48536
|
+
const entries = Object.keys(values).map((key) => {
|
|
48537
|
+
const name = key;
|
|
48538
|
+
return [
|
|
48539
|
+
name,
|
|
48540
|
+
__spreadValues({
|
|
48541
|
+
value: values[name],
|
|
48542
|
+
defaultValue: baseline[name],
|
|
48543
|
+
dirty: values[name] !== baseline[name],
|
|
48544
|
+
touched: Boolean(touchedMap[name])
|
|
48545
|
+
}, errors[name] ? { error: errors[name] } : {})
|
|
48546
|
+
];
|
|
48547
|
+
});
|
|
48548
|
+
return Object.fromEntries(entries);
|
|
48549
|
+
}, [baseline, errors, touchedMap, values]);
|
|
48550
|
+
const dirtyFields = (0, import_react97.useMemo)(
|
|
48551
|
+
() => Object.keys(fields).filter((name) => fields[name].dirty),
|
|
48552
|
+
[fields]
|
|
48553
|
+
);
|
|
48554
|
+
const touchedFields = (0, import_react97.useMemo)(
|
|
48555
|
+
() => Object.keys(fields).filter((name) => fields[name].touched),
|
|
48556
|
+
[fields]
|
|
48557
|
+
);
|
|
48558
|
+
return {
|
|
48559
|
+
values,
|
|
48560
|
+
fields,
|
|
48561
|
+
errors,
|
|
48562
|
+
dirtyFields,
|
|
48563
|
+
touchedFields,
|
|
48564
|
+
isDirty: dirtyFields.length > 0,
|
|
48565
|
+
isTouched: touchedFields.length > 0,
|
|
48566
|
+
isValid: Object.keys(errors).length === 0,
|
|
48567
|
+
setValue,
|
|
48568
|
+
setTouched,
|
|
48569
|
+
touchAll,
|
|
48570
|
+
reset,
|
|
48571
|
+
register,
|
|
48572
|
+
registerCheckbox
|
|
48573
|
+
};
|
|
48574
|
+
}
|
|
48575
|
+
|
|
48576
|
+
// ../../components/Clock/Clock.tsx
|
|
48577
|
+
var import_react98 = require("react");
|
|
48301
48578
|
|
|
48302
48579
|
// ../../components/Clock/Clock.module.css
|
|
48303
|
-
var Clock_default = {"
|
|
48580
|
+
var Clock_default = {"number":"opus_Lj91mC_number","minuteHand":"opus_Lj91mC_minuteHand","digitalTime":"opus_Lj91mC_digitalTime","secondHand":"opus_Lj91mC_secondHand","face":"opus_Lj91mC_face","loading":"opus_Lj91mC_loading","hourHand":"opus_Lj91mC_hourHand","root":"opus_Lj91mC_root","centreDot":"opus_Lj91mC_centreDot","centreDotInner":"opus_Lj91mC_centreDotInner","date":"opus_Lj91mC_date","tick":"opus_Lj91mC_tick","hand":"opus_Lj91mC_hand"};
|
|
48304
48581
|
|
|
48305
48582
|
// ../../components/Clock/Clock.tsx
|
|
48306
48583
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
@@ -48310,8 +48587,8 @@ function Clock({
|
|
|
48310
48587
|
showDigital = true,
|
|
48311
48588
|
size = "md"
|
|
48312
48589
|
}) {
|
|
48313
|
-
const [time, setTime] = (0,
|
|
48314
|
-
(0,
|
|
48590
|
+
const [time, setTime] = (0, import_react98.useState)(null);
|
|
48591
|
+
(0, import_react98.useEffect)(() => {
|
|
48315
48592
|
setTime(/* @__PURE__ */ new Date());
|
|
48316
48593
|
const interval = window.setInterval(() => {
|
|
48317
48594
|
setTime(/* @__PURE__ */ new Date());
|
|
@@ -48408,33 +48685,264 @@ function Clock({
|
|
|
48408
48685
|
);
|
|
48409
48686
|
}
|
|
48410
48687
|
|
|
48688
|
+
// ../../components/FlipClock/FlipClock.tsx
|
|
48689
|
+
var import_react99 = require("react");
|
|
48690
|
+
|
|
48691
|
+
// ../../components/FlipClock/FlipClock.module.css
|
|
48692
|
+
var FlipClock_default = {"panelBottom":"opus_U6YEpK_panelBottom","leaf":"opus_U6YEpK_leaf","figure":"opus_U6YEpK_figure","leafFace":"opus_U6YEpK_leafFace","separator":"opus_U6YEpK_separator","pair":"opus_U6YEpK_pair","board":"opus_U6YEpK_board","glyph":"opus_U6YEpK_glyph","leafRear":"opus_U6YEpK_leafRear","leafFront":"opus_U6YEpK_leafFront","srOnly":"opus_U6YEpK_srOnly","date":"opus_U6YEpK_date","root":"opus_U6YEpK_root","probe":"opus_U6YEpK_probe","panelTop":"opus_U6YEpK_panelTop","rotor":"opus_U6YEpK_rotor","loading":"opus_U6YEpK_loading","colonPulse":"opus_U6YEpK_colonPulse","panel":"opus_U6YEpK_panel","leafFlip":"opus_U6YEpK_leafFlip"};
|
|
48693
|
+
|
|
48694
|
+
// ../../components/FlipClock/FlipClock.tsx
|
|
48695
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
48696
|
+
var FLIP_CLOCK_FRAME_RATE = 24;
|
|
48697
|
+
function frameFromDate(date) {
|
|
48698
|
+
return Math.floor(date.getMilliseconds() / (1e3 / FLIP_CLOCK_FRAME_RATE)) % FLIP_CLOCK_FRAME_RATE;
|
|
48699
|
+
}
|
|
48700
|
+
function measureInkNudge(glyph, figure) {
|
|
48701
|
+
glyph.style.transform = "none";
|
|
48702
|
+
const range2 = document.createRange();
|
|
48703
|
+
range2.selectNodeContents(glyph);
|
|
48704
|
+
const ink = range2.getBoundingClientRect();
|
|
48705
|
+
const box = figure.getBoundingClientRect();
|
|
48706
|
+
glyph.style.transform = "";
|
|
48707
|
+
if (ink.width < 1 || ink.height < 1 || box.height < 1) {
|
|
48708
|
+
return { x: 0, y: 0 };
|
|
48709
|
+
}
|
|
48710
|
+
return {
|
|
48711
|
+
x: box.left + box.width / 2 - (ink.left + ink.width / 2),
|
|
48712
|
+
y: box.top + box.height / 2 - (ink.top + ink.height / 2)
|
|
48713
|
+
};
|
|
48714
|
+
}
|
|
48715
|
+
function useFlipInkNudge(size) {
|
|
48716
|
+
const rootRef = (0, import_react99.useRef)(null);
|
|
48717
|
+
const probeGlyphRef = (0, import_react99.useRef)(null);
|
|
48718
|
+
const probeFigureRef = (0, import_react99.useRef)(null);
|
|
48719
|
+
const [nudge, setNudge] = (0, import_react99.useState)({ x: 0, y: 0 });
|
|
48720
|
+
(0, import_react99.useLayoutEffect)(() => {
|
|
48721
|
+
const root = rootRef.current;
|
|
48722
|
+
const glyph = probeGlyphRef.current;
|
|
48723
|
+
const figure = probeFigureRef.current;
|
|
48724
|
+
if (!root || !glyph || !figure) {
|
|
48725
|
+
return;
|
|
48726
|
+
}
|
|
48727
|
+
let frame = 0;
|
|
48728
|
+
const timeouts = [];
|
|
48729
|
+
const run = () => {
|
|
48730
|
+
window.cancelAnimationFrame(frame);
|
|
48731
|
+
frame = window.requestAnimationFrame(() => {
|
|
48732
|
+
const next = measureInkNudge(glyph, figure);
|
|
48733
|
+
setNudge(
|
|
48734
|
+
(prev) => Math.abs(prev.x - next.x) < 0.25 && Math.abs(prev.y - next.y) < 0.25 ? prev : next
|
|
48735
|
+
);
|
|
48736
|
+
});
|
|
48737
|
+
};
|
|
48738
|
+
const runSoon = () => {
|
|
48739
|
+
run();
|
|
48740
|
+
timeouts.push(window.setTimeout(run, 60));
|
|
48741
|
+
timeouts.push(window.setTimeout(run, 250));
|
|
48742
|
+
};
|
|
48743
|
+
runSoon();
|
|
48744
|
+
void document.fonts.ready.then(runSoon);
|
|
48745
|
+
document.fonts.addEventListener("loadingdone", runSoon);
|
|
48746
|
+
const rootObserver = new ResizeObserver(runSoon);
|
|
48747
|
+
rootObserver.observe(root);
|
|
48748
|
+
const themeObserver = new MutationObserver(runSoon);
|
|
48749
|
+
themeObserver.observe(document.documentElement, {
|
|
48750
|
+
attributes: true,
|
|
48751
|
+
attributeFilter: ["style", "class"]
|
|
48752
|
+
});
|
|
48753
|
+
return () => {
|
|
48754
|
+
window.cancelAnimationFrame(frame);
|
|
48755
|
+
timeouts.forEach((id) => window.clearTimeout(id));
|
|
48756
|
+
document.fonts.removeEventListener("loadingdone", runSoon);
|
|
48757
|
+
rootObserver.disconnect();
|
|
48758
|
+
themeObserver.disconnect();
|
|
48759
|
+
};
|
|
48760
|
+
}, [size]);
|
|
48761
|
+
return {
|
|
48762
|
+
rootRef,
|
|
48763
|
+
probeGlyphRef,
|
|
48764
|
+
probeFigureRef,
|
|
48765
|
+
inkStyle: {
|
|
48766
|
+
["--flip-ink-x"]: `${nudge.x}px`,
|
|
48767
|
+
["--flip-ink-y"]: `${nudge.y}px`
|
|
48768
|
+
}
|
|
48769
|
+
};
|
|
48770
|
+
}
|
|
48771
|
+
function FlipDigit({ durationMs, value }) {
|
|
48772
|
+
const [upper, setUpper] = (0, import_react99.useState)(value);
|
|
48773
|
+
const [lower, setLower] = (0, import_react99.useState)(value);
|
|
48774
|
+
const [from, setFrom] = (0, import_react99.useState)(value);
|
|
48775
|
+
const [to, setTo] = (0, import_react99.useState)(value);
|
|
48776
|
+
const [flipping, setFlipping] = (0, import_react99.useState)(false);
|
|
48777
|
+
const [flipKey, setFlipKey] = (0, import_react99.useState)(0);
|
|
48778
|
+
const upperRef = (0, import_react99.useRef)(value);
|
|
48779
|
+
const busyRef = (0, import_react99.useRef)(false);
|
|
48780
|
+
const pendingRef = (0, import_react99.useRef)(null);
|
|
48781
|
+
const durationRef = (0, import_react99.useRef)(durationMs);
|
|
48782
|
+
const timerRef = (0, import_react99.useRef)(0);
|
|
48783
|
+
(0, import_react99.useEffect)(() => {
|
|
48784
|
+
durationRef.current = durationMs;
|
|
48785
|
+
}, [durationMs]);
|
|
48786
|
+
(0, import_react99.useEffect)(() => {
|
|
48787
|
+
return () => window.clearTimeout(timerRef.current);
|
|
48788
|
+
}, []);
|
|
48789
|
+
(0, import_react99.useEffect)(() => {
|
|
48790
|
+
const finishFlip = (next) => {
|
|
48791
|
+
setLower(next);
|
|
48792
|
+
setFlipping(false);
|
|
48793
|
+
busyRef.current = false;
|
|
48794
|
+
const pending = pendingRef.current;
|
|
48795
|
+
pendingRef.current = null;
|
|
48796
|
+
if (pending !== null && pending !== upperRef.current) {
|
|
48797
|
+
startFlip(pending);
|
|
48798
|
+
}
|
|
48799
|
+
};
|
|
48800
|
+
const startFlip = (next) => {
|
|
48801
|
+
const previous = upperRef.current;
|
|
48802
|
+
if (next === previous) {
|
|
48803
|
+
return;
|
|
48804
|
+
}
|
|
48805
|
+
busyRef.current = true;
|
|
48806
|
+
setFrom(previous);
|
|
48807
|
+
setTo(next);
|
|
48808
|
+
setLower(previous);
|
|
48809
|
+
setUpper(next);
|
|
48810
|
+
upperRef.current = next;
|
|
48811
|
+
setFlipKey((key) => key + 1);
|
|
48812
|
+
setFlipping(true);
|
|
48813
|
+
window.clearTimeout(timerRef.current);
|
|
48814
|
+
timerRef.current = window.setTimeout(() => {
|
|
48815
|
+
finishFlip(next);
|
|
48816
|
+
}, durationRef.current);
|
|
48817
|
+
};
|
|
48818
|
+
if (value === upperRef.current) {
|
|
48819
|
+
return;
|
|
48820
|
+
}
|
|
48821
|
+
if (busyRef.current) {
|
|
48822
|
+
pendingRef.current = value;
|
|
48823
|
+
return;
|
|
48824
|
+
}
|
|
48825
|
+
startFlip(value);
|
|
48826
|
+
}, [value]);
|
|
48827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
|
|
48828
|
+
"div",
|
|
48829
|
+
{
|
|
48830
|
+
"aria-hidden": "true",
|
|
48831
|
+
className: FlipClock_default.rotor,
|
|
48832
|
+
"data-flipping": flipping ? "true" : "false",
|
|
48833
|
+
style: { ["--flip-duration"]: `${durationMs}ms` },
|
|
48834
|
+
children: [
|
|
48835
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `${FlipClock_default.panel} ${FlipClock_default.panelTop}`, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.figure, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.glyph, children: upper }) }) }),
|
|
48836
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `${FlipClock_default.panel} ${FlipClock_default.panelBottom}`, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.figure, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.glyph, children: lower }) }) }),
|
|
48837
|
+
flipping ? /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: FlipClock_default.leaf, children: [
|
|
48838
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `${FlipClock_default.leafFace} ${FlipClock_default.leafFront}`, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.figure, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.glyph, children: from }) }) }),
|
|
48839
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: `${FlipClock_default.leafFace} ${FlipClock_default.leafRear}`, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.figure, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.glyph, children: to }) }) })
|
|
48840
|
+
] }, flipKey) : null
|
|
48841
|
+
]
|
|
48842
|
+
}
|
|
48843
|
+
);
|
|
48844
|
+
}
|
|
48845
|
+
function DigitPair({ durationMs, value }) {
|
|
48846
|
+
const padded = value.padStart(2, "0");
|
|
48847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: FlipClock_default.pair, children: [
|
|
48848
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(FlipDigit, { durationMs, value: padded[0] }),
|
|
48849
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(FlipDigit, { durationMs, value: padded[1] })
|
|
48850
|
+
] });
|
|
48851
|
+
}
|
|
48852
|
+
function Colon() {
|
|
48853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("span", { className: FlipClock_default.separator, "aria-hidden": "true", children: [
|
|
48854
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", {}),
|
|
48855
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", {})
|
|
48856
|
+
] });
|
|
48857
|
+
}
|
|
48858
|
+
function FlipClock({
|
|
48859
|
+
showDate = true,
|
|
48860
|
+
showSeconds = true,
|
|
48861
|
+
showFrames = false,
|
|
48862
|
+
size = "md"
|
|
48863
|
+
}) {
|
|
48864
|
+
const [time, setTime] = (0, import_react99.useState)(null);
|
|
48865
|
+
const includeSeconds = showSeconds || showFrames;
|
|
48866
|
+
const durationMs = showFrames ? 120 : 650;
|
|
48867
|
+
const tickMs = showFrames ? 1e3 / FLIP_CLOCK_FRAME_RATE : 1e3;
|
|
48868
|
+
const { rootRef, probeGlyphRef, probeFigureRef, inkStyle } = useFlipInkNudge(size);
|
|
48869
|
+
(0, import_react99.useEffect)(() => {
|
|
48870
|
+
setTime(/* @__PURE__ */ new Date());
|
|
48871
|
+
const interval = window.setInterval(() => setTime(/* @__PURE__ */ new Date()), tickMs);
|
|
48872
|
+
return () => window.clearInterval(interval);
|
|
48873
|
+
}, [tickMs]);
|
|
48874
|
+
const hours = time ? String(time.getHours()).padStart(2, "0") : "00";
|
|
48875
|
+
const minutes = time ? String(time.getMinutes()).padStart(2, "0") : "00";
|
|
48876
|
+
const seconds = time ? String(time.getSeconds()).padStart(2, "0") : "00";
|
|
48877
|
+
const frames = time ? String(frameFromDate(time)).padStart(2, "0") : "00";
|
|
48878
|
+
const digitalTime = showFrames ? `${hours}:${minutes}:${seconds}:${frames}` : includeSeconds ? `${hours}:${minutes}:${seconds}` : `${hours}:${minutes}`;
|
|
48879
|
+
const date = time ? time.toLocaleDateString("en-GB", {
|
|
48880
|
+
weekday: "long",
|
|
48881
|
+
day: "numeric",
|
|
48882
|
+
month: "long",
|
|
48883
|
+
year: "numeric"
|
|
48884
|
+
}) : "";
|
|
48885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(
|
|
48886
|
+
"div",
|
|
48887
|
+
{
|
|
48888
|
+
"aria-live": "polite",
|
|
48889
|
+
className: FlipClock_default.root,
|
|
48890
|
+
"data-frames": showFrames ? "true" : "false",
|
|
48891
|
+
"data-seconds": includeSeconds ? "true" : "false",
|
|
48892
|
+
"data-size": size,
|
|
48893
|
+
ref: rootRef,
|
|
48894
|
+
style: inkStyle,
|
|
48895
|
+
children: [
|
|
48896
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.probe, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.figure, ref: probeFigureRef, children: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("span", { className: FlipClock_default.glyph, ref: probeGlyphRef, children: "8" }) }) }),
|
|
48897
|
+
!time ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: FlipClock_default.loading, children: "Loading flip clock\u2026" }) : /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
|
|
48898
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsxs)("div", { className: FlipClock_default.board, role: "img", "aria-label": digitalTime, children: [
|
|
48899
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(DigitPair, { durationMs, value: hours }),
|
|
48900
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Colon, {}),
|
|
48901
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(DigitPair, { durationMs, value: minutes }),
|
|
48902
|
+
includeSeconds ? /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
|
|
48903
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Colon, {}),
|
|
48904
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(DigitPair, { durationMs, value: seconds })
|
|
48905
|
+
] }) : null,
|
|
48906
|
+
showFrames ? /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_jsx_runtime168.Fragment, { children: [
|
|
48907
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Colon, {}),
|
|
48908
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)(DigitPair, { durationMs, value: frames })
|
|
48909
|
+
] }) : null
|
|
48910
|
+
] }),
|
|
48911
|
+
/* @__PURE__ */ (0, import_jsx_runtime168.jsx)("time", { className: FlipClock_default.srOnly, dateTime: time.toISOString(), children: digitalTime }),
|
|
48912
|
+
showDate ? /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("div", { className: FlipClock_default.date, children: date }) : null
|
|
48913
|
+
] })
|
|
48914
|
+
]
|
|
48915
|
+
}
|
|
48916
|
+
);
|
|
48917
|
+
}
|
|
48918
|
+
|
|
48411
48919
|
// ../../components/VisuallyHidden/VisuallyHidden.module.css
|
|
48412
48920
|
var VisuallyHidden_default = {"hidden":"opus_DIv7wy_hidden"};
|
|
48413
48921
|
|
|
48414
48922
|
// ../../components/VisuallyHidden/VisuallyHidden.tsx
|
|
48415
|
-
var
|
|
48923
|
+
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
48416
48924
|
function VisuallyHidden({ as = "span", children }) {
|
|
48417
48925
|
const Tag = as;
|
|
48418
|
-
return /* @__PURE__ */ (0,
|
|
48926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Tag, { className: VisuallyHidden_default.hidden, children });
|
|
48419
48927
|
}
|
|
48420
48928
|
|
|
48421
48929
|
// ../../components/FocusTrap/FocusTrap.tsx
|
|
48422
|
-
var
|
|
48930
|
+
var import_react100 = require("react");
|
|
48423
48931
|
|
|
48424
48932
|
// ../../components/FocusTrap/FocusTrap.module.css
|
|
48425
48933
|
var FocusTrap_default = {"trap":"opus_fJckCZ_trap"};
|
|
48426
48934
|
|
|
48427
48935
|
// ../../components/FocusTrap/FocusTrap.tsx
|
|
48428
|
-
var
|
|
48936
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
48429
48937
|
function FocusTrap({
|
|
48430
48938
|
active = true,
|
|
48431
48939
|
children,
|
|
48432
48940
|
initialFocusRef,
|
|
48433
48941
|
restoreFocus = true
|
|
48434
48942
|
}) {
|
|
48435
|
-
const containerRef = (0,
|
|
48436
|
-
const previouslyFocusedRef = (0,
|
|
48437
|
-
(0,
|
|
48943
|
+
const containerRef = (0, import_react100.useRef)(null);
|
|
48944
|
+
const previouslyFocusedRef = (0, import_react100.useRef)(null);
|
|
48945
|
+
(0, import_react100.useEffect)(() => {
|
|
48438
48946
|
if (!active) {
|
|
48439
48947
|
return;
|
|
48440
48948
|
}
|
|
@@ -48460,7 +48968,7 @@ function FocusTrap({
|
|
|
48460
48968
|
}
|
|
48461
48969
|
};
|
|
48462
48970
|
}, [active, initialFocusRef, restoreFocus]);
|
|
48463
|
-
(0,
|
|
48971
|
+
(0, import_react100.useEffect)(() => {
|
|
48464
48972
|
if (!active) {
|
|
48465
48973
|
return;
|
|
48466
48974
|
}
|
|
@@ -48495,25 +49003,25 @@ function FocusTrap({
|
|
|
48495
49003
|
document.addEventListener("keydown", onKeyDown);
|
|
48496
49004
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
48497
49005
|
}, [active]);
|
|
48498
|
-
return /* @__PURE__ */ (0,
|
|
49006
|
+
return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("div", { className: FocusTrap_default.trap, "data-active": active, ref: containerRef, children });
|
|
48499
49007
|
}
|
|
48500
49008
|
|
|
48501
49009
|
// ../../components/KeyboardShortcut/KeyboardShortcut.module.css
|
|
48502
|
-
var KeyboardShortcut_default = {"
|
|
49010
|
+
var KeyboardShortcut_default = {"key":"opus_pZh5vX_key","plus":"opus_pZh5vX_plus","shortcut":"opus_pZh5vX_shortcut"};
|
|
48503
49011
|
|
|
48504
49012
|
// ../../components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
48505
|
-
var
|
|
49013
|
+
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
48506
49014
|
function KeyboardShortcut({ keys, size = "md" }) {
|
|
48507
|
-
return /* @__PURE__ */ (0,
|
|
48508
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
48509
|
-
/* @__PURE__ */ (0,
|
|
49015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("kbd", { "aria-label": keys.join(" + "), className: KeyboardShortcut_default.shortcut, "data-size": size, children: keys.map((key, index) => /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)("span", { children: [
|
|
49016
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { "aria-hidden": "true", className: KeyboardShortcut_default.plus, children: "+" }) : null,
|
|
49017
|
+
/* @__PURE__ */ (0, import_jsx_runtime171.jsx)("span", { className: KeyboardShortcut_default.key, children: key })
|
|
48510
49018
|
] }, `${key}-${index}`)) });
|
|
48511
49019
|
}
|
|
48512
49020
|
|
|
48513
49021
|
// ../../components/HotkeyManager/HotkeyManager.tsx
|
|
48514
|
-
var
|
|
48515
|
-
var
|
|
48516
|
-
var HotkeyManagerContext = (0,
|
|
49022
|
+
var import_react101 = require("react");
|
|
49023
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
49024
|
+
var HotkeyManagerContext = (0, import_react101.createContext)(null);
|
|
48517
49025
|
function matchesCombo(event, combo) {
|
|
48518
49026
|
const key = event.key.length === 1 ? event.key.toLowerCase() : event.key;
|
|
48519
49027
|
const expected = combo.key.length === 1 ? combo.key.toLowerCase() : combo.key;
|
|
@@ -48529,13 +49037,13 @@ function shortcutsEqual(a, b) {
|
|
|
48529
49037
|
});
|
|
48530
49038
|
}
|
|
48531
49039
|
function HotkeyManager({ children, enabled = true }) {
|
|
48532
|
-
const handlersRef = (0,
|
|
48533
|
-
const [shortcuts, setShortcuts] = (0,
|
|
48534
|
-
const syncShortcuts = (0,
|
|
49040
|
+
const handlersRef = (0, import_react101.useRef)(/* @__PURE__ */ new Map());
|
|
49041
|
+
const [shortcuts, setShortcuts] = (0, import_react101.useState)([]);
|
|
49042
|
+
const syncShortcuts = (0, import_react101.useCallback)(() => {
|
|
48535
49043
|
const next = Array.from(handlersRef.current.values()).map((entry) => entry.combo);
|
|
48536
49044
|
setShortcuts((current) => shortcutsEqual(current, next) ? current : next);
|
|
48537
49045
|
}, []);
|
|
48538
|
-
const register = (0,
|
|
49046
|
+
const register = (0, import_react101.useCallback)(
|
|
48539
49047
|
(combo, handler) => {
|
|
48540
49048
|
handlersRef.current.set(combo.id, { combo, handler });
|
|
48541
49049
|
syncShortcuts();
|
|
@@ -48546,7 +49054,7 @@ function HotkeyManager({ children, enabled = true }) {
|
|
|
48546
49054
|
},
|
|
48547
49055
|
[syncShortcuts]
|
|
48548
49056
|
);
|
|
48549
|
-
(0,
|
|
49057
|
+
(0, import_react101.useEffect)(() => {
|
|
48550
49058
|
if (!enabled) {
|
|
48551
49059
|
return;
|
|
48552
49060
|
}
|
|
@@ -48571,16 +49079,16 @@ function HotkeyManager({ children, enabled = true }) {
|
|
|
48571
49079
|
window.addEventListener("keydown", onKeyDown);
|
|
48572
49080
|
return () => window.removeEventListener("keydown", onKeyDown);
|
|
48573
49081
|
}, [enabled]);
|
|
48574
|
-
const value = (0,
|
|
48575
|
-
return /* @__PURE__ */ (0,
|
|
49082
|
+
const value = (0, import_react101.useMemo)(() => ({ register, shortcuts }), [register, shortcuts]);
|
|
49083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(HotkeyManagerContext.Provider, { value, children });
|
|
48576
49084
|
}
|
|
48577
49085
|
function useHotkey(combo, handler) {
|
|
48578
|
-
const context = (0,
|
|
49086
|
+
const context = (0, import_react101.useContext)(HotkeyManagerContext);
|
|
48579
49087
|
const register = context == null ? void 0 : context.register;
|
|
48580
|
-
const handlerRef = (0,
|
|
49088
|
+
const handlerRef = (0, import_react101.useRef)(handler);
|
|
48581
49089
|
handlerRef.current = handler;
|
|
48582
49090
|
const { alt, ctrl, description, enabled, id, key, meta, shift } = combo;
|
|
48583
|
-
(0,
|
|
49091
|
+
(0, import_react101.useEffect)(() => {
|
|
48584
49092
|
if (!register) {
|
|
48585
49093
|
return;
|
|
48586
49094
|
}
|
|
@@ -48593,7 +49101,7 @@ function useHotkey(combo, handler) {
|
|
|
48593
49101
|
}, [alt, ctrl, description, enabled, id, key, meta, register, shift]);
|
|
48594
49102
|
}
|
|
48595
49103
|
function useHotkeyManager() {
|
|
48596
|
-
const context = (0,
|
|
49104
|
+
const context = (0, import_react101.useContext)(HotkeyManagerContext);
|
|
48597
49105
|
if (!context) {
|
|
48598
49106
|
throw new Error("useHotkeyManager must be used within HotkeyManager");
|
|
48599
49107
|
}
|
|
@@ -48601,13 +49109,13 @@ function useHotkeyManager() {
|
|
|
48601
49109
|
}
|
|
48602
49110
|
|
|
48603
49111
|
// ../../components/CopyButton/CopyButton.tsx
|
|
48604
|
-
var
|
|
49112
|
+
var import_react102 = require("react");
|
|
48605
49113
|
|
|
48606
49114
|
// ../../components/CopyButton/CopyButton.module.css
|
|
48607
49115
|
var CopyButton_default = {"wrap":"opus_Ij6tWr_wrap"};
|
|
48608
49116
|
|
|
48609
49117
|
// ../../components/CopyButton/CopyButton.tsx
|
|
48610
|
-
var
|
|
49118
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
48611
49119
|
async function writeClipboard(value) {
|
|
48612
49120
|
var _a2;
|
|
48613
49121
|
if ((_a2 = navigator.clipboard) == null ? void 0 : _a2.writeText) {
|
|
@@ -48636,15 +49144,15 @@ function CopyButton({
|
|
|
48636
49144
|
variant = "secondary",
|
|
48637
49145
|
onCopied
|
|
48638
49146
|
}) {
|
|
48639
|
-
const [copied, setCopied] = (0,
|
|
48640
|
-
(0,
|
|
49147
|
+
const [copied, setCopied] = (0, import_react102.useState)(false);
|
|
49148
|
+
(0, import_react102.useEffect)(() => {
|
|
48641
49149
|
if (!copied) {
|
|
48642
49150
|
return;
|
|
48643
49151
|
}
|
|
48644
49152
|
const timer = window.setTimeout(() => setCopied(false), resetMs);
|
|
48645
49153
|
return () => window.clearTimeout(timer);
|
|
48646
49154
|
}, [copied, resetMs]);
|
|
48647
|
-
const handleCopy = (0,
|
|
49155
|
+
const handleCopy = (0, import_react102.useCallback)(async () => {
|
|
48648
49156
|
try {
|
|
48649
49157
|
await writeClipboard(value);
|
|
48650
49158
|
setCopied(true);
|
|
@@ -48653,13 +49161,13 @@ function CopyButton({
|
|
|
48653
49161
|
setCopied(false);
|
|
48654
49162
|
}
|
|
48655
49163
|
}, [onCopied, value]);
|
|
48656
|
-
return /* @__PURE__ */ (0,
|
|
49164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("span", { className: CopyButton_default.wrap, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Button, { onClick: handleCopy, type: "button", variant, children: children != null ? children : copied ? copiedLabel : label }) });
|
|
48657
49165
|
}
|
|
48658
49166
|
|
|
48659
49167
|
// ../../components/Clipboard/Clipboard.tsx
|
|
48660
|
-
var
|
|
48661
|
-
var
|
|
48662
|
-
var ClipboardContext = (0,
|
|
49168
|
+
var import_react103 = require("react");
|
|
49169
|
+
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
49170
|
+
var ClipboardContext = (0, import_react103.createContext)(null);
|
|
48663
49171
|
async function fallbackWrite(value) {
|
|
48664
49172
|
const textarea = document.createElement("textarea");
|
|
48665
49173
|
textarea.value = value;
|
|
@@ -48675,8 +49183,8 @@ async function fallbackWrite(value) {
|
|
|
48675
49183
|
}
|
|
48676
49184
|
}
|
|
48677
49185
|
function ClipboardProvider({ children }) {
|
|
48678
|
-
const [lastCopied, setLastCopied] = (0,
|
|
48679
|
-
const writeText = (0,
|
|
49186
|
+
const [lastCopied, setLastCopied] = (0, import_react103.useState)(null);
|
|
49187
|
+
const writeText = (0, import_react103.useCallback)(async (value2) => {
|
|
48680
49188
|
var _a2;
|
|
48681
49189
|
if ((_a2 = navigator.clipboard) == null ? void 0 : _a2.writeText) {
|
|
48682
49190
|
await navigator.clipboard.writeText(value2);
|
|
@@ -48685,39 +49193,39 @@ function ClipboardProvider({ children }) {
|
|
|
48685
49193
|
}
|
|
48686
49194
|
setLastCopied(value2);
|
|
48687
49195
|
}, []);
|
|
48688
|
-
const readText = (0,
|
|
49196
|
+
const readText = (0, import_react103.useCallback)(async () => {
|
|
48689
49197
|
var _a2;
|
|
48690
49198
|
if ((_a2 = navigator.clipboard) == null ? void 0 : _a2.readText) {
|
|
48691
49199
|
return navigator.clipboard.readText();
|
|
48692
49200
|
}
|
|
48693
49201
|
return lastCopied != null ? lastCopied : "";
|
|
48694
49202
|
}, [lastCopied]);
|
|
48695
|
-
const value = (0,
|
|
49203
|
+
const value = (0, import_react103.useMemo)(
|
|
48696
49204
|
() => ({ lastCopied, readText, writeText }),
|
|
48697
49205
|
[lastCopied, readText, writeText]
|
|
48698
49206
|
);
|
|
48699
|
-
return /* @__PURE__ */ (0,
|
|
49207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ClipboardContext.Provider, { value, children });
|
|
48700
49208
|
}
|
|
48701
49209
|
function useClipboard() {
|
|
48702
|
-
const context = (0,
|
|
49210
|
+
const context = (0, import_react103.useContext)(ClipboardContext);
|
|
48703
49211
|
if (!context) {
|
|
48704
49212
|
throw new Error("useClipboard must be used within ClipboardProvider");
|
|
48705
49213
|
}
|
|
48706
49214
|
return context;
|
|
48707
49215
|
}
|
|
48708
49216
|
function Clipboard({ children }) {
|
|
48709
|
-
return /* @__PURE__ */ (0,
|
|
49217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(ClipboardProvider, { children });
|
|
48710
49218
|
}
|
|
48711
49219
|
|
|
48712
49220
|
// ../../components/ThemeSwitcher/ThemeSwitcher.tsx
|
|
48713
|
-
var
|
|
49221
|
+
var import_jsx_runtime175 = require("react/jsx-runtime");
|
|
48714
49222
|
function ThemeSwitcher({
|
|
48715
49223
|
id = "opus-theme-switcher",
|
|
48716
49224
|
label = "Theme",
|
|
48717
49225
|
value,
|
|
48718
49226
|
onChange
|
|
48719
49227
|
}) {
|
|
48720
|
-
return /* @__PURE__ */ (0,
|
|
49228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
48721
49229
|
ThemeToggleField,
|
|
48722
49230
|
{
|
|
48723
49231
|
id,
|
|
@@ -48730,13 +49238,13 @@ function ThemeSwitcher({
|
|
|
48730
49238
|
}
|
|
48731
49239
|
|
|
48732
49240
|
// ../../components/ResizeObserver/ResizeObserver.tsx
|
|
48733
|
-
var
|
|
48734
|
-
var
|
|
49241
|
+
var import_react104 = require("react");
|
|
49242
|
+
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
48735
49243
|
function ResizeObserver2(_a2) {
|
|
48736
49244
|
var _b2 = _a2, { children, className, onResize, style } = _b2, rest = __objRest(_b2, ["children", "className", "onResize", "style"]);
|
|
48737
|
-
const ref = (0,
|
|
48738
|
-
const [size, setSize] = (0,
|
|
48739
|
-
(0,
|
|
49245
|
+
const ref = (0, import_react104.useRef)(null);
|
|
49246
|
+
const [size, setSize] = (0, import_react104.useState)({ width: 0, height: 0 });
|
|
49247
|
+
(0, import_react104.useEffect)(() => {
|
|
48740
49248
|
const node = ref.current;
|
|
48741
49249
|
if (!node || typeof window.ResizeObserver === "undefined") {
|
|
48742
49250
|
return;
|
|
@@ -48756,11 +49264,11 @@ function ResizeObserver2(_a2) {
|
|
|
48756
49264
|
observer.observe(node);
|
|
48757
49265
|
return () => observer.disconnect();
|
|
48758
49266
|
}, [onResize]);
|
|
48759
|
-
return /* @__PURE__ */ (0,
|
|
49267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("div", __spreadProps(__spreadValues({ className, ref, style }, rest), { children: children(size) }));
|
|
48760
49268
|
}
|
|
48761
49269
|
function useResizeObserver(targetRef) {
|
|
48762
|
-
const [size, setSize] = (0,
|
|
48763
|
-
(0,
|
|
49270
|
+
const [size, setSize] = (0, import_react104.useState)({ width: 0, height: 0 });
|
|
49271
|
+
(0, import_react104.useEffect)(() => {
|
|
48764
49272
|
const node = targetRef.current;
|
|
48765
49273
|
if (!node || typeof window.ResizeObserver === "undefined") {
|
|
48766
49274
|
return;
|
|
@@ -48782,8 +49290,8 @@ function useResizeObserver(targetRef) {
|
|
|
48782
49290
|
}
|
|
48783
49291
|
|
|
48784
49292
|
// ../../components/IntersectionObserver/IntersectionObserver.tsx
|
|
48785
|
-
var
|
|
48786
|
-
var
|
|
49293
|
+
var import_react105 = require("react");
|
|
49294
|
+
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
48787
49295
|
function IntersectionObserver2({
|
|
48788
49296
|
children,
|
|
48789
49297
|
className,
|
|
@@ -48791,9 +49299,9 @@ function IntersectionObserver2({
|
|
|
48791
49299
|
threshold = 0.25,
|
|
48792
49300
|
onChange
|
|
48793
49301
|
}) {
|
|
48794
|
-
const ref = (0,
|
|
48795
|
-
const [isIntersecting, setIsIntersecting] = (0,
|
|
48796
|
-
(0,
|
|
49302
|
+
const ref = (0, import_react105.useRef)(null);
|
|
49303
|
+
const [isIntersecting, setIsIntersecting] = (0, import_react105.useState)(false);
|
|
49304
|
+
(0, import_react105.useEffect)(() => {
|
|
48797
49305
|
const node = ref.current;
|
|
48798
49306
|
if (!node || typeof window.IntersectionObserver === "undefined") {
|
|
48799
49307
|
return;
|
|
@@ -48812,12 +49320,12 @@ function IntersectionObserver2({
|
|
|
48812
49320
|
observer.observe(node);
|
|
48813
49321
|
return () => observer.disconnect();
|
|
48814
49322
|
}, [onChange, rootMargin, threshold]);
|
|
48815
|
-
return /* @__PURE__ */ (0,
|
|
49323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("div", { className, ref, children: children(isIntersecting) });
|
|
48816
49324
|
}
|
|
48817
49325
|
function useIntersectionObserver(targetRef, options = {}) {
|
|
48818
49326
|
const { rootMargin = "0px", threshold = 0.25 } = options;
|
|
48819
|
-
const [isIntersecting, setIsIntersecting] = (0,
|
|
48820
|
-
(0,
|
|
49327
|
+
const [isIntersecting, setIsIntersecting] = (0, import_react105.useState)(false);
|
|
49328
|
+
(0, import_react105.useEffect)(() => {
|
|
48821
49329
|
const node = targetRef.current;
|
|
48822
49330
|
if (!node || typeof window.IntersectionObserver === "undefined") {
|
|
48823
49331
|
return;
|
|
@@ -48839,22 +49347,22 @@ function useIntersectionObserver(targetRef, options = {}) {
|
|
|
48839
49347
|
}
|
|
48840
49348
|
|
|
48841
49349
|
// ../../components/Sidebar/Sidebar.tsx
|
|
48842
|
-
var
|
|
49350
|
+
var import_react106 = require("react");
|
|
48843
49351
|
|
|
48844
49352
|
// ../../components/Sidebar/Sidebar.module.css
|
|
48845
|
-
var Sidebar_default = {"
|
|
49353
|
+
var Sidebar_default = {"link":"opus_4Pogux_link","linkActive":"opus_4Pogux_linkActive","collapsedTooltip":"opus_4Pogux_collapsedTooltip","bodyContent":"opus_4Pogux_bodyContent","main":"opus_4Pogux_main","sidebar":"opus_4Pogux_sidebar","nav":"opus_4Pogux_nav","groupItems":"opus_4Pogux_groupItems","linkLabel":"opus_4Pogux_linkLabel","headerTitle":"opus_4Pogux_headerTitle","headerInner":"opus_4Pogux_headerInner","groupLabel":"opus_4Pogux_groupLabel","visuallyHidden":"opus_4Pogux_visuallyHidden","groupItemsWrap":"opus_4Pogux_groupItemsWrap","groupChevronOpen":"opus_4Pogux_groupChevronOpen","collapsedSubmenu":"opus_4Pogux_collapsedSubmenu","groupHeader":"opus_4Pogux_groupHeader","icon":"opus_4Pogux_icon","overflowLabel":"opus_4Pogux_overflowLabel","collapsedGroupWrap":"opus_4Pogux_collapsedGroupWrap","body":"opus_4Pogux_body","footer":"opus_4Pogux_footer","group":"opus_4Pogux_group","header":"opus_4Pogux_header","overflowTooltip":"opus_4Pogux_overflowTooltip","collapsedGroupChevron":"opus_4Pogux_collapsedGroupChevron","collapsedGroupChevronOpen":"opus_4Pogux_collapsedGroupChevronOpen","collapsedGroup":"opus_4Pogux_collapsedGroup","groupChevron":"opus_4Pogux_groupChevron","layout":"opus_4Pogux_layout"};
|
|
48846
49354
|
|
|
48847
49355
|
// ../../components/Sidebar/Sidebar.tsx
|
|
48848
|
-
var
|
|
48849
|
-
var SidebarContext = (0,
|
|
49356
|
+
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
49357
|
+
var SidebarContext = (0, import_react106.createContext)({
|
|
48850
49358
|
collapsed: false,
|
|
48851
49359
|
density: "comfortable"
|
|
48852
49360
|
});
|
|
48853
49361
|
var SIDEBAR_STORAGE_PREFIX = "opus-sidebar-state";
|
|
48854
49362
|
function SidebarOverflowLabel({ label }) {
|
|
48855
|
-
const labelRef = (0,
|
|
48856
|
-
const [overflowing, setOverflowing] = (0,
|
|
48857
|
-
(0,
|
|
49363
|
+
const labelRef = (0, import_react106.useRef)(null);
|
|
49364
|
+
const [overflowing, setOverflowing] = (0, import_react106.useState)(false);
|
|
49365
|
+
(0, import_react106.useEffect)(() => {
|
|
48858
49366
|
const element = labelRef.current;
|
|
48859
49367
|
if (!element) {
|
|
48860
49368
|
return;
|
|
@@ -48870,14 +49378,14 @@ function SidebarOverflowLabel({ label }) {
|
|
|
48870
49378
|
observer.disconnect();
|
|
48871
49379
|
};
|
|
48872
49380
|
}, [label]);
|
|
48873
|
-
return /* @__PURE__ */ (0,
|
|
49381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
48874
49382
|
Tooltip,
|
|
48875
49383
|
{
|
|
48876
49384
|
className: Sidebar_default.overflowTooltip,
|
|
48877
49385
|
content: label,
|
|
48878
49386
|
disabled: !overflowing,
|
|
48879
49387
|
placement: "right",
|
|
48880
|
-
children: /* @__PURE__ */ (0,
|
|
49388
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { ref: labelRef, className: Sidebar_default.overflowLabel, children: label })
|
|
48881
49389
|
}
|
|
48882
49390
|
);
|
|
48883
49391
|
}
|
|
@@ -48960,17 +49468,17 @@ function Sidebar({
|
|
|
48960
49468
|
storageKey
|
|
48961
49469
|
}) {
|
|
48962
49470
|
var _a2;
|
|
48963
|
-
const resolvedStorageKey = (0,
|
|
49471
|
+
const resolvedStorageKey = (0, import_react106.useMemo)(
|
|
48964
49472
|
() => `${SIDEBAR_STORAGE_PREFIX}:${storageKey != null ? storageKey : hashString(`${navLabel}:${serialiseSidebarMenu(menu)}`)}`,
|
|
48965
49473
|
[menu, navLabel, storageKey]
|
|
48966
49474
|
);
|
|
48967
|
-
const [persistedState, setPersistedState] = (0,
|
|
49475
|
+
const [persistedState, setPersistedState] = (0, import_react106.useState)(
|
|
48968
49476
|
{}
|
|
48969
49477
|
);
|
|
48970
|
-
const [motionReady, setMotionReady] = (0,
|
|
48971
|
-
const [internalActiveItem, setInternalActiveItem] = (0,
|
|
49478
|
+
const [motionReady, setMotionReady] = (0, import_react106.useState)(!persistState);
|
|
49479
|
+
const [internalActiveItem, setInternalActiveItem] = (0, import_react106.useState)(defaultActiveItem);
|
|
48972
49480
|
const effectiveActiveItem = activeItem != null ? activeItem : persistState ? (_a2 = persistedState.activeItem) != null ? _a2 : internalActiveItem : internalActiveItem;
|
|
48973
|
-
(0,
|
|
49481
|
+
(0, import_react106.useEffect)(() => {
|
|
48974
49482
|
if (!persistState) {
|
|
48975
49483
|
const readyTimeout = window.setTimeout(() => setMotionReady(true), 0);
|
|
48976
49484
|
return () => window.clearTimeout(readyTimeout);
|
|
@@ -48999,7 +49507,7 @@ function Sidebar({
|
|
|
48999
49507
|
}
|
|
49000
49508
|
};
|
|
49001
49509
|
}, [persistState, resolvedStorageKey]);
|
|
49002
|
-
const updatePersistedState = (0,
|
|
49510
|
+
const updatePersistedState = (0, import_react106.useCallback)(
|
|
49003
49511
|
(next) => {
|
|
49004
49512
|
if (!persistState) {
|
|
49005
49513
|
return;
|
|
@@ -49012,7 +49520,7 @@ function Sidebar({
|
|
|
49012
49520
|
},
|
|
49013
49521
|
[persistState, resolvedStorageKey]
|
|
49014
49522
|
);
|
|
49015
|
-
const setSidebarActiveItem = (0,
|
|
49523
|
+
const setSidebarActiveItem = (0, import_react106.useCallback)(
|
|
49016
49524
|
(itemId) => {
|
|
49017
49525
|
if (persistState) {
|
|
49018
49526
|
updatePersistedState((current) => __spreadProps(__spreadValues({}, current), {
|
|
@@ -49025,14 +49533,14 @@ function Sidebar({
|
|
|
49025
49533
|
},
|
|
49026
49534
|
[activeItem, persistState, updatePersistedState]
|
|
49027
49535
|
);
|
|
49028
|
-
const getGroupOpenState = (0,
|
|
49536
|
+
const getGroupOpenState = (0, import_react106.useCallback)(
|
|
49029
49537
|
(groupId, fallback) => {
|
|
49030
49538
|
var _a3, _b2;
|
|
49031
49539
|
return (_b2 = (_a3 = persistedState.groups) == null ? void 0 : _a3[groupId]) != null ? _b2 : fallback;
|
|
49032
49540
|
},
|
|
49033
49541
|
[persistedState.groups]
|
|
49034
49542
|
);
|
|
49035
|
-
const setGroupOpenState = (0,
|
|
49543
|
+
const setGroupOpenState = (0, import_react106.useCallback)(
|
|
49036
49544
|
(groupId, open) => {
|
|
49037
49545
|
updatePersistedState((current) => __spreadProps(__spreadValues({}, current), {
|
|
49038
49546
|
groups: __spreadProps(__spreadValues({}, current.groups), {
|
|
@@ -49042,7 +49550,7 @@ function Sidebar({
|
|
|
49042
49550
|
},
|
|
49043
49551
|
[updatePersistedState]
|
|
49044
49552
|
);
|
|
49045
|
-
return /* @__PURE__ */ (0,
|
|
49553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49046
49554
|
SidebarContext.Provider,
|
|
49047
49555
|
{
|
|
49048
49556
|
value: {
|
|
@@ -49055,7 +49563,7 @@ function Sidebar({
|
|
|
49055
49563
|
setActiveItem: setSidebarActiveItem,
|
|
49056
49564
|
setGroupOpenState: persistState ? setGroupOpenState : void 0
|
|
49057
49565
|
},
|
|
49058
|
-
children: /* @__PURE__ */ (0,
|
|
49566
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(
|
|
49059
49567
|
"aside",
|
|
49060
49568
|
{
|
|
49061
49569
|
"aria-label": "Sidebar",
|
|
@@ -49073,14 +49581,14 @@ function Sidebar({
|
|
|
49073
49581
|
"data-padding-top": paddingTop ? "true" : "false",
|
|
49074
49582
|
"data-side": side,
|
|
49075
49583
|
children: [
|
|
49076
|
-
header ? /* @__PURE__ */ (0,
|
|
49077
|
-
/* @__PURE__ */ (0,
|
|
49584
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.header, children: header }) : null,
|
|
49585
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49078
49586
|
CustomScrollbar,
|
|
49079
49587
|
{
|
|
49080
49588
|
className: Sidebar_default.body,
|
|
49081
49589
|
label: navLabel,
|
|
49082
49590
|
orientation: "vertical",
|
|
49083
|
-
children: /* @__PURE__ */ (0,
|
|
49591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.bodyContent, children: menu ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(SidebarNav, { "aria-label": navLabel, children: menu.map(
|
|
49084
49592
|
(item) => renderSidebarMenuItem({
|
|
49085
49593
|
depth: 0,
|
|
49086
49594
|
effectiveActiveItem,
|
|
@@ -49090,7 +49598,7 @@ function Sidebar({
|
|
|
49090
49598
|
) }) : children })
|
|
49091
49599
|
}
|
|
49092
49600
|
),
|
|
49093
|
-
footer ? /* @__PURE__ */ (0,
|
|
49601
|
+
footer ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.footer, children: footer }) : null
|
|
49094
49602
|
]
|
|
49095
49603
|
}
|
|
49096
49604
|
)
|
|
@@ -49098,9 +49606,9 @@ function Sidebar({
|
|
|
49098
49606
|
);
|
|
49099
49607
|
}
|
|
49100
49608
|
function SidebarHeader({ children, title }) {
|
|
49101
|
-
const { collapsed } = (0,
|
|
49102
|
-
return /* @__PURE__ */ (0,
|
|
49103
|
-
/* @__PURE__ */ (0,
|
|
49609
|
+
const { collapsed } = (0, import_react106.useContext)(SidebarContext);
|
|
49610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("div", { className: Sidebar_default.headerInner, children: [
|
|
49611
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("h2", { className: collapsed ? Sidebar_default.visuallyHidden : Sidebar_default.headerTitle, children: title }),
|
|
49104
49612
|
children
|
|
49105
49613
|
] });
|
|
49106
49614
|
}
|
|
@@ -49108,7 +49616,7 @@ function SidebarNav({
|
|
|
49108
49616
|
"aria-label": ariaLabel,
|
|
49109
49617
|
children
|
|
49110
49618
|
}) {
|
|
49111
|
-
return /* @__PURE__ */ (0,
|
|
49619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("nav", { "aria-label": ariaLabel, className: Sidebar_default.nav, children });
|
|
49112
49620
|
}
|
|
49113
49621
|
function SidebarLink({
|
|
49114
49622
|
active,
|
|
@@ -49124,7 +49632,7 @@ function SidebarLink({
|
|
|
49124
49632
|
collapsed,
|
|
49125
49633
|
onSelect: onSidebarSelect,
|
|
49126
49634
|
setActiveItem
|
|
49127
|
-
} = (0,
|
|
49635
|
+
} = (0, import_react106.useContext)(SidebarContext);
|
|
49128
49636
|
const isActive = active != null ? active : itemId ? activeItem === itemId : false;
|
|
49129
49637
|
const className = [Sidebar_default.link, isActive ? Sidebar_default.linkActive : ""].filter(Boolean).join(" ");
|
|
49130
49638
|
const label = typeof children === "string" ? children : null;
|
|
@@ -49141,12 +49649,12 @@ function SidebarLink({
|
|
|
49141
49649
|
}
|
|
49142
49650
|
onClick == null ? void 0 : onClick(event);
|
|
49143
49651
|
};
|
|
49144
|
-
const content = /* @__PURE__ */ (0,
|
|
49145
|
-
icon ? /* @__PURE__ */ (0,
|
|
49146
|
-
!icon && collapsed && label ? /* @__PURE__ */ (0,
|
|
49147
|
-
collapsed ? /* @__PURE__ */ (0,
|
|
49652
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(import_jsx_runtime178.Fragment, { children: [
|
|
49653
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: Sidebar_default.icon, children: icon }) : null,
|
|
49654
|
+
!icon && collapsed && label ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { "aria-hidden": "true", className: Sidebar_default.icon, children: label.charAt(0) }) : null,
|
|
49655
|
+
collapsed ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: Sidebar_default.visuallyHidden, children }) : label ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(SidebarOverflowLabel, { label }) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: Sidebar_default.linkLabel, children })
|
|
49148
49656
|
] });
|
|
49149
|
-
const control = href ? /* @__PURE__ */ (0,
|
|
49657
|
+
const control = href ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49150
49658
|
"a",
|
|
49151
49659
|
{
|
|
49152
49660
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -49155,7 +49663,7 @@ function SidebarLink({
|
|
|
49155
49663
|
onClick: handleClick,
|
|
49156
49664
|
children: content
|
|
49157
49665
|
}
|
|
49158
|
-
) : /* @__PURE__ */ (0,
|
|
49666
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49159
49667
|
"button",
|
|
49160
49668
|
{
|
|
49161
49669
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -49166,7 +49674,7 @@ function SidebarLink({
|
|
|
49166
49674
|
}
|
|
49167
49675
|
);
|
|
49168
49676
|
if (collapsed && label) {
|
|
49169
|
-
return /* @__PURE__ */ (0,
|
|
49677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49170
49678
|
Tooltip,
|
|
49171
49679
|
{
|
|
49172
49680
|
className: Sidebar_default.collapsedTooltip,
|
|
@@ -49195,7 +49703,7 @@ function renderSidebarMenuItem({
|
|
|
49195
49703
|
renderIcon
|
|
49196
49704
|
}) {
|
|
49197
49705
|
if (item.type === "group") {
|
|
49198
|
-
return /* @__PURE__ */ (0,
|
|
49706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49199
49707
|
SidebarGroup,
|
|
49200
49708
|
{
|
|
49201
49709
|
defaultOpen: item.defaultOpen,
|
|
@@ -49220,7 +49728,7 @@ function renderSidebarMenuItem({
|
|
|
49220
49728
|
event.preventDefault();
|
|
49221
49729
|
}
|
|
49222
49730
|
};
|
|
49223
|
-
return /* @__PURE__ */ (0,
|
|
49731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49224
49732
|
SidebarLink,
|
|
49225
49733
|
{
|
|
49226
49734
|
itemId: item.id,
|
|
@@ -49254,16 +49762,16 @@ function SidebarGroup({
|
|
|
49254
49762
|
getGroupOpenState,
|
|
49255
49763
|
onCollapsedGroupSelect,
|
|
49256
49764
|
setGroupOpenState
|
|
49257
|
-
} = (0,
|
|
49765
|
+
} = (0, import_react106.useContext)(SidebarContext);
|
|
49258
49766
|
const listId = createGroupListId(label, id);
|
|
49259
|
-
const [open, setOpen] = (0,
|
|
49767
|
+
const [open, setOpen] = (0, import_react106.useState)(
|
|
49260
49768
|
() => {
|
|
49261
49769
|
var _a2;
|
|
49262
49770
|
return (_a2 = getGroupOpenState == null ? void 0 : getGroupOpenState(listId, defaultOpen)) != null ? _a2 : defaultOpen;
|
|
49263
49771
|
}
|
|
49264
49772
|
);
|
|
49265
|
-
const [collapsedOpen, setCollapsedOpen] = (0,
|
|
49266
|
-
(0,
|
|
49773
|
+
const [collapsedOpen, setCollapsedOpen] = (0, import_react106.useState)(false);
|
|
49774
|
+
(0, import_react106.useEffect)(() => {
|
|
49267
49775
|
const timeout = window.setTimeout(() => {
|
|
49268
49776
|
var _a2;
|
|
49269
49777
|
setOpen((_a2 = getGroupOpenState == null ? void 0 : getGroupOpenState(listId, defaultOpen)) != null ? _a2 : defaultOpen);
|
|
@@ -49277,14 +49785,14 @@ function SidebarGroup({
|
|
|
49277
49785
|
};
|
|
49278
49786
|
if (collapsed) {
|
|
49279
49787
|
if (depth > 0) {
|
|
49280
|
-
return /* @__PURE__ */ (0,
|
|
49281
|
-
/* @__PURE__ */ (0,
|
|
49788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)("div", { className: Sidebar_default.collapsedGroupWrap, children: [
|
|
49789
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49282
49790
|
Tooltip,
|
|
49283
49791
|
{
|
|
49284
49792
|
className: Sidebar_default.collapsedTooltip,
|
|
49285
49793
|
content: label,
|
|
49286
49794
|
placement: "right",
|
|
49287
|
-
children: /* @__PURE__ */ (0,
|
|
49795
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(
|
|
49288
49796
|
"button",
|
|
49289
49797
|
{
|
|
49290
49798
|
"aria-expanded": collapsedOpen,
|
|
@@ -49296,8 +49804,8 @@ function SidebarGroup({
|
|
|
49296
49804
|
},
|
|
49297
49805
|
type: "button",
|
|
49298
49806
|
children: [
|
|
49299
|
-
/* @__PURE__ */ (0,
|
|
49300
|
-
/* @__PURE__ */ (0,
|
|
49807
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { "aria-hidden": "true", className: Sidebar_default.icon, children: icon != null ? icon : label.charAt(0) }),
|
|
49808
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49301
49809
|
"span",
|
|
49302
49810
|
{
|
|
49303
49811
|
"aria-hidden": "true",
|
|
@@ -49309,10 +49817,10 @@ function SidebarGroup({
|
|
|
49309
49817
|
)
|
|
49310
49818
|
}
|
|
49311
49819
|
),
|
|
49312
|
-
collapsedOpen ? /* @__PURE__ */ (0,
|
|
49820
|
+
collapsedOpen ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.collapsedSubmenu, children }) : null
|
|
49313
49821
|
] });
|
|
49314
49822
|
}
|
|
49315
|
-
return /* @__PURE__ */ (0,
|
|
49823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49316
49824
|
"div",
|
|
49317
49825
|
{
|
|
49318
49826
|
"aria-label": label,
|
|
@@ -49323,7 +49831,7 @@ function SidebarGroup({
|
|
|
49323
49831
|
}
|
|
49324
49832
|
);
|
|
49325
49833
|
}
|
|
49326
|
-
return /* @__PURE__ */ (0,
|
|
49834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(
|
|
49327
49835
|
"div",
|
|
49328
49836
|
{
|
|
49329
49837
|
"aria-label": label,
|
|
@@ -49331,7 +49839,7 @@ function SidebarGroup({
|
|
|
49331
49839
|
"data-depth": depth,
|
|
49332
49840
|
role: "group",
|
|
49333
49841
|
children: [
|
|
49334
|
-
/* @__PURE__ */ (0,
|
|
49842
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.groupHeader, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(
|
|
49335
49843
|
"button",
|
|
49336
49844
|
{
|
|
49337
49845
|
"aria-controls": listId,
|
|
@@ -49340,9 +49848,9 @@ function SidebarGroup({
|
|
|
49340
49848
|
onClick: toggleOpen,
|
|
49341
49849
|
type: "button",
|
|
49342
49850
|
children: [
|
|
49343
|
-
icon ? /* @__PURE__ */ (0,
|
|
49344
|
-
/* @__PURE__ */ (0,
|
|
49345
|
-
/* @__PURE__ */ (0,
|
|
49851
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("span", { className: Sidebar_default.icon, children: icon }) : null,
|
|
49852
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(SidebarOverflowLabel, { label }),
|
|
49853
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49346
49854
|
"span",
|
|
49347
49855
|
{
|
|
49348
49856
|
"aria-hidden": "true",
|
|
@@ -49352,12 +49860,12 @@ function SidebarGroup({
|
|
|
49352
49860
|
]
|
|
49353
49861
|
}
|
|
49354
49862
|
) }),
|
|
49355
|
-
/* @__PURE__ */ (0,
|
|
49863
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49356
49864
|
"div",
|
|
49357
49865
|
{
|
|
49358
49866
|
className: Sidebar_default.groupItemsWrap,
|
|
49359
49867
|
"data-open": open ? "true" : "false",
|
|
49360
|
-
children: /* @__PURE__ */ (0,
|
|
49868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)(
|
|
49361
49869
|
"div",
|
|
49362
49870
|
{
|
|
49363
49871
|
className: Sidebar_default.groupItems,
|
|
@@ -49378,7 +49886,7 @@ function SidebarLayout({
|
|
|
49378
49886
|
main,
|
|
49379
49887
|
side = "left"
|
|
49380
49888
|
}) {
|
|
49381
|
-
return /* @__PURE__ */ (0,
|
|
49889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime178.jsxs)(
|
|
49382
49890
|
"div",
|
|
49383
49891
|
{
|
|
49384
49892
|
className: Sidebar_default.layout,
|
|
@@ -49386,7 +49894,7 @@ function SidebarLayout({
|
|
|
49386
49894
|
"data-side": side,
|
|
49387
49895
|
children: [
|
|
49388
49896
|
side === "left" ? children : null,
|
|
49389
|
-
/* @__PURE__ */ (0,
|
|
49897
|
+
/* @__PURE__ */ (0, import_jsx_runtime178.jsx)("div", { className: Sidebar_default.main, children: main }),
|
|
49390
49898
|
side === "right" ? children : null
|
|
49391
49899
|
]
|
|
49392
49900
|
}
|
|
@@ -49394,15 +49902,15 @@ function SidebarLayout({
|
|
|
49394
49902
|
}
|
|
49395
49903
|
|
|
49396
49904
|
// ../../components/AccentColorPicker/AccentColorPicker.tsx
|
|
49397
|
-
var
|
|
49905
|
+
var import_react107 = require("react");
|
|
49398
49906
|
var import_free_solid_svg_icons15 = require("@fortawesome/free-solid-svg-icons");
|
|
49399
49907
|
var import_react_fontawesome16 = require("@fortawesome/react-fontawesome");
|
|
49400
49908
|
|
|
49401
49909
|
// ../../components/AccentColorPicker/AccentColorPicker.module.css
|
|
49402
|
-
var AccentColorPicker_default = {"
|
|
49910
|
+
var AccentColorPicker_default = {"picker":"opus_scMnrW_picker","swatches":"opus_scMnrW_swatches","blob":"opus_scMnrW_blob","footer":"opus_scMnrW_footer","trigger":"opus_scMnrW_trigger","tilePair":"opus_scMnrW_tilePair","section":"opus_scMnrW_section","summary":"opus_scMnrW_summary","chevron":"opus_scMnrW_chevron","dropdown":"opus_scMnrW_dropdown","panelHeader":"opus_scMnrW_panelHeader","sectionLabel":"opus_scMnrW_sectionLabel","resetText":"opus_scMnrW_resetText","tilePairs":"opus_scMnrW_tilePairs","swatch":"opus_scMnrW_swatch","quickSwatches":"opus_scMnrW_quickSwatches","panel":"opus_scMnrW_panel","reset":"opus_scMnrW_reset"};
|
|
49403
49911
|
|
|
49404
49912
|
// ../../components/AccentColorPicker/AccentColorPicker.tsx
|
|
49405
|
-
var
|
|
49913
|
+
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
49406
49914
|
var TILE_PINK = "#ec4899";
|
|
49407
49915
|
var TILE_TURQUOISE = "#0ea5e9";
|
|
49408
49916
|
var TILE_MAGENTA = "#d946ef";
|
|
@@ -49503,11 +50011,11 @@ function pairLabel(primary, secondary) {
|
|
|
49503
50011
|
return `${colorLabel(primary)} / ${colorLabel(secondary)}`;
|
|
49504
50012
|
}
|
|
49505
50013
|
function useAccentPreference() {
|
|
49506
|
-
const [accent, setAccentState] = (0,
|
|
49507
|
-
const [accentSecondary, setAccentSecondaryState] = (0,
|
|
49508
|
-
const [accentPairId, setAccentPairIdState] = (0,
|
|
49509
|
-
const [ready, setReady] = (0,
|
|
49510
|
-
(0,
|
|
50014
|
+
const [accent, setAccentState] = (0, import_react107.useState)(DEFAULT_ACCENT_COLOR);
|
|
50015
|
+
const [accentSecondary, setAccentSecondaryState] = (0, import_react107.useState)(DEFAULT_ACCENT_SECONDARY);
|
|
50016
|
+
const [accentPairId, setAccentPairIdState] = (0, import_react107.useState)(DEFAULT_ACCENT_PAIR_ID);
|
|
50017
|
+
const [ready, setReady] = (0, import_react107.useState)(false);
|
|
50018
|
+
(0, import_react107.useLayoutEffect)(() => {
|
|
49511
50019
|
var _a2;
|
|
49512
50020
|
const stored = readStoredAccentState();
|
|
49513
50021
|
setAccentState(stored.accent);
|
|
@@ -49520,7 +50028,7 @@ function useAccentPreference() {
|
|
|
49520
50028
|
persistAccentState(stored.accent, stored.accentSecondary, (_a2 = matchedPair == null ? void 0 : matchedPair.id) != null ? _a2 : null);
|
|
49521
50029
|
setReady(true);
|
|
49522
50030
|
}, []);
|
|
49523
|
-
const applyPair = (0,
|
|
50031
|
+
const applyPair = (0, import_react107.useCallback)((pair) => {
|
|
49524
50032
|
setAccentState(pair.primary);
|
|
49525
50033
|
setAccentSecondaryState(pair.secondary);
|
|
49526
50034
|
setAccentPairIdState(pair.id);
|
|
@@ -49528,7 +50036,7 @@ function useAccentPreference() {
|
|
|
49528
50036
|
persistAccentState(pair.primary, pair.secondary, pair.id);
|
|
49529
50037
|
setReady(true);
|
|
49530
50038
|
}, []);
|
|
49531
|
-
const setAccent = (0,
|
|
50039
|
+
const setAccent = (0, import_react107.useCallback)(
|
|
49532
50040
|
(next) => {
|
|
49533
50041
|
var _a2, _b2;
|
|
49534
50042
|
if (!isHexColor2(next)) {
|
|
@@ -49545,7 +50053,7 @@ function useAccentPreference() {
|
|
|
49545
50053
|
},
|
|
49546
50054
|
[accentPairId, accentSecondary]
|
|
49547
50055
|
);
|
|
49548
|
-
const setAccentSecondary = (0,
|
|
50056
|
+
const setAccentSecondary = (0, import_react107.useCallback)(
|
|
49549
50057
|
(next) => {
|
|
49550
50058
|
var _a2, _b2;
|
|
49551
50059
|
if (!isHexColor2(next)) {
|
|
@@ -49562,7 +50070,7 @@ function useAccentPreference() {
|
|
|
49562
50070
|
},
|
|
49563
50071
|
[accent, accentPairId]
|
|
49564
50072
|
);
|
|
49565
|
-
const setAccentPair = (0,
|
|
50073
|
+
const setAccentPair = (0, import_react107.useCallback)(
|
|
49566
50074
|
(pairId) => {
|
|
49567
50075
|
const pair = findPairById(pairId);
|
|
49568
50076
|
if (!pair) {
|
|
@@ -49572,14 +50080,14 @@ function useAccentPreference() {
|
|
|
49572
50080
|
},
|
|
49573
50081
|
[applyPair]
|
|
49574
50082
|
);
|
|
49575
|
-
const resetAccent = (0,
|
|
50083
|
+
const resetAccent = (0, import_react107.useCallback)(() => {
|
|
49576
50084
|
const pair = findPairById(DEFAULT_ACCENT_PAIR_ID);
|
|
49577
50085
|
if (!pair) {
|
|
49578
50086
|
return;
|
|
49579
50087
|
}
|
|
49580
50088
|
applyPair(pair);
|
|
49581
50089
|
}, [applyPair]);
|
|
49582
|
-
const accentStyle = (0,
|
|
50090
|
+
const accentStyle = (0, import_react107.useMemo)(
|
|
49583
50091
|
() => ready ? createAccentStyle(accent, accentSecondary) : void 0,
|
|
49584
50092
|
[accent, accentSecondary, ready]
|
|
49585
50093
|
);
|
|
@@ -49595,10 +50103,10 @@ function useAccentPreference() {
|
|
|
49595
50103
|
};
|
|
49596
50104
|
}
|
|
49597
50105
|
function useTileAccentPreference() {
|
|
49598
|
-
const [tileAccent, setTileAccentState] = (0,
|
|
49599
|
-
const [tileAccentSecondary, setTileAccentSecondaryState] = (0,
|
|
49600
|
-
const [ready, setReady] = (0,
|
|
49601
|
-
(0,
|
|
50106
|
+
const [tileAccent, setTileAccentState] = (0, import_react107.useState)(DEFAULT_TILE_ACCENT);
|
|
50107
|
+
const [tileAccentSecondary, setTileAccentSecondaryState] = (0, import_react107.useState)(DEFAULT_TILE_ACCENT_SECONDARY);
|
|
50108
|
+
const [ready, setReady] = (0, import_react107.useState)(false);
|
|
50109
|
+
(0, import_react107.useLayoutEffect)(() => {
|
|
49602
50110
|
const stored = readStoredTileAccentState();
|
|
49603
50111
|
setTileAccentState(stored.tileAccent);
|
|
49604
50112
|
setTileAccentSecondaryState(stored.tileAccentSecondary);
|
|
@@ -49606,7 +50114,7 @@ function useTileAccentPreference() {
|
|
|
49606
50114
|
persistTileAccentState(stored.tileAccent, stored.tileAccentSecondary);
|
|
49607
50115
|
setReady(true);
|
|
49608
50116
|
}, []);
|
|
49609
|
-
const setTileAccent = (0,
|
|
50117
|
+
const setTileAccent = (0, import_react107.useCallback)(
|
|
49610
50118
|
(next) => {
|
|
49611
50119
|
if (!isHexColor2(next)) {
|
|
49612
50120
|
return;
|
|
@@ -49618,7 +50126,7 @@ function useTileAccentPreference() {
|
|
|
49618
50126
|
},
|
|
49619
50127
|
[tileAccentSecondary]
|
|
49620
50128
|
);
|
|
49621
|
-
const setTileAccentSecondary = (0,
|
|
50129
|
+
const setTileAccentSecondary = (0, import_react107.useCallback)(
|
|
49622
50130
|
(next) => {
|
|
49623
50131
|
if (!isHexColor2(next)) {
|
|
49624
50132
|
return;
|
|
@@ -49630,14 +50138,14 @@ function useTileAccentPreference() {
|
|
|
49630
50138
|
},
|
|
49631
50139
|
[tileAccent]
|
|
49632
50140
|
);
|
|
49633
|
-
const resetTileAccent = (0,
|
|
50141
|
+
const resetTileAccent = (0, import_react107.useCallback)(() => {
|
|
49634
50142
|
setTileAccentState(DEFAULT_TILE_ACCENT);
|
|
49635
50143
|
setTileAccentSecondaryState(DEFAULT_TILE_ACCENT_SECONDARY);
|
|
49636
50144
|
applyDocumentTileAccent(DEFAULT_TILE_ACCENT, DEFAULT_TILE_ACCENT_SECONDARY);
|
|
49637
50145
|
persistTileAccentState(DEFAULT_TILE_ACCENT, DEFAULT_TILE_ACCENT_SECONDARY);
|
|
49638
50146
|
setReady(true);
|
|
49639
50147
|
}, []);
|
|
49640
|
-
const tileAccentStyle = (0,
|
|
50148
|
+
const tileAccentStyle = (0, import_react107.useMemo)(
|
|
49641
50149
|
() => ready ? createTileAccentStyle(tileAccent, tileAccentSecondary) : void 0,
|
|
49642
50150
|
[ready, tileAccent, tileAccentSecondary]
|
|
49643
50151
|
);
|
|
@@ -49655,11 +50163,11 @@ function AccentSwatchGrid({
|
|
|
49655
50163
|
onSelect,
|
|
49656
50164
|
selectedValue
|
|
49657
50165
|
}) {
|
|
49658
|
-
return /* @__PURE__ */ (0,
|
|
49659
|
-
/* @__PURE__ */ (0,
|
|
49660
|
-
/* @__PURE__ */ (0,
|
|
50166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: AccentColorPicker_default.section, children: [
|
|
50167
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("p", { className: AccentColorPicker_default.sectionLabel, children: label }),
|
|
50168
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("div", { "aria-label": label, className: AccentColorPicker_default.swatches, role: "radiogroup", children: accentPalette.map((option) => {
|
|
49661
50169
|
const selected = selectedValue === option.value;
|
|
49662
|
-
return /* @__PURE__ */ (0,
|
|
50170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49663
50171
|
"button",
|
|
49664
50172
|
{
|
|
49665
50173
|
"aria-checked": selected,
|
|
@@ -49692,16 +50200,17 @@ function AccentColorPicker({
|
|
|
49692
50200
|
defaultSecondaryValue = DEFAULT_ACCENT_SECONDARY,
|
|
49693
50201
|
secondaryValue,
|
|
49694
50202
|
showQuickSwatches = false,
|
|
50203
|
+
showSecondary = true,
|
|
49695
50204
|
variant = "compact",
|
|
49696
50205
|
value
|
|
49697
50206
|
}) {
|
|
49698
50207
|
const resolvedSecondary = secondaryValue != null ? secondaryValue : companionForPrimary(value);
|
|
49699
|
-
const [open, setOpen] = (0,
|
|
49700
|
-
const rootRef = (0,
|
|
49701
|
-
const menuId = (0,
|
|
49702
|
-
const selectedLabel = pairLabel(value, resolvedSecondary);
|
|
49703
|
-
const isDefault = value === defaultValue && resolvedSecondary === defaultSecondaryValue;
|
|
49704
|
-
(0,
|
|
50208
|
+
const [open, setOpen] = (0, import_react107.useState)(false);
|
|
50209
|
+
const rootRef = (0, import_react107.useRef)(null);
|
|
50210
|
+
const menuId = (0, import_react107.useId)();
|
|
50211
|
+
const selectedLabel = showSecondary ? pairLabel(value, resolvedSecondary) : colorLabel(value);
|
|
50212
|
+
const isDefault = value === defaultValue && (!showSecondary || resolvedSecondary === defaultSecondaryValue);
|
|
50213
|
+
(0, import_react107.useEffect)(() => {
|
|
49705
50214
|
if (!open || variant !== "compact") {
|
|
49706
50215
|
return;
|
|
49707
50216
|
}
|
|
@@ -49732,21 +50241,21 @@ function AccentColorPicker({
|
|
|
49732
50241
|
}
|
|
49733
50242
|
setOpen(false);
|
|
49734
50243
|
};
|
|
49735
|
-
const paletteBody = /* @__PURE__ */ (0,
|
|
49736
|
-
/* @__PURE__ */ (0,
|
|
49737
|
-
/* @__PURE__ */ (0,
|
|
50244
|
+
const paletteBody = /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(import_jsx_runtime179.Fragment, { children: [
|
|
50245
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(AccentSwatchGrid, { label: primarySectionLabel, selectedValue: value, onSelect: onChange }),
|
|
50246
|
+
showSecondary ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49738
50247
|
AccentSwatchGrid,
|
|
49739
50248
|
{
|
|
49740
50249
|
label: secondarySectionLabel,
|
|
49741
50250
|
selectedValue: resolvedSecondary,
|
|
49742
50251
|
onSelect: (next) => onSecondaryChange == null ? void 0 : onSecondaryChange(next)
|
|
49743
50252
|
}
|
|
49744
|
-
)
|
|
50253
|
+
) : null
|
|
49745
50254
|
] });
|
|
49746
50255
|
if (variant === "panel") {
|
|
49747
|
-
return /* @__PURE__ */ (0,
|
|
49748
|
-
/* @__PURE__ */ (0,
|
|
49749
|
-
/* @__PURE__ */ (0,
|
|
50256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: AccentColorPicker_default.panel, id, children: [
|
|
50257
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: AccentColorPicker_default.panelHeader, children: [
|
|
50258
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49750
50259
|
"span",
|
|
49751
50260
|
{
|
|
49752
50261
|
"aria-hidden": "true",
|
|
@@ -49757,8 +50266,8 @@ function AccentColorPicker({
|
|
|
49757
50266
|
}
|
|
49758
50267
|
}
|
|
49759
50268
|
),
|
|
49760
|
-
/* @__PURE__ */ (0,
|
|
49761
|
-
/* @__PURE__ */ (0,
|
|
50269
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("p", { className: AccentColorPicker_default.summary, children: selectedLabel }),
|
|
50270
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49762
50271
|
"button",
|
|
49763
50272
|
{
|
|
49764
50273
|
"aria-label": `Reset ${label.toLowerCase()} colours`,
|
|
@@ -49767,14 +50276,14 @@ function AccentColorPicker({
|
|
|
49767
50276
|
title: `Reset ${label.toLowerCase()}`,
|
|
49768
50277
|
type: "button",
|
|
49769
50278
|
onClick: handleReset,
|
|
49770
|
-
children: /* @__PURE__ */ (0,
|
|
50279
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_fontawesome16.FontAwesomeIcon, { icon: import_free_solid_svg_icons15.faRotateLeft })
|
|
49771
50280
|
}
|
|
49772
50281
|
)
|
|
49773
50282
|
] }),
|
|
49774
50283
|
paletteBody
|
|
49775
50284
|
] });
|
|
49776
50285
|
}
|
|
49777
|
-
return /* @__PURE__ */ (0,
|
|
50286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49778
50287
|
FieldShell,
|
|
49779
50288
|
{
|
|
49780
50289
|
fitContent: true,
|
|
@@ -49785,8 +50294,8 @@ function AccentColorPicker({
|
|
|
49785
50294
|
labelPosition,
|
|
49786
50295
|
labelTag: "div",
|
|
49787
50296
|
mode,
|
|
49788
|
-
children: /* @__PURE__ */ (0,
|
|
49789
|
-
showQuickSwatches ? /* @__PURE__ */ (0,
|
|
50297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: AccentColorPicker_default.picker, ref: rootRef, children: [
|
|
50298
|
+
showQuickSwatches ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49790
50299
|
"div",
|
|
49791
50300
|
{
|
|
49792
50301
|
"aria-labelledby": `${id}-label`,
|
|
@@ -49794,7 +50303,7 @@ function AccentColorPicker({
|
|
|
49794
50303
|
role: "radiogroup",
|
|
49795
50304
|
children: accentQuickColors.map((option) => {
|
|
49796
50305
|
const selected = value === option.value;
|
|
49797
|
-
return /* @__PURE__ */ (0,
|
|
50306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49798
50307
|
"button",
|
|
49799
50308
|
{
|
|
49800
50309
|
"aria-checked": selected,
|
|
@@ -49812,7 +50321,7 @@ function AccentColorPicker({
|
|
|
49812
50321
|
})
|
|
49813
50322
|
}
|
|
49814
50323
|
) : null,
|
|
49815
|
-
/* @__PURE__ */ (0,
|
|
50324
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(
|
|
49816
50325
|
"button",
|
|
49817
50326
|
{
|
|
49818
50327
|
"aria-controls": menuId,
|
|
@@ -49828,12 +50337,12 @@ function AccentColorPicker({
|
|
|
49828
50337
|
type: "button",
|
|
49829
50338
|
onClick: () => setOpen((current) => !current),
|
|
49830
50339
|
children: [
|
|
49831
|
-
/* @__PURE__ */ (0,
|
|
49832
|
-
/* @__PURE__ */ (0,
|
|
50340
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("span", { "aria-hidden": "true", className: AccentColorPicker_default.blob }),
|
|
50341
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("span", { "aria-hidden": "true", className: AccentColorPicker_default.chevron })
|
|
49833
50342
|
]
|
|
49834
50343
|
}
|
|
49835
50344
|
),
|
|
49836
|
-
!isDefault ? /* @__PURE__ */ (0,
|
|
50345
|
+
!isDefault ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
49837
50346
|
"button",
|
|
49838
50347
|
{
|
|
49839
50348
|
"aria-label": `Reset ${label.toLowerCase()} colours`,
|
|
@@ -49841,10 +50350,10 @@ function AccentColorPicker({
|
|
|
49841
50350
|
title: `Reset ${label.toLowerCase()}`,
|
|
49842
50351
|
type: "button",
|
|
49843
50352
|
onClick: handleReset,
|
|
49844
|
-
children: /* @__PURE__ */ (0,
|
|
50353
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(import_react_fontawesome16.FontAwesomeIcon, { icon: import_free_solid_svg_icons15.faRotateLeft })
|
|
49845
50354
|
}
|
|
49846
50355
|
) : null,
|
|
49847
|
-
open ? /* @__PURE__ */ (0,
|
|
50356
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)(
|
|
49848
50357
|
"div",
|
|
49849
50358
|
{
|
|
49850
50359
|
"aria-label": `${label} colours`,
|
|
@@ -49853,9 +50362,9 @@ function AccentColorPicker({
|
|
|
49853
50362
|
role: "dialog",
|
|
49854
50363
|
children: [
|
|
49855
50364
|
paletteBody,
|
|
49856
|
-
/* @__PURE__ */ (0,
|
|
49857
|
-
/* @__PURE__ */ (0,
|
|
49858
|
-
!isDefault ? /* @__PURE__ */ (0,
|
|
50365
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { className: AccentColorPicker_default.footer, children: [
|
|
50366
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("p", { className: AccentColorPicker_default.summary, children: selectedLabel }),
|
|
50367
|
+
!isDefault ? /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("button", { className: AccentColorPicker_default.resetText, type: "button", onClick: handleReset, children: "Reset" }) : null
|
|
49859
50368
|
] })
|
|
49860
50369
|
]
|
|
49861
50370
|
}
|
|
@@ -49866,14 +50375,14 @@ function AccentColorPicker({
|
|
|
49866
50375
|
}
|
|
49867
50376
|
|
|
49868
50377
|
// ../../components/IconPicker/IconPicker.tsx
|
|
49869
|
-
var
|
|
50378
|
+
var import_react108 = require("react");
|
|
49870
50379
|
var import_react_fontawesome17 = require("@fortawesome/react-fontawesome");
|
|
49871
50380
|
|
|
49872
50381
|
// ../../components/IconPicker/IconPicker.module.css
|
|
49873
|
-
var IconPicker_default = {"
|
|
50382
|
+
var IconPicker_default = {"trigger":"opus_4E-Oa1_trigger","grid":"opus_4E-Oa1_grid","option":"opus_4E-Oa1_option","empty":"opus_4E-Oa1_empty","root":"opus_4E-Oa1_root","optionIcon":"opus_4E-Oa1_optionIcon","menu":"opus_4E-Oa1_menu","search":"opus_4E-Oa1_search","chevron":"opus_4E-Oa1_chevron","triggerLabel":"opus_4E-Oa1_triggerLabel","triggerIcon":"opus_4E-Oa1_triggerIcon"};
|
|
49874
50383
|
|
|
49875
50384
|
// ../../components/IconPicker/IconPicker.tsx
|
|
49876
|
-
var
|
|
50385
|
+
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
49877
50386
|
function IconPicker({
|
|
49878
50387
|
help,
|
|
49879
50388
|
id,
|
|
@@ -49884,14 +50393,14 @@ function IconPicker({
|
|
|
49884
50393
|
searchPlaceholder = "Search icons",
|
|
49885
50394
|
value
|
|
49886
50395
|
}) {
|
|
49887
|
-
const [open, setOpen] = (0,
|
|
49888
|
-
const [query, setQuery] = (0,
|
|
49889
|
-
const rootRef = (0,
|
|
49890
|
-
const searchRef = (0,
|
|
49891
|
-
const listboxId = (0,
|
|
50396
|
+
const [open, setOpen] = (0, import_react108.useState)(false);
|
|
50397
|
+
const [query, setQuery] = (0, import_react108.useState)("");
|
|
50398
|
+
const rootRef = (0, import_react108.useRef)(null);
|
|
50399
|
+
const searchRef = (0, import_react108.useRef)(null);
|
|
50400
|
+
const listboxId = (0, import_react108.useId)();
|
|
49892
50401
|
const selected = getFontAwesomeIconOption(value);
|
|
49893
|
-
const filteredIcons = (0,
|
|
49894
|
-
(0,
|
|
50402
|
+
const filteredIcons = (0, import_react108.useMemo)(() => filterFontAwesomeIcons(query), [query]);
|
|
50403
|
+
(0, import_react108.useEffect)(() => {
|
|
49895
50404
|
if (!open) {
|
|
49896
50405
|
return;
|
|
49897
50406
|
}
|
|
@@ -49918,8 +50427,8 @@ function IconPicker({
|
|
|
49918
50427
|
document.removeEventListener("keydown", handleKeyDown);
|
|
49919
50428
|
};
|
|
49920
50429
|
}, [open]);
|
|
49921
|
-
return /* @__PURE__ */ (0,
|
|
49922
|
-
/* @__PURE__ */ (0,
|
|
50430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(FieldShell, { help, id, label, labelPosition, mode, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: IconPicker_default.root, ref: rootRef, children: [
|
|
50431
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsxs)(
|
|
49923
50432
|
"button",
|
|
49924
50433
|
{
|
|
49925
50434
|
"aria-controls": open ? listboxId : void 0,
|
|
@@ -49930,14 +50439,14 @@ function IconPicker({
|
|
|
49930
50439
|
type: "button",
|
|
49931
50440
|
onClick: () => setOpen((current) => !current),
|
|
49932
50441
|
children: [
|
|
49933
|
-
/* @__PURE__ */ (0,
|
|
49934
|
-
/* @__PURE__ */ (0,
|
|
50442
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("span", { "aria-hidden": "true", className: IconPicker_default.triggerIcon, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_fontawesome17.FontAwesomeIcon, { icon: selected.icon }) }),
|
|
50443
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("span", { className: IconPicker_default.triggerLabel, children: selected.label })
|
|
49935
50444
|
]
|
|
49936
50445
|
}
|
|
49937
50446
|
),
|
|
49938
|
-
/* @__PURE__ */ (0,
|
|
49939
|
-
open ? /* @__PURE__ */ (0,
|
|
49940
|
-
/* @__PURE__ */ (0,
|
|
50447
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("span", { "aria-hidden": "true", className: IconPicker_default.chevron }),
|
|
50448
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime180.jsxs)("div", { className: IconPicker_default.menu, children: [
|
|
50449
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
|
|
49941
50450
|
"input",
|
|
49942
50451
|
{
|
|
49943
50452
|
"aria-label": searchPlaceholder,
|
|
@@ -49949,7 +50458,7 @@ function IconPicker({
|
|
|
49949
50458
|
onChange: (event) => setQuery(event.target.value)
|
|
49950
50459
|
}
|
|
49951
50460
|
),
|
|
49952
|
-
/* @__PURE__ */ (0,
|
|
50461
|
+
/* @__PURE__ */ (0, import_jsx_runtime180.jsx)("div", { className: IconPicker_default.grid, id: listboxId, role: "listbox", children: filteredIcons.length ? filteredIcons.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(
|
|
49953
50462
|
"button",
|
|
49954
50463
|
{
|
|
49955
50464
|
"aria-label": entry.label,
|
|
@@ -49964,19 +50473,19 @@ function IconPicker({
|
|
|
49964
50473
|
setOpen(false);
|
|
49965
50474
|
setQuery("");
|
|
49966
50475
|
},
|
|
49967
|
-
children: /* @__PURE__ */ (0,
|
|
50476
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("span", { "aria-hidden": "true", className: IconPicker_default.optionIcon, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)(import_react_fontawesome17.FontAwesomeIcon, { icon: entry.icon }) })
|
|
49968
50477
|
},
|
|
49969
50478
|
entry.iconName
|
|
49970
|
-
)) : /* @__PURE__ */ (0,
|
|
50479
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("p", { className: IconPicker_default.empty, children: "No icons match your search." }) })
|
|
49971
50480
|
] }) : null
|
|
49972
50481
|
] }) });
|
|
49973
50482
|
}
|
|
49974
50483
|
|
|
49975
50484
|
// ../../components/IconBadge/IconBadge.module.css
|
|
49976
|
-
var IconBadge_default = {"
|
|
50485
|
+
var IconBadge_default = {"root":"opus_H9TUGj_root","icon":"opus_H9TUGj_icon","badge":"opus_H9TUGj_badge"};
|
|
49977
50486
|
|
|
49978
50487
|
// ../../components/IconBadge/IconBadge.tsx
|
|
49979
|
-
var
|
|
50488
|
+
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
49980
50489
|
function formatCount(count, max) {
|
|
49981
50490
|
if (count > max) {
|
|
49982
50491
|
return `${max}+`;
|
|
@@ -50013,12 +50522,12 @@ function IconBadge({
|
|
|
50013
50522
|
const showBadge = shouldShowBadge(count, showZero);
|
|
50014
50523
|
const accessibleLabel = buildAccessibleLabel(label, count, max, showZero);
|
|
50015
50524
|
const rootClassName = [IconBadge_default.root, className].filter(Boolean).join(" ");
|
|
50016
|
-
const content = /* @__PURE__ */ (0,
|
|
50017
|
-
/* @__PURE__ */ (0,
|
|
50018
|
-
showBadge ? /* @__PURE__ */ (0,
|
|
50525
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("span", { "aria-hidden": "true", className: IconBadge_default.icon, "data-size": size, "data-tone": tone, children: [
|
|
50526
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(CatalogIcon, { iconName }),
|
|
50527
|
+
showBadge ? /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("span", { className: IconBadge_default.badge, "data-urgency": urgency, children: formatCount(count, max) }) : null
|
|
50019
50528
|
] });
|
|
50020
50529
|
if (onClick) {
|
|
50021
|
-
return /* @__PURE__ */ (0,
|
|
50530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
50022
50531
|
"button",
|
|
50023
50532
|
{
|
|
50024
50533
|
"aria-label": accessibleLabel,
|
|
@@ -50030,17 +50539,17 @@ function IconBadge({
|
|
|
50030
50539
|
}
|
|
50031
50540
|
);
|
|
50032
50541
|
}
|
|
50033
|
-
return /* @__PURE__ */ (0,
|
|
50542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime181.jsx)("span", { "aria-label": accessibleLabel, className: rootClassName, "data-size": size, role: "img", children: content });
|
|
50034
50543
|
}
|
|
50035
50544
|
|
|
50036
50545
|
// ../../components/ApplicationHeader/ApplicationHeader.tsx
|
|
50037
|
-
var
|
|
50546
|
+
var import_react109 = require("react");
|
|
50038
50547
|
|
|
50039
50548
|
// ../../components/ApplicationHeader/ApplicationHeader.module.css
|
|
50040
|
-
var ApplicationHeader_default = {"
|
|
50549
|
+
var ApplicationHeader_default = {"brand":"opus_TjZbi8_brand","search":"opus_TjZbi8_search","root":"opus_TjZbi8_root","logo":"opus_TjZbi8_logo","actions":"opus_TjZbi8_actions","createMenuIcon":"opus_TjZbi8_createMenuIcon","actionGroup":"opus_TjZbi8_actionGroup","content":"opus_TjZbi8_content","profile":"opus_TjZbi8_profile","createButton":"opus_TjZbi8_createButton"};
|
|
50041
50550
|
|
|
50042
50551
|
// ../../components/ApplicationHeader/ApplicationHeader.tsx
|
|
50043
|
-
var
|
|
50552
|
+
var import_jsx_runtime182 = require("react/jsx-runtime");
|
|
50044
50553
|
function ApplicationHeader({
|
|
50045
50554
|
actions = [],
|
|
50046
50555
|
brandAlt = "Opus",
|
|
@@ -50059,7 +50568,7 @@ function ApplicationHeader({
|
|
|
50059
50568
|
searchValue = "",
|
|
50060
50569
|
showSearch = true
|
|
50061
50570
|
}) {
|
|
50062
|
-
const searchInputRef = (0,
|
|
50571
|
+
const searchInputRef = (0, import_react109.useRef)(null);
|
|
50063
50572
|
const notificationActions = actions.filter((action) => action.group === "notification" || action.count !== void 0);
|
|
50064
50573
|
const utilityActions = actions.filter((action) => action.group === "utility" || action.group === void 0 && action.count === void 0);
|
|
50065
50574
|
const handleSearchChange = (event) => {
|
|
@@ -50067,12 +50576,12 @@ function ApplicationHeader({
|
|
|
50067
50576
|
};
|
|
50068
50577
|
const createMenuItems = createItems.map((item) => ({
|
|
50069
50578
|
disabled: item.disabled,
|
|
50070
|
-
icon: item.iconName ? /* @__PURE__ */ (0,
|
|
50579
|
+
icon: item.iconName ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("span", { className: ApplicationHeader_default.createMenuIcon, children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(CatalogIcon, { iconName: item.iconName }) }) : void 0,
|
|
50071
50580
|
id: item.id,
|
|
50072
50581
|
label: item.label,
|
|
50073
50582
|
onSelect: item.onSelect
|
|
50074
50583
|
}));
|
|
50075
|
-
(0,
|
|
50584
|
+
(0, import_react109.useEffect)(() => {
|
|
50076
50585
|
var _a2;
|
|
50077
50586
|
if (!showSearch) {
|
|
50078
50587
|
return;
|
|
@@ -50093,18 +50602,18 @@ function ApplicationHeader({
|
|
|
50093
50602
|
window.addEventListener("keydown", handleKeyDown);
|
|
50094
50603
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
50095
50604
|
}, [searchShortcut, showSearch]);
|
|
50096
|
-
return /* @__PURE__ */ (0,
|
|
50605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(
|
|
50097
50606
|
"header",
|
|
50098
50607
|
{
|
|
50099
50608
|
className: [ApplicationHeader_default.root, className].filter(Boolean).join(" "),
|
|
50100
50609
|
"data-connected": connected ? "true" : "false",
|
|
50101
50610
|
children: [
|
|
50102
|
-
/* @__PURE__ */ (0,
|
|
50103
|
-
/* @__PURE__ */ (0,
|
|
50104
|
-
showSearch ? /* @__PURE__ */ (0,
|
|
50611
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)("a", { "aria-label": brandAlt, className: ApplicationHeader_default.brand, href: brandHref, children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("img", { alt: brandAlt, className: ApplicationHeader_default.logo, src: brandSrc }) }),
|
|
50612
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("div", { className: ApplicationHeader_default.content, children: [
|
|
50613
|
+
showSearch ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { className: ApplicationHeader_default.search, children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
50105
50614
|
TextField,
|
|
50106
50615
|
{
|
|
50107
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
50616
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(KeyboardShortcut, { keys: searchShortcut, size: "sm" }),
|
|
50108
50617
|
id: "application-header-search",
|
|
50109
50618
|
inputRef: searchInputRef,
|
|
50110
50619
|
label: "Search",
|
|
@@ -50115,9 +50624,9 @@ function ApplicationHeader({
|
|
|
50115
50624
|
value: searchValue,
|
|
50116
50625
|
onChange: handleSearchChange
|
|
50117
50626
|
}
|
|
50118
|
-
) }) : /* @__PURE__ */ (0,
|
|
50119
|
-
/* @__PURE__ */ (0,
|
|
50120
|
-
createItems.length ? /* @__PURE__ */ (0,
|
|
50627
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("span", {}),
|
|
50628
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsxs)("nav", { "aria-label": "Application actions", className: ApplicationHeader_default.actions, children: [
|
|
50629
|
+
createItems.length ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
50121
50630
|
DropdownMenu,
|
|
50122
50631
|
{
|
|
50123
50632
|
items: createMenuItems,
|
|
@@ -50129,11 +50638,11 @@ function ApplicationHeader({
|
|
|
50129
50638
|
}
|
|
50130
50639
|
},
|
|
50131
50640
|
placement: "bottom-end",
|
|
50132
|
-
trigger: /* @__PURE__ */ (0,
|
|
50641
|
+
trigger: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("button", { "aria-label": createLabel, className: ApplicationHeader_default.createButton, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(CatalogIcon, { iconName: "plus" }) })
|
|
50133
50642
|
}
|
|
50134
|
-
) : onCreate ? /* @__PURE__ */ (0,
|
|
50135
|
-
(createItems.length || onCreate) && actions.length ? /* @__PURE__ */ (0,
|
|
50136
|
-
/* @__PURE__ */ (0,
|
|
50643
|
+
) : onCreate ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Tooltip, { content: createLabel, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("button", { "aria-label": createLabel, className: ApplicationHeader_default.createButton, onClick: onCreate, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(CatalogIcon, { iconName: "plus" }) }) }) : null,
|
|
50644
|
+
(createItems.length || onCreate) && actions.length ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Divider, { orientation: "vertical", tone: "muted" }) : null,
|
|
50645
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { className: ApplicationHeader_default.actionGroup, children: notificationActions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Tooltip, { content: action.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
50137
50646
|
IconBadge,
|
|
50138
50647
|
{
|
|
50139
50648
|
count: action.count,
|
|
@@ -50143,8 +50652,8 @@ function ApplicationHeader({
|
|
|
50143
50652
|
urgency: action.urgency
|
|
50144
50653
|
}
|
|
50145
50654
|
) }, action.id)) }),
|
|
50146
|
-
notificationActions.length && utilityActions.length ? /* @__PURE__ */ (0,
|
|
50147
|
-
/* @__PURE__ */ (0,
|
|
50655
|
+
notificationActions.length && utilityActions.length ? /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Divider, { orientation: "vertical", tone: "muted" }) : null,
|
|
50656
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { className: ApplicationHeader_default.actionGroup, children: utilityActions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Tooltip, { content: action.label, placement: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
50148
50657
|
IconBadge,
|
|
50149
50658
|
{
|
|
50150
50659
|
count: action.count,
|
|
@@ -50154,9 +50663,9 @@ function ApplicationHeader({
|
|
|
50154
50663
|
urgency: action.urgency
|
|
50155
50664
|
}
|
|
50156
50665
|
) }, action.id)) }),
|
|
50157
|
-
profile ? /* @__PURE__ */ (0,
|
|
50158
|
-
/* @__PURE__ */ (0,
|
|
50159
|
-
/* @__PURE__ */ (0,
|
|
50666
|
+
profile ? /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(import_jsx_runtime182.Fragment, { children: [
|
|
50667
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Divider, { orientation: "vertical", tone: "muted" }),
|
|
50668
|
+
/* @__PURE__ */ (0, import_jsx_runtime182.jsx)("div", { className: ApplicationHeader_default.profile, children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(
|
|
50160
50669
|
UserProfileWidget,
|
|
50161
50670
|
{
|
|
50162
50671
|
avatarSize: "md",
|
|
@@ -50175,37 +50684,37 @@ function ApplicationHeader({
|
|
|
50175
50684
|
}
|
|
50176
50685
|
|
|
50177
50686
|
// ../../components/ApplicationFooter/ApplicationFooter.module.css
|
|
50178
|
-
var ApplicationFooter_default = {"
|
|
50687
|
+
var ApplicationFooter_default = {"version":"opus_mphyzH_version","product":"opus_mphyzH_product","actionSlot":"opus_mphyzH_actionSlot","action":"opus_mphyzH_action","logo":"opus_mphyzH_logo","actions":"opus_mphyzH_actions","brand":"opus_mphyzH_brand","copyright":"opus_mphyzH_copyright","root":"opus_mphyzH_root"};
|
|
50179
50688
|
|
|
50180
50689
|
// ../../components/ApplicationFooter/ApplicationFooter.tsx
|
|
50181
|
-
var
|
|
50690
|
+
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
50182
50691
|
function ApplicationFooter({ actions = [], brandAlt = "Opus", brandSrc = "/opus-logo.png", copyright = `\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} Opus. All rights reserved.`, onActionSelect, productName = "CRM", version = "v1.0.0" }) {
|
|
50183
|
-
return /* @__PURE__ */ (0,
|
|
50184
|
-
/* @__PURE__ */ (0,
|
|
50185
|
-
/* @__PURE__ */ (0,
|
|
50186
|
-
/* @__PURE__ */ (0,
|
|
50187
|
-
/* @__PURE__ */ (0,
|
|
50692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("footer", { className: ApplicationFooter_default.root, children: [
|
|
50693
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("div", { className: ApplicationFooter_default.brand, children: [
|
|
50694
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("img", { alt: brandAlt, className: ApplicationFooter_default.logo, src: brandSrc }),
|
|
50695
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("span", { className: ApplicationFooter_default.product, children: productName }),
|
|
50696
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("span", { className: ApplicationFooter_default.version, children: version })
|
|
50188
50697
|
] }),
|
|
50189
|
-
/* @__PURE__ */ (0,
|
|
50190
|
-
/* @__PURE__ */ (0,
|
|
50191
|
-
index ? /* @__PURE__ */ (0,
|
|
50192
|
-
/* @__PURE__ */ (0,
|
|
50698
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("small", { className: ApplicationFooter_default.copyright, children: copyright }),
|
|
50699
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)("nav", { "aria-label": "Footer actions", className: ApplicationFooter_default.actions, children: actions.map((action, index) => /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)("span", { className: ApplicationFooter_default.actionSlot, children: [
|
|
50700
|
+
index ? /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Divider, { orientation: "vertical", tone: "muted" }) : null,
|
|
50701
|
+
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Tooltip, { content: action.label, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("button", { "aria-label": action.label, className: ApplicationFooter_default.action, onClick: () => {
|
|
50193
50702
|
var _a2;
|
|
50194
50703
|
(_a2 = action.onSelect) == null ? void 0 : _a2.call(action);
|
|
50195
50704
|
onActionSelect == null ? void 0 : onActionSelect(action);
|
|
50196
|
-
}, type: "button", children: /* @__PURE__ */ (0,
|
|
50705
|
+
}, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(CatalogIcon, { iconName: action.iconName }) }) })
|
|
50197
50706
|
] }, action.id)) })
|
|
50198
50707
|
] });
|
|
50199
50708
|
}
|
|
50200
50709
|
|
|
50201
50710
|
// ../../components/WelcomeMessage/WelcomeMessage.tsx
|
|
50202
|
-
var
|
|
50711
|
+
var import_react110 = require("react");
|
|
50203
50712
|
|
|
50204
50713
|
// ../../components/WelcomeMessage/WelcomeMessage.module.css
|
|
50205
|
-
var WelcomeMessage_default = {"
|
|
50714
|
+
var WelcomeMessage_default = {"heading":"opus_cZqjKS_heading","root":"opus_cZqjKS_root","wave":"opus_cZqjKS_wave","subtitle":"opus_cZqjKS_subtitle","welcome-wave":"opus_cZqjKS_welcome-wave"};
|
|
50206
50715
|
|
|
50207
50716
|
// ../../components/WelcomeMessage/WelcomeMessage.tsx
|
|
50208
|
-
var
|
|
50717
|
+
var import_jsx_runtime184 = require("react/jsx-runtime");
|
|
50209
50718
|
function toDate(value) {
|
|
50210
50719
|
if (value instanceof Date) return value;
|
|
50211
50720
|
if (value !== void 0) return new Date(value);
|
|
@@ -50237,8 +50746,8 @@ function WelcomeMessage({
|
|
|
50237
50746
|
timeZone,
|
|
50238
50747
|
updateInterval = 6e4
|
|
50239
50748
|
}) {
|
|
50240
|
-
const [currentDate, setCurrentDate] = (0,
|
|
50241
|
-
(0,
|
|
50749
|
+
const [currentDate, setCurrentDate] = (0, import_react110.useState)(() => toDate(date));
|
|
50750
|
+
(0, import_react110.useEffect)(() => {
|
|
50242
50751
|
if (date !== void 0) {
|
|
50243
50752
|
setCurrentDate(toDate(date));
|
|
50244
50753
|
return;
|
|
@@ -50246,32 +50755,32 @@ function WelcomeMessage({
|
|
|
50246
50755
|
const interval = window.setInterval(() => setCurrentDate(/* @__PURE__ */ new Date()), updateInterval);
|
|
50247
50756
|
return () => window.clearInterval(interval);
|
|
50248
50757
|
}, [date, updateInterval]);
|
|
50249
|
-
const resolvedGreeting = (0,
|
|
50758
|
+
const resolvedGreeting = (0, import_react110.useMemo)(
|
|
50250
50759
|
() => greeting != null ? greeting : `Good ${getWelcomeGreeting(getHour(currentDate, timeZone))}`,
|
|
50251
50760
|
[currentDate, greeting, timeZone]
|
|
50252
50761
|
);
|
|
50253
|
-
return /* @__PURE__ */ (0,
|
|
50254
|
-
/* @__PURE__ */ (0,
|
|
50762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)("div", { className: [WelcomeMessage_default.root, className].filter(Boolean).join(" "), children: [
|
|
50763
|
+
/* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(Heading, { className: WelcomeMessage_default.heading, suppressHydrationWarning: true, children: [
|
|
50255
50764
|
resolvedGreeting,
|
|
50256
50765
|
", ",
|
|
50257
50766
|
name,
|
|
50258
|
-
showWave ? /* @__PURE__ */ (0,
|
|
50767
|
+
showWave ? /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("span", { "aria-hidden": "true", className: WelcomeMessage_default.wave, children: "\u{1F44B}" }) : null
|
|
50259
50768
|
] }),
|
|
50260
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
50769
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("p", { className: WelcomeMessage_default.subtitle, children: subtitle }) : null
|
|
50261
50770
|
] });
|
|
50262
50771
|
}
|
|
50263
50772
|
|
|
50264
50773
|
// ../../components/Desktop/Desktop.tsx
|
|
50265
|
-
var
|
|
50774
|
+
var import_react113 = require("react");
|
|
50266
50775
|
|
|
50267
50776
|
// ../../components/DesktopDock/DesktopDock.tsx
|
|
50268
|
-
var
|
|
50777
|
+
var import_react111 = require("react");
|
|
50269
50778
|
|
|
50270
50779
|
// ../../components/DesktopIcon/DesktopIcon.module.css
|
|
50271
50780
|
var DesktopIcon_default = {"icon":"opus_Aw_c1o_icon","label":"opus_Aw_c1o_label","root":"opus_Aw_c1o_root"};
|
|
50272
50781
|
|
|
50273
50782
|
// ../../components/DesktopIcon/DesktopIcon.tsx
|
|
50274
|
-
var
|
|
50783
|
+
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
50275
50784
|
function DesktopIcon({
|
|
50276
50785
|
active,
|
|
50277
50786
|
className,
|
|
@@ -50283,7 +50792,7 @@ function DesktopIcon({
|
|
|
50283
50792
|
selected,
|
|
50284
50793
|
tone = "purple"
|
|
50285
50794
|
}) {
|
|
50286
|
-
return /* @__PURE__ */ (0,
|
|
50795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)(
|
|
50287
50796
|
"button",
|
|
50288
50797
|
{
|
|
50289
50798
|
"aria-label": `Open ${label}`,
|
|
@@ -50301,18 +50810,18 @@ function DesktopIcon({
|
|
|
50301
50810
|
},
|
|
50302
50811
|
type: "button",
|
|
50303
50812
|
children: [
|
|
50304
|
-
/* @__PURE__ */ (0,
|
|
50305
|
-
/* @__PURE__ */ (0,
|
|
50813
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("span", { "aria-hidden": "true", className: DesktopIcon_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime185.jsx)(CatalogIcon, { iconName: icon }) }),
|
|
50814
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("span", { className: DesktopIcon_default.label, children: label })
|
|
50306
50815
|
]
|
|
50307
50816
|
}
|
|
50308
50817
|
);
|
|
50309
50818
|
}
|
|
50310
50819
|
|
|
50311
50820
|
// ../../components/DesktopDock/DesktopDock.module.css
|
|
50312
|
-
var DesktopDock_default = {"
|
|
50821
|
+
var DesktopDock_default = {"resizeHandle":"opus_2rzXpn_resizeHandle","indicator":"opus_2rzXpn_indicator","item":"opus_2rzXpn_item","root":"opus_2rzXpn_root"};
|
|
50313
50822
|
|
|
50314
50823
|
// ../../components/DesktopDock/DesktopDock.tsx
|
|
50315
|
-
var
|
|
50824
|
+
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
50316
50825
|
function DesktopDock({
|
|
50317
50826
|
autoHide = false,
|
|
50318
50827
|
className,
|
|
@@ -50325,15 +50834,15 @@ function DesktopDock({
|
|
|
50325
50834
|
resizable = true,
|
|
50326
50835
|
size: controlledSize
|
|
50327
50836
|
}) {
|
|
50328
|
-
const [internalSize, setInternalSize] = (0,
|
|
50837
|
+
const [internalSize, setInternalSize] = (0, import_react111.useState)(40);
|
|
50329
50838
|
const size = controlledSize != null ? controlledSize : internalSize;
|
|
50330
|
-
const dragRef = (0,
|
|
50839
|
+
const dragRef = (0, import_react111.useRef)(null);
|
|
50331
50840
|
const setSize = (next) => {
|
|
50332
50841
|
const bounded = Math.max(minSize, Math.min(maxSize, Math.round(next)));
|
|
50333
50842
|
if (controlledSize === void 0) setInternalSize(bounded);
|
|
50334
50843
|
onSizeChange == null ? void 0 : onSizeChange(bounded);
|
|
50335
50844
|
};
|
|
50336
|
-
(0,
|
|
50845
|
+
(0, import_react111.useEffect)(() => {
|
|
50337
50846
|
const move = (event) => {
|
|
50338
50847
|
const drag = dragRef.current;
|
|
50339
50848
|
if (!drag) return;
|
|
@@ -50358,7 +50867,7 @@ function DesktopDock({
|
|
|
50358
50867
|
event.stopPropagation();
|
|
50359
50868
|
dragRef.current = { origin: size, startX: event.clientX, startY: event.clientY };
|
|
50360
50869
|
};
|
|
50361
|
-
return /* @__PURE__ */ (0,
|
|
50870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
|
|
50362
50871
|
"nav",
|
|
50363
50872
|
{
|
|
50364
50873
|
"aria-label": "Desktop dock",
|
|
@@ -50367,7 +50876,7 @@ function DesktopDock({
|
|
|
50367
50876
|
"data-position": position,
|
|
50368
50877
|
style: { "--desktop-dock-size": `${size}px` },
|
|
50369
50878
|
children: [
|
|
50370
|
-
resizable ? /* @__PURE__ */ (0,
|
|
50879
|
+
resizable ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
50371
50880
|
"div",
|
|
50372
50881
|
{
|
|
50373
50882
|
"aria-label": "Resize desktop dock",
|
|
@@ -50385,14 +50894,14 @@ function DesktopDock({
|
|
|
50385
50894
|
tabIndex: 0
|
|
50386
50895
|
}
|
|
50387
50896
|
) : null,
|
|
50388
|
-
items.map((item) => /* @__PURE__ */ (0,
|
|
50897
|
+
items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime186.jsxs)(
|
|
50389
50898
|
"span",
|
|
50390
50899
|
{
|
|
50391
50900
|
className: DesktopDock_default.item,
|
|
50392
50901
|
"data-active": item.active || void 0,
|
|
50393
50902
|
onClick: () => onItemClick == null ? void 0 : onItemClick(item),
|
|
50394
50903
|
children: [
|
|
50395
|
-
/* @__PURE__ */ (0,
|
|
50904
|
+
/* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
50396
50905
|
DesktopIcon,
|
|
50397
50906
|
{
|
|
50398
50907
|
active: item.active,
|
|
@@ -50402,7 +50911,7 @@ function DesktopDock({
|
|
|
50402
50911
|
tone: item.tone
|
|
50403
50912
|
}
|
|
50404
50913
|
),
|
|
50405
|
-
item.active ? /* @__PURE__ */ (0,
|
|
50914
|
+
item.active ? /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
|
|
50406
50915
|
"span",
|
|
50407
50916
|
{
|
|
50408
50917
|
"aria-hidden": "true",
|
|
@@ -50420,13 +50929,13 @@ function DesktopDock({
|
|
|
50420
50929
|
}
|
|
50421
50930
|
|
|
50422
50931
|
// ../../components/DesktopWindow/DesktopWindow.tsx
|
|
50423
|
-
var
|
|
50932
|
+
var import_react112 = require("react");
|
|
50424
50933
|
|
|
50425
50934
|
// ../../components/DesktopWindow/DesktopWindow.module.css
|
|
50426
|
-
var DesktopWindow_default = {"desktop-window-
|
|
50935
|
+
var DesktopWindow_default = {"desktop-window-close":"opus_o4H-Ol_desktop-window-close","desktop-window-restore-bottom":"opus_o4H-Ol_desktop-window-restore-bottom","controls":"opus_o4H-Ol_controls","maximize":"opus_o4H-Ol_maximize","root":"opus_o4H-Ol_root","body":"opus_o4H-Ol_body","desktop-window-open":"opus_o4H-Ol_desktop-window-open","desktop-window-activate":"opus_o4H-Ol_desktop-window-activate","title":"opus_o4H-Ol_title","close":"opus_o4H-Ol_close","resize":"opus_o4H-Ol_resize","minimize":"opus_o4H-Ol_minimize","desktop-window-restore-left":"opus_o4H-Ol_desktop-window-restore-left","desktop-window-restore-right":"opus_o4H-Ol_desktop-window-restore-right","titlebar":"opus_o4H-Ol_titlebar"};
|
|
50427
50936
|
|
|
50428
50937
|
// ../../components/DesktopWindow/DesktopWindow.tsx
|
|
50429
|
-
var
|
|
50938
|
+
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
50430
50939
|
var fallbackRect = { height: 330, width: 520, x: 130, y: 70 };
|
|
50431
50940
|
function DesktopWindow({
|
|
50432
50941
|
active,
|
|
@@ -50449,16 +50958,16 @@ function DesktopWindow({
|
|
|
50449
50958
|
tone = "purple",
|
|
50450
50959
|
zIndex = 1
|
|
50451
50960
|
}) {
|
|
50452
|
-
const [closing, setClosing] = (0,
|
|
50453
|
-
const [entering, setEntering] = (0,
|
|
50454
|
-
const [internalRect, setInternalRect] = (0,
|
|
50455
|
-
const [motion, setMotion] = (0,
|
|
50456
|
-
const [present, setPresent] = (0,
|
|
50961
|
+
const [closing, setClosing] = (0, import_react112.useState)(false);
|
|
50962
|
+
const [entering, setEntering] = (0, import_react112.useState)(open && !minimized);
|
|
50963
|
+
const [internalRect, setInternalRect] = (0, import_react112.useState)(defaultRect);
|
|
50964
|
+
const [motion, setMotion] = (0, import_react112.useState)("idle");
|
|
50965
|
+
const [present, setPresent] = (0, import_react112.useState)(open && !minimized);
|
|
50457
50966
|
const rect = controlledRect != null ? controlledRect : internalRect;
|
|
50458
|
-
const rootRef = (0,
|
|
50459
|
-
const sessionRef = (0,
|
|
50460
|
-
const dragLockRef = (0,
|
|
50461
|
-
const selectionStyleRef = (0,
|
|
50967
|
+
const rootRef = (0, import_react112.useRef)(null);
|
|
50968
|
+
const sessionRef = (0, import_react112.useRef)(null);
|
|
50969
|
+
const dragLockRef = (0, import_react112.useRef)(false);
|
|
50970
|
+
const selectionStyleRef = (0, import_react112.useRef)(null);
|
|
50462
50971
|
const lockSelection = () => {
|
|
50463
50972
|
var _a2;
|
|
50464
50973
|
dragLockRef.current = true;
|
|
@@ -50509,7 +51018,7 @@ function DesktopWindow({
|
|
|
50509
51018
|
sessionRef.current = null;
|
|
50510
51019
|
unlockSelection();
|
|
50511
51020
|
};
|
|
50512
|
-
(0,
|
|
51021
|
+
(0, import_react112.useEffect)(() => {
|
|
50513
51022
|
let timer;
|
|
50514
51023
|
if (open) {
|
|
50515
51024
|
setClosing(false);
|
|
@@ -50528,7 +51037,7 @@ function DesktopWindow({
|
|
|
50528
51037
|
if (timer) clearTimeout(timer);
|
|
50529
51038
|
};
|
|
50530
51039
|
}, [open]);
|
|
50531
|
-
(0,
|
|
51040
|
+
(0, import_react112.useEffect)(() => {
|
|
50532
51041
|
let timer;
|
|
50533
51042
|
if (!open) return;
|
|
50534
51043
|
if (minimized) {
|
|
@@ -50544,7 +51053,7 @@ function DesktopWindow({
|
|
|
50544
51053
|
if (timer) clearTimeout(timer);
|
|
50545
51054
|
};
|
|
50546
51055
|
}, [minimized, open]);
|
|
50547
|
-
(0,
|
|
51056
|
+
(0, import_react112.useEffect)(() => {
|
|
50548
51057
|
const move = (event) => {
|
|
50549
51058
|
var _a2, _b2, _c2;
|
|
50550
51059
|
const session = sessionRef.current;
|
|
@@ -50604,7 +51113,7 @@ function DesktopWindow({
|
|
|
50604
51113
|
window.removeEventListener("pointercancel", finishInteraction);
|
|
50605
51114
|
};
|
|
50606
51115
|
});
|
|
50607
|
-
(0,
|
|
51116
|
+
(0, import_react112.useEffect)(() => () => {
|
|
50608
51117
|
unlockSelection();
|
|
50609
51118
|
}, []);
|
|
50610
51119
|
if (!present) return null;
|
|
@@ -50649,7 +51158,7 @@ function DesktopWindow({
|
|
|
50649
51158
|
};
|
|
50650
51159
|
};
|
|
50651
51160
|
const style = maximized ? { height: "100%", left: 0, top: 0, width: "100%", zIndex } : { height: rect.height, left: rect.x, top: rect.y, width: rect.width, zIndex };
|
|
50652
|
-
return /* @__PURE__ */ (0,
|
|
51161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime187.jsxs)(
|
|
50653
51162
|
"article",
|
|
50654
51163
|
{
|
|
50655
51164
|
"aria-label": `${title} window`,
|
|
@@ -50667,25 +51176,25 @@ function DesktopWindow({
|
|
|
50667
51176
|
ref: rootRef,
|
|
50668
51177
|
style,
|
|
50669
51178
|
children: [
|
|
50670
|
-
/* @__PURE__ */ (0,
|
|
50671
|
-
/* @__PURE__ */ (0,
|
|
50672
|
-
/* @__PURE__ */ (0,
|
|
50673
|
-
/* @__PURE__ */ (0,
|
|
50674
|
-
/* @__PURE__ */ (0,
|
|
51179
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("header", { className: DesktopWindow_default.titlebar, onDoubleClick: () => onMaximize == null ? void 0 : onMaximize(!maximized), onPointerDown: startMove, children: [
|
|
51180
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsxs)("div", { "aria-label": "Window controls", className: DesktopWindow_default.controls, children: [
|
|
51181
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("button", { "aria-label": `Close ${title}`, className: DesktopWindow_default.close, onClick: onClose, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(CatalogIcon, { iconName: "xmark" }) }),
|
|
51182
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("button", { "aria-label": `Minimize ${title}`, className: DesktopWindow_default.minimize, onClick: onMinimize, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(CatalogIcon, { iconName: "minus" }) }),
|
|
51183
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
|
|
50675
51184
|
"button",
|
|
50676
51185
|
{
|
|
50677
51186
|
"aria-label": `${maximized ? "Restore" : "Maximize"} ${title}`,
|
|
50678
51187
|
className: DesktopWindow_default.maximize,
|
|
50679
51188
|
onClick: () => onMaximize == null ? void 0 : onMaximize(!maximized),
|
|
50680
51189
|
type: "button",
|
|
50681
|
-
children: /* @__PURE__ */ (0,
|
|
51190
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(CatalogIcon, { iconName: maximized ? "down-left-and-up-right-to-center" : "expand" })
|
|
50682
51191
|
}
|
|
50683
51192
|
)
|
|
50684
51193
|
] }),
|
|
50685
|
-
/* @__PURE__ */ (0,
|
|
51194
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { className: DesktopWindow_default.title, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("span", { children: title }) })
|
|
50686
51195
|
] }),
|
|
50687
|
-
/* @__PURE__ */ (0,
|
|
50688
|
-
["n", "ne", "e", "se", "s", "sw", "w", "nw"].map((edge) => /* @__PURE__ */ (0,
|
|
51196
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)("div", { className: DesktopWindow_default.body, children }),
|
|
51197
|
+
["n", "ne", "e", "se", "s", "sw", "w", "nw"].map((edge) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
|
|
50689
51198
|
"span",
|
|
50690
51199
|
{
|
|
50691
51200
|
"aria-hidden": "true",
|
|
@@ -50701,10 +51210,10 @@ function DesktopWindow({
|
|
|
50701
51210
|
}
|
|
50702
51211
|
|
|
50703
51212
|
// ../../components/Desktop/Desktop.module.css
|
|
50704
|
-
var Desktop_default = {"
|
|
51213
|
+
var Desktop_default = {"root":"opus_x1XVZi_root","shortcuts":"opus_x1XVZi_shortcuts","shortcut":"opus_x1XVZi_shortcut"};
|
|
50705
51214
|
|
|
50706
51215
|
// ../../components/Desktop/Desktop.tsx
|
|
50707
|
-
var
|
|
51216
|
+
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
50708
51217
|
function Desktop({
|
|
50709
51218
|
className,
|
|
50710
51219
|
dockItems = [],
|
|
@@ -50719,9 +51228,9 @@ function Desktop({
|
|
|
50719
51228
|
windows = []
|
|
50720
51229
|
}) {
|
|
50721
51230
|
var _a2;
|
|
50722
|
-
const [items, setItems] = (0,
|
|
50723
|
-
const [selectedShortcut, setSelectedShortcut] = (0,
|
|
50724
|
-
const [shortcutPositions, setShortcutPositions] = (0,
|
|
51231
|
+
const [items, setItems] = (0, import_react113.useState)(windows);
|
|
51232
|
+
const [selectedShortcut, setSelectedShortcut] = (0, import_react113.useState)(null);
|
|
51233
|
+
const [shortcutPositions, setShortcutPositions] = (0, import_react113.useState)(
|
|
50725
51234
|
() => Object.fromEntries(
|
|
50726
51235
|
shortcuts.map((shortcut, index) => {
|
|
50727
51236
|
var _a3, _b2;
|
|
@@ -50732,9 +51241,9 @@ function Desktop({
|
|
|
50732
51241
|
})
|
|
50733
51242
|
)
|
|
50734
51243
|
);
|
|
50735
|
-
const rootRef = (0,
|
|
50736
|
-
const shortcutDragRef = (0,
|
|
50737
|
-
const suppressShortcutOpenRef = (0,
|
|
51244
|
+
const rootRef = (0, import_react113.useRef)(null);
|
|
51245
|
+
const shortcutDragRef = (0, import_react113.useRef)(null);
|
|
51246
|
+
const suppressShortcutOpenRef = (0, import_react113.useRef)(null);
|
|
50738
51247
|
const maxZ = Math.max(1, ...items.map((item) => {
|
|
50739
51248
|
var _a3;
|
|
50740
51249
|
return (_a3 = item.zIndex) != null ? _a3 : 1;
|
|
@@ -50756,7 +51265,7 @@ function Desktop({
|
|
|
50756
51265
|
update(id, { minimized: false, open: true, tone, zIndex: maxZ + 1 });
|
|
50757
51266
|
onAction == null ? void 0 : onAction("open", id);
|
|
50758
51267
|
};
|
|
50759
|
-
(0,
|
|
51268
|
+
(0, import_react113.useEffect)(() => {
|
|
50760
51269
|
const move = (event) => {
|
|
50761
51270
|
const drag = shortcutDragRef.current;
|
|
50762
51271
|
const root = rootRef.current;
|
|
@@ -50787,7 +51296,7 @@ function Desktop({
|
|
|
50787
51296
|
window.removeEventListener("pointercancel", end);
|
|
50788
51297
|
};
|
|
50789
51298
|
}, []);
|
|
50790
|
-
(0,
|
|
51299
|
+
(0, import_react113.useEffect)(() => {
|
|
50791
51300
|
setItems((current) => {
|
|
50792
51301
|
const existingIds = new Set(current.map((item) => item.id));
|
|
50793
51302
|
const additions = windows.filter((item) => !existingIds.has(item.id));
|
|
@@ -50823,7 +51332,7 @@ function Desktop({
|
|
|
50823
51332
|
startY: event.clientY
|
|
50824
51333
|
};
|
|
50825
51334
|
};
|
|
50826
|
-
return /* @__PURE__ */ (0,
|
|
51335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsxs)(
|
|
50827
51336
|
"section",
|
|
50828
51337
|
{
|
|
50829
51338
|
"aria-label": "Desktop",
|
|
@@ -50836,17 +51345,17 @@ function Desktop({
|
|
|
50836
51345
|
},
|
|
50837
51346
|
ref: rootRef,
|
|
50838
51347
|
children: [
|
|
50839
|
-
/* @__PURE__ */ (0,
|
|
51348
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)("div", { className: Desktop_default.shortcuts, "aria-label": "Desktop shortcuts", children: shortcuts.map((shortcut) => {
|
|
50840
51349
|
var _a3;
|
|
50841
51350
|
const position = (_a3 = shortcutPositions[shortcut.id]) != null ? _a3 : { x: 14, y: 18 };
|
|
50842
|
-
return /* @__PURE__ */ (0,
|
|
51351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
50843
51352
|
"div",
|
|
50844
51353
|
{
|
|
50845
51354
|
className: Desktop_default.shortcut,
|
|
50846
51355
|
onDragStart: (event) => event.preventDefault(),
|
|
50847
51356
|
onPointerDown: startShortcutDrag(shortcut),
|
|
50848
51357
|
style: { transform: `translate3d(${position.x}px, ${position.y}px, 0)` },
|
|
50849
|
-
children: /* @__PURE__ */ (0,
|
|
51358
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
50850
51359
|
DesktopIcon,
|
|
50851
51360
|
{
|
|
50852
51361
|
icon: shortcut.icon,
|
|
@@ -50870,7 +51379,7 @@ function Desktop({
|
|
|
50870
51379
|
}) }),
|
|
50871
51380
|
items.map((item) => {
|
|
50872
51381
|
var _a3, _b2;
|
|
50873
|
-
return /* @__PURE__ */ (0,
|
|
51382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
50874
51383
|
DesktopWindow,
|
|
50875
51384
|
{
|
|
50876
51385
|
active: item.id === activeId,
|
|
@@ -50902,7 +51411,7 @@ function Desktop({
|
|
|
50902
51411
|
item.id
|
|
50903
51412
|
);
|
|
50904
51413
|
}),
|
|
50905
|
-
/* @__PURE__ */ (0,
|
|
51414
|
+
/* @__PURE__ */ (0, import_jsx_runtime188.jsx)(
|
|
50906
51415
|
DesktopDock,
|
|
50907
51416
|
{
|
|
50908
51417
|
autoHide: dockAutoHide,
|
|
@@ -50944,39 +51453,39 @@ var demoVideoTracks = [
|
|
|
50944
51453
|
];
|
|
50945
51454
|
|
|
50946
51455
|
// ../../components/DesktopLab/DesktopLab.module.css
|
|
50947
|
-
var DesktopLab_default = {"
|
|
51456
|
+
var DesktopLab_default = {"contacts":"opus_dES1xR_contacts","explorer":"opus_dES1xR_explorer","activity":"opus_dES1xR_activity","contactAvatar":"opus_dES1xR_contactAvatar","settingsList":"opus_dES1xR_settingsList","settings":"opus_dES1xR_settings","video":"opus_dES1xR_video","files":"opus_dES1xR_files","contactList":"opus_dES1xR_contactList"};
|
|
50948
51457
|
|
|
50949
51458
|
// ../../components/DesktopLab/DesktopLab.tsx
|
|
50950
|
-
var
|
|
51459
|
+
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
50951
51460
|
function ExplorerContent({ onAction }) {
|
|
50952
|
-
return /* @__PURE__ */ (0,
|
|
50953
|
-
/* @__PURE__ */ (0,
|
|
50954
|
-
/* @__PURE__ */ (0,
|
|
51461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { className: DesktopLab_default.explorer, children: [
|
|
51462
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("aside", { children: ["Home", "Documents", "Pictures", "Shared"].map((label) => /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("button", { onClick: () => onAction == null ? void 0 : onAction(`Open ${label}`), type: "button", children: [
|
|
51463
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: "folder" }),
|
|
50955
51464
|
label
|
|
50956
51465
|
] }, label)) }),
|
|
50957
|
-
/* @__PURE__ */ (0,
|
|
50958
|
-
/* @__PURE__ */ (0,
|
|
50959
|
-
/* @__PURE__ */ (0,
|
|
50960
|
-
/* @__PURE__ */ (0,
|
|
50961
|
-
/* @__PURE__ */ (0,
|
|
51466
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("main", { children: [
|
|
51467
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("h2", { children: "Recent documents" }),
|
|
51468
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { className: DesktopLab_default.files, children: ["CRM brief.pdf", "Q3 forecast.xlsx", "Brand assets", "Customer notes.docx"].map((name, index) => /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("button", { onClick: () => onAction == null ? void 0 : onAction(`Open ${name}`), type: "button", children: [
|
|
51469
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: index === 2 ? "folder" : "file-lines" }),
|
|
51470
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("span", { children: name })
|
|
50962
51471
|
] }, name)) })
|
|
50963
51472
|
] })
|
|
50964
51473
|
] });
|
|
50965
51474
|
}
|
|
50966
51475
|
function ActivityContent({ onAction }) {
|
|
50967
|
-
return /* @__PURE__ */ (0,
|
|
50968
|
-
/* @__PURE__ */ (0,
|
|
51476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { className: DesktopLab_default.activity, children: [
|
|
51477
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("h2", { children: "Activity" }),
|
|
50969
51478
|
[
|
|
50970
51479
|
["Emma Davis", "Proposal approved", "success"],
|
|
50971
51480
|
["Michael Brown", "New task assigned", "accent"],
|
|
50972
51481
|
["Olivia Wilson", "Invoice needs review", "warning"]
|
|
50973
|
-
].map(([name, detail, tone]) => /* @__PURE__ */ (0,
|
|
50974
|
-
/* @__PURE__ */ (0,
|
|
50975
|
-
/* @__PURE__ */ (0,
|
|
50976
|
-
/* @__PURE__ */ (0,
|
|
50977
|
-
/* @__PURE__ */ (0,
|
|
51482
|
+
].map(([name, detail, tone]) => /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("button", { onClick: () => onAction == null ? void 0 : onAction(`Open activity for ${name}`), type: "button", children: [
|
|
51483
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: "bell" }),
|
|
51484
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("span", { children: [
|
|
51485
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("strong", { children: name }),
|
|
51486
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("small", { children: detail })
|
|
50978
51487
|
] }),
|
|
50979
|
-
/* @__PURE__ */ (0,
|
|
51488
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(Badge, { label: "Open", size: "sm", tone })
|
|
50980
51489
|
] }, name))
|
|
50981
51490
|
] });
|
|
50982
51491
|
}
|
|
@@ -50987,21 +51496,21 @@ function SettingsContent({ onAction }) {
|
|
|
50987
51496
|
{ detail: "Privacy and account protection", icon: "shield-halved", id: "privacy", label: "Privacy & Security" },
|
|
50988
51497
|
{ detail: "Keyboard, display and accessibility", icon: "universal-access", id: "accessibility", label: "Accessibility" }
|
|
50989
51498
|
];
|
|
50990
|
-
return /* @__PURE__ */ (0,
|
|
50991
|
-
/* @__PURE__ */ (0,
|
|
50992
|
-
/* @__PURE__ */ (0,
|
|
50993
|
-
/* @__PURE__ */ (0,
|
|
51499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { className: DesktopLab_default.settings, children: [
|
|
51500
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("h2", { children: "Settings" }),
|
|
51501
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("p", { children: "Choose an area to configure your workspace." }),
|
|
51502
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { className: DesktopLab_default.settingsList, children: settings.map((setting) => /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)(
|
|
50994
51503
|
"button",
|
|
50995
51504
|
{
|
|
50996
51505
|
onClick: () => onAction == null ? void 0 : onAction(`Open ${setting.label} settings`),
|
|
50997
51506
|
type: "button",
|
|
50998
51507
|
children: [
|
|
50999
|
-
/* @__PURE__ */ (0,
|
|
51000
|
-
/* @__PURE__ */ (0,
|
|
51001
|
-
/* @__PURE__ */ (0,
|
|
51002
|
-
/* @__PURE__ */ (0,
|
|
51508
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: setting.icon }),
|
|
51509
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("span", { children: [
|
|
51510
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("strong", { children: setting.label }),
|
|
51511
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("small", { children: setting.detail })
|
|
51003
51512
|
] }),
|
|
51004
|
-
/* @__PURE__ */ (0,
|
|
51513
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: "chevron-right" })
|
|
51005
51514
|
]
|
|
51006
51515
|
},
|
|
51007
51516
|
setting.id
|
|
@@ -51015,30 +51524,30 @@ function ContactsContent({ onAction }) {
|
|
|
51015
51524
|
{ company: "Global Corp", initials: "OW", name: "Olivia Wilson", status: "Away" },
|
|
51016
51525
|
{ company: "Northstar", initials: "NP", name: "Noah Patel", status: "Online" }
|
|
51017
51526
|
];
|
|
51018
|
-
return /* @__PURE__ */ (0,
|
|
51019
|
-
/* @__PURE__ */ (0,
|
|
51020
|
-
/* @__PURE__ */ (0,
|
|
51021
|
-
/* @__PURE__ */ (0,
|
|
51022
|
-
/* @__PURE__ */ (0,
|
|
51527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { className: DesktopLab_default.contacts, children: [
|
|
51528
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("header", { children: [
|
|
51529
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("div", { children: [
|
|
51530
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("h2", { children: "Contacts" }),
|
|
51531
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("p", { children: "Your recent CRM contacts." })
|
|
51023
51532
|
] }),
|
|
51024
|
-
/* @__PURE__ */ (0,
|
|
51025
|
-
/* @__PURE__ */ (0,
|
|
51533
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("button", { onClick: () => onAction == null ? void 0 : onAction("Add contact"), type: "button", children: [
|
|
51534
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: "plus" }),
|
|
51026
51535
|
"Add contact"
|
|
51027
51536
|
] })
|
|
51028
51537
|
] }),
|
|
51029
|
-
/* @__PURE__ */ (0,
|
|
51538
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { className: DesktopLab_default.contactList, children: contacts.map((contact) => /* @__PURE__ */ (0, import_jsx_runtime189.jsxs)(
|
|
51030
51539
|
"button",
|
|
51031
51540
|
{
|
|
51032
51541
|
onClick: () => onAction == null ? void 0 : onAction(`Open contact ${contact.name}`),
|
|
51033
51542
|
type: "button",
|
|
51034
51543
|
children: [
|
|
51035
|
-
/* @__PURE__ */ (0,
|
|
51036
|
-
/* @__PURE__ */ (0,
|
|
51037
|
-
/* @__PURE__ */ (0,
|
|
51038
|
-
/* @__PURE__ */ (0,
|
|
51544
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("span", { className: DesktopLab_default.contactAvatar, children: contact.initials }),
|
|
51545
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsxs)("span", { children: [
|
|
51546
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("strong", { children: contact.name }),
|
|
51547
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("small", { children: contact.company })
|
|
51039
51548
|
] }),
|
|
51040
|
-
/* @__PURE__ */ (0,
|
|
51041
|
-
/* @__PURE__ */ (0,
|
|
51549
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)("small", { children: contact.status }),
|
|
51550
|
+
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(CatalogIcon, { iconName: "chevron-right" })
|
|
51042
51551
|
]
|
|
51043
51552
|
},
|
|
51044
51553
|
contact.name
|
|
@@ -51046,7 +51555,7 @@ function ContactsContent({ onAction }) {
|
|
|
51046
51555
|
] });
|
|
51047
51556
|
}
|
|
51048
51557
|
function VideoContent({ onAction }) {
|
|
51049
|
-
return /* @__PURE__ */ (0,
|
|
51558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("div", { className: DesktopLab_default.video, children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
51050
51559
|
VideoPlayer,
|
|
51051
51560
|
{
|
|
51052
51561
|
edgeToEdge: true,
|
|
@@ -51065,7 +51574,7 @@ function DesktopLab({
|
|
|
51065
51574
|
}) {
|
|
51066
51575
|
const apps = [
|
|
51067
51576
|
{
|
|
51068
|
-
content: /* @__PURE__ */ (0,
|
|
51577
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(ExplorerContent, { onAction }),
|
|
51069
51578
|
dock: true,
|
|
51070
51579
|
icon: "folder-open",
|
|
51071
51580
|
id: "files",
|
|
@@ -51077,7 +51586,7 @@ function DesktopLab({
|
|
|
51077
51586
|
zIndex: 2
|
|
51078
51587
|
},
|
|
51079
51588
|
{
|
|
51080
|
-
content: /* @__PURE__ */ (0,
|
|
51589
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(ActivityContent, { onAction }),
|
|
51081
51590
|
dock: true,
|
|
51082
51591
|
icon: "bell",
|
|
51083
51592
|
id: "activity",
|
|
@@ -51088,7 +51597,7 @@ function DesktopLab({
|
|
|
51088
51597
|
zIndex: 3
|
|
51089
51598
|
},
|
|
51090
51599
|
{
|
|
51091
|
-
content: /* @__PURE__ */ (0,
|
|
51600
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(SettingsContent, { onAction }),
|
|
51092
51601
|
dock: true,
|
|
51093
51602
|
icon: "gear",
|
|
51094
51603
|
id: "settings",
|
|
@@ -51100,7 +51609,7 @@ function DesktopLab({
|
|
|
51100
51609
|
zIndex: 4
|
|
51101
51610
|
},
|
|
51102
51611
|
{
|
|
51103
|
-
content: /* @__PURE__ */ (0,
|
|
51612
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(ContactsContent, { onAction }),
|
|
51104
51613
|
dock: true,
|
|
51105
51614
|
icon: "users",
|
|
51106
51615
|
id: "contacts",
|
|
@@ -51112,7 +51621,7 @@ function DesktopLab({
|
|
|
51112
51621
|
zIndex: 5
|
|
51113
51622
|
},
|
|
51114
51623
|
{
|
|
51115
|
-
content: /* @__PURE__ */ (0,
|
|
51624
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(VideoContent, { onAction }),
|
|
51116
51625
|
dock: true,
|
|
51117
51626
|
icon: "circle-play",
|
|
51118
51627
|
id: "video",
|
|
@@ -51134,7 +51643,7 @@ function DesktopLab({
|
|
|
51134
51643
|
tone: app.tone,
|
|
51135
51644
|
zIndex: app.zIndex
|
|
51136
51645
|
}));
|
|
51137
|
-
return /* @__PURE__ */ (0,
|
|
51646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
51138
51647
|
Desktop,
|
|
51139
51648
|
{
|
|
51140
51649
|
dockAutoHide,
|
|
@@ -51160,7 +51669,7 @@ function DesktopLab({
|
|
|
51160
51669
|
}
|
|
51161
51670
|
|
|
51162
51671
|
// ../../components/FontPicker/FontPicker.tsx
|
|
51163
|
-
var
|
|
51672
|
+
var import_react114 = require("react");
|
|
51164
51673
|
var import_free_solid_svg_icons16 = require("@fortawesome/free-solid-svg-icons");
|
|
51165
51674
|
var import_react_fontawesome18 = require("@fortawesome/react-fontawesome");
|
|
51166
51675
|
|
|
@@ -51274,10 +51783,10 @@ var googleFonts = [
|
|
|
51274
51783
|
];
|
|
51275
51784
|
|
|
51276
51785
|
// ../../components/FontPicker/FontPicker.module.css
|
|
51277
|
-
var FontPicker_default = {"
|
|
51786
|
+
var FontPicker_default = {"optionName":"opus_ub1fhz_optionName","triggerText":"opus_ub1fhz_triggerText","searchWrap":"opus_ub1fhz_searchWrap","options":"opus_ub1fhz_options","trigger":"opus_ub1fhz_trigger","fieldCompact":"opus_ub1fhz_fieldCompact","option":"opus_ub1fhz_option","reset":"opus_ub1fhz_reset","empty":"opus_ub1fhz_empty","picker":"opus_ub1fhz_picker","dropdown":"opus_ub1fhz_dropdown","optionPreview":"opus_ub1fhz_optionPreview","chevron":"opus_ub1fhz_chevron","label":"opus_ub1fhz_label","search":"opus_ub1fhz_search","field":"opus_ub1fhz_field"};
|
|
51278
51787
|
|
|
51279
51788
|
// ../../components/FontPicker/FontPicker.tsx
|
|
51280
|
-
var
|
|
51789
|
+
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
51281
51790
|
var FONT_STORAGE_KEY = "opus-components-font";
|
|
51282
51791
|
var DEFAULT_FONT_FAMILY = "Space Grotesk";
|
|
51283
51792
|
var fontSet = new Set(googleFonts);
|
|
@@ -51325,8 +51834,8 @@ function applyDocumentFont(family) {
|
|
|
51325
51834
|
loadSelectedFont(family);
|
|
51326
51835
|
}
|
|
51327
51836
|
function useFontPreference() {
|
|
51328
|
-
const [fontFamily, setFontFamilyState] = (0,
|
|
51329
|
-
(0,
|
|
51837
|
+
const [fontFamily, setFontFamilyState] = (0, import_react114.useState)(DEFAULT_FONT_FAMILY);
|
|
51838
|
+
(0, import_react114.useEffect)(() => {
|
|
51330
51839
|
const timeout = window.setTimeout(() => {
|
|
51331
51840
|
const stored = window.localStorage.getItem(FONT_STORAGE_KEY);
|
|
51332
51841
|
const initial = isGoogleFont(stored) ? stored : DEFAULT_FONT_FAMILY;
|
|
@@ -51335,7 +51844,7 @@ function useFontPreference() {
|
|
|
51335
51844
|
}, 0);
|
|
51336
51845
|
return () => window.clearTimeout(timeout);
|
|
51337
51846
|
}, []);
|
|
51338
|
-
const setFontFamily = (0,
|
|
51847
|
+
const setFontFamily = (0, import_react114.useCallback)((next) => {
|
|
51339
51848
|
if (!isGoogleFont(next)) return;
|
|
51340
51849
|
setFontFamilyState(next);
|
|
51341
51850
|
applyDocumentFont(next);
|
|
@@ -51344,15 +51853,15 @@ function useFontPreference() {
|
|
|
51344
51853
|
return { fontFamily, setFontFamily };
|
|
51345
51854
|
}
|
|
51346
51855
|
function FontPicker({ compact = false, id, onChange, value }) {
|
|
51347
|
-
const [open, setOpen] = (0,
|
|
51348
|
-
const [query, setQuery] = (0,
|
|
51349
|
-
const rootRef = (0,
|
|
51350
|
-
const searchRef = (0,
|
|
51351
|
-
const filteredFonts = (0,
|
|
51856
|
+
const [open, setOpen] = (0, import_react114.useState)(false);
|
|
51857
|
+
const [query, setQuery] = (0, import_react114.useState)("");
|
|
51858
|
+
const rootRef = (0, import_react114.useRef)(null);
|
|
51859
|
+
const searchRef = (0, import_react114.useRef)(null);
|
|
51860
|
+
const filteredFonts = (0, import_react114.useMemo)(() => {
|
|
51352
51861
|
const normalized = query.trim().toLocaleLowerCase();
|
|
51353
51862
|
return normalized ? googleFonts.filter((font) => font.toLocaleLowerCase().includes(normalized)) : googleFonts;
|
|
51354
51863
|
}, [query]);
|
|
51355
|
-
(0,
|
|
51864
|
+
(0, import_react114.useEffect)(() => {
|
|
51356
51865
|
var _a2;
|
|
51357
51866
|
if (!open) return;
|
|
51358
51867
|
loadFontLinks(googleFonts);
|
|
@@ -51371,10 +51880,10 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51371
51880
|
document.removeEventListener("keydown", closeOnEscape);
|
|
51372
51881
|
};
|
|
51373
51882
|
}, [open]);
|
|
51374
|
-
return /* @__PURE__ */ (0,
|
|
51375
|
-
compact ? null : /* @__PURE__ */ (0,
|
|
51376
|
-
/* @__PURE__ */ (0,
|
|
51377
|
-
/* @__PURE__ */ (0,
|
|
51883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)("div", { className: compact ? `${FontPicker_default.field} ${FontPicker_default.fieldCompact}` : FontPicker_default.field, ref: rootRef, children: [
|
|
51884
|
+
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime190.jsx)("span", { className: FontPicker_default.label, children: "Font" }),
|
|
51885
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsxs)("div", { className: FontPicker_default.picker, children: [
|
|
51886
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(
|
|
51378
51887
|
"button",
|
|
51379
51888
|
{
|
|
51380
51889
|
"aria-controls": `${id}-options`,
|
|
@@ -51387,14 +51896,14 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51387
51896
|
type: "button",
|
|
51388
51897
|
onClick: () => setOpen((current) => !current),
|
|
51389
51898
|
children: [
|
|
51390
|
-
/* @__PURE__ */ (0,
|
|
51391
|
-
/* @__PURE__ */ (0,
|
|
51899
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("span", { className: FontPicker_default.triggerText, children: value }),
|
|
51900
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("span", { "aria-hidden": "true", className: FontPicker_default.chevron })
|
|
51392
51901
|
]
|
|
51393
51902
|
}
|
|
51394
51903
|
),
|
|
51395
|
-
open ? /* @__PURE__ */ (0,
|
|
51396
|
-
/* @__PURE__ */ (0,
|
|
51397
|
-
/* @__PURE__ */ (0,
|
|
51904
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)("div", { className: FontPicker_default.dropdown, children: [
|
|
51905
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsxs)("div", { className: FontPicker_default.searchWrap, children: [
|
|
51906
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
51398
51907
|
"input",
|
|
51399
51908
|
{
|
|
51400
51909
|
"aria-label": "Search Google Fonts",
|
|
@@ -51406,7 +51915,7 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51406
51915
|
onChange: (event) => setQuery(event.target.value)
|
|
51407
51916
|
}
|
|
51408
51917
|
),
|
|
51409
|
-
value !== DEFAULT_FONT_FAMILY ? /* @__PURE__ */ (0,
|
|
51918
|
+
value !== DEFAULT_FONT_FAMILY ? /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(
|
|
51410
51919
|
"button",
|
|
51411
51920
|
{
|
|
51412
51921
|
"aria-label": "Reset font",
|
|
@@ -51418,14 +51927,14 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51418
51927
|
setQuery("");
|
|
51419
51928
|
setOpen(false);
|
|
51420
51929
|
},
|
|
51421
|
-
children: /* @__PURE__ */ (0,
|
|
51930
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)(import_react_fontawesome18.FontAwesomeIcon, { icon: import_free_solid_svg_icons16.faRotateLeft })
|
|
51422
51931
|
}
|
|
51423
51932
|
) : null
|
|
51424
51933
|
] }),
|
|
51425
|
-
/* @__PURE__ */ (0,
|
|
51934
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsxs)("div", { "aria-label": "Google Fonts", className: FontPicker_default.options, id: `${id}-options`, role: "listbox", children: [
|
|
51426
51935
|
filteredFonts.map((font) => {
|
|
51427
51936
|
const selected = font === value;
|
|
51428
|
-
return /* @__PURE__ */ (0,
|
|
51937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime190.jsxs)(
|
|
51429
51938
|
"button",
|
|
51430
51939
|
{
|
|
51431
51940
|
"aria-selected": selected,
|
|
@@ -51440,14 +51949,14 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51440
51949
|
setQuery("");
|
|
51441
51950
|
},
|
|
51442
51951
|
children: [
|
|
51443
|
-
/* @__PURE__ */ (0,
|
|
51444
|
-
/* @__PURE__ */ (0,
|
|
51952
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("span", { className: FontPicker_default.optionName, children: font }),
|
|
51953
|
+
/* @__PURE__ */ (0, import_jsx_runtime190.jsx)("span", { className: FontPicker_default.optionPreview, children: "The quick brown fox" })
|
|
51445
51954
|
]
|
|
51446
51955
|
},
|
|
51447
51956
|
font
|
|
51448
51957
|
);
|
|
51449
51958
|
}),
|
|
51450
|
-
filteredFonts.length === 0 ? /* @__PURE__ */ (0,
|
|
51959
|
+
filteredFonts.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime190.jsx)("p", { className: FontPicker_default.empty, children: "No matching fonts" }) : null
|
|
51451
51960
|
] })
|
|
51452
51961
|
] }) : null
|
|
51453
51962
|
] })
|
|
@@ -51455,16 +51964,16 @@ function FontPicker({ compact = false, id, onChange, value }) {
|
|
|
51455
51964
|
}
|
|
51456
51965
|
|
|
51457
51966
|
// ../../components/ColourClouds/ColourClouds.tsx
|
|
51458
|
-
var
|
|
51967
|
+
var import_react115 = require("react");
|
|
51459
51968
|
var import_react_dom7 = require("react-dom");
|
|
51460
51969
|
var import_free_solid_svg_icons17 = require("@fortawesome/free-solid-svg-icons");
|
|
51461
51970
|
var import_react_fontawesome19 = require("@fortawesome/react-fontawesome");
|
|
51462
51971
|
|
|
51463
51972
|
// ../../components/ColourClouds/ColourClouds.module.css
|
|
51464
|
-
var ColourClouds_default = {"
|
|
51973
|
+
var ColourClouds_default = {"label":"opus_mKFpa5_label","cloud":"opus_mKFpa5_cloud","control":"opus_mKFpa5_control","trigger":"opus_mKFpa5_trigger","menuMeta":"opus_mKFpa5_menuMeta","controlCompact":"opus_mKFpa5_controlCompact","dropdownBody":"opus_mKFpa5_dropdownBody","dropdown":"opus_mKFpa5_dropdown","triggerStatic":"opus_mKFpa5_triggerStatic","reset":"opus_mKFpa5_reset","menu":"opus_mKFpa5_menu","menuHex":"opus_mKFpa5_menuHex","menuRow":"opus_mKFpa5_menuRow","menuLabel":"opus_mKFpa5_menuLabel","dropdownTitle":"opus_mKFpa5_dropdownTitle","clouds":"opus_mKFpa5_clouds","menuSwatch":"opus_mKFpa5_menuSwatch","menuEmpty":"opus_mKFpa5_menuEmpty"};
|
|
51465
51974
|
|
|
51466
51975
|
// ../../components/ColourClouds/ColourClouds.tsx
|
|
51467
|
-
var
|
|
51976
|
+
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
51468
51977
|
var COLOUR_CLOUDS_MAX = 5;
|
|
51469
51978
|
function normalizeCloud(raw, index) {
|
|
51470
51979
|
if (!raw || typeof raw !== "object") {
|
|
@@ -51522,12 +52031,12 @@ function serializeColourClouds(clouds) {
|
|
|
51522
52031
|
}
|
|
51523
52032
|
function ColourCloudsMenu({ clouds }) {
|
|
51524
52033
|
if (clouds.length === 0) {
|
|
51525
|
-
return /* @__PURE__ */ (0,
|
|
52034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("p", { className: ColourClouds_default.menuEmpty, children: "No colours" });
|
|
51526
52035
|
}
|
|
51527
|
-
return /* @__PURE__ */ (0,
|
|
52036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("ul", { className: ColourClouds_default.menu, children: clouds.map((cloud) => {
|
|
51528
52037
|
var _a2, _b2, _c2, _d2, _e2;
|
|
51529
|
-
return /* @__PURE__ */ (0,
|
|
51530
|
-
/* @__PURE__ */ (0,
|
|
52038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("li", { className: ColourClouds_default.menuRow, children: [
|
|
52039
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
51531
52040
|
"span",
|
|
51532
52041
|
{
|
|
51533
52042
|
"aria-hidden": "true",
|
|
@@ -51538,9 +52047,9 @@ function ColourCloudsMenu({ clouds }) {
|
|
|
51538
52047
|
}
|
|
51539
52048
|
}
|
|
51540
52049
|
),
|
|
51541
|
-
/* @__PURE__ */ (0,
|
|
51542
|
-
/* @__PURE__ */ (0,
|
|
51543
|
-
/* @__PURE__ */ (0,
|
|
52050
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("span", { className: ColourClouds_default.menuMeta, children: [
|
|
52051
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("span", { className: ColourClouds_default.menuLabel, children: (_e2 = (_d2 = cloud.label) != null ? _d2 : cloud.id) != null ? _e2 : "Colour" }),
|
|
52052
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("span", { className: ColourClouds_default.menuHex, children: [
|
|
51544
52053
|
cloud.color,
|
|
51545
52054
|
cloud.secondary ? ` \xB7 ${cloud.secondary}` : ""
|
|
51546
52055
|
] })
|
|
@@ -51568,19 +52077,19 @@ function ColourClouds({
|
|
|
51568
52077
|
title,
|
|
51569
52078
|
value
|
|
51570
52079
|
}) {
|
|
51571
|
-
const menuId = (0,
|
|
51572
|
-
const titleId = (0,
|
|
51573
|
-
const rootRef = (0,
|
|
51574
|
-
const triggerRef = (0,
|
|
51575
|
-
const panelRef = (0,
|
|
51576
|
-
const [portalReady, setPortalReady] = (0,
|
|
51577
|
-
const [internalOpen, setInternalOpen] = (0,
|
|
51578
|
-
const [portalStyle, setPortalStyle] = (0,
|
|
52080
|
+
const menuId = (0, import_react115.useId)();
|
|
52081
|
+
const titleId = (0, import_react115.useId)();
|
|
52082
|
+
const rootRef = (0, import_react115.useRef)(null);
|
|
52083
|
+
const triggerRef = (0, import_react115.useRef)(null);
|
|
52084
|
+
const panelRef = (0, import_react115.useRef)(null);
|
|
52085
|
+
const [portalReady, setPortalReady] = (0, import_react115.useState)(false);
|
|
52086
|
+
const [internalOpen, setInternalOpen] = (0, import_react115.useState)(false);
|
|
52087
|
+
const [portalStyle, setPortalStyle] = (0, import_react115.useState)({ left: 0, top: 0 });
|
|
51579
52088
|
const clouds = items ? parseColourClouds(items) : parseColourClouds(value);
|
|
51580
52089
|
const hasMenu = children != null;
|
|
51581
52090
|
const controlled = open !== void 0;
|
|
51582
52091
|
const visible = hasMenu ? controlled ? Boolean(open) : internalOpen : false;
|
|
51583
|
-
const setVisible = (0,
|
|
52092
|
+
const setVisible = (0, import_react115.useCallback)(
|
|
51584
52093
|
(next) => {
|
|
51585
52094
|
if (!controlled) {
|
|
51586
52095
|
setInternalOpen(next);
|
|
@@ -51589,10 +52098,10 @@ function ColourClouds({
|
|
|
51589
52098
|
},
|
|
51590
52099
|
[controlled, onOpenChange]
|
|
51591
52100
|
);
|
|
51592
|
-
(0,
|
|
52101
|
+
(0, import_react115.useEffect)(() => {
|
|
51593
52102
|
setPortalReady(true);
|
|
51594
52103
|
}, []);
|
|
51595
|
-
(0,
|
|
52104
|
+
(0, import_react115.useLayoutEffect)(() => {
|
|
51596
52105
|
if (!visible || !triggerRef.current) {
|
|
51597
52106
|
return;
|
|
51598
52107
|
}
|
|
@@ -51626,7 +52135,7 @@ function ColourClouds({
|
|
|
51626
52135
|
window.removeEventListener("scroll", updatePosition, true);
|
|
51627
52136
|
};
|
|
51628
52137
|
}, [placement, visible, children, clouds.length]);
|
|
51629
|
-
(0,
|
|
52138
|
+
(0, import_react115.useEffect)(() => {
|
|
51630
52139
|
if (!visible) {
|
|
51631
52140
|
return;
|
|
51632
52141
|
}
|
|
@@ -51658,9 +52167,9 @@ function ColourClouds({
|
|
|
51658
52167
|
compact ? ColourClouds_default.controlCompact : null,
|
|
51659
52168
|
className
|
|
51660
52169
|
].filter(Boolean).join(" ");
|
|
51661
|
-
const cloudsNode = /* @__PURE__ */ (0,
|
|
52170
|
+
const cloudsNode = /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("span", { "aria-hidden": "true", className: ColourClouds_default.clouds, children: clouds.map((cloud) => {
|
|
51662
52171
|
var _a2, _b2, _c2;
|
|
51663
|
-
return /* @__PURE__ */ (0,
|
|
52172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
51664
52173
|
"span",
|
|
51665
52174
|
{
|
|
51666
52175
|
className: ColourClouds_default.cloud,
|
|
@@ -51673,13 +52182,13 @@ function ColourClouds({
|
|
|
51673
52182
|
(_b2 = cloud.id) != null ? _b2 : `${cloud.color}-${(_a2 = cloud.secondary) != null ? _a2 : ""}`
|
|
51674
52183
|
);
|
|
51675
52184
|
}) });
|
|
51676
|
-
const labelNode = label ? /* @__PURE__ */ (0,
|
|
51677
|
-
const content = /* @__PURE__ */ (0,
|
|
52185
|
+
const labelNode = label ? /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("span", { className: ColourClouds_default.label, children: label }) : null;
|
|
52186
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(import_jsx_runtime191.Fragment, { children: [
|
|
51678
52187
|
cloudsNode,
|
|
51679
52188
|
labelNode
|
|
51680
52189
|
] });
|
|
51681
52190
|
const triggerClass = compact ? `${ColourClouds_default.trigger} ${ColourClouds_default.triggerCompact}` : ColourClouds_default.trigger;
|
|
51682
|
-
const triggerButton = /* @__PURE__ */ (0,
|
|
52191
|
+
const triggerButton = /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
51683
52192
|
"button",
|
|
51684
52193
|
{
|
|
51685
52194
|
ref: triggerRef,
|
|
@@ -51700,7 +52209,7 @@ function ColourClouds({
|
|
|
51700
52209
|
children: content
|
|
51701
52210
|
}
|
|
51702
52211
|
);
|
|
51703
|
-
const trigger = hasMenu || onClick ? triggerButton : /* @__PURE__ */ (0,
|
|
52212
|
+
const trigger = hasMenu || onClick ? triggerButton : /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
51704
52213
|
"span",
|
|
51705
52214
|
{
|
|
51706
52215
|
"aria-label": ariaLabel,
|
|
@@ -51711,7 +52220,7 @@ function ColourClouds({
|
|
|
51711
52220
|
}
|
|
51712
52221
|
);
|
|
51713
52222
|
const menu = hasMenu && visible && portalReady ? (0, import_react_dom7.createPortal)(
|
|
51714
|
-
/* @__PURE__ */ (0,
|
|
52223
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(
|
|
51715
52224
|
"div",
|
|
51716
52225
|
{
|
|
51717
52226
|
ref: panelRef,
|
|
@@ -51725,16 +52234,16 @@ function ColourClouds({
|
|
|
51725
52234
|
width: portalStyle.width
|
|
51726
52235
|
},
|
|
51727
52236
|
children: [
|
|
51728
|
-
/* @__PURE__ */ (0,
|
|
51729
|
-
/* @__PURE__ */ (0,
|
|
52237
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("h3", { className: ColourClouds_default.dropdownTitle, id: titleId, children: menuTitle }),
|
|
52238
|
+
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)("div", { className: ColourClouds_default.dropdownBody, children })
|
|
51730
52239
|
]
|
|
51731
52240
|
}
|
|
51732
52241
|
),
|
|
51733
52242
|
document.body
|
|
51734
52243
|
) : null;
|
|
51735
|
-
return /* @__PURE__ */ (0,
|
|
52244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)("div", { className: rootClass, "data-fit-content": "true", ref: rootRef, children: [
|
|
51736
52245
|
trigger,
|
|
51737
|
-
showReset && onReset ? /* @__PURE__ */ (0,
|
|
52246
|
+
showReset && onReset ? /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(
|
|
51738
52247
|
"button",
|
|
51739
52248
|
{
|
|
51740
52249
|
"aria-label": "Reset colours",
|
|
@@ -51743,7 +52252,7 @@ function ColourClouds({
|
|
|
51743
52252
|
title: "Reset colours",
|
|
51744
52253
|
type: "button",
|
|
51745
52254
|
onClick: onReset,
|
|
51746
|
-
children: /* @__PURE__ */ (0,
|
|
52255
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(import_react_fontawesome19.FontAwesomeIcon, { icon: import_free_solid_svg_icons17.faRotateLeft })
|
|
51747
52256
|
}
|
|
51748
52257
|
) : null,
|
|
51749
52258
|
menu
|
|
@@ -51832,16 +52341,19 @@ function ColourClouds({
|
|
|
51832
52341
|
DualListBuilder,
|
|
51833
52342
|
EmojiPicker,
|
|
51834
52343
|
EmptyState,
|
|
52344
|
+
FLIP_CLOCK_FRAME_RATE,
|
|
51835
52345
|
FONT_STORAGE_KEY,
|
|
51836
52346
|
FieldShell,
|
|
51837
52347
|
FileField,
|
|
51838
52348
|
FilterBuilder,
|
|
51839
52349
|
FilterSelectField,
|
|
52350
|
+
FlipClock,
|
|
51840
52351
|
FloatingActionButton,
|
|
51841
52352
|
FocusTrap,
|
|
51842
52353
|
FontPicker,
|
|
51843
52354
|
Form,
|
|
51844
52355
|
FormActions,
|
|
52356
|
+
FormHeader,
|
|
51845
52357
|
FormSection,
|
|
51846
52358
|
FormValidationSummary,
|
|
51847
52359
|
Gauge,
|
|
@@ -52002,6 +52514,7 @@ function ColourClouds({
|
|
|
52002
52514
|
useContextMenu,
|
|
52003
52515
|
useFieldShellAria,
|
|
52004
52516
|
useFontPreference,
|
|
52517
|
+
useFormState,
|
|
52005
52518
|
useHotkey,
|
|
52006
52519
|
useHotkeyManager,
|
|
52007
52520
|
useIntersectionObserver,
|