gwchq-textjam 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +522 -533
- package/package.json +60 -60
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react_redux_87be03b0__ from "react-redux";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
5
|
/******/ var __webpack_modules__ = ({
|
|
5
6
|
|
|
6
7
|
/***/ 96988:
|
|
@@ -2483,7 +2484,7 @@ __export(index_exports, {
|
|
|
2483
2484
|
module.exports = __toCommonJS(index_exports);
|
|
2484
2485
|
|
|
2485
2486
|
// src/assistive-tree-description.tsx
|
|
2486
|
-
var import_react = __toESM(__webpack_require__(
|
|
2487
|
+
var import_react = __toESM(__webpack_require__(13327));
|
|
2487
2488
|
var import_core = __webpack_require__(96988);
|
|
2488
2489
|
var styles = {
|
|
2489
2490
|
position: "absolute",
|
|
@@ -2539,7 +2540,7 @@ var AssistiveTreeDescription = (_a) => {
|
|
|
2539
2540
|
};
|
|
2540
2541
|
|
|
2541
2542
|
// src/use-tree.tsx
|
|
2542
|
-
var import_react2 = __webpack_require__(
|
|
2543
|
+
var import_react2 = __webpack_require__(13327);
|
|
2543
2544
|
var import_core2 = __webpack_require__(96988);
|
|
2544
2545
|
var useTree = (config) => {
|
|
2545
2546
|
const [tree] = (0, import_react2.useState)(() => ({ current: (0, import_core2.createTree)(config) }));
|
|
@@ -2586,6 +2587,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2586
2587
|
useTouchSensor: () => (/* binding */ useTouchSensor)
|
|
2587
2588
|
});
|
|
2588
2589
|
|
|
2590
|
+
// EXTERNAL MODULE: ./src/react-external.js
|
|
2591
|
+
var react_external = __webpack_require__(13327);
|
|
2589
2592
|
// EXTERNAL MODULE: external "react"
|
|
2590
2593
|
var external_react_ = __webpack_require__(51649);
|
|
2591
2594
|
// EXTERNAL MODULE: external "react-dom"
|
|
@@ -3681,7 +3684,7 @@ function dnd_esm_invariant(condition, message) {
|
|
|
3681
3684
|
}
|
|
3682
3685
|
}
|
|
3683
3686
|
|
|
3684
|
-
class ErrorBoundary extends
|
|
3687
|
+
class ErrorBoundary extends react_external["default"].Component {
|
|
3685
3688
|
constructor(...args) {
|
|
3686
3689
|
super(...args);
|
|
3687
3690
|
this.callbacks = null;
|
|
@@ -8184,7 +8187,7 @@ function useRegistry() {
|
|
|
8184
8187
|
const registry = useMemo(createRegistry, []);
|
|
8185
8188
|
(0,external_react_.useEffect)(() => {
|
|
8186
8189
|
return function unmount() {
|
|
8187
|
-
if (
|
|
8190
|
+
if (react_external["default"].version.startsWith('16') || react_external["default"].version.startsWith('17')) {
|
|
8188
8191
|
requestAnimationFrame(registry.clean);
|
|
8189
8192
|
} else {
|
|
8190
8193
|
registry.clean();
|
|
@@ -8194,7 +8197,7 @@ function useRegistry() {
|
|
|
8194
8197
|
return registry;
|
|
8195
8198
|
}
|
|
8196
8199
|
|
|
8197
|
-
var StoreContext =
|
|
8200
|
+
var StoreContext = react_external["default"].createContext(null);
|
|
8198
8201
|
|
|
8199
8202
|
var getBodyElement = (() => {
|
|
8200
8203
|
const body = document.body;
|
|
@@ -8261,10 +8264,10 @@ function useDeprecatedUniqueId(prefix, options = defaults) {
|
|
|
8261
8264
|
return useMemo(() => `${prefix}${options.separator}${count$1++}`, [options.separator, prefix]);
|
|
8262
8265
|
}
|
|
8263
8266
|
function useUniqueId(prefix, options = defaults) {
|
|
8264
|
-
const id =
|
|
8267
|
+
const id = react_external["default"].useId();
|
|
8265
8268
|
return useMemo(() => `${prefix}${options.separator}${id}`, [options.separator, prefix, id]);
|
|
8266
8269
|
}
|
|
8267
|
-
var useUniqueId$1 = "useId" in
|
|
8270
|
+
var useUniqueId$1 = "useId" in react_external["default"] ? useUniqueId : useDeprecatedUniqueId;
|
|
8268
8271
|
|
|
8269
8272
|
function getElementId({
|
|
8270
8273
|
contextId,
|
|
@@ -8299,7 +8302,7 @@ function useHiddenTextElement({
|
|
|
8299
8302
|
return id;
|
|
8300
8303
|
}
|
|
8301
8304
|
|
|
8302
|
-
var AppContext =
|
|
8305
|
+
var AppContext = react_external["default"].createContext(null);
|
|
8303
8306
|
|
|
8304
8307
|
var peerDependencies = {
|
|
8305
8308
|
react: "^16.8.5 || ^17.0.0 || ^18.0.0",
|
|
@@ -8386,7 +8389,7 @@ function useDevSetupWarning(fn, inputs) {
|
|
|
8386
8389
|
|
|
8387
8390
|
function useStartupValidation() {
|
|
8388
8391
|
useDevSetupWarning(() => {
|
|
8389
|
-
checkReactVersion(peerDependencies.react,
|
|
8392
|
+
checkReactVersion(peerDependencies.react, react_external["default"].version);
|
|
8390
8393
|
checkDoctype(document);
|
|
8391
8394
|
}, []);
|
|
8392
8395
|
}
|
|
@@ -9484,7 +9487,7 @@ const createResponders = props => ({
|
|
|
9484
9487
|
props.onBeforeCapture(t);
|
|
9485
9488
|
}
|
|
9486
9489
|
};
|
|
9487
|
-
if (
|
|
9490
|
+
if (react_external["default"].version.startsWith('16') || react_external["default"].version.startsWith('17')) {
|
|
9488
9491
|
onBeforeCapureCallback();
|
|
9489
9492
|
} else {
|
|
9490
9493
|
(0,external_react_dom_.flushSync)(onBeforeCapureCallback);
|
|
@@ -9606,9 +9609,9 @@ function App(props) {
|
|
|
9606
9609
|
(0,external_react_.useEffect)(() => {
|
|
9607
9610
|
return tryResetStore;
|
|
9608
9611
|
}, [tryResetStore]);
|
|
9609
|
-
return
|
|
9612
|
+
return react_external["default"].createElement(AppContext.Provider, {
|
|
9610
9613
|
value: appContext
|
|
9611
|
-
},
|
|
9614
|
+
}, react_external["default"].createElement(external_react_redux_.Provider, {
|
|
9612
9615
|
context: StoreContext,
|
|
9613
9616
|
store: store
|
|
9614
9617
|
}, props.children));
|
|
@@ -9622,12 +9625,12 @@ function useDeprecatedUniqueContextId() {
|
|
|
9622
9625
|
return useMemo(() => `${count++}`, []);
|
|
9623
9626
|
}
|
|
9624
9627
|
function useUniqueContextId() {
|
|
9625
|
-
return
|
|
9628
|
+
return react_external["default"].useId();
|
|
9626
9629
|
}
|
|
9627
|
-
var useUniqueContextId$1 = "useId" in
|
|
9630
|
+
var useUniqueContextId$1 = "useId" in react_external["default"] ? useUniqueContextId : useDeprecatedUniqueContextId;
|
|
9628
9631
|
|
|
9629
9632
|
function resetServerContext() {
|
|
9630
|
-
if ("useId" in
|
|
9633
|
+
if ("useId" in react_external["default"]) {
|
|
9631
9634
|
false ? 0 : void 0;
|
|
9632
9635
|
return;
|
|
9633
9636
|
}
|
|
@@ -9637,7 +9640,7 @@ function resetServerContext() {
|
|
|
9637
9640
|
function DragDropContext(props) {
|
|
9638
9641
|
const contextId = useUniqueContextId$1();
|
|
9639
9642
|
const dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset$1.dragHandleUsageInstructions;
|
|
9640
|
-
return
|
|
9643
|
+
return react_external["default"].createElement(ErrorBoundary, null, setCallbacks => react_external["default"].createElement(App, {
|
|
9641
9644
|
nonce: props.nonce,
|
|
9642
9645
|
contextId: contextId,
|
|
9643
9646
|
setCallbacks: setCallbacks,
|
|
@@ -9782,7 +9785,7 @@ function useDraggablePublisher(args) {
|
|
|
9782
9785
|
}, [entry, registry.draggable]);
|
|
9783
9786
|
}
|
|
9784
9787
|
|
|
9785
|
-
var DroppableContext =
|
|
9788
|
+
var DroppableContext = react_external["default"].createContext(null);
|
|
9786
9789
|
|
|
9787
9790
|
function checkIsValidInnerRef(el) {
|
|
9788
9791
|
!(el && isHtmlElement(el)) ? false ? 0 : dnd_esm_invariant(false) : void 0;
|
|
@@ -9887,7 +9890,7 @@ const Draggable = props => {
|
|
|
9887
9890
|
if (event.propertyName !== 'transform') {
|
|
9888
9891
|
return;
|
|
9889
9892
|
}
|
|
9890
|
-
if (
|
|
9893
|
+
if (react_external["default"].version.startsWith('16') || react_external["default"].version.startsWith('17')) {
|
|
9891
9894
|
dropAnimationFinishedAction();
|
|
9892
9895
|
} else {
|
|
9893
9896
|
(0,external_react_dom_.flushSync)(dropAnimationFinishedAction);
|
|
@@ -9916,7 +9919,7 @@ const Draggable = props => {
|
|
|
9916
9919
|
droppableId: descriptor.droppableId
|
|
9917
9920
|
}
|
|
9918
9921
|
}), [descriptor.droppableId, descriptor.id, descriptor.index, descriptor.type]);
|
|
9919
|
-
return
|
|
9922
|
+
return react_external["default"].createElement(react_external["default"].Fragment, null, children(provided, mapped.snapshot, rubric));
|
|
9920
9923
|
};
|
|
9921
9924
|
var Draggable$1 = Draggable;
|
|
9922
9925
|
|
|
@@ -10120,13 +10123,13 @@ function PrivateDraggable(props) {
|
|
|
10120
10123
|
if (isUsingCloneFor === props.draggableId && !props.isClone) {
|
|
10121
10124
|
return null;
|
|
10122
10125
|
}
|
|
10123
|
-
return
|
|
10126
|
+
return react_external["default"].createElement(ConnectedDraggable$1, props);
|
|
10124
10127
|
}
|
|
10125
10128
|
function PublicDraggable(props) {
|
|
10126
10129
|
const isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;
|
|
10127
10130
|
const canDragInteractiveElements = Boolean(props.disableInteractiveElementBlocking);
|
|
10128
10131
|
const shouldRespectForcePress = Boolean(props.shouldRespectForcePress);
|
|
10129
|
-
return
|
|
10132
|
+
return react_external["default"].createElement(PrivateDraggable, _extends({}, props, {
|
|
10130
10133
|
isClone: false,
|
|
10131
10134
|
isEnabled: isEnabled,
|
|
10132
10135
|
canDragInteractiveElements: canDragInteractiveElements,
|
|
@@ -10597,14 +10600,14 @@ const Placeholder = props => {
|
|
|
10597
10600
|
animate: props.animate,
|
|
10598
10601
|
placeholder: props.placeholder
|
|
10599
10602
|
});
|
|
10600
|
-
return
|
|
10603
|
+
return react_external["default"].createElement(props.placeholder.tagName, {
|
|
10601
10604
|
style,
|
|
10602
10605
|
'data-rfd-placeholder-context-id': contextId,
|
|
10603
10606
|
onTransitionEnd: onSizeChangeEnd,
|
|
10604
10607
|
ref: props.innerRef
|
|
10605
10608
|
});
|
|
10606
10609
|
};
|
|
10607
|
-
var Placeholder$1 =
|
|
10610
|
+
var Placeholder$1 = react_external["default"].memo(Placeholder);
|
|
10608
10611
|
|
|
10609
10612
|
function isBoolean(value) {
|
|
10610
10613
|
return typeof value === 'boolean';
|
|
@@ -10662,7 +10665,7 @@ function useValidation(args) {
|
|
|
10662
10665
|
});
|
|
10663
10666
|
}
|
|
10664
10667
|
|
|
10665
|
-
class AnimateInOut extends
|
|
10668
|
+
class AnimateInOut extends react_external["default"].PureComponent {
|
|
10666
10669
|
constructor(...args) {
|
|
10667
10670
|
super(...args);
|
|
10668
10671
|
this.state = {
|
|
@@ -10773,14 +10776,14 @@ const Droppable = props => {
|
|
|
10773
10776
|
ignoreContainerClipping,
|
|
10774
10777
|
getDroppableRef
|
|
10775
10778
|
});
|
|
10776
|
-
const placeholder = useMemo(() =>
|
|
10779
|
+
const placeholder = useMemo(() => react_external["default"].createElement(AnimateInOut, {
|
|
10777
10780
|
on: props.placeholder,
|
|
10778
10781
|
shouldAnimate: props.shouldAnimatePlaceholder
|
|
10779
10782
|
}, ({
|
|
10780
10783
|
onClose,
|
|
10781
10784
|
data,
|
|
10782
10785
|
animate
|
|
10783
|
-
}) =>
|
|
10786
|
+
}) => react_external["default"].createElement(Placeholder$1, {
|
|
10784
10787
|
placeholder: data,
|
|
10785
10788
|
onClose: onClose,
|
|
10786
10789
|
innerRef: setPlaceholderRef,
|
|
@@ -10810,7 +10813,7 @@ const Droppable = props => {
|
|
|
10810
10813
|
dragging,
|
|
10811
10814
|
render
|
|
10812
10815
|
} = useClone;
|
|
10813
|
-
const node =
|
|
10816
|
+
const node = react_external["default"].createElement(PrivateDraggable, {
|
|
10814
10817
|
draggableId: dragging.draggableId,
|
|
10815
10818
|
index: dragging.source.index,
|
|
10816
10819
|
isClone: true,
|
|
@@ -10820,7 +10823,7 @@ const Droppable = props => {
|
|
|
10820
10823
|
}, (draggableProvided, draggableSnapshot) => render(draggableProvided, draggableSnapshot, dragging));
|
|
10821
10824
|
return external_react_dom_["default"].createPortal(node, getContainerForClone());
|
|
10822
10825
|
}
|
|
10823
|
-
return
|
|
10826
|
+
return react_external["default"].createElement(DroppableContext.Provider, {
|
|
10824
10827
|
value: droppableContext
|
|
10825
10828
|
}, children(provided, snapshot), getClone());
|
|
10826
10829
|
};
|
|
@@ -76842,8 +76845,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
76842
76845
|
"default": () => (/* binding */ Button_Button)
|
|
76843
76846
|
});
|
|
76844
76847
|
|
|
76845
|
-
// EXTERNAL MODULE: external "react"
|
|
76846
|
-
var external_react_ = __webpack_require__(51649);
|
|
76847
76848
|
// EXTERNAL MODULE: ./node_modules/react-router-dom/dist/index.js + 2 modules
|
|
76848
76849
|
var dist = __webpack_require__(92648);
|
|
76849
76850
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
@@ -76852,8 +76853,8 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
|
76852
76853
|
;// ./src/components/Button/styles.module.scss
|
|
76853
76854
|
// extracted by mini-css-extract-plugin
|
|
76854
76855
|
/* 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--tertiaryGray":"styles-module__btn--tertiaryGray--gFHKt","btn--danger":"styles-module__btn--danger--SmsoX","btn--small":"styles-module__btn--small--cJ2bM","btnOuter":"styles-module__btnOuter--ip64U","svgOnly":"styles-module__svgOnly--eXeyf","primary":"styles-module__primary--AeI1M","secondary":"styles-module__secondary--tAMJR","tertiary":"styles-module__tertiary--Kr5w9","tertiaryGray":"styles-module__tertiaryGray--gVUq6","iconed":"styles-module__iconed--AMs-c","icon":"styles-module__icon--C2jj1"});
|
|
76855
|
-
// EXTERNAL MODULE:
|
|
76856
|
-
var
|
|
76856
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
76857
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
76857
76858
|
;// ./src/components/Button/Button.jsx
|
|
76858
76859
|
|
|
76859
76860
|
|
|
@@ -76896,7 +76897,7 @@ var Button = props => {
|
|
|
76896
76897
|
var onKeyDown = e => {
|
|
76897
76898
|
e.stopPropagation();
|
|
76898
76899
|
};
|
|
76899
|
-
var button = href ? /*#__PURE__*/(0,
|
|
76900
|
+
var button = href ? /*#__PURE__*/(0,jsx_runtime_.jsxs)(dist.Link, {
|
|
76900
76901
|
ref: buttonRef,
|
|
76901
76902
|
className: buttonClass,
|
|
76902
76903
|
disabled: disabled,
|
|
@@ -76905,14 +76906,14 @@ var Button = props => {
|
|
|
76905
76906
|
to: href,
|
|
76906
76907
|
onClick: buttonOuter ? null : onButtonClick,
|
|
76907
76908
|
onKeyDown: onKeyDown,
|
|
76908
|
-
children: [buttonImage && /*#__PURE__*/(0,
|
|
76909
|
+
children: [buttonImage && /*#__PURE__*/(0,jsx_runtime_.jsx)("img", {
|
|
76909
76910
|
src: buttonImage,
|
|
76910
76911
|
alt: buttonImageAltText,
|
|
76911
76912
|
crossOrigin: "true"
|
|
76912
|
-
}), ButtonIcon && buttonIconPosition === "left" && /*#__PURE__*/(0,
|
|
76913
|
+
}), ButtonIcon && buttonIconPosition === "left" && /*#__PURE__*/(0,jsx_runtime_.jsx)(ButtonIcon, {}), text && /*#__PURE__*/(0,jsx_runtime_.jsx)("span", {
|
|
76913
76914
|
children: text
|
|
76914
|
-
}), ButtonIcon && buttonIconPosition === "right" && /*#__PURE__*/(0,
|
|
76915
|
-
}) : /*#__PURE__*/(0,
|
|
76915
|
+
}), ButtonIcon && buttonIconPosition === "right" && /*#__PURE__*/(0,jsx_runtime_.jsx)(ButtonIcon, {})]
|
|
76916
|
+
}) : /*#__PURE__*/(0,jsx_runtime_.jsxs)("button", {
|
|
76916
76917
|
ref: buttonRef,
|
|
76917
76918
|
className: buttonClass,
|
|
76918
76919
|
style: style,
|
|
@@ -76922,16 +76923,16 @@ var Button = props => {
|
|
|
76922
76923
|
text: text,
|
|
76923
76924
|
onClick: buttonOuter ? null : onButtonClick,
|
|
76924
76925
|
onKeyDown: onKeyDown,
|
|
76925
|
-
children: [buttonImage && /*#__PURE__*/(0,
|
|
76926
|
+
children: [buttonImage && /*#__PURE__*/(0,jsx_runtime_.jsx)("img", {
|
|
76926
76927
|
src: buttonImage,
|
|
76927
76928
|
alt: buttonImageAltText,
|
|
76928
76929
|
crossOrigin: "true"
|
|
76929
|
-
}), ButtonIcon && buttonIconPosition === "left" && /*#__PURE__*/(0,
|
|
76930
|
+
}), ButtonIcon && buttonIconPosition === "left" && /*#__PURE__*/(0,jsx_runtime_.jsx)(ButtonIcon, {}), buttonText && /*#__PURE__*/(0,jsx_runtime_.jsx)("span", {
|
|
76930
76931
|
children: buttonText
|
|
76931
|
-
}), ButtonIcon && buttonIconPosition === "right" && /*#__PURE__*/(0,
|
|
76932
|
+
}), ButtonIcon && buttonIconPosition === "right" && /*#__PURE__*/(0,jsx_runtime_.jsx)(ButtonIcon, {})]
|
|
76932
76933
|
});
|
|
76933
76934
|
if (buttonOuter) {
|
|
76934
|
-
return /*#__PURE__*/(0,
|
|
76935
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
76935
76936
|
className: classnames_default()([styles_module.btnOuter], {
|
|
76936
76937
|
buttonOuterClassName
|
|
76937
76938
|
}),
|
|
@@ -76952,13 +76953,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
76952
76953
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
76953
76954
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
76954
76955
|
/* harmony export */ });
|
|
76955
|
-
/* harmony import */ var
|
|
76956
|
-
/* harmony import */ var
|
|
76957
|
-
/* harmony import */ var
|
|
76958
|
-
/* harmony import */ var
|
|
76959
|
-
/* harmony import */ var
|
|
76960
|
-
/* harmony import */ var
|
|
76961
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74848);
|
|
76956
|
+
/* harmony import */ var _home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(89379);
|
|
76957
|
+
/* harmony import */ var _home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(53986);
|
|
76958
|
+
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14062);
|
|
76959
|
+
/* harmony import */ var _redux_EditorSlice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68512);
|
|
76960
|
+
/* harmony import */ var _Tabs_DraggableTabWrapper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46963);
|
|
76961
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71178);
|
|
76962
76962
|
|
|
76963
76963
|
|
|
76964
76964
|
var _excluded = ["children", "fileIndex", "draggableId", "onTabClick"];
|
|
@@ -76974,15 +76974,15 @@ var DraggableTab = _ref => {
|
|
|
76974
76974
|
draggableId,
|
|
76975
76975
|
onTabClick
|
|
76976
76976
|
} = _ref,
|
|
76977
|
-
otherProps = (0,
|
|
76978
|
-
var openedTabs = (0,
|
|
76977
|
+
otherProps = (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(_ref, _excluded);
|
|
76978
|
+
var openedTabs = (0,react_redux__WEBPACK_IMPORTED_MODULE_0__.useSelector)(state => state.editor.openedTabs);
|
|
76979
76979
|
var openFilesCount = openedTabs.filter(t => t && t.type === "file").length || 1;
|
|
76980
|
-
var dispatch = (0,
|
|
76980
|
+
var dispatch = (0,react_redux__WEBPACK_IMPORTED_MODULE_0__.useDispatch)();
|
|
76981
76981
|
var switchToFileTab = fileIndex => {
|
|
76982
76982
|
if (onTabClick) {
|
|
76983
76983
|
onTabClick(fileIndex);
|
|
76984
76984
|
} else {
|
|
76985
|
-
dispatch((0,
|
|
76985
|
+
dispatch((0,_redux_EditorSlice__WEBPACK_IMPORTED_MODULE_3__.setFocussedFileIndex)(fileIndex));
|
|
76986
76986
|
}
|
|
76987
76987
|
};
|
|
76988
76988
|
var onKeyPress = (e, fileIndex) => {
|
|
@@ -76992,7 +76992,7 @@ var DraggableTab = _ref => {
|
|
|
76992
76992
|
switchToFileTab((fileIndex + openFilesCount - 1) % openFilesCount);
|
|
76993
76993
|
}
|
|
76994
76994
|
};
|
|
76995
|
-
return /*#__PURE__*/(0,
|
|
76995
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_Tabs_DraggableTabWrapper__WEBPACK_IMPORTED_MODULE_4__["default"], (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)((0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)({
|
|
76996
76996
|
draggableId: draggableId,
|
|
76997
76997
|
index: fileIndex,
|
|
76998
76998
|
onClick: e => {
|
|
@@ -77016,13 +77016,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
77016
77016
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
77017
77017
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
77018
77018
|
/* harmony export */ });
|
|
77019
|
-
/* harmony import */ var
|
|
77020
|
-
/* harmony import */ var
|
|
77021
|
-
/* harmony import */ var
|
|
77022
|
-
/* harmony import */ var
|
|
77023
|
-
/* harmony import */ var
|
|
77024
|
-
/* harmony import */ var
|
|
77025
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74848);
|
|
77019
|
+
/* harmony import */ var _home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89379);
|
|
77020
|
+
/* harmony import */ var _home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(53986);
|
|
77021
|
+
/* harmony import */ var _hello_pangea_dnd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(44754);
|
|
77022
|
+
/* harmony import */ var react_tabs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60627);
|
|
77023
|
+
/* harmony import */ var _assets_stylesheets_DraggableTabs_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44221);
|
|
77024
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71178);
|
|
77026
77025
|
|
|
77027
77026
|
|
|
77028
77027
|
var _excluded = ["children", "index"];
|
|
@@ -77036,9 +77035,9 @@ var DroppableTabList = _ref => {
|
|
|
77036
77035
|
children: _children,
|
|
77037
77036
|
index
|
|
77038
77037
|
} = _ref,
|
|
77039
|
-
otherProps = (0,
|
|
77040
|
-
return /*#__PURE__*/(0,
|
|
77041
|
-
children: /*#__PURE__*/(0,
|
|
77038
|
+
otherProps = (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(_ref, _excluded);
|
|
77039
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_tabs__WEBPACK_IMPORTED_MODULE_0__.TabList, (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)((0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)({}, otherProps), {}, {
|
|
77040
|
+
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_hello_pangea_dnd__WEBPACK_IMPORTED_MODULE_5__.Droppable, {
|
|
77042
77041
|
direction: "horizontal",
|
|
77043
77042
|
droppableId: index.toString(),
|
|
77044
77043
|
children: _ref2 => {
|
|
@@ -77047,7 +77046,7 @@ var DroppableTabList = _ref => {
|
|
|
77047
77046
|
droppableProps,
|
|
77048
77047
|
placeholder
|
|
77049
77048
|
} = _ref2;
|
|
77050
|
-
return /*#__PURE__*/(0,
|
|
77049
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)((0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)({
|
|
77051
77050
|
className: "droppable-tab-list"
|
|
77052
77051
|
}, droppableProps), {}, {
|
|
77053
77052
|
ref: innerRef,
|
|
@@ -109094,8 +109093,10 @@ function python() {
|
|
|
109094
109093
|
|
|
109095
109094
|
|
|
109096
109095
|
|
|
109097
|
-
// EXTERNAL MODULE:
|
|
109098
|
-
var
|
|
109096
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
109097
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
109098
|
+
// EXTERNAL MODULE: ./src/react-external.js
|
|
109099
|
+
var react_external = __webpack_require__(13327);
|
|
109099
109100
|
;// ./node_modules/@raspberrypifoundation/design-system-react/dist/design-system-react.js
|
|
109100
109101
|
|
|
109101
109102
|
|
|
@@ -109678,12 +109679,12 @@ function Fe() {
|
|
|
109678
109679
|
var ze = /* @__PURE__ */ Fe();
|
|
109679
109680
|
const design_system_react_a = /* @__PURE__ */ Ne(ze), Ue = ({ content: e, title: s, className: i, id: o = "accordion" }) => {
|
|
109680
109681
|
const n = k("rpf-accordion", i);
|
|
109681
|
-
return /* @__PURE__ */ (0,
|
|
109682
|
-
/* @__PURE__ */ (0,
|
|
109682
|
+
return /* @__PURE__ */ (0,jsx_runtime_.jsxs)("details", { className: n, id: `${o}`, children: [
|
|
109683
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsxs)("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
109683
109684
|
s,
|
|
109684
|
-
/* @__PURE__ */ (0,
|
|
109685
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: "rpf-accordion__icon" })
|
|
109685
109686
|
] }),
|
|
109686
|
-
/* @__PURE__ */ (0,
|
|
109687
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("p", { className: "rpf-accordion__text", children: e })
|
|
109687
109688
|
] });
|
|
109688
109689
|
};
|
|
109689
109690
|
Ue.propTypes = {
|
|
@@ -109726,15 +109727,15 @@ const V = ({
|
|
|
109726
109727
|
o
|
|
109727
109728
|
);
|
|
109728
109729
|
let Y = "rpf-button__icon";
|
|
109729
|
-
|
|
109730
|
+
react_external["default"].isValidElement(l) ? (Y += " icon", console.warn(
|
|
109730
109731
|
"DEPRECATED: icons as React elements will not be supported in future releases"
|
|
109731
109732
|
)) : Y += " material-symbols-sharp";
|
|
109732
|
-
const z = (c, W) => !W || T !== c ? null : typeof W == "string" ? /* @__PURE__ */ (0,
|
|
109733
|
+
const z = (c, W) => !W || T !== c ? null : typeof W == "string" ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: Y, children: W }) : W, $ = () => e && !N && /* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: "text", children: e }), q = /* @__PURE__ */ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { children: [
|
|
109733
109734
|
z("left", l),
|
|
109734
109735
|
$(),
|
|
109735
109736
|
z("right", l)
|
|
109736
109737
|
] });
|
|
109737
|
-
return s ? /* @__PURE__ */ (0,
|
|
109738
|
+
return s ? /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
109738
109739
|
M || "a",
|
|
109739
109740
|
{
|
|
109740
109741
|
className: I,
|
|
@@ -109743,7 +109744,7 @@ const V = ({
|
|
|
109743
109744
|
"aria-label": j,
|
|
109744
109745
|
children: q
|
|
109745
109746
|
}
|
|
109746
|
-
) : /* @__PURE__ */ (0,
|
|
109747
|
+
) : /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
109747
109748
|
"button",
|
|
109748
109749
|
{
|
|
109749
109750
|
className: I,
|
|
@@ -109762,11 +109763,11 @@ const V = ({
|
|
|
109762
109763
|
type: n,
|
|
109763
109764
|
actions: r,
|
|
109764
109765
|
onClose: u
|
|
109765
|
-
}) => /* @__PURE__ */ (0,
|
|
109766
|
-
/* @__PURE__ */ (0,
|
|
109767
|
-
/* @__PURE__ */ (0,
|
|
109768
|
-
i ? /* @__PURE__ */ (0,
|
|
109769
|
-
!!u && /* @__PURE__ */ (0,
|
|
109766
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: `rpf-alert rpf-alert--${n}`, children: [
|
|
109767
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: "rpf-alert__header", children: [
|
|
109768
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
109769
|
+
i ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-alert__title", children: i }) : e ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("p", { className: "rpf-alert__title", children: e }) : null,
|
|
109770
|
+
!!u && /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-alert__close", children: /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
109770
109771
|
V,
|
|
109771
109772
|
{
|
|
109772
109773
|
type: "tertiary",
|
|
@@ -109777,9 +109778,9 @@ const V = ({
|
|
|
109777
109778
|
}
|
|
109778
109779
|
) })
|
|
109779
109780
|
] }),
|
|
109780
|
-
(s || o || r) && /* @__PURE__ */ (0,
|
|
109781
|
-
s ? /* @__PURE__ */ (0,
|
|
109782
|
-
r && r.length > 0 && /* @__PURE__ */ (0,
|
|
109781
|
+
(s || o || r) && /* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: "rpf-alert__body", children: [
|
|
109782
|
+
s ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("p", { children: s }) : o ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { children: o }) : null,
|
|
109783
|
+
r && r.length > 0 && /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-alert__actions", children: r.map((l, m) => /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
109783
109784
|
V,
|
|
109784
109785
|
{
|
|
109785
109786
|
text: l.label,
|
|
@@ -109838,7 +109839,7 @@ const V = ({
|
|
|
109838
109839
|
legendText: o,
|
|
109839
109840
|
legendHintText: n = "",
|
|
109840
109841
|
children: r
|
|
109841
|
-
}) => /* @__PURE__ */ (0,
|
|
109842
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsxs)(
|
|
109842
109843
|
"fieldset",
|
|
109843
109844
|
{
|
|
109844
109845
|
className: k("rpf-fieldset", {
|
|
@@ -109848,13 +109849,13 @@ const V = ({
|
|
|
109848
109849
|
}),
|
|
109849
109850
|
disabled: e,
|
|
109850
109851
|
children: [
|
|
109851
|
-
/* @__PURE__ */ (0,
|
|
109852
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsxs)("legend", { className: "rpf-label", children: [
|
|
109852
109853
|
o,
|
|
109853
|
-
n.length > 0 ? /* @__PURE__ */ (0,
|
|
109854
|
+
n.length > 0 ? /* @__PURE__ */ (0,jsx_runtime_.jsx)("small", { className: "rpf-label__hint", children: n }) : null
|
|
109854
109855
|
] }),
|
|
109855
|
-
/* @__PURE__ */ (0,
|
|
109856
|
-
s.length > 0 ? /* @__PURE__ */ (0,
|
|
109857
|
-
/* @__PURE__ */ (0,
|
|
109856
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-fieldset__inputs", children: r }),
|
|
109857
|
+
s.length > 0 ? /* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: "rpf-error-message", children: [
|
|
109858
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
109858
109859
|
s
|
|
109859
109860
|
] }) : null
|
|
109860
109861
|
]
|
|
@@ -109875,8 +109876,8 @@ const Q = ({
|
|
|
109875
109876
|
disabled: o = !1,
|
|
109876
109877
|
error: n = "",
|
|
109877
109878
|
hint: r = ""
|
|
109878
|
-
}) => /* @__PURE__ */ (0,
|
|
109879
|
-
(s || r) && /* @__PURE__ */ (0,
|
|
109879
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: "rpf-input-field", children: [
|
|
109880
|
+
(s || r) && /* @__PURE__ */ (0,jsx_runtime_.jsxs)(
|
|
109880
109881
|
"label",
|
|
109881
109882
|
{
|
|
109882
109883
|
htmlFor: e,
|
|
@@ -109885,13 +109886,13 @@ const Q = ({
|
|
|
109885
109886
|
}),
|
|
109886
109887
|
children: [
|
|
109887
109888
|
s,
|
|
109888
|
-
/* @__PURE__ */ (0,
|
|
109889
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("small", { className: "rpf-label__hint", children: r })
|
|
109889
109890
|
]
|
|
109890
109891
|
}
|
|
109891
109892
|
),
|
|
109892
109893
|
i,
|
|
109893
|
-
n && /* @__PURE__ */ (0,
|
|
109894
|
-
/* @__PURE__ */ (0,
|
|
109894
|
+
n && /* @__PURE__ */ (0,jsx_runtime_.jsxs)("div", { className: "rpf-error-message", children: [
|
|
109895
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
109895
109896
|
n
|
|
109896
109897
|
] })
|
|
109897
109898
|
] });
|
|
@@ -109908,7 +109909,7 @@ const Ve = ({
|
|
|
109908
109909
|
inputFieldId: s,
|
|
109909
109910
|
disabled: i = !1,
|
|
109910
109911
|
hint: o = ""
|
|
109911
|
-
}) => /* @__PURE__ */ (0,
|
|
109912
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-label", children: /* @__PURE__ */ (0,jsx_runtime_.jsxs)(
|
|
109912
109913
|
"label",
|
|
109913
109914
|
{
|
|
109914
109915
|
htmlFor: s,
|
|
@@ -109917,7 +109918,7 @@ const Ve = ({
|
|
|
109917
109918
|
}),
|
|
109918
109919
|
children: [
|
|
109919
109920
|
e,
|
|
109920
|
-
o && /* @__PURE__ */ (0,
|
|
109921
|
+
o && /* @__PURE__ */ (0,jsx_runtime_.jsx)("div", { className: "rpf-label__hint", children: o })
|
|
109921
109922
|
]
|
|
109922
109923
|
}
|
|
109923
109924
|
) });
|
|
@@ -109937,7 +109938,7 @@ const He = ({
|
|
|
109937
109938
|
onChange: u = () => {
|
|
109938
109939
|
},
|
|
109939
109940
|
value: l = ""
|
|
109940
|
-
}) => /* @__PURE__ */ (0,
|
|
109941
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsx)(jsx_runtime_.Fragment, { children: /* @__PURE__ */ (0,jsx_runtime_.jsxs)(
|
|
109941
109942
|
"label",
|
|
109942
109943
|
{
|
|
109943
109944
|
className: k("rpf-input-radio", {
|
|
@@ -109945,7 +109946,7 @@ const He = ({
|
|
|
109945
109946
|
"rpf-input--full-width": r
|
|
109946
109947
|
}),
|
|
109947
109948
|
children: [
|
|
109948
|
-
/* @__PURE__ */ (0,
|
|
109949
|
+
/* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
109949
109950
|
"input",
|
|
109950
109951
|
{
|
|
109951
109952
|
checked: !!o,
|
|
@@ -110046,7 +110047,7 @@ const tr = ({
|
|
|
110046
110047
|
},
|
|
110047
110048
|
placeholder: T = "",
|
|
110048
110049
|
value: h = ""
|
|
110049
|
-
}) => /* @__PURE__ */ (0,
|
|
110050
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
110050
110051
|
Q,
|
|
110051
110052
|
{
|
|
110052
110053
|
id: e,
|
|
@@ -110054,7 +110055,7 @@ const tr = ({
|
|
|
110054
110055
|
error: r,
|
|
110055
110056
|
hint: l,
|
|
110056
110057
|
label: s,
|
|
110057
|
-
children: /* @__PURE__ */ (0,
|
|
110058
|
+
children: /* @__PURE__ */ (0,jsx_runtime_.jsxs)(
|
|
110058
110059
|
"select",
|
|
110059
110060
|
{
|
|
110060
110061
|
className: k("rpf-input rpf-input-select", {
|
|
@@ -110068,8 +110069,8 @@ const tr = ({
|
|
|
110068
110069
|
type: "text",
|
|
110069
110070
|
value: h,
|
|
110070
110071
|
children: [
|
|
110071
|
-
!h && !!T && /* @__PURE__ */ (0,
|
|
110072
|
-
o.map((v) => /* @__PURE__ */ (0,
|
|
110072
|
+
!h && !!T && /* @__PURE__ */ (0,jsx_runtime_.jsx)("option", { value: "", disabled: !0, children: T }),
|
|
110073
|
+
o.map((v) => /* @__PURE__ */ (0,jsx_runtime_.jsx)("option", { value: v.key, children: v.value }, v.key))
|
|
110073
110074
|
]
|
|
110074
110075
|
}
|
|
110075
110076
|
)
|
|
@@ -110100,7 +110101,7 @@ const Xe = ({
|
|
|
110100
110101
|
hint: m = "",
|
|
110101
110102
|
onChange: T = () => {
|
|
110102
110103
|
}
|
|
110103
|
-
}) => /* @__PURE__ */ (0,
|
|
110104
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
110104
110105
|
Q,
|
|
110105
110106
|
{
|
|
110106
110107
|
id: e,
|
|
@@ -110108,7 +110109,7 @@ const Xe = ({
|
|
|
110108
110109
|
error: u,
|
|
110109
110110
|
hint: m,
|
|
110110
110111
|
label: s,
|
|
110111
|
-
children: /* @__PURE__ */ (0,
|
|
110112
|
+
children: /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
110112
110113
|
"textarea",
|
|
110113
110114
|
{
|
|
110114
110115
|
className: k("rpf-input rpf-input-textarea", {
|
|
@@ -110150,7 +110151,7 @@ const Ge = ({
|
|
|
110150
110151
|
hint: l = "",
|
|
110151
110152
|
onChange: m = () => {
|
|
110152
110153
|
}
|
|
110153
|
-
}) => /* @__PURE__ */ (0,
|
|
110154
|
+
}) => /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
110154
110155
|
Q,
|
|
110155
110156
|
{
|
|
110156
110157
|
id: e,
|
|
@@ -110158,7 +110159,7 @@ const Ge = ({
|
|
|
110158
110159
|
error: r,
|
|
110159
110160
|
hint: l,
|
|
110160
110161
|
label: s,
|
|
110161
|
-
children: /* @__PURE__ */ (0,
|
|
110162
|
+
children: /* @__PURE__ */ (0,jsx_runtime_.jsx)(
|
|
110162
110163
|
"input",
|
|
110163
110164
|
{
|
|
110164
110165
|
className: k("rpf-input rpf-input-text", {
|
|
@@ -110514,7 +110515,7 @@ var EditorPanel = _ref => {
|
|
|
110514
110515
|
}, [file, cascadeUpdate, editorViewRef]);
|
|
110515
110516
|
if (!file) return null;
|
|
110516
110517
|
if (file.isBinary) {
|
|
110517
|
-
return /*#__PURE__*/(0,
|
|
110518
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(AssetPreviewPanel.AssetPreviewPanel, {
|
|
110518
110519
|
file: file
|
|
110519
110520
|
});
|
|
110520
110521
|
}
|
|
@@ -110566,18 +110567,18 @@ var EditorPanel = _ref => {
|
|
|
110566
110567
|
setLine(line.number);
|
|
110567
110568
|
setPosition(pos - line.from + 1);
|
|
110568
110569
|
};
|
|
110569
|
-
return /*#__PURE__*/(0,
|
|
110570
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110570
110571
|
className: "editor-wrapper",
|
|
110571
|
-
children: [/*#__PURE__*/(0,
|
|
110572
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
110572
110573
|
className: "editor editor--".concat(settings.fontSize),
|
|
110573
110574
|
ref: editor,
|
|
110574
110575
|
onKeyUp: getCaretPosition,
|
|
110575
110576
|
onClick: getCaretPosition
|
|
110576
|
-
}), /*#__PURE__*/(0,
|
|
110577
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(EditorStatistic.EditorStatistic, {
|
|
110577
110578
|
line: line,
|
|
110578
110579
|
position: position,
|
|
110579
110580
|
title: getModeTitle()
|
|
110580
|
-
}), characterLimitExceeded && /*#__PURE__*/(0,
|
|
110581
|
+
}), characterLimitExceeded && /*#__PURE__*/(0,jsx_runtime_.jsx)(er, {
|
|
110581
110582
|
title: t("editorPanel.characterLimitError"),
|
|
110582
110583
|
type: "error",
|
|
110583
110584
|
text: t("editorPanel.characterLimitExplanation", {
|
|
@@ -110645,8 +110646,8 @@ var TabsContainer = __webpack_require__(44097);
|
|
|
110645
110646
|
var TabsContainer_default = /*#__PURE__*/__webpack_require__.n(TabsContainer);
|
|
110646
110647
|
// EXTERNAL MODULE: ./src/redux/types.ts
|
|
110647
110648
|
var types = __webpack_require__(92932);
|
|
110648
|
-
// EXTERNAL MODULE:
|
|
110649
|
-
var
|
|
110649
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
110650
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
110650
110651
|
;// ./src/components/Editor/Project/Project.jsx
|
|
110651
110652
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
110652
110653
|
|
|
@@ -110701,33 +110702,33 @@ var Project = props => {
|
|
|
110701
110702
|
projectType: (0,external_react_redux_.useSelector)(state => state.editor.project.project_type),
|
|
110702
110703
|
packageApiUrl
|
|
110703
110704
|
});
|
|
110704
|
-
return /*#__PURE__*/(0,
|
|
110705
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110705
110706
|
className: styles_module.proj,
|
|
110706
110707
|
"data-testid": "project",
|
|
110707
|
-
children: [isSharedProject ? /*#__PURE__*/(0,
|
|
110708
|
+
children: [isSharedProject ? /*#__PURE__*/(0,jsx_runtime_.jsx)(SharedProjectBar.SharedProjectBar, {}) : /*#__PURE__*/(0,jsx_runtime_.jsx)((ProjectBar_default()), {
|
|
110708
110709
|
nameEditable: nameEditable
|
|
110709
|
-
}), /*#__PURE__*/(0,
|
|
110710
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110710
110711
|
className: styles_module.projContainer,
|
|
110711
|
-
children: [/*#__PURE__*/(0,
|
|
110712
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)((Sidebar_default()), {
|
|
110712
110713
|
options: sidebarOptions,
|
|
110713
110714
|
curriculumComponent: curriculumComponent
|
|
110714
|
-
}), /*#__PURE__*/(0,
|
|
110715
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110715
110716
|
className: styles_module.projectWrapper,
|
|
110716
110717
|
ref: containerRef,
|
|
110717
|
-
children: [!loading && viewMode === types.ViewMode.FULL_WINDOW && /*#__PURE__*/(0,
|
|
110718
|
+
children: [!loading && viewMode === types.ViewMode.FULL_WINDOW && /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
110718
110719
|
className: styles_module.projEditorWrapper,
|
|
110719
110720
|
role: "group",
|
|
110720
110721
|
"aria-label": "Code editor and output",
|
|
110721
|
-
children: /*#__PURE__*/(0,
|
|
110722
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)((TabsContainer_default()), {
|
|
110722
110723
|
tabs: openedTabs,
|
|
110723
110724
|
renderOutput: renderOutput,
|
|
110724
110725
|
outputMeta: outputMeta
|
|
110725
110726
|
})
|
|
110726
|
-
}), !loading && viewMode !== types.ViewMode.FULL_WINDOW && /*#__PURE__*/(0,
|
|
110727
|
+
}), !loading && viewMode !== types.ViewMode.FULL_WINDOW && /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110727
110728
|
className: styles_module.projEditorWrapper,
|
|
110728
110729
|
role: "group",
|
|
110729
110730
|
"aria-label": "Code editor and output",
|
|
110730
|
-
children: [isCodeVisible && /*#__PURE__*/(0,
|
|
110731
|
+
children: [isCodeVisible && /*#__PURE__*/(0,jsx_runtime_.jsx)(ResizableWithHandle["default"], {
|
|
110731
110732
|
"data-testid": "proj-editor-container",
|
|
110732
110733
|
className: styles_module.projEditorContainer,
|
|
110733
110734
|
defaultWidth: defaultWidth,
|
|
@@ -110735,8 +110736,8 @@ var Project = props => {
|
|
|
110735
110736
|
handleDirection: handleDirection,
|
|
110736
110737
|
minWidth: "25%",
|
|
110737
110738
|
maxWidth: maxWidth,
|
|
110738
|
-
children: /*#__PURE__*/(0,
|
|
110739
|
-
}), /*#__PURE__*/(0,
|
|
110739
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)((EditorInput_default()), {})
|
|
110740
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)((OutputStack_default()), {
|
|
110740
110741
|
renderOutput: renderOutput,
|
|
110741
110742
|
outputMeta: outputMeta,
|
|
110742
110743
|
panelOrder: panelOrder
|
|
@@ -110757,15 +110758,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
110757
110758
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110758
110759
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
110759
110760
|
/* harmony export */ });
|
|
110760
|
-
/* harmony import */ var
|
|
110761
|
-
/* harmony import */ var
|
|
110762
|
-
/* harmony import */ var
|
|
110763
|
-
/* harmony import */ var
|
|
110764
|
-
/* harmony import */ var
|
|
110765
|
-
/* harmony import */ var
|
|
110766
|
-
/* harmony import */ var
|
|
110767
|
-
/* harmony import */ var
|
|
110768
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74848);
|
|
110761
|
+
/* harmony import */ var _utils_ResizableWithHandle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(32694);
|
|
110762
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(46942);
|
|
110763
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
|
110764
|
+
/* harmony import */ var _utils_mediaQueryBreakpoints__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22554);
|
|
110765
|
+
/* harmony import */ var react_responsive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17988);
|
|
110766
|
+
/* harmony import */ var react_responsive__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_responsive__WEBPACK_IMPORTED_MODULE_3__);
|
|
110767
|
+
/* harmony import */ var _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21852);
|
|
110768
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71178);
|
|
110769
110769
|
|
|
110770
110770
|
|
|
110771
110771
|
|
|
@@ -110785,34 +110785,34 @@ var SidebarPanel = props => {
|
|
|
110785
110785
|
maxWidth = "600px",
|
|
110786
110786
|
resizable = true
|
|
110787
110787
|
} = props;
|
|
110788
|
-
var isMobile = (0,
|
|
110789
|
-
query:
|
|
110788
|
+
var isMobile = (0,react_responsive__WEBPACK_IMPORTED_MODULE_3__.useMediaQuery)({
|
|
110789
|
+
query: _utils_mediaQueryBreakpoints__WEBPACK_IMPORTED_MODULE_4__.MOBILE_MEDIA_QUERY
|
|
110790
110790
|
});
|
|
110791
|
-
var panelContent = /*#__PURE__*/(0,
|
|
110792
|
-
children: [heading && /*#__PURE__*/(0,
|
|
110793
|
-
className:
|
|
110794
|
-
children: [/*#__PURE__*/(0,
|
|
110795
|
-
className:
|
|
110791
|
+
var panelContent = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
|
|
110792
|
+
children: [heading && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
|
|
110793
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelHeader,
|
|
110794
|
+
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h2", {
|
|
110795
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelHeading,
|
|
110796
110796
|
children: heading
|
|
110797
|
-
}), (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && /*#__PURE__*/(0,
|
|
110798
|
-
className:
|
|
110797
|
+
}), (buttons === null || buttons === void 0 ? void 0 : buttons.length) > 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110798
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelButtons,
|
|
110799
110799
|
children: buttons
|
|
110800
110800
|
})]
|
|
110801
|
-
}), /*#__PURE__*/(0,
|
|
110802
|
-
className:
|
|
110801
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110802
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelContent, panelContentClassName),
|
|
110803
110803
|
children: children
|
|
110804
|
-
}), Footer && /*#__PURE__*/(0,
|
|
110805
|
-
className:
|
|
110806
|
-
children: /*#__PURE__*/(0,
|
|
110804
|
+
}), Footer && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110805
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelFooter,
|
|
110806
|
+
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Footer, {})
|
|
110807
110807
|
})]
|
|
110808
110808
|
});
|
|
110809
|
-
return isMobile || !resizable ? /*#__PURE__*/(0,
|
|
110809
|
+
return isMobile || !resizable ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110810
110810
|
"data-testid": "sidebar__panel",
|
|
110811
|
-
className:
|
|
110811
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panel, className, Footer && _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelWithFooter),
|
|
110812
110812
|
children: panelContent
|
|
110813
|
-
}) : /*#__PURE__*/(0,
|
|
110813
|
+
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_utils_ResizableWithHandle__WEBPACK_IMPORTED_MODULE_5__["default"], {
|
|
110814
110814
|
"data-testid": "sidebar__panel",
|
|
110815
|
-
className:
|
|
110815
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panel, className, Footer && _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].panelWithFooter),
|
|
110816
110816
|
defaultWidth: defaultWidth,
|
|
110817
110817
|
defaultHeight: "100%",
|
|
110818
110818
|
handleDirection: "right",
|
|
@@ -110832,13 +110832,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
110832
110832
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110833
110833
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
110834
110834
|
/* harmony export */ });
|
|
110835
|
-
/* harmony import */ var
|
|
110836
|
-
/* harmony import */ var
|
|
110837
|
-
/* harmony import */ var
|
|
110838
|
-
/* harmony import */ var
|
|
110839
|
-
/* harmony import */ var
|
|
110840
|
-
/* harmony import */ var
|
|
110841
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74848);
|
|
110835
|
+
/* harmony import */ var react_modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20312);
|
|
110836
|
+
/* harmony import */ var react_modal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_modal__WEBPACK_IMPORTED_MODULE_0__);
|
|
110837
|
+
/* harmony import */ var _Button_Button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79428);
|
|
110838
|
+
/* harmony import */ var _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27924);
|
|
110839
|
+
/* harmony import */ var _utils_CloseIcon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61193);
|
|
110840
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71178);
|
|
110842
110841
|
|
|
110843
110842
|
|
|
110844
110843
|
|
|
@@ -110861,7 +110860,7 @@ var BaseModal = _ref => {
|
|
|
110861
110860
|
withCloseButton = false,
|
|
110862
110861
|
closeModal,
|
|
110863
110862
|
externalClasses = {},
|
|
110864
|
-
closeIcon =
|
|
110863
|
+
closeIcon = _utils_CloseIcon__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
110865
110864
|
} = _ref;
|
|
110866
110865
|
var onKeyDown = e => {
|
|
110867
110866
|
if (e.key === "Enter" && defaultCallback) {
|
|
@@ -110869,41 +110868,41 @@ var BaseModal = _ref => {
|
|
|
110869
110868
|
defaultCallback();
|
|
110870
110869
|
}
|
|
110871
110870
|
};
|
|
110872
|
-
return /*#__PURE__*/(0,
|
|
110871
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110873
110872
|
onKeyDown: onKeyDown,
|
|
110874
|
-
children: /*#__PURE__*/(0,
|
|
110873
|
+
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)((react_modal__WEBPACK_IMPORTED_MODULE_0___default()), {
|
|
110875
110874
|
isOpen: isOpen,
|
|
110876
110875
|
onRequestClose: closeModal,
|
|
110877
|
-
className: "".concat(
|
|
110878
|
-
overlayClassName:
|
|
110876
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContent, " ").concat(externalClasses.content),
|
|
110877
|
+
overlayClassName: _styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalOverlay,
|
|
110879
110878
|
contentLabel: heading,
|
|
110880
110879
|
shouldCloseOnOverlayClick: true,
|
|
110881
110880
|
parentSelector: () => document.querySelector("#textjam-editor") || document.body,
|
|
110882
110881
|
appElement: document.querySelector("#textjam-root"),
|
|
110883
|
-
children: [(!!heading || !!withCloseButton) && /*#__PURE__*/(0,
|
|
110884
|
-
className: "".concat(
|
|
110885
|
-
children: [!!heading && /*#__PURE__*/(0,
|
|
110886
|
-
className: "".concat(
|
|
110882
|
+
children: [(!!heading || !!withCloseButton) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
|
|
110883
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentHeader, " ").concat(externalClasses.modalContentHeader),
|
|
110884
|
+
children: [!!heading && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h2", {
|
|
110885
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentHeading, " ").concat(externalClasses.heading),
|
|
110887
110886
|
children: heading
|
|
110888
|
-
}), withCloseButton ? /*#__PURE__*/(0,
|
|
110889
|
-
className: "".concat(
|
|
110887
|
+
}), withCloseButton ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Button_Button__WEBPACK_IMPORTED_MODULE_4__["default"], {
|
|
110888
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].buttonClose, " ").concat(externalClasses.buttonClose),
|
|
110890
110889
|
onClickHandler: closeModal,
|
|
110891
110890
|
ButtonIcon: closeIcon,
|
|
110892
110891
|
label: "Close",
|
|
110893
110892
|
title: "Close",
|
|
110894
110893
|
variant: "icon"
|
|
110895
110894
|
}) : null]
|
|
110896
|
-
}), /*#__PURE__*/(0,
|
|
110897
|
-
className: "".concat(
|
|
110898
|
-
children: [text.map((textItem, i) => textItem.type === "subheading" ? /*#__PURE__*/(0,
|
|
110899
|
-
className: "".concat(
|
|
110895
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
|
|
110896
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentBody, " ").concat(externalClasses.body),
|
|
110897
|
+
children: [text.map((textItem, i) => textItem.type === "subheading" ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("h3", {
|
|
110898
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentSubHeading),
|
|
110900
110899
|
children: textItem.content
|
|
110901
|
-
}, i) : /*#__PURE__*/(0,
|
|
110902
|
-
className: "".concat(
|
|
110900
|
+
}, i) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p", {
|
|
110901
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentText),
|
|
110903
110902
|
children: textItem.content
|
|
110904
110903
|
}, i)), children]
|
|
110905
|
-
}), !!buttons && /*#__PURE__*/(0,
|
|
110906
|
-
className: "".concat(
|
|
110904
|
+
}), !!buttons && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
|
|
110905
|
+
className: "".concat(_styles_module_scss__WEBPACK_IMPORTED_MODULE_1__["default"].modalContentButtons, " ").concat(externalClasses.buttonsContainer),
|
|
110907
110906
|
children: buttons
|
|
110908
110907
|
})]
|
|
110909
110908
|
})
|
|
@@ -110945,8 +110944,8 @@ var stores = __webpack_require__(32132);
|
|
|
110945
110944
|
/* 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","content":"styles-module__content--Xo0FC","body":"styles-module__body--t9rtp","buttonsContainer":"styles-module__buttonsContainer--JGhSm","headerText":"styles-module__headerText--pmvJm","headerIcon":"styles-module__headerIcon--3TJZO","description":"styles-module__description--uzzI+"});
|
|
110946
110945
|
// EXTERNAL MODULE: ./src/components/Modals/BaseModal/styles.module.scss
|
|
110947
110946
|
var BaseModal_styles_module = __webpack_require__(27924);
|
|
110948
|
-
// EXTERNAL MODULE:
|
|
110949
|
-
var
|
|
110947
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
110948
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
110950
110949
|
;// ./src/components/Modals/DraftUnsavedChangesModal/DraftUnsavedChangesModal.js
|
|
110951
110950
|
|
|
110952
110951
|
|
|
@@ -110975,31 +110974,31 @@ var DraftUnsavedChangesModal = () => {
|
|
|
110975
110974
|
args.onStartNew();
|
|
110976
110975
|
handleClose();
|
|
110977
110976
|
};
|
|
110978
|
-
return /*#__PURE__*/(0,
|
|
110977
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)(BaseModal["default"], {
|
|
110979
110978
|
isOpen: isModalOpen,
|
|
110980
110979
|
closeModal: handleClose,
|
|
110981
110980
|
externalClasses: styles_module,
|
|
110982
110981
|
heading: "",
|
|
110983
|
-
buttons: [/*#__PURE__*/(0,
|
|
110982
|
+
buttons: [/*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
110984
110983
|
variant: "primary",
|
|
110985
110984
|
buttonText: "Continue",
|
|
110986
110985
|
onClickHandler: handleContinue
|
|
110987
|
-
}, "continue"), /*#__PURE__*/(0,
|
|
110986
|
+
}, "continue"), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
110988
110987
|
variant: "tertiaryGray",
|
|
110989
110988
|
buttonText: "Start New Project",
|
|
110990
110989
|
onClickHandler: handleStartNew
|
|
110991
110990
|
}, "start-new")],
|
|
110992
|
-
children: [/*#__PURE__*/(0,
|
|
110991
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
110993
110992
|
className: BaseModal_styles_module["default"].headerContainer,
|
|
110994
|
-
children: [/*#__PURE__*/(0,
|
|
110993
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
110995
110994
|
size: 24,
|
|
110996
110995
|
SvgElement: alertTriangle["default"],
|
|
110997
110996
|
className: styles_module.headerIcon
|
|
110998
|
-
}), /*#__PURE__*/(0,
|
|
110997
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
110999
110998
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerText),
|
|
111000
110999
|
children: "Unsaved Changes Detected"
|
|
111001
111000
|
})]
|
|
111002
|
-
}), /*#__PURE__*/(0,
|
|
111001
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("p", {
|
|
111003
111002
|
className: styles_module.description,
|
|
111004
111003
|
children: "We found unsaved changes.\n Would you like to continue where you left off or start a new project?"
|
|
111005
111004
|
})]
|
|
@@ -111020,8 +111019,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111020
111019
|
"default": () => (/* binding */ Modals_ErrorModal)
|
|
111021
111020
|
});
|
|
111022
111021
|
|
|
111023
|
-
// EXTERNAL MODULE: external "react"
|
|
111024
|
-
var external_react_ = __webpack_require__(51649);
|
|
111025
111022
|
// EXTERNAL MODULE: ./node_modules/react-modal/lib/index.js
|
|
111026
111023
|
var lib = __webpack_require__(20312);
|
|
111027
111024
|
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
|
@@ -111036,8 +111033,8 @@ var EditorSlice = __webpack_require__(68512);
|
|
|
111036
111033
|
;// ./src/assets/stylesheets/Modal.scss
|
|
111037
111034
|
// extracted by mini-css-extract-plugin
|
|
111038
111035
|
|
|
111039
|
-
// EXTERNAL MODULE:
|
|
111040
|
-
var
|
|
111036
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111037
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111041
111038
|
;// ./src/components/Modals/ErrorModal.jsx
|
|
111042
111039
|
|
|
111043
111040
|
|
|
@@ -111066,8 +111063,8 @@ var ErrorModal = _ref => {
|
|
|
111066
111063
|
dispatch((0,EditorSlice.setError)(null));
|
|
111067
111064
|
};
|
|
111068
111065
|
var modalContainerElement = document.getElementById("textjam-root") || document.body;
|
|
111069
|
-
return /*#__PURE__*/(0,
|
|
111070
|
-
children: /*#__PURE__*/(0,
|
|
111066
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(jsx_runtime_.Fragment, {
|
|
111067
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)((lib_default()), {
|
|
111071
111068
|
isOpen: isModalOpen,
|
|
111072
111069
|
onRequestClose: closeModal,
|
|
111073
111070
|
className: "modal-content",
|
|
@@ -111075,23 +111072,23 @@ var ErrorModal = _ref => {
|
|
|
111075
111072
|
contentLabel: t("modal.error.error"),
|
|
111076
111073
|
parentSelector: () => modalContainerElement,
|
|
111077
111074
|
appElement: modalContainerElement,
|
|
111078
|
-
children: [/*#__PURE__*/(0,
|
|
111075
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111079
111076
|
className: "modal-content__header",
|
|
111080
|
-
children: /*#__PURE__*/(0,
|
|
111077
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("h2", {
|
|
111081
111078
|
className: "modal-content__heading",
|
|
111082
111079
|
children: t("modal.error.heading")
|
|
111083
111080
|
})
|
|
111084
111081
|
}), t("modal.error.".concat(errorType || error, ".message"), {
|
|
111085
111082
|
defaultValue: null
|
|
111086
|
-
}) && /*#__PURE__*/(0,
|
|
111083
|
+
}) && /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111087
111084
|
className: "modal-content__body",
|
|
111088
|
-
children: /*#__PURE__*/(0,
|
|
111085
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("p", {
|
|
111089
111086
|
className: "modal-content__text",
|
|
111090
111087
|
children: t("modal.error.".concat(errorType || error, ".message"))
|
|
111091
111088
|
})
|
|
111092
|
-
}), /*#__PURE__*/(0,
|
|
111089
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111093
111090
|
className: "modal-content__buttons",
|
|
111094
|
-
children: /*#__PURE__*/(0,
|
|
111091
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111095
111092
|
className: "btn--primary",
|
|
111096
111093
|
buttonText: t("modal.close"),
|
|
111097
111094
|
onClickHandler: closeModal
|
|
@@ -111136,8 +111133,8 @@ var SvgIcon = __webpack_require__(82917);
|
|
|
111136
111133
|
var remix = __webpack_require__(78667);
|
|
111137
111134
|
// EXTERNAL MODULE: ./src/redux/stores/index.ts
|
|
111138
111135
|
var stores = __webpack_require__(32132);
|
|
111139
|
-
// EXTERNAL MODULE:
|
|
111140
|
-
var
|
|
111136
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111137
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111141
111138
|
;// ./src/components/Modals/RemixProjectModal/RemixProjectModal.jsx
|
|
111142
111139
|
|
|
111143
111140
|
|
|
@@ -111161,31 +111158,31 @@ var RemixProjectModal = () => {
|
|
|
111161
111158
|
dispatch((0,EditorSlice.setRemixTriggered)(true));
|
|
111162
111159
|
handleClose();
|
|
111163
111160
|
};
|
|
111164
|
-
return /*#__PURE__*/(0,
|
|
111161
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)(BaseModal["default"], {
|
|
111165
111162
|
isOpen: isModalOpen,
|
|
111166
111163
|
closeModal: handleClose,
|
|
111167
111164
|
externalClasses: styles_module,
|
|
111168
111165
|
heading: "",
|
|
111169
|
-
buttons: [/*#__PURE__*/(0,
|
|
111166
|
+
buttons: [/*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111170
111167
|
variant: "primary",
|
|
111171
111168
|
buttonText: "Create Now",
|
|
111172
111169
|
onClickHandler: handleCreateNow
|
|
111173
|
-
}, "create"), /*#__PURE__*/(0,
|
|
111170
|
+
}, "create"), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111174
111171
|
variant: "tertiaryGray",
|
|
111175
111172
|
buttonText: "Cancel",
|
|
111176
111173
|
onClickHandler: handleClose
|
|
111177
111174
|
}, "cancel")],
|
|
111178
|
-
children: [/*#__PURE__*/(0,
|
|
111175
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111179
111176
|
className: BaseModal_styles_module["default"].headerContainer,
|
|
111180
|
-
children: [/*#__PURE__*/(0,
|
|
111177
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111181
111178
|
size: 24,
|
|
111182
111179
|
SvgElement: remix["default"],
|
|
111183
111180
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerIcon)
|
|
111184
|
-
}), /*#__PURE__*/(0,
|
|
111181
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111185
111182
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerText),
|
|
111186
111183
|
children: "Remix Project"
|
|
111187
111184
|
})]
|
|
111188
|
-
}), /*#__PURE__*/(0,
|
|
111185
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("p", {
|
|
111189
111186
|
className: styles_module.description,
|
|
111190
111187
|
children: "You'll create your own version, starting from this project."
|
|
111191
111188
|
})]
|
|
@@ -111206,8 +111203,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111206
111203
|
"default": () => (/* binding */ RemoveItemModal_RemoveItemModal)
|
|
111207
111204
|
});
|
|
111208
111205
|
|
|
111209
|
-
// EXTERNAL MODULE: external "react"
|
|
111210
|
-
var external_react_ = __webpack_require__(51649);
|
|
111211
111206
|
;// ./src/components/Modals/RemoveItemModal/styles.module.scss
|
|
111212
111207
|
// extracted by mini-css-extract-plugin
|
|
111213
111208
|
/* 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","content":"styles-module__content--uVl64","headerContainer":"styles-module__headerContainer--FPLYl","headerIcon":"styles-module__headerIcon--VUrhy","headerText":"styles-module__headerText--F+NA0","containerBox":"styles-module__containerBox--Dezow","buttonsContainer":"styles-module__buttonsContainer--pnT1Q"});
|
|
@@ -111221,6 +111216,8 @@ var types = __webpack_require__(92932);
|
|
|
111221
111216
|
var external_react_redux_ = __webpack_require__(14062);
|
|
111222
111217
|
// EXTERNAL MODULE: ./src/components/Modals/BaseModal/BaseModal.jsx
|
|
111223
111218
|
var BaseModal = __webpack_require__(97933);
|
|
111219
|
+
// EXTERNAL MODULE: external "react"
|
|
111220
|
+
var external_react_ = __webpack_require__(51649);
|
|
111224
111221
|
;// ./src/assets/icons/remove.svg
|
|
111225
111222
|
var _path;
|
|
111226
111223
|
function _extends() { return _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; }, _extends.apply(null, arguments); }
|
|
@@ -111241,8 +111238,8 @@ var Button = __webpack_require__(79428);
|
|
|
111241
111238
|
var SvgIcon = __webpack_require__(82917);
|
|
111242
111239
|
// EXTERNAL MODULE: ./src/redux/stores/index.ts
|
|
111243
111240
|
var stores = __webpack_require__(32132);
|
|
111244
|
-
// EXTERNAL MODULE:
|
|
111245
|
-
var
|
|
111241
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111242
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111246
111243
|
;// ./src/components/Modals/RemoveItemModal/RemoveItemModal.jsx
|
|
111247
111244
|
|
|
111248
111245
|
|
|
@@ -111271,32 +111268,32 @@ var RemoveItemModal = () => {
|
|
|
111271
111268
|
console.error("RemoveItemModal: no data provided");
|
|
111272
111269
|
return null;
|
|
111273
111270
|
}
|
|
111274
|
-
return /*#__PURE__*/(0,
|
|
111271
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(BaseModal["default"], {
|
|
111275
111272
|
isOpen: isModalOpen,
|
|
111276
111273
|
closeModal: handleClose,
|
|
111277
111274
|
externalClasses: styles_module,
|
|
111278
111275
|
heading: "",
|
|
111279
|
-
buttons: [/*#__PURE__*/(0,
|
|
111276
|
+
buttons: [/*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111280
111277
|
variant: "primary",
|
|
111281
111278
|
buttonText: "Delete",
|
|
111282
111279
|
onClickHandler: handleRemove
|
|
111283
|
-
}, "delete"), /*#__PURE__*/(0,
|
|
111280
|
+
}, "delete"), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111284
111281
|
variant: "tertiaryGray",
|
|
111285
111282
|
buttonText: "Cancel",
|
|
111286
111283
|
onClickHandler: handleClose
|
|
111287
111284
|
}, "cancel")],
|
|
111288
|
-
children: /*#__PURE__*/(0,
|
|
111289
|
-
children: [/*#__PURE__*/(0,
|
|
111285
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111286
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111290
111287
|
className: BaseModal_styles_module["default"].headerContainer,
|
|
111291
|
-
children: [/*#__PURE__*/(0,
|
|
111288
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111292
111289
|
size: 32,
|
|
111293
111290
|
SvgElement: remove,
|
|
111294
111291
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerIcon)
|
|
111295
|
-
}), /*#__PURE__*/(0,
|
|
111292
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111296
111293
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerText),
|
|
111297
111294
|
children: data !== null && data !== void 0 && data.isFolder ? "Delete Folder" : "Delete File"
|
|
111298
111295
|
})]
|
|
111299
|
-
}), /*#__PURE__*/(0,
|
|
111296
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111300
111297
|
className: styles_module.containerBox,
|
|
111301
111298
|
children: ["Are you sure you want to delete \"".concat(data === null || data === void 0 ? void 0 : data.itemName, "\"? "), (data === null || data === void 0 ? void 0 : data.isFolder) && "Deleting this folder will delete everything in it"]
|
|
111302
111299
|
})]
|
|
@@ -111318,8 +111315,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111318
111315
|
"default": () => (/* binding */ SaveProjectReminderModal_SaveProjectReminderModal)
|
|
111319
111316
|
});
|
|
111320
111317
|
|
|
111321
|
-
// EXTERNAL MODULE: external "react"
|
|
111322
|
-
var external_react_ = __webpack_require__(51649);
|
|
111323
111318
|
;// ./src/components/Modals/SaveProjectReminderModal/styles.module.scss
|
|
111324
111319
|
// extracted by mini-css-extract-plugin
|
|
111325
111320
|
/* 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","content":"styles-module__content--UhJMG","modalContentHeader":"styles-module__modalContentHeader--YPWsb","headerText":"styles-module__headerText--89Clx","containerBox":"styles-module__containerBox--WUoyb","messageContainer":"styles-module__messageContainer--WzXV7","messageIcon":"styles-module__messageIcon--a6yn-","messageContent":"styles-module__messageContent--CYn9o","buttonsContainer":"styles-module__buttonsContainer--1toXb"});
|
|
@@ -111343,8 +111338,8 @@ var Button = __webpack_require__(79428);
|
|
|
111343
111338
|
var icons_close = __webpack_require__(93224);
|
|
111344
111339
|
// EXTERNAL MODULE: ./src/components/shared/SvgIcon/index.tsx
|
|
111345
111340
|
var SvgIcon = __webpack_require__(82917);
|
|
111346
|
-
// EXTERNAL MODULE:
|
|
111347
|
-
var
|
|
111341
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111342
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111348
111343
|
;// ./src/components/Modals/SaveProjectReminderModal/SaveProjectReminderModal.jsx
|
|
111349
111344
|
|
|
111350
111345
|
|
|
@@ -111363,42 +111358,42 @@ var SaveProjectReminderModal = () => {
|
|
|
111363
111358
|
var dispatch = (0,external_react_redux_.useDispatch)();
|
|
111364
111359
|
var isModalOpen = (0,external_react_redux_.useSelector)(state => state.editor.modalWindowShowing === types.ModalType.SAVE_PROJECT_REMINDER);
|
|
111365
111360
|
var handleClose = () => dispatch((0,EditorSlice.closeModal)());
|
|
111366
|
-
return /*#__PURE__*/(0,
|
|
111361
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(BaseModal["default"], {
|
|
111367
111362
|
isOpen: isModalOpen,
|
|
111368
111363
|
closeModal: handleClose,
|
|
111369
111364
|
externalClasses: styles_module,
|
|
111370
111365
|
heading: "",
|
|
111371
111366
|
withCloseButton: true,
|
|
111372
111367
|
closeIcon: icons_close["default"],
|
|
111373
|
-
buttons: [/*#__PURE__*/(0,
|
|
111368
|
+
buttons: [/*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111374
111369
|
variant: "primary",
|
|
111375
111370
|
buttonText: "Save",
|
|
111376
111371
|
ButtonIcon: flag/* default */.A,
|
|
111377
111372
|
onClickHandler: () => {}
|
|
111378
|
-
}, "delete"), /*#__PURE__*/(0,
|
|
111373
|
+
}, "delete"), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111379
111374
|
variant: "tertiaryGray",
|
|
111380
111375
|
buttonText: "Ignore",
|
|
111381
111376
|
onClickHandler: handleClose
|
|
111382
111377
|
}, "cancel")],
|
|
111383
|
-
children: /*#__PURE__*/(0,
|
|
111384
|
-
children: [/*#__PURE__*/(0,
|
|
111378
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111379
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111385
111380
|
className: BaseModal_styles_module["default"].headerContainer,
|
|
111386
|
-
children: /*#__PURE__*/(0,
|
|
111381
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111387
111382
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerText),
|
|
111388
111383
|
children: "Remember to Save"
|
|
111389
111384
|
})
|
|
111390
|
-
}), /*#__PURE__*/(0,
|
|
111385
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111391
111386
|
className: styles_module.containerBox,
|
|
111392
|
-
children: /*#__PURE__*/(0,
|
|
111387
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111393
111388
|
className: styles_module.messageContainer,
|
|
111394
|
-
children: [/*#__PURE__*/(0,
|
|
111389
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111395
111390
|
className: styles_module.messageIcon,
|
|
111396
|
-
children: /*#__PURE__*/(0,
|
|
111391
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111397
111392
|
size: 18,
|
|
111398
111393
|
SvgElement: icons_alert["default"],
|
|
111399
111394
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerIcon)
|
|
111400
111395
|
})
|
|
111401
|
-
}), /*#__PURE__*/(0,
|
|
111396
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111402
111397
|
className: styles_module.messageContent,
|
|
111403
111398
|
children: "Hey! You haven\u2019t saved in a while. Remember to save."
|
|
111404
111399
|
})]
|
|
@@ -111449,8 +111444,8 @@ var types = __webpack_require__(92932);
|
|
|
111449
111444
|
var Button = __webpack_require__(79428);
|
|
111450
111445
|
// EXTERNAL MODULE: ./src/components/Modals/BaseModal/BaseModal.jsx
|
|
111451
111446
|
var BaseModal = __webpack_require__(97933);
|
|
111452
|
-
// EXTERNAL MODULE:
|
|
111453
|
-
var
|
|
111447
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111448
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111454
111449
|
;// ./src/components/Modals/ShareProjectModal/ShareProjectModal.jsx
|
|
111455
111450
|
|
|
111456
111451
|
|
|
@@ -111498,32 +111493,32 @@ var ShareProjectModal = () => {
|
|
|
111498
111493
|
return _ref.apply(this, arguments);
|
|
111499
111494
|
};
|
|
111500
111495
|
}();
|
|
111501
|
-
return /*#__PURE__*/(0,
|
|
111496
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(BaseModal["default"], {
|
|
111502
111497
|
isOpen: isModalOpen,
|
|
111503
111498
|
closeModal: handleClose,
|
|
111504
111499
|
externalClasses: ShareProjectModal_styles_module,
|
|
111505
111500
|
heading: "",
|
|
111506
111501
|
withCloseButton: true,
|
|
111507
|
-
ButtonIcon: /*#__PURE__*/(0,
|
|
111502
|
+
ButtonIcon: /*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111508
111503
|
size: 18,
|
|
111509
111504
|
SvgElement: flag/* default */.A
|
|
111510
111505
|
}),
|
|
111511
111506
|
buttons: null,
|
|
111512
111507
|
closeIcon: icons_close["default"],
|
|
111513
|
-
children: /*#__PURE__*/(0,
|
|
111514
|
-
children: [/*#__PURE__*/(0,
|
|
111508
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111509
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111515
111510
|
className: styles_module["default"].headerContainer,
|
|
111516
|
-
children: [/*#__PURE__*/(0,
|
|
111511
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111517
111512
|
size: 32,
|
|
111518
111513
|
SvgElement: icons_link["default"],
|
|
111519
111514
|
className: ShareProjectModal_styles_module.headerIcon
|
|
111520
|
-
}), /*#__PURE__*/(0,
|
|
111515
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111521
111516
|
className: ShareProjectModal_styles_module.headerText,
|
|
111522
111517
|
children: "Share Project Link"
|
|
111523
111518
|
})]
|
|
111524
|
-
}), !!canShareProject && /*#__PURE__*/(0,
|
|
111519
|
+
}), !!canShareProject && /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111525
111520
|
className: ShareProjectModal_styles_module.tabContainer,
|
|
111526
|
-
children: [/*#__PURE__*/(0,
|
|
111521
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("button", {
|
|
111527
111522
|
className: "".concat(ShareProjectModal_styles_module.tabButton, " ").concat(mode === tabModes.SHOW ? ShareProjectModal_styles_module.tabButtonActive : ""),
|
|
111528
111523
|
onClick: () => {
|
|
111529
111524
|
setMode(tabModes.SHOW);
|
|
@@ -111532,7 +111527,7 @@ var ShareProjectModal = () => {
|
|
|
111532
111527
|
"aria-label": "Show Code",
|
|
111533
111528
|
title: "Show Code",
|
|
111534
111529
|
children: "Show Code"
|
|
111535
|
-
}), /*#__PURE__*/(0,
|
|
111530
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("button", {
|
|
111536
111531
|
className: "".concat(ShareProjectModal_styles_module.tabButton, " ").concat(mode === tabModes.HIDE ? ShareProjectModal_styles_module.tabButtonActive : ""),
|
|
111537
111532
|
onClick: () => {
|
|
111538
111533
|
setMode(tabModes.HIDE);
|
|
@@ -111542,15 +111537,15 @@ var ShareProjectModal = () => {
|
|
|
111542
111537
|
title: "Hide Code",
|
|
111543
111538
|
children: "Hide Code"
|
|
111544
111539
|
})]
|
|
111545
|
-
}), /*#__PURE__*/(0,
|
|
111540
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111546
111541
|
className: ShareProjectModal_styles_module.containerBox,
|
|
111547
|
-
children: [/*#__PURE__*/(0,
|
|
111542
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111548
111543
|
className: ShareProjectModal_styles_module.linkContainer,
|
|
111549
|
-
children: /*#__PURE__*/(0,
|
|
111544
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("span", {
|
|
111550
111545
|
className: ShareProjectModal_styles_module.linkText,
|
|
111551
111546
|
children: link
|
|
111552
111547
|
})
|
|
111553
|
-
}), /*#__PURE__*/(0,
|
|
111548
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111554
111549
|
variant: "primary",
|
|
111555
111550
|
onClickHandler: handleCopy,
|
|
111556
111551
|
buttonText: isCopied ? "Copied!" : "Copy",
|
|
@@ -111575,8 +111570,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111575
111570
|
"default": () => (/* binding */ UploadSizeLimitModal_UploadSizeLimitModal)
|
|
111576
111571
|
});
|
|
111577
111572
|
|
|
111578
|
-
// EXTERNAL MODULE: external "react"
|
|
111579
|
-
var external_react_ = __webpack_require__(51649);
|
|
111580
111573
|
;// ./src/components/Modals/UploadSizeLimitModal/styles.module.scss
|
|
111581
111574
|
// extracted by mini-css-extract-plugin
|
|
111582
111575
|
/* 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","content":"styles-module__content--pEmxZ","headerIcon":"styles-module__headerIcon--mzjrS","headerText":"styles-module__headerText--pt2r0","containerBox":"styles-module__containerBox--r5zsA","buttonsContainer":"styles-module__buttonsContainer--I3Coy"});
|
|
@@ -111596,8 +111589,8 @@ var alertTriangle = __webpack_require__(75414);
|
|
|
111596
111589
|
var Button = __webpack_require__(79428);
|
|
111597
111590
|
// EXTERNAL MODULE: ./src/components/shared/SvgIcon/index.tsx
|
|
111598
111591
|
var SvgIcon = __webpack_require__(82917);
|
|
111599
|
-
// EXTERNAL MODULE:
|
|
111600
|
-
var
|
|
111592
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111593
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111601
111594
|
;// ./src/components/Modals/UploadSizeLimitModal/UploadSizeLimitModal.jsx
|
|
111602
111595
|
|
|
111603
111596
|
|
|
@@ -111615,26 +111608,26 @@ var UploadSizeLimitModal = () => {
|
|
|
111615
111608
|
var isModalOpen = (0,external_react_redux_.useSelector)(state => state.editor.modalWindowShowing === types.ModalType.UPLOAD_SIZE_LIMIT);
|
|
111616
111609
|
var handleClose = () => dispatch((0,EditorSlice.closeModal)());
|
|
111617
111610
|
var uploadSizeMB = 3;
|
|
111618
|
-
return /*#__PURE__*/(0,
|
|
111611
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(BaseModal["default"], {
|
|
111619
111612
|
isOpen: isModalOpen,
|
|
111620
111613
|
externalClasses: styles_module,
|
|
111621
|
-
buttons: [/*#__PURE__*/(0,
|
|
111614
|
+
buttons: [/*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111622
111615
|
variant: "primary",
|
|
111623
111616
|
buttonText: "Ok",
|
|
111624
111617
|
onClickHandler: handleClose
|
|
111625
111618
|
})],
|
|
111626
|
-
children: /*#__PURE__*/(0,
|
|
111627
|
-
children: [/*#__PURE__*/(0,
|
|
111619
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111620
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111628
111621
|
className: BaseModal_styles_module["default"].headerContainer,
|
|
111629
|
-
children: [/*#__PURE__*/(0,
|
|
111622
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
111630
111623
|
size: 32,
|
|
111631
111624
|
SvgElement: alertTriangle["default"],
|
|
111632
111625
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerIcon)
|
|
111633
|
-
}), /*#__PURE__*/(0,
|
|
111626
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
111634
111627
|
className: "".concat(BaseModal_styles_module["default"].headerText, " ").concat(styles_module.headerText),
|
|
111635
111628
|
children: "File size exceeds the limit"
|
|
111636
111629
|
})]
|
|
111637
|
-
}), /*#__PURE__*/(0,
|
|
111630
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", {
|
|
111638
111631
|
className: "".concat(BaseModal_styles_module["default"].containerBox, " ").concat(styles_module.containerBox),
|
|
111639
111632
|
children: ["Please select a file with a maximum size of ", uploadSizeMB, " MB."]
|
|
111640
111633
|
})]
|
|
@@ -111652,18 +111645,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
111652
111645
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
111653
111646
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
111654
111647
|
/* harmony export */ });
|
|
111655
|
-
/* harmony import */ var
|
|
111656
|
-
/* harmony import */ var
|
|
111657
|
-
/* harmony import */ var
|
|
111648
|
+
/* harmony import */ var _home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(89379);
|
|
111649
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51649);
|
|
111650
|
+
/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14062);
|
|
111658
111651
|
/* harmony import */ var _redux_EditorSlice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68512);
|
|
111659
111652
|
/* harmony import */ var _utils_componentNameValidation__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(56469);
|
|
111660
|
-
/* harmony import */ var
|
|
111661
|
-
/* harmony import */ var
|
|
111662
|
-
/* harmony import */ var
|
|
111653
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46942);
|
|
111654
|
+
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
|
|
111655
|
+
/* harmony import */ var _styles_module_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29881);
|
|
111663
111656
|
/* harmony import */ var _hooks_useHover__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78556);
|
|
111664
111657
|
/* harmony import */ var components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(26982);
|
|
111665
111658
|
/* harmony import */ var components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_8__);
|
|
111666
|
-
/* harmony import */ var
|
|
111659
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71178);
|
|
111667
111660
|
|
|
111668
111661
|
|
|
111669
111662
|
|
|
@@ -111682,25 +111675,25 @@ var ProjectName = _ref => {
|
|
|
111682
111675
|
showLabel = false,
|
|
111683
111676
|
editable = true
|
|
111684
111677
|
} = _ref;
|
|
111685
|
-
var project = (0,
|
|
111678
|
+
var project = (0,react_redux__WEBPACK_IMPORTED_MODULE_0__.useSelector)(state => state.editor.project, react_redux__WEBPACK_IMPORTED_MODULE_0__.shallowEqual);
|
|
111686
111679
|
var projectName = getProjectName(project);
|
|
111687
|
-
var dispatch = (0,
|
|
111688
|
-
var nameInput = (0,
|
|
111689
|
-
var nameBeforeEditingRef = (0,
|
|
111690
|
-
var [isEditing, setEditing] = (0,
|
|
111691
|
-
var [name, setName] = (0,
|
|
111680
|
+
var dispatch = (0,react_redux__WEBPACK_IMPORTED_MODULE_0__.useDispatch)();
|
|
111681
|
+
var nameInput = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);
|
|
111682
|
+
var nameBeforeEditingRef = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(projectName);
|
|
111683
|
+
var [isEditing, setEditing] = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false);
|
|
111684
|
+
var [name, setName] = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(projectName);
|
|
111692
111685
|
var {
|
|
111693
111686
|
hovered,
|
|
111694
111687
|
hoverProps
|
|
111695
111688
|
} = (0,_hooks_useHover__WEBPACK_IMPORTED_MODULE_5__.useHover)(_hooks_useHover__WEBPACK_IMPORTED_MODULE_5__.TOOLTIP_SHOW_DELAY_MS);
|
|
111696
|
-
(0,
|
|
111689
|
+
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(() => {
|
|
111697
111690
|
if (!isEditing) {
|
|
111698
111691
|
setName(projectName);
|
|
111699
111692
|
nameBeforeEditingRef.current = projectName;
|
|
111700
111693
|
dispatch((0,_redux_EditorSlice__WEBPACK_IMPORTED_MODULE_6__.setProjectNameDraft)(null));
|
|
111701
111694
|
}
|
|
111702
111695
|
}, [projectName, isEditing, dispatch]);
|
|
111703
|
-
(0,
|
|
111696
|
+
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(() => {
|
|
111704
111697
|
if (isEditing) {
|
|
111705
111698
|
var _nameInput$current, _nameInput$current2;
|
|
111706
111699
|
(_nameInput$current = nameInput.current) === null || _nameInput$current === void 0 || _nameInput$current.focus();
|
|
@@ -111762,20 +111755,20 @@ var ProjectName = _ref => {
|
|
|
111762
111755
|
var handleKeyUp = event => {
|
|
111763
111756
|
stopKeyboardEventPropagation(event);
|
|
111764
111757
|
};
|
|
111765
|
-
return /*#__PURE__*/(0,
|
|
111766
|
-
children: [showLabel && /*#__PURE__*/(0,
|
|
111758
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.Fragment, {
|
|
111759
|
+
children: [showLabel && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("label", {
|
|
111767
111760
|
htmlFor: "project_name",
|
|
111768
111761
|
id: "project_name_label",
|
|
111769
|
-
className:
|
|
111762
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"].projectLabel,
|
|
111770
111763
|
children: "Project Name"
|
|
111771
|
-
}), /*#__PURE__*/(0,
|
|
111772
|
-
className:
|
|
111764
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", (0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)((0,_home_runner_work_gwchq_textjam_gwchq_textjam_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A)({
|
|
111765
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"].projectName, className)
|
|
111773
111766
|
}, hoverProps), {}, {
|
|
111774
|
-
children: [/*#__PURE__*/(0,
|
|
111767
|
+
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)((components_Tooltip_Tooltip__WEBPACK_IMPORTED_MODULE_8___default()), {
|
|
111775
111768
|
message: name,
|
|
111776
111769
|
visible: hovered && !!name && !isEditing,
|
|
111777
111770
|
position: "bottom"
|
|
111778
|
-
}), /*#__PURE__*/(0,
|
|
111771
|
+
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", {
|
|
111779
111772
|
id: "project_name",
|
|
111780
111773
|
ref: nameInput,
|
|
111781
111774
|
type: "text",
|
|
@@ -111789,8 +111782,8 @@ var ProjectName = _ref => {
|
|
|
111789
111782
|
maxLength: _utils_componentNameValidation__WEBPACK_IMPORTED_MODULE_9__.PROJECT_NAME_LIMIT,
|
|
111790
111783
|
onChange: handleOnChange,
|
|
111791
111784
|
onBlur: handleOnBlur,
|
|
111792
|
-
className:
|
|
111793
|
-
[
|
|
111785
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_styles_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"].projectInput, {
|
|
111786
|
+
[_styles_module_scss__WEBPACK_IMPORTED_MODULE_2__["default"].editing]: isEditing
|
|
111794
111787
|
})
|
|
111795
111788
|
})]
|
|
111796
111789
|
}))]
|
|
@@ -111807,10 +111800,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
111807
111800
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
111808
111801
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
111809
111802
|
/* harmony export */ });
|
|
111810
|
-
/* harmony import */ var
|
|
111811
|
-
/* harmony import */ var
|
|
111812
|
-
/* harmony import */ var
|
|
111813
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(74848);
|
|
111803
|
+
/* harmony import */ var _RunnerControls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60881);
|
|
111804
|
+
/* harmony import */ var _styles_module_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67534);
|
|
111805
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71178);
|
|
111814
111806
|
|
|
111815
111807
|
|
|
111816
111808
|
|
|
@@ -111819,9 +111811,9 @@ var RunBar = _ref => {
|
|
|
111819
111811
|
var {
|
|
111820
111812
|
embedded = false
|
|
111821
111813
|
} = _ref;
|
|
111822
|
-
return /*#__PURE__*/(0,
|
|
111823
|
-
className:
|
|
111824
|
-
children: /*#__PURE__*/(0,
|
|
111814
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", {
|
|
111815
|
+
className: _styles_module_scss__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.runBar,
|
|
111816
|
+
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_RunnerControls__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
111825
111817
|
embedded: embedded
|
|
111826
111818
|
})
|
|
111827
111819
|
});
|
|
@@ -111841,8 +111833,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
111841
111833
|
"default": () => (/* binding */ RunButton_RunnerControls)
|
|
111842
111834
|
});
|
|
111843
111835
|
|
|
111844
|
-
// EXTERNAL MODULE: external "react"
|
|
111845
|
-
var external_react_ = __webpack_require__(51649);
|
|
111846
111836
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
111847
111837
|
var objectSpread2 = __webpack_require__(89379);
|
|
111848
111838
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js + 1 modules
|
|
@@ -111858,8 +111848,8 @@ var Tooltip = __webpack_require__(26982);
|
|
|
111858
111848
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip);
|
|
111859
111849
|
// EXTERNAL MODULE: ./src/hooks/useHover.ts
|
|
111860
111850
|
var useHover = __webpack_require__(78556);
|
|
111861
|
-
// EXTERNAL MODULE:
|
|
111862
|
-
var
|
|
111851
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
111852
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
111863
111853
|
;// ./src/components/RunButton/RunButton.jsx
|
|
111864
111854
|
|
|
111865
111855
|
|
|
@@ -111890,21 +111880,23 @@ var RunButton = _ref => {
|
|
|
111890
111880
|
dispatch((0,EditorSlice.setPage)(null));
|
|
111891
111881
|
};
|
|
111892
111882
|
var isButtonDisabled = !activeRunner || activeRunner !== loadedRunner || codeRunLoading;
|
|
111893
|
-
return /*#__PURE__*/(0,
|
|
111883
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)("div", (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, hoverProps), {}, {
|
|
111894
111884
|
style: {
|
|
111895
111885
|
position: "relative"
|
|
111896
111886
|
},
|
|
111897
|
-
children: [/*#__PURE__*/(0,
|
|
111887
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)((Tooltip_default()), {
|
|
111898
111888
|
message: "We\u2019re still loading what you need to run your code. Try again in a moment!",
|
|
111899
111889
|
visible: hovered && isButtonDisabled,
|
|
111900
111890
|
position: "bottom"
|
|
111901
|
-
}), /*#__PURE__*/(0,
|
|
111891
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], (0,objectSpread2/* default */.A)({
|
|
111902
111892
|
disabled: isButtonDisabled,
|
|
111903
111893
|
onClickHandler: onClickRun
|
|
111904
111894
|
}, props))]
|
|
111905
111895
|
}));
|
|
111906
111896
|
};
|
|
111907
111897
|
/* harmony default export */ const RunButton_RunButton = (RunButton);
|
|
111898
|
+
// EXTERNAL MODULE: external "react"
|
|
111899
|
+
var external_react_ = __webpack_require__(51649);
|
|
111908
111900
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
111909
111901
|
var classnames = __webpack_require__(46942);
|
|
111910
111902
|
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
@@ -111924,9 +111916,9 @@ var StopButton_excluded = ["className"];
|
|
|
111924
111916
|
|
|
111925
111917
|
|
|
111926
111918
|
|
|
111927
|
-
var stoppingButtonText = /*#__PURE__*/(0,
|
|
111919
|
+
var stoppingButtonText = /*#__PURE__*/(0,jsx_runtime_.jsxs)("span", {
|
|
111928
111920
|
className: styles_module/* default */.A.stopBtnContent,
|
|
111929
|
-
children: [/*#__PURE__*/(0,
|
|
111921
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SpinnerDotted.SpinnerDotted, {}), " Stopping..."]
|
|
111930
111922
|
});
|
|
111931
111923
|
var StopButton = _ref => {
|
|
111932
111924
|
var {
|
|
@@ -111942,7 +111934,7 @@ var StopButton = _ref => {
|
|
|
111942
111934
|
}
|
|
111943
111935
|
dispatch((0,EditorSlice.stopDraw)());
|
|
111944
111936
|
};
|
|
111945
|
-
var stop = /*#__PURE__*/(0,
|
|
111937
|
+
var stop = /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], (0,objectSpread2/* default */.A)({
|
|
111946
111938
|
onClickHandler: onClickStop,
|
|
111947
111939
|
className: classnames_default()({
|
|
111948
111940
|
[styles_module/* default */.A.pressed]: !!codeRunTriggered
|
|
@@ -111951,7 +111943,7 @@ var StopButton = _ref => {
|
|
|
111951
111943
|
var [button, setButton] = (0,external_react_.useState)(stop);
|
|
111952
111944
|
(0,external_react_.useEffect)(() => {
|
|
111953
111945
|
if (codeRunStopped) {
|
|
111954
|
-
var stopping = /*#__PURE__*/(0,
|
|
111946
|
+
var stopping = /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], {
|
|
111955
111947
|
className: styles_module/* default */.A.stopping,
|
|
111956
111948
|
buttonText: stoppingButtonText,
|
|
111957
111949
|
variant: "primary",
|
|
@@ -112012,16 +112004,16 @@ var SvgIcon = __webpack_require__(82917);
|
|
|
112012
112004
|
var RunnerControls = () => {
|
|
112013
112005
|
var codeRunTriggered = (0,external_react_redux_.useSelector)(state => state.editor.codeRunTriggered);
|
|
112014
112006
|
var drawTriggered = (0,external_react_redux_.useSelector)(state => state.editor.drawTriggered);
|
|
112015
|
-
return codeRunTriggered || drawTriggered ? /*#__PURE__*/(0,
|
|
112007
|
+
return codeRunTriggered || drawTriggered ? /*#__PURE__*/(0,jsx_runtime_.jsx)(RunButton_StopButton, {
|
|
112016
112008
|
buttonText: "Stop",
|
|
112017
|
-
ButtonIcon: () => /*#__PURE__*/(0,
|
|
112009
|
+
ButtonIcon: () => /*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
112018
112010
|
SvgElement: stop,
|
|
112019
112011
|
size: 24
|
|
112020
112012
|
}),
|
|
112021
112013
|
variant: "tertiary"
|
|
112022
|
-
}) : /*#__PURE__*/(0,
|
|
112014
|
+
}) : /*#__PURE__*/(0,jsx_runtime_.jsx)(RunButton_RunButton, {
|
|
112023
112015
|
buttonText: "Run",
|
|
112024
|
-
ButtonIcon: () => /*#__PURE__*/(0,
|
|
112016
|
+
ButtonIcon: () => /*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
112025
112017
|
SvgElement: run,
|
|
112026
112018
|
size: 24
|
|
112027
112019
|
}),
|
|
@@ -112073,8 +112065,8 @@ var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip);
|
|
|
112073
112065
|
var useHover = __webpack_require__(78556);
|
|
112074
112066
|
// EXTERNAL MODULE: ./src/redux/selectors.ts
|
|
112075
112067
|
var selectors = __webpack_require__(43551);
|
|
112076
|
-
// EXTERNAL MODULE:
|
|
112077
|
-
var
|
|
112068
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
112069
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
112078
112070
|
;// ./src/components/SaveButton/SaveButton.jsx
|
|
112079
112071
|
|
|
112080
112072
|
|
|
@@ -112109,23 +112101,23 @@ var SaveButton = props => {
|
|
|
112109
112101
|
var isSaving = saving === types.SavingState.PROCESS;
|
|
112110
112102
|
var hasChangesToSave = hasContentChanges || hasNameChanges;
|
|
112111
112103
|
var isDisabled = isSaving || !hasChangesToSave;
|
|
112112
|
-
var buttonIcon = isSaving ? null : () => /*#__PURE__*/(0,
|
|
112104
|
+
var buttonIcon = isSaving ? null : () => /*#__PURE__*/(0,jsx_runtime_.jsx)(SvgIcon.SvgIcon, {
|
|
112113
112105
|
size: 24,
|
|
112114
112106
|
SvgElement: save["default"],
|
|
112115
112107
|
className: styles_module.icon
|
|
112116
112108
|
});
|
|
112117
|
-
var buttonText = isSaving ? /*#__PURE__*/(0,
|
|
112109
|
+
var buttonText = isSaving ? /*#__PURE__*/(0,jsx_runtime_.jsxs)("span", {
|
|
112118
112110
|
className: styles_module.content,
|
|
112119
|
-
children: [/*#__PURE__*/(0,
|
|
112111
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)(SpinnerDotted.SpinnerDotted, {}), " Saving..."]
|
|
112120
112112
|
}) : "Save";
|
|
112121
|
-
return loading === types.LoadingState.SUCCESS && /*#__PURE__*/(0,
|
|
112113
|
+
return loading === types.LoadingState.SUCCESS && /*#__PURE__*/(0,jsx_runtime_.jsxs)("span", (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({
|
|
112122
112114
|
className: styles_module.wrapper
|
|
112123
112115
|
}, hoverProps), {}, {
|
|
112124
|
-
children: [/*#__PURE__*/(0,
|
|
112116
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)((Tooltip_default()), {
|
|
112125
112117
|
message: DEFAULT_TOOLTIP + (hasChangesToSave ? "" : "\n" + NO_CHANGES_TO_SAVE_MESSAGE),
|
|
112126
112118
|
visible: hovered && !hasChangesToSave,
|
|
112127
112119
|
position: "bottom"
|
|
112128
|
-
}), /*#__PURE__*/(0,
|
|
112120
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(Button["default"], (0,objectSpread2/* default */.A)({
|
|
112129
112121
|
buttonText: buttonText,
|
|
112130
112122
|
ButtonIcon: buttonIcon,
|
|
112131
112123
|
buttonIconPosition: "left",
|
|
@@ -114845,6 +114837,23 @@ instance.use(es.initReactI18next)
|
|
|
114845
114837
|
|
|
114846
114838
|
/***/ }),
|
|
114847
114839
|
|
|
114840
|
+
/***/ 13327:
|
|
114841
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
114842
|
+
|
|
114843
|
+
__webpack_require__.r(__webpack_exports__);
|
|
114844
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114845
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
114846
|
+
/* harmony export */ });
|
|
114847
|
+
/* harmony import */ var react_external__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51649);
|
|
114848
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
114849
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in react_external__WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => react_external__WEBPACK_IMPORTED_MODULE_0__[__WEBPACK_IMPORT_KEY__]
|
|
114850
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
114851
|
+
|
|
114852
|
+
|
|
114853
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (react_external__WEBPACK_IMPORTED_MODULE_0__);
|
|
114854
|
+
|
|
114855
|
+
/***/ }),
|
|
114856
|
+
|
|
114848
114857
|
/***/ 61193:
|
|
114849
114858
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
114850
114859
|
|
|
@@ -114852,8 +114861,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114852
114861
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
114853
114862
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
114854
114863
|
/* harmony export */ });
|
|
114855
|
-
/* harmony import */ var
|
|
114856
|
-
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(74848);
|
|
114864
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71178);
|
|
114857
114865
|
|
|
114858
114866
|
|
|
114859
114867
|
var CloseIcon = props => {
|
|
@@ -114861,14 +114869,14 @@ var CloseIcon = props => {
|
|
|
114861
114869
|
scaleFactor
|
|
114862
114870
|
} = props;
|
|
114863
114871
|
var scale = scaleFactor || 1;
|
|
114864
|
-
return /*#__PURE__*/(0,
|
|
114872
|
+
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("svg", {
|
|
114865
114873
|
transform: "scale(".concat(scale, ", ").concat(scale, ")"),
|
|
114866
114874
|
width: "9",
|
|
114867
114875
|
height: "9",
|
|
114868
114876
|
viewBox: "0 0 9 9",
|
|
114869
114877
|
fill: "none",
|
|
114870
114878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
114871
|
-
children: /*#__PURE__*/(0,
|
|
114879
|
+
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("path", {
|
|
114872
114880
|
d: "M8.5 0.5L0.5 8.5M0.5 0.5L8.5 8.5",
|
|
114873
114881
|
stroke: "#33625E",
|
|
114874
114882
|
strokeLinecap: "round",
|
|
@@ -115980,8 +115988,8 @@ var useResizableSeparator = _ref => {
|
|
|
115980
115988
|
;// ./src/assets/stylesheets/ResizableWithHandle.scss
|
|
115981
115989
|
// extracted by mini-css-extract-plugin
|
|
115982
115990
|
|
|
115983
|
-
// EXTERNAL MODULE:
|
|
115984
|
-
var
|
|
115991
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
115992
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
115985
115993
|
;// ./src/utils/ResizableWithHandle.js
|
|
115986
115994
|
|
|
115987
115995
|
|
|
@@ -116023,11 +116031,11 @@ var ResizableWithHandle = props => {
|
|
|
116023
116031
|
});
|
|
116024
116032
|
var handleWrapperClass = "resizable-with-handle__handle resizable-with-handle__handle--".concat(handleDirection);
|
|
116025
116033
|
var handleComponent = {
|
|
116026
|
-
[handleDirection]: /*#__PURE__*/(0,
|
|
116034
|
+
[handleDirection]: /*#__PURE__*/(0,jsx_runtime_.jsx)("span", (0,objectSpread2/* default */.A)({
|
|
116027
116035
|
className: "resizable-with-handle__bar resizable-with-handle__bar--".concat(handleDirection)
|
|
116028
116036
|
}, separatorProps))
|
|
116029
116037
|
};
|
|
116030
|
-
return /*#__PURE__*/(0,
|
|
116038
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(Resizable, (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({
|
|
116031
116039
|
ref: resizableRef,
|
|
116032
116040
|
enable: (0,objectSpread2/* default */.A)({
|
|
116033
116041
|
top: false,
|
|
@@ -345084,7 +345092,7 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
|
|
|
345084
345092
|
return t;
|
|
345085
345093
|
};
|
|
345086
345094
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
345087
|
-
var React = __webpack_require__(
|
|
345095
|
+
var React = __webpack_require__(13327);
|
|
345088
345096
|
var ReactDOM = __webpack_require__(7516);
|
|
345089
345097
|
var matchQueries_1 = __webpack_require__(70343);
|
|
345090
345098
|
var ContainerQueryCore_1 = __webpack_require__(97473);
|
|
@@ -345443,7 +345451,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
345443
345451
|
|
|
345444
345452
|
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; }; }();
|
|
345445
345453
|
|
|
345446
|
-
var _react = __webpack_require__(
|
|
345454
|
+
var _react = __webpack_require__(13327);
|
|
345447
345455
|
|
|
345448
345456
|
var _react2 = _interopRequireDefault(_react);
|
|
345449
345457
|
|
|
@@ -345746,7 +345754,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
345746
345754
|
|
|
345747
345755
|
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; }; }();
|
|
345748
345756
|
|
|
345749
|
-
var _react = __webpack_require__(
|
|
345757
|
+
var _react = __webpack_require__(13327);
|
|
345750
345758
|
|
|
345751
345759
|
var _propTypes = __webpack_require__(5556);
|
|
345752
345760
|
|
|
@@ -346966,7 +346974,7 @@ module.exports = exports["default"];
|
|
|
346966
346974
|
|
|
346967
346975
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
346968
346976
|
if(true)
|
|
346969
|
-
module.exports = factory(__webpack_require__(
|
|
346977
|
+
module.exports = factory(__webpack_require__(13327));
|
|
346970
346978
|
else {}
|
|
346971
346979
|
})(this, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
346972
346980
|
return /******/ (() => { // webpackBootstrap
|
|
@@ -348912,6 +348920,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
348912
348920
|
|
|
348913
348921
|
// EXTERNAL MODULE: external "react"
|
|
348914
348922
|
var external_react_ = __webpack_require__(51649);
|
|
348923
|
+
// EXTERNAL MODULE: ./src/react-external.js
|
|
348924
|
+
var react_external = __webpack_require__(13327);
|
|
348915
348925
|
// EXTERNAL MODULE: external "react-dom"
|
|
348916
348926
|
var external_react_dom_ = __webpack_require__(7516);
|
|
348917
348927
|
;// ./node_modules/@remix-run/router/dist/router.js
|
|
@@ -354904,7 +354914,7 @@ function logV6DeprecationWarnings(renderFuture, routerFuture) {
|
|
|
354904
354914
|
See https://github.com/remix-run/react-router/issues/10579
|
|
354905
354915
|
*/
|
|
354906
354916
|
const START_TRANSITION = "startTransition";
|
|
354907
|
-
const startTransitionImpl =
|
|
354917
|
+
const startTransitionImpl = react_external[START_TRANSITION];
|
|
354908
354918
|
|
|
354909
354919
|
/**
|
|
354910
354920
|
* Given a Remix Router instance, render the appropriate UI
|
|
@@ -355744,11 +355754,11 @@ if (false) {}
|
|
|
355744
355754
|
See https://github.com/remix-run/react-router/issues/10579
|
|
355745
355755
|
*/
|
|
355746
355756
|
const dist_START_TRANSITION = "startTransition";
|
|
355747
|
-
const dist_startTransitionImpl =
|
|
355757
|
+
const dist_startTransitionImpl = react_external[dist_START_TRANSITION];
|
|
355748
355758
|
const FLUSH_SYNC = "flushSync";
|
|
355749
355759
|
const flushSyncImpl = external_react_dom_[FLUSH_SYNC];
|
|
355750
355760
|
const USE_ID = "useId";
|
|
355751
|
-
const useIdImpl =
|
|
355761
|
+
const useIdImpl = react_external[USE_ID];
|
|
355752
355762
|
function startTransitionSafe(cb) {
|
|
355753
355763
|
if (dist_startTransitionImpl) {
|
|
355754
355764
|
dist_startTransitionImpl(cb);
|
|
@@ -356865,6 +356875,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
356865
356875
|
var prop_types = __webpack_require__(5556);
|
|
356866
356876
|
// EXTERNAL MODULE: external "react"
|
|
356867
356877
|
var external_react_ = __webpack_require__(51649);
|
|
356878
|
+
// EXTERNAL MODULE: ./src/react-external.js
|
|
356879
|
+
var react_external = __webpack_require__(13327);
|
|
356868
356880
|
;// ./node_modules/react-tabs/esm/helpers/elementTypes.js
|
|
356869
356881
|
function makeTypeChecker(tabsRole){return element=>!!element.type&&element.type.tabsRole===tabsRole}const isTab=makeTypeChecker("Tab");const isTabList=makeTypeChecker("TabList");const isTabPanel=makeTypeChecker("TabPanel");
|
|
356870
356882
|
;// ./node_modules/react-tabs/esm/helpers/childrenDeepMap.js
|
|
@@ -356876,15 +356888,15 @@ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else i
|
|
|
356876
356888
|
;// ./node_modules/react-tabs/esm/helpers/count.js
|
|
356877
356889
|
function count_getTabsCount(children){let tabCount=0;deepForEach(children,child=>{if(isTab(child))tabCount++});return tabCount}
|
|
356878
356890
|
;// ./node_modules/react-tabs/esm/components/UncontrolledTabs.js
|
|
356879
|
-
function isNode(node){return node&&"getAttribute"in node}function isTabNode(node){return isNode(node)&&node.getAttribute("data-rttab")}function isTabDisabled(node){return isNode(node)&&node.getAttribute("aria-disabled")==="true"}let canUseActiveElement;function determineCanUseActiveElement(environment){const env=environment||(typeof window!=="undefined"?window:undefined);try{canUseActiveElement=!!(typeof env!=="undefined"&&env.document&&env.document.activeElement)}catch(e){canUseActiveElement=false}}const defaultProps={className:"react-tabs",focus:false};const propTypes={children:childrenPropType};const UncontrolledTabs=props=>{(0,prop_types.checkPropTypes)(propTypes,props,"prop","UncontrolledTabs");let tabNodes=(0,external_react_.useRef)([]);let tabIds=(0,external_react_.useRef)([]);const ref=(0,external_react_.useRef)();function setSelected(index,event){if(index<0||index>=getTabsCount())return;const{onSelect,selectedIndex}=props;onSelect(index,selectedIndex,event)}function getNextTab(index){const count=getTabsCount();for(let i=index+1;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}for(let i=0;i<index;i++){if(!isTabDisabled(getTab(i))){return i}}return index}function getPrevTab(index){let i=index;while(i--){if(!isTabDisabled(getTab(i))){return i}}i=getTabsCount();while(i-->index){if(!isTabDisabled(getTab(i))){return i}}return index}function getFirstTab(){const count=getTabsCount();for(let i=0;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}return null}function getLastTab(){let i=getTabsCount();while(i--){if(!isTabDisabled(getTab(i))){return i}}return null}function getTabsCount(){const{children}=props;return count_getTabsCount(children)}function getTab(index){return tabNodes.current[`tabs-${index}`]}function getChildren(){let index=0;const{children,disabledTabClassName,focus,forceRenderTabPanel,selectedIndex,selectedTabClassName,selectedTabPanelClassName,environment}=props;tabIds.current=tabIds.current||[];let diff=tabIds.current.length-getTabsCount();const id=(0,external_react_.useId)();while(diff++<0){tabIds.current.push(`${id}${tabIds.current.length}`)}return deepMap(children,child=>{let result=child;if(isTabList(child)){let listIndex=0;let wasTabFocused=false;if(canUseActiveElement==null){determineCanUseActiveElement(environment)}const env=environment||(typeof window!=="undefined"?window:undefined);if(canUseActiveElement&&env){wasTabFocused=
|
|
356891
|
+
function isNode(node){return node&&"getAttribute"in node}function isTabNode(node){return isNode(node)&&node.getAttribute("data-rttab")}function isTabDisabled(node){return isNode(node)&&node.getAttribute("aria-disabled")==="true"}let canUseActiveElement;function determineCanUseActiveElement(environment){const env=environment||(typeof window!=="undefined"?window:undefined);try{canUseActiveElement=!!(typeof env!=="undefined"&&env.document&&env.document.activeElement)}catch(e){canUseActiveElement=false}}const defaultProps={className:"react-tabs",focus:false};const propTypes={children:childrenPropType};const UncontrolledTabs=props=>{(0,prop_types.checkPropTypes)(propTypes,props,"prop","UncontrolledTabs");let tabNodes=(0,external_react_.useRef)([]);let tabIds=(0,external_react_.useRef)([]);const ref=(0,external_react_.useRef)();function setSelected(index,event){if(index<0||index>=getTabsCount())return;const{onSelect,selectedIndex}=props;onSelect(index,selectedIndex,event)}function getNextTab(index){const count=getTabsCount();for(let i=index+1;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}for(let i=0;i<index;i++){if(!isTabDisabled(getTab(i))){return i}}return index}function getPrevTab(index){let i=index;while(i--){if(!isTabDisabled(getTab(i))){return i}}i=getTabsCount();while(i-->index){if(!isTabDisabled(getTab(i))){return i}}return index}function getFirstTab(){const count=getTabsCount();for(let i=0;i<count;i++){if(!isTabDisabled(getTab(i))){return i}}return null}function getLastTab(){let i=getTabsCount();while(i--){if(!isTabDisabled(getTab(i))){return i}}return null}function getTabsCount(){const{children}=props;return count_getTabsCount(children)}function getTab(index){return tabNodes.current[`tabs-${index}`]}function getChildren(){let index=0;const{children,disabledTabClassName,focus,forceRenderTabPanel,selectedIndex,selectedTabClassName,selectedTabPanelClassName,environment}=props;tabIds.current=tabIds.current||[];let diff=tabIds.current.length-getTabsCount();const id=(0,external_react_.useId)();while(diff++<0){tabIds.current.push(`${id}${tabIds.current.length}`)}return deepMap(children,child=>{let result=child;if(isTabList(child)){let listIndex=0;let wasTabFocused=false;if(canUseActiveElement==null){determineCanUseActiveElement(environment)}const env=environment||(typeof window!=="undefined"?window:undefined);if(canUseActiveElement&&env){wasTabFocused=react_external["default"].Children.toArray(child.props.children).filter(isTab).some((tab,i)=>env.document.activeElement===getTab(i))}result=(0,external_react_.cloneElement)(child,{children:deepMap(child.props.children,tab=>{const key=`tabs-${listIndex}`;const selected=selectedIndex===listIndex;const props={tabRef:node=>{tabNodes.current[key]=node},id:tabIds.current[listIndex],selected,focus:selected&&(focus||wasTabFocused)};if(selectedTabClassName)props.selectedClassName=selectedTabClassName;if(disabledTabClassName)props.disabledClassName=disabledTabClassName;listIndex++;return (0,external_react_.cloneElement)(tab,props)})})}else if(isTabPanel(child)){const props={id:tabIds.current[index],selected:selectedIndex===index};if(forceRenderTabPanel)props.forceRender=forceRenderTabPanel;if(selectedTabPanelClassName)props.selectedClassName=selectedTabPanelClassName;index++;result=(0,external_react_.cloneElement)(child,props)}return result})}function handleKeyDown(e){const{direction,disableUpDownKeys,disableLeftRightKeys}=props;if(isTabFromContainer(e.target)){let{selectedIndex:index}=props;let preventDefault=false;let useSelectedIndex=false;if(e.code==="Space"||e.keyCode===32||e.code==="Enter"||e.keyCode===13){preventDefault=true;useSelectedIndex=false;handleClick(e)}if(!disableLeftRightKeys&&(e.keyCode===37||e.code==="ArrowLeft")||!disableUpDownKeys&&(e.keyCode===38||e.code==="ArrowUp")){if(direction==="rtl"){index=getNextTab(index)}else{index=getPrevTab(index)}preventDefault=true;useSelectedIndex=true}else if(!disableLeftRightKeys&&(e.keyCode===39||e.code==="ArrowRight")||!disableUpDownKeys&&(e.keyCode===40||e.code==="ArrowDown")){if(direction==="rtl"){index=getPrevTab(index)}else{index=getNextTab(index)}preventDefault=true;useSelectedIndex=true}else if(e.keyCode===35||e.code==="End"){index=getLastTab();preventDefault=true;useSelectedIndex=true}else if(e.keyCode===36||e.code==="Home"){index=getFirstTab();preventDefault=true;useSelectedIndex=true}if(preventDefault){e.preventDefault()}if(useSelectedIndex){setSelected(index,e)}}}function handleClick(e){let node=e.target;do{if(isTabFromContainer(node)){if(isTabDisabled(node)){return}const index=[].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);setSelected(index,e);return}}while((node=node.parentNode)!=null)}function isTabFromContainer(node){if(!isTabNode(node)){return false}let nodeAncestor=node.parentElement;do{if(nodeAncestor===ref.current)return true;if(nodeAncestor.getAttribute("data-rttabs"))break;nodeAncestor=nodeAncestor.parentElement}while(nodeAncestor);return false}const{children,className,disabledTabClassName,domRef,focus,forceRenderTabPanel,onSelect,selectedIndex,selectedTabClassName,selectedTabPanelClassName,environment,disableUpDownKeys,disableLeftRightKeys,...attributes}={...defaultProps,...props};return react_external["default"].createElement("div",Object.assign({},attributes,{className:dist_clsx(className),onClick:handleClick,onKeyDown:handleKeyDown,ref:node=>{ref.current=node;if(domRef)domRef(node)},"data-rttabs":true}),getChildren())};/* harmony default export */ const components_UncontrolledTabs = (UncontrolledTabs);
|
|
356880
356892
|
;// ./node_modules/react-tabs/esm/components/Tabs.js
|
|
356881
|
-
const MODE_CONTROLLED=0;const MODE_UNCONTROLLED=1;const Tabs_propTypes={children:childrenPropType,onSelect:onSelectPropType,selectedIndex:selectedIndexPropType};const Tabs_defaultProps={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false};const getModeFromProps=props=>{return props.selectedIndex===null?MODE_UNCONTROLLED:MODE_CONTROLLED};const checkForIllegalModeChange=(props,mode)=>{if(false){}};const Tabs=props=>{(0,prop_types.checkPropTypes)(Tabs_propTypes,props,"prop","Tabs");const{children,defaultFocus,defaultIndex,focusTabOnClick,onSelect,...attributes}={...Tabs_defaultProps,...props};const[focus,setFocus]=(0,external_react_.useState)(defaultFocus);const[mode]=(0,external_react_.useState)(getModeFromProps(attributes));const[selectedIndex,setSelectedIndex]=(0,external_react_.useState)(mode===MODE_UNCONTROLLED?defaultIndex||0:null);(0,external_react_.useEffect)(()=>{setFocus(false)},[]);if(mode===MODE_UNCONTROLLED){const tabsCount=count_getTabsCount(children);(0,external_react_.useEffect)(()=>{if(selectedIndex!=null){const maxTabIndex=Math.max(0,tabsCount-1);setSelectedIndex(Math.min(selectedIndex,maxTabIndex))}},[tabsCount])}checkForIllegalModeChange(attributes,mode);const handleSelected=(index,last,event)=>{if(typeof onSelect==="function"){if(onSelect(index,last,event)===false)return}if(focusTabOnClick){setFocus(true)}if(mode===MODE_UNCONTROLLED){setSelectedIndex(index)}};let subProps={...props,...attributes};subProps.focus=focus;subProps.onSelect=handleSelected;if(selectedIndex!=null){subProps.selectedIndex=selectedIndex}delete subProps.defaultFocus;delete subProps.defaultIndex;delete subProps.focusTabOnClick;return
|
|
356893
|
+
const MODE_CONTROLLED=0;const MODE_UNCONTROLLED=1;const Tabs_propTypes={children:childrenPropType,onSelect:onSelectPropType,selectedIndex:selectedIndexPropType};const Tabs_defaultProps={defaultFocus:false,focusTabOnClick:true,forceRenderTabPanel:false,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:false,disableLeftRightKeys:false};const getModeFromProps=props=>{return props.selectedIndex===null?MODE_UNCONTROLLED:MODE_CONTROLLED};const checkForIllegalModeChange=(props,mode)=>{if(false){}};const Tabs=props=>{(0,prop_types.checkPropTypes)(Tabs_propTypes,props,"prop","Tabs");const{children,defaultFocus,defaultIndex,focusTabOnClick,onSelect,...attributes}={...Tabs_defaultProps,...props};const[focus,setFocus]=(0,external_react_.useState)(defaultFocus);const[mode]=(0,external_react_.useState)(getModeFromProps(attributes));const[selectedIndex,setSelectedIndex]=(0,external_react_.useState)(mode===MODE_UNCONTROLLED?defaultIndex||0:null);(0,external_react_.useEffect)(()=>{setFocus(false)},[]);if(mode===MODE_UNCONTROLLED){const tabsCount=count_getTabsCount(children);(0,external_react_.useEffect)(()=>{if(selectedIndex!=null){const maxTabIndex=Math.max(0,tabsCount-1);setSelectedIndex(Math.min(selectedIndex,maxTabIndex))}},[tabsCount])}checkForIllegalModeChange(attributes,mode);const handleSelected=(index,last,event)=>{if(typeof onSelect==="function"){if(onSelect(index,last,event)===false)return}if(focusTabOnClick){setFocus(true)}if(mode===MODE_UNCONTROLLED){setSelectedIndex(index)}};let subProps={...props,...attributes};subProps.focus=focus;subProps.onSelect=handleSelected;if(selectedIndex!=null){subProps.selectedIndex=selectedIndex}delete subProps.defaultFocus;delete subProps.defaultIndex;delete subProps.focusTabOnClick;return react_external["default"].createElement(components_UncontrolledTabs,subProps,children)};Tabs.tabsRole="Tabs";/* harmony default export */ const components_Tabs = (Tabs);
|
|
356882
356894
|
;// ./node_modules/react-tabs/esm/components/TabList.js
|
|
356883
|
-
const TabList_defaultProps={className:"react-tabs__tab-list"};const TabList=props=>{const{children,className,...attributes}={...TabList_defaultProps,...props};return
|
|
356895
|
+
const TabList_defaultProps={className:"react-tabs__tab-list"};const TabList=props=>{const{children,className,...attributes}={...TabList_defaultProps,...props};return react_external["default"].createElement("ul",Object.assign({},attributes,{className:dist_clsx(className),role:"tablist"}),children)};TabList.tabsRole="TabList";/* harmony default export */ const components_TabList = (TabList);
|
|
356884
356896
|
;// ./node_modules/react-tabs/esm/components/Tab.js
|
|
356885
|
-
const DEFAULT_CLASS="react-tabs__tab";const Tab_defaultProps={className:DEFAULT_CLASS,disabledClassName:`${DEFAULT_CLASS}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${DEFAULT_CLASS}--selected`};const Tab=props=>{let nodeRef=(0,external_react_.useRef)();const{children,className,disabled,disabledClassName,focus,id,selected,selectedClassName,tabIndex,tabRef,...attributes}={...Tab_defaultProps,...props};(0,external_react_.useEffect)(()=>{if(selected&&focus){nodeRef.current.focus()}},[selected,focus]);return
|
|
356897
|
+
const DEFAULT_CLASS="react-tabs__tab";const Tab_defaultProps={className:DEFAULT_CLASS,disabledClassName:`${DEFAULT_CLASS}--disabled`,focus:false,id:null,selected:false,selectedClassName:`${DEFAULT_CLASS}--selected`};const Tab=props=>{let nodeRef=(0,external_react_.useRef)();const{children,className,disabled,disabledClassName,focus,id,selected,selectedClassName,tabIndex,tabRef,...attributes}={...Tab_defaultProps,...props};(0,external_react_.useEffect)(()=>{if(selected&&focus){nodeRef.current.focus()}},[selected,focus]);return react_external["default"].createElement("li",Object.assign({},attributes,{className:dist_clsx(className,{[selectedClassName]:selected,[disabledClassName]:disabled}),ref:node=>{nodeRef.current=node;if(tabRef)tabRef(node)},role:"tab",id:`tab${id}`,"aria-selected":selected?"true":"false","aria-disabled":disabled?"true":"false","aria-controls":`panel${id}`,tabIndex:tabIndex||(selected?"0":null),"data-rttab":true}),children)};Tab.tabsRole="Tab";/* harmony default export */ const components_Tab = (Tab);
|
|
356886
356898
|
;// ./node_modules/react-tabs/esm/components/TabPanel.js
|
|
356887
|
-
const TabPanel_DEFAULT_CLASS="react-tabs__tab-panel";const TabPanel_defaultProps={className:TabPanel_DEFAULT_CLASS,forceRender:false,selectedClassName:`${TabPanel_DEFAULT_CLASS}--selected`};const TabPanel=props=>{const{children,className,forceRender,id,selected,selectedClassName,...attributes}={...TabPanel_defaultProps,...props};return
|
|
356899
|
+
const TabPanel_DEFAULT_CLASS="react-tabs__tab-panel";const TabPanel_defaultProps={className:TabPanel_DEFAULT_CLASS,forceRender:false,selectedClassName:`${TabPanel_DEFAULT_CLASS}--selected`};const TabPanel=props=>{const{children,className,forceRender,id,selected,selectedClassName,...attributes}={...TabPanel_defaultProps,...props};return react_external["default"].createElement("div",Object.assign({},attributes,{className:dist_clsx(className,{[selectedClassName]:selected}),role:"tabpanel",id:`panel${id}`,"aria-labelledby":`tab${id}`}),forceRender||selected?children:null)};TabPanel.tabsRole="TabPanel";/* harmony default export */ const components_TabPanel = (TabPanel);
|
|
356888
356900
|
;// ./node_modules/react-tabs/esm/index.js
|
|
356889
356901
|
|
|
356890
356902
|
|
|
@@ -356894,7 +356906,7 @@ const TabPanel_DEFAULT_CLASS="react-tabs__tab-panel";const TabPanel_defaultProps
|
|
|
356894
356906
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
356895
356907
|
|
|
356896
356908
|
'use client';
|
|
356897
|
-
var e=__webpack_require__(51649),t=__webpack_require__(64976);function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/n(e),s=/*#__PURE__*/n(t);const a=e=>"number"==typeof e&&!isNaN(e),r=e=>"string"==typeof e,i=e=>"function"==typeof e,l=e=>r(e)||i(e)?e:null,c=t=>e.isValidElement(t)||r(t)||i(t)||a(t);function u(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function d(t){let{enter:n,exit:s,appendPosition:a=!1,collapse:r=!0,collapseDuration:i=300}=t;return function(t){let{children:l,position:c,preventExitTransition:d,done:f,nodeRef:p,isIn:m}=t;const g=a?`${n}--${c}`:n,h=a?`${s}--${c}`:s,y=e.useRef(0);return e.useLayoutEffect(()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),e.useEffect(()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),r?u(e,f,i):f()};m||(d?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[m]),o.default.createElement(o.default.Fragment,null,l)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},m=e=>{let{theme:t,type:n,...s}=e;return o.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...s})},g={info:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.default.createElement("div",{className:"Toastify__spinner"})}};function h(t){const[,n]=e.useReducer(e=>e+1,0),[o,s]=e.useState([]),u=e.useRef(null),d=e.useRef(new Map).current,m=e=>-1!==o.indexOf(e),h=e.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:m,getToast:e=>d.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:n}=h.props;!n||t&&h.containerId!==t||(h.count-=h.queue.length,h.queue=[])}function v(e){s(t=>null==e?[]:t.filter(t=>t!==e))}function T(){const{toastContent:e,toastProps:t,staleId:n}=h.queue.shift();C(e,t,n)}function E(t,o){let{delay:s,staleId:m,...y}=o;if(!c(t)||function(e){return!u.current||h.props.enableMultiContainer&&e.containerId!==h.props.containerId||d.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:E,updateId:b,data:I}=y,{props:_}=h,L=()=>v(E),O=null==b;O&&h.count++;const N={..._,style:_.toastStyle,key:h.toastKey++,...Object.fromEntries(Object.entries(y).filter(e=>{let[t,n]=e;return null!=n})),toastId:E,updateId:b,data:I,closeToast:L,isIn:!1,className:l(y.className||_.toastClassName),bodyClassName:l(y.bodyClassName||_.bodyClassName),progressClassName:l(y.progressClassName||_.progressClassName),autoClose:!y.isLoading&&(x=y.autoClose,R=_.autoClose,!1===x||a(x)&&x>0?x:R),deleteToast(){const e=f(d.get(E),"removed");d.delete(E),p.emit(4,e);const t=h.queue.length;if(h.count=null==E?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),t>0){const e=null==E?h.props.limit:1;if(1===t||1===e)h.displayedToast++,T();else{const n=e>t?t:e;h.displayedToast=n;for(let e=0;e<n;e++)T()}}else n()}};var x,R;N.iconOut=function(t){let{theme:n,type:o,isLoading:s,icon:l}=t,c=null;const u={theme:n,type:o};return!1===l||(i(l)?c=l(u):e.isValidElement(l)?c=e.cloneElement(l,u):r(l)||a(l)?c=l:s?c=g.spinner():(e=>e in g)(o)&&(c=g[o](u))),c}(N),i(y.onOpen)&&(N.onOpen=y.onOpen),i(y.onClose)&&(N.onClose=y.onClose),N.closeButton=_.closeButton,!1===y.closeButton||c(y.closeButton)?N.closeButton=y.closeButton:!0===y.closeButton&&(N.closeButton=!c(_.closeButton)||_.closeButton);let w=t;e.isValidElement(t)&&!r(t.type)?w=e.cloneElement(t,{closeToast:L,toastProps:N,data:I}):i(t)&&(w=t({closeToast:L,toastProps:N,data:I})),_.limit&&_.limit>0&&h.count>_.limit&&O?h.queue.push({toastContent:w,toastProps:N,staleId:m}):a(s)?setTimeout(()=>{C(w,N,m)},s):C(w,N,m)}function C(e,t,n){const{toastId:o}=t;n&&d.delete(n);const a={content:e,props:t};d.set(o,a),s(e=>[...e,o].filter(e=>e!==n)),p.emit(4,f(a,null==a.props.updateId?"added":"updated"))}return e.useEffect(()=>(h.containerId=t.containerId,p.cancelEmit(3).on(0,E).on(1,e=>u.current&&v(e)).on(5,y).emit(2,h),()=>{d.clear(),p.emit(3,h)}),[]),e.useEffect(()=>{h.props=t,h.isToastActive=m,h.displayedToast=o.length}),{getToastToRender:function(e){const n=new Map,o=Array.from(d.values());return t.newestOnTop&&o.reverse(),o.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,t=>e(t[0],t[1]))},containerRef:u,isToastActive:m}}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function T(t){const[n,o]=e.useState(!1),[s,a]=e.useState(!1),r=e.useRef(null),l=e.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=e.useRef(t),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:m}=t;function g(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C),document.addEventListener("touchend",b);const n=r.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=y(e.nativeEvent),l.y=v(e.nativeEvent),"x"===t.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function h(e){if(l.boundingRect){const{top:n,bottom:o,left:s,right:a}=l.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&l.x>=s&&l.x<=a&&l.y>=n&&l.y<=o?E():T()}}function T(){o(!0)}function E(){o(!1)}function C(e){const o=r.current;l.canDrag&&o&&(l.didMove=!0,n&&E(),l.x=y(e),l.y=v(e),l.delta="x"===t.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),o.style.transform=`translate${t.draggableDirection}(${l.delta}px)`,o.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function b(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b);const e=r.current;if(l.canDrag&&l.didMove&&e){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return a(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}e.useEffect(()=>{c.current=t}),e.useEffect(()=>(r.current&&r.current.addEventListener("d",T,{once:!0}),i(t.onOpen)&&t.onOpen(e.isValidElement(t.children)&&t.children.props),()=>{const t=c.current;i(t.onClose)&&t.onClose(e.isValidElement(t.children)&&t.children.props)}),[]),e.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||E(),window.addEventListener("focus",T),window.addEventListener("blur",E)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",E))}),[t.pauseOnFocusLoss]);const I={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return u&&d&&(I.onMouseEnter=E,I.onMouseLeave=T),m&&(I.onClick=e=>{p&&p(e),l.canCloseOnClick&&f()}),{playToast:T,pauseToast:E,isRunning:n,preventExitTransition:s,toastRef:r,eventHandlers:I}}function E(e){let{closeToast:t,theme:n,ariaLabel:s="close"}=e;return o.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":s},o.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function C(e){let{delay:t,isRunning:n,closeToast:a,type:r="default",hide:l,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:m,theme:g}=e;const h=l||d&&0===f,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${f})`);const v=s.default("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":p}),T=i(c)?c({rtl:p,type:r,defaultClassName:v}):s.default(v,c);return o.default.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&a()}})}const b=t=>{const{isRunning:n,preventExitTransition:a,toastRef:r,eventHandlers:l}=T(t),{closeButton:c,children:u,autoClose:d,onClick:f,type:p,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:b,bodyClassName:I,bodyStyle:_,progressClassName:L,progressStyle:O,updateId:N,role:x,progress:R,rtl:w,toastId:M,deleteToast:$,isIn:k,isLoading:B,iconOut:P,closeOnClick:D,theme:A}=t,z=s.default("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":D}),F=i(v)?v({rtl:w,position:y,type:p,defaultClassName:z}):s.default(z,v),S=!!R||!d,q={closeToast:g,type:p,theme:A};let H=null;return!1===c||(H=i(c)?c(q):e.isValidElement(c)?e.cloneElement(c,q):E(q)),o.default.createElement(h,{isIn:k,done:$,position:y,preventExitTransition:a,nodeRef:r},o.default.createElement("div",{id:M,onClick:f,className:F,...l,style:b,ref:r},o.default.createElement("div",{...k&&{role:x},className:i(I)?I({type:p}):s.default("Toastify__toast-body",I),style:_},null!=P&&o.default.createElement("div",{className:s.default("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),o.default.createElement("div",null,u)),H,o.default.createElement(C,{...N&&!S?{key:`pb-${N}`}:{},rtl:w,theme:A,delay:d,isRunning:n,isIn:k,closeToast:g,hide:m,type:p,style:O,className:L,controlledProgress:S,progress:R||0})))},I=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_=d(I("bounce",!0)),L=d(I("slide",!0)),O=d(I("zoom")),N=d(I("flip")),x=e.forwardRef((t,n)=>{const{getToastToRender:a,containerRef:r,isToastActive:c}=h(t),{className:u,style:d,rtl:f,containerId:p}=t;function m(e){const t=s.default("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return i(u)?u({position:e,rtl:f,defaultClassName:t}):s.default(t,l(u))}return e.useEffect(()=>{n&&(n.current=r.current)},[]),o.default.createElement("div",{ref:r,className:"Toastify",id:p},a((e,t)=>{const n=t.length?{...d}:{...d,pointerEvents:"none"};return o.default.createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:s,props:a}=e;return o.default.createElement(b,{...a,isIn:c(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},s)}))}))});x.displayName="ToastContainer",x.defaultProps={position:"top-right",transition:_,autoClose:5e3,closeButton:E,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let R,w=new Map,M=[],$=1;function k(){return""+$++}function B(e){return e&&(r(e.toastId)||a(e.toastId))?e.toastId:k()}function P(e,t){return w.size>0?p.emit(0,e,t):M.push({content:e,options:t}),t.toastId}function D(e,t){return{...t,type:t&&t.type||e,toastId:B(t)}}function A(e){return(t,n)=>P(t,D(e,n))}function z(e,t){return P(e,D("default",t))}z.loading=(e,t)=>P(e,D("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),z.promise=function(e,t,n){let o,{pending:s,error:a,success:l}=t;s&&(o=r(s)?z.loading(s,n):z.loading(s.render,{...n,...s}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,s)=>{if(null==t)return void z.dismiss(o);const a={type:e,...c,...n,data:s},i=r(t)?{render:t}:t;return o?z.update(o,{...a,...i}):z(i.render,{...a,...i}),s},d=i(e)?e():e;return d.then(e=>u("success",l,e)).catch(e=>u("error",a,e)),d},z.success=A("success"),z.info=A("info"),z.error=A("error"),z.warning=A("warning"),z.warn=z.warning,z.dark=(e,t)=>P(e,D("default",{theme:"dark",...t})),z.dismiss=e=>{w.size>0?p.emit(1,e):M=M.filter(t=>null!=e&&t.options.toastId!==e)},z.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},z.isActive=e=>{let t=!1;return w.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},z.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const o=w.get(n||R);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:k()};a.toastId!==e&&(a.staleId=e);const r=a.render||s;delete a.render,P(r,a)}},0)},z.done=e=>{z.update(e,{progress:1})},z.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),z.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},z.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,e=>{R=e.containerId||e,w.set(R,e),M.forEach(e=>{p.emit(0,e.content,e.options)}),M=[]}).on(3,e=>{w.delete(e.containerId||e),0===w.size&&p.off(0).off(1).off(5)}),exports.Bounce=_,exports.Flip=N,exports.Icons=g,exports.Slide=L,exports.ToastContainer=x,exports.Zoom=O,exports.collapseToast=u,exports.cssTransition=d,exports.toast=z,exports.useToast=T,exports.useToastContainer=h;
|
|
356909
|
+
var e=__webpack_require__(13327),t=__webpack_require__(64976);function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/n(e),s=/*#__PURE__*/n(t);const a=e=>"number"==typeof e&&!isNaN(e),r=e=>"string"==typeof e,i=e=>"function"==typeof e,l=e=>r(e)||i(e)?e:null,c=t=>e.isValidElement(t)||r(t)||i(t)||a(t);function u(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function d(t){let{enter:n,exit:s,appendPosition:a=!1,collapse:r=!0,collapseDuration:i=300}=t;return function(t){let{children:l,position:c,preventExitTransition:d,done:f,nodeRef:p,isIn:m}=t;const g=a?`${n}--${c}`:n,h=a?`${s}--${c}`:s,y=e.useRef(0);return e.useLayoutEffect(()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),e.useEffect(()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),r?u(e,f,i):f()};m||(d?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))},[m]),o.default.createElement(o.default.Fragment,null,l)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const p={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(e=>e!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},m=e=>{let{theme:t,type:n,...s}=e;return o.default.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...s})},g={info:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return o.default.createElement(m,{...e},o.default.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return o.default.createElement("div",{className:"Toastify__spinner"})}};function h(t){const[,n]=e.useReducer(e=>e+1,0),[o,s]=e.useState([]),u=e.useRef(null),d=e.useRef(new Map).current,m=e=>-1!==o.indexOf(e),h=e.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:m,getToast:e=>d.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:n}=h.props;!n||t&&h.containerId!==t||(h.count-=h.queue.length,h.queue=[])}function v(e){s(t=>null==e?[]:t.filter(t=>t!==e))}function T(){const{toastContent:e,toastProps:t,staleId:n}=h.queue.shift();C(e,t,n)}function E(t,o){let{delay:s,staleId:m,...y}=o;if(!c(t)||function(e){return!u.current||h.props.enableMultiContainer&&e.containerId!==h.props.containerId||d.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:E,updateId:b,data:I}=y,{props:_}=h,L=()=>v(E),O=null==b;O&&h.count++;const N={..._,style:_.toastStyle,key:h.toastKey++,...Object.fromEntries(Object.entries(y).filter(e=>{let[t,n]=e;return null!=n})),toastId:E,updateId:b,data:I,closeToast:L,isIn:!1,className:l(y.className||_.toastClassName),bodyClassName:l(y.bodyClassName||_.bodyClassName),progressClassName:l(y.progressClassName||_.progressClassName),autoClose:!y.isLoading&&(x=y.autoClose,R=_.autoClose,!1===x||a(x)&&x>0?x:R),deleteToast(){const e=f(d.get(E),"removed");d.delete(E),p.emit(4,e);const t=h.queue.length;if(h.count=null==E?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),t>0){const e=null==E?h.props.limit:1;if(1===t||1===e)h.displayedToast++,T();else{const n=e>t?t:e;h.displayedToast=n;for(let e=0;e<n;e++)T()}}else n()}};var x,R;N.iconOut=function(t){let{theme:n,type:o,isLoading:s,icon:l}=t,c=null;const u={theme:n,type:o};return!1===l||(i(l)?c=l(u):e.isValidElement(l)?c=e.cloneElement(l,u):r(l)||a(l)?c=l:s?c=g.spinner():(e=>e in g)(o)&&(c=g[o](u))),c}(N),i(y.onOpen)&&(N.onOpen=y.onOpen),i(y.onClose)&&(N.onClose=y.onClose),N.closeButton=_.closeButton,!1===y.closeButton||c(y.closeButton)?N.closeButton=y.closeButton:!0===y.closeButton&&(N.closeButton=!c(_.closeButton)||_.closeButton);let w=t;e.isValidElement(t)&&!r(t.type)?w=e.cloneElement(t,{closeToast:L,toastProps:N,data:I}):i(t)&&(w=t({closeToast:L,toastProps:N,data:I})),_.limit&&_.limit>0&&h.count>_.limit&&O?h.queue.push({toastContent:w,toastProps:N,staleId:m}):a(s)?setTimeout(()=>{C(w,N,m)},s):C(w,N,m)}function C(e,t,n){const{toastId:o}=t;n&&d.delete(n);const a={content:e,props:t};d.set(o,a),s(e=>[...e,o].filter(e=>e!==n)),p.emit(4,f(a,null==a.props.updateId?"added":"updated"))}return e.useEffect(()=>(h.containerId=t.containerId,p.cancelEmit(3).on(0,E).on(1,e=>u.current&&v(e)).on(5,y).emit(2,h),()=>{d.clear(),p.emit(3,h)}),[]),e.useEffect(()=>{h.props=t,h.isToastActive=m,h.displayedToast=o.length}),{getToastToRender:function(e){const n=new Map,o=Array.from(d.values());return t.newestOnTop&&o.reverse(),o.forEach(e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,t=>e(t[0],t[1]))},containerRef:u,isToastActive:m}}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function T(t){const[n,o]=e.useState(!1),[s,a]=e.useState(!1),r=e.useRef(null),l=e.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=e.useRef(t),{autoClose:u,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:m}=t;function g(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",C),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C),document.addEventListener("touchend",b);const n=r.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=n.getBoundingClientRect(),n.style.transition="",l.x=y(e.nativeEvent),l.y=v(e.nativeEvent),"x"===t.draggableDirection?(l.start=l.x,l.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(l.start=l.y,l.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function h(e){if(l.boundingRect){const{top:n,bottom:o,left:s,right:a}=l.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&l.x>=s&&l.x<=a&&l.y>=n&&l.y<=o?E():T()}}function T(){o(!0)}function E(){o(!1)}function C(e){const o=r.current;l.canDrag&&o&&(l.didMove=!0,n&&E(),l.x=y(e),l.y=v(e),l.delta="x"===t.draggableDirection?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),o.style.transform=`translate${t.draggableDirection}(${l.delta}px)`,o.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function b(){document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b);const e=r.current;if(l.canDrag&&l.didMove&&e){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return a(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}e.useEffect(()=>{c.current=t}),e.useEffect(()=>(r.current&&r.current.addEventListener("d",T,{once:!0}),i(t.onOpen)&&t.onOpen(e.isValidElement(t.children)&&t.children.props),()=>{const t=c.current;i(t.onClose)&&t.onClose(e.isValidElement(t.children)&&t.children.props)}),[]),e.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||E(),window.addEventListener("focus",T),window.addEventListener("blur",E)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",E))}),[t.pauseOnFocusLoss]);const I={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return u&&d&&(I.onMouseEnter=E,I.onMouseLeave=T),m&&(I.onClick=e=>{p&&p(e),l.canCloseOnClick&&f()}),{playToast:T,pauseToast:E,isRunning:n,preventExitTransition:s,toastRef:r,eventHandlers:I}}function E(e){let{closeToast:t,theme:n,ariaLabel:s="close"}=e;return o.default.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":s},o.default.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function C(e){let{delay:t,isRunning:n,closeToast:a,type:r="default",hide:l,className:c,style:u,controlledProgress:d,progress:f,rtl:p,isIn:m,theme:g}=e;const h=l||d&&0===f,y={...u,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${f})`);const v=s.default("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":p}),T=i(c)?c({rtl:p,type:r,defaultClassName:v}):s.default(v,c);return o.default.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{m&&a()}})}const b=t=>{const{isRunning:n,preventExitTransition:a,toastRef:r,eventHandlers:l}=T(t),{closeButton:c,children:u,autoClose:d,onClick:f,type:p,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:b,bodyClassName:I,bodyStyle:_,progressClassName:L,progressStyle:O,updateId:N,role:x,progress:R,rtl:w,toastId:M,deleteToast:$,isIn:k,isLoading:B,iconOut:P,closeOnClick:D,theme:A}=t,z=s.default("Toastify__toast",`Toastify__toast-theme--${A}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":w},{"Toastify__toast--close-on-click":D}),F=i(v)?v({rtl:w,position:y,type:p,defaultClassName:z}):s.default(z,v),S=!!R||!d,q={closeToast:g,type:p,theme:A};let H=null;return!1===c||(H=i(c)?c(q):e.isValidElement(c)?e.cloneElement(c,q):E(q)),o.default.createElement(h,{isIn:k,done:$,position:y,preventExitTransition:a,nodeRef:r},o.default.createElement("div",{id:M,onClick:f,className:F,...l,style:b,ref:r},o.default.createElement("div",{...k&&{role:x},className:i(I)?I({type:p}):s.default("Toastify__toast-body",I),style:_},null!=P&&o.default.createElement("div",{className:s.default("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),o.default.createElement("div",null,u)),H,o.default.createElement(C,{...N&&!S?{key:`pb-${N}`}:{},rtl:w,theme:A,delay:d,isRunning:n,isIn:k,closeToast:g,hide:m,type:p,style:O,className:L,controlledProgress:S,progress:R||0})))},I=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_=d(I("bounce",!0)),L=d(I("slide",!0)),O=d(I("zoom")),N=d(I("flip")),x=e.forwardRef((t,n)=>{const{getToastToRender:a,containerRef:r,isToastActive:c}=h(t),{className:u,style:d,rtl:f,containerId:p}=t;function m(e){const t=s.default("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":f});return i(u)?u({position:e,rtl:f,defaultClassName:t}):s.default(t,l(u))}return e.useEffect(()=>{n&&(n.current=r.current)},[]),o.default.createElement("div",{ref:r,className:"Toastify",id:p},a((e,t)=>{const n=t.length?{...d}:{...d,pointerEvents:"none"};return o.default.createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map((e,n)=>{let{content:s,props:a}=e;return o.default.createElement(b,{...a,isIn:c(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},s)}))}))});x.displayName="ToastContainer",x.defaultProps={position:"top-right",transition:_,autoClose:5e3,closeButton:E,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let R,w=new Map,M=[],$=1;function k(){return""+$++}function B(e){return e&&(r(e.toastId)||a(e.toastId))?e.toastId:k()}function P(e,t){return w.size>0?p.emit(0,e,t):M.push({content:e,options:t}),t.toastId}function D(e,t){return{...t,type:t&&t.type||e,toastId:B(t)}}function A(e){return(t,n)=>P(t,D(e,n))}function z(e,t){return P(e,D("default",t))}z.loading=(e,t)=>P(e,D("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),z.promise=function(e,t,n){let o,{pending:s,error:a,success:l}=t;s&&(o=r(s)?z.loading(s,n):z.loading(s.render,{...n,...s}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,s)=>{if(null==t)return void z.dismiss(o);const a={type:e,...c,...n,data:s},i=r(t)?{render:t}:t;return o?z.update(o,{...a,...i}):z(i.render,{...a,...i}),s},d=i(e)?e():e;return d.then(e=>u("success",l,e)).catch(e=>u("error",a,e)),d},z.success=A("success"),z.info=A("info"),z.error=A("error"),z.warning=A("warning"),z.warn=z.warning,z.dark=(e,t)=>P(e,D("default",{theme:"dark",...t})),z.dismiss=e=>{w.size>0?p.emit(1,e):M=M.filter(t=>null!=e&&t.options.toastId!==e)},z.clearWaitingQueue=function(e){return void 0===e&&(e={}),p.emit(5,e)},z.isActive=e=>{let t=!1;return w.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},z.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{const n=function(e,t){let{containerId:n}=t;const o=w.get(n||R);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:k()};a.toastId!==e&&(a.staleId=e);const r=a.render||s;delete a.render,P(r,a)}},0)},z.done=e=>{z.update(e,{progress:1})},z.onChange=e=>(p.on(4,e),()=>{p.off(4,e)}),z.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},z.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},p.on(2,e=>{R=e.containerId||e,w.set(R,e),M.forEach(e=>{p.emit(0,e.content,e.options)}),M=[]}).on(3,e=>{w.delete(e.containerId||e),0===w.size&&p.off(0).off(1).off(5)}),exports.Bounce=_,exports.Flip=N,exports.Icons=g,exports.Slide=L,exports.ToastContainer=x,exports.Zoom=O,exports.collapseToast=u,exports.cssTransition=d,exports.toast=z,exports.useToast=T,exports.useToastContainer=h;
|
|
356898
356910
|
//# sourceMappingURL=react-toastify.js.map
|
|
356899
356911
|
|
|
356900
356912
|
|
|
@@ -356910,36 +356922,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
356910
356922
|
/* harmony export */ });
|
|
356911
356923
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clsx);
|
|
356912
356924
|
|
|
356913
|
-
/***/ }),
|
|
356914
|
-
|
|
356915
|
-
/***/ 21020:
|
|
356916
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
356917
|
-
|
|
356918
|
-
/**
|
|
356919
|
-
* @license React
|
|
356920
|
-
* react-jsx-runtime.production.min.js
|
|
356921
|
-
*
|
|
356922
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
356923
|
-
*
|
|
356924
|
-
* This source code is licensed under the MIT license found in the
|
|
356925
|
-
* LICENSE file in the root directory of this source tree.
|
|
356926
|
-
*/
|
|
356927
|
-
var f=__webpack_require__(51649),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
356928
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
356929
|
-
|
|
356930
|
-
|
|
356931
|
-
/***/ }),
|
|
356932
|
-
|
|
356933
|
-
/***/ 74848:
|
|
356934
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
356935
|
-
|
|
356936
|
-
|
|
356937
|
-
|
|
356938
|
-
if (true) {
|
|
356939
|
-
module.exports = __webpack_require__(21020);
|
|
356940
|
-
} else {}
|
|
356941
|
-
|
|
356942
|
-
|
|
356943
356925
|
/***/ }),
|
|
356944
356926
|
|
|
356945
356927
|
/***/ 40286:
|
|
@@ -375826,9 +375808,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
375826
375808
|
};
|
|
375827
375809
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
375828
375810
|
exports.TextJamEditor = void 0;
|
|
375829
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
375811
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
375830
375812
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
375831
|
-
const react_1 = __importStar(__webpack_require__(
|
|
375813
|
+
const react_1 = __importStar(__webpack_require__(13327));
|
|
375832
375814
|
const WebComponentLoader_1 = __importDefault(__webpack_require__(17205));
|
|
375833
375815
|
const stores_1 = __webpack_require__(32132);
|
|
375834
375816
|
const react_redux_1 = __webpack_require__(14062);
|
|
@@ -375895,8 +375877,8 @@ exports.TextJamEditor = TextJamEditor;
|
|
|
375895
375877
|
|
|
375896
375878
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
375897
375879
|
exports.AssetPreview = void 0;
|
|
375898
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
375899
|
-
const react_1 = __webpack_require__(
|
|
375880
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
375881
|
+
const react_1 = __webpack_require__(13327);
|
|
375900
375882
|
const binaryStore_1 = __webpack_require__(5060);
|
|
375901
375883
|
const AssetPreview = ({ file }) => {
|
|
375902
375884
|
const [url, setUrl] = (0, react_1.useState)(null);
|
|
@@ -375948,7 +375930,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
375948
375930
|
};
|
|
375949
375931
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
375950
375932
|
exports.AssetPreviewPanel = void 0;
|
|
375951
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
375933
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
375952
375934
|
const styles_module_scss_1 = __importDefault(__webpack_require__(22401));
|
|
375953
375935
|
const AssetPreview_1 = __webpack_require__(91078);
|
|
375954
375936
|
const AssetPreviewPanel = ({ file, }) => {
|
|
@@ -375968,8 +375950,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
375968
375950
|
};
|
|
375969
375951
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
375970
375952
|
exports.CommitHistoryMenu = void 0;
|
|
375971
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
375972
|
-
const react_1 = __webpack_require__(
|
|
375953
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
375954
|
+
const react_1 = __webpack_require__(13327);
|
|
375973
375955
|
const ContextMenu_1 = __importDefault(__webpack_require__(39179));
|
|
375974
375956
|
const MenuCommitElement_1 = __webpack_require__(78281);
|
|
375975
375957
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
@@ -376006,8 +375988,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376006
375988
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376007
375989
|
};
|
|
376008
375990
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376009
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376010
|
-
const react_1 = __webpack_require__(
|
|
375991
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
375992
|
+
const react_1 = __webpack_require__(13327);
|
|
376011
375993
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
376012
375994
|
const history_svg_1 = __importDefault(__webpack_require__(70772));
|
|
376013
375995
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
@@ -376044,7 +376026,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376044
376026
|
};
|
|
376045
376027
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376046
376028
|
exports.CommitHoverElement = void 0;
|
|
376047
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376029
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376048
376030
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
376049
376031
|
const Text_1 = __webpack_require__(82803);
|
|
376050
376032
|
const history_svg_1 = __importDefault(__webpack_require__(70772));
|
|
@@ -376065,7 +376047,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376065
376047
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376066
376048
|
};
|
|
376067
376049
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376068
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376050
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376069
376051
|
const file_saver_1 = __importDefault(__webpack_require__(4213));
|
|
376070
376052
|
const js_convert_case_1 = __webpack_require__(61647);
|
|
376071
376053
|
const download_svg_1 = __importDefault(__webpack_require__(73468));
|
|
@@ -376097,9 +376079,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376097
376079
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376098
376080
|
};
|
|
376099
376081
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376100
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376082
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376101
376083
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
376102
|
-
const react_1 = __webpack_require__(
|
|
376084
|
+
const react_1 = __webpack_require__(13327);
|
|
376103
376085
|
const arrow_right_svg_1 = __importDefault(__webpack_require__(75668));
|
|
376104
376086
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
376105
376087
|
const styles_module_scss_1 = __importDefault(__webpack_require__(66280));
|
|
@@ -376175,9 +376157,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376175
376157
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376176
376158
|
};
|
|
376177
376159
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376178
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376160
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376179
376161
|
const dnd_1 = __webpack_require__(44754);
|
|
376180
|
-
const react_1 = __webpack_require__(
|
|
376162
|
+
const react_1 = __webpack_require__(13327);
|
|
376181
376163
|
const react_responsive_1 = __webpack_require__(17988);
|
|
376182
376164
|
const react_tabs_1 = __webpack_require__(60627);
|
|
376183
376165
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
@@ -376317,7 +376299,7 @@ Object.defineProperty(exports, "useTabFocusRestore", ({ enumerable: true, get: f
|
|
|
376317
376299
|
|
|
376318
376300
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376319
376301
|
exports.useDefaultFileTab = void 0;
|
|
376320
|
-
const react_1 = __webpack_require__(
|
|
376302
|
+
const react_1 = __webpack_require__(13327);
|
|
376321
376303
|
const react_redux_1 = __webpack_require__(14062);
|
|
376322
376304
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
376323
376305
|
const useDefaultFileTab = (justLoaded, defaultFile) => {
|
|
@@ -376340,7 +376322,7 @@ exports.useDefaultFileTab = useDefaultFileTab;
|
|
|
376340
376322
|
|
|
376341
376323
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376342
376324
|
exports.useFileTabActions = void 0;
|
|
376343
|
-
const react_1 = __webpack_require__(
|
|
376325
|
+
const react_1 = __webpack_require__(13327);
|
|
376344
376326
|
const react_redux_1 = __webpack_require__(14062);
|
|
376345
376327
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
376346
376328
|
const tabIndexing_1 = __webpack_require__(57550);
|
|
@@ -376444,7 +376426,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
376444
376426
|
})();
|
|
376445
376427
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376446
376428
|
exports.useFileTabRefs = void 0;
|
|
376447
|
-
const react_1 = __importStar(__webpack_require__(
|
|
376429
|
+
const react_1 = __importStar(__webpack_require__(13327));
|
|
376448
376430
|
const EditorTypes_1 = __webpack_require__(42108);
|
|
376449
376431
|
const useTabFocusRestore_1 = __webpack_require__(2582);
|
|
376450
376432
|
const useFileTabRefs = (projectFiles, unifiedTabs, focussedFileIndex) => {
|
|
@@ -376485,7 +376467,7 @@ exports.useFileTabRefs = useFileTabRefs;
|
|
|
376485
376467
|
|
|
376486
376468
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376487
376469
|
exports.useTabFocusRestore = void 0;
|
|
376488
|
-
const react_1 = __webpack_require__(
|
|
376470
|
+
const react_1 = __webpack_require__(13327);
|
|
376489
376471
|
/**
|
|
376490
376472
|
* Closing a tab removes the focused element, and the browser drops focus to
|
|
376491
376473
|
* <body>. This moves it to the tab that becomes selected so keyboard users are
|
|
@@ -376518,7 +376500,7 @@ exports.useTabFocusRestore = useTabFocusRestore;
|
|
|
376518
376500
|
|
|
376519
376501
|
|
|
376520
376502
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376521
|
-
const react_1 = __webpack_require__(
|
|
376503
|
+
const react_1 = __webpack_require__(13327);
|
|
376522
376504
|
const useTabTooltip = () => {
|
|
376523
376505
|
const [tabTooltip, setTabTooltip] = (0, react_1.useState)(null);
|
|
376524
376506
|
const showTabTooltip = (0, react_1.useCallback)((filePath) => (e) => {
|
|
@@ -376552,7 +376534,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376552
376534
|
};
|
|
376553
376535
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376554
376536
|
exports.EditorStatistic = void 0;
|
|
376555
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376537
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376556
376538
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
376557
376539
|
const checkbox_svg_1 = __importDefault(__webpack_require__(92015));
|
|
376558
376540
|
const styles_module_scss_1 = __importDefault(__webpack_require__(89464));
|
|
@@ -376574,7 +376556,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376574
376556
|
};
|
|
376575
376557
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376576
376558
|
exports.ErrorDetails = void 0;
|
|
376577
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376559
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376578
376560
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
376579
376561
|
const alert_svg_1 = __importDefault(__webpack_require__(49998));
|
|
376580
376562
|
const styles_module_scss_1 = __importDefault(__webpack_require__(71244));
|
|
@@ -376602,10 +376584,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376602
376584
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376603
376585
|
};
|
|
376604
376586
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376605
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376587
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376606
376588
|
const stores_1 = __webpack_require__(32132);
|
|
376607
376589
|
const styles_module_scss_1 = __importDefault(__webpack_require__(71244));
|
|
376608
|
-
const react_1 = __webpack_require__(
|
|
376590
|
+
const react_1 = __webpack_require__(13327);
|
|
376609
376591
|
const ErrorDetails_1 = __webpack_require__(80335);
|
|
376610
376592
|
const ErrorMessage = () => {
|
|
376611
376593
|
const ref = (0, react_1.useRef)(null);
|
|
@@ -376633,7 +376615,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376633
376615
|
};
|
|
376634
376616
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376635
376617
|
exports.NotFoundPage = void 0;
|
|
376636
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376618
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376637
376619
|
const not_found_code_svg_1 = __importDefault(__webpack_require__(36467));
|
|
376638
376620
|
const not_found_svg_1 = __importDefault(__webpack_require__(82281));
|
|
376639
376621
|
const styles_module_scss_1 = __importDefault(__webpack_require__(71244));
|
|
@@ -376654,7 +376636,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376654
376636
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376655
376637
|
};
|
|
376656
376638
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376657
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376639
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376658
376640
|
const useRunnerFactory_1 = __webpack_require__(71274);
|
|
376659
376641
|
const styles_module_scss_1 = __importDefault(__webpack_require__(39412));
|
|
376660
376642
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -376680,8 +376662,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376680
376662
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376681
376663
|
};
|
|
376682
376664
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376683
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376684
|
-
const react_1 = __webpack_require__(
|
|
376665
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376666
|
+
const react_1 = __webpack_require__(13327);
|
|
376685
376667
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
376686
376668
|
const stores_1 = __webpack_require__(32132);
|
|
376687
376669
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
@@ -376716,7 +376698,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376716
376698
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376717
376699
|
};
|
|
376718
376700
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376719
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376701
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376720
376702
|
const disclosure_arrow_svg_1 = __importDefault(__webpack_require__(11684));
|
|
376721
376703
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
376722
376704
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
@@ -376737,7 +376719,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376737
376719
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376738
376720
|
};
|
|
376739
376721
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376740
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376722
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376741
376723
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
376742
376724
|
const ConsoleDisclosureIcon_1 = __importDefault(__webpack_require__(61148));
|
|
376743
376725
|
function ConsoleGroupToggle({ groupId, isCollapsed, onToggle, }) {
|
|
@@ -376759,7 +376741,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376759
376741
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376760
376742
|
};
|
|
376761
376743
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376762
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376744
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376763
376745
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
376764
376746
|
const ConsoleDisclosureIcon_1 = __importDefault(__webpack_require__(61148));
|
|
376765
376747
|
const VOID_ELEMENTS = new Set([
|
|
@@ -376815,11 +376797,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376815
376797
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376816
376798
|
};
|
|
376817
376799
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376818
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376800
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376819
376801
|
const alert_svg_1 = __importDefault(__webpack_require__(49998));
|
|
376820
376802
|
const alertTriangle_svg_1 = __importDefault(__webpack_require__(75414));
|
|
376821
376803
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
376822
|
-
const react_1 = __webpack_require__(
|
|
376804
|
+
const react_1 = __webpack_require__(13327);
|
|
376823
376805
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
376824
376806
|
const consoleScroll_1 = __webpack_require__(27955);
|
|
376825
376807
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
@@ -376892,7 +376874,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376892
376874
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376893
376875
|
};
|
|
376894
376876
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376895
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376877
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376896
376878
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
376897
376879
|
const ConsoleDisclosureIcon_1 = __importDefault(__webpack_require__(61148));
|
|
376898
376880
|
const DomRenderer_1 = __importDefault(__webpack_require__(52654));
|
|
@@ -376958,7 +376940,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
376958
376940
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
376959
376941
|
};
|
|
376960
376942
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376961
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
376943
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
376962
376944
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
376963
376945
|
function TableRenderer({ table, renderCell }) {
|
|
376964
376946
|
const { columns, rows } = table;
|
|
@@ -376978,7 +376960,7 @@ exports["default"] = TableRenderer;
|
|
|
376978
376960
|
|
|
376979
376961
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
376980
376962
|
exports.useConsoleGroups = void 0;
|
|
376981
|
-
const react_1 = __webpack_require__(
|
|
376963
|
+
const react_1 = __webpack_require__(13327);
|
|
376982
376964
|
const GROUP_INTERACTIVE_ELEMENTS_SELECTOR = "button, details, summary";
|
|
376983
376965
|
const isGroup = (log) => log.method === "group" || log.method === "groupCollapsed";
|
|
376984
376966
|
const getIsCollapsed = (log, toggledGroupIds) => {
|
|
@@ -377988,9 +377970,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
377988
377970
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
377989
377971
|
};
|
|
377990
377972
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
377991
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
377973
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
377992
377974
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
377993
|
-
const react_1 = __webpack_require__(
|
|
377975
|
+
const react_1 = __webpack_require__(13327);
|
|
377994
377976
|
const react_redux_1 = __webpack_require__(14062);
|
|
377995
377977
|
const node_html_parser_1 = __webpack_require__(36192);
|
|
377996
377978
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
@@ -378395,7 +378377,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378395
378377
|
};
|
|
378396
378378
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378397
378379
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
378398
|
-
const react_1 = __webpack_require__(
|
|
378380
|
+
const react_1 = __webpack_require__(13327);
|
|
378399
378381
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
378400
378382
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
378401
378383
|
const IFRAME_ALLOW = `
|
|
@@ -378573,7 +378555,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378573
378555
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
378574
378556
|
};
|
|
378575
378557
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378576
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
378558
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
378577
378559
|
const OutputTabPanel_1 = __webpack_require__(25931);
|
|
378578
378560
|
const ResizableWithHandle_1 = __importDefault(__webpack_require__(32694));
|
|
378579
378561
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -378601,7 +378583,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378601
378583
|
};
|
|
378602
378584
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378603
378585
|
exports.OutputTabPanel = void 0;
|
|
378604
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
378586
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
378605
378587
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
378606
378588
|
const react_tabs_1 = __webpack_require__(60627);
|
|
378607
378589
|
const Text_1 = __webpack_require__(82803);
|
|
@@ -378632,8 +378614,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378632
378614
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
378633
378615
|
};
|
|
378634
378616
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378635
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
378636
|
-
const react_1 = __webpack_require__(
|
|
378617
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
378618
|
+
const react_1 = __webpack_require__(13327);
|
|
378637
378619
|
const highcharts_1 = __importDefault(__webpack_require__(14783));
|
|
378638
378620
|
const plotly_js_1 = __importDefault(__webpack_require__(28850));
|
|
378639
378621
|
const styles_module_scss_1 = __importDefault(__webpack_require__(12914));
|
|
@@ -378735,7 +378717,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378735
378717
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
378736
378718
|
};
|
|
378737
378719
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378738
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
378720
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
378739
378721
|
const styles_module_scss_1 = __importDefault(__webpack_require__(38231));
|
|
378740
378722
|
const monitor_svg_1 = __importDefault(__webpack_require__(7558));
|
|
378741
378723
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
@@ -378838,7 +378820,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
378838
378820
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
378839
378821
|
exports.usePyodideRunner = void 0;
|
|
378840
378822
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
378841
|
-
const react_1 = __webpack_require__(
|
|
378823
|
+
const react_1 = __webpack_require__(13327);
|
|
378842
378824
|
const react_redux_1 = __webpack_require__(14062);
|
|
378843
378825
|
const stores_1 = __webpack_require__(32132);
|
|
378844
378826
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
@@ -379333,7 +379315,7 @@ exports.usePyodideRunner = usePyodideRunner;
|
|
|
379333
379315
|
|
|
379334
379316
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
379335
379317
|
exports.usePyodideWorker = void 0;
|
|
379336
|
-
const react_1 = __webpack_require__(
|
|
379318
|
+
const react_1 = __webpack_require__(13327);
|
|
379337
379319
|
const assetUrls_1 = __webpack_require__(85799);
|
|
379338
379320
|
/**
|
|
379339
379321
|
* Owns the lifecycle of the Pyodide Web Worker.
|
|
@@ -379407,7 +379389,7 @@ exports.usePyodideWorker = usePyodideWorker;
|
|
|
379407
379389
|
|
|
379408
379390
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
379409
379391
|
exports.useStdinServiceWorker = void 0;
|
|
379410
|
-
const react_1 = __webpack_require__(
|
|
379392
|
+
const react_1 = __webpack_require__(13327);
|
|
379411
379393
|
const assetUrls_1 = __webpack_require__(85799);
|
|
379412
379394
|
const serviceWorker_1 = __webpack_require__(58158);
|
|
379413
379395
|
/**
|
|
@@ -379991,8 +379973,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
379991
379973
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
379992
379974
|
};
|
|
379993
379975
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
379994
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
379995
|
-
const react_1 = __webpack_require__(
|
|
379976
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
379977
|
+
const react_1 = __webpack_require__(13327);
|
|
379996
379978
|
const react_redux_1 = __webpack_require__(14062);
|
|
379997
379979
|
const console_svg_1 = __importDefault(__webpack_require__(91367));
|
|
379998
379980
|
const preview_svg_1 = __importDefault(__webpack_require__(43408));
|
|
@@ -380063,7 +380045,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380063
380045
|
};
|
|
380064
380046
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380065
380047
|
exports.useRunnerFactory = void 0;
|
|
380066
|
-
const react_1 = __webpack_require__(
|
|
380048
|
+
const react_1 = __webpack_require__(13327);
|
|
380067
380049
|
const usePythonRunner_1 = __importDefault(__webpack_require__(57845));
|
|
380068
380050
|
const useHtmlRunner_1 = __importDefault(__webpack_require__(67741));
|
|
380069
380051
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
@@ -380090,7 +380072,7 @@ exports.useRunnerFactory = useRunnerFactory;
|
|
|
380090
380072
|
|
|
380091
380073
|
|
|
380092
380074
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380093
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380075
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380094
380076
|
const react_tabs_1 = __webpack_require__(60627);
|
|
380095
380077
|
const dnd_1 = __webpack_require__(44754);
|
|
380096
380078
|
__webpack_require__(44221);
|
|
@@ -380111,7 +380093,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380111
380093
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380112
380094
|
};
|
|
380113
380095
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380114
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380096
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380115
380097
|
const EditorPanel_1 = __importDefault(__webpack_require__(82467));
|
|
380116
380098
|
const ReadOnlyBanner_1 = __importDefault(__webpack_require__(47918));
|
|
380117
380099
|
const FileTabContent = ({ file }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ReadOnlyBanner_1.default, { align: "left" }), (0, jsx_runtime_1.jsx)(EditorPanel_1.default, { file: file })] }));
|
|
@@ -380128,7 +380110,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380128
380110
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380129
380111
|
};
|
|
380130
380112
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380131
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380113
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380132
380114
|
const projectHelpers_1 = __webpack_require__(2610);
|
|
380133
380115
|
const Text_1 = __webpack_require__(82803);
|
|
380134
380116
|
const FileIcon_1 = __importDefault(__webpack_require__(94028));
|
|
@@ -380161,7 +380143,7 @@ exports["default"] = OutputTabContent;
|
|
|
380161
380143
|
|
|
380162
380144
|
|
|
380163
380145
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380164
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380146
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380165
380147
|
const Text_1 = __webpack_require__(82803);
|
|
380166
380148
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
380167
380149
|
const OutputTabHeader = ({ meta }) => ((0, jsx_runtime_1.jsxs)(Text_1.Text, { size: 12, weight: "medium", className: "tabText", children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.SvgIcon, { SvgElement: meta.icon, size: 18 }), meta.label, meta.extraHeaderContent] }));
|
|
@@ -380178,7 +380160,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380178
380160
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380179
380161
|
};
|
|
380180
380162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380181
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380163
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380182
380164
|
const EditorTypes_1 = __webpack_require__(42108);
|
|
380183
380165
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
380184
380166
|
const FileTabContent_1 = __importDefault(__webpack_require__(68036));
|
|
@@ -380205,7 +380187,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380205
380187
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380206
380188
|
};
|
|
380207
380189
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380208
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380190
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380209
380191
|
const EditorTypes_1 = __webpack_require__(42108);
|
|
380210
380192
|
const FileTabHeader_1 = __importDefault(__webpack_require__(72324));
|
|
380211
380193
|
const OutputTabHeader_1 = __importDefault(__webpack_require__(88647));
|
|
@@ -380232,8 +380214,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380232
380214
|
};
|
|
380233
380215
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380234
380216
|
exports.tabKey = void 0;
|
|
380235
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380236
|
-
const react_1 = __webpack_require__(
|
|
380217
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380218
|
+
const react_1 = __webpack_require__(13327);
|
|
380237
380219
|
const react_tabs_1 = __webpack_require__(60627);
|
|
380238
380220
|
const EditorTypes_1 = __webpack_require__(42108);
|
|
380239
380221
|
const TabContent_1 = __importDefault(__webpack_require__(14802));
|
|
@@ -380296,9 +380278,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380296
380278
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380297
380279
|
};
|
|
380298
380280
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380299
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380281
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380300
380282
|
const dnd_1 = __webpack_require__(44754);
|
|
380301
|
-
const react_1 = __webpack_require__(
|
|
380283
|
+
const react_1 = __webpack_require__(13327);
|
|
380302
380284
|
const react_redux_1 = __webpack_require__(14062);
|
|
380303
380285
|
const react_tabs_1 = __webpack_require__(60627);
|
|
380304
380286
|
const Tooltip_1 = __importDefault(__webpack_require__(26982));
|
|
@@ -380391,8 +380373,8 @@ exports["default"] = TabsContainer;
|
|
|
380391
380373
|
|
|
380392
380374
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380393
380375
|
exports.FileImport = void 0;
|
|
380394
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380395
|
-
const react_1 = __webpack_require__(
|
|
380376
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380377
|
+
const react_1 = __webpack_require__(13327);
|
|
380396
380378
|
const react_redux_1 = __webpack_require__(14062);
|
|
380397
380379
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
380398
380380
|
const types_1 = __webpack_require__(92932);
|
|
@@ -380463,7 +380445,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380463
380445
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380464
380446
|
};
|
|
380465
380447
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380466
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380448
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380467
380449
|
const styles_module_scss_1 = __importDefault(__webpack_require__(87295));
|
|
380468
380450
|
const loading_animation_gif_1 = __importDefault(__webpack_require__(73875));
|
|
380469
380451
|
const Loading = ({}) => {
|
|
@@ -380482,7 +380464,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380482
380464
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380483
380465
|
};
|
|
380484
380466
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380485
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380467
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380486
380468
|
const react_menu_1 = __webpack_require__(71231);
|
|
380487
380469
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
380488
380470
|
const styles_module_scss_1 = __importDefault(__webpack_require__(28076));
|
|
@@ -380517,8 +380499,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380517
380499
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380518
380500
|
};
|
|
380519
380501
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380520
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380521
|
-
const react_1 = __webpack_require__(
|
|
380502
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380503
|
+
const react_1 = __webpack_require__(13327);
|
|
380522
380504
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
380523
380505
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
380524
380506
|
const arrow_right_svg_1 = __importDefault(__webpack_require__(75668));
|
|
@@ -380547,7 +380529,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380547
380529
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380548
380530
|
};
|
|
380549
380531
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380550
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380532
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380551
380533
|
const SidebarPanel_1 = __importDefault(__webpack_require__(83617));
|
|
380552
380534
|
const styles_module_scss_1 = __importDefault(__webpack_require__(99016));
|
|
380553
380535
|
const CurriculumPanel = ({ curriculumContent, }) => {
|
|
@@ -380569,7 +380551,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380569
380551
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
380570
380552
|
};
|
|
380571
380553
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380572
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380554
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380573
380555
|
const SidebarPanel_1 = __importDefault(__webpack_require__(83617));
|
|
380574
380556
|
const FileTree_1 = __webpack_require__(88675);
|
|
380575
380557
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -380595,7 +380577,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380595
380577
|
};
|
|
380596
380578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380597
380579
|
exports.EmptyStateMessage = void 0;
|
|
380598
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380580
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380599
380581
|
const open_folder_svg_1 = __importDefault(__webpack_require__(87213));
|
|
380600
380582
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
380601
380583
|
const styles_module_scss_1 = __importDefault(__webpack_require__(10556));
|
|
@@ -380616,7 +380598,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380616
380598
|
};
|
|
380617
380599
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380618
380600
|
exports.FileTreeActions = void 0;
|
|
380619
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380601
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380620
380602
|
const plus_circle_svg_1 = __importDefault(__webpack_require__(7663));
|
|
380621
380603
|
const minus_circle_svg_1 = __importDefault(__webpack_require__(80439));
|
|
380622
380604
|
const add_folder_svg_1 = __importDefault(__webpack_require__(724));
|
|
@@ -380624,7 +380606,7 @@ const add_file_svg_1 = __importDefault(__webpack_require__(96514));
|
|
|
380624
380606
|
const ImportButton_1 = __webpack_require__(67532);
|
|
380625
380607
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
380626
380608
|
const styles_module_scss_1 = __importDefault(__webpack_require__(10556));
|
|
380627
|
-
const react_1 = __webpack_require__(
|
|
380609
|
+
const react_1 = __webpack_require__(13327);
|
|
380628
380610
|
const FileTreeContext_1 = __webpack_require__(5323);
|
|
380629
380611
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
380630
380612
|
const Text_1 = __webpack_require__(82803);
|
|
@@ -380653,7 +380635,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380653
380635
|
};
|
|
380654
380636
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380655
380637
|
exports.BasicItemContent = void 0;
|
|
380656
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380638
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380657
380639
|
const Text_1 = __webpack_require__(82803);
|
|
380658
380640
|
const ItemEdit_1 = __webpack_require__(61576);
|
|
380659
380641
|
const ItemIcon_1 = __webpack_require__(3427);
|
|
@@ -380692,7 +380674,7 @@ exports.BasicItemContent = BasicItemContent;
|
|
|
380692
380674
|
|
|
380693
380675
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380694
380676
|
exports.FileItem = void 0;
|
|
380695
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380677
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380696
380678
|
const BasicItemContent_1 = __webpack_require__(34071);
|
|
380697
380679
|
const ItemContextMenu_1 = __webpack_require__(54035);
|
|
380698
380680
|
const FileItem = ({ item, onOpenMenu, isContextMenuOpen, contextMenuPosition, onCloseContextMenu, triggerRef, }) => {
|
|
@@ -380712,7 +380694,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380712
380694
|
};
|
|
380713
380695
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380714
380696
|
exports.FolderItem = void 0;
|
|
380715
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380697
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380716
380698
|
const FileImport_1 = __webpack_require__(23079);
|
|
380717
380699
|
const arrow_right_svg_1 = __importDefault(__webpack_require__(75668));
|
|
380718
380700
|
const ItemContextMenu_1 = __webpack_require__(54035);
|
|
@@ -380739,7 +380721,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380739
380721
|
};
|
|
380740
380722
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380741
380723
|
exports.DeleteOption = void 0;
|
|
380742
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380724
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380743
380725
|
const styles_module_scss_1 = __importDefault(__webpack_require__(52160));
|
|
380744
380726
|
const DeleteOption = () => {
|
|
380745
380727
|
return (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.textDelete, children: "Delete" });
|
|
@@ -380755,7 +380737,7 @@ exports.DeleteOption = DeleteOption;
|
|
|
380755
380737
|
|
|
380756
380738
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380757
380739
|
exports.OptionIcon = void 0;
|
|
380758
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380740
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380759
380741
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
380760
380742
|
const OptionIcon = ({ icon, }) => (0, jsx_runtime_1.jsx)(SvgIcon_1.SvgIcon, { SvgElement: icon, size: 18 });
|
|
380761
380743
|
exports.OptionIcon = OptionIcon;
|
|
@@ -380772,7 +380754,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380772
380754
|
};
|
|
380773
380755
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380774
380756
|
exports.ItemContextMenu = void 0;
|
|
380775
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380757
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380776
380758
|
const ContextMenu_1 = __importDefault(__webpack_require__(39179));
|
|
380777
380759
|
const add_file_svg_1 = __importDefault(__webpack_require__(96514));
|
|
380778
380760
|
const add_folder_svg_1 = __importDefault(__webpack_require__(724));
|
|
@@ -380780,7 +380762,7 @@ const edit_svg_1 = __importDefault(__webpack_require__(4912));
|
|
|
380780
380762
|
const upload_file_svg_1 = __importDefault(__webpack_require__(77016));
|
|
380781
380763
|
const download_svg_1 = __importDefault(__webpack_require__(73468));
|
|
380782
380764
|
const trash_svg_1 = __importDefault(__webpack_require__(29994));
|
|
380783
|
-
const react_1 = __webpack_require__(
|
|
380765
|
+
const react_1 = __webpack_require__(13327);
|
|
380784
380766
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
380785
380767
|
const FileTreeContext_1 = __webpack_require__(5323);
|
|
380786
380768
|
const OptionIcon_1 = __webpack_require__(18907);
|
|
@@ -380890,8 +380872,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380890
380872
|
};
|
|
380891
380873
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380892
380874
|
exports.ItemEdit = void 0;
|
|
380893
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380894
|
-
const react_1 = __webpack_require__(
|
|
380875
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380876
|
+
const react_1 = __webpack_require__(13327);
|
|
380895
380877
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
380896
380878
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
380897
380879
|
const styles_module_scss_1 = __importDefault(__webpack_require__(10614));
|
|
@@ -380959,7 +380941,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380959
380941
|
};
|
|
380960
380942
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380961
380943
|
exports.ItemIcon = void 0;
|
|
380962
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380944
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380963
380945
|
const FileIcon_1 = __importDefault(__webpack_require__(94028));
|
|
380964
380946
|
const folder_svg_1 = __importDefault(__webpack_require__(5472));
|
|
380965
380947
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
@@ -380984,11 +380966,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
380984
380966
|
};
|
|
380985
380967
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
380986
380968
|
exports.FileTreeItem = void 0;
|
|
380987
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
380969
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
380988
380970
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
380989
380971
|
const styles_module_scss_1 = __importDefault(__webpack_require__(10614));
|
|
380990
380972
|
const treeGuides_1 = __webpack_require__(35258);
|
|
380991
|
-
const react_1 = __webpack_require__(
|
|
380973
|
+
const react_1 = __webpack_require__(13327);
|
|
380992
380974
|
const FileTreeContext_1 = __webpack_require__(5323);
|
|
380993
380975
|
const FolderItem_1 = __webpack_require__(33348);
|
|
380994
380976
|
const FileItem_1 = __webpack_require__(19010);
|
|
@@ -381042,7 +381024,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381042
381024
|
};
|
|
381043
381025
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381044
381026
|
exports.ImportButton = void 0;
|
|
381045
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381027
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381046
381028
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
381047
381029
|
const upload_svg_1 = __importDefault(__webpack_require__(25263));
|
|
381048
381030
|
const upload_file_svg_1 = __importDefault(__webpack_require__(77016));
|
|
@@ -381081,7 +381063,7 @@ exports.ImportButton = ImportButton;
|
|
|
381081
381063
|
|
|
381082
381064
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381083
381065
|
exports.TreeContext = void 0;
|
|
381084
|
-
const react_1 = __webpack_require__(
|
|
381066
|
+
const react_1 = __webpack_require__(13327);
|
|
381085
381067
|
exports.TreeContext = (0, react_1.createContext)({});
|
|
381086
381068
|
|
|
381087
381069
|
|
|
@@ -381153,7 +381135,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
381153
381135
|
exports.useFileTree = void 0;
|
|
381154
381136
|
const core_1 = __webpack_require__(96988);
|
|
381155
381137
|
const react_1 = __webpack_require__(85436);
|
|
381156
|
-
const react_2 = __webpack_require__(
|
|
381138
|
+
const react_2 = __webpack_require__(13327);
|
|
381157
381139
|
const ProjectTypes_1 = __webpack_require__(27130);
|
|
381158
381140
|
const projectHelpers_1 = __webpack_require__(2610);
|
|
381159
381141
|
const stub = (id) => ({
|
|
@@ -381279,7 +381261,7 @@ exports.useFileTree = useFileTree;
|
|
|
381279
381261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381280
381262
|
exports.useFileTreeActions = void 0;
|
|
381281
381263
|
const react_redux_1 = __webpack_require__(14062);
|
|
381282
|
-
const react_1 = __webpack_require__(
|
|
381264
|
+
const react_1 = __webpack_require__(13327);
|
|
381283
381265
|
const useFileTree_1 = __webpack_require__(75383);
|
|
381284
381266
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
381285
381267
|
const EditorTypes_1 = __webpack_require__(42108);
|
|
@@ -381464,9 +381446,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381464
381446
|
};
|
|
381465
381447
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381466
381448
|
exports.FileTree = void 0;
|
|
381467
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381449
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381468
381450
|
const FileTreeItem_1 = __webpack_require__(8153);
|
|
381469
|
-
const react_1 = __webpack_require__(
|
|
381451
|
+
const react_1 = __webpack_require__(13327);
|
|
381470
381452
|
const FileTreeActions_1 = __webpack_require__(42884);
|
|
381471
381453
|
const styles_module_scss_1 = __importDefault(__webpack_require__(10556));
|
|
381472
381454
|
const useFileTreeActions_1 = __webpack_require__(98028);
|
|
@@ -381526,8 +381508,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381526
381508
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381527
381509
|
};
|
|
381528
381510
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381529
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381530
|
-
const react_1 = __webpack_require__(
|
|
381511
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381512
|
+
const react_1 = __webpack_require__(13327);
|
|
381531
381513
|
const stores_1 = __webpack_require__(32132);
|
|
381532
381514
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
381533
381515
|
const FilePanel_1 = __importDefault(__webpack_require__(7802));
|
|
@@ -381649,7 +381631,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381649
381631
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381650
381632
|
};
|
|
381651
381633
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381652
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381634
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381653
381635
|
const styles_module_scss_1 = __importDefault(__webpack_require__(21852));
|
|
381654
381636
|
const SidebarBarOption_1 = __importDefault(__webpack_require__(19371));
|
|
381655
381637
|
const SidebarBar = (props) => {
|
|
@@ -381671,10 +381653,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381671
381653
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381672
381654
|
};
|
|
381673
381655
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381674
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381656
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381675
381657
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
381676
381658
|
const Tooltip_1 = __importDefault(__webpack_require__(26982));
|
|
381677
|
-
const react_1 = __webpack_require__(
|
|
381659
|
+
const react_1 = __webpack_require__(13327);
|
|
381678
381660
|
const stores_1 = __webpack_require__(32132);
|
|
381679
381661
|
const useHover_1 = __webpack_require__(78556);
|
|
381680
381662
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
@@ -381740,8 +381722,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381740
381722
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381741
381723
|
};
|
|
381742
381724
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381743
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381744
|
-
const react_1 = __webpack_require__(
|
|
381725
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381726
|
+
const react_1 = __webpack_require__(13327);
|
|
381745
381727
|
const ResizableWithHandle_1 = __importDefault(__webpack_require__(32694));
|
|
381746
381728
|
const styles_module_scss_1 = __importDefault(__webpack_require__(21852));
|
|
381747
381729
|
const PANEL_FRACTION = 0.33;
|
|
@@ -381793,7 +381775,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381793
381775
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381794
381776
|
};
|
|
381795
381777
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381796
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381778
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381797
381779
|
const ContextMenu_1 = __importDefault(__webpack_require__(39179));
|
|
381798
381780
|
const AuthContext_1 = __webpack_require__(55471);
|
|
381799
381781
|
const UserMenu = (props) => {
|
|
@@ -381824,7 +381806,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381824
381806
|
};
|
|
381825
381807
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381826
381808
|
exports.BaseModal = void 0;
|
|
381827
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381809
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381828
381810
|
const react_modal_1 = __importDefault(__webpack_require__(20312));
|
|
381829
381811
|
const info_svg_1 = __importDefault(__webpack_require__(54312));
|
|
381830
381812
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
@@ -381848,7 +381830,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381848
381830
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381849
381831
|
};
|
|
381850
381832
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381851
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381833
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381852
381834
|
const styles_module_scss_1 = __importDefault(__webpack_require__(29642));
|
|
381853
381835
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
381854
381836
|
const types_1 = __webpack_require__(92932);
|
|
@@ -381859,7 +381841,7 @@ const Button_1 = __importDefault(__webpack_require__(79428));
|
|
|
381859
381841
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
381860
381842
|
const stores_1 = __webpack_require__(32132);
|
|
381861
381843
|
const selectors_1 = __webpack_require__(43551);
|
|
381862
|
-
const react_1 = __webpack_require__(
|
|
381844
|
+
const react_1 = __webpack_require__(13327);
|
|
381863
381845
|
const SpinnerDotted_1 = __webpack_require__(79458);
|
|
381864
381846
|
const Text_1 = __webpack_require__(82803);
|
|
381865
381847
|
const ProjectHistoryModal = () => {
|
|
@@ -381920,7 +381902,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381920
381902
|
};
|
|
381921
381903
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381922
381904
|
exports.SaveBeforeLeaveModal = void 0;
|
|
381923
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381905
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381924
381906
|
const react_redux_1 = __webpack_require__(14062);
|
|
381925
381907
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
381926
381908
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -381982,7 +381964,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
381982
381964
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
381983
381965
|
};
|
|
381984
381966
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
381985
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
381967
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
381986
381968
|
const styles_module_scss_1 = __importDefault(__webpack_require__(27924));
|
|
381987
381969
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
381988
381970
|
const types_1 = __webpack_require__(92932);
|
|
@@ -382039,7 +382021,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382039
382021
|
};
|
|
382040
382022
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382041
382023
|
exports.ModalTypeToComponentMap = void 0;
|
|
382042
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382024
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382043
382025
|
const types_1 = __webpack_require__(92932);
|
|
382044
382026
|
const ShareProjectModal_1 = __importDefault(__webpack_require__(38876));
|
|
382045
382027
|
const ProjectHistoryModal_1 = __importDefault(__webpack_require__(39345));
|
|
@@ -382071,7 +382053,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382071
382053
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382072
382054
|
};
|
|
382073
382055
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382074
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382056
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382075
382057
|
const no_project_svg_1 = __importDefault(__webpack_require__(56058));
|
|
382076
382058
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
382077
382059
|
const Text_1 = __webpack_require__(82803);
|
|
@@ -382091,7 +382073,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382091
382073
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382092
382074
|
};
|
|
382093
382075
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382094
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382076
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382095
382077
|
const gwc_logo_svg_1 = __importDefault(__webpack_require__(64914));
|
|
382096
382078
|
const text_jam_logo_svg_1 = __importDefault(__webpack_require__(557));
|
|
382097
382079
|
const ProjectName_1 = __importDefault(__webpack_require__(73658));
|
|
@@ -382124,7 +382106,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382124
382106
|
};
|
|
382125
382107
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382126
382108
|
exports.SharedProjectBar = void 0;
|
|
382127
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382109
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382128
382110
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382129
382111
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
382130
382112
|
const SharedProjectName_1 = __importDefault(__webpack_require__(15591));
|
|
@@ -382190,12 +382172,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382190
382172
|
};
|
|
382191
382173
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382192
382174
|
exports.ViewSwitcher = void 0;
|
|
382193
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382175
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382194
382176
|
const layout_2_svg_1 = __importDefault(__webpack_require__(39519));
|
|
382195
382177
|
const layout_3_svg_1 = __importDefault(__webpack_require__(1582));
|
|
382196
382178
|
const layout_svg_1 = __importDefault(__webpack_require__(7606));
|
|
382197
382179
|
const SvgIcon_1 = __webpack_require__(82917);
|
|
382198
|
-
const react_1 = __webpack_require__(
|
|
382180
|
+
const react_1 = __webpack_require__(13327);
|
|
382199
382181
|
const react_redux_1 = __webpack_require__(14062);
|
|
382200
382182
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
382201
382183
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -382226,7 +382208,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382226
382208
|
};
|
|
382227
382209
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382228
382210
|
exports.ViewSwitcherButton = void 0;
|
|
382229
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382211
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382230
382212
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382231
382213
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
382232
382214
|
const Tooltip_1 = __importDefault(__webpack_require__(26982));
|
|
@@ -382249,7 +382231,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382249
382231
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382250
382232
|
};
|
|
382251
382233
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382252
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382234
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382253
382235
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382254
382236
|
const stores_1 = __webpack_require__(32132);
|
|
382255
382237
|
const projectHelpers_1 = __webpack_require__(2610);
|
|
@@ -382278,8 +382260,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382278
382260
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382279
382261
|
};
|
|
382280
382262
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382281
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382282
|
-
const react_1 = __webpack_require__(
|
|
382263
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382264
|
+
const react_1 = __webpack_require__(13327);
|
|
382283
382265
|
const share_svg_1 = __importDefault(__webpack_require__(54621));
|
|
382284
382266
|
const Button_1 = __importDefault(__webpack_require__(79428));
|
|
382285
382267
|
const Tooltip_1 = __importDefault(__webpack_require__(26982));
|
|
@@ -382322,7 +382304,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382322
382304
|
};
|
|
382323
382305
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382324
382306
|
exports.SpinnerDotted = void 0;
|
|
382325
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382307
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382326
382308
|
const styles_module_scss_1 = __importDefault(__webpack_require__(73386));
|
|
382327
382309
|
const DEFAUL_POINT_COUNT = 8;
|
|
382328
382310
|
const SpinnerDotted = ({ pointCount = DEFAUL_POINT_COUNT }) => {
|
|
@@ -382342,10 +382324,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382342
382324
|
};
|
|
382343
382325
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382344
382326
|
exports.Text = void 0;
|
|
382345
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382327
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382346
382328
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382347
382329
|
const styles_module_scss_1 = __importDefault(__webpack_require__(91156));
|
|
382348
|
-
const react_1 = __importDefault(__webpack_require__(
|
|
382330
|
+
const react_1 = __importDefault(__webpack_require__(13327));
|
|
382349
382331
|
// forwardRef so callers (e.g. EditorInput, which scrolls the active tab into
|
|
382350
382332
|
// view) can get the underlying <span>. A plain function component silently
|
|
382351
382333
|
// dropped the ref.
|
|
@@ -382367,7 +382349,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382367
382349
|
};
|
|
382368
382350
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382369
382351
|
exports.ToastItem = void 0;
|
|
382370
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382352
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382371
382353
|
const close_svg_1 = __importDefault(__webpack_require__(93224));
|
|
382372
382354
|
const alert_svg_1 = __importDefault(__webpack_require__(49998));
|
|
382373
382355
|
const circle_check_svg_1 = __importDefault(__webpack_require__(29285));
|
|
@@ -382404,7 +382386,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382404
382386
|
};
|
|
382405
382387
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382406
382388
|
exports.ToastMessagesProvider = void 0;
|
|
382407
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382389
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382408
382390
|
const react_toastify_1 = __webpack_require__(34168);
|
|
382409
382391
|
const styles_module_scss_1 = __importDefault(__webpack_require__(27112));
|
|
382410
382392
|
const ToastMessagesProvider = () => {
|
|
@@ -382454,7 +382436,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382454
382436
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382455
382437
|
};
|
|
382456
382438
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382457
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382439
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382458
382440
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382459
382441
|
const styles_module_scss_1 = __importDefault(__webpack_require__(28188));
|
|
382460
382442
|
const Tooltip = ({ message, visible = false, position = "bottom", strategy = "absolute", size = "default", className, style, }) => {
|
|
@@ -382475,8 +382457,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382475
382457
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382476
382458
|
};
|
|
382477
382459
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382478
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382479
|
-
const react_1 = __webpack_require__(
|
|
382460
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382461
|
+
const react_1 = __webpack_require__(13327);
|
|
382480
382462
|
const marked_1 = __webpack_require__(6709);
|
|
382481
382463
|
const Project_1 = __importDefault(__webpack_require__(26665));
|
|
382482
382464
|
const Output_1 = __importDefault(__webpack_require__(95148));
|
|
@@ -382535,7 +382517,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382535
382517
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382536
382518
|
};
|
|
382537
382519
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382538
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382520
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382539
382521
|
const file_svg_1 = __importDefault(__webpack_require__(20510));
|
|
382540
382522
|
const python_file_svg_1 = __importDefault(__webpack_require__(52175));
|
|
382541
382523
|
const html_file_svg_1 = __importDefault(__webpack_require__(96124));
|
|
@@ -382585,7 +382567,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382585
382567
|
};
|
|
382586
382568
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382587
382569
|
exports.SvgIcon = void 0;
|
|
382588
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382570
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382589
382571
|
const classnames_1 = __importDefault(__webpack_require__(46942));
|
|
382590
382572
|
const styles_module_scss_1 = __importDefault(__webpack_require__(36974));
|
|
382591
382573
|
const SvgIcon = ({ size, SvgElement, className, ...rest }) => {
|
|
@@ -382604,8 +382586,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
382604
382586
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
382605
382587
|
};
|
|
382606
382588
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382607
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382608
|
-
const react_1 = __webpack_require__(
|
|
382589
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382590
|
+
const react_1 = __webpack_require__(13327);
|
|
382609
382591
|
const react_redux_1 = __webpack_require__(14062);
|
|
382610
382592
|
const react_router_dom_1 = __webpack_require__(92648);
|
|
382611
382593
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
@@ -382799,8 +382781,8 @@ exports["default"] = WebComponentLoader;
|
|
|
382799
382781
|
|
|
382800
382782
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
382801
382783
|
exports.useAuthActions = exports.AuthProvider = void 0;
|
|
382802
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
382803
|
-
const react_1 = __webpack_require__(
|
|
382784
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
382785
|
+
const react_1 = __webpack_require__(13327);
|
|
382804
382786
|
const AuthContext = (0, react_1.createContext)(undefined);
|
|
382805
382787
|
const AuthProvider = ({ children, onLogout, onViewProfile, onHome, }) => {
|
|
382806
382788
|
return ((0, jsx_runtime_1.jsx)(AuthContext.Provider, { value: { onLogout, onViewProfile, onHome }, children: children }));
|
|
@@ -383463,7 +383445,7 @@ var __webpack_unused_export__;
|
|
|
383463
383445
|
|
|
383464
383446
|
__webpack_unused_export__ = ({ value: true });
|
|
383465
383447
|
exports.s = void 0;
|
|
383466
|
-
const react_1 = __webpack_require__(
|
|
383448
|
+
const react_1 = __webpack_require__(13327);
|
|
383467
383449
|
const react_redux_1 = __webpack_require__(14062);
|
|
383468
383450
|
const stores_1 = __webpack_require__(32132);
|
|
383469
383451
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
@@ -383501,7 +383483,7 @@ exports.s = useCurriculumDisplayMode;
|
|
|
383501
383483
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383502
383484
|
exports.useHostNotification = void 0;
|
|
383503
383485
|
const sendToast_1 = __webpack_require__(50068);
|
|
383504
|
-
const react_1 = __webpack_require__(
|
|
383486
|
+
const react_1 = __webpack_require__(13327);
|
|
383505
383487
|
const NotificationTypes_1 = __webpack_require__(85421);
|
|
383506
383488
|
/** Shows host messages as the editor's own toasts. No styling options on purpose. */
|
|
383507
383489
|
const useHostNotification = (notification) => {
|
|
@@ -383537,7 +383519,7 @@ exports.useHostNotification = useHostNotification;
|
|
|
383537
383519
|
|
|
383538
383520
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383539
383521
|
exports.useHover = exports.TOOLTIP_SHOW_DELAY_MS = void 0;
|
|
383540
|
-
const react_1 = __webpack_require__(
|
|
383522
|
+
const react_1 = __webpack_require__(13327);
|
|
383541
383523
|
exports.TOOLTIP_SHOW_DELAY_MS = 1000;
|
|
383542
383524
|
const useHover = (delay = 0) => {
|
|
383543
383525
|
const [hovered, setHovered] = (0, react_1.useState)(false);
|
|
@@ -383592,7 +383574,7 @@ exports.useHover = useHover;
|
|
|
383592
383574
|
|
|
383593
383575
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383594
383576
|
exports.useIsMounted = void 0;
|
|
383595
|
-
const react_1 = __webpack_require__(
|
|
383577
|
+
const react_1 = __webpack_require__(13327);
|
|
383596
383578
|
const useIsMounted = () => {
|
|
383597
383579
|
const isMounted = (0, react_1.useRef)(true);
|
|
383598
383580
|
(0, react_1.useEffect)(() => {
|
|
@@ -383617,7 +383599,7 @@ exports.useIsMounted = useIsMounted;
|
|
|
383617
383599
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383618
383600
|
exports.useProject = void 0;
|
|
383619
383601
|
const helpers_1 = __webpack_require__(59578);
|
|
383620
|
-
const react_1 = __webpack_require__(
|
|
383602
|
+
const react_1 = __webpack_require__(13327);
|
|
383621
383603
|
const react_redux_1 = __webpack_require__(14062);
|
|
383622
383604
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
383623
383605
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -383873,7 +383855,7 @@ exports.useProject = useProject;
|
|
|
383873
383855
|
|
|
383874
383856
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383875
383857
|
exports.useProjectCache = void 0;
|
|
383876
|
-
const react_1 = __webpack_require__(
|
|
383858
|
+
const react_1 = __webpack_require__(13327);
|
|
383877
383859
|
const IndexedDb_1 = __webpack_require__(27161);
|
|
383878
383860
|
const useIsMounted_1 = __webpack_require__(76314);
|
|
383879
383861
|
const useProjectCache = (cacheKey) => {
|
|
@@ -383939,7 +383921,7 @@ exports.useProjectCache = useProjectCache;
|
|
|
383939
383921
|
|
|
383940
383922
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
383941
383923
|
exports.useProjectPersistence = void 0;
|
|
383942
|
-
const react_1 = __webpack_require__(
|
|
383924
|
+
const react_1 = __webpack_require__(13327);
|
|
383943
383925
|
const react_redux_1 = __webpack_require__(14062);
|
|
383944
383926
|
const projectHelpers_1 = __webpack_require__(2610);
|
|
383945
383927
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
@@ -384184,7 +384166,7 @@ exports.useProjectPersistence = useProjectPersistence;
|
|
|
384184
384166
|
|
|
384185
384167
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384186
384168
|
exports.useProjectRemix = void 0;
|
|
384187
|
-
const react_1 = __webpack_require__(
|
|
384169
|
+
const react_1 = __webpack_require__(13327);
|
|
384188
384170
|
const react_redux_1 = __webpack_require__(14062);
|
|
384189
384171
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
384190
384172
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -384259,7 +384241,7 @@ exports.useProjectRemix = useProjectRemix;
|
|
|
384259
384241
|
|
|
384260
384242
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384261
384243
|
exports.useProjectStarterCode = void 0;
|
|
384262
|
-
const react_1 = __webpack_require__(
|
|
384244
|
+
const react_1 = __webpack_require__(13327);
|
|
384263
384245
|
const react_redux_1 = __webpack_require__(14062);
|
|
384264
384246
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
384265
384247
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -384371,7 +384353,7 @@ exports.useProjectStarterCode = useProjectStarterCode;
|
|
|
384371
384353
|
|
|
384372
384354
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384373
384355
|
exports.useProjectTabSync = void 0;
|
|
384374
|
-
const react_1 = __webpack_require__(
|
|
384356
|
+
const react_1 = __webpack_require__(13327);
|
|
384375
384357
|
const projectTabSync_1 = __webpack_require__(48235);
|
|
384376
384358
|
const sendToast_1 = __webpack_require__(50068);
|
|
384377
384359
|
const CHANGES_INFO_NOTIFICATION = "Hey! Looks like you made changes in another tab. Refresh to see your updates!";
|
|
@@ -384427,8 +384409,8 @@ exports.useProjectTabSync = useProjectTabSync;
|
|
|
384427
384409
|
|
|
384428
384410
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384429
384411
|
exports.useRevertNotifications = void 0;
|
|
384430
|
-
const jsx_runtime_1 = __webpack_require__(
|
|
384431
|
-
const react_1 = __webpack_require__(
|
|
384412
|
+
const jsx_runtime_1 = __webpack_require__(71178);
|
|
384413
|
+
const react_1 = __webpack_require__(13327);
|
|
384432
384414
|
const react_redux_1 = __webpack_require__(14062);
|
|
384433
384415
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
384434
384416
|
const types_1 = __webpack_require__(92932);
|
|
@@ -384495,7 +384477,7 @@ exports.useRevertNotifications = useRevertNotifications;
|
|
|
384495
384477
|
|
|
384496
384478
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384497
384479
|
exports.useTextjamActiveClass = useTextjamActiveClass;
|
|
384498
|
-
const react_1 = __webpack_require__(
|
|
384480
|
+
const react_1 = __webpack_require__(13327);
|
|
384499
384481
|
/*
|
|
384500
384482
|
Toggles `textjam-active` on <html> for the lifetime of the calling component.
|
|
384501
384483
|
Global rules in index.scss / App.scss are scoped under html.textjam-active,
|
|
@@ -384520,7 +384502,7 @@ function useTextjamActiveClass() {
|
|
|
384520
384502
|
|
|
384521
384503
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
384522
384504
|
exports.useUnsavedDraftResolution = void 0;
|
|
384523
|
-
const react_1 = __webpack_require__(
|
|
384505
|
+
const react_1 = __webpack_require__(13327);
|
|
384524
384506
|
const react_redux_1 = __webpack_require__(14062);
|
|
384525
384507
|
const EditorSlice_1 = __webpack_require__(68512);
|
|
384526
384508
|
const stores_1 = __webpack_require__(32132);
|
|
@@ -394239,6 +394221,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react_redux_87be03b0__;
|
|
|
394239
394221
|
|
|
394240
394222
|
/***/ }),
|
|
394241
394223
|
|
|
394224
|
+
/***/ 71178:
|
|
394225
|
+
/***/ ((module) => {
|
|
394226
|
+
|
|
394227
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__;
|
|
394228
|
+
|
|
394229
|
+
/***/ }),
|
|
394230
|
+
|
|
394242
394231
|
/***/ 63779:
|
|
394243
394232
|
/***/ (() => {
|
|
394244
394233
|
|
|
@@ -404418,8 +404407,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
404418
404407
|
|
|
404419
404408
|
// EXTERNAL MODULE: external "react"
|
|
404420
404409
|
var external_react_ = __webpack_require__(51649);
|
|
404421
|
-
// EXTERNAL MODULE:
|
|
404422
|
-
var
|
|
404410
|
+
// EXTERNAL MODULE: external "react/jsx-runtime"
|
|
404411
|
+
var jsx_runtime_ = __webpack_require__(71178);
|
|
404423
404412
|
// EXTERNAL MODULE: external "react-dom"
|
|
404424
404413
|
var external_react_dom_ = __webpack_require__(7516);
|
|
404425
404414
|
;// ./node_modules/@szhsin/react-menu/dist/esm/utils/utils.mjs
|
|
@@ -404600,7 +404589,7 @@ const MenuButton = /*#__PURE__*/defineName('MenuButton', /*#__PURE__*/(0,externa
|
|
|
404600
404589
|
const modifiers = (0,external_react_.useMemo)(() => ({
|
|
404601
404590
|
open: isOpen
|
|
404602
404591
|
}), [isOpen]);
|
|
404603
|
-
return /*#__PURE__*/(0,
|
|
404592
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("button", {
|
|
404604
404593
|
"aria-haspopup": true,
|
|
404605
404594
|
"aria-expanded": isOpen,
|
|
404606
404595
|
"aria-disabled": disabled || undefined,
|
|
@@ -404656,7 +404645,7 @@ const MenuContainer = ({
|
|
|
404656
404645
|
});
|
|
404657
404646
|
}
|
|
404658
404647
|
};
|
|
404659
|
-
return /*#__PURE__*/(0,
|
|
404648
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
404660
404649
|
...mergeProps({
|
|
404661
404650
|
onKeyDown,
|
|
404662
404651
|
onBlur
|
|
@@ -405499,7 +405488,7 @@ const MenuList = ({
|
|
|
405499
405488
|
modifiers: arrowModifiers,
|
|
405500
405489
|
className: arrowProps.className
|
|
405501
405490
|
});
|
|
405502
|
-
const menu = /*#__PURE__*/(0,
|
|
405491
|
+
const menu = /*#__PURE__*/(0,jsx_runtime_.jsxs)("ul", {
|
|
405503
405492
|
role: "menu",
|
|
405504
405493
|
"aria-label": ariaLabel,
|
|
405505
405494
|
...commonProps(isDisabled),
|
|
@@ -405525,7 +405514,7 @@ const MenuList = ({
|
|
|
405525
405514
|
left: menuPosition.x,
|
|
405526
405515
|
top: menuPosition.y
|
|
405527
405516
|
},
|
|
405528
|
-
children: [arrow && /*#__PURE__*/(0,
|
|
405517
|
+
children: [arrow && /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
405529
405518
|
"aria-hidden": true,
|
|
405530
405519
|
...arrowProps,
|
|
405531
405520
|
className: _arrowClassName,
|
|
@@ -405537,18 +405526,18 @@ const MenuList = ({
|
|
|
405537
405526
|
...arrowProps.style
|
|
405538
405527
|
},
|
|
405539
405528
|
ref: arrowRef
|
|
405540
|
-
}), /*#__PURE__*/(0,
|
|
405529
|
+
}), /*#__PURE__*/(0,jsx_runtime_.jsx)(MenuListContext.Provider, {
|
|
405541
405530
|
value: listContext,
|
|
405542
|
-
children: /*#__PURE__*/(0,
|
|
405531
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MenuListItemContext.Provider, {
|
|
405543
405532
|
value: itemContext,
|
|
405544
|
-
children: /*#__PURE__*/(0,
|
|
405533
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(HoverItemContext.Provider, {
|
|
405545
405534
|
value: hoverItem,
|
|
405546
405535
|
children: safeCall(children, modifiers)
|
|
405547
405536
|
})
|
|
405548
405537
|
})
|
|
405549
405538
|
})]
|
|
405550
405539
|
});
|
|
405551
|
-
return containerProps ? /*#__PURE__*/(0,
|
|
405540
|
+
return containerProps ? /*#__PURE__*/(0,jsx_runtime_.jsx)(MenuContainer, {
|
|
405552
405541
|
...containerProps,
|
|
405553
405542
|
isOpen: isOpen,
|
|
405554
405543
|
children: menu
|
|
@@ -405629,11 +405618,11 @@ const ControlledMenu = /*#__PURE__*/(0,external_react_.forwardRef)(function Cont
|
|
|
405629
405618
|
}
|
|
405630
405619
|
}), [onItemClick, onClose]);
|
|
405631
405620
|
if (!state) return null;
|
|
405632
|
-
const menuList = /*#__PURE__*/(0,
|
|
405621
|
+
const menuList = /*#__PURE__*/(0,jsx_runtime_.jsx)(SettingsContext.Provider, {
|
|
405633
405622
|
value: settings,
|
|
405634
|
-
children: /*#__PURE__*/(0,
|
|
405623
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(EventHandlersContext.Provider, {
|
|
405635
405624
|
value: eventHandlers,
|
|
405636
|
-
children: /*#__PURE__*/(0,
|
|
405625
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)(MenuList, {
|
|
405637
405626
|
...restProps,
|
|
405638
405627
|
ariaLabel: ariaLabel || 'Menu',
|
|
405639
405628
|
externalRef: externalRef,
|
|
@@ -405912,8 +405901,8 @@ const Menu = /*#__PURE__*/(0,external_react_.forwardRef)(function Menu({
|
|
|
405912
405901
|
openMenu,
|
|
405913
405902
|
closeMenu: () => toggleMenu(false)
|
|
405914
405903
|
}));
|
|
405915
|
-
return /*#__PURE__*/(0,
|
|
405916
|
-
children: [renderButton, /*#__PURE__*/(0,
|
|
405904
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)(external_react_.Fragment, {
|
|
405905
|
+
children: [renderButton, /*#__PURE__*/(0,jsx_runtime_.jsx)(ControlledMenu, {
|
|
405917
405906
|
...restProps,
|
|
405918
405907
|
...stateProps,
|
|
405919
405908
|
"aria-label": ariaLabel || (typeof button.props.children === 'string' ? button.props.children : 'Menu'),
|
|
@@ -405935,7 +405924,7 @@ const withHovering = (name, WrappedComponent) => {
|
|
|
405935
405924
|
const Component = /*#__PURE__*/(0,external_react_.memo)(WrappedComponent);
|
|
405936
405925
|
const WithHovering = /*#__PURE__*/(0,external_react_.forwardRef)((props, ref) => {
|
|
405937
405926
|
const itemRef = (0,external_react_.useRef)(null);
|
|
405938
|
-
return /*#__PURE__*/(0,
|
|
405927
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(Component, {
|
|
405939
405928
|
...props,
|
|
405940
405929
|
itemRef: itemRef,
|
|
405941
405930
|
externalRef: ref,
|
|
@@ -406142,7 +406131,7 @@ const SubMenu = /*#__PURE__*/withHovering('SubMenu', function SubMenu({
|
|
|
406142
406131
|
onClick: () => openTrigger !== 'none' && openMenu()
|
|
406143
406132
|
}, restItemProps);
|
|
406144
406133
|
const getMenuList = () => {
|
|
406145
|
-
const menuList = /*#__PURE__*/(0,
|
|
406134
|
+
const menuList = /*#__PURE__*/(0,jsx_runtime_.jsx)(MenuList, {
|
|
406146
406135
|
...restProps,
|
|
406147
406136
|
...stateProps,
|
|
406148
406137
|
ariaLabel: ariaLabel || (typeof label === 'string' ? label : 'Submenu'),
|
|
@@ -406155,7 +406144,7 @@ const SubMenu = /*#__PURE__*/withHovering('SubMenu', function SubMenu({
|
|
|
406155
406144
|
const container = rootMenuRef.current;
|
|
406156
406145
|
return isPortal && container ? /*#__PURE__*/(0,external_react_dom_.createPortal)(menuList, container) : menuList;
|
|
406157
406146
|
};
|
|
406158
|
-
return /*#__PURE__*/(0,
|
|
406147
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsxs)("li", {
|
|
406159
406148
|
className: useBEM({
|
|
406160
406149
|
block: menuClass,
|
|
406161
406150
|
element: subMenuClass,
|
|
@@ -406167,7 +406156,7 @@ const SubMenu = /*#__PURE__*/withHovering('SubMenu', function SubMenu({
|
|
|
406167
406156
|
role: roleNone,
|
|
406168
406157
|
ref: containerRef,
|
|
406169
406158
|
onKeyDown: onKeyDownOfRoot,
|
|
406170
|
-
children: [/*#__PURE__*/(0,
|
|
406159
|
+
children: [/*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
406171
406160
|
role: roleMenuitem,
|
|
406172
406161
|
"aria-haspopup": true,
|
|
406173
406162
|
"aria-expanded": isOpen,
|
|
@@ -406331,13 +406320,13 @@ const MenuItem = /*#__PURE__*/withHovering('MenuItem', function MenuItem({
|
|
|
406331
406320
|
}),
|
|
406332
406321
|
children: (0,external_react_.useMemo)(() => safeCall(children, modifiers), [children, modifiers])
|
|
406333
406322
|
};
|
|
406334
|
-
return isAnchor ? /*#__PURE__*/(0,
|
|
406323
|
+
return isAnchor ? /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406335
406324
|
role: roleNone,
|
|
406336
|
-
children: /*#__PURE__*/(0,
|
|
406325
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("a", {
|
|
406337
406326
|
href: href,
|
|
406338
406327
|
...menuItemProps
|
|
406339
406328
|
})
|
|
406340
|
-
}) : /*#__PURE__*/(0,
|
|
406329
|
+
}) : /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406341
406330
|
...menuItemProps
|
|
406342
406331
|
});
|
|
406343
406332
|
});
|
|
@@ -406389,7 +406378,7 @@ const FocusableItem = /*#__PURE__*/withHovering('FocusableItem', function Focusa
|
|
|
406389
406378
|
onPointerLeave: e => onPointerLeave(e, true),
|
|
406390
406379
|
onFocus: setHover
|
|
406391
406380
|
}, restProps);
|
|
406392
|
-
return /*#__PURE__*/(0,
|
|
406381
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406393
406382
|
role: roleMenuitem,
|
|
406394
406383
|
...commonProps(isDisabled),
|
|
406395
406384
|
...mergedProps,
|
|
@@ -406416,7 +406405,7 @@ const MenuDivider = /*#__PURE__*/(0,external_react_.memo)(/*#__PURE__*/(0,extern
|
|
|
406416
406405
|
className,
|
|
406417
406406
|
...restProps
|
|
406418
406407
|
}, externalRef) {
|
|
406419
|
-
return /*#__PURE__*/(0,
|
|
406408
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406420
406409
|
role: "separator",
|
|
406421
406410
|
...restProps,
|
|
406422
406411
|
ref: externalRef,
|
|
@@ -406440,7 +406429,7 @@ const MenuHeader = /*#__PURE__*/(0,external_react_.memo)(/*#__PURE__*/(0,externa
|
|
|
406440
406429
|
className,
|
|
406441
406430
|
...restProps
|
|
406442
406431
|
}, externalRef) {
|
|
406443
|
-
return /*#__PURE__*/(0,
|
|
406432
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406444
406433
|
role: roleNone,
|
|
406445
406434
|
...restProps,
|
|
406446
406435
|
ref: externalRef,
|
|
@@ -406489,7 +406478,7 @@ const MenuGroup = /*#__PURE__*/(0,external_react_.forwardRef)(function MenuGroup
|
|
|
406489
406478
|
useIsomorphicLayoutEffect(() => {
|
|
406490
406479
|
if (overflowStyle) ref.current.scrollTop = 0;
|
|
406491
406480
|
}, [overflowStyle]);
|
|
406492
|
-
return /*#__PURE__*/(0,
|
|
406481
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)("div", {
|
|
406493
406482
|
...restProps,
|
|
406494
406483
|
ref: useCombinedRef(externalRef, ref),
|
|
406495
406484
|
className: useBEM({
|
|
@@ -406525,11 +406514,11 @@ const MenuRadioGroup = /*#__PURE__*/(0,external_react_.forwardRef)(function Menu
|
|
|
406525
406514
|
value,
|
|
406526
406515
|
onRadioChange
|
|
406527
406516
|
}), [name, value, onRadioChange]);
|
|
406528
|
-
return /*#__PURE__*/(0,
|
|
406517
|
+
return /*#__PURE__*/(0,jsx_runtime_.jsx)(RadioGroupContext.Provider, {
|
|
406529
406518
|
value: contextValue,
|
|
406530
|
-
children: /*#__PURE__*/(0,
|
|
406519
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("li", {
|
|
406531
406520
|
role: roleNone,
|
|
406532
|
-
children: /*#__PURE__*/(0,
|
|
406521
|
+
children: /*#__PURE__*/(0,jsx_runtime_.jsx)("ul", {
|
|
406533
406522
|
role: "group",
|
|
406534
406523
|
"aria-label": ariaLabel || name || 'Radio group',
|
|
406535
406524
|
...restProps,
|