sanity 5.1.0-next.8 → 5.1.0
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/README.md +4 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +410 -347
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +3 -3
- package/lib/desk.d.ts +3 -3
- package/lib/index.d.ts +4 -3
- package/lib/index.js +603 -588
- package/lib/index.js.map +1 -1
- package/lib/presentation.d.ts +2 -2
- package/lib/structure.d.ts +2 -2
- package/package.json +15 -15
package/lib/index.js
CHANGED
|
@@ -3177,9 +3177,9 @@ function useGetI18nText(input) {
|
|
|
3177
3177
|
}, $[4] = t, $[5] = t2) : t2 = $[5], t2;
|
|
3178
3178
|
}
|
|
3179
3179
|
function _temp2$1I(item) {
|
|
3180
|
-
return item?.i18n ? Object.values(item.i18n).map(_temp$
|
|
3180
|
+
return item?.i18n ? Object.values(item.i18n).map(_temp$4a) : [];
|
|
3181
3181
|
}
|
|
3182
|
-
function _temp$
|
|
3182
|
+
function _temp$4a(t0) {
|
|
3183
3183
|
const {
|
|
3184
3184
|
ns
|
|
3185
3185
|
} = t0;
|
|
@@ -3195,7 +3195,7 @@ function useI18nText(node) {
|
|
|
3195
3195
|
break bb0;
|
|
3196
3196
|
}
|
|
3197
3197
|
let t12;
|
|
3198
|
-
$[1] !== node.i18n ? (t12 = Array.from(new Set(Object.values(node.i18n).map(_temp$
|
|
3198
|
+
$[1] !== node.i18n ? (t12 = Array.from(new Set(Object.values(node.i18n).map(_temp$49))).sort(), $[1] = node.i18n, $[2] = t12) : t12 = $[2], t0 = t12;
|
|
3199
3199
|
}
|
|
3200
3200
|
const namespaces = t0, {
|
|
3201
3201
|
t
|
|
@@ -3233,7 +3233,7 @@ function useI18nText(node) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
return t1;
|
|
3235
3235
|
}
|
|
3236
|
-
function _temp$
|
|
3236
|
+
function _temp$49(t0) {
|
|
3237
3237
|
const {
|
|
3238
3238
|
ns
|
|
3239
3239
|
} = t0;
|
|
@@ -3516,7 +3516,7 @@ function useEnsureMediaLibrary(props2) {
|
|
|
3516
3516
|
bb0: {
|
|
3517
3517
|
const handleDefault = defaultIfEmpty({
|
|
3518
3518
|
status: "inactive"
|
|
3519
|
-
}), handleError = catchError$1(_temp$
|
|
3519
|
+
}), handleError = catchError$1(_temp$48);
|
|
3520
3520
|
if (props2.from === "library") {
|
|
3521
3521
|
let t23;
|
|
3522
3522
|
$[6] !== props2.libraryId ? (t23 = (organizationId) => ({
|
|
@@ -3547,7 +3547,7 @@ function useEnsureMediaLibrary(props2) {
|
|
|
3547
3547
|
status: "loading"
|
|
3548
3548
|
}, $[10] = t2) : t2 = $[10], useObservable(observable, t2);
|
|
3549
3549
|
}
|
|
3550
|
-
function _temp$
|
|
3550
|
+
function _temp$48(error) {
|
|
3551
3551
|
if (error instanceof ProvisionError)
|
|
3552
3552
|
return of({
|
|
3553
3553
|
status: "error",
|
|
@@ -5564,30 +5564,26 @@ const publish$1 = {
|
|
|
5564
5564
|
schema: schema2,
|
|
5565
5565
|
typeName,
|
|
5566
5566
|
snapshots
|
|
5567
|
-
}) => isLiveEditEnabled$1(schema2, typeName) ? "LIVE_EDIT_ENABLED" : snapshots.draft
|
|
5567
|
+
}) => isLiveEditEnabled$1(schema2, typeName) ? "LIVE_EDIT_ENABLED" : !snapshots.draft && !snapshots.version ? snapshots.published ? "ALREADY_PUBLISHED" : "NO_CHANGES" : !1,
|
|
5568
5568
|
execute: ({
|
|
5569
5569
|
client,
|
|
5570
5570
|
idPair,
|
|
5571
5571
|
snapshots
|
|
5572
5572
|
}) => {
|
|
5573
|
-
if (!snapshots.draft)
|
|
5574
|
-
throw new Error('cannot execute "publish" when draft is missing');
|
|
5575
|
-
const value = strengthenOnPublish(omit(snapshots.draft, "_updatedAt")), tx = operationsApiClient(client, idPair).observable.transaction();
|
|
5576
|
-
if (!snapshots.draft)
|
|
5577
|
-
throw new Error('cannot execute "publish" when draft is missing');
|
|
5573
|
+
if (!snapshots.draft && !snapshots.version)
|
|
5574
|
+
throw new Error('cannot execute "publish" when draft or version is missing');
|
|
5575
|
+
const value = strengthenOnPublish(omit(snapshots.draft || snapshots.version, "_updatedAt")), tx = operationsApiClient(client, idPair).observable.transaction();
|
|
5578
5576
|
return snapshots.published ? (tx.patch(idPair.publishedId, {
|
|
5579
5577
|
// Hack until other mutations support revision locking
|
|
5580
5578
|
unset: ["_revision_lock_pseudo_field_"],
|
|
5581
5579
|
ifRevisionID: snapshots.published._rev
|
|
5582
5580
|
}), tx.createOrReplace({
|
|
5583
5581
|
...value,
|
|
5584
|
-
_id: idPair.publishedId
|
|
5585
|
-
_type: snapshots.draft._type
|
|
5582
|
+
_id: idPair.publishedId
|
|
5586
5583
|
})) : tx.create({
|
|
5587
5584
|
...value,
|
|
5588
|
-
_id: idPair.publishedId
|
|
5589
|
-
|
|
5590
|
-
}), tx.delete(idPair.draftId), tx.commit({
|
|
5585
|
+
_id: idPair.publishedId
|
|
5586
|
+
}), tx.delete(value._id), tx.commit({
|
|
5591
5587
|
tag: "document.publish",
|
|
5592
5588
|
visibility: "async"
|
|
5593
5589
|
});
|
|
@@ -5631,7 +5627,7 @@ const publish$1 = {
|
|
|
5631
5627
|
}, del = {
|
|
5632
5628
|
disabled: ({
|
|
5633
5629
|
snapshots
|
|
5634
|
-
}) => snapshots.draft || snapshots.published ? !1 : "NOTHING_TO_DELETE",
|
|
5630
|
+
}) => snapshots.draft || snapshots.published || snapshots.version ? !1 : "NOTHING_TO_DELETE",
|
|
5635
5631
|
execute: ({
|
|
5636
5632
|
client,
|
|
5637
5633
|
idPair,
|
|
@@ -5658,13 +5654,13 @@ const publish$1 = {
|
|
|
5658
5654
|
}, discardChanges = {
|
|
5659
5655
|
disabled: ({
|
|
5660
5656
|
snapshots
|
|
5661
|
-
}) => snapshots.draft
|
|
5657
|
+
}) => !snapshots.draft && !snapshots.version ? "NO_CHANGES" : !1,
|
|
5662
5658
|
execute: ({
|
|
5663
5659
|
client,
|
|
5664
5660
|
idPair
|
|
5665
5661
|
}) => actionsApiClient(client, idPair).observable.action({
|
|
5666
5662
|
actionType: "sanity.action.document.discard",
|
|
5667
|
-
draftId: idPair.draftId
|
|
5663
|
+
draftId: idPair.versionId || idPair.draftId
|
|
5668
5664
|
}, {
|
|
5669
5665
|
tag: "document.discard-changes"
|
|
5670
5666
|
})
|
|
@@ -5727,17 +5723,17 @@ const publish$1 = {
|
|
|
5727
5723
|
schema: schema2,
|
|
5728
5724
|
typeName,
|
|
5729
5725
|
snapshots
|
|
5730
|
-
}) => isLiveEditEnabled$1(schema2, typeName) ? "LIVE_EDIT_ENABLED" : snapshots.draft
|
|
5726
|
+
}) => isLiveEditEnabled$1(schema2, typeName) ? "LIVE_EDIT_ENABLED" : !snapshots.draft && !snapshots.version ? snapshots.published ? "ALREADY_PUBLISHED" : "NO_CHANGES" : !1,
|
|
5731
5727
|
execute: ({
|
|
5732
5728
|
client,
|
|
5733
5729
|
idPair,
|
|
5734
5730
|
snapshots
|
|
5735
5731
|
}) => {
|
|
5736
|
-
if (!snapshots.draft)
|
|
5737
|
-
throw new Error('cannot execute "publish" when draft is missing');
|
|
5732
|
+
if (!snapshots.draft && !snapshots.version)
|
|
5733
|
+
throw new Error('cannot execute "publish" when draft or version is missing');
|
|
5738
5734
|
return actionsApiClient(client, idPair).observable.action({
|
|
5739
5735
|
actionType: "sanity.action.document.publish",
|
|
5740
|
-
draftId:
|
|
5736
|
+
draftId: snapshots.draft?._id || snapshots.version?._id,
|
|
5741
5737
|
publishedId: idPair.publishedId,
|
|
5742
5738
|
// Optimistic locking using `ifPublishedRevisionId` ensures that concurrent publish action
|
|
5743
5739
|
// invocations do not override each other.
|
|
@@ -6865,14 +6861,13 @@ function shareLatestWithRefCount$1() {
|
|
|
6865
6861
|
refCount: !0
|
|
6866
6862
|
});
|
|
6867
6863
|
}
|
|
6868
|
-
function validateDocumentWithReferences(ctx, document
|
|
6869
|
-
const referenceIds$ = document$.pipe(map((document2) => findReferenceIds(document2)), mergeMap((ids) => from(ids))), versionId$ = document$.pipe(
|
|
6870
|
-
versionId: getVersionFromId(doc?._id || "")
|
|
6871
|
-
})), distinctUntilChanged()), referenceExistence$ = combineLatest([versionId$, referenceIds$]).pipe(groupBy$1(([_, id2]) => id2, {
|
|
6864
|
+
function validateDocumentWithReferences(ctx, document$, requirePublishedReferences) {
|
|
6865
|
+
const referenceIds$ = document$.pipe(map((document2) => findReferenceIds(document2)), mergeMap((ids) => from(ids))), versionId$ = document$.pipe(distinctUntilChanged()), referenceExistence$ = combineLatest([versionId$, referenceIds$]).pipe(groupBy$1(([_, referenceId]) => referenceId, {
|
|
6872
6866
|
duration: () => timer(1e3 * 60 * 30)
|
|
6873
|
-
}), mergeMap((
|
|
6874
|
-
versionId
|
|
6875
|
-
|
|
6867
|
+
}), mergeMap((refIds$) => refIds$.pipe(distinct(), mergeMap(([document2, referenceId]) => {
|
|
6868
|
+
const versionId = requirePublishedReferences ? void 0 : getVersionFromId(document2?._id || "");
|
|
6869
|
+
return listenDocumentExists(ctx.observeDocumentPairAvailability, referenceId, versionId).pipe(map((result) => [referenceId, result]));
|
|
6870
|
+
}))), scan((acc, [id2, result]) => acc[id2] === result ? acc : {
|
|
6876
6871
|
...acc,
|
|
6877
6872
|
[id2]: result
|
|
6878
6873
|
}, {}), distinctUntilChanged(shallowEquals), shareLatestWithRefCount$1()), getDocumentExists = ({
|
|
@@ -6923,7 +6918,7 @@ const validation = memoize((ctx, {
|
|
|
6923
6918
|
draftId,
|
|
6924
6919
|
publishedId,
|
|
6925
6920
|
versionId
|
|
6926
|
-
}, typeName, validationTarget) => {
|
|
6921
|
+
}, typeName, validationTarget, validatePublishedReferences) => {
|
|
6927
6922
|
const document$ = editState(ctx, {
|
|
6928
6923
|
draftId,
|
|
6929
6924
|
publishedId,
|
|
@@ -6938,10 +6933,10 @@ const validation = memoize((ctx, {
|
|
|
6938
6933
|
}), throttleTime(DOC_UPDATE_DELAY, asyncScheduler, {
|
|
6939
6934
|
trailing: !0
|
|
6940
6935
|
}), distinctUntilChanged((prev, next) => prev?._rev === next?._rev ? !0 : shallowEquals(omit(prev, "_rev", "_updatedAt"), omit(next, "_rev", "_updatedAt"))), shareLatestWithRefCount());
|
|
6941
|
-
return validateDocumentWithReferences(ctx, document
|
|
6942
|
-
}, (ctx, idPair, typeName, validationTarget) => {
|
|
6936
|
+
return validateDocumentWithReferences(ctx, document$, validatePublishedReferences);
|
|
6937
|
+
}, (ctx, idPair, typeName, validationTarget, validatePublishedReferences) => {
|
|
6943
6938
|
const documentId = validationTarget === "draft" ? idPair.draftId : validationTarget === "version" ? idPair.versionId : idPair.publishedId;
|
|
6944
|
-
return `${memoizeKeyGen(ctx.client, idPair, typeName)}-${documentId}`;
|
|
6939
|
+
return `${memoizeKeyGen(ctx.client, idPair, typeName)}-${documentId}-${validatePublishedReferences}`;
|
|
6945
6940
|
}), documentEvents = memoize((client, idPair, typeName, serverActionsEnabled, pairListenerOptions) => memoizedPair(client, idPair, typeName, serverActionsEnabled, pairListenerOptions).pipe(switchMap(({
|
|
6946
6941
|
draft,
|
|
6947
6942
|
published
|
|
@@ -7388,9 +7383,11 @@ function createDocumentStore({
|
|
|
7388
7383
|
};
|
|
7389
7384
|
}));
|
|
7390
7385
|
},
|
|
7391
|
-
validation(validationTargetId, type,
|
|
7392
|
-
const publishedId = getPublishedId(validationTargetId), idPair =
|
|
7393
|
-
|
|
7386
|
+
validation(validationTargetId, type, requirePublishedReferences) {
|
|
7387
|
+
const publishedId = getPublishedId(validationTargetId), idPair = getIdPair(publishedId, {
|
|
7388
|
+
version: getVersionFromId(validationTargetId)
|
|
7389
|
+
}), validationTarget = getDocumentVariantType(validationTargetId);
|
|
7390
|
+
return validation(ctx, idPair, type, validationTarget, requirePublishedReferences);
|
|
7394
7391
|
}
|
|
7395
7392
|
}
|
|
7396
7393
|
};
|
|
@@ -7713,7 +7710,7 @@ function useDocumentValuePermissions(t0) {
|
|
|
7713
7710
|
document: document2,
|
|
7714
7711
|
permission
|
|
7715
7712
|
});
|
|
7716
|
-
return subscriptionRef.current = permissions$.pipe(distinctUntilChanged$1(_temp$
|
|
7713
|
+
return subscriptionRef.current = permissions$.pipe(distinctUntilChanged$1(_temp$47)).subscribe({
|
|
7717
7714
|
next: (value) => dispatch({
|
|
7718
7715
|
type: "value",
|
|
7719
7716
|
value
|
|
@@ -7727,7 +7724,7 @@ function useDocumentValuePermissions(t0) {
|
|
|
7727
7724
|
};
|
|
7728
7725
|
}, t2 = [grantsStore, document2, permission], $[0] = document2, $[1] = grantsStore, $[2] = permission, $[3] = t1, $[4] = t2) : (t1 = $[3], t2 = $[4]), useEffect(t1, t2), state;
|
|
7729
7726
|
}
|
|
7730
|
-
function _temp$
|
|
7727
|
+
function _temp$47(prev, next) {
|
|
7731
7728
|
return isEqual$2(prev, next);
|
|
7732
7729
|
}
|
|
7733
7730
|
function refCountDelay(duration, scheduler = asapScheduler) {
|
|
@@ -8950,7 +8947,7 @@ function useTimelineStore(t0) {
|
|
|
8950
8947
|
}, $[32] = t10, $[33] = t11, $[34] = t13, $[35] = t9, $[36] = t14) : t14 = $[36], t14;
|
|
8951
8948
|
}
|
|
8952
8949
|
function _temp3$J(innerController_0) {
|
|
8953
|
-
const chunks = innerController_0.timeline.mapChunks(_temp$
|
|
8950
|
+
const chunks = innerController_0.timeline.mapChunks(_temp$46), lastNonDeletedChunk = chunks.filter(_temp2$1H), hasMoreChunks = !innerController_0.timeline.reachedEarliestEntry;
|
|
8954
8951
|
hasMoreChunks && chunks.length > 16 && innerController_0.setLoadMore(!1);
|
|
8955
8952
|
const timelineReady = !["invalid", "loading"].includes(innerController_0.selectionState);
|
|
8956
8953
|
return {
|
|
@@ -8973,7 +8970,7 @@ function _temp3$J(innerController_0) {
|
|
|
8973
8970
|
function _temp2$1H(chunk_1) {
|
|
8974
8971
|
return !["delete", "initial"].includes(chunk_1.type);
|
|
8975
8972
|
}
|
|
8976
|
-
function _temp$
|
|
8973
|
+
function _temp$46(c2) {
|
|
8977
8974
|
return c2;
|
|
8978
8975
|
}
|
|
8979
8976
|
const handleIncomingMessage = (event) => {
|
|
@@ -9286,11 +9283,11 @@ function createMultiKeyWeakMap() {
|
|
|
9286
9283
|
function ResourceCacheProvider(t0) {
|
|
9287
9284
|
const $ = c(3), {
|
|
9288
9285
|
children
|
|
9289
|
-
} = t0, [resourceCache] = useState(_temp$
|
|
9286
|
+
} = t0, [resourceCache] = useState(_temp$45);
|
|
9290
9287
|
let t1;
|
|
9291
9288
|
return $[0] !== children || $[1] !== resourceCache ? (t1 = /* @__PURE__ */ jsx(ResourceCacheContext.Provider, { value: resourceCache, children }), $[0] = children, $[1] = resourceCache, $[2] = t1) : t1 = $[2], t1;
|
|
9292
9289
|
}
|
|
9293
|
-
function _temp$
|
|
9290
|
+
function _temp$45() {
|
|
9294
9291
|
const namespaces = /* @__PURE__ */ new Map(), nullReplacer = {}, emptyDependenciesReplacer = [nullReplacer], removeNullDependencies = (dependencies) => dependencies.length ? dependencies.map((dep) => dep === null ? nullReplacer : dep) : emptyDependenciesReplacer;
|
|
9295
9292
|
return {
|
|
9296
9293
|
get: (t0) => {
|
|
@@ -9571,25 +9568,25 @@ function useComlinkStore() {
|
|
|
9571
9568
|
}
|
|
9572
9569
|
const initial$1 = [], fallback$1 = of(initial$1);
|
|
9573
9570
|
function useDocumentPresence(documentId) {
|
|
9574
|
-
const $ = c(6), [mounted, mount] = useReducer(_temp$
|
|
9571
|
+
const $ = c(6), [mounted, mount] = useReducer(_temp$44, !1);
|
|
9575
9572
|
let t0, t1;
|
|
9576
9573
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => startTransition(mount), t1 = [], $[0] = t0, $[1] = t1) : (t0 = $[0], t1 = $[1]), useEffect(t0, t1);
|
|
9577
9574
|
const presenceStore = usePresenceStore();
|
|
9578
9575
|
let t2;
|
|
9579
9576
|
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);
|
|
9580
9577
|
}
|
|
9581
|
-
function _temp$
|
|
9578
|
+
function _temp$44() {
|
|
9582
9579
|
return !0;
|
|
9583
9580
|
}
|
|
9584
9581
|
const initial = [], fallback = of(initial);
|
|
9585
9582
|
function useGlobalPresence() {
|
|
9586
|
-
const $ = c(2), [mounted, mount] = useReducer(_temp$
|
|
9583
|
+
const $ = c(2), [mounted, mount] = useReducer(_temp$43, !1);
|
|
9587
9584
|
let t0, t1;
|
|
9588
9585
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => startTransition(mount), t1 = [], $[0] = t0, $[1] = t1) : (t0 = $[0], t1 = $[1]), useEffect(t0, t1);
|
|
9589
9586
|
const presenceStore = usePresenceStore();
|
|
9590
9587
|
return useObservable(mounted ? presenceStore.globalPresence$ : fallback, initial);
|
|
9591
9588
|
}
|
|
9592
|
-
function _temp$
|
|
9589
|
+
function _temp$43() {
|
|
9593
9590
|
return !0;
|
|
9594
9591
|
}
|
|
9595
9592
|
function EventsProvider(t0) {
|
|
@@ -10770,7 +10767,7 @@ function useRelativeTime(time, t0) {
|
|
|
10770
10767
|
const $ = c(5);
|
|
10771
10768
|
let t1;
|
|
10772
10769
|
$[0] !== t0 ? (t1 = t0 === void 0 ? {} : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
10773
|
-
const options = t1, [now, updateNow] = useReducer(_temp$
|
|
10770
|
+
const options = t1, [now, updateNow] = useReducer(_temp$42, null, _temp2$1G), resolved = useFormatRelativeTime(time, options.relativeTo || now, options);
|
|
10774
10771
|
let t2, t3;
|
|
10775
10772
|
return $[2] !== resolved.refreshInterval ? (t2 = () => {
|
|
10776
10773
|
let timerId;
|
|
@@ -10787,7 +10784,7 @@ function useRelativeTime(time, t0) {
|
|
|
10787
10784
|
function _temp2$1G() {
|
|
10788
10785
|
return Date.now();
|
|
10789
10786
|
}
|
|
10790
|
-
function _temp$
|
|
10787
|
+
function _temp$42() {
|
|
10791
10788
|
return Date.now();
|
|
10792
10789
|
}
|
|
10793
10790
|
function useFormatRelativeTime(date, now, t0) {
|
|
@@ -11102,7 +11099,7 @@ const IconBox$1 = styled(Flex)((props2) => {
|
|
|
11102
11099
|
let t2;
|
|
11103
11100
|
$[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];
|
|
11104
11101
|
let t3;
|
|
11105
|
-
$[4] !== collaborators ? (t3 = collaborators.map(_temp$
|
|
11102
|
+
$[4] !== collaborators ? (t3 = collaborators.map(_temp$41), $[4] = collaborators, $[5] = t3) : t3 = $[5];
|
|
11106
11103
|
let t4;
|
|
11107
11104
|
return $[6] !== t2 || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsxs(Stack, { paddingBottom: 1, children: [
|
|
11108
11105
|
t2,
|
|
@@ -11198,7 +11195,7 @@ function Event$1(t0) {
|
|
|
11198
11195
|
t23
|
|
11199
11196
|
] }), $[52] = t22, $[53] = t23, $[54] = t24) : t24 = $[54], t24;
|
|
11200
11197
|
}
|
|
11201
|
-
function _temp$
|
|
11198
|
+
function _temp$41(userId) {
|
|
11202
11199
|
return /* @__PURE__ */ jsx(UserLine, { userId }, userId);
|
|
11203
11200
|
}
|
|
11204
11201
|
function DiffTooltip(props2) {
|
|
@@ -11247,7 +11244,7 @@ function DiffTooltipWithAnnotation(props2) {
|
|
|
11247
11244
|
let t2;
|
|
11248
11245
|
$[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, weight: "medium", children: t1 }), $[9] = t1, $[10] = t2) : t2 = $[10];
|
|
11249
11246
|
let t3;
|
|
11250
|
-
$[11] !== annotations ? (t3 = annotations.map(_temp$
|
|
11247
|
+
$[11] !== annotations ? (t3 = annotations.map(_temp$40), $[11] = annotations, $[12] = t3) : t3 = $[12];
|
|
11251
11248
|
let t4;
|
|
11252
11249
|
$[13] !== t3 ? (t4 = /* @__PURE__ */ jsx(Stack, { space: 2, children: t3 }), $[13] = t3, $[14] = t4) : t4 = $[14];
|
|
11253
11250
|
let t5;
|
|
@@ -11259,7 +11256,7 @@ function DiffTooltipWithAnnotation(props2) {
|
|
|
11259
11256
|
let t6;
|
|
11260
11257
|
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;
|
|
11261
11258
|
}
|
|
11262
|
-
function _temp$
|
|
11259
|
+
function _temp$40(annotation, idx) {
|
|
11263
11260
|
return /* @__PURE__ */ jsx(AnnotationItem, { annotation }, idx);
|
|
11264
11261
|
}
|
|
11265
11262
|
function AnnotationItem(t0) {
|
|
@@ -12112,7 +12109,7 @@ const SizeDiff = styled.div`
|
|
|
12112
12109
|
$[2] !== fields ? (t3 = Object.entries(fields).filter((t42) => {
|
|
12113
12110
|
const [name, field] = t42;
|
|
12114
12111
|
return field.isChanged && !ignoredFields.includes(name);
|
|
12115
|
-
}).map(_temp$
|
|
12112
|
+
}).map(_temp$3$), $[2] = fields, $[3] = t3) : t3 = $[3];
|
|
12116
12113
|
const changedFields = t3, didAssetChange = changedFields.includes("asset");
|
|
12117
12114
|
let t4;
|
|
12118
12115
|
if ($[4] !== changedFields || $[5] !== schemaType.fields) {
|
|
@@ -12171,7 +12168,7 @@ const SizeDiff = styled.div`
|
|
|
12171
12168
|
t15
|
|
12172
12169
|
] }), $[50] = t14, $[51] = t15, $[52] = t16) : t16 = $[52], t16;
|
|
12173
12170
|
};
|
|
12174
|
-
function _temp$
|
|
12171
|
+
function _temp$3$(t0) {
|
|
12175
12172
|
const [name_0] = t0;
|
|
12176
12173
|
return name_0;
|
|
12177
12174
|
}
|
|
@@ -12433,7 +12430,7 @@ const IMAGE_META_FIELDS = ["crop", "hotspot"], BASE_IMAGE_FIELDS = ["asset", "me
|
|
|
12433
12430
|
let t4;
|
|
12434
12431
|
if ($[7] !== changedFields || $[8] !== schemaType.fields) {
|
|
12435
12432
|
let t52;
|
|
12436
|
-
$[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$
|
|
12433
|
+
$[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$3_), $[7] = changedFields, $[8] = schemaType.fields, $[9] = t4;
|
|
12437
12434
|
} else
|
|
12438
12435
|
t4 = $[9];
|
|
12439
12436
|
const nestedFields = t4;
|
|
@@ -12482,7 +12479,7 @@ function getChangeDescription(action, t) {
|
|
|
12482
12479
|
return "Unknown change";
|
|
12483
12480
|
}
|
|
12484
12481
|
}
|
|
12485
|
-
function _temp$
|
|
12482
|
+
function _temp$3_(field_0) {
|
|
12486
12483
|
return field_0.name;
|
|
12487
12484
|
}
|
|
12488
12485
|
const NumberWrapper = styled.div`
|
|
@@ -13750,7 +13747,7 @@ function DiffInspectWrapper(props2) {
|
|
|
13750
13747
|
} = props2, $[0] = props2, $[1] = as, $[2] = change, $[3] = children, $[4] = restProps) : (as = $[1], change = $[2], children = $[3], restProps = $[4]);
|
|
13751
13748
|
const isHovering = useRef(!1), [isInspecting, setIsInspecting] = useState(!1);
|
|
13752
13749
|
let t0;
|
|
13753
|
-
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setIsInspecting(_temp$
|
|
13750
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setIsInspecting(_temp$3Z), $[5] = t0) : t0 = $[5];
|
|
13754
13751
|
const toggleInspect = t0;
|
|
13755
13752
|
let t1;
|
|
13756
13753
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => isHovering.current = !0, $[6] = t1) : t1 = $[6];
|
|
@@ -13774,7 +13771,7 @@ function DiffInspectWrapper(props2) {
|
|
|
13774
13771
|
let t6;
|
|
13775
13772
|
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;
|
|
13776
13773
|
}
|
|
13777
|
-
function _temp$
|
|
13774
|
+
function _temp$3Z(state) {
|
|
13778
13775
|
return !state;
|
|
13779
13776
|
}
|
|
13780
13777
|
const MetaLabel = (t0) => {
|
|
@@ -14178,7 +14175,7 @@ function FieldChange(props2) {
|
|
|
14178
14175
|
}, $[17] = t7) : t7 = $[17];
|
|
14179
14176
|
const handleRevertButtonMouseLeave = t7;
|
|
14180
14177
|
let t8;
|
|
14181
|
-
$[18] !== change.parentSchema ? (t8 = change.parentSchema?.jsonType === "array" && !change.parentSchema.of.some(_temp$
|
|
14178
|
+
$[18] !== change.parentSchema ? (t8 = change.parentSchema?.jsonType === "array" && !change.parentSchema.of.some(_temp$3Y), $[18] = change.parentSchema, $[19] = t8) : t8 = $[19];
|
|
14182
14179
|
const isArray2 = t8;
|
|
14183
14180
|
let t9;
|
|
14184
14181
|
$[20] !== change.path || $[21] !== isArray2 ? (t9 = isArray2 ? change.path.slice(0, -1) : change.path, $[20] = change.path, $[21] = isArray2, $[22] = t9) : t9 = $[22];
|
|
@@ -14219,7 +14216,7 @@ function FieldChange(props2) {
|
|
|
14219
14216
|
t21
|
|
14220
14217
|
] }), $[65] = t20, $[66] = t21, $[67] = t22) : t22 = $[67], t22;
|
|
14221
14218
|
}
|
|
14222
|
-
function _temp$
|
|
14219
|
+
function _temp$3Y(ofType) {
|
|
14223
14220
|
return ofType.type?.name === "block";
|
|
14224
14221
|
}
|
|
14225
14222
|
const ChangeListWrapper = styled.div`
|
|
@@ -14278,7 +14275,7 @@ function GroupChange(props2) {
|
|
|
14278
14275
|
isComparingCurrent
|
|
14279
14276
|
} = useDocumentChange(), FieldWrapper2 = t0 === void 0 ? Fragment : t0;
|
|
14280
14277
|
let t1;
|
|
14281
|
-
$[5] !== changes ? (t1 = changes.every(_temp$
|
|
14278
|
+
$[5] !== changes ? (t1 = changes.every(_temp$3X), $[5] = changes, $[6] = t1) : t1 = $[6];
|
|
14282
14279
|
const isPortableText2 = t1;
|
|
14283
14280
|
let t2;
|
|
14284
14281
|
$[7] !== diffPath || $[8] !== groupPath ? (t2 = pathsAreEqual(diffPath, groupPath), $[7] = diffPath, $[8] = groupPath, $[9] = t2) : t2 = $[9];
|
|
@@ -14333,7 +14330,7 @@ function GroupChange(props2) {
|
|
|
14333
14330
|
function _temp2$1E(ofType) {
|
|
14334
14331
|
return ofType.name === "block";
|
|
14335
14332
|
}
|
|
14336
|
-
function _temp$
|
|
14333
|
+
function _temp$3X(change) {
|
|
14337
14334
|
return isFieldChange(change) && isPTSchemaType(change.schemaType);
|
|
14338
14335
|
}
|
|
14339
14336
|
function useHover(node) {
|
|
@@ -14528,7 +14525,7 @@ function ChangesError(t0) {
|
|
|
14528
14525
|
$[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: {
|
|
14529
14526
|
revisionId: error.revisionId
|
|
14530
14527
|
}, components: {
|
|
14531
|
-
Break: _temp$
|
|
14528
|
+
Break: _temp$3W
|
|
14532
14529
|
} }) }) }), $[8] = error, $[9] = revisionNotFoundError, $[10] = t, $[11] = t5) : t5 = $[11];
|
|
14533
14530
|
let t6;
|
|
14534
14531
|
return $[12] !== t2 || $[13] !== t4 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(Card, { tone: "caution", padding: 3, children: /* @__PURE__ */ jsxs(Stack, { space: 3, children: [
|
|
@@ -14537,7 +14534,7 @@ function ChangesError(t0) {
|
|
|
14537
14534
|
t5
|
|
14538
14535
|
] }) }), $[12] = t2, $[13] = t4, $[14] = t5, $[15] = t6) : t6 = $[15], t6;
|
|
14539
14536
|
}
|
|
14540
|
-
function _temp$
|
|
14537
|
+
function _temp$3W() {
|
|
14541
14538
|
return /* @__PURE__ */ jsx("br", {});
|
|
14542
14539
|
}
|
|
14543
14540
|
const RoundedCard = styled.span`
|
|
@@ -14619,11 +14616,11 @@ function DiffString(props2) {
|
|
|
14619
14616
|
let t0;
|
|
14620
14617
|
$[0] !== diff.segments ? (t0 = diff.segments || [], $[0] = diff.segments, $[1] = t0) : t0 = $[1];
|
|
14621
14618
|
let t1;
|
|
14622
|
-
$[2] !== t0 ? (t1 = t0.map(_temp$
|
|
14619
|
+
$[2] !== t0 ? (t1 = t0.map(_temp$3V), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
14623
14620
|
let t2;
|
|
14624
14621
|
return $[4] !== t1 ? (t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 }), $[4] = t1, $[5] = t2) : t2 = $[5], t2;
|
|
14625
14622
|
}
|
|
14626
|
-
function _temp$
|
|
14623
|
+
function _temp$3V(segment, segmentIndex) {
|
|
14627
14624
|
return /* @__PURE__ */ jsx(DiffStringSegment, { segment }, segmentIndex);
|
|
14628
14625
|
}
|
|
14629
14626
|
const MetaText = styled(Text$1)`
|
|
@@ -14704,7 +14701,7 @@ const ArrayOfOptionsFieldDiff = (t0) => {
|
|
|
14704
14701
|
] }) }),
|
|
14705
14702
|
/* @__PURE__ */ jsx(Flex, { align: "center", children: /* @__PURE__ */ jsx(ItemPreview, { value: title || value, memberType }) })
|
|
14706
14703
|
] }, getItemKey(diff, index));
|
|
14707
|
-
}, $[8] = colorManager, $[9] = diff, $[10] = t, $[11] = t3) : t3 = $[11], t1 = diff.items.map(t22).filter(_temp$
|
|
14704
|
+
}, $[8] = colorManager, $[9] = diff, $[10] = t, $[11] = t3) : t3 = $[11], t1 = diff.items.map(t22).filter(_temp$3U).sort(sortItems).map(t3), $[0] = colorManager, $[1] = diff, $[2] = schemaType, $[3] = t, $[4] = t1;
|
|
14708
14705
|
} else
|
|
14709
14706
|
t1 = $[4];
|
|
14710
14707
|
let t2;
|
|
@@ -14774,7 +14771,7 @@ function getItemTitle(item, schemaType) {
|
|
|
14774
14771
|
const list = schemaType.options?.list || [], index = getOptionIndex(item, schemaType);
|
|
14775
14772
|
return index === -1 ? void 0 : list[index].title || void 0;
|
|
14776
14773
|
}
|
|
14777
|
-
function _temp$
|
|
14774
|
+
function _temp$3U(item_0) {
|
|
14778
14775
|
return item_0 !== null;
|
|
14779
14776
|
}
|
|
14780
14777
|
const SlugWrapper = styled.div`
|
|
@@ -14950,12 +14947,12 @@ function useChildValidation(path, t0) {
|
|
|
14950
14947
|
let t1;
|
|
14951
14948
|
if ($[0] !== inclusive || $[1] !== path || $[2] !== validation2) {
|
|
14952
14949
|
let t2;
|
|
14953
|
-
$[4] !== inclusive || $[5] !== path ? (t2 = (item) => startsWith(path, item.path) && (inclusive || !isEqual$3(path, item.path)), $[4] = inclusive, $[5] = path, $[6] = t2) : t2 = $[6], t1 = validation2.filter(t2).map(_temp$
|
|
14950
|
+
$[4] !== inclusive || $[5] !== path ? (t2 = (item) => startsWith(path, item.path) && (inclusive || !isEqual$3(path, item.path)), $[4] = inclusive, $[5] = path, $[6] = t2) : t2 = $[6], t1 = validation2.filter(t2).map(_temp$3T), $[0] = inclusive, $[1] = path, $[2] = validation2, $[3] = t1;
|
|
14954
14951
|
} else
|
|
14955
14952
|
t1 = $[3];
|
|
14956
14953
|
return t1;
|
|
14957
14954
|
}
|
|
14958
|
-
function _temp$
|
|
14955
|
+
function _temp$3T(marker) {
|
|
14959
14956
|
return {
|
|
14960
14957
|
message: marker.message,
|
|
14961
14958
|
level: marker.level,
|
|
@@ -15455,7 +15452,7 @@ const DefaultAnnotationComponent = (props2) => {
|
|
|
15455
15452
|
selected,
|
|
15456
15453
|
textElement,
|
|
15457
15454
|
validation: validation2
|
|
15458
|
-
} = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$
|
|
15455
|
+
} = props2, isLink = schemaType.name === "link", hasError = validation2.some(_temp$3S), hasWarning = validation2.some(_temp2$1D), hasMarkers = markers.length > 0, isReady = !!children, {
|
|
15459
15456
|
t
|
|
15460
15457
|
} = useTranslation();
|
|
15461
15458
|
let t0;
|
|
@@ -15486,7 +15483,7 @@ const DefaultAnnotationComponent = (props2) => {
|
|
|
15486
15483
|
t7
|
|
15487
15484
|
] }), $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = textElement, $[23] = toneKey, $[24] = t8) : t8 = $[24], t8;
|
|
15488
15485
|
};
|
|
15489
|
-
function _temp$
|
|
15486
|
+
function _temp$3S(v) {
|
|
15490
15487
|
return v.level === "error";
|
|
15491
15488
|
}
|
|
15492
15489
|
function _temp2$1D(v_0) {
|
|
@@ -15509,7 +15506,7 @@ function createStore(reportedValues, publish2) {
|
|
|
15509
15506
|
};
|
|
15510
15507
|
}
|
|
15511
15508
|
function useTrackerStore() {
|
|
15512
|
-
const $ = c(9), [reportedValues] = useState(_temp$
|
|
15509
|
+
const $ = c(9), [reportedValues] = useState(_temp$3R);
|
|
15513
15510
|
let t0;
|
|
15514
15511
|
$[0] !== reportedValues ? (t0 = () => Array.from(reportedValues.entries()), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
|
|
15515
15512
|
let t1;
|
|
@@ -15529,7 +15526,7 @@ function useTrackerStore() {
|
|
|
15529
15526
|
snapshot: snapshot2
|
|
15530
15527
|
}, $[6] = snapshot2, $[7] = store, $[8] = t4) : t4 = $[8], t4;
|
|
15531
15528
|
}
|
|
15532
|
-
function _temp$
|
|
15529
|
+
function _temp$3R() {
|
|
15533
15530
|
return /* @__PURE__ */ new Map();
|
|
15534
15531
|
}
|
|
15535
15532
|
function useTrackerStoreReporter(store, id2, value, t0) {
|
|
@@ -15575,7 +15572,7 @@ const useChangeIndicatorsReporter = (id2, value, isEqual2) => {
|
|
|
15575
15572
|
function useHoveredChange() {
|
|
15576
15573
|
const $ = c(2), reportedValues = useChangeIndicatorsReportedValues();
|
|
15577
15574
|
let t0;
|
|
15578
|
-
$[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$
|
|
15575
|
+
$[0] !== reportedValues ? (t0 = reportedValues.filter(_temp$3Q).sort(_temp2$1C), $[0] = reportedValues, $[1] = t0) : t0 = $[1];
|
|
15579
15576
|
const hoveredEntry = t0[0];
|
|
15580
15577
|
if (hoveredEntry) {
|
|
15581
15578
|
const [, change_0] = hoveredEntry;
|
|
@@ -15585,7 +15582,7 @@ function useHoveredChange() {
|
|
|
15585
15582
|
function _temp2$1C(a, b) {
|
|
15586
15583
|
return b[1].path.length - a[1].path.length;
|
|
15587
15584
|
}
|
|
15588
|
-
function _temp$
|
|
15585
|
+
function _temp$3Q(t0) {
|
|
15589
15586
|
const [, change] = t0;
|
|
15590
15587
|
return change.hasHover;
|
|
15591
15588
|
}
|
|
@@ -15801,7 +15798,7 @@ const FieldActionMenu = memo(function(props2) {
|
|
|
15801
15798
|
$[4] !== nodes ? (t2 = nodes.filter(renderAsButton), $[4] = nodes, $[5] = t2) : t2 = $[5];
|
|
15802
15799
|
const buttonNodes = t2;
|
|
15803
15800
|
let t3;
|
|
15804
|
-
$[6] !== nodes ? (t3 = nodes.filter(_temp$
|
|
15801
|
+
$[6] !== nodes ? (t3 = nodes.filter(_temp$3P), $[6] = nodes, $[7] = t3) : t3 = $[7];
|
|
15805
15802
|
const menuNodesProp = t3;
|
|
15806
15803
|
let t4;
|
|
15807
15804
|
bb0: {
|
|
@@ -15886,7 +15883,7 @@ function RootFieldActionMenuGroup(props2) {
|
|
|
15886
15883
|
let t6;
|
|
15887
15884
|
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;
|
|
15888
15885
|
}
|
|
15889
|
-
function _temp$
|
|
15886
|
+
function _temp$3P(node) {
|
|
15890
15887
|
return !renderAsButton(node);
|
|
15891
15888
|
}
|
|
15892
15889
|
function useHoveredField() {
|
|
@@ -15991,7 +15988,7 @@ const FieldActionsResolver = memo(function(props2) {
|
|
|
15991
15988
|
t6 = $[15];
|
|
15992
15989
|
const FieldActions = t6;
|
|
15993
15990
|
let t7;
|
|
15994
|
-
$[21] !== FieldActions ? (t7 = FieldActions.map(_temp$
|
|
15991
|
+
$[21] !== FieldActions ? (t7 = FieldActions.map(_temp$3O), $[21] = FieldActions, $[22] = t7) : t7 = $[22];
|
|
15995
15992
|
let t8;
|
|
15996
15993
|
return $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(Fragment$1, { children: t7 }), $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
15997
15994
|
});
|
|
@@ -16023,7 +16020,7 @@ function defineFieldActionComponent({
|
|
|
16023
16020
|
}, t2 = [node], $[1] = node, $[2] = t1, $[3] = t2) : (t1 = $[2], t2 = $[3]), useEffect(t1, t2), null;
|
|
16024
16021
|
});
|
|
16025
16022
|
}
|
|
16026
|
-
function _temp$
|
|
16023
|
+
function _temp$3O(FieldAction, key) {
|
|
16027
16024
|
return /* @__PURE__ */ jsx(FieldAction, {}, key);
|
|
16028
16025
|
}
|
|
16029
16026
|
function useFieldActions() {
|
|
@@ -16032,7 +16029,7 @@ function useFieldActions() {
|
|
|
16032
16029
|
const HoveredFieldProvider = memo(function(props2) {
|
|
16033
16030
|
const $ = c(17), {
|
|
16034
16031
|
children
|
|
16035
|
-
} = props2, [listeners] = useState(_temp$
|
|
16032
|
+
} = props2, [listeners] = useState(_temp$3N);
|
|
16036
16033
|
let t0;
|
|
16037
16034
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = [], $[0] = t0) : t0 = $[0];
|
|
16038
16035
|
const hoveredStackRef = useRef(t0);
|
|
@@ -16078,7 +16075,7 @@ const HoveredFieldProvider = memo(function(props2) {
|
|
|
16078
16075
|
let t7;
|
|
16079
16076
|
return $[14] !== children || $[15] !== context ? (t7 = /* @__PURE__ */ jsx(HoveredFieldContext.Provider, { value: context, children }), $[14] = children, $[15] = context, $[16] = t7) : t7 = $[16], t7;
|
|
16080
16077
|
});
|
|
16081
|
-
function _temp$
|
|
16078
|
+
function _temp$3N() {
|
|
16082
16079
|
return /* @__PURE__ */ new Set();
|
|
16083
16080
|
}
|
|
16084
16081
|
function useDidUpdate(current, didUpdate, t0) {
|
|
@@ -16232,7 +16229,7 @@ function ImageOrFileField(field) {
|
|
|
16232
16229
|
const $ = c(32), [fieldActionsNodes, setFieldActionNodes] = useState(EMPTY_ARRAY$x), documentId = usePublishedId$1(), focused = !!field.inputProps.focused;
|
|
16233
16230
|
let t0;
|
|
16234
16231
|
if ($[0] !== field.inputProps.members || $[1] !== field.presence) {
|
|
16235
|
-
const hotspotField = field.inputProps.members.find(_temp$
|
|
16232
|
+
const hotspotField = field.inputProps.members.find(_temp$3M);
|
|
16236
16233
|
t0 = hotspotField?.open ? field.presence : field.presence.concat(hotspotField?.field.presence || EMPTY_ARRAY$x), $[0] = field.inputProps.members, $[1] = field.presence, $[2] = t0;
|
|
16237
16234
|
} else
|
|
16238
16235
|
t0 = $[2];
|
|
@@ -16249,7 +16246,7 @@ function ImageOrFileField(field) {
|
|
|
16249
16246
|
t3
|
|
16250
16247
|
] }), $[29] = t1, $[30] = t3, $[31] = t4) : t4 = $[31], t4;
|
|
16251
16248
|
}
|
|
16252
|
-
function _temp$
|
|
16249
|
+
function _temp$3M(member) {
|
|
16253
16250
|
return member.kind === "field" && member.name === "hotspot";
|
|
16254
16251
|
}
|
|
16255
16252
|
function defaultResolveFieldComponent(schemaType) {
|
|
@@ -16867,7 +16864,7 @@ function useSearchMaxFieldDepth(overrideClient) {
|
|
|
16867
16864
|
client
|
|
16868
16865
|
}).pipe(shareReplay()));
|
|
16869
16866
|
let t1;
|
|
16870
|
-
$[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$
|
|
16867
|
+
$[2] !== dataset ? (t1 = cachedSettings.get(dataset).pipe(map(_temp$3L), startWith(INITIAL_LOADING_STATE$5), catchError(_temp2$1B)), $[2] = dataset, $[3] = t1) : t1 = $[3];
|
|
16871
16868
|
const maxFieldDepth = useObservable(t1, INITIAL_LOADING_STATE$5)?.settings?.partialIndexSettings?.maxFieldDepth;
|
|
16872
16869
|
return isFinite(maxFieldDepth) ? Math.min(maxFieldDepth, DEFAULT_MAX_FIELD_DEPTH) : DEFAULT_MAX_FIELD_DEPTH;
|
|
16873
16870
|
}
|
|
@@ -16882,7 +16879,7 @@ function _temp2$1B(err) {
|
|
|
16882
16879
|
}
|
|
16883
16880
|
});
|
|
16884
16881
|
}
|
|
16885
|
-
function _temp$
|
|
16882
|
+
function _temp$3L(settings) {
|
|
16886
16883
|
return {
|
|
16887
16884
|
isLoading: !1,
|
|
16888
16885
|
settings
|
|
@@ -17026,7 +17023,7 @@ function CreateButton(props2) {
|
|
|
17026
17023
|
const currentUser = useCurrentUser(), {
|
|
17027
17024
|
t
|
|
17028
17025
|
} = useTranslation(), getI18nText = useGetI18nText(createOptions);
|
|
17029
|
-
if (!createOptions.some(_temp$
|
|
17026
|
+
if (!createOptions.some(_temp$3K)) {
|
|
17030
17027
|
let t02;
|
|
17031
17028
|
$[6] !== currentUser ? (t02 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { currentUser, context: "create-new-reference" }), $[6] = currentUser, $[7] = t02) : t02 = $[7];
|
|
17032
17029
|
let t1;
|
|
@@ -17039,7 +17036,7 @@ function CreateButton(props2) {
|
|
|
17039
17036
|
let t0;
|
|
17040
17037
|
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;
|
|
17041
17038
|
}
|
|
17042
|
-
function _temp$
|
|
17039
|
+
function _temp$3K(option) {
|
|
17043
17040
|
return option.permission.granted;
|
|
17044
17041
|
}
|
|
17045
17042
|
function sortReleases(releases2 = []) {
|
|
@@ -17081,7 +17078,7 @@ function useActiveReleases() {
|
|
|
17081
17078
|
dispatch
|
|
17082
17079
|
} = useReleasesStore(), state = useObservable(state$);
|
|
17083
17080
|
let t0;
|
|
17084
|
-
$[0] !== state.releases ? (t0 = sortReleases(Array.from(state.releases.values()).filter(_temp$
|
|
17081
|
+
$[0] !== state.releases ? (t0 = sortReleases(Array.from(state.releases.values()).filter(_temp$3J)).reverse(), $[0] = state.releases, $[1] = t0) : t0 = $[1];
|
|
17085
17082
|
const releasesAsArray = t0, t1 = state.error;
|
|
17086
17083
|
let t2;
|
|
17087
17084
|
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = ["loading", "initialising"], $[2] = t2) : t2 = $[2];
|
|
@@ -17094,7 +17091,7 @@ function useActiveReleases() {
|
|
|
17094
17091
|
loading: t3
|
|
17095
17092
|
}, $[3] = dispatch, $[4] = releasesAsArray, $[5] = state.error, $[6] = t3, $[7] = t4) : t4 = $[7], t4;
|
|
17096
17093
|
}
|
|
17097
|
-
function _temp$
|
|
17094
|
+
function _temp$3J(release) {
|
|
17098
17095
|
return !ARCHIVED_RELEASE_STATES.includes(release.state);
|
|
17099
17096
|
}
|
|
17100
17097
|
const Dot$2 = styled.div((props2) => {
|
|
@@ -17182,7 +17179,7 @@ function DocumentStatusIndicator(t0) {
|
|
|
17182
17179
|
$[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];
|
|
17183
17180
|
const indicators = t14;
|
|
17184
17181
|
let t15;
|
|
17185
|
-
return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$
|
|
17182
|
+
return $[19] !== indicators ? (t15 = /* @__PURE__ */ jsx(Flex, { children: indicators.filter(_temp$3I).map(_temp2$1A) }), $[19] = indicators, $[20] = t15) : t15 = $[20], t15;
|
|
17186
17183
|
}
|
|
17187
17184
|
function _temp2$1A(t0, index) {
|
|
17188
17185
|
const {
|
|
@@ -17190,7 +17187,7 @@ function _temp2$1A(t0, index) {
|
|
|
17190
17187
|
} = t0;
|
|
17191
17188
|
return /* @__PURE__ */ jsx(Dot$2, { "data-status": status, $index: index + 1 }, status);
|
|
17192
17189
|
}
|
|
17193
|
-
function _temp$
|
|
17190
|
+
function _temp$3I(t0) {
|
|
17194
17191
|
const {
|
|
17195
17192
|
show
|
|
17196
17193
|
} = t0;
|
|
@@ -17326,7 +17323,7 @@ function PreviewReferenceValue$2(props2) {
|
|
|
17326
17323
|
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) {
|
|
17327
17324
|
const t72 = value._ref, t82 = value._strengthenOnPublish?.type;
|
|
17328
17325
|
let t92;
|
|
17329
|
-
$[15] !== type.to ? (t92 = type.to.map(_temp$
|
|
17326
|
+
$[15] !== type.to ? (t92 = type.to.map(_temp$3H), $[15] = type.to, $[16] = t92) : t92 = $[16];
|
|
17330
17327
|
let t10;
|
|
17331
17328
|
$[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;
|
|
17332
17329
|
break bb0;
|
|
@@ -17396,7 +17393,7 @@ function PreviewReferenceValue$2(props2) {
|
|
|
17396
17393
|
function _temp2$1z(toType_2) {
|
|
17397
17394
|
return toType_2.name;
|
|
17398
17395
|
}
|
|
17399
|
-
function _temp$
|
|
17396
|
+
function _temp$3H(toType_0) {
|
|
17400
17397
|
return toType_0.name;
|
|
17401
17398
|
}
|
|
17402
17399
|
function UnavailableMessage(props2) {
|
|
@@ -17509,7 +17506,7 @@ function Details(props2) {
|
|
|
17509
17506
|
} = props2, $[0] = props2, $[1] = children, $[2] = icon, $[3] = openProp, $[4] = restProps, $[5] = t0) : (children = $[1], icon = $[2], openProp = $[3], restProps = $[4], t0 = $[5]);
|
|
17510
17507
|
const title = t0 === void 0 ? "Details" : t0, [open, setOpen] = useState(openProp || !1);
|
|
17511
17508
|
let t1;
|
|
17512
|
-
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setOpen(_temp$
|
|
17509
|
+
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setOpen(_temp$3G), $[6] = t1) : t1 = $[6];
|
|
17513
17510
|
const handleToggle = t1;
|
|
17514
17511
|
let t2, t3;
|
|
17515
17512
|
$[7] !== openProp ? (t2 = () => setOpen(openProp || !1), t3 = [openProp], $[7] = openProp, $[8] = t2, $[9] = t3) : (t2 = $[8], t3 = $[9]), useEffect(t2, t3);
|
|
@@ -17537,7 +17534,7 @@ function Details(props2) {
|
|
|
17537
17534
|
t11
|
|
17538
17535
|
] }), $[26] = restProps, $[27] = t11, $[28] = t9, $[29] = t12) : t12 = $[29], t12;
|
|
17539
17536
|
}
|
|
17540
|
-
function _temp$
|
|
17537
|
+
function _temp$3G(v) {
|
|
17541
17538
|
return !v;
|
|
17542
17539
|
}
|
|
17543
17540
|
const STATUS_TONES = {
|
|
@@ -17692,7 +17689,7 @@ const noop$4 = () => {
|
|
|
17692
17689
|
retry: noop$4
|
|
17693
17690
|
};
|
|
17694
17691
|
function useReferenceInfo$2(id2, getReferenceInfo2) {
|
|
17695
|
-
const $ = c(10), [t0] = useState(_temp$
|
|
17692
|
+
const $ = c(10), [t0] = useState(_temp$3F), [onRetry$2, onRetry2] = t0;
|
|
17696
17693
|
let t1;
|
|
17697
17694
|
if ($[0] !== getReferenceInfo2 || $[1] !== id2 || $[2] !== onRetry2 || $[3] !== onRetry$2) {
|
|
17698
17695
|
let t2;
|
|
@@ -17713,7 +17710,7 @@ function useReferenceInfo$2(id2, getReferenceInfo2) {
|
|
|
17713
17710
|
t1 = $[4];
|
|
17714
17711
|
return useObservable(t1, INITIAL_LOADING_STATE$4);
|
|
17715
17712
|
}
|
|
17716
|
-
function _temp$
|
|
17713
|
+
function _temp$3F() {
|
|
17717
17714
|
return observableCallback();
|
|
17718
17715
|
}
|
|
17719
17716
|
const READABLE = {
|
|
@@ -17839,7 +17836,7 @@ function useReferenceInput(options) {
|
|
|
17839
17836
|
let t72;
|
|
17840
17837
|
if ($[22] !== initialValueTemplateItems || $[23] !== schemaType.to) {
|
|
17841
17838
|
let t82;
|
|
17842
|
-
$[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$
|
|
17839
|
+
$[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$3E).filter(isNonNullable$3), $[22] = initialValueTemplateItems, $[23] = schemaType.to, $[24] = t72;
|
|
17843
17840
|
} else
|
|
17844
17841
|
t72 = $[24];
|
|
17845
17842
|
t6 = t72;
|
|
@@ -17858,7 +17855,7 @@ function useReferenceInput(options) {
|
|
|
17858
17855
|
getReferenceInfo: getReferenceInfo$1
|
|
17859
17856
|
}, $[31] = EditReferenceLink, $[32] = createOptions, $[33] = getReferenceInfo$1, $[34] = handleEditReference, $[35] = isCurrentDocumentLiveEdit, $[36] = selectedState, $[37] = t8) : t8 = $[37], t8;
|
|
17860
17857
|
}
|
|
17861
|
-
function _temp$
|
|
17858
|
+
function _temp$3E(item) {
|
|
17862
17859
|
return item.template?.schemaType ? {
|
|
17863
17860
|
id: item.id,
|
|
17864
17861
|
title: item.title || `${item.template.schemaType} from template ${item.template.id}`,
|
|
@@ -17918,7 +17915,7 @@ function ReferenceInputPreview(props2) {
|
|
|
17918
17915
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (hadFocus, hasFocus) => {
|
|
17919
17916
|
!hadFocus && hasFocus && elementRef.current && elementRef.current.focus();
|
|
17920
17917
|
}, $[6] = t2) : t2 = $[6], useDidUpdate(focused, t2);
|
|
17921
|
-
const hasErrors = props2.validation.some(_temp$
|
|
17918
|
+
const hasErrors = props2.validation.some(_temp$3D), hasWarnings = props2.validation.some(_temp2$1y), loadableReferenceInfo = useReferenceInfo$2(value?._ref, getReferenceInfo2), refTypeName = loadableReferenceInfo.result?.type || value?._strengthenOnPublish?.type;
|
|
17922
17919
|
let t3;
|
|
17923
17920
|
$[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];
|
|
17924
17921
|
const refType = t3, pressed = selectedState === "pressed", selected = selectedState === "selected", hasRef = value?._ref, publishedReferenceExists = hasRef && loadableReferenceInfo.result?.isPublished;
|
|
@@ -18012,7 +18009,7 @@ function ReferenceInputPreview(props2) {
|
|
|
18012
18009
|
function _temp2$1y(v_0) {
|
|
18013
18010
|
return v_0.level === "warning";
|
|
18014
18011
|
}
|
|
18015
|
-
function _temp$
|
|
18012
|
+
function _temp$3D(v) {
|
|
18016
18013
|
return v.level === "error";
|
|
18017
18014
|
}
|
|
18018
18015
|
function useReferenceItemRef() {
|
|
@@ -18128,7 +18125,7 @@ function ReferenceInput(props2) {
|
|
|
18128
18125
|
hits: [],
|
|
18129
18126
|
searchString,
|
|
18130
18127
|
isLoading: !1
|
|
18131
|
-
})))))), scan(_temp$
|
|
18128
|
+
})))))), scan(_temp$3C, INITIAL_SEARCH_STATE$3), tap(setSearchState)), $[24] = id2, $[25] = onSearch, $[26] = push, $[27] = t, $[28] = t5) : t5 = $[28];
|
|
18132
18129
|
const handleQueryChange = useObservableEvent(t5);
|
|
18133
18130
|
let t6;
|
|
18134
18131
|
$[29] !== handleQueryChange ? (t6 = () => {
|
|
@@ -18207,7 +18204,7 @@ function _temp2$1x(hit_0) {
|
|
|
18207
18204
|
hit: hit_0
|
|
18208
18205
|
};
|
|
18209
18206
|
}
|
|
18210
|
-
function _temp$
|
|
18207
|
+
function _temp$3C(prevState, nextState) {
|
|
18211
18208
|
return {
|
|
18212
18209
|
...prevState,
|
|
18213
18210
|
...nextState
|
|
@@ -18374,9 +18371,9 @@ function _temp2$1w(t0) {
|
|
|
18374
18371
|
const {
|
|
18375
18372
|
hits
|
|
18376
18373
|
} = t0;
|
|
18377
|
-
return hits.map(_temp$
|
|
18374
|
+
return hits.map(_temp$3B);
|
|
18378
18375
|
}
|
|
18379
|
-
function _temp$
|
|
18376
|
+
function _temp$3B(t0) {
|
|
18380
18377
|
const {
|
|
18381
18378
|
hit
|
|
18382
18379
|
} = t0;
|
|
@@ -18607,7 +18604,7 @@ function ArrayOfObjectsItem(props2) {
|
|
|
18607
18604
|
$[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) => {
|
|
18608
18605
|
if (event_0.items.length === 0)
|
|
18609
18606
|
throw new Error("Insert event should include at least one item");
|
|
18610
|
-
const itemsWithKeys = event_0.items.map(_temp$
|
|
18607
|
+
const itemsWithKeys = event_0.items.map(_temp$3A);
|
|
18611
18608
|
onChange(PatchEvent.from([insert$1(itemsWithKeys, event_0.position, [{
|
|
18612
18609
|
_key: member.key
|
|
18613
18610
|
}])]));
|
|
@@ -18787,7 +18784,7 @@ function ArrayOfObjectsItem(props2) {
|
|
|
18787
18784
|
let t29;
|
|
18788
18785
|
return $[163] !== handleChange || $[164] !== onFieldGroupSelect || $[165] !== onPathBlur || $[166] !== onPathFocus || $[167] !== onPathOpen || $[168] !== onSetFieldSetCollapsed || $[169] !== onSetPathCollapsed || $[170] !== t28 ? (t29 = /* @__PURE__ */ jsx(FormCallbacksProvider, { onFieldGroupSelect, onChange: handleChange, onPathOpen, onSetFieldSetCollapsed, onSetPathCollapsed, onPathBlur, onPathFocus, children: t28 }), $[163] = handleChange, $[164] = onFieldGroupSelect, $[165] = onPathBlur, $[166] = onPathFocus, $[167] = onPathOpen, $[168] = onSetFieldSetCollapsed, $[169] = onSetPathCollapsed, $[170] = t28, $[171] = t29) : t29 = $[171], t29;
|
|
18789
18786
|
}
|
|
18790
|
-
function _temp$
|
|
18787
|
+
function _temp$3A(item) {
|
|
18791
18788
|
return ensureKey(item);
|
|
18792
18789
|
}
|
|
18793
18790
|
function RenderInput$5({
|
|
@@ -18832,7 +18829,7 @@ function IncompatibleItemType$2(props2) {
|
|
|
18832
18829
|
const handleKeyDown = t2;
|
|
18833
18830
|
let t3;
|
|
18834
18831
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
18835
|
-
setShowDetails(_temp$
|
|
18832
|
+
setShowDetails(_temp$3z);
|
|
18836
18833
|
}, $[7] = t3) : t3 = $[7];
|
|
18837
18834
|
const handleShowDetails = t3;
|
|
18838
18835
|
let t4;
|
|
@@ -18901,7 +18898,7 @@ function IncompatibleItemType$2(props2) {
|
|
|
18901
18898
|
let t24;
|
|
18902
18899
|
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;
|
|
18903
18900
|
}
|
|
18904
|
-
function _temp$
|
|
18901
|
+
function _temp$3z(v) {
|
|
18905
18902
|
return !v;
|
|
18906
18903
|
}
|
|
18907
18904
|
function MemberItemError(props2) {
|
|
@@ -19697,7 +19694,7 @@ function ArrayOfObjectsField(props2) {
|
|
|
19697
19694
|
let t7;
|
|
19698
19695
|
$[12] !== member.name || $[13] !== onChange ? (t7 = (event_1) => {
|
|
19699
19696
|
const patches = PatchEvent.from(event_1).patches;
|
|
19700
|
-
if (patches.some(_temp$
|
|
19697
|
+
if (patches.some(_temp$3y) && (valueRef.current = applyAll(valueRef.current || [], patches), Array.isArray(valueRef.current) && !valueRef.current.length)) {
|
|
19701
19698
|
onChange(PatchEvent.from(unset([member.name])));
|
|
19702
19699
|
return;
|
|
19703
19700
|
}
|
|
@@ -19967,7 +19964,7 @@ function _temp3$G(_file) {
|
|
|
19967
19964
|
function _temp2$1v(item) {
|
|
19968
19965
|
return ensureKey(item);
|
|
19969
19966
|
}
|
|
19970
|
-
function _temp$
|
|
19967
|
+
function _temp$3y(patch2) {
|
|
19971
19968
|
return patch2.type === "unset" && patch2.path.length === 1;
|
|
19972
19969
|
}
|
|
19973
19970
|
function RenderInput$3({
|
|
@@ -20058,7 +20055,7 @@ function ArrayOfPrimitivesField(props2) {
|
|
|
20058
20055
|
let t3;
|
|
20059
20056
|
$[7] !== member.field.value || $[8] !== member.name || $[9] !== onChange ? (t3 = (event_1) => {
|
|
20060
20057
|
const patches = PatchEvent.from(event_1).patches;
|
|
20061
|
-
if (patches.some(_temp$
|
|
20058
|
+
if (patches.some(_temp$3x)) {
|
|
20062
20059
|
const result = applyAll(member.field.value || [], patches);
|
|
20063
20060
|
if (Array.isArray(result) && !result.length) {
|
|
20064
20061
|
onChange(PatchEvent.from(unset([member.name])));
|
|
@@ -20204,7 +20201,7 @@ function ArrayOfPrimitivesField(props2) {
|
|
|
20204
20201
|
function _temp2$1u(uploadProgressEvent) {
|
|
20205
20202
|
return PatchEvent.from(uploadProgressEvent.patches || []);
|
|
20206
20203
|
}
|
|
20207
|
-
function _temp$
|
|
20204
|
+
function _temp$3x(patch2) {
|
|
20208
20205
|
return patch2.type === "unset" && patch2.path.length === 1;
|
|
20209
20206
|
}
|
|
20210
20207
|
function RenderInput$2({
|
|
@@ -20456,7 +20453,7 @@ function PrimitiveField(props2) {
|
|
|
20456
20453
|
}, $[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];
|
|
20457
20454
|
const elementProps = t11;
|
|
20458
20455
|
let t12;
|
|
20459
|
-
$[32] !== member.field.validation ? (t12 = member.field.validation.filter(_temp$
|
|
20456
|
+
$[32] !== member.field.validation ? (t12 = member.field.validation.filter(_temp$3w).map(_temp2$1t).join(`
|
|
20460
20457
|
`) || void 0, $[32] = member.field.validation, $[33] = t12) : t12 = $[33];
|
|
20461
20458
|
const validationError = t12, t13 = member.field.value, t14 = member.field.schemaType, t15 = member.field.displayInlineChanges ?? !1;
|
|
20462
20459
|
let t16;
|
|
@@ -20488,7 +20485,7 @@ function PrimitiveField(props2) {
|
|
|
20488
20485
|
function _temp2$1t(item_0) {
|
|
20489
20486
|
return item_0.message;
|
|
20490
20487
|
}
|
|
20491
|
-
function _temp$
|
|
20488
|
+
function _temp$3w(item) {
|
|
20492
20489
|
return item.level === "error";
|
|
20493
20490
|
}
|
|
20494
20491
|
function RenderInput({
|
|
@@ -20668,7 +20665,7 @@ function UntypedValueInput(t0) {
|
|
|
20668
20665
|
let t6;
|
|
20669
20666
|
$[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];
|
|
20670
20667
|
let t7;
|
|
20671
|
-
$[16] !== isSingleValidType || $[17] !== validTypes ? (t7 = !isSingleValidType && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp$
|
|
20668
|
+
$[16] !== isSingleValidType || $[17] !== validTypes ? (t7 = !isSingleValidType && /* @__PURE__ */ jsx(Stack, { as: "ul", space: 2, children: validTypes.map(_temp$3v) }), $[16] = isSingleValidType, $[17] = validTypes, $[18] = t7) : t7 = $[18];
|
|
20672
20669
|
let t8;
|
|
20673
20670
|
$[19] !== t ? (t8 = t("inputs.untyped-value.details.json-dump-prefix"), $[19] = t, $[20] = t8) : t8 = $[20];
|
|
20674
20671
|
let t9;
|
|
@@ -20707,7 +20704,7 @@ function UntypedValueInput(t0) {
|
|
|
20707
20704
|
let t19;
|
|
20708
20705
|
return $[53] !== t18 || $[54] !== t2 ? (t19 = /* @__PURE__ */ jsx(Alert, { status: "warning", title: t2, children: t18 }), $[53] = t18, $[54] = t2, $[55] = t19) : t19 = $[55], t19;
|
|
20709
20706
|
}
|
|
20710
|
-
function _temp$
|
|
20707
|
+
function _temp$3v(validType) {
|
|
20711
20708
|
return /* @__PURE__ */ jsx(Text$1, { as: "li", muted: !0, size: 1, children: /* @__PURE__ */ jsx("code", { children: validType }) }, validType);
|
|
20712
20709
|
}
|
|
20713
20710
|
function getConverters(value, actualType, validTypes) {
|
|
@@ -20821,11 +20818,11 @@ function ConvertButton(t0) {
|
|
|
20821
20818
|
let t3;
|
|
20822
20819
|
return $[7] !== handleClick || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(Button, { onClick: handleClick, text: t2 }), $[7] = handleClick, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
20823
20820
|
}
|
|
20824
|
-
function _temp$
|
|
20821
|
+
function _temp$3u() {
|
|
20825
20822
|
}
|
|
20826
20823
|
function _temp2$1s() {
|
|
20827
20824
|
return {
|
|
20828
|
-
focus: _temp$
|
|
20825
|
+
focus: _temp$3u
|
|
20829
20826
|
};
|
|
20830
20827
|
}
|
|
20831
20828
|
function _temp3$F(validType) {
|
|
@@ -21064,7 +21061,7 @@ function FormFieldValidationStatus(props2) {
|
|
|
21064
21061
|
__unstable_showSummary: showSummary,
|
|
21065
21062
|
fontSize,
|
|
21066
21063
|
placement
|
|
21067
|
-
} = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$w : t0, hasErrors = validation2.some(_temp$
|
|
21064
|
+
} = props2, validation2 = t0 === void 0 ? EMPTY_ARRAY$w : t0, hasErrors = validation2.some(_temp$3t), hasWarnings = validation2.some(_temp2$1r), status = hasErrors ? "error" : hasWarnings ? "warning" : "info", StatusIcon = VALIDATION_ICONS[status];
|
|
21068
21065
|
let t1;
|
|
21069
21066
|
$[0] !== showSummary || $[1] !== validation2 ? (t1 = showSummary && /* @__PURE__ */ jsx(FormFieldValidationSummary, { validation: validation2 }), $[0] = showSummary, $[1] = validation2, $[2] = t1) : t1 = $[2];
|
|
21070
21067
|
let t2;
|
|
@@ -21089,7 +21086,7 @@ function _temp3$E(item, itemIndex) {
|
|
|
21089
21086
|
function _temp2$1r(v_0) {
|
|
21090
21087
|
return v_0.level === "warning";
|
|
21091
21088
|
}
|
|
21092
|
-
function _temp$
|
|
21089
|
+
function _temp$3t(v) {
|
|
21093
21090
|
return v.level === "error";
|
|
21094
21091
|
}
|
|
21095
21092
|
function FormFieldValidationStatusItem(props2) {
|
|
@@ -21502,7 +21499,7 @@ function DuplicateKeysAlert(props2) {
|
|
|
21502
21499
|
} = props2;
|
|
21503
21500
|
let t0;
|
|
21504
21501
|
$[0] !== error.duplicates || $[1] !== onChange ? (t0 = () => {
|
|
21505
|
-
onChange(PatchEvent.from((error.duplicates || []).map(_temp$
|
|
21502
|
+
onChange(PatchEvent.from((error.duplicates || []).map(_temp$3s)));
|
|
21506
21503
|
}, $[0] = error.duplicates, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21507
21504
|
const handleFixDuplicateKeys = t0, {
|
|
21508
21505
|
t
|
|
@@ -21538,7 +21535,7 @@ function DuplicateKeysAlert(props2) {
|
|
|
21538
21535
|
let t14;
|
|
21539
21536
|
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;
|
|
21540
21537
|
}
|
|
21541
|
-
function _temp$
|
|
21538
|
+
function _temp$3s(t0) {
|
|
21542
21539
|
const [index, key] = t0;
|
|
21543
21540
|
return set(`${key}_deduped_${index}`, [index, "_key"]);
|
|
21544
21541
|
}
|
|
@@ -21549,7 +21546,7 @@ function MissingKeysAlert(props2) {
|
|
|
21549
21546
|
} = props2;
|
|
21550
21547
|
let t0;
|
|
21551
21548
|
$[0] !== error.value || $[1] !== onChange ? (t0 = () => {
|
|
21552
|
-
onChange(PatchEvent.from((error.value || []).map(_temp$
|
|
21549
|
+
onChange(PatchEvent.from((error.value || []).map(_temp$3r)));
|
|
21553
21550
|
}, $[0] = error.value, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21554
21551
|
const handleFixMissingKeys = t0, {
|
|
21555
21552
|
t
|
|
@@ -21585,7 +21582,7 @@ function MissingKeysAlert(props2) {
|
|
|
21585
21582
|
let t14;
|
|
21586
21583
|
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;
|
|
21587
21584
|
}
|
|
21588
|
-
function _temp$
|
|
21585
|
+
function _temp$3r(val, i) {
|
|
21589
21586
|
return setIfMissing(randomKey$1(), [i, "_key"]);
|
|
21590
21587
|
}
|
|
21591
21588
|
function MixedArrayAlert(props2) {
|
|
@@ -21595,7 +21592,7 @@ function MixedArrayAlert(props2) {
|
|
|
21595
21592
|
} = props2;
|
|
21596
21593
|
let t0;
|
|
21597
21594
|
$[0] !== error.value || $[1] !== onChange ? (t0 = () => {
|
|
21598
|
-
const patches = (error.value || []).flatMap(_temp$
|
|
21595
|
+
const patches = (error.value || []).flatMap(_temp$3q).reverse().map(_temp2$1q);
|
|
21599
21596
|
onChange(PatchEvent.from(patches));
|
|
21600
21597
|
}, $[0] = error.value, $[1] = onChange, $[2] = t0) : t0 = $[2];
|
|
21601
21598
|
const handleRemoveNonObjectValues = t0, {
|
|
@@ -21630,7 +21627,7 @@ function MixedArrayAlert(props2) {
|
|
|
21630
21627
|
function _temp2$1q(index_0) {
|
|
21631
21628
|
return unset([index_0]);
|
|
21632
21629
|
}
|
|
21633
|
-
function _temp$
|
|
21630
|
+
function _temp$3q(item, index) {
|
|
21634
21631
|
return isPlainObject$1(item) ? [] : [index];
|
|
21635
21632
|
}
|
|
21636
21633
|
function MemberFieldError(props2) {
|
|
@@ -21953,7 +21950,7 @@ function fileTarget(Component2) {
|
|
|
21953
21950
|
}, t6 = [pasteTarget, handlePaste], $[16] = handlePaste, $[17] = pasteTarget, $[18] = t5, $[19] = t6) : (t5 = $[18], t6 = $[19]), useEffect(t5, t6);
|
|
21954
21951
|
let t7;
|
|
21955
21952
|
$[20] !== emitFiles || $[21] !== onFiles || $[22] !== onFilesOut ? (t7 = (event_2) => {
|
|
21956
|
-
if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp$
|
|
21953
|
+
if (enteredElements.current = [], Array.from(event_2.dataTransfer.items).map(_temp$3p).some(_temp2$1p))
|
|
21957
21954
|
return;
|
|
21958
21955
|
event_2.preventDefault(), event_2.stopPropagation();
|
|
21959
21956
|
const dataTransfer = event_2.nativeEvent.dataTransfer;
|
|
@@ -22015,7 +22012,7 @@ function select(el) {
|
|
|
22015
22012
|
const sel = window.getSelection();
|
|
22016
22013
|
sel?.removeAllRanges(), sel?.addRange(range2);
|
|
22017
22014
|
}
|
|
22018
|
-
function _temp$
|
|
22015
|
+
function _temp$3p(item) {
|
|
22019
22016
|
return {
|
|
22020
22017
|
type: item.type,
|
|
22021
22018
|
kind: item.kind
|
|
@@ -22059,7 +22056,7 @@ function UploadDestinationPicker(props2) {
|
|
|
22059
22056
|
onClose
|
|
22060
22057
|
} = props2, {
|
|
22061
22058
|
t
|
|
22062
|
-
} = useTranslation(), assetSourcesWithUpload = assetSources.filter(_temp$
|
|
22059
|
+
} = useTranslation(), assetSourcesWithUpload = assetSources.filter(_temp$3o);
|
|
22063
22060
|
let t0;
|
|
22064
22061
|
$[0] !== assetSources || $[1] !== onSelectAssetSource ? (t0 = (event) => {
|
|
22065
22062
|
const sourceName2 = event.currentTarget.getAttribute("data-asset-source-name"), assetSource = assetSources.find((source) => source.name === sourceName2);
|
|
@@ -22093,7 +22090,7 @@ function UploadDestinationPicker(props2) {
|
|
|
22093
22090
|
let t12;
|
|
22094
22091
|
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;
|
|
22095
22092
|
}
|
|
22096
|
-
function _temp$
|
|
22093
|
+
function _temp$3o(s) {
|
|
22097
22094
|
return !!s.Uploader;
|
|
22098
22095
|
}
|
|
22099
22096
|
const Overlay$2 = styled(Layer)`
|
|
@@ -22142,7 +22139,7 @@ function uploadTarget$1(Component2) {
|
|
|
22142
22139
|
title: t("inputs.array.error.cannot-upload-unable-to-convert", {
|
|
22143
22140
|
count: rejected.length
|
|
22144
22141
|
}),
|
|
22145
|
-
description: rejected.map(_temp$
|
|
22142
|
+
description: rejected.map(_temp$3n)
|
|
22146
22143
|
});
|
|
22147
22144
|
}, $[10] = pushToast, $[11] = t, $[12] = t1) : t1 = $[12];
|
|
22148
22145
|
const alertRejectedFiles = t1;
|
|
@@ -22255,7 +22252,7 @@ function getFilesAndAssetSources(files, types, assetSourceDestinationName, formB
|
|
|
22255
22252
|
};
|
|
22256
22253
|
});
|
|
22257
22254
|
}
|
|
22258
|
-
function _temp$
|
|
22255
|
+
function _temp$3n(task, i) {
|
|
22259
22256
|
return /* @__PURE__ */ jsxs(Flex, { gap: 2, padding: 2, children: [
|
|
22260
22257
|
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { weight: "medium", children: task.file.name }) }),
|
|
22261
22258
|
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Text$1, { size: 1, children: [
|
|
@@ -22539,7 +22536,7 @@ function ArrayOfObjectsFunctions(props2) {
|
|
|
22539
22536
|
let t6;
|
|
22540
22537
|
$[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = ["top"], $[18] = t6) : t6 = $[18];
|
|
22541
22538
|
let t7;
|
|
22542
|
-
$[19] !== props2.schemaType.options?.insertMenu?.views ? (t7 = props2.schemaType.options?.insertMenu?.views?.some(_temp$
|
|
22539
|
+
$[19] !== props2.schemaType.options?.insertMenu?.views ? (t7 = props2.schemaType.options?.insertMenu?.views?.some(_temp$3m), $[19] = props2.schemaType.options?.insertMenu?.views, $[20] = t7) : t7 = $[20];
|
|
22543
22540
|
let t8;
|
|
22544
22541
|
$[21] !== gridElement || $[22] !== popoverToggleElement || $[23] !== t7 ? (t8 = {
|
|
22545
22542
|
placement: "bottom",
|
|
@@ -22583,7 +22580,7 @@ function ArrayOfObjectsFunctions(props2) {
|
|
|
22583
22580
|
children
|
|
22584
22581
|
] }), $[41] = children, $[42] = t11, $[43] = t12) : t12 = $[43], t12;
|
|
22585
22582
|
}
|
|
22586
|
-
function _temp$
|
|
22583
|
+
function _temp$3m(view) {
|
|
22587
22584
|
return view.name === "grid";
|
|
22588
22585
|
}
|
|
22589
22586
|
const DragHandleButton = styled(Button)((props2) => {
|
|
@@ -22737,7 +22734,7 @@ function IncompatibleItemType$1(props2) {
|
|
|
22737
22734
|
const handleKeyDown = t2;
|
|
22738
22735
|
let t3;
|
|
22739
22736
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
22740
|
-
setShowDetails(_temp$
|
|
22737
|
+
setShowDetails(_temp$3l);
|
|
22741
22738
|
}, $[7] = t3) : t3 = $[7];
|
|
22742
22739
|
const handleShowDetails = t3;
|
|
22743
22740
|
let t4;
|
|
@@ -22803,7 +22800,7 @@ function IncompatibleItemType$1(props2) {
|
|
|
22803
22800
|
let t23;
|
|
22804
22801
|
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;
|
|
22805
22802
|
}
|
|
22806
|
-
function _temp$
|
|
22803
|
+
function _temp$3l(v) {
|
|
22807
22804
|
return !v;
|
|
22808
22805
|
}
|
|
22809
22806
|
const MENU_POPOVER_PROPS$8 = {
|
|
@@ -22953,7 +22950,7 @@ function useDocumentPreview(props2) {
|
|
|
22953
22950
|
viewOptions: {
|
|
22954
22951
|
ordering
|
|
22955
22952
|
}
|
|
22956
|
-
}).pipe(map(_temp$
|
|
22953
|
+
}).pipe(map(_temp$3k), catchError(_temp2$1n)), $[3] = chosenPerspectiveStack, $[4] = observeForPreview, $[5] = ordering, $[6] = perspectiveStack, $[7] = previewValue, $[8] = schemaType, $[9] = t3;
|
|
22957
22954
|
} else
|
|
22958
22955
|
t3 = $[9];
|
|
22959
22956
|
t2 = t3;
|
|
@@ -22966,7 +22963,7 @@ function _temp2$1n(error) {
|
|
|
22966
22963
|
error
|
|
22967
22964
|
});
|
|
22968
22965
|
}
|
|
22969
|
-
function _temp$
|
|
22966
|
+
function _temp$3k(event) {
|
|
22970
22967
|
return {
|
|
22971
22968
|
isLoading: !1,
|
|
22972
22969
|
value: event.snapshot || void 0
|
|
@@ -23273,7 +23270,7 @@ function useImageObjectUrl(url) {
|
|
|
23273
23270
|
let t2, t3;
|
|
23274
23271
|
return $[5] !== cacheKey || $[6] !== token || $[7] !== url ? (t2 = () => {
|
|
23275
23272
|
if (!cacheKey) {
|
|
23276
|
-
setState(_temp$
|
|
23273
|
+
setState(_temp$3j);
|
|
23277
23274
|
return;
|
|
23278
23275
|
}
|
|
23279
23276
|
let entry_0 = requestCache.get(cacheKey);
|
|
@@ -23286,7 +23283,7 @@ function useImageObjectUrl(url) {
|
|
|
23286
23283
|
};
|
|
23287
23284
|
}, t3 = [cacheKey, token, url], $[5] = cacheKey, $[6] = token, $[7] = url, $[8] = t2, $[9] = t3) : (t2 = $[8], t3 = $[9]), useEffect(t2, t3), state;
|
|
23288
23285
|
}
|
|
23289
|
-
function _temp$
|
|
23286
|
+
function _temp$3j(prev) {
|
|
23290
23287
|
return prev.objectUrl || prev.isLoading || prev.error ? IDLE_RESULT : prev;
|
|
23291
23288
|
}
|
|
23292
23289
|
const noop$3 = () => {
|
|
@@ -24214,7 +24211,7 @@ function FormInputInner(props2) {
|
|
|
24214
24211
|
if ($[58] !== absolutePath || $[59] !== props2.members || $[60] !== props2.path || $[61] !== t) {
|
|
24215
24212
|
t6 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
24216
24213
|
bb1: {
|
|
24217
|
-
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$
|
|
24214
|
+
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$3i).flatMap(_temp2$1m).find((m) => m.kind === "field" && m.name === childPath_0[0]);
|
|
24218
24215
|
if (member_3 = fieldMember || fieldSetMember, !member_3) {
|
|
24219
24216
|
const fieldName = typeof childPath_0[0] == "string" ? childPath_0[0] : JSON.stringify(childPath_0[0]);
|
|
24220
24217
|
t6 = /* @__PURE__ */ jsx("div", { children: t("form.error.field-not-found", {
|
|
@@ -24236,7 +24233,7 @@ function FormInputInner(props2) {
|
|
|
24236
24233
|
function _temp2$1m(member_2) {
|
|
24237
24234
|
return member_2.kind === "fieldSet" && member_2.fieldSet?.members || [];
|
|
24238
24235
|
}
|
|
24239
|
-
function _temp$
|
|
24236
|
+
function _temp$3i(member_1) {
|
|
24240
24237
|
return member_1.kind === "fieldSet";
|
|
24241
24238
|
}
|
|
24242
24239
|
function NullRender() {
|
|
@@ -24793,7 +24790,7 @@ function EnhancedObjectDialog(props2) {
|
|
|
24793
24790
|
return isKeySegment(segment) && isKeySegment(relativeSegment) ? segment._key === relativeSegment._key : segment === relativeSegment;
|
|
24794
24791
|
}))
|
|
24795
24792
|
return !1;
|
|
24796
|
-
if (fullscreenPath.some(_temp$
|
|
24793
|
+
if (fullscreenPath.some(_temp$3h))
|
|
24797
24794
|
return !0;
|
|
24798
24795
|
const nextSegment = treeState.relativePath[fullscreenPath.length];
|
|
24799
24796
|
return !isKeySegment(nextSegment);
|
|
@@ -24855,7 +24852,7 @@ function EnhancedObjectDialog(props2) {
|
|
|
24855
24852
|
function _temp2$1l(longest, current) {
|
|
24856
24853
|
return current.length > longest.length ? current : longest;
|
|
24857
24854
|
}
|
|
24858
|
-
function _temp$
|
|
24855
|
+
function _temp$3h(segment_0) {
|
|
24859
24856
|
return isKeySegment(segment_0);
|
|
24860
24857
|
}
|
|
24861
24858
|
const FlexWrapper$1 = styled(Flex)`
|
|
@@ -24895,14 +24892,14 @@ function PresenceTooltip(props2) {
|
|
|
24895
24892
|
items
|
|
24896
24893
|
} = props2;
|
|
24897
24894
|
let t0;
|
|
24898
|
-
$[0] !== items ? (t0 = items.map(_temp$
|
|
24895
|
+
$[0] !== items ? (t0 = items.map(_temp$3g), $[0] = items, $[1] = t0) : t0 = $[1];
|
|
24899
24896
|
let t1;
|
|
24900
24897
|
$[2] !== t0 ? (t1 = /* @__PURE__ */ jsx(Stack, { sizing: "border", children: t0 }), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
24901
24898
|
const content = t1;
|
|
24902
24899
|
let t2;
|
|
24903
24900
|
return $[4] !== children || $[5] !== content ? (t2 = /* @__PURE__ */ jsx(Tooltip, { content, placement: "top", portal: "documentScrollElement", children }), $[4] = children, $[5] = content, $[6] = t2) : t2 = $[6], t2;
|
|
24904
24901
|
}
|
|
24905
|
-
function _temp$
|
|
24902
|
+
function _temp$3g(item) {
|
|
24906
24903
|
return /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
|
|
24907
24904
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(UserAvatar, { user: item.user, status: "online" }) }),
|
|
24908
24905
|
/* @__PURE__ */ jsx(Text$1, { size: 1, children: item.user.displayName })
|
|
@@ -24918,7 +24915,7 @@ const FieldPresenceInner = memo(function(t0) {
|
|
|
24918
24915
|
} = 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;
|
|
24919
24916
|
let t5;
|
|
24920
24917
|
if ($[0] !== animateArrowFrom || $[1] !== maxAvatars || $[2] !== position || $[3] !== presence || $[4] !== stack) {
|
|
24921
|
-
const uniquePresence = uniqBy(presence || [], _temp$
|
|
24918
|
+
const uniquePresence = uniqBy(presence || [], _temp$3f), sorted = sortBy(uniquePresence, _temp2$1k), [hidden, visible] = stack ? splitRight(sorted, maxAvatars) : [[], sorted];
|
|
24922
24919
|
let t62;
|
|
24923
24920
|
$[6] !== animateArrowFrom || $[7] !== position ? (t62 = (_visible) => ({
|
|
24924
24921
|
key: _visible.user.id,
|
|
@@ -24966,7 +24963,7 @@ function _temp4$g(item) {
|
|
|
24966
24963
|
return item.user.id;
|
|
24967
24964
|
}
|
|
24968
24965
|
const FieldPresenceWithOverlay = FieldPresence;
|
|
24969
|
-
function _temp$
|
|
24966
|
+
function _temp$3f(item) {
|
|
24970
24967
|
return item.user.id;
|
|
24971
24968
|
}
|
|
24972
24969
|
function _temp2$1k(_presence) {
|
|
@@ -25102,7 +25099,7 @@ const createIntersectionObserver = (options) => {
|
|
|
25102
25099
|
}, t8 = [], $[11] = t7, $[12] = t8) : (t7 = $[11], t8 = $[12]), useLayoutEffect(t7, t8);
|
|
25103
25100
|
const top = intersections["::top"], bottom2 = intersections["::bottom"];
|
|
25104
25101
|
let t9;
|
|
25105
|
-
$[13] !== bottom2 || $[14] !== intersections || $[15] !== regions || $[16] !== top ? (t9 = top && bottom2 ? regions.filter(_temp$
|
|
25102
|
+
$[13] !== bottom2 || $[14] !== intersections || $[15] !== regions || $[16] !== top ? (t9 = top && bottom2 ? regions.filter(_temp$3e).map((region_0) => {
|
|
25106
25103
|
const intersection2 = intersections[region_0.id];
|
|
25107
25104
|
if (!intersection2)
|
|
25108
25105
|
return null;
|
|
@@ -25151,7 +25148,7 @@ const createIntersectionObserver = (options) => {
|
|
|
25151
25148
|
t15
|
|
25152
25149
|
] }), $[36] = ref, $[37] = t10, $[38] = t11, $[39] = t13, $[40] = t14, $[41] = t15, $[42] = t16) : t16 = $[42], t16;
|
|
25153
25150
|
});
|
|
25154
|
-
function _temp$
|
|
25151
|
+
function _temp$3e(region) {
|
|
25155
25152
|
return region.presence?.length > 0;
|
|
25156
25153
|
}
|
|
25157
25154
|
const ITEM_TRANSITION = {
|
|
@@ -25237,7 +25234,7 @@ function StickyOverlay(props2) {
|
|
|
25237
25234
|
const regions = t1;
|
|
25238
25235
|
let t2;
|
|
25239
25236
|
$[3] !== margins ? (t2 = (regionsWithIntersectionDetails, containerWidth) => {
|
|
25240
|
-
const grouped = group(regionsWithIntersectionDetails.filter(_temp$
|
|
25237
|
+
const grouped = group(regionsWithIntersectionDetails.filter(_temp$3d)), topSpacing = sum(grouped.top.map(_temp2$1j)), bottomSpacing = sum([...grouped.inside, ...grouped.bottom].map(_temp3$A)), counts = grouped.inside.reduce(_temp4$f, {
|
|
25241
25238
|
nearTop: 0,
|
|
25242
25239
|
nearBottom: 0
|
|
25243
25240
|
});
|
|
@@ -25269,7 +25266,7 @@ function _temp3$A(n_0) {
|
|
|
25269
25266
|
function _temp2$1j(n) {
|
|
25270
25267
|
return n.region.rect.height + n.spacerHeight;
|
|
25271
25268
|
}
|
|
25272
|
-
function _temp$
|
|
25269
|
+
function _temp$3d(item) {
|
|
25273
25270
|
return item.region.presence.length > 0;
|
|
25274
25271
|
}
|
|
25275
25272
|
const EMPTY_ARRAY$o = [], PresenceDock = memo(function(props2) {
|
|
@@ -25760,7 +25757,7 @@ function TreeEditingMenuItem(props2) {
|
|
|
25760
25757
|
$[13] !== item.path || $[14] !== onPathSelect ? (t6 = () => onPathSelect(item.path), $[13] = item.path, $[14] = onPathSelect, $[15] = t6) : t6 = $[15];
|
|
25761
25758
|
const handleClick = t6;
|
|
25762
25759
|
let t7;
|
|
25763
|
-
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$
|
|
25760
|
+
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$3c), $[16] = t7) : t7 = $[16];
|
|
25764
25761
|
const handleExpandClick = t7;
|
|
25765
25762
|
let t8, t9;
|
|
25766
25763
|
$[17] !== item || $[18] !== selectedPath ? (t8 = () => {
|
|
@@ -25796,7 +25793,7 @@ function TreeEditingMenuItem(props2) {
|
|
|
25796
25793
|
t18
|
|
25797
25794
|
] }, stringPath), $[53] = open, $[54] = stringPath, $[55] = t17, $[56] = t18, $[57] = t19) : t19 = $[57], t19;
|
|
25798
25795
|
}
|
|
25799
|
-
function _temp$
|
|
25796
|
+
function _temp$3c(v) {
|
|
25800
25797
|
return !v;
|
|
25801
25798
|
}
|
|
25802
25799
|
const TreeEditingMenu = memo(function(props2) {
|
|
@@ -25887,7 +25884,7 @@ memo(function(props2) {
|
|
|
25887
25884
|
siblings
|
|
25888
25885
|
} = props2, [scrollElement, setScrollElement] = useState(null), containerElementRef = useRef(null), [open, setOpen] = useState(!1);
|
|
25889
25886
|
let t0;
|
|
25890
|
-
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setOpen(_temp$
|
|
25887
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setOpen(_temp$3b), $[0] = t0) : t0 = $[0];
|
|
25891
25888
|
const toggleOpen = t0;
|
|
25892
25889
|
let t1;
|
|
25893
25890
|
$[1] !== setParentScrollElement ? (t1 = (el) => {
|
|
@@ -25914,7 +25911,7 @@ memo(function(props2) {
|
|
|
25914
25911
|
t6
|
|
25915
25912
|
] }), $[24] = t2, $[25] = t6, $[26] = t7) : t7 = $[26], t7;
|
|
25916
25913
|
});
|
|
25917
|
-
function _temp$
|
|
25914
|
+
function _temp$3b(v) {
|
|
25918
25915
|
return !v;
|
|
25919
25916
|
}
|
|
25920
25917
|
function SourceProvider(t0) {
|
|
@@ -26169,7 +26166,7 @@ function GridItem(props2) {
|
|
|
26169
26166
|
const presence = t7, childValidation = useChildValidation(path, !0);
|
|
26170
26167
|
let t8;
|
|
26171
26168
|
$[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];
|
|
26172
|
-
const validation2 = t8, hasErrors = childValidation.some(_temp$
|
|
26169
|
+
const validation2 = t8, hasErrors = childValidation.some(_temp$3a), hasWarnings = childValidation.some(_temp2$1i), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
|
|
26173
26170
|
let t10;
|
|
26174
26171
|
$[16] !== contextMenuButtonElement || $[17] !== handleInsert || $[18] !== insertableTypes || $[19] !== t9 ? (t10 = {
|
|
26175
26172
|
schemaTypes: insertableTypes,
|
|
@@ -26249,7 +26246,7 @@ function GridItem(props2) {
|
|
|
26249
26246
|
function _temp2$1i(v_0) {
|
|
26250
26247
|
return v_0.level === "warning";
|
|
26251
26248
|
}
|
|
26252
|
-
function _temp$
|
|
26249
|
+
function _temp$3a(v) {
|
|
26253
26250
|
return v.level === "error";
|
|
26254
26251
|
}
|
|
26255
26252
|
const EMPTY$4 = [];
|
|
@@ -26275,7 +26272,7 @@ function GridArrayInput(props2) {
|
|
|
26275
26272
|
value: t1
|
|
26276
26273
|
} = props2, ArrayFunctions = t0 === void 0 ? ArrayOfObjectsFunctions : t0, value = t1 === void 0 ? EMPTY$4 : t1, {
|
|
26277
26274
|
t
|
|
26278
|
-
} = useTranslation(), sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp$
|
|
26275
|
+
} = useTranslation(), sortable = schemaType.options?.sortable !== !1, renderItem2 = _temp$39;
|
|
26279
26276
|
let t2;
|
|
26280
26277
|
$[0] !== members ? (t2 = members.map(_temp2$1h), $[0] = members, $[1] = t2) : t2 = $[1];
|
|
26281
26278
|
const memberKeys = t2;
|
|
@@ -26304,7 +26301,7 @@ function GridArrayInput(props2) {
|
|
|
26304
26301
|
function _temp2$1h(member) {
|
|
26305
26302
|
return member.key;
|
|
26306
26303
|
}
|
|
26307
|
-
function _temp$
|
|
26304
|
+
function _temp$39(itemProps) {
|
|
26308
26305
|
return /* @__PURE__ */ jsx(GridItem, { ...itemProps });
|
|
26309
26306
|
}
|
|
26310
26307
|
function useMemoCompare(next, compare2) {
|
|
@@ -26326,7 +26323,7 @@ function useVisibilityDetection(parentRef) {
|
|
|
26326
26323
|
if (wasVisible === isNowVisible)
|
|
26327
26324
|
return;
|
|
26328
26325
|
const becameVisible = !wasVisible && isNowVisible;
|
|
26329
|
-
prevVisible.current = isNowVisible, setIsVisible(isNowVisible), becameVisible && setMountKey(_temp$
|
|
26326
|
+
prevVisible.current = isNowVisible, setIsVisible(isNowVisible), becameVisible && setMountKey(_temp$38);
|
|
26330
26327
|
});
|
|
26331
26328
|
return parentRef.current && resizeObserver2.observe(parentRef.current), () => resizeObserver2.disconnect();
|
|
26332
26329
|
}, t1 = [parentRef], $[0] = parentRef, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
@@ -26336,7 +26333,7 @@ function useVisibilityDetection(parentRef) {
|
|
|
26336
26333
|
mountKey
|
|
26337
26334
|
}, $[3] = isVisible2, $[4] = mountKey, $[5] = t2) : t2 = $[5], t2;
|
|
26338
26335
|
}
|
|
26339
|
-
function _temp$
|
|
26336
|
+
function _temp$38(prev) {
|
|
26340
26337
|
return prev + 1;
|
|
26341
26338
|
}
|
|
26342
26339
|
const Root$p = styled(Card)`
|
|
@@ -26434,7 +26431,7 @@ function IncompatibleItemType(props2) {
|
|
|
26434
26431
|
const handleKeyDown = t2;
|
|
26435
26432
|
let t3;
|
|
26436
26433
|
$[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
|
|
26437
|
-
setShowDetails(_temp$
|
|
26434
|
+
setShowDetails(_temp$37);
|
|
26438
26435
|
}, $[7] = t3) : t3 = $[7];
|
|
26439
26436
|
const handleShowDetails = t3;
|
|
26440
26437
|
let t4;
|
|
@@ -26496,7 +26493,7 @@ function IncompatibleItemType(props2) {
|
|
|
26496
26493
|
let t22;
|
|
26497
26494
|
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;
|
|
26498
26495
|
}
|
|
26499
|
-
function _temp$
|
|
26496
|
+
function _temp$37(v) {
|
|
26500
26497
|
return !v;
|
|
26501
26498
|
}
|
|
26502
26499
|
const MENU_POPOVER_PROPS$6 = {
|
|
@@ -26643,7 +26640,7 @@ function ListArrayInput(props2) {
|
|
|
26643
26640
|
t
|
|
26644
26641
|
} = useTranslation(), [activeDragItemIndex, setActiveDragItemIndex] = useState(null);
|
|
26645
26642
|
let t2;
|
|
26646
|
-
$[0] !== members ? (t2 = members.map(_temp$
|
|
26643
|
+
$[0] !== members ? (t2 = members.map(_temp$36), $[0] = members, $[1] = t2) : t2 = $[1];
|
|
26647
26644
|
const memberKeys = useMemoCompare(t2, shallowEquals), parentRef = useRef(null), {
|
|
26648
26645
|
isVisible: isVisible2,
|
|
26649
26646
|
mountKey
|
|
@@ -26689,7 +26686,7 @@ function ListArrayInput(props2) {
|
|
|
26689
26686
|
t9
|
|
26690
26687
|
] }), $[42] = t8, $[43] = t9, $[44] = t10) : t10 = $[44], t10;
|
|
26691
26688
|
}
|
|
26692
|
-
function _temp$
|
|
26689
|
+
function _temp$36(member) {
|
|
26693
26690
|
return member.key;
|
|
26694
26691
|
}
|
|
26695
26692
|
function ArrayOfObjectsInput(props2) {
|
|
@@ -26734,7 +26731,7 @@ function ArrayOfObjectOptionsInput(props2) {
|
|
|
26734
26731
|
$[0] !== t0 ? (t1 = t0 === void 0 ? [] : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
26735
26732
|
const value = t1, t2 = schemaType.options?.list || EMPTY_ARRAY$m;
|
|
26736
26733
|
let t3;
|
|
26737
|
-
$[2] !== t2 ? (t3 = t2.map(_temp$
|
|
26734
|
+
$[2] !== t2 ? (t3 = t2.map(_temp$35), $[2] = t2, $[3] = t3) : t3 = $[3];
|
|
26738
26735
|
const options = t3;
|
|
26739
26736
|
let t4;
|
|
26740
26737
|
$[4] !== onChange || $[5] !== options || $[6] !== value ? (t4 = (isChecked, changedOption) => {
|
|
@@ -26774,7 +26771,7 @@ function ArrayOfObjectOptionsInput(props2) {
|
|
|
26774
26771
|
let t9;
|
|
26775
26772
|
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;
|
|
26776
26773
|
}
|
|
26777
|
-
function _temp$
|
|
26774
|
+
function _temp$35(option, index) {
|
|
26778
26775
|
return isKeyedObject(option) ? option : {
|
|
26779
26776
|
...option,
|
|
26780
26777
|
_key: `auto-generated-${index}`
|
|
@@ -26816,7 +26813,7 @@ function ArrayOfPrimitiveOptionsInput(props2) {
|
|
|
26816
26813
|
const options = t3;
|
|
26817
26814
|
let t4;
|
|
26818
26815
|
$[6] !== onChange || $[7] !== options || $[8] !== value ? (t4 = (isChecked, changedValue) => {
|
|
26819
|
-
const nextValue = options.map(_temp$
|
|
26816
|
+
const nextValue = options.map(_temp$34).filter((optionValue) => optionValue === changedValue ? isChecked : value.includes(optionValue));
|
|
26820
26817
|
onChange(nextValue.length > 0 ? set(nextValue) : unset());
|
|
26821
26818
|
}, $[6] = onChange, $[7] = options, $[8] = value, $[9] = t4) : t4 = $[9];
|
|
26822
26819
|
const handleChange = t4, t5 = schemaType.options?.layout === "grid" ? Math.min(options.length, 4) : 1;
|
|
@@ -26838,7 +26835,7 @@ function ArrayOfPrimitiveOptionsInput(props2) {
|
|
|
26838
26835
|
let t8;
|
|
26839
26836
|
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;
|
|
26840
26837
|
}
|
|
26841
|
-
function _temp$
|
|
26838
|
+
function _temp$34(option) {
|
|
26842
26839
|
return option.value;
|
|
26843
26840
|
}
|
|
26844
26841
|
function ArrayOfOptionsInput(props2) {
|
|
@@ -26945,7 +26942,7 @@ function uploadTarget(Component2) {
|
|
|
26945
26942
|
const tasks2 = files.map((file_0) => ({
|
|
26946
26943
|
file: file_0,
|
|
26947
26944
|
uploaderCandidates: getUploadCandidates(types, resolveUploader2, file_0)
|
|
26948
|
-
})), ready = tasks2.filter(_temp$
|
|
26945
|
+
})), ready = tasks2.filter(_temp$33), rejected = tasks2.filter(_temp2$1g);
|
|
26949
26946
|
rejected.length > 0 && pushToast({
|
|
26950
26947
|
closable: !0,
|
|
26951
26948
|
status: "warning",
|
|
@@ -27021,7 +27018,7 @@ function DropMessage(props2) {
|
|
|
27021
27018
|
let t2;
|
|
27022
27019
|
return $[3] !== t1 ? (t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 }), $[3] = t1, $[4] = t2) : t2 = $[4], t2;
|
|
27023
27020
|
}
|
|
27024
|
-
function _temp$
|
|
27021
|
+
function _temp$33(task) {
|
|
27025
27022
|
return task.uploaderCandidates.length > 0;
|
|
27026
27023
|
}
|
|
27027
27024
|
function _temp2$1g(task_0) {
|
|
@@ -27104,7 +27101,7 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
|
|
|
27104
27101
|
children,
|
|
27105
27102
|
presence,
|
|
27106
27103
|
schemaType
|
|
27107
|
-
} = props2, hasError = validation2.filter(_temp$
|
|
27104
|
+
} = props2, hasError = validation2.filter(_temp$32).length > 0, hasWarning = validation2.filter(_temp2$1f).length > 0;
|
|
27108
27105
|
let t0;
|
|
27109
27106
|
$[0] !== onInsert ? (t0 = (pos, insertType) => {
|
|
27110
27107
|
onInsert({
|
|
@@ -27171,7 +27168,7 @@ const MENU_BUTTON_POPOVER_PROPS$2 = {
|
|
|
27171
27168
|
let t17;
|
|
27172
27169
|
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;
|
|
27173
27170
|
});
|
|
27174
|
-
function _temp$
|
|
27171
|
+
function _temp$32(item) {
|
|
27175
27172
|
return item.level === "error";
|
|
27176
27173
|
}
|
|
27177
27174
|
function _temp2$1f(item_0) {
|
|
@@ -27540,7 +27537,7 @@ const TIME_ZONE_SCOPE_TYPE = {
|
|
|
27540
27537
|
let t6;
|
|
27541
27538
|
$[22] !== allTimeZones ? (t6 = () => {
|
|
27542
27539
|
const localTzName = Intl.DateTimeFormat().resolvedOptions().timeZone, foundLocal = allTimeZones.find((tz_3) => tz_3.name === localTzName);
|
|
27543
|
-
return foundLocal || allTimeZones.find(_temp$
|
|
27540
|
+
return foundLocal || allTimeZones.find(_temp$31) || allTimeZones[0];
|
|
27544
27541
|
}, $[22] = allTimeZones, $[23] = t6) : t6 = $[23];
|
|
27545
27542
|
const getLocalTimeZone = t6;
|
|
27546
27543
|
let t7;
|
|
@@ -27638,7 +27635,7 @@ function getErrorMessage$1(err) {
|
|
|
27638
27635
|
let message;
|
|
27639
27636
|
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;
|
|
27640
27637
|
}
|
|
27641
|
-
function _temp$
|
|
27638
|
+
function _temp$31(timeZone) {
|
|
27642
27639
|
return timeZone.abbreviation === "GMT";
|
|
27643
27640
|
}
|
|
27644
27641
|
const TimeZoneCitySpan = styled.span(({
|
|
@@ -27696,7 +27693,7 @@ const TimeZoneCitySpan = styled.span(({
|
|
|
27696
27693
|
const handleTimeZoneUpdate = t6, isDirty = selectedTz?.name !== timeZone.name;
|
|
27697
27694
|
let t7;
|
|
27698
27695
|
$[18] !== getLocalTimeZone ? (t7 = getLocalTimeZone(), $[18] = getLocalTimeZone, $[19] = t7) : t7 = $[19];
|
|
27699
|
-
const isLocalTzSelected = selectedTz?.name === t7.name, renderOption = _temp$
|
|
27696
|
+
const isLocalTzSelected = selectedTz?.name === t7.name, renderOption = _temp$30, renderValue = _temp2$1e, t8 = !isDirty || !selectedTz;
|
|
27700
27697
|
let t9;
|
|
27701
27698
|
$[20] !== handleTimeZoneUpdate || $[21] !== t8 ? (t9 = {
|
|
27702
27699
|
confirmButton: {
|
|
@@ -27755,7 +27752,7 @@ const TimeZoneCitySpan = styled.span(({
|
|
|
27755
27752
|
let t25;
|
|
27756
27753
|
return $[60] !== onClose || $[61] !== t24 || $[62] !== t9 ? (t25 = /* @__PURE__ */ jsx(Dialog, { 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;
|
|
27757
27754
|
};
|
|
27758
|
-
function _temp$
|
|
27755
|
+
function _temp$30(option) {
|
|
27759
27756
|
return /* @__PURE__ */ jsx(Card, { as: "button", padding: 3, children: /* @__PURE__ */ jsxs(Text$1, { size: 1, textOverflow: "ellipsis", children: [
|
|
27760
27757
|
/* @__PURE__ */ jsx(TimeZoneCitySpan, { children: option.city }),
|
|
27761
27758
|
/* @__PURE__ */ jsxs(TimeZoneOffsetSpan, { children: [
|
|
@@ -27859,9 +27856,9 @@ const DEFAULT_MONTH_NAMES = ["January", "February", "March", "April", "May", "Ju
|
|
|
27859
27856
|
weekInfo
|
|
27860
27857
|
} = useCurrentLocale();
|
|
27861
27858
|
let t0;
|
|
27862
|
-
return $[0] !== date || $[1] !== weekInfo.firstDay ? (t0 = getWeekDaysFromWeekStarts$2(getWeekStartsOfMonth$2(date, weekInfo.firstDay)).map(_temp$
|
|
27859
|
+
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;
|
|
27863
27860
|
};
|
|
27864
|
-
function _temp$
|
|
27861
|
+
function _temp$2$(days) {
|
|
27865
27862
|
return {
|
|
27866
27863
|
number: getWeek(days[0]),
|
|
27867
27864
|
days
|
|
@@ -27887,7 +27884,7 @@ function CalendarMonth$3(props2) {
|
|
|
27887
27884
|
gridTemplateColumns: "repeat(7, minmax(44px, 46px))"
|
|
27888
27885
|
}, $[4] = t2) : t2 = $[4];
|
|
27889
27886
|
let t3;
|
|
27890
|
-
$[5] !== weekDayNames ? (t3 = weekDayNames.map(_temp$
|
|
27887
|
+
$[5] !== weekDayNames ? (t3 = weekDayNames.map(_temp$2_), $[5] = weekDayNames, $[6] = t3) : t3 = $[6];
|
|
27891
27888
|
const t4 = useWeeksOfMonth$1(props2.date);
|
|
27892
27889
|
let t5;
|
|
27893
27890
|
if ($[7] !== props2.focused || $[8] !== props2.isPastDisabled || $[9] !== props2.onSelect || $[10] !== props2.selected || $[11] !== t4) {
|
|
@@ -27906,7 +27903,7 @@ function CalendarMonth$3(props2) {
|
|
|
27906
27903
|
let t7;
|
|
27907
27904
|
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;
|
|
27908
27905
|
}
|
|
27909
|
-
function _temp$
|
|
27906
|
+
function _temp$2_(weekday) {
|
|
27910
27907
|
return /* @__PURE__ */ jsx(Box, { paddingY: 2, children: /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "medium", style: {
|
|
27911
27908
|
textAlign: "center"
|
|
27912
27909
|
}, children: weekday }) }, weekday);
|
|
@@ -28211,11 +28208,11 @@ function CalendarMonthSelect$1(props2) {
|
|
|
28211
28208
|
monthNames
|
|
28212
28209
|
} = props2;
|
|
28213
28210
|
let t0;
|
|
28214
|
-
$[0] !== monthNames ? (t0 = monthNames.map(_temp$
|
|
28211
|
+
$[0] !== monthNames ? (t0 = monthNames.map(_temp$2Z), $[0] = monthNames, $[1] = t0) : t0 = $[1];
|
|
28215
28212
|
let t1;
|
|
28216
28213
|
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;
|
|
28217
28214
|
}
|
|
28218
|
-
function _temp$
|
|
28215
|
+
function _temp$2Z(monthName, i) {
|
|
28219
28216
|
return /* @__PURE__ */ jsx("option", { value: i, children: monthName }, i);
|
|
28220
28217
|
}
|
|
28221
28218
|
function CalendarYearSelect$1(props2) {
|
|
@@ -28790,7 +28787,7 @@ const GroupTab = forwardRef(function(props2, ref) {
|
|
|
28790
28787
|
} = useTranslation();
|
|
28791
28788
|
let t3;
|
|
28792
28789
|
$[2] !== t ? (t3 = t("inputs.object.field-group-tabs.aria-label"), $[2] = t, $[3] = t3) : t3 = $[3];
|
|
28793
|
-
const t4 = groups.find(_temp$
|
|
28790
|
+
const t4 = groups.find(_temp$2Y)?.name;
|
|
28794
28791
|
let t5;
|
|
28795
28792
|
if ($[4] !== groups || $[5] !== inputId || $[6] !== t) {
|
|
28796
28793
|
let t62;
|
|
@@ -28824,7 +28821,7 @@ const GroupTab = forwardRef(function(props2, ref) {
|
|
|
28824
28821
|
/* @__PURE__ */ jsx(GroupSelect, { ...props2, disabled, onSelect: handleClick })
|
|
28825
28822
|
] }), $[6] = disabled, $[7] = handleClick, $[8] = props2, $[9] = t3) : t3 = $[9], t3;
|
|
28826
28823
|
});
|
|
28827
|
-
function _temp$
|
|
28824
|
+
function _temp$2Y(g) {
|
|
28828
28825
|
return g.selected;
|
|
28829
28826
|
}
|
|
28830
28827
|
const FieldGroupTabsWrapper = styled(Card)`
|
|
@@ -28967,7 +28964,7 @@ const RootStack$2 = styled(Stack)`
|
|
|
28967
28964
|
}
|
|
28968
28965
|
let t42;
|
|
28969
28966
|
if ($[5] !== schemaType.fields || $[6] !== value) {
|
|
28970
|
-
const knownFieldNames = schemaType.fields.map(_temp$
|
|
28967
|
+
const knownFieldNames = schemaType.fields.map(_temp$2X);
|
|
28971
28968
|
t42 = Object.keys(value || {}).filter((key) => !key.startsWith("_") && !knownFieldNames.includes(key)), $[5] = schemaType.fields, $[6] = value, $[7] = t42;
|
|
28972
28969
|
} else
|
|
28973
28970
|
t42 = $[7];
|
|
@@ -29013,7 +29010,7 @@ const RootStack$2 = styled(Stack)`
|
|
|
29013
29010
|
t12
|
|
29014
29011
|
] }), $[43] = arrayEditingModal, $[44] = t12, $[45] = t13) : t13 = $[45], t13;
|
|
29015
29012
|
});
|
|
29016
|
-
function _temp$
|
|
29013
|
+
function _temp$2X(field) {
|
|
29017
29014
|
return field.name;
|
|
29018
29015
|
}
|
|
29019
29016
|
function _temp2$1d(t0) {
|
|
@@ -29092,7 +29089,7 @@ function SlugInput(props2) {
|
|
|
29092
29089
|
focusPath
|
|
29093
29090
|
} = props2, sourceField = schemaType.options?.source;
|
|
29094
29091
|
let t0;
|
|
29095
|
-
$[0] !== validation2 ? (t0 = validation2.filter(_temp$
|
|
29092
|
+
$[0] !== validation2 ? (t0 = validation2.filter(_temp$2W), $[0] = validation2, $[1] = t0) : t0 = $[1];
|
|
29096
29093
|
const errors = t0, inputRef = useRef(null), slugContext = useSlugContext(), {
|
|
29097
29094
|
t
|
|
29098
29095
|
} = useTranslation();
|
|
@@ -29158,7 +29155,7 @@ function SlugInput(props2) {
|
|
|
29158
29155
|
t13
|
|
29159
29156
|
] }) }), $[38] = t12, $[39] = t13, $[40] = t14) : t14 = $[40], t14;
|
|
29160
29157
|
}
|
|
29161
|
-
function _temp$
|
|
29158
|
+
function _temp$2W(item) {
|
|
29162
29159
|
return item.level === "error";
|
|
29163
29160
|
}
|
|
29164
29161
|
function StringInputBasic(props2) {
|
|
@@ -29423,7 +29420,7 @@ const ScrollContainerComponent = forwardRef(function(props2, forwardedRef) {
|
|
|
29423
29420
|
const As = t0 === void 0 ? "div" : t0, ref = useRef(null);
|
|
29424
29421
|
let t1;
|
|
29425
29422
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => ref.current, $[4] = t1) : t1 = $[4], useImperativeHandle(forwardedRef, t1);
|
|
29426
|
-
const parentContext = useContext(ScrollContext), [childContext] = useState(_temp$
|
|
29423
|
+
const parentContext = useContext(ScrollContext), [childContext] = useState(_temp$2V);
|
|
29427
29424
|
let t2, t3;
|
|
29428
29425
|
$[5] !== childContext || $[6] !== onScroll ? (t2 = () => {
|
|
29429
29426
|
if (onScroll)
|
|
@@ -29453,7 +29450,7 @@ const ScrollContainerComponent = forwardRef(function(props2, forwardedRef) {
|
|
|
29453
29450
|
return $[19] !== childContext || $[20] !== t8 ? (t9 = /* @__PURE__ */ jsx(ScrollContext.Provider, { value: childContext, children: t8 }), $[19] = childContext, $[20] = t8, $[21] = t9) : t9 = $[21], t9;
|
|
29454
29451
|
}), ScrollContainer = memo(ScrollContainerComponent);
|
|
29455
29452
|
ScrollContainer.displayName = "Memo(Forwardref(ScrollContainer))";
|
|
29456
|
-
function _temp$
|
|
29453
|
+
function _temp$2V() {
|
|
29457
29454
|
return createPubSub();
|
|
29458
29455
|
}
|
|
29459
29456
|
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 = {
|
|
@@ -29843,7 +29840,7 @@ function BlockActions(props2) {
|
|
|
29843
29840
|
renderBlockActions
|
|
29844
29841
|
} = props2;
|
|
29845
29842
|
let t0;
|
|
29846
|
-
$[0] !== editor2.schemaTypes.decorators ? (t0 = editor2.schemaTypes.decorators.map(_temp$
|
|
29843
|
+
$[0] !== editor2.schemaTypes.decorators ? (t0 = editor2.schemaTypes.decorators.map(_temp$2U), $[0] = editor2.schemaTypes.decorators, $[1] = t0) : t0 = $[1];
|
|
29847
29844
|
const decoratorValues = t0;
|
|
29848
29845
|
let t1;
|
|
29849
29846
|
bb0: {
|
|
@@ -29882,7 +29879,7 @@ function BlockActions(props2) {
|
|
|
29882
29879
|
let t2;
|
|
29883
29880
|
return $[8] !== blockActions ? (t2 = /* @__PURE__ */ jsx(Root$j, { contentEditable: !1, children: blockActions }), $[8] = blockActions, $[9] = t2) : t2 = $[9], t2;
|
|
29884
29881
|
}
|
|
29885
|
-
function _temp$
|
|
29882
|
+
function _temp$2U(d) {
|
|
29886
29883
|
return d.value;
|
|
29887
29884
|
}
|
|
29888
29885
|
function textBlockStyle(props2) {
|
|
@@ -30615,13 +30612,13 @@ const MENU_BUTTON_POPOVER_PROPS$1 = {
|
|
|
30615
30612
|
onMenuClose
|
|
30616
30613
|
} = props2;
|
|
30617
30614
|
let t0;
|
|
30618
|
-
$[0] !== menuOptions ? (t0 = menuOptions.map(_temp$
|
|
30615
|
+
$[0] !== menuOptions ? (t0 = menuOptions.map(_temp$2T), $[0] = menuOptions, $[1] = t0) : t0 = $[1];
|
|
30619
30616
|
let t1;
|
|
30620
30617
|
$[2] !== t0 ? (t1 = /* @__PURE__ */ jsx(Menu, { children: t0 }), $[2] = t0, $[3] = t1) : t1 = $[3];
|
|
30621
30618
|
let t2;
|
|
30622
30619
|
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;
|
|
30623
30620
|
});
|
|
30624
|
-
function _temp$
|
|
30621
|
+
function _temp$2T(c2, index) {
|
|
30625
30622
|
const {
|
|
30626
30623
|
collapsedProps,
|
|
30627
30624
|
expandedProps,
|
|
@@ -30748,7 +30745,7 @@ const CollapseMenu = forwardRef(function(props2, ref) {
|
|
|
30748
30745
|
}, $[10] = rootEl, $[11] = t3) : t3 = $[11];
|
|
30749
30746
|
const intersectionOptions = t3;
|
|
30750
30747
|
let t4;
|
|
30751
|
-
$[12] !== menuOptions ? (t4 = menuOptions.map(_temp$
|
|
30748
|
+
$[12] !== menuOptions ? (t4 = menuOptions.map(_temp$2S), $[12] = menuOptions, $[13] = t4) : t4 = $[13];
|
|
30752
30749
|
const menuOptionKeys = t4;
|
|
30753
30750
|
let t5;
|
|
30754
30751
|
$[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];
|
|
@@ -30886,7 +30883,7 @@ const CollapseMenu = forwardRef(function(props2, ref) {
|
|
|
30886
30883
|
let t1;
|
|
30887
30884
|
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;
|
|
30888
30885
|
});
|
|
30889
|
-
function _temp$
|
|
30886
|
+
function _temp$2S(child) {
|
|
30890
30887
|
return child.key;
|
|
30891
30888
|
}
|
|
30892
30889
|
const CollapseMenuButton = forwardRef(function(props2, ref) {
|
|
@@ -31059,9 +31056,9 @@ function useActiveActionKeys(t0) {
|
|
|
31059
31056
|
actions
|
|
31060
31057
|
} = t0, editor2 = usePortableTextEditor(), selection = usePortableTextEditorSelection();
|
|
31061
31058
|
let t1;
|
|
31062
|
-
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$
|
|
31059
|
+
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);
|
|
31063
31060
|
}
|
|
31064
|
-
function _temp$
|
|
31061
|
+
function _temp$2R(a_0) {
|
|
31065
31062
|
return a_0.key;
|
|
31066
31063
|
}
|
|
31067
31064
|
function useActiveStyleKeys(t0) {
|
|
@@ -31135,14 +31132,14 @@ const CollapseMenuMemo$1 = memo(CollapseMenu), MENU_POPOVER_PROPS$4 = {
|
|
|
31135
31132
|
let t7;
|
|
31136
31133
|
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;
|
|
31137
31134
|
});
|
|
31138
|
-
function _temp$
|
|
31135
|
+
function _temp$2Q(action, actionIndex) {
|
|
31139
31136
|
return actionIndex === 0 ? {
|
|
31140
31137
|
...action,
|
|
31141
31138
|
firstInGroup: !0
|
|
31142
31139
|
} : action;
|
|
31143
31140
|
}
|
|
31144
31141
|
function _temp2$1b(acc, group2) {
|
|
31145
|
-
return acc.concat(group2.actions.map(_temp$
|
|
31142
|
+
return acc.concat(group2.actions.map(_temp$2Q));
|
|
31146
31143
|
}
|
|
31147
31144
|
const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1)`
|
|
31148
31145
|
// Change the border color variable used by BlockQuote
|
|
@@ -31323,7 +31320,7 @@ const MenuButtonMemo = memo(MenuButton), StyledMenuItem = styled(MenuItem$1)`
|
|
|
31323
31320
|
onToggleFullscreen
|
|
31324
31321
|
} = t0, {
|
|
31325
31322
|
t
|
|
31326
|
-
} = useTranslation(), showActionMenu = actionGroups.reduce(_temp$
|
|
31323
|
+
} = 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;
|
|
31327
31324
|
let t1;
|
|
31328
31325
|
$[0] !== rootElement ? (t1 = {
|
|
31329
31326
|
rootElement
|
|
@@ -31432,7 +31429,7 @@ function Toolbar(props2) {
|
|
|
31432
31429
|
let t6;
|
|
31433
31430
|
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;
|
|
31434
31431
|
}
|
|
31435
|
-
function _temp$
|
|
31432
|
+
function _temp$2P(acc, x) {
|
|
31436
31433
|
return acc + x.actions.length;
|
|
31437
31434
|
}
|
|
31438
31435
|
function _temp2$1a(e) {
|
|
@@ -31590,7 +31587,7 @@ function useTrackFocusPath(props2) {
|
|
|
31590
31587
|
$[0] !== boundaryElement || $[1] !== editor2 || $[2] !== elementRefs || $[3] !== focusPath || $[4] !== portableTextMemberItems || $[5] !== selection ? (t0 = () => {
|
|
31591
31588
|
if (focusPath.length === 0 || selection?.focus.path && isEqual$3(selection.focus.path, focusPath.slice(0, selection.focus.path.length)))
|
|
31592
31589
|
return;
|
|
31593
|
-
const focusedItem = portableTextMemberItems.find(_temp$
|
|
31590
|
+
const focusedItem = portableTextMemberItems.find(_temp$2O), openItem = portableTextMemberItems.find(_temp2$19), relatedEditorItem = focusedItem || openItem, elementRef = relatedEditorItem ? elementRefs[relatedEditorItem.member.key] : void 0;
|
|
31594
31591
|
if (relatedEditorItem && elementRef) {
|
|
31595
31592
|
boundaryElement && (scrollIntoView$1(boundaryElement, {
|
|
31596
31593
|
scrollMode: "if-needed",
|
|
@@ -31630,7 +31627,7 @@ function useTrackFocusPath(props2) {
|
|
|
31630
31627
|
function _temp2$19(m_0) {
|
|
31631
31628
|
return m_0.member.open;
|
|
31632
31629
|
}
|
|
31633
|
-
function _temp$
|
|
31630
|
+
function _temp$2O(m) {
|
|
31634
31631
|
return m.member.item.focused;
|
|
31635
31632
|
}
|
|
31636
31633
|
const Root$h = styled(Card)(rootStyle), PreviewSpan = styled.span`
|
|
@@ -32100,7 +32097,7 @@ const InlineObject = (props2) => {
|
|
|
32100
32097
|
t
|
|
32101
32098
|
} = useTranslation(), hasMarkers = markers.length > 0, popoverTitle = schemaType?.title || schemaType.name;
|
|
32102
32099
|
let t0;
|
|
32103
|
-
$[0] !== validation2 ? (t0 = validation2.filter(_temp$
|
|
32100
|
+
$[0] !== validation2 ? (t0 = validation2.filter(_temp$2N), $[0] = validation2, $[1] = t0) : t0 = $[1];
|
|
32104
32101
|
const hasError = t0.length > 0;
|
|
32105
32102
|
let t1;
|
|
32106
32103
|
$[2] !== validation2 ? (t1 = validation2.filter(_temp2$18), $[2] = validation2, $[3] = t1) : t1 = $[3];
|
|
@@ -32154,7 +32151,7 @@ const InlineObject = (props2) => {
|
|
|
32154
32151
|
t16
|
|
32155
32152
|
] }), $[44] = t14, $[45] = t15, $[46] = t16, $[47] = t17) : t17 = $[47], t17;
|
|
32156
32153
|
};
|
|
32157
|
-
function _temp$
|
|
32154
|
+
function _temp$2N(v) {
|
|
32158
32155
|
return v.level === "error";
|
|
32159
32156
|
}
|
|
32160
32157
|
function _temp2$18(v_0) {
|
|
@@ -32163,7 +32160,7 @@ function _temp2$18(v_0) {
|
|
|
32163
32160
|
function AnnotationObjectEditModal(props2) {
|
|
32164
32161
|
const $ = c(14), editor2 = usePortableTextEditor(), boundaryElement = useBoundaryElement().element, portableTextMemberItems = usePortableTextMemberItems(), elementRefs = usePortableTextMemberItemElementRefs();
|
|
32165
32162
|
let t0;
|
|
32166
|
-
$[0] !== portableTextMemberItems ? (t0 = portableTextMemberItems.find(_temp$
|
|
32163
|
+
$[0] !== portableTextMemberItems ? (t0 = portableTextMemberItems.find(_temp$2M), $[0] = portableTextMemberItems, $[1] = t0) : t0 = $[1];
|
|
32167
32164
|
const openAnnotation = t0;
|
|
32168
32165
|
let t1;
|
|
32169
32166
|
$[2] !== editor2 || $[3] !== openAnnotation || $[4] !== props2 ? (t1 = () => {
|
|
@@ -32179,7 +32176,7 @@ function AnnotationObjectEditModal(props2) {
|
|
|
32179
32176
|
let t3;
|
|
32180
32177
|
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;
|
|
32181
32178
|
}
|
|
32182
|
-
function _temp$
|
|
32179
|
+
function _temp$2M(m) {
|
|
32183
32180
|
return m.kind === "annotation" && m.member.open;
|
|
32184
32181
|
}
|
|
32185
32182
|
function Compositor(props2) {
|
|
@@ -32574,7 +32571,7 @@ function useOptimisticPortableTextDiff(t0) {
|
|
|
32574
32571
|
t22 = Object.values(optimisticRangeDecorations).concat(Object.entries(definitiveRangeDecorations).filter((t32) => {
|
|
32575
32572
|
const [blockKey] = t32;
|
|
32576
32573
|
return typeof optimisticRangeDecorations[blockKey] > "u";
|
|
32577
|
-
}).map(_temp$
|
|
32574
|
+
}).map(_temp$2L)).flat(), $[2] = definitiveValue, $[3] = optimisticValue, $[4] = perspective, $[5] = upstreamValue, $[6] = t22;
|
|
32578
32575
|
} else
|
|
32579
32576
|
t22 = $[6];
|
|
32580
32577
|
t1 = t22;
|
|
@@ -32612,7 +32609,7 @@ function useOptimisticPortableTextDiff(t0) {
|
|
|
32612
32609
|
onOptimisticChange
|
|
32613
32610
|
}, $[14] = onOptimisticChange, $[15] = rangeDecorations, $[16] = t5) : t5 = $[16], t5;
|
|
32614
32611
|
}
|
|
32615
|
-
function _temp$
|
|
32612
|
+
function _temp$2L(t0) {
|
|
32616
32613
|
const [, blockRangeDecorations] = t0;
|
|
32617
32614
|
return blockRangeDecorations;
|
|
32618
32615
|
}
|
|
@@ -32830,14 +32827,14 @@ const RenderDefault = (props2) => {
|
|
|
32830
32827
|
let t1;
|
|
32831
32828
|
return $[1] !== RenderPlugins || $[2] !== props2 ? (t1 = /* @__PURE__ */ jsx(RenderPlugins, { ...props2 }), $[1] = RenderPlugins, $[2] = props2, $[3] = t1) : t1 = $[3], t1;
|
|
32832
32829
|
};
|
|
32833
|
-
function _temp$
|
|
32830
|
+
function _temp$2K(decorator) {
|
|
32834
32831
|
return decorator.name === "code" ? [] : [decorator.name];
|
|
32835
32832
|
}
|
|
32836
32833
|
function _temp2$17(t0) {
|
|
32837
32834
|
const {
|
|
32838
32835
|
context
|
|
32839
32836
|
} = t0;
|
|
32840
|
-
return context.schema.decorators.flatMap(_temp$
|
|
32837
|
+
return context.schema.decorators.flatMap(_temp$2K);
|
|
32841
32838
|
}
|
|
32842
32839
|
const DOT_SIZE = 6, CONTENT_BOX_VARIANTS = {
|
|
32843
32840
|
animate: {
|
|
@@ -32994,7 +32991,7 @@ function usePresenceCursorDecorations(props2) {
|
|
|
32994
32991
|
const handleRangeDecorationMoved = t2;
|
|
32995
32992
|
let t3, t4;
|
|
32996
32993
|
$[3] !== fieldPresence || $[4] !== path ? (t3 = () => {
|
|
32997
|
-
const nextPresence = fieldPresence.filter((p_0) => startsWith(path, p_0.path) && !isEqual$2(path, p_0.path)), filteredNext = nextPresence.map(_temp$
|
|
32994
|
+
const nextPresence = fieldPresence.filter((p_0) => startsWith(path, p_0.path) && !isEqual$2(path, p_0.path)), filteredNext = nextPresence.map(_temp$2J), filteredPrevious = previousPresence.current.map(_temp2$16);
|
|
32998
32995
|
if (!isEqual$2(filteredNext, filteredPrevious)) {
|
|
32999
32996
|
const value = nextPresence.length > 0 ? nextPresence : EMPTY_ARRAY$B;
|
|
33000
32997
|
setCurrentPresence(value), previousPresence.current = value;
|
|
@@ -33032,7 +33029,7 @@ function _temp2$16(d_0) {
|
|
|
33032
33029
|
sessionId: d_0.sessionId
|
|
33033
33030
|
};
|
|
33034
33031
|
}
|
|
33035
|
-
function _temp$
|
|
33032
|
+
function _temp$2J(d) {
|
|
33036
33033
|
return {
|
|
33037
33034
|
...d.selection,
|
|
33038
33035
|
sessionId: d.sessionId
|
|
@@ -33913,12 +33910,12 @@ function useFeatureEnabled(featureKey) {
|
|
|
33913
33910
|
features: features2,
|
|
33914
33911
|
error: null
|
|
33915
33912
|
};
|
|
33916
|
-
}, $[6] = featureKey, $[7] = t2) : t2 = $[7], t1 = req.pipe(map(t2), startWith(INITIAL_LOADING_STATE$3), catchError(_temp$
|
|
33913
|
+
}, $[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;
|
|
33917
33914
|
} else
|
|
33918
33915
|
t1 = $[5];
|
|
33919
33916
|
return useObservable(t1, INITIAL_LOADING_STATE$3);
|
|
33920
33917
|
}
|
|
33921
|
-
function _temp$
|
|
33918
|
+
function _temp$2I(error) {
|
|
33922
33919
|
return of({
|
|
33923
33920
|
isLoading: !1,
|
|
33924
33921
|
enabled: !1,
|
|
@@ -33935,7 +33932,7 @@ function DisabledFeatureWarning(t0) {
|
|
|
33935
33932
|
} = useTranslation();
|
|
33936
33933
|
let t1;
|
|
33937
33934
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
33938
|
-
DocumentationLink: _temp$
|
|
33935
|
+
DocumentationLink: _temp$2H
|
|
33939
33936
|
}, $[0] = t1) : t1 = $[0];
|
|
33940
33937
|
let t2;
|
|
33941
33938
|
$[1] !== t ? (t2 = /* @__PURE__ */ jsx(Translate, { t, i18nKey: "inputs.reference.cross-dataset.feature-disabled-description", components: t1 }), $[1] = t, $[2] = t2) : t2 = $[2];
|
|
@@ -33972,7 +33969,7 @@ function DisabledFeatureWarning(t0) {
|
|
|
33972
33969
|
t11
|
|
33973
33970
|
] }), $[26] = t10, $[27] = t11, $[28] = t12) : t12 = $[28], t12;
|
|
33974
33971
|
}
|
|
33975
|
-
function _temp$
|
|
33972
|
+
function _temp$2H(t0) {
|
|
33976
33973
|
const {
|
|
33977
33974
|
children
|
|
33978
33975
|
} = t0;
|
|
@@ -34068,7 +34065,7 @@ function useReferenceInfo$1(doc, getReferenceInfo2) {
|
|
|
34068
34065
|
const $ = c(8), [retryAttempt, setRetryAttempt] = useState(0);
|
|
34069
34066
|
let t0;
|
|
34070
34067
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => {
|
|
34071
|
-
setRetryAttempt(_temp$
|
|
34068
|
+
setRetryAttempt(_temp$2G);
|
|
34072
34069
|
}, $[0] = t0) : t0 = $[0];
|
|
34073
34070
|
const retry2 = t0;
|
|
34074
34071
|
let t1;
|
|
@@ -34092,7 +34089,7 @@ function useReferenceInfo$1(doc, getReferenceInfo2) {
|
|
|
34092
34089
|
retryAttempt
|
|
34093
34090
|
})))) : of(EMPTY_STATE$1), $[4] = docInfo, $[5] = getReferenceInfo2, $[6] = retryAttempt, $[7] = t2) : t2 = $[7], useObservable(t2, INITIAL_LOADING_STATE$2);
|
|
34094
34091
|
}
|
|
34095
|
-
function _temp$
|
|
34092
|
+
function _temp$2G(current) {
|
|
34096
34093
|
return current + 1;
|
|
34097
34094
|
}
|
|
34098
34095
|
function useProjectId$1() {
|
|
@@ -34332,7 +34329,7 @@ function CrossDatasetReferenceInput(props2) {
|
|
|
34332
34329
|
push
|
|
34333
34330
|
} = useToast();
|
|
34334
34331
|
let t12;
|
|
34335
|
-
$[29] !== validation2 ? (t12 = validation2.filter(_temp$
|
|
34332
|
+
$[29] !== validation2 ? (t12 = validation2.filter(_temp$2F), $[29] = validation2, $[30] = t12) : t12 = $[30];
|
|
34336
34333
|
const errors = t12;
|
|
34337
34334
|
let t13;
|
|
34338
34335
|
$[31] !== onPathFocus ? (t13 = (event_0) => {
|
|
@@ -34420,7 +34417,7 @@ function _temp2$15(prevState, nextState) {
|
|
|
34420
34417
|
...nextState
|
|
34421
34418
|
};
|
|
34422
34419
|
}
|
|
34423
|
-
function _temp$
|
|
34420
|
+
function _temp$2F(item) {
|
|
34424
34421
|
return item.level === "error";
|
|
34425
34422
|
}
|
|
34426
34423
|
const REQUEST_TAG_BASE$1 = "cross-dataset-refs", AVAILABILITY_READABLE$2 = {
|
|
@@ -34666,7 +34663,7 @@ function useReferenceInfo(doc, getReferenceInfo2) {
|
|
|
34666
34663
|
const $ = c(10), [retryAttempt, setRetryAttempt] = useState(0);
|
|
34667
34664
|
let t0;
|
|
34668
34665
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => {
|
|
34669
|
-
setRetryAttempt(_temp$
|
|
34666
|
+
setRetryAttempt(_temp$2E);
|
|
34670
34667
|
}, $[0] = t0) : t0 = $[0];
|
|
34671
34668
|
const retry2 = t0;
|
|
34672
34669
|
let t1;
|
|
@@ -34700,7 +34697,7 @@ function useReferenceInfo(doc, getReferenceInfo2) {
|
|
|
34700
34697
|
}
|
|
34701
34698
|
return useObservable(t1, INITIAL_LOADING_STATE$1);
|
|
34702
34699
|
}
|
|
34703
|
-
function _temp$
|
|
34700
|
+
function _temp$2E(current) {
|
|
34704
34701
|
return current + 1;
|
|
34705
34702
|
}
|
|
34706
34703
|
function OptionPreview(props2) {
|
|
@@ -34943,7 +34940,7 @@ function GlobalDocumentReferenceInput(props2) {
|
|
|
34943
34940
|
push
|
|
34944
34941
|
} = useToast();
|
|
34945
34942
|
let t11;
|
|
34946
|
-
$[31] !== validation2 ? (t11 = validation2.filter(_temp$
|
|
34943
|
+
$[31] !== validation2 ? (t11 = validation2.filter(_temp$2D), $[31] = validation2, $[32] = t11) : t11 = $[32];
|
|
34947
34944
|
const errors = t11;
|
|
34948
34945
|
let t12;
|
|
34949
34946
|
$[33] !== onPathFocus ? (t12 = (event_0) => {
|
|
@@ -35047,7 +35044,7 @@ function _temp2$14(prevState, nextState) {
|
|
|
35047
35044
|
...nextState
|
|
35048
35045
|
};
|
|
35049
35046
|
}
|
|
35050
|
-
function _temp$
|
|
35047
|
+
function _temp$2D(item) {
|
|
35051
35048
|
return item.level === "error";
|
|
35052
35049
|
}
|
|
35053
35050
|
function getReferenceClient(client, schemaType) {
|
|
@@ -35555,7 +35552,7 @@ const TRANSFORMATIONS = {
|
|
|
35555
35552
|
const controller = new AbortController(), signal = controller.signal;
|
|
35556
35553
|
return fetch(props2.icon.url, {
|
|
35557
35554
|
signal
|
|
35558
|
-
}).then(_temp$
|
|
35555
|
+
}).then(_temp$2C).then((data) => setHtml(data)).catch(_temp2$13), () => {
|
|
35559
35556
|
controller.abort();
|
|
35560
35557
|
};
|
|
35561
35558
|
}, t1 = [props2.icon.url], $[0] = props2.icon.url, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
@@ -35706,7 +35703,7 @@ function UpsellDescriptionSerializer(props2) {
|
|
|
35706
35703
|
let t2;
|
|
35707
35704
|
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;
|
|
35708
35705
|
}
|
|
35709
|
-
function _temp$
|
|
35706
|
+
function _temp$2C(response) {
|
|
35710
35707
|
if (!response.ok)
|
|
35711
35708
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
35712
35709
|
return response.text();
|
|
@@ -35841,9 +35838,9 @@ function useReferringDocuments(id2, t0) {
|
|
|
35841
35838
|
docId: id2
|
|
35842
35839
|
}, {
|
|
35843
35840
|
tag: "use-referring-documents"
|
|
35844
|
-
}).pipe(map(_temp$
|
|
35841
|
+
}).pipe(map(_temp$2B), startWith(INITIAL_STATE$8)), $[2] = documentStore, $[3] = id2, $[4] = projection, $[5] = t2) : t2 = $[5], useObservable(t2, INITIAL_STATE$8);
|
|
35845
35842
|
}
|
|
35846
|
-
function _temp$
|
|
35843
|
+
function _temp$2B(docs) {
|
|
35847
35844
|
return {
|
|
35848
35845
|
referringDocuments: docs,
|
|
35849
35846
|
isLoading: !1
|
|
@@ -35871,7 +35868,7 @@ const AssetUsageList = (t0) => {
|
|
|
35871
35868
|
let t6;
|
|
35872
35869
|
$[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];
|
|
35873
35870
|
let t7;
|
|
35874
|
-
$[11] !== referringDocuments ? (t7 = referringDocuments.map(_temp$
|
|
35871
|
+
$[11] !== referringDocuments ? (t7 = referringDocuments.map(_temp$2A), $[11] = referringDocuments, $[12] = t7) : t7 = $[12];
|
|
35875
35872
|
let t8;
|
|
35876
35873
|
return $[13] !== t6 || $[14] !== t7 ? (t8 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
35877
35874
|
t6,
|
|
@@ -35899,7 +35896,7 @@ const AssetUsageList = (t0) => {
|
|
|
35899
35896
|
let t6;
|
|
35900
35897
|
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;
|
|
35901
35898
|
};
|
|
35902
|
-
function _temp$
|
|
35899
|
+
function _temp$2A(document2) {
|
|
35903
35900
|
return /* @__PURE__ */ jsx(DocumentLink, { document: document2 }, document2._id);
|
|
35904
35901
|
}
|
|
35905
35902
|
const STYLE_ASSET_IMAGE = {
|
|
@@ -35995,7 +35992,7 @@ function AssetDeleteDialog(t0) {
|
|
|
35995
35992
|
} = useLegacyReferringDocuments(asset._id);
|
|
35996
35993
|
let t2;
|
|
35997
35994
|
if ($[0] !== referringDocuments) {
|
|
35998
|
-
const drafts = referringDocuments.reduce(_temp$
|
|
35995
|
+
const drafts = referringDocuments.reduce(_temp$2z, []);
|
|
35999
35996
|
t2 = referringDocuments.filter((doc_0) => !drafts.includes(doc_0._id)), $[0] = referringDocuments, $[1] = t2;
|
|
36000
35997
|
} else
|
|
36001
35998
|
t2 = $[1];
|
|
@@ -36036,7 +36033,7 @@ function AssetDeleteDialog(t0) {
|
|
|
36036
36033
|
let t10;
|
|
36037
36034
|
return $[26] !== isLoading || $[27] !== onClose || $[28] !== t7 || $[29] !== t8 || $[30] !== t9 ? (t10 = /* @__PURE__ */ jsx(Dialog, { __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;
|
|
36038
36035
|
}
|
|
36039
|
-
function _temp$
|
|
36036
|
+
function _temp$2z(acc, doc) {
|
|
36040
36037
|
return doc._id.startsWith("drafts.") ? acc.concat(doc._id.slice(7)) : acc;
|
|
36041
36038
|
}
|
|
36042
36039
|
const MENU_POPOVER_PROPS$2 = {
|
|
@@ -36092,7 +36089,7 @@ function AssetUsageDialog(t0) {
|
|
|
36092
36089
|
} = useLegacyReferringDocuments(asset._id);
|
|
36093
36090
|
let t1;
|
|
36094
36091
|
if ($[0] !== referringDocuments) {
|
|
36095
|
-
const drafts = referringDocuments.reduce(_temp$
|
|
36092
|
+
const drafts = referringDocuments.reduce(_temp$2y, []);
|
|
36096
36093
|
t1 = referringDocuments.filter((doc_0) => !drafts.includes(doc_0._id)), $[0] = referringDocuments, $[1] = t1;
|
|
36097
36094
|
} else
|
|
36098
36095
|
t1 = $[1];
|
|
@@ -36108,7 +36105,7 @@ function AssetUsageDialog(t0) {
|
|
|
36108
36105
|
let t4;
|
|
36109
36106
|
return $[10] !== onClose || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Dialog, { __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;
|
|
36110
36107
|
}
|
|
36111
|
-
function _temp$
|
|
36108
|
+
function _temp$2y(acc, doc) {
|
|
36112
36109
|
return doc._id.startsWith("drafts.") ? acc.concat(doc._id.slice(7)) : acc;
|
|
36113
36110
|
}
|
|
36114
36111
|
const MIME_TYPES = {
|
|
@@ -36387,7 +36384,7 @@ const CardIconWrapper = styled.span`
|
|
|
36387
36384
|
const handleToggleUsageDialog = t9;
|
|
36388
36385
|
let t10;
|
|
36389
36386
|
$[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
|
|
36390
|
-
setIsOpen(_temp$
|
|
36387
|
+
setIsOpen(_temp$2x);
|
|
36391
36388
|
}, $[22] = t10) : t10 = $[22];
|
|
36392
36389
|
const handleToggleOpen = t10;
|
|
36393
36390
|
let t11;
|
|
@@ -36503,7 +36500,7 @@ const CardIconWrapper = styled.span`
|
|
|
36503
36500
|
t27
|
|
36504
36501
|
] }), $[100] = asset, $[101] = isSelected, $[102] = t26, $[103] = t27, $[104] = t28) : t28 = $[104], t28;
|
|
36505
36502
|
};
|
|
36506
|
-
function _temp$
|
|
36503
|
+
function _temp$2x(prev) {
|
|
36507
36504
|
return !prev;
|
|
36508
36505
|
}
|
|
36509
36506
|
const STYLES_FILENAME = {
|
|
@@ -36773,7 +36770,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
|
|
|
36773
36770
|
$[0] !== client ? (t0 = client.withConfig({
|
|
36774
36771
|
apiVersion: "2023-02-14"
|
|
36775
36772
|
}), $[0] = client, $[1] = t0) : t0 = $[1];
|
|
36776
|
-
const versionedClient2 = t0, [_elementId] = useState(_temp$
|
|
36773
|
+
const versionedClient2 = t0, [_elementId] = useState(_temp$2w), currentPageNumber = useRef(0), {
|
|
36777
36774
|
t
|
|
36778
36775
|
} = useTranslation(), fetch$ = useRef(void 0);
|
|
36779
36776
|
let t1;
|
|
@@ -36879,7 +36876,7 @@ const PER_PAGE = 200, ASSET_TYPE_IMAGE = "sanity.imageAsset", ASSET_TYPE_FILE =
|
|
|
36879
36876
|
let t21;
|
|
36880
36877
|
return $[61] !== _elementId || $[62] !== handleClose || $[63] !== hasResetAutoFocus || $[64] !== ref || $[65] !== t15 || $[66] !== t20 ? (t21 = /* @__PURE__ */ jsx(Dialog, { __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;
|
|
36881
36878
|
}, SelectAssetsDialog$1 = memo(forwardRef(SelectAssetsComponent));
|
|
36882
|
-
function _temp$
|
|
36879
|
+
function _temp$2w() {
|
|
36883
36880
|
return `default-asset-source-${uniqueId()}`;
|
|
36884
36881
|
}
|
|
36885
36882
|
function _temp2$12(type) {
|
|
@@ -37338,7 +37335,7 @@ function UploadPlaceholderComponent(props2) {
|
|
|
37338
37335
|
} = useTranslation(), client = useClient(DEFAULT_STUDIO_CLIENT_OPTIONS), source = useSource();
|
|
37339
37336
|
let result;
|
|
37340
37337
|
if ($[0] !== assetSources || $[1] !== client || $[2] !== source || $[3] !== type) {
|
|
37341
|
-
if (result = assetSources.filter(_temp$
|
|
37338
|
+
if (result = assetSources.filter(_temp$2v), result.length === 0) {
|
|
37342
37339
|
const options = {
|
|
37343
37340
|
client,
|
|
37344
37341
|
title: source.title || source.name
|
|
@@ -37390,7 +37387,7 @@ function UploadPlaceholderComponent(props2) {
|
|
|
37390
37387
|
] })
|
|
37391
37388
|
] }), $[26] = assetSourcesWithUpload.length, $[27] = browse, $[28] = collapsed, $[29] = directUploads, $[30] = hoveringFiles, $[31] = readOnly, $[32] = type, $[33] = uploadButton, $[34] = t3) : t3 = $[34], t3;
|
|
37392
37389
|
}
|
|
37393
|
-
function _temp$
|
|
37390
|
+
function _temp$2v(s) {
|
|
37394
37391
|
return !!s.Uploader;
|
|
37395
37392
|
}
|
|
37396
37393
|
const UploadPlaceholder = memo(UploadPlaceholderComponent), STALE_UPLOAD_MS = 12e4, RatioBox$2 = styled(Card)`
|
|
@@ -37788,7 +37785,7 @@ function FilePreview$1(props2) {
|
|
|
37788
37785
|
$[0] !== schemaType ? (t0 = get(schemaType, "options.accept", ""), $[0] = schemaType, $[1] = t0) : t0 = $[1];
|
|
37789
37786
|
const accept = t0;
|
|
37790
37787
|
let t1;
|
|
37791
|
-
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$
|
|
37788
|
+
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$2u), $[2] = assetSources, $[3] = t1) : t1 = $[3];
|
|
37792
37789
|
const assetSourcesWithUpload = t1;
|
|
37793
37790
|
let t2;
|
|
37794
37791
|
$[4] !== assetSources || $[5] !== setSelectedAssetSource ? (t2 = (event) => {
|
|
@@ -37873,7 +37870,7 @@ function FilePreview$1(props2) {
|
|
|
37873
37870
|
let t9;
|
|
37874
37871
|
return $[53] !== asset || $[54] !== observeAsset || $[55] !== t8 ? (t9 = /* @__PURE__ */ jsx(WithReferencedAsset, { reference: asset, observeAsset, waitPlaceholder: t7, children: t8 }), $[53] = asset, $[54] = observeAsset, $[55] = t8, $[56] = t9) : t9 = $[56], t9;
|
|
37875
37872
|
}
|
|
37876
|
-
function _temp$
|
|
37873
|
+
function _temp$2u(s) {
|
|
37877
37874
|
return !!s.Uploader;
|
|
37878
37875
|
}
|
|
37879
37876
|
function InvalidFileWarning(t0) {
|
|
@@ -38134,7 +38131,7 @@ function BaseFileInput(props2) {
|
|
|
38134
38131
|
break bb68;
|
|
38135
38132
|
}
|
|
38136
38133
|
case "error": {
|
|
38137
|
-
event.files.forEach(_temp$
|
|
38134
|
+
event.files.forEach(_temp$2t), push({
|
|
38138
38135
|
status: "error",
|
|
38139
38136
|
description: t("asset-sources.common.uploader.upload-failed.description"),
|
|
38140
38137
|
title: t("asset-sources.common.uploader.upload-failed.title")
|
|
@@ -38195,7 +38192,7 @@ function BaseFileInput(props2) {
|
|
|
38195
38192
|
function _temp2$11(file_0) {
|
|
38196
38193
|
return file_0.status === "error" && isAssetLimitError(file_0.error);
|
|
38197
38194
|
}
|
|
38198
|
-
function _temp$
|
|
38195
|
+
function _temp$2t(file_1) {
|
|
38199
38196
|
console.error(file_1.error);
|
|
38200
38197
|
}
|
|
38201
38198
|
function StudioFileInput(props2) {
|
|
@@ -38415,7 +38412,7 @@ function ImageInputAssetMenuWithReferenceAssetComponent(props2) {
|
|
|
38415
38412
|
$[0] !== documentId || $[1] !== observeAsset ? (t0 = observeAsset(documentId), $[0] = documentId, $[1] = observeAsset, $[2] = t0) : t0 = $[2];
|
|
38416
38413
|
const asset = useObservable(t0);
|
|
38417
38414
|
let t1;
|
|
38418
|
-
$[3] !== assetSources ? (t1 = assetSources.filter(_temp$
|
|
38415
|
+
$[3] !== assetSources ? (t1 = assetSources.filter(_temp$2s), $[3] = assetSources, $[4] = t1) : t1 = $[4];
|
|
38419
38416
|
const assetSourcesWithUpload = t1;
|
|
38420
38417
|
let t2;
|
|
38421
38418
|
$[5] !== onSelectFile ? (t2 = (assetSource, files) => {
|
|
@@ -38470,7 +38467,7 @@ function ImageInputAssetMenuWithReferenceAssetComponent(props2) {
|
|
|
38470
38467
|
let t6;
|
|
38471
38468
|
return $[39] !== handleOpenDialog || $[40] !== isMenuOpen || $[41] !== setHotspotButtonElement || $[42] !== setMenuButtonElement || $[43] !== setMenuOpen || $[44] !== t4 || $[45] !== t5 ? (t6 = /* @__PURE__ */ jsx(ImageActionsMenu, { isMenuOpen, onEdit: handleOpenDialog, onMenuOpen: setMenuOpen, setHotspotButtonElement, setMenuButtonElement, showEdit: t4, children: t5 }), $[39] = handleOpenDialog, $[40] = isMenuOpen, $[41] = setHotspotButtonElement, $[42] = setMenuButtonElement, $[43] = setMenuOpen, $[44] = t4, $[45] = t5, $[46] = t6) : t6 = $[46], t6;
|
|
38472
38469
|
}
|
|
38473
|
-
function _temp$
|
|
38470
|
+
function _temp$2s(s) {
|
|
38474
38471
|
return !!s.Uploader;
|
|
38475
38472
|
}
|
|
38476
38473
|
const ImageInputAssetMenuWithReferenceAsset = memo(ImageInputAssetMenuWithReferenceAssetComponent);
|
|
@@ -39646,7 +39643,7 @@ function ToolSVGComponent(props2) {
|
|
|
39646
39643
|
const svgElement = svgRef.current;
|
|
39647
39644
|
if (!svgElement)
|
|
39648
39645
|
return;
|
|
39649
|
-
const handleTouchMove = _temp$
|
|
39646
|
+
const handleTouchMove = _temp$2r;
|
|
39650
39647
|
return svgElement.addEventListener("touchmove", handleTouchMove, {
|
|
39651
39648
|
passive: !1
|
|
39652
39649
|
}), () => {
|
|
@@ -39897,7 +39894,7 @@ function ToolSVGComponent(props2) {
|
|
|
39897
39894
|
t83
|
|
39898
39895
|
] }) }), $[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;
|
|
39899
39896
|
}
|
|
39900
|
-
function _temp$
|
|
39897
|
+
function _temp$2r(e) {
|
|
39901
39898
|
e.preventDefault();
|
|
39902
39899
|
}
|
|
39903
39900
|
const ToolSVG = memo(ToolSVGComponent);
|
|
@@ -40044,7 +40041,7 @@ function ImageToolInput(props2) {
|
|
|
40044
40041
|
$[8] !== onChange || $[9] !== readOnly || $[10] !== schemaType.fields ? (t7 = (finalValue) => {
|
|
40045
40042
|
if (readOnly)
|
|
40046
40043
|
return;
|
|
40047
|
-
const cropField = schemaType.fields.find(_temp$
|
|
40044
|
+
const cropField = schemaType.fields.find(_temp$2q), hotspotField = schemaType.fields.find(_temp2$10), crop = cropField ? {
|
|
40048
40045
|
_type: cropField.type.name,
|
|
40049
40046
|
...finalValue.crop || DEFAULT_CROP
|
|
40050
40047
|
} : finalValue.crop, hotspot = hotspotField ? {
|
|
@@ -40127,7 +40124,7 @@ function _temp3$v(t0) {
|
|
|
40127
40124
|
function _temp2$10(field_0) {
|
|
40128
40125
|
return field_0.type.name !== "object" && field_0.name === "hotspot";
|
|
40129
40126
|
}
|
|
40130
|
-
function _temp$
|
|
40127
|
+
function _temp$2q(field) {
|
|
40131
40128
|
return field.name === "crop" && field.type.name !== "object";
|
|
40132
40129
|
}
|
|
40133
40130
|
function ImageInputHotspotInput(props2) {
|
|
@@ -40390,7 +40387,7 @@ function BaseImageInputComponent(props2) {
|
|
|
40390
40387
|
const handleClearField = t5;
|
|
40391
40388
|
let t6;
|
|
40392
40389
|
$[19] !== onChange || $[20] !== value || $[21] !== valueIsArrayElement ? (t6 = () => {
|
|
40393
|
-
const allKeys = Object.keys(value || {}), isEmpty2 = allKeys.filter(_temp$
|
|
40390
|
+
const allKeys = Object.keys(value || {}), isEmpty2 = allKeys.filter(_temp$2p).length === 0, removeKeys = ["asset", "media"].concat(allKeys.filter(_temp2$$)).map(_temp3$u);
|
|
40394
40391
|
onChange(isEmpty2 && !valueIsArrayElement() ? unset() : removeKeys);
|
|
40395
40392
|
}, $[19] = onChange, $[20] = value, $[21] = valueIsArrayElement, $[22] = t6) : t6 = $[22];
|
|
40396
40393
|
const handleRemoveButtonClick = t6;
|
|
@@ -40550,7 +40547,7 @@ function _temp3$u(key_1) {
|
|
|
40550
40547
|
function _temp2$$(key_0) {
|
|
40551
40548
|
return ["crop", "hotspot", "_upload"].includes(key_0);
|
|
40552
40549
|
}
|
|
40553
|
-
function _temp$
|
|
40550
|
+
function _temp$2p(key) {
|
|
40554
40551
|
return !["_type", "_key", "_upload", "asset", "crop", "hotspot", "media"].includes(key);
|
|
40555
40552
|
}
|
|
40556
40553
|
const BaseImageInput = memo(BaseImageInputComponent);
|
|
@@ -40835,7 +40832,7 @@ function TagsArrayInput(props2) {
|
|
|
40835
40832
|
$[0] !== t0 ? (t1 = t0 === void 0 ? [] : t0, $[0] = t0, $[1] = t1) : t1 = $[1];
|
|
40836
40833
|
const value = t1;
|
|
40837
40834
|
let t2;
|
|
40838
|
-
$[2] !== value ? (t2 = value?.map(_temp$
|
|
40835
|
+
$[2] !== value ? (t2 = value?.map(_temp$2o), $[2] = value, $[3] = t2) : t2 = $[3];
|
|
40839
40836
|
const tagInputValue = t2;
|
|
40840
40837
|
let t3;
|
|
40841
40838
|
$[4] !== onChange ? (t3 = (nextValue) => {
|
|
@@ -40850,7 +40847,7 @@ function TagsArrayInput(props2) {
|
|
|
40850
40847
|
function _temp2$_(v_0) {
|
|
40851
40848
|
return v_0.value;
|
|
40852
40849
|
}
|
|
40853
|
-
function _temp$
|
|
40850
|
+
function _temp$2o(v) {
|
|
40854
40851
|
return {
|
|
40855
40852
|
value: v
|
|
40856
40853
|
};
|
|
@@ -40927,11 +40924,11 @@ function SelectInput(props2) {
|
|
|
40927
40924
|
}
|
|
40928
40925
|
handleChange(nextItem_0);
|
|
40929
40926
|
}, $[12] = handleChange, $[13] = itemFromOptionValue, $[14] = t6) : t6 = $[14];
|
|
40930
|
-
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$
|
|
40927
|
+
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;
|
|
40931
40928
|
let t8;
|
|
40932
40929
|
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;
|
|
40933
40930
|
}
|
|
40934
|
-
function _temp$
|
|
40931
|
+
function _temp$2n(item_1, i) {
|
|
40935
40932
|
return /* @__PURE__ */ jsx("option", { value: i - 1, children: item_1.title }, `${i - 1}`);
|
|
40936
40933
|
}
|
|
40937
40934
|
const RadioSelect = forwardRef(function(props2, ref) {
|
|
@@ -41083,7 +41080,7 @@ function PreviewItem(props2) {
|
|
|
41083
41080
|
const presence = t7, childValidation = useChildValidation(path, !0);
|
|
41084
41081
|
let t8;
|
|
41085
41082
|
$[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];
|
|
41086
|
-
const validation2 = t8, hasErrors = childValidation.some(_temp$
|
|
41083
|
+
const validation2 = t8, hasErrors = childValidation.some(_temp$2m), hasWarnings = childValidation.some(_temp2$Z), [contextMenuButtonElement, setContextMenuButtonElement] = useState(null), t9 = parentSchemaType.options?.insertMenu;
|
|
41087
41084
|
let t10;
|
|
41088
41085
|
$[16] !== contextMenuButtonElement || $[17] !== handleInsert || $[18] !== insertableTypes || $[19] !== t9 ? (t10 = {
|
|
41089
41086
|
schemaTypes: insertableTypes,
|
|
@@ -41164,7 +41161,7 @@ function PreviewItem(props2) {
|
|
|
41164
41161
|
function _temp2$Z(v_0) {
|
|
41165
41162
|
return v_0.level === "warning";
|
|
41166
41163
|
}
|
|
41167
|
-
function _temp$
|
|
41164
|
+
function _temp$2m(v) {
|
|
41168
41165
|
return v.level === "error";
|
|
41169
41166
|
}
|
|
41170
41167
|
function ReferenceItemRefProvider(props2) {
|
|
@@ -41236,7 +41233,7 @@ function ReferenceItem(props2) {
|
|
|
41236
41233
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (hadFocus, hasFocus) => {
|
|
41237
41234
|
!hadFocus && hasFocus && elementRef.current && elementRef.current?.focus();
|
|
41238
41235
|
}, $[4] = t2) : t2 = $[4], useDidUpdate(focused, t2);
|
|
41239
|
-
const hasErrors = props2.validation.some(_temp$
|
|
41236
|
+
const hasErrors = props2.validation.some(_temp$2l), hasWarnings = props2.validation.some(_temp2$Y), resolvingInitialValue = value._resolvingInitialValue;
|
|
41240
41237
|
let t3;
|
|
41241
41238
|
$[5] !== onInsert || $[6] !== value ? (t3 = () => {
|
|
41242
41239
|
onInsert({
|
|
@@ -41373,7 +41370,7 @@ function ReferenceItem(props2) {
|
|
|
41373
41370
|
function _temp2$Y(v_0) {
|
|
41374
41371
|
return v_0.level === "warning";
|
|
41375
41372
|
}
|
|
41376
|
-
function _temp$
|
|
41373
|
+
function _temp$2l(v) {
|
|
41377
41374
|
return v.level === "error";
|
|
41378
41375
|
}
|
|
41379
41376
|
function defaultResolveItemComponent(schemaType) {
|
|
@@ -42424,14 +42421,14 @@ function useVisibility(props2) {
|
|
|
42424
42421
|
if (!element || disabled)
|
|
42425
42422
|
return;
|
|
42426
42423
|
element && "checkVisibility" in element && setVisible(element.checkVisibility());
|
|
42427
|
-
const isDocumentVisible$ = concat(of(!document.hidden), visibilityChange$.pipe(map(_temp$
|
|
42424
|
+
const isDocumentVisible$ = concat(of(!document.hidden), visibilityChange$.pipe(map(_temp$2k))).pipe(distinctUntilChanged()), inViewport$ = intersectionObservableFor(element).pipe(map(_temp2$X)), sub2 = isDocumentVisible$.pipe(switchMap((isDocumentVisible) => isDocumentVisible ? inViewport$ : of(!1)), switchMap((isVisible2) => isVisible2 ? of(!0) : of(!1).pipe(delay(hideDelay))), distinctUntilChanged()).subscribe(setVisible);
|
|
42428
42425
|
return () => sub2.unsubscribe();
|
|
42429
42426
|
}, t2 = [element, hideDelay, disabled], $[0] = disabled, $[1] = element, $[2] = hideDelay, $[3] = t1, $[4] = t2) : (t1 = $[3], t2 = $[4]), useLayoutEffect(t1, t2), disabled ? !1 : visible;
|
|
42430
42427
|
}
|
|
42431
42428
|
function _temp2$X(event_0) {
|
|
42432
42429
|
return event_0.isIntersecting;
|
|
42433
42430
|
}
|
|
42434
|
-
function _temp$
|
|
42431
|
+
function _temp$2k(event) {
|
|
42435
42432
|
return event.target instanceof Document ? !event?.target?.hidden : !1;
|
|
42436
42433
|
}
|
|
42437
42434
|
const _HIDE_DELAY = 2e3;
|
|
@@ -42585,7 +42582,7 @@ function FormBuilderProvider(props2) {
|
|
|
42585
42582
|
assetSources: file.assetSources,
|
|
42586
42583
|
directUploads: t6
|
|
42587
42584
|
}, $[5] = file.assetSources, $[6] = t6, $[7] = t7) : t7 = $[7];
|
|
42588
|
-
const t8 = filterField || _temp$
|
|
42585
|
+
const t8 = filterField || _temp$2j, t9 = image?.directUploads !== !1;
|
|
42589
42586
|
let t10;
|
|
42590
42587
|
$[8] !== image.assetSources || $[9] !== t9 ? (t10 = {
|
|
42591
42588
|
assetSources: image.assetSources,
|
|
@@ -42637,7 +42634,7 @@ function FormBuilderProvider(props2) {
|
|
|
42637
42634
|
let t18;
|
|
42638
42635
|
return $[58] !== formBuilder || $[59] !== t17 ? (t18 = /* @__PURE__ */ jsx(FormBuilderContext.Provider, { value: formBuilder, children: t17 }), $[58] = formBuilder, $[59] = t17, $[60] = t18) : t18 = $[60], t18;
|
|
42639
42636
|
}
|
|
42640
|
-
function _temp$
|
|
42637
|
+
function _temp$2j() {
|
|
42641
42638
|
return !0;
|
|
42642
42639
|
}
|
|
42643
42640
|
function FormProvider(props2) {
|
|
@@ -42792,7 +42789,7 @@ function FormBuilder(props2) {
|
|
|
42792
42789
|
}, $[40] = handleBlur, $[41] = handleFocus, $[42] = id2, $[43] = t19) : t19 = $[43];
|
|
42793
42790
|
const t20 = diffProps.__unstable_computeDiff;
|
|
42794
42791
|
let t21;
|
|
42795
|
-
$[44] !== members ? (t21 = members.some(_temp$
|
|
42792
|
+
$[44] !== members ? (t21 = members.some(_temp$2i), $[44] = members, $[45] = t21) : t21 = $[45];
|
|
42796
42793
|
let t22;
|
|
42797
42794
|
$[46] !== compareValue || $[47] !== diffProps.__unstable_computeDiff || $[48] !== diffProps.hasUpstreamVersion || $[49] !== focusPath || $[50] !== focused || $[51] !== groups || $[52] !== handleChange || $[53] !== handleCloseField || $[54] !== handleCollapseField || $[55] !== handleCollapseFieldSet || $[56] !== handleExpandField || $[57] !== handleExpandFieldSet || $[58] !== handleOpenField || $[59] !== handleSelectFieldGroup || $[60] !== id2 || $[61] !== members || $[62] !== onPathFocus || $[63] !== readOnly || $[64] !== renderAnnotation || $[65] !== renderBlock2 || $[66] !== renderField || $[67] !== renderInlineBlock || $[68] !== renderInput || $[69] !== renderItem2 || $[70] !== renderPreview || $[71] !== schemaType || $[72] !== t19 || $[73] !== t21 || $[74] !== value ? (t22 = {
|
|
42798
42795
|
focusPath,
|
|
@@ -42844,7 +42841,7 @@ function FormBuilder(props2) {
|
|
|
42844
42841
|
let t29;
|
|
42845
42842
|
return $[93] !== autoFocus || $[94] !== changesOpen || $[95] !== collapsedFieldSets || $[96] !== collapsedPaths || $[97] !== fieldActions || $[98] !== focusPath || $[99] !== focused || $[100] !== groups || $[101] !== id2 || $[102] !== onChange || $[103] !== onFieldGroupSelect || $[104] !== onPathBlur || $[105] !== onPathFocus || $[106] !== onPathOpen || $[107] !== onSetFieldSetCollapsed || $[108] !== onSetPathCollapsed || $[109] !== patchChannel || $[110] !== presence || $[111] !== readOnly || $[112] !== schemaType || $[113] !== t28 || $[114] !== validation2 ? (t29 = /* @__PURE__ */ jsx(FormProvider, { __internal_fieldActions: fieldActions, __internal_patchChannel: patchChannel, autoFocus, changesOpen, collapsedFieldSets, collapsedPaths, focusPath, focused, groups, id: id2, onChange, onPathBlur, onPathFocus, onPathOpen, onFieldGroupSelect, onSetPathCollapsed, onSetFieldSetCollapsed, presence, validation: validation2, readOnly, schemaType, children: t28 }), $[93] = autoFocus, $[94] = changesOpen, $[95] = collapsedFieldSets, $[96] = collapsedPaths, $[97] = fieldActions, $[98] = focusPath, $[99] = focused, $[100] = groups, $[101] = id2, $[102] = onChange, $[103] = onFieldGroupSelect, $[104] = onPathBlur, $[105] = onPathFocus, $[106] = onPathOpen, $[107] = onSetFieldSetCollapsed, $[108] = onSetPathCollapsed, $[109] = patchChannel, $[110] = presence, $[111] = readOnly, $[112] = schemaType, $[113] = t28, $[114] = validation2, $[115] = t29) : t29 = $[115], t29;
|
|
42846
42843
|
}
|
|
42847
|
-
function _temp$
|
|
42844
|
+
function _temp$2i(m) {
|
|
42848
42845
|
return m.kind === "field" && m.field.changed;
|
|
42849
42846
|
}
|
|
42850
42847
|
function RootInput(props2) {
|
|
@@ -43279,7 +43276,7 @@ const DefaultBlockObjectComponent = (props2) => {
|
|
|
43279
43276
|
validation: validation2
|
|
43280
43277
|
} = props2, {
|
|
43281
43278
|
t
|
|
43282
|
-
} = useTranslation(), isImagePreview = isImage(value), hasError = validation2.filter(_temp$
|
|
43279
|
+
} = useTranslation(), isImagePreview = isImage(value), hasError = validation2.filter(_temp$2h).length > 0, hasWarning = validation2.filter(_temp2$W).length > 0, hasMarkers = markers.length > 0, tone = selected || focused ? "primary" : "default", uploadState = value[UPLOAD_STATUS_KEY], uploadProgress = typeof uploadState?.progress == "number" ? uploadState?.progress : void 0;
|
|
43283
43280
|
let t0;
|
|
43284
43281
|
$[0] !== onOpen ? (t0 = (e) => {
|
|
43285
43282
|
e.preventDefault(), e.stopPropagation(), onOpen();
|
|
@@ -43310,7 +43307,7 @@ const DefaultBlockObjectComponent = (props2) => {
|
|
|
43310
43307
|
t14
|
|
43311
43308
|
] }), $[40] = t13, $[41] = t14, $[42] = t15) : t15 = $[42], t15;
|
|
43312
43309
|
};
|
|
43313
|
-
function _temp$
|
|
43310
|
+
function _temp$2h(v) {
|
|
43314
43311
|
return v.level === "error";
|
|
43315
43312
|
}
|
|
43316
43313
|
function _temp2$W(v_0) {
|
|
@@ -44250,9 +44247,9 @@ const INITIAL_STATE$6 = {
|
|
|
44250
44247
|
function useObserveDocument(documentId, apiConfig) {
|
|
44251
44248
|
const $ = c(4), documentPreviewStore = useDocumentPreviewStore();
|
|
44252
44249
|
let t0;
|
|
44253
|
-
return $[0] !== apiConfig || $[1] !== documentId || $[2] !== documentPreviewStore ? (t0 = documentPreviewStore.unstable_observeDocument(documentId, apiConfig).pipe(map(_temp$
|
|
44250
|
+
return $[0] !== apiConfig || $[1] !== documentId || $[2] !== documentPreviewStore ? (t0 = documentPreviewStore.unstable_observeDocument(documentId, apiConfig).pipe(map(_temp$2g)), $[0] = apiConfig, $[1] = documentId, $[2] = documentPreviewStore, $[3] = t0) : t0 = $[3], useObservable(t0, INITIAL_STATE$6);
|
|
44254
44251
|
}
|
|
44255
|
-
function _temp$
|
|
44252
|
+
function _temp$2g(document2) {
|
|
44256
44253
|
return {
|
|
44257
44254
|
loading: !1,
|
|
44258
44255
|
document: document2
|
|
@@ -44296,14 +44293,14 @@ function getPreviewValueWithFallback({
|
|
|
44296
44293
|
function useReleasesIds(releases2) {
|
|
44297
44294
|
const $ = c(4);
|
|
44298
44295
|
let t0;
|
|
44299
|
-
$[0] !== releases2 ? (t0 = releases2.map(_temp$
|
|
44296
|
+
$[0] !== releases2 ? (t0 = releases2.map(_temp$2f), $[0] = releases2, $[1] = t0) : t0 = $[1];
|
|
44300
44297
|
const releasesIds = t0;
|
|
44301
44298
|
let t1;
|
|
44302
44299
|
return $[2] !== releasesIds ? (t1 = {
|
|
44303
44300
|
releasesIds
|
|
44304
44301
|
}, $[2] = releasesIds, $[3] = t1) : t1 = $[3], t1;
|
|
44305
44302
|
}
|
|
44306
|
-
function _temp$
|
|
44303
|
+
function _temp$2f(release) {
|
|
44307
44304
|
return getReleaseIdFromReleaseDocumentId(release._id);
|
|
44308
44305
|
}
|
|
44309
44306
|
function exists(value) {
|
|
@@ -44323,7 +44320,7 @@ function useDocumentVersionInfo(documentId) {
|
|
|
44323
44320
|
if ($[7] !== documentPreviewStore || $[8] !== draftId || $[9] !== publishedId || $[10] !== releaseIds) {
|
|
44324
44321
|
const releaseVersions = releaseIds.length > 0 ? combineLatest(Object.fromEntries(releaseIds.map((releaseId) => [releaseId, documentPreviewStore.observePaths({
|
|
44325
44322
|
_id: getVersionId(publishedId, releaseId)
|
|
44326
|
-
}, DOCUMENT_STUB_PATHS).pipe(map(_temp$
|
|
44323
|
+
}, DOCUMENT_STUB_PATHS).pipe(map(_temp$2e))]))) : of(NO_VERSIONS);
|
|
44327
44324
|
t3 = combineLatest({
|
|
44328
44325
|
isLoading: of(!1),
|
|
44329
44326
|
draft: documentPreviewStore.observePaths({
|
|
@@ -44351,7 +44348,7 @@ function _temp3$t(value_1) {
|
|
|
44351
44348
|
function _temp2$V(value_0) {
|
|
44352
44349
|
return exists(value_0) ? value_0 : void 0;
|
|
44353
44350
|
}
|
|
44354
|
-
function _temp$
|
|
44351
|
+
function _temp$2e(value) {
|
|
44355
44352
|
return exists(value) ? value : void 0;
|
|
44356
44353
|
}
|
|
44357
44354
|
function useCopyToDrafts(options) {
|
|
@@ -44488,7 +44485,7 @@ const orderedReleaseTypes$1 = ["asap", "scheduled", "undecided"], useDocumentVer
|
|
|
44488
44485
|
_id
|
|
44489
44486
|
} = t4;
|
|
44490
44487
|
return documentVersions.some((id2) => getVersionFromId(id2) === getReleaseIdFromReleaseDocumentId(_id));
|
|
44491
|
-
}, $[5] = documentVersions, $[6] = t32) : t32 = $[6], t2 = releases2.filter(t32).sort(_temp$
|
|
44488
|
+
}, $[5] = documentVersions, $[6] = t32) : t32 = $[6], t2 = releases2.filter(t32).sort(_temp$2d), $[2] = documentVersions, $[3] = releases2, $[4] = t2;
|
|
44492
44489
|
} else
|
|
44493
44490
|
t2 = $[4];
|
|
44494
44491
|
const sortedDocumentList = t2;
|
|
@@ -44497,7 +44494,7 @@ const orderedReleaseTypes$1 = ["asap", "scheduled", "undecided"], useDocumentVer
|
|
|
44497
44494
|
sortedDocumentList
|
|
44498
44495
|
}, $[7] = sortedDocumentList, $[8] = t3) : t3 = $[8], t3;
|
|
44499
44496
|
};
|
|
44500
|
-
function _temp$
|
|
44497
|
+
function _temp$2d(releasesList, compareReleasesList) {
|
|
44501
44498
|
if (releasesList.metadata.releaseType === "scheduled" && compareReleasesList.metadata.releaseType === "scheduled") {
|
|
44502
44499
|
const aPublishAt = releasesList.publishAt || releasesList.metadata.intendedPublishAt;
|
|
44503
44500
|
if (!aPublishAt)
|
|
@@ -44525,9 +44522,9 @@ const useIsReleaseActive = () => {
|
|
|
44525
44522
|
data: documentVersions
|
|
44526
44523
|
} = useDocumentVersions(t1);
|
|
44527
44524
|
let t2;
|
|
44528
|
-
return $[2] !== documentVersions ? (t2 = documentVersions && documentVersions.length > 0 && !documentVersions.some(_temp$
|
|
44525
|
+
return $[2] !== documentVersions ? (t2 = documentVersions && documentVersions.length > 0 && !documentVersions.some(_temp$2c), $[2] = documentVersions, $[3] = t2) : t2 = $[3], t2;
|
|
44529
44526
|
};
|
|
44530
|
-
function _temp$
|
|
44527
|
+
function _temp$2c(version2) {
|
|
44531
44528
|
return !isVersionId(version2);
|
|
44532
44529
|
}
|
|
44533
44530
|
function useGetDefaultPerspective() {
|
|
@@ -44826,7 +44823,7 @@ const Z_OFFSET$1 = {
|
|
|
44826
44823
|
type: "contentReleases"
|
|
44827
44824
|
}, RELEASE_FORM_STORAGE_KEY = "studio.release-form.recovery";
|
|
44828
44825
|
function useReleaseFormStorage() {
|
|
44829
|
-
const $ = c(1), getStoredReleaseData = _temp$
|
|
44826
|
+
const $ = c(1), getStoredReleaseData = _temp$2b, saveReleaseDataToStorage = _temp2$U, clearReleaseDataFromStorage = _temp3$s;
|
|
44830
44827
|
let t0;
|
|
44831
44828
|
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
44832
44829
|
getStoredReleaseData,
|
|
@@ -44840,7 +44837,7 @@ function _temp3$s() {
|
|
|
44840
44837
|
function _temp2$U(data) {
|
|
44841
44838
|
localStorage.setItem(RELEASE_FORM_STORAGE_KEY, JSON.stringify(data));
|
|
44842
44839
|
}
|
|
44843
|
-
function _temp$
|
|
44840
|
+
function _temp$2b() {
|
|
44844
44841
|
const stored = localStorage.getItem(RELEASE_FORM_STORAGE_KEY);
|
|
44845
44842
|
return stored ? JSON.parse(stored) : void 0;
|
|
44846
44843
|
}
|
|
@@ -45061,7 +45058,7 @@ function TitleDescriptionForm(t0) {
|
|
|
45061
45058
|
$[2] !== release ? (t2 = {
|
|
45062
45059
|
externalValue: release,
|
|
45063
45060
|
id: release._id,
|
|
45064
|
-
extractData: _temp$
|
|
45061
|
+
extractData: _temp$2a
|
|
45065
45062
|
}, $[2] = release, $[3] = t2) : t2 = $[3];
|
|
45066
45063
|
const {
|
|
45067
45064
|
localData,
|
|
@@ -45123,7 +45120,7 @@ function TitleDescriptionForm(t0) {
|
|
|
45123
45120
|
t12
|
|
45124
45121
|
] }), $[38] = t11, $[39] = t12, $[40] = t13) : t13 = $[40], t13;
|
|
45125
45122
|
}
|
|
45126
|
-
function _temp$
|
|
45123
|
+
function _temp$2a(t0) {
|
|
45127
45124
|
const {
|
|
45128
45125
|
metadata
|
|
45129
45126
|
} = t0;
|
|
@@ -45402,7 +45399,7 @@ function InsufficientPermissionsMessage(t0) {
|
|
|
45402
45399
|
}, $[0] = t1) : t1 = $[0];
|
|
45403
45400
|
const list = useListFormat(t1), roles = currentUser?.roles || EMPTY_ARRAY$i;
|
|
45404
45401
|
let t2;
|
|
45405
|
-
$[1] !== list || $[2] !== roles ? (t2 = () => /* @__PURE__ */ jsx(Fragment$1, { children: list.formatToParts(roles.map(_temp$
|
|
45402
|
+
$[1] !== list || $[2] !== roles ? (t2 = () => /* @__PURE__ */ jsx(Fragment$1, { children: list.formatToParts(roles.map(_temp$29)).map(_temp2$T) }), $[1] = list, $[2] = roles, $[3] = t2) : t2 = $[3];
|
|
45406
45403
|
const Roles = t2;
|
|
45407
45404
|
let t3;
|
|
45408
45405
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text$1, { size: 0, children: /* @__PURE__ */ jsx(AccessDeniedIcon, {}) }), $[4] = t3) : t3 = $[4];
|
|
@@ -45431,7 +45428,7 @@ function InsufficientPermissionsMessage(t0) {
|
|
|
45431
45428
|
function _temp2$T(i, index) {
|
|
45432
45429
|
return i.type === "element" ? /* @__PURE__ */ jsx("code", { children: i.value }, `${i.value}-${index}`) : /* @__PURE__ */ jsx(Fragment, { children: i.value }, `${i.value}-${index}`);
|
|
45433
45430
|
}
|
|
45434
|
-
function _temp$
|
|
45431
|
+
function _temp$29(role) {
|
|
45435
45432
|
return role.title || startCase(role.name);
|
|
45436
45433
|
}
|
|
45437
45434
|
const useDiscardVersionAction = (props2) => {
|
|
@@ -45521,7 +45518,7 @@ function useArchivedReleases() {
|
|
|
45521
45518
|
loading
|
|
45522
45519
|
} = useAllReleases();
|
|
45523
45520
|
let t0;
|
|
45524
|
-
$[0] !== releases2 ? (t0 = Array.from(releases2.values()).filter(_temp$
|
|
45521
|
+
$[0] !== releases2 ? (t0 = Array.from(releases2.values()).filter(_temp$28), $[0] = releases2, $[1] = t0) : t0 = $[1];
|
|
45525
45522
|
const archivedReleases = t0;
|
|
45526
45523
|
let t1;
|
|
45527
45524
|
return $[2] !== archivedReleases || $[3] !== error || $[4] !== loading ? (t1 = {
|
|
@@ -45530,7 +45527,7 @@ function useArchivedReleases() {
|
|
|
45530
45527
|
loading
|
|
45531
45528
|
}, $[2] = archivedReleases, $[3] = error, $[4] = loading, $[5] = t1) : t1 = $[5], t1;
|
|
45532
45529
|
}
|
|
45533
|
-
function _temp$
|
|
45530
|
+
function _temp$28(release) {
|
|
45534
45531
|
return ARCHIVED_RELEASE_STATES.includes(release.state);
|
|
45535
45532
|
}
|
|
45536
45533
|
function UnpublishVersionDialog(props2) {
|
|
@@ -45702,7 +45699,7 @@ const useUnpublishVersionAction = (props2) => {
|
|
|
45702
45699
|
setDialogOpen(!0);
|
|
45703
45700
|
}, $[6] = coreT, $[7] = isAlreadyUnpublished, $[8] = revertUnpublishVersion, $[9] = toast, $[10] = version2, $[11] = t2) : t2 = $[11];
|
|
45704
45701
|
const handleOnClick = t2;
|
|
45705
|
-
if (!version2)
|
|
45702
|
+
if (!release || !version2)
|
|
45706
45703
|
return null;
|
|
45707
45704
|
if (!isPermissionsLoading && !permissions?.granted) {
|
|
45708
45705
|
let t32;
|
|
@@ -45760,7 +45757,7 @@ const RELEASES_NAME = "sanity/releases", RELEASES_INTENT = "release", releases =
|
|
|
45760
45757
|
getMetadataStateForSlugs$
|
|
45761
45758
|
} = useReleasesStore(), [releasesMetadata, setReleasesMetadata] = useState(null);
|
|
45762
45759
|
let t2;
|
|
45763
|
-
$[1] !== getMetadataStateForSlugs$ || $[2] !== listenerReleaseIds ? (t2 = getMetadataStateForSlugs$(listenerReleaseIds.map(_temp$
|
|
45760
|
+
$[1] !== getMetadataStateForSlugs$ || $[2] !== listenerReleaseIds ? (t2 = getMetadataStateForSlugs$(listenerReleaseIds.map(_temp$27)), $[1] = getMetadataStateForSlugs$, $[2] = listenerReleaseIds, $[3] = t2) : t2 = $[3];
|
|
45764
45761
|
const observedResult = useObservable(t2) || DEFAULT_METADATA_STATE;
|
|
45765
45762
|
let t3, t4;
|
|
45766
45763
|
$[4] !== observedResult.data ? (t3 = () => setReleasesMetadata((prevReleaseMetadata) => observedResult.data ? {
|
|
@@ -45826,7 +45823,7 @@ const RELEASES_NAME = "sanity/releases", RELEASES_INTENT = "release", releases =
|
|
|
45826
45823
|
removeReleaseIdsFromListener: _temp4$b
|
|
45827
45824
|
}, $[0] = contextValue, $[1] = t0) : t0 = $[1], t0;
|
|
45828
45825
|
};
|
|
45829
|
-
function _temp$
|
|
45826
|
+
function _temp$27(slug) {
|
|
45830
45827
|
return slug;
|
|
45831
45828
|
}
|
|
45832
45829
|
function _temp2$S(releaseId) {
|
|
@@ -45985,7 +45982,7 @@ function ReleasesUpsellProvider(props2) {
|
|
|
45985
45982
|
t
|
|
45986
45983
|
} = useTranslation();
|
|
45987
45984
|
let t1;
|
|
45988
|
-
$[1] !== allActiveReleases ? (t1 = allActiveReleases.filter(_temp$
|
|
45985
|
+
$[1] !== allActiveReleases ? (t1 = allActiveReleases.filter(_temp$26), $[1] = allActiveReleases, $[2] = t1) : t1 = $[2];
|
|
45989
45986
|
const meteredActiveReleases = t1;
|
|
45990
45987
|
let t2;
|
|
45991
45988
|
bb0: {
|
|
@@ -46104,7 +46101,7 @@ function ReleasesUpsellProvider(props2) {
|
|
|
46104
46101
|
t12
|
|
46105
46102
|
] }), $[43] = ctxValue, $[44] = props2.children, $[45] = t12, $[46] = t13) : t13 = $[46], t13;
|
|
46106
46103
|
}
|
|
46107
|
-
function _temp$
|
|
46104
|
+
function _temp$26(release) {
|
|
46108
46105
|
return !isCardinalityOneRelease(release);
|
|
46109
46106
|
}
|
|
46110
46107
|
function ReleasesStudioLayout(props2) {
|
|
@@ -46906,7 +46903,7 @@ function useProjectSubscriptions() {
|
|
|
46906
46903
|
}), $[2] = t1) : t1 = $[2], t0 = t1;
|
|
46907
46904
|
break bb0;
|
|
46908
46905
|
}
|
|
46909
|
-
t0 = projectSubscriptions$.pipe(map(_temp$
|
|
46906
|
+
t0 = projectSubscriptions$.pipe(map(_temp$25), startWith(INITIAL_LOADING_STATE), catchError(_temp2$R));
|
|
46910
46907
|
}
|
|
46911
46908
|
$[0] = projectId, $[1] = t0;
|
|
46912
46909
|
} else
|
|
@@ -46920,7 +46917,7 @@ function _temp2$R(error) {
|
|
|
46920
46917
|
error
|
|
46921
46918
|
});
|
|
46922
46919
|
}
|
|
46923
|
-
function _temp$
|
|
46920
|
+
function _temp$25(cachedSubscriptions) {
|
|
46924
46921
|
return {
|
|
46925
46922
|
isLoading: !1,
|
|
46926
46923
|
projectSubscriptions: cachedSubscriptions,
|
|
@@ -46965,7 +46962,7 @@ function ArchivedReleaseBanner(t0) {
|
|
|
46965
46962
|
retentionDays,
|
|
46966
46963
|
removalDate: removalDate || ""
|
|
46967
46964
|
}, components: {
|
|
46968
|
-
Link: _temp$
|
|
46965
|
+
Link: _temp$24
|
|
46969
46966
|
} }) }), $[10] = removalDate, $[11] = retentionDays, $[12] = tRelease, $[13] = t5) : t5 = $[13];
|
|
46970
46967
|
let t6;
|
|
46971
46968
|
return $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Card, { padding: 4, radius: 4, tone: "primary", "data-testid": "retention-policy-card", children: /* @__PURE__ */ jsxs(Flex, { gap: 3, children: [
|
|
@@ -46976,7 +46973,7 @@ function ArchivedReleaseBanner(t0) {
|
|
|
46976
46973
|
] })
|
|
46977
46974
|
] }) }), $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
|
|
46978
46975
|
}
|
|
46979
|
-
function _temp$
|
|
46976
|
+
function _temp$24(t0) {
|
|
46980
46977
|
const {
|
|
46981
46978
|
children
|
|
46982
46979
|
} = t0;
|
|
@@ -47259,7 +47256,7 @@ function ProgressIcon(props2) {
|
|
|
47259
47256
|
let t0;
|
|
47260
47257
|
if ($[3] !== progress) {
|
|
47261
47258
|
const circlePath = partialCircle(12.5, 12.5, 4.5, degreesToRadians(-90), degreesToRadians(progress * 360 - 90));
|
|
47262
|
-
t0 = circlePath.length > 0 ? `${circlePath.map(_temp$
|
|
47259
|
+
t0 = circlePath.length > 0 ? `${circlePath.map(_temp$23).join(" ")} L 12.5 12.5 Z` : void 0, $[3] = progress, $[4] = t0;
|
|
47263
47260
|
} else
|
|
47264
47261
|
t0 = $[4];
|
|
47265
47262
|
const d = t0;
|
|
@@ -47273,7 +47270,7 @@ function ProgressIcon(props2) {
|
|
|
47273
47270
|
t2
|
|
47274
47271
|
] }), $[8] = rest, $[9] = t1, $[10] = t3) : t3 = $[10], t3;
|
|
47275
47272
|
}
|
|
47276
|
-
function _temp$
|
|
47273
|
+
function _temp$23(vs) {
|
|
47277
47274
|
return vs.join(" ");
|
|
47278
47275
|
}
|
|
47279
47276
|
function partialCircle(cx, cy, r, start, end) {
|
|
@@ -47463,7 +47460,7 @@ const ReleasePublishAllButton = (t0) => {
|
|
|
47463
47460
|
enabled: isDraftModelEnabled
|
|
47464
47461
|
} = t2, [publishBundleStatus, setPublishBundleStatus] = useState("idle"), [publishPermission, setPublishPermission] = useState(!1);
|
|
47465
47462
|
let t3;
|
|
47466
|
-
$[0] !== documents ? (t3 = documents.some(_temp$
|
|
47463
|
+
$[0] !== documents ? (t3 = documents.some(_temp$22), $[0] = documents, $[1] = t3) : t3 = $[1];
|
|
47467
47464
|
const isValidatingDocuments = t3;
|
|
47468
47465
|
let t4;
|
|
47469
47466
|
$[2] !== documents ? (t4 = documents.some(_temp2$Q), $[2] = documents, $[3] = t4) : t4 = $[3];
|
|
@@ -47589,7 +47586,7 @@ const ReleasePublishAllButton = (t0) => {
|
|
|
47589
47586
|
confirmPublishDialog
|
|
47590
47587
|
] }), $[82] = confirmPublishDialog, $[83] = t17, $[84] = t18) : t18 = $[84], t18;
|
|
47591
47588
|
};
|
|
47592
|
-
function _temp$
|
|
47589
|
+
function _temp$22(t0) {
|
|
47593
47590
|
const {
|
|
47594
47591
|
validation: validation2
|
|
47595
47592
|
} = t0;
|
|
@@ -47645,7 +47642,7 @@ const useIsReleasesPlus = () => {
|
|
|
47645
47642
|
}
|
|
47646
47643
|
let t42;
|
|
47647
47644
|
if ($[5] !== client || $[6] !== dataset || $[7] !== observableClient || $[8] !== releaseDocuments || $[9] !== transactionId) {
|
|
47648
|
-
const publishedDocuments = releaseDocuments.map(_temp$
|
|
47645
|
+
const publishedDocuments = releaseDocuments.map(_temp$21);
|
|
47649
47646
|
t42 = from(getTransactionsLogs(client, publishedDocuments.map(_temp2$P), {
|
|
47650
47647
|
toTransaction: transactionId,
|
|
47651
47648
|
reverse: !0
|
|
@@ -47693,7 +47690,7 @@ const useIsReleasesPlus = () => {
|
|
|
47693
47690
|
let t6;
|
|
47694
47691
|
return $[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = () => resolvedDocumentRevertStatesResultRef.current ? Promise.resolve(resolvedDocumentRevertStatesResultRef.current) : resultPromiseRef.current, $[14] = t6) : t6 = $[14], t6;
|
|
47695
47692
|
};
|
|
47696
|
-
function _temp$
|
|
47693
|
+
function _temp$21(t0) {
|
|
47697
47694
|
const {
|
|
47698
47695
|
document: document2
|
|
47699
47696
|
} = t0;
|
|
@@ -47730,14 +47727,14 @@ const usePostPublishTransactions = (documents) => {
|
|
|
47730
47727
|
break bb0;
|
|
47731
47728
|
}
|
|
47732
47729
|
let t1;
|
|
47733
|
-
$[1] !== client || $[2] !== documents || $[3] !== transactionId ? (t1 = from(getTransactionsLogs(client, documents.map(_temp$
|
|
47730
|
+
$[1] !== client || $[2] !== documents || $[3] !== transactionId ? (t1 = from(getTransactionsLogs(client, documents.map(_temp$20), {
|
|
47734
47731
|
fromTransaction: transactionId,
|
|
47735
47732
|
limit: 2
|
|
47736
47733
|
})).pipe(map$1(_temp2$O), catchError$1(_temp3$p)), $[1] = client, $[2] = documents, $[3] = transactionId, $[4] = t1) : t1 = $[4], t0 = t1;
|
|
47737
47734
|
}
|
|
47738
47735
|
return useObservable(t0, null);
|
|
47739
47736
|
};
|
|
47740
|
-
function _temp$
|
|
47737
|
+
function _temp$20(t0) {
|
|
47741
47738
|
const {
|
|
47742
47739
|
document: document2
|
|
47743
47740
|
} = t0;
|
|
@@ -47844,7 +47841,7 @@ const ConfirmReleaseDialog = (t0) => {
|
|
|
47844
47841
|
let t11;
|
|
47845
47842
|
$[29] !== description || $[30] !== t || $[31] !== t10 ? (t11 = /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: description, values: t10 }) }), $[29] = description, $[30] = t, $[31] = t10, $[32] = t11) : t11 = $[32];
|
|
47846
47843
|
let t12;
|
|
47847
|
-
$[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = () => setStageNewRevertRelease(_temp$
|
|
47844
|
+
$[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t12 = () => setStageNewRevertRelease(_temp$1$), $[33] = t12) : t12 = $[33];
|
|
47848
47845
|
let t13;
|
|
47849
47846
|
$[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t13 = {
|
|
47850
47847
|
display: "block"
|
|
@@ -47918,7 +47915,7 @@ const ConfirmReleaseDialog = (t0) => {
|
|
|
47918
47915
|
t10
|
|
47919
47916
|
] }), $[22] = t10, $[23] = t9, $[24] = t11) : t11 = $[24], t11;
|
|
47920
47917
|
};
|
|
47921
|
-
function _temp$
|
|
47918
|
+
function _temp$1$(current) {
|
|
47922
47919
|
return !current;
|
|
47923
47920
|
}
|
|
47924
47921
|
const ReleaseScheduleButton = (t0) => {
|
|
@@ -47947,7 +47944,7 @@ const ReleaseScheduleButton = (t0) => {
|
|
|
47947
47944
|
$[0] !== publishAt || $[1] !== utcToCurrentZoneDate ? (t2 = publishAt ? utcToCurrentZoneDate(publishAt) : void 0, $[0] = publishAt, $[1] = utcToCurrentZoneDate, $[2] = t2) : t2 = $[2];
|
|
47948
47945
|
const timeZoneAdjustedPublishAt = t2;
|
|
47949
47946
|
let t3;
|
|
47950
|
-
$[3] !== documents ? (t3 = documents.some(_temp$
|
|
47947
|
+
$[3] !== documents ? (t3 = documents.some(_temp$1_), $[3] = documents, $[4] = t3) : t3 = $[4];
|
|
47951
47948
|
const isValidatingDocuments = t3;
|
|
47952
47949
|
let t4;
|
|
47953
47950
|
$[5] !== documents ? (t4 = documents.some(_temp2$N), $[5] = documents, $[6] = t4) : t4 = $[6];
|
|
@@ -48179,7 +48176,7 @@ const ReleaseScheduleButton = (t0) => {
|
|
|
48179
48176
|
confirmScheduleDialog
|
|
48180
48177
|
] }), $[140] = confirmScheduleDialog, $[141] = t25, $[142] = t26) : t26 = $[142], t26;
|
|
48181
48178
|
};
|
|
48182
|
-
function _temp$
|
|
48179
|
+
function _temp$1_(t0) {
|
|
48183
48180
|
const {
|
|
48184
48181
|
validation: validation2
|
|
48185
48182
|
} = t0;
|
|
@@ -48362,7 +48359,7 @@ function mapHooksToStates(states, {
|
|
|
48362
48359
|
function useHookCollectionStates(t0) {
|
|
48363
48360
|
const $ = c(12), {
|
|
48364
48361
|
hooks
|
|
48365
|
-
} = t0, [states] = useState(_temp$
|
|
48362
|
+
} = t0, [states] = useState(_temp$1Z);
|
|
48366
48363
|
let t1;
|
|
48367
48364
|
$[0] !== hooks || $[1] !== states ? (t1 = () => mapHooksToStates(states, {
|
|
48368
48365
|
hooks
|
|
@@ -48404,7 +48401,7 @@ function _temp2$M(error) {
|
|
|
48404
48401
|
if (error.name !== "AbortError")
|
|
48405
48402
|
throw error;
|
|
48406
48403
|
}
|
|
48407
|
-
function _temp$
|
|
48404
|
+
function _temp$1Z() {
|
|
48408
48405
|
return /* @__PURE__ */ new Map();
|
|
48409
48406
|
}
|
|
48410
48407
|
function GetHookCollectionState(props2) {
|
|
@@ -48428,7 +48425,7 @@ function GetHookCollectionState(props2) {
|
|
|
48428
48425
|
}), $[2] = children, $[3] = states, $[4] = t1) : t1 = $[4];
|
|
48429
48426
|
const result = t1, [forceReset, setForceReset] = useState(0);
|
|
48430
48427
|
let t2, t3;
|
|
48431
|
-
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => () => setForceReset(_temp$
|
|
48428
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => () => setForceReset(_temp$1Y), t3 = [], $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useImperativeHandle(resetRef, t2, t3);
|
|
48432
48429
|
const t4 = `render-${forceReset}`;
|
|
48433
48430
|
let t5;
|
|
48434
48431
|
$[7] !== args || $[8] !== handleNext || $[9] !== hooks || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsx(HookCollectionState, { hooks, args, handleNext }, t4), $[7] = args, $[8] = handleNext, $[9] = hooks, $[10] = t4, $[11] = t5) : t5 = $[11];
|
|
@@ -48438,7 +48435,7 @@ function GetHookCollectionState(props2) {
|
|
|
48438
48435
|
result
|
|
48439
48436
|
] }), $[12] = result, $[13] = t5, $[14] = t6) : t6 = $[14], t6;
|
|
48440
48437
|
}
|
|
48441
|
-
function _temp$
|
|
48438
|
+
function _temp$1Y(n) {
|
|
48442
48439
|
return n + 1;
|
|
48443
48440
|
}
|
|
48444
48441
|
const ReleaseActionsStateHandler = memo(function(t0) {
|
|
@@ -48822,7 +48819,7 @@ const toastActionComponents = {
|
|
|
48822
48819
|
$[15] !== documents || $[16] !== duplicateRelease || $[17] !== guardWithReleaseLimitUpsell || $[18] !== release.metadata || $[19] !== t ? (t8 = async () => {
|
|
48823
48820
|
const duplicateReleaseId = createReleaseId();
|
|
48824
48821
|
return await guardWithReleaseLimitUpsell(async () => {
|
|
48825
|
-
const releaseDocuments = documents?.map(_temp$
|
|
48822
|
+
const releaseDocuments = documents?.map(_temp$1X), duplicatedMetadata = {
|
|
48826
48823
|
...release.metadata,
|
|
48827
48824
|
title: `${release.metadata.title} (${t("copy-suffix")})`
|
|
48828
48825
|
};
|
|
@@ -49002,7 +48999,7 @@ const toastActionComponents = {
|
|
|
49002
48999
|
confirmActionDialog
|
|
49003
49000
|
] }), $[130] = confirmActionDialog, $[131] = t20, $[132] = t32, $[133] = t33) : t33 = $[133], t33;
|
|
49004
49001
|
};
|
|
49005
|
-
function _temp$
|
|
49002
|
+
function _temp$1X(doc) {
|
|
49006
49003
|
return doc.document;
|
|
49007
49004
|
}
|
|
49008
49005
|
function StatusItem(props2) {
|
|
@@ -49043,7 +49040,7 @@ function ReleaseStatusItems(t0) {
|
|
|
49043
49040
|
} = useTranslation(releasesLocaleNamespace);
|
|
49044
49041
|
let t1;
|
|
49045
49042
|
if ($[0] !== events2) {
|
|
49046
|
-
const createEvent = events2.find(isCreateReleaseEvent), extraEvent = events2.find(_temp$
|
|
49043
|
+
const createEvent = events2.find(isCreateReleaseEvent), extraEvent = events2.find(_temp$1W);
|
|
49047
49044
|
t1 = [createEvent, extraEvent].filter(isNonNullable$3), $[0] = events2, $[1] = t1;
|
|
49048
49045
|
} else
|
|
49049
49046
|
t1 = $[1];
|
|
@@ -49069,7 +49066,7 @@ function ReleaseStatusItems(t0) {
|
|
|
49069
49066
|
/* @__PURE__ */ jsx(RelativeTime, { time: event_0.timestamp, useTemporalPhrase: !0, minimal: !0 })
|
|
49070
49067
|
] }) }, event_0.id)) }), $[10] = footerEvents, $[11] = t, $[12] = t2) : t2 = $[12], t2;
|
|
49071
49068
|
}
|
|
49072
|
-
function _temp$
|
|
49069
|
+
function _temp$1W(event) {
|
|
49073
49070
|
return isPublishReleaseEvent(event) || isArchiveReleaseEvent(event) || isUnarchiveReleaseEvent(event);
|
|
49074
49071
|
}
|
|
49075
49072
|
function ReleaseDashboardFooter(props2) {
|
|
@@ -49170,7 +49167,7 @@ function ReleaseDashboardHeader(props2) {
|
|
|
49170
49167
|
const handleNavigateToReleasesList = t1;
|
|
49171
49168
|
let t2;
|
|
49172
49169
|
$[6] !== setInspector ? (t2 = () => {
|
|
49173
|
-
setInspector(_temp$
|
|
49170
|
+
setInspector(_temp$1V);
|
|
49174
49171
|
}, $[6] = setInspector, $[7] = t2) : t2 = $[7];
|
|
49175
49172
|
const handleActivityClick = t2;
|
|
49176
49173
|
let t3;
|
|
@@ -49203,7 +49200,7 @@ function ReleaseDashboardHeader(props2) {
|
|
|
49203
49200
|
t12
|
|
49204
49201
|
] }), $[31] = t12, $[32] = t9, $[33] = t13) : t13 = $[33], t13;
|
|
49205
49202
|
}
|
|
49206
|
-
function _temp$
|
|
49203
|
+
function _temp$1V(prev) {
|
|
49207
49204
|
return prev === "activity" ? void 0 : "activity";
|
|
49208
49205
|
}
|
|
49209
49206
|
const emptyCellStyle = {
|
|
@@ -50507,7 +50504,7 @@ function DocumentTypesPopoverContent() {
|
|
|
50507
50504
|
return index;
|
|
50508
50505
|
}
|
|
50509
50506
|
}, $[4] = documentTypeItems, $[5] = t5) : t5 = $[5];
|
|
50510
|
-
const getItemKey2 = t5, renderItem2 = _temp$
|
|
50507
|
+
const getItemKey2 = t5, renderItem2 = _temp$1U;
|
|
50511
50508
|
let t6;
|
|
50512
50509
|
$[6] !== documentTypeItems ? (t6 = (index_0) => documentTypeItems[index_0].type !== "item", $[6] = documentTypeItems, $[7] = t6) : t6 = $[7];
|
|
50513
50510
|
const getItemDisabled = t6;
|
|
@@ -50541,7 +50538,7 @@ function DocumentTypesPopoverContent() {
|
|
|
50541
50538
|
t13
|
|
50542
50539
|
] }), $[33] = t12, $[34] = t13, $[35] = t9, $[36] = t14) : t14 = $[36], t14;
|
|
50543
50540
|
}
|
|
50544
|
-
function _temp$
|
|
50541
|
+
function _temp$1U(item) {
|
|
50545
50542
|
return item.type === "divider" ? /* @__PURE__ */ jsx(Box, { paddingY: 1, children: /* @__PURE__ */ jsx(MenuDivider, {}) }) : item.type === "header" ? /* @__PURE__ */ jsx(Box, { margin: 2, padding: 1, children: /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, weight: "medium", children: item.title }) }) : item.type === "item" ? /* @__PURE__ */ jsx(DocumentTypeFilterItem, { paddingBottom: 1, selected: item.selected, type: item.item }) : null;
|
|
50546
50543
|
}
|
|
50547
50544
|
function ClearButton(t0) {
|
|
@@ -51207,7 +51204,7 @@ function useRecentSearchesStore() {
|
|
|
51207
51204
|
let t5;
|
|
51208
51205
|
return $[11] !== fieldDefinitions || $[12] !== filterDefinitions2 || $[13] !== operatorDefinitions2 || $[14] !== schema2 || $[15] !== setStoredSearch || $[16] !== storedSearch ? (t5 = {
|
|
51209
51206
|
addSearch: (searchTerm, searchFilters) => {
|
|
51210
|
-
const validStoredFilters = (searchFilters || []).map(_temp$
|
|
51207
|
+
const validStoredFilters = (searchFilters || []).map(_temp$1T).filter((filter_0) => validateFilter({
|
|
51211
51208
|
fieldDefinitions,
|
|
51212
51209
|
filter: filter_0,
|
|
51213
51210
|
filterDefinitions: filterDefinitions2,
|
|
@@ -51282,7 +51279,7 @@ function useRecentSearchesStore() {
|
|
|
51282
51279
|
function _temp2$L(s) {
|
|
51283
51280
|
return s.name;
|
|
51284
51281
|
}
|
|
51285
|
-
function _temp$
|
|
51282
|
+
function _temp$1T(filter2) {
|
|
51286
51283
|
return {
|
|
51287
51284
|
fieldId: filter2.fieldId,
|
|
51288
51285
|
filterName: filter2.filterName,
|
|
@@ -51343,12 +51340,12 @@ function Instructions() {
|
|
|
51343
51340
|
} = useTranslation();
|
|
51344
51341
|
let t0;
|
|
51345
51342
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
51346
|
-
ControlsIcon: _temp$
|
|
51343
|
+
ControlsIcon: _temp$1S
|
|
51347
51344
|
}, $[0] = t0) : t0 = $[0];
|
|
51348
51345
|
let t1;
|
|
51349
51346
|
return $[1] !== t ? (t1 = /* @__PURE__ */ jsx(Flex, { align: "center", direction: "column", gap: 4, paddingX: 4, paddingY: 5, children: /* @__PURE__ */ jsx(Inline, { space: 3, children: /* @__PURE__ */ jsx(Text$1, { muted: !0, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "search.instructions", components: t0 }) }) }) }), $[1] = t, $[2] = t1) : t1 = $[2], t1;
|
|
51350
51347
|
}
|
|
51351
|
-
function _temp$
|
|
51348
|
+
function _temp$1S() {
|
|
51352
51349
|
return /* @__PURE__ */ jsx(ControlsIcon, { style: {
|
|
51353
51350
|
padding: "0 0.25rem"
|
|
51354
51351
|
} }, 0);
|
|
@@ -51439,7 +51436,7 @@ function RecentSearchItem(t0) {
|
|
|
51439
51436
|
let t6;
|
|
51440
51437
|
$[15] !== availableCharacters || $[16] !== value.types ? (t6 = value.types.length > 0 && /* @__PURE__ */ jsx(SearchItemPillsBox, { children: /* @__PURE__ */ jsx(DocumentTypesPill, { availableCharacters, types: value.types }) }), $[15] = availableCharacters, $[16] = value.types, $[17] = t6) : t6 = $[17];
|
|
51441
51438
|
let t7;
|
|
51442
|
-
$[18] !== value.filters ? (t7 = value?.filters?.map(_temp$
|
|
51439
|
+
$[18] !== value.filters ? (t7 = value?.filters?.map(_temp$1R), $[18] = value.filters, $[19] = t7) : t7 = $[19];
|
|
51443
51440
|
let t8;
|
|
51444
51441
|
$[20] !== t5 || $[21] !== t6 || $[22] !== t7 ? (t8 = /* @__PURE__ */ jsxs(Flex, { align: "stretch", flex: 1, gap: 2, justify: "flex-start", marginLeft: 3, wrap: "wrap", children: [
|
|
51445
51442
|
t5,
|
|
@@ -51461,7 +51458,7 @@ function RecentSearchItem(t0) {
|
|
|
51461
51458
|
let t13;
|
|
51462
51459
|
return $[33] !== rest || $[34] !== t12 ? (t13 = /* @__PURE__ */ jsx(Box, { ...rest, children: t12 }), $[33] = rest, $[34] = t12, $[35] = t13) : t13 = $[35], t13;
|
|
51463
51460
|
}
|
|
51464
|
-
function _temp$
|
|
51461
|
+
function _temp$1R(filter2, i) {
|
|
51465
51462
|
return /* @__PURE__ */ jsx(FilterPill, { filter: filter2 }, i);
|
|
51466
51463
|
}
|
|
51467
51464
|
const VIRTUAL_LIST_RECENT_SEARCH_ITEM_HEIGHT = 36, MAX_COMBINED_TYPE_COUNT_SMALL = 20, MAX_COMBINED_TYPE_COUNT_LARGE = 40, RecentSearchesBox = styled(Card)`
|
|
@@ -51768,7 +51765,7 @@ function SortMenu() {
|
|
|
51768
51765
|
$[25] !== T0 || $[26] !== t5 || $[27] !== t6 || $[28] !== t7 ? (t13 = /* @__PURE__ */ jsx(T0, { mode: t5, icon: t6, text: t7 }), $[25] = T0, $[26] = t5, $[27] = t6, $[28] = t7, $[29] = t13) : t13 = $[29];
|
|
51769
51766
|
const t14 = menuButtonId || "";
|
|
51770
51767
|
let t15;
|
|
51771
|
-
$[30] !== menuOrderings ? (t15 = /* @__PURE__ */ jsx(Menu, { children: menuOrderings.map(_temp$
|
|
51768
|
+
$[30] !== menuOrderings ? (t15 = /* @__PURE__ */ jsx(Menu, { children: menuOrderings.map(_temp$1Q) }), $[30] = menuOrderings, $[31] = t15) : t15 = $[31];
|
|
51772
51769
|
let t16;
|
|
51773
51770
|
$[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t16 = {
|
|
51774
51771
|
portal: !0,
|
|
@@ -51781,7 +51778,7 @@ function SortMenu() {
|
|
|
51781
51778
|
let t19;
|
|
51782
51779
|
return $[44] !== T3 || $[45] !== t11 || $[46] !== t18 ? (t19 = /* @__PURE__ */ jsx(T3, { borderBottom: t11, children: t18 }), $[44] = T3, $[45] = t11, $[46] = t18, $[47] = t19) : t19 = $[47], t19;
|
|
51783
51780
|
}
|
|
51784
|
-
function _temp$
|
|
51781
|
+
function _temp$1Q(item_0, index) {
|
|
51785
51782
|
return isSearchDivider(item_0) ? /* @__PURE__ */ jsx(MenuDivider, {}, index) : /* @__PURE__ */ jsx(CustomMenuItem$1, { ordering: item_0 }, index);
|
|
51786
51783
|
}
|
|
51787
51784
|
const DebugScoreCard = styled(Card)`
|
|
@@ -51800,7 +51797,7 @@ function DebugOverlay(t0) {
|
|
|
51800
51797
|
score <= 0.1 ? tone = "critical" : score >= 0.5 && (tone = "primary");
|
|
51801
51798
|
let T0, T1, t1, t2;
|
|
51802
51799
|
if ($[0] !== data.stories) {
|
|
51803
|
-
const matchingStories = data.stories.filter(_temp$
|
|
51800
|
+
const matchingStories = data.stories.filter(_temp$1P);
|
|
51804
51801
|
T1 = Tooltip, T0 = Stack, t1 = 2, t2 = matchingStories.length ? /* @__PURE__ */ jsx(Fragment$1, { children: matchingStories.map(_temp2$K) }) : /* @__PURE__ */ jsx(Code, { size: 0, children: "No matches" }), $[0] = data.stories, $[1] = T0, $[2] = T1, $[3] = t1, $[4] = t2;
|
|
51805
51802
|
} else
|
|
51806
51803
|
T0 = $[1], T1 = $[2], t1 = $[3], t2 = $[4];
|
|
@@ -51822,7 +51819,7 @@ function _temp2$K(story_0) {
|
|
|
51822
51819
|
/* @__PURE__ */ jsx(Code, { size: 0, children: story_0.why })
|
|
51823
51820
|
] }, story_0.path);
|
|
51824
51821
|
}
|
|
51825
|
-
function _temp$
|
|
51822
|
+
function _temp$1P(story) {
|
|
51826
51823
|
return story.score > 0;
|
|
51827
51824
|
}
|
|
51828
51825
|
const SearchResultItemPreviewBox = styled(Box)`
|
|
@@ -52181,7 +52178,7 @@ function useSearch(t0) {
|
|
|
52181
52178
|
}), $[0] = client, $[1] = maxFieldDepth, $[2] = schema2, $[3] = strategy, $[4] = t1) : t1 = $[4];
|
|
52182
52179
|
const search2 = t1;
|
|
52183
52180
|
let t2;
|
|
52184
|
-
$[5] !== allowEmptyQueries || $[6] !== onComplete || $[7] !== onError || $[8] !== onStart || $[9] !== search2 ? (t2 = (inputValue$) => inputValue$.pipe(filter(nonNullable), map(sanitizeRequest), distinctUntilChanged(isEqual$2), debounce$1(_temp$
|
|
52181
|
+
$[5] !== allowEmptyQueries || $[6] !== onComplete || $[7] !== onError || $[8] !== onStart || $[9] !== search2 ? (t2 = (inputValue$) => inputValue$.pipe(filter(nonNullable), map(sanitizeRequest), distinctUntilChanged(isEqual$2), debounce$1(_temp$1O), tap(onStart), switchMap((request_0) => concat(of({
|
|
52185
52182
|
...INITIAL_SEARCH_STATE,
|
|
52186
52183
|
loading: !0,
|
|
52187
52184
|
options: request_0.options,
|
|
@@ -52226,7 +52223,7 @@ function _temp2$J(prevState, nextState) {
|
|
|
52226
52223
|
...nextState
|
|
52227
52224
|
};
|
|
52228
52225
|
}
|
|
52229
|
-
function _temp$
|
|
52226
|
+
function _temp$1O(request) {
|
|
52230
52227
|
return timer(request?.debounceTime || DEFAULT_DEBOUNCE_TIME);
|
|
52231
52228
|
}
|
|
52232
52229
|
function isRecentSearchTerms(terms) {
|
|
@@ -52866,7 +52863,7 @@ function ReleaseActionBadges(t0) {
|
|
|
52866
52863
|
t
|
|
52867
52864
|
} = useTranslation(releasesLocaleNamespace);
|
|
52868
52865
|
let t2;
|
|
52869
|
-
$[0] !== documents ? (t2 = documents.reduce(_temp$
|
|
52866
|
+
$[0] !== documents ? (t2 = documents.reduce(_temp$1N, {
|
|
52870
52867
|
added: 0,
|
|
52871
52868
|
changed: 0,
|
|
52872
52869
|
unpublished: 0
|
|
@@ -52903,7 +52900,7 @@ function ReleaseActionBadges(t0) {
|
|
|
52903
52900
|
t4
|
|
52904
52901
|
] }), $[8] = t3, $[9] = t4, $[10] = t5) : t5 = $[10], t5;
|
|
52905
52902
|
}
|
|
52906
|
-
function _temp$
|
|
52903
|
+
function _temp$1N(acc, doc) {
|
|
52907
52904
|
const actionType = getDocumentActionType(doc);
|
|
52908
52905
|
return actionType && (acc[actionType] = acc[actionType] + 1), acc;
|
|
52909
52906
|
}
|
|
@@ -53076,7 +53073,7 @@ function useReleaseHistory(releaseDocumentId, releaseId, documentRevision) {
|
|
|
53076
53073
|
});
|
|
53077
53074
|
})().catch((error) => {
|
|
53078
53075
|
console.error("Failed to fetch or parse document history:", error), cancelledRef.current || setHistory([]);
|
|
53079
|
-
}).finally(_temp$
|
|
53076
|
+
}).finally(_temp$1M);
|
|
53080
53077
|
}, $[3] = client, $[4] = documentRevision, $[5] = releaseDocumentId, $[6] = versionId, $[7] = t1) : t1 = $[7];
|
|
53081
53078
|
const fetchAndParse = t1;
|
|
53082
53079
|
let t2, t3;
|
|
@@ -53120,7 +53117,7 @@ function useReleaseHistory(releaseDocumentId, releaseId, documentRevision) {
|
|
|
53120
53117
|
function _temp2$I(mutation) {
|
|
53121
53118
|
return "create" in mutation;
|
|
53122
53119
|
}
|
|
53123
|
-
function _temp$
|
|
53120
|
+
function _temp$1M() {
|
|
53124
53121
|
releaseHistorySlot();
|
|
53125
53122
|
}
|
|
53126
53123
|
const MemoReleaseDocumentPreview = memo(function(t0) {
|
|
@@ -53299,7 +53296,7 @@ function ReleaseSummary(props2) {
|
|
|
53299
53296
|
const documentTableColumnDefs = t4;
|
|
53300
53297
|
let t5;
|
|
53301
53298
|
$[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => setAddDocumentDialog(!0), $[10] = t5) : t5 = $[10];
|
|
53302
|
-
const handleAddDocumentClick = t5, filterRows = _temp$
|
|
53299
|
+
const handleAddDocumentClick = t5, filterRows = _temp$1L;
|
|
53303
53300
|
let t6;
|
|
53304
53301
|
$[11] !== createVersion || $[12] !== releaseId || $[13] !== t || $[14] !== telemetry || $[15] !== toast ? (t6 = async (documentToAdd) => {
|
|
53305
53302
|
if (setAddDocumentDialog(!1), !documentToAdd)
|
|
@@ -53407,7 +53404,7 @@ function _temp2$H(t0) {
|
|
|
53407
53404
|
} = t0;
|
|
53408
53405
|
return document_3._id;
|
|
53409
53406
|
}
|
|
53410
|
-
function _temp$
|
|
53407
|
+
function _temp$1L(data, searchTerm) {
|
|
53411
53408
|
return data.filter((t0) => {
|
|
53412
53409
|
const {
|
|
53413
53410
|
document: document2
|
|
@@ -53430,7 +53427,7 @@ const bundleDocumentsCache = /* @__PURE__ */ Object.create(null), getActiveRelea
|
|
|
53430
53427
|
validation: [],
|
|
53431
53428
|
revision: document2._rev,
|
|
53432
53429
|
hasError: !1
|
|
53433
|
-
}) : from(schedulerYield(() => Promise.resolve())).pipe(switchMap(() => validateDocumentWithReferences(ctx, of(document2)).pipe(map((validationStatus) => ({
|
|
53430
|
+
}) : from(schedulerYield(() => Promise.resolve())).pipe(switchMap(() => validateDocumentWithReferences(ctx, of(document2), !0).pipe(map((validationStatus) => ({
|
|
53434
53431
|
...validationStatus,
|
|
53435
53432
|
hasError: validationStatus.validation.some((marker) => isValidationErrorMarker(marker))
|
|
53436
53433
|
}))))), processDocument = (id2) => {
|
|
@@ -53748,7 +53745,7 @@ function CalendarMonth$2(props2) {
|
|
|
53748
53745
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
53749
53746
|
gridGap: "1px",
|
|
53750
53747
|
gridTemplateColumns: "repeat(7, 1fr)"
|
|
53751
|
-
}, t2 = DEFAULT_WEEK_DAY_NAMES.map(_temp$
|
|
53748
|
+
}, t2 = DEFAULT_WEEK_DAY_NAMES.map(_temp$1K), $[0] = t1, $[1] = t2) : (t1 = $[0], t2 = $[1]);
|
|
53752
53749
|
let t3;
|
|
53753
53750
|
if ($[2] !== CalendarDay2 || $[3] !== date || $[4] !== disabled || $[5] !== getCurrentZoneDate || $[6] !== props2.focused || $[7] !== props2.onSelect || $[8] !== props2.selected || $[9] !== weeksOfMonth) {
|
|
53754
53751
|
let t42;
|
|
@@ -53766,7 +53763,7 @@ function CalendarMonth$2(props2) {
|
|
|
53766
53763
|
let t5;
|
|
53767
53764
|
return $[21] !== t0 || $[22] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { "aria-hidden": t0, "data-ui": "CalendarMonth", children: t4 }), $[21] = t0, $[22] = t4, $[23] = t5) : t5 = $[23], t5;
|
|
53768
53765
|
}
|
|
53769
|
-
function _temp$
|
|
53766
|
+
function _temp$1K(weekday) {
|
|
53770
53767
|
return /* @__PURE__ */ jsx(Card, { paddingY: 3, children: /* @__PURE__ */ jsx(Label, { size: 1, style: {
|
|
53771
53768
|
textAlign: "center"
|
|
53772
53769
|
}, children: weekday.slice(0, 1) }) }, weekday);
|
|
@@ -54024,7 +54021,7 @@ function CreateReleaseDialog(props2) {
|
|
|
54024
54021
|
const releaseValue = createReleaseMetadata(release);
|
|
54025
54022
|
await createRelease(releaseValue), onCancel(), telemetry.log(CreatedRelease, {
|
|
54026
54023
|
origin
|
|
54027
|
-
}), await new Promise(_temp$
|
|
54024
|
+
}), await new Promise(_temp$1J), setPerspective(getReleaseIdFromReleaseDocumentId(release._id)), onSubmit(getReleaseIdFromReleaseDocumentId(release._id));
|
|
54028
54025
|
} catch (t22) {
|
|
54029
54026
|
const err = t22;
|
|
54030
54027
|
isReleaseLimitError(err) ? (onCancel(), clearReleaseDataFromStorage()) : (console.error(err), toast.push({
|
|
@@ -54065,7 +54062,7 @@ function CreateReleaseDialog(props2) {
|
|
|
54065
54062
|
let t10;
|
|
54066
54063
|
return $[33] !== dialogTitle || $[34] !== handleOnClose || $[35] !== onCancel || $[36] !== t9 ? (t10 = /* @__PURE__ */ jsx(Dialog, { onClickOutside: onCancel, header: dialogTitle, id: "create-release-dialog", onClose: handleOnClose, width: 1, padding: !1, children: t9 }), $[33] = dialogTitle, $[34] = handleOnClose, $[35] = onCancel, $[36] = t9, $[37] = t10) : t10 = $[37], t10;
|
|
54067
54064
|
}
|
|
54068
|
-
function _temp$
|
|
54065
|
+
function _temp$1J(resolve) {
|
|
54069
54066
|
return setTimeout(resolve, 1e3);
|
|
54070
54067
|
}
|
|
54071
54068
|
const useReleasesMetadata = (releaseIds) => {
|
|
@@ -54108,7 +54105,7 @@ function CalendarPopover(t0) {
|
|
|
54108
54105
|
let t3;
|
|
54109
54106
|
$[2] !== t ? (t3 = t("overview.calendar.tooltip"), $[2] = t, $[3] = t3) : t3 = $[3];
|
|
54110
54107
|
let t4;
|
|
54111
|
-
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setIsCalendarOpen(_temp$
|
|
54108
|
+
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setIsCalendarOpen(_temp$1I), $[4] = t4) : t4 = $[4];
|
|
54112
54109
|
let t5;
|
|
54113
54110
|
$[5] !== isCalendarOpen ? (t5 = /* @__PURE__ */ jsx(Button$1, { name: "calendar", "data-as": "a", icon: CalendarIcon, mode: "bleed", padding: 2, radius: "full", selected: isCalendarOpen, onClick: t4, ref: buttonRef, space: 2 }), $[5] = isCalendarOpen, $[6] = t5) : t5 = $[6];
|
|
54114
54111
|
let t6;
|
|
@@ -54116,7 +54113,7 @@ function CalendarPopover(t0) {
|
|
|
54116
54113
|
let t7;
|
|
54117
54114
|
return $[10] !== content || $[11] !== isCalendarOpen || $[12] !== t6 ? (t7 = /* @__PURE__ */ jsx(Popover, { content, placement: "bottom", open: isCalendarOpen, ref: popoverRef, children: t6 }), $[10] = content, $[11] = isCalendarOpen, $[12] = t6, $[13] = t7) : t7 = $[13], t7;
|
|
54118
54115
|
}
|
|
54119
|
-
function _temp$
|
|
54116
|
+
function _temp$1I(prev) {
|
|
54120
54117
|
return !prev;
|
|
54121
54118
|
}
|
|
54122
54119
|
const getPickerView = ({
|
|
@@ -54250,7 +54247,7 @@ const ScheduledDraftDocumentPreview = (t0) => {
|
|
|
54250
54247
|
}
|
|
54251
54248
|
let T0, T1, T2, t1, t10, t11, t12, t2, t3, t4, t5, t6, t7, t8, t9;
|
|
54252
54249
|
if ($[3] !== cellProps || $[4] !== firstDocument._id || $[5] !== firstDocument._rev || $[6] !== firstDocument._type || $[7] !== firstDocumentValidation || $[8] !== release._id || $[9] !== release.state || $[10] !== t) {
|
|
54253
|
-
const validationErrorCount = firstDocumentValidation?.filter(_temp$
|
|
54250
|
+
const validationErrorCount = firstDocumentValidation?.filter(_temp$1H).length || 0;
|
|
54254
54251
|
T2 = Box, t7 = cellProps, t8 = 1, t9 = 1, t10 = 2, t11 = 2, t12 = "border", T1 = Card, t5 = validationErrorCount ? "critical" : "inherit", t6 = 2, T0 = Flex, t1 = "center", t2 = 2, $[26] !== firstDocument._id || $[27] !== firstDocument._rev || $[28] !== firstDocument._type || $[29] !== release._id || $[30] !== release.state ? (t3 = /* @__PURE__ */ jsx(Box, { flex: 1, children: /* @__PURE__ */ jsx(ReleaseDocumentPreview, { documentId: firstDocument._id, documentTypeName: firstDocument._type, releaseId: release._id, releaseState: release.state, isCardinalityOneRelease: !0, documentRevision: firstDocument._rev, layout: "default" }) }), $[26] = firstDocument._id, $[27] = firstDocument._rev, $[28] = firstDocument._type, $[29] = release._id, $[30] = release.state, $[31] = t3) : t3 = $[31], t4 = validationErrorCount > 0 && /* @__PURE__ */ jsx(Box, { paddingRight: 3, children: /* @__PURE__ */ jsx(Tooltip, { portal: !0, placement: "bottom-end", content: /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 3, padding: 1, children: [
|
|
54255
54252
|
/* @__PURE__ */ jsx(ToneIcon, { icon: ErrorOutlineIcon, tone: "critical" }),
|
|
54256
54253
|
t("document-validation.error", {
|
|
@@ -54269,7 +54266,7 @@ const ScheduledDraftDocumentPreview = (t0) => {
|
|
|
54269
54266
|
let t15;
|
|
54270
54267
|
return $[43] !== T2 || $[44] !== t10 || $[45] !== t11 || $[46] !== t12 || $[47] !== t14 || $[48] !== t7 || $[49] !== t8 || $[50] !== t9 ? (t15 = /* @__PURE__ */ jsx(T2, { ...t7, flex: t8, padding: t9, paddingLeft: t10, paddingRight: t11, sizing: t12, children: t14 }), $[43] = T2, $[44] = t10, $[45] = t11, $[46] = t12, $[47] = t14, $[48] = t7, $[49] = t8, $[50] = t9, $[51] = t15) : t15 = $[51], t15;
|
|
54271
54268
|
};
|
|
54272
|
-
function _temp$
|
|
54269
|
+
function _temp$1H(validation2) {
|
|
54273
54270
|
return validation2.level === "error";
|
|
54274
54271
|
}
|
|
54275
54272
|
function useReleaseCreator(releaseDocumentId, t0) {
|
|
@@ -54355,7 +54352,7 @@ function useScheduleActiveDrafts() {
|
|
|
54355
54352
|
const $ = c(4), client = useClient(RELEASES_STUDIO_CLIENT_OPTIONS);
|
|
54356
54353
|
let t0;
|
|
54357
54354
|
$[0] !== client ? (t0 = async (releases2) => {
|
|
54358
|
-
const scheduleActions = releases2.flatMap(_temp$
|
|
54355
|
+
const scheduleActions = releases2.flatMap(_temp$1G);
|
|
54359
54356
|
await client.action(scheduleActions);
|
|
54360
54357
|
}, $[0] = client, $[1] = t0) : t0 = $[1];
|
|
54361
54358
|
const scheduleActiveDrafts = t0;
|
|
@@ -54364,7 +54361,7 @@ function useScheduleActiveDrafts() {
|
|
|
54364
54361
|
scheduleActiveDrafts
|
|
54365
54362
|
}, $[2] = scheduleActiveDrafts, $[3] = t1) : t1 = $[3], t1;
|
|
54366
54363
|
}
|
|
54367
|
-
function _temp$
|
|
54364
|
+
function _temp$1G(release) {
|
|
54368
54365
|
return release.metadata.intendedPublishAt ? [{
|
|
54369
54366
|
actionType: "sanity.action.release.schedule",
|
|
54370
54367
|
releaseId: getReleaseIdFromReleaseDocumentId(release._id),
|
|
@@ -54465,7 +54462,7 @@ function ConfirmActiveScheduledDraftsBanner(t0) {
|
|
|
54465
54462
|
t
|
|
54466
54463
|
} = useTranslation(releasesLocaleNamespace), [isDialogOpen, setIsDialogOpen] = useState(!1);
|
|
54467
54464
|
let t1;
|
|
54468
|
-
$[0] !== releases2 ? (t1 = releases2.filter(_temp$
|
|
54465
|
+
$[0] !== releases2 ? (t1 = releases2.filter(_temp$1F), $[0] = releases2, $[1] = t1) : t1 = $[1];
|
|
54469
54466
|
const activeScheduledDrafts = t1;
|
|
54470
54467
|
let t2;
|
|
54471
54468
|
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
|
|
@@ -54505,7 +54502,7 @@ function ConfirmActiveScheduledDraftsBanner(t0) {
|
|
|
54505
54502
|
t10
|
|
54506
54503
|
] }), $[20] = t10, $[21] = t9, $[22] = t11) : t11 = $[22], t11;
|
|
54507
54504
|
}
|
|
54508
|
-
function _temp$
|
|
54505
|
+
function _temp$1F(release) {
|
|
54509
54506
|
return release.state === "active" && isCardinalityOneRelease(release);
|
|
54510
54507
|
}
|
|
54511
54508
|
const DraftsDisabledBanner = (t0) => {
|
|
@@ -55659,7 +55656,7 @@ const ScheduledDraftMenuButtonWrapper = (t0) => {
|
|
|
55659
55656
|
const displayedMenuItems = t5, canPerformActions = !!scheduledDraftDocument;
|
|
55660
55657
|
let t6;
|
|
55661
55658
|
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
|
|
55662
|
-
setOpenPopover(_temp$
|
|
55659
|
+
setOpenPopover(_temp$1E);
|
|
55663
55660
|
}, $[17] = t6) : t6 = $[17];
|
|
55664
55661
|
const handleOnButtonClick = t6;
|
|
55665
55662
|
let t7, t8;
|
|
@@ -55688,7 +55685,7 @@ const ScheduledDraftMenuButtonWrapper = (t0) => {
|
|
|
55688
55685
|
dialogs
|
|
55689
55686
|
] }), $[38] = dialogs, $[39] = t17, $[40] = t18) : t18 = $[40], t18;
|
|
55690
55687
|
};
|
|
55691
|
-
function _temp$
|
|
55688
|
+
function _temp$1E(prev) {
|
|
55692
55689
|
return !prev;
|
|
55693
55690
|
}
|
|
55694
55691
|
const singleDocReleaseNamespace = "singleDocRelease", singleDocReleaseUsEnglishLocaleBundle = {
|
|
@@ -55974,7 +55971,7 @@ function ReleasesOverview() {
|
|
|
55974
55971
|
$[11] !== allArchivedReleases || $[12] !== cardinalityView ? (t4 = allArchivedReleases.filter(shouldShowReleaseInView(cardinalityView)), $[11] = allArchivedReleases, $[12] = cardinalityView, $[13] = t4) : t4 = $[13];
|
|
55975
55972
|
const archivedReleases = t4;
|
|
55976
55973
|
let t5;
|
|
55977
|
-
$[14] !== releases2 ? (t5 = releases2.map(_temp$
|
|
55974
|
+
$[14] !== releases2 ? (t5 = releases2.map(_temp$1D), $[14] = releases2, $[15] = t5) : t5 = $[15];
|
|
55978
55975
|
const releaseIds = t5, {
|
|
55979
55976
|
data: releasesMetadata,
|
|
55980
55977
|
loading: loadingReleasesMetadata
|
|
@@ -56305,7 +56302,7 @@ function _temp3$m(release_3) {
|
|
|
56305
56302
|
function _temp2$F(release_0) {
|
|
56306
56303
|
return release_0.state === "active" && isCardinalityOneRelease(release_0);
|
|
56307
56304
|
}
|
|
56308
|
-
function _temp$
|
|
56305
|
+
function _temp$1D(release) {
|
|
56309
56306
|
return release._id;
|
|
56310
56307
|
}
|
|
56311
56308
|
function ReleasesTool() {
|
|
@@ -56437,7 +56434,7 @@ const useSchedulePublishAction = (props2) => {
|
|
|
56437
56434
|
} = useSingleDocReleaseUpsell();
|
|
56438
56435
|
let t0;
|
|
56439
56436
|
$[0] !== id2 ? (t0 = getDraftId(id2), $[0] = id2, $[1] = t0) : t0 = $[1];
|
|
56440
|
-
const validationStatus = useValidationStatus(t0, type);
|
|
56437
|
+
const validationStatus = useValidationStatus(t0, type, !0);
|
|
56441
56438
|
let t1;
|
|
56442
56439
|
$[2] !== validationStatus.validation ? (t1 = validationStatus.validation.some(isValidationErrorMarker), $[2] = validationStatus.validation, $[3] = t1) : t1 = $[3];
|
|
56443
56440
|
const hasValidationErrors = t1, hasCardinalityOneReleaseVersions = useHasCardinalityOneReleaseVersions(id2), [dialogOpen, setDialogOpen] = useState(!1), [isScheduling, setIsScheduling] = useState(!1), {
|
|
@@ -56571,9 +56568,9 @@ const SINGLE_DOC_RELEASE_NAME = "sanity/singleDocRelease", RELEASES_SCHEDULED_DR
|
|
|
56571
56568
|
function useReleasesToolAvailable() {
|
|
56572
56569
|
const $ = c(2), workspace = useWorkspace();
|
|
56573
56570
|
let t0;
|
|
56574
|
-
return $[0] !== workspace.tools ? (t0 = workspace.tools.some(_temp$
|
|
56571
|
+
return $[0] !== workspace.tools ? (t0 = workspace.tools.some(_temp$1C), $[0] = workspace.tools, $[1] = t0) : t0 = $[1], t0;
|
|
56575
56572
|
}
|
|
56576
|
-
function _temp$
|
|
56573
|
+
function _temp$1C(t0) {
|
|
56577
56574
|
const {
|
|
56578
56575
|
name
|
|
56579
56576
|
} = t0;
|
|
@@ -56793,7 +56790,7 @@ const useHasCopyToDraftOption = (documentType, fromRelease) => {
|
|
|
56793
56790
|
t
|
|
56794
56791
|
} = useTranslation(), hasCopyToDraftOption = useHasCopyToDraftOption(documentType, fromRelease), isCopyToReleaseDisabled = disabled || !hasCreatePermission || isGoingToUnpublish2;
|
|
56795
56792
|
let t1;
|
|
56796
|
-
$[0] !== releases2 ? (t1 = releases2.filter(_temp$
|
|
56793
|
+
$[0] !== releases2 ? (t1 = releases2.filter(_temp$1B), $[0] = releases2, $[1] = t1) : t1 = $[1];
|
|
56797
56794
|
const copyToReleaseOptions = t1, showCopyToReleaseMenuItem = copyToReleaseOptions.length > 0 || hasCopyToDraftOption;
|
|
56798
56795
|
let t2;
|
|
56799
56796
|
$[2] !== disabled || $[3] !== fromRelease || $[4] !== isVersion || $[5] !== t ? (t2 = isVersion && /* @__PURE__ */ jsx(IntentLink, { intent: RELEASES_INTENT, params: {
|
|
@@ -56821,7 +56818,7 @@ const useHasCopyToDraftOption = (documentType, fromRelease) => {
|
|
|
56821
56818
|
t6
|
|
56822
56819
|
] }), $[32] = t2, $[33] = t3, $[34] = t4, $[35] = t5, $[36] = t6, $[37] = t7) : t7 = $[37], t7;
|
|
56823
56820
|
});
|
|
56824
|
-
function _temp$
|
|
56821
|
+
function _temp$1B(r) {
|
|
56825
56822
|
return !isReleaseScheduledOrScheduling(r);
|
|
56826
56823
|
}
|
|
56827
56824
|
const ScheduledDraftContextMenu = memo(function(props2) {
|
|
@@ -56842,7 +56839,7 @@ const ScheduledDraftContextMenu = memo(function(props2) {
|
|
|
56842
56839
|
t
|
|
56843
56840
|
} = useTranslation(), hasCopyToDraftOption = useHasCopyToDraftOption(documentType, fromRelease), isCopyToReleaseDisabled = disabled || !hasCreatePermission || isGoingToUnpublish2;
|
|
56844
56841
|
let t1;
|
|
56845
|
-
$[0] !== releases2 ? (t1 = releases2.filter(_temp$
|
|
56842
|
+
$[0] !== releases2 ? (t1 = releases2.filter(_temp$1A), $[0] = releases2, $[1] = t1) : t1 = $[1];
|
|
56846
56843
|
const copyToReleaseOptions = t1, showCopyToReleaseMenuItem = copyToReleaseOptions.length > 0 || hasCopyToDraftOption, {
|
|
56847
56844
|
actions
|
|
56848
56845
|
} = scheduledDraftMenuActions;
|
|
@@ -56881,7 +56878,7 @@ const ScheduledDraftContextMenu = memo(function(props2) {
|
|
|
56881
56878
|
t10
|
|
56882
56879
|
] }), $[27] = t10, $[28] = t2, $[29] = t3, $[30] = t7, $[31] = t9, $[32] = t11) : t11 = $[32], t11;
|
|
56883
56880
|
});
|
|
56884
|
-
function _temp$
|
|
56881
|
+
function _temp$1A(r) {
|
|
56885
56882
|
return !isReleaseScheduledOrScheduling(r);
|
|
56886
56883
|
}
|
|
56887
56884
|
const VersionContextMenu = memo(function(props2) {
|
|
@@ -57039,7 +57036,7 @@ function CopyToNewReleaseDialog(props2) {
|
|
|
57039
57036
|
let t7;
|
|
57040
57037
|
$[16] !== clearReleaseDataFromStorage || $[17] !== createRelease || $[18] !== createReleaseMetadata || $[19] !== handleAddVersion || $[20] !== onClose || $[21] !== release || $[22] !== releasePromise || $[23] !== setRerenderDialog || $[24] !== t || $[25] !== telemetry || $[26] !== toast ? (t7 = async () => {
|
|
57041
57038
|
if (getIsScheduledDateInPast(release)) {
|
|
57042
|
-
setRerenderDialog(_temp$
|
|
57039
|
+
setRerenderDialog(_temp$1z);
|
|
57043
57040
|
return;
|
|
57044
57041
|
}
|
|
57045
57042
|
if (setIsSubmitting(!0), !await releasePromise) {
|
|
@@ -57130,7 +57127,7 @@ function CopyToNewReleaseDialog(props2) {
|
|
|
57130
57127
|
t25
|
|
57131
57128
|
] }), $[73] = handleOnClose, $[74] = onClose, $[75] = t16, $[76] = t25, $[77] = t9, $[78] = t26) : t26 = $[78], t26;
|
|
57132
57129
|
}
|
|
57133
|
-
function _temp$
|
|
57130
|
+
function _temp$1z(cur) {
|
|
57134
57131
|
return cur + 1;
|
|
57135
57132
|
}
|
|
57136
57133
|
const ChipButtonContainer = styled.span`
|
|
@@ -57341,7 +57338,7 @@ function DocumentPreviewPresence(props2) {
|
|
|
57341
57338
|
data: releases2
|
|
57342
57339
|
} = useActiveReleases();
|
|
57343
57340
|
let t0;
|
|
57344
|
-
$[0] !== presence ? (t0 = Array.from(new Set(presence.map(_temp$
|
|
57341
|
+
$[0] !== presence ? (t0 = Array.from(new Set(presence.map(_temp$1y))), $[0] = presence, $[1] = t0) : t0 = $[1];
|
|
57345
57342
|
let t1;
|
|
57346
57343
|
$[2] !== presence || $[3] !== t0 ? (t1 = t0.map((id2) => presence.find((a_0) => a_0.user.id === id2)).filter(isNonNullable$3), $[2] = presence, $[3] = t0, $[4] = t1) : t1 = $[4];
|
|
57347
57344
|
const uniquePresence = t1;
|
|
@@ -57381,7 +57378,7 @@ function DocumentPreviewPresence(props2) {
|
|
|
57381
57378
|
function _temp2$E(item) {
|
|
57382
57379
|
return /* @__PURE__ */ jsx(UserAvatar, { size: 0, user: item.user }, item.user.id);
|
|
57383
57380
|
}
|
|
57384
|
-
function _temp$
|
|
57381
|
+
function _temp$1y(a) {
|
|
57385
57382
|
return a.user.id;
|
|
57386
57383
|
}
|
|
57387
57384
|
const EMPTY_ARRAY$h = [];
|
|
@@ -57611,7 +57608,7 @@ function useFormState(t0) {
|
|
|
57611
57608
|
perspective,
|
|
57612
57609
|
hasUpstreamVersion,
|
|
57613
57610
|
displayInlineChanges
|
|
57614
|
-
} = t0, currentUser = useCurrentUser(), [prepareHiddenState] = useState(_temp$
|
|
57611
|
+
} = t0, currentUser = useCurrentUser(), [prepareHiddenState] = useState(_temp$1x), [prepareReadOnlyState] = useState(_temp2$D), [prepareFormState] = useState(_temp3$l), [reconcileFieldGroupState] = useState(_temp4$9);
|
|
57615
57612
|
let t1;
|
|
57616
57613
|
$[0] !== fieldGroupState || $[1] !== reconcileFieldGroupState ? (t1 = reconcileFieldGroupState(fieldGroupState), $[0] = fieldGroupState, $[1] = reconcileFieldGroupState, $[2] = t1) : t1 = $[2];
|
|
57617
57614
|
const reconciledFieldGroupState = t1, [reconcileCollapsedPaths] = useState(_temp5$6);
|
|
@@ -57693,7 +57690,7 @@ function _temp2$D() {
|
|
|
57693
57690
|
property: "readOnly"
|
|
57694
57691
|
});
|
|
57695
57692
|
}
|
|
57696
|
-
function _temp$
|
|
57693
|
+
function _temp$1x() {
|
|
57697
57694
|
return createCallbackResolver({
|
|
57698
57695
|
property: "hidden"
|
|
57699
57696
|
});
|
|
@@ -57789,7 +57786,7 @@ const INITIAL$1 = "connecting";
|
|
|
57789
57786
|
function useConnectionState(publishedDocId, docTypeName, version2) {
|
|
57790
57787
|
const $ = c(5), documentStore = useDocumentStore();
|
|
57791
57788
|
let t0;
|
|
57792
|
-
return $[0] !== docTypeName || $[1] !== documentStore.pair || $[2] !== publishedDocId || $[3] !== version2 ? (t0 = documentStore.pair.documentEvents(publishedDocId, docTypeName, version2).pipe(map(_temp$
|
|
57789
|
+
return $[0] !== docTypeName || $[1] !== documentStore.pair || $[2] !== publishedDocId || $[3] !== version2 ? (t0 = documentStore.pair.documentEvents(publishedDocId, docTypeName, version2).pipe(map(_temp$1w), map(_temp2$C), switchMap(_temp3$k), startWith(INITIAL$1), distinctUntilChanged()), $[0] = docTypeName, $[1] = documentStore.pair, $[2] = publishedDocId, $[3] = version2, $[4] = t0) : t0 = $[4], useObservable(t0, INITIAL$1);
|
|
57793
57790
|
}
|
|
57794
57791
|
function _temp3$k(isConnected) {
|
|
57795
57792
|
return isConnected ? of("connected") : timer(200).pipe(mapTo("reconnecting"));
|
|
@@ -57797,7 +57794,7 @@ function _temp3$k(isConnected) {
|
|
|
57797
57794
|
function _temp2$C(eventType) {
|
|
57798
57795
|
return eventType !== "reconnect";
|
|
57799
57796
|
}
|
|
57800
|
-
function _temp$
|
|
57797
|
+
function _temp$1w(ev) {
|
|
57801
57798
|
return ev.type;
|
|
57802
57799
|
}
|
|
57803
57800
|
function useFilteredReleases(t0) {
|
|
@@ -57833,7 +57830,7 @@ function useFilteredReleases(t0) {
|
|
|
57833
57830
|
break bb0;
|
|
57834
57831
|
}
|
|
57835
57832
|
if ($[13] !== archivedReleases || $[14] !== displayed || $[15] !== documentVersions || $[16] !== historyVersion || $[17] !== isCreatingDocument || $[18] !== releases2 || $[19] !== selectedReleaseId || $[20] !== strict) {
|
|
57836
|
-
const releasesIds = documentVersions.map(_temp$
|
|
57833
|
+
const releasesIds = documentVersions.map(_temp$1v);
|
|
57837
57834
|
if (activeReleases = releases2.reduce((acc, release) => {
|
|
57838
57835
|
const versionDocExists = releasesIds.includes(getReleaseIdFromReleaseDocumentId(release._id)), releaseId = getReleaseIdFromReleaseDocumentId(release._id);
|
|
57839
57836
|
return isCreatingDocument && releaseId === getVersionFromId(displayed._id || "") && releaseId === selectedReleaseId ? acc.inCreation = release : versionDocExists ? strict ? (getDocumentIsInPerspective(displayed?._id ?? "", getReleaseIdFromReleaseDocumentId(release._id)) || release.metadata.releaseType === "scheduled") && acc.currentReleases.push(release) : acc.currentReleases.push(release) : acc.notCurrentReleases.push(release), acc;
|
|
@@ -57855,7 +57852,7 @@ function useFilteredReleases(t0) {
|
|
|
57855
57852
|
activeReleases = $[11], t3 = $[12];
|
|
57856
57853
|
return t3 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel") ? t3 : activeReleases;
|
|
57857
57854
|
}
|
|
57858
|
-
function _temp$
|
|
57855
|
+
function _temp$1v(id2) {
|
|
57859
57856
|
return getVersionFromId(id2);
|
|
57860
57857
|
}
|
|
57861
57858
|
function useDocumentIdStack(t0) {
|
|
@@ -57887,7 +57884,7 @@ function useDocumentIdStack(t0) {
|
|
|
57887
57884
|
let t72;
|
|
57888
57885
|
$[13] !== editState2 ? (t72 = (release) => editState2?.id && getVersionId(editState2.id, getReleaseIdFromReleaseDocumentId(release._id)), $[13] = editState2, $[14] = t72) : t72 = $[14];
|
|
57889
57886
|
const releaseStack = filteredReleases.currentReleases.map(t72);
|
|
57890
|
-
t6 = systemStack.concat(releaseStack).filter(_temp$
|
|
57887
|
+
t6 = systemStack.concat(releaseStack).filter(_temp$1u), $[8] = editState2, $[9] = filteredReleases.currentReleases, $[10] = shouldIncludeDraft, $[11] = t5, $[12] = t6;
|
|
57891
57888
|
} else
|
|
57892
57889
|
t6 = $[12];
|
|
57893
57890
|
const stack = t6;
|
|
@@ -57902,7 +57899,7 @@ function useDocumentIdStack(t0) {
|
|
|
57902
57899
|
stack
|
|
57903
57900
|
}, $[17] = nextId, $[18] = position, $[19] = previousId, $[20] = stack, $[21] = t8) : t8 = $[21], t8;
|
|
57904
57901
|
}
|
|
57905
|
-
function _temp$
|
|
57902
|
+
function _temp$1u(id2) {
|
|
57906
57903
|
return typeof id2 == "string";
|
|
57907
57904
|
}
|
|
57908
57905
|
function useActiveWorkspace() {
|
|
@@ -58059,7 +58056,7 @@ function useEditState(publishedDocId, docTypeName, t0, version2) {
|
|
|
58059
58056
|
let t22;
|
|
58060
58057
|
if ($[0] !== docTypeName || $[1] !== documentStore.pair || $[2] !== publishedDocId || $[3] !== version2) {
|
|
58061
58058
|
const base = documentStore.pair.editState(publishedDocId, docTypeName, version2).pipe(share$1());
|
|
58062
|
-
t22 = merge(base.pipe(take(1)), base.pipe(skip$1(1), debounce$2(_temp$
|
|
58059
|
+
t22 = merge(base.pipe(take(1)), base.pipe(skip$1(1), debounce$2(_temp$1t))), $[0] = docTypeName, $[1] = documentStore.pair, $[2] = publishedDocId, $[3] = version2, $[4] = t22;
|
|
58063
58060
|
} else
|
|
58064
58061
|
t22 = $[4];
|
|
58065
58062
|
t1 = t22;
|
|
@@ -58070,20 +58067,20 @@ function useEditState(publishedDocId, docTypeName, t0, version2) {
|
|
|
58070
58067
|
}
|
|
58071
58068
|
return useObservable(t1);
|
|
58072
58069
|
}
|
|
58073
|
-
function _temp$
|
|
58070
|
+
function _temp$1t() {
|
|
58074
58071
|
return timer(1e3);
|
|
58075
58072
|
}
|
|
58076
58073
|
const INITIAL = {
|
|
58077
58074
|
validation: [],
|
|
58078
58075
|
isValidating: !1
|
|
58079
58076
|
};
|
|
58080
|
-
function useValidationStatus(validationTargetId, docTypeName,
|
|
58077
|
+
function useValidationStatus(validationTargetId, docTypeName, requirePublishedReferences) {
|
|
58081
58078
|
const $ = c(5), documentStore = useDocumentStore();
|
|
58082
58079
|
let t0;
|
|
58083
|
-
return $[0] !== docTypeName || $[1] !== documentStore.pair || $[2] !==
|
|
58080
|
+
return $[0] !== docTypeName || $[1] !== documentStore.pair || $[2] !== requirePublishedReferences || $[3] !== validationTargetId ? (t0 = documentStore.pair.validation(validationTargetId, docTypeName, requirePublishedReferences), $[0] = docTypeName, $[1] = documentStore.pair, $[2] = requirePublishedReferences, $[3] = validationTargetId, $[4] = t0) : t0 = $[4], useObservable(t0, INITIAL);
|
|
58084
58081
|
}
|
|
58085
58082
|
function getSelectedPerspective(selectedPerspectiveName, releases2) {
|
|
58086
|
-
return selectedPerspectiveName ? selectedPerspectiveName === "published" ? "published" : releases2.find((release) => getReleaseIdFromReleaseDocumentId(release._id) === selectedPerspectiveName) ||
|
|
58083
|
+
return selectedPerspectiveName ? selectedPerspectiveName === "published" ? "published" : releases2.find((release) => getReleaseIdFromReleaseDocumentId(release._id) === selectedPerspectiveName) || selectedPerspectiveName : "drafts";
|
|
58087
58084
|
}
|
|
58088
58085
|
function useComlinkViewHistory(t0) {
|
|
58089
58086
|
const $ = c(18), {
|
|
@@ -58161,19 +58158,23 @@ function useDocumentForm(options) {
|
|
|
58161
58158
|
const firstVersion = t5;
|
|
58162
58159
|
let t6;
|
|
58163
58160
|
bb0: {
|
|
58164
|
-
if (
|
|
58165
|
-
t6 =
|
|
58161
|
+
if (isSystemBundle(selectedPerspectiveName)) {
|
|
58162
|
+
t6 = void 0;
|
|
58166
58163
|
break bb0;
|
|
58167
58164
|
}
|
|
58168
|
-
if (
|
|
58169
|
-
t6 =
|
|
58165
|
+
if (documentVersions.some((id_0) => getVersionFromId(id_0) === selectedPerspectiveName)) {
|
|
58166
|
+
t6 = selectedPerspectiveName;
|
|
58167
|
+
break bb0;
|
|
58168
|
+
}
|
|
58169
|
+
if (selectedPerspectiveName && (!documentVersions.length || !onlyHasVersions)) {
|
|
58170
|
+
t6 = selectedPerspectiveName;
|
|
58170
58171
|
break bb0;
|
|
58171
58172
|
}
|
|
58172
58173
|
const t72 = firstVersion ?? "";
|
|
58173
58174
|
let t82;
|
|
58174
58175
|
$[13] !== t72 ? (t82 = getVersionFromId(t72), $[13] = t72, $[14] = t82) : t82 = $[14], t6 = t82;
|
|
58175
58176
|
}
|
|
58176
|
-
const editState2 = useEditState(documentId, documentType, "default",
|
|
58177
|
+
const activeDocumentReleaseId = t6, editState2 = useEditState(documentId, documentType, "default", activeDocumentReleaseId), connectionState = useConnectionState(documentId, documentType, activeDocumentReleaseId);
|
|
58177
58178
|
useReconnectingToast(connectionState === "reconnecting");
|
|
58178
58179
|
const [focusPath, setFocusPath] = useState(initialFocusPath || EMPTY_ARRAY$B);
|
|
58179
58180
|
let t7;
|
|
@@ -58200,7 +58201,7 @@ function useDocumentForm(options) {
|
|
|
58200
58201
|
}), $[19] = baseValue, $[20] = documentId, $[21] = documentType, $[22] = editState2.published, $[23] = liveEdit, $[24] = t92) : t92 = $[24], t7 = t92;
|
|
58201
58202
|
break bb1;
|
|
58202
58203
|
}
|
|
58203
|
-
if (
|
|
58204
|
+
if (selectedPerspectiveName || onlyHasVersions) {
|
|
58204
58205
|
t7 = editState2.version || editState2.draft || editState2.published || baseValue;
|
|
58205
58206
|
break bb1;
|
|
58206
58207
|
}
|
|
@@ -58208,7 +58209,7 @@ function useDocumentForm(options) {
|
|
|
58208
58209
|
}
|
|
58209
58210
|
const value = t7, {
|
|
58210
58211
|
validation: validationRaw
|
|
58211
|
-
} = useValidationStatus(value._id, documentType, releaseId), validation2 = useUnique(validationRaw);
|
|
58212
|
+
} = useValidationStatus(value._id, documentType, !releaseId), validation2 = useUnique(validationRaw);
|
|
58212
58213
|
let t8;
|
|
58213
58214
|
$[25] !== documentId || $[26] !== editState2 || $[27] !== value ? (t8 = {
|
|
58214
58215
|
strict: !0,
|
|
@@ -58259,7 +58260,7 @@ function useDocumentForm(options) {
|
|
|
58259
58260
|
const handleOnSetCollapsedFieldSet = t16;
|
|
58260
58261
|
let t17;
|
|
58261
58262
|
$[43] !== onSetFieldGroupState ? (t17 = (path_1, groupName) => onSetFieldGroupState((prevState_1) => setAtPath(prevState_1, path_1, groupName)), $[43] = onSetFieldGroupState, $[44] = t17) : t17 = $[44];
|
|
58262
|
-
const handleSetActiveFieldGroup = t17, requiredPermission = value._createdAt ? "update" : "create", targetDocumentId =
|
|
58263
|
+
const handleSetActiveFieldGroup = t17, requiredPermission = value._createdAt ? "update" : "create", targetDocumentId = activeDocumentReleaseId ? getVersionId(publishedId, activeDocumentReleaseId) : liveEdit ? editState2?.draft?._id || publishedId : getDraftId(documentId);
|
|
58263
58264
|
let t18;
|
|
58264
58265
|
$[45] !== targetDocumentId || $[46] !== value ? (t18 = {
|
|
58265
58266
|
...value,
|
|
@@ -58292,7 +58293,7 @@ function useDocumentForm(options) {
|
|
|
58292
58293
|
$[75] !== t23 ? (t24 = t23(), $[75] = t23, $[76] = t24) : t24 = $[76];
|
|
58293
58294
|
const readOnly = t24, {
|
|
58294
58295
|
patch: patch2
|
|
58295
|
-
} = useDocumentOperation(documentId, documentType,
|
|
58296
|
+
} = useDocumentOperation(documentId, documentType, activeDocumentReleaseId), patchRef = useRef(_temp$1s);
|
|
58296
58297
|
let t25;
|
|
58297
58298
|
$[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t25 = (event) => patchRef.current(event), $[77] = t25) : t25 = $[77];
|
|
58298
58299
|
const handleChange = t25;
|
|
@@ -58429,7 +58430,7 @@ function _temp3$j(seg) {
|
|
|
58429
58430
|
function _temp2$B() {
|
|
58430
58431
|
throw new Error("Attempted to patch a read-only document");
|
|
58431
58432
|
}
|
|
58432
|
-
function _temp$
|
|
58433
|
+
function _temp$1s() {
|
|
58433
58434
|
throw new Error("Attempted to patch the Sanity document during initial render or in an `useInsertionEffect`. Input components should only call `onChange()` in a useEffect or an event handler.");
|
|
58434
58435
|
}
|
|
58435
58436
|
const IS_NUMERIC = /^\d+$/;
|
|
@@ -58774,7 +58775,7 @@ function SelectAssetsDialog(props2) {
|
|
|
58774
58775
|
i18n: workspace.i18n,
|
|
58775
58776
|
environment: "studio",
|
|
58776
58777
|
document: document2,
|
|
58777
|
-
getDocumentExists: _temp$
|
|
58778
|
+
getDocumentExists: _temp$1r
|
|
58778
58779
|
});
|
|
58779
58780
|
return filterMediaValidationMarkers(result);
|
|
58780
58781
|
}, $[4] = client, $[5] = document2, $[6] = mediaLibraryIds?.libraryId, $[7] = schema2, $[8] = schemaType, $[9] = workspace.i18n, $[10] = t4) : t4 = $[10];
|
|
@@ -58895,7 +58896,7 @@ function _temp2$A(filter2) {
|
|
|
58895
58896
|
active: !0
|
|
58896
58897
|
};
|
|
58897
58898
|
}
|
|
58898
|
-
async function _temp$
|
|
58899
|
+
async function _temp$1r() {
|
|
58899
58900
|
return !0;
|
|
58900
58901
|
}
|
|
58901
58902
|
function UploadAssetsDialog(props2) {
|
|
@@ -58955,7 +58956,7 @@ function UploadAssetsDialog(props2) {
|
|
|
58955
58956
|
let t3, t4;
|
|
58956
58957
|
if ($[12] !== open || $[13] !== pageReadyForUploads || $[14] !== postMessage || $[15] !== t || $[16] !== toast || $[17] !== uploader ? (t3 = () => {
|
|
58957
58958
|
if (open && uploader) {
|
|
58958
|
-
pageReadyForUploads && uploader.getFiles().length > 0 && uploader.getFiles().every(_temp$
|
|
58959
|
+
pageReadyForUploads && uploader.getFiles().length > 0 && uploader.getFiles().every(_temp$1q) && (postMessage({
|
|
58959
58960
|
type: "uploadRequest",
|
|
58960
58961
|
files: uploader.getFiles()
|
|
58961
58962
|
}), setPageReadyForUploads(!1));
|
|
@@ -58991,7 +58992,7 @@ function UploadAssetsDialog(props2) {
|
|
|
58991
58992
|
function _temp2$z(file_0) {
|
|
58992
58993
|
return file_0.status === "alreadyExists";
|
|
58993
58994
|
}
|
|
58994
|
-
function _temp$
|
|
58995
|
+
function _temp$1q(file) {
|
|
58995
58996
|
return file.status === "pending";
|
|
58996
58997
|
}
|
|
58997
58998
|
const MediaLibraryAssetSourceComponent = function(props2, ref) {
|
|
@@ -59038,13 +59039,13 @@ const MediaLibraryAssetSourceComponent = function(props2, ref) {
|
|
|
59038
59039
|
t10
|
|
59039
59040
|
] }), $[26] = libraryIdProp, $[27] = projectId, $[28] = t10, $[29] = t5, $[30] = t11) : t11 = $[30], t11;
|
|
59040
59041
|
}, MediaLibraryAssetSource = memo(forwardRef(MediaLibraryAssetSourceComponent)), useRootPortalElement = () => {
|
|
59041
|
-
const $ = c(3), [container] = useState(_temp$
|
|
59042
|
+
const $ = c(3), [container] = useState(_temp$1p);
|
|
59042
59043
|
let t0, t1;
|
|
59043
59044
|
return $[0] !== container ? (t0 = () => (container.classList.add("media-library-portal"), document.body.appendChild(container), () => {
|
|
59044
59045
|
document.body.removeChild(container);
|
|
59045
59046
|
}), t1 = [container], $[0] = container, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1), container;
|
|
59046
59047
|
};
|
|
59047
|
-
function _temp$
|
|
59048
|
+
function _temp$1p() {
|
|
59048
59049
|
return document.createElement("div");
|
|
59049
59050
|
}
|
|
59050
59051
|
class MediaLibraryUploader {
|
|
@@ -59180,7 +59181,7 @@ function DefaultIcon(t0) {
|
|
|
59180
59181
|
} = t0, theme = useTheme$1(), fontFamily = theme.sanity.fonts.text.family, fontWeight = theme.sanity.fonts.text.weights.medium, fontSize = `${theme.sanity.fonts.text.sizes[1].fontSize}px`;
|
|
59181
59182
|
let t1;
|
|
59182
59183
|
$[0] !== subtitle || $[1] !== title ? (t1 = () => pseudoRandomNumber(`${title} ${subtitle}`), $[0] = subtitle, $[1] = title, $[2] = t1) : t1 = $[2];
|
|
59183
|
-
const [rng1] = useState(t1), huesWithoutGray = COLOR_HUES.filter(_temp$
|
|
59184
|
+
const [rng1] = useState(t1), huesWithoutGray = COLOR_HUES.filter(_temp$1o), colorHue = huesWithoutGray[Math.floor(rng1 * huesWithoutGray.length)];
|
|
59184
59185
|
let t2;
|
|
59185
59186
|
$[3] !== rng1 ? (t2 = () => pseudoRandomNumber(rng1.toString()), $[3] = rng1, $[4] = t2) : t2 = $[4];
|
|
59186
59187
|
const [rng2] = useState(t2), tint = possibleTints[Math.floor(rng2 * possibleTints.length)], color = hues[colorHue][tint].hex;
|
|
@@ -59217,7 +59218,7 @@ function _temp3$h(i) {
|
|
|
59217
59218
|
function _temp2$y(word) {
|
|
59218
59219
|
return word.replace(/\\W/g, "");
|
|
59219
59220
|
}
|
|
59220
|
-
function _temp$
|
|
59221
|
+
function _temp$1o(hue) {
|
|
59221
59222
|
return hue !== "gray";
|
|
59222
59223
|
}
|
|
59223
59224
|
function createDefaultIcon(title, subtitle) {
|
|
@@ -60760,7 +60761,7 @@ const NO_FILTER = () => !0, StyledText$2 = styled(Text$1)`
|
|
|
60760
60761
|
}, $[4] = types, $[5] = t6) : t6 = $[5];
|
|
60761
60762
|
let t7;
|
|
60762
60763
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = (result) => {
|
|
60763
|
-
setHits(result.hits.map(_temp$
|
|
60764
|
+
setHits(result.hits.map(_temp$1n));
|
|
60764
60765
|
}, $[6] = t7) : t7 = $[6];
|
|
60765
60766
|
let t8;
|
|
60766
60767
|
$[7] !== schema2 || $[8] !== t6 ? (t8 = {
|
|
@@ -60869,7 +60870,7 @@ const NO_FILTER = () => !0, StyledText$2 = styled(Text$1)`
|
|
|
60869
60870
|
let t17;
|
|
60870
60871
|
return $[31] !== autocompleteId || $[32] !== handleQueryChange || $[33] !== handleSelect || $[34] !== hits || $[35] !== placeholderText || $[36] !== ref || $[37] !== renderPopover || $[38] !== searchState.loading || $[39] !== t14 || $[40] !== t15 || $[41] !== t16 ? (t17 = /* @__PURE__ */ jsx("div", { ref: autocompletePopoverReferenceElementRef, children: /* @__PURE__ */ jsx(Autocomplete, { "aria-label": placeholderText, filterOption: NO_FILTER, fontSize: t14, id: autocompleteId, loading: searchState.loading, openButton: t15, options: hits, onQueryChange: handleQueryChange, onSelect: handleSelect, placeholder: placeholderText, radius: 2, ref, renderOption, renderPopover, value: t16 }) }), $[31] = autocompleteId, $[32] = handleQueryChange, $[33] = handleSelect, $[34] = hits, $[35] = placeholderText, $[36] = ref, $[37] = renderPopover, $[38] = searchState.loading, $[39] = t14, $[40] = t15, $[41] = t16, $[42] = t17) : t17 = $[42], t17;
|
|
60871
60872
|
});
|
|
60872
|
-
function _temp$
|
|
60873
|
+
function _temp$1n(t0) {
|
|
60873
60874
|
const {
|
|
60874
60875
|
hit
|
|
60875
60876
|
} = t0;
|
|
@@ -60914,7 +60915,7 @@ function SearchFilterReferenceInput(t0) {
|
|
|
60914
60915
|
if (schemaType) {
|
|
60915
60916
|
const field = getSchemaField$2(schemaType, fieldDefinition.fieldPath);
|
|
60916
60917
|
if (isArraySchemaType(field?.type))
|
|
60917
|
-
return field?.type.of.filter(isReferenceSchemaType).flatMap(_temp$
|
|
60918
|
+
return field?.type.of.filter(isReferenceSchemaType).flatMap(_temp$1m);
|
|
60918
60919
|
if (isReferenceSchemaType(field?.type))
|
|
60919
60920
|
return field?.type.to;
|
|
60920
60921
|
}
|
|
@@ -60946,7 +60947,7 @@ function SearchFilterReferenceInput(t0) {
|
|
|
60946
60947
|
function _temp2$w(acc, val) {
|
|
60947
60948
|
return acc.findIndex((v) => v.name === val?.name) < 0 && acc.push(val), acc;
|
|
60948
60949
|
}
|
|
60949
|
-
function _temp$
|
|
60950
|
+
function _temp$1m(i) {
|
|
60950
60951
|
return i.to;
|
|
60951
60952
|
}
|
|
60952
60953
|
function CustomMenuItem(t0) {
|
|
@@ -60991,7 +60992,7 @@ function SearchFilterStringListInput(t0) {
|
|
|
60991
60992
|
$[8] !== fieldDefinition.fieldPath || $[9] !== schema2 ? (t52 = (type) => {
|
|
60992
60993
|
const schemaType = schema2.get(type);
|
|
60993
60994
|
return schemaType ? getSchemaField$2(schemaType, fieldDefinition.fieldPath)?.type.options : null;
|
|
60994
|
-
}, $[8] = fieldDefinition.fieldPath, $[9] = schema2, $[10] = t52) : t52 = $[10], t32 = fieldDefinition.documentTypes.filter(t42).map(t52).filter(isNonNullable$3).map(_temp$
|
|
60995
|
+
}, $[8] = fieldDefinition.fieldPath, $[9] = schema2, $[10] = t52) : t52 = $[10], t32 = fieldDefinition.documentTypes.filter(t42).map(t52).filter(isNonNullable$3).map(_temp$1l).flatMap(_temp3$g).filter(isNonNullable$3).reduce(_temp5$5, []), $[1] = documentTypesNarrowed, $[2] = fieldDefinition.documentTypes, $[3] = fieldDefinition.fieldPath, $[4] = schema2, $[5] = t32;
|
|
60995
60996
|
} else
|
|
60996
60997
|
t32 = $[5];
|
|
60997
60998
|
t2 = t32;
|
|
@@ -61049,7 +61050,7 @@ function _temp3$g(list) {
|
|
|
61049
61050
|
function _temp2$v(l) {
|
|
61050
61051
|
return toSelectItem(l);
|
|
61051
61052
|
}
|
|
61052
|
-
function _temp$
|
|
61053
|
+
function _temp$1l(o) {
|
|
61053
61054
|
return o.list;
|
|
61054
61055
|
}
|
|
61055
61056
|
function toSelectItem(option) {
|
|
@@ -61250,9 +61251,9 @@ function FileReferencePreview(t0) {
|
|
|
61250
61251
|
let t2;
|
|
61251
61252
|
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = /* @__PURE__ */ jsx(FileSkeleton, {}), $[2] = t2) : t2 = $[2];
|
|
61252
61253
|
let t3;
|
|
61253
|
-
return $[3] !== observeAsset || $[4] !== reference ? (t3 = /* @__PURE__ */ jsx(WithReferencedAsset, { observeAsset, reference, waitPlaceholder: t2, children: _temp$
|
|
61254
|
+
return $[3] !== observeAsset || $[4] !== reference ? (t3 = /* @__PURE__ */ jsx(WithReferencedAsset, { observeAsset, reference, waitPlaceholder: t2, children: _temp$1k }), $[3] = observeAsset, $[4] = reference, $[5] = t3) : t3 = $[5], t3;
|
|
61254
61255
|
}
|
|
61255
|
-
function _temp$
|
|
61256
|
+
function _temp$1k(asset) {
|
|
61256
61257
|
return /* @__PURE__ */ jsx(FilePreview, { asset });
|
|
61257
61258
|
}
|
|
61258
61259
|
function FilePreview(t0) {
|
|
@@ -61316,9 +61317,9 @@ function ImageReferencePreview(t0) {
|
|
|
61316
61317
|
$[0] !== documentPreviewStore ? (t1 = (id2) => observeImageAsset(documentPreviewStore, id2), $[0] = documentPreviewStore, $[1] = t1) : t1 = $[1];
|
|
61317
61318
|
const observeAsset = t1;
|
|
61318
61319
|
let t2;
|
|
61319
|
-
return $[2] !== observeAsset || $[3] !== reference ? (t2 = /* @__PURE__ */ jsx(WithReferencedAsset, { observeAsset, reference, children: _temp$
|
|
61320
|
+
return $[2] !== observeAsset || $[3] !== reference ? (t2 = /* @__PURE__ */ jsx(WithReferencedAsset, { observeAsset, reference, children: _temp$1j }), $[2] = observeAsset, $[3] = reference, $[4] = t2) : t2 = $[4], t2;
|
|
61320
61321
|
}
|
|
61321
|
-
function _temp$
|
|
61322
|
+
function _temp$1j(asset) {
|
|
61322
61323
|
return /* @__PURE__ */ jsx(ImagePreview, { asset });
|
|
61323
61324
|
}
|
|
61324
61325
|
function ImagePreview(t0) {
|
|
@@ -61692,9 +61693,9 @@ const ARROW_KEYS$1 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], TAIL_W
|
|
|
61692
61693
|
weekInfo
|
|
61693
61694
|
} = useCurrentLocale();
|
|
61694
61695
|
let t0;
|
|
61695
|
-
return $[0] !== date || $[1] !== weekInfo.firstDay ? (t0 = getWeekDaysFromWeekStarts$1(getWeekStartsOfMonth$1(date, weekInfo.firstDay)).map(_temp$
|
|
61696
|
+
return $[0] !== date || $[1] !== weekInfo.firstDay ? (t0 = getWeekDaysFromWeekStarts$1(getWeekStartsOfMonth$1(date, weekInfo.firstDay)).map(_temp$1i), $[0] = date, $[1] = weekInfo.firstDay, $[2] = t0) : t0 = $[2], t0;
|
|
61696
61697
|
};
|
|
61697
|
-
function _temp$
|
|
61698
|
+
function _temp$1i(days) {
|
|
61698
61699
|
return {
|
|
61699
61700
|
number: getWeek(days[0]),
|
|
61700
61701
|
days
|
|
@@ -62238,7 +62239,7 @@ function CommonDateRangeInput(t0) {
|
|
|
62238
62239
|
state: t1
|
|
62239
62240
|
} = useSearchState(), {
|
|
62240
62241
|
fullscreen
|
|
62241
|
-
} = t1, [placeholderStartDate] = useState(_temp$
|
|
62242
|
+
} = t1, [placeholderStartDate] = useState(_temp$1h), [placeholderEndDate] = useState(_temp2$u);
|
|
62242
62243
|
let t2;
|
|
62243
62244
|
$[0] !== isDateTime || $[1] !== onChange || $[2] !== value?.includeTime ? (t2 = (t32) => {
|
|
62244
62245
|
const {
|
|
@@ -62315,7 +62316,7 @@ function CommonDateRangeInput(t0) {
|
|
|
62315
62316
|
function _temp2$u() {
|
|
62316
62317
|
return /* @__PURE__ */ new Date();
|
|
62317
62318
|
}
|
|
62318
|
-
function _temp$
|
|
62319
|
+
function _temp$1h() {
|
|
62319
62320
|
return addDays(/* @__PURE__ */ new Date(), PLACEHOLDER_START_DATE_OFFSET);
|
|
62320
62321
|
}
|
|
62321
62322
|
function getStartAndEndDate({
|
|
@@ -63094,7 +63095,7 @@ function useVideoPlaybackInfo(params) {
|
|
|
63094
63095
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
63095
63096
|
apiVersion: DEFAULT_API_VERSION
|
|
63096
63097
|
}, $[0] = t0) : t0 = $[0];
|
|
63097
|
-
const client = useClient(t0), [retrySubject] = useState(_temp$
|
|
63098
|
+
const client = useClient(t0), [retrySubject] = useState(_temp$1g);
|
|
63098
63099
|
let t1;
|
|
63099
63100
|
$[1] !== retrySubject ? (t1 = () => {
|
|
63100
63101
|
retrySubject.next();
|
|
@@ -63154,7 +63155,7 @@ function useVideoPlaybackInfo(params) {
|
|
|
63154
63155
|
const [initialState2, playbackInfoObservable] = t2;
|
|
63155
63156
|
return useObservable(playbackInfoObservable, initialState2);
|
|
63156
63157
|
}
|
|
63157
|
-
function _temp$
|
|
63158
|
+
function _temp$1g() {
|
|
63158
63159
|
return new Subject();
|
|
63159
63160
|
}
|
|
63160
63161
|
function VideoSkeleton(t0) {
|
|
@@ -63329,7 +63330,7 @@ function VideoPreview(props2) {
|
|
|
63329
63330
|
} : baseProps, $[16] = baseProps, $[17] = tokens, $[18] = t7) : t7 = $[18];
|
|
63330
63331
|
const videoActionsMenuProps = t7;
|
|
63331
63332
|
let t8;
|
|
63332
|
-
$[19] !== assetSources ? (t8 = assetSources.filter(_temp$
|
|
63333
|
+
$[19] !== assetSources ? (t8 = assetSources.filter(_temp$1f), $[19] = assetSources, $[20] = t8) : t8 = $[20];
|
|
63333
63334
|
const assetSourcesWithUpload = t8;
|
|
63334
63335
|
let t9;
|
|
63335
63336
|
$[21] !== assetSources || $[22] !== setSelectedAssetSource ? (t9 = (event) => {
|
|
@@ -63393,7 +63394,7 @@ function VideoPreview(props2) {
|
|
|
63393
63394
|
let t16;
|
|
63394
63395
|
return $[61] !== t15 || $[62] !== videoActionsMenuProps ? (t16 = /* @__PURE__ */ jsx(VideoActionsMenu, { ...videoActionsMenuProps, children: t15 }), $[61] = t15, $[62] = videoActionsMenuProps, $[63] = t16) : t16 = $[63], t16;
|
|
63395
63396
|
}
|
|
63396
|
-
function _temp$
|
|
63397
|
+
function _temp$1f(s) {
|
|
63397
63398
|
return !!s.Uploader;
|
|
63398
63399
|
}
|
|
63399
63400
|
const ASSET_FIELD_PATH = ["asset"];
|
|
@@ -63431,7 +63432,7 @@ function VideoAsset(props2) {
|
|
|
63431
63432
|
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[2] = t1) : t1 = $[2];
|
|
63432
63433
|
const [filesToUploadFromPaste, setFilesToUploadFromPaste] = useState(t1);
|
|
63433
63434
|
let t2;
|
|
63434
|
-
$[3] !== assetSources ? (t2 = assetSources.filter(_temp$
|
|
63435
|
+
$[3] !== assetSources ? (t2 = assetSources.filter(_temp$1e), $[3] = assetSources, $[4] = t2) : t2 = $[4];
|
|
63435
63436
|
const hasMultipleUploadSources = t2.length > 1;
|
|
63436
63437
|
let t3;
|
|
63437
63438
|
$[5] !== elementProps ? (t3 = (event) => {
|
|
@@ -63522,7 +63523,7 @@ function _temp3$f(s_0) {
|
|
|
63522
63523
|
function _temp2$t(file) {
|
|
63523
63524
|
return file.kind !== "string";
|
|
63524
63525
|
}
|
|
63525
|
-
function _temp$
|
|
63526
|
+
function _temp$1e(s) {
|
|
63526
63527
|
return !!s.Uploader;
|
|
63527
63528
|
}
|
|
63528
63529
|
function FileUploadPlaceHolder(props2) {
|
|
@@ -63714,7 +63715,7 @@ function BaseVideoInput(props2) {
|
|
|
63714
63715
|
break bb65;
|
|
63715
63716
|
}
|
|
63716
63717
|
case "error": {
|
|
63717
|
-
event.files.forEach(_temp$
|
|
63718
|
+
event.files.forEach(_temp$1d), push({
|
|
63718
63719
|
status: "error",
|
|
63719
63720
|
description: t("asset-sources.common.uploader.upload-failed.description"),
|
|
63720
63721
|
title: t("asset-sources.common.uploader.upload-failed.title")
|
|
@@ -63772,7 +63773,7 @@ function BaseVideoInput(props2) {
|
|
|
63772
63773
|
t14
|
|
63773
63774
|
] }), $[78] = t13, $[79] = t14, $[80] = t15) : t15 = $[80], t15;
|
|
63774
63775
|
}
|
|
63775
|
-
function _temp$
|
|
63776
|
+
function _temp$1d(video_0) {
|
|
63776
63777
|
console.error(video_0.error);
|
|
63777
63778
|
}
|
|
63778
63779
|
function StudioVideoInput(props2) {
|
|
@@ -63783,7 +63784,7 @@ function StudioVideoInput(props2) {
|
|
|
63783
63784
|
$[0] !== fileConfig.directUploads ? (t0 = (type, file) => fileConfig.directUploads ? resolveUploader(type, file) : null, $[0] = fileConfig.directUploads, $[1] = t0) : t0 = $[1];
|
|
63784
63785
|
const resolveUploader$1 = t0, assetSources = sourcesFromSchema || fileConfig.assetSources;
|
|
63785
63786
|
let t1;
|
|
63786
|
-
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$
|
|
63787
|
+
$[2] !== assetSources ? (t1 = assetSources.filter(_temp$1c), $[2] = assetSources, $[3] = t1) : t1 = $[3];
|
|
63787
63788
|
const filteredAssetSources = t1;
|
|
63788
63789
|
let t2;
|
|
63789
63790
|
$[4] !== documentPreviewStore ? (t2 = (id2) => observeVideoAsset(documentPreviewStore, id2), $[4] = documentPreviewStore, $[5] = t2) : t2 = $[5];
|
|
@@ -63791,7 +63792,7 @@ function StudioVideoInput(props2) {
|
|
|
63791
63792
|
let t3;
|
|
63792
63793
|
return $[6] !== client || $[7] !== fileConfig.directUploads || $[8] !== filteredAssetSources || $[9] !== observeAsset || $[10] !== props2 || $[11] !== resolveUploader$1 ? (t3 = /* @__PURE__ */ jsx(BaseVideoInput, { ...props2, client, assetSources: filteredAssetSources, directUploads: fileConfig.directUploads, observeAsset, resolveUploader: resolveUploader$1 }), $[6] = client, $[7] = fileConfig.directUploads, $[8] = filteredAssetSources, $[9] = observeAsset, $[10] = props2, $[11] = resolveUploader$1, $[12] = t3) : t3 = $[12], t3;
|
|
63793
63794
|
}
|
|
63794
|
-
function _temp$
|
|
63795
|
+
function _temp$1c(source) {
|
|
63795
63796
|
return source.name === sourceName;
|
|
63796
63797
|
}
|
|
63797
63798
|
const VideoField = (props2) => props2.renderDefault({
|
|
@@ -64035,12 +64036,12 @@ const VideoField = (props2) => props2.renderDefault({
|
|
|
64035
64036
|
function useProjectOrganizationId() {
|
|
64036
64037
|
const $ = c(2), projectStore = useProjectStore();
|
|
64037
64038
|
let t0;
|
|
64038
|
-
return $[0] !== projectStore ? (t0 = projectStore.getOrganizationId().pipe(map$1(_temp$
|
|
64039
|
+
return $[0] !== projectStore ? (t0 = projectStore.getOrganizationId().pipe(map$1(_temp$1b), startWith$1({
|
|
64039
64040
|
value: null,
|
|
64040
64041
|
loading: !0
|
|
64041
64042
|
})), $[0] = projectStore, $[1] = t0) : t0 = $[1], useObservable(t0, INITIAL_STATE$5);
|
|
64042
64043
|
}
|
|
64043
|
-
function _temp$
|
|
64044
|
+
function _temp$1b(res) {
|
|
64044
64045
|
return {
|
|
64045
64046
|
value: res,
|
|
64046
64047
|
loading: !1
|
|
@@ -64197,7 +64198,7 @@ function DocumentDiff(t0) {
|
|
|
64197
64198
|
schemaType,
|
|
64198
64199
|
rootDiff,
|
|
64199
64200
|
isComparingCurrent: !1,
|
|
64200
|
-
FieldWrapper: _temp$
|
|
64201
|
+
FieldWrapper: _temp$1a,
|
|
64201
64202
|
value: document2,
|
|
64202
64203
|
showFromValue: !0
|
|
64203
64204
|
}, $[9] = document2, $[10] = rootDiff, $[11] = schemaType, $[12] = t3, $[13] = t4) : t4 = $[13];
|
|
@@ -64206,7 +64207,7 @@ function DocumentDiff(t0) {
|
|
|
64206
64207
|
let t6;
|
|
64207
64208
|
return $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsx(DocumentChangeContext.Provider, { value: t4, children: t5 }), $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19], t6;
|
|
64208
64209
|
}
|
|
64209
|
-
function _temp$
|
|
64210
|
+
function _temp$1a(props2) {
|
|
64210
64211
|
return props2.children;
|
|
64211
64212
|
}
|
|
64212
64213
|
const ChipCard = styled(Card)((props2) => {
|
|
@@ -64526,7 +64527,7 @@ function useLinkToCanvas(t0) {
|
|
|
64526
64527
|
}
|
|
64527
64528
|
return projectStore.getOrganizationId().pipe(map$1((organizationId) => {
|
|
64528
64529
|
if (!organizationId)
|
|
64529
|
-
return _temp$
|
|
64530
|
+
return _temp$19;
|
|
64530
64531
|
const canvasLinkUrl = `https://www.sanity.${client.config().apiHost === "https://api.sanity.work" ? "work" : "io"}/@${organizationId}/canvas/${path}`;
|
|
64531
64532
|
return () => window.open(canvasLinkUrl, "_blank");
|
|
64532
64533
|
}));
|
|
@@ -64581,7 +64582,7 @@ function _temp2$s(error) {
|
|
|
64581
64582
|
error: error.message
|
|
64582
64583
|
});
|
|
64583
64584
|
}
|
|
64584
|
-
function _temp$
|
|
64585
|
+
function _temp$19() {
|
|
64585
64586
|
}
|
|
64586
64587
|
const LinkToCanvasDialog = (t0) => {
|
|
64587
64588
|
const $ = c(35), {
|
|
@@ -65553,7 +65554,7 @@ const EMPTY_ARRAY$f = [], Root$d = styled(Stack)({
|
|
|
65553
65554
|
let t72;
|
|
65554
65555
|
if ($[8] !== options || $[9] !== searchTerm) {
|
|
65555
65556
|
const deburredSearchTerm = deburr(searchTerm).toLocaleLowerCase();
|
|
65556
|
-
t72 = options?.map(_temp$
|
|
65557
|
+
t72 = options?.map(_temp$18)?.filter((option_0) => option_0?.displayName?.includes(deburredSearchTerm))?.sort((a, b) => {
|
|
65557
65558
|
const matchA = a.displayName?.startsWith(deburredSearchTerm), matchB = b.displayName?.startsWith(deburredSearchTerm);
|
|
65558
65559
|
return matchA && !matchB ? -1 : !matchA && matchB ? 1 : 0;
|
|
65559
65560
|
}), $[8] = options, $[9] = searchTerm, $[10] = t72;
|
|
@@ -65577,7 +65578,7 @@ const EMPTY_ARRAY$f = [], Root$d = styled(Stack)({
|
|
|
65577
65578
|
t8
|
|
65578
65579
|
] }), $[21] = t7, $[22] = t8, $[23] = t9) : t9 = $[23], t9;
|
|
65579
65580
|
});
|
|
65580
|
-
function _temp$
|
|
65581
|
+
function _temp$18(option) {
|
|
65581
65582
|
return {
|
|
65582
65583
|
...option,
|
|
65583
65584
|
displayName: deburr(option.displayName || "").toLocaleLowerCase()
|
|
@@ -65985,7 +65986,7 @@ function CommentInputProvider(props2) {
|
|
|
65985
65986
|
$[16] !== mentionsMenuOpen || $[17] !== onMentionMenuOpenChange ? (t8 = () => onMentionMenuOpenChange?.(mentionsMenuOpen), $[16] = mentionsMenuOpen, $[17] = onMentionMenuOpenChange, $[18] = t8) : t8 = $[18], useDidUpdate(mentionsMenuOpen, t8);
|
|
65986
65987
|
let t9;
|
|
65987
65988
|
$[19] !== editor2 || $[20] !== selectionAtMentionInsert ? (t9 = (userId) => {
|
|
65988
|
-
const mentionSchemaType = editor2.schemaTypes.inlineObjects.find(_temp$
|
|
65989
|
+
const mentionSchemaType = editor2.schemaTypes.inlineObjects.find(_temp$17), [span, spanPath] = selectionAtMentionInsert && PortableTextEditor.findByPath(editor2, selectionAtMentionInsert.focus.path) || [];
|
|
65989
65990
|
if (span && isPortableTextSpan(span) && spanPath && mentionSchemaType) {
|
|
65990
65991
|
PortableTextEditor.focus(editor2);
|
|
65991
65992
|
const offset = PortableTextEditor.getSelection(editor2)?.focus.offset;
|
|
@@ -66032,7 +66033,7 @@ function CommentInputProvider(props2) {
|
|
|
66032
66033
|
let t12;
|
|
66033
66034
|
return $[39] !== children || $[40] !== ctxValue ? (t12 = /* @__PURE__ */ jsx(CommentInputContext.Provider, { value: ctxValue, children }), $[39] = children, $[40] = ctxValue, $[41] = t12) : t12 = $[41], t12;
|
|
66034
66035
|
}
|
|
66035
|
-
function _temp$
|
|
66036
|
+
function _temp$17(t) {
|
|
66036
66037
|
return t.name === "mention";
|
|
66037
66038
|
}
|
|
66038
66039
|
const EMPTY_ARRAY$d = [], SCROLL_INTO_VIEW_OPTIONS = {
|
|
@@ -66520,7 +66521,7 @@ function CommentReactionsUsersTooltipContent(props2) {
|
|
|
66520
66521
|
$[9] !== UserList || $[10] !== t4 ? (t5 = {
|
|
66521
66522
|
UserList,
|
|
66522
66523
|
ReactionName: t4,
|
|
66523
|
-
Text: _temp$
|
|
66524
|
+
Text: _temp$16
|
|
66524
66525
|
}, $[9] = UserList, $[10] = t4, $[11] = t5) : t5 = $[11];
|
|
66525
66526
|
let t6;
|
|
66526
66527
|
$[12] !== t || $[13] !== t3 || $[14] !== t5 ? (t6 = /* @__PURE__ */ jsx(TextBox, { children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: "reactions.users-reacted-with-reaction", values: t3, components: t5 }) }), $[12] = t, $[13] = t3, $[14] = t5, $[15] = t6) : t6 = $[15];
|
|
@@ -66530,7 +66531,7 @@ function CommentReactionsUsersTooltipContent(props2) {
|
|
|
66530
66531
|
t6
|
|
66531
66532
|
] }), $[16] = t2, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
|
|
66532
66533
|
}
|
|
66533
|
-
function _temp$
|
|
66534
|
+
function _temp$16(t0) {
|
|
66534
66535
|
const {
|
|
66535
66536
|
children
|
|
66536
66537
|
} = t0;
|
|
@@ -66576,7 +66577,7 @@ const renderMenuButton$1 = ({
|
|
|
66576
66577
|
let t1;
|
|
66577
66578
|
if ($[2] !== currentUser?.id || $[3] !== reactions) {
|
|
66578
66579
|
let t22;
|
|
66579
|
-
$[5] !== currentUser?.id ? (t22 = (r) => r.userId === currentUser?.id, $[5] = currentUser?.id, $[6] = t22) : t22 = $[6], t1 = reactions.filter(t22).map(_temp$
|
|
66580
|
+
$[5] !== currentUser?.id ? (t22 = (r) => r.userId === currentUser?.id, $[5] = currentUser?.id, $[6] = t22) : t22 = $[6], t1 = reactions.filter(t22).map(_temp$15), $[2] = currentUser?.id, $[3] = reactions, $[4] = t1;
|
|
66580
66581
|
} else
|
|
66581
66582
|
t1 = $[4];
|
|
66582
66583
|
const currentUserReactionNames = t1;
|
|
@@ -66635,7 +66636,7 @@ const renderMenuButton$1 = ({
|
|
|
66635
66636
|
] }) }), $[38] = t4, $[39] = t6, $[40] = t7) : t7 = $[40], t7;
|
|
66636
66637
|
});
|
|
66637
66638
|
CommentReactionsBar.displayName = "Memo(CommentReactionsBar)";
|
|
66638
|
-
function _temp$
|
|
66639
|
+
function _temp$15(r_0) {
|
|
66639
66640
|
return r_0.shortName;
|
|
66640
66641
|
}
|
|
66641
66642
|
function _temp2$r(t0) {
|
|
@@ -66879,7 +66880,7 @@ function CommentsListItemLayout(props2) {
|
|
|
66879
66880
|
$[0] !== value ? (t2 = hasCommentMessageValue(value), $[0] = value, $[1] = t2) : t2 = $[1];
|
|
66880
66881
|
const hasValue2 = t2;
|
|
66881
66882
|
let t3;
|
|
66882
|
-
$[2] !== comment.reactions ? (t3 = (comment?.reactions?.filter(_temp$
|
|
66883
|
+
$[2] !== comment.reactions ? (t3 = (comment?.reactions?.filter(_temp$14) || EMPTY_ARRAY$b).filter(_temp2$q), $[2] = comment.reactions, $[3] = t3) : t3 = $[3];
|
|
66883
66884
|
const reactions = t3, hasReactions = !!reactions?.length;
|
|
66884
66885
|
let t4;
|
|
66885
66886
|
$[4] !== _createdAt ? (t4 = _createdAt ? new Date(_createdAt) : /* @__PURE__ */ new Date(), $[4] = _createdAt, $[5] = t4) : t4 = $[5];
|
|
@@ -67075,7 +67076,7 @@ function _temp3$d(v) {
|
|
|
67075
67076
|
function _temp2$q(r_0) {
|
|
67076
67077
|
return "userId" in r_0 && "shortName" in r_0;
|
|
67077
67078
|
}
|
|
67078
|
-
function _temp$
|
|
67079
|
+
function _temp$14(r) {
|
|
67079
67080
|
return r?._optimisticState !== "removed";
|
|
67080
67081
|
}
|
|
67081
67082
|
const ThreadCard = styled(Card).attrs({
|
|
@@ -67452,7 +67453,7 @@ function CommentThreadLayout(props2) {
|
|
|
67452
67453
|
}, $[6] = fieldPath, $[7] = onPathSelect, $[8] = t2) : t2 = $[8];
|
|
67453
67454
|
const handleNewThreadClick = t2;
|
|
67454
67455
|
let t3;
|
|
67455
|
-
$[9] !== breadcrumbs ? (t3 = breadcrumbs?.map(_temp$
|
|
67456
|
+
$[9] !== breadcrumbs ? (t3 = breadcrumbs?.map(_temp$13) || [], $[9] = breadcrumbs, $[10] = t3) : t3 = $[10];
|
|
67456
67457
|
const crumbsTitlePath = t3, lastCrumb = crumbsTitlePath[crumbsTitlePath.length - 1];
|
|
67457
67458
|
let t4;
|
|
67458
67459
|
$[11] !== lastCrumb || $[12] !== t ? (t4 = t("list-item.breadcrumb-button-go-to-field-aria-label", {
|
|
@@ -67473,7 +67474,7 @@ function CommentThreadLayout(props2) {
|
|
|
67473
67474
|
t8
|
|
67474
67475
|
] }), $[32] = t6, $[33] = t7, $[34] = t8, $[35] = t9) : t9 = $[35], t9;
|
|
67475
67476
|
}
|
|
67476
|
-
function _temp$
|
|
67477
|
+
function _temp$13(p) {
|
|
67477
67478
|
return p.title;
|
|
67478
67479
|
}
|
|
67479
67480
|
function groupThreads(comments2) {
|
|
@@ -68069,7 +68070,7 @@ function useCommentOperations(opts) {
|
|
|
68069
68070
|
createAddonDataset,
|
|
68070
68071
|
workspace,
|
|
68071
68072
|
getCommentLink
|
|
68072
|
-
} = opts, getIntent = useCommentsIntent(), activeToolName = useRouterState(_temp$
|
|
68073
|
+
} = opts, getIntent = useCommentsIntent(), activeToolName = useRouterState(_temp$12), tools = useTools();
|
|
68073
68074
|
let t0;
|
|
68074
68075
|
if ($[0] !== activeToolName || $[1] !== tools) {
|
|
68075
68076
|
let t12;
|
|
@@ -68161,7 +68162,7 @@ function useCommentOperations(opts) {
|
|
|
68161
68162
|
operation: t7
|
|
68162
68163
|
}, $[44] = t7, $[45] = t8) : t8 = $[45], t8;
|
|
68163
68164
|
}
|
|
68164
|
-
function _temp$
|
|
68165
|
+
function _temp$12(routerState) {
|
|
68165
68166
|
return typeof routerState.tool == "string" ? routerState.tool : void 0;
|
|
68166
68167
|
}
|
|
68167
68168
|
function useComments() {
|
|
@@ -68350,7 +68351,7 @@ function useCommentsUpsell() {
|
|
|
68350
68351
|
let t0;
|
|
68351
68352
|
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
68352
68353
|
upsellData: null,
|
|
68353
|
-
handleOpenDialog: _temp$
|
|
68354
|
+
handleOpenDialog: _temp$11,
|
|
68354
68355
|
handleClose: _temp2$p,
|
|
68355
68356
|
upsellDialogOpen: !1,
|
|
68356
68357
|
telemetryLogs: {
|
|
@@ -68386,7 +68387,7 @@ function _temp3$c() {
|
|
|
68386
68387
|
function _temp2$p() {
|
|
68387
68388
|
return null;
|
|
68388
68389
|
}
|
|
68389
|
-
function _temp$
|
|
68390
|
+
function _temp$11() {
|
|
68390
68391
|
return null;
|
|
68391
68392
|
}
|
|
68392
68393
|
function useResolveCommentsEnabled(documentId, documentType) {
|
|
@@ -68661,7 +68662,7 @@ const EMPTY_ARRAY$8 = [], EMPTY_COMMENTS_DATA = {
|
|
|
68661
68662
|
}
|
|
68662
68663
|
t3 = editState2.draft || editState2.published;
|
|
68663
68664
|
}
|
|
68664
|
-
const documentValue = t3, documentRevisionId = documentValue?._rev, [transactionsIdMap] = useState(_temp
|
|
68665
|
+
const documentValue = t3, documentRevisionId = documentValue?._rev, [transactionsIdMap] = useState(_temp$10);
|
|
68665
68666
|
let t4;
|
|
68666
68667
|
$[5] !== transactionsIdMap ? (t4 = (commentDocumentId) => {
|
|
68667
68668
|
transactionsIdMap.delete(commentDocumentId);
|
|
@@ -68843,7 +68844,7 @@ const EMPTY_ARRAY$8 = [], EMPTY_COMMENTS_DATA = {
|
|
|
68843
68844
|
let t22;
|
|
68844
68845
|
return $[85] !== children || $[86] !== ctxValue ? (t22 = /* @__PURE__ */ jsx(CommentsContext.Provider, { value: ctxValue, children }), $[85] = children, $[86] = ctxValue, $[87] = t22) : t22 = $[87], t22;
|
|
68845
68846
|
});
|
|
68846
|
-
function _temp
|
|
68847
|
+
function _temp$10() {
|
|
68847
68848
|
return /* @__PURE__ */ new Map();
|
|
68848
68849
|
}
|
|
68849
68850
|
function _temp2$o(item) {
|
|
@@ -69175,7 +69176,7 @@ function CommentFieldInner(props2) {
|
|
|
69175
69176
|
let t5;
|
|
69176
69177
|
if ($[13] !== comments2.data.open || $[14] !== selectedPath?.threadId) {
|
|
69177
69178
|
let t62;
|
|
69178
|
-
$[16] !== selectedPath?.threadId ? (t62 = (c2) => c2.threadId === selectedPath?.threadId, $[16] = selectedPath?.threadId, $[17] = t62) : t62 = $[17], t5 = comments2.data.open.filter(t62).some(_temp
|
|
69179
|
+
$[16] !== selectedPath?.threadId ? (t62 = (c2) => c2.threadId === selectedPath?.threadId, $[16] = selectedPath?.threadId, $[17] = t62) : t62 = $[17], t5 = comments2.data.open.filter(t62).some(_temp$$), $[13] = comments2.data.open, $[14] = selectedPath?.threadId, $[15] = t5;
|
|
69179
69180
|
} else
|
|
69180
69181
|
t5 = $[15];
|
|
69181
69182
|
const isInlineCommentThread = t5;
|
|
@@ -69267,7 +69268,7 @@ function CommentFieldInner(props2) {
|
|
|
69267
69268
|
function _temp2$n(acc, val) {
|
|
69268
69269
|
return acc + val;
|
|
69269
69270
|
}
|
|
69270
|
-
function _temp
|
|
69271
|
+
function _temp$$(x) {
|
|
69271
69272
|
return isTextSelectionComment(x.parentComment);
|
|
69272
69273
|
}
|
|
69273
69274
|
function createDomRectFromElements(elements) {
|
|
@@ -69486,7 +69487,7 @@ const CommentsPortableTextInputInner = memo(function(props2) {
|
|
|
69486
69487
|
let t5;
|
|
69487
69488
|
if ($[9] !== comments2.data.open || $[10] !== stringFieldPath) {
|
|
69488
69489
|
let t62;
|
|
69489
|
-
$[12] !== stringFieldPath ? (t62 = (comment) => comment.fieldPath === stringFieldPath, $[12] = stringFieldPath, $[13] = t62) : t62 = $[13], t5 = comments2.data.open.filter(t62).filter(_temp$
|
|
69490
|
+
$[12] !== stringFieldPath ? (t62 = (comment) => comment.fieldPath === stringFieldPath, $[12] = stringFieldPath, $[13] = t62) : t62 = $[13], t5 = comments2.data.open.filter(t62).filter(_temp$_).map(_temp2$m), $[9] = comments2.data.open, $[10] = stringFieldPath, $[11] = t5;
|
|
69490
69491
|
} else
|
|
69491
69492
|
t5 = $[11];
|
|
69492
69493
|
const textComments = t5;
|
|
@@ -69728,7 +69729,7 @@ function useDebounceSelectionChange(handleSelectionChange) {
|
|
|
69728
69729
|
function RenderDefaultCommentsPortableTextInputInner(props2) {
|
|
69729
69730
|
return props2.renderDefault(props2);
|
|
69730
69731
|
}
|
|
69731
|
-
function _temp$
|
|
69732
|
+
function _temp$_(c2) {
|
|
69732
69733
|
return isTextSelectionComment(c2.parentComment);
|
|
69733
69734
|
}
|
|
69734
69735
|
function _temp2$m(c_0) {
|
|
@@ -70072,7 +70073,7 @@ function CommentsInspectorInner(props2) {
|
|
|
70072
70073
|
$[17] !== comments2.data.open || $[18] !== onPathOpen || $[19] !== scrollToField || $[20] !== scrollToInlineComment || $[21] !== setSelectedPath ? (t5 = (nextPath) => {
|
|
70073
70074
|
if (setSelectedPath(nextPath), nextPath?.fieldPath) {
|
|
70074
70075
|
const path = PathUtils.fromString(nextPath.fieldPath);
|
|
70075
|
-
onPathOpen?.(path), scrollToField(nextPath.fieldPath), comments2.data.open.filter((c2) => c2.threadId === nextPath?.threadId).some(_temp$
|
|
70076
|
+
onPathOpen?.(path), scrollToField(nextPath.fieldPath), comments2.data.open.filter((c2) => c2.threadId === nextPath?.threadId).some(_temp$Z) && nextPath.threadId && scrollToInlineComment(nextPath.threadId);
|
|
70076
70077
|
}
|
|
70077
70078
|
}, $[17] = comments2.data.open, $[18] = onPathOpen, $[19] = scrollToField, $[20] = scrollToInlineComment, $[21] = setSelectedPath, $[22] = t5) : t5 = $[22];
|
|
70078
70079
|
const handlePathSelect = t5;
|
|
@@ -70216,7 +70217,7 @@ function CommentsInspectorInner(props2) {
|
|
|
70216
70217
|
t29
|
|
70217
70218
|
] }), $[119] = t22, $[120] = t29, $[121] = t30) : t30 = $[121], t30;
|
|
70218
70219
|
}
|
|
70219
|
-
function _temp$
|
|
70220
|
+
function _temp$Z(x) {
|
|
70220
70221
|
return isTextSelectionComment(x.parentComment);
|
|
70221
70222
|
}
|
|
70222
70223
|
function useMenuItem() {
|
|
@@ -70537,7 +70538,7 @@ function CreateLinkedDocumentBannerContent(props2) {
|
|
|
70537
70538
|
t
|
|
70538
70539
|
} = useTranslation(createLocaleNamespace);
|
|
70539
70540
|
let t0;
|
|
70540
|
-
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setInfoOpen(_temp$
|
|
70541
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setInfoOpen(_temp$Y), $[0] = t0) : t0 = $[0];
|
|
70541
70542
|
const toggleOpen = t0;
|
|
70542
70543
|
let t1, t2;
|
|
70543
70544
|
$[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => setInfoOpen(!1), t2 = () => [popoverRef.current, infoButtonRef.current], $[1] = t1, $[2] = t2) : (t1 = $[1], t2 = $[2]), useClickOutsideEvent(t1, t2);
|
|
@@ -70620,7 +70621,7 @@ function CreateLinkedDocumentBannerContent(props2) {
|
|
|
70620
70621
|
t25
|
|
70621
70622
|
] }), $[48] = t19, $[49] = t25, $[50] = t26) : t26 = $[50], t26;
|
|
70622
70623
|
}
|
|
70623
|
-
function _temp$
|
|
70624
|
+
function _temp$Y(current) {
|
|
70624
70625
|
return !current;
|
|
70625
70626
|
}
|
|
70626
70627
|
function SanityCreateConfigProvider(props2) {
|
|
@@ -71078,7 +71079,7 @@ function useScheduleOperation() {
|
|
|
71078
71079
|
schedules: schedules2
|
|
71079
71080
|
} = t42, displayToast_1 = t52 === void 0 ? !0 : t52;
|
|
71080
71081
|
await (async () => {
|
|
71081
|
-
const scheduleIds = schedules2.map(_temp$
|
|
71082
|
+
const scheduleIds = schedules2.map(_temp$X), response = await api.deleteMultiple({
|
|
71082
71083
|
scheduleIds
|
|
71083
71084
|
}), {
|
|
71084
71085
|
fulfilledIds,
|
|
@@ -71189,7 +71190,7 @@ function useScheduleOperation() {
|
|
|
71189
71190
|
updateSchedule
|
|
71190
71191
|
}, $[18] = createSchedule, $[19] = deleteSchedule, $[20] = deleteSchedules, $[21] = publishSchedule, $[22] = updateSchedule, $[23] = t6) : t6 = $[23], t6;
|
|
71191
71192
|
}
|
|
71192
|
-
function _temp$
|
|
71193
|
+
function _temp$X(schedule_0) {
|
|
71193
71194
|
return schedule_0.id;
|
|
71194
71195
|
}
|
|
71195
71196
|
function useScheduleBaseUrl() {
|
|
@@ -71335,7 +71336,7 @@ function SchedulesProvider(t0) {
|
|
|
71335
71336
|
const scheduleDate = new Date(executeDate), zonedScheduleDate = utcToCurrentZoneDate(scheduleDate);
|
|
71336
71337
|
return isSameDay(zonedScheduleDate, wallDate);
|
|
71337
71338
|
}, $[1] = utcToCurrentZoneDate, $[2] = t2) : t2 = $[2];
|
|
71338
|
-
const filterByDate = t2, filterByState = _temp$
|
|
71339
|
+
const filterByDate = t2, filterByState = _temp$W;
|
|
71339
71340
|
let t3;
|
|
71340
71341
|
$[3] !== filterByDate || $[4] !== sortBy2 || $[5] !== value.scheduleState || $[6] !== value.schedules || $[7] !== value.selectedDate ? (t3 = value.schedules.filter((scheduleState_0) => value.selectedDate ? filterByDate(value.selectedDate)(scheduleState_0) : filterByState(value.scheduleState)(scheduleState_0)).sort((a, b) => {
|
|
71341
71342
|
if (sortBy2 === "createdAt")
|
|
@@ -71366,7 +71367,7 @@ function SchedulesProvider(t0) {
|
|
|
71366
71367
|
let t7;
|
|
71367
71368
|
return $[19] !== children || $[20] !== context ? (t7 = /* @__PURE__ */ jsx(SchedulesContext.Provider, { value: context, children }), $[19] = children, $[20] = context, $[21] = t7) : t7 = $[21], t7;
|
|
71368
71369
|
}
|
|
71369
|
-
function _temp$
|
|
71370
|
+
function _temp$W(scheduleState) {
|
|
71370
71371
|
return function(schedule_0) {
|
|
71371
71372
|
return schedule_0.state === scheduleState;
|
|
71372
71373
|
};
|
|
@@ -71782,7 +71783,7 @@ function CalendarMonth(props2) {
|
|
|
71782
71783
|
let t1, t2;
|
|
71783
71784
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = {
|
|
71784
71785
|
gridTemplateColumns: "repeat(7, minmax(44px, 46px))"
|
|
71785
|
-
}, t2 = WEEK_DAY_NAMES.map(_temp$
|
|
71786
|
+
}, t2 = WEEK_DAY_NAMES.map(_temp$V), $[0] = t1, $[1] = t2) : (t1 = $[0], t2 = $[1]);
|
|
71786
71787
|
let t3;
|
|
71787
71788
|
if ($[2] !== customValidation || $[3] !== getCurrentZoneDate || $[4] !== props2.date || $[5] !== props2.focused || $[6] !== props2.onSelect || $[7] !== props2.selected) {
|
|
71788
71789
|
let t42;
|
|
@@ -71800,7 +71801,7 @@ function CalendarMonth(props2) {
|
|
|
71800
71801
|
let t5;
|
|
71801
71802
|
return $[17] !== t0 || $[18] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { "aria-hidden": t0, "data-ui": "CalendarMonth", children: t4 }), $[17] = t0, $[18] = t4, $[19] = t5) : t5 = $[19], t5;
|
|
71802
71803
|
}
|
|
71803
|
-
function _temp$
|
|
71804
|
+
function _temp$V(weekday) {
|
|
71804
71805
|
return /* @__PURE__ */ jsx(Box, { paddingY: 2, children: /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "medium", style: {
|
|
71805
71806
|
textAlign: "center"
|
|
71806
71807
|
}, children: weekday }) }, weekday);
|
|
@@ -71945,7 +71946,7 @@ const features = {
|
|
|
71945
71946
|
}, children: [
|
|
71946
71947
|
/* @__PURE__ */ jsxs(Flex, { align: "center", children: [
|
|
71947
71948
|
/* @__PURE__ */ jsxs(Flex, { align: "center", flex: 1, children: [
|
|
71948
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Select, { "aria-label": "Select hour", value: selectedDate?.getHours(), onChange: handleHoursChange, children: HOURS_24.map(_temp$
|
|
71949
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Select, { "aria-label": "Select hour", value: selectedDate?.getHours(), onChange: handleHoursChange, children: HOURS_24.map(_temp$U) }) }),
|
|
71949
71950
|
/* @__PURE__ */ jsx(Box, { paddingX: 1, children: /* @__PURE__ */ jsx(Text$1, { children: ":" }) }),
|
|
71950
71951
|
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Select, { "aria-label": "Select minutes", value: selectedDate?.getMinutes(), onChange: handleMinutesChange, children: range(0, 60, timeStep).map(_temp2$l) }) })
|
|
71951
71952
|
] }),
|
|
@@ -72018,7 +72019,7 @@ function CalendarYearSelect(props2) {
|
|
|
72018
72019
|
t5
|
|
72019
72020
|
] }), $[12] = t2, $[13] = t4, $[14] = t5, $[15] = t6) : t6 = $[15], t6;
|
|
72020
72021
|
}
|
|
72021
|
-
function _temp$
|
|
72022
|
+
function _temp$U(h) {
|
|
72022
72023
|
return /* @__PURE__ */ jsx("option", { value: h, children: `${h}`.padStart(2, "0") }, h);
|
|
72023
72024
|
}
|
|
72024
72025
|
function _temp2$l(m_1) {
|
|
@@ -72147,7 +72148,7 @@ const DatePicker = forwardRef(function(props2, ref) {
|
|
|
72147
72148
|
$[32] !== deserialize2 || $[33] !== formatInputValue || $[34] !== localValue || $[35] !== parseInputValue || $[36] !== value ? (parseResult = localValue ? parseInputValue(localValue) : value ? deserialize2(value) : null, t5 = localValue || (parseResult?.isValid ? formatInputValue(parseResult.date) : value), $[32] = deserialize2, $[33] = formatInputValue, $[34] = localValue, $[35] = parseInputValue, $[36] = value, $[37] = parseResult, $[38] = t5) : (parseResult = $[37], t5 = $[38]);
|
|
72148
72149
|
const inputValue = t5;
|
|
72149
72150
|
let t6;
|
|
72150
|
-
$[39] !== markers ? (t6 = markers.map(_temp$
|
|
72151
|
+
$[39] !== markers ? (t6 = markers.map(_temp$T), $[39] = markers, $[40] = t6) : t6 = $[40];
|
|
72151
72152
|
const nodeValidations = t6;
|
|
72152
72153
|
let t7;
|
|
72153
72154
|
$[41] !== nodeValidations || $[42] !== parseResult ? (t7 = parseResult?.error ? [...nodeValidations, {
|
|
@@ -72160,7 +72161,7 @@ const DatePicker = forwardRef(function(props2, ref) {
|
|
|
72160
72161
|
let t9;
|
|
72161
72162
|
return $[59] !== description || $[60] !== id2 || $[61] !== level || $[62] !== t7 || $[63] !== t8 || $[64] !== title ? (t9 = /* @__PURE__ */ jsx(FormField, { validation: t7, title, level, description, inputId: id2, children: t8 }), $[59] = description, $[60] = id2, $[61] = level, $[62] = t7, $[63] = t8, $[64] = title, $[65] = t9) : t9 = $[65], t9;
|
|
72162
72163
|
});
|
|
72163
|
-
function _temp$
|
|
72164
|
+
function _temp$T(m) {
|
|
72164
72165
|
return {
|
|
72165
72166
|
level: m.level,
|
|
72166
72167
|
path: m.path,
|
|
@@ -72564,7 +72565,7 @@ function ValidationRunner(t0) {
|
|
|
72564
72565
|
} = t0;
|
|
72565
72566
|
let t1;
|
|
72566
72567
|
$[0] !== id2 ? (t1 = getDraftId(id2), $[0] = id2, $[1] = t1) : t1 = $[1];
|
|
72567
|
-
const validationStatus = useValidationStatus(t1, schemaName);
|
|
72568
|
+
const validationStatus = useValidationStatus(t1, schemaName, !0);
|
|
72568
72569
|
let t2, t3;
|
|
72569
72570
|
return $[2] !== updateValidation || $[3] !== validationStatus ? (t2 = () => {
|
|
72570
72571
|
validationStatus.isValidating || updateValidation(validationStatus);
|
|
@@ -73333,7 +73334,7 @@ function CalendarDay(props2) {
|
|
|
73333
73334
|
isToday2 || selected ? tone = "primary" : (isWeekend(date), tone = "default");
|
|
73334
73335
|
const hasSchedules = schedules2.length > 0;
|
|
73335
73336
|
let t2;
|
|
73336
|
-
$[7] !== schedules2 ? (t2 = schedules2.filter(_temp$
|
|
73337
|
+
$[7] !== schedules2 ? (t2 = schedules2.filter(_temp$S), $[7] = schedules2, $[8] = t2) : t2 = $[8];
|
|
73337
73338
|
let t3;
|
|
73338
73339
|
$[9] !== schedules2 ? (t3 = schedules2.filter(_temp2$k), $[9] = schedules2, $[10] = t3) : t3 = $[10];
|
|
73339
73340
|
let t4;
|
|
@@ -73404,7 +73405,7 @@ function _temp3$8(s_1) {
|
|
|
73404
73405
|
function _temp2$k(s_0) {
|
|
73405
73406
|
return s_0.state === "cancelled";
|
|
73406
73407
|
}
|
|
73407
|
-
function _temp$
|
|
73408
|
+
function _temp$S(s) {
|
|
73408
73409
|
return s.state === "succeeded";
|
|
73409
73410
|
}
|
|
73410
73411
|
function TooltipContent(props2) {
|
|
@@ -73691,7 +73692,7 @@ function ValidationWarning(t0) {
|
|
|
73691
73692
|
const draftId = t1;
|
|
73692
73693
|
let t2;
|
|
73693
73694
|
$[2] !== id2 ? (t2 = getPublishedId(id2), $[2] = id2, $[3] = t2) : t2 = $[3];
|
|
73694
|
-
const publishedId = t2, validationStatus = useValidationStatus(draftId, type), {
|
|
73695
|
+
const publishedId = t2, validationStatus = useValidationStatus(draftId, type, !0), {
|
|
73695
73696
|
hasError
|
|
73696
73697
|
} = useValidationState(validationStatus.validation);
|
|
73697
73698
|
if (!hasError)
|
|
@@ -73711,9 +73712,9 @@ const Schedules = (props2) => {
|
|
|
73711
73712
|
schedules: schedules2
|
|
73712
73713
|
} = props2;
|
|
73713
73714
|
let t0;
|
|
73714
|
-
return $[0] !== schedules2 ? (t0 = /* @__PURE__ */ jsx(Stack, { space: 4, children: schedules2.length === 0 ? /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { size: 1, children: "No schedules" }) }) : /* @__PURE__ */ jsx(Stack, { space: 2, children: schedules2.map(_temp$
|
|
73715
|
+
return $[0] !== schedules2 ? (t0 = /* @__PURE__ */ jsx(Stack, { space: 4, children: schedules2.length === 0 ? /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { size: 1, children: "No schedules" }) }) : /* @__PURE__ */ jsx(Stack, { space: 2, children: schedules2.map(_temp$R) }) }), $[0] = schedules2, $[1] = t0) : t0 = $[1], t0;
|
|
73715
73716
|
};
|
|
73716
|
-
function _temp$
|
|
73717
|
+
function _temp$R(schedule) {
|
|
73717
73718
|
return /* @__PURE__ */ jsx(ScheduleItem, { schedule, type: "document" }, schedule.id);
|
|
73718
73719
|
}
|
|
73719
73720
|
const debug$6 = debugWithName$1("ScheduleAction"), useScheduleAction = (props2) => {
|
|
@@ -73888,7 +73889,7 @@ function ScheduleBanner(props2) {
|
|
|
73888
73889
|
] })
|
|
73889
73890
|
] }), $[7] = t5) : t5 = $[7];
|
|
73890
73891
|
let t6;
|
|
73891
|
-
$[8] !== schedules2 ? (t6 = schedules2.map(_temp$
|
|
73892
|
+
$[8] !== schedules2 ? (t6 = schedules2.map(_temp$Q), $[8] = schedules2, $[9] = t6) : t6 = $[9];
|
|
73892
73893
|
let t7;
|
|
73893
73894
|
$[10] !== t6 ? (t7 = /* @__PURE__ */ jsx(Stack, { space: 2, children: t6 }), $[10] = t6, $[11] = t7) : t7 = $[11];
|
|
73894
73895
|
let t8;
|
|
@@ -73907,7 +73908,7 @@ function ScheduleBanner(props2) {
|
|
|
73907
73908
|
t10
|
|
73908
73909
|
] }), $[21] = t1, $[22] = t10, $[23] = t11) : t11 = $[23], t11;
|
|
73909
73910
|
}
|
|
73910
|
-
function _temp$
|
|
73911
|
+
function _temp$Q(schedule) {
|
|
73911
73912
|
if (!schedule.executeAt)
|
|
73912
73913
|
return null;
|
|
73913
73914
|
const formattedDateTime = format(new Date(schedule.executeAt), DATE_FORMAT.LARGE);
|
|
@@ -73925,7 +73926,7 @@ function ScheduledDocumentInput(props2) {
|
|
|
73925
73926
|
children
|
|
73926
73927
|
} = props2, doc = value;
|
|
73927
73928
|
let t0;
|
|
73928
|
-
$[0] !== validation2 ? (t0 = validation2.map(_temp$
|
|
73929
|
+
$[0] !== validation2 ? (t0 = validation2.map(_temp$P), $[0] = validation2, $[1] = t0) : t0 = $[1];
|
|
73929
73930
|
const markers = t0;
|
|
73930
73931
|
let t1;
|
|
73931
73932
|
$[2] !== doc || $[3] !== markers ? (t1 = doc?._id ? /* @__PURE__ */ jsx(ScheduleBanner, { id: doc._id, markers }) : null, $[2] = doc, $[3] = markers, $[4] = t1) : t1 = $[4];
|
|
@@ -73935,7 +73936,7 @@ function ScheduledDocumentInput(props2) {
|
|
|
73935
73936
|
children
|
|
73936
73937
|
] }), $[5] = children, $[6] = t1, $[7] = t2) : t2 = $[7], t2;
|
|
73937
73938
|
}
|
|
73938
|
-
function _temp$
|
|
73939
|
+
function _temp$P(v) {
|
|
73939
73940
|
return {
|
|
73940
73941
|
level: v.level,
|
|
73941
73942
|
path: v.path,
|
|
@@ -74504,14 +74505,14 @@ function useTasks() {
|
|
|
74504
74505
|
let t0;
|
|
74505
74506
|
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
74506
74507
|
activeDocument: null,
|
|
74507
|
-
setActiveDocument: _temp$
|
|
74508
|
+
setActiveDocument: _temp$O,
|
|
74508
74509
|
data: [],
|
|
74509
74510
|
isLoading: !1
|
|
74510
74511
|
}, $[0] = t0) : t0 = $[0], t0;
|
|
74511
74512
|
}
|
|
74512
74513
|
return context;
|
|
74513
74514
|
}
|
|
74514
|
-
function _temp$
|
|
74515
|
+
function _temp$O() {
|
|
74515
74516
|
return null;
|
|
74516
74517
|
}
|
|
74517
74518
|
function TasksUpsellProvider(props2) {
|
|
@@ -74873,7 +74874,7 @@ function useRemoveTask(t0) {
|
|
|
74873
74874
|
let t1;
|
|
74874
74875
|
$[0] !== id2 || $[1] !== onError || $[2] !== onRemoved || $[3] !== operations ? (t1 = async () => {
|
|
74875
74876
|
const run = async () => {
|
|
74876
|
-
setRemoveStatus("loading"), await operations.remove(id2), onRemoved?.(), setRemoveStatus("idle"), await new Promise(_temp$
|
|
74877
|
+
setRemoveStatus("loading"), await operations.remove(id2), onRemoved?.(), setRemoveStatus("idle"), await new Promise(_temp$N), setShowDialog(!1);
|
|
74877
74878
|
};
|
|
74878
74879
|
try {
|
|
74879
74880
|
await run();
|
|
@@ -74904,7 +74905,7 @@ function useRemoveTask(t0) {
|
|
|
74904
74905
|
handleCloseDialog
|
|
74905
74906
|
}, $[7] = error, $[8] = handleRemove, $[9] = removeStatus, $[10] = showDialog, $[11] = t4) : t4 = $[11], t4;
|
|
74906
74907
|
}
|
|
74907
|
-
function _temp$
|
|
74908
|
+
function _temp$N(resolve) {
|
|
74908
74909
|
return setTimeout(resolve, 300);
|
|
74909
74910
|
}
|
|
74910
74911
|
const DATE_FORMAT_OPTIONS$1 = {
|
|
@@ -75314,11 +75315,11 @@ function TasksSubscriberAvatars(props2) {
|
|
|
75314
75315
|
$[0] !== subscriberIdsProp ? (t0 = subscriberIdsProp?.filter(Boolean) || EMPTY_ARRAY$4, $[0] = subscriberIdsProp, $[1] = t0) : t0 = $[1];
|
|
75315
75316
|
const subscriberIds = t0;
|
|
75316
75317
|
let t1;
|
|
75317
|
-
$[2] !== subscriberIds ? (t1 = subscriberIds.map(_temp$
|
|
75318
|
+
$[2] !== subscriberIds ? (t1 = subscriberIds.map(_temp$M), $[2] = subscriberIds, $[3] = t1) : t1 = $[3];
|
|
75318
75319
|
let t2;
|
|
75319
75320
|
return $[4] !== t1 ? (t2 = /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, children: /* @__PURE__ */ jsx(AvatarStack, { maxLength: 3, size: 0, children: t1 }) }), $[4] = t1, $[5] = t2) : t2 = $[5], t2;
|
|
75320
75321
|
}
|
|
75321
|
-
function _temp$
|
|
75322
|
+
function _temp$M(subscriberId) {
|
|
75322
75323
|
return /* @__PURE__ */ jsx(motion.div, { exit: {
|
|
75323
75324
|
opacity: 0,
|
|
75324
75325
|
x: "2px",
|
|
@@ -75464,7 +75465,7 @@ function TasksActivityLog(props2) {
|
|
|
75464
75465
|
const handleCommentEdit = t10;
|
|
75465
75466
|
let t11;
|
|
75466
75467
|
if ($[30] !== activityData || $[31] !== taskComments) {
|
|
75467
|
-
const taskActivity = activityData.map(_temp$
|
|
75468
|
+
const taskActivity = activityData.map(_temp$L), commentsActivity = taskComments.map(_temp2$j);
|
|
75468
75469
|
t11 = taskActivity.concat(commentsActivity).sort(_temp3$7), $[30] = activityData, $[31] = taskComments, $[32] = t11;
|
|
75469
75470
|
} else
|
|
75470
75471
|
t11 = $[32];
|
|
@@ -75525,7 +75526,7 @@ function _temp2$j(comment_0) {
|
|
|
75525
75526
|
timestamp: comment_0.parentComment._createdAt
|
|
75526
75527
|
};
|
|
75527
75528
|
}
|
|
75528
|
-
function _temp$
|
|
75529
|
+
function _temp$L(item) {
|
|
75529
75530
|
return {
|
|
75530
75531
|
_type: "activity",
|
|
75531
75532
|
payload: item,
|
|
@@ -75597,7 +75598,7 @@ function MentionsMenu(t0) {
|
|
|
75597
75598
|
let t62;
|
|
75598
75599
|
if ($[6] !== options || $[7] !== searchTerm) {
|
|
75599
75600
|
const deburredSearchTerm = deburr(searchTerm).toLocaleLowerCase();
|
|
75600
|
-
t62 = options?.map(_temp$
|
|
75601
|
+
t62 = options?.map(_temp$K)?.filter((option_0) => option_0?.searchName.includes(deburredSearchTerm))?.sort((a, b) => {
|
|
75601
75602
|
const matchA = a.searchName.startsWith(deburredSearchTerm), matchB = b.searchName.startsWith(deburredSearchTerm);
|
|
75602
75603
|
return matchA && !matchB ? -1 : !matchA && matchB ? 1 : 0;
|
|
75603
75604
|
}), $[6] = options, $[7] = searchTerm, $[8] = t62;
|
|
@@ -75640,7 +75641,7 @@ function MentionsMenu(t0) {
|
|
|
75640
75641
|
t11
|
|
75641
75642
|
] }), $[26] = t11, $[27] = t9, $[28] = t12) : t12 = $[28], t12;
|
|
75642
75643
|
}
|
|
75643
|
-
function _temp$
|
|
75644
|
+
function _temp$K(option) {
|
|
75644
75645
|
return {
|
|
75645
75646
|
...option,
|
|
75646
75647
|
searchName: deburr(option.displayName || "").toLocaleLowerCase()
|
|
@@ -75855,7 +75856,7 @@ function DateEditFormField(props2) {
|
|
|
75855
75856
|
}, $[12] = t3) : t3 = $[12];
|
|
75856
75857
|
const handleKeyUp = t3;
|
|
75857
75858
|
let t4;
|
|
75858
|
-
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setPickerOpen(_temp$
|
|
75859
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => setPickerOpen(_temp$J), $[13] = t4) : t4 = $[13];
|
|
75859
75860
|
const handleClick = t4;
|
|
75860
75861
|
let t5;
|
|
75861
75862
|
$[14] !== coreT ? (t5 = getCalendarLabels(coreT), $[14] = coreT, $[15] = t5) : t5 = $[15];
|
|
@@ -75898,7 +75899,7 @@ function DateEditFormField(props2) {
|
|
|
75898
75899
|
let t16;
|
|
75899
75900
|
return $[45] !== pickerOpen || $[46] !== t10 || $[47] !== t15 ? (t16 = /* @__PURE__ */ jsx(Popover, { constrainSize: !0, "data-testid": "date-input-dialog", portal: !0, ref: popoverRef, content: t10, open: pickerOpen, placement: "bottom", fallbackPlacements: t11, children: t15 }), $[45] = pickerOpen, $[46] = t10, $[47] = t15, $[48] = t16) : t16 = $[48], t16;
|
|
75900
75901
|
}
|
|
75901
|
-
function _temp$
|
|
75902
|
+
function _temp$J(p) {
|
|
75902
75903
|
return !p;
|
|
75903
75904
|
}
|
|
75904
75905
|
const NormalText = styled(Text$1)`
|
|
@@ -75976,11 +75977,11 @@ function DescriptionInput(props2) {
|
|
|
75976
75977
|
let t7;
|
|
75977
75978
|
$[11] !== t ? (t7 = t("form.input.description.placeholder"), $[11] = t, $[12] = t7) : t7 = $[12];
|
|
75978
75979
|
let t8;
|
|
75979
|
-
$[13] !== currentUser || $[14] !== handleChange || $[15] !== mentionOptions || $[16] !== t6 || $[17] !== t7 ? (t8 = /* @__PURE__ */ jsx(CommentInput, { expandOnFocus: !1, currentUser, mentionOptions, onChange: handleChange, value: t6, withAvatar: !1, placeholder: t7, onDiscardConfirm: _temp$
|
|
75980
|
+
$[13] !== currentUser || $[14] !== handleChange || $[15] !== mentionOptions || $[16] !== t6 || $[17] !== t7 ? (t8 = /* @__PURE__ */ jsx(CommentInput, { expandOnFocus: !1, currentUser, mentionOptions, onChange: handleChange, value: t6, withAvatar: !1, placeholder: t7, onDiscardConfirm: _temp$I, renderBlock }), $[13] = currentUser, $[14] = handleChange, $[15] = mentionOptions, $[16] = t6, $[17] = t7, $[18] = t8) : t8 = $[18];
|
|
75980
75981
|
let t9;
|
|
75981
75982
|
return $[19] !== mode || $[20] !== t8 || $[21] !== textBoxScrollHeight ? (t9 = /* @__PURE__ */ jsx(DescriptionInputRoot, { $mode: mode, ref: handleSetRootRef, $minHeight: textBoxScrollHeight, children: t8 }), $[19] = mode, $[20] = t8, $[21] = textBoxScrollHeight, $[22] = t9) : t9 = $[22], t9;
|
|
75982
75983
|
}
|
|
75983
|
-
function _temp$
|
|
75984
|
+
function _temp$I() {
|
|
75984
75985
|
return null;
|
|
75985
75986
|
}
|
|
75986
75987
|
const FieldWrapperRoot = styled.div((props2) => {
|
|
@@ -76327,7 +76328,7 @@ function FormCreate(props2) {
|
|
|
76327
76328
|
setActiveTab
|
|
76328
76329
|
} = useTasksNavigation(), toast = useToast(), telemetry = useTelemetry(), [createMore, setCreateMore] = useState(!1);
|
|
76329
76330
|
let t0;
|
|
76330
|
-
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setCreateMore(_temp$
|
|
76331
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = () => setCreateMore(_temp$H), $[0] = t0) : t0 = $[0];
|
|
76331
76332
|
const handleCreateMore = t0, value = props2.value;
|
|
76332
76333
|
let t1;
|
|
76333
76334
|
$[1] !== setViewMode ? (t1 = () => {
|
|
@@ -76438,7 +76439,7 @@ function FormCreate(props2) {
|
|
|
76438
76439
|
t20
|
|
76439
76440
|
] }), $[64] = t12, $[65] = t20, $[66] = t21) : t21 = $[66], t21;
|
|
76440
76441
|
}
|
|
76441
|
-
function _temp$
|
|
76442
|
+
function _temp$H(p) {
|
|
76442
76443
|
return !p;
|
|
76443
76444
|
}
|
|
76444
76445
|
function RemoveTaskDialog(props2) {
|
|
@@ -76568,7 +76569,7 @@ function FormActionsMenu(t0) {
|
|
|
76568
76569
|
function FormEditInner(props2) {
|
|
76569
76570
|
const $ = c(52);
|
|
76570
76571
|
let t0;
|
|
76571
|
-
$[0] !== props2.schemaType.fields ? (t0 = props2.schemaType.fields.find(_temp$
|
|
76572
|
+
$[0] !== props2.schemaType.fields ? (t0 = props2.schemaType.fields.find(_temp$G), $[0] = props2.schemaType.fields, $[1] = t0) : t0 = $[1];
|
|
76572
76573
|
const statusField = t0, value = props2.value, currentUser = useCurrentUser(), {
|
|
76573
76574
|
t
|
|
76574
76575
|
} = useTranslation(tasksLocaleNamespace), activityData = useActivityLog(value).changes;
|
|
@@ -76636,7 +76637,7 @@ function FormEditInner(props2) {
|
|
|
76636
76637
|
t22
|
|
76637
76638
|
] }), $[47] = t18, $[48] = t19, $[49] = t22, $[50] = t8, $[51] = t23) : t23 = $[51], t23;
|
|
76638
76639
|
}
|
|
76639
|
-
function _temp$
|
|
76640
|
+
function _temp$G(f) {
|
|
76640
76641
|
return f.name === "status";
|
|
76641
76642
|
}
|
|
76642
76643
|
function FormEdit(props2) {
|
|
@@ -76688,7 +76689,7 @@ function TasksNotificationTargetInner(props2) {
|
|
|
76688
76689
|
inputProps
|
|
76689
76690
|
} = props2, {
|
|
76690
76691
|
onChange
|
|
76691
|
-
} = inputProps, activeToolName = useRouterState(_temp$
|
|
76692
|
+
} = inputProps, activeToolName = useRouterState(_temp$F);
|
|
76692
76693
|
let t0;
|
|
76693
76694
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = [], $[0] = t0) : t0 = $[0];
|
|
76694
76695
|
const {
|
|
@@ -76738,7 +76739,7 @@ function TasksNotificationTargetInner(props2) {
|
|
|
76738
76739
|
let t7;
|
|
76739
76740
|
return $[29] !== _rev || $[30] !== context || $[31] !== documentId || $[32] !== documentType || $[33] !== notificationTarget || $[34] !== onChange || $[35] !== previewValuesLoading ? (t7 = [_rev, context, documentId, documentType, notificationTarget, previewValuesLoading, onChange], $[29] = _rev, $[30] = context, $[31] = documentId, $[32] = documentType, $[33] = notificationTarget, $[34] = onChange, $[35] = previewValuesLoading, $[36] = t7) : t7 = $[36], useEffect(t6, t7), null;
|
|
76740
76741
|
}
|
|
76741
|
-
function _temp$
|
|
76742
|
+
function _temp$F(routerState) {
|
|
76742
76743
|
return typeof routerState.tool == "string" ? routerState.tool : void 0;
|
|
76743
76744
|
}
|
|
76744
76745
|
function TasksNotificationTarget(props2) {
|
|
@@ -76976,7 +76977,7 @@ const VARIANTS = {
|
|
|
76976
76977
|
const $ = c(25), {
|
|
76977
76978
|
documentId,
|
|
76978
76979
|
initialValue
|
|
76979
|
-
} = t0, [patchChannel] = useState(_temp$
|
|
76980
|
+
} = t0, [patchChannel] = useState(_temp$E);
|
|
76980
76981
|
let t1;
|
|
76981
76982
|
$[0] !== initialValue ? (t1 = initialValue ? {
|
|
76982
76983
|
loading: !1,
|
|
@@ -77089,7 +77090,7 @@ function TasksFormBuilder() {
|
|
|
77089
77090
|
let t4;
|
|
77090
77091
|
return $[20] !== t2 || $[21] !== t3 ? (t4 = /* @__PURE__ */ jsx(MentionUserProvider, { children: /* @__PURE__ */ jsx(TasksAddonWorkspaceProvider, { mode: t2, children: t3 }) }), $[20] = t2, $[21] = t3, $[22] = t4) : t4 = $[22], t4;
|
|
77091
77092
|
}
|
|
77092
|
-
function _temp$
|
|
77093
|
+
function _temp$E() {
|
|
77093
77094
|
return createPatchChannel();
|
|
77094
77095
|
}
|
|
77095
77096
|
const HEADING_BY_STATUS = {
|
|
@@ -77448,7 +77449,7 @@ function TasksList(props2) {
|
|
|
77448
77449
|
onTaskSelect
|
|
77449
77450
|
} = props2, items = t0 === void 0 ? EMPTY_ARRAY$2 : t0;
|
|
77450
77451
|
let t1;
|
|
77451
|
-
$[0] !== items ? (t1 = items.reduce(_temp$
|
|
77452
|
+
$[0] !== items ? (t1 = items.reduce(_temp$D, {}), $[0] = items, $[1] = t1) : t1 = $[1];
|
|
77452
77453
|
const tasksByStatus = t1, hasOpenTasks = tasksByStatus.open?.length > 0, hasClosedTasks = tasksByStatus.closed?.length > 0;
|
|
77453
77454
|
let t2;
|
|
77454
77455
|
return $[2] !== hasClosedTasks || $[3] !== hasOpenTasks || $[4] !== onTaskSelect || $[5] !== tasksByStatus.closed || $[6] !== tasksByStatus.open ? (t2 = /* @__PURE__ */ jsx(Stack, { space: 4, flex: 1, children: !hasOpenTasks && !hasClosedTasks ? /* @__PURE__ */ jsx(EmptyTasksListState, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -77456,7 +77457,7 @@ function TasksList(props2) {
|
|
|
77456
77457
|
/* @__PURE__ */ jsx(TaskList, { status: "closed", tasks: tasksByStatus.closed, onTaskSelect })
|
|
77457
77458
|
] }) }), $[2] = hasClosedTasks, $[3] = hasOpenTasks, $[4] = onTaskSelect, $[5] = tasksByStatus.closed, $[6] = tasksByStatus.open, $[7] = t2) : t2 = $[7], t2;
|
|
77458
77459
|
}
|
|
77459
|
-
function _temp$
|
|
77460
|
+
function _temp$D(acc, task) {
|
|
77460
77461
|
return acc[task.status] || (acc[task.status] = []), acc[task.status].push(task), acc;
|
|
77461
77462
|
}
|
|
77462
77463
|
function TasksUpsellPanel() {
|
|
@@ -77564,7 +77565,7 @@ function TasksActiveTabNavigation(props2) {
|
|
|
77564
77565
|
} = state;
|
|
77565
77566
|
let items, t0;
|
|
77566
77567
|
if ($[0] !== allItems || $[1] !== selectedTask) {
|
|
77567
|
-
items = allItems.filter(_temp$
|
|
77568
|
+
items = allItems.filter(_temp$C);
|
|
77568
77569
|
let t15;
|
|
77569
77570
|
$[4] !== selectedTask ? (t15 = (item) => item._id === selectedTask, $[4] = selectedTask, $[5] = t15) : t15 = $[5], t0 = items.findIndex(t15), $[0] = allItems, $[1] = selectedTask, $[2] = items, $[3] = t0;
|
|
77570
77571
|
} else
|
|
@@ -77629,7 +77630,7 @@ function TasksActiveTabNavigation(props2) {
|
|
|
77629
77630
|
t13
|
|
77630
77631
|
] }) }), $[37] = t12, $[38] = t5, $[39] = t9, $[40] = t14) : t14 = $[40], t14;
|
|
77631
77632
|
}
|
|
77632
|
-
function _temp$
|
|
77633
|
+
function _temp$C(t) {
|
|
77633
77634
|
return t.status === "open";
|
|
77634
77635
|
}
|
|
77635
77636
|
const MENU_BUTTON_POPOVER_PROPS = {
|
|
@@ -78992,12 +78993,12 @@ function useSyncPathnameWithWorkspace(history2, _workspaces) {
|
|
|
78992
78993
|
getSnapshot: t3,
|
|
78993
78994
|
getServerSnapshot: t4,
|
|
78994
78995
|
selector: t5,
|
|
78995
|
-
isEqual: _temp$
|
|
78996
|
+
isEqual: _temp$B
|
|
78996
78997
|
}, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6) : t6 = $[17];
|
|
78997
78998
|
const store = t6;
|
|
78998
78999
|
return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getServerSnapshot, store.selector, store.isEqual);
|
|
78999
79000
|
}
|
|
79000
|
-
function _temp$
|
|
79001
|
+
function _temp$B(a, b) {
|
|
79001
79002
|
if (a.type !== b.type)
|
|
79002
79003
|
return !1;
|
|
79003
79004
|
switch (a.type) {
|
|
@@ -79106,7 +79107,7 @@ function ColorSchemeLocalStorageProvider(t0) {
|
|
|
79106
79107
|
const $ = c(10), {
|
|
79107
79108
|
children,
|
|
79108
79109
|
onSchemeChange
|
|
79109
|
-
} = t0, scheme = useSyncExternalStore(subscribe, getSnapshot, _temp$
|
|
79110
|
+
} = t0, scheme = useSyncExternalStore(subscribe, getSnapshot, _temp$A);
|
|
79110
79111
|
let t1, t2;
|
|
79111
79112
|
$[0] !== onSchemeChange || $[1] !== scheme ? (t1 = () => {
|
|
79112
79113
|
typeof onSchemeChange == "function" && onSchemeChange(scheme), localStorage.setItem(LOCAL_STORAGE_KEY, scheme);
|
|
@@ -79116,7 +79117,7 @@ function ColorSchemeLocalStorageProvider(t0) {
|
|
|
79116
79117
|
let t4;
|
|
79117
79118
|
return $[7] !== scheme || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx(ColorSchemeSetValueContext.Provider, { value: setSnapshot, children: /* @__PURE__ */ jsx(ColorSchemeValueContext.Provider, { value: scheme, children: t3 }) }), $[7] = scheme, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
|
|
79118
79119
|
}
|
|
79119
|
-
function _temp$
|
|
79120
|
+
function _temp$A() {
|
|
79120
79121
|
return "system";
|
|
79121
79122
|
}
|
|
79122
79123
|
function ColorSchemeCustomProvider(t0) {
|
|
@@ -79332,7 +79333,7 @@ function ReleasesToolLink() {
|
|
|
79332
79333
|
t
|
|
79333
79334
|
} = useTranslation(), {
|
|
79334
79335
|
errorCount$
|
|
79335
|
-
} = useReleasesStore(), hasError = useObservable(errorCount$) !== 0, activeToolName = useRouterState(_temp$
|
|
79336
|
+
} = useReleasesStore(), hasError = useObservable(errorCount$) !== 0, activeToolName = useRouterState(_temp$z);
|
|
79336
79337
|
let t0;
|
|
79337
79338
|
$[0] !== t ? (t0 = t("release.navbar.tooltip"), $[0] = t, $[1] = t0) : t0 = $[1];
|
|
79338
79339
|
const t1 = activeToolName === SCHEDULES_TOOL_NAME;
|
|
@@ -79345,7 +79346,7 @@ function ReleasesToolLink() {
|
|
|
79345
79346
|
let t4;
|
|
79346
79347
|
return $[7] !== t0 || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx(Tooltip, { content: t0, children: t3 }), $[7] = t0, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
|
|
79347
79348
|
}
|
|
79348
|
-
function _temp$
|
|
79349
|
+
function _temp$z(routerState) {
|
|
79349
79350
|
return typeof routerState.tool == "string" ? routerState.tool : void 0;
|
|
79350
79351
|
}
|
|
79351
79352
|
const OversizedButton$1 = styled(IntentLink)`
|
|
@@ -79440,7 +79441,10 @@ function CurrentGlobalPerspectiveLabel(t0) {
|
|
|
79440
79441
|
$[0] !== selectedPerspective || $[1] !== t ? (t2 = isPublishedPerspective(selectedPerspective) || isDraftPerspective(selectedPerspective) ? /* @__PURE__ */ jsx(Box, { padding: 2, style: {
|
|
79441
79442
|
userSelect: "none",
|
|
79442
79443
|
overflow: "hidden"
|
|
79443
|
-
}, children: /* @__PURE__ */ jsx(Text$1, { size: 1, textOverflow: "ellipsis", weight: "medium", children: isPublishedPerspective(selectedPerspective) ? t("release.chip.published") : t("release.chip.global.drafts") }) }) : /* @__PURE__ */ jsx(ReleasesLink, { selectedPerspective })
|
|
79444
|
+
}, children: /* @__PURE__ */ jsx(Text$1, { size: 1, textOverflow: "ellipsis", weight: "medium", children: isPublishedPerspective(selectedPerspective) ? t("release.chip.published") : t("release.chip.global.drafts") }) }) : isReleaseDocument(selectedPerspective) ? /* @__PURE__ */ jsx(ReleasesLink, { selectedPerspective }) : /* @__PURE__ */ jsx(Box, { padding: 2, style: {
|
|
79445
|
+
userSelect: "none",
|
|
79446
|
+
overflow: "hidden"
|
|
79447
|
+
}, children: /* @__PURE__ */ jsx(Text$1, { size: 1, textOverflow: "ellipsis", weight: "medium", children: selectedPerspective }) }), $[0] = selectedPerspective, $[1] = t, $[2] = t2) : t2 = $[2];
|
|
79444
79448
|
let t3;
|
|
79445
79449
|
return $[3] !== t1 || $[4] !== t2 ? (t3 = /* @__PURE__ */ jsx(AnimatedTextWidth, { text: t1, children: t2 }), $[3] = t1, $[4] = t2, $[5] = t3) : t3 = $[5], t3;
|
|
79446
79450
|
}
|
|
@@ -79794,18 +79798,16 @@ function ReleasesList(t0) {
|
|
|
79794
79798
|
setScrollContainer,
|
|
79795
79799
|
onScroll,
|
|
79796
79800
|
isRangeVisible,
|
|
79797
|
-
|
|
79801
|
+
selectedPerspectiveName,
|
|
79798
79802
|
handleOpenBundleDialog,
|
|
79799
79803
|
scrollElementRef,
|
|
79800
79804
|
menuItemProps
|
|
79801
79805
|
} = t0, {
|
|
79802
79806
|
loading,
|
|
79803
79807
|
data: allReleases
|
|
79804
|
-
} = useActiveReleases()
|
|
79805
|
-
selectedPerspectiveName
|
|
79806
|
-
} = usePerspective();
|
|
79808
|
+
} = useActiveReleases();
|
|
79807
79809
|
let t1;
|
|
79808
|
-
$[0] !== allReleases ? (t1 = allReleases.filter(_temp$
|
|
79810
|
+
$[0] !== allReleases ? (t1 = allReleases.filter(_temp$y), $[0] = allReleases, $[1] = t1) : t1 = $[1];
|
|
79809
79811
|
const releases2 = t1, {
|
|
79810
79812
|
document: t2
|
|
79811
79813
|
} = useWorkspace(), {
|
|
@@ -79825,7 +79827,7 @@ function ReleasesList(t0) {
|
|
|
79825
79827
|
}), {}), $[2] = releases2, $[3] = t4) : t4 = $[3];
|
|
79826
79828
|
const sortedReleaseTypeReleases = t4, isDraftsPerspective = typeof selectedPerspectiveName > "u";
|
|
79827
79829
|
let lastIndex, offsets;
|
|
79828
|
-
if ($[4] !== isDraftModelEnabled || $[5] !== isDraftsPerspective || $[6] !==
|
|
79830
|
+
if ($[4] !== isDraftModelEnabled || $[5] !== isDraftsPerspective || $[6] !== selectedPerspectiveName || $[7] !== sortedReleaseTypeReleases) {
|
|
79829
79831
|
lastIndex = isDraftsPerspective ? 1 : 0;
|
|
79830
79832
|
let t52;
|
|
79831
79833
|
$[10] !== isDraftModelEnabled ? (t52 = [PUBLISHED$1, isDraftModelEnabled ? LATEST : []].flat(), $[10] = isDraftModelEnabled, $[11] = t52) : t52 = $[11];
|
|
@@ -79843,10 +79845,10 @@ function ReleasesList(t0) {
|
|
|
79843
79845
|
const groupSubsetReleases = sortedReleaseTypeReleases[type], offset = offsets[type];
|
|
79844
79846
|
groupSubsetReleases.forEach((release_0, groupReleaseIndex) => {
|
|
79845
79847
|
const index = offset + groupReleaseIndex;
|
|
79846
|
-
|
|
79848
|
+
selectedPerspectiveName === getReleaseIdFromReleaseDocumentId(release_0._id) && (lastIndex = index);
|
|
79847
79849
|
});
|
|
79848
79850
|
};
|
|
79849
|
-
orderedReleaseTypes.forEach(adjustIndexForReleaseType), $[4] = isDraftModelEnabled, $[5] = isDraftsPerspective, $[6] =
|
|
79851
|
+
orderedReleaseTypes.forEach(adjustIndexForReleaseType), $[4] = isDraftModelEnabled, $[5] = isDraftsPerspective, $[6] = selectedPerspectiveName, $[7] = sortedReleaseTypeReleases, $[8] = lastIndex, $[9] = offsets;
|
|
79850
79852
|
} else
|
|
79851
79853
|
lastIndex = $[8], offsets = $[9];
|
|
79852
79854
|
let t5;
|
|
@@ -79889,7 +79891,7 @@ function ReleasesList(t0) {
|
|
|
79889
79891
|
t14
|
|
79890
79892
|
] }), $[50] = t13, $[51] = t14, $[52] = t15) : t15 = $[52], t15;
|
|
79891
79893
|
}
|
|
79892
|
-
function _temp$
|
|
79894
|
+
function _temp$y(release) {
|
|
79893
79895
|
return !isCardinalityOneRelease(release);
|
|
79894
79896
|
}
|
|
79895
79897
|
function isElementVisibleInContainer(container, element) {
|
|
@@ -79926,7 +79928,7 @@ const useScrollIndicatorVisibility = () => {
|
|
|
79926
79928
|
`;
|
|
79927
79929
|
function GlobalPerspectiveMenu(t0) {
|
|
79928
79930
|
const $ = c(23), {
|
|
79929
|
-
|
|
79931
|
+
selectedPerspectiveName,
|
|
79930
79932
|
areReleasesEnabled: t1,
|
|
79931
79933
|
menuItemProps
|
|
79932
79934
|
} = t0, areReleasesEnabled = t1 === void 0 ? !0 : t1, [createBundleDialogOpen, setCreateBundleDialogOpen] = useState(!1), {
|
|
@@ -79956,7 +79958,7 @@ function GlobalPerspectiveMenu(t0) {
|
|
|
79956
79958
|
let t4;
|
|
79957
79959
|
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = /* @__PURE__ */ jsx(OversizedButton, { "data-testid": "global-perspective-menu-button", iconRight: ChevronDownIcon, mode: "bleed", padding: 2, radius: "full" }), $[4] = t4) : t4 = $[4];
|
|
79958
79960
|
let t5;
|
|
79959
|
-
$[5] !== areReleasesEnabled || $[6] !== handleOpenBundleDialog || $[7] !== isRangeVisible || $[8] !== menuItemProps || $[9] !== onScroll || $[10] !== scrollElementRef || $[11] !==
|
|
79961
|
+
$[5] !== areReleasesEnabled || $[6] !== handleOpenBundleDialog || $[7] !== isRangeVisible || $[8] !== menuItemProps || $[9] !== onScroll || $[10] !== scrollElementRef || $[11] !== selectedPerspectiveName || $[12] !== setScrollContainer ? (t5 = /* @__PURE__ */ jsx(StyledMenu$3, { "data-testid": "release-menu", ref: styledMenuRef, children: /* @__PURE__ */ jsx(ReleasesList, { areReleasesEnabled, setScrollContainer, onScroll, isRangeVisible, scrollElementRef, selectedPerspectiveName, handleOpenBundleDialog, menuItemProps }) }), $[5] = areReleasesEnabled, $[6] = handleOpenBundleDialog, $[7] = isRangeVisible, $[8] = menuItemProps, $[9] = onScroll, $[10] = scrollElementRef, $[11] = selectedPerspectiveName, $[12] = setScrollContainer, $[13] = t5) : t5 = $[13];
|
|
79960
79962
|
let t6;
|
|
79961
79963
|
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = {
|
|
79962
79964
|
constrainSize: !0,
|
|
@@ -80006,7 +80008,7 @@ const ReleasesNavContainer = styled(Card)`
|
|
|
80006
80008
|
menuItemProps
|
|
80007
80009
|
} = t0, releasesToolAvailable = useReleasesToolAvailable(), isReleasesEnabled = !!useWorkspace().releases?.enabled, {
|
|
80008
80010
|
selectedPerspective,
|
|
80009
|
-
|
|
80011
|
+
selectedPerspectiveName
|
|
80010
80012
|
} = usePerspective();
|
|
80011
80013
|
let t1;
|
|
80012
80014
|
$[0] !== releasesToolAvailable || $[1] !== withReleasesToolButton ? (t1 = withReleasesToolButton && releasesToolAvailable && /* @__PURE__ */ jsx(ReleasesToolLink, {}), $[0] = releasesToolAvailable, $[1] = withReleasesToolButton, $[2] = t1) : t1 = $[2];
|
|
@@ -80014,7 +80016,7 @@ const ReleasesNavContainer = styled(Card)`
|
|
|
80014
80016
|
$[3] !== selectedPerspective ? (t2 = /* @__PURE__ */ jsx(CurrentGlobalPerspectiveLabel, { selectedPerspective }), $[3] = selectedPerspective, $[4] = t2) : t2 = $[4];
|
|
80015
80017
|
const t3 = releasesToolAvailable && isReleasesEnabled;
|
|
80016
80018
|
let t4;
|
|
80017
|
-
$[5] !== menuItemProps || $[6] !==
|
|
80019
|
+
$[5] !== menuItemProps || $[6] !== selectedPerspectiveName || $[7] !== t3 ? (t4 = /* @__PURE__ */ jsx(GlobalPerspectiveMenu, { selectedPerspectiveName, areReleasesEnabled: t3, menuItemProps }), $[5] = menuItemProps, $[6] = selectedPerspectiveName, $[7] = t3, $[8] = t4) : t4 = $[8];
|
|
80018
80020
|
let t5;
|
|
80019
80021
|
return $[9] !== t1 || $[10] !== t2 || $[11] !== t4 ? (t5 = /* @__PURE__ */ jsxs(ReleasesNavContainer, { flex: "none", tone: "inherit", radius: "full", "data-ui": "ReleasesNav", border: !0, children: [
|
|
80020
80022
|
t1,
|
|
@@ -80585,7 +80587,7 @@ function Layout(props2) {
|
|
|
80585
80587
|
let t7;
|
|
80586
80588
|
$[15] !== prefersDark ? (t7 = /* @__PURE__ */ jsx(Text$1, { size: 3, children: /* @__PURE__ */ jsx(SanityLogo, { dark: prefersDark }) }), $[15] = prefersDark, $[16] = t7) : t7 = $[16];
|
|
80587
80589
|
let t8;
|
|
80588
|
-
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(Flex, { align: "center", gap: 2, children: LINKS.map(_temp$
|
|
80590
|
+
$[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t8 = /* @__PURE__ */ jsx(Flex, { align: "center", gap: 2, children: LINKS.map(_temp$x) }), $[17] = t8) : t8 = $[17];
|
|
80589
80591
|
let t9;
|
|
80590
80592
|
$[18] !== t7 ? (t9 = /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 4, justify: "center", align: "center", paddingBottom: 4, children: [
|
|
80591
80593
|
t7,
|
|
@@ -80597,7 +80599,7 @@ function Layout(props2) {
|
|
|
80597
80599
|
t9
|
|
80598
80600
|
] }), $[20] = t6, $[21] = t9, $[22] = t10) : t10 = $[22], t10;
|
|
80599
80601
|
}
|
|
80600
|
-
function _temp$
|
|
80602
|
+
function _temp$x(link, index) {
|
|
80601
80603
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
80602
80604
|
/* @__PURE__ */ jsx(StyledText, { muted: !0, size: 1, children: /* @__PURE__ */ jsx("a", { href: link.url, target: "_blank", rel: "noopener noreferrer", children: link.title }) }),
|
|
80603
80605
|
index < LINKS.length - 1 && /* @__PURE__ */ jsx(Text$1, { size: 1, muted: !0, children: "\u2022" })
|
|
@@ -80686,9 +80688,9 @@ function _temp3$5(grants) {
|
|
|
80686
80688
|
return !!grants[PERMISSION_NAME]?.some(_temp2$g);
|
|
80687
80689
|
}
|
|
80688
80690
|
function _temp2$g(p) {
|
|
80689
|
-
return p.grants.some(_temp$
|
|
80691
|
+
return p.grants.some(_temp$w);
|
|
80690
80692
|
}
|
|
80691
|
-
function _temp$
|
|
80693
|
+
function _temp$w(g) {
|
|
80692
80694
|
return g.name === GRANT_NAME;
|
|
80693
80695
|
}
|
|
80694
80696
|
function ManageMenu$1(t0) {
|
|
@@ -80759,28 +80761,36 @@ const POPOVER_PROPS = {
|
|
|
80759
80761
|
tone: "default"
|
|
80760
80762
|
};
|
|
80761
80763
|
function WorkspaceMenuButton() {
|
|
80762
|
-
const $ = c(
|
|
80764
|
+
const $ = c(25), workspaces = useWorkspaces(), {
|
|
80763
80765
|
activeWorkspace
|
|
80764
80766
|
} = useActiveWorkspace(), [authStates] = useWorkspaceAuthStates(workspaces), {
|
|
80765
80767
|
t
|
|
80766
|
-
} = useTranslation(),
|
|
80768
|
+
} = useTranslation(), [scrollbarWidth, setScrollbarWidth] = useState(0);
|
|
80767
80769
|
let t0;
|
|
80768
|
-
$[0]
|
|
80770
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = (node) => {
|
|
80771
|
+
if (node) {
|
|
80772
|
+
const hasScroll = node.scrollHeight > node.clientHeight;
|
|
80773
|
+
setScrollbarWidth(hasScroll ? node.offsetWidth - node.clientWidth : 0);
|
|
80774
|
+
}
|
|
80775
|
+
}, $[0] = t0) : t0 = $[0];
|
|
80776
|
+
const stackRef = t0, disabled = !authStates;
|
|
80769
80777
|
let t1;
|
|
80770
|
-
$[
|
|
80778
|
+
$[1] !== t ? (t1 = t("workspaces.select-workspace-tooltip"), $[1] = t, $[2] = t1) : t1 = $[2];
|
|
80771
80779
|
let t2;
|
|
80772
|
-
$[
|
|
80780
|
+
$[3] !== activeWorkspace.title ? (t2 = /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Text$1, { size: 1, textOverflow: "ellipsis", weight: "medium", children: activeWorkspace.title }) }), $[3] = activeWorkspace.title, $[4] = t2) : t2 = $[4];
|
|
80773
80781
|
let t3;
|
|
80774
|
-
$[5]
|
|
80775
|
-
t1,
|
|
80776
|
-
t2
|
|
80777
|
-
] }), $[5] = t1, $[6] = t3) : t3 = $[6];
|
|
80782
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = /* @__PURE__ */ jsx(Text$1, { size: 1, children: /* @__PURE__ */ jsx(ChevronDownIcon, {}) }), $[5] = t3) : t3 = $[5];
|
|
80778
80783
|
let t4;
|
|
80779
|
-
$[
|
|
80784
|
+
$[6] !== t2 ? (t4 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
|
|
80785
|
+
t2,
|
|
80786
|
+
t3
|
|
80787
|
+
] }), $[6] = t2, $[7] = t4) : t4 = $[7];
|
|
80780
80788
|
let t5;
|
|
80781
|
-
$[
|
|
80789
|
+
$[8] !== disabled || $[9] !== t4 ? (t5 = /* @__PURE__ */ jsx(Button$1, { disabled, mode: "bleed", padding: 2, width: "fill", children: t4 }), $[8] = disabled, $[9] = t4, $[10] = t5) : t5 = $[10];
|
|
80782
80790
|
let t6;
|
|
80783
|
-
$[
|
|
80791
|
+
$[11] !== disabled || $[12] !== t1 || $[13] !== t5 ? (t6 = /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(Tooltip, { content: t1, disabled, portal: !0, children: t5 }) }), $[11] = disabled, $[12] = t1, $[13] = t5, $[14] = t6) : t6 = $[14];
|
|
80792
|
+
let t7;
|
|
80793
|
+
$[15] !== activeWorkspace.name || $[16] !== authStates || $[17] !== disabled || $[18] !== scrollbarWidth || $[19] !== t || $[20] !== workspaces ? (t7 = !disabled && authStates ? /* @__PURE__ */ jsxs(Menu, { padding: 0, style: {
|
|
80784
80794
|
maxWidth: "350px",
|
|
80785
80795
|
minWidth: "250px",
|
|
80786
80796
|
overflowY: "hidden"
|
|
@@ -80791,22 +80801,22 @@ function WorkspaceMenuButton() {
|
|
|
80791
80801
|
padding: 0
|
|
80792
80802
|
} }),
|
|
80793
80803
|
/* @__PURE__ */ jsxs(Box, { paddingTop: 2, paddingBottom: 1, children: [
|
|
80794
|
-
/* @__PURE__ */ jsx(Box, { paddingRight: 5, paddingLeft: 4, paddingBottom:
|
|
80795
|
-
/* @__PURE__ */ jsx(Stack, { space: 1, style: {
|
|
80804
|
+
/* @__PURE__ */ jsx(Box, { paddingRight: 5, paddingLeft: 4, paddingBottom: 3, children: /* @__PURE__ */ jsx(Text$1, { size: 0, weight: "medium", children: t("workspaces.action.switch-workspace") }) }),
|
|
80805
|
+
/* @__PURE__ */ jsx(Stack, { ref: stackRef, space: 1, style: {
|
|
80796
80806
|
overflowY: "auto",
|
|
80797
80807
|
maxHeight: "40vh"
|
|
80798
80808
|
}, children: workspaces.map((workspace) => {
|
|
80799
80809
|
const state = authStates[workspace.name].authenticated ? "logged-in" : workspace.auth.LoginComponent ? "logged-out" : "no-access", isSelected = workspace.name === activeWorkspace.name;
|
|
80800
80810
|
return /* @__PURE__ */ jsx(MenuItem, { as: "a", href: workspace.basePath, badgeText: STATE_TITLES[state], iconRight: isSelected ? CheckmarkIcon : void 0, pressed: isSelected, preview: /* @__PURE__ */ jsx(WorkspacePreviewIcon, { icon: workspace.icon, size: "small" }), selected: isSelected, __unstable_subtitle: workspace.subtitle, text: workspace?.title || workspace.name, style: {
|
|
80801
|
-
marginLeft: "
|
|
80802
|
-
marginRight:
|
|
80811
|
+
marginLeft: "1rem",
|
|
80812
|
+
marginRight: `calc(1.25rem - ${scrollbarWidth}px)`
|
|
80803
80813
|
}, __unstable_space: 0 }, workspace.name);
|
|
80804
80814
|
}) })
|
|
80805
80815
|
] })
|
|
80806
80816
|
] })
|
|
80807
|
-
] }) : void 0, $[
|
|
80808
|
-
let
|
|
80809
|
-
return $[
|
|
80817
|
+
] }) : void 0, $[15] = activeWorkspace.name, $[16] = authStates, $[17] = disabled, $[18] = scrollbarWidth, $[19] = t, $[20] = workspaces, $[21] = t7) : t7 = $[21];
|
|
80818
|
+
let t8;
|
|
80819
|
+
return $[22] !== t6 || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(MenuButton, { button: t6, id: "workspace-menu", menu: t7, popover: POPOVER_PROPS }), $[22] = t6, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
80810
80820
|
}
|
|
80811
80821
|
function AuthenticateScreen() {
|
|
80812
80822
|
const $ = c(1);
|
|
@@ -80900,12 +80910,12 @@ function CorsOriginErrorScreen(props2) {
|
|
|
80900
80910
|
] }) }) }) }), $[25] = t10, $[26] = t12) : t12 = $[26], t12;
|
|
80901
80911
|
}
|
|
80902
80912
|
function _temp2$f() {
|
|
80903
|
-
const handleFocus = _temp$
|
|
80913
|
+
const handleFocus = _temp$v;
|
|
80904
80914
|
return window.addEventListener("focus", handleFocus), () => {
|
|
80905
80915
|
window.removeEventListener("focus", handleFocus);
|
|
80906
80916
|
};
|
|
80907
80917
|
}
|
|
80908
|
-
function _temp$
|
|
80918
|
+
function _temp$v() {
|
|
80909
80919
|
window.location.reload();
|
|
80910
80920
|
}
|
|
80911
80921
|
function NotAuthenticatedScreen() {
|
|
@@ -81016,7 +81026,7 @@ function RequestAccessScreen() {
|
|
|
81016
81026
|
let t3, t4;
|
|
81017
81027
|
$[6] !== client || $[7] !== projectId ? (t3 = () => {
|
|
81018
81028
|
if (!client || !projectId)
|
|
81019
|
-
return _temp$
|
|
81029
|
+
return _temp$u;
|
|
81020
81030
|
const request$ = client.observable.request({
|
|
81021
81031
|
url: "/access/requests/me",
|
|
81022
81032
|
tag: "request-access"
|
|
@@ -81139,7 +81149,7 @@ function _temp3$4(request_1) {
|
|
|
81139
81149
|
function _temp2$e(request_0) {
|
|
81140
81150
|
return request_0.status === "declined";
|
|
81141
81151
|
}
|
|
81142
|
-
function _temp$
|
|
81152
|
+
function _temp$u() {
|
|
81143
81153
|
}
|
|
81144
81154
|
function useCopyToClipboard() {
|
|
81145
81155
|
const $ = c(3), [copiedText, setCopiedText] = useState(null);
|
|
@@ -81254,14 +81264,14 @@ function _temp2$d(t0, i) {
|
|
|
81254
81264
|
'"'
|
|
81255
81265
|
] }) : null }) })
|
|
81256
81266
|
] }),
|
|
81257
|
-
/* @__PURE__ */ jsx(Box, { marginTop: 4, children: /* @__PURE__ */ jsx(Card, { border: !0, overflow: "auto", padding: 2, tone: "inherit", children: /* @__PURE__ */ jsx(Breadcrumbs, { separator: /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, children: "\u2192" }), children: group2.path.map(_temp$
|
|
81267
|
+
/* @__PURE__ */ jsx(Box, { marginTop: 4, children: /* @__PURE__ */ jsx(Card, { border: !0, overflow: "auto", padding: 2, tone: "inherit", children: /* @__PURE__ */ jsx(Breadcrumbs, { separator: /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, children: "\u2192" }), children: group2.path.map(_temp$t) }) }) }),
|
|
81258
81268
|
/* @__PURE__ */ jsx(Box, { as: "ul", marginTop: 4, children: /* @__PURE__ */ jsx(Box, { as: "li", children: /* @__PURE__ */ jsxs(Stack, { space: 3, children: [
|
|
81259
81269
|
/* @__PURE__ */ jsx(ErrorMessageText, { muted: !0, size: 1, children: problem_0.message }),
|
|
81260
81270
|
problem_0.helpId && /* @__PURE__ */ jsx(Text$1, { muted: !0, size: 1, children: /* @__PURE__ */ jsx("a", { href: generateHelpUrl(problem_0.helpId), target: "_blank", rel: "noopener noreferrer", children: "View documentation \u2192" }) })
|
|
81261
81271
|
] }) }) })
|
|
81262
81272
|
] }, i);
|
|
81263
81273
|
}
|
|
81264
|
-
function _temp$
|
|
81274
|
+
function _temp$t(segment, j) {
|
|
81265
81275
|
if (segment.kind === "type") {
|
|
81266
81276
|
const text = `${_renderSegmentName(segment.name || `<anonymous ${segment.type}>`)}:${segment.type}`;
|
|
81267
81277
|
return /* @__PURE__ */ jsx(Text$1, { title: text, size: 1, textOverflow: "ellipsis", children: /* @__PURE__ */ jsx(SegmentSpan, { children: text }) }, j);
|
|
@@ -81328,9 +81338,9 @@ function SchemaErrorsScreen(t0) {
|
|
|
81328
81338
|
] }) }) }), $[26] = t10, $[27] = t11, $[28] = t12) : t12 = $[28], t12;
|
|
81329
81339
|
}
|
|
81330
81340
|
function _temp2$c(group2) {
|
|
81331
|
-
return group2.problems.some(_temp$
|
|
81341
|
+
return group2.problems.some(_temp$s);
|
|
81332
81342
|
}
|
|
81333
|
-
function _temp$
|
|
81343
|
+
function _temp$s(problem) {
|
|
81334
81344
|
return problem.severity === "error";
|
|
81335
81345
|
}
|
|
81336
81346
|
const View$1 = styled(Box)`
|
|
@@ -81390,7 +81400,7 @@ function ImportErrorScreen(props2) {
|
|
|
81390
81400
|
autoReload
|
|
81391
81401
|
} = props2;
|
|
81392
81402
|
let t0;
|
|
81393
|
-
$[0] !== autoReload ? (t0 = autoReload ? timer(0, 1e3).pipe(take(COUNTDOWN_SECONDS + 1), map(_temp$
|
|
81403
|
+
$[0] !== autoReload ? (t0 = autoReload ? timer(0, 1e3).pipe(take(COUNTDOWN_SECONDS + 1), map(_temp$r)) : of(0), $[0] = autoReload, $[1] = t0) : t0 = $[1];
|
|
81394
81404
|
const countdownSeconds = useObservable(t0, COUNTDOWN_SECONDS);
|
|
81395
81405
|
let t1, t2;
|
|
81396
81406
|
$[2] !== autoReload || $[3] !== countdownSeconds ? (t1 = () => {
|
|
@@ -81427,7 +81437,7 @@ function ImportErrorScreen(props2) {
|
|
|
81427
81437
|
t9
|
|
81428
81438
|
] }) }) }) }) }), $[17] = t6, $[18] = t7, $[19] = t9, $[20] = t10) : t10 = $[20], t10;
|
|
81429
81439
|
}
|
|
81430
|
-
function _temp$
|
|
81440
|
+
function _temp$r(seconds) {
|
|
81431
81441
|
return COUNTDOWN_SECONDS - seconds;
|
|
81432
81442
|
}
|
|
81433
81443
|
const DevServerStoppedErrorScreen = lazy(() => import("./_chunks-es/ViteDevServerStopped.js").then((DevServerStopped) => ({
|
|
@@ -81516,7 +81526,7 @@ function StudioLayoutComponent() {
|
|
|
81516
81526
|
useNetworkProtocolCheck();
|
|
81517
81527
|
let t0;
|
|
81518
81528
|
$[0] !== tools ? (t0 = tools.filter(isDefaultRouteTool), $[0] = tools, $[1] = t0) : t0 = $[1];
|
|
81519
|
-
const defaultRouteTools = t0, router = useRouter(), activeToolName = useRouterState(_temp$
|
|
81529
|
+
const defaultRouteTools = t0, router = useRouter(), activeToolName = useRouterState(_temp$q);
|
|
81520
81530
|
let t1;
|
|
81521
81531
|
if ($[2] !== activeToolName || $[3] !== tools) {
|
|
81522
81532
|
let t24;
|
|
@@ -81610,7 +81620,7 @@ function _temp3$3(error) {
|
|
|
81610
81620
|
function _temp2$b(tool_0) {
|
|
81611
81621
|
return tool_0.name === "structure";
|
|
81612
81622
|
}
|
|
81613
|
-
function _temp$
|
|
81623
|
+
function _temp$q(routerState) {
|
|
81614
81624
|
return typeof routerState.tool == "string" ? routerState.tool : void 0;
|
|
81615
81625
|
}
|
|
81616
81626
|
function pickToolMenuComponent(plugin) {
|
|
@@ -81705,9 +81715,9 @@ function ConfigIssuesButton() {
|
|
|
81705
81715
|
] }), $[22] = t6, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
|
|
81706
81716
|
}
|
|
81707
81717
|
function _temp2$a(group2) {
|
|
81708
|
-
return group2.problems.some(_temp$
|
|
81718
|
+
return group2.problems.some(_temp$p);
|
|
81709
81719
|
}
|
|
81710
|
-
function _temp$
|
|
81720
|
+
function _temp$p(problem) {
|
|
81711
81721
|
return problem.severity === "warning";
|
|
81712
81722
|
}
|
|
81713
81723
|
const TrialDialogViewed = defineEvent({
|
|
@@ -82115,7 +82125,7 @@ const FreeTrialProvider = (t0) => {
|
|
|
82115
82125
|
url: `${queryURL}?${queryParams.toString()}`
|
|
82116
82126
|
}).subscribe((response) => {
|
|
82117
82127
|
setData(response), response?.showOnLoad && (setShowOnLoad(!0), setShowDialog(!0));
|
|
82118
|
-
}, _temp$
|
|
82128
|
+
}, _temp$o);
|
|
82119
82129
|
return () => {
|
|
82120
82130
|
request.unsubscribe();
|
|
82121
82131
|
};
|
|
@@ -82141,7 +82151,7 @@ const FreeTrialProvider = (t0) => {
|
|
|
82141
82151
|
let t9;
|
|
82142
82152
|
return $[27] !== children || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(FreeTrialContext.Provider, { value: t8, children }), $[27] = children, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
|
|
82143
82153
|
};
|
|
82144
|
-
function _temp$
|
|
82154
|
+
function _temp$o() {
|
|
82145
82155
|
}
|
|
82146
82156
|
function _temp2$9(p) {
|
|
82147
82157
|
return !p;
|
|
@@ -82195,11 +82205,11 @@ function AppearanceMenu$1(t0) {
|
|
|
82195
82205
|
t
|
|
82196
82206
|
} = useTranslation(), options = useColorSchemeOptions(setScheme, t);
|
|
82197
82207
|
let t1;
|
|
82198
|
-
$[0] !== options ? (t1 = options.map(_temp$
|
|
82208
|
+
$[0] !== options ? (t1 = options.map(_temp$n), $[0] = options, $[1] = t1) : t1 = $[1];
|
|
82199
82209
|
let t2;
|
|
82200
82210
|
return $[2] !== t1 ? (t2 = /* @__PURE__ */ jsx(Card, { borderTop: !0, flex: "none", padding: 2, overflow: "auto", children: /* @__PURE__ */ jsx(Stack, { as: "ul", space: 1, children: t1 }) }), $[2] = t1, $[3] = t2) : t2 = $[3], t2;
|
|
82201
82211
|
}
|
|
82202
|
-
function _temp$
|
|
82212
|
+
function _temp$n(t0) {
|
|
82203
82213
|
const {
|
|
82204
82214
|
icon,
|
|
82205
82215
|
label,
|
|
@@ -82302,7 +82312,7 @@ const ANIMATION_TRANSITION = {
|
|
|
82302
82312
|
}, $[2] = onClose, $[3] = t1) : t1 = $[3];
|
|
82303
82313
|
const handleActionClick = t1;
|
|
82304
82314
|
let t2;
|
|
82305
|
-
$[4] !== actions || $[5] !== handleActionClick ? (t2 = actions?.filter(_temp$
|
|
82315
|
+
$[4] !== actions || $[5] !== handleActionClick ? (t2 = actions?.filter(_temp$m)?.map((action_0) => {
|
|
82306
82316
|
const {
|
|
82307
82317
|
render: ActionComponent
|
|
82308
82318
|
} = action_0;
|
|
@@ -82343,7 +82353,7 @@ const ANIMATION_TRANSITION = {
|
|
|
82343
82353
|
let t4;
|
|
82344
82354
|
return $[21] !== t3 ? (t4 = /* @__PURE__ */ jsx(AnimatePresence, { children: t3 }), $[21] = t3, $[22] = t4) : t4 = $[22], t4;
|
|
82345
82355
|
});
|
|
82346
|
-
function _temp$
|
|
82356
|
+
function _temp$m(v) {
|
|
82347
82357
|
return v.location === "sidebar";
|
|
82348
82358
|
}
|
|
82349
82359
|
function isQueryMatch(query, option) {
|
|
@@ -82528,7 +82538,7 @@ function NewDocumentButton(props2) {
|
|
|
82528
82538
|
}, $[15] = t6) : t6 = $[15];
|
|
82529
82539
|
const handleSearchChange = t6;
|
|
82530
82540
|
let t7;
|
|
82531
|
-
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$
|
|
82541
|
+
$[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t7 = () => setOpen(_temp$l), $[16] = t7) : t7 = $[16];
|
|
82532
82542
|
const handleToggleOpen = t7;
|
|
82533
82543
|
let t8;
|
|
82534
82544
|
$[17] !== buttonElement ? (t8 = () => {
|
|
@@ -82644,7 +82654,7 @@ function NewDocumentButton(props2) {
|
|
|
82644
82654
|
let t25;
|
|
82645
82655
|
return $[84] !== handlePopoverKeyDown || $[85] !== open || $[86] !== scheme || $[87] !== t22 || $[88] !== t24 ? (t25 = /* @__PURE__ */ jsx(StyledPopover$1, { constrainSize: !0, onKeyDown: handlePopoverKeyDown, open, tone: "default", portal: !0, radius: 3, ref: popoverRef, scheme, content: t22, children: t24 }), $[84] = handlePopoverKeyDown, $[85] = open, $[86] = scheme, $[87] = t22, $[88] = t24, $[89] = t25) : t25 = $[89], t25;
|
|
82646
82656
|
}
|
|
82647
|
-
function _temp$
|
|
82657
|
+
function _temp$l(v) {
|
|
82648
82658
|
return !v;
|
|
82649
82659
|
}
|
|
82650
82660
|
function useNewDocumentOptions() {
|
|
@@ -82701,7 +82711,7 @@ const PresenceMenuItem = memo(function(props2) {
|
|
|
82701
82711
|
if ($[7] !== handleFocus || $[8] !== locations || $[9] !== user) {
|
|
82702
82712
|
t3 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
82703
82713
|
bb0: {
|
|
82704
|
-
const lastActiveLocation = orderBy(locations || [], ["lastActiveAt"], ["desc"]).find(_temp$
|
|
82714
|
+
const lastActiveLocation = orderBy(locations || [], ["lastActiveAt"], ["desc"]).find(_temp$k);
|
|
82705
82715
|
if (hasLink = !!lastActiveLocation?.documentId, lastActiveLocation) {
|
|
82706
82716
|
const perspective = getVersionFromId(lastActiveLocation.documentId), t42 = {
|
|
82707
82717
|
id: getPublishedId(lastActiveLocation.documentId),
|
|
@@ -82730,7 +82740,7 @@ const PresenceMenuItem = memo(function(props2) {
|
|
|
82730
82740
|
let t7;
|
|
82731
82741
|
return $[25] !== handleFocus || $[26] !== t4 || $[27] !== t5 || $[28] !== t6 || $[29] !== user.displayName ? (t7 = /* @__PURE__ */ jsx(MenuItem, { as: "div", disabled: t4, tooltipProps: t5, "data-as": "a", onFocus: handleFocus, preview: t6, ref: setMenuItemElement, text: user.displayName }), $[25] = handleFocus, $[26] = t4, $[27] = t5, $[28] = t6, $[29] = user.displayName, $[30] = t7) : t7 = $[30], t7;
|
|
82732
82742
|
});
|
|
82733
|
-
function _temp$
|
|
82743
|
+
function _temp$k(location2) {
|
|
82734
82744
|
return location2.documentId;
|
|
82735
82745
|
}
|
|
82736
82746
|
const StyledMenu$2 = styled(Menu)`
|
|
@@ -82882,12 +82892,12 @@ function useStudioAnnouncements() {
|
|
|
82882
82892
|
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
82883
82893
|
studioAnnouncements: [],
|
|
82884
82894
|
unseenAnnouncements: [],
|
|
82885
|
-
onDialogOpen: _temp$
|
|
82895
|
+
onDialogOpen: _temp$j
|
|
82886
82896
|
}, $[0] = t0) : t0 = $[0], t0;
|
|
82887
82897
|
}
|
|
82888
82898
|
return context;
|
|
82889
82899
|
}
|
|
82890
|
-
function _temp$
|
|
82900
|
+
function _temp$j() {
|
|
82891
82901
|
}
|
|
82892
82902
|
function StudioAnnouncementsMenuItem(t0) {
|
|
82893
82903
|
const $ = c(9), {
|
|
@@ -82966,7 +82976,7 @@ function ResourcesMenuItems(t0) {
|
|
|
82966
82976
|
let t10;
|
|
82967
82977
|
$[21] !== error || $[22] !== fallbackLinks || $[23] !== value ? (t10 = (value === void 0 || error) && /* @__PURE__ */ jsx("div", { children: fallbackLinks }), $[21] = error, $[22] = fallbackLinks, $[23] = value, $[24] = t10) : t10 = $[24];
|
|
82968
82978
|
let t11;
|
|
82969
|
-
$[25] !== error || $[26] !== sections ? (t11 = !error && sections?.map(_temp$
|
|
82979
|
+
$[25] !== error || $[26] !== sections ? (t11 = !error && sections?.map(_temp$i), $[25] = error, $[26] = sections, $[27] = t11) : t11 = $[27];
|
|
82970
82980
|
let t12;
|
|
82971
82981
|
$[28] !== currentVersion.version || $[29] !== t ? (t12 = t("help-resources.studio-version", {
|
|
82972
82982
|
studioVersion: currentVersion.version
|
|
@@ -82987,7 +82997,7 @@ function ResourcesMenuItems(t0) {
|
|
|
82987
82997
|
t14
|
|
82988
82998
|
] }), $[40] = t10, $[41] = t11, $[42] = t13, $[43] = t14, $[44] = t15) : t15 = $[44], t15;
|
|
82989
82999
|
}
|
|
82990
|
-
function _temp$
|
|
83000
|
+
function _temp$i(subSection) {
|
|
82991
83001
|
return subSection ? /* @__PURE__ */ jsx(SubSection, { subSection }, subSection._key) : null;
|
|
82992
83002
|
}
|
|
82993
83003
|
function SubSection(t0) {
|
|
@@ -83265,14 +83275,14 @@ function AppearanceMenu(t0) {
|
|
|
83265
83275
|
let t1;
|
|
83266
83276
|
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = /* @__PURE__ */ jsx(MenuDivider, {}), $[0] = t1) : t1 = $[0];
|
|
83267
83277
|
let t2;
|
|
83268
|
-
$[1] !== options ? (t2 = options.map(_temp$
|
|
83278
|
+
$[1] !== options ? (t2 = options.map(_temp$h), $[1] = options, $[2] = t2) : t2 = $[2];
|
|
83269
83279
|
let t3;
|
|
83270
83280
|
return $[3] !== t2 ? (t3 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
83271
83281
|
t1,
|
|
83272
83282
|
t2
|
|
83273
83283
|
] }), $[3] = t2, $[4] = t3) : t3 = $[4], t3;
|
|
83274
83284
|
}
|
|
83275
|
-
function _temp$
|
|
83285
|
+
function _temp$h(t0) {
|
|
83276
83286
|
const {
|
|
83277
83287
|
icon,
|
|
83278
83288
|
label,
|
|
@@ -83534,7 +83544,7 @@ function StudioNavbar(props2) {
|
|
|
83534
83544
|
break bb0;
|
|
83535
83545
|
}
|
|
83536
83546
|
let t222;
|
|
83537
|
-
$[33] !== actions ? (t222 = actions?.filter(_temp$
|
|
83547
|
+
$[33] !== actions ? (t222 = actions?.filter(_temp$g)?.map(_temp2$7), $[33] = actions, $[34] = t222) : t222 = $[34], t21 = t222;
|
|
83538
83548
|
}
|
|
83539
83549
|
const actionNodes = t21;
|
|
83540
83550
|
let t22;
|
|
@@ -83621,7 +83631,7 @@ function _temp2$7(action) {
|
|
|
83621
83631
|
} = action;
|
|
83622
83632
|
return ActionComponent ? /* @__PURE__ */ jsx(ActionComponent, {}, action.name) : /* @__PURE__ */ jsx(Button, { iconRight: action?.icon, mode: "bleed", onClick: action?.onAction, selected: action.selected, text: action.title }, action.name);
|
|
83623
83633
|
}
|
|
83624
|
-
function _temp$
|
|
83634
|
+
function _temp$g(v) {
|
|
83625
83635
|
return v.location === "topbar";
|
|
83626
83636
|
}
|
|
83627
83637
|
const SCHEDULED_PUBLISHING_TOOL_NAME = "schedules";
|
|
@@ -84629,7 +84639,7 @@ const CopyPasteProvider = (t0) => {
|
|
|
84629
84639
|
const {
|
|
84630
84640
|
targetValue,
|
|
84631
84641
|
errors
|
|
84632
|
-
} = await transferValue(transferValueOptions), nonWarningErrors = errors.filter(_temp$
|
|
84642
|
+
} = await transferValue(transferValueOptions), nonWarningErrors = errors.filter(_temp$f), _isEmptyValue = isEmptyValue(targetValue);
|
|
84633
84643
|
if (nonWarningErrors.length > 0) {
|
|
84634
84644
|
const description = t(nonWarningErrors[0].i18n.key, nonWarningErrors[0].i18n.args);
|
|
84635
84645
|
toast.push({
|
|
@@ -84694,7 +84704,7 @@ const CopyPasteProvider = (t0) => {
|
|
|
84694
84704
|
throw new Error("useCopyPaste must be used within a CopyPasteProvider");
|
|
84695
84705
|
return context;
|
|
84696
84706
|
};
|
|
84697
|
-
function _temp$
|
|
84707
|
+
function _temp$f(error_0) {
|
|
84698
84708
|
return error_0.level !== "warning";
|
|
84699
84709
|
}
|
|
84700
84710
|
function _temp2$6(t0) {
|
|
@@ -84769,7 +84779,7 @@ const GlobalStyle = createGlobalStyle((props2) => {
|
|
|
84769
84779
|
`;
|
|
84770
84780
|
});
|
|
84771
84781
|
function PerspectiveProvider(t0) {
|
|
84772
|
-
const $ = c(
|
|
84782
|
+
const $ = c(20), {
|
|
84773
84783
|
children,
|
|
84774
84784
|
selectedPerspectiveName,
|
|
84775
84785
|
excludedPerspectives: t1
|
|
@@ -84792,18 +84802,23 @@ function PerspectiveProvider(t0) {
|
|
|
84792
84802
|
excludedPerspectives,
|
|
84793
84803
|
isDraftModelEnabled
|
|
84794
84804
|
}), $[3] = excludedPerspectives, $[4] = isDraftModelEnabled, $[5] = releases2, $[6] = selectedPerspectiveName, $[7] = t5) : t5 = $[7];
|
|
84795
|
-
const perspectiveStack = t5
|
|
84805
|
+
const perspectiveStack = t5;
|
|
84806
|
+
let t6;
|
|
84807
|
+
$[8] !== releases2 || $[9] !== selectedPerspectiveName ? (t6 = isSystemBundleName(selectedPerspectiveName) ? void 0 : releases2.map(_temp$e).find((releaseName) => releaseName === selectedPerspectiveName), $[8] = releases2, $[9] = selectedPerspectiveName, $[10] = t6) : t6 = $[10];
|
|
84796
84808
|
let t7;
|
|
84797
|
-
$[
|
|
84809
|
+
$[11] !== excludedPerspectives || $[12] !== perspectiveStack || $[13] !== selectedPerspective || $[14] !== selectedPerspectiveName || $[15] !== t6 ? (t7 = {
|
|
84798
84810
|
selectedPerspective,
|
|
84799
84811
|
selectedPerspectiveName,
|
|
84800
84812
|
selectedReleaseId: t6,
|
|
84801
84813
|
perspectiveStack,
|
|
84802
84814
|
excludedPerspectives
|
|
84803
|
-
}, $[
|
|
84815
|
+
}, $[11] = excludedPerspectives, $[12] = perspectiveStack, $[13] = selectedPerspective, $[14] = selectedPerspectiveName, $[15] = t6, $[16] = t7) : t7 = $[16];
|
|
84804
84816
|
const value = t7;
|
|
84805
84817
|
let t8;
|
|
84806
|
-
return $[
|
|
84818
|
+
return $[17] !== children || $[18] !== value ? (t8 = /* @__PURE__ */ jsx(PerspectiveContext.Provider, { value, children }), $[17] = children, $[18] = value, $[19] = t8) : t8 = $[19], t8;
|
|
84819
|
+
}
|
|
84820
|
+
function _temp$e(release) {
|
|
84821
|
+
return getReleaseIdFromReleaseDocumentId(release._id);
|
|
84807
84822
|
}
|
|
84808
84823
|
function GlobalPerspectiveProvider(t0) {
|
|
84809
84824
|
const $ = c(6), {
|