sanity 5.1.0-next.19 → 5.1.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +133 -119
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/package.json +14 -14
package/lib/_chunks-es/pane.js
CHANGED
|
@@ -5205,79 +5205,82 @@ const DISABLED_REASON_TITLE_KEY$1 = {
|
|
|
5205
5205
|
NOTHING_TO_DELETE: "action.delete.disabled.nothing-to-delete",
|
|
5206
5206
|
NOT_READY: "action.delete.disabled.not-ready"
|
|
5207
5207
|
}, useDeleteAction = (t0) => {
|
|
5208
|
-
const $ = c(
|
|
5208
|
+
const $ = c(34), {
|
|
5209
5209
|
id,
|
|
5210
5210
|
type,
|
|
5211
5211
|
draft,
|
|
5212
|
-
|
|
5213
|
-
} = t0
|
|
5212
|
+
version
|
|
5213
|
+
} = t0;
|
|
5214
|
+
let t1;
|
|
5215
|
+
$[0] !== version ? (t1 = version?._id && getVersionFromId(version._id), $[0] = version, $[1] = t1) : t1 = $[1];
|
|
5216
|
+
const bundleId = t1, {
|
|
5214
5217
|
delete: deleteOp
|
|
5215
|
-
} = useDocumentOperation(id, type,
|
|
5218
|
+
} = useDocumentOperation(id, type, bundleId), [isDeleting, setIsDeleting] = useState(!1), [isConfirmDialogOpen, setConfirmDialogOpen] = useState(!1), {
|
|
5216
5219
|
t
|
|
5217
5220
|
} = useTranslation(structureLocaleNamespace);
|
|
5218
|
-
let t1;
|
|
5219
|
-
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t1 = () => {
|
|
5220
|
-
setConfirmDialogOpen(!1);
|
|
5221
|
-
}, $[0] = t1) : t1 = $[0];
|
|
5222
|
-
const handleCancel = t1;
|
|
5223
5221
|
let t2;
|
|
5224
|
-
$[
|
|
5225
|
-
setConfirmDialogOpen(!1)
|
|
5226
|
-
}, $[
|
|
5227
|
-
const
|
|
5222
|
+
$[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => {
|
|
5223
|
+
setConfirmDialogOpen(!1);
|
|
5224
|
+
}, $[2] = t2) : t2 = $[2];
|
|
5225
|
+
const handleCancel = t2;
|
|
5228
5226
|
let t3;
|
|
5229
|
-
$[3]
|
|
5230
|
-
setConfirmDialogOpen(!0);
|
|
5231
|
-
}, $[3] = t3) : t3 = $[
|
|
5232
|
-
const
|
|
5227
|
+
$[3] !== deleteOp ? (t3 = (versions) => {
|
|
5228
|
+
setConfirmDialogOpen(!1), setIsDeleting(!0), deleteOp.execute(versions), setIsDeleting(!1);
|
|
5229
|
+
}, $[3] = deleteOp, $[4] = t3) : t3 = $[4];
|
|
5230
|
+
const handleConfirm = t3;
|
|
5233
5231
|
let t4;
|
|
5234
|
-
$[
|
|
5232
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => {
|
|
5233
|
+
setConfirmDialogOpen(!0);
|
|
5234
|
+
}, $[5] = t4) : t4 = $[5];
|
|
5235
|
+
const handle = t4;
|
|
5236
|
+
let t5;
|
|
5237
|
+
$[6] !== bundleId || $[7] !== id || $[8] !== type ? (t5 = {
|
|
5235
5238
|
id,
|
|
5236
5239
|
type,
|
|
5237
|
-
version:
|
|
5240
|
+
version: bundleId,
|
|
5238
5241
|
permission: "delete"
|
|
5239
|
-
}, $[
|
|
5240
|
-
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(
|
|
5241
|
-
let
|
|
5242
|
+
}, $[6] = bundleId, $[7] = id, $[8] = type, $[9] = t5) : t5 = $[9];
|
|
5243
|
+
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t5), currentUser = useCurrentUser();
|
|
5244
|
+
let t6;
|
|
5242
5245
|
bb0: {
|
|
5243
5246
|
if (!isPermissionsLoading && !permissions?.granted) {
|
|
5244
|
-
let t62;
|
|
5245
|
-
$[8] !== t ? (t62 = t("action.delete.label"), $[8] = t, $[9] = t62) : t62 = $[9];
|
|
5246
5247
|
let t72;
|
|
5247
|
-
$[10] !==
|
|
5248
|
+
$[10] !== t ? (t72 = t("action.delete.label"), $[10] = t, $[11] = t72) : t72 = $[11];
|
|
5248
5249
|
let t82;
|
|
5249
|
-
$[12] !==
|
|
5250
|
+
$[12] !== currentUser ? (t82 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "delete-document", currentUser }), $[12] = currentUser, $[13] = t82) : t82 = $[13];
|
|
5251
|
+
let t92;
|
|
5252
|
+
$[14] !== t72 || $[15] !== t82 ? (t92 = {
|
|
5250
5253
|
tone: "critical",
|
|
5251
5254
|
icon: TrashIcon,
|
|
5252
5255
|
disabled: !0,
|
|
5253
|
-
label:
|
|
5254
|
-
title:
|
|
5255
|
-
}, $[
|
|
5256
|
+
label: t72,
|
|
5257
|
+
title: t82
|
|
5258
|
+
}, $[14] = t72, $[15] = t82, $[16] = t92) : t92 = $[16], t6 = t92;
|
|
5256
5259
|
break bb0;
|
|
5257
5260
|
}
|
|
5258
|
-
const
|
|
5259
|
-
let t7;
|
|
5260
|
-
$[15] !== deleteOp.disabled || $[16] !== t ? (t7 = deleteOp.disabled && t(DISABLED_REASON_TITLE_KEY$1[deleteOp.disabled]) || "", $[15] = deleteOp.disabled, $[16] = t, $[17] = t7) : t7 = $[17];
|
|
5261
|
+
const t7 = isDeleting || !!deleteOp.disabled || isPermissionsLoading;
|
|
5261
5262
|
let t8;
|
|
5262
|
-
$[
|
|
5263
|
+
$[17] !== deleteOp.disabled || $[18] !== t ? (t8 = deleteOp.disabled && t(DISABLED_REASON_TITLE_KEY$1[deleteOp.disabled]) || "", $[17] = deleteOp.disabled, $[18] = t, $[19] = t8) : t8 = $[19];
|
|
5263
5264
|
let t9;
|
|
5264
|
-
$[
|
|
5265
|
+
$[20] !== isDeleting || $[21] !== t ? (t9 = t(isDeleting ? "action.delete.running.label" : "action.delete.label"), $[20] = isDeleting, $[21] = t, $[22] = t9) : t9 = $[22];
|
|
5266
|
+
let t10;
|
|
5267
|
+
$[23] !== draft?._id || $[24] !== handleConfirm || $[25] !== id || $[26] !== isConfirmDialogOpen || $[27] !== type ? (t10 = isConfirmDialogOpen && {
|
|
5265
5268
|
type: "custom",
|
|
5266
5269
|
component: /* @__PURE__ */ jsx(ConfirmDeleteDialogContainer, { action: "delete", id: draft?._id || id, type, onCancel: handleCancel, onConfirm: handleConfirm })
|
|
5267
|
-
}, $[
|
|
5268
|
-
let
|
|
5269
|
-
$[
|
|
5270
|
+
}, $[23] = draft?._id, $[24] = handleConfirm, $[25] = id, $[26] = isConfirmDialogOpen, $[27] = type, $[28] = t10) : t10 = $[28];
|
|
5271
|
+
let t11;
|
|
5272
|
+
$[29] !== t10 || $[30] !== t7 || $[31] !== t8 || $[32] !== t9 ? (t11 = {
|
|
5270
5273
|
tone: "critical",
|
|
5271
5274
|
icon: TrashIcon,
|
|
5272
|
-
disabled:
|
|
5273
|
-
title:
|
|
5274
|
-
label:
|
|
5275
|
+
disabled: t7,
|
|
5276
|
+
title: t8,
|
|
5277
|
+
label: t9,
|
|
5275
5278
|
shortcut: "Ctrl+Alt+D",
|
|
5276
5279
|
onHandle: handle,
|
|
5277
|
-
dialog:
|
|
5278
|
-
}, $[
|
|
5280
|
+
dialog: t10
|
|
5281
|
+
}, $[29] = t10, $[30] = t7, $[31] = t8, $[32] = t9, $[33] = t11) : t11 = $[33], t6 = t11;
|
|
5279
5282
|
}
|
|
5280
|
-
return
|
|
5283
|
+
return t6;
|
|
5281
5284
|
};
|
|
5282
5285
|
useDeleteAction.action = "delete";
|
|
5283
5286
|
useDeleteAction.displayName = "DeleteAction";
|
|
@@ -5312,85 +5315,92 @@ const DISABLED_REASON_KEY$2 = {
|
|
|
5312
5315
|
NOT_PUBLISHED: "action.discard-changes.disabled.not-published",
|
|
5313
5316
|
NOT_READY: "action.discard-changes.disabled.not-ready"
|
|
5314
5317
|
}, useDiscardChangesAction = (t0) => {
|
|
5315
|
-
const $ = c(
|
|
5318
|
+
const $ = c(31), {
|
|
5316
5319
|
id,
|
|
5317
5320
|
type,
|
|
5318
5321
|
published,
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
} = t0
|
|
5322
|
-
discardChanges
|
|
5323
|
-
} = useDocumentOperation(id, type, release), [isConfirmDialogOpen, setConfirmDialogOpen] = useState(!1);
|
|
5322
|
+
version,
|
|
5323
|
+
draft
|
|
5324
|
+
} = t0;
|
|
5324
5325
|
let t1;
|
|
5325
|
-
$[0] !==
|
|
5326
|
+
$[0] !== version ? (t1 = version?._id && getVersionFromId(version._id), $[0] = version, $[1] = t1) : t1 = $[1];
|
|
5327
|
+
const bundleId = t1, {
|
|
5328
|
+
discardChanges
|
|
5329
|
+
} = useDocumentOperation(id, type, bundleId), [isConfirmDialogOpen, setConfirmDialogOpen] = useState(!1);
|
|
5330
|
+
let t2;
|
|
5331
|
+
$[2] !== bundleId || $[3] !== id || $[4] !== type ? (t2 = {
|
|
5326
5332
|
id,
|
|
5327
5333
|
type,
|
|
5328
|
-
version:
|
|
5334
|
+
version: bundleId,
|
|
5329
5335
|
permission: "discardDraft"
|
|
5330
|
-
}, $[
|
|
5331
|
-
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(
|
|
5336
|
+
}, $[2] = bundleId, $[3] = id, $[4] = type, $[5] = t2) : t2 = $[5];
|
|
5337
|
+
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t2), currentUser = useCurrentUser(), {
|
|
5332
5338
|
displayed
|
|
5333
5339
|
} = useDocumentPane(), {
|
|
5334
5340
|
t
|
|
5335
5341
|
} = useTranslation(structureLocaleNamespace), isPublished = displayed?._id && isPublishedId(displayed?._id);
|
|
5336
|
-
let t2;
|
|
5337
|
-
$[4] !== discardChanges ? (t2 = () => {
|
|
5338
|
-
discardChanges.execute(), setConfirmDialogOpen(!1);
|
|
5339
|
-
}, $[4] = discardChanges, $[5] = t2) : t2 = $[5];
|
|
5340
|
-
const handleConfirm = t2;
|
|
5341
5342
|
let t3;
|
|
5342
|
-
$[6]
|
|
5343
|
-
setConfirmDialogOpen(!1);
|
|
5344
|
-
}, $[6] = t3) : t3 = $[
|
|
5345
|
-
const
|
|
5343
|
+
$[6] !== discardChanges ? (t3 = () => {
|
|
5344
|
+
discardChanges.execute(), setConfirmDialogOpen(!1);
|
|
5345
|
+
}, $[6] = discardChanges, $[7] = t3) : t3 = $[7];
|
|
5346
|
+
const handleConfirm = t3;
|
|
5346
5347
|
let t4;
|
|
5347
|
-
$[
|
|
5348
|
-
setConfirmDialogOpen(!
|
|
5349
|
-
}, $[
|
|
5350
|
-
const
|
|
5348
|
+
$[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => {
|
|
5349
|
+
setConfirmDialogOpen(!1);
|
|
5350
|
+
}, $[8] = t4) : t4 = $[8];
|
|
5351
|
+
const handleCancel = t4;
|
|
5351
5352
|
let t5;
|
|
5353
|
+
$[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
5354
|
+
setConfirmDialogOpen(!0);
|
|
5355
|
+
}, $[9] = t5) : t5 = $[9];
|
|
5356
|
+
const handle = t5;
|
|
5357
|
+
let t6;
|
|
5352
5358
|
bb0: {
|
|
5353
|
-
if (
|
|
5354
|
-
|
|
5359
|
+
if (!version && !draft) {
|
|
5360
|
+
t6 = null;
|
|
5361
|
+
break bb0;
|
|
5362
|
+
}
|
|
5363
|
+
if (isPublished) {
|
|
5364
|
+
t6 = null;
|
|
5355
5365
|
break bb0;
|
|
5356
5366
|
}
|
|
5357
5367
|
if (!isPermissionsLoading && !permissions?.granted) {
|
|
5358
|
-
let t62;
|
|
5359
|
-
$[8] !== t ? (t62 = t("action.discard-changes.label"), $[8] = t, $[9] = t62) : t62 = $[9];
|
|
5360
5368
|
let t72;
|
|
5361
|
-
$[10] !==
|
|
5369
|
+
$[10] !== t ? (t72 = t("action.discard-changes.label"), $[10] = t, $[11] = t72) : t72 = $[11];
|
|
5362
5370
|
let t82;
|
|
5363
|
-
$[12] !==
|
|
5371
|
+
$[12] !== currentUser ? (t82 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "discard-changes", currentUser }), $[12] = currentUser, $[13] = t82) : t82 = $[13];
|
|
5372
|
+
let t92;
|
|
5373
|
+
$[14] !== t72 || $[15] !== t82 ? (t92 = {
|
|
5364
5374
|
tone: "critical",
|
|
5365
5375
|
icon: ResetIcon,
|
|
5366
5376
|
disabled: !0,
|
|
5367
|
-
label:
|
|
5368
|
-
title:
|
|
5369
|
-
}, $[
|
|
5377
|
+
label: t72,
|
|
5378
|
+
title: t82
|
|
5379
|
+
}, $[14] = t72, $[15] = t82, $[16] = t92) : t92 = $[16], t6 = t92;
|
|
5370
5380
|
break bb0;
|
|
5371
5381
|
}
|
|
5372
|
-
const
|
|
5373
|
-
let t8;
|
|
5374
|
-
$[15] !== t || $[16] !== t7 ? (t8 = t(t7), $[15] = t, $[16] = t7, $[17] = t8) : t8 = $[17];
|
|
5382
|
+
const t7 = !!discardChanges.disabled || isPermissionsLoading, t8 = discardChanges.disabled && DISABLED_REASON_KEY$2[discardChanges.disabled] || "";
|
|
5375
5383
|
let t9;
|
|
5376
|
-
$[
|
|
5384
|
+
$[17] !== t || $[18] !== t8 ? (t9 = t(t8), $[17] = t, $[18] = t8, $[19] = t9) : t9 = $[19];
|
|
5377
5385
|
let t10;
|
|
5378
|
-
$[20] !==
|
|
5386
|
+
$[20] !== t ? (t10 = t("action.discard-changes.label"), $[20] = t, $[21] = t10) : t10 = $[21];
|
|
5387
|
+
let t11;
|
|
5388
|
+
$[22] !== handleConfirm || $[23] !== isConfirmDialogOpen || $[24] !== published ? (t11 = isConfirmDialogOpen && {
|
|
5379
5389
|
type: "custom",
|
|
5380
5390
|
component: /* @__PURE__ */ jsx(ConfirmDiscardDialog, { onCancel: handleCancel, onConfirm: handleConfirm, publishedExists: !!published })
|
|
5381
|
-
}, $[
|
|
5382
|
-
let
|
|
5383
|
-
$[
|
|
5391
|
+
}, $[22] = handleConfirm, $[23] = isConfirmDialogOpen, $[24] = published, $[25] = t11) : t11 = $[25];
|
|
5392
|
+
let t12;
|
|
5393
|
+
$[26] !== t10 || $[27] !== t11 || $[28] !== t7 || $[29] !== t9 ? (t12 = {
|
|
5384
5394
|
tone: "critical",
|
|
5385
5395
|
icon: ResetIcon,
|
|
5386
|
-
disabled:
|
|
5387
|
-
title:
|
|
5388
|
-
label:
|
|
5396
|
+
disabled: t7,
|
|
5397
|
+
title: t9,
|
|
5398
|
+
label: t10,
|
|
5389
5399
|
onHandle: handle,
|
|
5390
|
-
dialog:
|
|
5391
|
-
}, $[
|
|
5400
|
+
dialog: t11
|
|
5401
|
+
}, $[26] = t10, $[27] = t11, $[28] = t7, $[29] = t9, $[30] = t12) : t12 = $[30], t6 = t12;
|
|
5392
5402
|
}
|
|
5393
|
-
return
|
|
5403
|
+
return t6;
|
|
5394
5404
|
};
|
|
5395
5405
|
useDiscardChangesAction.action = "discardChanges";
|
|
5396
5406
|
useDiscardChangesAction.displayName = "DiscardChangesAction";
|
|
@@ -5398,28 +5408,32 @@ const DISABLED_REASON_KEY$1 = {
|
|
|
5398
5408
|
NOTHING_TO_DUPLICATE: "action.duplicate.disabled.nothing-to-duplicate",
|
|
5399
5409
|
NOT_READY: "action.duplicate.disabled.not-ready"
|
|
5400
5410
|
}, useDuplicateAction = (t0) => {
|
|
5401
|
-
const $ = c(
|
|
5411
|
+
const $ = c(31), {
|
|
5402
5412
|
id,
|
|
5403
5413
|
type,
|
|
5404
5414
|
release,
|
|
5405
|
-
mapDocument
|
|
5406
|
-
|
|
5415
|
+
mapDocument,
|
|
5416
|
+
version
|
|
5417
|
+
} = t0, documentStore = useDocumentStore();
|
|
5418
|
+
let t1;
|
|
5419
|
+
$[0] !== version ? (t1 = version?._id && getVersionFromId(version._id), $[0] = version, $[1] = t1) : t1 = $[1];
|
|
5420
|
+
const bundleId = t1, {
|
|
5407
5421
|
duplicate
|
|
5408
|
-
} = useDocumentOperation(id, type,
|
|
5422
|
+
} = useDocumentOperation(id, type, bundleId), {
|
|
5409
5423
|
navigateIntent
|
|
5410
5424
|
} = useRouter(), [isDuplicating, setDuplicating] = useState(!1);
|
|
5411
|
-
let
|
|
5412
|
-
$[
|
|
5425
|
+
let t2;
|
|
5426
|
+
$[2] !== id || $[3] !== release || $[4] !== type ? (t2 = {
|
|
5413
5427
|
id,
|
|
5414
5428
|
type,
|
|
5415
5429
|
version: release,
|
|
5416
5430
|
permission: "duplicate"
|
|
5417
|
-
}, $[
|
|
5418
|
-
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(
|
|
5431
|
+
}, $[2] = id, $[3] = release, $[4] = type, $[5] = t2) : t2 = $[5];
|
|
5432
|
+
const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t2), {
|
|
5419
5433
|
t
|
|
5420
5434
|
} = useTranslation(structureLocaleNamespace), currentUser = useCurrentUser();
|
|
5421
|
-
let
|
|
5422
|
-
$[
|
|
5435
|
+
let t3;
|
|
5436
|
+
$[6] !== documentStore.pair || $[7] !== duplicate || $[8] !== id || $[9] !== mapDocument || $[10] !== navigateIntent || $[11] !== type ? (t3 = async () => {
|
|
5423
5437
|
const dupeId = uuid();
|
|
5424
5438
|
setDuplicating(!0);
|
|
5425
5439
|
const duplicateSuccess = firstValueFrom(documentStore.pair.operationEvents(id, type).pipe(filter(_temp$q)));
|
|
@@ -5429,39 +5443,39 @@ const DISABLED_REASON_KEY$1 = {
|
|
|
5429
5443
|
id: dupeId,
|
|
5430
5444
|
type
|
|
5431
5445
|
}), setDuplicating(!1);
|
|
5432
|
-
}, $[
|
|
5433
|
-
const handle =
|
|
5434
|
-
let
|
|
5446
|
+
}, $[6] = documentStore.pair, $[7] = duplicate, $[8] = id, $[9] = mapDocument, $[10] = navigateIntent, $[11] = type, $[12] = t3) : t3 = $[12];
|
|
5447
|
+
const handle = t3;
|
|
5448
|
+
let t4;
|
|
5435
5449
|
bb0: {
|
|
5436
5450
|
if (!isPermissionsLoading && !permissions?.granted) {
|
|
5437
|
-
let t42;
|
|
5438
|
-
$[11] !== t ? (t42 = t("action.duplicate.label"), $[11] = t, $[12] = t42) : t42 = $[12];
|
|
5439
5451
|
let t52;
|
|
5440
|
-
$[13] !==
|
|
5452
|
+
$[13] !== t ? (t52 = t("action.duplicate.label"), $[13] = t, $[14] = t52) : t52 = $[14];
|
|
5441
5453
|
let t62;
|
|
5442
|
-
$[15] !==
|
|
5454
|
+
$[15] !== currentUser ? (t62 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "duplicate-document", currentUser }), $[15] = currentUser, $[16] = t62) : t62 = $[16];
|
|
5455
|
+
let t72;
|
|
5456
|
+
$[17] !== t52 || $[18] !== t62 ? (t72 = {
|
|
5443
5457
|
icon: CopyIcon,
|
|
5444
5458
|
disabled: !0,
|
|
5445
|
-
label:
|
|
5446
|
-
title:
|
|
5447
|
-
}, $[
|
|
5459
|
+
label: t52,
|
|
5460
|
+
title: t62
|
|
5461
|
+
}, $[17] = t52, $[18] = t62, $[19] = t72) : t72 = $[19], t4 = t72;
|
|
5448
5462
|
break bb0;
|
|
5449
5463
|
}
|
|
5450
|
-
const
|
|
5451
|
-
let t5;
|
|
5452
|
-
$[18] !== isDuplicating || $[19] !== t ? (t5 = t(isDuplicating ? "action.duplicate.running.label" : "action.duplicate.label"), $[18] = isDuplicating, $[19] = t, $[20] = t5) : t5 = $[20];
|
|
5464
|
+
const t5 = isDuplicating || !!duplicate.disabled || isPermissionsLoading;
|
|
5453
5465
|
let t6;
|
|
5454
|
-
$[
|
|
5466
|
+
$[20] !== isDuplicating || $[21] !== t ? (t6 = t(isDuplicating ? "action.duplicate.running.label" : "action.duplicate.label"), $[20] = isDuplicating, $[21] = t, $[22] = t6) : t6 = $[22];
|
|
5455
5467
|
let t7;
|
|
5456
|
-
$[
|
|
5468
|
+
$[23] !== duplicate.disabled || $[24] !== t ? (t7 = duplicate.disabled ? t(DISABLED_REASON_KEY$1[duplicate.disabled]) : "", $[23] = duplicate.disabled, $[24] = t, $[25] = t7) : t7 = $[25];
|
|
5469
|
+
let t8;
|
|
5470
|
+
$[26] !== handle || $[27] !== t5 || $[28] !== t6 || $[29] !== t7 ? (t8 = {
|
|
5457
5471
|
icon: CopyIcon,
|
|
5458
|
-
disabled:
|
|
5459
|
-
label:
|
|
5460
|
-
title:
|
|
5472
|
+
disabled: t5,
|
|
5473
|
+
label: t6,
|
|
5474
|
+
title: t7,
|
|
5461
5475
|
onHandle: handle
|
|
5462
|
-
}, $[
|
|
5476
|
+
}, $[26] = handle, $[27] = t5, $[28] = t6, $[29] = t7, $[30] = t8) : t8 = $[30], t4 = t8;
|
|
5463
5477
|
}
|
|
5464
|
-
return
|
|
5478
|
+
return t4;
|
|
5465
5479
|
};
|
|
5466
5480
|
useDuplicateAction.action = "duplicate";
|
|
5467
5481
|
useDuplicateAction.displayName = "DuplicateAction";
|