sanity 5.31.0-next.13 → 5.31.0-next.14
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.
- package/lib/_chunks-es/PresentationToolGrantsCheck.js +204 -120
- package/lib/_chunks-es/PresentationToolGrantsCheck.js.map +1 -1
- package/lib/_chunks-es/presentation.js +2 -1
- package/lib/_chunks-es/presentation.js.map +1 -1
- package/lib/_chunks-es/resources9.js +6 -0
- package/lib/_chunks-es/resources9.js.map +1 -1
- package/lib/_chunks-es/version.js +2 -2
- package/package.json +11 -11
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useSelector, useActorRef } from "@xstate/react";
|
|
4
|
-
import { presentationLocaleNamespace, usePresentationTool, PresentationSpinner, API_VERSION, MAX_TIME_TO_OVERLAYS_CONNECTION, usePresentationNavigate, POPUP_CHECK_INTERVAL, DEFAULT_TOOL_NAME, EDIT_INTENT_MODE } from "./presentation.js";
|
|
4
|
+
import { presentationLocaleNamespace, usePresentationTool, PresentationSpinner, API_VERSION, MAX_TIME_TO_OVERLAYS_CONNECTION, usePresentationNavigate, POPUP_CHECK_INTERVAL, NARROW_MEDIA_INDEX, DEFAULT_TOOL_NAME, EDIT_INTENT_MODE } from "./presentation.js";
|
|
5
5
|
import { createController, createConnectionMachine } from "@sanity/comlink";
|
|
6
6
|
import { createCompatibilityActors } from "@sanity/presentation-comlink";
|
|
7
7
|
import { urlSearchParamPreviewPerspective, fetchSharedAccessQuery, urlSearchParamVercelProtectionBypass, urlSearchParamVercelSetBypassCookie, urlSearchParamPreviewSecret, urlSearchParamPreviewPathname, schemaTypeSingleton, schemaIdSingleton, schemaType } from "@sanity/preview-url-secret/constants";
|
|
8
|
-
import { Card, Text, Stack, Inline, Box,
|
|
8
|
+
import { Card, Flex, TabList, Text, Stack, Inline, Box, Container as Container$1, Code, Label, TextInput, Spinner, useToast, Grid, Switch, MenuDivider, Menu, Hotkeys, usePrefersReducedMotion, useMediaIndex, BoundaryElementProvider } from "@sanity/ui";
|
|
9
9
|
import { memo, useEffect, useRef, useContext, useLayoutEffect, useState, forwardRef, Suspense, useId as useId$1, useImperativeHandle, lazy, useMemo, useCallback, useSyncExternalStore, useEffectEvent, useReducer } from "react";
|
|
10
10
|
import { useTranslation, getPublishedId, pathToString, useUnique, useDocumentPreviewStore, usePerspective, getPreviewStateObservable, useSchema, getPreviewValueWithFallback, SanityDefaultPreview, PreviewCard, Translate, CommentsIntentProvider, useActiveWorkspace, useClient, useCurrentUser, useProjectId, useDataset, useWorkspace, COMMENTS_INSPECTOR_NAME, useGrantsStore } from "sanity";
|
|
11
11
|
import { StateLink, useRouter, decodeJsonParams } from "sanity/router";
|
|
12
12
|
import { styled, createGlobalStyle } from "styled-components";
|
|
13
13
|
import { setup, assign, fromPromise, fromObservable, log } from "xstate";
|
|
14
14
|
import { PresentationSharedStateContext, PresentationPanelsContext, PresentationNavigateContext, PresentationParamsContext, PresentationContext } from "sanity/_singletons";
|
|
15
|
+
import { Tab, Button, ErrorBoundary, Tooltip, MenuItem, MenuButton, TooltipDelayGroupProvider } from "./index.js";
|
|
16
|
+
import "react-i18next";
|
|
15
17
|
import { WarningOutlineIcon, LaunchIcon, ResetIcon, CopyIcon, ShareIcon, PanelLeftIcon, MobileDeviceIcon, DesktopIcon, RefreshIcon } from "@sanity/icons";
|
|
16
18
|
import { PaneRouterContext, PaneLayout, StructureToolProvider, DocumentListPane as DocumentListPane$1, DocumentPane as DocumentPane$1 } from "sanity/structure";
|
|
17
|
-
import { Button, ErrorBoundary, Tooltip, MenuItem, MenuButton, TooltipDelayGroupProvider } from "./index.js";
|
|
18
|
-
import "react-i18next";
|
|
19
19
|
import { toString } from "@sanity/util/paths";
|
|
20
20
|
import { StructureToolProvider as StructureToolProvider$1 } from "./StructureToolProvider.js";
|
|
21
21
|
import { studioPath } from "@sanity/client/csm";
|
|
@@ -168,14 +168,16 @@ const presentationMachine = setup({
|
|
|
168
168
|
displayName: "Root",
|
|
169
169
|
componentId: "sc-1auuvvr-0"
|
|
170
170
|
})`overflow:hidden;flex-basis:0;flex-shrink:1;`, Panel = function(t0) {
|
|
171
|
-
const $ = c(
|
|
171
|
+
const $ = c(17), {
|
|
172
172
|
children,
|
|
173
173
|
defaultSize: t1,
|
|
174
174
|
id,
|
|
175
|
+
htmlId,
|
|
175
176
|
minWidth,
|
|
176
177
|
maxWidth,
|
|
177
|
-
order: t2
|
|
178
|
-
|
|
178
|
+
order: t2,
|
|
179
|
+
hidden: t3
|
|
180
|
+
} = t0, defaultSize = t1 === void 0 ? null : t1, order = t2 === void 0 ? 0 : t2, hidden = t3 === void 0 ? !1 : t3, context = useContext(PresentationPanelsContext);
|
|
179
181
|
if (context === null)
|
|
180
182
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
181
183
|
const {
|
|
@@ -183,11 +185,13 @@ const presentationMachine = setup({
|
|
|
183
185
|
registerElement,
|
|
184
186
|
unregisterElement
|
|
185
187
|
} = context;
|
|
186
|
-
let
|
|
187
|
-
$[0] !== getPanelStyle || $[1] !==
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
let t4;
|
|
189
|
+
$[0] !== getPanelStyle || $[1] !== hidden || $[2] !== id ? (t4 = hidden ? {
|
|
190
|
+
display: "none"
|
|
191
|
+
} : getPanelStyle(id), $[0] = getPanelStyle, $[1] = hidden, $[2] = id, $[3] = t4) : t4 = $[3];
|
|
192
|
+
const style = t4;
|
|
193
|
+
let t5, t6;
|
|
194
|
+
$[4] !== defaultSize || $[5] !== id || $[6] !== maxWidth || $[7] !== minWidth || $[8] !== order || $[9] !== registerElement || $[10] !== unregisterElement ? (t5 = () => (registerElement(id, {
|
|
191
195
|
id,
|
|
192
196
|
type: "panel",
|
|
193
197
|
defaultSize,
|
|
@@ -196,9 +200,9 @@ const presentationMachine = setup({
|
|
|
196
200
|
order
|
|
197
201
|
}), () => {
|
|
198
202
|
unregisterElement(id);
|
|
199
|
-
}),
|
|
200
|
-
let
|
|
201
|
-
return $[
|
|
203
|
+
}), t6 = [id, defaultSize, order, maxWidth, minWidth, registerElement, unregisterElement], $[4] = defaultSize, $[5] = id, $[6] = maxWidth, $[7] = minWidth, $[8] = order, $[9] = registerElement, $[10] = unregisterElement, $[11] = t5, $[12] = t6) : (t5 = $[11], t6 = $[12]), useLayoutEffect(t5, t6);
|
|
204
|
+
let t7;
|
|
205
|
+
return $[13] !== children || $[14] !== htmlId || $[15] !== style ? (t7 = /* @__PURE__ */ jsx(Root$1, { id: htmlId, style, children }), $[13] = children, $[14] = htmlId, $[15] = style, $[16] = t7) : t7 = $[16], t7;
|
|
202
206
|
};
|
|
203
207
|
function debounce(fn, timeout) {
|
|
204
208
|
let timer;
|
|
@@ -487,6 +491,48 @@ const PanelsWrapper = styled.div.withConfig({
|
|
|
487
491
|
let t22;
|
|
488
492
|
return $[43] !== context || $[44] !== t21 ? (t22 = /* @__PURE__ */ jsx(PresentationPanelsContext.Provider, { value: context, children: t21 }), $[43] = context, $[44] = t21, $[45] = t22) : t22 = $[45], t22;
|
|
489
493
|
};
|
|
494
|
+
function getPresentationPanelHtmlId(tab) {
|
|
495
|
+
return `presentation-narrow-panel-${tab}`;
|
|
496
|
+
}
|
|
497
|
+
const PresentationNarrowTabBar = function(props) {
|
|
498
|
+
const $ = c(20), {
|
|
499
|
+
activeTab,
|
|
500
|
+
navigatorEnabled,
|
|
501
|
+
onTabChange
|
|
502
|
+
} = props, {
|
|
503
|
+
t
|
|
504
|
+
} = useTranslation(presentationLocaleNamespace);
|
|
505
|
+
let t0;
|
|
506
|
+
$[0] !== t ? (t0 = t("narrow-tabs.preview-tab.label"), $[0] = t, $[1] = t0) : t0 = $[1];
|
|
507
|
+
let t1;
|
|
508
|
+
$[2] !== t0 ? (t1 = {
|
|
509
|
+
id: "preview",
|
|
510
|
+
label: t0
|
|
511
|
+
}, $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
512
|
+
let orderedTabs;
|
|
513
|
+
if ($[4] !== navigatorEnabled || $[5] !== t || $[6] !== t1) {
|
|
514
|
+
if (orderedTabs = [t1], navigatorEnabled) {
|
|
515
|
+
let t23;
|
|
516
|
+
$[8] !== t ? (t23 = t("narrow-tabs.navigator-tab.label"), $[8] = t, $[9] = t23) : t23 = $[9];
|
|
517
|
+
let t32;
|
|
518
|
+
$[10] !== t23 ? (t32 = {
|
|
519
|
+
id: "navigator",
|
|
520
|
+
label: t23
|
|
521
|
+
}, $[10] = t23, $[11] = t32) : t32 = $[11], orderedTabs.push(t32);
|
|
522
|
+
}
|
|
523
|
+
let t22;
|
|
524
|
+
$[12] !== t ? (t22 = t("narrow-tabs.content-tab.label"), $[12] = t, $[13] = t22) : t22 = $[13];
|
|
525
|
+
let t3;
|
|
526
|
+
$[14] !== t22 ? (t3 = {
|
|
527
|
+
id: "content",
|
|
528
|
+
label: t22
|
|
529
|
+
}, $[14] = t22, $[15] = t3) : t3 = $[15], orderedTabs.push(t3), $[4] = navigatorEnabled, $[5] = t, $[6] = t1, $[7] = orderedTabs;
|
|
530
|
+
} else
|
|
531
|
+
orderedTabs = $[7];
|
|
532
|
+
const tabs = orderedTabs;
|
|
533
|
+
let t2;
|
|
534
|
+
return $[16] !== activeTab || $[17] !== onTabChange || $[18] !== tabs ? (t2 = /* @__PURE__ */ jsx(Card, { borderBottom: !0, paddingX: 2, paddingY: 1, children: /* @__PURE__ */ jsx(Flex, { justify: "center", children: /* @__PURE__ */ jsx(TabList, { space: 1, children: tabs.map((tab) => /* @__PURE__ */ jsx(Tab, { "aria-controls": getPresentationPanelHtmlId(tab.id), id: `presentation-narrow-tab-${tab.id}`, label: tab.label, onClick: () => onTabChange(tab.id), selected: activeTab === tab.id }, tab.id)) }) }) }), $[16] = activeTab, $[17] = onTabChange, $[18] = tabs, $[19] = t2) : t2 = $[19], t2;
|
|
535
|
+
};
|
|
490
536
|
function ErrorCard(props) {
|
|
491
537
|
const $ = c(37);
|
|
492
538
|
let children, message, onContinueAnyway, onRetry, restProps;
|
|
@@ -992,7 +1038,9 @@ function usePanelId(id) {
|
|
|
992
1038
|
const Resizer = styled.div.withConfig({
|
|
993
1039
|
displayName: "Resizer",
|
|
994
1040
|
componentId: "sc-1ov4oxw-0"
|
|
995
|
-
})`position:relative
|
|
1041
|
+
})`position:relative;${({
|
|
1042
|
+
$hidden
|
|
1043
|
+
}) => $hidden && "display: none;"}`, ResizerInner = styled.div.withConfig({
|
|
996
1044
|
displayName: "ResizerInner",
|
|
997
1045
|
componentId: "sc-1ov4oxw-1"
|
|
998
1046
|
})`position:absolute;top:0;bottom:0;left:-5px;width:9px;z-index:10;cursor:${({
|
|
@@ -1019,11 +1067,12 @@ const Resizer = styled.div.withConfig({
|
|
|
1019
1067
|
}
|
|
1020
1068
|
}
|
|
1021
1069
|
`}`, PanelResizer = function(t0) {
|
|
1022
|
-
const $ = c(
|
|
1070
|
+
const $ = c(30), {
|
|
1023
1071
|
id: propId,
|
|
1024
1072
|
order,
|
|
1025
|
-
disabled: t1
|
|
1026
|
-
|
|
1073
|
+
disabled: t1,
|
|
1074
|
+
hidden: t2
|
|
1075
|
+
} = t0, disabled = t1 === void 0 ? !1 : t1, hidden = t2 === void 0 ? !1 : t2, el = useRef(null), context = useContext(PresentationPanelsContext);
|
|
1027
1076
|
if (context === null)
|
|
1028
1077
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
1029
1078
|
const id = usePanelId(propId), {
|
|
@@ -1036,23 +1085,23 @@ const Resizer = styled.div.withConfig({
|
|
|
1036
1085
|
} = context, isDragging = activeResizer === id;
|
|
1037
1086
|
if (context === null)
|
|
1038
1087
|
throw Error("Panel components must be rendered within a PanelGroup container");
|
|
1039
|
-
let t2;
|
|
1040
|
-
$[0] !== id || $[1] !== startDragging ? (t2 = (event) => {
|
|
1041
|
-
startDragging(id, event.nativeEvent);
|
|
1042
|
-
}, $[0] = id, $[1] = startDragging, $[2] = t2) : t2 = $[2];
|
|
1043
|
-
const onMouseDown = t2;
|
|
1044
1088
|
let t3;
|
|
1045
|
-
$[
|
|
1046
|
-
|
|
1047
|
-
}, $[
|
|
1048
|
-
const
|
|
1089
|
+
$[0] !== disabled || $[1] !== hidden || $[2] !== id || $[3] !== startDragging ? (t3 = (event) => {
|
|
1090
|
+
disabled || hidden || startDragging(id, event.nativeEvent);
|
|
1091
|
+
}, $[0] = disabled, $[1] = hidden, $[2] = id, $[3] = startDragging, $[4] = t3) : t3 = $[4];
|
|
1092
|
+
const onMouseDown = t3;
|
|
1049
1093
|
let t4;
|
|
1050
|
-
$[6] !==
|
|
1094
|
+
$[5] !== drag || $[6] !== id ? (t4 = (e) => {
|
|
1095
|
+
drag(id, e);
|
|
1096
|
+
}, $[5] = drag, $[6] = id, $[7] = t4) : t4 = $[7];
|
|
1097
|
+
const onDrag = t4;
|
|
1098
|
+
let t5;
|
|
1099
|
+
$[8] !== stopDragging ? (t5 = () => {
|
|
1051
1100
|
el.current.blur(), stopDragging();
|
|
1052
|
-
}, $[
|
|
1053
|
-
const onDragStop =
|
|
1054
|
-
let
|
|
1055
|
-
$[
|
|
1101
|
+
}, $[8] = stopDragging, $[9] = t5) : t5 = $[9];
|
|
1102
|
+
const onDragStop = t5;
|
|
1103
|
+
let t6, t7;
|
|
1104
|
+
$[10] !== disabled || $[11] !== isDragging || $[12] !== onDrag || $[13] !== onDragStop ? (t6 = () => {
|
|
1056
1105
|
if (!isDragging || disabled)
|
|
1057
1106
|
return;
|
|
1058
1107
|
const resetDocumentStyles = (function() {
|
|
@@ -1068,50 +1117,60 @@ const Resizer = styled.div.withConfig({
|
|
|
1068
1117
|
return window.addEventListener("mousemove", onDrag), window.addEventListener("mouseup", onDragStop), window.addEventListener("contextmenu", onDragStop), () => {
|
|
1069
1118
|
resetDocumentStyles(), window.removeEventListener("mousemove", onDrag), window.removeEventListener("mouseup", onDragStop), window.removeEventListener("contextmenu", onDragStop);
|
|
1070
1119
|
};
|
|
1071
|
-
},
|
|
1072
|
-
let
|
|
1073
|
-
$[
|
|
1120
|
+
}, t7 = [disabled, isDragging, onDrag, onDragStop], $[10] = disabled, $[11] = isDragging, $[12] = onDrag, $[13] = onDragStop, $[14] = t6, $[15] = t7) : (t6 = $[14], t7 = $[15]), useEffect(t6, t7);
|
|
1121
|
+
let t8, t9;
|
|
1122
|
+
$[16] !== id || $[17] !== order || $[18] !== registerElement || $[19] !== unregisterElement ? (t8 = () => (registerElement(id, {
|
|
1074
1123
|
id,
|
|
1075
1124
|
order,
|
|
1076
1125
|
type: "resizer",
|
|
1077
1126
|
el
|
|
1078
1127
|
}), () => {
|
|
1079
1128
|
unregisterElement(id);
|
|
1080
|
-
}),
|
|
1081
|
-
let t10,
|
|
1082
|
-
$[
|
|
1083
|
-
let t11;
|
|
1084
|
-
$[22] !== disabled ? (t11 = /* @__PURE__ */ jsxs(ResizerInner, { $disabled: disabled, children: [
|
|
1085
|
-
t9,
|
|
1086
|
-
t10
|
|
1087
|
-
] }), $[22] = disabled, $[23] = t11) : t11 = $[23];
|
|
1129
|
+
}), t9 = [id, order, registerElement, unregisterElement], $[16] = id, $[17] = order, $[18] = registerElement, $[19] = unregisterElement, $[20] = t8, $[21] = t9) : (t8 = $[20], t9 = $[21]), useLayoutEffect(t8, t9);
|
|
1130
|
+
let t10, t11;
|
|
1131
|
+
$[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsx("span", {}), t11 = /* @__PURE__ */ jsx("span", {}), $[22] = t10, $[23] = t11) : (t10 = $[22], t11 = $[23]);
|
|
1088
1132
|
let t12;
|
|
1089
|
-
|
|
1133
|
+
$[24] !== disabled ? (t12 = /* @__PURE__ */ jsxs(ResizerInner, { $disabled: disabled, children: [
|
|
1134
|
+
t10,
|
|
1135
|
+
t11
|
|
1136
|
+
] }), $[24] = disabled, $[25] = t12) : t12 = $[25];
|
|
1137
|
+
let t13;
|
|
1138
|
+
return $[26] !== hidden || $[27] !== onMouseDown || $[28] !== t12 ? (t13 = /* @__PURE__ */ jsx(Resizer, { $hidden: hidden, onMouseDown, ref: el, children: t12 }), $[26] = hidden, $[27] = onMouseDown, $[28] = t12, $[29] = t13) : t13 = $[29], t13;
|
|
1090
1139
|
}, PresentationContentWrapper = (props) => {
|
|
1091
|
-
const $ = c(
|
|
1140
|
+
const $ = c(16), {
|
|
1092
1141
|
documentId,
|
|
1142
|
+
hidden,
|
|
1143
|
+
resizerHidden,
|
|
1093
1144
|
setDisplayedDocument,
|
|
1094
1145
|
getCommentIntent
|
|
1095
1146
|
} = props;
|
|
1096
1147
|
let t0;
|
|
1097
|
-
$[0]
|
|
1148
|
+
$[0] !== resizerHidden ? (t0 = /* @__PURE__ */ jsx(PanelResizer, { order: 4, hidden: resizerHidden }), $[0] = resizerHidden, $[1] = t0) : t0 = $[1];
|
|
1098
1149
|
let t1;
|
|
1099
|
-
$[
|
|
1150
|
+
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = getPresentationPanelHtmlId("content"), $[2] = t1) : t1 = $[2];
|
|
1100
1151
|
let t2;
|
|
1101
|
-
|
|
1152
|
+
$[3] !== getCommentIntent || $[4] !== props.children ? (t2 = /* @__PURE__ */ jsx(CommentsIntentProvider, { getIntent: getCommentIntent, children: props.children }), $[3] = getCommentIntent, $[4] = props.children, $[5] = t2) : t2 = $[5];
|
|
1153
|
+
let t3;
|
|
1154
|
+
$[6] !== documentId || $[7] !== setDisplayedDocument || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(DisplayedDocumentBroadcasterProvider, { documentId, setDisplayedDocument, children: t2 }), $[6] = documentId, $[7] = setDisplayedDocument, $[8] = t2, $[9] = t3) : t3 = $[9];
|
|
1155
|
+
let t4;
|
|
1156
|
+
$[10] !== hidden || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsx(Panel, { id: "content", htmlId: t1, minWidth: 325, order: 5, hidden, children: t3 }), $[10] = hidden, $[11] = t3, $[12] = t4) : t4 = $[12];
|
|
1157
|
+
let t5;
|
|
1158
|
+
return $[13] !== t0 || $[14] !== t4 ? (t5 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1102
1159
|
t0,
|
|
1103
|
-
|
|
1104
|
-
] }), $[
|
|
1160
|
+
t4
|
|
1161
|
+
] }), $[13] = t0, $[14] = t4, $[15] = t5) : t5 = $[15], t5;
|
|
1105
1162
|
}, PresentationContent = (props) => {
|
|
1106
|
-
const $ = c(
|
|
1163
|
+
const $ = c(17), {
|
|
1107
1164
|
documentId,
|
|
1108
1165
|
documentsOnPage,
|
|
1109
1166
|
documentType,
|
|
1110
1167
|
getCommentIntent,
|
|
1168
|
+
hidden,
|
|
1111
1169
|
mainDocumentState,
|
|
1112
1170
|
onEditReference,
|
|
1113
1171
|
onFocusPath,
|
|
1114
1172
|
onStructureParams,
|
|
1173
|
+
resizerHidden,
|
|
1115
1174
|
searchParams,
|
|
1116
1175
|
setDisplayedDocument,
|
|
1117
1176
|
structureParams
|
|
@@ -1119,7 +1178,7 @@ const Resizer = styled.div.withConfig({
|
|
|
1119
1178
|
let t0;
|
|
1120
1179
|
$[0] !== documentId || $[1] !== documentType || $[2] !== documentsOnPage || $[3] !== mainDocumentState || $[4] !== onEditReference || $[5] !== onFocusPath || $[6] !== onStructureParams || $[7] !== searchParams || $[8] !== structureParams ? (t0 = /* @__PURE__ */ jsx(ContentEditor, { documentId, documentType, mainDocumentState, onEditReference, onFocusPath, onStructureParams, refs: documentsOnPage, searchParams, structureParams }), $[0] = documentId, $[1] = documentType, $[2] = documentsOnPage, $[3] = mainDocumentState, $[4] = onEditReference, $[5] = onFocusPath, $[6] = onStructureParams, $[7] = searchParams, $[8] = structureParams, $[9] = t0) : t0 = $[9];
|
|
1121
1180
|
let t1;
|
|
1122
|
-
return $[10] !== documentId || $[11] !== getCommentIntent || $[12] !==
|
|
1181
|
+
return $[10] !== documentId || $[11] !== getCommentIntent || $[12] !== hidden || $[13] !== resizerHidden || $[14] !== setDisplayedDocument || $[15] !== t0 ? (t1 = /* @__PURE__ */ jsx(PresentationContentWrapper, { documentId, getCommentIntent, hidden, resizerHidden, setDisplayedDocument, children: t0 }), $[10] = documentId, $[11] = getCommentIntent, $[12] = hidden, $[13] = resizerHidden, $[14] = setDisplayedDocument, $[15] = t0, $[16] = t1) : t1 = $[16], t1;
|
|
1123
1182
|
}, PresentationNavigateProvider = function(props) {
|
|
1124
1183
|
const $ = c(5), {
|
|
1125
1184
|
children,
|
|
@@ -1165,8 +1224,8 @@ function usePresentationNavigator(props) {
|
|
|
1165
1224
|
}
|
|
1166
1225
|
const toggleNavigator = t0;
|
|
1167
1226
|
let t1;
|
|
1168
|
-
$[2] !== navigatorEnabled || $[3] !== unstable_navigator ? (t1 = function() {
|
|
1169
|
-
return /* @__PURE__ */ jsx(Fragment, { children: navigatorEnabled && /* @__PURE__ */ jsx(Navigator, { ...unstable_navigator }) });
|
|
1227
|
+
$[2] !== navigatorEnabled || $[3] !== unstable_navigator ? (t1 = function(componentProps) {
|
|
1228
|
+
return /* @__PURE__ */ jsx(Fragment, { children: navigatorEnabled && /* @__PURE__ */ jsx(Navigator, { ...unstable_navigator, ...componentProps }) });
|
|
1170
1229
|
}, $[2] = navigatorEnabled, $[3] = unstable_navigator, $[4] = t1) : t1 = $[4];
|
|
1171
1230
|
const Component = t1;
|
|
1172
1231
|
let t2;
|
|
@@ -1181,22 +1240,26 @@ function _temp$d(enabled) {
|
|
|
1181
1240
|
return !enabled;
|
|
1182
1241
|
}
|
|
1183
1242
|
function NavigatorComponent(props) {
|
|
1184
|
-
const $ = c(
|
|
1243
|
+
const $ = c(14), {
|
|
1185
1244
|
minWidth,
|
|
1186
1245
|
maxWidth,
|
|
1187
|
-
component: NavigatorComponent2
|
|
1246
|
+
component: NavigatorComponent2,
|
|
1247
|
+
hidden,
|
|
1248
|
+
resizerHidden
|
|
1188
1249
|
} = props, navigatorDisabled = minWidth != null && maxWidth != null && minWidth === maxWidth;
|
|
1189
1250
|
let t0;
|
|
1190
|
-
$[0]
|
|
1251
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = getPresentationPanelHtmlId("navigator"), $[0] = t0) : t0 = $[0];
|
|
1191
1252
|
let t1;
|
|
1192
|
-
$[
|
|
1253
|
+
$[1] !== NavigatorComponent2 ? (t1 = /* @__PURE__ */ jsx(NavigatorComponent2, {}), $[1] = NavigatorComponent2, $[2] = t1) : t1 = $[2];
|
|
1193
1254
|
let t2;
|
|
1194
|
-
$[6] !==
|
|
1255
|
+
$[3] !== hidden || $[4] !== maxWidth || $[5] !== minWidth || $[6] !== t1 ? (t2 = /* @__PURE__ */ jsx(Panel, { id: "navigator", htmlId: t0, minWidth, maxWidth, order: 1, hidden, children: t1 }), $[3] = hidden, $[4] = maxWidth, $[5] = minWidth, $[6] = t1, $[7] = t2) : t2 = $[7];
|
|
1195
1256
|
let t3;
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1257
|
+
$[8] !== navigatorDisabled || $[9] !== resizerHidden ? (t3 = /* @__PURE__ */ jsx(PanelResizer, { order: 2, disabled: navigatorDisabled, hidden: resizerHidden }), $[8] = navigatorDisabled, $[9] = resizerHidden, $[10] = t3) : t3 = $[10];
|
|
1258
|
+
let t4;
|
|
1259
|
+
return $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1260
|
+
t2,
|
|
1261
|
+
t3
|
|
1262
|
+
] }), $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13], t4;
|
|
1200
1263
|
}
|
|
1201
1264
|
const Navigator = memo(NavigatorComponent), PresentationParamsProvider = function(props) {
|
|
1202
1265
|
const $ = c(3), {
|
|
@@ -2597,8 +2660,11 @@ const LiveQueries = lazy(() => import("./LiveQueries.js")), PostMessageDocuments
|
|
|
2597
2660
|
displayName: "Container",
|
|
2598
2661
|
componentId: "sc-1f7om43-0"
|
|
2599
2662
|
})`overflow-x:auto;`;
|
|
2663
|
+
function resolveActiveTab(activeTab, navigatorEnabled) {
|
|
2664
|
+
return activeTab === "navigator" && navigatorEnabled ? "navigator" : activeTab === "navigator" ? "preview" : activeTab;
|
|
2665
|
+
}
|
|
2600
2666
|
function PresentationTool(props) {
|
|
2601
|
-
const $ = c(
|
|
2667
|
+
const $ = c(214), {
|
|
2602
2668
|
canToggleSharePreviewAccess,
|
|
2603
2669
|
canUseSharedPreviewAccess,
|
|
2604
2670
|
tool,
|
|
@@ -2861,9 +2927,12 @@ function PresentationTool(props) {
|
|
|
2861
2927
|
const [t27, PresentationNavigator] = usePresentationNavigator(t26), {
|
|
2862
2928
|
navigatorEnabled,
|
|
2863
2929
|
toggleNavigator
|
|
2864
|
-
} = t27;
|
|
2930
|
+
} = t27, isNarrow = useMediaIndex() <= NARROW_MEDIA_INDEX, [activeTab, setActiveTab] = useState("preview");
|
|
2865
2931
|
let t28;
|
|
2866
|
-
$[83] !==
|
|
2932
|
+
$[83] !== activeTab || $[84] !== navigatorEnabled ? (t28 = resolveActiveTab(activeTab, navigatorEnabled), $[83] = activeTab, $[84] = navigatorEnabled, $[85] = t28) : t28 = $[85];
|
|
2933
|
+
const resolvedTab = t28;
|
|
2934
|
+
let t29;
|
|
2935
|
+
$[86] !== loadersConnection || $[87] !== presentationRef || $[88] !== previewKitConnection || $[89] !== visualEditingComlink ? (t29 = (fallback) => {
|
|
2867
2936
|
if (presentationRef.send({
|
|
2868
2937
|
type: "iframe refresh"
|
|
2869
2938
|
}), visualEditingComlink) {
|
|
@@ -2874,15 +2943,15 @@ function PresentationTool(props) {
|
|
|
2874
2943
|
return;
|
|
2875
2944
|
}
|
|
2876
2945
|
fallback();
|
|
2877
|
-
}, $[
|
|
2878
|
-
const handleRefresh =
|
|
2879
|
-
let
|
|
2880
|
-
$[
|
|
2946
|
+
}, $[86] = loadersConnection, $[87] = presentationRef, $[88] = previewKitConnection, $[89] = visualEditingComlink, $[90] = t29) : t29 = $[90];
|
|
2947
|
+
const handleRefresh = t29, workspace = useWorkspace();
|
|
2948
|
+
let t30;
|
|
2949
|
+
$[91] !== params.preview || $[92] !== workspace.name ? (t30 = (t312) => {
|
|
2881
2950
|
const {
|
|
2882
2951
|
id,
|
|
2883
2952
|
type,
|
|
2884
2953
|
path
|
|
2885
|
-
} =
|
|
2954
|
+
} = t312;
|
|
2886
2955
|
if (frameStateRef.current.url)
|
|
2887
2956
|
return {
|
|
2888
2957
|
title: frameStateRef.current.title || frameStateRef.current.url,
|
|
@@ -2897,75 +2966,90 @@ function PresentationTool(props) {
|
|
|
2897
2966
|
preview: params.preview
|
|
2898
2967
|
}
|
|
2899
2968
|
};
|
|
2900
|
-
}, $[
|
|
2901
|
-
const getCommentIntent =
|
|
2902
|
-
let
|
|
2903
|
-
$[
|
|
2969
|
+
}, $[91] = params.preview, $[92] = workspace.name, $[93] = t30) : t30 = $[93];
|
|
2970
|
+
const getCommentIntent = t30;
|
|
2971
|
+
let t31;
|
|
2972
|
+
$[94] !== navigate ? (t31 = (next) => {
|
|
2904
2973
|
navigate({
|
|
2905
2974
|
params: {
|
|
2906
2975
|
viewport: next === "desktop" ? void 0 : "mobile"
|
|
2907
2976
|
},
|
|
2908
2977
|
replace: !0
|
|
2909
2978
|
});
|
|
2910
|
-
}, $[
|
|
2911
|
-
const setViewport =
|
|
2912
|
-
let
|
|
2913
|
-
$[
|
|
2914
|
-
const t32 = navigatorEnabled ? 50 : 75;
|
|
2979
|
+
}, $[94] = navigate, $[95] = t31) : t31 = $[95];
|
|
2980
|
+
const setViewport = t31;
|
|
2981
|
+
let t32;
|
|
2982
|
+
$[96] !== isNarrow || $[97] !== navigatorEnabled || $[98] !== resolvedTab ? (t32 = isNarrow && /* @__PURE__ */ jsx(PresentationNarrowTabBar, { activeTab: resolvedTab, navigatorEnabled, onTabChange: setActiveTab }), $[96] = isNarrow, $[97] = navigatorEnabled, $[98] = resolvedTab, $[99] = t32) : t32 = $[99];
|
|
2915
2983
|
let t33;
|
|
2916
|
-
$[
|
|
2917
|
-
|
|
2918
|
-
|
|
2984
|
+
$[100] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t33 = {
|
|
2985
|
+
minHeight: 0
|
|
2986
|
+
}, $[100] = t33) : t33 = $[100];
|
|
2987
|
+
const t34 = isNarrow && resolvedTab !== "navigator";
|
|
2919
2988
|
let t35;
|
|
2920
|
-
$[
|
|
2989
|
+
$[101] !== PresentationNavigator || $[102] !== isNarrow || $[103] !== t34 ? (t35 = /* @__PURE__ */ jsx(PresentationNavigator, { hidden: t34, resizerHidden: isNarrow }), $[101] = PresentationNavigator, $[102] = isNarrow, $[103] = t34, $[104] = t35) : t35 = $[104];
|
|
2921
2990
|
let t36;
|
|
2922
|
-
$[
|
|
2923
|
-
|
|
2924
|
-
$[135] !== t31 || $[136] !== t35 || $[137] !== t36 ? (t37 = /* @__PURE__ */ jsx(Container, { "data-testid": "presentation-root", height: "fill", children: /* @__PURE__ */ jsxs(Panels, { children: [
|
|
2925
|
-
t31,
|
|
2926
|
-
t35,
|
|
2927
|
-
t36
|
|
2928
|
-
] }) }), $[135] = t31, $[136] = t35, $[137] = t36, $[138] = t37) : t37 = $[138];
|
|
2929
|
-
let t38;
|
|
2930
|
-
$[139] !== t37 || $[140] !== visualEditingComlink ? (t38 = /* @__PURE__ */ jsx(SharedStateProvider, { comlink: visualEditingComlink, children: t37 }), $[139] = t37, $[140] = visualEditingComlink, $[141] = t38) : t38 = $[141];
|
|
2991
|
+
$[105] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t36 = getPresentationPanelHtmlId("preview"), $[105] = t36) : t36 = $[105];
|
|
2992
|
+
const t37 = navigatorEnabled ? 50 : 75, t38 = isNarrow && resolvedTab !== "preview";
|
|
2931
2993
|
let t39;
|
|
2932
|
-
$[
|
|
2994
|
+
$[106] !== canSharePreviewAccess || $[107] !== canToggleSharePreviewAccess || $[108] !== canUseSharedPreviewAccess || $[109] !== handleOpenPopup || $[110] !== handlePreviewPath || $[111] !== handleRefresh || $[112] !== handlesPerspectiveChange || $[113] !== initialPreviewUrl || $[114] !== loadersConnection || $[115] !== navigatorEnabled || $[116] !== overlaysConnection || $[117] !== params.preview || $[118] !== perspective || $[119] !== presentationRef || $[120] !== previewUrlRef || $[121] !== setViewport || $[122] !== targetOrigin || $[123] !== toggleNavigator || $[124] !== toggleOverlay || $[125] !== unstable_header || $[126] !== vercelProtectionBypass || $[127] !== viewport ? (t39 = /* @__PURE__ */ jsx(Preview, { canSharePreviewAccess, canToggleSharePreviewAccess, canUseSharedPreviewAccess, header: unstable_header, initialUrl: initialPreviewUrl, loadersConnection, navigatorEnabled, onPathChange: handlePreviewPath, onRefresh: handleRefresh, openPopup: handleOpenPopup, overlaysConnection, previewUrl: params.preview, perspective, ref: iframeRef, setViewport, targetOrigin, toggleNavigator, toggleOverlay, viewport, vercelProtectionBypass, presentationRef, previewUrlRef, handlesPerspectiveChange }, targetOrigin), $[106] = canSharePreviewAccess, $[107] = canToggleSharePreviewAccess, $[108] = canUseSharedPreviewAccess, $[109] = handleOpenPopup, $[110] = handlePreviewPath, $[111] = handleRefresh, $[112] = handlesPerspectiveChange, $[113] = initialPreviewUrl, $[114] = loadersConnection, $[115] = navigatorEnabled, $[116] = overlaysConnection, $[117] = params.preview, $[118] = perspective, $[119] = presentationRef, $[120] = previewUrlRef, $[121] = setViewport, $[122] = targetOrigin, $[123] = toggleNavigator, $[124] = toggleOverlay, $[125] = unstable_header, $[126] = vercelProtectionBypass, $[127] = viewport, $[128] = t39) : t39 = $[128];
|
|
2933
2995
|
let t40;
|
|
2934
|
-
$[
|
|
2996
|
+
$[129] !== boundaryElement || $[130] !== t39 ? (t40 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, height: "fill", ref: setBoundaryElement, children: /* @__PURE__ */ jsx(BoundaryElementProvider, { element: boundaryElement, children: t39 }) }), $[129] = boundaryElement, $[130] = t39, $[131] = t40) : t40 = $[131];
|
|
2935
2997
|
let t41;
|
|
2936
|
-
$[
|
|
2937
|
-
|
|
2938
|
-
$[156] !== controller || $[157] !== displayedDocument || $[158] !== perspective || $[159] !== setDocumentsOnPage || $[160] !== setLoadersConnection ? (t42 = controller && /* @__PURE__ */ jsx(LiveQueries, { controller, perspective, liveDocument: displayedDocument, onDocumentsOnPage: setDocumentsOnPage, onLoadersConnection: setLoadersConnection }), $[156] = controller, $[157] = displayedDocument, $[158] = perspective, $[159] = setDocumentsOnPage, $[160] = setLoadersConnection, $[161] = t42) : t42 = $[161];
|
|
2998
|
+
$[132] !== t37 || $[133] !== t38 || $[134] !== t40 ? (t41 = /* @__PURE__ */ jsx(Panel, { id: "preview", htmlId: t36, minWidth: 325, defaultSize: t37, order: 3, hidden: t38, children: t40 }), $[132] = t37, $[133] = t38, $[134] = t40, $[135] = t41) : t41 = $[135];
|
|
2999
|
+
const t42 = isNarrow && resolvedTab !== "content";
|
|
2939
3000
|
let t43;
|
|
2940
|
-
$[
|
|
3001
|
+
$[136] !== documentsOnPage || $[137] !== getCommentIntent || $[138] !== handleEditReference || $[139] !== handleFocusPath || $[140] !== handleStructureParams || $[141] !== isNarrow || $[142] !== mainDocumentState || $[143] !== params.id || $[144] !== params.type || $[145] !== searchParams || $[146] !== structureParams || $[147] !== t42 ? (t43 = /* @__PURE__ */ jsx(PresentationContent, { documentId: params.id, documentsOnPage, documentType: params.type, getCommentIntent, hidden: t42, mainDocumentState, onEditReference: handleEditReference, onFocusPath: handleFocusPath, onStructureParams: handleStructureParams, resizerHidden: isNarrow, searchParams, setDisplayedDocument, structureParams }), $[136] = documentsOnPage, $[137] = getCommentIntent, $[138] = handleEditReference, $[139] = handleFocusPath, $[140] = handleStructureParams, $[141] = isNarrow, $[142] = mainDocumentState, $[143] = params.id, $[144] = params.type, $[145] = searchParams, $[146] = structureParams, $[147] = t42, $[148] = t43) : t43 = $[148];
|
|
2941
3002
|
let t44;
|
|
2942
|
-
$[
|
|
3003
|
+
$[149] !== t35 || $[150] !== t41 || $[151] !== t43 ? (t44 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, style: t33, children: /* @__PURE__ */ jsxs(Panels, { children: [
|
|
3004
|
+
t35,
|
|
3005
|
+
t41,
|
|
3006
|
+
t43
|
|
3007
|
+
] }) }), $[149] = t35, $[150] = t41, $[151] = t43, $[152] = t44) : t44 = $[152];
|
|
2943
3008
|
let t45;
|
|
2944
|
-
$[
|
|
3009
|
+
$[153] !== t32 || $[154] !== t44 ? (t45 = /* @__PURE__ */ jsxs(Container, { "data-testid": "presentation-root", direction: "column", height: "fill", children: [
|
|
3010
|
+
t32,
|
|
3011
|
+
t44
|
|
3012
|
+
] }), $[153] = t32, $[154] = t44, $[155] = t45) : t45 = $[155];
|
|
2945
3013
|
let t46;
|
|
2946
|
-
$[
|
|
3014
|
+
$[156] !== t45 || $[157] !== visualEditingComlink ? (t46 = /* @__PURE__ */ jsx(SharedStateProvider, { comlink: visualEditingComlink, children: t45 }), $[156] = t45, $[157] = visualEditingComlink, $[158] = t46) : t46 = $[158];
|
|
2947
3015
|
let t47;
|
|
2948
|
-
$[
|
|
3016
|
+
$[159] !== params || $[160] !== t46 ? (t47 = /* @__PURE__ */ jsx(PresentationParamsProvider, { params, children: t46 }), $[159] = params, $[160] = t46, $[161] = t47) : t47 = $[161];
|
|
2949
3017
|
let t48;
|
|
2950
|
-
$[
|
|
3018
|
+
$[162] !== navigate || $[163] !== t47 ? (t48 = /* @__PURE__ */ jsx(PresentationNavigateProvider, { navigate, children: t47 }), $[162] = navigate, $[163] = t47, $[164] = t48) : t48 = $[164];
|
|
2951
3019
|
let t49;
|
|
2952
|
-
$[
|
|
3020
|
+
$[165] !== devMode || $[166] !== name || $[167] !== navigate || $[168] !== params || $[169] !== searchParams || $[170] !== structureParams || $[171] !== t48 ? (t49 = /* @__PURE__ */ jsx(PresentationProvider, { devMode, name, navigate, params, searchParams, structureParams, children: t48 }), $[165] = devMode, $[166] = name, $[167] = navigate, $[168] = params, $[169] = searchParams, $[170] = structureParams, $[171] = t48, $[172] = t49) : t49 = $[172];
|
|
2953
3021
|
let t50;
|
|
2954
|
-
$[
|
|
2955
|
-
t42,
|
|
2956
|
-
t43,
|
|
2957
|
-
t44,
|
|
2958
|
-
t45,
|
|
2959
|
-
t46,
|
|
2960
|
-
t47,
|
|
2961
|
-
t48,
|
|
2962
|
-
t49
|
|
2963
|
-
] }), $[185] = t42, $[186] = t43, $[187] = t44, $[188] = t45, $[189] = t46, $[190] = t47, $[191] = t48, $[192] = t49, $[193] = t50) : t50 = $[193];
|
|
3022
|
+
$[173] !== controller || $[174] !== displayedDocument || $[175] !== perspective || $[176] !== setDocumentsOnPage || $[177] !== setLoadersConnection ? (t50 = controller && /* @__PURE__ */ jsx(LiveQueries, { controller, perspective, liveDocument: displayedDocument, onDocumentsOnPage: setDocumentsOnPage, onLoadersConnection: setLoadersConnection }), $[173] = controller, $[174] = displayedDocument, $[175] = perspective, $[176] = setDocumentsOnPage, $[177] = setLoadersConnection, $[178] = t50) : t50 = $[178];
|
|
2964
3023
|
let t51;
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
3024
|
+
$[179] !== loadersConnection || $[180] !== params.id || $[181] !== params.type || $[182] !== previewKitConnection || $[183] !== visualEditingComlink ? (t51 = visualEditingComlink && params.id && params.type && /* @__PURE__ */ jsx(PostMessageRefreshMutations, { comlink: visualEditingComlink, id: params.id, type: params.type, loadersConnection, previewKitConnection }), $[179] = loadersConnection, $[180] = params.id, $[181] = params.type, $[182] = previewKitConnection, $[183] = visualEditingComlink, $[184] = t51) : t51 = $[184];
|
|
3025
|
+
let t52;
|
|
3026
|
+
$[185] !== perspective || $[186] !== visualEditingComlink ? (t52 = visualEditingComlink && /* @__PURE__ */ jsx(PostMessageSchema, { comlink: visualEditingComlink, perspective }), $[185] = perspective, $[186] = visualEditingComlink, $[187] = t52) : t52 = $[187];
|
|
3027
|
+
let t53;
|
|
3028
|
+
$[188] !== documentsOnPage || $[189] !== perspective || $[190] !== visualEditingComlink ? (t53 = visualEditingComlink && documentsOnPage.length > 0 && /* @__PURE__ */ jsx(PostMessagePreviewSnapshots, { comlink: visualEditingComlink, perspective, refs: documentsOnPage }), $[188] = documentsOnPage, $[189] = perspective, $[190] = visualEditingComlink, $[191] = t53) : t53 = $[191];
|
|
3029
|
+
let t54;
|
|
3030
|
+
$[192] !== perspective || $[193] !== visualEditingComlink ? (t54 = visualEditingComlink && /* @__PURE__ */ jsx(PostMessageDocuments, { comlink: visualEditingComlink, perspective }), $[192] = perspective, $[193] = visualEditingComlink, $[194] = t54) : t54 = $[194];
|
|
3031
|
+
let t55;
|
|
3032
|
+
$[195] !== visualEditingComlink ? (t55 = visualEditingComlink && /* @__PURE__ */ jsx(PostMessageFeatures, { comlink: visualEditingComlink }), $[195] = visualEditingComlink, $[196] = t55) : t55 = $[196];
|
|
3033
|
+
let t56;
|
|
3034
|
+
$[197] !== perspective || $[198] !== visualEditingComlink ? (t56 = visualEditingComlink && /* @__PURE__ */ jsx(PostMessagePerspective, { comlink: visualEditingComlink, perspective, setHandlesPerspectiveChange }), $[197] = perspective, $[198] = visualEditingComlink, $[199] = t56) : t56 = $[199];
|
|
3035
|
+
let t57;
|
|
3036
|
+
$[200] !== visualEditingComlink ? (t57 = visualEditingComlink && /* @__PURE__ */ jsx(PostMessageTelemetry, { comlink: visualEditingComlink }), $[200] = visualEditingComlink, $[201] = t57) : t57 = $[201];
|
|
3037
|
+
let t58;
|
|
3038
|
+
$[202] !== t50 || $[203] !== t51 || $[204] !== t52 || $[205] !== t53 || $[206] !== t54 || $[207] !== t55 || $[208] !== t56 || $[209] !== t57 ? (t58 = /* @__PURE__ */ jsxs(Suspense, { children: [
|
|
3039
|
+
t50,
|
|
3040
|
+
t51,
|
|
3041
|
+
t52,
|
|
3042
|
+
t53,
|
|
3043
|
+
t54,
|
|
3044
|
+
t55,
|
|
3045
|
+
t56,
|
|
3046
|
+
t57
|
|
3047
|
+
] }), $[202] = t50, $[203] = t51, $[204] = t52, $[205] = t53, $[206] = t54, $[207] = t55, $[208] = t56, $[209] = t57, $[210] = t58) : t58 = $[210];
|
|
3048
|
+
let t59;
|
|
3049
|
+
return $[211] !== t49 || $[212] !== t58 ? (t59 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3050
|
+
t49,
|
|
3051
|
+
t58
|
|
3052
|
+
] }), $[211] = t49, $[212] = t58, $[213] = t59) : t59 = $[213], t59;
|
|
2969
3053
|
}
|
|
2970
3054
|
function _temp2$2(state_0) {
|
|
2971
3055
|
return state_0.matches("loading");
|