@anzusystems/common-admin 2.0.0-rc.23 → 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.
@@ -1,2 +1,2 @@
1
- @layer vuetify-core, vuetify-components, vuetify-overrides, anzu-common, vuetify-utilities, vuetify-final;@layer vuetify-core.reset, vuetify-core.base;@layer vuetify-utilities.theme-base, vuetify-utilities.typography, vuetify-utilities.helpers, vuetify-utilities.theme-background, vuetify-utilities.theme-foreground;@layer vuetify-final.transitions, vuetify-final.trumps;@layer anzu-common{.v-snackbar[data-a-alerts-host]{z-index:5000!important}.a-alerts.v-snackbar__wrapper .v-snackbar__content{padding:0}.a-alerts.v-snackbar__wrapper .v-snackbar__actions{display:none}.a-alerts.v-snackbar__wrapper .v-alert__content{white-space:pre-line}@media (width<=1144.98px){.a-alerts.v-snackbar__wrapper{min-width:0;width:96%!important}}.v-breadcrumbs-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.a-progress-fullscreen[data-v-05ec5786]{z-index:99999;pointer-events:all;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.v-theme--light .a-progress-fullscreen[data-v-05ec5786]{background:#fff9}.v-theme--dark .a-progress-fullscreen[data-v-05ec5786]{background:#0009}.a-card-loader{background-color:#0000001a;position:absolute;inset:0}.a-admin-switcher__content{grid-template-rows:auto;grid-template-columns:repeat(3,1fr);padding:6px;display:grid}.a-admin-switcher__item{width:96px;height:96px;color:rgb(var(--v-theme-on-surface), var(--v-hover-opacity));flex-direction:column;justify-content:center;align-items:center;text-decoration:none;display:flex}.a-admin-switcher__item:hover{background-color:rgb(var(--v-theme-on-surface), 10%);border-radius:8px}.a-admin-switcher__item-title{color:rgb(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));padding:8px 0;font-size:14px;font-weight:400;line-height:14px;display:flex}.a-admin-switcher__item img{width:auto;height:50px;display:block}.a-datetime-picker-time[data-v-cc23916d]{display:flex}.a-datetime-picker-time__item[data-v-cc23916d]{flex-grow:1;justify-content:center;align-items:center;min-height:40px;display:flex}.a-datetime-picker-time__item[data-v-cc23916d]:hover{background-color:#0000000d}.a-datetime-picker-time__separator[data-v-cc23916d]{text-align:center;align-items:center;min-height:40px;padding:0 5px;font-family:Roboto,sans-serif;font-size:1.2rem;font-weight:700;display:flex}.a-datetime-picker-time__arrows[data-v-cc23916d]{opacity:0;flex-direction:column;display:flex}.a-datetime-picker-time__arrows .v-btn[data-v-cc23916d]{width:28px!important;min-width:28px!important;height:28px!important;padding:0!important}.a-datetime-picker-time__item:hover .a-datetime-picker-time__arrows[data-v-cc23916d],.a-datetime-picker-time__input:focus+.a-datetime-picker-time__arrows[data-v-cc23916d],.a-datetime-picker-time__arrows[data-v-cc23916d]:focus-within{opacity:1}.a-datetime-picker-time__input[data-v-cc23916d]{width:100%;max-width:128px;height:100%;-webkit-box-shadow:none;box-shadow:none;text-align:center;line-height:inherit;box-sizing:border-box;appearance:textfield;background:0 0;border:0;border-radius:0;outline:none;margin:0;padding:0;font-size:1rem;display:inline-block;position:relative}.a-datetime-picker-time__input--hours[data-v-cc23916d]{font-weight:700}.a-datetime-picker-time__input[data-v-cc23916d]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-datetime-picker-time__input[data-v-cc23916d]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.a-datetime-picker[data-v-ec08a2a8] .v-field__append-inner .v-icon{cursor:pointer}.a-datetime-picker__calendar-icon[data-v-ec08a2a8]{margin-top:2px;opacity:.6!important}.a-datetime-picker__clearable-icon[data-v-ec08a2a8]{opacity:0!important}.a-datetime-picker:hover .a-datetime-picker__clearable-icon[data-v-ec08a2a8]{opacity:.6!important}.a-datetime-picker__bottom-button[data-v-ec08a2a8]{text-align:center;width:100%;padding:6px 0;font-family:Roboto,sans-serif;font-size:.86rem;font-weight:700;line-height:1.8}.a-datetime-picker__bottom-button[data-v-ec08a2a8]:hover{background-color:#0000000d}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-picker-title{display:none}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-date-picker-header{padding-top:12px}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-date-picker-month{padding-bottom:2px}.v-btn.a-switch-fix-click:hover>.v-btn__overlay{opacity:0;max-height:36px}.a-chip--wrap .v-chip{height:auto!important}.a-chip--wrap .v-chip .v-chip__content{white-space:pre-wrap;max-width:100%;height:auto;min-height:26px}.non-clickable[data-v-c2700907]{cursor:default}.anzu-copy-text .v-icon{opacity:0}.anzu-copy-text:hover .v-icon{opacity:1}.anzu-icon-group{position:relative}.anzu-icon-group__main-icon{position:relative;top:-2px;left:-2px}.anzu-icon-group__secondary-icon{border-radius:100%;position:absolute;bottom:-6px;right:-6px;transform:scaleX(.6)scaleY(.6)}.anzu-icon-group__secondary-text{text-align:center;text-transform:uppercase;border-radius:100%;padding:2px;font-size:10px;line-height:13px;display:block;position:absolute;bottom:-4px;right:-4px;transform:scaleX(.8)scaleY(.8)}.v-theme--light .anzu-icon-group__secondary-icon{background-color:#fff}.v-theme--light .anzu-icon-group__secondary-text{color:#fff;background-color:#0009}.v-theme--dark .anzu-icon-group__secondary-icon{background-color:#363636}.v-theme--dark .anzu-icon-group__secondary-text{color:#fff;background-color:#363636}.v-btn--disabled.v-btn--icon .anzu-icon-group{opacity:.45}.a-button-split .a-button-split__main{border-top-right-radius:0!important;border-bottom-right-radius:0!important;padding-right:10px!important}.a-button-split .a-button-split__more{border-top-left-radius:0!important;border-bottom-left-radius:0!important;min-width:32px!important;padding:0 4px 0 0!important}.a-button-split .a-button-split__divider{width:1px;display:inline-block}.a-button-split--secondary .a-button-split__more{left:-2px}.flag[data-v-a63e60b6]{width:30px;height:30px;position:relative}.flag[data-v-a63e60b6] svg{width:90px;height:60px;position:absolute;top:-15px;left:-27px;transform:scale(.7)}.a-color-picker--hide-controls .v-color-picker__controls{display:none}.logo[data-v-2bdb1a09]{max-width:120px;height:auto;display:block}.a-file-dropzone{outline-offset:-4px;text-align:center;justify-content:center;align-items:center;display:flex;position:relative}.a-file-dropzone .text{pointer-events:none;-webkit-user-select:none;user-select:none;text-align:center;border-radius:5px;padding:6px}.a-file-dropzone--bg{width:100%}.a-file-dropzone--fullscreen{z-index:9999;position:fixed;inset:0}.a-file-dropzone--small{min-height:70px}.a-file-dropzone--small .text{padding:4px;font-size:.75rem;line-height:1.2}.a-file-dropzone--default{min-height:140px}.a-file-dropzone--large{min-height:210px}.a-file-dropzone--fill{min-height:40px;inset:0;position:absolute!important}.a-file-dropzone--hover-only,.a-file-dropzone--hide-text .text,.a-file-dropzone--disabled .text{display:none}.a-file-dropzone.a-file-dropzone--hover-only.a-file-dropzone--possibility{display:flex}.v-theme--light .a-file-dropzone .text{background-color:#d4d4d480}.v-theme--light .a-file-dropzone--bg{background-color:#d4d4d4}.v-theme--light .a-file-dropzone--possibility:not(.v-theme--light .a-file-dropzone--disabled){background-color:#e5edf1;outline:2px dashed #bacfd4}.v-theme--light .a-file-dropzone--over:not(.v-theme--light .a-file-dropzone--disabled){background-color:#dcedc8;outline:2px dashed #7cb342}.v-theme--dark .a-file-dropzone .text{background-color:#39393980}.v-theme--dark .a-file-dropzone--bg{background-color:#393939}.v-theme--dark .a-file-dropzone--possibility:not(.v-theme--dark .a-file-dropzone--disabled){background-color:#212531;outline:2px dashed #01579b}.v-theme--dark .a-file-dropzone--over:not(.v-theme--dark .a-file-dropzone--disabled){background-color:#283121;outline:2px dashed #333e28}.asset-image__meta-icons-absolute{position:absolute;top:163px;left:6px}.asset-image__meta-icons{display:flex}.asset-image__meta-icons img.img-svg{height:30px;padding:2px}.asset-image__meta-icons .asset-image__licence-badge{color:#fff;background-color:#00000080;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;margin:2px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.anzu-common-asset-image{position:relative}.anzu-common-asset-image__icon-wrapper{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.anzu-common-asset-image__icon-circle{background-color:#cccccc80;border-radius:100%}.asset-list-table__item--active{outline-offset:-1px;outline:1px solid #00f}.asset-list-tiles{flex-wrap:wrap;max-width:100%;padding:2px;display:flex}.asset-list-tiles__item{-webkit-user-select:none;user-select:none;flex-grow:2;min-width:200px;max-width:600px;min-height:260px;padding:10px;position:relative;overflow:hidden}.asset-list-tiles__item-card{border-radius:5px;overflow:hidden}.asset-list-tiles__item-card img.anzu-common-asset-image__img{object-fit:cover;width:100%;min-width:100%;height:200px;display:block}.asset-list-tiles__item-card:hover .asset-list-tiles__item-card-actions{display:block}.asset-list-tiles__item-card-actions{border-radius:4px;display:none;position:absolute;top:-2px;right:-5px;overflow:hidden}.asset-list-tiles__item-text,.asset-list-tiles__item-text .text-truncate{min-height:38px;max-height:38px;font-weight:500;line-height:30px}.asset-list-tiles__item--pointer{cursor:pointer}.asset-list-tiles--thumbnail{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));width:100%;display:grid}.asset-list-tiles--thumbnail .asset-list-tiles__item{min-width:unset;max-width:unset}.asset-list-tiles--thumbnail .asset-list-tiles__item img:not(.img-svg){object-fit:contain;padding-top:6px;padding-left:6px;padding-right:6px;background-color:#0000!important}.asset-list-tiles .asset-list-tiles__selected-triangle{z-index:1;position:absolute;top:10px;right:10px}.asset-list-tiles .asset-list-tiles__selected-triangle__bg{content:"";border-top:0 solid #0000;border-bottom:60px solid #0000;border-left:0 solid #0000;border-right:60px solid #608a32;width:0;height:0;position:absolute;top:0;right:0}.asset-list-tiles .asset-list-tiles__selected-triangle__icon{width:16px;height:16px;display:block;position:absolute;top:-3px;right:0}.v-theme--light .asset-list-tiles__item-card{background-color:#f9f9f9;border:1px solid #e8e9ea}.v-theme--light .asset-list-tiles__item-card:hover{box-shadow:0 0 3px 1px #959595}.v-theme--light .asset-list-tiles__item-card-actions{background-color:#fff}.v-theme--light .asset-list-tiles__item--selected .asset-list-tiles__item-card{border-color:#608a32}.v-theme--light .asset-list-tiles__item--active .asset-list-tiles__item-card{border-color:#00f}.v-theme--dark .asset-list-tiles__item-card{background-color:#1e1e1e;border:1px solid #2c2c2c}.v-theme--dark .asset-list-tiles__item-card:hover{box-shadow:0 0 3px 1px #3d3d3d}.v-theme--dark .asset-list-tiles__item-card-actions{background-color:#1a1a1a}.v-theme--dark .asset-list-tiles__item--selected .asset-list-tiles__item-card{border-color:#608a32}.v-theme--dark .asset-list-tiles__item--active .asset-list-tiles__item-card{border-color:#00f}.v-text-field.cursor-pointer[data-v-5a252715] .v-field,.v-text-field.cursor-pointer[data-v-5a252715] .v-field__input{cursor:pointer}.a-unsaved-sections[data-v-2a9ef6ae]{margin:8px 0;padding-left:20px}.a-unsaved-sections li[data-v-2a9ef6ae]{font-weight:500}.a-author-chip[data-v-82ddd04a]{max-width:100%}.a-author-chip[data-v-82ddd04a] .v-chip__content{min-width:0}.a-authors-append-item[data-v-f2b079b5]{background-color:rgb(var(--v-theme-surface));position:sticky;bottom:0;transform:translateY(8px)}.a-dam-sources-authors[data-v-f1ab7809]{container-type:inline-size}.a-dam-sources-authors__fields[data-v-f1ab7809]{flex-direction:column;gap:8px;display:flex}.a-dam-sources-authors__sources[data-v-f1ab7809],.a-dam-sources-authors__authors[data-v-f1ab7809]{min-width:0}.a-dam-sources-authors__slash[data-v-f1ab7809]{display:none}@container (width>=560px){.a-dam-sources-authors__fields[data-v-f1ab7809]{flex-direction:row;align-items:flex-start}.a-dam-sources-authors__sources[data-v-f1ab7809]{flex:2 1 0}.a-dam-sources-authors__authors[data-v-f1ab7809]{flex:3 1 0}.a-dam-sources-authors__slash[data-v-f1ab7809]{margin-top:5px;display:inline-flex}}.a-dam-sources-authors-fields__field[data-v-001f7457]{flex-grow:1;min-width:0}.a-keywords-append-item[data-v-976c0e76]{background-color:rgb(var(--v-theme-surface));position:sticky;bottom:0;transform:translateY(8px)}.a-selected-filters{background:#f5f5f5;border-radius:20px;align-items:center;gap:8px;max-width:100%;margin:0 4px 2px 0;padding:4px 4px 4px 12px;display:inline-flex}.a-selected-filters__label{white-space:nowrap}.a-selected-filters__chips{flex-wrap:wrap;gap:4px;display:flex}.a-selected-filters__chip{box-shadow:none;background:#fff}.a-selected-filters__chip .v-chip__content{max-width:40vw}.a-selected-filters__chip:hover .v-chip__close{opacity:.8}.a-selected-filters .v-chip__close{opacity:.3;transition:opacity .2s}.v-theme--dark .a-selected-filters{background:rgb(var(--v-theme-on-surface), .08)}.v-theme--dark .a-selected-filters .a-selected-filters__chip{background:rgb(var(--v-theme-on-surface), .16);color:rgb(var(--v-theme-on-surface))}.a-filter__container{width:100%}.a-filter__search{vertical-align:middle;min-width:100%;height:34px;display:inline-flex}@media (width>=600px){.a-filter__search{min-width:50%;margin-right:8px}}@media (width>=840px){.a-filter__search{min-width:40%}}@media (width>=1145px){.a-filter__search{min-width:30%}}.crop-preview{width:100%}.crop-preview img{max-width:100%;height:auto}[data-v-f4b74ecf] .v-img.disable-radius .v-img__img{border-radius:0}.label-container[data-v-f4b74ecf]{align-items:center;height:32px;display:flex}[data-v-0942d92c] .v-img.disable-radius .v-img__img{border-radius:0}.label-container[data-v-0942d92c]{align-items:center;height:32px;display:flex}.asset-list-tiles--thumbnail.a-sortable-widget__group{flex-wrap:wrap;gap:6px;display:flex}.asset-list-tiles--thumbnail.a-sortable-widget__group .asset-list-tiles__item{flex:260px;min-width:260px;max-width:400px}.asset-list-tiles--thumbnail.a-sortable-widget__group .asset-list-tiles__item img:not(.img-svg){padding:0}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-sortable-list-editor__rows{flex-direction:column;display:flex}.a-sortable-list-editor .a-le-view-body{padding:12px 16px}.a-sortable-list-editor .a-le-row--reorder .a-le-row-header{gap:8px;padding-left:12px;padding-right:8px}.a-sortable-list-editor .a-le-row--ghost{opacity:.35;background:var(--le-primary-state)}.a-sortable-list-editor .a-le-row--chosen{opacity:.5}.a-sortable-list-editor .a-le-row--drag{background:var(--le-surface);border:1px solid var(--le-border);border-radius:var(--le-radius);box-shadow:var(--le-elev-3);opacity:.96;pointer-events:none;max-width:420px}.a-sortable-list-editor .a-le-row--drag .a-le-actions,.a-sortable-list-editor .a-le-row--drag .a-le-status{display:none}.a-sortable-list-editor--header-floating .a-le-header{justify-content:flex-end;min-height:0;padding:6px 8px}.a-sortable-list-editor--embedded .a-le-card{box-shadow:none;background:0 0;border:none;border-radius:0}.a-sortable-list-editor--embedded .a-le-header{background:0 0;border:none;min-height:auto;padding:4px 0 6px}.a-sortable-list-editor--embedded .a-le-title-heading{color:var(--le-on-surface-medium,#000000b3);text-transform:uppercase;letter-spacing:.04em;font-size:13px;font-weight:500}.a-sortable-list-editor--embedded .a-le-row{background:var(--le-surface);border:1px solid var(--le-border);border-radius:6px}.a-sortable-list-editor--embedded .a-le-row-wrapper:not(:last-child){margin-bottom:4px}.a-sortable-list-editor--embedded .a-le-row-add{min-height:var(--le-row-min-height);border:1px dashed var(--le-border);color:var(--le-primary);background:0 0;border-radius:6px;width:100%;margin-top:4px;padding:0 16px}.a-sortable-list-editor--embedded .a-le-row-add:hover{background:var(--le-primary-state);border-style:solid}.a-sortable-list-editor--chips .a-sortable-list-editor__rows{flex-flow:wrap;flex:100%;gap:6px;display:flex}.a-sortable-list-editor--chips .a-le-row-header{gap:4px;min-height:28px;padding:2px 4px 2px 8px}.a-sortable-list-editor--chips .a-le-drag-handle{padding:0;font-size:16px}@container le-shell (width<=768px){.a-sortable-list-editor{--le-row-min-height:48px;--le-row-pad-y:10px}.a-sortable-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-sortable-list-editor .a-le-row .a-le-action--edit,.a-sortable-list-editor .a-le-row .a-le-action--delete,.a-sortable-list-editor .a-le-row .a-le-action--menu{opacity:1}}.image-widget-multiple-reorder{align-items:center;gap:16px;width:100%;min-height:100px;padding:4px 0;display:flex}.image-widget-multiple-reorder__thumb{border-radius:4px;flex:none;justify-content:center;align-items:center;width:200px;display:flex;overflow:hidden}.image-widget-multiple-reorder__thumb img{width:100%;height:auto;display:block}.image-widget-multiple-reorder__meta{flex:auto;min-width:0}.image-widget-multiple-reorder__title{color:rgb(var(--v-theme-on-surface));-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;font-weight:500;display:-webkit-box;overflow:hidden}.image-widget-multiple-reorder__source{color:rgb(var(--v-theme-on-surface)/70%);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:.82rem;overflow:hidden}@media (width<=600px){.image-widget-multiple-reorder{gap:8px;min-height:72px}.image-widget-multiple-reorder__thumb{width:80px}.image-widget-multiple-reorder__source{display:none}}.a-cropper{width:100%}.a-cropper cropper-crosshair{font-size:7px}.a-cropper cropper-selection[outlined]{box-shadow:inset 0 0 0 2px #3399ff1a,0 0 0 3px #3399ff1a}#app .v-layout--full-height{min-height:100dvh}.v-overlay-container .v-img__img--preload,#app .v-img__img--preload{filter:none}.v-overlay-container .v-overlay__content.v-autocomplete__content .v-list-item .v-list-item__prepend input[type=checkbox],#app .v-overlay__content.v-autocomplete__content .v-list-item .v-list-item__prepend input[type=checkbox]{pointer-events:none}.v-overlay-container .v-btn,#app .v-btn{letter-spacing:.8px;font-weight:500;font-stretch:100%}.v-overlay-container .v-text-field.v-text-field--pill .v-field__outline__start,#app .v-text-field.v-text-field--pill .v-field__outline__start{border-radius:9999px 0 0 9999px;flex:1}.v-overlay-container .v-text-field.v-text-field--pill .v-field__outline__end,#app .v-text-field.v-text-field--pill .v-field__outline__end{border-radius:0 9999px 9999px 0}.v-overlay-container .v-input--density-compact,#app .v-input--density-compact{--v-input-control-height:8px;--v-input-padding-top:5px}.v-overlay-container .v-input--density-compact .v-field--variant-outlined,.v-overlay-container .v-input--density-compact .v-field--single-line,#app .v-input--density-compact .v-field--variant-outlined,#app .v-input--density-compact .v-field--single-line{--v-field-padding-bottom:5px}.v-overlay-container .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-title,#app .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-title{min-height:18px;padding:12px}.v-overlay-container .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-text__wrapper,#app .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-text__wrapper{padding:12px}.v-overlay-container .v-dialog--fullscreen.overlay--sidebar .v-overlay__content,#app .v-dialog--fullscreen.overlay--sidebar .v-overlay__content{overflow:hidden!important}.v-overlay-container .v-label-opacity-disabled .v-label,#app .v-label-opacity-disabled .v-label{opacity:1}.a-chip-no-link.a-chip-no-link--custom-color .v-chip__underlay{background-color:#adadad!important}.a-required-mark:after{content:"*";color:red}.a-line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.word-break-all{word-break:break-all!important}.min-width-0{min-width:0!important}.a-datatable .v-data-table-column--last-fixed{z-index:4;border-left:none;border-right:none;position:sticky;left:auto!important;right:0!important}.a-datatable--dialog-sticky-fix{position:relative}.a-datatable--dialog-sticky-fix .v-table__wrapper{overflow-x:initial;overflow-y:initial}.v-theme--dark .a-datatable .v-data-table-column--last-fixed{background-color:#1a1a1a}.v-theme--light .a-datatable .v-data-table-column--last-fixed{background-color:#fff}.v-theme--light .a-datatable.v-data-table .v-table__wrapper>table tbody>tr:hover>td{background-color:#eee}.v-theme--dark .a-datatable.v-data-table .v-table__wrapper>table tbody>tr:hover>td{background-color:#505050}.a-datatable .a-datatable__row{cursor:pointer}.v-theme--light .a-datatable .a-datatable__row--selected{background-color:#d8e9e0}.v-theme--light .a-datatable .v-table__wrapper>table tbody>tr:hover>td{background-color:#eee}.v-theme--dark .a-datatable .a-datatable__row--selected{background-color:#4d5e55}.v-theme--dark .a-datatable .v-table__wrapper>table tbody>tr:hover>td{background-color:#505050}.subject-select__card{flex-direction:column;flex:100%;max-width:100%;max-height:100%;display:flex}.subject-select__toolbar{min-height:48px}.subject-select__second-bar{min-height:23px}.subject-select__main{flex:auto;display:flex;position:relative;overflow:hidden}.subject-select__main--sidebar-active .subject-select__sidebar{transform:translate(0%)}@media (width<=1144.98px){.subject-select__main--sidebar-active .subject-select__content{margin-left:0}}@media (width>=840px){.subject-select__main--sidebar-active .subject-select__content{margin-left:320px}}.subject-select__main--sidebar-right-active .subject-select__sidebar-right{transform:translate(0%)}@media (width<=1144.98px){.subject-select__main--sidebar-right-active .subject-select__content{margin-right:0}}@media (width>=840px){.subject-select__main--sidebar-right-active .subject-select__content{margin-right:300px}}.subject-select__sidebar{background-color:rgb(var(--v-theme-surface));height:100%;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-110%)}@media (width<=1144.98px){.subject-select__sidebar{z-index:2;width:100%}}@media (width>=840px){.subject-select__sidebar{z-index:0;width:320px}}.subject-select__sidebar .subject-select-filter,.subject-select__sidebar .subject-select-filter .v-form{flex-direction:column;width:100%;height:100%;display:flex}.subject-select__sidebar .subject-select-filter .subject-select-filter__content{flex:auto;overflow:hidden auto}.subject-select__sidebar .subject-select-filter .subject-select-filter__actions{flex:none;justify-content:center;align-items:center;min-height:40px;display:flex}.subject-select__sidebar-right{background-color:rgb(var(--v-theme-surface));height:100%;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;right:0;overflow:hidden auto;transform:translate(110%)}@media (width<=1144.98px){.subject-select__sidebar-right{z-index:2;width:100%}}@media (width>=840px){.subject-select__sidebar-right{z-index:0;width:300px}}.subject-select__content{width:100%;transition:all .2s cubic-bezier(.4,0,.2,1);overflow:auto}.subject-select__actions{flex:none;align-items:center;min-height:52px;padding:.5rem;display:flex}.subject-select__card--inline .subject-select__main{overflow:visible}.subject-select__card--inline .subject-select__content{flex:auto;min-width:0;overflow:visible}.subject-select__card--inline .subject-select__sidebar-right{flex-shrink:0;align-self:flex-start;width:0;height:auto;max-height:100dvh;position:sticky;top:0;overflow:hidden;transform:none}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__sidebar-right{width:300px;overflow-y:auto}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__content{margin-right:0}@media (width<=1144.98px){.subject-select__card--inline .subject-select__main--sidebar-right-active{flex-direction:column}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__sidebar-right{flex-shrink:1;align-self:stretch;width:100%;max-height:none;position:static}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__content{flex:none}}.a-image-widget__options{justify-content:space-between;align-items:center;display:flex}.a-image-widget--locked .v-img{opacity:.6}.a-image-widget__icon{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.a-image-widget__icon div{background-color:#cccccc80;border-radius:100%;justify-content:center;align-items:center;padding:20px;display:flex}.dam-image-detail{background-color:#f1f4f6;position:relative;min-height:100dvh!important;overflow:hidden!important}.dam-image-detail__wrapper{width:100%;height:100dvh}.dam-image-detail__wrapper .asset-image.asset-image--placeholder{width:100%!important;height:100%!important}@media (width<=1144.98px){.dam-image-detail__content{flex-direction:column;overflow:hidden;height:calc(100dvh - 48px)!important}}.dam-image-detail__sidebar{transition:all .2s cubic-bezier(.4,0,.2,1)}@media (width<=1144.98px){.dam-image-detail__sidebar{width:100%;display:flex;position:relative;overflow:hidden;height:calc(100dvh - 48px)!important}}@media (width>=840px){.dam-image-detail__sidebar{width:600px;position:absolute;top:0;right:0;transform:translate(110%)}}.dam-image-detail__left{transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}@media (width<=1144.98px){.dam-image-detail__left{flex:none;height:0;max-height:0}}@media (width>=840px){.dam-image-detail__left{height:calc(100dvh - 50px);max-height:calc(100dvh - 50px)}}.dam-image-detail__image{width:auto;max-height:calc(100dvh - 50px)}@media (width<=1144.98px){.dam-image-detail--sidebar-active .dam-image-detail__sidebar{height:calc(65dvh - 48px)!important}}@media (width>=840px){.dam-image-detail--sidebar-active .dam-image-detail__sidebar{display:flex;transform:translate(0%)}}@media (width<=1144.98px){.dam-image-detail--sidebar-active .dam-image-detail__left{height:35dvh;max-height:35dvh}}@media (width>=840px){.dam-image-detail--sidebar-active .dam-image-detail__left{padding-right:600px}}.v-theme--light .dam-image-detail{background-color:#f1f4f6}.v-theme--light .dam-image-detail__sidebar{background-color:#fff}.v-theme--dark .dam-image-detail{background-color:#000}.v-theme--dark .dam-image-detail__sidebar{background-color:#1a1a1a}.sidebar-info__tabs{flex:none;height:48px}.sidebar-info__content{overflow-y:auto}@media (width<=1144.98px){.sidebar-info__content{flex:auto;min-height:0}}@media (width>=840px){.sidebar-info__content{height:calc(100dvh - 144px);max-height:calc(100dvh - 144px)}}.sidebar-info__actions{flex:none;height:48px}@media (width>=840px){.sidebar-info--no-tabs .sidebar-info__content{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px)}}.asset-footer__selected{box-shadow:0 0 50px #000c}.asset-footer--hidden{display:none}.asset-footer--minimal{height:32px;min-height:32px;max-height:32px}.asset-footer--compact{height:160px;min-height:160px;max-height:160px}.asset-footer--full{width:100vw;height:100dvh;position:fixed;inset:0}.v-theme--light .asset-footer{background-color:#fff}.v-theme--dark .asset-footer{background-color:#1a1a1a}.asset-queue-editable{position:relative;min-height:100dvh!important}.asset-queue-editable__sidebar{width:400px;height:calc(100dvh - 49px);transition:all .2s cubic-bezier(.4,0,.2,1);position:absolute;top:0;right:0;transform:translate(110%)}.asset-queue-editable__left{height:calc(100dvh - 49px);transition:all .2s cubic-bezier(.4,0,.2,1)}.asset-queue-editable--sidebar-active .asset-queue-editable__sidebar{display:flex;transform:translate(0%)}.asset-queue-editable--sidebar-active .asset-queue-editable__left{margin-right:400px}@media (width<=1144.98px){.asset-queue-editable--sidebar-active .asset-queue-editable__sidebar{z-index:1;width:100%;overflow-y:auto}.asset-queue-editable--sidebar-active .asset-queue-editable__left{margin-right:0}}.v-theme--light .asset-queue-editable,.v-theme--light .asset-queue-editable__sidebar{background-color:#fff}.v-theme--dark .asset-queue-editable,.v-theme--dark .asset-queue-editable__sidebar{background-color:#1a1a1a}.asset-image{position:relative}.asset-image__icon-wrapper{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.asset-image__icon-circle{background-color:#cccccc80;border-radius:100%}.asset-image .asset-image--loading-bg .v-responsive__content{background-color:#ffffff80}.asset-image .asset-image__progress{flex-direction:column;justify-content:center;align-items:center;gap:0;display:flex;position:absolute;inset:0}.asset-image .asset-image__progress--animate-done{background-color:#ffffff80;animation:2s forwards animate-upload-done}.dam-upload-queue{margin-top:1px;overflow:auto hidden}.dam-upload-queue--simple .dam-upload-queue__item{min-width:170px;max-width:170px;min-height:110px;max-height:110px;padding:2px;position:relative;overflow:hidden}.dam-upload-queue--simple .dam-upload-queue__item-card{height:108px;padding:2px}.dam-upload-queue--list{overflow:hidden auto}.dam-upload-queue--list .dam-upload-queue__item{width:100%;min-width:auto;max-width:100%;min-height:auto;max-height:none}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-status{width:16px;height:16px;display:flex}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-remove{width:16px;height:16px;display:none}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-card{border:none}.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-status{display:none}.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-status.dam-upload-queue__item-status--permanent,.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-remove{display:flex}.dam-upload-queue--editable .dam-upload-queue__item .dam-upload-queue__item-card .asset-image{aspect-ratio:16/9}.dam-upload-queue__overlay{position:absolute;inset:0}@keyframes animate-upload-done{0%{opacity:1}to{opacity:0;display:none}}.v-theme--light .dam-upload-queue--simple .dam-upload-queue__item-card{background-color:#fff;border:1px solid #e8e9ea}.v-theme--light .dam-upload-queue__overlay{background-color:#ffffffb3}.v-theme--dark .dam-upload-queue--simple .dam-upload-queue__item-card{background-color:#1e1e1e;border:1px solid #2c2c2c}.v-theme--dark .dam-upload-queue__overlay{background-color:#000000b3}.anzu-data-footer{flex-wrap:wrap;justify-content:flex-end;align-items:center;margin-top:10px;padding:0 8px;font-size:.75rem;display:flex}.anzu-data-footer>div.current-page{-webkit-user-select:none;user-select:none;text-align:center;justify-content:center;align-items:center;min-width:40px;padding-left:10px;padding-right:10px;display:flex}.anzu-data-footer__page-limit{white-space:nowrap;flex:0 0 0;justify-content:flex-end;align-items:center;margin-right:14px;display:flex}.anzu-data-footer__pagination{text-align:center;margin:0 32px 0 24px;display:block}pre[data-v-f259e3c6]{overflow:auto}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-list-editor--chips .a-le-row-header{gap:4px;min-height:28px;padding:2px 4px 2px 12px}@container le-shell (width<=768px){.a-list-editor{--le-row-min-height:48px;--le-row-pad-y:10px}.a-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-list-editor .a-le-row .a-le-action--edit,.a-list-editor .a-le-row .a-le-action--delete,.a-list-editor .a-le-row .a-le-action--menu{opacity:1}}.le-change-parent__list[data-v-456ea429]{max-height:340px;overflow-y:auto}.a-list-editor,.a-sortable-list-editor,.a-nested-list-editor{--le-border:#0000001f;--le-surface:rgb(var(--v-theme-surface,255, 255, 255));--le-surface-container:#00000006;--le-primary:rgb(var(--v-theme-primary,63, 106, 216));--le-primary-container:rgba(var(--v-theme-primary,63, 106, 216), .12);--le-primary-state:rgba(var(--v-theme-primary,63, 106, 216), .04);--le-primary-state-press:rgba(var(--v-theme-primary,63, 106, 216), .12);--le-success-container:#4caf502e;--le-success-fg:#165634;--le-warning-container:#fb8c002e;--le-warning-fg:#914000;--le-warning:rgb(var(--v-theme-warning,251, 140, 0));--le-error-container:rgba(var(--v-theme-error,217, 37, 80), .18);--le-error-fg:rgb(var(--v-theme-error,217, 37, 80));--le-on-surface:rgb(var(--v-theme-on-surface,51, 51, 51));--le-on-surface-variant:rgb(var(--v-theme-on-surface-variant,102, 102, 102));--le-radius:8px;--le-radius-pill:9999px;--le-elev-1:0 1px 2px #0000001f, 0 1px 3px 1px #0000000f;--le-elev-3:0 1px 3px #00000029, 0 4px 8px 3px #0000001a;--le-row-min-height:48px;--le-row-pad-y:6px;--le-row-font:13px;--le-indent:24px;position:relative;container:le-shell/inline-size}.v-theme--dark .a-list-editor,.v-theme--dark .a-sortable-list-editor,.v-theme--dark .a-nested-list-editor{--le-border:#ffffff1f;--le-surface-container:#ffffff0a;--le-success-fg:#81c784;--le-warning-fg:#ffb74d;--le-error-fg:#ff8a9f}.a-list-editor--disabled,.a-list-editor--readonly,.a-sortable-list-editor--disabled,.a-sortable-list-editor--readonly,.a-nested-list-editor--disabled,.a-nested-list-editor--readonly{opacity:.85}.a-list-editor--disabled,.a-sortable-list-editor--disabled,.a-nested-list-editor--disabled{pointer-events:none}.a-le-card{background:var(--le-surface);border:1px solid var(--le-border);border-radius:var(--le-radius);overflow:hidden}.a-le-header{border-bottom:1px solid var(--le-border);background:var(--le-surface);flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;min-height:60px;padding:8px 16px;display:flex}.a-le-title-heading{letter-spacing:.009em;color:var(--le-on-surface);margin:0;font-size:1rem;font-weight:500;line-height:1.5}.a-le-header-actions{flex-wrap:wrap;flex-shrink:1;align-items:center;gap:8px;min-width:0;margin-left:auto;display:inline-flex}.a-le-state{justify-content:center;align-items:center;padding:32px 16px;display:flex}.a-le-state--empty{padding:12px 16px}.a-le-state--error{padding:16px}.a-le-state--error .v-alert{width:100%}.a-le-empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:8px;display:flex}.a-le-empty-title{color:var(--le-on-surface);margin:0;font-size:1rem;font-weight:500}.a-le-row{background:var(--le-surface);border-bottom:1px solid var(--le-border);flex-direction:column;transition:background-color .15s cubic-bezier(.4,0,.2,1);display:flex;position:relative}.a-le-row--clickable .a-le-row-header{cursor:pointer}.a-le-row--editing>.a-le-row-header,.a-le-row--expanded>.a-le-row-header{background:var(--le-primary-container)}.a-le-row--editing:before,.a-le-row--expanded:before{content:"";background:var(--le-primary);z-index:1;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--unsaved{background:var(--le-warning-container)}.a-le-row--unsaved:before{content:"";background:var(--le-warning);z-index:2;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--unsaved>.a-le-row-header{background:var(--le-warning-container)}.a-le-row--unsaved.a-le-row--editing>.a-le-row-header>.a-le-row-main,.a-le-row--unsaved.a-le-row--editing>.a-le-row-header>.a-le-row-main *,.a-le-row--unsaved.a-le-row--expanded>.a-le-row-header>.a-le-row-main,.a-le-row--unsaved.a-le-row--expanded>.a-le-row-header>.a-le-row-main *{color:var(--le-warning)}.a-le-row--editing>.a-le-row-header>.a-le-row-main,.a-le-row--editing>.a-le-row-header>.a-le-row-main *,.a-le-row--expanded>.a-le-row-header>.a-le-row-main,.a-le-row--expanded>.a-le-row-header>.a-le-row-main *{color:var(--le-primary);font-weight:700}.a-le-row--grabbed{outline:3px solid var(--le-primary);outline-offset:-3px;background:var(--le-primary-state-press);box-shadow:0 0 0 6px var(--le-primary-state), 0 4px 12px #00000014;z-index:4}.a-le-row--grabbed:before{background:var(--le-primary)!important}.a-le-row--validation-invalid:after,.a-le-row--validation-warning:after{content:"";z-index:3;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--validation-invalid:after{background:var(--le-error-fg)}.a-le-row--validation-warning:after{background:var(--le-warning)}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}.a-le-row:focus-visible,.a-le-row-wrapper:focus-visible{outline:2px solid var(--le-primary);outline-offset:-2px}.a-le-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.a-le-row-header{padding:var(--le-row-pad-y) 12px var(--le-row-pad-y) 16px;min-height:var(--le-row-min-height);flex-shrink:0;align-items:center;gap:10px;transition:background-color .15s;display:flex;position:relative}.a-le-row-main{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.a-le-title{font-size:var(--le-row-font);letter-spacing:.018em;color:var(--le-on-surface);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-weight:400;line-height:1.43;overflow:hidden}.a-le-row-body{padding:12px 16px;transition:padding-left .2s}.a-le-form{background:var(--le-surface);border-radius:var(--le-radius);border:1px solid #0000000f;padding:16px 16px 8px}.a-le-row-footer{justify-content:flex-end;align-items:center;gap:8px;padding:4px 16px 16px;display:flex}.a-le-row-footer-spacer{flex:auto}.a-le-unsaved-label{color:var(--le-warning);white-space:nowrap;letter-spacing:.02em;flex-shrink:0;align-items:center;gap:3px;padding:2px 4px;font-size:11px;font-weight:500;display:inline-flex}.a-le-unsaved-label--dot{gap:0;padding:0}.a-le-unsaved-count{color:var(--le-warning);font-size:.85rem;font-weight:500}.a-le-status{flex-shrink:0;align-items:center;gap:8px;margin-left:auto;display:inline-flex}.a-le-status-badge{min-width:56px;font:500 11px/1 var(--v-font-body,inherit);letter-spacing:.02em;background:var(--le-success-container);color:var(--le-success-fg);border-radius:var(--le-radius-pill);white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:4px;padding:4px 10px;display:inline-flex}.a-le-status-badge--warning{background:var(--le-warning-container);color:var(--le-warning-fg)}.a-le-status-badge--error{background:var(--le-error-container);color:var(--le-error-fg)}.a-le-actions{flex-shrink:0;align-items:center;gap:2px;margin-left:4px;display:inline-flex}.a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):hover .a-le-row-header{background:var(--le-primary-state)}.a-list-editor .a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):active .a-le-row-header,.a-sortable-list-editor .a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):active .a-le-row-header{background:var(--le-primary-state-press)}.a-le-row-add{width:100%;color:var(--le-primary);cursor:pointer;border:none;border-top:1px solid var(--le-border);background:var(--le-surface-container);letter-spacing:.02em;text-align:left;align-items:center;gap:8px;padding:10px 16px;font-family:inherit;font-size:13px;font-weight:500;line-height:1;transition:background-color .15s;display:flex}.a-le-row-add:hover{background:var(--le-primary-container)}.a-list-editor .a-le-row-add:focus-visible,.a-sortable-list-editor .a-le-row-add:focus-visible{outline:2px solid var(--le-primary);outline-offset:-2px}.a-le-drag-handle{cursor:grab;flex-shrink:0;padding:4px 0}.a-le-drag-handle:active{cursor:grabbing}.a-le-toolbar-status{color:var(--le-on-surface);flex:0 auto;align-items:center;gap:4px;min-width:0;margin-right:4px;font-size:.85rem;font-weight:500;display:inline-flex}.a-le-toolbar-status span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.a-le-toolbar-status--pending{color:var(--le-warning)}.a-le-row--two-rows:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-le-row--two-rows .a-le-row-main{grid-area:title;min-width:0}.a-le-row--two-rows .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-le-row--two-rows .a-le-status{grid-area:status}.a-le-row--two-rows .a-le-actions{grid-area:actions;margin-left:0}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-action--edit,.a-le-action--delete,.a-le-action--menu,.a-le-action--up,.a-le-action--down,.a-le-action--add-child{opacity:0;transition:opacity .15s}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-list-editor--chips .a-le-card,.a-sortable-list-editor--chips .a-le-card{border-radius:var(--le-radius);box-shadow:none;flex-wrap:wrap;gap:6px;padding:8px;display:flex}.a-list-editor--chips .a-le-header,.a-sortable-list-editor--chips .a-le-header{border-bottom:none;flex:100%;min-height:auto;padding:4px 8px 8px}.a-list-editor--chips .a-le-row-wrapper,.a-sortable-list-editor--chips .a-le-row-wrapper{flex:none;min-width:0;max-width:100%;display:flex}.a-list-editor--chips .a-le-row,.a-sortable-list-editor--chips .a-le-row{background:var(--le-primary-container);border-radius:var(--le-radius-pill);border-bottom:none;flex:none;max-width:100%}.a-list-editor--chips .a-le-row--unsaved,.a-sortable-list-editor--chips .a-le-row--unsaved{background:var(--le-warning-container)}.a-list-editor--chips .a-le-row--unsaved:before,.a-sortable-list-editor--chips .a-le-row--unsaved:before{display:none}.a-list-editor--chips .a-le-row--unsaved .a-le-row-header,.a-sortable-list-editor--chips .a-le-row--unsaved .a-le-row-header{background:0 0}.a-list-editor--chips .a-le-row-main,.a-sortable-list-editor--chips .a-le-row-main{gap:6px}.a-list-editor--chips .a-le-title,.a-sortable-list-editor--chips .a-le-title{color:var(--le-primary);font-size:.82rem;font-weight:500}.a-list-editor--chips .a-le-action--chip-close,.a-sortable-list-editor--chips .a-le-action--chip-close{opacity:.7;transition:opacity .15s}.a-list-editor--chips .a-le-action--chip-close:hover,.a-sortable-list-editor--chips .a-le-action--chip-close:hover{opacity:1}.a-list-editor--chips .a-le-row-add,.a-sortable-list-editor--chips .a-le-row-add{border-top:none;border:1px dashed var(--le-border);border-radius:var(--le-radius-pill);background:0 0;flex:none;width:auto;padding:4px 12px;font-size:.82rem}.a-list-editor--chips .a-le-row-add:hover,.a-sortable-list-editor--chips .a-le-row-add:hover{background:var(--le-primary-state)}.a-nested-list-editor .a-le-row-header{padding:var(--le-row-pad-y) 12px var(--le-row-pad-y) calc(16px + var(--nested-depth,0) * var(--le-indent))}.a-nested-list-editor__rows{flex-direction:column;display:flex;position:relative}.a-nested-list-editor__group{flex-direction:column;display:flex}.a-nested-list-editor .a-le-toolbar-status{font:500 13px/1 var(--v-font-body,inherit)}.a-le-row-wrapper{flex-direction:column;display:flex}.a-nested-list-editor .a-le-row:not(.a-le-row--child) .a-le-title{font-weight:600}.a-nested-list-editor .a-le-row--reorder .a-le-row-header{padding-left:calc(12px + var(--nested-depth,0) * var(--le-indent));gap:8px;padding-right:8px}.a-le-row--editing .a-nested-list-editor__tree-toggle,.a-le-row--expanded .a-nested-list-editor__tree-toggle{color:var(--le-primary)}.a-nested-list-editor__children{position:relative}.a-nested-list-editor__tree-toggle{cursor:pointer;pointer-events:auto;color:#0000008a;z-index:2;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:background .15s,color .15s;display:inline-flex}.a-nested-list-editor__tree-toggle:hover{color:var(--le-on-surface);background:#0000000d}.a-nested-list-editor__tree-toggle:focus-visible{background:#00000014;outline:none}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle{color:#ffffffb3}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle:hover{background:#ffffff14}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle:focus-visible{background:#ffffff1f}.a-nested-list-editor__tree-toggle--spacer,.a-nested-list-editor__tree-toggle--empty{visibility:hidden;pointer-events:none;background:0 0;width:24px;height:24px}.a-nested-list-editor__tree-toggle-caret{border:4px solid #0000;border-left:5px solid;border-right:0;width:0;height:0;transition:transform .15s cubic-bezier(.4,0,.2,1);transform:translate(1px)}.a-nested-list-editor__tree-toggle--open .a-nested-list-editor__tree-toggle-caret{transform:translateY(1px)rotate(90deg)}.a-nested-list-editor .a-le-row-wrapper.a-le-row--chosen,.a-nested-list-editor .a-le-row-wrapper.a-le-row-wrapper--drop-disabled{opacity:.4!important;pointer-events:none!important;display:flex!important}.a-nested-list-editor .a-le-row--ghost,.a-nested-list-editor .a-le-row-wrapper.a-le-row--drag{display:none!important}.a-nested-list-editor__drop-line{background:var(--le-primary);pointer-events:none;z-index:4;border-radius:1px;height:2px;margin-top:-1px;position:absolute}.a-nested-list-editor__drop-line-dot{background:var(--le-primary);border-radius:50%;width:8px;height:8px;position:absolute;top:50%;left:-4px;transform:translateY(-50%)}.a-nested-list-editor__drop-connector{background:var(--le-primary);opacity:.5;pointer-events:none;z-index:3;width:2px;margin-left:-1px;position:absolute}.a-nested-list-editor__rows--dragging .a-le-row-add{opacity:.4}.a-nested-list-editor__drag-count{font:500 11px/1 var(--v-font-body,inherit);letter-spacing:.02em;color:var(--le-primary);background:var(--le-primary-container);border-radius:var(--le-radius-pill);flex-shrink:0;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;display:none}.a-le-row--drag .a-nested-list-editor__drag-count{display:inline-flex}@container le-shell (width>=769px){.a-nested-list-editor .a-le-row--editing .a-le-row-body,.a-nested-list-editor .a-le-row--expanded .a-le-row-body,.a-nested-list-editor .a-le-row--editing .a-le-row-footer,.a-nested-list-editor .a-le-row--expanded .a-le-row-footer{padding-left:calc(50px + var(--nested-depth,0) * var(--le-indent));padding-right:16px}}@container le-shell (width<=768px){.a-nested-list-editor{--le-indent:18px;--le-row-min-height:48px;--le-row-pad-y:10px}.a-nested-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-nested-list-editor .a-le-row .a-le-action--edit,.a-nested-list-editor .a-le-row .a-le-action--delete,.a-nested-list-editor .a-le-row .a-le-action--menu,.a-nested-list-editor .a-le-row .a-le-action--up,.a-nested-list-editor .a-le-row .a-le-action--down,.a-nested-list-editor .a-le-row .a-le-action--add-child{opacity:1}}.a-live-listing-pill{top:calc(var(--v-layout-top,0px) + .25rem);z-index:3;justify-content:center;height:0;display:flex;position:sticky;overflow:visible}.a-live-listing-pill__item{margin-top:.25rem}.v-card:has(.a-live-listing-pill){overflow:clip}.a-datatable-side-panel{align-items:flex-start;gap:1rem;min-width:0;display:flex}.a-datatable-side-panel__list{flex:auto;min-width:0}.a-datatable-side-panel__panel{top:var(--v-layout-top,0);height:calc(100dvh - var(--v-layout-top,0px) - var(--v-layout-bottom,0px));border-left:thin solid rgb(var(--v-border-color), var(--v-border-opacity));flex-direction:column;flex:none;display:flex;position:sticky}.a-datatable-side-panel__header{border-bottom:thin solid rgb(var(--v-border-color), var(--v-border-opacity));flex:none;align-items:flex-start;gap:.5rem;padding:.75rem .5rem .75rem 1rem;display:flex}.a-datatable-side-panel__header-content{flex:auto;min-width:0}.a-datatable-side-panel__close{flex:none}.a-datatable-side-panel__body{flex:auto;min-height:0;padding:1rem;overflow-y:auto}.v-card:has(.a-datatable-side-panel__panel){overflow:clip}}@layer vuetify-core.reset{*{margin:0;padding:0}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace}pre{font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}textarea{resize:vertical}button,input,select,textarea{background-color:#0000;border-style:none}select{appearance:none}legend{white-space:normal;max-width:100%;display:table}}
1
+ @layer vuetify-core, vuetify-components, vuetify-overrides, anzu-common, vuetify-utilities, vuetify-final;@layer vuetify-core.reset, vuetify-core.base;@layer vuetify-utilities.theme-base, vuetify-utilities.typography, vuetify-utilities.helpers, vuetify-utilities.theme-background, vuetify-utilities.theme-foreground;@layer vuetify-final.transitions, vuetify-final.trumps;@layer anzu-common{.v-snackbar[data-a-alerts-host]{z-index:5000!important}.a-alerts.v-snackbar__wrapper .v-snackbar__content{padding:0}.a-alerts.v-snackbar__wrapper .v-snackbar__actions{display:none}.a-alerts.v-snackbar__wrapper .v-alert__content{white-space:pre-line}@media (width<=1144.98px){.a-alerts.v-snackbar__wrapper{min-width:0;width:96%!important}}.v-breadcrumbs-item__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.a-progress-fullscreen[data-v-05ec5786]{z-index:99999;pointer-events:all;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.v-theme--light .a-progress-fullscreen[data-v-05ec5786]{background:#fff9}.v-theme--dark .a-progress-fullscreen[data-v-05ec5786]{background:#0009}.a-card-loader{background-color:#0000001a;position:absolute;inset:0}.a-admin-switcher__content{grid-template-rows:auto;grid-template-columns:repeat(3,1fr);padding:6px;display:grid}.a-admin-switcher__item{width:96px;height:96px;color:rgb(var(--v-theme-on-surface), var(--v-hover-opacity));flex-direction:column;justify-content:center;align-items:center;text-decoration:none;display:flex}.a-admin-switcher__item:hover{background-color:rgb(var(--v-theme-on-surface), 10%);border-radius:8px}.a-admin-switcher__item-title{color:rgb(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));padding:8px 0;font-size:14px;font-weight:400;line-height:14px;display:flex}.a-admin-switcher__item img{width:auto;height:50px;display:block}.a-datetime-picker-time[data-v-cc23916d]{display:flex}.a-datetime-picker-time__item[data-v-cc23916d]{flex-grow:1;justify-content:center;align-items:center;min-height:40px;display:flex}.a-datetime-picker-time__item[data-v-cc23916d]:hover{background-color:#0000000d}.a-datetime-picker-time__separator[data-v-cc23916d]{text-align:center;align-items:center;min-height:40px;padding:0 5px;font-family:Roboto,sans-serif;font-size:1.2rem;font-weight:700;display:flex}.a-datetime-picker-time__arrows[data-v-cc23916d]{opacity:0;flex-direction:column;display:flex}.a-datetime-picker-time__arrows .v-btn[data-v-cc23916d]{width:28px!important;min-width:28px!important;height:28px!important;padding:0!important}.a-datetime-picker-time__item:hover .a-datetime-picker-time__arrows[data-v-cc23916d],.a-datetime-picker-time__input:focus+.a-datetime-picker-time__arrows[data-v-cc23916d],.a-datetime-picker-time__arrows[data-v-cc23916d]:focus-within{opacity:1}.a-datetime-picker-time__input[data-v-cc23916d]{width:100%;max-width:128px;height:100%;-webkit-box-shadow:none;box-shadow:none;text-align:center;line-height:inherit;box-sizing:border-box;appearance:textfield;background:0 0;border:0;border-radius:0;outline:none;margin:0;padding:0;font-size:1rem;display:inline-block;position:relative}.a-datetime-picker-time__input--hours[data-v-cc23916d]{font-weight:700}.a-datetime-picker-time__input[data-v-cc23916d]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-datetime-picker-time__input[data-v-cc23916d]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.a-datetime-picker[data-v-ec08a2a8] .v-field__append-inner .v-icon{cursor:pointer}.a-datetime-picker__calendar-icon[data-v-ec08a2a8]{margin-top:2px;opacity:.6!important}.a-datetime-picker__clearable-icon[data-v-ec08a2a8]{opacity:0!important}.a-datetime-picker:hover .a-datetime-picker__clearable-icon[data-v-ec08a2a8]{opacity:.6!important}.a-datetime-picker__bottom-button[data-v-ec08a2a8]{text-align:center;width:100%;padding:6px 0;font-family:Roboto,sans-serif;font-size:.86rem;font-weight:700;line-height:1.8}.a-datetime-picker__bottom-button[data-v-ec08a2a8]:hover{background-color:#0000000d}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-picker-title{display:none}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-date-picker-header{padding-top:12px}.a-datetime-picker-calendar[data-v-ec08a2a8] .v-date-picker-month{padding-bottom:2px}.v-btn.a-switch-fix-click:hover>.v-btn__overlay{opacity:0;max-height:36px}.a-chip--wrap .v-chip{height:auto!important}.a-chip--wrap .v-chip .v-chip__content{white-space:pre-wrap;max-width:100%;height:auto;min-height:26px}.non-clickable[data-v-c2700907]{cursor:default}.anzu-copy-text .v-icon{opacity:0}.anzu-copy-text:hover .v-icon{opacity:1}.anzu-icon-group{position:relative}.anzu-icon-group__main-icon{position:relative;top:-2px;left:-2px}.anzu-icon-group__secondary-icon{border-radius:100%;position:absolute;bottom:-6px;right:-6px;transform:scaleX(.6)scaleY(.6)}.anzu-icon-group__secondary-text{text-align:center;text-transform:uppercase;border-radius:100%;padding:2px;font-size:10px;line-height:13px;display:block;position:absolute;bottom:-4px;right:-4px;transform:scaleX(.8)scaleY(.8)}.v-theme--light .anzu-icon-group__secondary-icon{background-color:#fff}.v-theme--light .anzu-icon-group__secondary-text{color:#fff;background-color:#0009}.v-theme--dark .anzu-icon-group__secondary-icon{background-color:#363636}.v-theme--dark .anzu-icon-group__secondary-text{color:#fff;background-color:#363636}.v-btn--disabled.v-btn--icon .anzu-icon-group{opacity:.45}.a-button-split .a-button-split__main{border-top-right-radius:0!important;border-bottom-right-radius:0!important;padding-right:10px!important}.a-button-split .a-button-split__more{border-top-left-radius:0!important;border-bottom-left-radius:0!important;min-width:32px!important;padding:0 4px 0 0!important}.a-button-split .a-button-split__divider{width:1px;display:inline-block}.a-button-split--secondary .a-button-split__more{left:-2px}.flag[data-v-a63e60b6]{width:30px;height:30px;position:relative}.flag[data-v-a63e60b6] svg{width:90px;height:60px;position:absolute;top:-15px;left:-27px;transform:scale(.7)}.a-color-picker--hide-controls .v-color-picker__controls{display:none}.logo[data-v-2bdb1a09]{max-width:120px;height:auto;display:block}.a-file-dropzone{outline-offset:-4px;text-align:center;justify-content:center;align-items:center;display:flex;position:relative}.a-file-dropzone .text{pointer-events:none;-webkit-user-select:none;user-select:none;text-align:center;border-radius:5px;padding:6px}.a-file-dropzone--bg{width:100%}.a-file-dropzone--fullscreen{z-index:9999;position:fixed;inset:0}.a-file-dropzone--small{min-height:70px}.a-file-dropzone--small .text{padding:4px;font-size:.75rem;line-height:1.2}.a-file-dropzone--default{min-height:140px}.a-file-dropzone--large{min-height:210px}.a-file-dropzone--fill{min-height:40px;inset:0;position:absolute!important}.a-file-dropzone--hover-only,.a-file-dropzone--hide-text .text,.a-file-dropzone--disabled .text{display:none}.a-file-dropzone.a-file-dropzone--hover-only.a-file-dropzone--possibility{display:flex}.v-theme--light .a-file-dropzone .text{background-color:#d4d4d480}.v-theme--light .a-file-dropzone--bg{background-color:#d4d4d4}.v-theme--light .a-file-dropzone--possibility:not(.v-theme--light .a-file-dropzone--disabled){background-color:#e5edf1;outline:2px dashed #bacfd4}.v-theme--light .a-file-dropzone--over:not(.v-theme--light .a-file-dropzone--disabled){background-color:#dcedc8;outline:2px dashed #7cb342}.v-theme--dark .a-file-dropzone .text{background-color:#39393980}.v-theme--dark .a-file-dropzone--bg{background-color:#393939}.v-theme--dark .a-file-dropzone--possibility:not(.v-theme--dark .a-file-dropzone--disabled){background-color:#212531;outline:2px dashed #01579b}.v-theme--dark .a-file-dropzone--over:not(.v-theme--dark .a-file-dropzone--disabled){background-color:#283121;outline:2px dashed #333e28}.asset-image__meta-icons-absolute{position:absolute;top:163px;left:6px}.asset-image__meta-icons{display:flex}.asset-image__meta-icons img.img-svg{height:30px;padding:2px}.asset-image__meta-icons .asset-image__licence-badge{color:#fff;background-color:#00000080;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;margin:2px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.anzu-common-asset-image{position:relative}.anzu-common-asset-image__icon-wrapper{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.anzu-common-asset-image__icon-circle{background-color:#cccccc80;border-radius:100%}.asset-list-table__item--active{outline-offset:-1px;outline:1px solid #00f}.asset-list-tiles{flex-wrap:wrap;max-width:100%;padding:2px;display:flex}.asset-list-tiles__item{-webkit-user-select:none;user-select:none;flex-grow:2;min-width:200px;max-width:600px;min-height:260px;padding:10px;position:relative;overflow:hidden}.asset-list-tiles__item-card{border-radius:5px;overflow:hidden}.asset-list-tiles__item-card img.anzu-common-asset-image__img{object-fit:cover;width:100%;min-width:100%;height:200px;display:block}.asset-list-tiles__item-card:hover .asset-list-tiles__item-card-actions{display:block}.asset-list-tiles__item-card-actions{border-radius:4px;display:none;position:absolute;top:-2px;right:-5px;overflow:hidden}.asset-list-tiles__item-text,.asset-list-tiles__item-text .text-truncate{min-height:38px;max-height:38px;font-weight:500;line-height:30px}.asset-list-tiles__item--pointer{cursor:pointer}.asset-list-tiles--thumbnail{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));width:100%;display:grid}.asset-list-tiles--thumbnail .asset-list-tiles__item{min-width:unset;max-width:unset}.asset-list-tiles--thumbnail .asset-list-tiles__item img:not(.img-svg){object-fit:contain;padding-top:6px;padding-left:6px;padding-right:6px;background-color:#0000!important}.asset-list-tiles .asset-list-tiles__selected-triangle{z-index:1;position:absolute;top:10px;right:10px}.asset-list-tiles .asset-list-tiles__selected-triangle__bg{content:"";border-top:0 solid #0000;border-bottom:60px solid #0000;border-left:0 solid #0000;border-right:60px solid #608a32;width:0;height:0;position:absolute;top:0;right:0}.asset-list-tiles .asset-list-tiles__selected-triangle__icon{width:16px;height:16px;display:block;position:absolute;top:-3px;right:0}.v-theme--light .asset-list-tiles__item-card{background-color:#f9f9f9;border:1px solid #e8e9ea}.v-theme--light .asset-list-tiles__item-card:hover{box-shadow:0 0 3px 1px #959595}.v-theme--light .asset-list-tiles__item-card-actions{background-color:#fff}.v-theme--light .asset-list-tiles__item--selected .asset-list-tiles__item-card{border-color:#608a32}.v-theme--light .asset-list-tiles__item--active .asset-list-tiles__item-card{border-color:#00f}.v-theme--dark .asset-list-tiles__item-card{background-color:#1e1e1e;border:1px solid #2c2c2c}.v-theme--dark .asset-list-tiles__item-card:hover{box-shadow:0 0 3px 1px #3d3d3d}.v-theme--dark .asset-list-tiles__item-card-actions{background-color:#1a1a1a}.v-theme--dark .asset-list-tiles__item--selected .asset-list-tiles__item-card{border-color:#608a32}.v-theme--dark .asset-list-tiles__item--active .asset-list-tiles__item-card{border-color:#00f}.v-text-field.cursor-pointer[data-v-5a252715] .v-field,.v-text-field.cursor-pointer[data-v-5a252715] .v-field__input{cursor:pointer}.a-unsaved-sections[data-v-2a9ef6ae]{margin:8px 0;padding-left:20px}.a-unsaved-sections li[data-v-2a9ef6ae]{font-weight:500}.a-author-chip[data-v-82ddd04a]{max-width:100%}.a-author-chip[data-v-82ddd04a] .v-chip__content{min-width:0}.a-authors-append-item[data-v-34accd1d]{background-color:rgb(var(--v-theme-surface));position:sticky;bottom:0;transform:translateY(8px)}.a-dam-sources-authors[data-v-f1ab7809]{container-type:inline-size}.a-dam-sources-authors__fields[data-v-f1ab7809]{flex-direction:column;gap:8px;display:flex}.a-dam-sources-authors__sources[data-v-f1ab7809],.a-dam-sources-authors__authors[data-v-f1ab7809]{min-width:0}.a-dam-sources-authors__slash[data-v-f1ab7809]{display:none}@container (width>=560px){.a-dam-sources-authors__fields[data-v-f1ab7809]{flex-direction:row;align-items:flex-start}.a-dam-sources-authors__sources[data-v-f1ab7809]{flex:2 1 0}.a-dam-sources-authors__authors[data-v-f1ab7809]{flex:3 1 0}.a-dam-sources-authors__slash[data-v-f1ab7809]{margin-top:5px;display:inline-flex}}.a-dam-sources-authors-fields__field[data-v-001f7457]{flex-grow:1;min-width:0}.a-keywords-append-item[data-v-ee92ec88]{background-color:rgb(var(--v-theme-surface));position:sticky;bottom:0;transform:translateY(8px)}.a-selected-filters{background:#f5f5f5;border-radius:20px;align-items:center;gap:8px;max-width:100%;margin:0 4px 2px 0;padding:4px 4px 4px 12px;display:inline-flex}.a-selected-filters__label{white-space:nowrap}.a-selected-filters__chips{flex-wrap:wrap;gap:4px;display:flex}.a-selected-filters__chip{box-shadow:none;background:#fff}.a-selected-filters__chip .v-chip__content{max-width:40vw}.a-selected-filters__chip:hover .v-chip__close{opacity:.8}.a-selected-filters .v-chip__close{opacity:.3;transition:opacity .2s}.v-theme--dark .a-selected-filters{background:rgb(var(--v-theme-on-surface), .08)}.v-theme--dark .a-selected-filters .a-selected-filters__chip{background:rgb(var(--v-theme-on-surface), .16);color:rgb(var(--v-theme-on-surface))}.a-filter__container{width:100%}.a-filter__search{vertical-align:middle;min-width:100%;height:34px;display:inline-flex}@media (width>=600px){.a-filter__search{min-width:50%;margin-right:8px}}@media (width>=840px){.a-filter__search{min-width:40%}}@media (width>=1145px){.a-filter__search{min-width:30%}}.crop-preview{width:100%}.crop-preview img{max-width:100%;height:auto}[data-v-f4b74ecf] .v-img.disable-radius .v-img__img{border-radius:0}.label-container[data-v-f4b74ecf]{align-items:center;height:32px;display:flex}[data-v-0942d92c] .v-img.disable-radius .v-img__img{border-radius:0}.label-container[data-v-0942d92c]{align-items:center;height:32px;display:flex}.asset-list-tiles--thumbnail.a-sortable-widget__group{flex-wrap:wrap;gap:6px;display:flex}.asset-list-tiles--thumbnail.a-sortable-widget__group .asset-list-tiles__item{flex:260px;min-width:260px;max-width:400px}.asset-list-tiles--thumbnail.a-sortable-widget__group .asset-list-tiles__item img:not(.img-svg){padding:0}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-sortable-list-editor__rows{flex-direction:column;display:flex}.a-sortable-list-editor .a-le-view-body{padding:12px 16px}.a-sortable-list-editor .a-le-row--reorder .a-le-row-header{gap:8px;padding-left:12px;padding-right:8px}.a-sortable-list-editor .a-le-row--ghost{opacity:.35;background:var(--le-primary-state)}.a-sortable-list-editor .a-le-row--chosen{opacity:.5}.a-sortable-list-editor .a-le-row--drag{background:var(--le-surface);border:1px solid var(--le-border);border-radius:var(--le-radius);box-shadow:var(--le-elev-3);opacity:.96;pointer-events:none;max-width:420px}.a-sortable-list-editor .a-le-row--drag .a-le-actions,.a-sortable-list-editor .a-le-row--drag .a-le-status{display:none}.a-sortable-list-editor--header-floating .a-le-header{justify-content:flex-end;min-height:0;padding:6px 8px}.a-sortable-list-editor--embedded .a-le-card{box-shadow:none;background:0 0;border:none;border-radius:0}.a-sortable-list-editor--embedded .a-le-header{background:0 0;border:none;min-height:auto;padding:4px 0 6px}.a-sortable-list-editor--embedded .a-le-title-heading{color:var(--le-on-surface-medium,#000000b3);text-transform:uppercase;letter-spacing:.04em;font-size:13px;font-weight:500}.a-sortable-list-editor--embedded .a-le-row{background:var(--le-surface);border:1px solid var(--le-border);border-radius:6px}.a-sortable-list-editor--embedded .a-le-row-wrapper:not(:last-child){margin-bottom:4px}.a-sortable-list-editor--embedded .a-le-row-add{min-height:var(--le-row-min-height);border:1px dashed var(--le-border);color:var(--le-primary);background:0 0;border-radius:6px;width:100%;margin-top:4px;padding:0 16px}.a-sortable-list-editor--embedded .a-le-row-add:hover{background:var(--le-primary-state);border-style:solid}.a-sortable-list-editor--chips .a-sortable-list-editor__rows{flex-flow:wrap;flex:100%;gap:6px;display:flex}.a-sortable-list-editor--chips .a-le-row-header{gap:4px;min-height:28px;padding:2px 4px 2px 8px}.a-sortable-list-editor--chips .a-le-drag-handle{padding:0;font-size:16px}@container le-shell (width<=768px){.a-sortable-list-editor{--le-row-min-height:48px;--le-row-pad-y:10px}.a-sortable-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-sortable-list-editor .a-le-row .a-le-action--edit,.a-sortable-list-editor .a-le-row .a-le-action--delete,.a-sortable-list-editor .a-le-row .a-le-action--menu{opacity:1}}.image-widget-multiple-reorder{align-items:center;gap:16px;width:100%;min-height:100px;padding:4px 0;display:flex}.image-widget-multiple-reorder__thumb{border-radius:4px;flex:none;justify-content:center;align-items:center;width:200px;display:flex;overflow:hidden}.image-widget-multiple-reorder__thumb img{width:100%;height:auto;display:block}.image-widget-multiple-reorder__meta{flex:auto;min-width:0}.image-widget-multiple-reorder__title{color:rgb(var(--v-theme-on-surface));-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.95rem;font-weight:500;display:-webkit-box;overflow:hidden}.image-widget-multiple-reorder__source{color:rgb(var(--v-theme-on-surface)/70%);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:.82rem;overflow:hidden}@media (width<=600px){.image-widget-multiple-reorder{gap:8px;min-height:72px}.image-widget-multiple-reorder__thumb{width:80px}.image-widget-multiple-reorder__source{display:none}}.a-cropper{width:100%}.a-cropper cropper-crosshair{font-size:7px}.a-cropper cropper-selection[outlined]{box-shadow:inset 0 0 0 2px #3399ff1a,0 0 0 3px #3399ff1a}#app .v-layout--full-height{min-height:100dvh}.v-overlay-container .v-img__img--preload,#app .v-img__img--preload{filter:none}.v-overlay-container .v-overlay__content.v-autocomplete__content .v-list-item .v-list-item__prepend input[type=checkbox],#app .v-overlay__content.v-autocomplete__content .v-list-item .v-list-item__prepend input[type=checkbox]{pointer-events:none}.v-overlay-container .v-btn,#app .v-btn{letter-spacing:.8px;font-weight:500;font-stretch:100%}.v-overlay-container .v-text-field.v-text-field--pill .v-field__outline__start,#app .v-text-field.v-text-field--pill .v-field__outline__start{border-radius:9999px 0 0 9999px;flex:1}.v-overlay-container .v-text-field.v-text-field--pill .v-field__outline__end,#app .v-text-field.v-text-field--pill .v-field__outline__end{border-radius:0 9999px 9999px 0}.v-overlay-container .v-input--density-compact,#app .v-input--density-compact{--v-input-control-height:8px;--v-input-padding-top:5px}.v-overlay-container .v-input--density-compact .v-field--variant-outlined,.v-overlay-container .v-input--density-compact .v-field--single-line,#app .v-input--density-compact .v-field--variant-outlined,#app .v-input--density-compact .v-field--single-line{--v-field-padding-bottom:5px}.v-overlay-container .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-title,#app .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-title{min-height:18px;padding:12px}.v-overlay-container .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-text__wrapper,#app .v-expansion-panels.v-expansion-panels--compact .v-expansion-panel-text__wrapper{padding:12px}.v-overlay-container .v-dialog--fullscreen.overlay--sidebar .v-overlay__content,#app .v-dialog--fullscreen.overlay--sidebar .v-overlay__content{overflow:hidden!important}.v-overlay-container .v-label-opacity-disabled .v-label,#app .v-label-opacity-disabled .v-label{opacity:1}.a-chip-no-link.a-chip-no-link--custom-color .v-chip__underlay{background-color:#adadad!important}.a-required-mark:after{content:"*";color:red}.a-line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.word-break-all{word-break:break-all!important}.min-width-0{min-width:0!important}.a-datatable .v-data-table-column--last-fixed{z-index:4;border-left:none;border-right:none;position:sticky;left:auto!important;right:0!important}.a-datatable--dialog-sticky-fix{position:relative}.a-datatable--dialog-sticky-fix .v-table__wrapper{overflow-x:initial;overflow-y:initial}.v-theme--dark .a-datatable .v-data-table-column--last-fixed{background-color:#1a1a1a}.v-theme--light .a-datatable .v-data-table-column--last-fixed{background-color:#fff}.v-theme--light .a-datatable.v-data-table .v-table__wrapper>table tbody>tr:hover>td{background-color:#eee}.v-theme--dark .a-datatable.v-data-table .v-table__wrapper>table tbody>tr:hover>td{background-color:#505050}.a-datatable .a-datatable__row{cursor:pointer}.v-theme--light .a-datatable .a-datatable__row--selected{background-color:#d8e9e0}.v-theme--light .a-datatable .v-table__wrapper>table tbody>tr:hover>td{background-color:#eee}.v-theme--dark .a-datatable .a-datatable__row--selected{background-color:#4d5e55}.v-theme--dark .a-datatable .v-table__wrapper>table tbody>tr:hover>td{background-color:#505050}.subject-select__card{flex-direction:column;flex:100%;max-width:100%;max-height:100%;display:flex}.subject-select__toolbar{min-height:48px}.subject-select__second-bar{min-height:23px}.subject-select__main{flex:auto;display:flex;position:relative;overflow:hidden}.subject-select__main--sidebar-active .subject-select__sidebar{transform:translate(0%)}@media (width<=1144.98px){.subject-select__main--sidebar-active .subject-select__content{margin-left:0}}@media (width>=840px){.subject-select__main--sidebar-active .subject-select__content{margin-left:320px}}.subject-select__main--sidebar-right-active .subject-select__sidebar-right{transform:translate(0%)}@media (width<=1144.98px){.subject-select__main--sidebar-right-active .subject-select__content{margin-right:0}}@media (width>=840px){.subject-select__main--sidebar-right-active .subject-select__content{margin-right:300px}}.subject-select__sidebar{background-color:rgb(var(--v-theme-surface));height:100%;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-110%)}@media (width<=1144.98px){.subject-select__sidebar{z-index:2;width:100%}}@media (width>=840px){.subject-select__sidebar{z-index:0;width:320px}}.subject-select__sidebar .subject-select-filter,.subject-select__sidebar .subject-select-filter .v-form{flex-direction:column;width:100%;height:100%;display:flex}.subject-select__sidebar .subject-select-filter .subject-select-filter__content{flex:auto;overflow:hidden auto}.subject-select__sidebar .subject-select-filter .subject-select-filter__actions{flex:none;justify-content:center;align-items:center;min-height:40px;display:flex}.subject-select__sidebar-right{background-color:rgb(var(--v-theme-surface));height:100%;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;right:0;overflow:hidden auto;transform:translate(110%)}@media (width<=1144.98px){.subject-select__sidebar-right{z-index:2;width:100%}}@media (width>=840px){.subject-select__sidebar-right{z-index:0;width:300px}}.subject-select__content{width:100%;transition:all .2s cubic-bezier(.4,0,.2,1);overflow:auto}.subject-select__actions{flex:none;align-items:center;min-height:52px;padding:.5rem;display:flex}.subject-select__card--inline .subject-select__main{overflow:visible}.subject-select__card--inline .subject-select__content{flex:auto;min-width:0;overflow:visible}.subject-select__card--inline .subject-select__sidebar-right{flex-shrink:0;align-self:flex-start;width:0;height:auto;max-height:100dvh;position:sticky;top:0;overflow:hidden;transform:none}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__sidebar-right{width:300px;overflow-y:auto}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__content{margin-right:0}@media (width<=1144.98px){.subject-select__card--inline .subject-select__main--sidebar-right-active{flex-direction:column}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__sidebar-right{flex-shrink:1;align-self:stretch;width:100%;max-height:none;position:static}.subject-select__card--inline .subject-select__main--sidebar-right-active .subject-select__content{flex:none}}.a-image-widget__options{justify-content:space-between;align-items:center;display:flex}.a-image-widget--locked .v-img{opacity:.6}.a-image-widget__icon{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.a-image-widget__icon div{background-color:#cccccc80;border-radius:100%;justify-content:center;align-items:center;padding:20px;display:flex}.dam-image-detail{background-color:#f1f4f6;position:relative;min-height:100dvh!important;overflow:hidden!important}.dam-image-detail__wrapper{width:100%;height:100dvh}.dam-image-detail__wrapper .asset-image.asset-image--placeholder{width:100%!important;height:100%!important}@media (width<=1144.98px){.dam-image-detail__content{flex-direction:column;overflow:hidden;height:calc(100dvh - 48px)!important}}.dam-image-detail__sidebar{transition:all .2s cubic-bezier(.4,0,.2,1)}@media (width<=1144.98px){.dam-image-detail__sidebar{width:100%;display:flex;position:relative;overflow:hidden;height:calc(100dvh - 48px)!important}}@media (width>=840px){.dam-image-detail__sidebar{width:600px;position:absolute;top:0;right:0;transform:translate(110%)}}.dam-image-detail__left{transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}@media (width<=1144.98px){.dam-image-detail__left{flex:none;height:0;max-height:0}}@media (width>=840px){.dam-image-detail__left{height:calc(100dvh - 50px);max-height:calc(100dvh - 50px)}}.dam-image-detail__image{width:auto;max-height:calc(100dvh - 50px)}@media (width<=1144.98px){.dam-image-detail--sidebar-active .dam-image-detail__sidebar{height:calc(65dvh - 48px)!important}}@media (width>=840px){.dam-image-detail--sidebar-active .dam-image-detail__sidebar{display:flex;transform:translate(0%)}}@media (width<=1144.98px){.dam-image-detail--sidebar-active .dam-image-detail__left{height:35dvh;max-height:35dvh}}@media (width>=840px){.dam-image-detail--sidebar-active .dam-image-detail__left{padding-right:600px}}.v-theme--light .dam-image-detail{background-color:#f1f4f6}.v-theme--light .dam-image-detail__sidebar{background-color:#fff}.v-theme--dark .dam-image-detail{background-color:#000}.v-theme--dark .dam-image-detail__sidebar{background-color:#1a1a1a}.sidebar-info__tabs{flex:none;height:48px}.sidebar-info__content{overflow-y:auto}@media (width<=1144.98px){.sidebar-info__content{flex:auto;min-height:0}}@media (width>=840px){.sidebar-info__content{height:calc(100dvh - 144px);max-height:calc(100dvh - 144px)}}.sidebar-info__actions{flex:none;height:48px}@media (width>=840px){.sidebar-info--no-tabs .sidebar-info__content{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px)}}.asset-footer__selected{box-shadow:0 0 50px #000c}.asset-footer--hidden{display:none}.asset-footer--minimal{height:32px;min-height:32px;max-height:32px}.asset-footer--compact{height:160px;min-height:160px;max-height:160px}.asset-footer--full{width:100vw;height:100dvh;position:fixed;inset:0}.v-theme--light .asset-footer{background-color:#fff}.v-theme--dark .asset-footer{background-color:#1a1a1a}.asset-queue-editable{position:relative;min-height:100dvh!important}.asset-queue-editable__sidebar{width:400px;height:calc(100dvh - 49px);transition:all .2s cubic-bezier(.4,0,.2,1);position:absolute;top:0;right:0;transform:translate(110%)}.asset-queue-editable__left{height:calc(100dvh - 49px);transition:all .2s cubic-bezier(.4,0,.2,1)}.asset-queue-editable--sidebar-active .asset-queue-editable__sidebar{display:flex;transform:translate(0%)}.asset-queue-editable--sidebar-active .asset-queue-editable__left{margin-right:400px}@media (width<=1144.98px){.asset-queue-editable--sidebar-active .asset-queue-editable__sidebar{z-index:1;width:100%;overflow-y:auto}.asset-queue-editable--sidebar-active .asset-queue-editable__left{margin-right:0}}.v-theme--light .asset-queue-editable,.v-theme--light .asset-queue-editable__sidebar{background-color:#fff}.v-theme--dark .asset-queue-editable,.v-theme--dark .asset-queue-editable__sidebar{background-color:#1a1a1a}.asset-image{position:relative}.asset-image__icon-wrapper{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.asset-image__icon-circle{background-color:#cccccc80;border-radius:100%}.asset-image .asset-image--loading-bg .v-responsive__content{background-color:#ffffff80}.asset-image .asset-image__progress{flex-direction:column;justify-content:center;align-items:center;gap:0;display:flex;position:absolute;inset:0}.asset-image .asset-image__progress--animate-done{background-color:#ffffff80;animation:2s forwards animate-upload-done}.dam-upload-queue{margin-top:1px;overflow:auto hidden}.dam-upload-queue--simple .dam-upload-queue__item{min-width:170px;max-width:170px;min-height:110px;max-height:110px;padding:2px;position:relative;overflow:hidden}.dam-upload-queue--simple .dam-upload-queue__item-card{height:108px;padding:2px}.dam-upload-queue--list{overflow:hidden auto}.dam-upload-queue--list .dam-upload-queue__item{width:100%;min-width:auto;max-width:100%;min-height:auto;max-height:none}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-status{width:16px;height:16px;display:flex}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-remove{width:16px;height:16px;display:none}.dam-upload-queue--list .dam-upload-queue__item .dam-upload-queue__item-card{border:none}.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-status{display:none}.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-status.dam-upload-queue__item-status--permanent,.dam-upload-queue--list .dam-upload-queue__item:hover .dam-upload-queue__item-remove{display:flex}.dam-upload-queue--editable .dam-upload-queue__item .dam-upload-queue__item-card .asset-image{aspect-ratio:16/9}.dam-upload-queue__overlay{position:absolute;inset:0}@keyframes animate-upload-done{0%{opacity:1}to{opacity:0;display:none}}.v-theme--light .dam-upload-queue--simple .dam-upload-queue__item-card{background-color:#fff;border:1px solid #e8e9ea}.v-theme--light .dam-upload-queue__overlay{background-color:#ffffffb3}.v-theme--dark .dam-upload-queue--simple .dam-upload-queue__item-card{background-color:#1e1e1e;border:1px solid #2c2c2c}.v-theme--dark .dam-upload-queue__overlay{background-color:#000000b3}.anzu-data-footer{flex-wrap:wrap;justify-content:flex-end;align-items:center;margin-top:10px;padding:0 8px;font-size:.75rem;display:flex}.anzu-data-footer>div.current-page{-webkit-user-select:none;user-select:none;text-align:center;justify-content:center;align-items:center;min-width:40px;padding-left:10px;padding-right:10px;display:flex}.anzu-data-footer__page-limit{white-space:nowrap;flex:0 0 0;justify-content:flex-end;align-items:center;margin-right:14px;display:flex}.anzu-data-footer__pagination{text-align:center;margin:0 32px 0 24px;display:block}pre[data-v-f259e3c6]{overflow:auto}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-list-editor--chips .a-le-row-header{gap:4px;min-height:28px;padding:2px 4px 2px 12px}@container le-shell (width<=768px){.a-list-editor{--le-row-min-height:48px;--le-row-pad-y:10px}.a-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-list-editor .a-le-row .a-le-action--edit,.a-list-editor .a-le-row .a-le-action--delete,.a-list-editor .a-le-row .a-le-action--menu{opacity:1}}.le-change-parent__list[data-v-456ea429]{max-height:340px;overflow-y:auto}.a-list-editor,.a-sortable-list-editor,.a-nested-list-editor{--le-border:#0000001f;--le-surface:rgb(var(--v-theme-surface,255, 255, 255));--le-surface-container:#00000006;--le-primary:rgb(var(--v-theme-primary,63, 106, 216));--le-primary-container:rgba(var(--v-theme-primary,63, 106, 216), .12);--le-primary-state:rgba(var(--v-theme-primary,63, 106, 216), .04);--le-primary-state-press:rgba(var(--v-theme-primary,63, 106, 216), .12);--le-success-container:#4caf502e;--le-success-fg:#165634;--le-warning-container:#fb8c002e;--le-warning-fg:#914000;--le-warning:rgb(var(--v-theme-warning,251, 140, 0));--le-error-container:rgba(var(--v-theme-error,217, 37, 80), .18);--le-error-fg:rgb(var(--v-theme-error,217, 37, 80));--le-on-surface:rgb(var(--v-theme-on-surface,51, 51, 51));--le-on-surface-variant:rgb(var(--v-theme-on-surface-variant,102, 102, 102));--le-radius:8px;--le-radius-pill:9999px;--le-elev-1:0 1px 2px #0000001f, 0 1px 3px 1px #0000000f;--le-elev-3:0 1px 3px #00000029, 0 4px 8px 3px #0000001a;--le-row-min-height:48px;--le-row-pad-y:6px;--le-row-font:13px;--le-indent:24px;position:relative;container:le-shell/inline-size}.v-theme--dark .a-list-editor,.v-theme--dark .a-sortable-list-editor,.v-theme--dark .a-nested-list-editor{--le-border:#ffffff1f;--le-surface-container:#ffffff0a;--le-success-fg:#81c784;--le-warning-fg:#ffb74d;--le-error-fg:#ff8a9f}.a-list-editor--disabled,.a-list-editor--readonly,.a-sortable-list-editor--disabled,.a-sortable-list-editor--readonly,.a-nested-list-editor--disabled,.a-nested-list-editor--readonly{opacity:.85}.a-list-editor--disabled,.a-sortable-list-editor--disabled,.a-nested-list-editor--disabled{pointer-events:none}.a-le-card{background:var(--le-surface);border:1px solid var(--le-border);border-radius:var(--le-radius);overflow:hidden}.a-le-header{border-bottom:1px solid var(--le-border);background:var(--le-surface);flex-wrap:wrap;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;min-height:60px;padding:8px 16px;display:flex}.a-le-title-heading{letter-spacing:.009em;color:var(--le-on-surface);margin:0;font-size:1rem;font-weight:500;line-height:1.5}.a-le-header-actions{flex-wrap:wrap;flex-shrink:1;align-items:center;gap:8px;min-width:0;margin-left:auto;display:inline-flex}.a-le-state{justify-content:center;align-items:center;padding:32px 16px;display:flex}.a-le-state--empty{padding:12px 16px}.a-le-state--error{padding:16px}.a-le-state--error .v-alert{width:100%}.a-le-empty{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:8px;display:flex}.a-le-empty-title{color:var(--le-on-surface);margin:0;font-size:1rem;font-weight:500}.a-le-row{background:var(--le-surface);border-bottom:1px solid var(--le-border);flex-direction:column;transition:background-color .15s cubic-bezier(.4,0,.2,1);display:flex;position:relative}.a-le-row--clickable .a-le-row-header{cursor:pointer}.a-le-row--editing>.a-le-row-header,.a-le-row--expanded>.a-le-row-header{background:var(--le-primary-container)}.a-le-row--editing:before,.a-le-row--expanded:before{content:"";background:var(--le-primary);z-index:1;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--unsaved{background:var(--le-warning-container)}.a-le-row--unsaved:before{content:"";background:var(--le-warning);z-index:2;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--unsaved>.a-le-row-header{background:var(--le-warning-container)}.a-le-row--unsaved.a-le-row--editing>.a-le-row-header>.a-le-row-main,.a-le-row--unsaved.a-le-row--editing>.a-le-row-header>.a-le-row-main *,.a-le-row--unsaved.a-le-row--expanded>.a-le-row-header>.a-le-row-main,.a-le-row--unsaved.a-le-row--expanded>.a-le-row-header>.a-le-row-main *{color:var(--le-warning)}.a-le-row--editing>.a-le-row-header>.a-le-row-main,.a-le-row--editing>.a-le-row-header>.a-le-row-main *,.a-le-row--expanded>.a-le-row-header>.a-le-row-main,.a-le-row--expanded>.a-le-row-header>.a-le-row-main *{color:var(--le-primary);font-weight:700}.a-le-row--grabbed{outline:3px solid var(--le-primary);outline-offset:-3px;background:var(--le-primary-state-press);box-shadow:0 0 0 6px var(--le-primary-state), 0 4px 12px #00000014;z-index:4}.a-le-row--grabbed:before{background:var(--le-primary)!important}.a-le-row--validation-invalid:after,.a-le-row--validation-warning:after{content:"";z-index:3;width:4px;position:absolute;top:0;bottom:0;left:0}.a-le-row--validation-invalid:after{background:var(--le-error-fg)}.a-le-row--validation-warning:after{background:var(--le-warning)}.a-le-row--validation-invalid,.a-le-row--validation-invalid>.a-le-row-header{background:var(--le-error-container)}.a-le-row:focus-visible,.a-le-row-wrapper:focus-visible{outline:2px solid var(--le-primary);outline-offset:-2px}.a-le-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.a-le-row-header{padding:var(--le-row-pad-y) 12px var(--le-row-pad-y) 16px;min-height:var(--le-row-min-height);flex-shrink:0;align-items:center;gap:10px;transition:background-color .15s;display:flex;position:relative}.a-le-row-main{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.a-le-title{font-size:var(--le-row-font);letter-spacing:.018em;color:var(--le-on-surface);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-weight:400;line-height:1.43;overflow:hidden}.a-le-row-body{padding:12px 16px;transition:padding-left .2s}.a-le-form{background:var(--le-surface);border-radius:var(--le-radius);border:1px solid #0000000f;padding:16px 16px 8px}.a-le-row-footer{justify-content:flex-end;align-items:center;gap:8px;padding:4px 16px 16px;display:flex}.a-le-row-footer-spacer{flex:auto}.a-le-unsaved-label{color:var(--le-warning);white-space:nowrap;letter-spacing:.02em;flex-shrink:0;align-items:center;gap:3px;padding:2px 4px;font-size:11px;font-weight:500;display:inline-flex}.a-le-unsaved-label--dot{gap:0;padding:0}.a-le-unsaved-count{color:var(--le-warning);font-size:.85rem;font-weight:500}.a-le-status{flex-shrink:0;align-items:center;gap:8px;margin-left:auto;display:inline-flex}.a-le-status-badge{min-width:56px;font:500 11px/1 var(--v-font-body,inherit);letter-spacing:.02em;background:var(--le-success-container);color:var(--le-success-fg);border-radius:var(--le-radius-pill);white-space:nowrap;flex-shrink:0;justify-content:center;align-items:center;gap:4px;padding:4px 10px;display:inline-flex}.a-le-status-badge--warning{background:var(--le-warning-container);color:var(--le-warning-fg)}.a-le-status-badge--error{background:var(--le-error-container);color:var(--le-error-fg)}.a-le-actions{flex-shrink:0;align-items:center;gap:2px;margin-left:4px;display:inline-flex}.a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):hover .a-le-row-header{background:var(--le-primary-state)}.a-list-editor .a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):active .a-le-row-header,.a-sortable-list-editor .a-le-row--clickable:not(.a-le-row--editing,.a-le-row--expanded):active .a-le-row-header{background:var(--le-primary-state-press)}.a-le-row-add{width:100%;color:var(--le-primary);cursor:pointer;border:none;border-top:1px solid var(--le-border);background:var(--le-surface-container);letter-spacing:.02em;text-align:left;align-items:center;gap:8px;padding:10px 16px;font-family:inherit;font-size:13px;font-weight:500;line-height:1;transition:background-color .15s;display:flex}.a-le-row-add:hover{background:var(--le-primary-container)}.a-list-editor .a-le-row-add:focus-visible,.a-sortable-list-editor .a-le-row-add:focus-visible{outline:2px solid var(--le-primary);outline-offset:-2px}.a-le-drag-handle{cursor:grab;flex-shrink:0;padding:4px 0}.a-le-drag-handle:active{cursor:grabbing}.a-le-toolbar-status{color:var(--le-on-surface);flex:0 auto;align-items:center;gap:4px;min-width:0;margin-right:4px;font-size:.85rem;font-weight:500;display:inline-flex}.a-le-toolbar-status span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.a-le-toolbar-status--pending{color:var(--le-warning)}.a-le-row--two-rows:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-le-row--two-rows .a-le-row-main{grid-area:title;min-width:0}.a-le-row--two-rows .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-le-row--two-rows .a-le-status{grid-area:status}.a-le-row--two-rows .a-le-actions{grid-area:actions;margin-left:0}@media (width<=600px){.a-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header,.a-sortable-list-editor--two-rows-mobile .a-le-row:not(.a-le-row--editing,.a-le-row--expanded) .a-le-row-header{grid-template-columns:1fr auto;grid-template-areas:"title title""status actions";align-items:center;gap:4px 8px;min-height:auto;padding:10px 16px;display:grid}.a-list-editor--two-rows-mobile .a-le-row-main,.a-sortable-list-editor--two-rows-mobile .a-le-row-main{grid-area:title;min-width:0}.a-list-editor--two-rows-mobile .a-le-row-main .a-le-title,.a-sortable-list-editor--two-rows-mobile .a-le-row-main .a-le-title{white-space:normal;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:500;line-height:1.35;display:-webkit-box;overflow:hidden}.a-list-editor--two-rows-mobile .a-le-status,.a-sortable-list-editor--two-rows-mobile .a-le-status{grid-area:status}.a-list-editor--two-rows-mobile .a-le-actions,.a-sortable-list-editor--two-rows-mobile .a-le-actions{grid-area:actions;margin-left:0}}.a-le-action--edit,.a-le-action--delete,.a-le-action--menu,.a-le-action--up,.a-le-action--down,.a-le-action--add-child{opacity:0;transition:opacity .15s}.a-le-row:hover .a-le-action--edit,.a-le-row:hover .a-le-action--delete,.a-le-row:hover .a-le-action--menu,.a-le-row:hover .a-le-action--up,.a-le-row:hover .a-le-action--down,.a-le-row:hover .a-le-action--add-child,.a-le-row:focus-within .a-le-action--edit,.a-le-row:focus-within .a-le-action--delete,.a-le-row:focus-within .a-le-action--menu,.a-le-row:focus-within .a-le-action--up,.a-le-row:focus-within .a-le-action--down,.a-le-row:focus-within .a-le-action--add-child,.a-list-editor--touch .a-le-action--edit,.a-list-editor--touch .a-le-action--delete,.a-list-editor--touch .a-le-action--menu,.a-list-editor--touch .a-le-action--up,.a-list-editor--touch .a-le-action--down,.a-list-editor--touch .a-le-action--add-child,.a-sortable-list-editor--touch .a-le-action--edit,.a-sortable-list-editor--touch .a-le-action--delete,.a-sortable-list-editor--touch .a-le-action--menu,.a-sortable-list-editor--touch .a-le-action--up,.a-sortable-list-editor--touch .a-le-action--down,.a-sortable-list-editor--touch .a-le-action--add-child,.a-nested-list-editor--touch .a-le-action--edit,.a-nested-list-editor--touch .a-le-action--delete,.a-nested-list-editor--touch .a-le-action--menu,.a-nested-list-editor--touch .a-le-action--up,.a-nested-list-editor--touch .a-le-action--down,.a-nested-list-editor--touch .a-le-action--add-child,.a-le-row--editing .a-le-action--edit,.a-le-row--editing .a-le-action--delete,.a-le-row--editing .a-le-action--menu,.a-le-row--expanded .a-le-action--edit,.a-le-row--expanded .a-le-action--delete,.a-le-row--expanded .a-le-action--menu{opacity:1}.a-le-row:hover .a-le-action--up.v-btn--disabled,.a-le-row:hover .a-le-action--down.v-btn--disabled,.a-le-row:focus-within .a-le-action--up.v-btn--disabled,.a-le-row:focus-within .a-le-action--down.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--up.v-btn--disabled,.a-sortable-list-editor--touch .a-le-action--down.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--up.v-btn--disabled,.a-nested-list-editor--touch .a-le-action--down.v-btn--disabled{opacity:.3}@container le-shell (width>=769px){.a-le-row--editing .a-le-row-body,.a-le-row--expanded .a-le-row-body,.a-le-row--editing .a-le-row-footer,.a-le-row--expanded .a-le-row-footer{border-left:2px solid rgba(var(--v-theme-primary,63, 106, 216), .28);background:linear-gradient(to right, rgba(var(--v-theme-primary,63, 106, 216), .07), rgba(var(--v-theme-primary,63, 106, 216), .02) 50%, transparent 85%)}.a-le-row--unsaved.a-le-row--editing .a-le-row-body,.a-le-row--unsaved.a-le-row--expanded .a-le-row-body,.a-le-row--unsaved.a-le-row--editing .a-le-row-footer,.a-le-row--unsaved.a-le-row--expanded .a-le-row-footer{background:linear-gradient(90deg,#fb8c0012,#fb8c0005 50%,#0000 85%);border-left-color:#fb8c0059}}.a-list-editor--chips .a-le-card,.a-sortable-list-editor--chips .a-le-card{border-radius:var(--le-radius);box-shadow:none;flex-wrap:wrap;gap:6px;padding:8px;display:flex}.a-list-editor--chips .a-le-header,.a-sortable-list-editor--chips .a-le-header{border-bottom:none;flex:100%;min-height:auto;padding:4px 8px 8px}.a-list-editor--chips .a-le-row-wrapper,.a-sortable-list-editor--chips .a-le-row-wrapper{flex:none;min-width:0;max-width:100%;display:flex}.a-list-editor--chips .a-le-row,.a-sortable-list-editor--chips .a-le-row{background:var(--le-primary-container);border-radius:var(--le-radius-pill);border-bottom:none;flex:none;max-width:100%}.a-list-editor--chips .a-le-row--unsaved,.a-sortable-list-editor--chips .a-le-row--unsaved{background:var(--le-warning-container)}.a-list-editor--chips .a-le-row--unsaved:before,.a-sortable-list-editor--chips .a-le-row--unsaved:before{display:none}.a-list-editor--chips .a-le-row--unsaved .a-le-row-header,.a-sortable-list-editor--chips .a-le-row--unsaved .a-le-row-header{background:0 0}.a-list-editor--chips .a-le-row-main,.a-sortable-list-editor--chips .a-le-row-main{gap:6px}.a-list-editor--chips .a-le-title,.a-sortable-list-editor--chips .a-le-title{color:var(--le-primary);font-size:.82rem;font-weight:500}.a-list-editor--chips .a-le-action--chip-close,.a-sortable-list-editor--chips .a-le-action--chip-close{opacity:.7;transition:opacity .15s}.a-list-editor--chips .a-le-action--chip-close:hover,.a-sortable-list-editor--chips .a-le-action--chip-close:hover{opacity:1}.a-list-editor--chips .a-le-row-add,.a-sortable-list-editor--chips .a-le-row-add{border-top:none;border:1px dashed var(--le-border);border-radius:var(--le-radius-pill);background:0 0;flex:none;width:auto;padding:4px 12px;font-size:.82rem}.a-list-editor--chips .a-le-row-add:hover,.a-sortable-list-editor--chips .a-le-row-add:hover{background:var(--le-primary-state)}.a-nested-list-editor .a-le-row-header{padding:var(--le-row-pad-y) 12px var(--le-row-pad-y) calc(16px + var(--nested-depth,0) * var(--le-indent))}.a-nested-list-editor__rows{flex-direction:column;display:flex;position:relative}.a-nested-list-editor__group{flex-direction:column;display:flex}.a-nested-list-editor .a-le-toolbar-status{font:500 13px/1 var(--v-font-body,inherit)}.a-le-row-wrapper{flex-direction:column;display:flex}.a-nested-list-editor .a-le-row:not(.a-le-row--child) .a-le-title{font-weight:600}.a-nested-list-editor .a-le-row--reorder .a-le-row-header{padding-left:calc(12px + var(--nested-depth,0) * var(--le-indent));gap:8px;padding-right:8px}.a-le-row--editing .a-nested-list-editor__tree-toggle,.a-le-row--expanded .a-nested-list-editor__tree-toggle{color:var(--le-primary)}.a-nested-list-editor__children{position:relative}.a-nested-list-editor__tree-toggle{cursor:pointer;pointer-events:auto;color:#0000008a;z-index:2;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;transition:background .15s,color .15s;display:inline-flex}.a-nested-list-editor__tree-toggle:hover{color:var(--le-on-surface);background:#0000000d}.a-nested-list-editor__tree-toggle:focus-visible{background:#00000014;outline:none}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle{color:#ffffffb3}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle:hover{background:#ffffff14}:where(.v-theme--dark) .a-nested-list-editor__tree-toggle:focus-visible{background:#ffffff1f}.a-nested-list-editor__tree-toggle--spacer,.a-nested-list-editor__tree-toggle--empty{visibility:hidden;pointer-events:none;background:0 0;width:24px;height:24px}.a-nested-list-editor__tree-toggle-caret{border:4px solid #0000;border-left:5px solid;border-right:0;width:0;height:0;transition:transform .15s cubic-bezier(.4,0,.2,1);transform:translate(1px)}.a-nested-list-editor__tree-toggle--open .a-nested-list-editor__tree-toggle-caret{transform:translateY(1px)rotate(90deg)}.a-nested-list-editor .a-le-row-wrapper.a-le-row--chosen,.a-nested-list-editor .a-le-row-wrapper.a-le-row-wrapper--drop-disabled{opacity:.4!important;pointer-events:none!important;display:flex!important}.a-nested-list-editor .a-le-row--ghost,.a-nested-list-editor .a-le-row-wrapper.a-le-row--drag{display:none!important}.a-nested-list-editor__drop-line{background:var(--le-primary);pointer-events:none;z-index:4;border-radius:1px;height:2px;margin-top:-1px;position:absolute}.a-nested-list-editor__drop-line-dot{background:var(--le-primary);border-radius:50%;width:8px;height:8px;position:absolute;top:50%;left:-4px;transform:translateY(-50%)}.a-nested-list-editor__drop-connector{background:var(--le-primary);opacity:.5;pointer-events:none;z-index:3;width:2px;margin-left:-1px;position:absolute}.a-nested-list-editor__rows--dragging .a-le-row-add{opacity:.4}.a-nested-list-editor__drag-count{font:500 11px/1 var(--v-font-body,inherit);letter-spacing:.02em;color:var(--le-primary);background:var(--le-primary-container);border-radius:var(--le-radius-pill);flex-shrink:0;align-items:center;gap:4px;margin-left:8px;padding:2px 8px;display:none}.a-le-row--drag .a-nested-list-editor__drag-count{display:inline-flex}@container le-shell (width>=769px){.a-nested-list-editor .a-le-row--editing .a-le-row-body,.a-nested-list-editor .a-le-row--expanded .a-le-row-body,.a-nested-list-editor .a-le-row--editing .a-le-row-footer,.a-nested-list-editor .a-le-row--expanded .a-le-row-footer{padding-left:calc(50px + var(--nested-depth,0) * var(--le-indent));padding-right:16px}}@container le-shell (width<=768px){.a-nested-list-editor{--le-indent:18px;--le-row-min-height:48px;--le-row-pad-y:10px}.a-nested-list-editor .a-le-row:not(.a-le-row--editing) .a-le-status{display:none}.a-nested-list-editor .a-le-row .a-le-action--edit,.a-nested-list-editor .a-le-row .a-le-action--delete,.a-nested-list-editor .a-le-row .a-le-action--menu,.a-nested-list-editor .a-le-row .a-le-action--up,.a-nested-list-editor .a-le-row .a-le-action--down,.a-nested-list-editor .a-le-row .a-le-action--add-child{opacity:1}}.a-live-listing-pill{top:calc(var(--v-layout-top,0px) + .25rem);z-index:3;justify-content:center;height:0;display:flex;position:sticky;overflow:visible}.a-live-listing-pill__item{margin-top:.25rem}.v-card:has(.a-live-listing-pill){overflow:clip}.a-datatable-side-panel{align-items:flex-start;gap:1rem;min-width:0;display:flex}.a-datatable-side-panel__list{flex:auto;min-width:0}.a-datatable-side-panel__panel{top:var(--v-layout-top,0);height:calc(100dvh - var(--v-layout-top,0px) - var(--v-layout-bottom,0px));border-left:thin solid rgb(var(--v-border-color), var(--v-border-opacity));flex-direction:column;flex:none;display:flex;position:sticky}.a-datatable-side-panel__header{border-bottom:thin solid rgb(var(--v-border-color), var(--v-border-opacity));flex:none;align-items:flex-start;gap:.5rem;padding:.75rem .5rem .75rem 1rem;display:flex}.a-datatable-side-panel__header-content{flex:auto;min-width:0}.a-datatable-side-panel__close{flex:none}.a-datatable-side-panel__body{flex:auto;min-height:0;padding:1rem;overflow-y:auto}.v-card:has(.a-datatable-side-panel__panel){overflow:clip}}@layer vuetify-core.reset{*{margin:0;padding:0}a:active,a:hover{outline-width:0}code,kbd,pre,samp{font-family:monospace}pre{font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}textarea{resize:vertical}button,input,select,textarea{background-color:#0000;border-style:none}select{appearance:none}legend{white-space:normal;max-width:100%;display:table}}
2
2
  /*$vite$:1*/
@@ -2,7 +2,7 @@ import e from "./AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_tr
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  // src/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-f2b079b5"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-34accd1d"]]);
6
6
  export { n as default };
7
7
 
8
8
  //# sourceMappingURL=AuthorRemoteAutocompleteWithCached.js.map
@@ -74,7 +74,7 @@ var M = { class: "d-flex" }, N = {
74
74
  return F.modelValue;
75
75
  },
76
76
  set(e) {
77
- I("update:modelValue", [...e]);
77
+ I("update:modelValue", r(e) ? [...e] : e);
78
78
  }
79
79
  }), B = C(""), V = C(!1), H = C(/* @__PURE__ */ new Map()), { t: U } = me(), W = f(() => !!F.required), { requiredIf: he } = e(), ge = { modelValueComputed: { required: he(W) } }, _e = A(ge, { modelValueComputed: z }, { $scope: F.validationScope }), { fetchItemsMinimal: ve } = ne(F.extSystem, L), { authorCreateAcl: ye, sourceCreateAcl: be, damClient: xe, endPointAuthor: Se } = c(L), G = s(() => (F.source ? be : ye) ?? void 0), { filterData: K, filterConfig: Ce } = o();
80
80
  S(ie, Ce), S(ae, K), fe(() => F.source, (e) => {
@@ -1 +1 @@
1
- {"version":3,"file":"AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_createBlock","ARow","_withCtx","_renderList","AuthorRemoteAutocompleteCachedAuthorChip","AFormRemoteAutocompleteWithCached","_mergeProps","_unref","_withKeys","_component_VListItem","_withModifiers","_createVNode","_component_VCheckboxBtn","_withDirectives","AuthorCreateButton","_vShow","_toDisplayString","AuthorRemoteAutocompleteCachedAuthorChipConflicts","AFormRemoteAutocompleteWithCached_default","AuthorRemoteAutocompleteCachedAuthorChip_default","AuthorRemoteAutocompleteCachedAuthorChipConflicts_default","AuthorCreateButton_default","ARow_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","AuthorRemoteAutocompleteWithCached_vue_vue_type_script_setup_true_lang_default","\"counterpart\"","\"counterpartModifiers\"","__emit","props","__props","emit","damConfigName","useDamConfigName","counterpart","useModel","modelValueComputed","computed","newValue","search","ref","loadingLocal","fetchedItemsMinimal","useI18n","requiredComputed","useValidate","rules","requiredIf","v$","useAuthorSelectActions","useCommonAdminCoreDamOptions","createAllowed","useAclAllowed","sourceCreateAcl","authorCreateAcl","useAuthorInnerFilter","provide","FilterInnerConfigKey","filterConfig","FilterInnerDataKey","filterData","watch","source","offeredConflicts","isArray","id","addAuthor","addNewAuthorText","searchChange","removeLastComma","useDamCachedAuthors","useCachedOfName","useDamCachedAuthorsForRemoteAutocomplete","withNew","list","authors","author","ids","index","useDamAuthorFieldRouting","onCreated","own","other","routeToFields","fetchAuthorListByIds","damClient","endPointAuthor","item","addManualToCachedAuthors","sourcesEmptyAttrs","t","itemSlotIsSelected","authorCreateButton","value","onEnterKeyup","onCommaKeyup","showAdd","_component_ABtnSecondary","resolveComponent","openBlock","createElementBlock","Fragment","createElementVNode","createBlock","withCtx","renderList","mergeProps","_cache","$event","unref","fetchItemsMinimal","withKeys","itemSlotProps","itemSlotItem","VListItem","withModifiers","createSlots","createVNode","VCheckboxBtn","createCommentVNode","chipSlotProps","chipSlotItem","withDirectives","vShow","toDisplayString","authorId"],"sources":["../../../../../src/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DocId, IntegerId } from '@/shared/types/common'\nimport type { ValidationScope } from '@/shared/types/Validation'\nimport { computed, provide, ref, watch } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport useVuelidate from '@vuelidate/core'\nimport {\n useDamCachedAuthors,\n useDamCachedAuthorsForRemoteAutocomplete,\n} from '@/domains/dam/author/composables/cachedAuthors'\nimport type { DamAuthor } from '@/domains/dam/author/types/DamAuthor'\nimport { isArray } from '@/shared/utils/common'\nimport AFormRemoteAutocompleteWithCached from '@/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue'\nimport AuthorRemoteAutocompleteCachedAuthorChip from '@/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.vue'\nimport AuthorRemoteAutocompleteCachedAuthorChipConflicts from '@/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChipConflicts.vue'\nimport { useAuthorSelectActions } from '@/domains/dam/author/composables/authorActions'\nimport AuthorCreateButton from '@/domains/dam/author/components/AuthorCreateButton.vue'\nimport ARow from '@/domains/ui/components/ARow.vue'\nimport { FilterInnerConfigKey, FilterInnerDataKey } from '@/domains/filters/utils/filterInjectionKeys'\nimport { useAuthorInnerFilter } from '@/domains/dam/author/filter/AuthorFilter'\nimport { useAclAllowed } from '@/domains/auth/composables/aclAllowed'\nimport { useCommonAdminCoreDamOptions } from '@/domains/dam/composables/commonAdminCoreDamOptions'\nimport type { DamFieldsDisabledAs } from '@/domains/dam/uploadQueue/components/uploadQueueBindings'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\nimport { fetchAuthorListByIds } from '@/domains/dam/author/api/authorApi'\nimport { useDamAuthorFieldRouting } from '@/domains/dam/author/composables/authorFieldRouting'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DocId | null | DocId[] | any\n extSystem: IntegerId\n queueId?: string | undefined\n label?: string | undefined\n required?: boolean | null\n disabled?: boolean | undefined\n multiple?: boolean\n /**\n * The field kind: `true` for sources, `false` for authors that are not sources.\n * Undefined (sources off) offers every author.\n */\n source?: boolean\n clearable?: boolean\n authorConflicts?: DocId[]\n dataCy?: string\n validationScope?: ValidationScope\n /** How a disabled field looks: author chips (current library behaviour), or the input and its \"+\" disabled. */\n disabledAs?: DamFieldsDisabledAs\n /** DAM configuration to use. Defaults to the parent component's, else `default`. */\n configName?: string\n }>(),\n {\n label: undefined,\n queueId: undefined,\n required: null,\n disabled: undefined,\n multiple: false,\n source: undefined,\n clearable: false,\n authorConflicts: undefined,\n dataCy: undefined,\n validationScope: undefined,\n disabledAs: 'chips',\n configName: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'update:modelValue', data: DocId | null | DocId[]): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\n// The field of the other kind. An author created here that is of that kind goes there.\nconst counterpart = defineModel<DocId[] | undefined>('counterpart', { default: undefined })\n\nconst modelValueComputed = computed({\n get() {\n return props.modelValue\n },\n set(newValue) {\n emit('update:modelValue', [...newValue])\n },\n})\n\nconst search = ref<string>('')\nconst loadingLocal = ref(false)\nconst fetchedItemsMinimal = ref<Map<IntegerId | DocId, any>>(new Map())\n\nconst { t } = useI18n()\n\nconst requiredComputed = computed(() => !!props.required)\n\nconst { requiredIf } = useValidate()\n\nconst rules = {\n modelValueComputed: {\n required: requiredIf(requiredComputed),\n },\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst v$ = useVuelidate(rules, { modelValueComputed }, { $scope: props.validationScope })\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { fetchItemsMinimal } = useAuthorSelectActions(props.extSystem, damConfigName)\n\nconst { authorCreateAcl, sourceCreateAcl, damClient, endPointAuthor } = useCommonAdminCoreDamOptions(damConfigName)\nconst createAllowed = useAclAllowed(() => (props.source ? sourceCreateAcl : authorCreateAcl) ?? undefined)\n\nconst { filterData, filterConfig } = useAuthorInnerFilter()\nprovide(FilterInnerConfigKey, filterConfig)\nprovide(FilterInnerDataKey, filterData)\n\nwatch(\n () => props.source,\n (source) => {\n filterData.source = source ?? null\n },\n { immediate: true }\n)\n\n// Authors the input already has are not offered again.\nconst offeredConflicts = computed(() =>\n (props.authorConflicts ?? []).filter((id) =>\n isArray(modelValueComputed.value) ? !modelValueComputed.value.includes(id) : modelValueComputed.value !== id\n )\n)\n\nconst addAuthor = async (id: null | DocId | undefined) => {\n if (!id) return\n if (!modelValueComputed.value.includes(id)) {\n modelValueComputed.value = [...modelValueComputed.value, id]\n }\n}\n\nconst addNewAuthorText = ref('')\n\nconst searchChange = (newValue: string) => {\n if (newValue.length > 0) addNewAuthorText.value = removeLastComma(newValue)\n}\n\nconst { addManualToCachedAuthors } = useDamCachedAuthors(damConfigName)\n// The inner input reads this cache only once.\nconst useCachedOfName = () => useDamCachedAuthorsForRemoteAutocomplete(damConfigName)\n\nconst withNew = (list: DocId[], authors: DamAuthor[]) => [\n ...list,\n ...authors.map((author) => author.id).filter((id, index, ids) => !list.includes(id) && ids.indexOf(id) === index),\n]\n\nconst { routeToFields } = useDamAuthorFieldRouting()\n// A merged author may resolve to several current authors. Each field takes those of its kind in one write:\n// written one by one, each write started from the list before the previous one reached the parent.\nconst onCreated = async (author: DamAuthor) => {\n const own: DamAuthor[] = []\n const other: DamAuthor[] = []\n await routeToFields(\n author,\n props.source,\n (ids) => fetchAuthorListByIds(damClient, endPointAuthor, props.extSystem, ids),\n {\n own: (item) => own.push(item),\n other: (item) => other.push(item),\n }\n )\n own.forEach((item) => addManualToCachedAuthors(item))\n other.forEach((item) => addManualToCachedAuthors(item))\n if (own.length + other.length > 0) search.value = ''\n if (own.length > 0) {\n if (isArray(modelValueComputed.value)) modelValueComputed.value = withNew(modelValueComputed.value as DocId[], own)\n else modelValueComputed.value = own.at(-1)!.id\n }\n if (other.length > 0 && counterpart.value) counterpart.value = withNew(counterpart.value, other)\n}\n\nconst sourcesEmptyAttrs = computed(() =>\n props.source && !loadingLocal.value ? { 'no-data-text': t('common.damImage.asset.model.sourcesEmpty') } : {}\n)\n\nconst itemSlotIsSelected = (item: DocId) => {\n if (isArray(modelValueComputed.value)) {\n return modelValueComputed.value.includes(item)\n } else if (modelValueComputed.value) {\n return modelValueComputed.value === item\n }\n return false\n}\n\nconst authorCreateButton = ref<InstanceType<typeof AuthorCreateButton> | null>(null)\n\nconst removeLastComma = (value: string) => {\n if (value.endsWith(',')) return value.slice(0, -1)\n return value\n}\n\nconst onEnterKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n authorCreateButton.value?.open(value)\n}\n\nconst onCommaKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n authorCreateButton.value?.open(value)\n}\n\nconst showAdd = computed(() => {\n if (!createAllowed.value) return false\n if (loadingLocal.value) return false\n if (search.value.length < 2 || search.value.length > 255) return false\n if (fetchedItemsMinimal.value.size === 0) return true\n return ![...fetchedItemsMinimal.value.values()].some(\n (item) => item.name?.toLowerCase() === search.value!.toLowerCase()\n )\n})\n</script>\n\n<template>\n <div class=\"d-flex\">\n <ARow\n v-if=\"disabled && disabledAs === 'chips' && multiple\"\n :title=\"label\"\n >\n <AuthorRemoteAutocompleteCachedAuthorChip\n v-for=\"id in modelValueComputed\"\n :id=\"id\"\n :key=\"id\"\n :queue-id=\"queueId\"\n force-rounded\n class=\"mr-1 mb-1\"\n />\n </ARow>\n <ARow\n v-else-if=\"disabled && disabledAs === 'chips' && !multiple\"\n :title=\"label\"\n >\n <AuthorRemoteAutocompleteCachedAuthorChip\n :id=\"modelValueComputed\"\n :key=\"modelValueComputed\"\n :queue-id=\"queueId\"\n force-rounded\n />\n </ARow>\n <AFormRemoteAutocompleteWithCached\n v-else\n v-model=\"modelValueComputed\"\n v-model:search=\"search\"\n v-model:loading-local=\"loadingLocal\"\n v-model:fetched-items-minimal=\"fetchedItemsMinimal\"\n :use-cached=\"useCachedOfName\"\n :v=\"v$\"\n :required=\"requiredComputed\"\n :label=\"label\"\n :fetch-items-minimal=\"fetchItemsMinimal\"\n :multiple=\"multiple\"\n :clearable=\"clearable\"\n :disabled=\"disabled || undefined\"\n filter-by-field=\"text\"\n :filter-sort-by=\"null\"\n :data-cy=\"dataCy\"\n item-title=\"name\"\n item-value=\"id\"\n :min-search-chars=\"source ? 0 : 2\"\n :prefetch=\"source ? 'focus' : false\"\n v-bind=\"sourcesEmptyAttrs\"\n min-search-text=\"common.damImage.author.filterMinChars\"\n @search-change=\"searchChange\"\n @keyup.enter=\"onEnterKeyup\"\n @keyup.,=\"onCommaKeyup\"\n >\n <template #item=\"{ props: itemSlotProps, item: itemSlotItem }\">\n <VListItem\n v-if=\"itemSlotItem\"\n v-bind=\"itemSlotProps\"\n @click.prevent=\"\"\n >\n <template\n v-if=\"multiple\"\n #prepend\n >\n <VCheckboxBtn\n :model-value=\"itemSlotIsSelected(itemSlotItem.value)\"\n :ripple=\"false\"\n />\n </template>\n <template #title>\n <AuthorRemoteAutocompleteCachedAuthorChip\n :id=\"itemSlotItem.value\"\n :key=\"itemSlotItem.value\"\n :queue-id=\"queueId\"\n :title=\"itemSlotItem.title\"\n text-only\n :force-reviewed=\"itemSlotItem.raw?.raw?.reviewed\"\n />\n </template>\n </VListItem>\n </template>\n <!--\n Pass only the chip's close. Its other props (`onMousedown`)\n would stop a press on the chip from opening the list.\n -->\n <template #chip=\"{ props: chipSlotProps, item: chipSlotItem }\">\n <AuthorRemoteAutocompleteCachedAuthorChip\n v-if=\"chipSlotItem\"\n :id=\"chipSlotItem.value\"\n :key=\"chipSlotItem.value\"\n :chip-props=\"{ 'onClick:close': chipSlotProps['onClick:close'] }\"\n :queue-id=\"queueId\"\n :title=\"chipSlotItem.title\"\n force-rounded\n />\n </template>\n <template #append-item>\n <VListItem\n v-if=\"showAdd\"\n class=\"a-authors-append-item\"\n >\n <ABtnSecondary\n size=\"small\"\n :text=\"addNewAuthorText\"\n prepend-icon=\"mdi-plus-circle\"\n @click.stop=\"onCommaKeyup\"\n />\n </VListItem>\n </template>\n </AFormRemoteAutocompleteWithCached>\n <div v-show=\"!disabled || disabledAs === 'input'\">\n <AuthorCreateButton\n v-if=\"createAllowed\"\n ref=\"authorCreateButton\"\n variant=\"icon\"\n :ext-system=\"extSystem\"\n data-cy=\"add-author\"\n :initial-value=\"addNewAuthorText\"\n :source=\"source\"\n :notify-created=\"false\"\n disable-redirect\n :disabled=\"disabled\"\n @success=\"onCreated\"\n />\n </div>\n </div>\n <div\n v-if=\"!disabled && offeredConflicts.length > 0\"\n class=\"d-flex flex-column\"\n >\n <div>\n <span class=\"text-body-small\">{{ t('common.damImage.author.conflicts') }}</span>\n </div>\n <div>\n <AuthorRemoteAutocompleteCachedAuthorChipConflicts\n v-for=\"authorId in offeredConflicts\"\n :id=\"authorId\"\n :key=\"authorId\"\n class=\"mr-1 mt-1\"\n @add-author=\"addAuthor(authorId)\"\n />\n </div>\n </div>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-authors-append-item {\n position: sticky;\n bottom: 0;\n // Use the menu surface color. A white bar showed in the dark theme.\n background-color: rgb(var(--v-theme-surface));\n transform: translateY(8px);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BA,IAAMoC,IAAQC,GAsCRC,IAAOH,GAIPI,IAAgBC,EAAiBJ,EAAM,UAAU,GAGjDK,IAAczC,GAAgCqC,GAAC,aAAqC,GAEpFM,IAAqBC,EAAS;GAClC,MAAM;IACJ,OAAOR,EAAM;GACf;GACA,IAAI,GAAU;IACZ,EAAK,qBAAqB,CAAC,GAAGS,CAAQ,CAAC;GACzC;EACF,CAAC,GAEKC,IAASC,EAAY,EAAE,GACvBC,IAAeD,EAAI,EAAK,GACxBE,IAAsBF,kBAAiC,IAAI,IAAI,CAAC,GAEhE,EAAE,SAAMG,GAAQ,GAEhBC,IAAmBP,QAAe,CAAC,CAACR,E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A;KAC5C,YAAU1F,EAAA;KACV,OAAO2F,EAAa;KACrB,iBAAA;;;;;;;IAGO,eAAWzH,QAWR,CATJgG,GAAA,SADRtG,EAAA,GAAAI,EAUYS,GAAA;;KARV,OAAM;;KAEN,SAAAP,QAKE,CALFS,EAKEwF,GAAA;MAJA,MAAK;MACJ,MAAM9B,EAAA;MACP,gBAAa;MACZ,SAAK3D,EAAOuF,GAAY,CAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;G,KAKjCpF,GAAAd,EAcM,OAAA,MAAA,CAZIQ,EAAA8C,CAAA,KADRzD,EAAA,GAAAI,EAYEc,IAAA;;IAVI,SAAA;IAAJ,KAAIgF;IACJ,SAAQ;IACP,cAAY9D,EAAA;IACb,WAAQ;IACP,iBAAeqC,EAAA;IACf,QAAQrC,EAAA;IACR,kBAAgB;IACjB,oBAAA;IACC,UAAUA,EAAA;IACV,WAASkD;;;;;;G,yBAZA,CAAAnE,IAAA,CAAAiB,EAAA,YAAYA,EAAA,eAAU,OAAA,C,MAiB7B,CAAAA,EAAA,YAAYiC,EAAA,MAAiB,SAAM,KAD5CrE,EAAA,GAAAC,EAgBM,OAhBN4B,GAgBM,CAZJ1B,EAEM,OAAA,MAAA,CADJA,EAAgF,QAAhF2B,GAAgFV,GAA/CT,EAAAqF,CAAA,CAAC,CAAA,kCAAA,CAAA,GAAA,CAAA,C,IAEpC7F,EAQM,OAAA,MAAA,EAPJH,EAAA,EAAA,GAAAC,EAMEC,GAAA,MAAAK,EALmB8D,EAAA,QAAZ,OADTrE,EAAA,GAAAI,EAMEiB,IAAA;IAJC,IAAI8G;IACJ,KAAKA;IACN,OAAM;IACL,cAAU,MAAE3D,GAAU2D,CAAQ"}
1
+ {"version":3,"file":"AuthorRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js","names":["_useModel","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_createBlock","ARow","_withCtx","_renderList","AuthorRemoteAutocompleteCachedAuthorChip","AFormRemoteAutocompleteWithCached","_mergeProps","_unref","_withKeys","_component_VListItem","_withModifiers","_createVNode","_component_VCheckboxBtn","_withDirectives","AuthorCreateButton","_vShow","_toDisplayString","AuthorRemoteAutocompleteCachedAuthorChipConflicts","AFormRemoteAutocompleteWithCached_default","AuthorRemoteAutocompleteCachedAuthorChip_default","AuthorRemoteAutocompleteCachedAuthorChipConflicts_default","AuthorCreateButton_default","ARow_default","useVuelidate","_hoisted_1","_hoisted_2","_hoisted_3","AuthorRemoteAutocompleteWithCached_vue_vue_type_script_setup_true_lang_default","\"counterpart\"","\"counterpartModifiers\"","__emit","props","__props","emit","damConfigName","useDamConfigName","counterpart","useModel","modelValueComputed","computed","isArray","newValue","search","ref","loadingLocal","fetchedItemsMinimal","useI18n","requiredComputed","useValidate","rules","requiredIf","v$","useAuthorSelectActions","useCommonAdminCoreDamOptions","createAllowed","useAclAllowed","sourceCreateAcl","authorCreateAcl","useAuthorInnerFilter","provide","FilterInnerConfigKey","filterConfig","FilterInnerDataKey","filterData","watch","source","offeredConflicts","id","addAuthor","addNewAuthorText","searchChange","removeLastComma","useDamCachedAuthors","useCachedOfName","useDamCachedAuthorsForRemoteAutocomplete","withNew","list","authors","author","ids","index","useDamAuthorFieldRouting","onCreated","own","other","routeToFields","fetchAuthorListByIds","damClient","endPointAuthor","item","addManualToCachedAuthors","sourcesEmptyAttrs","t","itemSlotIsSelected","authorCreateButton","value","onEnterKeyup","onCommaKeyup","showAdd","_component_ABtnSecondary","resolveComponent","openBlock","createElementBlock","Fragment","createElementVNode","createBlock","withCtx","renderList","mergeProps","_cache","$event","unref","fetchItemsMinimal","withKeys","itemSlotProps","itemSlotItem","VListItem","withModifiers","createSlots","createVNode","VCheckboxBtn","createCommentVNode","chipSlotProps","chipSlotItem","withDirectives","vShow","toDisplayString","authorId"],"sources":["../../../../../src/domains/dam/author/components/AuthorRemoteAutocompleteWithCached.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DocId, IntegerId } from '@/shared/types/common'\nimport type { ValidationScope } from '@/shared/types/Validation'\nimport { computed, provide, ref, watch } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport useVuelidate from '@vuelidate/core'\nimport {\n useDamCachedAuthors,\n useDamCachedAuthorsForRemoteAutocomplete,\n} from '@/domains/dam/author/composables/cachedAuthors'\nimport type { DamAuthor } from '@/domains/dam/author/types/DamAuthor'\nimport { isArray } from '@/shared/utils/common'\nimport AFormRemoteAutocompleteWithCached from '@/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue'\nimport AuthorRemoteAutocompleteCachedAuthorChip from '@/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChip.vue'\nimport AuthorRemoteAutocompleteCachedAuthorChipConflicts from '@/domains/dam/author/components/AuthorRemoteAutocompleteCachedAuthorChipConflicts.vue'\nimport { useAuthorSelectActions } from '@/domains/dam/author/composables/authorActions'\nimport AuthorCreateButton from '@/domains/dam/author/components/AuthorCreateButton.vue'\nimport ARow from '@/domains/ui/components/ARow.vue'\nimport { FilterInnerConfigKey, FilterInnerDataKey } from '@/domains/filters/utils/filterInjectionKeys'\nimport { useAuthorInnerFilter } from '@/domains/dam/author/filter/AuthorFilter'\nimport { useAclAllowed } from '@/domains/auth/composables/aclAllowed'\nimport { useCommonAdminCoreDamOptions } from '@/domains/dam/composables/commonAdminCoreDamOptions'\nimport type { DamFieldsDisabledAs } from '@/domains/dam/uploadQueue/components/uploadQueueBindings'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\nimport { fetchAuthorListByIds } from '@/domains/dam/author/api/authorApi'\nimport { useDamAuthorFieldRouting } from '@/domains/dam/author/composables/authorFieldRouting'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DocId | null | DocId[] | any\n extSystem: IntegerId\n queueId?: string | undefined\n label?: string | undefined\n required?: boolean | null\n disabled?: boolean | undefined\n multiple?: boolean\n /**\n * The field kind: `true` for sources, `false` for authors that are not sources.\n * Undefined (sources off) offers every author.\n */\n source?: boolean\n clearable?: boolean\n authorConflicts?: DocId[]\n dataCy?: string\n validationScope?: ValidationScope\n /** How a disabled field looks: author chips (current library behaviour), or the input and its \"+\" disabled. */\n disabledAs?: DamFieldsDisabledAs\n /** DAM configuration to use. Defaults to the parent component's, else `default`. */\n configName?: string\n }>(),\n {\n label: undefined,\n queueId: undefined,\n required: null,\n disabled: undefined,\n multiple: false,\n source: undefined,\n clearable: false,\n authorConflicts: undefined,\n dataCy: undefined,\n validationScope: undefined,\n disabledAs: 'chips',\n configName: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'update:modelValue', data: DocId | null | DocId[]): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\n// The field of the other kind. An author created here that is of that kind goes there.\nconst counterpart = defineModel<DocId[] | undefined>('counterpart', { default: undefined })\n\nconst modelValueComputed = computed({\n get() {\n return props.modelValue\n },\n set(newValue) {\n // Without `multiple` the value is one id or null, which spread would break into characters or throw on.\n emit('update:modelValue', isArray(newValue) ? [...newValue] : newValue)\n },\n})\n\nconst search = ref<string>('')\nconst loadingLocal = ref(false)\nconst fetchedItemsMinimal = ref<Map<IntegerId | DocId, any>>(new Map())\n\nconst { t } = useI18n()\n\nconst requiredComputed = computed(() => !!props.required)\n\nconst { requiredIf } = useValidate()\n\nconst rules = {\n modelValueComputed: {\n required: requiredIf(requiredComputed),\n },\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst v$ = useVuelidate(rules, { modelValueComputed }, { $scope: props.validationScope })\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { fetchItemsMinimal } = useAuthorSelectActions(props.extSystem, damConfigName)\n\nconst { authorCreateAcl, sourceCreateAcl, damClient, endPointAuthor } = useCommonAdminCoreDamOptions(damConfigName)\nconst createAllowed = useAclAllowed(() => (props.source ? sourceCreateAcl : authorCreateAcl) ?? undefined)\n\nconst { filterData, filterConfig } = useAuthorInnerFilter()\nprovide(FilterInnerConfigKey, filterConfig)\nprovide(FilterInnerDataKey, filterData)\n\nwatch(\n () => props.source,\n (source) => {\n filterData.source = source ?? null\n },\n { immediate: true }\n)\n\n// Authors the input already has are not offered again.\nconst offeredConflicts = computed(() =>\n (props.authorConflicts ?? []).filter((id) =>\n isArray(modelValueComputed.value) ? !modelValueComputed.value.includes(id) : modelValueComputed.value !== id\n )\n)\n\nconst addAuthor = async (id: null | DocId | undefined) => {\n if (!id) return\n if (!modelValueComputed.value.includes(id)) {\n modelValueComputed.value = [...modelValueComputed.value, id]\n }\n}\n\nconst addNewAuthorText = ref('')\n\nconst searchChange = (newValue: string) => {\n if (newValue.length > 0) addNewAuthorText.value = removeLastComma(newValue)\n}\n\nconst { addManualToCachedAuthors } = useDamCachedAuthors(damConfigName)\n// The inner input reads this cache only once.\nconst useCachedOfName = () => useDamCachedAuthorsForRemoteAutocomplete(damConfigName)\n\nconst withNew = (list: DocId[], authors: DamAuthor[]) => [\n ...list,\n ...authors.map((author) => author.id).filter((id, index, ids) => !list.includes(id) && ids.indexOf(id) === index),\n]\n\nconst { routeToFields } = useDamAuthorFieldRouting()\n// A merged author may resolve to several current authors. Each field takes those of its kind in one write:\n// written one by one, each write started from the list before the previous one reached the parent.\nconst onCreated = async (author: DamAuthor) => {\n const own: DamAuthor[] = []\n const other: DamAuthor[] = []\n await routeToFields(\n author,\n props.source,\n (ids) => fetchAuthorListByIds(damClient, endPointAuthor, props.extSystem, ids),\n {\n own: (item) => own.push(item),\n other: (item) => other.push(item),\n }\n )\n own.forEach((item) => addManualToCachedAuthors(item))\n other.forEach((item) => addManualToCachedAuthors(item))\n if (own.length + other.length > 0) search.value = ''\n if (own.length > 0) {\n if (isArray(modelValueComputed.value)) modelValueComputed.value = withNew(modelValueComputed.value as DocId[], own)\n else modelValueComputed.value = own.at(-1)!.id\n }\n if (other.length > 0 && counterpart.value) counterpart.value = withNew(counterpart.value, other)\n}\n\nconst sourcesEmptyAttrs = computed(() =>\n props.source && !loadingLocal.value ? { 'no-data-text': t('common.damImage.asset.model.sourcesEmpty') } : {}\n)\n\nconst itemSlotIsSelected = (item: DocId) => {\n if (isArray(modelValueComputed.value)) {\n return modelValueComputed.value.includes(item)\n } else if (modelValueComputed.value) {\n return modelValueComputed.value === item\n }\n return false\n}\n\nconst authorCreateButton = ref<InstanceType<typeof AuthorCreateButton> | null>(null)\n\nconst removeLastComma = (value: string) => {\n if (value.endsWith(',')) return value.slice(0, -1)\n return value\n}\n\nconst onEnterKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n authorCreateButton.value?.open(value)\n}\n\nconst onCommaKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n authorCreateButton.value?.open(value)\n}\n\nconst showAdd = computed(() => {\n if (!createAllowed.value) return false\n if (loadingLocal.value) return false\n if (search.value.length < 2 || search.value.length > 255) return false\n if (fetchedItemsMinimal.value.size === 0) return true\n return ![...fetchedItemsMinimal.value.values()].some(\n (item) => item.name?.toLowerCase() === search.value!.toLowerCase()\n )\n})\n</script>\n\n<template>\n <div class=\"d-flex\">\n <ARow\n v-if=\"disabled && disabledAs === 'chips' && multiple\"\n :title=\"label\"\n >\n <AuthorRemoteAutocompleteCachedAuthorChip\n v-for=\"id in modelValueComputed\"\n :id=\"id\"\n :key=\"id\"\n :queue-id=\"queueId\"\n force-rounded\n class=\"mr-1 mb-1\"\n />\n </ARow>\n <ARow\n v-else-if=\"disabled && disabledAs === 'chips' && !multiple\"\n :title=\"label\"\n >\n <AuthorRemoteAutocompleteCachedAuthorChip\n :id=\"modelValueComputed\"\n :key=\"modelValueComputed\"\n :queue-id=\"queueId\"\n force-rounded\n />\n </ARow>\n <AFormRemoteAutocompleteWithCached\n v-else\n v-model=\"modelValueComputed\"\n v-model:search=\"search\"\n v-model:loading-local=\"loadingLocal\"\n v-model:fetched-items-minimal=\"fetchedItemsMinimal\"\n :use-cached=\"useCachedOfName\"\n :v=\"v$\"\n :required=\"requiredComputed\"\n :label=\"label\"\n :fetch-items-minimal=\"fetchItemsMinimal\"\n :multiple=\"multiple\"\n :clearable=\"clearable\"\n :disabled=\"disabled || undefined\"\n filter-by-field=\"text\"\n :filter-sort-by=\"null\"\n :data-cy=\"dataCy\"\n item-title=\"name\"\n item-value=\"id\"\n :min-search-chars=\"source ? 0 : 2\"\n :prefetch=\"source ? 'focus' : false\"\n v-bind=\"sourcesEmptyAttrs\"\n min-search-text=\"common.damImage.author.filterMinChars\"\n @search-change=\"searchChange\"\n @keyup.enter=\"onEnterKeyup\"\n @keyup.,=\"onCommaKeyup\"\n >\n <template #item=\"{ props: itemSlotProps, item: itemSlotItem }\">\n <VListItem\n v-if=\"itemSlotItem\"\n v-bind=\"itemSlotProps\"\n @click.prevent=\"\"\n >\n <template\n v-if=\"multiple\"\n #prepend\n >\n <VCheckboxBtn\n :model-value=\"itemSlotIsSelected(itemSlotItem.value)\"\n :ripple=\"false\"\n />\n </template>\n <template #title>\n <AuthorRemoteAutocompleteCachedAuthorChip\n :id=\"itemSlotItem.value\"\n :key=\"itemSlotItem.value\"\n :queue-id=\"queueId\"\n :title=\"itemSlotItem.title\"\n text-only\n :force-reviewed=\"itemSlotItem.raw?.raw?.reviewed\"\n />\n </template>\n </VListItem>\n </template>\n <!--\n Pass only the chip's close. Its other props (`onMousedown`)\n would stop a press on the chip from opening the list.\n -->\n <template #chip=\"{ props: chipSlotProps, item: chipSlotItem }\">\n <AuthorRemoteAutocompleteCachedAuthorChip\n v-if=\"chipSlotItem\"\n :id=\"chipSlotItem.value\"\n :key=\"chipSlotItem.value\"\n :chip-props=\"{ 'onClick:close': chipSlotProps['onClick:close'] }\"\n :queue-id=\"queueId\"\n :title=\"chipSlotItem.title\"\n force-rounded\n />\n </template>\n <template #append-item>\n <VListItem\n v-if=\"showAdd\"\n class=\"a-authors-append-item\"\n >\n <ABtnSecondary\n size=\"small\"\n :text=\"addNewAuthorText\"\n prepend-icon=\"mdi-plus-circle\"\n @click.stop=\"onCommaKeyup\"\n />\n </VListItem>\n </template>\n </AFormRemoteAutocompleteWithCached>\n <div v-show=\"!disabled || disabledAs === 'input'\">\n <AuthorCreateButton\n v-if=\"createAllowed\"\n ref=\"authorCreateButton\"\n variant=\"icon\"\n :ext-system=\"extSystem\"\n data-cy=\"add-author\"\n :initial-value=\"addNewAuthorText\"\n :source=\"source\"\n :notify-created=\"false\"\n disable-redirect\n :disabled=\"disabled\"\n @success=\"onCreated\"\n />\n </div>\n </div>\n <div\n v-if=\"!disabled && offeredConflicts.length > 0\"\n class=\"d-flex flex-column\"\n >\n <div>\n <span class=\"text-body-small\">{{ t('common.damImage.author.conflicts') }}</span>\n </div>\n <div>\n <AuthorRemoteAutocompleteCachedAuthorChipConflicts\n v-for=\"authorId in offeredConflicts\"\n :id=\"authorId\"\n :key=\"authorId\"\n class=\"mr-1 mt-1\"\n @add-author=\"addAuthor(authorId)\"\n />\n </div>\n </div>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-authors-append-item {\n position: sticky;\n bottom: 0;\n // Use the menu surface color. A white bar showed in the dark theme.\n background-color: rgb(var(--v-theme-surface));\n transform: translateY(8px);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BA,IAAMoC,IAAQC,GAsCRC,IAAOH,GAIPI,IAAgBC,EAAiBJ,EAAM,UAAU,GAGjDK,IAAczC,GAAgCqC,GAAC,aAAqC,GAEpFM,IAAqBC,EAAS;GAClC,MAAM;IACJ,OAAOR,EAAM;GACf;GACA,IAAI,GAAU;IAEZ,EAAK,qBAAqBS,EAAQC,CAAQ,IAAI,CAAC,GAAGA,CAAQ,IAAIA,CAAQ;GACxE;EACF,CAAC,GAEKC,IAASC,EAAY,EAAE,GACvBC,IAAeD,EAAI,EAAK,GACxBE,IAAsBF,kBAAiC,IAAI,IAAI,CAAC,GAEhE,EAAE,SAAMG,GAAQ,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AU,EAAA,iBAAqBD,EAAa,iBAAA;KAC5C,YAAU1F,EAAA;KACV,OAAO2F,EAAa;KACrB,iBAAA;;;;;;;IAGO,eAAWzH,QAWR,CATJgG,GAAA,SADRtG,EAAA,GAAAI,EAUYS,GAAA;;KARV,OAAM;;KAEN,SAAAP,QAKE,CALFS,EAKEwF,GAAA;MAJA,MAAK;MACJ,MAAM9B,EAAA;MACP,gBAAa;MACZ,SAAK3D,EAAOuF,GAAY,CAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;G,KAKjCpF,GAAAd,EAcM,OAAA,MAAA,CAZIQ,EAAA+C,CAAA,KADR1D,EAAA,GAAAI,EAYEc,IAAA;;IAVI,SAAA;IAAJ,KAAIgF;IACJ,SAAQ;IACP,cAAY9D,EAAA;IACb,WAAQ;IACP,iBAAeqC,EAAA;IACf,QAAQrC,EAAA;IACR,kBAAgB;IACjB,oBAAA;IACC,UAAUA,EAAA;IACV,WAASkD;;;;;;G,yBAZA,CAAAnE,IAAA,CAAAiB,EAAA,YAAYA,EAAA,eAAU,OAAA,C,MAiB7B,CAAAA,EAAA,YAAYkC,EAAA,MAAiB,SAAM,KAD5CtE,EAAA,GAAAC,EAgBM,OAhBN4B,GAgBM,CAZJ1B,EAEM,OAAA,MAAA,CADJA,EAAgF,QAAhF2B,GAAgFV,GAA/CT,EAAAqF,CAAA,CAAC,CAAA,kCAAA,CAAA,GAAA,CAAA,C,IAEpC7F,EAQM,OAAA,MAAA,EAPJH,EAAA,EAAA,GAAAC,EAMEC,GAAA,MAAAK,EALmB+D,EAAA,QAAZ,OADTtE,EAAA,GAAAI,EAMEiB,IAAA;IAJC,IAAI8G;IACJ,KAAKA;IACN,OAAM;IACL,cAAU,MAAE3D,GAAU2D,CAAQ"}
@@ -2,7 +2,7 @@ import e from "./KeywordRemoteAutocompleteWithCached.vue_vue_type_script_setup_t
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  // src/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-976c0e76"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-ee92ec88"]]);
6
6
  export { n as default };
7
7
 
8
8
  //# sourceMappingURL=KeywordRemoteAutocompleteWithCached.js.map
@@ -62,7 +62,7 @@ var P = { class: "d-flex" }, F = /*@__PURE__*/ S({
62
62
  return I.modelValue;
63
63
  },
64
64
  set(e) {
65
- L("update:modelValue", [...e]);
65
+ L("update:modelValue", i(e) ? [...e] : e);
66
66
  }
67
67
  }), B = E(""), V = E(!1), H = E(/* @__PURE__ */ new Map()), U = g(() => !!I.required), { requiredIf: W } = e(), G = { modelValueComputed: { required: W(U) } }, K = M(G, { modelValueComputed: z }, { $scope: I.validationScope }), { damClient: q, endPointKeyword: oe, keywordCreateAcl: se } = c(R), J = p(se ?? void 0), { getDamConfigExtSystem: ce } = te(void 0, R), le = ce(I.extSystem);
68
68
  if (ee(le)) throw Error("KeywordRemoteAutocompleteWithCached: Ext system must be initialised.");
@@ -1 +1 @@
1
- {"version":3,"file":"KeywordRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createBlock","ARow","_withCtx","_Fragment","_renderList","KeywordRemoteAutocompleteCachedKeywordChip","AFormRemoteAutocompleteWithCached","_unref","_withKeys","_component_VListItem","_mergeProps","_withModifiers","_createVNode","_component_VCheckboxBtn","AFormRemoteAutocompleteWithCached_default","KeywordRemoteAutocompleteCachedKeywordChip_default","ARow_default","useVuelidate","_hoisted_1","KeywordRemoteAutocompleteWithCached_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","damConfigName","useDamConfigName","modelValueComputed","computed","newValue","search","ref","loadingLocal","fetchedItemsMinimal","requiredComputed","useValidate","rules","requiredIf","v$","useCommonAdminCoreDamOptions","createAllowed","useAclAllowed","keywordCreateAcl","useDamConfigState","configExtSystem","getDamConfigExtSystem","isUndefined","useKeywordSelectActions","useKeywordInnerFilter","provide","FilterInnerConfigKey","filterConfig","FilterInnerDataKey","filterData","addNewKeywordText","searchChange","removeLastComma","useDamCachedKeywords","useCachedOfName","useCachedKeywordsForRemoteAutocomplete","afterCreate","addManualToCachedKeywords","keyword","isArray","itemSlotIsSelected","item","useAlerts","useDamKeywordFactory","createOrSelectKeyword","keywordCreate","createDefault","name","keywordRes","createKeyword","damClient","endPointKeyword","error","value","onEnterKeyup","onCommaKeyup","showAdd","_component_ABtnSecondary","resolveComponent","openBlock","createElementBlock","createBlock","withCtx","Fragment","renderList","id","_cache","$event","unref","fetchItemsMinimal","withKeys","itemSlotProps","itemSlotItem","VListItem","mergeProps","withModifiers","createSlots","createVNode","VCheckboxBtn","createCommentVNode","chipSlotProps","chipSlotItem"],"sources":["../../../../../src/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DocId, IntegerId } from '@/shared/types/common'\nimport type { ValidationScope } from '@/shared/types/Validation'\nimport { computed, provide, ref } from 'vue'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport useVuelidate from '@vuelidate/core'\nimport { useKeywordSelectActions } from '@/domains/dam/keyword/composables/keywordActions'\nimport {\n useCachedKeywordsForRemoteAutocomplete,\n useDamCachedKeywords,\n} from '@/domains/dam/keyword/composables/cachedKeywords'\nimport type { DamKeyword } from '@/domains/dam/keyword/types/DamKeyword'\nimport { isArray, isUndefined } from '@/shared/utils/common'\nimport AFormRemoteAutocompleteWithCached from '@/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue'\nimport KeywordRemoteAutocompleteCachedKeywordChip from '@/domains/dam/keyword/components/KeywordRemoteAutocompleteCachedKeywordChip.vue'\nimport { createKeyword } from '@/domains/dam/keyword/api/keywordApi'\nimport { useCommonAdminCoreDamOptions } from '@/domains/dam/composables/commonAdminCoreDamOptions'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { useDamKeywordFactory } from '@/domains/dam/keyword/factory/KeywordFactory'\nimport { useDamConfigState } from '@/domains/dam/config/composables/damConfigState'\nimport ARow from '@/domains/ui/components/ARow.vue'\nimport { useKeywordInnerFilter } from '@/domains/dam/keyword/filter/KeywordFilter'\nimport { FilterInnerConfigKey, FilterInnerDataKey } from '@/domains/filters/utils/filterInjectionKeys'\nimport { useAclAllowed } from '@/domains/auth/composables/aclAllowed'\nimport type { DamFieldsDisabledAs } from '@/domains/dam/uploadQueue/components/uploadQueueBindings'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DocId | null | DocId[] | any\n extSystem: IntegerId\n queueId?: string | undefined\n label?: string | undefined\n required?: boolean | null\n disabled?: boolean | undefined\n multiple?: boolean\n clearable?: boolean\n dataCy?: string\n validationScope?: ValidationScope\n /** How it looks while disabled: keyword chips (current library behaviour), or the input switched off. */\n disabledAs?: DamFieldsDisabledAs\n /** DAM configuration to use. Defaults to the parent component's, else `default`. */\n configName?: string\n }>(),\n {\n label: undefined,\n queueId: undefined,\n required: null,\n disabled: undefined,\n multiple: false,\n clearable: false,\n dataCy: undefined,\n validationScope: undefined,\n disabledAs: 'chips',\n configName: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'update:modelValue', data: DocId | null | DocId[]): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\nconst modelValueComputed = computed({\n get() {\n return props.modelValue\n },\n set(newValue) {\n emit('update:modelValue', [...newValue])\n },\n})\n\nconst search = ref<string>('')\nconst loadingLocal = ref(false)\nconst fetchedItemsMinimal = ref<Map<IntegerId | DocId, any>>(new Map())\n\nconst requiredComputed = computed(() => !!props.required)\n\nconst { requiredIf } = useValidate()\n\nconst rules = {\n modelValueComputed: {\n required: requiredIf(requiredComputed),\n },\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst v$ = useVuelidate(rules, { modelValueComputed }, { $scope: props.validationScope })\n\nconst { damClient, endPointKeyword, keywordCreateAcl } = useCommonAdminCoreDamOptions(damConfigName)\nconst createAllowed = useAclAllowed(keywordCreateAcl ?? undefined)\nconst { getDamConfigExtSystem } = useDamConfigState(undefined, damConfigName)\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst configExtSystem = getDamConfigExtSystem(props.extSystem)\nif (isUndefined(configExtSystem)) {\n throw new Error('KeywordRemoteAutocompleteWithCached: Ext system must be initialised.')\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { fetchItemsMinimal } = useKeywordSelectActions(props.extSystem, damConfigName)\n\nconst { filterData, filterConfig } = useKeywordInnerFilter()\nprovide(FilterInnerConfigKey, filterConfig)\nprovide(FilterInnerDataKey, filterData)\n\nconst addNewKeywordText = ref('')\n\nconst searchChange = (newValue: string) => {\n if (newValue.length > 0) addNewKeywordText.value = removeLastComma(newValue)\n}\n\nconst { addManualToCachedKeywords } = useDamCachedKeywords(damConfigName)\n// The inner input reads this cache only once.\nconst useCachedOfName = () => useCachedKeywordsForRemoteAutocomplete(damConfigName)\n\nconst afterCreate = (keyword: DamKeyword) => {\n addManualToCachedKeywords(keyword)\n if (isArray(modelValueComputed.value)) {\n modelValueComputed.value = [...modelValueComputed.value, keyword.id]\n search.value = ''\n return\n }\n modelValueComputed.value = keyword.id\n search.value = ''\n}\n\nconst itemSlotIsSelected = (item: DocId) => {\n if (isArray(modelValueComputed.value)) {\n return modelValueComputed.value.includes(item)\n } else if (modelValueComputed.value) {\n return modelValueComputed.value === item\n }\n return false\n}\n\nconst { showErrorsDefault } = useAlerts()\nconst { createDefault } = useDamKeywordFactory()\n\nconst createOrSelectKeyword = async (name: string) => {\n const keywordCreate = createDefault(props.extSystem, true)\n keywordCreate.name = removeLastComma(name)\n if (keywordCreate.name.length < 2) return\n try {\n const keywordRes = await createKeyword(damClient, endPointKeyword, keywordCreate)\n afterCreate(keywordRes)\n } catch (error) {\n showErrorsDefault(error)\n }\n}\n\nconst removeLastComma = (value: string) => {\n if (value.endsWith(',')) return value.slice(0, -1)\n return value\n}\n\nconst onEnterKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n createOrSelectKeyword(value)\n}\n\nconst onCommaKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n createOrSelectKeyword(value)\n}\n\nconst showAdd = computed(() => {\n if (!createAllowed.value) return false\n if (loadingLocal.value) return false\n if (search.value.length < 2 || search.value.length > 255) return false\n if (fetchedItemsMinimal.value.size === 0) return true\n return ![...fetchedItemsMinimal.value.values()].some(\n (item) => item.name?.toLowerCase() === search.value!.toLowerCase()\n )\n})\n</script>\n\n<template>\n <div class=\"d-flex\">\n <ARow\n v-if=\"disabled && disabledAs === 'chips' && multiple\"\n :title=\"label\"\n >\n <KeywordRemoteAutocompleteCachedKeywordChip\n v-for=\"id in modelValueComputed\"\n :id=\"id\"\n :key=\"id\"\n :queue-id=\"queueId\"\n force-rounded\n class=\"mr-1 mb-1\"\n />\n </ARow>\n <ARow\n v-else-if=\"disabled && disabledAs === 'chips' && !multiple\"\n :title=\"label\"\n >\n <KeywordRemoteAutocompleteCachedKeywordChip\n :id=\"modelValueComputed\"\n :key=\"modelValueComputed\"\n :queue-id=\"queueId\"\n force-rounded\n />\n </ARow>\n <AFormRemoteAutocompleteWithCached\n v-else\n v-model=\"modelValueComputed\"\n v-model:search=\"search\"\n v-model:loading-local=\"loadingLocal\"\n v-model:fetched-items-minimal=\"fetchedItemsMinimal\"\n :use-cached=\"useCachedOfName\"\n :v=\"v$\"\n :required=\"requiredComputed\"\n :label=\"label\"\n :fetch-items-minimal=\"fetchItemsMinimal\"\n :multiple=\"multiple\"\n :clearable=\"clearable\"\n :disabled=\"disabled || undefined\"\n filter-by-field=\"text\"\n :filter-sort-by=\"null\"\n item-title=\"name\"\n item-value=\"id\"\n :data-cy=\"dataCy\"\n :min-search-chars=\"2\"\n min-search-text=\"common.damImage.keyword.filterMinChars\"\n @search-change=\"searchChange\"\n @keyup.enter=\"onEnterKeyup\"\n @keyup.,=\"onCommaKeyup\"\n >\n <template #item=\"{ props: itemSlotProps, item: itemSlotItem }\">\n <VListItem\n v-if=\"itemSlotItem\"\n v-bind=\"itemSlotProps\"\n @click.prevent=\"\"\n >\n <template\n v-if=\"multiple\"\n #prepend\n >\n <VCheckboxBtn\n :model-value=\"itemSlotIsSelected(itemSlotItem.value)\"\n :ripple=\"false\"\n />\n </template>\n <template #title>\n <KeywordRemoteAutocompleteCachedKeywordChip\n :id=\"itemSlotItem.value\"\n :key=\"itemSlotItem.value\"\n :queue-id=\"queueId\"\n :title=\"itemSlotItem.title\"\n text-only\n />\n </template>\n </VListItem>\n </template>\n <!--\n Pass only the chip's close. Its other props (`onMousedown`)\n would stop a press on the chip from opening the list.\n -->\n <template #chip=\"{ props: chipSlotProps, item: chipSlotItem }\">\n <KeywordRemoteAutocompleteCachedKeywordChip\n v-if=\"chipSlotItem\"\n :id=\"chipSlotItem.value\"\n :key=\"chipSlotItem.value\"\n :chip-props=\"{ 'onClick:close': chipSlotProps['onClick:close'] }\"\n :queue-id=\"queueId\"\n :title=\"chipSlotItem.title\"\n force-rounded\n />\n </template>\n <template #append-item>\n <VListItem\n v-if=\"showAdd\"\n class=\"a-keywords-append-item\"\n >\n <ABtnSecondary\n size=\"small\"\n :text=\"addNewKeywordText\"\n prepend-icon=\"mdi-plus-circle\"\n @click.stop=\"onCommaKeyup\"\n />\n </VListItem>\n </template>\n </AFormRemoteAutocompleteWithCached>\n </div>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-keywords-append-item {\n position: sticky;\n bottom: 0;\n // Use the menu surface color. A white bar showed in the dark theme.\n background-color: rgb(var(--v-theme-surface));\n transform: translateY(8px);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BA,IAAMuB,IAAQC,GA8BRC,IAAOH,GAIPI,IAAgBC,EAAi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AQC,QAAY,CAEjDA,KADRjG,EAAA,GAAAE,EAuBYS,GAvBZC,EAuBY,EAAA,KAAA,EAAA,GArBFoF,GAAa,EACpB,SAAK,AAAAL,EAAA,OAAA9E,QAAN,CAAA,GAAiB,CAAA,SAAA,CAAA,E;KAWN,OAAKT,QAOZ,EANFJ,EAAA,GAAAE,EAMEK,GAAA;MALC,IAAI0F,EAAa;MACjB,KAAKA,EAAa;MAClB,YAAUzE,EAAA;MACV,OAAOyE,EAAa;MACrB,aAAA;;;;;;;I,IAdIzE,EAAA,W;KACL,MAAA;KAED,IAAApB,QAGE,CAHFU,EAGEC,GAAA;MAFC,eAAakD,EAAmBgC,EAAa,KAAK;MAClD,QAAQ;;;;IAkBN,MAAI7F,GASX,EAAA,OATsBqG,GAAa,MAAQC,QAAY,CAEjDA,KADR1G,EAAA,GAAAE,EAQEK,GAAA;KANC,IAAImG,EAAa;KACjB,KAAKA,EAAa;KAClB,cAAU,EAAA,iBAAqBD,EAAa,iBAAA;KAC5C,YAAUjF,EAAA;KACV,OAAOkF,EAAa;KACrB,iBAAA;;;;;;;IAGO,eAAWtG,QAWR,CATJ6E,GAAA,SADRjF,EAAA,GAAAE,EAUYS,GAAA;;KARV,OAAM;;KAEN,SAAAP,QAKE,CALFU,EAKEoE,GAAA;MAJA,MAAK;MACJ,MAAM3B,EAAA;MACP,gBAAa;MACZ,SAAK1C,EAAOmE,GAAY,CAAA,MAAA,CAAA"}
1
+ {"version":3,"file":"KeywordRemoteAutocompleteWithCached.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createBlock","ARow","_withCtx","_Fragment","_renderList","KeywordRemoteAutocompleteCachedKeywordChip","AFormRemoteAutocompleteWithCached","_unref","_withKeys","_component_VListItem","_mergeProps","_withModifiers","_createVNode","_component_VCheckboxBtn","AFormRemoteAutocompleteWithCached_default","KeywordRemoteAutocompleteCachedKeywordChip_default","ARow_default","useVuelidate","_hoisted_1","KeywordRemoteAutocompleteWithCached_vue_vue_type_script_setup_true_lang_default","__emit","props","__props","emit","damConfigName","useDamConfigName","modelValueComputed","computed","isArray","newValue","search","ref","loadingLocal","fetchedItemsMinimal","requiredComputed","useValidate","rules","requiredIf","v$","useCommonAdminCoreDamOptions","createAllowed","useAclAllowed","keywordCreateAcl","useDamConfigState","configExtSystem","getDamConfigExtSystem","isUndefined","useKeywordSelectActions","useKeywordInnerFilter","provide","FilterInnerConfigKey","filterConfig","FilterInnerDataKey","filterData","addNewKeywordText","searchChange","removeLastComma","useDamCachedKeywords","useCachedOfName","useCachedKeywordsForRemoteAutocomplete","afterCreate","addManualToCachedKeywords","keyword","itemSlotIsSelected","item","useAlerts","useDamKeywordFactory","createOrSelectKeyword","keywordCreate","createDefault","name","keywordRes","createKeyword","damClient","endPointKeyword","error","value","onEnterKeyup","onCommaKeyup","showAdd","_component_ABtnSecondary","resolveComponent","openBlock","createElementBlock","createBlock","withCtx","Fragment","renderList","id","_cache","$event","unref","fetchItemsMinimal","withKeys","itemSlotProps","itemSlotItem","VListItem","mergeProps","withModifiers","createSlots","createVNode","VCheckboxBtn","createCommentVNode","chipSlotProps","chipSlotItem"],"sources":["../../../../../src/domains/dam/keyword/components/KeywordRemoteAutocompleteWithCached.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { DocId, IntegerId } from '@/shared/types/common'\nimport type { ValidationScope } from '@/shared/types/Validation'\nimport { computed, provide, ref } from 'vue'\nimport { useValidate } from '@/shared/validators/vuelidate/useValidate'\nimport useVuelidate from '@vuelidate/core'\nimport { useKeywordSelectActions } from '@/domains/dam/keyword/composables/keywordActions'\nimport {\n useCachedKeywordsForRemoteAutocomplete,\n useDamCachedKeywords,\n} from '@/domains/dam/keyword/composables/cachedKeywords'\nimport type { DamKeyword } from '@/domains/dam/keyword/types/DamKeyword'\nimport { isArray, isUndefined } from '@/shared/utils/common'\nimport AFormRemoteAutocompleteWithCached from '@/domains/remoteAutocomplete/components/AFormRemoteAutocompleteWithCached.vue'\nimport KeywordRemoteAutocompleteCachedKeywordChip from '@/domains/dam/keyword/components/KeywordRemoteAutocompleteCachedKeywordChip.vue'\nimport { createKeyword } from '@/domains/dam/keyword/api/keywordApi'\nimport { useCommonAdminCoreDamOptions } from '@/domains/dam/composables/commonAdminCoreDamOptions'\nimport { useAlerts } from '@/domains/system/composables/alerts'\nimport { useDamKeywordFactory } from '@/domains/dam/keyword/factory/KeywordFactory'\nimport { useDamConfigState } from '@/domains/dam/config/composables/damConfigState'\nimport ARow from '@/domains/ui/components/ARow.vue'\nimport { useKeywordInnerFilter } from '@/domains/dam/keyword/filter/KeywordFilter'\nimport { FilterInnerConfigKey, FilterInnerDataKey } from '@/domains/filters/utils/filterInjectionKeys'\nimport { useAclAllowed } from '@/domains/auth/composables/aclAllowed'\nimport type { DamFieldsDisabledAs } from '@/domains/dam/uploadQueue/components/uploadQueueBindings'\nimport { useDamConfigName } from '@/domains/dam/composables/damConfigName'\n\nconst props = withDefaults(\n defineProps<{\n modelValue: DocId | null | DocId[] | any\n extSystem: IntegerId\n queueId?: string | undefined\n label?: string | undefined\n required?: boolean | null\n disabled?: boolean | undefined\n multiple?: boolean\n clearable?: boolean\n dataCy?: string\n validationScope?: ValidationScope\n /** How it looks while disabled: keyword chips (current library behaviour), or the input switched off. */\n disabledAs?: DamFieldsDisabledAs\n /** DAM configuration to use. Defaults to the parent component's, else `default`. */\n configName?: string\n }>(),\n {\n label: undefined,\n queueId: undefined,\n required: null,\n disabled: undefined,\n multiple: false,\n clearable: false,\n dataCy: undefined,\n validationScope: undefined,\n disabledAs: 'chips',\n configName: undefined,\n }\n)\nconst emit = defineEmits<{\n (e: 'update:modelValue', data: DocId | null | DocId[]): void\n}>()\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst damConfigName = useDamConfigName(props.configName)\n\nconst modelValueComputed = computed({\n get() {\n return props.modelValue\n },\n set(newValue) {\n // Without `multiple` the value is one id or null, which spread would break into characters or throw on.\n emit('update:modelValue', isArray(newValue) ? [...newValue] : newValue)\n },\n})\n\nconst search = ref<string>('')\nconst loadingLocal = ref(false)\nconst fetchedItemsMinimal = ref<Map<IntegerId | DocId, any>>(new Map())\n\nconst requiredComputed = computed(() => !!props.required)\n\nconst { requiredIf } = useValidate()\n\nconst rules = {\n modelValueComputed: {\n required: requiredIf(requiredComputed),\n },\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst v$ = useVuelidate(rules, { modelValueComputed }, { $scope: props.validationScope })\n\nconst { damClient, endPointKeyword, keywordCreateAcl } = useCommonAdminCoreDamOptions(damConfigName)\nconst createAllowed = useAclAllowed(keywordCreateAcl ?? undefined)\nconst { getDamConfigExtSystem } = useDamConfigState(undefined, damConfigName)\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst configExtSystem = getDamConfigExtSystem(props.extSystem)\nif (isUndefined(configExtSystem)) {\n throw new Error('KeywordRemoteAutocompleteWithCached: Ext system must be initialised.')\n}\n\n// eslint-disable-next-line vue/no-setup-props-reactivity-loss\nconst { fetchItemsMinimal } = useKeywordSelectActions(props.extSystem, damConfigName)\n\nconst { filterData, filterConfig } = useKeywordInnerFilter()\nprovide(FilterInnerConfigKey, filterConfig)\nprovide(FilterInnerDataKey, filterData)\n\nconst addNewKeywordText = ref('')\n\nconst searchChange = (newValue: string) => {\n if (newValue.length > 0) addNewKeywordText.value = removeLastComma(newValue)\n}\n\nconst { addManualToCachedKeywords } = useDamCachedKeywords(damConfigName)\n// The inner input reads this cache only once.\nconst useCachedOfName = () => useCachedKeywordsForRemoteAutocomplete(damConfigName)\n\nconst afterCreate = (keyword: DamKeyword) => {\n addManualToCachedKeywords(keyword)\n if (isArray(modelValueComputed.value)) {\n modelValueComputed.value = [...modelValueComputed.value, keyword.id]\n search.value = ''\n return\n }\n modelValueComputed.value = keyword.id\n search.value = ''\n}\n\nconst itemSlotIsSelected = (item: DocId) => {\n if (isArray(modelValueComputed.value)) {\n return modelValueComputed.value.includes(item)\n } else if (modelValueComputed.value) {\n return modelValueComputed.value === item\n }\n return false\n}\n\nconst { showErrorsDefault } = useAlerts()\nconst { createDefault } = useDamKeywordFactory()\n\nconst createOrSelectKeyword = async (name: string) => {\n const keywordCreate = createDefault(props.extSystem, true)\n keywordCreate.name = removeLastComma(name)\n if (keywordCreate.name.length < 2) return\n try {\n const keywordRes = await createKeyword(damClient, endPointKeyword, keywordCreate)\n afterCreate(keywordRes)\n } catch (error) {\n showErrorsDefault(error)\n }\n}\n\nconst removeLastComma = (value: string) => {\n if (value.endsWith(',')) return value.slice(0, -1)\n return value\n}\n\nconst onEnterKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n createOrSelectKeyword(value)\n}\n\nconst onCommaKeyup = () => {\n if (!createAllowed.value) return\n const value = removeLastComma(search.value)\n createOrSelectKeyword(value)\n}\n\nconst showAdd = computed(() => {\n if (!createAllowed.value) return false\n if (loadingLocal.value) return false\n if (search.value.length < 2 || search.value.length > 255) return false\n if (fetchedItemsMinimal.value.size === 0) return true\n return ![...fetchedItemsMinimal.value.values()].some(\n (item) => item.name?.toLowerCase() === search.value!.toLowerCase()\n )\n})\n</script>\n\n<template>\n <div class=\"d-flex\">\n <ARow\n v-if=\"disabled && disabledAs === 'chips' && multiple\"\n :title=\"label\"\n >\n <KeywordRemoteAutocompleteCachedKeywordChip\n v-for=\"id in modelValueComputed\"\n :id=\"id\"\n :key=\"id\"\n :queue-id=\"queueId\"\n force-rounded\n class=\"mr-1 mb-1\"\n />\n </ARow>\n <ARow\n v-else-if=\"disabled && disabledAs === 'chips' && !multiple\"\n :title=\"label\"\n >\n <KeywordRemoteAutocompleteCachedKeywordChip\n :id=\"modelValueComputed\"\n :key=\"modelValueComputed\"\n :queue-id=\"queueId\"\n force-rounded\n />\n </ARow>\n <AFormRemoteAutocompleteWithCached\n v-else\n v-model=\"modelValueComputed\"\n v-model:search=\"search\"\n v-model:loading-local=\"loadingLocal\"\n v-model:fetched-items-minimal=\"fetchedItemsMinimal\"\n :use-cached=\"useCachedOfName\"\n :v=\"v$\"\n :required=\"requiredComputed\"\n :label=\"label\"\n :fetch-items-minimal=\"fetchItemsMinimal\"\n :multiple=\"multiple\"\n :clearable=\"clearable\"\n :disabled=\"disabled || undefined\"\n filter-by-field=\"text\"\n :filter-sort-by=\"null\"\n item-title=\"name\"\n item-value=\"id\"\n :data-cy=\"dataCy\"\n :min-search-chars=\"2\"\n min-search-text=\"common.damImage.keyword.filterMinChars\"\n @search-change=\"searchChange\"\n @keyup.enter=\"onEnterKeyup\"\n @keyup.,=\"onCommaKeyup\"\n >\n <template #item=\"{ props: itemSlotProps, item: itemSlotItem }\">\n <VListItem\n v-if=\"itemSlotItem\"\n v-bind=\"itemSlotProps\"\n @click.prevent=\"\"\n >\n <template\n v-if=\"multiple\"\n #prepend\n >\n <VCheckboxBtn\n :model-value=\"itemSlotIsSelected(itemSlotItem.value)\"\n :ripple=\"false\"\n />\n </template>\n <template #title>\n <KeywordRemoteAutocompleteCachedKeywordChip\n :id=\"itemSlotItem.value\"\n :key=\"itemSlotItem.value\"\n :queue-id=\"queueId\"\n :title=\"itemSlotItem.title\"\n text-only\n />\n </template>\n </VListItem>\n </template>\n <!--\n Pass only the chip's close. Its other props (`onMousedown`)\n would stop a press on the chip from opening the list.\n -->\n <template #chip=\"{ props: chipSlotProps, item: chipSlotItem }\">\n <KeywordRemoteAutocompleteCachedKeywordChip\n v-if=\"chipSlotItem\"\n :id=\"chipSlotItem.value\"\n :key=\"chipSlotItem.value\"\n :chip-props=\"{ 'onClick:close': chipSlotProps['onClick:close'] }\"\n :queue-id=\"queueId\"\n :title=\"chipSlotItem.title\"\n force-rounded\n />\n </template>\n <template #append-item>\n <VListItem\n v-if=\"showAdd\"\n class=\"a-keywords-append-item\"\n >\n <ABtnSecondary\n size=\"small\"\n :text=\"addNewKeywordText\"\n prepend-icon=\"mdi-plus-circle\"\n @click.stop=\"onCommaKeyup\"\n />\n </VListItem>\n </template>\n </AFormRemoteAutocompleteWithCached>\n </div>\n</template>\n\n<style lang=\"scss\" scoped>\n.a-keywords-append-item {\n position: sticky;\n bottom: 0;\n // Use the menu surface color. A white bar showed in the dark theme.\n background-color: rgb(var(--v-theme-surface));\n transform: translateY(8px);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BA,IAAMuB,IAAQC,GA8BRC,IAAOH,GAIPI,IAAgBC,EAAiBJ,EAAM,UAAU,GAEjDK,IAAqBC,EAAS;GAClC,MAAM;IACJ,OAAON,EAAM;GACf;GACA,IAAI,GAAU;IAEZ,EAAK,qBAAqBO,EAAQC,CAAQ,IAAI,CAAC,GAAGA,CAAQ,IAAIA,CAAQ;GACxE;EACF,CAAC,GAEKC,IAASC,EAAY,EAAE,GACvBC,IAAeD,EAAI,EAAK,GACxBE,IAAsBF,kBAAiC,IAAI,IAAI,CAAC,GAEhEG,IAAmBP,QAAe,CAAC,CAACN,EAAM,QAAQ,GAElD,EAAE,kBAAec,EAAY,GAE7BC,IAAQ,EACZ,oBAAoB,EAClB,UAAUC,EAAWH,CAAgB,EACvC,EACF,GAGMI,IAAKrB,EAAamB,GAAO,EAAE,sBAAmB,GAAG,EAAE,QAAQf,EAAM,gBAAgB,CAAC,GAElF,EAAE,cAAW,qBAAiB,yBAAqBkB,EAA6Bf,CAAa,GAC7FgB,IAAgBC,EAAcC,MAAoB,KAAA,CAAS,GAC3D,EAAE,8BAA0BC,GAAkB,KAAA,GAAWnB,CAAa,GAEtEoB,KAAkBC,GAAsBxB,EAAM,SAAS;EAC7D,IAAIyB,GAAYF,EAAe,GAC7B,MAAU,MAAM,sEAAsE;EAIxF,IAAM,EAAE,0BAAsBG,EAAwB1B,EAAM,WAAWG,CAAa,GAE9E,EAAE,gBAAY,qBAAiBwB,GAAsB;EAE3D,AADAC,EAAQC,IAAsBC,EAAY,GAC1CF,EAAQG,GAAoBC,EAAU;EAEtC,IAAMC,IAAoBvB,EAAI,EAAE,GAE1BwB,MAAg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
40
40
  },
41
41
  "./package.json": "./package.json"
42
42
  },
43
- "version": "2.0.0-rc.23",
43
+ "version": "2.0.0-rc.24",
44
44
  "license": "Apache-2.0",
45
45
  "repository": {
46
46
  "type": "git",
@@ -80,7 +80,7 @@
80
80
  "release:cleanup": "npx -y --allow-git=all github:anzusystems/release-tools#main cleanup"
81
81
  },
82
82
  "devDependencies": {
83
- "@anzusystems/common-admin": "2.0.0-rc.23",
83
+ "@anzusystems/common-admin": "2.0.0-rc.24",
84
84
  "@intlify/unplugin-vue-i18n": "^11.2.8",
85
85
  "@mdi/font": "^7.4.47",
86
86
  "@sentry/vite-plugin": "11.17.0",