ooxml-ui 1.8.3 → 1.8.5

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.
@@ -9,7 +9,7 @@ var chunkXOAXPD2W_cjs = require('./chunk-XOAXPD2W.cjs');
9
9
  var chunkBSGCZ4JZ_cjs = require('./chunk-BSGCZ4JZ.cjs');
10
10
  var chunkIOOI63TH_cjs = require('./chunk-IOOI63TH.cjs');
11
11
  var chunkZJFN5POF_cjs = require('./chunk-ZJFN5POF.cjs');
12
- var chunkSTXGHV25_cjs = require('./chunk-STXGHV25.cjs');
12
+ var chunkHWW2UVUP_cjs = require('./chunk-HWW2UVUP.cjs');
13
13
  var chunkWB25PCHQ_cjs = require('./chunk-WB25PCHQ.cjs');
14
14
  var chunkW3X2UVYQ_cjs = require('./chunk-W3X2UVYQ.cjs');
15
15
  var chunkVFPVEVF4_cjs = require('./chunk-VFPVEVF4.cjs');
@@ -24121,7 +24121,7 @@ function resolveFollowingSegmentTexts(paraSegments, markerSegment, fieldContext)
24121
24121
  function resolveParagraphStrutFontSize(segments, bodyFontSize, fontScale = 1) {
24122
24122
  let smallest;
24123
24123
  for (const segment of segments) {
24124
- if (chunkSTXGHV25_cjs.isBulletMarkerSegment(segment)) {
24124
+ if (chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment)) {
24125
24125
  continue;
24126
24126
  }
24127
24127
  const size = segment.style?.fontSize;
@@ -24809,10 +24809,10 @@ function createInlineListSeed(element, options) {
24809
24809
  const virtualIndices = /* @__PURE__ */ new Map();
24810
24810
  for (const [index, paragraph2] of paragraphs2.entries()) {
24811
24811
  if (paragraph2.segments.every(
24812
- (segment, runIndex) => runIndex === 0 && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment) || segment.text === "" && !segment.isLineBreak && !segment.fieldType && !segment.fieldGuid && !segment.equationXml && !segment.rubyText
24812
+ (segment, runIndex) => runIndex === 0 && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment) || segment.text === "" && !segment.isLineBreak && !segment.fieldType && !segment.fieldGuid && !segment.equationXml && !segment.rubyText
24813
24813
  )) {
24814
24814
  const carrier = paragraph2.segments[0] ?? paragraph2.terminator;
24815
- const body = paragraph2.segments.find((segment) => !chunkSTXGHV25_cjs.isBulletMarkerSegment(segment));
24815
+ const body = paragraph2.segments.find((segment) => !chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment));
24816
24816
  virtualIndices.set(index, segments.length);
24817
24817
  segments.push({
24818
24818
  text: "",
@@ -24832,7 +24832,7 @@ function createInlineListSeed(element, options) {
24832
24832
  presentation: presentation[sourceIndex],
24833
24833
  runs: Object.freeze(
24834
24834
  (virtualIndices.has(sourceIndex) ? [segments[virtualIndices.get(sourceIndex)]] : paragraph2.segments).flatMap((segment, index) => {
24835
- if (index === 0 && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment)) {
24835
+ if (index === 0 && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment)) {
24836
24836
  return [];
24837
24837
  }
24838
24838
  const segmentIndex = virtualIndices.get(sourceIndex) ?? indices[sourceIndex][index];
@@ -25033,11 +25033,11 @@ function recordInlineListProvenance(seed, root, snapshot, blocks, origins, uncha
25033
25033
  if (!block) return;
25034
25034
  paragraphs2.set(block, start < end ? start : terminator ?? null);
25035
25035
  const body = segments.slice(start, end);
25036
- const content = body.filter((segment, index) => index !== 0 || !chunkSTXGHV25_cjs.isBulletMarkerSegment(segment));
25036
+ const content = body.filter((segment, index) => index !== 0 || !chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment));
25037
25037
  const onlyEmptyCarrier = content.length === 1 && content[0].text === "" && !content[0].isLineBreak;
25038
25038
  for (let index = start; index < end; index++) {
25039
25039
  const segment = segments[index];
25040
- const marker = index === start && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment);
25040
+ const marker = index === start && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment);
25041
25041
  if (!marker && (segment.text !== "" || segment.isLineBreak)) continue;
25042
25042
  const node = marker || onlyEmptyCarrier ? block : unchanged2 ? inlineListDescendants(block).find((child) => session.runNodes.get(child) === index) : origins[index];
25043
25043
  hidden.push({ node, kind: marker ? "marker" : "empty", index });
@@ -25346,11 +25346,11 @@ function readInlineListSnapshot(seed, root) {
25346
25346
  } else {
25347
25347
  pptx.breakAutoNumberRun(sequence, first.paragraphLevel ?? 0);
25348
25348
  }
25349
- if (chunkSTXGHV25_cjs.isBulletMarkerSegment(first)) {
25349
+ if (chunkHWW2UVUP_cjs.isBulletMarkerSegment(first)) {
25350
25350
  const marker = {
25351
25351
  text: first.text,
25352
25352
  style: structuredClone(
25353
- carrier && chunkSTXGHV25_cjs.isBulletMarkerSegment(carrier) ? carrier.style : first.style
25353
+ carrier && chunkHWW2UVUP_cjs.isBulletMarkerSegment(carrier) ? carrier.style : first.style
25354
25354
  ),
25355
25355
  ...inlineListParagraphMetadata(first)
25356
25356
  };
@@ -25400,7 +25400,7 @@ function paragraphBodies(segments) {
25400
25400
  paragraphs2.push("");
25401
25401
  first = true;
25402
25402
  } else {
25403
- if (!first || !chunkSTXGHV25_cjs.isBulletMarkerSegment(segment)) {
25403
+ if (!first || !chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment)) {
25404
25404
  paragraphs2[paragraphs2.length - 1] += segment.isLineBreak ? "\n" : segment.text;
25405
25405
  }
25406
25406
  first = false;
@@ -25413,7 +25413,7 @@ function modelPoint(segments, offset, end) {
25413
25413
  let first = true;
25414
25414
  let last = { index: 0, offset: 0 };
25415
25415
  for (const [index, segment] of segments.entries()) {
25416
- const marker = first && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment);
25416
+ const marker = first && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment);
25417
25417
  first = textSegmentParagraphBreak.isParagraphSeparatorSegment(segment);
25418
25418
  if (marker) {
25419
25419
  if (offset === position && segment.paragraphInsertionStyle && (!segments[index + 1] || textSegmentParagraphBreak.isParagraphSeparatorSegment(segments[index + 1]))) {
@@ -25574,7 +25574,7 @@ function paragraphs(segments) {
25574
25574
  const paragraph2 = result.at(-1);
25575
25575
  const first = !paragraph2.first;
25576
25576
  paragraph2.first ??= segment;
25577
- if (first && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment)) {
25577
+ if (first && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment)) {
25578
25578
  continue;
25579
25579
  }
25580
25580
  const start = paragraph2.text.length;
@@ -26009,7 +26009,7 @@ function readInlineEditorSelection(segments, preserveCaret = false) {
26009
26009
  function isEditableSpan(span, segments) {
26010
26010
  const segment = segments[getSegmentIndex(span)];
26011
26011
  return Boolean(
26012
- segment && !segment.isParagraphBreak && segment.text !== "\n" && !chunkSTXGHV25_cjs.isBulletMarkerSegment(segment) && (span.textContent?.length ?? 0) > 0
26012
+ segment && !segment.isParagraphBreak && segment.text !== "\n" && !chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment) && (span.textContent?.length ?? 0) > 0
26013
26013
  );
26014
26014
  }
26015
26015
  function getSegmentIndex(span) {
@@ -26088,7 +26088,7 @@ function applyStyleToSelectedSegments(segments, selection, updates) {
26088
26088
  result.push({ ...seg, style: { ...seg.style } });
26089
26089
  continue;
26090
26090
  }
26091
- if (seg.paragraphInsertionStyle && (seg.text === "" || chunkSTXGHV25_cjs.isBulletMarkerSegment(seg))) {
26091
+ if (seg.paragraphInsertionStyle && (seg.text === "" || chunkHWW2UVUP_cjs.isBulletMarkerSegment(seg))) {
26092
26092
  newStartSegIdx = newStartSegIdx < 0 ? result.length : newStartSegIdx;
26093
26093
  newEndSegIdx = result.length;
26094
26094
  result.push(seg);
@@ -26228,7 +26228,7 @@ function positions(segments) {
26228
26228
  let paragraph2 = 0;
26229
26229
  let first = true;
26230
26230
  return segments.map((segment, index) => {
26231
- const marker = first && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment);
26231
+ const marker = first && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment);
26232
26232
  const emptyCarrier = marker && segment.paragraphInsertionStyle && (!segments[index + 1] || textSegmentParagraphBreak.isParagraphSeparatorSegment(segments[index + 1]));
26233
26233
  const start = offset;
26234
26234
  if (!marker) {
@@ -26286,14 +26286,14 @@ function restoreParagraphMetadata(original, updated) {
26286
26286
  }
26287
26287
  function selectedParagraphBulletKind(element, selection) {
26288
26288
  if (!selection || !pptx.hasTextProperties(element) || !element.textSegments) {
26289
- const kind = chunkSTXGHV25_cjs.elementBulletKind(element);
26289
+ const kind = chunkHWW2UVUP_cjs.elementBulletKind(element);
26290
26290
  return kind === "mixed" ? "none" : kind;
26291
26291
  }
26292
26292
  let first = selection.startSegIdx;
26293
26293
  while (first > 0 && !textSegmentParagraphBreak.isParagraphSeparatorSegment(element.textSegments[first - 1])) {
26294
26294
  first -= 1;
26295
26295
  }
26296
- return chunkSTXGHV25_cjs.paragraphBulletKind(element.textSegments.slice(first));
26296
+ return chunkHWW2UVUP_cjs.paragraphBulletKind(element.textSegments.slice(first));
26297
26297
  }
26298
26298
  function applyListStyleUpdate(element, updates, selection) {
26299
26299
  if (!pptx.hasTextProperties(element) || !updates.listType) {
@@ -26317,7 +26317,7 @@ function applyListStyleUpdate(element, updates, selection) {
26317
26317
  textStyle: selection ? element.textStyle : { ...element.textStyle, ...characterStyle }
26318
26318
  };
26319
26319
  if (!workingSelection || !segments) {
26320
- return { patch: chunkSTXGHV25_cjs.setElementBullets(working, listType), selection: null };
26320
+ return { patch: chunkHWW2UVUP_cjs.setElementBullets(working, listType), selection: null };
26321
26321
  }
26322
26322
  const entries2 = positions(segments);
26323
26323
  const startEntry = entries2[workingSelection.startSegIdx];
@@ -26328,7 +26328,7 @@ function applyListStyleUpdate(element, updates, selection) {
26328
26328
  const startOffset = startEntry.start + workingSelection.startOffset;
26329
26329
  const endOffset = endEntry.start + workingSelection.endOffset;
26330
26330
  const lastSelected = [...entries2].reverse().find((entry5) => entry5.start < endOffset);
26331
- const patch = chunkSTXGHV25_cjs.setElementBullets(working, listType, {
26331
+ const patch = chunkHWW2UVUP_cjs.setElementBullets(working, listType, {
26332
26332
  startParagraph: startEntry.paragraph,
26333
26333
  endParagraph: Math.max(startEntry.paragraph, lastSelected?.paragraph ?? endEntry.paragraph)
26334
26334
  });
@@ -26360,14 +26360,14 @@ function inScope(paragraph2, selection) {
26360
26360
  );
26361
26361
  }
26362
26362
  function selectionBulletKind(element, selection, segments) {
26363
- const paragraphs2 = chunkSTXGHV25_cjs.splitBulletParagraphs(chunkSTXGHV25_cjs.resolveBulletSegments(element, segments));
26364
- return chunkSTXGHV25_cjs.paragraphsBulletKind(paragraphs2.filter((paragraph2) => inScope(paragraph2, selection)));
26363
+ const paragraphs2 = chunkHWW2UVUP_cjs.splitBulletParagraphs(chunkHWW2UVUP_cjs.resolveBulletSegments(element, segments));
26364
+ return chunkHWW2UVUP_cjs.paragraphsBulletKind(paragraphs2.filter((paragraph2) => inScope(paragraph2, selection)));
26365
26365
  }
26366
26366
  function setSelectionBullets(element, kind, selection, segments) {
26367
26367
  if (!pptx.hasTextProperties(element)) {
26368
26368
  return { patch: {}, newSelection: selection };
26369
26369
  }
26370
- const source = chunkSTXGHV25_cjs.resolveBulletSegments(element, segments);
26370
+ const source = chunkHWW2UVUP_cjs.resolveBulletSegments(element, segments);
26371
26371
  const result = applyListStyleUpdate(
26372
26372
  { ...element, textSegments: source },
26373
26373
  { listType: kind },
@@ -26379,122 +26379,47 @@ function toggleSelectionBullets(element, kind, selection, segments) {
26379
26379
  const current = selectionBulletKind(element, selection, segments);
26380
26380
  return setSelectionBullets(element, current === kind ? "none" : kind, selection, segments);
26381
26381
  }
26382
-
26383
- // src/pptx/render/text-style-scope.ts
26384
- var BODY_TEXT_STYLE_KEYS = /* @__PURE__ */ new Set([
26385
- // autofit (`a:normAutofit` / `a:spAutoFit`)
26386
- "autoFit",
26387
- "autoFitMode",
26388
- "autoFitFontScale",
26389
- "autoFitLineSpacingReduction",
26390
- // `a:bodyPr` anchoring, direction, rotation
26391
- "vAlign",
26392
- "anchorCenter",
26393
- "textDirection",
26394
- "textBodyRotation",
26395
- "upright",
26396
- // `a:bodyPr` columns, overflow, wrap
26397
- "columnCount",
26398
- "columnSpacing",
26399
- "rtlColumns",
26400
- "hOverflow",
26401
- "vertOverflow",
26402
- "textWrap",
26403
- // `a:bodyPr` insets
26404
- "bodyInsetLeft",
26405
- "bodyInsetTop",
26406
- "bodyInsetRight",
26407
- "bodyInsetBottom",
26408
- // paragraph geometry the block applies body-wide
26409
- "paragraphMarginLeft",
26410
- "paragraphMarginRight",
26411
- "paragraphIndent",
26412
- "paragraphSpacingBefore",
26413
- "paragraphSpacingAfter",
26414
- "lineSpacing",
26415
- "lineSpacingExactPt",
26416
- "tabStops",
26417
- "defaultTabSize",
26418
- "eaLineBreak",
26419
- "latinLineBreak",
26420
- "fontAlignment",
26421
- "hangingPunctuation",
26422
- // `a:bodyPr` flags
26423
- "spaceFirstLastParagraph",
26424
- "fromWordArt",
26425
- "forceAntiAlias",
26426
- "compatibleLineSpacing",
26427
- // warp and 3D scene on the body
26428
- "textWarpPreset",
26429
- "textWarpAdj",
26430
- "textWarpAdj2",
26431
- "text3d",
26432
- "textBodyScene3d",
26433
- "textBodyScene3dXml",
26434
- "flatText",
26435
- "bodyPropertiesExtLstXml"
26436
- ]);
26437
- function isBodyTextStyleKey(key) {
26438
- return BODY_TEXT_STYLE_KEYS.has(key);
26439
- }
26440
- function splitTextStyleUpdate(updates) {
26441
- const body = {};
26442
- const run = {};
26443
- for (const [key, value] of Object.entries(updates)) {
26444
- (isBodyTextStyleKey(key) ? body : run)[key] = value;
26445
- }
26446
- return { body, run };
26447
- }
26448
- function reconcileDecorationFlags(segments, textStyle, flags) {
26449
- const nextStyle = { ...textStyle ?? {} };
26450
- let nextSegments = [...segments];
26451
- for (const flag2 of flags) {
26452
- const body = nextStyle[flag2] ?? false;
26453
- const content = nextSegments.filter(chunkSTXGHV25_cjs.isContentSegment);
26454
- if (content.length === 0) {
26455
- continue;
26456
- }
26457
- if (content.every((segment) => segment.style?.[flag2] ?? body)) {
26458
- nextStyle[flag2] = true;
26459
- continue;
26460
- }
26461
- if (!body) {
26462
- continue;
26463
- }
26464
- delete nextStyle[flag2];
26465
- nextSegments = nextSegments.map(
26466
- (segment) => chunkSTXGHV25_cjs.isContentSegment(segment) && segment.style?.[flag2] === void 0 ? { ...segment, style: { ...segment.style, [flag2]: true } } : segment
26467
- );
26468
- }
26469
- return { textStyle: nextStyle, textSegments: nextSegments };
26470
- }
26471
26382
  function applyTextStyleUpdate(element, updates, selection, segments) {
26472
26383
  if (!pptx.hasTextProperties(element)) {
26473
26384
  return { patch: {}, newSelection: null };
26474
26385
  }
26475
26386
  const current = segments ?? element.textSegments;
26387
+ const exclusive = chunkHWW2UVUP_cjs.withExclusiveLineSpacing(updates);
26476
26388
  if (selection && current && current.length > 0) {
26477
- const { body, run } = splitTextStyleUpdate(updates);
26389
+ const { body, run } = chunkHWW2UVUP_cjs.splitTextStyleUpdate(exclusive);
26478
26390
  let textStyle2 = { ...element.textStyle, ...body };
26479
- let textSegments2 = [...current];
26391
+ let textSegments2 = chunkHWW2UVUP_cjs.overrideParagraphProperties(current, exclusive);
26480
26392
  let newSelection = selection;
26481
26393
  if (Object.keys(run).length > 0) {
26482
26394
  const scoped = applyStyleToSelectedSegments(textSegments2, selection, run);
26483
26395
  textSegments2 = scoped.newSegments;
26484
26396
  newSelection = scoped.newSelection;
26485
26397
  }
26486
- const touched = chunkSTXGHV25_cjs.TEXT_DECORATION_FLAGS.filter((flag2) => flag2 in run);
26398
+ const touched = chunkHWW2UVUP_cjs.TEXT_DECORATION_FLAGS.filter((flag2) => flag2 in run);
26487
26399
  if (touched.length > 0) {
26488
- const reconciled = reconcileDecorationFlags(textSegments2, textStyle2, touched);
26400
+ const reconciled = chunkHWW2UVUP_cjs.reconcileDecorationFlags(textSegments2, textStyle2, touched);
26489
26401
  textStyle2 = reconciled.textStyle;
26490
26402
  textSegments2 = reconciled.textSegments;
26491
26403
  }
26492
- return { patch: { textStyle: textStyle2, textSegments: textSegments2 }, newSelection };
26404
+ return {
26405
+ patch: {
26406
+ textStyle: textStyle2,
26407
+ textSegments: textSegments2,
26408
+ ...chunkHWW2UVUP_cjs.overrideParagraphIndents(element, exclusive)
26409
+ },
26410
+ newSelection
26411
+ };
26493
26412
  }
26494
- const textStyle = { ...element.textStyle, ...updates };
26495
- const textSegments = current?.map((segment) => chunkOGJRSAGH_cjs.updateTextSegmentStyle(segment, updates));
26413
+ const textStyle = { ...element.textStyle, ...exclusive };
26414
+ const textSegments = current && chunkHWW2UVUP_cjs.overrideParagraphProperties(current, exclusive).map(
26415
+ (segment) => chunkOGJRSAGH_cjs.updateTextSegmentStyle(segment, exclusive)
26416
+ );
26496
26417
  return {
26497
- patch: textSegments ? { textStyle, textSegments } : { textStyle },
26418
+ patch: {
26419
+ textStyle,
26420
+ ...textSegments ? { textSegments } : {},
26421
+ ...chunkHWW2UVUP_cjs.overrideParagraphIndents(element, exclusive)
26422
+ },
26498
26423
  newSelection: null
26499
26424
  };
26500
26425
  }
@@ -30218,10 +30143,12 @@ function textAdvancedStateFromStyle(ts) {
30218
30143
  }
30219
30144
  function textAdvancedPatch(el, changes) {
30220
30145
  const base2 = pptx.hasTextProperties(el) ? el.textStyle ?? {} : {};
30146
+ const exclusive = chunkHWW2UVUP_cjs.withExclusiveLineSpacing(changes);
30221
30147
  return {
30148
+ ...chunkHWW2UVUP_cjs.paragraphOverridePatch(el, exclusive),
30222
30149
  textStyle: {
30223
30150
  ...base2,
30224
- ...changes
30151
+ ...exclusive
30225
30152
  }
30226
30153
  };
30227
30154
  }
@@ -35972,6 +35899,22 @@ function buildReviewRibbon(t, state) {
35972
35899
  ])
35973
35900
  ];
35974
35901
  }
35902
+ var DEFAULT_STROKE_WIDTH = 1;
35903
+ function canGroupSelection(canEdit, selectedCount, selectionGroupable = true) {
35904
+ return canEdit && selectedCount >= 2 && selectionGroupable;
35905
+ }
35906
+ function canUngroupSelection(canEdit, element) {
35907
+ return canEdit && element?.type === "group" && elementLocks.canInteractWithElement(element, "group");
35908
+ }
35909
+ function canSetStrokeWidth(canEdit, element) {
35910
+ return canEdit && element !== null && pptx.hasShapeProperties(element);
35911
+ }
35912
+ function strokeWidthOf(element) {
35913
+ if (element === null || !pptx.hasShapeProperties(element)) {
35914
+ return DEFAULT_STROKE_WIDTH;
35915
+ }
35916
+ return element.shapeStyle?.strokeWidth ?? DEFAULT_STROKE_WIDTH;
35917
+ }
35975
35918
 
35976
35919
  // src/pptx/render/ribbon-home-commands.ts
35977
35920
  function resetSlideLayoutPath(slide) {
@@ -35981,8 +35924,14 @@ function resetSlideLayoutPath(slide) {
35981
35924
  function shapeFillChange(hex2, ref) {
35982
35925
  return { fillColor: hex2, fillColorRef: ref, fillMode: "solid" };
35983
35926
  }
35984
- function shapeOutlineChange(hex2, ref) {
35985
- return { strokeColor: hex2, strokeColorRef: ref };
35927
+ function shapeOutlineChange(hex2, ref, current) {
35928
+ const change = { strokeColor: hex2, strokeColorRef: ref };
35929
+ const lineShows = (current?.strokeWidth ?? 0) > 0;
35930
+ if (current && !lineShows) {
35931
+ change.strokeWidth = DEFAULT_STROKE_WIDTH;
35932
+ change.strokeFillMode = "solid";
35933
+ }
35934
+ return change;
35986
35935
  }
35987
35936
  var RIBBON_SHAPE_SWATCHES = [
35988
35937
  "#ffffff",
@@ -42154,7 +42103,7 @@ function isBulletMarker(segment) {
42154
42103
  return false;
42155
42104
  }
42156
42105
  if (bullet.autoNumType) {
42157
- return bullet.paragraphIndex !== void 0 && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment);
42106
+ return bullet.paragraphIndex !== void 0 && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment);
42158
42107
  }
42159
42108
  const marker = bullet.char ? `${bullet.char} ` : bullet.imageRelId || bullet.imageDataUrl ? "\u{1F4CE} " : "\u2022 ";
42160
42109
  return segment.text === marker;
@@ -52249,7 +52198,7 @@ function remark(patch, edit) {
52249
52198
  return patch;
52250
52199
  }
52251
52200
  const textSegments = patch.textSegments.map((segment) => {
52252
- if (!segment.bulletInfo || !chunkSTXGHV25_cjs.isBulletMarkerSegment(segment)) {
52201
+ if (!segment.bulletInfo || !chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment)) {
52253
52202
  return segment;
52254
52203
  }
52255
52204
  const info = edit(segment.bulletInfo);
@@ -52259,9 +52208,9 @@ function remark(patch, edit) {
52259
52208
  }
52260
52209
  function applyBulletLibrary(element, spec5) {
52261
52210
  if (!spec5) {
52262
- return chunkSTXGHV25_cjs.setElementBullets(element, "none");
52211
+ return chunkHWW2UVUP_cjs.setElementBullets(element, "none");
52263
52212
  }
52264
- return remark(chunkSTXGHV25_cjs.setElementBullets(element, "bullet"), (info) => ({
52213
+ return remark(chunkHWW2UVUP_cjs.setElementBullets(element, "bullet"), (info) => ({
52265
52214
  ...baseInfo(info),
52266
52215
  char: spec5.char,
52267
52216
  fontFamily: spec5.font.typeface,
@@ -52272,9 +52221,9 @@ function applyBulletLibrary(element, spec5) {
52272
52221
  }
52273
52222
  function applyNumberingLibrary(element, scheme) {
52274
52223
  if (!scheme) {
52275
- return chunkSTXGHV25_cjs.setElementBullets(element, "none");
52224
+ return chunkHWW2UVUP_cjs.setElementBullets(element, "none");
52276
52225
  }
52277
- return remark(chunkSTXGHV25_cjs.setElementBullets(element, "numbered"), (info) => ({
52226
+ return remark(chunkHWW2UVUP_cjs.setElementBullets(element, "numbered"), (info) => ({
52278
52227
  ...baseInfo(info),
52279
52228
  autoNumType: scheme,
52280
52229
  autoNumStartAt: info.autoNumStartAt ?? 1,
@@ -52282,13 +52231,13 @@ function applyNumberingLibrary(element, scheme) {
52282
52231
  }));
52283
52232
  }
52284
52233
  function paragraphInfos(element) {
52285
- return chunkSTXGHV25_cjs.splitBulletParagraphs(chunkSTXGHV25_cjs.resolveBulletSegments(element)).filter((paragraph2) => paragraph2.segments.length > 0).map((paragraph2) => paragraph2.segments[0].bulletInfo);
52234
+ return chunkHWW2UVUP_cjs.splitBulletParagraphs(chunkHWW2UVUP_cjs.resolveBulletSegments(element)).filter((paragraph2) => paragraph2.segments.length > 0).map((paragraph2) => paragraph2.segments[0].bulletInfo);
52286
52235
  }
52287
52236
  function hasBulletLibrary(element, spec5) {
52288
52237
  if (!pptx.hasTextProperties(element)) {
52289
52238
  return false;
52290
52239
  }
52291
- const kind = chunkSTXGHV25_cjs.elementBulletKind(element);
52240
+ const kind = chunkHWW2UVUP_cjs.elementBulletKind(element);
52292
52241
  if (!spec5) {
52293
52242
  return kind === "none";
52294
52243
  }
@@ -52300,7 +52249,7 @@ function hasNumberingLibrary(element, scheme) {
52300
52249
  if (!pptx.hasTextProperties(element)) {
52301
52250
  return false;
52302
52251
  }
52303
- const kind = chunkSTXGHV25_cjs.elementBulletKind(element);
52252
+ const kind = chunkHWW2UVUP_cjs.elementBulletKind(element);
52304
52253
  if (!scheme) {
52305
52254
  return kind === "none";
52306
52255
  }
@@ -58417,7 +58366,7 @@ function buildInlineListStylePatch(element, updates, selection) {
58417
58366
  return {
58418
58367
  textSegments: element.textSegments.map(
58419
58368
  (segment) => chunkOGJRSAGH_cjs.updateTextSegmentStyle(segment, updates, {
58420
- updateBodyStyle: !(segment.paragraphInsertionStyle && chunkSTXGHV25_cjs.isBulletMarkerSegment(segment))
58369
+ updateBodyStyle: !(segment.paragraphInsertionStyle && chunkHWW2UVUP_cjs.isBulletMarkerSegment(segment))
58421
58370
  })
58422
58371
  ),
58423
58372
  textStyle: { ...element.textStyle, ...updates }
@@ -58474,22 +58423,6 @@ var LINE_CAP_OPTIONS = [
58474
58423
  { value: "rnd", label: "Round", i18nKey: "pptx.strokeOptions.capRound" },
58475
58424
  { value: "sq", label: "Square", i18nKey: "pptx.strokeOptions.capSquare" }
58476
58425
  ];
58477
- var DEFAULT_STROKE_WIDTH = 1;
58478
- function canGroupSelection(canEdit, selectedCount, selectionGroupable = true) {
58479
- return canEdit && selectedCount >= 2 && selectionGroupable;
58480
- }
58481
- function canUngroupSelection(canEdit, element) {
58482
- return canEdit && element?.type === "group" && elementLocks.canInteractWithElement(element, "group");
58483
- }
58484
- function canSetStrokeWidth(canEdit, element) {
58485
- return canEdit && element !== null && pptx.hasShapeProperties(element);
58486
- }
58487
- function strokeWidthOf(element) {
58488
- if (element === null || !pptx.hasShapeProperties(element)) {
58489
- return DEFAULT_STROKE_WIDTH;
58490
- }
58491
- return element.shapeStyle?.strokeWidth ?? DEFAULT_STROKE_WIDTH;
58492
- }
58493
58426
 
58494
58427
  // src/pptx/render/chart-secondary-axis.ts
58495
58428
  function isSeriesUsingSecondaryAxis(chartData, seriesIndex) {
@@ -59185,7 +59118,7 @@ function transformInlineListCase(snapshot, selection, mode) {
59185
59118
  let first = true;
59186
59119
  const textSegments = chunk52LKIMK3_cjs.applyCaseTransformToSegments(source, selection, mode).map(
59187
59120
  (segment, index) => {
59188
- const marker = first && chunkSTXGHV25_cjs.isBulletMarkerSegment(source[index]);
59121
+ const marker = first && chunkHWW2UVUP_cjs.isBulletMarkerSegment(source[index]);
59189
59122
  first = textSegmentParagraphBreak.isParagraphSeparatorSegment(source[index]);
59190
59123
  return marker ? source[index] : segment;
59191
59124
  }
@@ -77491,7 +77424,6 @@ exports.BARN_FILTER_TOKEN_TO_SUBTYPE = BARN_FILTER_TOKEN_TO_SUBTYPE;
77491
77424
  exports.BASELINE_FONT_SCALE = BASELINE_FONT_SCALE;
77492
77425
  exports.BEVEL_PRESETS = BEVEL_PRESETS;
77493
77426
  exports.BI_LEVEL_THRESHOLDS = BI_LEVEL_THRESHOLDS;
77494
- exports.BODY_TEXT_STYLE_KEYS = BODY_TEXT_STYLE_KEYS;
77495
77427
  exports.BOTTOM_TRIGGER_FRACTION = BOTTOM_TRIGGER_FRACTION;
77496
77428
  exports.BRIGHTNESS_CONTRAST_STEPS = BRIGHTNESS_CONTRAST_STEPS;
77497
77429
  exports.BROADCAST_THROTTLE_MS = BROADCAST_THROTTLE_MS;
@@ -78964,7 +78896,6 @@ exports.isAudienceDisplayTab = isAudienceDisplayTab;
78964
78896
  exports.isAudienceTab = isAudienceTab;
78965
78897
  exports.isBackstagePageVisible = isBackstagePageVisible;
78966
78898
  exports.isBlackboardActive = isBlackboardActive;
78967
- exports.isBodyTextStyleKey = isBodyTextStyleKey;
78968
78899
  exports.isBookmarkGated = isBookmarkGated;
78969
78900
  exports.isBrowserOpenableMime = isBrowserOpenableMime;
78970
78901
  exports.isChart3DViewEnabled = isChart3DViewEnabled;
@@ -79338,7 +79269,6 @@ exports.reanchorEditFrame = reanchorEditFrame;
79338
79269
  exports.rebaseOptions = rebaseOptions;
79339
79270
  exports.rebuildDrawingShapesIfCleared = rebuildDrawingShapesIfCleared;
79340
79271
  exports.recolorInheritedText = recolorInheritedText;
79341
- exports.reconcileDecorationFlags = reconcileDecorationFlags;
79342
79272
  exports.reconcileInlineListFormatting = reconcileInlineListFormatting;
79343
79273
  exports.reconcileInlineListSnapshot = reconcileInlineListSnapshot;
79344
79274
  exports.recordProgressPercent = recordProgressPercent;
@@ -79704,7 +79634,6 @@ exports.splitRegionComponents = splitRegionComponents;
79704
79634
  exports.splitRunByScriptFont = splitRunByScriptFont;
79705
79635
  exports.splitRunForMetrics = splitRunForMetrics;
79706
79636
  exports.splitStyledRun = splitStyledRun;
79707
- exports.splitTextStyleUpdate = splitTextStyleUpdate;
79708
79637
  exports.splitWordsForUnderline = splitWordsForUnderline;
79709
79638
  exports.splitsUnderlineIntoWords = splitsUnderlineIntoWords;
79710
79639
  exports.startCropSession = startCropSession;