1(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[5669],{5598:(b,C,t)=>{"use strict";t.d(C,{m:()=>v});var n=t(73664),e=t(29710);const r=["*"];function p(d,u){}let v=(()=>{var d;class u extends e.J{constructor(){super(...arguments),this.searchComplete=new n.bkB,this.theOnlySelectable=new n.bkB,this.selectionChange=new n.bkB,this.inAndOutputNames=["entityType","searchComplete","theOnlySelectable","selectionChange"]}getComponentName(){return"CollectionDropdownComponent"}importThemedComponent(y){return t(80882)(`./${y}/app/shared/collection-dropdown/collection-dropdown.component`)}importUnthemedComponent(){return t.e(9620).then(t.bind(t,69620))}static#e=d=()=>(this.\u0275fac=(()=>{let y;return function(E){return(y||(y=n.xGo(u)))(E||u)}})(),this.\u0275cmp=n.VBU({type:u,selectors:[["ds-collection-dropdown"]],inputs:{entityType:"entityType"},outputs:{searchComplete:"searchComplete",theOnlySelectable:"theOnlySelectable",selectionChange:"selectionChange"},features:[n.Vt3],ngContentSelectors:r,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,E){1&h&&(n.NAR(),n.PeT(0,p,0,0,"ng-template",null,0,n.C5r),n.rj2(2,"div",null,1),n.SdG(4),n.eux())},encapsulation:2}))}return d(),u})()},18155:(b,C,t)=>{"use strict";t.d(C,{N:()=>E});var n=t(73664),u=(t(70998),t(25788),t(40940),t(19192),t(79669),t(29710));t(30726);const y=["*"];function h(P,a){}let E=(()=>{var P;class a extends u.J{constructor(){super(...arguments),this.inAndOutputNames=["linkType","searchResults","searchConfig","showCsvExport","showThumbnails","sortConfig","viewMode","configuration","disableHeader","selectable","context","hidePaginationDetail","selectionConfig","contentChange","deselectObject","selectObject"],this.contentChange=new n.bkB,this.deselectObject=new n.bkB,this.selectObject=new n.bkB}getComponentName(){return"SearchResultsComponent"}importThemedComponent(_){return t(18527)(`./${_}/app/shared/search/search-results/search-results.component`)}importUnthemedComponent(){return t.e(9965).then(t.bind(t,49965))}static#e=P=()=>(this.\u0275fac=(()=>{let _;return function(I){return(_||(_=n.xGo(a)))(I||a)}})(),this.\u0275cmp=n.VBU({type:a,selectors:[["ds-search-results"]],inputs:{linkType:"linkType",searchResults:"searchResults",searchConfig:"searchConfig",showCsvExport:"showCsvExport",showThumbnails:"showThumbnails",sortConfig:"sortConfig",viewMode:"viewMode",configuration:"configuration",disableHeader:"disableHeader",selectable:"selectable",context:"context",hidePaginationDetail:"hidePaginationDetail",selectionConfig:"selectionConfig"},outputs:{contentChange:"contentChange",deselectObject:"deselectObject",selectObject:"selectObject"},features:[n.Vt3],ngContentSelectors:y,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(T,I){1&T&&(n.NAR(),n.PeT(0,h,0,0,"ng-template",null,0,n.C5r),n.rj2(2,"div",null,1),n.SdG(4),n.eux())},encapsulation:2}))}return P(),a})()},18527:(b,C,t)=>
1{var n={"./custom/app/shared/search/search-results/search-results.component":[77290,9965,7290]};function e(r){if(!t.o(n,r))return Promise.resolve().then(()=>{var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d});var p=n[r],v=p[0];return Promise.all(p.slice(1).map(t.e)).then(()=>t(v))}e.keys=()=>Object.keys(n),e.id=18527,b.exports=e},56066:(b,C,t)=>{"use strict";t.d(C,{m:()=>y});var n=t(72200),e=t(73664),r=t(68018),p=t(5598),v=t(15202),d=t(58003);const u=h=>({"d-none":h});function R(h,E){1&h&&e.nrm(0,"ds-loading")}let y=(()=>{var h;class E{constructor(a){this.activeModal=a,this.selectedEvent=new e.bkB,this.loading=!0}selectObject(a){this.loading=!0,this.selectedEvent.emit(a)}closeCollectionModal(){this.activeModal.dismiss(!1)}theOnlySelectable(a){this.selectedEvent.emit(a)}searchComplete(){this.loading=!1}isLoading(){return!!this.loading}static#e=h=()=>(this.\u0275fac=function(M){return new(M||E)(e.rXU(d.Lw))},this.\u0275cmp=e.VBU({type:E,selectors:[["ds-submission-import-external-collection"]],outputs:{selectedEvent:"selectedEvent"},decls:8,vars:8,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"selectionChange","searchComplete","ngClass","entityType"]],template:function(M,_){1&M&&(e.j41(0,"div")(1,"div",0),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"button",1),e.bIt("click",function(){return _.closeCollectionModal()}),e.k0s()(),e.j41(5,"div",2),e.nVh(6,R,1,0,"ds-loading"),e.j41(7,"ds-collection-dropdown",3),e.bIt("selectionChange",function(I){return _.selectObject(I)})("searchComplete",function(){return _.searchComplete()}),e.k0s()()()),2&M&&(e.R7$(2),e.SpI("",e.bMT(3,4,"dso-selector.select.collection.head")," "),e.R7$(4),e.vxM(_.isLoading()?6:-1),e.R7$(),e.Y8G("ngClass",e.eq3(6,u,_.isLoading()))("entityType",_.entityType))},dependencies:[n.YU,p.m,v.v,r.h,r.D9],styles:[".btn-close[_ngcontent-%COMP%]:focus{outline:none!important}"]}))}return h(),E})()},80882:(b,C,t)=>
1{var n={"./custom/app/shared/collection-dropdown/collection-dropdown.component":[86525,6525]};function e(r){if(!t.o(n,r))return Promise.resolve().then(()=>{var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d});var p=n[r],v=p[0];return t.e(p[1]).then(()=>t(v))}e.keys=()=>Object.keys(n),e.id=80882,b.exports=e},85669:(b,C,t)=>{"use strict";t.r(C),t.d(C,{ExternalSourceEntryImportModalComponent:()=>U,ImportType:()=>s});var n=t(72200),e=t(73664),r=t(68018),p=t(25558),v=t(96697),d=t(61206),u=t(68841),R=t(40940),y=t(61880),h=t(4093),E=t(56066),P=t(79104),a=t(9847),M=t(79669),_=t(39210),T=t(76089),I=t(8417),x=t(30726),A=t(18155),g=t(2615),D=t(58003);const L=i=>({repeatable:!1,listId:i});function B(i,O){if(1&i&&(e.j41(0,"div")(1,"a",15),e.EFF(2),e.k0s()()),2&i){const l=e.XpG();e.R7$(),e.Y8G("href",e.mNQ(l.uri.value),e.B4B),e.R7$(),e.JRh(l.uri.value)}}function S(i,O){if(1&i){const l=e.RV6();e.j41(0,"ds-search-results",16),e.nI1(1,"async"),e.bIt("deselectObject",function(){g.eBV(l);const m=e.XpG();return g.Njj(m.deselectEntity())})("selectObject",function(m){g.eBV(l);const o=e.XpG();return g.Njj(o.selectEntity(m))}),e.k0s()}if(2&i){const l=e.XpG();e.Y8G("searchResults",e.bMT(1,9,l.localEntitiesRD$))("sortConfig",null==l.lookupRelationService.searchConfig?null:l.lookupRelationService.searchConfig.sort)("searchConfig",l.lookupRelationService.searchConfig)("selectable",!0)("disableHeader",!0)("hidePaginationDetail",!0)("selectionConfig",e.eq3(11,L,l.entityListId))("linkType",l.linkTypes.ExternalLink)("context",l.context)}}function j(i,O){if(1&i){const l=e.RV6();e.j41(0,"div",11)(1,"h5",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",8)(5,"input",17),e.bIt("click",function(){g.eBV(l);const m=e.XpG();return g.Njj(m.selectNewAuthority())}),e.k0s(),e.j41(6,"label",18),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()}if(2&i){const l=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,l.labelPrefix+"authority")),e.R7$(3),e.Y8G("checked",l.selectedImportType===l.importType.NewAuthority),e.R7$(2),e.JRh(e.bMT(8,5,l.labelPrefix+"authority.new"))}}var s=function(i){return i.None="None",i.LocalEntity="LocalEntity",i.LocalAuthority="LocalAuthority",i.NewEntity="NewEntity",i.NewAuthority="NewAuthority",i}(s||{});let U=(()=>{var i;class O{constructor(c,m,o,f,k,N,W){this.modal=c,this.lookupRelationService=m,this.modalService=o,this.selectService=f,this.itemService=k,this.notificationsService=N,this.translateService=W,this.labelPrefix="submission.sections.describe.relationship-lookup.external-source.import-modal.",this.linkTypes=M.n,this.context=R.o.EntitySearchModalWithNameVariants,this.entityListId="external-source-import-entity",this.authorityListId="external-source-import-authority",this.importType=s,this.selectedImportType=s.None,this.importedObject=new e.bkB,this.authorityEnabled=!1}ngOnInit(){this.uri=y.O.first(this.externalSourceEntry.metadata,"dc.identifier.uri");const c=Object.assign(new I.W,{id:"external-entry-import",pageSize:5});this.searchOptions=Object.assign(new x.C({query:this.externalSourceEntry.value,pagination:c})),this.localEntitiesRD$=this.lookupRelationService.getLocalResults(this.relationship,this.searchOptions)}close(){this.modal.close()}import(){switch(this.selectedImportType){case s.LocalEntity:this.importLocalEntity();break;case s.NewEntity:this.importNewEntity();break;case s.LocalAuthority:this.importLocalAuthority();break;case s.NewAuthority:this.importNewAuthority()}this.selectedImportType=s.None,this.deselectAllLists(),this.close()}importLocalEntity(){void 0!==this.selectedEntity&&(this.notificationsService.success(this.translateService.get(this.labelPrefix+this.label+".added.local-entity")),this.importedObject.emit(this.selectedEntity))}importNewEntity(){this.modalRef=this.modalService.open(E.m,{size:"lg"}),this.modalRef.componentInstance.entityType=this.relatedEntityType.label,this.modalRef.componentInstance.selectedEvent.pipe((0,p.n)(c=>this.itemService.importExternalSourceEntry(this.externalSourceEntry,c.collection.id).pipe((0,h.yd)(),(0,h.Bo)(),(0,v.s)(1)))).subscribe(c=>{this.lookupRelationService.removeLocalResultsCache();const m=Object.assign(new _.H,{indexableObject:c});this.notificationsService.success(this.translateService.get(this.labelPrefix+this.label+".added.new-entity")),this.modalRef.close(),this.importedObject.emit(m)})}importLocalAuthority(){}importNewAuthority(){}deselectEntity(){this.selectedEntity=void 0,this.selectedImportType===s.LocalEntity&&(this.selectedImportType=s.None)}selectEntity(c){this.selectedEntity=c,this.selectedImportType=s.LocalEntity}selectNewEntity(){this.selectedImportType===s.NewEntity?this.selectedImportType=s.None:(this.selectedImportType=s.NewEntity,this.deselectAllLists())}deselectAuthority(){this.selectedAuthority=void 0,this.selectedImportType===s.LocalAuthority&&(this.selectedImportType=s.None)}selectAuthority(c){this.selectedAuthority=c,this.selectedImportType=s.LocalAuthority}selectNewAuthority(){this.selectedImportType===s.NewAuthority?this.selectedImportType=s.None:(this.selectedImportType=s.NewAuthority,this.deselectAllLists())}deselectAllLists(){this.selectService.deselectAll(this.entityListId),this.selectService.deselectAll(this.authorityListId)}static#e=i=()=>(this.\u0275fac=function(m){return new(m||O)(e.rXU(D.Lw),e.rXU(u.c),e.rXU(D.Bq),e.rXU(T.K),e.rXU(d.ItemDataService),e.rXU(a.I),e.rXU(r.c$))},this.\u0275cmp=e.VBU({type:O,selectors:[["ds-base-external-source-entry-import-modal"]],decls:38,vars:29,consts:[[1,"modal-header"],["id","modal-title",1,"modal-title"],["type","button","aria-label","Close button","aria-describedby","modal-title",1,"btn-close",3,"click"],[1,"modal-body"],["id","external-source-entry-information",1,"mb-3"],["id","external-source-entry-entities",1,"mb-3"],[1,"fw-bold"],[3,"searchResults","sortConfig","searchConfig","selectable","disableHeader","hidePaginationDetail","selectionConfig","linkType","context"],[1,"ms-4","form-check"],["type","radio","name","new-entity","id","new-entity","value","new-entity",1,"form-check-input",3,"click","checked"],["for","new-entity",1,"form-check-label"],["id","external-source-entry-authority"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click","dsBtnDisabled"],[3,"href"],[3,"de
1selectObject","selectObject","searchResults","sortConfig","searchConfig","selectable","disableHeader","hidePaginationDetail","selectionConfig","linkType","context"],["type","radio","name","new-authority","id","new-authority","value","new-authority",1,"form-check-input",3,"click","checked"],["for","new-authority",1,"form-check-label"]],template:function(m,o){if(1&m&&(e.j41(0,"div",0)(1,"h4",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",2),e.bIt("click",function(){return o.modal.dismiss()}),e.k0s()(),e.j41(5,"div",3)(6,"h4"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",4)(10,"div")(11,"span"),e.EFF(12),e.k0s()(),e.nVh(13,B,3,3,"div"),e.k0s(),e.j41(14,"h4"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",5)(18,"h5",6),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nVh(21,S,2,13,"ds-search-results",7),e.nI1(22,"async"),e.j41(23,"div",8)(24,"input",9),e.bIt("click",function(){return o.selectNewEntity()}),e.k0s(),e.j41(25,"label",10),e.EFF(26),e.nI1(27,"translate"),e.k0s()()(),e.nVh(28,j,9,7,"div",11),e.k0s(),e.j41(29,"div",12)(30,"div")(31,"button",13),e.bIt("click",function(){return o.close()}),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div")(35,"button",14),e.bIt("click",function(){return o.import()}),e.EFF(36),e.nI1(37,"translate"),e.k0s()()()),2&m){let f;e.R7$(2),e.JRh(e.bMT(3,13,o.labelPrefix+o.label+".title")),e.R7$(5),e.JRh(e.bMT(8,15,o.labelPrefix+"head."+o.externalSourceEntry.externalSource)),e.R7$(5),e.JRh(o.externalSourceEntry.display),e.R7$(),e.vxM(o.uri?13:-1),e.R7$(2),e.JRh(e.bMT(16,17,o.labelPrefix+"select")),e.R7$(4),e.JRh(e.bMT(20,19,o.labelPrefix+"entities")),e.R7$(2),e.vxM((null==(f=e.bMT(22,21,o.localEntitiesRD$))||null==f.payload||null==f.payload.page?null:f.payload.page.length)>0?21:-1),e.R7$(3),e.Y8G("checked",o.selectedImportType===o.importType.NewEntity),e.R7$(2),e.JRh(e.bMT(27,23,o.labelPrefix+"entities.new")),e.R7$(2),e.vxM(o.authorityEnabled?28:-1),e.R7$(4),e.JRh(e.bMT(33,25,o.labelPrefix+"cancel")),e.R7$(3),e.Y8G("dsBtnDisabled",o.selectedImportType===o.importType.None),e.R7$(),e.JRh(e.bMT(37,27,o.labelPrefix+"import"))}},dependencies:[P.A,A.N,r.h,n.Jj,r.D9],styles:[".modal-footer[_ngcontent-%COMP%]{justify-content:space-between}"]}))}return i(),O})()}}]);
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.