@antimatter-audio/antimatter-ui 16.0.0 → 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/index.js
CHANGED
|
@@ -157,13 +157,13 @@ var StrokeStyle = /*#__PURE__*/ function(StrokeStyle) {
|
|
|
157
157
|
return StrokeStyle;
|
|
158
158
|
}({});
|
|
159
159
|
|
|
160
|
-
function _array_like_to_array$
|
|
160
|
+
function _array_like_to_array$n(arr, len) {
|
|
161
161
|
if (len == null || len > arr.length) len = arr.length;
|
|
162
162
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
163
163
|
return arr2;
|
|
164
164
|
}
|
|
165
165
|
function _array_without_holes$3(arr) {
|
|
166
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
166
|
+
if (Array.isArray(arr)) return _array_like_to_array$n(arr);
|
|
167
167
|
}
|
|
168
168
|
function _iterable_to_array$3(iter) {
|
|
169
169
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
@@ -172,15 +172,15 @@ function _non_iterable_spread$3() {
|
|
|
172
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.");
|
|
173
173
|
}
|
|
174
174
|
function _to_consumable_array$3(arr) {
|
|
175
|
-
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();
|
|
176
176
|
}
|
|
177
|
-
function _unsupported_iterable_to_array$
|
|
177
|
+
function _unsupported_iterable_to_array$n(o, minLen) {
|
|
178
178
|
if (!o) return;
|
|
179
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
179
|
+
if (typeof o === "string") return _array_like_to_array$n(o, minLen);
|
|
180
180
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
181
181
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
182
182
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
183
|
-
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);
|
|
184
184
|
}
|
|
185
185
|
// export const roundUpToTwoDecimals = (val: number) => Math.ceil(val * 100) / 100;
|
|
186
186
|
// mocks the `normalisedToScaledValue` internal method from JUCE
|
|
@@ -376,16 +376,16 @@ var getBorderValue = function(borderArray, borderDirection, returnNumericValue)
|
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
function _array_like_to_array$
|
|
379
|
+
function _array_like_to_array$m(arr, len) {
|
|
380
380
|
if (len == null || len > arr.length) len = arr.length;
|
|
381
381
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
382
382
|
return arr2;
|
|
383
383
|
}
|
|
384
|
-
function _array_with_holes$
|
|
384
|
+
function _array_with_holes$l(arr) {
|
|
385
385
|
if (Array.isArray(arr)) return arr;
|
|
386
386
|
}
|
|
387
387
|
function _array_without_holes$2(arr) {
|
|
388
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
388
|
+
if (Array.isArray(arr)) return _array_like_to_array$m(arr);
|
|
389
389
|
}
|
|
390
390
|
function _define_property$r(obj, key, value) {
|
|
391
391
|
if (key in obj) {
|
|
@@ -403,7 +403,7 @@ function _define_property$r(obj, key, value) {
|
|
|
403
403
|
function _iterable_to_array$2(iter) {
|
|
404
404
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
405
405
|
}
|
|
406
|
-
function _iterable_to_array_limit$
|
|
406
|
+
function _iterable_to_array_limit$l(arr, i) {
|
|
407
407
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
408
408
|
if (_i == null) return;
|
|
409
409
|
var _arr = [];
|
|
@@ -427,7 +427,7 @@ function _iterable_to_array_limit$k(arr, i) {
|
|
|
427
427
|
}
|
|
428
428
|
return _arr;
|
|
429
429
|
}
|
|
430
|
-
function _non_iterable_rest$
|
|
430
|
+
function _non_iterable_rest$l() {
|
|
431
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.");
|
|
432
432
|
}
|
|
433
433
|
function _non_iterable_spread$2() {
|
|
@@ -494,19 +494,19 @@ function _object_without_properties_loose$2(source, excluded) {
|
|
|
494
494
|
}
|
|
495
495
|
return target;
|
|
496
496
|
}
|
|
497
|
-
function _sliced_to_array$
|
|
498
|
-
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();
|
|
499
499
|
}
|
|
500
500
|
function _to_consumable_array$2(arr) {
|
|
501
|
-
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();
|
|
502
502
|
}
|
|
503
|
-
function _unsupported_iterable_to_array$
|
|
503
|
+
function _unsupported_iterable_to_array$m(o, minLen) {
|
|
504
504
|
if (!o) return;
|
|
505
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
505
|
+
if (typeof o === "string") return _array_like_to_array$m(o, minLen);
|
|
506
506
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
507
507
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
508
508
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
509
|
-
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);
|
|
510
510
|
}
|
|
511
511
|
//This component is a hack to create beveled edges on an element.
|
|
512
512
|
//This will be obsolete if/when Juce's browser supports
|
|
@@ -582,7 +582,7 @@ function BevelContainer(param) {
|
|
|
582
582
|
}));
|
|
583
583
|
if (hasBevel) {
|
|
584
584
|
var _React_Children, _firstChild_props, _firstChild_props1, _firstChild_props2, _firstChild_props3;
|
|
585
|
-
var _useState = _sliced_to_array$
|
|
585
|
+
var _useState = _sliced_to_array$l(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
586
586
|
var childrenOfContainer = (_React_Children = React__default.Children) === null || _React_Children === void 0 ? void 0 : _React_Children.toArray(children);
|
|
587
587
|
var firstChild = (childrenOfContainer === null || childrenOfContainer === void 0 ? void 0 : childrenOfContainer[0]) || [];
|
|
588
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 : [
|
|
@@ -647,12 +647,12 @@ var buttonHeightMap = {
|
|
|
647
647
|
full: '100%'
|
|
648
648
|
};
|
|
649
649
|
|
|
650
|
-
function _array_like_to_array$
|
|
650
|
+
function _array_like_to_array$l(arr, len) {
|
|
651
651
|
if (len == null || len > arr.length) len = arr.length;
|
|
652
652
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
653
653
|
return arr2;
|
|
654
654
|
}
|
|
655
|
-
function _array_with_holes$
|
|
655
|
+
function _array_with_holes$k(arr) {
|
|
656
656
|
if (Array.isArray(arr)) return arr;
|
|
657
657
|
}
|
|
658
658
|
function _define_property$q(obj, key, value) {
|
|
@@ -668,7 +668,7 @@ function _define_property$q(obj, key, value) {
|
|
|
668
668
|
}
|
|
669
669
|
return obj;
|
|
670
670
|
}
|
|
671
|
-
function _iterable_to_array_limit$
|
|
671
|
+
function _iterable_to_array_limit$k(arr, i) {
|
|
672
672
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
673
673
|
if (_i == null) return;
|
|
674
674
|
var _arr = [];
|
|
@@ -692,7 +692,7 @@ function _iterable_to_array_limit$j(arr, i) {
|
|
|
692
692
|
}
|
|
693
693
|
return _arr;
|
|
694
694
|
}
|
|
695
|
-
function _non_iterable_rest$
|
|
695
|
+
function _non_iterable_rest$k() {
|
|
696
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.");
|
|
697
697
|
}
|
|
698
698
|
function _object_spread$o(target) {
|
|
@@ -737,16 +737,16 @@ function _object_without_properties_loose$1(source, excluded) {
|
|
|
737
737
|
}
|
|
738
738
|
return target;
|
|
739
739
|
}
|
|
740
|
-
function _sliced_to_array$
|
|
741
|
-
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();
|
|
742
742
|
}
|
|
743
|
-
function _unsupported_iterable_to_array$
|
|
743
|
+
function _unsupported_iterable_to_array$l(o, minLen) {
|
|
744
744
|
if (!o) return;
|
|
745
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
745
|
+
if (typeof o === "string") return _array_like_to_array$l(o, minLen);
|
|
746
746
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
747
747
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
748
748
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
749
|
-
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);
|
|
750
750
|
}
|
|
751
751
|
function Button(_param) {
|
|
752
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 ? [
|
|
@@ -782,13 +782,13 @@ function Button(_param) {
|
|
|
782
782
|
"width",
|
|
783
783
|
"height"
|
|
784
784
|
]);
|
|
785
|
-
var _React_useState = _sliced_to_array$
|
|
785
|
+
var _React_useState = _sliced_to_array$k(React__default.useState(false), 2), isSelected = _React_useState[0], setIsSelected = _React_useState[1];
|
|
786
786
|
var buttonState = Juce.getToggleState(id);
|
|
787
787
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
788
788
|
var hasBevel = !!cornerBevel.find(function(item) {
|
|
789
789
|
return item > 0;
|
|
790
790
|
});
|
|
791
|
-
var _useState = _sliced_to_array$
|
|
791
|
+
var _useState = _sliced_to_array$k(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
792
792
|
// const { updateModSlotRowTarget } = useGlobalContext();
|
|
793
793
|
var widthValue = (buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width]) ? buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width] : width;
|
|
794
794
|
var heightValue = (buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height]) ? buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height] : height;
|
|
@@ -1567,17 +1567,17 @@ function Label(param) {
|
|
|
1567
1567
|
color: color
|
|
1568
1568
|
}, style),
|
|
1569
1569
|
className: classnames('Label', 'select-none', className)
|
|
1570
|
-
}, value ? value : children);
|
|
1570
|
+
}, value !== null && value !== undefined ? value : children);
|
|
1571
1571
|
}
|
|
1572
1572
|
Label.padding = Spacing;
|
|
1573
1573
|
Label.fontSize = FontSizes;
|
|
1574
1574
|
|
|
1575
|
-
function _array_like_to_array$
|
|
1575
|
+
function _array_like_to_array$k(arr, len) {
|
|
1576
1576
|
if (len == null || len > arr.length) len = arr.length;
|
|
1577
1577
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1578
1578
|
return arr2;
|
|
1579
1579
|
}
|
|
1580
|
-
function _array_with_holes$
|
|
1580
|
+
function _array_with_holes$j(arr) {
|
|
1581
1581
|
if (Array.isArray(arr)) return arr;
|
|
1582
1582
|
}
|
|
1583
1583
|
function _define_property$m(obj, key, value) {
|
|
@@ -1593,7 +1593,7 @@ function _define_property$m(obj, key, value) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
return obj;
|
|
1595
1595
|
}
|
|
1596
|
-
function _iterable_to_array_limit$
|
|
1596
|
+
function _iterable_to_array_limit$j(arr, i) {
|
|
1597
1597
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1598
1598
|
if (_i == null) return;
|
|
1599
1599
|
var _arr = [];
|
|
@@ -1617,7 +1617,7 @@ function _iterable_to_array_limit$i(arr, i) {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
return _arr;
|
|
1619
1619
|
}
|
|
1620
|
-
function _non_iterable_rest$
|
|
1620
|
+
function _non_iterable_rest$j() {
|
|
1621
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
1622
|
}
|
|
1623
1623
|
function _object_spread$k(target) {
|
|
@@ -1635,16 +1635,16 @@ function _object_spread$k(target) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
return target;
|
|
1637
1637
|
}
|
|
1638
|
-
function _sliced_to_array$
|
|
1639
|
-
return _array_with_holes$
|
|
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
1640
|
}
|
|
1641
|
-
function _unsupported_iterable_to_array$
|
|
1641
|
+
function _unsupported_iterable_to_array$k(o, minLen) {
|
|
1642
1642
|
if (!o) return;
|
|
1643
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1643
|
+
if (typeof o === "string") return _array_like_to_array$k(o, minLen);
|
|
1644
1644
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1645
1645
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1646
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$
|
|
1647
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$k(o, minLen);
|
|
1648
1648
|
}
|
|
1649
1649
|
function IconButton(param) {
|
|
1650
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)',
|
|
@@ -1658,7 +1658,7 @@ function IconButton(param) {
|
|
|
1658
1658
|
var numberWidth = parseInt(((_width_match = width.match(/\d/g)) !== null && _width_match !== void 0 ? _width_match : []).join(''), 10);
|
|
1659
1659
|
var _iconWidth_match;
|
|
1660
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$
|
|
1661
|
+
var _useState = _sliced_to_array$j(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
1662
1662
|
return /*#__PURE__*/ React__default.createElement(Button, {
|
|
1663
1663
|
id: id,
|
|
1664
1664
|
className: "IconButton ".concat(className ? className : ''),
|
|
@@ -1694,15 +1694,15 @@ IconButton.icon = Icons;
|
|
|
1694
1694
|
IconButton.padding = Spacing;
|
|
1695
1695
|
IconButton.margin = Spacing;
|
|
1696
1696
|
|
|
1697
|
-
function _array_like_to_array$
|
|
1697
|
+
function _array_like_to_array$j(arr, len) {
|
|
1698
1698
|
if (len == null || len > arr.length) len = arr.length;
|
|
1699
1699
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1700
1700
|
return arr2;
|
|
1701
1701
|
}
|
|
1702
|
-
function _array_with_holes$
|
|
1702
|
+
function _array_with_holes$i(arr) {
|
|
1703
1703
|
if (Array.isArray(arr)) return arr;
|
|
1704
1704
|
}
|
|
1705
|
-
function _iterable_to_array_limit$
|
|
1705
|
+
function _iterable_to_array_limit$i(arr, i) {
|
|
1706
1706
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
1707
1707
|
if (_i == null) return;
|
|
1708
1708
|
var _arr = [];
|
|
@@ -1726,19 +1726,19 @@ function _iterable_to_array_limit$h(arr, i) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
return _arr;
|
|
1728
1728
|
}
|
|
1729
|
-
function _non_iterable_rest$
|
|
1729
|
+
function _non_iterable_rest$i() {
|
|
1730
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.");
|
|
1731
1731
|
}
|
|
1732
|
-
function _sliced_to_array$
|
|
1733
|
-
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();
|
|
1734
1734
|
}
|
|
1735
|
-
function _unsupported_iterable_to_array$
|
|
1735
|
+
function _unsupported_iterable_to_array$j(o, minLen) {
|
|
1736
1736
|
if (!o) return;
|
|
1737
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
1737
|
+
if (typeof o === "string") return _array_like_to_array$j(o, minLen);
|
|
1738
1738
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1739
1739
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1740
1740
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
1741
|
-
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);
|
|
1742
1742
|
}
|
|
1743
1743
|
function Tabs(param) {
|
|
1744
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 ? [
|
|
@@ -1756,9 +1756,9 @@ function Tabs(param) {
|
|
|
1756
1756
|
0,
|
|
1757
1757
|
0
|
|
1758
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;
|
|
1759
|
-
var _useState = _sliced_to_array$
|
|
1760
|
-
var _useState1 = _sliced_to_array$
|
|
1761
|
-
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];
|
|
1762
1762
|
var hasTabBevel = !!tabCornerBevel.find(function(item) {
|
|
1763
1763
|
return item > 0;
|
|
1764
1764
|
});
|
|
@@ -1948,16 +1948,16 @@ function useRandom() {
|
|
|
1948
1948
|
return observableObject;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
function _array_like_to_array$
|
|
1951
|
+
function _array_like_to_array$i(arr, len) {
|
|
1952
1952
|
if (len == null || len > arr.length) len = arr.length;
|
|
1953
1953
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
1954
1954
|
return arr2;
|
|
1955
1955
|
}
|
|
1956
|
-
function _array_with_holes$
|
|
1956
|
+
function _array_with_holes$h(arr) {
|
|
1957
1957
|
if (Array.isArray(arr)) return arr;
|
|
1958
1958
|
}
|
|
1959
1959
|
function _array_without_holes$1(arr) {
|
|
1960
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
1960
|
+
if (Array.isArray(arr)) return _array_like_to_array$i(arr);
|
|
1961
1961
|
}
|
|
1962
1962
|
function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1963
1963
|
try {
|
|
@@ -2004,7 +2004,7 @@ function _define_property$l(obj, key, value) {
|
|
|
2004
2004
|
function _iterable_to_array$1(iter) {
|
|
2005
2005
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2006
2006
|
}
|
|
2007
|
-
function _iterable_to_array_limit$
|
|
2007
|
+
function _iterable_to_array_limit$h(arr, i) {
|
|
2008
2008
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2009
2009
|
if (_i == null) return;
|
|
2010
2010
|
var _arr = [];
|
|
@@ -2028,7 +2028,7 @@ function _iterable_to_array_limit$g(arr, i) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return _arr;
|
|
2030
2030
|
}
|
|
2031
|
-
function _non_iterable_rest$
|
|
2031
|
+
function _non_iterable_rest$h() {
|
|
2032
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.");
|
|
2033
2033
|
}
|
|
2034
2034
|
function _non_iterable_spread$1() {
|
|
@@ -2068,19 +2068,19 @@ function _object_spread_props$2(target, source) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
return target;
|
|
2070
2070
|
}
|
|
2071
|
-
function _sliced_to_array$
|
|
2072
|
-
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();
|
|
2073
2073
|
}
|
|
2074
2074
|
function _to_consumable_array$1(arr) {
|
|
2075
|
-
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();
|
|
2076
2076
|
}
|
|
2077
|
-
function _unsupported_iterable_to_array$
|
|
2077
|
+
function _unsupported_iterable_to_array$i(o, minLen) {
|
|
2078
2078
|
if (!o) return;
|
|
2079
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2079
|
+
if (typeof o === "string") return _array_like_to_array$i(o, minLen);
|
|
2080
2080
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2081
2081
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2082
2082
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2083
|
-
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);
|
|
2084
2084
|
}
|
|
2085
2085
|
function _ts_generator$4(thisArg, body) {
|
|
2086
2086
|
var f, y, t, _ = {
|
|
@@ -2313,7 +2313,7 @@ function useGlobalContext(selector) {
|
|
|
2313
2313
|
// Context provider
|
|
2314
2314
|
function GlobalContextProvider(param) {
|
|
2315
2315
|
var children = param.children;
|
|
2316
|
-
var _useReducer = _sliced_to_array$
|
|
2316
|
+
var _useReducer = _sliced_to_array$h(useReducer(reducer, defaultGlobalStateValue), 2), state = _useReducer[0], dispatch = _useReducer[1];
|
|
2317
2317
|
var highlightedItemChanged = useCallback(function(highlightedItem) {
|
|
2318
2318
|
dispatch({
|
|
2319
2319
|
type: 'HIGHLIGHTED_ITEM_CHANGED',
|
|
@@ -2610,15 +2610,15 @@ function GlobalContextProvider(param) {
|
|
|
2610
2610
|
}, children);
|
|
2611
2611
|
}
|
|
2612
2612
|
|
|
2613
|
-
function _array_like_to_array$
|
|
2613
|
+
function _array_like_to_array$h(arr, len) {
|
|
2614
2614
|
if (len == null || len > arr.length) len = arr.length;
|
|
2615
2615
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2616
2616
|
return arr2;
|
|
2617
2617
|
}
|
|
2618
|
-
function _array_with_holes$
|
|
2618
|
+
function _array_with_holes$g(arr) {
|
|
2619
2619
|
if (Array.isArray(arr)) return arr;
|
|
2620
2620
|
}
|
|
2621
|
-
function _iterable_to_array_limit$
|
|
2621
|
+
function _iterable_to_array_limit$g(arr, i) {
|
|
2622
2622
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2623
2623
|
if (_i == null) return;
|
|
2624
2624
|
var _arr = [];
|
|
@@ -2642,26 +2642,26 @@ function _iterable_to_array_limit$f(arr, i) {
|
|
|
2642
2642
|
}
|
|
2643
2643
|
return _arr;
|
|
2644
2644
|
}
|
|
2645
|
-
function _non_iterable_rest$
|
|
2645
|
+
function _non_iterable_rest$g() {
|
|
2646
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.");
|
|
2647
2647
|
}
|
|
2648
|
-
function _sliced_to_array$
|
|
2649
|
-
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();
|
|
2650
2650
|
}
|
|
2651
|
-
function _unsupported_iterable_to_array$
|
|
2651
|
+
function _unsupported_iterable_to_array$h(o, minLen) {
|
|
2652
2652
|
if (!o) return;
|
|
2653
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2653
|
+
if (typeof o === "string") return _array_like_to_array$h(o, minLen);
|
|
2654
2654
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2655
2655
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2656
2656
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2657
|
-
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);
|
|
2658
2658
|
}
|
|
2659
2659
|
var useCombobox = function(param) {
|
|
2660
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;
|
|
2661
2661
|
var _properties_choices;
|
|
2662
2662
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
2663
|
-
var _useState = _sliced_to_array$
|
|
2664
|
-
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];
|
|
2665
2665
|
var prevIndex = useRef(null);
|
|
2666
2666
|
var nextIndex = useRef(null);
|
|
2667
2667
|
var prevDragDirection = useRef(null);
|
|
@@ -2844,12 +2844,12 @@ var useCombobox = function(param) {
|
|
|
2844
2844
|
};
|
|
2845
2845
|
};
|
|
2846
2846
|
|
|
2847
|
-
function _array_like_to_array$
|
|
2847
|
+
function _array_like_to_array$g(arr, len) {
|
|
2848
2848
|
if (len == null || len > arr.length) len = arr.length;
|
|
2849
2849
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2850
2850
|
return arr2;
|
|
2851
2851
|
}
|
|
2852
|
-
function _array_with_holes$
|
|
2852
|
+
function _array_with_holes$f(arr) {
|
|
2853
2853
|
if (Array.isArray(arr)) return arr;
|
|
2854
2854
|
}
|
|
2855
2855
|
function _define_property$k(obj, key, value) {
|
|
@@ -2865,7 +2865,7 @@ function _define_property$k(obj, key, value) {
|
|
|
2865
2865
|
}
|
|
2866
2866
|
return obj;
|
|
2867
2867
|
}
|
|
2868
|
-
function _iterable_to_array_limit$
|
|
2868
|
+
function _iterable_to_array_limit$f(arr, i) {
|
|
2869
2869
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2870
2870
|
if (_i == null) return;
|
|
2871
2871
|
var _arr = [];
|
|
@@ -2889,7 +2889,7 @@ function _iterable_to_array_limit$e(arr, i) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
return _arr;
|
|
2891
2891
|
}
|
|
2892
|
-
function _non_iterable_rest$
|
|
2892
|
+
function _non_iterable_rest$f() {
|
|
2893
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.");
|
|
2894
2894
|
}
|
|
2895
2895
|
function _object_spread$i(target) {
|
|
@@ -2907,16 +2907,16 @@ function _object_spread$i(target) {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
return target;
|
|
2909
2909
|
}
|
|
2910
|
-
function _sliced_to_array$
|
|
2911
|
-
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();
|
|
2912
2912
|
}
|
|
2913
|
-
function _unsupported_iterable_to_array$
|
|
2913
|
+
function _unsupported_iterable_to_array$g(o, minLen) {
|
|
2914
2914
|
if (!o) return;
|
|
2915
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
2915
|
+
if (typeof o === "string") return _array_like_to_array$g(o, minLen);
|
|
2916
2916
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2917
2917
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2918
2918
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2919
|
-
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);
|
|
2920
2920
|
}
|
|
2921
2921
|
function ComboboxComponent(param) {
|
|
2922
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 ? [
|
|
@@ -2925,10 +2925,10 @@ function ComboboxComponent(param) {
|
|
|
2925
2925
|
0,
|
|
2926
2926
|
0
|
|
2927
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;
|
|
2928
|
-
var _useState = _sliced_to_array$
|
|
2928
|
+
var _useState = _sliced_to_array$f(useState(''), 2), includeFilterString = _useState[0], setIncludeFilterString = _useState[1];
|
|
2929
2929
|
var listItemsPerPage = 5;
|
|
2930
|
-
var _useState1 = _sliced_to_array$
|
|
2931
|
-
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];
|
|
2932
2932
|
var _useGlobalContext = useGlobalContext(), modSlotTargets = _useGlobalContext.globalState.modSlotTargets;
|
|
2933
2933
|
var changeHandler = function(newValue) {
|
|
2934
2934
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3073,12 +3073,12 @@ function ComboboxComponent(param) {
|
|
|
3073
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";
|
|
3074
3074
|
styleInject(css_248z$d);
|
|
3075
3075
|
|
|
3076
|
-
function _array_like_to_array$
|
|
3076
|
+
function _array_like_to_array$f(arr, len) {
|
|
3077
3077
|
if (len == null || len > arr.length) len = arr.length;
|
|
3078
3078
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3079
3079
|
return arr2;
|
|
3080
3080
|
}
|
|
3081
|
-
function _array_with_holes$
|
|
3081
|
+
function _array_with_holes$e(arr) {
|
|
3082
3082
|
if (Array.isArray(arr)) return arr;
|
|
3083
3083
|
}
|
|
3084
3084
|
function _define_property$j(obj, key, value) {
|
|
@@ -3094,7 +3094,7 @@ function _define_property$j(obj, key, value) {
|
|
|
3094
3094
|
}
|
|
3095
3095
|
return obj;
|
|
3096
3096
|
}
|
|
3097
|
-
function _iterable_to_array_limit$
|
|
3097
|
+
function _iterable_to_array_limit$e(arr, i) {
|
|
3098
3098
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3099
3099
|
if (_i == null) return;
|
|
3100
3100
|
var _arr = [];
|
|
@@ -3118,7 +3118,7 @@ function _iterable_to_array_limit$d(arr, i) {
|
|
|
3118
3118
|
}
|
|
3119
3119
|
return _arr;
|
|
3120
3120
|
}
|
|
3121
|
-
function _non_iterable_rest$
|
|
3121
|
+
function _non_iterable_rest$e() {
|
|
3122
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.");
|
|
3123
3123
|
}
|
|
3124
3124
|
function _object_spread$h(target) {
|
|
@@ -3136,16 +3136,16 @@ function _object_spread$h(target) {
|
|
|
3136
3136
|
}
|
|
3137
3137
|
return target;
|
|
3138
3138
|
}
|
|
3139
|
-
function _sliced_to_array$
|
|
3140
|
-
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();
|
|
3141
3141
|
}
|
|
3142
|
-
function _unsupported_iterable_to_array$
|
|
3142
|
+
function _unsupported_iterable_to_array$f(o, minLen) {
|
|
3143
3143
|
if (!o) return;
|
|
3144
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3144
|
+
if (typeof o === "string") return _array_like_to_array$f(o, minLen);
|
|
3145
3145
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3146
3146
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3147
3147
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3148
|
-
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);
|
|
3149
3149
|
}
|
|
3150
3150
|
function Combobox$1(param) {
|
|
3151
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 ? [
|
|
@@ -3159,8 +3159,8 @@ function Combobox$1(param) {
|
|
|
3159
3159
|
label: label,
|
|
3160
3160
|
onChange: onChange
|
|
3161
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;
|
|
3162
|
-
var _useState = _sliced_to_array$
|
|
3163
|
-
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];
|
|
3164
3164
|
// const bevel = buttonCornerBevel?.find((item: number) => item > 0);
|
|
3165
3165
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
3166
3166
|
className: "ListboxComponent-wrapper",
|
|
@@ -3402,12 +3402,12 @@ Combobox.anchorTo = AnchorTo;
|
|
|
3402
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";
|
|
3403
3403
|
styleInject(css_248z$c);
|
|
3404
3404
|
|
|
3405
|
-
function _array_like_to_array$
|
|
3405
|
+
function _array_like_to_array$e(arr, len) {
|
|
3406
3406
|
if (len == null || len > arr.length) len = arr.length;
|
|
3407
3407
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3408
3408
|
return arr2;
|
|
3409
3409
|
}
|
|
3410
|
-
function _array_with_holes$
|
|
3410
|
+
function _array_with_holes$d(arr) {
|
|
3411
3411
|
if (Array.isArray(arr)) return arr;
|
|
3412
3412
|
}
|
|
3413
3413
|
function _define_property$i(obj, key, value) {
|
|
@@ -3423,7 +3423,7 @@ function _define_property$i(obj, key, value) {
|
|
|
3423
3423
|
}
|
|
3424
3424
|
return obj;
|
|
3425
3425
|
}
|
|
3426
|
-
function _iterable_to_array_limit$
|
|
3426
|
+
function _iterable_to_array_limit$d(arr, i) {
|
|
3427
3427
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3428
3428
|
if (_i == null) return;
|
|
3429
3429
|
var _arr = [];
|
|
@@ -3447,7 +3447,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
3447
3447
|
}
|
|
3448
3448
|
return _arr;
|
|
3449
3449
|
}
|
|
3450
|
-
function _non_iterable_rest$
|
|
3450
|
+
function _non_iterable_rest$d() {
|
|
3451
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.");
|
|
3452
3452
|
}
|
|
3453
3453
|
function _object_spread$g(target) {
|
|
@@ -3465,16 +3465,16 @@ function _object_spread$g(target) {
|
|
|
3465
3465
|
}
|
|
3466
3466
|
return target;
|
|
3467
3467
|
}
|
|
3468
|
-
function _sliced_to_array$
|
|
3469
|
-
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();
|
|
3470
3470
|
}
|
|
3471
|
-
function _unsupported_iterable_to_array$
|
|
3471
|
+
function _unsupported_iterable_to_array$e(o, minLen) {
|
|
3472
3472
|
if (!o) return;
|
|
3473
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3473
|
+
if (typeof o === "string") return _array_like_to_array$e(o, minLen);
|
|
3474
3474
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3475
3475
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3476
3476
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3477
|
-
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);
|
|
3478
3478
|
}
|
|
3479
3479
|
// import { decimalToPercent, percentToDecimal } from '../../common/utils';
|
|
3480
3480
|
// import debounce from 'lodash.debounce';
|
|
@@ -3486,9 +3486,9 @@ var InputTypes = /*#__PURE__*/ function(InputTypes) {
|
|
|
3486
3486
|
function Input(param) {
|
|
3487
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;
|
|
3488
3488
|
var _inputRef_current;
|
|
3489
|
-
var _useState = _sliced_to_array$
|
|
3489
|
+
var _useState = _sliced_to_array$d(useState(value), 2), internalValue = _useState[0], setInternalValue = _useState[1];
|
|
3490
3490
|
// const [hasError, setHasError] = useState<boolean>(false);
|
|
3491
|
-
var _useState1 = _sliced_to_array$
|
|
3491
|
+
var _useState1 = _sliced_to_array$d(useState(false), 2), isHighlighted = _useState1[0], setIsHighlighted = _useState1[1];
|
|
3492
3492
|
var valueRef = useRef(null);
|
|
3493
3493
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
3494
3494
|
// Sets up listeners to handle changes on the backend
|
|
@@ -3676,15 +3676,15 @@ var TrackWidths = /*#__PURE__*/ function(TrackWidths) {
|
|
|
3676
3676
|
return TrackWidths;
|
|
3677
3677
|
}({});
|
|
3678
3678
|
|
|
3679
|
-
function _array_like_to_array$
|
|
3679
|
+
function _array_like_to_array$d(arr, len) {
|
|
3680
3680
|
if (len == null || len > arr.length) len = arr.length;
|
|
3681
3681
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3682
3682
|
return arr2;
|
|
3683
3683
|
}
|
|
3684
|
-
function _array_with_holes$
|
|
3684
|
+
function _array_with_holes$c(arr) {
|
|
3685
3685
|
if (Array.isArray(arr)) return arr;
|
|
3686
3686
|
}
|
|
3687
|
-
function _iterable_to_array_limit$
|
|
3687
|
+
function _iterable_to_array_limit$c(arr, i) {
|
|
3688
3688
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3689
3689
|
if (_i == null) return;
|
|
3690
3690
|
var _arr = [];
|
|
@@ -3708,19 +3708,19 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
return _arr;
|
|
3710
3710
|
}
|
|
3711
|
-
function _non_iterable_rest$
|
|
3711
|
+
function _non_iterable_rest$c() {
|
|
3712
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.");
|
|
3713
3713
|
}
|
|
3714
|
-
function _sliced_to_array$
|
|
3715
|
-
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();
|
|
3716
3716
|
}
|
|
3717
|
-
function _unsupported_iterable_to_array$
|
|
3717
|
+
function _unsupported_iterable_to_array$d(o, minLen) {
|
|
3718
3718
|
if (!o) return;
|
|
3719
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
3719
|
+
if (typeof o === "string") return _array_like_to_array$d(o, minLen);
|
|
3720
3720
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3721
3721
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3722
3722
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3723
|
-
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);
|
|
3724
3724
|
}
|
|
3725
3725
|
// 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
|
|
3726
3726
|
// ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
|
|
@@ -3744,9 +3744,9 @@ var useSlider = function(param) {
|
|
|
3744
3744
|
* AudioProcessorParameter::getValue() (C++).
|
|
3745
3745
|
*/ // See https://github.com/juce-framework/JUCE/blob/51d11a2be6d5c97ccf12b4e5e827006e19f0555a/modules/juce_gui_extra/native/javascript/index.js#L230C1-L238C6
|
|
3746
3746
|
// NOTE: We can think of this as a percentage value, in 0 to 1 format
|
|
3747
|
-
var _useState = _sliced_to_array$
|
|
3747
|
+
var _useState = _sliced_to_array$c(useState(0), 2), scaledValue = _useState[0], setScaledValue = _useState[1];
|
|
3748
3748
|
// const [normalisedValue, setNormalisedValue] = useState(0);
|
|
3749
|
-
var _useState1 = _sliced_to_array$
|
|
3749
|
+
var _useState1 = _sliced_to_array$c(useState(), 2), properties = _useState1[0], setProperties = _useState1[1];
|
|
3750
3750
|
var scaledValueRef = useRef(null);
|
|
3751
3751
|
var normalisedValueRef = useRef(null);
|
|
3752
3752
|
var sliderState = Juce.getSliderState(id);
|
|
@@ -4036,15 +4036,15 @@ styleInject(css_248z$b);
|
|
|
4036
4036
|
var css_248z$a = "";
|
|
4037
4037
|
styleInject(css_248z$a);
|
|
4038
4038
|
|
|
4039
|
-
function _array_like_to_array$
|
|
4039
|
+
function _array_like_to_array$c(arr, len) {
|
|
4040
4040
|
if (len == null || len > arr.length) len = arr.length;
|
|
4041
4041
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4042
4042
|
return arr2;
|
|
4043
4043
|
}
|
|
4044
|
-
function _array_with_holes$
|
|
4044
|
+
function _array_with_holes$b(arr) {
|
|
4045
4045
|
if (Array.isArray(arr)) return arr;
|
|
4046
4046
|
}
|
|
4047
|
-
function _iterable_to_array_limit$
|
|
4047
|
+
function _iterable_to_array_limit$b(arr, i) {
|
|
4048
4048
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4049
4049
|
if (_i == null) return;
|
|
4050
4050
|
var _arr = [];
|
|
@@ -4068,19 +4068,19 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
return _arr;
|
|
4070
4070
|
}
|
|
4071
|
-
function _non_iterable_rest$
|
|
4071
|
+
function _non_iterable_rest$b() {
|
|
4072
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.");
|
|
4073
4073
|
}
|
|
4074
|
-
function _sliced_to_array$
|
|
4075
|
-
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();
|
|
4076
4076
|
}
|
|
4077
|
-
function _unsupported_iterable_to_array$
|
|
4077
|
+
function _unsupported_iterable_to_array$c(o, minLen) {
|
|
4078
4078
|
if (!o) return;
|
|
4079
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
4079
|
+
if (typeof o === "string") return _array_like_to_array$c(o, minLen);
|
|
4080
4080
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4081
4081
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4082
4082
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4083
|
-
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);
|
|
4084
4084
|
}
|
|
4085
4085
|
function ControlGroup(param) {
|
|
4086
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;
|
|
@@ -4090,7 +4090,7 @@ function ControlGroup(param) {
|
|
|
4090
4090
|
// <Input id={id-input}></Input>
|
|
4091
4091
|
// </ControlGroup>
|
|
4092
4092
|
var groupId = "".concat(id, "-control-group");
|
|
4093
|
-
var _useState = _sliced_to_array$
|
|
4093
|
+
var _useState = _sliced_to_array$b(useState(false), 2), isActive = _useState[0], setIsActive = _useState[1];
|
|
4094
4094
|
var sliderState = Juce.getSliderState(id);
|
|
4095
4095
|
var clickListener = function(event) {
|
|
4096
4096
|
if (!isDisabled) {
|
|
@@ -6078,12 +6078,12 @@ styleInject(css_248z$5);
|
|
|
6078
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";
|
|
6079
6079
|
styleInject(css_248z$4);
|
|
6080
6080
|
|
|
6081
|
-
function _array_like_to_array$
|
|
6081
|
+
function _array_like_to_array$b(arr, len) {
|
|
6082
6082
|
if (len == null || len > arr.length) len = arr.length;
|
|
6083
6083
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6084
6084
|
return arr2;
|
|
6085
6085
|
}
|
|
6086
|
-
function _array_with_holes$
|
|
6086
|
+
function _array_with_holes$a(arr) {
|
|
6087
6087
|
if (Array.isArray(arr)) return arr;
|
|
6088
6088
|
}
|
|
6089
6089
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6115,7 +6115,7 @@ function _async_to_generator$3(fn) {
|
|
|
6115
6115
|
});
|
|
6116
6116
|
};
|
|
6117
6117
|
}
|
|
6118
|
-
function _iterable_to_array_limit$
|
|
6118
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
6119
6119
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6120
6120
|
if (_i == null) return;
|
|
6121
6121
|
var _arr = [];
|
|
@@ -6139,23 +6139,23 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
6139
6139
|
}
|
|
6140
6140
|
return _arr;
|
|
6141
6141
|
}
|
|
6142
|
-
function _non_iterable_rest$
|
|
6142
|
+
function _non_iterable_rest$a() {
|
|
6143
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.");
|
|
6144
6144
|
}
|
|
6145
6145
|
function _object_destructuring_empty(o) {
|
|
6146
6146
|
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
6147
6147
|
return o;
|
|
6148
6148
|
}
|
|
6149
|
-
function _sliced_to_array$
|
|
6150
|
-
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();
|
|
6151
6151
|
}
|
|
6152
|
-
function _unsupported_iterable_to_array$
|
|
6152
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
6153
6153
|
if (!o) return;
|
|
6154
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6154
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
6155
6155
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6156
6156
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6157
6157
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6158
|
-
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);
|
|
6159
6159
|
}
|
|
6160
6160
|
function _ts_generator$3(thisArg, body) {
|
|
6161
6161
|
var f, y, t, _ = {
|
|
@@ -6250,16 +6250,16 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6250
6250
|
}
|
|
6251
6251
|
function PresetManager(param) {
|
|
6252
6252
|
_object_destructuring_empty(param);
|
|
6253
|
-
var _useState = _sliced_to_array$
|
|
6254
|
-
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];
|
|
6255
6255
|
var savePresetFunc = Juce.getNativeFunction('savePreset');
|
|
6256
6256
|
var loadPresetFunc = Juce.getNativeFunction('loadPreset');
|
|
6257
6257
|
var getAllPresetsFunc = Juce.getNativeFunction('getAllPresets');
|
|
6258
6258
|
var getCurrentPresetFunc = Juce.getNativeFunction('getCurrentPreset');
|
|
6259
6259
|
var isDirtyFunc = Juce.getNativeFunction('canUndo');
|
|
6260
|
-
var _useState2 = _sliced_to_array$
|
|
6260
|
+
var _useState2 = _sliced_to_array$a(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
|
|
6261
6261
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
6262
|
-
var _useState3 = _sliced_to_array$
|
|
6262
|
+
var _useState3 = _sliced_to_array$a(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
|
|
6263
6263
|
useEffect(function() {
|
|
6264
6264
|
if (!isLocalhost) {
|
|
6265
6265
|
var _window___JUCE___backend, _window___JUCE__, _window;
|
|
@@ -6538,12 +6538,12 @@ function PresetManager(param) {
|
|
|
6538
6538
|
}))))));
|
|
6539
6539
|
}
|
|
6540
6540
|
|
|
6541
|
-
function _array_like_to_array$
|
|
6541
|
+
function _array_like_to_array$a(arr, len) {
|
|
6542
6542
|
if (len == null || len > arr.length) len = arr.length;
|
|
6543
6543
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6544
6544
|
return arr2;
|
|
6545
6545
|
}
|
|
6546
|
-
function _array_with_holes$
|
|
6546
|
+
function _array_with_holes$9(arr) {
|
|
6547
6547
|
if (Array.isArray(arr)) return arr;
|
|
6548
6548
|
}
|
|
6549
6549
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6588,7 +6588,7 @@ function _define_property$7(obj, key, value) {
|
|
|
6588
6588
|
}
|
|
6589
6589
|
return obj;
|
|
6590
6590
|
}
|
|
6591
|
-
function _iterable_to_array_limit$
|
|
6591
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
6592
6592
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6593
6593
|
if (_i == null) return;
|
|
6594
6594
|
var _arr = [];
|
|
@@ -6612,7 +6612,7 @@ function _iterable_to_array_limit$8(arr, i) {
|
|
|
6612
6612
|
}
|
|
6613
6613
|
return _arr;
|
|
6614
6614
|
}
|
|
6615
|
-
function _non_iterable_rest$
|
|
6615
|
+
function _non_iterable_rest$9() {
|
|
6616
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.");
|
|
6617
6617
|
}
|
|
6618
6618
|
function _object_spread$7(target) {
|
|
@@ -6630,16 +6630,16 @@ function _object_spread$7(target) {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
return target;
|
|
6632
6632
|
}
|
|
6633
|
-
function _sliced_to_array$
|
|
6634
|
-
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();
|
|
6635
6635
|
}
|
|
6636
|
-
function _unsupported_iterable_to_array$
|
|
6636
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
6637
6637
|
if (!o) return;
|
|
6638
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6638
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
6639
6639
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6640
6640
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6641
6641
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6642
|
-
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);
|
|
6643
6643
|
}
|
|
6644
6644
|
function _ts_generator$2(thisArg, body) {
|
|
6645
6645
|
var f, y, t, _ = {
|
|
@@ -6824,8 +6824,8 @@ function ModuleHeader(param) {
|
|
|
6824
6824
|
}, [
|
|
6825
6825
|
window
|
|
6826
6826
|
]);
|
|
6827
|
-
var _useState = _sliced_to_array$
|
|
6828
|
-
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];
|
|
6829
6829
|
var handleUndo = function() {
|
|
6830
6830
|
undo();
|
|
6831
6831
|
};
|
|
@@ -7179,12 +7179,12 @@ function ModMatrixComboboxCell(param) {
|
|
|
7179
7179
|
}));
|
|
7180
7180
|
}
|
|
7181
7181
|
|
|
7182
|
-
function _array_like_to_array$
|
|
7182
|
+
function _array_like_to_array$9(arr, len) {
|
|
7183
7183
|
if (len == null || len > arr.length) len = arr.length;
|
|
7184
7184
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7185
7185
|
return arr2;
|
|
7186
7186
|
}
|
|
7187
|
-
function _array_with_holes$
|
|
7187
|
+
function _array_with_holes$8(arr) {
|
|
7188
7188
|
if (Array.isArray(arr)) return arr;
|
|
7189
7189
|
}
|
|
7190
7190
|
function _define_property$5(obj, key, value) {
|
|
@@ -7200,7 +7200,7 @@ function _define_property$5(obj, key, value) {
|
|
|
7200
7200
|
}
|
|
7201
7201
|
return obj;
|
|
7202
7202
|
}
|
|
7203
|
-
function _iterable_to_array_limit$
|
|
7203
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
7204
7204
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7205
7205
|
if (_i == null) return;
|
|
7206
7206
|
var _arr = [];
|
|
@@ -7224,7 +7224,7 @@ function _iterable_to_array_limit$7(arr, i) {
|
|
|
7224
7224
|
}
|
|
7225
7225
|
return _arr;
|
|
7226
7226
|
}
|
|
7227
|
-
function _non_iterable_rest$
|
|
7227
|
+
function _non_iterable_rest$8() {
|
|
7228
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
7229
|
}
|
|
7230
7230
|
function _object_spread$5(target) {
|
|
@@ -7242,21 +7242,21 @@ function _object_spread$5(target) {
|
|
|
7242
7242
|
}
|
|
7243
7243
|
return target;
|
|
7244
7244
|
}
|
|
7245
|
-
function _sliced_to_array$
|
|
7246
|
-
return _array_with_holes$
|
|
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
7247
|
}
|
|
7248
|
-
function _unsupported_iterable_to_array$
|
|
7248
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7249
7249
|
if (!o) return;
|
|
7250
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7250
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7251
7251
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7252
7252
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7253
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$
|
|
7254
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7255
7255
|
}
|
|
7256
7256
|
function Toggle(param) {
|
|
7257
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
7258
|
var _properties_choices;
|
|
7259
|
-
var _useState = _sliced_to_array$
|
|
7259
|
+
var _useState = _sliced_to_array$8(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
7260
7260
|
var _useCombobox = useCombobox({
|
|
7261
7261
|
id: id,
|
|
7262
7262
|
displayValInHeader: displayValInHeader,
|
|
@@ -7397,12 +7397,12 @@ function SingleBarViz(param) {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
SingleBarViz.polarity = Polarity;
|
|
7399
7399
|
|
|
7400
|
-
function _array_like_to_array$
|
|
7400
|
+
function _array_like_to_array$8(arr, len) {
|
|
7401
7401
|
if (len == null || len > arr.length) len = arr.length;
|
|
7402
7402
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7403
7403
|
return arr2;
|
|
7404
7404
|
}
|
|
7405
|
-
function _array_with_holes$
|
|
7405
|
+
function _array_with_holes$7(arr) {
|
|
7406
7406
|
if (Array.isArray(arr)) return arr;
|
|
7407
7407
|
}
|
|
7408
7408
|
function _define_property$3(obj, key, value) {
|
|
@@ -7418,7 +7418,7 @@ function _define_property$3(obj, key, value) {
|
|
|
7418
7418
|
}
|
|
7419
7419
|
return obj;
|
|
7420
7420
|
}
|
|
7421
|
-
function _iterable_to_array_limit$
|
|
7421
|
+
function _iterable_to_array_limit$7(arr, i) {
|
|
7422
7422
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7423
7423
|
if (_i == null) return;
|
|
7424
7424
|
var _arr = [];
|
|
@@ -7442,7 +7442,7 @@ function _iterable_to_array_limit$6(arr, i) {
|
|
|
7442
7442
|
}
|
|
7443
7443
|
return _arr;
|
|
7444
7444
|
}
|
|
7445
|
-
function _non_iterable_rest$
|
|
7445
|
+
function _non_iterable_rest$7() {
|
|
7446
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.");
|
|
7447
7447
|
}
|
|
7448
7448
|
function _object_spread$3(target) {
|
|
@@ -7479,22 +7479,22 @@ function _object_spread_props(target, source) {
|
|
|
7479
7479
|
}
|
|
7480
7480
|
return target;
|
|
7481
7481
|
}
|
|
7482
|
-
function _sliced_to_array$
|
|
7483
|
-
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();
|
|
7484
7484
|
}
|
|
7485
|
-
function _unsupported_iterable_to_array$
|
|
7485
|
+
function _unsupported_iterable_to_array$8(o, minLen) {
|
|
7486
7486
|
if (!o) return;
|
|
7487
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7487
|
+
if (typeof o === "string") return _array_like_to_array$8(o, minLen);
|
|
7488
7488
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7489
7489
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7490
7490
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7491
|
-
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);
|
|
7492
7492
|
}
|
|
7493
7493
|
function ModMatrixCell(param) {
|
|
7494
7494
|
var modifier = param.modifier, rowId = param.rowId, isDisabled = param.isDisabled, color = param.color, style = param.style;
|
|
7495
7495
|
var _SingleBarViz_polarity;
|
|
7496
7496
|
var _useGlobalContext = useGlobalContext(), setDefaultParameter = _useGlobalContext.setDefaultParameter, updateModSlotRowTarget = _useGlobalContext.updateModSlotRowTarget, modSlotTargets = _useGlobalContext.globalState.modSlotTargets;
|
|
7497
|
-
var _useState = _sliced_to_array$
|
|
7497
|
+
var _useState = _sliced_to_array$7(useState(false), 2); _useState[0]; var setIsActive = _useState[1];
|
|
7498
7498
|
var _useSlider = useSlider({
|
|
7499
7499
|
id: modifier,
|
|
7500
7500
|
rowId: rowId,
|
|
@@ -7678,13 +7678,13 @@ function ModMatrixRow(param) {
|
|
|
7678
7678
|
}) : null));
|
|
7679
7679
|
}
|
|
7680
7680
|
|
|
7681
|
-
function _array_like_to_array$
|
|
7681
|
+
function _array_like_to_array$7(arr, len) {
|
|
7682
7682
|
if (len == null || len > arr.length) len = arr.length;
|
|
7683
7683
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7684
7684
|
return arr2;
|
|
7685
7685
|
}
|
|
7686
7686
|
function _array_without_holes(arr) {
|
|
7687
|
-
if (Array.isArray(arr)) return _array_like_to_array$
|
|
7687
|
+
if (Array.isArray(arr)) return _array_like_to_array$7(arr);
|
|
7688
7688
|
}
|
|
7689
7689
|
function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7690
7690
|
try {
|
|
@@ -7750,15 +7750,15 @@ function _object_spread$2(target) {
|
|
|
7750
7750
|
return target;
|
|
7751
7751
|
}
|
|
7752
7752
|
function _to_consumable_array(arr) {
|
|
7753
|
-
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();
|
|
7754
7754
|
}
|
|
7755
|
-
function _unsupported_iterable_to_array$
|
|
7755
|
+
function _unsupported_iterable_to_array$7(o, minLen) {
|
|
7756
7756
|
if (!o) return;
|
|
7757
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7757
|
+
if (typeof o === "string") return _array_like_to_array$7(o, minLen);
|
|
7758
7758
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7759
7759
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7760
7760
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7761
|
-
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);
|
|
7762
7762
|
}
|
|
7763
7763
|
function _ts_generator$1(thisArg, body) {
|
|
7764
7764
|
var f, y, t, _ = {
|
|
@@ -8051,15 +8051,15 @@ function createBase64WorkerFactory$3(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
8051
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');
|
|
8052
8052
|
/* eslint-enable */
|
|
8053
8053
|
|
|
8054
|
-
function _array_like_to_array$
|
|
8054
|
+
function _array_like_to_array$6(arr, len) {
|
|
8055
8055
|
if (len == null || len > arr.length) len = arr.length;
|
|
8056
8056
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8057
8057
|
return arr2;
|
|
8058
8058
|
}
|
|
8059
|
-
function _array_with_holes$
|
|
8059
|
+
function _array_with_holes$6(arr) {
|
|
8060
8060
|
if (Array.isArray(arr)) return arr;
|
|
8061
8061
|
}
|
|
8062
|
-
function _iterable_to_array_limit$
|
|
8062
|
+
function _iterable_to_array_limit$6(arr, i) {
|
|
8063
8063
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8064
8064
|
if (_i == null) return;
|
|
8065
8065
|
var _arr = [];
|
|
@@ -8083,30 +8083,30 @@ function _iterable_to_array_limit$5(arr, i) {
|
|
|
8083
8083
|
}
|
|
8084
8084
|
return _arr;
|
|
8085
8085
|
}
|
|
8086
|
-
function _non_iterable_rest$
|
|
8086
|
+
function _non_iterable_rest$6() {
|
|
8087
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.");
|
|
8088
8088
|
}
|
|
8089
|
-
function _sliced_to_array$
|
|
8090
|
-
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();
|
|
8091
8091
|
}
|
|
8092
|
-
function _unsupported_iterable_to_array$
|
|
8092
|
+
function _unsupported_iterable_to_array$6(o, minLen) {
|
|
8093
8093
|
if (!o) return;
|
|
8094
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8094
|
+
if (typeof o === "string") return _array_like_to_array$6(o, minLen);
|
|
8095
8095
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8096
8096
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8097
8097
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8098
|
-
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);
|
|
8099
8099
|
}
|
|
8100
8100
|
function LFOVisualizer(param) {
|
|
8101
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;
|
|
8102
8102
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
8103
|
-
var _useState = _sliced_to_array$
|
|
8103
|
+
var _useState = _sliced_to_array$6(useState(0), 2), syncTypeValue = _useState[0], setSyncTypeValue = _useState[1];
|
|
8104
8104
|
// TODO: Fix random
|
|
8105
8105
|
// const [randValue, setRandValue] = useState(0);
|
|
8106
|
-
var _useState1 = _sliced_to_array$
|
|
8107
|
-
var _useState2 = _sliced_to_array$
|
|
8108
|
-
var _useState3 = _sliced_to_array$
|
|
8109
|
-
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];
|
|
8110
8110
|
var workerRef = useRef(null);
|
|
8111
8111
|
var cycleRef = useRef([]);
|
|
8112
8112
|
var prevRampValue = useRef(null);
|
|
@@ -8319,15 +8319,15 @@ function LFOVisualizer(param) {
|
|
|
8319
8319
|
}))))));
|
|
8320
8320
|
}
|
|
8321
8321
|
|
|
8322
|
-
function _array_like_to_array$
|
|
8322
|
+
function _array_like_to_array$5(arr, len) {
|
|
8323
8323
|
if (len == null || len > arr.length) len = arr.length;
|
|
8324
8324
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8325
8325
|
return arr2;
|
|
8326
8326
|
}
|
|
8327
|
-
function _array_with_holes$
|
|
8327
|
+
function _array_with_holes$5(arr) {
|
|
8328
8328
|
if (Array.isArray(arr)) return arr;
|
|
8329
8329
|
}
|
|
8330
|
-
function _iterable_to_array_limit$
|
|
8330
|
+
function _iterable_to_array_limit$5(arr, i) {
|
|
8331
8331
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8332
8332
|
if (_i == null) return;
|
|
8333
8333
|
var _arr = [];
|
|
@@ -8351,23 +8351,23 @@ function _iterable_to_array_limit$4(arr, i) {
|
|
|
8351
8351
|
}
|
|
8352
8352
|
return _arr;
|
|
8353
8353
|
}
|
|
8354
|
-
function _non_iterable_rest$
|
|
8354
|
+
function _non_iterable_rest$5() {
|
|
8355
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.");
|
|
8356
8356
|
}
|
|
8357
|
-
function _sliced_to_array$
|
|
8358
|
-
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();
|
|
8359
8359
|
}
|
|
8360
|
-
function _unsupported_iterable_to_array$
|
|
8360
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
8361
8361
|
if (!o) return;
|
|
8362
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8362
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
8363
8363
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8364
8364
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8365
8365
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8366
|
-
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);
|
|
8367
8367
|
}
|
|
8368
8368
|
function LFOBox(param) {
|
|
8369
8369
|
var id = param.id;
|
|
8370
|
-
var _useState = _sliced_to_array$
|
|
8370
|
+
var _useState = _sliced_to_array$5(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
8371
8371
|
useEffect(function() {
|
|
8372
8372
|
var _Juce_getComboBoxState;
|
|
8373
8373
|
var syncType = (_Juce_getComboBoxState = Juce.getComboBoxState("LFO".concat(id, "_SyncType"))) === null || _Juce_getComboBoxState === void 0 ? void 0 : _Juce_getComboBoxState.getChoiceIndex();
|
|
@@ -8538,15 +8538,15 @@ function LFOTab() {
|
|
|
8538
8538
|
}));
|
|
8539
8539
|
}
|
|
8540
8540
|
|
|
8541
|
-
function _array_like_to_array$
|
|
8541
|
+
function _array_like_to_array$4(arr, len) {
|
|
8542
8542
|
if (len == null || len > arr.length) len = arr.length;
|
|
8543
8543
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8544
8544
|
return arr2;
|
|
8545
8545
|
}
|
|
8546
|
-
function _array_with_holes$
|
|
8546
|
+
function _array_with_holes$4(arr) {
|
|
8547
8547
|
if (Array.isArray(arr)) return arr;
|
|
8548
8548
|
}
|
|
8549
|
-
function _iterable_to_array_limit$
|
|
8549
|
+
function _iterable_to_array_limit$4(arr, i) {
|
|
8550
8550
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8551
8551
|
if (_i == null) return;
|
|
8552
8552
|
var _arr = [];
|
|
@@ -8570,24 +8570,24 @@ function _iterable_to_array_limit$3(arr, i) {
|
|
|
8570
8570
|
}
|
|
8571
8571
|
return _arr;
|
|
8572
8572
|
}
|
|
8573
|
-
function _non_iterable_rest$
|
|
8573
|
+
function _non_iterable_rest$4() {
|
|
8574
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.");
|
|
8575
8575
|
}
|
|
8576
|
-
function _sliced_to_array$
|
|
8577
|
-
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();
|
|
8578
8578
|
}
|
|
8579
|
-
function _unsupported_iterable_to_array$
|
|
8579
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
8580
8580
|
if (!o) return;
|
|
8581
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8581
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
8582
8582
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8583
8583
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8584
8584
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8585
|
-
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);
|
|
8586
8586
|
}
|
|
8587
8587
|
function StepSequencer(param) {
|
|
8588
8588
|
var seqId = param.seqId, randomizerObject = param.randomizerObject, resetterObject = param.resetterObject, _param_numSteps = param.numSteps, numSteps = _param_numSteps === void 0 ? 16 : _param_numSteps;
|
|
8589
8589
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
8590
|
-
var _useState = _sliced_to_array$
|
|
8590
|
+
var _useState = _sliced_to_array$4(useState(1), 2), currentSeqStep = _useState[0], setCurrentSeqStep = _useState[1];
|
|
8591
8591
|
var steps = new Array(numSteps).fill(0);
|
|
8592
8592
|
// const currentElementRef = useRef<string>(null);
|
|
8593
8593
|
// const isMouseDownRef = useRef<boolean>(false);
|
|
@@ -8689,15 +8689,15 @@ function useReset() {
|
|
|
8689
8689
|
return observableObject;
|
|
8690
8690
|
}
|
|
8691
8691
|
|
|
8692
|
-
function _array_like_to_array$
|
|
8692
|
+
function _array_like_to_array$3(arr, len) {
|
|
8693
8693
|
if (len == null || len > arr.length) len = arr.length;
|
|
8694
8694
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
8695
8695
|
return arr2;
|
|
8696
8696
|
}
|
|
8697
|
-
function _array_with_holes$
|
|
8697
|
+
function _array_with_holes$3(arr) {
|
|
8698
8698
|
if (Array.isArray(arr)) return arr;
|
|
8699
8699
|
}
|
|
8700
|
-
function _iterable_to_array_limit$
|
|
8700
|
+
function _iterable_to_array_limit$3(arr, i) {
|
|
8701
8701
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
8702
8702
|
if (_i == null) return;
|
|
8703
8703
|
var _arr = [];
|
|
@@ -8721,24 +8721,24 @@ function _iterable_to_array_limit$2(arr, i) {
|
|
|
8721
8721
|
}
|
|
8722
8722
|
return _arr;
|
|
8723
8723
|
}
|
|
8724
|
-
function _non_iterable_rest$
|
|
8724
|
+
function _non_iterable_rest$3() {
|
|
8725
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.");
|
|
8726
8726
|
}
|
|
8727
|
-
function _sliced_to_array$
|
|
8728
|
-
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();
|
|
8729
8729
|
}
|
|
8730
|
-
function _unsupported_iterable_to_array$
|
|
8730
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
8731
8731
|
if (!o) return;
|
|
8732
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
8732
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
8733
8733
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
8734
8734
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
8735
8735
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
8736
|
-
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);
|
|
8737
8737
|
}
|
|
8738
8738
|
// import IndicatorLight from '../../core/Indicators/IndicatorLight';
|
|
8739
8739
|
function SeqTab$1(param) {
|
|
8740
8740
|
var seqId = param.seqId;
|
|
8741
|
-
var _useState = _sliced_to_array$
|
|
8741
|
+
var _useState = _sliced_to_array$3(useState(0), 2), syncType = _useState[0], setSyncType = _useState[1];
|
|
8742
8742
|
useEffect(function() {
|
|
8743
8743
|
var _Juce_getSliderState;
|
|
8744
8744
|
var syncType = (_Juce_getSliderState = Juce.getSliderState("seq".concat(seqId, "_syncType"))) === null || _Juce_getSliderState === void 0 ? void 0 : _Juce_getSliderState.scaledValue;
|
|
@@ -9105,6 +9105,71 @@ function VUMeter(param) {
|
|
|
9105
9105
|
})))));
|
|
9106
9106
|
}
|
|
9107
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
|
+
};
|
|
9108
9173
|
function InputModTab$1() {
|
|
9109
9174
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
9110
9175
|
className: "InputModTab",
|
|
@@ -9280,7 +9345,7 @@ function InputModTab$1() {
|
|
|
9280
9345
|
color: "var(--color-brand)"
|
|
9281
9346
|
}, "Output")), /*#__PURE__*/ React__default.createElement(Box, {
|
|
9282
9347
|
flex: '3'
|
|
9283
|
-
}, /*#__PURE__*/ React__default.createElement(VUMeter, {
|
|
9348
|
+
}, /*#__PURE__*/ React__default.createElement(FreqOut, null), /*#__PURE__*/ React__default.createElement(VUMeter, {
|
|
9284
9349
|
width: 50,
|
|
9285
9350
|
height: 125,
|
|
9286
9351
|
id: "VUMeter"
|