pptx-react-viewer 2.1.0 → 2.2.1

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 (139) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AiChatPanel-VCCVHAAI.js → AiChatPanel-O4NYWO3D.js} +24 -24
  3. package/dist/AiChatPanel-O4NYWO3D.js.br +0 -0
  4. package/dist/AiChatPanel-O4NYWO3D.js.gz +0 -0
  5. package/dist/{AiChatPanel-RFBZWMUE.mjs → AiChatPanel-XRKEPXAM.mjs} +5 -5
  6. package/dist/AiChatPanel-XRKEPXAM.mjs.br +0 -0
  7. package/dist/AiChatPanel-XRKEPXAM.mjs.gz +0 -0
  8. package/dist/{Model3DScene-RQIGSYGQ.js → Model3DScene-HYE6HA2C.js} +3 -3
  9. package/dist/{Model3DScene-RQIGSYGQ.js.br → Model3DScene-HYE6HA2C.js.br} +0 -0
  10. package/dist/Model3DScene-HYE6HA2C.js.gz +0 -0
  11. package/dist/{Model3DScene-2M6HVWTE.mjs → Model3DScene-JN5F5C4Z.mjs} +2 -2
  12. package/dist/Model3DScene-JN5F5C4Z.mjs.br +0 -0
  13. package/dist/Model3DScene-JN5F5C4Z.mjs.gz +0 -0
  14. package/dist/{SurfaceChart3DScene-2FVASQGC.js → SurfaceChart3DScene-FDJ6LC4E.js} +3 -3
  15. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.br +0 -0
  16. package/dist/SurfaceChart3DScene-FDJ6LC4E.js.gz +0 -0
  17. package/dist/{SurfaceChart3DScene-EGMWY4CZ.mjs → SurfaceChart3DScene-V7P3LQVV.mjs} +2 -2
  18. package/dist/{SurfaceChart3DScene-EGMWY4CZ.mjs.br → SurfaceChart3DScene-V7P3LQVV.mjs.br} +0 -0
  19. package/dist/SurfaceChart3DScene-V7P3LQVV.mjs.gz +0 -0
  20. package/dist/{chunk-46Z6MNRS.js → chunk-2QHCOESN.js} +137 -42
  21. package/dist/chunk-2QHCOESN.js.br +0 -0
  22. package/dist/chunk-2QHCOESN.js.gz +0 -0
  23. package/dist/{chunk-LDF77JJD.js → chunk-2U243ZEP.js} +248 -248
  24. package/dist/chunk-2U243ZEP.js.br +0 -0
  25. package/dist/chunk-2U243ZEP.js.gz +0 -0
  26. package/dist/{chunk-27XBWVO5.mjs → chunk-6G6S7PEI.mjs} +95 -2
  27. package/dist/chunk-6G6S7PEI.mjs.br +0 -0
  28. package/dist/{chunk-27XBWVO5.mjs.gz → chunk-6G6S7PEI.mjs.gz} +0 -0
  29. package/dist/{chunk-NGE7YQTF.mjs → chunk-7NSLKNCT.mjs} +68 -74
  30. package/dist/chunk-7NSLKNCT.mjs.br +0 -0
  31. package/dist/chunk-7NSLKNCT.mjs.gz +0 -0
  32. package/dist/{chunk-BHVCED34.mjs → chunk-I2HF7ZPO.mjs} +1 -1
  33. package/dist/chunk-I2HF7ZPO.mjs.br +0 -0
  34. package/dist/chunk-I2HF7ZPO.mjs.gz +0 -0
  35. package/dist/{chunk-ZRY7NLKS.js → chunk-K2AW5UXT.js} +375 -381
  36. package/dist/chunk-K2AW5UXT.js.br +0 -0
  37. package/dist/chunk-K2AW5UXT.js.gz +0 -0
  38. package/dist/{chunk-7DQHWPIB.mjs → chunk-O75FHZQJ.mjs} +4 -4
  39. package/dist/chunk-O75FHZQJ.mjs.br +0 -0
  40. package/dist/chunk-O75FHZQJ.mjs.gz +0 -0
  41. package/dist/{chunk-6YXLGMTN.mjs → chunk-PE2I5L6R.mjs} +27 -12
  42. package/dist/chunk-PE2I5L6R.mjs.br +0 -0
  43. package/dist/{chunk-6YXLGMTN.mjs.gz → chunk-PE2I5L6R.mjs.gz} +0 -0
  44. package/dist/{chunk-2X72MOPZ.mjs → chunk-PZTPX3HK.mjs} +10 -1
  45. package/dist/chunk-PZTPX3HK.mjs.br +0 -0
  46. package/dist/chunk-PZTPX3HK.mjs.gz +0 -0
  47. package/dist/{chunk-VHO53ZXZ.js → chunk-QULJW7LU.js} +1190 -917
  48. package/dist/chunk-QULJW7LU.js.br +0 -0
  49. package/dist/chunk-QULJW7LU.js.gz +0 -0
  50. package/dist/{chunk-CLNGAVNH.js → chunk-R2H3FHK6.js} +27 -12
  51. package/dist/chunk-R2H3FHK6.js.br +0 -0
  52. package/dist/{chunk-CLNGAVNH.js.gz → chunk-R2H3FHK6.js.gz} +0 -0
  53. package/dist/{chunk-Y4OSELBT.mjs → chunk-RYHBWTPI.mjs} +350 -77
  54. package/dist/chunk-RYHBWTPI.mjs.br +0 -0
  55. package/dist/chunk-RYHBWTPI.mjs.gz +0 -0
  56. package/dist/{chunk-SYPHGLIB.js → chunk-XJTWUXXC.js} +3 -3
  57. package/dist/chunk-XJTWUXXC.js.br +0 -0
  58. package/dist/chunk-XJTWUXXC.js.gz +0 -0
  59. package/dist/{chunk-CUUYYYC5.js → chunk-YIFO3WQO.js} +10 -1
  60. package/dist/chunk-YIFO3WQO.js.br +0 -0
  61. package/dist/chunk-YIFO3WQO.js.gz +0 -0
  62. package/dist/{dist-J6PC54PZ.mjs → dist-VEWYRBTB.mjs} +1 -1
  63. package/dist/dist-VEWYRBTB.mjs.br +0 -0
  64. package/dist/dist-VEWYRBTB.mjs.gz +0 -0
  65. package/dist/{dist-4LUVI3SW.js → dist-ZCJLIRYG.js} +568 -568
  66. package/dist/dist-ZCJLIRYG.js.br +0 -0
  67. package/dist/dist-ZCJLIRYG.js.gz +0 -0
  68. package/dist/i18n.js +4 -4
  69. package/dist/i18n.js.br +0 -0
  70. package/dist/i18n.js.gz +0 -0
  71. package/dist/i18n.mjs +1 -1
  72. package/dist/i18n.mjs.br +0 -0
  73. package/dist/i18n.mjs.gz +0 -0
  74. package/dist/{index-nAyIdGqF.d.ts → index-CDCSXtK3.d.ts} +32 -16
  75. package/dist/index-CDCSXtK3.d.ts.map +1 -0
  76. package/dist/index.js +37 -37
  77. package/dist/index.js.br +0 -0
  78. package/dist/index.js.gz +0 -0
  79. package/dist/index.mjs +7 -7
  80. package/dist/index.mjs.br +0 -0
  81. package/dist/index.mjs.gz +0 -0
  82. package/dist/internals.d.ts +42 -14
  83. package/dist/internals.d.ts.map +1 -1
  84. package/dist/internals.js +80 -80
  85. package/dist/internals.js.br +0 -0
  86. package/dist/internals.js.gz +0 -0
  87. package/dist/internals.mjs +5 -5
  88. package/dist/internals.mjs.br +0 -0
  89. package/dist/internals.mjs.gz +0 -0
  90. package/dist/pptx-viewer.css +1 -1
  91. package/dist/pptx-viewer.css.br +0 -0
  92. package/dist/pptx-viewer.css.gz +0 -0
  93. package/dist/viewer/index.js +23 -23
  94. package/dist/viewer/index.js.br +0 -0
  95. package/dist/viewer/index.js.gz +0 -0
  96. package/dist/viewer/index.mjs +7 -7
  97. package/dist/viewer/index.mjs.br +0 -0
  98. package/dist/viewer/index.mjs.gz +0 -0
  99. package/package.json +1 -1
  100. package/dist/AiChatPanel-RFBZWMUE.mjs.br +0 -0
  101. package/dist/AiChatPanel-RFBZWMUE.mjs.gz +0 -0
  102. package/dist/AiChatPanel-VCCVHAAI.js.br +0 -0
  103. package/dist/AiChatPanel-VCCVHAAI.js.gz +0 -0
  104. package/dist/Model3DScene-2M6HVWTE.mjs.br +0 -0
  105. package/dist/Model3DScene-2M6HVWTE.mjs.gz +0 -0
  106. package/dist/Model3DScene-RQIGSYGQ.js.gz +0 -0
  107. package/dist/SurfaceChart3DScene-2FVASQGC.js.br +0 -0
  108. package/dist/SurfaceChart3DScene-2FVASQGC.js.gz +0 -0
  109. package/dist/SurfaceChart3DScene-EGMWY4CZ.mjs.gz +0 -0
  110. package/dist/chunk-27XBWVO5.mjs.br +0 -0
  111. package/dist/chunk-2X72MOPZ.mjs.br +0 -0
  112. package/dist/chunk-2X72MOPZ.mjs.gz +0 -0
  113. package/dist/chunk-46Z6MNRS.js.br +0 -0
  114. package/dist/chunk-46Z6MNRS.js.gz +0 -0
  115. package/dist/chunk-6YXLGMTN.mjs.br +0 -0
  116. package/dist/chunk-7DQHWPIB.mjs.br +0 -0
  117. package/dist/chunk-7DQHWPIB.mjs.gz +0 -0
  118. package/dist/chunk-BHVCED34.mjs.br +0 -0
  119. package/dist/chunk-BHVCED34.mjs.gz +0 -0
  120. package/dist/chunk-CLNGAVNH.js.br +0 -0
  121. package/dist/chunk-CUUYYYC5.js.br +0 -0
  122. package/dist/chunk-CUUYYYC5.js.gz +0 -0
  123. package/dist/chunk-LDF77JJD.js.br +0 -0
  124. package/dist/chunk-LDF77JJD.js.gz +0 -0
  125. package/dist/chunk-NGE7YQTF.mjs.br +0 -0
  126. package/dist/chunk-NGE7YQTF.mjs.gz +0 -0
  127. package/dist/chunk-SYPHGLIB.js.br +0 -0
  128. package/dist/chunk-SYPHGLIB.js.gz +0 -0
  129. package/dist/chunk-VHO53ZXZ.js.br +0 -0
  130. package/dist/chunk-VHO53ZXZ.js.gz +0 -0
  131. package/dist/chunk-Y4OSELBT.mjs.br +0 -0
  132. package/dist/chunk-Y4OSELBT.mjs.gz +0 -0
  133. package/dist/chunk-ZRY7NLKS.js.br +0 -0
  134. package/dist/chunk-ZRY7NLKS.js.gz +0 -0
  135. package/dist/dist-4LUVI3SW.js.br +0 -0
  136. package/dist/dist-4LUVI3SW.js.gz +0 -0
  137. package/dist/dist-J6PC54PZ.mjs.br +0 -0
  138. package/dist/dist-J6PC54PZ.mjs.gz +0 -0
  139. package/dist/index-nAyIdGqF.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCLNGAVNH_js = require('./chunk-CLNGAVNH.js');
3
+ var chunkR2H3FHK6_js = require('./chunk-R2H3FHK6.js');
4
4
  var DOMPurify = require('dompurify');
5
5
 
6
6
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -238,7 +238,7 @@ function resolveThemeCatalogEntry(key, catalog = THEME_CATALOG) {
238
238
  return catalog.find((entry) => entry.key === key)?.theme;
239
239
  }
240
240
  function corePreset(id) {
241
- const preset = chunkCLNGAVNH_js.THEME_PRESETS.find((p) => p.id === id);
241
+ const preset = chunkR2H3FHK6_js.THEME_PRESETS.find((p) => p.id === id);
242
242
  if (!preset) {
243
243
  throw new Error(`theme-gallery-presets: core THEME_PRESETS is missing "${id}"`);
244
244
  }
@@ -414,7 +414,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
414
414
  guides.push({
415
415
  id: g.id,
416
416
  axis: g.orientation === "horz" ? "h" : "v",
417
- position: chunkCLNGAVNH_js.guideEmuToPx(g.positionEmu)
417
+ position: chunkR2H3FHK6_js.guideEmuToPx(g.positionEmu)
418
418
  });
419
419
  }
420
420
  }
@@ -423,7 +423,7 @@ function buildInitialGuides(presentationGuides, firstSlideGuides) {
423
423
  guides.push({
424
424
  id: g.id,
425
425
  axis: g.orientation === "horz" ? "h" : "v",
426
- position: chunkCLNGAVNH_js.guideEmuToPx(g.positionEmu)
426
+ position: chunkR2H3FHK6_js.guideEmuToPx(g.positionEmu)
427
427
  });
428
428
  }
429
429
  }
@@ -436,23 +436,23 @@ function getResolvedShapeClipPathFor(shapeType, width, height, adjustments) {
436
436
  return void 0;
437
437
  }
438
438
  if (!Number.isFinite(width) || !Number.isFinite(height) || width <= 0 || height <= 0) {
439
- return chunkCLNGAVNH_js.getShapeClipPath(shapeType);
439
+ return chunkR2H3FHK6_js.getShapeClipPath(shapeType);
440
440
  }
441
441
  if (adjustments && Object.keys(adjustments).length > 0) {
442
- const adjusted = chunkCLNGAVNH_js.getAdjustmentAwareShapeClipPath(shapeType, width, height, adjustments);
442
+ const adjusted = chunkR2H3FHK6_js.getAdjustmentAwareShapeClipPath(shapeType, width, height, adjustments);
443
443
  if (adjusted !== void 0) {
444
444
  return adjusted;
445
445
  }
446
446
  }
447
- const fromPreset = chunkCLNGAVNH_js.getShapeClipPathFromPreset(shapeType, width, height, adjustments);
447
+ const fromPreset = chunkR2H3FHK6_js.getShapeClipPathFromPreset(shapeType, width, height, adjustments);
448
448
  if (fromPreset !== void 0) {
449
449
  return fromPreset;
450
450
  }
451
- const cloud = chunkCLNGAVNH_js.getCloudPathForRendering(shapeType, width, height);
451
+ const cloud = chunkR2H3FHK6_js.getCloudPathForRendering(shapeType, width, height);
452
452
  if (cloud !== void 0) {
453
453
  return cloud;
454
454
  }
455
- return chunkCLNGAVNH_js.getShapeClipPath(shapeType);
455
+ return chunkR2H3FHK6_js.getShapeClipPath(shapeType);
456
456
  }
457
457
  function buildCustomGeometryClipPath(pathData, pathWidth, pathHeight, elemWidth, elemHeight) {
458
458
  if (!pathData || !Number.isFinite(pathWidth) || !Number.isFinite(pathHeight) || pathWidth <= 0 || pathHeight <= 0 || !Number.isFinite(elemWidth) || !Number.isFinite(elemHeight) || elemWidth <= 0 || elemHeight <= 0) {
@@ -1101,7 +1101,7 @@ var OOXML_PATTERN_PRESETS = [
1101
1101
  "zigZag"
1102
1102
  ];
1103
1103
  function getComputedFillStyle(element, parentGroupFill) {
1104
- if (!chunkCLNGAVNH_js.hasShapeProperties(element)) {
1104
+ if (!chunkR2H3FHK6_js.hasShapeProperties(element)) {
1105
1105
  return void 0;
1106
1106
  }
1107
1107
  const ss = element.shapeStyle;
@@ -1170,7 +1170,7 @@ function getGroupChildParentFill(group) {
1170
1170
  return group.type === "group" ? group.groupFill : void 0;
1171
1171
  }
1172
1172
  function resolveGroupChildFill(child2, parentGroupFill) {
1173
- if (!parentGroupFill || !chunkCLNGAVNH_js.hasShapeProperties(child2) || child2.shapeStyle?.fillMode !== "group") {
1173
+ if (!parentGroupFill || !chunkR2H3FHK6_js.hasShapeProperties(child2) || child2.shapeStyle?.fillMode !== "group") {
1174
1174
  return void 0;
1175
1175
  }
1176
1176
  return getComputedFillStyle(child2, parentGroupFill);
@@ -1373,7 +1373,7 @@ var DEFAULT_SCHEME_COLOR_MAP = {
1373
1373
  phclr: "#4472C4"
1374
1374
  };
1375
1375
  function applyDrawingColorTransforms2(baseColor, colorNode) {
1376
- return chunkCLNGAVNH_js.applyDrawingColorTransforms(baseColor, colorNode);
1376
+ return chunkR2H3FHK6_js.applyDrawingColorTransforms(baseColor, colorNode);
1377
1377
  }
1378
1378
  function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1379
1379
  if (!colorNode) {
@@ -1425,7 +1425,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1425
1425
  const h = hueRaw / 6e4;
1426
1426
  const s = clampUnitInterval(satRaw / 1e5);
1427
1427
  const l = clampUnitInterval(lumRaw / 1e5);
1428
- const rgb = chunkCLNGAVNH_js.hslToRgb(h, s, l);
1428
+ const rgb = chunkR2H3FHK6_js.hslToRgb(h, s, l);
1429
1429
  const toHex2 = (value) => Math.min(255, Math.max(0, Math.round(value))).toString(16).padStart(2, "0").toUpperCase();
1430
1430
  const base = `#${toHex2(rgb.r)}${toHex2(rgb.g)}${toHex2(rgb.b)}`;
1431
1431
  return applyDrawingColorTransforms2(base, hslNode);
@@ -1435,7 +1435,7 @@ function parseDrawingColorChoice(colorNode, schemeColorOverrides) {
1435
1435
  const preset = String(
1436
1436
  colorNode["a:prstClr"]?.["@_val"] || ""
1437
1437
  ).toLowerCase();
1438
- const mapped = chunkCLNGAVNH_js.PRESET_COLOR_MAP[preset];
1438
+ const mapped = chunkR2H3FHK6_js.PRESET_COLOR_MAP[preset];
1439
1439
  if (!mapped) {
1440
1440
  return void 0;
1441
1441
  }
@@ -1978,7 +1978,7 @@ function hexToRgbUnit2(hex) {
1978
1978
  };
1979
1979
  }
1980
1980
  function getEffects(element) {
1981
- if (!chunkCLNGAVNH_js.isImageLikeElement(element)) {
1981
+ if (!chunkR2H3FHK6_js.isImageLikeElement(element)) {
1982
1982
  return void 0;
1983
1983
  }
1984
1984
  return element.imageEffects;
@@ -2167,7 +2167,7 @@ function buildDuotoneFilterMarkup(color1, color2) {
2167
2167
  const c2 = hexToRgbUnit2(color2);
2168
2168
  return `<feColorMatrix type="matrix" values="${GRAYSCALE_LUMINANCE_MATRIX}"/><feComponentTransfer><feFuncR type="linear" slope="${c2.r - c1.r}" intercept="${c1.r}"/><feFuncG type="linear" slope="${c2.g - c1.g}" intercept="${c1.g}"/><feFuncB type="linear" slope="${c2.b - c1.b}" intercept="${c1.b}"/></feComponentTransfer>`;
2169
2169
  }
2170
- function getDuotoneImageFilter(element, elementId = chunkCLNGAVNH_js.isImageLikeElement(element) ? element.id : "") {
2170
+ function getDuotoneImageFilter(element, elementId = chunkR2H3FHK6_js.isImageLikeElement(element) ? element.id : "") {
2171
2171
  const effects = getEffects(element);
2172
2172
  if (!effects?.duotone) {
2173
2173
  return void 0;
@@ -2269,7 +2269,7 @@ function buildImageAlphaFilterMarkup(effects) {
2269
2269
  }
2270
2270
  return parts.length > 0 ? parts.join("") : void 0;
2271
2271
  }
2272
- function getImageAlphaFilter(element, elementId = chunkCLNGAVNH_js.isImageLikeElement(element) ? element.id : "") {
2272
+ function getImageAlphaFilter(element, elementId = chunkR2H3FHK6_js.isImageLikeElement(element) ? element.id : "") {
2273
2273
  const effects = getEffects(element);
2274
2274
  if (!effects || !hasAdvancedImageAlphaEffects(element)) {
2275
2275
  return void 0;
@@ -2359,7 +2359,7 @@ function buildArtisticFilterMarkup(effectName, radius) {
2359
2359
  return void 0;
2360
2360
  }
2361
2361
  }
2362
- function getArtisticImageFilter(element, elementId = chunkCLNGAVNH_js.isImageLikeElement(element) ? element.id : "") {
2362
+ function getArtisticImageFilter(element, elementId = chunkR2H3FHK6_js.isImageLikeElement(element) ? element.id : "") {
2363
2363
  const effects = getEffects(element);
2364
2364
  if (!effects?.artisticEffect || !needsSvgArtisticFilter(effects.artisticEffect)) {
2365
2365
  return void 0;
@@ -3318,7 +3318,7 @@ function convertChildren(node) {
3318
3318
  if (key.startsWith("@_")) {
3319
3319
  continue;
3320
3320
  }
3321
- const tag = chunkCLNGAVNH_js.stripXmlOrderSuffix(key);
3321
+ const tag = chunkR2H3FHK6_js.stripXmlOrderSuffix(key);
3322
3322
  if (tag === "m:oMathPara") {
3323
3323
  continue;
3324
3324
  }
@@ -3390,7 +3390,7 @@ function findOmathRoots(node) {
3390
3390
  }
3391
3391
  }
3392
3392
  const contentTags = /* @__PURE__ */ new Set(["m:r", "m:f", "m:rad", "m:sSup", "m:sSub", "m:box"]);
3393
- if (Object.keys(node).some((key) => contentTags.has(chunkCLNGAVNH_js.stripXmlOrderSuffix(key)))) {
3393
+ if (Object.keys(node).some((key) => contentTags.has(chunkR2H3FHK6_js.stripXmlOrderSuffix(key)))) {
3394
3394
  return [node];
3395
3395
  }
3396
3396
  return [];
@@ -3600,7 +3600,7 @@ function mergeSiblings(nodes) {
3600
3600
  }
3601
3601
  const ordered2 = {};
3602
3602
  for (const [position, [key, value]] of entries.entries()) {
3603
- ordered2[(counts.get(key) ?? 0) > 1 ? chunkCLNGAVNH_js.orderedXmlKey(key, position) : key] = value;
3603
+ ordered2[(counts.get(key) ?? 0) > 1 ? chunkR2H3FHK6_js.orderedXmlKey(key, position) : key] = value;
3604
3604
  }
3605
3605
  return ordered2;
3606
3606
  }
@@ -4004,7 +4004,7 @@ function ommlChildrenToLatex(node) {
4004
4004
  if (key.startsWith("@_")) {
4005
4005
  continue;
4006
4006
  }
4007
- const tag = chunkCLNGAVNH_js.stripXmlOrderSuffix(key);
4007
+ const tag = chunkR2H3FHK6_js.stripXmlOrderSuffix(key);
4008
4008
  const items = ensureArr(node[key]);
4009
4009
  for (const item of items) {
4010
4010
  const result = ommlElementToLatex(tag, item);
@@ -12185,7 +12185,7 @@ function buildSegmentCounts(slide, nativeAnims) {
12185
12185
  for (const anim of nativeAnims) {
12186
12186
  if (anim.buildType && anim.buildType !== "allAtOnce" && anim.targetId) {
12187
12187
  const el = slide.elements.find((e) => e.id === anim.targetId);
12188
- if (el && chunkCLNGAVNH_js.hasTextProperties(el) && el.textSegments && el.textSegments.length > 0) {
12188
+ if (el && chunkR2H3FHK6_js.hasTextProperties(el) && el.textSegments && el.textSegments.length > 0) {
12189
12189
  segmentCounts.set(anim.targetId, countTextSegments(el.textSegments));
12190
12190
  }
12191
12191
  }
@@ -14403,7 +14403,7 @@ function rotateDelta(dx, dy, rotationDeg) {
14403
14403
  }
14404
14404
  function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
14405
14405
  const scale = zoom || 1;
14406
- const minSize = opts.minSize ?? chunkCLNGAVNH_js.MIN_ELEMENT_SIZE;
14406
+ const minSize = opts.minSize ?? chunkR2H3FHK6_js.MIN_ELEMENT_SIZE;
14407
14407
  const rotation = rotationOf(box);
14408
14408
  const local = rotateDelta(dxScreen / scale, dyScreen / scale, rotation);
14409
14409
  const dx = local.x;
@@ -14430,7 +14430,7 @@ function applyResize(box, handle, dxScreen, dyScreen, zoom, opts = {}) {
14430
14430
  }
14431
14431
  return { x: newX, y: newY, width: newW, height: newH, rotation };
14432
14432
  }
14433
- function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkCLNGAVNH_js.MIN_ELEMENT_SIZE) {
14433
+ function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkR2H3FHK6_js.MIN_ELEMENT_SIZE) {
14434
14434
  if (handle === null || gridSpacingPx <= 0) {
14435
14435
  return box;
14436
14436
  }
@@ -14460,7 +14460,7 @@ function snapBoxToGrid(box, handle, gridSpacingPx, minSize = chunkCLNGAVNH_js.MI
14460
14460
  }
14461
14461
  return { x, y, width, height };
14462
14462
  }
14463
- function computeMarqueeHitIds(marquee, elements, minSize = chunkCLNGAVNH_js.MIN_ELEMENT_SIZE) {
14463
+ function computeMarqueeHitIds(marquee, elements, minSize = chunkR2H3FHK6_js.MIN_ELEMENT_SIZE) {
14464
14464
  const minX = Math.min(marquee.startX, marquee.currentX);
14465
14465
  const minY = Math.min(marquee.startY, marquee.currentY);
14466
14466
  const maxX = Math.max(marquee.startX, marquee.currentX);
@@ -16016,7 +16016,7 @@ var THEME_COLOR_LABELS = {
16016
16016
  };
16017
16017
  function buildThemeColorGrid(colorScheme) {
16018
16018
  return THEME_COLOR_TINT_ROWS.map(
16019
- (row) => chunkCLNGAVNH_js.THEME_COLOR_SCHEME_KEYS.map((key) => ({
16019
+ (row) => chunkR2H3FHK6_js.THEME_COLOR_SCHEME_KEYS.map((key) => ({
16020
16020
  hex: row.transform(colorScheme[key]),
16021
16021
  schemeKey: key,
16022
16022
  rowLabel: row.label,
@@ -16352,12 +16352,12 @@ function getShapeConnectionSites(shape) {
16352
16352
  }
16353
16353
  const pathW = geo.pathWidth && geo.pathWidth > 0 ? geo.pathWidth : shape.width;
16354
16354
  const pathH = geo.pathHeight && geo.pathHeight > 0 ? geo.pathHeight : shape.height;
16355
- const vars = chunkCLNGAVNH_js.createBuiltinVariables({ w: pathW, h: pathH });
16355
+ const vars = chunkR2H3FHK6_js.createBuiltinVariables({ w: pathW, h: pathH });
16356
16356
  const scaleX = pathW > 0 ? shape.width / pathW : 1;
16357
16357
  const scaleY = pathH > 0 ? shape.height / pathH : 1;
16358
16358
  return cxn.map((site, index) => ({
16359
- x: chunkCLNGAVNH_js.resolveCoordinate(site.posX, vars) * scaleX,
16360
- y: chunkCLNGAVNH_js.resolveCoordinate(site.posY, vars) * scaleY,
16359
+ x: chunkR2H3FHK6_js.resolveCoordinate(site.posX, vars) * scaleX,
16360
+ y: chunkR2H3FHK6_js.resolveCoordinate(site.posY, vars) * scaleY,
16361
16361
  index
16362
16362
  }));
16363
16363
  }
@@ -16520,7 +16520,7 @@ function svgLineCap(lineCap) {
16520
16520
  }
16521
16521
  function copyFormatFromElement(element) {
16522
16522
  const result = {};
16523
- if (chunkCLNGAVNH_js.hasShapeProperties(element) && element.shapeStyle) {
16523
+ if (chunkR2H3FHK6_js.hasShapeProperties(element) && element.shapeStyle) {
16524
16524
  const s = element.shapeStyle;
16525
16525
  result.shapeStyle = {
16526
16526
  fillColor: s.fillColor,
@@ -16549,7 +16549,7 @@ function copyFormatFromElement(element) {
16549
16549
  softEdgeRadius: s.softEdgeRadius
16550
16550
  };
16551
16551
  }
16552
- if (chunkCLNGAVNH_js.hasTextProperties(element) && element.textStyle) {
16552
+ if (chunkR2H3FHK6_js.hasTextProperties(element) && element.textStyle) {
16553
16553
  const t = element.textStyle;
16554
16554
  result.textStyle = {
16555
16555
  fontFamily: t.fontFamily,
@@ -16580,7 +16580,7 @@ function definedEntries(obj) {
16580
16580
  }
16581
16581
  function applyFormatToElement(element, format) {
16582
16582
  let updated = { ...element };
16583
- if (format.shapeStyle && chunkCLNGAVNH_js.hasShapeProperties(updated)) {
16583
+ if (format.shapeStyle && chunkR2H3FHK6_js.hasShapeProperties(updated)) {
16584
16584
  updated = {
16585
16585
  ...updated,
16586
16586
  shapeStyle: {
@@ -16589,7 +16589,7 @@ function applyFormatToElement(element, format) {
16589
16589
  }
16590
16590
  };
16591
16591
  }
16592
- if (format.textStyle && chunkCLNGAVNH_js.hasTextProperties(updated)) {
16592
+ if (format.textStyle && chunkR2H3FHK6_js.hasTextProperties(updated)) {
16593
16593
  updated = {
16594
16594
  ...updated,
16595
16595
  textStyle: {
@@ -16604,7 +16604,7 @@ function hasCopyableFormat(element) {
16604
16604
  if (!element) {
16605
16605
  return false;
16606
16606
  }
16607
- return chunkCLNGAVNH_js.hasShapeProperties(element) || chunkCLNGAVNH_js.hasTextProperties(element);
16607
+ return chunkR2H3FHK6_js.hasShapeProperties(element) || chunkR2H3FHK6_js.hasTextProperties(element);
16608
16608
  }
16609
16609
  function copySegmentMetadata(from, to) {
16610
16610
  if (from.equationXml !== void 0) {
@@ -16741,7 +16741,7 @@ function getRoundRectRadiusPx(element) {
16741
16741
  return Math.min(Math.max(element.width, 1), Math.max(element.height, 1)) * 0.5 * normalizedAdjustment;
16742
16742
  }
16743
16743
  function getShapeAdjustmentHandleDescriptor(element) {
16744
- if (!chunkCLNGAVNH_js.hasShapeProperties(element)) {
16744
+ if (!chunkR2H3FHK6_js.hasShapeProperties(element)) {
16745
16745
  return null;
16746
16746
  }
16747
16747
  const normalizedShapeType = String(element.shapeType || "").toLowerCase();
@@ -17870,7 +17870,7 @@ function publishLiveInlineText(patcher, slide, elementId, text) {
17870
17870
  return;
17871
17871
  }
17872
17872
  const element = slide.elements.find((el) => el.id === elementId);
17873
- if (!element || !chunkCLNGAVNH_js.hasTextProperties(element)) {
17873
+ if (!element || !chunkR2H3FHK6_js.hasTextProperties(element)) {
17874
17874
  return;
17875
17875
  }
17876
17876
  patcher.patchText(slide.id, elementId, text, {
@@ -18057,7 +18057,7 @@ function createDepartureChannel(roomId, awareness, factory) {
18057
18057
  var POSITION_THRESHOLD = 2;
18058
18058
  var SIZE_THRESHOLD = 2;
18059
18059
  function getElementText(element) {
18060
- if (!chunkCLNGAVNH_js.hasTextProperties(element)) {
18060
+ if (!chunkR2H3FHK6_js.hasTextProperties(element)) {
18061
18061
  return "";
18062
18062
  }
18063
18063
  if (element.textSegments && element.textSegments.length > 0) {
@@ -22797,6 +22797,99 @@ async function clearAudienceContent(sessionId) {
22797
22797
  function formatSlideCounter(currentSlide, totalSlides) {
22798
22798
  return `${currentSlide + 1} / ${totalSlides}`;
22799
22799
  }
22800
+ function createPresentationKeyBuffer() {
22801
+ return { digits: "" };
22802
+ }
22803
+ var NEXT_KEYS = /* @__PURE__ */ new Set(["Enter", "PageDown", "ArrowRight", "ArrowDown", " ", "Spacebar"]);
22804
+ var PREVIOUS_KEYS = /* @__PURE__ */ new Set(["PageUp", "ArrowLeft", "ArrowUp", "Backspace"]);
22805
+ function isBare(input) {
22806
+ return !input.ctrlKey && !input.metaKey && !input.altKey;
22807
+ }
22808
+ function isControlChord(input) {
22809
+ return Boolean(input.ctrlKey || input.metaKey) && !input.altKey;
22810
+ }
22811
+ function mapPresentationKey(input, buffer = createPresentationKeyBuffer()) {
22812
+ const { key } = input;
22813
+ if (isControlChord(input)) {
22814
+ switch (key.toLowerCase()) {
22815
+ case "l":
22816
+ return { action: "pointerTool", tool: "laser" };
22817
+ case "p":
22818
+ return { action: "pointerTool", tool: "pen" };
22819
+ case "a":
22820
+ return { action: "pointerTool", tool: "arrow" };
22821
+ case "e":
22822
+ return { action: "pointerTool", tool: "eraser" };
22823
+ case "m":
22824
+ return { action: "toggleInkMarkup" };
22825
+ case "h":
22826
+ return { action: "toggleChrome" };
22827
+ case "s":
22828
+ return { action: "showAllSlides" };
22829
+ default:
22830
+ return { action: "none" };
22831
+ }
22832
+ }
22833
+ if (key === "F10" && input.shiftKey || key === "ContextMenu") {
22834
+ return { action: "contextMenu" };
22835
+ }
22836
+ if (isBare(input) && key.length === 1 && key >= "0" && key <= "9") {
22837
+ buffer.digits = (buffer.digits + key).slice(-4);
22838
+ return { action: "buffering", buffer: buffer.digits };
22839
+ }
22840
+ if (NEXT_KEYS.has(key)) {
22841
+ if (key === "Enter" && buffer.digits) {
22842
+ const slideNumber = Number.parseInt(buffer.digits, 10);
22843
+ buffer.digits = "";
22844
+ if (Number.isFinite(slideNumber) && slideNumber > 0) {
22845
+ return { action: "goto", slideNumber };
22846
+ }
22847
+ return { action: "none" };
22848
+ }
22849
+ buffer.digits = "";
22850
+ return { action: "next" };
22851
+ }
22852
+ if (PREVIOUS_KEYS.has(key)) {
22853
+ buffer.digits = "";
22854
+ return { action: "previous" };
22855
+ }
22856
+ if (key === "Home") {
22857
+ buffer.digits = "";
22858
+ return { action: "first" };
22859
+ }
22860
+ if (key === "End") {
22861
+ buffer.digits = "";
22862
+ return { action: "last" };
22863
+ }
22864
+ if (isBare(input)) {
22865
+ switch (key) {
22866
+ case "n":
22867
+ case "N":
22868
+ buffer.digits = "";
22869
+ return { action: "next" };
22870
+ case "p":
22871
+ case "P":
22872
+ buffer.digits = "";
22873
+ return { action: "previous" };
22874
+ case "b":
22875
+ case "B":
22876
+ case ".":
22877
+ return { action: "toggleBlackScreen" };
22878
+ case "w":
22879
+ case "W":
22880
+ case ",":
22881
+ return { action: "toggleWhiteScreen" };
22882
+ case "e":
22883
+ case "E":
22884
+ return { action: "eraseAnnotations" };
22885
+ case "Escape":
22886
+ case "-":
22887
+ buffer.digits = "";
22888
+ return { action: "end" };
22889
+ }
22890
+ }
22891
+ return { action: "none" };
22892
+ }
22800
22893
  var ACTION_BUTTON_PRESETS = [
22801
22894
  {
22802
22895
  shapeType: "actionButtonBackPrevious",
@@ -23409,7 +23502,7 @@ function getAriaRole(element) {
23409
23502
  case "model3d":
23410
23503
  return "img";
23411
23504
  case "shape": {
23412
- if (chunkCLNGAVNH_js.hasTextProperties(element) && element.text) {
23505
+ if (chunkR2H3FHK6_js.hasTextProperties(element) && element.text) {
23413
23506
  return "group";
23414
23507
  }
23415
23508
  return "img";
@@ -23422,7 +23515,7 @@ function getAriaLabel(element) {
23422
23515
  if ((element.type === "image" || element.type === "picture") && "altText" in element && typeof element.altText === "string" && element.altText.trim()) {
23423
23516
  return element.altText.trim();
23424
23517
  }
23425
- if (chunkCLNGAVNH_js.hasTextProperties(element) && element.text) {
23518
+ if (chunkR2H3FHK6_js.hasTextProperties(element) && element.text) {
23426
23519
  const text = element.text.trim();
23427
23520
  if (text) {
23428
23521
  return text.length > 120 ? `${text.slice(0, 117)}...` : text;
@@ -23829,7 +23922,7 @@ var DEFAULT_CHART_POSITION = { x: 120, y: 120, width: 480, height: 320 };
23829
23922
  var DEFAULT_CATEGORIES = ["Category 1", "Category 2", "Category 3"];
23830
23923
  var DEFAULT_SERIES_VALUES = [4, 3, 5];
23831
23924
  function createDefaultChartElement(chartType = DEFAULT_INSERT_CHART_TYPE, position) {
23832
- return chunkCLNGAVNH_js.createChartElement(
23925
+ return chunkR2H3FHK6_js.createChartElement(
23833
23926
  chartType,
23834
23927
  {
23835
23928
  categories: [...DEFAULT_CATEGORIES],
@@ -24858,7 +24951,7 @@ function computeVirtualRange(totalItems, itemHeight, scrollTop, viewportHeight,
24858
24951
  };
24859
24952
  }
24860
24953
  function collectFontsFromElement(element, fonts) {
24861
- if (chunkCLNGAVNH_js.hasTextProperties(element)) {
24954
+ if (chunkR2H3FHK6_js.hasTextProperties(element)) {
24862
24955
  if (element.textStyle?.fontFamily) {
24863
24956
  fonts.add(element.textStyle.fontFamily);
24864
24957
  }
@@ -27688,6 +27781,7 @@ exports.createCollaborationLivePatcher = createCollaborationLivePatcher;
27688
27781
  exports.createDefaultChartElement = createDefaultChartElement;
27689
27782
  exports.createDepartureChannel = createDepartureChannel;
27690
27783
  exports.createInitialPresentationSnapshot = createInitialPresentationSnapshot;
27784
+ exports.createPresentationKeyBuffer = createPresentationKeyBuffer;
27691
27785
  exports.createPresentationSessionId = createPresentationSessionId;
27692
27786
  exports.createPresenterTimer = createPresenterTimer;
27693
27787
  exports.createSyncGate = createSyncGate;
@@ -27813,6 +27907,7 @@ exports.listBackstageRecentFiles = listBackstageRecentFiles;
27813
27907
  exports.loadAudienceContent = loadAudienceContent;
27814
27908
  exports.makeCloneId = makeCloneId;
27815
27909
  exports.makeSlideId = makeSlideId;
27910
+ exports.mapPresentationKey = mapPresentationKey;
27816
27911
  exports.mergeAdditiveSelection = mergeAdditiveSelection;
27817
27912
  exports.mergeCells = mergeCells;
27818
27913
  exports.mergePresentationSnapshot = mergePresentationSnapshot;
Binary file
Binary file