@industry-theme/markdown-panels 0.2.8 → 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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import * as React19 from "react";
3
- import React19__default, { forwardRef, createElement, createContext, useContext, useRef, useImperativeHandle, useEffect, useMemo, useState, useCallback, useLayoutEffect } from "react";
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
@@ -101,6 +101,23 @@ const createLucideIcon = (iconName, iconNode) => {
101
101
  Component.displayName = toPascalCase(iconName);
102
102
  return Component;
103
103
  };
104
+ /**
105
+ * @license lucide-react v0.552.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */
110
+ const __iconNode$l = [
111
+ ["path", { d: "M12 7v14", key: "1akyts" }],
112
+ [
113
+ "path",
114
+ {
115
+ d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",
116
+ key: "ruj8y"
117
+ }
118
+ ]
119
+ ];
120
+ const BookOpen = createLucideIcon("book-open", __iconNode$l);
104
121
  /**
105
122
  * @license lucide-react v0.552.0 - ISC
106
123
  *
@@ -40459,14 +40476,14 @@ var ZoomPanPinch = (
40459
40476
  return ZoomPanPinch2;
40460
40477
  })()
40461
40478
  );
40462
- var Context = React19__default.createContext(null);
40479
+ var Context = React2__default.createContext(null);
40463
40480
  var getContent = function(children2, ctx) {
40464
40481
  if (typeof children2 === "function") {
40465
40482
  return children2(ctx);
40466
40483
  }
40467
40484
  return children2;
40468
40485
  };
40469
- var TransformWrapper = React19__default.forwardRef(function(props2, ref) {
40486
+ var TransformWrapper = React2__default.forwardRef(function(props2, ref) {
40470
40487
  var instance = useRef(new ZoomPanPinch(props2)).current;
40471
40488
  var content2 = getContent(props2.children, getControls(instance));
40472
40489
  useImperativeHandle(ref, function() {
@@ -40475,9 +40492,9 @@ var TransformWrapper = React19__default.forwardRef(function(props2, ref) {
40475
40492
  useEffect(function() {
40476
40493
  instance.update(props2);
40477
40494
  }, [instance, props2]);
40478
- return React19__default.createElement(Context.Provider, { value: instance }, content2);
40495
+ return React2__default.createElement(Context.Provider, { value: instance }, content2);
40479
40496
  });
40480
- React19__default.forwardRef(function(props2, ref) {
40497
+ React2__default.forwardRef(function(props2, ref) {
40481
40498
  var localRef = useRef(null);
40482
40499
  var instance = useContext(Context);
40483
40500
  useEffect(function() {
@@ -40489,7 +40506,7 @@ React19__default.forwardRef(function(props2, ref) {
40489
40506
  }
40490
40507
  });
40491
40508
  }, [instance]);
40492
- return React19__default.createElement("div", __assign({}, props2, { ref: mergeRefs([localRef, ref]) }));
40509
+ return React2__default.createElement("div", __assign({}, props2, { ref: mergeRefs([localRef, ref]) }));
40493
40510
  });
40494
40511
  function styleInject(css2, ref) {
40495
40512
  if (ref === void 0) ref = {};
@@ -40533,10 +40550,10 @@ var TransformComponent = function(_a) {
40533
40550
  cleanupWindowEvents === null || cleanupWindowEvents === void 0 ? void 0 : cleanupWindowEvents();
40534
40551
  };
40535
40552
  }, []);
40536
- return React19__default.createElement(
40553
+ return React2__default.createElement(
40537
40554
  "div",
40538
40555
  __assign({}, wrapperProps, { ref: wrapperRef, className: "".concat(baseClasses.wrapperClass, " ").concat(styles.wrapper, " ").concat(wrapperClass), style: wrapperStyle }),
40539
- React19__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
40556
+ React2__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
40540
40557
  );
40541
40558
  };
40542
40559
  var terminalTheme = {
@@ -41203,17 +41220,17 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
41203
41220
  e.currentTarget.style.backgroundColor = "transparent";
41204
41221
  e.currentTarget.style.color = theme2.colors.textSecondary;
41205
41222
  };
41206
- return /* @__PURE__ */ React19__default.createElement("div", {
41223
+ return /* @__PURE__ */ React2__default.createElement("div", {
41207
41224
  style: overlayStyle,
41208
41225
  onClick: onClose
41209
- }, /* @__PURE__ */ React19__default.createElement("div", {
41226
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41210
41227
  style: modalStyle,
41211
41228
  onClick: (e) => e.stopPropagation()
41212
- }, /* @__PURE__ */ React19__default.createElement("div", {
41229
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41213
41230
  style: headerStyle
41214
- }, /* @__PURE__ */ React19__default.createElement("h3", {
41231
+ }, /* @__PURE__ */ React2__default.createElement("h3", {
41215
41232
  style: titleStyle
41216
- }, "HTML Preview"), /* @__PURE__ */ React19__default.createElement("button", {
41233
+ }, "HTML Preview"), /* @__PURE__ */ React2__default.createElement("button", {
41217
41234
  onClick: (e) => {
41218
41235
  e.stopPropagation();
41219
41236
  onClose();
@@ -41223,9 +41240,9 @@ function IndustryHtmlModal({ isOpen, onClose, htmlContent, theme: theme2 }) {
41223
41240
  onMouseLeave: handleCloseButtonLeave,
41224
41241
  title: "Close",
41225
41242
  "aria-label": "Close modal"
41226
- }, "×")), /* @__PURE__ */ React19__default.createElement("div", {
41243
+ }, "×")), /* @__PURE__ */ React2__default.createElement("div", {
41227
41244
  style: contentStyle
41228
- }, /* @__PURE__ */ React19__default.createElement("div", {
41245
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41229
41246
  dangerouslySetInnerHTML: { __html: htmlContent }
41230
41247
  }))));
41231
41248
  }
@@ -41256,7 +41273,7 @@ function IndustryMermaidDiagram({
41256
41273
  const [containerElement, setContainerElement] = useState(null);
41257
41274
  const [copiedError, setCopiedError] = useState(false);
41258
41275
  const observerRef = useRef(null);
41259
- const containerRef = React19__default.useCallback((node2) => {
41276
+ const containerRef = React2__default.useCallback((node2) => {
41260
41277
  setContainerElement(node2);
41261
41278
  if (observerRef.current) {
41262
41279
  observerRef.current.disconnect();
@@ -41460,15 +41477,15 @@ ${errorDetails.code}
41460
41477
  fontFamily: theme2.fonts.body
41461
41478
  };
41462
41479
  if (isModalMode || isFullSlide) {
41463
- return /* @__PURE__ */ React19__default.createElement("div", {
41480
+ return /* @__PURE__ */ React2__default.createElement("div", {
41464
41481
  ref: containerRef,
41465
41482
  style: containerStyle,
41466
41483
  className: "mermaid-container"
41467
- }, !hasRendered && /* @__PURE__ */ React19__default.createElement("div", {
41484
+ }, !hasRendered && /* @__PURE__ */ React2__default.createElement("div", {
41468
41485
  style: placeholderStyle
41469
- }, /* @__PURE__ */ React19__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React19__default.createElement("div", {
41486
+ }, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
41470
41487
  style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
41471
- }, "Loading...")), errorDetails && /* @__PURE__ */ React19__default.createElement("div", {
41488
+ }, "Loading...")), errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
41472
41489
  style: {
41473
41490
  padding: theme2.space[4],
41474
41491
  background: `${theme2.colors.error}22`,
@@ -41480,16 +41497,16 @@ ${errorDetails.code}
41480
41497
  maxWidth: "600px",
41481
41498
  margin: "0 auto"
41482
41499
  }
41483
- }, /* @__PURE__ */ React19__default.createElement("div", {
41500
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41484
41501
  style: {
41485
41502
  display: "flex",
41486
41503
  justifyContent: "space-between",
41487
41504
  alignItems: "flex-start",
41488
41505
  marginBottom: theme2.space[2]
41489
41506
  }
41490
- }, /* @__PURE__ */ React19__default.createElement("div", {
41507
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41491
41508
  style: { fontWeight: theme2.fontWeights.bold }
41492
- }, "Failed to render Mermaid diagram"), /* @__PURE__ */ React19__default.createElement("button", {
41509
+ }, "Failed to render Mermaid diagram"), /* @__PURE__ */ React2__default.createElement("button", {
41493
41510
  onClick: handleCopyError,
41494
41511
  style: {
41495
41512
  padding: theme2.space[1],
@@ -41506,11 +41523,11 @@ ${errorDetails.code}
41506
41523
  transition: "all 0.2s ease"
41507
41524
  },
41508
41525
  title: "Copy error details"
41509
- }, copiedError ? /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Check, {
41526
+ }, copiedError ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Check, {
41510
41527
  size: 14
41511
- }), "Copied") : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Copy, {
41528
+ }), "Copied") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Copy, {
41512
41529
  size: 14
41513
- }), "Copy Error"))), /* @__PURE__ */ React19__default.createElement("div", {
41530
+ }), "Copy Error"))), /* @__PURE__ */ React2__default.createElement("div", {
41514
41531
  style: {
41515
41532
  fontSize: theme2.fontSizes[0],
41516
41533
  opacity: 0.8,
@@ -41519,11 +41536,11 @@ ${errorDetails.code}
41519
41536
  }
41520
41537
  }, errorDetails.message)));
41521
41538
  }
41522
- return /* @__PURE__ */ React19__default.createElement("div", {
41539
+ return /* @__PURE__ */ React2__default.createElement("div", {
41523
41540
  style: { position: "relative", width: "100%" }
41524
- }, /* @__PURE__ */ React19__default.createElement("div", {
41541
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41525
41542
  style: { position: "relative", width: "100%" }
41526
- }, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */ React19__default.createElement("div", {
41543
+ }, hasRendered && !isModalMode && onExpandClick && !errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
41527
41544
  style: {
41528
41545
  position: "absolute",
41529
41546
  top: theme2.space[2],
@@ -41532,7 +41549,7 @@ ${errorDetails.code}
41532
41549
  display: "flex",
41533
41550
  gap: theme2.space[1]
41534
41551
  }
41535
- }, /* @__PURE__ */ React19__default.createElement("button", {
41552
+ }, /* @__PURE__ */ React2__default.createElement("button", {
41536
41553
  onClick: (e) => {
41537
41554
  e.stopPropagation();
41538
41555
  onExpandClick();
@@ -41551,17 +41568,17 @@ ${errorDetails.code}
41551
41568
  height: "28px"
41552
41569
  },
41553
41570
  title: "View fullscreen"
41554
- }, /* @__PURE__ */ React19__default.createElement(Expand, {
41571
+ }, /* @__PURE__ */ React2__default.createElement(Expand, {
41555
41572
  size: 14
41556
- }))), /* @__PURE__ */ React19__default.createElement("div", {
41573
+ }))), /* @__PURE__ */ React2__default.createElement("div", {
41557
41574
  ref: containerRef,
41558
41575
  style: containerStyle,
41559
41576
  className: "mermaid-container"
41560
- }, !hasRendered && /* @__PURE__ */ React19__default.createElement("div", {
41577
+ }, !hasRendered && /* @__PURE__ */ React2__default.createElement("div", {
41561
41578
  style: placeholderStyle
41562
- }, /* @__PURE__ */ React19__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React19__default.createElement("div", {
41579
+ }, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
41563
41580
  style: { fontSize: theme2.fontSizes[1], marginTop: theme2.space[2], opacity: 0.7 }
41564
- }, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */ React19__default.createElement("div", {
41581
+ }, isIntersecting ? "Loading..." : "Scroll to view")), errorDetails && /* @__PURE__ */ React2__default.createElement("div", {
41565
41582
  style: {
41566
41583
  padding: theme2.space[4],
41567
41584
  background: `${theme2.colors.error}22`,
@@ -41571,16 +41588,16 @@ ${errorDetails.code}
41571
41588
  fontFamily: theme2.fonts.monospace,
41572
41589
  fontSize: theme2.fontSizes[1]
41573
41590
  }
41574
- }, /* @__PURE__ */ React19__default.createElement("div", {
41591
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41575
41592
  style: {
41576
41593
  display: "flex",
41577
41594
  justifyContent: "space-between",
41578
41595
  alignItems: "flex-start",
41579
41596
  marginBottom: theme2.space[2]
41580
41597
  }
41581
- }, /* @__PURE__ */ React19__default.createElement("div", {
41598
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41582
41599
  style: { fontWeight: theme2.fontWeights.bold }
41583
- }, "Failed to render Mermaid diagram"), /* @__PURE__ */ React19__default.createElement("button", {
41600
+ }, "Failed to render Mermaid diagram"), /* @__PURE__ */ React2__default.createElement("button", {
41584
41601
  onClick: handleCopyError,
41585
41602
  style: {
41586
41603
  padding: theme2.space[1],
@@ -41597,11 +41614,11 @@ ${errorDetails.code}
41597
41614
  transition: "all 0.2s ease"
41598
41615
  },
41599
41616
  title: "Copy error details"
41600
- }, copiedError ? /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Check, {
41617
+ }, copiedError ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Check, {
41601
41618
  size: 14
41602
- }), "Copied") : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Copy, {
41619
+ }), "Copied") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Copy, {
41603
41620
  size: 14
41604
- }), "Copy Error"))), /* @__PURE__ */ React19__default.createElement("div", {
41621
+ }), "Copy Error"))), /* @__PURE__ */ React2__default.createElement("div", {
41605
41622
  style: {
41606
41623
  fontSize: theme2.fontSizes[0],
41607
41624
  opacity: 0.8,
@@ -41685,18 +41702,18 @@ function IndustryLazyMermaidDiagram({
41685
41702
  };
41686
41703
  };
41687
41704
  if (!isMounted) {
41688
- return /* @__PURE__ */ React19__default.createElement("div", {
41705
+ return /* @__PURE__ */ React2__default.createElement("div", {
41689
41706
  style: getPlaceholderStyle()
41690
- }, /* @__PURE__ */ React19__default.createElement("div", {
41707
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41691
41708
  style: getTextStyle()
41692
- }, /* @__PURE__ */ React19__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React19__default.createElement("div", {
41709
+ }, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
41693
41710
  style: getSecondaryTextStyle()
41694
41711
  }, "Loading...")));
41695
41712
  }
41696
- return /* @__PURE__ */ React19__default.createElement("div", {
41713
+ return /* @__PURE__ */ React2__default.createElement("div", {
41697
41714
  ref: containerRef,
41698
41715
  style: { position: "relative", width: "100%" }
41699
- }, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */ React19__default.createElement("button", {
41716
+ }, hasRendered && onShowInPanel && !hasError && /* @__PURE__ */ React2__default.createElement("button", {
41700
41717
  onClick: (e) => {
41701
41718
  e.stopPropagation();
41702
41719
  const titleMatch = code2.match(/^(?:%%\s*(.+)|(\w+)\s)/m);
@@ -41729,20 +41746,20 @@ function IndustryLazyMermaidDiagram({
41729
41746
  e.currentTarget.style.backgroundColor = theme2.colors.background;
41730
41747
  },
41731
41748
  title: "Show in diagram panel"
41732
- }, /* @__PURE__ */ React19__default.createElement(MoveRight, {
41749
+ }, /* @__PURE__ */ React2__default.createElement(MoveRight, {
41733
41750
  size: 14
41734
- })), hasRendered ? /* @__PURE__ */ React19__default.createElement(IndustryMermaidDiagram, {
41751
+ })), hasRendered ? /* @__PURE__ */ React2__default.createElement(IndustryMermaidDiagram, {
41735
41752
  code: code2,
41736
41753
  id,
41737
41754
  onCopyError,
41738
41755
  onError: setHasError,
41739
41756
  theme: theme2,
41740
41757
  onExpandClick
41741
- }) : /* @__PURE__ */ React19__default.createElement("div", {
41758
+ }) : /* @__PURE__ */ React2__default.createElement("div", {
41742
41759
  style: getPlaceholderStyle()
41743
- }, /* @__PURE__ */ React19__default.createElement("div", {
41760
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41744
41761
  style: getTextStyle()
41745
- }, /* @__PURE__ */ React19__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React19__default.createElement("div", {
41762
+ }, /* @__PURE__ */ React2__default.createElement("div", null, "📊 Mermaid Diagram"), /* @__PURE__ */ React2__default.createElement("div", {
41746
41763
  style: getSecondaryTextStyle()
41747
41764
  }, isIntersecting ? "Loading..." : "Scroll to view"))));
41748
41765
  }
@@ -41753,7 +41770,7 @@ var extractTextFromChildren = (children2) => {
41753
41770
  if (Array.isArray(children2)) {
41754
41771
  return children2.map(extractTextFromChildren).join("");
41755
41772
  }
41756
- if (React19__default.isValidElement(children2)) {
41773
+ if (React2__default.isValidElement(children2)) {
41757
41774
  const props2 = children2.props;
41758
41775
  if (props2.children) {
41759
41776
  return extractTextFromChildren(props2.children);
@@ -41768,7 +41785,7 @@ var LinkWithLoadingIndicator = ({ href, children: children2, onClick, className
41768
41785
  onClick(href, e);
41769
41786
  }
41770
41787
  };
41771
- return /* @__PURE__ */ React19__default.createElement("a", {
41788
+ return /* @__PURE__ */ React2__default.createElement("a", {
41772
41789
  href,
41773
41790
  onClick: handleClick,
41774
41791
  className,
@@ -41854,10 +41871,10 @@ var IndustryBashCommandDropdown = ({
41854
41871
  });
41855
41872
  const hasMultipleCommands = commands.length > 1;
41856
41873
  const singleCommand = commands.length === 1 ? commands[0].command : allCommands;
41857
- return /* @__PURE__ */ React19__default.createElement("div", {
41874
+ return /* @__PURE__ */ React2__default.createElement("div", {
41858
41875
  ref: dropdownRef,
41859
41876
  style: { position: "relative", display: "inline-block" }
41860
- }, hasMultipleCommands ? /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement("button", {
41877
+ }, hasMultipleCommands ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("button", {
41861
41878
  onClick: () => setIsOpen(!isOpen),
41862
41879
  disabled: isRunning,
41863
41880
  style: buttonStyle,
@@ -41871,15 +41888,15 @@ var IndustryBashCommandDropdown = ({
41871
41888
  e.currentTarget.style.backgroundColor = theme2.colors.primary;
41872
41889
  }
41873
41890
  }
41874
- }, isRunning ? /* @__PURE__ */ React19__default.createElement("span", {
41891
+ }, isRunning ? /* @__PURE__ */ React2__default.createElement("span", {
41875
41892
  style: { fontSize: theme2.fontSizes[1] }
41876
- }, "...") : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Play, {
41893
+ }, "...") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Play, {
41877
41894
  size: 14
41878
- }), "Run", /* @__PURE__ */ React19__default.createElement(ChevronDown, {
41895
+ }), "Run", /* @__PURE__ */ React2__default.createElement(ChevronDown, {
41879
41896
  size: 14
41880
- }))), isOpen && /* @__PURE__ */ React19__default.createElement("div", {
41897
+ }))), isOpen && /* @__PURE__ */ React2__default.createElement("div", {
41881
41898
  style: dropdownStyle
41882
- }, /* @__PURE__ */ React19__default.createElement("div", {
41899
+ }, /* @__PURE__ */ React2__default.createElement("div", {
41883
41900
  style: {
41884
41901
  padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
41885
41902
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -41888,7 +41905,7 @@ var IndustryBashCommandDropdown = ({
41888
41905
  color: theme2.colors.textSecondary,
41889
41906
  fontFamily: theme2.fonts.body
41890
41907
  }
41891
- }, "Select command to run"), /* @__PURE__ */ React19__default.createElement("div", {
41908
+ }, "Select command to run"), /* @__PURE__ */ React2__default.createElement("div", {
41892
41909
  style: {
41893
41910
  padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
41894
41911
  backgroundColor: theme2.colors.muted,
@@ -41908,7 +41925,7 @@ var IndustryBashCommandDropdown = ({
41908
41925
  }
41909
41926
  }, "🚀 Run all (", commands.length, " commands)"), commands.map((cmd, index2) => {
41910
41927
  const [isHovered, setIsHovered] = useState(false);
41911
- return /* @__PURE__ */ React19__default.createElement("div", {
41928
+ return /* @__PURE__ */ React2__default.createElement("div", {
41912
41929
  key: index2,
41913
41930
  style: dropdownItemStyle(isHovered),
41914
41931
  onClick: () => handleRunCommand(cmd.command),
@@ -41916,7 +41933,7 @@ var IndustryBashCommandDropdown = ({
41916
41933
  onMouseLeave: () => setIsHovered(false),
41917
41934
  title: cmd.command
41918
41935
  }, getCommandDisplayName(cmd));
41919
- }))) : /* @__PURE__ */ React19__default.createElement("button", {
41936
+ }))) : /* @__PURE__ */ React2__default.createElement("button", {
41920
41937
  onClick: () => handleRunCommand(singleCommand),
41921
41938
  disabled: isRunning,
41922
41939
  style: buttonStyle,
@@ -41930,9 +41947,9 @@ var IndustryBashCommandDropdown = ({
41930
41947
  e.currentTarget.style.backgroundColor = theme2.colors.primary;
41931
41948
  }
41932
41949
  }
41933
- }, isRunning ? /* @__PURE__ */ React19__default.createElement("span", {
41950
+ }, isRunning ? /* @__PURE__ */ React2__default.createElement("span", {
41934
41951
  style: { fontSize: theme2.fontSizes[1] }
41935
- }, "...") : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement(Play, {
41952
+ }, "...") : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement(Play, {
41936
41953
  size: 14
41937
41954
  }), "Run")));
41938
41955
  };
@@ -41951,7 +41968,7 @@ var isVideoUrl = (url, alt) => {
41951
41968
  }
41952
41969
  return false;
41953
41970
  };
41954
- var OptimizedMarkdownMedia = React19__default.memo(({
41971
+ var OptimizedMarkdownMedia = React2__default.memo(({
41955
41972
  src,
41956
41973
  alt,
41957
41974
  repositoryInfo,
@@ -41984,7 +42001,7 @@ var OptimizedMarkdownMedia = React19__default.memo(({
41984
42001
  };
41985
42002
  if (isVideoUrl(transformedSrc, alt)) {
41986
42003
  if (hasErrored) {
41987
- return /* @__PURE__ */ React19__default.createElement("span", {
42004
+ return /* @__PURE__ */ React2__default.createElement("span", {
41988
42005
  style: {
41989
42006
  ...mediaStyle,
41990
42007
  display: "inline-flex",
@@ -41998,19 +42015,19 @@ var OptimizedMarkdownMedia = React19__default.memo(({
41998
42015
  }
41999
42016
  }, "⚠️ Video failed to load: ", alt || transformedSrc);
42000
42017
  }
42001
- return /* @__PURE__ */ React19__default.createElement("video", {
42018
+ return /* @__PURE__ */ React2__default.createElement("video", {
42002
42019
  controls: true,
42003
42020
  style: mediaStyle,
42004
42021
  onLoadedData: handleLoad,
42005
42022
  onError: handleError,
42006
42023
  title: alt,
42007
42024
  ...props2
42008
- }, /* @__PURE__ */ React19__default.createElement("source", {
42025
+ }, /* @__PURE__ */ React2__default.createElement("source", {
42009
42026
  src: transformedSrc
42010
- }), /* @__PURE__ */ React19__default.createElement("source", {
42027
+ }), /* @__PURE__ */ React2__default.createElement("source", {
42011
42028
  src: transformedSrc,
42012
42029
  type: "video/mp4"
42013
- }), /* @__PURE__ */ React19__default.createElement("source", {
42030
+ }), /* @__PURE__ */ React2__default.createElement("source", {
42014
42031
  src: transformedSrc,
42015
42032
  type: "video/webm"
42016
42033
  }), "Your browser does not support the video tag.");
@@ -42022,7 +42039,7 @@ var OptimizedMarkdownMedia = React19__default.memo(({
42022
42039
  e.stopPropagation();
42023
42040
  };
42024
42041
  if (hasErrored) {
42025
- return /* @__PURE__ */ React19__default.createElement("span", {
42042
+ return /* @__PURE__ */ React2__default.createElement("span", {
42026
42043
  style: {
42027
42044
  ...mediaStyle,
42028
42045
  display: "inline-flex",
@@ -42038,11 +42055,11 @@ var OptimizedMarkdownMedia = React19__default.memo(({
42038
42055
  padding: `${theme2.space[2]}px`
42039
42056
  },
42040
42057
  title: `Failed to load image: ${transformedSrc}`
42041
- }, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */ React19__default.createElement("span", {
42058
+ }, "🖼️ Image unavailable", " ", alt && /* @__PURE__ */ React2__default.createElement("span", {
42042
42059
  style: { fontSize: theme2.fontSizes[0], opacity: 0.7 }
42043
42060
  }, "(", alt, ")"));
42044
42061
  }
42045
- return /* @__PURE__ */ React19__default.createElement("img", {
42062
+ return /* @__PURE__ */ React2__default.createElement("img", {
42046
42063
  src: transformedSrc,
42047
42064
  alt,
42048
42065
  style: mediaStyle,
@@ -42080,7 +42097,7 @@ var createIndustryMarkdownComponents = ({
42080
42097
  headerStyles.marginTop = `${slideHeaderMarginTopOverride}px`;
42081
42098
  }
42082
42099
  return {
42083
- h1: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("h1", {
42100
+ h1: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h1", {
42084
42101
  style: {
42085
42102
  color: theme2.colors.text,
42086
42103
  fontSize: theme2.fontSizes[5],
@@ -42093,7 +42110,7 @@ var createIndustryMarkdownComponents = ({
42093
42110
  },
42094
42111
  ...props2
42095
42112
  }, children2),
42096
- h2: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("h2", {
42113
+ h2: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h2", {
42097
42114
  style: {
42098
42115
  color: theme2.colors.text,
42099
42116
  fontSize: theme2.fontSizes[4],
@@ -42106,7 +42123,7 @@ var createIndustryMarkdownComponents = ({
42106
42123
  },
42107
42124
  ...props2
42108
42125
  }, children2),
42109
- h3: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("h3", {
42126
+ h3: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("h3", {
42110
42127
  style: {
42111
42128
  color: theme2.colors.text,
42112
42129
  fontSize: theme2.fontSizes[3],
@@ -42118,7 +42135,7 @@ var createIndustryMarkdownComponents = ({
42118
42135
  },
42119
42136
  ...props2
42120
42137
  }, children2),
42121
- p: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("p", {
42138
+ p: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("p", {
42122
42139
  style: {
42123
42140
  color: theme2.colors.text,
42124
42141
  fontSize: theme2.fontSizes[2],
@@ -42128,7 +42145,7 @@ var createIndustryMarkdownComponents = ({
42128
42145
  },
42129
42146
  ...props2
42130
42147
  }, children2),
42131
- ul: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("ul", {
42148
+ ul: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("ul", {
42132
42149
  style: {
42133
42150
  color: theme2.colors.text,
42134
42151
  fontSize: theme2.fontSizes[2],
@@ -42140,7 +42157,7 @@ var createIndustryMarkdownComponents = ({
42140
42157
  },
42141
42158
  ...props2
42142
42159
  }, children2),
42143
- ol: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("ol", {
42160
+ ol: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("ol", {
42144
42161
  style: {
42145
42162
  color: theme2.colors.text,
42146
42163
  fontSize: theme2.fontSizes[2],
@@ -42154,14 +42171,14 @@ var createIndustryMarkdownComponents = ({
42154
42171
  }, children2),
42155
42172
  li: ({ children: children2, ...props2 }) => {
42156
42173
  var _a, _b, _c, _d, _e, _f, _g, _h;
42157
- const isTaskListItem = Array.isArray(children2) && children2.length > 0 && React19__default.isValidElement(children2[0]) && ((_b = (_a = children2[0]) == null ? void 0 : _a.props) == null ? void 0 : _b.type) === "checkbox";
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";
42158
42175
  if (isTaskListItem) {
42159
42176
  const checkbox = children2[0];
42160
42177
  const remainingChildren = children2.slice(1);
42161
42178
  const labelContent = [];
42162
42179
  const nestedListElements = [];
42163
- React19__default.Children.forEach(remainingChildren, (child) => {
42164
- if (React19__default.isValidElement(child) && (child.type === "ul" || child.type === "ol")) {
42180
+ React2__default.Children.forEach(remainingChildren, (child) => {
42181
+ if (React2__default.isValidElement(child) && (child.type === "ul" || child.type === "ol")) {
42165
42182
  nestedListElements.push(child);
42166
42183
  } else {
42167
42184
  labelContent.push(child);
@@ -42180,7 +42197,7 @@ var createIndustryMarkdownComponents = ({
42180
42197
  }));
42181
42198
  onCheckboxChange == null ? void 0 : onCheckboxChange(slideIndex, lineNumber, newChecked);
42182
42199
  };
42183
- return /* @__PURE__ */ React19__default.createElement("li", {
42200
+ return /* @__PURE__ */ React2__default.createElement("li", {
42184
42201
  style: {
42185
42202
  listStyle: "none",
42186
42203
  marginLeft: `-${theme2.space[5]}px`,
@@ -42190,9 +42207,9 @@ var createIndustryMarkdownComponents = ({
42190
42207
  fontSize: theme2.fontSizes[2]
42191
42208
  },
42192
42209
  ...props2
42193
- }, /* @__PURE__ */ React19__default.createElement("div", {
42210
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42194
42211
  style: { display: "flex", alignItems: "flex-start" }
42195
- }, /* @__PURE__ */ React19__default.createElement("input", {
42212
+ }, /* @__PURE__ */ React2__default.createElement("input", {
42196
42213
  type: "checkbox",
42197
42214
  checked: isChecked,
42198
42215
  onChange: handleChange,
@@ -42205,7 +42222,7 @@ var createIndustryMarkdownComponents = ({
42205
42222
  cursor: "pointer"
42206
42223
  },
42207
42224
  id
42208
- }), /* @__PURE__ */ React19__default.createElement("label", {
42225
+ }), /* @__PURE__ */ React2__default.createElement("label", {
42209
42226
  htmlFor: id,
42210
42227
  style: {
42211
42228
  flex: 1,
@@ -42216,7 +42233,7 @@ var createIndustryMarkdownComponents = ({
42216
42233
  }
42217
42234
  }, labelContent.length > 0 ? labelContent : null)), nestedListElements.length > 0 ? nestedListElements : null);
42218
42235
  }
42219
- return /* @__PURE__ */ React19__default.createElement("li", {
42236
+ return /* @__PURE__ */ React2__default.createElement("li", {
42220
42237
  style: {
42221
42238
  marginBottom: theme2.space[2],
42222
42239
  paddingTop: theme2.space[1],
@@ -42226,14 +42243,14 @@ var createIndustryMarkdownComponents = ({
42226
42243
  ...props2
42227
42244
  }, children2);
42228
42245
  },
42229
- table: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("div", {
42246
+ table: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("div", {
42230
42247
  style: {
42231
42248
  overflowX: "auto",
42232
42249
  marginBottom: theme2.space[4],
42233
42250
  borderRadius: theme2.radii[2],
42234
42251
  border: `1px solid ${theme2.colors.border}`
42235
42252
  }
42236
- }, /* @__PURE__ */ React19__default.createElement("table", {
42253
+ }, /* @__PURE__ */ React2__default.createElement("table", {
42237
42254
  style: {
42238
42255
  width: "100%",
42239
42256
  borderCollapse: "collapse",
@@ -42242,13 +42259,13 @@ var createIndustryMarkdownComponents = ({
42242
42259
  },
42243
42260
  ...props2
42244
42261
  }, children2)),
42245
- thead: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("thead", {
42262
+ thead: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("thead", {
42246
42263
  style: {
42247
42264
  backgroundColor: theme2.colors.backgroundSecondary
42248
42265
  },
42249
42266
  ...props2
42250
42267
  }, children2),
42251
- th: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("th", {
42268
+ th: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("th", {
42252
42269
  style: {
42253
42270
  padding: theme2.space[3],
42254
42271
  textAlign: "left",
@@ -42258,7 +42275,7 @@ var createIndustryMarkdownComponents = ({
42258
42275
  },
42259
42276
  ...props2
42260
42277
  }, children2),
42261
- td: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("td", {
42278
+ td: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("td", {
42262
42279
  style: {
42263
42280
  padding: theme2.space[3],
42264
42281
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -42266,22 +42283,22 @@ var createIndustryMarkdownComponents = ({
42266
42283
  },
42267
42284
  ...props2
42268
42285
  }, children2),
42269
- a: ({ children: children2, href, ...props2 }) => /* @__PURE__ */ React19__default.createElement(LinkWithLoadingIndicator, {
42286
+ a: ({ children: children2, href, ...props2 }) => /* @__PURE__ */ React2__default.createElement(LinkWithLoadingIndicator, {
42270
42287
  href: href || "",
42271
42288
  onClick: onLinkClick ? (h2, e) => onLinkClick(h2, e) : void 0,
42272
42289
  className: props2.className
42273
42290
  }, children2),
42274
- img: ({ src, alt, ...props2 }) => /* @__PURE__ */ React19__default.createElement(OptimizedMarkdownMedia, {
42291
+ img: ({ src, alt, ...props2 }) => /* @__PURE__ */ React2__default.createElement(OptimizedMarkdownMedia, {
42275
42292
  src: src || "",
42276
42293
  alt: alt || "",
42277
42294
  repositoryInfo,
42278
42295
  theme: theme2,
42279
42296
  ...props2
42280
42297
  }),
42281
- picture: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("picture", {
42298
+ picture: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("picture", {
42282
42299
  ...props2
42283
42300
  }, children2),
42284
- video: ({ children: children2, ...props2 }) => /* @__PURE__ */ React19__default.createElement("video", {
42301
+ video: ({ children: children2, ...props2 }) => /* @__PURE__ */ React2__default.createElement("video", {
42285
42302
  controls: true,
42286
42303
  style: {
42287
42304
  maxWidth: "100%",
@@ -42307,7 +42324,7 @@ var createIndustryMarkdownComponents = ({
42307
42324
  return descriptors ? `${transformedUrl} ${descriptors}` : transformedUrl;
42308
42325
  }).join(", ");
42309
42326
  }, [srcsetValue, repositoryInfo]);
42310
- return /* @__PURE__ */ React19__default.createElement("source", {
42327
+ return /* @__PURE__ */ React2__default.createElement("source", {
42311
42328
  srcSet: transformedSrcset,
42312
42329
  ...props2
42313
42330
  });
@@ -42383,18 +42400,18 @@ var createIndustryMarkdownComponents = ({
42383
42400
  borderBottom: `1px solid ${theme2.colors.border}`,
42384
42401
  fontSize: theme2.fontSizes[0]
42385
42402
  };
42386
- return /* @__PURE__ */ React19__default.createElement("div", {
42403
+ return /* @__PURE__ */ React2__default.createElement("div", {
42387
42404
  style: containerStyle
42388
- }, /* @__PURE__ */ React19__default.createElement("div", {
42405
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42389
42406
  style: headerStyle
42390
- }, /* @__PURE__ */ React19__default.createElement("span", {
42407
+ }, /* @__PURE__ */ React2__default.createElement("span", {
42391
42408
  style: {
42392
42409
  fontFamily: theme2.fonts.monospace,
42393
42410
  fontWeight: isPrompt ? theme2.fontWeights.bold : theme2.fontWeights.body
42394
42411
  }
42395
- }, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */ React19__default.createElement("div", {
42412
+ }, isPrompt ? "💡 Prompt" : language22), /* @__PURE__ */ React2__default.createElement("div", {
42396
42413
  style: { display: "flex", gap: `${theme2.space[2]}px` }
42397
- }, /* @__PURE__ */ React19__default.createElement("button", {
42414
+ }, /* @__PURE__ */ React2__default.createElement("button", {
42398
42415
  onClick: (e) => {
42399
42416
  e.stopPropagation();
42400
42417
  navigator.clipboard.writeText(codeString).then(() => {
@@ -42418,11 +42435,11 @@ var createIndustryMarkdownComponents = ({
42418
42435
  transition: "all 0.15s ease-in-out"
42419
42436
  },
42420
42437
  title: copied ? "Copied!" : "Copy code to clipboard"
42421
- }, copied ? /* @__PURE__ */ React19__default.createElement(Check, {
42438
+ }, copied ? /* @__PURE__ */ React2__default.createElement(Check, {
42422
42439
  size: 14
42423
- }) : /* @__PURE__ */ React19__default.createElement(Copy, {
42440
+ }) : /* @__PURE__ */ React2__default.createElement(Copy, {
42424
42441
  size: 14
42425
- }), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */ React19__default.createElement(IndustryBashCommandDropdown, {
42442
+ }), copied ? "Copied!" : "Copy"), isExecutable && /* @__PURE__ */ React2__default.createElement(IndustryBashCommandDropdown, {
42426
42443
  commands: bashCommands,
42427
42444
  allCommands: codeString.trim(),
42428
42445
  onRunCommand: async (command) => {
@@ -42437,7 +42454,7 @@ var createIndustryMarkdownComponents = ({
42437
42454
  },
42438
42455
  slideIdPrefix,
42439
42456
  theme: theme2
42440
- }), isHtml && /* @__PURE__ */ React19__default.createElement("button", {
42457
+ }), isHtml && /* @__PURE__ */ React2__default.createElement("button", {
42441
42458
  onClick: (e) => {
42442
42459
  e.stopPropagation();
42443
42460
  openHtmlModal(codeString);
@@ -42455,9 +42472,9 @@ var createIndustryMarkdownComponents = ({
42455
42472
  gap: `${theme2.space[1]}px`
42456
42473
  },
42457
42474
  title: "Render HTML in modal"
42458
- }, /* @__PURE__ */ React19__default.createElement(Monitor, {
42475
+ }, /* @__PURE__ */ React2__default.createElement(Monitor, {
42459
42476
  size: 14
42460
- }), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */ React19__default.createElement("button", {
42477
+ }), "Render HTML"), isPrompt && openPlaceholderModal && hasPlaceholders && /* @__PURE__ */ React2__default.createElement("button", {
42461
42478
  onClick: (e) => {
42462
42479
  e.stopPropagation();
42463
42480
  openPlaceholderModal(placeholders, codeString);
@@ -42475,9 +42492,9 @@ var createIndustryMarkdownComponents = ({
42475
42492
  gap: `${theme2.space[1]}px`
42476
42493
  },
42477
42494
  title: "Fill placeholders and copy"
42478
- }, /* @__PURE__ */ React19__default.createElement(FileText, {
42495
+ }, /* @__PURE__ */ React2__default.createElement(FileText, {
42479
42496
  size: 14
42480
- }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React19__default.createElement("div", {
42497
+ }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
42481
42498
  style: {
42482
42499
  margin: 0,
42483
42500
  padding: theme2.space[5],
@@ -42490,7 +42507,7 @@ var createIndustryMarkdownComponents = ({
42490
42507
  }
42491
42508
  }, codeString.split(/(\{\{[^}]+\}\})/).map((part, index22) => {
42492
42509
  if (part.match(/^\{\{[^}]+\}\}$/)) {
42493
- return /* @__PURE__ */ React19__default.createElement("span", {
42510
+ return /* @__PURE__ */ React2__default.createElement("span", {
42494
42511
  key: index22,
42495
42512
  style: {
42496
42513
  backgroundColor: theme2.colors.highlight,
@@ -42504,7 +42521,7 @@ var createIndustryMarkdownComponents = ({
42504
42521
  }, part);
42505
42522
  }
42506
42523
  return part;
42507
- })) : /* @__PURE__ */ React19__default.createElement("pre", {
42524
+ })) : /* @__PURE__ */ React2__default.createElement("pre", {
42508
42525
  style: {
42509
42526
  margin: 0,
42510
42527
  padding: theme2.space[4],
@@ -42514,7 +42531,7 @@ var createIndustryMarkdownComponents = ({
42514
42531
  lineHeight: 1.2,
42515
42532
  fontFamily: theme2.fonts.monospace
42516
42533
  }
42517
- }, /* @__PURE__ */ React19__default.createElement("code", {
42534
+ }, /* @__PURE__ */ React2__default.createElement("code", {
42518
42535
  className,
42519
42536
  style: {
42520
42537
  lineHeight: "inherit",
@@ -42526,7 +42543,7 @@ var createIndustryMarkdownComponents = ({
42526
42543
  }, children2)));
42527
42544
  }
42528
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();
42529
- return /* @__PURE__ */ React19__default.createElement("code", {
42546
+ return /* @__PURE__ */ React2__default.createElement("code", {
42530
42547
  style: {
42531
42548
  color: theme2.colors.accent,
42532
42549
  fontSize: "0.875em",
@@ -42644,7 +42661,7 @@ function IndustryZoomableMermaidDiagram({
42644
42661
  const handleButtonLeave = (e) => {
42645
42662
  e.currentTarget.style.backgroundColor = theme2.colors.background;
42646
42663
  };
42647
- return /* @__PURE__ */ React19__default.createElement("div", {
42664
+ return /* @__PURE__ */ React2__default.createElement("div", {
42648
42665
  ref: containerRef,
42649
42666
  style: {
42650
42667
  width: "100%",
@@ -42652,7 +42669,7 @@ function IndustryZoomableMermaidDiagram({
42652
42669
  position: "relative",
42653
42670
  backgroundColor: theme2.colors.background
42654
42671
  }
42655
- }, /* @__PURE__ */ React19__default.createElement(TransformWrapper, {
42672
+ }, /* @__PURE__ */ React2__default.createElement(TransformWrapper, {
42656
42673
  limitToBounds: true,
42657
42674
  doubleClick: { disabled: true },
42658
42675
  minScale: 0.1,
@@ -42666,7 +42683,7 @@ function IndustryZoomableMermaidDiagram({
42666
42683
  zoomAnimation: { disabled: false, size: 0.2 }
42667
42684
  }, ({ centerView: centerView2, instance }) => {
42668
42685
  transformRef.current = { centerView: centerView2, instance };
42669
- return /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement("div", {
42686
+ return /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("div", {
42670
42687
  style: {
42671
42688
  position: "absolute",
42672
42689
  top: theme2.space[3],
@@ -42675,7 +42692,7 @@ function IndustryZoomableMermaidDiagram({
42675
42692
  display: "flex",
42676
42693
  gap: theme2.space[2]
42677
42694
  }
42678
- }, /* @__PURE__ */ React19__default.createElement("button", {
42695
+ }, /* @__PURE__ */ React2__default.createElement("button", {
42679
42696
  onClick: () => {
42680
42697
  centerView2(calculatedScale, 200, "easeOut");
42681
42698
  },
@@ -42683,14 +42700,14 @@ function IndustryZoomableMermaidDiagram({
42683
42700
  onMouseEnter: handleButtonHover,
42684
42701
  onMouseLeave: handleButtonLeave,
42685
42702
  title: "Reset view"
42686
- }, "⟲"), isCalculating && /* @__PURE__ */ React19__default.createElement("span", {
42703
+ }, "⟲"), isCalculating && /* @__PURE__ */ React2__default.createElement("span", {
42687
42704
  style: {
42688
42705
  padding: `${theme2.space[1]}px ${theme2.space[2]}px`,
42689
42706
  fontSize: theme2.fontSizes[1],
42690
42707
  color: theme2.colors.textMuted,
42691
42708
  fontFamily: theme2.fonts.body
42692
42709
  }
42693
- }, "Optimizing view...")), /* @__PURE__ */ React19__default.createElement(TransformComponent, {
42710
+ }, "Optimizing view...")), /* @__PURE__ */ React2__default.createElement(TransformComponent, {
42694
42711
  wrapperStyle: {
42695
42712
  width: "100%",
42696
42713
  height: "100%",
@@ -42704,7 +42721,7 @@ function IndustryZoomableMermaidDiagram({
42704
42721
  alignItems: "center",
42705
42722
  justifyContent: "center"
42706
42723
  }
42707
- }, /* @__PURE__ */ React19__default.createElement("div", {
42724
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42708
42725
  ref: diagramRef,
42709
42726
  style: {
42710
42727
  display: "flex",
@@ -42713,7 +42730,7 @@ function IndustryZoomableMermaidDiagram({
42713
42730
  width: "100%",
42714
42731
  height: "100%"
42715
42732
  }
42716
- }, /* @__PURE__ */ React19__default.createElement(IndustryMermaidDiagram, {
42733
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMermaidDiagram, {
42717
42734
  code: code2,
42718
42735
  id,
42719
42736
  isModalMode: true,
@@ -42749,7 +42766,7 @@ function IndustryMermaidModal({
42749
42766
  if (!isOpen) {
42750
42767
  return null;
42751
42768
  }
42752
- const modalContent = /* @__PURE__ */ React19__default.createElement("div", {
42769
+ const modalContent = /* @__PURE__ */ React2__default.createElement("div", {
42753
42770
  onClick: handleBackdropClick,
42754
42771
  style: {
42755
42772
  position: "fixed",
@@ -42764,7 +42781,7 @@ function IndustryMermaidModal({
42764
42781
  zIndex: 50,
42765
42782
  padding: theme2.space[4]
42766
42783
  }
42767
- }, /* @__PURE__ */ React19__default.createElement("div", {
42784
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42768
42785
  ref: modalRef,
42769
42786
  onClick: (e) => e.stopPropagation(),
42770
42787
  style: {
@@ -42779,7 +42796,7 @@ function IndustryMermaidModal({
42779
42796
  overflow: "hidden",
42780
42797
  boxShadow: theme2.shadows[4]
42781
42798
  }
42782
- }, /* @__PURE__ */ React19__default.createElement("button", {
42799
+ }, /* @__PURE__ */ React2__default.createElement("button", {
42783
42800
  onClick: (e) => {
42784
42801
  e.stopPropagation();
42785
42802
  onClose();
@@ -42813,7 +42830,7 @@ function IndustryMermaidModal({
42813
42830
  e.currentTarget.style.color = theme2.colors.text;
42814
42831
  },
42815
42832
  "aria-label": "Close"
42816
- }, "×"), /* @__PURE__ */ React19__default.createElement("div", {
42833
+ }, "×"), /* @__PURE__ */ React2__default.createElement("div", {
42817
42834
  style: {
42818
42835
  flex: 1,
42819
42836
  overflow: "hidden",
@@ -42821,7 +42838,7 @@ function IndustryMermaidModal({
42821
42838
  backgroundColor: theme2.colors.background,
42822
42839
  padding: `${theme2.space[5]}px ${theme2.space[2]}px ${theme2.space[2]}px ${theme2.space[2]}px`
42823
42840
  }
42824
- }, /* @__PURE__ */ React19__default.createElement(IndustryZoomableMermaidDiagram, {
42841
+ }, /* @__PURE__ */ React2__default.createElement(IndustryZoomableMermaidDiagram, {
42825
42842
  id: "mermaid-modal-diagram",
42826
42843
  code: mermaidCode,
42827
42844
  theme: theme2
@@ -42855,7 +42872,7 @@ function IndustryPlaceholderModal({
42855
42872
  console.error("Failed to copy filled prompt:", err);
42856
42873
  });
42857
42874
  };
42858
- return /* @__PURE__ */ React19__default.createElement("div", {
42875
+ return /* @__PURE__ */ React2__default.createElement("div", {
42859
42876
  style: {
42860
42877
  position: "fixed",
42861
42878
  top: 0,
@@ -42870,7 +42887,7 @@ function IndustryPlaceholderModal({
42870
42887
  padding: theme2.space[5]
42871
42888
  },
42872
42889
  onClick: onClose
42873
- }, /* @__PURE__ */ React19__default.createElement("div", {
42890
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42874
42891
  style: {
42875
42892
  backgroundColor: theme2.colors.background,
42876
42893
  borderRadius: theme2.radii[3],
@@ -42884,7 +42901,7 @@ function IndustryPlaceholderModal({
42884
42901
  boxShadow: theme2.shadows[4]
42885
42902
  },
42886
42903
  onClick: (e) => e.stopPropagation()
42887
- }, /* @__PURE__ */ React19__default.createElement("div", {
42904
+ }, /* @__PURE__ */ React2__default.createElement("div", {
42888
42905
  style: {
42889
42906
  padding: theme2.space[4],
42890
42907
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -42893,7 +42910,7 @@ function IndustryPlaceholderModal({
42893
42910
  alignItems: "center",
42894
42911
  backgroundColor: theme2.colors.backgroundSecondary
42895
42912
  }
42896
- }, /* @__PURE__ */ React19__default.createElement("h3", {
42913
+ }, /* @__PURE__ */ React2__default.createElement("h3", {
42897
42914
  style: {
42898
42915
  margin: 0,
42899
42916
  color: theme2.colors.text,
@@ -42901,7 +42918,7 @@ function IndustryPlaceholderModal({
42901
42918
  fontWeight: theme2.fontWeights.semibold,
42902
42919
  fontFamily: theme2.fonts.heading
42903
42920
  }
42904
- }, "Fill Prompt Placeholders"), /* @__PURE__ */ React19__default.createElement("button", {
42921
+ }, "Fill Prompt Placeholders"), /* @__PURE__ */ React2__default.createElement("button", {
42905
42922
  onClick: (e) => {
42906
42923
  e.stopPropagation();
42907
42924
  onClose();
@@ -42931,14 +42948,14 @@ function IndustryPlaceholderModal({
42931
42948
  },
42932
42949
  title: "Close",
42933
42950
  "aria-label": "Close modal"
42934
- }, "×")), /* @__PURE__ */ React19__default.createElement("div", {
42951
+ }, "×")), /* @__PURE__ */ React2__default.createElement("div", {
42935
42952
  style: {
42936
42953
  padding: theme2.space[5],
42937
42954
  overflow: "auto",
42938
42955
  flex: 1,
42939
42956
  backgroundColor: theme2.colors.background
42940
42957
  }
42941
- }, /* @__PURE__ */ React19__default.createElement("p", {
42958
+ }, /* @__PURE__ */ React2__default.createElement("p", {
42942
42959
  style: {
42943
42960
  margin: `0 0 ${theme2.space[4]}px 0`,
42944
42961
  color: theme2.colors.textSecondary,
@@ -42946,12 +42963,12 @@ function IndustryPlaceholderModal({
42946
42963
  lineHeight: theme2.lineHeights.body,
42947
42964
  fontFamily: theme2.fonts.body
42948
42965
  }
42949
- }, "Fill in the values for the placeholders below. The prompt will be copied to your clipboard with the values substituted."), /* @__PURE__ */ React19__default.createElement("form", {
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", {
42950
42967
  onSubmit: handleSubmit
42951
- }, placeholders.map((placeholder, index2) => /* @__PURE__ */ React19__default.createElement("div", {
42968
+ }, placeholders.map((placeholder, index2) => /* @__PURE__ */ React2__default.createElement("div", {
42952
42969
  key: index2,
42953
42970
  style: { marginBottom: theme2.space[4] }
42954
- }, /* @__PURE__ */ React19__default.createElement("label", {
42971
+ }, /* @__PURE__ */ React2__default.createElement("label", {
42955
42972
  style: {
42956
42973
  display: "block",
42957
42974
  marginBottom: theme2.space[2],
@@ -42960,7 +42977,7 @@ function IndustryPlaceholderModal({
42960
42977
  fontSize: theme2.fontSizes[1],
42961
42978
  fontFamily: theme2.fonts.body
42962
42979
  }
42963
- }, placeholder), /* @__PURE__ */ React19__default.createElement("input", {
42980
+ }, placeholder), /* @__PURE__ */ React2__default.createElement("input", {
42964
42981
  type: "text",
42965
42982
  value: values[placeholder] || "",
42966
42983
  onChange: (e) => setValues((prev) => ({
@@ -42986,14 +43003,14 @@ function IndustryPlaceholderModal({
42986
43003
  e.currentTarget.style.borderColor = theme2.colors.border;
42987
43004
  },
42988
43005
  placeholder: `Enter value for ${placeholder}`
42989
- }))), /* @__PURE__ */ React19__default.createElement("div", {
43006
+ }))), /* @__PURE__ */ React2__default.createElement("div", {
42990
43007
  style: {
42991
43008
  display: "flex",
42992
43009
  gap: theme2.space[3],
42993
43010
  justifyContent: "flex-end",
42994
43011
  marginTop: theme2.space[5]
42995
43012
  }
42996
- }, /* @__PURE__ */ React19__default.createElement("button", {
43013
+ }, /* @__PURE__ */ React2__default.createElement("button", {
42997
43014
  type: "button",
42998
43015
  onClick: onClose,
42999
43016
  style: {
@@ -43017,7 +43034,7 @@ function IndustryPlaceholderModal({
43017
43034
  onMouseLeave: (e) => {
43018
43035
  e.currentTarget.style.backgroundColor = theme2.colors.background;
43019
43036
  }
43020
- }, "Cancel"), /* @__PURE__ */ React19__default.createElement("button", {
43037
+ }, "Cancel"), /* @__PURE__ */ React2__default.createElement("button", {
43021
43038
  type: "submit",
43022
43039
  style: {
43023
43040
  padding: `${theme2.space[2]}px ${theme2.space[4]}px`,
@@ -43267,7 +43284,7 @@ var injectStyles = () => {
43267
43284
  stylesInjected = true;
43268
43285
  }
43269
43286
  };
43270
- var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide2({
43287
+ var IndustryMarkdownSlide = React2__default.memo(function IndustryMarkdownSlide2({
43271
43288
  content: content2,
43272
43289
  slideIdPrefix,
43273
43290
  slideIndex,
@@ -43653,7 +43670,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
43653
43670
  if (searchQuery) {
43654
43671
  return {
43655
43672
  ...baseComponents,
43656
- mark: ({ children: children2 }) => /* @__PURE__ */ React19__default.createElement("mark", {
43673
+ mark: ({ children: children2 }) => /* @__PURE__ */ React2__default.createElement("mark", {
43657
43674
  style: {
43658
43675
  backgroundColor: theme2.colors.highlightBg || "rgba(255, 193, 7, 0.25)",
43659
43676
  color: theme2.colors.text,
@@ -43683,7 +43700,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
43683
43700
  repositoryInfo,
43684
43701
  searchQuery
43685
43702
  ]);
43686
- return /* @__PURE__ */ React19__default.createElement("div", {
43703
+ return /* @__PURE__ */ React2__default.createElement("div", {
43687
43704
  className: "markdown-slide",
43688
43705
  ref: slideRef,
43689
43706
  style: {
@@ -43707,7 +43724,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
43707
43724
  slideRef.current.focus();
43708
43725
  }
43709
43726
  }
43710
- }, chunks.length === 0 ? /* @__PURE__ */ React19__default.createElement("div", {
43727
+ }, chunks.length === 0 ? /* @__PURE__ */ React2__default.createElement("div", {
43711
43728
  style: {
43712
43729
  padding: theme2.space[4],
43713
43730
  textAlign: "center",
@@ -43717,7 +43734,7 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
43717
43734
  }, "No content to display") : chunks.map((chunk, index2) => {
43718
43735
  if (chunk.type === "markdown_chunk") {
43719
43736
  const processedContent = searchQuery ? highlightSearchMatches(chunk.content, searchQuery) : chunk.content;
43720
- return /* @__PURE__ */ React19__default.createElement(Markdown, {
43737
+ return /* @__PURE__ */ React2__default.createElement(Markdown, {
43721
43738
  key: `${chunk.id}-${JSON.stringify(theme2.colors.accent)}`,
43722
43739
  remarkPlugins: [remarkGfm],
43723
43740
  rehypePlugins: [
@@ -43741,23 +43758,23 @@ var IndustryMarkdownSlide = React19__default.memo(function IndustryMarkdownSlide
43741
43758
  if (onShowMermaidInPanel) {
43742
43759
  mermaidProps.onShowInPanel = onShowMermaidInPanel;
43743
43760
  }
43744
- return /* @__PURE__ */ React19__default.createElement(IndustryLazyMermaidDiagram, {
43761
+ return /* @__PURE__ */ React2__default.createElement(IndustryLazyMermaidDiagram, {
43745
43762
  key: chunk.id,
43746
43763
  ...mermaidProps
43747
43764
  });
43748
43765
  }
43749
43766
  return null;
43750
- }), /* @__PURE__ */ React19__default.createElement(IndustryHtmlModal, {
43767
+ }), /* @__PURE__ */ React2__default.createElement(IndustryHtmlModal, {
43751
43768
  isOpen: htmlModalOpen,
43752
43769
  onClose: closeHtmlModal,
43753
43770
  htmlContent: htmlModalContent,
43754
43771
  theme: theme2
43755
- }), /* @__PURE__ */ React19__default.createElement(IndustryMermaidModal, {
43772
+ }), /* @__PURE__ */ React2__default.createElement(IndustryMermaidModal, {
43756
43773
  isOpen: mermaidModalOpen,
43757
43774
  onClose: closeMermaidModal,
43758
43775
  mermaidCode: mermaidModalCode,
43759
43776
  theme: theme2
43760
- }), handlePromptCopy && placeholderModalData && /* @__PURE__ */ React19__default.createElement(IndustryPlaceholderModal, {
43777
+ }), handlePromptCopy && placeholderModalData && /* @__PURE__ */ React2__default.createElement(IndustryPlaceholderModal, {
43761
43778
  isOpen: placeholderModalOpen,
43762
43779
  onClose: closePlaceholderModal,
43763
43780
  placeholders: placeholderModalData.placeholders,
@@ -43784,7 +43801,7 @@ var DATA_ATTRIBUTES = {
43784
43801
  };
43785
43802
  var PRECISION = 10;
43786
43803
  var useIsomorphicLayoutEffect = useLayoutEffect;
43787
- var useId = React19["useId".toString()];
43804
+ var useId = React2["useId".toString()];
43788
43805
  var wrappedUseId = typeof useId === "function" ? useId : () => null;
43789
43806
  var counter = 0;
43790
43807
  function useUniqueId(idFromParams = null) {
@@ -46059,7 +46076,7 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
46059
46076
  const y2 = o2.length, w2 = 2 * u2;
46060
46077
  let x2;
46061
46078
  x2 = y2 === 1 || y2 === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
46062
- const C = React19__default.useId().replace(/:/g, "_");
46079
+ const C = React2__default.useId().replace(/:/g, "_");
46063
46080
  return jsxs(Fragment, { children: [
46064
46081
  y2 === 2 && /* @__PURE__ */ jsx("style", { children: `
46065
46082
  .snap-carousel-container[data-carousel-id="${C}"][data-panel-count="2"] .snap-carousel-panel {
@@ -46145,7 +46162,7 @@ var FocusLeftIcon = ({
46145
46162
  size = 18,
46146
46163
  color: color2 = "currentColor",
46147
46164
  style: style2
46148
- }) => /* @__PURE__ */ React19__default.createElement("svg", {
46165
+ }) => /* @__PURE__ */ React2__default.createElement("svg", {
46149
46166
  width: size,
46150
46167
  height: size,
46151
46168
  viewBox: "0 0 24 24",
@@ -46155,13 +46172,13 @@ var FocusLeftIcon = ({
46155
46172
  strokeLinecap: "round",
46156
46173
  strokeLinejoin: "round",
46157
46174
  style: style2
46158
- }, /* @__PURE__ */ React19__default.createElement("rect", {
46175
+ }, /* @__PURE__ */ React2__default.createElement("rect", {
46159
46176
  x: "3",
46160
46177
  y: "3",
46161
46178
  width: "18",
46162
46179
  height: "18",
46163
46180
  rx: "1"
46164
- }), /* @__PURE__ */ React19__default.createElement("path", {
46181
+ }), /* @__PURE__ */ React2__default.createElement("path", {
46165
46182
  d: "M9 12L15 12M15 12L12 9M15 12L12 15",
46166
46183
  strokeWidth: "1.5"
46167
46184
  }));
@@ -46169,7 +46186,7 @@ var FocusRightIcon = ({
46169
46186
  size = 18,
46170
46187
  color: color2 = "currentColor",
46171
46188
  style: style2
46172
- }) => /* @__PURE__ */ React19__default.createElement("svg", {
46189
+ }) => /* @__PURE__ */ React2__default.createElement("svg", {
46173
46190
  width: size,
46174
46191
  height: size,
46175
46192
  viewBox: "0 0 24 24",
@@ -46179,13 +46196,13 @@ var FocusRightIcon = ({
46179
46196
  strokeLinecap: "round",
46180
46197
  strokeLinejoin: "round",
46181
46198
  style: style2
46182
- }, /* @__PURE__ */ React19__default.createElement("rect", {
46199
+ }, /* @__PURE__ */ React2__default.createElement("rect", {
46183
46200
  x: "3",
46184
46201
  y: "3",
46185
46202
  width: "18",
46186
46203
  height: "18",
46187
46204
  rx: "1"
46188
- }), /* @__PURE__ */ React19__default.createElement("path", {
46205
+ }), /* @__PURE__ */ React2__default.createElement("path", {
46189
46206
  d: "M15 12L9 12M9 12L12 9M9 12L12 15",
46190
46207
  strokeWidth: "1.5"
46191
46208
  }));
@@ -46200,8 +46217,8 @@ var HeaderButton = ({
46200
46217
  minWidth,
46201
46218
  padding
46202
46219
  }) => {
46203
- const [isHovered, setIsHovered] = React19__default.useState(false);
46204
- return /* @__PURE__ */ React19__default.createElement("button", {
46220
+ const [isHovered, setIsHovered] = React2__default.useState(false);
46221
+ return /* @__PURE__ */ React2__default.createElement("button", {
46205
46222
  onClick,
46206
46223
  disabled,
46207
46224
  onMouseEnter: () => setIsHovered(true),
@@ -46253,7 +46270,7 @@ var SlideNavigationHeader = ({
46253
46270
  onCollapseRight
46254
46271
  }) => {
46255
46272
  const navigationHeight = "48px";
46256
- return /* @__PURE__ */ React19__default.createElement("div", {
46273
+ return /* @__PURE__ */ React2__default.createElement("div", {
46257
46274
  style: {
46258
46275
  height: navigationHeight,
46259
46276
  minHeight: navigationHeight,
@@ -46265,41 +46282,41 @@ var SlideNavigationHeader = ({
46265
46282
  backgroundColor: theme2.colors.background,
46266
46283
  flexShrink: 0
46267
46284
  }
46268
- }, /* @__PURE__ */ React19__default.createElement("div", {
46285
+ }, /* @__PURE__ */ React2__default.createElement("div", {
46269
46286
  style: {
46270
46287
  display: "flex",
46271
46288
  alignItems: "center",
46272
46289
  gap: theme2.space[2]
46273
46290
  }
46274
- }, /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46291
+ }, /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46275
46292
  onClick: onToggleTOC,
46276
46293
  active: showTOC,
46277
46294
  theme: theme2,
46278
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)"
46279
- }, /* @__PURE__ */ React19__default.createElement(Menu, {
46296
+ }, /* @__PURE__ */ React2__default.createElement(Menu, {
46280
46297
  size: 18
46281
- })), /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46298
+ })), /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46282
46299
  onClick: onPrevious,
46283
46300
  disabled: currentSlide === 0,
46284
46301
  theme: theme2,
46285
46302
  title: "Previous slide",
46286
46303
  minWidth: isMobile ? void 0 : "100px",
46287
46304
  width: isMobile ? "36px" : void 0
46288
- }, /* @__PURE__ */ React19__default.createElement(ChevronLeft, {
46305
+ }, /* @__PURE__ */ React2__default.createElement(ChevronLeft, {
46289
46306
  size: 18
46290
- }), !isMobile && "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46307
+ }), !isMobile && "Previous"), viewMode === "book" && onCollapseLeft && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46291
46308
  onClick: onCollapseLeft,
46292
46309
  active: collapseRight,
46293
46310
  theme: theme2,
46294
46311
  title: collapseLeft ? "Expand left panel" : collapseRight ? "Show both panels" : "Focus on left panel"
46295
- }, collapseLeft ? /* @__PURE__ */ React19__default.createElement(PanelLeftClose, {
46312
+ }, collapseLeft ? /* @__PURE__ */ React2__default.createElement(PanelLeftClose, {
46296
46313
  size: 18,
46297
46314
  style: { transform: "rotate(180deg)" }
46298
- }) : collapseRight ? /* @__PURE__ */ React19__default.createElement(Columns2, {
46315
+ }) : collapseRight ? /* @__PURE__ */ React2__default.createElement(Columns2, {
46299
46316
  size: 18
46300
- }) : /* @__PURE__ */ React19__default.createElement(FocusLeftIcon, {
46317
+ }) : /* @__PURE__ */ React2__default.createElement(FocusLeftIcon, {
46301
46318
  size: 18
46302
- }))), showSlideCounter && /* @__PURE__ */ React19__default.createElement("div", {
46319
+ }))), showSlideCounter && /* @__PURE__ */ React2__default.createElement("div", {
46303
46320
  style: {
46304
46321
  display: "flex",
46305
46322
  alignItems: "center",
@@ -46307,65 +46324,65 @@ var SlideNavigationHeader = ({
46307
46324
  fontSize: theme2.fontSizes[1],
46308
46325
  fontFamily: theme2.fonts.monospace
46309
46326
  }
46310
- }, viewMode === "book" ? /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement("span", {
46327
+ }, viewMode === "book" ? /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("span", {
46311
46328
  style: { fontWeight: 600 }
46312
- }, Math.floor(currentSlide / 2) + 1), /* @__PURE__ */ React19__default.createElement("span", {
46329
+ }, Math.floor(currentSlide / 2) + 1), /* @__PURE__ */ React2__default.createElement("span", {
46313
46330
  style: { opacity: 0.5, margin: "0 0.4em" }
46314
- }, "of"), /* @__PURE__ */ React19__default.createElement("span", {
46331
+ }, "of"), /* @__PURE__ */ React2__default.createElement("span", {
46315
46332
  style: { fontWeight: 600 }
46316
- }, Math.ceil(totalSlides / 2))) : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement("span", {
46333
+ }, Math.ceil(totalSlides / 2))) : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("span", {
46317
46334
  style: { fontWeight: 600 }
46318
- }, currentSlide + 1), /* @__PURE__ */ React19__default.createElement("span", {
46335
+ }, currentSlide + 1), /* @__PURE__ */ React2__default.createElement("span", {
46319
46336
  style: { opacity: 0.5, margin: "0 0.4em" }
46320
- }, "of"), /* @__PURE__ */ React19__default.createElement("span", {
46337
+ }, "of"), /* @__PURE__ */ React2__default.createElement("span", {
46321
46338
  style: { fontWeight: 600 }
46322
- }, totalSlides))), /* @__PURE__ */ React19__default.createElement("div", {
46339
+ }, totalSlides))), /* @__PURE__ */ React2__default.createElement("div", {
46323
46340
  style: {
46324
46341
  display: "flex",
46325
46342
  alignItems: "center",
46326
46343
  gap: theme2.space[2]
46327
46344
  }
46328
- }, viewMode === "book" && onCollapseRight && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46345
+ }, viewMode === "book" && onCollapseRight && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46329
46346
  onClick: onCollapseRight,
46330
46347
  active: collapseLeft,
46331
46348
  theme: theme2,
46332
46349
  title: collapseRight ? "Expand right panel" : collapseLeft ? "Show both panels" : "Focus on right panel"
46333
- }, collapseRight ? /* @__PURE__ */ React19__default.createElement(PanelRightClose, {
46350
+ }, collapseRight ? /* @__PURE__ */ React2__default.createElement(PanelRightClose, {
46334
46351
  size: 18,
46335
46352
  style: { transform: "rotate(180deg)" }
46336
- }) : collapseLeft ? /* @__PURE__ */ React19__default.createElement(Columns2, {
46353
+ }) : collapseLeft ? /* @__PURE__ */ React2__default.createElement(Columns2, {
46337
46354
  size: 18
46338
- }) : /* @__PURE__ */ React19__default.createElement(FocusRightIcon, {
46355
+ }) : /* @__PURE__ */ React2__default.createElement(FocusRightIcon, {
46339
46356
  size: 18
46340
- })), /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46357
+ })), /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46341
46358
  onClick: onNext,
46342
46359
  disabled: currentSlide === totalSlides - 1,
46343
46360
  theme: theme2,
46344
46361
  title: "Next slide",
46345
46362
  minWidth: isMobile ? void 0 : "100px",
46346
46363
  width: isMobile ? "36px" : void 0
46347
- }, !isMobile && "Next", /* @__PURE__ */ React19__default.createElement(ChevronRight, {
46364
+ }, !isMobile && "Next", /* @__PURE__ */ React2__default.createElement(ChevronRight, {
46348
46365
  size: 18
46349
- })), showPopoutButton && onPopout && !isPopout && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46366
+ })), showPopoutButton && onPopout && !isPopout && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46350
46367
  onClick: onPopout,
46351
46368
  theme: theme2,
46352
46369
  title: "Pop out to new window"
46353
- }, /* @__PURE__ */ React19__default.createElement(ExternalLink, {
46370
+ }, /* @__PURE__ */ React2__default.createElement(ExternalLink, {
46354
46371
  size: 18
46355
- })), isPopout && onClose && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46372
+ })), isPopout && onClose && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46356
46373
  onClick: onClose,
46357
46374
  theme: theme2,
46358
46375
  title: "Close window"
46359
- }, /* @__PURE__ */ React19__default.createElement(X, {
46376
+ }, /* @__PURE__ */ React2__default.createElement(X, {
46360
46377
  size: 18
46361
- })), showFullscreenButton && !showPopoutButton && /* @__PURE__ */ React19__default.createElement(HeaderButton, {
46378
+ })), showFullscreenButton && !showPopoutButton && /* @__PURE__ */ React2__default.createElement(HeaderButton, {
46362
46379
  onClick: onToggleFullscreen,
46363
46380
  disabled: isMobile,
46364
46381
  theme: theme2,
46365
46382
  title: isMobile ? "Fullscreen not available on mobile" : isFullscreen ? "Exit fullscreen (F)" : "Enter fullscreen (F)"
46366
- }, isFullscreen ? /* @__PURE__ */ React19__default.createElement(Minimize2, {
46383
+ }, isFullscreen ? /* @__PURE__ */ React2__default.createElement(Minimize2, {
46367
46384
  size: 18
46368
- }) : /* @__PURE__ */ React19__default.createElement(Maximize2, {
46385
+ }) : /* @__PURE__ */ React2__default.createElement(Maximize2, {
46369
46386
  size: 18
46370
46387
  }))));
46371
46388
  };
@@ -46388,7 +46405,7 @@ var SlideSearchBar = ({
46388
46405
  searchInputRef.current.focus();
46389
46406
  }
46390
46407
  }, [showSearch]);
46391
- return /* @__PURE__ */ React19__default.createElement("div", {
46408
+ return /* @__PURE__ */ React2__default.createElement("div", {
46392
46409
  style: {
46393
46410
  position: "fixed",
46394
46411
  bottom: 0,
@@ -46405,10 +46422,10 @@ var SlideSearchBar = ({
46405
46422
  padding: `0 ${theme2.space[3]}px`,
46406
46423
  gap: theme2.space[3]
46407
46424
  }
46408
- }, /* @__PURE__ */ React19__default.createElement(Search, {
46425
+ }, /* @__PURE__ */ React2__default.createElement(Search, {
46409
46426
  size: 20,
46410
46427
  style: { color: theme2.colors.textSecondary, flexShrink: 0 }
46411
- }), /* @__PURE__ */ React19__default.createElement("input", {
46428
+ }), /* @__PURE__ */ React2__default.createElement("input", {
46412
46429
  ref: searchInputRef,
46413
46430
  type: "text",
46414
46431
  value: searchQuery,
@@ -46432,14 +46449,14 @@ var SlideSearchBar = ({
46432
46449
  onBlur: (e2) => {
46433
46450
  e2.currentTarget.style.borderColor = theme2.colors.border;
46434
46451
  }
46435
- }), searchQuery && /* @__PURE__ */ React19__default.createElement("div", {
46452
+ }), searchQuery && /* @__PURE__ */ React2__default.createElement("div", {
46436
46453
  style: {
46437
46454
  color: theme2.colors.textSecondary,
46438
46455
  fontSize: theme2.fontSizes[0],
46439
46456
  fontFamily: theme2.fonts.body,
46440
46457
  flexShrink: 0
46441
46458
  }
46442
- }, searchResults.length > 0 ? /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, searchResults.reduce((sum, r2) => sum + r2.count, 0), " matches in ", searchResults.length, " ", "slide", searchResults.length !== 1 ? "s" : "") : "No results"), /* @__PURE__ */ React19__default.createElement("div", {
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", {
46443
46460
  style: {
46444
46461
  flex: 1,
46445
46462
  display: "flex",
@@ -46450,7 +46467,7 @@ var SlideSearchBar = ({
46450
46467
  minHeight: "32px",
46451
46468
  padding: `0 ${theme2.space[1]}px`
46452
46469
  }
46453
- }, searchQuery && !searchResults.some((r2) => r2.slideIndex === searchStartSlide) && /* @__PURE__ */ React19__default.createElement("div", {
46470
+ }, searchQuery && !searchResults.some((r2) => r2.slideIndex === searchStartSlide) && /* @__PURE__ */ React2__default.createElement("div", {
46454
46471
  style: {
46455
46472
  display: "inline-flex",
46456
46473
  alignItems: "center",
@@ -46466,11 +46483,11 @@ var SlideSearchBar = ({
46466
46483
  flexShrink: 0,
46467
46484
  opacity: 0.7
46468
46485
  }
46469
- }, /* @__PURE__ */ React19__default.createElement("span", {
46486
+ }, /* @__PURE__ */ React2__default.createElement("span", {
46470
46487
  style: { fontWeight: 600 }
46471
- }, "#", searchStartSlide + 1, " (start)"), /* @__PURE__ */ React19__default.createElement("span", {
46488
+ }, "#", searchStartSlide + 1, " (start)"), /* @__PURE__ */ React2__default.createElement("span", {
46472
46489
  style: { opacity: 0.8 }
46473
- }, "(no matches)")), searchResults.map((result, index2) => /* @__PURE__ */ React19__default.createElement("button", {
46490
+ }, "(no matches)")), searchResults.map((result, index2) => /* @__PURE__ */ React2__default.createElement("button", {
46474
46491
  key: result.slideIndex,
46475
46492
  onClick: () => onResultClick(index2, result.slideIndex),
46476
46493
  style: {
@@ -46500,11 +46517,11 @@ var SlideSearchBar = ({
46500
46517
  }
46501
46518
  },
46502
46519
  title: `Slide ${result.slideIndex + 1}: ${slideTitles[result.slideIndex]}`
46503
- }, /* @__PURE__ */ React19__default.createElement("span", {
46520
+ }, /* @__PURE__ */ React2__default.createElement("span", {
46504
46521
  style: { fontWeight: 600 }
46505
- }, "#", result.slideIndex + 1), /* @__PURE__ */ React19__default.createElement("span", {
46522
+ }, "#", result.slideIndex + 1), /* @__PURE__ */ React2__default.createElement("span", {
46506
46523
  style: { opacity: 0.8 }
46507
- }, "(", result.count, " match", result.count !== 1 ? "es" : "", ")")))), searchQuery && onClear && /* @__PURE__ */ React19__default.createElement("button", {
46524
+ }, "(", result.count, " match", result.count !== 1 ? "es" : "", ")")))), searchQuery && onClear && /* @__PURE__ */ React2__default.createElement("button", {
46508
46525
  onClick: () => {
46509
46526
  var _a;
46510
46527
  onClear();
@@ -46531,7 +46548,7 @@ var SlideSearchBar = ({
46531
46548
  e2.currentTarget.style.backgroundColor = "transparent";
46532
46549
  },
46533
46550
  title: "Clear search"
46534
- }, "Clear"), /* @__PURE__ */ React19__default.createElement("button", {
46551
+ }, "Clear"), /* @__PURE__ */ React2__default.createElement("button", {
46535
46552
  onClick: onClose,
46536
46553
  style: {
46537
46554
  display: "flex",
@@ -46554,7 +46571,7 @@ var SlideSearchBar = ({
46554
46571
  e2.currentTarget.style.backgroundColor = "transparent";
46555
46572
  },
46556
46573
  title: "Close search (Esc)"
46557
- }, /* @__PURE__ */ React19__default.createElement(X, {
46574
+ }, /* @__PURE__ */ React2__default.createElement(X, {
46558
46575
  size: 16
46559
46576
  })));
46560
46577
  };
@@ -46826,7 +46843,7 @@ var SlidePresentationBook = ({
46826
46843
  }, [slides.length, currentSlide]);
46827
46844
  const leftSlideIndex = currentSlide;
46828
46845
  const rightSlideIndex = viewMode === "book" ? currentSlide + 1 : -1;
46829
- return /* @__PURE__ */ React19__default.createElement("div", {
46846
+ return /* @__PURE__ */ React2__default.createElement("div", {
46830
46847
  ref: containerRef,
46831
46848
  style: {
46832
46849
  height: containerHeight,
@@ -46835,7 +46852,7 @@ var SlidePresentationBook = ({
46835
46852
  backgroundColor: theme2.colors.background,
46836
46853
  position: "relative"
46837
46854
  }
46838
- }, showNavigation && /* @__PURE__ */ React19__default.createElement(SlideNavigationHeader, {
46855
+ }, showNavigation && /* @__PURE__ */ React2__default.createElement(SlideNavigationHeader, {
46839
46856
  currentSlide,
46840
46857
  totalSlides: slides.length,
46841
46858
  showTOC,
@@ -46858,7 +46875,7 @@ var SlidePresentationBook = ({
46858
46875
  onClose,
46859
46876
  onCollapseLeft: handleCollapseLeft,
46860
46877
  onCollapseRight: handleCollapseRight
46861
- }), /* @__PURE__ */ React19__default.createElement("div", {
46878
+ }), /* @__PURE__ */ React2__default.createElement("div", {
46862
46879
  style: {
46863
46880
  flex: 1,
46864
46881
  width: "100%",
@@ -46866,11 +46883,11 @@ var SlidePresentationBook = ({
46866
46883
  position: "relative",
46867
46884
  display: "flex"
46868
46885
  }
46869
- }, viewMode === "single" && effectiveTocDisplayMode === "sidebar" ? /* @__PURE__ */ React19__default.createElement(R, {
46886
+ }, viewMode === "single" && effectiveTocDisplayMode === "sidebar" ? /* @__PURE__ */ React2__default.createElement(R, {
46870
46887
  key: `toc-${tocSidebarPosition}`,
46871
46888
  collapsed: !showTOC,
46872
46889
  collapsibleSide: tocSidebarPosition,
46873
- leftPanel: tocSidebarPosition === "left" ? /* @__PURE__ */ React19__default.createElement("div", {
46890
+ leftPanel: tocSidebarPosition === "left" ? /* @__PURE__ */ React2__default.createElement("div", {
46874
46891
  style: {
46875
46892
  height: "100%",
46876
46893
  width: "100%",
@@ -46878,7 +46895,7 @@ var SlidePresentationBook = ({
46878
46895
  overflowY: "auto",
46879
46896
  overflowX: "hidden"
46880
46897
  }
46881
- }, /* @__PURE__ */ React19__default.createElement("div", {
46898
+ }, /* @__PURE__ */ React2__default.createElement("div", {
46882
46899
  style: {
46883
46900
  padding: theme2.space[3],
46884
46901
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -46887,7 +46904,7 @@ var SlidePresentationBook = ({
46887
46904
  top: 0,
46888
46905
  zIndex: 1
46889
46906
  }
46890
- }, /* @__PURE__ */ React19__default.createElement("h3", {
46907
+ }, /* @__PURE__ */ React2__default.createElement("h3", {
46891
46908
  style: {
46892
46909
  margin: 0,
46893
46910
  fontSize: theme2.fontSizes[3],
@@ -46895,18 +46912,18 @@ var SlidePresentationBook = ({
46895
46912
  color: theme2.colors.text,
46896
46913
  fontWeight: 600
46897
46914
  }
46898
- }, "Table of Contents"), /* @__PURE__ */ React19__default.createElement("p", {
46915
+ }, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
46899
46916
  style: {
46900
46917
  margin: `${theme2.space[1]}px 0 0 0`,
46901
46918
  fontSize: theme2.fontSizes[0],
46902
46919
  color: theme2.colors.textSecondary,
46903
46920
  fontFamily: theme2.fonts.body
46904
46921
  }
46905
- }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React19__default.createElement("div", {
46922
+ }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
46906
46923
  style: { padding: theme2.space[2] }
46907
46924
  }, slideTitles.map((title, index2) => {
46908
46925
  const isCurrentPage = index2 === currentSlide;
46909
- return /* @__PURE__ */ React19__default.createElement("button", {
46926
+ return /* @__PURE__ */ React2__default.createElement("button", {
46910
46927
  key: index2,
46911
46928
  onClick: () => navigateToSlide(index2),
46912
46929
  style: {
@@ -46935,9 +46952,9 @@ var SlidePresentationBook = ({
46935
46952
  e2.currentTarget.style.backgroundColor = "transparent";
46936
46953
  }
46937
46954
  }
46938
- }, /* @__PURE__ */ React19__default.createElement("div", {
46955
+ }, /* @__PURE__ */ React2__default.createElement("div", {
46939
46956
  style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
46940
- }, /* @__PURE__ */ React19__default.createElement("span", {
46957
+ }, /* @__PURE__ */ React2__default.createElement("span", {
46941
46958
  style: {
46942
46959
  display: "inline-block",
46943
46960
  minWidth: "24px",
@@ -46945,14 +46962,14 @@ var SlidePresentationBook = ({
46945
46962
  fontFamily: theme2.fonts.monospace,
46946
46963
  opacity: 0.6
46947
46964
  }
46948
- }, index2 + 1, "."), /* @__PURE__ */ React19__default.createElement("span", {
46965
+ }, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
46949
46966
  style: {
46950
46967
  flex: 1,
46951
46968
  overflow: "hidden",
46952
46969
  textOverflow: "ellipsis",
46953
46970
  whiteSpace: "nowrap"
46954
46971
  }
46955
- }, title)), isCurrentPage && /* @__PURE__ */ React19__default.createElement("div", {
46972
+ }, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
46956
46973
  style: {
46957
46974
  position: "absolute",
46958
46975
  left: 0,
@@ -46964,9 +46981,9 @@ var SlidePresentationBook = ({
46964
46981
  borderRadius: "0 2px 2px 0"
46965
46982
  }
46966
46983
  }));
46967
- }))) : /* @__PURE__ */ React19__default.createElement("div", {
46984
+ }))) : /* @__PURE__ */ React2__default.createElement("div", {
46968
46985
  style: { height: "100%", width: "100%", position: "relative" }
46969
- }, slides.length > 0 ? /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
46986
+ }, slides.length > 0 ? /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
46970
46987
  content: slides[leftSlideIndex] || "",
46971
46988
  slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
46972
46989
  slideIndex: leftSlideIndex,
@@ -46980,7 +46997,7 @@ var SlidePresentationBook = ({
46980
46997
  handlePromptCopy,
46981
46998
  fontSizeScale,
46982
46999
  searchQuery: showSearch ? searchQuery : void 0
46983
- }) : /* @__PURE__ */ React19__default.createElement("div", {
47000
+ }) : /* @__PURE__ */ React2__default.createElement("div", {
46984
47001
  style: {
46985
47002
  height: "100%",
46986
47003
  display: "flex",
@@ -46991,7 +47008,7 @@ var SlidePresentationBook = ({
46991
47008
  fontFamily: theme2.fonts.body
46992
47009
  }
46993
47010
  }, "No slides available")),
46994
- rightPanel: tocSidebarPosition === "right" ? /* @__PURE__ */ React19__default.createElement("div", {
47011
+ rightPanel: tocSidebarPosition === "right" ? /* @__PURE__ */ React2__default.createElement("div", {
46995
47012
  style: {
46996
47013
  height: "100%",
46997
47014
  width: "100%",
@@ -46999,7 +47016,7 @@ var SlidePresentationBook = ({
46999
47016
  overflowY: "auto",
47000
47017
  overflowX: "hidden"
47001
47018
  }
47002
- }, /* @__PURE__ */ React19__default.createElement("div", {
47019
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47003
47020
  style: {
47004
47021
  padding: theme2.space[3],
47005
47022
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -47008,7 +47025,7 @@ var SlidePresentationBook = ({
47008
47025
  top: 0,
47009
47026
  zIndex: 1
47010
47027
  }
47011
- }, /* @__PURE__ */ React19__default.createElement("h3", {
47028
+ }, /* @__PURE__ */ React2__default.createElement("h3", {
47012
47029
  style: {
47013
47030
  margin: 0,
47014
47031
  fontSize: theme2.fontSizes[3],
@@ -47016,18 +47033,18 @@ var SlidePresentationBook = ({
47016
47033
  color: theme2.colors.text,
47017
47034
  fontWeight: 600
47018
47035
  }
47019
- }, "Table of Contents"), /* @__PURE__ */ React19__default.createElement("p", {
47036
+ }, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
47020
47037
  style: {
47021
47038
  margin: `${theme2.space[1]}px 0 0 0`,
47022
47039
  fontSize: theme2.fontSizes[0],
47023
47040
  color: theme2.colors.textSecondary,
47024
47041
  fontFamily: theme2.fonts.body
47025
47042
  }
47026
- }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React19__default.createElement("div", {
47043
+ }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
47027
47044
  style: { padding: theme2.space[2] }
47028
47045
  }, slideTitles.map((title, index2) => {
47029
47046
  const isCurrentPage = index2 === currentSlide;
47030
- return /* @__PURE__ */ React19__default.createElement("button", {
47047
+ return /* @__PURE__ */ React2__default.createElement("button", {
47031
47048
  key: index2,
47032
47049
  onClick: () => navigateToSlide(index2),
47033
47050
  style: {
@@ -47056,9 +47073,9 @@ var SlidePresentationBook = ({
47056
47073
  e2.currentTarget.style.backgroundColor = "transparent";
47057
47074
  }
47058
47075
  }
47059
- }, /* @__PURE__ */ React19__default.createElement("div", {
47076
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47060
47077
  style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
47061
- }, /* @__PURE__ */ React19__default.createElement("span", {
47078
+ }, /* @__PURE__ */ React2__default.createElement("span", {
47062
47079
  style: {
47063
47080
  display: "inline-block",
47064
47081
  minWidth: "24px",
@@ -47066,14 +47083,14 @@ var SlidePresentationBook = ({
47066
47083
  fontFamily: theme2.fonts.monospace,
47067
47084
  opacity: 0.6
47068
47085
  }
47069
- }, index2 + 1, "."), /* @__PURE__ */ React19__default.createElement("span", {
47086
+ }, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
47070
47087
  style: {
47071
47088
  flex: 1,
47072
47089
  overflow: "hidden",
47073
47090
  textOverflow: "ellipsis",
47074
47091
  whiteSpace: "nowrap"
47075
47092
  }
47076
- }, title)), isCurrentPage && /* @__PURE__ */ React19__default.createElement("div", {
47093
+ }, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
47077
47094
  style: {
47078
47095
  position: "absolute",
47079
47096
  left: 0,
@@ -47085,9 +47102,9 @@ var SlidePresentationBook = ({
47085
47102
  borderRadius: "0 2px 2px 0"
47086
47103
  }
47087
47104
  }));
47088
- }))) : /* @__PURE__ */ React19__default.createElement("div", {
47105
+ }))) : /* @__PURE__ */ React2__default.createElement("div", {
47089
47106
  style: { height: "100%", width: "100%", position: "relative" }
47090
- }, slides.length > 0 ? /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47107
+ }, slides.length > 0 ? /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47091
47108
  content: slides[leftSlideIndex] || "",
47092
47109
  slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
47093
47110
  slideIndex: leftSlideIndex,
@@ -47101,7 +47118,7 @@ var SlidePresentationBook = ({
47101
47118
  handlePromptCopy,
47102
47119
  fontSizeScale,
47103
47120
  searchQuery: showSearch ? searchQuery : void 0
47104
- }) : /* @__PURE__ */ React19__default.createElement("div", {
47121
+ }) : /* @__PURE__ */ React2__default.createElement("div", {
47105
47122
  style: {
47106
47123
  height: "100%",
47107
47124
  display: "flex",
@@ -47116,106 +47133,7 @@ var SlidePresentationBook = ({
47116
47133
  minSize: 15,
47117
47134
  showCollapseButton: false,
47118
47135
  theme: theme2
47119
- }) : /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, showTOC && /* @__PURE__ */ React19__default.createElement("div", {
47120
- style: {
47121
- position: "absolute",
47122
- top: 0,
47123
- left: 0,
47124
- bottom: 0,
47125
- width: "300px",
47126
- zIndex: 10,
47127
- backgroundColor: theme2.colors.backgroundSecondary,
47128
- borderRight: `1px solid ${theme2.colors.border}`,
47129
- overflowY: "auto",
47130
- overflowX: "hidden"
47131
- }
47132
- }, /* @__PURE__ */ React19__default.createElement("div", {
47133
- style: {
47134
- padding: theme2.space[3],
47135
- borderBottom: `1px solid ${theme2.colors.border}`,
47136
- backgroundColor: theme2.colors.background,
47137
- position: "sticky",
47138
- top: 0,
47139
- zIndex: 1
47140
- }
47141
- }, /* @__PURE__ */ React19__default.createElement("h3", {
47142
- style: {
47143
- margin: 0,
47144
- fontSize: theme2.fontSizes[3],
47145
- fontFamily: theme2.fonts.heading,
47146
- color: theme2.colors.text,
47147
- fontWeight: 600
47148
- }
47149
- }, "Table of Contents"), /* @__PURE__ */ React19__default.createElement("p", {
47150
- style: {
47151
- margin: `${theme2.space[1]}px 0 0 0`,
47152
- fontSize: theme2.fontSizes[0],
47153
- color: theme2.colors.textSecondary,
47154
- fontFamily: theme2.fonts.body
47155
- }
47156
- }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React19__default.createElement("div", {
47157
- style: { padding: theme2.space[2] }
47158
- }, slideTitles.map((title, index2) => {
47159
- const isCurrentPage = viewMode === "book" ? index2 === leftSlideIndex || index2 === rightSlideIndex : index2 === currentSlide;
47160
- return /* @__PURE__ */ React19__default.createElement("button", {
47161
- key: index2,
47162
- onClick: () => navigateToSlide(index2),
47163
- style: {
47164
- display: "block",
47165
- width: "100%",
47166
- padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
47167
- marginBottom: theme2.space[1],
47168
- backgroundColor: isCurrentPage ? theme2.colors.primary : "transparent",
47169
- border: "none",
47170
- borderRadius: theme2.radii[1],
47171
- color: isCurrentPage ? theme2.colors.background : theme2.colors.text,
47172
- fontSize: theme2.fontSizes[1],
47173
- fontFamily: theme2.fonts.body,
47174
- textAlign: "left",
47175
- cursor: "pointer",
47176
- transition: "all 0.2s ease",
47177
- position: "relative"
47178
- },
47179
- onMouseOver: (e2) => {
47180
- if (!isCurrentPage) {
47181
- e2.currentTarget.style.backgroundColor = theme2.colors.backgroundHover;
47182
- }
47183
- },
47184
- onMouseOut: (e2) => {
47185
- if (!isCurrentPage) {
47186
- e2.currentTarget.style.backgroundColor = "transparent";
47187
- }
47188
- }
47189
- }, /* @__PURE__ */ React19__default.createElement("div", {
47190
- style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
47191
- }, /* @__PURE__ */ React19__default.createElement("span", {
47192
- style: {
47193
- display: "inline-block",
47194
- minWidth: "24px",
47195
- fontSize: theme2.fontSizes[0],
47196
- fontFamily: theme2.fonts.monospace,
47197
- opacity: 0.6
47198
- }
47199
- }, index2 + 1, "."), /* @__PURE__ */ React19__default.createElement("span", {
47200
- style: {
47201
- flex: 1,
47202
- overflow: "hidden",
47203
- textOverflow: "ellipsis",
47204
- whiteSpace: "nowrap"
47205
- }
47206
- }, title)), isCurrentPage && /* @__PURE__ */ React19__default.createElement("div", {
47207
- style: {
47208
- position: "absolute",
47209
- left: 0,
47210
- top: "50%",
47211
- transform: "translateY(-50%)",
47212
- width: "3px",
47213
- height: "60%",
47214
- backgroundColor: isCurrentPage ? theme2.colors.background : theme2.colors.primary,
47215
- borderRadius: "0 2px 2px 0"
47216
- }
47217
- }));
47218
- }))), effectiveTocDisplayMode === "overlay" && /* @__PURE__ */ React19__default.createElement("div", {
47136
+ }) : /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, effectiveTocDisplayMode === "overlay" && /* @__PURE__ */ React2__default.createElement("div", {
47219
47137
  style: {
47220
47138
  position: "absolute",
47221
47139
  top: 0,
@@ -47230,7 +47148,7 @@ var SlidePresentationBook = ({
47230
47148
  overflowY: "auto",
47231
47149
  overflowX: "hidden"
47232
47150
  }
47233
- }, /* @__PURE__ */ React19__default.createElement("div", {
47151
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47234
47152
  style: {
47235
47153
  padding: theme2.space[3],
47236
47154
  borderBottom: `1px solid ${theme2.colors.border}`,
@@ -47239,7 +47157,7 @@ var SlidePresentationBook = ({
47239
47157
  top: 0,
47240
47158
  zIndex: 1
47241
47159
  }
47242
- }, /* @__PURE__ */ React19__default.createElement("h3", {
47160
+ }, /* @__PURE__ */ React2__default.createElement("h3", {
47243
47161
  style: {
47244
47162
  margin: 0,
47245
47163
  fontSize: theme2.fontSizes[3],
@@ -47247,18 +47165,18 @@ var SlidePresentationBook = ({
47247
47165
  color: theme2.colors.text,
47248
47166
  fontWeight: 600
47249
47167
  }
47250
- }, "Table of Contents"), /* @__PURE__ */ React19__default.createElement("p", {
47168
+ }, "Table of Contents"), /* @__PURE__ */ React2__default.createElement("p", {
47251
47169
  style: {
47252
47170
  margin: `${theme2.space[1]}px 0 0 0`,
47253
47171
  fontSize: theme2.fontSizes[0],
47254
47172
  color: theme2.colors.textSecondary,
47255
47173
  fontFamily: theme2.fonts.body
47256
47174
  }
47257
- }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React19__default.createElement("div", {
47175
+ }, slides.length, " ", slides.length === 1 ? "slide" : "slides")), /* @__PURE__ */ React2__default.createElement("div", {
47258
47176
  style: { padding: theme2.space[2] }
47259
47177
  }, slideTitles.map((title, index2) => {
47260
47178
  const isCurrentPage = viewMode === "book" ? index2 === leftSlideIndex || index2 === rightSlideIndex : index2 === currentSlide;
47261
- return /* @__PURE__ */ React19__default.createElement("button", {
47179
+ return /* @__PURE__ */ React2__default.createElement("button", {
47262
47180
  key: index2,
47263
47181
  onClick: () => navigateToSlide(index2),
47264
47182
  style: {
@@ -47287,9 +47205,9 @@ var SlidePresentationBook = ({
47287
47205
  e2.currentTarget.style.backgroundColor = "transparent";
47288
47206
  }
47289
47207
  }
47290
- }, /* @__PURE__ */ React19__default.createElement("div", {
47208
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47291
47209
  style: { display: "flex", alignItems: "center", gap: theme2.space[2] }
47292
- }, /* @__PURE__ */ React19__default.createElement("span", {
47210
+ }, /* @__PURE__ */ React2__default.createElement("span", {
47293
47211
  style: {
47294
47212
  display: "inline-block",
47295
47213
  minWidth: "24px",
@@ -47297,14 +47215,14 @@ var SlidePresentationBook = ({
47297
47215
  fontFamily: theme2.fonts.monospace,
47298
47216
  opacity: 0.6
47299
47217
  }
47300
- }, index2 + 1, "."), /* @__PURE__ */ React19__default.createElement("span", {
47218
+ }, index2 + 1, "."), /* @__PURE__ */ React2__default.createElement("span", {
47301
47219
  style: {
47302
47220
  flex: 1,
47303
47221
  overflow: "hidden",
47304
47222
  textOverflow: "ellipsis",
47305
47223
  whiteSpace: "nowrap"
47306
47224
  }
47307
- }, title)), isCurrentPage && /* @__PURE__ */ React19__default.createElement("div", {
47225
+ }, title)), isCurrentPage && /* @__PURE__ */ React2__default.createElement("div", {
47308
47226
  style: {
47309
47227
  position: "absolute",
47310
47228
  left: 0,
@@ -47316,7 +47234,7 @@ var SlidePresentationBook = ({
47316
47234
  borderRadius: "0 2px 2px 0"
47317
47235
  }
47318
47236
  }));
47319
- }))), effectiveTocDisplayMode === "overlay" && showTOC && /* @__PURE__ */ React19__default.createElement("div", {
47237
+ }))), effectiveTocDisplayMode === "overlay" && showTOC && /* @__PURE__ */ React2__default.createElement("div", {
47320
47238
  onClick: () => setShowTOC(false),
47321
47239
  style: {
47322
47240
  position: "absolute",
@@ -47328,7 +47246,7 @@ var SlidePresentationBook = ({
47328
47246
  zIndex: 9,
47329
47247
  cursor: "pointer"
47330
47248
  }
47331
- }), /* @__PURE__ */ React19__default.createElement("div", {
47249
+ }), /* @__PURE__ */ React2__default.createElement("div", {
47332
47250
  style: {
47333
47251
  flex: 1,
47334
47252
  position: "relative",
@@ -47338,18 +47256,18 @@ var SlidePresentationBook = ({
47338
47256
  backgroundColor: theme2.colors.background,
47339
47257
  width: "100%"
47340
47258
  }
47341
- }, slides.length > 0 ? viewMode === "book" && slides.length > 1 ? /* @__PURE__ */ React19__default.createElement(R, {
47259
+ }, slides.length > 0 ? viewMode === "book" && slides.length > 1 ? /* @__PURE__ */ React2__default.createElement(R, {
47342
47260
  key: `${lastInteractedSide}-${collapsedSide}`,
47343
47261
  collapsed: collapsedSide !== null,
47344
47262
  collapsibleSide: lastInteractedSide,
47345
- leftPanel: /* @__PURE__ */ React19__default.createElement("div", {
47263
+ leftPanel: /* @__PURE__ */ React2__default.createElement("div", {
47346
47264
  style: {
47347
47265
  height: "100%",
47348
47266
  width: "100%",
47349
47267
  position: "relative",
47350
47268
  overflow: "hidden"
47351
47269
  }
47352
- }, /* @__PURE__ */ React19__default.createElement("div", {
47270
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47353
47271
  style: {
47354
47272
  height: "100%",
47355
47273
  width: "100%",
@@ -47364,7 +47282,7 @@ var SlidePresentationBook = ({
47364
47282
  right: 0,
47365
47283
  bottom: 0
47366
47284
  }
47367
- }, /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47285
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47368
47286
  content: slides[leftSlideIndex] || "",
47369
47287
  slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
47370
47288
  slideIndex: leftSlideIndex,
@@ -47386,14 +47304,14 @@ var SlidePresentationBook = ({
47386
47304
  },
47387
47305
  disableScroll: false
47388
47306
  }))),
47389
- rightPanel: rightSlideIndex < slides.length ? /* @__PURE__ */ React19__default.createElement("div", {
47307
+ rightPanel: rightSlideIndex < slides.length ? /* @__PURE__ */ React2__default.createElement("div", {
47390
47308
  style: {
47391
47309
  height: "100%",
47392
47310
  width: "100%",
47393
47311
  position: "relative",
47394
47312
  overflow: "hidden"
47395
47313
  }
47396
- }, /* @__PURE__ */ React19__default.createElement("div", {
47314
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47397
47315
  style: {
47398
47316
  height: "100%",
47399
47317
  width: "100%",
@@ -47408,7 +47326,7 @@ var SlidePresentationBook = ({
47408
47326
  right: 0,
47409
47327
  bottom: 0
47410
47328
  }
47411
- }, /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47329
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47412
47330
  content: slides[rightSlideIndex] || "",
47413
47331
  slideIdPrefix: `${slideIdPrefix}-${rightSlideIndex}`,
47414
47332
  slideIndex: rightSlideIndex,
@@ -47429,7 +47347,7 @@ var SlidePresentationBook = ({
47429
47347
  top: `${theme2.space[3]}px`
47430
47348
  },
47431
47349
  disableScroll: false
47432
- }))) : /* @__PURE__ */ React19__default.createElement("div", {
47350
+ }))) : /* @__PURE__ */ React2__default.createElement("div", {
47433
47351
  style: {
47434
47352
  height: "100%",
47435
47353
  backgroundColor: theme2.colors.background,
@@ -47449,7 +47367,7 @@ var SlidePresentationBook = ({
47449
47367
  minSize: 30,
47450
47368
  showCollapseButton: false,
47451
47369
  theme: theme2
47452
- }) : /* @__PURE__ */ React19__default.createElement("div", {
47370
+ }) : /* @__PURE__ */ React2__default.createElement("div", {
47453
47371
  style: {
47454
47372
  flex: "1 1 0%",
47455
47373
  backgroundColor: "transparent",
@@ -47464,7 +47382,7 @@ var SlidePresentationBook = ({
47464
47382
  justifyContent: "center"
47465
47383
  } : {}
47466
47384
  }
47467
- }, /* @__PURE__ */ React19__default.createElement("div", {
47385
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47468
47386
  style: {
47469
47387
  ...viewMode === "book" && slides.length === 1 ? {
47470
47388
  width: "50%",
@@ -47476,7 +47394,7 @@ var SlidePresentationBook = ({
47476
47394
  height: "100%"
47477
47395
  }
47478
47396
  }
47479
- }, /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47397
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47480
47398
  content: slides[leftSlideIndex] || "",
47481
47399
  slideIdPrefix: `${slideIdPrefix}-${leftSlideIndex}`,
47482
47400
  slideIndex: leftSlideIndex,
@@ -47492,7 +47410,7 @@ var SlidePresentationBook = ({
47492
47410
  searchQuery: showSearch ? searchQuery : void 0,
47493
47411
  transparentBackground: false,
47494
47412
  disableScroll: false
47495
- }))) : /* @__PURE__ */ React19__default.createElement("div", {
47413
+ }))) : /* @__PURE__ */ React2__default.createElement("div", {
47496
47414
  style: {
47497
47415
  height: "100%",
47498
47416
  display: "flex",
@@ -47502,7 +47420,7 @@ var SlidePresentationBook = ({
47502
47420
  fontSize: theme2.fontSizes[2],
47503
47421
  fontFamily: theme2.fonts.body
47504
47422
  }
47505
- }, "No slides available")), viewMode === "book" && slides.length > 1 && /* @__PURE__ */ React19__default.createElement(React19__default.Fragment, null, /* @__PURE__ */ React19__default.createElement("div", {
47423
+ }, "No slides available")), viewMode === "book" && slides.length > 1 && /* @__PURE__ */ React2__default.createElement(React2__default.Fragment, null, /* @__PURE__ */ React2__default.createElement("div", {
47506
47424
  style: {
47507
47425
  position: "absolute",
47508
47426
  bottom: theme2.space[3],
@@ -47511,7 +47429,7 @@ var SlidePresentationBook = ({
47511
47429
  color: theme2.colors.textSecondary,
47512
47430
  fontFamily: theme2.fonts.monospace
47513
47431
  }
47514
- }, leftSlideIndex + 1), rightSlideIndex < slides.length && /* @__PURE__ */ React19__default.createElement("div", {
47432
+ }, leftSlideIndex + 1), rightSlideIndex < slides.length && /* @__PURE__ */ React2__default.createElement("div", {
47515
47433
  style: {
47516
47434
  position: "absolute",
47517
47435
  bottom: theme2.space[3],
@@ -47520,7 +47438,7 @@ var SlidePresentationBook = ({
47520
47438
  color: theme2.colors.textSecondary,
47521
47439
  fontFamily: theme2.fonts.monospace
47522
47440
  }
47523
- }, rightSlideIndex + 1)))), showNavigation && slides.length > 1 && /* @__PURE__ */ React19__default.createElement("div", {
47441
+ }, rightSlideIndex + 1)))), showNavigation && slides.length > 1 && /* @__PURE__ */ React2__default.createElement("div", {
47524
47442
  style: {
47525
47443
  position: "absolute",
47526
47444
  bottom: 0,
@@ -47530,14 +47448,14 @@ var SlidePresentationBook = ({
47530
47448
  backgroundColor: theme2.colors.border,
47531
47449
  opacity: 0.3
47532
47450
  }
47533
- }, /* @__PURE__ */ React19__default.createElement("div", {
47451
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47534
47452
  style: {
47535
47453
  height: "100%",
47536
47454
  width: `${(currentSlide + stepSize) / slides.length * 100}%`,
47537
47455
  backgroundColor: theme2.colors.primary,
47538
47456
  transition: "width 0.3s ease"
47539
47457
  }
47540
- })), /* @__PURE__ */ React19__default.createElement(SlideSearchBar, {
47458
+ })), /* @__PURE__ */ React2__default.createElement(SlideSearchBar, {
47541
47459
  showSearch,
47542
47460
  searchQuery,
47543
47461
  setSearchQuery,
@@ -47556,11 +47474,10 @@ var SlidePresentationBook = ({
47556
47474
  };
47557
47475
  var DocumentView = ({
47558
47476
  content: content2,
47559
- showSegmented = true,
47477
+ showSegmented = false,
47560
47478
  onCheckboxChange,
47561
47479
  onSectionClick,
47562
47480
  maxWidth = "900px",
47563
- padding = "24px",
47564
47481
  showSectionHeaders = true,
47565
47482
  showSeparators = true,
47566
47483
  slideIdPrefix = "document",
@@ -47591,20 +47508,20 @@ var DocumentView = ({
47591
47508
  onSectionClick == null ? void 0 : onSectionClick(index2);
47592
47509
  }, [scrollToSection, onSectionClick]);
47593
47510
  if (typeof content2 === "string") {
47594
- return /* @__PURE__ */ React19__default.createElement("div", {
47511
+ return /* @__PURE__ */ React2__default.createElement("div", {
47595
47512
  ref: containerRef,
47596
47513
  style: {
47597
47514
  height: "100%",
47598
47515
  overflow: "auto",
47599
- backgroundColor,
47600
- padding: typeof padding === "number" ? `${padding}px` : padding
47516
+ backgroundColor
47601
47517
  }
47602
- }, /* @__PURE__ */ React19__default.createElement("div", {
47518
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47603
47519
  style: {
47604
47520
  maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
47605
- margin: "0 auto"
47521
+ margin: "0 auto",
47522
+ height: "100%"
47606
47523
  }
47607
- }, /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47524
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47608
47525
  content: content2,
47609
47526
  slideIdPrefix,
47610
47527
  slideIndex: 0,
@@ -47617,7 +47534,8 @@ var DocumentView = ({
47617
47534
  handleRunBashCommand,
47618
47535
  fontSizeScale,
47619
47536
  handlePromptCopy,
47620
- repositoryInfo
47537
+ repositoryInfo,
47538
+ transparentBackground
47621
47539
  })));
47622
47540
  }
47623
47541
  if (!showSegmented) {
@@ -47626,20 +47544,20 @@ var DocumentView = ({
47626
47544
  ---
47627
47545
 
47628
47546
  `);
47629
- return /* @__PURE__ */ React19__default.createElement("div", {
47547
+ return /* @__PURE__ */ React2__default.createElement("div", {
47630
47548
  ref: containerRef,
47631
47549
  style: {
47632
47550
  height: "100%",
47633
47551
  overflow: "auto",
47634
- backgroundColor,
47635
- padding: typeof padding === "number" ? `${padding}px` : padding
47552
+ backgroundColor
47636
47553
  }
47637
- }, /* @__PURE__ */ React19__default.createElement("div", {
47554
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47638
47555
  style: {
47639
47556
  maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
47640
- margin: "0 auto"
47557
+ margin: "0 auto",
47558
+ height: "100%"
47641
47559
  }
47642
- }, /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47560
+ }, /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47643
47561
  content: fullContent,
47644
47562
  slideIdPrefix,
47645
47563
  slideIndex: 0,
@@ -47652,23 +47570,23 @@ var DocumentView = ({
47652
47570
  handleRunBashCommand,
47653
47571
  fontSizeScale,
47654
47572
  handlePromptCopy,
47655
- repositoryInfo
47573
+ repositoryInfo,
47574
+ transparentBackground
47656
47575
  })));
47657
47576
  }
47658
- return /* @__PURE__ */ React19__default.createElement("div", {
47577
+ return /* @__PURE__ */ React2__default.createElement("div", {
47659
47578
  ref: containerRef,
47660
47579
  style: {
47661
47580
  height: "100%",
47662
47581
  overflow: "auto",
47663
- backgroundColor,
47664
- padding: typeof padding === "number" ? `${padding}px` : padding
47582
+ backgroundColor
47665
47583
  }
47666
- }, /* @__PURE__ */ React19__default.createElement("div", {
47584
+ }, /* @__PURE__ */ React2__default.createElement("div", {
47667
47585
  style: {
47668
47586
  maxWidth: typeof maxWidth === "number" ? `${maxWidth}px` : maxWidth,
47669
47587
  margin: "0 auto"
47670
47588
  }
47671
- }, content2.map((slideContent, index2) => /* @__PURE__ */ React19__default.createElement("div", {
47589
+ }, content2.map((slideContent, index2) => /* @__PURE__ */ React2__default.createElement("div", {
47672
47590
  key: index2,
47673
47591
  ref: (el) => {
47674
47592
  if (el)
@@ -47678,7 +47596,7 @@ var DocumentView = ({
47678
47596
  marginBottom: index2 < content2.length - 1 ? "48px" : "0",
47679
47597
  scrollMarginTop: "20px"
47680
47598
  }
47681
- }, showSectionHeaders && /* @__PURE__ */ React19__default.createElement("div", {
47599
+ }, showSectionHeaders && /* @__PURE__ */ React2__default.createElement("div", {
47682
47600
  onClick: () => handleSectionClick(index2),
47683
47601
  style: {
47684
47602
  display: "flex",
@@ -47697,7 +47615,7 @@ var DocumentView = ({
47697
47615
  onMouseOut: (e2) => {
47698
47616
  e2.currentTarget.style.opacity = "0.7";
47699
47617
  }
47700
- }, /* @__PURE__ */ React19__default.createElement("span", {
47618
+ }, /* @__PURE__ */ React2__default.createElement("span", {
47701
47619
  style: {
47702
47620
  fontSize: "11px",
47703
47621
  fontWeight: 600,
@@ -47705,7 +47623,7 @@ var DocumentView = ({
47705
47623
  textTransform: "uppercase",
47706
47624
  letterSpacing: "0.5px"
47707
47625
  }
47708
- }, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */ React19__default.createElement(IndustryMarkdownSlide, {
47626
+ }, "Section ", index2 + 1, " of ", content2.length)), /* @__PURE__ */ React2__default.createElement(IndustryMarkdownSlide, {
47709
47627
  content: slideContent,
47710
47628
  slideIdPrefix: `${slideIdPrefix}-${index2}`,
47711
47629
  slideIndex: index2,
@@ -47718,8 +47636,9 @@ var DocumentView = ({
47718
47636
  handleRunBashCommand,
47719
47637
  fontSizeScale,
47720
47638
  handlePromptCopy,
47721
- repositoryInfo
47722
- }), showSeparators && index2 < content2.length - 1 && /* @__PURE__ */ React19__default.createElement("div", {
47639
+ repositoryInfo,
47640
+ transparentBackground
47641
+ }), showSeparators && index2 < content2.length - 1 && /* @__PURE__ */ React2__default.createElement("div", {
47723
47642
  style: {
47724
47643
  marginTop: "32px",
47725
47644
  marginBottom: "32px",
@@ -47746,6 +47665,15 @@ const MarkdownPanel = ({
47746
47665
  const [viewMode, setViewMode] = useState("book");
47747
47666
  const [currentSlide, setCurrentSlide] = useState(0);
47748
47667
  const [fontSizeScale, setFontSizeScale] = useState(1);
47668
+ const [isMobile, setIsMobile] = useState(false);
47669
+ useEffect(() => {
47670
+ const checkMobile = () => {
47671
+ setIsMobile(window.innerWidth < 768);
47672
+ };
47673
+ checkMobile();
47674
+ window.addEventListener("resize", checkMobile);
47675
+ return () => window.removeEventListener("resize", checkMobile);
47676
+ }, []);
47749
47677
  useEffect(() => {
47750
47678
  const unsubscribe = events.on("file:opened", (event) => {
47751
47679
  console.log("Markdown Panel: File opened:", event.payload);
@@ -47824,8 +47752,6 @@ const MarkdownPanel = ({
47824
47752
  }
47825
47753
  );
47826
47754
  }
47827
- const sourceInfo = activeFile.data.source;
47828
- const sourceLabel = sourceInfo.type === "local" ? `Local: ${sourceInfo.name}` : `${sourceInfo.provider}: ${sourceInfo.owner}/${sourceInfo.name}@${sourceInfo.location}`;
47829
47755
  return /* @__PURE__ */ jsxs(
47830
47756
  "div",
47831
47757
  {
@@ -47854,77 +47780,76 @@ const MarkdownPanel = ({
47854
47780
  gap: "12px"
47855
47781
  },
47856
47782
  children: [
47783
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: /* @__PURE__ */ jsx(
47784
+ "span",
47785
+ {
47786
+ style: {
47787
+ fontSize: "14px",
47788
+ fontWeight: 600,
47789
+ color: theme2.colors.text,
47790
+ fontFamily: theme2.fonts.body
47791
+ },
47792
+ children: basename(activeFile.data.path)
47793
+ }
47794
+ ) }),
47857
47795
  /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
47858
- /* @__PURE__ */ jsx(FileText, { size: 20, color: theme2.colors.primary }),
47859
- /* @__PURE__ */ jsx(
47860
- "span",
47861
- {
47862
- style: {
47863
- fontSize: "14px",
47864
- fontWeight: 600,
47865
- color: theme2.colors.text,
47866
- fontFamily: theme2.fonts.body
47867
- },
47868
- children: basename(activeFile.data.path)
47869
- }
47870
- )
47871
- ] }),
47872
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
47873
- /* @__PURE__ */ jsx(
47874
- "button",
47875
- {
47876
- onClick: handleFontSizeDecrease,
47877
- title: "Decrease Font Size",
47878
- style: {
47879
- background: "none",
47880
- border: `1px solid ${theme2.colors.border}`,
47881
- padding: "6px 8px",
47882
- cursor: "pointer",
47883
- display: "flex",
47884
- alignItems: "center",
47885
- color: theme2.colors.textSecondary,
47886
- borderRadius: "4px",
47887
- transition: "all 0.2s"
47888
- },
47889
- children: /* @__PURE__ */ jsx(Minus, { size: 14 })
47890
- }
47891
- ),
47892
- /* @__PURE__ */ jsxs(
47893
- "span",
47894
- {
47895
- style: {
47896
- fontSize: "12px",
47897
- color: theme2.colors.textSecondary,
47898
- userSelect: "none",
47899
- minWidth: "45px",
47900
- textAlign: "center",
47901
- fontFamily: theme2.fonts.body
47902
- },
47903
- children: [
47904
- Math.round(fontSizeScale * 100),
47905
- "%"
47906
- ]
47907
- }
47908
- ),
47909
- /* @__PURE__ */ jsx(
47910
- "button",
47911
- {
47912
- onClick: handleFontSizeIncrease,
47913
- title: "Increase Font Size",
47914
- style: {
47915
- background: "none",
47916
- border: `1px solid ${theme2.colors.border}`,
47917
- padding: "6px 8px",
47918
- cursor: "pointer",
47919
- display: "flex",
47920
- alignItems: "center",
47921
- color: theme2.colors.textSecondary,
47922
- borderRadius: "4px",
47923
- transition: "all 0.2s"
47924
- },
47925
- children: /* @__PURE__ */ jsx(Plus, { size: 14 })
47926
- }
47927
- ),
47796
+ !isMobile && /* @__PURE__ */ jsxs(Fragment, { children: [
47797
+ /* @__PURE__ */ jsx(
47798
+ "button",
47799
+ {
47800
+ onClick: handleFontSizeDecrease,
47801
+ title: "Decrease Font Size",
47802
+ style: {
47803
+ background: "none",
47804
+ border: `1px solid ${theme2.colors.border}`,
47805
+ padding: "6px 8px",
47806
+ cursor: "pointer",
47807
+ display: "flex",
47808
+ alignItems: "center",
47809
+ color: theme2.colors.textSecondary,
47810
+ borderRadius: "4px",
47811
+ transition: "all 0.2s"
47812
+ },
47813
+ children: /* @__PURE__ */ jsx(Minus, { size: 14 })
47814
+ }
47815
+ ),
47816
+ /* @__PURE__ */ jsxs(
47817
+ "span",
47818
+ {
47819
+ style: {
47820
+ fontSize: "12px",
47821
+ color: theme2.colors.textSecondary,
47822
+ userSelect: "none",
47823
+ minWidth: "45px",
47824
+ textAlign: "center",
47825
+ fontFamily: theme2.fonts.body
47826
+ },
47827
+ children: [
47828
+ Math.round(fontSizeScale * 100),
47829
+ "%"
47830
+ ]
47831
+ }
47832
+ ),
47833
+ /* @__PURE__ */ jsx(
47834
+ "button",
47835
+ {
47836
+ onClick: handleFontSizeIncrease,
47837
+ title: "Increase Font Size",
47838
+ style: {
47839
+ background: "none",
47840
+ border: `1px solid ${theme2.colors.border}`,
47841
+ padding: "6px 8px",
47842
+ cursor: "pointer",
47843
+ display: "flex",
47844
+ alignItems: "center",
47845
+ color: theme2.colors.textSecondary,
47846
+ borderRadius: "4px",
47847
+ transition: "all 0.2s"
47848
+ },
47849
+ children: /* @__PURE__ */ jsx(Plus, { size: 14 })
47850
+ }
47851
+ )
47852
+ ] }),
47928
47853
  hasSlides && /* @__PURE__ */ jsxs(
47929
47854
  "div",
47930
47855
  {
@@ -47934,7 +47859,7 @@ const MarkdownPanel = ({
47934
47859
  borderRadius: "4px",
47935
47860
  border: `1px solid ${theme2.colors.border}`,
47936
47861
  overflow: "hidden",
47937
- marginLeft: "8px"
47862
+ marginLeft: isMobile ? "0" : "8px"
47938
47863
  },
47939
47864
  children: [
47940
47865
  /* @__PURE__ */ jsx(
@@ -47944,18 +47869,22 @@ const MarkdownPanel = ({
47944
47869
  setViewMode("book");
47945
47870
  setCurrentSlide(0);
47946
47871
  },
47872
+ title: "Sections",
47947
47873
  style: {
47948
47874
  background: viewMode === "book" ? theme2.colors.primary : "transparent",
47949
47875
  color: viewMode === "book" ? theme2.colors.background : theme2.colors.textSecondary,
47950
47876
  border: "none",
47951
- padding: "6px 12px",
47877
+ padding: isMobile ? "6px 8px" : "6px 12px",
47952
47878
  cursor: "pointer",
47953
47879
  fontSize: "12px",
47954
47880
  fontWeight: 500,
47955
47881
  fontFamily: theme2.fonts.body,
47956
- transition: "all 0.2s"
47882
+ transition: "all 0.2s",
47883
+ display: "flex",
47884
+ alignItems: "center",
47885
+ gap: "4px"
47957
47886
  },
47958
- children: "Sections"
47887
+ children: isMobile ? /* @__PURE__ */ jsx(BookOpen, { size: 16 }) : "Sections"
47959
47888
  }
47960
47889
  ),
47961
47890
  /* @__PURE__ */ jsx(
@@ -47965,18 +47894,22 @@ const MarkdownPanel = ({
47965
47894
  setViewMode("document");
47966
47895
  setCurrentSlide(0);
47967
47896
  },
47897
+ title: "Document",
47968
47898
  style: {
47969
47899
  background: viewMode === "document" ? theme2.colors.primary : "transparent",
47970
47900
  color: viewMode === "document" ? theme2.colors.background : theme2.colors.textSecondary,
47971
47901
  border: "none",
47972
- padding: "6px 12px",
47902
+ padding: isMobile ? "6px 8px" : "6px 12px",
47973
47903
  cursor: "pointer",
47974
47904
  fontSize: "12px",
47975
47905
  fontWeight: 500,
47976
47906
  fontFamily: theme2.fonts.body,
47977
- transition: "all 0.2s"
47907
+ transition: "all 0.2s",
47908
+ display: "flex",
47909
+ alignItems: "center",
47910
+ gap: "4px"
47978
47911
  },
47979
- children: "Document"
47912
+ children: isMobile ? /* @__PURE__ */ jsx(FileText, { size: 16 }) : "Document"
47980
47913
  }
47981
47914
  )
47982
47915
  ]
@@ -47986,23 +47919,6 @@ const MarkdownPanel = ({
47986
47919
  ]
47987
47920
  }
47988
47921
  ),
47989
- /* @__PURE__ */ jsxs(
47990
- "div",
47991
- {
47992
- style: {
47993
- padding: "8px 16px",
47994
- backgroundColor: theme2.colors.backgroundSecondary,
47995
- borderBottom: `1px solid ${theme2.colors.border}`,
47996
- fontSize: "12px",
47997
- color: theme2.colors.textSecondary,
47998
- fontFamily: theme2.fonts.body
47999
- },
48000
- children: [
48001
- "Source: ",
48002
- /* @__PURE__ */ jsx("code", { children: sourceLabel })
48003
- ]
48004
- }
48005
- ),
48006
47922
  /* @__PURE__ */ jsx(
48007
47923
  "div",
48008
47924
  {