@industry-theme/markdown-panels 0.2.9 → 0.2.10
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/panels.bundle.js +293 -391
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/panels.bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React2 from "react";
|
|
3
|
+
import React2__default, { forwardRef, createElement, createContext, useContext, useRef, useImperativeHandle, useEffect, useMemo, useState, useCallback, useLayoutEffect } from "react";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.552.0 - ISC
|
|
@@ -40476,14 +40476,14 @@ var ZoomPanPinch = (
|
|
|
40476
40476
|
return ZoomPanPinch2;
|
|
40477
40477
|
})()
|
|
40478
40478
|
);
|
|
40479
|
-
var Context =
|
|
40479
|
+
var Context = React2__default.createContext(null);
|
|
40480
40480
|
var getContent = function(children2, ctx) {
|
|
40481
40481
|
if (typeof children2 === "function") {
|
|
40482
40482
|
return children2(ctx);
|
|
40483
40483
|
}
|
|
40484
40484
|
return children2;
|
|
40485
40485
|
};
|
|
40486
|
-
var TransformWrapper =
|
|
40486
|
+
var TransformWrapper = React2__default.forwardRef(function(props2, ref) {
|
|
40487
40487
|
var instance = useRef(new ZoomPanPinch(props2)).current;
|
|
40488
40488
|
var content2 = getContent(props2.children, getControls(instance));
|
|
40489
40489
|
useImperativeHandle(ref, function() {
|
|
@@ -40492,9 +40492,9 @@ var TransformWrapper = React19__default.forwardRef(function(props2, ref) {
|
|
|
40492
40492
|
useEffect(function() {
|
|
40493
40493
|
instance.update(props2);
|
|
40494
40494
|
}, [instance, props2]);
|
|
40495
|
-
return
|
|
40495
|
+
return React2__default.createElement(Context.Provider, { value: instance }, content2);
|
|
40496
40496
|
});
|
|
40497
|
-
|
|
40497
|
+
React2__default.forwardRef(function(props2, ref) {
|
|
40498
40498
|
var localRef = useRef(null);
|
|
40499
40499
|
var instance = useContext(Context);
|
|
40500
40500
|
useEffect(function() {
|
|
@@ -40506,7 +40506,7 @@ React19__default.forwardRef(function(props2, ref) {
|
|
|
40506
40506
|
}
|
|
40507
40507
|
});
|
|
40508
40508
|
}, [instance]);
|
|
40509
|
-
return
|
|
40509
|
+
return React2__default.createElement("div", __assign({}, props2, { ref: mergeRefs([localRef, ref]) }));
|
|
40510
40510
|
});
|
|
40511
40511
|
function styleInject(css2, ref) {
|
|
40512
40512
|
if (ref === void 0) ref = {};
|
|
@@ -40550,10 +40550,10 @@ var TransformComponent = function(_a) {
|
|
|
40550
40550
|
cleanupWindowEvents === null || cleanupWindowEvents === void 0 ? void 0 : cleanupWindowEvents();
|
|
40551
40551
|
};
|
|
40552
40552
|
}, []);
|
|
40553
|
-
return
|
|
40553
|
+
return React2__default.createElement(
|
|
40554
40554
|
"div",
|
|
40555
40555
|
__assign({}, wrapperProps, { ref: wrapperRef, className: "".concat(baseClasses.wrapperClass, " ").concat(styles.wrapper, " ").concat(wrapperClass), style: wrapperStyle }),
|
|
40556
|
-
|
|
40556
|
+
React2__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
|
|
40557
40557
|
);
|
|
40558
40558
|
};
|
|
40559
40559
|
var terminalTheme = {
|
|
@@ -41220,17 +41220,17 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
|
|
|
41220
41220
|
e.currentTarget.style.backgroundColor = "transparent";
|
|
41221
41221
|
e.currentTarget.style.color = theme2.colors.textSecondary;
|
|
41222
41222
|
};
|
|
41223
|
-
return /* @__PURE__ */
|
|
41223
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41224
41224
|
style: overlayStyle,
|
|
41225
41225
|
onClick: onClose
|
|
41226
|
-
}, /* @__PURE__ */
|
|
41226
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41227
41227
|
style: modalStyle,
|
|
41228
41228
|
onClick: (e) => e.stopPropagation()
|
|
41229
|
-
}, /* @__PURE__ */
|
|
41229
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41230
41230
|
style: headerStyle
|
|
41231
|
-
}, /* @__PURE__ */
|
|
41231
|
+
}, /* @__PURE__ */ React2__default.createElement("h3", {
|
|
41232
41232
|
style: titleStyle
|
|
41233
|
-
}, "HTML Preview"), /* @__PURE__ */
|
|
41233
|
+
}, "HTML Preview"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
41234
41234
|
onClick: (e) => {
|
|
41235
41235
|
e.stopPropagation();
|
|
41236
41236
|
onClose();
|
|
@@ -41240,9 +41240,9 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
|
|
|
41240
41240
|
onMouseLeave: handleCloseButtonLeave,
|
|
41241
41241
|
title: "Close",
|
|
41242
41242
|
"aria-label": "Close modal"
|
|
41243
|
-
}, "×")), /* @__PURE__ */
|
|
41243
|
+
}, "×")), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41244
41244
|
style: contentStyle
|
|
41245
|
-
}, /* @__PURE__ */
|
|
41245
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41246
41246
|
dangerouslySetInnerHTML: { __html: htmlContent }
|
|
41247
41247
|
}))));
|
|
41248
41248
|
}
|
|
@@ -41273,7 +41273,7 @@ function IndustryMermaidDiagram({
|
|
|
41273
41273
|
const [containerElement, setContainerElement] = useState(null);
|
|
41274
41274
|
const [copiedError, setCopiedError] = useState(false);
|
|
41275
41275
|
const observerRef = useRef(null);
|
|
41276
|
-
const containerRef =
|
|
41276
|
+
const containerRef = React2__default.useCallback((node2) => {
|
|
41277
41277
|
setContainerElement(node2);
|
|
41278
41278
|
if (observerRef.current) {
|
|
41279
41279
|
observerRef.current.disconnect();
|
|
@@ -41477,15 +41477,15 @@ ${errorDetails.code}
|
|
|
41477
41477
|
fontFamily: theme2.fonts.body
|
|
41478
41478
|
};
|
|
41479
41479
|
if (isModalMode || isFullSlide) {
|
|
41480
|
-
return /* @__PURE__ */
|
|
41480
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41481
41481
|
ref: containerRef,
|
|
41482
41482
|
style: containerStyle,
|
|
41483
41483
|
className: "mermaid-container"
|
|
41484
|
-
}, !hasRendered && /* @__PURE__ */
|
|
41484
|
+
}, !hasRendered && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41485
41485
|
style: placeholderStyle
|
|
41486
|
-
}, /* @__PURE__ */
|
|
41486
|
+
}, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41487
41487
|
style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
|
|
41488
|
-
}, "Loading...")), errorDetails && /* @__PURE__ */
|
|
41488
|
+
}, "Loading...")), errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41489
41489
|
style: {
|
|
41490
41490
|
padding: theme2.space[4],
|
|
41491
41491
|
background: `${theme2.colors.error}22`,
|
|
@@ -41497,16 +41497,16 @@ ${errorDetails.code}
|
|
|
41497
41497
|
maxWidth: "600px",
|
|
41498
41498
|
margin: "0 auto"
|
|
41499
41499
|
}
|
|
41500
|
-
}, /* @__PURE__ */
|
|
41500
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41501
41501
|
style: {
|
|
41502
41502
|
display: "flex",
|
|
41503
41503
|
justifyContent: "space-between",
|
|
41504
41504
|
alignItems: "flex-start",
|
|
41505
41505
|
marginBottom: theme2.space[2]
|
|
41506
41506
|
}
|
|
41507
|
-
}, /* @__PURE__ */
|
|
41507
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41508
41508
|
style: { fontWeight: theme2.fontWeights.bold }
|
|
41509
|
-
}, "Failed to render Mermaid diagram"), /* @__PURE__ */
|
|
41509
|
+
}, "Failed to render Mermaid diagram"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
41510
41510
|
onClick: handleCopyError,
|
|
41511
41511
|
style: {
|
|
41512
41512
|
padding: theme2.space[1],
|
|
@@ -41523,11 +41523,11 @@ ${errorDetails.code}
|
|
|
41523
41523
|
transition: "all 0.2s ease"
|
|
41524
41524
|
},
|
|
41525
41525
|
title: "Copy error details"
|
|
41526
|
-
}, copiedError ? /* @__PURE__ */
|
|
41526
|
+
}, copiedError ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Check, {
|
|
41527
41527
|
size: 14
|
|
41528
|
-
}), "Copied") : /* @__PURE__ */
|
|
41528
|
+
}), "Copied") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Copy, {
|
|
41529
41529
|
size: 14
|
|
41530
|
-
}), "Copy Error"))), /* @__PURE__ */
|
|
41530
|
+
}), "Copy Error"))), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41531
41531
|
style: {
|
|
41532
41532
|
fontSize: theme2.fontSizes[0],
|
|
41533
41533
|
opacity: 0.8,
|
|
@@ -41536,11 +41536,11 @@ ${errorDetails.code}
|
|
|
41536
41536
|
}
|
|
41537
41537
|
}, errorDetails.message)));
|
|
41538
41538
|
}
|
|
41539
|
-
return /* @__PURE__ */
|
|
41539
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41540
41540
|
style: { position: "relative", width: "100%" }
|
|
41541
|
-
}, /* @__PURE__ */
|
|
41541
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41542
41542
|
style: { position: "relative", width: "100%" }
|
|
41543
|
-
}, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */
|
|
41543
|
+
}, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41544
41544
|
style: {
|
|
41545
41545
|
position: "absolute",
|
|
41546
41546
|
top: theme2.space[2],
|
|
@@ -41549,7 +41549,7 @@ ${errorDetails.code}
|
|
|
41549
41549
|
display: "flex",
|
|
41550
41550
|
gap: theme2.space[1]
|
|
41551
41551
|
}
|
|
41552
|
-
}, /* @__PURE__ */
|
|
41552
|
+
}, /* @__PURE__ */ React2__default.createElement("button", {
|
|
41553
41553
|
onClick: (e) => {
|
|
41554
41554
|
e.stopPropagation();
|
|
41555
41555
|
onExpandClick();
|
|
@@ -41568,17 +41568,17 @@ ${errorDetails.code}
|
|
|
41568
41568
|
height: "28px"
|
|
41569
41569
|
},
|
|
41570
41570
|
title: "View fullscreen"
|
|
41571
|
-
}, /* @__PURE__ */
|
|
41571
|
+
}, /* @__PURE__ */ React2__default.createElement(Expand, {
|
|
41572
41572
|
size: 14
|
|
41573
|
-
}))), /* @__PURE__ */
|
|
41573
|
+
}))), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41574
41574
|
ref: containerRef,
|
|
41575
41575
|
style: containerStyle,
|
|
41576
41576
|
className: "mermaid-container"
|
|
41577
|
-
}, !hasRendered && /* @__PURE__ */
|
|
41577
|
+
}, !hasRendered && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41578
41578
|
style: placeholderStyle
|
|
41579
|
-
}, /* @__PURE__ */
|
|
41579
|
+
}, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41580
41580
|
style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
|
|
41581
|
-
}, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */
|
|
41581
|
+
}, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41582
41582
|
style: {
|
|
41583
41583
|
padding: theme2.space[4],
|
|
41584
41584
|
background: `${theme2.colors.error}22`,
|
|
@@ -41588,16 +41588,16 @@ ${errorDetails.code}
|
|
|
41588
41588
|
fontFamily: theme2.fonts.monospace,
|
|
41589
41589
|
fontSize: theme2.fontSizes[1]
|
|
41590
41590
|
}
|
|
41591
|
-
}, /* @__PURE__ */
|
|
41591
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41592
41592
|
style: {
|
|
41593
41593
|
display: "flex",
|
|
41594
41594
|
justifyContent: "space-between",
|
|
41595
41595
|
alignItems: "flex-start",
|
|
41596
41596
|
marginBottom: theme2.space[2]
|
|
41597
41597
|
}
|
|
41598
|
-
}, /* @__PURE__ */
|
|
41598
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41599
41599
|
style: { fontWeight: theme2.fontWeights.bold }
|
|
41600
|
-
}, "Failed to render Mermaid diagram"), /* @__PURE__ */
|
|
41600
|
+
}, "Failed to render Mermaid diagram"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
41601
41601
|
onClick: handleCopyError,
|
|
41602
41602
|
style: {
|
|
41603
41603
|
padding: theme2.space[1],
|
|
@@ -41614,11 +41614,11 @@ ${errorDetails.code}
|
|
|
41614
41614
|
transition: "all 0.2s ease"
|
|
41615
41615
|
},
|
|
41616
41616
|
title: "Copy error details"
|
|
41617
|
-
}, copiedError ? /* @__PURE__ */
|
|
41617
|
+
}, copiedError ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Check, {
|
|
41618
41618
|
size: 14
|
|
41619
|
-
}), "Copied") : /* @__PURE__ */
|
|
41619
|
+
}), "Copied") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Copy, {
|
|
41620
41620
|
size: 14
|
|
41621
|
-
}), "Copy Error"))), /* @__PURE__ */
|
|
41621
|
+
}), "Copy Error"))), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41622
41622
|
style: {
|
|
41623
41623
|
fontSize: theme2.fontSizes[0],
|
|
41624
41624
|
opacity: 0.8,
|
|
@@ -41702,18 +41702,18 @@ function IndustryLazyMermaidDiagram({
|
|
|
41702
41702
|
};
|
|
41703
41703
|
};
|
|
41704
41704
|
if (!isMounted) {
|
|
41705
|
-
return /* @__PURE__ */
|
|
41705
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41706
41706
|
style: getPlaceholderStyle()
|
|
41707
|
-
}, /* @__PURE__ */
|
|
41707
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41708
41708
|
style: getTextStyle()
|
|
41709
|
-
}, /* @__PURE__ */
|
|
41709
|
+
}, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41710
41710
|
style: getSecondaryTextStyle()
|
|
41711
41711
|
}, "Loading...")));
|
|
41712
41712
|
}
|
|
41713
|
-
return /* @__PURE__ */
|
|
41713
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41714
41714
|
ref: containerRef,
|
|
41715
41715
|
style: { position: "relative", width: "100%" }
|
|
41716
|
-
}, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */
|
|
41716
|
+
}, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */ React2__default.createElement("button", {
|
|
41717
41717
|
onClick: (e) => {
|
|
41718
41718
|
e.stopPropagation();
|
|
41719
41719
|
const titleMatch = code2.match(/^(?:%%\s*(.+)|(\w+)\s)/m);
|
|
@@ -41746,20 +41746,20 @@ function IndustryLazyMermaidDiagram({
|
|
|
41746
41746
|
e.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
41747
41747
|
},
|
|
41748
41748
|
title: "Show in diagram panel"
|
|
41749
|
-
}, /* @__PURE__ */
|
|
41749
|
+
}, /* @__PURE__ */ React2__default.createElement(MoveRight, {
|
|
41750
41750
|
size: 14
|
|
41751
|
-
})), hasRendered ? /* @__PURE__ */
|
|
41751
|
+
})), hasRendered ? /* @__PURE__ */ React2__default.createElement(IndustryMermaidDiagram, {
|
|
41752
41752
|
code: code2,
|
|
41753
41753
|
id,
|
|
41754
41754
|
onCopyError,
|
|
41755
41755
|
onError: setHasError,
|
|
41756
41756
|
theme: theme2,
|
|
41757
41757
|
onExpandClick
|
|
41758
|
-
}) : /* @__PURE__ */
|
|
41758
|
+
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
41759
41759
|
style: getPlaceholderStyle()
|
|
41760
|
-
}, /* @__PURE__ */
|
|
41760
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41761
41761
|
style: getTextStyle()
|
|
41762
|
-
}, /* @__PURE__ */
|
|
41762
|
+
}, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41763
41763
|
style: getSecondaryTextStyle()
|
|
41764
41764
|
}, isIntersecting ? "Loading..." : "Scroll to view"))));
|
|
41765
41765
|
}
|
|
@@ -41770,7 +41770,7 @@ var extractTextFromChildren = (children2) => {
|
|
|
41770
41770
|
if (Array.isArray(children2)) {
|
|
41771
41771
|
return children2.map(extractTextFromChildren).join("");
|
|
41772
41772
|
}
|
|
41773
|
-
if (
|
|
41773
|
+
if (React2__default.isValidElement(children2)) {
|
|
41774
41774
|
const props2 = children2.props;
|
|
41775
41775
|
if (props2.children) {
|
|
41776
41776
|
return extractTextFromChildren(props2.children);
|
|
@@ -41785,7 +41785,7 @@ var LinkWithLoadingIndicator = ({ href, children: children2, onClick, className
|
|
|
41785
41785
|
onClick(href, e);
|
|
41786
41786
|
}
|
|
41787
41787
|
};
|
|
41788
|
-
return /* @__PURE__ */
|
|
41788
|
+
return /* @__PURE__ */ React2__default.createElement("a", {
|
|
41789
41789
|
href,
|
|
41790
41790
|
onClick: handleClick,
|
|
41791
41791
|
className,
|
|
@@ -41871,10 +41871,10 @@ var IndustryBashCommandDropdown = ({
|
|
|
41871
41871
|
});
|
|
41872
41872
|
const hasMultipleCommands = commands.length > 1;
|
|
41873
41873
|
const singleCommand = commands.length === 1 ? commands[0].command : allCommands;
|
|
41874
|
-
return /* @__PURE__ */
|
|
41874
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41875
41875
|
ref: dropdownRef,
|
|
41876
41876
|
style: { position: "relative", display: "inline-block" }
|
|
41877
|
-
}, hasMultipleCommands ? /* @__PURE__ */
|
|
41877
|
+
}, hasMultipleCommands ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("button", {
|
|
41878
41878
|
onClick: () => setIsOpen(!isOpen),
|
|
41879
41879
|
disabled: isRunning,
|
|
41880
41880
|
style: buttonStyle,
|
|
@@ -41888,15 +41888,15 @@ var IndustryBashCommandDropdown = ({
|
|
|
41888
41888
|
e.currentTarget.style.backgroundColor = theme2.colors.primary;
|
|
41889
41889
|
}
|
|
41890
41890
|
}
|
|
41891
|
-
}, isRunning ? /* @__PURE__ */
|
|
41891
|
+
}, isRunning ? /* @__PURE__ */ React2__default.createElement("span", {
|
|
41892
41892
|
style: { fontSize: theme2.fontSizes[1] }
|
|
41893
|
-
}, "...") : /* @__PURE__ */
|
|
41893
|
+
}, "...") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Play, {
|
|
41894
41894
|
size: 14
|
|
41895
|
-
}), "Run", /* @__PURE__ */
|
|
41895
|
+
}), "Run", /* @__PURE__ */ React2__default.createElement(ChevronDown, {
|
|
41896
41896
|
size: 14
|
|
41897
|
-
}))), isOpen && /* @__PURE__ */
|
|
41897
|
+
}))), isOpen && /* @__PURE__ */ React2__default.createElement("div", {
|
|
41898
41898
|
style: dropdownStyle
|
|
41899
|
-
}, /* @__PURE__ */
|
|
41899
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
41900
41900
|
style: {
|
|
41901
41901
|
padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
|
|
41902
41902
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -41905,7 +41905,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
41905
41905
|
color: theme2.colors.textSecondary,
|
|
41906
41906
|
fontFamily: theme2.fonts.body
|
|
41907
41907
|
}
|
|
41908
|
-
}, "Select command to run"), /* @__PURE__ */
|
|
41908
|
+
}, "Select command to run"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
41909
41909
|
style: {
|
|
41910
41910
|
padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
|
|
41911
41911
|
backgroundColor: theme2.colors.muted,
|
|
@@ -41925,7 +41925,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
41925
41925
|
}
|
|
41926
41926
|
}, "🚀 Run all (", commands.length, " commands)"), commands.map((cmd, index2) => {
|
|
41927
41927
|
const [isHovered, setIsHovered] = useState(false);
|
|
41928
|
-
return /* @__PURE__ */
|
|
41928
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
41929
41929
|
key: index2,
|
|
41930
41930
|
style: dropdownItemStyle(isHovered),
|
|
41931
41931
|
onClick: () => handleRunCommand(cmd.command),
|
|
@@ -41933,7 +41933,7 @@ var IndustryBashCommandDropdown = ({
|
|
|
41933
41933
|
onMouseLeave: () => setIsHovered(false),
|
|
41934
41934
|
title: cmd.command
|
|
41935
41935
|
}, getCommandDisplayName(cmd));
|
|
41936
|
-
}))) : /* @__PURE__ */
|
|
41936
|
+
}))) : /* @__PURE__ */ React2__default.createElement("button", {
|
|
41937
41937
|
onClick: () => handleRunCommand(singleCommand),
|
|
41938
41938
|
disabled: isRunning,
|
|
41939
41939
|
style: buttonStyle,
|
|
@@ -41947,9 +41947,9 @@ var IndustryBashCommandDropdown = ({
|
|
|
41947
41947
|
e.currentTarget.style.backgroundColor = theme2.colors.primary;
|
|
41948
41948
|
}
|
|
41949
41949
|
}
|
|
41950
|
-
}, isRunning ? /* @__PURE__ */
|
|
41950
|
+
}, isRunning ? /* @__PURE__ */ React2__default.createElement("span", {
|
|
41951
41951
|
style: { fontSize: theme2.fontSizes[1] }
|
|
41952
|
-
}, "...") : /* @__PURE__ */
|
|
41952
|
+
}, "...") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Play, {
|
|
41953
41953
|
size: 14
|
|
41954
41954
|
}), "Run")));
|
|
41955
41955
|
};
|
|
@@ -41968,7 +41968,7 @@ var isVideoUrl = (url, alt) => {
|
|
|
41968
41968
|
}
|
|
41969
41969
|
return false;
|
|
41970
41970
|
};
|
|
41971
|
-
var OptimizedMarkdownMedia =
|
|
41971
|
+
var OptimizedMarkdownMedia = React2__default.memo(({
|
|
41972
41972
|
src,
|
|
41973
41973
|
alt,
|
|
41974
41974
|
repositoryInfo,
|
|
@@ -42001,7 +42001,7 @@ var OptimizedMarkdownMedia = React19__default.memo(({
|
|
|
42001
42001
|
};
|
|
42002
42002
|
if (isVideoUrl(transformedSrc, alt)) {
|
|
42003
42003
|
if (hasErrored) {
|
|
42004
|
-
return /* @__PURE__ */
|
|
42004
|
+
return /* @__PURE__ */ React2__default.createElement("span", {
|
|
42005
42005
|
style: {
|
|
42006
42006
|
...mediaStyle,
|
|
42007
42007
|
display: "inline-flex",
|
|
@@ -42015,19 +42015,19 @@ var OptimizedMarkdownMedia = React19__default.memo(({
|
|
|
42015
42015
|
}
|
|
42016
42016
|
}, "⚠️ Video failed to load: ", alt || transformedSrc);
|
|
42017
42017
|
}
|
|
42018
|
-
return /* @__PURE__ */
|
|
42018
|
+
return /* @__PURE__ */ React2__default.createElement("video", {
|
|
42019
42019
|
controls: true,
|
|
42020
42020
|
style: mediaStyle,
|
|
42021
42021
|
onLoadedData: handleLoad,
|
|
42022
42022
|
onError: handleError,
|
|
42023
42023
|
title: alt,
|
|
42024
42024
|
...props2
|
|
42025
|
-
}, /* @__PURE__ */
|
|
42025
|
+
}, /* @__PURE__ */ React2__default.createElement("source", {
|
|
42026
42026
|
src: transformedSrc
|
|
42027
|
-
}), /* @__PURE__ */
|
|
42027
|
+
}), /* @__PURE__ */ React2__default.createElement("source", {
|
|
42028
42028
|
src: transformedSrc,
|
|
42029
42029
|
type: "video/mp4"
|
|
42030
|
-
}), /* @__PURE__ */
|
|
42030
|
+
}), /* @__PURE__ */ React2__default.createElement("source", {
|
|
42031
42031
|
src: transformedSrc,
|
|
42032
42032
|
type: "video/webm"
|
|
42033
42033
|
}), "Your browser does not support the video tag.");
|
|
@@ -42039,7 +42039,7 @@ var OptimizedMarkdownMedia = React19__default.memo(({
|
|
|
42039
42039
|
e.stopPropagation();
|
|
42040
42040
|
};
|
|
42041
42041
|
if (hasErrored) {
|
|
42042
|
-
return /* @__PURE__ */
|
|
42042
|
+
return /* @__PURE__ */ React2__default.createElement("span", {
|
|
42043
42043
|
style: {
|
|
42044
42044
|
...mediaStyle,
|
|
42045
42045
|
display: "inline-flex",
|
|
@@ -42055,11 +42055,11 @@ var OptimizedMarkdownMedia = React19__default.memo(({
|
|
|
42055
42055
|
padding: `${theme2.space[2]}px`
|
|
42056
42056
|
},
|
|
42057
42057
|
title: `Failed to load image: ${transformedSrc}`
|
|
42058
|
-
}, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */
|
|
42058
|
+
}, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */ React2__default.createElement("span", {
|
|
42059
42059
|
style: { fontSize: theme2.fontSizes[0], opacity: 0.7 }
|
|
42060
42060
|
}, "(", alt, ")"));
|
|
42061
42061
|
}
|
|
42062
|
-
return /* @__PURE__ */
|
|
42062
|
+
return /* @__PURE__ */ React2__default.createElement("img", {
|
|
42063
42063
|
src: transformedSrc,
|
|
42064
42064
|
alt,
|
|
42065
42065
|
style: mediaStyle,
|
|
@@ -42097,7 +42097,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42097
42097
|
headerStyles.marginTop = `${slideHeaderMarginTopOverride}px`;
|
|
42098
42098
|
}
|
|
42099
42099
|
return {
|
|
42100
|
-
h1: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42100
|
+
h1: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h1", {
|
|
42101
42101
|
style: {
|
|
42102
42102
|
color: theme2.colors.text,
|
|
42103
42103
|
fontSize: theme2.fontSizes[5],
|
|
@@ -42110,7 +42110,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42110
42110
|
},
|
|
42111
42111
|
...props2
|
|
42112
42112
|
}, children2),
|
|
42113
|
-
h2: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42113
|
+
h2: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h2", {
|
|
42114
42114
|
style: {
|
|
42115
42115
|
color: theme2.colors.text,
|
|
42116
42116
|
fontSize: theme2.fontSizes[4],
|
|
@@ -42123,7 +42123,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42123
42123
|
},
|
|
42124
42124
|
...props2
|
|
42125
42125
|
}, children2),
|
|
42126
|
-
h3: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42126
|
+
h3: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h3", {
|
|
42127
42127
|
style: {
|
|
42128
42128
|
color: theme2.colors.text,
|
|
42129
42129
|
fontSize: theme2.fontSizes[3],
|
|
@@ -42135,7 +42135,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42135
42135
|
},
|
|
42136
42136
|
...props2
|
|
42137
42137
|
}, children2),
|
|
42138
|
-
p: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42138
|
+
p: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("p", {
|
|
42139
42139
|
style: {
|
|
42140
42140
|
color: theme2.colors.text,
|
|
42141
42141
|
fontSize: theme2.fontSizes[2],
|
|
@@ -42145,7 +42145,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42145
42145
|
},
|
|
42146
42146
|
...props2
|
|
42147
42147
|
}, children2),
|
|
42148
|
-
ul: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42148
|
+
ul: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("ul", {
|
|
42149
42149
|
style: {
|
|
42150
42150
|
color: theme2.colors.text,
|
|
42151
42151
|
fontSize: theme2.fontSizes[2],
|
|
@@ -42157,7 +42157,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42157
42157
|
},
|
|
42158
42158
|
...props2
|
|
42159
42159
|
}, children2),
|
|
42160
|
-
ol: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42160
|
+
ol: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("ol", {
|
|
42161
42161
|
style: {
|
|
42162
42162
|
color: theme2.colors.text,
|
|
42163
42163
|
fontSize: theme2.fontSizes[2],
|
|
@@ -42171,14 +42171,14 @@ var createIndustryMarkdownComponents = ({
|
|
|
42171
42171
|
}, children2),
|
|
42172
42172
|
li: ({ children: children2, ...props2 }) => {
|
|
42173
42173
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
42174
|
-
const isTaskListItem = Array.isArray(children2) && children2.length > 0 &&
|
|
42174
|
+
const isTaskListItem = Array.isArray(children2) && children2.length > 0 && React2__default.isValidElement(children2[0]) && ((_b = (_a = children2[0]) == null ? void 0 : _a.props) == null ? void 0 : _b.type) === "checkbox";
|
|
42175
42175
|
if (isTaskListItem) {
|
|
42176
42176
|
const checkbox = children2[0];
|
|
42177
42177
|
const remainingChildren = children2.slice(1);
|
|
42178
42178
|
const labelContent = [];
|
|
42179
42179
|
const nestedListElements = [];
|
|
42180
|
-
|
|
42181
|
-
if (
|
|
42180
|
+
React2__default.Children.forEach(remainingChildren, (child) => {
|
|
42181
|
+
if (React2__default.isValidElement(child) && (child.type === "ul" || child.type === "ol")) {
|
|
42182
42182
|
nestedListElements.push(child);
|
|
42183
42183
|
} else {
|
|
42184
42184
|
labelContent.push(child);
|
|
@@ -42197,7 +42197,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42197
42197
|
}));
|
|
42198
42198
|
onCheckboxChange == null ? void 0 : onCheckboxChange(slideIndex, lineNumber, newChecked);
|
|
42199
42199
|
};
|
|
42200
|
-
return /* @__PURE__ */
|
|
42200
|
+
return /* @__PURE__ */ React2__default.createElement("li", {
|
|
42201
42201
|
style: {
|
|
42202
42202
|
listStyle: "none",
|
|
42203
42203
|
marginLeft: `-${theme2.space[5]}px`,
|
|
@@ -42207,9 +42207,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
42207
42207
|
fontSize: theme2.fontSizes[2]
|
|
42208
42208
|
},
|
|
42209
42209
|
...props2
|
|
42210
|
-
}, /* @__PURE__ */
|
|
42210
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42211
42211
|
style: { display: "flex", alignItems: "flex-start" }
|
|
42212
|
-
}, /* @__PURE__ */
|
|
42212
|
+
}, /* @__PURE__ */ React2__default.createElement("input", {
|
|
42213
42213
|
type: "checkbox",
|
|
42214
42214
|
checked: isChecked,
|
|
42215
42215
|
onChange: handleChange,
|
|
@@ -42222,7 +42222,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42222
42222
|
cursor: "pointer"
|
|
42223
42223
|
},
|
|
42224
42224
|
id
|
|
42225
|
-
}), /* @__PURE__ */
|
|
42225
|
+
}), /* @__PURE__ */ React2__default.createElement("label", {
|
|
42226
42226
|
htmlFor: id,
|
|
42227
42227
|
style: {
|
|
42228
42228
|
flex: 1,
|
|
@@ -42233,7 +42233,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42233
42233
|
}
|
|
42234
42234
|
}, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
|
|
42235
42235
|
}
|
|
42236
|
-
return /* @__PURE__ */
|
|
42236
|
+
return /* @__PURE__ */ React2__default.createElement("li", {
|
|
42237
42237
|
style: {
|
|
42238
42238
|
marginBottom: theme2.space[2],
|
|
42239
42239
|
paddingTop: theme2.space[1],
|
|
@@ -42243,14 +42243,14 @@ var createIndustryMarkdownComponents = ({
|
|
|
42243
42243
|
...props2
|
|
42244
42244
|
}, children2);
|
|
42245
42245
|
},
|
|
42246
|
-
table: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42246
|
+
table: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("div", {
|
|
42247
42247
|
style: {
|
|
42248
42248
|
overflowX: "auto",
|
|
42249
42249
|
marginBottom: theme2.space[4],
|
|
42250
42250
|
borderRadius: theme2.radii[2],
|
|
42251
42251
|
border: `1px solid ${theme2.colors.border}`
|
|
42252
42252
|
}
|
|
42253
|
-
}, /* @__PURE__ */
|
|
42253
|
+
}, /* @__PURE__ */ React2__default.createElement("table", {
|
|
42254
42254
|
style: {
|
|
42255
42255
|
width: "100%",
|
|
42256
42256
|
borderCollapse: "collapse",
|
|
@@ -42259,13 +42259,13 @@ var createIndustryMarkdownComponents = ({
|
|
|
42259
42259
|
},
|
|
42260
42260
|
...props2
|
|
42261
42261
|
}, children2)),
|
|
42262
|
-
thead: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42262
|
+
thead: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("thead", {
|
|
42263
42263
|
style: {
|
|
42264
42264
|
backgroundColor: theme2.colors.backgroundSecondary
|
|
42265
42265
|
},
|
|
42266
42266
|
...props2
|
|
42267
42267
|
}, children2),
|
|
42268
|
-
th: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42268
|
+
th: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("th", {
|
|
42269
42269
|
style: {
|
|
42270
42270
|
padding: theme2.space[3],
|
|
42271
42271
|
textAlign: "left",
|
|
@@ -42275,7 +42275,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42275
42275
|
},
|
|
42276
42276
|
...props2
|
|
42277
42277
|
}, children2),
|
|
42278
|
-
td: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42278
|
+
td: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("td", {
|
|
42279
42279
|
style: {
|
|
42280
42280
|
padding: theme2.space[3],
|
|
42281
42281
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -42283,22 +42283,22 @@ var createIndustryMarkdownComponents = ({
|
|
|
42283
42283
|
},
|
|
42284
42284
|
...props2
|
|
42285
42285
|
}, children2),
|
|
42286
|
-
a: ({ children: children2, href, ...props2 }) => /* @__PURE__ */
|
|
42286
|
+
a: ({ children: children2, href, ...props2 }) => /* @__PURE__ */ React2__default.createElement(LinkWithLoadingIndicator, {
|
|
42287
42287
|
href: href || "",
|
|
42288
42288
|
onClick: onLinkClick ? (h2, e) => onLinkClick(h2, e) : void 0,
|
|
42289
42289
|
className: props2.className
|
|
42290
42290
|
}, children2),
|
|
42291
|
-
img: ({ src, alt, ...props2 }) => /* @__PURE__ */
|
|
42291
|
+
img: ({ src, alt, ...props2 }) => /* @__PURE__ */ React2__default.createElement(OptimizedMarkdownMedia, {
|
|
42292
42292
|
src: src || "",
|
|
42293
42293
|
alt: alt || "",
|
|
42294
42294
|
repositoryInfo,
|
|
42295
42295
|
theme: theme2,
|
|
42296
42296
|
...props2
|
|
42297
42297
|
}),
|
|
42298
|
-
picture: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42298
|
+
picture: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("picture", {
|
|
42299
42299
|
...props2
|
|
42300
42300
|
}, children2),
|
|
42301
|
-
video: ({ children: children2, ...props2 }) => /* @__PURE__ */
|
|
42301
|
+
video: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("video", {
|
|
42302
42302
|
controls: true,
|
|
42303
42303
|
style: {
|
|
42304
42304
|
maxWidth: "100%",
|
|
@@ -42324,7 +42324,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42324
42324
|
return descriptors ? `${transformedUrl} ${descriptors}` : transformedUrl;
|
|
42325
42325
|
}).join(", ");
|
|
42326
42326
|
}, [srcsetValue, repositoryInfo]);
|
|
42327
|
-
return /* @__PURE__ */
|
|
42327
|
+
return /* @__PURE__ */ React2__default.createElement("source", {
|
|
42328
42328
|
srcSet: transformedSrcset,
|
|
42329
42329
|
...props2
|
|
42330
42330
|
});
|
|
@@ -42400,18 +42400,18 @@ var createIndustryMarkdownComponents = ({
|
|
|
42400
42400
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
42401
42401
|
fontSize: theme2.fontSizes[0]
|
|
42402
42402
|
};
|
|
42403
|
-
return /* @__PURE__ */
|
|
42403
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
42404
42404
|
style: containerStyle
|
|
42405
|
-
}, /* @__PURE__ */
|
|
42405
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42406
42406
|
style: headerStyle
|
|
42407
|
-
}, /* @__PURE__ */
|
|
42407
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
42408
42408
|
style: {
|
|
42409
42409
|
fontFamily: theme2.fonts.monospace,
|
|
42410
42410
|
fontWeight: isPrompt ? theme2.fontWeights.bold : theme2.fontWeights.body
|
|
42411
42411
|
}
|
|
42412
|
-
}, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */
|
|
42412
|
+
}, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */ React2__default.createElement("div", {
|
|
42413
42413
|
style: { display: "flex", gap: `${theme2.space[2]}px` }
|
|
42414
|
-
}, /* @__PURE__ */
|
|
42414
|
+
}, /* @__PURE__ */ React2__default.createElement("button", {
|
|
42415
42415
|
onClick: (e) => {
|
|
42416
42416
|
e.stopPropagation();
|
|
42417
42417
|
navigator.clipboard.writeText(codeString).then(() => {
|
|
@@ -42435,11 +42435,11 @@ var createIndustryMarkdownComponents = ({
|
|
|
42435
42435
|
transition: "all 0.15s ease-in-out"
|
|
42436
42436
|
},
|
|
42437
42437
|
title: copied ? "Copied!" : "Copy code to clipboard"
|
|
42438
|
-
}, copied ? /* @__PURE__ */
|
|
42438
|
+
}, copied ? /* @__PURE__ */ React2__default.createElement(Check, {
|
|
42439
42439
|
size: 14
|
|
42440
|
-
}) : /* @__PURE__ */
|
|
42440
|
+
}) : /* @__PURE__ */ React2__default.createElement(Copy, {
|
|
42441
42441
|
size: 14
|
|
42442
|
-
}), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */
|
|
42442
|
+
}), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */ React2__default.createElement(IndustryBashCommandDropdown, {
|
|
42443
42443
|
commands: bashCommands,
|
|
42444
42444
|
allCommands: codeString.trim(),
|
|
42445
42445
|
onRunCommand: async (command) => {
|
|
@@ -42454,7 +42454,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42454
42454
|
},
|
|
42455
42455
|
slideIdPrefix,
|
|
42456
42456
|
theme: theme2
|
|
42457
|
-
}), isHtml && /* @__PURE__ */
|
|
42457
|
+
}), isHtml && /* @__PURE__ */ React2__default.createElement("button", {
|
|
42458
42458
|
onClick: (e) => {
|
|
42459
42459
|
e.stopPropagation();
|
|
42460
42460
|
openHtmlModal(codeString);
|
|
@@ -42472,9 +42472,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
42472
42472
|
gap: `${theme2.space[1]}px`
|
|
42473
42473
|
},
|
|
42474
42474
|
title: "Render HTML in modal"
|
|
42475
|
-
}, /* @__PURE__ */
|
|
42475
|
+
}, /* @__PURE__ */ React2__default.createElement(Monitor, {
|
|
42476
42476
|
size: 14
|
|
42477
|
-
}), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */
|
|
42477
|
+
}), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */ React2__default.createElement("button", {
|
|
42478
42478
|
onClick: (e) => {
|
|
42479
42479
|
e.stopPropagation();
|
|
42480
42480
|
openPlaceholderModal(placeholders, codeString);
|
|
@@ -42492,9 +42492,9 @@ var createIndustryMarkdownComponents = ({
|
|
|
42492
42492
|
gap: `${theme2.space[1]}px`
|
|
42493
42493
|
},
|
|
42494
42494
|
title: "Fill placeholders and copy"
|
|
42495
|
-
}, /* @__PURE__ */
|
|
42495
|
+
}, /* @__PURE__ */ React2__default.createElement(FileText, {
|
|
42496
42496
|
size: 14
|
|
42497
|
-
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */
|
|
42497
|
+
}), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
42498
42498
|
style: {
|
|
42499
42499
|
margin: 0,
|
|
42500
42500
|
padding: theme2.space[5],
|
|
@@ -42507,7 +42507,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42507
42507
|
}
|
|
42508
42508
|
}, codeString.split(/(\{\{[^}]+\}\})/).map((part, index22) => {
|
|
42509
42509
|
if (part.match(/^\{\{[^}]+\}\}$/)) {
|
|
42510
|
-
return /* @__PURE__ */
|
|
42510
|
+
return /* @__PURE__ */ React2__default.createElement("span", {
|
|
42511
42511
|
key: index22,
|
|
42512
42512
|
style: {
|
|
42513
42513
|
backgroundColor: theme2.colors.highlight,
|
|
@@ -42521,7 +42521,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42521
42521
|
}, part);
|
|
42522
42522
|
}
|
|
42523
42523
|
return part;
|
|
42524
|
-
})) : /* @__PURE__ */
|
|
42524
|
+
})) : /* @__PURE__ */ React2__default.createElement("pre", {
|
|
42525
42525
|
style: {
|
|
42526
42526
|
margin: 0,
|
|
42527
42527
|
padding: theme2.space[4],
|
|
@@ -42531,7 +42531,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42531
42531
|
lineHeight: 1.2,
|
|
42532
42532
|
fontFamily: theme2.fonts.monospace
|
|
42533
42533
|
}
|
|
42534
|
-
}, /* @__PURE__ */
|
|
42534
|
+
}, /* @__PURE__ */ React2__default.createElement("code", {
|
|
42535
42535
|
className,
|
|
42536
42536
|
style: {
|
|
42537
42537
|
lineHeight: "inherit",
|
|
@@ -42543,7 +42543,7 @@ var createIndustryMarkdownComponents = ({
|
|
|
42543
42543
|
}, children2)));
|
|
42544
42544
|
}
|
|
42545
42545
|
const cleanClassName = (_f = (_e = (_d = className == null ? void 0 : className.replace(/hljs(-\w+)?/g, "")) == null ? void 0 : _d.replace(/language-\w+/g, "")) == null ? void 0 : _e.replace(/\s+/g, " ")) == null ? void 0 : _f.trim();
|
|
42546
|
-
return /* @__PURE__ */
|
|
42546
|
+
return /* @__PURE__ */ React2__default.createElement("code", {
|
|
42547
42547
|
style: {
|
|
42548
42548
|
color: theme2.colors.accent,
|
|
42549
42549
|
fontSize: "0.875em",
|
|
@@ -42661,7 +42661,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42661
42661
|
const handleButtonLeave = (e) => {
|
|
42662
42662
|
e.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
42663
42663
|
};
|
|
42664
|
-
return /* @__PURE__ */
|
|
42664
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
42665
42665
|
ref: containerRef,
|
|
42666
42666
|
style: {
|
|
42667
42667
|
width: "100%",
|
|
@@ -42669,7 +42669,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42669
42669
|
position: "relative",
|
|
42670
42670
|
backgroundColor: theme2.colors.background
|
|
42671
42671
|
}
|
|
42672
|
-
}, /* @__PURE__ */
|
|
42672
|
+
}, /* @__PURE__ */ React2__default.createElement(TransformWrapper, {
|
|
42673
42673
|
limitToBounds: true,
|
|
42674
42674
|
doubleClick: { disabled: true },
|
|
42675
42675
|
minScale: 0.1,
|
|
@@ -42683,7 +42683,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42683
42683
|
zoomAnimation: { disabled: false, size: 0.2 }
|
|
42684
42684
|
}, ({ centerView: centerView2, instance }) => {
|
|
42685
42685
|
transformRef.current = { centerView: centerView2, instance };
|
|
42686
|
-
return /* @__PURE__ */
|
|
42686
|
+
return /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42687
42687
|
style: {
|
|
42688
42688
|
position: "absolute",
|
|
42689
42689
|
top: theme2.space[3],
|
|
@@ -42692,7 +42692,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42692
42692
|
display: "flex",
|
|
42693
42693
|
gap: theme2.space[2]
|
|
42694
42694
|
}
|
|
42695
|
-
}, /* @__PURE__ */
|
|
42695
|
+
}, /* @__PURE__ */ React2__default.createElement("button", {
|
|
42696
42696
|
onClick: () => {
|
|
42697
42697
|
centerView2(calculatedScale, 200, "easeOut");
|
|
42698
42698
|
},
|
|
@@ -42700,14 +42700,14 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42700
42700
|
onMouseEnter: handleButtonHover,
|
|
42701
42701
|
onMouseLeave: handleButtonLeave,
|
|
42702
42702
|
title: "Reset view"
|
|
42703
|
-
}, "⟲"), isCalculating && /* @__PURE__ */
|
|
42703
|
+
}, "⟲"), isCalculating && /* @__PURE__ */ React2__default.createElement("span", {
|
|
42704
42704
|
style: {
|
|
42705
42705
|
padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
|
|
42706
42706
|
fontSize: theme2.fontSizes[1],
|
|
42707
42707
|
color: theme2.colors.textMuted,
|
|
42708
42708
|
fontFamily: theme2.fonts.body
|
|
42709
42709
|
}
|
|
42710
|
-
}, "Optimizing view...")), /* @__PURE__ */
|
|
42710
|
+
}, "Optimizing view...")), /* @__PURE__ */ React2__default.createElement(TransformComponent, {
|
|
42711
42711
|
wrapperStyle: {
|
|
42712
42712
|
width: "100%",
|
|
42713
42713
|
height: "100%",
|
|
@@ -42721,7 +42721,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42721
42721
|
alignItems: "center",
|
|
42722
42722
|
justifyContent: "center"
|
|
42723
42723
|
}
|
|
42724
|
-
}, /* @__PURE__ */
|
|
42724
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42725
42725
|
ref: diagramRef,
|
|
42726
42726
|
style: {
|
|
42727
42727
|
display: "flex",
|
|
@@ -42730,7 +42730,7 @@ function IndustryZoomableMermaidDiagram({
|
|
|
42730
42730
|
width: "100%",
|
|
42731
42731
|
height: "100%"
|
|
42732
42732
|
}
|
|
42733
|
-
}, /* @__PURE__ */
|
|
42733
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMermaidDiagram, {
|
|
42734
42734
|
code: code2,
|
|
42735
42735
|
id,
|
|
42736
42736
|
isModalMode: true,
|
|
@@ -42766,7 +42766,7 @@ function IndustryMermaidModal({
|
|
|
42766
42766
|
if (!isOpen) {
|
|
42767
42767
|
return null;
|
|
42768
42768
|
}
|
|
42769
|
-
const modalContent = /* @__PURE__ */
|
|
42769
|
+
const modalContent = /* @__PURE__ */ React2__default.createElement("div", {
|
|
42770
42770
|
onClick: handleBackdropClick,
|
|
42771
42771
|
style: {
|
|
42772
42772
|
position: "fixed",
|
|
@@ -42781,7 +42781,7 @@ function IndustryMermaidModal({
|
|
|
42781
42781
|
zIndex: 50,
|
|
42782
42782
|
padding: theme2.space[4]
|
|
42783
42783
|
}
|
|
42784
|
-
}, /* @__PURE__ */
|
|
42784
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42785
42785
|
ref: modalRef,
|
|
42786
42786
|
onClick: (e) => e.stopPropagation(),
|
|
42787
42787
|
style: {
|
|
@@ -42796,7 +42796,7 @@ function IndustryMermaidModal({
|
|
|
42796
42796
|
overflow: "hidden",
|
|
42797
42797
|
boxShadow: theme2.shadows[4]
|
|
42798
42798
|
}
|
|
42799
|
-
}, /* @__PURE__ */
|
|
42799
|
+
}, /* @__PURE__ */ React2__default.createElement("button", {
|
|
42800
42800
|
onClick: (e) => {
|
|
42801
42801
|
e.stopPropagation();
|
|
42802
42802
|
onClose();
|
|
@@ -42830,7 +42830,7 @@ function IndustryMermaidModal({
|
|
|
42830
42830
|
e.currentTarget.style.color = theme2.colors.text;
|
|
42831
42831
|
},
|
|
42832
42832
|
"aria-label": "Close"
|
|
42833
|
-
}, "×"), /* @__PURE__ */
|
|
42833
|
+
}, "×"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
42834
42834
|
style: {
|
|
42835
42835
|
flex: 1,
|
|
42836
42836
|
overflow: "hidden",
|
|
@@ -42838,7 +42838,7 @@ function IndustryMermaidModal({
|
|
|
42838
42838
|
backgroundColor: theme2.colors.background,
|
|
42839
42839
|
padding: `${theme2.space[5]}px ${theme2.space[2]}px ${theme2.space[2]}px ${theme2.space[2]}px`
|
|
42840
42840
|
}
|
|
42841
|
-
}, /* @__PURE__ */
|
|
42841
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryZoomableMermaidDiagram, {
|
|
42842
42842
|
id: "mermaid-modal-diagram",
|
|
42843
42843
|
code: mermaidCode,
|
|
42844
42844
|
theme: theme2
|
|
@@ -42872,7 +42872,7 @@ function IndustryPlaceholderModal({
|
|
|
42872
42872
|
console.error("Failed to copy filled prompt:", err);
|
|
42873
42873
|
});
|
|
42874
42874
|
};
|
|
42875
|
-
return /* @__PURE__ */
|
|
42875
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
42876
42876
|
style: {
|
|
42877
42877
|
position: "fixed",
|
|
42878
42878
|
top: 0,
|
|
@@ -42887,7 +42887,7 @@ function IndustryPlaceholderModal({
|
|
|
42887
42887
|
padding: theme2.space[5]
|
|
42888
42888
|
},
|
|
42889
42889
|
onClick: onClose
|
|
42890
|
-
}, /* @__PURE__ */
|
|
42890
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42891
42891
|
style: {
|
|
42892
42892
|
backgroundColor: theme2.colors.background,
|
|
42893
42893
|
borderRadius: theme2.radii[3],
|
|
@@ -42901,7 +42901,7 @@ function IndustryPlaceholderModal({
|
|
|
42901
42901
|
boxShadow: theme2.shadows[4]
|
|
42902
42902
|
},
|
|
42903
42903
|
onClick: (e) => e.stopPropagation()
|
|
42904
|
-
}, /* @__PURE__ */
|
|
42904
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
42905
42905
|
style: {
|
|
42906
42906
|
padding: theme2.space[4],
|
|
42907
42907
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -42910,7 +42910,7 @@ function IndustryPlaceholderModal({
|
|
|
42910
42910
|
alignItems: "center",
|
|
42911
42911
|
backgroundColor: theme2.colors.backgroundSecondary
|
|
42912
42912
|
}
|
|
42913
|
-
}, /* @__PURE__ */
|
|
42913
|
+
}, /* @__PURE__ */ React2__default.createElement("h3", {
|
|
42914
42914
|
style: {
|
|
42915
42915
|
margin: 0,
|
|
42916
42916
|
color: theme2.colors.text,
|
|
@@ -42918,7 +42918,7 @@ function IndustryPlaceholderModal({
|
|
|
42918
42918
|
fontWeight: theme2.fontWeights.semibold,
|
|
42919
42919
|
fontFamily: theme2.fonts.heading
|
|
42920
42920
|
}
|
|
42921
|
-
}, "Fill Prompt Placeholders"), /* @__PURE__ */
|
|
42921
|
+
}, "Fill Prompt Placeholders"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
42922
42922
|
onClick: (e) => {
|
|
42923
42923
|
e.stopPropagation();
|
|
42924
42924
|
onClose();
|
|
@@ -42948,14 +42948,14 @@ function IndustryPlaceholderModal({
|
|
|
42948
42948
|
},
|
|
42949
42949
|
title: "Close",
|
|
42950
42950
|
"aria-label": "Close modal"
|
|
42951
|
-
}, "×")), /* @__PURE__ */
|
|
42951
|
+
}, "×")), /* @__PURE__ */ React2__default.createElement("div", {
|
|
42952
42952
|
style: {
|
|
42953
42953
|
padding: theme2.space[5],
|
|
42954
42954
|
overflow: "auto",
|
|
42955
42955
|
flex: 1,
|
|
42956
42956
|
backgroundColor: theme2.colors.background
|
|
42957
42957
|
}
|
|
42958
|
-
}, /* @__PURE__ */
|
|
42958
|
+
}, /* @__PURE__ */ React2__default.createElement("p", {
|
|
42959
42959
|
style: {
|
|
42960
42960
|
margin: `0 0 ${theme2.space[4]}px 0`,
|
|
42961
42961
|
color: theme2.colors.textSecondary,
|
|
@@ -42963,12 +42963,12 @@ function IndustryPlaceholderModal({
|
|
|
42963
42963
|
lineHeight: theme2.lineHeights.body,
|
|
42964
42964
|
fontFamily: theme2.fonts.body
|
|
42965
42965
|
}
|
|
42966
|
-
}, "Fill in the values for the placeholders below. The prompt will be copied to your clipboard with the values substituted."), /* @__PURE__ */
|
|
42966
|
+
}, "Fill in the values for the placeholders below. The prompt will be copied to your clipboard with the values substituted."), /* @__PURE__ */ React2__default.createElement("form", {
|
|
42967
42967
|
onSubmit: handleSubmit
|
|
42968
|
-
}, placeholders.map((placeholder, index2) => /* @__PURE__ */
|
|
42968
|
+
}, placeholders.map((placeholder, index2) => /* @__PURE__ */ React2__default.createElement("div", {
|
|
42969
42969
|
key: index2,
|
|
42970
42970
|
style: { marginBottom: theme2.space[4] }
|
|
42971
|
-
}, /* @__PURE__ */
|
|
42971
|
+
}, /* @__PURE__ */ React2__default.createElement("label", {
|
|
42972
42972
|
style: {
|
|
42973
42973
|
display: "block",
|
|
42974
42974
|
marginBottom: theme2.space[2],
|
|
@@ -42977,7 +42977,7 @@ function IndustryPlaceholderModal({
|
|
|
42977
42977
|
fontSize: theme2.fontSizes[1],
|
|
42978
42978
|
fontFamily: theme2.fonts.body
|
|
42979
42979
|
}
|
|
42980
|
-
}, placeholder), /* @__PURE__ */
|
|
42980
|
+
}, placeholder), /* @__PURE__ */ React2__default.createElement("input", {
|
|
42981
42981
|
type: "text",
|
|
42982
42982
|
value: values[placeholder] || "",
|
|
42983
42983
|
onChange: (e) => setValues((prev) => ({
|
|
@@ -43003,14 +43003,14 @@ function IndustryPlaceholderModal({
|
|
|
43003
43003
|
e.currentTarget.style.borderColor = theme2.colors.border;
|
|
43004
43004
|
},
|
|
43005
43005
|
placeholder: `Enter value for ${placeholder}`
|
|
43006
|
-
}))), /* @__PURE__ */
|
|
43006
|
+
}))), /* @__PURE__ */ React2__default.createElement("div", {
|
|
43007
43007
|
style: {
|
|
43008
43008
|
display: "flex",
|
|
43009
43009
|
gap: theme2.space[3],
|
|
43010
43010
|
justifyContent: "flex-end",
|
|
43011
43011
|
marginTop: theme2.space[5]
|
|
43012
43012
|
}
|
|
43013
|
-
}, /* @__PURE__ */
|
|
43013
|
+
}, /* @__PURE__ */ React2__default.createElement("button", {
|
|
43014
43014
|
type: "button",
|
|
43015
43015
|
onClick: onClose,
|
|
43016
43016
|
style: {
|
|
@@ -43034,7 +43034,7 @@ function IndustryPlaceholderModal({
|
|
|
43034
43034
|
onMouseLeave: (e) => {
|
|
43035
43035
|
e.currentTarget.style.backgroundColor = theme2.colors.background;
|
|
43036
43036
|
}
|
|
43037
|
-
}, "Cancel"), /* @__PURE__ */
|
|
43037
|
+
}, "Cancel"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
43038
43038
|
type: "submit",
|
|
43039
43039
|
style: {
|
|
43040
43040
|
padding: `${theme2.space[2]}px ${theme2.space[4]}px`,
|
|
@@ -43284,7 +43284,7 @@ var injectStyles = () => {
|
|
|
43284
43284
|
stylesInjected = true;
|
|
43285
43285
|
}
|
|
43286
43286
|
};
|
|
43287
|
-
var IndustryMarkdownSlide =
|
|
43287
|
+
var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2({
|
|
43288
43288
|
content: content2,
|
|
43289
43289
|
slideIdPrefix,
|
|
43290
43290
|
slideIndex,
|
|
@@ -43670,7 +43670,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
|
|
|
43670
43670
|
if (searchQuery) {
|
|
43671
43671
|
return {
|
|
43672
43672
|
...baseComponents,
|
|
43673
|
-
mark: ({ children: children2 }) => /* @__PURE__ */
|
|
43673
|
+
mark: ({ children: children2 }) => /* @__PURE__ */ React2__default.createElement("mark", {
|
|
43674
43674
|
style: {
|
|
43675
43675
|
backgroundColor: theme2.colors.highlightBg || "rgba(255, 193, 7, 0.25)",
|
|
43676
43676
|
color: theme2.colors.text,
|
|
@@ -43700,7 +43700,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
|
|
|
43700
43700
|
repositoryInfo,
|
|
43701
43701
|
searchQuery
|
|
43702
43702
|
]);
|
|
43703
|
-
return /* @__PURE__ */
|
|
43703
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
43704
43704
|
className: "markdown-slide",
|
|
43705
43705
|
ref: slideRef,
|
|
43706
43706
|
style: {
|
|
@@ -43724,7 +43724,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
|
|
|
43724
43724
|
slideRef.current.focus();
|
|
43725
43725
|
}
|
|
43726
43726
|
}
|
|
43727
|
-
}, chunks.length === 0 ? /* @__PURE__ */
|
|
43727
|
+
}, chunks.length === 0 ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
43728
43728
|
style: {
|
|
43729
43729
|
padding: theme2.space[4],
|
|
43730
43730
|
textAlign: "center",
|
|
@@ -43734,7 +43734,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
|
|
|
43734
43734
|
}, "No content to display") : chunks.map((chunk, index2) => {
|
|
43735
43735
|
if (chunk.type === "markdown_chunk") {
|
|
43736
43736
|
const processedContent = searchQuery ? highlightSearchMatches(chunk.content, searchQuery) : chunk.content;
|
|
43737
|
-
return /* @__PURE__ */
|
|
43737
|
+
return /* @__PURE__ */ React2__default.createElement(Markdown, {
|
|
43738
43738
|
key: `${chunk.id}-${JSON.stringify(theme2.colors.accent)}`,
|
|
43739
43739
|
remarkPlugins: [remarkGfm],
|
|
43740
43740
|
rehypePlugins: [
|
|
@@ -43758,23 +43758,23 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
|
|
|
43758
43758
|
if (onShowMermaidInPanel) {
|
|
43759
43759
|
mermaidProps.onShowInPanel = onShowMermaidInPanel;
|
|
43760
43760
|
}
|
|
43761
|
-
return /* @__PURE__ */
|
|
43761
|
+
return /* @__PURE__ */ React2__default.createElement(IndustryLazyMermaidDiagram, {
|
|
43762
43762
|
key: chunk.id,
|
|
43763
43763
|
...mermaidProps
|
|
43764
43764
|
});
|
|
43765
43765
|
}
|
|
43766
43766
|
return null;
|
|
43767
|
-
}), /* @__PURE__ */
|
|
43767
|
+
}), /* @__PURE__ */ React2__default.createElement(IndustryHtmlModal, {
|
|
43768
43768
|
isOpen: htmlModalOpen,
|
|
43769
43769
|
onClose: closeHtmlModal,
|
|
43770
43770
|
htmlContent: htmlModalContent,
|
|
43771
43771
|
theme: theme2
|
|
43772
|
-
}), /* @__PURE__ */
|
|
43772
|
+
}), /* @__PURE__ */ React2__default.createElement(IndustryMermaidModal, {
|
|
43773
43773
|
isOpen: mermaidModalOpen,
|
|
43774
43774
|
onClose: closeMermaidModal,
|
|
43775
43775
|
mermaidCode: mermaidModalCode,
|
|
43776
43776
|
theme: theme2
|
|
43777
|
-
}), handlePromptCopy && placeholderModalData && /* @__PURE__ */
|
|
43777
|
+
}), handlePromptCopy && placeholderModalData && /* @__PURE__ */ React2__default.createElement(IndustryPlaceholderModal, {
|
|
43778
43778
|
isOpen: placeholderModalOpen,
|
|
43779
43779
|
onClose: closePlaceholderModal,
|
|
43780
43780
|
placeholders: placeholderModalData.placeholders,
|
|
@@ -43801,7 +43801,7 @@ var DATA_ATTRIBUTES = {
|
|
|
43801
43801
|
};
|
|
43802
43802
|
var PRECISION = 10;
|
|
43803
43803
|
var useIsomorphicLayoutEffect = useLayoutEffect;
|
|
43804
|
-
var useId =
|
|
43804
|
+
var useId = React2["useId".toString()];
|
|
43805
43805
|
var wrappedUseId = typeof useId === "function" ? useId : () => null;
|
|
43806
43806
|
var counter = 0;
|
|
43807
43807
|
function useUniqueId(idFromParams = null) {
|
|
@@ -46076,7 +46076,7 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
|
|
|
46076
46076
|
const y2 = o2.length, w2 = 2 * u2;
|
|
46077
46077
|
let x2;
|
|
46078
46078
|
x2 = y2 === 1 || y2 === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
|
|
46079
|
-
const C =
|
|
46079
|
+
const C = React2__default.useId().replace(/:/g, "_");
|
|
46080
46080
|
return jsxs(Fragment, { children: [
|
|
46081
46081
|
y2 === 2 && /* @__PURE__ */ jsx("style", { children: `
|
|
46082
46082
|
.snap-carousel-container[data-carousel-id="${C}"][data-panel-count="2"] .snap-carousel-panel {
|
|
@@ -46162,7 +46162,7 @@ var FocusLeftIcon = ({
|
|
|
46162
46162
|
size = 18,
|
|
46163
46163
|
color: color2 = "currentColor",
|
|
46164
46164
|
style: style2
|
|
46165
|
-
}) => /* @__PURE__ */
|
|
46165
|
+
}) => /* @__PURE__ */ React2__default.createElement("svg", {
|
|
46166
46166
|
width: size,
|
|
46167
46167
|
height: size,
|
|
46168
46168
|
viewBox: "0 0 24 24",
|
|
@@ -46172,13 +46172,13 @@ var FocusLeftIcon = ({
|
|
|
46172
46172
|
strokeLinecap: "round",
|
|
46173
46173
|
strokeLinejoin: "round",
|
|
46174
46174
|
style: style2
|
|
46175
|
-
}, /* @__PURE__ */
|
|
46175
|
+
}, /* @__PURE__ */ React2__default.createElement("rect", {
|
|
46176
46176
|
x: "3",
|
|
46177
46177
|
y: "3",
|
|
46178
46178
|
width: "18",
|
|
46179
46179
|
height: "18",
|
|
46180
46180
|
rx: "1"
|
|
46181
|
-
}), /* @__PURE__ */
|
|
46181
|
+
}), /* @__PURE__ */ React2__default.createElement("path", {
|
|
46182
46182
|
d: "M9 12L15 12M15 12L12 9M15 12L12 15",
|
|
46183
46183
|
strokeWidth: "1.5"
|
|
46184
46184
|
}));
|
|
@@ -46186,7 +46186,7 @@ var FocusRightIcon = ({
|
|
|
46186
46186
|
size = 18,
|
|
46187
46187
|
color: color2 = "currentColor",
|
|
46188
46188
|
style: style2
|
|
46189
|
-
}) => /* @__PURE__ */
|
|
46189
|
+
}) => /* @__PURE__ */ React2__default.createElement("svg", {
|
|
46190
46190
|
width: size,
|
|
46191
46191
|
height: size,
|
|
46192
46192
|
viewBox: "0 0 24 24",
|
|
@@ -46196,13 +46196,13 @@ var FocusRightIcon = ({
|
|
|
46196
46196
|
strokeLinecap: "round",
|
|
46197
46197
|
strokeLinejoin: "round",
|
|
46198
46198
|
style: style2
|
|
46199
|
-
}, /* @__PURE__ */
|
|
46199
|
+
}, /* @__PURE__ */ React2__default.createElement("rect", {
|
|
46200
46200
|
x: "3",
|
|
46201
46201
|
y: "3",
|
|
46202
46202
|
width: "18",
|
|
46203
46203
|
height: "18",
|
|
46204
46204
|
rx: "1"
|
|
46205
|
-
}), /* @__PURE__ */
|
|
46205
|
+
}), /* @__PURE__ */ React2__default.createElement("path", {
|
|
46206
46206
|
d: "M15 12L9 12M9 12L12 9M9 12L12 15",
|
|
46207
46207
|
strokeWidth: "1.5"
|
|
46208
46208
|
}));
|
|
@@ -46217,8 +46217,8 @@ var HeaderButton = ({
|
|
|
46217
46217
|
minWidth,
|
|
46218
46218
|
padding
|
|
46219
46219
|
}) => {
|
|
46220
|
-
const [isHovered, setIsHovered] =
|
|
46221
|
-
return /* @__PURE__ */
|
|
46220
|
+
const [isHovered, setIsHovered] = React2__default.useState(false);
|
|
46221
|
+
return /* @__PURE__ */ React2__default.createElement("button", {
|
|
46222
46222
|
onClick,
|
|
46223
46223
|
disabled,
|
|
46224
46224
|
onMouseEnter: () => setIsHovered(true),
|
|
@@ -46270,7 +46270,7 @@ var SlideNavigationHeader = ({
|
|
|
46270
46270
|
onCollapseRight
|
|
46271
46271
|
}) => {
|
|
46272
46272
|
const navigationHeight = "48px";
|
|
46273
|
-
return /* @__PURE__ */
|
|
46273
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
46274
46274
|
style: {
|
|
46275
46275
|
height: navigationHeight,
|
|
46276
46276
|
minHeight: navigationHeight,
|
|
@@ -46282,41 +46282,41 @@ var SlideNavigationHeader = ({
|
|
|
46282
46282
|
backgroundColor: theme2.colors.background,
|
|
46283
46283
|
flexShrink: 0
|
|
46284
46284
|
}
|
|
46285
|
-
}, /* @__PURE__ */
|
|
46285
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
46286
46286
|
style: {
|
|
46287
46287
|
display: "flex",
|
|
46288
46288
|
alignItems: "center",
|
|
46289
46289
|
gap: theme2.space[2]
|
|
46290
46290
|
}
|
|
46291
|
-
}, /* @__PURE__ */
|
|
46291
|
+
}, /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46292
46292
|
onClick: onToggleTOC,
|
|
46293
46293
|
active: showTOC,
|
|
46294
46294
|
theme: theme2,
|
|
46295
46295
|
title: tocDisplayMode === "sidebar" ? showTOC ? "Hide table of contents (T)" : "Show table of contents (T)" : showTOC ? "Close table of contents (Esc)" : "Open table of contents (T)"
|
|
46296
|
-
}, /* @__PURE__ */
|
|
46296
|
+
}, /* @__PURE__ */ React2__default.createElement(Menu, {
|
|
46297
46297
|
size: 18
|
|
46298
|
-
})), /* @__PURE__ */
|
|
46298
|
+
})), /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46299
46299
|
onClick: onPrevious,
|
|
46300
46300
|
disabled: currentSlide === 0,
|
|
46301
46301
|
theme: theme2,
|
|
46302
46302
|
title: "Previous slide",
|
|
46303
46303
|
minWidth: isMobile ? void 0 : "100px",
|
|
46304
46304
|
width: isMobile ? "36px" : void 0
|
|
46305
|
-
}, /* @__PURE__ */
|
|
46305
|
+
}, /* @__PURE__ */ React2__default.createElement(ChevronLeft, {
|
|
46306
46306
|
size: 18
|
|
46307
|
-
}), !isMobile && "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */
|
|
46307
|
+
}), !isMobile && "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46308
46308
|
onClick: onCollapseLeft,
|
|
46309
46309
|
active: collapseRight,
|
|
46310
46310
|
theme: theme2,
|
|
46311
46311
|
title: collapseLeft ? "Expand left panel" : collapseRight ? "Show both panels" : "Focus on left panel"
|
|
46312
|
-
}, collapseLeft ? /* @__PURE__ */
|
|
46312
|
+
}, collapseLeft ? /* @__PURE__ */ React2__default.createElement(PanelLeftClose, {
|
|
46313
46313
|
size: 18,
|
|
46314
46314
|
style: { transform: "rotate(180deg)" }
|
|
46315
|
-
}) : collapseRight ? /* @__PURE__ */
|
|
46315
|
+
}) : collapseRight ? /* @__PURE__ */ React2__default.createElement(Columns2, {
|
|
46316
46316
|
size: 18
|
|
46317
|
-
}) : /* @__PURE__ */
|
|
46317
|
+
}) : /* @__PURE__ */ React2__default.createElement(FocusLeftIcon, {
|
|
46318
46318
|
size: 18
|
|
46319
|
-
}))), showSlideCounter && /* @__PURE__ */
|
|
46319
|
+
}))), showSlideCounter && /* @__PURE__ */ React2__default.createElement("div", {
|
|
46320
46320
|
style: {
|
|
46321
46321
|
display: "flex",
|
|
46322
46322
|
alignItems: "center",
|
|
@@ -46324,65 +46324,65 @@ var SlideNavigationHeader = ({
|
|
|
46324
46324
|
fontSize: theme2.fontSizes[1],
|
|
46325
46325
|
fontFamily: theme2.fonts.monospace
|
|
46326
46326
|
}
|
|
46327
|
-
}, viewMode === "book" ? /* @__PURE__ */
|
|
46327
|
+
}, viewMode === "book" ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("span", {
|
|
46328
46328
|
style: { fontWeight: 600 }
|
|
46329
|
-
}, Math.floor(currentSlide / 2) + 1), /* @__PURE__ */
|
|
46329
|
+
}, Math.floor(currentSlide / 2) + 1), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46330
46330
|
style: { opacity: 0.5, margin: "0 0.4em" }
|
|
46331
|
-
}, "of"), /* @__PURE__ */
|
|
46331
|
+
}, "of"), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46332
46332
|
style: { fontWeight: 600 }
|
|
46333
|
-
}, Math.ceil(totalSlides / 2))) : /* @__PURE__ */
|
|
46333
|
+
}, Math.ceil(totalSlides / 2))) : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("span", {
|
|
46334
46334
|
style: { fontWeight: 600 }
|
|
46335
|
-
}, currentSlide + 1), /* @__PURE__ */
|
|
46335
|
+
}, currentSlide + 1), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46336
46336
|
style: { opacity: 0.5, margin: "0 0.4em" }
|
|
46337
|
-
}, "of"), /* @__PURE__ */
|
|
46337
|
+
}, "of"), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46338
46338
|
style: { fontWeight: 600 }
|
|
46339
|
-
}, totalSlides))), /* @__PURE__ */
|
|
46339
|
+
}, totalSlides))), /* @__PURE__ */ React2__default.createElement("div", {
|
|
46340
46340
|
style: {
|
|
46341
46341
|
display: "flex",
|
|
46342
46342
|
alignItems: "center",
|
|
46343
46343
|
gap: theme2.space[2]
|
|
46344
46344
|
}
|
|
46345
|
-
}, viewMode === "book" && onCollapseRight && /* @__PURE__ */
|
|
46345
|
+
}, viewMode === "book" && onCollapseRight && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46346
46346
|
onClick: onCollapseRight,
|
|
46347
46347
|
active: collapseLeft,
|
|
46348
46348
|
theme: theme2,
|
|
46349
46349
|
title: collapseRight ? "Expand right panel" : collapseLeft ? "Show both panels" : "Focus on right panel"
|
|
46350
|
-
}, collapseRight ? /* @__PURE__ */
|
|
46350
|
+
}, collapseRight ? /* @__PURE__ */ React2__default.createElement(PanelRightClose, {
|
|
46351
46351
|
size: 18,
|
|
46352
46352
|
style: { transform: "rotate(180deg)" }
|
|
46353
|
-
}) : collapseLeft ? /* @__PURE__ */
|
|
46353
|
+
}) : collapseLeft ? /* @__PURE__ */ React2__default.createElement(Columns2, {
|
|
46354
46354
|
size: 18
|
|
46355
|
-
}) : /* @__PURE__ */
|
|
46355
|
+
}) : /* @__PURE__ */ React2__default.createElement(FocusRightIcon, {
|
|
46356
46356
|
size: 18
|
|
46357
|
-
})), /* @__PURE__ */
|
|
46357
|
+
})), /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46358
46358
|
onClick: onNext,
|
|
46359
46359
|
disabled: currentSlide === totalSlides - 1,
|
|
46360
46360
|
theme: theme2,
|
|
46361
46361
|
title: "Next slide",
|
|
46362
46362
|
minWidth: isMobile ? void 0 : "100px",
|
|
46363
46363
|
width: isMobile ? "36px" : void 0
|
|
46364
|
-
}, !isMobile && "Next", /* @__PURE__ */
|
|
46364
|
+
}, !isMobile && "Next", /* @__PURE__ */ React2__default.createElement(ChevronRight, {
|
|
46365
46365
|
size: 18
|
|
46366
|
-
})), showPopoutButton && onPopout && !isPopout && /* @__PURE__ */
|
|
46366
|
+
})), showPopoutButton && onPopout && !isPopout && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46367
46367
|
onClick: onPopout,
|
|
46368
46368
|
theme: theme2,
|
|
46369
46369
|
title: "Pop out to new window"
|
|
46370
|
-
}, /* @__PURE__ */
|
|
46370
|
+
}, /* @__PURE__ */ React2__default.createElement(ExternalLink, {
|
|
46371
46371
|
size: 18
|
|
46372
|
-
})), isPopout && onClose && /* @__PURE__ */
|
|
46372
|
+
})), isPopout && onClose && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46373
46373
|
onClick: onClose,
|
|
46374
46374
|
theme: theme2,
|
|
46375
46375
|
title: "Close window"
|
|
46376
|
-
}, /* @__PURE__ */
|
|
46376
|
+
}, /* @__PURE__ */ React2__default.createElement(X, {
|
|
46377
46377
|
size: 18
|
|
46378
|
-
})), showFullscreenButton && !showPopoutButton && /* @__PURE__ */
|
|
46378
|
+
})), showFullscreenButton && !showPopoutButton && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
|
|
46379
46379
|
onClick: onToggleFullscreen,
|
|
46380
46380
|
disabled: isMobile,
|
|
46381
46381
|
theme: theme2,
|
|
46382
46382
|
title: isMobile ? "Fullscreen not available on mobile" : isFullscreen ? "Exit fullscreen (F)" : "Enter fullscreen (F)"
|
|
46383
|
-
}, isFullscreen ? /* @__PURE__ */
|
|
46383
|
+
}, isFullscreen ? /* @__PURE__ */ React2__default.createElement(Minimize2, {
|
|
46384
46384
|
size: 18
|
|
46385
|
-
}) : /* @__PURE__ */
|
|
46385
|
+
}) : /* @__PURE__ */ React2__default.createElement(Maximize2, {
|
|
46386
46386
|
size: 18
|
|
46387
46387
|
}))));
|
|
46388
46388
|
};
|
|
@@ -46405,7 +46405,7 @@ var SlideSearchBar = ({
|
|
|
46405
46405
|
searchInputRef.current.focus();
|
|
46406
46406
|
}
|
|
46407
46407
|
}, [showSearch]);
|
|
46408
|
-
return /* @__PURE__ */
|
|
46408
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
46409
46409
|
style: {
|
|
46410
46410
|
position: "fixed",
|
|
46411
46411
|
bottom: 0,
|
|
@@ -46422,10 +46422,10 @@ var SlideSearchBar = ({
|
|
|
46422
46422
|
padding: `0 ${theme2.space[3]}px`,
|
|
46423
46423
|
gap: theme2.space[3]
|
|
46424
46424
|
}
|
|
46425
|
-
}, /* @__PURE__ */
|
|
46425
|
+
}, /* @__PURE__ */ React2__default.createElement(Search, {
|
|
46426
46426
|
size: 20,
|
|
46427
46427
|
style: { color: theme2.colors.textSecondary, flexShrink: 0 }
|
|
46428
|
-
}), /* @__PURE__ */
|
|
46428
|
+
}), /* @__PURE__ */ React2__default.createElement("input", {
|
|
46429
46429
|
ref: searchInputRef,
|
|
46430
46430
|
type: "text",
|
|
46431
46431
|
value: searchQuery,
|
|
@@ -46449,14 +46449,14 @@ var SlideSearchBar = ({
|
|
|
46449
46449
|
onBlur: (e2) => {
|
|
46450
46450
|
e2.currentTarget.style.borderColor = theme2.colors.border;
|
|
46451
46451
|
}
|
|
46452
|
-
}), searchQuery && /* @__PURE__ */
|
|
46452
|
+
}), searchQuery && /* @__PURE__ */ React2__default.createElement("div", {
|
|
46453
46453
|
style: {
|
|
46454
46454
|
color: theme2.colors.textSecondary,
|
|
46455
46455
|
fontSize: theme2.fontSizes[0],
|
|
46456
46456
|
fontFamily: theme2.fonts.body,
|
|
46457
46457
|
flexShrink: 0
|
|
46458
46458
|
}
|
|
46459
|
-
}, searchResults.length > 0 ? /* @__PURE__ */
|
|
46459
|
+
}, searchResults.length > 0 ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, searchResults.reduce((sum, r2) => sum + r2.count, 0), " matches in ", searchResults.length, " ", "slide", searchResults.length !== 1 ? "s" : "") : "No results"), /* @__PURE__ */ React2__default.createElement("div", {
|
|
46460
46460
|
style: {
|
|
46461
46461
|
flex: 1,
|
|
46462
46462
|
display: "flex",
|
|
@@ -46467,7 +46467,7 @@ var SlideSearchBar = ({
|
|
|
46467
46467
|
minHeight: "32px",
|
|
46468
46468
|
padding: `0 ${theme2.space[1]}px`
|
|
46469
46469
|
}
|
|
46470
|
-
}, searchQuery && !searchResults.some((r2) => r2.slideIndex === searchStartSlide) && /* @__PURE__ */
|
|
46470
|
+
}, searchQuery && !searchResults.some((r2) => r2.slideIndex === searchStartSlide) && /* @__PURE__ */ React2__default.createElement("div", {
|
|
46471
46471
|
style: {
|
|
46472
46472
|
display: "inline-flex",
|
|
46473
46473
|
alignItems: "center",
|
|
@@ -46483,11 +46483,11 @@ var SlideSearchBar = ({
|
|
|
46483
46483
|
flexShrink: 0,
|
|
46484
46484
|
opacity: 0.7
|
|
46485
46485
|
}
|
|
46486
|
-
}, /* @__PURE__ */
|
|
46486
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
46487
46487
|
style: { fontWeight: 600 }
|
|
46488
|
-
}, "#", searchStartSlide + 1, " (start)"), /* @__PURE__ */
|
|
46488
|
+
}, "#", searchStartSlide + 1, " (start)"), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46489
46489
|
style: { opacity: 0.8 }
|
|
46490
|
-
}, "(no matches)")), searchResults.map((result, index2) => /* @__PURE__ */
|
|
46490
|
+
}, "(no matches)")), searchResults.map((result, index2) => /* @__PURE__ */ React2__default.createElement("button", {
|
|
46491
46491
|
key: result.slideIndex,
|
|
46492
46492
|
onClick: () => onResultClick(index2, result.slideIndex),
|
|
46493
46493
|
style: {
|
|
@@ -46517,11 +46517,11 @@ var SlideSearchBar = ({
|
|
|
46517
46517
|
}
|
|
46518
46518
|
},
|
|
46519
46519
|
title: `Slide ${result.slideIndex + 1}: ${slideTitles[result.slideIndex]}`
|
|
46520
|
-
}, /* @__PURE__ */
|
|
46520
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
46521
46521
|
style: { fontWeight: 600 }
|
|
46522
|
-
}, "#", result.slideIndex + 1), /* @__PURE__ */
|
|
46522
|
+
}, "#", result.slideIndex + 1), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46523
46523
|
style: { opacity: 0.8 }
|
|
46524
|
-
}, "(", result.count, " match", result.count !== 1 ? "es" : "", ")")))), searchQuery && onClear && /* @__PURE__ */
|
|
46524
|
+
}, "(", result.count, " match", result.count !== 1 ? "es" : "", ")")))), searchQuery && onClear && /* @__PURE__ */ React2__default.createElement("button", {
|
|
46525
46525
|
onClick: () => {
|
|
46526
46526
|
var _a;
|
|
46527
46527
|
onClear();
|
|
@@ -46548,7 +46548,7 @@ var SlideSearchBar = ({
|
|
|
46548
46548
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
46549
46549
|
},
|
|
46550
46550
|
title: "Clear search"
|
|
46551
|
-
}, "Clear"), /* @__PURE__ */
|
|
46551
|
+
}, "Clear"), /* @__PURE__ */ React2__default.createElement("button", {
|
|
46552
46552
|
onClick: onClose,
|
|
46553
46553
|
style: {
|
|
46554
46554
|
display: "flex",
|
|
@@ -46571,7 +46571,7 @@ var SlideSearchBar = ({
|
|
|
46571
46571
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
46572
46572
|
},
|
|
46573
46573
|
title: "Close search (Esc)"
|
|
46574
|
-
}, /* @__PURE__ */
|
|
46574
|
+
}, /* @__PURE__ */ React2__default.createElement(X, {
|
|
46575
46575
|
size: 16
|
|
46576
46576
|
})));
|
|
46577
46577
|
};
|
|
@@ -46843,7 +46843,7 @@ var SlidePresentationBook = ({
|
|
|
46843
46843
|
}, [slides.length, currentSlide]);
|
|
46844
46844
|
const leftSlideIndex = currentSlide;
|
|
46845
46845
|
const rightSlideIndex = viewMode === "book" ? currentSlide + 1 : -1;
|
|
46846
|
-
return /* @__PURE__ */
|
|
46846
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
46847
46847
|
ref: containerRef,
|
|
46848
46848
|
style: {
|
|
46849
46849
|
height: containerHeight,
|
|
@@ -46852,7 +46852,7 @@ var SlidePresentationBook = ({
|
|
|
46852
46852
|
backgroundColor: theme2.colors.background,
|
|
46853
46853
|
position: "relative"
|
|
46854
46854
|
}
|
|
46855
|
-
}, showNavigation && /* @__PURE__ */
|
|
46855
|
+
}, showNavigation && /* @__PURE__ */ React2__default.createElement(SlideNavigationHeader, {
|
|
46856
46856
|
currentSlide,
|
|
46857
46857
|
totalSlides: slides.length,
|
|
46858
46858
|
showTOC,
|
|
@@ -46875,7 +46875,7 @@ var SlidePresentationBook = ({
|
|
|
46875
46875
|
onClose,
|
|
46876
46876
|
onCollapseLeft: handleCollapseLeft,
|
|
46877
46877
|
onCollapseRight: handleCollapseRight
|
|
46878
|
-
}), /* @__PURE__ */
|
|
46878
|
+
}), /* @__PURE__ */ React2__default.createElement("div", {
|
|
46879
46879
|
style: {
|
|
46880
46880
|
flex: 1,
|
|
46881
46881
|
width: "100%",
|
|
@@ -46883,11 +46883,11 @@ var SlidePresentationBook = ({
|
|
|
46883
46883
|
position: "relative",
|
|
46884
46884
|
display: "flex"
|
|
46885
46885
|
}
|
|
46886
|
-
}, viewMode === "single" && effectiveTocDisplayMode === "sidebar" ? /* @__PURE__ */
|
|
46886
|
+
}, viewMode === "single" && effectiveTocDisplayMode === "sidebar" ? /* @__PURE__ */ React2__default.createElement(R, {
|
|
46887
46887
|
key: `toc-${tocSidebarPosition}`,
|
|
46888
46888
|
collapsed: !showTOC,
|
|
46889
46889
|
collapsibleSide: tocSidebarPosition,
|
|
46890
|
-
leftPanel: tocSidebarPosition === "left" ? /* @__PURE__ */
|
|
46890
|
+
leftPanel: tocSidebarPosition === "left" ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
46891
46891
|
style: {
|
|
46892
46892
|
height: "100%",
|
|
46893
46893
|
width: "100%",
|
|
@@ -46895,7 +46895,7 @@ var SlidePresentationBook = ({
|
|
|
46895
46895
|
overflowY: "auto",
|
|
46896
46896
|
overflowX: "hidden"
|
|
46897
46897
|
}
|
|
46898
|
-
}, /* @__PURE__ */
|
|
46898
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
46899
46899
|
style: {
|
|
46900
46900
|
padding: theme2.space[3],
|
|
46901
46901
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -46904,7 +46904,7 @@ var SlidePresentationBook = ({
|
|
|
46904
46904
|
top: 0,
|
|
46905
46905
|
zIndex: 1
|
|
46906
46906
|
}
|
|
46907
|
-
}, /* @__PURE__ */
|
|
46907
|
+
}, /* @__PURE__ */ React2__default.createElement("h3", {
|
|
46908
46908
|
style: {
|
|
46909
46909
|
margin: 0,
|
|
46910
46910
|
fontSize: theme2.fontSizes[3],
|
|
@@ -46912,18 +46912,18 @@ var SlidePresentationBook = ({
|
|
|
46912
46912
|
color: theme2.colors.text,
|
|
46913
46913
|
fontWeight: 600
|
|
46914
46914
|
}
|
|
46915
|
-
}, "Table of Contents"), /* @__PURE__ */
|
|
46915
|
+
}, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
|
|
46916
46916
|
style: {
|
|
46917
46917
|
margin: `${theme2.space[1]}px 0 0 0`,
|
|
46918
46918
|
fontSize: theme2.fontSizes[0],
|
|
46919
46919
|
color: theme2.colors.textSecondary,
|
|
46920
46920
|
fontFamily: theme2.fonts.body
|
|
46921
46921
|
}
|
|
46922
|
-
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */
|
|
46922
|
+
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
|
|
46923
46923
|
style: { padding: theme2.space[2] }
|
|
46924
46924
|
}, slideTitles.map((title, index2) => {
|
|
46925
46925
|
const isCurrentPage = index2 === currentSlide;
|
|
46926
|
-
return /* @__PURE__ */
|
|
46926
|
+
return /* @__PURE__ */ React2__default.createElement("button", {
|
|
46927
46927
|
key: index2,
|
|
46928
46928
|
onClick: () => navigateToSlide(index2),
|
|
46929
46929
|
style: {
|
|
@@ -46952,9 +46952,9 @@ var SlidePresentationBook = ({
|
|
|
46952
46952
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
46953
46953
|
}
|
|
46954
46954
|
}
|
|
46955
|
-
}, /* @__PURE__ */
|
|
46955
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
46956
46956
|
style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
|
|
46957
|
-
}, /* @__PURE__ */
|
|
46957
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
46958
46958
|
style: {
|
|
46959
46959
|
display: "inline-block",
|
|
46960
46960
|
minWidth: "24px",
|
|
@@ -46962,14 +46962,14 @@ var SlidePresentationBook = ({
|
|
|
46962
46962
|
fontFamily: theme2.fonts.monospace,
|
|
46963
46963
|
opacity: 0.6
|
|
46964
46964
|
}
|
|
46965
|
-
}, index2 + 1, "."), /* @__PURE__ */
|
|
46965
|
+
}, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
|
|
46966
46966
|
style: {
|
|
46967
46967
|
flex: 1,
|
|
46968
46968
|
overflow: "hidden",
|
|
46969
46969
|
textOverflow: "ellipsis",
|
|
46970
46970
|
whiteSpace: "nowrap"
|
|
46971
46971
|
}
|
|
46972
|
-
}, title)), isCurrentPage && /* @__PURE__ */
|
|
46972
|
+
}, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
|
|
46973
46973
|
style: {
|
|
46974
46974
|
position: "absolute",
|
|
46975
46975
|
left: 0,
|
|
@@ -46981,9 +46981,9 @@ var SlidePresentationBook = ({
|
|
|
46981
46981
|
borderRadius: "0 2px 2px 0"
|
|
46982
46982
|
}
|
|
46983
46983
|
}));
|
|
46984
|
-
}))) : /* @__PURE__ */
|
|
46984
|
+
}))) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
46985
46985
|
style: { height: "100%", width: "100%", position: "relative" }
|
|
46986
|
-
}, slides.length > 0 ? /* @__PURE__ */
|
|
46986
|
+
}, slides.length > 0 ? /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
46987
46987
|
content: slides[leftSlideIndex] || "",
|
|
46988
46988
|
slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
|
|
46989
46989
|
slideIndex: leftSlideIndex,
|
|
@@ -46997,7 +46997,7 @@ var SlidePresentationBook = ({
|
|
|
46997
46997
|
handlePromptCopy,
|
|
46998
46998
|
fontSizeScale,
|
|
46999
46999
|
searchQuery: showSearch ? searchQuery : void 0
|
|
47000
|
-
}) : /* @__PURE__ */
|
|
47000
|
+
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47001
47001
|
style: {
|
|
47002
47002
|
height: "100%",
|
|
47003
47003
|
display: "flex",
|
|
@@ -47008,7 +47008,7 @@ var SlidePresentationBook = ({
|
|
|
47008
47008
|
fontFamily: theme2.fonts.body
|
|
47009
47009
|
}
|
|
47010
47010
|
}, "No slides available")),
|
|
47011
|
-
rightPanel: tocSidebarPosition === "right" ? /* @__PURE__ */
|
|
47011
|
+
rightPanel: tocSidebarPosition === "right" ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
47012
47012
|
style: {
|
|
47013
47013
|
height: "100%",
|
|
47014
47014
|
width: "100%",
|
|
@@ -47016,7 +47016,7 @@ var SlidePresentationBook = ({
|
|
|
47016
47016
|
overflowY: "auto",
|
|
47017
47017
|
overflowX: "hidden"
|
|
47018
47018
|
}
|
|
47019
|
-
}, /* @__PURE__ */
|
|
47019
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47020
47020
|
style: {
|
|
47021
47021
|
padding: theme2.space[3],
|
|
47022
47022
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -47025,7 +47025,7 @@ var SlidePresentationBook = ({
|
|
|
47025
47025
|
top: 0,
|
|
47026
47026
|
zIndex: 1
|
|
47027
47027
|
}
|
|
47028
|
-
}, /* @__PURE__ */
|
|
47028
|
+
}, /* @__PURE__ */ React2__default.createElement("h3", {
|
|
47029
47029
|
style: {
|
|
47030
47030
|
margin: 0,
|
|
47031
47031
|
fontSize: theme2.fontSizes[3],
|
|
@@ -47033,18 +47033,18 @@ var SlidePresentationBook = ({
|
|
|
47033
47033
|
color: theme2.colors.text,
|
|
47034
47034
|
fontWeight: 600
|
|
47035
47035
|
}
|
|
47036
|
-
}, "Table of Contents"), /* @__PURE__ */
|
|
47036
|
+
}, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
|
|
47037
47037
|
style: {
|
|
47038
47038
|
margin: `${theme2.space[1]}px 0 0 0`,
|
|
47039
47039
|
fontSize: theme2.fontSizes[0],
|
|
47040
47040
|
color: theme2.colors.textSecondary,
|
|
47041
47041
|
fontFamily: theme2.fonts.body
|
|
47042
47042
|
}
|
|
47043
|
-
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */
|
|
47043
|
+
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
|
|
47044
47044
|
style: { padding: theme2.space[2] }
|
|
47045
47045
|
}, slideTitles.map((title, index2) => {
|
|
47046
47046
|
const isCurrentPage = index2 === currentSlide;
|
|
47047
|
-
return /* @__PURE__ */
|
|
47047
|
+
return /* @__PURE__ */ React2__default.createElement("button", {
|
|
47048
47048
|
key: index2,
|
|
47049
47049
|
onClick: () => navigateToSlide(index2),
|
|
47050
47050
|
style: {
|
|
@@ -47073,9 +47073,9 @@ var SlidePresentationBook = ({
|
|
|
47073
47073
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
47074
47074
|
}
|
|
47075
47075
|
}
|
|
47076
|
-
}, /* @__PURE__ */
|
|
47076
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47077
47077
|
style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
|
|
47078
|
-
}, /* @__PURE__ */
|
|
47078
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
47079
47079
|
style: {
|
|
47080
47080
|
display: "inline-block",
|
|
47081
47081
|
minWidth: "24px",
|
|
@@ -47083,14 +47083,14 @@ var SlidePresentationBook = ({
|
|
|
47083
47083
|
fontFamily: theme2.fonts.monospace,
|
|
47084
47084
|
opacity: 0.6
|
|
47085
47085
|
}
|
|
47086
|
-
}, index2 + 1, "."), /* @__PURE__ */
|
|
47086
|
+
}, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
|
|
47087
47087
|
style: {
|
|
47088
47088
|
flex: 1,
|
|
47089
47089
|
overflow: "hidden",
|
|
47090
47090
|
textOverflow: "ellipsis",
|
|
47091
47091
|
whiteSpace: "nowrap"
|
|
47092
47092
|
}
|
|
47093
|
-
}, title)), isCurrentPage && /* @__PURE__ */
|
|
47093
|
+
}, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47094
47094
|
style: {
|
|
47095
47095
|
position: "absolute",
|
|
47096
47096
|
left: 0,
|
|
@@ -47102,9 +47102,9 @@ var SlidePresentationBook = ({
|
|
|
47102
47102
|
borderRadius: "0 2px 2px 0"
|
|
47103
47103
|
}
|
|
47104
47104
|
}));
|
|
47105
|
-
}))) : /* @__PURE__ */
|
|
47105
|
+
}))) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47106
47106
|
style: { height: "100%", width: "100%", position: "relative" }
|
|
47107
|
-
}, slides.length > 0 ? /* @__PURE__ */
|
|
47107
|
+
}, slides.length > 0 ? /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47108
47108
|
content: slides[leftSlideIndex] || "",
|
|
47109
47109
|
slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
|
|
47110
47110
|
slideIndex: leftSlideIndex,
|
|
@@ -47118,7 +47118,7 @@ var SlidePresentationBook = ({
|
|
|
47118
47118
|
handlePromptCopy,
|
|
47119
47119
|
fontSizeScale,
|
|
47120
47120
|
searchQuery: showSearch ? searchQuery : void 0
|
|
47121
|
-
}) : /* @__PURE__ */
|
|
47121
|
+
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47122
47122
|
style: {
|
|
47123
47123
|
height: "100%",
|
|
47124
47124
|
display: "flex",
|
|
@@ -47133,106 +47133,7 @@ var SlidePresentationBook = ({
|
|
|
47133
47133
|
minSize: 15,
|
|
47134
47134
|
showCollapseButton: false,
|
|
47135
47135
|
theme: theme2
|
|
47136
|
-
}) : /* @__PURE__ */
|
|
47137
|
-
style: {
|
|
47138
|
-
position: "absolute",
|
|
47139
|
-
top: 0,
|
|
47140
|
-
left: 0,
|
|
47141
|
-
bottom: 0,
|
|
47142
|
-
width: "300px",
|
|
47143
|
-
zIndex: 10,
|
|
47144
|
-
backgroundColor: theme2.colors.backgroundSecondary,
|
|
47145
|
-
borderRight: `1px solid ${theme2.colors.border}`,
|
|
47146
|
-
overflowY: "auto",
|
|
47147
|
-
overflowX: "hidden"
|
|
47148
|
-
}
|
|
47149
|
-
}, /* @__PURE__ */ React19__default.createElement("div", {
|
|
47150
|
-
style: {
|
|
47151
|
-
padding: theme2.space[3],
|
|
47152
|
-
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
47153
|
-
backgroundColor: theme2.colors.background,
|
|
47154
|
-
position: "sticky",
|
|
47155
|
-
top: 0,
|
|
47156
|
-
zIndex: 1
|
|
47157
|
-
}
|
|
47158
|
-
}, /* @__PURE__ */ React19__default.createElement("h3", {
|
|
47159
|
-
style: {
|
|
47160
|
-
margin: 0,
|
|
47161
|
-
fontSize: theme2.fontSizes[3],
|
|
47162
|
-
fontFamily: theme2.fonts.heading,
|
|
47163
|
-
color: theme2.colors.text,
|
|
47164
|
-
fontWeight: 600
|
|
47165
|
-
}
|
|
47166
|
-
}, "Table of Contents"), /* @__PURE__ */ React19__default.createElement("p", {
|
|
47167
|
-
style: {
|
|
47168
|
-
margin: `${theme2.space[1]}px 0 0 0`,
|
|
47169
|
-
fontSize: theme2.fontSizes[0],
|
|
47170
|
-
color: theme2.colors.textSecondary,
|
|
47171
|
-
fontFamily: theme2.fonts.body
|
|
47172
|
-
}
|
|
47173
|
-
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React19__default.createElement("div", {
|
|
47174
|
-
style: { padding: theme2.space[2] }
|
|
47175
|
-
}, slideTitles.map((title, index2) => {
|
|
47176
|
-
const isCurrentPage = viewMode === "book" ? index2 === leftSlideIndex || index2 === rightSlideIndex : index2 === currentSlide;
|
|
47177
|
-
return /* @__PURE__ */ React19__default.createElement("button", {
|
|
47178
|
-
key: index2,
|
|
47179
|
-
onClick: () => navigateToSlide(index2),
|
|
47180
|
-
style: {
|
|
47181
|
-
display: "block",
|
|
47182
|
-
width: "100%",
|
|
47183
|
-
padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
|
|
47184
|
-
marginBottom: theme2.space[1],
|
|
47185
|
-
backgroundColor: isCurrentPage ? theme2.colors.primary : "transparent",
|
|
47186
|
-
border: "none",
|
|
47187
|
-
borderRadius: theme2.radii[1],
|
|
47188
|
-
color: isCurrentPage ? theme2.colors.background : theme2.colors.text,
|
|
47189
|
-
fontSize: theme2.fontSizes[1],
|
|
47190
|
-
fontFamily: theme2.fonts.body,
|
|
47191
|
-
textAlign: "left",
|
|
47192
|
-
cursor: "pointer",
|
|
47193
|
-
transition: "all 0.2s ease",
|
|
47194
|
-
position: "relative"
|
|
47195
|
-
},
|
|
47196
|
-
onMouseOver: (e2) => {
|
|
47197
|
-
if (!isCurrentPage) {
|
|
47198
|
-
e2.currentTarget.style.backgroundColor = theme2.colors.backgroundHover;
|
|
47199
|
-
}
|
|
47200
|
-
},
|
|
47201
|
-
onMouseOut: (e2) => {
|
|
47202
|
-
if (!isCurrentPage) {
|
|
47203
|
-
e2.currentTarget.style.backgroundColor = "transparent";
|
|
47204
|
-
}
|
|
47205
|
-
}
|
|
47206
|
-
}, /* @__PURE__ */ React19__default.createElement("div", {
|
|
47207
|
-
style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
|
|
47208
|
-
}, /* @__PURE__ */ React19__default.createElement("span", {
|
|
47209
|
-
style: {
|
|
47210
|
-
display: "inline-block",
|
|
47211
|
-
minWidth: "24px",
|
|
47212
|
-
fontSize: theme2.fontSizes[0],
|
|
47213
|
-
fontFamily: theme2.fonts.monospace,
|
|
47214
|
-
opacity: 0.6
|
|
47215
|
-
}
|
|
47216
|
-
}, index2 + 1, "."), /* @__PURE__ */ React19__default.createElement("span", {
|
|
47217
|
-
style: {
|
|
47218
|
-
flex: 1,
|
|
47219
|
-
overflow: "hidden",
|
|
47220
|
-
textOverflow: "ellipsis",
|
|
47221
|
-
whiteSpace: "nowrap"
|
|
47222
|
-
}
|
|
47223
|
-
}, title)), isCurrentPage && /* @__PURE__ */ React19__default.createElement("div", {
|
|
47224
|
-
style: {
|
|
47225
|
-
position: "absolute",
|
|
47226
|
-
left: 0,
|
|
47227
|
-
top: "50%",
|
|
47228
|
-
transform: "translateY(-50%)",
|
|
47229
|
-
width: "3px",
|
|
47230
|
-
height: "60%",
|
|
47231
|
-
backgroundColor: isCurrentPage ? theme2.colors.background : theme2.colors.primary,
|
|
47232
|
-
borderRadius: "0 2px 2px 0"
|
|
47233
|
-
}
|
|
47234
|
-
}));
|
|
47235
|
-
}))), effectiveTocDisplayMode === "overlay" && /* @__PURE__ */ React19__default.createElement("div", {
|
|
47136
|
+
}) : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, effectiveTocDisplayMode === "overlay" && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47236
47137
|
style: {
|
|
47237
47138
|
position: "absolute",
|
|
47238
47139
|
top: 0,
|
|
@@ -47247,7 +47148,7 @@ var SlidePresentationBook = ({
|
|
|
47247
47148
|
overflowY: "auto",
|
|
47248
47149
|
overflowX: "hidden"
|
|
47249
47150
|
}
|
|
47250
|
-
}, /* @__PURE__ */
|
|
47151
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47251
47152
|
style: {
|
|
47252
47153
|
padding: theme2.space[3],
|
|
47253
47154
|
borderBottom: `1px solid ${theme2.colors.border}`,
|
|
@@ -47256,7 +47157,7 @@ var SlidePresentationBook = ({
|
|
|
47256
47157
|
top: 0,
|
|
47257
47158
|
zIndex: 1
|
|
47258
47159
|
}
|
|
47259
|
-
}, /* @__PURE__ */
|
|
47160
|
+
}, /* @__PURE__ */ React2__default.createElement("h3", {
|
|
47260
47161
|
style: {
|
|
47261
47162
|
margin: 0,
|
|
47262
47163
|
fontSize: theme2.fontSizes[3],
|
|
@@ -47264,18 +47165,18 @@ var SlidePresentationBook = ({
|
|
|
47264
47165
|
color: theme2.colors.text,
|
|
47265
47166
|
fontWeight: 600
|
|
47266
47167
|
}
|
|
47267
|
-
}, "Table of Contents"), /* @__PURE__ */
|
|
47168
|
+
}, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
|
|
47268
47169
|
style: {
|
|
47269
47170
|
margin: `${theme2.space[1]}px 0 0 0`,
|
|
47270
47171
|
fontSize: theme2.fontSizes[0],
|
|
47271
47172
|
color: theme2.colors.textSecondary,
|
|
47272
47173
|
fontFamily: theme2.fonts.body
|
|
47273
47174
|
}
|
|
47274
|
-
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */
|
|
47175
|
+
}, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
|
|
47275
47176
|
style: { padding: theme2.space[2] }
|
|
47276
47177
|
}, slideTitles.map((title, index2) => {
|
|
47277
47178
|
const isCurrentPage = viewMode === "book" ? index2 === leftSlideIndex || index2 === rightSlideIndex : index2 === currentSlide;
|
|
47278
|
-
return /* @__PURE__ */
|
|
47179
|
+
return /* @__PURE__ */ React2__default.createElement("button", {
|
|
47279
47180
|
key: index2,
|
|
47280
47181
|
onClick: () => navigateToSlide(index2),
|
|
47281
47182
|
style: {
|
|
@@ -47304,9 +47205,9 @@ var SlidePresentationBook = ({
|
|
|
47304
47205
|
e2.currentTarget.style.backgroundColor = "transparent";
|
|
47305
47206
|
}
|
|
47306
47207
|
}
|
|
47307
|
-
}, /* @__PURE__ */
|
|
47208
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47308
47209
|
style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
|
|
47309
|
-
}, /* @__PURE__ */
|
|
47210
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
47310
47211
|
style: {
|
|
47311
47212
|
display: "inline-block",
|
|
47312
47213
|
minWidth: "24px",
|
|
@@ -47314,14 +47215,14 @@ var SlidePresentationBook = ({
|
|
|
47314
47215
|
fontFamily: theme2.fonts.monospace,
|
|
47315
47216
|
opacity: 0.6
|
|
47316
47217
|
}
|
|
47317
|
-
}, index2 + 1, "."), /* @__PURE__ */
|
|
47218
|
+
}, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
|
|
47318
47219
|
style: {
|
|
47319
47220
|
flex: 1,
|
|
47320
47221
|
overflow: "hidden",
|
|
47321
47222
|
textOverflow: "ellipsis",
|
|
47322
47223
|
whiteSpace: "nowrap"
|
|
47323
47224
|
}
|
|
47324
|
-
}, title)), isCurrentPage && /* @__PURE__ */
|
|
47225
|
+
}, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47325
47226
|
style: {
|
|
47326
47227
|
position: "absolute",
|
|
47327
47228
|
left: 0,
|
|
@@ -47333,7 +47234,7 @@ var SlidePresentationBook = ({
|
|
|
47333
47234
|
borderRadius: "0 2px 2px 0"
|
|
47334
47235
|
}
|
|
47335
47236
|
}));
|
|
47336
|
-
}))), effectiveTocDisplayMode === "overlay" && showTOC && /* @__PURE__ */
|
|
47237
|
+
}))), effectiveTocDisplayMode === "overlay" && showTOC && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47337
47238
|
onClick: () => setShowTOC(false),
|
|
47338
47239
|
style: {
|
|
47339
47240
|
position: "absolute",
|
|
@@ -47345,7 +47246,7 @@ var SlidePresentationBook = ({
|
|
|
47345
47246
|
zIndex: 9,
|
|
47346
47247
|
cursor: "pointer"
|
|
47347
47248
|
}
|
|
47348
|
-
}), /* @__PURE__ */
|
|
47249
|
+
}), /* @__PURE__ */ React2__default.createElement("div", {
|
|
47349
47250
|
style: {
|
|
47350
47251
|
flex: 1,
|
|
47351
47252
|
position: "relative",
|
|
@@ -47355,18 +47256,18 @@ var SlidePresentationBook = ({
|
|
|
47355
47256
|
backgroundColor: theme2.colors.background,
|
|
47356
47257
|
width: "100%"
|
|
47357
47258
|
}
|
|
47358
|
-
}, slides.length > 0 ? viewMode === "book" && slides.length > 1 ? /* @__PURE__ */
|
|
47259
|
+
}, slides.length > 0 ? viewMode === "book" && slides.length > 1 ? /* @__PURE__ */ React2__default.createElement(R, {
|
|
47359
47260
|
key: `${lastInteractedSide}-${collapsedSide}`,
|
|
47360
47261
|
collapsed: collapsedSide !== null,
|
|
47361
47262
|
collapsibleSide: lastInteractedSide,
|
|
47362
|
-
leftPanel: /* @__PURE__ */
|
|
47263
|
+
leftPanel: /* @__PURE__ */ React2__default.createElement("div", {
|
|
47363
47264
|
style: {
|
|
47364
47265
|
height: "100%",
|
|
47365
47266
|
width: "100%",
|
|
47366
47267
|
position: "relative",
|
|
47367
47268
|
overflow: "hidden"
|
|
47368
47269
|
}
|
|
47369
|
-
}, /* @__PURE__ */
|
|
47270
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47370
47271
|
style: {
|
|
47371
47272
|
height: "100%",
|
|
47372
47273
|
width: "100%",
|
|
@@ -47381,7 +47282,7 @@ var SlidePresentationBook = ({
|
|
|
47381
47282
|
right: 0,
|
|
47382
47283
|
bottom: 0
|
|
47383
47284
|
}
|
|
47384
|
-
}, /* @__PURE__ */
|
|
47285
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47385
47286
|
content: slides[leftSlideIndex] || "",
|
|
47386
47287
|
slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
|
|
47387
47288
|
slideIndex: leftSlideIndex,
|
|
@@ -47403,14 +47304,14 @@ var SlidePresentationBook = ({
|
|
|
47403
47304
|
},
|
|
47404
47305
|
disableScroll: false
|
|
47405
47306
|
}))),
|
|
47406
|
-
rightPanel: rightSlideIndex < slides.length ? /* @__PURE__ */
|
|
47307
|
+
rightPanel: rightSlideIndex < slides.length ? /* @__PURE__ */ React2__default.createElement("div", {
|
|
47407
47308
|
style: {
|
|
47408
47309
|
height: "100%",
|
|
47409
47310
|
width: "100%",
|
|
47410
47311
|
position: "relative",
|
|
47411
47312
|
overflow: "hidden"
|
|
47412
47313
|
}
|
|
47413
|
-
}, /* @__PURE__ */
|
|
47314
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47414
47315
|
style: {
|
|
47415
47316
|
height: "100%",
|
|
47416
47317
|
width: "100%",
|
|
@@ -47425,7 +47326,7 @@ var SlidePresentationBook = ({
|
|
|
47425
47326
|
right: 0,
|
|
47426
47327
|
bottom: 0
|
|
47427
47328
|
}
|
|
47428
|
-
}, /* @__PURE__ */
|
|
47329
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47429
47330
|
content: slides[rightSlideIndex] || "",
|
|
47430
47331
|
slideIdPrefix: `${slideIdPrefix}-${rightSlideIndex}`,
|
|
47431
47332
|
slideIndex: rightSlideIndex,
|
|
@@ -47446,7 +47347,7 @@ var SlidePresentationBook = ({
|
|
|
47446
47347
|
top: `${theme2.space[3]}px`
|
|
47447
47348
|
},
|
|
47448
47349
|
disableScroll: false
|
|
47449
|
-
}))) : /* @__PURE__ */
|
|
47350
|
+
}))) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47450
47351
|
style: {
|
|
47451
47352
|
height: "100%",
|
|
47452
47353
|
backgroundColor: theme2.colors.background,
|
|
@@ -47466,7 +47367,7 @@ var SlidePresentationBook = ({
|
|
|
47466
47367
|
minSize: 30,
|
|
47467
47368
|
showCollapseButton: false,
|
|
47468
47369
|
theme: theme2
|
|
47469
|
-
}) : /* @__PURE__ */
|
|
47370
|
+
}) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47470
47371
|
style: {
|
|
47471
47372
|
flex: "1 1 0%",
|
|
47472
47373
|
backgroundColor: "transparent",
|
|
@@ -47481,7 +47382,7 @@ var SlidePresentationBook = ({
|
|
|
47481
47382
|
justifyContent: "center"
|
|
47482
47383
|
} : {}
|
|
47483
47384
|
}
|
|
47484
|
-
}, /* @__PURE__ */
|
|
47385
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47485
47386
|
style: {
|
|
47486
47387
|
...viewMode === "book" && slides.length === 1 ? {
|
|
47487
47388
|
width: "50%",
|
|
@@ -47493,7 +47394,7 @@ var SlidePresentationBook = ({
|
|
|
47493
47394
|
height: "100%"
|
|
47494
47395
|
}
|
|
47495
47396
|
}
|
|
47496
|
-
}, /* @__PURE__ */
|
|
47397
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47497
47398
|
content: slides[leftSlideIndex] || "",
|
|
47498
47399
|
slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
|
|
47499
47400
|
slideIndex: leftSlideIndex,
|
|
@@ -47509,7 +47410,7 @@ var SlidePresentationBook = ({
|
|
|
47509
47410
|
searchQuery: showSearch ? searchQuery : void 0,
|
|
47510
47411
|
transparentBackground: false,
|
|
47511
47412
|
disableScroll: false
|
|
47512
|
-
}))) : /* @__PURE__ */
|
|
47413
|
+
}))) : /* @__PURE__ */ React2__default.createElement("div", {
|
|
47513
47414
|
style: {
|
|
47514
47415
|
height: "100%",
|
|
47515
47416
|
display: "flex",
|
|
@@ -47519,7 +47420,7 @@ var SlidePresentationBook = ({
|
|
|
47519
47420
|
fontSize: theme2.fontSizes[2],
|
|
47520
47421
|
fontFamily: theme2.fonts.body
|
|
47521
47422
|
}
|
|
47522
|
-
}, "No slides available")), viewMode === "book" && slides.length > 1 && /* @__PURE__ */
|
|
47423
|
+
}, "No slides available")), viewMode === "book" && slides.length > 1 && /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47523
47424
|
style: {
|
|
47524
47425
|
position: "absolute",
|
|
47525
47426
|
bottom: theme2.space[3],
|
|
@@ -47528,7 +47429,7 @@ var SlidePresentationBook = ({
|
|
|
47528
47429
|
color: theme2.colors.textSecondary,
|
|
47529
47430
|
fontFamily: theme2.fonts.monospace
|
|
47530
47431
|
}
|
|
47531
|
-
}, leftSlideIndex + 1), rightSlideIndex < slides.length && /* @__PURE__ */
|
|
47432
|
+
}, leftSlideIndex + 1), rightSlideIndex < slides.length && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47532
47433
|
style: {
|
|
47533
47434
|
position: "absolute",
|
|
47534
47435
|
bottom: theme2.space[3],
|
|
@@ -47537,7 +47438,7 @@ var SlidePresentationBook = ({
|
|
|
47537
47438
|
color: theme2.colors.textSecondary,
|
|
47538
47439
|
fontFamily: theme2.fonts.monospace
|
|
47539
47440
|
}
|
|
47540
|
-
}, rightSlideIndex + 1)))), showNavigation && slides.length > 1 && /* @__PURE__ */
|
|
47441
|
+
}, rightSlideIndex + 1)))), showNavigation && slides.length > 1 && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47541
47442
|
style: {
|
|
47542
47443
|
position: "absolute",
|
|
47543
47444
|
bottom: 0,
|
|
@@ -47547,14 +47448,14 @@ var SlidePresentationBook = ({
|
|
|
47547
47448
|
backgroundColor: theme2.colors.border,
|
|
47548
47449
|
opacity: 0.3
|
|
47549
47450
|
}
|
|
47550
|
-
}, /* @__PURE__ */
|
|
47451
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47551
47452
|
style: {
|
|
47552
47453
|
height: "100%",
|
|
47553
47454
|
width: `${(currentSlide + stepSize) / slides.length * 100}%`,
|
|
47554
47455
|
backgroundColor: theme2.colors.primary,
|
|
47555
47456
|
transition: "width 0.3s ease"
|
|
47556
47457
|
}
|
|
47557
|
-
})), /* @__PURE__ */
|
|
47458
|
+
})), /* @__PURE__ */ React2__default.createElement(SlideSearchBar, {
|
|
47558
47459
|
showSearch,
|
|
47559
47460
|
searchQuery,
|
|
47560
47461
|
setSearchQuery,
|
|
@@ -47573,11 +47474,10 @@ var SlidePresentationBook = ({
|
|
|
47573
47474
|
};
|
|
47574
47475
|
var DocumentView = ({
|
|
47575
47476
|
content: content2,
|
|
47576
|
-
showSegmented =
|
|
47477
|
+
showSegmented = false,
|
|
47577
47478
|
onCheckboxChange,
|
|
47578
47479
|
onSectionClick,
|
|
47579
47480
|
maxWidth = "900px",
|
|
47580
|
-
padding = "24px",
|
|
47581
47481
|
showSectionHeaders = true,
|
|
47582
47482
|
showSeparators = true,
|
|
47583
47483
|
slideIdPrefix = "document",
|
|
@@ -47608,20 +47508,20 @@ var DocumentView = ({
|
|
|
47608
47508
|
onSectionClick == null ? void 0 : onSectionClick(index2);
|
|
47609
47509
|
}, [scrollToSection, onSectionClick]);
|
|
47610
47510
|
if (typeof content2 === "string") {
|
|
47611
|
-
return /* @__PURE__ */
|
|
47511
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
47612
47512
|
ref: containerRef,
|
|
47613
47513
|
style: {
|
|
47614
47514
|
height: "100%",
|
|
47615
47515
|
overflow: "auto",
|
|
47616
|
-
backgroundColor
|
|
47617
|
-
padding: typeof padding === "number" ? `${padding}px` : padding
|
|
47516
|
+
backgroundColor
|
|
47618
47517
|
}
|
|
47619
|
-
}, /* @__PURE__ */
|
|
47518
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47620
47519
|
style: {
|
|
47621
47520
|
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
47622
|
-
margin: "0 auto"
|
|
47521
|
+
margin: "0 auto",
|
|
47522
|
+
height: "100%"
|
|
47623
47523
|
}
|
|
47624
|
-
}, /* @__PURE__ */
|
|
47524
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47625
47525
|
content: content2,
|
|
47626
47526
|
slideIdPrefix,
|
|
47627
47527
|
slideIndex: 0,
|
|
@@ -47634,7 +47534,8 @@ var DocumentView = ({
|
|
|
47634
47534
|
handleRunBashCommand,
|
|
47635
47535
|
fontSizeScale,
|
|
47636
47536
|
handlePromptCopy,
|
|
47637
|
-
repositoryInfo
|
|
47537
|
+
repositoryInfo,
|
|
47538
|
+
transparentBackground
|
|
47638
47539
|
})));
|
|
47639
47540
|
}
|
|
47640
47541
|
if (!showSegmented) {
|
|
@@ -47643,20 +47544,20 @@ var DocumentView = ({
|
|
|
47643
47544
|
---
|
|
47644
47545
|
|
|
47645
47546
|
`);
|
|
47646
|
-
return /* @__PURE__ */
|
|
47547
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
47647
47548
|
ref: containerRef,
|
|
47648
47549
|
style: {
|
|
47649
47550
|
height: "100%",
|
|
47650
47551
|
overflow: "auto",
|
|
47651
|
-
backgroundColor
|
|
47652
|
-
padding: typeof padding === "number" ? `${padding}px` : padding
|
|
47552
|
+
backgroundColor
|
|
47653
47553
|
}
|
|
47654
|
-
}, /* @__PURE__ */
|
|
47554
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47655
47555
|
style: {
|
|
47656
47556
|
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
47657
|
-
margin: "0 auto"
|
|
47557
|
+
margin: "0 auto",
|
|
47558
|
+
height: "100%"
|
|
47658
47559
|
}
|
|
47659
|
-
}, /* @__PURE__ */
|
|
47560
|
+
}, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47660
47561
|
content: fullContent,
|
|
47661
47562
|
slideIdPrefix,
|
|
47662
47563
|
slideIndex: 0,
|
|
@@ -47669,23 +47570,23 @@ var DocumentView = ({
|
|
|
47669
47570
|
handleRunBashCommand,
|
|
47670
47571
|
fontSizeScale,
|
|
47671
47572
|
handlePromptCopy,
|
|
47672
|
-
repositoryInfo
|
|
47573
|
+
repositoryInfo,
|
|
47574
|
+
transparentBackground
|
|
47673
47575
|
})));
|
|
47674
47576
|
}
|
|
47675
|
-
return /* @__PURE__ */
|
|
47577
|
+
return /* @__PURE__ */ React2__default.createElement("div", {
|
|
47676
47578
|
ref: containerRef,
|
|
47677
47579
|
style: {
|
|
47678
47580
|
height: "100%",
|
|
47679
47581
|
overflow: "auto",
|
|
47680
|
-
backgroundColor
|
|
47681
|
-
padding: typeof padding === "number" ? `${padding}px` : padding
|
|
47582
|
+
backgroundColor
|
|
47682
47583
|
}
|
|
47683
|
-
}, /* @__PURE__ */
|
|
47584
|
+
}, /* @__PURE__ */ React2__default.createElement("div", {
|
|
47684
47585
|
style: {
|
|
47685
47586
|
maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
|
|
47686
47587
|
margin: "0 auto"
|
|
47687
47588
|
}
|
|
47688
|
-
}, content2.map((slideContent, index2) => /* @__PURE__ */
|
|
47589
|
+
}, content2.map((slideContent, index2) => /* @__PURE__ */ React2__default.createElement("div", {
|
|
47689
47590
|
key: index2,
|
|
47690
47591
|
ref: (el) => {
|
|
47691
47592
|
if (el)
|
|
@@ -47695,7 +47596,7 @@ var DocumentView = ({
|
|
|
47695
47596
|
marginBottom: index2 < content2.length - 1 ? "48px" : "0",
|
|
47696
47597
|
scrollMarginTop: "20px"
|
|
47697
47598
|
}
|
|
47698
|
-
}, showSectionHeaders && /* @__PURE__ */
|
|
47599
|
+
}, showSectionHeaders && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47699
47600
|
onClick: () => handleSectionClick(index2),
|
|
47700
47601
|
style: {
|
|
47701
47602
|
display: "flex",
|
|
@@ -47714,7 +47615,7 @@ var DocumentView = ({
|
|
|
47714
47615
|
onMouseOut: (e2) => {
|
|
47715
47616
|
e2.currentTarget.style.opacity = "0.7";
|
|
47716
47617
|
}
|
|
47717
|
-
}, /* @__PURE__ */
|
|
47618
|
+
}, /* @__PURE__ */ React2__default.createElement("span", {
|
|
47718
47619
|
style: {
|
|
47719
47620
|
fontSize: "11px",
|
|
47720
47621
|
fontWeight: 600,
|
|
@@ -47722,7 +47623,7 @@ var DocumentView = ({
|
|
|
47722
47623
|
textTransform: "uppercase",
|
|
47723
47624
|
letterSpacing: "0.5px"
|
|
47724
47625
|
}
|
|
47725
|
-
}, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */
|
|
47626
|
+
}, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
|
|
47726
47627
|
content: slideContent,
|
|
47727
47628
|
slideIdPrefix: `${slideIdPrefix}-${index2}`,
|
|
47728
47629
|
slideIndex: index2,
|
|
@@ -47735,8 +47636,9 @@ var DocumentView = ({
|
|
|
47735
47636
|
handleRunBashCommand,
|
|
47736
47637
|
fontSizeScale,
|
|
47737
47638
|
handlePromptCopy,
|
|
47738
|
-
repositoryInfo
|
|
47739
|
-
|
|
47639
|
+
repositoryInfo,
|
|
47640
|
+
transparentBackground
|
|
47641
|
+
}), showSeparators && index2 < content2.length - 1 && /* @__PURE__ */ React2__default.createElement("div", {
|
|
47740
47642
|
style: {
|
|
47741
47643
|
marginTop: "32px",
|
|
47742
47644
|
marginBottom: "32px",
|