@anzusystems/common-admin 2.0.0-rc.22 → 2.0.0-rc.23
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/dist/AnzuSystemsCommonAdmin.d.ts +2 -0
- package/dist/AnzuSystemsCommonAdmin.js.map +1 -1
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +33 -29
- package/dist/domains/dam/api/damAssetApi.d.ts +12 -5
- package/dist/domains/dam/api/damAssetApi.js +66 -55
- package/dist/domains/dam/api/damAssetApi.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetDetailSidebarMetadata.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/domains/dam/assetDetail/components/AssetDetailSidebarMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/components/AssetMetadata.vue_vue_type_script_setup_true_lang.js +100 -108
- package/dist/domains/dam/assetDetail/components/AssetMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/assetDetail/store/assetDetailStore.d.ts +2 -0
- package/dist/domains/dam/assetSelect/components/AAssetListInner.vue.d.ts +2 -0
- package/dist/domains/dam/assetSelect/components/AAssetSelect.vue.d.ts +1 -0
- package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js +1 -1
- package/dist/domains/dam/assetSelect/composables/assetSelectListActions.js.map +1 -1
- package/dist/domains/dam/assetSelect/store/assetSelectStore.d.ts +112 -0
- package/dist/domains/dam/author/components/AuthorCreateButton.vue.d.ts +6 -0
- package/dist/domains/dam/author/components/AuthorCreateButton.vue_vue_type_script_setup_true_lang.js +13 -5
- package/dist/domains/dam/author/components/AuthorCreateButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.js +4 -2
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.js.map +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.vue_vue_type_script_setup_true_lang.js +45 -39
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.js +1 -1
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue.d.ts +15 -2
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js +118 -96
- package/dist/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/author/components/DamAuthorFilterRemoteAutocomplete.vue.d.ts +3 -0
- package/dist/domains/dam/author/components/DamAuthorFilterRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/domains/dam/author/components/DamAuthorFilterRemoteAutocomplete.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/author/components/DamSourcesAuthorsFields.js +8 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsFields.js.map +1 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsFields.vue.d.ts +67 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsFields.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsFields.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsRow.js +8 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsRow.js.map +1 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsRow.vue.d.ts +27 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsRow.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/domains/dam/author/components/DamSourcesAuthorsRow.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/domains/dam/author/composables/authorActions.js +2 -1
- package/dist/domains/dam/author/composables/authorActions.js.map +1 -1
- package/dist/domains/dam/author/composables/authorFieldRouting.d.ts +15 -0
- package/dist/domains/dam/author/composables/authorFieldRouting.js +18 -0
- package/dist/domains/dam/author/composables/authorFieldRouting.js.map +1 -0
- package/dist/domains/dam/author/composables/authorValidation.js +1 -1
- package/dist/domains/dam/author/composables/authorValidation.js.map +1 -1
- package/dist/domains/dam/author/composables/cachedAuthors.js +4 -2
- package/dist/domains/dam/author/composables/cachedAuthors.js.map +1 -1
- package/dist/domains/dam/author/composables/damAuthorConfig.d.ts +5 -0
- package/dist/domains/dam/author/composables/damAuthorConfig.js +5 -2
- package/dist/domains/dam/author/composables/damAuthorConfig.js.map +1 -1
- package/dist/domains/dam/author/composables/damCredit.d.ts +35 -0
- package/dist/domains/dam/author/composables/damCredit.js +44 -0
- package/dist/domains/dam/author/composables/damCredit.js.map +1 -0
- package/dist/domains/dam/author/composables/damSourceConfig.d.ts +15 -0
- package/dist/domains/dam/author/composables/damSourceConfig.js +19 -0
- package/dist/domains/dam/author/composables/damSourceConfig.js.map +1 -0
- package/dist/domains/dam/author/factory/AuthorFactory.js +3 -1
- package/dist/domains/dam/author/factory/AuthorFactory.js.map +1 -1
- package/dist/domains/dam/author/filter/AuthorFilter.d.ts +38 -4
- package/dist/domains/dam/author/filter/AuthorFilter.js +20 -6
- package/dist/domains/dam/author/filter/AuthorFilter.js.map +1 -1
- package/dist/domains/dam/author/types/DamAuthor.d.ts +4 -0
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.d.ts +1 -0
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js +1 -0
- package/dist/domains/dam/composables/commonAdminCoreDamOptions.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue.d.ts +9 -1
- package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue_vue_type_script_setup_true_lang.js +206 -204
- package/dist/domains/dam/imageWidget/components/ImageDetailDialogMetadata.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageMassOperations.vue_vue_type_script_setup_true_lang.js +165 -131
- package/dist/domains/dam/imageWidget/components/ImageMassOperations.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js +344 -335
- package/dist/domains/dam/imageWidget/components/ImageMediaWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue.d.ts +1 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js +251 -242
- package/dist/domains/dam/imageWidget/components/ImageWidgetInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue.d.ts +1 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js +308 -303
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleInner.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleItem.vue.d.ts +1 -0
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleItem.vue_vue_type_script_setup_true_lang.js +84 -87
- package/dist/domains/dam/imageWidget/components/ImageWidgetMultipleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.d.ts +6 -3
- package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.js +82 -77
- package/dist/domains/dam/imageWidget/composables/imageDialogDamAuthors.js.map +1 -1
- package/dist/domains/dam/imageWidget/composables/useImageMassOperations.d.ts +2 -0
- package/dist/domains/dam/imageWidget/composables/useImageMassOperations.js +59 -37
- package/dist/domains/dam/imageWidget/composables/useImageMassOperations.js.map +1 -1
- package/dist/domains/dam/imageWidget/store/imageStore.d.ts +2 -0
- package/dist/domains/dam/imageWidget/utils/metadataToImageMap.d.ts +3 -1
- package/dist/domains/dam/imageWidget/utils/metadataToImageMap.js +13 -22
- package/dist/domains/dam/imageWidget/utils/metadataToImageMap.js.map +1 -1
- package/dist/domains/dam/types/Asset.d.ts +1 -0
- package/dist/domains/dam/types/Asset.js.map +1 -1
- package/dist/domains/dam/types/DamConfig.d.ts +6 -0
- package/dist/domains/dam/types/DamConfig.js.map +1 -1
- package/dist/domains/dam/types/ImageAware.d.ts +1 -0
- package/dist/domains/dam/types/UploadQueue.d.ts +1 -0
- package/dist/domains/dam/types/UploadQueue.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/AssetQueueSelectedSidebar.vue_vue_type_script_setup_true_lang.js +204 -175
- package/dist/domains/dam/uploadQueue/components/AssetQueueSelectedSidebar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialog.vue_vue_type_script_setup_true_lang.js +67 -65
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingle.vue_vue_type_script_setup_true_lang.js +71 -70
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadataContent.vue_vue_type_script_setup_true_lang.js +83 -91
- package/dist/domains/dam/uploadQueue/components/UploadQueueDialogSingleSidebarMetadataContent.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueEditable.vue_vue_type_script_setup_true_lang.js +4 -0
- package/dist/domains/dam/uploadQueue/components/UploadQueueEditable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/UploadQueueItemEditable.vue.d.ts +10 -2
- package/dist/domains/dam/uploadQueue/components/UploadQueueItemEditable.vue_vue_type_script_setup_true_lang.js +178 -177
- package/dist/domains/dam/uploadQueue/components/UploadQueueItemEditable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/dam/uploadQueue/components/uploadQueueBindings.d.ts +2 -0
- package/dist/domains/dam/uploadQueue/components/uploadQueueBindings.js +4 -3
- package/dist/domains/dam/uploadQueue/components/uploadQueueBindings.js.map +1 -1
- package/dist/domains/dam/uploadQueue/composables/uploadQueueMassOperations.d.ts +1 -0
- package/dist/domains/dam/uploadQueue/composables/uploadQueueMassOperations.js +11 -8
- package/dist/domains/dam/uploadQueue/composables/uploadQueueMassOperations.js.map +1 -1
- package/dist/domains/dam/uploadQueue/core/uploadQueueFill.d.ts +2 -0
- package/dist/domains/dam/uploadQueue/core/uploadQueueFill.js +4 -1
- package/dist/domains/dam/uploadQueue/core/uploadQueueFill.js.map +1 -1
- package/dist/domains/dam/uploadQueue/factory/UploadQueueItemFactory.js +1 -0
- package/dist/domains/dam/uploadQueue/factory/UploadQueueItemFactory.js.map +1 -1
- package/dist/domains/dam/uploadQueue/settlement/uploadSettle.js +4 -4
- package/dist/domains/dam/uploadQueue/settlement/uploadSettle.js.map +1 -1
- package/dist/domains/dam/uploadQueue/store/uploadQueuesStore.d.ts +1 -0
- package/dist/domains/dam/uploadQueue/store/uploadQueuesStore.js +7 -4
- package/dist/domains/dam/uploadQueue/store/uploadQueuesStore.js.map +1 -1
- package/dist/domains/filters/datatable/components/ADatatableSidePanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/filters/datatable/components/ALiveListingPill.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue.d.ts +3 -0
- package/dist/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/lib.d.ts +5 -1
- package/dist/locales/cs/common/assetSelect.js +1 -1
- package/dist/locales/cs/common/damImage.js +84 -10
- package/dist/locales/cs/common/damImage.js.map +1 -1
- package/dist/locales/cs.d.ts +6 -0
- package/dist/locales/en/common/assetSelect.js +1 -1
- package/dist/locales/en/common/damImage.js +84 -10
- package/dist/locales/en/common/damImage.js.map +1 -1
- package/dist/locales/en.d.ts +6 -0
- package/dist/locales/sk/common/assetSelect.js +1 -1
- package/dist/locales/sk/common/damImage.js +84 -10
- package/dist/locales/sk/common/damImage.js.map +1 -1
- package/dist/locales/sk.d.ts +6 -0
- package/dist/plugins/i18n.d.ts +6 -0
- package/package.json +26 -26
|
@@ -17,53 +17,53 @@ import { fetchAsset as ue, fetchAssetByFileId as de, showMetadataSaveError as fe
|
|
|
17
17
|
import { useCommonAdminCoreDamOptions as me } from "../../composables/commonAdminCoreDamOptions.js";
|
|
18
18
|
import he from "../../uploadQueue/components/UploadQueueDialogSingle.js";
|
|
19
19
|
import { useUploadQueueDialog as ge } from "../../uploadQueue/composables/useUploadQueueDialog.js";
|
|
20
|
-
import {
|
|
21
|
-
import { useExtSystemIdForCached as
|
|
22
|
-
import { useAssetSelectStore as
|
|
20
|
+
import { fetchDamCredit as _e, hasNoDamCredit as ve, useDamCreditConfig as ye } from "../../author/composables/damCredit.js";
|
|
21
|
+
import { useExtSystemIdForCached as be } from "../../composables/extSystemIdForCached.js";
|
|
22
|
+
import { useAssetSelectStore as xe } from "../../assetSelect/store/assetSelectStore.js";
|
|
23
23
|
import { CollabStatus as u } from "../../../collab/types/Collab.js";
|
|
24
|
-
import { useCommonAdminCollabOptions as
|
|
25
|
-
import { useCollabState as
|
|
26
|
-
import { useCollabField as
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import { CollabFieldLockStatus as
|
|
30
|
-
import { ImageWidgetUploadConfigKey as
|
|
31
|
-
import { isImageCreateUpdateAware as
|
|
32
|
-
import { copyToLicence as
|
|
33
|
-
import { createDamImage as
|
|
34
|
-
import { assetMetadataMayStillChange as
|
|
35
|
-
import { useDamConfigName as
|
|
36
|
-
import { giveNamesToEmptySource as
|
|
37
|
-
import { lastFieldLockTurn as
|
|
38
|
-
import { holdImage as
|
|
39
|
-
import { WAIT_RAN_OUT as
|
|
40
|
-
import { Fragment as
|
|
41
|
-
import { useI18n as
|
|
42
|
-
import { VIcon as
|
|
43
|
-
import { VProgressCircular as
|
|
44
|
-
import { VCard as
|
|
45
|
-
import { VTooltip as
|
|
46
|
-
import { VBtn as
|
|
47
|
-
import { VList as
|
|
48
|
-
import { VMenu as
|
|
49
|
-
import { storeToRefs as
|
|
50
|
-
import { VImg as
|
|
24
|
+
import { useCommonAdminCollabOptions as Se } from "../../../collab/composables/commonAdminCollabOptions.js";
|
|
25
|
+
import { useCollabState as Ce } from "../../../collab/composables/collabState.js";
|
|
26
|
+
import { useCollabField as we } from "../../../collab/composables/collabField.js";
|
|
27
|
+
import Te from "../../../collab/components/ACollabLockedByUser.js";
|
|
28
|
+
import Ee from "../../../ui/file/components/AFileInputDialog.js";
|
|
29
|
+
import { CollabFieldLockStatus as De, CollabFieldLockType as Oe } from "../../../collab/composables/collabEventBus.js";
|
|
30
|
+
import { ImageWidgetUploadConfigKey as ke } from "../utils/imageWidgetInkectionKeys.js";
|
|
31
|
+
import { isImageCreateUpdateAware as Ae, useImageMediaWidgetStore as je } from "../store/imageMediaWidgetStore.js";
|
|
32
|
+
import { copyToLicence as Me } from "../../api/damImageApi.js";
|
|
33
|
+
import { createDamImage as Ne, imageFieldsOf as Pe } from "../utils/damImage.js";
|
|
34
|
+
import { assetMetadataMayStillChange as Fe } from "../../assetDetail/utils/assetMetadataMayStillChange.js";
|
|
35
|
+
import { useDamConfigName as Ie } from "../../composables/damConfigName.js";
|
|
36
|
+
import { giveNamesToEmptySource as Le, useImageDialogDamAuthors as Re } from "../composables/imageDialogDamAuthors.js";
|
|
37
|
+
import { lastFieldLockTurn as ze, takeFieldLockTurn as Be } from "../utils/fieldLockTurns.js";
|
|
38
|
+
import { holdImage as Ve, imageSavedSince as He, imageSavesOfOthersOver as Ue, noteImageSave as We } from "../utils/imageSaves.js";
|
|
39
|
+
import { WAIT_RAN_OUT as Ge, withinWaitLimit as Ke } from "../utils/waitLimit.js";
|
|
40
|
+
import { Fragment as qe, computed as Je, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ye, createTextVNode as h, createVNode as g, defineComponent as _, guardReactiveProps as Xe, inject as Ze, mergeModels as Qe, mergeProps as $e, normalizeClass as et, normalizeProps as tt, normalizeStyle as nt, onBeforeUnmount as rt, openBlock as v, ref as y, renderSlot as it, toDisplayString as b, toRaw as x, unref as S, useModel as at, watch as C, withCtx as w, withModifiers as ot } from "vue";
|
|
41
|
+
import { useI18n as st } from "vue-i18n";
|
|
42
|
+
import { VIcon as ct } from "vuetify/components/VIcon";
|
|
43
|
+
import { VProgressCircular as lt } from "vuetify/components/VProgressCircular";
|
|
44
|
+
import { VCard as ut } from "vuetify/components/VCard";
|
|
45
|
+
import { VTooltip as dt } from "vuetify/components/VTooltip";
|
|
46
|
+
import { VBtn as ft } from "vuetify/components/VBtn";
|
|
47
|
+
import { VList as pt, VListItem as mt, VListItemTitle as ht } from "vuetify/components/VList";
|
|
48
|
+
import { VMenu as gt } from "vuetify/components/VMenu";
|
|
49
|
+
import { storeToRefs as _t } from "pinia";
|
|
50
|
+
import { VImg as vt } from "vuetify/components/VImg";
|
|
51
51
|
// src/domains/dam/imageWidget/components/ImageWidgetInner.vue?vue&type=script&setup=true&lang.ts
|
|
52
|
-
var
|
|
52
|
+
var yt = { class: "a-image-widget__options" }, bt = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "font-weight-bold text-label-large"
|
|
55
|
-
},
|
|
55
|
+
}, xt = {
|
|
56
56
|
key: 0,
|
|
57
57
|
class: "a-required-mark"
|
|
58
|
-
},
|
|
58
|
+
}, St = { class: "d-flex" }, Ct = { key: 0 }, wt = { key: 1 }, Tt = {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: "d-flex flex-row flex-wrap"
|
|
61
|
-
},
|
|
61
|
+
}, Et = { key: 0 }, Dt = { key: 1 }, Ot = {
|
|
62
62
|
key: 1,
|
|
63
63
|
class: "a-required-mark ml-2"
|
|
64
|
-
},
|
|
64
|
+
}, kt = { key: 0 }, At = { key: 1 }, jt = { class: "position-relative" }, Mt = { class: "d-flex align-center justify-center h-100" }, Nt = { class: "d-flex align-center justify-center h-100" }, Pt = /*@__PURE__*/ _({
|
|
65
65
|
__name: "ImageWidgetInner",
|
|
66
|
-
props: /*@__PURE__*/
|
|
66
|
+
props: /*@__PURE__*/ Qe({
|
|
67
67
|
queueKey: {},
|
|
68
68
|
uploadLicence: {},
|
|
69
69
|
selectLicences: {},
|
|
@@ -111,79 +111,79 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
111
111
|
modelValue: { required: !0 },
|
|
112
112
|
modelModifiers: {}
|
|
113
113
|
}),
|
|
114
|
-
emits: /*@__PURE__*/
|
|
115
|
-
setup(_, { expose:
|
|
116
|
-
let T = _,
|
|
117
|
-
if (
|
|
118
|
-
let { releaseCollabFieldLock: e, acquireCollabFieldLock: t, changeCollabFieldData: n, addCollabFieldLockStatusListener: r, lockedByUser: i } =
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
emits: /*@__PURE__*/ Qe(["afterMetadataSaveSuccess"], ["update:modelValue"]),
|
|
115
|
+
setup(_, { expose: Qe, emit: Pt }) {
|
|
116
|
+
let T = _, Ft = Pt, E = at(_, "modelValue"), D = Ie(T.configName), { collabOptions: It } = Se(), { collabReconnecting: Lt } = Ce(), Rt = y((e, t) => {}), zt = y((e) => {}), Bt = y((e) => {}), Vt = y(null);
|
|
117
|
+
if (It.value.enabled && a(T.collab)) {
|
|
118
|
+
let { releaseCollabFieldLock: e, acquireCollabFieldLock: t, changeCollabFieldData: n, addCollabFieldLockStatusListener: r, lockedByUser: i } = we(T.collab.room, T.collab.field);
|
|
119
|
+
Rt.value = e, zt.value = n, Bt.value = t, C(i, (e) => {
|
|
120
|
+
Vt.value = e;
|
|
121
121
|
}, { immediate: !0 }), r((e) => {
|
|
122
|
-
if (e.status ===
|
|
123
|
-
else if (e.status ===
|
|
122
|
+
if (e.status === De.Success && e.type === Oe.Acquire) k.value = !1, J.value = !0;
|
|
123
|
+
else if (e.status === De.Failure && e.type === Oe.Acquire) k.value = !1, J.value = !1;
|
|
124
124
|
else if (k.value) return;
|
|
125
|
-
else e.status ===
|
|
125
|
+
else e.status === De.Success && e.type === Oe.Release ? J.value = !1 : e.status === De.Failure && e.type === Oe.Release && (J.value = !0);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
let O = y(!1),
|
|
129
|
-
a(T.collab) && (
|
|
130
|
-
},
|
|
131
|
-
T.collabStatus !== u.Inactive && (O.value !== !0 || e && !k.value && !J.value) && (J.value = !1, k.value = !0,
|
|
128
|
+
let O = y(!1), Ht = 0, Ut = () => {
|
|
129
|
+
a(T.collab) && (Ht = Be(T.collab.room, T.collab.field));
|
|
130
|
+
}, Wt = () => a(T.collab) && ze(T.collab.room, T.collab.field) !== Ht, k = y(!1), A = (e = !1) => {
|
|
131
|
+
T.collabStatus !== u.Inactive && (O.value !== !0 || e && !k.value && !J.value) && (J.value = !1, k.value = !0, Bt.value(), Ut(), O.value = !0);
|
|
132
132
|
}, j = (e) => {
|
|
133
|
-
O.value !== !1 && (
|
|
134
|
-
},
|
|
135
|
-
(O.value !== !1 || T.collabStatus === u.Inactive) && (
|
|
136
|
-
}, M =
|
|
133
|
+
O.value !== !1 && (Rt.value(e), Ut(), O.value = !1);
|
|
134
|
+
}, Gt = (e) => {
|
|
135
|
+
(O.value !== !1 || T.collabStatus === u.Inactive) && (Rt.value(e), Ut(), O.value = !1);
|
|
136
|
+
}, M = Ze(ke, void 0);
|
|
137
137
|
if (te(M) || te(M.value)) throw Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
138
|
-
let { t: N } =
|
|
138
|
+
let { t: N } = st(), { showErrorsDefault: P, showErrorT: Kt, showWarningT: qt, showUnknownError: Jt } = ne(), Yt = n(D), { imageClient: Xt, imageApi: Zt } = Yt, { widgetImageToDamImageUrl: Qt } = r(Yt), F = ie(), I = je();
|
|
139
139
|
I.resetUnlessShown();
|
|
140
|
-
let { detail: L } =
|
|
140
|
+
let { detail: L } = _t(I), R = Symbol("image widget"), { uploadQueueDialog: $t, stopQueueLeftBehind: en } = ge(), z = y(null), B = y(!1), tn = y(!1), V = y(!1), H = y(!1), U = y(!1), W = y(!1), { damAuthorsAsset: nn, offerDamAuthorsOf: rn, offerNoDamAuthors: an, pickDamAuthors: on, pickDamSources: sn, onAssetDetailClose: cn, holdConfirmForDetailAssetRead: ln, readHeldAnew: un, takeHeldAnew: dn, letGoOnceSavedWithSource: fn, authorsGivenMeanwhile: pn, confirmWaits: mn } = Re(D, () => (V.value || T.expandMetadata) && Ae(L.value) ? L.value : null, () => T.readonly);
|
|
141
141
|
C(() => V.value || T.expandMetadata, (e) => I.setShownBy(R, e), {
|
|
142
142
|
immediate: !0,
|
|
143
143
|
flush: "sync"
|
|
144
144
|
});
|
|
145
|
-
let
|
|
146
|
-
let e = () => z.value?.id, t = e(), n = s(t) ?
|
|
145
|
+
let hn = Je(() => o(E.value)), G = y(""), gn = Je(() => F.getQueue(T.queueKey)), _n = Je(() => !o(z.value)), vn = null, yn = null, K = null, bn = (e) => X || K !== e ? !1 : o(L.value) ? !0 : (K = null, U.value = !1, V.value = !1, !1), xn = 0, Sn = /* @__PURE__ */ new Set(), q = null, Cn = async () => {
|
|
146
|
+
let e = () => z.value?.id, t = e(), n = s(t) ? Ue(D, t, Sn) : null;
|
|
147
147
|
if (n) {
|
|
148
148
|
let e = K = Symbol("edit");
|
|
149
149
|
I.setDetail(null), U.value = !0, V.value = !0, q = n.cancel;
|
|
150
|
-
let t = await
|
|
151
|
-
if (q = null, !
|
|
152
|
-
if (K = null, U.value = !1, t ===
|
|
153
|
-
n.cancel(), V.value = !1,
|
|
150
|
+
let t = await Ke(n.over, 1, D);
|
|
151
|
+
if (q = null, !bn(e)) return;
|
|
152
|
+
if (K = null, U.value = !1, t === Ge) {
|
|
153
|
+
n.cancel(), V.value = !1, Kt("error.apiTimedOut.message");
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
let r =
|
|
157
|
+
let r = un(z.value?.dam.damId), i = null;
|
|
158
158
|
if (r) {
|
|
159
159
|
let e = K = Symbol("edit");
|
|
160
|
-
if (I.setDetail(null), U.value = !0, V.value = !0, i = await r, !
|
|
160
|
+
if (I.setDetail(null), U.value = !0, V.value = !0, i = await r, !bn(e)) return;
|
|
161
161
|
K = null, U.value = !1;
|
|
162
162
|
}
|
|
163
|
-
let a = e(), o = s(a) ?
|
|
164
|
-
o &&
|
|
165
|
-
},
|
|
166
|
-
let e = () => z.value?.id, t = e(), n = s(t) ?
|
|
163
|
+
let a = e(), o = s(a) ? He(D, a, xn) : null;
|
|
164
|
+
o && In(o, null, !0), I.setDetail(x(z.value)), dn(i, Ae(L.value) ? L.value : null), vn = L.value, V.value = !0;
|
|
165
|
+
}, wn = async () => {
|
|
166
|
+
let e = () => z.value?.id, t = e(), n = s(t) ? Ue(D, t, Sn) : null;
|
|
167
167
|
if (n) {
|
|
168
168
|
let r = K = Symbol("edit");
|
|
169
169
|
I.setDetail(null), U.value = !0, q = n.cancel;
|
|
170
|
-
let i = await
|
|
171
|
-
if (q = null, !
|
|
170
|
+
let i = await Ke(n.over, 1, D);
|
|
171
|
+
if (q = null, !bn(r) || (K = null, U.value = !1, i === Ge && (n.cancel(), Kt("error.apiTimedOut.message")), e() !== t)) return;
|
|
172
172
|
}
|
|
173
|
-
let r = s(t) ?
|
|
174
|
-
if (r) return void
|
|
173
|
+
let r = s(t) ? He(D, t, xn) : null;
|
|
174
|
+
if (r) return void In(r, null, !0);
|
|
175
175
|
I.setDetail(x(z.value));
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
}, { cachedExtSystemId:
|
|
179
|
-
|
|
176
|
+
}, Tn = () => {
|
|
177
|
+
tn.value = !0;
|
|
178
|
+
}, { cachedExtSystemId: En } = be(D), J = y(!1), Dn = Symbol("lock wait cancelled"), Y = /* @__PURE__ */ new Set(), X = !1;
|
|
179
|
+
rt(() => {
|
|
180
180
|
X = !0, Y.forEach((e) => {
|
|
181
|
-
clearTimeout(e.timer), e.reject(
|
|
182
|
-
}), Y.clear(), H.value ||
|
|
181
|
+
clearTimeout(e.timer), e.reject(Dn);
|
|
182
|
+
}), Y.clear(), H.value || or.value || Wt() || j(E.value), I.setShownBy(R, !1), Ve(D, R, null), q?.();
|
|
183
183
|
});
|
|
184
|
-
let
|
|
185
|
-
if (!
|
|
186
|
-
let e = 0, t = () => X ? Promise.reject(
|
|
184
|
+
let On = async () => {
|
|
185
|
+
if (!It.value.enabled || te(T.collab) || T.collabStatus === u.Inactive) return Promise.resolve(!0);
|
|
186
|
+
let e = 0, t = () => X ? Promise.reject(Dn) : J.value ? Promise.resolve(!0) : (e++, e < 50 ? new Promise((e, n) => {
|
|
187
187
|
let r = {
|
|
188
188
|
timer: setTimeout(() => {
|
|
189
189
|
Y.delete(r), e(t());
|
|
@@ -193,97 +193,103 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
193
193
|
Y.add(r);
|
|
194
194
|
}) : Promise.reject(!1));
|
|
195
195
|
return t();
|
|
196
|
-
},
|
|
197
|
-
if (T.readonly || e.length === 0 || !o(
|
|
196
|
+
}, kn = null, An = async (e) => {
|
|
197
|
+
if (T.readonly || e.length === 0 || !o(kn) && k.value) return;
|
|
198
198
|
if ($.value) {
|
|
199
|
-
|
|
199
|
+
Kt("common.damImage.error.unableToLock");
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
A(!0);
|
|
203
203
|
let t = M.value, n = Symbol("drop");
|
|
204
|
-
|
|
204
|
+
kn = n;
|
|
205
205
|
try {
|
|
206
|
-
if (await
|
|
206
|
+
if (await On(), X || kn !== n) return;
|
|
207
207
|
if (T.readonly) {
|
|
208
208
|
Y.size === 0 && !B.value && !Q.value && j(E.value);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
En.value = t.extSystem, e.length > 1 && qt("common.damImage.upload.onlyOneFile"), en(T.queueKey), F.addByFiles(T.queueKey, t.extSystem, t.licence, e.slice(0, 1), D), $t.value = T.queueKey;
|
|
212
212
|
} catch (e) {
|
|
213
|
-
if (X || e ===
|
|
214
|
-
Y.size === 0 && !B.value && !Q.value && j(E.value),
|
|
213
|
+
if (X || e === Dn) return;
|
|
214
|
+
Y.size === 0 && !B.value && !Q.value && j(E.value), Kt("common.damImage.error.unableToLock");
|
|
215
215
|
} finally {
|
|
216
|
-
|
|
216
|
+
kn === n && (kn = null);
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, jn = (e) => {
|
|
219
219
|
if (T.readonly || !e[0]) return;
|
|
220
220
|
let t = M.value;
|
|
221
|
-
if (
|
|
221
|
+
if (En.value = t.extSystem, en(T.queueKey), e[0].result === "copy") F.addByCopyToLicence(T.queueKey, t.extSystem, t.licence, [e[0].targetAsset], D);
|
|
222
222
|
else if (e[0].result === "exists") F.addByCopyToLicence(T.queueKey, t.extSystem, t.licence, [e[0].targetAsset], D), F.queueItemDuplicate(e[0].targetAsset, e[0].targetMainFile, l.Image, D);
|
|
223
223
|
else {
|
|
224
|
-
|
|
224
|
+
Kt("common.damImage.queueItem.errorUnableToCopyToLicence");
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
},
|
|
227
|
+
$t.value = T.queueKey;
|
|
228
|
+
}, Mn = (e) => {
|
|
229
229
|
if (T.readonly || e.length === 0) return;
|
|
230
230
|
let t = M.value;
|
|
231
|
-
|
|
232
|
-
}, { uploadSizes:
|
|
233
|
-
if (G.value = t, e && o(z.value) || e && r) z.value = i(e),
|
|
231
|
+
En.value = t.extSystem, en(T.queueKey), F.addByFiles(T.queueKey, t.extSystem, t.licence, e, D), $t.value = T.queueKey;
|
|
232
|
+
}, { uploadSizes: Nn, uploadAccept: Pn } = re(l.Image, M.value.extSystemConfig), Fn = null, In = async (e, n, r = !1) => {
|
|
233
|
+
if (G.value = t, e && o(z.value) || e && r) z.value = i(e), xn = Ve(D, R, e.id ?? null), z.value && (s(T.damWidth) && s(T.damHeight) ? G.value = Qt(x(z.value), T.damWidth, T.damHeight) : G.value = Qt(x(z.value)), T.expandMetadata && I.setDetail(x(z.value)));
|
|
234
234
|
else if (n) {
|
|
235
|
-
let e =
|
|
235
|
+
let e = Ve(D, R, n);
|
|
236
236
|
try {
|
|
237
|
-
z.value = await
|
|
237
|
+
z.value = await Zt.fetchImage(Xt, n), xn = e;
|
|
238
238
|
} catch (e) {
|
|
239
239
|
P(e);
|
|
240
240
|
}
|
|
241
241
|
if (X) return;
|
|
242
|
-
o(z.value) || (s(T.damWidth) && s(T.damHeight) ? G.value =
|
|
243
|
-
} else z.value = null,
|
|
244
|
-
},
|
|
245
|
-
G.value = t, z.value = null,
|
|
246
|
-
},
|
|
242
|
+
o(z.value) || (s(T.damWidth) && s(T.damHeight) ? G.value = Qt(x(z.value), T.damWidth, T.damHeight) : G.value = Qt(x(z.value)), T.expandMetadata && wn());
|
|
243
|
+
} else z.value = null, Ve(D, R, null);
|
|
244
|
+
}, Ln = (e = !0) => {
|
|
245
|
+
G.value = t, z.value = null, Ve(D, R, null), E.value = null, (e || T.collabStatus === u.Inactive) && Gt(null);
|
|
246
|
+
}, Rn = xe(), { getDamConfigExtSystem: zn } = c(void 0, D), Bn = y(0), Vn = async (e) => {
|
|
247
247
|
if (T.readonly) return;
|
|
248
248
|
let t = K = Symbol("pick");
|
|
249
|
-
|
|
249
|
+
Bn.value++;
|
|
250
250
|
try {
|
|
251
|
-
await
|
|
251
|
+
await Hn(e, t);
|
|
252
252
|
} finally {
|
|
253
|
-
|
|
253
|
+
Bn.value--, K === t && (K = null, U.value = !1);
|
|
254
254
|
}
|
|
255
|
-
},
|
|
256
|
-
U.value = !0, I.setDetail(null),
|
|
255
|
+
}, Hn = async (e, t) => {
|
|
256
|
+
U.value = !0, I.setDetail(null), an();
|
|
257
257
|
let n = "", r = "";
|
|
258
258
|
if (e.type === "asset") {
|
|
259
259
|
if (!e.value[0] || !e.value[0].mainFile) return;
|
|
260
|
-
if (V.value = !0,
|
|
260
|
+
if (V.value = !0, Jn !== !1 && !te(e.copyToLicence) && e.value[0].licence !== e.copyToLicence) {
|
|
261
261
|
let n = null;
|
|
262
262
|
try {
|
|
263
|
-
n = await
|
|
263
|
+
n = await Me(Z, Kn, [{
|
|
264
264
|
asset: e.value[0].id,
|
|
265
265
|
targetAssetLicence: e.copyToLicence
|
|
266
266
|
}]);
|
|
267
267
|
} catch (e) {
|
|
268
268
|
P(e);
|
|
269
269
|
}
|
|
270
|
-
if (!
|
|
271
|
-
U.value = !1, V.value = !1, n &&
|
|
270
|
+
if (!bn(t)) return;
|
|
271
|
+
U.value = !1, V.value = !1, n && jn(n);
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
274
|
let i = null;
|
|
275
275
|
try {
|
|
276
|
-
let t = await ue(Z,
|
|
277
|
-
if (
|
|
278
|
-
let e =
|
|
276
|
+
let t = await ue(Z, Gn, e.value[0].id);
|
|
277
|
+
if (er) {
|
|
278
|
+
let e = er(t);
|
|
279
279
|
n = e.description, r = e.source;
|
|
280
|
-
} else ee(t.metadata.customData?.description) && (n = t.metadata.customData.description.trim()),
|
|
280
|
+
} else if (ee(t.metadata.customData?.description) && (n = t.metadata.customData.description.trim()), ve(t.authors, t.sources)) {
|
|
281
|
+
let e = zn(M.value.extSystem)?.[l.Image];
|
|
282
|
+
(e?.authors?.enabled || e?.sources?.enabled) && !Fe(t) && (i = t);
|
|
283
|
+
} else {
|
|
284
|
+
let e = await tr(t.licence) ?? Rn.requireSelectedSelectConfig().extSystem;
|
|
285
|
+
r = await _e(Z, qn, e, t.sources, t.authors, nr(e, M.value?.extSystem));
|
|
286
|
+
}
|
|
281
287
|
} catch (e) {
|
|
282
288
|
P(e);
|
|
283
289
|
}
|
|
284
|
-
if (!
|
|
285
|
-
i &&
|
|
286
|
-
let a =
|
|
290
|
+
if (!bn(t)) return;
|
|
291
|
+
i && rn(i, e.value[0].mainFile.id);
|
|
292
|
+
let a = Ne({
|
|
287
293
|
fileId: e.value[0].mainFile.id,
|
|
288
294
|
licenceId: e.value[0].licence,
|
|
289
295
|
internal: e.value[0].mainFileInternal
|
|
@@ -294,148 +300,147 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
294
300
|
position: 1,
|
|
295
301
|
id: o(E.value) ? void 0 : E.value
|
|
296
302
|
});
|
|
297
|
-
I.setDetail(a),
|
|
303
|
+
I.setDetail(a), yn = L.value, U.value = !1, T.expandMetadata && cr();
|
|
298
304
|
}
|
|
299
|
-
},
|
|
305
|
+
}, Un = ce(), { dialog: Wn } = _t(Un), { damClient: Z, endPointAsset: Gn, endPointImage: Kn, endPointAuthor: qn, copyToLicenceEnabled: Jn, showSourceEnabled: Yn, sourceLabel: Xn, editAssetLabel: Zn, addFromDamLabel: Qn, replaceFromDamLabel: $n, customAssetSelectMetadataToImageMap: er } = me(D), { getExtSystemByLicence: tr } = c(Z, D), nr = ye(D), rr = async (e) => {
|
|
300
306
|
let t = null;
|
|
301
307
|
try {
|
|
302
|
-
await
|
|
303
|
-
let n = await de(Z,
|
|
308
|
+
await Un.open(T.queueKey, async () => {
|
|
309
|
+
let n = await de(Z, Gn, e), r = await tr(n.licence) ?? M.value.extSystem;
|
|
304
310
|
return await le(Z, r, n.attributes.assetType, D), t = r, n;
|
|
305
311
|
}, () => {
|
|
306
|
-
t && (
|
|
312
|
+
t && (En.value = t);
|
|
307
313
|
});
|
|
308
314
|
} catch (e) {
|
|
309
315
|
P(e);
|
|
310
316
|
}
|
|
311
|
-
},
|
|
317
|
+
}, ir = () => {
|
|
312
318
|
I.setDetail(null), V.value = !1, K = null, U.value = !1, q?.();
|
|
313
|
-
},
|
|
314
|
-
if (T.readonly || !
|
|
319
|
+
}, ar = async () => {
|
|
320
|
+
if (T.readonly || !Ae(L.value) || ln(H.value, () => fr.value?.confirm()) || H.value) return;
|
|
315
321
|
let e = L.value, t = () => X || L.value !== e, n = () => t() || T.readonly;
|
|
316
322
|
H.value = !0;
|
|
317
|
-
let r =
|
|
323
|
+
let r = fn(e);
|
|
318
324
|
try {
|
|
319
|
-
let i =
|
|
320
|
-
if (i && i.authors.
|
|
325
|
+
let i = nn.value;
|
|
326
|
+
if (i && !ve(i.authors, i.sources)) {
|
|
321
327
|
let r;
|
|
322
328
|
try {
|
|
323
|
-
r = await
|
|
329
|
+
r = await pn(i);
|
|
324
330
|
} catch (e) {
|
|
325
|
-
!n() && !P(e) &&
|
|
331
|
+
!n() && !P(e) && Jt();
|
|
326
332
|
return;
|
|
327
333
|
}
|
|
328
334
|
if (n()) return;
|
|
329
335
|
if (!o(r)) {
|
|
330
|
-
|
|
336
|
+
an(), Le(e, r), qt("common.damImage.image.meta.authorsGivenMeanwhile", -1);
|
|
331
337
|
return;
|
|
332
338
|
}
|
|
333
|
-
let a = await
|
|
339
|
+
let a = await tr(i.licence) ?? Rn.requireSelectedSelectConfig().extSystem, s = await _e(Z, qn, a, i.sources, i.authors, nr(a, M.value?.extSystem));
|
|
334
340
|
if (n()) return;
|
|
335
|
-
let s = a.map((e) => e.name).join(", ");
|
|
336
341
|
try {
|
|
337
|
-
await pe(Z,
|
|
342
|
+
await pe(Z, Gn, i, a, D);
|
|
338
343
|
} catch (e) {
|
|
339
|
-
fe(e,
|
|
344
|
+
fe(e, Rn.requireSelectedSelectConfig().extSystem, D);
|
|
340
345
|
return;
|
|
341
346
|
}
|
|
342
347
|
if (t()) return;
|
|
343
|
-
e.texts.source = s,
|
|
348
|
+
e.texts.source = s, an();
|
|
344
349
|
}
|
|
345
|
-
let a =
|
|
350
|
+
let a = Pe(e), s = a.id ? await We(D, a.id, Sn, Zt.updateImage(Xt, a.id, a)) : await Zt.createImage(Xt, a);
|
|
346
351
|
if (X) return;
|
|
347
352
|
r();
|
|
348
|
-
let ee = V.value, c = L.value, ne = !T.expandMetadata && ee && (o(c) ? !o(K) : c !== e && c !==
|
|
349
|
-
ne || (V.value = !1), a.id || (
|
|
353
|
+
let ee = V.value, c = L.value, ne = !T.expandMetadata && ee && (o(c) ? !o(K) : c !== e && c !== vn);
|
|
354
|
+
ne || (V.value = !1), a.id || (Fn = s.id), E.value = s.id, !ne && (ee || T.expandMetadata) && I.setDetail(null), ne && !a.id && c === yn && Ae(c) && te(c.id) && (c.id = s.id), T.collabStatus === u.Inactive || !B.value && !Q.value ? Gt(s.id) : O.value && !ne && zt.value(s.id), await In(s, s.id, !0), Ft("afterMetadataSaveSuccess");
|
|
350
355
|
} catch (e) {
|
|
351
356
|
P(e);
|
|
352
357
|
} finally {
|
|
353
|
-
H.value = !1, (X ? !
|
|
358
|
+
H.value = !1, (X ? !Wt() : !B.value && !Q.value) && j(E.value);
|
|
354
359
|
}
|
|
355
|
-
},
|
|
360
|
+
}, or = y(!1), sr = async () => {
|
|
356
361
|
if (!o(E.value)) {
|
|
357
362
|
if (T.callDeleteApiOnRemove) {
|
|
358
|
-
|
|
363
|
+
or.value = !0;
|
|
359
364
|
try {
|
|
360
|
-
await
|
|
365
|
+
await Zt.deleteImage(Xt, E.value), X || Ln(!B.value && !Q.value);
|
|
361
366
|
} catch (e) {
|
|
362
367
|
P(e);
|
|
363
368
|
} finally {
|
|
364
|
-
|
|
369
|
+
or.value = !1;
|
|
365
370
|
}
|
|
366
|
-
(X ? !
|
|
367
|
-
} else
|
|
371
|
+
(X ? !Wt() : !B.value && !Q.value) && j(E.value);
|
|
372
|
+
} else Ln();
|
|
368
373
|
}
|
|
369
|
-
},
|
|
370
|
-
|
|
371
|
-
},
|
|
372
|
-
T.readonly || e[0] && (o(E.value) || (e[0].id = E.value),
|
|
373
|
-
},
|
|
374
|
-
$.value || T.readonly || (A(), T.expandOptions ?
|
|
375
|
-
},
|
|
376
|
-
T.readonly ||
|
|
377
|
-
},
|
|
374
|
+
}, cr = () => {
|
|
375
|
+
Ae(L.value) && In(L.value, null, !0);
|
|
376
|
+
}, lr = (e) => {
|
|
377
|
+
T.readonly || e[0] && (o(E.value) || (e[0].id = E.value), an(), I.setDetail(e[0]), yn = L.value, V.value = !0, T.expandMetadata && cr());
|
|
378
|
+
}, ur = y(null), dr = () => {
|
|
379
|
+
$.value || T.readonly || (A(), T.expandOptions ? ur.value?.activate() : B.value = !0);
|
|
380
|
+
}, fr = y(null), pr = () => {
|
|
381
|
+
T.readonly || fr.value?.confirm();
|
|
382
|
+
}, mr = () => {
|
|
378
383
|
A();
|
|
379
|
-
}, Q =
|
|
384
|
+
}, Q = Je(() => Bn.value > 0 || V.value || tn.value || W.value || $t.value === T.queueKey), $ = Je(() => !o(Vt.value));
|
|
380
385
|
return C(B, (e, t) => {
|
|
381
386
|
if (e !== t) {
|
|
382
387
|
if (e) return void A(!0);
|
|
383
|
-
Q.value ||
|
|
388
|
+
Q.value || or.value || H.value || j(E.value);
|
|
384
389
|
}
|
|
385
390
|
}, { immediate: !1 }), C(Q, (e, t) => {
|
|
386
391
|
if (e !== t) {
|
|
387
392
|
if (e) return void A(!0);
|
|
388
|
-
|
|
393
|
+
or.value || H.value || j(E.value);
|
|
389
394
|
}
|
|
390
395
|
}, { immediate: !1 }), C([() => T.image, E], async ([e, t], [n]) => {
|
|
391
|
-
let r =
|
|
392
|
-
|
|
396
|
+
let r = Fn;
|
|
397
|
+
Fn = null, (o(r) || t !== r || e !== n) && await In(e, t);
|
|
393
398
|
}, { immediate: !0 }), C([() => T.readonly, H], ([e]) => {
|
|
394
|
-
e && (B.value = !1, W.value = !1, V.value && !H.value && !T.expandMetadata &&
|
|
395
|
-
}), C(
|
|
399
|
+
e && (B.value = !1, W.value = !1, V.value && !H.value && !T.expandMetadata && ir());
|
|
400
|
+
}), C(Lt, (e) => {
|
|
396
401
|
e && (O.value = !1, k.value = !1, J.value = !1);
|
|
397
402
|
}), C(() => T.collabStatus, (e, t) => {
|
|
398
403
|
e !== u.Inactive && t === u.Inactive && (B.value || Q.value) && A(!0);
|
|
399
|
-
}),
|
|
404
|
+
}), Qe({ metadataConfirm: pr }), (n, r) => (v(), p(qe, null, [
|
|
400
405
|
m("div", {
|
|
401
|
-
class:
|
|
402
|
-
style:
|
|
406
|
+
class: et(["a-image-widget", { "a-image-widget--locked": $.value }]),
|
|
407
|
+
style: nt({
|
|
403
408
|
width: _.width ? _.width + "px" : void 0,
|
|
404
409
|
maxWidth: _.maxWidth ? _.maxWidth + "px" : void 0
|
|
405
410
|
})
|
|
406
411
|
}, [
|
|
407
|
-
m("div",
|
|
408
|
-
id:
|
|
412
|
+
m("div", yt, [_.label ? (v(), p("h4", bt, [h(b(_.label), 1), _.required ? (v(), p("span", xt)) : f("", !0)])) : f("", !0), m("div", St, [$.value && _.collab ? (v(), p("div", Ct, [g(Te, {
|
|
413
|
+
id: Vt.value,
|
|
409
414
|
users: _.collab.cachedUsers
|
|
410
|
-
}, null, 8, ["id", "users"])])) : f("", !0), _.readonly ? f("", !0) : (v(), p("div",
|
|
411
|
-
|
|
415
|
+
}, null, 8, ["id", "users"])])) : f("", !0), _.readonly ? f("", !0) : (v(), p("div", wt, [_.expandOptions ? (v(), p("div", Tt, [
|
|
416
|
+
_n.value && !_.expandMetadata ? (v(), d(ft, {
|
|
412
417
|
key: 0,
|
|
413
418
|
class: "mr-2 mb-2",
|
|
414
419
|
disabled: $.value,
|
|
415
|
-
onClick:
|
|
420
|
+
onClick: Cn
|
|
416
421
|
}, {
|
|
417
422
|
default: w(() => [h(b(S(N)("common.damImage.image.meta.edit")), 1)]),
|
|
418
423
|
_: 1
|
|
419
424
|
}, 8, ["disabled"])) : f("", !0),
|
|
420
|
-
g(
|
|
425
|
+
g(ft, {
|
|
421
426
|
class: "mr-2 mb-2",
|
|
422
427
|
disabled: $.value,
|
|
423
|
-
onClick:
|
|
428
|
+
onClick: Tn
|
|
424
429
|
}, {
|
|
425
|
-
default: w(() => [
|
|
430
|
+
default: w(() => [_n.value ? (v(), p("span", Et, b(S($n)), 1)) : (v(), p("span", Dt, b(S(Qn)), 1))]),
|
|
426
431
|
_: 1
|
|
427
432
|
}, 8, ["disabled"]),
|
|
428
|
-
g(
|
|
433
|
+
g(Ee, {
|
|
429
434
|
ref_key: "expandedUploadDialog",
|
|
430
|
-
ref:
|
|
435
|
+
ref: ur,
|
|
431
436
|
modelValue: W.value,
|
|
432
437
|
"onUpdate:modelValue": r[0] ||= (e) => W.value = e,
|
|
433
|
-
"file-input-key":
|
|
434
|
-
accept: S(
|
|
435
|
-
"max-sizes": S(
|
|
436
|
-
onFilesInput:
|
|
438
|
+
"file-input-key": gn.value?.fileInputKey,
|
|
439
|
+
accept: S(Pn),
|
|
440
|
+
"max-sizes": S(Nn),
|
|
441
|
+
onFilesInput: Mn
|
|
437
442
|
}, {
|
|
438
|
-
activator: w(({ props: e }) => [g(
|
|
443
|
+
activator: w(({ props: e }) => [g(ft, $e(e, { disabled: $.value }), {
|
|
439
444
|
default: w(() => [h(b(S(N)("common.damImage.image.button.upload")), 1)]),
|
|
440
445
|
_: 1
|
|
441
446
|
}, 16, ["disabled"])]),
|
|
@@ -446,61 +451,61 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
446
451
|
"accept",
|
|
447
452
|
"max-sizes"
|
|
448
453
|
]),
|
|
449
|
-
_.required ? (v(), p("span",
|
|
450
|
-
])) : (v(), d(
|
|
454
|
+
_.required ? (v(), p("span", Ot)) : f("", !0)
|
|
455
|
+
])) : (v(), d(ft, {
|
|
451
456
|
key: 1,
|
|
452
457
|
variant: "text",
|
|
453
458
|
size: "x-small",
|
|
454
459
|
icon: "",
|
|
455
460
|
disabled: $.value,
|
|
456
461
|
"aria-label": S(N)("common.damImage.image.button.options"),
|
|
457
|
-
onClick:
|
|
462
|
+
onClick: ot(mr, ["stop"])
|
|
458
463
|
}, {
|
|
459
464
|
default: w(() => [
|
|
460
|
-
g(
|
|
461
|
-
g(
|
|
465
|
+
g(ct, { icon: "mdi-dots-horizontal" }),
|
|
466
|
+
g(dt, {
|
|
462
467
|
activator: "parent",
|
|
463
468
|
location: "top"
|
|
464
469
|
}, {
|
|
465
470
|
default: w(() => [h(b(S(N)("common.damImage.image.button.options")), 1)]),
|
|
466
471
|
_: 1
|
|
467
472
|
}),
|
|
468
|
-
g(
|
|
473
|
+
g(gt, {
|
|
469
474
|
modelValue: B.value,
|
|
470
475
|
"onUpdate:modelValue": r[2] ||= (e) => B.value = e,
|
|
471
476
|
activator: "parent",
|
|
472
477
|
location: "bottom right",
|
|
473
478
|
eager: ""
|
|
474
479
|
}, {
|
|
475
|
-
default: w(() => [g(
|
|
476
|
-
default: w(() => [g(
|
|
480
|
+
default: w(() => [g(ut, null, {
|
|
481
|
+
default: w(() => [g(pt, { density: "compact" }, {
|
|
477
482
|
default: w(() => [
|
|
478
|
-
|
|
483
|
+
_n.value && !_.expandMetadata ? (v(), d(mt, {
|
|
479
484
|
key: 0,
|
|
480
|
-
onClick:
|
|
485
|
+
onClick: Cn
|
|
481
486
|
}, {
|
|
482
|
-
default: w(() => [g(
|
|
487
|
+
default: w(() => [g(ht, null, {
|
|
483
488
|
default: w(() => [h(b(S(N)("common.damImage.image.meta.edit")), 1)]),
|
|
484
489
|
_: 1
|
|
485
490
|
})]),
|
|
486
491
|
_: 1
|
|
487
492
|
})) : f("", !0),
|
|
488
|
-
g(
|
|
489
|
-
default: w(() => [g(
|
|
490
|
-
default: w(() => [
|
|
493
|
+
g(mt, { onClick: Tn }, {
|
|
494
|
+
default: w(() => [g(ht, null, {
|
|
495
|
+
default: w(() => [_n.value ? (v(), p("span", kt, b(S($n)), 1)) : (v(), p("span", At, b(S(Qn)), 1))]),
|
|
491
496
|
_: 1
|
|
492
497
|
})]),
|
|
493
498
|
_: 1
|
|
494
499
|
}),
|
|
495
|
-
g(
|
|
500
|
+
g(Ee, {
|
|
496
501
|
modelValue: W.value,
|
|
497
502
|
"onUpdate:modelValue": r[1] ||= (e) => W.value = e,
|
|
498
|
-
"file-input-key":
|
|
499
|
-
accept: S(
|
|
500
|
-
"max-sizes": S(
|
|
501
|
-
onFilesInput:
|
|
503
|
+
"file-input-key": gn.value?.fileInputKey,
|
|
504
|
+
accept: S(Pn),
|
|
505
|
+
"max-sizes": S(Nn),
|
|
506
|
+
onFilesInput: Mn
|
|
502
507
|
}, {
|
|
503
|
-
activator: w(({ props: e }) => [g(
|
|
508
|
+
activator: w(({ props: e }) => [g(mt, { onClick: (t) => {
|
|
504
509
|
e.onClick(t), B.value = !1;
|
|
505
510
|
} }, {
|
|
506
511
|
default: w(() => [h(b(S(N)("common.damImage.image.button.upload")), 1)]),
|
|
@@ -513,11 +518,11 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
513
518
|
"accept",
|
|
514
519
|
"max-sizes"
|
|
515
520
|
]),
|
|
516
|
-
|
|
521
|
+
_n.value ? (v(), d(mt, {
|
|
517
522
|
key: 1,
|
|
518
|
-
onClick:
|
|
523
|
+
onClick: sr
|
|
519
524
|
}, {
|
|
520
|
-
default: w(() => [g(
|
|
525
|
+
default: w(() => [g(ht, null, {
|
|
521
526
|
default: w(() => [h(b(S(N)("common.damImage.image.button.removeImage")), 1)]),
|
|
522
527
|
_: 1
|
|
523
528
|
})]),
|
|
@@ -533,7 +538,7 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
533
538
|
]),
|
|
534
539
|
_: 1
|
|
535
540
|
}, 8, ["disabled", "aria-label"]))]))])]),
|
|
536
|
-
m("div",
|
|
541
|
+
m("div", jt, [g(vt, {
|
|
537
542
|
"lazy-src": S(t),
|
|
538
543
|
src: G.value,
|
|
539
544
|
width: _.width,
|
|
@@ -542,8 +547,8 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
542
547
|
"max-width": "100%",
|
|
543
548
|
class: "disable-radius"
|
|
544
549
|
}, {
|
|
545
|
-
error: w(() => [m("div",
|
|
546
|
-
placeholder: w(() => [m("div",
|
|
550
|
+
error: w(() => [m("div", Mt, [g(ct, { icon: "mdi-alert-circle-outline" })])]),
|
|
551
|
+
placeholder: w(() => [m("div", Nt, [g(lt, {
|
|
547
552
|
indeterminate: "",
|
|
548
553
|
color: "grey-lighten-4"
|
|
549
554
|
})])]),
|
|
@@ -557,40 +562,43 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
557
562
|
key: 0,
|
|
558
563
|
variant: "fill",
|
|
559
564
|
transparent: "",
|
|
560
|
-
accept: S(
|
|
561
|
-
"max-sizes": S(
|
|
562
|
-
"hide-text": !
|
|
563
|
-
onClick:
|
|
564
|
-
onDrop:
|
|
565
|
+
accept: S(Pn),
|
|
566
|
+
"max-sizes": S(Nn),
|
|
567
|
+
"hide-text": !hn.value || $.value,
|
|
568
|
+
onClick: dr,
|
|
569
|
+
onDrop: An
|
|
565
570
|
}, null, 8, [
|
|
566
571
|
"accept",
|
|
567
572
|
"max-sizes",
|
|
568
573
|
"hide-text"
|
|
569
574
|
]))]),
|
|
570
|
-
|
|
575
|
+
it(n.$slots, "append", { image: z.value }),
|
|
571
576
|
_.readonly ? f("", !0) : (v(), d(oe, {
|
|
572
577
|
key: 0,
|
|
573
578
|
ref_key: "detailDialogMetadataComponent",
|
|
574
|
-
ref:
|
|
579
|
+
ref: fr,
|
|
575
580
|
modelValue: V.value,
|
|
576
581
|
"onUpdate:modelValue": r[3] ||= (e) => V.value = e,
|
|
577
|
-
"show-dam-authors": !!S(
|
|
578
|
-
"dam-authors": S(
|
|
579
|
-
"
|
|
580
|
-
"source-
|
|
581
|
-
"
|
|
582
|
+
"show-dam-authors": !!S(nn),
|
|
583
|
+
"dam-authors": S(nn)?.authors,
|
|
584
|
+
"dam-sources": S(nn)?.sources,
|
|
585
|
+
"show-source-enabled": S(Yn),
|
|
586
|
+
"source-label": S(Xn),
|
|
587
|
+
"edit-asset-label": S(Zn),
|
|
582
588
|
expand: _.expandMetadata,
|
|
583
|
-
saving: H.value || S(
|
|
589
|
+
saving: H.value || S(mn),
|
|
584
590
|
loading: U.value,
|
|
585
591
|
type: S(l).Image,
|
|
586
|
-
onEditAsset:
|
|
587
|
-
"onUpdate:damAuthors": S(
|
|
588
|
-
|
|
589
|
-
|
|
592
|
+
onEditAsset: rr,
|
|
593
|
+
"onUpdate:damAuthors": S(on),
|
|
594
|
+
"onUpdate:damSources": S(sn),
|
|
595
|
+
onConfirm: ar,
|
|
596
|
+
onClose: ir
|
|
590
597
|
}, null, 8, [
|
|
591
598
|
"modelValue",
|
|
592
599
|
"show-dam-authors",
|
|
593
600
|
"dam-authors",
|
|
601
|
+
"dam-sources",
|
|
594
602
|
"show-source-enabled",
|
|
595
603
|
"source-label",
|
|
596
604
|
"edit-asset-label",
|
|
@@ -598,12 +606,13 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
598
606
|
"saving",
|
|
599
607
|
"loading",
|
|
600
608
|
"type",
|
|
601
|
-
"onUpdate:damAuthors"
|
|
609
|
+
"onUpdate:damAuthors",
|
|
610
|
+
"onUpdate:damSources"
|
|
602
611
|
]))
|
|
603
612
|
], 6),
|
|
604
613
|
g(ae, {
|
|
605
|
-
modelValue:
|
|
606
|
-
"onUpdate:modelValue": r[4] ||= (e) =>
|
|
614
|
+
modelValue: tn.value,
|
|
615
|
+
"onUpdate:modelValue": r[4] ||= (e) => tn.value = e,
|
|
607
616
|
"select-licences": _.selectLicences,
|
|
608
617
|
"list-views": _.listViews,
|
|
609
618
|
"upload-licence": _.uploadLicence,
|
|
@@ -613,10 +622,10 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
613
622
|
"skip-current-user-check": _.skipCurrentUserCheck,
|
|
614
623
|
"config-name": S(D),
|
|
615
624
|
"return-type": "asset",
|
|
616
|
-
onConfirm:
|
|
617
|
-
},
|
|
625
|
+
onConfirm: Vn
|
|
626
|
+
}, Ye({ _: 2 }, [n.$slots["asset-select-sidebar-prepend"] ? {
|
|
618
627
|
name: "sidebar-prepend",
|
|
619
|
-
fn: w((e) => [
|
|
628
|
+
fn: w((e) => [it(n.$slots, "asset-select-sidebar-prepend", tt(Xe(e)))]),
|
|
620
629
|
key: "0"
|
|
621
630
|
} : void 0]), 1032, [
|
|
622
631
|
"modelValue",
|
|
@@ -627,27 +636,27 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
627
636
|
"skip-current-user-check",
|
|
628
637
|
"config-name"
|
|
629
638
|
]),
|
|
630
|
-
S(
|
|
639
|
+
S(Wn) === _.queueKey ? (v(), d(se, {
|
|
631
640
|
key: 0,
|
|
632
641
|
"queue-key": _.queueKey,
|
|
633
642
|
"config-name": S(D),
|
|
634
|
-
"ext-system": S(
|
|
635
|
-
onClose: S(
|
|
643
|
+
"ext-system": S(En),
|
|
644
|
+
onClose: S(cn)
|
|
636
645
|
}, null, 8, [
|
|
637
646
|
"queue-key",
|
|
638
647
|
"config-name",
|
|
639
648
|
"ext-system",
|
|
640
649
|
"onClose"
|
|
641
650
|
])) : f("", !0),
|
|
642
|
-
S(
|
|
651
|
+
S($t) === _.queueKey && S(M) ? (v(), d(he, {
|
|
643
652
|
key: 1,
|
|
644
653
|
"queue-key": _.queueKey,
|
|
645
654
|
"ext-system": S(M).extSystem,
|
|
646
655
|
"licence-id": S(M).licence,
|
|
647
|
-
"file-input-key":
|
|
648
|
-
accept: S(
|
|
649
|
-
"max-sizes": S(
|
|
650
|
-
onApply:
|
|
656
|
+
"file-input-key": gn.value?.fileInputKey ?? -1,
|
|
657
|
+
accept: S(Pn),
|
|
658
|
+
"max-sizes": S(Nn),
|
|
659
|
+
onApply: lr
|
|
651
660
|
}, null, 8, [
|
|
652
661
|
"queue-key",
|
|
653
662
|
"ext-system",
|
|
@@ -659,6 +668,6 @@ var _t = { class: "a-image-widget__options" }, vt = {
|
|
|
659
668
|
], 64));
|
|
660
669
|
}
|
|
661
670
|
});
|
|
662
|
-
export {
|
|
671
|
+
export { Pt as default };
|
|
663
672
|
|
|
664
673
|
//# sourceMappingURL=ImageWidgetInner.vue_vue_type_script_setup_true_lang.js.map
|