1"use strict";(self.webpackChunkharbor_portal=self.webpackChunkharbor_portal||[]).push([[4017],{4017(U,c,s){s.d(c,{ProjectLabelModule:()=>E});var m=s(3049),L=s(2565),d=s(7468),n=s(6040),e=s(5547),h=s(7702),u=s(4377),P=s(6838),p=s(4318);let b=(()=>{class r{constructor(o,t,i,l,a){this.route=o,this.router=t,this.userPermissionService=i,this.errorHandler=l,this.session=a}ngOnInit(){this.projectId=+this.route.snapshot.parent.parent.params.id,this.currentUser=this.session.getCurrentUser(),this.hasSignedIn=null!==this.session.getCurrentUser(),this.getLabelPermissionRule(this.projectId)}getLabelPermissionRule(o){const t=this.userPermissionService.getPermission(o,n.DC.LABEL.KEY,n.DC.LABEL.VALUE.CREATE),i=this.userPermissionService.getPermission(o,n.DC.LABEL.KEY,n.DC.LABEL.VALUE.UPDATE),l=this.userPermissionService.getPermission(o,n.DC.LABEL.KEY,n.DC.LABEL.VALUE.DELETE);(0,d.p)(t,i,l).subscribe(a=>{this.hasCreateLabelPermission=a[0],this.hasUpdateLabelPermission=a[1],this.hasDeleteLabelPermission=a[2]},a=>this.errorHandler.error(a))}static{this.\u0275fac=function(t){return new(t||r)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(n.OE),e.rXU(u.z),e.rXU(P.Q))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["app-project-config"]],standalone:!1,decls:3,vars:5,consts:[[1,"row"],[1,"col-lg-12","col-md-12","col-sm-12","col-xs-12","label-top"],[3,"projectId","scope","hasCreateLabelPermission","hasUpdateLabelPermission","hasDeleteLabelPermission"]],template:function(t,i){1&t&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"hbr-label",2),e.k0s()()),2&t&&(e.R7$(2),e.Y8G("projectId",i.projectId)("scope","p")("hasCreateLabelPermission",i.hasCreateLabelPermission)("hasUpdateLabelPermission",i.hasUpdateLabelPermission)("hasDeleteLabelPermission",i.hasDeleteLabelPermission))},dependencies:[p.U],styles:[".label-top[_ngcontent-%COMP%]{top:12px}"]})}}return r})();var C=s(5802);const v=[{path:"",component:b}];let E=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275mod=e.$C({type:r})}static{this.\u0275inj=C.G2t({imports:[m.iI.forChild(v),L.G]})}}return 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.