sanity 6.3.0-next.41 → 6.3.0-next.45

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.
@@ -46,7 +46,7 @@ import { isHotkey } from "is-hotkey-esm";
46
46
  import FocusLock from "react-focus-lock";
47
47
  import { defineEvent, createSessionId, createBatchedStore } from "@sanity/telemetry";
48
48
  import { isDraftId as isDraftId$1, isVersionId as isVersionId$1, getVersionNameFromId } from "@sanity/id-utils";
49
- import { usePortableTextEditor, PortableTextEditor, usePortableTextEditorSelection, useEditor, useEditorSelector, PortableTextEditable, EditorProvider, defineSchema, keyGenerator as keyGenerator$1 } from "@portabletext/editor";
49
+ import { usePortableTextEditor, PortableTextEditor, usePortableTextEditorSelection, useEditor, useEditorSelector, PortableTextEditable, defineTextBlock, defineBlockObject, defineInlineObject, EditorProvider, defineSchema, keyGenerator as keyGenerator$1 } from "@portabletext/editor";
50
50
  import { nanoid, customAlphabet } from "nanoid";
51
51
  import { useTelemetry, TelemetryProvider, DeferredTelemetryProvider } from "@sanity/telemetry/react";
52
52
  import { cleanupEfficiency, makeDiff, DIFF_INSERT, DIFF_DELETE, DIFF_EQUAL, applyPatches, parsePatch, makePatches } from "@sanity/diff-match-patch";
@@ -141,7 +141,7 @@ import { InsertMenu as InsertMenu$2 } from "@sanity/insert-menu";
141
141
  import last$1 from "lodash-es/last.js";
142
142
  import getSlug from "speakingurl";
143
143
  import { PortableText as PortableText$1, toPlainText as toPlainText$1 } from "@portabletext/react";
144
- import { BehaviorPlugin, EventListenerPlugin } from "@portabletext/editor/plugins";
144
+ import { NodePlugin, BehaviorPlugin, EventListenerPlugin } from "@portabletext/editor/plugins";
145
145
  import { getSelectionStartBlock, getSelectionEndBlock, getValue as getValue$1 } from "@portabletext/editor/selectors";
146
146
  import { OneLinePlugin } from "@portabletext/plugin-one-line";
147
147
  import { defineBehavior, raise, forward } from "@portabletext/editor/behaviors";
@@ -186,6 +186,8 @@ import upperFirst from "lodash-es/upperFirst.js";
186
186
  import { isThisISOWeek } from "date-fns/isThisISOWeek";
187
187
  import { isToday } from "date-fns/isToday";
188
188
  import { formatDistance } from "date-fns/formatDistance";
189
+ import { DndProvider, useDropPosition } from "@portabletext/plugin-dnd";
190
+ import { ListIndexProvider, useListIndex } from "@portabletext/plugin-list-index";
189
191
  import set$2 from "lodash-es/set.js";
190
192
  import { htmlToPortableText } from "@portabletext/html";
191
193
  import { MarkdownShortcutsPlugin } from "@portabletext/plugin-markdown-shortcuts";
@@ -3473,7 +3475,7 @@ function useGetI18nText(input) {
3473
3475
  let t0;
3474
3476
  if ($[0] !== input) {
3475
3477
  const items = Array.isArray(input) ? input : [input];
3476
- t0 = JSON.stringify(items.flatMap(_temp2$1D).filter(isNonNullable$2).sort()), $[0] = input, $[1] = t0;
3478
+ t0 = JSON.stringify(items.flatMap(_temp2$1C).filter(isNonNullable$2).sort()), $[0] = input, $[1] = t0;
3477
3479
  } else
3478
3480
  t0 = $[1];
3479
3481
  const stableNamespaces = t0;
@@ -3507,7 +3509,7 @@ function useGetI18nText(input) {
3507
3509
  }) : node;
3508
3510
  }, $[4] = t, $[5] = t2) : t2 = $[5], t2;
3509
3511
  }
3510
- function _temp2$1D(item) {
3512
+ function _temp2$1C(item) {
3511
3513
  return item?.i18n ? Object.values(item.i18n).map(_temp$3P) : [];
3512
3514
  }
3513
3515
  function _temp$3P(t0) {
@@ -9869,7 +9871,7 @@ function useTimelineStore(t0) {
9869
9871
  $[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = () => timelineStateRef.current, $[23] = t10) : t10 = $[23];
9870
9872
  let t11;
9871
9873
  $[24] !== onError || $[25] !== timelineController$ ? (t11 = (callback) => {
9872
- const subscription = timelineController$.pipe(map$1(_temp3$N), distinctUntilChanged$1(deepEquals), catchError$1((err_0) => (onError?.(err_0), of(INITIAL_TIMELINE_STATE))), tap$1((timelineState) => {
9874
+ const subscription = timelineController$.pipe(map$1(_temp3$M), distinctUntilChanged$1(deepEquals), catchError$1((err_0) => (onError?.(err_0), of(INITIAL_TIMELINE_STATE))), tap$1((timelineState) => {
9873
9875
  timelineStateRef.current = timelineState;
9874
9876
  }), tap$1(callback)).subscribe();
9875
9877
  return () => subscription.unsubscribe();
@@ -9883,8 +9885,8 @@ function useTimelineStore(t0) {
9883
9885
  subscribe: t11
9884
9886
  }, $[27] = t11, $[28] = t7, $[29] = t8, $[30] = t9, $[31] = t12) : t12 = $[31], t12;
9885
9887
  }
9886
- function _temp3$N(innerController_0) {
9887
- const chunks = innerController_0.timeline.mapChunks(_temp$3K), lastNonDeletedChunk = chunks.filter(_temp2$1C), hasMoreChunks = !innerController_0.timeline.reachedEarliestEntry;
9888
+ function _temp3$M(innerController_0) {
9889
+ const chunks = innerController_0.timeline.mapChunks(_temp$3K), lastNonDeletedChunk = chunks.filter(_temp2$1B), hasMoreChunks = !innerController_0.timeline.reachedEarliestEntry;
9888
9890
  hasMoreChunks && chunks.length > 16 && innerController_0.setLoadMore(!1);
9889
9891
  const timelineReady = !["invalid", "loading"].includes(innerController_0.selectionState);
9890
9892
  return {
@@ -9904,7 +9906,7 @@ function _temp3$N(innerController_0) {
9904
9906
  timelineReady
9905
9907
  };
9906
9908
  }
9907
- function _temp2$1C(chunk_1) {
9909
+ function _temp2$1B(chunk_1) {
9908
9910
  return !["delete", "initial"].includes(chunk_1.type);
9909
9911
  }
9910
9912
  function _temp$3K(c2) {
@@ -11873,7 +11875,7 @@ function useRelativeTime(time, t0) {
11873
11875
  const $ = c(5);
11874
11876
  let t1;
11875
11877
  $[0] !== t0 ? (t1 = t0 === void 0 ? {} : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
11876
- const options = t1, [now, updateNow] = useReducer(_temp$3F, null, _temp2$1B), resolved = useFormatRelativeTime(time, options.relativeTo || now, options);
11878
+ const options = t1, [now, updateNow] = useReducer(_temp$3F, null, _temp2$1A), resolved = useFormatRelativeTime(time, options.relativeTo || now, options);
11877
11879
  let t2, t3;
11878
11880
  return $[2] !== resolved.refreshInterval ? (t2 = () => {
11879
11881
  let timerId;
@@ -11887,7 +11889,7 @@ function useRelativeTime(time, t0) {
11887
11889
  };
11888
11890
  }, t3 = [resolved.refreshInterval], $[2] = resolved.refreshInterval, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), useEffect(t2, t3), resolved.timestamp;
11889
11891
  }
11890
- function _temp2$1B() {
11892
+ function _temp2$1A() {
11891
11893
  return Date.now();
11892
11894
  }
11893
11895
  function _temp$3F() {
@@ -13334,7 +13336,7 @@ const SizeDiff = styled.div.withConfig({
13334
13336
  let t4;
13335
13337
  if ($[4] !== changedFields || $[5] !== schemaType.fields) {
13336
13338
  let t52;
13337
- $[7] !== changedFields ? (t52 = (field_0) => field_0.name !== "asset" && changedFields.includes(field_0.name), $[7] = changedFields, $[8] = t52) : t52 = $[8], t4 = schemaType.fields.filter(t52).map(_temp2$1A), $[4] = changedFields, $[5] = schemaType.fields, $[6] = t4;
13339
+ $[7] !== changedFields ? (t52 = (field_0) => field_0.name !== "asset" && changedFields.includes(field_0.name), $[7] = changedFields, $[8] = t52) : t52 = $[8], t4 = schemaType.fields.filter(t52).map(_temp2$1z), $[4] = changedFields, $[5] = schemaType.fields, $[6] = t4;
13338
13340
  } else
13339
13341
  t4 = $[6];
13340
13342
  const nestedFields = t4, pctDiff = getSizeDiff(prev?.size, next?.size);
@@ -13392,7 +13394,7 @@ function _temp$3C(t0) {
13392
13394
  const [name_0] = t0;
13393
13395
  return name_0;
13394
13396
  }
13395
- function _temp2$1A(field_1) {
13397
+ function _temp2$1z(field_1) {
13396
13398
  return field_1.name;
13397
13399
  }
13398
13400
  function hexToRgba(hex2, opacity) {
@@ -15418,7 +15420,7 @@ function GroupChange(props2) {
15418
15420
  ] }), $[20] = changes, $[21] = confirmRevertOpen, $[22] = group2.key, $[23] = group2.path.length, $[24] = handleRevertChanges, $[25] = hidden, $[26] = isComparingCurrent, $[27] = isPermissionsLoading, $[28] = isPortableText2, $[29] = isRevertButtonHovered, $[30] = permissions?.granted, $[31] = readOnly, $[32] = revertButtonElement, $[33] = t8) : t8 = $[33];
15419
15421
  const content = t8;
15420
15422
  let t9;
15421
- $[34] !== group2.schemaType ? (t9 = group2.schemaType?.jsonType === "array" && group2.schemaType.of.some(_temp2$1z), $[34] = group2.schemaType, $[35] = t9) : t9 = $[35];
15423
+ $[34] !== group2.schemaType ? (t9 = group2.schemaType?.jsonType === "array" && group2.schemaType.of.some(_temp2$1y), $[34] = group2.schemaType, $[35] = t9) : t9 = $[35];
15422
15424
  const isPortableTextGroupArray = t9;
15423
15425
  let t10;
15424
15426
  return $[36] !== FieldWrapper2 || $[37] !== content || $[38] !== groupPath || $[39] !== hidden || $[40] !== isNestedInDiff || $[41] !== isPortableTextGroupArray || $[42] !== isRevertButtonHovered || $[43] !== restProps || $[44] !== titlePath ? (t10 = hidden ? null : /* @__PURE__ */ jsxs(Stack, { space: 1, ...restProps, children: [
@@ -15426,7 +15428,7 @@ function GroupChange(props2) {
15426
15428
  isNestedInDiff || isPortableTextGroupArray ? content : /* @__PURE__ */ jsx(FieldWrapper2, { hasRevertHover: isRevertButtonHovered, path: groupPath, children: content })
15427
15429
  ] }), $[36] = FieldWrapper2, $[37] = content, $[38] = groupPath, $[39] = hidden, $[40] = isNestedInDiff, $[41] = isPortableTextGroupArray, $[42] = isRevertButtonHovered, $[43] = restProps, $[44] = titlePath, $[45] = t10) : t10 = $[45], t10;
15428
15430
  }
15429
- function _temp2$1z(ofType) {
15431
+ function _temp2$1y(ofType) {
15430
15432
  return ofType.name === "block";
15431
15433
  }
15432
15434
  function _temp$3y(change) {
@@ -16329,7 +16331,7 @@ const DefaultAnnotationComponent = (props2) => {
16329
16331
  textElement,
16330
16332
  validation: validation2,
16331
16333
  value
16332
- } = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$3u), hasWarning = validation2.some(_temp2$1y), hasMarkers = markers.length > 0, {
16334
+ } = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$3u), hasWarning = validation2.some(_temp2$1x), hasMarkers = markers.length > 0, {
16333
16335
  t
16334
16336
  } = useTranslation(), {
16335
16337
  register,
@@ -16375,7 +16377,7 @@ const DefaultAnnotationComponent = (props2) => {
16375
16377
  function _temp$3u(v) {
16376
16378
  return v.level === "error";
16377
16379
  }
16378
- function _temp2$1y(v_0) {
16380
+ function _temp2$1x(v_0) {
16379
16381
  return v_0.level === "warning";
16380
16382
  }
16381
16383
  function createStore(reportedValues, publish2) {
@@ -16461,14 +16463,14 @@ const useChangeIndicatorsReporter = (id2, value, isEqual2) => {
16461
16463
  function useHoveredChange() {
16462
16464
  const $ = c(2), reportedValues = useChangeIndicatorsReportedValues();
16463
16465
  let t0;
16464
- $[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$3s).sort(_temp2$1x), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
16466
+ $[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$3s).sort(_temp2$1w), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
16465
16467
  const hoveredEntry = t0[0];
16466
16468
  if (hoveredEntry) {
16467
16469
  const [, change_0] = hoveredEntry;
16468
16470
  return change_0;
16469
16471
  }
16470
16472
  }
16471
- function _temp2$1x(a, b) {
16473
+ function _temp2$1w(a, b) {
16472
16474
  return b[1].path.length - a[1].path.length;
16473
16475
  }
16474
16476
  function _temp$3s(t0) {
@@ -16974,7 +16976,7 @@ function useDivergenceNavigator(t0) {
16974
16976
  $[9] !== divergences ? (t102 = combineLatest({
16975
16977
  divergences,
16976
16978
  schemaType: schemaTypeContext.pipe(filter$1(_temp$3r)),
16977
- formState: formStateContext.pipe(filter$1(_temp2$1w), distinctUntilChanged$1(_temp3$M), map$1(_temp4$k))
16979
+ formState: formStateContext.pipe(filter$1(_temp2$1v), distinctUntilChanged$1(_temp3$L), map$1(_temp4$k))
16978
16980
  }), $[9] = divergences, $[10] = t102) : t102 = $[10], t9 = t102;
16979
16981
  }
16980
16982
  const context = t9;
@@ -17034,10 +17036,10 @@ function useDivergenceNavigator(t0) {
17034
17036
  function _temp4$k(state) {
17035
17037
  return state && pick(state, ["groups", "_allMembers"]);
17036
17038
  }
17037
- function _temp3$M(previous, current) {
17039
+ function _temp3$L(previous, current) {
17038
17040
  return previous.value?._id === current.value?._id;
17039
17041
  }
17040
- function _temp2$1w(value_0) {
17042
+ function _temp2$1v(value_0) {
17041
17043
  return typeof value_0 < "u";
17042
17044
  }
17043
17045
  function _temp$3r(value) {
@@ -17906,8 +17908,8 @@ function useCollateDivergencesContext(t0) {
17906
17908
  if ($[29] !== context || $[30] !== readUpstreamAtFork) {
17907
17909
  let t14;
17908
17910
  $[32] !== context ? (t14 = (nextContext) => context.next(nextContext), $[32] = context, $[33] = t14) : t14 = $[33], t13 = combineLatest({
17909
- upstreamHead: listenUpstreamHead.pipe(filter$1(_temp2$1v)),
17910
- subjectHead: listenSubjectHead.pipe(filter$1(_temp3$L)),
17911
+ upstreamHead: listenUpstreamHead.pipe(filter$1(_temp2$1u)),
17912
+ subjectHead: listenSubjectHead.pipe(filter$1(_temp3$K)),
17911
17913
  resolutions: listenResolutions.pipe(map$1(_temp4$j)),
17912
17914
  upstreamAtFork: readUpstreamAtFork.pipe(filter$1(_temp5$b), map$1(_temp6$7), filter$1(_temp7$4))
17913
17915
  }).pipe(tap$1(t14)), $[29] = context, $[30] = readUpstreamAtFork, $[31] = t13;
@@ -17930,10 +17932,10 @@ function _temp5$b(revision) {
17930
17932
  function _temp4$j(nextResolutions) {
17931
17933
  return nextResolutions ?? [];
17932
17934
  }
17933
- function _temp3$L(document_0) {
17935
+ function _temp3$K(document_0) {
17934
17936
  return typeof document_0 < "u" && document_0 !== null;
17935
17937
  }
17936
- function _temp2$1v(document2) {
17938
+ function _temp2$1u(document2) {
17937
17939
  return typeof document2 < "u" && document2 !== null;
17938
17940
  }
17939
17941
  function _temp$3q() {
@@ -18155,10 +18157,10 @@ function useDivergenceController(divergence, allDivergences, contextReadOnly) {
18155
18157
  let t32;
18156
18158
  $[10] !== path ? (t32 = (state) => state?.loading ? of({
18157
18159
  isLoading: !0
18158
- }) : of(state).pipe(filter$1(_temp$3p), map$1(_temp2$1u), switchMap$1((document_0) => document_0 ? of(get$1(document_0, path)).pipe(map$1((value) => ({
18160
+ }) : of(state).pipe(filter$1(_temp$3p), map$1(_temp2$1t), switchMap$1((document_0) => document_0 ? of(get$1(document_0, path)).pipe(map$1((value) => ({
18159
18161
  value,
18160
18162
  document: document_0
18161
- })), startWith$1(void 0)) : EMPTY$5), map$1(_temp3$K)), $[10] = path, $[11] = t32) : t32 = $[11], t2 = getDocumentAtRevision({
18163
+ })), startWith$1(void 0)) : EMPTY$5), map$1(_temp3$J)), $[10] = path, $[11] = t32) : t32 = $[11], t2 = getDocumentAtRevision({
18162
18164
  client,
18163
18165
  documentId: upstreamId,
18164
18166
  revisionId: upstreamRevisionId
@@ -18245,13 +18247,13 @@ function _temp5$a(value_2) {
18245
18247
  function _temp4$i(document_1) {
18246
18248
  return document_1 !== null;
18247
18249
  }
18248
- function _temp3$K(value_0) {
18250
+ function _temp3$J(value_0) {
18249
18251
  return {
18250
18252
  isLoading: !1,
18251
18253
  value: value_0
18252
18254
  };
18253
18255
  }
18254
- function _temp2$1u(t0) {
18256
+ function _temp2$1t(t0) {
18255
18257
  const {
18256
18258
  document: document2
18257
18259
  } = t0;
@@ -18699,7 +18701,7 @@ function RootFieldActionMenuGroup(props2) {
18699
18701
  open
18700
18702
  } = props2, {
18701
18703
  title
18702
- } = useI18nText(node), handlePointerDown = _temp2$1t, t0 = open ? void 0 : title;
18704
+ } = useI18nText(node), handlePointerDown = _temp2$1s, t0 = open ? void 0 : title;
18703
18705
  let t1;
18704
18706
  $[0] !== node.title ? (t1 = {
18705
18707
  ...STATUS_BUTTON_TOOLTIP_PROPS,
@@ -18715,7 +18717,7 @@ function RootFieldActionMenuGroup(props2) {
18715
18717
  let t6;
18716
18718
  return $[10] !== onClose || $[11] !== onOpen || $[12] !== t2 || $[13] !== t3 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(MenuButton, { button: t2, id: t3, menu: t5, onOpen, onClose, popover: ROOT_MENU_BUTTON_POPOVER_PROPS }), $[10] = onClose, $[11] = onOpen, $[12] = t2, $[13] = t3, $[14] = t5, $[15] = t6) : t6 = $[15], t6;
18717
18719
  }
18718
- function _temp2$1t(event) {
18720
+ function _temp2$1s(event) {
18719
18721
  event.preventDefault();
18720
18722
  }
18721
18723
  function _temp$3o(node) {
@@ -19930,11 +19932,11 @@ function useSearchMaxFieldDepth(overrideClient) {
19930
19932
  client
19931
19933
  }).pipe(shareReplay()));
19932
19934
  let t1;
19933
- $[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$3k), startWith(INITIAL_LOADING_STATE$5), catchError(_temp2$1s)), $[2] = dataset, $[3] = t1) : t1 = $[3];
19935
+ $[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$3k), startWith(INITIAL_LOADING_STATE$5), catchError(_temp2$1r)), $[2] = dataset, $[3] = t1) : t1 = $[3];
19934
19936
  const maxFieldDepth = useObservable(t1, INITIAL_LOADING_STATE$5)?.settings?.partialIndexSettings?.maxFieldDepth;
19935
19937
  return isFinite(maxFieldDepth) ? Math.min(maxFieldDepth, DEFAULT_MAX_FIELD_DEPTH) : DEFAULT_MAX_FIELD_DEPTH;
19936
19938
  }
19937
- function _temp2$1s(err) {
19939
+ function _temp2$1r(err) {
19938
19940
  return console.error(err), of({
19939
19941
  isLoading: !1,
19940
19942
  enabled: !0,
@@ -20252,9 +20254,9 @@ function DocumentStatusIndicator(t0) {
20252
20254
  $[13] !== t11 || $[14] !== t13 || $[15] !== t5 || $[16] !== t7 || $[17] !== t9 ? (t14 = [t5, t7, t9, t11, t13], $[13] = t11, $[14] = t13, $[15] = t5, $[16] = t7, $[17] = t9, $[18] = t14) : t14 = $[18];
20253
20255
  const indicators = t14;
20254
20256
  let t15;
20255
- return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$3h).map(_temp2$1r) }), $[19] = indicators, $[20] = t15) : t15 = $[20], t15;
20257
+ return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$3h).map(_temp2$1q) }), $[19] = indicators, $[20] = t15) : t15 = $[20], t15;
20256
20258
  }
20257
- function _temp2$1r(t0, index) {
20259
+ function _temp2$1q(t0, index) {
20258
20260
  const {
20259
20261
  status
20260
20262
  } = t0;
@@ -20515,14 +20517,14 @@ function PreviewReferenceValue$2(props2) {
20515
20517
  if (!refType_0) {
20516
20518
  const t22 = value._ref, t3 = refTypeName || "<unknown>";
20517
20519
  let t4;
20518
- $[52] !== type.to ? (t4 = type.to.map(_temp2$1q), $[52] = type.to, $[53] = t4) : t4 = $[53];
20520
+ $[52] !== type.to ? (t4 = type.to.map(_temp2$1p), $[52] = type.to, $[53] = t4) : t4 = $[53];
20519
20521
  let t5;
20520
20522
  return $[54] !== t3 || $[55] !== t4 || $[56] !== value._ref ? (t5 = /* @__PURE__ */ jsx(InvalidType, { documentId: t22, actualType: t3, declaredTypes: t4 }), $[54] = t3, $[55] = t4, $[56] = value._ref, $[57] = t5) : t5 = $[57], t5;
20521
20523
  }
20522
20524
  let t2;
20523
20525
  return $[58] !== layout || $[59] !== refType_0 || $[60] !== renderPreview || $[61] !== showTypeLabel || $[62] !== value._ref ? (t2 = /* @__PURE__ */ jsx(ReferencePreview, { id: value._ref, layout, refType: refType_0, renderPreview, showTypeLabel }), $[58] = layout, $[59] = refType_0, $[60] = renderPreview, $[61] = showTypeLabel, $[62] = value._ref, $[63] = t2) : t2 = $[63], t2;
20524
20526
  }
20525
- function _temp2$1q(toType_2) {
20527
+ function _temp2$1p(toType_2) {
20526
20528
  return toType_2.name;
20527
20529
  }
20528
20530
  function _temp$3g(toType_0) {
@@ -20590,13 +20592,13 @@ function HumanizedList(props2) {
20590
20592
  let T0, t1;
20591
20593
  if ($[1] !== listFormat || $[2] !== props2.values) {
20592
20594
  const parts = listFormat.formatToParts(props2.values);
20593
- T0 = Fragment, t1 = parts.map(_temp3$J), $[1] = listFormat, $[2] = props2.values, $[3] = T0, $[4] = t1;
20595
+ T0 = Fragment, t1 = parts.map(_temp3$I), $[1] = listFormat, $[2] = props2.values, $[3] = T0, $[4] = t1;
20594
20596
  } else
20595
20597
  T0 = $[3], t1 = $[4];
20596
20598
  let t2;
20597
20599
  return $[5] !== T0 || $[6] !== t1 ? (t2 = /* @__PURE__ */ jsx(T0, { children: t1 }), $[5] = T0, $[6] = t1, $[7] = t2) : t2 = $[7], t2;
20598
20600
  }
20599
- function _temp3$J(segment) {
20601
+ function _temp3$I(segment) {
20600
20602
  return segment.type === "element" ? /* @__PURE__ */ jsx("code", { children: segment.value }, segment.value) : segment.value;
20601
20603
  }
20602
20604
  const HeaderButton = styled.button.withConfig({
@@ -21022,7 +21024,7 @@ function ReferenceInputPreview(props2) {
21022
21024
  $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (hadFocus, hasFocus) => {
21023
21025
  !hadFocus && hasFocus && elementRef.current && elementRef.current.focus();
21024
21026
  }, $[6] = t2) : t2 = $[6], useDidUpdate(focused, t2);
21025
- const hasErrors = props2.validation.some(_temp$3c), hasWarnings = props2.validation.some(_temp2$1p), loadableReferenceInfo = useReferenceInfo$2(value?._ref, getReferenceInfo2), refTypeName = loadableReferenceInfo.result?.type || value?._strengthenOnPublish?.type;
21027
+ const hasErrors = props2.validation.some(_temp$3c), hasWarnings = props2.validation.some(_temp2$1o), loadableReferenceInfo = useReferenceInfo$2(value?._ref, getReferenceInfo2), refTypeName = loadableReferenceInfo.result?.type || value?._strengthenOnPublish?.type;
21026
21028
  let t3;
21027
21029
  $[7] !== refTypeName || $[8] !== schemaType.to ? (t3 = refTypeName ? schemaType.to.find((toType) => toType.name === refTypeName) : void 0, $[7] = refTypeName, $[8] = schemaType.to, $[9] = t3) : t3 = $[9];
21028
21030
  const refType = t3, pressed = selectedState === "pressed", selected = selectedState === "selected", hasRef = value?._ref, publishedReferenceExists = hasRef && loadableReferenceInfo.result?.isPublished;
@@ -21116,7 +21118,7 @@ function ReferenceInputPreview(props2) {
21116
21118
  let t27;
21117
21119
  return $[81] !== t26 || $[82] !== tone ? (t27 = /* @__PURE__ */ jsx(WithFocusRingCard, { border: !0, $radius: 2, padding: 1, tone, ref: setCardRef, tabIndex: -1, children: t26 }), $[81] = t26, $[82] = tone, $[83] = t27) : t27 = $[83], t27;
21118
21120
  }
21119
- function _temp2$1p(v_0) {
21121
+ function _temp2$1o(v_0) {
21120
21122
  return v_0.level === "warning";
21121
21123
  }
21122
21124
  function _temp$3c(v) {
@@ -21239,7 +21241,7 @@ function ReferenceInput(props2) {
21239
21241
  hits: [],
21240
21242
  searchString,
21241
21243
  isLoading: !1
21242
- })))))), scan(_temp2$1o, INITIAL_SEARCH_STATE$3), tap(setSearchState)), $[26] = id2, $[27] = onSearch, $[28] = push, $[29] = t, $[30] = t6) : t6 = $[30];
21244
+ })))))), scan(_temp2$1n, INITIAL_SEARCH_STATE$3), tap(setSearchState)), $[26] = id2, $[27] = onSearch, $[28] = push, $[29] = t, $[30] = t6) : t6 = $[30];
21243
21245
  const handleQueryChange = useObservableEvent(t6);
21244
21246
  let t7;
21245
21247
  $[31] !== handleQueryChange ? (t7 = () => {
@@ -21270,7 +21272,7 @@ function ReferenceInput(props2) {
21270
21272
  !hadFocusAtRef && hasFocusAtRef && elementProps.ref.current?.focus();
21271
21273
  }, $[47] = elementProps, $[48] = t13) : t13 = $[48], useDidUpdate(focusPath?.[0] === "_ref", t13);
21272
21274
  let t14;
21273
- $[49] !== searchState.hits ? (t14 = searchState.hits.map(_temp3$I), $[49] = searchState.hits, $[50] = t14) : t14 = $[50];
21275
+ $[49] !== searchState.hits ? (t14 = searchState.hits.map(_temp3$H), $[49] = searchState.hits, $[50] = t14) : t14 = $[50];
21274
21276
  const hits_0 = t14, isEditing = focusPath.length === 1 && focusPath[0] === "_ref", {
21275
21277
  menuRef,
21276
21278
  menuButtonRef,
@@ -21315,13 +21317,13 @@ function ReferenceInput(props2) {
21315
21317
  let t30;
21316
21318
  return $[103] !== props2.elementProps.style || $[104] !== t29 ? (t30 = /* @__PURE__ */ jsx("div", { style: t17, children: t29 }), $[103] = props2.elementProps.style, $[104] = t29, $[105] = t30) : t30 = $[105], t30;
21317
21319
  }
21318
- function _temp3$I(hit_0) {
21320
+ function _temp3$H(hit_0) {
21319
21321
  return {
21320
21322
  value: hit_0.id,
21321
21323
  hit: hit_0
21322
21324
  };
21323
21325
  }
21324
- function _temp2$1o(prevState, nextState) {
21326
+ function _temp2$1n(prevState, nextState) {
21325
21327
  return {
21326
21328
  ...prevState,
21327
21329
  ...nextState
@@ -21441,7 +21443,7 @@ function StudioReferenceInput(props2) {
21441
21443
  })(searchString, {
21442
21444
  perspective: options.perspective,
21443
21445
  limit: 101
21444
- }).pipe(map(_temp2$1n), switchMap((docs) => docs.length === 0 ? of([]) : combineLatest(docs.map((doc) => documentPreviewStore.observePaths({
21446
+ }).pipe(map(_temp2$1m), switchMap((docs) => docs.length === 0 ? of([]) : combineLatest(docs.map((doc) => documentPreviewStore.observePaths({
21445
21447
  _id: getPublishedId(doc._id)
21446
21448
  }, ["_rev"]).pipe(map((published) => ({
21447
21449
  id: doc._id,
@@ -21487,7 +21489,7 @@ function StudioReferenceInput(props2) {
21487
21489
  schemaType,
21488
21490
  document: documentValue,
21489
21491
  valuePath: path
21490
- }).map(_temp3$H);
21492
+ }).map(_temp3$G);
21491
21493
  t92 = (initialValueTemplateItems || []).filter((i) => allowedTypes.includes(i.template?.schemaType ?? "")).map(_temp4$h).filter(isNonNullable$2), $[35] = documentValue, $[36] = initialValueTemplateItems, $[37] = path, $[38] = schemaType, $[39] = t92;
21492
21494
  } else
21493
21495
  t92 = $[39];
@@ -21517,10 +21519,10 @@ function _temp4$h(item) {
21517
21519
  }
21518
21520
  } : void 0;
21519
21521
  }
21520
- function _temp3$H(opt) {
21522
+ function _temp3$G(opt) {
21521
21523
  return opt.type;
21522
21524
  }
21523
- function _temp2$1n(t0) {
21525
+ function _temp2$1m(t0) {
21524
21526
  const {
21525
21527
  hits
21526
21528
  } = t0;
@@ -23003,7 +23005,7 @@ function ArrayOfObjectsField(props2) {
23003
23005
  $[34] !== handleChange || $[35] !== handleOpenItem || $[36] !== member.field.path || $[37] !== member.field.schemaType || $[38] !== onPathFocus || $[39] !== resolveInitialValue2 || $[40] !== toast ? (t14 = (event_2) => {
23004
23006
  if (event_2.items.length === 0)
23005
23007
  throw new Error("Insert event should include at least one item");
23006
- const itemsWithKeys = event_2.items.map(_temp2$1m);
23008
+ const itemsWithKeys = event_2.items.map(_temp2$1l);
23007
23009
  handleChange(PatchEvent.from([insert$1(itemsWithKeys, event_2.position, [event_2.referenceItem])]));
23008
23010
  const focusItemKey = itemsWithKeys[0]._key, itemPath = [...member.field.path, {
23009
23011
  _key: focusItemKey
@@ -23137,7 +23139,7 @@ function ArrayOfObjectsField(props2) {
23137
23139
  break bb183;
23138
23140
  }
23139
23141
  case "error": {
23140
- event_4.files.forEach(_temp3$G), toast.push({
23142
+ event_4.files.forEach(_temp3$F), toast.push({
23141
23143
  status: "error",
23142
23144
  description: t("asset-sources.common.uploader.upload-failed.description"),
23143
23145
  title: t("asset-sources.common.uploader.upload-failed.title")
@@ -23227,10 +23229,10 @@ function ArrayOfObjectsField(props2) {
23227
23229
  assetSourceUploadComponents
23228
23230
  ] }), $[141] = assetSourceUploadComponents, $[142] = handleChange, $[143] = onFieldGroupSelect, $[144] = onPathBlur, $[145] = onPathFocus, $[146] = onPathOpen, $[147] = onSetFieldSetCollapsed, $[148] = onSetPathCollapsed, $[149] = t33, $[150] = t34) : t34 = $[150], t34;
23229
23231
  }
23230
- function _temp3$G(_file) {
23232
+ function _temp3$F(_file) {
23231
23233
  console.error(_file.error);
23232
23234
  }
23233
- function _temp2$1m(item) {
23235
+ function _temp2$1l(item) {
23234
23236
  return ensureKey(item);
23235
23237
  }
23236
23238
  function _temp$37(patch2) {
@@ -23426,7 +23428,7 @@ function ArrayOfPrimitivesField(props2) {
23426
23428
  file: file_0,
23427
23429
  schemaType: schemaType_0,
23428
23430
  uploader
23429
- } = t232, events$ = uploader.upload(client, file_0, schemaType_0).pipe(map(_temp2$1l), tap((event_4) => handleChange(event_4.patches)));
23431
+ } = t232, events$ = uploader.upload(client, file_0, schemaType_0).pipe(map(_temp2$1k), tap((event_4) => handleChange(event_4.patches)));
23430
23432
  uploadSubscriptions.current && uploadSubscriptions.current.unsubscribe(), uploadSubscriptions.current = events$.subscribe();
23431
23433
  }, $[56] = client, $[57] = handleChange, $[58] = t22) : t22 = $[58];
23432
23434
  const handleUpload = t22, t23 = member.field.value, t24 = member.field.displayInlineChanges ?? !1;
@@ -23474,7 +23476,7 @@ function ArrayOfPrimitivesField(props2) {
23474
23476
  let t29;
23475
23477
  return $[115] !== handleChange || $[116] !== onFieldGroupSelect || $[117] !== onPathBlur || $[118] !== onPathFocus || $[119] !== onPathOpen || $[120] !== onSetFieldSetCollapsed || $[121] !== onSetPathCollapsed || $[122] !== t28 ? (t29 = /* @__PURE__ */ jsx(FormCallbacksProvider, { onFieldGroupSelect, onChange: handleChange, onPathOpen, onSetFieldSetCollapsed, onSetPathCollapsed, onPathBlur, onPathFocus, children: t28 }), $[115] = handleChange, $[116] = onFieldGroupSelect, $[117] = onPathBlur, $[118] = onPathFocus, $[119] = onPathOpen, $[120] = onSetFieldSetCollapsed, $[121] = onSetPathCollapsed, $[122] = t28, $[123] = t29) : t29 = $[123], t29;
23476
23478
  }
23477
- function _temp2$1l(uploadProgressEvent) {
23479
+ function _temp2$1k(uploadProgressEvent) {
23478
23480
  return PatchEvent.from(uploadProgressEvent.patches || []);
23479
23481
  }
23480
23482
  function _temp$36(patch2) {
@@ -23765,7 +23767,7 @@ function PrimitiveField(props2) {
23765
23767
  }
23766
23768
  const validation2 = t14;
23767
23769
  let t15;
23768
- $[44] !== validation2 ? (t15 = validation2.filter(_temp2$1k).map(_temp3$F).join(`
23770
+ $[44] !== validation2 ? (t15 = validation2.filter(_temp2$1j).map(_temp3$E).join(`
23769
23771
  `) || void 0, $[44] = validation2, $[45] = t15) : t15 = $[45];
23770
23772
  const validationError = t15, t16 = member.field.value, t17 = member.field.schemaType, t18 = member.field.displayInlineChanges ?? !1;
23771
23773
  let t19;
@@ -23794,10 +23796,10 @@ function PrimitiveField(props2) {
23794
23796
  let t24;
23795
23797
  return $[67] !== fieldActions || $[68] !== member.field.changed || $[69] !== member.field.id || $[70] !== member.field.level || $[71] !== member.field.path || $[72] !== member.field.presence || $[73] !== member.field.schemaType.description || $[74] !== member.field.schemaType.title || $[75] !== member.index || $[76] !== member.name || $[77] !== renderField || $[78] !== t20 || $[79] !== t21 || $[80] !== t22 || $[81] !== t23 || $[82] !== validation2 ? (t24 = /* @__PURE__ */ jsx(RenderField, { actions: fieldActions, changed: member.field.changed, description: member.field.schemaType.description, index: member.index, inputId: member.field.id, inputProps: t20, level: member.field.level, name: member.name, path: member.field.path, presence: member.field.presence, schemaType: t21, title: member.field.schemaType.title, validation: validation2, value: t22, render: renderField, children: t23 }), $[67] = fieldActions, $[68] = member.field.changed, $[69] = member.field.id, $[70] = member.field.level, $[71] = member.field.path, $[72] = member.field.presence, $[73] = member.field.schemaType.description, $[74] = member.field.schemaType.title, $[75] = member.index, $[76] = member.name, $[77] = renderField, $[78] = t20, $[79] = t21, $[80] = t22, $[81] = t23, $[82] = validation2, $[83] = t24) : t24 = $[83], t24;
23796
23798
  }
23797
- function _temp3$F(item_1) {
23799
+ function _temp3$E(item_1) {
23798
23800
  return item_1.message;
23799
23801
  }
23800
- function _temp2$1k(item_0) {
23802
+ function _temp2$1j(item_0) {
23801
23803
  return item_0.level === "error";
23802
23804
  }
23803
23805
  function _temp$35(item) {
@@ -24036,7 +24038,7 @@ const InvalidValueInput = forwardRef((props2, ref) => {
24036
24038
  validTypes,
24037
24039
  onChange
24038
24040
  } = props2;
24039
- useImperativeHandle(ref, _temp2$1j);
24041
+ useImperativeHandle(ref, _temp2$1i);
24040
24042
  let t0;
24041
24043
  $[0] !== onChange ? (t0 = () => {
24042
24044
  onChange(PatchEvent.from(unset()));
@@ -24079,7 +24081,7 @@ const InvalidValueInput = forwardRef((props2, ref) => {
24079
24081
  let t11;
24080
24082
  $[32] !== t || $[33] !== validTypes.length ? (t11 = validTypes.length !== 1 && /* @__PURE__ */ jsx(Text$1, { as: "p", muted: !0, size: 1, children: t("inputs.invalid-value.details.multi-type-description") }), $[32] = t, $[33] = validTypes.length, $[34] = t11) : t11 = $[34];
24081
24083
  let t12;
24082
- $[35] !== validTypes ? (t12 = validTypes.length !== 1 && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp3$E) }), $[35] = validTypes, $[36] = t12) : t12 = $[36];
24084
+ $[35] !== validTypes ? (t12 = validTypes.length !== 1 && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp3$D) }), $[35] = validTypes, $[36] = t12) : t12 = $[36];
24083
24085
  let t13;
24084
24086
  $[37] !== actualType ? (t13 = {
24085
24087
  actualType
@@ -24135,12 +24137,12 @@ function ConvertButton(t0) {
24135
24137
  }
24136
24138
  function _temp$33() {
24137
24139
  }
24138
- function _temp2$1j() {
24140
+ function _temp2$1i() {
24139
24141
  return {
24140
24142
  focus: _temp$33
24141
24143
  };
24142
24144
  }
24143
- function _temp3$E(validType) {
24145
+ function _temp3$D(validType) {
24144
24146
  return /* @__PURE__ */ jsx(Text$1, { as: "li", children: /* @__PURE__ */ jsx("code", { children: validType }) }, validType);
24145
24147
  }
24146
24148
  const FormCell = styled.div.withConfig({
@@ -24389,11 +24391,11 @@ function FormFieldValidationStatus(props2) {
24389
24391
  __unstable_showSummary: showSummary,
24390
24392
  fontSize,
24391
24393
  placement
24392
- } = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$p : t0, hasErrors = validation2.some(_temp$32), hasWarnings = validation2.some(_temp2$1i), status = hasErrors ? "error" : hasWarnings ? "warning" : "info";
24394
+ } = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$p : t0, hasErrors = validation2.some(_temp$32), hasWarnings = validation2.some(_temp2$1h), status = hasErrors ? "error" : hasWarnings ? "warning" : "info";
24393
24395
  let t1;
24394
24396
  $[0] !== showSummary || $[1] !== validation2 ? (t1 = showSummary && /* @__PURE__ */ jsx(FormFieldValidationSummary, { validation: validation2 }), $[0] = showSummary, $[1] = validation2, $[2] = t1) : t1 = $[2];
24395
24397
  let t2;
24396
- $[3] !== showSummary || $[4] !== validation2 ? (t2 = !showSummary && /* @__PURE__ */ jsx(Fragment$1, { children: validation2.map(_temp3$D) }), $[3] = showSummary, $[4] = validation2, $[5] = t2) : t2 = $[5];
24398
+ $[3] !== showSummary || $[4] !== validation2 ? (t2 = !showSummary && /* @__PURE__ */ jsx(Fragment$1, { children: validation2.map(_temp3$C) }), $[3] = showSummary, $[4] = validation2, $[5] = t2) : t2 = $[5];
24397
24399
  let t3;
24398
24400
  $[6] !== t1 || $[7] !== t2 ? (t3 = /* @__PURE__ */ jsxs(StyledStack, { space: 3, children: [
24399
24401
  t1,
@@ -24408,10 +24410,10 @@ function FormFieldValidationStatus(props2) {
24408
24410
  let t7;
24409
24411
  return $[15] !== placement || $[16] !== t3 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsx(Tooltip, { content: t3, portal: !0, placement, fallbackPlacements: t4, children: t6 }), $[15] = placement, $[16] = t3, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
24410
24412
  }
24411
- function _temp3$D(item, itemIndex) {
24413
+ function _temp3$C(item, itemIndex) {
24412
24414
  return /* @__PURE__ */ jsx(FormFieldValidationStatusItem, { validation: item }, itemIndex);
24413
24415
  }
24414
- function _temp2$1i(v_0) {
24416
+ function _temp2$1h(v_0) {
24415
24417
  return v_0.level === "warning";
24416
24418
  }
24417
24419
  function _temp$32(v) {
@@ -24954,7 +24956,7 @@ function MixedArrayAlert(props2) {
24954
24956
  } = props2;
24955
24957
  let t0;
24956
24958
  $[0] !== error.value || $[1] !== onChange ? (t0 = () => {
24957
- const patches = (error.value || []).flatMap(_temp$2$).reverse().map(_temp2$1h);
24959
+ const patches = (error.value || []).flatMap(_temp$2$).reverse().map(_temp2$1g);
24958
24960
  onChange(PatchEvent.from(patches));
24959
24961
  }, $[0] = error.value, $[1] = onChange, $[2] = t0) : t0 = $[2];
24960
24962
  const handleRemoveNonObjectValues = t0, {
@@ -24986,7 +24988,7 @@ function MixedArrayAlert(props2) {
24986
24988
  let t13;
24987
24989
  return $[28] !== error.schemaType.description || $[29] !== error.schemaType.title || $[30] !== path || $[31] !== t12 ? (t13 = /* @__PURE__ */ jsx(FormField, { title: t1, description: t2, path, children: t12 }), $[28] = error.schemaType.description, $[29] = error.schemaType.title, $[30] = path, $[31] = t12, $[32] = t13) : t13 = $[32], t13;
24988
24990
  }
24989
- function _temp2$1h(index_0) {
24991
+ function _temp2$1g(index_0) {
24990
24992
  return unset([index_0]);
24991
24993
  }
24992
24994
  function _temp$2$(item, index) {
@@ -26121,7 +26123,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
26121
26123
  $[30] !== accept || $[31] !== isImageOnlyWildCard || $[32] !== isLoading || $[33] !== listFormat || $[34] !== t ? (t16 = !isImageOnlyWildCard && !isLoading && accept?.length > 0 && /* @__PURE__ */ jsx(Card, { tone: "primary", padding: 3, border: !0, radius: 2, children: /* @__PURE__ */ jsxs(Flex, { gap: 3, align: "center", children: [
26122
26124
  /* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsx(InfoOutlineIcon, {}) }),
26123
26125
  /* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "asset-source.dialog.accept-message", values: {
26124
- acceptTypes: listFormat.format(accept.split(",").map(_temp2$1g))
26126
+ acceptTypes: listFormat.format(accept.split(",").map(_temp2$1f))
26125
26127
  } }) })
26126
26128
  ] }) }), $[30] = accept, $[31] = isImageOnlyWildCard, $[32] = isLoading, $[33] = listFormat, $[34] = t, $[35] = t16) : t16 = $[35];
26127
26129
  let t17;
@@ -26143,7 +26145,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
26143
26145
  function _temp$2V() {
26144
26146
  return `default-asset-source-${uniqueId()}`;
26145
26147
  }
26146
- function _temp2$1g(type) {
26148
+ function _temp2$1f(type) {
26147
26149
  return type.trim();
26148
26150
  }
26149
26151
  const DatasetAssetSourceComponent = function(props2, ref) {
@@ -26530,7 +26532,7 @@ function fileTarget(Component2) {
26530
26532
  }, t6 = [pasteTarget, handlePaste], $[16] = handlePaste, $[17] = pasteTarget, $[18] = t5, $[19] = t6) : (t5 = $[18], t6 = $[19]), useEffect(t5, t6);
26531
26533
  let t7;
26532
26534
  $[20] !== emitFiles || $[21] !== onFiles || $[22] !== onFilesOut ? (t7 = (event_2) => {
26533
- if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp2$1f).some(_temp3$C))
26535
+ if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp2$1e).some(_temp3$B))
26534
26536
  return;
26535
26537
  event_2.preventDefault(), event_2.stopPropagation();
26536
26538
  const dataTransfer = event_2.nativeEvent.dataTransfer;
@@ -26596,13 +26598,13 @@ function _temp$2U(t) {
26596
26598
  const normalized = t.replace(/^web /, "");
26597
26599
  return normalized === "application/portable-text" || normalized === "application/x-portable-text";
26598
26600
  }
26599
- function _temp2$1f(item) {
26601
+ function _temp2$1e(item) {
26600
26602
  return {
26601
26603
  type: item.type,
26602
26604
  kind: item.kind
26603
26605
  };
26604
26606
  }
26605
- function _temp3$C(item_0) {
26607
+ function _temp3$B(item_0) {
26606
26608
  return isPortableTextItem(item_0);
26607
26609
  }
26608
26610
  function _temp4$f(item_1) {
@@ -26706,7 +26708,7 @@ function uploadTarget$1(Component2) {
26706
26708
  let t0;
26707
26709
  if ($[11] !== types) {
26708
26710
  const assetTypes = types.filter(_temp$2T);
26709
- t0 = assetTypes.length > 0 && assetTypes.every(_temp2$1e), $[11] = types, $[12] = t0;
26711
+ t0 = assetTypes.length > 0 && assetTypes.every(_temp2$1d), $[11] = types, $[12] = t0;
26710
26712
  } else
26711
26713
  t0 = $[12];
26712
26714
  const disableUpload = t0, t1 = source.title || source.name;
@@ -26733,7 +26735,7 @@ function uploadTarget$1(Component2) {
26733
26735
  title: t("inputs.array.error.cannot-upload-unable-to-convert", {
26734
26736
  count: rejected.length
26735
26737
  }),
26736
- description: rejected.map(_temp3$B)
26738
+ description: rejected.map(_temp3$A)
26737
26739
  });
26738
26740
  }, $[20] = pushToast, $[21] = t, $[22] = t6) : t6 = $[22];
26739
26741
  const alertRejectedFiles = t6;
@@ -26913,10 +26915,10 @@ function getFilesAndAssetSources(options) {
26913
26915
  function _temp$2T(type) {
26914
26916
  return _isType(type, "image") || _isType(type, "file") || _isType(type, "sanity.video");
26915
26917
  }
26916
- function _temp2$1e(type_0) {
26918
+ function _temp2$1d(type_0) {
26917
26919
  return type_0.options?.disableNew === !0;
26918
26920
  }
26919
- function _temp3$B(task, i) {
26921
+ function _temp3$A(task, i) {
26920
26922
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, padding: 2, children: [
26921
26923
  /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { weight: "medium", children: task.file.name }) }),
26922
26924
  /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text$1, { size: 1, children: [
@@ -27659,14 +27661,14 @@ function useValuePreview(props2) {
27659
27661
  viewOptions: {
27660
27662
  ordering
27661
27663
  }
27662
- }).pipe(map(_temp$2Q), catchError(_temp2$1d)), $[3] = chosenPerspectiveStack, $[4] = observeForPreview, $[5] = ordering, $[6] = perspectiveStack, $[7] = previewValue, $[8] = schemaType, $[9] = t3;
27664
+ }).pipe(map(_temp$2Q), catchError(_temp2$1c)), $[3] = chosenPerspectiveStack, $[4] = observeForPreview, $[5] = ordering, $[6] = perspectiveStack, $[7] = previewValue, $[8] = schemaType, $[9] = t3;
27663
27665
  } else
27664
27666
  t3 = $[9];
27665
27667
  t2 = t3;
27666
27668
  }
27667
27669
  return useObservable(t2, INITIAL_STATE$9);
27668
27670
  }
27669
- function _temp2$1d(error) {
27671
+ function _temp2$1c(error) {
27670
27672
  return of({
27671
27673
  isLoading: !1,
27672
27674
  error
@@ -27905,7 +27907,7 @@ function GridItem(props2) {
27905
27907
  const presence = t7, childValidation = useChildValidation(path, !0);
27906
27908
  let t8;
27907
27909
  $[14] !== childValidation ? (t8 = childValidation.length === 0 ? null : /* @__PURE__ */ jsx(Box, { paddingX: 1, paddingY: 3, children: /* @__PURE__ */ jsx(FormFieldValidationStatus, { validation: childValidation, __unstable_showSummary: !0 }) }), $[14] = childValidation, $[15] = t8) : t8 = $[15];
27908
- const validation2 = t8, hasErrors = childValidation.some(_temp$2P), hasWarnings = childValidation.some(_temp2$1c), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
27910
+ const validation2 = t8, hasErrors = childValidation.some(_temp$2P), hasWarnings = childValidation.some(_temp2$1b), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
27909
27911
  let t10;
27910
27912
  $[16] !== contextMenuButtonElement || $[17] !== handleInsert || $[18] !== insertableTypes || $[19] !== maxReached || $[20] !== maxReachedReason || $[21] !== t9 ? (t10 = {
27911
27913
  schemaTypes: insertableTypes,
@@ -27948,7 +27950,7 @@ function GridItem(props2) {
27948
27950
  readOnly,
27949
27951
  hasErrors,
27950
27952
  hasWarnings
27951
- }), handleMouseDown = _temp3$A;
27953
+ }), handleMouseDown = _temp3$z;
27952
27954
  let t18;
27953
27955
  $[53] !== onOpen ? (t18 = (event_0) => {
27954
27956
  event_0.stopPropagation(), onOpen();
@@ -27994,10 +27996,10 @@ function GridItem(props2) {
27994
27996
  t23 = $[92];
27995
27997
  return t23;
27996
27998
  }
27997
- function _temp3$A(event) {
27999
+ function _temp3$z(event) {
27998
28000
  event.preventDefault();
27999
28001
  }
28000
- function _temp2$1c(v_0) {
28002
+ function _temp2$1b(v_0) {
28001
28003
  return v_0.level === "warning";
28002
28004
  }
28003
28005
  function _temp$2P(v) {
@@ -28027,9 +28029,9 @@ function GridArrayInput(props2) {
28027
28029
  value: t1
28028
28030
  } = props2, ArrayFunctions = t0 === void 0 ? ArrayOfObjectsFunctions : t0, value = t1 === void 0 ? EMPTY$4 : t1, {
28029
28031
  t
28030
- } = useTranslation(), errorTone = validation2?.some(_temp$2O) ? "critical" : void 0, sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp2$1b;
28032
+ } = useTranslation(), errorTone = validation2?.some(_temp$2O) ? "critical" : void 0, sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp2$1a;
28031
28033
  let t2;
28032
- $[0] !== members ? (t2 = members.map(_temp3$z), $[0] = members, $[1] = t2) : t2 = $[1];
28034
+ $[0] !== members ? (t2 = members.map(_temp3$y), $[0] = members, $[1] = t2) : t2 = $[1];
28033
28035
  const memberKeys = t2;
28034
28036
  let t3;
28035
28037
  $[2] !== errorTone || $[3] !== members.length || $[4] !== schemaType.placeholder || $[5] !== t ? (t3 = members?.length === 0 && /* @__PURE__ */ jsx(Card, { padding: 3, border: !0, radius: 2, tone: errorTone, children: /* @__PURE__ */ jsx(Text$1, { align: "center", muted: !0, size: 1, children: schemaType.placeholder || /* @__PURE__ */ jsx(Fragment$1, { children: t("inputs.array.no-items-label") }) }) }), $[2] = errorTone, $[3] = members.length, $[4] = schemaType.placeholder, $[5] = t, $[6] = t3) : t3 = $[6];
@@ -28055,10 +28057,10 @@ function GridArrayInput(props2) {
28055
28057
  let t9;
28056
28058
  return $[42] !== members.length || $[43] !== schemaType || $[44] !== t8 ? (t9 = /* @__PURE__ */ jsx(ArrayValidationProvider, { schemaType, itemCount: members.length, children: t8 }), $[42] = members.length, $[43] = schemaType, $[44] = t8, $[45] = t9) : t9 = $[45], t9;
28057
28059
  }
28058
- function _temp3$z(member) {
28060
+ function _temp3$y(member) {
28059
28061
  return member.key;
28060
28062
  }
28061
- function _temp2$1b(itemProps) {
28063
+ function _temp2$1a(itemProps) {
28062
28064
  return /* @__PURE__ */ jsx(GridItem, { ...itemProps });
28063
28065
  }
28064
28066
  function _temp$2O(v) {
@@ -28411,7 +28413,7 @@ function ListArrayInput(props2) {
28411
28413
  $[0] !== ItemComponent ? (t2 = (itemProps) => /* @__PURE__ */ jsx(ItemComponent, { ...itemProps }), $[0] = ItemComponent, $[1] = t2) : t2 = $[1];
28412
28414
  const renderItem2 = t2, errorTone = validation2?.some(_temp$2L) ? "critical" : void 0, [activeDragItemIndex, setActiveDragItemIndex] = useState(null);
28413
28415
  let t3;
28414
- $[2] !== members ? (t3 = members.map(_temp2$1a), $[2] = members, $[3] = t3) : t3 = $[3];
28416
+ $[2] !== members ? (t3 = members.map(_temp2$19), $[2] = members, $[3] = t3) : t3 = $[3];
28415
28417
  const memberKeys = useMemoCompare(t3, shallowEquals), parentRef = useRef(null), {
28416
28418
  isVisible,
28417
28419
  mountKey
@@ -28459,7 +28461,7 @@ function ListArrayInput(props2) {
28459
28461
  let t12;
28460
28462
  return $[48] !== members.length || $[49] !== schemaType || $[50] !== t11 ? (t12 = /* @__PURE__ */ jsx(ArrayValidationProvider, { schemaType, itemCount: members.length, children: t11 }), $[48] = members.length, $[49] = schemaType, $[50] = t11, $[51] = t12) : t12 = $[51], t12;
28461
28463
  }
28462
- function _temp2$1a(member) {
28464
+ function _temp2$19(member) {
28463
28465
  return member.key;
28464
28466
  }
28465
28467
  function _temp$2L(v) {
@@ -28729,14 +28731,14 @@ function uploadTarget(Component2) {
28729
28731
  const tasks2 = files.map((file_0) => ({
28730
28732
  file: file_0,
28731
28733
  uploaderCandidates: getUploadCandidates(types, resolveUploader2, file_0)
28732
- })), ready = tasks2.filter(_temp$2I), rejected = tasks2.filter(_temp2$19);
28734
+ })), ready = tasks2.filter(_temp$2I), rejected = tasks2.filter(_temp2$18);
28733
28735
  rejected.length > 0 && pushToast({
28734
28736
  closable: !0,
28735
28737
  status: "warning",
28736
28738
  title: t("inputs.array.error.cannot-upload-unable-to-convert", {
28737
28739
  count: rejected.length
28738
28740
  }),
28739
- description: rejected.map(_temp3$y)
28741
+ description: rejected.map(_temp3$x)
28740
28742
  }), ready.forEach((task_2) => {
28741
28743
  uploadFile2(task_2.file, sortBy(task_2.uploaderCandidates, _temp4$d)[0]);
28742
28744
  });
@@ -28800,10 +28802,10 @@ function DropMessage(props2) {
28800
28802
  function _temp$2I(task) {
28801
28803
  return task.uploaderCandidates.length > 0;
28802
28804
  }
28803
- function _temp2$19(task_0) {
28805
+ function _temp2$18(task_0) {
28804
28806
  return task_0.uploaderCandidates.length === 0;
28805
28807
  }
28806
- function _temp3$y(task_1, i) {
28808
+ function _temp3$x(task_1, i) {
28807
28809
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, padding: 2, children: [
28808
28810
  /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { weight: "medium", children: task_1.file.name }) }),
28809
28811
  /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text$1, { size: 1, children: [
@@ -28888,7 +28890,7 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
28888
28890
  children,
28889
28891
  presence,
28890
28892
  schemaType
28891
- } = props2, hasError = validation2.filter(_temp$2H).length > 0, hasWarning = validation2.filter(_temp2$18).length > 0;
28893
+ } = props2, hasError = validation2.filter(_temp$2H).length > 0, hasWarning = validation2.filter(_temp2$17).length > 0;
28892
28894
  let t0;
28893
28895
  $[0] !== onInsert ? (t0 = (pos, insertType) => {
28894
28896
  onInsert({
@@ -28970,7 +28972,7 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
28970
28972
  function _temp$2H(item) {
28971
28973
  return item.level === "error";
28972
28974
  }
28973
- function _temp2$18(item_0) {
28975
+ function _temp2$17(item_0) {
28974
28976
  return item_0.level === "warning";
28975
28977
  }
28976
28978
  function NoItemsPlaceholder(t0) {
@@ -29527,7 +29529,7 @@ const TimeZoneCitySpan = /* @__PURE__ */ styled.span.withConfig({
29527
29529
  const handleTimeZoneUpdate = t8, isDirty = selectedTz?.name !== timeZone.name;
29528
29530
  let t9;
29529
29531
  $[20] !== getLocalTimeZone ? (t9 = getLocalTimeZone(), $[20] = getLocalTimeZone, $[21] = t9) : t9 = $[21];
29530
- const isLocalTzSelected = selectedTz?.name === t9.name, renderOption = _temp$2D, renderValue = _temp2$17;
29532
+ const isLocalTzSelected = selectedTz?.name === t9.name, renderOption = _temp$2D, renderValue = _temp2$16;
29531
29533
  let t10;
29532
29534
  $[22] !== showAllOptions ? (t10 = (filterQuery, option_1) => showAllOptions || filterQuery === "" ? !0 : `${option_1.city} (GMT${option_1.offset}) ${option_1.alternativeName}`.toLowerCase().includes(filterQuery.toLowerCase()), $[22] = showAllOptions, $[23] = t10) : t10 = $[23];
29533
29535
  const filterOption = t10, t11 = !isDirty || !selectedTz;
@@ -29604,7 +29606,7 @@ function _temp$2D(option) {
29604
29606
  /* @__PURE__ */ jsx(TimeZoneAlternativeNameSpan, { children: option.alternativeName })
29605
29607
  ] }) });
29606
29608
  }
29607
- function _temp2$17(_value, option_0) {
29609
+ function _temp2$16(_value, option_0) {
29608
29610
  return option_0 ? `${option_0.alternativeName} (${option_0.namePretty})` : "";
29609
29611
  }
29610
29612
  function useDialogTimeZone(timeZoneScope) {
@@ -30932,7 +30934,7 @@ const RootStack$1 = styled(Stack).withConfig({
30932
30934
  }
30933
30935
  const renderedUnknownFields = t2;
30934
30936
  let t3;
30935
- $[13] !== groups ? (t3 = groups.find(_temp2$16), $[13] = groups, $[14] = t3) : t3 = $[14];
30937
+ $[13] !== groups ? (t3 = groups.find(_temp2$15), $[13] = groups, $[14] = t3) : t3 = $[14];
30936
30938
  const selectedGroup = t3;
30937
30939
  let t4;
30938
30940
  $[15] !== isFocusable || $[16] !== onPathFocus ? (t4 = (event) => {
@@ -30962,7 +30964,7 @@ const RootStack$1 = styled(Stack).withConfig({
30962
30964
  function _temp$2y(field) {
30963
30965
  return field.name;
30964
30966
  }
30965
- function _temp2$16(t0) {
30967
+ function _temp2$15(t0) {
30966
30968
  const {
30967
30969
  selected
30968
30970
  } = t0;
@@ -32061,7 +32063,7 @@ const TextRoot = /* @__PURE__ */ styled.div.withConfig({
32061
32063
  blockquote: BlockQuote
32062
32064
  };
32063
32065
  function TextBlock(props2) {
32064
- const $ = c(128), {
32066
+ const $ = c(129), {
32065
32067
  children,
32066
32068
  floatingBoundary,
32067
32069
  focused,
@@ -32086,8 +32088,9 @@ function TextBlock(props2) {
32086
32088
  setElementRef,
32087
32089
  spellCheck,
32088
32090
  value,
32089
- anchorIdent
32090
- } = props2, {
32091
+ anchorIdent,
32092
+ relativePath
32093
+ } = props2, nested = relativePath.length > 1, {
32091
32094
  Markers
32092
32095
  } = useFormBuilder().__internal.components, markers = usePortableTextMarkers(path), [divElement, setDivElement] = useState(null);
32093
32096
  let t0;
@@ -32150,52 +32153,59 @@ function TextBlock(props2) {
32150
32153
  const text = t12;
32151
32154
  let t13;
32152
32155
  bb0: {
32153
- if (isFullscreen && !renderBlockActions) {
32156
+ if (nested) {
32154
32157
  let t143;
32155
32158
  $[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t143 = {
32156
- paddingX: 5
32159
+ paddingX: 0
32157
32160
  }, $[32] = t143) : t143 = $[32], t13 = t143;
32158
32161
  break bb0;
32159
32162
  }
32160
- if (isFullscreen && renderBlockActions) {
32163
+ if (isFullscreen && !renderBlockActions) {
32161
32164
  let t143;
32162
32165
  $[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t143 = {
32166
+ paddingX: 5
32167
+ }, $[33] = t143) : t143 = $[33], t13 = t143;
32168
+ break bb0;
32169
+ }
32170
+ if (isFullscreen && renderBlockActions) {
32171
+ let t143;
32172
+ $[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t143 = {
32163
32173
  paddingLeft: 5,
32164
32174
  paddingRight: 2
32165
- }, $[33] = t143) : t143 = $[33], t13 = t143;
32175
+ }, $[34] = t143) : t143 = $[34], t13 = t143;
32166
32176
  break bb0;
32167
32177
  }
32168
32178
  if (renderBlockActions) {
32169
32179
  let t143;
32170
- $[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t143 = {
32180
+ $[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t143 = {
32171
32181
  paddingLeft: 3,
32172
32182
  paddingRight: 2
32173
- }, $[34] = t143) : t143 = $[34], t13 = t143;
32183
+ }, $[35] = t143) : t143 = $[35], t13 = t143;
32174
32184
  break bb0;
32175
32185
  }
32176
32186
  let t142;
32177
- $[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t142 = {
32187
+ $[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t142 = {
32178
32188
  paddingX: 3
32179
- }, $[35] = t142) : t142 = $[35], t13 = t142;
32189
+ }, $[36] = t142) : t142 = $[36], t13 = t142;
32180
32190
  }
32181
32191
  const innerPaddingProps = t13;
32182
32192
  let t14;
32183
32193
  bb1: {
32184
32194
  if (value.listItem) {
32185
32195
  let t153;
32186
- $[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t153 = {
32196
+ $[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t153 = {
32187
32197
  paddingY: 2
32188
- }, $[36] = t153) : t153 = $[36], t14 = t153;
32198
+ }, $[37] = t153) : t153 = $[37], t14 = t153;
32189
32199
  break bb1;
32190
32200
  }
32191
32201
  let t152;
32192
- $[37] !== value.style ? (t152 = TEXT_STYLE_PADDING[value.style || "normal"] || {
32202
+ $[38] !== value.style ? (t152 = TEXT_STYLE_PADDING[value.style || "normal"] || {
32193
32203
  paddingY: 2
32194
- }, $[37] = value.style, $[38] = t152) : t152 = $[38], t14 = t152;
32204
+ }, $[38] = value.style, $[39] = t152) : t152 = $[39], t14 = t152;
32195
32205
  }
32196
32206
  const outerPaddingProps = t14, isOpen = !!memberItem?.member.open, parentSchemaType = schemaTypes.portableText, referenceElement = divElement, t15 = memberItem?.member.item.changed ?? !1, t16 = memberItem?.node.path || EMPTY_ARRAY$u, t17 = !!readOnly;
32197
32207
  let t18;
32198
- $[39] !== floatingBoundary || $[40] !== focused || $[41] !== isOpen || $[42] !== markers || $[43] !== onItemClose || $[44] !== onOpen || $[45] !== onPathFocus || $[46] !== onRemove || $[47] !== parentSchemaType || $[48] !== referenceBoundary || $[49] !== referenceElement || $[50] !== renderAnnotation || $[51] !== renderBlock2 || $[52] !== renderField || $[53] !== renderInlineBlock || $[54] !== renderInput || $[55] !== renderItem2 || $[56] !== renderPreview || $[57] !== schemaType || $[58] !== selected || $[59] !== t15 || $[60] !== t16 || $[61] !== t17 || $[62] !== text || $[63] !== textPresence || $[64] !== validation2 || $[65] !== value ? (t18 = {
32208
+ $[40] !== floatingBoundary || $[41] !== focused || $[42] !== isOpen || $[43] !== markers || $[44] !== onItemClose || $[45] !== onOpen || $[46] !== onPathFocus || $[47] !== onRemove || $[48] !== parentSchemaType || $[49] !== referenceBoundary || $[50] !== referenceElement || $[51] !== renderAnnotation || $[52] !== renderBlock2 || $[53] !== renderField || $[54] !== renderInlineBlock || $[55] !== renderInput || $[56] !== renderItem2 || $[57] !== renderPreview || $[58] !== schemaType || $[59] !== selected || $[60] !== t15 || $[61] !== t16 || $[62] !== t17 || $[63] !== text || $[64] !== textPresence || $[65] !== validation2 || $[66] !== value ? (t18 = {
32199
32209
  __unstable_floatingBoundary: floatingBoundary,
32200
32210
  __unstable_referenceBoundary: referenceBoundary,
32201
32211
  __unstable_referenceElement: referenceElement,
@@ -32224,51 +32234,51 @@ function TextBlock(props2) {
32224
32234
  selected,
32225
32235
  validation: validation2,
32226
32236
  value
32227
- }, $[39] = floatingBoundary, $[40] = focused, $[41] = isOpen, $[42] = markers, $[43] = onItemClose, $[44] = onOpen, $[45] = onPathFocus, $[46] = onRemove, $[47] = parentSchemaType, $[48] = referenceBoundary, $[49] = referenceElement, $[50] = renderAnnotation, $[51] = renderBlock2, $[52] = renderField, $[53] = renderInlineBlock, $[54] = renderInput, $[55] = renderItem2, $[56] = renderPreview, $[57] = schemaType, $[58] = selected, $[59] = t15, $[60] = t16, $[61] = t17, $[62] = text, $[63] = textPresence, $[64] = validation2, $[65] = value, $[66] = t18) : t18 = $[66];
32237
+ }, $[40] = floatingBoundary, $[41] = focused, $[42] = isOpen, $[43] = markers, $[44] = onItemClose, $[45] = onOpen, $[46] = onPathFocus, $[47] = onRemove, $[48] = parentSchemaType, $[49] = referenceBoundary, $[50] = referenceElement, $[51] = renderAnnotation, $[52] = renderBlock2, $[53] = renderField, $[54] = renderInlineBlock, $[55] = renderInput, $[56] = renderItem2, $[57] = renderPreview, $[58] = schemaType, $[59] = selected, $[60] = t15, $[61] = t16, $[62] = t17, $[63] = text, $[64] = textPresence, $[65] = validation2, $[66] = value, $[67] = t18) : t18 = $[67];
32228
32238
  const componentProps = t18;
32229
32239
  let t19;
32230
- $[67] !== Markers || $[68] !== markers || $[69] !== renderCustomMarkers || $[70] !== tooltipEnabled || $[71] !== validation2 ? (t19 = tooltipEnabled && /* @__PURE__ */ jsx(TooltipBox$2, { children: /* @__PURE__ */ jsx(Markers, { markers, renderCustomMarkers, validation: validation2 }) }) || null, $[67] = Markers, $[68] = markers, $[69] = renderCustomMarkers, $[70] = tooltipEnabled, $[71] = validation2, $[72] = t19) : t19 = $[72];
32240
+ $[68] !== Markers || $[69] !== markers || $[70] !== renderCustomMarkers || $[71] !== tooltipEnabled || $[72] !== validation2 ? (t19 = tooltipEnabled && /* @__PURE__ */ jsx(TooltipBox$2, { children: /* @__PURE__ */ jsx(Markers, { markers, renderCustomMarkers, validation: validation2 }) }) || null, $[68] = Markers, $[69] = markers, $[70] = renderCustomMarkers, $[71] = tooltipEnabled, $[72] = validation2, $[73] = t19) : t19 = $[73];
32231
32241
  const toolTipContent = t19, blockActionsEnabled = renderBlockActions && !readOnly, changeIndicatorVisible = isFullscreen && memberItemRef;
32232
32242
  let t20;
32233
- $[73] !== memberItem || $[74] !== setElementRef ? (t20 = (elm) => {
32243
+ $[74] !== memberItem || $[75] !== setElementRef ? (t20 = (elm) => {
32234
32244
  memberItem && setElementRef({
32235
32245
  key: memberItem.member.key,
32236
32246
  elementRef: elm
32237
32247
  }), setDivElement(elm);
32238
- }, $[73] = memberItem, $[74] = setElementRef, $[75] = t20) : t20 = $[75];
32248
+ }, $[74] = memberItem, $[75] = setElementRef, $[76] = t20) : t20 = $[76];
32239
32249
  const setRef = t20;
32240
32250
  let t21;
32241
- $[76] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t21 = void 0, $[76] = t21) : t21 = $[76];
32251
+ $[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t21 = void 0, $[77] = t21) : t21 = $[77];
32242
32252
  let t22;
32243
- $[77] !== anchorIdent ? (t22 = {
32253
+ $[78] !== anchorIdent ? (t22 = {
32244
32254
  anchorName: anchorIdent
32245
- }, $[77] = anchorIdent, $[78] = t22) : t22 = $[78];
32255
+ }, $[78] = anchorIdent, $[79] = t22) : t22 = $[79];
32246
32256
  const t23 = !tooltipEnabled, t24 = value.level || 1, t25 = hasError ? "" : void 0, t26 = hasMarkers ? "" : void 0, t27 = hasWarning ? "" : void 0;
32247
32257
  let t28;
32248
- $[79] !== componentProps || $[80] !== renderBlock2 ? (t28 = renderBlock2 && renderBlock2(componentProps), $[79] = componentProps, $[80] = renderBlock2, $[81] = t28) : t28 = $[81];
32258
+ $[80] !== componentProps || $[81] !== renderBlock2 ? (t28 = renderBlock2 && renderBlock2(componentProps), $[80] = componentProps, $[81] = renderBlock2, $[82] = t28) : t28 = $[82];
32249
32259
  let t29;
32250
- $[82] !== readOnly || $[83] !== spellCheck || $[84] !== t24 || $[85] !== t25 || $[86] !== t26 || $[87] !== t27 || $[88] !== t28 || $[89] !== value.listItem ? (t29 = /* @__PURE__ */ jsx(TextRoot, { $level: t24, "data-error": t25, "data-list-item": value.listItem, "data-markers": t26, "data-read-only": readOnly, "data-testid": "text-block__text", "data-warning": t27, spellCheck, children: t28 }), $[82] = readOnly, $[83] = spellCheck, $[84] = t24, $[85] = t25, $[86] = t26, $[87] = t27, $[88] = t28, $[89] = value.listItem, $[90] = t29) : t29 = $[90];
32260
+ $[83] !== readOnly || $[84] !== spellCheck || $[85] !== t24 || $[86] !== t25 || $[87] !== t26 || $[88] !== t27 || $[89] !== t28 || $[90] !== value.listItem ? (t29 = /* @__PURE__ */ jsx(TextRoot, { $level: t24, "data-error": t25, "data-list-item": value.listItem, "data-markers": t26, "data-read-only": readOnly, "data-testid": "text-block__text", "data-warning": t27, spellCheck, children: t28 }), $[83] = readOnly, $[84] = spellCheck, $[85] = t24, $[86] = t25, $[87] = t26, $[88] = t27, $[89] = t28, $[90] = value.listItem, $[91] = t29) : t29 = $[91];
32251
32261
  let t30;
32252
- $[91] !== t23 || $[92] !== t29 || $[93] !== toolTipContent ? (t30 = /* @__PURE__ */ jsx(Tooltip, { content: toolTipContent, disabled: t23, placement: "top", portal: "editor", children: t29 }), $[91] = t23, $[92] = t29, $[93] = toolTipContent, $[94] = t30) : t30 = $[94];
32262
+ $[92] !== t23 || $[93] !== t29 || $[94] !== toolTipContent ? (t30 = /* @__PURE__ */ jsx(Tooltip, { content: toolTipContent, disabled: t23, placement: "top", portal: "editor", children: t29 }), $[92] = t23, $[93] = t29, $[94] = toolTipContent, $[95] = t30) : t30 = $[95];
32253
32263
  let t31;
32254
- $[95] !== t22 || $[96] !== t30 ? (t31 = /* @__PURE__ */ jsx(Box, { flex: 1, style: t22, children: t30 }), $[95] = t22, $[96] = t30, $[97] = t31) : t31 = $[97];
32264
+ $[96] !== t22 || $[97] !== t30 ? (t31 = /* @__PURE__ */ jsx(Box, { flex: 1, style: t22, children: t30 }), $[96] = t22, $[97] = t30, $[98] = t31) : t31 = $[98];
32255
32265
  let t32;
32256
- $[98] !== blockActionsEnabled || $[99] !== focused || $[100] !== onChange || $[101] !== renderBlockActions || $[102] !== value ? (t32 = blockActionsEnabled && /* @__PURE__ */ jsx(BlockActionsOuter$1, { contentEditable: !1, marginRight: 3, children: /* @__PURE__ */ jsx(BlockActionsInner$1, { children: focused && /* @__PURE__ */ jsx(BlockActions, { block: value, onChange, renderBlockActions }) }) }), $[98] = blockActionsEnabled, $[99] = focused, $[100] = onChange, $[101] = renderBlockActions, $[102] = value, $[103] = t32) : t32 = $[103];
32266
+ $[99] !== blockActionsEnabled || $[100] !== focused || $[101] !== onChange || $[102] !== renderBlockActions || $[103] !== value ? (t32 = blockActionsEnabled && /* @__PURE__ */ jsx(BlockActionsOuter$1, { contentEditable: !1, marginRight: 3, children: /* @__PURE__ */ jsx(BlockActionsInner$1, { children: focused && /* @__PURE__ */ jsx(BlockActions, { block: value, onChange, renderBlockActions }) }) }), $[99] = blockActionsEnabled, $[100] = focused, $[101] = onChange, $[102] = renderBlockActions, $[103] = value, $[104] = t32) : t32 = $[104];
32257
32267
  let t33;
32258
- $[104] !== changeIndicatorVisible || $[105] !== focused || $[106] !== memberItem || $[107] !== memberItemRef ? (t33 = changeIndicatorVisible && /* @__PURE__ */ jsx(ChangeIndicatorWrapper$1, { $hasChanges: (memberItem ?? memberItemRef).member.item.changed, contentEditable: !1, children: /* @__PURE__ */ jsx(StyledChangeIndicatorWithProvidedFullPath, { hasFocus: focused, isChanged: (memberItem ?? memberItemRef).member.item.changed, path: (memberItem ?? memberItemRef).member.item.path, withHoverEffect: !1 }) }), $[104] = changeIndicatorVisible, $[105] = focused, $[106] = memberItem, $[107] = memberItemRef, $[108] = t33) : t33 = $[108];
32268
+ $[105] !== changeIndicatorVisible || $[106] !== focused || $[107] !== memberItem || $[108] !== memberItemRef ? (t33 = changeIndicatorVisible && /* @__PURE__ */ jsx(ChangeIndicatorWrapper$1, { $hasChanges: (memberItem ?? memberItemRef).member.item.changed, contentEditable: !1, children: /* @__PURE__ */ jsx(StyledChangeIndicatorWithProvidedFullPath, { hasFocus: focused, isChanged: (memberItem ?? memberItemRef).member.item.changed, path: (memberItem ?? memberItemRef).member.item.path, withHoverEffect: !1 }) }), $[105] = changeIndicatorVisible, $[106] = focused, $[107] = memberItem, $[108] = memberItemRef, $[109] = t33) : t33 = $[109];
32259
32269
  let t34;
32260
- $[109] !== changeHovered || $[110] !== isFocusedDivergence || $[111] !== isFullscreen ? (t34 = (changeHovered || isFocusedDivergence) && /* @__PURE__ */ jsx(ReviewChangesHighlightBlock, { $fullScreen: !!isFullscreen }), $[109] = changeHovered, $[110] = isFocusedDivergence, $[111] = isFullscreen, $[112] = t34) : t34 = $[112];
32270
+ $[110] !== changeHovered || $[111] !== isFocusedDivergence || $[112] !== isFullscreen ? (t34 = (changeHovered || isFocusedDivergence) && /* @__PURE__ */ jsx(ReviewChangesHighlightBlock, { $fullScreen: !!isFullscreen }), $[110] = changeHovered, $[111] = isFocusedDivergence, $[112] = isFullscreen, $[113] = t34) : t34 = $[113];
32261
32271
  let t35;
32262
- $[113] !== innerPaddingProps || $[114] !== t31 || $[115] !== t32 || $[116] !== t33 || $[117] !== t34 ? (t35 = /* @__PURE__ */ jsxs(Flex, { flex: 1, ...innerPaddingProps, children: [
32272
+ $[114] !== innerPaddingProps || $[115] !== t31 || $[116] !== t32 || $[117] !== t33 || $[118] !== t34 ? (t35 = /* @__PURE__ */ jsxs(Flex, { flex: 1, ...innerPaddingProps, children: [
32263
32273
  t31,
32264
32274
  t32,
32265
32275
  t33,
32266
32276
  t34
32267
- ] }), $[113] = innerPaddingProps, $[114] = t31, $[115] = t32, $[116] = t33, $[117] = t34, $[118] = t35) : t35 = $[118];
32277
+ ] }), $[114] = innerPaddingProps, $[115] = t31, $[116] = t32, $[117] = t33, $[118] = t34, $[119] = t35) : t35 = $[119];
32268
32278
  let t36;
32269
- $[119] !== path || $[120] !== readOnly || $[121] !== t35 ? (t36 = /* @__PURE__ */ jsx(TextBlockFlexWrapper, { "data-testid": "text-block__wrapper", children: /* @__PURE__ */ jsx(FormNodeDivergenceDetail, { path, readOnly, children: t35 }) }), $[119] = path, $[120] = readOnly, $[121] = t35, $[122] = t36) : t36 = $[122];
32279
+ $[120] !== path || $[121] !== readOnly || $[122] !== t35 ? (t36 = /* @__PURE__ */ jsx(TextBlockFlexWrapper, { "data-testid": "text-block__wrapper", children: /* @__PURE__ */ jsx(FormNodeDivergenceDetail, { path, readOnly, children: t35 }) }), $[120] = path, $[121] = readOnly, $[122] = t35, $[123] = t36) : t36 = $[123];
32270
32280
  let t37;
32271
- return $[123] !== isFullscreen || $[124] !== outerPaddingProps || $[125] !== setRef || $[126] !== t36 ? (t37 = /* @__PURE__ */ jsx(Box, { ...outerPaddingProps, "data-testid": "text-block", "data-fullscreen": isFullscreen, ref: setRef, style: t21, children: t36 }), $[123] = isFullscreen, $[124] = outerPaddingProps, $[125] = setRef, $[126] = t36, $[127] = t37) : t37 = $[127], t37;
32281
+ return $[124] !== isFullscreen || $[125] !== outerPaddingProps || $[126] !== setRef || $[127] !== t36 ? (t37 = /* @__PURE__ */ jsx(Box, { ...outerPaddingProps, "data-testid": "text-block", "data-fullscreen": isFullscreen, ref: setRef, style: t21, children: t36 }), $[124] = isFullscreen, $[125] = outerPaddingProps, $[126] = setRef, $[127] = t36, $[128] = t37) : t37 = $[128], t37;
32272
32282
  }
32273
32283
  const DefaultComponent$1 = (props2) => {
32274
32284
  const $ = c(2);
@@ -32317,7 +32327,13 @@ const DefaultComponent$1 = (props2) => {
32317
32327
  $isFullscreen,
32318
32328
  $isOneLine,
32319
32329
  theme
32320
- }) => $isOneLine ? "0" : theme.sanity.space[$isFullscreen ? 9 : 5]}px;& > [data-pt-block]{position:relative;margin:0 auto;max-width:${(props2) => getTheme_v2(props2.theme).container[1]}px;}& .pt-drop-indicator{pointer-events:none;border:1px solid var(--card-focus-ring-color) !important;height:0px !important;border-radius:${(props2) => getTheme_v2(props2.theme).radius[2]}px;margin-top:-3px;left:calc( ${({
32330
+ }) => $isOneLine ? "0" : theme.sanity.space[$isFullscreen ? 9 : 5]}px;& > [data-pt-block]{position:relative;margin:0 auto;max-width:${(props2) => getTheme_v2(props2.theme).container[1]}px;}& > [data-pt-block='container']{width:calc( 100% - ${({
32331
+ $isFullscreen,
32332
+ theme
32333
+ }) => 2 * theme.sanity.space[$isFullscreen ? 5 : 3]}px );max-width:calc( ${(props2) => getTheme_v2(props2.theme).container[1]}px - ${({
32334
+ $isFullscreen,
32335
+ theme
32336
+ }) => 2 * theme.sanity.space[$isFullscreen ? 5 : 3]}px );}& .pt-drop-indicator{pointer-events:none;border:1px solid var(--card-focus-ring-color) !important;height:0px !important;border-radius:${(props2) => getTheme_v2(props2.theme).radius[2]}px;margin-top:-3px;left:calc( ${({
32321
32337
  $isFullscreen,
32322
32338
  theme
32323
32339
  }) => $isFullscreen ? rem(theme.sanity.space[5]) : rem(theme.sanity.space[3])} - 1px );right:calc( ${({
@@ -32326,7 +32342,7 @@ const DefaultComponent$1 = (props2) => {
32326
32342
  }) => $isFullscreen ? rem(theme.sanity.space[5]) : rem(theme.sanity.space[3])} - 1px );width:calc( 100% - ${({
32327
32343
  $isFullscreen,
32328
32344
  theme
32329
- }) => $isFullscreen ? rem(theme.sanity.space[5] * 2) : rem(theme.sanity.space[3] * 2)} + 2px ) !important;}}`;
32345
+ }) => $isFullscreen ? rem(theme.sanity.space[5] * 2) : rem(theme.sanity.space[3] * 2)} + 2px ) !important;}& [data-pt-block] [data-pt-block]{position:relative;}& [data-pt-block] [data-pt-block] .pt-drop-indicator{left:0;right:0;width:100% !important;}}`;
32330
32346
  function useScrollSelectionIntoView(scrollElement) {
32331
32347
  const $ = c(2);
32332
32348
  let t0;
@@ -32348,85 +32364,7 @@ function useSpellCheck() {
32348
32364
  const spellCheckOption = usePortableTextMemberSchemaTypes().block.options?.spellCheck, isChrome96 = typeof navigator > "u" ? !1 : /Chrome\/96/.test(navigator.userAgent);
32349
32365
  return spellCheckOption === void 0 && isChrome96 ? !1 : spellCheckOption;
32350
32366
  }
32351
- const DefaultComponent = (dProps) => {
32352
- const $ = c(2);
32353
- let t0;
32354
- return $[0] !== dProps.children ? (t0 = /* @__PURE__ */ jsx(Fragment$1, { children: dProps.children }), $[0] = dProps.children, $[1] = t0) : t0 = $[1], t0;
32355
- }, ListItem$1 = (props2) => {
32356
- const $ = c(17), {
32357
- block,
32358
- children,
32359
- schemaType,
32360
- selected,
32361
- focused,
32362
- level,
32363
- value
32364
- } = props2, schemaTypes = usePortableTextMemberSchemaTypes();
32365
- let t0;
32366
- if ($[0] !== schemaType || $[1] !== schemaTypes.lists) {
32367
- let t12;
32368
- $[3] !== schemaType ? (t12 = (type) => type.value === schemaType.value, $[3] = schemaType, $[4] = t12) : t12 = $[4], t0 = schemaTypes.lists.find(t12), $[0] = schemaType, $[1] = schemaTypes.lists, $[2] = t0;
32369
- } else
32370
- t0 = $[2];
32371
- const sanitySchemaType = t0;
32372
- if (!sanitySchemaType)
32373
- throw new Error(`Could not find Sanity schema type for list item: ${schemaType.value}`);
32374
- const {
32375
- title,
32376
- component: CustomComponent
32377
- } = sanitySchemaType;
32378
- let t1;
32379
- $[5] !== block || $[6] !== focused || $[7] !== level || $[8] !== sanitySchemaType || $[9] !== selected || $[10] !== title || $[11] !== value ? (t1 = {
32380
- block,
32381
- focused,
32382
- level,
32383
- renderDefault: DefaultComponent,
32384
- schemaType: sanitySchemaType,
32385
- selected,
32386
- title,
32387
- value
32388
- }, $[5] = block, $[6] = focused, $[7] = level, $[8] = sanitySchemaType, $[9] = selected, $[10] = title, $[11] = value, $[12] = t1) : t1 = $[12];
32389
- const componentProps = t1;
32390
- let t2;
32391
- return $[13] !== CustomComponent || $[14] !== children || $[15] !== componentProps ? (t2 = CustomComponent ? /* @__PURE__ */ jsx(CustomComponent, { ...componentProps, children }) : /* @__PURE__ */ jsx(DefaultComponent, { ...componentProps, children }), $[13] = CustomComponent, $[14] = children, $[15] = componentProps, $[16] = t2) : t2 = $[16], t2;
32392
- }, Style = (props2) => {
32393
- const $ = c(21), {
32394
- block,
32395
- focused,
32396
- children,
32397
- selected,
32398
- schemaType
32399
- } = props2, schemaTypes = usePortableTextMemberSchemaTypes();
32400
- let t0;
32401
- if ($[0] !== schemaType || $[1] !== schemaTypes.styles) {
32402
- let t12;
32403
- $[3] !== schemaType ? (t12 = (type) => type.value === schemaType.value, $[3] = schemaType, $[4] = t12) : t12 = $[4], t0 = schemaTypes.styles.find(t12), $[0] = schemaType, $[1] = schemaTypes.styles, $[2] = t0;
32404
- } else
32405
- t0 = $[2];
32406
- const sanitySchemaType = t0;
32407
- if (!sanitySchemaType)
32408
- throw new Error(`Could not find Sanity schema type for style: ${schemaType.value}`);
32409
- const DefaultComponentWithFallback = (block.style && TEXT_STYLES[block.style] ? TEXT_STYLES[block.style] : TEXT_STYLES[0]) || Normal;
32410
- let t1;
32411
- $[5] !== DefaultComponentWithFallback || $[6] !== block.style ? (t1 = (defaultComponentProps) => /* @__PURE__ */ jsx(DefaultComponentWithFallback, { children: /* @__PURE__ */ jsx(TextContainer, { "data-testid": `text-style--${block.style}`, children: defaultComponentProps.children }) }), $[5] = DefaultComponentWithFallback, $[6] = block.style, $[7] = t1) : t1 = $[7];
32412
- const DefaultComponent2 = t1, CustomComponent = sanitySchemaType.component, {
32413
- title,
32414
- value
32415
- } = sanitySchemaType;
32416
- let t2;
32417
- $[8] !== DefaultComponent2 || $[9] !== block || $[10] !== focused || $[11] !== sanitySchemaType || $[12] !== selected || $[13] !== title || $[14] !== value ? (t2 = {
32418
- block,
32419
- focused,
32420
- renderDefault: DefaultComponent2,
32421
- schemaType: sanitySchemaType,
32422
- selected,
32423
- title,
32424
- value
32425
- }, $[8] = DefaultComponent2, $[9] = block, $[10] = focused, $[11] = sanitySchemaType, $[12] = selected, $[13] = title, $[14] = value, $[15] = t2) : t2 = $[15];
32426
- const componentProps = t2;
32427
- let t3;
32428
- return $[16] !== CustomComponent || $[17] !== DefaultComponent2 || $[18] !== children || $[19] !== componentProps ? (t3 = CustomComponent ? /* @__PURE__ */ jsx(CustomComponent, { ...componentProps, children }) : /* @__PURE__ */ jsx(DefaultComponent2, { ...componentProps, children }), $[16] = CustomComponent, $[17] = DefaultComponent2, $[18] = children, $[19] = componentProps, $[20] = t3) : t3 = $[20], t3;
32429
- }, DividerDiv = styled.div.withConfig({
32367
+ const DividerDiv = styled.div.withConfig({
32430
32368
  displayName: "DividerDiv",
32431
32369
  componentId: "sc-16u5v5h-0"
32432
32370
  })`border-right:1px solid var(--card-border-color);height:auto;&[data-hidden]{opacity:0;}`;
@@ -32920,9 +32858,9 @@ function useActiveStyleKeys(t0) {
32920
32858
  items
32921
32859
  } = t0, editor2 = usePortableTextEditor(), focusBlock = useFocusBlock(), selection = usePortableTextEditorSelection();
32922
32860
  let t1;
32923
- return $[0] !== editor2 || $[1] !== focusBlock || $[2] !== items || $[3] !== selection ? (t1 = focusBlock && selection ? items.filter((i) => PortableTextEditor.hasBlockStyle(editor2, i.style)).map(_temp2$15) : [], $[0] = editor2, $[1] = focusBlock, $[2] = items, $[3] = selection, $[4] = t1) : t1 = $[4], useUnique(t1);
32861
+ return $[0] !== editor2 || $[1] !== focusBlock || $[2] !== items || $[3] !== selection ? (t1 = focusBlock && selection ? items.filter((i) => PortableTextEditor.hasBlockStyle(editor2, i.style)).map(_temp2$14) : [], $[0] = editor2, $[1] = focusBlock, $[2] = items, $[3] = selection, $[4] = t1) : t1 = $[4], useUnique(t1);
32924
32862
  }
32925
- function _temp2$15(i_0) {
32863
+ function _temp2$14(i_0) {
32926
32864
  return i_0.style;
32927
32865
  }
32928
32866
  const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$3 = {
@@ -32938,7 +32876,7 @@ const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$3 = {
32938
32876
  t
32939
32877
  } = useTranslation(), isSelectingMultipleBlocks = useEditorSelector(editor2, _temp$2s), isVoidBlock = focusBlock?._type !== schemaTypes.block.name, isEmptyTextBlock = !isVoidBlock && Array.isArray(focusBlock.children) && focusBlock.children.length === 1 && focusBlock?.children[0].text === "", disabled = disabledProp || isVoidBlock;
32940
32878
  let t0;
32941
- $[0] !== groups ? (t0 = groups.reduce(_temp3$x, []), $[0] = groups, $[1] = t0) : t0 = $[1];
32879
+ $[0] !== groups ? (t0 = groups.reduce(_temp3$w, []), $[0] = groups, $[1] = t0) : t0 = $[1];
32942
32880
  const actions = t0;
32943
32881
  let t1;
32944
32882
  $[2] !== actions ? (t1 = {
@@ -32987,14 +32925,14 @@ function _temp$2s(snapshot2) {
32987
32925
  const startBlock = getSelectionStartBlock(snapshot2), endBlock = getSelectionEndBlock(snapshot2);
32988
32926
  return !!startBlock && !!endBlock && !isEqual$2(startBlock.path, endBlock.path);
32989
32927
  }
32990
- function _temp2$14(action, actionIndex) {
32928
+ function _temp2$13(action, actionIndex) {
32991
32929
  return actionIndex === 0 ? {
32992
32930
  ...action,
32993
32931
  firstInGroup: !0
32994
32932
  } : action;
32995
32933
  }
32996
- function _temp3$x(acc, group2) {
32997
- return acc.concat(group2.actions.map(_temp2$14));
32934
+ function _temp3$w(acc, group2) {
32935
+ return acc.concat(group2.actions.map(_temp2$13));
32998
32936
  }
32999
32937
  const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1).withConfig({
33000
32938
  displayName: "StyledMenuItem",
@@ -33180,7 +33118,7 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1).wit
33180
33118
  $[0] !== rootElement ? (t1 = {
33181
33119
  rootElement
33182
33120
  }, $[0] = rootElement, $[1] = t1) : t1 = $[1], useRovingFocus(t1);
33183
- const preventEditorBlurOnToolbarMouseDown = _temp2$13;
33121
+ const preventEditorBlurOnToolbarMouseDown = _temp2$12;
33184
33122
  let t2;
33185
33123
  $[2] !== blockStyles || $[3] !== collapsed || $[4] !== disabled || $[5] !== isFullscreen || $[6] !== rootElement || $[7] !== showBlockStyleSelect ? (t2 = showBlockStyleSelect && /* @__PURE__ */ jsx(StyleSelectFlex, { flex: collapsed ? 1 : void 0, children: /* @__PURE__ */ jsx(StyleSelectBox, { padding: isFullscreen ? 2 : 1, "data-testid": "block-style-select", children: /* @__PURE__ */ jsx(BlockStyleSelect, { disabled, items: blockStyles, boundaryElement: rootElement }) }) }), $[2] = blockStyles, $[3] = collapsed, $[4] = disabled, $[5] = isFullscreen, $[6] = rootElement, $[7] = showBlockStyleSelect, $[8] = t2) : t2 = $[8];
33186
33124
  let t3;
@@ -33287,7 +33225,7 @@ function Toolbar(props2) {
33287
33225
  function _temp$2r(acc, x) {
33288
33226
  return acc + x.actions.length;
33289
33227
  }
33290
- function _temp2$13(e) {
33228
+ function _temp2$12(e) {
33291
33229
  e.preventDefault();
33292
33230
  }
33293
33231
  const noOutlineStyle = {
@@ -33304,7 +33242,7 @@ const noOutlineStyle = {
33304
33242
  `;
33305
33243
  });
33306
33244
  function Editor(props2) {
33307
- const $ = c(58), {
33245
+ const $ = c(56), {
33308
33246
  elementRef,
33309
33247
  hideToolbar,
33310
33248
  hotkeys,
@@ -33320,8 +33258,6 @@ function Editor(props2) {
33320
33258
  readOnly,
33321
33259
  rangeDecorations,
33322
33260
  renderAnnotation,
33323
- renderBlock: renderBlock2,
33324
- renderChild: renderChild2,
33325
33261
  scrollElement,
33326
33262
  setPortalElement,
33327
33263
  setScrollElement,
@@ -33341,9 +33277,9 @@ function Editor(props2) {
33341
33277
  }, $[0] = isFullscreen, $[1] = isTopLayer, $[2] = onToggleFullscreen, $[3] = t0) : t0 = $[3], useGlobalKeyDown(t0);
33342
33278
  let t1;
33343
33279
  $[4] !== t ? (t1 = () => /* @__PURE__ */ jsx(PlaceholderWrapper$1, { "data-testid": "pt-input-placeholder", children: t("inputs.portable-text.empty-placeholder") }), $[4] = t, $[5] = t1) : t1 = $[5];
33344
- const renderPlaceholder = t1, spellCheck = useSpellCheck(), renderDecorator = _temp$2q, renderStyle = _temp2$12, renderListItem = _temp3$w, scrollSelectionIntoView = useScrollSelectionIntoView(scrollElement);
33280
+ const renderPlaceholder = t1, spellCheck = useSpellCheck(), renderDecorator = _temp$2q, scrollSelectionIntoView = useScrollSelectionIntoView(scrollElement);
33345
33281
  let t2;
33346
- $[6] !== ariaDescribedBy || $[7] !== elementRef || $[8] !== hotkeys || $[9] !== initialSelection || $[10] !== onCopy || $[11] !== onPaste || $[12] !== rangeDecorations || $[13] !== renderAnnotation || $[14] !== renderBlock2 || $[15] !== renderChild2 || $[16] !== renderPlaceholder || $[17] !== scrollSelectionIntoView || $[18] !== spellCheck ? (t2 = {
33282
+ $[6] !== ariaDescribedBy || $[7] !== elementRef || $[8] !== hotkeys || $[9] !== initialSelection || $[10] !== onCopy || $[11] !== onPaste || $[12] !== rangeDecorations || $[13] !== renderAnnotation || $[14] !== renderPlaceholder || $[15] !== scrollSelectionIntoView || $[16] !== spellCheck ? (t2 = {
33347
33283
  "aria-describedby": ariaDescribedBy,
33348
33284
  hotkeys,
33349
33285
  onCopy,
@@ -33351,53 +33287,43 @@ function Editor(props2) {
33351
33287
  rangeDecorations,
33352
33288
  ref: elementRef,
33353
33289
  renderAnnotation,
33354
- renderBlock: renderBlock2,
33355
- renderChild: renderChild2,
33356
33290
  renderDecorator,
33357
- renderListItem,
33358
33291
  renderPlaceholder,
33359
- renderStyle,
33360
33292
  scrollSelectionIntoView,
33361
33293
  selection: initialSelection,
33362
33294
  spellCheck,
33363
33295
  style: noOutlineStyle
33364
- }, $[6] = ariaDescribedBy, $[7] = elementRef, $[8] = hotkeys, $[9] = initialSelection, $[10] = onCopy, $[11] = onPaste, $[12] = rangeDecorations, $[13] = renderAnnotation, $[14] = renderBlock2, $[15] = renderChild2, $[16] = renderPlaceholder, $[17] = scrollSelectionIntoView, $[18] = spellCheck, $[19] = t2) : t2 = $[19];
33296
+ }, $[6] = ariaDescribedBy, $[7] = elementRef, $[8] = hotkeys, $[9] = initialSelection, $[10] = onCopy, $[11] = onPaste, $[12] = rangeDecorations, $[13] = renderAnnotation, $[14] = renderPlaceholder, $[15] = scrollSelectionIntoView, $[16] = spellCheck, $[17] = t2) : t2 = $[17];
33365
33297
  const editableProps = t2;
33366
33298
  let t3;
33367
- $[20] !== editableProps ? (t3 = /* @__PURE__ */ jsx(PortableTextEditable, { ...editableProps }), $[20] = editableProps, $[21] = t3) : t3 = $[21];
33299
+ $[18] !== editableProps ? (t3 = /* @__PURE__ */ jsx(PortableTextEditable, { ...editableProps }), $[18] = editableProps, $[19] = t3) : t3 = $[19];
33368
33300
  const editable = t3;
33369
33301
  let t4;
33370
- $[22] !== onItemOpen || $[23] !== path ? (t4 = (relativePath) => {
33302
+ $[20] !== onItemOpen || $[21] !== path ? (t4 = (relativePath) => {
33371
33303
  onItemOpen(path.concat(relativePath));
33372
- }, $[22] = onItemOpen, $[23] = path, $[24] = t4) : t4 = $[24];
33304
+ }, $[20] = onItemOpen, $[21] = path, $[22] = t4) : t4 = $[22];
33373
33305
  const handleToolBarOnMemberOpen = t4, collapsibleToolbar = id2 === FORM_BUILDER_DEFAULT_ID;
33374
33306
  let t5;
33375
- $[25] !== boundaryElement || $[26] !== collapsibleToolbar || $[27] !== handleToolBarOnMemberOpen || $[28] !== hideToolbar || $[29] !== hotkeys || $[30] !== isActive || $[31] !== isFullscreen || $[32] !== onToggleFullscreen || $[33] !== readOnly || $[34] !== rootElement ? (t5 = isActive && !hideToolbar && /* @__PURE__ */ jsx(BoundaryElementProvider, { element: isFullscreen ? rootElement : boundaryElement, children: /* @__PURE__ */ jsx(TooltipDelayGroupProvider, { children: /* @__PURE__ */ jsx(ToolbarCard, { "data-testid": "pt-editor__toolbar-card", shadow: 1, children: /* @__PURE__ */ jsx(Toolbar, { collapsible: collapsibleToolbar, hotkeys, isFullscreen, onMemberOpen: handleToolBarOnMemberOpen, onToggleFullscreen, readOnly }) }) }) }), $[25] = boundaryElement, $[26] = collapsibleToolbar, $[27] = handleToolBarOnMemberOpen, $[28] = hideToolbar, $[29] = hotkeys, $[30] = isActive, $[31] = isFullscreen, $[32] = onToggleFullscreen, $[33] = readOnly, $[34] = rootElement, $[35] = t5) : t5 = $[35];
33307
+ $[23] !== boundaryElement || $[24] !== collapsibleToolbar || $[25] !== handleToolBarOnMemberOpen || $[26] !== hideToolbar || $[27] !== hotkeys || $[28] !== isActive || $[29] !== isFullscreen || $[30] !== onToggleFullscreen || $[31] !== readOnly || $[32] !== rootElement ? (t5 = isActive && !hideToolbar && /* @__PURE__ */ jsx(BoundaryElementProvider, { element: isFullscreen ? rootElement : boundaryElement, children: /* @__PURE__ */ jsx(TooltipDelayGroupProvider, { children: /* @__PURE__ */ jsx(ToolbarCard, { "data-testid": "pt-editor__toolbar-card", shadow: 1, children: /* @__PURE__ */ jsx(Toolbar, { collapsible: collapsibleToolbar, hotkeys, isFullscreen, onMemberOpen: handleToolBarOnMemberOpen, onToggleFullscreen, readOnly }) }) }) }), $[23] = boundaryElement, $[24] = collapsibleToolbar, $[25] = handleToolBarOnMemberOpen, $[26] = hideToolbar, $[27] = hotkeys, $[28] = isActive, $[29] = isFullscreen, $[30] = onToggleFullscreen, $[31] = readOnly, $[32] = rootElement, $[33] = t5) : t5 = $[33];
33376
33308
  const t6 = readOnly ? "transparent" : "default", t7 = readOnly ? "transparent" : "default", t8 = isFullscreen ? scrollElement : boundaryElement;
33377
33309
  let t9;
33378
- $[36] !== editable || $[37] !== t8 ? (t9 = /* @__PURE__ */ jsx(BoundaryElementProvider, { element: t8, children: editable }), $[36] = editable, $[37] = t8, $[38] = t9) : t9 = $[38];
33310
+ $[34] !== editable || $[35] !== t8 ? (t9 = /* @__PURE__ */ jsx(BoundaryElementProvider, { element: t8, children: editable }), $[34] = editable, $[35] = t8, $[36] = t9) : t9 = $[36];
33379
33311
  let t10;
33380
- $[39] !== isFullscreen || $[40] !== isOneLine || $[41] !== t7 || $[42] !== t9 ? (t10 = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(EditableWrapper, { $isFullscreen: isFullscreen, $isOneLine: isOneLine, tone: t7, children: t9 }) }), $[39] = isFullscreen, $[40] = isOneLine, $[41] = t7, $[42] = t9, $[43] = t10) : t10 = $[43];
33312
+ $[37] !== isFullscreen || $[38] !== isOneLine || $[39] !== t7 || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(EditableWrapper, { $isFullscreen: isFullscreen, $isOneLine: isOneLine, tone: t7, children: t9 }) }), $[37] = isFullscreen, $[38] = isOneLine, $[39] = t7, $[40] = t9, $[41] = t10) : t10 = $[41];
33381
33313
  let t11;
33382
- $[44] !== setScrollElement || $[45] !== t10 ? (t11 = /* @__PURE__ */ jsx(Scroller, { ref: setScrollElement, children: t10 }), $[44] = setScrollElement, $[45] = t10, $[46] = t11) : t11 = $[46];
33314
+ $[42] !== setScrollElement || $[43] !== t10 ? (t11 = /* @__PURE__ */ jsx(Scroller, { ref: setScrollElement, children: t10 }), $[42] = setScrollElement, $[43] = t10, $[44] = t11) : t11 = $[44];
33383
33315
  let t12;
33384
- $[47] !== setPortalElement ? (t12 = /* @__PURE__ */ jsx("div", { "data-portal": "", ref: setPortalElement }), $[47] = setPortalElement, $[48] = t12) : t12 = $[48];
33316
+ $[45] !== setPortalElement ? (t12 = /* @__PURE__ */ jsx("div", { "data-portal": "", ref: setPortalElement }), $[45] = setPortalElement, $[46] = t12) : t12 = $[46];
33385
33317
  let t13;
33386
- $[49] !== t11 || $[50] !== t12 || $[51] !== t6 ? (t13 = /* @__PURE__ */ jsxs(EditableCard, { flex: 1, tone: t6, children: [
33318
+ $[47] !== t11 || $[48] !== t12 || $[49] !== t6 ? (t13 = /* @__PURE__ */ jsxs(EditableCard, { flex: 1, tone: t6, children: [
33387
33319
  t11,
33388
33320
  t12
33389
- ] }), $[49] = t11, $[50] = t12, $[51] = t6, $[52] = t13) : t13 = $[52];
33321
+ ] }), $[47] = t11, $[48] = t12, $[49] = t6, $[50] = t13) : t13 = $[50];
33390
33322
  let t14;
33391
- return $[53] !== isFullscreen || $[54] !== isOneLine || $[55] !== t13 || $[56] !== t5 ? (t14 = /* @__PURE__ */ jsxs(Root$i, { "data-fullscreen": isFullscreen, "data-testid": "pt-editor", ref: setRootElement, $isOneLine: isOneLine, children: [
33323
+ return $[51] !== isFullscreen || $[52] !== isOneLine || $[53] !== t13 || $[54] !== t5 ? (t14 = /* @__PURE__ */ jsxs(Root$i, { "data-fullscreen": isFullscreen, "data-testid": "pt-editor", ref: setRootElement, $isOneLine: isOneLine, children: [
33392
33324
  t5,
33393
33325
  t13
33394
- ] }), $[53] = isFullscreen, $[54] = isOneLine, $[55] = t13, $[56] = t5, $[57] = t14) : t14 = $[57], t14;
33395
- }
33396
- function _temp3$w(listItemProps) {
33397
- return /* @__PURE__ */ jsx(ListItem$1, { ...listItemProps });
33398
- }
33399
- function _temp2$12(styleProps) {
33400
- return /* @__PURE__ */ jsx(Style, { ...styleProps });
33326
+ ] }), $[51] = isFullscreen, $[52] = isOneLine, $[53] = t13, $[54] = t5, $[55] = t14) : t14 = $[55], t14;
33401
33327
  }
33402
33328
  function _temp$2q(decoratorProps) {
33403
33329
  return /* @__PURE__ */ jsx(Decorator, { ...decoratorProps });
@@ -34188,8 +34114,84 @@ function AnnotationObjectEditModal(props2) {
34188
34114
  function _temp$2n(m) {
34189
34115
  return m.kind === "annotation" && m.member.open;
34190
34116
  }
34117
+ const DefaultComponent = (dProps) => {
34118
+ const $ = c(2);
34119
+ let t0;
34120
+ return $[0] !== dProps.children ? (t0 = /* @__PURE__ */ jsx(Fragment$1, { children: dProps.children }), $[0] = dProps.children, $[1] = t0) : t0 = $[1], t0;
34121
+ }, ListItem$1 = (props2) => {
34122
+ const $ = c(17), {
34123
+ block,
34124
+ children,
34125
+ selected,
34126
+ focused
34127
+ } = props2, schemaTypes = usePortableTextMemberSchemaTypes();
34128
+ let t0;
34129
+ if ($[0] !== block.listItem || $[1] !== schemaTypes.lists) {
34130
+ let t12;
34131
+ $[3] !== block.listItem ? (t12 = (type) => type.value === block.listItem, $[3] = block.listItem, $[4] = t12) : t12 = $[4], t0 = schemaTypes.lists.find(t12), $[0] = block.listItem, $[1] = schemaTypes.lists, $[2] = t0;
34132
+ } else
34133
+ t0 = $[2];
34134
+ const sanitySchemaType = t0;
34135
+ if (!sanitySchemaType)
34136
+ throw new Error(`Could not find Sanity schema type for list item: ${block.listItem}`);
34137
+ const {
34138
+ title,
34139
+ value,
34140
+ component: CustomComponent
34141
+ } = sanitySchemaType, t1 = block.level ?? 1;
34142
+ let t2;
34143
+ $[5] !== block || $[6] !== focused || $[7] !== sanitySchemaType || $[8] !== selected || $[9] !== t1 || $[10] !== title || $[11] !== value ? (t2 = {
34144
+ block,
34145
+ focused,
34146
+ level: t1,
34147
+ renderDefault: DefaultComponent,
34148
+ schemaType: sanitySchemaType,
34149
+ selected,
34150
+ title,
34151
+ value
34152
+ }, $[5] = block, $[6] = focused, $[7] = sanitySchemaType, $[8] = selected, $[9] = t1, $[10] = title, $[11] = value, $[12] = t2) : t2 = $[12];
34153
+ const componentProps = t2;
34154
+ let t3;
34155
+ return $[13] !== CustomComponent || $[14] !== children || $[15] !== componentProps ? (t3 = CustomComponent ? /* @__PURE__ */ jsx(CustomComponent, { ...componentProps, children }) : /* @__PURE__ */ jsx(DefaultComponent, { ...componentProps, children }), $[13] = CustomComponent, $[14] = children, $[15] = componentProps, $[16] = t3) : t3 = $[16], t3;
34156
+ }, Style = (props2) => {
34157
+ const $ = c(21), {
34158
+ block,
34159
+ focused,
34160
+ children,
34161
+ selected
34162
+ } = props2, schemaTypes = usePortableTextMemberSchemaTypes();
34163
+ let t0;
34164
+ if ($[0] !== block.style || $[1] !== schemaTypes.styles) {
34165
+ let t12;
34166
+ $[3] !== block.style ? (t12 = (type) => type.value === block.style, $[3] = block.style, $[4] = t12) : t12 = $[4], t0 = schemaTypes.styles.find(t12), $[0] = block.style, $[1] = schemaTypes.styles, $[2] = t0;
34167
+ } else
34168
+ t0 = $[2];
34169
+ const sanitySchemaType = t0;
34170
+ if (!sanitySchemaType)
34171
+ throw new Error(`Could not find Sanity schema type for style: ${block.style}`);
34172
+ const DefaultComponentWithFallback = (block.style && TEXT_STYLES[block.style] ? TEXT_STYLES[block.style] : TEXT_STYLES[0]) || Normal;
34173
+ let t1;
34174
+ $[5] !== DefaultComponentWithFallback || $[6] !== block.style ? (t1 = (defaultComponentProps) => /* @__PURE__ */ jsx(DefaultComponentWithFallback, { children: /* @__PURE__ */ jsx(TextContainer, { "data-testid": `text-style--${block.style}`, children: defaultComponentProps.children }) }), $[5] = DefaultComponentWithFallback, $[6] = block.style, $[7] = t1) : t1 = $[7];
34175
+ const DefaultComponent2 = t1, CustomComponent = sanitySchemaType.component, {
34176
+ title,
34177
+ value
34178
+ } = sanitySchemaType;
34179
+ let t2;
34180
+ $[8] !== DefaultComponent2 || $[9] !== block || $[10] !== focused || $[11] !== sanitySchemaType || $[12] !== selected || $[13] !== title || $[14] !== value ? (t2 = {
34181
+ block,
34182
+ focused,
34183
+ renderDefault: DefaultComponent2,
34184
+ schemaType: sanitySchemaType,
34185
+ selected,
34186
+ title,
34187
+ value
34188
+ }, $[8] = DefaultComponent2, $[9] = block, $[10] = focused, $[11] = sanitySchemaType, $[12] = selected, $[13] = title, $[14] = value, $[15] = t2) : t2 = $[15];
34189
+ const componentProps = t2;
34190
+ let t3;
34191
+ return $[16] !== CustomComponent || $[17] !== DefaultComponent2 || $[18] !== children || $[19] !== componentProps ? (t3 = CustomComponent ? /* @__PURE__ */ jsx(CustomComponent, { ...componentProps, children }) : /* @__PURE__ */ jsx(DefaultComponent2, { ...componentProps, children }), $[16] = CustomComponent, $[17] = DefaultComponent2, $[18] = children, $[19] = componentProps, $[20] = t3) : t3 = $[20], t3;
34192
+ };
34191
34193
  function Compositor(props2) {
34192
- const $ = c(169), {
34194
+ const $ = c(177), {
34193
34195
  changed,
34194
34196
  elementRef,
34195
34197
  focused,
@@ -34254,74 +34256,95 @@ function Compositor(props2) {
34254
34256
  }, $[8] = hotkeys, $[9] = t4, $[10] = t5) : t5 = $[10];
34255
34257
  const editorHotkeys = useHotkeys(t5), _renderBlockActions = value && renderBlockActions ? renderBlockActions : void 0, _renderCustomMarkers = value && renderCustomMarkers ? renderCustomMarkers : void 0, [portalElement, setPortalElement] = useState(null);
34256
34258
  let t6;
34257
- $[11] !== _renderBlockActions || $[12] !== _renderCustomMarkers || $[13] !== floatingBoundary || $[14] !== isFullscreen || $[15] !== onItemClose || $[16] !== onItemOpen || $[17] !== onItemRemove || $[18] !== onPathFocus || $[19] !== path || $[20] !== readOnly || $[21] !== renderAnnotation || $[22] !== renderBlock2 || $[23] !== renderField || $[24] !== renderInlineBlock || $[25] !== renderInput || $[26] !== renderItem2 || $[27] !== renderPreview || $[28] !== schemaTypes.block || $[29] !== scrollElement || $[30] !== setElementRef ? (t6 = (blockProps) => {
34259
+ $[11] !== _renderBlockActions || $[12] !== _renderCustomMarkers || $[13] !== floatingBoundary || $[14] !== isFullscreen || $[15] !== onItemClose || $[16] !== onItemOpen || $[17] !== onItemRemove || $[18] !== onPathFocus || $[19] !== path || $[20] !== readOnly || $[21] !== renderAnnotation || $[22] !== renderBlock2 || $[23] !== renderField || $[24] !== renderInlineBlock || $[25] !== renderInput || $[26] !== renderItem2 || $[27] !== renderPreview || $[28] !== schemaTypes.block || $[29] !== scrollElement || $[30] !== setElementRef ? (t6 = (textBlockProps) => {
34258
34260
  const {
34259
- children,
34261
+ attributes,
34260
34262
  focused: blockFocused,
34263
+ node,
34261
34264
  path: blockPath,
34262
- selected,
34263
- value: block
34264
- } = blockProps, fullyQualifiedPath = path.concat(blockPath);
34265
- return /* @__PURE__ */ jsx(TextBlock, { floatingBoundary, focused: blockFocused, isFullscreen, onItemClose, onItemOpen, onItemRemove, onPathFocus, path: path.concat(blockPath), readOnly, referenceBoundary: scrollElement, renderAnnotation, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderBlockActions: _renderBlockActions, renderCustomMarkers: _renderCustomMarkers, renderPreview, renderBlock: renderBlock2, schemaType: schemaTypes.block, selected, setElementRef, value: block, anchorIdent: pathToAnchorIdent("input", fullyQualifiedPath), children });
34265
+ selected
34266
+ } = textBlockProps, block = node, fullyQualifiedPath = path.concat(blockPath);
34267
+ let inner = textBlockProps.children;
34268
+ return block.style !== void 0 && (inner = /* @__PURE__ */ jsx(Style, { block, focused: blockFocused, selected, children: inner })), block.listItem !== void 0 && (inner = /* @__PURE__ */ jsx(ListItem$1, { block, focused: blockFocused, selected, children: inner })), /* @__PURE__ */ jsxs(TextBlockShell, { attributes, block, path: blockPath, children: [
34269
+ /* @__PURE__ */ jsx(BlockDropIndicator, { path: blockPath, edge: "start" }),
34270
+ /* @__PURE__ */ jsx(TextBlock, { floatingBoundary, focused: blockFocused, isFullscreen, onItemClose, onItemOpen, onItemRemove, onPathFocus, path: fullyQualifiedPath, readOnly, referenceBoundary: scrollElement, renderAnnotation, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderBlockActions: _renderBlockActions, renderCustomMarkers: _renderCustomMarkers, renderPreview, renderBlock: renderBlock2, schemaType: schemaTypes.block, selected, setElementRef, value: block, anchorIdent: pathToAnchorIdent("input", fullyQualifiedPath), relativePath: blockPath, children: inner }),
34271
+ /* @__PURE__ */ jsx(BlockDropIndicator, { path: blockPath, edge: "end" })
34272
+ ] });
34266
34273
  }, $[11] = _renderBlockActions, $[12] = _renderCustomMarkers, $[13] = floatingBoundary, $[14] = isFullscreen, $[15] = onItemClose, $[16] = onItemOpen, $[17] = onItemRemove, $[18] = onPathFocus, $[19] = path, $[20] = readOnly, $[21] = renderAnnotation, $[22] = renderBlock2, $[23] = renderField, $[24] = renderInlineBlock, $[25] = renderInput, $[26] = renderItem2, $[27] = renderPreview, $[28] = schemaTypes.block, $[29] = scrollElement, $[30] = setElementRef, $[31] = t6) : t6 = $[31];
34267
34274
  const renderTextBlock = t6;
34268
34275
  let t7;
34269
- $[32] !== _renderBlockActions || $[33] !== _renderCustomMarkers || $[34] !== floatingBoundary || $[35] !== isFullscreen || $[36] !== onItemClose || $[37] !== onItemOpen || $[38] !== onItemRemove || $[39] !== onPathFocus || $[40] !== path || $[41] !== readOnly || $[42] !== renderAnnotation || $[43] !== renderBlock2 || $[44] !== renderField || $[45] !== renderInlineBlock || $[46] !== renderInput || $[47] !== renderItem2 || $[48] !== renderPreview || $[49] !== schemaTypes.blockObjects || $[50] !== scrollElement || $[51] !== setElementRef ? (t7 = (blockProps_0) => {
34276
+ $[32] !== _renderBlockActions || $[33] !== _renderCustomMarkers || $[34] !== floatingBoundary || $[35] !== isFullscreen || $[36] !== onItemClose || $[37] !== onItemOpen || $[38] !== onItemRemove || $[39] !== onPathFocus || $[40] !== path || $[41] !== readOnly || $[42] !== renderAnnotation || $[43] !== renderBlock2 || $[44] !== renderField || $[45] !== renderInlineBlock || $[46] !== renderInput || $[47] !== renderItem2 || $[48] !== renderPreview || $[49] !== schemaTypes.blockObjects || $[50] !== scrollElement || $[51] !== setElementRef ? (t7 = (blockProps) => {
34270
34277
  const {
34278
+ attributes: attributes_0,
34271
34279
  focused: blockFocused_0,
34280
+ node: node_0,
34272
34281
  path: blockPath_0,
34273
- selected: blockSelected,
34274
- schemaType: blockSchemaType,
34275
- value: blockValue
34276
- } = blockProps_0, sanitySchemaType = schemaTypes.blockObjects.find((type) => type.name === blockSchemaType.name);
34282
+ selected: selected_0
34283
+ } = blockProps, sanitySchemaType = schemaTypes.blockObjects.find((type) => type.name === node_0._type);
34277
34284
  if (!sanitySchemaType)
34278
- throw new Error(`Could not find Sanity schema type for block object: ${blockSchemaType.name}`);
34279
- return /* @__PURE__ */ jsx(BlockObject, { floatingBoundary, focused: blockFocused_0, isFullscreen, onItemClose, onItemOpen, onItemRemove, onPathFocus, path: path.concat(blockPath_0), readOnly, referenceBoundary: scrollElement, relativePath: blockPath_0, renderAnnotation, renderBlock: renderBlock2, renderBlockActions: _renderBlockActions, renderCustomMarkers: _renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType, selected: blockSelected, setElementRef, value: blockValue });
34285
+ throw new Error(`Could not find Sanity schema type for block object: ${node_0._type}`);
34286
+ return /* @__PURE__ */ jsxs("div", { ...attributes_0, children: [
34287
+ /* @__PURE__ */ jsx(BlockDropIndicator, { path: blockPath_0, edge: "start" }),
34288
+ blockProps.children,
34289
+ /* @__PURE__ */ jsx("div", { contentEditable: !1, draggable: !readOnly, children: /* @__PURE__ */ jsx(BlockObject, { floatingBoundary, focused: blockFocused_0, isFullscreen, onItemClose, onItemOpen, onItemRemove, onPathFocus, path: path.concat(blockPath_0), readOnly, referenceBoundary: scrollElement, relativePath: blockPath_0, renderAnnotation, renderBlock: renderBlock2, renderBlockActions: _renderBlockActions, renderCustomMarkers: _renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType, selected: selected_0, setElementRef, value: node_0 }) }),
34290
+ /* @__PURE__ */ jsx(BlockDropIndicator, { path: blockPath_0, edge: "end" })
34291
+ ] });
34280
34292
  }, $[32] = _renderBlockActions, $[33] = _renderCustomMarkers, $[34] = floatingBoundary, $[35] = isFullscreen, $[36] = onItemClose, $[37] = onItemOpen, $[38] = onItemRemove, $[39] = onPathFocus, $[40] = path, $[41] = readOnly, $[42] = renderAnnotation, $[43] = renderBlock2, $[44] = renderField, $[45] = renderInlineBlock, $[46] = renderInput, $[47] = renderItem2, $[48] = renderPreview, $[49] = schemaTypes.blockObjects, $[50] = scrollElement, $[51] = setElementRef, $[52] = t7) : t7 = $[52];
34281
- const renderObjectBlock = t7;
34293
+ const renderBlockObject = t7;
34282
34294
  let t8;
34283
- $[53] !== renderObjectBlock || $[54] !== renderTextBlock || $[55] !== schemaTypes.block.name ? (t8 = (blockProps_1) => {
34284
- const {
34285
- value: block_0
34286
- } = blockProps_1;
34287
- return block_0._type === schemaTypes.block.name ? renderTextBlock(blockProps_1) : renderObjectBlock(blockProps_1);
34288
- }, $[53] = renderObjectBlock, $[54] = renderTextBlock, $[55] = schemaTypes.block.name, $[56] = t8) : t8 = $[56];
34289
- const editorRenderBlock = t8;
34290
- let t9;
34291
- $[57] !== floatingBoundary || $[58] !== onItemClose || $[59] !== onItemOpen || $[60] !== onPathFocus || $[61] !== path || $[62] !== readOnly || $[63] !== renderAnnotation || $[64] !== renderBlock2 || $[65] !== renderCustomMarkers || $[66] !== renderField || $[67] !== renderInlineBlock || $[68] !== renderInput || $[69] !== renderItem2 || $[70] !== renderPreview || $[71] !== schemaTypes.inlineObjects || $[72] !== schemaTypes.span.name || $[73] !== scrollElement || $[74] !== setElementRef ? (t9 = (childProps) => {
34295
+ $[53] !== floatingBoundary || $[54] !== onItemClose || $[55] !== onItemOpen || $[56] !== onPathFocus || $[57] !== path || $[58] !== readOnly || $[59] !== renderAnnotation || $[60] !== renderBlock2 || $[61] !== renderCustomMarkers || $[62] !== renderField || $[63] !== renderInlineBlock || $[64] !== renderInput || $[65] !== renderItem2 || $[66] !== renderPreview || $[67] !== schemaTypes.inlineObjects || $[68] !== scrollElement || $[69] !== setElementRef ? (t8 = (childProps) => {
34292
34296
  const {
34293
- children: children_0,
34297
+ attributes: attributes_1,
34294
34298
  focused: childFocused,
34299
+ node: node_1,
34295
34300
  path: childPath,
34296
- selected: selected_0,
34297
- schemaType: childSchemaType,
34298
- value: child
34299
- } = childProps;
34300
- if (child._type === schemaTypes.span.name)
34301
- return children_0;
34302
- const sanitySchemaType_0 = schemaTypes.inlineObjects.find((type_0) => type_0.name === childSchemaType.name);
34301
+ selected: selected_1
34302
+ } = childProps, sanitySchemaType_0 = schemaTypes.inlineObjects.find((type_0) => type_0.name === node_1._type);
34303
34303
  if (!sanitySchemaType_0)
34304
- throw new Error(`Could not find Sanity schema type for inline object: ${childSchemaType.name}`);
34305
- return /* @__PURE__ */ jsx(InlineObject, { floatingBoundary, focused: childFocused, onItemClose, onItemOpen, onPathFocus, path: path.concat(childPath), readOnly, referenceBoundary: scrollElement, relativePath: childPath, renderAnnotation, renderBlock: renderBlock2, renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType_0, selected: selected_0, setElementRef, value: child });
34306
- }, $[57] = floatingBoundary, $[58] = onItemClose, $[59] = onItemOpen, $[60] = onPathFocus, $[61] = path, $[62] = readOnly, $[63] = renderAnnotation, $[64] = renderBlock2, $[65] = renderCustomMarkers, $[66] = renderField, $[67] = renderInlineBlock, $[68] = renderInput, $[69] = renderItem2, $[70] = renderPreview, $[71] = schemaTypes.inlineObjects, $[72] = schemaTypes.span.name, $[73] = scrollElement, $[74] = setElementRef, $[75] = t9) : t9 = $[75];
34307
- const editorRenderChild = t9;
34304
+ throw new Error(`Could not find Sanity schema type for inline object: ${node_1._type}`);
34305
+ return /* @__PURE__ */ jsxs("span", { ...attributes_1, children: [
34306
+ childProps.children,
34307
+ /* @__PURE__ */ jsx("span", { draggable: !readOnly, style: {
34308
+ display: "inline-block"
34309
+ }, children: /* @__PURE__ */ jsx(InlineObject, { floatingBoundary, focused: childFocused, onItemClose, onItemOpen, onPathFocus, path: path.concat(childPath), readOnly, referenceBoundary: scrollElement, relativePath: childPath, renderAnnotation, renderBlock: renderBlock2, renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType_0, selected: selected_1, setElementRef, value: node_1 }) })
34310
+ ] });
34311
+ }, $[53] = floatingBoundary, $[54] = onItemClose, $[55] = onItemOpen, $[56] = onPathFocus, $[57] = path, $[58] = readOnly, $[59] = renderAnnotation, $[60] = renderBlock2, $[61] = renderCustomMarkers, $[62] = renderField, $[63] = renderInlineBlock, $[64] = renderInput, $[65] = renderItem2, $[66] = renderPreview, $[67] = schemaTypes.inlineObjects, $[68] = scrollElement, $[69] = setElementRef, $[70] = t8) : t8 = $[70];
34312
+ const renderInlineObject = t8;
34313
+ let t9;
34314
+ $[71] !== renderTextBlock ? (t9 = defineTextBlock({
34315
+ type: "*",
34316
+ render: renderTextBlock
34317
+ }), $[71] = renderTextBlock, $[72] = t9) : t9 = $[72];
34308
34318
  let t10;
34309
- $[76] !== floatingBoundary || $[77] !== focused || $[78] !== onItemClose || $[79] !== onItemOpen || $[80] !== onPathFocus || $[81] !== path || $[82] !== readOnly || $[83] !== renderAnnotation || $[84] !== renderBlock2 || $[85] !== renderCustomMarkers || $[86] !== renderField || $[87] !== renderInlineBlock || $[88] !== renderInput || $[89] !== renderItem2 || $[90] !== renderPreview || $[91] !== schemaTypes.annotations || $[92] !== scrollElement || $[93] !== setElementRef ? (t10 = (annotationProps) => {
34319
+ $[73] !== renderBlockObject ? (t10 = defineBlockObject({
34320
+ type: "*",
34321
+ render: renderBlockObject
34322
+ }), $[73] = renderBlockObject, $[74] = t10) : t10 = $[74];
34323
+ let t11;
34324
+ $[75] !== renderInlineObject ? (t11 = defineInlineObject({
34325
+ type: "*",
34326
+ render: renderInlineObject
34327
+ }), $[75] = renderInlineObject, $[76] = t11) : t11 = $[76];
34328
+ let t12;
34329
+ $[77] !== t10 || $[78] !== t11 || $[79] !== t9 ? (t12 = [t9, t10, t11], $[77] = t10, $[78] = t11, $[79] = t9, $[80] = t12) : t12 = $[80];
34330
+ const catchAllNodes = t12;
34331
+ let t13;
34332
+ $[81] !== floatingBoundary || $[82] !== focused || $[83] !== onItemClose || $[84] !== onItemOpen || $[85] !== onPathFocus || $[86] !== path || $[87] !== readOnly || $[88] !== renderAnnotation || $[89] !== renderBlock2 || $[90] !== renderCustomMarkers || $[91] !== renderField || $[92] !== renderInlineBlock || $[93] !== renderInput || $[94] !== renderItem2 || $[95] !== renderPreview || $[96] !== schemaTypes.annotations || $[97] !== scrollElement || $[98] !== setElementRef ? (t13 = (annotationProps) => {
34310
34333
  const {
34311
- children: children_1,
34334
+ children,
34312
34335
  focused: editorNodeFocused,
34313
34336
  path: aPath,
34314
- selected: selected_1,
34337
+ selected: selected_2,
34315
34338
  schemaType: aSchemaType,
34316
34339
  value: aValue
34317
34340
  } = annotationProps, sanitySchemaType_1 = schemaTypes.annotations.find((type_1) => type_1.name === aSchemaType.name);
34318
34341
  if (!sanitySchemaType_1)
34319
34342
  throw new Error(`Could not find Sanity schema type for annotation: ${aSchemaType.name}`);
34320
- return /* @__PURE__ */ jsx(Annotation, { editorNodeFocused, floatingBoundary, focused: !!focused, onItemClose, onItemOpen, onPathFocus, path: path.concat(aPath), readOnly, referenceBoundary: scrollElement, renderAnnotation, renderBlock: renderBlock2, renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType_1, selected: selected_1, setElementRef, value: aValue, children: children_1 });
34321
- }, $[76] = floatingBoundary, $[77] = focused, $[78] = onItemClose, $[79] = onItemOpen, $[80] = onPathFocus, $[81] = path, $[82] = readOnly, $[83] = renderAnnotation, $[84] = renderBlock2, $[85] = renderCustomMarkers, $[86] = renderField, $[87] = renderInlineBlock, $[88] = renderInput, $[89] = renderItem2, $[90] = renderPreview, $[91] = schemaTypes.annotations, $[92] = scrollElement, $[93] = setElementRef, $[94] = t10) : t10 = $[94];
34322
- const editorRenderAnnotation = t10, ariaDescribedBy = elementProps["aria-describedby"];
34323
- let t11;
34324
- $[95] !== focusPath || $[96] !== hasFocusWithin ? (t11 = () => {
34343
+ return /* @__PURE__ */ jsx(Annotation, { editorNodeFocused, floatingBoundary, focused: !!focused, onItemClose, onItemOpen, onPathFocus, path: path.concat(aPath), readOnly, referenceBoundary: scrollElement, renderAnnotation, renderBlock: renderBlock2, renderCustomMarkers, renderField, renderInlineBlock, renderInput, renderItem: renderItem2, renderPreview, schemaType: sanitySchemaType_1, selected: selected_2, setElementRef, value: aValue, children });
34344
+ }, $[81] = floatingBoundary, $[82] = focused, $[83] = onItemClose, $[84] = onItemOpen, $[85] = onPathFocus, $[86] = path, $[87] = readOnly, $[88] = renderAnnotation, $[89] = renderBlock2, $[90] = renderCustomMarkers, $[91] = renderField, $[92] = renderInlineBlock, $[93] = renderInput, $[94] = renderItem2, $[95] = renderPreview, $[96] = schemaTypes.annotations, $[97] = scrollElement, $[98] = setElementRef, $[99] = t13) : t13 = $[99];
34345
+ const editorRenderAnnotation = t13, ariaDescribedBy = elementProps["aria-describedby"];
34346
+ let t14;
34347
+ $[100] !== focusPath || $[101] !== hasFocusWithin ? (t14 = () => {
34325
34348
  if (hasFocusWithin)
34326
34349
  return {
34327
34350
  anchor: {
@@ -34333,55 +34356,97 @@ function Compositor(props2) {
34333
34356
  offset: 0
34334
34357
  }
34335
34358
  };
34336
- }, $[95] = focusPath, $[96] = hasFocusWithin, $[97] = t11) : t11 = $[97];
34337
- const [initialSelection] = useState(t11), isOneLineEditor = !!schemaTypes.block.options?.oneLine, t12 = wrapperElement || void 0;
34338
- let t13;
34339
- $[98] !== ariaDescribedBy || $[99] !== editorHotkeys || $[100] !== editorRenderAnnotation || $[101] !== editorRenderBlock || $[102] !== editorRenderChild || $[103] !== elementRef || $[104] !== handleToggleFullscreen || $[105] !== hideToolbar || $[106] !== initialSelection || $[107] !== isActive || $[108] !== isFullscreen || $[109] !== isOneLineEditor || $[110] !== onCopy || $[111] !== onItemOpen || $[112] !== path || $[113] !== rangeDecorations || $[114] !== readOnly || $[115] !== scrollElement || $[116] !== wrappedOnPaste ? (t13 = /* @__PURE__ */ jsx(StringDiffContainer, { children: /* @__PURE__ */ jsx(Editor, { ariaDescribedBy, elementRef, initialSelection, hideToolbar, hotkeys: editorHotkeys, isActive, isFullscreen, isOneLine: isOneLineEditor, onItemOpen, onCopy, onPaste: wrappedOnPaste, onToggleFullscreen: handleToggleFullscreen, path, rangeDecorations, readOnly, renderAnnotation: editorRenderAnnotation, renderBlock: editorRenderBlock, renderChild: editorRenderChild, setPortalElement, scrollElement, setScrollElement }) }), $[98] = ariaDescribedBy, $[99] = editorHotkeys, $[100] = editorRenderAnnotation, $[101] = editorRenderBlock, $[102] = editorRenderChild, $[103] = elementRef, $[104] = handleToggleFullscreen, $[105] = hideToolbar, $[106] = initialSelection, $[107] = isActive, $[108] = isFullscreen, $[109] = isOneLineEditor, $[110] = onCopy, $[111] = onItemOpen, $[112] = path, $[113] = rangeDecorations, $[114] = readOnly, $[115] = scrollElement, $[116] = wrappedOnPaste, $[117] = t13) : t13 = $[117];
34340
- let t14;
34341
- $[118] !== onSelectFile || $[119] !== onUpload || $[120] !== readOnly || $[121] !== schemaTypes.portableText.of || $[122] !== t12 || $[123] !== t13 ? (t14 = /* @__PURE__ */ jsx(UploadTargetCard$1, { isReadOnly: readOnly, onSelectFile, onUpload, pasteTarget: t12, tabIndex: -1, types: schemaTypes.portableText.of, children: t13 }), $[118] = onSelectFile, $[119] = onUpload, $[120] = readOnly, $[121] = schemaTypes.portableText.of, $[122] = t12, $[123] = t13, $[124] = t14) : t14 = $[124];
34342
- const editorNode = t14, portal = usePortal();
34343
- let t15;
34344
- $[125] !== portal.element || $[126] !== portalElement || $[127] !== wrapperElement ? (t15 = {
34359
+ }, $[100] = focusPath, $[101] = hasFocusWithin, $[102] = t14) : t14 = $[102];
34360
+ const [initialSelection] = useState(t14), isOneLineEditor = !!schemaTypes.block.options?.oneLine, t15 = wrapperElement || void 0;
34361
+ let t16;
34362
+ $[103] !== ariaDescribedBy || $[104] !== editorHotkeys || $[105] !== editorRenderAnnotation || $[106] !== elementRef || $[107] !== handleToggleFullscreen || $[108] !== hideToolbar || $[109] !== initialSelection || $[110] !== isActive || $[111] !== isFullscreen || $[112] !== isOneLineEditor || $[113] !== onCopy || $[114] !== onItemOpen || $[115] !== path || $[116] !== rangeDecorations || $[117] !== readOnly || $[118] !== scrollElement || $[119] !== wrappedOnPaste ? (t16 = /* @__PURE__ */ jsx(StringDiffContainer, { children: /* @__PURE__ */ jsx(Editor, { ariaDescribedBy, elementRef, initialSelection, hideToolbar, hotkeys: editorHotkeys, isActive, isFullscreen, isOneLine: isOneLineEditor, onItemOpen, onCopy, onPaste: wrappedOnPaste, onToggleFullscreen: handleToggleFullscreen, path, rangeDecorations, readOnly, renderAnnotation: editorRenderAnnotation, setPortalElement, scrollElement, setScrollElement }) }), $[103] = ariaDescribedBy, $[104] = editorHotkeys, $[105] = editorRenderAnnotation, $[106] = elementRef, $[107] = handleToggleFullscreen, $[108] = hideToolbar, $[109] = initialSelection, $[110] = isActive, $[111] = isFullscreen, $[112] = isOneLineEditor, $[113] = onCopy, $[114] = onItemOpen, $[115] = path, $[116] = rangeDecorations, $[117] = readOnly, $[118] = scrollElement, $[119] = wrappedOnPaste, $[120] = t16) : t16 = $[120];
34363
+ let t17;
34364
+ $[121] !== onSelectFile || $[122] !== onUpload || $[123] !== readOnly || $[124] !== schemaTypes.portableText.of || $[125] !== t15 || $[126] !== t16 ? (t17 = /* @__PURE__ */ jsx(UploadTargetCard$1, { isReadOnly: readOnly, onSelectFile, onUpload, pasteTarget: t15, tabIndex: -1, types: schemaTypes.portableText.of, children: t16 }), $[121] = onSelectFile, $[122] = onUpload, $[123] = readOnly, $[124] = schemaTypes.portableText.of, $[125] = t15, $[126] = t16, $[127] = t17) : t17 = $[127];
34365
+ const editorNode = t17, portal = usePortal();
34366
+ let t18;
34367
+ $[128] !== portal.element || $[129] !== portalElement || $[130] !== wrapperElement ? (t18 = {
34345
34368
  collapsed: wrapperElement,
34346
34369
  default: portal.element,
34347
34370
  editor: portalElement,
34348
34371
  expanded: portal.element
34349
- }, $[125] = portal.element, $[126] = portalElement, $[127] = wrapperElement, $[128] = t15) : t15 = $[128];
34350
- const portalElements = t15;
34351
- let t16;
34352
- $[129] !== focusPath || $[130] !== onItemClose || $[131] !== scrollElement ? (t16 = {
34372
+ }, $[128] = portal.element, $[129] = portalElement, $[130] = wrapperElement, $[131] = t18) : t18 = $[131];
34373
+ const portalElements = t18;
34374
+ let t19;
34375
+ $[132] !== focusPath || $[133] !== onItemClose || $[134] !== scrollElement ? (t19 = {
34353
34376
  focusPath,
34354
34377
  boundaryElement: scrollElement,
34355
34378
  onItemClose
34356
- }, $[129] = focusPath, $[130] = onItemClose, $[131] = scrollElement, $[132] = t16) : t16 = $[132], useTrackFocusPath(t16);
34357
- const editorFocused = focused || hasFocusWithin, t17 = portal.element, t18 = !isActive, t19 = !!focused, t20 = editorFocused ? "" : void 0, t21 = readOnly ? "" : void 0, t22 = isFullscreen ? "expanded" : "collapsed";
34358
- let t23;
34359
- $[133] !== editorNode || $[134] !== isFullscreen ? (t23 = isFullscreen ? /* @__PURE__ */ jsx(ExpandedLayer, { children: editorNode }) : editorNode, $[133] = editorNode, $[134] = isFullscreen, $[135] = t23) : t23 = $[135];
34360
- let t24;
34361
- $[136] !== focused || $[137] !== onItemClose || $[138] !== scrollElement ? (t24 = /* @__PURE__ */ jsx(AnnotationObjectEditModal, { focused, onItemClose, referenceBoundary: scrollElement }), $[136] = focused, $[137] = onItemClose, $[138] = scrollElement, $[139] = t24) : t24 = $[139];
34362
- let t25;
34363
- $[140] !== scrollElement ? (t25 = /* @__PURE__ */ jsx(CombinedAnnotationPopover, { referenceBoundary: scrollElement }), $[140] = scrollElement, $[141] = t25) : t25 = $[141];
34364
- let t26;
34365
- $[142] !== t22 || $[143] !== t23 || $[144] !== t24 || $[145] !== t25 ? (t26 = /* @__PURE__ */ jsx(Box, { "data-wrapper": "", ref: setWrapperElement, children: /* @__PURE__ */ jsxs(Portal, { __unstable_name: t22, children: [
34366
- t23,
34367
- t24,
34368
- t25
34369
- ] }) }), $[142] = t22, $[143] = t23, $[144] = t24, $[145] = t25, $[146] = t26) : t26 = $[146];
34379
+ }, $[132] = focusPath, $[133] = onItemClose, $[134] = scrollElement, $[135] = t19) : t19 = $[135], useTrackFocusPath(t19);
34380
+ const editorFocused = focused || hasFocusWithin;
34381
+ let t20;
34382
+ $[136] !== catchAllNodes ? (t20 = /* @__PURE__ */ jsx(NodePlugin, { nodes: catchAllNodes }), $[136] = catchAllNodes, $[137] = t20) : t20 = $[137];
34383
+ const t21 = portal.element, t22 = !isActive, t23 = !!focused, t24 = editorFocused ? "" : void 0, t25 = readOnly ? "" : void 0, t26 = isFullscreen ? "expanded" : "collapsed";
34370
34384
  let t27;
34371
- $[147] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t27 = /* @__PURE__ */ jsx("div", { "data-border": "" }), $[147] = t27) : t27 = $[147];
34385
+ $[138] !== editorNode || $[139] !== isFullscreen ? (t27 = isFullscreen ? /* @__PURE__ */ jsx(ExpandedLayer, { children: editorNode }) : editorNode, $[138] = editorNode, $[139] = isFullscreen, $[140] = t27) : t27 = $[140];
34372
34386
  let t28;
34373
- $[148] !== t20 || $[149] !== t21 || $[150] !== t26 ? (t28 = /* @__PURE__ */ jsxs(Root$l, { "data-focused": t20, "data-read-only": t21, children: [
34374
- t26,
34375
- t27
34376
- ] }), $[148] = t20, $[149] = t21, $[150] = t26, $[151] = t28) : t28 = $[151];
34387
+ $[141] !== focused || $[142] !== onItemClose || $[143] !== scrollElement ? (t28 = /* @__PURE__ */ jsx(AnnotationObjectEditModal, { focused, onItemClose, referenceBoundary: scrollElement }), $[141] = focused, $[142] = onItemClose, $[143] = scrollElement, $[144] = t28) : t28 = $[144];
34377
34388
  let t29;
34378
- $[152] !== changed || $[153] !== isFullscreen || $[154] !== path || $[155] !== t19 || $[156] !== t28 ? (t29 = /* @__PURE__ */ jsx(ChangeIndicator, { disabled: isFullscreen, hasFocus: t19, isChanged: changed, path, children: t28 }), $[152] = changed, $[153] = isFullscreen, $[154] = path, $[155] = t19, $[156] = t28, $[157] = t29) : t29 = $[157];
34389
+ $[145] !== scrollElement ? (t29 = /* @__PURE__ */ jsx(CombinedAnnotationPopover, { referenceBoundary: scrollElement }), $[145] = scrollElement, $[146] = t29) : t29 = $[146];
34379
34390
  let t30;
34380
- $[158] !== onActivate || $[159] !== t18 || $[160] !== t29 ? (t30 = /* @__PURE__ */ jsx(ActivateOnFocus, { onActivate, isOverlayActive: t18, children: t29 }), $[158] = onActivate, $[159] = t18, $[160] = t29, $[161] = t30) : t30 = $[161];
34391
+ $[147] !== t26 || $[148] !== t27 || $[149] !== t28 || $[150] !== t29 ? (t30 = /* @__PURE__ */ jsx(Box, { "data-wrapper": "", ref: setWrapperElement, children: /* @__PURE__ */ jsxs(Portal, { __unstable_name: t26, children: [
34392
+ t27,
34393
+ t28,
34394
+ t29
34395
+ ] }) }), $[147] = t26, $[148] = t27, $[149] = t28, $[150] = t29, $[151] = t30) : t30 = $[151];
34381
34396
  let t31;
34382
- $[162] !== floatingBoundary || $[163] !== t30 ? (t31 = /* @__PURE__ */ jsx(BoundaryElementProvider, { element: floatingBoundary, children: t30 }), $[162] = floatingBoundary, $[163] = t30, $[164] = t31) : t31 = $[164];
34397
+ $[152] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t31 = /* @__PURE__ */ jsx("div", { "data-border": "" }), $[152] = t31) : t31 = $[152];
34383
34398
  let t32;
34384
- return $[165] !== portal.element || $[166] !== portalElements || $[167] !== t31 ? (t32 = /* @__PURE__ */ jsx(SelectedAnnotationsProvider, { children: /* @__PURE__ */ jsx(PortalProvider, { __unstable_elements: portalElements, element: t17, children: t31 }) }), $[165] = portal.element, $[166] = portalElements, $[167] = t31, $[168] = t32) : t32 = $[168], t32;
34399
+ $[153] !== t24 || $[154] !== t25 || $[155] !== t30 ? (t32 = /* @__PURE__ */ jsxs(Root$l, { "data-focused": t24, "data-read-only": t25, children: [
34400
+ t30,
34401
+ t31
34402
+ ] }), $[153] = t24, $[154] = t25, $[155] = t30, $[156] = t32) : t32 = $[156];
34403
+ let t33;
34404
+ $[157] !== changed || $[158] !== isFullscreen || $[159] !== path || $[160] !== t23 || $[161] !== t32 ? (t33 = /* @__PURE__ */ jsx(ChangeIndicator, { disabled: isFullscreen, hasFocus: t23, isChanged: changed, path, children: t32 }), $[157] = changed, $[158] = isFullscreen, $[159] = path, $[160] = t23, $[161] = t32, $[162] = t33) : t33 = $[162];
34405
+ let t34;
34406
+ $[163] !== onActivate || $[164] !== t22 || $[165] !== t33 ? (t34 = /* @__PURE__ */ jsx(ActivateOnFocus, { onActivate, isOverlayActive: t22, children: t33 }), $[163] = onActivate, $[164] = t22, $[165] = t33, $[166] = t34) : t34 = $[166];
34407
+ let t35;
34408
+ $[167] !== floatingBoundary || $[168] !== t34 ? (t35 = /* @__PURE__ */ jsx(BoundaryElementProvider, { element: floatingBoundary, children: t34 }), $[167] = floatingBoundary, $[168] = t34, $[169] = t35) : t35 = $[169];
34409
+ let t36;
34410
+ $[170] !== portal.element || $[171] !== portalElements || $[172] !== t35 ? (t36 = /* @__PURE__ */ jsx(PortalProvider, { __unstable_elements: portalElements, element: t21, children: t35 }), $[170] = portal.element, $[171] = portalElements, $[172] = t35, $[173] = t36) : t36 = $[173];
34411
+ let t37;
34412
+ return $[174] !== t20 || $[175] !== t36 ? (t37 = /* @__PURE__ */ jsx(SelectedAnnotationsProvider, { children: /* @__PURE__ */ jsx(DndProvider, { children: /* @__PURE__ */ jsxs(ListIndexProvider, { children: [
34413
+ t20,
34414
+ t36
34415
+ ] }) }) }), $[174] = t20, $[175] = t36, $[176] = t37) : t37 = $[176], t37;
34416
+ }
34417
+ function DropIndicator() {
34418
+ const $ = c(1);
34419
+ let t0;
34420
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx("div", { className: "pt-drop-indicator", contentEditable: !1, style: {
34421
+ position: "absolute",
34422
+ width: "100%",
34423
+ height: 1,
34424
+ borderBottom: "1px solid currentColor",
34425
+ zIndex: 5
34426
+ }, children: /* @__PURE__ */ jsx("span", {}) }), $[0] = t0) : t0 = $[0], t0;
34427
+ }
34428
+ function BlockDropIndicator(props2) {
34429
+ const $ = c(3), dropPosition = useDropPosition(props2.path);
34430
+ let t0;
34431
+ return $[0] !== dropPosition || $[1] !== props2.edge ? (t0 = dropPosition === props2.edge ? /* @__PURE__ */ jsx(DropIndicator, {}) : null, $[0] = dropPosition, $[1] = props2.edge, $[2] = t0) : t0 = $[2], t0;
34432
+ }
34433
+ function TextBlockShell(props2) {
34434
+ const $ = c(10), {
34435
+ attributes,
34436
+ block,
34437
+ children,
34438
+ path: blockPath
34439
+ } = props2, listIndex = useListIndex(blockPath), level = block.listItem !== void 0 ? block.level ?? 1 : block.level, t0 = block.listItem !== void 0 ? `pt-list-item pt-list-item-${block.listItem}` : void 0;
34440
+ let t1;
34441
+ $[0] !== level ? (t1 = level !== void 0 ? {
34442
+ "data-level": level
34443
+ } : {}, $[0] = level, $[1] = t1) : t1 = $[1];
34444
+ let t2;
34445
+ $[2] !== listIndex ? (t2 = listIndex !== void 0 ? {
34446
+ "data-list-index": listIndex
34447
+ } : {}, $[2] = listIndex, $[3] = t2) : t2 = $[3];
34448
+ let t3;
34449
+ return $[4] !== attributes || $[5] !== children || $[6] !== t0 || $[7] !== t1 || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx("div", { ...attributes, className: t0, ...t1, ...t2, children }), $[4] = attributes, $[5] = children, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
34385
34450
  }
34386
34451
  function FullscreenPTEProvider(t0) {
34387
34452
  const $ = c(16), {
@@ -44577,7 +44642,7 @@ function BlockObjectActionsMenu(props2) {
44577
44642
  ] }), $[39] = t14, $[40] = t5, $[41] = t15) : t15 = $[41], t15;
44578
44643
  }
44579
44644
  function BlockObject(props2) {
44580
- const $ = c(99), {
44645
+ const $ = c(100), {
44581
44646
  floatingBoundary,
44582
44647
  focused,
44583
44648
  isFullscreen,
@@ -44601,7 +44666,7 @@ function BlockObject(props2) {
44601
44666
  selected,
44602
44667
  setElementRef,
44603
44668
  value
44604
- } = props2, {
44669
+ } = props2, nested = relativePath.length > 1, {
44605
44670
  onChange
44606
44671
  } = useFormCallbacks(), {
44607
44672
  Markers
@@ -44654,33 +44719,40 @@ function BlockObject(props2) {
44654
44719
  }, t7 = [editor2], $[18] = editor2, $[19] = t6, $[20] = t7) : (t6 = $[19], t7 = $[20]), useEffect(t6, t7);
44655
44720
  let t8;
44656
44721
  bb0: {
44657
- if (isFullscreen && !renderBlockActions) {
44722
+ if (nested) {
44658
44723
  let t93;
44659
44724
  $[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = {
44660
- paddingX: 5
44725
+ paddingX: 0
44661
44726
  }, $[21] = t93) : t93 = $[21], t8 = t93;
44662
44727
  break bb0;
44663
44728
  }
44664
- if (isFullscreen && renderBlockActions) {
44729
+ if (isFullscreen && !renderBlockActions) {
44665
44730
  let t93;
44666
44731
  $[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = {
44732
+ paddingX: 5
44733
+ }, $[22] = t93) : t93 = $[22], t8 = t93;
44734
+ break bb0;
44735
+ }
44736
+ if (isFullscreen && renderBlockActions) {
44737
+ let t93;
44738
+ $[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = {
44667
44739
  paddingLeft: 5,
44668
44740
  paddingRight: 2
44669
- }, $[22] = t93) : t93 = $[22], t8 = t93;
44741
+ }, $[23] = t93) : t93 = $[23], t8 = t93;
44670
44742
  break bb0;
44671
44743
  }
44672
44744
  if (renderBlockActions) {
44673
44745
  let t93;
44674
- $[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = {
44746
+ $[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = {
44675
44747
  paddingLeft: 3,
44676
44748
  paddingRight: 2
44677
- }, $[23] = t93) : t93 = $[23], t8 = t93;
44749
+ }, $[24] = t93) : t93 = $[24], t8 = t93;
44678
44750
  break bb0;
44679
44751
  }
44680
44752
  let t92;
44681
- $[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t92 = {
44753
+ $[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t92 = {
44682
44754
  paddingX: 3
44683
- }, $[24] = t92) : t92 = $[24], t8 = t92;
44755
+ }, $[25] = t92) : t92 = $[25], t8 = t92;
44684
44756
  }
44685
44757
  const innerPaddingProps = t8, {
44686
44758
  validation: validation2,
@@ -44689,17 +44761,17 @@ function BlockObject(props2) {
44689
44761
  hasInfo
44690
44762
  } = useMemberValidation(memberItem?.node), parentSchemaType = schemaTypes.portableText, hasMarkers = markers.length > 0, presence = useChildPresence(path, !0);
44691
44763
  let t9;
44692
- if ($[25] !== path || $[26] !== presence) {
44764
+ if ($[26] !== path || $[27] !== presence) {
44693
44765
  let t102;
44694
- $[28] !== path ? (t102 = (p) => isEqual$2(p.path, path), $[28] = path, $[29] = t102) : t102 = $[29], t9 = presence.filter(t102), $[25] = path, $[26] = presence, $[27] = t9;
44766
+ $[29] !== path ? (t102 = (p) => isEqual$2(p.path, path), $[29] = path, $[30] = t102) : t102 = $[30], t9 = presence.filter(t102), $[26] = path, $[27] = presence, $[28] = t9;
44695
44767
  } else
44696
- t9 = $[27];
44768
+ t9 = $[28];
44697
44769
  const rootPresence = t9, tooltipEnabled = hasError || hasWarning || hasInfo || hasMarkers;
44698
44770
  let t10;
44699
- $[30] !== Markers || $[31] !== markers || $[32] !== renderCustomMarkers || $[33] !== tooltipEnabled || $[34] !== validation2 ? (t10 = tooltipEnabled && /* @__PURE__ */ jsx(TooltipBox, { children: /* @__PURE__ */ jsx(Markers, { markers, validation: validation2, renderCustomMarkers }) }) || null, $[30] = Markers, $[31] = markers, $[32] = renderCustomMarkers, $[33] = tooltipEnabled, $[34] = validation2, $[35] = t10) : t10 = $[35];
44771
+ $[31] !== Markers || $[32] !== markers || $[33] !== renderCustomMarkers || $[34] !== tooltipEnabled || $[35] !== validation2 ? (t10 = tooltipEnabled && /* @__PURE__ */ jsx(TooltipBox, { children: /* @__PURE__ */ jsx(Markers, { markers, validation: validation2, renderCustomMarkers }) }) || null, $[31] = Markers, $[32] = markers, $[33] = renderCustomMarkers, $[34] = tooltipEnabled, $[35] = validation2, $[36] = t10) : t10 = $[36];
44700
44772
  const toolTipContent = t10, isOpen = !!memberItem?.member.open, input = memberItem?.input, nodePath = memberItem?.node.path || EMPTY_ARRAY$u, referenceElement = divElement, t11 = memberItem?.member.item.changed ?? !1, t12 = !!readOnly;
44701
44773
  let t13;
44702
- $[36] !== floatingBoundary || $[37] !== focused || $[38] !== input || $[39] !== isOpen || $[40] !== markers || $[41] !== nodePath || $[42] !== onClose || $[43] !== onOpen || $[44] !== onPathFocus || $[45] !== onRemove || $[46] !== parentSchemaType || $[47] !== referenceBoundary || $[48] !== referenceElement || $[49] !== renderAnnotation || $[50] !== renderBlock2 || $[51] !== renderField || $[52] !== renderInlineBlock || $[53] !== renderInput || $[54] !== renderItem2 || $[55] !== renderPreview || $[56] !== rootPresence || $[57] !== schemaType || $[58] !== selected || $[59] !== t11 || $[60] !== t12 || $[61] !== validation2 || $[62] !== value ? (t13 = {
44774
+ $[37] !== floatingBoundary || $[38] !== focused || $[39] !== input || $[40] !== isOpen || $[41] !== markers || $[42] !== nodePath || $[43] !== onClose || $[44] !== onOpen || $[45] !== onPathFocus || $[46] !== onRemove || $[47] !== parentSchemaType || $[48] !== referenceBoundary || $[49] !== referenceElement || $[50] !== renderAnnotation || $[51] !== renderBlock2 || $[52] !== renderField || $[53] !== renderInlineBlock || $[54] !== renderInput || $[55] !== renderItem2 || $[56] !== renderPreview || $[57] !== rootPresence || $[58] !== schemaType || $[59] !== selected || $[60] !== t11 || $[61] !== t12 || $[62] !== validation2 || $[63] !== value ? (t13 = {
44703
44775
  __unstable_floatingBoundary: floatingBoundary,
44704
44776
  __unstable_referenceBoundary: referenceBoundary,
44705
44777
  __unstable_referenceElement: referenceElement,
@@ -44728,40 +44800,40 @@ function BlockObject(props2) {
44728
44800
  selected,
44729
44801
  validation: validation2,
44730
44802
  value
44731
- }, $[36] = floatingBoundary, $[37] = focused, $[38] = input, $[39] = isOpen, $[40] = markers, $[41] = nodePath, $[42] = onClose, $[43] = onOpen, $[44] = onPathFocus, $[45] = onRemove, $[46] = parentSchemaType, $[47] = referenceBoundary, $[48] = referenceElement, $[49] = renderAnnotation, $[50] = renderBlock2, $[51] = renderField, $[52] = renderInlineBlock, $[53] = renderInput, $[54] = renderItem2, $[55] = renderPreview, $[56] = rootPresence, $[57] = schemaType, $[58] = selected, $[59] = t11, $[60] = t12, $[61] = validation2, $[62] = value, $[63] = t13) : t13 = $[63];
44803
+ }, $[37] = floatingBoundary, $[38] = focused, $[39] = input, $[40] = isOpen, $[41] = markers, $[42] = nodePath, $[43] = onClose, $[44] = onOpen, $[45] = onPathFocus, $[46] = onRemove, $[47] = parentSchemaType, $[48] = referenceBoundary, $[49] = referenceElement, $[50] = renderAnnotation, $[51] = renderBlock2, $[52] = renderField, $[53] = renderInlineBlock, $[54] = renderInput, $[55] = renderItem2, $[56] = renderPreview, $[57] = rootPresence, $[58] = schemaType, $[59] = selected, $[60] = t11, $[61] = t12, $[62] = validation2, $[63] = value, $[64] = t13) : t13 = $[64];
44732
44804
  const componentProps = t13, blockActionsEnabled = renderBlockActions && value && !readOnly, changeIndicatorVisible = isFullscreen && memberItem;
44733
44805
  let t14;
44734
- $[64] !== memberItem || $[65] !== setElementRef ? (t14 = (elm) => {
44806
+ $[65] !== memberItem || $[66] !== setElementRef ? (t14 = (elm) => {
44735
44807
  memberItem && setElementRef({
44736
44808
  key: memberItem.member.key,
44737
44809
  elementRef: elm
44738
44810
  }), setDivElement(elm);
44739
- }, $[64] = memberItem, $[65] = setElementRef, $[66] = t14) : t14 = $[66];
44811
+ }, $[65] = memberItem, $[66] = setElementRef, $[67] = t14) : t14 = $[67];
44740
44812
  const setRef = t14;
44741
44813
  let t15;
44742
- $[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = void 0, $[67] = t15) : t15 = $[67];
44814
+ $[68] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = void 0, $[68] = t15) : t15 = $[68];
44743
44815
  const t16 = isOpen ? !0 : !tooltipEnabled;
44744
44816
  let t17;
44745
- $[68] !== componentProps || $[69] !== renderBlock2 ? (t17 = renderBlock2 && /* @__PURE__ */ jsx(RenderBlock, { ...componentProps, renderBlock: renderBlock2 }), $[68] = componentProps, $[69] = renderBlock2, $[70] = t17) : t17 = $[70];
44817
+ $[69] !== componentProps || $[70] !== renderBlock2 ? (t17 = renderBlock2 && /* @__PURE__ */ jsx(RenderBlock, { ...componentProps, renderBlock: renderBlock2 }), $[69] = componentProps, $[70] = renderBlock2, $[71] = t17) : t17 = $[71];
44746
44818
  let t18;
44747
- $[71] !== t17 ? (t18 = /* @__PURE__ */ jsx("div", { children: t17 }), $[71] = t17, $[72] = t18) : t18 = $[72];
44819
+ $[72] !== t17 ? (t18 = /* @__PURE__ */ jsx("div", { children: t17 }), $[72] = t17, $[73] = t18) : t18 = $[73];
44748
44820
  let t19;
44749
- $[73] !== t16 || $[74] !== t18 || $[75] !== toolTipContent ? (t19 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Tooltip, { placement: "top", portal: "editor", disabled: t16, content: toolTipContent, children: t18 }) }), $[73] = t16, $[74] = t18, $[75] = toolTipContent, $[76] = t19) : t19 = $[76];
44821
+ $[74] !== t16 || $[75] !== t18 || $[76] !== toolTipContent ? (t19 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Tooltip, { placement: "top", portal: "editor", disabled: t16, content: toolTipContent, children: t18 }) }), $[74] = t16, $[75] = t18, $[76] = toolTipContent, $[77] = t19) : t19 = $[77];
44750
44822
  let t20;
44751
- $[77] !== blockActionsEnabled || $[78] !== focused || $[79] !== onChange || $[80] !== renderBlockActions || $[81] !== value ? (t20 = blockActionsEnabled && /* @__PURE__ */ jsx(BlockActionsOuter, { contentEditable: !1, marginRight: 3, children: /* @__PURE__ */ jsx(BlockActionsInner, { children: focused && /* @__PURE__ */ jsx(BlockActions, { block: value, onChange, renderBlockActions }) }) }), $[77] = blockActionsEnabled, $[78] = focused, $[79] = onChange, $[80] = renderBlockActions, $[81] = value, $[82] = t20) : t20 = $[82];
44823
+ $[78] !== blockActionsEnabled || $[79] !== focused || $[80] !== onChange || $[81] !== renderBlockActions || $[82] !== value ? (t20 = blockActionsEnabled && /* @__PURE__ */ jsx(BlockActionsOuter, { contentEditable: !1, marginRight: 3, children: /* @__PURE__ */ jsx(BlockActionsInner, { children: focused && /* @__PURE__ */ jsx(BlockActions, { block: value, onChange, renderBlockActions }) }) }), $[78] = blockActionsEnabled, $[79] = focused, $[80] = onChange, $[81] = renderBlockActions, $[82] = value, $[83] = t20) : t20 = $[83];
44752
44824
  let t21;
44753
- $[83] !== changeIndicatorVisible || $[84] !== focused || $[85] !== memberItem ? (t21 = changeIndicatorVisible && /* @__PURE__ */ jsx(ChangeIndicatorWrapper, { $hasChanges: memberItem.member.item.changed, contentEditable: !1, children: /* @__PURE__ */ jsx(StyledChangeIndicatorWithProvidedFullPath, { hasFocus: focused, isChanged: memberItem.member.item.changed, path: memberItem.member.item.path, withHoverEffect: !1 }) }), $[83] = changeIndicatorVisible, $[84] = focused, $[85] = memberItem, $[86] = t21) : t21 = $[86];
44825
+ $[84] !== changeIndicatorVisible || $[85] !== focused || $[86] !== memberItem ? (t21 = changeIndicatorVisible && /* @__PURE__ */ jsx(ChangeIndicatorWrapper, { $hasChanges: memberItem.member.item.changed, contentEditable: !1, children: /* @__PURE__ */ jsx(StyledChangeIndicatorWithProvidedFullPath, { hasFocus: focused, isChanged: memberItem.member.item.changed, path: memberItem.member.item.path, withHoverEffect: !1 }) }), $[84] = changeIndicatorVisible, $[85] = focused, $[86] = memberItem, $[87] = t21) : t21 = $[87];
44754
44826
  let t22;
44755
- $[87] !== changeHovered || $[88] !== isFullscreen ? (t22 = changeHovered && /* @__PURE__ */ jsx(ReviewChangesHighlightBlock, { $fullScreen: !!isFullscreen }), $[87] = changeHovered, $[88] = isFullscreen, $[89] = t22) : t22 = $[89];
44827
+ $[88] !== changeHovered || $[89] !== isFullscreen ? (t22 = changeHovered && /* @__PURE__ */ jsx(ReviewChangesHighlightBlock, { $fullScreen: !!isFullscreen }), $[88] = changeHovered, $[89] = isFullscreen, $[90] = t22) : t22 = $[90];
44756
44828
  let t23;
44757
- $[90] !== innerPaddingProps || $[91] !== t19 || $[92] !== t20 || $[93] !== t21 || $[94] !== t22 ? (t23 = /* @__PURE__ */ jsx(Flex, { paddingBottom: 1, marginY: 3, style: t15, children: /* @__PURE__ */ jsxs(PreviewContainer, { ...innerPaddingProps, children: [
44829
+ $[91] !== innerPaddingProps || $[92] !== t19 || $[93] !== t20 || $[94] !== t21 || $[95] !== t22 ? (t23 = /* @__PURE__ */ jsx(Flex, { paddingBottom: 1, marginY: 3, style: t15, children: /* @__PURE__ */ jsxs(PreviewContainer, { ...innerPaddingProps, children: [
44758
44830
  t19,
44759
44831
  t20,
44760
44832
  t21,
44761
44833
  t22
44762
- ] }) }), $[90] = innerPaddingProps, $[91] = t19, $[92] = t20, $[93] = t21, $[94] = t22, $[95] = t23) : t23 = $[95];
44834
+ ] }) }), $[91] = innerPaddingProps, $[92] = t19, $[93] = t20, $[94] = t21, $[95] = t22, $[96] = t23) : t23 = $[96];
44763
44835
  let t24;
44764
- return $[96] !== setRef || $[97] !== t23 ? (t24 = /* @__PURE__ */ jsx(Box, { ref: setRef, contentEditable: !1, children: t23 }), $[96] = setRef, $[97] = t23, $[98] = t24) : t24 = $[98], t24;
44836
+ return $[97] !== setRef || $[98] !== t23 ? (t24 = /* @__PURE__ */ jsx(Box, { ref: setRef, contentEditable: !1, children: t23 }), $[97] = setRef, $[98] = t23, $[99] = t24) : t24 = $[99], t24;
44765
44837
  }
44766
44838
  function RenderBlock(props2) {
44767
44839
  const {