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