pptx-react-viewer 4.53.2 → 4.54.0

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{chunk-MBVSEIPO.mjs → chunk-6MMJBI4I.mjs} +6 -4
  3. package/dist/chunk-6MMJBI4I.mjs.br +0 -0
  4. package/dist/chunk-6MMJBI4I.mjs.gz +0 -0
  5. package/dist/{chunk-QCNVTNVV.mjs → chunk-GJB3TWLP.mjs} +33 -8
  6. package/dist/chunk-GJB3TWLP.mjs.br +0 -0
  7. package/dist/chunk-GJB3TWLP.mjs.gz +0 -0
  8. package/dist/{chunk-433LAU63.js → chunk-ISNT4VQN.js} +31 -6
  9. package/dist/chunk-ISNT4VQN.js.br +0 -0
  10. package/dist/chunk-ISNT4VQN.js.gz +0 -0
  11. package/dist/{chunk-SAYHKMPT.js → chunk-RB6MRBJI.js} +135 -133
  12. package/dist/chunk-RB6MRBJI.js.br +0 -0
  13. package/dist/chunk-RB6MRBJI.js.gz +0 -0
  14. package/dist/i18n/de.cjs +5 -0
  15. package/dist/i18n/de.cjs.br +0 -0
  16. package/dist/i18n/de.cjs.gz +0 -0
  17. package/dist/i18n/de.mjs +5 -0
  18. package/dist/i18n/de.mjs.br +0 -0
  19. package/dist/i18n/de.mjs.gz +0 -0
  20. package/dist/i18n/es.cjs +5 -0
  21. package/dist/i18n/es.cjs.br +0 -0
  22. package/dist/i18n/es.cjs.gz +0 -0
  23. package/dist/i18n/es.mjs +5 -0
  24. package/dist/i18n/es.mjs.br +0 -0
  25. package/dist/i18n/es.mjs.gz +0 -0
  26. package/dist/i18n/fr.cjs +5 -0
  27. package/dist/i18n/fr.cjs.br +0 -0
  28. package/dist/i18n/fr.cjs.gz +0 -0
  29. package/dist/i18n/fr.mjs +5 -0
  30. package/dist/i18n/fr.mjs.br +0 -0
  31. package/dist/i18n/fr.mjs.gz +0 -0
  32. package/dist/i18n/zh-CN.cjs +5 -0
  33. package/dist/i18n/zh-CN.cjs.br +0 -0
  34. package/dist/i18n/zh-CN.cjs.gz +0 -0
  35. package/dist/i18n/zh-CN.mjs +5 -0
  36. package/dist/i18n/zh-CN.mjs.br +0 -0
  37. package/dist/i18n/zh-CN.mjs.gz +0 -0
  38. package/dist/index.d.ts +16 -1
  39. package/dist/index.js +23 -23
  40. package/dist/index.js.br +0 -0
  41. package/dist/index.js.gz +0 -0
  42. package/dist/index.mjs +2 -2
  43. package/dist/index.mjs.br +0 -0
  44. package/dist/index.mjs.gz +0 -0
  45. package/dist/internals.d.ts +18 -2
  46. package/dist/internals.js +80 -80
  47. package/dist/internals.js.br +0 -0
  48. package/dist/internals.js.gz +0 -0
  49. package/dist/internals.mjs +1 -1
  50. package/dist/internals.mjs.br +0 -0
  51. package/dist/internals.mjs.gz +0 -0
  52. package/dist/viewer/index.d.ts +10 -1
  53. package/dist/viewer/index.js +18 -18
  54. package/dist/viewer/index.js.br +0 -0
  55. package/dist/viewer/index.js.gz +0 -0
  56. package/dist/viewer/index.mjs +2 -2
  57. package/dist/viewer/index.mjs.br +0 -0
  58. package/dist/viewer/index.mjs.gz +0 -0
  59. package/package.json +4 -4
  60. package/dist/chunk-433LAU63.js.br +0 -0
  61. package/dist/chunk-433LAU63.js.gz +0 -0
  62. package/dist/chunk-MBVSEIPO.mjs.br +0 -0
  63. package/dist/chunk-MBVSEIPO.mjs.gz +0 -0
  64. package/dist/chunk-QCNVTNVV.mjs.br +0 -0
  65. package/dist/chunk-QCNVTNVV.mjs.gz +0 -0
  66. package/dist/chunk-SAYHKMPT.js.br +0 -0
  67. package/dist/chunk-SAYHKMPT.js.gz +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk433LAU63_js = require('./chunk-433LAU63.js');
3
+ var chunkISNT4VQN_js = require('./chunk-ISNT4VQN.js');
4
4
  var chunk3TN5SUQR_js = require('./chunk-3TN5SUQR.js');
5
5
  var pptx = require('ooxml-ui/pptx');
6
6
  var React109 = require('react');
@@ -8,7 +8,7 @@ var jsxRuntime = require('react/jsx-runtime');
8
8
  var lu = require('react-icons/lu');
9
9
  var reactDom = require('react-dom');
10
10
  var pptx$1 = require('ooxml-core/pptx');
11
- var ai = require('ooxml-ui/pptx/ai');
11
+ var host = require('ooxml-ui/pptx/ai/host');
12
12
  var i18n$1 = require('ooxml-core/i18n');
13
13
  var i18n = require('ooxml-ui/pptx/i18n');
14
14
 
@@ -309,7 +309,7 @@ function SlideTemplatePreview({
309
309
  transformOrigin: "top left"
310
310
  },
311
311
  children: previewSlide.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
312
- chunk433LAU63_js.StaticElementRenderer,
312
+ chunkISNT4VQN_js.StaticElementRenderer,
313
313
  {
314
314
  element,
315
315
  activeSlide: previewSlide,
@@ -378,7 +378,7 @@ function SlideTemplateGalleryDialog({
378
378
  scheme
379
379
  }) {
380
380
  const { t } = chunk3TN5SUQR_js.useTranslation();
381
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onClose);
381
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onClose);
382
382
  const [selected, setSelected] = React109.useState(null);
383
383
  const dialogRef = React109.useRef(null);
384
384
  useModalFocus(isOpen, dialogRef, onClose);
@@ -876,7 +876,7 @@ function MobileSheet({
876
876
  }) {
877
877
  const sheetRef = React109.useRef(null);
878
878
  const { t } = chunk3TN5SUQR_js.useTranslation();
879
- const { dragY, dragging, handlers } = chunk433LAU63_js.useSheetDismissDrag(onClose);
879
+ const { dragY, dragging, handlers } = chunkISNT4VQN_js.useSheetDismissDrag(onClose);
880
880
  useModalFocus(open, sheetRef, onClose);
881
881
  if (!open) {
882
882
  return null;
@@ -1145,7 +1145,7 @@ function WebHomeControls({
1145
1145
  function ShapeArrangeExtras(p) {
1146
1146
  const commands = useShapeFormatContext();
1147
1147
  const crop = commands?.crop;
1148
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(p.hiddenActions);
1148
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(p.hiddenActions);
1149
1149
  const { onGroupElements, onUngroupElement, onUpdateElementStyle } = p;
1150
1150
  const controls = React109.useMemo(
1151
1151
  () => pptx.arrangeShapeHomeControls({
@@ -1480,7 +1480,7 @@ function TransitionsSection(p) {
1480
1480
  case "soundPreview": {
1481
1481
  const url = pptx.ribbonTransitionStockSoundUrl(transition);
1482
1482
  if (url) {
1483
- chunk433LAU63_js.playAnimationSound(url);
1483
+ chunkISNT4VQN_js.playAnimationSound(url);
1484
1484
  }
1485
1485
  break;
1486
1486
  }
@@ -1683,7 +1683,7 @@ function AccountPage() {
1683
1683
  return void 0;
1684
1684
  });
1685
1685
  };
1686
- const version = "4.53.2" ;
1686
+ const version = "4.54.0" ;
1687
1687
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 max-w-[700px] space-y-6", children: [
1688
1688
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: cardClass, children: [
1689
1689
  /* @__PURE__ */ jsxRuntime.jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold", children: [
@@ -1947,7 +1947,7 @@ function FileSection(p) {
1947
1947
  const page = offered(requestedPage) ? requestedPage : offered("home") ? "home" : nav.find((item) => item.id !== "save" && item.id !== "close")?.id ?? "home";
1948
1948
  const [query, setQuery] = React109.useState("");
1949
1949
  const [recent, setRecent] = React109.useState([]);
1950
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(p.hiddenActions);
1950
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(p.hiddenActions);
1951
1951
  const exportHidden = isHidden("export");
1952
1952
  const storage = useViewerStorage();
1953
1953
  React109.useEffect(() => {
@@ -2296,7 +2296,7 @@ function LayoutArtwork({
2296
2296
  backgroundColor
2297
2297
  };
2298
2298
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: (preview?.elements ?? []).slice(0, MAX_PREVIEW_ELEMENTS).map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
2299
- chunk433LAU63_js.StaticElementRenderer,
2299
+ chunkISNT4VQN_js.StaticElementRenderer,
2300
2300
  {
2301
2301
  element,
2302
2302
  activeSlide: slide,
@@ -2746,7 +2746,7 @@ function SlideShowOptions({
2746
2746
  }
2747
2747
  function SubtitleSettingsControl() {
2748
2748
  const { t } = chunk3TN5SUQR_js.useTranslation();
2749
- const supplied = React109.useContext(chunk433LAU63_js.ViewerOptionsStoreContext);
2749
+ const supplied = React109.useContext(chunkISNT4VQN_js.ViewerOptionsStoreContext);
2750
2750
  const fallback = React109.useRef(null);
2751
2751
  if (!supplied) {
2752
2752
  fallback.current ??= pptx.createViewerOptionsStore({ persist: false });
@@ -2780,7 +2780,7 @@ function SubtitleSettingsControl() {
2780
2780
  }
2781
2781
  function SlideShowSection(p) {
2782
2782
  const { t } = chunk3TN5SUQR_js.useTranslation();
2783
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(p.hiddenActions);
2783
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(p.hiddenActions);
2784
2784
  const [showsOpen, setShowsOpen] = React109.useState(false);
2785
2785
  const showsRef = React109.useRef(null);
2786
2786
  React109.useEffect(() => {
@@ -3319,7 +3319,7 @@ function MobileMenuSheet(props) {
3319
3319
  const { t } = chunk3TN5SUQR_js.useTranslation();
3320
3320
  const { open, onClose } = props;
3321
3321
  const [active, setActive] = React109.useState("home");
3322
- const { isTabVisible } = chunk433LAU63_js.useToolbarVisibility(props.hiddenActions);
3322
+ const { isTabVisible } = chunkISNT4VQN_js.useToolbarVisibility(props.hiddenActions);
3323
3323
  return /* @__PURE__ */ jsxRuntime.jsx(
3324
3324
  MobileSheet,
3325
3325
  {
@@ -3610,7 +3610,7 @@ function MobileToolbar(props) {
3610
3610
  const { t } = chunk3TN5SUQR_js.useTranslation();
3611
3611
  const { mode, canUndo, canRedo, onUndo, onRedo, onSetMode, onSaveAsPptx } = props;
3612
3612
  const [menuOpen, setMenuOpen] = React109.useState(false);
3613
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(props.hiddenActions);
3613
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(props.hiddenActions);
3614
3614
  const showEdit = mode === "edit" || mode === "master";
3615
3615
  const hidden = [];
3616
3616
  if (isHidden("undo")) {
@@ -3657,7 +3657,7 @@ function MobileToolbar(props) {
3657
3657
  }
3658
3658
  function ChartSelectionStrip() {
3659
3659
  const { t } = chunk3TN5SUQR_js.useTranslation();
3660
- const commands = chunk433LAU63_js.useChartFormatContext();
3660
+ const commands = chunkISNT4VQN_js.useChartFormatContext();
3661
3661
  const chart = commands?.chart;
3662
3662
  const chartData = chart?.type === "chart" ? chart.chartData : void 0;
3663
3663
  const controls = React109.useMemo(
@@ -3688,7 +3688,7 @@ function PictureSizeStrip({
3688
3688
  hiddenActions
3689
3689
  }) {
3690
3690
  const crop = useShapeFormatContext()?.crop;
3691
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(hiddenActions);
3691
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(hiddenActions);
3692
3692
  const controls = React109.useMemo(
3693
3693
  () => pptx.pictureSizeHomeControls({
3694
3694
  editable: Boolean(crop),
@@ -3861,7 +3861,7 @@ var TAB_BASE = "relative px-3.5 py-2 text-[12px] font-medium whitespace-nowrap t
3861
3861
  var TAB_UNDERLINE = "after:absolute after:-bottom-px after:left-0 after:right-0 after:h-[2.5px] after:bg-primary";
3862
3862
  function RibbonTabBar(p) {
3863
3863
  const { t } = chunk3TN5SUQR_js.useTranslation();
3864
- const viewerOptions = chunk433LAU63_js.useViewerOptionsContext();
3864
+ const viewerOptions = chunkISNT4VQN_js.useViewerOptionsContext();
3865
3865
  return /* @__PURE__ */ jsxRuntime.jsxs(
3866
3866
  "div",
3867
3867
  {
@@ -3938,9 +3938,9 @@ function RibbonTabBar(p) {
3938
3938
  }
3939
3939
  function TabRowActions(p) {
3940
3940
  const { t } = chunk3TN5SUQR_js.useTranslation();
3941
- const collab = chunk433LAU63_js.useCollaboration();
3941
+ const collab = chunkISNT4VQN_js.useCollaboration();
3942
3942
  const isCollaborating = Boolean(collab && collab.status === "connected");
3943
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(p.hiddenActions);
3943
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(p.hiddenActions);
3944
3944
  const customization = useViewerCustomizationContext();
3945
3945
  const ref = React109.useRef(null);
3946
3946
  const handlers = React109.useRef(p);
@@ -3995,7 +3995,7 @@ function TabRowActions(p) {
3995
3995
  }
3996
3996
  function TitleBarElement(p) {
3997
3997
  const { t } = chunk3TN5SUQR_js.useTranslation();
3998
- const options = chunk433LAU63_js.useViewerOptionsContext();
3998
+ const options = chunkISNT4VQN_js.useViewerOptionsContext();
3999
3999
  const customization = useViewerCustomizationContext();
4000
4000
  const ref = React109.useRef(null);
4001
4001
  const stripVisible = options.quickAccess.visible && pptx.isPanelVisible(customization, "quickAccessToolbar");
@@ -4331,7 +4331,7 @@ function ToolbarPrimaryRow(p) {
4331
4331
  onToggleSidebar,
4332
4332
  onToggleInspector
4333
4333
  } = p;
4334
- const collab = chunk433LAU63_js.useCollaboration();
4334
+ const collab = chunkISNT4VQN_js.useCollaboration();
4335
4335
  const customization = useViewerCustomizationContext();
4336
4336
  const showSlidesToggle = pptx.isPanelVisible(customization, "slidesPane");
4337
4337
  const showInspectorToggle = pptx.isPanelVisible(customization, "inspector");
@@ -4621,8 +4621,8 @@ function ToolbarLateTabs({
4621
4621
  function Toolbar(p) {
4622
4622
  const { mode, isNarrowViewport, isCompactToolbarOpen, toolbarSection, onSetToolbarSection } = p;
4623
4623
  const { t } = chunk3TN5SUQR_js.useTranslation();
4624
- const { isTabVisible } = chunk433LAU63_js.useToolbarVisibility(p.hiddenActions);
4625
- const viewerOptions = chunk433LAU63_js.useViewerOptionsContext();
4624
+ const { isTabVisible } = chunkISNT4VQN_js.useToolbarVisibility(p.hiddenActions);
4625
+ const viewerOptions = chunkISNT4VQN_js.useViewerOptionsContext();
4626
4626
  const customization = useViewerCustomizationContext();
4627
4627
  const belowInput = React109.useMemo(
4628
4628
  () => ({
@@ -5608,7 +5608,7 @@ function DrawingOverlaySvg({
5608
5608
  onPointerDown,
5609
5609
  onPointerMove,
5610
5610
  onPointerUp,
5611
- children: isStrokeActive && liveStrokeView ? chunk433LAU63_js.renderStrokeView(liveStrokeView, true, void 0, "ink-live-preview") : isStrokeActive && liveStrokeD && /* @__PURE__ */ jsxRuntime.jsx(
5611
+ children: isStrokeActive && liveStrokeView ? chunkISNT4VQN_js.renderStrokeView(liveStrokeView, true, void 0, "ink-live-preview") : isStrokeActive && liveStrokeD && /* @__PURE__ */ jsxRuntime.jsx(
5612
5612
  "path",
5613
5613
  {
5614
5614
  d: liveStrokeD,
@@ -6187,7 +6187,7 @@ function PictureCropOverlay({
6187
6187
  };
6188
6188
  };
6189
6189
  const { ghost, frame, handles } = overlay;
6190
- const src = chunk433LAU63_js.imgSrc(element);
6190
+ const src = chunkISNT4VQN_js.imgSrc(element);
6191
6191
  return /* @__PURE__ */ jsxRuntime.jsxs(
6192
6192
  "div",
6193
6193
  {
@@ -6363,7 +6363,7 @@ function HorizontalRulerView({ ticks, widthPx, highlight }) {
6363
6363
  }
6364
6364
  );
6365
6365
  }
6366
- var HorizontalRuler = /* @__PURE__ */ chunk433LAU63_js.withDisplayName(
6366
+ var HorizontalRuler = /* @__PURE__ */ chunkISNT4VQN_js.withDisplayName(
6367
6367
  /* @__PURE__ */ React109__default.default.memo(HorizontalRulerView),
6368
6368
  "HorizontalRuler"
6369
6369
  );
@@ -6437,7 +6437,7 @@ function VerticalRulerView({ ticks, heightPx, highlight }) {
6437
6437
  }
6438
6438
  );
6439
6439
  }
6440
- var VerticalRuler = /* @__PURE__ */ chunk433LAU63_js.withDisplayName(
6440
+ var VerticalRuler = /* @__PURE__ */ chunkISNT4VQN_js.withDisplayName(
6441
6441
  /* @__PURE__ */ React109__default.default.memo(VerticalRulerView),
6442
6442
  "VerticalRuler"
6443
6443
  );
@@ -6631,7 +6631,7 @@ function SelectionHandleOverlay({
6631
6631
  onDoubleClick: (e) => onDoubleClick(element.id, e),
6632
6632
  onContextMenu: (e) => onContextMenu(element.id, e),
6633
6633
  children: /* @__PURE__ */ jsxRuntime.jsx(
6634
- chunk433LAU63_js.ResizeHandles,
6634
+ chunkISNT4VQN_js.ResizeHandles,
6635
6635
  {
6636
6636
  elementId: element.id,
6637
6637
  adjustmentHandles,
@@ -7342,7 +7342,7 @@ function SlideCanvas(props) {
7342
7342
  props.registerInlineEditReader
7343
7343
  ]
7344
7344
  );
7345
- return /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.InlineCollaborationContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(SlideCanvasContent, { ...props }) });
7345
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.InlineCollaborationContext.Provider, { value, children: /* @__PURE__ */ jsxRuntime.jsx(SlideCanvasContent, { ...props }) });
7346
7346
  }
7347
7347
  function SlideCanvasContent({
7348
7348
  imagePaste,
@@ -7611,7 +7611,7 @@ function SlideCanvasContent({
7611
7611
  onPointerMove: handleStagePointerMove,
7612
7612
  onPointerUp: handleStagePointerUp,
7613
7613
  children: [
7614
- /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.SlideBackgroundImageLayer, { slide: activeSlide }),
7614
+ /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.SlideBackgroundImageLayer, { slide: activeSlide }),
7615
7615
  presentationKeyframesCss && /* @__PURE__ */ jsxRuntime.jsx("style", { children: presentationKeyframesCss }),
7616
7616
  /* @__PURE__ */ jsxRuntime.jsx(GridOverlay, { canvasSize, gridSpacingPx, visible: showGrid }),
7617
7617
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7623,7 +7623,7 @@ function SlideCanvasContent({
7623
7623
  }
7624
7624
  ),
7625
7625
  templateElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
7626
- chunk433LAU63_js.ElementRenderer,
7626
+ chunkISNT4VQN_js.ElementRenderer,
7627
7627
  {
7628
7628
  element,
7629
7629
  activeSlide,
@@ -7667,7 +7667,7 @@ function SlideCanvasContent({
7667
7667
  `tpl-${element.id}`
7668
7668
  )),
7669
7669
  activeSlide?.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
7670
- chunk433LAU63_js.ElementRenderer,
7670
+ chunkISNT4VQN_js.ElementRenderer,
7671
7671
  {
7672
7672
  element,
7673
7673
  activeSlide,
@@ -7733,7 +7733,7 @@ function SlideCanvasContent({
7733
7733
  editingMember && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7734
7734
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: `[data-element-id="${cssAttr(editingMember.parentId)}"] [data-element-id="${cssAttr(editingMember.member.id)}"]{visibility:hidden}` }),
7735
7735
  /* @__PURE__ */ jsxRuntime.jsx(
7736
- chunk433LAU63_js.ElementRenderer,
7736
+ chunkISNT4VQN_js.ElementRenderer,
7737
7737
  {
7738
7738
  element: editingMember.member,
7739
7739
  activeSlide,
@@ -8205,7 +8205,7 @@ function SlideThumbnailImpl({
8205
8205
  ...pptx.deviceStrokeStageStyle(scale)
8206
8206
  },
8207
8207
  children: [
8208
- /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.SlideBackgroundImageLayer, { slide }),
8208
+ /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.SlideBackgroundImageLayer, { slide }),
8209
8209
  slide.transition && slide.transition.type !== "none" && slide.transition.type !== "cut" && /* @__PURE__ */ jsxRuntime.jsx(
8210
8210
  "div",
8211
8211
  {
@@ -8215,7 +8215,7 @@ function SlideThumbnailImpl({
8215
8215
  }
8216
8216
  ),
8217
8217
  previewElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
8218
- chunk433LAU63_js.StaticElementRenderer,
8218
+ chunkISNT4VQN_js.StaticElementRenderer,
8219
8219
  {
8220
8220
  element,
8221
8221
  activeSlide: slide,
@@ -8393,7 +8393,7 @@ function ContextMenu(props) {
8393
8393
  const { t } = chunk3TN5SUQR_js.useTranslation();
8394
8394
  const customization = useViewerCustomizationContext();
8395
8395
  const shapeFormat = useShapeFormatContext();
8396
- const chartFormat = chunk433LAU63_js.useChartFormatContext();
8396
+ const chartFormat = chunkISNT4VQN_js.useChartFormatContext();
8397
8397
  const open = Boolean(contextMenuState) && mode === "edit";
8398
8398
  const handlers = {
8399
8399
  ...contextMenuHandlers(props, shapeFormat),
@@ -9308,7 +9308,7 @@ function SlidesPaneSidebar({
9308
9308
  tableStyleContext
9309
9309
  }) {
9310
9310
  const { t } = chunk3TN5SUQR_js.useTranslation();
9311
- const collab = chunk433LAU63_js.useCollaboration();
9311
+ const collab = chunkISNT4VQN_js.useCollaboration();
9312
9312
  const slideRefs = React109.useRef(/* @__PURE__ */ new Map());
9313
9313
  const renameInputRef = React109.useRef(null);
9314
9314
  const slidePresenceMap = React109.useMemo(() => {
@@ -9403,7 +9403,7 @@ function SlidesPaneSidebar({
9403
9403
  [sectionGroups, showSectionHeaders, effectiveCollapsed]
9404
9404
  );
9405
9405
  const shouldVirtualize = slides.length >= VIRTUALIZATION_THRESHOLD;
9406
- const { startIndex, endIndex, totalHeight, offsetY, scrollContainerRef, scrollToIndex } = chunk433LAU63_js.useVirtualizedSlides({
9406
+ const { startIndex, endIndex, totalHeight, offsetY, scrollContainerRef, scrollToIndex } = chunkISNT4VQN_js.useVirtualizedSlides({
9407
9407
  totalItems: shouldVirtualize ? flatItems.length : 0,
9408
9408
  itemHeight: estimatedItemHeight
9409
9409
  });
@@ -11287,7 +11287,7 @@ function ReadingViewStage({
11287
11287
  className: "absolute left-0 top-0 origin-top-left",
11288
11288
  style: { width, height, transform: `scale(${scale})`, ...pptx.deviceStrokeStageStyle(scale) },
11289
11289
  children: elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
11290
- chunk433LAU63_js.StaticElementRenderer,
11290
+ chunkISNT4VQN_js.StaticElementRenderer,
11291
11291
  {
11292
11292
  element,
11293
11293
  activeSlide: slide,
@@ -11942,7 +11942,7 @@ function SlideNotesPanel({
11942
11942
  });
11943
11943
  const hasNotes = draft.trim().length > 0;
11944
11944
  const slideLabel = activeSlide ? t("pptx.notes.slideN", { n: activeSlide.slideNumber }) : t("pptx.notes.noSlide");
11945
- const { dragY, handlers: dragHandlers } = chunk433LAU63_js.useSheetDismissDrag(onToggle);
11945
+ const { dragY, handlers: dragHandlers } = chunkISNT4VQN_js.useSheetDismissDrag(onToggle);
11946
11946
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11947
11947
  isExpanded && /* @__PURE__ */ jsxRuntime.jsx(
11948
11948
  "button",
@@ -13079,7 +13079,7 @@ function DocumentPropertiesDialog({
13079
13079
  const handleClose = React109.useCallback(() => {
13080
13080
  onClose();
13081
13081
  }, [onClose]);
13082
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(handleClose);
13082
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(handleClose);
13083
13083
  if (!isOpen) {
13084
13084
  return null;
13085
13085
  }
@@ -13676,7 +13676,7 @@ function PresentationSubtitleBar({
13676
13676
  }) {
13677
13677
  const { t } = chunk3TN5SUQR_js.useTranslation();
13678
13678
  const language = pptx.subtitleRecognitionLanguage(
13679
- pptx.subtitleSettingsFromOptions(chunk433LAU63_js.useViewerOptionsContext()),
13679
+ pptx.subtitleSettingsFromOptions(chunkISNT4VQN_js.useViewerOptionsContext()),
13680
13680
  typeof navigator === "undefined" ? "en-US" : navigator.language
13681
13681
  );
13682
13682
  const [captionText, setCaptionText] = React109.useState("");
@@ -13870,7 +13870,7 @@ function ScaledSlidePreviewImpl({
13870
13870
  ...pptx.deviceStrokeStageStyle(scale)
13871
13871
  },
13872
13872
  children: previewElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
13873
- chunk433LAU63_js.StaticElementRenderer,
13873
+ chunkISNT4VQN_js.StaticElementRenderer,
13874
13874
  {
13875
13875
  element,
13876
13876
  activeSlide: slide,
@@ -15204,7 +15204,7 @@ function EffectSoundRow({
15204
15204
  }
15205
15205
  const asset = pptx.getEffectSoundAsset(soundState.catalogueId);
15206
15206
  if (asset) {
15207
- chunk433LAU63_js.playAnimationSound(asset.dataUrl);
15207
+ chunkISNT4VQN_js.playAnimationSound(asset.dataUrl);
15208
15208
  }
15209
15209
  };
15210
15210
  return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex flex-col gap-1", children: [
@@ -15716,7 +15716,7 @@ function AnimationPanel({
15716
15716
  onUpdateSlide
15717
15717
  }) {
15718
15718
  const { t } = chunk3TN5SUQR_js.useTranslation();
15719
- const { viewportWidth } = chunk433LAU63_js.useIsMobile();
15719
+ const { viewportWidth } = chunkISNT4VQN_js.useIsMobile();
15720
15720
  const directionBtnPx = Math.max(28, pptx.getDensePanelTouchTargetPx(viewportWidth));
15721
15721
  const fieldStyle = { minHeight: pptx.getDensePanelTouchTargetPx(viewportWidth) };
15722
15722
  const handlers = useAnimationHandlers({
@@ -17841,8 +17841,8 @@ function ChartUserShapeOptions({
17841
17841
  }
17842
17842
  function ChartDataPanel({ selectedElement, canEdit, onUpdateElement }) {
17843
17843
  const chartData = selectedElement.chartData;
17844
- const followDataPoint = chunk433LAU63_js.useViewerOptionsContext().advanced.chartPropertiesFollowDataPoint;
17845
- const { selection: partSelection } = chunk433LAU63_js.useChartPartSelection();
17844
+ const followDataPoint = chunkISNT4VQN_js.useViewerOptionsContext().advanced.chartPropertiesFollowDataPoint;
17845
+ const { selection: partSelection } = chunkISNT4VQN_js.useChartPartSelection();
17846
17846
  const canvasPart = partSelection?.elementId === selectedElement.id ? partSelection.part : null;
17847
17847
  const title = chartData?.title;
17848
17848
  const chartType = chartData?.chartType;
@@ -19038,7 +19038,7 @@ function DuotonePanel({
19038
19038
  ] }),
19039
19039
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
19040
19040
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-muted-foreground text-[10px]", children: t("pptx.image.duotonePresets") }),
19041
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-1", children: chunk433LAU63_js.DUOTONE_PRESETS.map((preset) => /* @__PURE__ */ jsxRuntime.jsxs(
19041
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-4 gap-1", children: chunkISNT4VQN_js.DUOTONE_PRESETS.map((preset) => /* @__PURE__ */ jsxRuntime.jsxs(
19042
19042
  "button",
19043
19043
  {
19044
19044
  type: "button",
@@ -22296,7 +22296,7 @@ function SmartArtPropertiesPanel({
22296
22296
  const reflowed = box ? pptx.rebuildDrawingShapesIfCleared(
22297
22297
  newData,
22298
22298
  newData.layout,
22299
- chunk433LAU63_js.resolveSmartArtDataPalette(newData),
22299
+ chunkISNT4VQN_js.resolveSmartArtDataPalette(newData),
22300
22300
  newData.style ?? "flat",
22301
22301
  "inspector",
22302
22302
  box
@@ -22369,7 +22369,7 @@ function TableDataGrid({
22369
22369
  }) {
22370
22370
  const { t } = chunk3TN5SUQR_js.useTranslation();
22371
22371
  const grid = pptx.buildTableDataGrid(tableElement);
22372
- const { viewportWidth } = chunk433LAU63_js.useIsMobile();
22372
+ const { viewportWidth } = chunkISNT4VQN_js.useIsMobile();
22373
22373
  const gridPlan = pptx.getDenseGridLayoutPlan(viewportWidth);
22374
22374
  const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
22375
22375
  const stickyGutterClass = gridPlan.stickyFirstColumn ? "sticky left-0 z-10" : "";
@@ -24199,7 +24199,7 @@ function InspectorPaneHeader({
24199
24199
  onClose
24200
24200
  }) {
24201
24201
  const { t } = chunk3TN5SUQR_js.useTranslation();
24202
- const { viewportWidth } = chunk433LAU63_js.useIsMobile();
24202
+ const { viewportWidth } = chunkISNT4VQN_js.useIsMobile();
24203
24203
  const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
24204
24204
  const touchBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
24205
24205
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -24900,7 +24900,7 @@ function TransitionPreview({
24900
24900
  const { t } = chunk3TN5SUQR_js.useTranslation();
24901
24901
  const durationMs = transition.durationMs ?? 500;
24902
24902
  const animations = React109.useMemo(
24903
- () => chunk433LAU63_js.getSlideTransitionAnimations(
24903
+ () => chunkISNT4VQN_js.getSlideTransitionAnimations(
24904
24904
  transition.type,
24905
24905
  durationMs,
24906
24906
  transition.direction,
@@ -24969,7 +24969,7 @@ function TransitionPreview({
24969
24969
  ]
24970
24970
  }
24971
24971
  ),
24972
- /* @__PURE__ */ jsxRuntime.jsx("style", { children: chunk433LAU63_js.SLIDE_TRANSITION_KEYFRAMES })
24972
+ /* @__PURE__ */ jsxRuntime.jsx("style", { children: chunkISNT4VQN_js.SLIDE_TRANSITION_KEYFRAMES })
24973
24973
  ] });
24974
24974
  }
24975
24975
  var DEFAULT_DURATION_MS = 320;
@@ -25632,7 +25632,7 @@ function InspectorPane(props) {
25632
25632
  } = props;
25633
25633
  const hasSelection = selectedElement !== null;
25634
25634
  const { t } = chunk3TN5SUQR_js.useTranslation();
25635
- const { dragY, handlers: dragHandlers } = chunk433LAU63_js.useSheetDismissDrag(onClose);
25635
+ const { dragY, handlers: dragHandlers } = chunkISNT4VQN_js.useSheetDismissDrag(onClose);
25636
25636
  const {
25637
25637
  animationPanelHeight,
25638
25638
  effectiveThemeOptions,
@@ -26045,7 +26045,7 @@ function PresentationTouchControls({
26045
26045
  hideNavigation = false
26046
26046
  }) {
26047
26047
  const { t } = chunk3TN5SUQR_js.useTranslation();
26048
- const { isTouchDevice } = chunk433LAU63_js.useIsMobile();
26048
+ const { isTouchDevice } = chunkISNT4VQN_js.useIsMobile();
26049
26049
  if (!isTouchDevice) {
26050
26050
  return null;
26051
26051
  }
@@ -26692,11 +26692,11 @@ function PrintDialog({
26692
26692
  }) {
26693
26693
  const { t } = chunk3TN5SUQR_js.useTranslation();
26694
26694
  const regionRenderer = useRegionRenderer("dialog.print");
26695
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onClose);
26696
- const { viewportWidth } = chunk433LAU63_js.useIsMobile();
26695
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onClose);
26696
+ const { viewportWidth } = chunkISNT4VQN_js.useIsMobile();
26697
26697
  const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
26698
26698
  const closeBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
26699
- const printOptionDefaults = pptx.resolveDefaultPrintSettings(chunk433LAU63_js.useViewerOptionsContext());
26699
+ const printOptionDefaults = pptx.resolveDefaultPrintSettings(chunkISNT4VQN_js.useViewerOptionsContext());
26700
26700
  const [printWhat, setPrintWhat] = React109.useState(printOptionDefaults?.printWhat ?? "slides");
26701
26701
  const [orientation, setOrientation] = React109.useState("landscape");
26702
26702
  const [colorMode, setColorMode] = React109.useState(
@@ -27186,14 +27186,14 @@ function BroadcastDialog({
27186
27186
  }) {
27187
27187
  const { t } = chunk3TN5SUQR_js.useTranslation();
27188
27188
  const regionRenderer = useRegionRenderer("dialog.broadcast");
27189
- const collab = chunk433LAU63_js.useCollaboration();
27189
+ const collab = chunkISNT4VQN_js.useCollaboration();
27190
27190
  const isBroadcasting = collab !== null && collab.status !== "disconnected" && collab.status !== "error" && collab.config.role === "owner";
27191
27191
  const [roomId, setRoomId] = React109.useState("");
27192
27192
  const [userName, setUserName] = React109.useState("");
27193
27193
  const [serverUrl, setServerUrl] = React109.useState("");
27194
27194
  const [copied, setCopied] = React109.useState(false);
27195
27195
  const dialogRef = React109.useRef(null);
27196
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onClose);
27196
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onClose);
27197
27197
  useModalFocus(open, dialogRef, onClose);
27198
27198
  React109.useEffect(() => {
27199
27199
  if (open && !isBroadcasting) {
@@ -27509,7 +27509,7 @@ function ActiveSessionView({
27509
27509
  onCopyRoomId,
27510
27510
  onStopCollaboration
27511
27511
  }) {
27512
- const { t } = chunk3TN5SUQR_js.useTranslation(), viewerOptions = chunk433LAU63_js.useViewerOptionsContext(), statusColor = collab.status === "connected" ? "text-green-400" : collab.status === "connecting" ? "text-yellow-400" : "text-red-400", statusIcon = collab.status === "connected" || collab.status === "connecting" ? /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifi, { className: "w-4 h-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifiOff, { className: "w-4 h-4" }), sessionUsers = pptx.buildActiveSessionUsers({
27512
+ const { t } = chunk3TN5SUQR_js.useTranslation(), viewerOptions = chunkISNT4VQN_js.useViewerOptionsContext(), statusColor = collab.status === "connected" ? "text-green-400" : collab.status === "connecting" ? "text-yellow-400" : "text-red-400", statusIcon = collab.status === "connected" || collab.status === "connecting" ? /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifi, { className: "w-4 h-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lu.LuWifiOff, { className: "w-4 h-4" }), sessionUsers = pptx.buildActiveSessionUsers({
27513
27513
  localUserName: activeCollaboration?.userName ?? collab.config.userName,
27514
27514
  localUserInitials: viewerOptions.general.userInitials,
27515
27515
  localUserColor: collab.config.userColor,
@@ -27608,7 +27608,7 @@ function StartSessionForm({
27608
27608
  onRetry
27609
27609
  }) {
27610
27610
  const { t } = chunk3TN5SUQR_js.useTranslation();
27611
- const { viewportWidth } = chunk433LAU63_js.useIsMobile();
27611
+ const { viewportWidth } = chunkISNT4VQN_js.useIsMobile();
27612
27612
  const tabBtnStyle = { minHeight: pptx.getDensePanelTouchTargetPx(viewportWidth) };
27613
27613
  const inputReadOnlyClass = preconfigured ? " opacity-70 cursor-not-allowed" : "";
27614
27614
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
@@ -27742,7 +27742,7 @@ function ShareDialog({
27742
27742
  defaultUserName,
27743
27743
  defaultServerUrl
27744
27744
  }) {
27745
- const collab = chunk433LAU63_js.useCollaboration();
27745
+ const collab = chunkISNT4VQN_js.useCollaboration();
27746
27746
  const isActive = collab !== null && collab.status !== "disconnected" && collab.status !== "error";
27747
27747
  const { t } = chunk3TN5SUQR_js.useTranslation();
27748
27748
  const regionRenderer = useRegionRenderer("dialog.share");
@@ -27753,9 +27753,9 @@ function ShareDialog({
27753
27753
  const [invitation, setInvitation] = React109.useState("");
27754
27754
  const [copied, setCopied] = React109.useState(false);
27755
27755
  const dialogRef = React109.useRef(null);
27756
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onClose);
27756
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onClose);
27757
27757
  useModalFocus(open, dialogRef, onClose);
27758
- const { viewportWidth, viewportHeight } = chunk433LAU63_js.useIsMobile();
27758
+ const { viewportWidth, viewportHeight } = chunkISNT4VQN_js.useIsMobile();
27759
27759
  const touchTargetPx = pptx.getDensePanelTouchTargetPx(viewportWidth);
27760
27760
  const touchBtnStyle = { minWidth: touchTargetPx, minHeight: touchTargetPx };
27761
27761
  const stickyFooterClass = pptx.shouldStickyActionRow(viewportWidth, viewportHeight) ? "sticky bottom-0 bg-popover" : "";
@@ -28054,12 +28054,12 @@ function HyperlinkEditDialog({
28054
28054
  onCancel
28055
28055
  }) {
28056
28056
  const { t } = chunk3TN5SUQR_js.useTranslation();
28057
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onCancel);
28057
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onCancel);
28058
28058
  const inputRef = React109.useRef(null);
28059
- const detectedType = chunk433LAU63_js.detectTargetType(initialUrl, initialAction);
28060
- const emailParts = chunk433LAU63_js.parseEmailUrl(initialUrl || "");
28061
- const detectedSlide = chunk433LAU63_js.parseSlideFromUrl(initialUrl, initialAction);
28062
- const detectedVerb = initialAction ? chunk433LAU63_js.ACTION_VERB_MAP[initialAction.toLowerCase()] || "nextSlide" : "nextSlide";
28059
+ const detectedType = chunkISNT4VQN_js.detectTargetType(initialUrl, initialAction);
28060
+ const emailParts = chunkISNT4VQN_js.parseEmailUrl(initialUrl || "");
28061
+ const detectedSlide = chunkISNT4VQN_js.parseSlideFromUrl(initialUrl, initialAction);
28062
+ const detectedVerb = initialAction ? chunkISNT4VQN_js.ACTION_VERB_MAP[initialAction.toLowerCase()] || "nextSlide" : "nextSlide";
28063
28063
  const [targetType, setTargetType] = React109.useState(detectedType);
28064
28064
  const [url, setUrl] = React109.useState(
28065
28065
  detectedType === "email" || detectedType === "slide" || detectedType === "action" ? "" : initialUrl || ""
@@ -28336,7 +28336,7 @@ function ViewerBottomPanels({
28336
28336
  notesStyle,
28337
28337
  onNotesHeightChange
28338
28338
  }) {
28339
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(hiddenActions);
28339
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(hiddenActions);
28340
28340
  const customization = useViewerCustomizationContext();
28341
28341
  const showNotes = pptx.isPanelVisible(customization, "notes");
28342
28342
  const notesRenderer = useRegionRenderer("notes");
@@ -28733,7 +28733,7 @@ function ViewerToolbarSection(props) {
28733
28733
  [activeSlide, propertyHandlers]
28734
28734
  );
28735
28735
  const scopedLayoutOptions = React109__default.default.useMemo(
28736
- () => chunk433LAU63_js.scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
28736
+ () => chunkISNT4VQN_js.scopeLayoutOptionsToActiveSlide(s.layoutOptions, activeSlide),
28737
28737
  [s.layoutOptions, activeSlide]
28738
28738
  );
28739
28739
  const handleResetSlide = React109.useCallback(() => {
@@ -29140,7 +29140,7 @@ function ViewerToolbarSection(props) {
29140
29140
  isMobileInsertOpen: s.isMobileInsertOpen,
29141
29141
  onCloseMobileInsert: () => s.setIsMobileInsertOpen(false),
29142
29142
  slideCommentCount: activeSlide?.comments?.length ?? 0,
29143
- reviewComments: chunk433LAU63_js.createReviewCommentsHost({
29143
+ reviewComments: chunkISNT4VQN_js.createReviewCommentsHost({
29144
29144
  state: s,
29145
29145
  activeSlideIndex,
29146
29146
  updateSlides: ops.updateSlides,
@@ -29234,7 +29234,7 @@ function EquationEditorDialog({
29234
29234
  existingOmml
29235
29235
  }) {
29236
29236
  const { t } = chunk3TN5SUQR_js.useTranslation();
29237
- const { panelStyle, handlers: dragHandlers } = chunk433LAU63_js.useModalDismissDrag(onClose);
29237
+ const { panelStyle, handlers: dragHandlers } = chunkISNT4VQN_js.useModalDismissDrag(onClose);
29238
29238
  const initialLatex = React109.useMemo(() => {
29239
29239
  if (!existingOmml) {
29240
29240
  return "";
@@ -29933,11 +29933,11 @@ function PresentationStage({
29933
29933
  })
29934
29934
  },
29935
29935
  children: [
29936
- /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.SlideBackgroundImageLayer, { slide: activeSlide }),
29936
+ /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.SlideBackgroundImageLayer, { slide: activeSlide }),
29937
29937
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: pptx.PRESENTATION_HIT_TEST_CSS }),
29938
29938
  presentationKeyframesCss && /* @__PURE__ */ jsxRuntime.jsx("style", { children: presentationKeyframesCss }),
29939
29939
  templateElements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
29940
- chunk433LAU63_js.ElementRenderer,
29940
+ chunkISNT4VQN_js.ElementRenderer,
29941
29941
  {
29942
29942
  element,
29943
29943
  activeSlide,
@@ -29974,7 +29974,7 @@ function PresentationStage({
29974
29974
  `tpl-${element.id}`
29975
29975
  )),
29976
29976
  activeSlide?.elements.map((element, index) => /* @__PURE__ */ jsxRuntime.jsx(
29977
- chunk433LAU63_js.ElementRenderer,
29977
+ chunkISNT4VQN_js.ElementRenderer,
29978
29978
  {
29979
29979
  element,
29980
29980
  activeSlide,
@@ -30096,8 +30096,8 @@ function ViewerCanvasArea(props) {
30096
30096
  aiCanvasActive = false
30097
30097
  } = props;
30098
30098
  const { t } = chunk3TN5SUQR_js.useTranslation();
30099
- const { isHidden } = chunk433LAU63_js.useToolbarVisibility(hiddenActions);
30100
- const viewerOptions = chunk433LAU63_js.useViewerOptionsContext();
30099
+ const { isHidden } = chunkISNT4VQN_js.useToolbarVisibility(hiddenActions);
30100
+ const viewerOptions = chunkISNT4VQN_js.useViewerOptionsContext();
30101
30101
  const outlineAuthoring = useOutlineAuthoring({
30102
30102
  state: s,
30103
30103
  updateElement: canvasHandlers.handleUpdateSmartArtElement,
@@ -30235,7 +30235,7 @@ ${url}`)) {
30235
30235
  s.setActiveSlideIndex((i) => Math.max(0, i - 1));
30236
30236
  }
30237
30237
  }, [mode, presentation, s]);
30238
- const swipe = chunk433LAU63_js.useSwipeNavigation({
30238
+ const swipe = chunkISNT4VQN_js.useSwipeNavigation({
30239
30239
  enabled: swipeEnabled,
30240
30240
  onNext: handleSwipeNext,
30241
30241
  onPrev: handleSwipePrev
@@ -30315,7 +30315,7 @@ ${url}`)) {
30315
30315
  ),
30316
30316
  children: (stageScale) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
30317
30317
  presentation.transitionOverlay && slides[presentation.transitionOverlay.outgoingSlideIndex] && /* @__PURE__ */ jsxRuntime.jsx(
30318
- chunk433LAU63_js.PresentationTransitionOverlay,
30318
+ chunkISNT4VQN_js.PresentationTransitionOverlay,
30319
30319
  {
30320
30320
  outgoingSlide: slides[presentation.transitionOverlay.outgoingSlideIndex],
30321
30321
  templateElements: [
@@ -30432,14 +30432,14 @@ ${url}`)) {
30432
30432
  outlineAuthoring,
30433
30433
  collaborationOverlay: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
30434
30434
  /* @__PURE__ */ jsxRuntime.jsx(
30435
- chunk433LAU63_js.RemoteSelectionOverlay,
30435
+ chunkISNT4VQN_js.RemoteSelectionOverlay,
30436
30436
  {
30437
30437
  elements: effectiveSlide?.elements ?? [],
30438
30438
  activeSlideIndex
30439
30439
  }
30440
30440
  ),
30441
30441
  /* @__PURE__ */ jsxRuntime.jsx(
30442
- chunk433LAU63_js.CollaborationCursorOverlay,
30442
+ chunkISNT4VQN_js.CollaborationCursorOverlay,
30443
30443
  {
30444
30444
  activeSlideIndex,
30445
30445
  canvasWidth: canvasSize.width,
@@ -30688,14 +30688,14 @@ function AiChangeOverlay({ batch, activeSlideIndex }) {
30688
30688
  return null;
30689
30689
  }
30690
30690
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
30691
- /* @__PURE__ */ jsxRuntime.jsx("style", { children: ai.aiChangeAnimationCss(batch.config) }),
30691
+ /* @__PURE__ */ jsxRuntime.jsx("style", { children: host.aiChangeAnimationCss(batch.config) }),
30692
30692
  changes.map((change) => /* @__PURE__ */ jsxRuntime.jsx(
30693
30693
  "div",
30694
30694
  {
30695
30695
  "data-testid": `ai-change-${change.elementId}`,
30696
30696
  "data-ai-change": change.kind,
30697
30697
  "data-export-ignore": "true",
30698
- style: ai.changeGhostStyle(change, phase, batch.config)
30698
+ style: host.changeGhostStyle(change, phase, batch.config)
30699
30699
  },
30700
30700
  `ai-change-${change.elementId}-${nonce}`
30701
30701
  ))
@@ -30703,7 +30703,7 @@ function AiChangeOverlay({ batch, activeSlideIndex }) {
30703
30703
  }
30704
30704
  function ChartFormatPanel() {
30705
30705
  const { t } = chunk3TN5SUQR_js.useTranslation();
30706
- const commands = chunk433LAU63_js.useChartFormatContext();
30706
+ const commands = chunkISNT4VQN_js.useChartFormatContext();
30707
30707
  const ref = React109.useRef(null);
30708
30708
  const chart = commands?.chart;
30709
30709
  const chartData = chart?.type === "chart" ? chart.chartData : void 0;
@@ -30776,7 +30776,7 @@ function MobileDismissSheet({
30776
30776
  children
30777
30777
  }) {
30778
30778
  const { t } = chunk3TN5SUQR_js.useTranslation();
30779
- const { dragY, handlers } = chunk433LAU63_js.useSheetDismissDrag(onClose);
30779
+ const { dragY, handlers } = chunkISNT4VQN_js.useSheetDismissDrag(onClose);
30780
30780
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
30781
30781
  /* @__PURE__ */ jsxRuntime.jsx(
30782
30782
  "button",
@@ -31518,7 +31518,7 @@ function ViewerMainContent(props) {
31518
31518
  );
31519
31519
  const layoutGalleryAnchorRef = React109.useRef(null);
31520
31520
  const layoutGalleryPreviews = useLayoutPreviews(loadLayoutPreviews, layoutGalleryAnchor !== null);
31521
- return /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.ChartPartSelectionProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-pptx-chrome": "body", className: "relative z-10 flex flex-1 min-h-0", children: [
31521
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.ChartPartSelectionProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-pptx-chrome": "body", className: "relative z-10 flex flex-1 min-h-0", children: [
31522
31522
  showSlidesPane && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
31523
31523
  slidesPaneRenderer ? (
31524
31524
  // The rail's slot (width, collapse, resize handle) stays the viewer's.
@@ -32023,7 +32023,7 @@ function MobileChromeOverlay(props) {
32023
32023
  slideSectionGroups,
32024
32024
  canEdit,
32025
32025
  commentCount
32026
- } = props, { keyboardInset, isKeyboardOpen } = chunk433LAU63_js.useKeyboardInsets(), activeSheet = s.isMobileInsertOpen ? "insert" : s.isSlidesPaneOpen ? "slides" : s.isInspectorPaneOpen ? s.sidebarPanelMode === "comments" ? "comments" : "inspector" : !s.isSlideNotesCollapsed ? "notes" : null, closeAllSheets = () => {
32026
+ } = props, { keyboardInset, isKeyboardOpen } = chunkISNT4VQN_js.useKeyboardInsets(), activeSheet = s.isMobileInsertOpen ? "insert" : s.isSlidesPaneOpen ? "slides" : s.isInspectorPaneOpen ? s.sidebarPanelMode === "comments" ? "comments" : "inspector" : !s.isSlideNotesCollapsed ? "notes" : null, closeAllSheets = () => {
32027
32027
  s.setIsSlidesPaneOpen(false);
32028
32028
  s.setIsMobileInsertOpen(false);
32029
32029
  s.setIsInspectorPaneOpen(false);
@@ -32494,19 +32494,19 @@ function OptionsRibbonPane({
32494
32494
  ] });
32495
32495
  }
32496
32496
  async function exportAiChatLogs(options) {
32497
- const store = options?.store ?? ai.createChatHistoryStore();
32498
- const chats = await ai.collectStoredChats(store);
32499
- return ai.exportAiChatLogs(
32497
+ const store = options?.store ?? host.createChatHistoryStore();
32498
+ const chats = await host.collectStoredChats(store);
32499
+ return host.exportAiChatLogs(
32500
32500
  chats,
32501
32501
  { format: options?.format, detailed: options?.detailed, now: options?.now },
32502
32502
  (filename, content, mime) => {
32503
- chunk433LAU63_js.downloadBlob(new Blob([content], { type: mime }), filename);
32503
+ chunkISNT4VQN_js.downloadBlob(new Blob([content], { type: mime }), filename);
32504
32504
  }
32505
32505
  );
32506
32506
  }
32507
32507
  function SettingsAiTab({ store }) {
32508
32508
  const { t } = chunk3TN5SUQR_js.useTranslation();
32509
- const activeStore = React109.useMemo(() => store ?? ai.createChatHistoryStore(), [store]);
32509
+ const activeStore = React109.useMemo(() => store ?? host.createChatHistoryStore(), [store]);
32510
32510
  const [chatCount, setChatCount] = React109.useState(null);
32511
32511
  const [detailed, setDetailed] = React109.useState(true);
32512
32512
  const [status, setStatus] = React109.useState({ kind: "idle" });
@@ -32853,14 +32853,14 @@ function ViewerOptionsProvider({
32853
32853
  store,
32854
32854
  children
32855
32855
  }) {
32856
- return /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.ViewerOptionsStoreContext.Provider, { value: store, children: /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.ViewerOptionsContext.Provider, { value: options, children }) });
32856
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.ViewerOptionsStoreContext.Provider, { value: store, children: /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.ViewerOptionsContext.Provider, { value: options, children }) });
32857
32857
  }
32858
32858
  function useAiBridge(input) {
32859
32859
  const ref = React109.useRef(input);
32860
32860
  ref.current = input;
32861
32861
  return React109.useMemo(() => {
32862
32862
  const live = () => ref.current;
32863
- return ai.createPptxAiBridge({
32863
+ return host.createPptxAiBridge({
32864
32864
  getSlides: () => live().slides,
32865
32865
  getActiveSlideIndex: () => live().activeSlideIndex,
32866
32866
  getCanvasSize: () => live().canvasSize,
@@ -32907,9 +32907,9 @@ function useAiBridge(input) {
32907
32907
  afterDeckUpdate: () => live().markDirty(),
32908
32908
  getFocusedTargets() {
32909
32909
  const current = live();
32910
- return ai.resolveAiEffectiveTargets(
32910
+ return host.resolveAiEffectiveTargets(
32911
32911
  { pickTargets: current.pickedFocus ?? [], pinnedFocus: current.pinnedFocus },
32912
- ai.computeFocusTargets({
32912
+ host.computeFocusTargets({
32913
32913
  activeSlideIndex: current.activeSlideIndex,
32914
32914
  selectedElementIds: current.selectedElementIds,
32915
32915
  selectedElementId: current.selectedElementId
@@ -32925,7 +32925,7 @@ function useAiPanelController(input) {
32925
32925
  const inputRef = React109.useRef(input);
32926
32926
  inputRef.current = input;
32927
32927
  const [controller] = React109.useState(
32928
- () => ai.createPptxAiPanelController({
32928
+ () => host.createPptxAiPanelController({
32929
32929
  getSelection: () => ({
32930
32930
  activeSlideIndex: inputRef.current.activeSlideIndex,
32931
32931
  selectedElementIds: inputRef.current.selectedElementIds,
@@ -32934,10 +32934,10 @@ function useAiPanelController(input) {
32934
32934
  getSelectedElement: () => inputRef.current.selectedElement
32935
32935
  })
32936
32936
  );
32937
- const state = chunk433LAU63_js.useController(controller);
32937
+ const state = chunkISNT4VQN_js.useController(controller);
32938
32938
  React109.useEffect(() => () => controller.dispose(), [controller]);
32939
32939
  const liveFocusTargets = React109.useMemo(
32940
- () => ai.computeFocusTargets({ activeSlideIndex, selectedElementIds, selectedElementId }),
32940
+ () => host.computeFocusTargets({ activeSlideIndex, selectedElementIds, selectedElementId }),
32941
32941
  [activeSlideIndex, selectedElementIds, selectedElementId]
32942
32942
  );
32943
32943
  const actions = React109.useMemo(
@@ -33187,7 +33187,7 @@ function useMasterViewCrud(input) {
33187
33187
  if (id === "renameLayout" || id === "renameMaster") {
33188
33188
  const master = slideMasters[target.masterIndex];
33189
33189
  const current = id === "renameLayout" ? master?.layouts?.[target.layoutIndex ?? -1]?.name ?? "" : master?.name ?? "";
33190
- const next = chunk433LAU63_js.safePrompt(t("pptx.masterView.renamePrompt"), current)?.trim();
33190
+ const next = chunkISNT4VQN_js.safePrompt(t("pptx.masterView.renamePrompt"), current)?.trim();
33191
33191
  if (!next) {
33192
33192
  return;
33193
33193
  }
@@ -33701,7 +33701,8 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33701
33701
  customization,
33702
33702
  initialSlide,
33703
33703
  googleFonts,
33704
- allowExternalContent
33704
+ allowExternalContent,
33705
+ limits
33705
33706
  } = props;
33706
33707
  const hostCanEdit = canEditProp && !readOnly;
33707
33708
  const collaboration = pptx.resolveCollaborationConfig(collaborationInput);
@@ -33778,7 +33779,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33778
33779
  },
33779
33780
  [storage]
33780
33781
  );
33781
- const { optionsStore, options: viewerOptions } = chunk433LAU63_js.useViewerOptions();
33782
+ const { optionsStore, options: viewerOptions } = chunkISNT4VQN_js.useViewerOptions();
33782
33783
  const custom = useViewerCustomization(
33783
33784
  customization,
33784
33785
  legacyHiddenActions,
@@ -33797,8 +33798,8 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33797
33798
  const handleEnableEditing = React109.useCallback(() => {
33798
33799
  setProtectedViewOverridden(true);
33799
33800
  }, []);
33800
- const readOnlyRec = chunk433LAU63_js.useReadOnlyRecommendationState(content);
33801
- const compatToastsState = chunk433LAU63_js.useCompatibilityToastsState();
33801
+ const readOnlyRec = chunkISNT4VQN_js.useReadOnlyRecommendationState(content);
33802
+ const compatToastsState = chunkISNT4VQN_js.useCompatibilityToastsState();
33802
33803
  const [notesBarHeight, setNotesBarHeight] = React109.useState(0);
33803
33804
  const runProgramNoticesState = useRunProgramNoticesState();
33804
33805
  const [collaborationReadOnly, setCollaborationReadOnly] = React109.useState(Boolean(collaboration));
@@ -33821,8 +33822,8 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33821
33822
  filePath
33822
33823
  });
33823
33824
  const [isShareDialogOpen, setIsShareDialogOpen] = React109.useState(false);
33824
- const { reducedMotion, toggleReducedMotion } = chunk433LAU63_js.useReducedMotion();
33825
- const state = chunk433LAU63_js.useViewerState({
33825
+ const { reducedMotion, toggleReducedMotion } = chunkISNT4VQN_js.useReducedMotion();
33826
+ const state = chunkISNT4VQN_js.useViewerState({
33826
33827
  content,
33827
33828
  canEdit,
33828
33829
  inspectorInitiallyOpen: props.inspectorInitiallyOpen
@@ -33949,16 +33950,16 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33949
33950
  }
33950
33951
  }, [settings, optionsStore]);
33951
33952
  const handleClearOptionsCache = useAutosaveCacheMaintenance(viewerOptions, storage);
33952
- const mobile = chunk433LAU63_js.useIsMobile();
33953
+ const mobile = chunkISNT4VQN_js.useIsMobile();
33953
33954
  const { isMobile, isTouchDevice, isVirtualKeyboardOpen } = mobile;
33954
- const resizablePanels = chunk433LAU63_js.useResizablePanels();
33955
+ const resizablePanels = chunkISNT4VQN_js.useResizablePanels();
33955
33956
  const {
33956
33957
  gridSpacingPx,
33957
33958
  visibleSlideIndexes,
33958
33959
  slideSectionGroups,
33959
33960
  masterPseudoSlide,
33960
33961
  authoredRange
33961
- } = chunk433LAU63_js.useDerivedSlideState({
33962
+ } = chunkISNT4VQN_js.useDerivedSlideState({
33962
33963
  slides,
33963
33964
  sections: state.sections,
33964
33965
  customShows: state.customShows,
@@ -33983,7 +33984,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33983
33984
  state.cropSessionRef
33984
33985
  ]
33985
33986
  );
33986
- const zoom = chunk433LAU63_js.useZoomViewport({
33987
+ const zoom = chunkISNT4VQN_js.useZoomViewport({
33987
33988
  canvasSize,
33988
33989
  selectedElements: state.selectedElements,
33989
33990
  fitPadding: props.fitPadding,
@@ -33999,7 +34000,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
33999
34000
  onChangeCallback.current?.();
34000
34001
  }, [setIsDirty]);
34001
34002
  const restoreHistoryThemeRef = React109.useRef(void 0);
34002
- const history = chunk433LAU63_js.useEditorHistory({
34003
+ const history = chunkISNT4VQN_js.useEditorHistory({
34003
34004
  slides,
34004
34005
  canvasSize,
34005
34006
  activeSlideIndex,
@@ -34028,7 +34029,7 @@ var PowerPointViewerBody = /* @__PURE__ */ React109.forwardRef(
34028
34029
  setEditTemplateMode: state.setEditTemplateMode,
34029
34030
  setHeaderFooter: state.setHeaderFooter
34030
34031
  });
34031
- const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } = chunk433LAU63_js.usePresentationSetup({
34032
+ const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } = chunkISNT4VQN_js.usePresentationSetup({
34032
34033
  mode,
34033
34034
  slides,
34034
34035
  visibleSlideIndexes,
@@ -34103,7 +34104,7 @@ ${url}`)
34103
34104
  loading,
34104
34105
  error
34105
34106
  ]);
34106
- chunk433LAU63_js.useTouchGestures({
34107
+ chunkISNT4VQN_js.useTouchGestures({
34107
34108
  targetRef: zoom.canvasViewportRef,
34108
34109
  currentScale: zoom.scale,
34109
34110
  callbacks: {
@@ -34125,7 +34126,7 @@ ${url}`)
34125
34126
  },
34126
34127
  enabled: isTouchDevice
34127
34128
  });
34128
- const dialogs = chunk433LAU63_js.useViewerDialogs({
34129
+ const dialogs = chunkISNT4VQN_js.useViewerDialogs({
34129
34130
  mode,
34130
34131
  slides,
34131
34132
  activeSlide,
@@ -34152,7 +34153,7 @@ ${url}`)
34152
34153
  history,
34153
34154
  embeddedFontFamilies: state.embeddedFonts.map((font) => font.name)
34154
34155
  });
34155
- chunk433LAU63_js.useClearSelectionOnSlideChange(state, activeSlideIndex);
34156
+ chunkISNT4VQN_js.useClearSelectionOnSlideChange(state, activeSlideIndex);
34156
34157
  const zoomBeforePresentRef = React109.useRef(null);
34157
34158
  React109.useEffect(() => {
34158
34159
  if (mode !== "present") {
@@ -34170,7 +34171,7 @@ ${url}`)
34170
34171
  zoom.handleZoomToFit();
34171
34172
  zoom.canvasViewportRef.current?.scrollTo({ left: 0, top: 0 });
34172
34173
  }, [mode]);
34173
- const editorOps = chunk433LAU63_js.useEditorOperations({
34174
+ const editorOps = chunkISNT4VQN_js.useEditorOperations({
34174
34175
  state,
34175
34176
  history,
34176
34177
  zoom,
@@ -34213,7 +34214,7 @@ ${url}`)
34213
34214
  handlerRef,
34214
34215
  viewerApi,
34215
34216
  loadVersion
34216
- } = chunk433LAU63_js.useViewerIntegration({
34217
+ } = chunkISNT4VQN_js.useViewerIntegration({
34217
34218
  transformCommittedText: (text) => pptx.applyAutoCorrect(text, viewerOptions.proofing),
34218
34219
  state,
34219
34220
  zoom,
@@ -34247,6 +34248,7 @@ ${url}`)
34247
34248
  allowExternalImages: pptx.resolveAllowExternalContent(allowExternalContent, viewerOptions),
34248
34249
  initialSlide,
34249
34250
  googleFonts,
34251
+ limits,
34250
34252
  setReadOnlyRecommendation: readOnlyRec.setRecommendation,
34251
34253
  setModifyVerifier: readOnlyRec.setModifyVerifier,
34252
34254
  setCompatToasts: compatToastsState.setToasts,
@@ -34355,7 +34357,7 @@ ${url}`)
34355
34357
  updateElementById: editorOps.ops.updateElementById
34356
34358
  });
34357
34359
  const ribbonScope = useRibbonScopeToken();
34358
- const viewPreferencesSync = chunk433LAU63_js.useViewPreferencesSync({
34360
+ const viewPreferencesSync = chunkISNT4VQN_js.useViewPreferencesSync({
34359
34361
  loadVersion,
34360
34362
  viewProperties: state.viewProperties,
34361
34363
  setViewProperties: state.setViewProperties,
@@ -34397,7 +34399,7 @@ ${url}`)
34397
34399
  },
34398
34400
  [state]
34399
34401
  );
34400
- const layoutSwitching = chunk433LAU63_js.useLayoutSwitching({
34402
+ const layoutSwitching = chunkISNT4VQN_js.useLayoutSwitching({
34401
34403
  handler: handlerRef.current,
34402
34404
  slides,
34403
34405
  activeSlideIndex,
@@ -34911,8 +34913,8 @@ ${url}`)
34911
34913
  // Nothing previously provided it, so every one of those consumers was
34912
34914
  // silently reading `DEFAULT_VIEWER_OPTIONS` forever, no matter what
34913
34915
  // the user changed in the Options dialog.
34914
- /* @__PURE__ */ jsxRuntime.jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerStorageContext.Provider, { value: storage, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerRegionBaseContext.Provider, { value: regionBase, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsxRuntime.jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxRuntime.jsxs(
34915
- chunk433LAU63_js.CollaborationProvider,
34916
+ /* @__PURE__ */ jsxRuntime.jsx(ViewerOptionsProvider, { options: viewerOptions, store: optionsStore, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerCustomizationContext.Provider, { value: customizationResolved, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerStorageContext.Provider, { value: storage, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerRegionBaseContext.Provider, { value: regionBase, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonAddInsContext.Provider, { value: ribbonAddIns ?? NO_RIBBON_ADD_INS, children: /* @__PURE__ */ jsxRuntime.jsx(AccountAuthContext.Provider, { value: accountAuth, children: /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.Rendering3DFlagsContext.Provider, { value: effective3D, children: /* @__PURE__ */ jsxRuntime.jsx(ViewerThemeProvider, { theme: effectiveTheme, children: /* @__PURE__ */ jsxRuntime.jsxs(
34917
+ chunkISNT4VQN_js.CollaborationProvider,
34916
34918
  {
34917
34919
  config: collaboration,
34918
34920
  canvasWidth: canvasSize.width,
@@ -34968,19 +34970,19 @@ ${url}`)
34968
34970
  slideCount: slides.length
34969
34971
  }
34970
34972
  ),
34971
- /* @__PURE__ */ jsxRuntime.jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: /* @__PURE__ */ jsxRuntime.jsx(chunk433LAU63_js.ChartFormatContext.Provider, { value: chartFormat, children: viewerContent }) }) })
34973
+ /* @__PURE__ */ jsxRuntime.jsx(ShapeFormatContext.Provider, { value: shapeFormat, children: /* @__PURE__ */ jsxRuntime.jsx(RibbonGalleryCommandsContext.Provider, { value: ribbonGalleries, children: /* @__PURE__ */ jsxRuntime.jsx(chunkISNT4VQN_js.ChartFormatContext.Provider, { value: chartFormat, children: viewerContent }) }) })
34972
34974
  ]
34973
34975
  }
34974
34976
  ) }) }) }) }) }) }) }) })
34975
34977
  );
34976
34978
  }
34977
34979
  );
34978
- var PowerPointViewer2 = /* @__PURE__ */ chunk433LAU63_js.withDisplayName(
34980
+ var PowerPointViewer2 = /* @__PURE__ */ chunkISNT4VQN_js.withDisplayName(
34979
34981
  PowerPointViewerComponent,
34980
34982
  "PowerPointViewer"
34981
34983
  );
34982
34984
  function CollaborationStatusStrip() {
34983
- const collab = chunk433LAU63_js.useCollaboration();
34985
+ const collab = chunkISNT4VQN_js.useCollaboration();
34984
34986
  if (!collab) {
34985
34987
  return null;
34986
34988
  }
@@ -34997,9 +34999,9 @@ function CollaborationStateReporter({
34997
34999
  onChange,
34998
35000
  onStatus
34999
35001
  }) {
35000
- const collab = chunk433LAU63_js.useCollaboration();
35002
+ const collab = chunkISNT4VQN_js.useCollaboration();
35001
35003
  useCollaborationStateReport(collab, onChange);
35002
- chunk433LAU63_js.useReportOnChange(collab?.status ?? "disconnected", onStatus, "disconnected");
35004
+ chunkISNT4VQN_js.useReportOnChange(collab?.status ?? "disconnected", onStatus, "disconnected");
35003
35005
  return null;
35004
35006
  }
35005
35007
  function CollaborationDocumentSync({
@@ -35013,8 +35015,8 @@ function CollaborationDocumentSync({
35013
35015
  deckSaveState,
35014
35016
  onReadOnlyChange
35015
35017
  }) {
35016
- const collab = chunk433LAU63_js.useCollaboration();
35017
- chunk433LAU63_js.useCollaborationDocumentSync({
35018
+ const collab = chunkISNT4VQN_js.useCollaboration();
35019
+ chunkISNT4VQN_js.useCollaborationDocumentSync({
35018
35020
  collaboration: collab,
35019
35021
  slides,
35020
35022
  templateElementsBySlideId,
@@ -35033,14 +35035,14 @@ function CollaborationFollowLayer({
35033
35035
  setActiveSlideIndex,
35034
35036
  slideCount
35035
35037
  }) {
35036
- const collab = chunk433LAU63_js.useCollaboration();
35037
- const { followedClientId, followUser } = chunk433LAU63_js.useFollowMode({
35038
+ const collab = chunkISNT4VQN_js.useCollaboration();
35039
+ const { followedClientId, followUser } = chunkISNT4VQN_js.useFollowMode({
35038
35040
  collab,
35039
35041
  activeSlideIndex,
35040
35042
  setActiveSlideIndex,
35041
35043
  slideCount
35042
35044
  });
35043
- chunk433LAU63_js.useBroadcastFollower({
35045
+ chunkISNT4VQN_js.useBroadcastFollower({
35044
35046
  collab,
35045
35047
  activeSlideIndex,
35046
35048
  setActiveSlideIndex,