sanity 5.7.0-next.7 → 5.7.0-next.9
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/package.js +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +0 -2
- package/lib/_singletons.js.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +363 -416
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { WorkspacesContext, LocaleContext, MediaLibraryIdsContext, PerspectiveCo
|
|
|
8
8
|
import { SchedulesContext as SchedulesContext2 } from "sanity/_singletons";
|
|
9
9
|
import { Badge, Grid, rem, Box, Stack, Card, Spinner, Text as Text$1, Layer, Flex, Dialog, useTheme, Button as Button$1, Skeleton, Heading, Avatar, AvatarStack, Inline, Breadcrumbs, useClickOutsideEvent, Code, MenuDivider, Menu, useElementRect, Autocomplete, useToast, useGlobalKeyDown, useElementSize, AvatarCounter, TextInput as TextInput$1, Container as Container$2, Checkbox as Checkbox$1, Switch as Switch$1, Select, LayerProvider, ElementQuery, TabList, rgba, useLayer, MenuItem as MenuItem$1, useBoundaryElement, BoundaryElementProvider, usePortal, PortalProvider, Portal, _responsive, useRootTheme, useArrayProp, TextArea, TextSkeleton, useMediaIndex, isHTMLElement, Radio, TabPanel, studioTheme, Label, ThemeColorProvider, DialogProvider, focusLastDescendant, focusFirstDescendant, VirtualList as VirtualList$1, usePrefersDark, ThemeProvider, ToastProvider } from "@sanity/ui";
|
|
10
10
|
import { useVirtualizer, defaultRangeExtractor, elementScroll } from "@tanstack/react-virtual";
|
|
11
|
-
import { throttle, isEqual as isEqual$1, memoize as memoize$1, partition, groupBy, omit, isPlainObject as isPlainObject$1, get, flatten as flatten$1, uniqBy, sample, uniq, orderBy, xor, debounce, keyBy, toLower, compact, words, intersection, union, flow, trim, sortBy, isFinite, pickBy, findIndex as findIndex$1, clone, isObject, isString as isString$1, noop as noop$
|
|
11
|
+
import { throttle, isEqual as isEqual$1, memoize as memoize$1, partition, groupBy, omit, isPlainObject as isPlainObject$1, get, flatten as flatten$1, uniqBy, sample, uniq, orderBy, xor, debounce, keyBy, toLower, compact, words, intersection, union, flow, trim, sortBy, isFinite, pickBy, findIndex as findIndex$1, clone, isObject, isString as isString$1, noop as noop$6, capitalize, deburr, startCase, last as last$1, difference, upperFirst, set as set$1, find, uniqueId, castArray, pick, sortedIndex, values, identity as identity$2, isEmpty as isEmpty$1, range, sum as sum$1, max, escapeRegExp as escapeRegExp$1 } from "lodash-es";
|
|
12
12
|
import { styled, css, keyframes, useTheme as useTheme$1, createGlobalStyle } from "styled-components";
|
|
13
13
|
import { EllipsisHorizontalIcon, ErrorOutlineIcon, CircleIcon, CalendarIcon, UnpublishIcon, PublishIcon, EditIcon, CloseIcon, TrashIcon, AddCircleIcon, TimelineIcon, ChevronRightIcon, DocumentIcon, ImageIcon, ChevronDownIcon, ArrowRightIcon, ArrowDownIcon, RevertIcon, WarningOutlineIcon, InfoOutlineIcon, CheckmarkIcon, AddIcon, HelpCircleIcon, AccessDeniedIcon, ToggleArrowRightIcon, SyncIcon, LaunchIcon, BulbOutlineIcon, UnknownIcon, UploadIcon, DragHandleIcon, SearchIcon, StackCompactIcon, PanelLeftIcon, InsertAboveIcon, InsertBelowIcon, CopyIcon, AddDocumentIcon, ChevronLeftIcon, EarthGlobeIcon, EarthAmericasIcon, LinkIcon, UlistIcon, OlistIcon, CodeIcon, UnderlineIcon, StrikethroughIcon, ItalicIcon, BoldIcon, BlockElementIcon, InlineElementIcon, CollapseIcon, ExpandIcon, ResetIcon, Icon, ChevronUpIcon, DownloadIcon, DocumentsIcon, ReadOnlyIcon, BinaryDocumentIcon, LockIcon, CropIcon, EyeOpenIcon, DotIcon, CheckmarkCircleIcon, PinFilledIcon, PinIcon, RestoreIcon, ClockIcon, CloseCircleIcon, UnarchiveIcon, ArchiveIcon, ArrowUpIcon, ControlsIcon, SpinnerIcon, ArrowLeftIcon, SortIcon, ComposeSparklesIcon, UnlockIcon, ClipboardIcon, StringIcon, NumberIcon, BlockContentIcon, UndoIcon, UnlinkIcon, LinkRemovedIcon, AddCommentIcon, CommentIcon, SelectIcon, TaskIcon, UserIcon, DesktopIcon, MoonIcon, SunIcon, EyeClosedIcon, DoubleChevronRightIcon, AddUserIcon, CogIcon, BoltIcon, LeaveIcon, UsersIcon, GithubIcon, RefreshIcon, MenuIcon } from "@sanity/icons";
|
|
14
14
|
import { Button, ErrorBoundary, Tooltip, Popover, MenuItem, MenuButton, TooltipDelayGroupProvider, Dialog as Dialog$1, Tab } from "./_chunks-es/TooltipDelayGroupProvider.js";
|
|
@@ -3189,7 +3189,7 @@ function useGetI18nText(input) {
|
|
|
3189
3189
|
let t0;
|
|
3190
3190
|
if ($[0] !== input) {
|
|
3191
3191
|
const items = Array.isArray(input) ? input : [input];
|
|
3192
|
-
t0 = JSON.stringify(items.flatMap(_temp2$
|
|
3192
|
+
t0 = JSON.stringify(items.flatMap(_temp2$1G).filter(isNonNullable$2).sort()), $[0] = input, $[1] = t0;
|
|
3193
3193
|
} else
|
|
3194
3194
|
t0 = $[1];
|
|
3195
3195
|
const stableNamespaces = t0;
|
|
@@ -3223,10 +3223,10 @@ function useGetI18nText(input) {
|
|
|
3223
3223
|
}) : node;
|
|
3224
3224
|
}, $[4] = t, $[5] = t2) : t2 = $[5], t2;
|
|
3225
3225
|
}
|
|
3226
|
-
function _temp2$
|
|
3227
|
-
return item?.i18n ? Object.values(item.i18n).map(_temp$
|
|
3226
|
+
function _temp2$1G(item) {
|
|
3227
|
+
return item?.i18n ? Object.values(item.i18n).map(_temp$48) : [];
|
|
3228
3228
|
}
|
|
3229
|
-
function _temp$
|
|
3229
|
+
function _temp$48(t0) {
|
|
3230
3230
|
const {
|
|
3231
3231
|
ns
|
|
3232
3232
|
} = t0;
|
|
@@ -3242,7 +3242,7 @@ function useI18nText(node) {
|
|
|
3242
3242
|
break bb0;
|
|
3243
3243
|
}
|
|
3244
3244
|
let t12;
|
|
3245
|
-
$[1] !== node.i18n ? (t12 = Array.from(new Set(Object.values(node.i18n).map(_temp$
|
|
3245
|
+
$[1] !== node.i18n ? (t12 = Array.from(new Set(Object.values(node.i18n).map(_temp$47))).sort(), $[1] = node.i18n, $[2] = t12) : t12 = $[2], t0 = t12;
|
|
3246
3246
|
}
|
|
3247
3247
|
const namespaces = t0, {
|
|
3248
3248
|
t
|
|
@@ -3280,7 +3280,7 @@ function useI18nText(node) {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
return t1;
|
|
3282
3282
|
}
|
|
3283
|
-
function _temp$
|
|
3283
|
+
function _temp$47(t0) {
|
|
3284
3284
|
const {
|
|
3285
3285
|
ns
|
|
3286
3286
|
} = t0;
|
|
@@ -3563,7 +3563,7 @@ function useEnsureMediaLibrary(props2) {
|
|
|
3563
3563
|
bb0: {
|
|
3564
3564
|
const handleDefault = defaultIfEmpty({
|
|
3565
3565
|
status: "inactive"
|
|
3566
|
-
}), handleError = catchError$1(_temp$
|
|
3566
|
+
}), handleError = catchError$1(_temp$46);
|
|
3567
3567
|
if (props2.from === "library") {
|
|
3568
3568
|
let t23;
|
|
3569
3569
|
$[6] !== props2.libraryId ? (t23 = (organizationId) => ({
|
|
@@ -3594,7 +3594,7 @@ function useEnsureMediaLibrary(props2) {
|
|
|
3594
3594
|
status: "loading"
|
|
3595
3595
|
}, $[10] = t2) : t2 = $[10], useObservable(observable, t2);
|
|
3596
3596
|
}
|
|
3597
|
-
function _temp$
|
|
3597
|
+
function _temp$46(error) {
|
|
3598
3598
|
if (error instanceof ProvisionError)
|
|
3599
3599
|
return of({
|
|
3600
3600
|
status: "error",
|
|
@@ -7966,7 +7966,7 @@ function useDocumentValuePermissions(t0) {
|
|
|
7966
7966
|
document: document2,
|
|
7967
7967
|
permission
|
|
7968
7968
|
});
|
|
7969
|
-
return subscriptionRef.current = permissions$.pipe(distinctUntilChanged$1(_temp$
|
|
7969
|
+
return subscriptionRef.current = permissions$.pipe(distinctUntilChanged$1(_temp$45)).subscribe({
|
|
7970
7970
|
next: (value) => dispatch({
|
|
7971
7971
|
type: "value",
|
|
7972
7972
|
value
|
|
@@ -7980,7 +7980,7 @@ function useDocumentValuePermissions(t0) {
|
|
|
7980
7980
|
};
|
|
7981
7981
|
}, t2 = [grantsStore, document2, permission], $[0] = document2, $[1] = grantsStore, $[2] = permission, $[3] = t1, $[4] = t2) : (t1 = $[3], t2 = $[4]), useEffect(t1, t2), state;
|
|
7982
7982
|
}
|
|
7983
|
-
function _temp$
|
|
7983
|
+
function _temp$45(prev, next) {
|
|
7984
7984
|
return isEqual$1(prev, next);
|
|
7985
7985
|
}
|
|
7986
7986
|
function refCountDelay(duration, scheduler = asapScheduler) {
|
|
@@ -9204,7 +9204,7 @@ function useTimelineStore(t0) {
|
|
|
9204
9204
|
}, $[32] = t10, $[33] = t11, $[34] = t13, $[35] = t9, $[36] = t14) : t14 = $[36], t14;
|
|
9205
9205
|
}
|
|
9206
9206
|
function _temp3$I(innerController_0) {
|
|
9207
|
-
const chunks = innerController_0.timeline.mapChunks(_temp$
|
|
9207
|
+
const chunks = innerController_0.timeline.mapChunks(_temp$44), lastNonDeletedChunk = chunks.filter(_temp2$1F), hasMoreChunks = !innerController_0.timeline.reachedEarliestEntry;
|
|
9208
9208
|
hasMoreChunks && chunks.length > 16 && innerController_0.setLoadMore(!1);
|
|
9209
9209
|
const timelineReady = !["invalid", "loading"].includes(innerController_0.selectionState);
|
|
9210
9210
|
return {
|
|
@@ -9224,10 +9224,10 @@ function _temp3$I(innerController_0) {
|
|
|
9224
9224
|
timelineReady
|
|
9225
9225
|
};
|
|
9226
9226
|
}
|
|
9227
|
-
function _temp2$
|
|
9227
|
+
function _temp2$1F(chunk_1) {
|
|
9228
9228
|
return !["delete", "initial"].includes(chunk_1.type);
|
|
9229
9229
|
}
|
|
9230
|
-
function _temp$
|
|
9230
|
+
function _temp$44(c2) {
|
|
9231
9231
|
return c2;
|
|
9232
9232
|
}
|
|
9233
9233
|
const handleIncomingMessage = (event) => {
|
|
@@ -9540,11 +9540,11 @@ function createMultiKeyWeakMap() {
|
|
|
9540
9540
|
function ResourceCacheProvider(t0) {
|
|
9541
9541
|
const $ = c(3), {
|
|
9542
9542
|
children
|
|
9543
|
-
} = t0, [resourceCache] = useState(_temp$
|
|
9543
|
+
} = t0, [resourceCache] = useState(_temp$43);
|
|
9544
9544
|
let t1;
|
|
9545
9545
|
return $[0] !== children || $[1] !== resourceCache ? (t1 = /* @__PURE__ */ jsx(ResourceCacheContext.Provider, { value: resourceCache, children }), $[0] = children, $[1] = resourceCache, $[2] = t1) : t1 = $[2], t1;
|
|
9546
9546
|
}
|
|
9547
|
-
function _temp$
|
|
9547
|
+
function _temp$43() {
|
|
9548
9548
|
const namespaces = /* @__PURE__ */ new Map(), nullReplacer = {}, emptyDependenciesReplacer = [nullReplacer], removeNullDependencies = (dependencies) => dependencies.length ? dependencies.map((dep) => dep === null ? nullReplacer : dep) : emptyDependenciesReplacer;
|
|
9549
9549
|
return {
|
|
9550
9550
|
get: (t0) => {
|
|
@@ -9825,25 +9825,25 @@ function useComlinkStore() {
|
|
|
9825
9825
|
}
|
|
9826
9826
|
const initial$1 = [], fallback$1 = of(initial$1);
|
|
9827
9827
|
function useDocumentPresence(documentId) {
|
|
9828
|
-
const $ = c(6), [mounted, mount] = useReducer(_temp$
|
|
9828
|
+
const $ = c(6), [mounted, mount] = useReducer(_temp$42, !1);
|
|
9829
9829
|
let t0, t1;
|
|
9830
9830
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => startTransition(mount), t1 = [], $[0] = t0, $[1] = t1) : (t0 = $[0], t1 = $[1]), useEffect(t0, t1);
|
|
9831
9831
|
const presenceStore = usePresenceStore();
|
|
9832
9832
|
let t2;
|
|
9833
9833
|
return $[2] !== documentId || $[3] !== mounted || $[4] !== presenceStore ? (t2 = mounted ? presenceStore.documentPresence(documentId) : fallback$1, $[2] = documentId, $[3] = mounted, $[4] = presenceStore, $[5] = t2) : t2 = $[5], useObservable(t2, initial$1);
|
|
9834
9834
|
}
|
|
9835
|
-
function _temp$
|
|
9835
|
+
function _temp$42() {
|
|
9836
9836
|
return !0;
|
|
9837
9837
|
}
|
|
9838
9838
|
const initial = [], fallback = of(initial);
|
|
9839
9839
|
function useGlobalPresence() {
|
|
9840
|
-
const $ = c(2), [mounted, mount] = useReducer(_temp$
|
|
9840
|
+
const $ = c(2), [mounted, mount] = useReducer(_temp$41, !1);
|
|
9841
9841
|
let t0, t1;
|
|
9842
9842
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => startTransition(mount), t1 = [], $[0] = t0, $[1] = t1) : (t0 = $[0], t1 = $[1]), useEffect(t0, t1);
|
|
9843
9843
|
const presenceStore = usePresenceStore();
|
|
9844
9844
|
return useObservable(mounted ? presenceStore.globalPresence$ : fallback, initial);
|
|
9845
9845
|
}
|
|
9846
|
-
function _temp$
|
|
9846
|
+
function _temp$41() {
|
|
9847
9847
|
return !0;
|
|
9848
9848
|
}
|
|
9849
9849
|
function EventsProvider(t0) {
|
|
@@ -11024,7 +11024,7 @@ function useRelativeTime(time, t0) {
|
|
|
11024
11024
|
const $ = c(5);
|
|
11025
11025
|
let t1;
|
|
11026
11026
|
$[0] !== t0 ? (t1 = t0 === void 0 ? {} : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
11027
|
-
const options = t1, [now, updateNow] = useReducer(_temp$
|
|
11027
|
+
const options = t1, [now, updateNow] = useReducer(_temp$40, null, _temp2$1E), resolved = useFormatRelativeTime(time, options.relativeTo || now, options);
|
|
11028
11028
|
let t2, t3;
|
|
11029
11029
|
return $[2] !== resolved.refreshInterval ? (t2 = () => {
|
|
11030
11030
|
let timerId;
|
|
@@ -11038,10 +11038,10 @@ function useRelativeTime(time, t0) {
|
|
|
11038
11038
|
};
|
|
11039
11039
|
}, t3 = [resolved.refreshInterval], $[2] = resolved.refreshInterval, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), useEffect(t2, t3), resolved.timestamp;
|
|
11040
11040
|
}
|
|
11041
|
-
function _temp2$
|
|
11041
|
+
function _temp2$1E() {
|
|
11042
11042
|
return Date.now();
|
|
11043
11043
|
}
|
|
11044
|
-
function _temp$
|
|
11044
|
+
function _temp$40() {
|
|
11045
11045
|
return Date.now();
|
|
11046
11046
|
}
|
|
11047
11047
|
function useFormatRelativeTime(date, now, t0) {
|
|
@@ -11377,7 +11377,7 @@ const IconBox$1 = styled(Flex)((props2) => {
|
|
|
11377
11377
|
let t2;
|
|
11378
11378
|
$[2] !== t1 ? (t2 = /* @__PURE__ */ jsx(Box, { padding: 1, paddingBottom: 2, children: /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "medium", children: t1 }) }), $[2] = t1, $[3] = t2) : t2 = $[3];
|
|
11379
11379
|
let t3;
|
|
11380
|
-
$[4] !== collaborators ? (t3 = collaborators.map(_temp$
|
|
11380
|
+
$[4] !== collaborators ? (t3 = collaborators.map(_temp$3$), $[4] = collaborators, $[5] = t3) : t3 = $[5];
|
|
11381
11381
|
let t4;
|
|
11382
11382
|
return $[6] !== t2 || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Stack, { paddingBottom: 1, children: [
|
|
11383
11383
|
t2,
|
|
@@ -11473,7 +11473,7 @@ function Event$1(t0) {
|
|
|
11473
11473
|
t23
|
|
11474
11474
|
] }), $[52] = t22, $[53] = t23, $[54] = t24) : t24 = $[54], t24;
|
|
11475
11475
|
}
|
|
11476
|
-
function _temp$
|
|
11476
|
+
function _temp$3$(userId) {
|
|
11477
11477
|
return /* @__PURE__ */ jsx(UserLine, { userId }, userId);
|
|
11478
11478
|
}
|
|
11479
11479
|
function DiffTooltip(props2) {
|
|
@@ -11522,7 +11522,7 @@ function DiffTooltipWithAnnotation(props2) {
|
|
|
11522
11522
|
let t2;
|
|
11523
11523
|
$[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, weight: "medium", children: t1 }), $[9] = t1, $[10] = t2) : t2 = $[10];
|
|
11524
11524
|
let t3;
|
|
11525
|
-
$[11] !== annotations ? (t3 = annotations.map(_temp$
|
|
11525
|
+
$[11] !== annotations ? (t3 = annotations.map(_temp$3_), $[11] = annotations, $[12] = t3) : t3 = $[12];
|
|
11526
11526
|
let t4;
|
|
11527
11527
|
$[13] !== t3 ? (t4 = /* @__PURE__ */ jsx(Stack, { space: 2, children: t3 }), $[13] = t3, $[14] = t4) : t4 = $[14];
|
|
11528
11528
|
let t5;
|
|
@@ -11534,7 +11534,7 @@ function DiffTooltipWithAnnotation(props2) {
|
|
|
11534
11534
|
let t6;
|
|
11535
11535
|
return $[18] !== children || $[19] !== content || $[20] !== restProps ? (t6 = /* @__PURE__ */ jsx(LegacyLayerProvider, { zOffset: "paneFooter", children: /* @__PURE__ */ jsx(Tooltip, { content, portal: !0, ...restProps, children }) }), $[18] = children, $[19] = content, $[20] = restProps, $[21] = t6) : t6 = $[21], t6;
|
|
11536
11536
|
}
|
|
11537
|
-
function _temp$
|
|
11537
|
+
function _temp$3_(annotation, idx) {
|
|
11538
11538
|
return /* @__PURE__ */ jsx(AnnotationItem, { annotation }, idx);
|
|
11539
11539
|
}
|
|
11540
11540
|
function AnnotationItem(t0) {
|
|
@@ -12196,7 +12196,7 @@ function isObjectType$1(schemaType) {
|
|
|
12196
12196
|
function isObjectValue(value) {
|
|
12197
12197
|
return value !== null && !Array.isArray(value) && typeof value == "object";
|
|
12198
12198
|
}
|
|
12199
|
-
function noop$
|
|
12199
|
+
function noop$5() {
|
|
12200
12200
|
}
|
|
12201
12201
|
function isFieldChange(change) {
|
|
12202
12202
|
return change.type === "field";
|
|
@@ -12387,12 +12387,12 @@ const SizeDiff = styled.div`
|
|
|
12387
12387
|
$[2] !== fields ? (t3 = Object.entries(fields).filter((t42) => {
|
|
12388
12388
|
const [name, field] = t42;
|
|
12389
12389
|
return field.isChanged && !ignoredFields.includes(name);
|
|
12390
|
-
}).map(_temp$
|
|
12390
|
+
}).map(_temp$3Z), $[2] = fields, $[3] = t3) : t3 = $[3];
|
|
12391
12391
|
const changedFields = t3, didAssetChange = changedFields.includes("asset");
|
|
12392
12392
|
let t4;
|
|
12393
12393
|
if ($[4] !== changedFields || $[5] !== schemaType.fields) {
|
|
12394
12394
|
let t52;
|
|
12395
|
-
$[7] !== changedFields ? (t52 = (field_0) => field_0.name !== "asset" && changedFields.includes(field_0.name), $[7] = changedFields, $[8] = t52) : t52 = $[8], t4 = schemaType.fields.filter(t52).map(_temp2$
|
|
12395
|
+
$[7] !== changedFields ? (t52 = (field_0) => field_0.name !== "asset" && changedFields.includes(field_0.name), $[7] = changedFields, $[8] = t52) : t52 = $[8], t4 = schemaType.fields.filter(t52).map(_temp2$1D), $[4] = changedFields, $[5] = schemaType.fields, $[6] = t4;
|
|
12396
12396
|
} else
|
|
12397
12397
|
t4 = $[6];
|
|
12398
12398
|
const nestedFields = t4, pctDiff = getSizeDiff(prev?.size, next?.size);
|
|
@@ -12446,11 +12446,11 @@ const SizeDiff = styled.div`
|
|
|
12446
12446
|
t15
|
|
12447
12447
|
] }), $[50] = t14, $[51] = t15, $[52] = t16) : t16 = $[52], t16;
|
|
12448
12448
|
};
|
|
12449
|
-
function _temp$
|
|
12449
|
+
function _temp$3Z(t0) {
|
|
12450
12450
|
const [name_0] = t0;
|
|
12451
12451
|
return name_0;
|
|
12452
12452
|
}
|
|
12453
|
-
function _temp2$
|
|
12453
|
+
function _temp2$1D(field_1) {
|
|
12454
12454
|
return field_1.name;
|
|
12455
12455
|
}
|
|
12456
12456
|
function hexToRgba(hex, opacity) {
|
|
@@ -12708,7 +12708,7 @@ const IMAGE_META_FIELDS = ["crop", "hotspot"], BASE_IMAGE_FIELDS = ["asset", "me
|
|
|
12708
12708
|
let t4;
|
|
12709
12709
|
if ($[7] !== changedFields || $[8] !== schemaType.fields) {
|
|
12710
12710
|
let t52;
|
|
12711
|
-
$[10] !== changedFields ? (t52 = (field) => !BASE_IMAGE_FIELDS.includes(field.name) && changedFields.includes(field.name), $[10] = changedFields, $[11] = t52) : t52 = $[11], t4 = schemaType.fields.filter(t52).map(_temp$
|
|
12711
|
+
$[10] !== changedFields ? (t52 = (field) => !BASE_IMAGE_FIELDS.includes(field.name) && changedFields.includes(field.name), $[10] = changedFields, $[11] = t52) : t52 = $[11], t4 = schemaType.fields.filter(t52).map(_temp$3Y), $[7] = changedFields, $[8] = schemaType.fields, $[9] = t4;
|
|
12712
12712
|
} else
|
|
12713
12713
|
t4 = $[9];
|
|
12714
12714
|
const nestedFields = t4;
|
|
@@ -12757,7 +12757,7 @@ function getChangeDescription(action, t) {
|
|
|
12757
12757
|
return "Unknown change";
|
|
12758
12758
|
}
|
|
12759
12759
|
}
|
|
12760
|
-
function _temp$
|
|
12760
|
+
function _temp$3Y(field_0) {
|
|
12761
12761
|
return field_0.name;
|
|
12762
12762
|
}
|
|
12763
12763
|
const NumberWrapper = styled.div`
|
|
@@ -14043,7 +14043,7 @@ function DiffInspectWrapper(props2) {
|
|
|
14043
14043
|
} = props2, $[0] = props2, $[1] = as, $[2] = change, $[3] = children, $[4] = restProps) : (as = $[1], change = $[2], children = $[3], restProps = $[4]);
|
|
14044
14044
|
const isHovering = useRef(!1), [isInspecting, setIsInspecting] = useState(!1);
|
|
14045
14045
|
let t0;
|
|
14046
|
-
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setIsInspecting(_temp$
|
|
14046
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setIsInspecting(_temp$3X), $[5] = t0) : t0 = $[5];
|
|
14047
14047
|
const toggleInspect = t0;
|
|
14048
14048
|
let t1;
|
|
14049
14049
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => isHovering.current = !0, $[6] = t1) : t1 = $[6];
|
|
@@ -14067,7 +14067,7 @@ function DiffInspectWrapper(props2) {
|
|
|
14067
14067
|
let t6;
|
|
14068
14068
|
return $[14] !== as || $[15] !== restProps || $[16] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, { as, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ...restProps, children: t5 }), $[14] = as, $[15] = restProps, $[16] = t5, $[17] = t6) : t6 = $[17], t6;
|
|
14069
14069
|
}
|
|
14070
|
-
function _temp$
|
|
14070
|
+
function _temp$3X(state) {
|
|
14071
14071
|
return !state;
|
|
14072
14072
|
}
|
|
14073
14073
|
const MetaLabel = (t0) => {
|
|
@@ -14471,7 +14471,7 @@ function FieldChange(props2) {
|
|
|
14471
14471
|
}, $[17] = t7) : t7 = $[17];
|
|
14472
14472
|
const handleRevertButtonMouseLeave = t7;
|
|
14473
14473
|
let t8;
|
|
14474
|
-
$[18] !== change.parentSchema ? (t8 = change.parentSchema?.jsonType === "array" && !change.parentSchema.of.some(_temp$
|
|
14474
|
+
$[18] !== change.parentSchema ? (t8 = change.parentSchema?.jsonType === "array" && !change.parentSchema.of.some(_temp$3W), $[18] = change.parentSchema, $[19] = t8) : t8 = $[19];
|
|
14475
14475
|
const isArray2 = t8;
|
|
14476
14476
|
let t9;
|
|
14477
14477
|
$[20] !== change.path || $[21] !== isArray2 ? (t9 = isArray2 ? change.path.slice(0, -1) : change.path, $[20] = change.path, $[21] = isArray2, $[22] = t9) : t9 = $[22];
|
|
@@ -14512,7 +14512,7 @@ function FieldChange(props2) {
|
|
|
14512
14512
|
t21
|
|
14513
14513
|
] }), $[65] = t20, $[66] = t21, $[67] = t22) : t22 = $[67], t22;
|
|
14514
14514
|
}
|
|
14515
|
-
function _temp$
|
|
14515
|
+
function _temp$3W(ofType) {
|
|
14516
14516
|
return ofType.type?.name === "block";
|
|
14517
14517
|
}
|
|
14518
14518
|
const ChangeListWrapper = styled.div`
|
|
@@ -14571,7 +14571,7 @@ function GroupChange(props2) {
|
|
|
14571
14571
|
isComparingCurrent
|
|
14572
14572
|
} = useDocumentChange(), FieldWrapper2 = t0 === void 0 ? Fragment : t0;
|
|
14573
14573
|
let t1;
|
|
14574
|
-
$[5] !== changes ? (t1 = changes.every(_temp$
|
|
14574
|
+
$[5] !== changes ? (t1 = changes.every(_temp$3V), $[5] = changes, $[6] = t1) : t1 = $[6];
|
|
14575
14575
|
const isPortableText2 = t1;
|
|
14576
14576
|
let t2;
|
|
14577
14577
|
$[7] !== diffPath || $[8] !== groupPath ? (t2 = pathsAreEqual(diffPath, groupPath), $[7] = diffPath, $[8] = groupPath, $[9] = t2) : t2 = $[9];
|
|
@@ -14615,7 +14615,7 @@ function GroupChange(props2) {
|
|
|
14615
14615
|
] }), $[20] = changes, $[21] = confirmRevertOpen, $[22] = group2.key, $[23] = group2.path.length, $[24] = handleRevertChanges, $[25] = hidden, $[26] = isComparingCurrent, $[27] = isPermissionsLoading, $[28] = isPortableText2, $[29] = isRevertButtonHovered, $[30] = permissions?.granted, $[31] = readOnly, $[32] = revertButtonElement, $[33] = t8) : t8 = $[33];
|
|
14616
14616
|
const content = t8;
|
|
14617
14617
|
let t9;
|
|
14618
|
-
$[34] !== group2.schemaType ? (t9 = group2.schemaType?.jsonType === "array" && group2.schemaType.of.some(_temp2$
|
|
14618
|
+
$[34] !== group2.schemaType ? (t9 = group2.schemaType?.jsonType === "array" && group2.schemaType.of.some(_temp2$1C), $[34] = group2.schemaType, $[35] = t9) : t9 = $[35];
|
|
14619
14619
|
const isPortableTextGroupArray = t9;
|
|
14620
14620
|
let t10;
|
|
14621
14621
|
return $[36] !== FieldWrapper2 || $[37] !== content || $[38] !== groupPath || $[39] !== hidden || $[40] !== isNestedInDiff || $[41] !== isPortableTextGroupArray || $[42] !== isRevertButtonHovered || $[43] !== restProps || $[44] !== titlePath ? (t10 = hidden ? null : /* @__PURE__ */ jsxs(Stack, { space: 1, ...restProps, children: [
|
|
@@ -14623,10 +14623,10 @@ function GroupChange(props2) {
|
|
|
14623
14623
|
isNestedInDiff || isPortableTextGroupArray ? content : /* @__PURE__ */ jsx(FieldWrapper2, { hasRevertHover: isRevertButtonHovered, path: groupPath, children: content })
|
|
14624
14624
|
] }), $[36] = FieldWrapper2, $[37] = content, $[38] = groupPath, $[39] = hidden, $[40] = isNestedInDiff, $[41] = isPortableTextGroupArray, $[42] = isRevertButtonHovered, $[43] = restProps, $[44] = titlePath, $[45] = t10) : t10 = $[45], t10;
|
|
14625
14625
|
}
|
|
14626
|
-
function _temp2$
|
|
14626
|
+
function _temp2$1C(ofType) {
|
|
14627
14627
|
return ofType.name === "block";
|
|
14628
14628
|
}
|
|
14629
|
-
function _temp$
|
|
14629
|
+
function _temp$3V(change) {
|
|
14630
14630
|
return isFieldChange(change) && isPTSchemaType(change.schemaType);
|
|
14631
14631
|
}
|
|
14632
14632
|
function useHover(node) {
|
|
@@ -14821,7 +14821,7 @@ function ChangesError(t0) {
|
|
|
14821
14821
|
$[8] !== error || $[9] !== revisionNotFoundError || $[10] !== t ? (t5 = revisionNotFoundError && /* @__PURE__ */ jsx(Box, { paddingTop: 2, children: /* @__PURE__ */ jsx(Text$1, { as: "p", size: 1, muted: !0, children: /* @__PURE__ */ jsx(Translate, { i18nKey: "changes.missing-since-document-error", t, values: {
|
|
14822
14822
|
revisionId: error.revisionId
|
|
14823
14823
|
}, components: {
|
|
14824
|
-
Break: _temp$
|
|
14824
|
+
Break: _temp$3U
|
|
14825
14825
|
} }) }) }), $[8] = error, $[9] = revisionNotFoundError, $[10] = t, $[11] = t5) : t5 = $[11];
|
|
14826
14826
|
let t6;
|
|
14827
14827
|
return $[12] !== t2 || $[13] !== t4 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(Card, { tone: "caution", padding: 3, children: /* @__PURE__ */ jsxs(Stack, { space: 3, children: [
|
|
@@ -14830,7 +14830,7 @@ function ChangesError(t0) {
|
|
|
14830
14830
|
t5
|
|
14831
14831
|
] }) }), $[12] = t2, $[13] = t4, $[14] = t5, $[15] = t6) : t6 = $[15], t6;
|
|
14832
14832
|
}
|
|
14833
|
-
function _temp$
|
|
14833
|
+
function _temp$3U() {
|
|
14834
14834
|
return /* @__PURE__ */ jsx("br", {});
|
|
14835
14835
|
}
|
|
14836
14836
|
const RoundedCard = styled.span`
|
|
@@ -14912,11 +14912,11 @@ function DiffString(props2) {
|
|
|
14912
14912
|
let t0;
|
|
14913
14913
|
$[0] !== diff.segments ? (t0 = diff.segments || [], $[0] = diff.segments, $[1] = t0) : t0 = $[1];
|
|
14914
14914
|
let t1;
|
|
14915
|
-
$[2] !== t0 ? (t1 = t0.map(_temp$
|
|
14915
|
+
$[2] !== t0 ? (t1 = t0.map(_temp$3T), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
14916
14916
|
let t2;
|
|
14917
14917
|
return $[4] !== t1 ? (t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 }), $[4] = t1, $[5] = t2) : t2 = $[5], t2;
|
|
14918
14918
|
}
|
|
14919
|
-
function _temp$
|
|
14919
|
+
function _temp$3T(segment, segmentIndex) {
|
|
14920
14920
|
return /* @__PURE__ */ jsx(DiffStringSegment, { segment }, segmentIndex);
|
|
14921
14921
|
}
|
|
14922
14922
|
const MetaText = styled(Text$1)`
|
|
@@ -15148,12 +15148,12 @@ function useChildValidation(path, t0) {
|
|
|
15148
15148
|
let t1;
|
|
15149
15149
|
if ($[0] !== inclusive || $[1] !== path || $[2] !== validation2) {
|
|
15150
15150
|
let t2;
|
|
15151
|
-
$[4] !== inclusive || $[5] !== path ? (t2 = (item) => startsWith(path, item.path) && (inclusive || !isEqual$2(path, item.path)), $[4] = inclusive, $[5] = path, $[6] = t2) : t2 = $[6], t1 = validation2.filter(t2).map(_temp$
|
|
15151
|
+
$[4] !== inclusive || $[5] !== path ? (t2 = (item) => startsWith(path, item.path) && (inclusive || !isEqual$2(path, item.path)), $[4] = inclusive, $[5] = path, $[6] = t2) : t2 = $[6], t1 = validation2.filter(t2).map(_temp$3S), $[0] = inclusive, $[1] = path, $[2] = validation2, $[3] = t1;
|
|
15152
15152
|
} else
|
|
15153
15153
|
t1 = $[3];
|
|
15154
15154
|
return t1;
|
|
15155
15155
|
}
|
|
15156
|
-
function _temp$
|
|
15156
|
+
function _temp$3S(marker) {
|
|
15157
15157
|
return {
|
|
15158
15158
|
message: marker.message,
|
|
15159
15159
|
level: marker.level,
|
|
@@ -15533,7 +15533,7 @@ const DefaultAnnotationComponent = (props2) => {
|
|
|
15533
15533
|
textElement,
|
|
15534
15534
|
validation: validation2,
|
|
15535
15535
|
value
|
|
15536
|
-
} = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$
|
|
15536
|
+
} = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$3R), hasWarning = validation2.some(_temp2$1B), hasMarkers = markers.length > 0, {
|
|
15537
15537
|
t
|
|
15538
15538
|
} = useTranslation(), {
|
|
15539
15539
|
register,
|
|
@@ -15576,10 +15576,10 @@ const DefaultAnnotationComponent = (props2) => {
|
|
|
15576
15576
|
let t11;
|
|
15577
15577
|
return $[21] !== t10 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8 || $[26] !== t9 || $[27] !== textElement || $[28] !== toneKey ? (t11 = /* @__PURE__ */ jsx(Root$z, { $toneKey: toneKey, "aria-label": t5, "data-link": t6, "data-error": t7, "data-warning": t8, "data-markers": t9, onClick: t10, children: textElement }), $[21] = t10, $[22] = t5, $[23] = t6, $[24] = t7, $[25] = t8, $[26] = t9, $[27] = textElement, $[28] = toneKey, $[29] = t11) : t11 = $[29], t11;
|
|
15578
15578
|
};
|
|
15579
|
-
function _temp$
|
|
15579
|
+
function _temp$3R(v) {
|
|
15580
15580
|
return v.level === "error";
|
|
15581
15581
|
}
|
|
15582
|
-
function _temp2$
|
|
15582
|
+
function _temp2$1B(v_0) {
|
|
15583
15583
|
return v_0.level === "warning";
|
|
15584
15584
|
}
|
|
15585
15585
|
function createStore(reportedValues, publish2) {
|
|
@@ -15599,7 +15599,7 @@ function createStore(reportedValues, publish2) {
|
|
|
15599
15599
|
};
|
|
15600
15600
|
}
|
|
15601
15601
|
function useTrackerStore() {
|
|
15602
|
-
const $ = c(9), [reportedValues] = useState(_temp$
|
|
15602
|
+
const $ = c(9), [reportedValues] = useState(_temp$3Q);
|
|
15603
15603
|
let t0;
|
|
15604
15604
|
$[0] !== reportedValues ? (t0 = () => Array.from(reportedValues.entries()), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
|
|
15605
15605
|
let t1;
|
|
@@ -15619,7 +15619,7 @@ function useTrackerStore() {
|
|
|
15619
15619
|
snapshot: snapshot2
|
|
15620
15620
|
}, $[6] = snapshot2, $[7] = store, $[8] = t4) : t4 = $[8], t4;
|
|
15621
15621
|
}
|
|
15622
|
-
function _temp$
|
|
15622
|
+
function _temp$3Q() {
|
|
15623
15623
|
return /* @__PURE__ */ new Map();
|
|
15624
15624
|
}
|
|
15625
15625
|
function useTrackerStoreReporter(store, id2, value, t0) {
|
|
@@ -15665,17 +15665,17 @@ const useChangeIndicatorsReporter = (id2, value, isEqual2) => {
|
|
|
15665
15665
|
function useHoveredChange() {
|
|
15666
15666
|
const $ = c(2), reportedValues = useChangeIndicatorsReportedValues();
|
|
15667
15667
|
let t0;
|
|
15668
|
-
$[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$
|
|
15668
|
+
$[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$3P).sort(_temp2$1A), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
|
|
15669
15669
|
const hoveredEntry = t0[0];
|
|
15670
15670
|
if (hoveredEntry) {
|
|
15671
15671
|
const [, change_0] = hoveredEntry;
|
|
15672
15672
|
return change_0;
|
|
15673
15673
|
}
|
|
15674
15674
|
}
|
|
15675
|
-
function _temp2$
|
|
15675
|
+
function _temp2$1A(a, b) {
|
|
15676
15676
|
return b[1].path.length - a[1].path.length;
|
|
15677
15677
|
}
|
|
15678
|
-
function _temp$
|
|
15678
|
+
function _temp$3P(t0) {
|
|
15679
15679
|
const [, change] = t0;
|
|
15680
15680
|
return change.hasHover;
|
|
15681
15681
|
}
|
|
@@ -15891,7 +15891,7 @@ const FieldActionMenu = memo(function(props2) {
|
|
|
15891
15891
|
$[4] !== nodes ? (t2 = nodes.filter(renderAsButton), $[4] = nodes, $[5] = t2) : t2 = $[5];
|
|
15892
15892
|
const buttonNodes = t2;
|
|
15893
15893
|
let t3;
|
|
15894
|
-
$[6] !== nodes ? (t3 = nodes.filter(_temp$
|
|
15894
|
+
$[6] !== nodes ? (t3 = nodes.filter(_temp$3O), $[6] = nodes, $[7] = t3) : t3 = $[7];
|
|
15895
15895
|
const menuNodesProp = t3;
|
|
15896
15896
|
let t4;
|
|
15897
15897
|
bb0: {
|
|
@@ -15976,7 +15976,7 @@ function RootFieldActionMenuGroup(props2) {
|
|
|
15976
15976
|
let t6;
|
|
15977
15977
|
return $[10] !== onClose || $[11] !== onOpen || $[12] !== t2 || $[13] !== t3 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(MenuButton, { button: t2, id: t3, menu: t5, onOpen, onClose, popover: ROOT_MENU_BUTTON_POPOVER_PROPS }), $[10] = onClose, $[11] = onOpen, $[12] = t2, $[13] = t3, $[14] = t5, $[15] = t6) : t6 = $[15], t6;
|
|
15978
15978
|
}
|
|
15979
|
-
function _temp$
|
|
15979
|
+
function _temp$3O(node) {
|
|
15980
15980
|
return !renderAsButton(node);
|
|
15981
15981
|
}
|
|
15982
15982
|
function useHoveredField() {
|
|
@@ -16081,7 +16081,7 @@ const FieldActionsResolver = memo(function(props2) {
|
|
|
16081
16081
|
t6 = $[15];
|
|
16082
16082
|
const FieldActions = t6;
|
|
16083
16083
|
let t7;
|
|
16084
|
-
$[21] !== FieldActions ? (t7 = FieldActions.map(_temp$
|
|
16084
|
+
$[21] !== FieldActions ? (t7 = FieldActions.map(_temp$3N), $[21] = FieldActions, $[22] = t7) : t7 = $[22];
|
|
16085
16085
|
let t8;
|
|
16086
16086
|
return $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(Fragment$1, { children: t7 }), $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
16087
16087
|
});
|
|
@@ -16113,7 +16113,7 @@ function defineFieldActionComponent({
|
|
|
16113
16113
|
}, t2 = [node], $[1] = node, $[2] = t1, $[3] = t2) : (t1 = $[2], t2 = $[3]), useEffect(t1, t2), null;
|
|
16114
16114
|
});
|
|
16115
16115
|
}
|
|
16116
|
-
function _temp$
|
|
16116
|
+
function _temp$3N(FieldAction, key) {
|
|
16117
16117
|
return /* @__PURE__ */ jsx(FieldAction, {}, key);
|
|
16118
16118
|
}
|
|
16119
16119
|
function useFieldActions() {
|
|
@@ -16122,7 +16122,7 @@ function useFieldActions() {
|
|
|
16122
16122
|
const HoveredFieldProvider = memo(function(props2) {
|
|
16123
16123
|
const $ = c(17), {
|
|
16124
16124
|
children
|
|
16125
|
-
} = props2, [listeners] = useState(_temp$
|
|
16125
|
+
} = props2, [listeners] = useState(_temp$3M);
|
|
16126
16126
|
let t0;
|
|
16127
16127
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = [], $[0] = t0) : t0 = $[0];
|
|
16128
16128
|
const hoveredStackRef = useRef(t0);
|
|
@@ -16168,7 +16168,7 @@ const HoveredFieldProvider = memo(function(props2) {
|
|
|
16168
16168
|
let t7;
|
|
16169
16169
|
return $[14] !== children || $[15] !== context ? (t7 = /* @__PURE__ */ jsx(HoveredFieldContext.Provider, { value: context, children }), $[14] = children, $[15] = context, $[16] = t7) : t7 = $[16], t7;
|
|
16170
16170
|
});
|
|
16171
|
-
function _temp$
|
|
16171
|
+
function _temp$3M() {
|
|
16172
16172
|
return /* @__PURE__ */ new Set();
|
|
16173
16173
|
}
|
|
16174
16174
|
function useDidUpdate(current, didUpdate, t0) {
|
|
@@ -16322,7 +16322,7 @@ function ImageOrFileField(field) {
|
|
|
16322
16322
|
const $ = c(32), [fieldActionsNodes, setFieldActionNodes] = useState(EMPTY_ARRAY$v), documentId = usePublishedId$1(), focused = !!field.inputProps.focused;
|
|
16323
16323
|
let t0;
|
|
16324
16324
|
if ($[0] !== field.inputProps.members || $[1] !== field.presence) {
|
|
16325
|
-
const hotspotField = field.inputProps.members.find(_temp$
|
|
16325
|
+
const hotspotField = field.inputProps.members.find(_temp$3L);
|
|
16326
16326
|
t0 = hotspotField?.open ? field.presence : field.presence.concat(hotspotField?.field.presence || EMPTY_ARRAY$v), $[0] = field.inputProps.members, $[1] = field.presence, $[2] = t0;
|
|
16327
16327
|
} else
|
|
16328
16328
|
t0 = $[2];
|
|
@@ -16339,7 +16339,7 @@ function ImageOrFileField(field) {
|
|
|
16339
16339
|
t3
|
|
16340
16340
|
] }), $[29] = t1, $[30] = t3, $[31] = t4) : t4 = $[31], t4;
|
|
16341
16341
|
}
|
|
16342
|
-
function _temp$
|
|
16342
|
+
function _temp$3L(member) {
|
|
16343
16343
|
return member.kind === "field" && member.name === "hotspot";
|
|
16344
16344
|
}
|
|
16345
16345
|
function defaultResolveFieldComponent(schemaType) {
|
|
@@ -16960,11 +16960,11 @@ function useSearchMaxFieldDepth(overrideClient) {
|
|
|
16960
16960
|
client
|
|
16961
16961
|
}).pipe(shareReplay()));
|
|
16962
16962
|
let t1;
|
|
16963
|
-
$[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$
|
|
16963
|
+
$[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$3K), startWith(INITIAL_LOADING_STATE$5), catchError(_temp2$1z)), $[2] = dataset, $[3] = t1) : t1 = $[3];
|
|
16964
16964
|
const maxFieldDepth = useObservable(t1, INITIAL_LOADING_STATE$5)?.settings?.partialIndexSettings?.maxFieldDepth;
|
|
16965
16965
|
return isFinite(maxFieldDepth) ? Math.min(maxFieldDepth, DEFAULT_MAX_FIELD_DEPTH) : DEFAULT_MAX_FIELD_DEPTH;
|
|
16966
16966
|
}
|
|
16967
|
-
function _temp2$
|
|
16967
|
+
function _temp2$1z(err) {
|
|
16968
16968
|
return console.error(err), of({
|
|
16969
16969
|
isLoading: !1,
|
|
16970
16970
|
enabled: !0,
|
|
@@ -16975,7 +16975,7 @@ function _temp2$1A(err) {
|
|
|
16975
16975
|
}
|
|
16976
16976
|
});
|
|
16977
16977
|
}
|
|
16978
|
-
function _temp$
|
|
16978
|
+
function _temp$3K(settings) {
|
|
16979
16979
|
return {
|
|
16980
16980
|
isLoading: !1,
|
|
16981
16981
|
settings
|
|
@@ -17119,7 +17119,7 @@ function CreateButton(props2) {
|
|
|
17119
17119
|
const currentUser = useCurrentUser(), {
|
|
17120
17120
|
t
|
|
17121
17121
|
} = useTranslation(), getI18nText = useGetI18nText(createOptions);
|
|
17122
|
-
if (!createOptions.some(_temp$
|
|
17122
|
+
if (!createOptions.some(_temp$3J)) {
|
|
17123
17123
|
let t02;
|
|
17124
17124
|
$[6] !== currentUser ? (t02 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { currentUser, context: "create-new-reference" }), $[6] = currentUser, $[7] = t02) : t02 = $[7];
|
|
17125
17125
|
let t1;
|
|
@@ -17132,7 +17132,7 @@ function CreateButton(props2) {
|
|
|
17132
17132
|
let t0;
|
|
17133
17133
|
return $[15] !== createOptions || $[16] !== currentUser || $[17] !== getI18nText || $[18] !== id2 || $[19] !== menuRef || $[20] !== onCreate || $[21] !== props2.readOnly || $[22] !== rest || $[23] !== t ? (t0 = createOptions.length > 1 ? /* @__PURE__ */ jsx(MenuButton, { button: /* @__PURE__ */ jsx(Button, { ...rest, disabled: props2.readOnly, text: t("inputs.reference.action.create-new-document-select"), mode: "ghost", icon: AddIcon, size: "large" }), id: id2, menu: /* @__PURE__ */ jsx(Menu, { ref: menuRef, children: createOptions.map((createOption) => /* @__PURE__ */ jsx(Tooltip, { disabled: createOption.permission.granted, content: /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { currentUser, context: "create-document-type" }), portal: !0, "data-testid": `create-new-document-select-${createOption.title.toLowerCase().replaceAll(" ", "-")}-selectTypeMenuButton`, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(MenuItem, { disabled: !createOption.permission.granted, icon: createOption.icon, text: getI18nText(createOption).title, onClick: () => onCreate(createOption), "data-testid": `create-new-document-select-${createOption.title.toLowerCase().replaceAll(" ", "-")}-selectTypeMenuItem` }) }) }, createOption.id)) }), popover: POPOVER_PROPS$5 }) : /* @__PURE__ */ jsx(Button, { ...rest, text: t("inputs.reference.action.create-new-document-select"), mode: "ghost", disabled: !createOptions[0].permission.granted || props2.readOnly, onClick: () => onCreate(createOptions[0]), icon: AddIcon, size: "large", "data-testid": `create-new-document-select-${id2}` }), $[15] = createOptions, $[16] = currentUser, $[17] = getI18nText, $[18] = id2, $[19] = menuRef, $[20] = onCreate, $[21] = props2.readOnly, $[22] = rest, $[23] = t, $[24] = t0) : t0 = $[24], t0;
|
|
17134
17134
|
}
|
|
17135
|
-
function _temp$
|
|
17135
|
+
function _temp$3J(option) {
|
|
17136
17136
|
return option.permission.granted;
|
|
17137
17137
|
}
|
|
17138
17138
|
function sortReleases(releases2 = []) {
|
|
@@ -17174,7 +17174,7 @@ function useActiveReleases() {
|
|
|
17174
17174
|
dispatch
|
|
17175
17175
|
} = useReleasesStore(), state = useObservable(state$);
|
|
17176
17176
|
let t0;
|
|
17177
|
-
$[0] !== state.releases ? (t0 = sortReleases(Array.from(state.releases.values()).filter(_temp$
|
|
17177
|
+
$[0] !== state.releases ? (t0 = sortReleases(Array.from(state.releases.values()).filter(_temp$3I)).reverse(), $[0] = state.releases, $[1] = t0) : t0 = $[1];
|
|
17178
17178
|
const releasesAsArray = t0, t1 = state.error;
|
|
17179
17179
|
let t2;
|
|
17180
17180
|
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = ["loading", "initialising"], $[2] = t2) : t2 = $[2];
|
|
@@ -17187,7 +17187,7 @@ function useActiveReleases() {
|
|
|
17187
17187
|
loading: t3
|
|
17188
17188
|
}, $[3] = dispatch, $[4] = releasesAsArray, $[5] = state.error, $[6] = t3, $[7] = t4) : t4 = $[7], t4;
|
|
17189
17189
|
}
|
|
17190
|
-
function _temp$
|
|
17190
|
+
function _temp$3I(release) {
|
|
17191
17191
|
return !ARCHIVED_RELEASE_STATES.includes(release.state);
|
|
17192
17192
|
}
|
|
17193
17193
|
const Dot$2 = styled.div((props2) => {
|
|
@@ -17275,15 +17275,15 @@ function DocumentStatusIndicator(t0) {
|
|
|
17275
17275
|
$[13] !== t11 || $[14] !== t13 || $[15] !== t5 || $[16] !== t7 || $[17] !== t9 ? (t14 = [t5, t7, t9, t11, t13], $[13] = t11, $[14] = t13, $[15] = t5, $[16] = t7, $[17] = t9, $[18] = t14) : t14 = $[18];
|
|
17276
17276
|
const indicators = t14;
|
|
17277
17277
|
let t15;
|
|
17278
|
-
return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$
|
|
17278
|
+
return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$3H).map(_temp2$1y) }), $[19] = indicators, $[20] = t15) : t15 = $[20], t15;
|
|
17279
17279
|
}
|
|
17280
|
-
function _temp2$
|
|
17280
|
+
function _temp2$1y(t0, index) {
|
|
17281
17281
|
const {
|
|
17282
17282
|
status
|
|
17283
17283
|
} = t0;
|
|
17284
17284
|
return /* @__PURE__ */ jsx(Dot$2, { "data-status": status, $index: index + 1 }, status);
|
|
17285
17285
|
}
|
|
17286
|
-
function _temp$
|
|
17286
|
+
function _temp$3H(t0) {
|
|
17287
17287
|
const {
|
|
17288
17288
|
show
|
|
17289
17289
|
} = t0;
|
|
@@ -17424,7 +17424,7 @@ function PreviewReferenceValue$2(props2) {
|
|
|
17424
17424
|
if ($[13] !== value._strengthenOnPublish?.type ? (t62 = (toType) => toType.name === value?._strengthenOnPublish?.type, $[13] = value._strengthenOnPublish?.type, $[14] = t62) : t62 = $[14], refType = t12.find(t62), !refType) {
|
|
17425
17425
|
const t72 = value._ref, t82 = value._strengthenOnPublish?.type;
|
|
17426
17426
|
let t92;
|
|
17427
|
-
$[15] !== type.to ? (t92 = type.to.map(_temp$
|
|
17427
|
+
$[15] !== type.to ? (t92 = type.to.map(_temp$3G), $[15] = type.to, $[16] = t92) : t92 = $[16];
|
|
17428
17428
|
let t10;
|
|
17429
17429
|
$[17] !== t82 || $[18] !== t92 || $[19] !== value._ref ? (t10 = /* @__PURE__ */ jsx(InvalidType, { documentId: t72, actualType: t82, declaredTypes: t92 }), $[17] = t82, $[18] = t92, $[19] = value._ref, $[20] = t10) : t10 = $[20], t5 = t10;
|
|
17430
17430
|
break bb0;
|
|
@@ -17484,17 +17484,17 @@ function PreviewReferenceValue$2(props2) {
|
|
|
17484
17484
|
if (!refType_0) {
|
|
17485
17485
|
const t22 = value._ref, t3 = refTypeName || "<unknown>";
|
|
17486
17486
|
let t4;
|
|
17487
|
-
$[52] !== type.to ? (t4 = type.to.map(_temp2$
|
|
17487
|
+
$[52] !== type.to ? (t4 = type.to.map(_temp2$1x), $[52] = type.to, $[53] = t4) : t4 = $[53];
|
|
17488
17488
|
let t5;
|
|
17489
17489
|
return $[54] !== t3 || $[55] !== t4 || $[56] !== value._ref ? (t5 = /* @__PURE__ */ jsx(InvalidType, { documentId: t22, actualType: t3, declaredTypes: t4 }), $[54] = t3, $[55] = t4, $[56] = value._ref, $[57] = t5) : t5 = $[57], t5;
|
|
17490
17490
|
}
|
|
17491
17491
|
let t2;
|
|
17492
17492
|
return $[58] !== layout || $[59] !== refType_0 || $[60] !== renderPreview || $[61] !== showTypeLabel || $[62] !== value._ref ? (t2 = /* @__PURE__ */ jsx(ReferencePreview, { id: value._ref, layout, refType: refType_0, renderPreview, showTypeLabel }), $[58] = layout, $[59] = refType_0, $[60] = renderPreview, $[61] = showTypeLabel, $[62] = value._ref, $[63] = t2) : t2 = $[63], t2;
|
|
17493
17493
|
}
|
|
17494
|
-
function _temp2$
|
|
17494
|
+
function _temp2$1x(toType_2) {
|
|
17495
17495
|
return toType_2.name;
|
|
17496
17496
|
}
|
|
17497
|
-
function _temp$
|
|
17497
|
+
function _temp$3G(toType_0) {
|
|
17498
17498
|
return toType_0.name;
|
|
17499
17499
|
}
|
|
17500
17500
|
function UnavailableMessage(props2) {
|
|
@@ -17607,7 +17607,7 @@ function Details(props2) {
|
|
|
17607
17607
|
} = props2, $[0] = props2, $[1] = children, $[2] = icon, $[3] = openProp, $[4] = restProps, $[5] = t0) : (children = $[1], icon = $[2], openProp = $[3], restProps = $[4], t0 = $[5]);
|
|
17608
17608
|
const title = t0 === void 0 ? "Details" : t0, [open, setOpen] = useState(openProp || !1);
|
|
17609
17609
|
let t1;
|
|
17610
|
-
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setOpen(_temp$
|
|
17610
|
+
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setOpen(_temp$3F), $[6] = t1) : t1 = $[6];
|
|
17611
17611
|
const handleToggle = t1;
|
|
17612
17612
|
let t2, t3;
|
|
17613
17613
|
$[7] !== openProp ? (t2 = () => setOpen(openProp || !1), t3 = [openProp], $[7] = openProp, $[8] = t2, $[9] = t3) : (t2 = $[8], t3 = $[9]), useEffect(t2, t3);
|
|
@@ -17635,7 +17635,7 @@ function Details(props2) {
|
|
|
17635
17635
|
t11
|
|
17636
17636
|
] }), $[26] = restProps, $[27] = t11, $[28] = t9, $[29] = t12) : t12 = $[29], t12;
|
|
17637
17637
|
}
|
|
17638
|
-
function _temp$
|
|
17638
|
+
function _temp$3F(v) {
|
|
17639
17639
|
return !v;
|
|
17640
17640
|
}
|
|
17641
17641
|
const STATUS_TONES = {
|
|
@@ -17777,20 +17777,20 @@ function ReferenceStrengthMismatchAlertStrip(t0) {
|
|
|
17777
17777
|
let t11;
|
|
17778
17778
|
return $[20] !== t1 || $[21] !== t10 ? (t11 = /* @__PURE__ */ jsx(AlertStrip, { padding: 1, title: t1, status: "warning", "data-testid": "alert-reference-strength-mismatch", children: t10 }), $[20] = t1, $[21] = t10, $[22] = t11) : t11 = $[22], t11;
|
|
17779
17779
|
}
|
|
17780
|
-
const noop$
|
|
17780
|
+
const noop$4 = () => {
|
|
17781
17781
|
}, INITIAL_LOADING_STATE$4 = {
|
|
17782
17782
|
isLoading: !0,
|
|
17783
17783
|
result: void 0,
|
|
17784
17784
|
error: void 0,
|
|
17785
|
-
retry: noop$
|
|
17785
|
+
retry: noop$4
|
|
17786
17786
|
}, EMPTY_STATE$2 = {
|
|
17787
17787
|
isLoading: !1,
|
|
17788
17788
|
result: void 0,
|
|
17789
17789
|
error: void 0,
|
|
17790
|
-
retry: noop$
|
|
17790
|
+
retry: noop$4
|
|
17791
17791
|
};
|
|
17792
17792
|
function useReferenceInfo$2(id2, getReferenceInfo2) {
|
|
17793
|
-
const $ = c(10), [t0] = useState(_temp$
|
|
17793
|
+
const $ = c(10), [t0] = useState(_temp$3E), [onRetry$2, onRetry2] = t0;
|
|
17794
17794
|
let t1;
|
|
17795
17795
|
if ($[0] !== getReferenceInfo2 || $[1] !== id2 || $[2] !== onRetry2 || $[3] !== onRetry$2) {
|
|
17796
17796
|
let t2;
|
|
@@ -17811,7 +17811,7 @@ function useReferenceInfo$2(id2, getReferenceInfo2) {
|
|
|
17811
17811
|
t1 = $[4];
|
|
17812
17812
|
return useObservable(t1, INITIAL_LOADING_STATE$4);
|
|
17813
17813
|
}
|
|
17814
|
-
function _temp$
|
|
17814
|
+
function _temp$3E() {
|
|
17815
17815
|
return observableCallback();
|
|
17816
17816
|
}
|
|
17817
17817
|
const READABLE = {
|
|
@@ -17937,7 +17937,7 @@ function useReferenceInput(options) {
|
|
|
17937
17937
|
let t72;
|
|
17938
17938
|
if ($[22] !== initialValueTemplateItems || $[23] !== schemaType.to) {
|
|
17939
17939
|
let t82;
|
|
17940
|
-
$[25] !== schemaType.to ? (t82 = (i) => schemaType.to.some((refType) => refType.name === i.template?.schemaType), $[25] = schemaType.to, $[26] = t82) : t82 = $[26], t72 = (initialValueTemplateItems || []).filter(t82).map(_temp$
|
|
17940
|
+
$[25] !== schemaType.to ? (t82 = (i) => schemaType.to.some((refType) => refType.name === i.template?.schemaType), $[25] = schemaType.to, $[26] = t82) : t82 = $[26], t72 = (initialValueTemplateItems || []).filter(t82).map(_temp$3D).filter(isNonNullable$2), $[22] = initialValueTemplateItems, $[23] = schemaType.to, $[24] = t72;
|
|
17941
17941
|
} else
|
|
17942
17942
|
t72 = $[24];
|
|
17943
17943
|
t6 = t72;
|
|
@@ -17956,7 +17956,7 @@ function useReferenceInput(options) {
|
|
|
17956
17956
|
getReferenceInfo: getReferenceInfo$1
|
|
17957
17957
|
}, $[31] = EditReferenceLink, $[32] = createOptions, $[33] = getReferenceInfo$1, $[34] = handleEditReference, $[35] = isCurrentDocumentLiveEdit, $[36] = selectedState, $[37] = t8) : t8 = $[37], t8;
|
|
17958
17958
|
}
|
|
17959
|
-
function _temp$
|
|
17959
|
+
function _temp$3D(item) {
|
|
17960
17960
|
return item.template?.schemaType ? {
|
|
17961
17961
|
id: item.id,
|
|
17962
17962
|
title: item.title || `${item.template.schemaType} from template ${item.template.id}`,
|
|
@@ -18016,7 +18016,7 @@ function ReferenceInputPreview(props2) {
|
|
|
18016
18016
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (hadFocus, hasFocus) => {
|
|
18017
18017
|
!hadFocus && hasFocus && elementRef.current && elementRef.current.focus();
|
|
18018
18018
|
}, $[6] = t2) : t2 = $[6], useDidUpdate(focused, t2);
|
|
18019
|
-
const hasErrors = props2.validation.some(_temp$
|
|
18019
|
+
const hasErrors = props2.validation.some(_temp$3C), hasWarnings = props2.validation.some(_temp2$1w), loadableReferenceInfo = useReferenceInfo$2(value?._ref, getReferenceInfo2), refTypeName = loadableReferenceInfo.result?.type || value?._strengthenOnPublish?.type;
|
|
18020
18020
|
let t3;
|
|
18021
18021
|
$[7] !== refTypeName || $[8] !== schemaType.to ? (t3 = refTypeName ? schemaType.to.find((toType) => toType.name === refTypeName) : void 0, $[7] = refTypeName, $[8] = schemaType.to, $[9] = t3) : t3 = $[9];
|
|
18022
18022
|
const refType = t3, pressed = selectedState === "pressed", selected = selectedState === "selected", hasRef = value?._ref, publishedReferenceExists = hasRef && loadableReferenceInfo.result?.isPublished;
|
|
@@ -18107,10 +18107,10 @@ function ReferenceInputPreview(props2) {
|
|
|
18107
18107
|
let t25;
|
|
18108
18108
|
return $[76] !== t24 || $[77] !== tone ? (t25 = /* @__PURE__ */ jsx(Card, { border: !0, radius: 2, padding: 1, tone, children: t24 }), $[76] = t24, $[77] = tone, $[78] = t25) : t25 = $[78], t25;
|
|
18109
18109
|
}
|
|
18110
|
-
function _temp2$
|
|
18110
|
+
function _temp2$1w(v_0) {
|
|
18111
18111
|
return v_0.level === "warning";
|
|
18112
18112
|
}
|
|
18113
|
-
function _temp$
|
|
18113
|
+
function _temp$3C(v) {
|
|
18114
18114
|
return v.level === "error";
|
|
18115
18115
|
}
|
|
18116
18116
|
function useReferenceItemRef() {
|
|
@@ -18226,7 +18226,7 @@ function ReferenceInput(props2) {
|
|
|
18226
18226
|
hits: [],
|
|
18227
18227
|
searchString,
|
|
18228
18228
|
isLoading: !1
|
|
18229
|
-
})))))), scan(_temp$
|
|
18229
|
+
})))))), scan(_temp$3B, INITIAL_SEARCH_STATE$3), tap(setSearchState)), $[24] = id2, $[25] = onSearch, $[26] = push, $[27] = t, $[28] = t5) : t5 = $[28];
|
|
18230
18230
|
const handleQueryChange = useObservableEvent(t5);
|
|
18231
18231
|
let t6;
|
|
18232
18232
|
$[29] !== handleQueryChange ? (t6 = () => {
|
|
@@ -18257,7 +18257,7 @@ function ReferenceInput(props2) {
|
|
|
18257
18257
|
!hadFocusAtRef && hasFocusAtRef && elementProps.ref.current?.focus();
|
|
18258
18258
|
}, $[45] = elementProps, $[46] = t12) : t12 = $[46], useDidUpdate(focusPath?.[0] === "_ref", t12);
|
|
18259
18259
|
let t13;
|
|
18260
|
-
$[47] !== searchState.hits ? (t13 = searchState.hits.map(_temp2$
|
|
18260
|
+
$[47] !== searchState.hits ? (t13 = searchState.hits.map(_temp2$1v), $[47] = searchState.hits, $[48] = t13) : t13 = $[48];
|
|
18261
18261
|
const hits_0 = t13, isEditing = focusPath.length === 1 && focusPath[0] === "_ref", {
|
|
18262
18262
|
menuRef,
|
|
18263
18263
|
menuButtonRef,
|
|
@@ -18299,13 +18299,13 @@ function ReferenceInput(props2) {
|
|
|
18299
18299
|
let t27;
|
|
18300
18300
|
return $[97] !== props2 || $[98] !== t26 ? (t27 = /* @__PURE__ */ jsx(ReferenceInputPreview, { ...props2, children: t26 }), $[97] = props2, $[98] = t26, $[99] = t27) : t27 = $[99], t27;
|
|
18301
18301
|
}
|
|
18302
|
-
function _temp2$
|
|
18302
|
+
function _temp2$1v(hit_0) {
|
|
18303
18303
|
return {
|
|
18304
18304
|
value: hit_0.id,
|
|
18305
18305
|
hit: hit_0
|
|
18306
18306
|
};
|
|
18307
18307
|
}
|
|
18308
|
-
function _temp$
|
|
18308
|
+
function _temp$3B(prevState, nextState) {
|
|
18309
18309
|
return {
|
|
18310
18310
|
...prevState,
|
|
18311
18311
|
...nextState
|
|
@@ -18396,7 +18396,7 @@ function StudioReferenceInput(props2) {
|
|
|
18396
18396
|
})(searchString, {
|
|
18397
18397
|
perspective: options.perspective,
|
|
18398
18398
|
limit: 101
|
|
18399
|
-
}).pipe(map(_temp2$
|
|
18399
|
+
}).pipe(map(_temp2$1u), switchMap((docs) => docs.length === 0 ? of([]) : combineLatest(docs.map((doc) => documentPreviewStore.observePaths({
|
|
18400
18400
|
_id: getPublishedId(doc._id)
|
|
18401
18401
|
}, ["_rev"]).pipe(map((published) => ({
|
|
18402
18402
|
id: doc._id,
|
|
@@ -18468,13 +18468,13 @@ function _temp3$G(item) {
|
|
|
18468
18468
|
}
|
|
18469
18469
|
} : void 0;
|
|
18470
18470
|
}
|
|
18471
|
-
function _temp2$
|
|
18471
|
+
function _temp2$1u(t0) {
|
|
18472
18472
|
const {
|
|
18473
18473
|
hits
|
|
18474
18474
|
} = t0;
|
|
18475
|
-
return hits.map(_temp$
|
|
18475
|
+
return hits.map(_temp$3A);
|
|
18476
18476
|
}
|
|
18477
|
-
function _temp$
|
|
18477
|
+
function _temp$3A(t0) {
|
|
18478
18478
|
const {
|
|
18479
18479
|
hit
|
|
18480
18480
|
} = t0;
|
|
@@ -18529,7 +18529,7 @@ const NestedDialogOpened = defineEvent({
|
|
|
18529
18529
|
description: "User opened a nested dialog"
|
|
18530
18530
|
}), NestedDialogClosed = defineEvent({
|
|
18531
18531
|
name: "Nested Dialog Closed",
|
|
18532
|
-
version:
|
|
18532
|
+
version: 2,
|
|
18533
18533
|
description: "User closed a nested dialog"
|
|
18534
18534
|
}), NavigatedToViaArrayList = defineEvent({
|
|
18535
18535
|
name: "Edited Nested Object in Array List",
|
|
@@ -18539,6 +18539,14 @@ const NestedDialogOpened = defineEvent({
|
|
|
18539
18539
|
name: "Navigated to Nested Object via Breadcrumb",
|
|
18540
18540
|
version: 1,
|
|
18541
18541
|
description: "User navigated to a nested object via a breadcrumb"
|
|
18542
|
+
}), NavigatedToNestedObjectViaCloseButton = defineEvent({
|
|
18543
|
+
name: "Navigated to Nested Object via Close Button",
|
|
18544
|
+
version: 1,
|
|
18545
|
+
description: "User navigated to a nested object via closing the top most dialog via the close button"
|
|
18546
|
+
}), navigatedToNestedObjectViaKeyboardShortcut = defineEvent({
|
|
18547
|
+
name: "Navigated to Nested Object via Keyboard Shortcut",
|
|
18548
|
+
version: 1,
|
|
18549
|
+
description: "User navigated to a nested object via a keyboard shortcut"
|
|
18542
18550
|
}), CreatedNewObject = defineEvent({
|
|
18543
18551
|
name: "Created New Object in Array List",
|
|
18544
18552
|
version: 1,
|
|
@@ -18701,7 +18709,7 @@ function ArrayOfObjectsItem(props2) {
|
|
|
18701
18709
|
$[14] !== handleOpenItem || $[15] !== member.item.path || $[16] !== member.key || $[17] !== member.parentSchemaType || $[18] !== onChange || $[19] !== onPathFocus || $[20] !== resolveInitialValue2 || $[21] !== t || $[22] !== telemetryInsertSiblingsTelemetry || $[23] !== toast ? (t4 = (event_0) => {
|
|
18702
18710
|
if (event_0.items.length === 0)
|
|
18703
18711
|
throw new Error("Insert event should include at least one item");
|
|
18704
|
-
const itemsWithKeys = event_0.items.map(_temp$
|
|
18712
|
+
const itemsWithKeys = event_0.items.map(_temp$3z);
|
|
18705
18713
|
onChange(PatchEvent.from([insert$1(itemsWithKeys, event_0.position, [{
|
|
18706
18714
|
_key: member.key
|
|
18707
18715
|
}])]));
|
|
@@ -18878,7 +18886,7 @@ function ArrayOfObjectsItem(props2) {
|
|
|
18878
18886
|
let t29;
|
|
18879
18887
|
return $[160] !== handleChange || $[161] !== onFieldGroupSelect || $[162] !== onPathBlur || $[163] !== onPathFocus || $[164] !== onPathOpen || $[165] !== onSetFieldSetCollapsed || $[166] !== onSetPathCollapsed || $[167] !== t28 ? (t29 = /* @__PURE__ */ jsx(FormCallbacksProvider, { onFieldGroupSelect, onChange: handleChange, onPathOpen, onSetFieldSetCollapsed, onSetPathCollapsed, onPathBlur, onPathFocus, children: t28 }), $[160] = handleChange, $[161] = onFieldGroupSelect, $[162] = onPathBlur, $[163] = onPathFocus, $[164] = onPathOpen, $[165] = onSetFieldSetCollapsed, $[166] = onSetPathCollapsed, $[167] = t28, $[168] = t29) : t29 = $[168], t29;
|
|
18880
18888
|
}
|
|
18881
|
-
function _temp$
|
|
18889
|
+
function _temp$3z(item) {
|
|
18882
18890
|
return ensureKey(item);
|
|
18883
18891
|
}
|
|
18884
18892
|
function RenderInput$5({
|
|
@@ -18923,7 +18931,7 @@ function IncompatibleItemType$2(props2) {
|
|
|
18923
18931
|
const handleKeyDown = t2;
|
|
18924
18932
|
let t3;
|
|
18925
18933
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
18926
|
-
setShowDetails(_temp$
|
|
18934
|
+
setShowDetails(_temp$3y);
|
|
18927
18935
|
}, $[7] = t3) : t3 = $[7];
|
|
18928
18936
|
const handleShowDetails = t3;
|
|
18929
18937
|
let t4;
|
|
@@ -18992,7 +19000,7 @@ function IncompatibleItemType$2(props2) {
|
|
|
18992
19000
|
let t24;
|
|
18993
19001
|
return $[56] !== showDetails || $[57] !== t19 || $[58] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, { open: showDetails, ref: popoverRef, onKeyDown: handleKeyDown, portal: !0, constrainSize: !0, tone: "default", content: t19, children: t23 }), $[56] = showDetails, $[57] = t19, $[58] = t23, $[59] = t24) : t24 = $[59], t24;
|
|
18994
19002
|
}
|
|
18995
|
-
function _temp$
|
|
19003
|
+
function _temp$3y(v) {
|
|
18996
19004
|
return !v;
|
|
18997
19005
|
}
|
|
18998
19006
|
function MemberItemError(props2) {
|
|
@@ -19788,7 +19796,7 @@ function ArrayOfObjectsField(props2) {
|
|
|
19788
19796
|
let t7;
|
|
19789
19797
|
$[12] !== member.name || $[13] !== onChange ? (t7 = (event_1) => {
|
|
19790
19798
|
const patches = PatchEvent.from(event_1).patches;
|
|
19791
|
-
if (patches.some(_temp$
|
|
19799
|
+
if (patches.some(_temp$3x) && (valueRef.current = applyAll(valueRef.current || [], patches), Array.isArray(valueRef.current) && !valueRef.current.length)) {
|
|
19792
19800
|
onChange(PatchEvent.from(unset([member.name])));
|
|
19793
19801
|
return;
|
|
19794
19802
|
}
|
|
@@ -19835,7 +19843,7 @@ function ArrayOfObjectsField(props2) {
|
|
|
19835
19843
|
$[34] !== handleChange || $[35] !== handleOpenItem || $[36] !== member.field.path || $[37] !== member.field.schemaType || $[38] !== onPathFocus || $[39] !== resolveInitialValue2 || $[40] !== toast ? (t14 = (event_2) => {
|
|
19836
19844
|
if (event_2.items.length === 0)
|
|
19837
19845
|
throw new Error("Insert event should include at least one item");
|
|
19838
|
-
const itemsWithKeys = event_2.items.map(_temp2$
|
|
19846
|
+
const itemsWithKeys = event_2.items.map(_temp2$1t);
|
|
19839
19847
|
handleChange(PatchEvent.from([insert$1(itemsWithKeys, event_2.position, [event_2.referenceItem])]));
|
|
19840
19848
|
const focusItemKey = itemsWithKeys[0]._key, itemPath = [...member.field.path, {
|
|
19841
19849
|
_key: focusItemKey
|
|
@@ -19948,7 +19956,7 @@ function ArrayOfObjectsField(props2) {
|
|
|
19948
19956
|
}));
|
|
19949
19957
|
const uploader = new assetSource.Uploader();
|
|
19950
19958
|
setAssetSourceUploadComponents((prev) => {
|
|
19951
|
-
const AssetSourceComponent = assetSource.component, assetSourceComponent = /* @__PURE__ */ jsx(AssetSourceComponent, { assetSource, action: "upload", onSelect: (assets_0) => handleSelectAssetsFromSource(assets_0, schemaType_0, key_0), accept: "*/*", onClose: noop$
|
|
19959
|
+
const AssetSourceComponent = assetSource.component, assetSourceComponent = /* @__PURE__ */ jsx(AssetSourceComponent, { assetSource, action: "upload", onSelect: (assets_0) => handleSelectAssetsFromSource(assets_0, schemaType_0, key_0), accept: "*/*", onClose: noop$6, selectedAssets: [], selectionType: "single", uploader }, key_0);
|
|
19952
19960
|
return [...prev, assetSourceComponent];
|
|
19953
19961
|
});
|
|
19954
19962
|
const unsubscribe = uploader.subscribe((event_4) => {
|
|
@@ -20055,10 +20063,10 @@ function ArrayOfObjectsField(props2) {
|
|
|
20055
20063
|
function _temp3$F(_file) {
|
|
20056
20064
|
console.error(_file.error);
|
|
20057
20065
|
}
|
|
20058
|
-
function _temp2$
|
|
20066
|
+
function _temp2$1t(item) {
|
|
20059
20067
|
return ensureKey(item);
|
|
20060
20068
|
}
|
|
20061
|
-
function _temp$
|
|
20069
|
+
function _temp$3x(patch2) {
|
|
20062
20070
|
return patch2.type === "unset" && patch2.path.length === 1;
|
|
20063
20071
|
}
|
|
20064
20072
|
function RenderInput$3({
|
|
@@ -20149,7 +20157,7 @@ function ArrayOfPrimitivesField(props2) {
|
|
|
20149
20157
|
let t3;
|
|
20150
20158
|
$[7] !== member.field.value || $[8] !== member.name || $[9] !== onChange ? (t3 = (event_1) => {
|
|
20151
20159
|
const patches = PatchEvent.from(event_1).patches;
|
|
20152
|
-
if (patches.some(_temp$
|
|
20160
|
+
if (patches.some(_temp$3w)) {
|
|
20153
20161
|
const result = applyAll(member.field.value || [], patches);
|
|
20154
20162
|
if (Array.isArray(result) && !result.length) {
|
|
20155
20163
|
onChange(PatchEvent.from(unset([member.name])));
|
|
@@ -20244,7 +20252,7 @@ function ArrayOfPrimitivesField(props2) {
|
|
|
20244
20252
|
file: file_0,
|
|
20245
20253
|
schemaType: schemaType_0,
|
|
20246
20254
|
uploader
|
|
20247
|
-
} = t212, events$ = uploader.upload(client, file_0, schemaType_0).pipe(map(_temp2$
|
|
20255
|
+
} = t212, events$ = uploader.upload(client, file_0, schemaType_0).pipe(map(_temp2$1s), tap((event_4) => handleChange(event_4.patches)));
|
|
20248
20256
|
uploadSubscriptions.current && uploadSubscriptions.current.unsubscribe(), uploadSubscriptions.current = events$.subscribe();
|
|
20249
20257
|
}, $[51] = client, $[52] = handleChange, $[53] = t20) : t20 = $[53];
|
|
20250
20258
|
const handleUpload = t20, t21 = member.field.value, t22 = member.field.displayInlineChanges ?? !1;
|
|
@@ -20292,10 +20300,10 @@ function ArrayOfPrimitivesField(props2) {
|
|
|
20292
20300
|
let t27;
|
|
20293
20301
|
return $[110] !== handleChange || $[111] !== onFieldGroupSelect || $[112] !== onPathBlur || $[113] !== onPathFocus || $[114] !== onPathOpen || $[115] !== onSetFieldSetCollapsed || $[116] !== onSetPathCollapsed || $[117] !== t26 ? (t27 = /* @__PURE__ */ jsx(FormCallbacksProvider, { onFieldGroupSelect, onChange: handleChange, onPathOpen, onSetFieldSetCollapsed, onSetPathCollapsed, onPathBlur, onPathFocus, children: t26 }), $[110] = handleChange, $[111] = onFieldGroupSelect, $[112] = onPathBlur, $[113] = onPathFocus, $[114] = onPathOpen, $[115] = onSetFieldSetCollapsed, $[116] = onSetPathCollapsed, $[117] = t26, $[118] = t27) : t27 = $[118], t27;
|
|
20294
20302
|
}
|
|
20295
|
-
function _temp2$
|
|
20303
|
+
function _temp2$1s(uploadProgressEvent) {
|
|
20296
20304
|
return PatchEvent.from(uploadProgressEvent.patches || []);
|
|
20297
20305
|
}
|
|
20298
|
-
function _temp$
|
|
20306
|
+
function _temp$3w(patch2) {
|
|
20299
20307
|
return patch2.type === "unset" && patch2.path.length === 1;
|
|
20300
20308
|
}
|
|
20301
20309
|
function RenderInput$2({
|
|
@@ -20547,7 +20555,7 @@ function PrimitiveField(props2) {
|
|
|
20547
20555
|
}, $[23] = handleBlur, $[24] = handleFocus, $[25] = handleNativeChange, $[26] = member.field.id, $[27] = member.field.schemaType.placeholder, $[28] = t10, $[29] = t7, $[30] = t8, $[31] = t11) : t11 = $[31];
|
|
20548
20556
|
const elementProps = t11;
|
|
20549
20557
|
let t12;
|
|
20550
|
-
$[32] !== member.field.validation ? (t12 = member.field.validation.filter(_temp$
|
|
20558
|
+
$[32] !== member.field.validation ? (t12 = member.field.validation.filter(_temp$3v).map(_temp2$1r).join(`
|
|
20551
20559
|
`) || void 0, $[32] = member.field.validation, $[33] = t12) : t12 = $[33];
|
|
20552
20560
|
const validationError = t12, t13 = member.field.value, t14 = member.field.schemaType, t15 = member.field.displayInlineChanges ?? !1;
|
|
20553
20561
|
let t16;
|
|
@@ -20576,10 +20584,10 @@ function PrimitiveField(props2) {
|
|
|
20576
20584
|
let t21;
|
|
20577
20585
|
return $[55] !== fieldActions || $[56] !== member.field.changed || $[57] !== member.field.id || $[58] !== member.field.level || $[59] !== member.field.path || $[60] !== member.field.presence || $[61] !== member.field.schemaType.description || $[62] !== member.field.schemaType.title || $[63] !== member.field.validation || $[64] !== member.index || $[65] !== member.name || $[66] !== renderField || $[67] !== t17 || $[68] !== t18 || $[69] !== t19 || $[70] !== t20 ? (t21 = /* @__PURE__ */ jsx(RenderField, { actions: fieldActions, changed: member.field.changed, description: member.field.schemaType.description, index: member.index, inputId: member.field.id, inputProps: t17, level: member.field.level, name: member.name, path: member.field.path, presence: member.field.presence, schemaType: t18, title: member.field.schemaType.title, validation: member.field.validation, value: t19, render: renderField, children: t20 }), $[55] = fieldActions, $[56] = member.field.changed, $[57] = member.field.id, $[58] = member.field.level, $[59] = member.field.path, $[60] = member.field.presence, $[61] = member.field.schemaType.description, $[62] = member.field.schemaType.title, $[63] = member.field.validation, $[64] = member.index, $[65] = member.name, $[66] = renderField, $[67] = t17, $[68] = t18, $[69] = t19, $[70] = t20, $[71] = t21) : t21 = $[71], t21;
|
|
20578
20586
|
}
|
|
20579
|
-
function _temp2$
|
|
20587
|
+
function _temp2$1r(item_0) {
|
|
20580
20588
|
return item_0.message;
|
|
20581
20589
|
}
|
|
20582
|
-
function _temp$
|
|
20590
|
+
function _temp$3v(item) {
|
|
20583
20591
|
return item.level === "error";
|
|
20584
20592
|
}
|
|
20585
20593
|
function RenderInput({
|
|
@@ -20759,7 +20767,7 @@ function UntypedValueInput(t0) {
|
|
|
20759
20767
|
let t6;
|
|
20760
20768
|
$[13] !== isSingleValidType || $[14] !== t ? (t6 = !isSingleValidType && /* @__PURE__ */ jsx(Text$1, { as: "p", muted: !0, size: 1, children: t("inputs.untyped-value.details.multi-type-description") }), $[13] = isSingleValidType, $[14] = t, $[15] = t6) : t6 = $[15];
|
|
20761
20769
|
let t7;
|
|
20762
|
-
$[16] !== isSingleValidType || $[17] !== validTypes ? (t7 = !isSingleValidType && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp$
|
|
20770
|
+
$[16] !== isSingleValidType || $[17] !== validTypes ? (t7 = !isSingleValidType && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp$3u) }), $[16] = isSingleValidType, $[17] = validTypes, $[18] = t7) : t7 = $[18];
|
|
20763
20771
|
let t8;
|
|
20764
20772
|
$[19] !== t ? (t8 = t("inputs.untyped-value.details.json-dump-prefix"), $[19] = t, $[20] = t8) : t8 = $[20];
|
|
20765
20773
|
let t9;
|
|
@@ -20798,7 +20806,7 @@ function UntypedValueInput(t0) {
|
|
|
20798
20806
|
let t19;
|
|
20799
20807
|
return $[53] !== t18 || $[54] !== t2 ? (t19 = /* @__PURE__ */ jsx(Alert, { status: "warning", title: t2, children: t18 }), $[53] = t18, $[54] = t2, $[55] = t19) : t19 = $[55], t19;
|
|
20800
20808
|
}
|
|
20801
|
-
function _temp$
|
|
20809
|
+
function _temp$3u(validType) {
|
|
20802
20810
|
return /* @__PURE__ */ jsx(Text$1, { as: "li", muted: !0, size: 1, children: /* @__PURE__ */ jsx("code", { children: validType }) }, validType);
|
|
20803
20811
|
}
|
|
20804
20812
|
function getConverters(value, actualType, validTypes) {
|
|
@@ -20815,7 +20823,7 @@ const InvalidValueInput = forwardRef((props2, ref) => {
|
|
|
20815
20823
|
validTypes,
|
|
20816
20824
|
onChange
|
|
20817
20825
|
} = props2;
|
|
20818
|
-
useImperativeHandle(ref, _temp2$
|
|
20826
|
+
useImperativeHandle(ref, _temp2$1q);
|
|
20819
20827
|
let t0;
|
|
20820
20828
|
$[0] !== onChange ? (t0 = () => {
|
|
20821
20829
|
onChange(PatchEvent.from(unset()));
|
|
@@ -20912,11 +20920,11 @@ function ConvertButton(t0) {
|
|
|
20912
20920
|
let t3;
|
|
20913
20921
|
return $[7] !== handleClick || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(Button, { onClick: handleClick, text: t2 }), $[7] = handleClick, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
20914
20922
|
}
|
|
20915
|
-
function _temp$
|
|
20923
|
+
function _temp$3t() {
|
|
20916
20924
|
}
|
|
20917
|
-
function _temp2$
|
|
20925
|
+
function _temp2$1q() {
|
|
20918
20926
|
return {
|
|
20919
|
-
focus: _temp$
|
|
20927
|
+
focus: _temp$3t
|
|
20920
20928
|
};
|
|
20921
20929
|
}
|
|
20922
20930
|
function _temp3$E(validType) {
|
|
@@ -21155,7 +21163,7 @@ function FormFieldValidationStatus(props2) {
|
|
|
21155
21163
|
__unstable_showSummary: showSummary,
|
|
21156
21164
|
fontSize,
|
|
21157
21165
|
placement
|
|
21158
|
-
} = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$u : t0, hasErrors = validation2.some(_temp$
|
|
21166
|
+
} = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$u : t0, hasErrors = validation2.some(_temp$3s), hasWarnings = validation2.some(_temp2$1p), status = hasErrors ? "error" : hasWarnings ? "warning" : "info", StatusIcon = VALIDATION_ICONS[status];
|
|
21159
21167
|
let t1;
|
|
21160
21168
|
$[0] !== showSummary || $[1] !== validation2 ? (t1 = showSummary && /* @__PURE__ */ jsx(FormFieldValidationSummary, { validation: validation2 }), $[0] = showSummary, $[1] = validation2, $[2] = t1) : t1 = $[2];
|
|
21161
21169
|
let t2;
|
|
@@ -21177,10 +21185,10 @@ function FormFieldValidationStatus(props2) {
|
|
|
21177
21185
|
function _temp3$D(item, itemIndex) {
|
|
21178
21186
|
return /* @__PURE__ */ jsx(FormFieldValidationStatusItem, { validation: item }, itemIndex);
|
|
21179
21187
|
}
|
|
21180
|
-
function _temp2$
|
|
21188
|
+
function _temp2$1p(v_0) {
|
|
21181
21189
|
return v_0.level === "warning";
|
|
21182
21190
|
}
|
|
21183
|
-
function _temp$
|
|
21191
|
+
function _temp$3s(v) {
|
|
21184
21192
|
return v.level === "error";
|
|
21185
21193
|
}
|
|
21186
21194
|
function FormFieldValidationStatusItem(props2) {
|
|
@@ -21595,7 +21603,7 @@ function DuplicateKeysAlert(props2) {
|
|
|
21595
21603
|
} = props2;
|
|
21596
21604
|
let t0;
|
|
21597
21605
|
$[0] !== error.duplicates || $[1] !== onChange ? (t0 = () => {
|
|
21598
|
-
onChange(PatchEvent.from((error.duplicates || []).map(_temp$
|
|
21606
|
+
onChange(PatchEvent.from((error.duplicates || []).map(_temp$3r)));
|
|
21599
21607
|
}, $[0] = error.duplicates, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21600
21608
|
const handleFixDuplicateKeys = t0, {
|
|
21601
21609
|
t
|
|
@@ -21631,7 +21639,7 @@ function DuplicateKeysAlert(props2) {
|
|
|
21631
21639
|
let t14;
|
|
21632
21640
|
return $[31] !== error.schemaType.description || $[32] !== error.schemaType.title || $[33] !== t13 ? (t14 = /* @__PURE__ */ jsx(FormField, { title: t1, description: t2, children: t13 }), $[31] = error.schemaType.description, $[32] = error.schemaType.title, $[33] = t13, $[34] = t14) : t14 = $[34], t14;
|
|
21633
21641
|
}
|
|
21634
|
-
function _temp$
|
|
21642
|
+
function _temp$3r(t0) {
|
|
21635
21643
|
const [index, key] = t0;
|
|
21636
21644
|
return set(`${key}_deduped_${index}`, [index, "_key"]);
|
|
21637
21645
|
}
|
|
@@ -21642,7 +21650,7 @@ function MissingKeysAlert(props2) {
|
|
|
21642
21650
|
} = props2;
|
|
21643
21651
|
let t0;
|
|
21644
21652
|
$[0] !== error.value || $[1] !== onChange ? (t0 = () => {
|
|
21645
|
-
onChange(PatchEvent.from((error.value || []).map(_temp$
|
|
21653
|
+
onChange(PatchEvent.from((error.value || []).map(_temp$3q)));
|
|
21646
21654
|
}, $[0] = error.value, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21647
21655
|
const handleFixMissingKeys = t0, {
|
|
21648
21656
|
t
|
|
@@ -21678,7 +21686,7 @@ function MissingKeysAlert(props2) {
|
|
|
21678
21686
|
let t14;
|
|
21679
21687
|
return $[31] !== error.schemaType.description || $[32] !== error.schemaType.title || $[33] !== t13 ? (t14 = /* @__PURE__ */ jsx(FormField, { title: t1, description: t2, children: t13 }), $[31] = error.schemaType.description, $[32] = error.schemaType.title, $[33] = t13, $[34] = t14) : t14 = $[34], t14;
|
|
21680
21688
|
}
|
|
21681
|
-
function _temp$
|
|
21689
|
+
function _temp$3q(val, i) {
|
|
21682
21690
|
return setIfMissing(randomKey$1(), [i, "_key"]);
|
|
21683
21691
|
}
|
|
21684
21692
|
function MixedArrayAlert(props2) {
|
|
@@ -21688,7 +21696,7 @@ function MixedArrayAlert(props2) {
|
|
|
21688
21696
|
} = props2;
|
|
21689
21697
|
let t0;
|
|
21690
21698
|
$[0] !== error.value || $[1] !== onChange ? (t0 = () => {
|
|
21691
|
-
const patches = (error.value || []).flatMap(_temp$
|
|
21699
|
+
const patches = (error.value || []).flatMap(_temp$3p).reverse().map(_temp2$1o);
|
|
21692
21700
|
onChange(PatchEvent.from(patches));
|
|
21693
21701
|
}, $[0] = error.value, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21694
21702
|
const handleRemoveNonObjectValues = t0, {
|
|
@@ -21720,10 +21728,10 @@ function MixedArrayAlert(props2) {
|
|
|
21720
21728
|
let t13;
|
|
21721
21729
|
return $[28] !== error.schemaType.description || $[29] !== error.schemaType.title || $[30] !== t12 ? (t13 = /* @__PURE__ */ jsx(FormField, { title: t1, description: t2, children: t12 }), $[28] = error.schemaType.description, $[29] = error.schemaType.title, $[30] = t12, $[31] = t13) : t13 = $[31], t13;
|
|
21722
21730
|
}
|
|
21723
|
-
function _temp2$
|
|
21731
|
+
function _temp2$1o(index_0) {
|
|
21724
21732
|
return unset([index_0]);
|
|
21725
21733
|
}
|
|
21726
|
-
function _temp$
|
|
21734
|
+
function _temp$3p(item, index) {
|
|
21727
21735
|
return isPlainObject$1(item) ? [] : [index];
|
|
21728
21736
|
}
|
|
21729
21737
|
function MemberFieldError(props2) {
|
|
@@ -22073,7 +22081,7 @@ function fileTarget(Component2) {
|
|
|
22073
22081
|
}, t6 = [pasteTarget, handlePaste], $[16] = handlePaste, $[17] = pasteTarget, $[18] = t5, $[19] = t6) : (t5 = $[18], t6 = $[19]), useEffect(t5, t6);
|
|
22074
22082
|
let t7;
|
|
22075
22083
|
$[20] !== emitFiles || $[21] !== onFiles || $[22] !== onFilesOut ? (t7 = (event_2) => {
|
|
22076
|
-
if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp$
|
|
22084
|
+
if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp$3o).some(_temp2$1n))
|
|
22077
22085
|
return;
|
|
22078
22086
|
event_2.preventDefault(), event_2.stopPropagation();
|
|
22079
22087
|
const dataTransfer = event_2.nativeEvent.dataTransfer;
|
|
@@ -22135,13 +22143,13 @@ function select(el) {
|
|
|
22135
22143
|
const sel = window.getSelection();
|
|
22136
22144
|
sel?.removeAllRanges(), sel?.addRange(range2);
|
|
22137
22145
|
}
|
|
22138
|
-
function _temp$
|
|
22146
|
+
function _temp$3o(item) {
|
|
22139
22147
|
return {
|
|
22140
22148
|
type: item.type,
|
|
22141
22149
|
kind: item.kind
|
|
22142
22150
|
};
|
|
22143
22151
|
}
|
|
22144
|
-
function _temp2$
|
|
22152
|
+
function _temp2$1n(item_0) {
|
|
22145
22153
|
return isPortableTextItem(item_0);
|
|
22146
22154
|
}
|
|
22147
22155
|
function _temp3$C(item_1) {
|
|
@@ -22179,7 +22187,7 @@ function UploadDestinationPicker(props2) {
|
|
|
22179
22187
|
onClose
|
|
22180
22188
|
} = props2, {
|
|
22181
22189
|
t
|
|
22182
|
-
} = useTranslation(), assetSourcesWithUpload = assetSources.filter(_temp$
|
|
22190
|
+
} = useTranslation(), assetSourcesWithUpload = assetSources.filter(_temp$3n);
|
|
22183
22191
|
let t0;
|
|
22184
22192
|
$[0] !== assetSources || $[1] !== onSelectAssetSource ? (t0 = (event) => {
|
|
22185
22193
|
const sourceName2 = event.currentTarget.getAttribute("data-asset-source-name"), assetSource = assetSources.find((source) => source.name === sourceName2);
|
|
@@ -22213,7 +22221,7 @@ function UploadDestinationPicker(props2) {
|
|
|
22213
22221
|
let t12;
|
|
22214
22222
|
return $[16] !== T0 || $[17] !== onClose || $[18] !== t11 || $[19] !== t3 ? (t12 = /* @__PURE__ */ jsx(T0, { onClickOutside: onClose, onClose, id: t2, header: t3, width: t4, bodyHeight: t5, children: t11 }), $[16] = T0, $[17] = onClose, $[18] = t11, $[19] = t3, $[20] = t12) : t12 = $[20], t12;
|
|
22215
22223
|
}
|
|
22216
|
-
function _temp$
|
|
22224
|
+
function _temp$3n(s) {
|
|
22217
22225
|
return !!s.Uploader;
|
|
22218
22226
|
}
|
|
22219
22227
|
const Overlay$2 = styled(Layer)`
|
|
@@ -22262,13 +22270,13 @@ function uploadTarget$1(Component2) {
|
|
|
22262
22270
|
title: t("inputs.array.error.cannot-upload-unable-to-convert", {
|
|
22263
22271
|
count: rejected.length
|
|
22264
22272
|
}),
|
|
22265
|
-
description: rejected.map(_temp$
|
|
22273
|
+
description: rejected.map(_temp$3m)
|
|
22266
22274
|
});
|
|
22267
22275
|
}, $[10] = pushToast, $[11] = t, $[12] = t1) : t1 = $[12];
|
|
22268
22276
|
const alertRejectedFiles = t1;
|
|
22269
22277
|
let t2;
|
|
22270
22278
|
$[13] !== alertRejectedFiles || $[14] !== formBuilder || $[15] !== onSelectFile || $[16] !== types ? (t2 = (files) => {
|
|
22271
|
-
const filesAndAssetSources = getFilesAndAssetSources(files, types, assetSourceDestinationName.current, formBuilder), ready = filesAndAssetSources.filter(_temp2$
|
|
22279
|
+
const filesAndAssetSources = getFilesAndAssetSources(files, types, assetSourceDestinationName.current, formBuilder), ready = filesAndAssetSources.filter(_temp2$1m), rejected_0 = filesAndAssetSources.filter(_temp3$B);
|
|
22272
22280
|
rejected_0.length > 0 && alertRejectedFiles(rejected_0), onSelectFile && ready.forEach((entry_1) => {
|
|
22273
22281
|
onSelectFile({
|
|
22274
22282
|
assetSource: entry_1.assetSource,
|
|
@@ -22375,7 +22383,7 @@ function getFilesAndAssetSources(files, types, assetSourceDestinationName, formB
|
|
|
22375
22383
|
};
|
|
22376
22384
|
});
|
|
22377
22385
|
}
|
|
22378
|
-
function _temp$
|
|
22386
|
+
function _temp$3m(task, i) {
|
|
22379
22387
|
return /* @__PURE__ */ jsxs(Flex, { gap: 2, padding: 2, children: [
|
|
22380
22388
|
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { weight: "medium", children: task.file.name }) }),
|
|
22381
22389
|
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text$1, { size: 1, children: [
|
|
@@ -22385,7 +22393,7 @@ function _temp$3n(task, i) {
|
|
|
22385
22393
|
] }) })
|
|
22386
22394
|
] }, i);
|
|
22387
22395
|
}
|
|
22388
|
-
function _temp2$
|
|
22396
|
+
function _temp2$1m(entry) {
|
|
22389
22397
|
return entry.assetSource !== null;
|
|
22390
22398
|
}
|
|
22391
22399
|
function _temp3$B(entry_0) {
|
|
@@ -22660,7 +22668,7 @@ function ArrayOfObjectsFunctions(props2) {
|
|
|
22660
22668
|
let t6;
|
|
22661
22669
|
$[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = ["top"], $[18] = t6) : t6 = $[18];
|
|
22662
22670
|
let t7;
|
|
22663
|
-
$[19] !== props2.schemaType.options?.insertMenu?.views ? (t7 = props2.schemaType.options?.insertMenu?.views?.some(_temp$
|
|
22671
|
+
$[19] !== props2.schemaType.options?.insertMenu?.views ? (t7 = props2.schemaType.options?.insertMenu?.views?.some(_temp$3l), $[19] = props2.schemaType.options?.insertMenu?.views, $[20] = t7) : t7 = $[20];
|
|
22664
22672
|
let t8;
|
|
22665
22673
|
$[21] !== gridElement || $[22] !== popoverToggleElement || $[23] !== t7 ? (t8 = {
|
|
22666
22674
|
placement: "bottom",
|
|
@@ -22704,7 +22712,7 @@ function ArrayOfObjectsFunctions(props2) {
|
|
|
22704
22712
|
children
|
|
22705
22713
|
] }), $[41] = children, $[42] = t11, $[43] = t12) : t12 = $[43], t12;
|
|
22706
22714
|
}
|
|
22707
|
-
function _temp$
|
|
22715
|
+
function _temp$3l(view) {
|
|
22708
22716
|
return view.name === "grid";
|
|
22709
22717
|
}
|
|
22710
22718
|
const DragHandleButton = styled(Button)((props2) => {
|
|
@@ -22858,7 +22866,7 @@ function IncompatibleItemType$1(props2) {
|
|
|
22858
22866
|
const handleKeyDown = t2;
|
|
22859
22867
|
let t3;
|
|
22860
22868
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
22861
|
-
setShowDetails(_temp$
|
|
22869
|
+
setShowDetails(_temp$3k);
|
|
22862
22870
|
}, $[7] = t3) : t3 = $[7];
|
|
22863
22871
|
const handleShowDetails = t3;
|
|
22864
22872
|
let t4;
|
|
@@ -22924,7 +22932,7 @@ function IncompatibleItemType$1(props2) {
|
|
|
22924
22932
|
let t23;
|
|
22925
22933
|
return $[51] !== showDetails || $[52] !== t17 || $[53] !== t22 ? (t23 = /* @__PURE__ */ jsx(Popover, { open: showDetails, ref: popoverRef, onKeyDown: handleKeyDown, portal: !0, constrainSize: !0, tone: "default", content: t17, children: t22 }), $[51] = showDetails, $[52] = t17, $[53] = t22, $[54] = t23) : t23 = $[54], t23;
|
|
22926
22934
|
}
|
|
22927
|
-
function _temp$
|
|
22935
|
+
function _temp$3k(v) {
|
|
22928
22936
|
return !v;
|
|
22929
22937
|
}
|
|
22930
22938
|
const MENU_POPOVER_PROPS$8 = {
|
|
@@ -23077,20 +23085,20 @@ function useValuePreview(props2) {
|
|
|
23077
23085
|
viewOptions: {
|
|
23078
23086
|
ordering
|
|
23079
23087
|
}
|
|
23080
|
-
}).pipe(map(_temp$
|
|
23088
|
+
}).pipe(map(_temp$3j), catchError(_temp2$1l)), $[3] = chosenPerspectiveStack, $[4] = observeForPreview, $[5] = ordering, $[6] = perspectiveStack, $[7] = previewValue, $[8] = schemaType, $[9] = t3;
|
|
23081
23089
|
} else
|
|
23082
23090
|
t3 = $[9];
|
|
23083
23091
|
t2 = t3;
|
|
23084
23092
|
}
|
|
23085
23093
|
return useObservable(t2, INITIAL_STATE$9);
|
|
23086
23094
|
}
|
|
23087
|
-
function _temp2$
|
|
23095
|
+
function _temp2$1l(error) {
|
|
23088
23096
|
return of({
|
|
23089
23097
|
isLoading: !1,
|
|
23090
23098
|
error
|
|
23091
23099
|
});
|
|
23092
23100
|
}
|
|
23093
|
-
function _temp$
|
|
23101
|
+
function _temp$3j(event) {
|
|
23094
23102
|
return {
|
|
23095
23103
|
isLoading: !1,
|
|
23096
23104
|
value: event.snapshot || void 0
|
|
@@ -23305,10 +23313,10 @@ function DialogBreadcrumbs$1(props2) {
|
|
|
23305
23313
|
nodes
|
|
23306
23314
|
] }), $[26] = nodes, $[27] = t9, $[28] = t11) : t11 = $[28], t11;
|
|
23307
23315
|
}
|
|
23308
|
-
const noop$
|
|
23316
|
+
const noop$3 = () => {
|
|
23309
23317
|
}, UNDEFINED = (
|
|
23310
23318
|
/*#__NOINLINE__*/
|
|
23311
|
-
noop$
|
|
23319
|
+
noop$3()
|
|
23312
23320
|
), OBJECT = Object, isUndefined = (v) => v === UNDEFINED, isFunction = (v) => typeof v == "function", mergeObjects = (a, b) => ({
|
|
23313
23321
|
...a,
|
|
23314
23322
|
...b
|
|
@@ -23357,8 +23365,8 @@ const isOnline = () => online, [onWindowEvent, offWindowEvent] = isWindowDefined
|
|
|
23357
23365
|
window.addEventListener.bind(window),
|
|
23358
23366
|
window.removeEventListener.bind(window)
|
|
23359
23367
|
] : [
|
|
23360
|
-
noop$
|
|
23361
|
-
noop$
|
|
23368
|
+
noop$3,
|
|
23369
|
+
noop$3
|
|
23362
23370
|
], isVisible = () => {
|
|
23363
23371
|
const visibilityState = isDocumentDefined && document.visibilityState;
|
|
23364
23372
|
return isUndefined(visibilityState) || visibilityState !== "hidden";
|
|
@@ -23489,7 +23497,7 @@ const revalidateAllKeys = (revalidators, type) => {
|
|
|
23489
23497
|
}, initCache = (provider, options) => {
|
|
23490
23498
|
if (!SWRGlobalState.has(provider)) {
|
|
23491
23499
|
const opts = mergeObjects(defaultConfigOptions, options), EVENT_REVALIDATORS = {}, mutate2 = internalMutate.bind(UNDEFINED, provider);
|
|
23492
|
-
let unmount = noop$
|
|
23500
|
+
let unmount = noop$3;
|
|
23493
23501
|
const subscriptions = {}, subscribe2 = (key, callback) => {
|
|
23494
23502
|
const subs = subscriptions[key] || [];
|
|
23495
23503
|
return subscriptions[key] = subs, subs.push(callback), () => subs.splice(subs.indexOf(callback), 1);
|
|
@@ -23532,11 +23540,11 @@ const revalidateAllKeys = (revalidators, type) => {
|
|
|
23532
23540
|
}, compare = (currentData, newData) => stableHash(currentData) == stableHash(newData), [cache, mutate] = initCache(/* @__PURE__ */ new Map()), defaultConfig = mergeObjects(
|
|
23533
23541
|
{
|
|
23534
23542
|
// events
|
|
23535
|
-
onLoadingSlow: noop$
|
|
23536
|
-
onSuccess: noop$
|
|
23537
|
-
onError: noop$
|
|
23543
|
+
onLoadingSlow: noop$3,
|
|
23544
|
+
onSuccess: noop$3,
|
|
23545
|
+
onError: noop$3,
|
|
23538
23546
|
onErrorRetry,
|
|
23539
|
-
onDiscarded: noop$
|
|
23547
|
+
onDiscarded: noop$3,
|
|
23540
23548
|
// switches
|
|
23541
23549
|
revalidateOnFocus: !0,
|
|
23542
23550
|
revalidateOnReconnect: !0,
|
|
@@ -23985,7 +23993,7 @@ function useImageObjectUrl(url) {
|
|
|
23985
23993
|
let t2, t3;
|
|
23986
23994
|
return $[5] !== cacheKey || $[6] !== token || $[7] !== url ? (t2 = () => {
|
|
23987
23995
|
if (!cacheKey) {
|
|
23988
|
-
setState(_temp$
|
|
23996
|
+
setState(_temp$3i);
|
|
23989
23997
|
return;
|
|
23990
23998
|
}
|
|
23991
23999
|
let entry_0 = requestCache.get(cacheKey);
|
|
@@ -23998,7 +24006,7 @@ function useImageObjectUrl(url) {
|
|
|
23998
24006
|
};
|
|
23999
24007
|
}, t3 = [cacheKey, token, url], $[5] = cacheKey, $[6] = token, $[7] = url, $[8] = t2, $[9] = t3) : (t2 = $[8], t3 = $[9]), useEffect(t2, t3), state;
|
|
24000
24008
|
}
|
|
24001
|
-
function _temp$
|
|
24009
|
+
function _temp$3i(prev) {
|
|
24002
24010
|
return prev.objectUrl || prev.isLoading || prev.error ? IDLE_RESULT : prev;
|
|
24003
24011
|
}
|
|
24004
24012
|
function useImageUrl(params) {
|
|
@@ -24332,7 +24340,7 @@ function FormInputInner(props2) {
|
|
|
24332
24340
|
if ($[58] !== absolutePath || $[59] !== props2.members || $[60] !== props2.path || $[61] !== t) {
|
|
24333
24341
|
t6 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
24334
24342
|
bb1: {
|
|
24335
|
-
const childPath_0 = trimLeft(props2.path, absolutePath), fieldMember = props2.members.find((member_0) => member_0.kind == "field" && childPath_0[0] === member_0.name), fieldSetMember = props2.members.filter(_temp$
|
|
24343
|
+
const childPath_0 = trimLeft(props2.path, absolutePath), fieldMember = props2.members.find((member_0) => member_0.kind == "field" && childPath_0[0] === member_0.name), fieldSetMember = props2.members.filter(_temp$3h).flatMap(_temp2$1k).find((m) => m.kind === "field" && m.name === childPath_0[0]);
|
|
24336
24344
|
if (member_3 = fieldMember || fieldSetMember, !member_3) {
|
|
24337
24345
|
const fieldName = typeof childPath_0[0] == "string" ? childPath_0[0] : JSON.stringify(childPath_0[0]);
|
|
24338
24346
|
t6 = /* @__PURE__ */ jsx("div", { children: t("form.error.field-not-found", {
|
|
@@ -24351,10 +24359,10 @@ function FormInputInner(props2) {
|
|
|
24351
24359
|
}
|
|
24352
24360
|
throw new Error("FormInput can only be used with arrays or objects");
|
|
24353
24361
|
}
|
|
24354
|
-
function _temp2$
|
|
24362
|
+
function _temp2$1k(member_2) {
|
|
24355
24363
|
return member_2.kind === "fieldSet" && member_2.fieldSet?.members || [];
|
|
24356
24364
|
}
|
|
24357
|
-
function _temp$
|
|
24365
|
+
function _temp$3h(member_1) {
|
|
24358
24366
|
return member_1.kind === "fieldSet";
|
|
24359
24367
|
}
|
|
24360
24368
|
function NullRender() {
|
|
@@ -24501,14 +24509,14 @@ function PresenceTooltip(props2) {
|
|
|
24501
24509
|
items
|
|
24502
24510
|
} = props2;
|
|
24503
24511
|
let t0;
|
|
24504
|
-
$[0] !== items ? (t0 = items.map(_temp$
|
|
24512
|
+
$[0] !== items ? (t0 = items.map(_temp$3g), $[0] = items, $[1] = t0) : t0 = $[1];
|
|
24505
24513
|
let t1;
|
|
24506
24514
|
$[2] !== t0 ? (t1 = /* @__PURE__ */ jsx(Stack, { sizing: "border", children: t0 }), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
24507
24515
|
const content = t1;
|
|
24508
24516
|
let t2;
|
|
24509
24517
|
return $[4] !== children || $[5] !== content ? (t2 = /* @__PURE__ */ jsx(Tooltip, { content, placement: "top", portal: "documentScrollElement", children }), $[4] = children, $[5] = content, $[6] = t2) : t2 = $[6], t2;
|
|
24510
24518
|
}
|
|
24511
|
-
function _temp$
|
|
24519
|
+
function _temp$3g(item) {
|
|
24512
24520
|
return /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
|
|
24513
24521
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(UserAvatar, { user: item.user, status: "online" }) }),
|
|
24514
24522
|
/* @__PURE__ */ jsx(Text$1, { size: 1, children: item.user.displayName })
|
|
@@ -24524,7 +24532,7 @@ const FieldPresenceInner = memo(function(t0) {
|
|
|
24524
24532
|
} = t0, position = t1 === void 0 ? "inside" : t1, animateArrowFrom = t2 === void 0 ? "inside" : t2, maxAvatars = t3 === void 0 ? DEFAULT_MAX_AVATARS_FIELDS : t3, stack = t4 === void 0 ? !0 : t4;
|
|
24525
24533
|
let t5;
|
|
24526
24534
|
if ($[0] !== animateArrowFrom || $[1] !== maxAvatars || $[2] !== position || $[3] !== presence || $[4] !== stack) {
|
|
24527
|
-
const uniquePresence = uniqBy(presence || [], _temp$
|
|
24535
|
+
const uniquePresence = uniqBy(presence || [], _temp$3f), sorted = sortBy(uniquePresence, _temp2$1j), [hidden, visible] = stack ? splitRight(sorted, maxAvatars) : [[], sorted];
|
|
24528
24536
|
let t62;
|
|
24529
24537
|
$[6] !== animateArrowFrom || $[7] !== position ? (t62 = (_visible) => ({
|
|
24530
24538
|
key: _visible.user.id,
|
|
@@ -24572,10 +24580,10 @@ function _temp4$g(item) {
|
|
|
24572
24580
|
return item.user.id;
|
|
24573
24581
|
}
|
|
24574
24582
|
const FieldPresenceWithOverlay = FieldPresence;
|
|
24575
|
-
function _temp$
|
|
24583
|
+
function _temp$3f(item) {
|
|
24576
24584
|
return item.user.id;
|
|
24577
24585
|
}
|
|
24578
|
-
function _temp2$
|
|
24586
|
+
function _temp2$1j(_presence) {
|
|
24579
24587
|
return _presence.lastActiveAt;
|
|
24580
24588
|
}
|
|
24581
24589
|
function _temp3$A(av, i) {
|
|
@@ -24708,7 +24716,7 @@ const createIntersectionObserver = (options) => {
|
|
|
24708
24716
|
}, t8 = [], $[11] = t7, $[12] = t8) : (t7 = $[11], t8 = $[12]), useLayoutEffect(t7, t8);
|
|
24709
24717
|
const top = intersections["::top"], bottom2 = intersections["::bottom"];
|
|
24710
24718
|
let t9;
|
|
24711
|
-
$[13] !== bottom2 || $[14] !== intersections || $[15] !== regions || $[16] !== top ? (t9 = top && bottom2 ? regions.filter(_temp$
|
|
24719
|
+
$[13] !== bottom2 || $[14] !== intersections || $[15] !== regions || $[16] !== top ? (t9 = top && bottom2 ? regions.filter(_temp$3e).map((region_0) => {
|
|
24712
24720
|
const intersection2 = intersections[region_0.id];
|
|
24713
24721
|
if (!intersection2)
|
|
24714
24722
|
return null;
|
|
@@ -24757,7 +24765,7 @@ const createIntersectionObserver = (options) => {
|
|
|
24757
24765
|
t15
|
|
24758
24766
|
] }), $[36] = ref, $[37] = t10, $[38] = t11, $[39] = t13, $[40] = t14, $[41] = t15, $[42] = t16) : t16 = $[42], t16;
|
|
24759
24767
|
});
|
|
24760
|
-
function _temp$
|
|
24768
|
+
function _temp$3e(region) {
|
|
24761
24769
|
return region.presence?.length > 0;
|
|
24762
24770
|
}
|
|
24763
24771
|
const ITEM_TRANSITION = {
|
|
@@ -24843,7 +24851,7 @@ function StickyOverlay(props2) {
|
|
|
24843
24851
|
const regions = t1;
|
|
24844
24852
|
let t2;
|
|
24845
24853
|
$[3] !== margins ? (t2 = (regionsWithIntersectionDetails, containerWidth) => {
|
|
24846
|
-
const grouped = group(regionsWithIntersectionDetails.filter(_temp$
|
|
24854
|
+
const grouped = group(regionsWithIntersectionDetails.filter(_temp$3d)), topSpacing = sum(grouped.top.map(_temp2$1i)), bottomSpacing = sum([...grouped.inside, ...grouped.bottom].map(_temp3$z)), counts = grouped.inside.reduce(_temp4$f, {
|
|
24847
24855
|
nearTop: 0,
|
|
24848
24856
|
nearBottom: 0
|
|
24849
24857
|
});
|
|
@@ -24872,10 +24880,10 @@ function _temp4$f(_counts, withIntersection) {
|
|
|
24872
24880
|
function _temp3$z(n_0) {
|
|
24873
24881
|
return n_0.region.rect.height + n_0.spacerHeight;
|
|
24874
24882
|
}
|
|
24875
|
-
function _temp2$
|
|
24883
|
+
function _temp2$1i(n) {
|
|
24876
24884
|
return n.region.rect.height + n.spacerHeight;
|
|
24877
24885
|
}
|
|
24878
|
-
function _temp$
|
|
24886
|
+
function _temp$3d(item) {
|
|
24879
24887
|
return item.region.presence.length > 0;
|
|
24880
24888
|
}
|
|
24881
24889
|
const EMPTY_ARRAY$o = [], PresenceDock = memo(function(props2) {
|
|
@@ -25366,7 +25374,7 @@ function TreeEditingMenuItem(props2) {
|
|
|
25366
25374
|
$[13] !== item.path || $[14] !== onPathSelect ? (t6 = () => onPathSelect(item.path), $[13] = item.path, $[14] = onPathSelect, $[15] = t6) : t6 = $[15];
|
|
25367
25375
|
const handleClick = t6;
|
|
25368
25376
|
let t7;
|
|
25369
|
-
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$
|
|
25377
|
+
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$3c), $[16] = t7) : t7 = $[16];
|
|
25370
25378
|
const handleExpandClick = t7;
|
|
25371
25379
|
let t8, t9;
|
|
25372
25380
|
$[17] !== item || $[18] !== selectedPath ? (t8 = () => {
|
|
@@ -25402,7 +25410,7 @@ function TreeEditingMenuItem(props2) {
|
|
|
25402
25410
|
t18
|
|
25403
25411
|
] }, stringPath), $[53] = open, $[54] = stringPath, $[55] = t17, $[56] = t18, $[57] = t19) : t19 = $[57], t19;
|
|
25404
25412
|
}
|
|
25405
|
-
function _temp$
|
|
25413
|
+
function _temp$3c(v) {
|
|
25406
25414
|
return !v;
|
|
25407
25415
|
}
|
|
25408
25416
|
const TreeEditingMenu = memo(function(props2) {
|
|
@@ -25493,7 +25501,7 @@ memo(function(props2) {
|
|
|
25493
25501
|
siblings
|
|
25494
25502
|
} = props2, [scrollElement, setScrollElement] = useState(null), containerElementRef = useRef(null), [open, setOpen] = useState(!1);
|
|
25495
25503
|
let t0;
|
|
25496
|
-
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setOpen(_temp$
|
|
25504
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setOpen(_temp$3b), $[0] = t0) : t0 = $[0];
|
|
25497
25505
|
const toggleOpen = t0;
|
|
25498
25506
|
let t1;
|
|
25499
25507
|
$[1] !== setParentScrollElement ? (t1 = (el) => {
|
|
@@ -25520,7 +25528,7 @@ memo(function(props2) {
|
|
|
25520
25528
|
t6
|
|
25521
25529
|
] }), $[24] = t2, $[25] = t6, $[26] = t7) : t7 = $[26], t7;
|
|
25522
25530
|
});
|
|
25523
|
-
function _temp$
|
|
25531
|
+
function _temp$3b(v) {
|
|
25524
25532
|
return !v;
|
|
25525
25533
|
}
|
|
25526
25534
|
function SourceProvider(t0) {
|
|
@@ -25772,7 +25780,7 @@ function GridItem(props2) {
|
|
|
25772
25780
|
const presence = t7, childValidation = useChildValidation(path, !0);
|
|
25773
25781
|
let t8;
|
|
25774
25782
|
$[14] !== childValidation ? (t8 = childValidation.length === 0 ? null : /* @__PURE__ */ jsx(Box, { paddingX: 1, paddingY: 3, children: /* @__PURE__ */ jsx(FormFieldValidationStatus, { validation: childValidation, __unstable_showSummary: !0 }) }), $[14] = childValidation, $[15] = t8) : t8 = $[15];
|
|
25775
|
-
const validation2 = t8, hasErrors = childValidation.some(_temp$
|
|
25783
|
+
const validation2 = t8, hasErrors = childValidation.some(_temp$3a), hasWarnings = childValidation.some(_temp2$1h), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
|
|
25776
25784
|
let t10;
|
|
25777
25785
|
$[16] !== contextMenuButtonElement || $[17] !== handleInsert || $[18] !== insertableTypes || $[19] !== t9 ? (t10 = {
|
|
25778
25786
|
schemaTypes: insertableTypes,
|
|
@@ -25854,10 +25862,10 @@ function GridItem(props2) {
|
|
|
25854
25862
|
t22 = $[88];
|
|
25855
25863
|
return t22;
|
|
25856
25864
|
}
|
|
25857
|
-
function _temp2$
|
|
25865
|
+
function _temp2$1h(v_0) {
|
|
25858
25866
|
return v_0.level === "warning";
|
|
25859
25867
|
}
|
|
25860
|
-
function _temp$
|
|
25868
|
+
function _temp$3a(v) {
|
|
25861
25869
|
return v.level === "error";
|
|
25862
25870
|
}
|
|
25863
25871
|
const EMPTY$4 = [];
|
|
@@ -25883,9 +25891,9 @@ function GridArrayInput(props2) {
|
|
|
25883
25891
|
value: t1
|
|
25884
25892
|
} = props2, ArrayFunctions = t0 === void 0 ? ArrayOfObjectsFunctions : t0, value = t1 === void 0 ? EMPTY$4 : t1, {
|
|
25885
25893
|
t
|
|
25886
|
-
} = useTranslation(), sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp$
|
|
25894
|
+
} = useTranslation(), sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp$39;
|
|
25887
25895
|
let t2;
|
|
25888
|
-
$[0] !== members ? (t2 = members.map(_temp2$
|
|
25896
|
+
$[0] !== members ? (t2 = members.map(_temp2$1g), $[0] = members, $[1] = t2) : t2 = $[1];
|
|
25889
25897
|
const memberKeys = t2;
|
|
25890
25898
|
let t3;
|
|
25891
25899
|
$[2] !== members.length || $[3] !== schemaType.placeholder || $[4] !== t ? (t3 = members?.length === 0 && /* @__PURE__ */ jsx(Card, { padding: 3, border: !0, radius: 2, children: /* @__PURE__ */ jsx(Text$1, { align: "center", muted: !0, size: 1, children: schemaType.placeholder || /* @__PURE__ */ jsx(Fragment$1, { children: t("inputs.array.no-items-label") }) }) }), $[2] = members.length, $[3] = schemaType.placeholder, $[4] = t, $[5] = t3) : t3 = $[5];
|
|
@@ -25909,10 +25917,10 @@ function GridArrayInput(props2) {
|
|
|
25909
25917
|
t7
|
|
25910
25918
|
] }), $[37] = t6, $[38] = t7, $[39] = t8) : t8 = $[39], t8;
|
|
25911
25919
|
}
|
|
25912
|
-
function _temp2$
|
|
25920
|
+
function _temp2$1g(member) {
|
|
25913
25921
|
return member.key;
|
|
25914
25922
|
}
|
|
25915
|
-
function _temp$
|
|
25923
|
+
function _temp$39(itemProps) {
|
|
25916
25924
|
return /* @__PURE__ */ jsx(GridItem, { ...itemProps });
|
|
25917
25925
|
}
|
|
25918
25926
|
function useMemoCompare(next, compare2) {
|
|
@@ -25934,7 +25942,7 @@ function useVisibilityDetection(parentRef) {
|
|
|
25934
25942
|
if (wasVisible === isNowVisible)
|
|
25935
25943
|
return;
|
|
25936
25944
|
const becameVisible = !wasVisible && isNowVisible;
|
|
25937
|
-
prevVisible.current = isNowVisible, setIsVisible(isNowVisible), becameVisible && setMountKey(_temp$
|
|
25945
|
+
prevVisible.current = isNowVisible, setIsVisible(isNowVisible), becameVisible && setMountKey(_temp$38);
|
|
25938
25946
|
});
|
|
25939
25947
|
return parentRef.current && resizeObserver2.observe(parentRef.current), () => resizeObserver2.disconnect();
|
|
25940
25948
|
}, t1 = [parentRef], $[0] = parentRef, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
@@ -25944,7 +25952,7 @@ function useVisibilityDetection(parentRef) {
|
|
|
25944
25952
|
mountKey
|
|
25945
25953
|
}, $[3] = isVisible2, $[4] = mountKey, $[5] = t2) : t2 = $[5], t2;
|
|
25946
25954
|
}
|
|
25947
|
-
function _temp$
|
|
25955
|
+
function _temp$38(prev) {
|
|
25948
25956
|
return prev + 1;
|
|
25949
25957
|
}
|
|
25950
25958
|
const Root$p = styled(Card)`
|
|
@@ -26042,7 +26050,7 @@ function IncompatibleItemType(props2) {
|
|
|
26042
26050
|
const handleKeyDown = t2;
|
|
26043
26051
|
let t3;
|
|
26044
26052
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
26045
|
-
setShowDetails(_temp$
|
|
26053
|
+
setShowDetails(_temp$37);
|
|
26046
26054
|
}, $[7] = t3) : t3 = $[7];
|
|
26047
26055
|
const handleShowDetails = t3;
|
|
26048
26056
|
let t4;
|
|
@@ -26104,7 +26112,7 @@ function IncompatibleItemType(props2) {
|
|
|
26104
26112
|
let t22;
|
|
26105
26113
|
return $[50] !== showDetails || $[51] !== t17 || $[52] !== t21 ? (t22 = /* @__PURE__ */ jsx(Popover, { open: showDetails, ref: popoverRef, onKeyDown: handleKeyDown, portal: !0, constrainSize: !0, tone: "default", content: t17, children: t21 }), $[50] = showDetails, $[51] = t17, $[52] = t21, $[53] = t22) : t22 = $[53], t22;
|
|
26106
26114
|
}
|
|
26107
|
-
function _temp$
|
|
26115
|
+
function _temp$37(v) {
|
|
26108
26116
|
return !v;
|
|
26109
26117
|
}
|
|
26110
26118
|
const MENU_POPOVER_PROPS$6 = {
|
|
@@ -26251,7 +26259,7 @@ function ListArrayInput(props2) {
|
|
|
26251
26259
|
t
|
|
26252
26260
|
} = useTranslation(), [activeDragItemIndex, setActiveDragItemIndex] = useState(null);
|
|
26253
26261
|
let t2;
|
|
26254
|
-
$[0] !== members ? (t2 = members.map(_temp$
|
|
26262
|
+
$[0] !== members ? (t2 = members.map(_temp$36), $[0] = members, $[1] = t2) : t2 = $[1];
|
|
26255
26263
|
const memberKeys = useMemoCompare(t2, shallowEquals), parentRef = useRef(null), {
|
|
26256
26264
|
isVisible: isVisible2,
|
|
26257
26265
|
mountKey
|
|
@@ -26297,7 +26305,7 @@ function ListArrayInput(props2) {
|
|
|
26297
26305
|
t9
|
|
26298
26306
|
] }), $[42] = t8, $[43] = t9, $[44] = t10) : t10 = $[44], t10;
|
|
26299
26307
|
}
|
|
26300
|
-
function _temp$
|
|
26308
|
+
function _temp$36(member) {
|
|
26301
26309
|
return member.key;
|
|
26302
26310
|
}
|
|
26303
26311
|
function ArrayOfObjectsInput(props2) {
|
|
@@ -26342,7 +26350,7 @@ function ArrayOfObjectOptionsInput(props2) {
|
|
|
26342
26350
|
$[0] !== t0 ? (t1 = t0 === void 0 ? [] : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
26343
26351
|
const value = t1, t2 = schemaType.options?.list || EMPTY_ARRAY$m;
|
|
26344
26352
|
let t3;
|
|
26345
|
-
$[2] !== t2 ? (t3 = t2.map(_temp$
|
|
26353
|
+
$[2] !== t2 ? (t3 = t2.map(_temp$35), $[2] = t2, $[3] = t3) : t3 = $[3];
|
|
26346
26354
|
const options = t3;
|
|
26347
26355
|
let t4;
|
|
26348
26356
|
$[4] !== onChange || $[5] !== options || $[6] !== value ? (t4 = (isChecked, changedOption) => {
|
|
@@ -26382,7 +26390,7 @@ function ArrayOfObjectOptionsInput(props2) {
|
|
|
26382
26390
|
let t9;
|
|
26383
26391
|
return $[29] !== changed || $[30] !== path || $[31] !== t8 ? (t9 = /* @__PURE__ */ jsx(ChangeIndicator, { path, isChanged: changed, hasFocus: !1, children: t8 }), $[29] = changed, $[30] = path, $[31] = t8, $[32] = t9) : t9 = $[32], t9;
|
|
26384
26392
|
}
|
|
26385
|
-
function _temp$
|
|
26393
|
+
function _temp$35(option, index) {
|
|
26386
26394
|
return isKeyedObject(option) ? option : {
|
|
26387
26395
|
...option,
|
|
26388
26396
|
_key: `auto-generated-${index}`
|
|
@@ -26424,7 +26432,7 @@ function ArrayOfPrimitiveOptionsInput(props2) {
|
|
|
26424
26432
|
const options = t3;
|
|
26425
26433
|
let t4;
|
|
26426
26434
|
$[6] !== onChange || $[7] !== options || $[8] !== value ? (t4 = (isChecked, changedValue) => {
|
|
26427
|
-
const nextValue = options.map(_temp$
|
|
26435
|
+
const nextValue = options.map(_temp$34).filter((optionValue) => optionValue === changedValue ? isChecked : value.includes(optionValue));
|
|
26428
26436
|
onChange(nextValue.length > 0 ? set(nextValue) : unset());
|
|
26429
26437
|
}, $[6] = onChange, $[7] = options, $[8] = value, $[9] = t4) : t4 = $[9];
|
|
26430
26438
|
const handleChange = t4, t5 = schemaType.options?.layout === "grid" ? Math.min(options.length, 4) : 1;
|
|
@@ -26446,7 +26454,7 @@ function ArrayOfPrimitiveOptionsInput(props2) {
|
|
|
26446
26454
|
let t8;
|
|
26447
26455
|
return $[27] !== changed || $[28] !== path || $[29] !== t7 ? (t8 = /* @__PURE__ */ jsx(ChangeIndicator, { path, isChanged: changed, hasFocus: !1, children: t7 }), $[27] = changed, $[28] = path, $[29] = t7, $[30] = t8) : t8 = $[30], t8;
|
|
26448
26456
|
}
|
|
26449
|
-
function _temp$
|
|
26457
|
+
function _temp$34(option) {
|
|
26450
26458
|
return option.value;
|
|
26451
26459
|
}
|
|
26452
26460
|
function ArrayOfOptionsInput(props2) {
|
|
@@ -26553,7 +26561,7 @@ function uploadTarget(Component2) {
|
|
|
26553
26561
|
const tasks2 = files.map((file_0) => ({
|
|
26554
26562
|
file: file_0,
|
|
26555
26563
|
uploaderCandidates: getUploadCandidates(types, resolveUploader2, file_0)
|
|
26556
|
-
})), ready = tasks2.filter(_temp$
|
|
26564
|
+
})), ready = tasks2.filter(_temp$33), rejected = tasks2.filter(_temp2$1f);
|
|
26557
26565
|
rejected.length > 0 && pushToast({
|
|
26558
26566
|
closable: !0,
|
|
26559
26567
|
status: "warning",
|
|
@@ -26629,10 +26637,10 @@ function DropMessage(props2) {
|
|
|
26629
26637
|
let t2;
|
|
26630
26638
|
return $[3] !== t1 ? (t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 }), $[3] = t1, $[4] = t2) : t2 = $[4], t2;
|
|
26631
26639
|
}
|
|
26632
|
-
function _temp$
|
|
26640
|
+
function _temp$33(task) {
|
|
26633
26641
|
return task.uploaderCandidates.length > 0;
|
|
26634
26642
|
}
|
|
26635
|
-
function _temp2$
|
|
26643
|
+
function _temp2$1f(task_0) {
|
|
26636
26644
|
return task_0.uploaderCandidates.length === 0;
|
|
26637
26645
|
}
|
|
26638
26646
|
function _temp3$y(task_1, i) {
|
|
@@ -26712,7 +26720,7 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
|
|
|
26712
26720
|
children,
|
|
26713
26721
|
presence,
|
|
26714
26722
|
schemaType
|
|
26715
|
-
} = props2, hasError = validation2.filter(_temp$
|
|
26723
|
+
} = props2, hasError = validation2.filter(_temp$32).length > 0, hasWarning = validation2.filter(_temp2$1e).length > 0;
|
|
26716
26724
|
let t0;
|
|
26717
26725
|
$[0] !== onInsert ? (t0 = (pos, insertType) => {
|
|
26718
26726
|
onInsert({
|
|
@@ -26779,10 +26787,10 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
|
|
|
26779
26787
|
let t17;
|
|
26780
26788
|
return $[50] !== menu || $[51] !== sortable || $[52] !== t11 || $[53] !== t12 || $[54] !== t13 || $[55] !== t16 || $[56] !== tone ? (t17 = /* @__PURE__ */ jsx(RowLayout, { tone, readOnly: t11, menu, dragHandle: sortable, presence: t12, validation: t13, children: t16 }), $[50] = menu, $[51] = sortable, $[52] = t11, $[53] = t12, $[54] = t13, $[55] = t16, $[56] = tone, $[57] = t17) : t17 = $[57], t17;
|
|
26781
26789
|
});
|
|
26782
|
-
function _temp$
|
|
26790
|
+
function _temp$32(item) {
|
|
26783
26791
|
return item.level === "error";
|
|
26784
26792
|
}
|
|
26785
|
-
function _temp2$
|
|
26793
|
+
function _temp2$1e(item_0) {
|
|
26786
26794
|
return item_0.level === "warning";
|
|
26787
26795
|
}
|
|
26788
26796
|
function NoItemsPlaceholder(t0) {
|
|
@@ -27148,7 +27156,7 @@ const TIME_ZONE_SCOPE_TYPE = {
|
|
|
27148
27156
|
let t6;
|
|
27149
27157
|
$[22] !== allTimeZones ? (t6 = () => {
|
|
27150
27158
|
const localTzName = Intl.DateTimeFormat().resolvedOptions().timeZone, foundLocal = allTimeZones.find((tz_3) => tz_3.name === localTzName);
|
|
27151
|
-
return foundLocal || allTimeZones.find(_temp$
|
|
27159
|
+
return foundLocal || allTimeZones.find(_temp$31) || allTimeZones[0];
|
|
27152
27160
|
}, $[22] = allTimeZones, $[23] = t6) : t6 = $[23];
|
|
27153
27161
|
const getLocalTimeZone = t6;
|
|
27154
27162
|
let t7;
|
|
@@ -27246,7 +27254,7 @@ function getErrorMessage$1(err) {
|
|
|
27246
27254
|
let message;
|
|
27247
27255
|
return isClientError$1(err) ? err.response.statusCode === 403 ? message = "Forbidden. Please check that your project has access to the feature." : message = err.message : (err instanceof Error && (message = err.message), message = String(err)), message;
|
|
27248
27256
|
}
|
|
27249
|
-
function _temp$
|
|
27257
|
+
function _temp$31(timeZone) {
|
|
27250
27258
|
return timeZone.abbreviation === "GMT";
|
|
27251
27259
|
}
|
|
27252
27260
|
const TimeZoneCitySpan = styled.span(({
|
|
@@ -27304,7 +27312,7 @@ const TimeZoneCitySpan = styled.span(({
|
|
|
27304
27312
|
const handleTimeZoneUpdate = t6, isDirty = selectedTz?.name !== timeZone.name;
|
|
27305
27313
|
let t7;
|
|
27306
27314
|
$[18] !== getLocalTimeZone ? (t7 = getLocalTimeZone(), $[18] = getLocalTimeZone, $[19] = t7) : t7 = $[19];
|
|
27307
|
-
const isLocalTzSelected = selectedTz?.name === t7.name, renderOption = _temp$
|
|
27315
|
+
const isLocalTzSelected = selectedTz?.name === t7.name, renderOption = _temp$30, renderValue = _temp2$1d, t8 = !isDirty || !selectedTz;
|
|
27308
27316
|
let t9;
|
|
27309
27317
|
$[20] !== handleTimeZoneUpdate || $[21] !== t8 ? (t9 = {
|
|
27310
27318
|
confirmButton: {
|
|
@@ -27363,7 +27371,7 @@ const TimeZoneCitySpan = styled.span(({
|
|
|
27363
27371
|
let t25;
|
|
27364
27372
|
return $[60] !== onClose || $[61] !== t24 || $[62] !== t9 ? (t25 = /* @__PURE__ */ jsx(Dialog$1, { footer: t9, header: "Select time zone", id: "time-zone", onClose, width: 1, children: t24 }), $[60] = onClose, $[61] = t24, $[62] = t9, $[63] = t25) : t25 = $[63], t25;
|
|
27365
27373
|
};
|
|
27366
|
-
function _temp$
|
|
27374
|
+
function _temp$30(option) {
|
|
27367
27375
|
return /* @__PURE__ */ jsx(Card, { as: "button", padding: 3, children: /* @__PURE__ */ jsxs(Text$1, { size: 1, textOverflow: "ellipsis", children: [
|
|
27368
27376
|
/* @__PURE__ */ jsx(TimeZoneCitySpan, { children: option.city }),
|
|
27369
27377
|
/* @__PURE__ */ jsxs(TimeZoneOffsetSpan, { children: [
|
|
@@ -27376,7 +27384,7 @@ function _temp$31(option) {
|
|
|
27376
27384
|
/* @__PURE__ */ jsx(TimeZoneAlternativeNameSpan, { children: option.alternativeName })
|
|
27377
27385
|
] }) });
|
|
27378
27386
|
}
|
|
27379
|
-
function _temp2$
|
|
27387
|
+
function _temp2$1d(_value, option_0) {
|
|
27380
27388
|
return option_0 ? `${option_0.alternativeName} (${option_0.namePretty})` : "";
|
|
27381
27389
|
}
|
|
27382
27390
|
function _temp3$x(query, option_1) {
|
|
@@ -27467,9 +27475,9 @@ const DEFAULT_MONTH_NAMES = ["January", "February", "March", "April", "May", "Ju
|
|
|
27467
27475
|
weekInfo
|
|
27468
27476
|
} = useCurrentLocale();
|
|
27469
27477
|
let t0;
|
|
27470
|
-
return $[0] !== date || $[1] !== weekInfo.firstDay ? (t0 = getWeekDaysFromWeekStarts$2(getWeekStartsOfMonth$2(date, weekInfo.firstDay)).map(_temp$
|
|
27478
|
+
return $[0] !== date || $[1] !== weekInfo.firstDay ? (t0 = getWeekDaysFromWeekStarts$2(getWeekStartsOfMonth$2(date, weekInfo.firstDay)).map(_temp$2$), $[0] = date, $[1] = weekInfo.firstDay, $[2] = t0) : t0 = $[2], t0;
|
|
27471
27479
|
};
|
|
27472
|
-
function _temp$
|
|
27480
|
+
function _temp$2$(days) {
|
|
27473
27481
|
return {
|
|
27474
27482
|
number: getWeek(days[0]),
|
|
27475
27483
|
days
|
|
@@ -27495,7 +27503,7 @@ function CalendarMonth$3(props2) {
|
|
|
27495
27503
|
gridTemplateColumns: "repeat(7, minmax(44px, 46px))"
|
|
27496
27504
|
}, $[4] = t2) : t2 = $[4];
|
|
27497
27505
|
let t3;
|
|
27498
|
-
$[5] !== weekDayNames ? (t3 = weekDayNames.map(_temp$
|
|
27506
|
+
$[5] !== weekDayNames ? (t3 = weekDayNames.map(_temp$2_), $[5] = weekDayNames, $[6] = t3) : t3 = $[6];
|
|
27499
27507
|
const t4 = useWeeksOfMonth$1(props2.date);
|
|
27500
27508
|
let t5;
|
|
27501
27509
|
if ($[7] !== props2.focused || $[8] !== props2.isPastDisabled || $[9] !== props2.onSelect || $[10] !== props2.selected || $[11] !== t4) {
|
|
@@ -27514,7 +27522,7 @@ function CalendarMonth$3(props2) {
|
|
|
27514
27522
|
let t7;
|
|
27515
27523
|
return $[21] !== t1 || $[22] !== t6 ? (t7 = /* @__PURE__ */ jsx(Box, { "aria-hidden": t1, "data-ui": "CalendarMonth", children: t6 }), $[21] = t1, $[22] = t6, $[23] = t7) : t7 = $[23], t7;
|
|
27516
27524
|
}
|
|
27517
|
-
function _temp$
|
|
27525
|
+
function _temp$2_(weekday) {
|
|
27518
27526
|
return /* @__PURE__ */ jsx(Box, { paddingY: 2, children: /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "medium", style: {
|
|
27519
27527
|
textAlign: "center"
|
|
27520
27528
|
}, children: weekday }) }, weekday);
|
|
@@ -27819,11 +27827,11 @@ function CalendarMonthSelect$1(props2) {
|
|
|
27819
27827
|
monthNames
|
|
27820
27828
|
} = props2;
|
|
27821
27829
|
let t0;
|
|
27822
|
-
$[0] !== monthNames ? (t0 = monthNames.map(_temp$
|
|
27830
|
+
$[0] !== monthNames ? (t0 = monthNames.map(_temp$2Z), $[0] = monthNames, $[1] = t0) : t0 = $[1];
|
|
27823
27831
|
let t1;
|
|
27824
27832
|
return $[2] !== onChange || $[3] !== t0 || $[4] !== value ? (t1 = /* @__PURE__ */ jsx(Flex, { flex: 1, gap: 1, children: /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(Select, { fontSize: 1, radius: 2, value, onChange, padding: 2, children: t0 }) }) }), $[2] = onChange, $[3] = t0, $[4] = value, $[5] = t1) : t1 = $[5], t1;
|
|
27825
27833
|
}
|
|
27826
|
-
function _temp$
|
|
27834
|
+
function _temp$2Z(monthName, i) {
|
|
27827
27835
|
return /* @__PURE__ */ jsx("option", { value: i, children: monthName }, i);
|
|
27828
27836
|
}
|
|
27829
27837
|
function CalendarYearSelect$1(props2) {
|
|
@@ -28088,15 +28096,15 @@ const TimeZoneButton = (props2) => {
|
|
|
28088
28096
|
$[3] !== tooltipContent ? (t2 = /* @__PURE__ */ jsx(Box, { flex: 1, padding: 1, children: /* @__PURE__ */ jsx(Text$1, { size: 1, children: tooltipContent }) }), $[3] = tooltipContent, $[4] = t2) : t2 = $[4];
|
|
28089
28097
|
let t3;
|
|
28090
28098
|
$[5] !== allowTimeZoneSwitch || $[6] !== dialogTimeZoneShow || $[7] !== timeZone.alternativeName || $[8] !== timeZone.city || $[9] !== timeZone.namePretty || $[10] !== useElementQueries ? (t3 = /* @__PURE__ */ jsx("div", { children: useElementQueries ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
28091
|
-
/* @__PURE__ */ jsx(Box, { className: "button-small", children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { "data-testid": "timezone-button", icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$
|
|
28099
|
+
/* @__PURE__ */ jsx(Box, { className: "button-small", children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { "data-testid": "timezone-button", icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$6, text: `${timeZone.city}` }) : /* @__PURE__ */ jsxs(Inline, { space: 2, padding: 2, children: [
|
|
28092
28100
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: /* @__PURE__ */ jsx(EarthAmericasIcon, {}) }),
|
|
28093
28101
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: `${timeZone.city}` })
|
|
28094
28102
|
] }) }),
|
|
28095
|
-
/* @__PURE__ */ jsx(Box, { className: "button-large", children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { "data-testid": "timezone-button", icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$
|
|
28103
|
+
/* @__PURE__ */ jsx(Box, { className: "button-large", children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { "data-testid": "timezone-button", icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$6, text: `${timeZone.alternativeName} (${timeZone.namePretty})` }) : /* @__PURE__ */ jsxs(Inline, { space: 2, padding: 2, children: [
|
|
28096
28104
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: /* @__PURE__ */ jsx(EarthAmericasIcon, {}) }),
|
|
28097
28105
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: `${timeZone.alternativeName} (${timeZone.namePretty})` })
|
|
28098
28106
|
] }) })
|
|
28099
|
-
] }) : /* @__PURE__ */ jsx(Fragment$1, { children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$
|
|
28107
|
+
] }) : /* @__PURE__ */ jsx(Fragment$1, { children: allowTimeZoneSwitch ? /* @__PURE__ */ jsx(Button, { icon: EarthAmericasIcon, mode: "bleed", readOnly: !allowTimeZoneSwitch, onClick: allowTimeZoneSwitch ? dialogTimeZoneShow : noop$6, text: `${timeZone.alternativeName} (${timeZone.namePretty})` }) : /* @__PURE__ */ jsxs(Inline, { space: 2, padding: 2, children: [
|
|
28100
28108
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: /* @__PURE__ */ jsx(EarthAmericasIcon, {}) }),
|
|
28101
28109
|
/* @__PURE__ */ jsx(Text$1, { weight: "medium", size: 1, children: `${timeZone.alternativeName} (${timeZone.namePretty})` })
|
|
28102
28110
|
] }) }) }), $[5] = allowTimeZoneSwitch, $[6] = dialogTimeZoneShow, $[7] = timeZone.alternativeName, $[8] = timeZone.city, $[9] = timeZone.namePretty, $[10] = useElementQueries, $[11] = t3) : t3 = $[11];
|
|
@@ -28431,7 +28439,7 @@ const GroupTab = forwardRef(function(props2, ref) {
|
|
|
28431
28439
|
} = useTranslation();
|
|
28432
28440
|
let t3;
|
|
28433
28441
|
$[2] !== t ? (t3 = t("inputs.object.field-group-tabs.aria-label"), $[2] = t, $[3] = t3) : t3 = $[3];
|
|
28434
|
-
const t4 = groups.find(_temp$
|
|
28442
|
+
const t4 = groups.find(_temp$2Y)?.name;
|
|
28435
28443
|
let t5;
|
|
28436
28444
|
if ($[4] !== groups || $[5] !== inputId || $[6] !== t) {
|
|
28437
28445
|
let t62;
|
|
@@ -28465,7 +28473,7 @@ const GroupTab = forwardRef(function(props2, ref) {
|
|
|
28465
28473
|
/* @__PURE__ */ jsx(GroupSelect, { ...props2, disabled, onSelect: handleClick })
|
|
28466
28474
|
] }), $[6] = disabled, $[7] = handleClick, $[8] = props2, $[9] = t3) : t3 = $[9], t3;
|
|
28467
28475
|
});
|
|
28468
|
-
function _temp$
|
|
28476
|
+
function _temp$2Y(g) {
|
|
28469
28477
|
return g.selected;
|
|
28470
28478
|
}
|
|
28471
28479
|
const FieldGroupTabsWrapper = styled(Card)`
|
|
@@ -28607,7 +28615,7 @@ const RootStack$2 = styled(Stack)`
|
|
|
28607
28615
|
}
|
|
28608
28616
|
let t32;
|
|
28609
28617
|
if ($[5] !== schemaType.fields || $[6] !== value) {
|
|
28610
|
-
const knownFieldNames = schemaType.fields.map(_temp$
|
|
28618
|
+
const knownFieldNames = schemaType.fields.map(_temp$2X);
|
|
28611
28619
|
t32 = Object.keys(value || {}).filter((key) => !key.startsWith("_") && !knownFieldNames.includes(key)), $[5] = schemaType.fields, $[6] = value, $[7] = t32;
|
|
28612
28620
|
} else
|
|
28613
28621
|
t32 = $[7];
|
|
@@ -28621,7 +28629,7 @@ const RootStack$2 = styled(Stack)`
|
|
|
28621
28629
|
}
|
|
28622
28630
|
const renderedUnknownFields = t2;
|
|
28623
28631
|
let t3;
|
|
28624
|
-
$[12] !== groups ? (t3 = groups.find(_temp2$
|
|
28632
|
+
$[12] !== groups ? (t3 = groups.find(_temp2$1c), $[12] = groups, $[13] = t3) : t3 = $[13];
|
|
28625
28633
|
const selectedGroup = t3;
|
|
28626
28634
|
let t4;
|
|
28627
28635
|
$[14] !== isFocusable || $[15] !== onPathFocus ? (t4 = (event) => {
|
|
@@ -28648,10 +28656,10 @@ const RootStack$2 = styled(Stack)`
|
|
|
28648
28656
|
renderedUnknownFields
|
|
28649
28657
|
] }), $[37] = handleFocus, $[38] = renderedUnknownFields, $[39] = t10, $[40] = t6, $[41] = t7, $[42] = t11) : t11 = $[42], t11;
|
|
28650
28658
|
});
|
|
28651
|
-
function _temp$
|
|
28659
|
+
function _temp$2X(field) {
|
|
28652
28660
|
return field.name;
|
|
28653
28661
|
}
|
|
28654
|
-
function _temp2$
|
|
28662
|
+
function _temp2$1c(t0) {
|
|
28655
28663
|
const {
|
|
28656
28664
|
selected
|
|
28657
28665
|
} = t0;
|
|
@@ -28727,7 +28735,7 @@ function SlugInput(props2) {
|
|
|
28727
28735
|
focusPath
|
|
28728
28736
|
} = props2, sourceField = schemaType.options?.source;
|
|
28729
28737
|
let t0;
|
|
28730
|
-
$[0] !== validation2 ? (t0 = validation2.filter(_temp$
|
|
28738
|
+
$[0] !== validation2 ? (t0 = validation2.filter(_temp$2W), $[0] = validation2, $[1] = t0) : t0 = $[1];
|
|
28731
28739
|
const errors = t0, inputRef = useRef(null), slugContext = useSlugContext(), {
|
|
28732
28740
|
t
|
|
28733
28741
|
} = useTranslation();
|
|
@@ -28793,7 +28801,7 @@ function SlugInput(props2) {
|
|
|
28793
28801
|
t13
|
|
28794
28802
|
] }) }), $[38] = t12, $[39] = t13, $[40] = t14) : t14 = $[40], t14;
|
|
28795
28803
|
}
|
|
28796
|
-
function _temp$
|
|
28804
|
+
function _temp$2W(item) {
|
|
28797
28805
|
return item.level === "error";
|
|
28798
28806
|
}
|
|
28799
28807
|
function StringInputBasic(props2) {
|
|
@@ -29058,7 +29066,7 @@ const ScrollContainerComponent = forwardRef(function(props2, forwardedRef) {
|
|
|
29058
29066
|
const As = t0 === void 0 ? "div" : t0, ref = useRef(null);
|
|
29059
29067
|
let t1;
|
|
29060
29068
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[4] = t1) : t1 = $[4], useImperativeHandle(forwardedRef, t1);
|
|
29061
|
-
const parentContext = useContext(ScrollContext), [childContext] = useState(_temp$
|
|
29069
|
+
const parentContext = useContext(ScrollContext), [childContext] = useState(_temp$2V);
|
|
29062
29070
|
let t2, t3;
|
|
29063
29071
|
$[5] !== childContext || $[6] !== onScroll ? (t2 = () => {
|
|
29064
29072
|
if (onScroll)
|
|
@@ -29088,7 +29096,7 @@ const ScrollContainerComponent = forwardRef(function(props2, forwardedRef) {
|
|
|
29088
29096
|
return $[19] !== childContext || $[20] !== t8 ? (t9 = /* @__PURE__ */ jsx(ScrollContext.Provider, { value: childContext, children: t8 }), $[19] = childContext, $[20] = t8, $[21] = t9) : t9 = $[21], t9;
|
|
29089
29097
|
}), ScrollContainer = memo(ScrollContainerComponent);
|
|
29090
29098
|
ScrollContainer.displayName = "Memo(Forwardref(ScrollContainer))";
|
|
29091
|
-
function _temp$
|
|
29099
|
+
function _temp$2V() {
|
|
29092
29100
|
return createPubSub();
|
|
29093
29101
|
}
|
|
29094
29102
|
const TEXT_LEVELS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], TEXT_BULLET_MARKERS = ["\u25CF", "\u25CB", "\u25A0"], TEXT_NUMBER_FORMATS = ["number", "lower-alpha", "lower-roman"], TEXT_DECORATOR_TAGS = {
|
|
@@ -29478,7 +29486,7 @@ function BlockActions(props2) {
|
|
|
29478
29486
|
renderBlockActions
|
|
29479
29487
|
} = props2;
|
|
29480
29488
|
let t0;
|
|
29481
|
-
$[0] !== schemaTypes.decorators ? (t0 = schemaTypes.decorators.map(_temp$
|
|
29489
|
+
$[0] !== schemaTypes.decorators ? (t0 = schemaTypes.decorators.map(_temp$2U), $[0] = schemaTypes.decorators, $[1] = t0) : t0 = $[1];
|
|
29482
29490
|
const decoratorValues = t0;
|
|
29483
29491
|
let t1;
|
|
29484
29492
|
bb0: {
|
|
@@ -29517,7 +29525,7 @@ function BlockActions(props2) {
|
|
|
29517
29525
|
let t2;
|
|
29518
29526
|
return $[8] !== blockActions ? (t2 = /* @__PURE__ */ jsx(Root$j, { contentEditable: !1, children: blockActions }), $[8] = blockActions, $[9] = t2) : t2 = $[9], t2;
|
|
29519
29527
|
}
|
|
29520
|
-
function _temp$
|
|
29528
|
+
function _temp$2U(d) {
|
|
29521
29529
|
return d.value;
|
|
29522
29530
|
}
|
|
29523
29531
|
function textBlockStyle(props2) {
|
|
@@ -30250,13 +30258,13 @@ const MENU_BUTTON_POPOVER_PROPS$1 = {
|
|
|
30250
30258
|
onMenuClose
|
|
30251
30259
|
} = props2;
|
|
30252
30260
|
let t0;
|
|
30253
|
-
$[0] !== menuOptions ? (t0 = menuOptions.map(_temp$
|
|
30261
|
+
$[0] !== menuOptions ? (t0 = menuOptions.map(_temp$2T), $[0] = menuOptions, $[1] = t0) : t0 = $[1];
|
|
30254
30262
|
let t1;
|
|
30255
30263
|
$[2] !== t0 ? (t1 = /* @__PURE__ */ jsx(Menu, { children: t0 }), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
30256
30264
|
let t2;
|
|
30257
30265
|
return $[4] !== disableRestoreFocusOnClose || $[5] !== forwardedRef || $[6] !== menuButton || $[7] !== menuButtonProps || $[8] !== onMenuClose || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(MenuButton, { __unstable_disableRestoreFocusOnClose: disableRestoreFocusOnClose, id: "menu-button", ref: forwardedRef, onClose: onMenuClose, popover: MENU_BUTTON_POPOVER_PROPS$1, ...menuButtonProps, button: menuButton, menu: t1 }), $[4] = disableRestoreFocusOnClose, $[5] = forwardedRef, $[6] = menuButton, $[7] = menuButtonProps, $[8] = onMenuClose, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
|
|
30258
30266
|
});
|
|
30259
|
-
function _temp$
|
|
30267
|
+
function _temp$2T(c2, index) {
|
|
30260
30268
|
const {
|
|
30261
30269
|
collapsedProps,
|
|
30262
30270
|
expandedProps,
|
|
@@ -30383,7 +30391,7 @@ const CollapseMenu = forwardRef(function(props2, ref) {
|
|
|
30383
30391
|
}, $[10] = rootEl, $[11] = t3) : t3 = $[11];
|
|
30384
30392
|
const intersectionOptions = t3;
|
|
30385
30393
|
let t4;
|
|
30386
|
-
$[12] !== menuOptions ? (t4 = menuOptions.map(_temp$
|
|
30394
|
+
$[12] !== menuOptions ? (t4 = menuOptions.map(_temp$2S), $[12] = menuOptions, $[13] = t4) : t4 = $[13];
|
|
30387
30395
|
const menuOptionKeys = t4;
|
|
30388
30396
|
let t5;
|
|
30389
30397
|
$[14] !== collapsedIntersections || $[15] !== expandedIntersections || $[16] !== menuOptionKeys ? (t5 = [...difference(menuOptionKeys, Object.keys(expandedIntersections)), ...difference(menuOptionKeys, Object.keys(collapsedIntersections))], $[14] = collapsedIntersections, $[15] = expandedIntersections, $[16] = menuOptionKeys, $[17] = t5) : t5 = $[17];
|
|
@@ -30521,7 +30529,7 @@ const CollapseMenu = forwardRef(function(props2, ref) {
|
|
|
30521
30529
|
let t1;
|
|
30522
30530
|
return $[7] !== gap || $[8] !== t0 ? (t1 = /* @__PURE__ */ jsx(RowFlex, { "data-hidden": !0, "aria-hidden": "true", gap, overflow: "hidden", children: t0 }), $[7] = gap, $[8] = t0, $[9] = t1) : t1 = $[9], t1;
|
|
30523
30531
|
});
|
|
30524
|
-
function _temp$
|
|
30532
|
+
function _temp$2S(child) {
|
|
30525
30533
|
return child.key;
|
|
30526
30534
|
}
|
|
30527
30535
|
const CollapseMenuButton = forwardRef(function(props2, ref) {
|
|
@@ -30718,9 +30726,9 @@ function useActiveActionKeys(t0) {
|
|
|
30718
30726
|
actions
|
|
30719
30727
|
} = t0, editor2 = usePortableTextEditor(), selection = usePortableTextEditorSelection();
|
|
30720
30728
|
let t1;
|
|
30721
|
-
return $[0] !== actions || $[1] !== editor2 || $[2] !== selection ? (t1 = selection ? actions.filter((a) => a.type === "annotation" ? PortableTextEditor.isAnnotationActive(editor2, a.key) : a.type === "listStyle" ? PortableTextEditor.hasListStyle(editor2, a.key) : PortableTextEditor.isMarkActive(editor2, a.key)).map(_temp$
|
|
30729
|
+
return $[0] !== actions || $[1] !== editor2 || $[2] !== selection ? (t1 = selection ? actions.filter((a) => a.type === "annotation" ? PortableTextEditor.isAnnotationActive(editor2, a.key) : a.type === "listStyle" ? PortableTextEditor.hasListStyle(editor2, a.key) : PortableTextEditor.isMarkActive(editor2, a.key)).map(_temp$2R) : [], $[0] = actions, $[1] = editor2, $[2] = selection, $[3] = t1) : t1 = $[3], useUnique(t1);
|
|
30722
30730
|
}
|
|
30723
|
-
function _temp$
|
|
30731
|
+
function _temp$2R(a_0) {
|
|
30724
30732
|
return a_0.key;
|
|
30725
30733
|
}
|
|
30726
30734
|
function useActiveStyleKeys(t0) {
|
|
@@ -30728,9 +30736,9 @@ function useActiveStyleKeys(t0) {
|
|
|
30728
30736
|
items
|
|
30729
30737
|
} = t0, editor2 = usePortableTextEditor(), focusBlock = useFocusBlock(), selection = usePortableTextEditorSelection();
|
|
30730
30738
|
let t1;
|
|
30731
|
-
return $[0] !== editor2 || $[1] !== focusBlock || $[2] !== items || $[3] !== selection ? (t1 = focusBlock && selection ? items.filter((i) => PortableTextEditor.hasBlockStyle(editor2, i.style)).map(_temp2$
|
|
30739
|
+
return $[0] !== editor2 || $[1] !== focusBlock || $[2] !== items || $[3] !== selection ? (t1 = focusBlock && selection ? items.filter((i) => PortableTextEditor.hasBlockStyle(editor2, i.style)).map(_temp2$1b) : [], $[0] = editor2, $[1] = focusBlock, $[2] = items, $[3] = selection, $[4] = t1) : t1 = $[4], useUnique(t1);
|
|
30732
30740
|
}
|
|
30733
|
-
function _temp2$
|
|
30741
|
+
function _temp2$1b(i_0) {
|
|
30734
30742
|
return i_0.style;
|
|
30735
30743
|
}
|
|
30736
30744
|
const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$4 = {
|
|
@@ -30749,7 +30757,7 @@ const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$4 = {
|
|
|
30749
30757
|
$[0] !== selection ? (t0 = selection && isKeySegment(selection.anchor.path[0]) && isKeySegment(selection.focus.path[0]) ? selection.anchor.path[0]._key !== selection?.focus.path[0]._key : selection?.anchor.path[0] !== selection?.focus.path[0], $[0] = selection, $[1] = t0) : t0 = $[1];
|
|
30750
30758
|
const isSelectingMultipleBlocks = t0, isVoidBlock = focusBlock?._type !== schemaTypes.block.name, isEmptyTextBlock = !isVoidBlock && Array.isArray(focusBlock.children) && focusBlock.children.length === 1 && focusBlock?.children[0].text === "", disabled = disabledProp || isVoidBlock;
|
|
30751
30759
|
let t1;
|
|
30752
|
-
$[2] !== groups ? (t1 = groups.reduce(_temp2$
|
|
30760
|
+
$[2] !== groups ? (t1 = groups.reduce(_temp2$1a, []), $[2] = groups, $[3] = t1) : t1 = $[3];
|
|
30753
30761
|
const actions = t1;
|
|
30754
30762
|
let t2;
|
|
30755
30763
|
$[4] !== actions ? (t2 = {
|
|
@@ -30794,14 +30802,14 @@ const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$4 = {
|
|
|
30794
30802
|
let t7;
|
|
30795
30803
|
return $[28] !== children || $[29] !== collapsed || $[30] !== handleMenuClose || $[31] !== menuButtonProps ? (t7 = /* @__PURE__ */ jsx(CollapseMenuMemo$1, { "data-testid": "action-menu-auto-collapse-menu", collapsed, disableRestoreFocusOnClose: !0, gap: 1, menuButtonProps, onMenuClose: handleMenuClose, children }), $[28] = children, $[29] = collapsed, $[30] = handleMenuClose, $[31] = menuButtonProps, $[32] = t7) : t7 = $[32], t7;
|
|
30796
30804
|
});
|
|
30797
|
-
function _temp$
|
|
30805
|
+
function _temp$2Q(action, actionIndex) {
|
|
30798
30806
|
return actionIndex === 0 ? {
|
|
30799
30807
|
...action,
|
|
30800
30808
|
firstInGroup: !0
|
|
30801
30809
|
} : action;
|
|
30802
30810
|
}
|
|
30803
|
-
function _temp2$
|
|
30804
|
-
return acc.concat(group2.actions.map(_temp$
|
|
30811
|
+
function _temp2$1a(acc, group2) {
|
|
30812
|
+
return acc.concat(group2.actions.map(_temp$2Q));
|
|
30805
30813
|
}
|
|
30806
30814
|
const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1)`
|
|
30807
30815
|
// Change the border color variable used by BlockQuote
|
|
@@ -30982,12 +30990,12 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1)`
|
|
|
30982
30990
|
onToggleFullscreen
|
|
30983
30991
|
} = t0, {
|
|
30984
30992
|
t
|
|
30985
|
-
} = useTranslation(), showActionMenu = actionGroups.reduce(_temp$
|
|
30993
|
+
} = useTranslation(), showActionMenu = actionGroups.reduce(_temp$2P, 0) > 0, showInsertMenu = insertMenuItems.length > 0, [rootElement, setRootElement] = useState(null), rootElementRect = useElementRect(rootElement), collapsed = collapsible && rootElementRect ? rootElementRect?.width < 400 : !1, showBlockStyleSelect = blockStyles.length > 1;
|
|
30986
30994
|
let t1;
|
|
30987
30995
|
$[0] !== rootElement ? (t1 = {
|
|
30988
30996
|
rootElement
|
|
30989
30997
|
}, $[0] = rootElement, $[1] = t1) : t1 = $[1], useRovingFocus(t1);
|
|
30990
|
-
const preventEditorBlurOnToolbarMouseDown = _temp2$
|
|
30998
|
+
const preventEditorBlurOnToolbarMouseDown = _temp2$19;
|
|
30991
30999
|
let t2;
|
|
30992
31000
|
$[2] !== blockStyles || $[3] !== collapsed || $[4] !== disabled || $[5] !== isFullscreen || $[6] !== rootElement || $[7] !== showBlockStyleSelect ? (t2 = showBlockStyleSelect && /* @__PURE__ */ jsx(StyleSelectFlex, { flex: collapsed ? 1 : void 0, children: /* @__PURE__ */ jsx(StyleSelectBox, { padding: isFullscreen ? 2 : 1, "data-testid": "block-style-select", children: /* @__PURE__ */ jsx(BlockStyleSelect, { disabled, items: blockStyles, boundaryElement: rootElement }) }) }), $[2] = blockStyles, $[3] = collapsed, $[4] = disabled, $[5] = isFullscreen, $[6] = rootElement, $[7] = showBlockStyleSelect, $[8] = t2) : t2 = $[8];
|
|
30993
31001
|
let t3;
|
|
@@ -31091,10 +31099,10 @@ function Toolbar(props2) {
|
|
|
31091
31099
|
let t6;
|
|
31092
31100
|
return $[22] !== actionGroups || $[23] !== blockStyles || $[24] !== collapsible || $[25] !== disabled || $[26] !== insertMenuItems || $[27] !== isFullscreen || $[28] !== onToggleFullscreen ? (t6 = /* @__PURE__ */ jsx(InnerToolbar, { actionGroups, blockStyles, collapsible, disabled, insertMenuItems, isFullscreen, onToggleFullscreen }), $[22] = actionGroups, $[23] = blockStyles, $[24] = collapsible, $[25] = disabled, $[26] = insertMenuItems, $[27] = isFullscreen, $[28] = onToggleFullscreen, $[29] = t6) : t6 = $[29], t6;
|
|
31093
31101
|
}
|
|
31094
|
-
function _temp$
|
|
31102
|
+
function _temp$2P(acc, x) {
|
|
31095
31103
|
return acc + x.actions.length;
|
|
31096
31104
|
}
|
|
31097
|
-
function _temp2$
|
|
31105
|
+
function _temp2$19(e) {
|
|
31098
31106
|
e.preventDefault();
|
|
31099
31107
|
}
|
|
31100
31108
|
const noOutlineStyle = {
|
|
@@ -31273,7 +31281,7 @@ function useTrackFocusPath(props2) {
|
|
|
31273
31281
|
$[0] !== boundaryElement || $[1] !== editor2 || $[2] !== elementRefs || $[3] !== focusPath || $[4] !== portableTextMemberItems || $[5] !== selection ? (t0 = () => {
|
|
31274
31282
|
if (focusPath.length === 0 || selection?.focus.path && isEqual$2(selection.focus.path, focusPath.slice(0, selection.focus.path.length)))
|
|
31275
31283
|
return;
|
|
31276
|
-
const focusedItem = portableTextMemberItems.find(_temp$
|
|
31284
|
+
const focusedItem = portableTextMemberItems.find(_temp$2O), openItem = portableTextMemberItems.find(_temp2$18), relatedEditorItem = focusedItem || openItem, elementRef = relatedEditorItem ? elementRefs[relatedEditorItem.member.key] : void 0;
|
|
31277
31285
|
if (relatedEditorItem && elementRef) {
|
|
31278
31286
|
boundaryElement && (scrollIntoView$1(boundaryElement, {
|
|
31279
31287
|
scrollMode: "if-needed",
|
|
@@ -31310,10 +31318,10 @@ function useTrackFocusPath(props2) {
|
|
|
31310
31318
|
let t2;
|
|
31311
31319
|
$[7] !== boundaryElement || $[8] !== editor2 || $[9] !== elementRefs || $[10] !== focusPath || $[11] !== onItemClose || $[12] !== portableTextMemberItems || $[13] !== t1 ? (t2 = [boundaryElement, editor2, elementRefs, focusPath, onItemClose, portableTextMemberItems, t1], $[7] = boundaryElement, $[8] = editor2, $[9] = elementRefs, $[10] = focusPath, $[11] = onItemClose, $[12] = portableTextMemberItems, $[13] = t1, $[14] = t2) : t2 = $[14], useLayoutEffect(t0, t2);
|
|
31312
31320
|
}
|
|
31313
|
-
function _temp2$
|
|
31321
|
+
function _temp2$18(m_0) {
|
|
31314
31322
|
return m_0.member.open;
|
|
31315
31323
|
}
|
|
31316
|
-
function _temp$
|
|
31324
|
+
function _temp$2O(m) {
|
|
31317
31325
|
return m.member.item.focused;
|
|
31318
31326
|
}
|
|
31319
31327
|
const POPOVER_FALLBACK_PLACEMENTS$6 = ["top", "bottom"];
|
|
@@ -31881,10 +31889,10 @@ const InlineObject = (props2) => {
|
|
|
31881
31889
|
t
|
|
31882
31890
|
} = useTranslation(), hasMarkers = markers.length > 0, popoverTitle = schemaType?.title || schemaType.name;
|
|
31883
31891
|
let t0;
|
|
31884
|
-
$[0] !== validation2 ? (t0 = validation2.filter(_temp$
|
|
31892
|
+
$[0] !== validation2 ? (t0 = validation2.filter(_temp$2N), $[0] = validation2, $[1] = t0) : t0 = $[1];
|
|
31885
31893
|
const hasError = t0.length > 0;
|
|
31886
31894
|
let t1;
|
|
31887
|
-
$[2] !== validation2 ? (t1 = validation2.filter(_temp2$
|
|
31895
|
+
$[2] !== validation2 ? (t1 = validation2.filter(_temp2$17), $[2] = validation2, $[3] = t1) : t1 = $[3];
|
|
31888
31896
|
const hasWarning = t1.length > 0;
|
|
31889
31897
|
let t2;
|
|
31890
31898
|
bb0: {
|
|
@@ -31929,16 +31937,16 @@ const InlineObject = (props2) => {
|
|
|
31929
31937
|
t15
|
|
31930
31938
|
] }), $[41] = t13, $[42] = t14, $[43] = t15, $[44] = t16) : t16 = $[44], t16;
|
|
31931
31939
|
};
|
|
31932
|
-
function _temp$
|
|
31940
|
+
function _temp$2N(v) {
|
|
31933
31941
|
return v.level === "error";
|
|
31934
31942
|
}
|
|
31935
|
-
function _temp2$
|
|
31943
|
+
function _temp2$17(v_0) {
|
|
31936
31944
|
return v_0.level === "warning";
|
|
31937
31945
|
}
|
|
31938
31946
|
function AnnotationObjectEditModal(props2) {
|
|
31939
31947
|
const $ = c(14), editor2 = usePortableTextEditor(), boundaryElement = useBoundaryElement().element, portableTextMemberItems = usePortableTextMemberItems(), elementRefs = usePortableTextMemberItemElementRefs();
|
|
31940
31948
|
let t0;
|
|
31941
|
-
$[0] !== portableTextMemberItems ? (t0 = portableTextMemberItems.find(_temp$
|
|
31949
|
+
$[0] !== portableTextMemberItems ? (t0 = portableTextMemberItems.find(_temp$2M), $[0] = portableTextMemberItems, $[1] = t0) : t0 = $[1];
|
|
31942
31950
|
const openAnnotation = t0;
|
|
31943
31951
|
let t1;
|
|
31944
31952
|
$[2] !== editor2 || $[3] !== openAnnotation || $[4] !== props2 ? (t1 = () => {
|
|
@@ -31954,7 +31962,7 @@ function AnnotationObjectEditModal(props2) {
|
|
|
31954
31962
|
let t3;
|
|
31955
31963
|
return $[6] !== boundaryElement || $[7] !== elementRef || $[8] !== onClose || $[9] !== openAnnotation.input || $[10] !== openAnnotation.node.schemaType || $[11] !== props2.referenceBoundary || $[12] !== t2 ? (t3 = /* @__PURE__ */ jsx(ObjectEditModal, { defaultType: "popover", floatingBoundary: boundaryElement, onClose, autoFocus: t2, referenceBoundary: props2.referenceBoundary, referenceElement: elementRef, schemaType: openAnnotation.node.schemaType, children: openAnnotation.input }), $[6] = boundaryElement, $[7] = elementRef, $[8] = onClose, $[9] = openAnnotation.input, $[10] = openAnnotation.node.schemaType, $[11] = props2.referenceBoundary, $[12] = t2, $[13] = t3) : t3 = $[13], t3;
|
|
31956
31964
|
}
|
|
31957
|
-
function _temp$
|
|
31965
|
+
function _temp$2M(m) {
|
|
31958
31966
|
return m.kind === "annotation" && m.member.open;
|
|
31959
31967
|
}
|
|
31960
31968
|
function Compositor(props2) {
|
|
@@ -32360,7 +32368,7 @@ function useOptimisticPortableTextDiff(t0) {
|
|
|
32360
32368
|
t22 = Object.values(optimisticRangeDecorations).concat(Object.entries(definitiveRangeDecorations).filter((t32) => {
|
|
32361
32369
|
const [blockKey] = t32;
|
|
32362
32370
|
return typeof optimisticRangeDecorations[blockKey] > "u";
|
|
32363
|
-
}).map(_temp$
|
|
32371
|
+
}).map(_temp$2L)).flat(), $[2] = definitiveValue, $[3] = optimisticValue, $[4] = perspective, $[5] = upstreamValue, $[6] = t22;
|
|
32364
32372
|
} else
|
|
32365
32373
|
t22 = $[6];
|
|
32366
32374
|
t1 = t22;
|
|
@@ -32398,7 +32406,7 @@ function useOptimisticPortableTextDiff(t0) {
|
|
|
32398
32406
|
onOptimisticChange
|
|
32399
32407
|
}, $[14] = onOptimisticChange, $[15] = rangeDecorations, $[16] = t5) : t5 = $[16], t5;
|
|
32400
32408
|
}
|
|
32401
|
-
function _temp$
|
|
32409
|
+
function _temp$2L(t0) {
|
|
32402
32410
|
const [, blockRangeDecorations] = t0;
|
|
32403
32411
|
return blockRangeDecorations;
|
|
32404
32412
|
}
|
|
@@ -32524,7 +32532,7 @@ const markdownConfig = {
|
|
|
32524
32532
|
},
|
|
32525
32533
|
typography: {
|
|
32526
32534
|
guard: createDecoratorGuard({
|
|
32527
|
-
decorators: _temp2$
|
|
32535
|
+
decorators: _temp2$16
|
|
32528
32536
|
})
|
|
32529
32537
|
}
|
|
32530
32538
|
},
|
|
@@ -32616,14 +32624,14 @@ const RenderDefault = (props2) => {
|
|
|
32616
32624
|
let t1;
|
|
32617
32625
|
return $[1] !== RenderPlugins || $[2] !== props2 ? (t1 = /* @__PURE__ */ jsx(RenderPlugins, { ...props2 }), $[1] = RenderPlugins, $[2] = props2, $[3] = t1) : t1 = $[3], t1;
|
|
32618
32626
|
};
|
|
32619
|
-
function _temp$
|
|
32627
|
+
function _temp$2K(decorator) {
|
|
32620
32628
|
return decorator.name === "code" ? [] : [decorator.name];
|
|
32621
32629
|
}
|
|
32622
|
-
function _temp2$
|
|
32630
|
+
function _temp2$16(t0) {
|
|
32623
32631
|
const {
|
|
32624
32632
|
context
|
|
32625
32633
|
} = t0;
|
|
32626
|
-
return context.schema.decorators.flatMap(_temp$
|
|
32634
|
+
return context.schema.decorators.flatMap(_temp$2K);
|
|
32627
32635
|
}
|
|
32628
32636
|
const DOT_SIZE = 6, CONTENT_BOX_VARIANTS = {
|
|
32629
32637
|
animate: {
|
|
@@ -32780,7 +32788,7 @@ function usePresenceCursorDecorations(props2) {
|
|
|
32780
32788
|
const handleRangeDecorationMoved = t2;
|
|
32781
32789
|
let t3, t4;
|
|
32782
32790
|
$[3] !== fieldPresence || $[4] !== path ? (t3 = () => {
|
|
32783
|
-
const nextPresence = fieldPresence.filter((p_0) => startsWith(path, p_0.path) && !isEqual$1(path, p_0.path)), filteredNext = nextPresence.map(_temp$
|
|
32791
|
+
const nextPresence = fieldPresence.filter((p_0) => startsWith(path, p_0.path) && !isEqual$1(path, p_0.path)), filteredNext = nextPresence.map(_temp$2J), filteredPrevious = previousPresence.current.map(_temp2$15);
|
|
32784
32792
|
if (!isEqual$1(filteredNext, filteredPrevious)) {
|
|
32785
32793
|
const value = nextPresence.length > 0 ? nextPresence : EMPTY_ARRAY$z;
|
|
32786
32794
|
setCurrentPresence(value), previousPresence.current = value;
|
|
@@ -32812,13 +32820,13 @@ function usePresenceCursorDecorations(props2) {
|
|
|
32812
32820
|
setPresenceCursorDecorations(decorations.filter(Boolean));
|
|
32813
32821
|
}, t6 = [currentPresence, handleRangeDecorationMoved], $[7] = currentPresence, $[8] = t5, $[9] = t6) : (t5 = $[8], t6 = $[9]), useEffect(t5, t6), presenceCursorDecorations;
|
|
32814
32822
|
}
|
|
32815
|
-
function _temp2$
|
|
32823
|
+
function _temp2$15(d_0) {
|
|
32816
32824
|
return {
|
|
32817
32825
|
...d_0.selection,
|
|
32818
32826
|
sessionId: d_0.sessionId
|
|
32819
32827
|
};
|
|
32820
32828
|
}
|
|
32821
|
-
function _temp$
|
|
32829
|
+
function _temp$2J(d) {
|
|
32822
32830
|
return {
|
|
32823
32831
|
...d.selection,
|
|
32824
32832
|
sessionId: d.sessionId
|
|
@@ -33699,12 +33707,12 @@ function useFeatureEnabled(featureKey) {
|
|
|
33699
33707
|
features: features2,
|
|
33700
33708
|
error: null
|
|
33701
33709
|
};
|
|
33702
|
-
}, $[6] = featureKey, $[7] = t2) : t2 = $[7], t1 = req.pipe(map(t2), startWith(INITIAL_LOADING_STATE$3), catchError(_temp$
|
|
33710
|
+
}, $[6] = featureKey, $[7] = t2) : t2 = $[7], t1 = req.pipe(map(t2), startWith(INITIAL_LOADING_STATE$3), catchError(_temp$2I)), $[3] = featureKey, $[4] = req, $[5] = t1;
|
|
33703
33711
|
} else
|
|
33704
33712
|
t1 = $[5];
|
|
33705
33713
|
return useObservable(t1, INITIAL_LOADING_STATE$3);
|
|
33706
33714
|
}
|
|
33707
|
-
function _temp$
|
|
33715
|
+
function _temp$2I(error) {
|
|
33708
33716
|
return of({
|
|
33709
33717
|
isLoading: !1,
|
|
33710
33718
|
enabled: !1,
|
|
@@ -33721,7 +33729,7 @@ function DisabledFeatureWarning(t0) {
|
|
|
33721
33729
|
} = useTranslation();
|
|
33722
33730
|
let t1;
|
|
33723
33731
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
33724
|
-
DocumentationLink: _temp$
|
|
33732
|
+
DocumentationLink: _temp$2H
|
|
33725
33733
|
}, $[0] = t1) : t1 = $[0];
|
|
33726
33734
|
let t2;
|
|
33727
33735
|
$[1] !== t ? (t2 = /* @__PURE__ */ jsx(Translate, { t, i18nKey: "inputs.reference.cross-dataset.feature-disabled-description", components: t1 }), $[1] = t, $[2] = t2) : t2 = $[2];
|
|
@@ -33758,7 +33766,7 @@ function DisabledFeatureWarning(t0) {
|
|
|
33758
33766
|
t11
|
|
33759
33767
|
] }), $[26] = t10, $[27] = t11, $[28] = t12) : t12 = $[28], t12;
|
|
33760
33768
|
}
|
|
33761
|
-
function _temp$
|
|
33769
|
+
function _temp$2H(t0) {
|
|
33762
33770
|
const {
|
|
33763
33771
|
children
|
|
33764
33772
|
} = t0;
|
|
@@ -33838,23 +33846,23 @@ function CrossDatasetReferencePreview(props2) {
|
|
|
33838
33846
|
t5
|
|
33839
33847
|
] }), $[34] = t1, $[35] = t5, $[36] = t6) : t6 = $[36], t6;
|
|
33840
33848
|
}
|
|
33841
|
-
const noop$
|
|
33849
|
+
const noop$2 = () => {
|
|
33842
33850
|
}, INITIAL_LOADING_STATE$2 = {
|
|
33843
33851
|
isLoading: !0,
|
|
33844
33852
|
result: void 0,
|
|
33845
33853
|
error: void 0,
|
|
33846
|
-
retry: noop$
|
|
33854
|
+
retry: noop$2
|
|
33847
33855
|
}, EMPTY_STATE$1 = {
|
|
33848
33856
|
isLoading: !1,
|
|
33849
33857
|
result: void 0,
|
|
33850
33858
|
error: void 0,
|
|
33851
|
-
retry: noop$
|
|
33859
|
+
retry: noop$2
|
|
33852
33860
|
};
|
|
33853
33861
|
function useReferenceInfo$1(doc, getReferenceInfo2) {
|
|
33854
33862
|
const $ = c(8), [retryAttempt, setRetryAttempt] = useState(0);
|
|
33855
33863
|
let t0;
|
|
33856
33864
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => {
|
|
33857
|
-
setRetryAttempt(_temp$
|
|
33865
|
+
setRetryAttempt(_temp$2G);
|
|
33858
33866
|
}, $[0] = t0) : t0 = $[0];
|
|
33859
33867
|
const retry2 = t0;
|
|
33860
33868
|
let t1;
|
|
@@ -33878,7 +33886,7 @@ function useReferenceInfo$1(doc, getReferenceInfo2) {
|
|
|
33878
33886
|
retryAttempt
|
|
33879
33887
|
})))) : of(EMPTY_STATE$1), $[4] = docInfo, $[5] = getReferenceInfo2, $[6] = retryAttempt, $[7] = t2) : t2 = $[7], useObservable(t2, INITIAL_LOADING_STATE$2);
|
|
33880
33888
|
}
|
|
33881
|
-
function _temp$
|
|
33889
|
+
function _temp$2G(current) {
|
|
33882
33890
|
return current + 1;
|
|
33883
33891
|
}
|
|
33884
33892
|
function useProjectId$1() {
|
|
@@ -34118,7 +34126,7 @@ function CrossDatasetReferenceInput(props2) {
|
|
|
34118
34126
|
push
|
|
34119
34127
|
} = useToast();
|
|
34120
34128
|
let t12;
|
|
34121
|
-
$[29] !== validation2 ? (t12 = validation2.filter(_temp$
|
|
34129
|
+
$[29] !== validation2 ? (t12 = validation2.filter(_temp$2F), $[29] = validation2, $[30] = t12) : t12 = $[30];
|
|
34122
34130
|
const errors = t12;
|
|
34123
34131
|
let t13;
|
|
34124
34132
|
$[31] !== onPathFocus ? (t13 = (event_0) => {
|
|
@@ -34149,7 +34157,7 @@ function CrossDatasetReferenceInput(props2) {
|
|
|
34149
34157
|
id: `reference-search-fail-${inputId}`
|
|
34150
34158
|
}), console.error(error), of({
|
|
34151
34159
|
hits: []
|
|
34152
|
-
})))))), scan(_temp2$
|
|
34160
|
+
})))))), scan(_temp2$14, INITIAL_SEARCH_STATE$2), tap(setSearchState)), $[37] = inputId, $[38] = onSearch, $[39] = push, $[40] = t16) : t16 = $[40];
|
|
34153
34161
|
const handleQueryChange = useObservableEvent(t16);
|
|
34154
34162
|
let t17;
|
|
34155
34163
|
$[41] !== handleQueryChange ? (t17 = () => {
|
|
@@ -34200,13 +34208,13 @@ function _temp3$w(hit_0) {
|
|
|
34200
34208
|
hit: hit_0
|
|
34201
34209
|
};
|
|
34202
34210
|
}
|
|
34203
|
-
function _temp2$
|
|
34211
|
+
function _temp2$14(prevState, nextState) {
|
|
34204
34212
|
return {
|
|
34205
34213
|
...prevState,
|
|
34206
34214
|
...nextState
|
|
34207
34215
|
};
|
|
34208
34216
|
}
|
|
34209
|
-
function _temp$
|
|
34217
|
+
function _temp$2F(item) {
|
|
34210
34218
|
return item.level === "error";
|
|
34211
34219
|
}
|
|
34212
34220
|
const REQUEST_TAG_BASE$1 = "cross-dataset-refs", AVAILABILITY_READABLE$2 = {
|
|
@@ -34436,23 +34444,23 @@ function GlobalDocumentReferencePreview(props2) {
|
|
|
34436
34444
|
t5
|
|
34437
34445
|
] }), $[34] = t1, $[35] = t5, $[36] = t6) : t6 = $[36], t6;
|
|
34438
34446
|
}
|
|
34439
|
-
const noop$
|
|
34447
|
+
const noop$1 = () => {
|
|
34440
34448
|
}, INITIAL_LOADING_STATE$1 = {
|
|
34441
34449
|
isLoading: !0,
|
|
34442
34450
|
result: void 0,
|
|
34443
34451
|
error: void 0,
|
|
34444
|
-
retry: noop$
|
|
34452
|
+
retry: noop$1
|
|
34445
34453
|
}, EMPTY_STATE = {
|
|
34446
34454
|
isLoading: !1,
|
|
34447
34455
|
result: void 0,
|
|
34448
34456
|
error: void 0,
|
|
34449
|
-
retry: noop$
|
|
34457
|
+
retry: noop$1
|
|
34450
34458
|
};
|
|
34451
34459
|
function useReferenceInfo(doc, getReferenceInfo2) {
|
|
34452
34460
|
const $ = c(10), [retryAttempt, setRetryAttempt] = useState(0);
|
|
34453
34461
|
let t0;
|
|
34454
34462
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => {
|
|
34455
|
-
setRetryAttempt(_temp$
|
|
34463
|
+
setRetryAttempt(_temp$2E);
|
|
34456
34464
|
}, $[0] = t0) : t0 = $[0];
|
|
34457
34465
|
const retry2 = t0;
|
|
34458
34466
|
let t1;
|
|
@@ -34486,7 +34494,7 @@ function useReferenceInfo(doc, getReferenceInfo2) {
|
|
|
34486
34494
|
}
|
|
34487
34495
|
return useObservable(t1, INITIAL_LOADING_STATE$1);
|
|
34488
34496
|
}
|
|
34489
|
-
function _temp$
|
|
34497
|
+
function _temp$2E(current) {
|
|
34490
34498
|
return current + 1;
|
|
34491
34499
|
}
|
|
34492
34500
|
function OptionPreview(props2) {
|
|
@@ -34729,7 +34737,7 @@ function GlobalDocumentReferenceInput(props2) {
|
|
|
34729
34737
|
push
|
|
34730
34738
|
} = useToast();
|
|
34731
34739
|
let t11;
|
|
34732
|
-
$[31] !== validation2 ? (t11 = validation2.filter(_temp$
|
|
34740
|
+
$[31] !== validation2 ? (t11 = validation2.filter(_temp$2D), $[31] = validation2, $[32] = t11) : t11 = $[32];
|
|
34733
34741
|
const errors = t11;
|
|
34734
34742
|
let t12;
|
|
34735
34743
|
$[33] !== onPathFocus ? (t12 = (event_0) => {
|
|
@@ -34760,7 +34768,7 @@ function GlobalDocumentReferenceInput(props2) {
|
|
|
34760
34768
|
id: `reference-search-fail-${inputId}`
|
|
34761
34769
|
}), console.error(error), of({
|
|
34762
34770
|
hits: []
|
|
34763
|
-
})))))), scan(_temp2$
|
|
34771
|
+
})))))), scan(_temp2$13, INITIAL_SEARCH_STATE$1), tap(setSearchState)), $[39] = inputId, $[40] = onSearch, $[41] = push, $[42] = t15) : t15 = $[42];
|
|
34764
34772
|
const handleQueryChange = useObservableEvent(t15);
|
|
34765
34773
|
let t16;
|
|
34766
34774
|
$[43] !== handleQueryChange ? (t16 = () => {
|
|
@@ -34827,13 +34835,13 @@ function _temp3$v(hit_0) {
|
|
|
34827
34835
|
hit: hit_0
|
|
34828
34836
|
};
|
|
34829
34837
|
}
|
|
34830
|
-
function _temp2$
|
|
34838
|
+
function _temp2$13(prevState, nextState) {
|
|
34831
34839
|
return {
|
|
34832
34840
|
...prevState,
|
|
34833
34841
|
...nextState
|
|
34834
34842
|
};
|
|
34835
34843
|
}
|
|
34836
|
-
function _temp$
|
|
34844
|
+
function _temp$2D(item) {
|
|
34837
34845
|
return item.level === "error";
|
|
34838
34846
|
}
|
|
34839
34847
|
function getReferenceClient(client, schemaType) {
|
|
@@ -35341,7 +35349,7 @@ const TRANSFORMATIONS = {
|
|
|
35341
35349
|
const controller = new AbortController(), signal = controller.signal;
|
|
35342
35350
|
return fetch(props2.icon.url, {
|
|
35343
35351
|
signal
|
|
35344
|
-
}).then(_temp$
|
|
35352
|
+
}).then(_temp$2C).then((data) => setHtml(data)).catch(_temp2$12), () => {
|
|
35345
35353
|
controller.abort();
|
|
35346
35354
|
};
|
|
35347
35355
|
}, t1 = [props2.icon.url], $[0] = props2.icon.url, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
@@ -35492,12 +35500,12 @@ function UpsellDescriptionSerializer(props2) {
|
|
|
35492
35500
|
let t2;
|
|
35493
35501
|
return $[5] !== components2 || $[6] !== value ? (t2 = /* @__PURE__ */ jsx(Card, { tone: "default", children: /* @__PURE__ */ jsx(SerializerContainer, { children: /* @__PURE__ */ jsx(PortableText$1, { value, components: components2, onMissingComponent: !1 }) }) }), $[5] = components2, $[6] = value, $[7] = t2) : t2 = $[7], t2;
|
|
35494
35502
|
}
|
|
35495
|
-
function _temp$
|
|
35503
|
+
function _temp$2C(response) {
|
|
35496
35504
|
if (!response.ok)
|
|
35497
35505
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
35498
35506
|
return response.text();
|
|
35499
35507
|
}
|
|
35500
|
-
function _temp2$
|
|
35508
|
+
function _temp2$12(error) {
|
|
35501
35509
|
error.name !== "AbortError" && console.error(error);
|
|
35502
35510
|
}
|
|
35503
35511
|
const StyledButton$3 = styled(Button)(({
|
|
@@ -35627,9 +35635,9 @@ function useReferringDocuments(id2, t0) {
|
|
|
35627
35635
|
docId: id2
|
|
35628
35636
|
}, {
|
|
35629
35637
|
tag: "use-referring-documents"
|
|
35630
|
-
}).pipe(map(_temp$
|
|
35638
|
+
}).pipe(map(_temp$2B), startWith(INITIAL_STATE$8)), $[2] = documentStore, $[3] = id2, $[4] = projection, $[5] = t2) : t2 = $[5], useObservable(t2, INITIAL_STATE$8);
|
|
35631
35639
|
}
|
|
35632
|
-
function _temp$
|
|
35640
|
+
function _temp$2B(docs) {
|
|
35633
35641
|
return {
|
|
35634
35642
|
referringDocuments: docs,
|
|
35635
35643
|
isLoading: !1
|
|
@@ -35657,7 +35665,7 @@ const AssetUsageList = (t0) => {
|
|
|
35657
35665
|
let t6;
|
|
35658
35666
|
$[8] !== t1 || $[9] !== t5 ? (t6 = /* @__PURE__ */ jsx(Card, { borderBottom: t1, marginTop: 2, paddingBottom: 2, marginBottom: 1, children: t5 }), $[8] = t1, $[9] = t5, $[10] = t6) : t6 = $[10];
|
|
35659
35667
|
let t7;
|
|
35660
|
-
$[11] !== referringDocuments ? (t7 = referringDocuments.map(_temp$
|
|
35668
|
+
$[11] !== referringDocuments ? (t7 = referringDocuments.map(_temp$2A), $[11] = referringDocuments, $[12] = t7) : t7 = $[12];
|
|
35661
35669
|
let t8;
|
|
35662
35670
|
return $[13] !== t6 || $[14] !== t7 ? (t8 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
35663
35671
|
t6,
|
|
@@ -35685,7 +35693,7 @@ const AssetUsageList = (t0) => {
|
|
|
35685
35693
|
let t6;
|
|
35686
35694
|
return $[11] !== LinkComponent2 || $[12] !== document2._id || $[13] !== t5 ? (t6 = /* @__PURE__ */ jsx(Card, { as: LinkComponent2, radius: 2, "data-as": "a", tabIndex: 0, children: t5 }, t2), $[11] = LinkComponent2, $[12] = document2._id, $[13] = t5, $[14] = t6) : t6 = $[14], t6;
|
|
35687
35695
|
};
|
|
35688
|
-
function _temp$
|
|
35696
|
+
function _temp$2A(document2) {
|
|
35689
35697
|
return /* @__PURE__ */ jsx(DocumentLink, { document: document2 }, document2._id);
|
|
35690
35698
|
}
|
|
35691
35699
|
const STYLE_ASSET_IMAGE = {
|
|
@@ -35781,7 +35789,7 @@ function AssetDeleteDialog(t0) {
|
|
|
35781
35789
|
} = useLegacyReferringDocuments(asset._id);
|
|
35782
35790
|
let t2;
|
|
35783
35791
|
if ($[0] !== referringDocuments) {
|
|
35784
|
-
const drafts = referringDocuments.reduce(_temp$
|
|
35792
|
+
const drafts = referringDocuments.reduce(_temp$2z, []);
|
|
35785
35793
|
t2 = referringDocuments.filter((doc_0) => !drafts.includes(doc_0._id)), $[0] = referringDocuments, $[1] = t2;
|
|
35786
35794
|
} else
|
|
35787
35795
|
t2 = $[1];
|
|
@@ -35822,7 +35830,7 @@ function AssetDeleteDialog(t0) {
|
|
|
35822
35830
|
let t10;
|
|
35823
35831
|
return $[26] !== isLoading || $[27] !== onClose || $[28] !== t7 || $[29] !== t8 || $[30] !== t9 ? (t10 = /* @__PURE__ */ jsx(Dialog$1, { __unstable_autoFocus: isLoading, footer: t7, header: t8, id: "asset-dialog", onClickOutside: onClose, onClose, width: 1, children: t9 }), $[26] = isLoading, $[27] = onClose, $[28] = t7, $[29] = t8, $[30] = t9, $[31] = t10) : t10 = $[31], t10;
|
|
35824
35832
|
}
|
|
35825
|
-
function _temp$
|
|
35833
|
+
function _temp$2z(acc, doc) {
|
|
35826
35834
|
return doc._id.startsWith("drafts.") ? acc.concat(doc._id.slice(7)) : acc;
|
|
35827
35835
|
}
|
|
35828
35836
|
const MENU_POPOVER_PROPS$2 = {
|
|
@@ -35878,7 +35886,7 @@ function AssetUsageDialog(t0) {
|
|
|
35878
35886
|
} = useLegacyReferringDocuments(asset._id);
|
|
35879
35887
|
let t1;
|
|
35880
35888
|
if ($[0] !== referringDocuments) {
|
|
35881
|
-
const drafts = referringDocuments.reduce(_temp$
|
|
35889
|
+
const drafts = referringDocuments.reduce(_temp$2y, []);
|
|
35882
35890
|
t1 = referringDocuments.filter((doc_0) => !drafts.includes(doc_0._id)), $[0] = referringDocuments, $[1] = t1;
|
|
35883
35891
|
} else
|
|
35884
35892
|
t1 = $[1];
|
|
@@ -35894,7 +35902,7 @@ function AssetUsageDialog(t0) {
|
|
|
35894
35902
|
let t4;
|
|
35895
35903
|
return $[10] !== onClose || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Dialog$1, { __unstable_autoFocus: !0, header: t2, id: "asset-dialog", onClickOutside: onClose, onClose, width: 1, children: t3 }), $[10] = onClose, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13], t4;
|
|
35896
35904
|
}
|
|
35897
|
-
function _temp$
|
|
35905
|
+
function _temp$2y(acc, doc) {
|
|
35898
35906
|
return doc._id.startsWith("drafts.") ? acc.concat(doc._id.slice(7)) : acc;
|
|
35899
35907
|
}
|
|
35900
35908
|
const MIME_TYPES = {
|
|
@@ -36173,7 +36181,7 @@ const CardIconWrapper = styled.span`
|
|
|
36173
36181
|
const handleToggleUsageDialog = t9;
|
|
36174
36182
|
let t10;
|
|
36175
36183
|
$[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
|
|
36176
|
-
setIsOpen(_temp$
|
|
36184
|
+
setIsOpen(_temp$2x);
|
|
36177
36185
|
}, $[22] = t10) : t10 = $[22];
|
|
36178
36186
|
const handleToggleOpen = t10;
|
|
36179
36187
|
let t11;
|
|
@@ -36289,7 +36297,7 @@ const CardIconWrapper = styled.span`
|
|
|
36289
36297
|
t27
|
|
36290
36298
|
] }), $[100] = asset, $[101] = isSelected, $[102] = t26, $[103] = t27, $[104] = t28) : t28 = $[104], t28;
|
|
36291
36299
|
};
|
|
36292
|
-
function _temp$
|
|
36300
|
+
function _temp$2x(prev) {
|
|
36293
36301
|
return !prev;
|
|
36294
36302
|
}
|
|
36295
36303
|
const STYLES_FILENAME = {
|
|
@@ -36559,7 +36567,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
|
|
|
36559
36567
|
$[0] !== client ? (t0 = client.withConfig({
|
|
36560
36568
|
apiVersion: "2023-02-14"
|
|
36561
36569
|
}), $[0] = client, $[1] = t0) : t0 = $[1];
|
|
36562
|
-
const versionedClient2 = t0, [_elementId] = useState(_temp$
|
|
36570
|
+
const versionedClient2 = t0, [_elementId] = useState(_temp$2w), currentPageNumber = useRef(0), {
|
|
36563
36571
|
t
|
|
36564
36572
|
} = useTranslation(), fetch$ = useRef(void 0);
|
|
36565
36573
|
let t1;
|
|
@@ -36646,7 +36654,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
|
|
|
36646
36654
|
$[30] !== accept || $[31] !== isImageOnlyWildCard || $[32] !== isLoading || $[33] !== listFormat || $[34] !== t ? (t16 = !isImageOnlyWildCard && !isLoading && accept?.length > 0 && /* @__PURE__ */ jsx(Card, { tone: "primary", padding: 3, border: !0, radius: 2, children: /* @__PURE__ */ jsxs(Flex, { gap: 3, align: "center", children: [
|
|
36647
36655
|
/* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsx(InfoOutlineIcon, {}) }),
|
|
36648
36656
|
/* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "asset-source.dialog.accept-message", values: {
|
|
36649
|
-
acceptTypes: listFormat.format(accept.split(",").map(_temp2$
|
|
36657
|
+
acceptTypes: listFormat.format(accept.split(",").map(_temp2$11))
|
|
36650
36658
|
} }) })
|
|
36651
36659
|
] }) }), $[30] = accept, $[31] = isImageOnlyWildCard, $[32] = isLoading, $[33] = listFormat, $[34] = t, $[35] = t16) : t16 = $[35];
|
|
36652
36660
|
let t17;
|
|
@@ -36665,10 +36673,10 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
|
|
|
36665
36673
|
let t21;
|
|
36666
36674
|
return $[61] !== _elementId || $[62] !== handleClose || $[63] !== hasResetAutoFocus || $[64] !== ref || $[65] !== t15 || $[66] !== t20 ? (t21 = /* @__PURE__ */ jsx(Dialog$1, { __unstable_autoFocus: hasResetAutoFocus, header: t15, id: _elementId, onClickOutside: handleClose, onClose: handleClose, ref, width: 2, children: t20 }), $[61] = _elementId, $[62] = handleClose, $[63] = hasResetAutoFocus, $[64] = ref, $[65] = t15, $[66] = t20, $[67] = t21) : t21 = $[67], t21;
|
|
36667
36675
|
}, SelectAssetsDialog$1 = memo(forwardRef(SelectAssetsComponent));
|
|
36668
|
-
function _temp$
|
|
36676
|
+
function _temp$2w() {
|
|
36669
36677
|
return `default-asset-source-${uniqueId()}`;
|
|
36670
36678
|
}
|
|
36671
|
-
function _temp2$
|
|
36679
|
+
function _temp2$11(type) {
|
|
36672
36680
|
return type.trim();
|
|
36673
36681
|
}
|
|
36674
36682
|
const DatasetAssetSourceComponent = function(props2, ref) {
|
|
@@ -37124,7 +37132,7 @@ function UploadPlaceholderComponent(props2) {
|
|
|
37124
37132
|
} = useTranslation(), client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS), source = useSource();
|
|
37125
37133
|
let result;
|
|
37126
37134
|
if ($[0] !== assetSources || $[1] !== client || $[2] !== source || $[3] !== type) {
|
|
37127
|
-
if (result = assetSources.filter(_temp$
|
|
37135
|
+
if (result = assetSources.filter(_temp$2v), result.length === 0) {
|
|
37128
37136
|
const options = {
|
|
37129
37137
|
client,
|
|
37130
37138
|
title: source.title || source.name
|
|
@@ -37176,7 +37184,7 @@ function UploadPlaceholderComponent(props2) {
|
|
|
37176
37184
|
] })
|
|
37177
37185
|
] }), $[26] = assetSourcesWithUpload.length, $[27] = browse, $[28] = collapsed, $[29] = directUploads, $[30] = hoveringFiles, $[31] = readOnly, $[32] = type, $[33] = uploadButton, $[34] = t3) : t3 = $[34], t3;
|
|
37178
37186
|
}
|
|
37179
|
-
function _temp$
|
|
37187
|
+
function _temp$2v(s) {
|
|
37180
37188
|
return !!s.Uploader;
|
|
37181
37189
|
}
|
|
37182
37190
|
const UploadPlaceholder = memo(UploadPlaceholderComponent), STALE_UPLOAD_MS = 12e4, RatioBox$2 = styled(Card)`
|
|
@@ -37639,7 +37647,7 @@ function FilePreview$1(props2) {
|
|
|
37639
37647
|
$[0] !== schemaType ? (t0 = get(schemaType, "options.accept", ""), $[0] = schemaType, $[1] = t0) : t0 = $[1];
|
|
37640
37648
|
const accept = t0;
|
|
37641
37649
|
let t1;
|
|
37642
|
-
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$
|
|
37650
|
+
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$2u), $[2] = assetSources, $[3] = t1) : t1 = $[3];
|
|
37643
37651
|
const assetSourcesWithUpload = t1;
|
|
37644
37652
|
let t2;
|
|
37645
37653
|
$[4] !== assetSources || $[5] !== setSelectedAssetSource ? (t2 = (event) => {
|
|
@@ -37715,7 +37723,7 @@ function FilePreview$1(props2) {
|
|
|
37715
37723
|
let t9;
|
|
37716
37724
|
return $[56] !== asset || $[57] !== observeAsset || $[58] !== t8 ? (t9 = /* @__PURE__ */ jsx(WithReferencedAsset, { reference: asset, observeAsset, waitPlaceholder: t7, children: t8 }), $[56] = asset, $[57] = observeAsset, $[58] = t8, $[59] = t9) : t9 = $[59], t9;
|
|
37717
37725
|
}
|
|
37718
|
-
function _temp$
|
|
37726
|
+
function _temp$2u(s) {
|
|
37719
37727
|
return !!s.Uploader;
|
|
37720
37728
|
}
|
|
37721
37729
|
function FilePreviewContent(t0) {
|
|
@@ -38040,7 +38048,7 @@ function BaseFileInput(props2) {
|
|
|
38040
38048
|
break bb69;
|
|
38041
38049
|
}
|
|
38042
38050
|
case "error": {
|
|
38043
|
-
event.files.forEach(_temp$
|
|
38051
|
+
event.files.forEach(_temp$2t), push({
|
|
38044
38052
|
status: "error",
|
|
38045
38053
|
description: t("asset-sources.common.uploader.upload-failed.description"),
|
|
38046
38054
|
title: t("asset-sources.common.uploader.upload-failed.title")
|
|
@@ -38048,7 +38056,7 @@ function BaseFileInput(props2) {
|
|
|
38048
38056
|
break bb69;
|
|
38049
38057
|
}
|
|
38050
38058
|
case "all-complete": {
|
|
38051
|
-
event.files.some(_temp2$
|
|
38059
|
+
event.files.some(_temp2$10) && handleAssetLimitUpsellDialog("field_action"), onChange(PatchEvent.from([unset([UPLOAD_STATUS_KEY])]));
|
|
38052
38060
|
break bb69;
|
|
38053
38061
|
}
|
|
38054
38062
|
default:
|
|
@@ -38104,10 +38112,10 @@ function BaseFileInput(props2) {
|
|
|
38104
38112
|
t16
|
|
38105
38113
|
] }), $[85] = t15, $[86] = t16, $[87] = t17) : t17 = $[87], t17;
|
|
38106
38114
|
}
|
|
38107
|
-
function _temp2$
|
|
38115
|
+
function _temp2$10(file_0) {
|
|
38108
38116
|
return file_0.status === "error" && isAssetLimitError(file_0.error);
|
|
38109
38117
|
}
|
|
38110
|
-
function _temp$
|
|
38118
|
+
function _temp$2t(file_1) {
|
|
38111
38119
|
console.error(file_1.error);
|
|
38112
38120
|
}
|
|
38113
38121
|
function StudioFileInput(props2) {
|
|
@@ -38348,7 +38356,7 @@ function ImageInputAssetMenuWithReferenceAssetComponent(props2) {
|
|
|
38348
38356
|
$[0] !== documentId || $[1] !== observeAsset ? (t0 = observeAsset(documentId), $[0] = documentId, $[1] = observeAsset, $[2] = t0) : t0 = $[2];
|
|
38349
38357
|
const asset = useObservable(t0);
|
|
38350
38358
|
let t1;
|
|
38351
|
-
$[3] !== assetSources ? (t1 = assetSources.filter(_temp$
|
|
38359
|
+
$[3] !== assetSources ? (t1 = assetSources.filter(_temp$2s), $[3] = assetSources, $[4] = t1) : t1 = $[4];
|
|
38352
38360
|
const assetSourcesWithUpload = t1;
|
|
38353
38361
|
let t2;
|
|
38354
38362
|
$[5] !== asset || $[6] !== assetSources ? (t2 = asset ? findOpenInSourceResult(asset, assetSources) : null, $[5] = asset, $[6] = assetSources, $[7] = t2) : t2 = $[7];
|
|
@@ -38419,7 +38427,7 @@ function ImageInputAssetMenuWithReferenceAssetComponent(props2) {
|
|
|
38419
38427
|
let t12;
|
|
38420
38428
|
return $[51] !== handleOpenDialog || $[52] !== isMenuOpen || $[53] !== setHotspotButtonElement || $[54] !== setMenuButtonElement || $[55] !== setMenuOpen || $[56] !== t11 || $[57] !== t6 ? (t12 = /* @__PURE__ */ jsx(ImageActionsMenu, { isMenuOpen, onEdit: handleOpenDialog, onMenuOpen: setMenuOpen, setHotspotButtonElement, setMenuButtonElement, showEdit: t6, children: t11 }), $[51] = handleOpenDialog, $[52] = isMenuOpen, $[53] = setHotspotButtonElement, $[54] = setMenuButtonElement, $[55] = setMenuOpen, $[56] = t11, $[57] = t6, $[58] = t12) : t12 = $[58], t12;
|
|
38421
38429
|
}
|
|
38422
|
-
function _temp$
|
|
38430
|
+
function _temp$2s(s) {
|
|
38423
38431
|
return !!s.Uploader;
|
|
38424
38432
|
}
|
|
38425
38433
|
const ImageInputAssetMenuWithReferenceAsset = memo(ImageInputAssetMenuWithReferenceAssetComponent);
|
|
@@ -39612,7 +39620,7 @@ function ToolSVGComponent(props2) {
|
|
|
39612
39620
|
const svgElement = svgRef.current;
|
|
39613
39621
|
if (!svgElement)
|
|
39614
39622
|
return;
|
|
39615
|
-
const handleTouchMove = _temp$
|
|
39623
|
+
const handleTouchMove = _temp$2r;
|
|
39616
39624
|
return svgElement.addEventListener("touchmove", handleTouchMove, {
|
|
39617
39625
|
passive: !1
|
|
39618
39626
|
}), () => {
|
|
@@ -39863,7 +39871,7 @@ function ToolSVGComponent(props2) {
|
|
|
39863
39871
|
t83
|
|
39864
39872
|
] }) }), $[217] = handlePointerMove, $[218] = handlePointerUp, $[219] = t19, $[220] = t23, $[221] = t24, $[222] = t30, $[223] = t35, $[224] = t36, $[225] = t47, $[226] = t77, $[227] = t83, $[228] = t84) : t84 = $[228], t84;
|
|
39865
39873
|
}
|
|
39866
|
-
function _temp$
|
|
39874
|
+
function _temp$2r(e) {
|
|
39867
39875
|
e.preventDefault();
|
|
39868
39876
|
}
|
|
39869
39877
|
const ToolSVG = memo(ToolSVGComponent);
|
|
@@ -40010,7 +40018,7 @@ function ImageToolInput(props2) {
|
|
|
40010
40018
|
$[8] !== onChange || $[9] !== readOnly || $[10] !== schemaType.fields ? (t7 = (finalValue) => {
|
|
40011
40019
|
if (readOnly)
|
|
40012
40020
|
return;
|
|
40013
|
-
const cropField = schemaType.fields.find(_temp$
|
|
40021
|
+
const cropField = schemaType.fields.find(_temp$2q), hotspotField = schemaType.fields.find(_temp2$$), crop = cropField ? {
|
|
40014
40022
|
_type: cropField.type.name,
|
|
40015
40023
|
...finalValue.crop || DEFAULT_CROP
|
|
40016
40024
|
} : finalValue.crop, hotspot = hotspotField ? {
|
|
@@ -40090,10 +40098,10 @@ function _temp3$u(t0) {
|
|
|
40090
40098
|
} = t0;
|
|
40091
40099
|
return /* @__PURE__ */ jsx("a", { href: "https://www.sanity.io/docs/image-urls#fm-048ba39d9e88", children });
|
|
40092
40100
|
}
|
|
40093
|
-
function _temp2
|
|
40101
|
+
function _temp2$$(field_0) {
|
|
40094
40102
|
return field_0.type.name !== "object" && field_0.name === "hotspot";
|
|
40095
40103
|
}
|
|
40096
|
-
function _temp$
|
|
40104
|
+
function _temp$2q(field) {
|
|
40097
40105
|
return field.name === "crop" && field.type.name !== "object";
|
|
40098
40106
|
}
|
|
40099
40107
|
function ImageInputHotspotInput(props2) {
|
|
@@ -40374,7 +40382,7 @@ function BaseImageInputComponent(props2) {
|
|
|
40374
40382
|
const handleClearField = t5;
|
|
40375
40383
|
let t6;
|
|
40376
40384
|
$[19] !== onChange || $[20] !== value || $[21] !== valueIsArrayElement ? (t6 = () => {
|
|
40377
|
-
const allKeys = Object.keys(value || {}), isEmpty2 = allKeys.filter(_temp$
|
|
40385
|
+
const allKeys = Object.keys(value || {}), isEmpty2 = allKeys.filter(_temp$2p).length === 0, removeKeys = ["asset", "media"].concat(allKeys.filter(_temp2$_)).map(_temp3$t);
|
|
40378
40386
|
onChange(isEmpty2 && !valueIsArrayElement() ? unset() : removeKeys);
|
|
40379
40387
|
}, $[19] = onChange, $[20] = value, $[21] = valueIsArrayElement, $[22] = t6) : t6 = $[22];
|
|
40380
40388
|
const handleRemoveButtonClick = t6;
|
|
@@ -40545,10 +40553,10 @@ function _temp4$c(eventFile_0) {
|
|
|
40545
40553
|
function _temp3$t(key_1) {
|
|
40546
40554
|
return unset([key_1]);
|
|
40547
40555
|
}
|
|
40548
|
-
function _temp2
|
|
40556
|
+
function _temp2$_(key_0) {
|
|
40549
40557
|
return ["crop", "hotspot", "_upload"].includes(key_0);
|
|
40550
40558
|
}
|
|
40551
|
-
function _temp$
|
|
40559
|
+
function _temp$2p(key) {
|
|
40552
40560
|
return !["_type", "_key", "_upload", "asset", "crop", "hotspot", "media"].includes(key);
|
|
40553
40561
|
}
|
|
40554
40562
|
const BaseImageInput = memo(BaseImageInputComponent);
|
|
@@ -40833,11 +40841,11 @@ function TagsArrayInput(props2) {
|
|
|
40833
40841
|
$[0] !== t0 ? (t1 = t0 === void 0 ? [] : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
40834
40842
|
const value = t1;
|
|
40835
40843
|
let t2;
|
|
40836
|
-
$[2] !== value ? (t2 = value?.map(_temp$
|
|
40844
|
+
$[2] !== value ? (t2 = value?.map(_temp$2o), $[2] = value, $[3] = t2) : t2 = $[3];
|
|
40837
40845
|
const tagInputValue = t2;
|
|
40838
40846
|
let t3;
|
|
40839
40847
|
$[4] !== onChange ? (t3 = (nextValue) => {
|
|
40840
|
-
onChange(nextValue.length === 0 ? unset() : set(nextValue.map(_temp2$
|
|
40848
|
+
onChange(nextValue.length === 0 ? unset() : set(nextValue.map(_temp2$Z)));
|
|
40841
40849
|
}, $[4] = onChange, $[5] = t3) : t3 = $[5];
|
|
40842
40850
|
const handleChange = t3;
|
|
40843
40851
|
let t4;
|
|
@@ -40845,10 +40853,10 @@ function TagsArrayInput(props2) {
|
|
|
40845
40853
|
let t5;
|
|
40846
40854
|
return $[11] !== changed || $[12] !== path || $[13] !== t4 ? (t5 = /* @__PURE__ */ jsx(ChangeIndicator, { path, isChanged: changed, hasFocus: !1, children: t4 }), $[11] = changed, $[12] = path, $[13] = t4, $[14] = t5) : t5 = $[14], t5;
|
|
40847
40855
|
}
|
|
40848
|
-
function _temp2$
|
|
40856
|
+
function _temp2$Z(v_0) {
|
|
40849
40857
|
return v_0.value;
|
|
40850
40858
|
}
|
|
40851
|
-
function _temp$
|
|
40859
|
+
function _temp$2o(v) {
|
|
40852
40860
|
return {
|
|
40853
40861
|
value: v
|
|
40854
40862
|
};
|
|
@@ -40925,11 +40933,11 @@ function SelectInput(props2) {
|
|
|
40925
40933
|
}
|
|
40926
40934
|
handleChange(nextItem_0);
|
|
40927
40935
|
}, $[12] = handleChange, $[13] = itemFromOptionValue, $[14] = t6) : t6 = $[14];
|
|
40928
|
-
const handleSelectChange = t6, content = isRadio ? /* @__PURE__ */ jsx(RadioSelect, { ...elementProps, value: currentItem, inputId, items, direction: schemaType.options?.direction || "vertical", customValidity: validationError, onChange: handleChange, readOnly }) : /* @__PURE__ */ jsx(Select, { ...elementProps, customValidity: validationError, value: optionValueFromItem(currentItem), readOnly, onChange: handleSelectChange, children: [EMPTY_ITEM, ...items].map(_temp$
|
|
40936
|
+
const handleSelectChange = t6, content = isRadio ? /* @__PURE__ */ jsx(RadioSelect, { ...elementProps, value: currentItem, inputId, items, direction: schemaType.options?.direction || "vertical", customValidity: validationError, onChange: handleChange, readOnly }) : /* @__PURE__ */ jsx(Select, { ...elementProps, customValidity: validationError, value: optionValueFromItem(currentItem), readOnly, onChange: handleSelectChange, children: [EMPTY_ITEM, ...items].map(_temp$2n) }), t7 = !!focused;
|
|
40929
40937
|
let t8;
|
|
40930
40938
|
return $[15] !== changed || $[16] !== content || $[17] !== path || $[18] !== t7 ? (t8 = /* @__PURE__ */ jsx(ChangeIndicator, { path, isChanged: changed, hasFocus: t7, children: content }), $[15] = changed, $[16] = content, $[17] = path, $[18] = t7, $[19] = t8) : t8 = $[19], t8;
|
|
40931
40939
|
}
|
|
40932
|
-
function _temp$
|
|
40940
|
+
function _temp$2n(item_1, i) {
|
|
40933
40941
|
return /* @__PURE__ */ jsx("option", { value: i - 1, children: item_1.title }, `${i - 1}`);
|
|
40934
40942
|
}
|
|
40935
40943
|
const RadioSelect = forwardRef(function(props2, ref) {
|
|
@@ -41097,7 +41105,7 @@ function PreviewItem(props2) {
|
|
|
41097
41105
|
const presence = t7, childValidation = useChildValidation(path, !0);
|
|
41098
41106
|
let t8;
|
|
41099
41107
|
$[14] !== childValidation ? (t8 = childValidation.length === 0 ? null : /* @__PURE__ */ jsx(Box, { paddingX: 1, paddingY: 3, children: /* @__PURE__ */ jsx(FormFieldValidationStatus, { validation: childValidation, __unstable_showSummary: !0 }) }), $[14] = childValidation, $[15] = t8) : t8 = $[15];
|
|
41100
|
-
const validation2 = t8, hasErrors = childValidation.some(_temp$
|
|
41108
|
+
const validation2 = t8, hasErrors = childValidation.some(_temp$2m), hasWarnings = childValidation.some(_temp2$Y), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
|
|
41101
41109
|
let t10;
|
|
41102
41110
|
$[16] !== contextMenuButtonElement || $[17] !== handleInsert || $[18] !== insertableTypes || $[19] !== t9 ? (t10 = {
|
|
41103
41111
|
schemaTypes: insertableTypes,
|
|
@@ -41180,10 +41188,10 @@ function PreviewItem(props2) {
|
|
|
41180
41188
|
t23 = $[89];
|
|
41181
41189
|
return t23;
|
|
41182
41190
|
}
|
|
41183
|
-
function _temp2$
|
|
41191
|
+
function _temp2$Y(v_0) {
|
|
41184
41192
|
return v_0.level === "warning";
|
|
41185
41193
|
}
|
|
41186
|
-
function _temp$
|
|
41194
|
+
function _temp$2m(v) {
|
|
41187
41195
|
return v.level === "error";
|
|
41188
41196
|
}
|
|
41189
41197
|
function ReferenceItemRefProvider(props2) {
|
|
@@ -41255,7 +41263,7 @@ function ReferenceItem(props2) {
|
|
|
41255
41263
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (hadFocus, hasFocus) => {
|
|
41256
41264
|
!hadFocus && hasFocus && elementRef.current && elementRef.current?.focus();
|
|
41257
41265
|
}, $[4] = t2) : t2 = $[4], useDidUpdate(focused, t2);
|
|
41258
|
-
const hasErrors = props2.validation.some(_temp$
|
|
41266
|
+
const hasErrors = props2.validation.some(_temp$2l), hasWarnings = props2.validation.some(_temp2$X), resolvingInitialValue = value._resolvingInitialValue;
|
|
41259
41267
|
let t3;
|
|
41260
41268
|
$[5] !== onInsert || $[6] !== value ? (t3 = () => {
|
|
41261
41269
|
onInsert({
|
|
@@ -41389,10 +41397,10 @@ function ReferenceItem(props2) {
|
|
|
41389
41397
|
let t27;
|
|
41390
41398
|
return $[98] !== changed || $[99] !== path || $[100] !== t25 || $[101] !== t26 ? (t27 = /* @__PURE__ */ jsx(ChangeIndicator, { path, isChanged: changed, hasFocus: t25, children: t26 }), $[98] = changed, $[99] = path, $[100] = t25, $[101] = t26, $[102] = t27) : t27 = $[102], t27;
|
|
41391
41399
|
}
|
|
41392
|
-
function _temp2$
|
|
41400
|
+
function _temp2$X(v_0) {
|
|
41393
41401
|
return v_0.level === "warning";
|
|
41394
41402
|
}
|
|
41395
|
-
function _temp$
|
|
41403
|
+
function _temp$2l(v) {
|
|
41396
41404
|
return v.level === "error";
|
|
41397
41405
|
}
|
|
41398
41406
|
function defaultResolveItemComponent(schemaType) {
|
|
@@ -42305,17 +42313,12 @@ function prepareDiffProps({
|
|
|
42305
42313
|
};
|
|
42306
42314
|
}
|
|
42307
42315
|
function DialogStackProvider(t0) {
|
|
42308
|
-
const $ = c(
|
|
42316
|
+
const $ = c(9), {
|
|
42309
42317
|
children
|
|
42310
42318
|
} = t0;
|
|
42311
42319
|
let t1;
|
|
42312
42320
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
|
|
42313
|
-
const [stack, setStack] = useState(t1)
|
|
42314
|
-
onPathOpen
|
|
42315
|
-
} = useFormCallbacks(), {
|
|
42316
|
-
hasAnyFullscreen,
|
|
42317
|
-
allFullscreenPaths
|
|
42318
|
-
} = useFullscreenPTE();
|
|
42321
|
+
const [stack, setStack] = useState(t1);
|
|
42319
42322
|
let t2;
|
|
42320
42323
|
$[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (id2, path) => {
|
|
42321
42324
|
setStack((prev) => prev.some((entry) => entry.id === id2) ? prev : [...prev, {
|
|
@@ -42338,63 +42341,15 @@ function DialogStackProvider(t0) {
|
|
|
42338
42341
|
}, $[3] = t4) : t4 = $[3];
|
|
42339
42342
|
const update = t4;
|
|
42340
42343
|
let t5;
|
|
42341
|
-
$[4] !==
|
|
42342
|
-
const fullscreenPath = stringToPath(pathStr);
|
|
42343
|
-
if (fullscreenPath.length > currentPath.length || !fullscreenPath.every((segment, index) => {
|
|
42344
|
-
const currentSegment = currentPath[index];
|
|
42345
|
-
return isKeySegment(segment) && isKeySegment(currentSegment) ? segment._key === currentSegment._key : segment === currentSegment;
|
|
42346
|
-
}))
|
|
42347
|
-
return !1;
|
|
42348
|
-
if (fullscreenPath.some(_temp$2l))
|
|
42349
|
-
return !0;
|
|
42350
|
-
const nextSegment = currentPath[fullscreenPath.length];
|
|
42351
|
-
return !isKeySegment(nextSegment);
|
|
42352
|
-
}), $[4] = allFullscreenPaths, $[5] = t5) : t5 = $[5];
|
|
42353
|
-
const findAncestorFullscreenPath = t5;
|
|
42354
|
-
let t6;
|
|
42355
|
-
$[6] !== onPathOpen ? (t6 = () => {
|
|
42356
|
-
onPathOpen(EMPTY_ARRAY$z), setStack([]);
|
|
42357
|
-
}, $[6] = onPathOpen, $[7] = t6) : t6 = $[7];
|
|
42358
|
-
const closeAll = t6;
|
|
42359
|
-
let t7;
|
|
42360
|
-
$[8] !== findAncestorFullscreenPath || $[9] !== onPathOpen ? (t7 = (currentPath_0) => {
|
|
42361
|
-
const ancestorPaths = findAncestorFullscreenPath(currentPath_0);
|
|
42362
|
-
if (ancestorPaths && ancestorPaths.length > 0) {
|
|
42363
|
-
const closestParentPath = ancestorPaths.reduce(_temp2$X), newPath = stringToPath(closestParentPath);
|
|
42364
|
-
onPathOpen(newPath), setStack((prev_2) => prev_2.filter((entry_2) => !entry_2.path || entry_2.path.length >= newPath.length ? !1 : entry_2.path.every((segment_1, index_0) => {
|
|
42365
|
-
const newSegment = newPath[index_0];
|
|
42366
|
-
return isKeySegment(segment_1) && isKeySegment(newSegment) ? segment_1._key === newSegment._key : segment_1 === newSegment;
|
|
42367
|
-
})));
|
|
42368
|
-
}
|
|
42369
|
-
}, $[8] = findAncestorFullscreenPath, $[9] = onPathOpen, $[10] = t7) : t7 = $[10];
|
|
42370
|
-
const closeWithFullscreen = t7;
|
|
42371
|
-
let t8;
|
|
42372
|
-
$[11] !== allFullscreenPaths || $[12] !== closeAll || $[13] !== closeWithFullscreen || $[14] !== hasAnyFullscreen || $[15] !== stack ? (t8 = () => {
|
|
42373
|
-
const currentPath_1 = stack[stack.length - 1]?.path;
|
|
42374
|
-
if (currentPath_1 && hasAnyFullscreen() && allFullscreenPaths.length >= 1) {
|
|
42375
|
-
closeWithFullscreen(currentPath_1);
|
|
42376
|
-
return;
|
|
42377
|
-
}
|
|
42378
|
-
closeAll();
|
|
42379
|
-
}, $[11] = allFullscreenPaths, $[12] = closeAll, $[13] = closeWithFullscreen, $[14] = hasAnyFullscreen, $[15] = stack, $[16] = t8) : t8 = $[16];
|
|
42380
|
-
const close = t8;
|
|
42381
|
-
let t9;
|
|
42382
|
-
$[17] !== close || $[18] !== stack ? (t9 = {
|
|
42344
|
+
$[4] !== stack ? (t5 = {
|
|
42383
42345
|
stack,
|
|
42384
42346
|
push,
|
|
42385
42347
|
remove: remove2,
|
|
42386
|
-
update
|
|
42387
|
-
|
|
42388
|
-
|
|
42389
|
-
|
|
42390
|
-
|
|
42391
|
-
return $[20] !== children || $[21] !== value ? (t10 = /* @__PURE__ */ jsx(DialogStackContext.Provider, { value, children }), $[20] = children, $[21] = value, $[22] = t10) : t10 = $[22], t10;
|
|
42392
|
-
}
|
|
42393
|
-
function _temp2$X(longest, current) {
|
|
42394
|
-
return current.length > longest.length ? current : longest;
|
|
42395
|
-
}
|
|
42396
|
-
function _temp$2l(segment_0) {
|
|
42397
|
-
return isKeySegment(segment_0);
|
|
42348
|
+
update
|
|
42349
|
+
}, $[4] = stack, $[5] = t5) : t5 = $[5];
|
|
42350
|
+
const value = t5;
|
|
42351
|
+
let t6;
|
|
42352
|
+
return $[6] !== children || $[7] !== value ? (t6 = /* @__PURE__ */ jsx(DialogStackContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t6) : t6 = $[8], t6;
|
|
42398
42353
|
}
|
|
42399
42354
|
function FormBuilderInputErrorBoundary(props2) {
|
|
42400
42355
|
const $ = c(7), {
|
|
@@ -54068,7 +54023,7 @@ function useGuardWithReleaseLimitUpsell() {
|
|
|
54068
54023
|
$[0] !== guardWithReleaseLimitUpsell ? (t0 = () => {
|
|
54069
54024
|
setIsPendingGuardResponse(!0);
|
|
54070
54025
|
const promise = new Promise((resolve) => {
|
|
54071
|
-
guardWithReleaseLimitUpsell(noop$
|
|
54026
|
+
guardWithReleaseLimitUpsell(noop$6, !1, (hasPassed) => {
|
|
54072
54027
|
resolve(hasPassed);
|
|
54073
54028
|
});
|
|
54074
54029
|
});
|
|
@@ -57629,10 +57584,8 @@ function EditPortal(props2) {
|
|
|
57629
57584
|
let t2;
|
|
57630
57585
|
return $[15] !== header || $[16] !== onClose || $[17] !== props2.legacy_referenceElement || $[18] !== t1 || $[19] !== width ? (t2 = /* @__PURE__ */ jsx(PopoverDialog, { header, onClose, referenceElement: props2.legacy_referenceElement, width, containerRef: setDocumentScrollElement, children: t1 }), $[15] = header, $[16] = onClose, $[17] = props2.legacy_referenceElement, $[18] = t1, $[19] = width, $[20] = t2) : t2 = $[20], t2;
|
|
57631
57586
|
}
|
|
57632
|
-
const noop$1 = () => {
|
|
57633
|
-
};
|
|
57634
57587
|
function useDialogStack(t0) {
|
|
57635
|
-
const $ = c(
|
|
57588
|
+
const $ = c(20);
|
|
57636
57589
|
let t1;
|
|
57637
57590
|
$[0] !== t0 ? (t1 = t0 === void 0 ? {} : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
57638
57591
|
const {
|
|
@@ -57651,15 +57604,14 @@ function useDialogStack(t0) {
|
|
|
57651
57604
|
}, t5 = [update, id2, path], $[8] = id2, $[9] = path, $[10] = update, $[11] = t4, $[12] = t5) : (t4 = $[11], t5 = $[12]), useEffect(t4, t5);
|
|
57652
57605
|
let t6;
|
|
57653
57606
|
$[13] !== context?.stack ? (t6 = context?.stack ?? [], $[13] = context?.stack, $[14] = t6) : t6 = $[14];
|
|
57654
|
-
const stack = t6, topEntry = stack.length > 0 ? stack[stack.length - 1] : null, isTop = context ? topEntry?.id === id2 : !0
|
|
57607
|
+
const stack = t6, topEntry = stack.length > 0 ? stack[stack.length - 1] : null, isTop = context ? topEntry?.id === id2 : !0;
|
|
57655
57608
|
let t7;
|
|
57656
|
-
return $[15] !==
|
|
57609
|
+
return $[15] !== id2 || $[16] !== isTop || $[17] !== stack || $[18] !== topEntry ? (t7 = {
|
|
57657
57610
|
dialogId: id2,
|
|
57658
57611
|
topEntry,
|
|
57659
57612
|
stack,
|
|
57660
|
-
isTop
|
|
57661
|
-
|
|
57662
|
-
}, $[15] = close, $[16] = id2, $[17] = isTop, $[18] = stack, $[19] = topEntry, $[20] = t7) : t7 = $[20], t7;
|
|
57613
|
+
isTop
|
|
57614
|
+
}, $[15] = id2, $[16] = isTop, $[17] = stack, $[18] = topEntry, $[19] = t7) : t7 = $[19], t7;
|
|
57663
57615
|
}
|
|
57664
57616
|
function getSchemaField$1(schemaType, fieldPath) {
|
|
57665
57617
|
if (!fieldPath) return;
|
|
@@ -58025,7 +57977,7 @@ function onDrop(event) {
|
|
|
58025
57977
|
return event.stopPropagation();
|
|
58026
57978
|
}
|
|
58027
57979
|
function EnhancedObjectDialog(props2) {
|
|
58028
|
-
const $ = c(
|
|
57980
|
+
const $ = c(48), {
|
|
58029
57981
|
children,
|
|
58030
57982
|
header,
|
|
58031
57983
|
onClose,
|
|
@@ -58044,8 +57996,7 @@ function EnhancedObjectDialog(props2) {
|
|
|
58044
57996
|
const {
|
|
58045
57997
|
dialogId,
|
|
58046
57998
|
isTop,
|
|
58047
|
-
stack
|
|
58048
|
-
close
|
|
57999
|
+
stack
|
|
58049
58000
|
} = useDialogStack(t0);
|
|
58050
58001
|
let t1;
|
|
58051
58002
|
$[2] !== stack.length || $[3] !== telemetry ? (t1 = () => {
|
|
@@ -58068,40 +58019,36 @@ function EnhancedObjectDialog(props2) {
|
|
|
58068
58019
|
}, t6 = [stack.length, hasEverBeenNested], $[11] = hasEverBeenNested, $[12] = stack.length, $[13] = t5, $[14] = t6) : (t5 = $[13], t6 = $[14]), useEffect(t5, t6);
|
|
58069
58020
|
const shouldDisableAnimation = stack.length > 1 || hasEverBeenNested;
|
|
58070
58021
|
let t7;
|
|
58071
|
-
$[15] !==
|
|
58022
|
+
$[15] !== isTop || $[16] !== onClose || $[17] !== onPathOpen || $[18] !== stack || $[19] !== telemetry ? (t7 = (event) => {
|
|
58072
58023
|
if (isTop && (event.metaKey || event.ctrlKey) && event.key === "ArrowUp") {
|
|
58073
58024
|
event.preventDefault();
|
|
58074
58025
|
const lastStackPath = stack[stack.length - 1]?.path;
|
|
58075
58026
|
if (lastStackPath && lastStackPath.length > 1) {
|
|
58076
58027
|
const newLastStackPath = lastStackPath.slice(0, -1);
|
|
58077
|
-
newLastStackPath.length > 1 ? onPathOpen(newLastStackPath) : (telemetry.log(NestedDialogClosed,
|
|
58078
|
-
path: pathToString$1([])
|
|
58079
|
-
}), onClose?.(), close());
|
|
58028
|
+
newLastStackPath.length > 1 ? (telemetry.log(navigatedToNestedObjectViaKeyboardShortcut), onPathOpen(newLastStackPath)) : (telemetry.log(NestedDialogClosed), onClose?.());
|
|
58080
58029
|
}
|
|
58081
58030
|
}
|
|
58082
|
-
}, $[15] =
|
|
58031
|
+
}, $[15] = isTop, $[16] = onClose, $[17] = onPathOpen, $[18] = stack, $[19] = telemetry, $[20] = t7) : t7 = $[20];
|
|
58083
58032
|
const handleGlobalKeyDown = t7;
|
|
58084
58033
|
let t8;
|
|
58085
|
-
$[
|
|
58086
|
-
telemetry.log(NestedDialogClosed,
|
|
58087
|
-
|
|
58088
|
-
}), onClose?.(), close();
|
|
58089
|
-
}, $[22] = close, $[23] = onClose, $[24] = telemetry, $[25] = t8) : t8 = $[25];
|
|
58034
|
+
$[21] !== onClose || $[22] !== stack.length || $[23] !== telemetry ? (t8 = () => {
|
|
58035
|
+
stack.length >= 2 ? telemetry.log(NavigatedToNestedObjectViaCloseButton) : telemetry.log(NestedDialogClosed), onClose?.();
|
|
58036
|
+
}, $[21] = onClose, $[22] = stack.length, $[23] = telemetry, $[24] = t8) : t8 = $[24];
|
|
58090
58037
|
const handleClose = t8;
|
|
58091
58038
|
if (useGlobalKeyDown(handleGlobalKeyDown), type === "dialog") {
|
|
58092
58039
|
const t92 = !isTop, t102 = isTop ? props2.autofocus : !1;
|
|
58093
58040
|
let t11;
|
|
58094
|
-
$[
|
|
58041
|
+
$[25] !== currentPath ? (t11 = /* @__PURE__ */ jsx(DialogBreadcrumbs, { currentPath }), $[25] = currentPath, $[26] = t11) : t11 = $[26];
|
|
58095
58042
|
const t12 = !shouldDisableAnimation;
|
|
58096
58043
|
let t13;
|
|
58097
|
-
$[
|
|
58044
|
+
$[27] !== contents || $[28] !== dialogId || $[29] !== handleClose || $[30] !== t102 || $[31] !== t11 || $[32] !== t12 || $[33] !== t92 || $[34] !== width ? (t13 = /* @__PURE__ */ jsx(StyledDialog$2, { $isHidden: t92, __unstable_autoFocus: t102, contentRef: setDocumentScrollElement, "data-testid": "nested-object-dialog", header: t11, id: dialogId, onClose: handleClose, onDragEnter, onDrop, width, animate: t12, children: contents }), $[27] = contents, $[28] = dialogId, $[29] = handleClose, $[30] = t102, $[31] = t11, $[32] = t12, $[33] = t92, $[34] = width, $[35] = t13) : t13 = $[35];
|
|
58098
58045
|
let t14;
|
|
58099
|
-
return $[
|
|
58046
|
+
return $[36] !== documentScrollElement || $[37] !== t13 ? (t14 = /* @__PURE__ */ jsx(VirtualizerScrollInstanceProvider, { scrollElement: documentScrollElement, containerElement, children: t13 }), $[36] = documentScrollElement, $[37] = t13, $[38] = t14) : t14 = $[38], t14;
|
|
58100
58047
|
}
|
|
58101
58048
|
let t9;
|
|
58102
|
-
$[
|
|
58049
|
+
$[39] !== contents || $[40] !== handleClose || $[41] !== header || $[42] !== props2.legacy_referenceElement || $[43] !== width ? (t9 = /* @__PURE__ */ jsx(PopoverDialog, { header, onClose: handleClose, width, containerRef: setDocumentScrollElement, referenceElement: props2.legacy_referenceElement, children: contents }), $[39] = contents, $[40] = handleClose, $[41] = header, $[42] = props2.legacy_referenceElement, $[43] = width, $[44] = t9) : t9 = $[44];
|
|
58103
58050
|
let t10;
|
|
58104
|
-
return $[
|
|
58051
|
+
return $[45] !== documentScrollElement || $[46] !== t9 ? (t10 = /* @__PURE__ */ jsx(VirtualizerScrollInstanceProvider, { scrollElement: documentScrollElement, containerElement, children: t9 }), $[45] = documentScrollElement, $[46] = t9, $[47] = t10) : t10 = $[47], t10;
|
|
58105
58052
|
}
|
|
58106
58053
|
function TelephoneInput(props2) {
|
|
58107
58054
|
const $ = c(5), {
|
|
@@ -91048,7 +90995,7 @@ export {
|
|
|
91048
90995
|
listenQuery,
|
|
91049
90996
|
matchWorkspace,
|
|
91050
90997
|
newDraftFrom,
|
|
91051
|
-
noop$
|
|
90998
|
+
noop$5 as noop,
|
|
91052
90999
|
normalizeIndexSegment,
|
|
91053
91000
|
normalizeIndexTupleSegment,
|
|
91054
91001
|
normalizeKeySegment,
|