sanity 5.0.0-next-major.12 → 5.0.0-next-major.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/bin/sanity +2 -1
  2. package/lib/_chunks-es/LiveQueries.js +1 -1
  3. package/lib/_chunks-es/LiveQueries.js.map +1 -1
  4. package/lib/_chunks-es/MenuGroup.js +3 -3
  5. package/lib/_chunks-es/MenuGroup.js.map +1 -1
  6. package/lib/_chunks-es/PostMessagePreviewSnapshots.js +2 -2
  7. package/lib/_chunks-es/PostMessagePreviewSnapshots.js.map +1 -1
  8. package/lib/_chunks-es/PresentationToolGrantsCheck.js +54 -54
  9. package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
  10. package/lib/_chunks-es/QRCodeSVG.js +1 -1
  11. package/lib/_chunks-es/QRCodeSVG.js.map +1 -1
  12. package/lib/_chunks-es/StructureToolProvider.js +1 -1
  13. package/lib/_chunks-es/StructureToolProvider.js.map +1 -1
  14. package/lib/_chunks-es/VideoPlayer.js +1 -1
  15. package/lib/_chunks-es/VideoPlayer.js.map +1 -1
  16. package/lib/_chunks-es/ViteDevServerStopped.js +6 -6
  17. package/lib/_chunks-es/ViteDevServerStopped.js.map +1 -1
  18. package/lib/_chunks-es/_internal.js +1 -1
  19. package/lib/_chunks-es/_internal.js.map +1 -1
  20. package/lib/_chunks-es/deployApiAction.js +1 -1
  21. package/lib/_chunks-es/deployApiAction.js.map +1 -1
  22. package/lib/_chunks-es/dev-aliases.js +1 -0
  23. package/lib/_chunks-es/dev-aliases.js.map +1 -1
  24. package/lib/_chunks-es/execScript.js +2 -1
  25. package/lib/_chunks-es/execScript.js.map +1 -1
  26. package/lib/_chunks-es/exportAssetsAction.js +1 -1
  27. package/lib/_chunks-es/exportAssetsAction.js.map +1 -1
  28. package/lib/_chunks-es/extractAction.js +2 -1
  29. package/lib/_chunks-es/extractAction.js.map +1 -1
  30. package/lib/_chunks-es/extractManifestAction.js +2 -1
  31. package/lib/_chunks-es/extractManifestAction.js.map +1 -1
  32. package/lib/_chunks-es/generate-help-url.esm.js +1 -1
  33. package/lib/_chunks-es/generate-help-url.esm.js.map +1 -1
  34. package/lib/_chunks-es/getGraphQLAPIs.js +2 -1
  35. package/lib/_chunks-es/getGraphQLAPIs.js.map +1 -1
  36. package/lib/_chunks-es/helpers.js +2 -1
  37. package/lib/_chunks-es/helpers.js.map +1 -1
  38. package/lib/_chunks-es/index2.js +1 -1
  39. package/lib/_chunks-es/index2.js.map +1 -1
  40. package/lib/_chunks-es/index3.js +8 -8
  41. package/lib/_chunks-es/index3.js.map +1 -1
  42. package/lib/_chunks-es/package.js +1 -1
  43. package/lib/_chunks-es/pane.js +140 -140
  44. package/lib/_chunks-es/pane.js.map +1 -1
  45. package/lib/_chunks-es/presentation.js +4 -4
  46. package/lib/_chunks-es/presentation.js.map +1 -1
  47. package/lib/_chunks-es/previewServer.js +2 -1
  48. package/lib/_chunks-es/previewServer.js.map +1 -1
  49. package/lib/_chunks-es/runtime.js +14 -13
  50. package/lib/_chunks-es/runtime.js.map +1 -1
  51. package/lib/_chunks-es/validateAction.js +2 -1
  52. package/lib/_chunks-es/validateAction.js.map +1 -1
  53. package/lib/_chunks-es/validateAction2.js +2 -1
  54. package/lib/_chunks-es/validateAction2.js.map +1 -1
  55. package/lib/_chunks-es/version.js +1 -1
  56. package/lib/_internal/cli/threads/validateDocuments.cjs +1 -1
  57. package/lib/_internal/cli/threads/validateDocuments.cjs.map +1 -1
  58. package/lib/_singletons.d.ts +82 -2
  59. package/lib/_singletons.js +6 -2
  60. package/lib/_singletons.js.map +1 -1
  61. package/lib/desk.d.ts +28 -2
  62. package/lib/index.d.ts +30 -1
  63. package/lib/index.js +3573 -3172
  64. package/lib/index.js.map +1 -1
  65. package/lib/presentation.d.ts +14 -1
  66. package/lib/structure.d.ts +14 -1
  67. package/package.json +32 -32
@@ -46,7 +46,7 @@ import { flexRender, createColumnHelper, useReactTable, getPaginationRowModel, g
46
46
  function useCreatePathSyncChannel() {
47
47
  const $ = c(1);
48
48
  let t0;
49
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = new Subject(), $[0] = t0) : t0 = $[0], t0;
49
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = new Subject(), $[0] = t0) : t0 = $[0], t0;
50
50
  }
51
51
  const DIFF_VIEW_SEARCH_PARAMETER = "diffView", DIFF_VIEW_PREVIOUS_DOCUMENT_SEARCH_PARAMETER = "previousDocument", DIFF_VIEW_NEXT_DOCUMENT_SEARCH_PARAMETER = "nextDocument", DIFF_SEARCH_PARAM_DELIMITER = ",";
52
52
  function useDiffViewRouter() {
@@ -130,7 +130,7 @@ function useDiffViewState(t0) {
130
130
  let t8;
131
131
  if ($[15] !== anyParamSet || $[16] !== onParamsError || $[17] !== params ? (t8 = [anyParamSet, onParamsError, params], $[15] = anyParamSet, $[16] = onParamsError, $[17] = params, $[18] = t8) : t8 = $[18], useEffect(t7, t8), params.result === "error") {
132
132
  let t92;
133
- return $[19] === Symbol.for("react.memo_cache_sentinel") ? (t92 = {
133
+ return $[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t92 = {
134
134
  isActive: !1
135
135
  }, $[19] = t92) : t92 = $[19], t92;
136
136
  }
@@ -262,11 +262,11 @@ const VersionModeHeaderLayout = styled.header`
262
262
  t8
263
263
  ] }), $[25] = t7, $[26] = t8, $[27] = t9) : t9 = $[27];
264
264
  let t10;
265
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(Flex, { align: "center", paddingX: 3, children: /* @__PURE__ */ jsx(Text, { size: 1, children: /* @__PURE__ */ jsx(TransferIcon, {}) }) }), $[28] = t10) : t10 = $[28];
265
+ $[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(Flex, { align: "center", paddingX: 3, children: /* @__PURE__ */ jsx(Text, { size: 1, children: /* @__PURE__ */ jsx(TransferIcon, {}) }) }), $[28] = t10) : t10 = $[28];
266
266
  let t11;
267
267
  $[29] !== documentId || $[30] !== documents || $[31] !== onSelectNextRelease || $[32] !== releases || $[33] !== state2 ? (t11 = typeof documents?.next < "u" && /* @__PURE__ */ jsx(VersionMenu, { releases, onSelectRelease: onSelectNextRelease, role: "next", documentId, state: state2, document: documents.next }), $[29] = documentId, $[30] = documents, $[31] = onSelectNextRelease, $[32] = releases, $[33] = state2, $[34] = t11) : t11 = $[34];
268
268
  let t12;
269
- $[35] === Symbol.for("react.memo_cache_sentinel") ? (t12 = {
269
+ $[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = {
270
270
  justifySelf: "end"
271
271
  }, $[35] = t12) : t12 = $[35];
272
272
  let t13;
@@ -526,7 +526,7 @@ const Scroller$5 = styled.div`
526
526
  }, $[7] = t2, $[8] = t3) : t3 = $[8];
527
527
  const DocumentLayout2 = useMiddlewareComponents(t3);
528
528
  let t4;
529
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t4 = {
529
+ $[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = {
530
530
  isInteractive: !1,
531
531
  onOpenReviewChanges: noop,
532
532
  onSetFocus: noop,
@@ -550,7 +550,7 @@ const Scroller$5 = styled.div`
550
550
  let t14;
551
551
  $[21] !== ref || $[22] !== t11 || $[23] !== t13 ? (t14 = /* @__PURE__ */ jsx(Scroller$5, { ref, style: t11, children: t13 }), $[21] = ref, $[22] = t11, $[23] = t13, $[24] = t14) : t14 = $[24];
552
552
  let t15;
553
- $[25] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("div", { "data-testid": "diffView-document-panel-portal", ref: setPortalElement }), $[25] = t15) : t15 = $[25];
553
+ $[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("div", { "data-testid": "diffView-document-panel-portal", ref: setPortalElement }), $[25] = t15) : t15 = $[25];
554
554
  let t16;
555
555
  $[26] !== t14 || $[27] !== t7 || $[28] !== t8 ? (t16 = /* @__PURE__ */ jsxs(DiffViewPaneLayout, { ref: setBoundaryElement, style: t7, borderLeft: t8, children: [
556
556
  t14,
@@ -885,9 +885,9 @@ const Root$8 = styled(Card)`
885
885
  pane2 = $[12], t2 = $[13];
886
886
  const paneIndex = t2, nextPane = typeof paneIndex == "number" ? panes[paneIndex + 1] : void 0, isLast = paneIndex === panes.length - 1, expanded = expandedElement === rootElement, collapsed = layoutCollapsed ? !1 : pane2?.collapsed || !1, nextCollapsed = nextPane?.collapsed || !1, ref = useRef(null), flex = pane2?.flex ?? flexProp, currentMinWidth = pane2?.currentMinWidth ?? currentMinWidthProp, currentMaxWidth = pane2?.currentMaxWidth ?? currentMaxWidthProp;
887
887
  let t3;
888
- $[16] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[16] = t3) : t3 = $[16], useImperativeHandle(forwardedRef, t3);
888
+ $[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => ref.current, $[16] = t3) : t3 = $[16], useImperativeHandle(forwardedRef, t3);
889
889
  let t4;
890
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t4 = (refValue) => {
890
+ $[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = (refValue) => {
891
891
  setRootElement(refValue), ref.current = refValue;
892
892
  }, $[17] = t4) : t4 = $[17];
893
893
  const setRef = t4;
@@ -1040,7 +1040,7 @@ function PaneMenuButtonItem(props) {
1040
1040
  } = props, getI18nText = useGetI18nText("i18n" in node ? node : void 0);
1041
1041
  if (node.type === "divider") {
1042
1042
  let t02;
1043
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(MenuDivider, {}), $[0] = t02) : t02 = $[0], t02;
1043
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(MenuDivider, {}), $[0] = t02) : t02 = $[0], t02;
1044
1044
  }
1045
1045
  let t0;
1046
1046
  $[1] !== getI18nText || $[2] !== node ? (t0 = getI18nText(node), $[1] = getI18nText, $[2] = node, $[3] = t0) : t0 = $[3];
@@ -1642,7 +1642,7 @@ function PaneLayout(props) {
1642
1642
  } = props, $[0] = props, $[1] = children, $[2] = minWidth, $[3] = onCollapse, $[4] = onExpand, $[5] = restProps) : (children = $[1], minWidth = $[2], onCollapse = $[3], onExpand = $[4], restProps = $[5]);
1643
1643
  const [controller] = useState(_temp$D), [rootElement, setRootElement] = useState(null), width = useElementRect(rootElement)?.width || 0, collapsed = width === void 0 || !minWidth ? void 0 : width < minWidth;
1644
1644
  let t0;
1645
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
1645
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
1646
1646
  expandedElement: null,
1647
1647
  panes: [],
1648
1648
  resizing: !1
@@ -1713,7 +1713,7 @@ function Delay(t0) {
1713
1713
  };
1714
1714
  }, t3 = [ms], $[0] = ms, $[1] = t2, $[2] = t3) : (t2 = $[1], t3 = $[2]), useEffect(t2, t3), !ready || !children) {
1715
1715
  let t42;
1716
- return $[3] === Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(Fragment, {}), $[3] = t42) : t42 = $[3], t42;
1716
+ return $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(Fragment, {}), $[3] = t42) : t42 = $[3], t42;
1717
1717
  }
1718
1718
  let t4;
1719
1719
  return $[4] !== children ? (t4 = typeof children == "function" ? children() : children, $[4] = children, $[5] = t4) : t4 = $[5], t4;
@@ -1894,7 +1894,7 @@ function DocumentActionsProvider(props) {
1894
1894
  if (!actionProps)
1895
1895
  return null;
1896
1896
  let t1;
1897
- $[4] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => onCompleteRef.current?.(), $[4] = t1) : t1 = $[4];
1897
+ $[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => onCompleteRef.current?.(), $[4] = t1) : t1 = $[4];
1898
1898
  let t2;
1899
1899
  $[5] !== actionProps ? (t2 = {
1900
1900
  ...actionProps,
@@ -1965,7 +1965,7 @@ function DocumentInspectorMenuItemsResolver(props) {
1965
1965
  }
1966
1966
  }, t2 = [len, menuItems], $[2] = len, $[3] = menuItems, $[4] = t1, $[5] = t2) : (t1 = $[4], t2 = $[5]), useEffect(t1, t2);
1967
1967
  let t3;
1968
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = (index, node) => {
1968
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = (index, node) => {
1969
1969
  setMenuItems((prev) => {
1970
1970
  const next = [...prev];
1971
1971
  return next[index] = node, next;
@@ -2012,7 +2012,7 @@ function defineInspectorMenuItemComponent({
2012
2012
  return memo(function() {
2013
2013
  const $ = c(4);
2014
2014
  let t0;
2015
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
2015
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
2016
2016
  documentId,
2017
2017
  documentType
2018
2018
  }, $[0] = t0) : t0 = $[0];
@@ -2074,7 +2074,7 @@ function useDocumentTitle() {
2074
2074
  } = unstable_useValuePreview(t3);
2075
2075
  if (connectionState === "connecting" && !subscribed) {
2076
2076
  let t42;
2077
- return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t42 = {
2077
+ return $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = {
2078
2078
  error: void 0,
2079
2079
  title: void 0
2080
2080
  }, $[7] = t42) : t42 = $[7], t42;
@@ -2515,7 +2515,7 @@ function InspectDialog(props) {
2515
2515
  DocumentTitle: () => /* @__PURE__ */ jsx("em", { children: /* @__PURE__ */ jsx(DocTitle, { document: value }) })
2516
2516
  } }) : /* @__PURE__ */ jsx("em", { children: t("document-inspector.dialog.title-no-value") }), $[6] = t, $[7] = value, $[8] = t4) : t4 = $[8];
2517
2517
  let t5;
2518
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {
2518
+ $[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = {
2519
2519
  position: "sticky",
2520
2520
  bottom: 0,
2521
2521
  zIndex: 3
@@ -2539,7 +2539,7 @@ function InspectDialog(props) {
2539
2539
  ] }) }), $[26] = t10, $[27] = t15, $[28] = t16) : t16 = $[28];
2540
2540
  const t17 = `${dialogIdPrefix}tab-${viewModeId}`, t18 = `${dialogIdPrefix}tabpanel`;
2541
2541
  let t19;
2542
- $[29] === Symbol.for("react.memo_cache_sentinel") ? (t19 = {
2542
+ $[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t19 = {
2543
2543
  outline: "none"
2544
2544
  }, $[29] = t19) : t19 = $[29];
2545
2545
  let t20;
@@ -2605,7 +2605,7 @@ function DeletedDocumentBanners() {
2605
2605
  }
2606
2606
  if (isDeleted && !isDeleting) {
2607
2607
  let t0;
2608
- return $[2] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(DeletedDocumentBanner, {}), $[2] = t0) : t0 = $[2], t0;
2608
+ return $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(DeletedDocumentBanner, {}), $[2] = t0) : t0 = $[2], t0;
2609
2609
  }
2610
2610
  }
2611
2611
  function DeletedDocumentBanner() {
@@ -2699,7 +2699,7 @@ function RequestPermissionDialog(t0) {
2699
2699
  t
2700
2700
  } = useTranslation(structureLocaleNamespace), telemtry = useTelemetry(), dialogId = `request-permissions-${useId()}`, projectId = useProjectId();
2701
2701
  let t1;
2702
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
2702
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
2703
2703
  apiVersion: "2024-09-26"
2704
2704
  }, $[0] = t1) : t1 = $[0];
2705
2705
  const client = useClient(t1), toast = useToast(), zOffset = useZIndex(), [isSubmitting, setIsSubmitting] = useState(!1), [note, setNote] = useState(""), [msgError, setMsgError] = useState(), [hasTooManyRequests, setHasTooManyRequests] = useState(!1), [hasBeenDenied, setHasBeenDenied] = useState(!1);
@@ -2708,15 +2708,15 @@ function RequestPermissionDialog(t0) {
2708
2708
  const adminRole = "administrator";
2709
2709
  if (!projectId || !client) {
2710
2710
  let t33;
2711
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t33 = of(adminRole), $[1] = t33) : t33 = $[1], t2 = t33;
2711
+ $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t33 = of(adminRole), $[1] = t33) : t33 = $[1], t2 = t33;
2712
2712
  break bb0;
2713
2713
  }
2714
2714
  let t32;
2715
2715
  if ($[2] !== client.observable || $[3] !== projectId) {
2716
2716
  let t42;
2717
- $[5] === Symbol.for("react.memo_cache_sentinel") ? (t42 = (roles) => roles.filter(_temp$B).find(_temp2$f) ? "editor" : adminRole, $[5] = t42) : t42 = $[5];
2717
+ $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = (roles) => roles.filter(_temp$B).find(_temp2$f) ? "editor" : adminRole, $[5] = t42) : t42 = $[5];
2718
2718
  let t52;
2719
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t52 = () => of(adminRole), $[6] = t52) : t52 = $[6], t32 = client.observable.request({
2719
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t52 = () => of(adminRole), $[6] = t52) : t52 = $[6], t32 = client.observable.request({
2720
2720
  url: `/projects/${projectId}/roles`
2721
2721
  }).pipe(map(t42), startWith(adminRole), catchError(t52)), $[2] = client.observable, $[3] = projectId, $[4] = t32;
2722
2722
  } else
@@ -2831,7 +2831,7 @@ const LOADING_STATE = {
2831
2831
  }, useRoleRequestsStatus = () => {
2832
2832
  const $ = c(9);
2833
2833
  let t0;
2834
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
2834
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
2835
2835
  apiVersion: "2024-07-01"
2836
2836
  }, $[0] = t0) : t0 = $[0];
2837
2837
  const client = useClient(t0), projectId = useProjectId();
@@ -2839,7 +2839,7 @@ const LOADING_STATE = {
2839
2839
  bb0: {
2840
2840
  if (!client || !projectId) {
2841
2841
  let t23;
2842
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t23 = of(EMPTY_STATE), $[1] = t23) : t23 = $[1], t1 = t23;
2842
+ $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t23 = of(EMPTY_STATE), $[1] = t23) : t23 = $[1], t1 = t23;
2843
2843
  break bb0;
2844
2844
  }
2845
2845
  let t22;
@@ -2886,7 +2886,7 @@ function InsufficientPermissionBanner(t0) {
2886
2886
  error: requestStatusError
2887
2887
  } = useRoleRequestsStatus(), [requestSent, setRequestSent] = useState(!1), requestPending = roleRequestStatus === "pending" || roleRequestStatus === "declined" || requestSent, currentUserRoles = currentUser?.roles || [], isOnlyViewer = currentUserRoles.length === 1 && currentUserRoles[0].name === "viewer", [showRequestPermissionDialog, setShowRequestPermissionDialog] = useState(!1);
2888
2888
  let t1;
2889
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
2889
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
2890
2890
  style: "short"
2891
2891
  }, $[0] = t1) : t1 = $[0];
2892
2892
  const listFormat = useListFormat(t1), {
@@ -2951,7 +2951,7 @@ const ReferenceChangedBanner = memo(() => {
2951
2951
  const parentRefPathSegment = parentRefPath?.[0];
2952
2952
  if (!parentId || !parentRefPathSegment || !parentRefPath) {
2953
2953
  let t23;
2954
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t23 = of({
2954
+ $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t23 = of({
2955
2955
  loading: !1
2956
2956
  }), $[2] = t23) : t23 = $[2], t1 = t23;
2957
2957
  break bb0;
@@ -2990,7 +2990,7 @@ const ReferenceChangedBanner = memo(() => {
2990
2990
  }
2991
2991
  const referenceInfoObservable = t1;
2992
2992
  let t2;
2993
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2993
+ $[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2994
2994
  loading: !0
2995
2995
  }, $[11] = t2) : t2 = $[11];
2996
2996
  const referenceInfo = useObservable(referenceInfoObservable, t2);
@@ -3112,13 +3112,13 @@ const Image = styled.img`
3112
3112
  t
3113
3113
  } = useTranslation(structureLocaleNamespace), ref = useRef(null);
3114
3114
  let t1;
3115
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => [ref.current], $[0] = t1) : t1 = $[0], useClickOutsideEvent(onClose, t1);
3115
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => [ref.current], $[0] = t1) : t1 = $[0], useClickOutsideEvent(onClose, t1);
3116
3116
  let t2;
3117
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx(Image, { src: CANVAS_IMAGE_URL, alt: "Canvas" }), $[1] = t2) : t2 = $[1];
3117
+ $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx(Image, { src: CANVAS_IMAGE_URL, alt: "Canvas" }), $[1] = t2) : t2 = $[1];
3118
3118
  let t3;
3119
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text, { size: 1, weight: "semibold", children: CANVAS_APP_NAME }), $[2] = t3) : t3 = $[2];
3119
+ $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text, { size: 1, weight: "semibold", children: CANVAS_APP_NAME }), $[2] = t3) : t3 = $[2];
3120
3120
  let t4;
3121
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t4 = /* @__PURE__ */ jsxs(Flex, { paddingY: 1, gap: 2, children: [
3121
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = /* @__PURE__ */ jsxs(Flex, { paddingY: 1, gap: 2, children: [
3122
3122
  t3,
3123
3123
  /* @__PURE__ */ jsx(Text, { size: 1, muted: !0, children: /* @__PURE__ */ jsx(ComposeSparklesIcon, {}) })
3124
3124
  ] }), $[3] = t4) : t4 = $[3];
@@ -3169,15 +3169,15 @@ const Image = styled.img`
3169
3169
  }
3170
3170
  const variantText = t1;
3171
3171
  let t2;
3172
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(_temp$y), $[6] = t2) : t2 = $[6];
3172
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(_temp$y), $[6] = t2) : t2 = $[6];
3173
3173
  const togglePopover = t2;
3174
3174
  let t3;
3175
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!1), $[7] = t3) : t3 = $[7];
3175
+ $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!1), $[7] = t3) : t3 = $[7];
3176
3176
  const onClose = t3;
3177
3177
  let t4;
3178
3178
  $[8] !== variantText ? (t4 = /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", children: variantText }), $[8] = variantText, $[9] = t4) : t4 = $[9];
3179
3179
  let t5, t6;
3180
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx(CanvasPopoverContent, { onClose }), t6 = /* @__PURE__ */ jsx(Button$1, { tooltipProps: null, mode: "bleed", tone: "default", icon: InfoOutlineIcon, onClick: togglePopover }), $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]);
3180
+ $[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx(CanvasPopoverContent, { onClose }), t6 = /* @__PURE__ */ jsx(Button$1, { tooltipProps: null, mode: "bleed", tone: "default", icon: InfoOutlineIcon, onClick: togglePopover }), $[10] = t5, $[11] = t6) : (t5 = $[10], t6 = $[11]);
3181
3181
  let t7;
3182
3182
  $[12] !== open ? (t7 = /* @__PURE__ */ jsx(Popover, { open, size: 0, tone: "default", portal: !0, placement: "bottom-start", content: t5, children: t6 }), $[12] = open, $[13] = t7) : t7 = $[13];
3183
3183
  let t8;
@@ -3370,7 +3370,7 @@ function DocumentNotInReleaseBanner(t0) {
3370
3370
  function useCurrentTime(updateIntervalMs) {
3371
3371
  const $ = c(4);
3372
3372
  let t0;
3373
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ new Date(), $[0] = t0) : t0 = $[0];
3373
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ new Date(), $[0] = t0) : t0 = $[0];
3374
3374
  const [currentTime, setCurrentTime] = useState(t0);
3375
3375
  let t1, t2;
3376
3376
  return $[1] !== updateIntervalMs ? (t1 = () => {
@@ -3412,7 +3412,7 @@ const ResolvedLiveEdit = defineEvent({
3412
3412
  }, $[3] = discardChanges, $[4] = telemetry, $[5] = t2) : t2 = $[5];
3413
3413
  const handleDiscard = t2;
3414
3414
  let t3;
3415
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => () => {
3415
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => () => {
3416
3416
  setPublishing(!1), setDiscarding(!1);
3417
3417
  }, $[6] = t3) : t3 = $[6], useEffect(t3);
3418
3418
  const diffViewRouter = useDiffViewRouter();
@@ -3842,7 +3842,7 @@ function DocumentHeaderTab(props) {
3842
3842
  function useResolvedPanesList() {
3843
3843
  const $ = c(1), context = useContext(ResolvedPanesContext);
3844
3844
  let t0;
3845
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
3845
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
3846
3846
  paneDataItems: [],
3847
3847
  routerPanes: [],
3848
3848
  resolvedPanes: [],
@@ -3852,7 +3852,7 @@ function useResolvedPanesList() {
3852
3852
  }
3853
3853
  function _temp$w() {
3854
3854
  }
3855
- const _DEBUG = !1, EMPTY_PARAMS$1 = Object.freeze({}), LOADING_PANE = Symbol("LOADING_PANE"), DOCUMENT_PANEL_PORTAL_ELEMENT = "documentPanelPortalElement", FocusDocumentPaneClicked = defineEvent({
3855
+ const _DEBUG = !1, EMPTY_PARAMS$1 = Object.freeze({}), LOADING_PANE = /* @__PURE__ */ Symbol("LOADING_PANE"), DOCUMENT_PANEL_PORTAL_ELEMENT = "documentPanelPortalElement", FocusDocumentPaneClicked = defineEvent({
3856
3856
  name: "Maximized Document Pane Clicked",
3857
3857
  version: 1,
3858
3858
  description: "User pressed to maximize a document by click the focus pane button"
@@ -3962,7 +3962,7 @@ function DocumentHeaderTitle() {
3962
3962
  const hasMaximizedPane = t0;
3963
3963
  if (connectionState === "connecting" && !subscribed) {
3964
3964
  let t12;
3965
- return $[2] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[2] = t12) : t12 = $[2], t12;
3965
+ return $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[2] = t12) : t12 = $[2], t12;
3966
3966
  }
3967
3967
  if (title) {
3968
3968
  let t12;
@@ -4043,7 +4043,7 @@ const FavoriteToggle = (t0) => {
4043
4043
  t
4044
4044
  } = useTranslation(structureLocaleNamespace);
4045
4045
  let t0;
4046
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(DocumentHeaderTitle, {}), $[0] = t0) : t0 = $[0];
4046
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(DocumentHeaderTitle, {}), $[0] = t0) : t0 = $[0];
4047
4047
  const title = t0;
4048
4048
  let t1;
4049
4049
  $[1] !== showTabs ? (t1 = showTabs && /* @__PURE__ */ jsx(DocumentHeaderTabs, {}), $[1] = showTabs, $[2] = t1) : t1 = $[2];
@@ -4123,7 +4123,7 @@ const FavoriteToggle = (t0) => {
4123
4123
  break bb0;
4124
4124
  }
4125
4125
  let t32;
4126
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t32 = [0, 0, 2, 0], $[8] = t32) : t32 = $[8], t2 = t32;
4126
+ $[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t32 = [0, 0, 2, 0], $[8] = t32) : t32 = $[8], t2 = t32;
4127
4127
  }
4128
4128
  const margins = t2, formViewHidden = activeView.type !== "form";
4129
4129
  let t3;
@@ -4169,7 +4169,7 @@ const FavoriteToggle = (t0) => {
4169
4169
  bb1: {
4170
4170
  if (params?.historyVersion) {
4171
4171
  let t133;
4172
- $[38] === Symbol.for("react.memo_cache_sentinel") ? (t133 = /* @__PURE__ */ jsx(ArchivedReleaseDocumentBanner, {}), $[38] = t133) : t133 = $[38], t12 = t133;
4172
+ $[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t133 = /* @__PURE__ */ jsx(ArchivedReleaseDocumentBanner, {}), $[38] = t133) : t133 = $[38], t12 = t133;
4173
4173
  break bb1;
4174
4174
  }
4175
4175
  let t132;
@@ -4197,7 +4197,7 @@ const FavoriteToggle = (t0) => {
4197
4197
  const hasCardinalityOneReleases = filteredReleases.currentReleases.some(isCardinalityOneRelease), displayedIsDraft = displayed?._id && isDraftId(displayed._id);
4198
4198
  if (selectedPerspective === "drafts" && hasCardinalityOneReleases && displayedIsDraft) {
4199
4199
  let t153;
4200
- $[54] === Symbol.for("react.memo_cache_sentinel") ? (t153 = /* @__PURE__ */ jsx(ScheduledDraftOverrideBanner, {}), $[54] = t153) : t153 = $[54], t12 = t153;
4200
+ $[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t153 = /* @__PURE__ */ jsx(ScheduledDraftOverrideBanner, {}), $[54] = t153) : t153 = $[54], t12 = t153;
4201
4201
  break bb1;
4202
4202
  }
4203
4203
  let t152;
@@ -4235,7 +4235,7 @@ const FavoriteToggle = (t0) => {
4235
4235
  let t17;
4236
4236
  $[71] !== permissions?.granted || $[72] !== requiredPermission ? (t17 = !permissions?.granted && /* @__PURE__ */ jsx(InsufficientPermissionBanner, { requiredPermission }), $[71] = permissions?.granted, $[72] = requiredPermission, $[73] = t17) : t17 = $[73];
4237
4237
  let t18, t19, t20, t21, t22, t23;
4238
- $[74] === Symbol.for("react.memo_cache_sentinel") ? (t18 = /* @__PURE__ */ jsx(RevisionNotFoundBanner, {}), t19 = /* @__PURE__ */ jsx(ReferenceChangedBanner, {}), t20 = /* @__PURE__ */ jsx(DeprecatedDocumentTypeBanner, {}), t21 = /* @__PURE__ */ jsx(CanvasLinkedBanner, {}), t22 = /* @__PURE__ */ jsx(DeletedDocumentBanners, {}), t23 = /* @__PURE__ */ jsx(UnpublishedDocumentBanner, {}), $[74] = t18, $[75] = t19, $[76] = t20, $[77] = t21, $[78] = t22, $[79] = t23) : (t18 = $[74], t19 = $[75], t20 = $[76], t21 = $[77], t22 = $[78], t23 = $[79]);
4238
+ $[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t18 = /* @__PURE__ */ jsx(RevisionNotFoundBanner, {}), t19 = /* @__PURE__ */ jsx(ReferenceChangedBanner, {}), t20 = /* @__PURE__ */ jsx(DeprecatedDocumentTypeBanner, {}), t21 = /* @__PURE__ */ jsx(CanvasLinkedBanner, {}), t22 = /* @__PURE__ */ jsx(DeletedDocumentBanners, {}), t23 = /* @__PURE__ */ jsx(UnpublishedDocumentBanner, {}), $[74] = t18, $[75] = t19, $[76] = t20, $[77] = t21, $[78] = t22, $[79] = t23) : (t18 = $[74], t19 = $[75], t20 = $[76], t21 = $[77], t22 = $[78], t23 = $[79]);
4239
4239
  const t24 = displayed?._id ?? documentId;
4240
4240
  let t25;
4241
4241
  $[80] !== isPinnedDraftOrPublish || $[81] !== t24 ? (t25 = /* @__PURE__ */ jsx(OpenReleaseToEditBanner, { documentId: t24, isPinnedDraftOrPublished: isPinnedDraftOrPublish }), $[80] = isPinnedDraftOrPublish, $[81] = t24, $[82] = t25) : t25 = $[82];
@@ -4304,7 +4304,7 @@ const useHistoryRestoreAction = (t0) => {
4304
4304
  }, $[0] = restore, $[1] = revision, $[2] = t1) : t1 = $[2];
4305
4305
  const handleConfirm = t1;
4306
4306
  let t2;
4307
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
4307
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
4308
4308
  setConfirmDialogOpen(!1);
4309
4309
  }, $[3] = t2) : t2 = $[3];
4310
4310
  const handleCancel = t2;
@@ -4316,7 +4316,7 @@ const useHistoryRestoreAction = (t0) => {
4316
4316
  }), prevEvent.current = event);
4317
4317
  }, t4 = [event, id, navigateIntent, type], $[4] = event, $[5] = id, $[6] = navigateIntent, $[7] = type, $[8] = t3, $[9] = t4) : (t3 = $[8], t4 = $[9]), useEffect(t3, t4);
4318
4318
  let t5;
4319
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
4319
+ $[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
4320
4320
  setConfirmDialogOpen(!0);
4321
4321
  }, $[10] = t5) : t5 = $[10];
4322
4322
  const handle = t5;
@@ -4531,7 +4531,7 @@ function PopoverDialogContent(props) {
4531
4531
  event.key === "Escape" && isTopLayer && onClose();
4532
4532
  }, $[0] = isTopLayer, $[1] = onClose, $[2] = t0) : t0 = $[2], useGlobalKeyDown(t0);
4533
4533
  let t1;
4534
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => [ref.current], $[3] = t1) : t1 = $[3], useClickOutsideEvent(isTopLayer && onClose, t1);
4534
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => [ref.current], $[3] = t1) : t1 = $[3], useClickOutsideEvent(isTopLayer && onClose, t1);
4535
4535
  let t2;
4536
4536
  return $[4] !== content ? (t2 = /* @__PURE__ */ jsx("div", { ref, children: content }), $[4] = content, $[5] = t2) : t2 = $[5], t2;
4537
4537
  }
@@ -4585,7 +4585,7 @@ const ActionDialogWrapper = memo(function(t0) {
4585
4585
  referenceElement
4586
4586
  } = t0, [actionIndex, setActionIndex] = useState(-1), currentAction = actionStates[actionIndex];
4587
4587
  let t1;
4588
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (idx) => {
4588
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = (idx) => {
4589
4589
  setActionIndex(idx);
4590
4590
  }, $[0] = t1) : t1 = $[0];
4591
4591
  const handleAction = t1;
@@ -4608,7 +4608,7 @@ function ActionMenuButton(props) {
4608
4608
  disabled
4609
4609
  } = props, idPrefix = useId(), [referenceElement, setReferenceElement] = useState(null);
4610
4610
  let t0;
4611
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
4611
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
4612
4612
  placement: "top-end",
4613
4613
  portal: !0,
4614
4614
  preventOverflow: !0
@@ -5030,7 +5030,7 @@ const HorizontalScroller = styled(Card)((props) => {
5030
5030
  }, $[9] = isMaximizedPane, $[10] = onSetMaximizedPane, $[11] = telemetry, $[12] = t3) : t3 = $[12];
5031
5031
  const handleFocusPane = t3;
5032
5032
  let t5;
5033
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx(DocumentHeaderTitle, {}), $[13] = t5) : t5 = $[13];
5033
+ $[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx(DocumentHeaderTitle, {}), $[13] = t5) : t5 = $[13];
5034
5034
  const title = t5;
5035
5035
  let t6;
5036
5036
  $[14] !== BackLink2 || $[15] !== showBackButton || $[16] !== t ? (t6 = showBackButton && /* @__PURE__ */ jsx(Button$1, { as: BackLink2, "data-as": "a", icon: ArrowLeftIcon, mode: "bleed", tooltipProps: {
@@ -5104,7 +5104,7 @@ function SpacerButton(t0) {
5104
5104
  size
5105
5105
  } = t0;
5106
5106
  let t1;
5107
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
5107
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
5108
5108
  pointerEvents: "none",
5109
5109
  visibility: "hidden",
5110
5110
  width: 0
@@ -5171,7 +5171,7 @@ const DISABLED_REASON_TITLE_KEY$1 = {
5171
5171
  t
5172
5172
  } = useTranslation(structureLocaleNamespace);
5173
5173
  let t1;
5174
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
5174
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
5175
5175
  setConfirmDialogOpen(!1);
5176
5176
  }, $[0] = t1) : t1 = $[0];
5177
5177
  const handleCancel = t1;
@@ -5181,7 +5181,7 @@ const DISABLED_REASON_TITLE_KEY$1 = {
5181
5181
  }, $[1] = deleteOp, $[2] = t2) : t2 = $[2];
5182
5182
  const handleConfirm = t2;
5183
5183
  let t3;
5184
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5184
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5185
5185
  setConfirmDialogOpen(!0);
5186
5186
  }, $[3] = t3) : t3 = $[3];
5187
5187
  const handle = t3;
@@ -5298,12 +5298,12 @@ const DISABLED_REASON_KEY$2 = {
5298
5298
  }, $[4] = discardChanges, $[5] = t2) : t2 = $[5];
5299
5299
  const handleConfirm = t2;
5300
5300
  let t3;
5301
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5301
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5302
5302
  setConfirmDialogOpen(!1);
5303
5303
  }, $[6] = t3) : t3 = $[6];
5304
5304
  const handleCancel = t3;
5305
5305
  let t4;
5306
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => {
5306
+ $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => {
5307
5307
  setConfirmDialogOpen(!0);
5308
5308
  }, $[7] = t4) : t4 = $[7];
5309
5309
  const handle = t4;
@@ -5449,7 +5449,7 @@ function AlreadyPublished(t0) {
5449
5449
  t
5450
5450
  } = useTranslation(structureLocaleNamespace);
5451
5451
  let t1;
5452
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
5452
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
5453
5453
  useTemporalPhrase: !0
5454
5454
  }, $[0] = t1) : t1 = $[0];
5455
5455
  const timeSincePublished = useRelativeTime(publishedAt, t1);
@@ -5615,7 +5615,7 @@ const DISABLED_REASON_KEY = {
5615
5615
  selectedPerspective
5616
5616
  } = usePerspective(), isDraft = selectedPerspective === "drafts";
5617
5617
  let t2;
5618
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
5618
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
5619
5619
  setConfirmDialogOpen(!1);
5620
5620
  }, $[3] = t2) : t2 = $[3];
5621
5621
  const handleCancel = t2;
@@ -5683,7 +5683,7 @@ const DocumentStatusBarActionsInner = memo(function(props) {
5683
5683
  break bb0;
5684
5684
  }
5685
5685
  let t12;
5686
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t12 = {
5686
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = {
5687
5687
  maxWidth: 300
5688
5688
  }, $[3] = t12) : t12 = $[3];
5689
5689
  let t22;
@@ -5722,7 +5722,7 @@ const DocumentStatusBarActionsInner = memo(function(props) {
5722
5722
  }), DocumentStatusBarActions = memo(function() {
5723
5723
  const $ = c(1);
5724
5724
  let t0;
5725
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "default", children: _temp2$b }), $[0] = t0) : t0 = $[0], t0;
5725
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "default", children: _temp2$b }), $[0] = t0) : t0 = $[0], t0;
5726
5726
  });
5727
5727
  function RenderDocumentStatusBarActions(props) {
5728
5728
  const $ = c(6), {
@@ -5744,7 +5744,7 @@ function _temp3$7(state2) {
5744
5744
  const HistoryStatusBarActions = memo(function() {
5745
5745
  const $ = c(1);
5746
5746
  let t0;
5747
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "default", children: _temp4$7 }), $[0] = t0) : t0 = $[0], t0;
5747
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "default", children: _temp4$7 }), $[0] = t0) : t0 = $[0], t0;
5748
5748
  });
5749
5749
  function RenderHistoryStatusBarActions(t0) {
5750
5750
  const $ = c(8), {
@@ -5964,7 +5964,7 @@ function TimelineItem(t0) {
5964
5964
  $[4] !== collaborators ? (t3 = collaborators ? Array.from(collaborators) : [], $[4] = collaborators, $[5] = t3) : t3 = $[5];
5965
5965
  const collaboratorsUsersIds = t3, isSelectable = type !== "delete";
5966
5966
  let t4;
5967
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t4 = {
5967
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = {
5968
5968
  dateStyle: "medium",
5969
5969
  timeStyle: "short"
5970
5970
  }, $[6] = t4) : t4 = $[6];
@@ -5985,7 +5985,7 @@ function TimelineItem(t0) {
5985
5985
  }, $[12] = chunk, $[13] = isSelectable, $[14] = onSelect, $[15] = t7) : t7 = $[15];
5986
5986
  const handleClick = t7;
5987
5987
  let t8;
5988
- $[16] === Symbol.for("react.memo_cache_sentinel") ? (t8 = {
5988
+ $[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = {
5989
5989
  position: "relative"
5990
5990
  }, $[16] = t8) : t8 = $[16];
5991
5991
  let t9;
@@ -6128,7 +6128,7 @@ const TIMELINE_LIST_WRAPPER_ID$1 = "timeline-list-wrapper", Timeline = (t0) => {
6128
6128
  let t8;
6129
6129
  $[18] !== filteredChunks || $[19] !== hasMoreChunks || $[20] !== onLoadMore ? (t8 = [filteredChunks, hasMoreChunks, onLoadMore], $[18] = filteredChunks, $[19] = hasMoreChunks, $[20] = onLoadMore, $[21] = t8) : t8 = $[21], useEffect(t7, t8);
6130
6130
  let t9;
6131
- $[22] === Symbol.for("react.memo_cache_sentinel") ? (t9 = (parentId_0) => () => setExpandedParents((prev_0) => {
6131
+ $[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = (parentId_0) => () => setExpandedParents((prev_0) => {
6132
6132
  const next_0 = new Set(prev_0);
6133
6133
  return prev_0.has(parentId_0) ? next_0.delete(parentId_0) : next_0.add(parentId_0), next_0;
6134
6134
  }), $[22] = t9) : t9 = $[22];
@@ -6154,7 +6154,7 @@ const TIMELINE_LIST_WRAPPER_ID$1 = "timeline-list-wrapper", Timeline = (t0) => {
6154
6154
  }, $[29] = expandedParents, $[30] = filteredChunks.length, $[31] = handleSelectChunk, $[32] = hasMoreChunks, $[33] = selectedChunkId, $[34] = t12) : t12 = $[34];
6155
6155
  const renderItem = t12;
6156
6156
  let t13, t14;
6157
- $[35] === Symbol.for("react.memo_cache_sentinel") ? (t13 = () => setMounted(!0), t14 = [], $[35] = t13, $[36] = t14) : (t13 = $[35], t14 = $[36]), useEffect(t13, t14);
6157
+ $[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t13 = () => setMounted(!0), t14 = [], $[35] = t13, $[36] = t14) : (t13 = $[35], t14 = $[36]), useEffect(t13, t14);
6158
6158
  const t15 = !selectedIndex || mounted;
6159
6159
  let t16;
6160
6160
  $[37] !== filteredChunks.length || $[38] !== t ? (t16 = filteredChunks.length === 0 && /* @__PURE__ */ jsxs(StackWrapper, { padding: 3, space: 3, children: [
@@ -6176,7 +6176,7 @@ function TimelineError(t0) {
6176
6176
  t
6177
6177
  } = useTranslation("studio");
6178
6178
  let t1;
6179
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsx(TextWithTone, { tone: "critical", children: /* @__PURE__ */ jsx(ErrorOutlineIcon, {}) }), $[0] = t1) : t1 = $[0];
6179
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsx(TextWithTone, { tone: "critical", children: /* @__PURE__ */ jsx(ErrorOutlineIcon, {}) }), $[0] = t1) : t1 = $[0];
6180
6180
  let t2;
6181
6181
  $[1] !== t || $[2] !== versionError ? (t2 = t(versionError ? "timeline.error.load-document-changes-version-title" : "timeline.error.load-document-changes-title"), $[1] = t, $[2] = versionError, $[3] = t2) : t2 = $[3];
6182
6182
  let t3;
@@ -6212,12 +6212,12 @@ function TimelineMenu(t0) {
6212
6212
  t
6213
6213
  } = useTranslation("studio");
6214
6214
  let t1;
6215
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
6215
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
6216
6216
  setOpen(!0);
6217
6217
  }, $[0] = t1) : t1 = $[0];
6218
6218
  const handleOpen = t1;
6219
6219
  let t2;
6220
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
6220
+ $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
6221
6221
  setOpen(!1);
6222
6222
  }, $[1] = t2) : t2 = $[1];
6223
6223
  const handleClose = t2;
@@ -6274,7 +6274,7 @@ function TimelineMenu(t0) {
6274
6274
  bb0: {
6275
6275
  if (timelineError) {
6276
6276
  let t93;
6277
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t93 = /* @__PURE__ */ jsx(TimelineError, {}), $[21] = t93) : t93 = $[21], t8 = t93;
6277
+ $[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = /* @__PURE__ */ jsx(TimelineError, {}), $[21] = t93) : t93 = $[21], t8 = t93;
6278
6278
  break bb0;
6279
6279
  }
6280
6280
  if (mode === "rev") {
@@ -6314,7 +6314,7 @@ function TimelineMenu(t0) {
6314
6314
  }, $[41] = popoverRef, $[42] = t10) : t10 = $[42];
6315
6315
  const portalElements = t10, t11 = open && content, t12 = open ? "timeline-menu-close-button" : "timeline-menu-open-button", t13 = !ready, t14 = open ? handleClose : handleOpen;
6316
6316
  let t15;
6317
- $[43] === Symbol.for("react.memo_cache_sentinel") ? (t15 = {
6317
+ $[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = {
6318
6318
  maxWidth: "100%"
6319
6319
  }, $[43] = t15) : t15 = $[43];
6320
6320
  let t16;
@@ -6512,11 +6512,11 @@ function getDocumentStatusKey(timelineKey) {
6512
6512
  const ButtonSkeleton = () => {
6513
6513
  const $ = c(2);
6514
6514
  let t0;
6515
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx("div", { style: {
6515
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx("div", { style: {
6516
6516
  margin: -5
6517
6517
  }, children: /* @__PURE__ */ jsx(AvatarSkeleton, { $size: 0, animated: !0 }) }), $[0] = t0) : t0 = $[0];
6518
6518
  let t1;
6519
- return $[1] === Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 3, paddingLeft: 1, paddingRight: 2, paddingY: 2, children: [
6519
+ return $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 3, paddingLeft: 1, paddingRight: 2, paddingY: 2, children: [
6520
6520
  t0,
6521
6521
  /* @__PURE__ */ jsx(Skeleton, { animated: !0, style: {
6522
6522
  width: "80px",
@@ -6536,7 +6536,7 @@ const ButtonSkeleton = () => {
6536
6536
  t
6537
6537
  } = useTranslation(), relativeTime = useRelativeTime(timestamp, RELATIVE_TIME_OPTIONS);
6538
6538
  let t2, t3, t4;
6539
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
6539
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
6540
6540
  opacity: 1
6541
6541
  }, t3 = {
6542
6542
  opacity: 0
@@ -6594,11 +6594,11 @@ const ButtonSkeleton = () => {
6594
6594
  } = useEvents(), event = events?.[0];
6595
6595
  if (!event && loading) {
6596
6596
  let t02;
6597
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(ButtonSkeleton, {}), $[0] = t02) : t02 = $[0], t02;
6597
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(ButtonSkeleton, {}), $[0] = t02) : t02 = $[0], t02;
6598
6598
  }
6599
6599
  if (!event) {
6600
6600
  let t02;
6601
- return $[1] === Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(FallbackStatus, {}), $[1] = t02) : t02 = $[1], t02;
6601
+ return $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(FallbackStatus, {}), $[1] = t02) : t02 = $[1], t02;
6602
6602
  }
6603
6603
  const t0 = event.author, t1 = TIMELINE_ITEM_I18N_KEY_MAPPING$1[event.documentVariantType][event.type];
6604
6604
  let t2;
@@ -6611,11 +6611,11 @@ const ButtonSkeleton = () => {
6611
6611
  } = useDocumentPane(), chunks = useTimelineSelector(timelineStore, _temp$m), loading = useTimelineSelector(timelineStore, _temp2$9), event = chunks?.[0];
6612
6612
  if (!event && loading) {
6613
6613
  let t02;
6614
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(ButtonSkeleton, {}), $[0] = t02) : t02 = $[0], t02;
6614
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(ButtonSkeleton, {}), $[0] = t02) : t02 = $[0], t02;
6615
6615
  }
6616
6616
  if (!event) {
6617
6617
  let t02;
6618
- return $[1] === Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(FallbackStatus, {}), $[1] = t02) : t02 = $[1], t02;
6618
+ return $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t02 = /* @__PURE__ */ jsx(FallbackStatus, {}), $[1] = t02) : t02 = $[1], t02;
6619
6619
  }
6620
6620
  let t0;
6621
6621
  $[2] !== event.authors ? (t0 = Array.from(event.authors), $[2] = event.authors, $[3] = t0) : t0 = $[3];
@@ -6646,7 +6646,7 @@ function DocumentStatusLine() {
6646
6646
  let t1;
6647
6647
  $[3] !== lastUpdated || $[4] !== status || $[5] !== syncState.isSyncing ? (t1 = [status, lastUpdated, syncState.isSyncing], $[3] = lastUpdated, $[4] = status, $[5] = syncState.isSyncing, $[6] = t1) : t1 = $[6], useEffect(t0, t1);
6648
6648
  let t2;
6649
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
6649
+ $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
6650
6650
  setStatus(null);
6651
6651
  }, $[7] = t2) : t2 = $[7];
6652
6652
  let t3;
@@ -6698,7 +6698,7 @@ function RevisionStatusLine() {
6698
6698
  }, $[0] = t1, $[1] = t2) : t2 = $[1];
6699
6699
  const message = t2;
6700
6700
  let t3;
6701
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsx(Text, { size: 1, children: /* @__PURE__ */ jsx(RestoreIcon, {}) }) }), $[2] = t3) : t3 = $[2];
6701
+ $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsx(Text, { size: 1, children: /* @__PURE__ */ jsx(RestoreIcon, {}) }) }), $[2] = t3) : t3 = $[2];
6702
6702
  let t4;
6703
6703
  $[3] !== message || $[4] !== revisionNotFound || $[5] !== t ? (t4 = revisionNotFound ? /* @__PURE__ */ jsx(Translate, { t, i18nKey: "document-status.revision-not-found" }) : message.text, $[3] = message, $[4] = revisionNotFound, $[5] = t, $[6] = t4) : t4 = $[6];
6704
6704
  let t5;
@@ -6734,7 +6734,7 @@ function DocumentStatusBar(props) {
6734
6734
  title
6735
6735
  } = useDocumentTitle(), CreateLinkedActions = useSanityCreateConfig().components?.documentLinkedActions, showingRevision = !!params.rev, [collapsed, setCollapsed] = useState(null), [rootElement, setRootElement] = useState(null);
6736
6736
  let t1;
6737
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (event) => {
6737
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = (event) => {
6738
6738
  setCollapsed(event.contentRect.width < CONTAINER_BREAKPOINT);
6739
6739
  }, $[0] = t1) : t1 = $[0];
6740
6740
  const handleResize = t1;
@@ -6765,20 +6765,20 @@ function DocumentStatusBar(props) {
6765
6765
  $[3] !== CreateLinkedActions || $[4] !== createLinkMetadata || $[5] !== onDocumentChange || $[6] !== title ? (t42 = /* @__PURE__ */ jsx(CreateLinkedActions, { metadata: createLinkMetadata, panelPortalElementId: DOCUMENT_PANEL_PORTAL_ELEMENT, onDocumentChange, documentTitle: title }), $[3] = CreateLinkedActions, $[4] = createLinkMetadata, $[5] = onDocumentChange, $[6] = title, $[7] = t42) : t42 = $[7], actions = t42;
6766
6766
  } else if (showingRevision) {
6767
6767
  let t42;
6768
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(HistoryStatusBarActions, {}), $[8] = t42) : t42 = $[8], actions = t42;
6768
+ $[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(HistoryStatusBarActions, {}), $[8] = t42) : t42 = $[8], actions = t42;
6769
6769
  } else {
6770
6770
  let t42;
6771
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(DocumentStatusBarActions, {}), $[9] = t42) : t42 = $[9], actions = t42;
6771
+ $[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = /* @__PURE__ */ jsx(DocumentStatusBarActions, {}), $[9] = t42) : t42 = $[9], actions = t42;
6772
6772
  }
6773
6773
  if (showingRevision && revisionNotFound)
6774
6774
  return null;
6775
6775
  const t4 = showingRevision ? "revision" : "published";
6776
6776
  let t5;
6777
- $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {
6777
+ $[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = {
6778
6778
  opacity: 0.2
6779
6779
  }, $[10] = t5) : t5 = $[10];
6780
6780
  let t6;
6781
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t6 = {
6781
+ $[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = {
6782
6782
  opacity: 1,
6783
6783
  transition: {
6784
6784
  duration: 0.3
@@ -6849,7 +6849,7 @@ const KeyboardShortcutResponder = memo(function(props) {
6849
6849
  } = props, $[0] = props, $[1] = actionsBoxElement, $[2] = children, $[3] = rest, $[4] = t0) : (actionsBoxElement = $[1], children = $[2], rest = $[3], t0 = $[4]);
6850
6850
  const as = t0 === void 0 ? "div" : t0, [activeIndex, setActiveIndex] = useState(-1);
6851
6851
  let t1;
6852
- $[5] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (idx) => {
6852
+ $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = (idx) => {
6853
6853
  setActiveIndex(idx);
6854
6854
  }, $[5] = t1) : t1 = $[5];
6855
6855
  const onActionStart = t1;
@@ -6865,7 +6865,7 @@ DocumentActionShortcuts.displayName = "Memo(DocumentActionShortcuts)";
6865
6865
  const HiddenCheckmarkIcon = () => {
6866
6866
  const $ = c(1);
6867
6867
  let t0;
6868
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(CheckmarkIcon, { style: {
6868
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(CheckmarkIcon, { style: {
6869
6869
  visibility: "hidden"
6870
6870
  } }), $[0] = t0) : t0 = $[0], t0;
6871
6871
  };
@@ -7083,10 +7083,10 @@ function DocumentLayout() {
7083
7083
  value
7084
7084
  }, $[0] = focusPath, $[1] = rootElement, $[2] = value, $[3] = t0) : t0 = $[3], useGlobalCopyPasteElementHandler(t0);
7085
7085
  let t1;
7086
- $[4] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[4] = t1) : t1 = $[4];
7086
+ $[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[4] = t1) : t1 = $[4];
7087
7087
  const [inspectorMenuItems, setInspectorMenuItems] = useState(t1);
7088
7088
  let t2;
7089
- $[5] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[5] = t2) : t2 = $[5];
7089
+ $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[5] = t2) : t2 = $[5];
7090
7090
  const [rootFieldActionNodes, setRootFieldActionNodes] = useState(t2), footerRect = useElementRect(footerElement), headerRect = useElementRect(headerElement), footerHeight = footerRect?.height, headerHeight = headerRect?.height, currentMinWidth = DOCUMENT_PANEL_INITIAL_MIN_WIDTH + (inspector ? DOCUMENT_INSPECTOR_MIN_WIDTH : 0), minWidth = DOCUMENT_PANEL_MIN_WIDTH + (inspector ? DOCUMENT_INSPECTOR_MIN_WIDTH : 0);
7091
7091
  let t3;
7092
7092
  $[6] !== inspector?.name || $[7] !== inspectors2 ? (t3 = inspectors2?.find((i) => i.name === inspector?.name), $[6] = inspector?.name, $[7] = inspectors2, $[8] = t3) : t3 = $[8];
@@ -7147,7 +7147,7 @@ function DocumentLayout() {
7147
7147
  let t20;
7148
7148
  $[62] !== t19 || $[63] !== zOffsets.paneDialog ? (t20 = /* @__PURE__ */ jsx(DialogProvider, { position: DIALOG_PROVIDER_POSITION, zOffset: zOffsets.paneDialog, children: t19 }), $[62] = t19, $[63] = zOffsets.paneDialog, $[64] = t20) : t20 = $[64];
7149
7149
  let t21;
7150
- $[65] === Symbol.for("react.memo_cache_sentinel") ? (t21 = /* @__PURE__ */ jsx(DocumentOperationResults, {}), $[65] = t21) : t21 = $[65];
7150
+ $[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t21 = /* @__PURE__ */ jsx(DocumentOperationResults, {}), $[65] = t21) : t21 = $[65];
7151
7151
  let t22;
7152
7152
  $[66] !== actionsBoxElement || $[67] !== currentMinWidth || $[68] !== handleKeyUp || $[69] !== minWidth || $[70] !== paneKey || $[71] !== t11 || $[72] !== t20 ? (t22 = /* @__PURE__ */ jsxs(DocumentActionShortcuts, { actionsBoxElement, as: Pane, currentMinWidth, "data-testid": "document-pane", flex: 2.5, id: paneKey, minWidth, onKeyUp: handleKeyUp, rootRef: setRootElement, children: [
7153
7153
  t11,
@@ -7166,7 +7166,7 @@ function DocumentLayout() {
7166
7166
  function useDocumentLayoutComponent() {
7167
7167
  const $ = c(1);
7168
7168
  let t0;
7169
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
7169
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
7170
7170
  pick: pickDocumentLayoutComponent,
7171
7171
  defaultComponent: DocumentLayout
7172
7172
  }, $[0] = t0) : t0 = $[0], useMiddlewareComponents(t0);
@@ -7406,7 +7406,7 @@ function usePreviewUrl(value) {
7406
7406
  resolveProductionUrl
7407
7407
  } = useSource().document;
7408
7408
  let t0;
7409
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = new BehaviorSubject(void 0), $[0] = t0) : t0 = $[0];
7409
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = new BehaviorSubject(void 0), $[0] = t0) : t0 = $[0];
7410
7410
  const subject = t0;
7411
7411
  let t1, t2;
7412
7412
  $[1] !== value ? (t1 = () => {
@@ -7721,7 +7721,7 @@ function DocumentPaneProvider(props) {
7721
7721
  }, t38 = [documentId, documentType, schemaType, onChange, setDocumentMeta], $[119] = documentId, $[120] = documentType, $[121] = onChange, $[122] = schemaType, $[123] = setDocumentMeta, $[124] = t37, $[125] = t38) : (t37 = $[124], t38 = $[125]), useEffect(t37, t38);
7722
7722
  let t39;
7723
7723
  $[126] !== getComparisonValue || $[127] !== upstreamEditState_0 ? (t39 = getComparisonValue(upstreamEditState_0), $[126] = getComparisonValue, $[127] = upstreamEditState_0, $[128] = t39) : t39 = $[128];
7724
- const compareValue = t39, isDeleted_1 = getIsDeleted(editState_1), revisionNotFound = onOlderRevision && !revisionDocument;
7724
+ const compareValue = t39, isDeleted_1 = getIsDeleted(editState_1), revisionNotFound = onOlderRevision && !revisionDocument && ready;
7725
7725
  let t40;
7726
7726
  bb1: {
7727
7727
  if (editState_1.version && isGoingToUnpublish(editState_1.version)) {
@@ -8028,7 +8028,7 @@ function useResetHistoryParams() {
8028
8028
  let t3;
8029
8029
  $[6] !== selectedPerspectiveName ? (t3 = [selectedPerspectiveName], $[6] = selectedPerspectiveName, $[7] = t3) : t3 = $[7], useEffect(t2, t3);
8030
8030
  let t4, t5;
8031
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => (isMounted.current = !0, () => {
8031
+ $[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => (isMounted.current = !0, () => {
8032
8032
  isMounted.current = !1;
8033
8033
  }), t5 = [], $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
8034
8034
  }
@@ -8105,7 +8105,7 @@ function DocumentPaneInner(props) {
8105
8105
  id: options.id
8106
8106
  }, $[25] = options.id, $[26] = t62) : t62 = $[26];
8107
8107
  let t72;
8108
- $[27] === Symbol.for("react.memo_cache_sentinel") ? (t72 = {
8108
+ $[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t72 = {
8109
8109
  Code: _temp$g
8110
8110
  }, $[27] = t72) : t72 = $[27];
8111
8111
  let t82;
@@ -8572,7 +8572,7 @@ const ChevronWrapper = styled(Box)`
8572
8572
  let t2;
8573
8573
  $[5] !== t ? (t2 = t("confirm-delete-dialog.other-reference-count.tooltip"), $[5] = t, $[6] = t2) : t2 = $[6];
8574
8574
  let t3;
8575
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text, { size: 1, muted: !0, children: /* @__PURE__ */ jsx(InfoOutlineIcon, {}) }), $[7] = t3) : t3 = $[7];
8575
+ $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text, { size: 1, muted: !0, children: /* @__PURE__ */ jsx(InfoOutlineIcon, {}) }), $[7] = t3) : t3 = $[7];
8576
8576
  let t4;
8577
8577
  $[8] !== t2 ? (t4 = /* @__PURE__ */ jsx(Tooltip, { portal: !0, placement: "top", content: t2, children: t3 }), $[8] = t2, $[9] = t4) : t4 = $[9];
8578
8578
  let t5;
@@ -8595,7 +8595,7 @@ function PaneItemPreview(props) {
8595
8595
  $[0] !== perspectiveStack || $[1] !== props.documentPreviewStore || $[2] !== schemaType || $[3] !== value._id ? (t0 = getPreviewStateObservable(props.documentPreviewStore, schemaType, value._id, perspectiveStack), $[0] = perspectiveStack, $[1] = props.documentPreviewStore, $[2] = schemaType, $[3] = value._id, $[4] = t0) : t0 = $[4];
8596
8596
  const previewStateObservable = t0;
8597
8597
  let t1;
8598
- $[5] === Symbol.for("react.memo_cache_sentinel") ? (t1 = {
8598
+ $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
8599
8599
  snapshot: null,
8600
8600
  isLoading: !0,
8601
8601
  original: null
@@ -8670,7 +8670,7 @@ const EllipsisText = styled(Text)`
8670
8670
  t2 = $[6];
8671
8671
  const previewStateObservable = t2;
8672
8672
  let t3;
8673
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
8673
+ $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
8674
8674
  snapshot: null,
8675
8675
  isLoading: !0,
8676
8676
  original: null
@@ -8712,7 +8712,7 @@ const EllipsisText = styled(Text)`
8712
8712
  }), $[21] = original, $[22] = schemaType.name, $[23] = snapshot, $[24] = versionId, $[25] = t7) : t7 = $[25];
8713
8713
  const t8 = schemaType.icon;
8714
8714
  let t9;
8715
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t9 = {
8715
+ $[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = {
8716
8716
  backgroundColor: "transparent"
8717
8717
  }, $[26] = t9) : t9 = $[26];
8718
8718
  let t10;
@@ -8796,9 +8796,9 @@ function ConfirmDeleteDialogBody(t0) {
8796
8796
  let t9;
8797
8797
  $[22] !== confirmationMessage ? (t9 = confirmationMessage(), $[22] = confirmationMessage, $[23] = t9) : t9 = $[23];
8798
8798
  let t10;
8799
- $[24] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(Card, { borderTop: !0, padding: 1 }), $[24] = t10) : t10 = $[24];
8799
+ $[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx(Card, { borderTop: !0, padding: 1 }), $[24] = t10) : t10 = $[24];
8800
8800
  let t11;
8801
- $[25] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsx(Text, { "aria-hidden": "true", size: 1, children: /* @__PURE__ */ jsx(WarningOutlineIcon, {}) }), $[25] = t11) : t11 = $[25];
8801
+ $[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsx(Text, { "aria-hidden": "true", size: 1, children: /* @__PURE__ */ jsx(WarningOutlineIcon, {}) }), $[25] = t11) : t11 = $[25];
8802
8802
  let t12;
8803
8803
  $[26] !== documentTitle ? (t12 = {
8804
8804
  DocumentTitle: () => documentTitle
@@ -9108,7 +9108,7 @@ function ConfirmDeleteDialogContainer(props) {
9108
9108
  t
9109
9109
  } = useTranslation(structureLocaleNamespace), id = useId(), [error, setError] = useState(null);
9110
9110
  let t0;
9111
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setError(null), $[0] = t0) : t0 = $[0];
9111
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setError(null), $[0] = t0) : t0 = $[0];
9112
9112
  const handleRetry = t0;
9113
9113
  let t1;
9114
9114
  return $[1] !== error || $[2] !== id || $[3] !== props || $[4] !== t ? (t1 = error ? /* @__PURE__ */ jsx(Dialog, { id: `dialog-error-${id}`, "data-testid": "confirm-delete-error-dialog", header: t("confirm-delete-dialog.error.title.text"), footer: {
@@ -9193,7 +9193,7 @@ function PaneHeaderCreateButton(t0) {
9193
9193
  bb0: {
9194
9194
  if (!templatePermissions) {
9195
9195
  let t43;
9196
- $[5] === Symbol.for("react.memo_cache_sentinel") ? (t43 = {}, $[5] = t43) : t43 = $[5], t3 = t43;
9196
+ $[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t43 = {}, $[5] = t43) : t43 = $[5], t3 = t43;
9197
9197
  break bb0;
9198
9198
  }
9199
9199
  let t42;
@@ -9384,7 +9384,7 @@ function MissingSchemaType(props) {
9384
9384
  value
9385
9385
  } = props;
9386
9386
  let t0;
9387
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
9387
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
9388
9388
  Code: "code"
9389
9389
  }, $[0] = t0) : t0 = $[0];
9390
9390
  let t1;
@@ -9394,7 +9394,7 @@ function MissingSchemaType(props) {
9394
9394
  let t2;
9395
9395
  $[3] !== t || $[4] !== t1 ? (t2 = /* @__PURE__ */ jsx("em", { children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "pane-item.missing-schema-type.title", components: t0, values: t1 }) }), $[3] = t, $[4] = t1, $[5] = t2) : t2 = $[5];
9396
9396
  let t3;
9397
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
9397
+ $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
9398
9398
  Code: "code"
9399
9399
  }, $[6] = t3) : t3 = $[6];
9400
9400
  let t4;
@@ -9443,11 +9443,11 @@ function PaneItem(props) {
9443
9443
  break bb0;
9444
9444
  }
9445
9445
  let t22;
9446
- $[12] === Symbol.for("react.memo_cache_sentinel") ? (t22 = {
9446
+ $[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t22 = {
9447
9447
  opacity: 0.5
9448
9448
  }, $[12] = t22) : t22 = $[12];
9449
9449
  let t32;
9450
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t32 = /* @__PURE__ */ jsx(Box, { style: t22, children: /* @__PURE__ */ jsx(Text, { muted: !0, size: 1, children: /* @__PURE__ */ jsx(ChevronRightIcon, {}) }) }), $[13] = t32) : t32 = $[13];
9450
+ $[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t32 = /* @__PURE__ */ jsx(Box, { style: t22, children: /* @__PURE__ */ jsx(Text, { muted: !0, size: 1, children: /* @__PURE__ */ jsx(ChevronRightIcon, {}) }) }), $[13] = t32) : t32 = $[13];
9451
9451
  let t42;
9452
9452
  $[14] !== icon || $[15] !== schemaType ? (t42 = getIconWithFallback(icon, schemaType, FolderIcon), $[14] = icon, $[15] = schemaType, $[16] = t42) : t42 = $[16];
9453
9453
  let t52;
@@ -9455,7 +9455,7 @@ function PaneItem(props) {
9455
9455
  }
9456
9456
  const preview = t1;
9457
9457
  let t2;
9458
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t2 = (e) => {
9458
+ $[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (e) => {
9459
9459
  if (e.metaKey) {
9460
9460
  setClicked(!1);
9461
9461
  return;
@@ -9464,17 +9464,17 @@ function PaneItem(props) {
9464
9464
  }, $[20] = t2) : t2 = $[20];
9465
9465
  const handleClick = t2;
9466
9466
  let t3;
9467
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setClicked(!1), $[21] = t3) : t3 = $[21];
9467
+ $[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setClicked(!1), $[21] = t3) : t3 = $[21];
9468
9468
  let t4;
9469
9469
  $[22] !== selected ? (t4 = [selected], $[22] = selected, $[23] = t4) : t4 = $[23], useEffect(t3, t4);
9470
9470
  const [preloading, setPreload] = useState(!1), timeoutRef = useRef(null);
9471
9471
  let t5;
9472
- $[24] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
9472
+ $[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
9473
9473
  timeoutRef.current = setTimeout(() => startTransition(() => setPreload(!0)), 400);
9474
9474
  }, $[24] = t5) : t5 = $[24];
9475
9475
  const handleMouseEnter = t5;
9476
9476
  let t6;
9477
- $[25] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
9477
+ $[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
9478
9478
  timeoutRef.current && clearTimeout(timeoutRef.current), startTransition(() => setPreload(!1));
9479
9479
  }, $[25] = t6) : t6 = $[25];
9480
9480
  const handleMouseLeave = t6, t7 = `pane-item-${title}`, t8 = ChildLink2, t9 = selected || clicked;
@@ -10149,15 +10149,15 @@ const rotate = keyframes`
10149
10149
  onRetry
10150
10150
  } = useDocumentList(t5), isLoading = documentListIsLoading || releases.loading;
10151
10151
  let t6;
10152
- $[18] === Symbol.for("react.memo_cache_sentinel") ? (t6 = (event$) => event$.pipe(map(_temp$7), tap$1(setSearchInputValue), debounce(_temp2$3), tap$1(setSearchQuery)), $[18] = t6) : t6 = $[18];
10152
+ $[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = (event$) => event$.pipe(map(_temp$7), tap$1(setSearchInputValue), debounce(_temp2$3), tap$1(setSearchQuery)), $[18] = t6) : t6 = $[18];
10153
10153
  const handleQueryChange = useObservableEvent(t6);
10154
10154
  let t7;
10155
- $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
10155
+ $[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => {
10156
10156
  setSearchQuery(""), setSearchInputValue("");
10157
10157
  }, $[19] = t7) : t7 = $[19];
10158
10158
  const handleClearSearch = t7;
10159
10159
  let t8;
10160
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t8 = (event_0) => {
10160
+ $[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = (event_0) => {
10161
10161
  event_0.key === "Escape" && handleClearSearch();
10162
10162
  }, $[20] = t8) : t8 = $[20];
10163
10163
  const handleSearchKeyDown = t8, [enableSearchSpinner, setEnableSearchSpinner] = useState();
@@ -10166,7 +10166,7 @@ const rotate = keyframes`
10166
10166
  !enableSearchSpinner && !isLoading && setEnableSearchSpinner(paneKey);
10167
10167
  }, t10 = [enableSearchSpinner, isLoading, paneKey], $[21] = enableSearchSpinner, $[22] = isLoading, $[23] = paneKey, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), useEffect(t9, t10);
10168
10168
  let t11;
10169
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t11 = () => {
10169
+ $[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t11 = () => {
10170
10170
  handleClearSearch(), setEnableSearchSpinner();
10171
10171
  }, $[26] = t11) : t11 = $[26];
10172
10172
  let t12;
@@ -10202,7 +10202,7 @@ const rotate = keyframes`
10202
10202
  $[29] !== t ? (t15 = t("panes.document-list-pane.search-input.aria-label"), $[29] = t, $[30] = t15) : t15 = $[30];
10203
10203
  const t16 = !!searchQuery;
10204
10204
  let t17;
10205
- $[31] === Symbol.for("react.memo_cache_sentinel") ? (t17 = [2, 2, 1], $[31] = t17) : t17 = $[31];
10205
+ $[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t17 = [2, 2, 1], $[31] = t17) : t17 = $[31];
10206
10206
  const t18 = !connected || loadingVariant === "subtle" && !searchInputValue ? DelayedSubtleSpinnerIcon : null;
10207
10207
  let t19;
10208
10208
  $[32] !== t ? (t19 = t("panes.document-list-pane.search-input.placeholder"), $[32] = t, $[33] = t19) : t19 = $[33];
@@ -10323,7 +10323,7 @@ function DocumentSheetListProvider(t0) {
10323
10323
  table
10324
10324
  } = t0, [selectedAnchorCellDetails, setSelectedAnchorCellDetails] = useState(null);
10325
10325
  let t1;
10326
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
10326
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
10327
10327
  const [selectedRangeCellIndexes, setSelectedRangeCellIndexes] = useState(t1);
10328
10328
  let t2;
10329
10329
  $[1] !== selectedAnchorCellDetails?.state ? (t2 = (t32) => {
@@ -10437,7 +10437,7 @@ function DocumentSheetListProvider(t0) {
10437
10437
  selectedAnchorCellDetails && (document.removeEventListener("keydown", handleAnchorKeydown), document.removeEventListener("click", handleAnchorClick));
10438
10438
  }), t12 = [handleAnchorClick, handleAnchorKeydown, selectedAnchorCellDetails], $[29] = handleAnchorClick, $[30] = handleAnchorKeydown, $[31] = selectedAnchorCellDetails, $[32] = t11, $[33] = t12) : (t11 = $[32], t12 = $[33]), useEffect(t11, t12);
10439
10439
  let t13;
10440
- $[34] === Symbol.for("react.memo_cache_sentinel") ? (t13 = () => setSelectedAnchorCellDetails(_temp$6), $[34] = t13) : t13 = $[34];
10440
+ $[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t13 = () => setSelectedAnchorCellDetails(_temp$6), $[34] = t13) : t13 = $[34];
10441
10441
  const focusAnchorCell = t13;
10442
10442
  let t14;
10443
10443
  $[35] !== selectedAnchorCellDetails || $[36] !== selectedRangeCellIndexes ? (t14 = (colId_0, rowIndex_0) => selectedAnchorCellDetails?.colId !== colId_0 ? null : selectedAnchorCellDetails.rowIndex === rowIndex_0 ? selectedAnchorCellDetails.state === "focused" ? "focused" : "selectedAnchor" : selectedRangeCellIndexes.includes(rowIndex_0) ? "selectedRange" : null, $[35] = selectedAnchorCellDetails, $[36] = selectedRangeCellIndexes, $[37] = t14) : t14 = $[37];
@@ -10677,7 +10677,7 @@ function DocumentSheetListFilter() {
10677
10677
  filtersVisible
10678
10678
  } = t0;
10679
10679
  let t1;
10680
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsx(SearchHeader, {}), $[0] = t1) : t1 = $[0];
10680
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsx(SearchHeader, {}), $[0] = t1) : t1 = $[0];
10681
10681
  let t2;
10682
10682
  $[1] !== filtersVisible ? (t2 = filtersVisible && /* @__PURE__ */ jsx(Filters, { showTypeFilter: !1 }), $[1] = filtersVisible, $[2] = t2) : t2 = $[2];
10683
10683
  let t3;
@@ -10833,7 +10833,7 @@ function useDocumentSheetListStore(t0) {
10833
10833
  }, $[0] = t1, $[1] = t2) : t2 = $[1];
10834
10834
  const client = useClient(t2);
10835
10835
  let t3;
10836
- $[2] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
10836
+ $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = {
10837
10837
  documents: {}
10838
10838
  }, $[2] = t3) : t3 = $[2];
10839
10839
  const [state2, dispatch] = useReducer(documentsReducer, t3), [isLoading, setIsLoading] = useState(client !== null), [error, setError] = useState(null);
@@ -10881,13 +10881,13 @@ function useDocumentSheetListStore(t0) {
10881
10881
  bb0: {
10882
10882
  if (!client) {
10883
10883
  let t73;
10884
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t73 = of(), $[9] = t73) : t73 = $[9], t6 = t73;
10884
+ $[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t73 = of(), $[9] = t73) : t73 = $[9], t6 = t73;
10885
10885
  break bb0;
10886
10886
  }
10887
10887
  let t72;
10888
10888
  if ($[10] !== QUERY || $[11] !== client.observable || $[12] !== params) {
10889
10889
  let t82;
10890
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t82 = (err_0) => (setError(err_0), of(err_0)), $[14] = t82) : t82 = $[14], t72 = client.observable.listen(QUERY, params, LISTEN_OPTIONS).pipe(catchError(t82)), $[10] = QUERY, $[11] = client.observable, $[12] = params, $[13] = t72;
10890
+ $[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t82 = (err_0) => (setError(err_0), of(err_0)), $[14] = t82) : t82 = $[14], t72 = client.observable.listen(QUERY, params, LISTEN_OPTIONS).pipe(catchError(t82)), $[10] = QUERY, $[11] = client.observable, $[12] = params, $[13] = t72;
10891
10891
  } else
10892
10892
  t72 = $[13];
10893
10893
  t6 = t72;
@@ -11239,7 +11239,7 @@ function ChangesInspector(t0) {
11239
11239
  const documentContext = t1;
11240
11240
  if (selectedReleaseId) {
11241
11241
  let t22;
11242
- return $[6] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx(Flex, { "data-testid": "review-changes-pane", direction: "column", height: "fill", children: /* @__PURE__ */ jsx(Card, { flex: 1, padding: 2, paddingTop: 0, children: /* @__PURE__ */ jsx(TimelineError, { versionError: !0 }) }) }), $[6] = t22) : t22 = $[6], t22;
11242
+ return $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx(Flex, { "data-testid": "review-changes-pane", direction: "column", height: "fill", children: /* @__PURE__ */ jsx(Card, { flex: 1, padding: 2, paddingTop: 0, children: /* @__PURE__ */ jsx(TimelineError, { versionError: !0 }) }) }), $[6] = t22) : t22 = $[6], t22;
11243
11243
  }
11244
11244
  let t2;
11245
11245
  $[7] !== structureT ? (t2 = structureT("changes.from.label"), $[7] = structureT, $[8] = t2) : t2 = $[8];
@@ -11300,15 +11300,15 @@ function Content$1(t0) {
11300
11300
  } = t0;
11301
11301
  if (error) {
11302
11302
  let t12;
11303
- return $[0] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(NoChanges, {}), $[0] = t12) : t12 = $[0], t12;
11303
+ return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(NoChanges, {}), $[0] = t12) : t12 = $[0], t12;
11304
11304
  }
11305
11305
  if (loading) {
11306
11306
  let t12;
11307
- return $[1] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(LoadingBlock, { showText: !0 }), $[1] = t12) : t12 = $[1], t12;
11307
+ return $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(LoadingBlock, { showText: !0 }), $[1] = t12) : t12 = $[1], t12;
11308
11308
  }
11309
11309
  if (!diff) {
11310
11310
  let t12;
11311
- return $[2] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(NoChanges, {}), $[2] = t12) : t12 = $[2], t12;
11311
+ return $[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(NoChanges, {}), $[2] = t12) : t12 = $[2], t12;
11312
11312
  }
11313
11313
  let t1;
11314
11314
  $[3] !== diff || $[4] !== schemaType ? (t1 = /* @__PURE__ */ jsx(ChangeList, { diff, schemaType }), $[3] = diff, $[4] = schemaType, $[5] = t1) : t1 = $[5];
@@ -11449,7 +11449,7 @@ function PublishedEventMenu(t0) {
11449
11449
  }, i18nKey: "events.open.draft", t }) }) }) }) }), $[28] = VersionBadge, $[29] = event.release, $[30] = event.versionRevisionId, $[31] = handleOpenDraftDocument, $[32] = handleOpenReleaseDocument, $[33] = t, $[34] = tCore, $[35] = t11) : t11 = $[35];
11450
11450
  const t12 = portalContext.elements?.[TIMELINE_MENU_PORTAL$1] ? TIMELINE_MENU_PORTAL$1 : !0;
11451
11451
  let t13;
11452
- $[36] === Symbol.for("react.memo_cache_sentinel") ? (t13 = ["bottom-end", "bottom-start"], $[36] = t13) : t13 = $[36];
11452
+ $[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t13 = ["bottom-end", "bottom-start"], $[36] = t13) : t13 = $[36];
11453
11453
  let t14;
11454
11454
  $[37] !== t12 ? (t14 = {
11455
11455
  portal: t12,
@@ -11498,7 +11498,7 @@ const TimelineItemWrapper = motion.create(Box), CHILDREN_ITEMS_VARIANTS = {
11498
11498
  }, $[0] = allEvents, $[1] = selectedEventId, $[2] = t2) : t2 = $[2];
11499
11499
  const [expandedParents, setExpandedParents] = useState(t2);
11500
11500
  let t3;
11501
- $[3] === Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ new Set(), $[3] = t3) : t3 = $[3];
11501
+ $[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ new Set(), $[3] = t3) : t3 = $[3];
11502
11502
  const [expandingParents, setExpandingParents] = useState(t3);
11503
11503
  let t4;
11504
11504
  $[4] !== allEvents || $[5] !== expandedParents ? (t4 = allEvents.filter((event_0) => isCreateDocumentVersionEvent(event_0) && event_0.parentId ? allEvents[allEvents.length - 1].id === event_0.id ? !0 : expandedParents.has(event_0.parentId) : isEditDocumentVersionEvent(event_0) && event_0.parentId ? expandedParents.has(event_0.parentId) : !0), $[4] = allEvents, $[5] = expandedParents, $[6] = t4) : t4 = $[6];
@@ -11551,7 +11551,7 @@ const TimelineItemWrapper = motion.create(Box), CHILDREN_ITEMS_VARIANTS = {
11551
11551
  }, $[14] = events.length, $[15] = expandingParents, $[16] = handleSelectChunk, $[17] = hasMoreEvents, $[18] = renderOptionsMenu, $[19] = selectedEventId, $[20] = t8) : t8 = $[20];
11552
11552
  const renderItem = t8;
11553
11553
  let t10, t9;
11554
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => setMounted(!0), t10 = [], $[21] = t10, $[22] = t9) : (t10 = $[21], t9 = $[22]), useEffect(t9, t10);
11554
+ $[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t9 = () => setMounted(!0), t10 = [], $[21] = t10, $[22] = t9) : (t10 = $[21], t9 = $[22]), useEffect(t9, t10);
11555
11555
  let t11;
11556
11556
  if ($[23] !== events || $[24] !== selectedEventId) {
11557
11557
  let t122;
@@ -11597,12 +11597,12 @@ function EventsTimelineMenu(t0) {
11597
11597
  t
11598
11598
  } = useTranslation("studio");
11599
11599
  let t1;
11600
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
11600
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
11601
11601
  setOpen(!0);
11602
11602
  }, $[0] = t1) : t1 = $[0];
11603
11603
  const handleOpen = t1;
11604
11604
  let t2;
11605
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
11605
+ $[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
11606
11606
  setOpen(!1);
11607
11607
  }, $[1] = t2) : t2 = $[1];
11608
11608
  const handleClose = t2;
@@ -11660,7 +11660,7 @@ function EventsTimelineMenu(t0) {
11660
11660
  bb0: {
11661
11661
  if (eventsError) {
11662
11662
  let t93;
11663
- $[22] === Symbol.for("react.memo_cache_sentinel") ? (t93 = /* @__PURE__ */ jsx(TimelineError, {}), $[22] = t93) : t93 = $[22], t8 = t93;
11663
+ $[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t93 = /* @__PURE__ */ jsx(TimelineError, {}), $[22] = t93) : t93 = $[22], t8 = t93;
11664
11664
  break bb0;
11665
11665
  }
11666
11666
  const t92 = !!nextCursor, t102 = event?.id, t112 = mode === "rev" ? selectRev : selectSince;
@@ -11688,7 +11688,7 @@ function EventsTimelineMenu(t0) {
11688
11688
  }, $[37] = popoverRef, $[38] = t11) : t11 = $[38];
11689
11689
  const portalElements = t11, t12 = open && content, t13 = open ? "timeline-menu-close-button" : "timeline-menu-open-button", t14 = loading || !events.length, t15 = open ? handleClose : handleOpen;
11690
11690
  let t16;
11691
- $[39] === Symbol.for("react.memo_cache_sentinel") ? (t16 = {
11691
+ $[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t16 = {
11692
11692
  maxWidth: "100%"
11693
11693
  }, $[39] = t16) : t16 = $[39];
11694
11694
  let t17;
@@ -11820,7 +11820,7 @@ function EventsInspector(t0) {
11820
11820
  bb0: {
11821
11821
  if (!events) {
11822
11822
  let t53;
11823
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t53 = [null, null], $[11] = t53) : t53 = $[11], t4 = t53;
11823
+ $[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t53 = [null, null], $[11] = t53) : t53 = $[11], t4 = t53;
11824
11824
  break bb0;
11825
11825
  }
11826
11826
  let t52;
@@ -11866,7 +11866,7 @@ function EventsInspector(t0) {
11866
11866
  ] }) }), $[36] = t72, $[37] = t92, $[38] = t102) : t102 = $[38], t102;
11867
11867
  }
11868
11868
  let t6;
11869
- $[39] === Symbol.for("react.memo_cache_sentinel") ? (t6 = {
11869
+ $[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = {
11870
11870
  position: "relative"
11871
11871
  }, $[39] = t6) : t6 = $[39];
11872
11872
  let t7;
@@ -11933,7 +11933,7 @@ function Content(t0) {
11933
11933
  } = t0;
11934
11934
  if (error) {
11935
11935
  let t12;
11936
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(CompareWithPublishedView, {}), $[0] = t12) : t12 = $[0];
11936
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(CompareWithPublishedView, {}), $[0] = t12) : t12 = $[0];
11937
11937
  let t22;
11938
11938
  $[1] !== error || $[2] !== sinceEvent?.type ? (t22 = sinceEvent?.type !== "historyCleared" && /* @__PURE__ */ jsx(ChangesError, { error }), $[1] = error, $[2] = sinceEvent?.type, $[3] = t22) : t22 = $[3];
11939
11939
  let t3;
@@ -11944,15 +11944,15 @@ function Content(t0) {
11944
11944
  }
11945
11945
  if (loading) {
11946
11946
  let t12;
11947
- return $[6] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(LoadingBlock, { showText: !0 }), $[6] = t12) : t12 = $[6], t12;
11947
+ return $[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(LoadingBlock, { showText: !0 }), $[6] = t12) : t12 = $[6], t12;
11948
11948
  }
11949
11949
  if (sameRevisionSelected) {
11950
11950
  let t12;
11951
- return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(SameRevisionSelected, {}), $[7] = t12) : t12 = $[7], t12;
11951
+ return $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(SameRevisionSelected, {}), $[7] = t12) : t12 = $[7], t12;
11952
11952
  }
11953
11953
  if (!documentContext.rootDiff) {
11954
11954
  let t12;
11955
- return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(motion.div, { animate: {
11955
+ return $[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(motion.div, { animate: {
11956
11956
  opacity: 1
11957
11957
  }, initial: {
11958
11958
  opacity: 0
@@ -11971,7 +11971,7 @@ function SameRevisionSelected() {
11971
11971
  t
11972
11972
  } = useTranslation("");
11973
11973
  let t0, t1, t2;
11974
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = {
11974
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
11975
11975
  opacity: 1
11976
11976
  }, t1 = {
11977
11977
  opacity: 0
@@ -12068,7 +12068,7 @@ function HistorySelector(t0) {
12068
12068
  selectedReleaseId
12069
12069
  } = usePerspective(), [scrollRef, setScrollRef] = useState(null), [listHeight, setListHeight] = useState(0);
12070
12070
  let t1;
12071
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = (el) => {
12071
+ $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = (el) => {
12072
12072
  el?.clientHeight && (setListHeight(el.clientHeight - 1), setScrollRef(el));
12073
12073
  }, $[0] = t1) : t1 = $[0];
12074
12074
  const getScrollerRef = t1, chunks = useTimelineSelector(timelineStore, _temp$2), realRevChunk = useTimelineSelector(timelineStore, _temp2), hasMoreChunks = useTimelineSelector(timelineStore, _temp3), loading = useTimelineSelector(timelineStore, _temp4), {
@@ -12183,7 +12183,7 @@ function ChangesTabs(props) {
12183
12183
  let t19;
12184
12184
  $[40] !== t ? (t19 = /* @__PURE__ */ jsx(Box, { flex: 1, padding: 1, children: /* @__PURE__ */ jsx(Text, { size: 1, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "changes.banner.tooltip" }) }) }), $[40] = t, $[41] = t19) : t19 = $[41];
12185
12185
  let t20;
12186
- $[42] === Symbol.for("react.memo_cache_sentinel") ? (t20 = /* @__PURE__ */ jsx(Text, { size: 0, muted: !0, children: /* @__PURE__ */ jsx(InfoOutlineIcon, { fontSize: 1 }) }), $[42] = t20) : t20 = $[42];
12186
+ $[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t20 = /* @__PURE__ */ jsx(Text, { size: 0, muted: !0, children: /* @__PURE__ */ jsx(InfoOutlineIcon, { fontSize: 1 }) }), $[42] = t20) : t20 = $[42];
12187
12187
  let t21;
12188
12188
  $[43] !== parentRef || $[44] !== t19 ? (t21 = /* @__PURE__ */ jsx(Tooltip, { portal: !0, placement: "bottom-end", boundaryElement: parentRef, content: t19, children: t20 }), $[43] = parentRef, $[44] = t19, $[45] = t21) : t21 = $[45];
12189
12189
  let t22;