gwchq-textjam 0.1.5 → 0.1.7
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/assets/gwc-logoa61b092912e3c38825d3.svg +33 -0
- package/dist/index.js +200 -2836
- package/dist/style.css +6 -129
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -281760,289 +281760,6 @@ module.exports.polyfill = function(object) {
|
|
|
281760
281760
|
}
|
|
281761
281761
|
|
|
281762
281762
|
|
|
281763
|
-
/***/ }),
|
|
281764
|
-
|
|
281765
|
-
/***/ 23350:
|
|
281766
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
281767
|
-
|
|
281768
|
-
var __webpack_unused_export__;
|
|
281769
|
-
|
|
281770
|
-
|
|
281771
|
-
__webpack_unused_export__ = ({
|
|
281772
|
-
value: true
|
|
281773
|
-
});
|
|
281774
|
-
__webpack_unused_export__ = undefined;
|
|
281775
|
-
|
|
281776
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
281777
|
-
|
|
281778
|
-
var _class, _temp2;
|
|
281779
|
-
|
|
281780
|
-
exports.ZX = confirmAlert;
|
|
281781
|
-
|
|
281782
|
-
var _react = __webpack_require__(51649);
|
|
281783
|
-
|
|
281784
|
-
var _react2 = _interopRequireDefault(_react);
|
|
281785
|
-
|
|
281786
|
-
var _propTypes = __webpack_require__(5556);
|
|
281787
|
-
|
|
281788
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
281789
|
-
|
|
281790
|
-
var _reactDom = __webpack_require__(7516);
|
|
281791
|
-
|
|
281792
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
281793
|
-
|
|
281794
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
281795
|
-
|
|
281796
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
281797
|
-
|
|
281798
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
281799
|
-
|
|
281800
|
-
var ReactConfirmAlert = (_temp2 = _class = function (_Component) {
|
|
281801
|
-
_inherits(ReactConfirmAlert, _Component);
|
|
281802
|
-
|
|
281803
|
-
function ReactConfirmAlert() {
|
|
281804
|
-
var _ref;
|
|
281805
|
-
|
|
281806
|
-
var _temp, _this, _ret;
|
|
281807
|
-
|
|
281808
|
-
_classCallCheck(this, ReactConfirmAlert);
|
|
281809
|
-
|
|
281810
|
-
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
281811
|
-
args[_key] = arguments[_key];
|
|
281812
|
-
}
|
|
281813
|
-
|
|
281814
|
-
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = ReactConfirmAlert.__proto__ || Object.getPrototypeOf(ReactConfirmAlert)).call.apply(_ref, [this].concat(args))), _this), _this.handleClickButton = function (button) {
|
|
281815
|
-
if (button.onClick) button.onClick();
|
|
281816
|
-
_this.close();
|
|
281817
|
-
}, _this.handleClickOverlay = function (e) {
|
|
281818
|
-
var _this$props = _this.props,
|
|
281819
|
-
closeOnClickOutside = _this$props.closeOnClickOutside,
|
|
281820
|
-
onClickOutside = _this$props.onClickOutside;
|
|
281821
|
-
|
|
281822
|
-
var isClickOutside = e.target === _this.overlay;
|
|
281823
|
-
|
|
281824
|
-
if (closeOnClickOutside && isClickOutside) {
|
|
281825
|
-
onClickOutside();
|
|
281826
|
-
_this.close();
|
|
281827
|
-
}
|
|
281828
|
-
}, _this.close = function () {
|
|
281829
|
-
var afterClose = _this.props.afterClose;
|
|
281830
|
-
|
|
281831
|
-
removeBodyClass();
|
|
281832
|
-
removeElementReconfirm();
|
|
281833
|
-
removeSVGBlurReconfirm(afterClose);
|
|
281834
|
-
}, _this.keyboardClose = function (event) {
|
|
281835
|
-
var _this$props2 = _this.props,
|
|
281836
|
-
closeOnEscape = _this$props2.closeOnEscape,
|
|
281837
|
-
onKeypressEscape = _this$props2.onKeypressEscape,
|
|
281838
|
-
keyCodeForClose = _this$props2.keyCodeForClose;
|
|
281839
|
-
|
|
281840
|
-
var keyCode = event.keyCode;
|
|
281841
|
-
var isKeyCodeEscape = keyCode === 27;
|
|
281842
|
-
|
|
281843
|
-
if (keyCodeForClose.includes(keyCode)) {
|
|
281844
|
-
_this.close();
|
|
281845
|
-
}
|
|
281846
|
-
|
|
281847
|
-
if (closeOnEscape && isKeyCodeEscape) {
|
|
281848
|
-
onKeypressEscape(event);
|
|
281849
|
-
_this.close();
|
|
281850
|
-
}
|
|
281851
|
-
}, _this.componentDidMount = function () {
|
|
281852
|
-
document.addEventListener('keydown', _this.keyboardClose, false);
|
|
281853
|
-
}, _this.componentWillUnmount = function () {
|
|
281854
|
-
document.removeEventListener('keydown', _this.keyboardClose, false);
|
|
281855
|
-
_this.props.willUnmount();
|
|
281856
|
-
}, _this.renderCustomUI = function () {
|
|
281857
|
-
var _this$props3 = _this.props,
|
|
281858
|
-
title = _this$props3.title,
|
|
281859
|
-
message = _this$props3.message,
|
|
281860
|
-
buttons = _this$props3.buttons,
|
|
281861
|
-
customUI = _this$props3.customUI;
|
|
281862
|
-
|
|
281863
|
-
var dataCustomUI = {
|
|
281864
|
-
title: title,
|
|
281865
|
-
message: message,
|
|
281866
|
-
buttons: buttons,
|
|
281867
|
-
onClose: _this.close
|
|
281868
|
-
};
|
|
281869
|
-
|
|
281870
|
-
return customUI(dataCustomUI);
|
|
281871
|
-
}, _temp), _possibleConstructorReturn(_this, _ret);
|
|
281872
|
-
}
|
|
281873
|
-
|
|
281874
|
-
_createClass(ReactConfirmAlert, [{
|
|
281875
|
-
key: 'render',
|
|
281876
|
-
value: function render() {
|
|
281877
|
-
var _this2 = this;
|
|
281878
|
-
|
|
281879
|
-
var _props = this.props,
|
|
281880
|
-
title = _props.title,
|
|
281881
|
-
message = _props.message,
|
|
281882
|
-
buttons = _props.buttons,
|
|
281883
|
-
childrenElement = _props.childrenElement,
|
|
281884
|
-
customUI = _props.customUI,
|
|
281885
|
-
overlayClassName = _props.overlayClassName;
|
|
281886
|
-
|
|
281887
|
-
|
|
281888
|
-
return _react2.default.createElement(
|
|
281889
|
-
'div',
|
|
281890
|
-
{
|
|
281891
|
-
className: 'react-confirm-alert-overlay ' + overlayClassName,
|
|
281892
|
-
ref: function ref(dom) {
|
|
281893
|
-
return _this2.overlay = dom;
|
|
281894
|
-
},
|
|
281895
|
-
onClick: this.handleClickOverlay
|
|
281896
|
-
},
|
|
281897
|
-
_react2.default.createElement(
|
|
281898
|
-
'div',
|
|
281899
|
-
{ className: 'react-confirm-alert' },
|
|
281900
|
-
customUI ? this.renderCustomUI() : _react2.default.createElement(
|
|
281901
|
-
'div',
|
|
281902
|
-
{ className: 'react-confirm-alert-body' },
|
|
281903
|
-
title && _react2.default.createElement(
|
|
281904
|
-
'h1',
|
|
281905
|
-
null,
|
|
281906
|
-
title
|
|
281907
|
-
),
|
|
281908
|
-
message,
|
|
281909
|
-
childrenElement(),
|
|
281910
|
-
_react2.default.createElement(
|
|
281911
|
-
'div',
|
|
281912
|
-
{ className: 'react-confirm-alert-button-group' },
|
|
281913
|
-
buttons.map(function (button, i) {
|
|
281914
|
-
return _react2.default.createElement(
|
|
281915
|
-
'button',
|
|
281916
|
-
{ key: i, onClick: function onClick() {
|
|
281917
|
-
return _this2.handleClickButton(button);
|
|
281918
|
-
}, className: button.className },
|
|
281919
|
-
button.label
|
|
281920
|
-
);
|
|
281921
|
-
})
|
|
281922
|
-
)
|
|
281923
|
-
)
|
|
281924
|
-
)
|
|
281925
|
-
);
|
|
281926
|
-
}
|
|
281927
|
-
}]);
|
|
281928
|
-
|
|
281929
|
-
return ReactConfirmAlert;
|
|
281930
|
-
}(_react.Component), _class.propTypes = {
|
|
281931
|
-
title: _propTypes2.default.string,
|
|
281932
|
-
message: _propTypes2.default.string,
|
|
281933
|
-
buttons: _propTypes2.default.array.isRequired,
|
|
281934
|
-
childrenElement: _propTypes2.default.func,
|
|
281935
|
-
customUI: _propTypes2.default.func,
|
|
281936
|
-
closeOnClickOutside: _propTypes2.default.bool,
|
|
281937
|
-
closeOnEscape: _propTypes2.default.bool,
|
|
281938
|
-
keyCodeForClose: _propTypes2.default.arrayOf(_propTypes2.default.number),
|
|
281939
|
-
willUnmount: _propTypes2.default.func,
|
|
281940
|
-
afterClose: _propTypes2.default.func,
|
|
281941
|
-
onClickOutside: _propTypes2.default.func,
|
|
281942
|
-
onKeypressEscape: _propTypes2.default.func,
|
|
281943
|
-
overlayClassName: _propTypes2.default.string
|
|
281944
|
-
}, _class.defaultProps = {
|
|
281945
|
-
buttons: [{
|
|
281946
|
-
label: 'Cancel',
|
|
281947
|
-
onClick: function onClick() {
|
|
281948
|
-
return null;
|
|
281949
|
-
},
|
|
281950
|
-
className: null
|
|
281951
|
-
}, {
|
|
281952
|
-
label: 'Confirm',
|
|
281953
|
-
onClick: function onClick() {
|
|
281954
|
-
return null;
|
|
281955
|
-
},
|
|
281956
|
-
className: null
|
|
281957
|
-
}],
|
|
281958
|
-
childrenElement: function childrenElement() {
|
|
281959
|
-
return null;
|
|
281960
|
-
},
|
|
281961
|
-
closeOnClickOutside: true,
|
|
281962
|
-
closeOnEscape: true,
|
|
281963
|
-
keyCodeForClose: [],
|
|
281964
|
-
willUnmount: function willUnmount() {
|
|
281965
|
-
return null;
|
|
281966
|
-
},
|
|
281967
|
-
afterClose: function afterClose() {
|
|
281968
|
-
return null;
|
|
281969
|
-
},
|
|
281970
|
-
onClickOutside: function onClickOutside() {
|
|
281971
|
-
return null;
|
|
281972
|
-
},
|
|
281973
|
-
onKeypressEscape: function onKeypressEscape() {
|
|
281974
|
-
return null;
|
|
281975
|
-
}
|
|
281976
|
-
}, _temp2);
|
|
281977
|
-
__webpack_unused_export__ = ReactConfirmAlert;
|
|
281978
|
-
|
|
281979
|
-
|
|
281980
|
-
function createSVGBlurReconfirm() {
|
|
281981
|
-
// If has svg ignore to create the svg
|
|
281982
|
-
var svg = document.getElementById('react-confirm-alert-firm-svg');
|
|
281983
|
-
if (svg) return;
|
|
281984
|
-
var svgNS = 'http://www.w3.org/2000/svg';
|
|
281985
|
-
var feGaussianBlur = document.createElementNS(svgNS, 'feGaussianBlur');
|
|
281986
|
-
feGaussianBlur.setAttribute('stdDeviation', '0.3');
|
|
281987
|
-
|
|
281988
|
-
var filter = document.createElementNS(svgNS, 'filter');
|
|
281989
|
-
filter.setAttribute('id', 'gaussian-blur');
|
|
281990
|
-
filter.appendChild(feGaussianBlur);
|
|
281991
|
-
|
|
281992
|
-
var svgElem = document.createElementNS(svgNS, 'svg');
|
|
281993
|
-
svgElem.setAttribute('id', 'react-confirm-alert-firm-svg');
|
|
281994
|
-
svgElem.setAttribute('class', 'react-confirm-alert-svg');
|
|
281995
|
-
svgElem.appendChild(filter);
|
|
281996
|
-
|
|
281997
|
-
document.body.appendChild(svgElem);
|
|
281998
|
-
}
|
|
281999
|
-
|
|
282000
|
-
function removeSVGBlurReconfirm(afterClose) {
|
|
282001
|
-
var svg = document.getElementById('react-confirm-alert-firm-svg');
|
|
282002
|
-
if (svg) {
|
|
282003
|
-
svg.parentNode.removeChild(svg);
|
|
282004
|
-
}
|
|
282005
|
-
document.body.children[0].classList.remove('react-confirm-alert-blur');
|
|
282006
|
-
afterClose();
|
|
282007
|
-
}
|
|
282008
|
-
|
|
282009
|
-
function createElementReconfirm(properties) {
|
|
282010
|
-
var divTarget = document.getElementById('react-confirm-alert');
|
|
282011
|
-
if (divTarget) {
|
|
282012
|
-
// Rerender - the mounted ReactConfirmAlert
|
|
282013
|
-
(0, _reactDom.render)(_react2.default.createElement(ReactConfirmAlert, properties), divTarget);
|
|
282014
|
-
} else {
|
|
282015
|
-
// Mount the ReactConfirmAlert component
|
|
282016
|
-
document.body.children[0].classList.add('react-confirm-alert-blur');
|
|
282017
|
-
divTarget = document.createElement('div');
|
|
282018
|
-
divTarget.id = 'react-confirm-alert';
|
|
282019
|
-
document.body.appendChild(divTarget);
|
|
282020
|
-
(0, _reactDom.render)(_react2.default.createElement(ReactConfirmAlert, properties), divTarget);
|
|
282021
|
-
}
|
|
282022
|
-
}
|
|
282023
|
-
|
|
282024
|
-
function removeElementReconfirm() {
|
|
282025
|
-
var target = document.getElementById('react-confirm-alert');
|
|
282026
|
-
if (target) {
|
|
282027
|
-
(0, _reactDom.unmountComponentAtNode)(target);
|
|
282028
|
-
target.parentNode.removeChild(target);
|
|
282029
|
-
}
|
|
282030
|
-
}
|
|
282031
|
-
|
|
282032
|
-
function addBodyClass() {
|
|
282033
|
-
document.body.classList.add('react-confirm-alert-body-element');
|
|
282034
|
-
}
|
|
282035
|
-
|
|
282036
|
-
function removeBodyClass() {
|
|
282037
|
-
document.body.classList.remove('react-confirm-alert-body-element');
|
|
282038
|
-
}
|
|
282039
|
-
|
|
282040
|
-
function confirmAlert(properties) {
|
|
282041
|
-
addBodyClass();
|
|
282042
|
-
createSVGBlurReconfirm();
|
|
282043
|
-
createElementReconfirm(properties);
|
|
282044
|
-
}
|
|
282045
|
-
|
|
282046
281763
|
/***/ }),
|
|
282047
281764
|
|
|
282048
281765
|
/***/ 97473:
|
|
@@ -323909,39 +323626,9 @@ var elementFromProps = map => {
|
|
|
323909
323626
|
};
|
|
323910
323627
|
/* harmony default export */ const PyodideRunner_VisualOutputPane = (VisualOutputPane);
|
|
323911
323628
|
;// ./src/assets/icons/split_view.svg
|
|
323912
|
-
|
|
323913
|
-
function split_view_extends() { return split_view_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, split_view_extends.apply(null, arguments); }
|
|
323914
|
-
|
|
323915
|
-
function SvgSplitView(props) {
|
|
323916
|
-
return /*#__PURE__*/external_react_.createElement("svg", split_view_extends({
|
|
323917
|
-
width: 20,
|
|
323918
|
-
height: 20,
|
|
323919
|
-
fill: "none",
|
|
323920
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
323921
|
-
}, props), _path || (_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
323922
|
-
d: "M2.5 17.5V9.167h15V17.5h-15zm1.667-1.667h11.666v-5H4.167v5zM2.5 9.167V2.5h15v6.667h-15zm1.667 0h11.666v-5H4.167v5z"
|
|
323923
|
-
})));
|
|
323924
|
-
}
|
|
323925
|
-
/* harmony default export */ const split_view = (SvgSplitView);
|
|
323629
|
+
const split_view_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjAiDQogIGhlaWdodD0iMjAiDQogIHZpZXdCb3g9IjAgMCAyMCAyMCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNMi41IDE3LjVWOS4xNjY2N0gxNy41VjE3LjVIMi41Wk00LjE2NjY3IDE1LjgzMzNIMTUuODMzM1YxMC44MzMzSDQuMTY2NjdWMTUuODMzM1oiIC8+DQogIDxwYXRoIGQ9Ik0yLjUgOS4xNjY2N1YyLjVIMTcuNVY5LjE2NjY3SDIuNVpNNC4xNjY2NyA5LjE2NjY3SDE1LjgzMzNWNC4xNjY2N0g0LjE2NjY3VjkuMTY2NjdaIiAvPg0KPC9zdmc+DQo=";
|
|
323926
323630
|
;// ./src/assets/icons/tabbed_view.svg
|
|
323927
|
-
|
|
323928
|
-
function tabbed_view_extends() { return tabbed_view_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, tabbed_view_extends.apply(null, arguments); }
|
|
323929
|
-
|
|
323930
|
-
function SvgTabbedView(props) {
|
|
323931
|
-
return /*#__PURE__*/external_react_.createElement("svg", tabbed_view_extends({
|
|
323932
|
-
width: 20,
|
|
323933
|
-
height: 20,
|
|
323934
|
-
fill: "none",
|
|
323935
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
323936
|
-
}, props), tabbed_view_path || (tabbed_view_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
323937
|
-
d: "M17.5 17.5v-15h-15v15h15zm-1.667-1.667H4.167V9.167h11.666v6.666zm0-8.333H4.167V4.167h11.666V7.5zm-7.5-.833H5V5h3.333v1.667z"
|
|
323938
|
-
})), _path2 || (_path2 = /*#__PURE__*/external_react_.createElement("path", {
|
|
323939
|
-
d: "M9.167 6.667H12.5V5H9.167v1.667z"
|
|
323940
|
-
})));
|
|
323941
|
-
}
|
|
323942
|
-
/* harmony default export */ const tabbed_view = (SvgTabbedView);
|
|
323943
|
-
// EXTERNAL MODULE: ./node_modules/react-confirm-alert/lib/index.js
|
|
323944
|
-
var react_confirm_alert_lib = __webpack_require__(23350);
|
|
323631
|
+
const tabbed_view_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjAiDQogIGhlaWdodD0iMjAiDQogIHZpZXdCb3g9IjAgMCAyMCAyMCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNMTcuNSAxNy41VjIuNUgyLjVWMTcuNUgxNy41Wk0xNS44MzMzIDE1LjgzMzNINC4xNjY2N1Y5LjE2NjY3SDE1LjgzMzNWMTUuODMzM1pNMTUuODMzMyA3LjVINC4xNjY2N1Y0LjE2NjY3SDE1LjgzMzNWNy41Wk04LjMzMzMzIDYuNjY2NjdINVY1SDguMzMzMzNWNi42NjY2N1oiIC8+DQogIDxwYXRoIGQ9Ik05LjE2NjY3IDYuNjY2NjdIMTIuNVY1SDkuMTY2NjdWNi42NjY2N1oiIC8+DQo8L3N2Zz4NCg==";
|
|
323945
323632
|
;// ./node_modules/@remix-run/router/dist/router.js
|
|
323946
323633
|
/**
|
|
323947
323634
|
* @remix-run/router v1.20.0
|
|
@@ -331785,18 +331472,15 @@ function useViewTransitionState(to, opts) {
|
|
|
331785
331472
|
|
|
331786
331473
|
//# sourceMappingURL=index.js.map
|
|
331787
331474
|
|
|
331788
|
-
;// ./src/
|
|
331475
|
+
;// ./src/components/Button/styles.module.scss
|
|
331789
331476
|
// extracted by mini-css-extract-plugin
|
|
331790
|
-
|
|
331477
|
+
/* harmony default export */ const styles_module = ({"grey-rpi-grey-15":"#d5d7dc","grey-rpi-grey-40":"#9497a4","grey-rpi-grey-5":"#f1f2f3","grey-rpi-grey-70":"#4a4d59","grey-rpf-white":"#fff","btn":"styles-module__btn--0Px6W","btn--primary":"styles-module__btn--primary--k7oQ0","btn-outer":"styles-module__btn-outer--4KgkG","btn--secondary":"styles-module__btn--secondary--tK09f","btn--tertiary":"styles-module__btn--tertiary--jf5po","btn--danger":"styles-module__btn--danger--SmsoX","btn--small":"styles-module__btn--small--cJ2bM","btnOuter":"styles-module__btnOuter--ip64U","svgOnly":"styles-module__svgOnly--eXeyf","user":"styles-module__user--3fNDf","primary":"styles-module__primary--AeI1M","secondary":"styles-module__secondary--tAMJR","tertiary":"styles-module__tertiary--Kr5w9"});
|
|
331791
331478
|
;// ./src/components/Button/Button.jsx
|
|
331792
331479
|
|
|
331793
331480
|
|
|
331794
331481
|
|
|
331795
331482
|
|
|
331796
331483
|
|
|
331797
|
-
|
|
331798
|
-
|
|
331799
|
-
|
|
331800
331484
|
var Button = props => {
|
|
331801
331485
|
var {
|
|
331802
331486
|
className,
|
|
@@ -331809,33 +331493,25 @@ var Button = props => {
|
|
|
331809
331493
|
buttonOuterClassName,
|
|
331810
331494
|
buttonRef,
|
|
331811
331495
|
disabled,
|
|
331812
|
-
confirmText,
|
|
331813
331496
|
href,
|
|
331814
331497
|
text,
|
|
331815
331498
|
title,
|
|
331816
331499
|
label,
|
|
331817
|
-
buttonIconPosition = "left"
|
|
331500
|
+
buttonIconPosition = "left",
|
|
331501
|
+
variant,
|
|
331502
|
+
isUser
|
|
331818
331503
|
} = props;
|
|
331819
|
-
var {
|
|
331820
|
-
|
|
331821
|
-
|
|
331822
|
-
|
|
331823
|
-
|
|
331824
|
-
|
|
331504
|
+
var VARIANT_CLASSES = {
|
|
331505
|
+
primary: styles_module.primary,
|
|
331506
|
+
secondary: styles_module.secondary,
|
|
331507
|
+
tertiary: styles_module.tertiary
|
|
331508
|
+
};
|
|
331509
|
+
var buttonClass = classnames_default()(styles_module.btn, className, {
|
|
331510
|
+
[styles_module.svgOnly]: !buttonText,
|
|
331511
|
+
[styles_module.user]: isUser
|
|
331512
|
+
}, VARIANT_CLASSES[variant] || '');
|
|
331825
331513
|
var onButtonClick = e => {
|
|
331826
|
-
|
|
331827
|
-
onClickHandler(e);
|
|
331828
|
-
return;
|
|
331829
|
-
}
|
|
331830
|
-
(0,react_confirm_alert_lib/* confirmAlert */.ZX)({
|
|
331831
|
-
message: confirmText,
|
|
331832
|
-
buttons: [{
|
|
331833
|
-
label: t("button.yes"),
|
|
331834
|
-
onClick: () => onClickHandler(e)
|
|
331835
|
-
}, {
|
|
331836
|
-
label: t("button.no")
|
|
331837
|
-
}]
|
|
331838
|
-
});
|
|
331514
|
+
onClickHandler(e);
|
|
331839
331515
|
};
|
|
331840
331516
|
var onKeyDown = e => {
|
|
331841
331517
|
e.stopPropagation();
|
|
@@ -331875,7 +331551,7 @@ var Button = props => {
|
|
|
331875
331551
|
});
|
|
331876
331552
|
if (buttonOuter) {
|
|
331877
331553
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
331878
|
-
className: classnames_default()(
|
|
331554
|
+
className: classnames_default()([styles_module.btnOuter], {
|
|
331879
331555
|
buttonOuterClassName
|
|
331880
331556
|
}),
|
|
331881
331557
|
onClick: onButtonClick,
|
|
@@ -331925,7 +331601,7 @@ var OutputViewToggle = () => {
|
|
|
331925
331601
|
disabled: codeRunTriggered || drawTriggered,
|
|
331926
331602
|
label: isSplitView ? t("outputViewToggle.buttonTabLabel") : t("outputViewToggle.buttonSplitLabel"),
|
|
331927
331603
|
title: isSplitView ? t("outputViewToggle.buttonTabTitle") : t("outputViewToggle.buttonSplitTitle"),
|
|
331928
|
-
ButtonIcon: isSplitView ?
|
|
331604
|
+
ButtonIcon: isSplitView ? tabbed_view_namespaceObject : split_view_namespaceObject,
|
|
331929
331605
|
buttonIconPosition: "right",
|
|
331930
331606
|
onClickHandler: isSplitView ? switchToTabbedView : switchToSplitView
|
|
331931
331607
|
})
|
|
@@ -331959,7 +331635,6 @@ var RunButton = _ref => {
|
|
|
331959
331635
|
};
|
|
331960
331636
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, _objectSpread2({
|
|
331961
331637
|
disabled: !activeRunner || activeRunner !== loadedRunner || codeRunLoading,
|
|
331962
|
-
className: "btn--primary btn--run".concat(className ? " ".concat(className) : ""),
|
|
331963
331638
|
onClickHandler: onClickRun
|
|
331964
331639
|
}, props));
|
|
331965
331640
|
};
|
|
@@ -332015,36 +331690,10 @@ var StopButton = _ref => {
|
|
|
332015
331690
|
return button;
|
|
332016
331691
|
};
|
|
332017
331692
|
/* harmony default export */ const RunButton_StopButton = (StopButton);
|
|
332018
|
-
;// ./src/assets/icons/run.svg
|
|
332019
|
-
|
|
332020
|
-
function run_extends() { return run_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, run_extends.apply(null, arguments); }
|
|
332021
|
-
|
|
332022
|
-
function SvgRun(props) {
|
|
332023
|
-
return /*#__PURE__*/external_react_.createElement("svg", run_extends({
|
|
332024
|
-
width: 11,
|
|
332025
|
-
height: 14,
|
|
332026
|
-
fill: "none",
|
|
332027
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
332028
|
-
}, props), run_path || (run_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
332029
|
-
d: "M0 14V0l11 7-11 7z"
|
|
332030
|
-
})));
|
|
332031
|
-
}
|
|
332032
|
-
/* harmony default export */ const run = (SvgRun);
|
|
331693
|
+
;// ./src/assets/icons/tj-run.svg
|
|
331694
|
+
const tj_run_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0yLjkxNjYzIDEuNzVMMTEuMDgzMyA3TDIuOTE2NjMgMTIuMjVWMS43NVoiIGZpbGw9IiMzMzYyNUUiIHN0cm9rZT0iIzMzNjI1RSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjwvc3ZnPg0K";
|
|
332033
331695
|
;// ./src/assets/icons/stop.svg
|
|
332034
|
-
|
|
332035
|
-
function stop_extends() { return stop_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, stop_extends.apply(null, arguments); }
|
|
332036
|
-
|
|
332037
|
-
function SvgStop(props) {
|
|
332038
|
-
return /*#__PURE__*/external_react_.createElement("svg", stop_extends({
|
|
332039
|
-
width: 12,
|
|
332040
|
-
height: 12,
|
|
332041
|
-
fill: "none",
|
|
332042
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
332043
|
-
}, props), stop_path || (stop_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
332044
|
-
d: "M0 12V0h12v12H0z"
|
|
332045
|
-
})));
|
|
332046
|
-
}
|
|
332047
|
-
/* harmony default export */ const stop = (SvgStop);
|
|
331696
|
+
const stop_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMTIiDQogIGhlaWdodD0iMTIiDQogIHZpZXdCb3g9IjAgMCAxMiAxMiINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNMCAxMlYwSDEyVjEySDBaIiAvPg0KPC9zdmc+DQo=";
|
|
332048
331697
|
;// ./src/components/RunButton/RunnerControls.jsx
|
|
332049
331698
|
|
|
332050
331699
|
|
|
@@ -332053,7 +331702,6 @@ function SvgStop(props) {
|
|
|
332053
331702
|
|
|
332054
331703
|
|
|
332055
331704
|
|
|
332056
|
-
|
|
332057
331705
|
var RunnerControls = _ref => {
|
|
332058
331706
|
var {
|
|
332059
331707
|
embedded = false,
|
|
@@ -332061,21 +331709,19 @@ var RunnerControls = _ref => {
|
|
|
332061
331709
|
} = _ref;
|
|
332062
331710
|
var codeRunTriggered = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.codeRunTriggered);
|
|
332063
331711
|
var drawTriggered = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.drawTriggered);
|
|
332064
|
-
var {
|
|
332065
|
-
t
|
|
332066
|
-
} = useTranslation_useTranslation();
|
|
332067
331712
|
return codeRunTriggered || drawTriggered ? /*#__PURE__*/(0,jsx_runtime.jsx)(RunButton_StopButton, {
|
|
332068
331713
|
embedded: embedded,
|
|
332069
|
-
buttonText:
|
|
332070
|
-
ButtonIcon:
|
|
331714
|
+
buttonText: "Stop",
|
|
331715
|
+
ButtonIcon: stop_namespaceObject,
|
|
332071
331716
|
buttonIconPosition: "right",
|
|
332072
331717
|
buttonOuter: skinny,
|
|
332073
331718
|
className: "btn--stop btn--primary".concat(skinny ? " btn--small" : "")
|
|
332074
331719
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(RunButton_RunButton, {
|
|
332075
331720
|
embedded: embedded,
|
|
332076
|
-
buttonText:
|
|
332077
|
-
ButtonIcon:
|
|
332078
|
-
buttonIconPosition: "
|
|
331721
|
+
buttonText: "Run",
|
|
331722
|
+
ButtonIcon: tj_run_namespaceObject,
|
|
331723
|
+
buttonIconPosition: "left",
|
|
331724
|
+
variant: "primary",
|
|
332079
331725
|
buttonOuter: skinny,
|
|
332080
331726
|
className: skinny ? "btn--small" : ""
|
|
332081
331727
|
});
|
|
@@ -332593,20 +332239,7 @@ var matchingRegexes = (regexArray, testString) => {
|
|
|
332593
332239
|
};
|
|
332594
332240
|
|
|
332595
332241
|
;// ./src/assets/icons/open_in_new_tab.svg
|
|
332596
|
-
|
|
332597
|
-
function open_in_new_tab_extends() { return open_in_new_tab_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, open_in_new_tab_extends.apply(null, arguments); }
|
|
332598
|
-
|
|
332599
|
-
function SvgOpenInNewTab(props) {
|
|
332600
|
-
return /*#__PURE__*/external_react_.createElement("svg", open_in_new_tab_extends({
|
|
332601
|
-
width: 16,
|
|
332602
|
-
height: 16,
|
|
332603
|
-
fill: "none",
|
|
332604
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
332605
|
-
}, props), open_in_new_tab_path || (open_in_new_tab_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
332606
|
-
d: "M2.167.5A1.68 1.68 0 00.5 2.167v11.666c0 .911.756 1.667 1.667 1.667h11.666a1.68 1.68 0 001.667-1.667V8h-1.667v5.833H2.167V2.167H8V.5H2.167zm7.5 0v1.667h2.988L4.91 9.91l1.178 1.178 7.744-7.744v2.988H15.5V.5H9.667z"
|
|
332607
|
-
})));
|
|
332608
|
-
}
|
|
332609
|
-
/* harmony default export */ const open_in_new_tab = (SvgOpenInNewTab);
|
|
332242
|
+
const open_in_new_tab_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMTYiDQogIGhlaWdodD0iMTYiDQogIHZpZXdCb3g9IjAgMCAxNiAxNiINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNMi4xNjY2NyAwLjVDMS4yNTU3OCAwLjUgMC41IDEuMjU1NzggMC41IDIuMTY2NjdWMTMuODMzM0MwLjUgMTQuNzQ0MiAxLjI1NTc4IDE1LjUgMi4xNjY2NyAxNS41SDEzLjgzMzNDMTQuNzQ0MiAxNS41IDE1LjUgMTQuNzQ0MiAxNS41IDEzLjgzMzNWOEgxMy44MzMzVjEzLjgzMzNIMi4xNjY2N1YyLjE2NjY3SDhWMC41SDIuMTY2NjdaTTkuNjY2NjcgMC41VjIuMTY2NjdIMTIuNjU0OUw0LjkxMDgxIDkuOTEwODFMNi4wODkxOSAxMS4wODkyTDEzLjgzMzMgMy4zNDUwNVY2LjMzMzMzSDE1LjVWMC41SDkuNjY2NjdaIiAvPg0KPC9zdmc+DQo=";
|
|
332610
332243
|
;// ./src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx
|
|
332611
332244
|
|
|
332612
332245
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
@@ -332868,7 +332501,7 @@ function HtmlRunner() {
|
|
|
332868
332501
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
332869
332502
|
className: "htmlrunner-link__text",
|
|
332870
332503
|
children: t("output.newTab")
|
|
332871
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
332504
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(open_in_new_tab_namespaceObject, {})]
|
|
332872
332505
|
})]
|
|
332873
332506
|
}), !isEmbedded && isMobile ? /*#__PURE__*/(0,jsx_runtime.jsx)(RunButton_RunnerControls, {
|
|
332874
332507
|
skinny: true
|
|
@@ -332913,7 +332546,7 @@ var RunnerFactory = _ref => {
|
|
|
332913
332546
|
/* harmony default export */ const Runners_RunnerFactory = (RunnerFactory);
|
|
332914
332547
|
;// ./src/components/RunButton/styles.module.scss
|
|
332915
332548
|
// extracted by mini-css-extract-plugin
|
|
332916
|
-
/* harmony default export */ const
|
|
332549
|
+
/* harmony default export */ const RunButton_styles_module = ({"grey-rpi-grey-15":"#d5d7dc","grey-rpi-grey-40":"#9497a4","grey-rpi-grey-5":"#f1f2f3","grey-rpi-grey-70":"#4a4d59","grey-rpf-white":"#fff","runBar":"styles-module__runBar--JA+8h"});
|
|
332917
332550
|
;// ./src/components/RunButton/RunBar.jsx
|
|
332918
332551
|
|
|
332919
332552
|
|
|
@@ -332924,7 +332557,7 @@ var RunBar = _ref => {
|
|
|
332924
332557
|
embedded = false
|
|
332925
332558
|
} = _ref;
|
|
332926
332559
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
332927
|
-
className:
|
|
332560
|
+
className: RunButton_styles_module.runBar,
|
|
332928
332561
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RunButton_RunnerControls, {
|
|
332929
332562
|
embedded: embedded
|
|
332930
332563
|
})
|
|
@@ -334379,35 +334012,9 @@ eventManager.on(2
|
|
|
334379
334012
|
//# sourceMappingURL=react-toastify.esm.js.map
|
|
334380
334013
|
|
|
334381
334014
|
;// ./src/assets/icons/info.svg
|
|
334382
|
-
|
|
334383
|
-
function info_extends() { return info_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, info_extends.apply(null, arguments); }
|
|
334384
|
-
|
|
334385
|
-
function SvgInfo(props) {
|
|
334386
|
-
return /*#__PURE__*/external_react_.createElement("svg", info_extends({
|
|
334387
|
-
width: 24,
|
|
334388
|
-
height: 24,
|
|
334389
|
-
fill: "none",
|
|
334390
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
334391
|
-
}, props), info_path || (info_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
334392
|
-
d: "M11 17h2v-6h-2v6zm1-8a.968.968 0 00.713-.288A.967.967 0 0013 8a.97.97 0 00-.287-.713A.97.97 0 0012 7a.967.967 0 00-.712.287A.968.968 0 0011 8c0 .283.096.52.288.712A.965.965 0 0012 9zm0 13a9.733 9.733 0 01-3.9-.788 10.092 10.092 0 01-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.733 9.733 0 012 12c0-1.383.263-2.683.788-3.9a10.092 10.092 0 012.137-3.175c.9-.9 1.958-1.613 3.175-2.138A9.743 9.743 0 0112 2c1.383 0 2.683.262 3.9.787a10.105 10.105 0 013.175 2.138c.9.9 1.612 1.958 2.137 3.175A9.733 9.733 0 0122 12a9.733 9.733 0 01-.788 3.9 10.092 10.092 0 01-2.137 3.175c-.9.9-1.958 1.612-3.175 2.137A9.733 9.733 0 0112 22zm0-2c2.217 0 4.104-.779 5.663-2.337C19.221 16.104 20 14.217 20 12s-.779-4.104-2.337-5.663C16.104 4.779 14.217 4 12 4s-4.104.779-5.662 2.337C4.779 7.896 4 9.783 4 12s.78 4.104 2.338 5.663C7.896 19.221 9.783 20 12 20z"
|
|
334393
|
-
})));
|
|
334394
|
-
}
|
|
334395
|
-
/* harmony default export */ const info = (SvgInfo);
|
|
334015
|
+
const info_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub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M4MzMgMjEuNzM3MyAxNC42ODMzIDIxLjIxMiAxNS45QzIwLjY4NzMgMTcuMTE2NyAxOS45NzUgMTguMTc1IDE5LjA3NSAxOS4wNzVDMTguMTc1IDE5Ljk3NSAxNy4xMTY3IDIwLjY4NzMgMTUuOSAyMS4yMTJDMTQuNjgzMyAyMS43MzczIDEzLjM4MzMgMjIgMTIgMjJaTTEyIDIwQzE0LjIxNjcgMjAgMTYuMTA0MyAxOS4yMjEgMTcuNjYzIDE3LjY2M0MxOS4yMjEgMTYuMTA0MyAyMCAxNC4yMTY3IDIwIDEyQzIwIDkuNzgzMzMgMTkuMjIxIDcuODk1NjcgMTcuNjYzIDYuMzM3QzE2LjEwNDMgNC43NzkgMTQuMjE2NyA0IDEyIDRDOS43ODMzMyA0IDcuODk2IDQuNzc5IDYuMzM4IDYuMzM3QzQuNzc5MzMgNy44OTU2NyA0IDkuNzgzMzMgNCAxMkM0IDE0LjIxNjcgNC43NzkzMyAxNi4xMDQzIDYuMzM4IDE3LjY2M0M3Ljg5NiAxOS4yMjEgOS43ODMzMyAyMCAxMiAyMFoiIC8+DQo8L3N2Zz4NCg==";
|
|
334396
334016
|
;// ./src/assets/icons/tick.svg
|
|
334397
|
-
|
|
334398
|
-
function tick_extends() { return tick_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, tick_extends.apply(null, arguments); }
|
|
334399
|
-
|
|
334400
|
-
function SvgTick(props) {
|
|
334401
|
-
return /*#__PURE__*/external_react_.createElement("svg", tick_extends({
|
|
334402
|
-
width: 18,
|
|
334403
|
-
height: 13,
|
|
334404
|
-
fill: "none",
|
|
334405
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
334406
|
-
}, props), tick_path || (tick_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
334407
|
-
d: "M6.55 13L.85 7.3l1.425-1.425L6.55 10.15 15.725.975 17.15 2.4 6.55 13z"
|
|
334408
|
-
})));
|
|
334409
|
-
}
|
|
334410
|
-
/* harmony default export */ const tick = (SvgTick);
|
|
334017
|
+
const tick_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMTgiDQogIGhlaWdodD0iMTMiDQogIHZpZXdCb3g9IjAgMCAxOCAxMyINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNNi41NTAwMSAxM0wwLjg1MDAwNiA3LjI5OTk4TDIuMjc1MDEgNS44NzQ5OEw2LjU1MDAxIDEwLjE1TDE1LjcyNSAwLjk3NDk3NkwxNy4xNSAyLjM5OTk4TDYuNTUwMDEgMTNaIiAvPg0KPC9zdmc+DQo=";
|
|
334411
334018
|
;// ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
334412
334019
|
function _assertThisInitialized(e) {
|
|
334413
334020
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -337100,7 +336707,7 @@ var topCenterSettings = {
|
|
|
337100
336707
|
var showSavePrompt = () => {
|
|
337101
336708
|
react_toastify_esm_toast(src_i18n.t("notifications.savePrompt"), _objectSpread2(_objectSpread2({}, topCenterSettings), {}, {
|
|
337102
336709
|
className: "".concat(topCenterSettings.className, " toast--info"),
|
|
337103
|
-
icon:
|
|
336710
|
+
icon: info_namespaceObject
|
|
337104
336711
|
}));
|
|
337105
336712
|
};
|
|
337106
336713
|
var showLoginPrompt = () => {
|
|
@@ -337111,7 +336718,7 @@ var showLoginPrompt = () => {
|
|
|
337111
336718
|
};
|
|
337112
336719
|
var showSavedMessage = () => {
|
|
337113
336720
|
react_toastify_esm_toast(src_i18n.t("notifications.projectSaved"), _objectSpread2(_objectSpread2({}, bottomCenterSettings), {}, {
|
|
337114
|
-
icon:
|
|
336721
|
+
icon: tick_namespaceObject
|
|
337115
336722
|
}));
|
|
337116
336723
|
};
|
|
337117
336724
|
var showRenamedMessage = () => {
|
|
@@ -337120,35 +336727,9 @@ var showRenamedMessage = () => {
|
|
|
337120
336727
|
}));
|
|
337121
336728
|
};
|
|
337122
336729
|
;// ./src/assets/icons/cloud_tick.svg
|
|
337123
|
-
|
|
337124
|
-
function cloud_tick_extends() { return cloud_tick_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, cloud_tick_extends.apply(null, arguments); }
|
|
337125
|
-
|
|
337126
|
-
function SvgCloudTick(props) {
|
|
337127
|
-
return /*#__PURE__*/external_react_.createElement("svg", cloud_tick_extends({
|
|
337128
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
337129
|
-
height: 24,
|
|
337130
|
-
viewBox: "0 -960 960 960",
|
|
337131
|
-
width: 24
|
|
337132
|
-
}, props), cloud_tick_path || (cloud_tick_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
337133
|
-
d: "M414-280l226-226-58-58-169 169-84-84-57 57 142 142zM260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q25-92 100-149t170-57q117 0 198.5 81.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H260zm0-80h480q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-83-58.5-141.5T480-720q-83 0-141.5 58.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41zm220-240z"
|
|
337134
|
-
})));
|
|
337135
|
-
}
|
|
337136
|
-
/* harmony default export */ const cloud_tick = (SvgCloudTick);
|
|
336730
|
+
const cloud_tick_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJtNDE0LTI4MCAyMjYtMjI2LTU4LTU4LTE2OSAxNjktODQtODQtNTcgNTcgMTQyIDE0MlpNMjYwLTE2MHEtOTEgMC0xNTUuNS02M1Q0MC0zNzdxMC03OCA0Ny0xMzl0MTIzLTc4cTI1LTkyIDEwMC0xNDl0MTcwLTU3cTExNyAwIDE5OC41IDgxLjVUNzYwLTUyMHE2OSA4IDExNC41IDU5LjVUOTIwLTM0MHEwIDc1LTUyLjUgMTI3LjVUNzQwLTE2MEgyNjBabTAtODBoNDgwcTQyIDAgNzEtMjl0MjktNzFxMC00Mi0yOS03MXQtNzEtMjloLTYwdi04MHEwLTgzLTU4LjUtMTQxLjVUNDgwLTcyMHEtODMgMC0xNDEuNSA1OC41VDI4MC01MjBoLTIwcS01OCAwLTk5IDQxdC00MSA5OXEwIDU4IDQxIDk5dDk5IDQxWm0yMjAtMjQwWiIvPjwvc3ZnPg==";
|
|
337137
336731
|
;// ./src/assets/icons/cloud_upload.svg
|
|
337138
|
-
|
|
337139
|
-
function cloud_upload_extends() { return cloud_upload_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, cloud_upload_extends.apply(null, arguments); }
|
|
337140
|
-
|
|
337141
|
-
function SvgCloudUpload(props) {
|
|
337142
|
-
return /*#__PURE__*/external_react_.createElement("svg", cloud_upload_extends({
|
|
337143
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
337144
|
-
height: 24,
|
|
337145
|
-
viewBox: "0 -960 960 960",
|
|
337146
|
-
width: 24
|
|
337147
|
-
}, props), cloud_upload_path || (cloud_upload_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
337148
|
-
d: "M260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q25-92 100-149t170-57q117 0 198.5 81.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H520q-33 0-56.5-23.5T440-240v-206l-64 62-56-56 160-160 160 160-56 56-64-62v206h220q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-83-58.5-141.5T480-720q-83 0-141.5 58.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41h100v80H260zm220-280z"
|
|
337149
|
-
})));
|
|
337150
|
-
}
|
|
337151
|
-
/* harmony default export */ const cloud_upload = (SvgCloudUpload);
|
|
336732
|
+
const cloud_upload_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNMjYwLTE2MHEtOTEgMC0xNTUuNS02M1Q0MC0zNzdxMC03OCA0Ny0xMzl0MTIzLTc4cTI1LTkyIDEwMC0xNDl0MTcwLTU3cTExNyAwIDE5OC41IDgxLjVUNzYwLTUyMHE2OSA4IDExNC41IDU5LjVUOTIwLTM0MHEwIDc1LTUyLjUgMTI3LjVUNzQwLTE2MEg1MjBxLTMzIDAtNTYuNS0yMy41VDQ0MC0yNDB2LTIwNmwtNjQgNjItNTYtNTYgMTYwLTE2MCAxNjAgMTYwLTU2IDU2LTY0LTYydjIwNmgyMjBxNDIgMCA3MS0yOXQyOS03MXEwLTQyLTI5LTcxdC03MS0yOWgtNjB2LTgwcTAtODMtNTguNS0xNDEuNVQ0ODAtNzIwcS04MyAwLTE0MS41IDU4LjVUMjgwLTUyMGgtMjBxLTU4IDAtOTkgNDF0LTQxIDk5cTAgNTggNDEgOTl0OTkgNDFoMTAwdjgwSDI2MFptMjIwLTI4MFoiLz48L3N2Zz4=";
|
|
337152
336733
|
;// ./src/assets/stylesheets/SaveStatus.scss
|
|
337153
336734
|
// extracted by mini-css-extract-plugin
|
|
337154
336735
|
|
|
@@ -338340,7 +337921,7 @@ var SaveStatus = _ref => {
|
|
|
338340
337921
|
children: isPending ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
338341
337922
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
338342
337923
|
className: "save-status__icon",
|
|
338343
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
337924
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(cloud_upload_namespaceObject, {})
|
|
338344
337925
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
338345
337926
|
className: "save-status__text",
|
|
338346
337927
|
children: [t("saveStatus.saving"), "\u2026"]
|
|
@@ -338348,7 +337929,7 @@ var SaveStatus = _ref => {
|
|
|
338348
337929
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
338349
337930
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
338350
337931
|
className: "save-status__icon",
|
|
338351
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
337932
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(cloud_tick_namespaceObject, {})
|
|
338352
337933
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
338353
337934
|
className: "save-status__text",
|
|
338354
337935
|
children: [t("saveStatus.saved"), " ", formatRelativeTime(lastSavedTime, time, locale, fallbackLng)]
|
|
@@ -338357,36 +337938,12 @@ var SaveStatus = _ref => {
|
|
|
338357
337938
|
});
|
|
338358
337939
|
};
|
|
338359
337940
|
/* harmony default export */ const SaveStatus_SaveStatus = (SaveStatus);
|
|
338360
|
-
;// ./src/assets/icons/download.svg
|
|
338361
|
-
|
|
338362
|
-
|
|
338363
|
-
|
|
338364
|
-
function SvgDownload(props) {
|
|
338365
|
-
return /*#__PURE__*/external_react_.createElement("svg", download_extends({
|
|
338366
|
-
width: 24,
|
|
338367
|
-
height: 24,
|
|
338368
|
-
fill: "none",
|
|
338369
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
338370
|
-
}, props), download_path || (download_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
338371
|
-
d: "M12 16l-5-5 1.4-1.45 2.6 2.6V4h2v8.15l2.6-2.6L17 11l-5 5zm-8 4v-5h2v3h12v-3h2v5H4z"
|
|
338372
|
-
})));
|
|
338373
|
-
}
|
|
338374
|
-
/* harmony default export */ const download = (SvgDownload);
|
|
337941
|
+
;// ./src/assets/icons/tj-download.svg
|
|
337942
|
+
const tj_download_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik04IDEwVjJNOCAxMEw0LjY2NjY3IDYuNjY2NjdNOCAxMEwxMS4zMzMzIDYuNjY2NjdNMTQgMTBWMTIuNjY2N0MxNCAxMy4wMjAzIDEzLjg1OTUgMTMuMzU5NCAxMy42MDk1IDEzLjYwOTVDMTMuMzU5NCAxMy44NTk1IDEzLjAyMDMgMTQgMTIuNjY2NyAxNEgzLjMzMzMzQzIuOTc5NzEgMTQgMi42NDA1NyAxMy44NTk1IDIuMzkwNTIgMTMuNjA5NUMyLjE0MDQ4IDEzLjM1OTQgMiAxMy4wMjAzIDIgMTIuNjY2N1YxMCIgc3Ryb2tlPSIjMzM2MjVFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8L3N2Zz4NCg==";
|
|
337943
|
+
;// ./src/assets/text_jam_logo.svg
|
|
337944
|
+
const text_jam_logo_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTU1IiBoZWlnaHQ9IjM2IiB2aWV3Qm94PSIwIDAgMTU1IDM2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vc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yNzlIMS4zNjI3NlY1LjIxMjgySDQuMDI2OTVWMy44NTAwN0gwVjM1Ljk5MDdIODkuODYwMlYzMC43ODVIODguNDk3NVoiIGZpbGw9IiNBMzE3NDYiLz4NCjwvc3ZnPg0K";
|
|
338375
337945
|
;// ./src/assets/icons/pencil.svg
|
|
338376
|
-
|
|
338377
|
-
function pencil_extends() { return pencil_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, pencil_extends.apply(null, arguments); }
|
|
338378
|
-
|
|
338379
|
-
function SvgPencil(props) {
|
|
338380
|
-
return /*#__PURE__*/external_react_.createElement("svg", pencil_extends({
|
|
338381
|
-
width: 24,
|
|
338382
|
-
height: 24,
|
|
338383
|
-
fill: "none",
|
|
338384
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
338385
|
-
}, props), pencil_path || (pencil_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
338386
|
-
d: "M5 19h1.4l8.625-8.625-1.4-1.4L5 17.6V19zM19.3 8.925l-4.25-4.2 1.4-1.4a1.92 1.92 0 011.413-.575 1.92 1.92 0 011.412.575l1.4 1.4c.383.383.583.846.6 1.388a1.806 1.806 0 01-.55 1.387L19.3 8.925zM17.85 10.4L7.25 21H3v-4.25l10.6-10.6 4.25 4.25zm-3.525-.725l-.7-.7 1.4 1.4-.7-.7z"
|
|
338387
|
-
})));
|
|
338388
|
-
}
|
|
338389
|
-
/* harmony default export */ const pencil = (SvgPencil);
|
|
337946
|
+
const pencil_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNNSAxOUg2LjRMMTUuMDI1IDEwLjM3NUwxMy42MjUgOC45NzVMNSAxNy42VjE5Wk0xOS4zIDguOTI1TDE1LjA1IDQuNzI1TDE2LjQ1IDMuMzI1QzE2LjgzMzMgMi45NDE2NyAxNy4zMDQzIDIuNzUgMTcuODYzIDIuNzVDMTguNDIxIDIuNzUgMTguODkxNyAyLjk0MTY3IDE5LjI3NSAzLjMyNUwyMC42NzUgNC43MjVDMjEuMDU4MyA1LjEwODMzIDIxLjI1ODMgNS41NzEgMjEuMjc1IDYuMTEzQzIxLjI5MTcgNi42NTQzMyAyMS4xMDgzIDcuMTE2NjcgMjAuNzI1IDcuNUwxOS4zIDguOTI1Wk0xNy44NSAxMC40TDcuMjUgMjFIM1YxNi43NUwxMy42IDYuMTVMMTcuODUgMTAuNFpNMTQuMzI1IDkuNjc1TDEzLjYyNSA4Ljk3NUwxNS4wMjUgMTAuMzc1TDE0LjMyNSA5LjY3NVoiIC8+DQo8L3N2Zz4NCg==";
|
|
338390
337947
|
;// ./node_modules/@raspberrypifoundation/design-system-react/dist/design-system-react.js
|
|
338391
337948
|
|
|
338392
337949
|
|
|
@@ -339786,7 +339343,7 @@ var ProjectName = _ref => {
|
|
|
339786
339343
|
className: "project-name__button",
|
|
339787
339344
|
"aria-label": t(isEditing ? "header.renameSave" : "header.renameProject"),
|
|
339788
339345
|
title: t(isEditing ? "header.renameSave" : "header.renameProject"),
|
|
339789
|
-
icon: isEditing ? /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
339346
|
+
icon: isEditing ? /*#__PURE__*/(0,jsx_runtime.jsx)(tick_namespaceObject, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)(pencil_namespaceObject, {}),
|
|
339790
339347
|
onClick: isEditing ? updateName : onEditNameButtonClick,
|
|
339791
339348
|
type: isEditing ? "primary" : "tertiary"
|
|
339792
339349
|
})
|
|
@@ -339810,8 +339367,6 @@ var jszip_utils_lib_default = /*#__PURE__*/__webpack_require__.n(jszip_utils_lib
|
|
|
339810
339367
|
|
|
339811
339368
|
|
|
339812
339369
|
|
|
339813
|
-
var DownloadButton_excluded = ["buttonText", "className", "Icon", "type"];
|
|
339814
|
-
|
|
339815
339370
|
|
|
339816
339371
|
|
|
339817
339372
|
|
|
@@ -339821,13 +339376,6 @@ var DownloadButton_excluded = ["buttonText", "className", "Icon", "type"];
|
|
|
339821
339376
|
|
|
339822
339377
|
|
|
339823
339378
|
var DownloadButton = props => {
|
|
339824
|
-
var {
|
|
339825
|
-
buttonText,
|
|
339826
|
-
className,
|
|
339827
|
-
Icon,
|
|
339828
|
-
type = "secondary"
|
|
339829
|
-
} = props,
|
|
339830
|
-
otherProps = objectWithoutProperties_objectWithoutProperties(props, DownloadButton_excluded);
|
|
339831
339379
|
var {
|
|
339832
339380
|
t
|
|
339833
339381
|
} = useTranslation_useTranslation();
|
|
@@ -339868,14 +339416,9 @@ var DownloadButton = props => {
|
|
|
339868
339416
|
return _ref.apply(this, arguments);
|
|
339869
339417
|
};
|
|
339870
339418
|
}();
|
|
339871
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
339872
|
-
|
|
339873
|
-
|
|
339874
|
-
text: buttonText,
|
|
339875
|
-
textAlways: true,
|
|
339876
|
-
icon: Icon ? /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {}) : null,
|
|
339877
|
-
type: type
|
|
339878
|
-
}, otherProps));
|
|
339419
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, _objectSpread2({
|
|
339420
|
+
onClickHandler: onClickDownload
|
|
339421
|
+
}, props));
|
|
339879
339422
|
};
|
|
339880
339423
|
/* harmony default export */ const DownloadButton_DownloadButton = (DownloadButton);
|
|
339881
339424
|
;// ./src/events/WebComponentCustomEvents.js
|
|
@@ -339897,20 +339440,7 @@ var signUpEvent = webComponentCustomEvent("editor-signUp");
|
|
|
339897
339440
|
var quizReadyEvent = webComponentCustomEvent("editor-quizReady");
|
|
339898
339441
|
var themeUpdatedEvent = detail => webComponentCustomEvent("editor-themeUpdated", detail);
|
|
339899
339442
|
;// ./src/assets/icons/save.svg
|
|
339900
|
-
|
|
339901
|
-
function save_extends() { return save_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, save_extends.apply(null, arguments); }
|
|
339902
|
-
|
|
339903
|
-
function SvgSave(props) {
|
|
339904
|
-
return /*#__PURE__*/external_react_.createElement("svg", save_extends({
|
|
339905
|
-
width: 24,
|
|
339906
|
-
height: 24,
|
|
339907
|
-
fill: "none",
|
|
339908
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
339909
|
-
}, props), save_path || (save_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
339910
|
-
d: "M3 21V3h14l4 4v14H3zm2-2h14V7.85L16.15 5H5v14zm7-1c.833 0 1.542-.292 2.125-.875A2.893 2.893 0 0015 15c0-.833-.292-1.542-.875-2.125A2.893 2.893 0 0012 12c-.833 0-1.542.292-2.125.875A2.893 2.893 0 009 15c0 .833.292 1.542.875 2.125A2.893 2.893 0 0012 18zm-6-8h9V6H6v4zm-1 9V5v14z"
|
|
339911
|
-
})));
|
|
339912
|
-
}
|
|
339913
|
-
/* harmony default export */ const save = (SvgSave);
|
|
339443
|
+
const save_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNMyAyMVYzSDE3TDIxIDdWMjFIM1pNNSAxOUgxOVY3Ljg1TDE2LjE1IDVINVYxOVpNMTIgMThDMTIuODMzMyAxOCAxMy41NDE3IDE3LjcwODMgMTQuMTI1IDE3LjEyNUMxNC43MDgzIDE2LjU0MTcgMTUgMTUuODMzMyAxNSAxNUMxNSAxNC4xNjY3IDE0LjcwODMgMTMuNDU4MyAxNC4xMjUgMTIuODc1QzEzLjU0MTcgMTIuMjkxNyAxMi44MzMzIDEyIDEyIDEyQzExLjE2NjcgMTIgMTAuNDU4MyAxMi4yOTE3IDkuODc1IDEyLjg3NUM5LjI5MTY3IDEzLjQ1ODMgOSAxNC4xNjY3IDkgMTVDOSAxNS44MzMzIDkuMjkxNjcgMTYuNTQxNyA5Ljg3NSAxNy4xMjVDMTAuNDU4MyAxNy43MDgzIDExLjE2NjcgMTggMTIgMThaTTYgMTBIMTVWNkg2VjEwWk01IDE5VjVWMTlaIiAvPg0KPC9zdmc+DQo=";
|
|
339914
339444
|
;// ./src/components/SaveButton/SaveButton.jsx
|
|
339915
339445
|
|
|
339916
339446
|
|
|
@@ -339951,15 +339481,15 @@ var SaveButton = _ref => {
|
|
|
339951
339481
|
onClick: onClickSave,
|
|
339952
339482
|
text: t("header.save"),
|
|
339953
339483
|
textAlways: true,
|
|
339954
|
-
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
339484
|
+
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(save_namespaceObject, {}),
|
|
339955
339485
|
type: buttonType,
|
|
339956
339486
|
fill: fill
|
|
339957
339487
|
});
|
|
339958
339488
|
};
|
|
339959
339489
|
/* harmony default export */ const SaveButton_SaveButton = (SaveButton);
|
|
339960
|
-
;// ./src/
|
|
339490
|
+
;// ./src/components/ProjectBar/styles.module.scss
|
|
339961
339491
|
// extracted by mini-css-extract-plugin
|
|
339962
|
-
|
|
339492
|
+
/* harmony default export */ const ProjectBar_styles_module = ({"grey-rpi-grey-15":"#d5d7dc","grey-rpi-grey-40":"#9497a4","grey-rpi-grey-5":"#f1f2f3","grey-rpi-grey-70":"#4a4d59","grey-rpf-white":"#fff","btnSvg":"styles-module__btnSvg--Ri2uZ"});
|
|
339963
339493
|
;// ./src/components/ProjectBar/ProjectBar.jsx
|
|
339964
339494
|
|
|
339965
339495
|
|
|
@@ -339975,16 +339505,17 @@ var ProjectBar = _ref => {
|
|
|
339975
339505
|
var {
|
|
339976
339506
|
nameEditable = true
|
|
339977
339507
|
} = _ref;
|
|
339978
|
-
var {
|
|
339979
|
-
t
|
|
339980
|
-
} = useTranslation_useTranslation();
|
|
339981
339508
|
var loading = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.loading);
|
|
339982
339509
|
var saving = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.saving);
|
|
339983
339510
|
var lastSavedTime = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.lastSavedTime);
|
|
339984
339511
|
var readOnly = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.readOnly);
|
|
339985
339512
|
return loading === "success" && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
339986
339513
|
className: "project-bar",
|
|
339987
|
-
children: [
|
|
339514
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
339515
|
+
className: "textJam-logo",
|
|
339516
|
+
src: text_jam_logo_namespaceObject,
|
|
339517
|
+
alt: "TextJam logo"
|
|
339518
|
+
}), loading === "success" && /*#__PURE__*/(0,jsx_runtime.jsx)(ProjectName_ProjectName, {
|
|
339988
339519
|
editable: !readOnly && nameEditable,
|
|
339989
339520
|
isHeading: true
|
|
339990
339521
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -339992,10 +339523,8 @@ var ProjectBar = _ref => {
|
|
|
339992
339523
|
children: [loading === "success" && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
339993
339524
|
className: "project-bar__btn-wrapper",
|
|
339994
339525
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadButton_DownloadButton, {
|
|
339995
|
-
|
|
339996
|
-
|
|
339997
|
-
Icon: download,
|
|
339998
|
-
type: "tertiary"
|
|
339526
|
+
className: ProjectBar_styles_module.btnSvg,
|
|
339527
|
+
ButtonIcon: tj_download_namespaceObject
|
|
339999
339528
|
})
|
|
340000
339529
|
}), loading === "success" && !readOnly && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
340001
339530
|
className: "project-bar__btn-wrapper",
|
|
@@ -340010,1651 +339539,86 @@ var ProjectBar = _ref => {
|
|
|
340010
339539
|
});
|
|
340011
339540
|
};
|
|
340012
339541
|
/* harmony default export */ const ProjectBar_ProjectBar = (ProjectBar);
|
|
340013
|
-
;// ./src/
|
|
340014
|
-
|
|
340015
|
-
|
|
340016
|
-
|
|
340017
|
-
function SvgEllipsisVertical(props) {
|
|
340018
|
-
return /*#__PURE__*/external_react_.createElement("svg", ellipsis_vertical_extends({
|
|
340019
|
-
width: 4,
|
|
340020
|
-
height: 16,
|
|
340021
|
-
fill: "none",
|
|
340022
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
340023
|
-
}, props), ellipsis_vertical_path || (ellipsis_vertical_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
340024
|
-
d: "M2 16c-.55 0-1.02-.196-1.412-.587A1.927 1.927 0 010 14c0-.55.196-1.021.588-1.413A1.925 1.925 0 012 12c.55 0 1.021.196 1.413.587.391.392.587.863.587 1.413s-.196 1.021-.587 1.413A1.928 1.928 0 012 16zm0-6c-.55 0-1.02-.196-1.412-.588A1.923 1.923 0 010 8c0-.55.196-1.021.588-1.413A1.925 1.925 0 012 6c.55 0 1.021.196 1.413.587C3.804 6.979 4 7.45 4 8s-.196 1.02-.587 1.412A1.927 1.927 0 012 10zm0-6C1.45 4 .98 3.804.588 3.412A1.923 1.923 0 010 2C0 1.45.196.98.588.588A1.923 1.923 0 012 0c.55 0 1.021.196 1.413.588C3.804.979 4 1.45 4 2c0 .55-.196 1.02-.587 1.412A1.927 1.927 0 012 4z"
|
|
340025
|
-
})));
|
|
340026
|
-
}
|
|
340027
|
-
/* harmony default export */ const ellipsis_vertical = (SvgEllipsisVertical);
|
|
340028
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/_virtual/_rollupPluginBabelHelpers.js
|
|
340029
|
-
function _rollupPluginBabelHelpers_extends() {
|
|
340030
|
-
_rollupPluginBabelHelpers_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
340031
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
340032
|
-
var source = arguments[i];
|
|
340033
|
-
for (var key in source) {
|
|
340034
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
340035
|
-
target[key] = source[key];
|
|
340036
|
-
}
|
|
340037
|
-
}
|
|
340038
|
-
}
|
|
340039
|
-
return target;
|
|
340040
|
-
};
|
|
340041
|
-
return _rollupPluginBabelHelpers_extends.apply(this, arguments);
|
|
340042
|
-
}
|
|
340043
|
-
function _rollupPluginBabelHelpers_objectWithoutPropertiesLoose(source, excluded) {
|
|
340044
|
-
if (source == null) return {};
|
|
340045
|
-
var target = {};
|
|
340046
|
-
var sourceKeys = Object.keys(source);
|
|
340047
|
-
var key, i;
|
|
340048
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
340049
|
-
key = sourceKeys[i];
|
|
340050
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
340051
|
-
target[key] = source[key];
|
|
340052
|
-
}
|
|
340053
|
-
return target;
|
|
340054
|
-
}
|
|
340055
|
-
|
|
340056
|
-
|
|
340057
|
-
|
|
340058
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/utils/utils.js
|
|
340059
|
-
|
|
340060
|
-
|
|
340061
|
-
var isMenuOpen = function isMenuOpen(state) {
|
|
340062
|
-
return !!state && state[0] === 'o';
|
|
340063
|
-
};
|
|
340064
|
-
var batchedUpdates = external_react_dom_.unstable_batchedUpdates || function (callback) {
|
|
340065
|
-
return callback();
|
|
340066
|
-
};
|
|
340067
|
-
var values = Object.values || function (obj) {
|
|
340068
|
-
return Object.keys(obj).map(function (key) {
|
|
340069
|
-
return obj[key];
|
|
340070
|
-
});
|
|
340071
|
-
};
|
|
340072
|
-
var floatEqual = function floatEqual(a, b, diff) {
|
|
340073
|
-
if (diff === void 0) {
|
|
340074
|
-
diff = 0.0001;
|
|
340075
|
-
}
|
|
340076
|
-
return Math.abs(a - b) < diff;
|
|
340077
|
-
};
|
|
340078
|
-
var getTransition = function getTransition(transition, name) {
|
|
340079
|
-
return transition === true || !!(transition && transition[name]);
|
|
340080
|
-
};
|
|
340081
|
-
var safeCall = function safeCall(fn, arg) {
|
|
340082
|
-
return typeof fn === 'function' ? fn(arg) : fn;
|
|
340083
|
-
};
|
|
340084
|
-
var internalKey = '_szhsinMenu';
|
|
340085
|
-
var getName = function getName(component) {
|
|
340086
|
-
return component[internalKey];
|
|
340087
|
-
};
|
|
340088
|
-
var defineName = function defineName(name, component) {
|
|
340089
|
-
return Object.defineProperty(component, internalKey, {
|
|
340090
|
-
value: name
|
|
340091
|
-
});
|
|
340092
|
-
};
|
|
340093
|
-
var utils_mergeProps = function mergeProps(target, source) {
|
|
340094
|
-
source && Object.keys(source).forEach(function (key) {
|
|
340095
|
-
var targetProp = target[key];
|
|
340096
|
-
var sourceProp = source[key];
|
|
340097
|
-
if (typeof sourceProp === 'function' && targetProp) {
|
|
340098
|
-
target[key] = function () {
|
|
340099
|
-
sourceProp.apply(void 0, arguments);
|
|
340100
|
-
targetProp.apply(void 0, arguments);
|
|
340101
|
-
};
|
|
340102
|
-
} else {
|
|
340103
|
-
target[key] = sourceProp;
|
|
340104
|
-
}
|
|
340105
|
-
});
|
|
340106
|
-
return target;
|
|
340107
|
-
};
|
|
340108
|
-
var parsePadding = function parsePadding(paddingStr) {
|
|
340109
|
-
if (typeof paddingStr !== 'string') return {
|
|
340110
|
-
top: 0,
|
|
340111
|
-
right: 0,
|
|
340112
|
-
bottom: 0,
|
|
340113
|
-
left: 0
|
|
340114
|
-
};
|
|
340115
|
-
var padding = paddingStr.trim().split(/\s+/, 4).map(parseFloat);
|
|
340116
|
-
var top = !isNaN(padding[0]) ? padding[0] : 0;
|
|
340117
|
-
var right = !isNaN(padding[1]) ? padding[1] : top;
|
|
340118
|
-
return {
|
|
340119
|
-
top: top,
|
|
340120
|
-
right: right,
|
|
340121
|
-
bottom: !isNaN(padding[2]) ? padding[2] : top,
|
|
340122
|
-
left: !isNaN(padding[3]) ? padding[3] : right
|
|
340123
|
-
};
|
|
340124
|
-
};
|
|
340125
|
-
var getScrollAncestor = function getScrollAncestor(node) {
|
|
340126
|
-
while (node) {
|
|
340127
|
-
node = node.parentNode;
|
|
340128
|
-
if (!node || node === document.body || !node.parentNode) return;
|
|
340129
|
-
var _getComputedStyle = getComputedStyle(node),
|
|
340130
|
-
overflow = _getComputedStyle.overflow,
|
|
340131
|
-
overflowX = _getComputedStyle.overflowX,
|
|
340132
|
-
overflowY = _getComputedStyle.overflowY;
|
|
340133
|
-
if (/auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX)) return node;
|
|
340134
|
-
}
|
|
340135
|
-
};
|
|
340136
|
-
function commonProps(isDisabled, isHovering) {
|
|
340137
|
-
return {
|
|
340138
|
-
'aria-disabled': isDisabled || undefined,
|
|
340139
|
-
tabIndex: isHovering ? 0 : -1
|
|
340140
|
-
};
|
|
340141
|
-
}
|
|
340142
|
-
function indexOfNode(nodeList, node) {
|
|
340143
|
-
for (var i = 0; i < nodeList.length; i++) {
|
|
340144
|
-
if (nodeList[i] === node) return i;
|
|
340145
|
-
}
|
|
340146
|
-
return -1;
|
|
340147
|
-
}
|
|
340148
|
-
|
|
340149
|
-
|
|
340150
|
-
|
|
340151
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useBEM.js
|
|
340152
|
-
|
|
340153
|
-
|
|
340154
|
-
var useBEM = function useBEM(_ref) {
|
|
340155
|
-
var block = _ref.block,
|
|
340156
|
-
element = _ref.element,
|
|
340157
|
-
modifiers = _ref.modifiers,
|
|
340158
|
-
className = _ref.className;
|
|
340159
|
-
return (0,external_react_.useMemo)(function () {
|
|
340160
|
-
var blockElement = element ? block + "__" + element : block;
|
|
340161
|
-
var classString = blockElement;
|
|
340162
|
-
modifiers && Object.keys(modifiers).forEach(function (name) {
|
|
340163
|
-
var value = modifiers[name];
|
|
340164
|
-
if (value) classString += " " + blockElement + "--" + (value === true ? name : name + "-" + value);
|
|
340165
|
-
});
|
|
340166
|
-
var expandedClassName = typeof className === 'function' ? className(modifiers) : className;
|
|
340167
|
-
if (typeof expandedClassName === 'string') {
|
|
340168
|
-
expandedClassName = expandedClassName.trim();
|
|
340169
|
-
if (expandedClassName) classString += " " + expandedClassName;
|
|
340170
|
-
}
|
|
340171
|
-
return classString;
|
|
340172
|
-
}, [block, element, modifiers, className]);
|
|
340173
|
-
};
|
|
340174
|
-
|
|
340175
|
-
|
|
340176
|
-
|
|
340177
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/utils/constants.js
|
|
340178
|
-
|
|
340179
|
-
|
|
340180
|
-
var menuContainerClass = 'szh-menu-container';
|
|
340181
|
-
var menuClass = 'szh-menu';
|
|
340182
|
-
var menuButtonClass = 'szh-menu-button';
|
|
340183
|
-
var menuArrowClass = 'arrow';
|
|
340184
|
-
var menuItemClass = 'item';
|
|
340185
|
-
var menuDividerClass = 'divider';
|
|
340186
|
-
var menuHeaderClass = 'header';
|
|
340187
|
-
var menuGroupClass = 'group';
|
|
340188
|
-
var subMenuClass = 'submenu';
|
|
340189
|
-
var radioGroupClass = 'radio-group';
|
|
340190
|
-
var HoverItemContext = /*#__PURE__*/(0,external_react_.createContext)();
|
|
340191
|
-
var MenuListItemContext = /*#__PURE__*/(0,external_react_.createContext)({});
|
|
340192
|
-
var MenuListContext = /*#__PURE__*/(0,external_react_.createContext)({});
|
|
340193
|
-
var EventHandlersContext = /*#__PURE__*/(0,external_react_.createContext)({});
|
|
340194
|
-
var RadioGroupContext = /*#__PURE__*/(0,external_react_.createContext)({});
|
|
340195
|
-
var constants_SettingsContext = /*#__PURE__*/(0,external_react_.createContext)({});
|
|
340196
|
-
var Keys = /*#__PURE__*/Object.freeze({
|
|
340197
|
-
ENTER: 'Enter',
|
|
340198
|
-
ESC: 'Escape',
|
|
340199
|
-
SPACE: ' ',
|
|
340200
|
-
HOME: 'Home',
|
|
340201
|
-
END: 'End',
|
|
340202
|
-
LEFT: 'ArrowLeft',
|
|
340203
|
-
RIGHT: 'ArrowRight',
|
|
340204
|
-
UP: 'ArrowUp',
|
|
340205
|
-
DOWN: 'ArrowDown'
|
|
340206
|
-
});
|
|
340207
|
-
var HoverActionTypes = /*#__PURE__*/Object.freeze({
|
|
340208
|
-
RESET: 0,
|
|
340209
|
-
SET: 1,
|
|
340210
|
-
UNSET: 2,
|
|
340211
|
-
INCREASE: 3,
|
|
340212
|
-
DECREASE: 4,
|
|
340213
|
-
FIRST: 5,
|
|
340214
|
-
LAST: 6,
|
|
340215
|
-
SET_INDEX: 7
|
|
340216
|
-
});
|
|
340217
|
-
var CloseReason = /*#__PURE__*/Object.freeze({
|
|
340218
|
-
CLICK: 'click',
|
|
340219
|
-
CANCEL: 'cancel',
|
|
340220
|
-
BLUR: 'blur',
|
|
340221
|
-
SCROLL: 'scroll'
|
|
340222
|
-
});
|
|
340223
|
-
var FocusPositions = /*#__PURE__*/Object.freeze({
|
|
340224
|
-
FIRST: 'first',
|
|
340225
|
-
LAST: 'last'
|
|
340226
|
-
});
|
|
340227
|
-
var MenuStateMap = /*#__PURE__*/Object.freeze({
|
|
340228
|
-
entering: 'opening',
|
|
340229
|
-
entered: 'open',
|
|
340230
|
-
exiting: 'closing',
|
|
340231
|
-
exited: 'closed'
|
|
340232
|
-
});
|
|
340233
|
-
var positionAbsolute = 'absolute';
|
|
340234
|
-
var roleNone = 'presentation';
|
|
340235
|
-
var roleMenuitem = 'menuitem';
|
|
340236
|
-
var dummyItemProps = {
|
|
340237
|
-
'aria-hidden': true,
|
|
340238
|
-
role: roleMenuitem
|
|
340239
|
-
};
|
|
340240
|
-
|
|
340241
|
-
|
|
340242
|
-
|
|
340243
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/components/MenuContainer.js
|
|
340244
|
-
|
|
340245
|
-
|
|
340246
|
-
|
|
340247
|
-
|
|
340248
|
-
|
|
340249
|
-
|
|
340250
|
-
|
|
340251
|
-
var MenuContainer = function MenuContainer(_ref) {
|
|
340252
|
-
var className = _ref.className,
|
|
340253
|
-
containerRef = _ref.containerRef,
|
|
340254
|
-
containerProps = _ref.containerProps,
|
|
340255
|
-
children = _ref.children,
|
|
340256
|
-
isOpen = _ref.isOpen,
|
|
340257
|
-
skipOpen = _ref.skipOpen,
|
|
340258
|
-
theming = _ref.theming,
|
|
340259
|
-
transition = _ref.transition,
|
|
340260
|
-
onClose = _ref.onClose;
|
|
340261
|
-
var itemTransition = getTransition(transition, 'item');
|
|
340262
|
-
var onKeyDown = function onKeyDown(_ref2) {
|
|
340263
|
-
var key = _ref2.key;
|
|
340264
|
-
switch (key) {
|
|
340265
|
-
case Keys.ESC:
|
|
340266
|
-
safeCall(onClose, {
|
|
340267
|
-
key: key,
|
|
340268
|
-
reason: CloseReason.CANCEL
|
|
340269
|
-
});
|
|
340270
|
-
break;
|
|
340271
|
-
}
|
|
340272
|
-
};
|
|
340273
|
-
var onBlur = function onBlur(e) {
|
|
340274
|
-
if (isOpen && !e.currentTarget.contains(e.relatedTarget || document.activeElement)) {
|
|
340275
|
-
safeCall(onClose, {
|
|
340276
|
-
reason: CloseReason.BLUR
|
|
340277
|
-
});
|
|
340278
|
-
if (skipOpen) {
|
|
340279
|
-
skipOpen.current = true;
|
|
340280
|
-
setTimeout(function () {
|
|
340281
|
-
return skipOpen.current = false;
|
|
340282
|
-
}, 300);
|
|
340283
|
-
}
|
|
340284
|
-
}
|
|
340285
|
-
};
|
|
340286
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", _rollupPluginBabelHelpers_extends({}, utils_mergeProps({
|
|
340287
|
-
onKeyDown: onKeyDown,
|
|
340288
|
-
onBlur: onBlur
|
|
340289
|
-
}, containerProps), {
|
|
340290
|
-
className: useBEM({
|
|
340291
|
-
block: menuContainerClass,
|
|
340292
|
-
modifiers: (0,external_react_.useMemo)(function () {
|
|
340293
|
-
return {
|
|
340294
|
-
theme: theming,
|
|
340295
|
-
itemTransition: itemTransition
|
|
340296
|
-
};
|
|
340297
|
-
}, [theming, itemTransition]),
|
|
340298
|
-
className: className
|
|
340299
|
-
}),
|
|
340300
|
-
style: _rollupPluginBabelHelpers_extends({
|
|
340301
|
-
position: 'absolute'
|
|
340302
|
-
}, containerProps == null ? void 0 : containerProps.style),
|
|
340303
|
-
ref: containerRef,
|
|
340304
|
-
children: children
|
|
340305
|
-
}));
|
|
340306
|
-
};
|
|
340307
|
-
|
|
340308
|
-
|
|
340309
|
-
|
|
340310
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/utils/submenuCtx.js
|
|
340311
|
-
var createSubmenuCtx = function createSubmenuCtx() {
|
|
340312
|
-
var timer,
|
|
340313
|
-
count = 0;
|
|
340314
|
-
return {
|
|
340315
|
-
toggle: function toggle(isOpen) {
|
|
340316
|
-
isOpen ? count++ : count--;
|
|
340317
|
-
count = Math.max(count, 0);
|
|
340318
|
-
},
|
|
340319
|
-
on: function on(closeDelay, pending, settled) {
|
|
340320
|
-
if (count) {
|
|
340321
|
-
if (!timer) timer = setTimeout(function () {
|
|
340322
|
-
timer = 0;
|
|
340323
|
-
pending();
|
|
340324
|
-
}, closeDelay);
|
|
340325
|
-
} else {
|
|
340326
|
-
settled == null ? void 0 : settled();
|
|
340327
|
-
}
|
|
340328
|
-
},
|
|
340329
|
-
off: function off() {
|
|
340330
|
-
if (timer) {
|
|
340331
|
-
clearTimeout(timer);
|
|
340332
|
-
timer = 0;
|
|
340333
|
-
}
|
|
340334
|
-
}
|
|
340335
|
-
};
|
|
340336
|
-
};
|
|
340337
|
-
|
|
340338
|
-
|
|
340339
|
-
|
|
340340
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useItems.js
|
|
340341
|
-
|
|
340342
|
-
|
|
340343
|
-
|
|
340344
|
-
|
|
340345
|
-
var useItems = function useItems(menuRef, focusRef) {
|
|
340346
|
-
var _useState = (0,external_react_.useState)(),
|
|
340347
|
-
hoverItem = _useState[0],
|
|
340348
|
-
setHoverItem = _useState[1];
|
|
340349
|
-
var stateRef = (0,external_react_.useRef)({
|
|
340350
|
-
items: [],
|
|
340351
|
-
hoverIndex: -1,
|
|
340352
|
-
sorted: false
|
|
340353
|
-
});
|
|
340354
|
-
var mutableState = stateRef.current;
|
|
340355
|
-
var updateItems = (0,external_react_.useCallback)(function (item, isMounted) {
|
|
340356
|
-
var items = mutableState.items;
|
|
340357
|
-
if (!item) {
|
|
340358
|
-
mutableState.items = [];
|
|
340359
|
-
} else if (isMounted) {
|
|
340360
|
-
items.push(item);
|
|
340361
|
-
} else {
|
|
340362
|
-
var index = items.indexOf(item);
|
|
340363
|
-
if (index > -1) {
|
|
340364
|
-
items.splice(index, 1);
|
|
340365
|
-
if (item.contains(document.activeElement)) {
|
|
340366
|
-
focusRef.current.focus();
|
|
340367
|
-
setHoverItem();
|
|
340368
|
-
}
|
|
340369
|
-
}
|
|
340370
|
-
}
|
|
340371
|
-
mutableState.hoverIndex = -1;
|
|
340372
|
-
mutableState.sorted = false;
|
|
340373
|
-
}, [mutableState, focusRef]);
|
|
340374
|
-
var dispatch = (0,external_react_.useCallback)(function (actionType, item, nextIndex) {
|
|
340375
|
-
var items = mutableState.items,
|
|
340376
|
-
hoverIndex = mutableState.hoverIndex;
|
|
340377
|
-
var sortItems = function sortItems() {
|
|
340378
|
-
if (mutableState.sorted) return;
|
|
340379
|
-
var orderedNodes = menuRef.current.querySelectorAll('.szh-menu__item');
|
|
340380
|
-
items.sort(function (a, b) {
|
|
340381
|
-
return indexOfNode(orderedNodes, a) - indexOfNode(orderedNodes, b);
|
|
340382
|
-
});
|
|
340383
|
-
mutableState.sorted = true;
|
|
340384
|
-
};
|
|
340385
|
-
var index = -1,
|
|
340386
|
-
newItem = undefined;
|
|
340387
|
-
switch (actionType) {
|
|
340388
|
-
case HoverActionTypes.RESET:
|
|
340389
|
-
break;
|
|
340390
|
-
case HoverActionTypes.SET:
|
|
340391
|
-
newItem = item;
|
|
340392
|
-
break;
|
|
340393
|
-
case HoverActionTypes.UNSET:
|
|
340394
|
-
newItem = function newItem(prevItem) {
|
|
340395
|
-
return prevItem === item ? undefined : prevItem;
|
|
340396
|
-
};
|
|
340397
|
-
break;
|
|
340398
|
-
case HoverActionTypes.FIRST:
|
|
340399
|
-
sortItems();
|
|
340400
|
-
index = 0;
|
|
340401
|
-
newItem = items[index];
|
|
340402
|
-
break;
|
|
340403
|
-
case HoverActionTypes.LAST:
|
|
340404
|
-
sortItems();
|
|
340405
|
-
index = items.length - 1;
|
|
340406
|
-
newItem = items[index];
|
|
340407
|
-
break;
|
|
340408
|
-
case HoverActionTypes.SET_INDEX:
|
|
340409
|
-
sortItems();
|
|
340410
|
-
index = nextIndex;
|
|
340411
|
-
newItem = items[index];
|
|
340412
|
-
break;
|
|
340413
|
-
case HoverActionTypes.INCREASE:
|
|
340414
|
-
sortItems();
|
|
340415
|
-
index = hoverIndex;
|
|
340416
|
-
if (index < 0) index = items.indexOf(item);
|
|
340417
|
-
index++;
|
|
340418
|
-
if (index >= items.length) index = 0;
|
|
340419
|
-
newItem = items[index];
|
|
340420
|
-
break;
|
|
340421
|
-
case HoverActionTypes.DECREASE:
|
|
340422
|
-
sortItems();
|
|
340423
|
-
index = hoverIndex;
|
|
340424
|
-
if (index < 0) index = items.indexOf(item);
|
|
340425
|
-
index--;
|
|
340426
|
-
if (index < 0) index = items.length - 1;
|
|
340427
|
-
newItem = items[index];
|
|
340428
|
-
break;
|
|
340429
|
-
default:
|
|
340430
|
-
if (false) {}
|
|
340431
|
-
}
|
|
340432
|
-
if (!newItem) index = -1;
|
|
340433
|
-
setHoverItem(newItem);
|
|
340434
|
-
mutableState.hoverIndex = index;
|
|
340435
|
-
}, [menuRef, mutableState]);
|
|
340436
|
-
return {
|
|
340437
|
-
hoverItem: hoverItem,
|
|
340438
|
-
dispatch: dispatch,
|
|
340439
|
-
updateItems: updateItems
|
|
340440
|
-
};
|
|
340441
|
-
};
|
|
340442
|
-
|
|
340443
|
-
|
|
340444
|
-
|
|
340445
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/getPositionHelpers.js
|
|
340446
|
-
|
|
340447
|
-
|
|
340448
|
-
var getPositionHelpers = function getPositionHelpers(containerRef, menuRef, menuScroll, boundingBoxPadding) {
|
|
340449
|
-
var menuRect = menuRef.current.getBoundingClientRect();
|
|
340450
|
-
var containerRect = containerRef.current.getBoundingClientRect();
|
|
340451
|
-
var boundingRect = menuScroll === window ? {
|
|
340452
|
-
left: 0,
|
|
340453
|
-
top: 0,
|
|
340454
|
-
right: document.documentElement.clientWidth,
|
|
340455
|
-
bottom: window.innerHeight
|
|
340456
|
-
} : menuScroll.getBoundingClientRect();
|
|
340457
|
-
var padding = parsePadding(boundingBoxPadding);
|
|
340458
|
-
var getLeftOverflow = function getLeftOverflow(x) {
|
|
340459
|
-
return x + containerRect.left - boundingRect.left - padding.left;
|
|
340460
|
-
};
|
|
340461
|
-
var getRightOverflow = function getRightOverflow(x) {
|
|
340462
|
-
return x + containerRect.left + menuRect.width - boundingRect.right + padding.right;
|
|
340463
|
-
};
|
|
340464
|
-
var getTopOverflow = function getTopOverflow(y) {
|
|
340465
|
-
return y + containerRect.top - boundingRect.top - padding.top;
|
|
340466
|
-
};
|
|
340467
|
-
var getBottomOverflow = function getBottomOverflow(y) {
|
|
340468
|
-
return y + containerRect.top + menuRect.height - boundingRect.bottom + padding.bottom;
|
|
340469
|
-
};
|
|
340470
|
-
var confineHorizontally = function confineHorizontally(x) {
|
|
340471
|
-
var leftOverflow = getLeftOverflow(x);
|
|
340472
|
-
if (leftOverflow < 0) {
|
|
340473
|
-
x -= leftOverflow;
|
|
340474
|
-
} else {
|
|
340475
|
-
var rightOverflow = getRightOverflow(x);
|
|
340476
|
-
if (rightOverflow > 0) {
|
|
340477
|
-
x -= rightOverflow;
|
|
340478
|
-
leftOverflow = getLeftOverflow(x);
|
|
340479
|
-
if (leftOverflow < 0) x -= leftOverflow;
|
|
340480
|
-
}
|
|
340481
|
-
}
|
|
340482
|
-
return x;
|
|
340483
|
-
};
|
|
340484
|
-
var confineVertically = function confineVertically(y) {
|
|
340485
|
-
var topOverflow = getTopOverflow(y);
|
|
340486
|
-
if (topOverflow < 0) {
|
|
340487
|
-
y -= topOverflow;
|
|
340488
|
-
} else {
|
|
340489
|
-
var bottomOverflow = getBottomOverflow(y);
|
|
340490
|
-
if (bottomOverflow > 0) {
|
|
340491
|
-
y -= bottomOverflow;
|
|
340492
|
-
topOverflow = getTopOverflow(y);
|
|
340493
|
-
if (topOverflow < 0) y -= topOverflow;
|
|
340494
|
-
}
|
|
340495
|
-
}
|
|
340496
|
-
return y;
|
|
340497
|
-
};
|
|
340498
|
-
return {
|
|
340499
|
-
menuRect: menuRect,
|
|
340500
|
-
containerRect: containerRect,
|
|
340501
|
-
getLeftOverflow: getLeftOverflow,
|
|
340502
|
-
getRightOverflow: getRightOverflow,
|
|
340503
|
-
getTopOverflow: getTopOverflow,
|
|
340504
|
-
getBottomOverflow: getBottomOverflow,
|
|
340505
|
-
confineHorizontally: confineHorizontally,
|
|
340506
|
-
confineVertically: confineVertically
|
|
340507
|
-
};
|
|
340508
|
-
};
|
|
340509
|
-
|
|
340510
|
-
|
|
340511
|
-
|
|
340512
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowVertical.js
|
|
340513
|
-
var placeArrowVertical = function placeArrowVertical(_ref) {
|
|
340514
|
-
var arrowRef = _ref.arrowRef,
|
|
340515
|
-
menuY = _ref.menuY,
|
|
340516
|
-
anchorRect = _ref.anchorRect,
|
|
340517
|
-
containerRect = _ref.containerRect,
|
|
340518
|
-
menuRect = _ref.menuRect;
|
|
340519
|
-
var y = anchorRect.top - containerRect.top - menuY + anchorRect.height / 2;
|
|
340520
|
-
var offset = arrowRef.current.offsetHeight * 1.25;
|
|
340521
|
-
y = Math.max(offset, y);
|
|
340522
|
-
y = Math.min(y, menuRect.height - offset);
|
|
340523
|
-
return y;
|
|
340524
|
-
};
|
|
340525
|
-
|
|
340526
|
-
|
|
340527
|
-
|
|
340528
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/placeLeftorRight.js
|
|
340529
|
-
|
|
340530
|
-
|
|
340531
|
-
var placeLeftorRight = function placeLeftorRight(_ref) {
|
|
340532
|
-
var anchorRect = _ref.anchorRect,
|
|
340533
|
-
containerRect = _ref.containerRect,
|
|
340534
|
-
menuRect = _ref.menuRect,
|
|
340535
|
-
placeLeftorRightY = _ref.placeLeftorRightY,
|
|
340536
|
-
placeLeftX = _ref.placeLeftX,
|
|
340537
|
-
placeRightX = _ref.placeRightX,
|
|
340538
|
-
getLeftOverflow = _ref.getLeftOverflow,
|
|
340539
|
-
getRightOverflow = _ref.getRightOverflow,
|
|
340540
|
-
confineHorizontally = _ref.confineHorizontally,
|
|
340541
|
-
confineVertically = _ref.confineVertically,
|
|
340542
|
-
arrowRef = _ref.arrowRef,
|
|
340543
|
-
arrow = _ref.arrow,
|
|
340544
|
-
direction = _ref.direction,
|
|
340545
|
-
position = _ref.position;
|
|
340546
|
-
var computedDirection = direction;
|
|
340547
|
-
var y = placeLeftorRightY;
|
|
340548
|
-
if (position !== 'initial') {
|
|
340549
|
-
y = confineVertically(y);
|
|
340550
|
-
if (position === 'anchor') {
|
|
340551
|
-
y = Math.min(y, anchorRect.bottom - containerRect.top);
|
|
340552
|
-
y = Math.max(y, anchorRect.top - containerRect.top - menuRect.height);
|
|
340553
|
-
}
|
|
340554
|
-
}
|
|
340555
|
-
var x, leftOverflow, rightOverflow;
|
|
340556
|
-
if (computedDirection === 'left') {
|
|
340557
|
-
x = placeLeftX;
|
|
340558
|
-
if (position !== 'initial') {
|
|
340559
|
-
leftOverflow = getLeftOverflow(x);
|
|
340560
|
-
if (leftOverflow < 0) {
|
|
340561
|
-
rightOverflow = getRightOverflow(placeRightX);
|
|
340562
|
-
if (rightOverflow <= 0 || -leftOverflow > rightOverflow) {
|
|
340563
|
-
x = placeRightX;
|
|
340564
|
-
computedDirection = 'right';
|
|
340565
|
-
}
|
|
340566
|
-
}
|
|
340567
|
-
}
|
|
340568
|
-
} else {
|
|
340569
|
-
x = placeRightX;
|
|
340570
|
-
if (position !== 'initial') {
|
|
340571
|
-
rightOverflow = getRightOverflow(x);
|
|
340572
|
-
if (rightOverflow > 0) {
|
|
340573
|
-
leftOverflow = getLeftOverflow(placeLeftX);
|
|
340574
|
-
if (leftOverflow >= 0 || -leftOverflow < rightOverflow) {
|
|
340575
|
-
x = placeLeftX;
|
|
340576
|
-
computedDirection = 'left';
|
|
340577
|
-
}
|
|
340578
|
-
}
|
|
340579
|
-
}
|
|
340580
|
-
}
|
|
340581
|
-
if (position === 'auto') x = confineHorizontally(x);
|
|
340582
|
-
var arrowY = arrow ? placeArrowVertical({
|
|
340583
|
-
menuY: y,
|
|
340584
|
-
arrowRef: arrowRef,
|
|
340585
|
-
anchorRect: anchorRect,
|
|
340586
|
-
containerRect: containerRect,
|
|
340587
|
-
menuRect: menuRect
|
|
340588
|
-
}) : undefined;
|
|
340589
|
-
return {
|
|
340590
|
-
arrowY: arrowY,
|
|
340591
|
-
x: x,
|
|
340592
|
-
y: y,
|
|
340593
|
-
computedDirection: computedDirection
|
|
340594
|
-
};
|
|
340595
|
-
};
|
|
340596
|
-
|
|
340597
|
-
|
|
340598
|
-
|
|
340599
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowHorizontal.js
|
|
340600
|
-
var placeArrowHorizontal = function placeArrowHorizontal(_ref) {
|
|
340601
|
-
var arrowRef = _ref.arrowRef,
|
|
340602
|
-
menuX = _ref.menuX,
|
|
340603
|
-
anchorRect = _ref.anchorRect,
|
|
340604
|
-
containerRect = _ref.containerRect,
|
|
340605
|
-
menuRect = _ref.menuRect;
|
|
340606
|
-
var x = anchorRect.left - containerRect.left - menuX + anchorRect.width / 2;
|
|
340607
|
-
var offset = arrowRef.current.offsetWidth * 1.25;
|
|
340608
|
-
x = Math.max(offset, x);
|
|
340609
|
-
x = Math.min(x, menuRect.width - offset);
|
|
340610
|
-
return x;
|
|
340611
|
-
};
|
|
340612
|
-
|
|
340613
|
-
|
|
340614
|
-
|
|
340615
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/placeToporBottom.js
|
|
340616
|
-
|
|
340617
|
-
|
|
340618
|
-
var placeToporBottom = function placeToporBottom(_ref) {
|
|
340619
|
-
var anchorRect = _ref.anchorRect,
|
|
340620
|
-
containerRect = _ref.containerRect,
|
|
340621
|
-
menuRect = _ref.menuRect,
|
|
340622
|
-
placeToporBottomX = _ref.placeToporBottomX,
|
|
340623
|
-
placeTopY = _ref.placeTopY,
|
|
340624
|
-
placeBottomY = _ref.placeBottomY,
|
|
340625
|
-
getTopOverflow = _ref.getTopOverflow,
|
|
340626
|
-
getBottomOverflow = _ref.getBottomOverflow,
|
|
340627
|
-
confineHorizontally = _ref.confineHorizontally,
|
|
340628
|
-
confineVertically = _ref.confineVertically,
|
|
340629
|
-
arrowRef = _ref.arrowRef,
|
|
340630
|
-
arrow = _ref.arrow,
|
|
340631
|
-
direction = _ref.direction,
|
|
340632
|
-
position = _ref.position;
|
|
340633
|
-
var computedDirection = direction === 'top' ? 'top' : 'bottom';
|
|
340634
|
-
var x = placeToporBottomX;
|
|
340635
|
-
if (position !== 'initial') {
|
|
340636
|
-
x = confineHorizontally(x);
|
|
340637
|
-
if (position === 'anchor') {
|
|
340638
|
-
x = Math.min(x, anchorRect.right - containerRect.left);
|
|
340639
|
-
x = Math.max(x, anchorRect.left - containerRect.left - menuRect.width);
|
|
340640
|
-
}
|
|
340641
|
-
}
|
|
340642
|
-
var y, topOverflow, bottomOverflow;
|
|
340643
|
-
if (computedDirection === 'top') {
|
|
340644
|
-
y = placeTopY;
|
|
340645
|
-
if (position !== 'initial') {
|
|
340646
|
-
topOverflow = getTopOverflow(y);
|
|
340647
|
-
if (topOverflow < 0) {
|
|
340648
|
-
bottomOverflow = getBottomOverflow(placeBottomY);
|
|
340649
|
-
if (bottomOverflow <= 0 || -topOverflow > bottomOverflow) {
|
|
340650
|
-
y = placeBottomY;
|
|
340651
|
-
computedDirection = 'bottom';
|
|
340652
|
-
}
|
|
340653
|
-
}
|
|
340654
|
-
}
|
|
340655
|
-
} else {
|
|
340656
|
-
y = placeBottomY;
|
|
340657
|
-
if (position !== 'initial') {
|
|
340658
|
-
bottomOverflow = getBottomOverflow(y);
|
|
340659
|
-
if (bottomOverflow > 0) {
|
|
340660
|
-
topOverflow = getTopOverflow(placeTopY);
|
|
340661
|
-
if (topOverflow >= 0 || -topOverflow < bottomOverflow) {
|
|
340662
|
-
y = placeTopY;
|
|
340663
|
-
computedDirection = 'top';
|
|
340664
|
-
}
|
|
340665
|
-
}
|
|
340666
|
-
}
|
|
340667
|
-
}
|
|
340668
|
-
if (position === 'auto') y = confineVertically(y);
|
|
340669
|
-
var arrowX = arrow ? placeArrowHorizontal({
|
|
340670
|
-
menuX: x,
|
|
340671
|
-
arrowRef: arrowRef,
|
|
340672
|
-
anchorRect: anchorRect,
|
|
340673
|
-
containerRect: containerRect,
|
|
340674
|
-
menuRect: menuRect
|
|
340675
|
-
}) : undefined;
|
|
340676
|
-
return {
|
|
340677
|
-
arrowX: arrowX,
|
|
340678
|
-
x: x,
|
|
340679
|
-
y: y,
|
|
340680
|
-
computedDirection: computedDirection
|
|
340681
|
-
};
|
|
340682
|
-
};
|
|
340683
|
-
|
|
340684
|
-
|
|
340685
|
-
|
|
340686
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/positionUtils/positionMenu.js
|
|
340687
|
-
|
|
340688
|
-
|
|
340689
|
-
|
|
340690
|
-
|
|
340691
|
-
var positionMenu = function positionMenu(_ref) {
|
|
340692
|
-
var arrow = _ref.arrow,
|
|
340693
|
-
align = _ref.align,
|
|
340694
|
-
direction = _ref.direction,
|
|
340695
|
-
offsetX = _ref.offsetX,
|
|
340696
|
-
offsetY = _ref.offsetY,
|
|
340697
|
-
position = _ref.position,
|
|
340698
|
-
anchorRect = _ref.anchorRect,
|
|
340699
|
-
arrowRef = _ref.arrowRef,
|
|
340700
|
-
positionHelpers = _ref.positionHelpers;
|
|
340701
|
-
var menuRect = positionHelpers.menuRect,
|
|
340702
|
-
containerRect = positionHelpers.containerRect;
|
|
340703
|
-
var horizontalOffset = offsetX;
|
|
340704
|
-
var verticalOffset = offsetY;
|
|
340705
|
-
if (arrow) {
|
|
340706
|
-
if (direction === 'left' || direction === 'right') {
|
|
340707
|
-
horizontalOffset += arrowRef.current.offsetWidth;
|
|
340708
|
-
} else {
|
|
340709
|
-
verticalOffset += arrowRef.current.offsetHeight;
|
|
340710
|
-
}
|
|
340711
|
-
}
|
|
340712
|
-
var placeLeftX = anchorRect.left - containerRect.left - menuRect.width - horizontalOffset;
|
|
340713
|
-
var placeRightX = anchorRect.right - containerRect.left + horizontalOffset;
|
|
340714
|
-
var placeTopY = anchorRect.top - containerRect.top - menuRect.height - verticalOffset;
|
|
340715
|
-
var placeBottomY = anchorRect.bottom - containerRect.top + verticalOffset;
|
|
340716
|
-
var placeToporBottomX, placeLeftorRightY;
|
|
340717
|
-
if (align === 'end') {
|
|
340718
|
-
placeToporBottomX = anchorRect.right - containerRect.left - menuRect.width;
|
|
340719
|
-
placeLeftorRightY = anchorRect.bottom - containerRect.top - menuRect.height;
|
|
340720
|
-
} else if (align === 'center') {
|
|
340721
|
-
placeToporBottomX = anchorRect.left - containerRect.left - (menuRect.width - anchorRect.width) / 2;
|
|
340722
|
-
placeLeftorRightY = anchorRect.top - containerRect.top - (menuRect.height - anchorRect.height) / 2;
|
|
340723
|
-
} else {
|
|
340724
|
-
placeToporBottomX = anchorRect.left - containerRect.left;
|
|
340725
|
-
placeLeftorRightY = anchorRect.top - containerRect.top;
|
|
340726
|
-
}
|
|
340727
|
-
placeToporBottomX += horizontalOffset;
|
|
340728
|
-
placeLeftorRightY += verticalOffset;
|
|
340729
|
-
var options = _rollupPluginBabelHelpers_extends({}, positionHelpers, {
|
|
340730
|
-
anchorRect: anchorRect,
|
|
340731
|
-
placeLeftX: placeLeftX,
|
|
340732
|
-
placeRightX: placeRightX,
|
|
340733
|
-
placeLeftorRightY: placeLeftorRightY,
|
|
340734
|
-
placeTopY: placeTopY,
|
|
340735
|
-
placeBottomY: placeBottomY,
|
|
340736
|
-
placeToporBottomX: placeToporBottomX,
|
|
340737
|
-
arrowRef: arrowRef,
|
|
340738
|
-
arrow: arrow,
|
|
340739
|
-
direction: direction,
|
|
340740
|
-
position: position
|
|
340741
|
-
});
|
|
340742
|
-
switch (direction) {
|
|
340743
|
-
case 'left':
|
|
340744
|
-
case 'right':
|
|
340745
|
-
return placeLeftorRight(options);
|
|
340746
|
-
case 'top':
|
|
340747
|
-
case 'bottom':
|
|
340748
|
-
default:
|
|
340749
|
-
return placeToporBottom(options);
|
|
340750
|
-
}
|
|
340751
|
-
};
|
|
340752
|
-
|
|
340753
|
-
|
|
340754
|
-
|
|
340755
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useIsomorphicLayoutEffect.js
|
|
340756
|
-
|
|
340757
|
-
|
|
340758
|
-
var useIsomorphicLayoutEffect_useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? external_react_.useLayoutEffect : external_react_.useEffect;
|
|
340759
|
-
|
|
340760
|
-
|
|
340761
|
-
|
|
340762
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useCombinedRef.js
|
|
340763
|
-
|
|
340764
|
-
|
|
340765
|
-
function setRef(ref, instance) {
|
|
340766
|
-
typeof ref === 'function' ? ref(instance) : ref.current = instance;
|
|
340767
|
-
}
|
|
340768
|
-
var useCombinedRef = function useCombinedRef(refA, refB) {
|
|
340769
|
-
return (0,external_react_.useMemo)(function () {
|
|
340770
|
-
if (!refA) return refB;
|
|
340771
|
-
if (!refB) return refA;
|
|
340772
|
-
return function (instance) {
|
|
340773
|
-
setRef(refA, instance);
|
|
340774
|
-
setRef(refB, instance);
|
|
340775
|
-
};
|
|
340776
|
-
}, [refA, refB]);
|
|
340777
|
-
};
|
|
340778
|
-
|
|
340779
|
-
|
|
340780
|
-
|
|
340781
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/components/MenuList.js
|
|
340782
|
-
|
|
340783
|
-
|
|
340784
|
-
|
|
340785
|
-
|
|
340786
|
-
|
|
340787
|
-
|
|
340788
|
-
|
|
340789
|
-
|
|
340790
|
-
|
|
340791
|
-
|
|
339542
|
+
;// ./src/components/Menus/Sidebar/styles.module.scss
|
|
339543
|
+
// extracted by mini-css-extract-plugin
|
|
339544
|
+
/* harmony default export */ const Sidebar_styles_module = ({"grey-rpi-grey-15":"#d5d7dc","grey-rpi-grey-40":"#9497a4","grey-rpi-grey-5":"#f1f2f3","grey-rpi-grey-70":"#4a4d59","grey-rpf-white":"#fff","sidebar":"styles-module__sidebar--Fu5Qi","mobile":"styles-module__mobile--WIsuV","react-tabs":"styles-module__react-tabs--MIiIF","react-tabs__tab-list":"styles-module__react-tabs__tab-list--h1azo","gwcLogo":"styles-module__gwcLogo--o2p4A","bar":"styles-module__bar--fOlLf","optionsTop":"styles-module__optionsTop--2jNbs","optionsBottom":"styles-module__optionsBottom--PtwF4","option":"styles-module__option--MOGCu","selected":"styles-module__selected--avjSK","panel":"styles-module__panel--bHhSv","panelWithFooter":"styles-module__panelWithFooter--5ItsY","panelHeading":"styles-module__panelHeading--GRNt0","panelHeader":"styles-module__panelHeader--bAHfN","panelContent":"styles-module__panelContent--X7kot","panelButtons":"styles-module__panelButtons---y4S-","panelFooter":"styles-module__panelFooter--T1y-s"});
|
|
339545
|
+
;// ./src/components/Menus/Sidebar/SidebarBarOption.jsx
|
|
340792
339546
|
|
|
340793
339547
|
|
|
340794
339548
|
|
|
340795
339549
|
|
|
340796
339550
|
|
|
340797
|
-
var
|
|
340798
|
-
var
|
|
340799
|
-
|
|
340800
|
-
|
|
340801
|
-
|
|
340802
|
-
|
|
340803
|
-
|
|
340804
|
-
|
|
340805
|
-
|
|
340806
|
-
|
|
340807
|
-
|
|
340808
|
-
|
|
340809
|
-
externalRef = _ref.externalRef,
|
|
340810
|
-
parentScrollingRef = _ref.parentScrollingRef,
|
|
340811
|
-
arrow = _ref.arrow,
|
|
340812
|
-
_ref$align = _ref.align,
|
|
340813
|
-
align = _ref$align === void 0 ? 'start' : _ref$align,
|
|
340814
|
-
_ref$direction = _ref.direction,
|
|
340815
|
-
direction = _ref$direction === void 0 ? 'bottom' : _ref$direction,
|
|
340816
|
-
_ref$position = _ref.position,
|
|
340817
|
-
position = _ref$position === void 0 ? 'auto' : _ref$position,
|
|
340818
|
-
_ref$overflow = _ref.overflow,
|
|
340819
|
-
overflow = _ref$overflow === void 0 ? 'visible' : _ref$overflow,
|
|
340820
|
-
setDownOverflow = _ref.setDownOverflow,
|
|
340821
|
-
repositionFlag = _ref.repositionFlag,
|
|
340822
|
-
_ref$captureFocus = _ref.captureFocus,
|
|
340823
|
-
captureFocus = _ref$captureFocus === void 0 ? true : _ref$captureFocus,
|
|
340824
|
-
state = _ref.state,
|
|
340825
|
-
endTransition = _ref.endTransition,
|
|
340826
|
-
isDisabled = _ref.isDisabled,
|
|
340827
|
-
menuItemFocus = _ref.menuItemFocus,
|
|
340828
|
-
_ref$offsetX = _ref.offsetX,
|
|
340829
|
-
offsetX = _ref$offsetX === void 0 ? 0 : _ref$offsetX,
|
|
340830
|
-
_ref$offsetY = _ref.offsetY,
|
|
340831
|
-
offsetY = _ref$offsetY === void 0 ? 0 : _ref$offsetY,
|
|
340832
|
-
children = _ref.children,
|
|
340833
|
-
onClose = _ref.onClose,
|
|
340834
|
-
restProps = _rollupPluginBabelHelpers_objectWithoutPropertiesLoose(_ref, MenuList_excluded);
|
|
340835
|
-
var _useState = (0,external_react_.useState)({
|
|
340836
|
-
x: 0,
|
|
340837
|
-
y: 0
|
|
340838
|
-
}),
|
|
340839
|
-
menuPosition = _useState[0],
|
|
340840
|
-
setMenuPosition = _useState[1];
|
|
340841
|
-
var _useState2 = (0,external_react_.useState)({}),
|
|
340842
|
-
arrowPosition = _useState2[0],
|
|
340843
|
-
setArrowPosition = _useState2[1];
|
|
340844
|
-
var _useState3 = (0,external_react_.useState)(),
|
|
340845
|
-
overflowData = _useState3[0],
|
|
340846
|
-
setOverflowData = _useState3[1];
|
|
340847
|
-
var _useState4 = (0,external_react_.useState)(direction),
|
|
340848
|
-
expandedDirection = _useState4[0],
|
|
340849
|
-
setExpandedDirection = _useState4[1];
|
|
340850
|
-
var _useState5 = (0,external_react_.useState)(createSubmenuCtx),
|
|
340851
|
-
submenuCtx = _useState5[0];
|
|
340852
|
-
var _useReducer = (0,external_react_.useReducer)(function (c) {
|
|
340853
|
-
return c + 1;
|
|
340854
|
-
}, 1),
|
|
340855
|
-
reposSubmenu = _useReducer[0],
|
|
340856
|
-
forceReposSubmenu = _useReducer[1];
|
|
340857
|
-
var _useContext = (0,external_react_.useContext)(constants_SettingsContext),
|
|
340858
|
-
transition = _useContext.transition,
|
|
340859
|
-
boundingBoxRef = _useContext.boundingBoxRef,
|
|
340860
|
-
boundingBoxPadding = _useContext.boundingBoxPadding,
|
|
340861
|
-
rootMenuRef = _useContext.rootMenuRef,
|
|
340862
|
-
rootAnchorRef = _useContext.rootAnchorRef,
|
|
340863
|
-
scrollNodesRef = _useContext.scrollNodesRef,
|
|
340864
|
-
reposition = _useContext.reposition,
|
|
340865
|
-
viewScroll = _useContext.viewScroll,
|
|
340866
|
-
submenuCloseDelay = _useContext.submenuCloseDelay;
|
|
340867
|
-
var _useContext2 = (0,external_react_.useContext)(MenuListContext),
|
|
340868
|
-
parentSubmenuCtx = _useContext2.submenuCtx,
|
|
340869
|
-
_useContext2$reposSub = _useContext2.reposSubmenu,
|
|
340870
|
-
reposFlag = _useContext2$reposSub === void 0 ? repositionFlag : _useContext2$reposSub;
|
|
340871
|
-
var menuRef = (0,external_react_.useRef)(null);
|
|
340872
|
-
var focusRef = (0,external_react_.useRef)();
|
|
340873
|
-
var arrowRef = (0,external_react_.useRef)();
|
|
340874
|
-
var prevOpen = (0,external_react_.useRef)(false);
|
|
340875
|
-
var latestMenuSize = (0,external_react_.useRef)({
|
|
340876
|
-
width: 0,
|
|
340877
|
-
height: 0
|
|
340878
|
-
});
|
|
340879
|
-
var latestHandlePosition = (0,external_react_.useRef)(function () {});
|
|
340880
|
-
var _useItems = useItems(menuRef, focusRef),
|
|
340881
|
-
hoverItem = _useItems.hoverItem,
|
|
340882
|
-
dispatch = _useItems.dispatch,
|
|
340883
|
-
updateItems = _useItems.updateItems;
|
|
340884
|
-
var isOpen = isMenuOpen(state);
|
|
340885
|
-
var openTransition = getTransition(transition, 'open');
|
|
340886
|
-
var closeTransition = getTransition(transition, 'close');
|
|
340887
|
-
var scrollNodes = scrollNodesRef.current;
|
|
340888
|
-
var onKeyDown = function onKeyDown(e) {
|
|
340889
|
-
switch (e.key) {
|
|
340890
|
-
case Keys.HOME:
|
|
340891
|
-
dispatch(HoverActionTypes.FIRST);
|
|
340892
|
-
break;
|
|
340893
|
-
case Keys.END:
|
|
340894
|
-
dispatch(HoverActionTypes.LAST);
|
|
340895
|
-
break;
|
|
340896
|
-
case Keys.UP:
|
|
340897
|
-
dispatch(HoverActionTypes.DECREASE, hoverItem);
|
|
340898
|
-
break;
|
|
340899
|
-
case Keys.DOWN:
|
|
340900
|
-
dispatch(HoverActionTypes.INCREASE, hoverItem);
|
|
340901
|
-
break;
|
|
340902
|
-
case Keys.SPACE:
|
|
340903
|
-
if (e.target && e.target.className.indexOf(menuClass) !== -1) {
|
|
340904
|
-
e.preventDefault();
|
|
340905
|
-
}
|
|
340906
|
-
return;
|
|
340907
|
-
default:
|
|
340908
|
-
return;
|
|
340909
|
-
}
|
|
340910
|
-
e.preventDefault();
|
|
340911
|
-
e.stopPropagation();
|
|
340912
|
-
};
|
|
340913
|
-
var onAnimationEnd = function onAnimationEnd() {
|
|
340914
|
-
if (state === 'closing') {
|
|
340915
|
-
setOverflowData();
|
|
340916
|
-
}
|
|
340917
|
-
safeCall(endTransition);
|
|
340918
|
-
};
|
|
340919
|
-
var onPointerMove = function onPointerMove(e) {
|
|
340920
|
-
e.stopPropagation();
|
|
340921
|
-
submenuCtx.on(submenuCloseDelay, function () {
|
|
340922
|
-
dispatch(HoverActionTypes.RESET);
|
|
340923
|
-
focusRef.current.focus();
|
|
340924
|
-
});
|
|
340925
|
-
};
|
|
340926
|
-
var onPointerLeave = function onPointerLeave(e) {
|
|
340927
|
-
if (e.target === e.currentTarget) submenuCtx.off();
|
|
339551
|
+
var SidebarBarOption = props => {
|
|
339552
|
+
var {
|
|
339553
|
+
Icon,
|
|
339554
|
+
isActive,
|
|
339555
|
+
name,
|
|
339556
|
+
title,
|
|
339557
|
+
toggleOption,
|
|
339558
|
+
buttonText,
|
|
339559
|
+
isUser
|
|
339560
|
+
} = props;
|
|
339561
|
+
var onClickHandler = () => {
|
|
339562
|
+
toggleOption(name);
|
|
340928
339563
|
};
|
|
340929
|
-
|
|
340930
|
-
|
|
340931
|
-
|
|
340932
|
-
left: anchorPoint.x,
|
|
340933
|
-
right: anchorPoint.x,
|
|
340934
|
-
top: anchorPoint.y,
|
|
340935
|
-
bottom: anchorPoint.y,
|
|
340936
|
-
width: 0,
|
|
340937
|
-
height: 0
|
|
340938
|
-
} : null;
|
|
340939
|
-
if (!anchorRect) {
|
|
340940
|
-
if (false) {}
|
|
340941
|
-
return;
|
|
340942
|
-
}
|
|
340943
|
-
if (!scrollNodes.menu) {
|
|
340944
|
-
scrollNodes.menu = (boundingBoxRef ? boundingBoxRef.current : getScrollAncestor(rootMenuRef.current)) || window;
|
|
340945
|
-
}
|
|
340946
|
-
var positionHelpers = getPositionHelpers(containerRef, menuRef, scrollNodes.menu, boundingBoxPadding);
|
|
340947
|
-
var _positionMenu = positionMenu({
|
|
340948
|
-
arrow: arrow,
|
|
340949
|
-
align: align,
|
|
340950
|
-
direction: direction,
|
|
340951
|
-
offsetX: offsetX,
|
|
340952
|
-
offsetY: offsetY,
|
|
340953
|
-
position: position,
|
|
340954
|
-
anchorRect: anchorRect,
|
|
340955
|
-
arrowRef: arrowRef,
|
|
340956
|
-
positionHelpers: positionHelpers
|
|
340957
|
-
}),
|
|
340958
|
-
arrowX = _positionMenu.arrowX,
|
|
340959
|
-
arrowY = _positionMenu.arrowY,
|
|
340960
|
-
x = _positionMenu.x,
|
|
340961
|
-
y = _positionMenu.y,
|
|
340962
|
-
computedDirection = _positionMenu.computedDirection;
|
|
340963
|
-
var menuRect = positionHelpers.menuRect;
|
|
340964
|
-
var menuHeight = menuRect.height;
|
|
340965
|
-
if (!noOverflowCheck && overflow !== 'visible') {
|
|
340966
|
-
var getTopOverflow = positionHelpers.getTopOverflow,
|
|
340967
|
-
getBottomOverflow = positionHelpers.getBottomOverflow;
|
|
340968
|
-
var height, _overflowAmt;
|
|
340969
|
-
var prevHeight = latestMenuSize.current.height;
|
|
340970
|
-
var bottomOverflow = getBottomOverflow(y);
|
|
340971
|
-
if (bottomOverflow > 0 || floatEqual(bottomOverflow, 0) && floatEqual(menuHeight, prevHeight)) {
|
|
340972
|
-
height = menuHeight - bottomOverflow;
|
|
340973
|
-
_overflowAmt = bottomOverflow;
|
|
340974
|
-
} else {
|
|
340975
|
-
var topOverflow = getTopOverflow(y);
|
|
340976
|
-
if (topOverflow < 0 || floatEqual(topOverflow, 0) && floatEqual(menuHeight, prevHeight)) {
|
|
340977
|
-
height = menuHeight + topOverflow;
|
|
340978
|
-
_overflowAmt = 0 - topOverflow;
|
|
340979
|
-
if (height >= 0) y -= topOverflow;
|
|
340980
|
-
}
|
|
340981
|
-
}
|
|
340982
|
-
if (height >= 0) {
|
|
340983
|
-
menuHeight = height;
|
|
340984
|
-
setOverflowData({
|
|
340985
|
-
height: height,
|
|
340986
|
-
overflowAmt: _overflowAmt
|
|
340987
|
-
});
|
|
340988
|
-
} else {
|
|
340989
|
-
setOverflowData();
|
|
340990
|
-
}
|
|
340991
|
-
}
|
|
340992
|
-
if (arrow) setArrowPosition({
|
|
340993
|
-
x: arrowX,
|
|
340994
|
-
y: arrowY
|
|
340995
|
-
});
|
|
340996
|
-
setMenuPosition({
|
|
340997
|
-
x: x,
|
|
340998
|
-
y: y
|
|
340999
|
-
});
|
|
341000
|
-
setExpandedDirection(computedDirection);
|
|
341001
|
-
latestMenuSize.current = {
|
|
341002
|
-
width: menuRect.width,
|
|
341003
|
-
height: menuHeight
|
|
341004
|
-
};
|
|
341005
|
-
}, [arrow, align, boundingBoxPadding, direction, offsetX, offsetY, position, overflow, anchorPoint, anchorRef, containerRef, boundingBoxRef, rootMenuRef, scrollNodes]);
|
|
341006
|
-
useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
|
|
341007
|
-
if (isOpen) {
|
|
341008
|
-
handlePosition();
|
|
341009
|
-
if (prevOpen.current) forceReposSubmenu();
|
|
341010
|
-
}
|
|
341011
|
-
prevOpen.current = isOpen;
|
|
341012
|
-
latestHandlePosition.current = handlePosition;
|
|
341013
|
-
}, [isOpen, handlePosition, reposFlag]);
|
|
341014
|
-
useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
|
|
341015
|
-
if (overflowData && !setDownOverflow) menuRef.current.scrollTop = 0;
|
|
341016
|
-
}, [overflowData, setDownOverflow]);
|
|
341017
|
-
useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
|
|
341018
|
-
return updateItems;
|
|
341019
|
-
}, [updateItems]);
|
|
341020
|
-
(0,external_react_.useEffect)(function () {
|
|
341021
|
-
var menuScroll = scrollNodes.menu;
|
|
341022
|
-
if (!isOpen || !menuScroll) return;
|
|
341023
|
-
menuScroll = menuScroll.addEventListener ? menuScroll : window;
|
|
341024
|
-
if (!scrollNodes.anchors) {
|
|
341025
|
-
scrollNodes.anchors = [];
|
|
341026
|
-
var anchorScroll = getScrollAncestor(rootAnchorRef && rootAnchorRef.current);
|
|
341027
|
-
while (anchorScroll && anchorScroll !== menuScroll) {
|
|
341028
|
-
scrollNodes.anchors.push(anchorScroll);
|
|
341029
|
-
anchorScroll = getScrollAncestor(anchorScroll);
|
|
341030
|
-
}
|
|
341031
|
-
}
|
|
341032
|
-
var scroll = viewScroll;
|
|
341033
|
-
if (scrollNodes.anchors.length && scroll === 'initial') scroll = 'auto';
|
|
341034
|
-
if (scroll === 'initial') return;
|
|
341035
|
-
var handleScroll = function handleScroll() {
|
|
341036
|
-
if (scroll === 'auto') {
|
|
341037
|
-
batchedUpdates(function () {
|
|
341038
|
-
return handlePosition(true);
|
|
341039
|
-
});
|
|
341040
|
-
} else {
|
|
341041
|
-
safeCall(onClose, {
|
|
341042
|
-
reason: CloseReason.SCROLL
|
|
341043
|
-
});
|
|
341044
|
-
}
|
|
341045
|
-
};
|
|
341046
|
-
var scrollObservers = scrollNodes.anchors.concat(viewScroll !== 'initial' ? menuScroll : []);
|
|
341047
|
-
scrollObservers.forEach(function (o) {
|
|
341048
|
-
return o.addEventListener('scroll', handleScroll);
|
|
341049
|
-
});
|
|
341050
|
-
return function () {
|
|
341051
|
-
return scrollObservers.forEach(function (o) {
|
|
341052
|
-
return o.removeEventListener('scroll', handleScroll);
|
|
341053
|
-
});
|
|
341054
|
-
};
|
|
341055
|
-
}, [rootAnchorRef, scrollNodes, isOpen, onClose, viewScroll, handlePosition]);
|
|
341056
|
-
var hasOverflow = !!overflowData && overflowData.overflowAmt > 0;
|
|
341057
|
-
(0,external_react_.useEffect)(function () {
|
|
341058
|
-
if (hasOverflow || !isOpen || !parentScrollingRef) return;
|
|
341059
|
-
var handleScroll = function handleScroll() {
|
|
341060
|
-
return batchedUpdates(handlePosition);
|
|
341061
|
-
};
|
|
341062
|
-
var parentScroll = parentScrollingRef.current;
|
|
341063
|
-
parentScroll.addEventListener('scroll', handleScroll);
|
|
341064
|
-
return function () {
|
|
341065
|
-
return parentScroll.removeEventListener('scroll', handleScroll);
|
|
341066
|
-
};
|
|
341067
|
-
}, [isOpen, hasOverflow, parentScrollingRef, handlePosition]);
|
|
341068
|
-
(0,external_react_.useEffect)(function () {
|
|
341069
|
-
if (typeof ResizeObserver !== 'function' || reposition === 'initial') return;
|
|
341070
|
-
var resizeObserver = new ResizeObserver(function (_ref2) {
|
|
341071
|
-
var entry = _ref2[0];
|
|
341072
|
-
var borderBoxSize = entry.borderBoxSize,
|
|
341073
|
-
target = entry.target;
|
|
341074
|
-
var width, height;
|
|
341075
|
-
if (borderBoxSize) {
|
|
341076
|
-
var _ref3 = borderBoxSize[0] || borderBoxSize,
|
|
341077
|
-
inlineSize = _ref3.inlineSize,
|
|
341078
|
-
blockSize = _ref3.blockSize;
|
|
341079
|
-
width = inlineSize;
|
|
341080
|
-
height = blockSize;
|
|
341081
|
-
} else {
|
|
341082
|
-
var borderRect = target.getBoundingClientRect();
|
|
341083
|
-
width = borderRect.width;
|
|
341084
|
-
height = borderRect.height;
|
|
341085
|
-
}
|
|
341086
|
-
if (width === 0 || height === 0) return;
|
|
341087
|
-
if (floatEqual(width, latestMenuSize.current.width, 1) && floatEqual(height, latestMenuSize.current.height, 1)) return;
|
|
341088
|
-
(0,external_react_dom_.flushSync)(function () {
|
|
341089
|
-
latestHandlePosition.current();
|
|
341090
|
-
forceReposSubmenu();
|
|
341091
|
-
});
|
|
341092
|
-
});
|
|
341093
|
-
var observeTarget = menuRef.current;
|
|
341094
|
-
resizeObserver.observe(observeTarget, {
|
|
341095
|
-
box: 'border-box'
|
|
341096
|
-
});
|
|
341097
|
-
return function () {
|
|
341098
|
-
return resizeObserver.unobserve(observeTarget);
|
|
341099
|
-
};
|
|
341100
|
-
}, [reposition]);
|
|
341101
|
-
(0,external_react_.useEffect)(function () {
|
|
341102
|
-
if (!isOpen) {
|
|
341103
|
-
dispatch(HoverActionTypes.RESET);
|
|
341104
|
-
if (!closeTransition) setOverflowData();
|
|
341105
|
-
return;
|
|
341106
|
-
}
|
|
341107
|
-
var _ref4 = menuItemFocus || {},
|
|
341108
|
-
position = _ref4.position,
|
|
341109
|
-
alwaysUpdate = _ref4.alwaysUpdate;
|
|
341110
|
-
var setItemFocus = function setItemFocus() {
|
|
341111
|
-
if (position === FocusPositions.FIRST) {
|
|
341112
|
-
dispatch(HoverActionTypes.FIRST);
|
|
341113
|
-
} else if (position === FocusPositions.LAST) {
|
|
341114
|
-
dispatch(HoverActionTypes.LAST);
|
|
341115
|
-
} else if (position >= -1) {
|
|
341116
|
-
dispatch(HoverActionTypes.SET_INDEX, undefined, position);
|
|
341117
|
-
}
|
|
341118
|
-
};
|
|
341119
|
-
if (alwaysUpdate) {
|
|
341120
|
-
setItemFocus();
|
|
341121
|
-
} else if (captureFocus) {
|
|
341122
|
-
var id = setTimeout(function () {
|
|
341123
|
-
if (!menuRef.current.contains(document.activeElement)) {
|
|
341124
|
-
focusRef.current.focus();
|
|
341125
|
-
setItemFocus();
|
|
341126
|
-
}
|
|
341127
|
-
}, openTransition ? 170 : 100);
|
|
341128
|
-
return function () {
|
|
341129
|
-
return clearTimeout(id);
|
|
341130
|
-
};
|
|
341131
|
-
}
|
|
341132
|
-
}, [isOpen, openTransition, closeTransition, captureFocus, menuItemFocus, dispatch]);
|
|
341133
|
-
var itemContext = (0,external_react_.useMemo)(function () {
|
|
341134
|
-
return {
|
|
341135
|
-
isParentOpen: isOpen,
|
|
341136
|
-
submenuCtx: submenuCtx,
|
|
341137
|
-
dispatch: dispatch,
|
|
341138
|
-
updateItems: updateItems
|
|
341139
|
-
};
|
|
341140
|
-
}, [isOpen, submenuCtx, dispatch, updateItems]);
|
|
341141
|
-
var maxHeight, overflowAmt;
|
|
341142
|
-
if (overflowData) {
|
|
341143
|
-
setDownOverflow ? overflowAmt = overflowData.overflowAmt : maxHeight = overflowData.height;
|
|
341144
|
-
}
|
|
341145
|
-
var listContext = (0,external_react_.useMemo)(function () {
|
|
341146
|
-
return {
|
|
341147
|
-
reposSubmenu: reposSubmenu,
|
|
341148
|
-
submenuCtx: submenuCtx,
|
|
341149
|
-
overflow: overflow,
|
|
341150
|
-
overflowAmt: overflowAmt,
|
|
341151
|
-
parentMenuRef: menuRef,
|
|
341152
|
-
parentDir: expandedDirection
|
|
341153
|
-
};
|
|
341154
|
-
}, [reposSubmenu, submenuCtx, overflow, overflowAmt, expandedDirection]);
|
|
341155
|
-
var overflowStyle = maxHeight >= 0 ? {
|
|
341156
|
-
maxHeight: maxHeight,
|
|
341157
|
-
overflow: overflow
|
|
341158
|
-
} : undefined;
|
|
341159
|
-
var modifiers = (0,external_react_.useMemo)(function () {
|
|
341160
|
-
return {
|
|
341161
|
-
state: state,
|
|
341162
|
-
dir: expandedDirection
|
|
341163
|
-
};
|
|
341164
|
-
}, [state, expandedDirection]);
|
|
341165
|
-
var arrowModifiers = (0,external_react_.useMemo)(function () {
|
|
341166
|
-
return {
|
|
341167
|
-
dir: expandedDirection
|
|
341168
|
-
};
|
|
341169
|
-
}, [expandedDirection]);
|
|
341170
|
-
var _arrowClass = useBEM({
|
|
341171
|
-
block: menuClass,
|
|
341172
|
-
element: menuArrowClass,
|
|
341173
|
-
modifiers: arrowModifiers,
|
|
341174
|
-
className: arrowClassName
|
|
341175
|
-
});
|
|
341176
|
-
var menu = /*#__PURE__*/(0,jsx_runtime.jsxs)("ul", _rollupPluginBabelHelpers_extends({
|
|
341177
|
-
role: "menu",
|
|
341178
|
-
"aria-label": ariaLabel
|
|
341179
|
-
}, commonProps(isDisabled), utils_mergeProps({
|
|
341180
|
-
onPointerEnter: parentSubmenuCtx == null ? void 0 : parentSubmenuCtx.off,
|
|
341181
|
-
onPointerMove: onPointerMove,
|
|
341182
|
-
onPointerLeave: onPointerLeave,
|
|
341183
|
-
onKeyDown: onKeyDown,
|
|
341184
|
-
onAnimationEnd: onAnimationEnd
|
|
341185
|
-
}, restProps), {
|
|
341186
|
-
ref: useCombinedRef(externalRef, menuRef),
|
|
341187
|
-
className: useBEM({
|
|
341188
|
-
block: menuClass,
|
|
341189
|
-
modifiers: modifiers,
|
|
341190
|
-
className: menuClassName
|
|
341191
|
-
}),
|
|
341192
|
-
style: _rollupPluginBabelHelpers_extends({}, menuStyle, overflowStyle, {
|
|
341193
|
-
margin: 0,
|
|
341194
|
-
display: state === 'closed' ? 'none' : undefined,
|
|
341195
|
-
position: positionAbsolute,
|
|
341196
|
-
left: menuPosition.x,
|
|
341197
|
-
top: menuPosition.y
|
|
339564
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
339565
|
+
className: classnames_default()(Sidebar_styles_module.option, {
|
|
339566
|
+
[Sidebar_styles_module.selected]: isActive
|
|
341198
339567
|
}),
|
|
341199
|
-
|
|
341200
|
-
|
|
341201
|
-
|
|
341202
|
-
|
|
341203
|
-
|
|
341204
|
-
top: 0,
|
|
341205
|
-
display: 'block',
|
|
341206
|
-
outline: 'none'
|
|
341207
|
-
},
|
|
341208
|
-
ref: focusRef
|
|
341209
|
-
}, dummyItemProps, focusProps)), arrow && /*#__PURE__*/(0,jsx_runtime.jsx)("li", _rollupPluginBabelHelpers_extends({
|
|
341210
|
-
className: _arrowClass,
|
|
341211
|
-
style: _rollupPluginBabelHelpers_extends({
|
|
341212
|
-
display: 'block',
|
|
341213
|
-
position: positionAbsolute,
|
|
341214
|
-
left: arrowPosition.x,
|
|
341215
|
-
top: arrowPosition.y
|
|
341216
|
-
}, arrowStyle),
|
|
341217
|
-
ref: arrowRef
|
|
341218
|
-
}, dummyItemProps)), /*#__PURE__*/(0,jsx_runtime.jsx)(MenuListContext.Provider, {
|
|
341219
|
-
value: listContext,
|
|
341220
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuListItemContext.Provider, {
|
|
341221
|
-
value: itemContext,
|
|
341222
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(HoverItemContext.Provider, {
|
|
341223
|
-
value: hoverItem,
|
|
341224
|
-
children: safeCall(children, modifiers)
|
|
341225
|
-
})
|
|
341226
|
-
})
|
|
341227
|
-
})]
|
|
341228
|
-
}));
|
|
341229
|
-
return containerProps ? /*#__PURE__*/(0,jsx_runtime.jsx)(MenuContainer, _rollupPluginBabelHelpers_extends({}, containerProps, {
|
|
341230
|
-
isOpen: isOpen,
|
|
341231
|
-
children: menu
|
|
341232
|
-
})) : menu;
|
|
341233
|
-
};
|
|
341234
|
-
|
|
341235
|
-
|
|
341236
|
-
|
|
341237
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/components/ControlledMenu.js
|
|
341238
|
-
|
|
341239
|
-
|
|
341240
|
-
|
|
341241
|
-
|
|
341242
|
-
|
|
341243
|
-
|
|
341244
|
-
|
|
341245
|
-
|
|
341246
|
-
|
|
341247
|
-
|
|
341248
|
-
var ControlledMenu_excluded = ["aria-label", "className", "containerProps", "initialMounted", "unmountOnClose", "transition", "transitionTimeout", "boundingBoxRef", "boundingBoxPadding", "reposition", "submenuOpenDelay", "submenuCloseDelay", "skipOpen", "viewScroll", "portal", "theming", "onItemClick"];
|
|
341249
|
-
var ControlledMenu = /*#__PURE__*/(0,external_react_.forwardRef)(function ControlledMenu(_ref, externalRef) {
|
|
341250
|
-
var ariaLabel = _ref['aria-label'],
|
|
341251
|
-
className = _ref.className,
|
|
341252
|
-
containerProps = _ref.containerProps,
|
|
341253
|
-
initialMounted = _ref.initialMounted,
|
|
341254
|
-
unmountOnClose = _ref.unmountOnClose,
|
|
341255
|
-
transition = _ref.transition,
|
|
341256
|
-
transitionTimeout = _ref.transitionTimeout,
|
|
341257
|
-
boundingBoxRef = _ref.boundingBoxRef,
|
|
341258
|
-
boundingBoxPadding = _ref.boundingBoxPadding,
|
|
341259
|
-
_ref$reposition = _ref.reposition,
|
|
341260
|
-
reposition = _ref$reposition === void 0 ? 'auto' : _ref$reposition,
|
|
341261
|
-
_ref$submenuOpenDelay = _ref.submenuOpenDelay,
|
|
341262
|
-
submenuOpenDelay = _ref$submenuOpenDelay === void 0 ? 300 : _ref$submenuOpenDelay,
|
|
341263
|
-
_ref$submenuCloseDela = _ref.submenuCloseDelay,
|
|
341264
|
-
submenuCloseDelay = _ref$submenuCloseDela === void 0 ? 150 : _ref$submenuCloseDela,
|
|
341265
|
-
skipOpen = _ref.skipOpen,
|
|
341266
|
-
_ref$viewScroll = _ref.viewScroll,
|
|
341267
|
-
viewScroll = _ref$viewScroll === void 0 ? 'initial' : _ref$viewScroll,
|
|
341268
|
-
portal = _ref.portal,
|
|
341269
|
-
theming = _ref.theming,
|
|
341270
|
-
onItemClick = _ref.onItemClick,
|
|
341271
|
-
restProps = _rollupPluginBabelHelpers_objectWithoutPropertiesLoose(_ref, ControlledMenu_excluded);
|
|
341272
|
-
var containerRef = (0,external_react_.useRef)(null);
|
|
341273
|
-
var scrollNodesRef = (0,external_react_.useRef)({});
|
|
341274
|
-
var anchorRef = restProps.anchorRef,
|
|
341275
|
-
state = restProps.state,
|
|
341276
|
-
onClose = restProps.onClose;
|
|
341277
|
-
var settings = (0,external_react_.useMemo)(function () {
|
|
341278
|
-
return {
|
|
341279
|
-
initialMounted: initialMounted,
|
|
341280
|
-
unmountOnClose: unmountOnClose,
|
|
341281
|
-
transition: transition,
|
|
341282
|
-
transitionTimeout: transitionTimeout,
|
|
341283
|
-
boundingBoxRef: boundingBoxRef,
|
|
341284
|
-
boundingBoxPadding: boundingBoxPadding,
|
|
341285
|
-
rootMenuRef: containerRef,
|
|
341286
|
-
rootAnchorRef: anchorRef,
|
|
341287
|
-
scrollNodesRef: scrollNodesRef,
|
|
341288
|
-
reposition: reposition,
|
|
341289
|
-
viewScroll: viewScroll,
|
|
341290
|
-
submenuOpenDelay: submenuOpenDelay,
|
|
341291
|
-
submenuCloseDelay: submenuCloseDelay
|
|
341292
|
-
};
|
|
341293
|
-
}, [initialMounted, unmountOnClose, transition, transitionTimeout, anchorRef, boundingBoxRef, boundingBoxPadding, reposition, viewScroll, submenuOpenDelay, submenuCloseDelay]);
|
|
341294
|
-
var eventHandlers = (0,external_react_.useMemo)(function () {
|
|
341295
|
-
return {
|
|
341296
|
-
handleClick: function handleClick(event, isCheckorRadio) {
|
|
341297
|
-
if (!event.stopPropagation) safeCall(onItemClick, event);
|
|
341298
|
-
var keepOpen = event.keepOpen;
|
|
341299
|
-
if (keepOpen === undefined) {
|
|
341300
|
-
keepOpen = isCheckorRadio && event.key === Keys.SPACE;
|
|
341301
|
-
}
|
|
341302
|
-
if (!keepOpen) {
|
|
341303
|
-
safeCall(onClose, {
|
|
341304
|
-
value: event.value,
|
|
341305
|
-
key: event.key,
|
|
341306
|
-
reason: CloseReason.CLICK
|
|
341307
|
-
});
|
|
341308
|
-
}
|
|
341309
|
-
},
|
|
341310
|
-
handleClose: function handleClose(key) {
|
|
341311
|
-
safeCall(onClose, {
|
|
341312
|
-
key: key,
|
|
341313
|
-
reason: CloseReason.CLICK
|
|
341314
|
-
});
|
|
341315
|
-
}
|
|
341316
|
-
};
|
|
341317
|
-
}, [onItemClick, onClose]);
|
|
341318
|
-
if (!state) return null;
|
|
341319
|
-
var menuList = /*#__PURE__*/(0,jsx_runtime.jsx)(constants_SettingsContext.Provider, {
|
|
341320
|
-
value: settings,
|
|
341321
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(EventHandlersContext.Provider, {
|
|
341322
|
-
value: eventHandlers,
|
|
341323
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuList, _rollupPluginBabelHelpers_extends({}, restProps, {
|
|
341324
|
-
ariaLabel: ariaLabel || 'Menu',
|
|
341325
|
-
externalRef: externalRef,
|
|
341326
|
-
containerRef: containerRef,
|
|
341327
|
-
containerProps: {
|
|
341328
|
-
className: className,
|
|
341329
|
-
containerRef: containerRef,
|
|
341330
|
-
containerProps: containerProps,
|
|
341331
|
-
skipOpen: skipOpen,
|
|
341332
|
-
theming: theming,
|
|
341333
|
-
transition: transition,
|
|
341334
|
-
onClose: onClose
|
|
341335
|
-
}
|
|
341336
|
-
}))
|
|
341337
|
-
})
|
|
341338
|
-
});
|
|
341339
|
-
if (portal === true && typeof document !== 'undefined') {
|
|
341340
|
-
return /*#__PURE__*/(0,external_react_dom_.createPortal)(menuList, document.body);
|
|
341341
|
-
} else if (portal) {
|
|
341342
|
-
return portal.target ? /*#__PURE__*/(0,external_react_dom_.createPortal)(menuList, portal.target) : portal.stablePosition ? null : menuList;
|
|
341343
|
-
}
|
|
341344
|
-
return menuList;
|
|
341345
|
-
});
|
|
341346
|
-
false ? 0 : void 0;
|
|
341347
|
-
|
|
341348
|
-
|
|
341349
|
-
|
|
341350
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useItemEffect.js
|
|
341351
|
-
|
|
341352
|
-
|
|
341353
|
-
var useItemEffect = function useItemEffect(isDisabled, itemRef, updateItems) {
|
|
341354
|
-
useIsomorphicLayoutEffect_useIsomorphicLayoutEffect(function () {
|
|
341355
|
-
if (false) {}
|
|
341356
|
-
if (isDisabled) return;
|
|
341357
|
-
var item = itemRef.current;
|
|
341358
|
-
updateItems(item, true);
|
|
341359
|
-
return function () {
|
|
341360
|
-
updateItems(item);
|
|
341361
|
-
};
|
|
341362
|
-
}, [isDisabled, itemRef, updateItems]);
|
|
341363
|
-
};
|
|
341364
|
-
|
|
341365
|
-
|
|
341366
|
-
|
|
341367
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/hooks/useItemState.js
|
|
341368
|
-
|
|
341369
|
-
|
|
341370
|
-
|
|
341371
|
-
|
|
341372
|
-
var useItemState = function useItemState(itemRef, focusRef, isHovering, isDisabled) {
|
|
341373
|
-
var _useContext = (0,external_react_.useContext)(constants_SettingsContext),
|
|
341374
|
-
submenuCloseDelay = _useContext.submenuCloseDelay;
|
|
341375
|
-
var _useContext2 = (0,external_react_.useContext)(MenuListItemContext),
|
|
341376
|
-
isParentOpen = _useContext2.isParentOpen,
|
|
341377
|
-
submenuCtx = _useContext2.submenuCtx,
|
|
341378
|
-
dispatch = _useContext2.dispatch,
|
|
341379
|
-
updateItems = _useContext2.updateItems;
|
|
341380
|
-
var setHover = function setHover() {
|
|
341381
|
-
!isHovering && !isDisabled && dispatch(HoverActionTypes.SET, itemRef.current);
|
|
341382
|
-
};
|
|
341383
|
-
var unsetHover = function unsetHover() {
|
|
341384
|
-
!isDisabled && dispatch(HoverActionTypes.UNSET, itemRef.current);
|
|
341385
|
-
};
|
|
341386
|
-
var onBlur = function onBlur(e) {
|
|
341387
|
-
if (isHovering && !e.currentTarget.contains(e.relatedTarget)) unsetHover();
|
|
341388
|
-
};
|
|
341389
|
-
var onPointerMove = function onPointerMove(e) {
|
|
341390
|
-
if (!isDisabled) {
|
|
341391
|
-
e.stopPropagation();
|
|
341392
|
-
submenuCtx.on(submenuCloseDelay, setHover, setHover);
|
|
341393
|
-
}
|
|
341394
|
-
};
|
|
341395
|
-
var onPointerLeave = function onPointerLeave(_, keepHover) {
|
|
341396
|
-
submenuCtx.off();
|
|
341397
|
-
!keepHover && unsetHover();
|
|
341398
|
-
};
|
|
341399
|
-
useItemEffect(isDisabled, itemRef, updateItems);
|
|
341400
|
-
(0,external_react_.useEffect)(function () {
|
|
341401
|
-
if (isHovering && isParentOpen) {
|
|
341402
|
-
focusRef.current && focusRef.current.focus();
|
|
341403
|
-
}
|
|
341404
|
-
}, [focusRef, isHovering, isParentOpen]);
|
|
341405
|
-
return {
|
|
341406
|
-
setHover: setHover,
|
|
341407
|
-
onBlur: onBlur,
|
|
341408
|
-
onPointerMove: onPointerMove,
|
|
341409
|
-
onPointerLeave: onPointerLeave
|
|
341410
|
-
};
|
|
341411
|
-
};
|
|
341412
|
-
|
|
341413
|
-
|
|
341414
|
-
|
|
341415
|
-
;// ./node_modules/@szhsin/react-menu/dist/es/utils/withHovering.js
|
|
341416
|
-
|
|
341417
|
-
|
|
341418
|
-
|
|
341419
|
-
|
|
341420
|
-
|
|
341421
|
-
var withHovering = function withHovering(name, WrappedComponent) {
|
|
341422
|
-
var Component = /*#__PURE__*/(0,external_react_.memo)(WrappedComponent);
|
|
341423
|
-
var WithHovering = /*#__PURE__*/(0,external_react_.forwardRef)(function (props, ref) {
|
|
341424
|
-
var itemRef = (0,external_react_.useRef)(null);
|
|
341425
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, _rollupPluginBabelHelpers_extends({}, props, {
|
|
341426
|
-
itemRef: itemRef,
|
|
341427
|
-
externalRef: ref,
|
|
341428
|
-
isHovering: (0,external_react_.useContext)(HoverItemContext) === itemRef.current
|
|
341429
|
-
}));
|
|
339568
|
+
isUser: isUser,
|
|
339569
|
+
ButtonIcon: Icon,
|
|
339570
|
+
title: title,
|
|
339571
|
+
buttonText: buttonText,
|
|
339572
|
+
onClickHandler: onClickHandler
|
|
341430
339573
|
});
|
|
341431
|
-
WithHovering.displayName = "WithHovering(" + name + ")";
|
|
341432
|
-
return WithHovering;
|
|
341433
339574
|
};
|
|
341434
|
-
|
|
341435
|
-
|
|
341436
|
-
|
|
341437
|
-
;// ./
|
|
341438
|
-
|
|
341439
|
-
|
|
341440
|
-
|
|
341441
|
-
|
|
341442
|
-
|
|
341443
|
-
|
|
341444
|
-
|
|
341445
|
-
|
|
341446
|
-
|
|
341447
|
-
|
|
341448
|
-
|
|
341449
|
-
|
|
341450
|
-
var MenuItem_excluded = ["className", "value", "href", "type", "checked", "disabled", "children", "onClick", "isHovering", "itemRef", "externalRef"],
|
|
341451
|
-
MenuItem_excluded2 = ["setHover"];
|
|
341452
|
-
var MenuItem = /*#__PURE__*/withHovering('MenuItem', function MenuItem(_ref) {
|
|
341453
|
-
var className = _ref.className,
|
|
341454
|
-
value = _ref.value,
|
|
341455
|
-
href = _ref.href,
|
|
341456
|
-
type = _ref.type,
|
|
341457
|
-
checked = _ref.checked,
|
|
341458
|
-
disabled = _ref.disabled,
|
|
341459
|
-
children = _ref.children,
|
|
341460
|
-
onClick = _ref.onClick,
|
|
341461
|
-
isHovering = _ref.isHovering,
|
|
341462
|
-
itemRef = _ref.itemRef,
|
|
341463
|
-
externalRef = _ref.externalRef,
|
|
341464
|
-
restProps = _rollupPluginBabelHelpers_objectWithoutPropertiesLoose(_ref, MenuItem_excluded);
|
|
341465
|
-
var isDisabled = !!disabled;
|
|
341466
|
-
var _useItemState = useItemState(itemRef, itemRef, isHovering, isDisabled),
|
|
341467
|
-
setHover = _useItemState.setHover,
|
|
341468
|
-
restStateProps = _rollupPluginBabelHelpers_objectWithoutPropertiesLoose(_useItemState, MenuItem_excluded2);
|
|
341469
|
-
var eventHandlers = (0,external_react_.useContext)(EventHandlersContext);
|
|
341470
|
-
var radioGroup = (0,external_react_.useContext)(RadioGroupContext);
|
|
341471
|
-
var isRadio = type === 'radio';
|
|
341472
|
-
var isCheckBox = type === 'checkbox';
|
|
341473
|
-
var isAnchor = !!href && !isDisabled && !isRadio && !isCheckBox;
|
|
341474
|
-
var isChecked = isRadio ? radioGroup.value === value : isCheckBox ? !!checked : false;
|
|
341475
|
-
var handleClick = function handleClick(e) {
|
|
341476
|
-
if (isDisabled) {
|
|
341477
|
-
e.stopPropagation();
|
|
341478
|
-
e.preventDefault();
|
|
341479
|
-
return;
|
|
341480
|
-
}
|
|
341481
|
-
var event = {
|
|
341482
|
-
value: value,
|
|
341483
|
-
syntheticEvent: e
|
|
341484
|
-
};
|
|
341485
|
-
if (e.key !== undefined) event.key = e.key;
|
|
341486
|
-
if (isCheckBox) event.checked = !isChecked;
|
|
341487
|
-
if (isRadio) event.name = radioGroup.name;
|
|
341488
|
-
safeCall(onClick, event);
|
|
341489
|
-
if (isRadio) safeCall(radioGroup.onRadioChange, event);
|
|
341490
|
-
eventHandlers.handleClick(event, isCheckBox || isRadio);
|
|
341491
|
-
};
|
|
341492
|
-
var handleKeyDown = function handleKeyDown(e) {
|
|
341493
|
-
if (!isHovering) return;
|
|
341494
|
-
switch (e.key) {
|
|
341495
|
-
case Keys.ENTER:
|
|
341496
|
-
case Keys.SPACE:
|
|
341497
|
-
isAnchor ? e.key === Keys.SPACE && itemRef.current.click() : handleClick(e);
|
|
341498
|
-
}
|
|
341499
|
-
};
|
|
341500
|
-
var modifiers = (0,external_react_.useMemo)(function () {
|
|
341501
|
-
return {
|
|
341502
|
-
type: type,
|
|
341503
|
-
disabled: isDisabled,
|
|
341504
|
-
hover: isHovering,
|
|
341505
|
-
checked: isChecked,
|
|
341506
|
-
anchor: isAnchor
|
|
341507
|
-
};
|
|
341508
|
-
}, [type, isDisabled, isHovering, isChecked, isAnchor]);
|
|
341509
|
-
var mergedProps = utils_mergeProps(_rollupPluginBabelHelpers_extends({}, restStateProps, {
|
|
341510
|
-
onPointerDown: setHover,
|
|
341511
|
-
onKeyDown: handleKeyDown,
|
|
341512
|
-
onClick: handleClick
|
|
341513
|
-
}), restProps);
|
|
341514
|
-
var menuItemProps = _rollupPluginBabelHelpers_extends({
|
|
341515
|
-
role: isRadio ? 'menuitemradio' : isCheckBox ? 'menuitemcheckbox' : roleMenuitem,
|
|
341516
|
-
'aria-checked': isRadio || isCheckBox ? isChecked : undefined
|
|
341517
|
-
}, commonProps(isDisabled, isHovering), mergedProps, {
|
|
341518
|
-
ref: useCombinedRef(externalRef, itemRef),
|
|
341519
|
-
className: useBEM({
|
|
341520
|
-
block: menuClass,
|
|
341521
|
-
element: menuItemClass,
|
|
341522
|
-
modifiers: modifiers,
|
|
341523
|
-
className: className
|
|
341524
|
-
}),
|
|
341525
|
-
children: (0,external_react_.useMemo)(function () {
|
|
341526
|
-
return safeCall(children, modifiers);
|
|
341527
|
-
}, [children, modifiers])
|
|
341528
|
-
});
|
|
341529
|
-
return isAnchor ? /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
|
341530
|
-
role: roleNone,
|
|
341531
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", _rollupPluginBabelHelpers_extends({
|
|
341532
|
-
href: href
|
|
341533
|
-
}, menuItemProps))
|
|
341534
|
-
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("li", _rollupPluginBabelHelpers_extends({}, menuItemProps));
|
|
341535
|
-
});
|
|
341536
|
-
false ? 0 : void 0;
|
|
341537
|
-
|
|
341538
|
-
|
|
341539
|
-
|
|
341540
|
-
;// ./src/assets/stylesheets/ContextMenu.scss
|
|
341541
|
-
// extracted by mini-css-extract-plugin
|
|
341542
|
-
|
|
341543
|
-
;// ./src/components/Menus/ContextMenu/ContextMenu.jsx
|
|
339575
|
+
/* harmony default export */ const Sidebar_SidebarBarOption = (SidebarBarOption);
|
|
339576
|
+
;// ./src/assets/gwc-logo.svg
|
|
339577
|
+
const gwc_logo_namespaceObject = __webpack_require__.p + "assets/gwc-logoa61b092912e3c38825d3.svg";
|
|
339578
|
+
;// ./src/components/Menus/Sidebar/SidebarBar.jsx
|
|
341544
339579
|
|
|
341545
339580
|
|
|
341546
339581
|
|
|
341547
339582
|
|
|
341548
339583
|
|
|
341549
|
-
var
|
|
339584
|
+
var SidebarBar = props => {
|
|
341550
339585
|
var {
|
|
341551
|
-
align,
|
|
341552
|
-
direction,
|
|
341553
|
-
menuButtonLabel,
|
|
341554
|
-
menuButtonClassName,
|
|
341555
|
-
MenuButtonIcon,
|
|
341556
339586
|
menuOptions,
|
|
341557
|
-
|
|
341558
|
-
|
|
339587
|
+
option,
|
|
339588
|
+
toggleOption
|
|
341559
339589
|
} = props;
|
|
341560
|
-
var
|
|
341561
|
-
var
|
|
341562
|
-
|
|
341563
|
-
|
|
341564
|
-
|
|
341565
|
-
|
|
341566
|
-
|
|
341567
|
-
|
|
341568
|
-
|
|
341569
|
-
|
|
341570
|
-
|
|
341571
|
-
|
|
341572
|
-
|
|
341573
|
-
|
|
341574
|
-
|
|
341575
|
-
|
|
341576
|
-
|
|
341577
|
-
|
|
341578
|
-
|
|
341579
|
-
|
|
341580
|
-
|
|
341581
|
-
|
|
341582
|
-
|
|
341583
|
-
|
|
341584
|
-
|
|
341585
|
-
|
|
341586
|
-
|
|
341587
|
-
transition: true,
|
|
341588
|
-
align: align,
|
|
341589
|
-
direction: direction,
|
|
341590
|
-
menuStyle: {
|
|
341591
|
-
padding: "5px"
|
|
341592
|
-
},
|
|
341593
|
-
offsetX: offsetX,
|
|
341594
|
-
offsetY: offsetY,
|
|
341595
|
-
position: "anchor",
|
|
341596
|
-
viewScroll: "initial",
|
|
341597
|
-
portal: {
|
|
341598
|
-
target: portalTarget
|
|
341599
|
-
},
|
|
341600
|
-
menuClassName: "context-menu context-menu--".concat(settings.theme),
|
|
341601
|
-
menuItemFocus: {
|
|
341602
|
-
position: "first"
|
|
341603
|
-
},
|
|
341604
|
-
state: isOpen ? "open" : "closed",
|
|
341605
|
-
anchorRef: menuButton,
|
|
341606
|
-
ref: contextMenu,
|
|
341607
|
-
onClose: () => setMenuOpenState(false),
|
|
341608
|
-
children: menuOptions.map((option, i) => /*#__PURE__*/(0,jsx_runtime.jsxs)(MenuItem, {
|
|
341609
|
-
className: "btn context-menu__item",
|
|
341610
|
-
onClick: option.action,
|
|
341611
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(option.icon, {}), "\xA0", option.text]
|
|
339590
|
+
var topMenuOptions = menuOptions.filter(menuOption => menuOption.position === "top");
|
|
339591
|
+
var bottomMenuOptions = menuOptions.filter(menuOption => menuOption.position === "bottom");
|
|
339592
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
339593
|
+
className: Sidebar_styles_module.bar,
|
|
339594
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
339595
|
+
className: Sidebar_styles_module.optionsTop,
|
|
339596
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
339597
|
+
className: Sidebar_styles_module.gwcLogo,
|
|
339598
|
+
src: gwc_logo_namespaceObject,
|
|
339599
|
+
alt: "GWC Logo"
|
|
339600
|
+
}), topMenuOptions.map((menuOption, i) => /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarBarOption, {
|
|
339601
|
+
Icon: menuOption.icon,
|
|
339602
|
+
title: menuOption.title,
|
|
339603
|
+
isActive: option === menuOption.name,
|
|
339604
|
+
toggleOption: toggleOption,
|
|
339605
|
+
name: menuOption.name
|
|
339606
|
+
}, i))]
|
|
339607
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
339608
|
+
className: Sidebar_styles_module.optionsBottom,
|
|
339609
|
+
children: bottomMenuOptions.map((menuOption, i) => /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarBarOption, {
|
|
339610
|
+
Icon: menuOption.icon,
|
|
339611
|
+
title: menuOption.title,
|
|
339612
|
+
isActive: option === menuOption.name,
|
|
339613
|
+
toggleOption: toggleOption,
|
|
339614
|
+
name: menuOption.name,
|
|
339615
|
+
buttonText: menuOption.buttonText,
|
|
339616
|
+
isUser: menuOption.name === "user"
|
|
341612
339617
|
}, i))
|
|
341613
339618
|
})]
|
|
341614
339619
|
});
|
|
341615
339620
|
};
|
|
341616
|
-
/* harmony default export */ const
|
|
341617
|
-
;// ./src/components/Menus/FileMenu/FileMenu.jsx
|
|
341618
|
-
|
|
341619
|
-
|
|
341620
|
-
|
|
341621
|
-
|
|
341622
|
-
|
|
341623
|
-
|
|
341624
|
-
|
|
341625
|
-
|
|
341626
|
-
var FileMenu = props => {
|
|
341627
|
-
var dispatch = (0,external_react_redux_namespaceObject.useDispatch)();
|
|
341628
|
-
var {
|
|
341629
|
-
t
|
|
341630
|
-
} = useTranslation_useTranslation();
|
|
341631
|
-
var onClickRenameFile = () => {
|
|
341632
|
-
dispatch(showRenameFileModal(props));
|
|
341633
|
-
};
|
|
341634
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
341635
|
-
onClick: e => e.stopPropagation(),
|
|
341636
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(ContextMenu_ContextMenu, {
|
|
341637
|
-
align: "start",
|
|
341638
|
-
direction: "right",
|
|
341639
|
-
menuButtonLabel: t("filePanel.fileMenu.label"),
|
|
341640
|
-
MenuButtonIcon: ellipsis_vertical,
|
|
341641
|
-
menuOptions: [{
|
|
341642
|
-
icon: pencil,
|
|
341643
|
-
text: t("filePanel.fileMenu.renameItem"),
|
|
341644
|
-
action: onClickRenameFile
|
|
341645
|
-
}],
|
|
341646
|
-
offsetX: 16,
|
|
341647
|
-
offsetY: -8
|
|
341648
|
-
})
|
|
341649
|
-
});
|
|
341650
|
-
};
|
|
341651
|
-
/* harmony default export */ const FileMenu_FileMenu = (FileMenu);
|
|
341652
|
-
;// ./src/assets/stylesheets/FilePanel.scss
|
|
341653
|
-
// extracted by mini-css-extract-plugin
|
|
341654
|
-
|
|
341655
|
-
;// ./src/assets/stylesheets/Sidebar.scss
|
|
341656
|
-
// extracted by mini-css-extract-plugin
|
|
341657
|
-
|
|
339621
|
+
/* harmony default export */ const Sidebar_SidebarBar = (SidebarBar);
|
|
341658
339622
|
;// ./node_modules/re-resizable/lib/resizer.js
|
|
341659
339623
|
var resizer_extends = (undefined && undefined.__extends) || (function () {
|
|
341660
339624
|
var extendStatics = function (d, b) {
|
|
@@ -342590,6 +340554,7 @@ var ResizableWithHandle = props => {
|
|
|
342590
340554
|
|
|
342591
340555
|
|
|
342592
340556
|
|
|
340557
|
+
|
|
342593
340558
|
var SidebarPanel = props => {
|
|
342594
340559
|
var {
|
|
342595
340560
|
children,
|
|
@@ -342604,29 +340569,29 @@ var SidebarPanel = props => {
|
|
|
342604
340569
|
});
|
|
342605
340570
|
var panelContent = /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
342606
340571
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
342607
|
-
className:
|
|
340572
|
+
className: Sidebar_styles_module.panelHeader,
|
|
342608
340573
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("h2", {
|
|
342609
|
-
className:
|
|
340574
|
+
className: Sidebar_styles_module.panelHeading,
|
|
342610
340575
|
children: heading
|
|
342611
340576
|
}), (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342612
|
-
className:
|
|
340577
|
+
className: Sidebar_styles_module.panelButtons,
|
|
342613
340578
|
children: buttons
|
|
342614
340579
|
})]
|
|
342615
340580
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342616
|
-
className:
|
|
340581
|
+
className: Sidebar_styles_module.panelContent,
|
|
342617
340582
|
children: children
|
|
342618
340583
|
}), Footer && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342619
|
-
className:
|
|
340584
|
+
className: Sidebar_styles_module.panelFooter,
|
|
342620
340585
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Footer, {})
|
|
342621
340586
|
})]
|
|
342622
340587
|
});
|
|
342623
340588
|
return isMobile ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342624
340589
|
"data-testid": "sidebar__panel",
|
|
342625
|
-
className: classnames_default()(
|
|
340590
|
+
className: classnames_default()(Sidebar_styles_module.panel, className, Footer && Sidebar_styles_module.panelWithFooter),
|
|
342626
340591
|
children: panelContent
|
|
342627
340592
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(utils_ResizableWithHandle, {
|
|
342628
340593
|
"data-testid": "sidebar__panel",
|
|
342629
|
-
className: classnames_default()(
|
|
340594
|
+
className: classnames_default()(Sidebar_styles_module.panel, className, Footer && Sidebar_styles_module.panelWithFooter),
|
|
342630
340595
|
defaultWidth: defaultWidth,
|
|
342631
340596
|
defaultHeight: "100%",
|
|
342632
340597
|
handleDirection: "right",
|
|
@@ -342636,379 +340601,6 @@ var SidebarPanel = props => {
|
|
|
342636
340601
|
});
|
|
342637
340602
|
};
|
|
342638
340603
|
/* harmony default export */ const Sidebar_SidebarPanel = (SidebarPanel);
|
|
342639
|
-
;// ./src/assets/icons/file.svg
|
|
342640
|
-
var file_path;
|
|
342641
|
-
function file_extends() { return file_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, file_extends.apply(null, arguments); }
|
|
342642
|
-
|
|
342643
|
-
function SvgFile(props) {
|
|
342644
|
-
return /*#__PURE__*/external_react_.createElement("svg", file_extends({
|
|
342645
|
-
width: 24,
|
|
342646
|
-
height: 24,
|
|
342647
|
-
fill: "none",
|
|
342648
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342649
|
-
}, props), file_path || (file_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342650
|
-
d: "M8 18h8v-2H8v2zm0-4h8v-2H8v2zm-4 8V2h10l6 6v14H4zm9-13V4H6v16h12V9h-5zM6 4v5-5 16V4z"
|
|
342651
|
-
})));
|
|
342652
|
-
}
|
|
342653
|
-
/* harmony default export */ const file = (SvgFile);
|
|
342654
|
-
;// ./src/assets/icons/python_file.svg
|
|
342655
|
-
var python_file_path;
|
|
342656
|
-
function python_file_extends() { return python_file_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, python_file_extends.apply(null, arguments); }
|
|
342657
|
-
|
|
342658
|
-
function SvgPythonFile(props) {
|
|
342659
|
-
return /*#__PURE__*/external_react_.createElement("svg", python_file_extends({
|
|
342660
|
-
"data-testid": "pythonIcon",
|
|
342661
|
-
width: 24,
|
|
342662
|
-
height: 24,
|
|
342663
|
-
fill: "none",
|
|
342664
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342665
|
-
}, props), python_file_path || (python_file_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342666
|
-
d: "M11.527 11.626H9.162c-1.656 0-2.72 1.065-2.72 2.72v2.129c0 .236-.119.355-.355.355H5.022c-1.064 0-1.892-.473-2.365-1.42-.355-.709-.591-1.419-.591-2.128-.119-1.301-.119-2.602.355-3.903.354-1.064 1.064-1.892 2.247-2.129h6.859c.118 0 .355 0 .355-.118v-.591s-.237-.119-.355-.119H7.506c-.355 0-.473-.118-.473-.473V4.412c0-.828.355-1.42 1.064-1.656.592-.236 1.183-.473 1.774-.591 1.42-.237 2.839-.237 4.258.118.591.118 1.182.355 1.655.71.474.473.828.946.71 1.655v4.258c0 1.656-.946 2.602-2.602 2.602-.828.118-1.655.118-2.365.118zM8.216 4.53c0 .473.354.946.946.946.473 0 .946-.473.946-.946s-.473-.828-.946-.946c-.592 0-.946.473-.946.946zm4.257 8.279h2.365c1.656 0 2.72-1.065 2.72-2.72v-2.13c0-.236.119-.354.355-.354h1.065c1.064 0 1.892.473 2.365 1.42.355.709.591 1.418.591 2.128.119 1.3.119 2.602-.355 3.903-.354 1.064-1.064 1.892-2.247 2.129h-6.859c-.118 0-.355 0-.355.118v.591s.237.118.355.118h4.021c.355 0 .473.119.473.473v1.538c0 .828-.355 1.42-1.064 1.656-.592.236-1.183.473-1.774.591-1.42.236-2.839.236-4.258-.118-.591-.119-1.182-.355-1.655-.71-.474-.473-.828-.946-.71-1.656V15.53c0-1.656.946-2.602 2.602-2.602.828-.118 1.655-.118 2.365-.118zm3.311 7.096c0-.473-.354-.947-.946-.947-.473 0-.946.474-.946.947s.473.828.946.946c.592 0 .947-.473.947-.946z"
|
|
342667
|
-
})));
|
|
342668
|
-
}
|
|
342669
|
-
/* harmony default export */ const python_file = (SvgPythonFile);
|
|
342670
|
-
;// ./src/assets/icons/html_file.svg
|
|
342671
|
-
var html_file_path;
|
|
342672
|
-
function html_file_extends() { return html_file_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, html_file_extends.apply(null, arguments); }
|
|
342673
|
-
|
|
342674
|
-
function SvgHtmlFile(props) {
|
|
342675
|
-
return /*#__PURE__*/external_react_.createElement("svg", html_file_extends({
|
|
342676
|
-
"data-testid": "htmlIcon",
|
|
342677
|
-
width: 24,
|
|
342678
|
-
height: 24,
|
|
342679
|
-
fill: "none",
|
|
342680
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342681
|
-
}, props), html_file_path || (html_file_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342682
|
-
d: "M2 11.125l7.5-7v3.25l-5.625 5 5.625 5v3.25l-7.5-7v-2.5zm20 2.625l-7.5 7v-3.375l5.75-5-5.75-5V4l7.5 7v2.75z"
|
|
342683
|
-
})));
|
|
342684
|
-
}
|
|
342685
|
-
/* harmony default export */ const html_file = (SvgHtmlFile);
|
|
342686
|
-
;// ./src/assets/icons/css_file.svg
|
|
342687
|
-
var css_file_path;
|
|
342688
|
-
function css_file_extends() { return css_file_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, css_file_extends.apply(null, arguments); }
|
|
342689
|
-
|
|
342690
|
-
function SvgCssFile(props) {
|
|
342691
|
-
return /*#__PURE__*/external_react_.createElement("svg", css_file_extends({
|
|
342692
|
-
"data-testid": "cssIcon",
|
|
342693
|
-
width: 18,
|
|
342694
|
-
height: 18,
|
|
342695
|
-
viewBox: "0 0 20 18",
|
|
342696
|
-
fill: "none",
|
|
342697
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342698
|
-
}, props), css_file_path || (css_file_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342699
|
-
d: "M2.053 17.638l.967-4.833H0v-2.537h3.624l.604-3.02h-3.14V4.711h3.744L5.798 0h3.383l-.966 4.711h3.382L12.564 0h3.382l-.966 4.711H18v2.537h-3.504l-.724 3.02h3.14v2.537h-3.624l-.966 4.833H8.939l.967-4.833H6.523l-.966 4.833H2.053zm8.336-7.37l.604-3.02H7.611l-.604 3.02h3.382z"
|
|
342700
|
-
})));
|
|
342701
|
-
}
|
|
342702
|
-
/* harmony default export */ const css_file = (SvgCssFile);
|
|
342703
|
-
;// ./src/assets/icons/csv_file.svg
|
|
342704
|
-
var csv_file_path;
|
|
342705
|
-
function csv_file_extends() { return csv_file_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, csv_file_extends.apply(null, arguments); }
|
|
342706
|
-
|
|
342707
|
-
function SvgCsvFile(props) {
|
|
342708
|
-
return /*#__PURE__*/external_react_.createElement("svg", csv_file_extends({
|
|
342709
|
-
width: 24,
|
|
342710
|
-
height: 24,
|
|
342711
|
-
fill: "none",
|
|
342712
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342713
|
-
}, props), csv_file_path || (csv_file_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342714
|
-
d: "M3 3v17.8h18V3H3zm2.9 3.7H11V8H5.9V6.7zm7 0H18V8h-5.1V6.7zm-7 3H11V11H5.9V9.7zm7 0H18V11h-5.1V9.7zm-7 3H11V14H5.9v-1.3zm7 0H18V14h-5.1v-1.3zm-7 3H11V17H5.9v-1.3zm7 0H18V17h-5.1v-1.3z"
|
|
342715
|
-
})));
|
|
342716
|
-
}
|
|
342717
|
-
/* harmony default export */ const csv_file = (SvgCsvFile);
|
|
342718
|
-
;// ./src/utils/FileIcon.jsx
|
|
342719
|
-
|
|
342720
|
-
|
|
342721
|
-
|
|
342722
|
-
|
|
342723
|
-
|
|
342724
|
-
|
|
342725
|
-
|
|
342726
|
-
var FileIcon = _ref => {
|
|
342727
|
-
var {
|
|
342728
|
-
ext
|
|
342729
|
-
} = _ref;
|
|
342730
|
-
switch (ext) {
|
|
342731
|
-
case FILE_EXTENSIONS.py:
|
|
342732
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(python_file, {
|
|
342733
|
-
"data-testid": "pythonIcon"
|
|
342734
|
-
});
|
|
342735
|
-
case FILE_EXTENSIONS.html:
|
|
342736
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(html_file, {
|
|
342737
|
-
"data-testid": "htmlIcon"
|
|
342738
|
-
});
|
|
342739
|
-
case FILE_EXTENSIONS.css:
|
|
342740
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(css_file, {
|
|
342741
|
-
"data-testid": "cssIcon"
|
|
342742
|
-
});
|
|
342743
|
-
case FILE_EXTENSIONS.csv:
|
|
342744
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(csv_file, {
|
|
342745
|
-
"data-testid": "csvIcon"
|
|
342746
|
-
});
|
|
342747
|
-
default:
|
|
342748
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(file, {
|
|
342749
|
-
"data-testid": "defaultFileIcon"
|
|
342750
|
-
});
|
|
342751
|
-
}
|
|
342752
|
-
};
|
|
342753
|
-
/* harmony default export */ const utils_FileIcon = (FileIcon);
|
|
342754
|
-
;// ./src/assets/icons/plus.svg
|
|
342755
|
-
var plus_path;
|
|
342756
|
-
function plus_extends() { return plus_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, plus_extends.apply(null, arguments); }
|
|
342757
|
-
|
|
342758
|
-
function SvgPlus(props) {
|
|
342759
|
-
return /*#__PURE__*/external_react_.createElement("svg", plus_extends({
|
|
342760
|
-
width: 14,
|
|
342761
|
-
height: 14,
|
|
342762
|
-
fill: "none",
|
|
342763
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342764
|
-
}, props), plus_path || (plus_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342765
|
-
d: "M6 14V8H0V6h6V0h2v6h6v2H8v6H6z"
|
|
342766
|
-
})));
|
|
342767
|
-
}
|
|
342768
|
-
/* harmony default export */ const plus = (SvgPlus);
|
|
342769
|
-
;// ./src/components/Menus/Sidebar/FilePanel/FilePanel.jsx
|
|
342770
|
-
|
|
342771
|
-
|
|
342772
|
-
|
|
342773
|
-
|
|
342774
|
-
|
|
342775
|
-
|
|
342776
|
-
|
|
342777
|
-
|
|
342778
|
-
|
|
342779
|
-
|
|
342780
|
-
|
|
342781
|
-
|
|
342782
|
-
|
|
342783
|
-
var FilePanel = _ref => {
|
|
342784
|
-
var {
|
|
342785
|
-
isMobile
|
|
342786
|
-
} = _ref;
|
|
342787
|
-
var project = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.project);
|
|
342788
|
-
var openFiles = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.openFiles);
|
|
342789
|
-
var readOnly = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.readOnly);
|
|
342790
|
-
var {
|
|
342791
|
-
t
|
|
342792
|
-
} = useTranslation_useTranslation();
|
|
342793
|
-
var dispatch = (0,external_react_redux_namespaceObject.useDispatch)();
|
|
342794
|
-
var switchToFileTab = (panelIndex, fileIndex) => {
|
|
342795
|
-
dispatch(setFocussedFileIndex({
|
|
342796
|
-
panelIndex,
|
|
342797
|
-
fileIndex
|
|
342798
|
-
}));
|
|
342799
|
-
};
|
|
342800
|
-
var openFileTab = fileName => {
|
|
342801
|
-
if (openFiles.flat().includes(fileName)) {
|
|
342802
|
-
var panelIndex = openFiles.map(fileNames => fileNames.includes(fileName)).indexOf(true);
|
|
342803
|
-
var fileIndex = openFiles[panelIndex].indexOf(fileName);
|
|
342804
|
-
switchToFileTab(panelIndex, fileIndex);
|
|
342805
|
-
} else {
|
|
342806
|
-
dispatch(openFile(fileName));
|
|
342807
|
-
switchToFileTab(0, openFiles[0].length);
|
|
342808
|
-
}
|
|
342809
|
-
if (isMobile) {
|
|
342810
|
-
dispatch(hideSidebar());
|
|
342811
|
-
}
|
|
342812
|
-
};
|
|
342813
|
-
var openNewFileModal = () => {
|
|
342814
|
-
dispatch(showNewFileModal());
|
|
342815
|
-
};
|
|
342816
|
-
var buttons = readOnly ? [] : [/*#__PURE__*/(0,jsx_runtime.jsx)(DesignSystemButton_DesignSystemButton, {
|
|
342817
|
-
text: t("filePanel.newFileButton"),
|
|
342818
|
-
textAways: true,
|
|
342819
|
-
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(plus, {}),
|
|
342820
|
-
onClick: openNewFileModal,
|
|
342821
|
-
className: "btn--primary",
|
|
342822
|
-
fill: true
|
|
342823
|
-
})];
|
|
342824
|
-
if (!project || !project.components) {
|
|
342825
|
-
return null;
|
|
342826
|
-
}
|
|
342827
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarPanel, {
|
|
342828
|
-
heading: t("filePanel.files"),
|
|
342829
|
-
buttons: buttons,
|
|
342830
|
-
children: project.components.map((file, i) => /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
342831
|
-
className: "files-list-item-wrapper",
|
|
342832
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DesignSystemButton_DesignSystemButton, {
|
|
342833
|
-
className: "files-list-item",
|
|
342834
|
-
onClick: () => openFileTab("".concat(file.name, ".").concat(file.extension)),
|
|
342835
|
-
text: "".concat(file.name, ".").concat(file.extension),
|
|
342836
|
-
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(utils_FileIcon, {
|
|
342837
|
-
ext: file.extension
|
|
342838
|
-
}),
|
|
342839
|
-
type: "tertiary",
|
|
342840
|
-
textAlways: true,
|
|
342841
|
-
small: true
|
|
342842
|
-
}), readOnly || file.name === "main" && file.extension === FILE_EXTENSIONS.py || file.name === "index" && file.extension === FILE_EXTENSIONS.html ? null : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342843
|
-
className: "files-list-item__menu",
|
|
342844
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FileMenu_FileMenu, {
|
|
342845
|
-
fileKey: i,
|
|
342846
|
-
name: file.name,
|
|
342847
|
-
ext: file.extension
|
|
342848
|
-
})
|
|
342849
|
-
})]
|
|
342850
|
-
}, i))
|
|
342851
|
-
});
|
|
342852
|
-
};
|
|
342853
|
-
/* harmony default export */ const FilePanel_FilePanel = (FilePanel);
|
|
342854
|
-
;// ./src/assets/icons/double_arrow_left.svg
|
|
342855
|
-
var double_arrow_left_path;
|
|
342856
|
-
function double_arrow_left_extends() { return double_arrow_left_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, double_arrow_left_extends.apply(null, arguments); }
|
|
342857
|
-
|
|
342858
|
-
function SvgDoubleArrowLeft(props) {
|
|
342859
|
-
return /*#__PURE__*/external_react_.createElement("svg", double_arrow_left_extends({
|
|
342860
|
-
width: 24,
|
|
342861
|
-
height: 24,
|
|
342862
|
-
fill: "none",
|
|
342863
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342864
|
-
}, props), double_arrow_left_path || (double_arrow_left_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342865
|
-
d: "M11 18l-6-6 6-6 1.4 1.4L7.825 12l4.575 4.6L11 18zm6.6 0l-6-6 6-6L19 7.4 14.425 12 19 16.6 17.6 18z"
|
|
342866
|
-
})));
|
|
342867
|
-
}
|
|
342868
|
-
/* harmony default export */ const double_arrow_left = (SvgDoubleArrowLeft);
|
|
342869
|
-
;// ./src/assets/icons/double_arrow_right.svg
|
|
342870
|
-
var double_arrow_right_path;
|
|
342871
|
-
function double_arrow_right_extends() { return double_arrow_right_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, double_arrow_right_extends.apply(null, arguments); }
|
|
342872
|
-
|
|
342873
|
-
function SvgDoubleArrowRight(props) {
|
|
342874
|
-
return /*#__PURE__*/external_react_.createElement("svg", double_arrow_right_extends({
|
|
342875
|
-
width: 24,
|
|
342876
|
-
height: 24,
|
|
342877
|
-
fill: "none",
|
|
342878
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
342879
|
-
}, props), double_arrow_right_path || (double_arrow_right_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
342880
|
-
d: "M6.4 18L5 16.6 9.575 12 5 7.4 6.4 6l6 6-6 6zm6.6 0l-1.4-1.4 4.575-4.6L11.6 7.4 13 6l6 6-6 6z"
|
|
342881
|
-
})));
|
|
342882
|
-
}
|
|
342883
|
-
/* harmony default export */ const double_arrow_right = (SvgDoubleArrowRight);
|
|
342884
|
-
;// ./src/components/Menus/Sidebar/SidebarBarOption.jsx
|
|
342885
|
-
|
|
342886
|
-
|
|
342887
|
-
|
|
342888
|
-
|
|
342889
|
-
var SidebarBarOption = props => {
|
|
342890
|
-
var {
|
|
342891
|
-
Icon,
|
|
342892
|
-
isActive,
|
|
342893
|
-
name,
|
|
342894
|
-
title,
|
|
342895
|
-
toggleOption
|
|
342896
|
-
} = props;
|
|
342897
|
-
var onClickHandler = () => {
|
|
342898
|
-
toggleOption(name);
|
|
342899
|
-
if (name === "file" && window.plausible) {
|
|
342900
|
-
window.plausible("Side menu open project files");
|
|
342901
|
-
}
|
|
342902
|
-
};
|
|
342903
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342904
|
-
className: classnames_default()("sidebar__bar-option-wrapper", {
|
|
342905
|
-
"sidebar__bar-option-wrapper--selected": isActive
|
|
342906
|
-
}),
|
|
342907
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
342908
|
-
className: classnames_default()("sidebar__bar-option", {
|
|
342909
|
-
"sidebar__bar-option--selected": isActive
|
|
342910
|
-
}),
|
|
342911
|
-
ButtonIcon: Icon,
|
|
342912
|
-
title: title,
|
|
342913
|
-
onClickHandler: onClickHandler
|
|
342914
|
-
})
|
|
342915
|
-
});
|
|
342916
|
-
};
|
|
342917
|
-
/* harmony default export */ const Sidebar_SidebarBarOption = (SidebarBarOption);
|
|
342918
|
-
;// ./src/assets/html_icon.svg
|
|
342919
|
-
const html_icon_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxyZWN0IHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcng9IjQiIGZpbGw9IiMxMDFCMjkiLz4NCjxwYXRoIGQ9Ik0xMCAxOC43NUwxNy41IDExLjc1VjE1TDExLjg3NSAyMEwxNy41IDI1VjI4LjI1TDEwIDIxL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|
-
|
|
342932
|
-
|
|
342933
|
-
|
|
342934
|
-
|
|
342935
|
-
|
|
342936
|
-
|
|
342937
|
-
var SidebarBar = props => {
|
|
342938
|
-
var {
|
|
342939
|
-
menuOptions,
|
|
342940
|
-
option,
|
|
342941
|
-
toggleOption
|
|
342942
|
-
} = props;
|
|
342943
|
-
var project = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.project);
|
|
342944
|
-
var {
|
|
342945
|
-
t
|
|
342946
|
-
} = useTranslation_useTranslation();
|
|
342947
|
-
var topMenuOptions = menuOptions.filter(menuOption => menuOption.position === "top");
|
|
342948
|
-
var bottomMenuOptions = menuOptions.filter(menuOption => menuOption.position === "bottom");
|
|
342949
|
-
var isMobile = (0,react_responsive.useMediaQuery)({
|
|
342950
|
-
query: MOBILE_MEDIA_QUERY
|
|
342951
|
-
});
|
|
342952
|
-
var expandPopOut = () => {
|
|
342953
|
-
var option = "file";
|
|
342954
|
-
toggleOption(option);
|
|
342955
|
-
if (window.plausible) {
|
|
342956
|
-
// TODO: Make dynamic events for each option or rename this event
|
|
342957
|
-
window.plausible("Expand file pane");
|
|
342958
|
-
}
|
|
342959
|
-
};
|
|
342960
|
-
var collapsePopOut = () => {
|
|
342961
|
-
toggleOption(option);
|
|
342962
|
-
if (window.plausible) {
|
|
342963
|
-
window.plausible("Collapse file pane");
|
|
342964
|
-
}
|
|
342965
|
-
};
|
|
342966
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
342967
|
-
className: classnames_default()("sidebar__bar", {
|
|
342968
|
-
"sidebar__bar--selected": option
|
|
342969
|
-
}),
|
|
342970
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
342971
|
-
className: "sidebar__bar-options--top",
|
|
342972
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
342973
|
-
className: "editor-logo",
|
|
342974
|
-
src: project.project_type === PROJECT_TYPES.python ? python_icon_namespaceObject : html_icon_namespaceObject,
|
|
342975
|
-
alt: t("header.editorLogoAltText")
|
|
342976
|
-
}), topMenuOptions.map((menuOption, i) => /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarBarOption, {
|
|
342977
|
-
Icon: menuOption.icon,
|
|
342978
|
-
title: menuOption.title,
|
|
342979
|
-
isActive: option === menuOption.name,
|
|
342980
|
-
toggleOption: toggleOption,
|
|
342981
|
-
name: menuOption.name
|
|
342982
|
-
}, i))]
|
|
342983
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
342984
|
-
className: "sidebar__bar-options--bottom",
|
|
342985
|
-
children: [bottomMenuOptions.map((menuOption, i) => /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarBarOption, {
|
|
342986
|
-
Icon: menuOption.icon,
|
|
342987
|
-
title: menuOption.title,
|
|
342988
|
-
isActive: option === menuOption.name,
|
|
342989
|
-
toggleOption: toggleOption,
|
|
342990
|
-
name: menuOption.name
|
|
342991
|
-
}, i)), !isMobile && (option ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
342992
|
-
className: "sidebar__bar-option-wrapper",
|
|
342993
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
342994
|
-
className: "sidebar__bar-option",
|
|
342995
|
-
ButtonIcon: double_arrow_left,
|
|
342996
|
-
title: t("sidebar.collapse"),
|
|
342997
|
-
onClickHandler: collapsePopOut
|
|
342998
|
-
})
|
|
342999
|
-
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343000
|
-
className: "sidebar__bar-option-wrapper",
|
|
343001
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Button_Button, {
|
|
343002
|
-
className: "sidebar__bar-option",
|
|
343003
|
-
ButtonIcon: double_arrow_right,
|
|
343004
|
-
title: t("sidebar.expand"),
|
|
343005
|
-
onClickHandler: expandPopOut
|
|
343006
|
-
})
|
|
343007
|
-
}))]
|
|
343008
|
-
})]
|
|
343009
|
-
});
|
|
343010
|
-
};
|
|
343011
|
-
/* harmony default export */ const Sidebar_SidebarBar = (SidebarBar);
|
|
343012
340604
|
// EXTERNAL MODULE: ./node_modules/cookie/index.js
|
|
343013
340605
|
var cookie = __webpack_require__(57427);
|
|
343014
340606
|
;// ./node_modules/universal-cookie/es6/utils.js
|
|
@@ -343218,24 +340810,7 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {
|
|
|
343218
340810
|
// extracted by mini-css-extract-plugin
|
|
343219
340811
|
|
|
343220
340812
|
;// ./src/assets/icons/select_buttons_tick.svg
|
|
343221
|
-
|
|
343222
|
-
function select_buttons_tick_extends() { return select_buttons_tick_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, select_buttons_tick_extends.apply(null, arguments); }
|
|
343223
|
-
|
|
343224
|
-
function SvgSelectButtonsTick(props) {
|
|
343225
|
-
return /*#__PURE__*/external_react_.createElement("svg", select_buttons_tick_extends({
|
|
343226
|
-
width: 24,
|
|
343227
|
-
height: 24,
|
|
343228
|
-
fill: "none",
|
|
343229
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
343230
|
-
}, props), _rect || (_rect = /*#__PURE__*/external_react_.createElement("rect", {
|
|
343231
|
-
width: 24,
|
|
343232
|
-
height: 24,
|
|
343233
|
-
rx: 12
|
|
343234
|
-
})), select_buttons_tick_path || (select_buttons_tick_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343235
|
-
d: "M9.958 17l-4.75-4.75 1.188-1.187 3.562 3.562 7.646-7.646 1.188 1.188L9.958 17z"
|
|
343236
|
-
})));
|
|
343237
|
-
}
|
|
343238
|
-
/* harmony default export */ const select_buttons_tick = (SvgSelectButtonsTick);
|
|
340813
|
+
const select_buttons_tick_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgLz4NCiAgPHBhdGgNCiAgICBkPSJNOS45NTgzNyAxNy4wMDAxTDUuMjA4MzcgMTIuMjUwMUw2LjM5NTg3IDExLjA2MjZMOS45NTgzNyAxNC42MjUxTDE3LjYwNDIgNi45NzkyNUwxOC43OTE3IDguMTY2NzVMOS45NTgzNyAxNy4wMDAxWiINCiAgLz4NCjwvc3ZnPg0K";
|
|
343239
340814
|
;// ./src/utils/SelectButtons.jsx
|
|
343240
340815
|
|
|
343241
340816
|
|
|
@@ -343269,7 +340844,7 @@ var SelectButtons = _ref => {
|
|
|
343269
340844
|
htmlFor: "".concat(label, "-option").concat(i),
|
|
343270
340845
|
children: [option.Icon ? /*#__PURE__*/(0,jsx_runtime.jsx)(option.Icon, {}) : null, option.label, /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343271
340846
|
className: "select-buttons__tick".concat(option.value === value ? " select-buttons__tick--selected" : ""),
|
|
343272
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
340847
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(select_buttons_tick_namespaceObject, {})
|
|
343273
340848
|
})]
|
|
343274
340849
|
})]
|
|
343275
340850
|
}, i))
|
|
@@ -343322,50 +340897,11 @@ var ThemeToggle = () => {
|
|
|
343322
340897
|
};
|
|
343323
340898
|
/* harmony default export */ const ThemeToggle_ThemeToggle = (ThemeToggle);
|
|
343324
340899
|
;// ./src/assets/icons/font_icon_lg.svg
|
|
343325
|
-
|
|
343326
|
-
function font_icon_lg_extends() { return font_icon_lg_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, font_icon_lg_extends.apply(null, arguments); }
|
|
343327
|
-
|
|
343328
|
-
function SvgFontIconLg(props) {
|
|
343329
|
-
return /*#__PURE__*/external_react_.createElement("svg", font_icon_lg_extends({
|
|
343330
|
-
width: 24,
|
|
343331
|
-
height: 24,
|
|
343332
|
-
fill: "none",
|
|
343333
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
343334
|
-
}, props), font_icon_lg_path || (font_icon_lg_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343335
|
-
d: "M7.307 3c.465 0 .882.285 1.05.72l2.34 6.079-1.205 3.108a1.132 1.132 0 01-.052-.116l-.456-1.183H5.63l-.456 1.183a1.126 1.126 0 11-2.1-.81L6.26 3.72A1.126 1.126 0 017.309 3h-.002zm-.81 6.356h1.62l-.81-2.102-.81 2.102zm8.791-2.649a1.125 1.125 0 00-2.1 0L8.59 18.74a1.124 1.124 0 00-1.111 1.14 1.127 1.127 0 001.138 1.113h.68c.047.002.093.002.139 0l1.432-.005a1.124 1.124 0 001.123-1.06A1.127 1.127 0 0011 18.742l.574-1.501h5.332l.578 1.513a1.124 1.124 0 00-.993 1.185A1.127 1.127 0 0017.615 21l2.25-.006A1.124 1.124 0 0021 19.878a1.128 1.128 0 00-1.114-1.136l-1.122-2.936a1.14 1.14 0 00-.07-.184L15.29 6.709l-.002-.002zm.756 8.28h-3.611l1.805-4.726 1.806 4.726z"
|
|
343336
|
-
})));
|
|
343337
|
-
}
|
|
343338
|
-
/* harmony default export */ const font_icon_lg = (SvgFontIconLg);
|
|
340900
|
+
const font_icon_lg_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNNy4zMDcyMiAzQzcuNzcyMDkgM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g0IDE4Ljc0NDUgMTkuODg1OCAxOC43NDE3TDE4Ljc2NDEgMTUuODA2M0MxOC43NDYgMTUuNzQyOCAxOC43MjI0IDE1LjY4MSAxOC42OTM2IDE1LjYyMTZMMTUuMjg5NSA2LjcwODcxTDE1LjI4OCA2LjcwNzIxWk0xNi4wNDM4IDE0Ljk4NjVIMTIuNDMyOEwxNC4yMzgzIDEwLjI2MTNMMTYuMDQzOCAxNC45ODY1WiIgLz4NCjwvc3ZnPg0K";
|
|
343339
340901
|
;// ./src/assets/icons/font_icon_rg.svg
|
|
343340
|
-
|
|
343341
|
-
function font_icon_rg_extends() { return font_icon_rg_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, font_icon_rg_extends.apply(null, arguments); }
|
|
343342
|
-
|
|
343343
|
-
function SvgFontIconRg(props) {
|
|
343344
|
-
return /*#__PURE__*/external_react_.createElement("svg", font_icon_rg_extends({
|
|
343345
|
-
width: 24,
|
|
343346
|
-
height: 24,
|
|
343347
|
-
fill: "none",
|
|
343348
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
343349
|
-
}, props), font_icon_rg_path || (font_icon_rg_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343350
|
-
d: "M8.35 5c.362 0 .686.222.816.56l1.821 4.728-.938 2.417a.888.888 0 01-.04-.09l-.355-.92H7.046l-.354.92a.875.875 0 11-1.633-.63L7.535 5.56A.876.876 0 018.35 5zm-.63 4.943h1.26l-.63-1.635-.63 1.635zm6.837-2.06a.876.876 0 00-1.634 0l-3.575 9.36a.874.874 0 00-.864.886.877.877 0 00.885.865h.53a.874.874 0 00.107 0l1.114-.003a.874.874 0 00.67-1.44.875.875 0 00-.568-.306l.446-1.168h4.147l.45 1.177a.875.875 0 00-.499 1.508.874.874 0 00.601.238l1.75-.005a.874.874 0 00.633-1.49.874.874 0 00-.617-.261l-.872-2.284a.87.87 0 00-.055-.143L14.56 7.885l-.002-.002zm.588 6.44h-2.808l1.404-3.675 1.404 3.675z"
|
|
343351
|
-
})));
|
|
343352
|
-
}
|
|
343353
|
-
/* harmony default export */ const font_icon_rg = (SvgFontIconRg);
|
|
340902
|
+
const font_icon_rg_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNOC4zNTAwNiA1QzguNzExNjIgNSA5LjAzNTg3IDUuMjIxODkgOS4xNjY1IDUuNTYwNTZMMTAuOTg3MiAxMC4yODhMMTAuMDQ5NCAxMi43MDU0QzEwLjAzNDIgMTIuNjc2MiAxMC4wMjA1IDEyLjY0NjIgMTAuMDA4NiAxMi42MTU0TDkuNjU0MDMgMTEuNjk1Mkg3LjA0NjA4TDYuNjkxNTEgMTIuNjE1NEM2LjYwNzk5IDEyLjgzMjMgNi40NDE4OCAxMy4wMDcgNi4yMjk3MSAxMy4xMDExQzYuMDE3NTMgMTMuMTk1MyA1Ljc3NjY5IDEzLjIwMTIgNS41NjAxNiAxMy4xMTc2QzUuMzQzNjIgMTMuMDM0IDUuMTY5MTQgMTIuODY3NyA1LjA3NTA4IDEyLjY1NTJDNC45ODEwMyAxMi40NDI4IDQuOTc1MTEgMTIuMjAxNiA1LjA1ODYzIDExLjk4NDhMNy41MzQ3OCA1LjU2MDU2QzcuNTk4NCA1LjM5NTQ5IDcuNzEwNDUgNS4yNTM1OCA3Ljg1NjE5IDUuMTUzNTJDOC4wMDE5MyA1LjA1MzQ1IDguMTc0NTEgNC45OTk5MyA4LjM1MTIyIDVIOC4zNTAwNlpNNy43MjAyMyA5Ljk0MzQ0SDguOTc5ODhMOC4zNTAwNiA4LjMwODQ3TDcuNzIwMjMgOS45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Q3OTMgMTcuOTUyMyAxNS40OTI1IDE4LjE3NTZDMTUuNTA1NiAxOC4zOTg5IDE1LjYwMzYgMTguNjA4NyAxNS43NjYzIDE4Ljc2MkMxNS45MjkgMTguOTE1MyAxNi4xNDQxIDE5LjAwMDUgMTYuMzY3NSAxOUwxOC4xMTcgMTguOTk1M0MxOC4zNDkgMTguOTk3NSAxOC41NzI0IDE4LjkwNzMgMTguNzM4IDE4Ljc0NDZDMTguOTAzNiAxOC41ODE4IDE4Ljk5NzggMTguMzU5OSAxOSAxOC4xMjc2QzE5LjAwMjEgMTcuODk1MyAxOC45MTIgMTcuNjcxNyAxOC43NDk1IDE3LjUwNTlDMTguNTg3IDE3LjM0MDEgMTguMzY1NCAxNy4yNDU3IDE4LjEzMzQgMTcuMjQzNkwxNy4yNjA5IDE0Ljk2MDVDMTcuMjQ2OSAxNC45MTExIDE3LjIyODYgMTQuODYzIDE3LjIwNjEgMTQuODE2OEwxNC41NTg1IDcuODg0NTVMMTQuNTU3NCA3Ljg4MzM4Wk0xNS4xNDUyIDE0LjMyMjhIMTIuMzM2NkwxMy43NDA5IDEwLjY0NzZMMTUuMTQ1MiAxNC4zMjI4WiIgLz4NCjwvc3ZnPg0K";
|
|
343354
340903
|
;// ./src/assets/icons/font_icon_sm.svg
|
|
343355
|
-
|
|
343356
|
-
function font_icon_sm_extends() { return font_icon_sm_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, font_icon_sm_extends.apply(null, arguments); }
|
|
343357
|
-
|
|
343358
|
-
function SvgFontIconSm(props) {
|
|
343359
|
-
return /*#__PURE__*/external_react_.createElement("svg", font_icon_sm_extends({
|
|
343360
|
-
width: 24,
|
|
343361
|
-
height: 24,
|
|
343362
|
-
fill: "none",
|
|
343363
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
343364
|
-
}, props), font_icon_sm_path || (font_icon_sm_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343365
|
-
d: "M9.393 7c.258 0 .49.158.583.4l1.3 3.377-.67 1.727a.628.628 0 01-.028-.064l-.254-.658H8.461l-.253.658a.625.625 0 11-1.166-.45L8.81 7.4a.626.626 0 01.583-.4h-.001zm-.45 3.531h.9l-.45-1.168-.45 1.168zm4.884-1.471a.626.626 0 00-1.168 0l-2.553 6.685a.625.625 0 00.015 1.25h.378a.612.612 0 00.077 0l.795-.002a.624.624 0 00.073-1.247l.32-.834h2.96l.322.84A.624.624 0 0015.12 17l1.25-.003a.624.624 0 00.451-1.064.625.625 0 00-.44-.188l-.623-1.63a.627.627 0 00-.04-.103l-1.89-4.952h-.001zm.42 4.6H12.24l1.003-2.626 1.004 2.625z"
|
|
343366
|
-
})));
|
|
343367
|
-
}
|
|
343368
|
-
/* harmony default export */ const font_icon_sm = (SvgFontIconSm);
|
|
340904
|
+
const font_icon_sm_namespaceObject = "data:image/svg+xml;base64,PHN2Zw0KICB3aWR0aD0iMjQiDQogIGhlaWdodD0iMjQiDQogIHZpZXdCb3g9IjAgMCAyNCAyNCINCiAgZmlsbD0ibm9uZSINCiAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KPg0KICA8cGF0aCBkPSJNOS4zOTI5IDdDOS42NTExNiA3IDkuODgyNzYgNy4xNTg0OSA5Ljk3NjA3IDcuNDAwNEwxMS4yNzY1IDEwLjc3NzFMMTAuNjA2NyAxMi41MDM4QzEwLjU5NTggMTIuNDgzIDEwLjU4NjEgMTIuNDYxNSAxMC41Nzc2IDEyLjQzOTZMMTAuMzI0MyAxMS43ODIzSDguNDYxNDlMOC4yMDgyMiAxMi40Mzk2QzguMTQ4NTcgMTIuNTk0NSA4LjAyOTkxIDEyLjcxOTMgNy44NzgzNiAxMi43ODY1QzcuNzI2ODEgMTIuODUzOCA3LjU1NDc4IDEyLjg1OCA3LjQwMDExIDEyLjc5ODNDNy4yNDU0NSAxMi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
|
|
@@ -343399,15 +340935,15 @@ var FontSizeSelector = () => {
|
|
|
343399
340935
|
options: [{
|
|
343400
340936
|
value: "small",
|
|
343401
340937
|
label: t("sidebar.settingsMenu.textSizeOptions.small"),
|
|
343402
|
-
Icon:
|
|
340938
|
+
Icon: font_icon_sm_namespaceObject
|
|
343403
340939
|
}, {
|
|
343404
340940
|
value: "medium",
|
|
343405
340941
|
label: t("sidebar.settingsMenu.textSizeOptions.medium"),
|
|
343406
|
-
Icon:
|
|
340942
|
+
Icon: font_icon_rg_namespaceObject
|
|
343407
340943
|
}, {
|
|
343408
340944
|
value: "large",
|
|
343409
340945
|
label: t("sidebar.settingsMenu.textSizeOptions.large"),
|
|
343410
|
-
Icon:
|
|
340946
|
+
Icon: font_icon_lg_namespaceObject
|
|
343411
340947
|
}],
|
|
343412
340948
|
value: fontSize,
|
|
343413
340949
|
setValue: setFontSize
|
|
@@ -343440,184 +340976,16 @@ var SettingsPanel = () => {
|
|
|
343440
340976
|
});
|
|
343441
340977
|
};
|
|
343442
340978
|
/* harmony default export */ const SettingsPanel_SettingsPanel = (SettingsPanel);
|
|
343443
|
-
;// ./src/assets/icons/
|
|
343444
|
-
|
|
343445
|
-
|
|
343446
|
-
|
|
343447
|
-
|
|
343448
|
-
|
|
343449
|
-
|
|
343450
|
-
|
|
343451
|
-
|
|
343452
|
-
|
|
343453
|
-
}, props), home_path || (home_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343454
|
-
d: "M6 19h3v-6h6v6h3v-9l-6-4.5L6 10v9zm-2 2V9l8-6 8 6v12h-7v-6h-2v6H4z"
|
|
343455
|
-
})));
|
|
343456
|
-
}
|
|
343457
|
-
/* harmony default export */ const home = (SvgHome);
|
|
343458
|
-
;// ./src/assets/icons/settings.svg
|
|
343459
|
-
var settings_path;
|
|
343460
|
-
function settings_extends() { return settings_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, settings_extends.apply(null, arguments); }
|
|
343461
|
-
|
|
343462
|
-
function SvgSettings(props) {
|
|
343463
|
-
return /*#__PURE__*/external_react_.createElement("svg", settings_extends({
|
|
343464
|
-
width: 24,
|
|
343465
|
-
height: 24,
|
|
343466
|
-
fill: "none",
|
|
343467
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
343468
|
-
}, props), settings_path || (settings_path = /*#__PURE__*/external_react_.createElement("path", {
|
|
343469
|
-
d: "M9.25 22l-.4-3.2a3.79 3.79 0 01-.613-.3 8.266 8.266 0 01-.562-.375L4.7 19.375l-2.75-4.75 2.575-1.95a2.387 2.387 0 01-.025-.338v-.675c0-.108.008-.22.025-.337L1.95 9.375l2.75-4.75 2.975 1.25c.183-.133.375-.258.575-.375.2-.117.4-.217.6-.3l.4-3.2h5.5l.4 3.2c.217.083.42.183.612.3.192.117.38.242.563.375l2.975-1.25 2.75 4.75-2.575 1.95c.017.117.025.23.025.338v.675c0 .108-.017.22-.05.337l2.575 1.95-2.75 4.75-2.95-1.25a6.842 6.842 0 01-.575.375c-.2.117-.4.217-.6.3l-.4 3.2h-5.5zm2.8-6.5c.967 0 1.792-.342 2.475-1.025A3.372 3.372 0 0015.55 12c0-.967-.342-1.792-1.025-2.475A3.373 3.373 0 0012.05 8.5c-.983 0-1.813.342-2.488 1.025A3.393 3.393 0 008.55 12c0 .967.337 1.792 1.012 2.475.676.683 1.505 1.025 2.488 1.025zm0-2c-.417 0-.77-.146-1.063-.438A1.446 1.446 0 0110.55 12c0-.417.146-.77.438-1.063a1.446 1.446 0 011.062-.437c.417 0 .77.146 1.063.438.291.291.437.645.437 1.062 0 .417-.146.77-.438 1.063a1.447 1.447 0 01-1.062.437zM11 20h1.975l.35-2.65c.517-.133.996-.33 1.438-.588.441-.258.845-.57 1.212-.937l2.475 1.025.975-1.7-2.15-1.625c.083-.233.142-.48.175-.738a6.153 6.153 0 000-1.575 3.535 3.535 0 00-.175-.737l2.15-1.625-.975-1.7-2.475 1.05a5.556 5.556 0 00-1.213-.962 5.607 5.607 0 00-1.437-.588L13 4h-1.975l-.35 2.65c-.517.133-.996.33-1.438.587-.441.259-.845.571-1.212.938L5.55 7.15l-.975 1.7 2.15 1.6c-.083.25-.142.5-.175.75s-.05.517-.05.8c0 .267.017.525.05.775s.092.5.175.75l-2.15 1.625.975 1.7 2.475-1.05c.367.383.77.704 1.212.962.442.259.921.455 1.438.588L11 20z"
|
|
343470
|
-
})));
|
|
343471
|
-
}
|
|
343472
|
-
/* harmony default export */ const settings = (SvgSettings);
|
|
343473
|
-
;// ./src/assets/stylesheets/ProjectsPanel.scss
|
|
343474
|
-
// extracted by mini-css-extract-plugin
|
|
343475
|
-
|
|
343476
|
-
;// ./src/assets/stylesheets/ProjectInfo.scss
|
|
343477
|
-
// extracted by mini-css-extract-plugin
|
|
343478
|
-
|
|
343479
|
-
;// ./src/components/Menus/Sidebar/ProjectsPanel/ProjectInfo/ProjectInfo.jsx
|
|
343480
|
-
|
|
343481
|
-
|
|
343482
|
-
|
|
343483
|
-
|
|
343484
|
-
|
|
343485
|
-
|
|
343486
|
-
var ProjectInfo = _ref => {
|
|
343487
|
-
var {
|
|
343488
|
-
className
|
|
343489
|
-
} = _ref;
|
|
343490
|
-
var project_type = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.project.project_type);
|
|
343491
|
-
var {
|
|
343492
|
-
t
|
|
343493
|
-
} = useTranslation_useTranslation();
|
|
343494
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
343495
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
343496
|
-
className: classnames_default()("project-info", className),
|
|
343497
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("label", {
|
|
343498
|
-
htmlFor: "project_type",
|
|
343499
|
-
className: "project-type__label",
|
|
343500
|
-
children: t("projectsPanel.projectTypeLabel")
|
|
343501
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343502
|
-
className: "project-type__text",
|
|
343503
|
-
children: t("projectTypes.".concat(project_type))
|
|
343504
|
-
})]
|
|
343505
|
-
})
|
|
343506
|
-
});
|
|
343507
|
-
};
|
|
343508
|
-
/* harmony default export */ const ProjectInfo_ProjectInfo = (ProjectInfo);
|
|
343509
|
-
;// ./src/components/Menus/Sidebar/ProjectsPanel/ProjectsPanel.jsx
|
|
343510
|
-
|
|
343511
|
-
|
|
343512
|
-
|
|
343513
|
-
|
|
343514
|
-
|
|
343515
|
-
|
|
343516
|
-
|
|
343517
|
-
|
|
343518
|
-
|
|
343519
|
-
|
|
343520
|
-
|
|
343521
|
-
|
|
343522
|
-
|
|
343523
|
-
|
|
343524
|
-
|
|
343525
|
-
|
|
343526
|
-
var ProjectsPanel = () => {
|
|
343527
|
-
var {
|
|
343528
|
-
t
|
|
343529
|
-
} = useTranslation_useTranslation();
|
|
343530
|
-
var isLoggedIn = (0,external_react_redux_namespaceObject.useSelector)(state => {
|
|
343531
|
-
var _state$auth;
|
|
343532
|
-
return state === null || state === void 0 || (_state$auth = state.auth) === null || _state$auth === void 0 ? void 0 : _state$auth.user;
|
|
343533
|
-
});
|
|
343534
|
-
var isMobile = (0,react_responsive.useMediaQuery)({
|
|
343535
|
-
query: MOBILE_MEDIA_QUERY
|
|
343536
|
-
});
|
|
343537
|
-
var readOnly = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.readOnly);
|
|
343538
|
-
var saveOptions = /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
343539
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343540
|
-
className: "projects-panel__save",
|
|
343541
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(SaveButton_SaveButton, {
|
|
343542
|
-
className: "projects-panel__save-button"
|
|
343543
|
-
})
|
|
343544
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343545
|
-
className: "projects-panel__save-status",
|
|
343546
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(SaveStatus_SaveStatus, {
|
|
343547
|
-
isMobile: isMobile
|
|
343548
|
-
})
|
|
343549
|
-
})]
|
|
343550
|
-
});
|
|
343551
|
-
var navigateToProjectsPage = () => {
|
|
343552
|
-
document.dispatchEvent(navigateToProjectsPageEvent);
|
|
343553
|
-
};
|
|
343554
|
-
var buttons = isLoggedIn ? [/*#__PURE__*/(0,jsx_runtime.jsx)(DesignSystemButton_DesignSystemButton, {
|
|
343555
|
-
className: "btn--primary projects-panel__your-projects-button",
|
|
343556
|
-
onClick: navigateToProjectsPage,
|
|
343557
|
-
text: t("projectsPanel.yourProjectsButton"),
|
|
343558
|
-
textAlways: true
|
|
343559
|
-
}, "your-projects")] : [];
|
|
343560
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Sidebar_SidebarPanel, {
|
|
343561
|
-
heading: t("projectsPanel.projects"),
|
|
343562
|
-
buttons: buttons,
|
|
343563
|
-
className: "projects-panel-wrapper",
|
|
343564
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ProjectName_ProjectName, {
|
|
343565
|
-
showLabel: true,
|
|
343566
|
-
className: "projects-panel__item",
|
|
343567
|
-
editable: !readOnly
|
|
343568
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ProjectInfo_ProjectInfo, {
|
|
343569
|
-
className: "projects-panel__item"
|
|
343570
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
343571
|
-
className: "projects-panel__button",
|
|
343572
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadButton_DownloadButton, {
|
|
343573
|
-
buttonText: t("header.download"),
|
|
343574
|
-
className: "projects-panel__download-button",
|
|
343575
|
-
Icon: download
|
|
343576
|
-
})
|
|
343577
|
-
}), isMobile && saveOptions]
|
|
343578
|
-
});
|
|
343579
|
-
};
|
|
343580
|
-
/* harmony default export */ const ProjectsPanel_ProjectsPanel = (ProjectsPanel);
|
|
343581
|
-
;// ./src/assets/stylesheets/DownloadPanel.scss
|
|
343582
|
-
// extracted by mini-css-extract-plugin
|
|
343583
|
-
|
|
343584
|
-
;// ./src/components/Menus/Sidebar/DownloadPanel/DownloadPanel.jsx
|
|
343585
|
-
|
|
343586
|
-
|
|
343587
|
-
|
|
343588
|
-
|
|
343589
|
-
|
|
343590
|
-
|
|
343591
|
-
|
|
343592
|
-
|
|
343593
|
-
|
|
343594
|
-
|
|
343595
|
-
|
|
343596
|
-
|
|
343597
|
-
var DownloadPanel = () => {
|
|
343598
|
-
var {
|
|
343599
|
-
t
|
|
343600
|
-
} = useTranslation_useTranslation();
|
|
343601
|
-
var projectOwner = false;
|
|
343602
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)(Sidebar_SidebarPanel, {
|
|
343603
|
-
heading: t("downloadPanel.heading"),
|
|
343604
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
343605
|
-
className: "download-panel__download-section",
|
|
343606
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
343607
|
-
className: "download-panel__hint",
|
|
343608
|
-
children: t("downloadPanel.downloadHint")
|
|
343609
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DownloadButton_DownloadButton, {
|
|
343610
|
-
buttonText: t("downloadPanel.downloadButton"),
|
|
343611
|
-
className: "btn btn--secondary download-panel__button",
|
|
343612
|
-
Icon: download,
|
|
343613
|
-
fill: true
|
|
343614
|
-
})]
|
|
343615
|
-
}), !projectOwner && /*#__PURE__*/(0,jsx_runtime.jsx)(SaveButton_SaveButton, {
|
|
343616
|
-
fill: true
|
|
343617
|
-
})]
|
|
343618
|
-
});
|
|
343619
|
-
};
|
|
343620
|
-
/* harmony default export */ const DownloadPanel_DownloadPanel = (DownloadPanel);
|
|
340979
|
+
;// ./src/assets/icons/tj-file.svg
|
|
340980
|
+
const tj_file_namespaceObject = "data:image/svg+xml;base64,PHN2ZyB3aWR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TUyOCA4LjE3MzY4TDE0Ljk4MDMgMTEuMjYzN0MxNC43NDQ0IDExLjQ5MzUgMTQuNjM2OCAxMS44MjQ2IDE0LjY5MjQgMTIuMTQ5MUwxNS40NDA5IDE2LjUxMzRDMTUuNTgxMSAxNy4zMzAzIDE0LjcyMzUgMTcuOTUzMyAxMy45ODk5IDE3LjU2NzVMMTAuMDY5IDE1LjUwNTVDOS43Nzc1OCAxNS4zNTIzIDkuNDI5NDUgMTUuMzUyMyA5LjEzODA2IDE1LjUwNTVMNS4yMTcxNSAxNy41Njc1QzQuNDgzNTIgMTcuOTUzMyAzLjYyNTk3IDE3LjMzMDMgMy43NjYwOSAxNi41MTM0TDQuNTE0NiAxMi4xNDkxQzQuNTcwMjYgMTEuODI0NiA0LjQ2MjYgMTEuNDkzNSA0LjIyNjczIDExLjI2MzdMMS4wNTQxOSA4LjE3MzY4QzAuNDYwNjAxIDcuNTk1NTIgMC43ODczODUgNi41ODc2OCAxLjYwNzMgNi40Njc4NEw1Ljk5Mzg4IDUuODI2NjdDNi4zMTkyNCA1Ljc3OTEyIDYuNjAwNDIgNS41NzQ2NiA2Ljc0NTk2IDUuMjc5ODFMOC43MDY4MSAxLjMwNzM1WiIgc3Ryb2tlPSIjMzM2MjVFIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8L3N2Zz4NCg==";
|
|
343621
340989
|
;// ./src/components/Menus/Sidebar/Sidebar.jsx
|
|
343622
340990
|
|
|
343623
340991
|
|
|
@@ -343634,60 +341002,60 @@ var DownloadPanel = () => {
|
|
|
343634
341002
|
|
|
343635
341003
|
|
|
343636
341004
|
|
|
343637
|
-
|
|
343638
|
-
|
|
343639
341005
|
var Sidebar = _ref => {
|
|
343640
341006
|
var {
|
|
343641
|
-
options = []
|
|
343642
|
-
plugins = []
|
|
341007
|
+
options = []
|
|
343643
341008
|
} = _ref;
|
|
343644
|
-
var {
|
|
343645
|
-
t
|
|
343646
|
-
} = useTranslation_useTranslation();
|
|
343647
341009
|
var menuOptions = [{
|
|
343648
|
-
name: "
|
|
343649
|
-
icon:
|
|
343650
|
-
title:
|
|
343651
|
-
position: "top"
|
|
343652
|
-
panel:
|
|
341010
|
+
name: "files",
|
|
341011
|
+
icon: tj_file_namespaceObject,
|
|
341012
|
+
title: "Files",
|
|
341013
|
+
position: "top"
|
|
341014
|
+
// panel: FilePanel,
|
|
343653
341015
|
}, {
|
|
343654
|
-
name: "
|
|
343655
|
-
icon:
|
|
343656
|
-
title:
|
|
343657
|
-
position: "top"
|
|
343658
|
-
panel: FilePanel_FilePanel
|
|
341016
|
+
name: "activity",
|
|
341017
|
+
icon: tj_activity_namespaceObject,
|
|
341018
|
+
title: "Activity",
|
|
341019
|
+
position: "top"
|
|
343659
341020
|
}, {
|
|
343660
|
-
name: "
|
|
343661
|
-
icon:
|
|
343662
|
-
title:
|
|
343663
|
-
position: "top"
|
|
343664
|
-
panel: DownloadPanel_DownloadPanel
|
|
341021
|
+
name: "playground",
|
|
341022
|
+
icon: tj_playground_namespaceObject,
|
|
341023
|
+
title: "Playground",
|
|
341024
|
+
position: "top"
|
|
343665
341025
|
}, {
|
|
343666
|
-
name: "
|
|
343667
|
-
icon:
|
|
343668
|
-
title:
|
|
341026
|
+
name: "home",
|
|
341027
|
+
icon: tj_home_namespaceObject,
|
|
341028
|
+
title: "Home",
|
|
341029
|
+
position: "top"
|
|
341030
|
+
}, {
|
|
341031
|
+
name: "fonts",
|
|
341032
|
+
icon: tj_font_namespaceObject,
|
|
341033
|
+
title: "Fonts",
|
|
343669
341034
|
position: "bottom",
|
|
343670
341035
|
panel: SettingsPanel_SettingsPanel
|
|
341036
|
+
},
|
|
341037
|
+
//should be introduced in the later phases
|
|
341038
|
+
// {
|
|
341039
|
+
// name: "theme",
|
|
341040
|
+
// icon: ThemeIcon,
|
|
341041
|
+
// title: "Theme",
|
|
341042
|
+
// position: "bottom",
|
|
341043
|
+
// panel: SettingsPanel,
|
|
341044
|
+
// },
|
|
341045
|
+
{
|
|
341046
|
+
name: "user",
|
|
341047
|
+
buttonText: "MF",
|
|
341048
|
+
title: "User account",
|
|
341049
|
+
position: "bottom"
|
|
343671
341050
|
}].filter(option => options.includes(option.name));
|
|
343672
|
-
var pluginMenuOptions = plugins.map(plugin => {
|
|
343673
|
-
return {
|
|
343674
|
-
name: plugin.name,
|
|
343675
|
-
icon: plugin.icon,
|
|
343676
|
-
title: plugin.title,
|
|
343677
|
-
position: plugin.position || "top",
|
|
343678
|
-
panel: () => /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarPanel, {
|
|
343679
|
-
heading: plugin.heading,
|
|
343680
|
-
buttons: plugin.buttons || [],
|
|
343681
|
-
children: plugin.panel()
|
|
343682
|
-
})
|
|
343683
|
-
};
|
|
343684
|
-
});
|
|
343685
|
-
menuOptions = [...menuOptions, ...pluginMenuOptions];
|
|
343686
341051
|
var isMobile = (0,react_responsive.useMediaQuery)({
|
|
343687
341052
|
query: MOBILE_MEDIA_QUERY
|
|
343688
341053
|
});
|
|
343689
|
-
var
|
|
343690
|
-
|
|
341054
|
+
var [option, setOption] = (0,external_react_.useState)(() => {
|
|
341055
|
+
var _menuOptions$find;
|
|
341056
|
+
var defaultOption = ((_menuOptions$find = menuOptions.find(o => o.position === "top")) === null || _menuOptions$find === void 0 ? void 0 : _menuOptions$find.name) || "files";
|
|
341057
|
+
return menuOptions.length > 0 ? defaultOption : null;
|
|
341058
|
+
});
|
|
343691
341059
|
var toggleOption = newOption => {
|
|
343692
341060
|
if (option !== newOption) {
|
|
343693
341061
|
setOption(newOption);
|
|
@@ -343695,13 +341063,11 @@ var Sidebar = _ref => {
|
|
|
343695
341063
|
setOption(null);
|
|
343696
341064
|
}
|
|
343697
341065
|
};
|
|
343698
|
-
var
|
|
343699
|
-
|
|
343700
|
-
});
|
|
343701
|
-
var CustomSidebarPanel = optionDict && optionDict.panel ? optionDict.panel : () => {};
|
|
341066
|
+
var activeOption = menuOptions.find(opt => opt.name === option);
|
|
341067
|
+
var CustomSidebarPanel = (activeOption === null || activeOption === void 0 ? void 0 : activeOption.panel) || (() => null);
|
|
343702
341068
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
343703
|
-
className: classnames_default()(
|
|
343704
|
-
|
|
341069
|
+
className: classnames_default()(Sidebar_styles_module.sidebar, {
|
|
341070
|
+
[Sidebar_styles_module.mobile]: isMobile
|
|
343705
341071
|
}),
|
|
343706
341072
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_SidebarBar, {
|
|
343707
341073
|
menuOptions: menuOptions,
|
|
@@ -348874,7 +346240,7 @@ const space = 32;
|
|
|
348874
346240
|
const pageUp = 33;
|
|
348875
346241
|
const pageDown = 34;
|
|
348876
346242
|
const end = 35;
|
|
348877
|
-
const
|
|
346243
|
+
const home = 36;
|
|
348878
346244
|
const arrowLeft = 37;
|
|
348879
346245
|
const arrowUp = 38;
|
|
348880
346246
|
const arrowRight = 39;
|
|
@@ -349136,7 +346502,7 @@ function noop$1() {}
|
|
|
349136
346502
|
const scrollJumpKeys = {
|
|
349137
346503
|
[pageDown]: true,
|
|
349138
346504
|
[pageUp]: true,
|
|
349139
|
-
[
|
|
346505
|
+
[home]: true,
|
|
349140
346506
|
[end]: true
|
|
349141
346507
|
};
|
|
349142
346508
|
function getDraggingBindings(actions, stop) {
|
|
@@ -381225,7 +378591,7 @@ const pseudoClasses = /*@__PURE__*/[
|
|
|
381225
378591
|
"required", "right", "root", "scope", "selection", "slotted", "target",
|
|
381226
378592
|
"target-text", "valid", "visited", "where"
|
|
381227
378593
|
].map(name => ({ type: "class", label: name }));
|
|
381228
|
-
const
|
|
378594
|
+
const values = /*@__PURE__*/[
|
|
381229
378595
|
"above", "absolute", "activeborder", "additive", "activecaption", "after-white-space",
|
|
381230
378596
|
"ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always",
|
|
381231
378597
|
"antialiased", "appworkspace", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column",
|
|
@@ -381390,7 +378756,7 @@ const defineCSSCompletionSource = (isVariable) => context => {
|
|
|
381390
378756
|
(isDash || node.name == "TagName") && /^(Block|Styles)$/.test(node.resolve(node.to).name))
|
|
381391
378757
|
return { from: node.from, options: properties(), validFor: dist_identifier };
|
|
381392
378758
|
if (node.name == "ValueName")
|
|
381393
|
-
return { from: node.from, options:
|
|
378759
|
+
return { from: node.from, options: values, validFor: dist_identifier };
|
|
381394
378760
|
if (node.name == "PseudoClassName")
|
|
381395
378761
|
return { from: node.from, options: pseudoClasses, validFor: dist_identifier };
|
|
381396
378762
|
if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))
|
|
@@ -381411,7 +378777,7 @@ const defineCSSCompletionSource = (isVariable) => context => {
|
|
|
381411
378777
|
if (before && before.name == ":" && above.name == "PseudoClassSelector")
|
|
381412
378778
|
return { from: pos, options: pseudoClasses, validFor: dist_identifier };
|
|
381413
378779
|
if (before && before.name == ":" && above.name == "Declaration" || above.name == "ArgList")
|
|
381414
|
-
return { from: pos, options:
|
|
378780
|
+
return { from: pos, options: values, validFor: dist_identifier };
|
|
381415
378781
|
if (above.name == "Block" || above.name == "Styles")
|
|
381416
378782
|
return { from: pos, options: properties(), validFor: dist_identifier };
|
|
381417
378783
|
return null;
|
|
@@ -381477,7 +378843,7 @@ const noSemi = 312,
|
|
|
381477
378843
|
const javascript_dist_space = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200,
|
|
381478
378844
|
8201, 8202, 8232, 8233, 8239, 8287, 12288];
|
|
381479
378845
|
|
|
381480
|
-
const braceR = 125, semicolon = 59, dist_slash = 47, star = 42,
|
|
378846
|
+
const braceR = 125, semicolon = 59, dist_slash = 47, star = 42, plus = 43, minus = 45, lt = 60, comma = 44,
|
|
381481
378847
|
dist_question = 63, dot = 46, dist_bracketL = 91;
|
|
381482
378848
|
|
|
381483
378849
|
const trackNewline = new ContextTracker({
|
|
@@ -381508,7 +378874,7 @@ const noSemicolonType = new ExternalTokenizer((input, stack) => {
|
|
|
381508
378874
|
|
|
381509
378875
|
const operatorToken = new ExternalTokenizer((input, stack) => {
|
|
381510
378876
|
let {next} = input;
|
|
381511
|
-
if (next ==
|
|
378877
|
+
if (next == plus || next == minus) {
|
|
381512
378878
|
input.advance();
|
|
381513
378879
|
if (next == input.next) {
|
|
381514
378880
|
input.advance();
|
|
@@ -383954,8 +381320,7 @@ var Project = props => {
|
|
|
383954
381320
|
nameEditable = true,
|
|
383955
381321
|
withProjectbar = true,
|
|
383956
381322
|
withSidebar = true,
|
|
383957
|
-
sidebarOptions = []
|
|
383958
|
-
sidebarPlugins = []
|
|
381323
|
+
sidebarOptions = []
|
|
383959
381324
|
} = props;
|
|
383960
381325
|
var saving = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.saving);
|
|
383961
381326
|
var autosave = (0,external_react_redux_namespaceObject.useSelector)(state => state.editor.lastSaveAutosave);
|
|
@@ -383986,8 +381351,7 @@ var Project = props => {
|
|
|
383986
381351
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
383987
381352
|
className: "proj-container",
|
|
383988
381353
|
children: [withSidebar && /*#__PURE__*/(0,jsx_runtime.jsx)(Sidebar_Sidebar, {
|
|
383989
|
-
options: sidebarOptions
|
|
383990
|
-
plugins: sidebarPlugins
|
|
381354
|
+
options: sidebarOptions
|
|
383991
381355
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
383992
381356
|
className: "project-wrapper",
|
|
383993
381357
|
ref: containerRef,
|
|
@@ -384910,7 +382274,7 @@ var TextJamEditor = function TextJamEditor() {
|
|
|
384910
382274
|
var defaultProps = {
|
|
384911
382275
|
withProjectbar: true,
|
|
384912
382276
|
withSidebar: true,
|
|
384913
|
-
sidebarOptions: ["
|
|
382277
|
+
sidebarOptions: ["files", "activity", "playground", "home", "fonts", "theme", "user"],
|
|
384914
382278
|
code: "",
|
|
384915
382279
|
sidebarPlugins: []
|
|
384916
382280
|
};
|