@anzusystems/common-admin 1.52.0-single-use-87269.7 → 1.52.0-single-use-87269.12

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.
@@ -1165,13 +1165,13 @@ const cu = {
1165
1165
  }, Vv = Mr.Image, du = (e) => {
1166
1166
  const { t: n, te: t } = Ye.global, a = `common.assetSelect.holder.${e}`;
1167
1167
  return t(a) ? n(a) : e;
1168
- }, fu = (e, n) => {
1169
- const { t } = Ye.global;
1170
- return e.mainFile?.flags.singleUse ?? !1 ? n.singleUseAllowed ? e.singleUseUsage?.blocked ? t("common.assetSelect.disabledReason.singleUseBlocked", {
1168
+ }, fu = (e) => {
1169
+ const { t: n } = Ye.global;
1170
+ return (e.mainFile?.flags.singleUse ?? !1) && e.singleUseUsage?.blocked ? n("common.assetSelect.disabledReason.singleUseBlocked", {
1171
1171
  count: e.singleUseUsage.otherHolderCount
1172
- }) : null : t("common.assetSelect.disabledReason.singleUseNotAllowed") : null;
1172
+ }) : null;
1173
1173
  }, mu = (e, n, t) => {
1174
- const { t: a } = Ye.global, l = fu(e, t);
1174
+ const { t: a } = Ye.global, l = fu(e);
1175
1175
  if (l) return l;
1176
1176
  const o = n?.flags?.directUseAllowed ?? !0;
1177
1177
  return !o && e.attributes.assetType !== Mr.Image ? a("common.assetSelect.disabledReason.directUseDisabledNotImage") : !o && F(t.uploadLicence) ? a("common.assetSelect.disabledReason.directUseDisabledNoUploadLicence") : null;
@@ -1186,8 +1186,7 @@ const cu = {
1186
1186
  }, vu = {
1187
1187
  shared_gallery: "common.damImage.image.error.sharedGallery",
1188
1188
  invalid_owner: "common.damImage.image.error.invalidOwner",
1189
- gallery_copy: "common.damImage.image.error.galleryCopy",
1190
- restore_conflict: "common.damImage.image.error.restoreConflict"
1189
+ gallery_copy: "common.damImage.image.error.galleryCopy"
1191
1190
  };
1192
1191
  function hu(e, n) {
1193
1192
  if (e?.code === "image_take_over_failed")
@@ -1198,7 +1197,7 @@ function hu(e, n) {
1198
1197
  if (t)
1199
1198
  return n(t);
1200
1199
  const a = e.damId ?? "", l = e.holderResourceName ? du(e.holderResourceName) : "";
1201
- return e.reason === "single_use_copy" && a && l ? n("common.damImage.image.error.singleUseCopy", { damId: a, holder: l }) : a ? l ? n("common.damImage.image.error.singleUseViolation", { damId: a, holder: l }) : n("common.damImage.image.error.singleUseViolationUnknownHolder", { damId: a }) : l ? n("common.damImage.image.error.singleUseViolationUnknownImage", { holder: l }) : n("common.damImage.image.error.singleUseViolationUnidentified");
1200
+ return a ? l ? n("common.damImage.image.error.singleUseViolation", { damId: a, holder: l }) : n("common.damImage.image.error.singleUseViolationUnknownHolder", { damId: a }) : l ? n("common.damImage.image.error.singleUseViolationUnknownImage", { holder: l }) : n("common.damImage.image.error.singleUseViolationUnidentified");
1202
1201
  }
1203
1202
  const xn = (e, n, t = "") => oa(n) ? e : ci(
1204
1203
  t === "" ? e : t,
@@ -1271,9 +1270,7 @@ const Su = (e, n) => {
1271
1270
  "exclusivity_conflict",
1272
1271
  "shared_gallery",
1273
1272
  "invalid_owner",
1274
- "single_use_copy",
1275
- "gallery_copy",
1276
- "restore_conflict"
1273
+ "gallery_copy"
1277
1274
  ], Eu = [
1278
1275
  ...Du,
1279
1276
  "take_over_rejected",
@@ -10263,4 +10260,4 @@ export {
10263
10260
  yr as y,
10264
10261
  br as z
10265
10262
  };
10266
- //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DevFNquD.mjs.map
10263
+ //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lnJCfZ3v.mjs.map