1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[2915],{49839:(C,c,e)=>{e.d(c,{H:()=>l});var l=function(a){return a.WORKFLOW_TASK_OPTION_APPROVE="submit_approve",a.WORKFLOW_TASK_OPTION_DECLINE_TASK="submit_decline_task",a.WORKFLOW_TASK_OPTION_EDIT_METADATA="submit_edit_metadata",a.ADVANCED_WORKFLOW_TASK_OPTION_RATING="submit_score",a.WORKFLOW_TASK_OPTION_REJECT="submit_reject",a.WORKFLOW_TASK_OPTION_RETURN_TO_POOL="return_to_pool",a.ADVANCED_WORKFLOW_TASK_OPTION_SELECT_REVIEWER="submit_select_reviewer",a}(l||{})},22915:(C,c,e)=>{e.r(c),e.d(c,{ClaimedTaskActionsRejectComponent:()=>E});var l=e(74523),a=e(31635),M=e(60177),t=e(54438),_=e(89417),b=e(7901),m=e(58003),d=e(68018),I=e(7673),p=e(3601),R=e(40645),D=e(79104),j=e(9847),f=e(64537),A=e(33735),P=e(49839),g=e(36372);function h(n,s){1&n&&(t.nrm(0,"p",3),t.nI1(1,"translate")),2&n&&t.Y8G("innerHTML",t.bMT(1,1,"submission.workflow.tasks.claimed.reject_help"),t.npT)}function k(n,s){1&n&&(t.j41(0,"span"),t.nrm(1,"i",4),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"submission.workflow.tasks.generic.processing"),""))}function v(n,s){1&n&&(t.j41(0,"span"),t.nrm(1,"i",5),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"submission.workflow.tasks.claimed.reject.submit"),""))}function K(n,s){1&n&&(t.j41(0,"span"),t.nrm(1,"i",4),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&n&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"submission.workflow.tasks.generic.processing"),""))}function W(n,s){1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"submission.workflow.tasks.claimed.reject.reason.submit")))}function B(n,s){if(1&n){const o=t.RV6();t.j41(0,"div",6)(1,"h4",7),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",8),t.bIt("click",function(){const i=t.eBV(o).dismiss;return t.Njj(i("Cross click"))}),t.k0s()(),t.j41(5,"div",9)(6,"div",10),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"form",11),t.bIt("ngSubmit",function(){t.eBV(o);const i=t.XpG();return t.Njj(i.submitTask())}),t.nrm(10,"textarea",12),t.nI1(11,"translate"),t.j41(12,"button",13),t.nI1(13,"async"),t.DNE(14,K,4,3,"span"),t.nI1(15,"async"),t.DNE(16,W,3,3,"span"),t.nI1(17,"async"),t.k0s()()()}if(2&n){const o=t.XpG();t.R7$(2),t.JRh(t.bMT(3,7,"submission.workflow.tasks.claimed.reject.reason.title")),t.R7$(5),t.SpI(" ",t.bMT(8,9,"submission.workflow.tasks.claimed.reject.reason.info")," "),t.R7$(2),t.Y8G("formGroup",o.rejectForm),t.R7$(),t.FS9("placeholder",t.bMT(11,11,"submission.workflow.tasks.claimed.reject.reason.placeholder")),t.R7$(2),t.Y8G("dsBtnDisabled",!o.rejectForm.valid||t.bMT(13,13,o.processing$)),t.R7$(2),t.vxM(t.bMT(15,15,o.processing$)?14:-1),t.R7$(2),t.vxM(!0!==t.bMT(17,17,o.processing$)?16:-1)}}let E=class O extends A.r{constructor(s,o,r,i,T,u,L,F){super(s,o,r,i,T,u),this.injector=s,this.router=o,this.notificationsService=r,this.translate=i,this.searchService=T,this.requestService=u,this.formBuilder=L,this.modalService=F}ngOnInit(){this.rejectForm=this.formBuilder.group({reason:["",_.k0.required]})}submitTask(){this.modalRef.close("Send Button"),super.submitTask()}createbody(){const s=this.rejectForm.get("reason").value;return Object.assign(super.createbody(),{reason:s})}openRejectModal(s){this.rejectForm.reset(),this.modalRef=this.modalService.open(s)}reloadObjectExecution(){return(0,I.of)(this.object)}convertReloadedObject(s){return(0,l.A)(function*(){return Object.assign(new f.q,s,{indexableObject:s})})()}static{this.\u0275fac=function(o){return new(o||O)(t.rXU(t.zZn),t.rXU(b.Ix),t.rXU(j.I),t.rXU(d.c$),t.rXU(R.S),t.rXU(p.B),t.rXU(_.ze),t.rXU(m.Bq))}}static{this.\u0275cmp=t.VBU({type:O,selectors:[["ds-claimed-task-actions-reject"]],standalone:!0,features:[t.Vt3,t.aNF],decls:10,vars:11,consts:[["rejectTipContent",""],["rejectModal",""],[3,"click","className","ngbTooltip","dsBtnDisabled"],[3,"innerHTML"],[1,"fas","fa-circle-notch","fa-spin"],[1,"fa","fa-trash"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],["role","alert",1,"alert","alert-info"],[3,"ngSubmit","formGroup"],["formControlName","reason","rows","4",2,"width","100%",3,"placeholder"],["id","btn-chat","type","submit",1,"btn","btn-danger","btn-lg","btn-block","w-100","mt-3",3,"dsBtnDisabled"]],template:function(o,r){if(1&o){const i=t.RV6();t.DNE(0,h,2,3,"ng-template",null,0,t.C5r),t.j41(2,"button",2),t.nI1(3,"async"),t.bIt("click",function(){t.eBV(i);const u=t.sdS(9);return t.Njj(r.openRejectModal(u))}),t.DNE(4,k,4,3,"span"),t.nI1(5,"async"),t.DNE(6,v,4,3,"span"),t.nI1(7,"async"),t.k0s(),t.DNE(8,B,18,19,"ng-template",null,1,t.C5r)}if(2&o){const i=t.sdS(1);t.R7$(2),t.Y8G("className","btn btn-danger")("ngbTooltip",i)("dsBtnDisabled",t.bMT(3,5,r.processing$)),t.R7$(2),t.vxM(t.bMT(5,7,r.processing$)?4:-1),t.R7$(2),t.vxM(!0!==t.bMT(7,9,r.processing$)?6:-1)}},dependencies:[M.Jj,D.A,_.YN,_.qT,_.me,_.BC,_.cb,m.n8,m.md,_.X1,_.j4,_.JD,d.h,d.D9]})}};E=(0,a.Cg)([(0,g.FD)(P.H.WORKFLOW_TASK_OPTION_REJECT),(0,a.Sn)("design:paramtypes",[t.zZn,b.Ix,j.I,d.c$,R.S,p.B,_.ze,m.Bq])],E)}}]);
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.