1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[3026],{6207:(E,f,e)=>{e.d(f,{x:()=>t});var s=e(59640),v=e(96354),T=e(91261),P=e(25913);function S(){return(0,T.hZ)(P.I,"suggestionTarget")}function u(i){return(0,s.Mz)(S(),r=>r.sources[i])}(0,s.UX)("suggestionNotifications");const C=i=>(0,s.Mz)(u(i),r=>r?.loaded||!1),y=i=>(0,s.Mz)(u(i),r=>r?.totalElements||0);var m=e(69470),I=e(2615);let t=(()=>{var i;class r{constructor(a){this.store=a}getSuggestionTargets(a){return this.store.pipe((0,s.Lt)(function b(i){return(0,s.Mz)(u(i),r=>r.targets)}(a)))}isSuggestionTargetsLoading(a){return this.store.pipe((0,s.Lt)(C(a)),(0,v.T)(d=>!d))}isSuggestionTargetsLoaded(a){return this.store.pipe((0,s.Lt)(C(a)))}isSuggestionTargetsProcessing(a){return this.store.pipe((0,s.Lt)((i=>(0,s.Mz)(u(i),r=>r?.processing||!1))(a)))}getSuggestionTargetsTotalPages(a){return this.store.pipe((0,s.Lt)(y(a)))}getSuggestionTargetsCurrentPage(a){return this.store.pipe((0,s.Lt)((i=>(0,s.Mz)(u(i),r=>r?.currentPage||0))(a)))}getSuggestionTargetsTotals(a){return this.store.pipe((0,s.Lt)(y(a)))}dispatchRetrieveSuggestionTargets(a,d,x){this.store.dispatch(new m.ri(a,d,x))}getCurrentUserSuggestionTargets(){return this.store.pipe((0,s.Lt)((0,s.Mz)(S(),i=>i?.currentUserTargets||[])))}hasUserVisitedSuggestions(){return this.store.pipe((0,s.Lt)((0,s.Mz)(S(),i=>i?.currentUserTargetsVisited||!1)))}dispatchMarkUserSuggestionsAsVisitedAction(){this.store.dispatch(new m.g3)}dispatchClearSuggestionTargetsAction(a){this.store.dispatch(new m.en(a))}dispatchRefreshUserSuggestionsAction(){this.store.dispatch(new m.eb)}static#t=i=()=>(this.\u0275fac=function(d){return new(d||r)(I.KVO(s.il))},this.\u0275prov=I.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}))}return i(),r})()},63026:(E,f,e)=>{e.r(f),e.d(f,{ROUTES:()=>k});var s=e(85643),v=e(59072),T=e(47861),P=e(72200),U=e(17705),S=e(38132),u=e(68018),b=e(96697),C=e(23294),M=e(31),V=e(89777),$=e(15202),y=e(2175),F=e(8417),R=e(93007),m=e(85955),I=e(6207),t=e(73664),i=e(2615),r=e(91029);const B=n=>["/entities/person/",n],a=n=>({total:n});function d(n,c){1&n&&(t.nrm(0,"ds-loading",4),t.nI1(1,"translate")),2&n&&t.Y8G("message",t.mNQ(t.bMT(1,2,"suggestion.loading")))}function x(n,c){1&n&&t.nrm(0,"ds-loading",7)}function G(n,c){1&n&&(t.j41(0,"div",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"suggestion.noTargets")," "))}function z(n,c){if(1&n){const g=t.RV6();t.j41(0,"tr",11)(1,"td")(2,"a",13),t.EFF(3),t.k0s()(),t.j41(4,"td")(5,"div",14)(6,"button",15),t.nI1(7,"translate"),t.bIt("click",function(){const l=i.eBV(g).$implicit,p=t.XpG(4);return i.Njj(p.redirectToSuggestions(l.id))}),t.j41(8,"span"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nrm(11,"i",16),t.k0s()()()()}if(2&n){const g=c.$implicit,o=t.XpG(4);t.R7$(2),t.Y8G("routerLink",t.eq3(11,B,o.getTargetUuid(g))),t.R7$(),t.JRh(g.display),t.R7$(3),t.Y8G("title",t.mNQ(t.i5U(7,5,"suggestion.button.review.title",t.eq3(13,a,g.total.toString()))+g.display)),t.R7$(3),t.SpI("",t.i5U(10,8,"suggestion.button.review",t.eq3(15,a,g.total.toString()))," ")}}function X(n,c){if(1&n&&(t.j41(0,"div",9)(1,"table",10)(2,"thead")(3,"tr",11)(4,"th",12),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"th",12),t.EFF(8),t.nI1(9,"translate"),t.k0s()()(),t.j41(10,"tbody"),t.Z7z(11,z,12,17,"tr",11,t.fX1),t.nI1(13,"async"),t.k0s()()()),2&n){const g=t.XpG(3);t.R7$(5),t.JRh(t.bMT(6,2,"suggestion.table.name")),t.R7$(3),t.JRh(t.bMT(9,4,"suggestion.table.actions")),t.R7$(3),t.Dyx(t.bMT(13,6,g.targets$))}}function O(n,c){if(1&n&&(t.nVh(0,G,3,3,"div",8),t.nI1(1,"async"),t.nVh(2,X,14,8,"div",9),t.nI1(3,"async")),2&n){let g,o;const l=t.XpG(2);t.vxM(0===(null==(g=t.bMT(1,2,l.targets$))?null:g.length)?0:-1),t.R7$(2),t.vxM(0!==(null==(o=t.bMT(3,4,l.targets$))?null:o.length)?2:-1)}}function N(n,c){if(1&n){const g=t.RV6();t.j41(0,"ds-pagination",6),t.nI1(1,"async"),t.bIt("paginationChange",function(){i.eBV(g);const l=t.XpG();return i.Njj(l.getSuggestionTargets())}),t.nVh(2,x,1,0,"ds-loading",7),t.nI1(3,"async"),t.nVh(4,O,4,6),t.nI1(5,"async"),t.k0s()}
1if(2&n){const g=t.XpG();t.Y8G("paginationOptions",g.paginationConfig)("collectionSize",t.bMT(1,6,g.totalElements$))("hideGear",!1)("retainScrollPosition",!1),t.R7$(2),t.vxM(t.bMT(3,8,g.isTargetsProcessing())?2:-1),t.R7$(2),t.vxM(!0!==t.bMT(5,10,g.isTargetsProcessing())?4:-1)}}let K=(()=>{var n;class c{constructor(o,l,p,w){this.paginationService=o,this.suggestionTargetsStateService=l,this.suggestionService=p,this.router=w,this.sourceId=(0,U.hFB)(),this.paginationConfig=Object.assign(new F.W,{id:"stp_"+this.sourceId,pageSizeOptions:[5,10,20,40,60]}),this.subs=[]}ngOnInit(){this.targets$=this.suggestionTargetsStateService.getSuggestionTargets(this.sourceId()),this.totalElements$=this.suggestionTargetsStateService.getSuggestionTargetsTotals(this.sourceId())}ngAfterViewInit(){this.subs.push(this.suggestionTargetsStateService.isSuggestionTargetsLoaded(this.sourceId()).pipe((0,b.s)(1)).subscribe(()=>{this.getSuggestionTargets()}))}isTargetsLoading(){return this.suggestionTargetsStateService.isSuggestionTargetsLoading(this.sourceId())}isTargetsProcessing(){return this.suggestionTargetsStateService.isSuggestionTargetsProcessing(this.sourceId())}redirectToSuggestions(o){this.router.navigate([(0,R.jV)(o)])}ngOnDestroy(){this.suggestionTargetsStateService.dispatchClearSuggestionTargetsAction(this.sourceId()),this.subs.filter(o=>(0,V.a4)(o)).forEach(o=>o.unsubscribe())}getSuggestionTargets(){this.paginationService.getCurrentPagination(this.paginationConfig.id,this.paginationConfig).pipe((0,C.F)(),(0,b.s)(1)).subscribe(o=>{this.suggestionTargetsStateService.dispatchRetrieveSuggestionTargets(this.sourceId(),o.pageSize,o.currentPage)})}getTargetUuid(o){return this.suggestionService.getTargetUuid(o)}static#t=n=()=>(this.\u0275fac=function(l){return new(l||c)(t.rXU(M.m),t.rXU(I.x),t.rXU(m.F),t.rXU(r.Ix))},this.\u0275cmp=t.VBU({type:c,selectors:[["ds-publication-claim"]],inputs:{sourceId:[1,"sourceId"]},decls:10,vars:9,consts:[[1,"container"],[1,"row"],[1,"col-12"],["id","header",1,"border-bottom","pb-2"],[1,"container",3,"message"],[3,"paginationOptions","collectionSize","hideGear","retainScrollPosition"],[3,"paginationChange","paginationOptions","collectionSize","hideGear","retainScrollPosition"],["message","'suggestion.loading' | translate",1,"container"],["role","alert",1,"alert","alert-info","w-100","mb-2","mt-2"],[1,"table-responsive","mt-2"],["id","epeople",1,"table","table-striped","table-hover","table-bordered"],[1,"text-center"],["scope","col"],["target","_blank",3,"routerLink"],[1,"btn-group","edit-field"],[1,"btn","btn-outline-primary","btn-sm",3,"click","title"],[1,"fas","fa-lightbulb"]],template:function(l,p){1&l&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nVh(6,d,2,4,"ds-loading",4),t.nI1(7,"async"),t.nVh(8,N,6,12,"ds-pagination",5),t.nI1(9,"async"),t.k0s()()()),2&l&&(t.R7$(4),t.JRh(t.bMT(5,3,"suggestion.title")),t.R7$(2),t.vxM(t.bMT(7,5,p.isTargetsLoading())?6:-1),t.R7$(2),t.vxM(!0!==t.bMT(9,7,p.isTargetsLoading())?8:-1))},dependencies:[y.e,S.Wk,$.v,u.h,P.Jj,u.D9],encapsulation:2}))}return n(),c})();var A=e(79479),Q=e(66902),D=e(30607),J=e(22052),Y=e(41907),Z=e(96745),L=e(40883),j=e(12627),W=e(75170);let H=(()=>{var n;class c{static#t=n=()=>(this.\u0275fac=function(l){return new(l||c)},this.\u0275cmp=t.VBU({type:c,selectors:[["ds-admin-notifications-publication-claim-page"]],decls:1,vars:0,template:function(l,p){1&l&&t.nrm(0,"ds-suggestion-sources")},dependencies:[W._],encapsulation:2}))}return n(),c})();var h=e(80883);const k=[{canActivate:[s.t],path:`${h.VZ}`,component:H,pathMatch:"full",resolve:{breadcrumb:v.S,suggestionTargetParams:A.B},data:{title:"admin.notifications.publicationclaim.page.title",breadcrumbKey:"admin.notifications.publicationclaim",showBreadcrumbsFluid:!1}},{canActivate:[s.t],path:`${h.VZ}/:sourceId`,pathMatch:"full",component:K,resolve:{breadcrumb:T.o,openaireQualityAssuranceEventsParams:A.B},data:{title:"admin.notifications.publicationclaim.page.title",breadcrumbKey:"admin.notifications.publicationclaim",showBreadcrumbsFluid:!1}},{canActivate:[s.t],path:`${h.rn}/:sourceId`,component:L.V,pathMatch:"full",resolve:{breadcrumb:T.o,openaireQualityAssuranceTopicsParams:j.G},data:{title:"admin.quality-assurance.page.title",breadcrumbKey:"admin.quality-assurance",showBreadcrumbsFluid:!1}},{canActivate:[s.t],path:`${h.rn}/:sourceId/target/:targetId`,component:L.V,pathMatch:"full",resolve:{breadcrumb:v.S,open
1aireQualityAssuranceTopicsParams:j.G},data:{title:"admin.quality-assurance.page.title",breadcrumbKey:"admin.quality-assurance",showBreadcrumbsFluid:!1}},{canActivate:[s.t],path:`${h.rn}`,component:Y.E,pathMatch:"full",resolve:{breadcrumb:v.S,openaireQualityAssuranceSourceParams:Z.t,sourceData:J.c},data:{title:"admin.notifications.source.breadcrumbs",breadcrumbKey:"admin.notifications.source",showBreadcrumbsFluid:!1}},{canActivate:[s.t],path:`${h.rn}/:sourceId/:topicId`,component:Q.k,pathMatch:"full",resolve:{breadcrumb:T.o,openaireQualityAssuranceEventsParams:D.h},data:{title:"admin.notifications.event.page.title",breadcrumbKey:"admin.notifications.event",showBreadcrumbsFluid:!1}}]}}]);
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.