PageSourceSearch

https://www.manuscriptorium.com/hub/chunk-MIBNZVDB.js

js manuscriptorium.com collected 2026-10-01 11:59:52 UTC 27,511 bytes, 9 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f6b6e6eb-bb25-540a-931a-159c4c7cbebf")}catch(e){}}();
3import{a as mt}from"./chunk-OWLRXBVQ.js";import{a as ft}from"./chunk-S5DRG3CN.js";import{a as lt}from"./chunk-5UQCCOJX.js";import{a as dt}from"./chunk-FOEBA2UI.js";import"./chunk-BSWOONOW.js";import{a as pt,b as ct,c as st}from"./chunk-UUE6M24H.js";import{a as Ke}from"./chunk-XV5QIMWT.js";import"./chunk-4KSEICF6.js";import{c as ae}from"./chunk-JPLQSIRA.js";import{a as Le}from"./chunk-F67WLCRU.js";import{a as oe}from"./chunk-GDGD3Y6P.js";import"./chunk-HIB5XO7Q.js";import"./chunk-EKYHFVDS.js";import{a as ie}from"./chunk-GCW4LMC3.js";import{b as Pe}from"./chunk-Y4TAQZ5L.js";import{b as $,c as Ye,g as Ze,i as ee}from"./chunk-OJGT5CO7.js";import"./chunk-ZIY5LUDO.js";import"./chunk-ZYUTWCO6.js";import"./chunk-LGTR2RZZ.js";import"./chunk-D7RJNFXS.js";import"./chunk-6DUIK7YH.js";import"./chunk-OGLZVKAI.js";import"./chunk-F3DIDVL3.js";import"./chunk-ED6XGBQZ.js";import{g as rt}from"./chunk-I3FUPXYI.js";import"./chunk-GOKWZW6W.js";import"./chunk-WUY2JFPV.js";import"./chunk-Y3UE7WYA.js";import{a as et,b as tt,d as it,e as at,g as ot,h as nt,i as te}from"./chunk-DIGISOJZ.js";import"./chunk-Z4P3RLRP.js";import"./chunk-PVZKWQQE.js";import{e as We,i as Xe,k as Je}from"./chunk-RS4OAOOQ.js";import"./chunk-3ILK6YWQ.js";import"./chunk-CAZIV44N.js";import"./chunk-VED26QIY.js";import"./chunk-UCBWKLJS.js";import"./chunk-XIEPXTT7.js";import{a as Ge,b as He}from"./chunk-Z5SC3XPW.js";import"./chunk-C7TPGH4O.js";import"./chunk-OCEDQH3D.js";import{a as $e}from"./chunk-QCZFMUQ2.js";import{c as Te,i as Re}from"./chunk-FYEFAVDI.js";import"./chunk-V32LTTP3.js";import"./chunk-CDLPTF5L.js";import"./chunk-JXYUH2JJ.js";import"./chunk-75MSKHQ5.js";import"./chunk-DBAVNV7D.js";import"./chunk-LZANT4A3.js";import"./chunk-2IL73E45.js";import"./chunk-VQTNL4J6.js";import{c as Ce,e as xe,f as ye}from"./chunk-NXGCLNSX.js";import"./chunk-6GTHYMO6.js";import"./chunk-LQWW6DAP.js";import"./chunk-QVMKUOA2.js";import{F as je,c as Ve,h as Ne,i as qe,j as Ae,l as B,o as Qe,s as ze,v as Ue}from"./chunk-DUEKGWVE.js";import{b as we,c as X}from"./chunk-SV4QHZ6R.js";import{m as ge}from"./chunk-J7WPYGOY.js";import{a as U,b as Me,c as be,k as E}from"./chunk-WZYMWVAN.js";import{c as De,d as Ee,e as Be,f as Oe,g as Fe,h as Z}from"./chunk-WO2N3BGC.js";import"./chunk-WHTYCSAG.js";import"./chunk-MIRAE4HP.js";import{a as Ie,b as J,c as ke,f as Y}from"./chunk-LKCBMZWZ.js";import"./chunk-VMBK3ESP.js";import{s as Se}from"./chunk-VQM3N5YY.js";import"./chunk-U2S4Q5VS.js";import"./chunk-7B3DFEIE.js";import"./chunk-QFRXUKCK.js";import{$b as y,$c as w,Bb as k,Bc as le,Ca as F,Eb as ue,Ec as d,Fc as s,G as K,Gc as h,Ja as me,Nc as _e,Oc as he,P as q,Pc as de,Tc as ve,Ub as Q,Uc as S,Wb as C,Yb as x,Zc as l,_ as A,_b as T,_c as p,ac as M,ba as pe,bc as u,cc as o,dc as n,eb as fe,ec as b,ha as ce,hd as z,jb as i,lc as W,ma as _,nc as D,nd as R,o as L,pc as f,s as N,sa as P,t as ne,ta as I,ya as se,zc as re}from"./chunk-MPV5Q6GW.js";import{a as O,b as H}from"./chunk-THKSGHO2.js";var ut=(()=>{class t{constructor(){this.sanitizer=_(ge)}transform(e,a="image/png"){if(!e)return"";if(e.startsWith("data:image"))return this.sanitizer.bypassSecurityTrustUrl(e);let r=`data:${a};base64,${e}`;return this.sanitizer.bypassSecurityTrustUrl(r)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275pipe=ue({name:"base64Image",type:t,pure:!0})}}return t})();var _t=t=>({count:t}),Pt=t=>({id:t}),It=()=>[],kt=(t,c)=>c.id,ht=(t,c)=>c.key,Dt=(t,c)=>c.value;function Et(t,c){if(t&1&&(o(0,"div",6),d(1),l(2,"transloco"),n()),t&2){let e=f(2);i(),h(" ",w(2,1,"catalog_v2.metadata.previews_shown",S(4,_t,e.data().length))," ")}}function Bt(t,c){if(t&1&&(o(0,"div",3)(1,"div",5),d(2),l(3,"transloco"),n(),C(4,Et,3,6,"div",6),n()),t&2){let e=f();i(2),h(" ",w(3,2,"catalog_v2.metadata.records_to_edit",S(5,_t,e.count()))," "),i(2),x(e.data().length>0?4:-1)}}function Ot(t,c){if(t&1&&(o(0,"mat-chip",14),d(1),n()),t&2){let e=c.$implicit;u("disableRipple",!0),i(),s(e)}}function Ft(t,c){if(t&1&&(o(0,"mat-chip-set"),y(1,Ot,2,2,"mat-chip",14,T),n()),t&2){let e=f().$implicit,a=f().$implicit;i(),M(a[e.key]??ve(0,It))}}function Tt(t,c){if(t&1&&(d(0),l(1,"transloco")),t&2){let e=f(2).$implicit,a=f().$implicit;h(" ",p(1,1,e.valuePrefix+"."+a[e.key])," ")}}function Rt(t,c){if(t&1&&d(0),t&2){let e=f(2).$implicit,a=f().$implicit;h(" ",a[e.key]," ")}}function $t(t,c){if(t&1&&(o(0,"div",13),C(1,Tt,2,3)(2,Rt,1,1),n()),t&2){let e=f().$implicit,a=f().$implicit;i(),x(e.valuePrefix&&a[e.key]?1:2)}}function Vt(t,c){if(t&1&&(o(0,"div")(1,"div",12),d(2),l(3,"transloco"),n(),C(4,Ft,3,1,"mat-chip-set")(5,$t,3,1,"div",13),n()),t&2){let e=c.$implicit;i(2),s(p(3,2,e.label)),i(2),x(e.isArray?4:5)}}function Nt(t,c){if(t&1&&(o(0,"mat-chip",17),d(1),n()),t&2){let e=c.$implicit;le("diff-chip-unchanged",e.status==="unchanged")("diff-chip-added",e.status==="added")("diff-chip-removed",e.status==="removed"),u("disableRipple",!0),i(),s(e.value)}}function qt(t,c){if(t&1&&(o(0,"mat-chip-set"),y(1,Nt,2,8,"mat-chip",16,Dt),n()),t&2){let e=f().$implicit,a=f(),r=f().$implicit,m=f(2);i(),M(m.getArrayDiffItems(r[e.key],a[e.key],m.getModeForField(e.key)))}}function At(t,c){if(t&1&&(d(0),l(1,"transloco")),t&2){f();let e=de(0),a=f().$implicit;h(" ",p(1,1,a.valuePrefix+"."+e)," ")}}function Qt(t,c){if(t&1&&d(0),t&2){f();let e=de(0);h(" ",e," ")}}function zt(t,c){if(t&1&&(_e(0),o(1,"div",13),C(2,At,2,3)(3,Qt,1,1),n()),t&2){let e=f().$implicit,a=f(),r=f().$implicit,m=he(a[e.key]||r[e.key]);i(),le("diff-value-changed",a[e.key]&&a[e.key]!==r[e.key]),i(),x(e.valuePrefix&&m?2:3)}}function Ut(t,c){if(t&1&&(o(0,"div")(1,"div",12),d(2),l(3,"transloco"),n(),C(4,qt,3,0,"mat-chip-set")(5,zt,4,4,"div",15),n()),t&2){let e=c.$implicit;i(2),s(p(3,2,e.label)),i(2),x(e.isArray?4:5)}}function jt(t,c){if(t&1&&(o(0,"div",11),y(1,Ut,6,4,"div",null,ht),n()),t&2){let e=f(3);i(),M(e.fields)}}function Gt(t,c){if(t&1&&(o(0,"tr")(1,"td",8),b(2,"img",9),l(3,"base64Image"),l(4,"transloco"),o(5,"div",10),d(6),n()(),o(7,"td")(8,"div",11),y(9,Vt,6,4,"div",null,ht),n()(),o(11,"td"),C(12,jt,3,0,"div",11),n()()),t&2){let e,a=c.$implicit,r=f(2);i(2),u("src",p(3,5,a.image),fe)("alt",w(4,7,"catalog_v2.metadata.aria.item_image",S(10,Pt,a.id))),i(3),u("title",a.id),i(),s(a.id),i(3),M(r.fields),i(3),x((e=r.value())?12:-1,e)}}function Ht(t,c){if(t&1&&(o(0,"div",4)(1,"table",7)(2,"thead")(3,"tr"),b(4,"th",8),o(5,"th"),d(6),l(7,"transloco"),n(),o(8,"th"),d(9),l(10,"transloco"),n()()(),o(11,"tbody"),y(12,Gt,13,12,"tr",null,kt),n()()()),t&2){let e=f();i(6),s(p(7,2,"catalog_v2.metadata.diff.before")),i(3),s(p(10,4,"catalog_v2.metadata.diff.after")),i(3),M(e.data())}}var vt=(()=>{class t{constructor(){this.dropboxService=_(oe),this.count=F(0),this.value=R(),this.query=R("*:*"),this.loading=F(!1),this.data=F([]),this.castor=_(ae),this.keywordsMode=R("insert"),this.authorsMode=R("insert"),this.fields=[{key:"headline",label:"catalog_v2.metadata.fields.headline",isArray:!1},{key:"event",label:"catalog_v2.metadata.fields.event",isArray:!1},{key:"authors",label:"catalog_v2.metadata.fields.authors",isArray:!0},{key:"keywords",label:"catalog_v2.metadata.fields.keywords",isArray:!0},{key:"instructions",label:"catalog_v2.metadata.fields.instructions",isArray:!1,valuePrefix:"catalog_v2.metadata.instructions"}],this.query$=Me(this.query)}ngOnInit(){ne([this.query$]).pipe(pe(()=>{this.loading.set(!0)}),A(([e])=>ne([this.dropboxService.metadataGet(e).pipe(A(a=>this.dropboxService.imageDownloadBatch(a.filter(r=>r.type==="Dropbox"||r.type==="GoogleDrive").map(r=>({path:r.id,id:r.id,type:r.type}))).pipe(N(r=>a.map(m=>H(O({},m),{image:r.find(v=>v.id===m.id)?.thumbnail})))))),this.castor.solrSearch({query:e,rows:1})]).pipe(q(()=>this.loading.set(!1))))).subscribe(([e,a])=>{this.data.set(e),this.count.set(a.found)})}getModeForField(e){return e==="keywords"?this.keywordsMode():e==="authors"?this.authorsMode():"replace"}getArrayDiffItems(e,a,r){if(!a?.length)return e.map(m=>({value:m,status:"unchanged"}));switch(r){case"insert":{let m=a.filter(v=>!e.includes(v));return[...e.map(v=>({value:v,status:"unchanged"})),...m.map(v=>({value:v,status:"added"}))]}case"replace":{let m=e.filter(g=>a.includes(g)),v=e.filter(g=>!a.includes(g)),V=a.filter(g=>!e.includes(g));return[...m.map(g=>({value:g,status:"unchanged"})),...v.map(g=>({value:g,status:"removed"})),...V.map(g=>({value:g,status:"added"}))]}case"remove":return e.map(m=>({value:m,status:a.includes(m)?"removed":"unchanged"}))}}isArraySame(e,a){return rt(e,a).length===0}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["cat-v2-metadata-diff"]],inputs:{value:[1,"value"],query:[1,"query"],keywordsMode:[1,"keywordsMode"],authorsMode:[1,"authorsMode"]}
3,decls:5,vars:3,consts:[[1,"diff-card"],[3,"loading"],[1,"flex","flex-col"],[1,"diff-summary"],[1,"diff-table-wrap"],[1,"mat-label-large"],[1,"mat-label-small","opacity-70"],[1,"diff-table"],[1,"diff-col-media"],[1,"diff-thumb",3,"src","alt"],[1,"diff-id",3,"title"],[1,"flex","flex-col","gap-2"],[1,"diff-field-label"],[1,"diff-value"],[1,"diff-chip","diff-chip-unchanged",3,"disableRipple"],[1,"diff-value",3,"diff-value-changed"],[1,"diff-chip",3,"diff-chip-unchanged","diff-chip-added","diff-chip-removed","disableRipple"],[1,"diff-chip",3,"disableRipple"]],template:function(a,r){a&1&&(o(0,"mat-card",0),b(1,"aipb-loading",1),o(2,"div",2),C(3,Bt,5,7,"div",3),C(4,Ht,14,6,"div",4),n()()),a&2&&(i(),u("loading",r.loading()),i(2),x(r.loading()?-1:3),i(),x(r.data().length>0?4:-1))},dependencies:[lt,te,tt,at,ee,$,ut,E],styles:[`[_nghost-%COMP%]{display:block;--mat-chip-container-height: 24px;--mat-chip-container-shape-radius: 12px;--mat-chip-label-text-size: 12px;--mat-chip-outline-width: 1px}[_nghost-%COMP%]   .diff-card[_ngcontent-%COMP%]{padding:0;overflow:hidden}[_nghost-%COMP%]   .diff-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:16px}[_nghost-%COMP%]   .diff-table-wrap[_ngcontent-%COMP%]{overflow-x:auto;border-top:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%]   .diff-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;font-size:13px;color:var(--mat-sys-on-surface)}[_nghost-%COMP%]   .diff-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:8px 12px;text-align:left;white-space:nowrap;font-size:11px;font-weight:500;letter-spacing:.04em;text-transform:uppercase;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container);border-bottom:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%]   .diff-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--mat-sys-outline-variant)}[_nghost-%COMP%]   .diff-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:last-child   td[_ngcontent-%COMP%]{border-bottom:0}[_nghost-%COMP%]   .diff-table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover   td[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container-low)}[_nghost-%COMP%]   .diff-col-media[_ngcontent-%COMP%]{width:88px}[_nghost-%COMP%]   .diff-thumb[_ngcontent-%COMP%]{display:block;width:64px;height:64px;object-fit:cover;border-radius:6px;background:var(--mat-sys-surface-container-high)}[_nghost-%COMP%]   .diff-id[_ngcontent-%COMP%]{max-width:64px;margin-top:6px;overflow:hidden;font-family:monospace;font-size:11px;line-height:1.2;color:var(--mat-sys-on-surface-variant);text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%]   .diff-field-label[_ngcontent-%COMP%]{margin-bottom:2px;font-size:11px;font-weight:500;letter-spacing:.02em;color:var(--mat-sys-on-surface-variant)}[_nghost-%COMP%]   .diff-value[_ngcontent-%COMP%]{font-size:13px;color:var(--mat-sys-on-surface)}[_nghost-%COMP%]   .diff-value-changed[_ngcontent-%COMP%]{font-weight:600;color:#ea580c}[_nghost-%COMP%]   .diff-chip-unchanged[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: var(--mat-sys-surface-container-high);--mat-chip-label-text-color: var(--mat-sys-on-surface-variant);--mat-chip-outline-color: var(--mat-sys-outline-variant)}[_nghost-%COMP%]   .diff-chip-added[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #dcfce7;--mat-chip-label-text-color: #15803d;--mat-chip-outline-color: #86efac}[_nghost-%COMP%]   .diff-chip-removed[_ngcontent-%COMP%]{--mat-chip-elevated-container-color: #fee2e2;--mat-chip-label-text-color: #b91c1c;--mat-chip-outline-color: #fca5a5}[_nghost-%COMP%]   .diff-chip-removed[_ngcontent-%COMP%]     .mdc-evolution-chip__text-label{text-decoration:line-through}
4/*# sourceMappingURL=metadata-diff.component-IBOSH4BN.css.map */`]})}}return t})();var G=class extends B{constructor(c=[]){super(c)}add(c){let e=this.value??[];e.includes(c)||this.setValue([...e,c])}remove(c){this.setValue((this.value??[]).filter(e=>e!==c))}};var gt=(()=>{class t extends Ke{constructor(){super(...arguments),this.overlay=_(Se)}async open(e,a={}){this.ref&&(this.ref.close(),this.ref=void 0);let r=await this.loadComponent();return this.ref=this.dialog.open(r,H(O(O({},this.dialogConfig()),a),{data:e})),this.ref}async loadComponent(){return import("./chunk-H7RDQT5Z.js").then(e=>e.MetadataProgressDialogComponent)}dialogConfig(){return{hasBackdrop:!1,autoFocus:!1,positionStrategy:this.overlay.position().global().centerHorizontally().top("24px"),width:"50%"}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=me(t)))(r||t)}})()}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lt=t=>({q:t});function Kt(t,c){if(t&1&&(o(0,"span",1),d(1),l(2,"shorten"),n()),t&2){let e=c;u("title",e),i(),s(w(2,2,e,30))}}var Ct=(()=>{class t{constructor(){this.query=R(),this.searchQueryParser=_(mt),this.catalogV2Routing=_(ie),this.prettyQuery=z(()=>this.searchQueryParser.parse(this.query()||"")),this.searchRoute=z(()=>this.catalogV2Routing.searchDefaultRouteUrl())}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["cat-v2-metadata-header"]],inputs:{query:[1,"query"]},decls:5,vars:8,consts:[[1,"p-2","flex","flex-row","items-center","gap-3"],[1,"hidden","md:inline",3,"title"],["mat-button","",3,"routerLink","queryParams"]],template:function(a,r){if(a&1&&(o(0,"mat-card",0),C(1,Kt,3,5,"span",1),o(2,"a",2),d(3),l(4,"transloco"),n()()),a&2){let m;i(),x((m=r.prettyQuery())?1:-1,m),i(),u("routerLink",r.searchRoute())("queryParams",S(6,Lt,r.query())),i(),h(" ",p(4,4,"catalog_v2.metadata.back_to_search")," ")}},dependencies:[ke,$,ye,dt,E],encapsulation:2})}}return t})();var xt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["cat-v2-metadata-help-dialog"]],decls:58,vars:51,consts:[["mat-dialog-title",""],[1,"help-content"],[1,"help-intro"],[1,"help-section"],[1,"mat-title-small"],[1,"help-modes"],[1,"help-mode-insert"],[1,"help-mode-remove"],[1,"help-mode-replace"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(a,r){a&1&&(o(0,"h2",0),d(1),l(2,"transloco"),n(),o(3,"mat-dialog-content",1)(4,"p",2),d(5),l(6,"transloco"),n(),o(7,"section",3)(8,"h3",4),d(9),l(10,"transloco"),n(),o(11,"p"),d(12),l(13,"transloco"),n()(),o(14,"section",3)(15,"h3",4),d(16),l(17,"transloco"),n(),o(18,"p"),d(19),l(20,"transloco"),n(),o(21,"dl",5)(22,"dt",6),d(23),l(24,"transloco"),n(),o(25,"dd"),d(26),l(27,"transloco"),n(),o(28,"dt",7),d(29),l(30,"transloco"),n(),o(31,"dd"),d(32),l(33,"transloco"),n(),o(34,"dt",8),d(35),l(36,"transloco"),n(),o(37,"dd"),d(38),l(39,"transloco"),n()()(),o(40,"section",3)(41,"h3",4),d(42),l(43,"transloco"),n(),o(44,"p"),d(45),l(46,"transloco"),n()(),o(47,"section",3)(48,"h3",4),d(49),l(50,"transloco"),n(),o(51,"p"),d(52),l(53,"transloco"),n()()(),o(54,"mat-dialog-actions",9)(55,"button",10),d(56),l(57,"transloco"),n()()),a&2&&(i(),s(p(2,17,"catalog_v2.metadata.help.title")),i(4),s(p(6,19,"catalog_v2.metadata.help.intro")),i(4),s(p(10,21,"catalog_v2.metadata.help.single_fields_title")),i(3),s(p(13,23,"catalog_v2.metadata.help.single_fields")),i(4),s(p(17,25,"catalog_v2.metadata.help.multi_fields_title")),i(3),s(p(20,27,"catalog_v2.metadata.help.multi_fields")),i(4),s(p(24,29,"catalog_v2.metadata.modes.insert")),i(3),s(p(27,31,"catalog_v2.metadata.help.mode_insert")),i(3),s(p(30,33,"catalog_v2.metadata.modes.remove")),i(3),s(p(33,35,"catalog_v2.metadata.help.mode_remove")),i(3),s(p(36,37,"catalog_v2.metadata.modes.replace")),i(3),s(p(39,39,"catalog_v2.metadata.help.mode_replace")),i(4),s(p(43,41,"catalog_v2.metadata.help.access_title")),i(3),s(p(46,43,"catalog_v2.metadata.help.access")),i(4),s(p(50,45,"catalog_v2.metadata.help.preview_title")),i(3),s(p(53,47,"catalog_v2.metadata.help.preview")),i(4),s(p(57,49,"ui.buttons.close")))},dependencies:[Z,Ee,Be,Fe,Oe,Y,J,X,E],styles:[`[_nghost-%COMP%]{display:block}.help-content[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.help-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;line-height:1.55}.help-intro[_ngcontent-%COMP%]{margin-bottom:4px;color:var(--mat-sys-on-surface)}.help-section[_ngcontent-%COMP%]{margin-top:20px}.help-section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 6px;color:var(--mat-sys-on-surface)}.help-modes[_ngcontent-%COMP%]{display:grid;grid-template-columns:max-content 1fr;gap:8px 14px;margin:12px 0 0;padding:12px 14px;border-radius:8px;background:var(--mat-sys-surface-container-low)}.help-modes[_ngcontent-%COMP%]   dt[_ngcontent-%COMP%]{margin:0;font-weight:600}.help-modes[_ngcontent-%COMP%]   dd[_ngcontent-%COMP%]{margin:0;line-height:1.5}.help-mode-insert[_ngcontent-%COMP%]{color:#15803d}.help-mode-remove[_ngcontent-%COMP%]{color:#b91c1c}.help-mode-replace[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}
5/*# sourceMappingURL=metadata-help-dialog.component-XBMOJCFN.css.map */`],changeDetection:0})}}return t})();var Mt=t=>({name:t});function Xt(t,c){if(t&1&&(o(0,"mat-button-toggle",19),d(1),l(2,"transloco"),n()),t&2){let e=c.$implicit;u("value",e),i(),s(p(2,2,"catalog_v2.metadata.modes."+e))}}function Jt(t,c){if(t&1){let e=W();o(0,"mat-chip-row",30),D("removed",function(){let r=P(e).$implicit,m=f();return I(m.removeAuthor(r))}),d(1),o(2,"button",31),l(3,"transloco"),o(4,"mat-icon"),d(5,"cancel"),n()()()}if(t&2){let e=c.$implicit;i(),h(" ",e," "),i(),Q("aria-label",w(3,2,"catalog_v2.metadata.aria.remove_author",S(5,Mt,e)))}}function Yt(t,c){if(t&1&&(o(0,"mat-button-toggle",19),d(1),l(2,"transloco"),n()),t&2){let e=c.$implicit;u("value",e),i(),s(p(2,2,"catalog_v2.metadata.modes."+e))}}function Zt(t,c){if(t&1){let e=W();o(0,"mat-chip-row",30),D("removed",function(){let r=P(e).$implicit,m=f();return I(m.removeKeyword(r))}),d(1),o(2,"button",31),l(3,"transloco"),o(4,"mat-icon"),d(5,"cancel"),n()()()}if(t&2){let e=c.$implicit;i(),h(" ",e," "),i(),Q("aria-label",w(3,2,"catalog_v2.metadata.aria.remove_keyword",S(5,Mt,e)))}}var yt="catalog_v2.metadata.confirm_save.title",bt=(()=>{class t{constructor(){this.catalogV2Env=_(Pe),this.route=_(Ce),this.router=_(xe),this.destroyRef=_(se),this.loading=F(!1),this.dropboxService=_(oe),this.metadataProgressDialog=_(gt),this.confirmDialog=_(Le),this.castor=_(ae),this.dialog=_(De),this.batchState=_(ft),this.batchQuery=this.batchState.items().map(e=>`${this.catalogV2Env.env.castorId}:"${e}"`).join(" OR "),this.query=be(this.route.queryParams.pipe(N(e=>e?.query||this.batchQuery)),{initialValue:this.batchQuery}),this.updatingQuery=F(null),this.saveDisabled=z(()=>this.loading()||this.updatingQuery()===this.query()),this.authorsControl=new G([]),this.keywordsControl
5=new G([]),this.arrayModes=["insert","remove","replace"],this.dissPub="DISS_PUB",this.dissIntern="DISS_INTERN",this.form=new Ae({headline:new B(""),event:new B(""),authors:this.authorsControl,authorsMode:new B("insert"),keywords:this.keywordsControl,keywordsMode:new B("insert"),instructions:new B(null)})}addToControl(e,a){a.value.trim()&&e.add(a.value.trim()),a.chipInput.clear()}removeAuthor(e){this.authorsControl.remove(e)}removeKeyword(e){this.keywordsControl.remove(e)}openHelp(){this.dialog.open(xt,{width:"560px",maxWidth:"90vw"})}onReset(){this.form.reset({headline:"",event:"",authors:[],authorsMode:"insert",keywords:[],keywordsMode:"insert",instructions:null})}onSave(){let e=this.query();this.castor.solrSearch({query:e,rows:1}).pipe(N(a=>({title:yt,content:"catalog_v2.metadata.records_to_edit",contentParams:{count:a.found}})),K(()=>L({title:yt})),A(a=>this.confirmDialog.open$(a)),U(this.destroyRef)).subscribe(a=>{a&&this.save(e)})}save(e){this.loading.set(!0);let a=O({},this.form.value);a.instructions||delete a.instructions,this.dropboxService.metadataUpdate(e,a,this.form.value.keywordsMode??void 0,this.form.value.authorsMode??void 0).pipe(K(()=>L(null)),q(()=>this.loading.set(!1)),U(this.destroyRef)).subscribe(r=>{r&&(this.updatingQuery.set(e),this.metadataProgressDialog.open$({jobId:r.job_id,returnUrl:this.router.url}).pipe(U(this.destroyRef)).subscribe(),this.pollUntilDone(r.job_id,e))})}pollUntilDone(e,a){this.dropboxService.metadataProgressPolling(e).pipe(K(()=>L(null)),q(()=>{this.updatingQuery()===a&&this.updatingQuery.set(null)}),U(this.destroyRef)).subscribe()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=k({type:t,selectors:[["cat-v2-metadata-page"]],decls:91,vars:75,consts:[["authorsChipGrid",""],["keywordsChipGrid",""],[1,"p-3","flex","flex-col","gap-3"],[3,"query"],[1,"flex","gap-3"],[1,"metadata-form","p-2"],[1,"flex","items-center","justify-between"],[1,"flex","items-center"],["mat-icon-button","","type","button",3,"click","title"],[1,"mt-3","flex","flex-col","gap-4",3,"formGroup"],[1,"field"],["for","metadata-headline",1,"field-label"],["subscriptSizing","dynamic",1,"w-full"],["formControlName","headline","id","metadata-headline","matInput","",3,"placeholder"],["for","metadata-event",1,"field-label"],["formControlName","event","id","metadata-event","matInput","",3,"placeholder"],[1,"field-header"],["for","metadata-authors",1,"field-label"],["aria-label","authors mode","formControlName","authorsMode","hideSingleSelectionIndicator",""],[3,"value"],["formControlName","authors"],["id","metadata-authors",3,"matChipInputTokenEnd","matChipInputFor","placeholder"],["for","metadata-keywords",1,"field-label"],["aria-label","keywords mode","formControlName","keywordsMode","hideSingleSelectionIndicator",""],["formControlName","keywords"],["id","metadata-keywords",3,"matChipInputTokenEnd","matChipInputFor","placeholder"],["for","metadata-instructions",1,"field-label"],["formControlName","instructions","i
5d","metadata-instructions",3,"placeholder"],["matButton","filled","data-testid","save-btn",3,"click","disabled"],[1,"flex-auto",3,"authorsMode","keywordsMode","query","value"],[3,"removed"],["matChipRemove",""]],template:function(a,r){if(a&1){let m=W();o(0,"div",2),b(1,"cat-v2-metadata-header",3),o(2,"div",4)(3,"mat-card",5)(4,"mat-card-header",6)(5,"mat-card-title"),d(6),l(7,"transloco"),n(),o(8,"div",7)(9,"button",8),l(10,"transloco"),l(11,"transloco"),D("click",function(){return P(m),I(r.onReset())}),o(12,"mat-icon"),d(13,"refresh"),n()(),o(14,"button",8),l(15,"transloco"),l(16,"transloco"),D("click",function(){return P(m),I(r.openHelp())}),o(17,"mat-icon"),d(18,"info"),n()()()(),o(19,"form",9)(20,"div",10)(21,"label",11),d(22),l(23,"transloco"),n(),o(24,"mat-form-field",12),b(25,"input",13),l(26,"transloco"),n()(),o(27,"div",10)(28,"label",14),d(29),l(30,"transloco"),n(),o(31,"mat-form-field",12),b(32,"input",15),l(33,"transloco"),n()(),o(34,"div",10)(35,"div",16)(36,"label",17),d(37),l(38,"transloco"),n(),o(39,"mat-button-toggle-group",18),y(40,Xt,3,4,"mat-button-toggle",19,T),n()(),o(42,"mat-form-field",12)(43,"mat-chip-grid",20,0),y(45,Jt,6,7,"mat-chip-row",null,T),n(),o(47,"input",21),l(48,"transloco"),D("matChipInputTokenEnd",function(V){return P(m),I(r.addToControl(r.authorsControl,V))}),n(),o(49,"mat-hint"),d(50),l(51,"transloco"),n()()(),o(52,"div",10)(53,"div",16)(54,"label",22),d(55),l(56,"transloco"),n(),o(57,"mat-button-toggle-group",23),y(58,Yt,3,4,"mat-button-toggle",19,T),n()(),o(60,"mat-form-field",12)(61,"mat-chip-grid",24,1),y(63,Zt,6,7,"mat-chip-row",null,T),n(),o(65,"input",25),l(66,"transloco"),D("matChipInputTokenEnd",function(V){return P(m),I(r.addToControl(r.keywordsControl,V))}),n(),o(67,"mat-hint"),d(68),l(69,"transloco"),n()()(),o(70,"div",10)(71,"label",26),d(72),l(73,"transloco"),n(),o(74,"mat-form-field",12)(75,"mat-select",27),l(76,"transloco"),o(77,"mat-option",19),d(78),l(79,"transloco"),n(),o(80,"mat-option",19),d(81),l(82,"transloco"),n(),o(83,"mat-option",19),d(84),l(85,"transloco"),n()()()(),o(86,"div")(87,"button",28),D("click",function(){return P(m),I(r.onSave())}),d(88),l(89,"transloco"),n()()()(),b(90,"cat-v2-metadata-diff",29),n()()}if(a&2){let m=re(44),v=re(62);i(),u("query",r.query()),i(5),s(p(7,33,"catalog_v2.metadata.title")),i(3),u("title",p(10,35,"catalog_v2.metadata.reset")),Q("aria-label",p(11,37,"catalog_v2.metadata.reset")),i(5),u("title",p(15,39,"catalog_v2.metadata.help.open")),Q("aria-label",p(16,41,"catalog_v2.metadata.help.open")),i(5),u("formGroup",r.form),i(3),h(" ",p(23,43,"catalog_v2.metadata.fields.headline")," "),i(3),u("placeholder",p(26,45,"catalog_v2.metadata.placeholders.headline")),i(4),h(" ",p(30,47,"catalog_v2.metadata.fields.event")," "),i(3),u("placeholder",p(33,49,"catalog_v2.metadata.placeholders.event")),i(5),h(" ",p(38,51,"catalog_v2.metadata.fields.authors")," "),i(3),M(r.arrayModes),i(5),M(r.authorsControl.value),i(2),u("matChipInputFor",m)("placeholder",p(48,53,"catalog_v2.metadata.placeholders.new_author")),i(3),s(p(51,55,"catalog_v2.metadata.hints.enter_to_add")),i(5),h(" ",p(56,57,"catalog_v2.metadata.fields.keywords")," "),i(3),M(r.arrayModes),i(5),M(r.keywordsControl.value),i(2),u("matChipInputFor",v)("placeholder",p(66,59,"catalog_v2.metadata.placeholders.new_keyword")),i(3),s(p(69,61,"catalog_v2.metadata.hints.enter_to_add")),i(4),h(" ",p(73,63,"catalog_v2.metadata.fields.instructions")," "),i(3),u("placeholder",p(76,65,"catalog_v2.metadata.placeholders.instructions")),i(2),u("value",null),i(),s(p(79,67,"catalog_v2.metadata.instructions.none")),i(2),u("value",r.dissPub),i(),s(p(82,69,"catalog_v2.metadata.instructions.DISS_PUB")),i(2),u("value",r.dissIntern),i(),s(p(85,71,"catalog_v2.metadata.instructions.DISS_INTERN")),i(3),u("disabled",r.saveDisabled()),i(),h(" ",p(89,73,"catalog_v2.metadata.save")," "),i(2),u("authorsMode",r.form.value.authorsMode)("keywordsMode",r.form.value.keywordsMode)("query",r.query())("value",r.form.value)}},dependencies:[$e,Re,Te,Y,J,Ie,je,Qe,Ve,Ne,qe,ze,Ue,He,Ge,$,X,we,vt,te,ot,nt,et,it,ee,Ze,Ye,st,pt,ct,Je,Xe,We,Ct,Z,E],styles:[`.metadata-form[_ngcontent-%COMP%]{flex:0 0 480px;max-width:100%}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.field-label[_ngcontent-%COMP%]{font:var(--mat-sys-body-medium);color:var(--mat-sys-on-surface-variant)}
6/*# sourceMappingURL=metadata-page.component-XIOD33BT.css.map */`]})}}return t})();var Sa=[{path:ie.metadataDefaultPath,component:bt}];
6export{Sa as MetadataRoutes};
7//# sourceMappingURL=chunk-MIBNZVDB.js.map
8
9//# debugId=f6b6e6eb-bb25-540a-931a-159c4c7cbebf

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.