sanity 6.6.0-next.25 → 6.6.0-next.28

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.
@@ -85012,7 +85012,7 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85012
85012
  border-radius: ${radius[3]}px ${radius[3]}px 0 0;
85013
85013
  `;
85014
85014
  }), DocumentGroupInventory = (t0) => {
85015
- const $ = c(96), {
85015
+ const $ = c(97), {
85016
85016
  documentType,
85017
85017
  documentId,
85018
85018
  portalElementName,
@@ -85149,45 +85149,46 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85149
85149
  t22
85150
85150
  ] }) }), $[53] = t17, $[54] = t22, $[55] = t23) : t23 = $[55];
85151
85151
  let t24;
85152
- $[56] !== documentType || $[57] !== inventoryRef || $[58] !== menuPortalElement || $[59] !== perspectiveList || $[60] !== schema2 || $[61] !== selectionRef || $[62] !== setVariant ? (t24 = schema2 && /* @__PURE__ */ jsx(Select, { machine: selectionRef, inventoryRef, documentType, menuPortalElement, perspectiveList, onPrimaryAction: setVariant }), $[56] = documentType, $[57] = inventoryRef, $[58] = menuPortalElement, $[59] = perspectiveList, $[60] = schema2, $[61] = selectionRef, $[62] = setVariant, $[63] = t24) : t24 = $[63];
85152
+ $[56] !== documentId || $[57] !== documentType || $[58] !== inventoryRef || $[59] !== menuPortalElement || $[60] !== perspectiveList || $[61] !== schema2 || $[62] !== selectionRef || $[63] !== setVariant ? (t24 = schema2 && /* @__PURE__ */ jsx(Select, { machine: selectionRef, inventoryRef, documentId, documentType, menuPortalElement, perspectiveList, onPrimaryAction: setVariant }), $[56] = documentId, $[57] = documentType, $[58] = inventoryRef, $[59] = menuPortalElement, $[60] = perspectiveList, $[61] = schema2, $[62] = selectionRef, $[63] = setVariant, $[64] = t24) : t24 = $[64];
85153
85153
  let t25;
85154
- $[64] !== t24 ? (t25 = /* @__PURE__ */ jsx(Body, { children: t24 }), $[64] = t24, $[65] = t25) : t25 = $[65];
85154
+ $[65] !== t24 ? (t25 = /* @__PURE__ */ jsx(Body, { children: t24 }), $[65] = t24, $[66] = t25) : t25 = $[66];
85155
85155
  let t26;
85156
- $[66] !== selectionCount || $[67] !== t ? (t26 = t("document-group.delete.confirm-button.text", {
85156
+ $[67] !== selectionCount || $[68] !== t ? (t26 = t("document-group.delete.confirm-button.text", {
85157
85157
  count: selectionCount
85158
- }), $[66] = selectionCount, $[67] = t, $[68] = t26) : t26 = $[68];
85158
+ }), $[67] = selectionCount, $[68] = t, $[69] = t26) : t26 = $[69];
85159
85159
  let t27;
85160
- $[69] !== deletionRef ? (t27 = () => deletionRef.send({
85160
+ $[70] !== deletionRef ? (t27 = () => deletionRef.send({
85161
85161
  type: "delete.request"
85162
- }), $[69] = deletionRef, $[70] = t27) : t27 = $[70];
85162
+ }), $[70] = deletionRef, $[71] = t27) : t27 = $[71];
85163
85163
  const t28 = !canRequestDeletion;
85164
85164
  let t29;
85165
- $[71] !== t26 || $[72] !== t27 || $[73] !== t28 ? (t29 = /* @__PURE__ */ jsx(Footer, { children: /* @__PURE__ */ jsx(Button$1, { text: t26, onClick: t27, disabled: t28, tone: "critical", size: "large", icon: TrashIcon }) }), $[71] = t26, $[72] = t27, $[73] = t28, $[74] = t29) : t29 = $[74];
85165
+ $[72] !== t26 || $[73] !== t27 || $[74] !== t28 ? (t29 = /* @__PURE__ */ jsx(Footer, { children: /* @__PURE__ */ jsx(Button$1, { text: t26, onClick: t27, disabled: t28, tone: "critical", size: "large", icon: TrashIcon }) }), $[72] = t26, $[73] = t27, $[74] = t28, $[75] = t29) : t29 = $[75];
85166
85166
  let t30;
85167
- $[75] !== t23 || $[76] !== t25 || $[77] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Container, { ref: setContainerElement, "data-testid": "document-group-inventory", children: [
85167
+ $[76] !== t23 || $[77] !== t25 || $[78] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Container, { ref: setContainerElement, "data-testid": "document-group-inventory", children: [
85168
85168
  t23,
85169
85169
  t25,
85170
85170
  t29
85171
- ] }), $[75] = t23, $[76] = t25, $[77] = t29, $[78] = t30) : t30 = $[78];
85171
+ ] }), $[76] = t23, $[77] = t25, $[78] = t29, $[79] = t30) : t30 = $[79];
85172
85172
  let t31;
85173
- $[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t31 = /* @__PURE__ */ jsx("div", { ref: setMenuPortalElement }), $[79] = t31) : t31 = $[79];
85173
+ $[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t31 = /* @__PURE__ */ jsx("div", { ref: setMenuPortalElement }), $[80] = t31) : t31 = $[80];
85174
85174
  let t32;
85175
- $[80] !== components2 || $[81] !== deletionRef || $[82] !== documentId || $[83] !== documentType || $[84] !== isDeletionActive || $[85] !== portalElementName || $[86] !== selectionRef ? (t32 = isDeletionActive && /* @__PURE__ */ jsx(ConfirmDeleteDialog, { documentId, documentType, deletionRef, selectionRef, portalElementName, components: components2 }), $[80] = components2, $[81] = deletionRef, $[82] = documentId, $[83] = documentType, $[84] = isDeletionActive, $[85] = portalElementName, $[86] = selectionRef, $[87] = t32) : t32 = $[87];
85175
+ $[81] !== components2 || $[82] !== deletionRef || $[83] !== documentId || $[84] !== documentType || $[85] !== isDeletionActive || $[86] !== portalElementName || $[87] !== selectionRef ? (t32 = isDeletionActive && /* @__PURE__ */ jsx(ConfirmDeleteDialog, { documentId, documentType, deletionRef, selectionRef, portalElementName, components: components2 }), $[81] = components2, $[82] = deletionRef, $[83] = documentId, $[84] = documentType, $[85] = isDeletionActive, $[86] = portalElementName, $[87] = selectionRef, $[88] = t32) : t32 = $[88];
85176
85176
  let t33;
85177
- $[88] !== inventoryRef || $[89] !== isFeedbackActive || $[90] !== t ? (t33 = isFeedbackActive && /* @__PURE__ */ jsx(StudioFeedbackDialog, { dsn: STUDIO_DSN, feedbackVersion: "1", source: "document-group-inventory", onClose: () => inventoryRef.send({
85177
+ $[89] !== inventoryRef || $[90] !== isFeedbackActive || $[91] !== t ? (t33 = isFeedbackActive && /* @__PURE__ */ jsx(StudioFeedbackDialog, { dsn: STUDIO_DSN, feedbackVersion: "1", source: "document-group-inventory", onClose: () => inventoryRef.send({
85178
85178
  type: "feedback.end"
85179
- }), sentimentLabel: t("document-group-inventory.feedback.sentiment-label") }), $[88] = inventoryRef, $[89] = isFeedbackActive, $[90] = t, $[91] = t33) : t33 = $[91];
85179
+ }), sentimentLabel: t("document-group-inventory.feedback.sentiment-label") }), $[89] = inventoryRef, $[90] = isFeedbackActive, $[91] = t, $[92] = t33) : t33 = $[92];
85180
85180
  let t34;
85181
- return $[92] !== t30 || $[93] !== t32 || $[94] !== t33 ? (t34 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
85181
+ return $[93] !== t30 || $[94] !== t32 || $[95] !== t33 ? (t34 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
85182
85182
  t30,
85183
85183
  t31,
85184
85184
  t32,
85185
85185
  t33
85186
- ] }), $[92] = t30, $[93] = t32, $[94] = t33, $[95] = t34) : t34 = $[95], t34;
85186
+ ] }), $[93] = t30, $[94] = t32, $[95] = t33, $[96] = t34) : t34 = $[96], t34;
85187
85187
  }, Select = (t0) => {
85188
- const $ = c(21), {
85188
+ const $ = c(23), {
85189
85189
  machine,
85190
85190
  inventoryRef,
85191
+ documentId,
85191
85192
  documentType,
85192
85193
  onPrimaryAction,
85193
85194
  menuPortalElement,
@@ -85196,9 +85197,9 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85196
85197
  useTranslation(studioLocaleNamespace);
85197
85198
  const sets = useSelector(inventoryRef, _temp11), hasFilterString = useSelector(machine, _temp12), filterMatchingVariantIds = useSelector(machine, _temp13);
85198
85199
  let t1;
85199
- if ($[0] !== documentType || $[1] !== filterMatchingVariantIds || $[2] !== hasFilterString || $[3] !== inventoryRef || $[4] !== machine || $[5] !== menuPortalElement || $[6] !== onPrimaryAction || $[7] !== perspectiveList || $[8] !== sets) {
85200
+ if ($[0] !== documentId || $[1] !== documentType || $[2] !== filterMatchingVariantIds || $[3] !== hasFilterString || $[4] !== inventoryRef || $[5] !== machine || $[6] !== menuPortalElement || $[7] !== onPrimaryAction || $[8] !== perspectiveList || $[9] !== sets) {
85200
85201
  let t22;
85201
- $[10] !== documentType || $[11] !== filterMatchingVariantIds || $[12] !== hasFilterString || $[13] !== inventoryRef || $[14] !== machine || $[15] !== menuPortalElement || $[16] !== onPrimaryAction || $[17] !== perspectiveList ? (t22 = (set2) => /* @__PURE__ */ jsxs(VariantSet, { "data-variant-set": set2.name, children: [
85202
+ $[11] !== documentId || $[12] !== documentType || $[13] !== filterMatchingVariantIds || $[14] !== hasFilterString || $[15] !== inventoryRef || $[16] !== machine || $[17] !== menuPortalElement || $[18] !== onPrimaryAction || $[19] !== perspectiveList ? (t22 = (set2) => /* @__PURE__ */ jsxs(VariantSet, { "data-variant-set": set2.name, children: [
85202
85203
  /* @__PURE__ */ jsxs(VariantSetHeader, { as: "header", children: [
85203
85204
  /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "bold", children: set2.name }),
85204
85205
  /* @__PURE__ */ jsx(TextButton, { onClick: () => {
@@ -85213,19 +85214,20 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85213
85214
  id: id2
85214
85215
  } = t3;
85215
85216
  return !hasFilterString || filterMatchingVariantIds.has(id2);
85216
- }).map((variant_0) => /* @__PURE__ */ jsx(Variant, { variant: variant_0, machine, inventoryRef, documentType, onPrimaryAction, isSelectable: !0, menuPortalElement, perspectiveList }, variant_0.id))
85217
- ] }, set2.key), $[10] = documentType, $[11] = filterMatchingVariantIds, $[12] = hasFilterString, $[13] = inventoryRef, $[14] = machine, $[15] = menuPortalElement, $[16] = onPrimaryAction, $[17] = perspectiveList, $[18] = t22) : t22 = $[18], t1 = sets.map(t22), $[0] = documentType, $[1] = filterMatchingVariantIds, $[2] = hasFilterString, $[3] = inventoryRef, $[4] = machine, $[5] = menuPortalElement, $[6] = onPrimaryAction, $[7] = perspectiveList, $[8] = sets, $[9] = t1;
85217
+ }).map((variant_0) => /* @__PURE__ */ jsx(Variant, { variant: variant_0, machine, inventoryRef, documentType, onPrimaryAction, isActive: documentId === variant_0.id, isSelectable: !0, menuPortalElement, perspectiveList }, variant_0.id))
85218
+ ] }, set2.key), $[11] = documentId, $[12] = documentType, $[13] = filterMatchingVariantIds, $[14] = hasFilterString, $[15] = inventoryRef, $[16] = machine, $[17] = menuPortalElement, $[18] = onPrimaryAction, $[19] = perspectiveList, $[20] = t22) : t22 = $[20], t1 = sets.map(t22), $[0] = documentId, $[1] = documentType, $[2] = filterMatchingVariantIds, $[3] = hasFilterString, $[4] = inventoryRef, $[5] = machine, $[6] = menuPortalElement, $[7] = onPrimaryAction, $[8] = perspectiveList, $[9] = sets, $[10] = t1;
85218
85219
  } else
85219
- t1 = $[9];
85220
+ t1 = $[10];
85220
85221
  let t2;
85221
- return $[19] !== t1 ? (t2 = /* @__PURE__ */ jsx(Stack, { gap: 5, children: t1 }), $[19] = t1, $[20] = t2) : t2 = $[20], t2;
85222
+ return $[21] !== t1 ? (t2 = /* @__PURE__ */ jsx(Stack, { gap: 5, children: t1 }), $[21] = t1, $[22] = t2) : t2 = $[22], t2;
85222
85223
  }, Variant = (t0) => {
85223
- const $ = c(99), {
85224
+ const $ = c(91), {
85224
85225
  variant,
85225
85226
  machine,
85226
85227
  inventoryRef,
85227
85228
  documentType,
85228
85229
  onPrimaryAction,
85230
+ isActive: isSelected,
85229
85231
  isSelectable,
85230
85232
  menuPortalElement,
85231
85233
  perspectiveList
@@ -85247,23 +85249,17 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85247
85249
  $[6] !== variant.id ? (t4 = getPublishedId(variant.id), $[6] = variant.id, $[7] = t4) : t4 = $[7];
85248
85250
  const documentId = t4, versionName = getVersionFromId(variant.id), bundleId = isPublishedVersion2 ? "published" : isDraftVersion2 ? "draft" : versionName ?? "", isReadOnly = useSelector(machine, _temp14), selectedIds = useSelector(machine, _temp15), releases2 = useSelector(inventoryRef, _temp16), {
85249
85251
  filteredReleases,
85250
- getReleaseChipState,
85251
- handleCopyToDraftsNavigate,
85252
- isDraftSelected,
85253
- isPublishSelected
85254
- } = perspectiveList;
85252
+ handleCopyToDraftsNavigate
85253
+ } = perspectiveList, release = versionName ? releases2.get(getReleaseDocumentIdFromReleaseId(versionName)) : void 0;
85255
85254
  let t5;
85256
- $[8] !== getReleaseChipState || $[9] !== isDraftSelected || $[10] !== isDraftVersion2 || $[11] !== isPublishSelected || $[12] !== isPublishedVersion2 || $[13] !== isVersion || $[14] !== variant.id ? (t5 = isPublishedVersion2 && isPublishSelected || isDraftVersion2 && isDraftSelected || isVersion && getReleaseChipState(getVersionFromId(variant.id) ?? "").selected, $[8] = getReleaseChipState, $[9] = isDraftSelected, $[10] = isDraftVersion2, $[11] = isPublishSelected, $[12] = isPublishedVersion2, $[13] = isVersion, $[14] = variant.id, $[15] = t5) : t5 = $[15];
85257
- const isSelected = t5, release = versionName ? releases2.get(getReleaseDocumentIdFromReleaseId(versionName)) : void 0;
85258
- let t6;
85259
- $[16] !== bundleId || $[17] !== documentId || $[18] !== documentType || $[19] !== isReadOnly || $[20] !== isVersion || $[21] !== release ? (t6 = {
85255
+ $[8] !== bundleId || $[9] !== documentId || $[10] !== documentType || $[11] !== isReadOnly || $[12] !== isVersion || $[13] !== release ? (t5 = {
85260
85256
  documentId,
85261
85257
  documentType,
85262
85258
  bundleId,
85263
85259
  isVersion,
85264
85260
  disabled: isReadOnly,
85265
85261
  release
85266
- }, $[16] = bundleId, $[17] = documentId, $[18] = documentType, $[19] = isReadOnly, $[20] = isVersion, $[21] = release, $[22] = t6) : t6 = $[22];
85262
+ }, $[8] = bundleId, $[9] = documentId, $[10] = documentType, $[11] = isReadOnly, $[12] = isVersion, $[13] = release, $[14] = t5) : t5 = $[14];
85267
85263
  const {
85268
85264
  contextMenu,
85269
85265
  handleContextMenu,
@@ -85279,18 +85275,18 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85279
85275
  isScheduledDraft,
85280
85276
  scheduledDraftMenuActions,
85281
85277
  sourceReleasePerspective
85282
- } = useVersionContextMenu(t6), contextMenuHandler = isReadOnly || !releasesToolAvailable ? void 0 : handleContextMenu, t7 = isSelected || void 0;
85283
- let t8;
85284
- $[23] !== onPrimaryAction || $[24] !== variant.document || $[25] !== variant.id ? (t8 = () => {
85278
+ } = useVersionContextMenu(t5), contextMenuHandler = isReadOnly || !releasesToolAvailable ? void 0 : handleContextMenu, t6 = isSelected || void 0;
85279
+ let t7;
85280
+ $[15] !== onPrimaryAction || $[16] !== variant.document || $[17] !== variant.id ? (t7 = () => {
85285
85281
  let bundle;
85286
- bb60: switch (readVersionType(variant.document)) {
85282
+ bb36: switch (readVersionType(variant.document)) {
85287
85283
  case "release": {
85288
85284
  bundle = getReleaseIdFromReleaseDocumentId(variant?.document?._system.release?._ref ?? "");
85289
- break bb60;
85285
+ break bb36;
85290
85286
  }
85291
85287
  case "published": {
85292
85288
  bundle = "published";
85293
- break bb60;
85289
+ break bb36;
85294
85290
  }
85295
85291
  case "draft":
85296
85292
  bundle = "drafts";
@@ -85300,56 +85296,56 @@ const Container = /* @__PURE__ */ styled.div.withConfig({
85300
85296
  variantId,
85301
85297
  perspective: agentId ?? bundle
85302
85298
  });
85303
- }, $[23] = onPrimaryAction, $[24] = variant.document, $[25] = variant.id, $[26] = t8) : t8 = $[26];
85299
+ }, $[15] = onPrimaryAction, $[16] = variant.document, $[17] = variant.id, $[18] = t7) : t7 = $[18];
85300
+ let t8;
85301
+ $[19] !== contextMenuHandler || $[20] !== setReferenceElement || $[21] !== t7 || $[22] !== variant.name ? (t8 = /* @__PURE__ */ jsx("button", { type: "button", className: "primary-action", ref: setReferenceElement, onClick: t7, onContextMenu: contextMenuHandler, children: variant.name }), $[19] = contextMenuHandler, $[20] = setReferenceElement, $[21] = t7, $[22] = variant.name, $[23] = t8) : t8 = $[23];
85304
85302
  let t9;
85305
- $[27] !== contextMenuHandler || $[28] !== setReferenceElement || $[29] !== t8 || $[30] !== variant.name ? (t9 = /* @__PURE__ */ jsx("button", { type: "button", className: "primary-action", ref: setReferenceElement, onClick: t8, onContextMenu: contextMenuHandler, children: variant.name }), $[27] = contextMenuHandler, $[28] = setReferenceElement, $[29] = t8, $[30] = variant.name, $[31] = t9) : t9 = $[31];
85306
- let t10;
85307
- $[32] !== isReadOnly || $[33] !== isSelectable || $[34] !== machine || $[35] !== selectedIds || $[36] !== variant.id ? (t10 = isSelectable && /* @__PURE__ */ jsx(VariantCheckbox, { checked: selectedIds.has(variant.id), readOnly: isReadOnly, onChange: () => {
85303
+ $[24] !== isReadOnly || $[25] !== isSelectable || $[26] !== machine || $[27] !== selectedIds || $[28] !== variant.id ? (t9 = isSelectable && /* @__PURE__ */ jsx(VariantCheckbox, { checked: selectedIds.has(variant.id), readOnly: isReadOnly, onChange: () => {
85308
85304
  machine.send({
85309
85305
  type: "selection.toggle",
85310
85306
  variantId: variant.id
85311
85307
  });
85312
- } }), $[32] = isReadOnly, $[33] = isSelectable, $[34] = machine, $[35] = selectedIds, $[36] = variant.id, $[37] = t10) : t10 = $[37];
85308
+ } }), $[24] = isReadOnly, $[25] = isSelectable, $[26] = machine, $[27] = selectedIds, $[28] = variant.id, $[29] = t9) : t9 = $[29];
85309
+ let t10;
85310
+ $[30] !== variant.name ? (t10 = /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "bold", className: "inert", children: variant.name }), $[30] = variant.name, $[31] = t10) : t10 = $[31];
85313
85311
  let t11;
85314
- $[38] !== variant.name ? (t11 = /* @__PURE__ */ jsx(Text$1, { size: 1, weight: "bold", className: "inert", children: variant.name }), $[38] = variant.name, $[39] = t11) : t11 = $[39];
85315
- let t12;
85316
- $[40] !== t10 || $[41] !== t11 || $[42] !== t9 ? (t12 = /* @__PURE__ */ jsxs("div", { className: "atom", children: [
85312
+ $[32] !== t10 || $[33] !== t8 || $[34] !== t9 ? (t11 = /* @__PURE__ */ jsxs("div", { className: "atom", children: [
85313
+ t8,
85317
85314
  t9,
85318
- t10,
85319
- t11
85320
- ] }), $[40] = t10, $[41] = t11, $[42] = t9, $[43] = t12) : t12 = $[43];
85321
- let t13;
85322
- $[44] !== isSelected || $[45] !== t ? (t13 = isSelected && /* @__PURE__ */ jsxs(StatusBadge, { radius: 2, tone: "primary", children: [
85315
+ t10
85316
+ ] }), $[32] = t10, $[33] = t8, $[34] = t9, $[35] = t11) : t11 = $[35];
85317
+ let t12;
85318
+ $[36] !== isSelected || $[37] !== t ? (t12 = isSelected && /* @__PURE__ */ jsxs(StatusBadge, { radius: 2, tone: "primary", children: [
85323
85319
  /* @__PURE__ */ jsx(EyeOpenIcon, {}),
85324
85320
  " ",
85325
85321
  t("document-group-inventory.viewing-item-label")
85326
- ] }), $[44] = isSelected, $[45] = t, $[46] = t13) : t13 = $[46];
85322
+ ] }), $[36] = isSelected, $[37] = t, $[38] = t12) : t12 = $[38];
85323
+ let t13;
85324
+ $[39] !== isDraftVersion2 || $[40] !== isPublishedVersion2 || $[41] !== release || $[42] !== variant.id ? (t13 = /* @__PURE__ */ jsx(Text$1, { size: 1, children: isAgentBundleName(getVersionFromId(variant.id)) ? /* @__PURE__ */ jsx(ReleaseAvatarIcon, { tone: "suggest" }) : /* @__PURE__ */ jsx(ReleaseAvatarIcon, { release: (isDraftVersion2 ? "drafts" : isPublishedVersion2 ? "published" : release) ?? "" }) }), $[39] = isDraftVersion2, $[40] = isPublishedVersion2, $[41] = release, $[42] = variant.id, $[43] = t13) : t13 = $[43];
85327
85325
  let t14;
85328
- $[47] !== isDraftVersion2 || $[48] !== isPublishedVersion2 || $[49] !== release || $[50] !== variant.id ? (t14 = /* @__PURE__ */ jsx(Text$1, { size: 1, children: isAgentBundleName(getVersionFromId(variant.id)) ? /* @__PURE__ */ jsx(ReleaseAvatarIcon, { tone: "suggest" }) : /* @__PURE__ */ jsx(ReleaseAvatarIcon, { release: (isDraftVersion2 ? "drafts" : isPublishedVersion2 ? "published" : release) ?? "" }) }), $[47] = isDraftVersion2, $[48] = isPublishedVersion2, $[49] = release, $[50] = variant.id, $[51] = t14) : t14 = $[51];
85326
+ $[44] !== t12 || $[45] !== t13 ? (t14 = /* @__PURE__ */ jsxs("div", { className: "atom inert", children: [
85327
+ t12,
85328
+ t13
85329
+ ] }), $[44] = t12, $[45] = t13, $[46] = t14) : t14 = $[46];
85329
85330
  let t15;
85330
- $[52] !== t13 || $[53] !== t14 ? (t15 = /* @__PURE__ */ jsxs("div", { className: "atom inert", children: [
85331
- t13,
85331
+ $[47] !== t11 || $[48] !== t14 || $[49] !== t6 || $[50] !== variant.name ? (t15 = /* @__PURE__ */ jsxs(VariantSetEntry, { "data-variant-name": variant.name, "data-selected": t6, children: [
85332
+ t11,
85332
85333
  t14
85333
- ] }), $[52] = t13, $[53] = t14, $[54] = t15) : t15 = $[54];
85334
- let t16;
85335
- $[55] !== t12 || $[56] !== t15 || $[57] !== t7 || $[58] !== variant.name ? (t16 = /* @__PURE__ */ jsxs(VariantSetEntry, { "data-variant-name": variant.name, "data-selected": t7, children: [
85336
- t12,
85337
- t15
85338
- ] }), $[55] = t12, $[56] = t15, $[57] = t7, $[58] = variant.name, $[59] = t16) : t16 = $[59];
85339
- const t17 = filteredReleases.notCurrentReleases, t18 = !!menuPortalElement;
85334
+ ] }), $[47] = t11, $[48] = t14, $[49] = t6, $[50] = variant.name, $[51] = t15) : t15 = $[51];
85335
+ const t16 = filteredReleases.notCurrentReleases, t17 = !!menuPortalElement;
85336
+ let t18;
85337
+ $[52] !== bundleId || $[53] !== contextMenu || $[54] !== documentId || $[55] !== documentType || $[56] !== filteredReleases.notCurrentReleases || $[57] !== handleAddVersion || $[58] !== handleCopyToDraftsNavigate || $[59] !== isReadOnly || $[60] !== isScheduledDraft || $[61] !== isVersion || $[62] !== openCopyToDraftsDialog || $[63] !== openCreateReleaseDialog || $[64] !== openDiscardDialog || $[65] !== popoverRef || $[66] !== referenceElement || $[67] !== release || $[68] !== releasesLoading || $[69] !== scheduledDraftMenuActions || $[70] !== t17 ? (t18 = /* @__PURE__ */ jsx(VersionContextMenuPopover, { contextMenu, popoverRef, referenceElement, documentId, documentType, bundleId, isVersion, releases: t16, releasesLoading, onDiscard: openDiscardDialog, onCreateRelease: openCreateReleaseDialog, onCopyToDrafts: openCopyToDraftsDialog, onCopyToDraftsNavigate: handleCopyToDraftsNavigate, onCreateVersion: handleAddVersion, disabled: isReadOnly, release, isScheduledDraft, scheduledDraftMenuActions, portal: t17, isDiscardable: !1 }), $[52] = bundleId, $[53] = contextMenu, $[54] = documentId, $[55] = documentType, $[56] = filteredReleases.notCurrentReleases, $[57] = handleAddVersion, $[58] = handleCopyToDraftsNavigate, $[59] = isReadOnly, $[60] = isScheduledDraft, $[61] = isVersion, $[62] = openCopyToDraftsDialog, $[63] = openCreateReleaseDialog, $[64] = openDiscardDialog, $[65] = popoverRef, $[66] = referenceElement, $[67] = release, $[68] = releasesLoading, $[69] = scheduledDraftMenuActions, $[70] = t17, $[71] = t18) : t18 = $[71];
85340
85338
  let t19;
85341
- $[60] !== bundleId || $[61] !== contextMenu || $[62] !== documentId || $[63] !== documentType || $[64] !== filteredReleases.notCurrentReleases || $[65] !== handleAddVersion || $[66] !== handleCopyToDraftsNavigate || $[67] !== isReadOnly || $[68] !== isScheduledDraft || $[69] !== isVersion || $[70] !== openCopyToDraftsDialog || $[71] !== openCreateReleaseDialog || $[72] !== openDiscardDialog || $[73] !== popoverRef || $[74] !== referenceElement || $[75] !== release || $[76] !== releasesLoading || $[77] !== scheduledDraftMenuActions || $[78] !== t18 ? (t19 = /* @__PURE__ */ jsx(VersionContextMenuPopover, { contextMenu, popoverRef, referenceElement, documentId, documentType, bundleId, isVersion, releases: t17, releasesLoading, onDiscard: openDiscardDialog, onCreateRelease: openCreateReleaseDialog, onCopyToDrafts: openCopyToDraftsDialog, onCopyToDraftsNavigate: handleCopyToDraftsNavigate, onCreateVersion: handleAddVersion, disabled: isReadOnly, release, isScheduledDraft, scheduledDraftMenuActions, portal: t18, isDiscardable: !1 }), $[60] = bundleId, $[61] = contextMenu, $[62] = documentId, $[63] = documentType, $[64] = filteredReleases.notCurrentReleases, $[65] = handleAddVersion, $[66] = handleCopyToDraftsNavigate, $[67] = isReadOnly, $[68] = isScheduledDraft, $[69] = isVersion, $[70] = openCopyToDraftsDialog, $[71] = openCreateReleaseDialog, $[72] = openDiscardDialog, $[73] = popoverRef, $[74] = referenceElement, $[75] = release, $[76] = releasesLoading, $[77] = scheduledDraftMenuActions, $[78] = t18, $[79] = t19) : t19 = $[79];
85342
- let t20;
85343
- $[80] !== menuPortalElement || $[81] !== t19 ? (t20 = /* @__PURE__ */ jsx(PortalProvider, { element: menuPortalElement, children: t19 }), $[80] = menuPortalElement, $[81] = t19, $[82] = t20) : t20 = $[82];
85344
- const t21 = isScheduledDraft && scheduledDraftMenuActions.dialogs;
85339
+ $[72] !== menuPortalElement || $[73] !== t18 ? (t19 = /* @__PURE__ */ jsx(PortalProvider, { element: menuPortalElement, children: t18 }), $[72] = menuPortalElement, $[73] = t18, $[74] = t19) : t19 = $[74];
85340
+ const t20 = isScheduledDraft && scheduledDraftMenuActions.dialogs;
85341
+ let t21;
85342
+ $[75] !== bundleId || $[76] !== closeDialog || $[77] !== dialogState || $[78] !== documentId || $[79] !== documentType || $[80] !== handleAddVersion || $[81] !== handleCopyToDraftsNavigate || $[82] !== isVersion || $[83] !== sourceReleasePerspective || $[84] !== t20 || $[85] !== variant.name ? (t21 = /* @__PURE__ */ jsx(VersionContextMenuDialogs, { dialogState, onClose: closeDialog, documentId, documentType, bundleId, isVersion, title: variant.name, sourceReleasePerspective, onCreateVersion: handleAddVersion, onCopyToDraftsNavigate: handleCopyToDraftsNavigate, scheduledDraftDialogs: t20 }), $[75] = bundleId, $[76] = closeDialog, $[77] = dialogState, $[78] = documentId, $[79] = documentType, $[80] = handleAddVersion, $[81] = handleCopyToDraftsNavigate, $[82] = isVersion, $[83] = sourceReleasePerspective, $[84] = t20, $[85] = variant.name, $[86] = t21) : t21 = $[86];
85345
85343
  let t22;
85346
- $[83] !== bundleId || $[84] !== closeDialog || $[85] !== dialogState || $[86] !== documentId || $[87] !== documentType || $[88] !== handleAddVersion || $[89] !== handleCopyToDraftsNavigate || $[90] !== isVersion || $[91] !== sourceReleasePerspective || $[92] !== t21 || $[93] !== variant.name ? (t22 = /* @__PURE__ */ jsx(VersionContextMenuDialogs, { dialogState, onClose: closeDialog, documentId, documentType, bundleId, isVersion, title: variant.name, sourceReleasePerspective, onCreateVersion: handleAddVersion, onCopyToDraftsNavigate: handleCopyToDraftsNavigate, scheduledDraftDialogs: t21 }), $[83] = bundleId, $[84] = closeDialog, $[85] = dialogState, $[86] = documentId, $[87] = documentType, $[88] = handleAddVersion, $[89] = handleCopyToDraftsNavigate, $[90] = isVersion, $[91] = sourceReleasePerspective, $[92] = t21, $[93] = variant.name, $[94] = t22) : t22 = $[94];
85347
- let t23;
85348
- return $[95] !== t16 || $[96] !== t20 || $[97] !== t22 ? (t23 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
85349
- t16,
85350
- t20,
85351
- t22
85352
- ] }), $[95] = t16, $[96] = t20, $[97] = t22, $[98] = t23) : t23 = $[98], t23;
85344
+ return $[87] !== t15 || $[88] !== t19 || $[89] !== t21 ? (t22 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
85345
+ t15,
85346
+ t19,
85347
+ t21
85348
+ ] }), $[87] = t15, $[88] = t19, $[89] = t21, $[90] = t22) : t22 = $[90], t22;
85353
85349
  };
85354
85350
  function usePreserveIntrinsicBlockSize(t0) {
85355
85351
  const $ = c(10), {
@@ -85458,8 +85454,8 @@ function _temp13(t0) {
85458
85454
  } = t0;
85459
85455
  return context_1.filterMatchingVariantIds;
85460
85456
  }
85461
- function _temp14(s) {
85462
- return s.matches("readonly");
85457
+ function _temp14(snapshot2) {
85458
+ return snapshot2.matches("readonly");
85463
85459
  }
85464
85460
  function _temp15(t0) {
85465
85461
  const {