PageSourceSearch

https://buildingtransparency.org/1470.2fbc929d9dd0eef5.js

js buildingtransparency.org collected 2026-09-24 18:17:35 UTC 10,623 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcqd_frontend=self.webpackChunkcqd_frontend||[]).push([[1470],{21470(v,m,a){a.d(m,{GroupsModule:()=>A});var d=a(63905),r=a(51188),g=a(73978),b=a(7809),h=a(57221),t=a(54438),_=a(60177),f=a(84998),c=a(90469),u=a(34003),G=a(80810),y=a(81141),T=a(5779),C=a(97381),E=a(15473),I=a(71517),R=a(30218),x=a(44751),j=a(38107),$=a(71337),M=a(89926),L=a(93718),X=a(97014);const w=e=>({locked:e});function V(e,l){if(1&e){const n=t.RV6();t.j41(0,"button",11),t.bIt("click",function(){t.eBV(n);const i=t.XpG(2);return t.Njj(i.onCreate(null))}),t.EFF(1),t.k0s()}if(2&e){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.labels.createUserGroup," ")}}function B(e,l){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"cqd-form-input",17),t.bIt("inputType",function(i){t.eBV(n);const s=t.XpG().$implicit;t.XpG(2);const p=t.sdS(8);return t.Njj(p.filter(i,s.field))}),t.k0s(),t.bVm()}if(2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("label",n.label)("disabled",n.notImplemented)}}function P(e,l){if(1&e&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(2),t.JRh(n.label)}}function k(e,l){if(1&e&&(t.qex(0),t.nrm(1,"p-sortIcon",18),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("field",n.sortKey)}}function D(e,l){if(1&e&&(t.j41(0,"th",14),t.DNE(1,B,2,2,"ng-container",15),t.j41(2,"div",16),t.DNE(3,P,3,1,"ng-container",15)(4,k,2,1,"ng-container",15),t.k0s()()),2&e){const n=l.$implicit;t.Y8G("ngClass","col-"+(l.index+1)),t.R7$(),t.Y8G("ngIf",n.filterable),t.R7$(),t.Y8G("pSortableColumn",n.sortable?n.sortKey:null),t.R7$(),t.Y8G("ngIf",!n.filterable),t.R7$(),t.Y8G("ngIf",n.sortable)}}function O(e,l){if(1&e&&(t.j41(0,"tr"),t.DNE(1,D,5,5,"th",12),t.nrm(2,"th",13),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",n.columnsToShow)}}function S(e,l){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"cqd-edit-button",24),t.bIt("clickEvent",function(){t.eBV(n);const i=t.XpG().$implicit,s=t.XpG(2);return t.Njj(s.onEdit(i))}),t.k0s(),t.bVm()}if(2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("cqdCanManage",n.myCapabilities)}}function Y(e,l){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"cqd-confirm-delete-btn",25),t.bIt("firstClickEvent",function(i){t.eBV(n);const s=t.XpG().$implicit,p=t.XpG(2);return t.Njj(p.showDeleteConfirmation(i,s.id))})("confirmClickEvent",function(){t.eBV(n);const i=t.XpG().$implicit,s=t.XpG(2);return t.Njj(s.onDelete(i))})("hideConfirm",function(){t.eBV(n);const i=t.XpG().$implicit,s=t.XpG(2);return t.Njj(s.onHideDeleteConfirmation(i.id))}),t.k0s(),t.bVm()}if(2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("trashIcon",!0)("cqdCanManage",n.myCapabilities)}}function q(e,l){if(1&e){const n=t.RV6();t.j41(0,"tr",19),t.bIt("click",function(){const i=t.eBV(n).$implicit,s=t.XpG(2);return t.Njj(s.onEdit(i))}),t.j41(1,"td")(2,"cqd-group-name",20)(3,"span",21),t.EFF(4),t.k0s()()(),t.j41(5,"td",21),t.EFF(6),t.k0s(),t.j41(7,"td",22)(8,"div",23),t.DNE(9,S,2,1,"ng-container",15)(10,Y,2,2,"ng-container",15),t.k0s()()()}if(2&e){const n=l.$implicit,o=t.XpG(2);t.Y8G("ngClass",t.eq3(8,w,o.isRowLocked(n.id))),t.R7$(2),t.Y8G("withIcon",!0)("isSynthetic",n.synthetic)("tooltip",o.tooltips.officialGroup),t.R7$(2),t.JRh(n.name),t.R7$(2),t.JRh(n.description),t.R7$(3),t.Y8G("ngIf",!o.isConfirmShownFor(n.id)),t.R7$(),t.Y8G("ngIf",!(n.public||n.synthetic))}}function F(e,l){if(1&e&&(t.j41(0,"tr")(1,"td",26),t.EFF(2),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(n.labels.emptyList)}}function N(e,l){if(1&e){const n=t.RV6();t.j41(0,"p-panel")(1,"p-header",3)(2,"div",4)(3,"span"),t.EFF(4),t.k0s(),t.DNE(5,V,2,1,"button",5),t.k0s()(),t.j41(6,"div",6)(7,"p-table",7,1),t.bIt("onLazyLoad",function(i){t.eBV(n);const s=t.XpG();return t.Njj(s.onLazyLoad(i))}),t.DNE(9,O,3,1,"ng-template",8)(10,q,11,10,"ng-template",9)(11,F,3,1,"ng-template",10),t.k0s()()()}if(2&e){const n=l.ngIf,o=t.XpG();t.R7$(4),t.JRh(o.labels.userGroups),t.R7$(),t.Y8G("ngIf",o.canCreateUserGroups),t.R7$(2),t.Y8G("value",n)("rows",o.rowsCount)("lazy",!0)("loading",o.loading)("totalRecords",o.totalCount)("paginator",o.totalCount>o.rowsCount)("lazyLoadOnInit",!1)}}function z(e,l){1&e&&t.nrm(0,"cqd-spinner")}let U=(()=>{class e extends c.Z{constructor(n){super(),this.sessionService=n,this.columnsToShow=[{sortKey:"name",field:"name",label:"Name",sortable:!1,filterable:!0},{sortKey:"description",field:"description",label:"Description",sortable:!1,filterable:!0,notImplemented:!0}],this.create=new t.bkB,this.tooltips=G.vX}onCreate(n){this.create.emit(n)}get canCreateUserGroups(){return this.sessionService.getSecurityPrincipal().canCreateUserGroups()}static{this.\u0275fac=function(o){return new(o||e)(t.rXU(u.Q))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cqd-groups-table"]],inputs:{columnsToShow:"columnsToShow"},outputs:{create:"create"},features:[t.Vt3],decls:3,vars:2,consts:[["listLoading",""],["dt",""],[4,"ngIf","ngIfElse"],[1,"main-header"],[1,"align-center-container"],["pButton","","type","button","class","button button-text button--light-blue button-small button-right",3,"click",4,"ngIf"],[1,"table","with-filter-inputs"],["cqdShowResponsiveTableHead","",3,"onLazyLoad","value","rows","lazy","loading","totalRecords","paginator","lazyLoadOnInit"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pButton","","type","button",1,"button","button-text","button--light-blue","button-small","button-right",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"action"],[3,"ngClass"],[4,"ngIf"],[1,"sort-button-container",3,"pSortableColumn"],[1,"filter-input-with-sort",3,"inputType","label","disabled"],[3,"field"],[1,"group-row",3,"click","ngClass"],[3,"withIcon","isSynthetic","tooltip"],[1,"text-ellipsis"],["cqdPreventClick","",1,"buttons-cell"],[1,"action-btn-wrapper"],[3,"clickEvent","cqdCanManage"],[3,"firstClickEvent","confirmClickEvent","hideConfirm","trashIcon","cqdCanManage"],["colspan","3",1,"text-center"]],template:function(o,i){if(1&o&&t.DNE(0,N,12,9,"p-panel",2)(1,z,1,0,"ng-template",null,0,t.C5r),2&o){const s=t.sdS(2);t.Y8G("ngIf",i.list)("ngIfElse",s)}},dependencies:[_.YU,_.Sq,_.bT,y._f,T.Y9,T.Ei,C.XI,C.Tg,C.yc,E.Z,I.t,R.S,x._,j.t,$.W,M.X,L.q,X.v],styles:[".group-row[_ngcontent-%COMP%]{cursor:pointer;height:41px}.col-1[_ngcontent-%COMP%]{width:25%}.action[_ngcontent-%COMP%]{width:105px}[_nghost-%COMP%]     .p-datatable-table{table-layout:fixed}[_nghost-%COMP%]     .buttons-cell{padding:0!important}[_nghost-%COMP%]     .buttons-cell .action-btn-wrapper{display:flex}[_nghost-%COMP%]     .buttons-cell .action-btn-wrapper cqd-edit-button, [_nghost-%COMP%]     .buttons-cell .action-btn-wrapper cqd-confirm-delete-btn{margin:auto 1px}[_nghost-%COMP%]     .buttons-cell .action-btn-wrapper cqd-edit-button .confirmation, [_nghost-%COMP%]     .buttons-cell .action-btn-wrapper cqd-confirm-delete-btn .confirmation{width:100px}[_nghost-%COMP%]     .group-icon{height:16px}"],changeDetection:0})}}return e})();function K(e,l){if(1&e){const n=t.RV6();t.j41(0,"cqd-group-modal",2),t.bIt("hide",function(){t.eBV(n);const i=t.XpG();return t.Njj(i.hideGroupModal())})("save",function(i){t.eBV(n);const s=t.XpG();return t.Njj(s.saveGroup(i))}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("visible",n.showGroup)("groupId",n.groupId)("appendTo","body")}}const J=[{path:"",component:(()=>{class e extends g.Y{constructor(n){super(),this.groupsService=n,this.showGroup=!1,this.minQueryLength=2}onLazyLoad(n){const{name:o}=n.filters;this._params={page:n.pageNumber,pageSize:n.rowsCount,sortBy:n.sortField?(0,b.f)(n.sortField,n.sortOrder):"+name",name:o&&o.value.length>=this.minQueryLength?o.value:""},this.requestList.next({params:this._params})}onEdit(n){this.showGroupModal(n.id)}onCreate(){this.showGroupModal(null)}showGroupModal(n){this.groupId=n,this.showGroup=!0}hideGroupModal(){this.groupId=null,this.showGroup=!1}onDelete(n){this.lockRow(n.id),this.groupsService.deleteUserGroup(n.id).subscribe(()=>this.requestList.next({params:this._params}),o=>this.unlockRow(n.id))}saveGroup(n){this.requestList.next({params:this._params}),this.hideGroupModal()}getList(n){return this.groupsService.getUserGroups({page:1,pageSize:25,...n})}static{this.\u0275fac=function(o){return new(o||e)(t.rXU(h.U))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cqd-groups-table-container"]],features:[t.Vt3],decls:3,vars:6,consts:[[3,"edit","copyEvent","delete","create","lazyLoad","list","loading","totalCount"],[3,"visible","groupId","appendTo","hide","save",4,"ngIf"],[3,"hide","save","visible","groupId","appendTo"]],template:function(o,i){1&o&&(t.j41(0,"cqd-groups-table",0),t.nI1(1,"async"),t.bIt("edit",function(p){return i.onEdit(p)})("copyEvent",function(p){return i.onCopy(p)})("delete",function(p){return i.onDelete(p)})("create",function(){return i.onCreate()})("lazyLoad",function(p){return i.onLazyLoad(p)}),t.k0s(),t.DNE(2,K,1,3,"cqd-group-modal",1)),2&o&&(t.Y8G("list",t.bMT(1,4,i.list$))("loading",i.loading)("totalCount",i.totalCount),t.R7$(2),t.Y8G("ngIf",i.showGroup))},dependencies:[_.bT,f.u,U,_.Jj],encapsulation:2,changeDetection:0})}}return e})()}];let W=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[r.iI.forChild(J),r.iI]})}}return e})(),A=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[d.G,W]})}}return e})()},44751(v,m,a){a.d(m,{_:()=>h});var d=a(45324),r=a(54438),g=a(81141),b=a(38542);let h=(()=>{class t extends d.J{constructor(){super()}static{this.\u0275fac=function(c){return new(c||t)}}static{this.\u0275cmp=r.VBU({type:t,selectors:[["cqd-edit-button"]],features:[r.Vt3],decls:3,vars:2,consts:[["pButton","","type","button",1,"button-action","button-action-edit","
1without-label",3,"click","pTooltip","tooltipPosition"],["width","16px","height","14px","enable-background","new 0 0 511.995 511.995","version","1.1","viewBox","0 0 511.995 511.995",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg"],["d","m497.94 14.057c18.75 18.75 18.719 49.141 0 67.891l-22.625 22.625-67.906-67.891 22.625-22.625c18.749-18.734 49.156-18.75 67.906 0zm-339.41 271.53l-22.609 90.5 90.5-22.625 226.27-226.27-67.906-67.891-226.25 226.28zm225.47-44.438v206.84h-320v-320h206.86l63.983-64h-334.84v448h448v-334.86l-64 64.016z"]],template:function(c,u){1&c&&(r.j41(0,"button",0),r.bIt("click",function(){return u.onClick()}),r.qSk(),r.j41(1,"svg",1),r.nrm(2,"path",2),r.k0s()()),2&c&&r.Y8G("pTooltip",u.tooltip)("tooltipPosition",u.tooltipPosition)},dependencies:[g._f,b.m],styles:["button[_ngcontent-%COMP%]{display:inherit}"],changeDetection:0})}}return t})()}}]);

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.