1(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[2272],{32272:(D,u,t)=>{"use strict";t.r(u),t.d(u,{DsDynamicLookupRelationExternalSourceTabComponent:()=>$});var e=t(94650),r=t(14292),_=t(36872),m=t(31388),p=(t(46623),t(54004)),s=t(63900),C=t(68675),d=t(28652),h=t(4177),g=t(19025),O=t(24702),y=t(51117),P=(t(33609),t(22979),t(77467)),x=t(68285),I=t(34793),M=t(9769),f=t(36895),S=t(41971),T=t(48106),b=t(70714),R=t(35278),L=t(82656),B=t(98605),U=t(89383);const A=function(a,l){return{repeatable:a,listId:l}};function K(a,l){if(1&a){const n=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ds-viewable-collection",8),e.\u0275\u0275listener("importObject",function(c){e.\u0275\u0275restoreView(n);const i=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(i.import(c))}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275elementEnd()}if(2&a){const n=e.\u0275\u0275nextContext().ngVar,o=e.\u0275\u0275nextContext();e.\u0275\u0275property("@fadeIn",void 0)("objects",n)("selectionConfig",e.\u0275\u0275pureFunction2(10,A,o.repeatable,o.listId))("config",e.\u0275\u0275pipeBind1(1,8,o.currentPagination$))("hideGear",!0)("context",o.context)("importable",!0)("importConfig",o.importConfig)}}function W(a,l){1&a&&(e.\u0275\u0275element(0,"ds-themed-loading",9),e.\u0275\u0275pipe(1,"translate")),2&a&&e.\u0275\u0275propertyInterpolate("message",e.\u0275\u0275pipeBind1(1,1,"loading.search-results"))}function j(a,l){1&a&&(e.\u0275\u0275element(0,"ds-error",9),e.\u0275\u0275pipe(1,"translate")),2&a&&e.\u0275\u0275propertyInterpolate("message",e.\u0275\u0275pipeBind1(1,1,"error.search-results"))}function F(a,l){1&a&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&a&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"search.results.empty")," "))}function V(a,l){if(1&a&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,K,2,13,"ds-viewable-collection",5),e.\u0275\u0275template(2,W,2,3,"ds-themed-loading",6),e.\u0275\u0275template(3,j,2,3,"ds-error",6),e.\u0275\u0275template(4,F,3,3,"div",7),e.\u0275\u0275elementContainerEnd()),2&a){const n=l.ngVar;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==n?null:n.hasSucceeded)&&!(null!=n&&n.isLoading)&&(null==n||null==n.payload||null==n.payload.page?null:n.payload.page.length)>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!n||(null==n?null:n.isLoading)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==n?null:n.hasFailed)&&(!(null!=n&&n.errorMessage)||400!=(null==n?null:n.statusCode))),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",0==(null==n||null==n.payload||null==n.payload.page?null:n.payload.page.length)||400==(null==n?null:n.statusCode))}}let $=(()=>{const l=class{constructor(o,c,i,v,z,G){this.router=o,this.searchConfigService=c,this.externalSourceService=i,this.modalService=v,this.selectableListService=z,this.paginationService=G,this.importedObject=new e.EventEmitter,this.initialPagination=Object.assign(new h.r,{id:"spc",pageSize:5}),this.subs=[]}ngOnInit(){this.externalSource.entityTypes.pipe((0,x.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,s.w)(o=>(""===o.query&&(o.query=this.query),this.externalSourceService.getExternalSourceEntries(this.externalSource.id,o).pipe((0,C.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(g.a,{size:"lg",container:"ds-dynamic-lookup-relation-modal"});const c=this.modalRef.componentInstance.compRef$.pipe((0,O.tz)(),(0,p.U)(i=>i.instance));this.subs.push(c.subscribe(i=>{i.externalSourceEntry=o,i.item=this.item,i.relationship=this.relationship,i.label=this.label,i.relatedEntityType=this.relatedEntityType})),this.subs.push(c.pipe((0,s.w)(i=>i.importedObject)).subscribe(i=>{this.selectableListService.selectSingle(this.listId,i),this.importedObject.emit(i)}))}ngOnDestroy(){this.subs.filter(o=>
1(0,O.Uh)(o)).forEach(o=>o.unsubscribe())}resetRoute(){this.paginationService.updateRoute(this.searchConfigService.paginationID,{page:1,pageSize:5})}};let a=l;return l.\u0275fac=function(c){return new(c||l)(e.\u0275\u0275directiveInject(I.F0),e.\u0275\u0275directiveInject(_.U),e.\u0275\u0275directiveInject(m.G),e.\u0275\u0275directiveInject(M.FF),e.\u0275\u0275directiveInject(y.w),e.\u0275\u0275directiveInject(P.N))},l.\u0275cmp=e.\u0275\u0275defineComponent({type:l,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:r.SEARCH_CONFIG_SERVICE,useClass:_.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,i){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,V,5,4,"ng-container",4),e.\u0275\u0275pipe(15,"async"),e.\u0275\u0275elementEnd()()()),2&c){let v;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==(v=e.\u0275\u0275pipeBind1(8,8,i.searchConfigService.paginatedSearchOptions))?null:v.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."+i.externalSource.id)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngVar",e.\u0275\u0275pipeBind1(15,14,i.entriesRD$))}},dependencies:[f.O5,S.q,T.Z,b.c,R.p,L.k,B.g,f.Ov,U.X$],data:{animation:[d.Ji,d.Ic]}}),a})()},19025:(D,u,t)=>{"use strict";t.d(u,{a:()=>E});var e=t(25330),r=t(94650);function _(p,s){}const m=["*"];let E=(()=>{const s=class extends e.F{getComponentName(){return"ExternalSourceEntryImportModalComponent"}importThemedComponent(d){return t(41562)(`./${d}/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 t.e(9635).then(t.bind(t,29635))}};let p=s;return s.\u0275fac=function(){let d;return function(g){return(d||(d=r.\u0275\u0275getInheritedFactory(s)))(g||s)}}(),s.\u0275cmp=r.\u0275\u0275defineComponent({type:s,selectors:[["ds-themed-external-source-entry-import-modal"]],features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:m,decls:5,vars:0,consts:[["vcr",""],["content",""]],template:function(h,g){1&h&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,_,0,0,"ng-template",null,0,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementStart(2,"div",null,1),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd())},encapsulation:2}),p})()},41562:(D,u,t)=>
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":[38594,9635,8592,8594]};function r(_){if(!t.o(e,_))return Promise.resolve().then(()=>{var p=new Error("Cannot find module '"+_+"'");throw p.code="MODULE_NOT_FOUND",p});var m=e[_],E=m[0];return Promise.all(m.slice(1).map(t.e)).then(()=>t(E))}r.keys=()=>Object.keys(e),r.id=41562,D.exports=r}}]);
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.