pptx-react-viewer 4.27.0 → 4.29.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 (128) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +3 -0
  3. package/dist/{AiChatPanel-3J6XGIJ4.mjs → AiChatPanel-6EIOUV7J.mjs} +2 -2
  4. package/dist/AiChatPanel-6EIOUV7J.mjs.br +0 -0
  5. package/dist/AiChatPanel-6EIOUV7J.mjs.gz +0 -0
  6. package/dist/{AiChatPanel-EGTSK4T5.js → AiChatPanel-AK6X4NJD.js} +10 -10
  7. package/dist/AiChatPanel-AK6X4NJD.js.br +0 -0
  8. package/dist/AiChatPanel-AK6X4NJD.js.gz +0 -0
  9. package/dist/{Model3DScene-2V2GQ6FY.mjs → Model3DScene-EZDCI7TT.mjs} +1 -1
  10. package/dist/Model3DScene-EZDCI7TT.mjs.br +0 -0
  11. package/dist/Model3DScene-EZDCI7TT.mjs.gz +0 -0
  12. package/dist/{Model3DScene-Q3XEZSWV.js → Model3DScene-KYIYYLMY.js} +1 -1
  13. package/dist/Model3DScene-KYIYYLMY.js.br +0 -0
  14. package/dist/Model3DScene-KYIYYLMY.js.gz +0 -0
  15. package/dist/{chunk-ZK7UEEXE.mjs → chunk-6YOFWVII.mjs} +83 -80
  16. package/dist/chunk-6YOFWVII.mjs.br +0 -0
  17. package/dist/chunk-6YOFWVII.mjs.gz +0 -0
  18. package/dist/{chunk-5RQTZ376.js → chunk-7JMO6R6B.js} +394 -391
  19. package/dist/chunk-7JMO6R6B.js.br +0 -0
  20. package/dist/chunk-7JMO6R6B.js.gz +0 -0
  21. package/dist/chunk-CTL42ZRR.js +4238 -0
  22. package/dist/chunk-CTL42ZRR.js.br +0 -0
  23. package/dist/chunk-CTL42ZRR.js.gz +0 -0
  24. package/dist/{chunk-QGM4M3NI.js → chunk-DFFCFNK2.js} +2 -0
  25. package/dist/chunk-DFFCFNK2.js.br +0 -0
  26. package/dist/chunk-DFFCFNK2.js.gz +0 -0
  27. package/dist/{chunk-34AXBLYH.mjs → chunk-EW45F35P.mjs} +80 -78
  28. package/dist/chunk-EW45F35P.mjs.br +0 -0
  29. package/dist/chunk-EW45F35P.mjs.gz +0 -0
  30. package/dist/{chunk-6DZX6EAA.mjs → chunk-GDQSMJQZ.mjs} +2 -1
  31. package/dist/chunk-GDQSMJQZ.mjs.br +0 -0
  32. package/dist/chunk-GDQSMJQZ.mjs.gz +0 -0
  33. package/dist/{chunk-MQCBMO6A.js → chunk-K3EGXT6W.js} +261 -259
  34. package/dist/chunk-K3EGXT6W.js.br +0 -0
  35. package/dist/chunk-K3EGXT6W.js.gz +0 -0
  36. package/dist/chunk-VI575UU6.mjs +3897 -0
  37. package/dist/chunk-VI575UU6.mjs.br +0 -0
  38. package/dist/chunk-VI575UU6.mjs.gz +0 -0
  39. package/dist/i18n.js +1 -1
  40. package/dist/i18n.js.br +2 -2
  41. package/dist/i18n.js.gz +0 -0
  42. package/dist/i18n.mjs +1 -1
  43. package/dist/i18n.mjs.br +0 -0
  44. package/dist/i18n.mjs.gz +0 -0
  45. package/dist/index.d.ts +17 -0
  46. package/dist/index.js +25 -25
  47. package/dist/index.js.br +0 -0
  48. package/dist/index.js.gz +0 -0
  49. package/dist/index.mjs +4 -4
  50. package/dist/index.mjs.br +0 -0
  51. package/dist/index.mjs.gz +0 -0
  52. package/dist/internals.d.ts +11 -1
  53. package/dist/internals.js +82 -82
  54. package/dist/internals.js.br +0 -0
  55. package/dist/internals.js.gz +0 -0
  56. package/dist/internals.mjs +3 -3
  57. package/dist/internals.mjs.br +0 -0
  58. package/dist/internals.mjs.gz +0 -0
  59. package/dist/{three.module-A6ACXOES.mjs → three.module-2R4ADL7W.mjs} +1 -1
  60. package/dist/three.module-2R4ADL7W.mjs.br +0 -0
  61. package/dist/three.module-2R4ADL7W.mjs.gz +0 -0
  62. package/dist/{three.module-IORLGCSX.js → three.module-LS32MK23.js} +1 -1
  63. package/dist/three.module-LS32MK23.js.br +0 -0
  64. package/dist/three.module-LS32MK23.js.gz +0 -0
  65. package/dist/viewer/index.d.ts +17 -0
  66. package/dist/viewer/index.js +20 -20
  67. package/dist/viewer/index.js.br +0 -0
  68. package/dist/viewer/index.js.gz +0 -0
  69. package/dist/viewer/index.mjs +4 -4
  70. package/dist/viewer/index.mjs.br +0 -0
  71. package/dist/viewer/index.mjs.gz +0 -0
  72. package/dist/{y-webrtc-F5IA7T5S.mjs → y-webrtc-6DZI5KUK.mjs} +1 -1
  73. package/dist/y-webrtc-6DZI5KUK.mjs.br +0 -0
  74. package/dist/y-webrtc-6DZI5KUK.mjs.gz +0 -0
  75. package/dist/{y-webrtc-6LID3XZO.js → y-webrtc-OTRGEYOH.js} +5 -5
  76. package/dist/y-webrtc-OTRGEYOH.js.br +0 -0
  77. package/dist/y-webrtc-OTRGEYOH.js.gz +0 -0
  78. package/dist/{y-websocket-HOY2HFMH.js → y-websocket-AWBYMAHL.js} +1 -1
  79. package/dist/y-websocket-AWBYMAHL.js.br +0 -0
  80. package/dist/y-websocket-AWBYMAHL.js.gz +0 -0
  81. package/dist/{y-websocket-VGLBV2HJ.mjs → y-websocket-VAKUVRQT.mjs} +1 -1
  82. package/dist/y-websocket-VAKUVRQT.mjs.br +0 -0
  83. package/dist/y-websocket-VAKUVRQT.mjs.gz +0 -0
  84. package/package.json +4 -3
  85. package/dist/AiChatPanel-3J6XGIJ4.mjs.br +0 -0
  86. package/dist/AiChatPanel-3J6XGIJ4.mjs.gz +0 -0
  87. package/dist/AiChatPanel-EGTSK4T5.js.br +0 -0
  88. package/dist/AiChatPanel-EGTSK4T5.js.gz +0 -0
  89. package/dist/Model3DScene-2V2GQ6FY.mjs.br +0 -0
  90. package/dist/Model3DScene-2V2GQ6FY.mjs.gz +0 -0
  91. package/dist/Model3DScene-Q3XEZSWV.js.br +0 -2
  92. package/dist/Model3DScene-Q3XEZSWV.js.gz +0 -0
  93. package/dist/UTIF-RPFRSSC5.mjs +0 -6400
  94. package/dist/UTIF-RPFRSSC5.mjs.br +0 -0
  95. package/dist/UTIF-RPFRSSC5.mjs.gz +0 -0
  96. package/dist/UTIF-XWCKRN6V.js +0 -6402
  97. package/dist/UTIF-XWCKRN6V.js.br +0 -0
  98. package/dist/UTIF-XWCKRN6V.js.gz +0 -0
  99. package/dist/chunk-34AXBLYH.mjs.br +0 -0
  100. package/dist/chunk-34AXBLYH.mjs.gz +0 -0
  101. package/dist/chunk-5RQTZ376.js.br +0 -0
  102. package/dist/chunk-5RQTZ376.js.gz +0 -0
  103. package/dist/chunk-6DZX6EAA.mjs.br +0 -0
  104. package/dist/chunk-6DZX6EAA.mjs.gz +0 -0
  105. package/dist/chunk-MQCBMO6A.js.br +0 -0
  106. package/dist/chunk-MQCBMO6A.js.gz +0 -0
  107. package/dist/chunk-QGM4M3NI.js.br +0 -0
  108. package/dist/chunk-QGM4M3NI.js.gz +0 -0
  109. package/dist/chunk-TYJZJJZ6.mjs +0 -208183
  110. package/dist/chunk-TYJZJJZ6.mjs.br +0 -0
  111. package/dist/chunk-TYJZJJZ6.mjs.gz +0 -0
  112. package/dist/chunk-WK6JBJCT.js +0 -208548
  113. package/dist/chunk-WK6JBJCT.js.br +0 -0
  114. package/dist/chunk-WK6JBJCT.js.gz +0 -0
  115. package/dist/chunk-ZK7UEEXE.mjs.br +0 -0
  116. package/dist/chunk-ZK7UEEXE.mjs.gz +0 -0
  117. package/dist/three.module-A6ACXOES.mjs.br +0 -0
  118. package/dist/three.module-A6ACXOES.mjs.gz +0 -0
  119. package/dist/three.module-IORLGCSX.js.br +0 -0
  120. package/dist/three.module-IORLGCSX.js.gz +0 -0
  121. package/dist/y-webrtc-6LID3XZO.js.br +0 -0
  122. package/dist/y-webrtc-6LID3XZO.js.gz +0 -0
  123. package/dist/y-webrtc-F5IA7T5S.mjs.br +0 -0
  124. package/dist/y-webrtc-F5IA7T5S.mjs.gz +0 -0
  125. package/dist/y-websocket-HOY2HFMH.js.br +0 -0
  126. package/dist/y-websocket-HOY2HFMH.js.gz +0 -0
  127. package/dist/y-websocket-VGLBV2HJ.mjs.br +0 -0
  128. package/dist/y-websocket-VGLBV2HJ.mjs.gz +0 -0
@@ -1,5 +1,5 @@
1
- import { hasShapeProperties, normalizeHexColor, DEFAULT_STROKE_COLOR, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, hasTextProperties, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getAriaRoleDescription, getAriaLabel, getAriaRole, isEditableTextElement, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageEffectsOpacity, getImageEffectsFilter, getImageRenderStyle, cn, ACTION_BUTTON_PRESETS, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, isInkElement, shouldRenderFallbackLabel, getElementLabel, DEFAULT_FILL_COLOR, buildCssGradientFromShapeStyle, getCropShapeClipPath, getElementTransform, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, isImageLikeElement, getImageSurfaceMaskStyle, isImageTiled, getDuotoneColors, getTextWarpStyle, getTextCompensationTransform, renderTextSegments, buildReactChartViewModel, renderChartElement, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, getImageTilingStyle, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, DEFAULT_TEXT_FONT_SIZE, getSubstituteFontFamily, DEFAULT_FONT_FAMILY, setSmartArtNodeStyle, updateSmartArtNodeText, substituteFieldText, HYPERLINK_COLOR, cloneTemplateElementsBySlideId, cloneSlide, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, PptxHandler, partitionTemplateElements, EncryptedFileError, isTemplateElementId, applyThemeToData, THEME_PRESETS, themeColorSchemesEqual, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, guidePxToEmu, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, makeCloneId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildThemeColorMap, reResolveSlideColors, reResolveElementColors, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, rerouteConnectorsForMovedElements, applyReroutedConnectors, SvgExporter, reResolveElementFonts, updateCellTextStyleInRawXml, updateCellTextInRawXml, splitCell, updateMergeAttrsInRawXml, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, elementActionToPptxAction, isUrlSafe, computeSnapToShape, safeOpenUrl as safeOpenUrl$1 } from './chunk-TYJZJJZ6.mjs';
2
- import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, connectorWrapperTransform, resolveElementInteractivity, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription as getAriaRoleDescription$1, getAriaLabel as getAriaLabel$1, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, SMARTART_DEFAULT_PALETTE, resolvePalette as resolvePalette$1, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, resolveZoomNavigationTarget, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, computeInlineEditorRect, smartArtNodeAtPoint, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveForwardSlideWithZoomReturn, buildZoomTransitionOverride, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, beginZoomExcursion, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, acknowledgeAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, isFeatureEnabled, mapSlideShowStartKey, mapCustomizedEditorKey, isEditorControlTarget, isEditorTextInputTarget, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, drillSelectionForDoubleClick, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, exportDeckJson, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, resolveViewportFitOptions, EDITOR_VIEWPORT_FIT, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, createBackstagePresentation, buildFieldSubstitutionContext, isEnterableGroup, memberChainAtPoint, findElementPath, drillSelectionForClick, scrollInspectorSectionIntoView, computeScrollDelta, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, buildSmartArtPresetData, classifyMediaType, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
1
+ import { dist_exports, normalizeHexColor, DEFAULT_STROKE_COLOR, colorWithOpacity, normalizeStrokeDashType, getSvgStrokeDasharray, getCompoundLineOffsets, getCompoundLineWidths, getConnectorPathGeometry, buildLineShadowCss, buildLineGlowFilter, renderConnectorMarker, getAriaRoleDescription, getAriaLabel, getAriaRole, isEditableTextElement, getShapeVisualStyle, getTextStyleForElement, DEFAULT_TEXT_COLOR, renderVectorShape, isConnectorOrLineElement, build3DExtrusionData, getImageEffectsOpacity, getImageEffectsFilter, getImageRenderStyle, cn, ACTION_BUTTON_PRESETS, getImageSurfaceStyle, getTextLayoutStyle, renderTableElement, renderMediaElement, shouldRenderFallbackLabel, getElementLabel, DEFAULT_FILL_COLOR, buildCssGradientFromShapeStyle, getCropShapeClipPath, getElementTransform, hasDagDuotoneEffect, renderDagDuotoneSvgFilter, getImageSurfaceMaskStyle, isImageTiled, getDuotoneColors, getTextWarpStyle, getTextCompensationTransform, renderTextSegments, buildReactChartViewModel, renderChartElement, buildInkGroupStrokes, getInkReplayStyles, INK_REPLAY_KEYFRAMES, buildContentPartStrokes, getContentPartReplayStyles, MIN_ELEMENT_SIZE, buildTextBody3DSceneStyle, getImageTilingStyle, buildCacheKey, DEFAULT_COLOR_CHANGE_TOLERANCE, getCachedResult, applyColorChange, setCachedResult, DEFAULT_TEXT_FONT_SIZE, DEFAULT_FONT_FAMILY, substituteFieldText, HYPERLINK_COLOR, cloneTemplateElementsBySlideId, cloneSlide, cloneHistorySnapshot, ZOOM_TO_SELECTION_PADDING, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, partitionTemplateElements, isTemplateElementId, comparePresentation, UNGROUPED_SECTION_ID, DEFAULT_SECTION_GROUP_ID, stopAllPersistentAudio, buildSaveSlides, MAX_ZOOM_SCALE, MIN_ZOOM_SCALE, makeCloneId, DEFAULT_TABLE_ROWS, DEFAULT_TABLE_COLUMNS, buildPdfFromTiledImageData, GRID_SIZE, copyFormatFromElement, hasCopyableFormat, rerouteConnectorsForMovedElements, applyReroutedConnectors, splitCell, mergeCells, buildNotesPdf, canvasToJpegData, applyFormatToElement, isPpactionUrl, parsePpactionUrl, isUrlSafe, computeSnapToShape, safeOpenUrl as safeOpenUrl$1 } from './chunk-VI575UU6.mjs';
2
+ import { GlyphOutlineFontCache, createGlyphOutlineLookup, DEFAULT_VIEWER_OPTIONS, TOOLBAR_TABS, defineThreeViewElement, getSelectionControlArtworkStyle, svgLineCap, getSelectionOutlineColor, connectorWrapperTransform, resolveElementInteractivity, buildTextStyleOverrideCss, isElementRendered, resolveElementAriaAttributes, isMediaFullscreenActive, shouldRenderHitTarget, elementHitTargetStyle, inlineElementPointerEvents, isHollowShapeElement, LINK_TOOLTIP_HOST_CLASS, mediaTransportVisible, oleActionsVisible, getGroupChildParentFill, getResizeHandleHitAreaStyle, paintedStrokeWidth, ensureActionAffordanceStyles, resolveElementActionAffordance, actionAffordanceLabels, paintedElementSize, MEDIA_FULLSCREEN_OVERLAY_STYLE, elementContainerHeightStyle, resolveElementHighlightClick, applyHighlightClickStyle, getComputedEffectStyle, getSoftEdgeSvgFilter, getEffectStyleSource, getBevelLightingSvgFilter, buildStrokeOutline, buildHollowHitOutline, buildSubpathFillOverlay, strokeOutlineViewBox, resolveRevealedSmartArtNodes, resolveRevealedDrawingShapes, buildSmartArtA11y, canDrillDown, computeSmartArtElementLayout, flattenNodes, buildSummaryZoomView, getImageColorWashStyle, readEditableText, placeCaretAt, takePendingCaretPoint, getPendingSelectionRestore, restoreSegmentSelection, mapInlineTextFormatKey, subscribeBarFacePicturePixelSamples, getBarFacePicturePixelSampleVersion, ensureChartInteractionStyles, applyChartPartHighlight, resolveRevealedChartData, formatAxisValue, resolveOleType, getOleAriaLabel, getOleTypeColor, getOleTypeLabel, filterRenderedElements, resolveGroupChildFill, isLinkedTextBox, getOverflowSegments, shouldUseSvgWarp, getTextBodyRotationTransform, placeholderPromptDescriptor, getAriaRoleDescription as getAriaRoleDescription$1, getAriaLabel as getAriaLabel$1, attachRotateHandlePlacement, elementIdSelector, createRotationDrag, ACTION_INDICATOR_CLASS, ACTION_INDICATOR_ICON_PATH, LINK_TOOLTIP_CLASS, LINK_TOOLTIP_PANEL_CLASS, LINK_TOOLTIP_LABEL_CLASS, LINK_TOOLTIP_HINT_CLASS, SMARTART_DEFAULT_PALETTE, resolvePalette as resolvePalette$1, computeDrawingViewBox, projectDrawingShapes, resolveRevealedDrawingShapeNodeIds, styleShadowFilter, buildChromeStyle, measureSvgViewportRect, modelDataToBlobUrl, resolveZoomNavigationTarget, getImageSvgFilters, getCachedNativeImageSize, probeNativeImageSize, buildDuotoneCacheKey, getDuotoneCachedResult, applyDuotone, setDuotoneCachedResult, inlineListBodyText, createInlineListSeed, readListActivationSelection, createInlineListModelObserver, attachCollaborationInlineEditor, bindInlineListParagraph, bindInlineListRun, attachInlineListController, restoreInlineListBodySelection, getInlineEditorSelectionResult, isBulletMarkerSegment, resolveChartThreeViewSpec, applyChart3DDrag, applyChart3DSelect, findChartPartTarget, withChartTitle, resolveSmartArtThreeViewSpec, isBrowserOpenableMime, formatBytes, getOleDisplayName, getOleBadgeLabel, openUrlInNewTab, hasGlyphEnvelope, buildGlyphEnvelopeBlock, getWarpPath, isWedgeCalloutPresetShape, getAriaRole as getAriaRole$1, isElementActionable, centeredSvgTextLines, findSmartArtNodeText, rebuildDrawingShapesIfCleared, shouldCommitSmartArtNodeText, advanceChartMarkDrag, advanceChartValueDrag, resolveChartKind, buildChartMarkDragGeometry, beginChartMarkDrag, beginChartValueDrag, commitSmartArtNodeFill, commitSmartArtNodeText, groupIntoParagraphs as groupIntoParagraphs$1, computeInlineEditorRect, smartArtNodeAtPoint, MIN_TOUCH_TARGET_PX, computeVirtualRange, DEFAULT_VIRTUAL_OVERSCAN, createSyncGate, clearLocalAwareness, validateRoomId, createDepartureChannel, resolveTransportForServerUrl, isMixedContentBlocked, CONNECTION_TIMEOUT_MS, registerCollaborationTeardown, createPresenceProjector, BROADCAST_THROTTLE_MS, sanitizeColor, createWheelStepBuffer, createViewerZoomStore, clampZoomScale, mapEditingWheel, createActiveAnimationGroup, cancelBuildReveal, clearPlaybackTimers, PresentationAnimationController, resolveMediaTimeNodeElementIds, resolveMediaBookmarkTimesMs, advanceMainSequence, playGroup, PRESENTATION_HASH, PRESENTATION_NONCE_KEY, PRESENTATION_CHANNEL_NAME, swapPresentationWindows, PRESENTATION_MESSAGE_ORIGIN, clearAudienceContent, buildPresentationAudienceUrl, resolveAudienceScreenPlacement, placeAudienceWindow, storeAudienceContent, isPresentationSessionMessage, endAudienceDisplay, createPresentationKeyBuffer, acceptsPresentationInput, resolveAutoAdvanceDelayMs, resolveForwardSlideWithZoomReturn, buildZoomTransitionOverride, hasShowSlideAfter, nextShowSlideIndex, previousShowSlideIndex, beginZoomExcursion, createPresenterShowGuard, firstShowSlideIndex, attachPresentationVisibilityPause, presentationEntrySlideIndex, buildMorphTransitionPlan, morphOptionToMode, buildMorphAnimationRules, findInSlides, applyFindReplacements, visibleTemplateElements, createCollaborationLivePatcher, publishLiveInlineText, createPresentationLoadResources, collectMediaElements, resolveMediaElementSource, collectImagePaths, applyImagePathPatches, resolveTableCellImageUrls, resolveTableStyleImageUrls, resolveTextFillBlipUrls, seedRecentColors, resolveAuthoredCustomShowId, buildInitialGuides, readOnlyRecommendation, compatibilityWarningToasts, resolveInitialSlideIndex, resolveAutosaveIntervalMs, shouldWriteAutosaveSnapshot, saveAutosaveSnapshot, autosaveSnapshotMark, updateMasterViewElement, updateElement, masterViewElements, replaceMasterViewElements, addSection, renameSection, deleteSection, moveSectionUp, moveSectionDown, moveSlidesToSection, canMergeShapes, canInteractWithElement, prepareHtml2CanvasClone, slideProgressPercent, slideStatusLabel, EXPORT_ASSEMBLING_PERCENT, EXPORT_DONE_PERCENT, isExportAbortError, resolveImageResolutionScale, applyAcceptSlide, applyAcceptAllSlides, collectUsedFonts, describeFontEmbedding, isMobileViewport, resolveAuthoredSlideRange, mayLeaveSlideShow, buildDeckSaveOptions, resolveSlideSizeSelection, saveDeckWithPassword, shouldProbeAutosaveRecovery, probeAutosaveRecovery, acceptAutosaveRecovery, acknowledgeAutosaveRecovery, discardAutosaveRecovery, shouldLoopContinuously, applyRehearsalTimings, rasterResultToPngBlob, downloadBlob, elementPictureFilename, canEditElementPoints, collectReferencedFontFamilies, resolveGoogleWebfontHref, syncGoogleWebfontStylesheet, selectGoogleWebfontFamilies, fetchGoogleWebfontOutlineBytes, isFeatureEnabled, mapSlideShowStartKey, mapCustomizedEditorKey, isEditorControlTarget, isEditorTextInputTarget, parentSelection, textFontSizePtToPx, stepFontSizePt, textFontSizePxToPt, cycleSelectableElement, createCustomizationController, prepareElementForInsertion, slideSpaceElement, createViewerOptionsStore, observeYDocSlides, LOCAL_SYNC_ORIGIN, readSlidesFromYDoc, shouldRoomSlidesReplaceLoad, reconcileSlidesInYDoc, shouldAutoFollowBroadcaster, detectTouchDevice, detectOrientation, deriveViewportBreakpoints, createTouchGestureRecognizer, isKeyboardOpen, scopeLayoutOptionsToSlide, checkModifyPassword, viewerPreferencesFromViewProperties, DEFAULT_VIEWER_PREFERENCES, viewPropertiesPatchFromPreferences, openPptxFile, readBackstageRecentFile, resolveCollaborationShellEditability, resolveCollaborationShellState, MORPH_CROSSFADE_GROUP_STYLE, MORPH_CROSSFADE_HALF_STYLE, getSlideTransitionAnimations, getFragmentedTransitionDescriptor, SLIDE_TRANSITION_KEYFRAMES, isActionHidden, buildInlineTextCommitPatch, resolveInlineEditAutoFitHeight, resolveInlineEditNormAutofitShrink, setPendingCaretPoint, drillSelectionForDoubleClick, filterInteractableIds, beginShapeAdjustment, buildElementClipboardPayload, contextMenuInspectorAnchor, savedPresentationFileName, exportDeckJson, groupElements, generateElementId, ungroupElements, alignElements, distributeElements, newTableElement, createDefaultChartElement, readViewportMetrics, computeKeyboardInset, planMergeShapes, applyMergeShapesPlan, mapPresentationKey, lastShowSlideIndex, mapPresentationWheel, openPendingPrintWindow, computeColorFilter, filterHiddenSlideIndices, computeSlideIndices, buildPrintDocument, finishPrintWindow, buildPrintHtmlDocument, buildOutlineHtml, buildSlidesHtml, buildNotesHtml, buildHandoutsHtml, createBlankSlide, makeSlideId, buildSlideTemplateSlide, templateSchemeFromTheme, resolveViewportFitOptions, EDITOR_VIEWPORT_FIT, calculateViewportFit, scheduleAutoAdvanceChain, computeEntranceAnimationDelay, createPresentationSessionId, resolveTransitionDurationMs, resolveTransitionSoundAction, runPresentationAction, safeOpenUrl, buildRunProgramNotice, toggleStageElementMedia, resolveOleVerbTarget, downloadDataUrl, createPresenterTimer, createInitialPresentationSnapshot, mergePresentationSnapshot, resetPresenterTimer, presenterElapsed, stepPresenterZoom, togglePresenterTimer, addCommentToList, removeCommentFromList, editCommentInList, toggleCommentResolvedInList, slideSpaceMembers, remapTextToSegments, buildInlineListStylePatch, applyActiveInlineListFormatting, applyListStyleUpdate, setPendingSelectionRestore, applyTextStyleUpdate, toggleSelectionBullets, transformInlineListCase, applyCaseTransformToSegments, transformTextCase, resolveExportCaptureDecision, recordProgressPercent, computeGridSpacingPx as computeGridSpacingPx$1, resolveShowSlideIndexes, groupSlidesBySection, masterViewPseudoSlide, overlayMasterViewInlineSnapshot, overlayInlineTextSnapshot, rasterizeElement, cloneElementForPaste, applyPasteSpecialFormat, buildRasterPictureElement, cloneElementUpdates, assertElementUpdateTarget, prepareElementUpdateBatch, createWriteBackScheduler, observeExternalCollaborationReadiness, resolveHistoryDepth, createBackstagePresentation, buildFieldSubstitutionContext, isEnterableGroup, memberChainAtPoint, findElementPath, drillSelectionForClick, scrollInspectorSectionIntoView, computeScrollDelta, replyToCommentInList, removeTableElementColumn, insertTableElementColumn, removeTableElementRow, insertTableElementRow, setCellText, pickSupportedMimeType, WEBM_MIME_CANDIDATES, fpsToFrameIntervalMs, segmentFrameCount, stopCaptureStream, GIF_POST_CAPTURE_MAX_SIDE, encodeGif, rasterizeElementTiles, placeTileOnPage, PDF_SLIDES_PAGE_WIDTH_PT, PDF_SLIDES_PAGE_HEIGHT_PT, createSnapshotTextPositions, resolvePresentationAction, buildSmartArtPresetData, classifyMediaType, publishLiveGeometry, getDraggedShapeAdjustments, computeMarqueeHitIds, mergeAdditiveSelection, rasterizeElementTiledToCanvas, borrowExternalCollaborationAwareness, observeExternalCollaborationSession, clampGifDimensions, rasterResultToPngDataUrl, shouldConfirmExternalHyperlink, applyResize, lockResizeAspect, snapBoxToGrid, applyMotionPathPreset, bringForward, sendBackward, bringToFront, sendToBack } from 'ooxml-ui/pptx';
3
3
  export { DUOTONE_PRESETS, MOBILE_BREAKPOINT, SLIDE_TRANSITION_KEYFRAMES, TABLET_BREAKPOINT, clearAudienceContent, computeVirtualRange, downloadBlob, getSlideTransitionAnimations, loadAudienceContent, storeAudienceContent } from 'ooxml-ui/pptx';
4
4
  import React17, { createContext, useMemo, useState, useCallback, useEffect, Suspense, useRef, useLayoutEffect, useContext, useSyncExternalStore, useImperativeHandle } from 'react';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -125,7 +125,7 @@ function useYjsProvider({ config: inputConfig }) {
125
125
  }
126
126
  setStatus("connecting");
127
127
  try {
128
- const [Y, { WebrtcProvider }] = await Promise.all([import('yjs'), import('./y-webrtc-F5IA7T5S.mjs')]);
128
+ const [Y, { WebrtcProvider }] = await Promise.all([import('yjs'), import('./y-webrtc-6DZI5KUK.mjs')]);
129
129
  if (generation !== generationRef.current) {
130
130
  return;
131
131
  }
@@ -200,7 +200,7 @@ function useYjsProvider({ config: inputConfig }) {
200
200
  }
201
201
  setStatus("connecting");
202
202
  try {
203
- const [Y, { WebsocketProvider }] = await Promise.all([import('yjs'), import('./y-websocket-VGLBV2HJ.mjs')]);
203
+ const [Y, { WebsocketProvider }] = await Promise.all([import('yjs'), import('./y-websocket-VAKUVRQT.mjs')]);
204
204
  if (generation !== generationRef.current) {
205
205
  return;
206
206
  }
@@ -4455,9 +4455,12 @@ function useLoadContent({
4455
4455
  setIsDirty,
4456
4456
  setIsEncrypted,
4457
4457
  onContentApplied,
4458
- allowExternalImages
4458
+ allowExternalImages,
4459
+ initialSlide
4459
4460
  }) {
4460
4461
  const handlerRef = useRef(null);
4462
+ const initialSlideRef = useRef(initialSlide);
4463
+ initialSlideRef.current = initialSlide;
4461
4464
  const originalBufferRef = useRef(null);
4462
4465
  const renderTokenRef = useRef(0);
4463
4466
  useEffect(() => {
@@ -4466,7 +4469,7 @@ function useLoadContent({
4466
4469
  }
4467
4470
  let cancelled = false;
4468
4471
  const token = ++renderTokenRef.current;
4469
- const handler = new PptxHandler();
4472
+ const handler = new dist_exports.PptxHandler();
4470
4473
  const resources = createPresentationLoadResources(handler);
4471
4474
  const loadBlobUrls = resources.blobUrls;
4472
4475
  (async () => {
@@ -4610,14 +4613,16 @@ function useLoadContent({
4610
4613
  ...parsed.slides.flatMap((slide) => slide.warnings ?? [])
4611
4614
  ])
4612
4615
  );
4613
- setActiveSlideIndex(0);
4616
+ setActiveSlideIndex(
4617
+ resolveInitialSlideIndex(initialSlideRef.current, parsed.slides.length)
4618
+ );
4614
4619
  clearSelection();
4615
4620
  setIsDirty(false);
4616
4621
  history.resetHistory();
4617
4622
  onContentApplied?.();
4618
4623
  } catch (err) {
4619
4624
  if (!cancelled && token === renderTokenRef.current) {
4620
- if (err instanceof EncryptedFileError) {
4625
+ if (err instanceof dist_exports.EncryptedFileError) {
4621
4626
  setIsEncrypted(true);
4622
4627
  } else {
4623
4628
  console.error("[pptx] Failed to load presentation content:", err);
@@ -4742,7 +4747,7 @@ function useTextElementOperations(input) {
4742
4747
  updateSelectedElement
4743
4748
  } = input;
4744
4749
  const liveTextSegments = useCallback(() => {
4745
- if (!selectedElement || !hasTextProperties(selectedElement)) {
4750
+ if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
4746
4751
  return void 0;
4747
4752
  }
4748
4753
  if (selectedElement.id !== inlineEditingElementId) {
@@ -4760,7 +4765,7 @@ function useTextElementOperations(input) {
4760
4765
  }, [selectedElement, inlineEditingElementId, inlineEditingText, inlineEditingSnapshotRef]);
4761
4766
  const updateSelectedTextStyle = useCallback(
4762
4767
  (updates) => {
4763
- if (!selectedElement || !hasTextProperties(selectedElement)) {
4768
+ if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
4764
4769
  return;
4765
4770
  }
4766
4771
  const isLiveEditing = selectedElement.id === inlineEditingElementId;
@@ -4838,7 +4843,7 @@ function useTextElementOperations(input) {
4838
4843
  );
4839
4844
  const toggleSelectedBullets = useCallback(
4840
4845
  (kind) => {
4841
- if (!selectedElement || !hasTextProperties(selectedElement)) {
4846
+ if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
4842
4847
  return;
4843
4848
  }
4844
4849
  const currentSegments = liveTextSegments();
@@ -4889,7 +4894,7 @@ function useTextElementOperations(input) {
4889
4894
  );
4890
4895
  const updateSelectedTextCase = useCallback(
4891
4896
  (mode) => {
4892
- if (!selectedElement || !hasTextProperties(selectedElement)) {
4897
+ if (!selectedElement || !(0, dist_exports.hasTextProperties)(selectedElement)) {
4893
4898
  return;
4894
4899
  }
4895
4900
  const isLiveEditing = selectedElement.id === inlineEditingElementId;
@@ -5041,7 +5046,7 @@ function useElementOperations(input) {
5041
5046
  );
5042
5047
  const updateSelectedShapeStyle = useCallback(
5043
5048
  (updates) => {
5044
- if (!selectedElement || !hasShapeProperties(selectedElement)) {
5049
+ if (!selectedElement || !(0, dist_exports.hasShapeProperties)(selectedElement)) {
5045
5050
  return;
5046
5051
  }
5047
5052
  updateSelectedElement({
@@ -5781,7 +5786,7 @@ function useCanvasInteractions(input) {
5781
5786
  return;
5782
5787
  }
5783
5788
  const el = elementLookup.get(editId);
5784
- if (el && hasTextProperties(el)) {
5789
+ if (el && (0, dist_exports.hasTextProperties)(el)) {
5785
5790
  const reader = inlineEditingReaderRef?.current;
5786
5791
  const read = reader?.elementId === editId ? reader.read() : void 0;
5787
5792
  if (read?.kind === "unsupported") {
@@ -5828,7 +5833,7 @@ function useCanvasInteractions(input) {
5828
5833
  wasEditable.current = canEdit;
5829
5834
  }, [canEdit]);
5830
5835
  const openEquationEditorForElement = (el) => {
5831
- if (!hasTextProperties(el)) {
5836
+ if (!(0, dist_exports.hasTextProperties)(el)) {
5832
5837
  return false;
5833
5838
  }
5834
5839
  const eqSeg = el.textSegments?.find((seg) => seg.equationXml);
@@ -5861,7 +5866,7 @@ function useCanvasInteractions(input) {
5861
5866
  justInteractedRef.current = false;
5862
5867
  } else {
5863
5868
  const el = elementLookup.get(elementId);
5864
- if (el && hasTextProperties(el) && canInteractWithElement(el, "textEdit")) {
5869
+ if (el && (0, dist_exports.hasTextProperties)(el) && canInteractWithElement(el, "textEdit")) {
5865
5870
  if (!openEquationEditorForElement(el)) {
5866
5871
  setPendingCaretPoint(e);
5867
5872
  setInlineEditingElementId(elementId);
@@ -5887,7 +5892,7 @@ function useCanvasInteractions(input) {
5887
5892
  if (openEquationEditorForElement(el)) {
5888
5893
  return;
5889
5894
  }
5890
- if (hasTextProperties(el) && canInteractWithElement(el, "textEdit")) {
5895
+ if ((0, dist_exports.hasTextProperties)(el) && canInteractWithElement(el, "textEdit")) {
5891
5896
  setInlineEditingElementId(elementId);
5892
5897
  setInlineEditingText(el.text ?? "");
5893
5898
  }
@@ -6402,7 +6407,7 @@ function createStructuredElementHandlers(deps) {
6402
6407
  if (!preset) {
6403
6408
  return;
6404
6409
  }
6405
- const defaultPptxAction = elementActionToPptxAction({
6410
+ const defaultPptxAction = (0, dist_exports.elementActionToPptxAction)({
6406
6411
  trigger: "click",
6407
6412
  type: preset.defaultAction
6408
6413
  });
@@ -7040,14 +7045,7 @@ function useSlideManagement(input) {
7040
7045
  if (!src) {
7041
7046
  continue;
7042
7047
  }
7043
- const clone = {
7044
- ...src,
7045
- id: makeSlideId(),
7046
- elements: src.elements.map((el) => ({
7047
- ...el,
7048
- id: `${el.id}-dup-${Math.random().toString(36).slice(2, 6)}`
7049
- }))
7050
- };
7048
+ const clone = { ...(0, dist_exports.duplicateSlide)(src, next.length + 1), id: makeSlideId() };
7051
7049
  next.splice(i + offset + 1, 0, clone);
7052
7050
  offset++;
7053
7051
  }
@@ -7158,7 +7156,7 @@ function createTableMergeHandlers(input) {
7158
7156
  td
7159
7157
  );
7160
7158
  const updates = { tableData: newTableData };
7161
- const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
7159
+ const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
7162
7160
  if (newRawXml) {
7163
7161
  updates.rawXml = newRawXml;
7164
7162
  }
@@ -7192,7 +7190,7 @@ function createTableMergeHandlers(input) {
7192
7190
  td
7193
7191
  );
7194
7192
  const updates = { tableData: newTableData };
7195
- const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
7193
+ const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
7196
7194
  if (newRawXml) {
7197
7195
  updates.rawXml = newRawXml;
7198
7196
  }
@@ -7209,7 +7207,7 @@ function createTableMergeHandlers(input) {
7209
7207
  const td = selectedElement.tableData;
7210
7208
  const newTableData = mergeCells(ts.selectedCells, td);
7211
7209
  const updates = { tableData: newTableData };
7212
- const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
7210
+ const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
7213
7211
  if (newRawXml) {
7214
7212
  updates.rawXml = newRawXml;
7215
7213
  }
@@ -7228,7 +7226,7 @@ function createTableMergeHandlers(input) {
7228
7226
  const td = selectedElement.tableData;
7229
7227
  const newTableData = splitCell(rowIndex, columnIndex, td);
7230
7228
  const updates = { tableData: newTableData };
7231
- const newRawXml = updateMergeAttrsInRawXml(selectedElement, newTableData);
7229
+ const newRawXml = (0, dist_exports.updateMergeAttrsInRawXml)(selectedElement, newTableData);
7232
7230
  if (newRawXml) {
7233
7231
  updates.rawXml = newRawXml;
7234
7232
  }
@@ -7263,7 +7261,7 @@ function createTableStructHandlers(input) {
7263
7261
  updates.tableData = setCellText(el, rowIndex, colIndex, text).tableData;
7264
7262
  }
7265
7263
  if (el.rawXml) {
7266
- const newRawXml = updateCellTextInRawXml(el, rowIndex, colIndex, text);
7264
+ const newRawXml = (0, dist_exports.updateCellTextInRawXml)(el, rowIndex, colIndex, text);
7267
7265
  if (newRawXml) {
7268
7266
  updates.rawXml = newRawXml;
7269
7267
  }
@@ -7287,7 +7285,7 @@ function createTableStructHandlers(input) {
7287
7285
  const { rowIndex, columnIndex: colIndex } = ts;
7288
7286
  const updates = {};
7289
7287
  if (selectedElement.rawXml) {
7290
- const newRawXml = updateCellTextStyleInRawXml(
7288
+ const newRawXml = (0, dist_exports.updateCellTextStyleInRawXml)(
7291
7289
  selectedElement,
7292
7290
  rowIndex,
7293
7291
  colIndex,
@@ -7876,7 +7874,7 @@ function exportAllSlidesToSvg(data, options = {}) {
7876
7874
  continue;
7877
7875
  }
7878
7876
  onProgress?.(processedCount, data.slides.length);
7879
- let svg = SvgExporter.exportSlide(slide, data.width, data.height, svgOptions);
7877
+ let svg = dist_exports.SvgExporter.exportSlide(slide, data.width, data.height, svgOptions);
7880
7878
  if (embedFonts && fontFaces?.length) {
7881
7879
  svg = injectFontFaces(svg, fontFaces);
7882
7880
  }
@@ -8465,10 +8463,10 @@ async function applyThemeEditorEdit(input, { colorScheme, fontScheme, name }) {
8465
8463
  return;
8466
8464
  }
8467
8465
  await handler.applyTheme(colorScheme, fontScheme, name);
8468
- const previousMap = theme?.colorScheme ? buildThemeColorMap(theme.colorScheme) : {};
8466
+ const previousMap = theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(theme.colorScheme) : {};
8469
8467
  bumpHistory();
8470
8468
  setSlides(
8471
- (slides) => applyThemeToData(
8469
+ (slides) => (0, dist_exports.applyThemeToData)(
8472
8470
  { slides, theme, themeColorMap: previousMap },
8473
8471
  colorScheme,
8474
8472
  fontScheme,
@@ -8479,8 +8477,8 @@ async function applyThemeEditorEdit(input, { colorScheme, fontScheme, name }) {
8479
8477
  (prev) => Object.fromEntries(
8480
8478
  Object.entries(prev).map(([id, elements]) => [
8481
8479
  id,
8482
- reResolveElementFonts(
8483
- reResolveElementColors(elements, previousMap, colorScheme),
8480
+ (0, dist_exports.reResolveElementFonts)(
8481
+ (0, dist_exports.reResolveElementColors)(elements, previousMap, colorScheme),
8484
8482
  theme?.fontScheme,
8485
8483
  fontScheme
8486
8484
  )
@@ -8538,13 +8536,13 @@ function useThemeHandlers(input) {
8538
8536
  return;
8539
8537
  }
8540
8538
  await handler.updateThemeColorScheme(colorScheme);
8541
- const previousMap = theme?.colorScheme ? buildThemeColorMap(theme.colorScheme) : {};
8542
- setSlides((prev) => reResolveSlideColors(prev, previousMap, colorScheme));
8539
+ const previousMap = theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(theme.colorScheme) : {};
8540
+ setSlides((prev) => (0, dist_exports.reResolveSlideColors)(prev, previousMap, colorScheme));
8543
8541
  if (Object.keys(templateElementsBySlideId).length > 0) {
8544
8542
  setTemplateElementsBySlideId((prev) => {
8545
8543
  const next = {};
8546
8544
  for (const [slideId, elements] of Object.entries(prev)) {
8547
- next[slideId] = reResolveElementColors(elements, previousMap, colorScheme);
8545
+ next[slideId] = (0, dist_exports.reResolveElementColors)(elements, previousMap, colorScheme);
8548
8546
  }
8549
8547
  return next;
8550
8548
  });
@@ -8655,7 +8653,7 @@ function useThemeSwitching(input) {
8655
8653
  }
8656
8654
  try {
8657
8655
  await handler.applyTheme(preset.colorScheme, preset.fontScheme, preset.name);
8658
- const newData = applyThemeToData(data, preset.colorScheme, preset.fontScheme, preset.name);
8656
+ const newData = (0, dist_exports.applyThemeToData)(data, preset.colorScheme, preset.fontScheme, preset.name);
8659
8657
  onDataChange(newData);
8660
8658
  onThemeChanged?.(preset);
8661
8659
  } catch (error) {
@@ -8672,7 +8670,7 @@ function useThemeSwitching(input) {
8672
8670
  }
8673
8671
  try {
8674
8672
  await handler.applyTheme(colorScheme, fontScheme ?? {}, themeName);
8675
- const newData = applyThemeToData(data, colorScheme, fontScheme, themeName);
8673
+ const newData = (0, dist_exports.applyThemeToData)(data, colorScheme, fontScheme, themeName);
8676
8674
  onDataChange(newData);
8677
8675
  } catch (error) {
8678
8676
  console.error("Failed to switch to custom theme:", error);
@@ -8684,12 +8682,12 @@ function useThemeSwitching(input) {
8684
8682
  if (!data?.theme?.colorScheme) {
8685
8683
  return void 0;
8686
8684
  }
8687
- return THEME_PRESETS.find(
8688
- (p) => themeColorSchemesEqual(data.theme?.colorScheme, p.colorScheme)
8685
+ return dist_exports.THEME_PRESETS.find(
8686
+ (p) => (0, dist_exports.themeColorSchemesEqual)(data.theme?.colorScheme, p.colorScheme)
8689
8687
  );
8690
8688
  }, [data?.theme?.colorScheme]);
8691
8689
  return {
8692
- presets: THEME_PRESETS,
8690
+ presets: dist_exports.THEME_PRESETS,
8693
8691
  switchToPreset,
8694
8692
  switchToCustom,
8695
8693
  currentPreset
@@ -8766,7 +8764,7 @@ function usePropertyHandlers(input) {
8766
8764
  }
8767
8765
  try {
8768
8766
  const ab = await file.arrayBuffer();
8769
- const h = new PptxHandler();
8767
+ const h = new dist_exports.PptxHandler();
8770
8768
  const other = await h.load(ab);
8771
8769
  if (!other) {
8772
8770
  return;
@@ -9374,7 +9372,7 @@ function overlayPendingInlineEdit(document2, elementId, text, snapshot, transfor
9374
9372
  (slide) => !elementId ? slide : {
9375
9373
  ...slide,
9376
9374
  elements: slide.elements.map(
9377
- (element) => element.id === elementId && hasTextProperties(element) ? {
9375
+ (element) => element.id === elementId && (0, dist_exports.hasTextProperties)(element) ? {
9378
9376
  ...element,
9379
9377
  text,
9380
9378
  textSegments: remapTextToSegments(
@@ -9460,7 +9458,7 @@ function useSerialize(input) {
9460
9458
  const pptxGuides = guides.map((g) => ({
9461
9459
  id: g.id,
9462
9460
  orientation: g.axis === "h" ? "horz" : "vert",
9463
- positionEmu: guidePxToEmu(g.position)
9461
+ positionEmu: (0, dist_exports.guidePxToEmu)(g.position)
9464
9462
  }));
9465
9463
  return {
9466
9464
  ...slide,
@@ -9771,10 +9769,10 @@ function useCanvasImagePaste(input) {
9771
9769
  function formatPatchFor(element, format) {
9772
9770
  const updated = applyFormatToElement(element, format);
9773
9771
  const updates = {};
9774
- if (hasShapeProperties(updated)) {
9772
+ if ((0, dist_exports.hasShapeProperties)(updated)) {
9775
9773
  updates.shapeStyle = updated.shapeStyle;
9776
9774
  }
9777
- if (hasTextProperties(updated)) {
9775
+ if ((0, dist_exports.hasTextProperties)(updated)) {
9778
9776
  updates.textStyle = updated.textStyle;
9779
9777
  }
9780
9778
  return updates;
@@ -10483,6 +10481,7 @@ function useContentLifecycle(input) {
10483
10481
  password,
10484
10482
  onContentApplied,
10485
10483
  allowExternalImages,
10484
+ initialSlide,
10486
10485
  setReadOnlyRecommendation,
10487
10486
  setModifyVerifier,
10488
10487
  setCompatToasts
@@ -10532,7 +10531,8 @@ function useContentLifecycle(input) {
10532
10531
  setIsDirty: state.setIsDirty,
10533
10532
  setIsEncrypted: setIsEncryptedDialogOpen,
10534
10533
  onContentApplied,
10535
- allowExternalImages
10534
+ allowExternalImages,
10535
+ initialSlide
10536
10536
  });
10537
10537
  useEffect(() => {
10538
10538
  actionSoundHandlerRef.current = handlerRef.current;
@@ -10879,7 +10879,7 @@ function useKeyboardShortcutWiring(input) {
10879
10879
  }
10880
10880
  function stepSelectedFontSize(state, ops, direction) {
10881
10881
  const selected = state.selectedElement;
10882
- const currentPx = (selected && hasTextProperties(selected) ? selected.textStyle?.fontSize : void 0) ?? textFontSizePtToPx(18);
10882
+ const currentPx = (selected && (0, dist_exports.hasTextProperties)(selected) ? selected.textStyle?.fontSize : void 0) ?? textFontSizePtToPx(18);
10883
10883
  const nextPt = stepFontSizePt(textFontSizePxToPt(currentPx), direction);
10884
10884
  ops.updateSelectedTextStyle({ fontSize: textFontSizePtToPx(nextPt) });
10885
10885
  }
@@ -10946,6 +10946,7 @@ function useViewerIntegration(input) {
10946
10946
  autosaveAllowed = true,
10947
10947
  autosaveIntervalMs,
10948
10948
  allowExternalImages,
10949
+ initialSlide,
10949
10950
  setReadOnlyRecommendation,
10950
10951
  setModifyVerifier,
10951
10952
  setCompatToasts,
@@ -11021,6 +11022,7 @@ function useViewerIntegration(input) {
11021
11022
  password: dialogs.presentationPassword ?? void 0,
11022
11023
  onContentApplied: () => setLoadVersion((v) => v + 1),
11023
11024
  allowExternalImages,
11025
+ initialSlide,
11024
11026
  setReadOnlyRecommendation,
11025
11027
  setModifyVerifier,
11026
11028
  setCompatToasts
@@ -12836,7 +12838,7 @@ function useViewerBuildingBlocksCore(input) {
12836
12838
  documentGridSpacing: state.viewProperties?.gridSpacing
12837
12839
  });
12838
12840
  const themeColorMap = useMemo(
12839
- () => state.theme?.colorScheme ? buildThemeColorMap(state.theme.colorScheme) : void 0,
12841
+ () => state.theme?.colorScheme ? (0, dist_exports.buildThemeColorMap)(state.theme.colorScheme) : void 0,
12840
12842
  [state.theme?.colorScheme]
12841
12843
  );
12842
12844
  const { presentation, annotations, actionSoundHandlerRef, setExitModeHandler } = usePresentationSetup({
@@ -13615,7 +13617,7 @@ function renderImg(el, style, filter, alt, opacity) {
13615
13617
  ] });
13616
13618
  }
13617
13619
  const colorWash = getImageColorWashStyle(
13618
- isImageLikeElement(el) ? el.imageEffects?.colorWash : void 0
13620
+ (0, dist_exports.isImageLikeElement)(el) ? el.imageEffects?.colorWash : void 0
13619
13621
  );
13620
13622
  const clrChange = "imageEffects" in el ? el.imageEffects?.clrChange : void 0;
13621
13623
  const duotoneColors = getDuotoneColors(el);
@@ -14504,7 +14506,7 @@ var ConnectorElementRenderer = React17.memo(
14504
14506
  animationState,
14505
14507
  textStyleOverrideCss
14506
14508
  }) {
14507
- const shapeEl = hasShapeProperties(el) ? el : void 0;
14509
+ const shapeEl = (0, dist_exports.hasShapeProperties)(el) ? el : void 0;
14508
14510
  const viewWidth = Math.max(el.width, 0);
14509
14511
  const viewHeight = Math.max(el.height, 0);
14510
14512
  const svgWidth = Math.max(el.width, 1);
@@ -14528,7 +14530,7 @@ var ConnectorElementRenderer = React17.memo(
14528
14530
  const compoundOffsets = getCompoundLineOffsets(compoundLine, strokeWidth);
14529
14531
  const compoundWidths = getCompoundLineWidths(compoundLine, strokeWidth);
14530
14532
  const strokeCap = svgLineCap(ss?.lineCap);
14531
- const textEl = hasTextProperties(el) ? el : void 0;
14533
+ const textEl = (0, dist_exports.hasTextProperties)(el) ? el : void 0;
14532
14534
  const connectorText = textEl?.text?.trim() ?? "";
14533
14535
  const connectorTextSegments = textEl?.textSegments;
14534
14536
  const connectorTextStyle = textEl?.textStyle;
@@ -14814,7 +14816,7 @@ function getContainerStyle({
14814
14816
  has3DExtrusion,
14815
14817
  templateEditing
14816
14818
  }) {
14817
- const ss = hasShapeProperties(el) ? el.shapeStyle : void 0;
14819
+ const ss = (0, dist_exports.hasShapeProperties)(el) ? el.shapeStyle : void 0;
14818
14820
  const isPicture = el.type === "picture" || el.type === "image";
14819
14821
  const blurGrowVisible = Boolean(
14820
14822
  ss?.blurGrow && typeof ss.blurRadius === "number" && ss.blurRadius > 0
@@ -14863,7 +14865,7 @@ function getContainerStyle({
14863
14865
  };
14864
14866
  }
14865
14867
  function shapeParams(element) {
14866
- const style = hasShapeProperties(element) ? element.shapeStyle : void 0;
14868
+ const style = (0, dist_exports.hasShapeProperties)(element) ? element.shapeStyle : void 0;
14867
14869
  const strokeWidth = paintedStrokeWidth(style);
14868
14870
  const strokeColor = normalizeHexColor(style?.strokeColor, DEFAULT_STROKE_COLOR);
14869
14871
  const fillColor = normalizeHexColor(style?.fillColor, DEFAULT_FILL_COLOR);
@@ -14972,7 +14974,7 @@ function ShapeEffectOverlay({
14972
14974
  const fillOverlayStyle = overlay ? {
14973
14975
  position: "absolute",
14974
14976
  inset: 0,
14975
- ...isImageLikeElement(element) ? getImageSurfaceMaskStyle(element) : {},
14977
+ ...(0, dist_exports.isImageLikeElement)(element) ? getImageSurfaceMaskStyle(element) : {},
14976
14978
  background: overlay.color,
14977
14979
  mixBlendMode: overlay.blendMode,
14978
14980
  pointerEvents: "none"
@@ -15172,7 +15174,7 @@ var ElementRenderer = React17.memo(
15172
15174
  const backgroundAnimationState = presentationElementStates?.get(`${el.id}::pptx-bg`);
15173
15175
  const visualAnimationState = backgroundAnimationState ?? animationState;
15174
15176
  const isTxt = isEditableTextElement(el) && allow.textEditable;
15175
- const txtSE = hasTextProperties(el) ? el.textStyle : void 0;
15177
+ const txtSE = (0, dist_exports.hasTextProperties)(el) ? el.textStyle : void 0;
15176
15178
  const textStyleOverrideCss = buildTextStyleOverrideCss(el.id, visualAnimationState?.textStyle);
15177
15179
  const ss = getShapeVisualStyle(
15178
15180
  el,
@@ -15196,7 +15198,7 @@ var ElementRenderer = React17.memo(
15196
15198
  );
15197
15199
  const isModel3D = el.type === "model3d";
15198
15200
  const isConn = isConnectorOrLineElement(el);
15199
- const shapeStyle3d = hasShapeProperties(el) ? el.shapeStyle : void 0;
15201
+ const shapeStyle3d = (0, dist_exports.hasShapeProperties)(el) ? el.shapeStyle : void 0;
15200
15202
  const extrusionData = useMemo(
15201
15203
  () => build3DExtrusionData(shapeStyle3d?.shape3d, shapeStyle3d?.scene3d, fc, el.width, el.height),
15202
15204
  [shapeStyle3d?.shape3d, shapeStyle3d?.scene3d, fc, el.width, el.height]
@@ -16018,7 +16020,7 @@ function InlineTextEditor({
16018
16020
  seedRef.current = {
16019
16021
  initialText,
16020
16022
  hasRichSegments: Boolean(
16021
- hasTextProperties(element) && element.textSegments && element.textSegments.length > 0
16023
+ (0, dist_exports.hasTextProperties)(element) && element.textSegments && element.textSegments.length > 0
16022
16024
  )
16023
16025
  };
16024
16026
  }
@@ -16096,7 +16098,7 @@ function InlineTextEditor({
16096
16098
  transformOrigin: warpStyle?.transformOrigin || "center"
16097
16099
  };
16098
16100
  const nextInlineStyleValue = (property) => {
16099
- if (!hasTextProperties(element)) {
16101
+ if (!(0, dist_exports.hasTextProperties)(element)) {
16100
16102
  return true;
16101
16103
  }
16102
16104
  const result = getInlineEditorSelectionResult(element.textSegments);
@@ -16183,7 +16185,7 @@ function FailedToLoad() {
16183
16185
  var LazyModel3DScene = React17.lazy(
16184
16186
  async () => {
16185
16187
  try {
16186
- return await import('./Model3DScene-2V2GQ6FY.mjs');
16188
+ return await import('./Model3DScene-EZDCI7TT.mjs');
16187
16189
  } catch {
16188
16190
  return { default: FailedToLoad };
16189
16191
  }
@@ -16264,7 +16266,7 @@ function Model3DRenderer({ element, width, height, interactive }) {
16264
16266
  const [threeAvailable, setThreeAvailable] = useState(null);
16265
16267
  useEffect(() => {
16266
16268
  let cancelled = false;
16267
- import('./three.module-A6ACXOES.mjs').then(() => {
16269
+ import('./three.module-2R4ADL7W.mjs').then(() => {
16268
16270
  if (!cancelled) {
16269
16271
  setThreeAvailable(true);
16270
16272
  }
@@ -17109,7 +17111,7 @@ function SmartArtRendererImpl({
17109
17111
  if (!onUpdateElement || !shouldCommitSmartArtNodeText(smartArtData, nodeId, text)) {
17110
17112
  return;
17111
17113
  }
17112
- const updated = updateSmartArtNodeText(smartArtData, nodeId, text);
17114
+ const updated = (0, dist_exports.updateSmartArtNodeText)(smartArtData, nodeId, text);
17113
17115
  const box = { width: element.width, height: element.height };
17114
17116
  const reflowed = rebuildDrawingShapesIfCleared(
17115
17117
  updated,
@@ -17125,7 +17127,7 @@ function SmartArtRendererImpl({
17125
17127
  if (!onUpdateElement) {
17126
17128
  return;
17127
17129
  }
17128
- const next = setSmartArtNodeStyle(smartArtData, nodeId, { fillColor: fill });
17130
+ const next = (0, dist_exports.setSmartArtNodeStyle)(smartArtData, nodeId, { fillColor: fill });
17129
17131
  if (next !== smartArtData) {
17130
17132
  const box = { width: element.width, height: element.height };
17131
17133
  const reflowed = rebuildDrawingShapesIfCleared(
@@ -17360,7 +17362,7 @@ function getSegmentTspanProps(segment, element, fallbackColor) {
17360
17362
  fontSize: s.fontSize ?? element.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE,
17361
17363
  fontWeight: s.bold ? 700 : 400,
17362
17364
  fontStyle: s.italic ? "italic" : void 0,
17363
- fontFamily: s.fontFamily || element.textStyle?.fontFamily ? getSubstituteFontFamily(s.fontFamily || element.textStyle?.fontFamily || "") : DEFAULT_FONT_FAMILY,
17365
+ fontFamily: s.fontFamily || element.textStyle?.fontFamily ? (0, dist_exports.getSubstituteFontFamily)(s.fontFamily || element.textStyle?.fontFamily || "") : DEFAULT_FONT_FAMILY,
17364
17366
  textDecoration: decos.length > 0 ? decos.join(" ") : void 0
17365
17367
  };
17366
17368
  }
@@ -17368,7 +17370,7 @@ function resolveSegmentFont(segment, element) {
17368
17370
  const s = segment.style || {};
17369
17371
  const family = s.fontFamily || element.textStyle?.fontFamily;
17370
17372
  return {
17371
- fontFamily: family ? getSubstituteFontFamily(family) : DEFAULT_FONT_FAMILY,
17373
+ fontFamily: family ? (0, dist_exports.getSubstituteFontFamily)(family) : DEFAULT_FONT_FAMILY,
17372
17374
  fontSizePx: s.fontSize ?? element.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE,
17373
17375
  bold: s.bold ?? element.textStyle?.bold,
17374
17376
  italic: s.italic ?? element.textStyle?.italic
@@ -17435,7 +17437,7 @@ function WarpedText({
17435
17437
  fallbackColor,
17436
17438
  fieldContext
17437
17439
  }) {
17438
- if (!hasTextProperties(element)) {
17440
+ if (!(0, dist_exports.hasTextProperties)(element)) {
17439
17441
  return null;
17440
17442
  }
17441
17443
  const textEl = element;
@@ -17454,7 +17456,7 @@ function WarpedText({
17454
17456
  const align = textEl.textStyle?.align ?? "center";
17455
17457
  const { startOffset, textAnchor } = getAlignmentProps(align);
17456
17458
  const baseFontSize = textEl.textStyle?.fontSize ?? DEFAULT_TEXT_FONT_SIZE;
17457
- const baseFontFamily = textEl.textStyle?.fontFamily ? getSubstituteFontFamily(textEl.textStyle.fontFamily) : DEFAULT_FONT_FAMILY;
17459
+ const baseFontFamily = textEl.textStyle?.fontFamily ? (0, dist_exports.getSubstituteFontFamily)(textEl.textStyle.fontFamily) : DEFAULT_FONT_FAMILY;
17458
17460
  const baseFill = normalizeHexColor(textEl.textStyle?.color, fallbackColor);
17459
17461
  if (hasGlyphEnvelope(preset)) {
17460
17462
  const perLine = buildGlyphEnvelopeBlock(
@@ -17625,9 +17627,9 @@ function renderTextElementBody(options) {
17625
17627
  const isLinkedTextBox$1 = isLinkedTextBox(el);
17626
17628
  const linkedSegments = getOverflowSegments(el, slideElements);
17627
17629
  const useSvgWarp = shouldUseSvgWarp(
17628
- hasTextProperties(el) ? el.textStyle?.textWarpPreset : void 0
17630
+ (0, dist_exports.hasTextProperties)(el) ? el.textStyle?.textWarpPreset : void 0
17629
17631
  );
17630
- const scene3dStyle = hasTextProperties(el) ? buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height }) : void 0;
17632
+ const scene3dStyle = (0, dist_exports.hasTextProperties)(el) ? buildTextBody3DSceneStyle(el.textStyle, { width: el.width, height: el.height }) : void 0;
17631
17633
  const rotationTransform = getTextBodyRotationTransform(el);
17632
17634
  const composedTransform = [rotationTransform, getTextCompensationTransform(el), scene3dStyle?.transform].filter(Boolean).join(" ") || void 0;
17633
17635
  const transformStyle = {
@@ -18093,7 +18095,7 @@ function renderBody(options) {
18093
18095
  onPlayStateChange: handleMediaPlayStateChange
18094
18096
  });
18095
18097
  }
18096
- if (doInk && isInkElement(el)) {
18098
+ if (doInk && (0, dist_exports.isInkElement)(el)) {
18097
18099
  return renderInk(el, {
18098
18100
  replay: isPresentationPassive,
18099
18101
  pressureSensitive: true
@@ -18137,7 +18139,7 @@ function defaultTextColorForFill(fillColor) {
18137
18139
  return luminance > 0.179 ? DEFAULT_TEXT_COLOR : "#ffffff";
18138
18140
  }
18139
18141
  function getStaticElementVisualState(element, parentGroupFill) {
18140
- const style = hasShapeProperties(element) ? element.shapeStyle : void 0;
18142
+ const style = (0, dist_exports.hasShapeProperties)(element) ? element.shapeStyle : void 0;
18141
18143
  const hasFill = style?.fillColor !== void 0 && style.fillColor !== "transparent" || Boolean(buildCssGradientFromShapeStyle(style) || style?.fillGradient) || style?.fillMode === "pattern" && Boolean(style.fillPatternPreset);
18142
18144
  const fill = normalizeHexColor(style?.fillColor, DEFAULT_FILL_COLOR);
18143
18145
  const strokeWidth = paintedStrokeWidth(style);
@@ -18157,8 +18159,8 @@ function getStaticElementVisualState(element, parentGroupFill) {
18157
18159
  element.type === "shape" && hasFill ? defaultTextColorForFill(fill) : DEFAULT_TEXT_COLOR
18158
18160
  );
18159
18161
  const isImage = element.type === "picture" || element.type === "image";
18160
- const letsTextOverflow = hasTextProperties(element) && element.textStyle?.autoFitMode === "shrink" && (element.type === "text" || element.locks?.txBox === true);
18161
- const shapeType = hasShapeProperties(element) ? element.shapeType : void 0;
18162
+ const letsTextOverflow = (0, dist_exports.hasTextProperties)(element) && element.textStyle?.autoFitMode === "shrink" && (element.type === "text" || element.locks?.txBox === true);
18163
+ const shapeType = (0, dist_exports.hasShapeProperties)(element) ? element.shapeType : void 0;
18162
18164
  const isCallout = isWedgeCalloutPresetShape(shapeType) || String(shapeType ?? "").toLowerCase().includes("callout");
18163
18165
  return {
18164
18166
  hasFill,
@@ -18303,7 +18305,7 @@ function StaticElementRendererImpl({
18303
18305
  isEditing: false,
18304
18306
  editText: "",
18305
18307
  spellCheck: false,
18306
- txtSE: hasTextProperties(element) ? element.textStyle : void 0,
18308
+ txtSE: (0, dist_exports.hasTextProperties)(element) ? element.textStyle : void 0,
18307
18309
  txtS: textStyle,
18308
18310
  vecShape: renderVectorShape(
18309
18311
  element,
Binary file
Binary file