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.
@@ -1,4 +1,4 @@
1
- var version = "5.1.0-next.19+df4d72cb45", peerDependencies = {
1
+ var version = "5.1.0-next.20+3b26890238", peerDependencies = {
2
2
  "styled-components": "^6.1.15"
3
3
  };
4
4
  export {
@@ -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(32), {
5208
+ const $ = c(34), {
5209
5209
  id,
5210
5210
  type,
5211
5211
  draft,
5212
- release
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, release), [isDeleting, setIsDeleting] = useState(!1), [isConfirmDialogOpen, setConfirmDialogOpen] = useState(!1), {
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
- $[1] !== deleteOp ? (t2 = (versions) => {
5225
- setConfirmDialogOpen(!1), setIsDeleting(!0), deleteOp.execute(versions), setIsDeleting(!1);
5226
- }, $[1] = deleteOp, $[2] = t2) : t2 = $[2];
5227
- const handleConfirm = t2;
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] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5230
- setConfirmDialogOpen(!0);
5231
- }, $[3] = t3) : t3 = $[3];
5232
- const handle = t3;
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
- $[4] !== id || $[5] !== release || $[6] !== type ? (t4 = {
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: release,
5240
+ version: bundleId,
5238
5241
  permission: "delete"
5239
- }, $[4] = id, $[5] = release, $[6] = type, $[7] = t4) : t4 = $[7];
5240
- const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t4), currentUser = useCurrentUser();
5241
- let t5;
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] !== currentUser ? (t72 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "delete-document", currentUser }), $[10] = currentUser, $[11] = t72) : t72 = $[11];
5248
+ $[10] !== t ? (t72 = t("action.delete.label"), $[10] = t, $[11] = t72) : t72 = $[11];
5248
5249
  let t82;
5249
- $[12] !== t62 || $[13] !== t72 ? (t82 = {
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: t62,
5254
- title: t72
5255
- }, $[12] = t62, $[13] = t72, $[14] = t82) : t82 = $[14], t5 = t82;
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 t6 = isDeleting || !!deleteOp.disabled || isPermissionsLoading;
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
- $[18] !== isDeleting || $[19] !== t ? (t8 = t(isDeleting ? "action.delete.running.label" : "action.delete.label"), $[18] = isDeleting, $[19] = t, $[20] = t8) : t8 = $[20];
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
- $[21] !== draft?._id || $[22] !== handleConfirm || $[23] !== id || $[24] !== isConfirmDialogOpen || $[25] !== type ? (t9 = isConfirmDialogOpen && {
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
- }, $[21] = draft?._id, $[22] = handleConfirm, $[23] = id, $[24] = isConfirmDialogOpen, $[25] = type, $[26] = t9) : t9 = $[26];
5268
- let t10;
5269
- $[27] !== t6 || $[28] !== t7 || $[29] !== t8 || $[30] !== t9 ? (t10 = {
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: t6,
5273
- title: t7,
5274
- label: t8,
5275
+ disabled: t7,
5276
+ title: t8,
5277
+ label: t9,
5275
5278
  shortcut: "Ctrl+Alt+D",
5276
5279
  onHandle: handle,
5277
- dialog: t9
5278
- }, $[27] = t6, $[28] = t7, $[29] = t8, $[30] = t9, $[31] = t10) : t10 = $[31], t5 = t10;
5280
+ dialog: t10
5281
+ }, $[29] = t10, $[30] = t7, $[31] = t8, $[32] = t9, $[33] = t11) : t11 = $[33], t6 = t11;
5279
5282
  }
5280
- return t5;
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(29), {
5318
+ const $ = c(31), {
5316
5319
  id,
5317
5320
  type,
5318
5321
  published,
5319
- liveEdit,
5320
- release
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] !== id || $[1] !== release || $[2] !== type ? (t1 = {
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: release,
5334
+ version: bundleId,
5329
5335
  permission: "discardDraft"
5330
- }, $[0] = id, $[1] = release, $[2] = type, $[3] = t1) : t1 = $[3];
5331
- const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t1), currentUser = useCurrentUser(), {
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] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => {
5343
- setConfirmDialogOpen(!1);
5344
- }, $[6] = t3) : t3 = $[6];
5345
- const handleCancel = t3;
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
- $[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = () => {
5348
- setConfirmDialogOpen(!0);
5349
- }, $[7] = t4) : t4 = $[7];
5350
- const handle = t4;
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 (liveEdit || isPublished) {
5354
- t5 = null;
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] !== currentUser ? (t72 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "discard-changes", currentUser }), $[10] = currentUser, $[11] = t72) : t72 = $[11];
5369
+ $[10] !== t ? (t72 = t("action.discard-changes.label"), $[10] = t, $[11] = t72) : t72 = $[11];
5362
5370
  let t82;
5363
- $[12] !== t62 || $[13] !== t72 ? (t82 = {
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: t62,
5368
- title: t72
5369
- }, $[12] = t62, $[13] = t72, $[14] = t82) : t82 = $[14], t5 = t82;
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 t6 = !!discardChanges.disabled || isPermissionsLoading, t7 = discardChanges.disabled && DISABLED_REASON_KEY$2[discardChanges.disabled] || "";
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
- $[18] !== t ? (t9 = t("action.discard-changes.label"), $[18] = t, $[19] = t9) : t9 = $[19];
5384
+ $[17] !== t || $[18] !== t8 ? (t9 = t(t8), $[17] = t, $[18] = t8, $[19] = t9) : t9 = $[19];
5377
5385
  let t10;
5378
- $[20] !== handleConfirm || $[21] !== isConfirmDialogOpen || $[22] !== published ? (t10 = isConfirmDialogOpen && {
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
- }, $[20] = handleConfirm, $[21] = isConfirmDialogOpen, $[22] = published, $[23] = t10) : t10 = $[23];
5382
- let t11;
5383
- $[24] !== t10 || $[25] !== t6 || $[26] !== t8 || $[27] !== t9 ? (t11 = {
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: t6,
5387
- title: t8,
5388
- label: t9,
5396
+ disabled: t7,
5397
+ title: t9,
5398
+ label: t10,
5389
5399
  onHandle: handle,
5390
- dialog: t10
5391
- }, $[24] = t10, $[25] = t6, $[26] = t8, $[27] = t9, $[28] = t11) : t11 = $[28], t5 = t11;
5400
+ dialog: t11
5401
+ }, $[26] = t10, $[27] = t11, $[28] = t7, $[29] = t9, $[30] = t12) : t12 = $[30], t6 = t12;
5392
5402
  }
5393
- return t5;
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(29), {
5411
+ const $ = c(31), {
5402
5412
  id,
5403
5413
  type,
5404
5414
  release,
5405
- mapDocument
5406
- } = t0, documentStore = useDocumentStore(), {
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, release), {
5422
+ } = useDocumentOperation(id, type, bundleId), {
5409
5423
  navigateIntent
5410
5424
  } = useRouter(), [isDuplicating, setDuplicating] = useState(!1);
5411
- let t1;
5412
- $[0] !== id || $[1] !== release || $[2] !== type ? (t1 = {
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
- }, $[0] = id, $[1] = release, $[2] = type, $[3] = t1) : t1 = $[3];
5418
- const [permissions, isPermissionsLoading] = useDocumentPairPermissions(t1), {
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 t2;
5422
- $[4] !== documentStore.pair || $[5] !== duplicate || $[6] !== id || $[7] !== mapDocument || $[8] !== navigateIntent || $[9] !== type ? (t2 = async () => {
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
- }, $[4] = documentStore.pair, $[5] = duplicate, $[6] = id, $[7] = mapDocument, $[8] = navigateIntent, $[9] = type, $[10] = t2) : t2 = $[10];
5433
- const handle = t2;
5434
- let t3;
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] !== currentUser ? (t52 = /* @__PURE__ */ jsx(InsufficientPermissionsMessage, { context: "duplicate-document", currentUser }), $[13] = currentUser, $[14] = t52) : t52 = $[14];
5452
+ $[13] !== t ? (t52 = t("action.duplicate.label"), $[13] = t, $[14] = t52) : t52 = $[14];
5441
5453
  let t62;
5442
- $[15] !== t42 || $[16] !== t52 ? (t62 = {
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: t42,
5446
- title: t52
5447
- }, $[15] = t42, $[16] = t52, $[17] = t62) : t62 = $[17], t3 = t62;
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 t4 = isDuplicating || !!duplicate.disabled || isPermissionsLoading;
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
- $[21] !== duplicate.disabled || $[22] !== t ? (t6 = duplicate.disabled ? t(DISABLED_REASON_KEY$1[duplicate.disabled]) : "", $[21] = duplicate.disabled, $[22] = t, $[23] = t6) : t6 = $[23];
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
- $[24] !== handle || $[25] !== t4 || $[26] !== t5 || $[27] !== t6 ? (t7 = {
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: t4,
5459
- label: t5,
5460
- title: t6,
5472
+ disabled: t5,
5473
+ label: t6,
5474
+ title: t7,
5461
5475
  onHandle: handle
5462
- }, $[24] = handle, $[25] = t4, $[26] = t5, $[27] = t6, $[28] = t7) : t7 = $[28], t3 = t7;
5476
+ }, $[26] = handle, $[27] = t5, $[28] = t6, $[29] = t7, $[30] = t8) : t8 = $[30], t4 = t8;
5463
5477
  }
5464
- return t3;
5478
+ return t4;
5465
5479
  };
5466
5480
  useDuplicateAction.action = "duplicate";
5467
5481
  useDuplicateAction.displayName = "DuplicateAction";