diff --git a/server/public/3385.5c8b6d5ba6a7c6a3.js b/server/public/3385.5c8b6d5ba6a7c6a3.js deleted file mode 100644 index bb1156fed..000000000 --- a/server/public/3385.5c8b6d5ba6a7c6a3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3385],{8516:(T,p,e)=>{e.d(p,{p:()=>g});var n=e(5879),i=e(6814),t=e(6223),o=e(824),_=e(551);function l(h,f){if(1&h){const c=n.EpF();n.TgZ(0,"i",4),n.NdJ("click",function(){n.CHM(c);const r=n.oxw(2);return r.inputModel=void 0,n.KtG(r.onModelUpdated())}),n.qZA()}}function a(h,f){if(1&h&&n.YNc(0,l,1,0,"i",3),2&h){const c=n.oxw();n.Q6J("ngIf",c.inputModel)}}let g=(()=>{class h{constructor(){this.inputModelChange=new n.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return h.\u0275fac=function(c){return new(c||h)},h.\u0275cmp=n.Xpm({type:h,selectors:[["cvc-clearable-input-filter"]],inputs:{placeholderText:"placeholderText",onInputChanged:"onInputChanged",inputModel:"inputModel"},outputs:{inputModelChange:"inputModelChange"},decls:4,vars:3,consts:[[3,"nzSuffix"],["type","text","nz-input","","nzSize","small",3,"placeholder","ngModel","ngModelChange"],["clearTmpl",""],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"]],template:function(c,u){if(1&c&&(n.TgZ(0,"nz-input-group",0)(1,"input",1),n.NdJ("ngModelChange",function(C){return u.inputModel=C})("ngModelChange",function(){return u.onModelUpdated()}),n.qZA()(),n.YNc(2,a,1,1,"ng-template",null,2,n.W1O)),2&c){const r=n.MAs(3);n.Q6J("nzSuffix",r),n.xp6(1),n.Q6J("placeholder",u.placeholderText?u.placeholderText:"")("ngModel",u.inputModel)}},dependencies:[i.O5,t.Fj,t.JJ,t.On,o.Zp,o.gB,o.ke,_.Ls],styles:["[_nghost-%COMP%]{display:block;height:22px}[_nghost-%COMP%] nz-input-group{padding:2px;height:22px}[_nghost-%COMP%] nz-input-group input{height:16px}"],changeDetection:0}),h})()},7856:(T,p,e)=>{e.d(p,{k:()=>a});var n=e(6814),i=e(824),t=e(6223),o=e(551),_=e(3599),l=e(5879);let a=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=l.oAB({type:g}),g.\u0275inj=l.cJS({imports:[n.ez,t.u5,_.U5,i.o7,o.PV]}),g})()},9857:(T,p,e)=>{e.d(p,{B:()=>f});var n=e(2181),i=e(7398),t=e(5879),o=e(6814),_=e(2392),l=e(8091),a=e(5573);function g(c,u){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"timeAgo"),t.qZA()),2&c){const r=t.oxw().ngIf;t.xp6(1),t.hij(" (Current as of ",t.lcZ(2,1,r.lastUpdated),") ")}}function h(c,u){if(1&c&&(t.TgZ(0,"span",1),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.YNc(4,g,3,3,"span",2),t.qZA()),2&c){const r=u.ngIf;t.xp6(1),t.AsE(" ",t.lcZ(2,3,r.edgeCount)," of ",t.lcZ(3,5,r.filteredCount)," displayed "),t.xp6(3),t.Q6J("ngIf",r.lastUpdated)}}let f=(()=>{class c{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,n.h)(r=>null!=r.totalCount||null!=r.filteredCount),(0,i.U)(r=>{const C=r.filteredCount,E=r.totalCount,s=r.edges;return null==C&&null==E&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:s.length,filteredCount:C??E,lastUpdated:r.lastUpdated}}))}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-table-counts"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"],[4,"ngIf"]],template:function(r,C){1&r&&(t.YNc(0,h,5,7,"span",0),t.ALo(1,"ngrxPush")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,C.tableCountsInfo$))},dependencies:[o.O5,_.ZU,o.JJ,l.fM,a.x],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),c})()},2989:(T,p,e)=>{e.d(p,{T:()=>_});var n=e(6814),i=e(2392),t=e(2524),o=e(5879);let _=(()=>{class l{}return l.\u0275fac=function(g){return new(g||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[n.ez,i.ZJ,t.s]}),l})()},5573:(T,p,e)=>{e.d(p,{x:()=>c});var n=e(5879);const t=3600,o=24*t,l=365*o,g=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),f=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let c=(()=>{class u{transform(C){let E;E="number"==typeof C?C:Date.parse(C);const s=Date.now(),d=Math.round(Math.abs(s-E)/1e3);if(d>=2592e3&&d=l){let O=new Date(E);return f.format(O)}let v,m;return d<60?(v=Math.round(d),m="second"):d1?"s":""} ago`}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275pipe=n.Yjl({name:"timeAgo",type:u,pure:!0}),u})()},4632:(T,p,e)=>{e.d(p,{_:()=>i});var n=e(313);function i(t){var o;switch(t.value){case"ascend":o=n.SrV.Asc;break;case"descend":o=n.SrV.Desc;break;default:return}return{column:t.key,direction:o}}},6753:(T,p,e)=>{e.d(p,{D:()=>o});var n=e(8645),i=e(8753),t=e(5879);let o=(()=>{class _{set cvcAutoHeightCard(a){a&&(this._offset=a)}get cvcAutoHeightCard(){return this._offset}set cvcAutoHeightTarget(a){this._target=a}get cvcAutoHeightTarget(){return this._target}constructor(a,g,h){this.el=a,this.zone=g,this.cdr=h,this._offset=0,this._target="parent",this.onResized$=new n.x,this.resizeObserver=new ResizeObserver(f=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,i.p)(10)).subscribe(f=>{this.doAutoSize()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}doAutoSize(){const a=this.el.nativeElement,g=a.parentElement.clientHeight,f=a.querySelector(".ant-card-head").clientHeight,c=a.querySelector(".ant-card-body");if(c){if("parent"===this._target)c.style.height=`calc(${g-f}px)`;else if("viewport"===this._target){let u=0;c.getBoundingClientRect&&c.getBoundingClientRect().top&&(u=c.getBoundingClientRect().top),c.style.height=`calc(100vh - ${u+f+this._offset}px)`}c.style["overflow-y"]="auto"}else console.warn("auto-height-card could not find reference to ant-card-body div.");this.cdr.detectChanges()}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},_.\u0275dir=t.lG2({type:_,selectors:[["","cvcAutoHeightCard",""]],inputs:{cvcAutoHeightCard:"cvcAutoHeightCard",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),_})()},9175:(T,p,e)=>{e.d(p,{n:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4764:(T,p,e)=>{e.d(p,{q:()=>t});var n=e(5879),i=e(3740);let t=(()=>{class o{constructor(l,a,g){this.element=l,this.table=a,this.cd=g,this.table&&this.table.nzPageIndexChange&&this.table.nzPageIndexChange.subscribe(h=>{const f=this.element.nativeElement.querySelector(".ant-table-body");f&&f.scrollTop&&(f.scrollTop=0)})}onResize(){this.doAutoSize()}ngOnInit(){}ngAfterViewInit(){this.doAutoSize()}doAutoSize(){setTimeout(()=>{const l=void 0===this.offset?70:this.offset;if(this.element&&this.element.nativeElement&&this.element.nativeElement.parentElement&&this.element.nativeElement.parentElement.offsetHeight)if(this.table&&this.table.nzScroll&&this.table.nzScroll.x){const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px",x:this.table.nzScroll.x},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}else{const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px"},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}},10)}}return o.\u0275fac=function(l){return new(l||o)(n.Y36(n.SBq),n.Y36(i.N8),n.Y36(n.sBO))},o.\u0275dir=n.lG2({type:o,selectors:[["","cvcAutoHeightTable",""]],hostBindings:function(l,a){1&l&&n.NdJ("resize",function(h){return a.onResize(h)},!1,n.Jf7)},inputs:{offset:["cvcAutoHeightTable","offset"]}}),o})()},4742:(T,p,e)=>{e.d(p,{c:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4997:(T,p,e)=>{e.d(p,{y:()=>C});var r,n=e(655),i=e(5879),t=e(1791),o=e(6321),_=e(1374),l=e(8753),a=e(9397),g=e(3620),h=e(7398),f=e(9384),c=e(2181),u=e(3740);let C=((r=class{set cvcTableScrollToIndex(s){void 0!==s&&this.scrollToIndex(s)}set cvcTableScrollToOffset(s){void 0!==s&&this.scrollToIndex(s)}constructor(s){this.host=s,this.cvcTableScrollOnScroll=new i.vpe,this.cvcTableScrollTargetHeight=140,this.cvcTableScrollFetchCount=25,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300,console.log("table-scroll.directive constructor()")}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroll directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,_.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,l.p)(this.onScrollThrottleTime,o.z,{leading:!0,trailing:!0}),(0,a.b)(s=>this.cvcTableScrollOnScroll.next("scroll")),(0,g.b)(this.onScrollDebounceTime),(0,t.t)(this)).subscribe(s=>{this.cvcTableScrollOnScroll.next("stop")}),this.scrolled$.pipe((0,h.U)(s=>this.viewport.measureScrollOffset("bottom")),(0,f.G)(),(0,c.h)(([s,d])=>d{this.cvcTableScrollOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollPageInfo)}catch(d){console.error(d)}})}loadMore(s){const d=this.cvcTableScrollQueryRef;if(!s&&d)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(s&&!d)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(s&&d){const[v,m,M]=[this.cvcTableScrollFetchCount,s.hasNextPage,s.endCursor];if(!v||!M)throw new Error("table-scroll PageInfo invalid.");if(!m)return;d.fetchMore({variables:{first:v,after:M}})}}scrollToIndex(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");v.scrollToIndex(s)}scrollToOffset(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");v.scrollToOffset(s)}}).\u0275fac=function(s){return new(s||r)(i.Y36(u.N8))},r.\u0275dir=i.lG2({type:r,selectors:[["","cvcTableScroll",""]],inputs:{cvcTableScrollTargetHeight:"cvcTableScrollTargetHeight",cvcTableScrollQueryRef:"cvcTableScrollQueryRef",cvcTableScrollPageInfo:"cvcTableScrollPageInfo",cvcTableScrollFetchCount:"cvcTableScrollFetchCount",cvcTableScrollToIndex:"cvcTableScrollToIndex",cvcTableScrollToOffset:"cvcTableScrollToOffset"},outputs:{cvcTableScrollOnScroll:"cvcTableScrollOnScroll"}}),r);C=(0,n.gn)([(0,t.c)()],C)},9312:(T,p,e)=>{e.d(p,{w:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()}}]); \ No newline at end of file diff --git a/server/public/3385.ee3da89d9469b629.js b/server/public/3385.ee3da89d9469b629.js new file mode 100644 index 000000000..989b2a0b8 --- /dev/null +++ b/server/public/3385.ee3da89d9469b629.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3385],{8516:(T,p,e)=>{e.d(p,{p:()=>g});var n=e(5879),i=e(6814),t=e(6223),o=e(824),_=e(551);function l(h,f){if(1&h){const c=n.EpF();n.TgZ(0,"i",4),n.NdJ("click",function(){n.CHM(c);const r=n.oxw(2);return r.inputModel=void 0,n.KtG(r.onModelUpdated())}),n.qZA()}}function a(h,f){if(1&h&&n.YNc(0,l,1,0,"i",3),2&h){const c=n.oxw();n.Q6J("ngIf",c.inputModel)}}let g=(()=>{class h{constructor(){this.inputModelChange=new n.vpe}onModelUpdated(){this.inputModelChange.emit(""!=this.inputModel?this.inputModel:void 0),this.onInputChanged&&this.onInputChanged()}}return h.\u0275fac=function(c){return new(c||h)},h.\u0275cmp=n.Xpm({type:h,selectors:[["cvc-clearable-input-filter"]],inputs:{placeholderText:"placeholderText",onInputChanged:"onInputChanged",inputModel:"inputModel"},outputs:{inputModelChange:"inputModelChange"},decls:4,vars:3,consts:[[3,"nzSuffix"],["type","text","nz-input","","nzSize","small",3,"placeholder","ngModel","ngModelChange"],["clearTmpl",""],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"]],template:function(c,u){if(1&c&&(n.TgZ(0,"nz-input-group",0)(1,"input",1),n.NdJ("ngModelChange",function(C){return u.inputModel=C})("ngModelChange",function(){return u.onModelUpdated()}),n.qZA()(),n.YNc(2,a,1,1,"ng-template",null,2,n.W1O)),2&c){const r=n.MAs(3);n.Q6J("nzSuffix",r),n.xp6(1),n.Q6J("placeholder",u.placeholderText?u.placeholderText:"")("ngModel",u.inputModel)}},dependencies:[i.O5,t.Fj,t.JJ,t.On,o.Zp,o.gB,o.ke,_.Ls],styles:["[_nghost-%COMP%]{display:block;height:22px}[_nghost-%COMP%] nz-input-group{padding:2px;height:22px}[_nghost-%COMP%] nz-input-group input{height:16px}"],changeDetection:0}),h})()},7856:(T,p,e)=>{e.d(p,{k:()=>a});var n=e(6814),i=e(824),t=e(6223),o=e(551),_=e(3599),l=e(5879);let a=(()=>{class g{}return g.\u0275fac=function(f){return new(f||g)},g.\u0275mod=l.oAB({type:g}),g.\u0275inj=l.cJS({imports:[n.ez,t.u5,_.U5,i.o7,o.PV]}),g})()},9857:(T,p,e)=>{e.d(p,{B:()=>f});var n=e(2181),i=e(7398),t=e(5879),o=e(6814),_=e(2392),l=e(8091),a=e(5573);function g(c,u){if(1&c&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"timeAgo"),t.qZA()),2&c){const r=t.oxw().ngIf;t.xp6(1),t.hij(" (Current as of ",t.lcZ(2,1,r.lastUpdated),") ")}}function h(c,u){if(1&c&&(t.TgZ(0,"span",1),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.YNc(4,g,3,3,"span",2),t.qZA()),2&c){const r=u.ngIf;t.xp6(1),t.AsE(" ",t.lcZ(2,3,r.edgeCount)," of ",t.lcZ(3,5,r.filteredCount)," displayed "),t.xp6(3),t.Q6J("ngIf",r.lastUpdated)}}let f=(()=>{class c{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,n.h)(r=>null!=r.totalCount||null!=r.filteredCount),(0,i.U)(r=>{const C=r.filteredCount,E=r.totalCount,s=r.edges;return null==C&&null==E&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:s.length,filteredCount:C??E,lastUpdated:r.lastUpdated}}))}}return c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["cvc-table-counts"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"],[4,"ngIf"]],template:function(r,C){1&r&&(t.YNc(0,h,5,7,"span",0),t.ALo(1,"ngrxPush")),2&r&&t.Q6J("ngIf",t.lcZ(1,1,C.tableCountsInfo$))},dependencies:[o.O5,_.ZU,o.JJ,l.fM,a.x],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0}),c})()},2989:(T,p,e)=>{e.d(p,{T:()=>_});var n=e(6814),i=e(2392),t=e(2524),o=e(5879);let _=(()=>{class l{}return l.\u0275fac=function(g){return new(g||l)},l.\u0275mod=o.oAB({type:l}),l.\u0275inj=o.cJS({imports:[n.ez,i.ZJ,t.s]}),l})()},5573:(T,p,e)=>{e.d(p,{x:()=>c});var n=e(5879);const t=3600,o=24*t,l=365*o,g=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),f=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let c=(()=>{class u{transform(C){if(!C)return"--";let E;E="number"==typeof C?C:Date.parse(C);const s=Date.now(),d=Math.round(Math.abs(s-E)/1e3);if(d>=2592e3&&d=l){let O=new Date(E);return f.format(O)}let v,m;return d<60?(v=Math.round(d),m="second"):d1?"s":""} ago`}}return u.\u0275fac=function(C){return new(C||u)},u.\u0275pipe=n.Yjl({name:"timeAgo",type:u,pure:!0}),u})()},4632:(T,p,e)=>{e.d(p,{_:()=>i});var n=e(313);function i(t){var o;switch(t.value){case"ascend":o=n.SrV.Asc;break;case"descend":o=n.SrV.Desc;break;default:return}return{column:t.key,direction:o}}},6753:(T,p,e)=>{e.d(p,{D:()=>o});var n=e(8645),i=e(8753),t=e(5879);let o=(()=>{class _{set cvcAutoHeightCard(a){a&&(this._offset=a)}get cvcAutoHeightCard(){return this._offset}set cvcAutoHeightTarget(a){this._target=a}get cvcAutoHeightTarget(){return this._target}constructor(a,g,h){this.el=a,this.zone=g,this.cdr=h,this._offset=0,this._target="parent",this.onResized$=new n.x,this.resizeObserver=new ResizeObserver(f=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,i.p)(10)).subscribe(f=>{this.doAutoSize()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}doAutoSize(){const a=this.el.nativeElement,g=a.parentElement.clientHeight,f=a.querySelector(".ant-card-head").clientHeight,c=a.querySelector(".ant-card-body");if(c){if("parent"===this._target)c.style.height=`calc(${g-f}px)`;else if("viewport"===this._target){let u=0;c.getBoundingClientRect&&c.getBoundingClientRect().top&&(u=c.getBoundingClientRect().top),c.style.height=`calc(100vh - ${u+f+this._offset}px)`}c.style["overflow-y"]="auto"}else console.warn("auto-height-card could not find reference to ant-card-body div.");this.cdr.detectChanges()}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO))},_.\u0275dir=t.lG2({type:_,selectors:[["","cvcAutoHeightCard",""]],inputs:{cvcAutoHeightCard:"cvcAutoHeightCard",cvcAutoHeightTarget:"cvcAutoHeightTarget"}}),_})()},9175:(T,p,e)=>{e.d(p,{n:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4764:(T,p,e)=>{e.d(p,{q:()=>t});var n=e(5879),i=e(3740);let t=(()=>{class o{constructor(l,a,g){this.element=l,this.table=a,this.cd=g,this.table&&this.table.nzPageIndexChange&&this.table.nzPageIndexChange.subscribe(h=>{const f=this.element.nativeElement.querySelector(".ant-table-body");f&&f.scrollTop&&(f.scrollTop=0)})}onResize(){this.doAutoSize()}ngOnInit(){}ngAfterViewInit(){this.doAutoSize()}doAutoSize(){setTimeout(()=>{const l=void 0===this.offset?70:this.offset;if(this.element&&this.element.nativeElement&&this.element.nativeElement.parentElement&&this.element.nativeElement.parentElement.offsetHeight)if(this.table&&this.table.nzScroll&&this.table.nzScroll.x){const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px",x:this.table.nzScroll.x},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}else{const a=this.table.nzScroll?{...this.table.nzScroll}:null;this.table.nzScroll={y:(this.element.nativeElement.parentElement.offsetHeight-this.element.nativeElement.offsetTop-l).toString()+"px"},this.table.ngOnChanges({nzScroll:new n.WD2({originNzScroll:a},this.table.nzScroll,!1)}),this.cd.detectChanges()}},10)}}return o.\u0275fac=function(l){return new(l||o)(n.Y36(n.SBq),n.Y36(i.N8),n.Y36(n.sBO))},o.\u0275dir=n.lG2({type:o,selectors:[["","cvcAutoHeightTable",""]],hostBindings:function(l,a){1&l&&n.NdJ("resize",function(h){return a.onResize(h)},!1,n.Jf7)},inputs:{offset:["cvcAutoHeightTable","offset"]}}),o})()},4742:(T,p,e)=>{e.d(p,{c:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()},4997:(T,p,e)=>{e.d(p,{y:()=>C});var r,n=e(655),i=e(5879),t=e(1791),o=e(6321),_=e(1374),l=e(8753),a=e(9397),g=e(3620),h=e(7398),f=e(9384),c=e(2181),u=e(3740);let C=((r=class{set cvcTableScrollToIndex(s){void 0!==s&&this.scrollToIndex(s)}set cvcTableScrollToOffset(s){void 0!==s&&this.scrollToIndex(s)}constructor(s){this.host=s,this.cvcTableScrollOnScroll=new i.vpe,this.cvcTableScrollTargetHeight=140,this.cvcTableScrollFetchCount=25,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300,console.log("table-scroll.directive constructor()")}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroll directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,_.P)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,l.p)(this.onScrollThrottleTime,o.z,{leading:!0,trailing:!0}),(0,a.b)(s=>this.cvcTableScrollOnScroll.next("scroll")),(0,g.b)(this.onScrollDebounceTime),(0,t.t)(this)).subscribe(s=>{this.cvcTableScrollOnScroll.next("stop")}),this.scrolled$.pipe((0,h.U)(s=>this.viewport.measureScrollOffset("bottom")),(0,f.G)(),(0,c.h)(([s,d])=>d{this.cvcTableScrollOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollPageInfo)}catch(d){console.error(d)}})}loadMore(s){const d=this.cvcTableScrollQueryRef;if(!s&&d)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(s&&!d)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(s&&d){const[v,m,M]=[this.cvcTableScrollFetchCount,s.hasNextPage,s.endCursor];if(!v||!M)throw new Error("table-scroll PageInfo invalid.");if(!m)return;d.fetchMore({variables:{first:v,after:M}})}}scrollToIndex(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");v.scrollToIndex(s)}scrollToOffset(s){const[d,v]=[this.host,this.host.cdkVirtualScrollViewport];if(!d||!v)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");v.scrollToOffset(s)}}).\u0275fac=function(s){return new(s||r)(i.Y36(u.N8))},r.\u0275dir=i.lG2({type:r,selectors:[["","cvcTableScroll",""]],inputs:{cvcTableScrollTargetHeight:"cvcTableScrollTargetHeight",cvcTableScrollQueryRef:"cvcTableScrollQueryRef",cvcTableScrollPageInfo:"cvcTableScrollPageInfo",cvcTableScrollFetchCount:"cvcTableScrollFetchCount",cvcTableScrollToIndex:"cvcTableScrollToIndex",cvcTableScrollToOffset:"cvcTableScrollToOffset"},outputs:{cvcTableScrollOnScroll:"cvcTableScrollOnScroll"}}),r);C=(0,n.gn)([(0,t.c)()],C)},9312:(T,p,e)=>{e.d(p,{w:()=>t});var n=e(6814),i=e(5879);let t=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=i.oAB({type:o}),o.\u0275inj=i.cJS({imports:[n.ez]}),o})()}}]); \ No newline at end of file diff --git a/server/public/3806.1ac5dbcc871c240d.js b/server/public/3806.66cde4520d0a9a5a.js similarity index 77% rename from server/public/3806.1ac5dbcc871c240d.js rename to server/public/3806.66cde4520d0a9a5a.js index 6727263d8..f235910bd 100644 --- a/server/public/3806.1ac5dbcc871c240d.js +++ b/server/public/3806.66cde4520d0a9a5a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3806],{3806:(es,Nt,c)=>{c.r(Nt),c.d(Nt,{OrganizationsModule:()=>qo});var p=c(6814),Ee=c(5895),v=c(551),t=c(5879);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Ee.s,v.PV]}),n})();var Ut=c(2419),m=c(8645),Ft=c(2438),A=c(2181),V=c(8180),P=c(9773),Jt=c(874),Qt=c(7754),W=c(9594),$t=c(8484),L=c(6028),Le=c(4194),Yt=c(9087),Ze=c(6593),ut=c(532),O=c(2831),u=c(2495),Gt=c(4300),j=c(7394),ke=c(1687),Ne=c(927),Ht=c(5592),ft=c(3019),I=c(7398),F=c(7921),Ue=c(9397),Fe=c(4664),et=c(9388);function _t(n,i,e){for(let o in i)if(i.hasOwnProperty(o)){const s=i[o];s?n.setProperty(o,s,e?.has(o)?"important":""):n.removeProperty(o)}return n}function J(n,i){const e=i?"":"none";_t(n.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Bt(n,i,e){_t(n.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function nt(n,i){return i&&"none"!=i?n+" "+i:n}function Vt(n){const i=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*i}function vt(n,i){return n.getPropertyValue(i).split(",").map(o=>o.trim())}function zt(n){const i=n.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Ct(n,i,e){const{top:o,bottom:s,left:r,right:a}=n;return e>=o&&e<=s&&i>=r&&i<=a}function X(n,i,e){n.top+=i,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function Wt(n,i,e,o){const{top:s,right:r,bottom:a,left:l,width:d,height:h}=n,g=d*i,f=h*i;return o>s-f&&ol-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zt(e)})})}handleScroll(i){const e=(0,O.sA)(i),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const l=s.top-r,d=s.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&X(h.clientRect,l,d)}),s.top=r,s.left=a,{top:l,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Xt(n){const i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),o=n.nodeName.toLowerCase();i.removeAttribute("id");for(let s=0;sJ(o,e)))}constructor(i,e,o,s,r,a){this._config=e,this._document=o,this._ngZone=s,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new m.x,this._pointerMoveSubscription=j.w0.EMPTY,this._pointerUpSubscription=j.w0.EMPTY,this._scrollSubscription=j.w0.EMPTY,this._resizeSubscription=j.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new m.x,this.started=new m.x,this.released=new m.x,this.ended=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.moved=this._moveEvents,this._pointerDown=l=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const d=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const N=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),U=this._dropContainer;if(!N)return void this._endDragSequence(l);(!U||!U.isDragging()&&!U.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const g=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,f=this._activeTransform;f.x=h.x-g.x+this._passiveTransform.x,f.y=h.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(f.x,f.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:l,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new jt(o),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(o=>(0,u.fI)(o)),this._handles.forEach(o=>J(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=(0,u.fI)(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,it),e.addEventListener("touchstart",this._pointerDown,ee),e.addEventListener("dragstart",this._nativeDragStart,it)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?(0,u.fI)(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),J(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),J(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){K(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),Bt(o,!1,bt),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=K(e),r=!s&&0!==e.button,a=this._rootElement,l=(0,O.sA)(e),d=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,Gt.yG)(e):(0,Gt.X6)(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||d||h)return;if(this._handles.length){const b=a.style;this._rootElementTapHighlight=b.webkitTapHighlightColor||"",b.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(b=>this._updateOnScroll(b)),this._boundaryElement&&(this._boundaryRect=zt(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Bt(this._rootElement,!0,bt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(i),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s,event:i}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s,event:i}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,o=i?i.template:null;let s;if(o&&i){const r=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(o,i.context);a.detectChanges(),s=ie(a,this._document),this._previewRef=a,i.matchSize?oe(s,r):s.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Xt(this._rootElement),oe(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return _t(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},bt),J(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function Je(n){const i=getComputedStyle(n),e=vt(i,"transition-property"),o=e.find(l=>"transform"===l||"all"===l);if(!o)return 0;const s=e.indexOf(o),r=vt(i,"transition-duration"),a=vt(i,"transition-delay");return Vt(r[s])+Vt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{(!a||(0,O.sA)(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let o;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),o=ie(this._placeholderRef,this._document)):o=Xt(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(i,e,o){const s=e===this._rootElement?null:e,r=s?s.getBoundingClientRect():i,a=K(o)?o.targetTouches[0]:o,l=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-l.left),y:r.top-i.top+(a.pageY-r.top-l.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),o=K(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=r,l.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,l=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),g=l.top+a,f=l.bottom-(h-a);o=ne(o,l.left+r,l.right-(d-r)),s=ne(s,g,f)}return{x:o,y:s}}_updatePointerDirectionDelta(i){const{x:e,y:o}=i,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),l=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,J(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,it),i.removeEventListener("touchstart",this._pointerDown,ee),i.removeEventListener("dragstart",this._nativeDragStart,it)}_applyRootElementTransform(i,e){const o=ot(i,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=nt(o,this._initialTransform)}_applyPreviewTransform(i,e){const o=this._previewTemplate?.template?void 0:this._initialTransform,s=ot(i,e);this._preview.style.transform=nt(s,o)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===o.width&&0===o.height)return;const r=s.left-o.left,a=o.right-s.right,l=s.top-o.top,d=o.bottom-s.bottom;s.width>o.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,s.height>o.height?(l>0&&(e+=l),d>0&&(e-=d)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:K(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const o=(0,O.sA)(i);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&X(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,O.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const o=this._previewContainer||"global";if("parent"===o)return i;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,u.fI)(o)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function ot(n,i){return`translate3d(${Math.round(n)}px, ${Math.round(i)}px, 0)`}function ne(n,i,e){return Math.max(i,Math.min(e,n))}function K(n){return"t"===n.type[0]}function ie(n,i){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const o=i.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function oe(n,i){n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.transform=ot(i.left,i.top)}function q(n,i){return Math.max(0,Math.min(i,n))}class He{constructor(i,e){this._element=i,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,e,o,s){const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(i,e,o,s);if(-1===a&&r.length>0)return null;const l="horizontal"===this.orientation,d=r.findIndex(x=>x.drag===i),h=r[a],f=h.clientRect,b=d>a?1:-1,N=this._getItemOffsetPx(r[d].clientRect,f,b),U=this._getSiblingOffsetPx(d,r,b),B=r.slice();return function Ge(n,i,e){const o=q(i,n.length-1),s=q(e,n.length-1);if(o===s)return;const r=n[o],a=s{if(B[ts]===x)return;const Me=x.drag===i,kt=Me?N:U,Re=Me?i.getPlaceholderElement():x.drag.getRootElement();x.offset+=kt,l?(Re.style.transform=nt(`translate3d(${Math.round(x.offset)}px, 0, 0)`,x.initialTransform),X(x.clientRect,0,kt)):(Re.style.transform=nt(`translate3d(0, ${Math.round(x.offset)}px, 0)`,x.initialTransform),X(x.clientRect,kt,0))}),this._previousSwap.overlaps=Ct(f,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:d,currentIndex:a}}enter(i,e,o,s){const r=null==s||s<0?this._getItemIndexFromPointerPosition(i,e,o):s,a=this._activeDraggables,l=a.indexOf(i),d=i.getPlaceholderElement();let h=a[r];if(h===i&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(l,1),h&&!this._dragDropRegistry.isDragging(h)){const g=h.getRootElement();g.parentElement.insertBefore(d,g),a.splice(r,0,i)}else(0,u.fI)(this._element).appendChild(d),a.push(i);d.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const o=this._itemPositions.find(s=>s.drag===i)?.initialTransform;e.style.transform=o||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:o})=>{X(o,i,e)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:zt(o)}}).sort((e,o)=>i?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_getItemOffsetPx(i,e,o){const s="horizontal"===this.orientation;let r=s?e.left-i.left:e.top-i.top;return-1===o&&(r+=s?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,o){const s="horizontal"===this.orientation,r=e[i].clientRect,a=e[i+-1*o];let l=r[s?"width":"height"]*o;if(a){const d=s?"left":"top",h=s?"right":"bottom";-1===o?l-=a.clientRect[d]-r[h]:l+=r[d]-a.clientRect[h]}return l}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?i>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,o,s){const r="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:d})=>l!==i&&((!s||l!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?s.x:s.y)!==this._previousSwap.delta)&&(r?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&o!0,this.sortPredicate=()=>!0,this.beforeStarted=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.sorted=new m.x,this.receivingStarted=new m.x,this.receivingStopped=new m.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=j.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new m.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,ke.F)(0,Ne.Z).pipe((0,P.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-l):2===this._verticalScrollDirection&&a.scrollBy(0,l),1===this._horizontalScrollDirection?a.scrollBy(-l,0):2===this._horizontalScrollDirection&&a.scrollBy(l,0)})},this.element=(0,u.fI)(i),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new jt(o),this._sortStrategy=new He(this.element,e),this._sortStrategy.withSortPredicate((a,l)=>this.sortPredicate(a,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,o,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,o,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,o,s,r,a,l,d={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:l,event:d})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===i.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=(0,u.fI)(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,o,s){if(this.sortingDisabled||!this._clientRect||!Wt(this._clientRect,.05,e,o))return;const r=this._sortStrategy.sort(i,e,o,s);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||o||Wt(a.clientRect,.05,i,e)&&([s,r]=function Ve(n,i,e,o){const s=ae(i,o),r=ce(i,e);let a=0,l=0;if(s){const d=n.scrollTop;1===s?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(r){const d=n.scrollLeft;1===r?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[a,l]}(l,a.clientRect,i,e),(s||r)&&(o=l))}),!s&&!r){const{width:a,height:l}=this._viewportRuler.getViewportSize(),d={width:a,height:l,top:0,right:a,bottom:l,left:0};s=ae(d,e),r=ce(d,i),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=(0,u.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=(0,u.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=(0,u.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&Ct(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,o){return this._siblings.find(s=>s._canReceive(i,e,o))}_canReceive(i,e,o){if(!this._clientRect||!Ct(this._clientRect,e,o)||!this.enterPredicate(i,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,u.fI)(this.element);return s===r||r.contains(s)}_startReceiving(i,e){const o=this._activeSiblings;!o.has(i)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=(0,O.kV)((0,u.fI)(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function ae(n,i){const{top:e,bottom:o,height:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}function ce(n,i){const{left:e,right:o,width:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}const st=(0,O.i$)({passive:!1,capture:!0});let We=(()=>{class n{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new m.x,this.pointerUp=new m.x,this.scroll=new m.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,st)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,st)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:st}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:st}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new Ht.y(s=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,ft.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(p.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const je={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let xt=(()=>{class n{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=je){return new Ye(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Be(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(p.K0),t.LFG(t.R0b),t.LFG(ut.rL),t.LFG(We))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wt=new t.OlP("CDK_DRAG_PARENT"),yt=new t.OlP("CdkDragHandle");let le=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._stateChanges.next(this)}constructor(e,o){this.element=e,this._stateChanges=new m.x,this._disabled=!1,this._parentDrag=o}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[t._Bn([{provide:yt,useExisting:n}])]}),n})();const de=new t.OlP("CdkDragPlaceholder"),he=new t.OlP("CdkDragPreview"),ge=new t.OlP("CDK_DRAG_CONFIG"),pe=new t.OlP("CdkDropList");let me=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._dragRef.disabled=this._disabled}constructor(e,o,s,r,a,l,d,h,g,f,b){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=g,this._selfHandle=f,this._parentDrag=b,this._destroyed=new m.x,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new Ht.y(N=>{const U=this._dragRef.moved.pipe((0,I.U)(B=>({source:this,pointerPosition:B.pointerPosition,event:B.event,delta:B.delta,distance:B.distance}))).subscribe(N);return()=>{U.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),l&&this._assignDefaults(l),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,V.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let o=e;this.rootElementSelector&&(o=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,u.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,u.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,V.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let o=this.element.nativeElement.parentElement;for(;o;){if(o.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(s=>s.element.nativeElement===o)?._dragRef||null);break}o=o.parentElement}})}_handleEvents(e){e.started.subscribe(o=>{this.started.emit({source:this,event:o.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(o=>{this.released.emit({source:this,event:o.event})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:l,draggingDisabled:d,rootElementSelector:h,previewContainer:g}=e;this.disabled=d??!1,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),l&&(this.boundaryElement=l),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe((0,F.O)(this._handles),(0,Ue.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,Fe.w)(e=>(0,ft.T)(...e.map(o=>o._stateChanges.pipe((0,F.O)(o))))),(0,P.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(pe,12),t.Y36(p.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ge,8),t.Y36(et.Is,8),t.Y36(xt),t.Y36(t.sBO),t.Y36(yt,10),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,he,5),t.Suo(s,de,5),t.Suo(s,yt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t._Bn([{provide:wt,useExisting:n}]),t.TTD]}),n})(),nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[xt],imports:[ut.ZD]}),n})();var on=c(6192);const sn=["imgRef"],rn=["imagePreviewWrapper"];function an(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",10),t.NdJ("click",function(){const r=t.CHM(e).$implicit;return t.KtG(r.onClick())}),t._UZ(1,"span",11),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function cn(n,i){if(1&n&&t._UZ(0,"img",13,14),2&n){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",o.sanitizerResourceUrl(e.src),t.LSH)("srcset",e.srcset)("alt",e.alt)}}function ln(n,i){if(1&n&&(t.ynx(0),t.YNc(1,cn,2,9,"img",12),t.BQk()),2&n){const e=i.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function dn(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",15),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchLeft(s))}),t._UZ(2,"span",16),t.qZA(),t.TgZ(3,"div",17),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchRight(s))}),t._UZ(4,"span",18),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class Dt{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class gn{constructor(i,e,o){this.previewInstance=i,this.config=e,this.overlayRef=o,this.destroy$=new m.x,o.keydownEvents().pipe((0,A.h)(s=>this.config.nzKeyboard&&(s.keyCode===L.hY||s.keyCode===L.oh||s.keyCode===L.SV)&&!(0,L.Vb)(s))).subscribe(s=>{s.preventDefault(),s.keyCode===L.hY&&this.close(),s.keyCode===L.oh&&this.prev(),s.keyCode===L.SV&&this.next()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),i.containerClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.closeClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.animationStateChanged.pipe((0,A.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,V.q)(1)).subscribe(()=>{this.dispose()})}switchTo(i){this.previewInstance.switchTo(i)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function fe(n,i,e){const o=n+i,s=(i-e)/2;let r=null;return i>e?(n>0&&(r=s),n<0&&oe)&&(r=n<0?s:-s),r}const at={x:0,y:0};let fn=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,o,s,r,a,l,d,h){this.ngZone=e,this.host=o,this.cdr=s,this.nzConfigService=r,this.config=a,this.overlayRef=l,this.destroy$=d,this.sanitizer=h,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position={...at},this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.zoom=this.config.nzZoom??1,this.rotate=this.config.nzRotate??0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ft.R)(this.host.nativeElement,"click").pipe((0,P.R)(this.destroy$)).subscribe(e=>{e.target===e.currentTarget&&this.maskClosable&&this.containerClick.observers.length&&this.ngZone.run(()=>this.containerClick.emit())}),(0,Ft.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,P.R)(this.destroy$)).subscribe(()=>{this.isDragging=!0})})}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at}}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at})}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function mn(n){const i=n.getBoundingClientRect(),e=document.documentElement;return{left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:l}=function un(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),d=this.rotate%180!=0,g=function pn(n){let i={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(i={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(i={x:fe(n.left,n.width,n.clientWidth),y:fe(n.top,n.height,n.clientHeight)}),i}({width:d?o:e,height:d?e:o,left:s,top:r,clientWidth:a,clientHeight:l});((0,Qt.DX)(g.x)||(0,Qt.DX)(g.y))&&(this.position={...this.position,...g})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position={...at}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt.jY),t.Y36(Dt),t.Y36(W.Iu),t.Y36(Yt.kn),t.Y36(Ze.H7))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&(t.Gf(sn,5),t.Gf(rn,7)),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first),t.iGM(s=t.CRH())&&(o.imagePreviewWrapper=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],features:[t._Bn([Yt.kn])],decls:11,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","cdkDragReleased"],["imagePreviewWrapper",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3)(4,"ul",4),t.YNc(5,an,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6,7),t.NdJ("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(8,ln,2,1,"ng-container",8),t.qZA(),t.YNc(9,dn,5,4,"ng-container",9),t.qZA()(),t._UZ(10,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(2),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},dependencies:[me,le,p.sg,p.O5,v.Ls],encapsulation:2,data:{animation:[Le.MC]},changeDetection:0}),n})(),_n=(()=>{class n{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s={...new Dt,...o??{}},r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const l=new gn(a,s,r);return a.previewRef=l,l}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:W.Iu,useValue:e},{provide:Dt,useValue:o}]}),r=new $t.C5(fn,null,s);return e.attach(r).instance}createOverlay(e){const o=this.nzConfigService.getConfigForComponent("image")||{},s=new W.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??o.nzCloseOnNavigation??!0,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||o.nzDirection||this.directionality.value});return this.overlay.create(s)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(W.aV),t.LFG(t.zs3),t.LFG(Jt.jY),t.LFG(et.Is,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[_n],imports:[et.vT,W.U8,$t.eL,nn,p.ez,v.PV,on.YS]}),n})();var Q=c(6254),zn=c(4059),_=c(95),w=c(2574),C=c(4190),St=c(6067),_e=c(2996),y=c(2962),Z=c(6976),tt=c(1106),ve=c(5572),Pt=c(6928),M=c(8125),ct=c(6987),ze=c(126),$=c(2524),Cn=c(3043),bn=c(7525),xn=c(3396),wn=c(4605),T=c(2392),Ce=c(366),yn=c(2612),lt=c(6223),Tn=c(6061),Ot=c(7950);let be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,y.vh,_.Jb,w.zf,T.ZJ,_e.A2,M.q6,ct.S,yn.Wr,Ot.x,St.X,wn.N,xn.Q,Tn.N,bn.h,Cn.y,ze.K,$.s,tt.L,ve.C,Ce.$]}),n})();var xe=c(7417),dt=c(5695),k=c(2840);let Dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,C.Bz,Q.KJ,k.sL,_.Jb,v.PV,w.zf,vn,y.vh,_e.A2,Z.Ph,Pt.Rt,M.q6,ct.S,T.ZJ,xe.$6,dt.X,ve.C,tt.L,Ce.$,$.s,ze.K,St.X,zn.c,Ut.D,be]}),n})();var Sn=c(9894);let Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Sn.t]}),n})();var On=c(1403);let In=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,On.Q]}),n})();var It=c(2669);let Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,w.zf,_.Jb,It.j,be]}),n})();var Rn=c(7856),En=c(9154),An=c(2989),Ln=c(9175),Zn=c(4742),kn=c(9312),D=c(3740);let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,v.PV,D.HQ,k.sL,y.vh,v.PV,T.ZJ,dt.X,En.y,An.T,kn.w,Ln.n,Zn.c,Rn.k,tt.L,Ot.x,$.s]}),n})();var Mt=c(9691),Un=c(9382),we=c(804),ye=c(3640),Te=c(6109);let Fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,ye.mS,ct.S,w.zf,Pt.Rt,_.Jb,y.vh,Z.Ph,Un.we,Mt.LV,T.ZJ,we.Xo,v.PV,dt.X,Te.cg,$.s,tt.L]}),n})(),Jn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Q.KJ,v.PV,_.Jb,k.sL,w.zf,T.ZJ,$.s,Ut.D,Fn,Nn]}),n})();var Qn=c(4293),$n=c(8706);let Yn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,y.vh,M.q6,T.ZJ,v.PV,w.zf,_.Jb,ct.S,Ot.x,Qn.H,St.X,$.s,tt.L,$n.W]}),n})(),Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,_.Jb,w.zf,k.sL,It.j,Yn]}),n})();var Hn=c(1826);let Bn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[Hn.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var R=c(4223),E=c(5619),z=c(313),Rt=c(951),ht=c(855),Vn=c(1607),gt=c(215),Wn=c(1887),De=c(3217),jn=c(5098),Se=c(3145),Y=c(8091),Pe=c(2616);function Xn(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",19),2&n){const e=t.oxw().ngIf;t.Q6J("organization",e)("size",128)}}function Kn(n,i){if(1&n&&(t.TgZ(0,"div",20),t._UZ(1,"i",21),t.ALo(2,"entityColor"),t.TgZ(3,"span",22)(4,"strong"),t._uU(5),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(2,2,"Organization")),t.xp6(4),t.hij(" ",e.name,"")}}function qn(n,i){if(1&n&&(t.TgZ(0,"a",24),t._UZ(1,"span",25),t._uU(2," Visit Website "),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.url,t.LSH)}}function ti(n,i){1&n&&(t.ynx(0),t.YNc(1,qn,3,1,"a",23),t.BQk())}function ei(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.description," ")}}function ni(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2,"No description provided."),t.qZA()())}function ii(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",34),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("org",e)}}function oi(n,i){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,ii,2,1,"ng-container",33),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",e.subGroups)}}function si(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2," This organization does not include any child organizations. "),t.qZA()())}function ri(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",26)(1,"nz-descriptions-item",27),t.YNc(2,ei,2,1,"ng-container",28),t.YNc(3,ni,3,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(5,"nz-descriptions-item",30),t.YNc(6,oi,2,1,"cvc-tag-list",28),t.YNc(7,si,3,0,"ng-template",null,31,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),o=t.MAs(8),s=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(1),t.Q6J("nzTitle","About "+s.name),t.xp6(1),t.Q6J("ngIf",s.description)("ngIfElse",e),t.xp6(3),t.Q6J("nzSpan",4)("nzTitle","Child Organization"+(1!==s.subGroups.length?"s":"")),t.xp6(1),t.Q6J("ngIf",s.subGroups.length>0)("ngIfElse",o)}}function ai(n,i){1&n&&(t.TgZ(0,"div",38)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function ci(n,i){if(1&n&&(t.TgZ(0,"div",35),t._uU(1," Ranked Activities "),t.TgZ(2,"span",32),t._UZ(3,"i",36),t.qZA()(),t.YNc(4,ai,17,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}const li=function(){return[8,8]};function di(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-content")(4,"nz-row",3)(5,"nz-col",4)(6,"nz-space",5),t.YNc(7,Xn,1,2,"cvc-organization-avatar",6),t.YNc(8,Kn,6,4,"div",7),t.YNc(9,ti,2,0,"ng-container",0),t.qZA()(),t.TgZ(10,"nz-col",8)(11,"nz-space",5),t.YNc(12,ri,9,8,"nz-descriptions",9),t.qZA()(),t.TgZ(13,"nz-col",10)(14,"nz-descriptions",11)(15,"nz-descriptions-item",12),t._UZ(16,"cvc-stats-card",13),t.qZA(),t.YNc(17,ci,6,1,"ng-template",null,14,t.W1O),t.qZA()()(),t.TgZ(19,"nz-row",15)(20,"nz-col",16),t._UZ(21,"cvc-tab-navigation",17),t.ALo(22,"ngrxPush"),t.TgZ(23,"div",18),t._UZ(24,"router-outlet"),t.qZA()()()()(),t.BQk()),2&n){const e=i.ngIf,o=t.MAs(18),s=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzGutter",t.DdM(10,li)),t.xp6(5),t.Q6J("ngIf",e.url),t.xp6(6),t.Q6J("nzTitle",o),t.xp6(1),t.Q6J("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(22,8,s.tabs$))}}let hi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.destroy$=new m.x,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new E.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organization$=a.pipe((0,R.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,P.R)(this.destroy$)).subscribe({next:l=>{this.tabs$.next(l&&l.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.WOS),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],["noDescription",""],[3,"nzSpan","nzTitle"],["noSubGroups",""],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"]],template:function(e,o){1&e&&(t.YNc(0,di,25,11,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},dependencies:[p.sg,p.O5,C.lC,Q.$O,Q.u5,k.ix,ht.w,_.t3,_.SK,v.Ls,w.NU,w.$1,M.R7,M.uj,T.ZU,xe.lU,Vn.z,gt.m,Wn.$,De.M,jn.P,Se.I,Y.fM,Pe.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),n})();var gi=c(7441);let pi=(()=>{class n{constructor(e){this.route=e,this.mode=z.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},dependencies:[gi.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var mi=c(6822);let ui=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[mi.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();function fi(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",8),2&n){const e=t.oxw();t.Q6J("organization",e.organization)("size",48)}}function _i(n,i){if(1&n&&t._UZ(0,"cvc-organization-tag",9),2&n){const e=t.oxw();t.Q6J("org",e.organization)("enablePopover",!0)}}let vi=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],["organizationAvatar",""],["organizationTag",""],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,fi,1,2,"ng-template",null,2,t.W1O),t.YNc(4,_i,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t._uU(10),t.qZA()()()()()),2&e){const s=t.MAs(3),r=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",o.organization.name)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("nzEllipsisRows",4)("nzExpandable",!0),t.xp6(1),t.hij(" ",o.organization.description," ")}},dependencies:[y.bd,y.l7,T.ZU,M.R7,M.uj,De.M,gt.m],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function zi(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-organization-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("organization",e)}}function Ci(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zi,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}const bi=function(){return[8,8]};let xi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.routeSub=s.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organizations$=a.pipe((0,R.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Lr0),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-row",1),t.YNc(3,Ci,2,1,"ng-container",2),t.ALo(4,"ngrxPush"),t.qZA()()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,3,o.loading$)),t.xp6(2),t.Q6J("nzGutter",t.DdM(7,bi)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(4,5,o.organizations$)))},dependencies:[p.sg,p.O5,_.t3,_.SK,It.W,vi,Y.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),n})();var G,Oe=c(655),S=c(1791);function wi(n,i){1&n&&t.GkF(0)}function yi(n,i){1&n&&t.GkF(0)}function Ti(n,i){1&n&&t.GkF(0)}function Di(n,i){1&n&&t.GkF(0)}function Si(n,i){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA(),t.TgZ(2,"span",14),t._UZ(3,"i",15),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," "),t.xp6(2),t.Q6J("nzTooltipTitle",e.info)}}const Pi=function(){return[0,5]};function Oi(n,i){if(1&n&&(t.TgZ(0,"nz-badge",19),t._UZ(1,"nz-avatar",20),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzCount",e.rank)("nzOffset",t.DdM(3,Pi)),t.xp6(1),t.Q6J("nzSrc",e.profileImagePath)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"nz-list-item"),t.YNc(1,Oi,2,4,"ng-template",null,16,t.W1O),t.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t._UZ(5,"cvc-organization-tag",18),t.qZA()()()),2&n){const e=i.$implicit,o=t.MAs(2);t.xp6(3),t.Q6J("nzAvatar",o),t.xp6(2),t.Q6J("org",e.organization)}}function Mi(n,i){if(1&n&&t._UZ(0,"nz-list-empty",21),2&n){t.oxw();const e=t.MAs(7);t.Q6J("nzNoResult",e)}}function Ri(n,i){1&n&&t._UZ(0,"nz-empty",22)}const Ei=function(n){return{"list-height-block":n}};function Ai(n,i){if(1&n&&(t.YNc(0,Si,4,2,"ng-template",null,7,t.W1O),t.TgZ(2,"nz-list",8)(3,"div",9),t.YNc(4,Ii,6,2,"nz-list-item",10),t.qZA(),t.YNc(5,Mi,1,1,"nz-list-empty",11),t.YNc(6,Ri,1,0,"ng-template",null,12,t.W1O),t.qZA()),2&n){const e=i.$implicit,o=t.MAs(1);t.xp6(2),t.Q6J("nzHeader",o)("nzLoading",e.loading),t.xp6(1),t.Q6J("ngClass",t.VKq(5,Ei,e.rows.length>0)),t.xp6(1),t.Q6J("ngForOf",e.rows),t.xp6(1),t.Q6J("ngIf",0===e.rows.length)}}function Li(n,i){1&n&&(t.TgZ(0,"span",13)(1,"strong"),t._uU(2,"Organization Curation Activity Leaderboards"),t.qZA()())}function Zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"Time: "),t.qZA(),t.TgZ(2,"nz-select",23),t.NdJ("ngModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.timeWindow$.next(s))}),t.ALo(3,"ngrxPush"),t._UZ(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",t.lcZ(3,2,e.timeWindow$))}}const ki=function(){return[8,8]},pt=function(n){return{$implicit:n}};let Et=((G=class{constructor(i,e,o,s){this.commentsGQL=i,this.revisionsGQL=e,this.moderationGQL=o,this.submissionsGQL=s,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=z.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new E.X(this.initialWindow),this.timeWindow$.pipe((0,S.t)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new E.X(this.initialCommentsView),this.revisionsView$=new E.X(this.initialRevisionsView),this.moderationView$=new E.X(this.initialModerationView),this.submissionsView$=new E.X(this.initialSubmissionsView)}ngOnInit(){const i=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.submissionsView$.next(e))}}).\u0275fac=function(i){return new(i||G)(t.Y36(z.ld2),t.Y36(z.enw),t.Y36(z.tI$),t.Y36(z.Pm))},G.\u0275cmp=t.Xpm({type:G,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(i,e){if(1&i&&(t.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),t.YNc(3,wi,1,0,"ng-container",3),t.ALo(4,"ngrxPush"),t.qZA(),t.TgZ(5,"nz-col",2),t.YNc(6,yi,1,0,"ng-container",3),t.ALo(7,"ngrxPush"),t.qZA(),t.TgZ(8,"nz-col",2),t.YNc(9,Ti,1,0,"ng-container",3),t.ALo(10,"ngrxPush"),t.qZA(),t.TgZ(11,"nz-col",2),t.YNc(12,Di,1,0,"ng-container",3),t.ALo(13,"ngrxPush"),t.qZA()()(),t.YNc(14,Ai,8,7,"ng-template",null,4,t.W1O),t.YNc(16,Li,3,0,"ng-template",null,5,t.W1O),t.YNc(18,Zi,8,4,"ng-template",null,6,t.W1O)),2&i){const o=t.MAs(15),s=t.MAs(17),r=t.MAs(19);t.Q6J("nzTitle",s)("nzExtra",r),t.xp6(1),t.Q6J("nzGutter",t.DdM(19,ki)),t.xp6(2),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(20,pt,t.lcZ(4,11,e.commentsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(22,pt,t.lcZ(7,13,e.revisionsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(24,pt,t.lcZ(10,15,e.moderationView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(26,pt,t.lcZ(13,17,e.submissionsView$)))}},dependencies:[p.mk,p.sg,p.O5,p.tP,lt.JJ,lt.On,ye.x7,Pt.Dz,_.t3,_.SK,y.bd,Z.n_,Z.I2,Z.AA,Z.yi,Z.IO,Mt.Ip,Mt.Vq,T.ZU,we.p9,v.Ls,Te.SY,gt.m,Y.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0}),G);Et=(0,Oe.gn)([(0,S.c)()],Et);var H,Ni=c(4632),mt=c(5676),At=c(3997),Ui=c(812),Fi=c(836),Ji=c(3620),Qi=c(2460),$i=c(3489),Yi=c(9857),Gi=c(4997),Hi=c(6753),Bi=c(4764),Vi=c(8516),Ie=c(4527),Wi=c(5573);function ji(n,i){}function Xi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,ji,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),o=t.MAs(8),s=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",o),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Ki(n,i){}const qi=function(n){return{height:n}};function to(n,i){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,Ki,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(6),s=t.MAs(8),r=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,qi,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function eo(n,i){if(1&n&&(t._UZ(0,"tr",23),t.TgZ(1,"tr")(2,"td",19),t._UZ(3,"cvc-organization-tag",24),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",25),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",26),t._uU(13),t.ALo(14,"timeAgo"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("org",e),t.xp6(2),t.hij(" ",t.lcZ(6,6,e.memberCount)," "),t.xp6(3),t.Q6J("maxDisplayCount",1)("tags",e.subGroups),t.xp6(2),t.hij(" ",t.lcZ(11,8,e.eventCount)," "),t.xp6(3),t.hij(" ",t.lcZ(14,10,null==e.mostRecentEvent?null:e.mostRecentEvent.createdAt)," ")}}const no=function(){return[]},io=function(){return{x:"680px",y:"800px"}};function oo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.scrollEvent$.next(s))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.sortChange$.next(s))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Organization "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Members"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Sub Organizations"),t.qZA(),t.TgZ(14,"th",16),t._uU(15," Actions "),t.qZA(),t.TgZ(16,"th",17),t._uU(17," Last Action "),t.qZA()(),t.TgZ(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.NdJ("inputModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.orgNameInput=s)})("inputModelChange",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.filterChange$.next())}),t.qZA()(),t._UZ(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,eo,15,12,"ng-template",22),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,14,e.row$)||t.DdM(22,no))("nzLoading",!t.lcZ(3,16,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,18,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,20,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(23,io))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",e.orgNameInput)}}function so(n,i){}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,so,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function ao(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function co(n,i){if(1&n&&(t.YNc(0,ro,2,1,"ng-container",27),t.YNc(1,ao,2,1,"ng-container",27),t.TgZ(2,"span",28),t._UZ(3,"cvc-table-counts",29),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function lo(n,i){1&n&&(t.TgZ(0,"nz-tag",32),t._UZ(1,"i",33),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function ho(n,i){if(1&n&&(t.YNc(0,lo,4,0,"nz-tag",30),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",31),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let Lt=((H=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e){this.gql=i,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=z.xlL,this.noMoreRows$=new E.X(!1),this.scrollEvent$=new E.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Ui.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Fi.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","organizations"),(0,A.h)(mt.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,A.h)(mt.ep),(0,I.U)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,A.h)(mt.ep)),this.sortChange$.pipe((0,S.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,Ni._)(i)})}),this.filterChange$.pipe((0,Ji.b)(500),(0,S.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(i=>"stop"!==i),(0,At.x)(),(0,S.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.h)(i=>"bottom"===i),(0,Qi.M)(this.pageInfo$),(0,I.U)(([i,e])=>e),(0,S.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,e){return e?.id}}).\u0275fac=function(i){return new(i||H)(t.Y36(z.io),t.Y36(t.sBO))},H.\u0275cmp=t.Xpm({type:H,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right"],["nzWidth","125px","nzRight","","nzAlign","right"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,e){if(1&i&&(t.YNc(0,Xi,3,3,"ng-container",0),t.YNc(1,to,3,6,"ng-template",null,1,t.W1O),t.YNc(3,oo,27,24,"ng-template",null,2,t.W1O),t.YNc(5,co,4,3,"ng-template",null,3,t.W1O),t.YNc(7,ho,4,6,"ng-template",null,4,t.W1O)),2&i){const o=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",o)}},dependencies:[p.O5,p.tP,p.PC,v.Ls,D.N8,D.qD,D.Uo,D._C,D.Om,D.p0,D.$Z,D.zu,D.qn,D.UX,ht.w,y.bd,dt.j,$i.H,Yi.B,Gi.y,Hi.D,Bi.q,Vi.p,gt.m,Ie.T,p.JJ,Y.fM,Wi.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),H);function go(n,i){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Organization Docs "),t.qZA())}Lt=(0,Oe.gn)([(0,S.c)()],Lt);const po=function(){return[8,16]};let mo=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Organizations"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,go,3,0,"a",8),t.qZA()()(),t.TgZ(15,"nz-row",9)(16,"nz-col",10),t._UZ(17,"cvc-organization-leaderboards"),t.qZA(),t.TgZ(18,"nz-col",11)(19,"div",12),t._UZ(20,"cvc-organizations-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,4,"Organization")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(5),t.Q6J("nzGutter",t.DdM(6,po)),t.xp6(3),t.Q6J("nzSpan",24))},dependencies:[Q.$O,Q.u5,v.Ls,_.t3,_.SK,k.ix,ht.w,w.NU,w.$1,T.ZU,Se.I,Et,Lt,Pe.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),n})();var Zt=c(2185),uo=c(1958),fo=c(7458),_o=c(356),vo=c(4082);function zo(n,i){if(1&n&&t._UZ(0,"cvc-user-avatar",17),2&n){const e=t.oxw();t.Q6J("user",e.user)("size",48)}}function Co(n,i){if(1&n&&t._UZ(0,"cvc-user-tag",18),2&n){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function xo(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",19),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",e.organizations)}}function wo(n,i){1&n&&(t.ynx(0),t.TgZ(1,"span",20)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function yo(n,i){1&n&&(t.TgZ(0,"i",20),t._uU(1," None provided "),t.qZA())}function To(n,i){if(1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",24),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://",e.user.url,"",t.LSH)}}function Do(n,i){1&n&&t._UZ(0,"i",25)}function So(n,i){if(1&n&&(t.YNc(0,To,2,1,"a",21),t.YNc(1,Do,1,0,"ng-template",null,22,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.url)("ngIfElse",e)}}function Po(n,i){if(1&n&&(t.TgZ(0,"a",28),t._UZ(1,"i",29),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function Oo(n,i){1&n&&t._UZ(0,"i",30)}function Io(n,i){if(1&n&&(t.YNc(0,Po,2,1,"a",26),t.YNc(1,Oo,1,0,"ng-template",null,27,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.twitterHandle)("ngIfElse",e)}}function Mo(n,i){if(1&n&&(t.TgZ(0,"a",33),t._UZ(1,"i",34),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function Ro(n,i){1&n&&t._UZ(0,"i",35)}function Eo(n,i){if(1&n&&(t.YNc(0,Mo,2,1,"a",31),t.YNc(1,Ro,1,0,"ng-template",null,32,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.facebookProfile)("ngIfElse",e)}}function Ao(n,i){if(1&n&&(t.TgZ(0,"a",38),t._UZ(1,"i",39),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function Lo(n,i){1&n&&t._UZ(0,"i",40)}function Zo(n,i){if(1&n&&(t.YNc(0,Ao,2,1,"a",36),t.YNc(1,Lo,1,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.linkedinProfile)("ngIfElse",e)}}function ko(n,i){if(1&n&&(t.TgZ(0,"a",43),t._UZ(1,"i",44),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function No(n,i){1&n&&t._UZ(0,"i",45)}function Uo(n,i){if(1&n&&(t.YNc(0,ko,2,1,"a",41),t.YNc(1,No,1,0,"ng-template",null,42,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.orcid)("ngIfElse",e)}}const Fo=function(n,i,e,o,s){return[n,i,e,o,s]};let Jo=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case z.i44.Admin:this.icon="civic-admin";break;case z.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],["userAvatar",""],["userTag",""],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["noPersonalLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["noTwitterLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["noFacebookLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["noLinkedinLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["noOrcidLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,zo,1,2,"ng-template",null,2,t.W1O),t.YNc(4,Co,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),t._uU(9),t.ALo(10,"titlecase"),t.qZA(),t.TgZ(11,"nz-descriptions-item",7),t.YNc(12,bo,3,3,"ng-container",8),t.qZA(),t.TgZ(13,"nz-descriptions-item",9),t.YNc(14,xo,2,2,"ng-container",10),t.YNc(15,wo,4,0,"ng-container",10),t.qZA(),t.YNc(16,yo,2,0,"ng-template",null,11,t.W1O),t.qZA()()(),t.YNc(18,So,3,2,"ng-template",null,12,t.W1O),t.YNc(20,Io,3,2,"ng-template",null,13,t.W1O),t.YNc(22,Eo,3,2,"ng-template",null,14,t.W1O),t.YNc(24,Zo,3,2,"ng-template",null,15,t.W1O),t.YNc(26,Uo,3,2,"ng-template",null,16,t.W1O)),2&e){const s=t.MAs(3),r=t.MAs(5),a=t.MAs(17),l=t.MAs(19),d=t.MAs(21),h=t.MAs(23),g=t.MAs(25),f=t.MAs(27);t.Q6J("nzActions",t.qbA(16,Fo,l,f,g,h,d)),t.xp6(1),t.Q6J("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(10,14,o.user.role)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",o.user.areaOfExpertise)("ngIfElse",a),t.xp6(1),t.Q6J("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",o.user.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===o.user.organizations.length)}},dependencies:[p.O5,y.bd,y.l7,M.R7,M.uj,T.ZU,v.Ls,Ie.T,fo.L,_o.I,p.rS,vo.I],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function Qo(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-user-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("user",e)}}function $o(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qo,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function Yo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().ngrxLet,r=t.oxw();return t.KtG(r.loadMore(s.endCursor))}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij(" Load ",e.initialPageSize," More ")}}function Go(n,i){if(1&n&&(t.TgZ(0,"nz-col",6),t.YNc(1,Yo,2,1,"button",7),t.qZA()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e&&e.hasNextPage&&e.endCursor)}}const Ho=function(){return[8,8]};let Bo=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,Zt.j)("loading"),(0,F.O)(!0)),this.members$=a.pipe((0,Zt.j)("data","users","edges"),(0,A.h)(mt.lm),(0,I.U)(l=>l.map(d=>d.node))),this.pageInfo$=a.pipe((0,Zt.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Del),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-row",0),t.YNc(1,$o,2,1,"ng-container",1),t.ALo(2,"ngrxPush"),t.YNc(3,Go,2,1,"nz-col",2),t.qZA()),2&e&&(t.Q6J("nzGutter",t.DdM(5,Ho)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,o.members$)),t.xp6(2),t.Q6J("ngrxLet",o.pageInfo$))},dependencies:[p.sg,p.O5,Y.eJ,_.t3,_.SK,k.ix,ht.w,uo.dQ,Jo,Y.fM],encapsulation:2}),n})();var Vo=c(6282);const Wo=[{path:"",component:(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[C.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:mo},{path:":organizationId",component:hi,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Bo,data:{breadcrumb:"Members"}},{path:"groups",component:xi,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:ui,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Bn,data:{breadcrumb:"Assertions"}},{path:"activity",component:pi,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[Vo.O],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let jo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[C.Bz.forChild(Wo),C.Bz]}),n})();var Xo=c(7240);let Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Xo.W]}),n})(),qo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,jo,Jn,In,Ae,Dn,Pn,Mn,Gn,Ko]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3806],{3806:(es,Nt,c)=>{c.r(Nt),c.d(Nt,{OrganizationsModule:()=>qo});var p=c(6814),Ee=c(5895),v=c(551),t=c(5879);let Ae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Ee.s,v.PV]}),n})();var Ut=c(2419),m=c(8645),Ft=c(2438),A=c(2181),V=c(8180),P=c(9773),Jt=c(874),Qt=c(7754),W=c(9594),$t=c(8484),L=c(6028),Le=c(4194),Yt=c(9087),Ze=c(6593),ut=c(532),O=c(2831),u=c(2495),Gt=c(4300),j=c(7394),ke=c(1687),Ne=c(927),Ht=c(5592),ft=c(3019),I=c(7398),F=c(7921),Ue=c(9397),Fe=c(4664),et=c(9388);function _t(n,i,e){for(let o in i)if(i.hasOwnProperty(o)){const s=i[o];s?n.setProperty(o,s,e?.has(o)?"important":""):n.removeProperty(o)}return n}function J(n,i){const e=i?"":"none";_t(n.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Bt(n,i,e){_t(n.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function nt(n,i){return i&&"none"!=i?n+" "+i:n}function Vt(n){const i=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*i}function vt(n,i){return n.getPropertyValue(i).split(",").map(o=>o.trim())}function zt(n){const i=n.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function Ct(n,i,e){const{top:o,bottom:s,left:r,right:a}=n;return e>=o&&e<=s&&i>=r&&i<=a}function X(n,i,e){n.top+=i,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function Wt(n,i,e,o){const{top:s,right:r,bottom:a,left:l,width:d,height:h}=n,g=d*i,f=h*i;return o>s-f&&ol-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zt(e)})})}handleScroll(i){const e=(0,O.sA)(i),o=this.positions.get(e);if(!o)return null;const s=o.scrollPosition;let r,a;if(e===this._document){const h=this.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;const l=s.top-r,d=s.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&X(h.clientRect,l,d)}),s.top=r,s.left=a,{top:l,left:d}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Xt(n){const i=n.cloneNode(!0),e=i.querySelectorAll("[id]"),o=n.nodeName.toLowerCase();i.removeAttribute("id");for(let s=0;sJ(o,e)))}constructor(i,e,o,s,r,a){this._config=e,this._document=o,this._ngZone=s,this._viewportRuler=r,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new m.x,this._pointerMoveSubscription=j.w0.EMPTY,this._pointerUpSubscription=j.w0.EMPTY,this._scrollSubscription=j.w0.EMPTY,this._resizeSubscription=j.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new m.x,this.started=new m.x,this.released=new m.x,this.ended=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.moved=this._moveEvents,this._pointerDown=l=>{if(this.beforeStarted.next(),this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&this._initializeDragSequence(d,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const d=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(d.x-this._pickupPositionOnPage.x)+Math.abs(d.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const N=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),U=this._dropContainer;if(!N)return void this._endDragSequence(l);(!U||!U.isDragging()&&!U.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const h=this._getConstrainedPointerPosition(d);if(this._hasMoved=!0,this._lastKnownPointerPosition=d,this._updatePointerDirectionDelta(h),this._dropContainer)this._updateActiveDropContainer(h,d);else{const g=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,f=this._activeTransform;f.x=h.x-g.x+this._passiveTransform.x,f.y=h.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(f.x,f.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:h,event:l,distance:this._getDragDistance(h),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const d=this._getTargetHandle(l);d&&!this._disabledHandles.has(d)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new jt(o),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(o=>(0,u.fI)(o)),this._handles.forEach(o=>J(o,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(o=>{this._handles.indexOf(o)>-1&&e.add(o)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=(0,u.fI)(i);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,it),e.addEventListener("touchstart",this._pointerDown,ee),e.addEventListener("dragstart",this._nativeDragStart,it)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?(0,u.fI)(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),J(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),J(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){K(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const o=this._rootElement,s=o.parentNode,r=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(a,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),Bt(o,!1,bt),this._document.body.appendChild(s.replaceChild(r,o)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:i}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const o=this.isDragging(),s=K(e),r=!s&&0!==e.button,a=this._rootElement,l=(0,O.sA)(e),d=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),h=s?(0,Gt.yG)(e):(0,Gt.X6)(e);if(l&&l.draggable&&"mousedown"===e.type&&e.preventDefault(),o||r||d||h)return;if(this._handles.length){const b=a.style;this._rootElementTapHighlight=b.webkitTapHighlightColor||"",b.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(b=>this._updateOnScroll(b)),this._boundaryElement&&(this._boundaryRect=zt(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,i,e);const f=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:f.x,y:f.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){Bt(this._rootElement,!0,bt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,o=e.getItemIndex(this),s=this._getPointerPositionOnPage(i),r=this._getDragDistance(s),a=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:r,dropPoint:s,event:i}),this.dropped.next({item:this,currentIndex:o,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:s,event:i}),e.drop(this,o,this._initialIndex,this._initialContainer,a,r,s,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:o,y:s}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(o,s),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const i=this._previewTemplate,e=this.previewClass,o=i?i.template:null;let s;if(o&&i){const r=i.matchSize?this._initialClientRect:null,a=i.viewContainer.createEmbeddedView(o,i.context);a.detectChanges(),s=ie(a,this._document),this._previewRef=a,i.matchSize?oe(s,r):s.style.transform=ot(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=Xt(this._rootElement),oe(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return _t(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},bt),J(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>s.classList.add(r)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=function Je(n){const i=getComputedStyle(n),e=vt(i,"transition-property"),o=e.find(l=>"transform"===l||"all"===l);if(!o)return 0;const s=e.indexOf(o),r=vt(i,"transition-duration"),a=vt(i,"transition-delay");return Vt(r[s])+Vt(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(o=>{const s=a=>{(!a||(0,O.sA)(a)===this._preview&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",s),o(),clearTimeout(r))},r=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let o;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),o=ie(this._placeholderRef,this._document)):o=Xt(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}_getPointerPositionInElement(i,e,o){const s=e===this._rootElement?null:e,r=s?s.getBoundingClientRect():i,a=K(o)?o.targetTouches[0]:o,l=this._getViewportScrollPosition();return{x:r.left-i.left+(a.pageX-r.left-l.left),y:r.top-i.top+(a.pageY-r.top-l.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),o=K(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,s=o.pageX-e.left,r=o.pageY-e.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=r,l.matrixTransform(a.inverse())}}return{x:s,y:r}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:o,y:s}=this.constrainPosition?this.constrainPosition(i,this,this._initialClientRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(o=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:a}=this._pickupPositionInElement,l=this._boundaryRect,{width:d,height:h}=this._getPreviewRect(),g=l.top+a,f=l.bottom-(h-a);o=ne(o,l.left+r,l.right-(d-r)),s=ne(s,g,f)}return{x:o,y:s}}_updatePointerDirectionDelta(i){const{x:e,y:o}=i,s=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),l=Math.abs(o-r.y);return a>this._config.pointerDirectionChangeThreshold&&(s.x=e>r.x?1:-1,r.x=e),l>this._config.pointerDirectionChangeThreshold&&(s.y=o>r.y?1:-1,r.y=o),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,J(this._rootElement,i))}_removeRootElementListeners(i){i.removeEventListener("mousedown",this._pointerDown,it),i.removeEventListener("touchstart",this._pointerDown,ee),i.removeEventListener("dragstart",this._nativeDragStart,it)}_applyRootElementTransform(i,e){const o=ot(i,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=nt(o,this._initialTransform)}_applyPreviewTransform(i,e){const o=this._previewTemplate?.template?void 0:this._initialTransform,s=ot(i,e);this._preview.style.transform=nt(s,o)}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const o=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===o.width&&0===o.height)return;const r=s.left-o.left,a=o.right-s.right,l=s.top-o.top,d=o.bottom-s.bottom;s.width>o.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,s.height>o.height?(l>0&&(e+=l),d>0&&(e-=d)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:K(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const o=(0,O.sA)(i);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&X(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,O.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const o=this._previewContainer||"global";if("parent"===o)return i;if("global"===o){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,u.fI)(o)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function ot(n,i){return`translate3d(${Math.round(n)}px, ${Math.round(i)}px, 0)`}function ne(n,i,e){return Math.max(i,Math.min(e,n))}function K(n){return"t"===n.type[0]}function ie(n,i){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const o=i.createElement("div");return e.forEach(s=>o.appendChild(s)),o}function oe(n,i){n.style.width=`${i.width}px`,n.style.height=`${i.height}px`,n.style.transform=ot(i.left,i.top)}function q(n,i){return Math.max(0,Math.min(i,n))}class He{constructor(i,e){this._element=i,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(i){this.withItems(i)}sort(i,e,o,s){const r=this._itemPositions,a=this._getItemIndexFromPointerPosition(i,e,o,s);if(-1===a&&r.length>0)return null;const l="horizontal"===this.orientation,d=r.findIndex(x=>x.drag===i),h=r[a],f=h.clientRect,b=d>a?1:-1,N=this._getItemOffsetPx(r[d].clientRect,f,b),U=this._getSiblingOffsetPx(d,r,b),B=r.slice();return function Ge(n,i,e){const o=q(i,n.length-1),s=q(e,n.length-1);if(o===s)return;const r=n[o],a=s{if(B[ts]===x)return;const Me=x.drag===i,kt=Me?N:U,Re=Me?i.getPlaceholderElement():x.drag.getRootElement();x.offset+=kt,l?(Re.style.transform=nt(`translate3d(${Math.round(x.offset)}px, 0, 0)`,x.initialTransform),X(x.clientRect,0,kt)):(Re.style.transform=nt(`translate3d(0, ${Math.round(x.offset)}px, 0)`,x.initialTransform),X(x.clientRect,kt,0))}),this._previousSwap.overlaps=Ct(f,e,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:d,currentIndex:a}}enter(i,e,o,s){const r=null==s||s<0?this._getItemIndexFromPointerPosition(i,e,o):s,a=this._activeDraggables,l=a.indexOf(i),d=i.getPlaceholderElement();let h=a[r];if(h===i&&(h=a[r+1]),!h&&(null==r||-1===r||r-1&&a.splice(l,1),h&&!this._dragDropRegistry.isDragging(h)){const g=h.getRootElement();g.parentElement.insertBefore(d,g),a.splice(r,0,i)}else(0,u.fI)(this._element).appendChild(d),a.push(i);d.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables.forEach(i=>{const e=i.getRootElement();if(e){const o=this._itemPositions.find(s=>s.drag===i)?.initialTransform;e.style.transform=o||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(o=>o.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:o})=>{X(o,i,e)}),this._itemPositions.forEach(({drag:o})=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const o=e.getVisibleElement();return{drag:e,offset:0,initialTransform:o.style.transform||"",clientRect:zt(o)}}).sort((e,o)=>i?e.clientRect.left-o.clientRect.left:e.clientRect.top-o.clientRect.top)}_getItemOffsetPx(i,e,o){const s="horizontal"===this.orientation;let r=s?e.left-i.left:e.top-i.top;return-1===o&&(r+=s?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,o){const s="horizontal"===this.orientation,r=e[i].clientRect,a=e[i+-1*o];let l=r[s?"width":"height"]*o;if(a){const d=s?"left":"top",h=s?"right":"bottom";-1===o?l-=a.clientRect[d]-r[h]:l+=r[d]-a.clientRect[h]}return l}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const o=this._itemPositions,s="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){const a=o[o.length-1].clientRect;return s?i>=a.right:e>=a.bottom}{const a=o[0].clientRect;return s?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,o,s){const r="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:d})=>l!==i&&((!s||l!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?s.x:s.y)!==this._previousSwap.delta)&&(r?e>=Math.floor(d.left)&&e=Math.floor(d.top)&&o!0,this.sortPredicate=()=>!0,this.beforeStarted=new m.x,this.entered=new m.x,this.exited=new m.x,this.dropped=new m.x,this.sorted=new m.x,this.receivingStarted=new m.x,this.receivingStopped=new m.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=j.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new m.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,ke.F)(0,Ne.Z).pipe((0,P.R)(this._stopScrollTimers)).subscribe(()=>{const a=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?a.scrollBy(0,-l):2===this._verticalScrollDirection&&a.scrollBy(0,l),1===this._horizontalScrollDirection?a.scrollBy(-l,0):2===this._horizontalScrollDirection&&a.scrollBy(l,0)})},this.element=(0,u.fI)(i),this._document=o,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new jt(o),this._sortStrategy=new He(this.element,e),this._sortStrategy.withSortPredicate((a,l)=>this.sortPredicate(a,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,o,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,o,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,o,s,r,a,l,d={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:o,container:this,previousContainer:s,isPointerOverContainer:r,distance:a,dropPoint:l,event:d})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(o=>o._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===i.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._sortStrategy.direction=i,this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){return this._sortStrategy.orientation=i,this}withScrollableParents(i){const e=(0,u.fI)(this.element);return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,o,s){if(this.sortingDisabled||!this._clientRect||!Wt(this._clientRect,.05,e,o))return;const r=this._sortStrategy.sort(i,e,o,s);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let o,s=0,r=0;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||o||Wt(a.clientRect,.05,i,e)&&([s,r]=function Ve(n,i,e,o){const s=ae(i,o),r=ce(i,e);let a=0,l=0;if(s){const d=n.scrollTop;1===s?d>0&&(a=1):n.scrollHeight-d>n.clientHeight&&(a=2)}if(r){const d=n.scrollLeft;1===r?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[a,l]}(l,a.clientRect,i,e),(s||r)&&(o=l))}),!s&&!r){const{width:a,height:l}=this._viewportRuler.getViewportSize(),d={width:a,height:l,top:0,right:a,bottom:l,left:0};s=ae(d,e),r=ce(d,i),o=window}o&&(s!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||o!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=r,this._scrollNode=o,(s||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=(0,u.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const i=(0,u.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(i).clientRect}_reset(){this._isDragging=!1;const i=(0,u.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(i,e){return null!=this._clientRect&&Ct(this._clientRect,i,e)}_getSiblingContainerFromPosition(i,e,o){return this._siblings.find(s=>s._canReceive(i,e,o))}_canReceive(i,e,o){if(!this._clientRect||!Ct(this._clientRect,e,o)||!this.enterPredicate(i,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,o);if(!s)return!1;const r=(0,u.fI)(this.element);return s===r||r.contains(s)}_startReceiving(i,e){const o=this._activeSiblings;!o.has(i)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(o.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=(0,O.kV)((0,u.fI)(this.element));this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function ae(n,i){const{top:e,bottom:o,height:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}function ce(n,i){const{left:e,right:o,width:s}=n,r=.05*s;return i>=e-r&&i<=e+r?1:i>=o-r&&i<=o+r?2:0}const st=(0,O.i$)({passive:!1,capture:!0});let We=(()=>{class n{constructor(e,o){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new m.x,this.pointerUp=new m.x,this.scroll=new m.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=o}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,st)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,st)}startDragging(e,o){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=o.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:st}),s||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:st}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(e){const o=this._activeDragInstances.indexOf(e);o>-1&&(this._activeDragInstances.splice(o,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const o=[this.scroll];return e&&e!==this._document&&o.push(new Ht.y(s=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances.length&&s.next(l)};return e.addEventListener("scroll",a,!0),()=>{e.removeEventListener("scroll",a,!0)}}))),(0,ft.T)(...o)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,o)=>{this._document.removeEventListener(o,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(t.R0b),t.LFG(p.K0))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const je={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let xt=(()=>{class n{constructor(e,o,s,r){this._document=e,this._ngZone=o,this._viewportRuler=s,this._dragDropRegistry=r}createDrag(e,o=je){return new Ye(e,o,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new Be(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(p.K0),t.LFG(t.R0b),t.LFG(ut.rL),t.LFG(We))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wt=new t.OlP("CDK_DRAG_PARENT"),yt=new t.OlP("CdkDragHandle");let le=(()=>{class n{get disabled(){return this._disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._stateChanges.next(this)}constructor(e,o){this.element=e,this._stateChanges=new m.x,this._disabled=!1,this._parentDrag=o}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},standalone:!0,features:[t._Bn([{provide:yt,useExisting:n}])]}),n})();const de=new t.OlP("CdkDragPlaceholder"),he=new t.OlP("CdkDragPreview"),ge=new t.OlP("CDK_DRAG_CONFIG"),pe=new t.OlP("CdkDropList");let me=(()=>{class n{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,u.Ig)(e),this._dragRef.disabled=this._disabled}constructor(e,o,s,r,a,l,d,h,g,f,b){this.element=e,this.dropContainer=o,this._ngZone=r,this._viewContainerRef=a,this._dir=d,this._changeDetectorRef=g,this._selfHandle=f,this._parentDrag=b,this._destroyed=new m.x,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new Ht.y(N=>{const U=this._dragRef.moved.pipe((0,I.U)(B=>({source:this,pointerPosition:B.pointerPosition,event:B.event,delta:B.delta,distance:B.distance}))).subscribe(N);return()=>{U.unsubscribe()}}),this._dragRef=h.createDrag(e,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),l&&this._assignDefaults(l),o&&(this._dragRef._withDropContainer(o._dropListRef),o.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,V.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const o=e.rootElementSelector,s=e.freeDragPosition;o&&!o.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let o=e;this.rootElementSelector&&(o=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,u.fI)(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const o=this._dir,s=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof s&&s?s:(0,u.su)(s),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,V.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let o=this.element.nativeElement.parentElement;for(;o;){if(o.classList.contains("cdk-drag")){e.withParent(n._dragInstances.find(s=>s.element.nativeElement===o)?._dragRef||null);break}o=o.parentElement}})}_handleEvents(e){e.started.subscribe(o=>{this.started.emit({source:this,event:o.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(o=>{this.released.emit({source:this,event:o.event})}),e.ended.subscribe(o=>{this.ended.emit({source:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(o=>{this.entered.emit({container:o.container.data,item:this,currentIndex:o.currentIndex})}),e.exited.subscribe(o=>{this.exited.emit({container:o.container.data,item:this})}),e.dropped.subscribe(o=>{this.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:this,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}_assignDefaults(e){const{lockAxis:o,dragStartDelay:s,constrainPosition:r,previewClass:a,boundaryElement:l,draggingDisabled:d,rootElementSelector:h,previewContainer:g}=e;this.disabled=d??!1,this.dragStartDelay=s||0,o&&(this.lockAxis=o),r&&(this.constrainPosition=r),a&&(this.previewClass=a),l&&(this.boundaryElement=l),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.changes.pipe((0,F.O)(this._handles),(0,Ue.b)(e=>{const o=e.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&o.push(this.element),this._dragRef.withHandles(o)}),(0,Fe.w)(e=>(0,ft.T)(...e.map(o=>o._stateChanges.pipe((0,F.O)(o))))),(0,P.R)(this._destroyed)).subscribe(e=>{const o=this._dragRef,s=e.element.nativeElement;e.disabled?o.disableHandle(s):o.enableHandle(s)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(pe,12),t.Y36(p.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(ge,8),t.Y36(et.Is,8),t.Y36(xt),t.Y36(t.sBO),t.Y36(yt,10),t.Y36(wt,12))},n.\u0275dir=t.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,o,s){if(1&e&&(t.Suo(s,he,5),t.Suo(s,de,5),t.Suo(s,yt,5)),2&e){let r;t.iGM(r=t.CRH())&&(o._previewTemplate=r.first),t.iGM(r=t.CRH())&&(o._placeholderTemplate=r.first),t.iGM(r=t.CRH())&&(o._handles=r)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,o){2&e&&t.ekj("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t._Bn([{provide:wt,useExisting:n}]),t.TTD]}),n})(),nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[xt],imports:[ut.ZD]}),n})();var on=c(6192);const sn=["imgRef"],rn=["imagePreviewWrapper"];function an(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",10),t.NdJ("click",function(){const r=t.CHM(e).$implicit;return t.KtG(r.onClick())}),t._UZ(1,"span",11),t.qZA()}if(2&n){const e=i.$implicit,o=t.oxw();t.ekj("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===e.type),t.xp6(1),t.Q6J("nzType",e.icon)}}function cn(n,i){if(1&n&&t._UZ(0,"img",13,14),2&n){const e=t.oxw().$implicit,o=t.oxw();t.Udp("width",e.width)("height",e.height)("transform",o.previewImageTransform),t.uIk("src",o.sanitizerResourceUrl(e.src),t.LSH)("srcset",e.srcset)("alt",e.alt)}}function ln(n,i){if(1&n&&(t.ynx(0),t.YNc(1,cn,2,9,"img",12),t.BQk()),2&n){const e=i.index,o=t.oxw();t.xp6(1),t.Q6J("ngIf",o.index===e)}}function dn(n,i){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",15),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchLeft(s))}),t._UZ(2,"span",16),t.qZA(),t.TgZ(3,"div",17),t.NdJ("click",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.onSwitchRight(s))}),t._UZ(4,"span",18),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(1),t.ekj("ant-image-preview-switch-left-disabled",e.index<=0),t.xp6(2),t.ekj("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}class Dt{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}class gn{constructor(i,e,o){this.previewInstance=i,this.config=e,this.overlayRef=o,this.destroy$=new m.x,o.keydownEvents().pipe((0,A.h)(s=>this.config.nzKeyboard&&(s.keyCode===L.hY||s.keyCode===L.oh||s.keyCode===L.SV)&&!(0,L.Vb)(s))).subscribe(s=>{s.preventDefault(),s.keyCode===L.hY&&this.close(),s.keyCode===L.oh&&this.prev(),s.keyCode===L.SV&&this.next()}),o.detachments().subscribe(()=>{this.overlayRef.dispose()}),i.containerClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.closeClick.pipe((0,V.q)(1),(0,P.R)(this.destroy$)).subscribe(()=>{this.close()}),i.animationStateChanged.pipe((0,A.h)(s=>"done"===s.phaseName&&"leave"===s.toState),(0,V.q)(1)).subscribe(()=>{this.dispose()})}switchTo(i){this.previewInstance.switchTo(i)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.previewInstance.startLeaveAnimation()}dispose(){this.destroy$.next(),this.overlayRef.dispose()}}function fe(n,i,e){const o=n+i,s=(i-e)/2;let r=null;return i>e?(n>0&&(r=s),n<0&&oe)&&(r=n<0?s:-s),r}const at={x:0,y:0};let fn=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,o,s,r,a,l,d,h){this.ngZone=e,this.host=o,this.cdr=s,this.nzConfigService=r,this.config=a,this.overlayRef=l,this.destroy$=d,this.sanitizer=h,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationState="enter",this.animationStateChanged=new t.vpe,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"}],this.zoomOutDisabled=!1,this.position={...at},this.containerClick=new t.vpe,this.closeClick=new t.vpe,this.zoom=this.config.nzZoom??1,this.rotate=this.config.nzRotate??0,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,Ft.R)(this.host.nativeElement,"click").pipe((0,P.R)(this.destroy$)).subscribe(e=>{e.target===e.currentTarget&&this.maskClosable&&this.containerClick.observers.length&&this.ngZone.run(()=>this.containerClick.emit())}),(0,Ft.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,P.R)(this.destroy$)).subscribe(()=>{this.isDragging=!0})})}setImages(e){this.images=e,this.cdr.markForCheck()}switchTo(e){this.index=e,this.cdr.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.cdr.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.closeClick.emit()}onZoomIn(){this.zoom+=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at}}onZoomOut(){this.zoom>1&&(this.zoom-=1,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.position={...at})}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onAnimationStart(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}onAnimationDone(e){"enter"===e.toState?this.setEnterAnimationClass():"leave"===e.toState&&this.setLeaveAnimationClass(),this.animationStateChanged.emit(e)}startLeaveAnimation(){this.animationState="leave",this.cdr.markForCheck()}onDragReleased(){this.isDragging=!1;const e=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:s,top:r}=function mn(n){const i=n.getBoundingClientRect(),e=document.documentElement;return{left:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:a,height:l}=function un(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),d=this.rotate%180!=0,g=function pn(n){let i={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(i={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(i={x:fe(n.left,n.width,n.clientWidth),y:fe(n.top,n.height,n.clientHeight)}),i}({width:d?o:e,height:d?e:o,left:s,top:r,clientWidth:a,clientHeight:l});((0,Qt.DX)(g.x)||(0,Qt.DX)(g.y))&&(this.position={...this.position,...g})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom}, ${this.zoom}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}setEnterAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-enter"),e.classList.add("ant-fade-enter-active"))}setLeaveAnimationClass(){if(this.animationDisabled)return;const e=this.overlayRef.backdropElement;e&&(e.classList.add("ant-fade-leave"),e.classList.add("ant-fade-leave-active"))}reset(){this.zoom=1,this.rotate=0,this.position={...at}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt.jY),t.Y36(Dt),t.Y36(W.Iu),t.Y36(Yt.kn),t.Y36(Ze.H7))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-image-preview"]],viewQuery:function(e,o){if(1&e&&(t.Gf(sn,5),t.Gf(rn,7)),2&e){let s;t.iGM(s=t.CRH())&&(o.imageRef=s.first),t.iGM(s=t.CRH())&&(o.imagePreviewWrapper=s.first)}},hostAttrs:["tabindex","-1","role","document",1,"ant-image-preview-wrap"],hostVars:6,hostBindings:function(e,o){1&e&&t.WFA("@fadeMotion.start",function(r){return o.onAnimationStart(r)})("@fadeMotion.done",function(r){return o.onAnimationDone(r)}),2&e&&(t.d8E("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.animationState),t.Udp("z-index",o.config.nzZIndex),t.ekj("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],features:[t._Bn([Yt.kn])],decls:11,vars:6,consts:[[1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],[1,"ant-image-preview-operations"],["class","ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled","click",4,"ngFor","ngForOf"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragFreeDragPosition","cdkDragReleased"],["imagePreviewWrapper",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType"],["cdkDragHandle","","class","ant-image-preview-img",3,"width","height","transform",4,"ngIf"],["cdkDragHandle","",1,"ant-image-preview-img"],["imgRef",""],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3)(4,"ul",4),t.YNc(5,an,2,3,"li",5),t.qZA(),t.TgZ(6,"div",6,7),t.NdJ("cdkDragReleased",function(){return o.onDragReleased()}),t.YNc(8,ln,2,1,"ng-container",8),t.qZA(),t.YNc(9,dn,5,4,"ng-container",9),t.qZA()(),t._UZ(10,"div",1),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngForOf",o.operations),t.xp6(1),t.Udp("transform",o.previewImageWrapperTransform),t.Q6J("cdkDragFreeDragPosition",o.position),t.xp6(2),t.Q6J("ngForOf",o.images),t.xp6(1),t.Q6J("ngIf",o.images.length>1))},dependencies:[me,le,p.sg,p.O5,v.Ls],encapsulation:2,data:{animation:[Le.MC]},changeDetection:0}),n})(),_n=(()=>{class n{constructor(e,o,s,r){this.overlay=e,this.injector=o,this.nzConfigService=s,this.directionality=r}preview(e,o){return this.display(e,o)}display(e,o){const s={...new Dt,...o??{}},r=this.createOverlay(s),a=this.attachPreviewComponent(r,s);a.setImages(e);const l=new gn(a,s,r);return a.previewRef=l,l}attachPreviewComponent(e,o){const s=t.zs3.create({parent:this.injector,providers:[{provide:W.Iu,useValue:e},{provide:Dt,useValue:o}]}),r=new $t.C5(fn,null,s);return e.attach(r).instance}createOverlay(e){const o=this.nzConfigService.getConfigForComponent("image")||{},s=new W.X_({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??o.nzCloseOnNavigation??!0,backdropClass:"ant-image-preview-mask",direction:e.nzDirection||o.nzDirection||this.directionality.value});return this.overlay.create(s)}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(W.aV),t.LFG(t.zs3),t.LFG(Jt.jY),t.LFG(et.Is,8))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[_n],imports:[et.vT,W.U8,$t.eL,nn,p.ez,v.PV,on.YS]}),n})();var Q=c(6254),zn=c(4059),_=c(95),w=c(2574),C=c(4190),St=c(6067),_e=c(2996),y=c(2962),Z=c(6976),tt=c(1106),ve=c(5572),Pt=c(6928),M=c(8125),ct=c(6987),ze=c(126),$=c(2524),Cn=c(3043),bn=c(7525),xn=c(3396),wn=c(4605),T=c(2392),Ce=c(366),yn=c(2612),lt=c(6223),Tn=c(6061),Ot=c(7950);let be=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,y.vh,_.Jb,w.zf,T.ZJ,_e.A2,M.q6,ct.S,yn.Wr,Ot.x,St.X,wn.N,xn.Q,Tn.N,bn.h,Cn.y,ze.K,$.s,tt.L,ve.C,Ce.$]}),n})();var xe=c(7417),dt=c(5695),k=c(2840);let Dn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,C.Bz,Q.KJ,k.sL,_.Jb,v.PV,w.zf,vn,y.vh,_e.A2,Z.Ph,Pt.Rt,M.q6,ct.S,T.ZJ,xe.$6,dt.X,ve.C,tt.L,Ce.$,$.s,ze.K,St.X,zn.c,Ut.D,be]}),n})();var Sn=c(9894);let Pn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Sn.t]}),n})();var On=c(1403);let In=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,On.Q]}),n})();var It=c(2669);let Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,w.zf,_.Jb,It.j,be]}),n})();var Rn=c(7856),En=c(9154),An=c(2989),Ln=c(9175),Zn=c(4742),kn=c(9312),D=c(3740);let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,v.PV,D.HQ,k.sL,y.vh,v.PV,T.ZJ,dt.X,En.y,An.T,kn.w,Ln.n,Zn.c,Rn.k,tt.L,Ot.x,$.s]}),n})();var Mt=c(9691),Un=c(9382),we=c(804),ye=c(3640),Te=c(6109);let Fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,lt.u5,ye.mS,ct.S,w.zf,Pt.Rt,_.Jb,y.vh,Z.Ph,Un.we,Mt.LV,T.ZJ,we.Xo,v.PV,dt.X,Te.cg,$.s,tt.L]}),n})(),Jn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Q.KJ,v.PV,_.Jb,k.sL,w.zf,T.ZJ,$.s,Ut.D,Fn,Nn]}),n})();var Qn=c(4293),$n=c(8706);let Yn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,y.vh,M.q6,T.ZJ,v.PV,w.zf,_.Jb,ct.S,Ot.x,Qn.H,St.X,$.s,tt.L,$n.W]}),n})(),Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,_.Jb,w.zf,k.sL,It.j,Yn]}),n})();var Hn=c(1826);let Bn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[Hn.x],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var R=c(4223),E=c(5619),z=c(313),Rt=c(951),ht=c(855),Vn=c(1607),gt=c(215),Wn=c(1887),De=c(3217),jn=c(5098),Se=c(3145),Y=c(8091),Pe=c(2616);function Xn(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",19),2&n){const e=t.oxw().ngIf;t.Q6J("organization",e)("size",128)}}function Kn(n,i){if(1&n&&(t.TgZ(0,"div",20),t._UZ(1,"i",21),t.ALo(2,"entityColor"),t.TgZ(3,"span",22)(4,"strong"),t._uU(5),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzTwotoneColor",t.lcZ(2,2,"Organization")),t.xp6(4),t.hij(" ",e.name,"")}}function qn(n,i){if(1&n&&(t.TgZ(0,"a",24),t._UZ(1,"span",25),t._uU(2," Visit Website "),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.Q6J("href",e.url,t.LSH)}}function ti(n,i){1&n&&(t.ynx(0),t.YNc(1,qn,3,1,"a",23),t.BQk())}function ei(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.description," ")}}function ni(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2,"No description provided."),t.qZA()())}function ii(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-organization-tag",34),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("org",e)}}function oi(n,i){if(1&n&&(t.TgZ(0,"cvc-tag-list"),t.YNc(1,ii,2,1,"ng-container",33),t.qZA()),2&n){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngForOf",e.subGroups)}}function si(n,i){1&n&&(t.TgZ(0,"span",32)(1,"i"),t._uU(2," This organization does not include any child organizations. "),t.qZA()())}function ri(n,i){if(1&n&&(t.TgZ(0,"nz-descriptions",26)(1,"nz-descriptions-item",27),t.YNc(2,ei,2,1,"ng-container",28),t.YNc(3,ni,3,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(5,"nz-descriptions-item",30),t.YNc(6,oi,2,1,"cvc-tag-list",28),t.YNc(7,si,3,0,"ng-template",null,31,t.W1O),t.qZA()()),2&n){const e=t.MAs(4),o=t.MAs(8),s=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(1),t.Q6J("nzTitle","About "+s.name),t.xp6(1),t.Q6J("ngIf",s.description)("ngIfElse",e),t.xp6(3),t.Q6J("nzSpan",4)("nzTitle","Child Organization"+(1!==s.subGroups.length?"s":"")),t.xp6(1),t.Q6J("ngIf",s.subGroups.length>0)("ngIfElse",o)}}function ai(n,i){1&n&&(t.TgZ(0,"div",38)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function ci(n,i){if(1&n&&(t.TgZ(0,"div",35),t._uU(1," Ranked Activities "),t.TgZ(2,"span",32),t._UZ(3,"i",36),t.qZA()(),t.YNc(4,ai,17,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}const li=function(){return[8,8]};function di(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-section-navigation",1),t.TgZ(2,"nz-page-header",2)(3,"nz-page-header-content")(4,"nz-row",3)(5,"nz-col",4)(6,"nz-space",5),t.YNc(7,Xn,1,2,"cvc-organization-avatar",6),t.YNc(8,Kn,6,4,"div",7),t.YNc(9,ti,2,0,"ng-container",0),t.qZA()(),t.TgZ(10,"nz-col",8)(11,"nz-space",5),t.YNc(12,ri,9,8,"nz-descriptions",9),t.qZA()(),t.TgZ(13,"nz-col",10)(14,"nz-descriptions",11)(15,"nz-descriptions-item",12),t._UZ(16,"cvc-stats-card",13),t.qZA(),t.YNc(17,ci,6,1,"ng-template",null,14,t.W1O),t.qZA()()(),t.TgZ(19,"nz-row",15)(20,"nz-col",16),t._UZ(21,"cvc-tab-navigation",17),t.ALo(22,"ngrxPush"),t.TgZ(23,"div",18),t._UZ(24,"router-outlet"),t.qZA()()()()(),t.BQk()),2&n){const e=i.ngIf,o=t.MAs(18),s=t.oxw();t.xp6(1),t.Q6J("displayName",e.name),t.xp6(3),t.Q6J("nzGutter",t.DdM(10,li)),t.xp6(5),t.Q6J("ngIf",e.url),t.xp6(6),t.Q6J("nzTitle",o),t.xp6(1),t.Q6J("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(22,8,s.tabs$))}}let hi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.destroy$=new m.x,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new E.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organization$=a.pipe((0,R.j)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,P.R)(this.destroy$)).subscribe({next:l=>{this.tabs$.next(l&&l.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.WOS),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],["noDescription",""],[3,"nzSpan","nzTitle"],["noSubGroups",""],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"]],template:function(e,o){1&e&&(t.YNc(0,di,25,11,"ng-container",0),t.ALo(1,"ngrxPush")),2&e&&t.Q6J("ngIf",t.lcZ(1,1,o.organization$))},dependencies:[p.sg,p.O5,C.lC,Q.$O,Q.u5,k.ix,ht.w,_.t3,_.SK,v.Ls,w.NU,w.$1,M.R7,M.uj,T.ZU,xe.lU,Vn.z,gt.m,Wn.$,De.M,jn.P,Se.I,Y.fM,Pe.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),n})();var gi=c(7441);let pi=(()=>{class n{constructor(e){this.route=e,this.mode=z.wJ2.Organization,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(e,o){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("organizationId",o.organizationId)("mode",o.mode)},dependencies:[gi.o],styles:["[_nghost-%COMP%]{display:block}"]}),n})();var mi=c(6822);let ui=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(e,o){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("organizationId",o.organizationId)},dependencies:[mi.a],styles:["[_nghost-%COMP%]{display:block}"]}),n})();function fi(n,i){if(1&n&&t._UZ(0,"cvc-organization-avatar",8),2&n){const e=t.oxw();t.Q6J("organization",e.organization)("size",48)}}function _i(n,i){if(1&n&&t._UZ(0,"cvc-organization-tag",9),2&n){const e=t.oxw();t.Q6J("org",e.organization)("enablePopover",!0)}}let vi=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],["organizationAvatar",""],["organizationTag",""],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,fi,1,2,"ng-template",null,2,t.W1O),t.YNc(4,_i,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t._uU(10),t.qZA()()()()()),2&e){const s=t.MAs(3),r=t.MAs(5);t.xp6(1),t.Q6J("nzTitle",o.organization.name)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("nzEllipsisRows",4)("nzExpandable",!0),t.xp6(1),t.hij(" ",o.organization.description," ")}},dependencies:[y.bd,y.l7,T.ZU,M.R7,M.uj,De.M,gt.m],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function zi(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-organization-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("organization",e)}}function Ci(n,i){if(1&n&&(t.ynx(0),t.YNc(1,zi,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}const bi=function(){return[8,8]};let xi=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.routeSub=s.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,R.j)("loading"),(0,F.O)(!0)),this.organizations$=a.pipe((0,R.j)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Lr0),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-row",1),t.YNc(3,Ci,2,1,"ng-container",2),t.ALo(4,"ngrxPush"),t.qZA()()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,3,o.loading$)),t.xp6(2),t.Q6J("nzGutter",t.DdM(7,bi)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(4,5,o.organizations$)))},dependencies:[p.sg,p.O5,_.t3,_.SK,It.W,vi,Y.fM],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]}),n})();var G,Oe=c(655),S=c(1791);function wi(n,i){1&n&&t.GkF(0)}function yi(n,i){1&n&&t.GkF(0)}function Ti(n,i){1&n&&t.GkF(0)}function Di(n,i){1&n&&t.GkF(0)}function Si(n,i){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA(),t.TgZ(2,"span",14),t._UZ(3,"i",15),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.title," "),t.xp6(2),t.Q6J("nzTooltipTitle",e.info)}}const Pi=function(){return[0,5]};function Oi(n,i){if(1&n&&(t.TgZ(0,"nz-badge",19),t._UZ(1,"nz-avatar",20),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzCount",e.rank)("nzOffset",t.DdM(3,Pi)),t.xp6(1),t.Q6J("nzSrc",e.profileImagePath)}}function Ii(n,i){if(1&n&&(t.TgZ(0,"nz-list-item"),t.YNc(1,Oi,2,4,"ng-template",null,16,t.W1O),t.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t._UZ(5,"cvc-organization-tag",18),t.qZA()()()),2&n){const e=i.$implicit,o=t.MAs(2);t.xp6(3),t.Q6J("nzAvatar",o),t.xp6(2),t.Q6J("org",e.organization)}}function Mi(n,i){if(1&n&&t._UZ(0,"nz-list-empty",21),2&n){t.oxw();const e=t.MAs(7);t.Q6J("nzNoResult",e)}}function Ri(n,i){1&n&&t._UZ(0,"nz-empty",22)}const Ei=function(n){return{"list-height-block":n}};function Ai(n,i){if(1&n&&(t.YNc(0,Si,4,2,"ng-template",null,7,t.W1O),t.TgZ(2,"nz-list",8)(3,"div",9),t.YNc(4,Ii,6,2,"nz-list-item",10),t.qZA(),t.YNc(5,Mi,1,1,"nz-list-empty",11),t.YNc(6,Ri,1,0,"ng-template",null,12,t.W1O),t.qZA()),2&n){const e=i.$implicit,o=t.MAs(1);t.xp6(2),t.Q6J("nzHeader",o)("nzLoading",e.loading),t.xp6(1),t.Q6J("ngClass",t.VKq(5,Ei,e.rows.length>0)),t.xp6(1),t.Q6J("ngForOf",e.rows),t.xp6(1),t.Q6J("ngIf",0===e.rows.length)}}function Li(n,i){1&n&&(t.TgZ(0,"span",13)(1,"strong"),t._uU(2,"Organization Curation Activity Leaderboards"),t.qZA()())}function Zi(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t._uU(1,"Time: "),t.qZA(),t.TgZ(2,"nz-select",23),t.NdJ("ngModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.timeWindow$.next(s))}),t.ALo(3,"ngrxPush"),t._UZ(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",t.lcZ(3,2,e.timeWindow$))}}const ki=function(){return[8,8]},pt=function(n){return{$implicit:n}};let Et=((G=class{constructor(i,e,o,s){this.commentsGQL=i,this.revisionsGQL=e,this.moderationGQL=o,this.submissionsGQL=s,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=z.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new E.X(this.initialWindow),this.timeWindow$.pipe((0,S.t)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new E.X(this.initialCommentsView),this.revisionsView$=new E.X(this.initialRevisionsView),this.moderationView$=new E.X(this.initialModerationView),this.submissionsView$=new E.X(this.initialSubmissionsView)}ngOnInit(){const i=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(e=>{let o=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(s=>{if(s.node){const r=i(s.node);o.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...o]}}),(0,S.t)(this)).subscribe(e=>this.submissionsView$.next(e))}}).\u0275fac=function(i){return new(i||G)(t.Y36(z.ld2),t.Y36(z.enw),t.Y36(z.tI$),t.Y36(z.Pm))},G.\u0275cmp=t.Xpm({type:G,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(i,e){if(1&i&&(t.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),t.YNc(3,wi,1,0,"ng-container",3),t.ALo(4,"ngrxPush"),t.qZA(),t.TgZ(5,"nz-col",2),t.YNc(6,yi,1,0,"ng-container",3),t.ALo(7,"ngrxPush"),t.qZA(),t.TgZ(8,"nz-col",2),t.YNc(9,Ti,1,0,"ng-container",3),t.ALo(10,"ngrxPush"),t.qZA(),t.TgZ(11,"nz-col",2),t.YNc(12,Di,1,0,"ng-container",3),t.ALo(13,"ngrxPush"),t.qZA()()(),t.YNc(14,Ai,8,7,"ng-template",null,4,t.W1O),t.YNc(16,Li,3,0,"ng-template",null,5,t.W1O),t.YNc(18,Zi,8,4,"ng-template",null,6,t.W1O)),2&i){const o=t.MAs(15),s=t.MAs(17),r=t.MAs(19);t.Q6J("nzTitle",s)("nzExtra",r),t.xp6(1),t.Q6J("nzGutter",t.DdM(19,ki)),t.xp6(2),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(20,pt,t.lcZ(4,11,e.commentsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(22,pt,t.lcZ(7,13,e.revisionsView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(24,pt,t.lcZ(10,15,e.moderationView$))),t.xp6(3),t.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",t.VKq(26,pt,t.lcZ(13,17,e.submissionsView$)))}},dependencies:[p.mk,p.sg,p.O5,p.tP,lt.JJ,lt.On,ye.x7,Pt.Dz,_.t3,_.SK,y.bd,Z.n_,Z.I2,Z.AA,Z.yi,Z.IO,Mt.Ip,Mt.Vq,T.ZU,we.p9,v.Ls,Te.SY,gt.m,Y.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0}),G);Et=(0,Oe.gn)([(0,S.c)()],Et);var H,Ni=c(4632),mt=c(5676),At=c(3997),Ui=c(812),Fi=c(836),Ji=c(3620),Qi=c(2460),$i=c(3489),Yi=c(9857),Gi=c(4997),Hi=c(6753),Bi=c(4764),Vi=c(8516),Ie=c(4527),Wi=c(5573);function ji(n,i){}function Xi(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-card",5),t.YNc(2,ji,0,0,"ng-template",6),t.qZA(),t.BQk()),2&n){t.oxw();const e=t.MAs(6),o=t.MAs(8),s=t.MAs(4);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",o),t.xp6(1),t.Q6J("ngTemplateOutlet",s)}}function Ki(n,i){}const qi=function(n){return{height:n}};function to(n,i){if(1&n&&(t.TgZ(0,"div",7)(1,"nz-card",8),t.YNc(2,Ki,0,0,"ng-template",6),t.qZA()()),2&n){const e=t.oxw(),o=t.MAs(6),s=t.MAs(8),r=t.MAs(4);t.Q6J("ngStyle",t.VKq(4,qi,e.cvcHeight)),t.xp6(1),t.Q6J("nzTitle",o)("nzExtra",s),t.xp6(1),t.Q6J("ngTemplateOutlet",r)}}function eo(n,i){if(1&n&&(t._UZ(0,"tr",23),t.TgZ(1,"tr")(2,"td",19),t._UZ(3,"cvc-organization-tag",24),t.qZA(),t.TgZ(4,"td"),t._uU(5),t.ALo(6,"number"),t.qZA(),t.TgZ(7,"td"),t._UZ(8,"cvc-tag-overflow",25),t.qZA(),t.TgZ(9,"td",26),t._uU(10),t.ALo(11,"number"),t.qZA(),t.TgZ(12,"td",26),t._uU(13),t.ALo(14,"timeAgo"),t.qZA()()),2&n){const e=i.$implicit;t.xp6(3),t.Q6J("org",e),t.xp6(2),t.hij(" ",t.lcZ(6,6,e.memberCount)," "),t.xp6(3),t.Q6J("maxDisplayCount",1)("tags",e.subGroups),t.xp6(2),t.hij(" ",t.lcZ(11,8,e.eventCount)," "),t.xp6(3),t.hij(" ",t.lcZ(14,10,e.mostRecentActivityTimestamp)," ")}}const no=function(){return[]},io=function(){return{x:"680px",y:"800px"}};function oo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-table",9,10),t.NdJ("cvcTableScrollOnScroll",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.scrollEvent$.next(s))}),t.ALo(2,"ngrxPush"),t.ALo(3,"ngrxPush"),t.ALo(4,"ngrxPush"),t.ALo(5,"ngrxPush"),t.TgZ(6,"thead",11),t.NdJ("nzSortOrderChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.sortChange$.next(s))}),t.TgZ(7,"tr",12)(8,"th",13),t._uU(9," Organization "),t.qZA(),t.TgZ(10,"th",14),t._uU(11,"Members"),t.qZA(),t.TgZ(12,"th",15),t._uU(13,"Sub Organizations"),t.qZA(),t.TgZ(14,"th",16),t._uU(15," Actions "),t.qZA(),t.TgZ(16,"th",17),t._uU(17," Last Action "),t.qZA()(),t.TgZ(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.NdJ("inputModelChange",function(s){t.CHM(e);const r=t.oxw();return t.KtG(r.orgNameInput=s)})("inputModelChange",function(){t.CHM(e);const s=t.oxw();return t.KtG(s.filterChange$.next())}),t.qZA()(),t._UZ(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.qZA()(),t.TgZ(25,"tbody"),t.YNc(26,eo,15,12,"ng-template",22),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("nzData",t.lcZ(2,14,e.row$)||t.DdM(22,no))("nzLoading",!t.lcZ(3,16,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.lcZ(4,18,e.pageInfo$))("cvcTableScrollToIndex",t.lcZ(5,20,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.DdM(23,io))("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(8),t.Q6J("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.xp6(12),t.Q6J("inputModel",e.orgNameInput)}}function so(n,i){}function ro(n,i){if(1&n&&(t.ynx(0),t.YNc(1,so,0,0,"ng-template",6),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngTemplateOutlet",e.cvcTitleTemplate)}}function ao(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",e.cvcTitle," ")}}function co(n,i){if(1&n&&(t.YNc(0,ro,2,1,"ng-container",27),t.YNc(1,ao,2,1,"ng-container",27),t.TgZ(2,"span",28),t._UZ(3,"cvc-table-counts",29),t.qZA()),2&n){const e=t.oxw();t.Q6J("ngIf",e.cvcTitleTemplate),t.xp6(1),t.Q6J("ngIf",e.cvcTitle),t.xp6(2),t.Q6J("cvcTableCountsConnection",e.connection$)}}function lo(n,i){1&n&&(t.TgZ(0,"nz-tag",32),t._UZ(1,"i",33),t.TgZ(2,"span"),t._uU(3,"Loading\u2026"),t.qZA()())}function ho(n,i){if(1&n&&(t.YNc(0,lo,4,0,"nz-tag",30),t.ALo(1,"ngrxPush"),t._UZ(2,"cvc-no-more-rows",31),t.ALo(3,"ngrxPush")),2&n){const e=t.oxw();t.Q6J("ngIf",t.lcZ(1,2,e.moreLoading$)),t.xp6(2),t.Q6J("cvcShowTag",t.lcZ(3,4,e.noMoreRows$))}}let Lt=((H=class{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e){this.gql=i,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=z.xlL,this.noMoreRows$=new E.X(!1),this.scrollEvent$=new E.X("stop"),this.sortChange$=new m.x,this.filterChange$=new m.x,this.scrollIndex$=new m.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Ui.o)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,At.x)(),(0,Fi.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","organizations"),(0,A.h)(mt.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,A.h)(mt.ep),(0,I.U)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,A.h)(mt.ep)),this.sortChange$.pipe((0,S.t)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,Ni._)(i)})}),this.filterChange$.pipe((0,Ji.b)(500),(0,S.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(i=>"stop"!==i),(0,At.x)(),(0,S.t)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.h)(i=>"bottom"===i),(0,Qi.M)(this.pageInfo$),(0,I.U)(([i,e])=>e),(0,S.t)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,e){return e?.id}}).\u0275fac=function(i){return new(i||H)(t.Y36(z.io),t.Y36(t.sBO))},H.\u0275cmp=t.Xpm({type:H,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right"],["nzWidth","125px","nzRight","","nzAlign","right"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(i,e){if(1&i&&(t.YNc(0,Xi,3,3,"ng-container",0),t.YNc(1,to,3,6,"ng-template",null,1,t.W1O),t.YNc(3,oo,27,24,"ng-template",null,2,t.W1O),t.YNc(5,co,4,3,"ng-template",null,3,t.W1O),t.YNc(7,ho,4,6,"ng-template",null,4,t.W1O)),2&i){const o=t.MAs(2);t.Q6J("ngIf",!e.cvcHeight)("ngIfElse",o)}},dependencies:[p.O5,p.tP,p.PC,v.Ls,D.N8,D.qD,D.Uo,D._C,D.Om,D.p0,D.$Z,D.zu,D.qn,D.UX,ht.w,y.bd,dt.j,$i.H,Yi.B,Gi.y,Hi.D,Bi.q,Vi.p,gt.m,Ie.T,p.JJ,Y.fM,Wi.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),H);function go(n,i){1&n&&(t.TgZ(0,"a",14),t._UZ(1,"i",15),t._uU(2," View Organization Docs "),t.qZA())}Lt=(0,Oe.gn)([(0,S.c)()],Lt);const po=function(){return[8,16]};let mo=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,o){1&e&&(t._UZ(0,"cvc-section-navigation"),t.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t._UZ(5,"i",3),t.ALo(6,"entityColor"),t.qZA(),t.TgZ(7,"nz-col",4)(8,"h2"),t._uU(9,"Organizations"),t.qZA(),t.TgZ(10,"p",5),t._uU(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.qZA()(),t.TgZ(12,"nz-col",6)(13,"nz-space",7),t.YNc(14,go,3,0,"a",8),t.qZA()()(),t.TgZ(15,"nz-row",9)(16,"nz-col",10),t._UZ(17,"cvc-organization-leaderboards"),t.qZA(),t.TgZ(18,"nz-col",11)(19,"div",12),t._UZ(20,"cvc-organizations-table",13),t.qZA()()()()()),2&e&&(t.xp6(5),t.Q6J("nzTwotoneColor",t.lcZ(6,4,"Organization")),t.xp6(5),t.Q6J("nzEllipsisRows",2),t.xp6(5),t.Q6J("nzGutter",t.DdM(6,po)),t.xp6(3),t.Q6J("nzSpan",24))},dependencies:[Q.$O,Q.u5,v.Ls,_.t3,_.SK,k.ix,ht.w,w.NU,w.$1,T.ZU,Se.I,Et,Lt,Pe.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),n})();var Zt=c(2185),uo=c(1958),fo=c(7458),_o=c(356),vo=c(4082);function zo(n,i){if(1&n&&t._UZ(0,"cvc-user-avatar",17),2&n){const e=t.oxw();t.Q6J("user",e.user)("size",48)}}function Co(n,i){if(1&n&&t._UZ(0,"cvc-user-tag",18),2&n){const e=t.oxw();t.Q6J("user",e.user)("enablePopover",!1)}}function bo(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user.areaOfExpertise)," ")}}function xo(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",19),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",e.organizations)}}function wo(n,i){1&n&&(t.ynx(0),t.TgZ(1,"span",20)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function yo(n,i){1&n&&(t.TgZ(0,"i",20),t._uU(1," None provided "),t.qZA())}function To(n,i){if(1&n&&(t.TgZ(0,"a",23),t._UZ(1,"i",24),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://",e.user.url,"",t.LSH)}}function Do(n,i){1&n&&t._UZ(0,"i",25)}function So(n,i){if(1&n&&(t.YNc(0,To,2,1,"a",21),t.YNc(1,Do,1,0,"ng-template",null,22,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.url)("ngIfElse",e)}}function Po(n,i){if(1&n&&(t.TgZ(0,"a",28),t._UZ(1,"i",29),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://twitter.com/",e.user.twitterHandle,"",t.LSH)}}function Oo(n,i){1&n&&t._UZ(0,"i",30)}function Io(n,i){if(1&n&&(t.YNc(0,Po,2,1,"a",26),t.YNc(1,Oo,1,0,"ng-template",null,27,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.twitterHandle)("ngIfElse",e)}}function Mo(n,i){if(1&n&&(t.TgZ(0,"a",33),t._UZ(1,"i",34),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://facebook.com/",e.user.facebookProfile,"",t.LSH)}}function Ro(n,i){1&n&&t._UZ(0,"i",35)}function Eo(n,i){if(1&n&&(t.YNc(0,Mo,2,1,"a",31),t.YNc(1,Ro,1,0,"ng-template",null,32,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.facebookProfile)("ngIfElse",e)}}function Ao(n,i){if(1&n&&(t.TgZ(0,"a",38),t._UZ(1,"i",39),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.LSH)}}function Lo(n,i){1&n&&t._UZ(0,"i",40)}function Zo(n,i){if(1&n&&(t.YNc(0,Ao,2,1,"a",36),t.YNc(1,Lo,1,0,"ng-template",null,37,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.linkedinProfile)("ngIfElse",e)}}function ko(n,i){if(1&n&&(t.TgZ(0,"a",43),t._UZ(1,"i",44),t.qZA()),2&n){const e=t.oxw(2);t.MGl("href","https://orcid.org/",e.user.orcid,"",t.LSH)}}function No(n,i){1&n&&t._UZ(0,"i",45)}function Uo(n,i){if(1&n&&(t.YNc(0,ko,2,1,"a",41),t.YNc(1,No,1,0,"ng-template",null,42,t.W1O)),2&n){const e=t.MAs(2),o=t.oxw();t.Q6J("ngIf",o.user.orcid)("ngIfElse",e)}}const Fo=function(n,i,e,o,s){return[n,i,e,o,s]};let Jo=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case z.i44.Admin:this.icon="civic-admin";break;case z.i44.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],["userAvatar",""],["userTag",""],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["noPersonalLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["noTwitterLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["noFacebookLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["noLinkedinLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["noOrcidLink",""],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(e,o){if(1&e&&(t.TgZ(0,"nz-card",0),t._UZ(1,"nz-card-meta",1),t.YNc(2,zo,1,2,"ng-template",null,2,t.W1O),t.YNc(4,Co,1,2,"ng-template",null,3,t.W1O),t.TgZ(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6),t._uU(9),t.ALo(10,"titlecase"),t.qZA(),t.TgZ(11,"nz-descriptions-item",7),t.YNc(12,bo,3,3,"ng-container",8),t.qZA(),t.TgZ(13,"nz-descriptions-item",9),t.YNc(14,xo,2,2,"ng-container",10),t.YNc(15,wo,4,0,"ng-container",10),t.qZA(),t.YNc(16,yo,2,0,"ng-template",null,11,t.W1O),t.qZA()()(),t.YNc(18,So,3,2,"ng-template",null,12,t.W1O),t.YNc(20,Io,3,2,"ng-template",null,13,t.W1O),t.YNc(22,Eo,3,2,"ng-template",null,14,t.W1O),t.YNc(24,Zo,3,2,"ng-template",null,15,t.W1O),t.YNc(26,Uo,3,2,"ng-template",null,16,t.W1O)),2&e){const s=t.MAs(3),r=t.MAs(5),a=t.MAs(17),l=t.MAs(19),d=t.MAs(21),h=t.MAs(23),g=t.MAs(25),f=t.MAs(27);t.Q6J("nzActions",t.qbA(16,Fo,l,f,g,h,d)),t.xp6(1),t.Q6J("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",r)("nzAvatar",s),t.xp6(6),t.Q6J("nzColumn",2),t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(10,14,o.user.role)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.Q6J("ngIf",o.user.areaOfExpertise)("ngIfElse",a),t.xp6(1),t.Q6J("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",o.user.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===o.user.organizations.length)}},dependencies:[p.O5,y.bd,y.l7,M.R7,M.uj,T.ZU,v.Ls,Ie.T,fo.L,_o.I,p.rS,vo.I],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0}),n})();function Qo(n,i){if(1&n&&(t.TgZ(0,"nz-col",4),t._UZ(1,"cvc-user-card",5),t.qZA()),2&n){const e=t.oxw().$implicit;t.Q6J("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.xp6(1),t.Q6J("user",e)}}function $o(n,i){if(1&n&&(t.ynx(0),t.YNc(1,Qo,2,7,"nz-col",3),t.BQk()),2&n){const e=i.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function Yo(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const s=t.oxw().ngrxLet,r=t.oxw();return t.KtG(r.loadMore(s.endCursor))}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.hij(" Load ",e.initialPageSize," More ")}}function Go(n,i){if(1&n&&(t.TgZ(0,"nz-col",6),t.YNc(1,Yo,2,1,"button",7),t.qZA()),2&n){const e=i.ngrxLet;t.xp6(1),t.Q6J("ngIf",e&&e.hasNextPage&&e.endCursor)}}const Ho=function(){return[8,8]};let Bo=(()=>{class n{constructor(e,o,s){this.gql=e,this.viewerService=o,this.route=s,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let a=this.queryRef.valueChanges;this.loading$=a.pipe((0,Zt.j)("loading"),(0,F.O)(!0)),this.members$=a.pipe((0,Zt.j)("data","users","edges"),(0,A.h)(mt.lm),(0,I.U)(l=>l.map(d=>d.node))),this.pageInfo$=a.pipe((0,Zt.j)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Del),t.Y36(Rt.a),t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"nz-row",0),t.YNc(1,$o,2,1,"ng-container",1),t.ALo(2,"ngrxPush"),t.YNc(3,Go,2,1,"nz-col",2),t.qZA()),2&e&&(t.Q6J("nzGutter",t.DdM(5,Ho)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,3,o.members$)),t.xp6(2),t.Q6J("ngrxLet",o.pageInfo$))},dependencies:[p.sg,p.O5,Y.eJ,_.t3,_.SK,k.ix,ht.w,uo.dQ,Jo,Y.fM],encapsulation:2}),n})();var Vo=c(6282);const Wo=[{path:"",component:(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"router-outlet")},dependencies:[C.lC],encapsulation:2}),n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:mo},{path:":organizationId",component:hi,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Bo,data:{breadcrumb:"Members"}},{path:"groups",component:xi,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:ui,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Bn,data:{breadcrumb:"Assertions"}},{path:"activity",component:pi,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(C.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(e,o){1&e&&t._UZ(0,"cvc-source-suggestions-table",0)},dependencies:[Vo.O],styles:["[_nghost-%COMP%]{display:block}"]}),n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let jo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[C.Bz.forChild(Wo),C.Bz]}),n})();var Xo=c(7240);let Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,Xo.W]}),n})(),qo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.ez,jo,Jn,In,Ae,Dn,Pn,Mn,Gn,Ko]}),n})()}}]); \ No newline at end of file diff --git a/server/public/5167.6e2738a3e8b693e3.js b/server/public/5167.6e2738a3e8b693e3.js new file mode 100644 index 000000000..f6c90f87d --- /dev/null +++ b/server/public/5167.6e2738a3e8b693e3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5167],{7199:(Ee,tt,s)=>{s.r(tt),s.d(tt,{UsersDetailModule:()=>He});var _=s(6814),F=s(2419),e=s(6254),v=s(4190),P=s(4059),y=s(2574),D=s(4293),Z=s(2840),O=s(551),t=s(5879);let ct=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,Z.sL,O.PV]}),o})();var T=s(8125),b=s(1106),C=s(95),I=s(2524),U=s(2962),lt=s(2996),pt=s(6987),w=s(67),z=s(6223),S=s(3903),V=s(3599),k=s(100),dt=s(7907),B=s(2669),N=s(9691),et=s(824);let zt=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,z.u5,V.U5,z.UX,U.vh,S.L,dt.aF,Z.sL,B.j,N.LV,et.o7,k.B]}),o})();var Ct=s(2637),vt=s(5572),xt=s(1826);let Tt=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-assertions-table",0),2&n&&t.Q6J("userId",r.userId)},dependencies:[xt.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=s(313),bt=s(7441);let Ut=(()=>{class o{constructor(n){this.route=n,this.mode=h.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(n,r){1&n&&t._UZ(0,"cvc-event-feed",0),2&n&&t.Q6J("userId",r.userId)("mode",r.mode)},dependencies:[bt.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Mt=s(6822);let yt=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-evidence-table",0),2&n&&t.Q6J("userId",r.userId)},dependencies:[Mt.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var nt=s(2024),H=s(5676),x=s(7398),j=s(2181),$=s(7921),W=s(7473),ot=s(6109),G=s(855),J=s(1958),it=s(2612),K=s(3498),Zt=s(3113),At=s(6794),Q=s(8091),Pt=s(7908),St=s(6116);function R(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t._uU(2),t.qZA()),2&o){const n=l.$implicit;t.xp6(1),t.Q6J("nzType",n.iconName),t.xp6(1),t.hij(" ",n.displayName," ")}}function M(o,l){1&o&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&o&&t.hij(" ",t.xi3(1,1,l.$implicit.id,"action-filter")," ")}function gt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t.ALo(2,"iconNameForSubscribableEntity"),t._uU(3),t.qZA()),2&o){const n=l.$implicit;t.xp6(1),t.Q6J("nzType",t.lcZ(2,3,n.subjectWithCount.subject.__typename)),t.xp6(2),t.AsE(" ",n.subjectWithCount.subject.name," (",n.subjectWithCount.occuranceCount,") ")}}function Nt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const n=l.$implicit;t.xp6(1),t.hij(" ",n.displayName," ")}}function Ot(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const n=l.$implicit;t.xp6(1),t.hij(" ",n.name," ")}}function It(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(n);const c=t.oxw(2);return t.KtG(c.bulkMarkRead())}),t._UZ(1,"i",19),t._uU(2,"Mark as read "),t.qZA(),t.TgZ(3,"button",18),t.NdJ("click",function(){t.CHM(n);const c=t.oxw(2);return t.KtG(c.bulkMarkUnread())}),t._UZ(4,"i",19),t._uU(5,"Mark as unread "),t.qZA(),t.TgZ(6,"button",18),t.NdJ("click",function(){t.CHM(n);const c=t.oxw(2);return t.KtG(c.bulkUnsubscribe())}),t._UZ(7,"i",20),t._uU(8,"Unsubscribe "),t.qZA(),t._uU(9," Check all "),t.TgZ(10,"label",21),t.NdJ("ngModelChange",function(c){t.CHM(n);const d=t.oxw(2);return t.KtG(d.allChecked=c)})("nzCheckedChange",function(c){t.CHM(n);const d=t.oxw(2);return t.KtG(d.onCheckAllCheckBoxClicked(c))}),t.qZA()}if(2&o){const n=t.oxw(2);t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!n.bulkMarkEnabled),t.xp6(4),t.Q6J("ngModel",n.allChecked)("nzIndeterminate",n.someChecked)}}function wt(o,l){if(1&o&&t._UZ(0,"i",32),2&o){const n=t.oxw().$implicit;t.Q6J("nzType","SUBSCRIPTION"===n.key.type?"book":"notification")("nzTheme",n.key.seen?"outline":"twotone")}}function Jt(o,l){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",33),t.NdJ("click",function(){t.CHM(n);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsUnread(c.key.id))}),t._UZ(2,"i",34),t.qZA(),t.BQk()}}function Qt(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(n);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsRead(c.key.id))}),t._UZ(1,"i",19),t.qZA()}}function Lt(o,l){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",36),t.NdJ("click",function(){t.CHM(n);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename))}),t._UZ(2,"i",20),t.qZA(),t.BQk()}if(2&o){const n=t.oxw().$implicit;t.xp6(1),t.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",n.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Et(o,l){1&o&&(t.TgZ(0,"button",37),t._UZ(1,"i",20),t.qZA())}function kt(o,l){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"nz-timeline-item",23),t.YNc(2,wt,1,2,"ng-template",null,24,t.W1O),t.TgZ(4,"nz-row")(5,"nz-col",25),t._UZ(6,"cvc-event-timeline-item",26),t.qZA(),t.TgZ(7,"nz-col",27),t.YNc(8,Jt,3,0,"ng-container",28),t.YNc(9,Qt,2,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(11,"nz-col",27),t.YNc(12,Lt,3,1,"ng-container",28),t.YNc(13,Et,2,0,"ng-template",null,30,t.W1O),t.TgZ(15,"label",31),t.NdJ("ngModelChange",function(c){const f=t.CHM(n).$implicit;return t.KtG(f.value.checked=c)})("nzCheckedChange",function(c){const f=t.CHM(n).$implicit,Y=t.oxw(3);return t.KtG(Y.onNotificationCheckBoxClicked(f.key.id,c))}),t.qZA()()()(),t.BQk()}if(2&o){const n=l.$implicit,r=t.MAs(3),c=t.MAs(10),d=t.MAs(14);t.xp6(1),t.Q6J("nzDot",r)("nzColor",n.key.seen?"gray":"blue"),t.xp6(5),t.Q6J("event",n.key.event),t.xp6(2),t.Q6J("ngIf",n.key.seen)("ngIfElse",c),t.xp6(4),t.Q6J("ngIf",n.key.subscription)("ngIfElse",d),t.xp6(3),t.Q6J("ngModel",n.value.checked)}}function L(o,l){if(1&o&&(t.TgZ(0,"nz-timeline"),t.YNc(1,kt,16,8,"ng-container",22),t.ALo(2,"keyvalue"),t.qZA()),2&o){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,n))}}function $t(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"div",39)(1,"button",40),t.NdJ("click",function(){t.CHM(n);const c=t.oxw().ngIf,d=t.oxw(2);return t.KtG(d.fetchMore(c.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function Rt(o,l){if(1&o&&(t.ynx(0),t.YNc(1,$t,3,0,"div",38),t.BQk()),2&o){const n=l.ngIf;t.xp6(1),t.Q6J("ngIf",n.hasNextPage&&n.endCursor)}}const q=function(){return[]};function Yt(o,l){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-row")(4,"nz-button-group",4)(5,"button",5),t.NdJ("click",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.setIncludeRead(!1))}),t._uU(6," Unread "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.setIncludeRead(!0))}),t._uU(8," All "),t.qZA()()(),t.TgZ(9,"nz-row")(10,"nz-col",6)(11,"cvc-participant-list",7),t.NdJ("participantSelectedEvent",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.onNotificationReasonSelected(c))}),t.YNc(12,R,3,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.onActionSelected(c))}),t.ALo(15,"ngrxPush"),t.YNc(16,M,2,4,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(18,"cvc-participant-list",10),t.NdJ("participantSelectedEvent",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.onNotificationSubjectSelected(c))}),t.ALo(19,"ngrxPush"),t.YNc(20,gt,4,5,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(22,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.onOriginatingUserSelected(c))}),t.ALo(23,"ngrxPush"),t.YNc(24,Nt,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(26,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.onOrganizationSelected(c))}),t.ALo(27,"ngrxPush"),t.YNc(28,Ot,2,1,"ng-template",null,8,t.W1O),t.qZA()()()(),t.TgZ(30,"nz-col",13)(31,"nz-card",14),t.YNc(32,It,11,5,"ng-template",null,15,t.W1O),t.TgZ(34,"nz-row",2)(35,"nz-col",16),t.YNc(36,L,3,3,"nz-timeline",1),t.YNc(37,Rt,2,1,"ng-container",1),t.ALo(38,"ngrxPush"),t.qZA()()()()(),t.BQk()}if(2&o){const n=l.ngIf,r=t.MAs(33),c=t.oxw();t.xp6(1),t.Q6J("nzGutter",25),t.xp6(4),t.Q6J("nzType",c.includeReadInput?"default":"primary"),t.xp6(2),t.Q6J("nzType",c.includeReadInput?"primary":"default"),t.xp6(4),t.Q6J("participantList",c.notificationTypes),t.xp6(3),t.Q6J("participantList",t.lcZ(15,12,c.actions$)||t.DdM(22,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(19,14,c.notificationSubjects$)||t.DdM(23,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(23,16,c.originatingUsers$)||t.DdM(24,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(27,18,c.organizations$)||t.DdM(25,q)),t.xp6(5),t.Q6J("nzExtra",r),t.xp6(3),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",n.size>0),t.xp6(1),t.Q6J("ngIf",t.lcZ(38,20,c.pageInfo$))}}let Ft=(()=>{class o{constructor(n,r,c,d,f){this.route=n,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=d,this.unsubscribeMutation=f,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new nt.U(c),this.unsubscribeMutator=new nt.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,x.U)(n=>n.data?.notifications),(0,j.h)(H.ep)),this.pageInfo$=this.connection$.pipe((0,x.U)(n=>n.pageInfo),(0,j.h)(H.ep)),this.notificationStateObservable$=this.results$.pipe((0,x.U)(n=>n.data),(0,j.h)(H.ep),(0,x.U)(({notifications:n})=>{let r=new Map;return n.edges.forEach(c=>{if(c.node){let d={checked:!1};r.set(c.node,d),this.notificationState.set(c.node,d)}}),r})),this.notificationSubjects$=this.results$.pipe((0,x.U)(n=>n.data),(0,j.h)(H.ep),(0,x.U)(({notifications:n})=>n.notificationSubjects.map(r=>({id:`${r.subject?.__typename}:${r.subject?.id}`,subjectWithCount:r})))),this.originatingUsers$=this.results$.pipe((0,x.U)(({data:n})=>n.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,x.U)(({data:n})=>n.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,x.U)(({data:n})=>n.notifications.organizations)),this.isLoading$=this.results$.pipe((0,x.U)(({loading:n})=>n),(0,$.O)(!0))}fetchMore(n){this.queryRef.fetchMore({variables:{after:n}})}setIncludeRead(n){this.includeReadInput=n,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(n){this.queryRef.refetch({notificationReason:n?n.type:void 0})}onNotificationSubjectSelected(n){let r;if(void 0!==n){let c=n.subjectWithCount.subject?.__typename;r={id:n.subjectWithCount.subject.id,entityType:h.o71[c]}}this.queryRef.refetch({originatingObject:r})}onOriginatingUserSelected(n){this.queryRef.refetch({originatingUserId:n?.id})}onActionSelected(n){this.queryRef.refetch({eventType:n?n.id:void 0})}onOrganizationSelected(n){this.queryRef.refetch({organizationId:n?.id})}markAsRead(n){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[n],newStatus:h.NQC.Read}})}markAsUnread(n){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[n],newStatus:h.NQC.Unread}})}unsubscribe(n,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:n,entityType:h.o71[r]}]}})}onNotificationCheckBoxClicked(n,r){let c=Array.from(this.notificationState.keys()).find(d=>d.id===n);if(c){let d=this.notificationState.get(c);d&&(d.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(d=>d.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(d=>d.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(d=>!d.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(n){n?this.checkAll():this.uncheckAll()}getCheckedIds(){let n=[];return this.notificationState.forEach((r,c)=>{r.checked&&n.push(c.id)}),n}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((n,r)=>{n.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((n,r)=>{n.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let n=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&n.push({id:c.subscription.subscribable.id,entityType:h.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:n}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz),t.Y36(h.yqR),t.Y36(W.Y),t.Y36(h.LiH),t.Y36(h.m$d))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"nzType","click"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Action",3,"participantList","participantSelectedEvent"],["listTitle","Subject",3,"participantList","participantSelectedEvent"],["listTitle","User",3,"participantList","participantSelectedEvent"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["bulkOperations",""],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModel","nzIndeterminate","ngModelChange","nzCheckedChange"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["timelineDotTemplate",""],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["unread",""],["noSubscriptionButton",""],["nz-checkbox","",3,"ngModel","ngModelChange","nzCheckedChange"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"nzTooltipTitle","click"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(n,r){1&n&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,Yt,39,26,"ng-container",1),t.ALo(3,"async"),t.qZA()),2&n&&(t.Q6J("nzSpinning",t.lcZ(1,2,r.isLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,r.notificationStateObservable$)))},dependencies:[_.sg,_.O5,z.JJ,z.On,ot.SY,B.W,C.t3,C.SK,Z.ix,Z.fY,G.w,J.dQ,U.bd,O.Ls,it.Ie,K.Zv,K.PD,Zt.t,At.l,_.Ov,_.Nd,Q.fM,Pt.R,St.j],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),o})();var Dt=s(6282);let Vt=(()=>{class o{constructor(n){this.route=n,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(n,r){1&n&&t._UZ(0,"cvc-source-suggestions-table",0),2&n&&t.Q6J("submitterId",r.userId)},dependencies:[Dt.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Bt=s(655),ut=s(4223),at=s(5619),mt=s(1791),Ht=s(951),_t=s(2392),ft=s(7417),jt=s(4527),Wt=s(2610),A=s(1022),Gt=s(8645),st=s(9773),Kt=s(6943);function qt(o,l){1&o&&t._UZ(0,"nz-alert",19)}function rt(o,l){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",20),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("errors",n.errorMessages)}}function Xt(o,l){if(1&o&&t._UZ(0,"nz-option",21),2&o){const n=l.$implicit;t.Q6J("nzLabel",n.name)("nzValue",n.id)}}let te=(()=>{class o{constructor(n,r,c){this.updateProfileGql=n,this.profileUpdatedEvent=new t.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Gt.x,this.updateProfileMutator=new nt.U(c),this.countries$=r.fetch().pipe((0,x.U)(({data:d})=>d.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let n={username:this.username,email:this.email,name:(0,A.xt)(this.name),areaOfExpertise:(0,A.uP)(this.areaOfExpertise),orcid:(0,A.xt)(this.orcid),url:(0,A.xt)(this.url),bio:(0,A.xt)(this.bio),countryId:(0,A.uP)(this.countryId),twitterHandle:(0,A.xt)(this.twitterHandle),facebookProfile:(0,A.xt)(this.facebookProfile),linkedinProfile:(0,A.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:n});r.submitSuccess$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(h.wbP),t.Y36(h.l4w),t.Y36(W.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModel","ngModelChange"],["nz-input","","rows","5",2,"width","100%",3,"ngModel","ngModelChange"],["nzAllowClear","","nzShowSearch","",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModel","ngModelChange"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"disabled","click"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(n,r){1&n&&(t.TgZ(0,"nz-card"),t.YNc(1,qt,1,0,"nz-alert",0),t.YNc(2,rt,2,1,"nz-form-item",1),t.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t._uU(6,"Username"),t.qZA(),t.TgZ(7,"input",4),t.NdJ("ngModelChange",function(d){return r.username=d}),t.qZA()(),t.TgZ(8,"nz-form-item")(9,"nz-form-label"),t._uU(10,"Name"),t.qZA(),t.TgZ(11,"input",4),t.NdJ("ngModelChange",function(d){return r.name=d}),t.qZA()(),t.TgZ(12,"nz-form-item")(13,"nz-form-label",3),t._uU(14,"Email"),t.qZA(),t.TgZ(15,"input",4),t.NdJ("ngModelChange",function(d){return r.email=d}),t.qZA()(),t.TgZ(16,"nz-form-item")(17,"nz-form-label"),t._uU(18,"User Bio"),t.qZA(),t.TgZ(19,"textarea",5),t.NdJ("ngModelChange",function(d){return r.bio=d}),t.qZA()(),t.TgZ(20,"nz-form-item")(21,"nz-form-label"),t._uU(22,"Country"),t.qZA(),t.TgZ(23,"nz-select",6),t.NdJ("ngModelChange",function(d){return r.countryId=d}),t.YNc(24,Xt,1,2,"nz-option",7),t.ALo(25,"ngrxPush"),t.qZA()(),t.TgZ(26,"nz-form-item")(27,"nz-form-label"),t._uU(28,"Area of Expertise"),t.qZA(),t.TgZ(29,"nz-select",8),t.NdJ("ngModelChange",function(d){return r.areaOfExpertise=d}),t._UZ(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.qZA()(),t.TgZ(33,"nz-form-item")(34,"nz-form-label"),t._uU(35,"ORCID Identifier"),t.qZA(),t.TgZ(36,"nz-input-group",12)(37,"input",13),t.NdJ("ngModelChange",function(d){return r.orcid=d}),t.qZA()()(),t.TgZ(38,"nz-form-item")(39,"nz-form-label"),t._uU(40,"Personal Website"),t.qZA(),t.TgZ(41,"input",4),t.NdJ("ngModelChange",function(d){return r.url=d}),t.qZA()(),t.TgZ(42,"nz-form-item")(43,"nz-form-label"),t._uU(44,"X/Twitter Handle"),t.qZA(),t.TgZ(45,"nz-input-group",14)(46,"input",15),t.NdJ("ngModelChange",function(d){return r.twitterHandle=d}),t.qZA()()(),t.TgZ(47,"nz-form-item")(48,"nz-form-label"),t._uU(49,"Facebook Profile"),t.qZA(),t.TgZ(50,"nz-input-group",16)(51,"input",15),t.NdJ("ngModelChange",function(d){return r.facebookProfile=d}),t.qZA()()(),t.TgZ(52,"nz-form-item")(53,"nz-form-label"),t._uU(54,"LinkedIn Profile"),t.qZA(),t.TgZ(55,"nz-input-group",17)(56,"input",15),t.NdJ("ngModelChange",function(d){return r.linkedinProfile=d}),t.qZA()()(),t.TgZ(57,"nz-form-item")(58,"button",18),t.NdJ("click",function(){return r.updateProfile()}),t._uU(59," Update Profile "),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",r.success),t.xp6(1),t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("nzSpinning",r.loading),t.xp6(4),t.Q6J("ngModel",r.username),t.xp6(4),t.Q6J("ngModel",r.name),t.xp6(4),t.Q6J("ngModel",r.email),t.xp6(4),t.Q6J("ngModel",r.bio),t.xp6(4),t.Q6J("ngModel",r.countryId),t.xp6(1),t.Q6J("ngForOf",t.lcZ(25,16,r.countries$)),t.xp6(5),t.Q6J("ngModel",r.areaOfExpertise),t.xp6(8),t.Q6J("ngModel",r.orcid),t.xp6(4),t.Q6J("ngModel",r.url),t.xp6(5),t.Q6J("ngModel",r.twitterHandle),t.xp6(5),t.Q6J("ngModel",r.facebookProfile),t.xp6(5),t.Q6J("ngModel",r.linkedinProfile),t.xp6(2),t.Q6J("disabled",r.loading||!r.username||!r.email))},dependencies:[_.sg,_.O5,z.Fj,z.JJ,z.On,C.t3,C.SK,V.Nx,V.iK,U.bd,S.r,Z.ix,G.w,J.dQ,B.W,N.Ip,N.Vq,et.Zp,et.gB,Kt.V,Q.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),o})();var ee=s(3145),Qe=s(5098),Le=s(7458),ne=s(9862);let oe=(()=>{class o{constructor(n){this.http=n,this.uploadComplete=new t.vpe}processProfileImage(n){if(n&&n[0]){let r=new FormData;r.append("image",n[0],n[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(ne.eN))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["type","file","accept","image/*",2,"display","none",3,"change"],["profileImage",""],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"]],template:function(n,r){if(1&n){const c=t.EpF();t.TgZ(0,"input",0,1),t.NdJ("change",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(r.processProfileImage(f.files))}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(f.click())}),t._uU(3," Update Image\n"),t.qZA()}},dependencies:[Z.ix,G.w,J.dQ],encapsulation:2}),o})();var E,ie=s(1607),ae=s(4082),se=s(2616);function re(o,l){if(1&o&&t._UZ(0,"cvc-user-avatar",26),2&o){const n=t.oxw().ngIf;t.Q6J("user",n)("size",128)}}function ce(o,l){if(1&o&&(t.TgZ(0,"div",27),t._UZ(1,"i",28),t.ALo(2,"lowercase"),t.ALo(3,"entityColor"),t.ALo(4,"titlecase"),t.TgZ(5,"span",29)(6,"strong"),t._uU(7),t.qZA()()()),2&o){const n=t.oxw().ngIf;t.xp6(1),t.Q6J("nzType","civic-"+t.lcZ(2,3,n.role))("nzTwotoneColor",t.lcZ(3,5,t.lcZ(4,7,n.role))),t.xp6(6),t.hij(" ",n.username,"")}}function le(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions-item",36),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.name," ")}}function X(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",38),t._UZ(2,"i",39),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://",n.url,"",t.LSH)}}function pe(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",40),t._UZ(2,"i",41),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://twitter.com/",n.twitterHandle,"",t.LSH)}}function de(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",42),t._UZ(2,"i",43),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://facebook.com/",n.facebookProfile,"",t.LSH)}}function ge(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",44),t._UZ(2,"i",45),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://linkedin.com/in/",n.linkedinProfile,"",t.LSH)}}function ht(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",46),t._UZ(2,"i",47),t.qZA(),t.BQk()),2&o){const n=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://orcid.org/",n.orcid,"",t.LSH)}}function ue(o,l){if(1&o&&(t.TgZ(0,"div",37),t.YNc(1,X,3,1,"ng-container",0),t.YNc(2,pe,3,1,"ng-container",0),t.YNc(3,de,3,1,"ng-container",0),t.YNc(4,ge,3,1,"ng-container",0),t.YNc(5,ht,3,1,"ng-container",0),t.qZA()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngIf",n.url),t.xp6(1),t.Q6J("ngIf",n.twitterHandle),t.xp6(1),t.Q6J("ngIf",n.facebookProfile),t.xp6(1),t.Q6J("ngIf",n.linkedinProfile),t.xp6(1),t.Q6J("ngIf",n.orcid)}}function me(o,l){1&o&&(t.TgZ(0,"i",48),t._uU(1," None provided "),t.qZA())}function _e(o,l){if(1&o&&(t.TgZ(0,"div")(1,"nz-descriptions",30),t.YNc(2,le,2,1,"nz-descriptions-item",31),t.TgZ(3,"nz-descriptions-item",32),t._uU(4),t.ALo(5,"enumToTitle"),t.qZA(),t.TgZ(6,"nz-descriptions-item",33),t.YNc(7,ue,6,5,"div",34),t.YNc(8,me,2,0,"ng-template",null,35,t.W1O),t.qZA()()()),2&o){const n=t.MAs(9),r=t.oxw().ngIf;t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(1),t.Q6J("ngIf",r.name),t.xp6(2),t.hij(" ",t.lcZ(5,6,r.role)," "),t.xp6(3),t.Q6J("ngIf",r.url||r.twitterHandle||r.facebookProfile||r.linkedinProfile||r.orcid)("ngIfElse",n)}}function fe(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(n);const c=t.oxw(3);return t.KtG(c.updateProfileModalVisible=!0)}),t._uU(1," Edit Profile "),t.qZA()}}function he(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-avatar-uploader",52),t.NdJ("uploadComplete",function(c){t.CHM(n);const d=t.oxw(3);return t.KtG(d.profileUploadComplete(c))}),t.qZA()}}function ze(o,l){1&o&&(t.ynx(0),t.YNc(1,fe,2,0,"button",49),t.YNc(2,he,1,0,"cvc-avatar-uploader",50),t.BQk())}function Ce(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.bio," ")}}function ve(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User has not provided a bio."),t.qZA()(),t.BQk())}function xe(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",t.lcZ(2,1,n.areaOfExpertise)," ")}}function Te(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function be(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",n.country.name," ")}}function Ue(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function Me(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",58),t.ALo(2,"ngrxPush"),t.BQk()),2&o){const n=t.oxw(3);t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",t.lcZ(2,2,n.organization$))}}function ye(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function Ze(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions",53)(1,"nz-descriptions-item",54),t.YNc(2,Ce,2,1,"ng-container",0),t.YNc(3,ve,4,0,"ng-container",0),t.qZA(),t.TgZ(4,"nz-descriptions-item",55),t.YNc(5,xe,3,3,"ng-container",0),t.YNc(6,Te,4,0,"ng-container",0),t.qZA(),t.TgZ(7,"nz-descriptions-item",56),t.YNc(8,be,2,1,"ng-container",0),t.YNc(9,Ue,4,0,"ng-container",0),t.qZA(),t.TgZ(10,"nz-descriptions-item",57),t.YNc(11,Me,3,4,"ng-container",0),t.YNc(12,ye,4,0,"ng-container",0),t.qZA()()),2&o){const n=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(2),t.Q6J("ngIf",n.bio),t.xp6(1),t.Q6J("ngIf",!n.bio),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",n.areaOfExpertise),t.xp6(1),t.Q6J("ngIf",!n.areaOfExpertise),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",n.country),t.xp6(1),t.Q6J("ngIf",!n.country),t.xp6(1),t.Q6J("nzSpan",4)("nzTitle","Organization"+(n.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",n.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===n.organizations.length)}}function Ae(o,l){if(1&o&&(t._UZ(0,"i",28),t.ALo(1,"lowercase"),t.ALo(2,"entityColor"),t.ALo(3,"titlecase"),t._uU(4," Editor Conflict of Interest Statement ")),2&o){const n=t.oxw(3).ngIf;t.Q6J("nzType","civic-"+t.lcZ(1,2,n.role))("nzTwotoneColor",t.lcZ(2,4,t.lcZ(3,6,n.role)))}}function Pe(o,l){if(1&o){const n=t.EpF();t.ynx(0),t.TgZ(1,"button",64),t.NdJ("click",function(){t.CHM(n);const c=t.oxw(5);return t.KtG(c.updateCoiModalVisible=!0)}),t._uU(2," Update COI "),t.qZA(),t.BQk()}}function Se(o,l){if(1&o&&(t.YNc(0,Pe,3,0,"ng-container",0),t.ALo(1,"ngrxPush")),2&o){const n=t.oxw(4);t.Q6J("ngIf",t.lcZ(1,1,n.ownProfile$))}}function Ne(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const n=t.oxw(4).ngIf;t.xp6(1),t.hij(" ",n.mostRecentConflictOfInterestStatement.coiStatement," ")}}function Oe(o,l){1&o&&t._uU(0," I do not have any potential conflicts of interest. ")}function Ie(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2),t.ALo(3,"enumToTitle"),t.qZA(),t.TgZ(4,"nz-descriptions-item",66),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"nz-descriptions-item",67),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"nz-descriptions-item",68),t.YNc(11,Ne,2,1,"ng-container",69),t.YNc(12,Oe,1,0,"ng-template",null,70,t.W1O),t.qZA(),t.BQk()),2&o){const n=t.MAs(13),r=t.oxw(3).ngIf;t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",3),t.xp6(1),t.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",n)}}function we(o,l){1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2," None on file. "),t.qZA(),t.BQk()),2&o&&(t.xp6(1),t.Q6J("nzSpan",3))}function i(o,l){if(1&o&&(t.TgZ(0,"nz-card",60),t.YNc(1,Ae,5,8,"ng-template",null,61,t.W1O),t.YNc(3,Se,2,3,"ng-template",null,62,t.W1O),t.TgZ(5,"nz-descriptions",63),t.YNc(6,Ie,14,17,"ng-container",0),t.YNc(7,we,3,1,"ng-container",0),t.qZA()()),2&o){const n=t.MAs(2),r=t.MAs(4),c=t.oxw(2).ngIf;t.Q6J("nzTitle",n)("nzExtra",r),t.xp6(5),t.Q6J("nzBordered",!0)("nzColumn",3),t.xp6(1),t.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),t.xp6(1),t.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function p(o,l){1&o&&(t.ynx(0),t.YNc(1,i,8,6,"nz-card",59),t.BQk())}function a(o,l){1&o&&(t.TgZ(0,"div",74)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function g(o,l){if(1&o&&(t.TgZ(0,"div",71),t._uU(1," Ranked Activities "),t.TgZ(2,"span",48),t._UZ(3,"i",72),t.qZA()(),t.YNc(4,a,17,0,"ng-template",null,73,t.W1O)),2&o){const n=t.MAs(5);t.Q6J("nzPopoverContent",n)}}function u(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Edit Profile"),t.qZA())}function m(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-user-profile-form",75),t.NdJ("profileUpdatedEvent",function(){t.CHM(n);const c=t.oxw(2);return t.KtG(c.profileUpdated())}),t.qZA()}if(2&o){const n=t.oxw().ngIf;t.Q6J("user",n)}}const ke=function(){return[8,8]};function $e(o,l){if(1&o){const n=t.EpF();t.ynx(0),t._UZ(1,"cvc-section-navigation",4),t.TgZ(2,"nz-page-header",5)(3,"nz-page-header-content")(4,"nz-row",6)(5,"nz-col",7)(6,"nz-space",8),t.YNc(7,re,1,2,"cvc-user-avatar",9),t.YNc(8,ce,8,9,"div",10),t.YNc(9,_e,10,8,"div",11),t.YNc(10,ze,3,0,"ng-container",0),t.ALo(11,"ngrxPush"),t.qZA()(),t.TgZ(12,"nz-col",12)(13,"nz-space",13),t.YNc(14,Ze,13,13,"nz-descriptions",14),t.YNc(15,p,2,0,"ng-container",0),t.qZA()(),t.TgZ(16,"nz-col",15)(17,"nz-descriptions",16)(18,"nz-descriptions-item",17),t._UZ(19,"cvc-stats-card",18),t.qZA(),t.YNc(20,g,6,1,"ng-template",null,19,t.W1O),t.qZA()()(),t.TgZ(22,"nz-row",20)(23,"nz-col",21),t._UZ(24,"cvc-tab-navigation",22),t.ALo(25,"ngrxPush"),t.TgZ(26,"div",23),t._UZ(27,"router-outlet"),t.qZA()()()()(),t.TgZ(28,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){t.CHM(n);const d=t.oxw();return t.KtG(d.updateProfileModalVisible=c)})("nzOnCancel",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.handleProfileModalCancel())}),t.YNc(29,u,2,0,"ng-template",null,24,t.W1O),t.YNc(31,m,1,1,"ng-template",null,25,t.W1O),t.qZA(),t.BQk()}if(2&o){const n=l.ngIf,r=t.MAs(21),c=t.MAs(30),d=t.MAs(32),f=t.oxw();t.xp6(1),t.Q6J("displayName",n.displayName),t.xp6(3),t.Q6J("nzGutter",t.DdM(16,ke)),t.xp6(6),t.Q6J("ngIf",t.lcZ(11,12,f.ownProfile$)),t.xp6(5),t.Q6J("ngIf","EDITOR"===n.role||"ADMIN"===n.role),t.xp6(3),t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("cvcStats",n.statsHash)("cvcRanks",n.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(25,14,f.tabs$)),t.xp6(4),t.Q6J("nzVisible",f.updateProfileModalVisible)("nzContent",d)("nzTitle",c)("nzFooter",null)}}function Re(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Ye(o,l){if(1&o){const n=t.EpF();t.TgZ(0,"cvc-user-coi-form",76),t.NdJ("coiUpdatedEvent",function(){t.CHM(n);const c=t.oxw();return t.KtG(c.coiUpdated())}),t.qZA()}}let Je=((E=class{constructor(l,n,r){this.gql=l,this.viewerService=n,this.route=r,this.organization$=new at.X([]),this.ownProfile$=new at.X(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new at.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({userId:+c.userId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,ut.j)("loading"),(0,$.O)(!0)),this.user$=d.pipe((0,ut.j)("data","user")),this.user$.pipe((0,x.U)(f=>f?f.organizations.map(Y=>({id:Y.id,name:Y.name,link:Y.url})):[]),(0,mt.t)(this)).subscribe(f=>{this.organization$.next(f)}),this.viewerSub=this.viewerService.viewer$.subscribe(f=>{f.id===+c.userId?(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0)):this.ownProfile$.next(!1)})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(l){l?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}).\u0275fac=function(l){return new(l||E)(t.Y36(h.sLD),t.Y36(Ht.a),t.Y36(v.gz))},E.\u0275cmp=t.Xpm({type:E,selectors:[["users-detail"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["noLinks",""],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["statementTitle",""],["updateCoi",""],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(l,n){if(1&l&&(t.YNc(0,$e,33,17,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){return n.updateCoiModalVisible=c})("nzOnCancel",function(){return n.handleCoiModalCancel()}),t.YNc(3,Re,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Ye,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&l){const r=t.MAs(4),c=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,n.user$)),t.xp6(2),t.Q6J("nzVisible",n.updateCoiModalVisible)("nzContent",c)("nzTitle",r)("nzFooter",null)}},dependencies:[_.O5,v.lC,C.t3,C.SK,e.$O,e.u5,y.NU,y.$1,T.R7,T.uj,U.bd,w.du,O.Ls,_t.ZU,ot.SY,ft.lU,Z.ix,G.w,J.dQ,jt.T,Wt.t,te,ee.I,Qe.P,Le.L,oe,ie.z,_.i8,_.rS,_.uU,Q.fM,ae.I,se.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),E);Je=(0,Bt.gn)([(0,mt.c)()],Je);const Fe=[{path:"",component:Je,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:yt,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Tt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Ut,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Vt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ft,data:{breadcrumb:"Notifications"}}]}];let De=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[v.Bz.forChild(Fe),v.Bz]}),o})();var Ve=s(6192),Be=s(7950);let He=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,v.Bz,De,S.L,C.Jb,Ve.YS,e.KJ,y.zf,T.q6,U.vh,pt.S,w.Qp,lt.A2,O.PV,_t.ZJ,ot.cg,ft.$6,Z.sL,Be.x,Ct.e,zt,I.s,F.D,P.c,D.H,ct,b.L,vt.C]}),o})()},5167:(Ee,tt,s)=>{s.r(tt),s.d(tt,{UsersModule:()=>we});var N,_=s(6814),F=s(4190),e=s(5879),v=s(6254),P=s(551),y=s(95),D=s(2840),Z=s(855),O=s(2574),t=s(2392),ct=s(655),T=s(313),b=s(1791),C=s(5619),I=s(7398),U=s(6223),lt=s(3640),pt=s(6928),w=s(2962),z=s(6976),S=s(9691),V=s(804),k=s(6109),dt=s(356),B=s(8091);function et(i,p){1&i&&e.GkF(0)}function zt(i,p){1&i&&e.GkF(0)}function Ct(i,p){1&i&&e.GkF(0)}function vt(i,p){1&i&&e.GkF(0)}function xt(i,p){if(1&i&&(e.TgZ(0,"span",13),e._uU(1),e.qZA(),e.TgZ(2,"span",14),e._UZ(3,"i",15),e.qZA()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",a.title," "),e.xp6(2),e.Q6J("nzTooltipTitle",a.info)}}const Tt=function(){return[0,5]};function h(i,p){if(1&i&&(e.TgZ(0,"nz-badge",20),e._UZ(1,"nz-avatar",21),e.qZA()),2&i){const a=e.oxw().$implicit;e.Q6J("nzCount",a.rank)("nzOffset",e.DdM(3,Tt)),e.xp6(1),e.Q6J("nzSrc",a.profileImagePath)}}function bt(i,p){if(1&i&&(e.TgZ(0,"nz-list-item"),e.YNc(1,h,2,4,"ng-template",null,16,e.W1O),e.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),e._UZ(5,"cvc-user-tag",18),e.qZA()(),e.TgZ(6,"ul",19)(7,"nz-list-item-action")(8,"span",14),e._uU(9),e.ALo(10,"number"),e.qZA()()()()),2&i){const a=p.$implicit,g=e.MAs(2);e.xp6(3),e.Q6J("nzAvatar",g),e.xp6(2),e.Q6J("user",a.user),e.xp6(4),e.hij(" Count: ",e.lcZ(10,3,a.actionCount)," ")}}function Ut(i,p){if(1&i&&e._UZ(0,"nz-list-empty",22),2&i){e.oxw();const a=e.MAs(7);e.Q6J("nzNoResult",a)}}function Mt(i,p){1&i&&e._UZ(0,"nz-empty",23)}const yt=function(i){return{"list-height-block":i}};function nt(i,p){if(1&i&&(e.YNc(0,xt,4,2,"ng-template",null,7,e.W1O),e.TgZ(2,"nz-list",8)(3,"div",9),e.YNc(4,bt,11,5,"nz-list-item",10),e.qZA(),e.YNc(5,Ut,1,1,"nz-list-empty",11),e.YNc(6,Mt,1,0,"ng-template",null,12,e.W1O),e.qZA()),2&i){const a=p.$implicit,g=e.MAs(1);e.xp6(2),e.Q6J("nzHeader",g)("nzLoading",a.loading),e.xp6(1),e.Q6J("ngClass",e.VKq(5,yt,a.rows.length>0)),e.xp6(1),e.Q6J("ngForOf",a.rows),e.xp6(1),e.Q6J("ngIf",0===a.rows.length)}}function H(i,p){1&i&&(e.TgZ(0,"span",13)(1,"strong"),e._uU(2,"Contributor Curation Activity Leaderboards"),e.qZA()())}function x(i,p){if(1&i){const a=e.EpF();e.TgZ(0,"span"),e._uU(1,"Time: "),e.qZA(),e.TgZ(2,"nz-select",24),e.NdJ("ngModelChange",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.timeWindow$.next(u))}),e.ALo(3,"ngrxPush"),e._UZ(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),e.qZA()}if(2&i){const a=e.oxw();e.xp6(2),e.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",e.lcZ(3,2,a.timeWindow$))}}const j=function(){return[8,8]},$=function(i){return{$implicit:i}};let W=((N=class{constructor(p,a,g,u){this.commentsGQL=p,this.revisionsGQL=a,this.moderationGQL=g,this.submissionsGQL=u,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=T.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new C.X(this.initialWindow),this.timeWindow$.pipe((0,b.t)(this)).subscribe(m=>{this.commentsQueryRef.refetch({window:m}),this.revisionsQueryRef.refetch({window:m}),this.moderationQueryRef.refetch({window:m}),this.submissionsQueryRef.refetch({window:m})}),this.commentsView$=new C.X(this.initialCommentsView),this.revisionsView$=new C.X(this.initialRevisionsView),this.moderationView$=new C.X(this.initialModerationView),this.submissionsView$=new C.X(this.initialSubmissionsView)}ngOnInit(){const p=a=>({rank:a.rank,actionCount:a.actionCount,profileImagePath:a.profileImagePath,name:a.name,user:{id:a.id,displayName:a.displayName,role:a.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.commentsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.commentsView$.next(a)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.moderationLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.moderationView$.next(a)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.revisionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.revisionsView$.next(a)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.submissionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.submissionsView$.next(a))}}).\u0275fac=function(p){return new(p||N)(e.Y36(T.ce2),e.Y36(T.VGG),e.Y36(T.SAN),e.Y36(T.da2))},N.\u0275cmp=e.Xpm({type:N,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(p,a){if(1&p&&(e.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),e.YNc(3,et,1,0,"ng-container",3),e.ALo(4,"ngrxPush"),e.qZA(),e.TgZ(5,"nz-col",2),e.YNc(6,zt,1,0,"ng-container",3),e.ALo(7,"ngrxPush"),e.qZA(),e.TgZ(8,"nz-col",2),e.YNc(9,Ct,1,0,"ng-container",3),e.ALo(10,"ngrxPush"),e.qZA(),e.TgZ(11,"nz-col",2),e.YNc(12,vt,1,0,"ng-container",3),e.ALo(13,"ngrxPush"),e.qZA()()(),e.YNc(14,nt,8,7,"ng-template",null,4,e.W1O),e.YNc(16,H,3,0,"ng-template",null,5,e.W1O),e.YNc(18,x,8,4,"ng-template",null,6,e.W1O)),2&p){const g=e.MAs(15),u=e.MAs(17),m=e.MAs(19);e.Q6J("nzTitle",u)("nzExtra",m),e.xp6(1),e.Q6J("nzGutter",e.DdM(19,j)),e.xp6(2),e.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",e.VKq(20,$,e.lcZ(4,11,a.commentsView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",e.VKq(22,$,e.lcZ(7,13,a.revisionsView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",e.VKq(24,$,e.lcZ(10,15,a.moderationView$))),e.xp6(3),e.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",e.VKq(26,$,e.lcZ(13,17,a.submissionsView$)))}},dependencies:[_.mk,_.sg,_.O5,_.tP,U.JJ,U.On,lt.x7,pt.Dz,y.t3,y.SK,w.bd,z.n_,z.I2,z.AA,z.yi,z.IO,z.nk,z.KC,S.Ip,S.Vq,t.ZU,V.p9,P.Ls,k.SY,dt.I,_.JJ,B.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),N);W=(0,ct.gn)([(0,b.c)()],W);var L,ot=s(3145),G=s(4632),J=s(8645),it=s(5676),K=s(3997),Zt=s(812),At=s(836),Q=s(2181),Pt=s(3620),St=s(2460),R=s(4223),M=s(3740),gt=s(5695),Nt=s(6753),Ot=s(4764),It=s(8516),wt=s(3489),Jt=s(9857),Qt=s(4997),Lt=s(4527),Et=s(4082),kt=s(5573);function $t(i,p){}function Rt(i,p){if(1&i&&(e.ynx(0),e.TgZ(1,"nz-card",5),e.YNc(2,$t,0,0,"ng-template",6),e.qZA(),e.BQk()),2&i){e.oxw();const a=e.MAs(6),g=e.MAs(8),u=e.MAs(4);e.xp6(1),e.Q6J("nzTitle",a)("nzExtra",g),e.xp6(1),e.Q6J("ngTemplateOutlet",u)}}function q(i,p){}const Yt=function(i){return{height:i}};function Ft(i,p){if(1&i&&(e.TgZ(0,"div",7)(1,"nz-card",8),e.YNc(2,q,0,0,"ng-template",6),e.qZA()()),2&i){const a=e.oxw(),g=e.MAs(6),u=e.MAs(8),m=e.MAs(4);e.Q6J("ngStyle",e.VKq(4,Yt,a.cvcHeight)),e.xp6(1),e.Q6J("nzTitle",g)("nzExtra",u),e.xp6(1),e.Q6J("ngTemplateOutlet",m)}}function Dt(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",a.name," ")}}function Vt(i,p){1&i&&(e.TgZ(0,"i",39),e._uU(1,"Not specified"),e.qZA())}function Bt(i,p){if(1&i&&(e.TgZ(0,"div"),e._UZ(1,"cvc-tag-overflow",40),e.qZA()),2&i){const a=e.oxw().$implicit,g=e.oxw(2);e.xp6(1),e.Q6J("maxDisplayCount",1)("tags",a.organizations)("matchingText",g.orgNameInput)}}function ut(i,p){1&i&&(e.TgZ(0,"i",39),e._uU(1,"None specified"),e.qZA())}function at(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.ALo(2,"timeAgo"),e.BQk()),2&i){const a=e.oxw().$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,a.mostRecentActivityTimestamp)," ")}}function mt(i,p){1&i&&e._uU(0," -- ")}function Ht(i,p){if(1&i&&(e.TgZ(0,"tr",31)(1,"td",23),e._UZ(2,"cvc-user-tag",32),e.qZA(),e.TgZ(3,"td",33),e.YNc(4,Dt,2,1,"ng-container",0),e.YNc(5,Vt,2,0,"ng-template",null,34,e.W1O),e.qZA(),e.TgZ(7,"td"),e.YNc(8,Bt,2,3,"div",0),e.YNc(9,ut,2,0,"ng-template",null,35,e.W1O),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.ALo(13,"enumToTitle"),e.qZA(),e.TgZ(14,"td",36),e.YNc(15,at,3,3,"ng-container",0),e.YNc(16,mt,1,0,"ng-template",null,37,e.W1O),e.qZA(),e.TgZ(18,"td",38),e._uU(19),e.qZA(),e.TgZ(20,"td",38),e._uU(21),e.qZA()()),2&i){const a=p.$implicit,g=e.MAs(6),u=e.MAs(10),m=e.MAs(17);e.xp6(2),e.Q6J("user",a),e.xp6(2),e.Q6J("ngIf",a.name)("ngIfElse",g),e.xp6(4),e.Q6J("ngIf",a.organizations.length>0)("ngIfElse",u),e.xp6(4),e.hij(" ",e.lcZ(13,10,a.role)," "),e.xp6(3),e.Q6J("ngIf",a.mostRecentActivityTimestamp)("ngIfElse",m),e.xp6(4),e.hij(" ",a.statsHash.submittedEvidenceItems," "),e.xp6(2),e.hij(" ",a.statsHash.revisions," ")}}const _t=function(){return[]},ft=function(){return{x:"680px",y:"800px"}};function jt(i,p){if(1&i){const a=e.EpF();e.TgZ(0,"nz-table",9,10),e.NdJ("cvcTableScrollOnScroll",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.scrollEvent$.next(u))}),e.ALo(2,"ngrxPush"),e.ALo(3,"ngrxPush"),e.ALo(4,"ngrxPush"),e.ALo(5,"ngrxPush"),e.TgZ(6,"thead",11),e.NdJ("nzSortOrderChange",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.sortChange$.next(u))}),e.TgZ(7,"tr",12)(8,"th",13),e._uU(9," User "),e.qZA(),e.TgZ(10,"th",14),e._uU(11," Name "),e.qZA(),e.TgZ(12,"th",15),e._uU(13,"Organizations"),e.qZA(),e.TgZ(14,"th",16),e._uU(15," Role "),e.qZA(),e.TgZ(16,"th",17),e._uU(17," Last Action "),e.qZA(),e.TgZ(18,"th",18),e._UZ(19,"i",19),e._uU(20," Count "),e.qZA(),e.TgZ(21,"th",20),e._UZ(22,"i",21),e._uU(23," Count "),e.qZA()(),e.TgZ(24,"tr",22),e._UZ(25,"th",23),e.TgZ(26,"th")(27,"cvc-clearable-input-filter",24),e.NdJ("inputModelChange",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.nameInput=u)})("inputModelChange",function(){e.CHM(a);const u=e.oxw();return e.KtG(u.filterChange$.next())}),e.qZA()(),e.TgZ(28,"th")(29,"cvc-clearable-input-filter",24),e.NdJ("inputModelChange",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.orgNameInput=u)})("inputModelChange",function(){e.CHM(a);const u=e.oxw();return e.KtG(u.filterChange$.next())}),e.qZA()(),e.TgZ(30,"th")(31,"nz-select",25),e.NdJ("ngModelChange",function(){e.CHM(a);const u=e.oxw();return e.KtG(u.filterChange$.next())})("ngModelChange",function(u){e.CHM(a);const m=e.oxw();return e.KtG(m.roleInput=u)}),e._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),e.qZA()(),e._UZ(35,"th")(36,"th",29)(37,"th",29),e.qZA()(),e.TgZ(38,"tbody"),e.YNc(39,Ht,22,12,"ng-template",30),e.qZA()()}if(2&i){const a=e.oxw();e.Q6J("nzData",e.lcZ(2,21,a.row$)||e.DdM(29,_t))("nzLoading",!e.lcZ(3,23,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",e.lcZ(4,25,a.pageInfo$))("cvcTableScrollToIndex",e.lcZ(5,27,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",e.DdM(30,ft))("nzFrontPagination",!1)("nzShowPagination",!1),e.xp6(10),e.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),e.xp6(4),e.Q6J("nzColumnKey",a.sortColumns.Role)("nzSortFn",!0),e.xp6(2),e.Q6J("nzColumnKey",a.sortColumns.LastAction)("nzSortFn",!0),e.xp6(11),e.Q6J("inputModel",a.nameInput),e.xp6(2),e.Q6J("inputModel",a.orgNameInput),e.xp6(2),e.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",a.roleInput)}}function Wt(i,p){}function A(i,p){if(1&i&&(e.ynx(0),e.YNc(1,Wt,0,0,"ng-template",6),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function Gt(i,p){if(1&i&&(e.ynx(0),e._uU(1),e.BQk()),2&i){const a=e.oxw(2);e.xp6(1),e.hij(" ",a.cvcTitle," ")}}function st(i,p){if(1&i&&(e.YNc(0,A,2,1,"ng-container",41),e.YNc(1,Gt,2,1,"ng-container",41),e.TgZ(2,"span",42),e._UZ(3,"cvc-table-counts",43),e.qZA()),2&i){const a=e.oxw();e.Q6J("ngIf",a.cvcTitleTemplate),e.xp6(1),e.Q6J("ngIf",a.cvcTitle),e.xp6(2),e.Q6J("cvcTableCountsConnection",a.connection$)}}function Kt(i,p){1&i&&(e.TgZ(0,"nz-tag",46),e._UZ(1,"i",47),e.TgZ(2,"span"),e._uU(3,"Loading\u2026"),e.qZA()())}function qt(i,p){if(1&i&&(e.YNc(0,Kt,4,0,"nz-tag",44),e.ALo(1,"ngrxPush"),e._UZ(2,"cvc-no-more-rows",45),e.ALo(3,"ngrxPush")),2&i){const a=e.oxw();e.Q6J("ngIf",e.lcZ(1,2,a.moreLoading$)),e.xp6(2),e.Q6J("cvcShowTag",e.lcZ(3,4,a.noMoreRows$))}}let rt=((L=class{set initialUserFilters(p){p&&Object.assign(this,p)}constructor(p,a){this.gql=p,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=T.IRu,this.noMoreRows$=new C.X(!1),this.scrollEvent$=new C.X("stop"),this.sortChange$=new J.x,this.filterChange$=new J.x,this.scrollIndex$=new J.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:T.IRu.LastAction,direction:T.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,Zt.o)(p=>!1!==p,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,At.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","users"),(0,Q.h)(it.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,Q.h)(it.ep),(0,I.U)(p=>p.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,Q.h)(it.ep)),this.sortChange$.pipe((0,b.t)(this)).subscribe(p=>{this.queryRef.refetch({sortBy:(0,G._)(p)})}),this.filterChange$.pipe((0,Pt.b)(500),(0,b.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(p=>"stop"!==p),(0,K.x)(),(0,b.t)(this)).subscribe(p=>{this.isScrolling=p,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(p=>"bottom"===p),(0,St.M)(this.pageInfo$),(0,I.U)(([p,a])=>a),(0,b.t)(this)).subscribe(p=>{p.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(p,a){return a?.id}}).\u0275fac=function(p){return new(p||L)(e.Y36(T.tJ6),e.Y36(e.sBO))},L.\u0275cmp=e.Xpm({type:L,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nameElse",""],["orgElse",""],["nzAlign","right"],["eventElse",""],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(p,a){if(1&p&&(e.YNc(0,Rt,3,3,"ng-container",0),e.YNc(1,Ft,3,6,"ng-template",null,1,e.W1O),e.YNc(3,jt,40,31,"ng-template",null,2,e.W1O),e.YNc(5,st,4,3,"ng-template",null,3,e.W1O),e.YNc(7,qt,4,6,"ng-template",null,4,e.W1O)),2&p){const g=e.MAs(2);e.Q6J("ngIf",!a.cvcHeight)("ngIfElse",g)}},dependencies:[_.O5,_.tP,_.PC,U.JJ,U.On,Z.w,w.bd,P.Ls,S.Ip,S.Vq,M.N8,M.qD,M.Uo,M._C,M.Om,M.p0,M.$Z,M.zu,M.qn,M.UX,gt.j,k.SY,t.ZU,Nt.D,Ot.q,It.p,wt.H,Jt.B,Qt.y,Lt.T,dt.I,B.fM,Et.I,kt.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),L);rt=(0,ct.gn)([(0,b.c)()],rt);var Xt=s(2616);function te(i,p){1&i&&(e.TgZ(0,"a",12),e._UZ(1,"i",13),e._uU(2," View Contributor Docs "),e.qZA())}const ee=function(){return[8,16]},ne=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-users"]],decls:1,vars:0,template:function(a,g){1&a&&e._UZ(0,"router-outlet")},dependencies:[F.lC],encapsulation:2}),i})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=e.Xpm({type:i,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(a,g){1&a&&(e._UZ(0,"cvc-section-navigation"),e.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e._UZ(5,"i",3),e.ALo(6,"entityColor"),e.qZA(),e.TgZ(7,"nz-col",4)(8,"h2"),e._uU(9,"Contributors"),e.qZA(),e.TgZ(10,"p",5),e._uU(11," CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing. "),e.qZA()(),e.TgZ(12,"nz-col",6)(13,"nz-space",7),e.YNc(14,te,3,0,"a",8),e.qZA()()(),e.TgZ(15,"nz-row",9)(16,"nz-col",10),e._UZ(17,"cvc-user-leaderboards"),e.qZA(),e.TgZ(18,"nz-col",10),e._UZ(19,"cvc-users-table",11),e.qZA()()()()),2&a&&(e.xp6(5),e.Q6J("nzTwotoneColor",e.lcZ(6,3,"Curator")),e.xp6(5),e.Q6J("nzEllipsisRows",2),e.xp6(5),e.Q6J("nzGutter",e.DdM(5,ee)))},dependencies:[v.$O,v.u5,P.Ls,y.t3,y.SK,D.ix,Z.w,O.NU,O.$1,t.ZU,W,ot.I,rt,Xt.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),i})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(s.bind(s,7199)).then(i=>i.UsersDetailModule)}]}]}];let oe=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[F.Bz.forChild(ne),F.Bz]}),i})();var ie=s(1106),ae=s(7856),se=s(6067),E=s(9154),re=s(2989),ce=s(366),le=s(7950),X=s(2524),pe=s(9175),de=s(4742),ge=s(9312),ht=s(8706);let ue=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,D.sL,w.vh,P.PV,S.LV,M.HQ,gt.X,k.cg,t.ZJ,pe.n,de.c,ae.k,se.X,E.y,ie.L,X.s,re.T,ge.w,ce.$,le.x,ht.W]}),i})();var me=s(2419),_e=s(9382),fe=s(6987);let he=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,lt.mS,fe.S,O.zf,pt.Rt,y.Jb,w.vh,z.Ph,_e.we,S.LV,t.ZJ,V.Xo,P.PV,k.cg,X.s,ht.W]}),i})(),ze=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,v.KJ,P.PV,y.Jb,D.sL,O.zf,t.ZJ,he,me.D,ue,X.s]}),i})();var Ce=s(5895);let ve=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,P.PV,Ce.s]}),i})();var xe=s(7199),Te=s(9894);let be=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,Te.t]}),i})();var Ue=s(1403);let Me=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,Ue.Q]}),i})();var ye=s(7240);let Ze=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,ye.W]}),i})();var Ae=s(2669),Pe=s(1595),Se=s(2612),Ne=s(3498),Oe=s(5528);let Ie=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,U.u5,k.cg,Ae.j,y.Jb,D.sL,w.vh,P.PV,Se.Wr,Ne.FT,Oe.E,X.s,Pe.N]}),i})(),we=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[_.ez,F.Bz,oe,ze,ve,xe.UsersDetailModule,be,Me,Ze,Ie]}),i})()}}]); \ No newline at end of file diff --git a/server/public/5167.abd6fb37a270e374.js b/server/public/5167.abd6fb37a270e374.js deleted file mode 100644 index d66b5da10..000000000 --- a/server/public/5167.abd6fb37a270e374.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5167],{7199:(kn,tt,s)=>{s.r(tt),s.d(tt,{UsersDetailModule:()=>jn});var _=s(6814),F=s(2419),n=s(6254),v=s(4190),P=s(4059),y=s(2574),D=s(4293),Z=s(2840),O=s(551),t=s(5879);let ct=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,Z.sL,O.PV]}),o})();var T=s(8125),b=s(1106),C=s(95),I=s(2524),U=s(2962),lt=s(2996),pt=s(6987),w=s(67),z=s(6223),S=s(3903),V=s(3599),k=s(100),dt=s(7907),B=s(2669),N=s(9691),nt=s(824);let zt=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,z.u5,V.U5,z.UX,U.vh,S.L,dt.aF,Z.sL,B.j,N.LV,nt.o7,k.B]}),o})();var Ct=s(2637),vt=s(5572),xt=s(1826);let Tt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-assertions-table",0),2&e&&t.Q6J("userId",r.userId)},dependencies:[xt.x],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var h=s(313),bt=s(7441);let Ut=(()=>{class o{constructor(e){this.route=e,this.mode=h.wJ2.User,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(e,r){1&e&&t._UZ(0,"cvc-event-feed",0),2&e&&t.Q6J("userId",r.userId)("mode",r.mode)},dependencies:[bt.o],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Mt=s(6822);let yt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-evidence-table",0),2&e&&t.Q6J("userId",r.userId)},dependencies:[Mt.a],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var et=s(2024),H=s(5676),x=s(7398),j=s(2181),$=s(7921),W=s(7473),ot=s(6109),G=s(855),J=s(1958),it=s(2612),K=s(3498),Zt=s(3113),At=s(6794),Q=s(8091),Pt=s(7908),St=s(6116);function R(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t._uU(2),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.Q6J("nzType",e.iconName),t.xp6(1),t.hij(" ",e.displayName," ")}}function M(o,l){1&o&&(t._uU(0),t.ALo(1,"eventVerbiage")),2&o&&t.hij(" ",t.xi3(1,1,l.$implicit.id,"action-filter")," ")}function gt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._UZ(1,"i",17),t.ALo(2,"iconNameForSubscribableEntity"),t._uU(3),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.Q6J("nzType",t.lcZ(2,3,e.subjectWithCount.subject.__typename)),t.xp6(2),t.AsE(" ",e.subjectWithCount.subject.name," (",e.subjectWithCount.occuranceCount,") ")}}function Nt(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.hij(" ",e.displayName," ")}}function Ot(o,l){if(1&o&&(t.TgZ(0,"nz-col"),t._uU(1),t.qZA()),2&o){const e=l.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function It(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkMarkRead())}),t._UZ(1,"i",19),t._uU(2,"Mark as read "),t.qZA(),t.TgZ(3,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkMarkUnread())}),t._UZ(4,"i",19),t._uU(5,"Mark as unread "),t.qZA(),t.TgZ(6,"button",18),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.bulkUnsubscribe())}),t._UZ(7,"i",20),t._uU(8,"Unsubscribe "),t.qZA(),t._uU(9," Check all "),t.TgZ(10,"label",21),t.NdJ("ngModelChange",function(c){t.CHM(e);const d=t.oxw(2);return t.KtG(d.allChecked=c)})("nzCheckedChange",function(c){t.CHM(e);const d=t.oxw(2);return t.KtG(d.onCheckAllCheckBoxClicked(c))}),t.qZA()}if(2&o){const e=t.oxw(2);t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(3),t.Q6J("disabled",!e.bulkMarkEnabled),t.xp6(4),t.Q6J("ngModel",e.allChecked)("nzIndeterminate",e.someChecked)}}function wt(o,l){if(1&o&&t._UZ(0,"i",32),2&o){const e=t.oxw().$implicit;t.Q6J("nzType","SUBSCRIPTION"===e.key.type?"book":"notification")("nzTheme",e.key.seen?"outline":"twotone")}}function Jt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",33),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsUnread(c.key.id))}),t._UZ(2,"i",34),t.qZA(),t.BQk()}}function Qt(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.markAsRead(c.key.id))}),t._UZ(1,"i",19),t.qZA()}}function Lt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",36),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().$implicit,d=t.oxw(3);return t.KtG(d.unsubscribe(c.key.subscription.subscribable.id,c.key.subscription.subscribable.__typename))}),t._UZ(2,"i",20),t.qZA(),t.BQk()}if(2&o){const e=t.oxw().$implicit;t.xp6(1),t.MGl("nzTooltipTitle","You received this notification because you are subscribed to ",e.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Et(o,l){1&o&&(t.TgZ(0,"button",37),t._UZ(1,"i",20),t.qZA())}function kt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-timeline-item",23),t.YNc(2,wt,1,2,"ng-template",null,24,t.W1O),t.TgZ(4,"nz-row")(5,"nz-col",25),t._UZ(6,"cvc-event-timeline-item",26),t.qZA(),t.TgZ(7,"nz-col",27),t.YNc(8,Jt,3,0,"ng-container",28),t.YNc(9,Qt,2,0,"ng-template",null,29,t.W1O),t.qZA(),t.TgZ(11,"nz-col",27),t.YNc(12,Lt,3,1,"ng-container",28),t.YNc(13,Et,2,0,"ng-template",null,30,t.W1O),t.TgZ(15,"label",31),t.NdJ("ngModelChange",function(c){const f=t.CHM(e).$implicit;return t.KtG(f.value.checked=c)})("nzCheckedChange",function(c){const f=t.CHM(e).$implicit,Y=t.oxw(3);return t.KtG(Y.onNotificationCheckBoxClicked(f.key.id,c))}),t.qZA()()()(),t.BQk()}if(2&o){const e=l.$implicit,r=t.MAs(3),c=t.MAs(10),d=t.MAs(14);t.xp6(1),t.Q6J("nzDot",r)("nzColor",e.key.seen?"gray":"blue"),t.xp6(5),t.Q6J("event",e.key.event),t.xp6(2),t.Q6J("ngIf",e.key.seen)("ngIfElse",c),t.xp6(4),t.Q6J("ngIf",e.key.subscription)("ngIfElse",d),t.xp6(3),t.Q6J("ngModel",e.value.checked)}}function L(o,l){if(1&o&&(t.TgZ(0,"nz-timeline"),t.YNc(1,kt,16,8,"ng-container",22),t.ALo(2,"keyvalue"),t.qZA()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,e))}}function $t(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"div",39)(1,"button",40),t.NdJ("click",function(){t.CHM(e);const c=t.oxw().ngIf,d=t.oxw(2);return t.KtG(d.fetchMore(c.endCursor))}),t._uU(2," Load More "),t.qZA()()}}function Rt(o,l){if(1&o&&(t.ynx(0),t.YNc(1,$t,3,0,"div",38),t.BQk()),2&o){const e=l.ngIf;t.xp6(1),t.Q6J("ngIf",e.hasNextPage&&e.endCursor)}}const q=function(){return[]};function Yt(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-row")(4,"nz-button-group",4)(5,"button",5),t.NdJ("click",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.setIncludeRead(!1))}),t._uU(6," Unread "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.setIncludeRead(!0))}),t._uU(8," All "),t.qZA()()(),t.TgZ(9,"nz-row")(10,"nz-col",6)(11,"cvc-participant-list",7),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onNotificationReasonSelected(c))}),t.YNc(12,R,3,2,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(14,"cvc-participant-list",9),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onActionSelected(c))}),t.ALo(15,"ngrxPush"),t.YNc(16,M,2,4,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(18,"cvc-participant-list",10),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onNotificationSubjectSelected(c))}),t.ALo(19,"ngrxPush"),t.YNc(20,gt,4,5,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(22,"cvc-participant-list",11),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onOriginatingUserSelected(c))}),t.ALo(23,"ngrxPush"),t.YNc(24,Nt,2,1,"ng-template",null,8,t.W1O),t.qZA(),t.TgZ(26,"cvc-participant-list",12),t.NdJ("participantSelectedEvent",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.onOrganizationSelected(c))}),t.ALo(27,"ngrxPush"),t.YNc(28,Ot,2,1,"ng-template",null,8,t.W1O),t.qZA()()()(),t.TgZ(30,"nz-col",13)(31,"nz-card",14),t.YNc(32,It,11,5,"ng-template",null,15,t.W1O),t.TgZ(34,"nz-row",2)(35,"nz-col",16),t.YNc(36,L,3,3,"nz-timeline",1),t.YNc(37,Rt,2,1,"ng-container",1),t.ALo(38,"ngrxPush"),t.qZA()()()()(),t.BQk()}if(2&o){const e=l.ngIf,r=t.MAs(33),c=t.oxw();t.xp6(1),t.Q6J("nzGutter",25),t.xp6(4),t.Q6J("nzType",c.includeReadInput?"default":"primary"),t.xp6(2),t.Q6J("nzType",c.includeReadInput?"primary":"default"),t.xp6(4),t.Q6J("participantList",c.notificationTypes),t.xp6(3),t.Q6J("participantList",t.lcZ(15,12,c.actions$)||t.DdM(22,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(19,14,c.notificationSubjects$)||t.DdM(23,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(23,16,c.originatingUsers$)||t.DdM(24,q)),t.xp6(4),t.Q6J("participantList",t.lcZ(27,18,c.organizations$)||t.DdM(25,q)),t.xp6(5),t.Q6J("nzExtra",r),t.xp6(3),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.size>0),t.xp6(1),t.Q6J("ngIf",t.lcZ(38,20,c.pageInfo$))}}let Ft=(()=>{class o{constructor(e,r,c,d,f){this.route=e,this.gql=r,this.networkErrorService=c,this.updateNotificationStatusMuation=d,this.unsubscribeMutation=f,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.fow.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.fow.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new et.U(c),this.unsubscribeMutator=new et.U(c)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,x.U)(e=>e.data?.notifications),(0,j.h)(H.ep)),this.pageInfo$=this.connection$.pipe((0,x.U)(e=>e.pageInfo),(0,j.h)(H.ep)),this.notificationStateObservable$=this.results$.pipe((0,x.U)(e=>e.data),(0,j.h)(H.ep),(0,x.U)(({notifications:e})=>{let r=new Map;return e.edges.forEach(c=>{if(c.node){let d={checked:!1};r.set(c.node,d),this.notificationState.set(c.node,d)}}),r})),this.notificationSubjects$=this.results$.pipe((0,x.U)(e=>e.data),(0,j.h)(H.ep),(0,x.U)(({notifications:e})=>e.notificationSubjects.map(r=>({id:`${r.subject?.__typename}:${r.subject?.id}`,subjectWithCount:r})))),this.originatingUsers$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.eventTypes.map(r=>({id:r})))),this.organizations$=this.results$.pipe((0,x.U)(({data:e})=>e.notifications.organizations)),this.isLoading$=this.results$.pipe((0,x.U)(({loading:e})=>e),(0,$.O)(!0))}fetchMore(e){this.queryRef.fetchMore({variables:{after:e}})}setIncludeRead(e){this.includeReadInput=e,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(e){this.queryRef.refetch({notificationReason:e?e.type:void 0})}onNotificationSubjectSelected(e){let r;if(void 0!==e){let c=e.subjectWithCount.subject?.__typename;r={id:e.subjectWithCount.subject.id,entityType:h.o71[c]}}this.queryRef.refetch({originatingObject:r})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id})}markAsRead(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.NQC.Read}})}markAsUnread(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.NQC.Unread}})}unsubscribe(e,r){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:e,entityType:h.o71[r]}]}})}onNotificationCheckBoxClicked(e,r){let c=Array.from(this.notificationState.keys()).find(d=>d.id===e);if(c){let d=this.notificationState.get(c);d&&(d.checked=r)}r?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(d=>d.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(d=>d.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(d=>!d.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(e){e?this.checkAll():this.uncheckAll()}getCheckedIds(){let e=[];return this.notificationState.forEach((r,c)=>{r.checked&&e.push(c.id)}),e}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,r)=>{e.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,r)=>{e.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.NQC.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let e=[];this.notificationState.forEach((r,c)=>{r.checked&&c.subscription&&e.push({id:c.subscription.subscribable.id,entityType:h.o71[c.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:e}}).submitSuccess$.subscribe(r=>{r&&this.queryRef.refetch()}),this.uncheckAll()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz),t.Y36(h.yqR),t.Y36(W.Y),t.Y36(h.LiH),t.Y36(h.m$d))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"nzType","click"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantList","participantSelectedEvent"],["itemTemplate",""],["listTitle","Action",3,"participantList","participantSelectedEvent"],["listTitle","Subject",3,"participantList","participantSelectedEvent"],["listTitle","User",3,"participantList","participantSelectedEvent"],["listTitle","Organization",3,"participantList","participantSelectedEvent"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["bulkOperations",""],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"disabled","click"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModel","nzIndeterminate","ngModelChange","nzCheckedChange"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["timelineDotTemplate",""],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["unread",""],["noSubscriptionButton",""],["nz-checkbox","",3,"ngModel","ngModelChange","nzCheckedChange"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"nzTooltipTitle","click"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(e,r){1&e&&(t.TgZ(0,"nz-spin",0),t.ALo(1,"ngrxPush"),t.YNc(2,Yt,39,26,"ng-container",1),t.ALo(3,"async"),t.qZA()),2&e&&(t.Q6J("nzSpinning",t.lcZ(1,2,r.isLoading$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(3,4,r.notificationStateObservable$)))},dependencies:[_.sg,_.O5,z.JJ,z.On,ot.SY,B.W,C.t3,C.SK,Z.ix,Z.fY,G.w,J.dQ,U.bd,O.Ls,it.Ie,K.Zv,K.PD,Zt.t,At.l,_.Ov,_.Nd,Q.fM,Pt.R,St.j],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]}),o})();var Dt=s(6282);let Vt=(()=>{class o{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(v.gz))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(e,r){1&e&&t._UZ(0,"cvc-source-suggestions-table",0),2&e&&t.Q6J("submitterId",r.userId)},dependencies:[Dt.O],styles:["[_nghost-%COMP%]{display:block}"]}),o})();var Bt=s(655),ut=s(4223),at=s(5619),mt=s(1791),Ht=s(951),_t=s(2392),ft=s(7417),jt=s(4527),Wt=s(2610),A=s(1022),Gt=s(8645),st=s(9773),Kt=s(6943);function qt(o,l){1&o&&t._UZ(0,"nz-alert",19)}function rt(o,l){if(1&o&&(t.TgZ(0,"nz-form-item"),t._UZ(1,"cvc-form-errors-alert",20),t.qZA()),2&o){const e=t.oxw();t.xp6(1),t.Q6J("errors",e.errorMessages)}}function Xt(o,l){if(1&o&&t._UZ(0,"nz-option",21),2&o){const e=l.$implicit;t.Q6J("nzLabel",e.name)("nzValue",e.id)}}let tn=(()=>{class o{constructor(e,r,c){this.updateProfileGql=e,this.profileUpdatedEvent=new t.vpe,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Gt.x,this.updateProfileMutator=new et.U(c),this.countries$=r.fetch().pipe((0,x.U)(({data:d})=>d.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let e={username:this.username,email:this.email,name:(0,A.xt)(this.name),areaOfExpertise:(0,A.uP)(this.areaOfExpertise),orcid:(0,A.xt)(this.orcid),url:(0,A.xt)(this.url),bio:(0,A.xt)(this.bio),countryId:(0,A.uP)(this.countryId),twitterHandle:(0,A.xt)(this.twitterHandle),facebookProfile:(0,A.xt)(this.facebookProfile),linkedinProfile:(0,A.xt)(this.linkedinProfile)},r=this.updateProfileMutator.mutate(this.updateProfileGql,{input:e});r.submitSuccess$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),r.submitError$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),r.isSubmitting$.pipe((0,st.R)(this.destroy$)).subscribe(c=>{this.loading=c})}}setInitialFormFields(){this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(h.wbP),t.Y36(h.l4w),t.Y36(W.Y))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModel","ngModelChange"],["nz-input","","rows","5",2,"width","100%",3,"ngModel","ngModelChange"],["nzAllowClear","","nzShowSearch","",3,"ngModel","ngModelChange"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModel","ngModelChange"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModel","ngModelChange"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"disabled","click"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(e,r){1&e&&(t.TgZ(0,"nz-card"),t.YNc(1,qt,1,0,"nz-alert",0),t.YNc(2,rt,2,1,"nz-form-item",1),t.TgZ(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t._uU(6,"Username"),t.qZA(),t.TgZ(7,"input",4),t.NdJ("ngModelChange",function(d){return r.username=d}),t.qZA()(),t.TgZ(8,"nz-form-item")(9,"nz-form-label"),t._uU(10,"Name"),t.qZA(),t.TgZ(11,"input",4),t.NdJ("ngModelChange",function(d){return r.name=d}),t.qZA()(),t.TgZ(12,"nz-form-item")(13,"nz-form-label",3),t._uU(14,"Email"),t.qZA(),t.TgZ(15,"input",4),t.NdJ("ngModelChange",function(d){return r.email=d}),t.qZA()(),t.TgZ(16,"nz-form-item")(17,"nz-form-label"),t._uU(18,"User Bio"),t.qZA(),t.TgZ(19,"textarea",5),t.NdJ("ngModelChange",function(d){return r.bio=d}),t.qZA()(),t.TgZ(20,"nz-form-item")(21,"nz-form-label"),t._uU(22,"Country"),t.qZA(),t.TgZ(23,"nz-select",6),t.NdJ("ngModelChange",function(d){return r.countryId=d}),t.YNc(24,Xt,1,2,"nz-option",7),t.ALo(25,"ngrxPush"),t.qZA()(),t.TgZ(26,"nz-form-item")(27,"nz-form-label"),t._uU(28,"Area of Expertise"),t.qZA(),t.TgZ(29,"nz-select",8),t.NdJ("ngModelChange",function(d){return r.areaOfExpertise=d}),t._UZ(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.qZA()(),t.TgZ(33,"nz-form-item")(34,"nz-form-label"),t._uU(35,"ORCID Identifier"),t.qZA(),t.TgZ(36,"nz-input-group",12)(37,"input",13),t.NdJ("ngModelChange",function(d){return r.orcid=d}),t.qZA()()(),t.TgZ(38,"nz-form-item")(39,"nz-form-label"),t._uU(40,"Personal Website"),t.qZA(),t.TgZ(41,"input",4),t.NdJ("ngModelChange",function(d){return r.url=d}),t.qZA()(),t.TgZ(42,"nz-form-item")(43,"nz-form-label"),t._uU(44,"X/Twitter Handle"),t.qZA(),t.TgZ(45,"nz-input-group",14)(46,"input",15),t.NdJ("ngModelChange",function(d){return r.twitterHandle=d}),t.qZA()()(),t.TgZ(47,"nz-form-item")(48,"nz-form-label"),t._uU(49,"Facebook Profile"),t.qZA(),t.TgZ(50,"nz-input-group",16)(51,"input",15),t.NdJ("ngModelChange",function(d){return r.facebookProfile=d}),t.qZA()()(),t.TgZ(52,"nz-form-item")(53,"nz-form-label"),t._uU(54,"LinkedIn Profile"),t.qZA(),t.TgZ(55,"nz-input-group",17)(56,"input",15),t.NdJ("ngModelChange",function(d){return r.linkedinProfile=d}),t.qZA()()(),t.TgZ(57,"nz-form-item")(58,"button",18),t.NdJ("click",function(){return r.updateProfile()}),t._uU(59," Update Profile "),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("ngIf",r.success),t.xp6(1),t.Q6J("ngIf",r.errorMessages.length>0),t.xp6(1),t.Q6J("nzSpinning",r.loading),t.xp6(4),t.Q6J("ngModel",r.username),t.xp6(4),t.Q6J("ngModel",r.name),t.xp6(4),t.Q6J("ngModel",r.email),t.xp6(4),t.Q6J("ngModel",r.bio),t.xp6(4),t.Q6J("ngModel",r.countryId),t.xp6(1),t.Q6J("ngForOf",t.lcZ(25,16,r.countries$)),t.xp6(5),t.Q6J("ngModel",r.areaOfExpertise),t.xp6(8),t.Q6J("ngModel",r.orcid),t.xp6(4),t.Q6J("ngModel",r.url),t.xp6(5),t.Q6J("ngModel",r.twitterHandle),t.xp6(5),t.Q6J("ngModel",r.facebookProfile),t.xp6(5),t.Q6J("ngModel",r.linkedinProfile),t.xp6(2),t.Q6J("disabled",r.loading||!r.username||!r.email))},dependencies:[_.sg,_.O5,z.Fj,z.JJ,z.On,C.t3,C.SK,V.Nx,V.iK,U.bd,S.r,Z.ix,G.w,J.dQ,B.W,N.Ip,N.Vq,nt.Zp,nt.gB,Kt.V,Q.fM],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),o})();var nn=s(3145),Ln=s(5098),En=s(7458),en=s(9862);let on=(()=>{class o{constructor(e){this.http=e,this.uploadComplete=new t.vpe}processProfileImage(e){if(e&&e[0]){let r=new FormData;r.append("image",e[0],e[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",r).subscribe(c=>this.uploadComplete.emit(!0),c=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(t.Y36(en.eN))},o.\u0275cmp=t.Xpm({type:o,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["type","file","accept","image/*",2,"display","none",3,"change"],["profileImage",""],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"]],template:function(e,r){if(1&e){const c=t.EpF();t.TgZ(0,"input",0,1),t.NdJ("change",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(r.processProfileImage(f.files))}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){t.CHM(c);const f=t.MAs(1);return t.KtG(f.click())}),t._uU(3," Update Image\n"),t.qZA()}},dependencies:[Z.ix,G.w,J.dQ],encapsulation:2}),o})();var E,an=s(1607),sn=s(4082),rn=s(2616);function cn(o,l){if(1&o&&t._UZ(0,"cvc-user-avatar",26),2&o){const e=t.oxw().ngIf;t.Q6J("user",e)("size",128)}}function ln(o,l){if(1&o&&(t.TgZ(0,"div",27),t._UZ(1,"i",28),t.ALo(2,"lowercase"),t.ALo(3,"entityColor"),t.ALo(4,"titlecase"),t.TgZ(5,"span",29)(6,"strong"),t._uU(7),t.qZA()()()),2&o){const e=t.oxw().ngIf;t.xp6(1),t.Q6J("nzType","civic-"+t.lcZ(2,3,e.role))("nzTwotoneColor",t.lcZ(3,5,t.lcZ(4,7,e.role))),t.xp6(6),t.hij(" ",e.username,"")}}function pn(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions-item",36),t._uU(1),t.qZA()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.name," ")}}function X(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",38),t._UZ(2,"i",39),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://",e.url,"",t.LSH)}}function dn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",40),t._UZ(2,"i",41),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://twitter.com/",e.twitterHandle,"",t.LSH)}}function gn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",42),t._UZ(2,"i",43),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://facebook.com/",e.facebookProfile,"",t.LSH)}}function un(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",44),t._UZ(2,"i",45),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","http://linkedin.com/in/",e.linkedinProfile,"",t.LSH)}}function ht(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"a",46),t._UZ(2,"i",47),t.qZA(),t.BQk()),2&o){const e=t.oxw(3).ngIf;t.xp6(1),t.MGl("href","https://orcid.org/",e.orcid,"",t.LSH)}}function mn(o,l){if(1&o&&(t.TgZ(0,"div",37),t.YNc(1,X,3,1,"ng-container",0),t.YNc(2,dn,3,1,"ng-container",0),t.YNc(3,gn,3,1,"ng-container",0),t.YNc(4,un,3,1,"ng-container",0),t.YNc(5,ht,3,1,"ng-container",0),t.qZA()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.Q6J("ngIf",e.url),t.xp6(1),t.Q6J("ngIf",e.twitterHandle),t.xp6(1),t.Q6J("ngIf",e.facebookProfile),t.xp6(1),t.Q6J("ngIf",e.linkedinProfile),t.xp6(1),t.Q6J("ngIf",e.orcid)}}function _n(o,l){1&o&&(t.TgZ(0,"i",48),t._uU(1," None provided "),t.qZA())}function fn(o,l){if(1&o&&(t.TgZ(0,"div")(1,"nz-descriptions",30),t.YNc(2,pn,2,1,"nz-descriptions-item",31),t.TgZ(3,"nz-descriptions-item",32),t._uU(4),t.ALo(5,"enumToTitle"),t.qZA(),t.TgZ(6,"nz-descriptions-item",33),t.YNc(7,mn,6,5,"div",34),t.YNc(8,_n,2,0,"ng-template",null,35,t.W1O),t.qZA()()()),2&o){const e=t.MAs(9),r=t.oxw().ngIf;t.xp6(1),t.Q6J("nzBordered",!0)("nzColumn",1),t.xp6(1),t.Q6J("ngIf",r.name),t.xp6(2),t.hij(" ",t.lcZ(5,6,r.role)," "),t.xp6(3),t.Q6J("ngIf",r.url||r.twitterHandle||r.facebookProfile||r.linkedinProfile||r.orcid)("ngIfElse",e)}}function hn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(3);return t.KtG(c.updateProfileModalVisible=!0)}),t._uU(1," Edit Profile "),t.qZA()}}function zn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-avatar-uploader",52),t.NdJ("uploadComplete",function(c){t.CHM(e);const d=t.oxw(3);return t.KtG(d.profileUploadComplete(c))}),t.qZA()}}function Cn(o,l){1&o&&(t.ynx(0),t.YNc(1,hn,2,0,"button",49),t.YNc(2,zn,1,0,"cvc-avatar-uploader",50),t.BQk())}function vn(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.bio," ")}}function xn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User has not provided a bio."),t.qZA()(),t.BQk())}function Tn(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.ALo(2,"enumToTitle"),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.areaOfExpertise)," ")}}function bn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function Un(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(2).ngIf;t.xp6(1),t.hij(" ",e.country.name," ")}}function Mn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"Unspecified"),t.qZA()(),t.BQk())}function yn(o,l){if(1&o&&(t.ynx(0),t._UZ(1,"cvc-tag-overflow",58),t.ALo(2,"ngrxPush"),t.BQk()),2&o){const e=t.oxw(3);t.xp6(1),t.Q6J("maxDisplayCount",2)("tags",t.lcZ(2,2,e.organization$))}}function Zn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"span",48)(2,"i"),t._uU(3,"User is not a member of any Organizations."),t.qZA()(),t.BQk())}function An(o,l){if(1&o&&(t.TgZ(0,"nz-descriptions",53)(1,"nz-descriptions-item",54),t.YNc(2,vn,2,1,"ng-container",0),t.YNc(3,xn,4,0,"ng-container",0),t.qZA(),t.TgZ(4,"nz-descriptions-item",55),t.YNc(5,Tn,3,3,"ng-container",0),t.YNc(6,bn,4,0,"ng-container",0),t.qZA(),t.TgZ(7,"nz-descriptions-item",56),t.YNc(8,Un,2,1,"ng-container",0),t.YNc(9,Mn,4,0,"ng-container",0),t.qZA(),t.TgZ(10,"nz-descriptions-item",57),t.YNc(11,yn,3,4,"ng-container",0),t.YNc(12,Zn,4,0,"ng-container",0),t.qZA()()),2&o){const e=t.oxw().ngIf;t.Q6J("nzColumn",4),t.xp6(2),t.Q6J("ngIf",e.bio),t.xp6(1),t.Q6J("ngIf",!e.bio),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.areaOfExpertise),t.xp6(1),t.Q6J("ngIf",!e.areaOfExpertise),t.xp6(1),t.Q6J("nzSpan",2),t.xp6(1),t.Q6J("ngIf",e.country),t.xp6(1),t.Q6J("ngIf",!e.country),t.xp6(1),t.Q6J("nzSpan",4)("nzTitle","Organization"+(e.organizations.length>1?"s":"")),t.xp6(1),t.Q6J("ngIf",e.organizations.length>0),t.xp6(1),t.Q6J("ngIf",0===e.organizations.length)}}function Pn(o,l){if(1&o&&(t._UZ(0,"i",28),t.ALo(1,"lowercase"),t.ALo(2,"entityColor"),t.ALo(3,"titlecase"),t._uU(4," Editor Conflict of Interest Statement ")),2&o){const e=t.oxw(3).ngIf;t.Q6J("nzType","civic-"+t.lcZ(1,2,e.role))("nzTwotoneColor",t.lcZ(2,4,t.lcZ(3,6,e.role)))}}function Sn(o,l){if(1&o){const e=t.EpF();t.ynx(0),t.TgZ(1,"button",64),t.NdJ("click",function(){t.CHM(e);const c=t.oxw(5);return t.KtG(c.updateCoiModalVisible=!0)}),t._uU(2," Update COI "),t.qZA(),t.BQk()}}function Nn(o,l){if(1&o&&(t.YNc(0,Sn,3,0,"ng-container",0),t.ALo(1,"ngrxPush")),2&o){const e=t.oxw(4);t.Q6J("ngIf",t.lcZ(1,1,e.ownProfile$))}}function On(o,l){if(1&o&&(t.ynx(0),t._uU(1),t.BQk()),2&o){const e=t.oxw(4).ngIf;t.xp6(1),t.hij(" ",e.mostRecentConflictOfInterestStatement.coiStatement," ")}}function In(o,l){1&o&&t._uU(0," I do not have any potential conflicts of interest. ")}function wn(o,l){if(1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2),t.ALo(3,"enumToTitle"),t.qZA(),t.TgZ(4,"nz-descriptions-item",66),t._uU(5),t.ALo(6,"date"),t.qZA(),t.TgZ(7,"nz-descriptions-item",67),t._uU(8),t.ALo(9,"date"),t.qZA(),t.TgZ(10,"nz-descriptions-item",68),t.YNc(11,On,2,1,"ng-container",69),t.YNc(12,In,1,0,"ng-template",null,70,t.W1O),t.qZA(),t.BQk()),2&o){const e=t.MAs(13),r=t.oxw(3).ngIf;t.xp6(1),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.lcZ(3,9,r.mostRecentConflictOfInterestStatement.coiStatus)," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(6,11,r.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",1),t.xp6(1),t.hij(" ",t.xi3(9,14,r.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.xp6(2),t.Q6J("nzSpan",3),t.xp6(1),t.Q6J("ngIf",r.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",e)}}function Jn(o,l){1&o&&(t.ynx(0),t.TgZ(1,"nz-descriptions-item",65),t._uU(2," None on file. "),t.qZA(),t.BQk()),2&o&&(t.xp6(1),t.Q6J("nzSpan",3))}function i(o,l){if(1&o&&(t.TgZ(0,"nz-card",60),t.YNc(1,Pn,5,8,"ng-template",null,61,t.W1O),t.YNc(3,Nn,2,3,"ng-template",null,62,t.W1O),t.TgZ(5,"nz-descriptions",63),t.YNc(6,wn,14,17,"ng-container",0),t.YNc(7,Jn,3,1,"ng-container",0),t.qZA()()),2&o){const e=t.MAs(2),r=t.MAs(4),c=t.oxw(2).ngIf;t.Q6J("nzTitle",e)("nzExtra",r),t.xp6(5),t.Q6J("nzBordered",!0)("nzColumn",3),t.xp6(1),t.Q6J("ngIf",c.mostRecentConflictOfInterestStatement),t.xp6(1),t.Q6J("ngIf",!c.mostRecentConflictOfInterestStatement)}}function p(o,l){1&o&&(t.ynx(0),t.YNc(1,i,8,6,"nz-card",59),t.BQk())}function a(o,l){1&o&&(t.TgZ(0,"div",74)(1,"p")(2,"strong"),t._uU(3,"Comments:"),t.qZA(),t._uU(4," Total number of Comments posted by the Curator. "),t.qZA(),t.TgZ(5,"p")(6,"strong"),t._uU(7,"Revisions:"),t.qZA(),t._uU(8," Total number of Revisions suggested by the Curator. "),t.qZA(),t.TgZ(9,"p")(10,"strong"),t._uU(11,"Submissions:"),t.qZA(),t._uU(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.qZA(),t.TgZ(13,"p")(14,"strong"),t._uU(15,"Moderations:"),t.qZA(),t._uU(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.qZA()())}function g(o,l){if(1&o&&(t.TgZ(0,"div",71),t._uU(1," Ranked Activities "),t.TgZ(2,"span",48),t._UZ(3,"i",72),t.qZA()(),t.YNc(4,a,17,0,"ng-template",null,73,t.W1O)),2&o){const e=t.MAs(5);t.Q6J("nzPopoverContent",e)}}function u(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Edit Profile"),t.qZA())}function m(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-user-profile-form",75),t.NdJ("profileUpdatedEvent",function(){t.CHM(e);const c=t.oxw(2);return t.KtG(c.profileUpdated())}),t.qZA()}if(2&o){const e=t.oxw().ngIf;t.Q6J("user",e)}}const $n=function(){return[8,8]};function Rn(o,l){if(1&o){const e=t.EpF();t.ynx(0),t._UZ(1,"cvc-section-navigation",4),t.TgZ(2,"nz-page-header",5)(3,"nz-page-header-content")(4,"nz-row",6)(5,"nz-col",7)(6,"nz-space",8),t.YNc(7,cn,1,2,"cvc-user-avatar",9),t.YNc(8,ln,8,9,"div",10),t.YNc(9,fn,10,8,"div",11),t.YNc(10,Cn,3,0,"ng-container",0),t.ALo(11,"ngrxPush"),t.qZA()(),t.TgZ(12,"nz-col",12)(13,"nz-space",13),t.YNc(14,An,13,13,"nz-descriptions",14),t.YNc(15,p,2,0,"ng-container",0),t.qZA()(),t.TgZ(16,"nz-col",15)(17,"nz-descriptions",16)(18,"nz-descriptions-item",17),t._UZ(19,"cvc-stats-card",18),t.qZA(),t.YNc(20,g,6,1,"ng-template",null,19,t.W1O),t.qZA()()(),t.TgZ(22,"nz-row",20)(23,"nz-col",21),t._UZ(24,"cvc-tab-navigation",22),t.ALo(25,"ngrxPush"),t.TgZ(26,"div",23),t._UZ(27,"router-outlet"),t.qZA()()()()(),t.TgZ(28,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){t.CHM(e);const d=t.oxw();return t.KtG(d.updateProfileModalVisible=c)})("nzOnCancel",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.handleProfileModalCancel())}),t.YNc(29,u,2,0,"ng-template",null,24,t.W1O),t.YNc(31,m,1,1,"ng-template",null,25,t.W1O),t.qZA(),t.BQk()}if(2&o){const e=l.ngIf,r=t.MAs(21),c=t.MAs(30),d=t.MAs(32),f=t.oxw();t.xp6(1),t.Q6J("displayName",e.displayName),t.xp6(3),t.Q6J("nzGutter",t.DdM(16,$n)),t.xp6(6),t.Q6J("ngIf",t.lcZ(11,12,f.ownProfile$)),t.xp6(5),t.Q6J("ngIf","EDITOR"===e.role||"ADMIN"===e.role),t.xp6(3),t.Q6J("nzTitle",r),t.xp6(1),t.Q6J("cvcStats",e.statsHash)("cvcRanks",e.ranks),t.xp6(5),t.Q6J("tabs",t.lcZ(25,14,f.tabs$)),t.xp6(4),t.Q6J("nzVisible",f.updateProfileModalVisible)("nzContent",d)("nzTitle",c)("nzFooter",null)}}function Yn(o,l){1&o&&(t.TgZ(0,"span"),t._uU(1,"Update your Conflict of Interest Statement"),t.qZA())}function Fn(o,l){if(1&o){const e=t.EpF();t.TgZ(0,"cvc-user-coi-form",76),t.NdJ("coiUpdatedEvent",function(){t.CHM(e);const c=t.oxw();return t.KtG(c.coiUpdated())}),t.qZA()}}let Qn=((E=class{constructor(l,e,r){this.gql=l,this.viewerService=e,this.route=r,this.organization$=new at.X([]),this.ownProfile$=new at.X(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new at.X(this.defaultTabs),this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({userId:+c.userId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,ut.j)("loading"),(0,$.O)(!0)),this.user$=d.pipe((0,ut.j)("data","user")),this.user$.pipe((0,x.U)(f=>f?f.organizations.map(Y=>({id:Y.id,name:Y.name,link:Y.url})):[]),(0,mt.t)(this)).subscribe(f=>{this.organization$.next(f)}),this.viewerSub=this.viewerService.viewer$.subscribe(f=>{f.id===+c.userId?(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0)):this.ownProfile$.next(!1)})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(l){l?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}}).\u0275fac=function(l){return new(l||E)(t.Y36(h.sLD),t.Y36(Ht.a),t.Y36(v.gz))},E.\u0275cmp=t.Xpm({type:E,selectors:[["users-detail"]],decls:7,vars:7,consts:[[4,"ngIf"],[3,"nzVisible","nzContent","nzTitle","nzFooter","nzVisibleChange","nzOnCancel"],["coiModalTitle",""],["coiModalContent",""],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],["activitiesTitle",""],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["profileModalTitle",""],["profileModalContent",""],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["noLinks",""],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["statementTitle",""],["updateCoi",""],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["noStatement",""],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],["rankingCalculations",""],[1,"calculation-info"],[3,"user","profileUpdatedEvent"],[3,"coiUpdatedEvent"]],template:function(l,e){if(1&l&&(t.YNc(0,Rn,33,17,"ng-container",0),t.ALo(1,"ngrxPush"),t.TgZ(2,"nz-modal",1),t.NdJ("nzVisibleChange",function(c){return e.updateCoiModalVisible=c})("nzOnCancel",function(){return e.handleCoiModalCancel()}),t.YNc(3,Yn,2,0,"ng-template",null,2,t.W1O),t.YNc(5,Fn,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&l){const r=t.MAs(4),c=t.MAs(6);t.Q6J("ngIf",t.lcZ(1,5,e.user$)),t.xp6(2),t.Q6J("nzVisible",e.updateCoiModalVisible)("nzContent",c)("nzTitle",r)("nzFooter",null)}},dependencies:[_.O5,v.lC,C.t3,C.SK,n.$O,n.u5,y.NU,y.$1,T.R7,T.uj,U.bd,w.du,O.Ls,_t.ZU,ot.SY,ft.lU,Z.ix,G.w,J.dQ,jt.T,Wt.t,tn,nn.I,Ln.P,En.L,on,an.z,_.i8,_.rS,_.uU,Q.fM,sn.I,rn.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]}),E);Qn=(0,Bt.gn)([(0,mt.c)()],Qn);const Dn=[{path:"",component:Qn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:yt,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Tt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Ut,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Vt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Ft,data:{breadcrumb:"Notifications"}}]}];let Vn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[v.Bz.forChild(Dn),v.Bz]}),o})();var Bn=s(6192),Hn=s(7950);let jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[_.ez,v.Bz,Vn,S.L,C.Jb,Bn.YS,n.KJ,y.zf,T.q6,U.vh,pt.S,w.Qp,lt.A2,O.PV,_t.ZJ,ot.cg,ft.$6,Z.sL,Hn.x,Ct.e,zt,I.s,F.D,P.c,D.H,ct,b.L,vt.C]}),o})()},5167:(kn,tt,s)=>{s.r(tt),s.d(tt,{UsersModule:()=>Jn});var N,_=s(6814),F=s(4190),n=s(5879),v=s(6254),P=s(551),y=s(95),D=s(2840),Z=s(855),O=s(2574),t=s(2392),ct=s(655),T=s(313),b=s(1791),C=s(5619),I=s(7398),U=s(6223),lt=s(3640),pt=s(6928),w=s(2962),z=s(6976),S=s(9691),V=s(804),k=s(6109),dt=s(356),B=s(8091);function nt(i,p){1&i&&n.GkF(0)}function zt(i,p){1&i&&n.GkF(0)}function Ct(i,p){1&i&&n.GkF(0)}function vt(i,p){1&i&&n.GkF(0)}function xt(i,p){if(1&i&&(n.TgZ(0,"span",13),n._uU(1),n.qZA(),n.TgZ(2,"span",14),n._UZ(3,"i",15),n.qZA()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",a.title," "),n.xp6(2),n.Q6J("nzTooltipTitle",a.info)}}const Tt=function(){return[0,5]};function h(i,p){if(1&i&&(n.TgZ(0,"nz-badge",20),n._UZ(1,"nz-avatar",21),n.qZA()),2&i){const a=n.oxw().$implicit;n.Q6J("nzCount",a.rank)("nzOffset",n.DdM(3,Tt)),n.xp6(1),n.Q6J("nzSrc",a.profileImagePath)}}function bt(i,p){if(1&i&&(n.TgZ(0,"nz-list-item"),n.YNc(1,h,2,4,"ng-template",null,16,n.W1O),n.TgZ(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),n._UZ(5,"cvc-user-tag",18),n.qZA()(),n.TgZ(6,"ul",19)(7,"nz-list-item-action")(8,"span",14),n._uU(9),n.ALo(10,"number"),n.qZA()()()()),2&i){const a=p.$implicit,g=n.MAs(2);n.xp6(3),n.Q6J("nzAvatar",g),n.xp6(2),n.Q6J("user",a.user),n.xp6(4),n.hij(" Count: ",n.lcZ(10,3,a.actionCount)," ")}}function Ut(i,p){if(1&i&&n._UZ(0,"nz-list-empty",22),2&i){n.oxw();const a=n.MAs(7);n.Q6J("nzNoResult",a)}}function Mt(i,p){1&i&&n._UZ(0,"nz-empty",23)}const yt=function(i){return{"list-height-block":i}};function et(i,p){if(1&i&&(n.YNc(0,xt,4,2,"ng-template",null,7,n.W1O),n.TgZ(2,"nz-list",8)(3,"div",9),n.YNc(4,bt,11,5,"nz-list-item",10),n.qZA(),n.YNc(5,Ut,1,1,"nz-list-empty",11),n.YNc(6,Mt,1,0,"ng-template",null,12,n.W1O),n.qZA()),2&i){const a=p.$implicit,g=n.MAs(1);n.xp6(2),n.Q6J("nzHeader",g)("nzLoading",a.loading),n.xp6(1),n.Q6J("ngClass",n.VKq(5,yt,a.rows.length>0)),n.xp6(1),n.Q6J("ngForOf",a.rows),n.xp6(1),n.Q6J("ngIf",0===a.rows.length)}}function H(i,p){1&i&&(n.TgZ(0,"span",13)(1,"strong"),n._uU(2,"Contributor Curation Activity Leaderboards"),n.qZA()())}function x(i,p){if(1&i){const a=n.EpF();n.TgZ(0,"span"),n._uU(1,"Time: "),n.qZA(),n.TgZ(2,"nz-select",24),n.NdJ("ngModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.timeWindow$.next(u))}),n.ALo(3,"ngrxPush"),n._UZ(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),n.qZA()}if(2&i){const a=n.oxw();n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",n.lcZ(3,2,a.timeWindow$))}}const j=function(){return[8,8]},$=function(i){return{$implicit:i}};let W=((N=class{constructor(p,a,g,u){this.commentsGQL=p,this.revisionsGQL=a,this.moderationGQL=g,this.submissionsGQL=u,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=T.TbJ.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new C.X(this.initialWindow),this.timeWindow$.pipe((0,b.t)(this)).subscribe(m=>{this.commentsQueryRef.refetch({window:m}),this.revisionsQueryRef.refetch({window:m}),this.moderationQueryRef.refetch({window:m}),this.submissionsQueryRef.refetch({window:m})}),this.commentsView$=new C.X(this.initialCommentsView),this.revisionsView$=new C.X(this.initialRevisionsView),this.moderationView$=new C.X(this.initialModerationView),this.submissionsView$=new C.X(this.initialSubmissionsView)}ngOnInit(){const p=a=>({rank:a.rank,actionCount:a.actionCount,profileImagePath:a.profileImagePath,name:a.name,user:{id:a.id,displayName:a.displayName,role:a.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.commentsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.commentsView$.next(a)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.moderationLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.moderationView$.next(a)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.revisionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.revisionsView$.next(a)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,I.U)(a=>{let g=[];return a.data&&a.data.userLeaderboards&&a.data.userLeaderboards.submissionsLeaderboard.edges.map(u=>{if(u.node){const m=p(u.node);g.push(m)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:a.loading,rows:[...g]}}),(0,b.t)(this)).subscribe(a=>this.submissionsView$.next(a))}}).\u0275fac=function(p){return new(p||N)(n.Y36(T.ce2),n.Y36(T.VGG),n.Y36(T.SAN),n.Y36(T.da2))},N.\u0275cmp=n.Xpm({type:N,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["listEmpty",""],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],["rowAvatar",""],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(p,a){if(1&p&&(n.TgZ(0,"nz-card",0)(1,"nz-row",1)(2,"nz-col",2),n.YNc(3,nt,1,0,"ng-container",3),n.ALo(4,"ngrxPush"),n.qZA(),n.TgZ(5,"nz-col",2),n.YNc(6,zt,1,0,"ng-container",3),n.ALo(7,"ngrxPush"),n.qZA(),n.TgZ(8,"nz-col",2),n.YNc(9,Ct,1,0,"ng-container",3),n.ALo(10,"ngrxPush"),n.qZA(),n.TgZ(11,"nz-col",2),n.YNc(12,vt,1,0,"ng-container",3),n.ALo(13,"ngrxPush"),n.qZA()()(),n.YNc(14,et,8,7,"ng-template",null,4,n.W1O),n.YNc(16,H,3,0,"ng-template",null,5,n.W1O),n.YNc(18,x,8,4,"ng-template",null,6,n.W1O)),2&p){const g=n.MAs(15),u=n.MAs(17),m=n.MAs(19);n.Q6J("nzTitle",u)("nzExtra",m),n.xp6(1),n.Q6J("nzGutter",n.DdM(19,j)),n.xp6(2),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(20,$,n.lcZ(4,11,a.commentsView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(22,$,n.lcZ(7,13,a.revisionsView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(24,$,n.lcZ(10,15,a.moderationView$))),n.xp6(3),n.Q6J("ngTemplateOutlet",g)("ngTemplateOutletContext",n.VKq(26,$,n.lcZ(13,17,a.submissionsView$)))}},dependencies:[_.mk,_.sg,_.O5,_.tP,U.JJ,U.On,lt.x7,pt.Dz,y.t3,y.SK,w.bd,z.n_,z.I2,z.AA,z.yi,z.IO,z.nk,z.KC,S.Ip,S.Vq,t.ZU,V.p9,P.Ls,k.SY,dt.I,_.JJ,B.fM],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0}),N);W=(0,ct.gn)([(0,b.c)()],W);var L,ot=s(3145),G=s(4632),J=s(8645),it=s(5676),K=s(3997),Zt=s(812),At=s(836),Q=s(2181),Pt=s(3620),St=s(2460),R=s(4223),M=s(3740),gt=s(5695),Nt=s(6753),Ot=s(4764),It=s(8516),wt=s(3489),Jt=s(9857),Qt=s(4997),Lt=s(4527),Et=s(4082),kt=s(5573);function $t(i,p){}function Rt(i,p){if(1&i&&(n.ynx(0),n.TgZ(1,"nz-card",5),n.YNc(2,$t,0,0,"ng-template",6),n.qZA(),n.BQk()),2&i){n.oxw();const a=n.MAs(6),g=n.MAs(8),u=n.MAs(4);n.xp6(1),n.Q6J("nzTitle",a)("nzExtra",g),n.xp6(1),n.Q6J("ngTemplateOutlet",u)}}function q(i,p){}const Yt=function(i){return{height:i}};function Ft(i,p){if(1&i&&(n.TgZ(0,"div",7)(1,"nz-card",8),n.YNc(2,q,0,0,"ng-template",6),n.qZA()()),2&i){const a=n.oxw(),g=n.MAs(6),u=n.MAs(8),m=n.MAs(4);n.Q6J("ngStyle",n.VKq(4,Yt,a.cvcHeight)),n.xp6(1),n.Q6J("nzTitle",g)("nzExtra",u),n.xp6(1),n.Q6J("ngTemplateOutlet",m)}}function Dt(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",a.name," ")}}function Vt(i,p){1&i&&(n.TgZ(0,"i",39),n._uU(1,"Not specified"),n.qZA())}function Bt(i,p){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"cvc-tag-overflow",40),n.qZA()),2&i){const a=n.oxw().$implicit,g=n.oxw(2);n.xp6(1),n.Q6J("maxDisplayCount",1)("tags",a.organizations)("matchingText",g.orgNameInput)}}function ut(i,p){1&i&&(n.TgZ(0,"i",39),n._uU(1,"None specified"),n.qZA())}function at(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"timeAgo"),n.BQk()),2&i){const a=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,a.mostRecentActionTimestamp)," ")}}function mt(i,p){1&i&&n._uU(0," -- ")}function Ht(i,p){if(1&i&&(n.TgZ(0,"tr",31)(1,"td",23),n._UZ(2,"cvc-user-tag",32),n.qZA(),n.TgZ(3,"td",33),n.YNc(4,Dt,2,1,"ng-container",0),n.YNc(5,Vt,2,0,"ng-template",null,34,n.W1O),n.qZA(),n.TgZ(7,"td"),n.YNc(8,Bt,2,3,"div",0),n.YNc(9,ut,2,0,"ng-template",null,35,n.W1O),n.qZA(),n.TgZ(11,"td"),n._uU(12),n.ALo(13,"enumToTitle"),n.qZA(),n.TgZ(14,"td",36),n.YNc(15,at,3,3,"ng-container",0),n.YNc(16,mt,1,0,"ng-template",null,37,n.W1O),n.qZA(),n.TgZ(18,"td",38),n._uU(19),n.qZA(),n.TgZ(20,"td",38),n._uU(21),n.qZA()()),2&i){const a=p.$implicit,g=n.MAs(6),u=n.MAs(10),m=n.MAs(17);n.xp6(2),n.Q6J("user",a),n.xp6(2),n.Q6J("ngIf",a.name)("ngIfElse",g),n.xp6(4),n.Q6J("ngIf",a.organizations.length>0)("ngIfElse",u),n.xp6(4),n.hij(" ",n.lcZ(13,10,a.role)," "),n.xp6(3),n.Q6J("ngIf",a.mostRecentActionTimestamp)("ngIfElse",m),n.xp6(4),n.hij(" ",a.statsHash.submittedEvidenceItems," "),n.xp6(2),n.hij(" ",a.statsHash.revisions," ")}}const _t=function(){return[]},ft=function(){return{x:"680px",y:"800px"}};function jt(i,p){if(1&i){const a=n.EpF();n.TgZ(0,"nz-table",9,10),n.NdJ("cvcTableScrollOnScroll",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.scrollEvent$.next(u))}),n.ALo(2,"ngrxPush"),n.ALo(3,"ngrxPush"),n.ALo(4,"ngrxPush"),n.ALo(5,"ngrxPush"),n.TgZ(6,"thead",11),n.NdJ("nzSortOrderChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.sortChange$.next(u))}),n.TgZ(7,"tr",12)(8,"th",13),n._uU(9," User "),n.qZA(),n.TgZ(10,"th",14),n._uU(11," Name "),n.qZA(),n.TgZ(12,"th",15),n._uU(13,"Organizations"),n.qZA(),n.TgZ(14,"th",16),n._uU(15," Role "),n.qZA(),n.TgZ(16,"th",17),n._uU(17," Last Action "),n.qZA(),n.TgZ(18,"th",18),n._UZ(19,"i",19),n._uU(20," Count "),n.qZA(),n.TgZ(21,"th",20),n._UZ(22,"i",21),n._uU(23," Count "),n.qZA()(),n.TgZ(24,"tr",22),n._UZ(25,"th",23),n.TgZ(26,"th")(27,"cvc-clearable-input-filter",24),n.NdJ("inputModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.nameInput=u)})("inputModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())}),n.qZA()(),n.TgZ(28,"th")(29,"cvc-clearable-input-filter",24),n.NdJ("inputModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.orgNameInput=u)})("inputModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())}),n.qZA()(),n.TgZ(30,"th")(31,"nz-select",25),n.NdJ("ngModelChange",function(){n.CHM(a);const u=n.oxw();return n.KtG(u.filterChange$.next())})("ngModelChange",function(u){n.CHM(a);const m=n.oxw();return n.KtG(m.roleInput=u)}),n._UZ(32,"nz-option",26)(33,"nz-option",27)(34,"nz-option",28),n.qZA()(),n._UZ(35,"th")(36,"th",29)(37,"th",29),n.qZA()(),n.TgZ(38,"tbody"),n.YNc(39,Ht,22,12,"ng-template",30),n.qZA()()}if(2&i){const a=n.oxw();n.Q6J("nzData",n.lcZ(2,21,a.row$)||n.DdM(29,_t))("nzLoading",!n.lcZ(3,23,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",n.lcZ(4,25,a.pageInfo$))("cvcTableScrollToIndex",n.lcZ(5,27,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",n.DdM(30,ft))("nzFrontPagination",!1)("nzShowPagination",!1),n.xp6(10),n.Q6J("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),n.xp6(4),n.Q6J("nzColumnKey",a.sortColumns.Role)("nzSortFn",!0),n.xp6(2),n.Q6J("nzColumnKey",a.sortColumns.LastAction)("nzSortFn",!0),n.xp6(11),n.Q6J("inputModel",a.nameInput),n.xp6(2),n.Q6J("inputModel",a.orgNameInput),n.xp6(2),n.Q6J("nzDropdownMatchSelectWidth",!1)("ngModel",a.roleInput)}}function Wt(i,p){}function A(i,p){if(1&i&&(n.ynx(0),n.YNc(1,Wt,0,0,"ng-template",6),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.Q6J("ngTemplateOutlet",a.cvcTitleTemplate)}}function Gt(i,p){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const a=n.oxw(2);n.xp6(1),n.hij(" ",a.cvcTitle," ")}}function st(i,p){if(1&i&&(n.YNc(0,A,2,1,"ng-container",41),n.YNc(1,Gt,2,1,"ng-container",41),n.TgZ(2,"span",42),n._UZ(3,"cvc-table-counts",43),n.qZA()),2&i){const a=n.oxw();n.Q6J("ngIf",a.cvcTitleTemplate),n.xp6(1),n.Q6J("ngIf",a.cvcTitle),n.xp6(2),n.Q6J("cvcTableCountsConnection",a.connection$)}}function Kt(i,p){1&i&&(n.TgZ(0,"nz-tag",46),n._UZ(1,"i",47),n.TgZ(2,"span"),n._uU(3,"Loading\u2026"),n.qZA()())}function qt(i,p){if(1&i&&(n.YNc(0,Kt,4,0,"nz-tag",44),n.ALo(1,"ngrxPush"),n._UZ(2,"cvc-no-more-rows",45),n.ALo(3,"ngrxPush")),2&i){const a=n.oxw();n.Q6J("ngIf",n.lcZ(1,2,a.moreLoading$)),n.xp6(2),n.Q6J("cvcShowTag",n.lcZ(3,4,a.noMoreRows$))}}let rt=((L=class{set initialUserFilters(p){p&&Object.assign(this,p)}constructor(p,a){this.gql=p,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=T.IRu,this.noMoreRows$=new C.X(!1),this.scrollEvent$=new C.X("stop"),this.sortChange$=new J.x,this.filterChange$=new J.x,this.scrollIndex$=new J.x}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:T.IRu.LastAction,direction:T.SrV.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,Zt.o)(p=>!1!==p,!0)),this.moreLoading$=this.result$.pipe((0,R.j)("loading"),(0,K.x)(),(0,At.T)(2)),this.connection$=this.result$.pipe((0,R.j)("data","users"),(0,Q.h)(it.ep)),this.row$=this.connection$.pipe((0,R.j)("edges"),(0,Q.h)(it.ep),(0,I.U)(p=>p.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,R.j)("pageInfo"),(0,Q.h)(it.ep)),this.sortChange$.pipe((0,b.t)(this)).subscribe(p=>{this.queryRef.refetch({sortBy:(0,G._)(p)})}),this.filterChange$.pipe((0,Pt.b)(500),(0,b.t)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.U)(p=>"stop"!==p),(0,K.x)(),(0,b.t)(this)).subscribe(p=>{this.isScrolling=p,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,Q.h)(p=>"bottom"===p),(0,St.M)(this.pageInfo$),(0,I.U)(([p,a])=>a),(0,b.t)(this)).subscribe(p=>{p.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(p,a){return a?.id}}).\u0275fac=function(p){return new(p||L)(n.Y36(T.tJ6),n.Y36(n.sBO))},L.\u0275cmp=n.Xpm({type:L,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[[4,"ngIf","ngIfElse"],["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination","cvcTableScrollOnScroll"],["virtualTable",""],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModel","inputModelChange"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"nzDropdownMatchSelectWidth","ngModel","ngModelChange"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nameElse",""],["orgElse",""],["nzAlign","right"],["eventElse",""],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(p,a){if(1&p&&(n.YNc(0,Rt,3,3,"ng-container",0),n.YNc(1,Ft,3,6,"ng-template",null,1,n.W1O),n.YNc(3,jt,40,31,"ng-template",null,2,n.W1O),n.YNc(5,st,4,3,"ng-template",null,3,n.W1O),n.YNc(7,qt,4,6,"ng-template",null,4,n.W1O)),2&p){const g=n.MAs(2);n.Q6J("ngIf",!a.cvcHeight)("ngIfElse",g)}},dependencies:[_.O5,_.tP,_.PC,U.JJ,U.On,Z.w,w.bd,P.Ls,S.Ip,S.Vq,M.N8,M.qD,M.Uo,M._C,M.Om,M.p0,M.$Z,M.zu,M.qn,M.UX,gt.j,k.SY,t.ZU,Nt.D,Ot.q,It.p,wt.H,Jt.B,Qt.y,Lt.T,dt.I,B.fM,Et.I,kt.x],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]}),L);rt=(0,ct.gn)([(0,b.c)()],rt);var Xt=s(2616);function tn(i,p){1&i&&(n.TgZ(0,"a",12),n._UZ(1,"i",13),n._uU(2," View Contributor Docs "),n.qZA())}const nn=function(){return[8,16]},en=[{path:"",component:(()=>{class i{constructor(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-users"]],decls:1,vars:0,template:function(a,g){1&a&&n._UZ(0,"router-outlet")},dependencies:[F.lC],encapsulation:2}),i})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(a,g){1&a&&(n._UZ(0,"cvc-section-navigation"),n.TgZ(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n._UZ(5,"i",3),n.ALo(6,"entityColor"),n.qZA(),n.TgZ(7,"nz-col",4)(8,"h2"),n._uU(9,"Contributors"),n.qZA(),n.TgZ(10,"p",5),n._uU(11," CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing. "),n.qZA()(),n.TgZ(12,"nz-col",6)(13,"nz-space",7),n.YNc(14,tn,3,0,"a",8),n.qZA()()(),n.TgZ(15,"nz-row",9)(16,"nz-col",10),n._UZ(17,"cvc-user-leaderboards"),n.qZA(),n.TgZ(18,"nz-col",10),n._UZ(19,"cvc-users-table",11),n.qZA()()()()),2&a&&(n.xp6(5),n.Q6J("nzTwotoneColor",n.lcZ(6,3,"Curator")),n.xp6(5),n.Q6J("nzEllipsisRows",2),n.xp6(5),n.Q6J("nzGutter",n.DdM(5,nn)))},dependencies:[v.$O,v.u5,P.Ls,y.t3,y.SK,D.ix,Z.w,O.NU,O.$1,t.ZU,W,ot.I,rt,Xt.a],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]}),i})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(s.bind(s,7199)).then(i=>i.UsersDetailModule)}]}]}];let on=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[F.Bz.forChild(en),F.Bz]}),i})();var an=s(1106),sn=s(7856),rn=s(6067),E=s(9154),cn=s(2989),ln=s(366),pn=s(7950),X=s(2524),dn=s(9175),gn=s(4742),un=s(9312),ht=s(8706);let mn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,D.sL,w.vh,P.PV,S.LV,M.HQ,gt.X,k.cg,t.ZJ,dn.n,gn.c,sn.k,rn.X,E.y,an.L,X.s,cn.T,un.w,ln.$,pn.x,ht.W]}),i})();var _n=s(2419),fn=s(9382),hn=s(6987);let zn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,lt.mS,hn.S,O.zf,pt.Rt,y.Jb,w.vh,z.Ph,fn.we,S.LV,t.ZJ,V.Xo,P.PV,k.cg,X.s,ht.W]}),i})(),Cn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,v.KJ,P.PV,y.Jb,D.sL,O.zf,t.ZJ,zn,_n.D,mn,X.s]}),i})();var vn=s(5895);let xn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,P.PV,vn.s]}),i})();var Tn=s(7199),bn=s(9894);let Un=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,bn.t]}),i})();var Mn=s(1403);let yn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,Mn.Q]}),i})();var Zn=s(7240);let An=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,Zn.W]}),i})();var Pn=s(2669),Sn=s(1595),Nn=s(2612),On=s(3498),In=s(5528);let wn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,U.u5,k.cg,Pn.j,y.Jb,D.sL,w.vh,P.PV,Nn.Wr,On.FT,In.E,X.s,Sn.N]}),i})(),Jn=(()=>{class i{}return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_.ez,F.Bz,on,Cn,xn,Tn.UsersDetailModule,Un,yn,An,wn]}),i})()}}]); \ No newline at end of file diff --git a/server/public/8322.11cbf9fd3605f011.js b/server/public/8322.11cbf9fd3605f011.js deleted file mode 100644 index 2c22f8a6e..000000000 --- a/server/public/8322.11cbf9fd3605f011.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8322],{4786:(W,k,o)=>{o.d(k,{O:()=>_});var s=o(8130),a=o(2023),c=o(5879),t=o(6814),L=o(4190),T=o(5695),E=o(7417),N=o(551),O=o(8213),S=o(3103),M=o(2616);function y(g,d){}function Z(g,d){if(1&g&&(c.ynx(0),c.TgZ(1,"a",4),c.YNc(2,y,0,0,"ng-template",5),c.qZA(),c.BQk()),2&g){const m=c.oxw(),D=c.MAs(2);c.xp6(1),c.Q6J("routerLink",m.evidence.link),c.xp6(1),c.Q6J("ngTemplateOutlet",D)}}function z(g,d){}function A(g,d){if(1&g&&c._UZ(0,"cvc-evidence-popover",9),2&g){const m=c.oxw(3);c.Q6J("evidenceId",m.evidence.id)}}function x(g,d){if(1&g&&c.YNc(0,A,1,1,"cvc-evidence-popover",8),2&g){const m=c.oxw(2);c.Q6J("ngIf",m.enablePopover)}}const P=function(g,d,m){return{rejected:g,submitted:d,accepted:m}};function w(g,d){if(1&g&&(c.TgZ(0,"nz-tag",6),c.YNc(1,z,0,0,"ng-template",5),c.qZA(),c.YNc(2,x,1,1,"ng-template",null,7,c.W1O)),2&g){const m=c.MAs(3),D=c.oxw(),B=c.MAs(6);c.Q6J("ngClass",c.kEZ(5,P,"REJECTED"===D.evidence.status,"SUBMITTED"===D.evidence.status,"ACCEPTED"===D.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",D.enablePopover?"hover":null),c.xp6(1),c.Q6J("ngTemplateOutlet",B)}}function U(g,d){}function Y(g,d){if(1&g&&c.YNc(0,U,0,0,"ng-template",5),2&g){c.oxw();const m=c.MAs(2);c.Q6J("ngTemplateOutlet",m)}}function J(g,d){if(1&g&&(c.TgZ(0,"cvc-icon-badges",10),c._UZ(1,"i",11),c.ALo(2,"entityColor"),c.ALo(3,"entityColor"),c.qZA(),c._uU(4)),2&g){const m=c.oxw();c.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.xp6(1),c.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?c.lcZ(2,4,"Rejected"):c.lcZ(3,6,"EvidenceItem")),c.xp6(3),c.hij(" ",m.evidence.name,"\n")}}let _=(()=>{class g extends s.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,a.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=c.Xpm({type:g,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,D){if(1&m&&(c.YNc(0,Z,3,2,"ng-container",0),c.YNc(1,w,4,9,"ng-template",null,1,c.W1O),c.YNc(3,Y,1,1,"ng-template",null,2,c.W1O),c.YNc(5,J,5,8,"ng-template",null,3,c.W1O)),2&m){const B=c.MAs(4);c.Q6J("ngIf",D.linked)("ngIfElse",B)}},dependencies:[t.mk,t.O5,t.tP,L.rH,T.j,E.lU,N.Ls,O._,S.b,M.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),g})()},1218:(W,k,o)=>{o.d(k,{i:()=>M});var s=o(6814),a=o(4190),c=o(5695),t=o(7417),L=o(551),T=o(1855),E=o(2524),N=o(3640),O=o(3146),S=o(5879);let M=(()=>{class y{}return y.\u0275fac=function(z){return new(z||y)},y.\u0275mod=S.oAB({type:y}),y.\u0275inj=S.cJS({imports:[s.ez,a.Bz,N.mS,c.X,t.$6,L.PV,T.f,E.s,O.C]}),y})()},215:(W,k,o)=>{o.d(k,{m:()=>it});var s=o(5879),a=o(6814),c=o(4190),t=o(5695),L=o(551),T=o(7417),E=o(5676),N=o(7398),O=o(2181),S=o(313),M=o(2962),y=o(95),Z=o(8125),z=o(3317),A=o(7458),x=o(8091);const P=function(u,C){return{displayName:u,profileImagePath:C}};function w(u,C){if(1&u&&(s._UZ(0,"cvc-user-avatar",12),s.TgZ(1,"span",13),s._uU(2),s.qZA()),2&u){const l=s.oxw().ngIf;s.Q6J("user",s.WLB(2,P,l.name,l.profileImagePath)),s.xp6(2),s.Oqu(l.name)}}function U(u,C){if(1&u&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&u){const l=C.ngIf;s.xp6(1),s.Oqu(l)}}function Y(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"cvc-link-tag",14),s._uU(2),s.qZA(),s.BQk()),2&u){const l=s.oxw().ngIf;s.xp6(1),s.Q6J("href",l.url),s.xp6(1),s.hij(" ",l.name," ")}}function J(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"nz-card",4),s.YNc(2,w,3,5,"ng-template",null,5,s.W1O),s.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),s.YNc(8,U,2,1,"span",9),s.qZA()()()(),s.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),s.YNc(11,Y,3,2,"ng-container",9),s.qZA()()(),s.BQk()),2&u){const l=C.ngIf,v=s.MAs(3);s.oxw();const h=s.MAs(4),b=s.MAs(6);s.xp6(1),s.Q6J("nzTitle",v),s.xp6(7),s.Q6J("ngIf",l.description)("ngIfElse",h),s.xp6(1),s.Q6J("nzColumn",2),s.xp6(2),s.Q6J("ngIf",l.url)("ngIfElse",b)}}function _(u,C){1&u&&s._uU(0," Organization has not provided a description.\n")}function g(u,C){1&u&&s._uU(0," -- ")}let d=(()=>{class u{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,N.U)(({data:l})=>l?.organization),(0,O.h)(E.ep))}}return u.\u0275fac=function(l){return new(l||u)(s.Y36(S.X5f))},u.\u0275cmp=s.Xpm({type:u,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(l,v){1&l&&(s.TgZ(0,"div",0),s.YNc(1,J,12,6,"ng-container",1),s.ALo(2,"ngrxPush"),s.qZA(),s.YNc(3,_,1,0,"ng-template",null,2,s.W1O),s.YNc(5,g,1,0,"ng-template",null,3,s.W1O)),2&l&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,v.org$)))},dependencies:[a.O5,M.bd,y.t3,y.SK,Z.R7,Z.uj,z.l,A.L,x.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();function m(u,C){}function D(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"a",4),s.YNc(2,m,0,0,"ng-template",5),s.qZA(),s.BQk()),2&u){const l=s.oxw(),v=s.MAs(2);s.xp6(1),s.MGl("routerLink","/organizations/",l.org.id,""),s.xp6(1),s.Q6J("ngTemplateOutlet",v)}}function B(u,C){}function R(u,C){if(1&u&&s._UZ(0,"cvc-organization-popover",9),2&u){const l=s.oxw(3);s.Q6J("orgId",l.org.id)}}function H(u,C){if(1&u&&s.YNc(0,R,1,1,"cvc-organization-popover",8),2&u){const l=s.oxw(2);s.Q6J("ngIf",l.enablePopover)}}function j(u,C){if(1&u&&(s.TgZ(0,"nz-tag",6),s.YNc(1,B,0,0,"ng-template",5),s.qZA(),s.YNc(2,H,1,1,"ng-template",null,7,s.W1O)),2&u){const l=s.MAs(3);s.oxw();const v=s.MAs(6);s.Q6J("nzPopoverContent",l),s.xp6(1),s.Q6J("ngTemplateOutlet",v)}}function K(u,C){}function X(u,C){if(1&u&&s.YNc(0,K,0,0,"ng-template",5),2&u){s.oxw();const l=s.MAs(2);s.Q6J("ngTemplateOutlet",l)}}function q(u,C){if(1&u&&(s._UZ(0,"i",10),s._uU(1)),2&u){const l=s.oxw();s.xp6(1),s.hij(" ",l.org.name,"\n")}}let it=(()=>{class u{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275cmp=s.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(l,v){if(1&l&&(s.YNc(0,D,3,2,"ng-container",0),s.YNc(1,j,4,2,"ng-template",null,1,s.W1O),s.YNc(3,X,1,1,"ng-template",null,2,s.W1O),s.YNc(5,q,2,1,"ng-template",null,3,s.W1O)),2&l){const h=s.MAs(4);s.Q6J("ngIf",v.linked)("ngIfElse",h)}},dependencies:[a.O5,a.tP,c.rH,t.j,L.Ls,T.lU,d],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},1106:(W,k,o)=>{o.d(k,{L:()=>Z});var s=o(6814),a=o(4190),c=o(5695),t=o(551),L=o(95),T=o(6067),E=o(8125),N=o(2962),O=o(4293),S=o(5879);let M=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=S.oAB({type:z}),z.\u0275inj=S.cJS({imports:[s.ez,N.vh,L.Jb,E.q6,T.X,O.H]}),z})();var y=o(7417);let Z=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=S.oAB({type:z}),z.\u0275inj=S.cJS({imports:[s.ez,a.Bz,c.X,t.PV,y.$6,M]}),z})()},5959:(W,k,o)=>{o.d(k,{u:()=>C});var s=o(2023),a=o(5879),c=o(6814),t=o(4190),L=o(7417),T=o(5695),E=o(551),N=o(5676),O=o(7398),S=o(2181),M=o(313),y=o(2962),Z=o(8125),z=o(4138),A=o(9408),x=o(1887),P=o(8091),w=o(2616);function U(l,v){if(1&l&&(a._UZ(0,"i",7),a.ALo(1,"entityColor"),a._uU(2)),2&l){const h=a.oxw().ngIf;a.Q6J("nzTwotoneColor",a.lcZ(1,2,"VariantGroup")),a.xp6(2),a.hij(" ",h.name," ")}}function Y(l,v){if(1&l&&a._UZ(0,"cvc-variant-tag",10),2&l){const h=v.$implicit;a.Q6J("enablePopover",!1)("variant",h.node)}}function J(l,v){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),a.YNc(2,Y,1,2,"cvc-variant-tag",9),a.qZA()()),2&l){const h=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",h.variants.edges)}}function _(l,v){if(1&l&&a._UZ(0,"cvc-source-tag",13),2&l){const h=v.$implicit;a.Q6J("enablePopover",!1)("source",h)}}function g(l,v){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),a.YNc(2,_,1,2,"cvc-source-tag",12),a.qZA()()),2&l){const h=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",h.sources)}}function d(l,v){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,U,3,4,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,J,3,1,"nz-descriptions-item",5),a.YNc(7,g,3,1,"nz-descriptions-item",6),a.qZA()(),a.BQk()),2&l){const h=v.ngIf,b=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",b),a.xp6(3),a.hij(" ",h.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",h.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",h.sources.length>0)}}let m=(()=>{class l{constructor(h){this.gql=h}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,O.U)(({data:h})=>h?.variantGroup),(0,S.h)(N.ep))}}return l.\u0275fac=function(h){return new(h||l)(a.Y36(M.Zo2))},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(h,b){1&h&&(a.TgZ(0,"div",0),a.YNc(1,d,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&h&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,b.variantGroup$)))},dependencies:[c.sg,c.O5,y.bd,Z.R7,Z.uj,E.Ls,z.T,A.I,x.$,P.fM,w.a],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),l})();var D=o(3103);function B(l,v){}function R(l,v){if(1&l&&(a.ynx(0),a.TgZ(1,"a",4),a.YNc(2,B,0,0,"ng-template",5),a.qZA(),a.BQk()),2&l){const h=a.oxw(),b=a.MAs(2);a.xp6(1),a.Q6J("routerLink",h.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",b)}}function H(l,v){}function j(l,v){if(1&l&&a._UZ(0,"cvc-variant-group-popover",9),2&l){const h=a.oxw(3);a.Q6J("variantGroupId",h.variantgroup.id)}}function K(l,v){if(1&l&&a.YNc(0,j,1,1,"cvc-variant-group-popover",8),2&l){const h=a.oxw(2);a.Q6J("ngIf",h.enablePopover)}}function X(l,v){if(1&l&&(a.TgZ(0,"nz-tag",6),a.YNc(1,H,0,0,"ng-template",5),a.qZA(),a.YNc(2,K,1,1,"ng-template",null,7,a.W1O)),2&l){const h=a.MAs(3),b=a.oxw(),V=a.MAs(6);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",h)("nzPopoverTrigger",b.enablePopover?"hover":null),a.xp6(1),a.Q6J("ngTemplateOutlet",V)}}function q(l,v){}function it(l,v){if(1&l&&a.YNc(0,q,0,0,"ng-template",5),2&l){a.oxw();const h=a.MAs(2);a.Q6J("ngTemplateOutlet",h)}}function u(l,v){if(1&l&&(a.TgZ(0,"cvc-icon-badges",10),a._UZ(1,"i",11),a.ALo(2,"entityColor"),a.qZA(),a._uU(3)),2&l){const h=a.oxw();a.Q6J("flagged",h.variantgroup.flagged)("entityColor",h.iconColor),a.xp6(1),a.Q6J("nzTwotoneColor",a.lcZ(2,4,"VariantGroup")),a.xp6(2),a.hij(" ",h.variantgroup.name,"\n")}}let C=(()=>{class l{set variantgroup(h){if(!h)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=h}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,s.f)("VariantGroup")}}return l.\u0275fac=function(h){return new(h||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(h,b){if(1&h&&(a.YNc(0,R,3,2,"ng-container",0),a.YNc(1,X,4,4,"ng-template",null,1,a.W1O),a.YNc(3,it,1,1,"ng-template",null,2,a.W1O),a.YNc(5,u,4,6,"ng-template",null,3,a.W1O)),2&h){const V=a.MAs(4);a.Q6J("ngIf",b.linked)("ngIfElse",V)}},dependencies:[c.O5,c.tP,t.rH,L.lU,T.j,E.Ls,m,D.b,w.a],encapsulation:2,changeDetection:0}),l})()},3641:(W,k,o)=>{o.d(k,{G:()=>A});var s=o(6814),a=o(4190),c=o(7417),t=o(5695),L=o(551),T=o(366),E=o(8641),N=o(7528),O=o(2524),S=o(2962),M=o(8125),y=o(5879);let Z=(()=>{class x{}return x.\u0275fac=function(w){return new(w||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[s.ez,S.vh,M.q6,L.PV,E.s,N.Q,T.$,O.s]}),x})();var z=o(3146);let A=(()=>{class x{}return x.\u0275fac=function(w){return new(w||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[s.ez,a.Bz,c.$6,t.X,L.PV,Z,O.s,z.C]}),x})()},5573:(W,k,o)=>{o.d(k,{x:()=>M});var s=o(5879);const c=3600,t=24*c,T=365*t,N=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),S=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let M=(()=>{class y{transform(z){let A;A="number"==typeof z?z:Date.parse(z);const x=Date.now(),P=Math.round(Math.abs(x-A)/1e3);if(P>=2592e3&&P=T){let J=new Date(A);return S.format(J)}let w,U;return P<60?(w=Math.round(P),U="second"):P1?"s":""} ago`}}return y.\u0275fac=function(z){return new(z||y)},y.\u0275pipe=s.Yjl({name:"timeAgo",type:y,pure:!0}),y})()},91:(W,k,o)=>{o.r(k),o.d(k,{WelcomeModule:()=>ye});var s=o(4190),a=o(313),c=o(7398),t=o(5879),L=o(9862),T=o(6814),E=o(95),N=o(9388),O=o(2831),S=o(655),M=o(6028),y=o(8645),Z=o(2438),z=o(9773),A=o(874),x=o(7754),P=o(9087);const w=["slickList"],U=["slickTrack"];function Y(n,i){}const J=function(n){return{$implicit:n}};function _(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const f=t.CHM(e).index,Q=t.oxw(2);return t.KtG(Q.onLiClick(f))}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&n){const e=i.index,r=t.oxw(2),p=t.MAs(8);t.ekj("slick-active",e===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||p)("ngTemplateOutletContext",t.VKq(4,J,e))}}function g(n,i){if(1&n&&(t.TgZ(0,"ul",7),t.YNc(1,_,2,6,"li",8),t.qZA()),2&n){const e=t.oxw();t.ekj("slick-dots-top","top"===e.nzDotPosition)("slick-dots-bottom","bottom"===e.nzDotPosition)("slick-dots-left","left"===e.nzDotPosition)("slick-dots-right","right"===e.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",e.carouselContents)}}function d(n,i){if(1&n&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e+1)}}const m=["*"];let D=(()=>{class n{set isActive(e){this._active=e,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(e,r){this.renderer=r,this._active=!1,this.el=e.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"]}),n})();class B{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(i,e,r,p,f){this.cdr=e,this.renderer=r,this.platform=p,this.options=f,this.carouselComponent=i}withCarouselContents(i){const e=this.carouselComponent;if(this.slickListEl=e.slickListEl,this.slickTrackEl=e.slickTrackEl,this.contents=i?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const r=e.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else i?.forEach((r,p)=>{0===p?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(i){}dispose(){}getFromToInBoundary(i,e){const r=this.maxIndex+1;return{from:(i+r)%r,to:(e+r)%r}}}class R extends B{withCarouselContents(i){super.withCarouselContents(i),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((e,r)=>{this.renderer.setStyle(e.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(e.el,"position","relative"),this.renderer.setStyle(e.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(e.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(e.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(i,e){const{to:r}=this.getFromToInBoundary(i,e),p=new y.x;return this.contents.forEach((f,Q)=>{this.renderer.setStyle(f.el,"opacity",r===Q?"1":"0")}),setTimeout(()=>{p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p}dispose(){this.contents.forEach(i=>{this.renderer.setStyle(i.el,"transition",null),this.renderer.setStyle(i.el,"opacity",null),this.renderer.setStyle(i.el,"width",null),this.renderer.setStyle(i.el,"left",null)}),super.dispose()}}class H extends B{get vertical(){return this.carouselComponent.vertical}constructor(i,e,r,p,f){super(i,e,r,p,f),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(i){super.withCarouselContents(i);const r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`)),this.contents.forEach(p=>{this.renderer.setStyle(p.el,"position","relative"),this.renderer.setStyle(p.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(p.el,"height",`${this.unitHeight}px`)}))}switch(i,e){const{to:r}=this.getFromToInBoundary(i,e),p=new y.x;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(i,e):this.horizontalTransform(i,e),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(f=>{this.renderer.setStyle(f.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-r*this.unitHeight}px, 0)`:`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p.asObservable()}dragging(i){if(this.isTransitioning)return;const e=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareVerticalContext(!0):0===e&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-e*this.unitHeight+i.x}px, 0)`)):(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareHorizontalContext(!0):0===e&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-e*this.unitWidth+i.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(i,e){const{from:r,to:p}=this.getFromToInBoundary(i,e);this.length>2&&e!==p?(this.prepareVerticalContext(p2&&e!==p?(this.prepareHorizontalContext(p{class n{set nzDotPosition(e){this._dotPosition=e,this.vertical="left"===e||"right"===e}get nzDotPosition(){return this._dotPosition}constructor(e,r,p,f,Q,F,$,ct,pt,gt){this.nzConfigService=r,this.ngZone=p,this.renderer=f,this.cdr=Q,this.platform=F,this.resizeService=$,this.nzDragService=ct,this.directionality=pt,this.customStrategies=gt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzLoop=!0,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.vpe,this.nzAfterChange=new t.vpe,this.activeIndex=0,this.vertical=!1,this.transitionInProgress=null,this.dir="ltr",this.destroy$=new y.x,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=G=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-G:G)},this.pointerDown=G=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(G).subscribe(I=>{this.pointerDelta=I,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const I=this.pointerDelta?this.pointerDelta.x:0;Math.abs(I)>this.gestureRect.width/3&&(this.nzLoop||I<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(I>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=e.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,Z.R)(this.slickListEl,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(e=>{const{keyCode:r}=e;r!==M.oh&&r!==M.SV||(e.preventDefault(),this.ngZone.run(()=>{r===M.oh?this.pre():this.next(),this.cdr.markForCheck()}))})})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(e){const{nzEffect:r,nzDotPosition:p}=e;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),p&&!p.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(e){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||e>=0&&e{this.scheduleNextTransition(),this.nzAfterChange.emit(f),this.isTransiting=!1}),this.markContentActive(f),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const e=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=e?new e.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new H(this,this.cdr,this.renderer,this.platform):new R(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=null)}markContentActive(e){this.activeIndex=e,this.carouselContents&&this.carouselContents.forEach((r,p)=>{r.isActive="rtl"===this.dir?e===this.carouselContents.length-1-p:e===p}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(A.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(O.t4),t.Y36(P.rI),t.Y36(P.Ml),t.Y36(N.Is,8),t.Y36(j,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-carousel"]],contentQueries:function(e,r,p){if(1&e&&t.Suo(p,D,4),2&e){let f;t.iGM(f=t.CRH())&&(r.carouselContents=f)}},viewQuery:function(e,r){if(1&e&&(t.Gf(w,7),t.Gf(U,7)),2&e){let p;t.iGM(p=t.CRH())&&(r.slickList=p.first),t.iGM(p=t.CRH())&&(r.slickTrack=p.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(e,r){2&e&&t.ekj("ant-carousel-vertical",r.vertical)("ant-carousel-rtl","rtl"===r.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:m,decls:9,vars:3,consts:[[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],["slickList",""],[1,"slick-track"],["slickTrack",""],["class","slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right",4,"ngIf"],["renderDotTemplate",""],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("mousedown",function(f){return r.pointerDown(f)})("touchstart",function(f){return r.pointerDown(f)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA()(),t.YNc(6,g,2,9,"ul",5),t.qZA(),t.YNc(7,d,2,1,"ng-template",null,6,t.W1O)),2&e&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},dependencies:[T.sg,T.O5,T.tP],encapsulation:2,changeDetection:0}),(0,S.gn)([(0,A.oS)()],n.prototype,"nzEffect",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzEnableSwipe",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzDots",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzAutoPlay",void 0),(0,S.gn)([(0,A.oS)(),(0,x.Rn)()],n.prototype,"nzAutoPlaySpeed",void 0),(0,S.gn)([(0,x.Rn)()],n.prototype,"nzTransitionSpeed",void 0),(0,S.gn)([(0,A.oS)()],n.prototype,"nzLoop",void 0),(0,S.gn)([(0,A.oS)()],n.prototype,"nzDotPosition",null),n})(),q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[N.vT,T.ez,O.ud]}),n})();var C=o(2962),l=o(2574),v=o(2392),h=o(5676),b=o(2181),V=o(4223),tt=o(6223),at=o(2996),et=o(7907),rt=o(855),nt=o(551),dt=o(8091),ft=o(2616);function vt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(p){t.CHM(e);const f=t.oxw();return t.KtG(f.statsType=p)}),t.TgZ(1,"label",5),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"label",6),t._uU(4,"Weekly"),t.qZA(),t.TgZ(5,"label",7),t._uU(6,"Monthly"),t.qZA(),t.TgZ(7,"label",8),t._uU(8,"Yearly"),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.statsType)}}function _t(n,i){1&n&&(t._UZ(0,"i",31),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Assertion"))}function zt(n,i){1&n&&(t._UZ(0,"i",32),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"EvidenceItem"))}function Ct(n,i){1&n&&(t._UZ(0,"i",33),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Gene"))}function Tt(n,i){1&n&&(t._UZ(0,"i",34),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Variant"))}function xt(n,i){1&n&&(t._UZ(0,"i",35),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"MolecularProfile"))}function yt(n,i){1&n&&(t._UZ(0,"i",36),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Disease"))}function St(n,i){1&n&&(t._UZ(0,"i",37),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Therapy"))}function Et(n,i){1&n&&(t._UZ(0,"i",38),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Source"))}function At(n,i){1&n&&(t._UZ(0,"i",39),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Revision"))}function It(n,i){1&n&&(t._UZ(0,"i",40),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Curator"))}function Pt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",9)(2,"nz-col",10)(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,_t,2,3,"ng-template",null,13,t.W1O),t.qZA()(),t.TgZ(8,"nz-col",10)(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,zt,2,3,"ng-template",null,15,t.W1O),t.qZA()(),t.TgZ(14,"nz-col",10)(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,Ct,2,3,"ng-template",null,17,t.W1O),t.qZA()(),t.TgZ(20,"nz-col",10)(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,Tt,2,3,"ng-template",null,19,t.W1O),t.qZA()(),t.TgZ(26,"nz-col",10)(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,xt,2,3,"ng-template",null,21,t.W1O),t.qZA()()(),t.TgZ(32,"nz-row",9)(33,"nz-col",10)(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,yt,2,3,"ng-template",null,23,t.W1O),t.qZA()(),t.TgZ(39,"nz-col",10)(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,St,2,3,"ng-template",null,25,t.W1O),t.qZA()(),t.TgZ(45,"nz-col",10)(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,Et,2,3,"ng-template",null,27,t.W1O),t.qZA()(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,At,2,3,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10)(57,"a",29),t._UZ(58,"nz-statistic",12),t.ALo(59,"number"),t.YNc(60,It,2,3,"ng-template",null,30,t.W1O),t.qZA()()(),t.BQk()),2&n){const e=i.ngIf,r=t.MAs(7),p=t.MAs(13),f=t.MAs(19),Q=t.MAs(25),F=t.MAs(31),$=t.MAs(38),ct=t.MAs(44),pt=t.MAs(50),gt=t.MAs(55),G=t.MAs(61),I=t.oxw();t.xp6(4),t.Q6J("nzTitle",I.label()+" Assertions")("nzValue",t.lcZ(5,30,e.assertions[I.statsType]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",I.label()+" Evidence")("nzValue",t.lcZ(11,32,e.evidenceItems[I.statsType]))("nzPrefix",p),t.xp6(6),t.Q6J("nzTitle",I.label()+" Genes")("nzValue",t.lcZ(17,34,e.genes[I.statsType]))("nzPrefix",f),t.xp6(6),t.Q6J("nzTitle",I.label()+" Variants")("nzValue",t.lcZ(23,36,e.variants[I.statsType]))("nzPrefix",Q),t.xp6(6),t.Q6J("nzTitle",I.label()+" Molecular Profiles")("nzValue",t.lcZ(29,38,e.molecularProfiles[I.statsType]))("nzPrefix",F),t.xp6(7),t.Q6J("nzTitle",I.label()+" Diseases")("nzValue",t.lcZ(36,40,e.diseases[I.statsType]))("nzPrefix",$),t.xp6(6),t.Q6J("nzTitle",I.label()+" Therapies")("nzValue",t.lcZ(42,42,e.therapies[I.statsType]))("nzPrefix",ct),t.xp6(6),t.Q6J("nzTitle",I.label()+" Sources")("nzValue",t.lcZ(48,44,e.sources[I.statsType]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",I.label()+" Revisions")("nzValue",t.lcZ(53,46,e.revisions[I.statsType]))("nzPrefix",gt),t.xp6(6),t.Q6J("nzTitle",I.label()+" Contributors")("nzValue",t.lcZ(59,48,e.users[I.statsType]))("nzPrefix",G)}}function wt(n,i){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",10),t._UZ(2,"nz-statistic",41),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",41),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",41),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",41),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",41),t.qZA()(),t.TgZ(11,"nz-row",9)(12,"nz-col",10),t._UZ(13,"nz-statistic",41),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",41),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",41),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",41),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzTitle",e.label()+" Assertions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Evidence")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Genes")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Variants")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Molecular Profiles")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",e.label()+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Therapies")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Sources")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Contributors")("nzValue","--")}}let Ot=(()=>{class n{constructor(e){this.statsGql=e,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,V.j)("loading"),(0,b.h)(h.ep)),this.stats$=this.response$.pipe((0,V.j)("data","timepointStats"),(0,b.h)(h.ep))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.UWf))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],["statsRadioGroup",""],[4,"ngIf","ngIfElse"],["isLoading",""],["nzSize","small",3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/molecular-profiles"],["mpIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/therapies"],["therapyIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["routerLink","/users"],["userIcon",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(e,r){if(1&e&&(t.TgZ(0,"nz-card",0),t.YNc(1,vt,9,1,"ng-template",null,1,t.W1O),t.YNc(3,Pt,62,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,wt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&e){const p=t.MAs(2),f=t.MAs(6);t.Q6J("nzExtra",p),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",f)}},dependencies:[T.O5,tt.JJ,tt.On,s.rH,at.my,E.t3,E.SK,C.bd,et.Of,et.Bq,et.Dg,rt.w,nt.Ls,T.JJ,dt.fM,ft.a],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),n})();var Mt=o(553),ot=o(2840),kt=o(1958),st=o(804),Nt=o(7169);function Zt(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&n){const e=t.oxw().ngIf,r=t.oxw(3);t.xp6(1),t.Q6J("events",e)("tagDisplay",r.tagDisplay)}}function Dt(n,i){1&n&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2," See Full Activity Feed "),t.qZA(),t.BQk())}function Lt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",8),t.YNc(3,Zt,2,2,"ng-container",0),t.YNc(4,Dt,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&n){const e=i.ngIf,r=t.oxw(3),p=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.length)("ngIfElse",p),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,r.pageInfo$))}}function bt(n,i){if(1&n&&(t.TgZ(0,"nz-card",6),t.YNc(1,Lt,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,e.events$))}}function Ut(n,i){1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,bt,3,4,"nz-card",5),t.qZA()()(),t.BQk()),2&n&&(t.xp6(1),t.Q6J("nzGutter",16))}function Jt(n,i){1&n&&t._UZ(0,"nz-empty",11)}let Qt=(()=>{class n{constructor(e){this.gql=e,this.pageSize=15,this.mode=a.wJ2.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=Mt.N.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.pageInfo)),this.events$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.edges.map(r=>r.node))),this.unfilteredCount$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.unfilteredCount))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.BTF))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,r){if(1&e&&(t.YNc(0,Ut,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,Jt,1,0,"ng-template",null,1,t.W1O)),2&e){const p=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,r.unfilteredCount$))("ngIfElse",p)}},dependencies:[T.O5,s.rH,ot.ix,rt.w,kt.dQ,C.bd,E.t3,E.SK,l.NU,l.$1,st.p9,Nt.r,dt.fM],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]}),n})();var ht=o(6987),ut=o(6192);function Yt(n,i){1&n&&t.GkF(0)}function Bt(n,i){1&n&&t.GkF(0)}function Vt(n,i){1&n&&t.GkF(0)}function Wt(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw().$implicit;t.hij(" ",e.title," ")}}function Ft(n,i){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function $t(n,i){if(1&n&&t._UZ(0,"div",14),2&n){const e=t.oxw(2).$implicit;t.Jzz("background-image: url('",e.imageUrl,"')")}}function Gt(n,i){if(1&n&&t.YNc(0,$t,1,3,"div",13),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.imageUrl)}}function Rt(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.text," ")}}function Ht(n,i){if(1&n&&(t._UZ(0,"span",16),t.ALo(1,"nzSanitizer")),2&n){const e=t.oxw(2).$implicit;t.Q6J("innerHtml",t.xi3(1,1,e.htmlText,"html"),t.oJD)}}function jt(n,i){if(1&n&&(t.YNc(0,Rt,2,1,"ng-container",0),t.YNc(1,Ht,2,4,"ng-template",null,15,t.W1O)),2&n){const e=t.MAs(2),r=t.oxw().$implicit;t.Q6J("ngIf",r.text)("ngIfElse",e)}}function Kt(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-divider"),t.TgZ(2,"a",18),t._UZ(3,"i",19),t._uU(4),t.qZA(),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("href",e.link.url,t.LSH),t.xp6(2),t.hij(" ",e.link.label?e.link.label:"More Information"," ")}}function Xt(n,i){if(1&n&&t.YNc(0,Kt,5,2,"ng-container",17),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.link&&e.link.url)}}function qt(n,i){if(1&n&&(t.TgZ(0,"nz-col",4)(1,"nz-card",5),t.YNc(2,Yt,1,0,"ng-container",6),t.YNc(3,Bt,1,0,"ng-container",6),t.YNc(4,Vt,1,0,"ng-container",6),t.qZA(),t.YNc(5,Wt,1,1,"ng-template",null,7,t.W1O),t.YNc(7,Ft,3,3,"ng-template",null,8,t.W1O),t.YNc(9,Gt,1,1,"ng-template",null,9,t.W1O),t.YNc(11,jt,3,2,"ng-template",null,10,t.W1O),t.YNc(13,Xt,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&n){const e=t.MAs(6),r=t.MAs(8),p=t.MAs(10),f=t.MAs(12),Q=t.MAs(14);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",p),t.xp6(1),t.Q6J("ngTemplateOutlet",f),t.xp6(1),t.Q6J("ngTemplateOutlet",Q)}}const te=function(){return[8,16]};function ee(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.YNc(2,qt,15,5,"nz-col",3),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(2,te)),t.xp6(1),t.Q6J("ngForOf",e.cvcNewsItems)}}function ne(n,i){1&n&&t._UZ(0,"nz-empty")}let oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["newsEmpty",""],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],["htmlText",""],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,r){if(1&e&&(t.YNc(0,ee,3,3,"ng-container",0),t.YNc(1,ne,1,0,"ng-template",null,1,t.W1O)),2&e){const p=t.MAs(2);t.Q6J("ngIf",r.cvcNewsItems)("ngIfElse",p)}},dependencies:[T.sg,T.O5,T.tP,ot.ix,rt.w,E.t3,E.SK,C.bd,v.ZU,st.p9,ht.g,nt.Ls,T.uU,ut.Pr],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]}),n})();function ie(n,i){1&n&&(t.TgZ(0,"nz-carousel",6)(1,"div",7)(2,"h1"),t._uU(3,"Welcome to CIViC"),t.qZA(),t.TgZ(4,"h2"),t._uU(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.qZA()(),t.TgZ(6,"div",7)(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer. "),t.qZA()(),t.TgZ(11,"div",7)(12,"h1"),t._uU(13," Participate with colleagues "),t._UZ(14,"br"),t._uU(15,"to add variants and support "),t._UZ(16,"br"),t._uU(17,"for cancer-related mutations. "),t.qZA()(),t.TgZ(18,"div",7)(19,"h1")(20,"a",8),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA()()()())}function se(n,i){1&n&&(t.TgZ(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.YNc(3,ie,24,0,"nz-carousel",5),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("nzSpan",24))}function ae(n,i){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4),t._UZ(2,"cvc-site-stats-card"),t.qZA()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function re(n,i){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t._UZ(3,"cvc-news-item-list",11),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-card",12),t._UZ(6,"cvc-homepage-event-feed",13),t.qZA()()()),2&n){const e=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("cvcNewsItems",e.newsItems),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("pageSize",23)}}function le(n,i){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(3,"p"),t._uU(4," CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more therapies, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance. These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit). "),t.qZA(),t.TgZ(5,"p"),t._uU(6," The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.TgZ(7,"strong"),t._uU(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.qZA(),t._uU(9,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional. "),t.qZA()()()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function ce(n,i){if(1&n&&(t.TgZ(0,"nz-row",16)(1,"div",17),t._uU(2),t.ALo(3,"date"),t.TgZ(4,"a",18),t._uU(5,"Release Notes"),t.qZA(),t._uU(6," \u2022 "),t.TgZ(7,"a",19),t._uU(8,"History"),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(2),t.AsE(" CIViC ",e.name," (",t.lcZ(3,3,e.published_at),") \u2022 "),t.xp6(2),t.Q6J("href",e.html_url,t.LSH)}}function pe(n,i){1&n&&(t.ynx(0),t.YNc(1,ce,9,5,"nz-row",15),t.BQk())}const ge=[{path:"",component:(()=>{class n{constructor(e){this.http=e,this.feedMode=a.wJ2.Unscoped,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,c.U)(e=>e[0]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(L.eN))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-welcome"]],decls:7,vars:3,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[4,"ngIf"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000",4,"nzSpaceItem"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],[3,"nzGutter"],["nzTitle","News & Events","nzSize","small",1,"home-card",2,"height","100%"],[3,"cvcNewsItems"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"height","100%"],[3,"pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"],["nzAlign","middle","nzJustify","center",4,"nzSpaceItem"],["nzAlign","middle","nzJustify","center"],["id","release-info","nz-typography",""],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(e,r){1&e&&(t.TgZ(0,"nz-space",0),t.YNc(1,se,4,1,"nz-row",1),t.YNc(2,ae,3,2,"nz-row",2),t.YNc(3,re,7,5,"nz-row",2),t.YNc(4,le,10,2,"nz-row",2),t.YNc(5,pe,2,0,"ng-container",3),t.ALo(6,"async"),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngIf",t.lcZ(6,1,r.release$)))},dependencies:[T.O5,E.t3,E.SK,X,D,C.bd,l.NU,l.$1,v.ZU,Ot,Qt,oe,T.Ov,T.uU],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]}),n})()}];let de=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.Bz.forChild(ge),s.Bz]}),n})();var he=o(6976),mt=o(279),ue=o(4139),lt=o(2524);let me=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,s.Bz,at.A2,E.Jb,C.vh,et.aF,ot.sL,ue.H0,v.ZJ,nt.PV,mt.s,lt.s]}),n})();var fe=o(3599),ve=o(6494),_e=o(9691),ze=o(4416),Ce=o(1595),Te=o(6928);let xe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,s.Bz,ot.sL,C.vh,nt.PV,fe.U5,_e.LV,ve.m,E.Jb,l.zf,st.Xo,Te.Rt,ze.m,lt.s,Ce.N,lt.s]}),n})(),ye=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,ot.sL,E.Jb,q,C.vh,he.Ph,et.aF,l.zf,at.A2,v.ZJ,st.Xo,ut.YS,ht.S,nt.PV,de,me,xe,mt.s]}),n})()},4139:(W,k,o)=>{o.d(k,{H0:()=>J});var s=o(5879),a=o(6814),c=o(9388);let J=(()=>{class _{}return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[c.vT,a.ez]}),_})()}}]); \ No newline at end of file diff --git a/server/public/8322.cfdb78db8eda075e.js b/server/public/8322.cfdb78db8eda075e.js new file mode 100644 index 000000000..c2d4a08a8 --- /dev/null +++ b/server/public/8322.cfdb78db8eda075e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8322],{4786:(W,k,o)=>{o.d(k,{O:()=>_});var s=o(8130),a=o(2023),c=o(5879),t=o(6814),L=o(4190),T=o(5695),E=o(7417),N=o(551),O=o(8213),S=o(3103),M=o(2616);function y(g,d){}function Z(g,d){if(1&g&&(c.ynx(0),c.TgZ(1,"a",4),c.YNc(2,y,0,0,"ng-template",5),c.qZA(),c.BQk()),2&g){const m=c.oxw(),D=c.MAs(2);c.xp6(1),c.Q6J("routerLink",m.evidence.link),c.xp6(1),c.Q6J("ngTemplateOutlet",D)}}function z(g,d){}function A(g,d){if(1&g&&c._UZ(0,"cvc-evidence-popover",9),2&g){const m=c.oxw(3);c.Q6J("evidenceId",m.evidence.id)}}function x(g,d){if(1&g&&c.YNc(0,A,1,1,"cvc-evidence-popover",8),2&g){const m=c.oxw(2);c.Q6J("ngIf",m.enablePopover)}}const P=function(g,d,m){return{rejected:g,submitted:d,accepted:m}};function w(g,d){if(1&g&&(c.TgZ(0,"nz-tag",6),c.YNc(1,z,0,0,"ng-template",5),c.qZA(),c.YNc(2,x,1,1,"ng-template",null,7,c.W1O)),2&g){const m=c.MAs(3),D=c.oxw(),B=c.MAs(6);c.Q6J("ngClass",c.kEZ(5,P,"REJECTED"===D.evidence.status,"SUBMITTED"===D.evidence.status,"ACCEPTED"===D.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",D.enablePopover?"hover":null),c.xp6(1),c.Q6J("ngTemplateOutlet",B)}}function U(g,d){}function Y(g,d){if(1&g&&c.YNc(0,U,0,0,"ng-template",5),2&g){c.oxw();const m=c.MAs(2);c.Q6J("ngTemplateOutlet",m)}}function J(g,d){if(1&g&&(c.TgZ(0,"cvc-icon-badges",10),c._UZ(1,"i",11),c.ALo(2,"entityColor"),c.ALo(3,"entityColor"),c.qZA(),c._uU(4)),2&g){const m=c.oxw();c.Q6J("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.xp6(1),c.Q6J("nzTwotoneColor","REJECTED"===m.evidence.status?c.lcZ(2,4,"Rejected"):c.lcZ(3,6,"EvidenceItem")),c.xp6(3),c.hij(" ",m.evidence.name,"\n")}}let _=(()=>{class g extends s.a{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,a.f)("EvidenceItem")}idFunction(){return this.evidence.id}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275cmp=c.Xpm({type:g,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.qOj],decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["evidencePopover",""],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(m,D){if(1&m&&(c.YNc(0,Z,3,2,"ng-container",0),c.YNc(1,w,4,9,"ng-template",null,1,c.W1O),c.YNc(3,Y,1,1,"ng-template",null,2,c.W1O),c.YNc(5,J,5,8,"ng-template",null,3,c.W1O)),2&m){const B=c.MAs(4);c.Q6J("ngIf",D.linked)("ngIfElse",B)}},dependencies:[t.mk,t.O5,t.tP,L.rH,T.j,E.lU,N.Ls,O._,S.b,M.a],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]}),g})()},1218:(W,k,o)=>{o.d(k,{i:()=>M});var s=o(6814),a=o(4190),c=o(5695),t=o(7417),L=o(551),T=o(1855),E=o(2524),N=o(3640),O=o(3146),S=o(5879);let M=(()=>{class y{}return y.\u0275fac=function(z){return new(z||y)},y.\u0275mod=S.oAB({type:y}),y.\u0275inj=S.cJS({imports:[s.ez,a.Bz,N.mS,c.X,t.$6,L.PV,T.f,E.s,O.C]}),y})()},215:(W,k,o)=>{o.d(k,{m:()=>it});var s=o(5879),a=o(6814),c=o(4190),t=o(5695),L=o(551),T=o(7417),E=o(5676),N=o(7398),O=o(2181),S=o(313),M=o(2962),y=o(95),Z=o(8125),z=o(3317),A=o(7458),x=o(8091);const P=function(u,C){return{displayName:u,profileImagePath:C}};function w(u,C){if(1&u&&(s._UZ(0,"cvc-user-avatar",12),s.TgZ(1,"span",13),s._uU(2),s.qZA()),2&u){const l=s.oxw().ngIf;s.Q6J("user",s.WLB(2,P,l.name,l.profileImagePath)),s.xp6(2),s.Oqu(l.name)}}function U(u,C){if(1&u&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&u){const l=C.ngIf;s.xp6(1),s.Oqu(l)}}function Y(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"cvc-link-tag",14),s._uU(2),s.qZA(),s.BQk()),2&u){const l=s.oxw().ngIf;s.xp6(1),s.Q6J("href",l.url),s.xp6(1),s.hij(" ",l.name," ")}}function J(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"nz-card",4),s.YNc(2,w,3,5,"ng-template",null,5,s.W1O),s.TgZ(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),s.YNc(8,U,2,1,"span",9),s.qZA()()()(),s.TgZ(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),s.YNc(11,Y,3,2,"ng-container",9),s.qZA()()(),s.BQk()),2&u){const l=C.ngIf,v=s.MAs(3);s.oxw();const h=s.MAs(4),b=s.MAs(6);s.xp6(1),s.Q6J("nzTitle",v),s.xp6(7),s.Q6J("ngIf",l.description)("ngIfElse",h),s.xp6(1),s.Q6J("nzColumn",2),s.xp6(2),s.Q6J("ngIf",l.url)("ngIfElse",b)}}function _(u,C){1&u&&s._uU(0," Organization has not provided a description.\n")}function g(u,C){1&u&&s._uU(0," -- ")}let d=(()=>{class u{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,N.U)(({data:l})=>l?.organization),(0,O.h)(E.ep))}}return u.\u0275fac=function(l){return new(l||u)(s.Y36(S.X5f))},u.\u0275cmp=s.Xpm({type:u,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["noDesc",""],["noHomepage",""],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(l,v){1&l&&(s.TgZ(0,"div",0),s.YNc(1,J,12,6,"ng-container",1),s.ALo(2,"ngrxPush"),s.qZA(),s.YNc(3,_,1,0,"ng-template",null,2,s.W1O),s.YNc(5,g,1,0,"ng-template",null,3,s.W1O)),2&l&&(s.xp6(1),s.Q6J("ngIf",s.lcZ(2,1,v.org$)))},dependencies:[a.O5,M.bd,y.t3,y.SK,Z.R7,Z.uj,z.l,A.L,x.fM],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),u})();function m(u,C){}function D(u,C){if(1&u&&(s.ynx(0),s.TgZ(1,"a",4),s.YNc(2,m,0,0,"ng-template",5),s.qZA(),s.BQk()),2&u){const l=s.oxw(),v=s.MAs(2);s.xp6(1),s.MGl("routerLink","/organizations/",l.org.id,""),s.xp6(1),s.Q6J("ngTemplateOutlet",v)}}function B(u,C){}function R(u,C){if(1&u&&s._UZ(0,"cvc-organization-popover",9),2&u){const l=s.oxw(3);s.Q6J("orgId",l.org.id)}}function H(u,C){if(1&u&&s.YNc(0,R,1,1,"cvc-organization-popover",8),2&u){const l=s.oxw(2);s.Q6J("ngIf",l.enablePopover)}}function j(u,C){if(1&u&&(s.TgZ(0,"nz-tag",6),s.YNc(1,B,0,0,"ng-template",5),s.qZA(),s.YNc(2,H,1,1,"ng-template",null,7,s.W1O)),2&u){const l=s.MAs(3);s.oxw();const v=s.MAs(6);s.Q6J("nzPopoverContent",l),s.xp6(1),s.Q6J("ngTemplateOutlet",v)}}function K(u,C){}function X(u,C){if(1&u&&s.YNc(0,K,0,0,"ng-template",5),2&u){s.oxw();const l=s.MAs(2);s.Q6J("ngTemplateOutlet",l)}}function q(u,C){if(1&u&&(s._UZ(0,"i",10),s._uU(1)),2&u){const l=s.oxw();s.xp6(1),s.hij(" ",l.org.name,"\n")}}let it=(()=>{class u{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275cmp=s.Xpm({type:u,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],["orgPopover",""],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(l,v){if(1&l&&(s.YNc(0,D,3,2,"ng-container",0),s.YNc(1,j,4,2,"ng-template",null,1,s.W1O),s.YNc(3,X,1,1,"ng-template",null,2,s.W1O),s.YNc(5,q,2,1,"ng-template",null,3,s.W1O)),2&l){const h=s.MAs(4);s.Q6J("ngIf",v.linked)("ngIfElse",h)}},dependencies:[a.O5,a.tP,c.rH,t.j,L.Ls,T.lU,d],styles:["[_nghost-%COMP%]{display:inline-block}"]}),u})()},1106:(W,k,o)=>{o.d(k,{L:()=>Z});var s=o(6814),a=o(4190),c=o(5695),t=o(551),L=o(95),T=o(6067),E=o(8125),N=o(2962),O=o(4293),S=o(5879);let M=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=S.oAB({type:z}),z.\u0275inj=S.cJS({imports:[s.ez,N.vh,L.Jb,E.q6,T.X,O.H]}),z})();var y=o(7417);let Z=(()=>{class z{}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=S.oAB({type:z}),z.\u0275inj=S.cJS({imports:[s.ez,a.Bz,c.X,t.PV,y.$6,M]}),z})()},5959:(W,k,o)=>{o.d(k,{u:()=>C});var s=o(2023),a=o(5879),c=o(6814),t=o(4190),L=o(7417),T=o(5695),E=o(551),N=o(5676),O=o(7398),S=o(2181),M=o(313),y=o(2962),Z=o(8125),z=o(4138),A=o(9408),x=o(1887),P=o(8091),w=o(2616);function U(l,v){if(1&l&&(a._UZ(0,"i",7),a.ALo(1,"entityColor"),a._uU(2)),2&l){const h=a.oxw().ngIf;a.Q6J("nzTwotoneColor",a.lcZ(1,2,"VariantGroup")),a.xp6(2),a.hij(" ",h.name," ")}}function Y(l,v){if(1&l&&a._UZ(0,"cvc-variant-tag",10),2&l){const h=v.$implicit;a.Q6J("enablePopover",!1)("variant",h.node)}}function J(l,v){if(1&l&&(a.TgZ(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),a.YNc(2,Y,1,2,"cvc-variant-tag",9),a.qZA()()),2&l){const h=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",h.variants.edges)}}function _(l,v){if(1&l&&a._UZ(0,"cvc-source-tag",13),2&l){const h=v.$implicit;a.Q6J("enablePopover",!1)("source",h)}}function g(l,v){if(1&l&&(a.TgZ(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),a.YNc(2,_,1,2,"cvc-source-tag",12),a.qZA()()),2&l){const h=a.oxw().ngIf;a.xp6(2),a.Q6J("ngForOf",h.sources)}}function d(l,v){if(1&l&&(a.ynx(0),a.TgZ(1,"nz-card",2),a.YNc(2,U,3,4,"ng-template",null,3,a.W1O),a._uU(4),a.TgZ(5,"nz-descriptions",4),a.YNc(6,J,3,1,"nz-descriptions-item",5),a.YNc(7,g,3,1,"nz-descriptions-item",6),a.qZA()(),a.BQk()),2&l){const h=v.ngIf,b=a.MAs(3);a.xp6(1),a.Q6J("nzTitle",b),a.xp6(3),a.hij(" ",h.description," "),a.xp6(1),a.Q6J("nzColumn",2),a.xp6(1),a.Q6J("ngIf",h.variants.edges.length>0),a.xp6(1),a.Q6J("ngIf",h.sources.length>0)}}let m=(()=>{class l{constructor(h){this.gql=h}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,O.U)(({data:h})=>h?.variantGroup),(0,S.h)(N.ep))}}return l.\u0275fac=function(h){return new(h||l)(a.Y36(M.Zo2))},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(h,b){1&h&&(a.TgZ(0,"div",0),a.YNc(1,d,8,5,"ng-container",1),a.ALo(2,"ngrxPush"),a.qZA()),2&h&&(a.xp6(1),a.Q6J("ngIf",a.lcZ(2,1,b.variantGroup$)))},dependencies:[c.sg,c.O5,y.bd,Z.R7,Z.uj,E.Ls,z.T,A.I,x.$,P.fM,w.a],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]}),l})();var D=o(3103);function B(l,v){}function R(l,v){if(1&l&&(a.ynx(0),a.TgZ(1,"a",4),a.YNc(2,B,0,0,"ng-template",5),a.qZA(),a.BQk()),2&l){const h=a.oxw(),b=a.MAs(2);a.xp6(1),a.Q6J("routerLink",h.variantgroup.link),a.xp6(1),a.Q6J("ngTemplateOutlet",b)}}function H(l,v){}function j(l,v){if(1&l&&a._UZ(0,"cvc-variant-group-popover",9),2&l){const h=a.oxw(3);a.Q6J("variantGroupId",h.variantgroup.id)}}function K(l,v){if(1&l&&a.YNc(0,j,1,1,"cvc-variant-group-popover",8),2&l){const h=a.oxw(2);a.Q6J("ngIf",h.enablePopover)}}function X(l,v){if(1&l&&(a.TgZ(0,"nz-tag",6),a.YNc(1,H,0,0,"ng-template",5),a.qZA(),a.YNc(2,K,1,1,"ng-template",null,7,a.W1O)),2&l){const h=a.MAs(3),b=a.oxw(),V=a.MAs(6);a.Q6J("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",h)("nzPopoverTrigger",b.enablePopover?"hover":null),a.xp6(1),a.Q6J("ngTemplateOutlet",V)}}function q(l,v){}function it(l,v){if(1&l&&a.YNc(0,q,0,0,"ng-template",5),2&l){a.oxw();const h=a.MAs(2);a.Q6J("ngTemplateOutlet",h)}}function u(l,v){if(1&l&&(a.TgZ(0,"cvc-icon-badges",10),a._UZ(1,"i",11),a.ALo(2,"entityColor"),a.qZA(),a._uU(3)),2&l){const h=a.oxw();a.Q6J("flagged",h.variantgroup.flagged)("entityColor",h.iconColor),a.xp6(1),a.Q6J("nzTwotoneColor",a.lcZ(2,4,"VariantGroup")),a.xp6(2),a.hij(" ",h.variantgroup.name,"\n")}}let C=(()=>{class l{set variantgroup(h){if(!h)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=h}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,s.f)("VariantGroup")}}return l.\u0275fac=function(h){return new(h||l)},l.\u0275cmp=a.Xpm({type:l,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[[4,"ngIf","ngIfElse"],["tag",""],["unlinked",""],["tagContent",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],["popoverContent",""],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(h,b){if(1&h&&(a.YNc(0,R,3,2,"ng-container",0),a.YNc(1,X,4,4,"ng-template",null,1,a.W1O),a.YNc(3,it,1,1,"ng-template",null,2,a.W1O),a.YNc(5,u,4,6,"ng-template",null,3,a.W1O)),2&h){const V=a.MAs(4);a.Q6J("ngIf",b.linked)("ngIfElse",V)}},dependencies:[c.O5,c.tP,t.rH,L.lU,T.j,E.Ls,m,D.b,w.a],encapsulation:2,changeDetection:0}),l})()},3641:(W,k,o)=>{o.d(k,{G:()=>A});var s=o(6814),a=o(4190),c=o(7417),t=o(5695),L=o(551),T=o(366),E=o(8641),N=o(7528),O=o(2524),S=o(2962),M=o(8125),y=o(5879);let Z=(()=>{class x{}return x.\u0275fac=function(w){return new(w||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[s.ez,S.vh,M.q6,L.PV,E.s,N.Q,T.$,O.s]}),x})();var z=o(3146);let A=(()=>{class x{}return x.\u0275fac=function(w){return new(w||x)},x.\u0275mod=y.oAB({type:x}),x.\u0275inj=y.cJS({imports:[s.ez,a.Bz,c.$6,t.X,L.PV,Z,O.s,z.C]}),x})()},5573:(W,k,o)=>{o.d(k,{x:()=>M});var s=o(5879);const c=3600,t=24*c,T=365*t,N=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),S=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let M=(()=>{class y{transform(z){if(!z)return"--";let A;A="number"==typeof z?z:Date.parse(z);const x=Date.now(),P=Math.round(Math.abs(x-A)/1e3);if(P>=2592e3&&P=T){let J=new Date(A);return S.format(J)}let w,U;return P<60?(w=Math.round(P),U="second"):P1?"s":""} ago`}}return y.\u0275fac=function(z){return new(z||y)},y.\u0275pipe=s.Yjl({name:"timeAgo",type:y,pure:!0}),y})()},91:(W,k,o)=>{o.r(k),o.d(k,{WelcomeModule:()=>ye});var s=o(4190),a=o(313),c=o(7398),t=o(5879),L=o(9862),T=o(6814),E=o(95),N=o(9388),O=o(2831),S=o(655),M=o(6028),y=o(8645),Z=o(2438),z=o(9773),A=o(874),x=o(7754),P=o(9087);const w=["slickList"],U=["slickTrack"];function Y(n,i){}const J=function(n){return{$implicit:n}};function _(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const f=t.CHM(e).index,Q=t.oxw(2);return t.KtG(Q.onLiClick(f))}),t.YNc(1,Y,0,0,"ng-template",10),t.qZA()}if(2&n){const e=i.index,r=t.oxw(2),p=t.MAs(8);t.ekj("slick-active",e===r.activeIndex),t.xp6(1),t.Q6J("ngTemplateOutlet",r.nzDotRender||p)("ngTemplateOutletContext",t.VKq(4,J,e))}}function g(n,i){if(1&n&&(t.TgZ(0,"ul",7),t.YNc(1,_,2,6,"li",8),t.qZA()),2&n){const e=t.oxw();t.ekj("slick-dots-top","top"===e.nzDotPosition)("slick-dots-bottom","bottom"===e.nzDotPosition)("slick-dots-left","left"===e.nzDotPosition)("slick-dots-right","right"===e.nzDotPosition),t.xp6(1),t.Q6J("ngForOf",e.carouselContents)}}function d(n,i){if(1&n&&(t.TgZ(0,"button"),t._uU(1),t.qZA()),2&n){const e=i.$implicit;t.xp6(1),t.Oqu(e+1)}}const m=["*"];let D=(()=>{class n{set isActive(e){this._active=e,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(e,r){this.renderer=r,this._active=!1,this.el=e.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"]}),n})();class B{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(i,e,r,p,f){this.cdr=e,this.renderer=r,this.platform=p,this.options=f,this.carouselComponent=i}withCarouselContents(i){const e=this.carouselComponent;if(this.slickListEl=e.slickListEl,this.slickTrackEl=e.slickTrackEl,this.contents=i?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const r=e.el.getBoundingClientRect();this.unitWidth=r.width,this.unitHeight=r.height}else i?.forEach((r,p)=>{0===p?this.renderer.setStyle(r.el,"width","100%"):this.renderer.setStyle(r.el,"display","none")})}dragging(i){}dispose(){}getFromToInBoundary(i,e){const r=this.maxIndex+1;return{from:(i+r)%r,to:(e+r)%r}}}class R extends B{withCarouselContents(i){super.withCarouselContents(i),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((e,r)=>{this.renderer.setStyle(e.el,"opacity",this.carouselComponent.activeIndex===r?"1":"0"),this.renderer.setStyle(e.el,"position","relative"),this.renderer.setStyle(e.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(e.el,"left",-this.unitWidth*r+"px"),this.renderer.setStyle(e.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(i,e){const{to:r}=this.getFromToInBoundary(i,e),p=new y.x;return this.contents.forEach((f,Q)=>{this.renderer.setStyle(f.el,"opacity",r===Q?"1":"0")}),setTimeout(()=>{p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p}dispose(){this.contents.forEach(i=>{this.renderer.setStyle(i.el,"transition",null),this.renderer.setStyle(i.el,"opacity",null),this.renderer.setStyle(i.el,"width",null),this.renderer.setStyle(i.el,"left",null)}),super.dispose()}}class H extends B{get vertical(){return this.carouselComponent.vertical}constructor(i,e,r,p,f){super(i,e,r,p,f),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(i){super.withCarouselContents(i);const r=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-r*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-r*this.unitWidth}px, 0, 0)`)),this.contents.forEach(p=>{this.renderer.setStyle(p.el,"position","relative"),this.renderer.setStyle(p.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(p.el,"height",`${this.unitHeight}px`)}))}switch(i,e){const{to:r}=this.getFromToInBoundary(i,e),p=new y.x;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(i,e):this.horizontalTransform(i,e),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(f=>{this.renderer.setStyle(f.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-r*this.unitHeight}px, 0)`:`translate3d(${-r*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p.asObservable()}dragging(i){if(this.isTransitioning)return;const e=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareVerticalContext(!0):0===e&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-e*this.unitHeight+i.x}px, 0)`)):(!this.isDragging&&this.length>2&&(e===this.maxIndex?this.prepareHorizontalContext(!0):0===e&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-e*this.unitWidth+i.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(i,e){const{from:r,to:p}=this.getFromToInBoundary(i,e);this.length>2&&e!==p?(this.prepareVerticalContext(p2&&e!==p?(this.prepareHorizontalContext(p{class n{set nzDotPosition(e){this._dotPosition=e,this.vertical="left"===e||"right"===e}get nzDotPosition(){return this._dotPosition}constructor(e,r,p,f,Q,F,$,ct,pt,gt){this.nzConfigService=r,this.ngZone=p,this.renderer=f,this.cdr=Q,this.platform=F,this.resizeService=$,this.nzDragService=ct,this.directionality=pt,this.customStrategies=gt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzLoop=!0,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.vpe,this.nzAfterChange=new t.vpe,this.activeIndex=0,this.vertical=!1,this.transitionInProgress=null,this.dir="ltr",this.destroy$=new y.x,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=G=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-G:G)},this.pointerDown=G=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(G).subscribe(I=>{this.pointerDelta=I,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const I=this.pointerDelta?this.pointerDelta.x:0;Math.abs(I)>this.gestureRect.width/3&&(this.nzLoop||I<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(I>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=e.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,z.R)(this.destroy$)).subscribe(e=>{this.dir=e,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,Z.R)(this.slickListEl,"keydown").pipe((0,z.R)(this.destroy$)).subscribe(e=>{const{keyCode:r}=e;r!==M.oh&&r!==M.SV||(e.preventDefault(),this.ngZone.run(()=>{r===M.oh?this.pre():this.next(),this.cdr.markForCheck()}))})})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,z.R)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(e){const{nzEffect:r,nzDotPosition:p}=e;r&&!r.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),p&&!p.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(e){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||e>=0&&e{this.scheduleNextTransition(),this.nzAfterChange.emit(f),this.isTransiting=!1}),this.markContentActive(f),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const e=this.customStrategies?this.customStrategies.find(r=>r.name===this.nzEffect):null;this.strategy=e?new e.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new H(this,this.cdr,this.renderer,this.platform):new R(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=null)}markContentActive(e){this.activeIndex=e,this.carouselContents&&this.carouselContents.forEach((r,p)=>{r.isActive="rtl"===this.dir?e===this.carouselContents.length-1-p:e===p}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(A.jY),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(O.t4),t.Y36(P.rI),t.Y36(P.Ml),t.Y36(N.Is,8),t.Y36(j,8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["nz-carousel"]],contentQueries:function(e,r,p){if(1&e&&t.Suo(p,D,4),2&e){let f;t.iGM(f=t.CRH())&&(r.carouselContents=f)}},viewQuery:function(e,r){if(1&e&&(t.Gf(w,7),t.Gf(U,7)),2&e){let p;t.iGM(p=t.CRH())&&(r.slickList=p.first),t.iGM(p=t.CRH())&&(r.slickTrack=p.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(e,r){2&e&&t.ekj("ant-carousel-vertical",r.vertical)("ant-carousel-rtl","rtl"===r.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:"nzEnableSwipe",nzDots:"nzDots",nzAutoPlay:"nzAutoPlay",nzAutoPlaySpeed:"nzAutoPlaySpeed",nzTransitionSpeed:"nzTransitionSpeed",nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],features:[t.TTD],ngContentSelectors:m,decls:9,vars:3,consts:[[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],["slickList",""],[1,"slick-track"],["slickTrack",""],["class","slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right",4,"ngIf"],["renderDotTemplate",""],[1,"slick-dots"],[3,"slick-active","click",4,"ngFor","ngForOf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1,2),t.NdJ("mousedown",function(f){return r.pointerDown(f)})("touchstart",function(f){return r.pointerDown(f)}),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA()(),t.YNc(6,g,2,9,"ul",5),t.qZA(),t.YNc(7,d,2,1,"ng-template",null,6,t.W1O)),2&e&&(t.ekj("slick-vertical","left"===r.nzDotPosition||"right"===r.nzDotPosition),t.xp6(6),t.Q6J("ngIf",r.nzDots))},dependencies:[T.sg,T.O5,T.tP],encapsulation:2,changeDetection:0}),(0,S.gn)([(0,A.oS)()],n.prototype,"nzEffect",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzEnableSwipe",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzDots",void 0),(0,S.gn)([(0,A.oS)(),(0,x.yF)()],n.prototype,"nzAutoPlay",void 0),(0,S.gn)([(0,A.oS)(),(0,x.Rn)()],n.prototype,"nzAutoPlaySpeed",void 0),(0,S.gn)([(0,x.Rn)()],n.prototype,"nzTransitionSpeed",void 0),(0,S.gn)([(0,A.oS)()],n.prototype,"nzLoop",void 0),(0,S.gn)([(0,A.oS)()],n.prototype,"nzDotPosition",null),n})(),q=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[N.vT,T.ez,O.ud]}),n})();var C=o(2962),l=o(2574),v=o(2392),h=o(5676),b=o(2181),V=o(4223),tt=o(6223),at=o(2996),et=o(7907),rt=o(855),nt=o(551),dt=o(8091),ft=o(2616);function vt(n,i){if(1&n){const e=t.EpF();t.TgZ(0,"nz-radio-group",4),t.NdJ("ngModelChange",function(p){t.CHM(e);const f=t.oxw();return t.KtG(f.statsType=p)}),t.TgZ(1,"label",5),t._uU(2,"Total"),t.qZA(),t.TgZ(3,"label",6),t._uU(4,"Weekly"),t.qZA(),t.TgZ(5,"label",7),t._uU(6,"Monthly"),t.qZA(),t.TgZ(7,"label",8),t._uU(8,"Yearly"),t.qZA()()}if(2&n){const e=t.oxw();t.Q6J("ngModel",e.statsType)}}function _t(n,i){1&n&&(t._UZ(0,"i",31),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Assertion"))}function zt(n,i){1&n&&(t._UZ(0,"i",32),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"EvidenceItem"))}function Ct(n,i){1&n&&(t._UZ(0,"i",33),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Gene"))}function Tt(n,i){1&n&&(t._UZ(0,"i",34),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Variant"))}function xt(n,i){1&n&&(t._UZ(0,"i",35),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"MolecularProfile"))}function yt(n,i){1&n&&(t._UZ(0,"i",36),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Disease"))}function St(n,i){1&n&&(t._UZ(0,"i",37),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Therapy"))}function Et(n,i){1&n&&(t._UZ(0,"i",38),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Source"))}function At(n,i){1&n&&(t._UZ(0,"i",39),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Revision"))}function It(n,i){1&n&&(t._UZ(0,"i",40),t.ALo(1,"entityColor")),2&n&&t.Q6J("nzTwotoneColor",t.lcZ(1,1,"Curator"))}function Pt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",9)(2,"nz-col",10)(3,"a",11),t._UZ(4,"nz-statistic",12),t.ALo(5,"number"),t.YNc(6,_t,2,3,"ng-template",null,13,t.W1O),t.qZA()(),t.TgZ(8,"nz-col",10)(9,"a",14),t._UZ(10,"nz-statistic",12),t.ALo(11,"number"),t.YNc(12,zt,2,3,"ng-template",null,15,t.W1O),t.qZA()(),t.TgZ(14,"nz-col",10)(15,"a",16),t._UZ(16,"nz-statistic",12),t.ALo(17,"number"),t.YNc(18,Ct,2,3,"ng-template",null,17,t.W1O),t.qZA()(),t.TgZ(20,"nz-col",10)(21,"a",18),t._UZ(22,"nz-statistic",12),t.ALo(23,"number"),t.YNc(24,Tt,2,3,"ng-template",null,19,t.W1O),t.qZA()(),t.TgZ(26,"nz-col",10)(27,"a",20),t._UZ(28,"nz-statistic",12),t.ALo(29,"number"),t.YNc(30,xt,2,3,"ng-template",null,21,t.W1O),t.qZA()()(),t.TgZ(32,"nz-row",9)(33,"nz-col",10)(34,"a",22),t._UZ(35,"nz-statistic",12),t.ALo(36,"number"),t.YNc(37,yt,2,3,"ng-template",null,23,t.W1O),t.qZA()(),t.TgZ(39,"nz-col",10)(40,"a",24),t._UZ(41,"nz-statistic",12),t.ALo(42,"number"),t.YNc(43,St,2,3,"ng-template",null,25,t.W1O),t.qZA()(),t.TgZ(45,"nz-col",10)(46,"a",26),t._UZ(47,"nz-statistic",12),t.ALo(48,"number"),t.YNc(49,Et,2,3,"ng-template",null,27,t.W1O),t.qZA()(),t.TgZ(51,"nz-col",10),t._UZ(52,"nz-statistic",12),t.ALo(53,"number"),t.YNc(54,At,2,3,"ng-template",null,28,t.W1O),t.qZA(),t.TgZ(56,"nz-col",10)(57,"a",29),t._UZ(58,"nz-statistic",12),t.ALo(59,"number"),t.YNc(60,It,2,3,"ng-template",null,30,t.W1O),t.qZA()()(),t.BQk()),2&n){const e=i.ngIf,r=t.MAs(7),p=t.MAs(13),f=t.MAs(19),Q=t.MAs(25),F=t.MAs(31),$=t.MAs(38),ct=t.MAs(44),pt=t.MAs(50),gt=t.MAs(55),G=t.MAs(61),I=t.oxw();t.xp6(4),t.Q6J("nzTitle",I.label()+" Assertions")("nzValue",t.lcZ(5,30,e.assertions[I.statsType]))("nzPrefix",r),t.xp6(6),t.Q6J("nzTitle",I.label()+" Evidence")("nzValue",t.lcZ(11,32,e.evidenceItems[I.statsType]))("nzPrefix",p),t.xp6(6),t.Q6J("nzTitle",I.label()+" Genes")("nzValue",t.lcZ(17,34,e.genes[I.statsType]))("nzPrefix",f),t.xp6(6),t.Q6J("nzTitle",I.label()+" Variants")("nzValue",t.lcZ(23,36,e.variants[I.statsType]))("nzPrefix",Q),t.xp6(6),t.Q6J("nzTitle",I.label()+" Molecular Profiles")("nzValue",t.lcZ(29,38,e.molecularProfiles[I.statsType]))("nzPrefix",F),t.xp6(7),t.Q6J("nzTitle",I.label()+" Diseases")("nzValue",t.lcZ(36,40,e.diseases[I.statsType]))("nzPrefix",$),t.xp6(6),t.Q6J("nzTitle",I.label()+" Therapies")("nzValue",t.lcZ(42,42,e.therapies[I.statsType]))("nzPrefix",ct),t.xp6(6),t.Q6J("nzTitle",I.label()+" Sources")("nzValue",t.lcZ(48,44,e.sources[I.statsType]))("nzPrefix",pt),t.xp6(5),t.Q6J("nzTitle",I.label()+" Revisions")("nzValue",t.lcZ(53,46,e.revisions[I.statsType]))("nzPrefix",gt),t.xp6(6),t.Q6J("nzTitle",I.label()+" Contributors")("nzValue",t.lcZ(59,48,e.users[I.statsType]))("nzPrefix",G)}}function wt(n,i){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",10),t._UZ(2,"nz-statistic",41),t.qZA(),t.TgZ(3,"nz-col",10),t._UZ(4,"nz-statistic",41),t.qZA(),t.TgZ(5,"nz-col",10),t._UZ(6,"nz-statistic",41),t.qZA(),t.TgZ(7,"nz-col",10),t._UZ(8,"nz-statistic",41),t.qZA(),t.TgZ(9,"nz-col",10),t._UZ(10,"nz-statistic",41),t.qZA()(),t.TgZ(11,"nz-row",9)(12,"nz-col",10),t._UZ(13,"nz-statistic",41),t.qZA(),t.TgZ(14,"nz-col",10),t._UZ(15,"nz-statistic",41),t.qZA(),t.TgZ(16,"nz-col",10),t._UZ(17,"nz-statistic",41),t.qZA(),t.TgZ(18,"nz-col",10),t._UZ(19,"nz-statistic",41),t.qZA(),t.TgZ(20,"nz-col",10),t._UZ(21,"nz-statistic",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("nzTitle",e.label()+" Assertions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Evidence")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Genes")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Variants")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Molecular Profiles")("nzValue","--"),t.xp6(3),t.Q6J("nzTitle",e.label()+" Diseases")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Therapies")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Sources")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Revisions")("nzValue","--"),t.xp6(2),t.Q6J("nzTitle",e.label()+" Contributors")("nzValue","--")}}let Ot=(()=>{class n{constructor(e){this.statsGql=e,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,V.j)("loading"),(0,b.h)(h.ep)),this.stats$=this.response$.pipe((0,V.j)("data","timepointStats"),(0,b.h)(h.ep))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.UWf))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],["statsRadioGroup",""],[4,"ngIf","ngIfElse"],["isLoading",""],["nzSize","small",3,"ngModel","ngModelChange"],["nz-radio-button","","nzValue","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["assertionIcon",""],["routerLink","/evidence"],["evidenceIcon",""],["routerLink","/genes"],["geneIcon",""],["routerLink","/variants"],["variantIcon",""],["routerLink","/molecular-profiles"],["mpIcon",""],["routerLink","/diseases"],["diseaseIcon",""],["routerLink","/therapies"],["therapyIcon",""],["routerLink","/sources"],["sourceIcon",""],["revisionsIcon",""],["routerLink","/users"],["userIcon",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-gene",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(e,r){if(1&e&&(t.TgZ(0,"nz-card",0),t.YNc(1,vt,9,1,"ng-template",null,1,t.W1O),t.YNc(3,Pt,62,50,"ng-container",2),t.ALo(4,"ngrxPush"),t.YNc(5,wt,22,20,"ng-template",null,3,t.W1O),t.qZA()),2&e){const p=t.MAs(2),f=t.MAs(6);t.Q6J("nzExtra",p),t.xp6(3),t.Q6J("ngIf",t.lcZ(4,3,r.stats$))("ngIfElse",f)}},dependencies:[T.O5,tt.JJ,tt.On,s.rH,at.my,E.t3,E.SK,C.bd,et.Of,et.Bq,et.Dg,rt.w,nt.Ls,T.JJ,dt.fM,ft.a],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]}),n})();var Mt=o(553),ot=o(2840),kt=o(1958),st=o(804),Nt=o(7169);function Zt(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"cvc-event-timeline",9),t.BQk()),2&n){const e=t.oxw().ngIf,r=t.oxw(3);t.xp6(1),t.Q6J("events",e)("tagDisplay",r.tagDisplay)}}function Dt(n,i){1&n&&(t.ynx(0),t.TgZ(1,"button",10),t._uU(2," See Full Activity Feed "),t.qZA(),t.BQk())}function Lt(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",8),t.YNc(3,Zt,2,2,"ng-container",0),t.YNc(4,Dt,3,0,"ng-container",7),t.ALo(5,"ngrxPush"),t.qZA()(),t.BQk()),2&n){const e=i.ngIf,r=t.oxw(3),p=t.MAs(3);t.xp6(1),t.Q6J("nzGutter",16),t.xp6(2),t.Q6J("ngIf",e.length)("ngIfElse",p),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,4,r.pageInfo$))}}function bt(n,i){if(1&n&&(t.TgZ(0,"nz-card",6),t.YNc(1,Lt,6,6,"ng-container",7),t.ALo(2,"ngrxPush"),t.qZA()),2&n){const e=t.oxw(2);t.Q6J("nzTitle",void 0),t.xp6(1),t.Q6J("ngIf",t.lcZ(2,2,e.events$))}}function Ut(n,i){1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.YNc(4,bt,3,4,"nz-card",5),t.qZA()()(),t.BQk()),2&n&&(t.xp6(1),t.Q6J("nzGutter",16))}function Jt(n,i){1&n&&t._UZ(0,"nz-empty",11)}let Qt=(()=>{class n{constructor(e){this.gql=e,this.pageSize=15,this.mode=a.wJ2.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=Mt.N.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.pageInfo)),this.events$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.edges.map(r=>r.node))),this.unfilteredCount$=this.results$.pipe((0,V.j)("data"),(0,b.h)(h.ep),(0,c.U)(({events:e})=>e.unfilteredCount))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(a.BTF))},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["noEvents",""],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,r){if(1&e&&(t.YNc(0,Ut,5,1,"ng-container",0),t.ALo(1,"ngrxPush"),t.YNc(2,Jt,1,0,"ng-template",null,1,t.W1O)),2&e){const p=t.MAs(3);t.Q6J("ngIf",t.lcZ(1,2,r.unfilteredCount$))("ngIfElse",p)}},dependencies:[T.O5,s.rH,ot.ix,rt.w,kt.dQ,C.bd,E.t3,E.SK,l.NU,l.$1,st.p9,Nt.r,dt.fM],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]}),n})();var ht=o(6987),ut=o(6192);function Yt(n,i){1&n&&t.GkF(0)}function Bt(n,i){1&n&&t.GkF(0)}function Vt(n,i){1&n&&t.GkF(0)}function Wt(n,i){if(1&n&&t._uU(0),2&n){const e=t.oxw().$implicit;t.hij(" ",e.title," ")}}function Ft(n,i){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.date)," ")}}function $t(n,i){if(1&n&&t._UZ(0,"div",14),2&n){const e=t.oxw(2).$implicit;t.Jzz("background-image: url('",e.imageUrl,"')")}}function Gt(n,i){if(1&n&&t.YNc(0,$t,1,3,"div",13),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.imageUrl)}}function Rt(n,i){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.text," ")}}function Ht(n,i){if(1&n&&(t._UZ(0,"span",16),t.ALo(1,"nzSanitizer")),2&n){const e=t.oxw(2).$implicit;t.Q6J("innerHtml",t.xi3(1,1,e.htmlText,"html"),t.oJD)}}function jt(n,i){if(1&n&&(t.YNc(0,Rt,2,1,"ng-container",0),t.YNc(1,Ht,2,4,"ng-template",null,15,t.W1O)),2&n){const e=t.MAs(2),r=t.oxw().$implicit;t.Q6J("ngIf",r.text)("ngIfElse",e)}}function Kt(n,i){if(1&n&&(t.ynx(0),t._UZ(1,"nz-divider"),t.TgZ(2,"a",18),t._UZ(3,"i",19),t._uU(4),t.qZA(),t.BQk()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.Q6J("href",e.link.url,t.LSH),t.xp6(2),t.hij(" ",e.link.label?e.link.label:"More Information"," ")}}function Xt(n,i){if(1&n&&t.YNc(0,Kt,5,2,"ng-container",17),2&n){const e=t.oxw().$implicit;t.Q6J("ngIf",e.link&&e.link.url)}}function qt(n,i){if(1&n&&(t.TgZ(0,"nz-col",4)(1,"nz-card",5),t.YNc(2,Yt,1,0,"ng-container",6),t.YNc(3,Bt,1,0,"ng-container",6),t.YNc(4,Vt,1,0,"ng-container",6),t.qZA(),t.YNc(5,Wt,1,1,"ng-template",null,7,t.W1O),t.YNc(7,Ft,3,3,"ng-template",null,8,t.W1O),t.YNc(9,Gt,1,1,"ng-template",null,9,t.W1O),t.YNc(11,jt,3,2,"ng-template",null,10,t.W1O),t.YNc(13,Xt,1,1,"ng-template",null,11,t.W1O),t.qZA()),2&n){const e=t.MAs(6),r=t.MAs(8),p=t.MAs(10),f=t.MAs(12),Q=t.MAs(14);t.xp6(1),t.Q6J("nzTitle",e)("nzExtra",r),t.xp6(1),t.Q6J("ngTemplateOutlet",p),t.xp6(1),t.Q6J("ngTemplateOutlet",f),t.xp6(1),t.Q6J("ngTemplateOutlet",Q)}}const te=function(){return[8,16]};function ee(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"nz-row",2),t.YNc(2,qt,15,5,"nz-col",3),t.qZA(),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("nzGutter",t.DdM(2,te)),t.xp6(1),t.Q6J("ngForOf",e.cvcNewsItems)}}function ne(n,i){1&n&&t._UZ(0,"nz-empty")}let oe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["newsEmpty",""],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],["htmlText",""],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(e,r){if(1&e&&(t.YNc(0,ee,3,3,"ng-container",0),t.YNc(1,ne,1,0,"ng-template",null,1,t.W1O)),2&e){const p=t.MAs(2);t.Q6J("ngIf",r.cvcNewsItems)("ngIfElse",p)}},dependencies:[T.sg,T.O5,T.tP,ot.ix,rt.w,E.t3,E.SK,C.bd,v.ZU,st.p9,ht.g,nt.Ls,T.uU,ut.Pr],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]}),n})();function ie(n,i){1&n&&(t.TgZ(0,"nz-carousel",6)(1,"div",7)(2,"h1"),t._uU(3,"Welcome to CIViC"),t.qZA(),t.TgZ(4,"h2"),t._uU(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.qZA()(),t.TgZ(6,"div",7)(7,"h1"),t._uU(8," Discover supported clinical interpretations "),t._UZ(9,"br"),t._uU(10," of mutations related to cancer. "),t.qZA()(),t.TgZ(11,"div",7)(12,"h1"),t._uU(13," Participate with colleagues "),t._UZ(14,"br"),t._uU(15,"to add variants and support "),t._UZ(16,"br"),t._uU(17,"for cancer-related mutations. "),t.qZA()(),t.TgZ(18,"div",7)(19,"h1")(20,"a",8),t._uU(21,"Become an Editor! "),t._UZ(22,"br"),t._uU(23,"Help moderate updates to CIViC"),t.qZA()()()())}function se(n,i){1&n&&(t.TgZ(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.YNc(3,ie,24,0,"nz-carousel",5),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("nzSpan",24))}function ae(n,i){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4),t._UZ(2,"cvc-site-stats-card"),t.qZA()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function re(n,i){if(1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t._UZ(3,"cvc-news-item-list",11),t.qZA()(),t.TgZ(4,"nz-col",4)(5,"nz-card",12),t._UZ(6,"cvc-homepage-event-feed",13),t.qZA()()()),2&n){const e=t.oxw();t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("cvcNewsItems",e.newsItems),t.xp6(1),t.Q6J("nzSpan",12),t.xp6(2),t.Q6J("pageSize",23)}}function le(n,i){1&n&&(t.TgZ(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(3,"p"),t._uU(4," CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more therapies, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance. These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit). "),t.qZA(),t.TgZ(5,"p"),t._uU(6," The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.TgZ(7,"strong"),t._uU(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.qZA(),t._uU(9,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional. "),t.qZA()()()()),2&n&&(t.Q6J("nzGutter",16),t.xp6(1),t.Q6J("nzSpan",24))}function ce(n,i){if(1&n&&(t.TgZ(0,"nz-row",16)(1,"div",17),t._uU(2),t.ALo(3,"date"),t.TgZ(4,"a",18),t._uU(5,"Release Notes"),t.qZA(),t._uU(6," \u2022 "),t.TgZ(7,"a",19),t._uU(8,"History"),t.qZA()()()),2&n){const e=t.oxw().ngIf;t.xp6(2),t.AsE(" CIViC ",e.name," (",t.lcZ(3,3,e.published_at),") \u2022 "),t.xp6(2),t.Q6J("href",e.html_url,t.LSH)}}function pe(n,i){1&n&&(t.ynx(0),t.YNc(1,ce,9,5,"nz-row",15),t.BQk())}const ge=[{path:"",component:(()=>{class n{constructor(e){this.http=e,this.feedMode=a.wJ2.Unscoped,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,c.U)(e=>e[0]))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(L.eN))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-welcome"]],decls:7,vars:3,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[4,"ngIf"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000",4,"nzSpaceItem"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],[3,"nzGutter"],["nzTitle","News & Events","nzSize","small",1,"home-card",2,"height","100%"],[3,"cvcNewsItems"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"height","100%"],[3,"pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"],["nzAlign","middle","nzJustify","center",4,"nzSpaceItem"],["nzAlign","middle","nzJustify","center"],["id","release-info","nz-typography",""],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(e,r){1&e&&(t.TgZ(0,"nz-space",0),t.YNc(1,se,4,1,"nz-row",1),t.YNc(2,ae,3,2,"nz-row",2),t.YNc(3,re,7,5,"nz-row",2),t.YNc(4,le,10,2,"nz-row",2),t.YNc(5,pe,2,0,"ng-container",3),t.ALo(6,"async"),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngIf",t.lcZ(6,1,r.release$)))},dependencies:[T.O5,E.t3,E.SK,X,D,C.bd,l.NU,l.$1,v.ZU,Ot,Qt,oe,T.Ov,T.uU],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]}),n})()}];let de=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[s.Bz.forChild(ge),s.Bz]}),n})();var he=o(6976),mt=o(279),ue=o(4139),lt=o(2524);let me=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,s.Bz,at.A2,E.Jb,C.vh,et.aF,ot.sL,ue.H0,v.ZJ,nt.PV,mt.s,lt.s]}),n})();var fe=o(3599),ve=o(6494),_e=o(9691),ze=o(4416),Ce=o(1595),Te=o(6928);let xe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,s.Bz,ot.sL,C.vh,nt.PV,fe.U5,_e.LV,ve.m,E.Jb,l.zf,st.Xo,Te.Rt,ze.m,lt.s,Ce.N,lt.s]}),n})(),ye=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[T.ez,tt.u5,ot.sL,E.Jb,q,C.vh,he.Ph,et.aF,l.zf,at.A2,v.ZJ,st.Xo,ut.YS,ht.S,nt.PV,de,me,xe,mt.s]}),n})()},4139:(W,k,o)=>{o.d(k,{H0:()=>J});var s=o(5879),a=o(6814),c=o(9388);let J=(()=>{class _{}return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=s.oAB({type:_}),_.\u0275inj=s.cJS({imports:[c.vT,a.ez]}),_})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-5c409802ce8a969795c482d99816f04c.json b/server/public/assets/.sprockets-manifest-dcada533d4543b53d14f8ceac0723a4e.json similarity index 83% rename from server/public/assets/.sprockets-manifest-5c409802ce8a969795c482d99816f04c.json rename to server/public/assets/.sprockets-manifest-dcada533d4543b53d14f8ceac0723a4e.json index 54f794c55..b081736f9 100644 --- a/server/public/assets/.sprockets-manifest-5c409802ce8a969795c482d99816f04c.json +++ b/server/public/assets/.sprockets-manifest-dcada533d4543b53d14f8ceac0723a4e.json @@ -1 +1 @@ -{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2024-01-05T20:56:11+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-01-05T20:56:11+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-01-05T20:56:11+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-01-05T20:56:11+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2024-01-05T20:56:11+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-01-05T20:56:11+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-01-05T20:56:11+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2024-01-05T20:56:11+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-01-05T20:56:11+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-01-05T20:56:11+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2024-01-05T20:56:11+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-01-05T20:56:11+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-01-05T20:56:11+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-01-05T20:56:11+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-01-05T20:56:11+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2024-01-05T20:56:11+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js":{"logical_path":"trestle/admin.js","mtime":"2024-01-05T20:56:11+00:00","size":384495,"digest":"693af0bd16d1ebd9399c4df171bae5cf01c963c86bae45c57af432d54dfd003e","integrity":"sha256-aTrwvRbR69k5nE3xcbrlzwHJY8hrrkXFevQy1U39AD4="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-01-05T20:56:11+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-01-05T20:56:11+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2024-01-05T20:56:11+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-01-05T20:56:11+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2024-01-05T20:56:11+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2024-01-05T20:56:11+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css":{"logical_path":"trestle/theme.css","mtime":"2024-01-05T20:56:11+00:00","size":18638,"digest":"6fc27e1defe878adad3537b7b479493c658ddc74fea8cb576116de88ee9354ea","integrity":"sha256-b8J+He/oeK2tNTe3tHlJPGWN3HT+qMtXYRbeiO6TVOo="}},"assets":{"trestle/admin.css":"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","graphiql/rails/application.css":"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css","graphiql/rails/application.js":"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js","trestle/theme.css":"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css"}} \ No newline at end of file +{"files":{"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css":{"logical_path":"trestle/admin.css","mtime":"2024-01-10T19:16:01+00:00","size":328058,"digest":"f864466a650de6131d18764607cf01a9ca78f3501f2b3d24c9f88aaa403a3c16","integrity":"sha256-+GRGamUN5hMdGHZGB88Bqcp481AfKz0kyfiKqkA6PBY="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-01-10T19:16:01+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-01-10T19:16:01+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-01-10T19:16:01+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2024-01-10T19:16:01+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-01-10T19:16:01+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-01-10T19:16:01+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2024-01-10T19:16:01+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-01-10T19:16:01+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-01-10T19:16:01+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2024-01-10T19:16:01+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-01-10T19:16:01+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-01-10T19:16:01+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-01-10T19:16:01+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-01-10T19:16:01+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2024-01-10T19:16:01+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js":{"logical_path":"trestle/admin.js","mtime":"2024-01-10T19:16:01+00:00","size":384495,"digest":"693af0bd16d1ebd9399c4df171bae5cf01c963c86bae45c57af432d54dfd003e","integrity":"sha256-aTrwvRbR69k5nE3xcbrlzwHJY8hrrkXFevQy1U39AD4="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-01-10T19:16:01+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-01-10T19:16:01+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js":{"logical_path":"manifest.js","mtime":"2024-01-10T19:16:01+00:00","size":4,"digest":"545c38b0922de19734fbffde62792c37c2aef6a3216cfa472449173165220f7d","integrity":"sha256-VFw4sJIt4Zc0+//eYnksN8Ku9qMhbPpHJEkXMWUiD30="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-01-10T19:16:01+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css":{"logical_path":"graphiql/rails/application.css","mtime":"2024-01-10T19:16:01+00:00","size":34949,"digest":"5bb68625e0c7ddf3eece980e20001faed96197d338dca5fa33e0f5da8a060deb","integrity":"sha256-W7aGJeDH3fPuzpgOIAAfrtlhl9M43KX6M+D12ooGDes="},"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js":{"logical_path":"graphiql/rails/application.js","mtime":"2024-01-10T19:16:01+00:00","size":5694981,"digest":"d78230954080343c556e7465ad58ff8802dc2c2455d2e14983801a14c3dd0036","integrity":"sha256-14IwlUCANDxVbnRlrVj/iALcLCRV0uFJg4AaFMPdADY="},"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css":{"logical_path":"trestle/theme.css","mtime":"2024-01-10T19:16:01+00:00","size":18638,"digest":"6fc27e1defe878adad3537b7b479493c658ddc74fea8cb576116de88ee9354ea","integrity":"sha256-b8J+He/oeK2tNTe3tHlJPGWN3HT+qMtXYRbeiO6TVOo="}},"assets":{"trestle/admin.css":"trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","graphiql/rails/application.css":"graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css","graphiql/rails/application.js":"graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js","trestle/theme.css":"trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css"}} \ No newline at end of file diff --git a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz index 92f1dff87..185106225 100644 Binary files a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz and b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz differ diff --git a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz index 8653c461b..748185ab2 100644 Binary files a/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz and b/server/public/assets/graphiql/rails/application-71827c241c0660cd42f13f968446d06b8b2259896562b3c75bf5e49fdc9d48f9.css.gz differ diff --git a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz index a49a113ab..67de4ba61 100644 Binary files a/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz and b/server/public/assets/graphiql/rails/application-c188dd7e290410468ed6517312098e013ba4b0cb6c05e4339c28ce7baed7cfad.js.gz differ diff --git a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz index 37161a560..0090b3017 100644 Binary files a/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz and b/server/public/assets/manifest-b84bfa46a33d7f0dc4d2e7b8889486c9a957a5e40713d58f54be71b66954a1ff.js.gz differ diff --git a/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz b/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz index 5ecf60d7e..e5720c551 100644 Binary files a/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz and b/server/public/assets/trestle/admin-a57365df3923e0bbc46c90a536118c5b30f5eebb53a50ca90a04fe7d959bddb5.css.gz differ diff --git a/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz b/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz index f4b9b4b32..c9be8f89a 100644 Binary files a/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz and b/server/public/assets/trestle/admin-e0e7f043d43c95dc24a3a2fba514e2916012d32240f8dbc11b9b0e4679852f47.js.gz differ diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index 067748bcd..c545f6397 100644 Binary files a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz and b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz index 72b673b33..51e85d972 100644 Binary files a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz and b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz index 0583096a1..ebba32f9f 100644 Binary files a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz and b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz index bba6c204f..0d3b7cb4b 100644 Binary files a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz and b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz index ec003a764..905008aef 100644 Binary files a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz and b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz index 7b63ea1f0..b8f9b0bbd 100644 Binary files a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz and b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz index 2fd67b0d5..bd7b079ff 100644 Binary files a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz and b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz index 286d55c13..3ff91ba71 100644 Binary files a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz and b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz index de4f016e7..c3aa6a016 100644 Binary files a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz and b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz index e9c557053..8ea4769a5 100644 Binary files a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz and b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz differ diff --git a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz index 9ac4a8296..380c50b9a 100644 Binary files a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz and b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz differ diff --git a/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz b/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz index 685d9be7e..4d6343406 100644 Binary files a/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz and b/server/public/assets/trestle/theme-15b7653adc7bf2f6c7a4bddee193f4c61a34e812242d4f32f3e234abaa4b7895.css.gz differ diff --git a/server/public/index.html b/server/public/index.html index 064e1835e..5fce64cf6 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -21,5 +21,5 @@ - + diff --git a/server/public/main.eb7d25d5c6bd0b6a.js b/server/public/main.2654bb58cd2a5b64.js similarity index 99% rename from server/public/main.eb7d25d5c6bd0b6a.js rename to server/public/main.2654bb58cd2a5b64.js index d2a36b6ff..90049323d 100644 --- a/server/public/main.eb7d25d5c6bd0b6a.js +++ b/server/public/main.2654bb58cd2a5b64.js @@ -751,9 +751,7 @@ name id } - mostRecentEvent { - createdAt - } + mostRecentActivityTimestamp } `,_e=t.Ps` fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { @@ -1025,7 +1023,7 @@ revisions } profileImagePath(size: 64) - mostRecentActionTimestamp + mostRecentActivityTimestamp } `,en=t.Ps` fragment variantGroupPopoverFields on VariantGroup { diff --git a/server/public/runtime.d441996fc3f9bac5.js b/server/public/runtime.02782c898810d495.js similarity index 68% rename from server/public/runtime.d441996fc3f9bac5.js rename to server/public/runtime.02782c898810d495.js index 5e3dc2ba5..e005f2dad 100644 --- a/server/public/runtime.d441996fc3f9bac5.js +++ b/server/public/runtime.02782c898810d495.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var f=m[e]={exports:{}};return v[e](f,f.exports,a),f.exports}a.m=v,e=[],a.O=(t,f,d,b)=>{if(!f){var r=1/0;for(c=0;c=b)&&Object.keys(a.O).every(p=>a.O[p](f[n]))?f.splice(n--,1):(u=!1,b0&&e[c-1][2]>b;c--)e[c]=e[c-1];e[c]=[f,d,b]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var f in t)a.o(t,f)&&!a.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:t[f]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,f)=>(a.f[f](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{10:"74ea0282fa13baf4",647:"7f16f6662f063a50",726:"5d77cc63e9369f9f",1107:"8ef69b8c165cb9ab",1150:"59b98cfb7b44bc05",1364:"12bb9c99f867a6aa",1467:"840f50aff4944668",1703:"987897bdfd6a7d75",2212:"7c5b25057022690e",2287:"a823fd436ff74cab",2602:"2d0867eb22048d12",2818:"c9764b0e75a35f18",2907:"802f04b81997e7c6",2984:"84f394bc3b838139",3156:"391293c0a43a0210",3180:"e59011b9d309553f",3290:"dab0aab29e27053f",3385:"5c8b6d5ba6a7c6a3",3407:"e3d49fde99080340",3517:"971ef8b7911b86b7",3575:"5dd5d1f7eb49125f",3577:"8c97d3d55e87f3db",3759:"39fe752d85ec895d",3806:"1ac5dbcc871c240d",4084:"f48f2a38d633d50c",4230:"91e17f4202d2d08c",4280:"0e1c29b05dcb74f5",4294:"43ee4cc97fc893b4",4449:"29bd210305459ea1",4840:"32248b9277748989",4872:"416d5a7a4a85e28a",4914:"b94a847ea679db2d",5167:"abd6fb37a270e374",5302:"eeef0c3ad1639c52",5329:"8e05ab9f0261d0f9",5358:"970c0a5a4c46ecf3",5369:"40cf8db2bfaaa8a2",5412:"37e25a608a741e3a",5484:"f4cba8ea2f9acc36",5584:"5f381ea8ca62e7c3",5634:"926e59a6aed2bfda",5683:"9a0c40ea40edb32d",5802:"cf03cc24c77b8c17",5978:"7b5ceafa43859f12",6735:"e326392aa1b68077",6917:"9b8c9eea097740fd",7394:"8c8058cf5ab2b026",7492:"76063cb1d21331b5",7856:"d432057b5c01b314",7953:"ac17bf66d718915d",8108:"a4853538e9fd1010",8322:"11cbf9fd3605f011",8479:"ba73cadc64e597f7",8592:"e584c30013a61468",8723:"34dbc0755604e93c",8887:"20f54be4f180a3e4",8894:"f3385bd2140b713f",9641:"24931bf02d8cc005",9803:"86a8ca138fe4b46c",9939:"761484c53b695820",9949:"8b05129047045352"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(f,d,b,c)=>{if(e[f])e[f].push(d);else{var r,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[f];if(delete e[f],r.parentNode&&r.parentNode.removeChild(r),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),u&&document.head.appendChild(r)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:t=>t},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={3666:0};a.f.j=(d,b)=>{var c=a.o(e,d)?e[d]:void 0;if(0!==c)if(c)b.push(c[2]);else if(3666!=d){var r=new Promise((i,l)=>c=e[d]=[i,l]);b.push(c[2]=r);var u=a.p+a.u(d),n=new Error;a.l(u,i=>{if(a.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;n.message="Loading chunk "+d+" failed.\n("+l+": "+s+")",n.name="ChunkLoadError",n.type=l,n.request=s,c[1](n)}},"chunk-"+d,d)}else e[d]=0},a.O.j=d=>0===e[d];var t=(d,b)=>{var n,o,[c,r,u]=b,i=0;if(c.some(s=>0!==e[s])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(u)var l=u(a)}for(d&&d(b);i{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var f=m[e]={exports:{}};return v[e](f,f.exports,a),f.exports}a.m=v,e=[],a.O=(t,f,c,b)=>{if(!f){var r=1/0;for(d=0;d=b)&&Object.keys(a.O).every(p=>a.O[p](f[n]))?f.splice(n--,1):(u=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[f,c,b]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var f in t)a.o(t,f)&&!a.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:t[f]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,f)=>(a.f[f](e,t),t),[])),a.u=e=>(8592===e?"common":e)+"."+{10:"74ea0282fa13baf4",647:"7f16f6662f063a50",726:"5d77cc63e9369f9f",1107:"8ef69b8c165cb9ab",1150:"59b98cfb7b44bc05",1364:"12bb9c99f867a6aa",1467:"840f50aff4944668",1703:"987897bdfd6a7d75",2212:"7c5b25057022690e",2287:"a823fd436ff74cab",2602:"2d0867eb22048d12",2818:"c9764b0e75a35f18",2907:"802f04b81997e7c6",2984:"84f394bc3b838139",3156:"391293c0a43a0210",3180:"e59011b9d309553f",3290:"dab0aab29e27053f",3385:"ee3da89d9469b629",3407:"e3d49fde99080340",3517:"971ef8b7911b86b7",3575:"5dd5d1f7eb49125f",3577:"8c97d3d55e87f3db",3759:"39fe752d85ec895d",3806:"66cde4520d0a9a5a",4084:"f48f2a38d633d50c",4230:"91e17f4202d2d08c",4280:"0e1c29b05dcb74f5",4294:"43ee4cc97fc893b4",4449:"29bd210305459ea1",4840:"32248b9277748989",4872:"416d5a7a4a85e28a",4914:"b94a847ea679db2d",5167:"6e2738a3e8b693e3",5302:"eeef0c3ad1639c52",5329:"8e05ab9f0261d0f9",5358:"970c0a5a4c46ecf3",5369:"40cf8db2bfaaa8a2",5412:"37e25a608a741e3a",5484:"f4cba8ea2f9acc36",5584:"5f381ea8ca62e7c3",5634:"926e59a6aed2bfda",5683:"9a0c40ea40edb32d",5802:"cf03cc24c77b8c17",5978:"7b5ceafa43859f12",6735:"e326392aa1b68077",6917:"9b8c9eea097740fd",7394:"8c8058cf5ab2b026",7492:"76063cb1d21331b5",7856:"d432057b5c01b314",7953:"ac17bf66d718915d",8108:"a4853538e9fd1010",8322:"cfdb78db8eda075e",8479:"ba73cadc64e597f7",8592:"e584c30013a61468",8723:"34dbc0755604e93c",8887:"20f54be4f180a3e4",8894:"f3385bd2140b713f",9641:"24931bf02d8cc005",9803:"86a8ca138fe4b46c",9939:"761484c53b695820",9949:"8b05129047045352"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(f,c,b,d)=>{if(e[f])e[f].push(c);else{var r,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[f];if(delete e[f],r.parentNode&&r.parentNode.removeChild(r),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),u&&document.head.appendChild(r)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:t=>t},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={3666:0};a.f.j=(c,b)=>{var d=a.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(3666!=c){var r=new Promise((i,l)=>d=e[c]=[i,l]);b.push(d[2]=r);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;n.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",n.name="ChunkLoadError",n.type=l,n.request=s,d[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,b)=>{var n,o,[d,r,u]=b,i=0;if(d.some(s=>0!==e[s])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(u)var l=u(a)}for(c&&c(b);i