PageSourceSearch

https://openscience.ge/6689.1cc60db91a2b41f0.js

js openscience.ge collected 2026-10-02 19:44:40 UTC 13,155 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[6689],{66689:(se,m,s)=>{s.r(m),s.d(m,{SuggestionsPageModule:()=>ee});var l=s(35103),I=s(43083),p=s(67522),v=s(45660),d=s(5496),e=s(98678);let S=(()=>{class i{constructor(t){this.suggestionService=t}resolve(t,n){return this.suggestionService.getTargetById(t.params.targetId).pipe((0,d.hC)())}static#e=this.\u0275fac=function(n){return new(n||i)(e.\u0275\u0275inject(v.f))};static#t=this.\u0275prov=e.\u0275\u0275defineInjectable({token:i,factory:i.\u0275fac})}return i})();var f=s(35841),P=s(53426),C=s(48358),g=s(27303),c=s(21160),y=s(49887),_=s(1367),A=s(98865),O=s(28709),T=s(42316),V=s(7094),B=s(58686),M=s(23485),j=s(30292),F=s(59846),x=s(96342),$=s(7519),R=s(69358),b=s(99292),E=s(41633),D=s(32326),w=s(14638);function U(i,r){1&i&&e.\u0275\u0275element(0,"ds-loading")}function z(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ds-suggestion-actions",12),e.\u0275\u0275listener("approveAndImport",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(a.approveAndImportAllSelected(o))})("notMineClicked",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.notMineAllSelected())}),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2).ngVar,n=e.\u0275\u0275nextContext();e.\u0275\u0275property("isBulk",!0)("isCollectionFixed",n.isCollectionFixed(t.page))}}function G(i,r){1&i&&e.\u0275\u0275element(0,"i",13)}const k=function(i){return[i]};function L(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"li",17)(1,"ds-suggestion-list-item",18),e.\u0275\u0275listener("notMineClicked",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(a.notMine(o))})("selected",function(o){const u=e.\u0275\u0275restoreView(t).$implicit,h=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(h.onSelected(u,o))})("approveAndImport",function(o){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(4);return e.\u0275\u0275resetView(a.approveAndImport(o))}),e.\u0275\u0275elementEnd()()}if(2&i){const t=r.$implicit,n=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("object",t)("isSelected",n.selectedSuggestions[t.id])("isCollectionFixed",n.isCollectionFixed(e.\u0275\u0275pureFunction1(3,k,t)))}}function N(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ds-pagination",14),e.\u0275\u0275listener("paginationChange",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext(3);return e.\u0275\u0275resetView(o.onPaginationChange())}),e.\u0275\u0275elementStart(1,"ul",15),e.\u0275\u0275template(2,L,2,5,"li",16),e.\u0275\u0275elementEnd()()}if(2&i){const t=e.\u0275\u0275nextContext(2).ngVar,n=e.\u0275\u0275nextContext();e.\u0275\u0275property("paginationOptions",n.paginationOptions)("sortOptions",n.paginationSortConfig)("collectionSize",null==t||null==t.pageInfo?null:t.pageInfo.totalElements)("hideGear",!1)("hidePagerWhenSinglePage",!1)("hidePaginationDetail",!1),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",null==t?null:t.page)}}const W=function(i){return["/items",i]};function X(i,r){if(1&i){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div")(1,"h2"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementStart(5,"a",6),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",7)(11,"button",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const o=e.\u0275\u0275nextContext().ngVar,a=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(a.onToggleSelectAll(o.page))}),e.\u0275\u0275text(12,"Select / Deselect All"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"em"),e.\u0275\u0275text(14),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,z,1,2,"ds-suggestion-actions",9),e.\u0275\u0275template(16,G,1,0,"i",10),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(17,N,3,7,"ds-pagination",11),e.\u0275\u0275pipe(18,"async"),e.\u0275\u0275elementEnd()}if(2&i){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(3,10,t.translateSuggestionType())," ",e.\u0275\u0275pipeBind1(4,12,"reciter.suggestion.suggestionFor")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(20,W,t.researcherUuid)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.researcherName),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(8,14,"reciter.suggestion.from.source")," ",e.\u0275\u0275pipeBind1(9,16,t.translateSuggestionSource())," "),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1("(",t.getSelectedSuggestionsCount(),")"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.getSelectedSuggestionsCount()>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isBulkOperationPending),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(18,18,t.processing$))}}function K(i,r){1&i&&(e.\u0275\u0275elementStart(0,"ds-alert",19),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&i&&(e.\u0275\u0275property("type","alert-info"),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"reciter.suggestion.not-found")," "))}function H(i,r){if(1&i&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,U,1,0,"ds-loading",4),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275template(3,X,19,22,"div",4),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275template(5,K,3,4,"ds-alert",5),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275elementContainerEnd()),2&i){const t=r.ngVar,n=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,3,n.processing$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(4,5,n.processing$)&&(null==t||null==t.pageInfo?null:t.pageInfo.totalElements)>0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!(e.\u0275\u0275pipeBind1(6,7,n.processing$)||0!=(null==t||null==t.pageInfo?null:t.pageInfo.totalElements)&&t))}}let J=(()=>{class i{constructor(t,n,o,a,u,h,te,ne,ie){this.authService=t,this.notificationService=n,this.paginationService=o,this.route=a,this.router=u,this.suggestionService=h,this.suggestionTargetsStateService=te,this.translateService=ne,this.workspaceItemService=ie,this.paginationOptions=Object.assign(new A.r,{id:"sp",pageSizeOptions:[5,10,20,40,60]}),this.paginationSortConfig=new _.o("trust",_.S.DESC),this.defaultConfig=Object.assign(new j.R,{sort:this.paginationSortConfig}),this.processing$=new f.X(!1),this.suggestionsRD$=new f.X({}),this.selectedSuggestions={},this.isBulkOperationPending=!1}ngOnInit(){this.targetRD$=this.route.data.pipe((0,C.U)(t=>t.suggestionTargets),(0,F.Gh)(this.router,this.authService)),this.targetId$=this.targetRD$.pipe((0,d.Gp)(),(0,C.U)(t=>
1t.id)),this.targetRD$.pipe((0,d.Gp)(),(0,g.b)(t=>{this.suggestionTarget=t,this.suggestionId=t.id,this.researcherName=t.display,this.suggestionSource=t.source,this.researcherUuid=this.suggestionService.getTargetUuid(t)}),(0,c.w)(()=>this.updatePage())).subscribe(),this.suggestionTargetsStateService.dispatchMarkUserSuggestionsAsVisitedAction()}onPaginationChange(){this.updatePage().subscribe()}updatePage(){this.processing$.next(!0);const t=this.paginationService.getFindListOptions(this.paginationOptions.id,this.defaultConfig,this.paginationOptions).pipe((0,y.x)());return(0,P.a)([this.targetId$,t]).pipe((0,c.w)(([n,o])=>this.suggestionService.getSuggestions(n,o.elementsPerPage,o.currentPage,o.sort)),(0,d.hC)(),(0,g.b)(n=>{this.processing$.next(!1),this.suggestionsRD$.next(n.hasSucceeded?n.payload:null),this.suggestionService.clearSuggestionRequests()}))}notMine(t){this.suggestionService.notMine(t).pipe((0,g.b)(()=>this.suggestionTargetsStateService.dispatchRefreshUserSuggestionsAction()),(0,c.w)(()=>this.updatePage())).subscribe()}notMineAllSelected(){this.isBulkOperationPending=!0,this.suggestionService.notMineMultiple(Object.values(this.selectedSuggestions)).pipe((0,g.b)(t=>{this.suggestionTargetsStateService.dispatchRefreshUserSuggestionsAction(),this.isBulkOperationPending=!1,this.selectedSuggestions={},t.success>0&&this.notificationService.success(this.translateService.get("reciter.suggestion.notMine.bulk.success",{count:t.success})),t.fails>0&&this.notificationService.error(this.translateService.get("reciter.suggestion.notMine.bulk.error",{count:t.fails}))}),(0,c.w)(()=>this.updatePage())).subscribe()}approveAndImport(t){this.suggestionService.approveAndImport(this.workspaceItemService,t.suggestion,t.collectionId).pipe((0,g.b)(n=>{const o=this.translateService.instant("reciter.suggestion.approveAndImport.success",{workspaceItemId:n.id});this.notificationService.success("",o,{timeOut:0},!0),this.suggestionTargetsStateService.dispatchRefreshUserSuggestionsAction()}),(0,c.w)(()=>this.updatePage())).subscribe()}approveAndImportAllSelected(t){this.isBulkOperationPending=!0,this.suggestionService.approveAndImportMultiple(this.workspaceItemService,Object.values(this.selectedSuggestions),t.collectionId).pipe((0,g.b)(n=>{this.suggestionTargetsStateService.dispatchRefreshUserSuggestionsAction(),this.isBulkOperationPending=!1,this.selectedSuggestions={},n.success>0&&this.notificationService.success(this.translateService.get("reciter.suggestion.approveAndImport.bulk.success",{count:n.success})),n.fails>0&&this.notificationService.error(this.translateService.get("reciter.suggestion.approveAndImport.bulk.error",{count:n.fails}))}),(0,c.w)(()=>this.updatePage())).subscribe()}onSelected(t,n){n?this.selectedSuggestions[t.id]=t:delete this.selectedSuggestions[t.id]}onToggleSelectAll(t){this.getSelectedSuggestionsCount()>0?this.selectedSuggestions={}:t.forEach(n=>{this.selectedSuggestions[n.id]=n})}getSelectedSuggestionsCount(){return Object.keys(this.selectedSuggestions).length}isCollectionFixed(t){return this.suggestionService.isCollectionFixed(t)}translateSuggestionSource(){return this.suggestionService.translateSuggestionSource(this.suggestionSource)}translateSuggestionType(){return this.suggestionService.translateSuggestionType(this.suggestionSource)}static#e=this.\u0275fac=function(n){return new(n||i)(e.\u0275\u0275directiveInject(O.e8),e.\u0275\u0275directiveInject(T.T),e.\u0275\u0275directiveInject(M.N),e.\u0275\u0275directiveInject(p.gz),e.\u0275\u0275directiveInject(p.F0),e.\u0275\u0275directiveInject(v.f),e.\u0275\u0275directiveInject(V.A),e.\u0275\u0275directiveInject(x.sK),e.\u0275\u0275directiveInject(B.p))};static#t=this.\u0275cmp=e.\u0275\u0275defineComponent({type:i,selectors:[["ds-suggestion-page"]],decls:5,vars:3,consts:[[1,"container"],[1,"row"],[1,"col-12"],[4,"ngVar"],[4,"ngIf"],[3,"type",4,"ngIf"],["target","_blank",3,"routerLink"],[1,"mb-3","mt-3"],[1,"btn","btn-light",3,"click"],["class","mt-2 ml-2",3,"isBulk","isCollectionFixed","approveAndImport","notMineClicked",4,"ngIf"],["class","fas fa-circle-notch fa-spin",4,"ngIf"],[3,"paginationOptions","sortOptions","collectionSize","hideGear","hidePagerWhenSinglePage","hidePaginationDetail","paginationChange",4,"ngIf"],[1,"mt-2","ml-2",3,"isBulk","isCollectionFixed","approveAndImport","notMineClicked"],[1,"fas","fa-circle-notch","fa-spin"],[3,"paginationOptions","sortOptions","collectionSize","hideGear","hidePagerWhenSinglePage","hidePaginationDetail","paginationChange"],[1,"list-unstyled"],["class","mt-4 mb-4",4,"ngFor","ngForOf"],[1,"mt-4","mb-4"],[3,"object","isSelected","isCollectionFixed","notMineClicked","selected","approveAndImport"],[3,"type"]],template:function(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,H,7,9,"ng-container",3),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementEnd()()()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("ngVar",e.\u0275\u0275pipeBind1(4,1,o.suggestionsRD$)))},dependencies:[l.sg,l.O5,p.rH,$.w,R.LoadingComponent,b.Q,E.g,D.O,w.B,l.Ov,x.X$]})}return i})();var Q=s(54818),Y=s(64561);let Z=(()=>
1{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:i});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({providers:[S],imports:[p.Bz.forChild([{path:":targetId",resolve:{suggestionTargets:S,breadcrumb:Y.t},data:{title:"admin.notifications.recitersuggestion.page.title",breadcrumbKey:"admin.notifications.recitersuggestion",showBreadcrumbsFluid:!1},canActivate:[Q.J],runGuardsAndResolvers:"always",component:J}])]})}return i})();var q=s(12177);let ee=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#t=this.\u0275mod=e.\u0275\u0275defineNgModule({type:i});static#n=this.\u0275inj=e.\u0275\u0275defineInjector({imports:[l.ez,I.m,q.r,Z]})}return i})()}}]);

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.