1(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[2703,2938],{52938:(x,h,n)=>{"use strict";n.r(h),n.d(h,{DsDynamicLookupRelationExternalSourceTabComponent:()=>z});var e=n(98678),s=n(43718),d=n(76083),m=n(17390),p=(n(58346),n(48358)),O=n(21160),u=n(9302),D=n(95033),f=n(98865),M=n(15128),P=n(25839),T=n(46623),S=(n(27899),n(34269),n(23485)),b=n(5496),R=n(67522),L=n(65706),I=n(35103),i=n(61206),E=n(76924),a=n(64285),_=n(8560),g=n(68852),y=n(41633),A=n(96342);const K=function(r,v){return{repeatable:r,listId:v}};function W(r,v){if(1&r){const o=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ds-viewable-collection",8),e.\u0275\u0275listener("importObject",function(l){e.\u0275\u0275restoreView(o);const C=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(C.import(l))}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275elementEnd()}if(2&r){const o=e.\u0275\u0275nextContext().ngVar,c=e.\u0275\u0275nextContext();e.\u0275\u0275property("@fadeIn",void 0)("objects",o)("selectionConfig",e.\u0275\u0275pureFunction2(10,K,c.repeatable,c.listId))("config",e.\u0275\u0275pipeBind1(1,8,c.currentPagination$))("hideGear",!0)("context",c.context)("importable",!0)("importConfig",c.importConfig)}}function j(r,v){1&r&&(e.\u0275\u0275element(0,"ds-themed-loading",9),e.\u0275\u0275pipe(1,"translate")),2&r&&e.\u0275\u0275propertyInterpolate("message",e.\u0275\u0275pipeBind1(1,1,"loading.search-results"))}function F(r,v){1&r&&(e.\u0275\u0275element(0,"ds-error",9),e.\u0275\u0275pipe(1,"translate")),2&r&&e.\u0275\u0275propertyInterpolate("message",e.\u0275\u0275pipeBind1(1,1,"error.search-results"))}function V(r,v){1&r&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&r&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"search.results.empty")," "))}function $(r,v){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,W,2,13,"ds-viewable-collection",5),e.\u0275\u0275template(2,j,2,3,"ds-themed-loading",6),e.\u0275\u0275template(3,F,2,3,"ds-error",6),e.\u0275\u0275template(4,V,3,3,"div",7),e.\u0275\u0275elementContainerEnd()),2&r){const o=v.ngVar;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o?null:o.hasSucceeded)&&!(null!=o&&o.isLoading)&&(null==o||null==o.payload||null==o.payload.page?null:o.payload.page.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!o||(null==o?null:o.isLoading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==o?null:o.hasFailed)&&(!(null!=o&&o.errorMessage)||400!=(null==o?null:o.statusCode))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==o||null==o.payload||null==o.payload.page?null:o.payload.page.length)||400==(null==o?null:o.statusCode))}}let z=(()=>{class r{constructor(o,c,l,C,G,N){this.router=o,this.searchConfigService=c,this.externalSourceService=l,this.modalService=C,this.selectableListService=G,this.paginationService=N,this.importedObject=new e.EventEmitter,this.initialPagination=Object.assign(new f.r,{id:"spc",pageSize:5}),this.subs=[]}ngOnInit(){this.externalSource.entityTypes.pipe((0,b.hC)(),(0,p.U)(o=>o.hasSucceeded&&o.payload.totalElements>0?o.payload.page[0]:null)).subscribe(o=>{this.relatedEntityType=o}),this.resetRoute(),this.entriesRD$=this.searchConfigService.paginatedSearchOptions.pipe((0,O.w)(o=>(""===o.query&&(o.query=this.query),this.externalSourceService.getExternalSourceEntries(this.externalSource.id,o).pipe((0,u.O)(void 0))))),this.currentPagination$=this.paginationService.getCurrentPagination(this.searchConfigService.paginationID,this.initialPagination),this.importConfig={buttonLabel:"submission.sections.describe.relationship-lookup.external-source.import-button-title."+this.label}}import(o){this.modalRef=this.modalService.open(M.a,{size:"lg",container:"ds-dynamic-lookup-relation-modal"});const c=this.modalRef.componentInstance.compRef$.pipe((0,P.tz)(),(0,p.U)(l=>l.instance));this.subs.push(c.subscribe(l=>{l.externalSourceEntry=o,l.item=this.item,l.relationship=this.relationship,l.label=this.label,l.relatedEntityType=this.relatedEntityType})),this.subs.push(c.pipe((0,O.w)(l=>l.importedObject)).subscribe(l=>{this.selectableListService.selectSingle(this.listId,l),this.importedObject.emit(l)}))}ngOnDestroy(){this.subs.filter(o=>
1(0,P.Uh)(o)).forEach(o=>o.unsubscribe())}resetRoute(){this.paginationService.updateRoute(this.searchConfigService.paginationID,{page:1,pageSize:5})}static#e=this.\u0275fac=function(c){return new(c||r)(e.\u0275\u0275directiveInject(R.F0),e.\u0275\u0275directiveInject(d.U),e.\u0275\u0275directiveInject(m.G),e.\u0275\u0275directiveInject(L.FF),e.\u0275\u0275directiveInject(T.w),e.\u0275\u0275directiveInject(S.N))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["ds-dynamic-lookup-relation-external-source-tab"]],inputs:{label:"label",listId:"listId",item:"item",collection:"collection",relationship:"relationship",context:"context",query:"query",repeatable:"repeatable",externalSource:"externalSource"},outputs:{importedObject:"importedObject"},features:[e.\u0275\u0275ProvidersFeature([{provide:s.SEARCH_CONFIG_SERVICE,useClass:d.U}])],decls:16,vars:16,consts:[[1,"row"],[1,"col-4"],[1,"col-8"],[3,"query","inPlaceSearch","searchPlaceholder"],[4,"ngVar"],[3,"objects","selectionConfig","config","hideGear","context","importable","importConfig","importObject",4,"ngIf"],[3,"message",4,"ngIf"],["id","empty-external-entry-list",4,"ngIf"],[3,"objects","selectionConfig","config","hideGear","context","importable","importConfig","importObject"],[3,"message"],["id","empty-external-entry-list"]],template:function(c,l){if(1&c&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h3"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"ds-page-size-selector"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",2),e.\u0275\u0275element(7,"ds-themed-search-form",3),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementStart(10,"div")(11,"h3"),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(14,$,5,4,"ng-container",4),e.\u0275\u0275pipe(15,"async"),e.\u0275\u0275elementEnd()()()),2&c){let C;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,6,"submission.sections.describe.relationship-lookup.selection-tab.settings")),e.\u0275\u0275advance(4),e.\u0275\u0275property("query",null==(C=e.\u0275\u0275pipeBind1(8,8,l.searchConfigService.paginatedSearchOptions))?null:C.query)("inPlaceSearch",!0)("searchPlaceholder",e.\u0275\u0275pipeBind1(9,10,"submission.sections.describe.relationship-lookup.selection-tab.search-form.placeholder")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(13,12,"submission.sections.describe.relationship-lookup.selection-tab.title."+l.externalSource.id)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngVar",e.\u0275\u0275pipeBind1(15,14,l.entriesRD$))}},dependencies:[I.O5,i.q,E.Z,a.c,_.p,g.k,y.g,I.Ov,A.X$],data:{animation:[D.Ji,D.Ic]}})}return r})()},15128:(x,h,n)=>{"use strict";n.d(h,{a:()=>t});var e=n(46533),s=n(98678);function d(p,O){}const m=["*"];let t=(()=>{class p extends e.F{getComponentName(){return"ExternalSourceEntryImportModalComponent"}importThemedComponent(u){return n(41562)(`./${u}/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component`)}importUnthemedComponent(){return n.e(6864).then(n.bind(n,36864))}static#e=this.\u0275fac=function(){let u;return function(f){return(u||(u=s.\u0275\u0275getInheritedFactory(p)))(f||p)}}();static#t=this.\u0275cmp=s.\u0275\u0275defineComponent({type:p,selectors:[["ds-themed-external-source-entry-import-modal"]],features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:m,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(D,f){1&D&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,d,0,0,"ng-template",null,0,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275elementStart(2,"div",null,1),s.\u0275\u0275projection(4),s.\u0275\u0275elementEnd())},encapsulation:2})}return p})()},32703:(x,h,n)=>{"use strict";n.r(h),n.d(h,{DsDynamicLookupRelationExternalSourceTabComponent:()=>I});var e=n(52938),s=n(43718),d=n(76083),m=n(95033),t=n(98678),p=n(35103),O=n(61206),u=n(76924),D=n(64285),f=n(8560),M=n(68852),P=n(41633),T=n(96342);const B=function(i,E){return{repeatable:i,listId:E}};
1function U(i,E){if(1&i){const a=t.\u0275\u0275getCurrentView();t.\u0275\u0275elementStart(0,"ds-viewable-collection",8),t.\u0275\u0275listener("importObject",function(g){t.\u0275\u0275restoreView(a);const y=t.\u0275\u0275nextContext(2);return t.\u0275\u0275resetView(y.import(g))}),t.\u0275\u0275pipe(1,"async"),t.\u0275\u0275elementEnd()}if(2&i){const a=t.\u0275\u0275nextContext().ngVar,_=t.\u0275\u0275nextContext();t.\u0275\u0275property("@fadeIn",void 0)("objects",a)("selectionConfig",t.\u0275\u0275pureFunction2(10,B,_.repeatable,_.listId))("config",t.\u0275\u0275pipeBind1(1,8,_.currentPagination$))("hideGear",!0)("context",_.context)("importable",!0)("importConfig",_.importConfig)}}function S(i,E){1&i&&(t.\u0275\u0275element(0,"ds-themed-loading",9),t.\u0275\u0275pipe(1,"translate")),2&i&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"loading.search-results"))}function b(i,E){1&i&&(t.\u0275\u0275element(0,"ds-error",9),t.\u0275\u0275pipe(1,"translate")),2&i&&t.\u0275\u0275propertyInterpolate("message",t.\u0275\u0275pipeBind1(1,1,"error.search-results"))}function R(i,E){1&i&&(t.\u0275\u0275elementStart(0,"div",10),t.\u0275\u0275text(1),t.\u0275\u0275pipe(2,"translate"),t.\u0275\u0275elementEnd()),2&i&&(t.\u0275\u0275advance(1),t.\u0275\u0275textInterpolate1(" ",t.\u0275\u0275pipeBind1(2,1,"search.results.empty")," "))}function L(i,E){if(1&i&&(t.\u0275\u0275elementContainerStart(0),t.\u0275\u0275template(1,U,2,13,"ds-viewable-collection",5),t.\u0275\u0275template(2,S,2,3,"ds-themed-loading",6),t.\u0275\u0275template(3,b,2,3,"ds-error",6),t.\u0275\u0275template(4,R,3,3,"div",7),t.\u0275\u0275elementContainerEnd()),2&i){const a=E.ngVar;t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==a?null:a.hasSucceeded)&&!(null!=a&&a.isLoading)&&(null==a||null==a.payload||null==a.payload.page?null:a.payload.page.length)>0),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",!a||(null==a?null:a.isLoading)),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",(null==a?null:a.hasFailed)&&(!(null!=a&&a.errorMessage)||400!=(null==a?null:a.statusCode))),t.\u0275\u0275advance(1),t.\u0275\u0275property("ngIf",0==(null==a||null==a.payload||null==a.payload.page?null:a.payload.page.length)||400==(null==a?null:a.statusCode))}}let I=(()=>{class i extends e.DsDynamicLookupRelationExternalSourceTabComponent{static#e=this.\u0275fac=function(){let a;return function(g){return(a||(a=t.\u0275\u0275getInheritedFactory(i)))(g||i)}}();static#t=this.\u0275cmp=t.\u0275\u0275defineComponent({type:i,selectors:[["ds-dynamic-lookup-relation-external-source-tab"]],features:[t.\u0275\u0275ProvidersFeature([{provide:s.SEARCH_CONFIG_SERVICE,useClass:d.U}]),t.\u0275\u0275InheritDefinitionFeature],decls:16,vars:16,consts:[[1,"row"],[1,"col-4"],[1,"col-8"],[3,"query","inPlaceSearch","searchPlaceholder"],[4,"ngVar"],[3,"objects","selectionConfig","config","hideGear","context","importable","importConfig","importObject",4,"ngIf"],[3,"message",4,"ngIf"],["id","empty-external-entry-list",4,"ngIf"],[3,"objects","selectionConfig","config","hideGear","context","importable","importConfig","importObject"],[3,"message"],["id","empty-external-entry-list"]],template:function(_,g){if(1&_&&(t.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"h3"),t.\u0275\u0275text(3),t.\u0275\u0275pipe(4,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275element(5,"ds-page-size-selector"),t.\u0275\u0275elementEnd(),t.\u0275\u0275elementStart(6,"div",2),t.\u0275\u0275element(7,"ds-themed-search-form",3),t.\u0275\u0275pipe(8,"async"),t.\u0275\u0275pipe(9,"translate"),t.\u0275\u0275elementStart(10,"div")(11,"h3"),t.\u0275\u0275text(12),t.\u0275\u0275pipe(13,"translate"),t.\u0275\u0275elementEnd(),t.\u0275\u0275template(14,L,5,4,"ng-container",4),t.\u0275\u0275pipe(15,"async"),t.\u0275\u0275elementEnd()()()),2&_){let y;t.\u0275\u0275advance(3),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(4,6,"submission.sections.describe.relationship-lookup.selection-tab.settings")),t.\u0275\u0275advance(4),t.\u0275\u0275property("query",null==(y=t.\u0275\u0275pipeBind1(8,8,g.searchConfigService.paginatedSearchOptions))?null:y.query)("inPlaceSearch",!0)("searchPlaceholder",t.\u0275\u0275pipeBind1(9,10,"submission.sections.describe.relationship-lookup.selection-tab.search-form.placeholder")),t.\u0275\u0275advance(5),t.\u0275\u0275textInterpolate(t.\u0275\u0275pipeBind1(13,12,"submission.sections.describe.relationship-lookup.selection-tab.title."+g.externalSource.id)),t.\u0275\u0275advance(2),t.\u0275\u0275property("ngVar",t.\u0275\u0275pipeBind1(15,14,g.entriesRD$))}},dependencies:[p.O5,O.q,u.Z,D.c,f.p,M.k,P.g,p.Ov,T.X$],data:{animation:[m.Ji,m.Ic]}})}return i})()},41562:(x,h,n)=>
1{var e={"./custom/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/external-source-tab/external-source-entry-import-modal/external-source-entry-import-modal.component":[40073,6864,8592,73]};function s(d){if(!n.o(e,d))return Promise.resolve().then(()=>{var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p});var m=e[d],t=m[0];return Promise.all(m.slice(1).map(n.e)).then(()=>n(t))}s.keys=()=>Object.keys(e),s.id=41562,x.exports=s}}]);
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.