@antimatter-audio/antimatter-ui 15.4.2 → 16.0.1
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/advanced/IconButton/IconButton.d.ts +4 -1
- package/dist/advanced/IconButton/IconButton.d.ts.map +1 -1
- package/dist/advanced/ModMatrix/ModMatrixComboboxCell.d.ts +1 -2
- package/dist/advanced/ModMatrix/ModMatrixComboboxCell.d.ts.map +1 -1
- package/dist/advanced/ModMatrix/ModMatrixToggleCell.d.ts.map +1 -1
- package/dist/advanced/ModuleFooter/InputModTab.d.ts.map +1 -1
- package/dist/advanced/ModuleFooter/SeqPanel.d.ts.map +1 -1
- package/dist/advanced/ModuleHeader/ModuleHeader.d.ts.map +1 -1
- package/dist/advanced/StepSequencer/StepSequencer.d.ts +4 -1
- package/dist/advanced/StepSequencer/StepSequencer.d.ts.map +1 -1
- package/dist/common/constants.d.ts +13 -13
- package/dist/common/constants.d.ts.map +1 -1
- package/dist/common/types.d.ts +9 -2
- package/dist/common/types.d.ts.map +1 -1
- package/dist/context/GlobalContextProvider.d.ts +2 -2
- package/dist/context/GlobalContextProvider.d.ts.map +1 -1
- package/dist/core/Box/Box.d.ts +4 -1
- package/dist/core/Box/Box.d.ts.map +1 -1
- package/dist/core/Button/Button.d.ts +5 -3
- package/dist/core/Button/Button.d.ts.map +1 -1
- package/dist/core/Slider/BarSlider.d.ts +4 -2
- package/dist/core/Slider/BarSlider.d.ts.map +1 -1
- package/dist/core/Slider/RotaryCombobox.d.ts +4 -2
- package/dist/core/Slider/RotaryCombobox.d.ts.map +1 -1
- package/dist/core/Slider/RotarySlider.d.ts +4 -2
- package/dist/core/Slider/RotarySlider.d.ts.map +1 -1
- package/dist/core/Slider/Slider.d.ts +5 -3
- package/dist/core/Slider/Slider.d.ts.map +1 -1
- package/dist/core/Toggle/Toggle.d.ts +6 -2
- package/dist/core/Toggle/Toggle.d.ts.map +1 -1
- package/dist/hooks/useCombobox.d.ts +4 -1
- package/dist/hooks/useCombobox.d.ts.map +1 -1
- package/dist/hooks/useObservable.d.ts +6 -0
- package/dist/hooks/useObservable.d.ts.map +1 -0
- package/dist/hooks/useRandom.d.ts +2 -0
- package/dist/hooks/useRandom.d.ts.map +1 -1
- package/dist/hooks/useReset.d.ts +3 -0
- package/dist/hooks/useReset.d.ts.map +1 -0
- package/dist/hooks/useSlider.d.ts +6 -3
- package/dist/hooks/useSlider.d.ts.map +1 -1
- package/dist/index.js +576 -303
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/IconButton/IconButton.d.ts +4 -1
- package/dist/src/advanced/IconButton/IconButton.d.ts.map +1 -1
- package/dist/src/advanced/ModMatrix/ModMatrixToggleCell.d.ts.map +1 -1
- package/dist/src/advanced/ModuleFooter/InputModTab.d.ts.map +1 -1
- package/dist/src/advanced/ModuleFooter/SeqPanel.d.ts.map +1 -1
- package/dist/src/advanced/ModuleHeader/ModuleHeader.d.ts.map +1 -1
- package/dist/src/advanced/StepSequencer/StepSequencer.d.ts +4 -1
- package/dist/src/advanced/StepSequencer/StepSequencer.d.ts.map +1 -1
- package/dist/src/common/constants.d.ts +13 -13
- package/dist/src/common/constants.d.ts.map +1 -1
- package/dist/src/common/types.d.ts +9 -2
- package/dist/src/common/types.d.ts.map +1 -1
- package/dist/src/context/GlobalContextProvider.d.ts +2 -2
- package/dist/src/context/GlobalContextProvider.d.ts.map +1 -1
- package/dist/src/core/Box/Box.d.ts +4 -1
- package/dist/src/core/Box/Box.d.ts.map +1 -1
- package/dist/src/core/Button/Button.d.ts +5 -3
- package/dist/src/core/Button/Button.d.ts.map +1 -1
- package/dist/src/core/Slider/BarSlider.d.ts +4 -2
- package/dist/src/core/Slider/BarSlider.d.ts.map +1 -1
- package/dist/src/core/Slider/RotaryCombobox.d.ts +4 -2
- package/dist/src/core/Slider/RotaryCombobox.d.ts.map +1 -1
- package/dist/src/core/Slider/RotarySlider.d.ts +4 -2
- package/dist/src/core/Slider/RotarySlider.d.ts.map +1 -1
- package/dist/src/core/Slider/Slider.d.ts +5 -3
- package/dist/src/core/Slider/Slider.d.ts.map +1 -1
- package/dist/src/core/Toggle/Toggle.d.ts +6 -2
- package/dist/src/core/Toggle/Toggle.d.ts.map +1 -1
- package/dist/src/hooks/useCombobox.d.ts +4 -1
- package/dist/src/hooks/useCombobox.d.ts.map +1 -1
- package/dist/src/hooks/useObservable.d.ts +2 -5
- package/dist/src/hooks/useObservable.d.ts.map +1 -1
- package/dist/src/hooks/useRandom.d.ts +2 -0
- package/dist/src/hooks/useRandom.d.ts.map +1 -1
- package/dist/src/hooks/useReset.d.ts +3 -0
- package/dist/src/hooks/useReset.d.ts.map +1 -0
- package/dist/src/hooks/useSlider.d.ts +6 -3
- package/dist/src/hooks/useSlider.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,8 +34,8 @@ function styleInject(css, ref) {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
var css_248z$
|
|
38
|
-
styleInject(css_248z$
|
|
37
|
+
var css_248z$j = "@theme static {\n /* Default theme colors */\n --color-brand: #bb68d9;\n --color-brand-900: #1b181c;\n /* --color-brand-900: #443342; */\n --color-brand-700: #932eb8;\n --color-brand-600: #ac47d1;\n --color-brand-400: #d199e6;\n --color-brand-300: #f3d4f4;\n --color-brand-secondary: #18d6d6;\n --color-alert: #8a0101;\n --color-text: #bab6cf;\n --color-gray-100: #c7c3de;\n --color-gray-200: #9a96ab;\n --color-gray-300: #838091;\n --color-gray-400: #595763;\n --color-gray-500: #4c4a54;\n --color-gray-600: #2e2c33;\n --color-gray-700: #1e1d21;\n --color-gray-800: #101012;\n --color-gray-900: #09090a;\n\n /* Main section theme colors */\n --color-GreenScreen-100: #1b4b3d;\n --color-GreenScreen-200: #29705b;\n --color-GreenScreen-300: #369679;\n --color-GreenScreen-400: #44bb97;\n --color-GreenScreen-500: #61c6a7;\n --color-GreenScreen-600: #7cd0b7;\n --color-GreenScreen-700: #a1ddcb;\n --color-GreenScreen-1000: #c7ebe0;\n\n --color-AmberScreen-100: #371815;\n --color-AmberScreen-200: #5c2824;\n --color-AmberScreen-300: #813932;\n --color-AmberScreen-400: #a54940;\n --color-AmberScreen-500: #bd5e56;\n --color-AmberScreen-600: #c6746c;\n --color-AmberScreen-700: #d49691;\n --color-AmberScreen-1000: #e2b9b6;\n\n --color-BlackScreen-100: #000000;\n --color-BlackScreen-200: #0b0b0f;\n --color-BlackScreen-300: #16161d;\n --color-BlackScreen-400: #21212c;\n --color-BlackScreen-500: #2c2c3a;\n --color-BlackScreen-600: #373749;\n --color-BlackScreen-700: #424257;\n --color-BlackScreen-1000: #4d4d66;\n\n --color-GreenAccent-100: #082b20;\n --color-GreenAccent-200: #105640;\n --color-GreenAccent-300: #188160;\n --color-GreenAccent-400: #21ab7f;\n --color-GreenAccent-500: #27ca96;\n --color-GreenAccent-600: #3edaa9;\n --color-GreenAccent-700: #69e2bc;\n --color-GreenAccent-1000: #94ebcf;\n\n --color-YellowAccent-100: #ad6a05;\n --color-YellowAccent-200: #df8807;\n --color-YellowAccent-300: #f8a220;\n --color-YellowAccent-400: #fab752;\n --color-YellowAccent-500: #faba58;\n --color-YellowAccent-600: #fac16b;\n --color-YellowAccent-700: #fbcb83;\n --color-YellowAccent-1000: #fcd69c;\n\n --color-RedAccent-100: #260d10;\n --color-RedAccent-200: #391318;\n --color-RedAccent-300: #4d191f;\n --color-RedAccent-400: #602027;\n --color-RedAccent-500: #73262f;\n --color-RedAccent-600: #862d37;\n --color-RedAccent-700: #99333f;\n --color-RedAccent-1000: #bf404f;\n\n --spacing-none: 0px;\n --spacing-xs: 2px;\n --spacing-sm: 4px;\n --spacing-ms: 6px;\n --spacing-md: 8px;\n --spacing-ml: 12px;\n --spacing-lg: 16px;\n --spacing-xl: 20px;\n --m-none: 0px;\n --m-xs: 2px;\n --m-sm: 4px;\n --m-ms: 6px;\n --m-md: 8px;\n --m-ml: 12px;\n --m-lg: 16px;\n --m-xl: 20px;\n --mt-none: 0px;\n --mt-xs: 2px;\n --mt-sm: 4px;\n --mt-ms: 6px;\n --mt-md: 8px;\n --mt-ml: 12px;\n --mt-lg: 16px;\n --mt-xl: 20px;\n --mr-none: 0px;\n --mr-xs: 2px;\n --mr-sm: 4px;\n --mr-ms: 6px;\n --mr-md: 8px;\n --mr-ml: 12px;\n --mr-lg: 16px;\n --mr-xl: 20px;\n --mb-none: 0px;\n --mb-xs: 2px;\n --mb-sm: 4px;\n --mb-ms: 6px;\n --mb-md: 8px;\n --mb-ml: 12px;\n --mb-lg: 16px;\n --mb-xl: 20px;\n --ml-none: 0px;\n --ml-xs: 2px;\n --ml-sm: 4px;\n --ml-ms: 6px;\n --ml-md: 8px;\n --ml-ml: 12px;\n --ml-lg: 16px;\n --ml-xl: 20px;\n --p-none: 0px;\n --p-xs: 2px;\n --p-sm: 4px;\n --p-ms: 6px;\n --p-md: 8px;\n --p-ml: 12px;\n --p-lg: 16px;\n --p-xl: 20px;\n --pt-none: 0px;\n --pt-xs: 2px;\n --pt-sm: 4px;\n --pt-ms: 6px;\n --pt-md: 8px;\n --pt-ml: 12px;\n --pt-lg: 16px;\n --pt-xl: 20px;\n --pr-none: 0px;\n --pr-xs: 2px;\n --pr-sm: 4px;\n --pr-ms: 6px;\n --pr-md: 8px;\n --pr-ml: 12px;\n --pr-lg: 16px;\n --pr-xl: 20px;\n --pb-none: 0px;\n --pb-xs: 2px;\n --pb-sm: 4px;\n --pb-ms: 6px;\n --pb-md: 8px;\n --pb-ml: 12px;\n --pb-lg: 16px;\n --pb-xl: 20px;\n --pl-none: 0px;\n --pl-xs: 2px;\n --pl-sm: 4px;\n --pl-ms: 6px;\n --pl-md: 8px;\n --pl-ml: 12px;\n --pl-lg: 16px;\n --pl-xl: 20px;\n --bg-lv1: #0e0e12;\n --bg-lv2: #121216;\n --bg-lv3: #16171d;\n --bg-lv4: #212128;\n --bg-lv5: #2b2b31;\n --bg-lv6: #3b3b44;\n --bg-lv7: #4c4a54;\n --bg-lv8: #595763;\n --bg-lv9: #838091;\n --bg-lv10: #9a96ab;\n --bg-lv11: #9999a7;\n --bg-lv12: #c1c1c1;\n --bg-selected: #2e2c33;\n\n /* --bg-lv3-brightened: #1a1b21; */\n\n --font-leagueSpartan: 'LeagueSpartan';\n --text-xs: 0.625rem;\n --text-sm: 0.7rem;\n --text-ms: 0.813rem;\n --text-md: 0.875rem;\n --text-lg: 1rem;\n --text-xl: 1.25rem;\n --text-title: 1.75rem;\n --gap-none: 0px;\n --gap-xs: 2px;\n --gap-sm: 4px;\n --gap-ms: 6px;\n --gap-md: 8px;\n --gap-ml: 12px;\n --gap-lg: 16px;\n --gap-xl: 20px;\n}\n\ninput,\ninput:hover,\ninput:focus,\ninput:focus-visible {\n background: transparent;\n border: none;\n outline: none;\n appearance: textfield;\n}\n\nbutton,\nbutton:hover,\nbutton:focus,\nbutton:focus-visible {\n outline: none;\n}\n\nbutton:disabled,\ninput:disabled {\n cursor: default;\n}\n\ndiv:focus,\ndiv:focus-visible {\n outline: none;\n appearance: textfield;\n}\n\n/* .cursor-hidden * {\n cursor: none !important;\n} */\n::-webkit-scrollbar,\n::-webkit-scrollbar-track {\n background-color: var(--bg-lv4);\n scrollbar-width: 3px;\n}\n\n::-webkit-scrollbar-thumb {\n background-color: var(--bg-lv7);\n border-radius: 6px;\n width: 3px;\n}\n\n* {\n -ms-overflow-style: none;\n}\n\n/* div::-webkit-scrollbar {\n display: none;\n} */\n\n@font-face {\n font-family: LeagueSpartan;\n /* ascent-override: 70%; */\n src: url('./common/assets/fonts/LeagueSpartan-Regular.ttf');\n}\n\n@font-face {\n font-family: LeagueSpartan;\n /* ascent-override: 70%; */\n src: url('./common/assets/fonts/LeagueSpartan-Thin.ttf');\n font-weight: lighter;\n}\n";
|
|
38
|
+
styleInject(css_248z$j);
|
|
39
39
|
|
|
40
40
|
var Spacing = /*#__PURE__*/ function(Spacing) {
|
|
41
41
|
Spacing["none"] = "none";
|
|
@@ -49,9 +49,11 @@ var Spacing = /*#__PURE__*/ function(Spacing) {
|
|
|
49
49
|
return Spacing;
|
|
50
50
|
}({});
|
|
51
51
|
var ButtonSize = /*#__PURE__*/ function(ButtonSize) {
|
|
52
|
-
ButtonSize["xSmall"] = "xSmall";
|
|
53
52
|
ButtonSize["small"] = "small";
|
|
53
|
+
ButtonSize["medium"] = "medium";
|
|
54
54
|
ButtonSize["large"] = "large";
|
|
55
|
+
ButtonSize["auto"] = "auto";
|
|
56
|
+
ButtonSize["full"] = "full";
|
|
55
57
|
return ButtonSize;
|
|
56
58
|
}({});
|
|
57
59
|
var FlexDirection = /*#__PURE__*/ function(FlexDirection) {
|
|
@@ -155,13 +157,13 @@ var StrokeStyle = /*#__PURE__*/ function(StrokeStyle) {
|
|
|
155
157
|
return StrokeStyle;
|
|
156
158
|
}({});
|
|
157
159
|
|
|
158
|
-
function _array_like_to_array$
|
|
160
|
+
function _array_like_to_array$n(arr, len) {
|
|
159
161
|
if (len == null || len > arr.length) len = arr.length;
|
|
160
162
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
161
163
|
return arr2;
|
|
162
164
|
}
|
|
163
165
|
function _array_without_holes$3(arr) {
|
|
164
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
166
|
+
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
165
167
|
}
|
|
166
168
|
function _iterable_to_array$3(iter) {
|
|
167
169
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -170,15 +172,15 @@ function _non_iterable_spread$3() {
|
|
|
170
172
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
171
173
|
}
|
|
172
174
|
function _to_consumable_array$3(arr) {
|
|
173
|
-
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$
|
|
175
|
+
return _array_without_holes$3(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$n(arr) || _non_iterable_spread$3();
|
|
174
176
|
}
|
|
175
|
-
function _unsupported_iterable_to_array$
|
|
177
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
176
178
|
if (!o) return;
|
|
177
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
179
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
178
180
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
179
181
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
180
182
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
181
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
183
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$n(o, minLen);
|
|
182
184
|
}
|
|
183
185
|
// export const roundUpToTwoDecimals = (val: number) => Math.ceil(val * 100) / 100;
|
|
184
186
|
// mocks the `normalisedToScaledValue` internal method from JUCE
|
|
@@ -374,16 +376,16 @@ var getBorderValue = function(borderArray, borderDirection, returnNumericValue)
|
|
|
374
376
|
}
|
|
375
377
|
};
|
|
376
378
|
|
|
377
|
-
function _array_like_to_array$
|
|
379
|
+
function _array_like_to_array$m(arr, len) {
|
|
378
380
|
if (len == null || len > arr.length) len = arr.length;
|
|
379
381
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
380
382
|
return arr2;
|
|
381
383
|
}
|
|
382
|
-
function _array_with_holes$
|
|
384
|
+
function _array_with_holes$l(arr) {
|
|
383
385
|
if (Array.isArray(arr)) return arr;
|
|
384
386
|
}
|
|
385
387
|
function _array_without_holes$2(arr) {
|
|
386
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
388
|
+
if (Array.isArray(arr)) return _array_like_to_array$m(arr);
|
|
387
389
|
}
|
|
388
390
|
function _define_property$r(obj, key, value) {
|
|
389
391
|
if (key in obj) {
|
|
@@ -401,7 +403,7 @@ function _define_property$r(obj, key, value) {
|
|
|
401
403
|
function _iterable_to_array$2(iter) {
|
|
402
404
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
403
405
|
}
|
|
404
|
-
function _iterable_to_array_limit$
|
|
406
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
405
407
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
406
408
|
if (_i == null) return;
|
|
407
409
|
var _arr = [];
|
|
@@ -425,7 +427,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
425
427
|
}
|
|
426
428
|
return _arr;
|
|
427
429
|
}
|
|
428
|
-
function _non_iterable_rest$
|
|
430
|
+
function _non_iterable_rest$l() {
|
|
429
431
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
430
432
|
}
|
|
431
433
|
function _non_iterable_spread$2() {
|
|
@@ -492,19 +494,19 @@ function _object_without_properties_loose$2(source, excluded) {
|
|
|
492
494
|
}
|
|
493
495
|
return target;
|
|
494
496
|
}
|
|
495
|
-
function _sliced_to_array$
|
|
496
|
-
return _array_with_holes$
|
|
497
|
+
function _sliced_to_array$l(arr, i) {
|
|
498
|
+
return _array_with_holes$l(arr) || _iterable_to_array_limit$l(arr, i) || _unsupported_iterable_to_array$m(arr, i) || _non_iterable_rest$l();
|
|
497
499
|
}
|
|
498
500
|
function _to_consumable_array$2(arr) {
|
|
499
|
-
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$
|
|
501
|
+
return _array_without_holes$2(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$m(arr) || _non_iterable_spread$2();
|
|
500
502
|
}
|
|
501
|
-
function _unsupported_iterable_to_array$
|
|
503
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
502
504
|
if (!o) return;
|
|
503
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
505
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
504
506
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
505
507
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
506
508
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
507
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
509
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$m(o, minLen);
|
|
508
510
|
}
|
|
509
511
|
//This component is a hack to create beveled edges on an element.
|
|
510
512
|
//This will be obsolete if/when Juce's browser supports
|
|
@@ -580,7 +582,7 @@ function BevelContainer(param) {
|
|
|
580
582
|
}));
|
|
581
583
|
if (hasBevel) {
|
|
582
584
|
var _React_Children, _firstChild_props, _firstChild_props1, _firstChild_props2, _firstChild_props3;
|
|
583
|
-
var _useState = _sliced_to_array$
|
|
585
|
+
var _useState = _sliced_to_array$l(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
584
586
|
var childrenOfContainer = (_React_Children = React__default.Children) === null || _React_Children === void 0 ? void 0 : _React_Children.toArray(children);
|
|
585
587
|
var firstChild = (childrenOfContainer === null || childrenOfContainer === void 0 ? void 0 : childrenOfContainer[0]) || [];
|
|
586
588
|
var childrenOfFirstChild = Array.isArray(firstChild === null || firstChild === void 0 ? void 0 : (_firstChild_props = firstChild.props) === null || _firstChild_props === void 0 ? void 0 : _firstChild_props.children) ? firstChild === null || firstChild === void 0 ? void 0 : (_firstChild_props1 = firstChild.props) === null || _firstChild_props1 === void 0 ? void 0 : _firstChild_props1.children : [
|
|
@@ -618,11 +620,11 @@ function BevelContainer(param) {
|
|
|
618
620
|
}
|
|
619
621
|
}
|
|
620
622
|
|
|
621
|
-
var css_248z$
|
|
622
|
-
styleInject(css_248z$
|
|
623
|
+
var css_248z$i = ".Tabs {\n display: flex;\n font-size: 1rem;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-transform: uppercase;\n text-align: center;\n border: 0;\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n}\n\n.Tabs-item {\n &:disabled {\n cursor: default;\n }\n}\n\n.Tabs-item::-moz-selection {\n background: transparent;\n}\n.Tabs-item::selection {\n background: transparent;\n}\n\n/* Tab styles */\n/* TODO: Refactor to use utility classes? */\n/* TODO: Clean up */\n/* TODO how do we want to style the scrollbars? */\n\n/* .Tabs-item {\n color: var(--bg-lv11);\n font-family: var(--font-leagueSpartan);\n background: var(--bg-lv2);\n} */\n\n.Tabs-item[data-headlessui-state='hover'],\n.Tabs-item[data-headlessui-state='hover active'],\n.tabs-item:focus,\n.tabs-item:focus-visible {\n filter: brightness(80%);\n}\n/* \n.Tabs-item[data-headlessui-state='selected hover'],\n.Tabs-item[data-headlessui-state='selected hover active'],\n.Tabs-item[data-headlessui-state='selected'],\n.Tabs-item[data-headlessui-state='selected focus'] {\n background: var(--bg-lv3);\n}\n\n.LFOTab .Tabs-item[data-headlessui-state='selected hover'] svg path,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover active'] svg path,\n.LFOTab .Tabs-item[data-headlessui-state='selected'] svg path,\n.LFOTab .Tabs-item[data-headlessui-state='selected focus'] svg path,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover'] svg line,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover active'] svg line,\n.LFOTab .Tabs-item[data-headlessui-state='selected'] svg line,\n.LFOTab .Tabs-item[data-headlessui-state='selected focus'] svg line,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover'] svg polyline,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover active'] svg polyline,\n.LFOTab .Tabs-item[data-headlessui-state='selected'] svg polyline,\n.LFOTab .Tabs-item[data-headlessui-state='selected focus'] svg polyline {\n stroke: var(--color-brand) !important;\n}\n\n.LFOTab .Tabs-item[data-headlessui-state='selected hover'] .Label,\n.LFOTab .Tabs-item[data-headlessui-state='selected hover active'] .Label,\n.LFOTab .Tabs-item[data-headlessui-state='selected'] .Label,\n.LFOTab .Tabs-item[data-headlessui-state='selected focus'] .Label {\n color: var(--color-brand) !important;\n} */\n";
|
|
624
|
+
styleInject(css_248z$i);
|
|
623
625
|
|
|
624
|
-
var css_248z$
|
|
625
|
-
styleInject(css_248z$
|
|
626
|
+
var css_248z$h = ".Button {\n font-size: var(--text-xs);\n display: flex;\n align-items: center;\n justify-content: center;\n padding-right: var(--spacing-ms);\n padding-left: var(--spacing-ms);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-align: enter;\n border: 0;\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n &.xSmall {\n width: var(--spacing-ml);\n height: var(--spacing-ml);\n }\n &.small {\n font-size: var(--text-xs);\n min-width: 1rem;\n min-height: var(--spacing-sm);\n }\n &.large {\n border-radius: var(--radius-sm);\n min-width: 1rem;\n min-height: var(--spacing-xl);\n }\n}\n";
|
|
627
|
+
styleInject(css_248z$h);
|
|
626
628
|
|
|
627
629
|
var ButtonType = /*#__PURE__*/ function(ButtonType) {
|
|
628
630
|
ButtonType["momentary"] = "momentary";
|
|
@@ -630,27 +632,27 @@ var ButtonType = /*#__PURE__*/ function(ButtonType) {
|
|
|
630
632
|
return ButtonType;
|
|
631
633
|
}({});
|
|
632
634
|
|
|
633
|
-
var
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
635
|
+
var buttonWidthMap = {
|
|
636
|
+
small: '12px',
|
|
637
|
+
medium: '100px',
|
|
638
|
+
large: '150px',
|
|
639
|
+
auto: 'auto',
|
|
640
|
+
full: '100%'
|
|
641
|
+
};
|
|
642
|
+
var buttonHeightMap = {
|
|
643
|
+
small: '12px',
|
|
644
|
+
medium: '30px',
|
|
645
|
+
large: '40px',
|
|
646
|
+
auto: 'auto',
|
|
647
|
+
full: '100%'
|
|
646
648
|
};
|
|
647
649
|
|
|
648
|
-
function _array_like_to_array$
|
|
650
|
+
function _array_like_to_array$l(arr, len) {
|
|
649
651
|
if (len == null || len > arr.length) len = arr.length;
|
|
650
652
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
651
653
|
return arr2;
|
|
652
654
|
}
|
|
653
|
-
function _array_with_holes$
|
|
655
|
+
function _array_with_holes$k(arr) {
|
|
654
656
|
if (Array.isArray(arr)) return arr;
|
|
655
657
|
}
|
|
656
658
|
function _define_property$q(obj, key, value) {
|
|
@@ -666,7 +668,7 @@ function _define_property$q(obj, key, value) {
|
|
|
666
668
|
}
|
|
667
669
|
return obj;
|
|
668
670
|
}
|
|
669
|
-
function _iterable_to_array_limit$
|
|
671
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
670
672
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
671
673
|
if (_i == null) return;
|
|
672
674
|
var _arr = [];
|
|
@@ -690,7 +692,7 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
690
692
|
}
|
|
691
693
|
return _arr;
|
|
692
694
|
}
|
|
693
|
-
function _non_iterable_rest$
|
|
695
|
+
function _non_iterable_rest$k() {
|
|
694
696
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
695
697
|
}
|
|
696
698
|
function _object_spread$o(target) {
|
|
@@ -735,19 +737,19 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
735
737
|
}
|
|
736
738
|
return target;
|
|
737
739
|
}
|
|
738
|
-
function _sliced_to_array$
|
|
739
|
-
return _array_with_holes$
|
|
740
|
+
function _sliced_to_array$k(arr, i) {
|
|
741
|
+
return _array_with_holes$k(arr) || _iterable_to_array_limit$k(arr, i) || _unsupported_iterable_to_array$l(arr, i) || _non_iterable_rest$k();
|
|
740
742
|
}
|
|
741
|
-
function _unsupported_iterable_to_array$
|
|
743
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
742
744
|
if (!o) return;
|
|
743
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
745
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
744
746
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
745
747
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
746
748
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
747
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
749
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
748
750
|
}
|
|
749
751
|
function Button(_param) {
|
|
750
|
-
var disabled = _param.disabled, text = _param.text, id = _param.id, className = _param.className, style = _param.style, onClick = _param.onClick, children = _param.children, outerGlowRadius = _param.outerGlowRadius, outerGlowColors = _param.outerGlowColors, _param_color = _param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color,
|
|
752
|
+
var disabled = _param.disabled, text = _param.text, id = _param.id, className = _param.className, style = _param.style, onClick = _param.onClick, children = _param.children, outerGlowRadius = _param.outerGlowRadius, outerGlowColors = _param.outerGlowColors, _param_color = _param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_highlightBackground = _param.highlightBackground, highlightBackground = _param_highlightBackground === void 0 ? 'var(--bg-lv6)' : _param_highlightBackground, _param_backgroundColor = _param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'var(--bg-lv5)' : _param_backgroundColor, highlightBorderColor = _param.highlightBorderColor, _param_highlightColor = _param.highlightColor, highlightColor = _param_highlightColor === void 0 ? 'var(--color-gray-100)' : _param_highlightColor, borderWidth = _param.borderWidth, borderColor = _param.borderColor, _param_cornerBevel = _param.cornerBevel, cornerBevel = _param_cornerBevel === void 0 ? [
|
|
751
753
|
0,
|
|
752
754
|
0,
|
|
753
755
|
0,
|
|
@@ -756,7 +758,7 @@ function Button(_param) {
|
|
|
756
758
|
Spacing.small
|
|
757
759
|
] : _param_padding, _param_margin = _param.margin, margin = _param_margin === void 0 ? [
|
|
758
760
|
Spacing.none
|
|
759
|
-
] : _param_margin, _param_type = _param.type, type = _param_type === void 0 ? ButtonType.latch : _param_type,
|
|
761
|
+
] : _param_margin, _param_type = _param.type, type = _param_type === void 0 ? ButtonType.latch : _param_type, _param_width = _param.width, width = _param_width === void 0 ? ButtonSize.medium : _param_width, _param_height = _param.height, height = _param_height === void 0 ? ButtonSize.medium : _param_height, rest = _object_without_properties$1(_param, [
|
|
760
762
|
"disabled",
|
|
761
763
|
"text",
|
|
762
764
|
"id",
|
|
@@ -767,8 +769,8 @@ function Button(_param) {
|
|
|
767
769
|
"outerGlowRadius",
|
|
768
770
|
"outerGlowColors",
|
|
769
771
|
"color",
|
|
770
|
-
"backgroundColor",
|
|
771
772
|
"highlightBackground",
|
|
773
|
+
"backgroundColor",
|
|
772
774
|
"highlightBorderColor",
|
|
773
775
|
"highlightColor",
|
|
774
776
|
"borderWidth",
|
|
@@ -777,17 +779,19 @@ function Button(_param) {
|
|
|
777
779
|
"padding",
|
|
778
780
|
"margin",
|
|
779
781
|
"type",
|
|
780
|
-
"
|
|
782
|
+
"width",
|
|
783
|
+
"height"
|
|
781
784
|
]);
|
|
782
|
-
var
|
|
783
|
-
var _React_useState = _sliced_to_array$h(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
|
|
785
|
+
var _React_useState = _sliced_to_array$k(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
|
|
784
786
|
var buttonState = Juce.getToggleState(id);
|
|
785
787
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
786
788
|
var hasBevel = !!cornerBevel.find(function(item) {
|
|
787
789
|
return item > 0;
|
|
788
790
|
});
|
|
789
|
-
var _useState = _sliced_to_array$
|
|
791
|
+
var _useState = _sliced_to_array$k(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
790
792
|
// const { updateModSlotRowTarget } = useGlobalContext();
|
|
793
|
+
var widthValue = (buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width]) ? buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width] : width;
|
|
794
|
+
var heightValue = (buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height]) ? buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height] : height;
|
|
791
795
|
// Update the local state when the ID changes
|
|
792
796
|
useEffect(function() {
|
|
793
797
|
setIsSelected(buttonState === null || buttonState === void 0 ? void 0 : buttonState.value);
|
|
@@ -843,8 +847,8 @@ function Button(_param) {
|
|
|
843
847
|
]);
|
|
844
848
|
var _padding_, _padding_1, _padding_2, _ref, _margin_, _margin_1, _margin_2, _ref1;
|
|
845
849
|
return /*#__PURE__*/ React__default.createElement(BevelContainer, {
|
|
846
|
-
width:
|
|
847
|
-
height:
|
|
850
|
+
width: width,
|
|
851
|
+
height: height,
|
|
848
852
|
cornerBevel: cornerBevel,
|
|
849
853
|
fillColor: backgroundColor,
|
|
850
854
|
borderWidth: borderWidth,
|
|
@@ -873,22 +877,24 @@ function Button(_param) {
|
|
|
873
877
|
marginRight: "var(--p-".concat((_margin_ = margin === null || margin === void 0 ? void 0 : margin[1]) !== null && _margin_ !== void 0 ? _margin_ : margin === null || margin === void 0 ? void 0 : margin[0], ")"),
|
|
874
878
|
marginBottom: "var(--p-".concat((_margin_1 = margin === null || margin === void 0 ? void 0 : margin[2]) !== null && _margin_1 !== void 0 ? _margin_1 : margin === null || margin === void 0 ? void 0 : margin[0], ")"),
|
|
875
879
|
marginLeft: "var(--p-".concat((_ref1 = (_margin_2 = margin === null || margin === void 0 ? void 0 : margin[3]) !== null && _margin_2 !== void 0 ? _margin_2 : margin === null || margin === void 0 ? void 0 : margin[1]) !== null && _ref1 !== void 0 ? _ref1 : margin === null || margin === void 0 ? void 0 : margin[0], ")"),
|
|
876
|
-
width:
|
|
877
|
-
|
|
880
|
+
width: widthValue,
|
|
881
|
+
height: heightValue,
|
|
882
|
+
backgroundColor: hasBevel ? 'transparent' : componentIsHovered ? highlightBackground : backgroundColor,
|
|
878
883
|
border: !hasBevel ? "".concat(borderWidth, "px solid ").concat(borderColor) : 'none',
|
|
879
884
|
filter: generateDropShadowFilterString(outerGlowColors, outerGlowRadius),
|
|
880
|
-
color: color
|
|
885
|
+
color: componentIsHovered ? highlightColor : color
|
|
881
886
|
}, style),
|
|
882
|
-
className: classnames('Button', isSelected && 'selected',
|
|
883
|
-
}, rest),
|
|
887
|
+
className: classnames('Button', isSelected && 'selected', className)
|
|
888
|
+
}, rest), width !== buttonWidthMap.small && (text ? text : children)));
|
|
884
889
|
}
|
|
885
890
|
Button.padding = Spacing;
|
|
886
891
|
Button.margin = Spacing;
|
|
887
892
|
Button.type = ButtonType;
|
|
888
|
-
Button.
|
|
893
|
+
Button.width = ButtonSize;
|
|
894
|
+
Button.height = ButtonSize;
|
|
889
895
|
|
|
890
|
-
var css_248z$
|
|
891
|
-
styleInject(css_248z$
|
|
896
|
+
var css_248z$g = ".IconButton {\n cursor: pointer;\n}\n.IconButton:hover:not(:disabled) {\n filter: brightness(80%);\n}\n";
|
|
897
|
+
styleInject(css_248z$g);
|
|
892
898
|
|
|
893
899
|
var JustifyContent = /*#__PURE__*/ function(JustifyContent) {
|
|
894
900
|
JustifyContent["flexStart"] = "flex-start";
|
|
@@ -927,6 +933,9 @@ var LayoutTags = /*#__PURE__*/ function(LayoutTags) {
|
|
|
927
933
|
return LayoutTags;
|
|
928
934
|
}({});
|
|
929
935
|
|
|
936
|
+
var css_248z$f = ".divider-right:after {\n content: '';\n border-color: inherit;\n border-right-width: 1px;\n border-style: solid;\n position: absolute;\n right: 0;\n height: var(--spacing-xl);\n top: 50%;\n}\n\n.divider-left:after {\n content: '';\n border-color: inherit;\n border-left-width: 1px;\n border-style: solid;\n position: absolute;\n height: var(--spacing-xl);\n right: 0;\n top: 50%;\n}\n";
|
|
937
|
+
styleInject(css_248z$f);
|
|
938
|
+
|
|
930
939
|
function _define_property$p(obj, key, value) {
|
|
931
940
|
if (key in obj) {
|
|
932
941
|
Object.defineProperty(obj, key, {
|
|
@@ -1012,7 +1021,8 @@ function Box(_param) {
|
|
|
1012
1021
|
'0px',
|
|
1013
1022
|
'0px',
|
|
1014
1023
|
'0px'
|
|
1015
|
-
] : _param_borderWidth, _param_borderStyle = _param.borderStyle, borderStyle = _param_borderStyle === void 0 ? BorderStyles.solid : _param_borderStyle, _param_borderColor = _param.borderColor, borderColor = _param_borderColor === void 0 ? 'var(--bg-lv8)' : _param_borderColor, borderRadius = _param.borderRadius,
|
|
1024
|
+
] : _param_borderWidth, _param_borderStyle = _param.borderStyle, borderStyle = _param_borderStyle === void 0 ? BorderStyles.solid : _param_borderStyle, _param_borderColor = _param.borderColor, borderColor = _param_borderColor === void 0 ? 'var(--bg-lv8)' : _param_borderColor, borderRadius = _param.borderRadius, _param_dividerRight = _param.dividerRight, dividerRight = _param_dividerRight === void 0 ? false : _param_dividerRight, _param_dividerLeft = _param.dividerLeft, dividerLeft = _param_dividerLeft === void 0 ? false : _param_dividerLeft; _param.dividerColor; var _param_flexDirection = _param.// dividerHeight = 'var(--spacing-xl)',
|
|
1025
|
+
flexDirection, flexDirection = _param_flexDirection === void 0 ? FlexDirection.row : _param_flexDirection, backgroundColor = _param.backgroundColor, _param_fullHeight = _param.fullHeight, fullHeight = _param_fullHeight === void 0 ? false : _param_fullHeight, _param_padding = _param.padding, padding = _param_padding === void 0 ? [
|
|
1016
1026
|
Spacing.none,
|
|
1017
1027
|
Spacing.none,
|
|
1018
1028
|
Spacing.none,
|
|
@@ -1040,6 +1050,9 @@ function Box(_param) {
|
|
|
1040
1050
|
"borderStyle",
|
|
1041
1051
|
"borderColor",
|
|
1042
1052
|
"borderRadius",
|
|
1053
|
+
"dividerRight",
|
|
1054
|
+
"dividerLeft",
|
|
1055
|
+
"dividerColor",
|
|
1043
1056
|
"flexDirection",
|
|
1044
1057
|
"backgroundColor",
|
|
1045
1058
|
"fullHeight",
|
|
@@ -1066,7 +1079,7 @@ function Box(_param) {
|
|
|
1066
1079
|
}, /*#__PURE__*/ React__default.createElement(Tag, _object_spread_props$3(_object_spread$n({
|
|
1067
1080
|
// id="globalValues"
|
|
1068
1081
|
key: key,
|
|
1069
|
-
className: className,
|
|
1082
|
+
className: "".concat(className ? className : '', " ").concat(dividerRight ? 'divider-right' : '', " ").concat(dividerLeft ? 'divider-left' : ''),
|
|
1070
1083
|
onClick: onClick
|
|
1071
1084
|
}, rest), {
|
|
1072
1085
|
style: _object_spread$n({
|
|
@@ -1092,6 +1105,7 @@ function Box(_param) {
|
|
|
1092
1105
|
justifyContent: "".concat(justifyContent),
|
|
1093
1106
|
alignContent: "".concat(alignContent),
|
|
1094
1107
|
alignItems: "".concat(alignItems),
|
|
1108
|
+
position: 'relative',
|
|
1095
1109
|
flex: flex ? flex : '',
|
|
1096
1110
|
filter: !hasBevel ? generateDropShadowFilterString(outerGlowColors, outerGlowRadius) : 'none'
|
|
1097
1111
|
}, style)
|
|
@@ -1553,11 +1567,19 @@ function Label(param) {
|
|
|
1553
1567
|
color: color
|
|
1554
1568
|
}, style),
|
|
1555
1569
|
className: classnames('Label', 'select-none', className)
|
|
1556
|
-
}, value ? value : children);
|
|
1570
|
+
}, value !== null && value !== undefined ? value : children);
|
|
1557
1571
|
}
|
|
1558
1572
|
Label.padding = Spacing;
|
|
1559
1573
|
Label.fontSize = FontSizes;
|
|
1560
1574
|
|
|
1575
|
+
function _array_like_to_array$k(arr, len) {
|
|
1576
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
1577
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1578
|
+
return arr2;
|
|
1579
|
+
}
|
|
1580
|
+
function _array_with_holes$j(arr) {
|
|
1581
|
+
if (Array.isArray(arr)) return arr;
|
|
1582
|
+
}
|
|
1561
1583
|
function _define_property$m(obj, key, value) {
|
|
1562
1584
|
if (key in obj) {
|
|
1563
1585
|
Object.defineProperty(obj, key, {
|
|
@@ -1571,6 +1593,33 @@ function _define_property$m(obj, key, value) {
|
|
|
1571
1593
|
}
|
|
1572
1594
|
return obj;
|
|
1573
1595
|
}
|
|
1596
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
1597
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1598
|
+
if (_i == null) return;
|
|
1599
|
+
var _arr = [];
|
|
1600
|
+
var _n = true;
|
|
1601
|
+
var _d = false;
|
|
1602
|
+
var _s, _e;
|
|
1603
|
+
try {
|
|
1604
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
1605
|
+
_arr.push(_s.value);
|
|
1606
|
+
if (i && _arr.length === i) break;
|
|
1607
|
+
}
|
|
1608
|
+
} catch (err) {
|
|
1609
|
+
_d = true;
|
|
1610
|
+
_e = err;
|
|
1611
|
+
} finally{
|
|
1612
|
+
try {
|
|
1613
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
1614
|
+
} finally{
|
|
1615
|
+
if (_d) throw _e;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
return _arr;
|
|
1619
|
+
}
|
|
1620
|
+
function _non_iterable_rest$j() {
|
|
1621
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1622
|
+
}
|
|
1574
1623
|
function _object_spread$k(target) {
|
|
1575
1624
|
for(var i = 1; i < arguments.length; i++){
|
|
1576
1625
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -1586,8 +1635,19 @@ function _object_spread$k(target) {
|
|
|
1586
1635
|
}
|
|
1587
1636
|
return target;
|
|
1588
1637
|
}
|
|
1638
|
+
function _sliced_to_array$j(arr, i) {
|
|
1639
|
+
return _array_with_holes$j(arr) || _iterable_to_array_limit$j(arr, i) || _unsupported_iterable_to_array$k(arr, i) || _non_iterable_rest$j();
|
|
1640
|
+
}
|
|
1641
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
1642
|
+
if (!o) return;
|
|
1643
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
1644
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1645
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1646
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1647
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
1648
|
+
}
|
|
1589
1649
|
function IconButton(param) {
|
|
1590
|
-
var id = param.id, icon = param.icon, onClick = param.onClick, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, // backgroundColor = 'var(--bg-lv1)',
|
|
1650
|
+
var id = param.id, icon = param.icon, onClick = param.onClick, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_iconColor = param.iconColor, iconColor = _param_iconColor === void 0 ? 'var(--color-gray-200)' : _param_iconColor, highlightColor = param.highlightColor, _param_highlightIconColor = param.highlightIconColor, highlightIconColor = _param_highlightIconColor === void 0 ? 'var(--color-text)' : _param_highlightIconColor, // backgroundColor = 'var(--bg-lv1)',
|
|
1591
1651
|
backgroundColor = param.backgroundColor, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
1592
1652
|
Button.padding.none
|
|
1593
1653
|
] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
|
|
@@ -1598,6 +1658,7 @@ function IconButton(param) {
|
|
|
1598
1658
|
var numberWidth = parseInt(((_width_match = width.match(/\d/g)) !== null && _width_match !== void 0 ? _width_match : []).join(''), 10);
|
|
1599
1659
|
var _iconWidth_match;
|
|
1600
1660
|
var iconNumberWidth = typeof iconWidth === 'string' && parseInt(((_iconWidth_match = iconWidth === null || iconWidth === void 0 ? void 0 : iconWidth.match(/\d/g)) !== null && _iconWidth_match !== void 0 ? _iconWidth_match : []).join(''), 10);
|
|
1661
|
+
var _useState = _sliced_to_array$j(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
1601
1662
|
return /*#__PURE__*/ React__default.createElement(Button, {
|
|
1602
1663
|
id: id,
|
|
1603
1664
|
className: "IconButton ".concat(className ? className : ''),
|
|
@@ -1605,6 +1666,13 @@ function IconButton(param) {
|
|
|
1605
1666
|
padding: padding,
|
|
1606
1667
|
margin: margin,
|
|
1607
1668
|
disabled: disabled,
|
|
1669
|
+
highlightColor: highlightColor,
|
|
1670
|
+
onMouseEnter: function() {
|
|
1671
|
+
return !disabled && setComponentIsHovered(true);
|
|
1672
|
+
},
|
|
1673
|
+
onMouseLeave: function() {
|
|
1674
|
+
return !disabled && setComponentIsHovered(false);
|
|
1675
|
+
},
|
|
1608
1676
|
style: _object_spread$k({
|
|
1609
1677
|
backgroundColor: backgroundColor,
|
|
1610
1678
|
width: width,
|
|
@@ -1615,7 +1683,7 @@ function IconButton(param) {
|
|
|
1615
1683
|
gap: Box.gap.mediumSmall
|
|
1616
1684
|
}, /*#__PURE__*/ React__default.createElement(Icon, {
|
|
1617
1685
|
width: iconNumberWidth || numberWidth,
|
|
1618
|
-
color: disabled ? 'var(--color-gray-400)' :
|
|
1686
|
+
color: disabled ? 'var(--color-gray-400)' : componentIsHovered ? highlightIconColor : iconColor
|
|
1619
1687
|
}), label ? /*#__PURE__*/ React__default.createElement(Label, {
|
|
1620
1688
|
color: color,
|
|
1621
1689
|
fontSize: Label.fontSize.xSmall,
|
|
@@ -1626,15 +1694,15 @@ IconButton.icon = Icons;
|
|
|
1626
1694
|
IconButton.padding = Spacing;
|
|
1627
1695
|
IconButton.margin = Spacing;
|
|
1628
1696
|
|
|
1629
|
-
function _array_like_to_array$
|
|
1697
|
+
function _array_like_to_array$j(arr, len) {
|
|
1630
1698
|
if (len == null || len > arr.length) len = arr.length;
|
|
1631
1699
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1632
1700
|
return arr2;
|
|
1633
1701
|
}
|
|
1634
|
-
function _array_with_holes$
|
|
1702
|
+
function _array_with_holes$i(arr) {
|
|
1635
1703
|
if (Array.isArray(arr)) return arr;
|
|
1636
1704
|
}
|
|
1637
|
-
function _iterable_to_array_limit$
|
|
1705
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
1638
1706
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1639
1707
|
if (_i == null) return;
|
|
1640
1708
|
var _arr = [];
|
|
@@ -1658,19 +1726,19 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
1658
1726
|
}
|
|
1659
1727
|
return _arr;
|
|
1660
1728
|
}
|
|
1661
|
-
function _non_iterable_rest$
|
|
1729
|
+
function _non_iterable_rest$i() {
|
|
1662
1730
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1663
1731
|
}
|
|
1664
|
-
function _sliced_to_array$
|
|
1665
|
-
return _array_with_holes$
|
|
1732
|
+
function _sliced_to_array$i(arr, i) {
|
|
1733
|
+
return _array_with_holes$i(arr) || _iterable_to_array_limit$i(arr, i) || _unsupported_iterable_to_array$j(arr, i) || _non_iterable_rest$i();
|
|
1666
1734
|
}
|
|
1667
|
-
function _unsupported_iterable_to_array$
|
|
1735
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
1668
1736
|
if (!o) return;
|
|
1669
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1737
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
1670
1738
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1671
1739
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1672
1740
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1673
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
1741
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$j(o, minLen);
|
|
1674
1742
|
}
|
|
1675
1743
|
function Tabs(param) {
|
|
1676
1744
|
var items = param.items, _param_initialSelectedIndex = param.initialSelectedIndex, initialSelectedIndex = _param_initialSelectedIndex === void 0 ? undefined : _param_initialSelectedIndex, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
@@ -1688,9 +1756,9 @@ function Tabs(param) {
|
|
|
1688
1756
|
0,
|
|
1689
1757
|
0
|
|
1690
1758
|
] : _param_outerCornerBevel, outerBorderWidth = param.outerBorderWidth, tabBorderWidth = param.tabBorderWidth, _param_borderColor = param.borderColor, borderColor = _param_borderColor === void 0 ? 'var(--color-text)' : _param_borderColor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.small : _param_fontSize, selectedBackgroundColor = param.selectedBackgroundColor, icons = param.icons, onChange = param.onChange, isDisabled = param.isDisabled;
|
|
1691
|
-
var _useState = _sliced_to_array$
|
|
1692
|
-
var _useState1 = _sliced_to_array$
|
|
1693
|
-
var _useState2 = _sliced_to_array$
|
|
1759
|
+
var _useState = _sliced_to_array$i(useState(null), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
|
|
1760
|
+
var _useState1 = _sliced_to_array$i(useState([]), 2), choices = _useState1[0], setChoices = _useState1[1];
|
|
1761
|
+
var _useState2 = _sliced_to_array$i(useState(null), 2), hoveredTab = _useState2[0], setHoveredTab = _useState2[1];
|
|
1694
1762
|
var hasTabBevel = !!tabCornerBevel.find(function(item) {
|
|
1695
1763
|
return item > 0;
|
|
1696
1764
|
});
|
|
@@ -1842,7 +1910,7 @@ function useObservable(param) {
|
|
|
1842
1910
|
]);
|
|
1843
1911
|
}
|
|
1844
1912
|
};
|
|
1845
|
-
var unsubscribe = function(
|
|
1913
|
+
var unsubscribe = function(id) {
|
|
1846
1914
|
var _observers_current;
|
|
1847
1915
|
if (((_observers_current = observers.current) === null || _observers_current === void 0 ? void 0 : _observers_current.find(function(item) {
|
|
1848
1916
|
return item[1] === id;
|
|
@@ -1868,16 +1936,28 @@ function useObservable(param) {
|
|
|
1868
1936
|
};
|
|
1869
1937
|
}
|
|
1870
1938
|
|
|
1871
|
-
function
|
|
1939
|
+
function useRandom() {
|
|
1940
|
+
var onFire = function() {
|
|
1941
|
+
var //@ts-expect-error
|
|
1942
|
+
_window___JUCE___backend, _window___JUCE__, _window;
|
|
1943
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.emitEvent('setRandom', {});
|
|
1944
|
+
};
|
|
1945
|
+
var observableObject = useObservable({
|
|
1946
|
+
onFire: onFire
|
|
1947
|
+
});
|
|
1948
|
+
return observableObject;
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
function _array_like_to_array$i(arr, len) {
|
|
1872
1952
|
if (len == null || len > arr.length) len = arr.length;
|
|
1873
1953
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1874
1954
|
return arr2;
|
|
1875
1955
|
}
|
|
1876
|
-
function _array_with_holes$
|
|
1956
|
+
function _array_with_holes$h(arr) {
|
|
1877
1957
|
if (Array.isArray(arr)) return arr;
|
|
1878
1958
|
}
|
|
1879
1959
|
function _array_without_holes$1(arr) {
|
|
1880
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1960
|
+
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
1881
1961
|
}
|
|
1882
1962
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1883
1963
|
try {
|
|
@@ -1924,7 +2004,7 @@ function _define_property$l(obj, key, value) {
|
|
|
1924
2004
|
function _iterable_to_array$1(iter) {
|
|
1925
2005
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
1926
2006
|
}
|
|
1927
|
-
function _iterable_to_array_limit$
|
|
2007
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
1928
2008
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1929
2009
|
if (_i == null) return;
|
|
1930
2010
|
var _arr = [];
|
|
@@ -1948,7 +2028,7 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
1948
2028
|
}
|
|
1949
2029
|
return _arr;
|
|
1950
2030
|
}
|
|
1951
|
-
function _non_iterable_rest$
|
|
2031
|
+
function _non_iterable_rest$h() {
|
|
1952
2032
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1953
2033
|
}
|
|
1954
2034
|
function _non_iterable_spread$1() {
|
|
@@ -1988,19 +2068,19 @@ function _object_spread_props$2(target, source) {
|
|
|
1988
2068
|
}
|
|
1989
2069
|
return target;
|
|
1990
2070
|
}
|
|
1991
|
-
function _sliced_to_array$
|
|
1992
|
-
return _array_with_holes$
|
|
2071
|
+
function _sliced_to_array$h(arr, i) {
|
|
2072
|
+
return _array_with_holes$h(arr) || _iterable_to_array_limit$h(arr, i) || _unsupported_iterable_to_array$i(arr, i) || _non_iterable_rest$h();
|
|
1993
2073
|
}
|
|
1994
2074
|
function _to_consumable_array$1(arr) {
|
|
1995
|
-
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$
|
|
2075
|
+
return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$i(arr) || _non_iterable_spread$1();
|
|
1996
2076
|
}
|
|
1997
|
-
function _unsupported_iterable_to_array$
|
|
2077
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
1998
2078
|
if (!o) return;
|
|
1999
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2079
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
2000
2080
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2001
2081
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2002
2082
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2003
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2083
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$i(o, minLen);
|
|
2004
2084
|
}
|
|
2005
2085
|
function _ts_generator$4(thisArg, body) {
|
|
2006
2086
|
var f, y, t, _ = {
|
|
@@ -2233,7 +2313,7 @@ function useGlobalContext(selector) {
|
|
|
2233
2313
|
// Context provider
|
|
2234
2314
|
function GlobalContextProvider(param) {
|
|
2235
2315
|
var children = param.children;
|
|
2236
|
-
var _useReducer = _sliced_to_array$
|
|
2316
|
+
var _useReducer = _sliced_to_array$h(useReducer(reducer, defaultGlobalStateValue), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
2237
2317
|
var highlightedItemChanged = useCallback(function(highlightedItem) {
|
|
2238
2318
|
dispatch({
|
|
2239
2319
|
type: 'HIGHLIGHTED_ITEM_CHANGED',
|
|
@@ -2500,14 +2580,7 @@ function GlobalContextProvider(param) {
|
|
|
2500
2580
|
saveToBackend: true
|
|
2501
2581
|
});
|
|
2502
2582
|
};
|
|
2503
|
-
var
|
|
2504
|
-
var //@ts-expect-error
|
|
2505
|
-
_window___JUCE___backend, _window___JUCE__, _window;
|
|
2506
|
-
(_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.emitEvent('setRandom', {});
|
|
2507
|
-
};
|
|
2508
|
-
var useRandom = useObservable({
|
|
2509
|
-
onFire: onFire
|
|
2510
|
-
});
|
|
2583
|
+
var mainPanelrandomizerObject = useRandom();
|
|
2511
2584
|
var value = {
|
|
2512
2585
|
globalState: state,
|
|
2513
2586
|
highlightedItemChanged: highlightedItemChanged,
|
|
@@ -2530,22 +2603,22 @@ function GlobalContextProvider(param) {
|
|
|
2530
2603
|
// setModSlotTarget,
|
|
2531
2604
|
modSlotParamsListReceived: modSlotParamsListReceived,
|
|
2532
2605
|
modSlotParamLabelsReceived: modSlotParamLabelsReceived,
|
|
2533
|
-
|
|
2606
|
+
mainPanelrandomizerObject: mainPanelrandomizerObject
|
|
2534
2607
|
};
|
|
2535
2608
|
return /*#__PURE__*/ React__default.createElement(GlobalContext.Provider, {
|
|
2536
2609
|
value: value
|
|
2537
2610
|
}, children);
|
|
2538
2611
|
}
|
|
2539
2612
|
|
|
2540
|
-
function _array_like_to_array$
|
|
2613
|
+
function _array_like_to_array$h(arr, len) {
|
|
2541
2614
|
if (len == null || len > arr.length) len = arr.length;
|
|
2542
2615
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2543
2616
|
return arr2;
|
|
2544
2617
|
}
|
|
2545
|
-
function _array_with_holes$
|
|
2618
|
+
function _array_with_holes$g(arr) {
|
|
2546
2619
|
if (Array.isArray(arr)) return arr;
|
|
2547
2620
|
}
|
|
2548
|
-
function _iterable_to_array_limit$
|
|
2621
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
2549
2622
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2550
2623
|
if (_i == null) return;
|
|
2551
2624
|
var _arr = [];
|
|
@@ -2569,26 +2642,26 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
2569
2642
|
}
|
|
2570
2643
|
return _arr;
|
|
2571
2644
|
}
|
|
2572
|
-
function _non_iterable_rest$
|
|
2645
|
+
function _non_iterable_rest$g() {
|
|
2573
2646
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2574
2647
|
}
|
|
2575
|
-
function _sliced_to_array$
|
|
2576
|
-
return _array_with_holes$
|
|
2648
|
+
function _sliced_to_array$g(arr, i) {
|
|
2649
|
+
return _array_with_holes$g(arr) || _iterable_to_array_limit$g(arr, i) || _unsupported_iterable_to_array$h(arr, i) || _non_iterable_rest$g();
|
|
2577
2650
|
}
|
|
2578
|
-
function _unsupported_iterable_to_array$
|
|
2651
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
2579
2652
|
if (!o) return;
|
|
2580
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2653
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
2581
2654
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2582
2655
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2583
2656
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2584
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2657
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$h(o, minLen);
|
|
2585
2658
|
}
|
|
2586
2659
|
var useCombobox = function(param) {
|
|
2587
|
-
var id = param.id, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, _param_updateModSlotPreview = param.updateModSlotPreview, updateModSlotPreview = _param_updateModSlotPreview === void 0 ? true : _param_updateModSlotPreview, _param_updateBackendStateInHook = param.updateBackendStateInHook, updateBackendStateInHook = _param_updateBackendStateInHook === void 0 ? true : _param_updateBackendStateInHook, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled;
|
|
2660
|
+
var id = param.id, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, _param_updateModSlotPreview = param.updateModSlotPreview, updateModSlotPreview = _param_updateModSlotPreview === void 0 ? true : _param_updateModSlotPreview, _param_updateBackendStateInHook = param.updateBackendStateInHook, updateBackendStateInHook = _param_updateBackendStateInHook === void 0 ? true : _param_updateBackendStateInHook, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled; param.isRandomizable; param.randomizerObject;
|
|
2588
2661
|
var _properties_choices;
|
|
2589
2662
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
2590
|
-
var _useState = _sliced_to_array$
|
|
2591
|
-
var _useState1 = _sliced_to_array$
|
|
2663
|
+
var _useState = _sliced_to_array$g(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
|
|
2664
|
+
var _useState1 = _sliced_to_array$g(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.getChoiceIndex()), 2), selectedIndex = _useState1[0], setSelectedIndex = _useState1[1];
|
|
2592
2665
|
var prevIndex = useRef(null);
|
|
2593
2666
|
var nextIndex = useRef(null);
|
|
2594
2667
|
var prevDragDirection = useRef(null);
|
|
@@ -2771,12 +2844,12 @@ var useCombobox = function(param) {
|
|
|
2771
2844
|
};
|
|
2772
2845
|
};
|
|
2773
2846
|
|
|
2774
|
-
function _array_like_to_array$
|
|
2847
|
+
function _array_like_to_array$g(arr, len) {
|
|
2775
2848
|
if (len == null || len > arr.length) len = arr.length;
|
|
2776
2849
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2777
2850
|
return arr2;
|
|
2778
2851
|
}
|
|
2779
|
-
function _array_with_holes$
|
|
2852
|
+
function _array_with_holes$f(arr) {
|
|
2780
2853
|
if (Array.isArray(arr)) return arr;
|
|
2781
2854
|
}
|
|
2782
2855
|
function _define_property$k(obj, key, value) {
|
|
@@ -2792,7 +2865,7 @@ function _define_property$k(obj, key, value) {
|
|
|
2792
2865
|
}
|
|
2793
2866
|
return obj;
|
|
2794
2867
|
}
|
|
2795
|
-
function _iterable_to_array_limit$
|
|
2868
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
2796
2869
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2797
2870
|
if (_i == null) return;
|
|
2798
2871
|
var _arr = [];
|
|
@@ -2816,7 +2889,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
2816
2889
|
}
|
|
2817
2890
|
return _arr;
|
|
2818
2891
|
}
|
|
2819
|
-
function _non_iterable_rest$
|
|
2892
|
+
function _non_iterable_rest$f() {
|
|
2820
2893
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2821
2894
|
}
|
|
2822
2895
|
function _object_spread$i(target) {
|
|
@@ -2834,16 +2907,16 @@ function _object_spread$i(target) {
|
|
|
2834
2907
|
}
|
|
2835
2908
|
return target;
|
|
2836
2909
|
}
|
|
2837
|
-
function _sliced_to_array$
|
|
2838
|
-
return _array_with_holes$
|
|
2910
|
+
function _sliced_to_array$f(arr, i) {
|
|
2911
|
+
return _array_with_holes$f(arr) || _iterable_to_array_limit$f(arr, i) || _unsupported_iterable_to_array$g(arr, i) || _non_iterable_rest$f();
|
|
2839
2912
|
}
|
|
2840
|
-
function _unsupported_iterable_to_array$
|
|
2913
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
2841
2914
|
if (!o) return;
|
|
2842
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2915
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
2843
2916
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2844
2917
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2845
2918
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2846
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
2919
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$g(o, minLen);
|
|
2847
2920
|
}
|
|
2848
2921
|
function ComboboxComponent(param) {
|
|
2849
2922
|
var id = param.id, anchorTo = param.anchorTo, _param_excludeItems = param.excludeItems, excludeItems = _param_excludeItems === void 0 ? [] : _param_excludeItems, items = param.items, onChange = param.onChange, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, label = param.label; param.unsavedPreviewIndex; var _param_labelColor = param.labelColor, labelColor = _param_labelColor === void 0 ? 'var(--color-text)' : _param_labelColor, dropdownBorderWidth = param.dropdownBorderWidth, _param_dropdownBorderColor = param.dropdownBorderColor, dropdownBorderColor = _param_dropdownBorderColor === void 0 ? 'var(--bg-lv9)' : _param_dropdownBorderColor, _param_dropdownBackgroundColor = param.dropdownBackgroundColor, dropdownBackgroundColor = _param_dropdownBackgroundColor === void 0 ? 'var(--bg-lv4)' : _param_dropdownBackgroundColor, dropdownItemHighlightBackground = param.dropdownItemHighlightBackground, dropdownItemHighlightColor = param.dropdownItemHighlightColor, dropdownSelectedItemColor = param.dropdownSelectedItemColor, dropdownSelectedItemBackground = param.dropdownSelectedItemBackground, buttonHighlightBackground = param.buttonHighlightBackground, buttonHighlightColor = param.buttonHighlightColor, buttonBorderColor = param.buttonBorderColor, buttonBorderWidth = param.buttonBorderWidth, _param_buttonCornerBevel = param.buttonCornerBevel, buttonCornerBevel = _param_buttonCornerBevel === void 0 ? [
|
|
@@ -2852,10 +2925,10 @@ function ComboboxComponent(param) {
|
|
|
2852
2925
|
0,
|
|
2853
2926
|
0
|
|
2854
2927
|
] : _param_buttonCornerBevel, buttonBackgroundColor = param.buttonBackgroundColor, _param_buttonHeight = param.buttonHeight, buttonHeight = _param_buttonHeight === void 0 ? 40 : _param_buttonHeight, key = param.key, width = param.width, _param_listItemHeight = param.listItemHeight, listItemHeight = _param_listItemHeight === void 0 ? 25 : _param_listItemHeight; param.updateModSlotPreview; param.updateBackendStateInComponent; param.placeholderText; var isDisabled = param.isDisabled, style = param.style, className = param.className;
|
|
2855
|
-
var _useState = _sliced_to_array$
|
|
2928
|
+
var _useState = _sliced_to_array$f(useState(''), 2), includeFilterString = _useState[0], setIncludeFilterString = _useState[1];
|
|
2856
2929
|
var listItemsPerPage = 5;
|
|
2857
|
-
var _useState1 = _sliced_to_array$
|
|
2858
|
-
var _useState2 = _sliced_to_array$
|
|
2930
|
+
var _useState1 = _sliced_to_array$f(useState(null), 2), hoveredDropdownItem = _useState1[0], setHoveredDropdownItem = _useState1[1];
|
|
2931
|
+
var _useState2 = _sliced_to_array$f(useState(), 2), buttonIsHovered = _useState2[0], setButtonIsHovered = _useState2[1];
|
|
2859
2932
|
var _useGlobalContext = useGlobalContext(), modSlotTargets = _useGlobalContext.globalState.modSlotTargets;
|
|
2860
2933
|
var changeHandler = function(newValue) {
|
|
2861
2934
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3000,12 +3073,12 @@ function ComboboxComponent(param) {
|
|
|
3000
3073
|
var css_248z$d = ".Combobox-items {\n box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 5px 3px;\n border-radius: 4px;\n z-index: 50;\n scrollbar-width: thin;\n overflow-y: scroll;\n overflow-x: hidden;\n cursor: pointer;\n}\n.Combobox-items::-webkit-scrollbar {\n width: 10px;\n}\n\n.Combobox-item {\n display: flex;\n align-items: center;\n font-size: var(--text-sm);\n padding: var(--spacing-md) var(--spacing-xl);\n cursor: pointer;\n /* text-align: center; */\n}\n\n.Combobox-button:not(:disabled),\n.Combobox-arrow:not(:disabled),\n.Combobox-button-element:not(:disabled) {\n cursor: pointer;\n}\n";
|
|
3001
3074
|
styleInject(css_248z$d);
|
|
3002
3075
|
|
|
3003
|
-
function _array_like_to_array$
|
|
3076
|
+
function _array_like_to_array$f(arr, len) {
|
|
3004
3077
|
if (len == null || len > arr.length) len = arr.length;
|
|
3005
3078
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3006
3079
|
return arr2;
|
|
3007
3080
|
}
|
|
3008
|
-
function _array_with_holes$
|
|
3081
|
+
function _array_with_holes$e(arr) {
|
|
3009
3082
|
if (Array.isArray(arr)) return arr;
|
|
3010
3083
|
}
|
|
3011
3084
|
function _define_property$j(obj, key, value) {
|
|
@@ -3021,7 +3094,7 @@ function _define_property$j(obj, key, value) {
|
|
|
3021
3094
|
}
|
|
3022
3095
|
return obj;
|
|
3023
3096
|
}
|
|
3024
|
-
function _iterable_to_array_limit$
|
|
3097
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
3025
3098
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3026
3099
|
if (_i == null) return;
|
|
3027
3100
|
var _arr = [];
|
|
@@ -3045,7 +3118,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
3045
3118
|
}
|
|
3046
3119
|
return _arr;
|
|
3047
3120
|
}
|
|
3048
|
-
function _non_iterable_rest$
|
|
3121
|
+
function _non_iterable_rest$e() {
|
|
3049
3122
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3050
3123
|
}
|
|
3051
3124
|
function _object_spread$h(target) {
|
|
@@ -3063,19 +3136,19 @@ function _object_spread$h(target) {
|
|
|
3063
3136
|
}
|
|
3064
3137
|
return target;
|
|
3065
3138
|
}
|
|
3066
|
-
function _sliced_to_array$
|
|
3067
|
-
return _array_with_holes$
|
|
3139
|
+
function _sliced_to_array$e(arr, i) {
|
|
3140
|
+
return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$f(arr, i) || _non_iterable_rest$e();
|
|
3068
3141
|
}
|
|
3069
|
-
function _unsupported_iterable_to_array$
|
|
3142
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
3070
3143
|
if (!o) return;
|
|
3071
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3144
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
3072
3145
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3073
3146
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3074
3147
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3075
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3148
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
|
|
3076
3149
|
}
|
|
3077
3150
|
function Combobox$1(param) {
|
|
3078
|
-
var label = param.label, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, labelColor = param.labelColor, dropdownBorderWidth = param.dropdownBorderWidth, dropdownBorderColor = param.dropdownBorderColor, _param_dropdownBackgroundColor = param.dropdownBackgroundColor, dropdownBackgroundColor = _param_dropdownBackgroundColor === void 0 ? 'var(--bg-lv4)' : _param_dropdownBackgroundColor, dropdownItemHighlightBackground = param.dropdownItemHighlightBackground, _param_dropdownItemHighlightColor = param.dropdownItemHighlightColor, dropdownItemHighlightColor = _param_dropdownItemHighlightColor === void 0 ? 'var(--color-text)' : _param_dropdownItemHighlightColor, dropdownSelectedItemColor = param.dropdownSelectedItemColor, dropdownSelectedItemBackground = param.dropdownSelectedItemBackground, buttonHighlightBackground = param.buttonHighlightBackground, _param_buttonHighlightBorderColor = param.buttonHighlightBorderColor, buttonHighlightBorderColor = _param_buttonHighlightBorderColor === void 0 ? 'var(--bg-
|
|
3151
|
+
var label = param.label, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, labelColor = param.labelColor, dropdownBorderWidth = param.dropdownBorderWidth, dropdownBorderColor = param.dropdownBorderColor, _param_dropdownBackgroundColor = param.dropdownBackgroundColor, dropdownBackgroundColor = _param_dropdownBackgroundColor === void 0 ? 'var(--bg-lv4)' : _param_dropdownBackgroundColor, dropdownItemHighlightBackground = param.dropdownItemHighlightBackground, _param_dropdownItemHighlightColor = param.dropdownItemHighlightColor, dropdownItemHighlightColor = _param_dropdownItemHighlightColor === void 0 ? 'var(--color-text)' : _param_dropdownItemHighlightColor, dropdownSelectedItemColor = param.dropdownSelectedItemColor, dropdownSelectedItemBackground = param.dropdownSelectedItemBackground, buttonHighlightBackground = param.buttonHighlightBackground, _param_buttonHighlightBorderColor = param.buttonHighlightBorderColor, buttonHighlightBorderColor = _param_buttonHighlightBorderColor === void 0 ? 'var(--bg-lv8)' : _param_buttonHighlightBorderColor, _param_buttonBorderColor = param.buttonBorderColor, buttonBorderColor = _param_buttonBorderColor === void 0 ? 'var(--bg-lv7)' : _param_buttonBorderColor, _param_buttonBorderRadius = param.buttonBorderRadius, buttonBorderRadius = _param_buttonBorderRadius === void 0 ? 4 : _param_buttonBorderRadius, _param_buttonBorderWidth = param.buttonBorderWidth, buttonBorderWidth = _param_buttonBorderWidth === void 0 ? 1 : _param_buttonBorderWidth, _param_buttonCornerBevel = param.buttonCornerBevel, buttonCornerBevel = _param_buttonCornerBevel === void 0 ? [
|
|
3079
3152
|
0,
|
|
3080
3153
|
0,
|
|
3081
3154
|
0,
|
|
@@ -3086,8 +3159,8 @@ function Combobox$1(param) {
|
|
|
3086
3159
|
label: label,
|
|
3087
3160
|
onChange: onChange
|
|
3088
3161
|
}), selectedIndexLabel = _useCombobox.selectedIndexLabel, choices = _useCombobox.choices, onMouseEnter = _useCombobox.onMouseEnter, onMouseExit = _useCombobox.onMouseExit, handleChange = _useCombobox.handleChange, onClick = _useCombobox.onClick, incrementValue = _useCombobox.incrementValue, properties = _useCombobox.properties, decrementValue = _useCombobox.decrementValue;
|
|
3089
|
-
var _useState = _sliced_to_array$
|
|
3090
|
-
var _useState1 = _sliced_to_array$
|
|
3162
|
+
var _useState = _sliced_to_array$e(useState(), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
3163
|
+
var _useState1 = _sliced_to_array$e(useState(null), 2), hoveredDropdownItem = _useState1[0], setHoveredDropdownItem = _useState1[1];
|
|
3091
3164
|
// const bevel = buttonCornerBevel?.find((item: number) => item > 0);
|
|
3092
3165
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
3093
3166
|
className: "ListboxComponent-wrapper",
|
|
@@ -3131,7 +3204,7 @@ function Combobox$1(param) {
|
|
|
3131
3204
|
borderRadius: buttonBorderRadius,
|
|
3132
3205
|
border: buttonCornerBevel.find(function(item) {
|
|
3133
3206
|
return item > 1;
|
|
3134
|
-
}) ? '' : "".concat(buttonBorderWidth, "px solid ").concat(buttonBorderColor)
|
|
3207
|
+
}) ? '' : "".concat(buttonBorderWidth, "px solid ").concat(componentIsHovered ? buttonHighlightBorderColor : buttonBorderColor)
|
|
3135
3208
|
}, style),
|
|
3136
3209
|
onMouseEnter: function() {
|
|
3137
3210
|
onMouseEnter();
|
|
@@ -3329,12 +3402,12 @@ Combobox.anchorTo = AnchorTo;
|
|
|
3329
3402
|
var css_248z$c = ".TextInput {\n pointer-events: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.TextInput::-moz-selection {\n background: transparent;\n}\n.TextInput::selection {\n background: transparent;\n}\n\n.TextInput:disabled {\n -webkit-user-select: none;\n user-select: none;\n}\n\n.isActive .TextInput {\n -webkit-user-select: auto;\n -moz-user-select: auto;\n -ms-user-select: auto;\n user-select: auto;\n}\n";
|
|
3330
3403
|
styleInject(css_248z$c);
|
|
3331
3404
|
|
|
3332
|
-
function _array_like_to_array$
|
|
3405
|
+
function _array_like_to_array$e(arr, len) {
|
|
3333
3406
|
if (len == null || len > arr.length) len = arr.length;
|
|
3334
3407
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3335
3408
|
return arr2;
|
|
3336
3409
|
}
|
|
3337
|
-
function _array_with_holes$
|
|
3410
|
+
function _array_with_holes$d(arr) {
|
|
3338
3411
|
if (Array.isArray(arr)) return arr;
|
|
3339
3412
|
}
|
|
3340
3413
|
function _define_property$i(obj, key, value) {
|
|
@@ -3350,7 +3423,7 @@ function _define_property$i(obj, key, value) {
|
|
|
3350
3423
|
}
|
|
3351
3424
|
return obj;
|
|
3352
3425
|
}
|
|
3353
|
-
function _iterable_to_array_limit$
|
|
3426
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
3354
3427
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3355
3428
|
if (_i == null) return;
|
|
3356
3429
|
var _arr = [];
|
|
@@ -3374,7 +3447,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
3374
3447
|
}
|
|
3375
3448
|
return _arr;
|
|
3376
3449
|
}
|
|
3377
|
-
function _non_iterable_rest$
|
|
3450
|
+
function _non_iterable_rest$d() {
|
|
3378
3451
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3379
3452
|
}
|
|
3380
3453
|
function _object_spread$g(target) {
|
|
@@ -3392,16 +3465,16 @@ function _object_spread$g(target) {
|
|
|
3392
3465
|
}
|
|
3393
3466
|
return target;
|
|
3394
3467
|
}
|
|
3395
|
-
function _sliced_to_array$
|
|
3396
|
-
return _array_with_holes$
|
|
3468
|
+
function _sliced_to_array$d(arr, i) {
|
|
3469
|
+
return _array_with_holes$d(arr) || _iterable_to_array_limit$d(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$d();
|
|
3397
3470
|
}
|
|
3398
|
-
function _unsupported_iterable_to_array$
|
|
3471
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
3399
3472
|
if (!o) return;
|
|
3400
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3473
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
3401
3474
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3402
3475
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3403
3476
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3404
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3477
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
|
|
3405
3478
|
}
|
|
3406
3479
|
// import { decimalToPercent, percentToDecimal } from '../../common/utils';
|
|
3407
3480
|
// import debounce from 'lodash.debounce';
|
|
@@ -3413,9 +3486,9 @@ var InputTypes = /*#__PURE__*/ function(InputTypes) {
|
|
|
3413
3486
|
function Input(param) {
|
|
3414
3487
|
var onComplete = param.onComplete, value = param.value; param.min; param.max; var _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.xSmall : _param_fontSize, style = param.style, outerGlowRadius = param.outerGlowRadius, outerGlowColor = param.outerGlowColor; param.blur; var className = param.className, isDisabled = param.isDisabled, id = param.id, _param_textColor = param.textColor, textColor = _param_textColor === void 0 ? 'var(--color-text)' : _param_textColor, _param_highlightColor = param.highlightColor, highlightColor = _param_highlightColor === void 0 ? 'var(--color-brand)' : _param_highlightColor, _param_textAlign = param.textAlign, textAlign = _param_textAlign === void 0 ? TextAlign.center : _param_textAlign;
|
|
3415
3488
|
var _inputRef_current;
|
|
3416
|
-
var _useState = _sliced_to_array$
|
|
3489
|
+
var _useState = _sliced_to_array$d(useState(value), 2), internalValue = _useState[0], setInternalValue = _useState[1];
|
|
3417
3490
|
// const [hasError, setHasError] = useState<boolean>(false);
|
|
3418
|
-
var _useState1 = _sliced_to_array$
|
|
3491
|
+
var _useState1 = _sliced_to_array$d(useState(false), 2), isHighlighted = _useState1[0], setIsHighlighted = _useState1[1];
|
|
3419
3492
|
var valueRef = useRef(null);
|
|
3420
3493
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
3421
3494
|
// Sets up listeners to handle changes on the backend
|
|
@@ -3603,15 +3676,15 @@ var TrackWidths = /*#__PURE__*/ function(TrackWidths) {
|
|
|
3603
3676
|
return TrackWidths;
|
|
3604
3677
|
}({});
|
|
3605
3678
|
|
|
3606
|
-
function _array_like_to_array$
|
|
3679
|
+
function _array_like_to_array$d(arr, len) {
|
|
3607
3680
|
if (len == null || len > arr.length) len = arr.length;
|
|
3608
3681
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3609
3682
|
return arr2;
|
|
3610
3683
|
}
|
|
3611
|
-
function _array_with_holes$
|
|
3684
|
+
function _array_with_holes$c(arr) {
|
|
3612
3685
|
if (Array.isArray(arr)) return arr;
|
|
3613
3686
|
}
|
|
3614
|
-
function _iterable_to_array_limit$
|
|
3687
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
3615
3688
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3616
3689
|
if (_i == null) return;
|
|
3617
3690
|
var _arr = [];
|
|
@@ -3635,19 +3708,19 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
3635
3708
|
}
|
|
3636
3709
|
return _arr;
|
|
3637
3710
|
}
|
|
3638
|
-
function _non_iterable_rest$
|
|
3711
|
+
function _non_iterable_rest$c() {
|
|
3639
3712
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3640
3713
|
}
|
|
3641
|
-
function _sliced_to_array$
|
|
3642
|
-
return _array_with_holes$
|
|
3714
|
+
function _sliced_to_array$c(arr, i) {
|
|
3715
|
+
return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$d(arr, i) || _non_iterable_rest$c();
|
|
3643
3716
|
}
|
|
3644
|
-
function _unsupported_iterable_to_array$
|
|
3717
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
3645
3718
|
if (!o) return;
|
|
3646
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3719
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
3647
3720
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3648
3721
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3649
3722
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3650
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
3723
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
|
|
3651
3724
|
}
|
|
3652
3725
|
// 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
|
|
3653
3726
|
// ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
|
|
@@ -3657,7 +3730,7 @@ var useSlider = function(param) {
|
|
|
3657
3730
|
end: 15000,
|
|
3658
3731
|
interval: 0.1,
|
|
3659
3732
|
skew: 0.7
|
|
3660
|
-
} : _param_mockProperties,
|
|
3733
|
+
} : _param_mockProperties, isRandomizable = param.isRandomizable, randomizerObject = param.randomizerObject, resetterObject = param.resetterObject, _param_isControlGroup = param.isControlGroup, isControlGroup = _param_isControlGroup === void 0 ? false : _param_isControlGroup, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.vertical : _param_orientation, _param_dragOrientation = param.dragOrientation, dragOrientation = _param_dragOrientation === void 0 ? Orientation.vertical : _param_dragOrientation, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0.0 : _param_mockInitialNormalisedValue, _param_updateModSlotPreview = param.updateModSlotPreview, updateModSlotPreview = _param_updateModSlotPreview === void 0 ? true : _param_updateModSlotPreview, onChange = param.onChange; param.sliderElementRef; var _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled;
|
|
3661
3734
|
var _window_location, _window;
|
|
3662
3735
|
// const sliderState: JuceSlider = Juce.getSliderState(id);
|
|
3663
3736
|
// if isLocalhost is true, the front end app is running outside of JUCE in a browser.
|
|
@@ -3671,16 +3744,17 @@ var useSlider = function(param) {
|
|
|
3671
3744
|
* AudioProcessorParameter::getValue() (C++).
|
|
3672
3745
|
*/ // See https://github.com/juce-framework/JUCE/blob/51d11a2be6d5c97ccf12b4e5e827006e19f0555a/modules/juce_gui_extra/native/javascript/index.js#L230C1-L238C6
|
|
3673
3746
|
// NOTE: We can think of this as a percentage value, in 0 to 1 format
|
|
3674
|
-
var _useState = _sliced_to_array$
|
|
3747
|
+
var _useState = _sliced_to_array$c(useState(0), 2), scaledValue = _useState[0], setScaledValue = _useState[1];
|
|
3675
3748
|
// const [normalisedValue, setNormalisedValue] = useState(0);
|
|
3676
|
-
var _useState1 = _sliced_to_array$
|
|
3749
|
+
var _useState1 = _sliced_to_array$c(useState(), 2), properties = _useState1[0], setProperties = _useState1[1];
|
|
3677
3750
|
var scaledValueRef = useRef(null);
|
|
3678
3751
|
var normalisedValueRef = useRef(null);
|
|
3679
3752
|
var sliderState = Juce.getSliderState(id);
|
|
3680
3753
|
var prevValueRef = useRef(null);
|
|
3681
3754
|
// const randomValueSetCounter = useRef<number>(null);
|
|
3682
|
-
var _useGlobalContext = useGlobalContext(),
|
|
3683
|
-
getModSlotPreview = _useGlobalContext.getModSlotPreview;
|
|
3755
|
+
var _useGlobalContext = useGlobalContext(), highlightedItemChanged = _useGlobalContext.highlightedItemChanged, setDefaultParameter = _useGlobalContext.setDefaultParameter, updateModSlotRowTarget = _useGlobalContext.updateModSlotRowTarget, // setModSlotRowTarget,
|
|
3756
|
+
getModSlotPreview = _useGlobalContext.getModSlotPreview, mainPanelrandomizerObject = _useGlobalContext.mainPanelrandomizerObject;
|
|
3757
|
+
var randomizerObjectToUse = randomizerObject && Object.keys(randomizerObject).length > 0 ? randomizerObject : mainPanelrandomizerObject;
|
|
3684
3758
|
var modSlotPreview = getModSlotPreview();
|
|
3685
3759
|
// Set the initial state
|
|
3686
3760
|
//@ts-expect-error
|
|
@@ -3696,13 +3770,18 @@ var useSlider = function(param) {
|
|
|
3696
3770
|
});
|
|
3697
3771
|
setNormalisedState(clamp(newValue));
|
|
3698
3772
|
};
|
|
3773
|
+
var clearValue = function() {
|
|
3774
|
+
setNormalisedState(0);
|
|
3775
|
+
};
|
|
3699
3776
|
if (!isLocalhost) {
|
|
3777
|
+
resetterObject === null || resetterObject === void 0 ? void 0 : resetterObject.subscribe(clearValue, id);
|
|
3700
3778
|
setProperties(sliderState === null || sliderState === void 0 ? void 0 : sliderState.properties);
|
|
3701
3779
|
if (isRandomizable) {
|
|
3702
|
-
|
|
3780
|
+
randomizerObjectToUse === null || randomizerObjectToUse === void 0 ? void 0 : randomizerObjectToUse.subscribe(setRandom, id);
|
|
3703
3781
|
}
|
|
3704
3782
|
return function() {
|
|
3705
|
-
|
|
3783
|
+
randomizerObjectToUse === null || randomizerObjectToUse === void 0 ? void 0 : randomizerObjectToUse.unsubscribe(setRandom, id);
|
|
3784
|
+
resetterObject === null || resetterObject === void 0 ? void 0 : resetterObject.unsubscribe(id);
|
|
3706
3785
|
};
|
|
3707
3786
|
} else {
|
|
3708
3787
|
// This sets 'mockProperties' as the value for 'properties' if the app is running in a browser.
|
|
@@ -3957,15 +4036,15 @@ styleInject(css_248z$b);
|
|
|
3957
4036
|
var css_248z$a = "";
|
|
3958
4037
|
styleInject(css_248z$a);
|
|
3959
4038
|
|
|
3960
|
-
function _array_like_to_array$
|
|
4039
|
+
function _array_like_to_array$c(arr, len) {
|
|
3961
4040
|
if (len == null || len > arr.length) len = arr.length;
|
|
3962
4041
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3963
4042
|
return arr2;
|
|
3964
4043
|
}
|
|
3965
|
-
function _array_with_holes$
|
|
4044
|
+
function _array_with_holes$b(arr) {
|
|
3966
4045
|
if (Array.isArray(arr)) return arr;
|
|
3967
4046
|
}
|
|
3968
|
-
function _iterable_to_array_limit$
|
|
4047
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
3969
4048
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3970
4049
|
if (_i == null) return;
|
|
3971
4050
|
var _arr = [];
|
|
@@ -3989,19 +4068,19 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
3989
4068
|
}
|
|
3990
4069
|
return _arr;
|
|
3991
4070
|
}
|
|
3992
|
-
function _non_iterable_rest$
|
|
4071
|
+
function _non_iterable_rest$b() {
|
|
3993
4072
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3994
4073
|
}
|
|
3995
|
-
function _sliced_to_array$
|
|
3996
|
-
return _array_with_holes$
|
|
4074
|
+
function _sliced_to_array$b(arr, i) {
|
|
4075
|
+
return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$b();
|
|
3997
4076
|
}
|
|
3998
|
-
function _unsupported_iterable_to_array$
|
|
4077
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
3999
4078
|
if (!o) return;
|
|
4000
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4079
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
4001
4080
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4002
4081
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4003
4082
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4004
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
4083
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
|
|
4005
4084
|
}
|
|
4006
4085
|
function ControlGroup(param) {
|
|
4007
4086
|
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children, _param_width = param.width, width = _param_width === void 0 ? 'auto' : _param_width;
|
|
@@ -4011,7 +4090,7 @@ function ControlGroup(param) {
|
|
|
4011
4090
|
// <Input id={id-input}></Input>
|
|
4012
4091
|
// </ControlGroup>
|
|
4013
4092
|
var groupId = "".concat(id, "-control-group");
|
|
4014
|
-
var _useState = _sliced_to_array$
|
|
4093
|
+
var _useState = _sliced_to_array$b(useState(false), 2), isActive = _useState[0], setIsActive = _useState[1];
|
|
4015
4094
|
var sliderState = Juce.getSliderState(id);
|
|
4016
4095
|
var clickListener = function(event) {
|
|
4017
4096
|
if (!isDisabled) {
|
|
@@ -4677,8 +4756,8 @@ function IndicatorLight(param) {
|
|
|
4677
4756
|
// Rotary Slider UI component.
|
|
4678
4757
|
// Connects to Juce's Slider element
|
|
4679
4758
|
function RotarySlider(param) {
|
|
4680
|
-
var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, onChange = param.onChange, innerCircleGap = param.innerCircleGap, _param_trackWidth = param.trackWidth, trackWidth = _param_trackWidth === void 0 ? TrackWidths.small : _param_trackWidth, // trackOffset,
|
|
4681
|
-
indicatorId = param.indicatorId, indicatorLineColor = param.indicatorLineColor, _param_indicatorLineGradient = param.indicatorLineGradient, indicatorLineGradient = _param_indicatorLineGradient === void 0 ? GradientStyles.unicolor : _param_indicatorLineGradient, indicatorLineActiveArea = param.indicatorLineActiveArea, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--color-brand-900)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, _param_handleStrokeColor = param.handleStrokeColor, handleStrokeColor = _param_handleStrokeColor === void 0 ? 'var(--color-brand)' : _param_handleStrokeColor, handleFillColor = param.handleFillColor, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, blur = param.blur, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, width = param.width, labelColor = param.labelColor, _param_showLabel = param.showLabel, showLabel = _param_showLabel === void 0 ? true : _param_showLabel, inputHighlightColor = param.inputHighlightColor, handleShape = param.handleShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue,
|
|
4759
|
+
var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, onChange = param.onChange, innerCircleGap = param.innerCircleGap, _param_trackWidth = param.trackWidth, trackWidth = _param_trackWidth === void 0 ? TrackWidths.small : _param_trackWidth, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, randomizerObject = param.randomizerObject, resetterObject = param.resetterObject, // trackOffset,
|
|
4760
|
+
indicatorId = param.indicatorId, indicatorLineColor = param.indicatorLineColor, _param_indicatorLineGradient = param.indicatorLineGradient, indicatorLineGradient = _param_indicatorLineGradient === void 0 ? GradientStyles.unicolor : _param_indicatorLineGradient, indicatorLineActiveArea = param.indicatorLineActiveArea, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--color-brand-900)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, _param_handleStrokeColor = param.handleStrokeColor, handleStrokeColor = _param_handleStrokeColor === void 0 ? 'var(--color-brand)' : _param_handleStrokeColor, handleFillColor = param.handleFillColor, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, blur = param.blur, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, width = param.width, labelColor = param.labelColor, _param_showLabel = param.showLabel, showLabel = _param_showLabel === void 0 ? true : _param_showLabel, inputHighlightColor = param.inputHighlightColor, handleShape = param.handleShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
|
|
4682
4761
|
start: 20.0,
|
|
4683
4762
|
end: 15000.0,
|
|
4684
4763
|
interval: 0.1,
|
|
@@ -4688,10 +4767,12 @@ function RotarySlider(param) {
|
|
|
4688
4767
|
var _useSlider = useSlider({
|
|
4689
4768
|
id: id,
|
|
4690
4769
|
label: label,
|
|
4770
|
+
resetterObject: resetterObject,
|
|
4691
4771
|
mockProperties: mockProperties,
|
|
4692
4772
|
mockInitialNormalisedValue: mockInitialNormalisedValue,
|
|
4693
4773
|
onChange: onChange,
|
|
4694
|
-
isRandomizable: isRandomizable
|
|
4774
|
+
isRandomizable: isRandomizable,
|
|
4775
|
+
randomizerObject: randomizerObject
|
|
4695
4776
|
}), bindDrag = _useSlider.bindDrag, normalisedValue = _useSlider.normalisedValue, scaledValue = _useSlider.scaledValue, setToDefaultState = _useSlider.setToDefaultState, setNormalisedState = _useSlider.setNormalisedState, properties = _useSlider.properties;
|
|
4696
4777
|
// const defaultGradientColor =
|
|
4697
4778
|
// size === RotarySliderSizes.large
|
|
@@ -4817,7 +4898,7 @@ function _object_spread$c(target) {
|
|
|
4817
4898
|
return target;
|
|
4818
4899
|
}
|
|
4819
4900
|
function Slider$1(param) {
|
|
4820
|
-
var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.vertical : _param_orientation, dragOrientation = param.dragOrientation, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_isStandalone = param.isStandalone, isStandalone = _param_isStandalone === void 0 ? true : _param_isStandalone, _param_isHighlighted = param.isHighlighted, isHighlighted = _param_isHighlighted === void 0 ? false : _param_isHighlighted, _param_showValue = param.showValue, showValue = _param_showValue === void 0 ? true : _param_showValue, _param_showHandle = param.showHandle, showHandle = _param_showHandle === void 0 ? true : _param_showHandle, _param_showLabel = param.showLabel, showLabel = _param_showLabel === void 0 ? true : _param_showLabel, _param_showInsetBoxShadow = param.showInsetBoxShadow, showInsetBoxShadow = _param_showInsetBoxShadow === void 0 ? true : _param_showInsetBoxShadow, className = param.className, id = param.id, width = param.width, _param_height = param.height, height = _param_height === void 0 ? '100%' : _param_height, onChange = param.onChange, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, _param_trackBorderRadius = param.trackBorderRadius, trackBorderRadius = _param_trackBorderRadius === void 0 ? 20 : _param_trackBorderRadius, blur = param.blur, style = param.style, _param_indicatorLineColor = param.indicatorLineColor, indicatorLineColor = _param_indicatorLineColor === void 0 ? 'var(--color-brand)' : _param_indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--bg-lv3)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, handleFillColor = param.handleFillColor, handleStrokeColor = param.handleStrokeColor, _param_trackWidth = param.trackWidth, trackWidth = _param_trackWidth === void 0 ? TrackWidths.small : _param_trackWidth, label = param.label, labelColor = param.labelColor, _param_inputHighlightColor = param.inputHighlightColor, inputHighlightColor = _param_inputHighlightColor === void 0 ? 'var(--color-brand)' : _param_inputHighlightColor, _param_includeValueInHeight = param.includeValueInHeight, includeValueInHeight = _param_includeValueInHeight === void 0 ? true : _param_includeValueInHeight, _param_mockInitialNormalisedValue = param.// Mocks the initial scaled value of the slider for web veiws outside of JUCE
|
|
4901
|
+
var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.vertical : _param_orientation, dragOrientation = param.dragOrientation, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, randomizerObject = param.randomizerObject, _param_isStandalone = param.isStandalone, isStandalone = _param_isStandalone === void 0 ? true : _param_isStandalone, _param_isHighlighted = param.isHighlighted, isHighlighted = _param_isHighlighted === void 0 ? false : _param_isHighlighted, _param_showValue = param.showValue, showValue = _param_showValue === void 0 ? true : _param_showValue, _param_showHandle = param.showHandle, showHandle = _param_showHandle === void 0 ? true : _param_showHandle, _param_showLabel = param.showLabel, showLabel = _param_showLabel === void 0 ? true : _param_showLabel, _param_showInsetBoxShadow = param.showInsetBoxShadow, showInsetBoxShadow = _param_showInsetBoxShadow === void 0 ? true : _param_showInsetBoxShadow, resetterObject = param.resetterObject, className = param.className, id = param.id, width = param.width, _param_height = param.height, height = _param_height === void 0 ? '100%' : _param_height, onChange = param.onChange, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, _param_trackBorderRadius = param.trackBorderRadius, trackBorderRadius = _param_trackBorderRadius === void 0 ? 20 : _param_trackBorderRadius, blur = param.blur, style = param.style, _param_indicatorLineColor = param.indicatorLineColor, indicatorLineColor = _param_indicatorLineColor === void 0 ? 'var(--color-brand)' : _param_indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--bg-lv3)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, handleFillColor = param.handleFillColor, handleStrokeColor = param.handleStrokeColor, _param_trackWidth = param.trackWidth, trackWidth = _param_trackWidth === void 0 ? TrackWidths.small : _param_trackWidth, label = param.label, labelColor = param.labelColor, _param_inputHighlightColor = param.inputHighlightColor, inputHighlightColor = _param_inputHighlightColor === void 0 ? 'var(--color-brand)' : _param_inputHighlightColor, _param_includeValueInHeight = param.includeValueInHeight, includeValueInHeight = _param_includeValueInHeight === void 0 ? true : _param_includeValueInHeight, _param_mockInitialNormalisedValue = param.// Mocks the initial scaled value of the slider for web veiws outside of JUCE
|
|
4821
4902
|
mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
|
|
4822
4903
|
start: 20.0,
|
|
4823
4904
|
end: 15000.0,
|
|
@@ -4849,9 +4930,11 @@ function Slider$1(param) {
|
|
|
4849
4930
|
id: id,
|
|
4850
4931
|
label: label,
|
|
4851
4932
|
mockProperties: mockProperties,
|
|
4933
|
+
resetterObject: resetterObject,
|
|
4852
4934
|
mockInitialNormalisedValue: mockInitialNormalisedValue,
|
|
4853
4935
|
onChange: onChange,
|
|
4854
4936
|
isRandomizable: isRandomizable,
|
|
4937
|
+
randomizerObject: randomizerObject,
|
|
4855
4938
|
orientation: orientation,
|
|
4856
4939
|
dragOrientation: dragOrientation || defaultDragOrientation,
|
|
4857
4940
|
sliderElementRef: sliderElementRef
|
|
@@ -4877,13 +4960,7 @@ function Slider$1(param) {
|
|
|
4877
4960
|
color: labelColor,
|
|
4878
4961
|
outerGlowRadius: outerGlowRadius,
|
|
4879
4962
|
outerGlowColor: labelColor,
|
|
4880
|
-
blur: blur
|
|
4881
|
-
padding: [
|
|
4882
|
-
Label.padding.none,
|
|
4883
|
-
Label.padding.none,
|
|
4884
|
-
Label.padding.mediumSmall,
|
|
4885
|
-
Label.padding.none
|
|
4886
|
-
]
|
|
4963
|
+
blur: blur
|
|
4887
4964
|
}) : null, polarity === Polarity.bipolar && /*#__PURE__*/ React__default.createElement("div", {
|
|
4888
4965
|
className: 'Slider-center-marker'
|
|
4889
4966
|
}), /*#__PURE__*/ React__default.createElement(Box, _object_spread$c({
|
|
@@ -4986,10 +5063,11 @@ Slider$1.orientation = Orientation;
|
|
|
4986
5063
|
// Connects to Juce's Slider element
|
|
4987
5064
|
function RotaryCombobox(param) {
|
|
4988
5065
|
var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, indicatorId = param.indicatorId, _param_showLabel = param.showLabel, showLabel = _param_showLabel === void 0 ? true : _param_showLabel, _param_trackWidth = param.trackWidth, trackWidth = _param_trackWidth === void 0 ? TrackWidths.small : _param_trackWidth, width = param.width, // trackOffset,
|
|
4989
|
-
innerCircleGap = param.innerCircleGap, labelColor = param.labelColor; param.inputHighlightColor; var indicatorLineColor = param.indicatorLineColor, _param_indicatorLineGradient = param.indicatorLineGradient, indicatorLineGradient = _param_indicatorLineGradient === void 0 ? GradientStyles.unicolor : _param_indicatorLineGradient, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--color-brand-900)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, _param_handleStrokeColor = param.handleStrokeColor, handleStrokeColor = _param_handleStrokeColor === void 0 ? 'var(--color-brand)' : _param_handleStrokeColor, handleFillColor = param.handleFillColor, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors
|
|
5066
|
+
innerCircleGap = param.innerCircleGap, labelColor = param.labelColor; param.inputHighlightColor; var indicatorLineColor = param.indicatorLineColor, _param_indicatorLineGradient = param.indicatorLineGradient, indicatorLineGradient = _param_indicatorLineGradient === void 0 ? GradientStyles.unicolor : _param_indicatorLineGradient, _param_trackColor = param.trackColor, trackColor = _param_trackColor === void 0 ? 'var(--color-brand-900)' : _param_trackColor, trackStrokeColor = param.trackStrokeColor, _param_handleStrokeColor = param.handleStrokeColor, handleStrokeColor = _param_handleStrokeColor === void 0 ? 'var(--color-brand)' : _param_handleStrokeColor, handleFillColor = param.handleFillColor, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors; param.isRandomizable; var randomizerObject = param.randomizerObject; param.resetterObject; var blur = param.blur, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, handleShape = param.handleShape;
|
|
4990
5067
|
var _rotarySliderSizeMap_size, _rotarySliderSizeMap_size1;
|
|
4991
5068
|
var _useCombobox = useCombobox({
|
|
4992
|
-
id: id
|
|
5069
|
+
id: id,
|
|
5070
|
+
randomizerObject: randomizerObject
|
|
4993
5071
|
}), selectedIndex = _useCombobox.selectedIndex, choices = _useCombobox.choices, selectedIndexLabel = _useCombobox.selectedIndexLabel, onDoubleClick = _useCombobox.onDoubleClick, bindDrag = _useCombobox.bindDrag, properties = _useCombobox.properties;
|
|
4994
5072
|
return /*#__PURE__*/ React__default.createElement(ControlGroup, {
|
|
4995
5073
|
id: id,
|
|
@@ -5066,7 +5144,7 @@ var SliderVariants = /*#__PURE__*/ function(SliderVariants) {
|
|
|
5066
5144
|
}({});
|
|
5067
5145
|
function Slider(param) {
|
|
5068
5146
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "rotary" : _param_variant, _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, _param_inputHighlightColor = param.inputHighlightColor, inputHighlightColor = _param_inputHighlightColor === void 0 ? 'var(--color-brand)' : _param_inputHighlightColor, label = param.label, labelColor = param.labelColor, showLabel = param.showLabel, indicatorLineColor = param.indicatorLineColor, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, handleStrokeColor = param.handleStrokeColor, handleFillColor = param.handleFillColor, handleShape = param.handleShape, showHandle = param.showHandle, showInsetBoxShadow = param.showInsetBoxShadow, indicatorLineGradient = param.indicatorLineGradient, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, blur = param.blur, trackWidth = param.trackWidth, trackBorderRadius = param.trackBorderRadius, className = param.className, id = param.id, width = param.width, height = param.height, onChange = param.onChange, indicatorId = param.indicatorId, innerCircleGap = param.innerCircleGap, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, _param_mockInitialNormalisedValue = param.// trackOffset = 0,
|
|
5069
|
-
mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, showValue = param.showValue, includeValueInHeight = param.includeValueInHeight, isRandomizable = param.isRandomizable, rotationBehavior = param.rotationBehavior, orientation = param.orientation, dragOrientation = param.dragOrientation, isStandalone = param.isStandalone, isHighlighted = param.isHighlighted; param.mockProperties; param.style;
|
|
5147
|
+
mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, showValue = param.showValue, includeValueInHeight = param.includeValueInHeight, isRandomizable = param.isRandomizable, randomizerObject = param.randomizerObject, resetterObject = param.resetterObject, rotationBehavior = param.rotationBehavior, orientation = param.orientation, dragOrientation = param.dragOrientation, isStandalone = param.isStandalone, isHighlighted = param.isHighlighted; param.mockProperties; param.style;
|
|
5070
5148
|
return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, variant === "rotary" ? /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
5071
5149
|
polarity: polarity,
|
|
5072
5150
|
label: label,
|
|
@@ -5081,6 +5159,7 @@ function Slider(param) {
|
|
|
5081
5159
|
blur: blur,
|
|
5082
5160
|
inputHighlightColor: inputHighlightColor,
|
|
5083
5161
|
showLabel: showLabel,
|
|
5162
|
+
resetterObject: resetterObject,
|
|
5084
5163
|
// trackOffset={trackOffset}
|
|
5085
5164
|
handleShape: handleShape,
|
|
5086
5165
|
trackColor: trackColor,
|
|
@@ -5094,6 +5173,7 @@ function Slider(param) {
|
|
|
5094
5173
|
size: size,
|
|
5095
5174
|
mockInitialNormalisedValue: mockInitialNormalisedValue,
|
|
5096
5175
|
isRandomizable: isRandomizable,
|
|
5176
|
+
randomizerObject: randomizerObject,
|
|
5097
5177
|
rotationBehavior: rotationBehavior
|
|
5098
5178
|
}) : null, variant === "rotaryCombobox" ? /*#__PURE__*/ React__default.createElement(RotaryCombobox, {
|
|
5099
5179
|
polarity: polarity,
|
|
@@ -5108,6 +5188,7 @@ function Slider(param) {
|
|
|
5108
5188
|
inputHighlightColor: inputHighlightColor,
|
|
5109
5189
|
outerGlowRadius: outerGlowRadius,
|
|
5110
5190
|
outerGlowColors: outerGlowColors,
|
|
5191
|
+
resetterObject: resetterObject,
|
|
5111
5192
|
blur: blur,
|
|
5112
5193
|
// trackOffset={trackOffset}
|
|
5113
5194
|
handleShape: handleShape,
|
|
@@ -5121,6 +5202,7 @@ function Slider(param) {
|
|
|
5121
5202
|
onChange: onChange,
|
|
5122
5203
|
size: size,
|
|
5123
5204
|
mockInitialNormalisedValue: mockInitialNormalisedValue,
|
|
5205
|
+
randomizerObject: randomizerObject,
|
|
5124
5206
|
isRandomizable: isRandomizable,
|
|
5125
5207
|
rotationBehavior: rotationBehavior
|
|
5126
5208
|
}) : null, variant === "bar" ? /*#__PURE__*/ React__default.createElement(Slider$1, {
|
|
@@ -5134,6 +5216,7 @@ function Slider(param) {
|
|
|
5134
5216
|
handleFillColor: handleFillColor,
|
|
5135
5217
|
handleStrokeColor: handleStrokeColor,
|
|
5136
5218
|
showInsetBoxShadow: showInsetBoxShadow,
|
|
5219
|
+
resetterObject: resetterObject,
|
|
5137
5220
|
className: className,
|
|
5138
5221
|
showHandle: showHandle,
|
|
5139
5222
|
showLabel: showLabel,
|
|
@@ -5154,6 +5237,7 @@ function Slider(param) {
|
|
|
5154
5237
|
isStandalone: isStandalone,
|
|
5155
5238
|
isHighlighted: isHighlighted,
|
|
5156
5239
|
includeValueInHeight: includeValueInHeight,
|
|
5240
|
+
randomizerObject: randomizerObject,
|
|
5157
5241
|
blur: blur
|
|
5158
5242
|
}) : null);
|
|
5159
5243
|
}
|
|
@@ -5994,12 +6078,12 @@ styleInject(css_248z$5);
|
|
|
5994
6078
|
var css_248z$4 = ".PresetManagerContainer {\n width: 100%;\n height: 100%;\n background-color: var(--bg-lv1);\n color: var(--color-text);\n}\n\n.PresetManagerButton {\n width: 100%;\n height: 100%;\n max-width: 300px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n cursor: pointer;\n font-family: var(--font-leagueSpartan);\n}\n.PresetManagerButtonLabel {\n cursor: pointer;\n text-align: center;\n font-family: var(--font-leagueSpartan);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 225px;\n display: inline-block;\n vertical-align: middle;\n height: 1rem;\n line-height: 1.25;\n /* position: relative; */\n &:hover,\n &:active {\n background: var(--color-gray-900);\n }\n /* &.isDirty {\n &::after {\n content: '*';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n } */\n}\n\n.PresetManagerButtonLabelContainer.isDirty::after {\n content: '*';\n position: absolute;\n height: 1rem;\n width: 1rem;\n right: -0.75rem;\n top: 0;\n}\n\n.PresetManagerButtonLabelOuterContainer {\n position: relative;\n width: auto;\n}\n\n[data-headlessui-state='open active'] .PresetManagerButtonLabel {\n background: var(--color-gray-900);\n}\n.PresetManagerPanel {\n position: absolute;\n font-family: var(--font-leagueSpartan);\n right: 0px;\n left: 0px;\n width: 100%;\n max-width: 400px !important;\n color: var(--color-text);\n background: var(--bg-lv5);\n}\n\n.PresetManagerPanel:focus,\n.PresetManagerPanel:focus-visible {\n outline: none;\n}\n\n.PresetManagerListItem {\n cursor: pointer;\n background: var(--color-gray-800);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n}\n\n.PresetManagerListItem:hover,\n.PresetManagerListItem.isSelected {\n background: var(--bg-selected);\n}\n\n.PresetManagerListItemText {\n display: inline-block;\n vertical-align: middle;\n height: 1.5rem;\n line-height: 1.75;\n}\n";
|
|
5995
6079
|
styleInject(css_248z$4);
|
|
5996
6080
|
|
|
5997
|
-
function _array_like_to_array$
|
|
6081
|
+
function _array_like_to_array$b(arr, len) {
|
|
5998
6082
|
if (len == null || len > arr.length) len = arr.length;
|
|
5999
6083
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6000
6084
|
return arr2;
|
|
6001
6085
|
}
|
|
6002
|
-
function _array_with_holes$
|
|
6086
|
+
function _array_with_holes$a(arr) {
|
|
6003
6087
|
if (Array.isArray(arr)) return arr;
|
|
6004
6088
|
}
|
|
6005
6089
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6031,7 +6115,7 @@ function _async_to_generator$3(fn) {
|
|
|
6031
6115
|
});
|
|
6032
6116
|
};
|
|
6033
6117
|
}
|
|
6034
|
-
function _iterable_to_array_limit$
|
|
6118
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
6035
6119
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6036
6120
|
if (_i == null) return;
|
|
6037
6121
|
var _arr = [];
|
|
@@ -6055,23 +6139,23 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
6055
6139
|
}
|
|
6056
6140
|
return _arr;
|
|
6057
6141
|
}
|
|
6058
|
-
function _non_iterable_rest$
|
|
6142
|
+
function _non_iterable_rest$a() {
|
|
6059
6143
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6060
6144
|
}
|
|
6061
6145
|
function _object_destructuring_empty(o) {
|
|
6062
6146
|
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
6063
6147
|
return o;
|
|
6064
6148
|
}
|
|
6065
|
-
function _sliced_to_array$
|
|
6066
|
-
return _array_with_holes$
|
|
6149
|
+
function _sliced_to_array$a(arr, i) {
|
|
6150
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$a();
|
|
6067
6151
|
}
|
|
6068
|
-
function _unsupported_iterable_to_array$
|
|
6152
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
6069
6153
|
if (!o) return;
|
|
6070
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6154
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
6071
6155
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6072
6156
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6073
6157
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6074
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6158
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
6075
6159
|
}
|
|
6076
6160
|
function _ts_generator$3(thisArg, body) {
|
|
6077
6161
|
var f, y, t, _ = {
|
|
@@ -6166,16 +6250,16 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6166
6250
|
}
|
|
6167
6251
|
function PresetManager(param) {
|
|
6168
6252
|
_object_destructuring_empty(param);
|
|
6169
|
-
var _useState = _sliced_to_array$
|
|
6170
|
-
var _useState1 = _sliced_to_array$
|
|
6253
|
+
var _useState = _sliced_to_array$a(useState([]), 2), presetList = _useState[0], setPresetList = _useState[1];
|
|
6254
|
+
var _useState1 = _sliced_to_array$a(useState(false), 2); _useState1[0]; var setIsSaving = _useState1[1];
|
|
6171
6255
|
var savePresetFunc = Juce.getNativeFunction('savePreset');
|
|
6172
6256
|
var loadPresetFunc = Juce.getNativeFunction('loadPreset');
|
|
6173
6257
|
var getAllPresetsFunc = Juce.getNativeFunction('getAllPresets');
|
|
6174
6258
|
var getCurrentPresetFunc = Juce.getNativeFunction('getCurrentPreset');
|
|
6175
6259
|
var isDirtyFunc = Juce.getNativeFunction('canUndo');
|
|
6176
|
-
var _useState2 = _sliced_to_array$
|
|
6260
|
+
var _useState2 = _sliced_to_array$a(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
|
|
6177
6261
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
6178
|
-
var _useState3 = _sliced_to_array$
|
|
6262
|
+
var _useState3 = _sliced_to_array$a(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
|
|
6179
6263
|
useEffect(function() {
|
|
6180
6264
|
if (!isLocalhost) {
|
|
6181
6265
|
var _window___JUCE___backend, _window___JUCE__, _window;
|
|
@@ -6454,12 +6538,12 @@ function PresetManager(param) {
|
|
|
6454
6538
|
}))))));
|
|
6455
6539
|
}
|
|
6456
6540
|
|
|
6457
|
-
function _array_like_to_array$
|
|
6541
|
+
function _array_like_to_array$a(arr, len) {
|
|
6458
6542
|
if (len == null || len > arr.length) len = arr.length;
|
|
6459
6543
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6460
6544
|
return arr2;
|
|
6461
6545
|
}
|
|
6462
|
-
function _array_with_holes$
|
|
6546
|
+
function _array_with_holes$9(arr) {
|
|
6463
6547
|
if (Array.isArray(arr)) return arr;
|
|
6464
6548
|
}
|
|
6465
6549
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6504,7 +6588,7 @@ function _define_property$7(obj, key, value) {
|
|
|
6504
6588
|
}
|
|
6505
6589
|
return obj;
|
|
6506
6590
|
}
|
|
6507
|
-
function _iterable_to_array_limit$
|
|
6591
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
6508
6592
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6509
6593
|
if (_i == null) return;
|
|
6510
6594
|
var _arr = [];
|
|
@@ -6528,7 +6612,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
6528
6612
|
}
|
|
6529
6613
|
return _arr;
|
|
6530
6614
|
}
|
|
6531
|
-
function _non_iterable_rest$
|
|
6615
|
+
function _non_iterable_rest$9() {
|
|
6532
6616
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6533
6617
|
}
|
|
6534
6618
|
function _object_spread$7(target) {
|
|
@@ -6546,16 +6630,16 @@ function _object_spread$7(target) {
|
|
|
6546
6630
|
}
|
|
6547
6631
|
return target;
|
|
6548
6632
|
}
|
|
6549
|
-
function _sliced_to_array$
|
|
6550
|
-
return _array_with_holes$
|
|
6633
|
+
function _sliced_to_array$9(arr, i) {
|
|
6634
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$9();
|
|
6551
6635
|
}
|
|
6552
|
-
function _unsupported_iterable_to_array$
|
|
6636
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
6553
6637
|
if (!o) return;
|
|
6554
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6638
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
6555
6639
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6556
6640
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6557
6641
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6558
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6642
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
6559
6643
|
}
|
|
6560
6644
|
function _ts_generator$2(thisArg, body) {
|
|
6561
6645
|
var f, y, t, _ = {
|
|
@@ -6740,8 +6824,8 @@ function ModuleHeader(param) {
|
|
|
6740
6824
|
}, [
|
|
6741
6825
|
window
|
|
6742
6826
|
]);
|
|
6743
|
-
var _useState = _sliced_to_array$
|
|
6744
|
-
var _useState1 = _sliced_to_array$
|
|
6827
|
+
var _useState = _sliced_to_array$9(useState(false), 2), canUndo = _useState[0], setCanUndo = _useState[1];
|
|
6828
|
+
var _useState1 = _sliced_to_array$9(useState(false), 2), canRedo = _useState1[0], setCanRedo = _useState1[1];
|
|
6745
6829
|
var handleUndo = function() {
|
|
6746
6830
|
undo();
|
|
6747
6831
|
};
|
|
@@ -6971,14 +7055,16 @@ function ModuleHeader(param) {
|
|
|
6971
7055
|
Button.padding.small,
|
|
6972
7056
|
Button.padding.large
|
|
6973
7057
|
],
|
|
6974
|
-
onClick: toggleAdvancedView
|
|
7058
|
+
onClick: toggleAdvancedView,
|
|
7059
|
+
backgroundColor: "var(--bg-lv1)",
|
|
7060
|
+
highlightBackground: "var(--bg-lv2)"
|
|
6975
7061
|
}, /*#__PURE__*/ React__default.createElement(Label, {
|
|
6976
7062
|
fontSize: Label.fontSize.large,
|
|
6977
7063
|
className: "advancedLayoutButtonLabel"
|
|
6978
7064
|
}, "Advanced")))));
|
|
6979
7065
|
}
|
|
6980
7066
|
|
|
6981
|
-
var css_248z$3 = ".ModMatrix {\n color: var(--color-text);\n font-size: var(--text-ms);\n}\n\n.ModMatrixCell {\n position: relative;\n}\n\n.ModMatrixBodyCell,\n.ModMatrixComboboxCell {\n background:
|
|
7067
|
+
var css_248z$3 = ".ModMatrix {\n color: var(--color-text);\n font-size: var(--text-ms);\n}\n\n.ModMatrixCell {\n position: relative;\n}\n\n.ModMatrixBodyCell,\n.ModMatrixComboboxCell {\n background: var(--bg-lv4);\n}\n\n.ModMatrixBodyCell.isDisabled,\n.ModMatrixDeleteCell.isDisabled {\n opacity: 0.4;\n}\n\n.ModMatrixCell.isDisabled {\n color: var(--color-gray-400);\n cursor: default;\n}\n\n/* .isActive .ModMatrixCell {\n background: var(--color-gray-600);\n} */\n.ModMatrixComboboxItems {\n position: absolute;\n z-index: 50;\n left: 0px;\n /* height: 150px; */\n /* width: 100%; */\n color: var(--color-text);\n /* -ms-overflow-style: none; */\n scrollbar-width: thin;\n overflow-y: scroll;\n overflow-x: hidden;\n cursor: pointer;\n}\n\n.ModMatrixComboboxItems::-webkit-scrollbar {\n width: 10px;\n}\n\n.ModMatrixComboboxItem {\n display: flex;\n align-items: center;\n background: var(--bg-lv4);\n padding: 0 var(--spacing-md);\n width: 100%;\n}\n\n.ModMatrixComboboxItem:hover,\n.ModMatrixComboboxItem:active {\n background: var(--bg-lv5);\n}\n\n.ModMatrixComboboxButton {\n cursor: pointer;\n}\n\n.ModMatrixInput {\n text-align: center;\n margin-top: 3px;\n}\n";
|
|
6982
7068
|
styleInject(css_248z$3);
|
|
6983
7069
|
|
|
6984
7070
|
var targetColors = [
|
|
@@ -7093,6 +7179,14 @@ function ModMatrixComboboxCell(param) {
|
|
|
7093
7179
|
}));
|
|
7094
7180
|
}
|
|
7095
7181
|
|
|
7182
|
+
function _array_like_to_array$9(arr, len) {
|
|
7183
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
7184
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7185
|
+
return arr2;
|
|
7186
|
+
}
|
|
7187
|
+
function _array_with_holes$8(arr) {
|
|
7188
|
+
if (Array.isArray(arr)) return arr;
|
|
7189
|
+
}
|
|
7096
7190
|
function _define_property$5(obj, key, value) {
|
|
7097
7191
|
if (key in obj) {
|
|
7098
7192
|
Object.defineProperty(obj, key, {
|
|
@@ -7106,6 +7200,33 @@ function _define_property$5(obj, key, value) {
|
|
|
7106
7200
|
}
|
|
7107
7201
|
return obj;
|
|
7108
7202
|
}
|
|
7203
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
7204
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7205
|
+
if (_i == null) return;
|
|
7206
|
+
var _arr = [];
|
|
7207
|
+
var _n = true;
|
|
7208
|
+
var _d = false;
|
|
7209
|
+
var _s, _e;
|
|
7210
|
+
try {
|
|
7211
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
7212
|
+
_arr.push(_s.value);
|
|
7213
|
+
if (i && _arr.length === i) break;
|
|
7214
|
+
}
|
|
7215
|
+
} catch (err) {
|
|
7216
|
+
_d = true;
|
|
7217
|
+
_e = err;
|
|
7218
|
+
} finally{
|
|
7219
|
+
try {
|
|
7220
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
7221
|
+
} finally{
|
|
7222
|
+
if (_d) throw _e;
|
|
7223
|
+
}
|
|
7224
|
+
}
|
|
7225
|
+
return _arr;
|
|
7226
|
+
}
|
|
7227
|
+
function _non_iterable_rest$8() {
|
|
7228
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7229
|
+
}
|
|
7109
7230
|
function _object_spread$5(target) {
|
|
7110
7231
|
for(var i = 1; i < arguments.length; i++){
|
|
7111
7232
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
@@ -7121,15 +7242,29 @@ function _object_spread$5(target) {
|
|
|
7121
7242
|
}
|
|
7122
7243
|
return target;
|
|
7123
7244
|
}
|
|
7245
|
+
function _sliced_to_array$8(arr, i) {
|
|
7246
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
|
|
7247
|
+
}
|
|
7248
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7249
|
+
if (!o) return;
|
|
7250
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7251
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7252
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7253
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7254
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7255
|
+
}
|
|
7124
7256
|
function Toggle(param) {
|
|
7125
|
-
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onChange = param.onChange,
|
|
7126
|
-
var
|
|
7257
|
+
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onChange = param.onChange, _param_width = param.width, width = _param_width === void 0 ? ButtonSize.medium : _param_width, _param_height = param.height, height = _param_height === void 0 ? ButtonSize.medium : _param_height, label = param.label, labelColor = param.labelColor, outerGlowRadius = param.outerGlowRadius, displayValInHeader = param.displayValInHeader, blur = param.blur, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_highlightColor = param.highlightColor, highlightColor = _param_highlightColor === void 0 ? 'var(--color-text)' : _param_highlightColor, _param_highlightBackgroundColor = param.highlightBackgroundColor, highlightBackgroundColor = _param_highlightBackgroundColor === void 0 ? 'var(--bg-lv6)' : _param_highlightBackgroundColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'var(--bg-lv5)' : _param_backgroundColor, style = param.style;
|
|
7258
|
+
var _properties_choices;
|
|
7259
|
+
var _useState = _sliced_to_array$8(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
7127
7260
|
var _useCombobox = useCombobox({
|
|
7128
7261
|
id: id,
|
|
7129
7262
|
displayValInHeader: displayValInHeader,
|
|
7130
7263
|
isDisabled: isDisabled,
|
|
7131
7264
|
onChange: onChange
|
|
7132
7265
|
}), selectedIndex = _useCombobox.selectedIndex, handleChange = _useCombobox.handleChange, properties = _useCombobox.properties, onMouseEnter = _useCombobox.onMouseEnter;
|
|
7266
|
+
var widthValue = (buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width]) ? buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width] : width;
|
|
7267
|
+
var heightValue = (buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height]) ? buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height] : height;
|
|
7133
7268
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
7134
7269
|
gap: Box.gap.mediumSmall,
|
|
7135
7270
|
flexDirection: Box.flexDirection.column
|
|
@@ -7146,13 +7281,20 @@ function Toggle(param) {
|
|
|
7146
7281
|
alignItems: Box.alignItems.flexStart,
|
|
7147
7282
|
flexDirection: Box.flexDirection.column,
|
|
7148
7283
|
style: _object_spread$5({
|
|
7149
|
-
color: color,
|
|
7284
|
+
color: componentIsHovered ? highlightColor : color,
|
|
7285
|
+
backgroundColor: componentIsHovered ? highlightBackgroundColor : backgroundColor,
|
|
7150
7286
|
cursor: isDisabled ? 'default' : 'pointer',
|
|
7151
7287
|
pointerEvents: 'all'
|
|
7152
7288
|
}, style),
|
|
7153
|
-
width:
|
|
7154
|
-
height:
|
|
7155
|
-
onMouseEnter:
|
|
7289
|
+
width: widthValue,
|
|
7290
|
+
height: heightValue,
|
|
7291
|
+
onMouseEnter: function() {
|
|
7292
|
+
onMouseEnter();
|
|
7293
|
+
!isDisabled && setComponentIsHovered(true);
|
|
7294
|
+
},
|
|
7295
|
+
onMouseLeave: function() {
|
|
7296
|
+
return !isDisabled && setComponentIsHovered(false);
|
|
7297
|
+
},
|
|
7156
7298
|
onClick: function(val) {
|
|
7157
7299
|
// Update the toggle state
|
|
7158
7300
|
var newIndex = Math.abs(selectedIndex - 1);
|
|
@@ -7172,7 +7314,8 @@ function Toggle(param) {
|
|
|
7172
7314
|
}
|
|
7173
7315
|
}, (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices[selectedIndex]) || '0'))));
|
|
7174
7316
|
}
|
|
7175
|
-
Toggle.
|
|
7317
|
+
Toggle.width = ButtonSize;
|
|
7318
|
+
Toggle.height = ButtonSize;
|
|
7176
7319
|
|
|
7177
7320
|
// import * as Juce from 'juce-framework-frontend';
|
|
7178
7321
|
function ModMatrixToggleCell(param) {
|
|
@@ -7195,8 +7338,9 @@ function ModMatrixToggleCell(param) {
|
|
|
7195
7338
|
id: modifier,
|
|
7196
7339
|
onChange: handleChange,
|
|
7197
7340
|
isDisabled: isDisabled,
|
|
7198
|
-
|
|
7199
|
-
|
|
7341
|
+
width: Toggle.width.full,
|
|
7342
|
+
height: Toggle.height.large,
|
|
7343
|
+
backgroundColor: "transparent"
|
|
7200
7344
|
}));
|
|
7201
7345
|
}
|
|
7202
7346
|
|
|
@@ -7253,12 +7397,12 @@ function SingleBarViz(param) {
|
|
|
7253
7397
|
}
|
|
7254
7398
|
SingleBarViz.polarity = Polarity;
|
|
7255
7399
|
|
|
7256
|
-
function _array_like_to_array$
|
|
7400
|
+
function _array_like_to_array$8(arr, len) {
|
|
7257
7401
|
if (len == null || len > arr.length) len = arr.length;
|
|
7258
7402
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7259
7403
|
return arr2;
|
|
7260
7404
|
}
|
|
7261
|
-
function _array_with_holes$
|
|
7405
|
+
function _array_with_holes$7(arr) {
|
|
7262
7406
|
if (Array.isArray(arr)) return arr;
|
|
7263
7407
|
}
|
|
7264
7408
|
function _define_property$3(obj, key, value) {
|
|
@@ -7274,7 +7418,7 @@ function _define_property$3(obj, key, value) {
|
|
|
7274
7418
|
}
|
|
7275
7419
|
return obj;
|
|
7276
7420
|
}
|
|
7277
|
-
function _iterable_to_array_limit$
|
|
7421
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
7278
7422
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7279
7423
|
if (_i == null) return;
|
|
7280
7424
|
var _arr = [];
|
|
@@ -7298,7 +7442,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
7298
7442
|
}
|
|
7299
7443
|
return _arr;
|
|
7300
7444
|
}
|
|
7301
|
-
function _non_iterable_rest$
|
|
7445
|
+
function _non_iterable_rest$7() {
|
|
7302
7446
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7303
7447
|
}
|
|
7304
7448
|
function _object_spread$3(target) {
|
|
@@ -7335,22 +7479,22 @@ function _object_spread_props(target, source) {
|
|
|
7335
7479
|
}
|
|
7336
7480
|
return target;
|
|
7337
7481
|
}
|
|
7338
|
-
function _sliced_to_array$
|
|
7339
|
-
return _array_with_holes$
|
|
7482
|
+
function _sliced_to_array$7(arr, i) {
|
|
7483
|
+
return _array_with_holes$7(arr) || _iterable_to_array_limit$7(arr, i) || _unsupported_iterable_to_array$8(arr, i) || _non_iterable_rest$7();
|
|
7340
7484
|
}
|
|
7341
|
-
function _unsupported_iterable_to_array$
|
|
7485
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
7342
7486
|
if (!o) return;
|
|
7343
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7487
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
7344
7488
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7345
7489
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7346
7490
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7347
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7491
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$8(o, minLen);
|
|
7348
7492
|
}
|
|
7349
7493
|
function ModMatrixCell(param) {
|
|
7350
7494
|
var modifier = param.modifier, rowId = param.rowId, isDisabled = param.isDisabled, color = param.color, style = param.style;
|
|
7351
7495
|
var _SingleBarViz_polarity;
|
|
7352
7496
|
var _useGlobalContext = useGlobalContext(), setDefaultParameter = _useGlobalContext.setDefaultParameter, updateModSlotRowTarget = _useGlobalContext.updateModSlotRowTarget, modSlotTargets = _useGlobalContext.globalState.modSlotTargets;
|
|
7353
|
-
var _useState = _sliced_to_array$
|
|
7497
|
+
var _useState = _sliced_to_array$7(useState(false), 2); _useState[0]; var setIsActive = _useState[1];
|
|
7354
7498
|
var _useSlider = useSlider({
|
|
7355
7499
|
id: modifier,
|
|
7356
7500
|
rowId: rowId,
|
|
@@ -7534,13 +7678,13 @@ function ModMatrixRow(param) {
|
|
|
7534
7678
|
}) : null));
|
|
7535
7679
|
}
|
|
7536
7680
|
|
|
7537
|
-
function _array_like_to_array$
|
|
7681
|
+
function _array_like_to_array$7(arr, len) {
|
|
7538
7682
|
if (len == null || len > arr.length) len = arr.length;
|
|
7539
7683
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7540
7684
|
return arr2;
|
|
7541
7685
|
}
|
|
7542
7686
|
function _array_without_holes(arr) {
|
|
7543
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7687
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
7544
7688
|
}
|
|
7545
7689
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7546
7690
|
try {
|
|
@@ -7606,15 +7750,15 @@ function _object_spread$2(target) {
|
|
|
7606
7750
|
return target;
|
|
7607
7751
|
}
|
|
7608
7752
|
function _to_consumable_array(arr) {
|
|
7609
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$
|
|
7753
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$7(arr) || _non_iterable_spread();
|
|
7610
7754
|
}
|
|
7611
|
-
function _unsupported_iterable_to_array$
|
|
7755
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
7612
7756
|
if (!o) return;
|
|
7613
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7757
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
7614
7758
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7615
7759
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7616
7760
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7617
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7761
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$7(o, minLen);
|
|
7618
7762
|
}
|
|
7619
7763
|
function _ts_generator$1(thisArg, body) {
|
|
7620
7764
|
var f, y, t, _ = {
|
|
@@ -7907,15 +8051,15 @@ function createBase64WorkerFactory$3(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
7907
8051
|
var WorkerFactory$1 = /*#__PURE__*/createBase64WorkerFactory$3('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgZnVuY3Rpb24gX2FycmF5X2xpa2VfdG9fYXJyYXkoYXJyLCBsZW4pIHsKICAgICAgaWYgKGxlbiA9PSBudWxsIHx8IGxlbiA+IGFyci5sZW5ndGgpIGxlbiA9IGFyci5sZW5ndGg7CiAgICAgIGZvcih2YXIgaSA9IDAsIGFycjIgPSBuZXcgQXJyYXkobGVuKTsgaSA8IGxlbjsgaSsrKWFycjJbaV0gPSBhcnJbaV07CiAgICAgIHJldHVybiBhcnIyOwogIH0KICBmdW5jdGlvbiBfYXJyYXlfd2l0aG91dF9ob2xlcyhhcnIpIHsKICAgICAgaWYgKEFycmF5LmlzQXJyYXkoYXJyKSkgcmV0dXJuIF9hcnJheV9saWtlX3RvX2FycmF5KGFycik7CiAgfQogIGZ1bmN0aW9uIF9pdGVyYWJsZV90b19hcnJheShpdGVyKSB7CiAgICAgIGlmICh0eXBlb2YgU3ltYm9sICE9PSAidW5kZWZpbmVkIiAmJiBpdGVyW1N5bWJvbC5pdGVyYXRvcl0gIT0gbnVsbCB8fCBpdGVyWyJAQGl0ZXJhdG9yIl0gIT0gbnVsbCkgcmV0dXJuIEFycmF5LmZyb20oaXRlcik7CiAgfQogIGZ1bmN0aW9uIF9ub25faXRlcmFibGVfc3ByZWFkKCkgewogICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJJbnZhbGlkIGF0dGVtcHQgdG8gc3ByZWFkIG5vbi1pdGVyYWJsZSBpbnN0YW5jZS5cXG5JbiBvcmRlciB0byBiZSBpdGVyYWJsZSwgbm9uLWFycmF5IG9iamVjdHMgbXVzdCBoYXZlIGEgW1N5bWJvbC5pdGVyYXRvcl0oKSBtZXRob2QuIik7CiAgfQogIGZ1bmN0aW9uIF90b19jb25zdW1hYmxlX2FycmF5KGFycikgewogICAgICByZXR1cm4gX2FycmF5X3dpdGhvdXRfaG9sZXMoYXJyKSB8fCBfaXRlcmFibGVfdG9fYXJyYXkoYXJyKSB8fCBfdW5zdXBwb3J0ZWRfaXRlcmFibGVfdG9fYXJyYXkoYXJyKSB8fCBfbm9uX2l0ZXJhYmxlX3NwcmVhZCgpOwogIH0KICBmdW5jdGlvbiBfdW5zdXBwb3J0ZWRfaXRlcmFibGVfdG9fYXJyYXkobywgbWluTGVuKSB7CiAgICAgIGlmICghbykgcmV0dXJuOwogICAgICBpZiAodHlwZW9mIG8gPT09ICJzdHJpbmciKSByZXR1cm4gX2FycmF5X2xpa2VfdG9fYXJyYXkobywgbWluTGVuKTsKICAgICAgdmFyIG4gPSBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwobykuc2xpY2UoOCwgLTEpOwogICAgICBpZiAobiA9PT0gIk9iamVjdCIgJiYgby5jb25zdHJ1Y3RvcikgbiA9IG8uY29uc3RydWN0b3IubmFtZTsKICAgICAgaWYgKG4gPT09ICJNYXAiIHx8IG4gPT09ICJTZXQiKSByZXR1cm4gQXJyYXkuZnJvbShuKTsKICAgICAgaWYgKG4gPT09ICJBcmd1bWVudHMiIHx8IC9eKD86VWl8SSludCg/Ojh8MTZ8MzIpKD86Q2xhbXBlZCk/QXJyYXkkLy50ZXN0KG4pKSByZXR1cm4gX2FycmF5X2xpa2VfdG9fYXJyYXkobywgbWluTGVuKTsKICB9CiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgTEZPRG90Q2FudmFzOwogIHZhciBidWZmZXJBcnJheSA9IFtdOwogIHZhciB2aXNpYmxlV2F2ZWZvcm1zID0gW107CiAgdmFyIGN1cnJlbnRXYXZlZm9ybSA9IFtdOwogIHZhciBhcnJheUxlbmd0aCA9IDEwMjQ7CiAgZnVuY3Rpb24gbm9ybWFsaXplVG9aZXJvT25lKHZhbHVlLCBtaW4sIG1heCkgewogICAgICByZXR1cm4gKHZhbHVlIC0gbWluKSAvIChtYXggLSBtaW4pOwogIH0KICB2YXIgcmVkdWNlUmVzb2x1dGlvblRvID0gZnVuY3Rpb24oYXJyLCBuKSB7CiAgICAgIHZhciBuZXdSZXMgPSBNYXRoLmZsb29yKChhcnIgPT09IG51bGwgfHwgYXJyID09PSB2b2lkIDAgPyB2b2lkIDAgOiBhcnIubGVuZ3RoKSAvIG4pOwogICAgICByZXR1cm4gYXJyID09PSBudWxsIHx8IGFyciA9PT0gdm9pZCAwID8gdm9pZCAwIDogYXJyLmZpbHRlcihmdW5jdGlvbihfLCBpbmRleCkgewogICAgICAgICAgcmV0dXJuIGluZGV4ICUgTWF0aC5mbG9vcigoYXJyID09PSBudWxsIHx8IGFyciA9PT0gdm9pZCAwID8gdm9pZCAwIDogYXJyLmxlbmd0aCkgLyBuZXdSZXMpID09PSAwOwogICAgICB9KTsKICB9OwogIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24oZXZlbnQpIHsKICAgICAgdmFyIGRhdGEgPSBldmVudC5kYXRhOwogICAgICB2YXIgbGluZVdpZHRoID0gMjsKICAgICAgdmFyIG51bUN5Y2xlcyA9IE1hdGgubWluKE1hdGguZmxvb3IoTWF0aC5tYXgoZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLmh6VmFsdWVGb3JTeW5jVHlwZSwgMSkpLCA1MCk7CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICdpbml0JykgewogICAgICAgICAgTEZPRG90Q2FudmFzID0gZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLmNhbnZhczsKICAgICAgICAgIGJ1ZmZlckFycmF5ID0gW107CiAgICAgICAgICBjdXJyZW50V2F2ZWZvcm0gPSBBcnJheS5mcm9tKHsKICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IoYXJyYXlMZW5ndGggLSB2aXNpYmxlV2F2ZWZvcm1zLmxlbmd0aCkKICAgICAgICAgIH0sIGZ1bmN0aW9uKGl0ZW0sIGkpIHsKICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICB4OiBpLAogICAgICAgICAgICAgICAgICB5OiAwCiAgICAgICAgICAgICAgfTsKICAgICAgICAgIH0pOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICduZXdXYXZlJykgewogICAgICAgICAgdmFyIGxvd2VyUmVzV2F2ZWZvcm0gPSByZWR1Y2VSZXNvbHV0aW9uVG8oZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLndhdmVGb3JtLCBudW1DeWNsZXMpOwogICAgICAgICAgLy8gVE9ETzogcmUtZW5hYmxlIHJhbmRvbQogICAgICAgICAgLy8gbGV0IG5ld1dhdmU6IEFycmF5PFhZVmFsdWU+ID0gW107CiAgICAgICAgICAvLyBUT0RPOiByZS1lbmFibGUgcmFuZG9tCiAgICAgICAgICAvLyBpZiAobG93ZXJSZXNXYXZlZm9ybS5sZW5ndGggPiAwKSB7CiAgICAgICAgICAvLyAgIG5ld1dhdmUgPSBsb3dlclJlc1dhdmVmb3JtLm1hcCgoaXRlbTogWFlWYWx1ZSwgaTogbnVtYmVyKSA9PiAoewogICAgICAgICAgLy8gICAgIHg6IGl0ZW0ueCwKICAgICAgICAgIC8vICAgICB5OiBpdGVtLnkgKiAoMSAtIGRhdGE/LnJhbmRBbW91bnRWYWx1ZSksCiAgICAgICAgICAvLyAgIH0pKTsKICAgICAgICAgIC8vIH0KICAgICAgICAgIC8vIHJhbmRBbW91bnRWYWwgPSBkYXRhPy5yYW5kQW1vdW50VmFsdWU7CiAgICAgICAgICB2YXIgZmlsbGVySXRlbXMgPSBBcnJheS5mcm9tKHsKICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IoTWF0aC5hYnMoTWF0aC5tYXgobnVtQ3ljbGVzIC0gKGJ1ZmZlckFycmF5ID09PSBudWxsIHx8IGJ1ZmZlckFycmF5ID09PSB2b2lkIDAgPyB2b2lkIDAgOiBidWZmZXJBcnJheS5sZW5ndGgpIC0gMSwgMCkpKQogICAgICAgICAgfSwgZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgcmV0dXJuIEFycmF5LmZyb20oewogICAgICAgICAgICAgICAgICBsZW5ndGg6IE1hdGguZmxvb3IobG93ZXJSZXNXYXZlZm9ybS5sZW5ndGgpCiAgICAgICAgICAgICAgfSwgZnVuY3Rpb24oaXRlbSwgaSkgewogICAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgICAgeDogaSwKICAgICAgICAgICAgICAgICAgICAgIHk6IDAKICAgICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgICB9KTsKICAgICAgICAgIH0pOwogICAgICAgICAgdmFyIG5ld0J1ZmZlckFycmF5ID0gKGJ1ZmZlckFycmF5ID09PSBudWxsIHx8IGJ1ZmZlckFycmF5ID09PSB2b2lkIDAgPyB2b2lkIDAgOiBidWZmZXJBcnJheS5sZW5ndGgpID49IG51bUN5Y2xlcyA/IF90b19jb25zdW1hYmxlX2FycmF5KGJ1ZmZlckFycmF5LnNsaWNlKC1NYXRoLm1heChNYXRoLmZsb29yKG51bUN5Y2xlcyksIDEpKSkuY29uY2F0KFsKICAgICAgICAgICAgICBsb3dlclJlc1dhdmVmb3JtCiAgICAgICAgICBdLCBfdG9fY29uc3VtYWJsZV9hcnJheShmaWxsZXJJdGVtcykpIDogX3RvX2NvbnN1bWFibGVfYXJyYXkoZmlsbGVySXRlbXMpLmNvbmNhdChfdG9fY29uc3VtYWJsZV9hcnJheShidWZmZXJBcnJheSksIFsKICAgICAgICAgICAgICBsb3dlclJlc1dhdmVmb3JtCiAgICAgICAgICBdKTsKICAgICAgICAgIGJ1ZmZlckFycmF5ID0gbmV3QnVmZmVyQXJyYXk7CiAgICAgIH0KICAgICAgaWYgKGRhdGEudHlwZSA9PT0gJ2N5Y2xlVXBkYXRlJykgewogICAgICAgICAgdmFyIF9idWZmZXJBcnJheV87CiAgICAgICAgICB2YXIgdXBkYXRlZFZpc2libGVXYXZlRm9ybXMgPSBidWZmZXJBcnJheS5sZW5ndGggPiAwID8gX3RvX2NvbnN1bWFibGVfYXJyYXkoKF9idWZmZXJBcnJheV8gPSBidWZmZXJBcnJheVswXSkgPT09IG51bGwgfHwgX2J1ZmZlckFycmF5XyA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2J1ZmZlckFycmF5Xy5zbGljZShNYXRoLm1heChNYXRoLmZsb29yKGJ1ZmZlckFycmF5WzBdLmxlbmd0aCAqIG5vcm1hbGl6ZVRvWmVyb09uZShkYXRhLnJhbXBWYWx1ZSwgMCwgMTAyMykpLCAxKSkpLmNvbmNhdChfdG9fY29uc3VtYWJsZV9hcnJheShidWZmZXJBcnJheS5zbGljZSgxKS5mbGF0KCkpLCBfdG9fY29uc3VtYWJsZV9hcnJheShjdXJyZW50V2F2ZWZvcm0gPT09IG51bGwgfHwgY3VycmVudFdhdmVmb3JtID09PSB2b2lkIDAgPyB2b2lkIDAgOiBjdXJyZW50V2F2ZWZvcm0uc2xpY2UoMCwgTWF0aC5mbG9vcihjdXJyZW50V2F2ZWZvcm0ubGVuZ3RoICogbm9ybWFsaXplVG9aZXJvT25lKGRhdGEucmFtcFZhbHVlLCAwLCAxMDIzKSkpKSkgOiBfdG9fY29uc3VtYWJsZV9hcnJheShjdXJyZW50V2F2ZWZvcm0pOwogICAgICAgICAgLy8gY29uc29sZS5sb2coZGF0YT8ucmFtcFZhbHVlLCAnZGF0YT8ucmFtcFZhbHVlJyk7CiAgICAgICAgICB2YXIgeHlWYWx1ZXMgPSB1cGRhdGVkVmlzaWJsZVdhdmVGb3JtcyA9PT0gbnVsbCB8fCB1cGRhdGVkVmlzaWJsZVdhdmVGb3JtcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogdXBkYXRlZFZpc2libGVXYXZlRm9ybXMubWFwKGZ1bmN0aW9uKGl0ZW0sIGkpIHsKICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICB4OiBpLAogICAgICAgICAgICAgICAgICB5OiBpdGVtLnkKICAgICAgICAgICAgICB9OwogICAgICAgICAgfSk7CiAgICAgICAgICB2aXNpYmxlV2F2ZWZvcm1zID0geHlWYWx1ZXM7CiAgICAgICAgICAvLyBUT0RPOiBUcm91Ymxlc2hvb3QgcmFuZG9tCiAgICAgICAgICAvLyBpZiAoCiAgICAgICAgICAvLyAgIHVwZGF0ZWRWaXNpYmxlV2F2ZUZvcm1zWzBdPy55ICE9PSAwICYmCiAgICAgICAgICAvLyAgIHByZXZWaXNpYmxlV2F2ZUZvcm0/LnkgIT09IDAgJiYKICAgICAgICAgIC8vICAgdXBkYXRlZFZpc2libGVXYXZlRm9ybXNbMF0/LnkgIT09IHByZXZWaXNpYmxlV2F2ZUZvcm0/LnkKICAgICAgICAgIC8vICkgewogICAgICAgICAgLy8gICAvLyBjb25zb2xlLmxvZygnUFJPQkxFTScpOwogICAgICAgICAgLy8gfQogICAgICAgICAgdmFyIHhTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKC8vIGQzLmV4dGVudCh2aXNpYmxlV2F2ZWZvcm1zLCBmdW5jdGlvbiAoZCkgewogICAgICAgICAgLy8gICByZXR1cm4gZC54OwogICAgICAgICAgLy8gfSksCiAgICAgICAgICBbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICBhcnJheUxlbmd0aAogICAgICAgICAgXSkucmFuZ2UoWwogICAgICAgICAgICAgIDAsCiAgICAgICAgICAgICAgZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiBkYXRhLndpZHRoCiAgICAgICAgICBdKTsKICAgICAgICAgIHZhciB5U2NhbGUgPSBkMy5zY2FsZUxpbmVhcigpLmRvbWFpbihbCiAgICAgICAgICAgICAgMCwKICAgICAgICAgICAgICAxCiAgICAgICAgICBdKS5yYW5nZShbCiAgICAgICAgICAgICAgKGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS5oZWlnaHQpIC0gbGluZVdpZHRoLAogICAgICAgICAgICAgIGxpbmVXaWR0aAogICAgICAgICAgXSk7CiAgICAgICAgICBpZiAoZGF0YSAhPSBudWxsKSB7CiAgICAgICAgICAgICAgdmFyIGN0eCA9IExGT0RvdENhbnZhcyA9PT0gbnVsbCB8fCBMRk9Eb3RDYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IExGT0RvdENhbnZhcy5nZXRDb250ZXh0KCcyZCcpOwogICAgICAgICAgICAgIGN0eC5jbGVhclJlY3QoMCwgMCwgZGF0YS53aWR0aCwgZGF0YS5oZWlnaHQpOwogICAgICAgICAgICAgIHZhciBsaW5lR2VuZXJhdG9yID0gZDMubGluZShmdW5jdGlvbihkKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB4U2NhbGUoZC54KTsKICAgICAgICAgICAgICB9LCBmdW5jdGlvbihkKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB5U2NhbGUoZC55KTsKICAgICAgICAgICAgICB9KS5jb250ZXh0KGN0eCkuY3VydmUoZDMuY3VydmVCYXNpcyk7CiAgICAgICAgICAgICAgY3R4LmJlZ2luUGF0aCgpOwogICAgICAgICAgICAgIGN0eC5saW5lV2lkdGggPSBsaW5lV2lkdGg7CiAgICAgICAgICAgICAgY3R4LnN0cm9rZVN0eWxlID0gJ3JnYigxOTgsIDQ1LCAyMjQpJzsKICAgICAgICAgICAgICBjdHgubGluZUNhcCA9ICdyb3VuZCc7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0NvbG9yID0gJ3JnYmEoMTg3LCAxMDQsIDIxNywgLjQpJzsKICAgICAgICAgICAgICBjdHguc2V0TGluZURhc2goW10pOwogICAgICAgICAgICAgIGN0eC5pbWFnZVNtb290aGluZ0VuYWJsZWQgPSBmYWxzZTsKICAgICAgICAgICAgICBjdHguc2hhZG93Qmx1ciA9IDU7CiAgICAgICAgICAgICAgbGluZUdlbmVyYXRvcih2aXNpYmxlV2F2ZWZvcm1zKTsKICAgICAgICAgICAgICBjdHguc3Ryb2tlKCk7CiAgICAgICAgICAgICAgdmFyIGxpbmVhckdyYWRpZW50ID0gY3R4LmNyZWF0ZUxpbmVhckdyYWRpZW50KDAsIDAsIDAsIGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS5oZWlnaHQpOwogICAgICAgICAgICAgIC8vIGxpbmVhckdyYWRpZW50LmFkZENvbG9yU3RvcCgwLCAncmdiYSgxNDcsIDQ2LCAxODQsIC4xNSknKTsKICAgICAgICAgICAgICBsaW5lYXJHcmFkaWVudC5hZGRDb2xvclN0b3AoMCwgJ3JnYmEoMTk4LCA0NSwgMjI0LCAuMDUpJyk7CiAgICAgICAgICAgICAgbGluZWFyR3JhZGllbnQuYWRkQ29sb3JTdG9wKDAuOCwgJ3JnYmEoMTk4LCA0NSwgMjI0LCAwKScpOwogICAgICAgICAgICAgIHZhciBhcmVhR2VuZXJhdG9yID0gZDMuYXJlYSgpLngoZnVuY3Rpb24oZCkgewogICAgICAgICAgICAgICAgICByZXR1cm4geFNjYWxlKGQueCk7CiAgICAgICAgICAgICAgfSkueTAoZnVuY3Rpb24oKSB7CiAgICAgICAgICAgICAgICAgIHJldHVybiB5U2NhbGUoLTEpOwogICAgICAgICAgICAgIH0pLnkxKGZ1bmN0aW9uKGQpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHlTY2FsZShkLnkpOwogICAgICAgICAgICAgIH0pLmNvbnRleHQoY3R4KTsKICAgICAgICAgICAgICBjdHguYmVnaW5QYXRoKCk7CiAgICAgICAgICAgICAgLy9AdHMtZXhwZWN0LWVycm9yCiAgICAgICAgICAgICAgYXJlYUdlbmVyYXRvcih2aXNpYmxlV2F2ZWZvcm1zKTsKICAgICAgICAgICAgICBjdHguZmlsbFN0eWxlID0gbGluZWFyR3JhZGllbnQ7CiAgICAgICAgICAgICAgY3R4LmZpbGwoKTsKICAgICAgICAgICAgICBMRk9Eb3RDYW52YXMgPT09IG51bGwgfHwgTEZPRG90Q2FudmFzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBMRk9Eb3RDYW52YXMuZ2V0Q29udGV4dCgnMmQnKS5kcmF3SW1hZ2UoTEZPRG90Q2FudmFzLCAwLCAwKTsKICAgICAgICAgICAgICB2YXIgYml0bWFwID0gTEZPRG90Q2FudmFzID09PSBudWxsIHx8IExGT0RvdENhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogTEZPRG90Q2FudmFzLnRyYW5zZmVyVG9JbWFnZUJpdG1hcCgpOwogICAgICAgICAgICAgIHNlbGYucG9zdE1lc3NhZ2UoYml0bWFwKTsKICAgICAgICAgIH0KICAgICAgfQogIH07Cgp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD13b3JrZXIuanMubWFwCgo=', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9');
|
|
7908
8052
|
/* eslint-enable */
|
|
7909
8053
|
|
|
7910
|
-
function _array_like_to_array$
|
|
8054
|
+
function _array_like_to_array$6(arr, len) {
|
|
7911
8055
|
if (len == null || len > arr.length) len = arr.length;
|
|
7912
8056
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7913
8057
|
return arr2;
|
|
7914
8058
|
}
|
|
7915
|
-
function _array_with_holes$
|
|
8059
|
+
function _array_with_holes$6(arr) {
|
|
7916
8060
|
if (Array.isArray(arr)) return arr;
|
|
7917
8061
|
}
|
|
7918
|
-
function _iterable_to_array_limit$
|
|
8062
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
7919
8063
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7920
8064
|
if (_i == null) return;
|
|
7921
8065
|
var _arr = [];
|
|
@@ -7939,30 +8083,30 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
7939
8083
|
}
|
|
7940
8084
|
return _arr;
|
|
7941
8085
|
}
|
|
7942
|
-
function _non_iterable_rest$
|
|
8086
|
+
function _non_iterable_rest$6() {
|
|
7943
8087
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7944
8088
|
}
|
|
7945
|
-
function _sliced_to_array$
|
|
7946
|
-
return _array_with_holes$
|
|
8089
|
+
function _sliced_to_array$6(arr, i) {
|
|
8090
|
+
return _array_with_holes$6(arr) || _iterable_to_array_limit$6(arr, i) || _unsupported_iterable_to_array$6(arr, i) || _non_iterable_rest$6();
|
|
7947
8091
|
}
|
|
7948
|
-
function _unsupported_iterable_to_array$
|
|
8092
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
7949
8093
|
if (!o) return;
|
|
7950
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8094
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
7951
8095
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7952
8096
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7953
8097
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7954
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8098
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
|
|
7955
8099
|
}
|
|
7956
8100
|
function LFOVisualizer(param) {
|
|
7957
8101
|
var id = param.id, _param_width = param.width, width = _param_width === void 0 ? 365 : _param_width, _param_height = param.height, height = _param_height === void 0 ? 160 : _param_height;
|
|
7958
8102
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
7959
|
-
var _useState = _sliced_to_array$
|
|
8103
|
+
var _useState = _sliced_to_array$6(useState(0), 2), syncTypeValue = _useState[0], setSyncTypeValue = _useState[1];
|
|
7960
8104
|
// TODO: Fix random
|
|
7961
8105
|
// const [randValue, setRandValue] = useState(0);
|
|
7962
|
-
var _useState1 = _sliced_to_array$
|
|
7963
|
-
var _useState2 = _sliced_to_array$
|
|
7964
|
-
var _useState3 = _sliced_to_array$
|
|
7965
|
-
var _useState4 = _sliced_to_array$
|
|
8106
|
+
var _useState1 = _sliced_to_array$6(useState(0), 2), hzModulatedValue = _useState1[0], setHzModulatedValue = _useState1[1];
|
|
8107
|
+
var _useState2 = _sliced_to_array$6(useState(0), 2), hzHiModulatedValue = _useState2[0], setHzHiModulatedValue = _useState2[1];
|
|
8108
|
+
var _useState3 = _sliced_to_array$6(useState(0), 2), syncLFOHzValue = _useState3[0], setSyncLFOHzValue = _useState3[1];
|
|
8109
|
+
var _useState4 = _sliced_to_array$6(useState(null), 2), waveType = _useState4[0], setWaveType = _useState4[1];
|
|
7966
8110
|
var workerRef = useRef(null);
|
|
7967
8111
|
var cycleRef = useRef([]);
|
|
7968
8112
|
var prevRampValue = useRef(null);
|
|
@@ -8175,15 +8319,15 @@ function LFOVisualizer(param) {
|
|
|
8175
8319
|
}))))));
|
|
8176
8320
|
}
|
|
8177
8321
|
|
|
8178
|
-
function _array_like_to_array$
|
|
8322
|
+
function _array_like_to_array$5(arr, len) {
|
|
8179
8323
|
if (len == null || len > arr.length) len = arr.length;
|
|
8180
8324
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8181
8325
|
return arr2;
|
|
8182
8326
|
}
|
|
8183
|
-
function _array_with_holes$
|
|
8327
|
+
function _array_with_holes$5(arr) {
|
|
8184
8328
|
if (Array.isArray(arr)) return arr;
|
|
8185
8329
|
}
|
|
8186
|
-
function _iterable_to_array_limit$
|
|
8330
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
8187
8331
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8188
8332
|
if (_i == null) return;
|
|
8189
8333
|
var _arr = [];
|
|
@@ -8207,23 +8351,23 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
8207
8351
|
}
|
|
8208
8352
|
return _arr;
|
|
8209
8353
|
}
|
|
8210
|
-
function _non_iterable_rest$
|
|
8354
|
+
function _non_iterable_rest$5() {
|
|
8211
8355
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8212
8356
|
}
|
|
8213
|
-
function _sliced_to_array$
|
|
8214
|
-
return _array_with_holes$
|
|
8357
|
+
function _sliced_to_array$5(arr, i) {
|
|
8358
|
+
return _array_with_holes$5(arr) || _iterable_to_array_limit$5(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$5();
|
|
8215
8359
|
}
|
|
8216
|
-
function _unsupported_iterable_to_array$
|
|
8360
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
8217
8361
|
if (!o) return;
|
|
8218
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8362
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
8219
8363
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8220
8364
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8221
8365
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8222
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8366
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
8223
8367
|
}
|
|
8224
8368
|
function LFOBox(param) {
|
|
8225
8369
|
var id = param.id;
|
|
8226
|
-
var _useState = _sliced_to_array$
|
|
8370
|
+
var _useState = _sliced_to_array$5(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
8227
8371
|
useEffect(function() {
|
|
8228
8372
|
var _Juce_getComboBoxState;
|
|
8229
8373
|
var syncType = (_Juce_getComboBoxState = Juce.getComboBoxState("LFO".concat(id, "_SyncType"))) === null || _Juce_getComboBoxState === void 0 ? void 0 : _Juce_getComboBoxState.getChoiceIndex();
|
|
@@ -8394,15 +8538,15 @@ function LFOTab() {
|
|
|
8394
8538
|
}));
|
|
8395
8539
|
}
|
|
8396
8540
|
|
|
8397
|
-
function _array_like_to_array$
|
|
8541
|
+
function _array_like_to_array$4(arr, len) {
|
|
8398
8542
|
if (len == null || len > arr.length) len = arr.length;
|
|
8399
8543
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8400
8544
|
return arr2;
|
|
8401
8545
|
}
|
|
8402
|
-
function _array_with_holes$
|
|
8546
|
+
function _array_with_holes$4(arr) {
|
|
8403
8547
|
if (Array.isArray(arr)) return arr;
|
|
8404
8548
|
}
|
|
8405
|
-
function _iterable_to_array_limit$
|
|
8549
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
8406
8550
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8407
8551
|
if (_i == null) return;
|
|
8408
8552
|
var _arr = [];
|
|
@@ -8426,24 +8570,24 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
8426
8570
|
}
|
|
8427
8571
|
return _arr;
|
|
8428
8572
|
}
|
|
8429
|
-
function _non_iterable_rest$
|
|
8573
|
+
function _non_iterable_rest$4() {
|
|
8430
8574
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8431
8575
|
}
|
|
8432
|
-
function _sliced_to_array$
|
|
8433
|
-
return _array_with_holes$
|
|
8576
|
+
function _sliced_to_array$4(arr, i) {
|
|
8577
|
+
return _array_with_holes$4(arr) || _iterable_to_array_limit$4(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$4();
|
|
8434
8578
|
}
|
|
8435
|
-
function _unsupported_iterable_to_array$
|
|
8579
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
8436
8580
|
if (!o) return;
|
|
8437
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8581
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
8438
8582
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8439
8583
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8440
8584
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8441
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8585
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
8442
8586
|
}
|
|
8443
8587
|
function StepSequencer(param) {
|
|
8444
|
-
var seqId = param.seqId, _param_numSteps = param.numSteps, numSteps = _param_numSteps === void 0 ? 16 : _param_numSteps;
|
|
8588
|
+
var seqId = param.seqId, randomizerObject = param.randomizerObject, resetterObject = param.resetterObject, _param_numSteps = param.numSteps, numSteps = _param_numSteps === void 0 ? 16 : _param_numSteps;
|
|
8445
8589
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
8446
|
-
var _useState = _sliced_to_array$
|
|
8590
|
+
var _useState = _sliced_to_array$4(useState(1), 2), currentSeqStep = _useState[0], setCurrentSeqStep = _useState[1];
|
|
8447
8591
|
var steps = new Array(numSteps).fill(0);
|
|
8448
8592
|
// const currentElementRef = useRef<string>(null);
|
|
8449
8593
|
// const isMouseDownRef = useRef<boolean>(false);
|
|
@@ -8522,23 +8666,38 @@ function StepSequencer(param) {
|
|
|
8522
8666
|
showInsetBoxShadow: false,
|
|
8523
8667
|
isStandalone: false,
|
|
8524
8668
|
orientation: Slider.orientation.vertical,
|
|
8669
|
+
isRandomizable: true,
|
|
8670
|
+
randomizerObject: randomizerObject,
|
|
8525
8671
|
trackBorderRadius: 0,
|
|
8526
8672
|
showLabel: false,
|
|
8527
8673
|
id: "seq".concat(seqId, "_step").concat(sliderNumber),
|
|
8528
|
-
isHighlighted: currentSeqStep === sliderNumber
|
|
8674
|
+
isHighlighted: currentSeqStep === sliderNumber,
|
|
8675
|
+
resetterObject: resetterObject
|
|
8529
8676
|
});
|
|
8530
8677
|
}));
|
|
8531
8678
|
}
|
|
8532
8679
|
|
|
8533
|
-
function
|
|
8680
|
+
function useReset() {
|
|
8681
|
+
var onFire = function() {
|
|
8682
|
+
var //@ts-expect-error
|
|
8683
|
+
_window___JUCE___backend, _window___JUCE__, _window;
|
|
8684
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.emitEvent('reset', {});
|
|
8685
|
+
};
|
|
8686
|
+
var observableObject = useObservable({
|
|
8687
|
+
onFire: onFire
|
|
8688
|
+
});
|
|
8689
|
+
return observableObject;
|
|
8690
|
+
}
|
|
8691
|
+
|
|
8692
|
+
function _array_like_to_array$3(arr, len) {
|
|
8534
8693
|
if (len == null || len > arr.length) len = arr.length;
|
|
8535
8694
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8536
8695
|
return arr2;
|
|
8537
8696
|
}
|
|
8538
|
-
function _array_with_holes$
|
|
8697
|
+
function _array_with_holes$3(arr) {
|
|
8539
8698
|
if (Array.isArray(arr)) return arr;
|
|
8540
8699
|
}
|
|
8541
|
-
function _iterable_to_array_limit$
|
|
8700
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
8542
8701
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8543
8702
|
if (_i == null) return;
|
|
8544
8703
|
var _arr = [];
|
|
@@ -8562,24 +8721,24 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
8562
8721
|
}
|
|
8563
8722
|
return _arr;
|
|
8564
8723
|
}
|
|
8565
|
-
function _non_iterable_rest$
|
|
8724
|
+
function _non_iterable_rest$3() {
|
|
8566
8725
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8567
8726
|
}
|
|
8568
|
-
function _sliced_to_array$
|
|
8569
|
-
return _array_with_holes$
|
|
8727
|
+
function _sliced_to_array$3(arr, i) {
|
|
8728
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
|
|
8570
8729
|
}
|
|
8571
|
-
function _unsupported_iterable_to_array$
|
|
8730
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
8572
8731
|
if (!o) return;
|
|
8573
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8732
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
8574
8733
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8575
8734
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8576
8735
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8577
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
8736
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
8578
8737
|
}
|
|
8579
8738
|
// import IndicatorLight from '../../core/Indicators/IndicatorLight';
|
|
8580
8739
|
function SeqTab$1(param) {
|
|
8581
8740
|
var seqId = param.seqId;
|
|
8582
|
-
var _useState = _sliced_to_array$
|
|
8741
|
+
var _useState = _sliced_to_array$3(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
8583
8742
|
useEffect(function() {
|
|
8584
8743
|
var _Juce_getSliderState;
|
|
8585
8744
|
var syncType = (_Juce_getSliderState = Juce.getSliderState("seq".concat(seqId, "_syncType"))) === null || _Juce_getSliderState === void 0 ? void 0 : _Juce_getSliderState.scaledValue;
|
|
@@ -8590,7 +8749,9 @@ function SeqTab$1(param) {
|
|
|
8590
8749
|
var handleSyncTypeChange = function(value) {
|
|
8591
8750
|
setSyncType(value);
|
|
8592
8751
|
};
|
|
8593
|
-
var
|
|
8752
|
+
var sequencerRandomizableObject = useRandom();
|
|
8753
|
+
var sequencerResetterObject = useReset();
|
|
8754
|
+
var sliderWidth = '75px';
|
|
8594
8755
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
8595
8756
|
flexDirection: Box.flexDirection.column,
|
|
8596
8757
|
gap: Box.gap.medium,
|
|
@@ -8620,7 +8781,9 @@ function SeqTab$1(param) {
|
|
|
8620
8781
|
flex: "0 0 170px",
|
|
8621
8782
|
height: "170px"
|
|
8622
8783
|
}, /*#__PURE__*/ React__default.createElement(StepSequencer, {
|
|
8623
|
-
seqId: seqId
|
|
8784
|
+
seqId: seqId,
|
|
8785
|
+
randomizerObject: sequencerRandomizableObject,
|
|
8786
|
+
resetterObject: sequencerResetterObject
|
|
8624
8787
|
})), /*#__PURE__*/ React__default.createElement(Box, {
|
|
8625
8788
|
height: "71px",
|
|
8626
8789
|
gap: Box.gap.medium,
|
|
@@ -8628,23 +8791,26 @@ function SeqTab$1(param) {
|
|
|
8628
8791
|
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
8629
8792
|
justifyContent: Box.justifyContent.flexStart,
|
|
8630
8793
|
width: "218px",
|
|
8631
|
-
borderWidth
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8794
|
+
// borderWidth={['0px', '1px', '0px', '0px']}
|
|
8795
|
+
dividerRight: true,
|
|
8796
|
+
padding: [
|
|
8797
|
+
Box.padding.none,
|
|
8798
|
+
Box.padding.xLarge,
|
|
8799
|
+
Box.padding.none,
|
|
8800
|
+
Box.padding.none
|
|
8636
8801
|
]
|
|
8637
8802
|
}, /*#__PURE__*/ React__default.createElement(Combobox, {
|
|
8638
8803
|
id: "seq".concat(seqId, "_syncType"),
|
|
8639
8804
|
onChange: handleSyncTypeChange,
|
|
8640
8805
|
width: 175
|
|
8641
8806
|
})), /*#__PURE__*/ React__default.createElement(Box, {
|
|
8642
|
-
padding
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
]
|
|
8807
|
+
// padding={[
|
|
8808
|
+
// Box.padding.none,
|
|
8809
|
+
// Box.padding.none,
|
|
8810
|
+
// Box.padding.none,
|
|
8811
|
+
// Box.padding.mediumLarge,
|
|
8812
|
+
// ]}
|
|
8813
|
+
dividerRight: true,
|
|
8648
8814
|
width: Box.width.auto
|
|
8649
8815
|
}, syncType === 0 ? /*#__PURE__*/ React__default.createElement(Slider, {
|
|
8650
8816
|
id: "seq".concat(seqId, "_hertz"),
|
|
@@ -8712,6 +8878,47 @@ function SeqTab$1(param) {
|
|
|
8712
8878
|
handleStrokeColor: "var(--color-brand)",
|
|
8713
8879
|
trackColor: "var(--color-brand-900)",
|
|
8714
8880
|
handleShape: Slider.handleShape.rectangle
|
|
8881
|
+
})), /*#__PURE__*/ React__default.createElement(Box, {
|
|
8882
|
+
justifyContent: Box.justifyContent.spaceEvenly,
|
|
8883
|
+
padding: [
|
|
8884
|
+
Box.padding.none,
|
|
8885
|
+
Box.padding.none,
|
|
8886
|
+
Box.padding.none,
|
|
8887
|
+
Box.padding.mediumLarge
|
|
8888
|
+
]
|
|
8889
|
+
}, /*#__PURE__*/ React__default.createElement(IconButton, {
|
|
8890
|
+
icon: IconButton.icon.random,
|
|
8891
|
+
// width={Button.width.full}
|
|
8892
|
+
id: "randomize",
|
|
8893
|
+
label: "Randomize",
|
|
8894
|
+
iconColor: 'var(--color-brand)',
|
|
8895
|
+
highlightIconColor: 'var(--color-brand-400)',
|
|
8896
|
+
onClick: function() {
|
|
8897
|
+
return sequencerRandomizableObject === null || sequencerRandomizableObject === void 0 ? void 0 : sequencerRandomizableObject.fire();
|
|
8898
|
+
},
|
|
8899
|
+
padding: [
|
|
8900
|
+
IconButton.padding.none,
|
|
8901
|
+
IconButton.padding.mediumSmall,
|
|
8902
|
+
IconButton.padding.none,
|
|
8903
|
+
IconButton.padding.none
|
|
8904
|
+
]
|
|
8905
|
+
}), /*#__PURE__*/ React__default.createElement(Button, {
|
|
8906
|
+
id: "Clear",
|
|
8907
|
+
text: "Clear",
|
|
8908
|
+
// margin={[
|
|
8909
|
+
// IconButton.margin.none,
|
|
8910
|
+
// IconButton.margin.none,
|
|
8911
|
+
// IconButton.margin.none,
|
|
8912
|
+
// IconButton.margin.large,
|
|
8913
|
+
// ]}
|
|
8914
|
+
width: Button.width.auto,
|
|
8915
|
+
padding: [
|
|
8916
|
+
Button.padding.none,
|
|
8917
|
+
Button.padding.large
|
|
8918
|
+
],
|
|
8919
|
+
onClick: function() {
|
|
8920
|
+
return sequencerResetterObject === null || sequencerResetterObject === void 0 ? void 0 : sequencerResetterObject.fire();
|
|
8921
|
+
}
|
|
8715
8922
|
})))));
|
|
8716
8923
|
}
|
|
8717
8924
|
|
|
@@ -8898,6 +9105,71 @@ function VUMeter(param) {
|
|
|
8898
9105
|
})))));
|
|
8899
9106
|
}
|
|
8900
9107
|
|
|
9108
|
+
function _array_like_to_array$2(arr, len) {
|
|
9109
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
9110
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
9111
|
+
return arr2;
|
|
9112
|
+
}
|
|
9113
|
+
function _array_with_holes$2(arr) {
|
|
9114
|
+
if (Array.isArray(arr)) return arr;
|
|
9115
|
+
}
|
|
9116
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
9117
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9118
|
+
if (_i == null) return;
|
|
9119
|
+
var _arr = [];
|
|
9120
|
+
var _n = true;
|
|
9121
|
+
var _d = false;
|
|
9122
|
+
var _s, _e;
|
|
9123
|
+
try {
|
|
9124
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
9125
|
+
_arr.push(_s.value);
|
|
9126
|
+
if (i && _arr.length === i) break;
|
|
9127
|
+
}
|
|
9128
|
+
} catch (err) {
|
|
9129
|
+
_d = true;
|
|
9130
|
+
_e = err;
|
|
9131
|
+
} finally{
|
|
9132
|
+
try {
|
|
9133
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
9134
|
+
} finally{
|
|
9135
|
+
if (_d) throw _e;
|
|
9136
|
+
}
|
|
9137
|
+
}
|
|
9138
|
+
return _arr;
|
|
9139
|
+
}
|
|
9140
|
+
function _non_iterable_rest$2() {
|
|
9141
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9142
|
+
}
|
|
9143
|
+
function _sliced_to_array$2(arr, i) {
|
|
9144
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
9145
|
+
}
|
|
9146
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
9147
|
+
if (!o) return;
|
|
9148
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
9149
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9150
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9151
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
9152
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
9153
|
+
}
|
|
9154
|
+
var FreqOut = function() {
|
|
9155
|
+
var _useState = _sliced_to_array$2(useState(), 2), freqOut = _useState[0], setFreqOut = _useState[1];
|
|
9156
|
+
useEffect(function() {
|
|
9157
|
+
var _window___JUCE___backend, _window___JUCE__, _window;
|
|
9158
|
+
//@ts-expect-error
|
|
9159
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window___JUCE__ = _window.__JUCE__) === null || _window___JUCE__ === void 0 ? void 0 : (_window___JUCE___backend = _window___JUCE__.backend) === null || _window___JUCE___backend === void 0 ? void 0 : _window___JUCE___backend.addEventListener("freqOut", function(event) {
|
|
9160
|
+
setFreqOut(event);
|
|
9161
|
+
});
|
|
9162
|
+
}, []);
|
|
9163
|
+
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
9164
|
+
width: "100px",
|
|
9165
|
+
flexDirection: Box.flexDirection.column
|
|
9166
|
+
}, /*#__PURE__*/ React__default.createElement(Label, {
|
|
9167
|
+
value: "Freq Out",
|
|
9168
|
+
fontSize: Heading.fontSize.xSmall
|
|
9169
|
+
}), /*#__PURE__*/ React__default.createElement(Label, {
|
|
9170
|
+
value: freqOut
|
|
9171
|
+
}));
|
|
9172
|
+
};
|
|
8901
9173
|
function InputModTab$1() {
|
|
8902
9174
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
8903
9175
|
className: "InputModTab",
|
|
@@ -8946,7 +9218,8 @@ function InputModTab$1() {
|
|
|
8946
9218
|
size: Slider.size.large
|
|
8947
9219
|
}), /*#__PURE__*/ React__default.createElement(Toggle, {
|
|
8948
9220
|
id: "inputSource",
|
|
8949
|
-
|
|
9221
|
+
width: Toggle.width.large,
|
|
9222
|
+
height: Toggle.height.large
|
|
8950
9223
|
}), /*#__PURE__*/ React__default.createElement(Combobox, {
|
|
8951
9224
|
id: "inputLRM"
|
|
8952
9225
|
}))), /*#__PURE__*/ React__default.createElement(Box, {
|
|
@@ -9072,7 +9345,7 @@ function InputModTab$1() {
|
|
|
9072
9345
|
color: "var(--color-brand)"
|
|
9073
9346
|
}, "Output")), /*#__PURE__*/ React__default.createElement(Box, {
|
|
9074
9347
|
flex: '3'
|
|
9075
|
-
}, /*#__PURE__*/ React__default.createElement(VUMeter, {
|
|
9348
|
+
}, /*#__PURE__*/ React__default.createElement(FreqOut, null), /*#__PURE__*/ React__default.createElement(VUMeter, {
|
|
9076
9349
|
width: 50,
|
|
9077
9350
|
height: 125,
|
|
9078
9351
|
id: "VUMeter"
|